diff --git a/app-e23e3c178059bfed.js b/app-e23e3c178059bfed.js index ef276ee..4639c43 100644 --- a/app-e23e3c178059bfed.js +++ b/app-e23e3c178059bfed.js @@ -238,31 +238,31 @@ function makeClosure(arg0, arg1, dtor, f) { return real; } function __wbg_adapter_6(arg0, arg1, arg2) { - wasm.closure1338_externref_shim(arg0, arg1, arg2); -} - -function __wbg_adapter_9(arg0, arg1) { - wasm.wasm_bindgen__convert__closures_____invoke__h63f40fc127867863(arg0, arg1); -} - -function __wbg_adapter_12(arg0, arg1) { - wasm.wasm_bindgen__convert__closures_____invoke__hd3aacab65926a4bc(arg0, arg1); -} - -function __wbg_adapter_15(arg0, arg1, arg2) { wasm.closure342_externref_shim(arg0, arg1, arg2); } -function __wbg_adapter_28(arg0, arg1, arg2) { +function __wbg_adapter_9(arg0, arg1) { + wasm.wasm_bindgen__convert__closures_____invoke__h9b9809ae38626823(arg0, arg1); +} + +function __wbg_adapter_14(arg0, arg1) { + wasm.wasm_bindgen__convert__closures_____invoke__hd3aacab65926a4bc(arg0, arg1); +} + +function __wbg_adapter_17(arg0, arg1) { + wasm.wasm_bindgen__convert__closures_____invoke__h63f40fc127867863(arg0, arg1); +} + +function __wbg_adapter_22(arg0, arg1, arg2) { wasm.closure1288_externref_shim(arg0, arg1, arg2); } -function __wbg_adapter_33(arg0, arg1, arg2) { - wasm.closure346_externref_shim(arg0, arg1, arg2); +function __wbg_adapter_31(arg0, arg1, arg2) { + wasm.closure1338_externref_shim(arg0, arg1, arg2); } -function __wbg_adapter_36(arg0, arg1) { - wasm.wasm_bindgen__convert__closures_____invoke__h9b9809ae38626823(arg0, arg1); +function __wbg_adapter_36(arg0, arg1, arg2) { + wasm.closure346_externref_shim(arg0, arg1, arg2); } function __wbg_adapter_325(arg0, arg1, arg2, arg3) { @@ -1256,7 +1256,7 @@ function __wbg_get_imports() { }; 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_12); + const ret = makeMutClosure(arg0, arg1, 1269, __wbg_adapter_14); return ret; }; imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) { @@ -1266,7 +1266,7 @@ function __wbg_get_imports() { }; 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_15); + const ret = makeClosure(arg0, arg1, 341, __wbg_adapter_6); return ret; }; imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) { @@ -1276,37 +1276,37 @@ function __wbg_get_imports() { }; 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_9); + const ret = makeClosure(arg0, arg1, 1284, __wbg_adapter_17); 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_33); + 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_15); + 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_15); + 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_28); + 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_6); + 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_36); + const ret = makeClosure(arg0, arg1, 1259, __wbg_adapter_9); return ret; }; imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) { @@ -1316,12 +1316,12 @@ function __wbg_get_imports() { }; 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_15); + const ret = makeClosure(arg0, arg1, 341, __wbg_adapter_6); 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_15); + const ret = makeClosure(arg0, arg1, 341, __wbg_adapter_6); return ret; }; imports.wbg.__wbindgen_init_externref_table = function() { diff --git a/app-e23e3c178059bfed_bg.wasm b/app-e23e3c178059bfed_bg.wasm index ac271c8..9a4226d 100644 Binary files a/app-e23e3c178059bfed_bg.wasm and b/app-e23e3c178059bfed_bg.wasm differ diff --git a/index.html b/index.html index 3a4c0bf..58de691 100644 --- a/index.html +++ b/index.html @@ -67,6 +67,6 @@ dispatchEvent(new CustomEvent("TrunkApplicationStarted", {detail: {wasm}})); - + diff --git a/sqlite3.js b/sqlite3.js index 06f0ea3..e69ba66 100644 --- a/sqlite3.js +++ b/sqlite3.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_8(arg0, arg1, arg2) { - wasm.closure52_externref_shim(arg0, arg1, arg2); +function __wbg_adapter_10(arg0, arg1, arg2) { + wasm.closure700_externref_shim(arg0, arg1, arg2); } function __wbg_adapter_15(arg0, arg1, arg2) { - wasm.closure693_externref_shim(arg0, arg1, arg2); + wasm.closure13_externref_shim(arg0, arg1, arg2); } function __wbg_adapter_194(arg0, arg1, arg2, arg3) { - wasm.closure708_externref_shim(arg0, arg1, arg2, arg3); + wasm.closure715_externref_shim(arg0, arg1, arg2, arg3); } const __wbindgen_enum_ReadableStreamType = ["bytes"]; @@ -966,9 +966,14 @@ function __wbg_get_imports() { const ret = BigInt.asUintN(64, arg0); return ret; }; - imports.wbg.__wbindgen_cast_bc850f17bc604271 = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 692, function: Function { arguments: [Externref], shim_idx: 693, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, 692, __wbg_adapter_15); + 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); return ret; }; imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) { @@ -976,11 +981,6 @@ function __wbg_get_imports() { const ret = arg0; return ret; }; - imports.wbg.__wbindgen_cast_dd9f71b781afdbd7 = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 51, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 52, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. - const ret = makeClosure(arg0, arg1, 51, __wbg_adapter_8); - return ret; - }; imports.wbg.__wbindgen_init_externref_table = function() { const table = wasm.__wbindgen_export_1; const offset = table.grow(4); diff --git a/sqlite3_bg.wasm b/sqlite3_bg.wasm index a86e18b..a689c2f 100644 Binary files a/sqlite3_bg.wasm and b/sqlite3_bg.wasm differ diff --git a/sqlite3mc.js b/sqlite3mc.js index 1bca6d2..3db7876 100644 --- a/sqlite3mc.js +++ b/sqlite3mc.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_6(arg0, arg1, arg2) { - wasm.closure857_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_10(arg0, arg1, arg2) { + wasm.closure864_externref_shim(arg0, arg1, arg2); } function __wbg_adapter_15(arg0, arg1, arg2) { - wasm.closure84_externref_shim(arg0, arg1, arg2); + wasm.closure51_externref_shim(arg0, arg1, arg2); } function __wbg_adapter_196(arg0, arg1, arg2, arg3) { - wasm.closure872_externref_shim(arg0, arg1, arg2, arg3); + wasm.closure879_externref_shim(arg0, arg1, arg2, arg3); } const __wbindgen_enum_ReadableStreamType = ["bytes"]; @@ -555,7 +555,7 @@ function __wbg_get_imports() { const ret = arg0.getMonth(); return ret; }; - imports.wbg.__wbg_getRandomValues_050cadc9f56e1763 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_getRandomValues_86cdae71dd9aa438 = function() { return handleError(function (arg0, arg1) { globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1)); }, arguments) }; imports.wbg.__wbg_getSeconds_c2f02452d804ece0 = function(arg0) { @@ -959,6 +959,11 @@ 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); @@ -969,14 +974,9 @@ function __wbg_get_imports() { const ret = BigInt.asUintN(64, arg0); return ret; }; - imports.wbg.__wbindgen_cast_4ad546bf309926d2 = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 83, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 84, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. - const ret = makeClosure(arg0, arg1, 83, __wbg_adapter_15); - return ret; - }; - imports.wbg.__wbindgen_cast_6911d9a10774b555 = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 856, function: Function { arguments: [Externref], shim_idx: 857, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, 856, __wbg_adapter_6); + 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); return ret; }; imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) { diff --git a/sqlite3mc_bg.wasm b/sqlite3mc_bg.wasm index ed02c73..db3fe4d 100644 Binary files a/sqlite3mc_bg.wasm and b/sqlite3mc_bg.wasm differ