@unyt/datex 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -4
- package/esm/_dnt.shims.d.ts +1 -1
- package/esm/datex-core/datex_core_js.internal.d.ts +283 -212
- package/esm/datex-core/datex_core_js.internal.d.ts.map +1 -1
- package/esm/datex-core/datex_core_js.internal.js +834 -548
- package/esm/datex-core/datex_core_js.wasm +0 -0
- package/esm/deno.json +11 -2
- package/esm/dif/builders.d.ts +11 -0
- package/esm/dif/builders.d.ts.map +1 -0
- package/esm/dif/builders.js +23 -0
- package/esm/dif/definitions.d.ts +116 -0
- package/esm/dif/definitions.d.ts.map +1 -0
- package/esm/dif/definitions.js +70 -0
- package/esm/dif/dif-handler.d.ts +217 -0
- package/esm/dif/dif-handler.d.ts.map +1 -0
- package/esm/dif/dif-handler.js +688 -0
- package/esm/dif/display.d.ts +8 -0
- package/esm/dif/display.d.ts.map +1 -0
- package/esm/dif/display.js +74 -0
- package/esm/mod.js +8 -6
- package/esm/network/com-hub.d.ts +1 -0
- package/esm/network/com-hub.d.ts.map +1 -1
- package/esm/network/com-hub.js +3 -0
- package/esm/network/interface-impls/base.d.ts +11 -0
- package/esm/network/interface-impls/base.d.ts.map +1 -0
- package/esm/network/interface-impls/base.js +21 -0
- package/esm/network/interface-impls/websocket-client.d.ts +6 -0
- package/esm/network/interface-impls/websocket-client.d.ts.map +1 -0
- package/esm/network/interface-impls/websocket-client.js +6 -0
- package/esm/network/interface-impls/websocket-server-deno.d.ts +9 -0
- package/esm/network/interface-impls/websocket-server-deno.d.ts.map +1 -0
- package/esm/network/interface-impls/websocket-server-deno.js +45 -0
- package/esm/refs/ref.d.ts +27 -0
- package/esm/refs/ref.d.ts.map +1 -0
- package/esm/refs/ref.js +58 -0
- package/esm/runtime/runtime.d.ts +97 -5
- package/esm/runtime/runtime.d.ts.map +1 -1
- package/esm/runtime/runtime.js +69 -13
- package/esm/runtime/special-core-types.d.ts +10 -0
- package/esm/runtime/special-core-types.d.ts.map +1 -0
- package/esm/runtime/special-core-types.js +51 -0
- package/package.json +10 -1
|
@@ -7,24 +7,6 @@ let wasm;
|
|
|
7
7
|
export function __wbg_set_wasm(val) {
|
|
8
8
|
wasm = val;
|
|
9
9
|
}
|
|
10
|
-
function addToExternrefTable0(obj) {
|
|
11
|
-
const idx = wasm.__externref_table_alloc();
|
|
12
|
-
wasm.__wbindgen_export_2.set(idx, obj);
|
|
13
|
-
return idx;
|
|
14
|
-
}
|
|
15
|
-
function handleError(f, args) {
|
|
16
|
-
try {
|
|
17
|
-
return f.apply(this, args);
|
|
18
|
-
}
|
|
19
|
-
catch (e) {
|
|
20
|
-
const idx = addToExternrefTable0(e);
|
|
21
|
-
wasm.__wbindgen_exn_store(idx);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
function isLikeNone(x) {
|
|
25
|
-
return x === undefined || x === null;
|
|
26
|
-
}
|
|
27
|
-
let WASM_VECTOR_LEN = 0;
|
|
28
10
|
let cachedUint8ArrayMemory0 = null;
|
|
29
11
|
function getUint8ArrayMemory0() {
|
|
30
12
|
if (cachedUint8ArrayMemory0 === null ||
|
|
@@ -33,10 +15,37 @@ function getUint8ArrayMemory0() {
|
|
|
33
15
|
}
|
|
34
16
|
return cachedUint8ArrayMemory0;
|
|
35
17
|
}
|
|
18
|
+
const lTextDecoder = typeof TextDecoder === "undefined"
|
|
19
|
+
? (0, module.require)("util").TextDecoder
|
|
20
|
+
: TextDecoder;
|
|
21
|
+
let cachedTextDecoder = new lTextDecoder("utf-8", {
|
|
22
|
+
ignoreBOM: true,
|
|
23
|
+
fatal: true,
|
|
24
|
+
});
|
|
25
|
+
cachedTextDecoder.decode();
|
|
26
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
27
|
+
let numBytesDecoded = 0;
|
|
28
|
+
function decodeText(ptr, len) {
|
|
29
|
+
numBytesDecoded += len;
|
|
30
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
31
|
+
cachedTextDecoder = new lTextDecoder("utf-8", {
|
|
32
|
+
ignoreBOM: true,
|
|
33
|
+
fatal: true,
|
|
34
|
+
});
|
|
35
|
+
cachedTextDecoder.decode();
|
|
36
|
+
numBytesDecoded = len;
|
|
37
|
+
}
|
|
38
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
39
|
+
}
|
|
40
|
+
function getStringFromWasm0(ptr, len) {
|
|
41
|
+
ptr = ptr >>> 0;
|
|
42
|
+
return decodeText(ptr, len);
|
|
43
|
+
}
|
|
44
|
+
let WASM_VECTOR_LEN = 0;
|
|
36
45
|
const lTextEncoder = typeof TextEncoder === "undefined"
|
|
37
46
|
? (0, module.require)("util").TextEncoder
|
|
38
47
|
: TextEncoder;
|
|
39
|
-
|
|
48
|
+
const cachedTextEncoder = new lTextEncoder("utf-8");
|
|
40
49
|
const encodeString = typeof cachedTextEncoder.encodeInto === "function"
|
|
41
50
|
? function (arg, view) {
|
|
42
51
|
return cachedTextEncoder.encodeInto(arg, view);
|
|
@@ -90,53 +99,27 @@ function getDataViewMemory0() {
|
|
|
90
99
|
}
|
|
91
100
|
return cachedDataViewMemory0;
|
|
92
101
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
function addToExternrefTable0(obj) {
|
|
103
|
+
const idx = wasm.__externref_table_alloc();
|
|
104
|
+
wasm.__wbindgen_export_4.set(idx, obj);
|
|
105
|
+
return idx;
|
|
106
|
+
}
|
|
107
|
+
function handleError(f, args) {
|
|
108
|
+
try {
|
|
109
|
+
return f.apply(this, args);
|
|
110
|
+
}
|
|
111
|
+
catch (e) {
|
|
112
|
+
const idx = addToExternrefTable0(e);
|
|
113
|
+
wasm.__wbindgen_exn_store(idx);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
function isLikeNone(x) {
|
|
117
|
+
return x === undefined || x === null;
|
|
104
118
|
}
|
|
105
119
|
function getArrayU8FromWasm0(ptr, len) {
|
|
106
120
|
ptr = ptr >>> 0;
|
|
107
121
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
108
122
|
}
|
|
109
|
-
const CLOSURE_DTORS = (typeof FinalizationRegistry === "undefined")
|
|
110
|
-
? { register: () => { }, unregister: () => { } }
|
|
111
|
-
: new FinalizationRegistry((state) => {
|
|
112
|
-
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b);
|
|
113
|
-
});
|
|
114
|
-
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
115
|
-
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
116
|
-
const real = (...args) => {
|
|
117
|
-
// First up with a closure we increment the internal reference
|
|
118
|
-
// count. This ensures that the Rust closure environment won't
|
|
119
|
-
// be deallocated while we're invoking it.
|
|
120
|
-
state.cnt++;
|
|
121
|
-
const a = state.a;
|
|
122
|
-
state.a = 0;
|
|
123
|
-
try {
|
|
124
|
-
return f(a, state.b, ...args);
|
|
125
|
-
}
|
|
126
|
-
finally {
|
|
127
|
-
if (--state.cnt === 0) {
|
|
128
|
-
wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
|
|
129
|
-
CLOSURE_DTORS.unregister(state);
|
|
130
|
-
}
|
|
131
|
-
else {
|
|
132
|
-
state.a = a;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
real.original = state;
|
|
137
|
-
CLOSURE_DTORS.register(real, state, state);
|
|
138
|
-
return real;
|
|
139
|
-
}
|
|
140
123
|
function debugString(val) {
|
|
141
124
|
// primitive types
|
|
142
125
|
const type = typeof val;
|
|
@@ -205,6 +188,37 @@ function debugString(val) {
|
|
|
205
188
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
206
189
|
return className;
|
|
207
190
|
}
|
|
191
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === "undefined")
|
|
192
|
+
? { register: () => { }, unregister: () => { } }
|
|
193
|
+
: new FinalizationRegistry((state) => {
|
|
194
|
+
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b);
|
|
195
|
+
});
|
|
196
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
197
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
198
|
+
const real = (...args) => {
|
|
199
|
+
// First up with a closure we increment the internal reference
|
|
200
|
+
// count. This ensures that the Rust closure environment won't
|
|
201
|
+
// be deallocated while we're invoking it.
|
|
202
|
+
state.cnt++;
|
|
203
|
+
const a = state.a;
|
|
204
|
+
state.a = 0;
|
|
205
|
+
try {
|
|
206
|
+
return f(a, state.b, ...args);
|
|
207
|
+
}
|
|
208
|
+
finally {
|
|
209
|
+
if (--state.cnt === 0) {
|
|
210
|
+
wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
|
|
211
|
+
CLOSURE_DTORS.unregister(state);
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
state.a = a;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
real.original = state;
|
|
219
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
220
|
+
return real;
|
|
221
|
+
}
|
|
208
222
|
function passArray8ToWasm0(arg, malloc) {
|
|
209
223
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
210
224
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -212,7 +226,7 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
212
226
|
return ptr;
|
|
213
227
|
}
|
|
214
228
|
function takeFromExternrefTable0(idx) {
|
|
215
|
-
const value = wasm.
|
|
229
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
216
230
|
wasm.__externref_table_dealloc(idx);
|
|
217
231
|
return value;
|
|
218
232
|
}
|
|
@@ -227,14 +241,6 @@ export function create_runtime(config, debug_flags) {
|
|
|
227
241
|
const ret = wasm.create_runtime(ptr0, len0, debug_flags);
|
|
228
242
|
return JSRuntime.__wrap(ret);
|
|
229
243
|
}
|
|
230
|
-
/**
|
|
231
|
-
* @param {string} datex_script
|
|
232
|
-
*/
|
|
233
|
-
export function compile(datex_script) {
|
|
234
|
-
const ptr0 = passStringToWasm0(datex_script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
235
|
-
const len0 = WASM_VECTOR_LEN;
|
|
236
|
-
wasm.compile(ptr0, len0);
|
|
237
|
-
}
|
|
238
244
|
/**
|
|
239
245
|
* Executes a Datex script and returns the result as a string.
|
|
240
246
|
* @param {string} datex_script
|
|
@@ -273,7 +279,7 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
273
279
|
const mem = getDataViewMemory0();
|
|
274
280
|
const result = [];
|
|
275
281
|
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
276
|
-
result.push(wasm.
|
|
282
|
+
result.push(wasm.__wbindgen_export_4.get(mem.getUint32(i, true)));
|
|
277
283
|
}
|
|
278
284
|
wasm.__externref_drop_slice(ptr, len);
|
|
279
285
|
return result;
|
|
@@ -292,17 +298,17 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
292
298
|
WASM_VECTOR_LEN = array.length;
|
|
293
299
|
return ptr;
|
|
294
300
|
}
|
|
295
|
-
function
|
|
296
|
-
wasm.
|
|
301
|
+
function __wbg_adapter_6(arg0, arg1, arg2) {
|
|
302
|
+
wasm.closure719_externref_shim(arg0, arg1, arg2);
|
|
297
303
|
}
|
|
298
|
-
function
|
|
299
|
-
wasm.
|
|
304
|
+
function __wbg_adapter_13(arg0, arg1, arg2) {
|
|
305
|
+
wasm.closure1412_externref_shim(arg0, arg1, arg2);
|
|
300
306
|
}
|
|
301
|
-
function
|
|
302
|
-
wasm.
|
|
307
|
+
function __wbg_adapter_22(arg0, arg1) {
|
|
308
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h0af2f0c81ec4e5c8(arg0, arg1);
|
|
303
309
|
}
|
|
304
|
-
function
|
|
305
|
-
wasm.
|
|
310
|
+
function __wbg_adapter_325(arg0, arg1, arg2, arg3) {
|
|
311
|
+
wasm.closure2331_externref_shim(arg0, arg1, arg2, arg3);
|
|
306
312
|
}
|
|
307
313
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
308
314
|
const __wbindgen_enum_RtcIceConnectionState = [
|
|
@@ -361,87 +367,71 @@ export class JSComHub {
|
|
|
361
367
|
}
|
|
362
368
|
/**
|
|
363
369
|
* @param {string} interface_uuid
|
|
364
|
-
* @param {
|
|
365
|
-
* @returns {
|
|
370
|
+
* @param {Uint8Array} answer
|
|
371
|
+
* @returns {Promise<void>}
|
|
366
372
|
*/
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
var ptr2 = ret[0];
|
|
375
|
-
var len2 = ret[1];
|
|
376
|
-
if (ret[3]) {
|
|
377
|
-
ptr2 = 0;
|
|
378
|
-
len2 = 0;
|
|
379
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
380
|
-
}
|
|
381
|
-
deferred3_0 = ptr2;
|
|
382
|
-
deferred3_1 = len2;
|
|
383
|
-
return getStringFromWasm0(ptr2, len2);
|
|
384
|
-
}
|
|
385
|
-
finally {
|
|
386
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
387
|
-
}
|
|
373
|
+
webrtc_interface_set_answer(interface_uuid, answer) {
|
|
374
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
375
|
+
const len0 = WASM_VECTOR_LEN;
|
|
376
|
+
const ptr1 = passArray8ToWasm0(answer, wasm.__wbindgen_malloc);
|
|
377
|
+
const len1 = WASM_VECTOR_LEN;
|
|
378
|
+
const ret = wasm.jscomhub_webrtc_interface_set_answer(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
379
|
+
return ret;
|
|
388
380
|
}
|
|
389
381
|
/**
|
|
390
|
-
* @param {string}
|
|
391
|
-
* @
|
|
392
|
-
* @returns {string}
|
|
382
|
+
* @param {string} interface_uuid
|
|
383
|
+
* @returns {Promise<Uint8Array>}
|
|
393
384
|
*/
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
const len0 = WASM_VECTOR_LEN;
|
|
400
|
-
const ptr1 = passStringToWasm0(direction, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
401
|
-
const len1 = WASM_VECTOR_LEN;
|
|
402
|
-
const ret = wasm.jscomhub_base_interface_register_socket(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
403
|
-
var ptr3 = ret[0];
|
|
404
|
-
var len3 = ret[1];
|
|
405
|
-
if (ret[3]) {
|
|
406
|
-
ptr3 = 0;
|
|
407
|
-
len3 = 0;
|
|
408
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
409
|
-
}
|
|
410
|
-
deferred4_0 = ptr3;
|
|
411
|
-
deferred4_1 = len3;
|
|
412
|
-
return getStringFromWasm0(ptr3, len3);
|
|
413
|
-
}
|
|
414
|
-
finally {
|
|
415
|
-
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
416
|
-
}
|
|
385
|
+
webrtc_interface_create_offer(interface_uuid) {
|
|
386
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
387
|
+
const len0 = WASM_VECTOR_LEN;
|
|
388
|
+
const ret = wasm.jscomhub_webrtc_interface_create_offer(this.__wbg_ptr, ptr0, len0);
|
|
389
|
+
return ret;
|
|
417
390
|
}
|
|
418
391
|
/**
|
|
419
|
-
* @param {string}
|
|
420
|
-
* @param {
|
|
421
|
-
* @
|
|
392
|
+
* @param {string} interface_uuid
|
|
393
|
+
* @param {Uint8Array} offer
|
|
394
|
+
* @returns {Promise<Uint8Array>}
|
|
422
395
|
*/
|
|
423
|
-
|
|
424
|
-
const ptr0 = passStringToWasm0(
|
|
396
|
+
webrtc_interface_create_answer(interface_uuid, offer) {
|
|
397
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
425
398
|
const len0 = WASM_VECTOR_LEN;
|
|
426
|
-
const ptr1 =
|
|
399
|
+
const ptr1 = passArray8ToWasm0(offer, wasm.__wbindgen_malloc);
|
|
427
400
|
const len1 = WASM_VECTOR_LEN;
|
|
428
|
-
const
|
|
429
|
-
|
|
430
|
-
const ret = wasm.jscomhub_base_interface_receive(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
431
|
-
if (ret[1]) {
|
|
432
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
433
|
-
}
|
|
401
|
+
const ret = wasm.jscomhub_webrtc_interface_create_answer(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
402
|
+
return ret;
|
|
434
403
|
}
|
|
435
404
|
/**
|
|
436
|
-
* @param {string}
|
|
437
|
-
* @param {
|
|
405
|
+
* @param {string} interface_uuid
|
|
406
|
+
* @param {Uint8Array} candidate
|
|
407
|
+
* @returns {Promise<void>}
|
|
438
408
|
*/
|
|
439
|
-
|
|
440
|
-
const ptr0 = passStringToWasm0(
|
|
409
|
+
webrtc_interface_add_ice_candidate(interface_uuid, candidate) {
|
|
410
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
441
411
|
const len0 = WASM_VECTOR_LEN;
|
|
442
|
-
const ptr1 =
|
|
412
|
+
const ptr1 = passArray8ToWasm0(candidate, wasm.__wbindgen_malloc);
|
|
443
413
|
const len1 = WASM_VECTOR_LEN;
|
|
444
|
-
const ret = wasm.
|
|
414
|
+
const ret = wasm.jscomhub_webrtc_interface_add_ice_candidate(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
415
|
+
return ret;
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* @param {string} interface_uuid
|
|
419
|
+
* @returns {Promise<void>}
|
|
420
|
+
*/
|
|
421
|
+
webrtc_interface_wait_for_connection(interface_uuid) {
|
|
422
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
423
|
+
const len0 = WASM_VECTOR_LEN;
|
|
424
|
+
const ret = wasm.jscomhub_webrtc_interface_wait_for_connection(this.__wbg_ptr, ptr0, len0);
|
|
425
|
+
return ret;
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* @param {string} interface_uuid
|
|
429
|
+
* @param {Function} on_ice_candidate
|
|
430
|
+
*/
|
|
431
|
+
webrtc_interface_set_on_ice_candidate(interface_uuid, on_ice_candidate) {
|
|
432
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
433
|
+
const len0 = WASM_VECTOR_LEN;
|
|
434
|
+
const ret = wasm.jscomhub_webrtc_interface_set_on_ice_candidate(this.__wbg_ptr, ptr0, len0, on_ice_candidate);
|
|
445
435
|
if (ret[1]) {
|
|
446
436
|
throw takeFromExternrefTable0(ret[0]);
|
|
447
437
|
}
|
|
@@ -462,50 +452,104 @@ export class JSComHub {
|
|
|
462
452
|
* @param {string} uuid
|
|
463
453
|
* @param {string} socket_uuid
|
|
464
454
|
* @param {Uint8Array} data
|
|
465
|
-
* @returns {Promise<boolean>}
|
|
466
455
|
*/
|
|
467
|
-
|
|
456
|
+
base_interface_receive(uuid, socket_uuid, data) {
|
|
468
457
|
const ptr0 = passStringToWasm0(uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
469
458
|
const len0 = WASM_VECTOR_LEN;
|
|
470
459
|
const ptr1 = passStringToWasm0(socket_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
471
460
|
const len1 = WASM_VECTOR_LEN;
|
|
472
461
|
const ptr2 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
473
462
|
const len2 = WASM_VECTOR_LEN;
|
|
474
|
-
const ret = wasm.
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
wasm.jscomhub_register_default_interface_factories(this.__wbg_ptr);
|
|
463
|
+
const ret = wasm.jscomhub_base_interface_receive(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
464
|
+
if (ret[1]) {
|
|
465
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
466
|
+
}
|
|
479
467
|
}
|
|
480
468
|
/**
|
|
481
|
-
* @param {string}
|
|
482
|
-
* @param {string}
|
|
483
|
-
* @returns {Promise<any>}
|
|
469
|
+
* @param {string} uuid
|
|
470
|
+
* @param {string} socket_uuid
|
|
484
471
|
*/
|
|
485
|
-
|
|
486
|
-
const ptr0 = passStringToWasm0(
|
|
472
|
+
base_interface_destroy_socket(uuid, socket_uuid) {
|
|
473
|
+
const ptr0 = passStringToWasm0(uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
487
474
|
const len0 = WASM_VECTOR_LEN;
|
|
488
|
-
const ptr1 = passStringToWasm0(
|
|
475
|
+
const ptr1 = passStringToWasm0(socket_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
489
476
|
const len1 = WASM_VECTOR_LEN;
|
|
490
|
-
const ret = wasm.
|
|
491
|
-
|
|
477
|
+
const ret = wasm.jscomhub_base_interface_destroy_socket(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
478
|
+
if (ret[1]) {
|
|
479
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
480
|
+
}
|
|
492
481
|
}
|
|
493
482
|
/**
|
|
494
|
-
* @param {string}
|
|
495
|
-
* @
|
|
483
|
+
* @param {string} uuid
|
|
484
|
+
* @param {string} direction
|
|
485
|
+
* @returns {string}
|
|
496
486
|
*/
|
|
497
|
-
|
|
498
|
-
|
|
487
|
+
base_interface_register_socket(uuid, direction) {
|
|
488
|
+
let deferred4_0;
|
|
489
|
+
let deferred4_1;
|
|
490
|
+
try {
|
|
491
|
+
const ptr0 = passStringToWasm0(uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
492
|
+
const len0 = WASM_VECTOR_LEN;
|
|
493
|
+
const ptr1 = passStringToWasm0(direction, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
494
|
+
const len1 = WASM_VECTOR_LEN;
|
|
495
|
+
const ret = wasm.jscomhub_base_interface_register_socket(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
496
|
+
var ptr3 = ret[0];
|
|
497
|
+
var len3 = ret[1];
|
|
498
|
+
if (ret[3]) {
|
|
499
|
+
ptr3 = 0;
|
|
500
|
+
len3 = 0;
|
|
501
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
502
|
+
}
|
|
503
|
+
deferred4_0 = ptr3;
|
|
504
|
+
deferred4_1 = len3;
|
|
505
|
+
return getStringFromWasm0(ptr3, len3);
|
|
506
|
+
}
|
|
507
|
+
finally {
|
|
508
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* @param {string} uuid
|
|
513
|
+
* @param {string} socket_uuid
|
|
514
|
+
* @param {Uint8Array} data
|
|
515
|
+
* @returns {Promise<boolean>}
|
|
516
|
+
*/
|
|
517
|
+
base_interface_test_send_block(uuid, socket_uuid, data) {
|
|
518
|
+
const ptr0 = passStringToWasm0(uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
499
519
|
const len0 = WASM_VECTOR_LEN;
|
|
500
|
-
const
|
|
520
|
+
const ptr1 = passStringToWasm0(socket_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
521
|
+
const len1 = WASM_VECTOR_LEN;
|
|
522
|
+
const ptr2 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
523
|
+
const len2 = WASM_VECTOR_LEN;
|
|
524
|
+
const ret = wasm.jscomhub_base_interface_test_send_block(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
501
525
|
return ret;
|
|
502
526
|
}
|
|
503
527
|
/**
|
|
504
|
-
* @
|
|
528
|
+
* @param {string} interface_uuid
|
|
529
|
+
* @param {WebSocket} websocket
|
|
530
|
+
* @returns {string}
|
|
505
531
|
*/
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
532
|
+
websocket_server_interface_add_socket(interface_uuid, websocket) {
|
|
533
|
+
let deferred3_0;
|
|
534
|
+
let deferred3_1;
|
|
535
|
+
try {
|
|
536
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
537
|
+
const len0 = WASM_VECTOR_LEN;
|
|
538
|
+
const ret = wasm.jscomhub_websocket_server_interface_add_socket(this.__wbg_ptr, ptr0, len0, websocket);
|
|
539
|
+
var ptr2 = ret[0];
|
|
540
|
+
var len2 = ret[1];
|
|
541
|
+
if (ret[3]) {
|
|
542
|
+
ptr2 = 0;
|
|
543
|
+
len2 = 0;
|
|
544
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
545
|
+
}
|
|
546
|
+
deferred3_0 = ptr2;
|
|
547
|
+
deferred3_1 = len2;
|
|
548
|
+
return getStringFromWasm0(ptr2, len2);
|
|
549
|
+
}
|
|
550
|
+
finally {
|
|
551
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
552
|
+
}
|
|
509
553
|
}
|
|
510
554
|
/**
|
|
511
555
|
* Send a block to the given interface and socket
|
|
@@ -528,29 +572,27 @@ export class JSComHub {
|
|
|
528
572
|
return ret;
|
|
529
573
|
}
|
|
530
574
|
/**
|
|
531
|
-
* @
|
|
575
|
+
* @param {string} interface_uuid
|
|
576
|
+
* @returns {Promise<any>}
|
|
532
577
|
*/
|
|
533
|
-
|
|
534
|
-
const
|
|
535
|
-
|
|
536
|
-
wasm.
|
|
537
|
-
return
|
|
578
|
+
close_interface(interface_uuid) {
|
|
579
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
580
|
+
const len0 = WASM_VECTOR_LEN;
|
|
581
|
+
const ret = wasm.jscomhub_close_interface(this.__wbg_ptr, ptr0, len0);
|
|
582
|
+
return ret;
|
|
538
583
|
}
|
|
539
584
|
/**
|
|
540
|
-
* @
|
|
585
|
+
* @param {string} interface_type
|
|
586
|
+
* @param {string} properties
|
|
587
|
+
* @returns {Promise<any>}
|
|
541
588
|
*/
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
550
|
-
}
|
|
551
|
-
finally {
|
|
552
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
553
|
-
}
|
|
589
|
+
create_interface(interface_type, properties) {
|
|
590
|
+
const ptr0 = passStringToWasm0(interface_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
591
|
+
const len0 = WASM_VECTOR_LEN;
|
|
592
|
+
const ptr1 = passStringToWasm0(properties, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
593
|
+
const len1 = WASM_VECTOR_LEN;
|
|
594
|
+
const ret = wasm.jscomhub_create_interface(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
595
|
+
return ret;
|
|
554
596
|
}
|
|
555
597
|
/**
|
|
556
598
|
* @param {string} endpoint
|
|
@@ -562,57 +604,46 @@ export class JSComHub {
|
|
|
562
604
|
const ret = wasm.jscomhub_get_trace_string(this.__wbg_ptr, ptr0, len0);
|
|
563
605
|
return ret;
|
|
564
606
|
}
|
|
565
|
-
}
|
|
566
|
-
const JSMemoryFinalization = (typeof FinalizationRegistry === "undefined")
|
|
567
|
-
? { register: () => { }, unregister: () => { } }
|
|
568
|
-
: new FinalizationRegistry((ptr) => wasm.__wbg_jsmemory_free(ptr >>> 0, 1));
|
|
569
|
-
export class JSMemory {
|
|
570
|
-
static __wrap(ptr) {
|
|
571
|
-
ptr = ptr >>> 0;
|
|
572
|
-
const obj = Object.create(JSMemory.prototype);
|
|
573
|
-
obj.__wbg_ptr = ptr;
|
|
574
|
-
JSMemoryFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
575
|
-
return obj;
|
|
576
|
-
}
|
|
577
|
-
__destroy_into_raw() {
|
|
578
|
-
const ptr = this.__wbg_ptr;
|
|
579
|
-
this.__wbg_ptr = 0;
|
|
580
|
-
JSMemoryFinalization.unregister(this);
|
|
581
|
-
return ptr;
|
|
582
|
-
}
|
|
583
|
-
free() {
|
|
584
|
-
const ptr = this.__destroy_into_raw();
|
|
585
|
-
wasm.__wbg_jsmemory_free(ptr, 0);
|
|
586
|
-
}
|
|
587
607
|
/**
|
|
588
|
-
* @
|
|
589
|
-
* @returns {JSPointer | undefined}
|
|
608
|
+
* @returns {string}
|
|
590
609
|
*/
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
610
|
+
get_metadata_string() {
|
|
611
|
+
let deferred1_0;
|
|
612
|
+
let deferred1_1;
|
|
613
|
+
try {
|
|
614
|
+
const ret = wasm.jscomhub_get_metadata_string(this.__wbg_ptr);
|
|
615
|
+
deferred1_0 = ret[0];
|
|
616
|
+
deferred1_1 = ret[1];
|
|
617
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
618
|
+
}
|
|
619
|
+
finally {
|
|
620
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
621
|
+
}
|
|
594
622
|
}
|
|
595
623
|
/**
|
|
596
624
|
* @returns {Uint8Array[]}
|
|
597
625
|
*/
|
|
598
|
-
|
|
599
|
-
const ret = wasm.
|
|
626
|
+
_drain_incoming_blocks() {
|
|
627
|
+
const ret = wasm.jscomhub__drain_incoming_blocks(this.__wbg_ptr);
|
|
600
628
|
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
601
629
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
602
630
|
return v1;
|
|
603
631
|
}
|
|
632
|
+
register_default_interface_factories() {
|
|
633
|
+
wasm.jscomhub_register_default_interface_factories(this.__wbg_ptr);
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* @returns {Promise<void>}
|
|
637
|
+
*/
|
|
638
|
+
update() {
|
|
639
|
+
const ret = wasm.jscomhub_update(this.__wbg_ptr);
|
|
640
|
+
return ret;
|
|
641
|
+
}
|
|
604
642
|
}
|
|
605
643
|
const JSPointerFinalization = (typeof FinalizationRegistry === "undefined")
|
|
606
644
|
? { register: () => { }, unregister: () => { } }
|
|
607
645
|
: new FinalizationRegistry((ptr) => wasm.__wbg_jspointer_free(ptr >>> 0, 1));
|
|
608
646
|
export class JSPointer {
|
|
609
|
-
static __wrap(ptr) {
|
|
610
|
-
ptr = ptr >>> 0;
|
|
611
|
-
const obj = Object.create(JSPointer.prototype);
|
|
612
|
-
obj.__wbg_ptr = ptr;
|
|
613
|
-
JSPointerFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
614
|
-
return obj;
|
|
615
|
-
}
|
|
616
647
|
__destroy_into_raw() {
|
|
617
648
|
const ptr = this.__wbg_ptr;
|
|
618
649
|
this.__wbg_ptr = 0;
|
|
@@ -661,19 +692,39 @@ export class JSRuntime {
|
|
|
661
692
|
wasm.__wbg_set_jsruntime_com_hub(this.__wbg_ptr, ptr0);
|
|
662
693
|
}
|
|
663
694
|
/**
|
|
664
|
-
* @
|
|
695
|
+
* @param {string} script
|
|
696
|
+
* @param {any[] | null} [dif_values]
|
|
697
|
+
* @returns {any}
|
|
665
698
|
*/
|
|
666
|
-
|
|
667
|
-
const
|
|
668
|
-
|
|
699
|
+
execute_sync(script, dif_values) {
|
|
700
|
+
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
701
|
+
const len0 = WASM_VECTOR_LEN;
|
|
702
|
+
var ptr1 = isLikeNone(dif_values)
|
|
703
|
+
? 0
|
|
704
|
+
: passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc);
|
|
705
|
+
var len1 = WASM_VECTOR_LEN;
|
|
706
|
+
const ret = wasm.jsruntime_execute_sync(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
707
|
+
if (ret[2]) {
|
|
708
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
709
|
+
}
|
|
710
|
+
return takeFromExternrefTable0(ret[0]);
|
|
669
711
|
}
|
|
670
712
|
/**
|
|
671
|
-
* @param {
|
|
713
|
+
* @param {Uint8Array | null | undefined} body
|
|
714
|
+
* @param {string[]} receivers
|
|
715
|
+
* @returns {Uint8Array}
|
|
672
716
|
*/
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
717
|
+
_create_block(body, receivers) {
|
|
718
|
+
var ptr0 = isLikeNone(body)
|
|
719
|
+
? 0
|
|
720
|
+
: passArray8ToWasm0(body, wasm.__wbindgen_malloc);
|
|
721
|
+
var len0 = WASM_VECTOR_LEN;
|
|
722
|
+
const ptr1 = passArrayJsValueToWasm0(receivers, wasm.__wbindgen_malloc);
|
|
723
|
+
const len1 = WASM_VECTOR_LEN;
|
|
724
|
+
const ret = wasm.jsruntime__create_block(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
725
|
+
var v3 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
726
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
727
|
+
return v3;
|
|
677
728
|
}
|
|
678
729
|
/**
|
|
679
730
|
* @returns {Promise<Promise<any>>}
|
|
@@ -683,204 +734,290 @@ export class JSRuntime {
|
|
|
683
734
|
return ret;
|
|
684
735
|
}
|
|
685
736
|
/**
|
|
737
|
+
* @param {any} dif_value
|
|
738
|
+
* @param {any} decompile_options
|
|
686
739
|
* @returns {string}
|
|
687
740
|
*/
|
|
688
|
-
|
|
689
|
-
let
|
|
690
|
-
let
|
|
741
|
+
value_to_string(dif_value, decompile_options) {
|
|
742
|
+
let deferred2_0;
|
|
743
|
+
let deferred2_1;
|
|
691
744
|
try {
|
|
692
|
-
const ret = wasm.
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
745
|
+
const ret = wasm.jsruntime_value_to_string(this.__wbg_ptr, dif_value, decompile_options);
|
|
746
|
+
var ptr1 = ret[0];
|
|
747
|
+
var len1 = ret[1];
|
|
748
|
+
if (ret[3]) {
|
|
749
|
+
ptr1 = 0;
|
|
750
|
+
len1 = 0;
|
|
751
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
752
|
+
}
|
|
753
|
+
deferred2_0 = ptr1;
|
|
754
|
+
deferred2_1 = len1;
|
|
755
|
+
return getStringFromWasm0(ptr1, len1);
|
|
696
756
|
}
|
|
697
757
|
finally {
|
|
698
|
-
wasm.__wbindgen_free(
|
|
758
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
699
759
|
}
|
|
700
760
|
}
|
|
701
761
|
/**
|
|
762
|
+
* @param {string} script
|
|
763
|
+
* @param {any[] | null | undefined} dif_values
|
|
764
|
+
* @param {any} decompile_options
|
|
765
|
+
* @returns {Promise<string>}
|
|
766
|
+
*/
|
|
767
|
+
execute_with_string_result(script, dif_values, decompile_options) {
|
|
768
|
+
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
769
|
+
const len0 = WASM_VECTOR_LEN;
|
|
770
|
+
var ptr1 = isLikeNone(dif_values)
|
|
771
|
+
? 0
|
|
772
|
+
: passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc);
|
|
773
|
+
var len1 = WASM_VECTOR_LEN;
|
|
774
|
+
const ret = wasm.jsruntime_execute_with_string_result(this.__wbg_ptr, ptr0, len0, ptr1, len1, decompile_options);
|
|
775
|
+
return ret;
|
|
776
|
+
}
|
|
777
|
+
/**
|
|
778
|
+
* @param {string} script
|
|
779
|
+
* @param {any[] | null | undefined} dif_values
|
|
780
|
+
* @param {any} decompile_options
|
|
702
781
|
* @returns {string}
|
|
703
782
|
*/
|
|
704
|
-
|
|
705
|
-
let
|
|
706
|
-
let
|
|
783
|
+
execute_sync_with_string_result(script, dif_values, decompile_options) {
|
|
784
|
+
let deferred4_0;
|
|
785
|
+
let deferred4_1;
|
|
707
786
|
try {
|
|
708
|
-
const
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
787
|
+
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
788
|
+
const len0 = WASM_VECTOR_LEN;
|
|
789
|
+
var ptr1 = isLikeNone(dif_values)
|
|
790
|
+
? 0
|
|
791
|
+
: passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc);
|
|
792
|
+
var len1 = WASM_VECTOR_LEN;
|
|
793
|
+
const ret = wasm.jsruntime_execute_sync_with_string_result(this.__wbg_ptr, ptr0, len0, ptr1, len1, decompile_options);
|
|
794
|
+
var ptr3 = ret[0];
|
|
795
|
+
var len3 = ret[1];
|
|
796
|
+
if (ret[3]) {
|
|
797
|
+
ptr3 = 0;
|
|
798
|
+
len3 = 0;
|
|
799
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
800
|
+
}
|
|
801
|
+
deferred4_0 = ptr3;
|
|
802
|
+
deferred4_1 = len3;
|
|
803
|
+
return getStringFromWasm0(ptr3, len3);
|
|
712
804
|
}
|
|
713
805
|
finally {
|
|
714
|
-
wasm.__wbindgen_free(
|
|
806
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
715
807
|
}
|
|
716
808
|
}
|
|
717
809
|
/**
|
|
718
|
-
*
|
|
719
|
-
* @
|
|
720
|
-
* @returns {Uint8Array}
|
|
810
|
+
* Get a handle to the DIF interface of the runtime
|
|
811
|
+
* @returns {RuntimeDIFHandle}
|
|
721
812
|
*/
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
: passArray8ToWasm0(body, wasm.__wbindgen_malloc);
|
|
726
|
-
var len0 = WASM_VECTOR_LEN;
|
|
727
|
-
const ptr1 = passArrayJsValueToWasm0(receivers, wasm.__wbindgen_malloc);
|
|
728
|
-
const len1 = WASM_VECTOR_LEN;
|
|
729
|
-
const ret = wasm.jsruntime__create_block(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
730
|
-
var v3 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
731
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
732
|
-
return v3;
|
|
813
|
+
dif() {
|
|
814
|
+
const ret = wasm.jsruntime_dif(this.__wbg_ptr);
|
|
815
|
+
return RuntimeDIFHandle.__wrap(ret);
|
|
733
816
|
}
|
|
734
817
|
/**
|
|
735
818
|
* @returns {Promise<void>}
|
|
736
819
|
*/
|
|
737
|
-
|
|
738
|
-
const ret = wasm.
|
|
820
|
+
_stop() {
|
|
821
|
+
const ret = wasm.jsruntime__stop(this.__wbg_ptr);
|
|
739
822
|
return ret;
|
|
740
823
|
}
|
|
741
824
|
/**
|
|
742
825
|
* @returns {Promise<void>}
|
|
743
826
|
*/
|
|
744
|
-
|
|
745
|
-
const ret = wasm.
|
|
827
|
+
start() {
|
|
828
|
+
const ret = wasm.jsruntime_start(this.__wbg_ptr);
|
|
746
829
|
return ret;
|
|
747
830
|
}
|
|
748
831
|
/**
|
|
749
832
|
* @param {string} script
|
|
750
|
-
* @param {
|
|
751
|
-
* @returns {Promise<
|
|
833
|
+
* @param {any[] | null} [dif_values]
|
|
834
|
+
* @returns {Promise<any>}
|
|
752
835
|
*/
|
|
753
|
-
execute(script,
|
|
836
|
+
execute(script, dif_values) {
|
|
754
837
|
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
755
838
|
const len0 = WASM_VECTOR_LEN;
|
|
756
|
-
|
|
839
|
+
var ptr1 = isLikeNone(dif_values)
|
|
840
|
+
? 0
|
|
841
|
+
: passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc);
|
|
842
|
+
var len1 = WASM_VECTOR_LEN;
|
|
843
|
+
const ret = wasm.jsruntime_execute(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
757
844
|
return ret;
|
|
758
845
|
}
|
|
759
846
|
/**
|
|
760
|
-
* @param {string} script
|
|
761
|
-
* @param {boolean} formatted
|
|
762
847
|
* @returns {string}
|
|
763
848
|
*/
|
|
764
|
-
|
|
765
|
-
let
|
|
766
|
-
let
|
|
849
|
+
get version() {
|
|
850
|
+
let deferred1_0;
|
|
851
|
+
let deferred1_1;
|
|
767
852
|
try {
|
|
768
|
-
const
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
deferred2_0 = ret[0];
|
|
772
|
-
deferred2_1 = ret[1];
|
|
853
|
+
const ret = wasm.jsruntime_version(this.__wbg_ptr);
|
|
854
|
+
deferred1_0 = ret[0];
|
|
855
|
+
deferred1_1 = ret[1];
|
|
773
856
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
774
857
|
}
|
|
775
858
|
finally {
|
|
776
|
-
wasm.__wbindgen_free(
|
|
859
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
777
860
|
}
|
|
778
861
|
}
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
862
|
+
/**
|
|
863
|
+
* @returns {string}
|
|
864
|
+
*/
|
|
865
|
+
get endpoint() {
|
|
866
|
+
let deferred1_0;
|
|
867
|
+
let deferred1_1;
|
|
868
|
+
try {
|
|
869
|
+
const ret = wasm.jsruntime_endpoint(this.__wbg_ptr);
|
|
870
|
+
deferred1_0 = ret[0];
|
|
871
|
+
deferred1_1 = ret[1];
|
|
872
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
873
|
+
}
|
|
874
|
+
finally {
|
|
875
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
const RuntimeDIFHandleFinalization = (typeof FinalizationRegistry === "undefined")
|
|
880
|
+
? { register: () => { }, unregister: () => { } }
|
|
881
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_runtimedifhandle_free(ptr >>> 0, 1));
|
|
882
|
+
export class RuntimeDIFHandle {
|
|
883
|
+
static __wrap(ptr) {
|
|
884
|
+
ptr = ptr >>> 0;
|
|
885
|
+
const obj = Object.create(RuntimeDIFHandle.prototype);
|
|
886
|
+
obj.__wbg_ptr = ptr;
|
|
887
|
+
RuntimeDIFHandleFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
888
|
+
return obj;
|
|
889
|
+
}
|
|
784
890
|
__destroy_into_raw() {
|
|
785
891
|
const ptr = this.__wbg_ptr;
|
|
786
892
|
this.__wbg_ptr = 0;
|
|
787
|
-
|
|
893
|
+
RuntimeDIFHandleFinalization.unregister(this);
|
|
788
894
|
return ptr;
|
|
789
895
|
}
|
|
790
896
|
free() {
|
|
791
897
|
const ptr = this.__destroy_into_raw();
|
|
792
|
-
wasm.
|
|
898
|
+
wasm.__wbg_runtimedifhandle_free(ptr, 0);
|
|
793
899
|
}
|
|
794
900
|
/**
|
|
795
|
-
* @param {
|
|
796
|
-
* @
|
|
901
|
+
* @param {any} value
|
|
902
|
+
* @param {any} allowed_type
|
|
903
|
+
* @param {number} mutability
|
|
904
|
+
* @returns {string}
|
|
797
905
|
*/
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
906
|
+
create_pointer(value, allowed_type, mutability) {
|
|
907
|
+
let deferred2_0;
|
|
908
|
+
let deferred2_1;
|
|
909
|
+
try {
|
|
910
|
+
const ret = wasm.runtimedifhandle_create_pointer(this.__wbg_ptr, value, allowed_type, mutability);
|
|
911
|
+
var ptr1 = ret[0];
|
|
912
|
+
var len1 = ret[1];
|
|
913
|
+
if (ret[3]) {
|
|
914
|
+
ptr1 = 0;
|
|
915
|
+
len1 = 0;
|
|
916
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
917
|
+
}
|
|
918
|
+
deferred2_0 = ptr1;
|
|
919
|
+
deferred2_1 = len1;
|
|
920
|
+
return getStringFromWasm0(ptr1, len1);
|
|
921
|
+
}
|
|
922
|
+
finally {
|
|
923
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
924
|
+
}
|
|
803
925
|
}
|
|
804
926
|
/**
|
|
805
|
-
* @param {
|
|
806
|
-
* @
|
|
927
|
+
* @param {number} transceiver_id
|
|
928
|
+
* @param {string} address
|
|
929
|
+
* @param {any} observe_options
|
|
930
|
+
* @param {Function} callback
|
|
931
|
+
* @returns {number}
|
|
807
932
|
*/
|
|
808
|
-
|
|
809
|
-
const ptr0 = passStringToWasm0(
|
|
933
|
+
observe_pointer(transceiver_id, address, observe_options, callback) {
|
|
934
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
810
935
|
const len0 = WASM_VECTOR_LEN;
|
|
811
|
-
const ret = wasm.
|
|
812
|
-
|
|
936
|
+
const ret = wasm.runtimedifhandle_observe_pointer(this.__wbg_ptr, transceiver_id, ptr0, len0, observe_options, callback);
|
|
937
|
+
if (ret[2]) {
|
|
938
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
939
|
+
}
|
|
940
|
+
return ret[0] >>> 0;
|
|
813
941
|
}
|
|
814
942
|
/**
|
|
815
|
-
* @param {string}
|
|
816
|
-
* @
|
|
943
|
+
* @param {string} address
|
|
944
|
+
* @param {number} observer_id
|
|
817
945
|
*/
|
|
818
|
-
|
|
819
|
-
const ptr0 = passStringToWasm0(
|
|
946
|
+
unobserve_pointer(address, observer_id) {
|
|
947
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
820
948
|
const len0 = WASM_VECTOR_LEN;
|
|
821
|
-
const ret = wasm.
|
|
822
|
-
|
|
949
|
+
const ret = wasm.runtimedifhandle_unobserve_pointer(this.__wbg_ptr, ptr0, len0, observer_id);
|
|
950
|
+
if (ret[1]) {
|
|
951
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
952
|
+
}
|
|
823
953
|
}
|
|
824
954
|
/**
|
|
825
|
-
*
|
|
826
|
-
*
|
|
827
|
-
*
|
|
955
|
+
* Resolve a pointer address, returning a Promise
|
|
956
|
+
* If the pointer is in memory, the promise resolves immediately
|
|
957
|
+
* If the pointer is not in memory, it will be loaded first
|
|
958
|
+
* @param {string} address
|
|
959
|
+
* @returns {any}
|
|
828
960
|
*/
|
|
829
|
-
|
|
830
|
-
const ptr0 = passStringToWasm0(
|
|
961
|
+
resolve_pointer_address(address) {
|
|
962
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
831
963
|
const len0 = WASM_VECTOR_LEN;
|
|
832
|
-
const
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
964
|
+
const ret = wasm.runtimedifhandle_resolve_pointer_address(this.__wbg_ptr, ptr0, len0);
|
|
965
|
+
if (ret[2]) {
|
|
966
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
967
|
+
}
|
|
968
|
+
return takeFromExternrefTable0(ret[0]);
|
|
836
969
|
}
|
|
837
970
|
/**
|
|
838
|
-
* @param {string}
|
|
839
|
-
* @param {
|
|
840
|
-
* @
|
|
971
|
+
* @param {string} address
|
|
972
|
+
* @param {number} observer_id
|
|
973
|
+
* @param {any} observe_options
|
|
841
974
|
*/
|
|
842
|
-
|
|
843
|
-
const ptr0 = passStringToWasm0(
|
|
975
|
+
update_observer_options(address, observer_id, observe_options) {
|
|
976
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
844
977
|
const len0 = WASM_VECTOR_LEN;
|
|
845
|
-
const
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
978
|
+
const ret = wasm.runtimedifhandle_update_observer_options(this.__wbg_ptr, ptr0, len0, observer_id, observe_options);
|
|
979
|
+
if (ret[1]) {
|
|
980
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
981
|
+
}
|
|
849
982
|
}
|
|
850
983
|
/**
|
|
851
|
-
*
|
|
852
|
-
* @param {
|
|
984
|
+
* Resolve a pointer address synchronously if it's in memory, otherwise return an error
|
|
985
|
+
* @param {string} address
|
|
986
|
+
* @returns {any}
|
|
853
987
|
*/
|
|
854
|
-
|
|
855
|
-
const ptr0 = passStringToWasm0(
|
|
988
|
+
resolve_pointer_address_sync(address) {
|
|
989
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
856
990
|
const len0 = WASM_VECTOR_LEN;
|
|
857
|
-
const ret = wasm.
|
|
858
|
-
if (ret[
|
|
859
|
-
throw takeFromExternrefTable0(ret[
|
|
991
|
+
const ret = wasm.runtimedifhandle_resolve_pointer_address_sync(this.__wbg_ptr, ptr0, len0);
|
|
992
|
+
if (ret[2]) {
|
|
993
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
860
994
|
}
|
|
995
|
+
return takeFromExternrefTable0(ret[0]);
|
|
861
996
|
}
|
|
862
997
|
/**
|
|
863
|
-
* @param {
|
|
864
|
-
* @param {
|
|
865
|
-
* @returns {
|
|
998
|
+
* @param {any} callee
|
|
999
|
+
* @param {any} value
|
|
1000
|
+
* @returns {any}
|
|
866
1001
|
*/
|
|
867
|
-
|
|
868
|
-
const
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
return ret;
|
|
1002
|
+
apply(callee, value) {
|
|
1003
|
+
const ret = wasm.runtimedifhandle_apply(this.__wbg_ptr, callee, value);
|
|
1004
|
+
if (ret[2]) {
|
|
1005
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1006
|
+
}
|
|
1007
|
+
return takeFromExternrefTable0(ret[0]);
|
|
874
1008
|
}
|
|
875
1009
|
/**
|
|
876
|
-
* @param {
|
|
877
|
-
* @
|
|
1010
|
+
* @param {number} transceiver_id
|
|
1011
|
+
* @param {string} address
|
|
1012
|
+
* @param {any} update
|
|
878
1013
|
*/
|
|
879
|
-
|
|
880
|
-
const ptr0 = passStringToWasm0(
|
|
1014
|
+
update(transceiver_id, address, update) {
|
|
1015
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
881
1016
|
const len0 = WASM_VECTOR_LEN;
|
|
882
|
-
const ret = wasm.
|
|
883
|
-
|
|
1017
|
+
const ret = wasm.runtimedifhandle_update(this.__wbg_ptr, transceiver_id, ptr0, len0, update);
|
|
1018
|
+
if (ret[1]) {
|
|
1019
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1020
|
+
}
|
|
884
1021
|
}
|
|
885
1022
|
}
|
|
886
1023
|
const WebSocketServerRegistryFinalization = (typeof FinalizationRegistry === "undefined")
|
|
@@ -908,44 +1045,55 @@ export class WebSocketServerRegistry {
|
|
|
908
1045
|
return ret;
|
|
909
1046
|
}
|
|
910
1047
|
}
|
|
911
|
-
export function
|
|
1048
|
+
export function __wbg_Error_90f14b053b2af32f(arg0, arg1) {
|
|
1049
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
1050
|
+
return ret;
|
|
1051
|
+
}
|
|
1052
|
+
export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
1053
|
+
const ret = String(arg1);
|
|
1054
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1055
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1056
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1057
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1058
|
+
}
|
|
1059
|
+
export function __wbg_addIceCandidate_d30d0ef80c221bbc(arg0, arg1) {
|
|
912
1060
|
const ret = arg0.addIceCandidate(arg1);
|
|
913
1061
|
return ret;
|
|
914
1062
|
}
|
|
915
|
-
export function
|
|
1063
|
+
export function __wbg_buffer_4306305a9644b7a1(arg0) {
|
|
916
1064
|
const ret = arg0.buffer;
|
|
917
1065
|
return ret;
|
|
918
1066
|
}
|
|
919
|
-
export function
|
|
920
|
-
return handleError(function (arg0, arg1) {
|
|
921
|
-
const ret = arg0.call(arg1);
|
|
922
|
-
return ret;
|
|
923
|
-
}, arguments);
|
|
924
|
-
}
|
|
925
|
-
export function __wbg_call_7cccdd69e0791ae2() {
|
|
1067
|
+
export function __wbg_call_52af042a326d9b3a() {
|
|
926
1068
|
return handleError(function (arg0, arg1, arg2) {
|
|
927
1069
|
const ret = arg0.call(arg1, arg2);
|
|
928
1070
|
return ret;
|
|
929
1071
|
}, arguments);
|
|
930
1072
|
}
|
|
931
|
-
export function
|
|
1073
|
+
export function __wbg_call_53657fec28b4db96() {
|
|
932
1074
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
933
1075
|
const ret = arg0.call(arg1, arg2, arg3);
|
|
934
1076
|
return ret;
|
|
935
1077
|
}, arguments);
|
|
936
1078
|
}
|
|
937
|
-
export function
|
|
938
|
-
|
|
939
|
-
|
|
1079
|
+
export function __wbg_call_90bf4b9978d51034() {
|
|
1080
|
+
return handleError(function (arg0, arg1) {
|
|
1081
|
+
const ret = arg0.call(arg1);
|
|
1082
|
+
return ret;
|
|
1083
|
+
}, arguments);
|
|
940
1084
|
}
|
|
941
|
-
export function
|
|
1085
|
+
export function __wbg_candidate_5fae2324e7403dfa(arg0, arg1) {
|
|
942
1086
|
const ret = arg1.candidate;
|
|
943
1087
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
944
1088
|
const len1 = WASM_VECTOR_LEN;
|
|
945
1089
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
946
1090
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
947
1091
|
}
|
|
948
|
-
export function
|
|
1092
|
+
export function __wbg_candidate_ead596886b0fedfc(arg0) {
|
|
1093
|
+
const ret = arg0.candidate;
|
|
1094
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1095
|
+
}
|
|
1096
|
+
export function __wbg_channel_61e457f78c31043a(arg0) {
|
|
949
1097
|
const ret = arg0.channel;
|
|
950
1098
|
return ret;
|
|
951
1099
|
}
|
|
@@ -953,57 +1101,68 @@ export function __wbg_clearTimeout_5a54f8841c30079a(arg0) {
|
|
|
953
1101
|
const ret = clearTimeout(arg0);
|
|
954
1102
|
return ret;
|
|
955
1103
|
}
|
|
956
|
-
export function
|
|
957
|
-
const ret = arg0.close();
|
|
958
|
-
return ret;
|
|
959
|
-
}
|
|
960
|
-
export function __wbg_close_2893b7d056a0627d() {
|
|
1104
|
+
export function __wbg_close_638f149c7d475fe2() {
|
|
961
1105
|
return handleError(function (arg0) {
|
|
962
1106
|
arg0.close();
|
|
963
1107
|
}, arguments);
|
|
964
1108
|
}
|
|
965
|
-
export function
|
|
1109
|
+
export function __wbg_close_8549dc01dfea7b11(arg0) {
|
|
966
1110
|
arg0.close();
|
|
967
1111
|
}
|
|
968
|
-
export function
|
|
1112
|
+
export function __wbg_close_d6a549256eca132f(arg0) {
|
|
1113
|
+
const ret = arg0.close();
|
|
1114
|
+
return ret;
|
|
1115
|
+
}
|
|
1116
|
+
export function __wbg_createAnswer_e3e0054dec77805c(arg0) {
|
|
969
1117
|
const ret = arg0.createAnswer();
|
|
970
1118
|
return ret;
|
|
971
1119
|
}
|
|
972
|
-
export function
|
|
1120
|
+
export function __wbg_createDataChannel_056c757d04227abd(arg0, arg1, arg2) {
|
|
973
1121
|
const ret = arg0.createDataChannel(getStringFromWasm0(arg1, arg2));
|
|
974
1122
|
return ret;
|
|
975
1123
|
}
|
|
976
|
-
export function
|
|
1124
|
+
export function __wbg_createOffer_b38b38d4bfddded6(arg0) {
|
|
977
1125
|
const ret = arg0.createOffer();
|
|
978
1126
|
return ret;
|
|
979
1127
|
}
|
|
980
|
-
export function
|
|
1128
|
+
export function __wbg_crypto_2c3cb8e5d6218ee2() {
|
|
981
1129
|
return handleError(function (arg0) {
|
|
982
1130
|
const ret = arg0.crypto;
|
|
983
1131
|
return ret;
|
|
984
1132
|
}, arguments);
|
|
985
1133
|
}
|
|
986
|
-
export function
|
|
1134
|
+
export function __wbg_data_f0e9cb0e6e0623e9(arg0) {
|
|
987
1135
|
const ret = arg0.data;
|
|
988
1136
|
return ret;
|
|
989
1137
|
}
|
|
990
|
-
export function
|
|
1138
|
+
export function __wbg_debug_821a62abfb5c8abe(arg0) {
|
|
991
1139
|
console.debug(arg0);
|
|
992
1140
|
}
|
|
993
|
-
export function
|
|
994
|
-
return handleError(function (arg0, arg1, arg2, arg3
|
|
995
|
-
const ret = arg0.decrypt(
|
|
1141
|
+
export function __wbg_decrypt_e716369376a7f617() {
|
|
1142
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1143
|
+
const ret = arg0.decrypt(arg1, arg2, arg3);
|
|
996
1144
|
return ret;
|
|
997
1145
|
}, arguments);
|
|
998
1146
|
}
|
|
999
|
-
export function
|
|
1000
|
-
return handleError(function (arg0, arg1, arg2, arg3
|
|
1001
|
-
const ret = arg0.
|
|
1147
|
+
export function __wbg_deriveBits_1a9edc6089a95027() {
|
|
1148
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1149
|
+
const ret = arg0.deriveBits(arg1, arg2, arg3 >>> 0);
|
|
1002
1150
|
return ret;
|
|
1003
1151
|
}, arguments);
|
|
1004
1152
|
}
|
|
1005
|
-
export function
|
|
1006
|
-
|
|
1153
|
+
export function __wbg_done_73bb10bcf6e0c339(arg0) {
|
|
1154
|
+
const ret = arg0.done;
|
|
1155
|
+
return ret;
|
|
1156
|
+
}
|
|
1157
|
+
export function __wbg_encrypt_fb74c4ff01001025() {
|
|
1158
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1159
|
+
const ret = arg0.encrypt(arg1, arg2, arg3);
|
|
1160
|
+
return ret;
|
|
1161
|
+
}, arguments);
|
|
1162
|
+
}
|
|
1163
|
+
export function __wbg_entries_4f3de4ccde51d587(arg0) {
|
|
1164
|
+
const ret = Object.entries(arg0);
|
|
1165
|
+
return ret;
|
|
1007
1166
|
}
|
|
1008
1167
|
export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
1009
1168
|
let deferred0_0;
|
|
@@ -1017,45 +1176,52 @@ export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
|
1017
1176
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1018
1177
|
}
|
|
1019
1178
|
}
|
|
1020
|
-
export function
|
|
1179
|
+
export function __wbg_error_cddcc4ca22b41392(arg0) {
|
|
1180
|
+
console.error(arg0);
|
|
1181
|
+
}
|
|
1182
|
+
export function __wbg_exportKey_f3817c0e47a2214a() {
|
|
1021
1183
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1022
1184
|
const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
|
|
1023
1185
|
return ret;
|
|
1024
1186
|
}, arguments);
|
|
1025
1187
|
}
|
|
1026
|
-
export function
|
|
1188
|
+
export function __wbg_generateKey_7268fe0931b0d15b() {
|
|
1027
1189
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1028
1190
|
const ret = arg0.generateKey(arg1, arg2 !== 0, arg3);
|
|
1029
1191
|
return ret;
|
|
1030
1192
|
}, arguments);
|
|
1031
1193
|
}
|
|
1032
|
-
export function
|
|
1194
|
+
export function __wbg_getRandomValues_3619f455599fc471() {
|
|
1033
1195
|
return handleError(function (arg0, arg1, arg2) {
|
|
1034
1196
|
const ret = arg0.getRandomValues(getArrayU8FromWasm0(arg1, arg2));
|
|
1035
1197
|
return ret;
|
|
1036
1198
|
}, arguments);
|
|
1037
1199
|
}
|
|
1038
|
-
export function
|
|
1200
|
+
export function __wbg_getReader_7a22d9552d37d984(arg0) {
|
|
1039
1201
|
const ret = arg0.getReader();
|
|
1040
1202
|
return ret;
|
|
1041
1203
|
}
|
|
1042
|
-
export function
|
|
1204
|
+
export function __wbg_getWriter_b5f5e1e223a62f8b() {
|
|
1043
1205
|
return handleError(function (arg0) {
|
|
1044
1206
|
const ret = arg0.getWriter();
|
|
1045
1207
|
return ret;
|
|
1046
1208
|
}, arguments);
|
|
1047
1209
|
}
|
|
1048
|
-
export function
|
|
1210
|
+
export function __wbg_get_6e64f6b3af0c61a2(arg0, arg1) {
|
|
1211
|
+
const ret = arg0[arg1 >>> 0];
|
|
1212
|
+
return ret;
|
|
1213
|
+
}
|
|
1214
|
+
export function __wbg_get_bb21663672334172() {
|
|
1049
1215
|
return handleError(function (arg0, arg1) {
|
|
1050
1216
|
const ret = Reflect.get(arg0, arg1);
|
|
1051
1217
|
return ret;
|
|
1052
1218
|
}, arguments);
|
|
1053
1219
|
}
|
|
1054
|
-
export function
|
|
1220
|
+
export function __wbg_getprivatekey_170ff431c1a416c4(arg0) {
|
|
1055
1221
|
const ret = arg0.privateKey;
|
|
1056
1222
|
return ret;
|
|
1057
1223
|
}
|
|
1058
|
-
export function
|
|
1224
|
+
export function __wbg_getpublickey_01166b94c1b6c58f(arg0) {
|
|
1059
1225
|
const ret = arg0.publicKey;
|
|
1060
1226
|
return ret;
|
|
1061
1227
|
}
|
|
@@ -1063,20 +1229,20 @@ export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) {
|
|
|
1063
1229
|
const ret = arg0[arg1];
|
|
1064
1230
|
return ret;
|
|
1065
1231
|
}
|
|
1066
|
-
export function
|
|
1232
|
+
export function __wbg_iceConnectionState_0f6070a8df4a7d2a(arg0) {
|
|
1067
1233
|
const ret = arg0.iceConnectionState;
|
|
1068
1234
|
return (__wbindgen_enum_RtcIceConnectionState.indexOf(ret) + 1 || 8) - 1;
|
|
1069
1235
|
}
|
|
1070
|
-
export function
|
|
1236
|
+
export function __wbg_importKey_74124887ebd6465e() {
|
|
1071
1237
|
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1072
1238
|
const ret = arg0.importKey(getStringFromWasm0(arg1, arg2), arg3, arg4, arg5 !== 0, arg6);
|
|
1073
1239
|
return ret;
|
|
1074
1240
|
}, arguments);
|
|
1075
1241
|
}
|
|
1076
|
-
export function
|
|
1242
|
+
export function __wbg_info_3a3a4139acdeb4df(arg0) {
|
|
1077
1243
|
console.info(arg0);
|
|
1078
1244
|
}
|
|
1079
|
-
export function
|
|
1245
|
+
export function __wbg_instanceof_ArrayBuffer_625e762023eb35cf(arg0) {
|
|
1080
1246
|
let result;
|
|
1081
1247
|
try {
|
|
1082
1248
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -1087,7 +1253,7 @@ export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
|
|
|
1087
1253
|
const ret = result;
|
|
1088
1254
|
return ret;
|
|
1089
1255
|
}
|
|
1090
|
-
export function
|
|
1256
|
+
export function __wbg_instanceof_CryptoKey_d94aaf75de500efb(arg0) {
|
|
1091
1257
|
let result;
|
|
1092
1258
|
try {
|
|
1093
1259
|
result = arg0 instanceof dntShim.CryptoKey;
|
|
@@ -1098,7 +1264,18 @@ export function __wbg_instanceof_CryptoKey_63353526509ba4a2(arg0) {
|
|
|
1098
1264
|
const ret = result;
|
|
1099
1265
|
return ret;
|
|
1100
1266
|
}
|
|
1101
|
-
export function
|
|
1267
|
+
export function __wbg_instanceof_Map_7d3de120a6cca988(arg0) {
|
|
1268
|
+
let result;
|
|
1269
|
+
try {
|
|
1270
|
+
result = arg0 instanceof Map;
|
|
1271
|
+
}
|
|
1272
|
+
catch (_) {
|
|
1273
|
+
result = false;
|
|
1274
|
+
}
|
|
1275
|
+
const ret = result;
|
|
1276
|
+
return ret;
|
|
1277
|
+
}
|
|
1278
|
+
export function __wbg_instanceof_Object_a18b8a09eff6c66c(arg0) {
|
|
1102
1279
|
let result;
|
|
1103
1280
|
try {
|
|
1104
1281
|
result = arg0 instanceof Object;
|
|
@@ -1109,7 +1286,7 @@ export function __wbg_instanceof_Object_7f2dcef8f78644a4(arg0) {
|
|
|
1109
1286
|
const ret = result;
|
|
1110
1287
|
return ret;
|
|
1111
1288
|
}
|
|
1112
|
-
export function
|
|
1289
|
+
export function __wbg_instanceof_ReadableStreamDefaultReader_7ec8ae6c604d9f3d(arg0) {
|
|
1113
1290
|
let result;
|
|
1114
1291
|
try {
|
|
1115
1292
|
result = arg0 instanceof ReadableStreamDefaultReader;
|
|
@@ -1120,7 +1297,7 @@ export function __wbg_instanceof_ReadableStreamDefaultReader_056dcea99b3557aa(ar
|
|
|
1120
1297
|
const ret = result;
|
|
1121
1298
|
return ret;
|
|
1122
1299
|
}
|
|
1123
|
-
export function
|
|
1300
|
+
export function __wbg_instanceof_Uint8Array_6935b7b95ef40080(arg0) {
|
|
1124
1301
|
let result;
|
|
1125
1302
|
try {
|
|
1126
1303
|
result = arg0 instanceof Uint8Array;
|
|
@@ -1131,7 +1308,7 @@ export function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0) {
|
|
|
1131
1308
|
const ret = result;
|
|
1132
1309
|
return ret;
|
|
1133
1310
|
}
|
|
1134
|
-
export function
|
|
1311
|
+
export function __wbg_instanceof_Window_c876e2ca9d808fb0(arg0) {
|
|
1135
1312
|
let result;
|
|
1136
1313
|
try {
|
|
1137
1314
|
result = arg0 instanceof Window;
|
|
@@ -1142,39 +1319,73 @@ export function __wbg_instanceof_Window_def73ea0955fc569(arg0) {
|
|
|
1142
1319
|
const ret = result;
|
|
1143
1320
|
return ret;
|
|
1144
1321
|
}
|
|
1145
|
-
export function
|
|
1322
|
+
export function __wbg_isArray_fe31d4a8d77ae781(arg0) {
|
|
1323
|
+
const ret = Array.isArray(arg0);
|
|
1324
|
+
return ret;
|
|
1325
|
+
}
|
|
1326
|
+
export function __wbg_isSafeInteger_342db8cae87edb4e(arg0) {
|
|
1327
|
+
const ret = Number.isSafeInteger(arg0);
|
|
1328
|
+
return ret;
|
|
1329
|
+
}
|
|
1330
|
+
export function __wbg_iterator_fe047a6b04943f88() {
|
|
1331
|
+
const ret = Symbol.iterator;
|
|
1332
|
+
return ret;
|
|
1333
|
+
}
|
|
1334
|
+
export function __wbg_label_9af8b6c0978cb673(arg0, arg1) {
|
|
1146
1335
|
const ret = arg1.label;
|
|
1147
1336
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1148
1337
|
const len1 = WASM_VECTOR_LEN;
|
|
1149
1338
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1150
1339
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1151
1340
|
}
|
|
1152
|
-
export function
|
|
1341
|
+
export function __wbg_length_09646ad20ebb8534(arg0) {
|
|
1342
|
+
const ret = arg0.length;
|
|
1343
|
+
return ret;
|
|
1344
|
+
}
|
|
1345
|
+
export function __wbg_length_537fa63a6103cbdb(arg0) {
|
|
1153
1346
|
const ret = arg0.length;
|
|
1154
1347
|
return ret;
|
|
1155
1348
|
}
|
|
1156
|
-
export function
|
|
1349
|
+
export function __wbg_log_8316aef0a82fc256(arg0) {
|
|
1157
1350
|
console.log(arg0);
|
|
1158
1351
|
}
|
|
1159
|
-
export function
|
|
1352
|
+
export function __wbg_message_b5e786b918031475(arg0, arg1) {
|
|
1160
1353
|
const ret = arg1.message;
|
|
1161
1354
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1162
1355
|
const len1 = WASM_VECTOR_LEN;
|
|
1163
1356
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1164
1357
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1165
1358
|
}
|
|
1166
|
-
export function
|
|
1359
|
+
export function __wbg_navigator_bfcd7da4e07140bf(arg0) {
|
|
1167
1360
|
const ret = arg0.navigator;
|
|
1168
1361
|
return ret;
|
|
1169
1362
|
}
|
|
1170
|
-
export function
|
|
1363
|
+
export function __wbg_new_1b925e0c0e1d30ba() {
|
|
1364
|
+
const ret = new Object();
|
|
1365
|
+
return ret;
|
|
1366
|
+
}
|
|
1367
|
+
export function __wbg_new_3c48ee6a683248da() {
|
|
1368
|
+
const ret = new Map();
|
|
1369
|
+
return ret;
|
|
1370
|
+
}
|
|
1371
|
+
export function __wbg_new_8a6f238a6ece86ea() {
|
|
1372
|
+
const ret = new Error();
|
|
1373
|
+
return ret;
|
|
1374
|
+
}
|
|
1375
|
+
export function __wbg_new_b25e3e4428c04a92() {
|
|
1376
|
+
return handleError(function (arg0, arg1) {
|
|
1377
|
+
const ret = new dntShim.WebSocket(getStringFromWasm0(arg0, arg1));
|
|
1378
|
+
return ret;
|
|
1379
|
+
}, arguments);
|
|
1380
|
+
}
|
|
1381
|
+
export function __wbg_new_b38cbb8a106768cf(arg0, arg1) {
|
|
1171
1382
|
try {
|
|
1172
1383
|
var state0 = { a: arg0, b: arg1 };
|
|
1173
1384
|
var cb0 = (arg0, arg1) => {
|
|
1174
1385
|
const a = state0.a;
|
|
1175
1386
|
state0.a = 0;
|
|
1176
1387
|
try {
|
|
1177
|
-
return
|
|
1388
|
+
return __wbg_adapter_325(a, state0.b, arg0, arg1);
|
|
1178
1389
|
}
|
|
1179
1390
|
finally {
|
|
1180
1391
|
state0.a = a;
|
|
@@ -1187,96 +1398,103 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
|
1187
1398
|
state0.a = state0.b = 0;
|
|
1188
1399
|
}
|
|
1189
1400
|
}
|
|
1190
|
-
export function
|
|
1191
|
-
const ret = new
|
|
1401
|
+
export function __wbg_new_d6b08dae7359cebb(arg0) {
|
|
1402
|
+
const ret = new Uint8Array(arg0);
|
|
1192
1403
|
return ret;
|
|
1193
1404
|
}
|
|
1194
|
-
export function
|
|
1405
|
+
export function __wbg_new_d8a154d0939e6bb4() {
|
|
1195
1406
|
const ret = new Array();
|
|
1196
1407
|
return ret;
|
|
1197
1408
|
}
|
|
1198
|
-
export function
|
|
1199
|
-
const ret = new
|
|
1409
|
+
export function __wbg_newfromslice_87a363f6accf981c(arg0, arg1) {
|
|
1410
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1200
1411
|
return ret;
|
|
1201
1412
|
}
|
|
1202
|
-
export function
|
|
1203
|
-
|
|
1204
|
-
|
|
1413
|
+
export function __wbg_newnoargs_863941679b1933bb(arg0, arg1) {
|
|
1414
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1415
|
+
return ret;
|
|
1416
|
+
}
|
|
1417
|
+
export function __wbg_newwithconfiguration_e31d60b169b07345() {
|
|
1418
|
+
return handleError(function (arg0) {
|
|
1419
|
+
const ret = new RTCPeerConnection(arg0);
|
|
1205
1420
|
return ret;
|
|
1206
1421
|
}, arguments);
|
|
1207
1422
|
}
|
|
1208
|
-
export function
|
|
1209
|
-
const ret = new Uint8Array(arg0);
|
|
1210
|
-
return ret;
|
|
1211
|
-
}
|
|
1212
|
-
export function __wbg_newnoargs_105ed471475aaf50(arg0, arg1) {
|
|
1213
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1423
|
+
export function __wbg_newwithlength_79dd8226b146df94(arg0) {
|
|
1424
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
1214
1425
|
return ret;
|
|
1215
1426
|
}
|
|
1216
|
-
export function
|
|
1217
|
-
const ret =
|
|
1427
|
+
export function __wbg_next_59846e169128a0ea(arg0) {
|
|
1428
|
+
const ret = arg0.next;
|
|
1218
1429
|
return ret;
|
|
1219
1430
|
}
|
|
1220
|
-
export function
|
|
1431
|
+
export function __wbg_next_c782e76a0400870a() {
|
|
1221
1432
|
return handleError(function (arg0) {
|
|
1222
|
-
const ret =
|
|
1433
|
+
const ret = arg0.next();
|
|
1223
1434
|
return ret;
|
|
1224
1435
|
}, arguments);
|
|
1225
1436
|
}
|
|
1226
|
-
export function
|
|
1227
|
-
const ret =
|
|
1437
|
+
export function __wbg_now_5180ef7a3cc4af32() {
|
|
1438
|
+
const ret = Date.now();
|
|
1228
1439
|
return ret;
|
|
1229
1440
|
}
|
|
1230
|
-
export function
|
|
1231
|
-
const ret =
|
|
1441
|
+
export function __wbg_of_2859a6983dba31e5(arg0, arg1) {
|
|
1442
|
+
const ret = Array.of(arg0, arg1);
|
|
1443
|
+
return ret;
|
|
1444
|
+
}
|
|
1445
|
+
export function __wbg_of_289f191f9197ad69(arg0) {
|
|
1446
|
+
const ret = Array.of(arg0);
|
|
1232
1447
|
return ret;
|
|
1233
1448
|
}
|
|
1234
|
-
export function
|
|
1449
|
+
export function __wbg_open_0efe15f86bc721e6(arg0, arg1) {
|
|
1235
1450
|
const ret = arg0.open(arg1);
|
|
1236
1451
|
return ret;
|
|
1237
1452
|
}
|
|
1238
|
-
export function
|
|
1453
|
+
export function __wbg_prototypesetcall_a81ac58a5b6e988c(arg0, arg1, arg2) {
|
|
1454
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1455
|
+
}
|
|
1456
|
+
export function __wbg_push_a625ffb414ba40f2(arg0, arg1) {
|
|
1239
1457
|
const ret = arg0.push(arg1);
|
|
1240
1458
|
return ret;
|
|
1241
1459
|
}
|
|
1242
|
-
export function
|
|
1460
|
+
export function __wbg_queueMicrotask_1d75ffff194a09bc(arg0) {
|
|
1243
1461
|
queueMicrotask(arg0);
|
|
1244
1462
|
}
|
|
1245
|
-
export function
|
|
1463
|
+
export function __wbg_queueMicrotask_b9a8d325fc1ebe35(arg0) {
|
|
1246
1464
|
const ret = arg0.queueMicrotask;
|
|
1247
1465
|
return ret;
|
|
1248
1466
|
}
|
|
1249
|
-
export function
|
|
1467
|
+
export function __wbg_randomUUID_85051d14db410091(arg0, arg1) {
|
|
1250
1468
|
const ret = arg1.randomUUID();
|
|
1251
1469
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1252
1470
|
const len1 = WASM_VECTOR_LEN;
|
|
1253
1471
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1254
1472
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1255
1473
|
}
|
|
1256
|
-
export function
|
|
1474
|
+
export function __wbg_read_14bb033442221e81(arg0) {
|
|
1257
1475
|
const ret = arg0.read();
|
|
1258
1476
|
return ret;
|
|
1259
1477
|
}
|
|
1260
|
-
export function
|
|
1478
|
+
export function __wbg_readable_7ec80c1586d658e5(arg0) {
|
|
1261
1479
|
const ret = arg0.readable;
|
|
1262
1480
|
return ret;
|
|
1263
1481
|
}
|
|
1264
|
-
export function
|
|
1482
|
+
export function __wbg_releaseLock_838e4a60f0d078e3(arg0) {
|
|
1265
1483
|
arg0.releaseLock();
|
|
1266
1484
|
}
|
|
1267
|
-
export function
|
|
1485
|
+
export function __wbg_requestPort_a6ccb8604c419278(arg0) {
|
|
1268
1486
|
const ret = arg0.requestPort();
|
|
1269
1487
|
return ret;
|
|
1270
1488
|
}
|
|
1271
|
-
export function
|
|
1489
|
+
export function __wbg_resolve_f9faa06f9350ac82(arg0) {
|
|
1272
1490
|
const ret = Promise.resolve(arg0);
|
|
1273
1491
|
return ret;
|
|
1274
1492
|
}
|
|
1275
|
-
export function
|
|
1493
|
+
export function __wbg_sdpMLineIndex_98e1c9feb78bd935(arg0) {
|
|
1276
1494
|
const ret = arg0.sdpMLineIndex;
|
|
1277
1495
|
return isLikeNone(ret) ? 0xFFFFFF : ret;
|
|
1278
1496
|
}
|
|
1279
|
-
export function
|
|
1497
|
+
export function __wbg_sdpMid_8f79fa4a713266f3(arg0, arg1) {
|
|
1280
1498
|
const ret = arg1.sdpMid;
|
|
1281
1499
|
var ptr1 = isLikeNone(ret)
|
|
1282
1500
|
? 0
|
|
@@ -1285,25 +1503,25 @@ export function __wbg_sdpMid_b49f63c44ec872ab(arg0, arg1) {
|
|
|
1285
1503
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1286
1504
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1287
1505
|
}
|
|
1288
|
-
export function
|
|
1506
|
+
export function __wbg_send_1bcf47fc78631aa0() {
|
|
1289
1507
|
return handleError(function (arg0, arg1, arg2) {
|
|
1290
1508
|
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
1291
1509
|
}, arguments);
|
|
1292
1510
|
}
|
|
1293
|
-
export function
|
|
1511
|
+
export function __wbg_send_44e731d4290d5a73() {
|
|
1294
1512
|
return handleError(function (arg0, arg1, arg2) {
|
|
1295
1513
|
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
1296
1514
|
}, arguments);
|
|
1297
1515
|
}
|
|
1298
|
-
export function
|
|
1516
|
+
export function __wbg_serial_40f96691ceac10c3(arg0) {
|
|
1299
1517
|
const ret = arg0.serial;
|
|
1300
1518
|
return ret;
|
|
1301
1519
|
}
|
|
1302
|
-
export function
|
|
1520
|
+
export function __wbg_setLocalDescription_e4d3e96a7ea79f26(arg0, arg1) {
|
|
1303
1521
|
const ret = arg0.setLocalDescription(arg1);
|
|
1304
1522
|
return ret;
|
|
1305
1523
|
}
|
|
1306
|
-
export function
|
|
1524
|
+
export function __wbg_setRemoteDescription_11eaf6e756e370af(arg0, arg1) {
|
|
1307
1525
|
const ret = arg0.setRemoteDescription(arg1);
|
|
1308
1526
|
return ret;
|
|
1309
1527
|
}
|
|
@@ -1313,82 +1531,101 @@ export function __wbg_setTimeout_db2dbaeefb6f39c7() {
|
|
|
1313
1531
|
return ret;
|
|
1314
1532
|
}, arguments);
|
|
1315
1533
|
}
|
|
1316
|
-
export function
|
|
1317
|
-
arg0
|
|
1534
|
+
export function __wbg_set_038a8a067d895c6a(arg0, arg1, arg2) {
|
|
1535
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1536
|
+
}
|
|
1537
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
1538
|
+
arg0[arg1] = arg2;
|
|
1539
|
+
}
|
|
1540
|
+
export function __wbg_set_a15b7b524330d4f1(arg0, arg1, arg2) {
|
|
1541
|
+
const ret = arg0.set(arg1, arg2);
|
|
1542
|
+
return ret;
|
|
1318
1543
|
}
|
|
1319
|
-
export function
|
|
1544
|
+
export function __wbg_set_d66063c1f1a1157e() {
|
|
1320
1545
|
return handleError(function (arg0, arg1, arg2) {
|
|
1321
1546
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1322
1547
|
return ret;
|
|
1323
1548
|
}, arguments);
|
|
1324
1549
|
}
|
|
1325
|
-
export function
|
|
1550
|
+
export function __wbg_set_f59709bcbf07327f(arg0, arg1, arg2) {
|
|
1551
|
+
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
1552
|
+
}
|
|
1553
|
+
export function __wbg_setbaudrate_c1408a20012d2fea(arg0, arg1) {
|
|
1326
1554
|
arg0.baudRate = arg1 >>> 0;
|
|
1327
1555
|
}
|
|
1328
|
-
export function
|
|
1556
|
+
export function __wbg_setbinaryType_6091041926b40e35(arg0, arg1) {
|
|
1329
1557
|
arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
1330
1558
|
}
|
|
1331
|
-
export function
|
|
1559
|
+
export function __wbg_setcandidate_1e50b3faa4cb6898(arg0, arg1, arg2) {
|
|
1332
1560
|
arg0.candidate = getStringFromWasm0(arg1, arg2);
|
|
1333
1561
|
}
|
|
1334
|
-
export function
|
|
1562
|
+
export function __wbg_setcounter_18676403b6ecb17b(arg0, arg1) {
|
|
1563
|
+
arg0.counter = arg1;
|
|
1564
|
+
}
|
|
1565
|
+
export function __wbg_setcredential_db5f85a45e99080f(arg0, arg1, arg2) {
|
|
1335
1566
|
arg0.credential = getStringFromWasm0(arg1, arg2);
|
|
1336
1567
|
}
|
|
1337
|
-
export function
|
|
1568
|
+
export function __wbg_seticeservers_5d7af60fbe042a35(arg0, arg1) {
|
|
1338
1569
|
arg0.iceServers = arg1;
|
|
1339
1570
|
}
|
|
1340
|
-
export function
|
|
1571
|
+
export function __wbg_setlength_7f0aa2baf6d66fca(arg0, arg1) {
|
|
1572
|
+
arg0.length = arg1;
|
|
1573
|
+
}
|
|
1574
|
+
export function __wbg_setname_4a9a427f573e71fa(arg0, arg1, arg2) {
|
|
1575
|
+
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
1576
|
+
}
|
|
1577
|
+
export function __wbg_setonclose_ed36c5c56fb23784(arg0, arg1) {
|
|
1341
1578
|
arg0.onclose = arg1;
|
|
1342
1579
|
}
|
|
1343
|
-
export function
|
|
1580
|
+
export function __wbg_setondatachannel_b81d44bff7b6b543(arg0, arg1) {
|
|
1344
1581
|
arg0.ondatachannel = arg1;
|
|
1345
1582
|
}
|
|
1346
|
-
export function
|
|
1583
|
+
export function __wbg_setonerror_9368e4812d62d001(arg0, arg1) {
|
|
1347
1584
|
arg0.onerror = arg1;
|
|
1348
1585
|
}
|
|
1349
|
-
export function
|
|
1586
|
+
export function __wbg_setonicecandidate_0c6b4a18b7bfc77c(arg0, arg1) {
|
|
1350
1587
|
arg0.onicecandidate = arg1;
|
|
1351
1588
|
}
|
|
1352
|
-
export function
|
|
1589
|
+
export function __wbg_setoniceconnectionstatechange_f9c5b45d1c0c51f0(arg0, arg1) {
|
|
1353
1590
|
arg0.oniceconnectionstatechange = arg1;
|
|
1354
1591
|
}
|
|
1355
|
-
export function
|
|
1592
|
+
export function __wbg_setonmessage_030be9b28b78c8a3(arg0, arg1) {
|
|
1356
1593
|
arg0.onmessage = arg1;
|
|
1357
1594
|
}
|
|
1358
|
-
export function
|
|
1595
|
+
export function __wbg_setonmessage_ffc0f16e27e94b4f(arg0, arg1) {
|
|
1359
1596
|
arg0.onmessage = arg1;
|
|
1360
1597
|
}
|
|
1361
|
-
export function
|
|
1598
|
+
export function __wbg_setonopen_76f948be177d1574(arg0, arg1) {
|
|
1362
1599
|
arg0.onopen = arg1;
|
|
1363
1600
|
}
|
|
1364
|
-
export function
|
|
1601
|
+
export function __wbg_setonopen_efe76fab4b23b530(arg0, arg1) {
|
|
1365
1602
|
arg0.onopen = arg1;
|
|
1366
1603
|
}
|
|
1367
|
-
export function
|
|
1604
|
+
export function __wbg_setsdp_fb3173e0c6e78c7b(arg0, arg1, arg2) {
|
|
1368
1605
|
arg0.sdp = getStringFromWasm0(arg1, arg2);
|
|
1369
1606
|
}
|
|
1370
|
-
export function
|
|
1607
|
+
export function __wbg_setsdpmid_3c07633e6eebbe04(arg0, arg1, arg2) {
|
|
1371
1608
|
arg0.sdpMid = arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2);
|
|
1372
1609
|
}
|
|
1373
|
-
export function
|
|
1610
|
+
export function __wbg_setsdpmlineindex_d42db9413e5bf9a0(arg0, arg1) {
|
|
1374
1611
|
arg0.sdpMLineIndex = arg1 === 0xFFFFFF ? undefined : arg1;
|
|
1375
1612
|
}
|
|
1376
|
-
export function
|
|
1613
|
+
export function __wbg_settype_d383fc16fe2fde7c(arg0, arg1) {
|
|
1377
1614
|
arg0.type = __wbindgen_enum_RtcSdpType[arg1];
|
|
1378
1615
|
}
|
|
1379
|
-
export function
|
|
1616
|
+
export function __wbg_seturls_93ea5b2e75cf2b4a(arg0, arg1) {
|
|
1380
1617
|
arg0.urls = arg1;
|
|
1381
1618
|
}
|
|
1382
|
-
export function
|
|
1619
|
+
export function __wbg_setusername_42163d74b1e71463(arg0, arg1, arg2) {
|
|
1383
1620
|
arg0.username = getStringFromWasm0(arg1, arg2);
|
|
1384
1621
|
}
|
|
1385
|
-
export function
|
|
1622
|
+
export function __wbg_sign_19ea6b84becfe8db() {
|
|
1386
1623
|
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1387
1624
|
const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
|
|
1388
1625
|
return ret;
|
|
1389
1626
|
}, arguments);
|
|
1390
1627
|
}
|
|
1391
|
-
export function
|
|
1628
|
+
export function __wbg_signalingState_6034a1804910b307(arg0) {
|
|
1392
1629
|
const ret = arg0.signalingState;
|
|
1393
1630
|
return (__wbindgen_enum_RtcSignalingState.indexOf(ret) + 1 || 7) - 1;
|
|
1394
1631
|
}
|
|
@@ -1399,57 +1636,65 @@ export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
|
|
|
1399
1636
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1400
1637
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1401
1638
|
}
|
|
1402
|
-
export function
|
|
1639
|
+
export function __wbg_static_accessor_GLOBAL_656a564fb01c5b63() {
|
|
1403
1640
|
const ret = typeof global === "undefined" ? null : global;
|
|
1404
1641
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1405
1642
|
}
|
|
1406
|
-
export function
|
|
1643
|
+
export function __wbg_static_accessor_GLOBAL_THIS_09a6cc4b9571ef65() {
|
|
1407
1644
|
const ret = typeof dntShim.dntGlobalThis === "undefined" ? null : dntShim.dntGlobalThis;
|
|
1408
1645
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1409
1646
|
}
|
|
1410
|
-
export function
|
|
1647
|
+
export function __wbg_static_accessor_SELF_36742aea97854d74() {
|
|
1411
1648
|
const ret = typeof self === "undefined" ? null : self;
|
|
1412
1649
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1413
1650
|
}
|
|
1414
|
-
export function
|
|
1651
|
+
export function __wbg_static_accessor_WINDOW_0ce0d90b0830e7e6() {
|
|
1415
1652
|
const ret = typeof dntShim.dntGlobalThis === "undefined" ? null : dntShim.dntGlobalThis;
|
|
1416
1653
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1417
1654
|
}
|
|
1418
|
-
export function
|
|
1655
|
+
export function __wbg_subtle_72c6c8c71350ad31(arg0) {
|
|
1419
1656
|
const ret = arg0.subtle;
|
|
1420
1657
|
return ret;
|
|
1421
1658
|
}
|
|
1422
|
-
export function
|
|
1659
|
+
export function __wbg_then_66350f316a20107b(arg0, arg1) {
|
|
1423
1660
|
const ret = arg0.then(arg1);
|
|
1424
1661
|
return ret;
|
|
1425
1662
|
}
|
|
1426
|
-
export function
|
|
1663
|
+
export function __wbg_then_a8d64a36c84944e9(arg0, arg1, arg2) {
|
|
1427
1664
|
const ret = arg0.then(arg1, arg2);
|
|
1428
1665
|
return ret;
|
|
1429
1666
|
}
|
|
1430
|
-
export function
|
|
1667
|
+
export function __wbg_unwrapKey_76382cc7df3f3261() {
|
|
1668
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1669
|
+
const ret = arg0.unwrapKey(getStringFromWasm0(arg1, arg2), arg3, arg4, getStringFromWasm0(arg5, arg6), arg7, arg8 !== 0, arg9);
|
|
1670
|
+
return ret;
|
|
1671
|
+
}, arguments);
|
|
1672
|
+
}
|
|
1673
|
+
export function __wbg_value_4ae21701b6f5c482(arg0) {
|
|
1674
|
+
const ret = arg0.value;
|
|
1675
|
+
return ret;
|
|
1676
|
+
}
|
|
1677
|
+
export function __wbg_verify_7f5ab750759e4bbf() {
|
|
1431
1678
|
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1432
1679
|
const ret = arg0.verify(arg1, arg2, getArrayU8FromWasm0(arg3, arg4), getArrayU8FromWasm0(arg5, arg6));
|
|
1433
1680
|
return ret;
|
|
1434
1681
|
}, arguments);
|
|
1435
1682
|
}
|
|
1436
|
-
export function
|
|
1683
|
+
export function __wbg_warn_c3f81464a835231a(arg0) {
|
|
1437
1684
|
console.warn(arg0);
|
|
1438
1685
|
}
|
|
1439
|
-
export function
|
|
1440
|
-
const
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
const ret = arg0.write(arg1);
|
|
1445
|
-
return ret;
|
|
1686
|
+
export function __wbg_wbindgenbigintgetasi64_d3d568a64e846827(arg0, arg1) {
|
|
1687
|
+
const v = arg1;
|
|
1688
|
+
const ret = typeof v === "bigint" ? v : undefined;
|
|
1689
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1690
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1446
1691
|
}
|
|
1447
|
-
export function
|
|
1692
|
+
export function __wbg_wbindgenbooleanget_527bfac1bf7c06df(arg0) {
|
|
1448
1693
|
const v = arg0;
|
|
1449
|
-
const ret = typeof v === "boolean" ?
|
|
1450
|
-
return ret;
|
|
1694
|
+
const ret = typeof v === "boolean" ? v : undefined;
|
|
1695
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1451
1696
|
}
|
|
1452
|
-
export function
|
|
1697
|
+
export function __wbg_wbindgencbdrop_470850fcb28f4519(arg0) {
|
|
1453
1698
|
const obj = arg0.original;
|
|
1454
1699
|
if (obj.cnt-- == 1) {
|
|
1455
1700
|
obj.a = 0;
|
|
@@ -1458,86 +1703,57 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
1458
1703
|
const ret = false;
|
|
1459
1704
|
return ret;
|
|
1460
1705
|
}
|
|
1461
|
-
export function
|
|
1462
|
-
const ret = makeMutClosure(arg0, arg1, 1039, __wbg_adapter_49);
|
|
1463
|
-
return ret;
|
|
1464
|
-
}
|
|
1465
|
-
export function __wbindgen_closure_wrapper3721(arg0, arg1, arg2) {
|
|
1466
|
-
const ret = makeMutClosure(arg0, arg1, 1056, __wbg_adapter_52);
|
|
1467
|
-
return ret;
|
|
1468
|
-
}
|
|
1469
|
-
export function __wbindgen_closure_wrapper410(arg0, arg1, arg2) {
|
|
1470
|
-
const ret = makeMutClosure(arg0, arg1, 238, __wbg_adapter_40);
|
|
1471
|
-
return ret;
|
|
1472
|
-
}
|
|
1473
|
-
export function __wbindgen_closure_wrapper411(arg0, arg1, arg2) {
|
|
1474
|
-
const ret = makeMutClosure(arg0, arg1, 238, __wbg_adapter_40);
|
|
1475
|
-
return ret;
|
|
1476
|
-
}
|
|
1477
|
-
export function __wbindgen_closure_wrapper412(arg0, arg1, arg2) {
|
|
1478
|
-
const ret = makeMutClosure(arg0, arg1, 238, __wbg_adapter_40);
|
|
1479
|
-
return ret;
|
|
1480
|
-
}
|
|
1481
|
-
export function __wbindgen_closure_wrapper413(arg0, arg1, arg2) {
|
|
1482
|
-
const ret = makeMutClosure(arg0, arg1, 238, __wbg_adapter_40);
|
|
1483
|
-
return ret;
|
|
1484
|
-
}
|
|
1485
|
-
export function __wbindgen_debug_string(arg0, arg1) {
|
|
1706
|
+
export function __wbg_wbindgendebugstring_0c28a61befa1f3ce(arg0, arg1) {
|
|
1486
1707
|
const ret = debugString(arg1);
|
|
1487
1708
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1488
1709
|
const len1 = WASM_VECTOR_LEN;
|
|
1489
1710
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1490
1711
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1491
1712
|
}
|
|
1492
|
-
export function
|
|
1493
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1494
|
-
return ret;
|
|
1495
|
-
}
|
|
1496
|
-
export function __wbindgen_in(arg0, arg1) {
|
|
1713
|
+
export function __wbg_wbindgenin_ed944d66e9a43ef2(arg0, arg1) {
|
|
1497
1714
|
const ret = arg0 in arg1;
|
|
1498
1715
|
return ret;
|
|
1499
1716
|
}
|
|
1500
|
-
export function
|
|
1501
|
-
const
|
|
1502
|
-
|
|
1503
|
-
table.set(0, undefined);
|
|
1504
|
-
table.set(offset + 0, undefined);
|
|
1505
|
-
table.set(offset + 1, null);
|
|
1506
|
-
table.set(offset + 2, true);
|
|
1507
|
-
table.set(offset + 3, false);
|
|
1717
|
+
export function __wbg_wbindgenisbigint_1a3fbe7ad37b3968(arg0) {
|
|
1718
|
+
const ret = typeof arg0 === "bigint";
|
|
1719
|
+
return ret;
|
|
1508
1720
|
}
|
|
1509
|
-
export function
|
|
1721
|
+
export function __wbg_wbindgenisfunction_27a5c72d80bbdf07(arg0) {
|
|
1510
1722
|
const ret = typeof arg0 === "function";
|
|
1511
1723
|
return ret;
|
|
1512
1724
|
}
|
|
1513
|
-
export function
|
|
1725
|
+
export function __wbg_wbindgenisnull_060b7d23e7f07622(arg0) {
|
|
1726
|
+
const ret = arg0 === null;
|
|
1727
|
+
return ret;
|
|
1728
|
+
}
|
|
1729
|
+
export function __wbg_wbindgenisobject_bdb9aa7f2dd707ef(arg0) {
|
|
1514
1730
|
const val = arg0;
|
|
1515
1731
|
const ret = typeof val === "object" && val !== null;
|
|
1516
1732
|
return ret;
|
|
1517
1733
|
}
|
|
1518
|
-
export function
|
|
1734
|
+
export function __wbg_wbindgenisstring_55b63daa584dc807(arg0) {
|
|
1735
|
+
const ret = typeof arg0 === "string";
|
|
1736
|
+
return ret;
|
|
1737
|
+
}
|
|
1738
|
+
export function __wbg_wbindgenisundefined_2e902cd900cf5927(arg0) {
|
|
1519
1739
|
const ret = arg0 === undefined;
|
|
1520
1740
|
return ret;
|
|
1521
1741
|
}
|
|
1522
|
-
export function
|
|
1523
|
-
const ret = arg0
|
|
1742
|
+
export function __wbg_wbindgenjsvaleq_af67af1ed6574f4f(arg0, arg1) {
|
|
1743
|
+
const ret = arg0 === arg1;
|
|
1524
1744
|
return ret;
|
|
1525
1745
|
}
|
|
1526
|
-
export function
|
|
1527
|
-
const ret =
|
|
1746
|
+
export function __wbg_wbindgenjsvallooseeq_4f1ced8136023b79(arg0, arg1) {
|
|
1747
|
+
const ret = arg0 == arg1;
|
|
1528
1748
|
return ret;
|
|
1529
1749
|
}
|
|
1530
|
-
export function
|
|
1750
|
+
export function __wbg_wbindgennumberget_41a5988c9fc46eeb(arg0, arg1) {
|
|
1531
1751
|
const obj = arg1;
|
|
1532
1752
|
const ret = typeof obj === "number" ? obj : undefined;
|
|
1533
1753
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1534
1754
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1535
1755
|
}
|
|
1536
|
-
export function
|
|
1537
|
-
const ret = arg0;
|
|
1538
|
-
return ret;
|
|
1539
|
-
}
|
|
1540
|
-
export function __wbindgen_string_get(arg0, arg1) {
|
|
1756
|
+
export function __wbg_wbindgenstringget_c45e0c672ada3c64(arg0, arg1) {
|
|
1541
1757
|
const obj = arg1;
|
|
1542
1758
|
const ret = typeof obj === "string" ? obj : undefined;
|
|
1543
1759
|
var ptr1 = isLikeNone(ret)
|
|
@@ -1547,16 +1763,86 @@ export function __wbindgen_string_get(arg0, arg1) {
|
|
|
1547
1763
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1548
1764
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1549
1765
|
}
|
|
1550
|
-
export function
|
|
1766
|
+
export function __wbg_wbindgenthrow_681185b504fabc8e(arg0, arg1) {
|
|
1767
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1768
|
+
}
|
|
1769
|
+
export function __wbg_wrapKey_5f8a7476203809ce() {
|
|
1770
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1771
|
+
const ret = arg0.wrapKey(getStringFromWasm0(arg1, arg2), arg3, arg4, getStringFromWasm0(arg5, arg6));
|
|
1772
|
+
return ret;
|
|
1773
|
+
}, arguments);
|
|
1774
|
+
}
|
|
1775
|
+
export function __wbg_writable_9cc2382cd543b064(arg0) {
|
|
1776
|
+
const ret = arg0.writable;
|
|
1777
|
+
return ret;
|
|
1778
|
+
}
|
|
1779
|
+
export function __wbg_write_e7fe7265c2fa5ddb(arg0, arg1) {
|
|
1780
|
+
const ret = arg0.write(arg1);
|
|
1781
|
+
return ret;
|
|
1782
|
+
}
|
|
1783
|
+
export function __wbindgen_cast_11ae636d1356838f(arg0, arg1) {
|
|
1784
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 718, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 719, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1785
|
+
const ret = makeMutClosure(arg0, arg1, 718, __wbg_adapter_6);
|
|
1786
|
+
return ret;
|
|
1787
|
+
}
|
|
1788
|
+
export function __wbindgen_cast_134a0c967b50073f(arg0, arg1) {
|
|
1789
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1411, function: Function { arguments: [Externref], shim_idx: 1412, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1790
|
+
const ret = makeMutClosure(arg0, arg1, 1411, __wbg_adapter_13);
|
|
1791
|
+
return ret;
|
|
1792
|
+
}
|
|
1793
|
+
export function __wbindgen_cast_1ff25b74e2fbd09e(arg0, arg1) {
|
|
1794
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 718, function: Function { arguments: [NamedExternref("RTCPeerConnectionIceEvent")], shim_idx: 719, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1795
|
+
const ret = makeMutClosure(arg0, arg1, 718, __wbg_adapter_6);
|
|
1796
|
+
return ret;
|
|
1797
|
+
}
|
|
1798
|
+
export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
|
|
1799
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1551
1800
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1552
1801
|
return ret;
|
|
1553
1802
|
}
|
|
1554
|
-
export function
|
|
1555
|
-
|
|
1803
|
+
export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
|
|
1804
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
1805
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1806
|
+
return ret;
|
|
1556
1807
|
}
|
|
1557
|
-
export function
|
|
1808
|
+
export function __wbindgen_cast_77bc3e92745e9a35(arg0, arg1) {
|
|
1558
1809
|
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
1559
1810
|
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
1811
|
+
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
1560
1812
|
const ret = v0;
|
|
1561
1813
|
return ret;
|
|
1562
1814
|
}
|
|
1815
|
+
export function __wbindgen_cast_95a4a0c87925efbc(arg0, arg1) {
|
|
1816
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 718, function: Function { arguments: [NamedExternref("RTCDataChannelEvent")], shim_idx: 719, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1817
|
+
const ret = makeMutClosure(arg0, arg1, 718, __wbg_adapter_6);
|
|
1818
|
+
return ret;
|
|
1819
|
+
}
|
|
1820
|
+
export function __wbindgen_cast_9ae0607507abb057(arg0) {
|
|
1821
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
1822
|
+
const ret = arg0;
|
|
1823
|
+
return ret;
|
|
1824
|
+
}
|
|
1825
|
+
export function __wbindgen_cast_a29edb90b685f3c8(arg0, arg1) {
|
|
1826
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 718, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 719, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1827
|
+
const ret = makeMutClosure(arg0, arg1, 718, __wbg_adapter_6);
|
|
1828
|
+
return ret;
|
|
1829
|
+
}
|
|
1830
|
+
export function __wbindgen_cast_a3a63b04e48bbf09(arg0, arg1) {
|
|
1831
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1421, function: Function { arguments: [], shim_idx: 1422, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1832
|
+
const ret = makeMutClosure(arg0, arg1, 1421, __wbg_adapter_22);
|
|
1833
|
+
return ret;
|
|
1834
|
+
}
|
|
1835
|
+
export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
|
|
1836
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
1837
|
+
const ret = arg0;
|
|
1838
|
+
return ret;
|
|
1839
|
+
}
|
|
1840
|
+
export function __wbindgen_init_externref_table() {
|
|
1841
|
+
const table = wasm.__wbindgen_export_4;
|
|
1842
|
+
const offset = table.grow(4);
|
|
1843
|
+
table.set(0, undefined);
|
|
1844
|
+
table.set(offset + 0, undefined);
|
|
1845
|
+
table.set(offset + 1, null);
|
|
1846
|
+
table.set(offset + 2, true);
|
|
1847
|
+
table.set(offset + 3, false);
|
|
1848
|
+
}
|