@unyt/datex 0.0.10 → 0.0.12

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