qlue-ls 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/qlue_ls.d.ts +35 -35
- package/qlue_ls.js +501 -497
- package/qlue_ls_bg.wasm +0 -0
package/package.json
CHANGED
package/qlue_ls.d.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
|
|
4
4
|
export class Server {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
private constructor();
|
|
6
|
+
free(): void;
|
|
7
|
+
[Symbol.dispose](): void;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export function determine_operation_type(input: string): string;
|
|
@@ -20,44 +20,44 @@ export function listen(server: Server, reader: ReadableStreamDefaultReader): Pro
|
|
|
20
20
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
21
21
|
|
|
22
22
|
export interface InitOutput {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
23
|
+
readonly memory: WebAssembly.Memory;
|
|
24
|
+
readonly init_language_server: (a: any) => number;
|
|
25
|
+
readonly listen: (a: number, b: any) => any;
|
|
26
|
+
readonly __wbg_server_free: (a: number, b: number) => void;
|
|
27
|
+
readonly format_raw: (a: number, b: number) => [number, number, number, number];
|
|
28
|
+
readonly determine_operation_type: (a: number, b: number) => [number, number];
|
|
29
|
+
readonly get_parse_tree: (a: number, b: number, c: number) => any;
|
|
30
|
+
readonly wasm_bindgen_8be2313e8adba0b1___closure__destroy___dyn_core_b03932f25916e09f___ops__function__FnMut__wasm_bindgen_8be2313e8adba0b1___JsValue____Output_______: (a: number, b: number) => void;
|
|
31
|
+
readonly wasm_bindgen_8be2313e8adba0b1___convert__closures_____invoke___wasm_bindgen_8be2313e8adba0b1___JsValue__wasm_bindgen_8be2313e8adba0b1___JsValue_____: (a: number, b: number, c: any, d: any) => void;
|
|
32
|
+
readonly wasm_bindgen_8be2313e8adba0b1___convert__closures_____invoke___wasm_bindgen_8be2313e8adba0b1___JsValue_____: (a: number, b: number, c: any) => void;
|
|
33
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
34
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
35
|
+
readonly __externref_table_alloc: () => number;
|
|
36
|
+
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
37
|
+
readonly __wbindgen_exn_store: (a: number) => void;
|
|
38
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
39
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
|
40
|
+
readonly __wbindgen_start: () => void;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
* Instantiates the given `module`, which can either be bytes or
|
|
47
|
-
* a precompiled `WebAssembly.Module`.
|
|
48
|
-
*
|
|
49
|
-
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
50
|
-
*
|
|
51
|
-
* @returns {InitOutput}
|
|
52
|
-
*/
|
|
46
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
47
|
+
* a precompiled `WebAssembly.Module`.
|
|
48
|
+
*
|
|
49
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
50
|
+
*
|
|
51
|
+
* @returns {InitOutput}
|
|
52
|
+
*/
|
|
53
53
|
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
|
-
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
57
|
-
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
58
|
-
*
|
|
59
|
-
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
60
|
-
*
|
|
61
|
-
* @returns {Promise<InitOutput>}
|
|
62
|
-
*/
|
|
56
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
57
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
58
|
+
*
|
|
59
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
60
|
+
*
|
|
61
|
+
* @returns {Promise<InitOutput>}
|
|
62
|
+
*/
|
|
63
63
|
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|
package/qlue_ls.js
CHANGED
|
@@ -1,4 +1,484 @@
|
|
|
1
|
-
|
|
1
|
+
/* @ts-self-types="./qlue_ls.d.ts" */
|
|
2
|
+
|
|
3
|
+
export class Server {
|
|
4
|
+
static __wrap(ptr) {
|
|
5
|
+
ptr = ptr >>> 0;
|
|
6
|
+
const obj = Object.create(Server.prototype);
|
|
7
|
+
obj.__wbg_ptr = ptr;
|
|
8
|
+
ServerFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
9
|
+
return obj;
|
|
10
|
+
}
|
|
11
|
+
__destroy_into_raw() {
|
|
12
|
+
const ptr = this.__wbg_ptr;
|
|
13
|
+
this.__wbg_ptr = 0;
|
|
14
|
+
ServerFinalization.unregister(this);
|
|
15
|
+
return ptr;
|
|
16
|
+
}
|
|
17
|
+
free() {
|
|
18
|
+
const ptr = this.__destroy_into_raw();
|
|
19
|
+
wasm.__wbg_server_free(ptr, 0);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
if (Symbol.dispose) Server.prototype[Symbol.dispose] = Server.prototype.free;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @param {string} input
|
|
26
|
+
* @returns {string}
|
|
27
|
+
*/
|
|
28
|
+
export function determine_operation_type(input) {
|
|
29
|
+
let deferred2_0;
|
|
30
|
+
let deferred2_1;
|
|
31
|
+
try {
|
|
32
|
+
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
33
|
+
const len0 = WASM_VECTOR_LEN;
|
|
34
|
+
const ret = wasm.determine_operation_type(ptr0, len0);
|
|
35
|
+
deferred2_0 = ret[0];
|
|
36
|
+
deferred2_1 = ret[1];
|
|
37
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
38
|
+
} finally {
|
|
39
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @param {string} text
|
|
45
|
+
* @returns {string}
|
|
46
|
+
*/
|
|
47
|
+
export function format_raw(text) {
|
|
48
|
+
let deferred3_0;
|
|
49
|
+
let deferred3_1;
|
|
50
|
+
try {
|
|
51
|
+
const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
52
|
+
const len0 = WASM_VECTOR_LEN;
|
|
53
|
+
const ret = wasm.format_raw(ptr0, len0);
|
|
54
|
+
var ptr2 = ret[0];
|
|
55
|
+
var len2 = ret[1];
|
|
56
|
+
if (ret[3]) {
|
|
57
|
+
ptr2 = 0; len2 = 0;
|
|
58
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
59
|
+
}
|
|
60
|
+
deferred3_0 = ptr2;
|
|
61
|
+
deferred3_1 = len2;
|
|
62
|
+
return getStringFromWasm0(ptr2, len2);
|
|
63
|
+
} finally {
|
|
64
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @param {string} input
|
|
70
|
+
* @param {number} offset
|
|
71
|
+
* @returns {any}
|
|
72
|
+
*/
|
|
73
|
+
export function get_parse_tree(input, offset) {
|
|
74
|
+
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
75
|
+
const len0 = WASM_VECTOR_LEN;
|
|
76
|
+
const ret = wasm.get_parse_tree(ptr0, len0, offset);
|
|
77
|
+
return ret;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @param {WritableStreamDefaultWriter} writer
|
|
82
|
+
* @returns {Server}
|
|
83
|
+
*/
|
|
84
|
+
export function init_language_server(writer) {
|
|
85
|
+
const ret = wasm.init_language_server(writer);
|
|
86
|
+
return Server.__wrap(ret);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @param {Server} server
|
|
91
|
+
* @param {ReadableStreamDefaultReader} reader
|
|
92
|
+
* @returns {Promise<void>}
|
|
93
|
+
*/
|
|
94
|
+
export function listen(server, reader) {
|
|
95
|
+
_assertClass(server, Server);
|
|
96
|
+
var ptr0 = server.__destroy_into_raw();
|
|
97
|
+
const ret = wasm.listen(ptr0, reader);
|
|
98
|
+
return ret;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function __wbg_get_imports() {
|
|
102
|
+
const import0 = {
|
|
103
|
+
__proto__: null,
|
|
104
|
+
__wbg_Error_8c4e43fe74559d73: function(arg0, arg1) {
|
|
105
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
106
|
+
return ret;
|
|
107
|
+
},
|
|
108
|
+
__wbg_Number_04624de7d0e8332d: function(arg0) {
|
|
109
|
+
const ret = Number(arg0);
|
|
110
|
+
return ret;
|
|
111
|
+
},
|
|
112
|
+
__wbg_String_8f0eb39a4a4c2f66: function(arg0, arg1) {
|
|
113
|
+
const ret = String(arg1);
|
|
114
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
115
|
+
const len1 = WASM_VECTOR_LEN;
|
|
116
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
117
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
118
|
+
},
|
|
119
|
+
__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: function(arg0) {
|
|
120
|
+
const v = arg0;
|
|
121
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
122
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
123
|
+
},
|
|
124
|
+
__wbg___wbindgen_debug_string_0bc8482c6e3508ae: function(arg0, arg1) {
|
|
125
|
+
const ret = debugString(arg1);
|
|
126
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
127
|
+
const len1 = WASM_VECTOR_LEN;
|
|
128
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
129
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
130
|
+
},
|
|
131
|
+
__wbg___wbindgen_in_47fa6863be6f2f25: function(arg0, arg1) {
|
|
132
|
+
const ret = arg0 in arg1;
|
|
133
|
+
return ret;
|
|
134
|
+
},
|
|
135
|
+
__wbg___wbindgen_is_function_0095a73b8b156f76: function(arg0) {
|
|
136
|
+
const ret = typeof(arg0) === 'function';
|
|
137
|
+
return ret;
|
|
138
|
+
},
|
|
139
|
+
__wbg___wbindgen_is_object_5ae8e5880f2c1fbd: function(arg0) {
|
|
140
|
+
const val = arg0;
|
|
141
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
142
|
+
return ret;
|
|
143
|
+
},
|
|
144
|
+
__wbg___wbindgen_is_string_cd444516edc5b180: function(arg0) {
|
|
145
|
+
const ret = typeof(arg0) === 'string';
|
|
146
|
+
return ret;
|
|
147
|
+
},
|
|
148
|
+
__wbg___wbindgen_is_undefined_9e4d92534c42d778: function(arg0) {
|
|
149
|
+
const ret = arg0 === undefined;
|
|
150
|
+
return ret;
|
|
151
|
+
},
|
|
152
|
+
__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811: function(arg0, arg1) {
|
|
153
|
+
const ret = arg0 == arg1;
|
|
154
|
+
return ret;
|
|
155
|
+
},
|
|
156
|
+
__wbg___wbindgen_number_get_8ff4255516ccad3e: function(arg0, arg1) {
|
|
157
|
+
const obj = arg1;
|
|
158
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
159
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
160
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
161
|
+
},
|
|
162
|
+
__wbg___wbindgen_string_get_72fb696202c56729: function(arg0, arg1) {
|
|
163
|
+
const obj = arg1;
|
|
164
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
165
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
166
|
+
var len1 = WASM_VECTOR_LEN;
|
|
167
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
168
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
169
|
+
},
|
|
170
|
+
__wbg___wbindgen_throw_be289d5034ed271b: function(arg0, arg1) {
|
|
171
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
172
|
+
},
|
|
173
|
+
__wbg__wbg_cb_unref_d9b87ff7982e3b21: function(arg0) {
|
|
174
|
+
arg0._wbg_cb_unref();
|
|
175
|
+
},
|
|
176
|
+
__wbg_abort_d549b92d3c665de1: function(arg0, arg1) {
|
|
177
|
+
arg0.abort(arg1);
|
|
178
|
+
},
|
|
179
|
+
__wbg_body_3a0b4437dadea6bf: function(arg0) {
|
|
180
|
+
const ret = arg0.body;
|
|
181
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
182
|
+
},
|
|
183
|
+
__wbg_call_389efe28435a9388: function() { return handleError(function (arg0, arg1) {
|
|
184
|
+
const ret = arg0.call(arg1);
|
|
185
|
+
return ret;
|
|
186
|
+
}, arguments); },
|
|
187
|
+
__wbg_call_4708e0c13bdc8e95: function() { return handleError(function (arg0, arg1, arg2) {
|
|
188
|
+
const ret = arg0.call(arg1, arg2);
|
|
189
|
+
return ret;
|
|
190
|
+
}, arguments); },
|
|
191
|
+
__wbg_debug_46a93995fc6f8820: function(arg0, arg1, arg2, arg3) {
|
|
192
|
+
console.debug(arg0, arg1, arg2, arg3);
|
|
193
|
+
},
|
|
194
|
+
__wbg_encodeURIComponent_46e9eafddd38cb39: function(arg0, arg1) {
|
|
195
|
+
const ret = encodeURIComponent(getStringFromWasm0(arg0, arg1));
|
|
196
|
+
return ret;
|
|
197
|
+
},
|
|
198
|
+
__wbg_entries_58c7934c745daac7: function(arg0) {
|
|
199
|
+
const ret = Object.entries(arg0);
|
|
200
|
+
return ret;
|
|
201
|
+
},
|
|
202
|
+
__wbg_error_794d0ffc9d00d5c3: function(arg0, arg1, arg2, arg3) {
|
|
203
|
+
console.error(arg0, arg1, arg2, arg3);
|
|
204
|
+
},
|
|
205
|
+
__wbg_error_9a7fe3f932034cde: function(arg0) {
|
|
206
|
+
console.error(arg0);
|
|
207
|
+
},
|
|
208
|
+
__wbg_fetch_afb6a4b6cacf876d: function(arg0, arg1) {
|
|
209
|
+
const ret = arg0.fetch(arg1);
|
|
210
|
+
return ret;
|
|
211
|
+
},
|
|
212
|
+
__wbg_getReader_804829cfb24eb4dd: function(arg0) {
|
|
213
|
+
const ret = arg0.getReader();
|
|
214
|
+
return ret;
|
|
215
|
+
},
|
|
216
|
+
__wbg_get_9b94d73e6221f75c: function(arg0, arg1) {
|
|
217
|
+
const ret = arg0[arg1 >>> 0];
|
|
218
|
+
return ret;
|
|
219
|
+
},
|
|
220
|
+
__wbg_get_b3ed3ad4be2bc8ac: function() { return handleError(function (arg0, arg1) {
|
|
221
|
+
const ret = Reflect.get(arg0, arg1);
|
|
222
|
+
return ret;
|
|
223
|
+
}, arguments); },
|
|
224
|
+
__wbg_get_with_ref_key_1dc361bd10053bfe: function(arg0, arg1) {
|
|
225
|
+
const ret = arg0[arg1];
|
|
226
|
+
return ret;
|
|
227
|
+
},
|
|
228
|
+
__wbg_headers_5a897f7fee9a0571: function(arg0) {
|
|
229
|
+
const ret = arg0.headers;
|
|
230
|
+
return ret;
|
|
231
|
+
},
|
|
232
|
+
__wbg_info_9e602cf10c5c690b: function(arg0, arg1, arg2, arg3) {
|
|
233
|
+
console.info(arg0, arg1, arg2, arg3);
|
|
234
|
+
},
|
|
235
|
+
__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: function(arg0) {
|
|
236
|
+
let result;
|
|
237
|
+
try {
|
|
238
|
+
result = arg0 instanceof ArrayBuffer;
|
|
239
|
+
} catch (_) {
|
|
240
|
+
result = false;
|
|
241
|
+
}
|
|
242
|
+
const ret = result;
|
|
243
|
+
return ret;
|
|
244
|
+
},
|
|
245
|
+
__wbg_instanceof_DomException_99c177193e554b75: function(arg0) {
|
|
246
|
+
let result;
|
|
247
|
+
try {
|
|
248
|
+
result = arg0 instanceof DOMException;
|
|
249
|
+
} catch (_) {
|
|
250
|
+
result = false;
|
|
251
|
+
}
|
|
252
|
+
const ret = result;
|
|
253
|
+
return ret;
|
|
254
|
+
},
|
|
255
|
+
__wbg_instanceof_Response_ee1d54d79ae41977: function(arg0) {
|
|
256
|
+
let result;
|
|
257
|
+
try {
|
|
258
|
+
result = arg0 instanceof Response;
|
|
259
|
+
} catch (_) {
|
|
260
|
+
result = false;
|
|
261
|
+
}
|
|
262
|
+
const ret = result;
|
|
263
|
+
return ret;
|
|
264
|
+
},
|
|
265
|
+
__wbg_instanceof_Uint8Array_9b9075935c74707c: function(arg0) {
|
|
266
|
+
let result;
|
|
267
|
+
try {
|
|
268
|
+
result = arg0 instanceof Uint8Array;
|
|
269
|
+
} catch (_) {
|
|
270
|
+
result = false;
|
|
271
|
+
}
|
|
272
|
+
const ret = result;
|
|
273
|
+
return ret;
|
|
274
|
+
},
|
|
275
|
+
__wbg_isSafeInteger_bfbc7332a9768d2a: function(arg0) {
|
|
276
|
+
const ret = Number.isSafeInteger(arg0);
|
|
277
|
+
return ret;
|
|
278
|
+
},
|
|
279
|
+
__wbg_json_d214c3d336140979: function() { return handleError(function (arg0) {
|
|
280
|
+
const ret = arg0.json();
|
|
281
|
+
return ret;
|
|
282
|
+
}, arguments); },
|
|
283
|
+
__wbg_length_32ed9a279acd054c: function(arg0) {
|
|
284
|
+
const ret = arg0.length;
|
|
285
|
+
return ret;
|
|
286
|
+
},
|
|
287
|
+
__wbg_length_35a7bace40f36eac: function(arg0) {
|
|
288
|
+
const ret = arg0.length;
|
|
289
|
+
return ret;
|
|
290
|
+
},
|
|
291
|
+
__wbg_log_24aba2a6d8990b35: function(arg0, arg1, arg2, arg3) {
|
|
292
|
+
console.log(arg0, arg1, arg2, arg3);
|
|
293
|
+
},
|
|
294
|
+
__wbg_name_242753e5110cd756: function(arg0, arg1) {
|
|
295
|
+
const ret = arg1.name;
|
|
296
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
297
|
+
const len1 = WASM_VECTOR_LEN;
|
|
298
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
299
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
300
|
+
},
|
|
301
|
+
__wbg_new_361308b2356cecd0: function() {
|
|
302
|
+
const ret = new Object();
|
|
303
|
+
return ret;
|
|
304
|
+
},
|
|
305
|
+
__wbg_new_3eb36ae241fe6f44: function() {
|
|
306
|
+
const ret = new Array();
|
|
307
|
+
return ret;
|
|
308
|
+
},
|
|
309
|
+
__wbg_new_b5d9e2fb389fef91: function(arg0, arg1) {
|
|
310
|
+
try {
|
|
311
|
+
var state0 = {a: arg0, b: arg1};
|
|
312
|
+
var cb0 = (arg0, arg1) => {
|
|
313
|
+
const a = state0.a;
|
|
314
|
+
state0.a = 0;
|
|
315
|
+
try {
|
|
316
|
+
return wasm_bindgen_8be2313e8adba0b1___convert__closures_____invoke___wasm_bindgen_8be2313e8adba0b1___JsValue__wasm_bindgen_8be2313e8adba0b1___JsValue_____(a, state0.b, arg0, arg1);
|
|
317
|
+
} finally {
|
|
318
|
+
state0.a = a;
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
const ret = new Promise(cb0);
|
|
322
|
+
return ret;
|
|
323
|
+
} finally {
|
|
324
|
+
state0.a = state0.b = 0;
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
__wbg_new_b949e7f56150a5d1: function() { return handleError(function () {
|
|
328
|
+
const ret = new AbortController();
|
|
329
|
+
return ret;
|
|
330
|
+
}, arguments); },
|
|
331
|
+
__wbg_new_dd2b680c8bf6ae29: function(arg0) {
|
|
332
|
+
const ret = new Uint8Array(arg0);
|
|
333
|
+
return ret;
|
|
334
|
+
},
|
|
335
|
+
__wbg_new_no_args_1c7c842f08d00ebb: function(arg0, arg1) {
|
|
336
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
337
|
+
return ret;
|
|
338
|
+
},
|
|
339
|
+
__wbg_new_with_args_7bba34e94b1cfa40: function(arg0, arg1, arg2, arg3) {
|
|
340
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
341
|
+
return ret;
|
|
342
|
+
},
|
|
343
|
+
__wbg_new_with_str_and_init_a61cbc6bdef21614: function() { return handleError(function (arg0, arg1, arg2) {
|
|
344
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
345
|
+
return ret;
|
|
346
|
+
}, arguments); },
|
|
347
|
+
__wbg_now_ebffdf7e580f210d: function(arg0) {
|
|
348
|
+
const ret = arg0.now();
|
|
349
|
+
return ret;
|
|
350
|
+
},
|
|
351
|
+
__wbg_ok_87f537440a0acf85: function(arg0) {
|
|
352
|
+
const ret = arg0.ok;
|
|
353
|
+
return ret;
|
|
354
|
+
},
|
|
355
|
+
__wbg_performance_bba4d45afeed7106: function(arg0) {
|
|
356
|
+
const ret = arg0.performance;
|
|
357
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
358
|
+
},
|
|
359
|
+
__wbg_prototypesetcall_bdcdcc5842e4d77d: function(arg0, arg1, arg2) {
|
|
360
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
361
|
+
},
|
|
362
|
+
__wbg_push_8ffdcb2063340ba5: function(arg0, arg1) {
|
|
363
|
+
const ret = arg0.push(arg1);
|
|
364
|
+
return ret;
|
|
365
|
+
},
|
|
366
|
+
__wbg_queueMicrotask_0aa0a927f78f5d98: function(arg0) {
|
|
367
|
+
const ret = arg0.queueMicrotask;
|
|
368
|
+
return ret;
|
|
369
|
+
},
|
|
370
|
+
__wbg_queueMicrotask_5bb536982f78a56f: function(arg0) {
|
|
371
|
+
queueMicrotask(arg0);
|
|
372
|
+
},
|
|
373
|
+
__wbg_read_68fd377df67e19b0: function(arg0) {
|
|
374
|
+
const ret = arg0.read();
|
|
375
|
+
return ret;
|
|
376
|
+
},
|
|
377
|
+
__wbg_resolve_002c4b7d9d8f6b64: function(arg0) {
|
|
378
|
+
const ret = Promise.resolve(arg0);
|
|
379
|
+
return ret;
|
|
380
|
+
},
|
|
381
|
+
__wbg_set_6cb8631f80447a67: function() { return handleError(function (arg0, arg1, arg2) {
|
|
382
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
383
|
+
return ret;
|
|
384
|
+
}, arguments); },
|
|
385
|
+
__wbg_set_body_9a7e00afe3cfe244: function(arg0, arg1) {
|
|
386
|
+
arg0.body = arg1;
|
|
387
|
+
},
|
|
388
|
+
__wbg_set_db769d02949a271d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
389
|
+
arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
390
|
+
}, arguments); },
|
|
391
|
+
__wbg_set_method_c3e20375f5ae7fac: function(arg0, arg1, arg2) {
|
|
392
|
+
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
393
|
+
},
|
|
394
|
+
__wbg_set_mode_b13642c312648202: function(arg0, arg1) {
|
|
395
|
+
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
396
|
+
},
|
|
397
|
+
__wbg_set_signal_f2d3f8599248896d: function(arg0, arg1) {
|
|
398
|
+
arg0.signal = arg1;
|
|
399
|
+
},
|
|
400
|
+
__wbg_signal_d1285ecab4ebc5ad: function(arg0) {
|
|
401
|
+
const ret = arg0.signal;
|
|
402
|
+
return ret;
|
|
403
|
+
},
|
|
404
|
+
__wbg_static_accessor_GLOBAL_12837167ad935116: function() {
|
|
405
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
406
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
407
|
+
},
|
|
408
|
+
__wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f: function() {
|
|
409
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
410
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
411
|
+
},
|
|
412
|
+
__wbg_static_accessor_SELF_a621d3dfbb60d0ce: function() {
|
|
413
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
414
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
415
|
+
},
|
|
416
|
+
__wbg_static_accessor_WINDOW_f8727f0cf888e0bd: function() {
|
|
417
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
418
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
419
|
+
},
|
|
420
|
+
__wbg_text_083b8727c990c8c0: function() { return handleError(function (arg0) {
|
|
421
|
+
const ret = arg0.text();
|
|
422
|
+
return ret;
|
|
423
|
+
}, arguments); },
|
|
424
|
+
__wbg_then_0d9fe2c7b1857d32: function(arg0, arg1, arg2) {
|
|
425
|
+
const ret = arg0.then(arg1, arg2);
|
|
426
|
+
return ret;
|
|
427
|
+
},
|
|
428
|
+
__wbg_then_b9e7b3b5f1a9e1b5: function(arg0, arg1) {
|
|
429
|
+
const ret = arg0.then(arg1);
|
|
430
|
+
return ret;
|
|
431
|
+
},
|
|
432
|
+
__wbg_timeout_4a4c09d04e4cda28: function(arg0) {
|
|
433
|
+
const ret = AbortSignal.timeout(arg0 >>> 0);
|
|
434
|
+
return ret;
|
|
435
|
+
},
|
|
436
|
+
__wbg_warn_a40b971467b219c7: function(arg0, arg1, arg2, arg3) {
|
|
437
|
+
console.warn(arg0, arg1, arg2, arg3);
|
|
438
|
+
},
|
|
439
|
+
__wbg_write_4dbba5e5426abaf4: function(arg0, arg1) {
|
|
440
|
+
const ret = arg0.write(arg1);
|
|
441
|
+
return ret;
|
|
442
|
+
},
|
|
443
|
+
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
444
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1222, function: Function { arguments: [Externref], shim_idx: 1223, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
445
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_8be2313e8adba0b1___closure__destroy___dyn_core_b03932f25916e09f___ops__function__FnMut__wasm_bindgen_8be2313e8adba0b1___JsValue____Output_______, wasm_bindgen_8be2313e8adba0b1___convert__closures_____invoke___wasm_bindgen_8be2313e8adba0b1___JsValue_____);
|
|
446
|
+
return ret;
|
|
447
|
+
},
|
|
448
|
+
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
449
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
450
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
451
|
+
return ret;
|
|
452
|
+
},
|
|
453
|
+
__wbindgen_init_externref_table: function() {
|
|
454
|
+
const table = wasm.__wbindgen_externrefs;
|
|
455
|
+
const offset = table.grow(4);
|
|
456
|
+
table.set(0, undefined);
|
|
457
|
+
table.set(offset + 0, undefined);
|
|
458
|
+
table.set(offset + 1, null);
|
|
459
|
+
table.set(offset + 2, true);
|
|
460
|
+
table.set(offset + 3, false);
|
|
461
|
+
},
|
|
462
|
+
};
|
|
463
|
+
return {
|
|
464
|
+
__proto__: null,
|
|
465
|
+
"./qlue_ls_bg.js": import0,
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
function wasm_bindgen_8be2313e8adba0b1___convert__closures_____invoke___wasm_bindgen_8be2313e8adba0b1___JsValue_____(arg0, arg1, arg2) {
|
|
470
|
+
wasm.wasm_bindgen_8be2313e8adba0b1___convert__closures_____invoke___wasm_bindgen_8be2313e8adba0b1___JsValue_____(arg0, arg1, arg2);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
function wasm_bindgen_8be2313e8adba0b1___convert__closures_____invoke___wasm_bindgen_8be2313e8adba0b1___JsValue__wasm_bindgen_8be2313e8adba0b1___JsValue_____(arg0, arg1, arg2, arg3) {
|
|
474
|
+
wasm.wasm_bindgen_8be2313e8adba0b1___convert__closures_____invoke___wasm_bindgen_8be2313e8adba0b1___JsValue__wasm_bindgen_8be2313e8adba0b1___JsValue_____(arg0, arg1, arg2, arg3);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
479
|
+
const ServerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
480
|
+
? { register: () => {}, unregister: () => {} }
|
|
481
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_server_free(ptr >>> 0, 1));
|
|
2
482
|
|
|
3
483
|
function addToExternrefTable0(obj) {
|
|
4
484
|
const idx = wasm.__externref_table_alloc();
|
|
@@ -215,139 +695,33 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
215
695
|
read: arg.length,
|
|
216
696
|
written: buf.length
|
|
217
697
|
};
|
|
218
|
-
}
|
|
698
|
+
};
|
|
219
699
|
}
|
|
220
700
|
|
|
221
701
|
let WASM_VECTOR_LEN = 0;
|
|
222
702
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
232
|
-
|
|
233
|
-
const ServerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
234
|
-
? { register: () => {}, unregister: () => {} }
|
|
235
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_server_free(ptr >>> 0, 1));
|
|
236
|
-
|
|
237
|
-
export class Server {
|
|
238
|
-
static __wrap(ptr) {
|
|
239
|
-
ptr = ptr >>> 0;
|
|
240
|
-
const obj = Object.create(Server.prototype);
|
|
241
|
-
obj.__wbg_ptr = ptr;
|
|
242
|
-
ServerFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
243
|
-
return obj;
|
|
244
|
-
}
|
|
245
|
-
__destroy_into_raw() {
|
|
246
|
-
const ptr = this.__wbg_ptr;
|
|
247
|
-
this.__wbg_ptr = 0;
|
|
248
|
-
ServerFinalization.unregister(this);
|
|
249
|
-
return ptr;
|
|
250
|
-
}
|
|
251
|
-
free() {
|
|
252
|
-
const ptr = this.__destroy_into_raw();
|
|
253
|
-
wasm.__wbg_server_free(ptr, 0);
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
if (Symbol.dispose) Server.prototype[Symbol.dispose] = Server.prototype.free;
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* @param {string} input
|
|
260
|
-
* @returns {string}
|
|
261
|
-
*/
|
|
262
|
-
export function determine_operation_type(input) {
|
|
263
|
-
let deferred2_0;
|
|
264
|
-
let deferred2_1;
|
|
265
|
-
try {
|
|
266
|
-
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
267
|
-
const len0 = WASM_VECTOR_LEN;
|
|
268
|
-
const ret = wasm.determine_operation_type(ptr0, len0);
|
|
269
|
-
deferred2_0 = ret[0];
|
|
270
|
-
deferred2_1 = ret[1];
|
|
271
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
272
|
-
} finally {
|
|
273
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* @param {string} text
|
|
279
|
-
* @returns {string}
|
|
280
|
-
*/
|
|
281
|
-
export function format_raw(text) {
|
|
282
|
-
let deferred3_0;
|
|
283
|
-
let deferred3_1;
|
|
284
|
-
try {
|
|
285
|
-
const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
286
|
-
const len0 = WASM_VECTOR_LEN;
|
|
287
|
-
const ret = wasm.format_raw(ptr0, len0);
|
|
288
|
-
var ptr2 = ret[0];
|
|
289
|
-
var len2 = ret[1];
|
|
290
|
-
if (ret[3]) {
|
|
291
|
-
ptr2 = 0; len2 = 0;
|
|
292
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
293
|
-
}
|
|
294
|
-
deferred3_0 = ptr2;
|
|
295
|
-
deferred3_1 = len2;
|
|
296
|
-
return getStringFromWasm0(ptr2, len2);
|
|
297
|
-
} finally {
|
|
298
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* @param {string} input
|
|
304
|
-
* @param {number} offset
|
|
305
|
-
* @returns {any}
|
|
306
|
-
*/
|
|
307
|
-
export function get_parse_tree(input, offset) {
|
|
308
|
-
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
309
|
-
const len0 = WASM_VECTOR_LEN;
|
|
310
|
-
const ret = wasm.get_parse_tree(ptr0, len0, offset);
|
|
311
|
-
return ret;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* @param {WritableStreamDefaultWriter} writer
|
|
316
|
-
* @returns {Server}
|
|
317
|
-
*/
|
|
318
|
-
export function init_language_server(writer) {
|
|
319
|
-
const ret = wasm.init_language_server(writer);
|
|
320
|
-
return Server.__wrap(ret);
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
* @param {Server} server
|
|
325
|
-
* @param {ReadableStreamDefaultReader} reader
|
|
326
|
-
* @returns {Promise<void>}
|
|
327
|
-
*/
|
|
328
|
-
export function listen(server, reader) {
|
|
329
|
-
_assertClass(server, Server);
|
|
330
|
-
var ptr0 = server.__destroy_into_raw();
|
|
331
|
-
const ret = wasm.listen(ptr0, reader);
|
|
332
|
-
return ret;
|
|
703
|
+
let wasmModule, wasm;
|
|
704
|
+
function __wbg_finalize_init(instance, module) {
|
|
705
|
+
wasm = instance.exports;
|
|
706
|
+
wasmModule = module;
|
|
707
|
+
cachedDataViewMemory0 = null;
|
|
708
|
+
cachedUint8ArrayMemory0 = null;
|
|
709
|
+
wasm.__wbindgen_start();
|
|
710
|
+
return wasm;
|
|
333
711
|
}
|
|
334
712
|
|
|
335
|
-
const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
|
|
336
|
-
|
|
337
713
|
async function __wbg_load(module, imports) {
|
|
338
714
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
339
715
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
340
716
|
try {
|
|
341
717
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
342
718
|
} catch (e) {
|
|
343
|
-
const validResponse = module.ok &&
|
|
719
|
+
const validResponse = module.ok && expectedResponseType(module.type);
|
|
344
720
|
|
|
345
721
|
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
346
722
|
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
347
723
|
|
|
348
|
-
} else {
|
|
349
|
-
throw e;
|
|
350
|
-
}
|
|
724
|
+
} else { throw e; }
|
|
351
725
|
}
|
|
352
726
|
}
|
|
353
727
|
|
|
@@ -362,389 +736,20 @@ async function __wbg_load(module, imports) {
|
|
|
362
736
|
return instance;
|
|
363
737
|
}
|
|
364
738
|
}
|
|
365
|
-
}
|
|
366
739
|
|
|
367
|
-
function
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
imports.wbg.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
|
|
371
|
-
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
372
|
-
return ret;
|
|
373
|
-
};
|
|
374
|
-
imports.wbg.__wbg_Number_2d1dcfcf4ec51736 = function(arg0) {
|
|
375
|
-
const ret = Number(arg0);
|
|
376
|
-
return ret;
|
|
377
|
-
};
|
|
378
|
-
imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
379
|
-
const ret = String(arg1);
|
|
380
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
381
|
-
const len1 = WASM_VECTOR_LEN;
|
|
382
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
383
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
384
|
-
};
|
|
385
|
-
imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
|
|
386
|
-
const v = arg0;
|
|
387
|
-
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
388
|
-
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
389
|
-
};
|
|
390
|
-
imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
|
|
391
|
-
const ret = debugString(arg1);
|
|
392
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
393
|
-
const len1 = WASM_VECTOR_LEN;
|
|
394
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
395
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
396
|
-
};
|
|
397
|
-
imports.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317 = function(arg0, arg1) {
|
|
398
|
-
const ret = arg0 in arg1;
|
|
399
|
-
return ret;
|
|
400
|
-
};
|
|
401
|
-
imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
|
|
402
|
-
const ret = typeof(arg0) === 'function';
|
|
403
|
-
return ret;
|
|
404
|
-
};
|
|
405
|
-
imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
|
|
406
|
-
const val = arg0;
|
|
407
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
408
|
-
return ret;
|
|
409
|
-
};
|
|
410
|
-
imports.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030 = function(arg0) {
|
|
411
|
-
const ret = typeof(arg0) === 'string';
|
|
412
|
-
return ret;
|
|
413
|
-
};
|
|
414
|
-
imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
|
|
415
|
-
const ret = arg0 === undefined;
|
|
416
|
-
return ret;
|
|
417
|
-
};
|
|
418
|
-
imports.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d = function(arg0, arg1) {
|
|
419
|
-
const ret = arg0 == arg1;
|
|
420
|
-
return ret;
|
|
421
|
-
};
|
|
422
|
-
imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
|
|
423
|
-
const obj = arg1;
|
|
424
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
425
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
426
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
427
|
-
};
|
|
428
|
-
imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
|
|
429
|
-
const obj = arg1;
|
|
430
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
431
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
432
|
-
var len1 = WASM_VECTOR_LEN;
|
|
433
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
434
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
435
|
-
};
|
|
436
|
-
imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
|
|
437
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
438
|
-
};
|
|
439
|
-
imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) {
|
|
440
|
-
arg0._wbg_cb_unref();
|
|
441
|
-
};
|
|
442
|
-
imports.wbg.__wbg_abort_399ecbcfd6ef3c8e = function(arg0, arg1) {
|
|
443
|
-
arg0.abort(arg1);
|
|
444
|
-
};
|
|
445
|
-
imports.wbg.__wbg_body_947b901c33f7fe32 = function(arg0) {
|
|
446
|
-
const ret = arg0.body;
|
|
447
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
448
|
-
};
|
|
449
|
-
imports.wbg.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
450
|
-
const ret = arg0.call(arg1, arg2);
|
|
451
|
-
return ret;
|
|
452
|
-
}, arguments) };
|
|
453
|
-
imports.wbg.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) {
|
|
454
|
-
const ret = arg0.call(arg1);
|
|
455
|
-
return ret;
|
|
456
|
-
}, arguments) };
|
|
457
|
-
imports.wbg.__wbg_debug_9ad80675faf0c9cf = function(arg0, arg1, arg2, arg3) {
|
|
458
|
-
console.debug(arg0, arg1, arg2, arg3);
|
|
459
|
-
};
|
|
460
|
-
imports.wbg.__wbg_encodeURIComponent_fe8578929b74aa6c = function(arg0, arg1) {
|
|
461
|
-
const ret = encodeURIComponent(getStringFromWasm0(arg0, arg1));
|
|
462
|
-
return ret;
|
|
463
|
-
};
|
|
464
|
-
imports.wbg.__wbg_entries_83c79938054e065f = function(arg0) {
|
|
465
|
-
const ret = Object.entries(arg0);
|
|
466
|
-
return ret;
|
|
467
|
-
};
|
|
468
|
-
imports.wbg.__wbg_error_7bc7d576a6aaf855 = function(arg0) {
|
|
469
|
-
console.error(arg0);
|
|
470
|
-
};
|
|
471
|
-
imports.wbg.__wbg_error_ad1ecdacd1bb600d = function(arg0, arg1, arg2, arg3) {
|
|
472
|
-
console.error(arg0, arg1, arg2, arg3);
|
|
473
|
-
};
|
|
474
|
-
imports.wbg.__wbg_fetch_90447c28cc0b095e = function(arg0, arg1) {
|
|
475
|
-
const ret = arg0.fetch(arg1);
|
|
476
|
-
return ret;
|
|
477
|
-
};
|
|
478
|
-
imports.wbg.__wbg_getReader_b6676f6d8b326942 = function(arg0) {
|
|
479
|
-
const ret = arg0.getReader();
|
|
480
|
-
return ret;
|
|
481
|
-
};
|
|
482
|
-
imports.wbg.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
|
|
483
|
-
const ret = arg0[arg1 >>> 0];
|
|
484
|
-
return ret;
|
|
485
|
-
};
|
|
486
|
-
imports.wbg.__wbg_get_af9dab7e9603ea93 = function() { return handleError(function (arg0, arg1) {
|
|
487
|
-
const ret = Reflect.get(arg0, arg1);
|
|
488
|
-
return ret;
|
|
489
|
-
}, arguments) };
|
|
490
|
-
imports.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
|
|
491
|
-
const ret = arg0[arg1];
|
|
492
|
-
return ret;
|
|
493
|
-
};
|
|
494
|
-
imports.wbg.__wbg_headers_850c3fb50632ae78 = function(arg0) {
|
|
495
|
-
const ret = arg0.headers;
|
|
496
|
-
return ret;
|
|
497
|
-
};
|
|
498
|
-
imports.wbg.__wbg_info_b7fa8ce2e59d29c6 = function(arg0, arg1, arg2, arg3) {
|
|
499
|
-
console.info(arg0, arg1, arg2, arg3);
|
|
500
|
-
};
|
|
501
|
-
imports.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
|
|
502
|
-
let result;
|
|
503
|
-
try {
|
|
504
|
-
result = arg0 instanceof ArrayBuffer;
|
|
505
|
-
} catch (_) {
|
|
506
|
-
result = false;
|
|
507
|
-
}
|
|
508
|
-
const ret = result;
|
|
509
|
-
return ret;
|
|
510
|
-
};
|
|
511
|
-
imports.wbg.__wbg_instanceof_DomException_d430cd4fb5284a83 = function(arg0) {
|
|
512
|
-
let result;
|
|
513
|
-
try {
|
|
514
|
-
result = arg0 instanceof DOMException;
|
|
515
|
-
} catch (_) {
|
|
516
|
-
result = false;
|
|
517
|
-
}
|
|
518
|
-
const ret = result;
|
|
519
|
-
return ret;
|
|
520
|
-
};
|
|
521
|
-
imports.wbg.__wbg_instanceof_Response_cd74d1c2ac92cb0b = function(arg0) {
|
|
522
|
-
let result;
|
|
523
|
-
try {
|
|
524
|
-
result = arg0 instanceof Response;
|
|
525
|
-
} catch (_) {
|
|
526
|
-
result = false;
|
|
527
|
-
}
|
|
528
|
-
const ret = result;
|
|
529
|
-
return ret;
|
|
530
|
-
};
|
|
531
|
-
imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
|
|
532
|
-
let result;
|
|
533
|
-
try {
|
|
534
|
-
result = arg0 instanceof Uint8Array;
|
|
535
|
-
} catch (_) {
|
|
536
|
-
result = false;
|
|
740
|
+
function expectedResponseType(type) {
|
|
741
|
+
switch (type) {
|
|
742
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
537
743
|
}
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
};
|
|
541
|
-
imports.wbg.__wbg_isSafeInteger_ae7d3f054d55fa16 = function(arg0) {
|
|
542
|
-
const ret = Number.isSafeInteger(arg0);
|
|
543
|
-
return ret;
|
|
544
|
-
};
|
|
545
|
-
imports.wbg.__wbg_json_47d847e3a3f1cf40 = function() { return handleError(function (arg0) {
|
|
546
|
-
const ret = arg0.json();
|
|
547
|
-
return ret;
|
|
548
|
-
}, arguments) };
|
|
549
|
-
imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
|
|
550
|
-
const ret = arg0.length;
|
|
551
|
-
return ret;
|
|
552
|
-
};
|
|
553
|
-
imports.wbg.__wbg_length_d45040a40c570362 = function(arg0) {
|
|
554
|
-
const ret = arg0.length;
|
|
555
|
-
return ret;
|
|
556
|
-
};
|
|
557
|
-
imports.wbg.__wbg_log_f614673762e98966 = function(arg0, arg1, arg2, arg3) {
|
|
558
|
-
console.log(arg0, arg1, arg2, arg3);
|
|
559
|
-
};
|
|
560
|
-
imports.wbg.__wbg_name_9136863a055402ff = function(arg0, arg1) {
|
|
561
|
-
const ret = arg1.name;
|
|
562
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
563
|
-
const len1 = WASM_VECTOR_LEN;
|
|
564
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
565
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
566
|
-
};
|
|
567
|
-
imports.wbg.__wbg_new_1ba21ce319a06297 = function() {
|
|
568
|
-
const ret = new Object();
|
|
569
|
-
return ret;
|
|
570
|
-
};
|
|
571
|
-
imports.wbg.__wbg_new_25f239778d6112b9 = function() {
|
|
572
|
-
const ret = new Array();
|
|
573
|
-
return ret;
|
|
574
|
-
};
|
|
575
|
-
imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
|
|
576
|
-
const ret = new Uint8Array(arg0);
|
|
577
|
-
return ret;
|
|
578
|
-
};
|
|
579
|
-
imports.wbg.__wbg_new_881a222c65f168fc = function() { return handleError(function () {
|
|
580
|
-
const ret = new AbortController();
|
|
581
|
-
return ret;
|
|
582
|
-
}, arguments) };
|
|
583
|
-
imports.wbg.__wbg_new_ff12d2b041fb48f1 = function(arg0, arg1) {
|
|
584
|
-
try {
|
|
585
|
-
var state0 = {a: arg0, b: arg1};
|
|
586
|
-
var cb0 = (arg0, arg1) => {
|
|
587
|
-
const a = state0.a;
|
|
588
|
-
state0.a = 0;
|
|
589
|
-
try {
|
|
590
|
-
return wasm_bindgen_e19acd983251e6de___convert__closures_____invoke___wasm_bindgen_e19acd983251e6de___JsValue__wasm_bindgen_e19acd983251e6de___JsValue_____(a, state0.b, arg0, arg1);
|
|
591
|
-
} finally {
|
|
592
|
-
state0.a = a;
|
|
593
|
-
}
|
|
594
|
-
};
|
|
595
|
-
const ret = new Promise(cb0);
|
|
596
|
-
return ret;
|
|
597
|
-
} finally {
|
|
598
|
-
state0.a = state0.b = 0;
|
|
599
|
-
}
|
|
600
|
-
};
|
|
601
|
-
imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
|
|
602
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
603
|
-
return ret;
|
|
604
|
-
};
|
|
605
|
-
imports.wbg.__wbg_new_with_args_df9e7125ffe55248 = function(arg0, arg1, arg2, arg3) {
|
|
606
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
607
|
-
return ret;
|
|
608
|
-
};
|
|
609
|
-
imports.wbg.__wbg_new_with_str_and_init_c5748f76f5108934 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
610
|
-
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
611
|
-
return ret;
|
|
612
|
-
}, arguments) };
|
|
613
|
-
imports.wbg.__wbg_now_8cf15d6e317793e1 = function(arg0) {
|
|
614
|
-
const ret = arg0.now();
|
|
615
|
-
return ret;
|
|
616
|
-
};
|
|
617
|
-
imports.wbg.__wbg_ok_dd98ecb60d721e20 = function(arg0) {
|
|
618
|
-
const ret = arg0.ok;
|
|
619
|
-
return ret;
|
|
620
|
-
};
|
|
621
|
-
imports.wbg.__wbg_performance_64147f039018735c = function(arg0) {
|
|
622
|
-
const ret = arg0.performance;
|
|
623
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
624
|
-
};
|
|
625
|
-
imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
|
|
626
|
-
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
627
|
-
};
|
|
628
|
-
imports.wbg.__wbg_push_7d9be8f38fc13975 = function(arg0, arg1) {
|
|
629
|
-
const ret = arg0.push(arg1);
|
|
630
|
-
return ret;
|
|
631
|
-
};
|
|
632
|
-
imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) {
|
|
633
|
-
const ret = arg0.queueMicrotask;
|
|
634
|
-
return ret;
|
|
635
|
-
};
|
|
636
|
-
imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function(arg0) {
|
|
637
|
-
queueMicrotask(arg0);
|
|
638
|
-
};
|
|
639
|
-
imports.wbg.__wbg_read_39c4b35efcd03c25 = function(arg0) {
|
|
640
|
-
const ret = arg0.read();
|
|
641
|
-
return ret;
|
|
642
|
-
};
|
|
643
|
-
imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) {
|
|
644
|
-
const ret = Promise.resolve(arg0);
|
|
645
|
-
return ret;
|
|
646
|
-
};
|
|
647
|
-
imports.wbg.__wbg_set_425eb8b710d5beee = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
648
|
-
arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
649
|
-
}, arguments) };
|
|
650
|
-
imports.wbg.__wbg_set_781438a03c0c3c81 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
651
|
-
const ret = Reflect.set(arg0, arg1, arg2);
|
|
652
|
-
return ret;
|
|
653
|
-
}, arguments) };
|
|
654
|
-
imports.wbg.__wbg_set_body_8e743242d6076a4f = function(arg0, arg1) {
|
|
655
|
-
arg0.body = arg1;
|
|
656
|
-
};
|
|
657
|
-
imports.wbg.__wbg_set_method_76c69e41b3570627 = function(arg0, arg1, arg2) {
|
|
658
|
-
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
659
|
-
};
|
|
660
|
-
imports.wbg.__wbg_set_mode_611016a6818fc690 = function(arg0, arg1) {
|
|
661
|
-
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
662
|
-
};
|
|
663
|
-
imports.wbg.__wbg_set_signal_e89be862d0091009 = function(arg0, arg1) {
|
|
664
|
-
arg0.signal = arg1;
|
|
665
|
-
};
|
|
666
|
-
imports.wbg.__wbg_signal_3c14fbdc89694b39 = function(arg0) {
|
|
667
|
-
const ret = arg0.signal;
|
|
668
|
-
return ret;
|
|
669
|
-
};
|
|
670
|
-
imports.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
|
|
671
|
-
const ret = typeof global === 'undefined' ? null : global;
|
|
672
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
673
|
-
};
|
|
674
|
-
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() {
|
|
675
|
-
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
676
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
677
|
-
};
|
|
678
|
-
imports.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function() {
|
|
679
|
-
const ret = typeof self === 'undefined' ? null : self;
|
|
680
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
681
|
-
};
|
|
682
|
-
imports.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() {
|
|
683
|
-
const ret = typeof window === 'undefined' ? null : window;
|
|
684
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
685
|
-
};
|
|
686
|
-
imports.wbg.__wbg_text_51046bb33d257f63 = function() { return handleError(function (arg0) {
|
|
687
|
-
const ret = arg0.text();
|
|
688
|
-
return ret;
|
|
689
|
-
}, arguments) };
|
|
690
|
-
imports.wbg.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) {
|
|
691
|
-
const ret = arg0.then(arg1, arg2);
|
|
692
|
-
return ret;
|
|
693
|
-
};
|
|
694
|
-
imports.wbg.__wbg_then_4f95312d68691235 = function(arg0, arg1) {
|
|
695
|
-
const ret = arg0.then(arg1);
|
|
696
|
-
return ret;
|
|
697
|
-
};
|
|
698
|
-
imports.wbg.__wbg_timeout_c214cffbe559e9de = function(arg0) {
|
|
699
|
-
const ret = AbortSignal.timeout(arg0 >>> 0);
|
|
700
|
-
return ret;
|
|
701
|
-
};
|
|
702
|
-
imports.wbg.__wbg_warn_165ef4f6bcfc05e7 = function(arg0, arg1, arg2, arg3) {
|
|
703
|
-
console.warn(arg0, arg1, arg2, arg3);
|
|
704
|
-
};
|
|
705
|
-
imports.wbg.__wbg_write_0823b42435137c02 = function(arg0, arg1) {
|
|
706
|
-
const ret = arg0.write(arg1);
|
|
707
|
-
return ret;
|
|
708
|
-
};
|
|
709
|
-
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
710
|
-
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
711
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
712
|
-
return ret;
|
|
713
|
-
};
|
|
714
|
-
imports.wbg.__wbindgen_cast_ed6a177550826dee = function(arg0, arg1) {
|
|
715
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 1224, function: Function { arguments: [Externref], shim_idx: 1225, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
716
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_e19acd983251e6de___closure__destroy___dyn_core_b03932f25916e09f___ops__function__FnMut__wasm_bindgen_e19acd983251e6de___JsValue____Output_______, wasm_bindgen_e19acd983251e6de___convert__closures_____invoke___wasm_bindgen_e19acd983251e6de___JsValue_____);
|
|
717
|
-
return ret;
|
|
718
|
-
};
|
|
719
|
-
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
720
|
-
const table = wasm.__wbindgen_externrefs;
|
|
721
|
-
const offset = table.grow(4);
|
|
722
|
-
table.set(0, undefined);
|
|
723
|
-
table.set(offset + 0, undefined);
|
|
724
|
-
table.set(offset + 1, null);
|
|
725
|
-
table.set(offset + 2, true);
|
|
726
|
-
table.set(offset + 3, false);
|
|
727
|
-
};
|
|
728
|
-
|
|
729
|
-
return imports;
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
function __wbg_finalize_init(instance, module) {
|
|
733
|
-
wasm = instance.exports;
|
|
734
|
-
__wbg_init.__wbindgen_wasm_module = module;
|
|
735
|
-
cachedDataViewMemory0 = null;
|
|
736
|
-
cachedUint8ArrayMemory0 = null;
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
wasm.__wbindgen_start();
|
|
740
|
-
return wasm;
|
|
744
|
+
return false;
|
|
745
|
+
}
|
|
741
746
|
}
|
|
742
747
|
|
|
743
748
|
function initSync(module) {
|
|
744
749
|
if (wasm !== undefined) return wasm;
|
|
745
750
|
|
|
746
751
|
|
|
747
|
-
if (
|
|
752
|
+
if (module !== undefined) {
|
|
748
753
|
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
749
754
|
({module} = module)
|
|
750
755
|
} else {
|
|
@@ -764,7 +769,7 @@ async function __wbg_init(module_or_path) {
|
|
|
764
769
|
if (wasm !== undefined) return wasm;
|
|
765
770
|
|
|
766
771
|
|
|
767
|
-
if (
|
|
772
|
+
if (module_or_path !== undefined) {
|
|
768
773
|
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
769
774
|
({module_or_path} = module_or_path)
|
|
770
775
|
} else {
|
|
@@ -772,7 +777,7 @@ async function __wbg_init(module_or_path) {
|
|
|
772
777
|
}
|
|
773
778
|
}
|
|
774
779
|
|
|
775
|
-
if (
|
|
780
|
+
if (module_or_path === undefined) {
|
|
776
781
|
module_or_path = new URL('qlue_ls_bg.wasm', import.meta.url);
|
|
777
782
|
}
|
|
778
783
|
const imports = __wbg_get_imports();
|
|
@@ -786,5 +791,4 @@ async function __wbg_init(module_or_path) {
|
|
|
786
791
|
return __wbg_finalize_init(instance, module);
|
|
787
792
|
}
|
|
788
793
|
|
|
789
|
-
export { initSync };
|
|
790
|
-
export default __wbg_init;
|
|
794
|
+
export { initSync, __wbg_init as default };
|
package/qlue_ls_bg.wasm
CHANGED
|
Binary file
|