qlue-ls 2.0.0 → 2.2.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 CHANGED
@@ -5,7 +5,7 @@
5
5
  "Ioannis Nezis <ioannis@nezis.de>"
6
6
  ],
7
7
  "description": "A language server for SPARQL",
8
- "version": "2.0.0",
8
+ "version": "2.2.0",
9
9
  "license": "SEE LICENSE IN LICENSE",
10
10
  "repository": {
11
11
  "type": "git",
package/qlue_ls.d.ts CHANGED
@@ -2,17 +2,15 @@
2
2
  /* eslint-disable */
3
3
 
4
4
  export class Server {
5
- private constructor();
6
- free(): void;
7
- [Symbol.dispose](): void;
5
+ private constructor();
6
+ free(): void;
7
+ [Symbol.dispose](): void;
8
8
  }
9
9
 
10
10
  export function determine_operation_type(input: string): string;
11
11
 
12
12
  export function format_raw(text: string): string;
13
13
 
14
- export function get_parse_tree(input: string, offset: number): any;
15
-
16
14
  export function init_language_server(writer: WritableStreamDefaultWriter): Server;
17
15
 
18
16
  export function listen(server: Server, reader: ReadableStreamDefaultReader): Promise<void>;
@@ -20,44 +18,43 @@ export function listen(server: Server, reader: ReadableStreamDefaultReader): Pro
20
18
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
21
19
 
22
20
  export interface InitOutput {
23
- readonly memory: WebAssembly.Memory;
24
- readonly format_raw: (a: number, b: number) => [number, number, number, number];
25
- readonly init_language_server: (a: any) => number;
26
- readonly listen: (a: number, b: any) => any;
27
- readonly __wbg_server_free: (a: number, b: number) => void;
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_e19acd983251e6de___convert__closures_____invoke___wasm_bindgen_e19acd983251e6de___JsValue_____: (a: number, b: number, c: any) => void;
31
- readonly wasm_bindgen_e19acd983251e6de___closure__destroy___dyn_core_b03932f25916e09f___ops__function__FnMut__wasm_bindgen_e19acd983251e6de___JsValue____Output_______: (a: number, b: number) => void;
32
- readonly wasm_bindgen_e19acd983251e6de___convert__closures_____invoke___wasm_bindgen_e19acd983251e6de___JsValue__wasm_bindgen_e19acd983251e6de___JsValue_____: (a: number, b: number, c: any, d: 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 __externref_table_dealloc: (a: number) => void;
39
- readonly __wbindgen_free: (a: number, b: number, c: number) => void;
40
- readonly __wbindgen_start: () => void;
21
+ readonly memory: WebAssembly.Memory;
22
+ readonly format_raw: (a: number, b: number) => [number, number, number, number];
23
+ readonly init_language_server: (a: any) => number;
24
+ readonly listen: (a: number, b: any) => any;
25
+ readonly __wbg_server_free: (a: number, b: number) => void;
26
+ readonly determine_operation_type: (a: number, b: number) => [number, number];
27
+ readonly wasm_bindgen_8be2313e8adba0b1___closure__destroy___dyn_core_b03932f25916e09f___ops__function__FnMut__wasm_bindgen_8be2313e8adba0b1___JsValue____Output_______: (a: number, b: number) => void;
28
+ readonly wasm_bindgen_8be2313e8adba0b1___convert__closures_____invoke___wasm_bindgen_8be2313e8adba0b1___JsValue__wasm_bindgen_8be2313e8adba0b1___JsValue_____: (a: number, b: number, c: any, d: any) => void;
29
+ readonly wasm_bindgen_8be2313e8adba0b1___convert__closures_____invoke___wasm_bindgen_8be2313e8adba0b1___JsValue_____: (a: number, b: number, c: any) => void;
30
+ readonly __wbindgen_malloc: (a: number, b: number) => number;
31
+ readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
32
+ readonly __externref_table_alloc: () => number;
33
+ readonly __wbindgen_externrefs: WebAssembly.Table;
34
+ readonly __wbindgen_exn_store: (a: number) => void;
35
+ readonly __wbindgen_free: (a: number, b: number, c: number) => void;
36
+ readonly __externref_table_dealloc: (a: number) => void;
37
+ readonly __wbindgen_start: () => void;
41
38
  }
42
39
 
43
40
  export type SyncInitInput = BufferSource | WebAssembly.Module;
44
41
 
45
42
  /**
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
- */
43
+ * Instantiates the given `module`, which can either be bytes or
44
+ * a precompiled `WebAssembly.Module`.
45
+ *
46
+ * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
47
+ *
48
+ * @returns {InitOutput}
49
+ */
53
50
  export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
54
51
 
55
52
  /**
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
- */
53
+ * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
54
+ * for everything else, calls `WebAssembly.instantiate` directly.
55
+ *
56
+ * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
57
+ *
58
+ * @returns {Promise<InitOutput>}
59
+ */
63
60
  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,460 @@
1
- let wasm;
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 {WritableStreamDefaultWriter} writer
70
+ * @returns {Server}
71
+ */
72
+ export function init_language_server(writer) {
73
+ const ret = wasm.init_language_server(writer);
74
+ return Server.__wrap(ret);
75
+ }
76
+
77
+ /**
78
+ * @param {Server} server
79
+ * @param {ReadableStreamDefaultReader} reader
80
+ * @returns {Promise<void>}
81
+ */
82
+ export function listen(server, reader) {
83
+ _assertClass(server, Server);
84
+ var ptr0 = server.__destroy_into_raw();
85
+ const ret = wasm.listen(ptr0, reader);
86
+ return ret;
87
+ }
88
+
89
+ function __wbg_get_imports() {
90
+ const import0 = {
91
+ __proto__: null,
92
+ __wbg_Error_8c4e43fe74559d73: function(arg0, arg1) {
93
+ const ret = Error(getStringFromWasm0(arg0, arg1));
94
+ return ret;
95
+ },
96
+ __wbg_Number_04624de7d0e8332d: function(arg0) {
97
+ const ret = Number(arg0);
98
+ return ret;
99
+ },
100
+ __wbg_String_8f0eb39a4a4c2f66: function(arg0, arg1) {
101
+ const ret = String(arg1);
102
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
103
+ const len1 = WASM_VECTOR_LEN;
104
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
105
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
106
+ },
107
+ __wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: function(arg0) {
108
+ const v = arg0;
109
+ const ret = typeof(v) === 'boolean' ? v : undefined;
110
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
111
+ },
112
+ __wbg___wbindgen_debug_string_0bc8482c6e3508ae: function(arg0, arg1) {
113
+ const ret = debugString(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_in_47fa6863be6f2f25: function(arg0, arg1) {
120
+ const ret = arg0 in arg1;
121
+ return ret;
122
+ },
123
+ __wbg___wbindgen_is_function_0095a73b8b156f76: function(arg0) {
124
+ const ret = typeof(arg0) === 'function';
125
+ return ret;
126
+ },
127
+ __wbg___wbindgen_is_object_5ae8e5880f2c1fbd: function(arg0) {
128
+ const val = arg0;
129
+ const ret = typeof(val) === 'object' && val !== null;
130
+ return ret;
131
+ },
132
+ __wbg___wbindgen_is_string_cd444516edc5b180: function(arg0) {
133
+ const ret = typeof(arg0) === 'string';
134
+ return ret;
135
+ },
136
+ __wbg___wbindgen_is_undefined_9e4d92534c42d778: function(arg0) {
137
+ const ret = arg0 === undefined;
138
+ return ret;
139
+ },
140
+ __wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811: function(arg0, arg1) {
141
+ const ret = arg0 == arg1;
142
+ return ret;
143
+ },
144
+ __wbg___wbindgen_number_get_8ff4255516ccad3e: function(arg0, arg1) {
145
+ const obj = arg1;
146
+ const ret = typeof(obj) === 'number' ? obj : undefined;
147
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
148
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
149
+ },
150
+ __wbg___wbindgen_string_get_72fb696202c56729: function(arg0, arg1) {
151
+ const obj = arg1;
152
+ const ret = typeof(obj) === 'string' ? obj : undefined;
153
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
154
+ var len1 = WASM_VECTOR_LEN;
155
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
156
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
157
+ },
158
+ __wbg___wbindgen_throw_be289d5034ed271b: function(arg0, arg1) {
159
+ throw new Error(getStringFromWasm0(arg0, arg1));
160
+ },
161
+ __wbg__wbg_cb_unref_d9b87ff7982e3b21: function(arg0) {
162
+ arg0._wbg_cb_unref();
163
+ },
164
+ __wbg_abort_d549b92d3c665de1: function(arg0, arg1) {
165
+ arg0.abort(arg1);
166
+ },
167
+ __wbg_body_3a0b4437dadea6bf: function(arg0) {
168
+ const ret = arg0.body;
169
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
170
+ },
171
+ __wbg_call_389efe28435a9388: function() { return handleError(function (arg0, arg1) {
172
+ const ret = arg0.call(arg1);
173
+ return ret;
174
+ }, arguments); },
175
+ __wbg_call_4708e0c13bdc8e95: function() { return handleError(function (arg0, arg1, arg2) {
176
+ const ret = arg0.call(arg1, arg2);
177
+ return ret;
178
+ }, arguments); },
179
+ __wbg_debug_46a93995fc6f8820: function(arg0, arg1, arg2, arg3) {
180
+ console.debug(arg0, arg1, arg2, arg3);
181
+ },
182
+ __wbg_encodeURIComponent_46e9eafddd38cb39: function(arg0, arg1) {
183
+ const ret = encodeURIComponent(getStringFromWasm0(arg0, arg1));
184
+ return ret;
185
+ },
186
+ __wbg_entries_58c7934c745daac7: function(arg0) {
187
+ const ret = Object.entries(arg0);
188
+ return ret;
189
+ },
190
+ __wbg_error_794d0ffc9d00d5c3: function(arg0, arg1, arg2, arg3) {
191
+ console.error(arg0, arg1, arg2, arg3);
192
+ },
193
+ __wbg_error_9a7fe3f932034cde: function(arg0) {
194
+ console.error(arg0);
195
+ },
196
+ __wbg_fetch_afb6a4b6cacf876d: function(arg0, arg1) {
197
+ const ret = arg0.fetch(arg1);
198
+ return ret;
199
+ },
200
+ __wbg_getReader_804829cfb24eb4dd: function(arg0) {
201
+ const ret = arg0.getReader();
202
+ return ret;
203
+ },
204
+ __wbg_get_9b94d73e6221f75c: function(arg0, arg1) {
205
+ const ret = arg0[arg1 >>> 0];
206
+ return ret;
207
+ },
208
+ __wbg_get_b3ed3ad4be2bc8ac: function() { return handleError(function (arg0, arg1) {
209
+ const ret = Reflect.get(arg0, arg1);
210
+ return ret;
211
+ }, arguments); },
212
+ __wbg_get_with_ref_key_1dc361bd10053bfe: function(arg0, arg1) {
213
+ const ret = arg0[arg1];
214
+ return ret;
215
+ },
216
+ __wbg_headers_5a897f7fee9a0571: function(arg0) {
217
+ const ret = arg0.headers;
218
+ return ret;
219
+ },
220
+ __wbg_info_9e602cf10c5c690b: function(arg0, arg1, arg2, arg3) {
221
+ console.info(arg0, arg1, arg2, arg3);
222
+ },
223
+ __wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: function(arg0) {
224
+ let result;
225
+ try {
226
+ result = arg0 instanceof ArrayBuffer;
227
+ } catch (_) {
228
+ result = false;
229
+ }
230
+ const ret = result;
231
+ return ret;
232
+ },
233
+ __wbg_instanceof_DomException_99c177193e554b75: function(arg0) {
234
+ let result;
235
+ try {
236
+ result = arg0 instanceof DOMException;
237
+ } catch (_) {
238
+ result = false;
239
+ }
240
+ const ret = result;
241
+ return ret;
242
+ },
243
+ __wbg_instanceof_Response_ee1d54d79ae41977: function(arg0) {
244
+ let result;
245
+ try {
246
+ result = arg0 instanceof Response;
247
+ } catch (_) {
248
+ result = false;
249
+ }
250
+ const ret = result;
251
+ return ret;
252
+ },
253
+ __wbg_instanceof_Uint8Array_9b9075935c74707c: function(arg0) {
254
+ let result;
255
+ try {
256
+ result = arg0 instanceof Uint8Array;
257
+ } catch (_) {
258
+ result = false;
259
+ }
260
+ const ret = result;
261
+ return ret;
262
+ },
263
+ __wbg_isSafeInteger_bfbc7332a9768d2a: function(arg0) {
264
+ const ret = Number.isSafeInteger(arg0);
265
+ return ret;
266
+ },
267
+ __wbg_json_d214c3d336140979: function() { return handleError(function (arg0) {
268
+ const ret = arg0.json();
269
+ return ret;
270
+ }, arguments); },
271
+ __wbg_length_32ed9a279acd054c: function(arg0) {
272
+ const ret = arg0.length;
273
+ return ret;
274
+ },
275
+ __wbg_length_35a7bace40f36eac: function(arg0) {
276
+ const ret = arg0.length;
277
+ return ret;
278
+ },
279
+ __wbg_log_24aba2a6d8990b35: function(arg0, arg1, arg2, arg3) {
280
+ console.log(arg0, arg1, arg2, arg3);
281
+ },
282
+ __wbg_name_242753e5110cd756: function(arg0, arg1) {
283
+ const ret = arg1.name;
284
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
285
+ const len1 = WASM_VECTOR_LEN;
286
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
287
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
288
+ },
289
+ __wbg_new_361308b2356cecd0: function() {
290
+ const ret = new Object();
291
+ return ret;
292
+ },
293
+ __wbg_new_b5d9e2fb389fef91: function(arg0, arg1) {
294
+ try {
295
+ var state0 = {a: arg0, b: arg1};
296
+ var cb0 = (arg0, arg1) => {
297
+ const a = state0.a;
298
+ state0.a = 0;
299
+ try {
300
+ return wasm_bindgen_8be2313e8adba0b1___convert__closures_____invoke___wasm_bindgen_8be2313e8adba0b1___JsValue__wasm_bindgen_8be2313e8adba0b1___JsValue_____(a, state0.b, arg0, arg1);
301
+ } finally {
302
+ state0.a = a;
303
+ }
304
+ };
305
+ const ret = new Promise(cb0);
306
+ return ret;
307
+ } finally {
308
+ state0.a = state0.b = 0;
309
+ }
310
+ },
311
+ __wbg_new_b949e7f56150a5d1: function() { return handleError(function () {
312
+ const ret = new AbortController();
313
+ return ret;
314
+ }, arguments); },
315
+ __wbg_new_dd2b680c8bf6ae29: function(arg0) {
316
+ const ret = new Uint8Array(arg0);
317
+ return ret;
318
+ },
319
+ __wbg_new_no_args_1c7c842f08d00ebb: function(arg0, arg1) {
320
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
321
+ return ret;
322
+ },
323
+ __wbg_new_with_args_7bba34e94b1cfa40: function(arg0, arg1, arg2, arg3) {
324
+ const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
325
+ return ret;
326
+ },
327
+ __wbg_new_with_str_and_init_a61cbc6bdef21614: function() { return handleError(function (arg0, arg1, arg2) {
328
+ const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
329
+ return ret;
330
+ }, arguments); },
331
+ __wbg_now_ebffdf7e580f210d: function(arg0) {
332
+ const ret = arg0.now();
333
+ return ret;
334
+ },
335
+ __wbg_ok_87f537440a0acf85: function(arg0) {
336
+ const ret = arg0.ok;
337
+ return ret;
338
+ },
339
+ __wbg_performance_bba4d45afeed7106: function(arg0) {
340
+ const ret = arg0.performance;
341
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
342
+ },
343
+ __wbg_prototypesetcall_bdcdcc5842e4d77d: function(arg0, arg1, arg2) {
344
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
345
+ },
346
+ __wbg_queueMicrotask_0aa0a927f78f5d98: function(arg0) {
347
+ const ret = arg0.queueMicrotask;
348
+ return ret;
349
+ },
350
+ __wbg_queueMicrotask_5bb536982f78a56f: function(arg0) {
351
+ queueMicrotask(arg0);
352
+ },
353
+ __wbg_read_68fd377df67e19b0: function(arg0) {
354
+ const ret = arg0.read();
355
+ return ret;
356
+ },
357
+ __wbg_resolve_002c4b7d9d8f6b64: function(arg0) {
358
+ const ret = Promise.resolve(arg0);
359
+ return ret;
360
+ },
361
+ __wbg_set_body_9a7e00afe3cfe244: function(arg0, arg1) {
362
+ arg0.body = arg1;
363
+ },
364
+ __wbg_set_db769d02949a271d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
365
+ arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
366
+ }, arguments); },
367
+ __wbg_set_method_c3e20375f5ae7fac: function(arg0, arg1, arg2) {
368
+ arg0.method = getStringFromWasm0(arg1, arg2);
369
+ },
370
+ __wbg_set_mode_b13642c312648202: function(arg0, arg1) {
371
+ arg0.mode = __wbindgen_enum_RequestMode[arg1];
372
+ },
373
+ __wbg_set_signal_f2d3f8599248896d: function(arg0, arg1) {
374
+ arg0.signal = arg1;
375
+ },
376
+ __wbg_signal_d1285ecab4ebc5ad: function(arg0) {
377
+ const ret = arg0.signal;
378
+ return ret;
379
+ },
380
+ __wbg_static_accessor_GLOBAL_12837167ad935116: function() {
381
+ const ret = typeof global === 'undefined' ? null : global;
382
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
383
+ },
384
+ __wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f: function() {
385
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
386
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
387
+ },
388
+ __wbg_static_accessor_SELF_a621d3dfbb60d0ce: function() {
389
+ const ret = typeof self === 'undefined' ? null : self;
390
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
391
+ },
392
+ __wbg_static_accessor_WINDOW_f8727f0cf888e0bd: function() {
393
+ const ret = typeof window === 'undefined' ? null : window;
394
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
395
+ },
396
+ __wbg_text_083b8727c990c8c0: function() { return handleError(function (arg0) {
397
+ const ret = arg0.text();
398
+ return ret;
399
+ }, arguments); },
400
+ __wbg_then_0d9fe2c7b1857d32: function(arg0, arg1, arg2) {
401
+ const ret = arg0.then(arg1, arg2);
402
+ return ret;
403
+ },
404
+ __wbg_then_b9e7b3b5f1a9e1b5: function(arg0, arg1) {
405
+ const ret = arg0.then(arg1);
406
+ return ret;
407
+ },
408
+ __wbg_timeout_4a4c09d04e4cda28: function(arg0) {
409
+ const ret = AbortSignal.timeout(arg0 >>> 0);
410
+ return ret;
411
+ },
412
+ __wbg_warn_a40b971467b219c7: function(arg0, arg1, arg2, arg3) {
413
+ console.warn(arg0, arg1, arg2, arg3);
414
+ },
415
+ __wbg_write_4dbba5e5426abaf4: function(arg0, arg1) {
416
+ const ret = arg0.write(arg1);
417
+ return ret;
418
+ },
419
+ __wbindgen_cast_0000000000000001: function(arg0, arg1) {
420
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1223, function: Function { arguments: [Externref], shim_idx: 1224, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
421
+ 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_____);
422
+ return ret;
423
+ },
424
+ __wbindgen_cast_0000000000000002: function(arg0, arg1) {
425
+ // Cast intrinsic for `Ref(String) -> Externref`.
426
+ const ret = getStringFromWasm0(arg0, arg1);
427
+ return ret;
428
+ },
429
+ __wbindgen_init_externref_table: function() {
430
+ const table = wasm.__wbindgen_externrefs;
431
+ const offset = table.grow(4);
432
+ table.set(0, undefined);
433
+ table.set(offset + 0, undefined);
434
+ table.set(offset + 1, null);
435
+ table.set(offset + 2, true);
436
+ table.set(offset + 3, false);
437
+ },
438
+ };
439
+ return {
440
+ __proto__: null,
441
+ "./qlue_ls_bg.js": import0,
442
+ };
443
+ }
444
+
445
+ function wasm_bindgen_8be2313e8adba0b1___convert__closures_____invoke___wasm_bindgen_8be2313e8adba0b1___JsValue_____(arg0, arg1, arg2) {
446
+ wasm.wasm_bindgen_8be2313e8adba0b1___convert__closures_____invoke___wasm_bindgen_8be2313e8adba0b1___JsValue_____(arg0, arg1, arg2);
447
+ }
448
+
449
+ function wasm_bindgen_8be2313e8adba0b1___convert__closures_____invoke___wasm_bindgen_8be2313e8adba0b1___JsValue__wasm_bindgen_8be2313e8adba0b1___JsValue_____(arg0, arg1, arg2, arg3) {
450
+ wasm.wasm_bindgen_8be2313e8adba0b1___convert__closures_____invoke___wasm_bindgen_8be2313e8adba0b1___JsValue__wasm_bindgen_8be2313e8adba0b1___JsValue_____(arg0, arg1, arg2, arg3);
451
+ }
452
+
453
+
454
+ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
455
+ const ServerFinalization = (typeof FinalizationRegistry === 'undefined')
456
+ ? { register: () => {}, unregister: () => {} }
457
+ : new FinalizationRegistry(ptr => wasm.__wbg_server_free(ptr >>> 0, 1));
2
458
 
3
459
  function addToExternrefTable0(obj) {
4
460
  const idx = wasm.__externref_table_alloc();
@@ -215,139 +671,33 @@ if (!('encodeInto' in cachedTextEncoder)) {
215
671
  read: arg.length,
216
672
  written: buf.length
217
673
  };
218
- }
674
+ };
219
675
  }
