lazy-sparql-result-reader 0.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.
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
export function read(stream: ReadableStream, batch_size: number, callback: Function): Promise<void>;
|
|
5
|
+
|
|
6
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
7
|
+
|
|
8
|
+
export interface InitOutput {
|
|
9
|
+
readonly memory: WebAssembly.Memory;
|
|
10
|
+
readonly read: (a: any, b: number, c: any) => any;
|
|
11
|
+
readonly wasm_bindgen__convert__closures_____invoke__h53040b977ccf16ad: (a: number, b: number, c: any) => void;
|
|
12
|
+
readonly wasm_bindgen__closure__destroy__h9431bfc0c26898f5: (a: number, b: number) => void;
|
|
13
|
+
readonly wasm_bindgen__convert__closures_____invoke__h0204f368625abfd5: (a: number, b: number, c: any, d: any) => void;
|
|
14
|
+
readonly __wbindgen_exn_store: (a: number) => void;
|
|
15
|
+
readonly __externref_table_alloc: () => number;
|
|
16
|
+
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
17
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
18
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
19
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
20
|
+
readonly __wbindgen_start: () => void;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
27
|
+
* a precompiled `WebAssembly.Module`.
|
|
28
|
+
*
|
|
29
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
30
|
+
*
|
|
31
|
+
* @returns {InitOutput}
|
|
32
|
+
*/
|
|
33
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
37
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
38
|
+
*
|
|
39
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
40
|
+
*
|
|
41
|
+
* @returns {Promise<InitOutput>}
|
|
42
|
+
*/
|
|
43
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|
|
@@ -0,0 +1,458 @@
|
|
|
1
|
+
let wasm;
|
|
2
|
+
|
|
3
|
+
function addToExternrefTable0(obj) {
|
|
4
|
+
const idx = wasm.__externref_table_alloc();
|
|
5
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
6
|
+
return idx;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
10
|
+
? { register: () => {}, unregister: () => {} }
|
|
11
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
12
|
+
|
|
13
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
14
|
+
ptr = ptr >>> 0;
|
|
15
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
let cachedDataViewMemory0 = null;
|
|
19
|
+
function getDataViewMemory0() {
|
|
20
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
21
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
22
|
+
}
|
|
23
|
+
return cachedDataViewMemory0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function getStringFromWasm0(ptr, len) {
|
|
27
|
+
ptr = ptr >>> 0;
|
|
28
|
+
return decodeText(ptr, len);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
let cachedUint8ArrayMemory0 = null;
|
|
32
|
+
function getUint8ArrayMemory0() {
|
|
33
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
34
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
35
|
+
}
|
|
36
|
+
return cachedUint8ArrayMemory0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function handleError(f, args) {
|
|
40
|
+
try {
|
|
41
|
+
return f.apply(this, args);
|
|
42
|
+
} catch (e) {
|
|
43
|
+
const idx = addToExternrefTable0(e);
|
|
44
|
+
wasm.__wbindgen_exn_store(idx);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function isLikeNone(x) {
|
|
49
|
+
return x === undefined || x === null;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
53
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
54
|
+
const real = (...args) => {
|
|
55
|
+
|
|
56
|
+
// First up with a closure we increment the internal reference
|
|
57
|
+
// count. This ensures that the Rust closure environment won't
|
|
58
|
+
// be deallocated while we're invoking it.
|
|
59
|
+
state.cnt++;
|
|
60
|
+
const a = state.a;
|
|
61
|
+
state.a = 0;
|
|
62
|
+
try {
|
|
63
|
+
return f(a, state.b, ...args);
|
|
64
|
+
} finally {
|
|
65
|
+
state.a = a;
|
|
66
|
+
real._wbg_cb_unref();
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
real._wbg_cb_unref = () => {
|
|
70
|
+
if (--state.cnt === 0) {
|
|
71
|
+
state.dtor(state.a, state.b);
|
|
72
|
+
state.a = 0;
|
|
73
|
+
CLOSURE_DTORS.unregister(state);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
77
|
+
return real;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
81
|
+
if (realloc === undefined) {
|
|
82
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
83
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
84
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
85
|
+
WASM_VECTOR_LEN = buf.length;
|
|
86
|
+
return ptr;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
let len = arg.length;
|
|
90
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
91
|
+
|
|
92
|
+
const mem = getUint8ArrayMemory0();
|
|
93
|
+
|
|
94
|
+
let offset = 0;
|
|
95
|
+
|
|
96
|
+
for (; offset < len; offset++) {
|
|
97
|
+
const code = arg.charCodeAt(offset);
|
|
98
|
+
if (code > 0x7F) break;
|
|
99
|
+
mem[ptr + offset] = code;
|
|
100
|
+
}
|
|
101
|
+
if (offset !== len) {
|
|
102
|
+
if (offset !== 0) {
|
|
103
|
+
arg = arg.slice(offset);
|
|
104
|
+
}
|
|
105
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
106
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
107
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
108
|
+
|
|
109
|
+
offset += ret.written;
|
|
110
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
WASM_VECTOR_LEN = offset;
|
|
114
|
+
return ptr;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
118
|
+
cachedTextDecoder.decode();
|
|
119
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
120
|
+
let numBytesDecoded = 0;
|
|
121
|
+
function decodeText(ptr, len) {
|
|
122
|
+
numBytesDecoded += len;
|
|
123
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
124
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
125
|
+
cachedTextDecoder.decode();
|
|
126
|
+
numBytesDecoded = len;
|
|
127
|
+
}
|
|
128
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
const cachedTextEncoder = new TextEncoder();
|
|
132
|
+
|
|
133
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
134
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
135
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
136
|
+
view.set(buf);
|
|
137
|
+
return {
|
|
138
|
+
read: arg.length,
|
|
139
|
+
written: buf.length
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
let WASM_VECTOR_LEN = 0;
|
|
145
|
+
|
|
146
|
+
function wasm_bindgen__convert__closures_____invoke__h53040b977ccf16ad(arg0, arg1, arg2) {
|
|
147
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h53040b977ccf16ad(arg0, arg1, arg2);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
function wasm_bindgen__convert__closures_____invoke__h0204f368625abfd5(arg0, arg1, arg2, arg3) {
|
|
151
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h0204f368625abfd5(arg0, arg1, arg2, arg3);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* @param {ReadableStream} stream
|
|
156
|
+
* @param {number} batch_size
|
|
157
|
+
* @param {Function} callback
|
|
158
|
+
* @returns {Promise<void>}
|
|
159
|
+
*/
|
|
160
|
+
export function read(stream, batch_size, callback) {
|
|
161
|
+
const ret = wasm.read(stream, batch_size, callback);
|
|
162
|
+
return ret;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
|
|
166
|
+
|
|
167
|
+
async function __wbg_load(module, imports) {
|
|
168
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
169
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
170
|
+
try {
|
|
171
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
172
|
+
} catch (e) {
|
|
173
|
+
const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
|
|
174
|
+
|
|
175
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
176
|
+
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);
|
|
177
|
+
|
|
178
|
+
} else {
|
|
179
|
+
throw e;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
const bytes = await module.arrayBuffer();
|
|
185
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
186
|
+
} else {
|
|
187
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
188
|
+
|
|
189
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
190
|
+
return { instance, module };
|
|
191
|
+
} else {
|
|
192
|
+
return instance;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
function __wbg_get_imports() {
|
|
198
|
+
const imports = {};
|
|
199
|
+
imports.wbg = {};
|
|
200
|
+
imports.wbg.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
|
|
201
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
202
|
+
return ret;
|
|
203
|
+
};
|
|
204
|
+
imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
|
|
205
|
+
const v = arg0;
|
|
206
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
207
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
208
|
+
};
|
|
209
|
+
imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
|
|
210
|
+
const ret = typeof(arg0) === 'function';
|
|
211
|
+
return ret;
|
|
212
|
+
};
|
|
213
|
+
imports.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030 = function(arg0) {
|
|
214
|
+
const ret = typeof(arg0) === 'string';
|
|
215
|
+
return ret;
|
|
216
|
+
};
|
|
217
|
+
imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
|
|
218
|
+
const ret = arg0 === undefined;
|
|
219
|
+
return ret;
|
|
220
|
+
};
|
|
221
|
+
imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
|
|
222
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
223
|
+
};
|
|
224
|
+
imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) {
|
|
225
|
+
arg0._wbg_cb_unref();
|
|
226
|
+
};
|
|
227
|
+
imports.wbg.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
228
|
+
const ret = arg0.call(arg1, arg2);
|
|
229
|
+
return ret;
|
|
230
|
+
}, arguments) };
|
|
231
|
+
imports.wbg.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) {
|
|
232
|
+
const ret = arg0.call(arg1);
|
|
233
|
+
return ret;
|
|
234
|
+
}, arguments) };
|
|
235
|
+
imports.wbg.__wbg_debug_9ad80675faf0c9cf = function(arg0, arg1, arg2, arg3) {
|
|
236
|
+
console.debug(arg0, arg1, arg2, arg3);
|
|
237
|
+
};
|
|
238
|
+
imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
239
|
+
let deferred0_0;
|
|
240
|
+
let deferred0_1;
|
|
241
|
+
try {
|
|
242
|
+
deferred0_0 = arg0;
|
|
243
|
+
deferred0_1 = arg1;
|
|
244
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
245
|
+
} finally {
|
|
246
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
imports.wbg.__wbg_error_7bc7d576a6aaf855 = function(arg0) {
|
|
250
|
+
console.error(arg0);
|
|
251
|
+
};
|
|
252
|
+
imports.wbg.__wbg_error_ad1ecdacd1bb600d = function(arg0, arg1, arg2, arg3) {
|
|
253
|
+
console.error(arg0, arg1, arg2, arg3);
|
|
254
|
+
};
|
|
255
|
+
imports.wbg.__wbg_getReader_b6676f6d8b326942 = function(arg0) {
|
|
256
|
+
const ret = arg0.getReader();
|
|
257
|
+
return ret;
|
|
258
|
+
};
|
|
259
|
+
imports.wbg.__wbg_get_af9dab7e9603ea93 = function() { return handleError(function (arg0, arg1) {
|
|
260
|
+
const ret = Reflect.get(arg0, arg1);
|
|
261
|
+
return ret;
|
|
262
|
+
}, arguments) };
|
|
263
|
+
imports.wbg.__wbg_info_b7fa8ce2e59d29c6 = function(arg0, arg1, arg2, arg3) {
|
|
264
|
+
console.info(arg0, arg1, arg2, arg3);
|
|
265
|
+
};
|
|
266
|
+
imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
|
|
267
|
+
const ret = arg0.length;
|
|
268
|
+
return ret;
|
|
269
|
+
};
|
|
270
|
+
imports.wbg.__wbg_log_f614673762e98966 = function(arg0, arg1, arg2, arg3) {
|
|
271
|
+
console.log(arg0, arg1, arg2, arg3);
|
|
272
|
+
};
|
|
273
|
+
imports.wbg.__wbg_new_1ba21ce319a06297 = function() {
|
|
274
|
+
const ret = new Object();
|
|
275
|
+
return ret;
|
|
276
|
+
};
|
|
277
|
+
imports.wbg.__wbg_new_25f239778d6112b9 = function() {
|
|
278
|
+
const ret = new Array();
|
|
279
|
+
return ret;
|
|
280
|
+
};
|
|
281
|
+
imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
|
|
282
|
+
const ret = new Uint8Array(arg0);
|
|
283
|
+
return ret;
|
|
284
|
+
};
|
|
285
|
+
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
|
286
|
+
const ret = new Error();
|
|
287
|
+
return ret;
|
|
288
|
+
};
|
|
289
|
+
imports.wbg.__wbg_new_b546ae120718850e = function() {
|
|
290
|
+
const ret = new Map();
|
|
291
|
+
return ret;
|
|
292
|
+
};
|
|
293
|
+
imports.wbg.__wbg_new_ff12d2b041fb48f1 = 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__convert__closures_____invoke__h0204f368625abfd5(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
|
+
imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
|
|
312
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
313
|
+
return ret;
|
|
314
|
+
};
|
|
315
|
+
imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
|
|
316
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
317
|
+
};
|
|
318
|
+
imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) {
|
|
319
|
+
const ret = arg0.queueMicrotask;
|
|
320
|
+
return ret;
|
|
321
|
+
};
|
|
322
|
+
imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function(arg0) {
|
|
323
|
+
queueMicrotask(arg0);
|
|
324
|
+
};
|
|
325
|
+
imports.wbg.__wbg_read_39c4b35efcd03c25 = function(arg0) {
|
|
326
|
+
const ret = arg0.read();
|
|
327
|
+
return ret;
|
|
328
|
+
};
|
|
329
|
+
imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) {
|
|
330
|
+
const ret = Promise.resolve(arg0);
|
|
331
|
+
return ret;
|
|
332
|
+
};
|
|
333
|
+
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
334
|
+
arg0[arg1] = arg2;
|
|
335
|
+
};
|
|
336
|
+
imports.wbg.__wbg_set_7df433eea03a5c14 = function(arg0, arg1, arg2) {
|
|
337
|
+
arg0[arg1 >>> 0] = arg2;
|
|
338
|
+
};
|
|
339
|
+
imports.wbg.__wbg_set_efaaf145b9377369 = function(arg0, arg1, arg2) {
|
|
340
|
+
const ret = arg0.set(arg1, arg2);
|
|
341
|
+
return ret;
|
|
342
|
+
};
|
|
343
|
+
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
344
|
+
const ret = arg1.stack;
|
|
345
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
346
|
+
const len1 = WASM_VECTOR_LEN;
|
|
347
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
348
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
349
|
+
};
|
|
350
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
|
|
351
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
352
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
353
|
+
};
|
|
354
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() {
|
|
355
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
356
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
357
|
+
};
|
|
358
|
+
imports.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function() {
|
|
359
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
360
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
361
|
+
};
|
|
362
|
+
imports.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() {
|
|
363
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
364
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
365
|
+
};
|
|
366
|
+
imports.wbg.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) {
|
|
367
|
+
const ret = arg0.then(arg1, arg2);
|
|
368
|
+
return ret;
|
|
369
|
+
};
|
|
370
|
+
imports.wbg.__wbg_then_4f95312d68691235 = function(arg0, arg1) {
|
|
371
|
+
const ret = arg0.then(arg1);
|
|
372
|
+
return ret;
|
|
373
|
+
};
|
|
374
|
+
imports.wbg.__wbg_warn_165ef4f6bcfc05e7 = function(arg0, arg1, arg2, arg3) {
|
|
375
|
+
console.warn(arg0, arg1, arg2, arg3);
|
|
376
|
+
};
|
|
377
|
+
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
378
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
379
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
380
|
+
return ret;
|
|
381
|
+
};
|
|
382
|
+
imports.wbg.__wbindgen_cast_d2d0cc24b1b6ed59 = function(arg0, arg1) {
|
|
383
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 42, function: Function { arguments: [Externref], shim_idx: 43, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
384
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h9431bfc0c26898f5, wasm_bindgen__convert__closures_____invoke__h53040b977ccf16ad);
|
|
385
|
+
return ret;
|
|
386
|
+
};
|
|
387
|
+
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
388
|
+
const table = wasm.__wbindgen_externrefs;
|
|
389
|
+
const offset = table.grow(4);
|
|
390
|
+
table.set(0, undefined);
|
|
391
|
+
table.set(offset + 0, undefined);
|
|
392
|
+
table.set(offset + 1, null);
|
|
393
|
+
table.set(offset + 2, true);
|
|
394
|
+
table.set(offset + 3, false);
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
return imports;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
function __wbg_finalize_init(instance, module) {
|
|
401
|
+
wasm = instance.exports;
|
|
402
|
+
__wbg_init.__wbindgen_wasm_module = module;
|
|
403
|
+
cachedDataViewMemory0 = null;
|
|
404
|
+
cachedUint8ArrayMemory0 = null;
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
wasm.__wbindgen_start();
|
|
408
|
+
return wasm;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
function initSync(module) {
|
|
412
|
+
if (wasm !== undefined) return wasm;
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
if (typeof module !== 'undefined') {
|
|
416
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
417
|
+
({module} = module)
|
|
418
|
+
} else {
|
|
419
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
const imports = __wbg_get_imports();
|
|
424
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
425
|
+
module = new WebAssembly.Module(module);
|
|
426
|
+
}
|
|
427
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
428
|
+
return __wbg_finalize_init(instance, module);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
async function __wbg_init(module_or_path) {
|
|
432
|
+
if (wasm !== undefined) return wasm;
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
if (typeof module_or_path !== 'undefined') {
|
|
436
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
437
|
+
({module_or_path} = module_or_path)
|
|
438
|
+
} else {
|
|
439
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
if (typeof module_or_path === 'undefined') {
|
|
444
|
+
module_or_path = new URL('lazy_sparql_result_reader_bg.wasm', import.meta.url);
|
|
445
|
+
}
|
|
446
|
+
const imports = __wbg_get_imports();
|
|
447
|
+
|
|
448
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
449
|
+
module_or_path = fetch(module_or_path);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
453
|
+
|
|
454
|
+
return __wbg_finalize_init(instance, module);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export { initSync };
|
|
458
|
+
export default __wbg_init;
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "lazy-sparql-result-reader",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"files": [
|
|
6
|
+
"lazy_sparql_result_reader_bg.wasm",
|
|
7
|
+
"lazy_sparql_result_reader.js",
|
|
8
|
+
"lazy_sparql_result_reader.d.ts"
|
|
9
|
+
],
|
|
10
|
+
"main": "lazy_sparql_result_reader.js",
|
|
11
|
+
"types": "lazy_sparql_result_reader.d.ts",
|
|
12
|
+
"sideEffects": [
|
|
13
|
+
"./snippets/*"
|
|
14
|
+
]
|
|
15
|
+
}
|