@unyt/datex 0.0.11 → 0.0.13
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 +10 -14
- package/esm/datex-web/datex_web.d.ts +2 -0
- package/esm/datex-web/datex_web.d.ts.map +1 -0
- package/esm/datex-web/datex_web.internal.d.ts +366 -0
- package/esm/datex-web/datex_web.internal.d.ts.map +1 -0
- package/esm/datex-web/datex_web.internal.js +1484 -0
- package/esm/datex-web/datex_web.js +18 -0
- package/esm/datex-web/datex_web.wasm +0 -0
- package/esm/datex-web/wasm_url.node.js +1 -0
- package/esm/{datex-core.d.ts → datex.d.ts} +3 -3
- package/esm/datex.d.ts.map +1 -0
- package/esm/{datex-core.js → datex.js} +3 -3
- package/esm/default.d.ts.map +1 -1
- package/esm/default.js +2 -3
- package/esm/deno.json +27 -21
- package/esm/dif/core.d.ts.map +1 -1
- package/esm/dif/definitions.d.ts +6 -6
- package/esm/dif/definitions.d.ts.map +1 -1
- package/esm/dif/definitions.js +1 -1
- package/esm/dif/dif-handler.d.ts +17 -8
- package/esm/dif/dif-handler.d.ts.map +1 -1
- package/esm/dif/dif-handler.js +21 -9
- package/esm/dif/display.d.ts +3 -3
- package/esm/dif/display.d.ts.map +1 -1
- package/esm/dif/display.js +4 -6
- package/esm/dif/js-lib.d.ts.map +1 -1
- package/esm/dif/type-registry.d.ts.map +1 -1
- package/esm/dif/type-registry.js +2 -2
- package/esm/lib/special-core-types/endpoint.d.ts +2 -0
- package/esm/lib/special-core-types/endpoint.d.ts.map +1 -1
- package/esm/lib/special-core-types/endpoint.js +6 -1
- package/esm/mod.d.ts +3 -1
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +3 -1
- package/esm/network/com-hub.d.ts +20 -22
- package/esm/network/com-hub.d.ts.map +1 -1
- package/esm/network/com-hub.js +30 -49
- package/esm/network/interfaces/websocket-server-base.d.ts +8 -0
- package/esm/network/interfaces/websocket-server-base.d.ts.map +1 -0
- package/esm/network/interfaces/websocket-server-base.js +93 -0
- package/esm/network/interfaces/websocket-server-deno.d.ts +4 -0
- package/esm/network/interfaces/websocket-server-deno.d.ts.map +1 -0
- package/esm/network/interfaces/websocket-server-deno.js +22 -0
- package/esm/network/mod.d.ts +0 -1
- package/esm/network/mod.d.ts.map +1 -1
- package/esm/network/mod.js +0 -1
- package/esm/runtime/runtime.d.ts +10 -18
- package/esm/runtime/runtime.d.ts.map +1 -1
- package/esm/runtime/runtime.js +11 -23
- package/esm/utils/devtools-formatter.d.ts +2 -0
- package/esm/utils/devtools-formatter.d.ts.map +1 -0
- package/esm/utils/devtools-formatter.js +40 -0
- package/esm/utils/js-runtime-compat/js-runtime.d.ts.map +1 -1
- package/package.json +7 -7
- package/esm/datex-core/datex_core_js.d.ts +0 -2
- package/esm/datex-core/datex_core_js.d.ts.map +0 -1
- package/esm/datex-core/datex_core_js.internal.d.ts +0 -496
- package/esm/datex-core/datex_core_js.internal.d.ts.map +0 -1
- package/esm/datex-core/datex_core_js.internal.js +0 -1903
- package/esm/datex-core/datex_core_js.js +0 -21
- package/esm/datex-core/datex_core_js.wasm +0 -0
- package/esm/datex-core/wasm_url.node.js +0 -1
- package/esm/datex-core.d.ts.map +0 -1
- package/esm/network/com-interface.d.ts +0 -35
- package/esm/network/com-interface.d.ts.map +0 -1
- package/esm/network/com-interface.js +0 -75
- package/esm/network/interface-impls/base.d.ts +0 -46
- package/esm/network/interface-impls/base.d.ts.map +0 -1
- package/esm/network/interface-impls/base.js +0 -47
- package/esm/network/interface-impls/websocket-client.d.ts +0 -8
- package/esm/network/interface-impls/websocket-client.d.ts.map +0 -1
- package/esm/network/interface-impls/websocket-client.js +0 -8
|
@@ -1,1903 +0,0 @@
|
|
|
1
|
-
// @generated file from wasmbuild -- do not edit
|
|
2
|
-
import * as dntShim from "../_dnt.shims.js";
|
|
3
|
-
// @ts-nocheck: generated
|
|
4
|
-
// deno-lint-ignore-file
|
|
5
|
-
// deno-fmt-ignore-file
|
|
6
|
-
let wasm;
|
|
7
|
-
export function __wbg_set_wasm(val) {
|
|
8
|
-
wasm = val;
|
|
9
|
-
}
|
|
10
|
-
let cachedUint8ArrayMemory0 = null;
|
|
11
|
-
function getUint8ArrayMemory0() {
|
|
12
|
-
if (cachedUint8ArrayMemory0 === null ||
|
|
13
|
-
cachedUint8ArrayMemory0.byteLength === 0) {
|
|
14
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
15
|
-
}
|
|
16
|
-
return cachedUint8ArrayMemory0;
|
|
17
|
-
}
|
|
18
|
-
let cachedTextDecoder = new TextDecoder("utf-8", {
|
|
19
|
-
ignoreBOM: true,
|
|
20
|
-
fatal: true,
|
|
21
|
-
});
|
|
22
|
-
cachedTextDecoder.decode();
|
|
23
|
-
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
24
|
-
let numBytesDecoded = 0;
|
|
25
|
-
function decodeText(ptr, len) {
|
|
26
|
-
numBytesDecoded += len;
|
|
27
|
-
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
28
|
-
cachedTextDecoder = new TextDecoder("utf-8", {
|
|
29
|
-
ignoreBOM: true,
|
|
30
|
-
fatal: true,
|
|
31
|
-
});
|
|
32
|
-
cachedTextDecoder.decode();
|
|
33
|
-
numBytesDecoded = len;
|
|
34
|
-
}
|
|
35
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
36
|
-
}
|
|
37
|
-
function getStringFromWasm0(ptr, len) {
|
|
38
|
-
ptr = ptr >>> 0;
|
|
39
|
-
return decodeText(ptr, len);
|
|
40
|
-
}
|
|
41
|
-
let WASM_VECTOR_LEN = 0;
|
|
42
|
-
const cachedTextEncoder = new TextEncoder();
|
|
43
|
-
if (!("encodeInto" in cachedTextEncoder)) {
|
|
44
|
-
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
45
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
46
|
-
view.set(buf);
|
|
47
|
-
return {
|
|
48
|
-
read: arg.length,
|
|
49
|
-
written: buf.length,
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
54
|
-
if (realloc === undefined) {
|
|
55
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
56
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
57
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
58
|
-
WASM_VECTOR_LEN = buf.length;
|
|
59
|
-
return ptr;
|
|
60
|
-
}
|
|
61
|
-
let len = arg.length;
|
|
62
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
63
|
-
const mem = getUint8ArrayMemory0();
|
|
64
|
-
let offset = 0;
|
|
65
|
-
for (; offset < len; offset++) {
|
|
66
|
-
const code = arg.charCodeAt(offset);
|
|
67
|
-
if (code > 0x7F)
|
|
68
|
-
break;
|
|
69
|
-
mem[ptr + offset] = code;
|
|
70
|
-
}
|
|
71
|
-
if (offset !== len) {
|
|
72
|
-
if (offset !== 0) {
|
|
73
|
-
arg = arg.slice(offset);
|
|
74
|
-
}
|
|
75
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
76
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
77
|
-
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
78
|
-
offset += ret.written;
|
|
79
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
80
|
-
}
|
|
81
|
-
WASM_VECTOR_LEN = offset;
|
|
82
|
-
return ptr;
|
|
83
|
-
}
|
|
84
|
-
let cachedDataViewMemory0 = null;
|
|
85
|
-
function getDataViewMemory0() {
|
|
86
|
-
if (cachedDataViewMemory0 === null ||
|
|
87
|
-
cachedDataViewMemory0.buffer.detached === true ||
|
|
88
|
-
(cachedDataViewMemory0.buffer.detached === undefined &&
|
|
89
|
-
cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
90
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
91
|
-
}
|
|
92
|
-
return cachedDataViewMemory0;
|
|
93
|
-
}
|
|
94
|
-
function isLikeNone(x) {
|
|
95
|
-
return x === undefined || x === null;
|
|
96
|
-
}
|
|
97
|
-
function debugString(val) {
|
|
98
|
-
// primitive types
|
|
99
|
-
const type = typeof val;
|
|
100
|
-
if (type == "number" || type == "boolean" || val == null) {
|
|
101
|
-
return `${val}`;
|
|
102
|
-
}
|
|
103
|
-
if (type == "string") {
|
|
104
|
-
return `"${val}"`;
|
|
105
|
-
}
|
|
106
|
-
if (type == "symbol") {
|
|
107
|
-
const description = val.description;
|
|
108
|
-
if (description == null) {
|
|
109
|
-
return "Symbol";
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
return `Symbol(${description})`;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
if (type == "function") {
|
|
116
|
-
const name = val.name;
|
|
117
|
-
if (typeof name == "string" && name.length > 0) {
|
|
118
|
-
return `Function(${name})`;
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
return "Function";
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
// objects
|
|
125
|
-
if (Array.isArray(val)) {
|
|
126
|
-
const length = val.length;
|
|
127
|
-
let debug = "[";
|
|
128
|
-
if (length > 0) {
|
|
129
|
-
debug += debugString(val[0]);
|
|
130
|
-
}
|
|
131
|
-
for (let i = 1; i < length; i++) {
|
|
132
|
-
debug += ", " + debugString(val[i]);
|
|
133
|
-
}
|
|
134
|
-
debug += "]";
|
|
135
|
-
return debug;
|
|
136
|
-
}
|
|
137
|
-
// Test for built-in
|
|
138
|
-
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
139
|
-
let className;
|
|
140
|
-
if (builtInMatches && builtInMatches.length > 1) {
|
|
141
|
-
className = builtInMatches[1];
|
|
142
|
-
}
|
|
143
|
-
else {
|
|
144
|
-
// Failed to match the standard '[object ClassName]'
|
|
145
|
-
return toString.call(val);
|
|
146
|
-
}
|
|
147
|
-
if (className == "Object") {
|
|
148
|
-
// we're a user defined class or Object
|
|
149
|
-
// JSON.stringify avoids problems with cycles, and is generally much
|
|
150
|
-
// easier than looping through ownProperties of `val`.
|
|
151
|
-
try {
|
|
152
|
-
return "Object(" + JSON.stringify(val) + ")";
|
|
153
|
-
}
|
|
154
|
-
catch (_) {
|
|
155
|
-
return "Object";
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
// errors
|
|
159
|
-
if (val instanceof Error) {
|
|
160
|
-
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
161
|
-
}
|
|
162
|
-
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
163
|
-
return className;
|
|
164
|
-
}
|
|
165
|
-
function addToExternrefTable0(obj) {
|
|
166
|
-
const idx = wasm.__externref_table_alloc();
|
|
167
|
-
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
168
|
-
return idx;
|
|
169
|
-
}
|
|
170
|
-
function handleError(f, args) {
|
|
171
|
-
try {
|
|
172
|
-
return f.apply(this, args);
|
|
173
|
-
}
|
|
174
|
-
catch (e) {
|
|
175
|
-
const idx = addToExternrefTable0(e);
|
|
176
|
-
wasm.__wbindgen_exn_store(idx);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
180
|
-
ptr = ptr >>> 0;
|
|
181
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
182
|
-
}
|
|
183
|
-
const CLOSURE_DTORS = (typeof FinalizationRegistry === "undefined")
|
|
184
|
-
? { register: () => { }, unregister: () => { } }
|
|
185
|
-
: new FinalizationRegistry((state) => state.dtor(state.a, state.b));
|
|
186
|
-
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
187
|
-
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
188
|
-
const real = (...args) => {
|
|
189
|
-
// First up with a closure we increment the internal reference
|
|
190
|
-
// count. This ensures that the Rust closure environment won't
|
|
191
|
-
// be deallocated while we're invoking it.
|
|
192
|
-
state.cnt++;
|
|
193
|
-
const a = state.a;
|
|
194
|
-
state.a = 0;
|
|
195
|
-
try {
|
|
196
|
-
return f(a, state.b, ...args);
|
|
197
|
-
}
|
|
198
|
-
finally {
|
|
199
|
-
state.a = a;
|
|
200
|
-
real._wbg_cb_unref();
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
real._wbg_cb_unref = () => {
|
|
204
|
-
if (--state.cnt === 0) {
|
|
205
|
-
state.dtor(state.a, state.b);
|
|
206
|
-
state.a = 0;
|
|
207
|
-
CLOSURE_DTORS.unregister(state);
|
|
208
|
-
}
|
|
209
|
-
};
|
|
210
|
-
CLOSURE_DTORS.register(real, state, state);
|
|
211
|
-
return real;
|
|
212
|
-
}
|
|
213
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
214
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
215
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
216
|
-
WASM_VECTOR_LEN = arg.length;
|
|
217
|
-
return ptr;
|
|
218
|
-
}
|
|
219
|
-
function takeFromExternrefTable0(idx) {
|
|
220
|
-
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
221
|
-
wasm.__externref_table_dealloc(idx);
|
|
222
|
-
return value;
|
|
223
|
-
}
|
|
224
|
-
function getArrayJsValueFromWasm0(ptr, len) {
|
|
225
|
-
ptr = ptr >>> 0;
|
|
226
|
-
const mem = getDataViewMemory0();
|
|
227
|
-
const result = [];
|
|
228
|
-
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
229
|
-
result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
|
|
230
|
-
}
|
|
231
|
-
wasm.__externref_drop_slice(ptr, len);
|
|
232
|
-
return result;
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* @param {string} config
|
|
236
|
-
* @param {any} debug_flags
|
|
237
|
-
* @returns {JSRuntime}
|
|
238
|
-
*/
|
|
239
|
-
export function create_runtime(config, debug_flags) {
|
|
240
|
-
const ptr0 = passStringToWasm0(config, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
241
|
-
const len0 = WASM_VECTOR_LEN;
|
|
242
|
-
const ret = wasm.create_runtime(ptr0, len0, debug_flags);
|
|
243
|
-
return JSRuntime.__wrap(ret);
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* Executes a Datex script and returns the result as a string.
|
|
247
|
-
* @param {string} datex_script
|
|
248
|
-
* @param {any} decompile_options
|
|
249
|
-
* @returns {string}
|
|
250
|
-
*/
|
|
251
|
-
export function execute(datex_script, decompile_options) {
|
|
252
|
-
let deferred2_0;
|
|
253
|
-
let deferred2_1;
|
|
254
|
-
try {
|
|
255
|
-
const ptr0 = passStringToWasm0(datex_script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
256
|
-
const len0 = WASM_VECTOR_LEN;
|
|
257
|
-
const ret = wasm.execute(ptr0, len0, decompile_options);
|
|
258
|
-
deferred2_0 = ret[0];
|
|
259
|
-
deferred2_1 = ret[1];
|
|
260
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
261
|
-
}
|
|
262
|
-
finally {
|
|
263
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
/**
|
|
267
|
-
* Executes a Datex script and returns true when execution was successful.
|
|
268
|
-
* Does not return the result of the script, but only indicates success or failure.
|
|
269
|
-
* @param {string} datex_script
|
|
270
|
-
* @returns {boolean}
|
|
271
|
-
*/
|
|
272
|
-
export function execute_internal(datex_script) {
|
|
273
|
-
const ptr0 = passStringToWasm0(datex_script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
274
|
-
const len0 = WASM_VECTOR_LEN;
|
|
275
|
-
const ret = wasm.execute_internal(ptr0, len0);
|
|
276
|
-
return ret !== 0;
|
|
277
|
-
}
|
|
278
|
-
function passArrayJsValueToWasm0(array, malloc) {
|
|
279
|
-
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
280
|
-
for (let i = 0; i < array.length; i++) {
|
|
281
|
-
const add = addToExternrefTable0(array[i]);
|
|
282
|
-
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
283
|
-
}
|
|
284
|
-
WASM_VECTOR_LEN = array.length;
|
|
285
|
-
return ptr;
|
|
286
|
-
}
|
|
287
|
-
function _assertClass(instance, klass) {
|
|
288
|
-
if (!(instance instanceof klass)) {
|
|
289
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
function wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke___js_sys_841a1ee50d21344a___Uint8Array_____(arg0, arg1, arg2) {
|
|
293
|
-
wasm.wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke___js_sys_841a1ee50d21344a___Uint8Array_____(arg0, arg1, arg2);
|
|
294
|
-
}
|
|
295
|
-
function wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke______(arg0, arg1) {
|
|
296
|
-
wasm.wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke______(arg0, arg1);
|
|
297
|
-
}
|
|
298
|
-
function wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke___wasm_bindgen_540158e61e0ad4e1___JsValue_____(arg0, arg1, arg2) {
|
|
299
|
-
wasm.wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke___wasm_bindgen_540158e61e0ad4e1___JsValue_____(arg0, arg1, arg2);
|
|
300
|
-
}
|
|
301
|
-
function wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke___wasm_bindgen_540158e61e0ad4e1___JsValue__wasm_bindgen_540158e61e0ad4e1___JsValue_____(arg0, arg1, arg2, arg3) {
|
|
302
|
-
wasm.wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke___wasm_bindgen_540158e61e0ad4e1___JsValue__wasm_bindgen_540158e61e0ad4e1___JsValue_____(arg0, arg1, arg2, arg3);
|
|
303
|
-
}
|
|
304
|
-
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
305
|
-
const __wbindgen_enum_RtcIceConnectionState = [
|
|
306
|
-
"new",
|
|
307
|
-
"checking",
|
|
308
|
-
"connected",
|
|
309
|
-
"completed",
|
|
310
|
-
"failed",
|
|
311
|
-
"disconnected",
|
|
312
|
-
"closed",
|
|
313
|
-
];
|
|
314
|
-
const __wbindgen_enum_RtcSdpType = ["offer", "pranswer", "answer", "rollback"];
|
|
315
|
-
const __wbindgen_enum_RtcSignalingState = [
|
|
316
|
-
"stable",
|
|
317
|
-
"have-local-offer",
|
|
318
|
-
"have-remote-offer",
|
|
319
|
-
"have-local-pranswer",
|
|
320
|
-
"have-remote-pranswer",
|
|
321
|
-
"closed",
|
|
322
|
-
];
|
|
323
|
-
const BaseJSInterfaceFinalization = (typeof FinalizationRegistry === "undefined")
|
|
324
|
-
? { register: () => { }, unregister: () => { } }
|
|
325
|
-
: new FinalizationRegistry((ptr) => wasm.__wbg_basejsinterface_free(ptr >>> 0, 1));
|
|
326
|
-
export class BaseJSInterface {
|
|
327
|
-
__destroy_into_raw() {
|
|
328
|
-
const ptr = this.__wbg_ptr;
|
|
329
|
-
this.__wbg_ptr = 0;
|
|
330
|
-
BaseJSInterfaceFinalization.unregister(this);
|
|
331
|
-
return ptr;
|
|
332
|
-
}
|
|
333
|
-
free() {
|
|
334
|
-
const ptr = this.__destroy_into_raw();
|
|
335
|
-
wasm.__wbg_basejsinterface_free(ptr, 0);
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
if (Symbol.dispose) {
|
|
339
|
-
BaseJSInterface.prototype[Symbol.dispose] = BaseJSInterface.prototype.free;
|
|
340
|
-
}
|
|
341
|
-
const JSComHubFinalization = (typeof FinalizationRegistry === "undefined")
|
|
342
|
-
? { register: () => { }, unregister: () => { } }
|
|
343
|
-
: new FinalizationRegistry((ptr) => wasm.__wbg_jscomhub_free(ptr >>> 0, 1));
|
|
344
|
-
export class JSComHub {
|
|
345
|
-
static __wrap(ptr) {
|
|
346
|
-
ptr = ptr >>> 0;
|
|
347
|
-
const obj = Object.create(JSComHub.prototype);
|
|
348
|
-
obj.__wbg_ptr = ptr;
|
|
349
|
-
JSComHubFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
350
|
-
return obj;
|
|
351
|
-
}
|
|
352
|
-
__destroy_into_raw() {
|
|
353
|
-
const ptr = this.__wbg_ptr;
|
|
354
|
-
this.__wbg_ptr = 0;
|
|
355
|
-
JSComHubFinalization.unregister(this);
|
|
356
|
-
return ptr;
|
|
357
|
-
}
|
|
358
|
-
free() {
|
|
359
|
-
const ptr = this.__destroy_into_raw();
|
|
360
|
-
wasm.__wbg_jscomhub_free(ptr, 0);
|
|
361
|
-
}
|
|
362
|
-
/**
|
|
363
|
-
* @param {string} interface_uuid
|
|
364
|
-
* @param {Uint8Array} answer
|
|
365
|
-
* @returns {Promise<void>}
|
|
366
|
-
*/
|
|
367
|
-
webrtc_interface_set_answer(interface_uuid, answer) {
|
|
368
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
369
|
-
const len0 = WASM_VECTOR_LEN;
|
|
370
|
-
const ptr1 = passArray8ToWasm0(answer, wasm.__wbindgen_malloc);
|
|
371
|
-
const len1 = WASM_VECTOR_LEN;
|
|
372
|
-
const ret = wasm.jscomhub_webrtc_interface_set_answer(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
373
|
-
return ret;
|
|
374
|
-
}
|
|
375
|
-
/**
|
|
376
|
-
* @param {string} interface_uuid
|
|
377
|
-
* @returns {Promise<Uint8Array>}
|
|
378
|
-
*/
|
|
379
|
-
webrtc_interface_create_offer(interface_uuid) {
|
|
380
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
381
|
-
const len0 = WASM_VECTOR_LEN;
|
|
382
|
-
const ret = wasm.jscomhub_webrtc_interface_create_offer(this.__wbg_ptr, ptr0, len0);
|
|
383
|
-
return ret;
|
|
384
|
-
}
|
|
385
|
-
/**
|
|
386
|
-
* @param {string} interface_uuid
|
|
387
|
-
* @param {Uint8Array} offer
|
|
388
|
-
* @returns {Promise<Uint8Array>}
|
|
389
|
-
*/
|
|
390
|
-
webrtc_interface_create_answer(interface_uuid, offer) {
|
|
391
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
392
|
-
const len0 = WASM_VECTOR_LEN;
|
|
393
|
-
const ptr1 = passArray8ToWasm0(offer, wasm.__wbindgen_malloc);
|
|
394
|
-
const len1 = WASM_VECTOR_LEN;
|
|
395
|
-
const ret = wasm.jscomhub_webrtc_interface_create_answer(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
396
|
-
return ret;
|
|
397
|
-
}
|
|
398
|
-
/**
|
|
399
|
-
* @param {string} interface_uuid
|
|
400
|
-
* @param {Uint8Array} candidate
|
|
401
|
-
* @returns {Promise<void>}
|
|
402
|
-
*/
|
|
403
|
-
webrtc_interface_add_ice_candidate(interface_uuid, candidate) {
|
|
404
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
405
|
-
const len0 = WASM_VECTOR_LEN;
|
|
406
|
-
const ptr1 = passArray8ToWasm0(candidate, wasm.__wbindgen_malloc);
|
|
407
|
-
const len1 = WASM_VECTOR_LEN;
|
|
408
|
-
const ret = wasm.jscomhub_webrtc_interface_add_ice_candidate(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
409
|
-
return ret;
|
|
410
|
-
}
|
|
411
|
-
/**
|
|
412
|
-
* @param {string} interface_uuid
|
|
413
|
-
* @returns {Promise<void>}
|
|
414
|
-
*/
|
|
415
|
-
webrtc_interface_wait_for_connection(interface_uuid) {
|
|
416
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
417
|
-
const len0 = WASM_VECTOR_LEN;
|
|
418
|
-
const ret = wasm.jscomhub_webrtc_interface_wait_for_connection(this.__wbg_ptr, ptr0, len0);
|
|
419
|
-
return ret;
|
|
420
|
-
}
|
|
421
|
-
/**
|
|
422
|
-
* Send a block to the given interface and socket
|
|
423
|
-
* This does not involve the routing on the ComHub level.
|
|
424
|
-
* The socket UUID is used to identify the socket to send the block over
|
|
425
|
-
* The interface UUID is used to identify the interface to send the block over
|
|
426
|
-
* @param {Uint8Array} block
|
|
427
|
-
* @param {string} interface_uuid
|
|
428
|
-
* @param {string} socket_uuid
|
|
429
|
-
* @returns {Promise<boolean>}
|
|
430
|
-
*/
|
|
431
|
-
send_block(block, interface_uuid, socket_uuid) {
|
|
432
|
-
const ptr0 = passArray8ToWasm0(block, wasm.__wbindgen_malloc);
|
|
433
|
-
const len0 = WASM_VECTOR_LEN;
|
|
434
|
-
const ptr1 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
435
|
-
const len1 = WASM_VECTOR_LEN;
|
|
436
|
-
const ptr2 = passStringToWasm0(socket_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
437
|
-
const len2 = WASM_VECTOR_LEN;
|
|
438
|
-
const ret = wasm.jscomhub_send_block(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
439
|
-
return ret;
|
|
440
|
-
}
|
|
441
|
-
/**
|
|
442
|
-
* @param {string} endpoint
|
|
443
|
-
* @returns {Promise<string | undefined>}
|
|
444
|
-
*/
|
|
445
|
-
get_trace_string(endpoint) {
|
|
446
|
-
const ptr0 = passStringToWasm0(endpoint, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
447
|
-
const len0 = WASM_VECTOR_LEN;
|
|
448
|
-
const ret = wasm.jscomhub_get_trace_string(this.__wbg_ptr, ptr0, len0);
|
|
449
|
-
return ret;
|
|
450
|
-
}
|
|
451
|
-
/**
|
|
452
|
-
* @returns {Promise<void>}
|
|
453
|
-
*/
|
|
454
|
-
update() {
|
|
455
|
-
const ret = wasm.jscomhub_update(this.__wbg_ptr);
|
|
456
|
-
return ret;
|
|
457
|
-
}
|
|
458
|
-
/**
|
|
459
|
-
* @param {string} interface_uuid
|
|
460
|
-
* @param {Function} on_ice_candidate
|
|
461
|
-
*/
|
|
462
|
-
webrtc_interface_set_on_ice_candidate(interface_uuid, on_ice_candidate) {
|
|
463
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
464
|
-
const len0 = WASM_VECTOR_LEN;
|
|
465
|
-
const ret = wasm.jscomhub_webrtc_interface_set_on_ice_candidate(this.__wbg_ptr, ptr0, len0, on_ice_candidate);
|
|
466
|
-
if (ret[1]) {
|
|
467
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
/**
|
|
471
|
-
* @param {string} interface_uuid
|
|
472
|
-
* @returns {Promise<any>}
|
|
473
|
-
*/
|
|
474
|
-
close_interface(interface_uuid) {
|
|
475
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
476
|
-
const len0 = WASM_VECTOR_LEN;
|
|
477
|
-
const ret = wasm.jscomhub_close_interface(this.__wbg_ptr, ptr0, len0);
|
|
478
|
-
return ret;
|
|
479
|
-
}
|
|
480
|
-
/**
|
|
481
|
-
* @param {string} interface_type
|
|
482
|
-
* @param {string} properties
|
|
483
|
-
* @returns {Promise<any>}
|
|
484
|
-
*/
|
|
485
|
-
create_interface(interface_type, properties) {
|
|
486
|
-
const ptr0 = passStringToWasm0(interface_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
487
|
-
const len0 = WASM_VECTOR_LEN;
|
|
488
|
-
const ptr1 = passStringToWasm0(properties, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
489
|
-
const len1 = WASM_VECTOR_LEN;
|
|
490
|
-
const ret = wasm.jscomhub_create_interface(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
491
|
-
return ret;
|
|
492
|
-
}
|
|
493
|
-
/**
|
|
494
|
-
* @returns {string}
|
|
495
|
-
*/
|
|
496
|
-
get_metadata_string() {
|
|
497
|
-
let deferred1_0;
|
|
498
|
-
let deferred1_1;
|
|
499
|
-
try {
|
|
500
|
-
const ret = wasm.jscomhub_get_metadata_string(this.__wbg_ptr);
|
|
501
|
-
deferred1_0 = ret[0];
|
|
502
|
-
deferred1_1 = ret[1];
|
|
503
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
504
|
-
}
|
|
505
|
-
finally {
|
|
506
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
/**
|
|
510
|
-
* @returns {Uint8Array[]}
|
|
511
|
-
*/
|
|
512
|
-
_drain_incoming_blocks() {
|
|
513
|
-
const ret = wasm.jscomhub__drain_incoming_blocks(this.__wbg_ptr);
|
|
514
|
-
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
515
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
516
|
-
return v1;
|
|
517
|
-
}
|
|
518
|
-
/**
|
|
519
|
-
* @param {Function} callback
|
|
520
|
-
*/
|
|
521
|
-
register_incoming_block_interceptor(callback) {
|
|
522
|
-
wasm.jscomhub_register_incoming_block_interceptor(this.__wbg_ptr, callback);
|
|
523
|
-
}
|
|
524
|
-
/**
|
|
525
|
-
* @param {Function} callback
|
|
526
|
-
*/
|
|
527
|
-
register_outgoing_block_interceptor(callback) {
|
|
528
|
-
wasm.jscomhub_register_outgoing_block_interceptor(this.__wbg_ptr, callback);
|
|
529
|
-
}
|
|
530
|
-
register_default_interface_factories() {
|
|
531
|
-
wasm.jscomhub_register_default_interface_factories(this.__wbg_ptr);
|
|
532
|
-
}
|
|
533
|
-
/**
|
|
534
|
-
* @param {string} uuid
|
|
535
|
-
* @param {string} socket_uuid
|
|
536
|
-
* @param {Uint8Array} data
|
|
537
|
-
* @returns {Promise<boolean>}
|
|
538
|
-
*/
|
|
539
|
-
base_interface_test_send_block(uuid, socket_uuid, data) {
|
|
540
|
-
const ptr0 = passStringToWasm0(uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
541
|
-
const len0 = WASM_VECTOR_LEN;
|
|
542
|
-
const ptr1 = passStringToWasm0(socket_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
543
|
-
const len1 = WASM_VECTOR_LEN;
|
|
544
|
-
const ptr2 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
545
|
-
const len2 = WASM_VECTOR_LEN;
|
|
546
|
-
const ret = wasm.jscomhub_base_interface_test_send_block(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
547
|
-
return ret;
|
|
548
|
-
}
|
|
549
|
-
/**
|
|
550
|
-
* @param {string} uuid
|
|
551
|
-
* @param {Function} func
|
|
552
|
-
*/
|
|
553
|
-
base_interface_on_send(uuid, func) {
|
|
554
|
-
const ptr0 = passStringToWasm0(uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
555
|
-
const len0 = WASM_VECTOR_LEN;
|
|
556
|
-
const ret = wasm.jscomhub_base_interface_on_send(this.__wbg_ptr, ptr0, len0, func);
|
|
557
|
-
if (ret[1]) {
|
|
558
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
/**
|
|
562
|
-
* @param {string} uuid
|
|
563
|
-
* @param {string} socket_uuid
|
|
564
|
-
* @param {Uint8Array} data
|
|
565
|
-
*/
|
|
566
|
-
base_interface_receive(uuid, socket_uuid, data) {
|
|
567
|
-
const ptr0 = passStringToWasm0(uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
568
|
-
const len0 = WASM_VECTOR_LEN;
|
|
569
|
-
const ptr1 = passStringToWasm0(socket_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
570
|
-
const len1 = WASM_VECTOR_LEN;
|
|
571
|
-
const ptr2 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
572
|
-
const len2 = WASM_VECTOR_LEN;
|
|
573
|
-
const ret = wasm.jscomhub_base_interface_receive(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
574
|
-
if (ret[1]) {
|
|
575
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
/**
|
|
579
|
-
* @param {string} uuid
|
|
580
|
-
* @param {string} socket_uuid
|
|
581
|
-
*/
|
|
582
|
-
base_interface_destroy_socket(uuid, socket_uuid) {
|
|
583
|
-
const ptr0 = passStringToWasm0(uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
584
|
-
const len0 = WASM_VECTOR_LEN;
|
|
585
|
-
const ptr1 = passStringToWasm0(socket_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
586
|
-
const len1 = WASM_VECTOR_LEN;
|
|
587
|
-
const ret = wasm.jscomhub_base_interface_destroy_socket(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
588
|
-
if (ret[1]) {
|
|
589
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
/**
|
|
593
|
-
* @param {string} uuid
|
|
594
|
-
* @param {string} direction
|
|
595
|
-
* @returns {string}
|
|
596
|
-
*/
|
|
597
|
-
base_interface_register_socket(uuid, direction) {
|
|
598
|
-
let deferred4_0;
|
|
599
|
-
let deferred4_1;
|
|
600
|
-
try {
|
|
601
|
-
const ptr0 = passStringToWasm0(uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
602
|
-
const len0 = WASM_VECTOR_LEN;
|
|
603
|
-
const ptr1 = passStringToWasm0(direction, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
604
|
-
const len1 = WASM_VECTOR_LEN;
|
|
605
|
-
const ret = wasm.jscomhub_base_interface_register_socket(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
606
|
-
var ptr3 = ret[0];
|
|
607
|
-
var len3 = ret[1];
|
|
608
|
-
if (ret[3]) {
|
|
609
|
-
ptr3 = 0;
|
|
610
|
-
len3 = 0;
|
|
611
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
612
|
-
}
|
|
613
|
-
deferred4_0 = ptr3;
|
|
614
|
-
deferred4_1 = len3;
|
|
615
|
-
return getStringFromWasm0(ptr3, len3);
|
|
616
|
-
}
|
|
617
|
-
finally {
|
|
618
|
-
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
/**
|
|
622
|
-
* @param {string} interface_uuid
|
|
623
|
-
* @param {WebSocket} websocket
|
|
624
|
-
* @returns {string}
|
|
625
|
-
*/
|
|
626
|
-
websocket_server_interface_add_socket(interface_uuid, websocket) {
|
|
627
|
-
let deferred3_0;
|
|
628
|
-
let deferred3_1;
|
|
629
|
-
try {
|
|
630
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
631
|
-
const len0 = WASM_VECTOR_LEN;
|
|
632
|
-
const ret = wasm.jscomhub_websocket_server_interface_add_socket(this.__wbg_ptr, ptr0, len0, websocket);
|
|
633
|
-
var ptr2 = ret[0];
|
|
634
|
-
var len2 = ret[1];
|
|
635
|
-
if (ret[3]) {
|
|
636
|
-
ptr2 = 0;
|
|
637
|
-
len2 = 0;
|
|
638
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
639
|
-
}
|
|
640
|
-
deferred3_0 = ptr2;
|
|
641
|
-
deferred3_1 = len2;
|
|
642
|
-
return getStringFromWasm0(ptr2, len2);
|
|
643
|
-
}
|
|
644
|
-
finally {
|
|
645
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
if (Symbol.dispose) {
|
|
650
|
-
JSComHub.prototype[Symbol.dispose] = JSComHub.prototype.free;
|
|
651
|
-
}
|
|
652
|
-
const JSPointerFinalization = (typeof FinalizationRegistry === "undefined")
|
|
653
|
-
? { register: () => { }, unregister: () => { } }
|
|
654
|
-
: new FinalizationRegistry((ptr) => wasm.__wbg_jspointer_free(ptr >>> 0, 1));
|
|
655
|
-
export class JSPointer {
|
|
656
|
-
__destroy_into_raw() {
|
|
657
|
-
const ptr = this.__wbg_ptr;
|
|
658
|
-
this.__wbg_ptr = 0;
|
|
659
|
-
JSPointerFinalization.unregister(this);
|
|
660
|
-
return ptr;
|
|
661
|
-
}
|
|
662
|
-
free() {
|
|
663
|
-
const ptr = this.__destroy_into_raw();
|
|
664
|
-
wasm.__wbg_jspointer_free(ptr, 0);
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
if (Symbol.dispose) {
|
|
668
|
-
JSPointer.prototype[Symbol.dispose] = JSPointer.prototype.free;
|
|
669
|
-
}
|
|
670
|
-
const JSRuntimeFinalization = (typeof FinalizationRegistry === "undefined")
|
|
671
|
-
? { register: () => { }, unregister: () => { } }
|
|
672
|
-
: new FinalizationRegistry((ptr) => wasm.__wbg_jsruntime_free(ptr >>> 0, 1));
|
|
673
|
-
export class JSRuntime {
|
|
674
|
-
static __wrap(ptr) {
|
|
675
|
-
ptr = ptr >>> 0;
|
|
676
|
-
const obj = Object.create(JSRuntime.prototype);
|
|
677
|
-
obj.__wbg_ptr = ptr;
|
|
678
|
-
JSRuntimeFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
679
|
-
return obj;
|
|
680
|
-
}
|
|
681
|
-
__destroy_into_raw() {
|
|
682
|
-
const ptr = this.__wbg_ptr;
|
|
683
|
-
this.__wbg_ptr = 0;
|
|
684
|
-
JSRuntimeFinalization.unregister(this);
|
|
685
|
-
return ptr;
|
|
686
|
-
}
|
|
687
|
-
free() {
|
|
688
|
-
const ptr = this.__destroy_into_raw();
|
|
689
|
-
wasm.__wbg_jsruntime_free(ptr, 0);
|
|
690
|
-
}
|
|
691
|
-
/**
|
|
692
|
-
* @returns {Promise<Promise<any>>}
|
|
693
|
-
*/
|
|
694
|
-
crypto_test_tmp() {
|
|
695
|
-
const ret = wasm.jsruntime_crypto_test_tmp(this.__wbg_ptr);
|
|
696
|
-
return ret;
|
|
697
|
-
}
|
|
698
|
-
/**
|
|
699
|
-
* @param {string} script
|
|
700
|
-
* @param {any[] | null | undefined} dif_values
|
|
701
|
-
* @param {any} decompile_options
|
|
702
|
-
* @returns {Promise<string>}
|
|
703
|
-
*/
|
|
704
|
-
execute_with_string_result(script, dif_values, decompile_options) {
|
|
705
|
-
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
706
|
-
const len0 = WASM_VECTOR_LEN;
|
|
707
|
-
var ptr1 = isLikeNone(dif_values)
|
|
708
|
-
? 0
|
|
709
|
-
: passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc);
|
|
710
|
-
var len1 = WASM_VECTOR_LEN;
|
|
711
|
-
const ret = wasm.jsruntime_execute_with_string_result(this.__wbg_ptr, ptr0, len0, ptr1, len1, decompile_options);
|
|
712
|
-
return ret;
|
|
713
|
-
}
|
|
714
|
-
/**
|
|
715
|
-
* @returns {Promise<void>}
|
|
716
|
-
*/
|
|
717
|
-
_stop() {
|
|
718
|
-
const ret = wasm.jsruntime__stop(this.__wbg_ptr);
|
|
719
|
-
return ret;
|
|
720
|
-
}
|
|
721
|
-
/**
|
|
722
|
-
* @returns {Promise<void>}
|
|
723
|
-
*/
|
|
724
|
-
start() {
|
|
725
|
-
const ret = wasm.jsruntime_start(this.__wbg_ptr);
|
|
726
|
-
return ret;
|
|
727
|
-
}
|
|
728
|
-
/**
|
|
729
|
-
* @param {string} script
|
|
730
|
-
* @param {any[] | null} [dif_values]
|
|
731
|
-
* @returns {Promise<any>}
|
|
732
|
-
*/
|
|
733
|
-
execute(script, dif_values) {
|
|
734
|
-
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
735
|
-
const len0 = WASM_VECTOR_LEN;
|
|
736
|
-
var ptr1 = isLikeNone(dif_values)
|
|
737
|
-
? 0
|
|
738
|
-
: passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc);
|
|
739
|
-
var len1 = WASM_VECTOR_LEN;
|
|
740
|
-
const ret = wasm.jsruntime_execute(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
741
|
-
return ret;
|
|
742
|
-
}
|
|
743
|
-
/**
|
|
744
|
-
* @returns {JSComHub}
|
|
745
|
-
*/
|
|
746
|
-
get com_hub() {
|
|
747
|
-
const ret = wasm.__wbg_get_jsruntime_com_hub(this.__wbg_ptr);
|
|
748
|
-
return JSComHub.__wrap(ret);
|
|
749
|
-
}
|
|
750
|
-
/**
|
|
751
|
-
* @param {JSComHub} arg0
|
|
752
|
-
*/
|
|
753
|
-
set com_hub(arg0) {
|
|
754
|
-
_assertClass(arg0, JSComHub);
|
|
755
|
-
var ptr0 = arg0.__destroy_into_raw();
|
|
756
|
-
wasm.__wbg_set_jsruntime_com_hub(this.__wbg_ptr, ptr0);
|
|
757
|
-
}
|
|
758
|
-
/**
|
|
759
|
-
* @param {string} script
|
|
760
|
-
* @param {any[] | null} [dif_values]
|
|
761
|
-
* @returns {any}
|
|
762
|
-
*/
|
|
763
|
-
execute_sync(script, dif_values) {
|
|
764
|
-
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
765
|
-
const len0 = WASM_VECTOR_LEN;
|
|
766
|
-
var ptr1 = isLikeNone(dif_values)
|
|
767
|
-
? 0
|
|
768
|
-
: passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc);
|
|
769
|
-
var len1 = WASM_VECTOR_LEN;
|
|
770
|
-
const ret = wasm.jsruntime_execute_sync(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
771
|
-
if (ret[2]) {
|
|
772
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
773
|
-
}
|
|
774
|
-
return takeFromExternrefTable0(ret[0]);
|
|
775
|
-
}
|
|
776
|
-
/**
|
|
777
|
-
* @param {Uint8Array | null | undefined} body
|
|
778
|
-
* @param {string[]} receivers
|
|
779
|
-
* @returns {Uint8Array}
|
|
780
|
-
*/
|
|
781
|
-
_create_block(body, receivers) {
|
|
782
|
-
var ptr0 = isLikeNone(body)
|
|
783
|
-
? 0
|
|
784
|
-
: passArray8ToWasm0(body, wasm.__wbindgen_malloc);
|
|
785
|
-
var len0 = WASM_VECTOR_LEN;
|
|
786
|
-
const ptr1 = passArrayJsValueToWasm0(receivers, wasm.__wbindgen_malloc);
|
|
787
|
-
const len1 = WASM_VECTOR_LEN;
|
|
788
|
-
const ret = wasm.jsruntime__create_block(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
789
|
-
var v3 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
790
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
791
|
-
return v3;
|
|
792
|
-
}
|
|
793
|
-
/**
|
|
794
|
-
* @param {any} dif_value
|
|
795
|
-
* @param {any} decompile_options
|
|
796
|
-
* @returns {string}
|
|
797
|
-
*/
|
|
798
|
-
value_to_string(dif_value, decompile_options) {
|
|
799
|
-
let deferred2_0;
|
|
800
|
-
let deferred2_1;
|
|
801
|
-
try {
|
|
802
|
-
const ret = wasm.jsruntime_value_to_string(this.__wbg_ptr, dif_value, decompile_options);
|
|
803
|
-
var ptr1 = ret[0];
|
|
804
|
-
var len1 = ret[1];
|
|
805
|
-
if (ret[3]) {
|
|
806
|
-
ptr1 = 0;
|
|
807
|
-
len1 = 0;
|
|
808
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
809
|
-
}
|
|
810
|
-
deferred2_0 = ptr1;
|
|
811
|
-
deferred2_1 = len1;
|
|
812
|
-
return getStringFromWasm0(ptr1, len1);
|
|
813
|
-
}
|
|
814
|
-
finally {
|
|
815
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
/**
|
|
819
|
-
* @param {string} script
|
|
820
|
-
* @param {any[] | null | undefined} dif_values
|
|
821
|
-
* @param {any} decompile_options
|
|
822
|
-
* @returns {string}
|
|
823
|
-
*/
|
|
824
|
-
execute_sync_with_string_result(script, dif_values, decompile_options) {
|
|
825
|
-
let deferred4_0;
|
|
826
|
-
let deferred4_1;
|
|
827
|
-
try {
|
|
828
|
-
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
829
|
-
const len0 = WASM_VECTOR_LEN;
|
|
830
|
-
var ptr1 = isLikeNone(dif_values)
|
|
831
|
-
? 0
|
|
832
|
-
: passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc);
|
|
833
|
-
var len1 = WASM_VECTOR_LEN;
|
|
834
|
-
const ret = wasm.jsruntime_execute_sync_with_string_result(this.__wbg_ptr, ptr0, len0, ptr1, len1, decompile_options);
|
|
835
|
-
var ptr3 = ret[0];
|
|
836
|
-
var len3 = ret[1];
|
|
837
|
-
if (ret[3]) {
|
|
838
|
-
ptr3 = 0;
|
|
839
|
-
len3 = 0;
|
|
840
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
841
|
-
}
|
|
842
|
-
deferred4_0 = ptr3;
|
|
843
|
-
deferred4_1 = len3;
|
|
844
|
-
return getStringFromWasm0(ptr3, len3);
|
|
845
|
-
}
|
|
846
|
-
finally {
|
|
847
|
-
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
848
|
-
}
|
|
849
|
-
}
|
|
850
|
-
/**
|
|
851
|
-
* Get a handle to the DIF interface of the runtime
|
|
852
|
-
* @returns {RuntimeDIFHandle}
|
|
853
|
-
*/
|
|
854
|
-
dif() {
|
|
855
|
-
const ret = wasm.jsruntime_dif(this.__wbg_ptr);
|
|
856
|
-
return RuntimeDIFHandle.__wrap(ret);
|
|
857
|
-
}
|
|
858
|
-
/**
|
|
859
|
-
* @returns {string}
|
|
860
|
-
*/
|
|
861
|
-
get version() {
|
|
862
|
-
let deferred1_0;
|
|
863
|
-
let deferred1_1;
|
|
864
|
-
try {
|
|
865
|
-
const ret = wasm.jsruntime_version(this.__wbg_ptr);
|
|
866
|
-
deferred1_0 = ret[0];
|
|
867
|
-
deferred1_1 = ret[1];
|
|
868
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
869
|
-
}
|
|
870
|
-
finally {
|
|
871
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
872
|
-
}
|
|
873
|
-
}
|
|
874
|
-
/**
|
|
875
|
-
* @returns {string}
|
|
876
|
-
*/
|
|
877
|
-
get endpoint() {
|
|
878
|
-
let deferred1_0;
|
|
879
|
-
let deferred1_1;
|
|
880
|
-
try {
|
|
881
|
-
const ret = wasm.jsruntime_endpoint(this.__wbg_ptr);
|
|
882
|
-
deferred1_0 = ret[0];
|
|
883
|
-
deferred1_1 = ret[1];
|
|
884
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
885
|
-
}
|
|
886
|
-
finally {
|
|
887
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
888
|
-
}
|
|
889
|
-
}
|
|
890
|
-
/**
|
|
891
|
-
* Start the LSP server, returning a JS function to send messages to Rust
|
|
892
|
-
* @param {Function} send_to_js
|
|
893
|
-
* @returns {Function}
|
|
894
|
-
*/
|
|
895
|
-
start_lsp(send_to_js) {
|
|
896
|
-
const ret = wasm.jsruntime_start_lsp(this.__wbg_ptr, send_to_js);
|
|
897
|
-
return ret;
|
|
898
|
-
}
|
|
899
|
-
}
|
|
900
|
-
if (Symbol.dispose) {
|
|
901
|
-
JSRuntime.prototype[Symbol.dispose] = JSRuntime.prototype.free;
|
|
902
|
-
}
|
|
903
|
-
const RuntimeDIFHandleFinalization = (typeof FinalizationRegistry === "undefined")
|
|
904
|
-
? { register: () => { }, unregister: () => { } }
|
|
905
|
-
: new FinalizationRegistry((ptr) => wasm.__wbg_runtimedifhandle_free(ptr >>> 0, 1));
|
|
906
|
-
export class RuntimeDIFHandle {
|
|
907
|
-
static __wrap(ptr) {
|
|
908
|
-
ptr = ptr >>> 0;
|
|
909
|
-
const obj = Object.create(RuntimeDIFHandle.prototype);
|
|
910
|
-
obj.__wbg_ptr = ptr;
|
|
911
|
-
RuntimeDIFHandleFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
912
|
-
return obj;
|
|
913
|
-
}
|
|
914
|
-
__destroy_into_raw() {
|
|
915
|
-
const ptr = this.__wbg_ptr;
|
|
916
|
-
this.__wbg_ptr = 0;
|
|
917
|
-
RuntimeDIFHandleFinalization.unregister(this);
|
|
918
|
-
return ptr;
|
|
919
|
-
}
|
|
920
|
-
free() {
|
|
921
|
-
const ptr = this.__destroy_into_raw();
|
|
922
|
-
wasm.__wbg_runtimedifhandle_free(ptr, 0);
|
|
923
|
-
}
|
|
924
|
-
/**
|
|
925
|
-
* @param {any} value
|
|
926
|
-
* @param {any} allowed_type
|
|
927
|
-
* @param {number} mutability
|
|
928
|
-
* @returns {string}
|
|
929
|
-
*/
|
|
930
|
-
create_pointer(value, allowed_type, mutability) {
|
|
931
|
-
let deferred2_0;
|
|
932
|
-
let deferred2_1;
|
|
933
|
-
try {
|
|
934
|
-
const ret = wasm.runtimedifhandle_create_pointer(this.__wbg_ptr, value, allowed_type, mutability);
|
|
935
|
-
var ptr1 = ret[0];
|
|
936
|
-
var len1 = ret[1];
|
|
937
|
-
if (ret[3]) {
|
|
938
|
-
ptr1 = 0;
|
|
939
|
-
len1 = 0;
|
|
940
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
941
|
-
}
|
|
942
|
-
deferred2_0 = ptr1;
|
|
943
|
-
deferred2_1 = len1;
|
|
944
|
-
return getStringFromWasm0(ptr1, len1);
|
|
945
|
-
}
|
|
946
|
-
finally {
|
|
947
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
/**
|
|
951
|
-
* @param {number} transceiver_id
|
|
952
|
-
* @param {string} address
|
|
953
|
-
* @param {any} observe_options
|
|
954
|
-
* @param {Function} callback
|
|
955
|
-
* @returns {number}
|
|
956
|
-
*/
|
|
957
|
-
observe_pointer(transceiver_id, address, observe_options, callback) {
|
|
958
|
-
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
959
|
-
const len0 = WASM_VECTOR_LEN;
|
|
960
|
-
const ret = wasm.runtimedifhandle_observe_pointer(this.__wbg_ptr, transceiver_id, ptr0, len0, observe_options, callback);
|
|
961
|
-
if (ret[2]) {
|
|
962
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
963
|
-
}
|
|
964
|
-
return ret[0] >>> 0;
|
|
965
|
-
}
|
|
966
|
-
/**
|
|
967
|
-
* @param {string} address
|
|
968
|
-
* @param {number} observer_id
|
|
969
|
-
*/
|
|
970
|
-
unobserve_pointer(address, observer_id) {
|
|
971
|
-
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
972
|
-
const len0 = WASM_VECTOR_LEN;
|
|
973
|
-
const ret = wasm.runtimedifhandle_unobserve_pointer(this.__wbg_ptr, ptr0, len0, observer_id);
|
|
974
|
-
if (ret[1]) {
|
|
975
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
/**
|
|
979
|
-
* Resolve a pointer address, returning a Promise
|
|
980
|
-
* If the pointer is in memory, the promise resolves immediately
|
|
981
|
-
* If the pointer is not in memory, it will be loaded first
|
|
982
|
-
* @param {string} address
|
|
983
|
-
* @returns {any}
|
|
984
|
-
*/
|
|
985
|
-
resolve_pointer_address(address) {
|
|
986
|
-
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
987
|
-
const len0 = WASM_VECTOR_LEN;
|
|
988
|
-
const ret = wasm.runtimedifhandle_resolve_pointer_address(this.__wbg_ptr, ptr0, len0);
|
|
989
|
-
if (ret[2]) {
|
|
990
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
991
|
-
}
|
|
992
|
-
return takeFromExternrefTable0(ret[0]);
|
|
993
|
-
}
|
|
994
|
-
/**
|
|
995
|
-
* @param {string} address
|
|
996
|
-
* @param {number} observer_id
|
|
997
|
-
* @param {any} observe_options
|
|
998
|
-
*/
|
|
999
|
-
update_observer_options(address, observer_id, observe_options) {
|
|
1000
|
-
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1001
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1002
|
-
const ret = wasm.runtimedifhandle_update_observer_options(this.__wbg_ptr, ptr0, len0, observer_id, observe_options);
|
|
1003
|
-
if (ret[1]) {
|
|
1004
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
1005
|
-
}
|
|
1006
|
-
}
|
|
1007
|
-
/**
|
|
1008
|
-
* Resolve a pointer address synchronously if it's in memory, otherwise return an error
|
|
1009
|
-
* @param {string} address
|
|
1010
|
-
* @returns {any}
|
|
1011
|
-
*/
|
|
1012
|
-
resolve_pointer_address_sync(address) {
|
|
1013
|
-
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1014
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1015
|
-
const ret = wasm.runtimedifhandle_resolve_pointer_address_sync(this.__wbg_ptr, ptr0, len0);
|
|
1016
|
-
if (ret[2]) {
|
|
1017
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1018
|
-
}
|
|
1019
|
-
return takeFromExternrefTable0(ret[0]);
|
|
1020
|
-
}
|
|
1021
|
-
/**
|
|
1022
|
-
* @param {any} callee
|
|
1023
|
-
* @param {any} value
|
|
1024
|
-
* @returns {any}
|
|
1025
|
-
*/
|
|
1026
|
-
apply(callee, value) {
|
|
1027
|
-
const ret = wasm.runtimedifhandle_apply(this.__wbg_ptr, callee, value);
|
|
1028
|
-
if (ret[2]) {
|
|
1029
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1030
|
-
}
|
|
1031
|
-
return takeFromExternrefTable0(ret[0]);
|
|
1032
|
-
}
|
|
1033
|
-
/**
|
|
1034
|
-
* @param {number} transceiver_id
|
|
1035
|
-
* @param {string} address
|
|
1036
|
-
* @param {any} update
|
|
1037
|
-
*/
|
|
1038
|
-
update(transceiver_id, address, update) {
|
|
1039
|
-
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1040
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1041
|
-
const ret = wasm.runtimedifhandle_update(this.__wbg_ptr, transceiver_id, ptr0, len0, update);
|
|
1042
|
-
if (ret[1]) {
|
|
1043
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
1044
|
-
}
|
|
1045
|
-
}
|
|
1046
|
-
}
|
|
1047
|
-
if (Symbol.dispose) {
|
|
1048
|
-
RuntimeDIFHandle.prototype[Symbol.dispose] =
|
|
1049
|
-
RuntimeDIFHandle.prototype.free;
|
|
1050
|
-
}
|
|
1051
|
-
const WebSocketServerRegistryFinalization = (typeof FinalizationRegistry === "undefined")
|
|
1052
|
-
? { register: () => { }, unregister: () => { } }
|
|
1053
|
-
: new FinalizationRegistry((ptr) => wasm.__wbg_websocketserverregistry_free(ptr >>> 0, 1));
|
|
1054
|
-
export class WebSocketServerRegistry {
|
|
1055
|
-
__destroy_into_raw() {
|
|
1056
|
-
const ptr = this.__wbg_ptr;
|
|
1057
|
-
this.__wbg_ptr = 0;
|
|
1058
|
-
WebSocketServerRegistryFinalization.unregister(this);
|
|
1059
|
-
return ptr;
|
|
1060
|
-
}
|
|
1061
|
-
free() {
|
|
1062
|
-
const ptr = this.__destroy_into_raw();
|
|
1063
|
-
wasm.__wbg_websocketserverregistry_free(ptr, 0);
|
|
1064
|
-
}
|
|
1065
|
-
/**
|
|
1066
|
-
* @param {string} interface_uuid
|
|
1067
|
-
* @returns {Promise<any>}
|
|
1068
|
-
*/
|
|
1069
|
-
close(interface_uuid) {
|
|
1070
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1071
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1072
|
-
const ret = wasm.websocketserverregistry_close(this.__wbg_ptr, ptr0, len0);
|
|
1073
|
-
return ret;
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
if (Symbol.dispose) {
|
|
1077
|
-
WebSocketServerRegistry.prototype[Symbol.dispose] =
|
|
1078
|
-
WebSocketServerRegistry.prototype.free;
|
|
1079
|
-
}
|
|
1080
|
-
export function __wbg_Error_e83987f665cf5504(arg0, arg1) {
|
|
1081
|
-
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
1082
|
-
return ret;
|
|
1083
|
-
}
|
|
1084
|
-
export function __wbg_Number_bb48ca12f395cd08(arg0) {
|
|
1085
|
-
const ret = Number(arg0);
|
|
1086
|
-
return ret;
|
|
1087
|
-
}
|
|
1088
|
-
export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
1089
|
-
const ret = String(arg1);
|
|
1090
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1091
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1092
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1093
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1094
|
-
}
|
|
1095
|
-
export function __wbg___wbindgen_bigint_get_as_i64_f3ebc5a755000afd(arg0, arg1) {
|
|
1096
|
-
const v = arg1;
|
|
1097
|
-
const ret = typeof v === "bigint" ? v : undefined;
|
|
1098
|
-
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1099
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1100
|
-
}
|
|
1101
|
-
export function __wbg___wbindgen_boolean_get_6d5a1ee65bab5f68(arg0) {
|
|
1102
|
-
const v = arg0;
|
|
1103
|
-
const ret = typeof v === "boolean" ? v : undefined;
|
|
1104
|
-
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1105
|
-
}
|
|
1106
|
-
export function __wbg___wbindgen_debug_string_df47ffb5e35e6763(arg0, arg1) {
|
|
1107
|
-
const ret = debugString(arg1);
|
|
1108
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1109
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1110
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1111
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1112
|
-
}
|
|
1113
|
-
export function __wbg___wbindgen_in_bb933bd9e1b3bc0f(arg0, arg1) {
|
|
1114
|
-
const ret = arg0 in arg1;
|
|
1115
|
-
return ret;
|
|
1116
|
-
}
|
|
1117
|
-
export function __wbg___wbindgen_is_bigint_cb320707dcd35f0b(arg0) {
|
|
1118
|
-
const ret = typeof arg0 === "bigint";
|
|
1119
|
-
return ret;
|
|
1120
|
-
}
|
|
1121
|
-
export function __wbg___wbindgen_is_function_ee8a6c5833c90377(arg0) {
|
|
1122
|
-
const ret = typeof arg0 === "function";
|
|
1123
|
-
return ret;
|
|
1124
|
-
}
|
|
1125
|
-
export function __wbg___wbindgen_is_null_5e69f72e906cc57c(arg0) {
|
|
1126
|
-
const ret = arg0 === null;
|
|
1127
|
-
return ret;
|
|
1128
|
-
}
|
|
1129
|
-
export function __wbg___wbindgen_is_object_c818261d21f283a4(arg0) {
|
|
1130
|
-
const val = arg0;
|
|
1131
|
-
const ret = typeof val === "object" && val !== null;
|
|
1132
|
-
return ret;
|
|
1133
|
-
}
|
|
1134
|
-
export function __wbg___wbindgen_is_string_fbb76cb2940daafd(arg0) {
|
|
1135
|
-
const ret = typeof arg0 === "string";
|
|
1136
|
-
return ret;
|
|
1137
|
-
}
|
|
1138
|
-
export function __wbg___wbindgen_is_undefined_2d472862bd29a478(arg0) {
|
|
1139
|
-
const ret = arg0 === undefined;
|
|
1140
|
-
return ret;
|
|
1141
|
-
}
|
|
1142
|
-
export function __wbg___wbindgen_jsval_eq_6b13ab83478b1c50(arg0, arg1) {
|
|
1143
|
-
const ret = arg0 === arg1;
|
|
1144
|
-
return ret;
|
|
1145
|
-
}
|
|
1146
|
-
export function __wbg___wbindgen_jsval_loose_eq_b664b38a2f582147(arg0, arg1) {
|
|
1147
|
-
const ret = arg0 == arg1;
|
|
1148
|
-
return ret;
|
|
1149
|
-
}
|
|
1150
|
-
export function __wbg___wbindgen_number_get_a20bf9b85341449d(arg0, arg1) {
|
|
1151
|
-
const obj = arg1;
|
|
1152
|
-
const ret = typeof obj === "number" ? obj : undefined;
|
|
1153
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1154
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1155
|
-
}
|
|
1156
|
-
export function __wbg___wbindgen_string_get_e4f06c90489ad01b(arg0, arg1) {
|
|
1157
|
-
const obj = arg1;
|
|
1158
|
-
const ret = typeof obj === "string" ? obj : undefined;
|
|
1159
|
-
var ptr1 = isLikeNone(ret)
|
|
1160
|
-
? 0
|
|
1161
|
-
: passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1162
|
-
var len1 = WASM_VECTOR_LEN;
|
|
1163
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1164
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1165
|
-
}
|
|
1166
|
-
export function __wbg___wbindgen_throw_b855445ff6a94295(arg0, arg1) {
|
|
1167
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1168
|
-
}
|
|
1169
|
-
export function __wbg__wbg_cb_unref_2454a539ea5790d9(arg0) {
|
|
1170
|
-
arg0._wbg_cb_unref();
|
|
1171
|
-
}
|
|
1172
|
-
export function __wbg_addIceCandidate_640e0bb689123302(arg0, arg1) {
|
|
1173
|
-
const ret = arg0.addIceCandidate(arg1);
|
|
1174
|
-
return ret;
|
|
1175
|
-
}
|
|
1176
|
-
export function __wbg_buffer_ccc4520b36d3ccf4(arg0) {
|
|
1177
|
-
const ret = arg0.buffer;
|
|
1178
|
-
return ret;
|
|
1179
|
-
}
|
|
1180
|
-
export function __wbg_call_357bb72daee10695() {
|
|
1181
|
-
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1182
|
-
const ret = arg0.call(arg1, arg2, arg3, arg4);
|
|
1183
|
-
return ret;
|
|
1184
|
-
}, arguments);
|
|
1185
|
-
}
|
|
1186
|
-
export function __wbg_call_525440f72fbfc0ea() {
|
|
1187
|
-
return handleError(function (arg0, arg1, arg2) {
|
|
1188
|
-
const ret = arg0.call(arg1, arg2);
|
|
1189
|
-
return ret;
|
|
1190
|
-
}, arguments);
|
|
1191
|
-
}
|
|
1192
|
-
export function __wbg_call_e45d2cf9fc925fcf() {
|
|
1193
|
-
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1194
|
-
const ret = arg0.call(arg1, arg2, arg3);
|
|
1195
|
-
return ret;
|
|
1196
|
-
}, arguments);
|
|
1197
|
-
}
|
|
1198
|
-
export function __wbg_call_e762c39fa8ea36bf() {
|
|
1199
|
-
return handleError(function (arg0, arg1) {
|
|
1200
|
-
const ret = arg0.call(arg1);
|
|
1201
|
-
return ret;
|
|
1202
|
-
}, arguments);
|
|
1203
|
-
}
|
|
1204
|
-
export function __wbg_candidate_481747b2d85374f5(arg0, arg1) {
|
|
1205
|
-
const ret = arg1.candidate;
|
|
1206
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1207
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1208
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1209
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1210
|
-
}
|
|
1211
|
-
export function __wbg_candidate_5f937d1d65e47c01(arg0) {
|
|
1212
|
-
const ret = arg0.candidate;
|
|
1213
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1214
|
-
}
|
|
1215
|
-
export function __wbg_channel_592ae18783344afb(arg0) {
|
|
1216
|
-
const ret = arg0.channel;
|
|
1217
|
-
return ret;
|
|
1218
|
-
}
|
|
1219
|
-
export function __wbg_clearTimeout_5a54f8841c30079a(arg0) {
|
|
1220
|
-
const ret = clearTimeout(arg0);
|
|
1221
|
-
return ret;
|
|
1222
|
-
}
|
|
1223
|
-
export function __wbg_close_398d767f74ef8ed0(arg0) {
|
|
1224
|
-
const ret = arg0.close();
|
|
1225
|
-
return ret;
|
|
1226
|
-
}
|
|
1227
|
-
export function __wbg_close_885e277edf06b3fa() {
|
|
1228
|
-
return handleError(function (arg0) {
|
|
1229
|
-
arg0.close();
|
|
1230
|
-
}, arguments);
|
|
1231
|
-
}
|
|
1232
|
-
export function __wbg_close_edf4a14b3cb82bca(arg0) {
|
|
1233
|
-
arg0.close();
|
|
1234
|
-
}
|
|
1235
|
-
export function __wbg_createAnswer_572b7c1578f68a31(arg0) {
|
|
1236
|
-
const ret = arg0.createAnswer();
|
|
1237
|
-
return ret;
|
|
1238
|
-
}
|
|
1239
|
-
export function __wbg_createDataChannel_2c80fcae96c3f118(arg0, arg1, arg2) {
|
|
1240
|
-
const ret = arg0.createDataChannel(getStringFromWasm0(arg1, arg2));
|
|
1241
|
-
return ret;
|
|
1242
|
-
}
|
|
1243
|
-
export function __wbg_createOffer_f0003c393c14496b(arg0) {
|
|
1244
|
-
const ret = arg0.createOffer();
|
|
1245
|
-
return ret;
|
|
1246
|
-
}
|
|
1247
|
-
export function __wbg_crypto_f5dce82c355d159f() {
|
|
1248
|
-
return handleError(function (arg0) {
|
|
1249
|
-
const ret = arg0.crypto;
|
|
1250
|
-
return ret;
|
|
1251
|
-
}, arguments);
|
|
1252
|
-
}
|
|
1253
|
-
export function __wbg_data_ee4306d069f24f2d(arg0) {
|
|
1254
|
-
const ret = arg0.data;
|
|
1255
|
-
return ret;
|
|
1256
|
-
}
|
|
1257
|
-
export function __wbg_debug_f4b0c59db649db48(arg0) {
|
|
1258
|
-
console.debug(arg0);
|
|
1259
|
-
}
|
|
1260
|
-
export function __wbg_decrypt_45277e4601d6ada4() {
|
|
1261
|
-
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1262
|
-
const ret = arg0.decrypt(arg1, arg2, arg3);
|
|
1263
|
-
return ret;
|
|
1264
|
-
}, arguments);
|
|
1265
|
-
}
|
|
1266
|
-
export function __wbg_deriveBits_28ff8a809aa473ec() {
|
|
1267
|
-
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1268
|
-
const ret = arg0.deriveBits(arg1, arg2, arg3 >>> 0);
|
|
1269
|
-
return ret;
|
|
1270
|
-
}, arguments);
|
|
1271
|
-
}
|
|
1272
|
-
export function __wbg_digest_78c58e89f8153afb() {
|
|
1273
|
-
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1274
|
-
const ret = arg0.digest(arg1, getArrayU8FromWasm0(arg2, arg3));
|
|
1275
|
-
return ret;
|
|
1276
|
-
}, arguments);
|
|
1277
|
-
}
|
|
1278
|
-
export function __wbg_done_2042aa2670fb1db1(arg0) {
|
|
1279
|
-
const ret = arg0.done;
|
|
1280
|
-
return ret;
|
|
1281
|
-
}
|
|
1282
|
-
export function __wbg_encrypt_0ceb389496419d4e() {
|
|
1283
|
-
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1284
|
-
const ret = arg0.encrypt(arg1, arg2, arg3);
|
|
1285
|
-
return ret;
|
|
1286
|
-
}, arguments);
|
|
1287
|
-
}
|
|
1288
|
-
export function __wbg_entries_e171b586f8f6bdbf(arg0) {
|
|
1289
|
-
const ret = Object.entries(arg0);
|
|
1290
|
-
return ret;
|
|
1291
|
-
}
|
|
1292
|
-
export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
1293
|
-
let deferred0_0;
|
|
1294
|
-
let deferred0_1;
|
|
1295
|
-
try {
|
|
1296
|
-
deferred0_0 = arg0;
|
|
1297
|
-
deferred0_1 = arg1;
|
|
1298
|
-
console.error(getStringFromWasm0(arg0, arg1));
|
|
1299
|
-
}
|
|
1300
|
-
finally {
|
|
1301
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
|
-
export function __wbg_error_a7f8fbb0523dae15(arg0) {
|
|
1305
|
-
console.error(arg0);
|
|
1306
|
-
}
|
|
1307
|
-
export function __wbg_exportKey_14f4c9c1691e79dc() {
|
|
1308
|
-
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1309
|
-
const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
|
|
1310
|
-
return ret;
|
|
1311
|
-
}, arguments);
|
|
1312
|
-
}
|
|
1313
|
-
export function __wbg_generateKey_b0e4794bd9d639b0() {
|
|
1314
|
-
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1315
|
-
const ret = arg0.generateKey(arg1, arg2 !== 0, arg3);
|
|
1316
|
-
return ret;
|
|
1317
|
-
}, arguments);
|
|
1318
|
-
}
|
|
1319
|
-
export function __wbg_getRandomValues_6357e7b583eb49cc() {
|
|
1320
|
-
return handleError(function (arg0, arg1, arg2) {
|
|
1321
|
-
const ret = arg0.getRandomValues(getArrayU8FromWasm0(arg1, arg2));
|
|
1322
|
-
return ret;
|
|
1323
|
-
}, arguments);
|
|
1324
|
-
}
|
|
1325
|
-
export function __wbg_getReader_15e2d3098e32c359(arg0) {
|
|
1326
|
-
const ret = arg0.getReader();
|
|
1327
|
-
return ret;
|
|
1328
|
-
}
|
|
1329
|
-
export function __wbg_getWriter_c891ce50cc187493() {
|
|
1330
|
-
return handleError(function (arg0) {
|
|
1331
|
-
const ret = arg0.getWriter();
|
|
1332
|
-
return ret;
|
|
1333
|
-
}, arguments);
|
|
1334
|
-
}
|
|
1335
|
-
export function __wbg_get_7bed016f185add81(arg0, arg1) {
|
|
1336
|
-
const ret = arg0[arg1 >>> 0];
|
|
1337
|
-
return ret;
|
|
1338
|
-
}
|
|
1339
|
-
export function __wbg_get_efcb449f58ec27c2() {
|
|
1340
|
-
return handleError(function (arg0, arg1) {
|
|
1341
|
-
const ret = Reflect.get(arg0, arg1);
|
|
1342
|
-
return ret;
|
|
1343
|
-
}, arguments);
|
|
1344
|
-
}
|
|
1345
|
-
export function __wbg_get_private_key_0a3a263ca613b0c0(arg0) {
|
|
1346
|
-
const ret = arg0.privateKey;
|
|
1347
|
-
return ret;
|
|
1348
|
-
}
|
|
1349
|
-
export function __wbg_get_public_key_1e2c11d159e34827(arg0) {
|
|
1350
|
-
const ret = arg0.publicKey;
|
|
1351
|
-
return ret;
|
|
1352
|
-
}
|
|
1353
|
-
export function __wbg_get_with_ref_key_1dc361bd10053bfe(arg0, arg1) {
|
|
1354
|
-
const ret = arg0[arg1];
|
|
1355
|
-
return ret;
|
|
1356
|
-
}
|
|
1357
|
-
export function __wbg_iceConnectionState_eacc62ca1ef48b7c(arg0) {
|
|
1358
|
-
const ret = arg0.iceConnectionState;
|
|
1359
|
-
return (__wbindgen_enum_RtcIceConnectionState.indexOf(ret) + 1 || 8) - 1;
|
|
1360
|
-
}
|
|
1361
|
-
export function __wbg_importKey_2be19189a1451235() {
|
|
1362
|
-
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1363
|
-
const ret = arg0.importKey(getStringFromWasm0(arg1, arg2), arg3, arg4, arg5 !== 0, arg6);
|
|
1364
|
-
return ret;
|
|
1365
|
-
}, arguments);
|
|
1366
|
-
}
|
|
1367
|
-
export function __wbg_info_e674a11f4f50cc0c(arg0) {
|
|
1368
|
-
console.info(arg0);
|
|
1369
|
-
}
|
|
1370
|
-
export function __wbg_instanceof_ArrayBuffer_70beb1189ca63b38(arg0) {
|
|
1371
|
-
let result;
|
|
1372
|
-
try {
|
|
1373
|
-
result = arg0 instanceof ArrayBuffer;
|
|
1374
|
-
}
|
|
1375
|
-
catch (_) {
|
|
1376
|
-
result = false;
|
|
1377
|
-
}
|
|
1378
|
-
const ret = result;
|
|
1379
|
-
return ret;
|
|
1380
|
-
}
|
|
1381
|
-
export function __wbg_instanceof_CryptoKey_9fbbefded7590b8c(arg0) {
|
|
1382
|
-
let result;
|
|
1383
|
-
try {
|
|
1384
|
-
result = arg0 instanceof CryptoKey;
|
|
1385
|
-
}
|
|
1386
|
-
catch (_) {
|
|
1387
|
-
result = false;
|
|
1388
|
-
}
|
|
1389
|
-
const ret = result;
|
|
1390
|
-
return ret;
|
|
1391
|
-
}
|
|
1392
|
-
export function __wbg_instanceof_Map_8579b5e2ab5437c7(arg0) {
|
|
1393
|
-
let result;
|
|
1394
|
-
try {
|
|
1395
|
-
result = arg0 instanceof Map;
|
|
1396
|
-
}
|
|
1397
|
-
catch (_) {
|
|
1398
|
-
result = false;
|
|
1399
|
-
}
|
|
1400
|
-
const ret = result;
|
|
1401
|
-
return ret;
|
|
1402
|
-
}
|
|
1403
|
-
export function __wbg_instanceof_Object_10bb762262230c68(arg0) {
|
|
1404
|
-
let result;
|
|
1405
|
-
try {
|
|
1406
|
-
result = arg0 instanceof Object;
|
|
1407
|
-
}
|
|
1408
|
-
catch (_) {
|
|
1409
|
-
result = false;
|
|
1410
|
-
}
|
|
1411
|
-
const ret = result;
|
|
1412
|
-
return ret;
|
|
1413
|
-
}
|
|
1414
|
-
export function __wbg_instanceof_ReadableStreamDefaultReader_33a4601dd218c69d(arg0) {
|
|
1415
|
-
let result;
|
|
1416
|
-
try {
|
|
1417
|
-
result = arg0 instanceof ReadableStreamDefaultReader;
|
|
1418
|
-
}
|
|
1419
|
-
catch (_) {
|
|
1420
|
-
result = false;
|
|
1421
|
-
}
|
|
1422
|
-
const ret = result;
|
|
1423
|
-
return ret;
|
|
1424
|
-
}
|
|
1425
|
-
export function __wbg_instanceof_Uint8Array_20c8e73002f7af98(arg0) {
|
|
1426
|
-
let result;
|
|
1427
|
-
try {
|
|
1428
|
-
result = arg0 instanceof Uint8Array;
|
|
1429
|
-
}
|
|
1430
|
-
catch (_) {
|
|
1431
|
-
result = false;
|
|
1432
|
-
}
|
|
1433
|
-
const ret = result;
|
|
1434
|
-
return ret;
|
|
1435
|
-
}
|
|
1436
|
-
export function __wbg_instanceof_Window_4846dbb3de56c84c(arg0) {
|
|
1437
|
-
let result;
|
|
1438
|
-
try {
|
|
1439
|
-
result = arg0 instanceof Window;
|
|
1440
|
-
}
|
|
1441
|
-
catch (_) {
|
|
1442
|
-
result = false;
|
|
1443
|
-
}
|
|
1444
|
-
const ret = result;
|
|
1445
|
-
return ret;
|
|
1446
|
-
}
|
|
1447
|
-
export function __wbg_isArray_96e0af9891d0945d(arg0) {
|
|
1448
|
-
const ret = Array.isArray(arg0);
|
|
1449
|
-
return ret;
|
|
1450
|
-
}
|
|
1451
|
-
export function __wbg_isSafeInteger_d216eda7911dde36(arg0) {
|
|
1452
|
-
const ret = Number.isSafeInteger(arg0);
|
|
1453
|
-
return ret;
|
|
1454
|
-
}
|
|
1455
|
-
export function __wbg_iterator_e5822695327a3c39() {
|
|
1456
|
-
const ret = Symbol.iterator;
|
|
1457
|
-
return ret;
|
|
1458
|
-
}
|
|
1459
|
-
export function __wbg_label_51d81ae5c3577deb(arg0, arg1) {
|
|
1460
|
-
const ret = arg1.label;
|
|
1461
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1462
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1463
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1464
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1465
|
-
}
|
|
1466
|
-
export function __wbg_length_69bca3cb64fc8748(arg0) {
|
|
1467
|
-
const ret = arg0.length;
|
|
1468
|
-
return ret;
|
|
1469
|
-
}
|
|
1470
|
-
export function __wbg_length_cdd215e10d9dd507(arg0) {
|
|
1471
|
-
const ret = arg0.length;
|
|
1472
|
-
return ret;
|
|
1473
|
-
}
|
|
1474
|
-
export function __wbg_log_8cec76766b8c0e33(arg0) {
|
|
1475
|
-
console.log(arg0);
|
|
1476
|
-
}
|
|
1477
|
-
export function __wbg_message_3abccea43568e0bd(arg0, arg1) {
|
|
1478
|
-
const ret = arg1.message;
|
|
1479
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1480
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1481
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1482
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1483
|
-
}
|
|
1484
|
-
export function __wbg_navigator_971384882e8ea23a(arg0) {
|
|
1485
|
-
const ret = arg0.navigator;
|
|
1486
|
-
return ret;
|
|
1487
|
-
}
|
|
1488
|
-
export function __wbg_new_1acc0b6eea89d040() {
|
|
1489
|
-
const ret = new Object();
|
|
1490
|
-
return ret;
|
|
1491
|
-
}
|
|
1492
|
-
export function __wbg_new_3c3d849046688a66(arg0, arg1) {
|
|
1493
|
-
try {
|
|
1494
|
-
var state0 = { a: arg0, b: arg1 };
|
|
1495
|
-
var cb0 = (arg0, arg1) => {
|
|
1496
|
-
const a = state0.a;
|
|
1497
|
-
state0.a = 0;
|
|
1498
|
-
try {
|
|
1499
|
-
return wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke___wasm_bindgen_540158e61e0ad4e1___JsValue__wasm_bindgen_540158e61e0ad4e1___JsValue_____(a, state0.b, arg0, arg1);
|
|
1500
|
-
}
|
|
1501
|
-
finally {
|
|
1502
|
-
state0.a = a;
|
|
1503
|
-
}
|
|
1504
|
-
};
|
|
1505
|
-
const ret = new Promise(cb0);
|
|
1506
|
-
return ret;
|
|
1507
|
-
}
|
|
1508
|
-
finally {
|
|
1509
|
-
state0.a = state0.b = 0;
|
|
1510
|
-
}
|
|
1511
|
-
}
|
|
1512
|
-
export function __wbg_new_5a79be3ab53b8aa5(arg0) {
|
|
1513
|
-
const ret = new Uint8Array(arg0);
|
|
1514
|
-
return ret;
|
|
1515
|
-
}
|
|
1516
|
-
export function __wbg_new_68651c719dcda04e() {
|
|
1517
|
-
const ret = new Map();
|
|
1518
|
-
return ret;
|
|
1519
|
-
}
|
|
1520
|
-
export function __wbg_new_881c4fe631eee9ad() {
|
|
1521
|
-
return handleError(function (arg0, arg1) {
|
|
1522
|
-
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
|
1523
|
-
return ret;
|
|
1524
|
-
}, arguments);
|
|
1525
|
-
}
|
|
1526
|
-
export function __wbg_new_8a6f238a6ece86ea() {
|
|
1527
|
-
const ret = new Error();
|
|
1528
|
-
return ret;
|
|
1529
|
-
}
|
|
1530
|
-
export function __wbg_new_e17d9f43105b08be() {
|
|
1531
|
-
const ret = new Array();
|
|
1532
|
-
return ret;
|
|
1533
|
-
}
|
|
1534
|
-
export function __wbg_new_from_slice_92f4d78ca282a2d2(arg0, arg1) {
|
|
1535
|
-
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1536
|
-
return ret;
|
|
1537
|
-
}
|
|
1538
|
-
export function __wbg_new_no_args_ee98eee5275000a4(arg0, arg1) {
|
|
1539
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1540
|
-
return ret;
|
|
1541
|
-
}
|
|
1542
|
-
export function __wbg_new_with_configuration_a1cd3f4d87d41876() {
|
|
1543
|
-
return handleError(function (arg0) {
|
|
1544
|
-
const ret = new RTCPeerConnection(arg0);
|
|
1545
|
-
return ret;
|
|
1546
|
-
}, arguments);
|
|
1547
|
-
}
|
|
1548
|
-
export function __wbg_new_with_length_01aa0dc35aa13543(arg0) {
|
|
1549
|
-
const ret = new Uint8Array(arg0 >>> 0);
|
|
1550
|
-
return ret;
|
|
1551
|
-
}
|
|
1552
|
-
export function __wbg_next_020810e0ae8ebcb0() {
|
|
1553
|
-
return handleError(function (arg0) {
|
|
1554
|
-
const ret = arg0.next();
|
|
1555
|
-
return ret;
|
|
1556
|
-
}, arguments);
|
|
1557
|
-
}
|
|
1558
|
-
export function __wbg_next_2c826fe5dfec6b6a(arg0) {
|
|
1559
|
-
const ret = arg0.next;
|
|
1560
|
-
return ret;
|
|
1561
|
-
}
|
|
1562
|
-
export function __wbg_now_2c95c9de01293173(arg0) {
|
|
1563
|
-
const ret = arg0.now();
|
|
1564
|
-
return ret;
|
|
1565
|
-
}
|
|
1566
|
-
export function __wbg_now_793306c526e2e3b6() {
|
|
1567
|
-
const ret = Date.now();
|
|
1568
|
-
return ret;
|
|
1569
|
-
}
|
|
1570
|
-
export function __wbg_of_035271b9e67a3bd9(arg0) {
|
|
1571
|
-
const ret = Array.of(arg0);
|
|
1572
|
-
return ret;
|
|
1573
|
-
}
|
|
1574
|
-
export function __wbg_of_288d2471f5767a12(arg0, arg1) {
|
|
1575
|
-
const ret = Array.of(arg0, arg1);
|
|
1576
|
-
return ret;
|
|
1577
|
-
}
|
|
1578
|
-
export function __wbg_open_fe29bb2df6de0b4c(arg0, arg1) {
|
|
1579
|
-
const ret = arg0.open(arg1);
|
|
1580
|
-
return ret;
|
|
1581
|
-
}
|
|
1582
|
-
export function __wbg_performance_7a3ffd0b17f663ad(arg0) {
|
|
1583
|
-
const ret = arg0.performance;
|
|
1584
|
-
return ret;
|
|
1585
|
-
}
|
|
1586
|
-
export function __wbg_prototypesetcall_2a6620b6922694b2(arg0, arg1, arg2) {
|
|
1587
|
-
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1588
|
-
}
|
|
1589
|
-
export function __wbg_push_df81a39d04db858c(arg0, arg1) {
|
|
1590
|
-
const ret = arg0.push(arg1);
|
|
1591
|
-
return ret;
|
|
1592
|
-
}
|
|
1593
|
-
export function __wbg_queueMicrotask_34d692c25c47d05b(arg0) {
|
|
1594
|
-
const ret = arg0.queueMicrotask;
|
|
1595
|
-
return ret;
|
|
1596
|
-
}
|
|
1597
|
-
export function __wbg_queueMicrotask_9d76cacb20c84d58(arg0) {
|
|
1598
|
-
queueMicrotask(arg0);
|
|
1599
|
-
}
|
|
1600
|
-
export function __wbg_randomUUID_f5597397f97d1e44(arg0, arg1) {
|
|
1601
|
-
const ret = arg1.randomUUID();
|
|
1602
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1603
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1604
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1605
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1606
|
-
}
|
|
1607
|
-
export function __wbg_read_48f1593df542f968(arg0) {
|
|
1608
|
-
const ret = arg0.read();
|
|
1609
|
-
return ret;
|
|
1610
|
-
}
|
|
1611
|
-
export function __wbg_readable_1f11b5bdc6b1c439(arg0) {
|
|
1612
|
-
const ret = arg0.readable;
|
|
1613
|
-
return ret;
|
|
1614
|
-
}
|
|
1615
|
-
export function __wbg_releaseLock_5d0b5a68887b891d(arg0) {
|
|
1616
|
-
arg0.releaseLock();
|
|
1617
|
-
}
|
|
1618
|
-
export function __wbg_requestPort_bce3f3626a6900f7(arg0) {
|
|
1619
|
-
const ret = arg0.requestPort();
|
|
1620
|
-
return ret;
|
|
1621
|
-
}
|
|
1622
|
-
export function __wbg_resolve_caf97c30b83f7053(arg0) {
|
|
1623
|
-
const ret = Promise.resolve(arg0);
|
|
1624
|
-
return ret;
|
|
1625
|
-
}
|
|
1626
|
-
export function __wbg_sdpMLineIndex_7e2abd17908820fb(arg0) {
|
|
1627
|
-
const ret = arg0.sdpMLineIndex;
|
|
1628
|
-
return isLikeNone(ret) ? 0xFFFFFF : ret;
|
|
1629
|
-
}
|
|
1630
|
-
export function __wbg_sdpMid_524b91d9afabd2cc(arg0, arg1) {
|
|
1631
|
-
const ret = arg1.sdpMid;
|
|
1632
|
-
var ptr1 = isLikeNone(ret)
|
|
1633
|
-
? 0
|
|
1634
|
-
: passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1635
|
-
var len1 = WASM_VECTOR_LEN;
|
|
1636
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1637
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1638
|
-
}
|
|
1639
|
-
export function __wbg_send_3d2cf376613294f0() {
|
|
1640
|
-
return handleError(function (arg0, arg1, arg2) {
|
|
1641
|
-
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
1642
|
-
}, arguments);
|
|
1643
|
-
}
|
|
1644
|
-
export function __wbg_send_3d93963ba80250ff() {
|
|
1645
|
-
return handleError(function (arg0, arg1, arg2) {
|
|
1646
|
-
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
1647
|
-
}, arguments);
|
|
1648
|
-
}
|
|
1649
|
-
export function __wbg_serial_ebad1b1c9075169a(arg0) {
|
|
1650
|
-
const ret = arg0.serial;
|
|
1651
|
-
return ret;
|
|
1652
|
-
}
|
|
1653
|
-
export function __wbg_setLocalDescription_65cd8a6ccfe86e28(arg0, arg1) {
|
|
1654
|
-
const ret = arg0.setLocalDescription(arg1);
|
|
1655
|
-
return ret;
|
|
1656
|
-
}
|
|
1657
|
-
export function __wbg_setRemoteDescription_f77d823b45b689fb(arg0, arg1) {
|
|
1658
|
-
const ret = arg0.setRemoteDescription(arg1);
|
|
1659
|
-
return ret;
|
|
1660
|
-
}
|
|
1661
|
-
export function __wbg_setTimeout_db2dbaeefb6f39c7() {
|
|
1662
|
-
return handleError(function (arg0, arg1) {
|
|
1663
|
-
const ret = setTimeout(arg0, arg1);
|
|
1664
|
-
return ret;
|
|
1665
|
-
}, arguments);
|
|
1666
|
-
}
|
|
1667
|
-
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
1668
|
-
arg0[arg1] = arg2;
|
|
1669
|
-
}
|
|
1670
|
-
export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
|
|
1671
|
-
const ret = arg0.set(arg1, arg2);
|
|
1672
|
-
return ret;
|
|
1673
|
-
}
|
|
1674
|
-
export function __wbg_set_9e6516df7b7d0f19(arg0, arg1, arg2) {
|
|
1675
|
-
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
1676
|
-
}
|
|
1677
|
-
export function __wbg_set_baud_rate_0d3d4098ad0007bd(arg0, arg1) {
|
|
1678
|
-
arg0.baudRate = arg1 >>> 0;
|
|
1679
|
-
}
|
|
1680
|
-
export function __wbg_set_binaryType_9d839cea8fcdc5c3(arg0, arg1) {
|
|
1681
|
-
arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
1682
|
-
}
|
|
1683
|
-
export function __wbg_set_c213c871859d6500(arg0, arg1, arg2) {
|
|
1684
|
-
arg0[arg1 >>> 0] = arg2;
|
|
1685
|
-
}
|
|
1686
|
-
export function __wbg_set_c2abbebe8b9ebee1() {
|
|
1687
|
-
return handleError(function (arg0, arg1, arg2) {
|
|
1688
|
-
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1689
|
-
return ret;
|
|
1690
|
-
}, arguments);
|
|
1691
|
-
}
|
|
1692
|
-
export function __wbg_set_candidate_c95c6639c1ddc40c(arg0, arg1, arg2) {
|
|
1693
|
-
arg0.candidate = getStringFromWasm0(arg1, arg2);
|
|
1694
|
-
}
|
|
1695
|
-
export function __wbg_set_counter_8cf891ddbb09c405(arg0, arg1) {
|
|
1696
|
-
arg0.counter = arg1;
|
|
1697
|
-
}
|
|
1698
|
-
export function __wbg_set_credential_a3cba9eb4bce068c(arg0, arg1, arg2) {
|
|
1699
|
-
arg0.credential = getStringFromWasm0(arg1, arg2);
|
|
1700
|
-
}
|
|
1701
|
-
export function __wbg_set_ice_servers_2fe64c1f7030a20f(arg0, arg1) {
|
|
1702
|
-
arg0.iceServers = arg1;
|
|
1703
|
-
}
|
|
1704
|
-
export function __wbg_set_length_9b3abd6e75f20e65(arg0, arg1) {
|
|
1705
|
-
arg0.length = arg1;
|
|
1706
|
-
}
|
|
1707
|
-
export function __wbg_set_name_30c7450c8511ee95(arg0, arg1, arg2) {
|
|
1708
|
-
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
1709
|
-
}
|
|
1710
|
-
export function __wbg_set_onclose_c09e4f7422de8dae(arg0, arg1) {
|
|
1711
|
-
arg0.onclose = arg1;
|
|
1712
|
-
}
|
|
1713
|
-
export function __wbg_set_ondatachannel_d3587e15167e215b(arg0, arg1) {
|
|
1714
|
-
arg0.ondatachannel = arg1;
|
|
1715
|
-
}
|
|
1716
|
-
export function __wbg_set_onerror_337a3a2db9517378(arg0, arg1) {
|
|
1717
|
-
arg0.onerror = arg1;
|
|
1718
|
-
}
|
|
1719
|
-
export function __wbg_set_onicecandidate_fa449483ade769ae(arg0, arg1) {
|
|
1720
|
-
arg0.onicecandidate = arg1;
|
|
1721
|
-
}
|
|
1722
|
-
export function __wbg_set_oniceconnectionstatechange_11dbe6c347a5d4d2(arg0, arg1) {
|
|
1723
|
-
arg0.oniceconnectionstatechange = arg1;
|
|
1724
|
-
}
|
|
1725
|
-
export function __wbg_set_onmessage_3a8d6c4b2e1962d7(arg0, arg1) {
|
|
1726
|
-
arg0.onmessage = arg1;
|
|
1727
|
-
}
|
|
1728
|
-
export function __wbg_set_onmessage_8661558551a89792(arg0, arg1) {
|
|
1729
|
-
arg0.onmessage = arg1;
|
|
1730
|
-
}
|
|
1731
|
-
export function __wbg_set_onopen_ac1685e688d0fbcf(arg0, arg1) {
|
|
1732
|
-
arg0.onopen = arg1;
|
|
1733
|
-
}
|
|
1734
|
-
export function __wbg_set_onopen_efccb9305427b907(arg0, arg1) {
|
|
1735
|
-
arg0.onopen = arg1;
|
|
1736
|
-
}
|
|
1737
|
-
export function __wbg_set_sdp_b8e3939b73c0ad0f(arg0, arg1, arg2) {
|
|
1738
|
-
arg0.sdp = getStringFromWasm0(arg1, arg2);
|
|
1739
|
-
}
|
|
1740
|
-
export function __wbg_set_sdp_m_line_index_8fc884801bfc6173(arg0, arg1) {
|
|
1741
|
-
arg0.sdpMLineIndex = arg1 === 0xFFFFFF ? undefined : arg1;
|
|
1742
|
-
}
|
|
1743
|
-
export function __wbg_set_sdp_mid_4a6d24c6bec77f74(arg0, arg1, arg2) {
|
|
1744
|
-
arg0.sdpMid = arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2);
|
|
1745
|
-
}
|
|
1746
|
-
export function __wbg_set_type_2e7e493a02f43e56(arg0, arg1) {
|
|
1747
|
-
arg0.type = __wbindgen_enum_RtcSdpType[arg1];
|
|
1748
|
-
}
|
|
1749
|
-
export function __wbg_set_urls_835196658d97779c(arg0, arg1) {
|
|
1750
|
-
arg0.urls = arg1;
|
|
1751
|
-
}
|
|
1752
|
-
export function __wbg_set_username_305ae082fdb063b0(arg0, arg1, arg2) {
|
|
1753
|
-
arg0.username = getStringFromWasm0(arg1, arg2);
|
|
1754
|
-
}
|
|
1755
|
-
export function __wbg_sign_0077f2aabd37825a() {
|
|
1756
|
-
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1757
|
-
const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
|
|
1758
|
-
return ret;
|
|
1759
|
-
}, arguments);
|
|
1760
|
-
}
|
|
1761
|
-
export function __wbg_signalingState_9a34f568c00c8208(arg0) {
|
|
1762
|
-
const ret = arg0.signalingState;
|
|
1763
|
-
return (__wbindgen_enum_RtcSignalingState.indexOf(ret) + 1 || 7) - 1;
|
|
1764
|
-
}
|
|
1765
|
-
export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
|
|
1766
|
-
const ret = arg1.stack;
|
|
1767
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1768
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1769
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1770
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1771
|
-
}
|
|
1772
|
-
export function __wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e() {
|
|
1773
|
-
const ret = typeof global === "undefined" ? null : global;
|
|
1774
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1775
|
-
}
|
|
1776
|
-
export function __wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac() {
|
|
1777
|
-
const ret = typeof dntShim.dntGlobalThis === "undefined" ? null : dntShim.dntGlobalThis;
|
|
1778
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1779
|
-
}
|
|
1780
|
-
export function __wbg_static_accessor_SELF_6fdf4b64710cc91b() {
|
|
1781
|
-
const ret = typeof self === "undefined" ? null : self;
|
|
1782
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1783
|
-
}
|
|
1784
|
-
export function __wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2() {
|
|
1785
|
-
const ret = typeof dntShim.dntGlobalThis === "undefined" ? null : dntShim.dntGlobalThis;
|
|
1786
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1787
|
-
}
|
|
1788
|
-
export function __wbg_subtle_a158c8cba320b8ed(arg0) {
|
|
1789
|
-
const ret = arg0.subtle;
|
|
1790
|
-
return ret;
|
|
1791
|
-
}
|
|
1792
|
-
export function __wbg_then_4f46f6544e6b4a28(arg0, arg1) {
|
|
1793
|
-
const ret = arg0.then(arg1);
|
|
1794
|
-
return ret;
|
|
1795
|
-
}
|
|
1796
|
-
export function __wbg_then_70d05cf780a18d77(arg0, arg1, arg2) {
|
|
1797
|
-
const ret = arg0.then(arg1, arg2);
|
|
1798
|
-
return ret;
|
|
1799
|
-
}
|
|
1800
|
-
export function __wbg_unwrapKey_91db60c1c1da6b02() {
|
|
1801
|
-
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1802
|
-
const ret = arg0.unwrapKey(getStringFromWasm0(arg1, arg2), arg3, arg4, getStringFromWasm0(arg5, arg6), arg7, arg8 !== 0, arg9);
|
|
1803
|
-
return ret;
|
|
1804
|
-
}, arguments);
|
|
1805
|
-
}
|
|
1806
|
-
export function __wbg_value_692627309814bb8c(arg0) {
|
|
1807
|
-
const ret = arg0.value;
|
|
1808
|
-
return ret;
|
|
1809
|
-
}
|
|
1810
|
-
export function __wbg_verify_47e017cd0770194c() {
|
|
1811
|
-
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1812
|
-
const ret = arg0.verify(arg1, arg2, getArrayU8FromWasm0(arg3, arg4), getArrayU8FromWasm0(arg5, arg6));
|
|
1813
|
-
return ret;
|
|
1814
|
-
}, arguments);
|
|
1815
|
-
}
|
|
1816
|
-
export function __wbg_warn_1d74dddbe2fd1dbb(arg0) {
|
|
1817
|
-
console.warn(arg0);
|
|
1818
|
-
}
|
|
1819
|
-
export function __wbg_wrapKey_1b54a5ca6fa71c99() {
|
|
1820
|
-
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1821
|
-
const ret = arg0.wrapKey(getStringFromWasm0(arg1, arg2), arg3, arg4, getStringFromWasm0(arg5, arg6));
|
|
1822
|
-
return ret;
|
|
1823
|
-
}, arguments);
|
|
1824
|
-
}
|
|
1825
|
-
export function __wbg_writable_914f96f3361cf74a(arg0) {
|
|
1826
|
-
const ret = arg0.writable;
|
|
1827
|
-
return ret;
|
|
1828
|
-
}
|
|
1829
|
-
export function __wbg_write_5f693b62e780062e(arg0, arg1) {
|
|
1830
|
-
const ret = arg0.write(arg1);
|
|
1831
|
-
return ret;
|
|
1832
|
-
}
|
|
1833
|
-
export function __wbindgen_cast_0483c6432e6bb3b6(arg0, arg1) {
|
|
1834
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 2256, function: Function { arguments: [], shim_idx: 2257, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1835
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_540158e61e0ad4e1___closure__destroy___dyn_core_e4e32f5ae772ed90___ops__function__FnMut_____Output_______, wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke______);
|
|
1836
|
-
return ret;
|
|
1837
|
-
}
|
|
1838
|
-
export function __wbindgen_cast_0870598a3ac49758(arg0, arg1) {
|
|
1839
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 1032, function: Function { arguments: [NamedExternref("RTCDataChannelEvent")], shim_idx: 1033, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1840
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_540158e61e0ad4e1___closure__destroy___dyn_core_e4e32f5ae772ed90___ops__function__FnMut__js_sys_841a1ee50d21344a___Uint8Array____Output_______, wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke___js_sys_841a1ee50d21344a___Uint8Array_____);
|
|
1841
|
-
return ret;
|
|
1842
|
-
}
|
|
1843
|
-
export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
|
|
1844
|
-
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1845
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
1846
|
-
return ret;
|
|
1847
|
-
}
|
|
1848
|
-
export function __wbindgen_cast_3df71bd50e2a2cfe(arg0, arg1) {
|
|
1849
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 1032, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1033, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1850
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_540158e61e0ad4e1___closure__destroy___dyn_core_e4e32f5ae772ed90___ops__function__FnMut__js_sys_841a1ee50d21344a___Uint8Array____Output_______, wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke___js_sys_841a1ee50d21344a___Uint8Array_____);
|
|
1851
|
-
return ret;
|
|
1852
|
-
}
|
|
1853
|
-
export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
|
|
1854
|
-
// Cast intrinsic for `U64 -> Externref`.
|
|
1855
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
1856
|
-
return ret;
|
|
1857
|
-
}
|
|
1858
|
-
export function __wbindgen_cast_77bc3e92745e9a35(arg0, arg1) {
|
|
1859
|
-
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
1860
|
-
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
1861
|
-
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
1862
|
-
const ret = v0;
|
|
1863
|
-
return ret;
|
|
1864
|
-
}
|
|
1865
|
-
export function __wbindgen_cast_9229580bb106f983(arg0, arg1) {
|
|
1866
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 1032, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 1033, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1867
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_540158e61e0ad4e1___closure__destroy___dyn_core_e4e32f5ae772ed90___ops__function__FnMut__js_sys_841a1ee50d21344a___Uint8Array____Output_______, wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke___js_sys_841a1ee50d21344a___Uint8Array_____);
|
|
1868
|
-
return ret;
|
|
1869
|
-
}
|
|
1870
|
-
export function __wbindgen_cast_942e1b1306809e74(arg0, arg1) {
|
|
1871
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 1032, function: Function { arguments: [NamedExternref("Uint8Array")], shim_idx: 1033, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1872
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_540158e61e0ad4e1___closure__destroy___dyn_core_e4e32f5ae772ed90___ops__function__FnMut__js_sys_841a1ee50d21344a___Uint8Array____Output_______, wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke___js_sys_841a1ee50d21344a___Uint8Array_____);
|
|
1873
|
-
return ret;
|
|
1874
|
-
}
|
|
1875
|
-
export function __wbindgen_cast_9ae0607507abb057(arg0) {
|
|
1876
|
-
// Cast intrinsic for `I64 -> Externref`.
|
|
1877
|
-
const ret = arg0;
|
|
1878
|
-
return ret;
|
|
1879
|
-
}
|
|
1880
|
-
export function __wbindgen_cast_b5784ace92b0fffe(arg0, arg1) {
|
|
1881
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 2246, function: Function { arguments: [Externref], shim_idx: 2247, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1882
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_540158e61e0ad4e1___closure__destroy___dyn_core_e4e32f5ae772ed90___ops__function__FnMut__wasm_bindgen_540158e61e0ad4e1___JsValue____Output_______, wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke___wasm_bindgen_540158e61e0ad4e1___JsValue_____);
|
|
1883
|
-
return ret;
|
|
1884
|
-
}
|
|
1885
|
-
export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
|
|
1886
|
-
// Cast intrinsic for `F64 -> Externref`.
|
|
1887
|
-
const ret = arg0;
|
|
1888
|
-
return ret;
|
|
1889
|
-
}
|
|
1890
|
-
export function __wbindgen_cast_e30fea0391e3bac3(arg0, arg1) {
|
|
1891
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 1032, function: Function { arguments: [NamedExternref("RTCPeerConnectionIceEvent")], shim_idx: 1033, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1892
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_540158e61e0ad4e1___closure__destroy___dyn_core_e4e32f5ae772ed90___ops__function__FnMut__js_sys_841a1ee50d21344a___Uint8Array____Output_______, wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke___js_sys_841a1ee50d21344a___Uint8Array_____);
|
|
1893
|
-
return ret;
|
|
1894
|
-
}
|
|
1895
|
-
export function __wbindgen_init_externref_table() {
|
|
1896
|
-
const table = wasm.__wbindgen_externrefs;
|
|
1897
|
-
const offset = table.grow(4);
|
|
1898
|
-
table.set(0, undefined);
|
|
1899
|
-
table.set(offset + 0, undefined);
|
|
1900
|
-
table.set(offset + 1, null);
|
|
1901
|
-
table.set(offset + 2, true);
|
|
1902
|
-
table.set(offset + 3, false);
|
|
1903
|
-
}
|