220
676
 
221
677
  let WASM_VECTOR_LEN = 0;
222
678
 
223
- function wasm_bindgen_e19acd983251e6de___convert__closures_____invoke___wasm_bindgen_e19acd983251e6de___JsValue_____(arg0, arg1, arg2) {
224
- wasm.wasm_bindgen_e19acd983251e6de___convert__closures_____invoke___wasm_bindgen_e19acd983251e6de___JsValue_____(arg0, arg1, arg2);
225
- }
226
-
227
- function wasm_bindgen_e19acd983251e6de___convert__closures_____invoke___wasm_bindgen_e19acd983251e6de___JsValue__wasm_bindgen_e19acd983251e6de___JsValue_____(arg0, arg1, arg2, arg3) {
228
- wasm.wasm_bindgen_e19acd983251e6de___convert__closures_____invoke___wasm_bindgen_e19acd983251e6de___JsValue__wasm_bindgen_e19acd983251e6de___JsValue_____(arg0, arg1, arg2, arg3);
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;
679
+ let wasmModule, wasm;
680
+ function __wbg_finalize_init(instance, module) {
681
+ wasm = instance.exports;
682
+ wasmModule = module;
683
+ cachedDataViewMemory0 = null;
684
+ cachedUint8ArrayMemory0 = null;
685
+ wasm.__wbindgen_start();
686
+ return wasm;
333
687
  }
334
688
 
335
- const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
336
-
337
689
  async function __wbg_load(module, imports) {
338
690
  if (typeof Response === 'function' && module instanceof Response) {
339
691
  if (typeof WebAssembly.instantiateStreaming === 'function') {
340
692
  try {
341
693
  return await WebAssembly.instantiateStreaming(module, imports);
342
694
  } catch (e) {
343
- const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
695
+ const validResponse = module.ok && expectedResponseType(module.type);
344
696
 
345
697
  if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
346
698
  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
699
 
348
- } else {
349
- throw e;
350
- }
700
+ } else { throw e; }
351
701
  }
352
702
  }
353
703
 
@@ -362,389 +712,20 @@ async function __wbg_load(module, imports) {
362
712
  return instance;
363
713
  }
364
714
  }
