@duckdb/duckdb-wasm-shell 1.29.1-dev9.0 → 1.30.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/dist/img/duckdb_version_badge.svg +1 -1
- package/dist/shell.cjs +572 -577
- package/dist/shell.cjs.map +2 -2
- package/dist/shell.js +572 -577
- package/dist/shell.js.map +2 -2
- package/dist/shell.mjs +572 -577
- package/dist/shell.mjs.map +3 -3
- package/dist/shell_bg.wasm +0 -0
- package/package.json +2 -2
package/dist/shell.js
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
// package.json
|
|
34
34
|
var package_default = {
|
|
35
35
|
name: "@duckdb/duckdb-wasm-shell",
|
|
36
|
-
version: "1.
|
|
36
|
+
version: "1.30.0",
|
|
37
37
|
description: "",
|
|
38
38
|
author: "Andre Kohn <kohn.a@outlook.com>",
|
|
39
39
|
license: "MIT",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"csv"
|
|
58
58
|
],
|
|
59
59
|
dependencies: {
|
|
60
|
-
"@duckdb/duckdb-wasm": "^1.
|
|
60
|
+
"@duckdb/duckdb-wasm": "^1.30.0",
|
|
61
61
|
xterm: "^5.3.0",
|
|
62
62
|
"xterm-addon-fit": "^0.8.0",
|
|
63
63
|
"xterm-addon-web-links": "^0.9.0",
|
|
@@ -125,55 +125,13 @@
|
|
|
125
125
|
var import_xterm_addon_webgl = __require("xterm-addon-webgl");
|
|
126
126
|
var import_meta = {};
|
|
127
127
|
var wasm;
|
|
128
|
-
var heap = new Array(128).fill(void 0);
|
|
129
|
-
heap.push(void 0, null, true, false);
|
|
130
|
-
function getObject(idx) {
|
|
131
|
-
return heap[idx];
|
|
132
|
-
}
|
|
133
|
-
var heap_next = heap.length;
|
|
134
|
-
function dropObject(idx) {
|
|
135
|
-
if (idx < 132)
|
|
136
|
-
return;
|
|
137
|
-
heap[idx] = heap_next;
|
|
138
|
-
heap_next = idx;
|
|
139
|
-
}
|
|
140
|
-
function takeObject(idx) {
|
|
141
|
-
const ret = getObject(idx);
|
|
142
|
-
dropObject(idx);
|
|
143
|
-
return ret;
|
|
144
|
-
}
|
|
145
|
-
function isLikeNone(x) {
|
|
146
|
-
return x === void 0 || x === null;
|
|
147
|
-
}
|
|
148
|
-
var cachedFloat64Memory0 = null;
|
|
149
|
-
function getFloat64Memory0() {
|
|
150
|
-
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
151
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
152
|
-
}
|
|
153
|
-
return cachedFloat64Memory0;
|
|
154
|
-
}
|
|
155
|
-
var cachedInt32Memory0 = null;
|
|
156
|
-
function getInt32Memory0() {
|
|
157
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
158
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
159
|
-
}
|
|
160
|
-
return cachedInt32Memory0;
|
|
161
|
-
}
|
|
162
|
-
function addHeapObject(obj) {
|
|
163
|
-
if (heap_next === heap.length)
|
|
164
|
-
heap.push(heap.length + 1);
|
|
165
|
-
const idx = heap_next;
|
|
166
|
-
heap_next = heap[idx];
|
|
167
|
-
heap[idx] = obj;
|
|
168
|
-
return idx;
|
|
169
|
-
}
|
|
170
128
|
var WASM_VECTOR_LEN = 0;
|
|
171
|
-
var
|
|
172
|
-
function
|
|
173
|
-
if (
|
|
174
|
-
|
|
129
|
+
var cachedUint8ArrayMemory0 = null;
|
|
130
|
+
function getUint8ArrayMemory0() {
|
|
131
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
132
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
175
133
|
}
|
|
176
|
-
return
|
|
134
|
+
return cachedUint8ArrayMemory0;
|
|
177
135
|
}
|
|
178
136
|
var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : { encode: () => {
|
|
179
137
|
throw Error("TextEncoder not available");
|
|
@@ -192,13 +150,13 @@
|
|
|
192
150
|
if (realloc === void 0) {
|
|
193
151
|
const buf = cachedTextEncoder.encode(arg);
|
|
194
152
|
const ptr2 = malloc(buf.length, 1) >>> 0;
|
|
195
|
-
|
|
153
|
+
getUint8ArrayMemory0().subarray(ptr2, ptr2 + buf.length).set(buf);
|
|
196
154
|
WASM_VECTOR_LEN = buf.length;
|
|
197
155
|
return ptr2;
|
|
198
156
|
}
|
|
199
157
|
let len = arg.length;
|
|
200
158
|
let ptr = malloc(len, 1) >>> 0;
|
|
201
|
-
const mem =
|
|
159
|
+
const mem = getUint8ArrayMemory0();
|
|
202
160
|
let offset = 0;
|
|
203
161
|
for (; offset < len; offset++) {
|
|
204
162
|
const code = arg.charCodeAt(offset);
|
|
@@ -211,13 +169,92 @@
|
|
|
211
169
|
arg = arg.slice(offset);
|
|
212
170
|
}
|
|
213
171
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
214
|
-
const view =
|
|
172
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
215
173
|
const ret = encodeString(arg, view);
|
|
216
174
|
offset += ret.written;
|
|
175
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
217
176
|
}
|
|
218
177
|
WASM_VECTOR_LEN = offset;
|
|
219
178
|
return ptr;
|
|
220
179
|
}
|
|
180
|
+
var cachedDataViewMemory0 = null;
|
|
181
|
+
function getDataViewMemory0() {
|
|
182
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
|
|
183
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
184
|
+
}
|
|
185
|
+
return cachedDataViewMemory0;
|
|
186
|
+
}
|
|
187
|
+
function addToExternrefTable0(obj) {
|
|
188
|
+
const idx = wasm.__externref_table_alloc();
|
|
189
|
+
wasm.__wbindgen_export_4.set(idx, obj);
|
|
190
|
+
return idx;
|
|
191
|
+
}
|
|
192
|
+
function handleError(f, args) {
|
|
193
|
+
try {
|
|
194
|
+
return f.apply(this, args);
|
|
195
|
+
} catch (e) {
|
|
196
|
+
const idx = addToExternrefTable0(e);
|
|
197
|
+
wasm.__wbindgen_exn_store(idx);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
|
|
201
|
+
throw Error("TextDecoder not available");
|
|
202
|
+
} };
|
|
203
|
+
if (typeof TextDecoder !== "undefined") {
|
|
204
|
+
cachedTextDecoder.decode();
|
|
205
|
+
}
|
|
206
|
+
function getStringFromWasm0(ptr, len) {
|
|
207
|
+
ptr = ptr >>> 0;
|
|
208
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
209
|
+
}
|
|
210
|
+
var cachedUint32ArrayMemory0 = null;
|
|
211
|
+
function getUint32ArrayMemory0() {
|
|
212
|
+
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
213
|
+
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
214
|
+
}
|
|
215
|
+
return cachedUint32ArrayMemory0;
|
|
216
|
+
}
|
|
217
|
+
function passArray32ToWasm0(arg, malloc) {
|
|
218
|
+
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
219
|
+
getUint32ArrayMemory0().set(arg, ptr / 4);
|
|
220
|
+
WASM_VECTOR_LEN = arg.length;
|
|
221
|
+
return ptr;
|
|
222
|
+
}
|
|
223
|
+
function isLikeNone(x) {
|
|
224
|
+
return x === void 0 || x === null;
|
|
225
|
+
}
|
|
226
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
227
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
228
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
229
|
+
WASM_VECTOR_LEN = arg.length;
|
|
230
|
+
return ptr;
|
|
231
|
+
}
|
|
232
|
+
var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
233
|
+
}, unregister: () => {
|
|
234
|
+
} } : new FinalizationRegistry((state) => {
|
|
235
|
+
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b);
|
|
236
|
+
});
|
|
237
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
238
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
239
|
+
const real = (...args) => {
|
|
240
|
+
state.cnt++;
|
|
241
|
+
const a = state.a;
|
|
242
|
+
state.a = 0;
|
|
243
|
+
try {
|
|
244
|
+
return f(a, state.b, ...args);
|
|
245
|
+
} finally {
|
|
246
|
+
if (--state.cnt === 0) {
|
|
247
|
+
wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
|
|
248
|
+
CLOSURE_DTORS.unregister(state);
|
|
249
|
+
} else {
|
|
250
|
+
state.a = a;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
real.original = state;
|
|
255
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
256
|
+
return real;
|
|
257
|
+
}
|
|
221
258
|
function debugString(val) {
|
|
222
259
|
const type = typeof val;
|
|
223
260
|
if (type == "number" || type == "boolean" || val == null) {
|
|
@@ -256,7 +293,7 @@
|
|
|
256
293
|
}
|
|
257
294
|
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
258
295
|
let className;
|
|
259
|
-
if (builtInMatches.length > 1) {
|
|
296
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
260
297
|
className = builtInMatches[1];
|
|
261
298
|
} else {
|
|
262
299
|
return toString.call(val);
|
|
@@ -273,53 +310,15 @@
|
|
|
273
310
|
}
|
|
274
311
|
return className;
|
|
275
312
|
}
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
cachedTextDecoder.decode();
|
|
281
|
-
}
|
|
282
|
-
function getStringFromWasm0(ptr, len) {
|
|
283
|
-
ptr = ptr >>> 0;
|
|
284
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
285
|
-
}
|
|
286
|
-
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
287
|
-
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
288
|
-
const real = (...args) => {
|
|
289
|
-
state.cnt++;
|
|
290
|
-
const a = state.a;
|
|
291
|
-
state.a = 0;
|
|
292
|
-
try {
|
|
293
|
-
return f(a, state.b, ...args);
|
|
294
|
-
} finally {
|
|
295
|
-
if (--state.cnt === 0) {
|
|
296
|
-
wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
|
|
297
|
-
} else {
|
|
298
|
-
state.a = a;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
};
|
|
302
|
-
real.original = state;
|
|
303
|
-
return real;
|
|
304
|
-
}
|
|
305
|
-
function __wbg_adapter_22(arg0, arg1, arg2) {
|
|
306
|
-
const ret = wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he8ffd72d0b49a87b(arg0, arg1, addHeapObject(arg2));
|
|
307
|
-
return ret !== 0;
|
|
308
|
-
}
|
|
309
|
-
function __wbg_adapter_25(arg0, arg1, arg2) {
|
|
310
|
-
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h77eb2de66eb57381(arg0, arg1, addHeapObject(arg2));
|
|
313
|
+
function takeFromExternrefTable0(idx) {
|
|
314
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
315
|
+
wasm.__externref_table_dealloc(idx);
|
|
316
|
+
return value;
|
|
311
317
|
}
|
|
312
318
|
function embed(elem, runtime, options) {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
317
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
318
|
-
if (r1) {
|
|
319
|
-
throw takeObject(r0);
|
|
320
|
-
}
|
|
321
|
-
} finally {
|
|
322
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
319
|
+
const ret = wasm.embed(elem, runtime, options);
|
|
320
|
+
if (ret[1]) {
|
|
321
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
323
322
|
}
|
|
324
323
|
}
|
|
325
324
|
function write(text) {
|
|
@@ -335,97 +334,75 @@
|
|
|
335
334
|
function resize(_width, _height) {
|
|
336
335
|
wasm.resize(_width, _height);
|
|
337
336
|
}
|
|
338
|
-
var stack_pointer = 128;
|
|
339
|
-
function addBorrowedObject(obj) {
|
|
340
|
-
if (stack_pointer == 1)
|
|
341
|
-
throw new Error("out of js stack");
|
|
342
|
-
heap[--stack_pointer] = obj;
|
|
343
|
-
return stack_pointer;
|
|
344
|
-
}
|
|
345
337
|
function loadHistory(history, cursor) {
|
|
346
|
-
|
|
347
|
-
wasm.loadHistory(addBorrowedObject(history), cursor);
|
|
348
|
-
} finally {
|
|
349
|
-
heap[stack_pointer++] = void 0;
|
|
350
|
-
}
|
|
338
|
+
wasm.loadHistory(history, cursor);
|
|
351
339
|
}
|
|
352
340
|
function passInitQueries(queries) {
|
|
353
|
-
const ret = wasm.passInitQueries(
|
|
354
|
-
return
|
|
341
|
+
const ret = wasm.passInitQueries(queries);
|
|
342
|
+
return ret;
|
|
355
343
|
}
|
|
356
344
|
function configureDatabase(db) {
|
|
357
|
-
const ret = wasm.configureDatabase(
|
|
358
|
-
return
|
|
359
|
-
}
|
|
360
|
-
function handleError(f, args) {
|
|
361
|
-
try {
|
|
362
|
-
return f.apply(this, args);
|
|
363
|
-
} catch (e) {
|
|
364
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
var cachedUint32Memory0 = null;
|
|
368
|
-
function getUint32Memory0() {
|
|
369
|
-
if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {
|
|
370
|
-
cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
|
|
371
|
-
}
|
|
372
|
-
return cachedUint32Memory0;
|
|
345
|
+
const ret = wasm.configureDatabase(db);
|
|
346
|
+
return ret;
|
|
373
347
|
}
|
|
374
|
-
function
|
|
375
|
-
const
|
|
376
|
-
|
|
377
|
-
WASM_VECTOR_LEN = arg.length;
|
|
378
|
-
return ptr;
|
|
348
|
+
function __wbg_adapter_26(arg0, arg1, arg2) {
|
|
349
|
+
const ret = wasm.closure142_externref_shim(arg0, arg1, arg2);
|
|
350
|
+
return ret !== 0;
|
|
379
351
|
}
|
|
380
|
-
function
|
|
381
|
-
|
|
382
|
-
getUint8Memory0().set(arg, ptr / 1);
|
|
383
|
-
WASM_VECTOR_LEN = arg.length;
|
|
384
|
-
return ptr;
|
|
352
|
+
function __wbg_adapter_29(arg0, arg1, arg2) {
|
|
353
|
+
wasm.closure179_externref_shim(arg0, arg1, arg2);
|
|
385
354
|
}
|
|
386
|
-
function
|
|
387
|
-
wasm.
|
|
355
|
+
function __wbg_adapter_221(arg0, arg1, arg2, arg3) {
|
|
356
|
+
wasm.closure1172_externref_shim(arg0, arg1, arg2, arg3);
|
|
388
357
|
}
|
|
389
|
-
var ShellInputContext = Object.freeze({
|
|
390
|
-
|
|
358
|
+
var ShellInputContext = Object.freeze({
|
|
359
|
+
FileInput: 0,
|
|
360
|
+
"0": "FileInput"
|
|
361
|
+
});
|
|
362
|
+
var WcWidth = Object.freeze({
|
|
363
|
+
Width0: 0,
|
|
364
|
+
"0": "Width0",
|
|
365
|
+
Width1: 1,
|
|
366
|
+
"1": "Width1",
|
|
367
|
+
Width2: 2,
|
|
368
|
+
"2": "Width2"
|
|
369
|
+
});
|
|
370
|
+
var DuckDBConfigFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
371
|
+
}, unregister: () => {
|
|
372
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_duckdbconfig_free(ptr >>> 0, 1));
|
|
391
373
|
var DuckDBConfig = class _DuckDBConfig {
|
|
392
374
|
static __wrap(ptr) {
|
|
393
375
|
ptr = ptr >>> 0;
|
|
394
376
|
const obj = Object.create(_DuckDBConfig.prototype);
|
|
395
377
|
obj.__wbg_ptr = ptr;
|
|
378
|
+
DuckDBConfigFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
396
379
|
return obj;
|
|
397
380
|
}
|
|
398
381
|
__destroy_into_raw() {
|
|
399
382
|
const ptr = this.__wbg_ptr;
|
|
400
383
|
this.__wbg_ptr = 0;
|
|
384
|
+
DuckDBConfigFinalization.unregister(this);
|
|
401
385
|
return ptr;
|
|
402
386
|
}
|
|
403
387
|
free() {
|
|
404
388
|
const ptr = this.__destroy_into_raw();
|
|
405
|
-
wasm.__wbg_duckdbconfig_free(ptr);
|
|
389
|
+
wasm.__wbg_duckdbconfig_free(ptr, 0);
|
|
406
390
|
}
|
|
407
391
|
/**
|
|
408
|
-
|
|
409
|
-
|
|
392
|
+
* @returns {string | undefined}
|
|
393
|
+
*/
|
|
410
394
|
get path() {
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
let v1;
|
|
417
|
-
if (r0 !== 0) {
|
|
418
|
-
v1 = getStringFromWasm0(r0, r1).slice();
|
|
419
|
-
wasm.__wbindgen_free(r0, r1 * 1);
|
|
420
|
-
}
|
|
421
|
-
return v1;
|
|
422
|
-
} finally {
|
|
423
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
395
|
+
const ret = wasm.duckdbconfig_path(this.__wbg_ptr);
|
|
396
|
+
let v1;
|
|
397
|
+
if (ret[0] !== 0) {
|
|
398
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
399
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
424
400
|
}
|
|
401
|
+
return v1;
|
|
425
402
|
}
|
|
426
403
|
/**
|
|
427
|
-
|
|
428
|
-
|
|
404
|
+
* @param {string | null} [path]
|
|
405
|
+
*/
|
|
429
406
|
set path(path) {
|
|
430
407
|
var ptr0 = isLikeNone(path) ? 0 : passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
431
408
|
var len0 = WASM_VECTOR_LEN;
|
|
@@ -439,7 +416,7 @@
|
|
|
439
416
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
440
417
|
} catch (e) {
|
|
441
418
|
if (module.headers.get("Content-Type") != "application/wasm") {
|
|
442
|
-
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve
|
|
419
|
+
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);
|
|
443
420
|
} else {
|
|
444
421
|
throw e;
|
|
445
422
|
}
|
|
@@ -459,580 +436,598 @@
|
|
|
459
436
|
function __wbg_get_imports() {
|
|
460
437
|
const imports = {};
|
|
461
438
|
imports.wbg = {};
|
|
462
|
-
imports.wbg.
|
|
463
|
-
|
|
464
|
-
};
|
|
465
|
-
imports.wbg.__wbg_getFeatureFlags_9c3df152bef86fb8 = function() {
|
|
466
|
-
return handleError(function(arg0) {
|
|
467
|
-
const ret = getObject(arg0).getFeatureFlags();
|
|
468
|
-
return addHeapObject(ret);
|
|
469
|
-
}, arguments);
|
|
439
|
+
imports.wbg.__wbg_attachCustomKeyEventHandler_5c309ad8c2d6ff9c = function(arg0, arg1) {
|
|
440
|
+
arg0.attachCustomKeyEventHandler(arg1);
|
|
470
441
|
};
|
|
471
|
-
imports.wbg.
|
|
472
|
-
const
|
|
473
|
-
const
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
imports.wbg.__wbg_collectFileStatistics_e921aaaeffb34db1 = function() {
|
|
478
|
-
return handleError(function(arg0, arg1, arg2, arg3) {
|
|
479
|
-
const ret = getObject(arg0).collectFileStatistics(getStringFromWasm0(arg1, arg2), arg3 !== 0);
|
|
480
|
-
return addHeapObject(ret);
|
|
481
|
-
}, arguments);
|
|
482
|
-
};
|
|
483
|
-
imports.wbg.__wbg_exportFileStatistics_6b72eb40ca2eb4d5 = function() {
|
|
484
|
-
return handleError(function(arg0, arg1, arg2) {
|
|
485
|
-
const ret = getObject(arg0).exportFileStatistics(getStringFromWasm0(arg1, arg2));
|
|
486
|
-
return addHeapObject(ret);
|
|
487
|
-
}, arguments);
|
|
488
|
-
};
|
|
489
|
-
imports.wbg.__wbg_construct_e68e1da98af9f9aa = function(arg0) {
|
|
490
|
-
const ret = new import_xterm.Terminal(getObject(arg0));
|
|
491
|
-
return addHeapObject(ret);
|
|
442
|
+
imports.wbg.__wbg_backgroundColor_51cf19ee7d4b277a = function(arg0, arg1) {
|
|
443
|
+
const ret = arg1.backgroundColor;
|
|
444
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
445
|
+
const len1 = WASM_VECTOR_LEN;
|
|
446
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
447
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
492
448
|
};
|
|
493
|
-
imports.wbg.
|
|
494
|
-
const ret =
|
|
449
|
+
imports.wbg.__wbg_bigInt64Array_c64b3751e74d5277 = function(arg0) {
|
|
450
|
+
const ret = arg0.bigInt64Array;
|
|
495
451
|
return ret;
|
|
496
452
|
};
|
|
497
|
-
imports.wbg.
|
|
498
|
-
const ret =
|
|
453
|
+
imports.wbg.__wbg_blockSize_cd30a6366d631ae8 = function(arg0) {
|
|
454
|
+
const ret = arg0.blockSize;
|
|
499
455
|
return ret;
|
|
500
456
|
};
|
|
501
|
-
imports.wbg.
|
|
502
|
-
|
|
457
|
+
imports.wbg.__wbg_blockStats_7e6019968a50af3b = function(arg0) {
|
|
458
|
+
const ret = arg0.blockStats;
|
|
459
|
+
return ret;
|
|
503
460
|
};
|
|
504
|
-
imports.wbg.
|
|
505
|
-
const ret =
|
|
506
|
-
return
|
|
461
|
+
imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
|
|
462
|
+
const ret = arg0.buffer;
|
|
463
|
+
return ret;
|
|
507
464
|
};
|
|
508
|
-
imports.wbg.
|
|
509
|
-
|
|
465
|
+
imports.wbg.__wbg_call_672a4d21634d4a24 = function() {
|
|
466
|
+
return handleError(function(arg0, arg1) {
|
|
467
|
+
const ret = arg0.call(arg1);
|
|
468
|
+
return ret;
|
|
469
|
+
}, arguments);
|
|
510
470
|
};
|
|
511
|
-
imports.wbg.
|
|
471
|
+
imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() {
|
|
512
472
|
return handleError(function(arg0, arg1, arg2) {
|
|
513
|
-
const ret =
|
|
514
|
-
return
|
|
473
|
+
const ret = arg0.call(arg1, arg2);
|
|
474
|
+
return ret;
|
|
515
475
|
}, arguments);
|
|
516
476
|
};
|
|
517
|
-
imports.wbg.
|
|
518
|
-
return handleError(function() {
|
|
519
|
-
const ret = (
|
|
520
|
-
return
|
|
477
|
+
imports.wbg.__wbg_collectFileStatistics_d40af29ff6fc8c95 = function() {
|
|
478
|
+
return handleError(function(arg0, arg1, arg2, arg3) {
|
|
479
|
+
const ret = arg0.collectFileStatistics(getStringFromWasm0(arg1, arg2), arg3 !== 0);
|
|
480
|
+
return ret;
|
|
521
481
|
}, arguments);
|
|
522
482
|
};
|
|
523
|
-
imports.wbg.
|
|
524
|
-
const ret =
|
|
483
|
+
imports.wbg.__wbg_cols_77a8050235d63c90 = function(arg0) {
|
|
484
|
+
const ret = arg0.cols;
|
|
525
485
|
return ret;
|
|
526
486
|
};
|
|
527
|
-
imports.wbg.
|
|
528
|
-
|
|
529
|
-
|
|
487
|
+
imports.wbg.__wbg_connectInternal_818454f7281c00df = function() {
|
|
488
|
+
return handleError(function(arg0) {
|
|
489
|
+
const ret = arg0.connectInternal();
|
|
490
|
+
return ret;
|
|
491
|
+
}, arguments);
|
|
530
492
|
};
|
|
531
|
-
imports.wbg.
|
|
532
|
-
const ret =
|
|
493
|
+
imports.wbg.__wbg_construct_036a353ca42f67b4 = function(arg0) {
|
|
494
|
+
const ret = new import_xterm.Terminal(arg0);
|
|
533
495
|
return ret;
|
|
534
496
|
};
|
|
535
|
-
imports.wbg.
|
|
536
|
-
|
|
537
|
-
|
|
497
|
+
imports.wbg.__wbg_copyFileToBuffer_83cb2af8941ca82a = function() {
|
|
498
|
+
return handleError(function(arg0, arg1, arg2) {
|
|
499
|
+
const ret = arg0.copyFileToBuffer(getStringFromWasm0(arg1, arg2));
|
|
500
|
+
return ret;
|
|
501
|
+
}, arguments);
|
|
538
502
|
};
|
|
539
|
-
imports.wbg.
|
|
540
|
-
const ret =
|
|
503
|
+
imports.wbg.__wbg_crossOriginIsolated_0118e2417ec095ee = function(arg0) {
|
|
504
|
+
const ret = arg0.crossOriginIsolated;
|
|
541
505
|
return ret;
|
|
542
506
|
};
|
|
543
|
-
imports.wbg.
|
|
544
|
-
const ret =
|
|
507
|
+
imports.wbg.__wbg_ctrlKey_1e826e468105ac11 = function(arg0) {
|
|
508
|
+
const ret = arg0.ctrlKey;
|
|
545
509
|
return ret;
|
|
546
510
|
};
|
|
547
|
-
imports.wbg.
|
|
548
|
-
return handleError(function(arg0, arg1
|
|
549
|
-
const ret =
|
|
550
|
-
return
|
|
511
|
+
imports.wbg.__wbg_disconnect_92d81f4ec3f107ec = function() {
|
|
512
|
+
return handleError(function(arg0, arg1) {
|
|
513
|
+
const ret = arg0.disconnect(arg1 >>> 0);
|
|
514
|
+
return ret;
|
|
551
515
|
}, arguments);
|
|
552
516
|
};
|
|
553
|
-
imports.wbg.
|
|
554
|
-
return handleError(function(arg0) {
|
|
555
|
-
const ret =
|
|
556
|
-
return
|
|
517
|
+
imports.wbg.__wbg_downloadFile_d0dec3d05b3a9f19 = function() {
|
|
518
|
+
return handleError(function(arg0, arg1, arg2, arg3) {
|
|
519
|
+
const ret = arg0.downloadFile(getStringFromWasm0(arg1, arg2), arg3);
|
|
520
|
+
return ret;
|
|
557
521
|
}, arguments);
|
|
558
522
|
};
|
|
559
|
-
imports.wbg.
|
|
523
|
+
imports.wbg.__wbg_dropFile_6eb68222192e72fc = function() {
|
|
560
524
|
return handleError(function(arg0, arg1, arg2) {
|
|
561
|
-
const ret =
|
|
562
|
-
return
|
|
525
|
+
const ret = arg0.dropFile(getStringFromWasm0(arg1, arg2));
|
|
526
|
+
return ret;
|
|
563
527
|
}, arguments);
|
|
564
528
|
};
|
|
565
|
-
imports.wbg.
|
|
566
|
-
return handleError(function(arg0, arg1) {
|
|
567
|
-
const ret = getObject(arg0).open(DuckDBConfig.__wrap(arg1));
|
|
568
|
-
return addHeapObject(ret);
|
|
569
|
-
}, arguments);
|
|
570
|
-
};
|
|
571
|
-
imports.wbg.__wbg_getVersion_6fe922c9d7787e50 = function() {
|
|
529
|
+
imports.wbg.__wbg_dropFiles_8bf37b450b4de5ee = function() {
|
|
572
530
|
return handleError(function(arg0) {
|
|
573
|
-
const ret =
|
|
574
|
-
return
|
|
531
|
+
const ret = arg0.dropFiles();
|
|
532
|
+
return ret;
|
|
575
533
|
}, arguments);
|
|
576
534
|
};
|
|
577
|
-
imports.wbg.
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
const ret = getObject(arg0).connectInternal();
|
|
588
|
-
return addHeapObject(ret);
|
|
589
|
-
}, arguments);
|
|
535
|
+
imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
536
|
+
let deferred0_0;
|
|
537
|
+
let deferred0_1;
|
|
538
|
+
try {
|
|
539
|
+
deferred0_0 = arg0;
|
|
540
|
+
deferred0_1 = arg1;
|
|
541
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
542
|
+
} finally {
|
|
543
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
544
|
+
}
|
|
590
545
|
};
|
|
591
|
-
imports.wbg.
|
|
592
|
-
|
|
593
|
-
const ret = getObject(arg0).downloadFile(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
594
|
-
return addHeapObject(ret);
|
|
595
|
-
}, arguments);
|
|
546
|
+
imports.wbg.__wbg_error_ebb9ec1bc5af2f31 = function(arg0, arg1) {
|
|
547
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
596
548
|
};
|
|
597
|
-
imports.wbg.
|
|
549
|
+
imports.wbg.__wbg_exportFileStatistics_d52b61d6c201da1c = function() {
|
|
598
550
|
return handleError(function(arg0, arg1, arg2) {
|
|
599
|
-
const ret =
|
|
600
|
-
return
|
|
551
|
+
const ret = arg0.exportFileStatistics(getStringFromWasm0(arg1, arg2));
|
|
552
|
+
return ret;
|
|
601
553
|
}, arguments);
|
|
602
554
|
};
|
|
603
|
-
imports.wbg.
|
|
604
|
-
|
|
605
|
-
const ret = getObject(arg0).pickFiles();
|
|
606
|
-
return addHeapObject(ret);
|
|
607
|
-
}, arguments);
|
|
555
|
+
imports.wbg.__wbg_fit_0db5c78a2a85f563 = function(arg0) {
|
|
556
|
+
arg0.fit();
|
|
608
557
|
};
|
|
609
|
-
imports.wbg.
|
|
610
|
-
|
|
611
|
-
const ret = getObject(arg0).runQuery(arg1 >>> 0, getStringFromWasm0(arg2, arg3));
|
|
612
|
-
return addHeapObject(ret);
|
|
613
|
-
}, arguments);
|
|
558
|
+
imports.wbg.__wbg_focus_dd92db4314c4db81 = function(arg0) {
|
|
559
|
+
arg0.focus();
|
|
614
560
|
};
|
|
615
|
-
imports.wbg.
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
return addHeapObject(ret);
|
|
619
|
-
}, arguments);
|
|
620
|
-
};
|
|
621
|
-
imports.wbg.__wbg_offsets_fc2b1a7bf689ba81 = function(arg0, arg1) {
|
|
622
|
-
const ret = getObject(arg1).offsets;
|
|
623
|
-
const ptr1 = passArray32ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
561
|
+
imports.wbg.__wbg_fontFamily_cac93414dbe897cf = function(arg0, arg1) {
|
|
562
|
+
const ret = arg1.fontFamily;
|
|
563
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
624
564
|
const len1 = WASM_VECTOR_LEN;
|
|
625
|
-
|
|
626
|
-
|
|
565
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
566
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
627
567
|
};
|
|
628
|
-
imports.wbg.
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
568
|
+
imports.wbg.__wbg_getFeatureFlags_14afaddbcef26858 = function() {
|
|
569
|
+
return handleError(function(arg0) {
|
|
570
|
+
const ret = arg0.getFeatureFlags();
|
|
571
|
+
return ret;
|
|
572
|
+
}, arguments);
|
|
634
573
|
};
|
|
635
|
-
imports.wbg.
|
|
574
|
+
imports.wbg.__wbg_getPlatformFeatures_40454c7f78791eb6 = function() {
|
|
575
|
+
return handleError(function() {
|
|
576
|
+
const ret = (0, import_duckdb_wasm.getPlatformFeatures)();
|
|
577
|
+
return ret;
|
|
578
|
+
}, arguments);
|
|
579
|
+
};
|
|
580
|
+
imports.wbg.__wbg_getVersion_32486a199e795762 = function() {
|
|
636
581
|
return handleError(function(arg0) {
|
|
637
|
-
const ret =
|
|
638
|
-
return
|
|
582
|
+
const ret = arg0.getVersion();
|
|
583
|
+
return ret;
|
|
639
584
|
}, arguments);
|
|
640
585
|
};
|
|
641
|
-
imports.wbg.
|
|
642
|
-
|
|
586
|
+
imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
|
|
587
|
+
const ret = arg0[arg1 >>> 0];
|
|
588
|
+
return ret;
|
|
643
589
|
};
|
|
644
|
-
imports.wbg.
|
|
645
|
-
|
|
590
|
+
imports.wbg.__wbg_globFiles_542704d623854358 = function() {
|
|
591
|
+
return handleError(function(arg0, arg1, arg2) {
|
|
592
|
+
const ret = arg0.globFiles(getStringFromWasm0(arg1, arg2));
|
|
593
|
+
return ret;
|
|
594
|
+
}, arguments);
|
|
646
595
|
};
|
|
647
|
-
imports.wbg.
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
596
|
+
imports.wbg.__wbg_instanceof_WebLinksAddon_3750ea42996e2252 = function(arg0) {
|
|
597
|
+
let result;
|
|
598
|
+
try {
|
|
599
|
+
result = arg0 instanceof import_xterm_addon_web_links.WebLinksAddon;
|
|
600
|
+
} catch (_) {
|
|
601
|
+
result = false;
|
|
652
602
|
}
|
|
653
|
-
const ret =
|
|
603
|
+
const ret = result;
|
|
654
604
|
return ret;
|
|
655
605
|
};
|
|
656
|
-
imports.wbg.
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
606
|
+
imports.wbg.__wbg_instanceof_WebglAddon_d96a60a43cae1674 = function(arg0) {
|
|
607
|
+
let result;
|
|
608
|
+
try {
|
|
609
|
+
result = arg0 instanceof import_xterm_addon_webgl.WebglAddon;
|
|
610
|
+
} catch (_) {
|
|
611
|
+
result = false;
|
|
612
|
+
}
|
|
613
|
+
const ret = result;
|
|
614
|
+
return ret;
|
|
661
615
|
};
|
|
662
|
-
imports.wbg.
|
|
663
|
-
|
|
616
|
+
imports.wbg.__wbg_instanceof_Window_def73ea0955fc569 = function(arg0) {
|
|
617
|
+
let result;
|
|
618
|
+
try {
|
|
619
|
+
result = arg0 instanceof Window;
|
|
620
|
+
} catch (_) {
|
|
621
|
+
result = false;
|
|
622
|
+
}
|
|
623
|
+
const ret = result;
|
|
624
|
+
return ret;
|
|
664
625
|
};
|
|
665
|
-
imports.wbg.
|
|
666
|
-
const ret =
|
|
626
|
+
imports.wbg.__wbg_key_7b5c6cb539be8e13 = function(arg0, arg1) {
|
|
627
|
+
const ret = arg1.key;
|
|
667
628
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
668
629
|
const len1 = WASM_VECTOR_LEN;
|
|
669
|
-
|
|
670
|
-
|
|
630
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
631
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
671
632
|
};
|
|
672
|
-
imports.wbg.
|
|
673
|
-
|
|
633
|
+
imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
|
|
634
|
+
const ret = arg0.length;
|
|
635
|
+
return ret;
|
|
674
636
|
};
|
|
675
|
-
imports.wbg.
|
|
676
|
-
|
|
637
|
+
imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
|
|
638
|
+
const ret = arg0.length;
|
|
639
|
+
return ret;
|
|
677
640
|
};
|
|
678
|
-
imports.wbg.
|
|
679
|
-
|
|
641
|
+
imports.wbg.__wbg_loadAddon_143d540bb5725490 = function(arg0, arg1) {
|
|
642
|
+
arg0.loadAddon(arg1);
|
|
680
643
|
};
|
|
681
|
-
imports.wbg.
|
|
682
|
-
|
|
644
|
+
imports.wbg.__wbg_log_33ef14fd0c9ec1a3 = function(arg0, arg1) {
|
|
645
|
+
console.log(getStringFromWasm0(arg0, arg1));
|
|
683
646
|
};
|
|
684
|
-
imports.wbg.
|
|
685
|
-
|
|
647
|
+
imports.wbg.__wbg_message_97a2af9b89d693a3 = function(arg0) {
|
|
648
|
+
const ret = arg0.message;
|
|
649
|
+
return ret;
|
|
686
650
|
};
|
|
687
|
-
imports.wbg.
|
|
688
|
-
|
|
651
|
+
imports.wbg.__wbg_metaKey_e1dd47d709a80ce5 = function(arg0) {
|
|
652
|
+
const ret = arg0.metaKey;
|
|
653
|
+
return ret;
|
|
689
654
|
};
|
|
690
|
-
imports.wbg.
|
|
691
|
-
|
|
655
|
+
imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
|
|
656
|
+
try {
|
|
657
|
+
var state0 = { a: arg0, b: arg1 };
|
|
658
|
+
var cb0 = (arg02, arg12) => {
|
|
659
|
+
const a = state0.a;
|
|
660
|
+
state0.a = 0;
|
|
661
|
+
try {
|
|
662
|
+
return __wbg_adapter_221(a, state0.b, arg02, arg12);
|
|
663
|
+
} finally {
|
|
664
|
+
state0.a = a;
|
|
665
|
+
}
|
|
666
|
+
};
|
|
667
|
+
const ret = new Promise(cb0);
|
|
668
|
+
return ret;
|
|
669
|
+
} finally {
|
|
670
|
+
state0.a = state0.b = 0;
|
|
671
|
+
}
|
|
692
672
|
};
|
|
693
|
-
imports.wbg.
|
|
694
|
-
const ret =
|
|
695
|
-
|
|
696
|
-
const len1 = WASM_VECTOR_LEN;
|
|
697
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
698
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
673
|
+
imports.wbg.__wbg_new_405e22f390576ce2 = function() {
|
|
674
|
+
const ret = new Object();
|
|
675
|
+
return ret;
|
|
699
676
|
};
|
|
700
|
-
imports.wbg.
|
|
701
|
-
|
|
677
|
+
imports.wbg.__wbg_new_7890702e2f921af0 = function(arg0) {
|
|
678
|
+
const ret = new import_xterm_addon_webgl.WebglAddon(arg0 === 16777215 ? void 0 : arg0 !== 0);
|
|
679
|
+
return ret;
|
|
702
680
|
};
|
|
703
|
-
imports.wbg.
|
|
704
|
-
|
|
681
|
+
imports.wbg.__wbg_new_7c075f00f439f1e0 = function() {
|
|
682
|
+
const ret = new import_xterm_addon_fit.FitAddon();
|
|
683
|
+
return ret;
|
|
705
684
|
};
|
|
706
|
-
imports.wbg.
|
|
707
|
-
|
|
685
|
+
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
|
686
|
+
const ret = new Error();
|
|
687
|
+
return ret;
|
|
708
688
|
};
|
|
709
|
-
imports.wbg.
|
|
710
|
-
const ret = new
|
|
711
|
-
return
|
|
689
|
+
imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
690
|
+
const ret = new Uint8Array(arg0);
|
|
691
|
+
return ret;
|
|
712
692
|
};
|
|
713
|
-
imports.wbg.
|
|
714
|
-
|
|
715
|
-
try {
|
|
716
|
-
result = getObject(arg0) instanceof import_xterm_addon_webgl.WebglAddon;
|
|
717
|
-
} catch (e) {
|
|
718
|
-
result = false;
|
|
719
|
-
}
|
|
720
|
-
const ret = result;
|
|
693
|
+
imports.wbg.__wbg_new_c2ccb7a35264c397 = function(arg0, arg1, arg2) {
|
|
694
|
+
const ret = new import_xterm_addon_web_links.WebLinksAddon(arg0, arg1, arg2 === 16777215 ? void 0 : arg2 !== 0);
|
|
721
695
|
return ret;
|
|
722
696
|
};
|
|
723
|
-
imports.wbg.
|
|
724
|
-
|
|
697
|
+
imports.wbg.__wbg_new_c68d7209be747379 = function(arg0, arg1) {
|
|
698
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
699
|
+
return ret;
|
|
725
700
|
};
|
|
726
|
-
imports.wbg.
|
|
727
|
-
const ret = new
|
|
728
|
-
return
|
|
701
|
+
imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
|
|
702
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
703
|
+
return ret;
|
|
729
704
|
};
|
|
730
|
-
imports.wbg.
|
|
731
|
-
|
|
732
|
-
try {
|
|
733
|
-
result = getObject(arg0) instanceof import_xterm_addon_web_links.WebLinksAddon;
|
|
734
|
-
} catch (e) {
|
|
735
|
-
result = false;
|
|
736
|
-
}
|
|
737
|
-
const ret = result;
|
|
705
|
+
imports.wbg.__wbg_now_d18023d54d4e5500 = function(arg0) {
|
|
706
|
+
const ret = arg0.now();
|
|
738
707
|
return ret;
|
|
739
708
|
};
|
|
740
|
-
imports.wbg.
|
|
709
|
+
imports.wbg.__wbg_offsets_9a0c43647dfe8174 = function(arg0, arg1) {
|
|
710
|
+
const ret = arg1.offsets;
|
|
711
|
+
const ptr1 = passArray32ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
712
|
+
const len1 = WASM_VECTOR_LEN;
|
|
713
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
714
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
715
|
+
};
|
|
716
|
+
imports.wbg.__wbg_open_89ca330653f2b749 = function() {
|
|
741
717
|
return handleError(function(arg0, arg1) {
|
|
742
|
-
const ret =
|
|
743
|
-
return
|
|
718
|
+
const ret = arg0.open(DuckDBConfig.__wrap(arg1));
|
|
719
|
+
return ret;
|
|
744
720
|
}, arguments);
|
|
745
721
|
};
|
|
746
|
-
imports.wbg.
|
|
747
|
-
|
|
722
|
+
imports.wbg.__wbg_open_ea472ea5209b0983 = function(arg0, arg1) {
|
|
723
|
+
arg0.open(arg1);
|
|
748
724
|
};
|
|
749
|
-
imports.wbg.
|
|
750
|
-
|
|
725
|
+
imports.wbg.__wbg_performance_c185c0cdc2766575 = function(arg0) {
|
|
726
|
+
const ret = arg0.performance;
|
|
727
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
751
728
|
};
|
|
752
|
-
imports.wbg.
|
|
753
|
-
|
|
729
|
+
imports.wbg.__wbg_pickFiles_c443e685aed27e4f = function() {
|
|
730
|
+
return handleError(function(arg0) {
|
|
731
|
+
const ret = arg0.pickFiles();
|
|
732
|
+
return ret;
|
|
733
|
+
}, arguments);
|
|
754
734
|
};
|
|
755
|
-
imports.wbg.
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
761
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
735
|
+
imports.wbg.__wbg_pushInputToHistory_1549e9c17621ffd1 = function() {
|
|
736
|
+
return handleError(function(arg0, arg1, arg2) {
|
|
737
|
+
const ret = arg0.pushInputToHistory(getStringFromWasm0(arg1, arg2));
|
|
738
|
+
return ret;
|
|
739
|
+
}, arguments);
|
|
762
740
|
};
|
|
763
|
-
imports.wbg.
|
|
764
|
-
|
|
765
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
766
|
-
const len1 = WASM_VECTOR_LEN;
|
|
767
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
768
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
741
|
+
imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
|
|
742
|
+
queueMicrotask(arg0);
|
|
769
743
|
};
|
|
770
|
-
imports.wbg.
|
|
771
|
-
const ret =
|
|
772
|
-
return
|
|
744
|
+
imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
|
|
745
|
+
const ret = arg0.queueMicrotask;
|
|
746
|
+
return ret;
|
|
773
747
|
};
|
|
774
|
-
imports.wbg.
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
748
|
+
imports.wbg.__wbg_readClipboardText_731ab326db907631 = function() {
|
|
749
|
+
return handleError(function(arg0) {
|
|
750
|
+
const ret = arg0.readClipboardText();
|
|
751
|
+
return ret;
|
|
752
|
+
}, arguments);
|
|
780
753
|
};
|
|
781
|
-
imports.wbg.
|
|
782
|
-
|
|
783
|
-
|
|
754
|
+
imports.wbg.__wbg_registerOPFSFileName_1ac109036d40476f = function() {
|
|
755
|
+
return handleError(function(arg0, arg1, arg2) {
|
|
756
|
+
const ret = arg0.registerOPFSFileName(getStringFromWasm0(arg1, arg2));
|
|
757
|
+
return ret;
|
|
758
|
+
}, arguments);
|
|
784
759
|
};
|
|
785
|
-
imports.wbg.
|
|
786
|
-
const ret =
|
|
787
|
-
return
|
|
760
|
+
imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
|
|
761
|
+
const ret = Promise.resolve(arg0);
|
|
762
|
+
return ret;
|
|
788
763
|
};
|
|
789
|
-
imports.wbg.
|
|
790
|
-
|
|
791
|
-
|
|
764
|
+
imports.wbg.__wbg_runQuery_dd923bfcee4eae4d = function() {
|
|
765
|
+
return handleError(function(arg0, arg1, arg2, arg3) {
|
|
766
|
+
const ret = arg0.runQuery(arg1 >>> 0, getStringFromWasm0(arg2, arg3));
|
|
767
|
+
return ret;
|
|
768
|
+
}, arguments);
|
|
792
769
|
};
|
|
793
|
-
imports.wbg.
|
|
794
|
-
|
|
795
|
-
return addHeapObject(ret);
|
|
770
|
+
imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
771
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
796
772
|
};
|
|
797
|
-
imports.wbg.
|
|
798
|
-
|
|
799
|
-
return addHeapObject(ret);
|
|
773
|
+
imports.wbg.__wbg_setallowProposedApi_1e56ae3768e93420 = function(arg0, arg1) {
|
|
774
|
+
arg0.allowProposedApi = arg1 !== 0;
|
|
800
775
|
};
|
|
801
|
-
imports.wbg.
|
|
802
|
-
|
|
803
|
-
return addHeapObject(ret);
|
|
776
|
+
imports.wbg.__wbg_setbackground_94f13d2866b2e31b = function(arg0, arg1, arg2) {
|
|
777
|
+
arg0.background = getStringFromWasm0(arg1, arg2);
|
|
804
778
|
};
|
|
805
|
-
imports.wbg.
|
|
806
|
-
|
|
807
|
-
return addHeapObject(ret);
|
|
779
|
+
imports.wbg.__wbg_setbrightYellow_5858b72099992f03 = function(arg0, arg1, arg2) {
|
|
780
|
+
arg0.brightYellow = getStringFromWasm0(arg1, arg2);
|
|
808
781
|
};
|
|
809
|
-
imports.wbg.
|
|
810
|
-
|
|
811
|
-
return addHeapObject(ret);
|
|
782
|
+
imports.wbg.__wbg_setcursorBlink_850e871d6bcda748 = function(arg0, arg1) {
|
|
783
|
+
arg0.cursorBlink = arg1 !== 0;
|
|
812
784
|
};
|
|
813
|
-
imports.wbg.
|
|
814
|
-
|
|
815
|
-
return addHeapObject(ret);
|
|
785
|
+
imports.wbg.__wbg_setcursorWidth_7899d7d19308befe = function(arg0, arg1) {
|
|
786
|
+
arg0.cursorWidth = arg1 >>> 0;
|
|
816
787
|
};
|
|
817
|
-
imports.wbg.
|
|
818
|
-
|
|
819
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
820
|
-
const len1 = WASM_VECTOR_LEN;
|
|
821
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
822
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
788
|
+
imports.wbg.__wbg_setdrawBoldTextInBrightColors_c3276731d7662d87 = function(arg0, arg1) {
|
|
789
|
+
arg0.drawBoldTextInBrightColors = arg1 !== 0;
|
|
823
790
|
};
|
|
824
|
-
imports.wbg.
|
|
825
|
-
|
|
826
|
-
let deferred0_1;
|
|
827
|
-
try {
|
|
828
|
-
deferred0_0 = arg0;
|
|
829
|
-
deferred0_1 = arg1;
|
|
830
|
-
console.error(getStringFromWasm0(arg0, arg1));
|
|
831
|
-
} finally {
|
|
832
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
833
|
-
}
|
|
791
|
+
imports.wbg.__wbg_setfontFamily_f2837e56dcf1e5a4 = function(arg0, arg1, arg2) {
|
|
792
|
+
arg0.fontFamily = getStringFromWasm0(arg1, arg2);
|
|
834
793
|
};
|
|
835
|
-
imports.wbg.
|
|
836
|
-
|
|
837
|
-
try {
|
|
838
|
-
result = getObject(arg0) instanceof Window;
|
|
839
|
-
} catch (e) {
|
|
840
|
-
result = false;
|
|
841
|
-
}
|
|
842
|
-
const ret = result;
|
|
843
|
-
return ret;
|
|
794
|
+
imports.wbg.__wbg_setfontSize_7d8e3357cbc2a6ac = function(arg0, arg1) {
|
|
795
|
+
arg0.fontSize = arg1 >>> 0;
|
|
844
796
|
};
|
|
845
|
-
imports.wbg.
|
|
846
|
-
|
|
847
|
-
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
797
|
+
imports.wbg.__wbg_setforeground_bbda7a714f8f4254 = function(arg0, arg1, arg2) {
|
|
798
|
+
arg0.foreground = getStringFromWasm0(arg1, arg2);
|
|
848
799
|
};
|
|
849
|
-
imports.wbg.
|
|
850
|
-
|
|
851
|
-
return ret;
|
|
800
|
+
imports.wbg.__wbg_setrightClickSelectsWord_e15e0a6c7e12c2f4 = function(arg0, arg1) {
|
|
801
|
+
arg0.rightClickSelectsWord = arg1 !== 0;
|
|
852
802
|
};
|
|
853
|
-
imports.wbg.
|
|
854
|
-
|
|
855
|
-
|
|
803
|
+
imports.wbg.__wbg_setrows_395bb2f6a40be664 = function(arg0, arg1) {
|
|
804
|
+
arg0.rows = arg1 >>> 0;
|
|
805
|
+
};
|
|
806
|
+
imports.wbg.__wbg_settheme_1b783323a8d2b858 = function(arg0, arg1) {
|
|
807
|
+
arg0.theme = arg1;
|
|
856
808
|
};
|
|
857
|
-
imports.wbg.
|
|
858
|
-
const ret =
|
|
809
|
+
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
810
|
+
const ret = arg1.stack;
|
|
859
811
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
860
812
|
const len1 = WASM_VECTOR_LEN;
|
|
861
|
-
|
|
862
|
-
|
|
813
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
814
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
863
815
|
};
|
|
864
|
-
imports.wbg.
|
|
865
|
-
const ret =
|
|
866
|
-
return ret;
|
|
816
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
|
|
817
|
+
const ret = typeof global === "undefined" ? null : global;
|
|
818
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
819
|
+
};
|
|
820
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
|
|
821
|
+
const ret = typeof globalThis === "undefined" ? null : globalThis;
|
|
822
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
867
823
|
};
|
|
868
|
-
imports.wbg.
|
|
869
|
-
const ret =
|
|
824
|
+
imports.wbg.__wbg_static_accessor_PACKAGE_NAME_0af717684e189e55 = function(arg0) {
|
|
825
|
+
const ret = import_duckdb_wasm.PACKAGE_NAME;
|
|
870
826
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
871
827
|
const len1 = WASM_VECTOR_LEN;
|
|
872
|
-
|
|
873
|
-
|
|
828
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
829
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
874
830
|
};
|
|
875
|
-
imports.wbg.
|
|
876
|
-
const ret =
|
|
877
|
-
|
|
831
|
+
imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
|
|
832
|
+
const ret = import_duckdb_wasm.PACKAGE_VERSION;
|
|
833
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
834
|
+
const len1 = WASM_VECTOR_LEN;
|
|
835
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
836
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
837
|
+
};
|
|
838
|
+
imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
|
|
839
|
+
const ret = typeof self === "undefined" ? null : self;
|
|
840
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
841
|
+
};
|
|
842
|
+
imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
|
|
843
|
+
const ret = typeof window === "undefined" ? null : window;
|
|
844
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
878
845
|
};
|
|
879
|
-
imports.wbg.
|
|
880
|
-
const ret =
|
|
846
|
+
imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
|
|
847
|
+
const ret = arg0.then(arg1);
|
|
881
848
|
return ret;
|
|
882
849
|
};
|
|
883
|
-
imports.wbg.
|
|
884
|
-
const ret =
|
|
885
|
-
return
|
|
850
|
+
imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
|
|
851
|
+
const ret = arg0.then(arg1, arg2);
|
|
852
|
+
return ret;
|
|
886
853
|
};
|
|
887
|
-
imports.wbg.
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
854
|
+
imports.wbg.__wbg_toString_c813bbd34d063839 = function(arg0) {
|
|
855
|
+
const ret = arg0.toString();
|
|
856
|
+
return ret;
|
|
857
|
+
};
|
|
858
|
+
imports.wbg.__wbg_tokenize_8a1699f08f37e193 = function() {
|
|
859
|
+
return handleError(function(arg0, arg1, arg2) {
|
|
860
|
+
const ret = arg0.tokenize(getStringFromWasm0(arg1, arg2));
|
|
861
|
+
return ret;
|
|
891
862
|
}, arguments);
|
|
892
863
|
};
|
|
893
|
-
imports.wbg.
|
|
894
|
-
const ret =
|
|
895
|
-
return
|
|
864
|
+
imports.wbg.__wbg_totalFileReadsAhead_a8f3246739715872 = function(arg0) {
|
|
865
|
+
const ret = arg0.totalFileReadsAhead;
|
|
866
|
+
return ret;
|
|
896
867
|
};
|
|
897
|
-
imports.wbg.
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
return addHeapObject(ret);
|
|
901
|
-
}, arguments);
|
|
868
|
+
imports.wbg.__wbg_totalFileReadsCached_a9d725246d8113de = function(arg0) {
|
|
869
|
+
const ret = arg0.totalFileReadsCached;
|
|
870
|
+
return ret;
|
|
902
871
|
};
|
|
903
|
-
imports.wbg.
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
return addHeapObject(ret);
|
|
907
|
-
}, arguments);
|
|
872
|
+
imports.wbg.__wbg_totalFileReadsCold_969fc4fdc92ba928 = function(arg0) {
|
|
873
|
+
const ret = arg0.totalFileReadsCold;
|
|
874
|
+
return ret;
|
|
908
875
|
};
|
|
909
|
-
imports.wbg.
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
return addHeapObject(ret);
|
|
913
|
-
}, arguments);
|
|
876
|
+
imports.wbg.__wbg_totalFileWrites_a1979d03072ca561 = function(arg0) {
|
|
877
|
+
const ret = arg0.totalFileWrites;
|
|
878
|
+
return ret;
|
|
914
879
|
};
|
|
915
|
-
imports.wbg.
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
return addHeapObject(ret);
|
|
919
|
-
}, arguments);
|
|
880
|
+
imports.wbg.__wbg_totalPageAccesses_d1e0755e7c873650 = function(arg0) {
|
|
881
|
+
const ret = arg0.totalPageAccesses;
|
|
882
|
+
return ret;
|
|
920
883
|
};
|
|
921
|
-
imports.wbg.
|
|
922
|
-
const ret =
|
|
884
|
+
imports.wbg.__wbg_totalPageLoads_055280bed199c515 = function(arg0) {
|
|
885
|
+
const ret = arg0.totalPageLoads;
|
|
923
886
|
return ret;
|
|
924
887
|
};
|
|
925
|
-
imports.wbg.
|
|
926
|
-
const ret =
|
|
927
|
-
|
|
888
|
+
imports.wbg.__wbg_type_16f2b8031796512f = function(arg0, arg1) {
|
|
889
|
+
const ret = arg1.type;
|
|
890
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
891
|
+
const len1 = WASM_VECTOR_LEN;
|
|
892
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
893
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
928
894
|
};
|
|
929
|
-
imports.wbg.
|
|
930
|
-
const ret =
|
|
931
|
-
|
|
895
|
+
imports.wbg.__wbg_types_10068f549973c623 = function(arg0, arg1) {
|
|
896
|
+
const ret = arg1.types;
|
|
897
|
+
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
898
|
+
const len1 = WASM_VECTOR_LEN;
|
|
899
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
900
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
932
901
|
};
|
|
933
|
-
imports.wbg.
|
|
934
|
-
|
|
935
|
-
return addHeapObject(ret);
|
|
902
|
+
imports.wbg.__wbg_warn_45a3a6612d9f19fe = function(arg0, arg1) {
|
|
903
|
+
console.warn(getStringFromWasm0(arg0, arg1));
|
|
936
904
|
};
|
|
937
|
-
imports.wbg.
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
return addHeapObject(ret);
|
|
941
|
-
}, arguments);
|
|
905
|
+
imports.wbg.__wbg_wasmBulkMemory_551502ede47fbf09 = function(arg0) {
|
|
906
|
+
const ret = arg0.wasmBulkMemory;
|
|
907
|
+
return ret;
|
|
942
908
|
};
|
|
943
|
-
imports.wbg.
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
var cb0 = (arg02, arg12) => {
|
|
947
|
-
const a = state0.a;
|
|
948
|
-
state0.a = 0;
|
|
949
|
-
try {
|
|
950
|
-
return __wbg_adapter_210(a, state0.b, arg02, arg12);
|
|
951
|
-
} finally {
|
|
952
|
-
state0.a = a;
|
|
953
|
-
}
|
|
954
|
-
};
|
|
955
|
-
const ret = new Promise(cb0);
|
|
956
|
-
return addHeapObject(ret);
|
|
957
|
-
} finally {
|
|
958
|
-
state0.a = state0.b = 0;
|
|
959
|
-
}
|
|
909
|
+
imports.wbg.__wbg_wasmExceptions_4f3d6bc9c38eccd4 = function(arg0) {
|
|
910
|
+
const ret = arg0.wasmExceptions;
|
|
911
|
+
return ret;
|
|
960
912
|
};
|
|
961
|
-
imports.wbg.
|
|
962
|
-
const ret =
|
|
963
|
-
return
|
|
913
|
+
imports.wbg.__wbg_wasmSIMD_6e524010ac1b3712 = function(arg0) {
|
|
914
|
+
const ret = arg0.wasmSIMD;
|
|
915
|
+
return ret;
|
|
964
916
|
};
|
|
965
|
-
imports.wbg.
|
|
966
|
-
const ret =
|
|
967
|
-
return
|
|
917
|
+
imports.wbg.__wbg_wasmThreads_bb92f1f17739f197 = function(arg0) {
|
|
918
|
+
const ret = arg0.wasmThreads;
|
|
919
|
+
return ret;
|
|
968
920
|
};
|
|
969
|
-
imports.wbg.
|
|
970
|
-
const ret =
|
|
971
|
-
return
|
|
921
|
+
imports.wbg.__wbg_withWebGL_e7b2f98241b8125a = function(arg0) {
|
|
922
|
+
const ret = arg0.withWebGL;
|
|
923
|
+
return ret;
|
|
972
924
|
};
|
|
973
|
-
imports.wbg.
|
|
974
|
-
|
|
975
|
-
return addHeapObject(ret);
|
|
925
|
+
imports.wbg.__wbg_write_c3295e1c4c88047e = function(arg0, arg1, arg2) {
|
|
926
|
+
arg0.write(getStringFromWasm0(arg1, arg2));
|
|
976
927
|
};
|
|
977
|
-
imports.wbg.
|
|
978
|
-
const
|
|
979
|
-
|
|
928
|
+
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
929
|
+
const obj = arg0.original;
|
|
930
|
+
if (obj.cnt-- == 1) {
|
|
931
|
+
obj.a = 0;
|
|
932
|
+
return true;
|
|
933
|
+
}
|
|
934
|
+
const ret = false;
|
|
935
|
+
return ret;
|
|
980
936
|
};
|
|
981
|
-
imports.wbg.
|
|
982
|
-
|
|
937
|
+
imports.wbg.__wbindgen_closure_wrapper432 = function(arg0, arg1, arg2) {
|
|
938
|
+
const ret = makeMutClosure(arg0, arg1, 143, __wbg_adapter_26);
|
|
939
|
+
return ret;
|
|
983
940
|
};
|
|
984
|
-
imports.wbg.
|
|
985
|
-
const ret =
|
|
941
|
+
imports.wbg.__wbindgen_closure_wrapper918 = function(arg0, arg1, arg2) {
|
|
942
|
+
const ret = makeMutClosure(arg0, arg1, 180, __wbg_adapter_29);
|
|
986
943
|
return ret;
|
|
987
944
|
};
|
|
988
945
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
989
|
-
const ret = debugString(
|
|
946
|
+
const ret = debugString(arg1);
|
|
990
947
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
991
948
|
const len1 = WASM_VECTOR_LEN;
|
|
992
|
-
|
|
993
|
-
|
|
949
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
950
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
951
|
+
};
|
|
952
|
+
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
953
|
+
const table = wasm.__wbindgen_export_4;
|
|
954
|
+
const offset = table.grow(4);
|
|
955
|
+
table.set(0, void 0);
|
|
956
|
+
table.set(offset + 0, void 0);
|
|
957
|
+
table.set(offset + 1, null);
|
|
958
|
+
table.set(offset + 2, true);
|
|
959
|
+
table.set(offset + 3, false);
|
|
960
|
+
;
|
|
961
|
+
};
|
|
962
|
+
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
963
|
+
const ret = typeof arg0 === "function";
|
|
964
|
+
return ret;
|
|
994
965
|
};
|
|
995
|
-
imports.wbg.
|
|
996
|
-
|
|
966
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
967
|
+
const ret = arg0 === void 0;
|
|
968
|
+
return ret;
|
|
969
|
+
};
|
|
970
|
+
imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
971
|
+
const obj = arg1;
|
|
972
|
+
const ret = JSON.stringify(obj === void 0 ? null : obj);
|
|
973
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
974
|
+
const len1 = WASM_VECTOR_LEN;
|
|
975
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
976
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
997
977
|
};
|
|
998
978
|
imports.wbg.__wbindgen_memory = function() {
|
|
999
979
|
const ret = wasm.memory;
|
|
1000
|
-
return
|
|
980
|
+
return ret;
|
|
1001
981
|
};
|
|
1002
|
-
imports.wbg.
|
|
1003
|
-
const
|
|
1004
|
-
|
|
982
|
+
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
983
|
+
const obj = arg1;
|
|
984
|
+
const ret = typeof obj === "number" ? obj : void 0;
|
|
985
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
986
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
987
|
+
};
|
|
988
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
989
|
+
const obj = arg1;
|
|
990
|
+
const ret = typeof obj === "string" ? obj : void 0;
|
|
991
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
992
|
+
var len1 = WASM_VECTOR_LEN;
|
|
993
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
994
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1005
995
|
};
|
|
1006
|
-
imports.wbg.
|
|
1007
|
-
|
|
1008
|
-
return addHeapObject(ret);
|
|
996
|
+
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
997
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1009
998
|
};
|
|
1010
999
|
return imports;
|
|
1011
1000
|
}
|
|
1012
|
-
function __wbg_init_memory(imports,
|
|
1001
|
+
function __wbg_init_memory(imports, memory) {
|
|
1013
1002
|
}
|
|
1014
1003
|
function __wbg_finalize_init(instance, module) {
|
|
1015
1004
|
wasm = instance.exports;
|
|
1016
1005
|
__wbg_init.__wbindgen_wasm_module = module;
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
cachedUint8Memory0 = null;
|
|
1006
|
+
cachedDataViewMemory0 = null;
|
|
1007
|
+
cachedUint32ArrayMemory0 = null;
|
|
1008
|
+
cachedUint8ArrayMemory0 = null;
|
|
1021
1009
|
wasm.__wbindgen_start();
|
|
1022
1010
|
return wasm;
|
|
1023
1011
|
}
|
|
1024
|
-
async function __wbg_init(
|
|
1012
|
+
async function __wbg_init(module_or_path) {
|
|
1025
1013
|
if (wasm !== void 0)
|
|
1026
1014
|
return wasm;
|
|
1027
|
-
if (typeof
|
|
1028
|
-
|
|
1015
|
+
if (typeof module_or_path !== "undefined") {
|
|
1016
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
1017
|
+
({ module_or_path } = module_or_path);
|
|
1018
|
+
} else {
|
|
1019
|
+
console.warn("using deprecated parameters for the initialization function; pass a single object instead");
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
if (typeof module_or_path === "undefined") {
|
|
1023
|
+
module_or_path = new URL("shell_bg.wasm", import_meta.url);
|
|
1029
1024
|
}
|
|
1030
1025
|
const imports = __wbg_get_imports();
|
|
1031
|
-
if (typeof
|
|
1032
|
-
|
|
1026
|
+
if (typeof module_or_path === "string" || typeof Request === "function" && module_or_path instanceof Request || typeof URL === "function" && module_or_path instanceof URL) {
|
|
1027
|
+
module_or_path = fetch(module_or_path);
|
|
1033
1028
|
}
|
|
1034
1029
|
__wbg_init_memory(imports);
|
|
1035
|
-
const { instance, module } = await __wbg_load(await
|
|
1030
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1036
1031
|
return __wbg_finalize_init(instance, module);
|
|
1037
1032
|
}
|
|
1038
1033
|
var shell_default = __wbg_init;
|