diff --git a/app-e23e3c178059bfed.js b/app-3e0fcd662b1868e3.js similarity index 92% rename from app-e23e3c178059bfed.js rename to app-3e0fcd662b1868e3.js index 4639c43..155fad2 100644 --- a/app-e23e3c178059bfed.js +++ b/app-3e0fcd662b1868e3.js @@ -190,6 +190,28 @@ state => { } ); +function makeClosure(arg0, arg1, dtor, f) { + const state = { a: arg0, b: arg1, cnt: 1, dtor }; + const real = (...args) => { + + // First up with a closure we increment the internal reference + // count. This ensures that the Rust closure environment won't + // be deallocated while we're invoking it. + state.cnt++; + try { + return f(state.a, state.b, ...args); + } finally { + if (--state.cnt === 0) { + wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b); state.a = 0; + CLOSURE_DTORS.unregister(state); + } + } + }; + real.original = state; + CLOSURE_DTORS.register(real, state, state); + return real; +} + function makeMutClosure(arg0, arg1, dtor, f) { const state = { a: arg0, b: arg1, cnt: 1, dtor }; const real = (...args) => { @@ -215,58 +237,32 @@ function makeMutClosure(arg0, arg1, dtor, f) { CLOSURE_DTORS.register(real, state, state); return real; } - -function makeClosure(arg0, arg1, dtor, f) { - const state = { a: arg0, b: arg1, cnt: 1, dtor }; - const real = (...args) => { - - // First up with a closure we increment the internal reference - // count. This ensures that the Rust closure environment won't - // be deallocated while we're invoking it. - state.cnt++; - try { - return f(state.a, state.b, ...args); - } finally { - if (--state.cnt === 0) { - wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b); state.a = 0; - CLOSURE_DTORS.unregister(state); - } - } - }; - real.original = state; - CLOSURE_DTORS.register(real, state, state); - return real; -} -function __wbg_adapter_6(arg0, arg1, arg2) { - wasm.closure342_externref_shim(arg0, arg1, arg2); +function __wbg_adapter_10(arg0, arg1) { + wasm.wasm_bindgen__convert__closures_____invoke__h6cf13290b0f8fcb7(arg0, arg1); } -function __wbg_adapter_9(arg0, arg1) { - wasm.wasm_bindgen__convert__closures_____invoke__h9b9809ae38626823(arg0, arg1); +function __wbg_adapter_13(arg0, arg1, arg2) { + wasm.closure564_externref_shim(arg0, arg1, arg2); } -function __wbg_adapter_14(arg0, arg1) { - wasm.wasm_bindgen__convert__closures_____invoke__hd3aacab65926a4bc(arg0, arg1); +function __wbg_adapter_20(arg0, arg1) { + wasm.wasm_bindgen__convert__closures_____invoke__hc12703559fce24d7(arg0, arg1); } -function __wbg_adapter_17(arg0, arg1) { - wasm.wasm_bindgen__convert__closures_____invoke__h63f40fc127867863(arg0, arg1); +function __wbg_adapter_27(arg0, arg1, arg2) { + wasm.closure562_externref_shim(arg0, arg1, arg2); } -function __wbg_adapter_22(arg0, arg1, arg2) { - wasm.closure1288_externref_shim(arg0, arg1, arg2); +function __wbg_adapter_32(arg0, arg1, arg2) { + wasm.closure1286_externref_shim(arg0, arg1, arg2); } -function __wbg_adapter_31(arg0, arg1, arg2) { - wasm.closure1338_externref_shim(arg0, arg1, arg2); +function __wbg_adapter_35(arg0, arg1, arg2) { + wasm.closure1329_externref_shim(arg0, arg1, arg2); } -function __wbg_adapter_36(arg0, arg1, arg2) { - wasm.closure346_externref_shim(arg0, arg1, arg2); -} - -function __wbg_adapter_325(arg0, arg1, arg2, arg3) { - wasm.closure1353_externref_shim(arg0, arg1, arg2, arg3); +function __wbg_adapter_286(arg0, arg1, arg2, arg3) { + wasm.closure1342_externref_shim(arg0, arg1, arg2, arg3); } const __wbindgen_enum_ReadableStreamType = ["bytes"]; @@ -292,13 +288,6 @@ export class IntoUnderlyingByteSource { const ptr = this.__destroy_into_raw(); wasm.__wbg_intounderlyingbytesource_free(ptr, 0); } - /** - * @returns {ReadableStreamType} - */ - get type() { - const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr); - return __wbindgen_enum_ReadableStreamType[ret]; - } /** * @returns {number} */ @@ -306,12 +295,6 @@ export class IntoUnderlyingByteSource { const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr); return ret >>> 0; } - /** - * @param {ReadableByteStreamController} controller - */ - start(controller) { - wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller); - } /** * @param {ReadableByteStreamController} controller * @returns {Promise} @@ -320,6 +303,19 @@ export class IntoUnderlyingByteSource { const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, controller); return ret; } + /** + * @param {ReadableByteStreamController} controller + */ + start(controller) { + wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller); + } + /** + * @returns {ReadableStreamType} + */ + get type() { + const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr); + return __wbindgen_enum_ReadableStreamType[ret]; + } cancel() { const ptr = this.__destroy_into_raw(); wasm.intounderlyingbytesource_cancel(ptr); @@ -345,11 +341,12 @@ export class IntoUnderlyingSink { wasm.__wbg_intounderlyingsink_free(ptr, 0); } /** - * @param {any} chunk + * @param {any} reason * @returns {Promise} */ - write(chunk) { - const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk); + abort(reason) { + const ptr = this.__destroy_into_raw(); + const ret = wasm.intounderlyingsink_abort(ptr, reason); return ret; } /** @@ -361,12 +358,11 @@ export class IntoUnderlyingSink { return ret; } /** - * @param {any} reason + * @param {any} chunk * @returns {Promise} */ - abort(reason) { - const ptr = this.__destroy_into_raw(); - const ret = wasm.intounderlyingsink_abort(ptr, reason); + write(chunk) { + const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk); return ret; } } @@ -871,7 +867,7 @@ function __wbg_get_imports() { const a = state0.a; state0.a = 0; try { - return __wbg_adapter_325(a, state0.b, arg0, arg1); + return __wbg_adapter_286(a, state0.b, arg0, arg1); } finally { state0.a = a; } @@ -1254,9 +1250,14 @@ function __wbg_get_imports() { const ret = arg0.writeText(getStringFromWasm0(arg1, arg2)); return ret; }; - imports.wbg.__wbindgen_cast_0439d74fb177e761 = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 1269, function: Function { arguments: [], shim_idx: 1270, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, 1269, __wbg_adapter_14); + imports.wbg.__wbindgen_cast_148505f3c4e36d2d = function(arg0, arg1) { + // Cast intrinsic for `Closure(Closure { dtor_idx: 1256, function: Function { arguments: [], shim_idx: 1257, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. + const ret = makeClosure(arg0, arg1, 1256, __wbg_adapter_10); + return ret; + }; + imports.wbg.__wbindgen_cast_1686c2905a8aa227 = function(arg0, arg1) { + // Cast intrinsic for `Closure(Closure { dtor_idx: 561, function: Function { arguments: [NamedExternref("Event")], shim_idx: 564, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. + const ret = makeClosure(arg0, arg1, 561, __wbg_adapter_13); return ret; }; imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) { @@ -1264,9 +1265,19 @@ function __wbg_get_imports() { const ret = getStringFromWasm0(arg0, arg1); return ret; }; - imports.wbg.__wbindgen_cast_44e4175149bdbeb5 = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 341, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 342, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. - const ret = makeClosure(arg0, arg1, 341, __wbg_adapter_6); + imports.wbg.__wbindgen_cast_2f762ecfd438d02c = function(arg0, arg1) { + // Cast intrinsic for `Closure(Closure { dtor_idx: 1262, function: Function { arguments: [], shim_idx: 1263, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. + const ret = makeMutClosure(arg0, arg1, 1262, __wbg_adapter_20); + return ret; + }; + imports.wbg.__wbindgen_cast_343413ee29baf61f = function(arg0, arg1) { + // Cast intrinsic for `Closure(Closure { dtor_idx: 1285, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1286, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. + const ret = makeMutClosure(arg0, arg1, 1285, __wbg_adapter_32); + return ret; + }; + imports.wbg.__wbindgen_cast_36c64bdcff7137d0 = function(arg0, arg1) { + // Cast intrinsic for `Closure(Closure { dtor_idx: 1328, function: Function { arguments: [Externref], shim_idx: 1329, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. + const ret = makeMutClosure(arg0, arg1, 1328, __wbg_adapter_35); return ret; }; imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) { @@ -1274,39 +1285,14 @@ function __wbg_get_imports() { const ret = BigInt.asUintN(64, arg0); return ret; }; - imports.wbg.__wbindgen_cast_5ff7100241f4f2a8 = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 1284, function: Function { arguments: [], shim_idx: 1285, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. - const ret = makeClosure(arg0, arg1, 1284, __wbg_adapter_17); + imports.wbg.__wbindgen_cast_6bdde70e6fdd4b5b = function(arg0, arg1) { + // Cast intrinsic for `Closure(Closure { dtor_idx: 561, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 564, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. + const ret = makeClosure(arg0, arg1, 561, __wbg_adapter_13); return ret; }; - imports.wbg.__wbindgen_cast_6c3bfa1df6d2d32d = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 341, function: Function { arguments: [NamedExternref("ProgressEvent")], shim_idx: 346, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, 341, __wbg_adapter_36); - return ret; - }; - imports.wbg.__wbindgen_cast_80000be82035453d = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 341, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 342, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. - const ret = makeClosure(arg0, arg1, 341, __wbg_adapter_6); - return ret; - }; - imports.wbg.__wbindgen_cast_881d25b30c5b9020 = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 341, function: Function { arguments: [NamedExternref("Event")], shim_idx: 342, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. - const ret = makeClosure(arg0, arg1, 341, __wbg_adapter_6); - return ret; - }; - imports.wbg.__wbindgen_cast_976544c2059bf03a = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 1287, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1288, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, 1287, __wbg_adapter_22); - return ret; - }; - imports.wbg.__wbindgen_cast_af9cb6382b677e22 = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 1337, function: Function { arguments: [Externref], shim_idx: 1338, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, 1337, __wbg_adapter_31); - return ret; - }; - imports.wbg.__wbindgen_cast_cf2ea4f4774a59f7 = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 1259, function: Function { arguments: [], shim_idx: 1260, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. - const ret = makeClosure(arg0, arg1, 1259, __wbg_adapter_9); + imports.wbg.__wbindgen_cast_87c87b20ba3a201e = function(arg0, arg1) { + // Cast intrinsic for `Closure(Closure { dtor_idx: 561, function: Function { arguments: [NamedExternref("MediaQueryList")], shim_idx: 564, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. + const ret = makeClosure(arg0, arg1, 561, __wbg_adapter_13); return ret; }; imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) { @@ -1314,14 +1300,19 @@ function __wbg_get_imports() { const ret = arg0; return ret; }; - imports.wbg.__wbindgen_cast_ea6fda770aac34b7 = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 341, function: Function { arguments: [NamedExternref("MouseEvent")], shim_idx: 342, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. - const ret = makeClosure(arg0, arg1, 341, __wbg_adapter_6); + imports.wbg.__wbindgen_cast_e0f5778f70702c9b = function(arg0, arg1) { + // Cast intrinsic for `Closure(Closure { dtor_idx: 561, function: Function { arguments: [NamedExternref("MouseEvent")], shim_idx: 564, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. + const ret = makeClosure(arg0, arg1, 561, __wbg_adapter_13); return ret; }; - imports.wbg.__wbindgen_cast_f57534dbf8b6e0ac = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 341, function: Function { arguments: [NamedExternref("MediaQueryList")], shim_idx: 342, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. - const ret = makeClosure(arg0, arg1, 341, __wbg_adapter_6); + imports.wbg.__wbindgen_cast_e56ad4ba37ca7617 = function(arg0, arg1) { + // Cast intrinsic for `Closure(Closure { dtor_idx: 561, function: Function { arguments: [NamedExternref("ProgressEvent")], shim_idx: 562, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. + const ret = makeMutClosure(arg0, arg1, 561, __wbg_adapter_27); + return ret; + }; + imports.wbg.__wbindgen_cast_f06d082977e380c1 = function(arg0, arg1) { + // Cast intrinsic for `Closure(Closure { dtor_idx: 561, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 564, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. + const ret = makeClosure(arg0, arg1, 561, __wbg_adapter_13); return ret; }; imports.wbg.__wbindgen_init_externref_table = function() { diff --git a/app-3e0fcd662b1868e3_bg.wasm b/app-3e0fcd662b1868e3_bg.wasm new file mode 100644 index 0000000..ef98fb7 Binary files /dev/null and b/app-3e0fcd662b1868e3_bg.wasm differ diff --git a/app-e23e3c178059bfed_bg.wasm b/app-e23e3c178059bfed_bg.wasm deleted file mode 100644 index 9a4226d..0000000 Binary files a/app-e23e3c178059bfed_bg.wasm and /dev/null differ diff --git a/index.html b/index.html index 58de691..da27a7a 100644 --- a/index.html +++ b/index.html @@ -55,8 +55,8 @@ - + diff --git a/sqlite3.js b/sqlite3.js index e69ba66..83f48c4 100644 --- a/sqlite3.js +++ b/sqlite3.js @@ -190,28 +190,6 @@ state => { } ); -function makeClosure(arg0, arg1, dtor, f) { - const state = { a: arg0, b: arg1, cnt: 1, dtor }; - const real = (...args) => { - - // First up with a closure we increment the internal reference - // count. This ensures that the Rust closure environment won't - // be deallocated while we're invoking it. - state.cnt++; - try { - return f(state.a, state.b, ...args); - } finally { - if (--state.cnt === 0) { - wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b); state.a = 0; - CLOSURE_DTORS.unregister(state); - } - } - }; - real.original = state; - CLOSURE_DTORS.register(real, state, state); - return real; -} - function makeMutClosure(arg0, arg1, dtor, f) { const state = { a: arg0, b: arg1, cnt: 1, dtor }; const real = (...args) => { @@ -237,16 +215,38 @@ function makeMutClosure(arg0, arg1, dtor, f) { CLOSURE_DTORS.register(real, state, state); return real; } -function __wbg_adapter_10(arg0, arg1, arg2) { - wasm.closure700_externref_shim(arg0, arg1, arg2); + +function makeClosure(arg0, arg1, dtor, f) { + const state = { a: arg0, b: arg1, cnt: 1, dtor }; + const real = (...args) => { + + // First up with a closure we increment the internal reference + // count. This ensures that the Rust closure environment won't + // be deallocated while we're invoking it. + state.cnt++; + try { + return f(state.a, state.b, ...args); + } finally { + if (--state.cnt === 0) { + wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b); state.a = 0; + CLOSURE_DTORS.unregister(state); + } + } + }; + real.original = state; + CLOSURE_DTORS.register(real, state, state); + return real; +} +function __wbg_adapter_8(arg0, arg1, arg2) { + wasm.closure751_externref_shim(arg0, arg1, arg2); } -function __wbg_adapter_15(arg0, arg1, arg2) { - wasm.closure13_externref_shim(arg0, arg1, arg2); +function __wbg_adapter_11(arg0, arg1, arg2) { + wasm.closure12_externref_shim(arg0, arg1, arg2); } -function __wbg_adapter_194(arg0, arg1, arg2, arg3) { - wasm.closure715_externref_shim(arg0, arg1, arg2, arg3); +function __wbg_adapter_106(arg0, arg1, arg2, arg3) { + wasm.closure764_externref_shim(arg0, arg1, arg2, arg3); } const __wbindgen_enum_ReadableStreamType = ["bytes"]; @@ -268,13 +268,6 @@ export class IntoUnderlyingByteSource { const ptr = this.__destroy_into_raw(); wasm.__wbg_intounderlyingbytesource_free(ptr, 0); } - /** - * @returns {ReadableStreamType} - */ - get type() { - const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr); - return __wbindgen_enum_ReadableStreamType[ret]; - } /** * @returns {number} */ @@ -282,12 +275,6 @@ export class IntoUnderlyingByteSource { const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr); return ret >>> 0; } - /** - * @param {ReadableByteStreamController} controller - */ - start(controller) { - wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller); - } /** * @param {ReadableByteStreamController} controller * @returns {Promise} @@ -296,6 +283,19 @@ export class IntoUnderlyingByteSource { const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, controller); return ret; } + /** + * @param {ReadableByteStreamController} controller + */ + start(controller) { + wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller); + } + /** + * @returns {ReadableStreamType} + */ + get type() { + const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr); + return __wbindgen_enum_ReadableStreamType[ret]; + } cancel() { const ptr = this.__destroy_into_raw(); wasm.intounderlyingbytesource_cancel(ptr); @@ -321,11 +321,12 @@ export class IntoUnderlyingSink { wasm.__wbg_intounderlyingsink_free(ptr, 0); } /** - * @param {any} chunk + * @param {any} reason * @returns {Promise} */ - write(chunk) { - const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk); + abort(reason) { + const ptr = this.__destroy_into_raw(); + const ret = wasm.intounderlyingsink_abort(ptr, reason); return ret; } /** @@ -337,12 +338,11 @@ export class IntoUnderlyingSink { return ret; } /** - * @param {any} reason + * @param {any} chunk * @returns {Promise} */ - abort(reason) { - const ptr = this.__destroy_into_raw(); - const ret = wasm.intounderlyingsink_abort(ptr, reason); + write(chunk) { + const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk); return ret; } } @@ -426,10 +426,6 @@ function __wbg_get_imports() { const ret = Number(arg0); return ret; }; - imports.wbg.__wbg_add_bd7fa428f539a577 = function(arg0, arg1) { - const ret = arg0.add(arg1); - return ret; - }; imports.wbg.__wbg_buffer_8d40b1d762fb3c66 = function(arg0) { const ret = arg0.buffer; return ret; @@ -471,14 +467,6 @@ function __wbg_get_imports() { imports.wbg.__wbg_debug_c906769d2f88c17b = function(arg0) { console.debug(arg0); }; - imports.wbg.__wbg_delete_34b4d9b89634f0c0 = function(arg0, arg1) { - const ret = arg0.delete(arg1); - return ret; - }; - imports.wbg.__wbg_delete_ded22f5899363180 = function(arg0, arg1) { - const ret = arg0.delete(arg1); - return ret; - }; imports.wbg.__wbg_done_75ed0ee6dd243d9d = function(arg0) { const ret = arg0.done; return ret; @@ -515,10 +503,6 @@ function __wbg_get_imports() { imports.wbg.__wbg_flush_d2487a24f3bc3cf4 = function() { return handleError(function (arg0) { arg0.flush(); }, arguments) }; - imports.wbg.__wbg_from_88bc52ce20ba6318 = function(arg0) { - const ret = Array.from(arg0); - return ret; - }; imports.wbg.__wbg_getDate_9615e288fc892247 = function(arg0) { const ret = arg0.getDate(); return ret; @@ -555,6 +539,9 @@ function __wbg_get_imports() { const ret = arg0.getMonth(); return ret; }; + imports.wbg.__wbg_getRandomValues_c51ec1a88ebf4945 = function() { return handleError(function (arg0, arg1) { + globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1)); + }, arguments) }; imports.wbg.__wbg_getSeconds_c2f02452d804ece0 = function(arg0) { const ret = arg0.getSeconds(); return ret; @@ -583,10 +570,6 @@ function __wbg_get_imports() { const ret = Reflect.get(arg0, arg1); return ret; }, arguments) }; - imports.wbg.__wbg_get_5ee3191755594360 = function(arg0, arg1) { - const ret = arg0.get(arg1); - return ret; - }; imports.wbg.__wbg_getindex_61bb13d19869849b = function(arg0, arg1) { const ret = arg0[arg1 >>> 0]; return ret; @@ -595,10 +578,6 @@ function __wbg_get_imports() { const ret = arg0[arg1]; return ret; }; - imports.wbg.__wbg_has_6a9bff5f4208cfca = function(arg0, arg1) { - const ret = arg0.has(arg1); - return ret; - }; imports.wbg.__wbg_info_6cf68c1a86a92f6a = function(arg0) { console.info(arg0); }; @@ -644,10 +623,6 @@ function __wbg_get_imports() { const ret = Symbol.iterator; return ret; }; - imports.wbg.__wbg_keys_200bc2675df61794 = function(arg0) { - const ret = arg0.keys(); - return ret; - }; imports.wbg.__wbg_length_186546c51cd61acd = function(arg0) { const ret = arg0.length; return ret; @@ -671,10 +646,6 @@ function __wbg_get_imports() { const ret = new Date(); return ret; }; - imports.wbg.__wbg_new_0dc86f3faa8a3b53 = function(arg0) { - const ret = new Set(arg0); - return ret; - }; imports.wbg.__wbg_new_19c25a3f2fa63a02 = function() { const ret = new Object(); return ret; @@ -690,7 +661,7 @@ function __wbg_get_imports() { const a = state0.a; state0.a = 0; try { - return __wbg_adapter_194(a, state0.b, arg0, arg1); + return __wbg_adapter_106(a, state0.b, arg0, arg1); } finally { state0.a = a; } @@ -701,10 +672,6 @@ function __wbg_get_imports() { state0.a = state0.b = 0; } }; - imports.wbg.__wbg_new_2ff1f68f3676ea53 = function() { - const ret = new Map(); - return ret; - }; imports.wbg.__wbg_new_5a2ae4557f92b50e = function(arg0) { const ret = new Date(arg0); return ret; @@ -801,10 +768,6 @@ function __wbg_get_imports() { imports.wbg.__wbg_set_90f6c0f7bd8c0415 = function(arg0, arg1, arg2) { arg0[arg1 >>> 0] = arg2; }; - imports.wbg.__wbg_set_b7f1cf4fae26fe2a = function(arg0, arg1, arg2) { - const ret = arg0.set(arg1, arg2); - return ret; - }; imports.wbg.__wbg_setat_f8fc70f546036b10 = function(arg0, arg1) { arg0.at = arg1; }; @@ -817,10 +780,6 @@ function __wbg_get_imports() { imports.wbg.__wbg_setonmessage_041fb8f4204d276c = function(arg0, arg1) { arg0.onmessage = arg1; }; - imports.wbg.__wbg_size_af8602b0b838d49e = function(arg0) { - const ret = arg0.size; - return ret; - }; imports.wbg.__wbg_slice_974daea329f5c01d = function(arg0, arg1, arg2) { const ret = arg0.slice(arg1 >>> 0, arg2 >>> 0); return ret; @@ -956,6 +915,11 @@ function __wbg_get_imports() { const ret = arg0.write(arg1, arg2); return ret; }, arguments) }; + imports.wbg.__wbindgen_cast_1ef262566db33b8e = function(arg0, arg1) { + // Cast intrinsic for `Closure(Closure { dtor_idx: 750, function: Function { arguments: [Externref], shim_idx: 751, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. + const ret = makeMutClosure(arg0, arg1, 750, __wbg_adapter_8); + return ret; + }; imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) { // Cast intrinsic for `Ref(String) -> Externref`. const ret = getStringFromWasm0(arg0, arg1); @@ -966,14 +930,9 @@ function __wbg_get_imports() { const ret = BigInt.asUintN(64, arg0); return ret; }; - imports.wbg.__wbindgen_cast_72f980d9d812accc = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 12, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 13, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. - const ret = makeClosure(arg0, arg1, 12, __wbg_adapter_15); - return ret; - }; - imports.wbg.__wbindgen_cast_a76f2bc64e50fa0e = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 699, function: Function { arguments: [Externref], shim_idx: 700, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, 699, __wbg_adapter_10); + imports.wbg.__wbindgen_cast_b39e8b2523f3b653 = function(arg0, arg1) { + // Cast intrinsic for `Closure(Closure { dtor_idx: 11, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 12, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. + const ret = makeClosure(arg0, arg1, 11, __wbg_adapter_11); return ret; }; imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) { diff --git a/sqlite3_bg.wasm b/sqlite3_bg.wasm index a689c2f..3e6d5cf 100644 Binary files a/sqlite3_bg.wasm and b/sqlite3_bg.wasm differ diff --git a/sqlite3mc.js b/sqlite3mc.js index 3db7876..2f6211a 100644 --- a/sqlite3mc.js +++ b/sqlite3mc.js @@ -190,6 +190,28 @@ state => { } ); +function makeClosure(arg0, arg1, dtor, f) { + const state = { a: arg0, b: arg1, cnt: 1, dtor }; + const real = (...args) => { + + // First up with a closure we increment the internal reference + // count. This ensures that the Rust closure environment won't + // be deallocated while we're invoking it. + state.cnt++; + try { + return f(state.a, state.b, ...args); + } finally { + if (--state.cnt === 0) { + wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b); state.a = 0; + CLOSURE_DTORS.unregister(state); + } + } + }; + real.original = state; + CLOSURE_DTORS.register(real, state, state); + return real; +} + function makeMutClosure(arg0, arg1, dtor, f) { const state = { a: arg0, b: arg1, cnt: 1, dtor }; const real = (...args) => { @@ -215,38 +237,16 @@ function makeMutClosure(arg0, arg1, dtor, f) { CLOSURE_DTORS.register(real, state, state); return real; } - -function makeClosure(arg0, arg1, dtor, f) { - const state = { a: arg0, b: arg1, cnt: 1, dtor }; - const real = (...args) => { - - // First up with a closure we increment the internal reference - // count. This ensures that the Rust closure environment won't - // be deallocated while we're invoking it. - state.cnt++; - try { - return f(state.a, state.b, ...args); - } finally { - if (--state.cnt === 0) { - wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b); state.a = 0; - CLOSURE_DTORS.unregister(state); - } - } - }; - real.original = state; - CLOSURE_DTORS.register(real, state, state); - return real; -} -function __wbg_adapter_10(arg0, arg1, arg2) { - wasm.closure864_externref_shim(arg0, arg1, arg2); +function __wbg_adapter_8(arg0, arg1, arg2) { + wasm.closure907_externref_shim(arg0, arg1, arg2); } -function __wbg_adapter_15(arg0, arg1, arg2) { - wasm.closure51_externref_shim(arg0, arg1, arg2); +function __wbg_adapter_13(arg0, arg1, arg2) { + wasm.closure73_externref_shim(arg0, arg1, arg2); } -function __wbg_adapter_196(arg0, arg1, arg2, arg3) { - wasm.closure879_externref_shim(arg0, arg1, arg2, arg3); +function __wbg_adapter_106(arg0, arg1, arg2, arg3) { + wasm.closure920_externref_shim(arg0, arg1, arg2, arg3); } const __wbindgen_enum_ReadableStreamType = ["bytes"]; @@ -268,13 +268,6 @@ export class IntoUnderlyingByteSource { const ptr = this.__destroy_into_raw(); wasm.__wbg_intounderlyingbytesource_free(ptr, 0); } - /** - * @returns {ReadableStreamType} - */ - get type() { - const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr); - return __wbindgen_enum_ReadableStreamType[ret]; - } /** * @returns {number} */ @@ -282,12 +275,6 @@ export class IntoUnderlyingByteSource { const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr); return ret >>> 0; } - /** - * @param {ReadableByteStreamController} controller - */ - start(controller) { - wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller); - } /** * @param {ReadableByteStreamController} controller * @returns {Promise} @@ -296,6 +283,19 @@ export class IntoUnderlyingByteSource { const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, controller); return ret; } + /** + * @param {ReadableByteStreamController} controller + */ + start(controller) { + wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller); + } + /** + * @returns {ReadableStreamType} + */ + get type() { + const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr); + return __wbindgen_enum_ReadableStreamType[ret]; + } cancel() { const ptr = this.__destroy_into_raw(); wasm.intounderlyingbytesource_cancel(ptr); @@ -321,11 +321,12 @@ export class IntoUnderlyingSink { wasm.__wbg_intounderlyingsink_free(ptr, 0); } /** - * @param {any} chunk + * @param {any} reason * @returns {Promise} */ - write(chunk) { - const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk); + abort(reason) { + const ptr = this.__destroy_into_raw(); + const ret = wasm.intounderlyingsink_abort(ptr, reason); return ret; } /** @@ -337,12 +338,11 @@ export class IntoUnderlyingSink { return ret; } /** - * @param {any} reason + * @param {any} chunk * @returns {Promise} */ - abort(reason) { - const ptr = this.__destroy_into_raw(); - const ret = wasm.intounderlyingsink_abort(ptr, reason); + write(chunk) { + const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk); return ret; } } @@ -426,10 +426,6 @@ function __wbg_get_imports() { const ret = Number(arg0); return ret; }; - imports.wbg.__wbg_add_bd7fa428f539a577 = function(arg0, arg1) { - const ret = arg0.add(arg1); - return ret; - }; imports.wbg.__wbg_buffer_8d40b1d762fb3c66 = function(arg0) { const ret = arg0.buffer; return ret; @@ -471,14 +467,6 @@ function __wbg_get_imports() { imports.wbg.__wbg_debug_c906769d2f88c17b = function(arg0) { console.debug(arg0); }; - imports.wbg.__wbg_delete_34b4d9b89634f0c0 = function(arg0, arg1) { - const ret = arg0.delete(arg1); - return ret; - }; - imports.wbg.__wbg_delete_ded22f5899363180 = function(arg0, arg1) { - const ret = arg0.delete(arg1); - return ret; - }; imports.wbg.__wbg_done_75ed0ee6dd243d9d = function(arg0) { const ret = arg0.done; return ret; @@ -515,10 +503,6 @@ function __wbg_get_imports() { imports.wbg.__wbg_flush_d2487a24f3bc3cf4 = function() { return handleError(function (arg0) { arg0.flush(); }, arguments) }; - imports.wbg.__wbg_from_88bc52ce20ba6318 = function(arg0) { - const ret = Array.from(arg0); - return ret; - }; imports.wbg.__wbg_getDate_9615e288fc892247 = function(arg0) { const ret = arg0.getDate(); return ret; @@ -555,7 +539,7 @@ function __wbg_get_imports() { const ret = arg0.getMonth(); return ret; }; - imports.wbg.__wbg_getRandomValues_86cdae71dd9aa438 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_getRandomValues_c51ec1a88ebf4945 = function() { return handleError(function (arg0, arg1) { globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1)); }, arguments) }; imports.wbg.__wbg_getSeconds_c2f02452d804ece0 = function(arg0) { @@ -586,10 +570,6 @@ function __wbg_get_imports() { const ret = Reflect.get(arg0, arg1); return ret; }, arguments) }; - imports.wbg.__wbg_get_5ee3191755594360 = function(arg0, arg1) { - const ret = arg0.get(arg1); - return ret; - }; imports.wbg.__wbg_getindex_61bb13d19869849b = function(arg0, arg1) { const ret = arg0[arg1 >>> 0]; return ret; @@ -598,10 +578,6 @@ function __wbg_get_imports() { const ret = arg0[arg1]; return ret; }; - imports.wbg.__wbg_has_6a9bff5f4208cfca = function(arg0, arg1) { - const ret = arg0.has(arg1); - return ret; - }; imports.wbg.__wbg_info_6cf68c1a86a92f6a = function(arg0) { console.info(arg0); }; @@ -647,10 +623,6 @@ function __wbg_get_imports() { const ret = Symbol.iterator; return ret; }; - imports.wbg.__wbg_keys_200bc2675df61794 = function(arg0) { - const ret = arg0.keys(); - return ret; - }; imports.wbg.__wbg_length_186546c51cd61acd = function(arg0) { const ret = arg0.length; return ret; @@ -674,10 +646,6 @@ function __wbg_get_imports() { const ret = new Date(); return ret; }; - imports.wbg.__wbg_new_0dc86f3faa8a3b53 = function(arg0) { - const ret = new Set(arg0); - return ret; - }; imports.wbg.__wbg_new_19c25a3f2fa63a02 = function() { const ret = new Object(); return ret; @@ -693,7 +661,7 @@ function __wbg_get_imports() { const a = state0.a; state0.a = 0; try { - return __wbg_adapter_196(a, state0.b, arg0, arg1); + return __wbg_adapter_106(a, state0.b, arg0, arg1); } finally { state0.a = a; } @@ -704,10 +672,6 @@ function __wbg_get_imports() { state0.a = state0.b = 0; } }; - imports.wbg.__wbg_new_2ff1f68f3676ea53 = function() { - const ret = new Map(); - return ret; - }; imports.wbg.__wbg_new_5a2ae4557f92b50e = function(arg0) { const ret = new Date(arg0); return ret; @@ -804,10 +768,6 @@ function __wbg_get_imports() { imports.wbg.__wbg_set_90f6c0f7bd8c0415 = function(arg0, arg1, arg2) { arg0[arg1 >>> 0] = arg2; }; - imports.wbg.__wbg_set_b7f1cf4fae26fe2a = function(arg0, arg1, arg2) { - const ret = arg0.set(arg1, arg2); - return ret; - }; imports.wbg.__wbg_setat_f8fc70f546036b10 = function(arg0, arg1) { arg0.at = arg1; }; @@ -820,10 +780,6 @@ function __wbg_get_imports() { imports.wbg.__wbg_setonmessage_041fb8f4204d276c = function(arg0, arg1) { arg0.onmessage = arg1; }; - imports.wbg.__wbg_size_af8602b0b838d49e = function(arg0) { - const ret = arg0.size; - return ret; - }; imports.wbg.__wbg_slice_974daea329f5c01d = function(arg0, arg1, arg2) { const ret = arg0.slice(arg1 >>> 0, arg2 >>> 0); return ret; @@ -959,11 +915,6 @@ function __wbg_get_imports() { const ret = arg0.write(arg1, arg2); return ret; }, arguments) }; - imports.wbg.__wbindgen_cast_17a4a7bb0b422091 = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 863, function: Function { arguments: [Externref], shim_idx: 864, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, 863, __wbg_adapter_10); - return ret; - }; imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) { // Cast intrinsic for `Ref(String) -> Externref`. const ret = getStringFromWasm0(arg0, arg1); @@ -974,9 +925,14 @@ function __wbg_get_imports() { const ret = BigInt.asUintN(64, arg0); return ret; }; - imports.wbg.__wbindgen_cast_62a4aa30fc2b84ef = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 50, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 51, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. - const ret = makeClosure(arg0, arg1, 50, __wbg_adapter_15); + imports.wbg.__wbindgen_cast_8fca3b27ba384642 = function(arg0, arg1) { + // Cast intrinsic for `Closure(Closure { dtor_idx: 72, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 73, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. + const ret = makeClosure(arg0, arg1, 72, __wbg_adapter_13); + return ret; + }; + imports.wbg.__wbindgen_cast_bce5e8dbfadf1667 = function(arg0, arg1) { + // Cast intrinsic for `Closure(Closure { dtor_idx: 906, function: Function { arguments: [Externref], shim_idx: 907, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. + const ret = makeMutClosure(arg0, arg1, 906, __wbg_adapter_8); return ret; }; imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) { diff --git a/sqlite3mc_bg.wasm b/sqlite3mc_bg.wasm index db3fe4d..49be534 100644 Binary files a/sqlite3mc_bg.wasm and b/sqlite3mc_bg.wasm differ