365
- }
366
715
 
367
- function __wbg_get_imports() {
368
- const imports = {};
369
- imports.wbg = {};
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;
537
- }
538
- const ret = result;
539
- return ret;
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;
716
+ function expectedResponseType(type) {
717
+ switch (type) {
718
+ case 'basic': case 'cors': case 'default': return true;
599
719
  }
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;
720
+ return false;
721
+ }
741
722
  }
742
723
 
743
724
  function initSync(module) {
744
725
  if (wasm !== undefined) return wasm;
745
726
 
746
727
 
747
- if (typeof module !== 'undefined') {
728
+ if (module !== undefined) {
748
729
  if (Object.getPrototypeOf(module) === Object.prototype) {
749
730
  ({module} = module)
750
731
  } else {
@@ -764,7 +745,7 @@ async function __wbg_init(module_or_path) {
764
745
  if (wasm !== undefined) return wasm;
765
746
 
766
747
 
767
- if (typeof module_or_path !== 'undefined') {
748
+ if (module_or_path !== undefined) {
768
749
  if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
769
750
  ({module_or_path} = module_or_path)
770
751
  } else {
@@ -772,7 +753,7 @@ async function __wbg_init(module_or_path) {
772
753
  }
773
754
  }
774
755
 
775
- if (typeof module_or_path === 'undefined') {
756
+ if (module_or_path === undefined) {
776
757
  module_or_path = new URL('qlue_ls_bg.wasm', import.meta.url);
777
758
  }
778
759
  const imports = __wbg_get_imports();
@@ -786,5 +767,4 @@ async function __wbg_init(module_or_path) {
786
767
  return __wbg_finalize_init(instance, module);
787
768
  }
788
769
 
789
- export { initSync };
790
- export default __wbg_init;
770
+ export { initSync, __wbg_init as default };
package/qlue_ls_bg.wasm CHANGED
Binary file