diff --git a/app-734bc960c873fbeb_bg.wasm b/app-734bc960c873fbeb_bg.wasm deleted file mode 100644 index 36844ca..0000000 Binary files a/app-734bc960c873fbeb_bg.wasm and /dev/null differ diff --git a/app-734bc960c873fbeb.js b/app-e23e3c178059bfed.js similarity index 68% rename from app-734bc960c873fbeb.js rename to app-e23e3c178059bfed.js index 509b091..ee19531 100644 --- a/app-734bc960c873fbeb.js +++ b/app-e23e3c178059bfed.js @@ -1,7 +1,5 @@ let wasm; -let WASM_VECTOR_LEN = 0; - let cachedUint8ArrayMemory0 = null; function getUint8ArrayMemory0() { @@ -11,20 +9,41 @@ function getUint8ArrayMemory0() { return cachedUint8ArrayMemory0; } -const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } ); +let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); -const encodeString = (typeof cachedTextEncoder.encodeInto === 'function' - ? function (arg, view) { - return cachedTextEncoder.encodeInto(arg, view); +cachedTextDecoder.decode(); + +const MAX_SAFARI_DECODE_BYTES = 2146435072; +let numBytesDecoded = 0; +function decodeText(ptr, len) { + numBytesDecoded += len; + if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) { + cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); + cachedTextDecoder.decode(); + numBytesDecoded = len; + } + return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len)); +} + +function getStringFromWasm0(ptr, len) { + ptr = ptr >>> 0; + return decodeText(ptr, len); +} + +let WASM_VECTOR_LEN = 0; + +const cachedTextEncoder = new TextEncoder(); + +if (!('encodeInto' in cachedTextEncoder)) { + cachedTextEncoder.encodeInto = function (arg, view) { + const buf = cachedTextEncoder.encode(arg); + view.set(buf); + return { + read: arg.length, + written: buf.length + }; + } } - : function (arg, view) { - const buf = cachedTextEncoder.encode(arg); - view.set(buf); - return { - read: arg.length, - written: buf.length - }; -}); function passStringToWasm0(arg, malloc, realloc) { @@ -55,7 +74,7 @@ function passStringToWasm0(arg, malloc, realloc) { } ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0; const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len); - const ret = encodeString(arg, view); + const ret = cachedTextEncoder.encodeInto(arg, view); offset += ret.written; ptr = realloc(ptr, len, offset, 1) >>> 0; @@ -74,15 +93,6 @@ function getDataViewMemory0() { return cachedDataViewMemory0; } -const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } ); - -if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); }; - -function getStringFromWasm0(ptr, len) { - ptr = ptr >>> 0; - return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len)); -} - function addToExternrefTable0(obj) { const idx = wasm.__externref_table_alloc(); wasm.__wbindgen_export_4.set(idx, obj); @@ -102,57 +112,9 @@ function isLikeNone(x) { return x === undefined || x === null; } -const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined') - ? { register: () => {}, unregister: () => {} } - : new FinalizationRegistry(state => { - wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b) -}); - -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) => { - // 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++; - const a = state.a; - state.a = 0; - try { - return f(a, state.b, ...args); - } finally { - if (--state.cnt === 0) { - wasm.__wbindgen_export_6.get(state.dtor)(a, state.b); - CLOSURE_DTORS.unregister(state); - } else { - state.a = a; - } - } - }; - real.original = state; - CLOSURE_DTORS.register(real, state, state); - return real; +function getArrayU8FromWasm0(ptr, len) { + ptr = ptr >>> 0; + return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); } function debugString(val) { @@ -219,36 +181,92 @@ function debugString(val) { // TODO we could test for more things here, like `Set`s and `Map`s. return className; } -function __wbg_adapter_54(arg0, arg1, arg2) { - wasm.closure1088_externref_shim(arg0, arg1, arg2); + +const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined') + ? { register: () => {}, unregister: () => {} } + : new FinalizationRegistry( +state => { + wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b); +} +); + +function makeMutClosure(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++; + const a = state.a; + state.a = 0; + try { + return f(a, state.b, ...args); + } finally { + if (--state.cnt === 0) { + wasm.__wbindgen_export_6.get(state.dtor)(a, state.b); + CLOSURE_DTORS.unregister(state); + } else { + state.a = a; + } + } + }; + real.original = state; + CLOSURE_DTORS.register(real, state, state); + return real; } -function __wbg_adapter_63(arg0, arg1, arg2) { - wasm.closure1092_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_6(arg0, arg1, arg2) { + wasm.closure342_externref_shim(arg0, arg1, arg2); } -function __wbg_adapter_68(arg0, arg1) { - wasm._dyn_core__ops__function__Fn_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h667e106d196c4be6(arg0, arg1); +function __wbg_adapter_9(arg0, arg1) { + wasm.wasm_bindgen__convert__closures_____invoke__h63f40fc127867863(arg0, arg1); } -function __wbg_adapter_71(arg0, arg1, arg2) { - wasm.closure1275_externref_shim(arg0, arg1, arg2); +function __wbg_adapter_18(arg0, arg1) { + wasm.wasm_bindgen__convert__closures_____invoke__h9b9809ae38626823(arg0, arg1); } -function __wbg_adapter_74(arg0, arg1) { - wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd3f69d71d3945d36(arg0, arg1); +function __wbg_adapter_21(arg0, arg1) { + wasm.wasm_bindgen__convert__closures_____invoke__hd3aacab65926a4bc(arg0, arg1); } -function __wbg_adapter_77(arg0, arg1, arg2) { - wasm.closure1299_externref_shim(arg0, arg1, arg2); +function __wbg_adapter_24(arg0, arg1, arg2) { + wasm.closure1288_externref_shim(arg0, arg1, arg2); } -function __wbg_adapter_80(arg0, arg1, arg2) { +function __wbg_adapter_33(arg0, arg1, arg2) { wasm.closure1338_externref_shim(arg0, arg1, arg2); } -function __wbg_adapter_365(arg0, arg1, arg2, arg3) { - wasm.closure1360_externref_shim(arg0, arg1, arg2, arg3); +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); } const __wbindgen_enum_ReadableStreamType = ["bytes"]; @@ -307,6 +325,7 @@ export class IntoUnderlyingByteSource { wasm.intounderlyingbytesource_cancel(ptr); } } +if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnderlyingByteSource.prototype.free; const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined') ? { register: () => {}, unregister: () => {} } @@ -351,6 +370,7 @@ export class IntoUnderlyingSink { return ret; } } +if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyingSink.prototype.free; const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined') ? { register: () => {}, unregister: () => {} } @@ -382,6 +402,9 @@ export class IntoUnderlyingSource { wasm.intounderlyingsource_cancel(ptr); } } +if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free; + +const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']); async function __wbg_load(module, imports) { if (typeof Response === 'function' && module instanceof Response) { @@ -390,7 +413,9 @@ async function __wbg_load(module, imports) { return await WebAssembly.instantiateStreaming(module, imports); } catch (e) { - if (module.headers.get('Content-Type') != 'application/wasm') { + const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type); + + if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') { 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); } else { @@ -417,6 +442,14 @@ async function __wbg_load(module, imports) { function __wbg_get_imports() { const imports = {}; imports.wbg = {}; + imports.wbg.__wbg_Error_e17e777aac105295 = function(arg0, arg1) { + const ret = Error(getStringFromWasm0(arg0, arg1)); + return ret; + }; + imports.wbg.__wbg_Number_998bea33bd87c3e0 = function(arg0) { + const ret = Number(arg0); + return ret; + }; imports.wbg.__wbg_Split_396ed1f0bec74903 = function(arg0) { const ret = globalThis.Split(arg0); return ret; @@ -431,10 +464,10 @@ function __wbg_get_imports() { imports.wbg.__wbg_addCommand_86418b442c0a4ae0 = function(arg0, arg1) { arg0.addCommand(arg1); }; - imports.wbg.__wbg_addEventListener_90e553fdce254421 = function() { return handleError(function (arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_addEventListener_775911544ac9d643 = function() { return handleError(function (arg0, arg1, arg2, arg3) { arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3); }, arguments) }; - imports.wbg.__wbg_appendChild_8204974b7328bf98 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_appendChild_87a6cc0aeb132c06 = function() { return handleError(function (arg0, arg1) { const ret = arg0.appendChild(arg1); return ret; }, arguments) }; @@ -442,11 +475,11 @@ function __wbg_get_imports() { const ret = globalThis.FloatingUIDOM.arrow(arg0); return ret; }; - imports.wbg.__wbg_assign_3627b8559449930a = function(arg0, arg1) { + imports.wbg.__wbg_assign_66f7942767cba7e3 = function(arg0, arg1) { const ret = Object.assign(arg0, arg1); return ret; }; - imports.wbg.__wbg_attachShadow_a1dedb814fb75a6d = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_attachShadow_0c27a1de4378adb6 = function() { return handleError(function (arg0, arg1) { const ret = arg0.attachShadow(arg1); return ret; }, arguments) }; @@ -454,67 +487,63 @@ function __wbg_get_imports() { const ret = globalThis.FloatingUIDOM.autoUpdate(arg0, arg1, arg2, arg3); return ret; }; - imports.wbg.__wbg_body_942ea927546a04ba = function(arg0) { + imports.wbg.__wbg_body_8822ca55cb3730d2 = function(arg0) { const ret = arg0.body; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_buffer_09165b52af8c5237 = function(arg0) { + imports.wbg.__wbg_buffer_8d40b1d762fb3c66 = function(arg0) { const ret = arg0.buffer; return ret; }; - imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) { - const ret = arg0.buffer; - return ret; - }; - imports.wbg.__wbg_byobRequest_77d9adf63337edfb = function(arg0) { + imports.wbg.__wbg_byobRequest_2c036bceca1e6037 = function(arg0) { const ret = arg0.byobRequest; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_byteLength_e674b853d9c77e1d = function(arg0) { + imports.wbg.__wbg_byteLength_331a6b5545834024 = function(arg0) { const ret = arg0.byteLength; return ret; }; - imports.wbg.__wbg_byteOffset_fd862df290ef848d = function(arg0) { + imports.wbg.__wbg_byteOffset_49a5b5608000358b = function(arg0) { const ret = arg0.byteOffset; return ret; }; - imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) { const ret = arg0.call(arg1); return ret; }, arguments) }; - imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) { + imports.wbg.__wbg_call_a5400b25a865cfd8 = function() { return handleError(function (arg0, arg1, arg2) { const ret = arg0.call(arg1, arg2); return ret; }, arguments) }; - imports.wbg.__wbg_call_b8adc8b1d0a0d8eb = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { + imports.wbg.__wbg_call_f1fd202ba222e0ec = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { const ret = arg0.call(arg1, arg2, arg3, arg4); return ret; }, arguments) }; - imports.wbg.__wbg_cancelBubble_2e66f509cdea4d7e = function(arg0) { + imports.wbg.__wbg_cancelBubble_a4c48803e199b5e8 = function(arg0) { const ret = arg0.cancelBubble; return ret; }; imports.wbg.__wbg_clearSelection_26e0a970dc233cee = function(arg0) { arg0.clearSelection(); }; - imports.wbg.__wbg_click_c52d7bdb3b6dc9c3 = function(arg0) { + imports.wbg.__wbg_click_3802d54a0c97cc1f = function(arg0) { arg0.click(); }; - imports.wbg.__wbg_clipboard_93f8aa8cc426db44 = function(arg0) { + imports.wbg.__wbg_clipboard_f0744f8afeddc372 = function(arg0) { const ret = arg0.clipboard; return ret; }; - imports.wbg.__wbg_cloneNode_e35b333b87d51340 = function() { return handleError(function (arg0) { + imports.wbg.__wbg_cloneNode_79d46b18d5619863 = function() { return handleError(function (arg0) { const ret = arg0.cloneNode(); return ret; }, arguments) }; - imports.wbg.__wbg_close_304cc1fef3466669 = function() { return handleError(function (arg0) { + imports.wbg.__wbg_close_cccada6053ee3a65 = function() { return handleError(function (arg0) { arg0.close(); }, arguments) }; - imports.wbg.__wbg_close_5ce03e29be453811 = function() { return handleError(function (arg0) { + imports.wbg.__wbg_close_d71a78219dc23e91 = function() { return handleError(function (arg0) { arg0.close(); }, arguments) }; - imports.wbg.__wbg_composedPath_977ce97a0ef39358 = function(arg0) { + imports.wbg.__wbg_composedPath_e5b3f0b3e8415bb5 = function(arg0) { const ret = arg0.composedPath(); return ret; }; @@ -522,56 +551,56 @@ function __wbg_get_imports() { const ret = globalThis.FloatingUIDOM.computePosition(arg0, arg1, arg2); return ret; }; - imports.wbg.__wbg_contains_3361c7eda6c95afd = function(arg0, arg1) { + imports.wbg.__wbg_contains_d71a802f20288218 = function(arg0, arg1) { const ret = arg0.contains(arg1); return ret; }; - imports.wbg.__wbg_createComment_8b540d4b9d22f212 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_createComment_08abf524559fd4d7 = function(arg0, arg1, arg2) { const ret = arg0.createComment(getStringFromWasm0(arg1, arg2)); return ret; }; - imports.wbg.__wbg_createElementNS_914d752e521987da = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { + imports.wbg.__wbg_createElementNS_ffbb8bb20b2a7e4c = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { const ret = arg0.createElementNS(arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); return ret; }, arguments) }; - imports.wbg.__wbg_createElement_8c9931a732ee2fea = function() { return handleError(function (arg0, arg1, arg2) { + imports.wbg.__wbg_createElement_4909dfa2011f2abe = function() { return handleError(function (arg0, arg1, arg2) { const ret = arg0.createElement(getStringFromWasm0(arg1, arg2)); return ret; }, arguments) }; - imports.wbg.__wbg_createObjectURL_6e98d2f9c7bd9764 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_createObjectURL_c80225986d2b928b = function() { return handleError(function (arg0, arg1) { const ret = URL.createObjectURL(arg1); const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }, arguments) }; - imports.wbg.__wbg_createTextNode_42af1a9f21bb3360 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_createTextNode_c71a51271fadf515 = function(arg0, arg1, arg2) { const ret = arg0.createTextNode(getStringFromWasm0(arg1, arg2)); return ret; }; - imports.wbg.__wbg_data_432d9c3df2630942 = function(arg0) { + imports.wbg.__wbg_data_9ab529722bcc4e6c = function(arg0) { const ret = arg0.data; return ret; }; - imports.wbg.__wbg_debug_3cb59063b29f58c1 = function(arg0) { + imports.wbg.__wbg_debug_c906769d2f88c17b = function(arg0) { console.debug(arg0); }; - imports.wbg.__wbg_deleteProperty_96363d4a1d977c97 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_deleteProperty_5fe99f4fd0f66ebe = function() { return handleError(function (arg0, arg1) { const ret = Reflect.deleteProperty(arg0, arg1); return ret; }, arguments) }; imports.wbg.__wbg_destroy_aabed702274413e3 = function(arg0) { arg0.destroy(); }; - imports.wbg.__wbg_documentElement_197a88c262a0aa27 = function(arg0) { + imports.wbg.__wbg_documentElement_c05bfb3e7a95df41 = function(arg0) { const ret = arg0.documentElement; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_document_d249400bd7bd996d = function(arg0) { + imports.wbg.__wbg_document_7d29d139bd619045 = function(arg0) { const ret = arg0.document; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) { + imports.wbg.__wbg_done_75ed0ee6dd243d9d = function(arg0) { const ret = arg0.done; return ret; }; @@ -579,20 +608,13 @@ function __wbg_get_imports() { const ret = ace.edit(getStringFromWasm0(arg0, arg1), arg2); return ret; }, arguments) }; - imports.wbg.__wbg_enqueue_bb16ba72f537dc9e = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_enqueue_452bc2343d1c2ff9 = function() { return handleError(function (arg0, arg1) { arg0.enqueue(arg1); }, arguments) }; - imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) { + imports.wbg.__wbg_entries_2be2f15bd5554996 = function(arg0) { const ret = Object.entries(arg0); return ret; }; - imports.wbg.__wbg_error_43150119f3d89bd1 = function(arg0) { - const ret = arg0.error; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_error_524f506f44df1645 = function(arg0) { - console.error(arg0); - }; imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) { let deferred0_0; let deferred0_1; @@ -604,7 +626,14 @@ function __wbg_get_imports() { wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); } }; - imports.wbg.__wbg_files_790cda07a2445fac = function(arg0) { + imports.wbg.__wbg_error_99981e16d476aa5c = function(arg0) { + console.error(arg0); + }; + imports.wbg.__wbg_error_b0cf27239320537b = function(arg0) { + const ret = arg0.error; + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_files_975eaf418e2b9d1c = function(arg0) { const ret = arg0.files; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; @@ -626,62 +655,62 @@ function __wbg_get_imports() { getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }; - imports.wbg.__wbg_get_24e8b896c76d41fa = function(arg0, arg1, arg2, arg3) { - const ret = arg1.get(getStringFromWasm0(arg2, arg3)); - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); + imports.wbg.__wbg_get_08204360fb7fab01 = function(arg0, arg1) { + const ret = arg0[arg1 >>> 0]; + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) { - const ret = Reflect.get(arg0, arg1); + imports.wbg.__wbg_get_0da715ceaecea5c8 = function(arg0, arg1) { + const ret = arg0[arg1 >>> 0]; return ret; - }, arguments) }; - imports.wbg.__wbg_get_79e1d7592116244e = function() { return handleError(function (arg0, arg1, arg2, arg3) { + }; + imports.wbg.__wbg_get_1613292feb1bfd12 = function() { return handleError(function (arg0, arg1, arg2, arg3) { const ret = arg1[getStringFromWasm0(arg2, arg3)]; var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len1 = WASM_VECTOR_LEN; getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }, arguments) }; - imports.wbg.__wbg_get_8edd839202d9f4db = function(arg0, arg1) { - const ret = arg0[arg1 >>> 0]; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) { - const ret = arg0[arg1 >>> 0]; + imports.wbg.__wbg_get_458e874b43b18b25 = function() { return handleError(function (arg0, arg1) { + const ret = Reflect.get(arg0, arg1); return ret; + }, arguments) }; + imports.wbg.__wbg_get_849a78e674f7432d = function(arg0, arg1, arg2, arg3) { + const ret = arg1.get(getStringFromWasm0(arg2, arg3)); + var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); + getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }; imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) { const ret = arg0[arg1]; return ret; }; - imports.wbg.__wbg_host_166cb082dae71d08 = function(arg0) { + imports.wbg.__wbg_host_484d55073e076054 = function(arg0) { const ret = arg0.host; return ret; }; - imports.wbg.__wbg_href_87d60a783a012377 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_href_65a798194bf5ead5 = function() { return handleError(function (arg0, arg1) { const ret = arg1.href; const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }, arguments) }; - imports.wbg.__wbg_href_e36b397abf414828 = function(arg0, arg1) { + imports.wbg.__wbg_href_dab6f580433bc68a = function(arg0, arg1) { const ret = arg1.href; const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }; - imports.wbg.__wbg_info_3daf2e093e091b66 = function(arg0) { + imports.wbg.__wbg_info_6cf68c1a86a92f6a = function(arg0) { console.info(arg0); }; - imports.wbg.__wbg_insertBefore_c181fb91844cd959 = function() { return handleError(function (arg0, arg1, arg2) { + imports.wbg.__wbg_insertBefore_30228206e8f1d3fb = function() { return handleError(function (arg0, arg1, arg2) { const ret = arg0.insertBefore(arg1, arg2); return ret; }, arguments) }; - imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) { + imports.wbg.__wbg_instanceof_ArrayBuffer_67f3012529f6a2dd = function(arg0) { let result; try { result = arg0 instanceof ArrayBuffer; @@ -691,7 +720,7 @@ function __wbg_get_imports() { const ret = result; return ret; }; - imports.wbg.__wbg_instanceof_Element_0af65443936d5154 = function(arg0) { + imports.wbg.__wbg_instanceof_Element_162e4334c7d6f450 = function(arg0) { let result; try { result = arg0 instanceof Element; @@ -701,7 +730,7 @@ function __wbg_get_imports() { const ret = result; return ret; }; - imports.wbg.__wbg_instanceof_HtmlAnchorElement_1ff926b551076f86 = function(arg0) { + imports.wbg.__wbg_instanceof_HtmlAnchorElement_3e68e5f48071c336 = function(arg0) { let result; try { result = arg0 instanceof HTMLAnchorElement; @@ -711,7 +740,7 @@ function __wbg_get_imports() { const ret = result; return ret; }; - imports.wbg.__wbg_instanceof_Node_fbc6b87f5ed2e230 = function(arg0) { + imports.wbg.__wbg_instanceof_Node_17373399b6647f60 = function(arg0) { let result; try { result = arg0 instanceof Node; @@ -721,7 +750,7 @@ function __wbg_get_imports() { const ret = result; return ret; }; - imports.wbg.__wbg_instanceof_ShadowRoot_726578bcd7fa418a = function(arg0) { + imports.wbg.__wbg_instanceof_ShadowRoot_f3723967133597a3 = function(arg0) { let result; try { result = arg0 instanceof ShadowRoot; @@ -731,7 +760,7 @@ function __wbg_get_imports() { const ret = result; return ret; }; - imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) { + imports.wbg.__wbg_instanceof_Uint8Array_9a8378d955933db7 = function(arg0) { let result; try { result = arg0 instanceof Uint8Array; @@ -741,7 +770,7 @@ function __wbg_get_imports() { const ret = result; return ret; }; - imports.wbg.__wbg_instanceof_Window_def73ea0955fc569 = function(arg0) { + imports.wbg.__wbg_instanceof_Window_12d20d558ef92592 = function(arg0) { let result; try { result = arg0 instanceof Window; @@ -751,90 +780,98 @@ function __wbg_get_imports() { const ret = result; return ret; }; - imports.wbg.__wbg_isArray_a1eab7e0d067391b = function(arg0) { + imports.wbg.__wbg_isArray_030cce220591fb41 = function(arg0) { const ret = Array.isArray(arg0); return ret; }; - imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) { + imports.wbg.__wbg_isSafeInteger_1c0d1af5542e102a = function(arg0) { const ret = Number.isSafeInteger(arg0); return ret; }; - imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() { + imports.wbg.__wbg_iterator_f370b34483c71a1c = function() { const ret = Symbol.iterator; return ret; }; - imports.wbg.__wbg_key_7b5c6cb539be8e13 = function(arg0, arg1) { + imports.wbg.__wbg_key_caac8fafdd6d5317 = function(arg0, arg1) { const ret = arg1.key; const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }; - imports.wbg.__wbg_lengthComputable_164a410a70ea9e3d = function(arg0) { + imports.wbg.__wbg_lengthComputable_26113b16f8a081a1 = function(arg0) { const ret = arg0.lengthComputable; return ret; }; - imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) { + imports.wbg.__wbg_length_186546c51cd61acd = function(arg0) { const ret = arg0.length; return ret; }; - imports.wbg.__wbg_length_cfc862ec0ccc7ca0 = function(arg0) { + imports.wbg.__wbg_length_6bb7e81f9d7713e4 = function(arg0) { const ret = arg0.length; return ret; }; - imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) { + imports.wbg.__wbg_length_c6bc4b25c23a7062 = function(arg0) { const ret = arg0.length; return ret; }; - imports.wbg.__wbg_loaded_d9405d9dd8e0a7e9 = function(arg0) { + imports.wbg.__wbg_loaded_f56548c8804db859 = function(arg0) { const ret = arg0.loaded; return ret; }; - imports.wbg.__wbg_localStorage_1406c99c39728187 = function() { return handleError(function (arg0) { + imports.wbg.__wbg_localStorage_9330af8bf39365ba = function() { return handleError(function (arg0) { const ret = arg0.localStorage; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }, arguments) }; - imports.wbg.__wbg_location_350d99456c2f3693 = function(arg0) { + imports.wbg.__wbg_location_92d89c32ae076cab = function(arg0) { const ret = arg0.location; return ret; }; - imports.wbg.__wbg_log_c222819a41e063d3 = function(arg0) { + imports.wbg.__wbg_log_6c7b5f4f00b8ce3f = function(arg0) { console.log(arg0); }; - imports.wbg.__wbg_matchMedia_bf8807a841d930c1 = function() { return handleError(function (arg0, arg1, arg2) { + imports.wbg.__wbg_matchMedia_19600e31a5612b23 = function() { return handleError(function (arg0, arg1, arg2) { const ret = arg0.matchMedia(getStringFromWasm0(arg1, arg2)); return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }, arguments) }; - imports.wbg.__wbg_matches_e9ca73fbf8a3a104 = function(arg0) { + imports.wbg.__wbg_matches_12ebc1caa30f1e42 = function(arg0) { const ret = arg0.matches; return ret; }; - imports.wbg.__wbg_message_5c5d919204d42400 = function(arg0, arg1) { + imports.wbg.__wbg_message_5481231e71ccaf7b = function(arg0, arg1) { const ret = arg1.message; const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }; - imports.wbg.__wbg_name_28c43f147574bf08 = function(arg0, arg1) { + imports.wbg.__wbg_name_42b465b8043f111e = function(arg0, arg1) { const ret = arg1.name; const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }; - imports.wbg.__wbg_navigator_1577371c070c8947 = function(arg0) { + imports.wbg.__wbg_navigator_65d5ad763926b868 = function(arg0) { const ret = arg0.navigator; return ret; }; - imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) { + imports.wbg.__wbg_new_19c25a3f2fa63a02 = function() { + const ret = new Object(); + return ret; + }; + imports.wbg.__wbg_new_1f3a344cf3123716 = function() { + const ret = new Array(); + return ret; + }; + imports.wbg.__wbg_new_2e3c58a15f39f5f9 = function(arg0, arg1) { try { var state0 = {a: arg0, b: arg1}; var cb0 = (arg0, arg1) => { const a = state0.a; state0.a = 0; try { - return __wbg_adapter_365(a, state0.b, arg0, arg1); + return __wbg_adapter_325(a, state0.b, arg0, arg1); } finally { state0.a = a; } @@ -845,63 +882,55 @@ function __wbg_get_imports() { state0.a = state0.b = 0; } }; - imports.wbg.__wbg_new_405e22f390576ce2 = function() { - const ret = new Object(); + imports.wbg.__wbg_new_638ebfaedbf32a5e = function(arg0) { + const ret = new Uint8Array(arg0); return ret; }; - imports.wbg.__wbg_new_46e8134c3341d05a = function() { return handleError(function () { - const ret = new FileReader(); - return ret; - }, arguments) }; - imports.wbg.__wbg_new_78feb108b6472713 = function() { - const ret = new Array(); - return ret; - }; - imports.wbg.__wbg_new_80bf4ee74f41ff92 = function() { return handleError(function () { - const ret = new URLSearchParams(); - return ret; - }, arguments) }; imports.wbg.__wbg_new_8a6f238a6ece86ea = function() { const ret = new Error(); return ret; }; - imports.wbg.__wbg_new_9ffbe0a71eff35e3 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_new_95e31b8bc5de31d6 = function() { return handleError(function (arg0, arg1) { const ret = new URL(getStringFromWasm0(arg0, arg1)); return ret; }, arguments) }; - imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) { - const ret = new Uint8Array(arg0); + imports.wbg.__wbg_new_bd4cca60314f67a3 = function() { return handleError(function () { + const ret = new FileReader(); return ret; - }; - imports.wbg.__wbg_new_c68d7209be747379 = function(arg0, arg1) { + }, arguments) }; + imports.wbg.__wbg_new_da9dc54c5db29dfa = function(arg0, arg1) { const ret = new Error(getStringFromWasm0(arg0, arg1)); return ret; }; - imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) { + imports.wbg.__wbg_new_e8b27dfd3785875f = function() { return handleError(function () { + const ret = new URLSearchParams(); + return ret; + }, arguments) }; + imports.wbg.__wbg_newnoargs_254190557c45b4ec = function(arg0, arg1) { const ret = new Function(getStringFromWasm0(arg0, arg1)); return ret; }; - imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) { + imports.wbg.__wbg_newwithbyteoffsetandlength_e8f53910b4d42b45 = function(arg0, arg1, arg2) { const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0); return ret; }; - imports.wbg.__wbg_newwithoptions_0419cac3977d7f7f = function() { return handleError(function (arg0, arg1, arg2) { + imports.wbg.__wbg_newwithoptions_4fd7ce7655102e6f = function() { return handleError(function (arg0, arg1, arg2) { const ret = new Worker(getStringFromWasm0(arg0, arg1), arg2); return ret; }, arguments) }; - imports.wbg.__wbg_newwithstr_e55017f371f42aa6 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_newwithstr_4263ed8cec6e130a = function() { return handleError(function (arg0, arg1) { const ret = new URLSearchParams(getStringFromWasm0(arg0, arg1)); return ret; }, arguments) }; - imports.wbg.__wbg_newwithu8arraysequence_1e24f242a67f6fdd = function() { return handleError(function (arg0) { + imports.wbg.__wbg_newwithu8arraysequence_80b7f1912b2e348c = function() { return handleError(function (arg0) { const ret = new Blob(arg0); return ret; }, arguments) }; - imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) { + imports.wbg.__wbg_next_5b3530e612fde77d = function(arg0) { const ret = arg0.next; return ret; }; - imports.wbg.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) { + imports.wbg.__wbg_next_692e82279131b03c = function() { return handleError(function (arg0) { const ret = arg0.next(); return ret; }, arguments) }; @@ -909,83 +938,86 @@ function __wbg_get_imports() { const ret = globalThis.FloatingUIDOM.offset(arg0); return ret; }; - imports.wbg.__wbg_onchange_6bdd6647487c8d33 = function(arg0) { + imports.wbg.__wbg_onchange_032756b25129c6de = function(arg0) { const ret = arg0.onchange; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_parentNode_9de97a0e7973ea4e = function(arg0) { + imports.wbg.__wbg_parentNode_cc820baee7401ca3 = function(arg0) { const ret = arg0.parentNode; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_postMessage_6edafa8f7b9c2f52 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_postMessage_50e57097ede408b9 = function() { return handleError(function (arg0, arg1) { arg0.postMessage(arg1); }, arguments) }; - imports.wbg.__wbg_push_737cfc8c1432c2c6 = function(arg0, arg1) { + imports.wbg.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) { + Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2); + }; + imports.wbg.__wbg_push_330b2eb93e4e1212 = function(arg0, arg1) { const ret = arg0.push(arg1); return ret; }; - imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) { + imports.wbg.__wbg_queueMicrotask_25d0739ac89e8c88 = function(arg0) { queueMicrotask(arg0); }; - imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) { + imports.wbg.__wbg_queueMicrotask_4488407636f5bf24 = function(arg0) { const ret = arg0.queueMicrotask; return ret; }; - imports.wbg.__wbg_readAsArrayBuffer_e51cb3c4fcc962de = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_readAsArrayBuffer_a9f65e0c524f16a0 = function() { return handleError(function (arg0, arg1) { arg0.readAsArrayBuffer(arg1); }, arguments) }; - imports.wbg.__wbg_removeAttribute_e419cd6726b4c62f = function() { return handleError(function (arg0, arg1, arg2) { + imports.wbg.__wbg_removeAttribute_cf35412842be6ae4 = function() { return handleError(function (arg0, arg1, arg2) { arg0.removeAttribute(getStringFromWasm0(arg1, arg2)); }, arguments) }; - imports.wbg.__wbg_removeChild_841bf1dc802c0a2c = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_removeChild_1c094e96ff042c2d = function() { return handleError(function (arg0, arg1) { const ret = arg0.removeChild(arg1); return ret; }, arguments) }; - imports.wbg.__wbg_removeEventListener_056dfe8c3d6c58f9 = function() { return handleError(function (arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_removeEventListener_6d5be9c2821a511e = function() { return handleError(function (arg0, arg1, arg2, arg3) { arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3); }, arguments) }; - imports.wbg.__wbg_removeProperty_0e85471f4dfc00ae = function() { return handleError(function (arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_removeProperty_8912427f4d0f6361 = function() { return handleError(function (arg0, arg1, arg2, arg3) { const ret = arg1.removeProperty(getStringFromWasm0(arg2, arg3)); const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }, arguments) }; - imports.wbg.__wbg_remove_e2d2659f3128c045 = function(arg0) { + imports.wbg.__wbg_remove_0cd5aff2ca3eb753 = function(arg0) { arg0.remove(); }; - imports.wbg.__wbg_remove_efb062ab554e1fbd = function(arg0) { + imports.wbg.__wbg_remove_fec7bce376b31b32 = function(arg0) { arg0.remove(); }; imports.wbg.__wbg_require_d5530344dea59ee4 = function() { return handleError(function (arg0, arg1) { const ret = ace.require(getStringFromWasm0(arg0, arg1)); return ret; }, arguments) }; - imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) { + imports.wbg.__wbg_resolve_4055c623acdd6a1b = function(arg0) { const ret = Promise.resolve(arg0); return ret; }; - imports.wbg.__wbg_respond_1f279fa9f8edcb1c = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_respond_6c2c4e20ef85138e = function() { return handleError(function (arg0, arg1) { arg0.respond(arg1 >>> 0); }, arguments) }; - imports.wbg.__wbg_result_dadbdcc801180072 = function() { return handleError(function (arg0) { + imports.wbg.__wbg_result_f3b8657ddb4b49e7 = function() { return handleError(function (arg0) { const ret = arg0.result; return ret; }, arguments) }; - imports.wbg.__wbg_revokeObjectURL_27267efebeb457c7 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_revokeObjectURL_651b859c81bf1af0 = function() { return handleError(function (arg0, arg1) { URL.revokeObjectURL(getStringFromWasm0(arg0, arg1)); }, arguments) }; - imports.wbg.__wbg_search_c1c3bfbeadd96c47 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_search_73c5c4925b506661 = function() { return handleError(function (arg0, arg1) { const ret = arg1.search; const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }, arguments) }; - imports.wbg.__wbg_setAttribute_2704501201f15687 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { + imports.wbg.__wbg_setAttribute_d1baf9023ad5696f = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { arg0.setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); }, arguments) }; - imports.wbg.__wbg_setItem_212ecc915942ab0a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { + imports.wbg.__wbg_setItem_7add5eb06a28b38f = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { arg0.setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); }, arguments) }; imports.wbg.__wbg_setKeyboardHandler_564952d0734682bf = function() { return handleError(function (arg0, arg1) { @@ -994,7 +1026,7 @@ function __wbg_get_imports() { imports.wbg.__wbg_setTheme_cf647dec06f82fcb = function() { return handleError(function (arg0, arg1, arg2) { arg0.setTheme(getStringFromWasm0(arg1, arg2)); }, arguments) }; - imports.wbg.__wbg_setTimeout_f2fe5af8e3debeb3 = function() { return handleError(function (arg0, arg1, arg2) { + imports.wbg.__wbg_setTimeout_2966518f28aef92e = function() { return handleError(function (arg0, arg1, arg2) { const ret = arg0.setTimeout(arg1, arg2); return ret; }, arguments) }; @@ -1009,59 +1041,59 @@ function __wbg_get_imports() { wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); } }; - imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) { - arg0[arg1 >>> 0] = arg2; + imports.wbg.__wbg_set_01960cc21fa3b716 = function(arg0, arg1, arg2, arg3, arg4) { + arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); + }; + imports.wbg.__wbg_set_1353b2a5e96bc48c = function(arg0, arg1, arg2) { + arg0.set(getArrayU8FromWasm0(arg1, arg2)); }; imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) { arg0[arg1] = arg2; }; - imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) { - arg0.set(arg1, arg2 >>> 0); - }; - imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() { return handleError(function (arg0, arg1, arg2) { + imports.wbg.__wbg_set_453345bcda80b89a = function() { return handleError(function (arg0, arg1, arg2) { const ret = Reflect.set(arg0, arg1, arg2); return ret; }, arguments) }; - imports.wbg.__wbg_set_d254161c469cf8d7 = function(arg0, arg1, arg2, arg3, arg4) { - arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); + imports.wbg.__wbg_set_90f6c0f7bd8c0415 = function(arg0, arg1, arg2) { + arg0[arg1 >>> 0] = arg2; }; - imports.wbg.__wbg_setclassName_6bdd0705e646d028 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_setclassName_c8bccad917b973f4 = function(arg0, arg1, arg2) { arg0.className = getStringFromWasm0(arg1, arg2); }; - imports.wbg.__wbg_setdownload_2af133b91eb04665 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_setdownload_15578132eb1a96db = function(arg0, arg1, arg2) { arg0.download = getStringFromWasm0(arg1, arg2); }; - imports.wbg.__wbg_sethref_5d8095525d8737d4 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_sethref_8fa0a64ba2829ab3 = function(arg0, arg1, arg2) { arg0.href = getStringFromWasm0(arg1, arg2); }; - imports.wbg.__wbg_setmode_7ac588c6f73c590c = function(arg0, arg1) { + imports.wbg.__wbg_setmode_95b596ac8e867369 = function(arg0, arg1) { arg0.mode = __wbindgen_enum_ShadowRootMode[arg1]; }; - imports.wbg.__wbg_setnodeValue_58cb1b2f6b6c33d2 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_setnodeValue_629799145cb84fd8 = function(arg0, arg1, arg2) { arg0.nodeValue = arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2); }; - imports.wbg.__wbg_setonchange_7e6339de96a11c7f = function(arg0, arg1) { + imports.wbg.__wbg_setonchange_f75452ea8c59acb1 = function(arg0, arg1) { arg0.onchange = arg1; }; - imports.wbg.__wbg_setonerror_578ff66d3363c119 = function(arg0, arg1) { + imports.wbg.__wbg_setonerror_8ba91af1a63fd378 = function(arg0, arg1) { arg0.onerror = arg1; }; - imports.wbg.__wbg_setonload_1302417ca59f658b = function(arg0, arg1) { + imports.wbg.__wbg_setonload_d46edf64d5803ccb = function(arg0, arg1) { arg0.onload = arg1; }; - imports.wbg.__wbg_setonmessage_5a885b16bdc6dca6 = function(arg0, arg1) { + imports.wbg.__wbg_setonmessage_c943f7891405ab22 = function(arg0, arg1) { arg0.onmessage = arg1; }; - imports.wbg.__wbg_setonprogress_834fc431b3d38617 = function(arg0, arg1) { + imports.wbg.__wbg_setonprogress_9464e0d93e8d8b48 = function(arg0, arg1) { arg0.onprogress = arg1; }; - imports.wbg.__wbg_setsearch_609451e9e712f3c6 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_setsearch_fbee2174e0389ccd = function(arg0, arg1, arg2) { arg0.search = getStringFromWasm0(arg1, arg2); }; - imports.wbg.__wbg_settype_47fae7d6c82625e7 = function(arg0, arg1) { + imports.wbg.__wbg_settype_3dc790721d11b6f5 = function(arg0, arg1) { arg0.type = __wbindgen_enum_WorkerType[arg1]; }; - imports.wbg.__wbg_setvalue_6ad9ef6c692ea746 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_setvalue_4c91a711c0108335 = function(arg0, arg1, arg2) { arg0.value = getStringFromWasm0(arg1, arg2); }; imports.wbg.__wbg_shift_6c1346a806f7a644 = function() { @@ -1075,88 +1107,76 @@ function __wbg_get_imports() { getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }; - imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() { + imports.wbg.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function() { const ret = typeof global === 'undefined' ? null : global; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() { + imports.wbg.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function() { const ret = typeof globalThis === 'undefined' ? null : globalThis; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() { + imports.wbg.__wbg_static_accessor_SELF_995b214ae681ff99 = function() { const ret = typeof self === 'undefined' ? null : self; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() { + imports.wbg.__wbg_static_accessor_WINDOW_cde3890479c675ea = function() { const ret = typeof window === 'undefined' ? null : window; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_style_fb30c14e5815805c = function(arg0) { + imports.wbg.__wbg_style_32a3c8393b46a115 = function(arg0) { const ret = arg0.style; return ret; }; - imports.wbg.__wbg_target_0a62d9d79a2a1ede = function(arg0) { + imports.wbg.__wbg_target_f2c963b447be6283 = function(arg0) { const ret = arg0.target; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) { - const ret = arg0.then(arg1); - return ret; - }; - imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_then_b33a773d723afa3e = function(arg0, arg1, arg2) { const ret = arg0.then(arg1, arg2); return ret; }; - imports.wbg.__wbg_toString_5285597960676b7b = function(arg0) { + imports.wbg.__wbg_then_e22500defe16819f = function(arg0, arg1) { + const ret = arg0.then(arg1); + return ret; + }; + imports.wbg.__wbg_toString_78df35411a4fd40c = function(arg0) { const ret = arg0.toString(); return ret; }; - imports.wbg.__wbg_total_6b37f71b88746ef4 = function(arg0) { + imports.wbg.__wbg_total_5bf7bd9d5e83ad4d = function(arg0) { const ret = arg0.total; return ret; }; - imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) { - const ret = arg0.value; - return ret; - }; - imports.wbg.__wbg_value_d2c3b815cdf98d46 = function(arg0, arg1) { + imports.wbg.__wbg_value_89377c01d73b6102 = function(arg0, arg1) { const ret = arg1.value; const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }; - imports.wbg.__wbg_view_fd8a56e8983f448d = function(arg0) { + imports.wbg.__wbg_value_dd9372230531eade = function(arg0) { + const ret = arg0.value; + return ret; + }; + imports.wbg.__wbg_view_91cc97d57ab30530 = function(arg0) { const ret = arg0.view; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_warn_4ca3906c248c47c4 = function(arg0) { + imports.wbg.__wbg_warn_e2ada06313f92f09 = function(arg0) { console.warn(arg0); }; - imports.wbg.__wbg_writeText_51c338e8ae4b85b9 = function(arg0, arg1, arg2) { - const ret = arg0.writeText(getStringFromWasm0(arg1, arg2)); - return ret; - }; - imports.wbg.__wbindgen_as_number = function(arg0) { - const ret = +arg0; - return ret; - }; - imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) { - const ret = BigInt.asUintN(64, arg0); - return ret; - }; - imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) { + imports.wbg.__wbg_wbindgenbigintgetasi64_ac743ece6ab9bba1 = function(arg0, arg1) { const v = arg1; const ret = typeof(v) === 'bigint' ? v : undefined; getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true); getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true); }; - imports.wbg.__wbindgen_boolean_get = function(arg0) { + imports.wbg.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function(arg0) { const v = arg0; - const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2; - return ret; + const ret = typeof(v) === 'boolean' ? v : undefined; + return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0; }; - imports.wbg.__wbindgen_cb_drop = function(arg0) { + imports.wbg.__wbg_wbindgencbdrop_eb10308566512b88 = function(arg0) { const obj = arg0.original; if (obj.cnt-- == 1) { obj.a = 0; @@ -1165,63 +1185,143 @@ function __wbg_get_imports() { const ret = false; return ret; }; - imports.wbg.__wbindgen_closure_wrapper2047 = function(arg0, arg1, arg2) { - const ret = makeClosure(arg0, arg1, 1089, __wbg_adapter_54); - return ret; - }; - imports.wbg.__wbindgen_closure_wrapper2048 = function(arg0, arg1, arg2) { - const ret = makeClosure(arg0, arg1, 1089, __wbg_adapter_54); - return ret; - }; - imports.wbg.__wbindgen_closure_wrapper2049 = function(arg0, arg1, arg2) { - const ret = makeClosure(arg0, arg1, 1089, __wbg_adapter_54); - return ret; - }; - imports.wbg.__wbindgen_closure_wrapper2050 = function(arg0, arg1, arg2) { - const ret = makeClosure(arg0, arg1, 1089, __wbg_adapter_54); - return ret; - }; - imports.wbg.__wbindgen_closure_wrapper2054 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1089, __wbg_adapter_63); - return ret; - }; - imports.wbg.__wbindgen_closure_wrapper2056 = function(arg0, arg1, arg2) { - const ret = makeClosure(arg0, arg1, 1089, __wbg_adapter_54); - return ret; - }; - imports.wbg.__wbindgen_closure_wrapper2425 = function(arg0, arg1, arg2) { - const ret = makeClosure(arg0, arg1, 1266, __wbg_adapter_68); - return ret; - }; - imports.wbg.__wbindgen_closure_wrapper2490 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1276, __wbg_adapter_71); - return ret; - }; - imports.wbg.__wbindgen_closure_wrapper2492 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1276, __wbg_adapter_74); - return ret; - }; - imports.wbg.__wbindgen_closure_wrapper2602 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1300, __wbg_adapter_77); - return ret; - }; - imports.wbg.__wbindgen_closure_wrapper4257 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1339, __wbg_adapter_80); - return ret; - }; - imports.wbg.__wbindgen_debug_string = function(arg0, arg1) { + imports.wbg.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) { const ret = debugString(arg1); const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }; - imports.wbg.__wbindgen_error_new = function(arg0, arg1) { - const ret = new Error(getStringFromWasm0(arg0, arg1)); + imports.wbg.__wbg_wbindgenin_d7a1ee10933d2d55 = function(arg0, arg1) { + const ret = arg0 in arg1; return ret; }; - imports.wbg.__wbindgen_in = function(arg0, arg1) { - const ret = arg0 in arg1; + imports.wbg.__wbg_wbindgenisbigint_ecb90cc08a5a9154 = function(arg0) { + const ret = typeof(arg0) === 'bigint'; + return ret; + }; + imports.wbg.__wbg_wbindgenisfalsy_03f4059e2ea4ee87 = function(arg0) { + const ret = !arg0; + return ret; + }; + imports.wbg.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) { + const ret = typeof(arg0) === 'function'; + return ret; + }; + imports.wbg.__wbg_wbindgenisnull_f3037694abe4d97a = function(arg0) { + const ret = arg0 === null; + return ret; + }; + imports.wbg.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) { + const val = arg0; + const ret = typeof(val) === 'object' && val !== null; + return ret; + }; + imports.wbg.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) { + const ret = typeof(arg0) === 'string'; + return ret; + }; + imports.wbg.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function(arg0) { + const ret = arg0 === undefined; + return ret; + }; + imports.wbg.__wbg_wbindgenjsvaleq_e6f2ad59ccae1b58 = function(arg0, arg1) { + const ret = arg0 === arg1; + return ret; + }; + imports.wbg.__wbg_wbindgenjsvallooseeq_9bec8c9be826bed1 = function(arg0, arg1) { + const ret = arg0 == arg1; + return ret; + }; + imports.wbg.__wbg_wbindgennumberget_f74b4c7525ac05cb = function(arg0, arg1) { + const obj = arg1; + const ret = typeof(obj) === 'number' ? obj : undefined; + getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true); + getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true); + }; + imports.wbg.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) { + const obj = arg1; + const ret = typeof(obj) === 'string' ? obj : undefined; + var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); + getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); + }; + imports.wbg.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) { + throw new Error(getStringFromWasm0(arg0, arg1)); + }; + imports.wbg.__wbg_writeText_2322f8ec37090e3d = function(arg0, arg1, arg2) { + 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_21); + return ret; + }; + imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) { + // Cast intrinsic for `Ref(String) -> Externref`. + 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); + return ret; + }; + imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) { + // Cast intrinsic for `U64 -> Externref`. + 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_9); + 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_24); + 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_33); + 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_18); + return ret; + }; + imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) { + // Cast intrinsic for `F64 -> Externref`. + 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); + 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); return ret; }; imports.wbg.__wbindgen_init_externref_table = function() { @@ -1234,72 +1334,6 @@ function __wbg_get_imports() { table.set(offset + 3, false); ; }; - imports.wbg.__wbindgen_is_bigint = function(arg0) { - const ret = typeof(arg0) === 'bigint'; - return ret; - }; - imports.wbg.__wbindgen_is_falsy = function(arg0) { - const ret = !arg0; - return ret; - }; - imports.wbg.__wbindgen_is_function = function(arg0) { - const ret = typeof(arg0) === 'function'; - return ret; - }; - imports.wbg.__wbindgen_is_null = function(arg0) { - const ret = arg0 === null; - return ret; - }; - imports.wbg.__wbindgen_is_object = function(arg0) { - const val = arg0; - const ret = typeof(val) === 'object' && val !== null; - return ret; - }; - imports.wbg.__wbindgen_is_string = function(arg0) { - const ret = typeof(arg0) === 'string'; - return ret; - }; - imports.wbg.__wbindgen_is_undefined = function(arg0) { - const ret = arg0 === undefined; - return ret; - }; - imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) { - const ret = arg0 === arg1; - return ret; - }; - imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) { - const ret = arg0 == arg1; - return ret; - }; - imports.wbg.__wbindgen_memory = function() { - const ret = wasm.memory; - return ret; - }; - imports.wbg.__wbindgen_number_get = function(arg0, arg1) { - const obj = arg1; - const ret = typeof(obj) === 'number' ? obj : undefined; - getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true); - }; - imports.wbg.__wbindgen_number_new = function(arg0) { - const ret = arg0; - return ret; - }; - imports.wbg.__wbindgen_string_get = function(arg0, arg1) { - const obj = arg1; - const ret = typeof(obj) === 'string' ? obj : undefined; - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }; - imports.wbg.__wbindgen_string_new = function(arg0, arg1) { - const ret = getStringFromWasm0(arg0, arg1); - return ret; - }; - imports.wbg.__wbindgen_throw = function(arg0, arg1) { - throw new Error(getStringFromWasm0(arg0, arg1)); - }; return imports; } diff --git a/app-e23e3c178059bfed_bg.wasm b/app-e23e3c178059bfed_bg.wasm new file mode 100644 index 0000000..053ac11 Binary files /dev/null and b/app-e23e3c178059bfed_bg.wasm differ diff --git a/index.html b/index.html index 7b33de2..1840f24 100644 --- a/index.html +++ b/index.html @@ -55,8 +55,8 @@ - + diff --git a/snippets/wasm-array-cp-201e2a98f0e691f7/copy.min.js b/snippets/wasm-array-cp-201e2a98f0e691f7/copy.min.js deleted file mode 100644 index cf6416a..0000000 --- a/snippets/wasm-array-cp-201e2a98f0e691f7/copy.min.js +++ /dev/null @@ -1 +0,0 @@ -class t{static toI8Slice(t,r,e,a){new Int8Array(t.buffer,e,a).set(r,0)}static toI8Array(t,r,e,a){const s=new Int8Array(t.buffer,r,e);a.set(s,0)}static toI16Slice(t,r,e,a){new Int16Array(t.buffer,e,a).set(r,0)}static toI16Array(t,r,e,a){const s=new Int16Array(t.buffer,r,e);a.set(s,0)}static toI32Slice(t,r,e,a){new Int32Array(t.buffer,e,a).set(r,0)}static toI32Array(t,r,e,a){const s=new Int32Array(t.buffer,r,e);a.set(s,0)}static toU8Slice(t,r,e,a){new Uint8Array(t.buffer,e,a).set(r,0)}static toU8Array(t,r,e,a){const s=new Uint8Array(t.buffer,r,e);a.set(s,0)}static toU8CSlice(t,r,e,a){new Uint8ClampedArray(t.buffer,e,a).set(r,0)}static toU8CArray(t,r,e,a){const s=new Uint8ClampedArray(t.buffer,r,e);a.set(s,0)}static toU16Slice(t,r,e,a){new Uint16Array(t.buffer,e,a).set(r,0)}static toU16Array(t,r,e,a){const s=new Uint16Array(t.buffer,r,e);a.set(s,0)}static toU32Slice(t,r,e,a){new Uint32Array(t.buffer,e,a).set(r,0)}static toU32Array(t,r,e,a){const s=new Uint32Array(t.buffer,r,e);a.set(s,0)}static toF32Slice(t,r,e,a){new Float32Array(t.buffer,e,a).set(r,0)}static toF32Array(t,r,e,a){const s=new Float32Array(t.buffer,r,e);a.set(s,0)}static toF64Slice(t,r,e,a){new Float64Array(t.buffer,e,a).set(r,0)}static toF64Array(t,r,e,a){const s=new Float64Array(t.buffer,r,e);a.set(s,0)}static toBigInt64Slice(t,r,e,a){new BigInt64Array(t.buffer,e,a).set(r,0)}static toBigInt64Array(t,r,e,a){const s=new BigInt64Array(t.buffer,r,e);a.set(s,0)}static toBigUint64Slice(t,r,e,a){new BigUint64Array(t.buffer,e,a).set(r,0)}static toBigUint64Array(t,r,e,a){const s=new BigUint64Array(t.buffer,r,e);a.set(s,0)}}export{t as JSArrayBufferCopy}; diff --git a/sqlite3.js b/sqlite3.js index 47f3379..3a68550 100644 --- a/sqlite3.js +++ b/sqlite3.js @@ -1,7 +1,35 @@ -import { JSArrayBufferCopy } from './snippets/wasm-array-cp-201e2a98f0e691f7/copy.min.js'; - let wasm; +let cachedUint8ArrayMemory0 = null; + +function getUint8ArrayMemory0() { + if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) { + cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer); + } + return cachedUint8ArrayMemory0; +} + +let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); + +cachedTextDecoder.decode(); + +const MAX_SAFARI_DECODE_BYTES = 2146435072; +let numBytesDecoded = 0; +function decodeText(ptr, len) { + numBytesDecoded += len; + if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) { + cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); + cachedTextDecoder.decode(); + numBytesDecoded = len; + } + return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len)); +} + +function getStringFromWasm0(ptr, len) { + ptr = ptr >>> 0; + return decodeText(ptr, len); +} + function isLikeNone(x) { return x === undefined || x === null; } @@ -21,54 +49,25 @@ function handleError(f, args) { } } -const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } ); - -if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); }; - -let cachedUint8ArrayMemory0 = null; - -function getUint8ArrayMemory0() { - if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) { - cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer); - } - return cachedUint8ArrayMemory0; -} - -function getStringFromWasm0(ptr, len) { - ptr = ptr >>> 0; - return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len)); -} - function getArrayU8FromWasm0(ptr, len) { ptr = ptr >>> 0; return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); } -let cachedDataViewMemory0 = null; - -function getDataViewMemory0() { - if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) { - cachedDataViewMemory0 = new DataView(wasm.memory.buffer); - } - return cachedDataViewMemory0; -} - let WASM_VECTOR_LEN = 0; -const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } ); +const cachedTextEncoder = new TextEncoder(); -const encodeString = (typeof cachedTextEncoder.encodeInto === 'function' - ? function (arg, view) { - return cachedTextEncoder.encodeInto(arg, view); +if (!('encodeInto' in cachedTextEncoder)) { + cachedTextEncoder.encodeInto = function (arg, view) { + const buf = cachedTextEncoder.encode(arg); + view.set(buf); + return { + read: arg.length, + written: buf.length + }; + } } - : function (arg, view) { - const buf = cachedTextEncoder.encode(arg); - view.set(buf); - return { - read: arg.length, - written: buf.length - }; -}); function passStringToWasm0(arg, malloc, realloc) { @@ -99,7 +98,7 @@ function passStringToWasm0(arg, malloc, realloc) { } ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0; const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len); - const ret = encodeString(arg, view); + const ret = cachedTextEncoder.encodeInto(arg, view); offset += ret.written; ptr = realloc(ptr, len, offset, 1) >>> 0; @@ -109,57 +108,13 @@ function passStringToWasm0(arg, malloc, realloc) { return ptr; } -const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined') - ? { register: () => {}, unregister: () => {} } - : new FinalizationRegistry(state => { - wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b) -}); +let cachedDataViewMemory0 = null; -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) => { - // 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++; - const a = state.a; - state.a = 0; - try { - return f(a, state.b, ...args); - } finally { - if (--state.cnt === 0) { - wasm.__wbindgen_export_6.get(state.dtor)(a, state.b); - CLOSURE_DTORS.unregister(state); - } else { - state.a = a; - } - } - }; - real.original = state; - CLOSURE_DTORS.register(real, state, state); - return real; +function getDataViewMemory0() { + if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) { + cachedDataViewMemory0 = new DataView(wasm.memory.buffer); + } + return cachedDataViewMemory0; } function debugString(val) { @@ -226,16 +181,72 @@ function debugString(val) { // TODO we could test for more things here, like `Set`s and `Map`s. return className; } -function __wbg_adapter_44(arg0, arg1, arg2) { - wasm.closure78_externref_shim(arg0, arg1, arg2); + +const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined') + ? { register: () => {}, unregister: () => {} } + : new FinalizationRegistry( +state => { + wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b); +} +); + +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_47(arg0, arg1, arg2) { - wasm.closure696_externref_shim(arg0, arg1, arg2); +function makeMutClosure(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++; + const a = state.a; + state.a = 0; + try { + return f(a, state.b, ...args); + } finally { + if (--state.cnt === 0) { + wasm.__wbindgen_export_6.get(state.dtor)(a, state.b); + CLOSURE_DTORS.unregister(state); + } else { + state.a = a; + } + } + }; + real.original = state; + CLOSURE_DTORS.register(real, state, state); + return real; +} +function __wbg_adapter_6(arg0, arg1, arg2) { + wasm.closure694_externref_shim(arg0, arg1, arg2); } -function __wbg_adapter_228(arg0, arg1, arg2, arg3) { - wasm.closure718_externref_shim(arg0, arg1, arg2, arg3); +function __wbg_adapter_13(arg0, arg1, arg2) { + wasm.closure35_externref_shim(arg0, arg1, arg2); +} + +function __wbg_adapter_194(arg0, arg1, arg2, arg3) { + wasm.closure709_externref_shim(arg0, arg1, arg2, arg3); } const __wbindgen_enum_ReadableStreamType = ["bytes"]; @@ -290,6 +301,7 @@ export class IntoUnderlyingByteSource { wasm.intounderlyingbytesource_cancel(ptr); } } +if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnderlyingByteSource.prototype.free; const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined') ? { register: () => {}, unregister: () => {} } @@ -334,6 +346,7 @@ export class IntoUnderlyingSink { return ret; } } +if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyingSink.prototype.free; const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined') ? { register: () => {}, unregister: () => {} } @@ -365,6 +378,9 @@ export class IntoUnderlyingSource { wasm.intounderlyingsource_cancel(ptr); } } +if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free; + +const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']); async function __wbg_load(module, imports) { if (typeof Response === 'function' && module instanceof Response) { @@ -373,7 +389,9 @@ async function __wbg_load(module, imports) { return await WebAssembly.instantiateStreaming(module, imports); } catch (e) { - if (module.headers.get('Content-Type') != 'application/wasm') { + const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type); + + if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') { 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); } else { @@ -400,81 +418,82 @@ async function __wbg_load(module, imports) { function __wbg_get_imports() { const imports = {}; imports.wbg = {}; - imports.wbg.__wbg_add_883d9432f9188ef2 = function(arg0, arg1) { + imports.wbg.__wbg_Error_e17e777aac105295 = function(arg0, arg1) { + const ret = Error(getStringFromWasm0(arg0, arg1)); + return ret; + }; + imports.wbg.__wbg_Number_998bea33bd87c3e0 = function(arg0) { + 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_09165b52af8c5237 = function(arg0) { + imports.wbg.__wbg_buffer_8d40b1d762fb3c66 = function(arg0) { const ret = arg0.buffer; return ret; }; - imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) { - const ret = arg0.buffer; - return ret; - }; - imports.wbg.__wbg_byobRequest_77d9adf63337edfb = function(arg0) { + imports.wbg.__wbg_byobRequest_2c036bceca1e6037 = function(arg0) { const ret = arg0.byobRequest; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_byteLength_e674b853d9c77e1d = function(arg0) { + imports.wbg.__wbg_byteLength_331a6b5545834024 = function(arg0) { const ret = arg0.byteLength; return ret; }; - imports.wbg.__wbg_byteOffset_fd862df290ef848d = function(arg0) { + imports.wbg.__wbg_byteOffset_49a5b5608000358b = function(arg0) { const ret = arg0.byteOffset; return ret; }; - imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) { const ret = arg0.call(arg1); return ret; }, arguments) }; - imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) { + imports.wbg.__wbg_call_a5400b25a865cfd8 = function() { return handleError(function (arg0, arg1, arg2) { const ret = arg0.call(arg1, arg2); return ret; }, arguments) }; - imports.wbg.__wbg_close_304cc1fef3466669 = function() { return handleError(function (arg0) { + imports.wbg.__wbg_close_cccada6053ee3a65 = function() { return handleError(function (arg0) { arg0.close(); }, arguments) }; - imports.wbg.__wbg_close_5ce03e29be453811 = function() { return handleError(function (arg0) { + imports.wbg.__wbg_close_d71a78219dc23e91 = function() { return handleError(function (arg0) { arg0.close(); }, arguments) }; - imports.wbg.__wbg_createSyncAccessHandle_21c18bcd2a29fa13 = function(arg0) { + imports.wbg.__wbg_createSyncAccessHandle_d06aab2e41a339b2 = function(arg0) { const ret = arg0.createSyncAccessHandle(); return ret; }; - imports.wbg.__wbg_data_432d9c3df2630942 = function(arg0) { + imports.wbg.__wbg_data_9ab529722bcc4e6c = function(arg0) { const ret = arg0.data; return ret; }; - imports.wbg.__wbg_debug_3cb59063b29f58c1 = function(arg0) { + imports.wbg.__wbg_debug_c906769d2f88c17b = function(arg0) { console.debug(arg0); }; - imports.wbg.__wbg_delete_36c8630e530a2a1a = function(arg0, arg1) { + imports.wbg.__wbg_delete_34b4d9b89634f0c0 = function(arg0, arg1) { const ret = arg0.delete(arg1); return ret; }; - imports.wbg.__wbg_delete_d6860deb47204f3b = function(arg0, arg1) { + imports.wbg.__wbg_delete_ded22f5899363180 = function(arg0, arg1) { const ret = arg0.delete(arg1); return ret; }; - imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) { + imports.wbg.__wbg_done_75ed0ee6dd243d9d = function(arg0) { const ret = arg0.done; return ret; }; - imports.wbg.__wbg_enqueue_bb16ba72f537dc9e = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_enqueue_452bc2343d1c2ff9 = function() { return handleError(function (arg0, arg1) { arg0.enqueue(arg1); }, arguments) }; - imports.wbg.__wbg_entries_19efe296f7d36df9 = function(arg0) { + imports.wbg.__wbg_entries_1a3c3b9544532397 = function(arg0) { const ret = arg0.entries(); return ret; }; - imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) { + imports.wbg.__wbg_entries_2be2f15bd5554996 = function(arg0) { const ret = Object.entries(arg0); return ret; }; - imports.wbg.__wbg_error_524f506f44df1645 = function(arg0) { - console.error(arg0); - }; imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) { let deferred0_0; let deferred0_1; @@ -486,89 +505,89 @@ function __wbg_get_imports() { wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); } }; - imports.wbg.__wbg_fill_3311db9cdf18c6c4 = function(arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_error_99981e16d476aa5c = function(arg0) { + console.error(arg0); + }; + imports.wbg.__wbg_fill_c8751cf67b766c70 = function(arg0, arg1, arg2, arg3) { const ret = arg0.fill(arg1, arg2 >>> 0, arg3 >>> 0); return ret; }; - imports.wbg.__wbg_flush_1a680a66b21c53d7 = function() { return handleError(function (arg0) { + imports.wbg.__wbg_flush_d2487a24f3bc3cf4 = function() { return handleError(function (arg0) { arg0.flush(); }, arguments) }; - imports.wbg.__wbg_from_2a5d3e218e67aa85 = function(arg0) { + imports.wbg.__wbg_from_88bc52ce20ba6318 = function(arg0) { const ret = Array.from(arg0); return ret; }; - imports.wbg.__wbg_getDate_ef336e14594b35ce = function(arg0) { + imports.wbg.__wbg_getDate_9615e288fc892247 = function(arg0) { const ret = arg0.getDate(); return ret; }; - imports.wbg.__wbg_getDay_3da98b461c969439 = function(arg0) { + imports.wbg.__wbg_getDay_c9c4f57fb4ef6fef = function(arg0) { const ret = arg0.getDay(); return ret; }; - imports.wbg.__wbg_getDirectoryHandle_c48a138373d79b3d = function(arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_getDirectoryHandle_0fb26677897f1e21 = function(arg0, arg1, arg2, arg3) { const ret = arg0.getDirectoryHandle(getStringFromWasm0(arg1, arg2), arg3); return ret; }; - imports.wbg.__wbg_getDirectory_c206b0540c9acc0f = function(arg0) { + imports.wbg.__wbg_getDirectory_8564f4b4ae7ee35c = function(arg0) { const ret = arg0.getDirectory(); return ret; }; - imports.wbg.__wbg_getFileHandle_5fb877d1ecc74d52 = function(arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_getFileHandle_9f23d09c2497fa5f = function(arg0, arg1, arg2, arg3) { const ret = arg0.getFileHandle(getStringFromWasm0(arg1, arg2), arg3); return ret; }; - imports.wbg.__wbg_getFullYear_17d3c9e4db748eb7 = function(arg0) { + imports.wbg.__wbg_getFullYear_e351a9fa7d2fab83 = function(arg0) { const ret = arg0.getFullYear(); return ret; }; - imports.wbg.__wbg_getHours_70451b8de3ce8638 = function(arg0) { + imports.wbg.__wbg_getHours_4cc14de357c9e723 = function(arg0) { const ret = arg0.getHours(); return ret; }; - imports.wbg.__wbg_getMinutes_e793d718371e18f7 = function(arg0) { + imports.wbg.__wbg_getMinutes_6cde8fdd08b0c2ec = function(arg0) { const ret = arg0.getMinutes(); return ret; }; - imports.wbg.__wbg_getMonth_d37edcd23642c97d = function(arg0) { + imports.wbg.__wbg_getMonth_8cc234bce5c8bcac = function(arg0) { const ret = arg0.getMonth(); return ret; }; - imports.wbg.__wbg_getRandomValues_8e6341dd77432a34 = function() { return handleError(function (arg0, arg1) { - globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1)); - }, arguments) }; - imports.wbg.__wbg_getSeconds_755197b634cca692 = function(arg0) { + imports.wbg.__wbg_getSeconds_c2f02452d804ece0 = function(arg0) { const ret = arg0.getSeconds(); return ret; }; - imports.wbg.__wbg_getSize_e7dbd5ffa0b43df1 = function() { return handleError(function (arg0) { + imports.wbg.__wbg_getSize_56a06761973a6cd7 = function() { return handleError(function (arg0) { const ret = arg0.getSize(); return ret; }, arguments) }; - imports.wbg.__wbg_getTime_46267b1c24877e30 = function(arg0) { + imports.wbg.__wbg_getTime_6bb3f64e0f18f817 = function(arg0) { const ret = arg0.getTime(); return ret; }; - imports.wbg.__wbg_getTimezoneOffset_6b5752021c499c47 = function(arg0) { + imports.wbg.__wbg_getTimezoneOffset_1e3ddc1382e7c8b0 = function(arg0) { const ret = arg0.getTimezoneOffset(); return ret; }; - imports.wbg.__wbg_getUint32_9c3cc8fde7919ed4 = function(arg0, arg1) { + imports.wbg.__wbg_getUint32_2dc0ed17b0324774 = function(arg0, arg1) { const ret = arg0.getUint32(arg1 >>> 0); return ret; }; - imports.wbg.__wbg_get_13495dac72693ecc = function(arg0, arg1) { - const ret = arg0.get(arg1); - return ret; - }; - imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) { - const ret = Reflect.get(arg0, arg1); - return ret; - }, arguments) }; - imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) { + imports.wbg.__wbg_get_0da715ceaecea5c8 = function(arg0, arg1) { const ret = arg0[arg1 >>> 0]; return ret; }; - imports.wbg.__wbg_getindex_5b00c274b05714aa = function(arg0, arg1) { + imports.wbg.__wbg_get_458e874b43b18b25 = function() { return handleError(function (arg0, arg1) { + 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; }; @@ -576,14 +595,14 @@ function __wbg_get_imports() { const ret = arg0[arg1]; return ret; }; - imports.wbg.__wbg_has_76ca66e2f25d1c49 = function(arg0, arg1) { + imports.wbg.__wbg_has_6a9bff5f4208cfca = function(arg0, arg1) { const ret = arg0.has(arg1); return ret; }; - imports.wbg.__wbg_info_3daf2e093e091b66 = function(arg0) { + imports.wbg.__wbg_info_6cf68c1a86a92f6a = function(arg0) { console.info(arg0); }; - imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) { + imports.wbg.__wbg_instanceof_ArrayBuffer_67f3012529f6a2dd = function(arg0) { let result; try { result = arg0 instanceof ArrayBuffer; @@ -593,7 +612,7 @@ function __wbg_get_imports() { const ret = result; return ret; }; - imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) { + imports.wbg.__wbg_instanceof_Uint8Array_9a8378d955933db7 = function(arg0) { let result; try { result = arg0 instanceof Uint8Array; @@ -603,7 +622,7 @@ function __wbg_get_imports() { const ret = result; return ret; }; - imports.wbg.__wbg_instanceof_WorkerGlobalScope_dbdbdea7e3b56493 = function(arg0) { + imports.wbg.__wbg_instanceof_WorkerGlobalScope_85d487cc157fd065 = function(arg0) { let result; try { result = arg0 instanceof WorkerGlobalScope; @@ -613,53 +632,65 @@ function __wbg_get_imports() { const ret = result; return ret; }; - imports.wbg.__wbg_isArray_a1eab7e0d067391b = function(arg0) { + imports.wbg.__wbg_isArray_030cce220591fb41 = function(arg0) { const ret = Array.isArray(arg0); return ret; }; - imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) { + imports.wbg.__wbg_isSafeInteger_1c0d1af5542e102a = function(arg0) { const ret = Number.isSafeInteger(arg0); return ret; }; - imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() { + imports.wbg.__wbg_iterator_f370b34483c71a1c = function() { const ret = Symbol.iterator; return ret; }; - imports.wbg.__wbg_keys_867d2062f5df73dc = function(arg0) { + imports.wbg.__wbg_keys_200bc2675df61794 = function(arg0) { const ret = arg0.keys(); return ret; }; - imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) { + imports.wbg.__wbg_length_186546c51cd61acd = function(arg0) { const ret = arg0.length; return ret; }; - imports.wbg.__wbg_length_d56737991078581b = function(arg0) { + imports.wbg.__wbg_length_6bb7e81f9d7713e4 = function(arg0) { const ret = arg0.length; return ret; }; - imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) { + imports.wbg.__wbg_length_9d771c54845e987f = function(arg0) { const ret = arg0.length; return ret; }; - imports.wbg.__wbg_log_c222819a41e063d3 = function(arg0) { + imports.wbg.__wbg_log_6c7b5f4f00b8ce3f = function(arg0) { console.log(arg0); }; - imports.wbg.__wbg_navigator_0a9bf1120e24fec2 = function(arg0) { + imports.wbg.__wbg_navigator_bfaf1b0b0eb48da2 = function(arg0) { const ret = arg0.navigator; return ret; }; - imports.wbg.__wbg_new0_f788a2397c7ca929 = function() { + imports.wbg.__wbg_new0_b0a0a38c201e6df5 = function() { const ret = new Date(); return ret; }; - imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) { + 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; + }; + imports.wbg.__wbg_new_1f3a344cf3123716 = function() { + const ret = new Array(); + return ret; + }; + imports.wbg.__wbg_new_2e3c58a15f39f5f9 = function(arg0, arg1) { try { var state0 = {a: arg0, b: arg1}; var cb0 = (arg0, arg1) => { const a = state0.a; state0.a = 0; try { - return __wbg_adapter_228(a, state0.b, arg0, arg1); + return __wbg_adapter_194(a, state0.b, arg0, arg1); } finally { state0.a = a; } @@ -670,137 +701,127 @@ function __wbg_get_imports() { state0.a = state0.b = 0; } }; - imports.wbg.__wbg_new_31a97dac4f10fab7 = function(arg0) { - const ret = new Date(arg0); - return ret; - }; - imports.wbg.__wbg_new_405e22f390576ce2 = function() { - const ret = new Object(); - return ret; - }; - imports.wbg.__wbg_new_5e0be73521bc8c17 = function() { + imports.wbg.__wbg_new_2ff1f68f3676ea53 = function() { const ret = new Map(); return ret; }; - imports.wbg.__wbg_new_78feb108b6472713 = function() { - const ret = new Array(); + imports.wbg.__wbg_new_5a2ae4557f92b50e = function(arg0) { + const ret = new Date(arg0); return ret; }; - imports.wbg.__wbg_new_7e079fa25e135eb1 = function(arg0, arg1, arg2) { - const ret = new DataView(arg0, arg1 >>> 0, arg2 >>> 0); + imports.wbg.__wbg_new_638ebfaedbf32a5e = function(arg0) { + const ret = new Uint8Array(arg0); return ret; }; imports.wbg.__wbg_new_8a6f238a6ece86ea = function() { const ret = new Error(); return ret; }; - imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) { - const ret = new Uint8Array(arg0); - return ret; - }; - imports.wbg.__wbg_new_a239edaa1dc2968f = function(arg0) { - const ret = new Set(arg0); - return ret; - }; - imports.wbg.__wbg_new_c68d7209be747379 = function(arg0, arg1) { + imports.wbg.__wbg_new_da9dc54c5db29dfa = function(arg0, arg1) { const ret = new Error(getStringFromWasm0(arg0, arg1)); return ret; }; - imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) { + imports.wbg.__wbg_new_f60d6f09990bdb99 = function(arg0, arg1, arg2) { + const ret = new DataView(arg0, arg1 >>> 0, arg2 >>> 0); + return ret; + }; + imports.wbg.__wbg_newfromslice_074c56947bd43469 = function(arg0, arg1) { + const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1)); + return ret; + }; + imports.wbg.__wbg_newnoargs_254190557c45b4ec = function(arg0, arg1) { const ret = new Function(getStringFromWasm0(arg0, arg1)); return ret; }; - imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) { + imports.wbg.__wbg_newwithbyteoffsetandlength_e8f53910b4d42b45 = function(arg0, arg1, arg2) { const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0); return ret; }; - imports.wbg.__wbg_newwithlength_a381634e90c276d4 = function(arg0) { + imports.wbg.__wbg_newwithlength_a167dcc7aaa3ba77 = function(arg0) { const ret = new Uint8Array(arg0 >>> 0); return ret; }; - imports.wbg.__wbg_newwithyearmonthday_03748851282a850d = function(arg0, arg1, arg2) { + imports.wbg.__wbg_newwithyearmonthday_9d5466a369f2521d = function(arg0, arg1, arg2) { const ret = new Date(arg0 >>> 0, arg1, arg2); return ret; }; - imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) { + imports.wbg.__wbg_next_1142e1658f75ec63 = function() { return handleError(function (arg0) { + const ret = arg0.next(); + return ret; + }, arguments) }; + imports.wbg.__wbg_next_5b3530e612fde77d = function(arg0) { const ret = arg0.next; return ret; }; - imports.wbg.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) { + imports.wbg.__wbg_next_692e82279131b03c = function() { return handleError(function (arg0) { const ret = arg0.next(); return ret; }, arguments) }; - imports.wbg.__wbg_next_c3ab0d59847b3b5c = function() { return handleError(function (arg0) { - const ret = arg0.next(); - return ret; - }, arguments) }; - imports.wbg.__wbg_now_2f0bbf3fd348701f = function(arg0) { - const ret = globalThis.performance.now(); - getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true); - }; - imports.wbg.__wbg_postMessage_83a8d58d3fcb6c13 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_postMessage_38909232d65f5870 = function() { return handleError(function (arg0, arg1) { arg0.postMessage(arg1); }, arguments) }; - imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) { + imports.wbg.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) { + Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2); + }; + imports.wbg.__wbg_queueMicrotask_25d0739ac89e8c88 = function(arg0) { queueMicrotask(arg0); }; - imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) { + imports.wbg.__wbg_queueMicrotask_4488407636f5bf24 = function(arg0) { const ret = arg0.queueMicrotask; return ret; }; - imports.wbg.__wbg_random_3ad904d98382defe = function() { + imports.wbg.__wbg_random_7ed63a0b38ee3b75 = function() { const ret = Math.random(); return ret; }; - imports.wbg.__wbg_read_50be4c2d01bc12b4 = function() { return handleError(function (arg0, arg1, arg2) { - const ret = arg0.read(arg1, arg2); - return ret; - }, arguments) }; - imports.wbg.__wbg_read_f8fdd4b410209222 = function() { return handleError(function (arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_read_a43bb46027f02ee9 = function() { return handleError(function (arg0, arg1, arg2, arg3) { const ret = arg0.read(getArrayU8FromWasm0(arg1, arg2), arg3); return ret; }, arguments) }; - imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) { + imports.wbg.__wbg_read_e271e94623077591 = function() { return handleError(function (arg0, arg1, arg2) { + const ret = arg0.read(arg1, arg2); + return ret; + }, arguments) }; + imports.wbg.__wbg_resolve_4055c623acdd6a1b = function(arg0) { const ret = Promise.resolve(arg0); return ret; }; - imports.wbg.__wbg_respond_1f279fa9f8edcb1c = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_respond_6c2c4e20ef85138e = function() { return handleError(function (arg0, arg1) { arg0.respond(arg1 >>> 0); }, arguments) }; - imports.wbg.__wbg_setUint32_ad8826b8caeaf63d = function(arg0, arg1, arg2) { + imports.wbg.__wbg_setUint32_8a9564ae127df4c5 = function(arg0, arg1, arg2) { arg0.setUint32(arg1 >>> 0, arg2 >>> 0); }; - imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) { - arg0[arg1 >>> 0] = arg2; + imports.wbg.__wbg_set_1353b2a5e96bc48c = function(arg0, arg1, arg2) { + arg0.set(getArrayU8FromWasm0(arg1, arg2)); }; imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) { arg0[arg1] = arg2; }; - imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) { - arg0.set(arg1, arg2 >>> 0); + imports.wbg.__wbg_set_90f6c0f7bd8c0415 = function(arg0, arg1, arg2) { + arg0[arg1 >>> 0] = arg2; }; - imports.wbg.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_set_b7f1cf4fae26fe2a = function(arg0, arg1, arg2) { const ret = arg0.set(arg1, arg2); return ret; }; - imports.wbg.__wbg_setat_2a071a392643c10e = function(arg0, arg1) { + imports.wbg.__wbg_setat_f8fc70f546036b10 = function(arg0, arg1) { arg0.at = arg1; }; - imports.wbg.__wbg_setcreate_139bad94b2874fb5 = function(arg0, arg1) { + imports.wbg.__wbg_setcreate_1eb73f4ea713c1ad = function(arg0, arg1) { arg0.create = arg1 !== 0; }; - imports.wbg.__wbg_setcreate_4ca762e23d9f78da = function(arg0, arg1) { + imports.wbg.__wbg_setcreate_2d32aa4bbcd1d7af = function(arg0, arg1) { arg0.create = arg1 !== 0; }; - imports.wbg.__wbg_setonmessage_7530ae0596a01ccb = function(arg0, arg1) { + imports.wbg.__wbg_setonmessage_041fb8f4204d276c = function(arg0, arg1) { arg0.onmessage = arg1; }; - imports.wbg.__wbg_size_f9d54556ad844dc3 = function(arg0) { + imports.wbg.__wbg_size_af8602b0b838d49e = function(arg0) { const ret = arg0.size; return ret; }; - imports.wbg.__wbg_slice_972c243648c9fd2e = function(arg0, arg1, arg2) { + imports.wbg.__wbg_slice_974daea329f5c01d = function(arg0, arg1, arg2) { const ret = arg0.slice(arg1 >>> 0, arg2 >>> 0); return ret; }; @@ -811,87 +832,65 @@ function __wbg_get_imports() { getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }; - imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() { + imports.wbg.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function() { const ret = typeof global === 'undefined' ? null : global; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() { + imports.wbg.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function() { const ret = typeof globalThis === 'undefined' ? null : globalThis; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() { + imports.wbg.__wbg_static_accessor_SELF_995b214ae681ff99 = function() { const ret = typeof self === 'undefined' ? null : self; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() { + imports.wbg.__wbg_static_accessor_WINDOW_cde3890479c675ea = function() { const ret = typeof window === 'undefined' ? null : window; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_storage_07eb754b88898955 = function(arg0) { + imports.wbg.__wbg_storage_32b4ac688c114c3d = function(arg0) { const ret = arg0.storage; return ret; }; - imports.wbg.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_subarray_70fd07feefe14294 = function(arg0, arg1, arg2) { const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0); return ret; }; - imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) { - const ret = arg0.then(arg1); - return ret; - }; - imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_then_b33a773d723afa3e = function(arg0, arg1, arg2) { const ret = arg0.then(arg1, arg2); return ret; }; - imports.wbg.__wbg_toString_ba82658ec370add0 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_then_e22500defe16819f = function(arg0, arg1) { + const ret = arg0.then(arg1); + return ret; + }; + imports.wbg.__wbg_toString_2ca967683e5874bc = function() { return handleError(function (arg0, arg1) { const ret = arg0.toString(arg1); return ret; }, arguments) }; - imports.wbg.__wbg_toU8Array_7fa7fb3ae8554ad0 = function(arg0, arg1, arg2, arg3) { - JSArrayBufferCopy.toU8Array(arg0, arg1 >>> 0, arg2 >>> 0, arg3); - }; - imports.wbg.__wbg_toU8Slice_11519abfa5176ae4 = function(arg0, arg1, arg2, arg3) { - JSArrayBufferCopy.toU8Slice(arg0, arg1, arg2 >>> 0, arg3 >>> 0); - }; - imports.wbg.__wbg_truncate_29261a6365c72b01 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_truncate_0fe935591188a14c = function() { return handleError(function (arg0, arg1) { arg0.truncate(arg1 >>> 0); }, arguments) }; - imports.wbg.__wbg_truncate_4e1b09a0538f4ac4 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_truncate_7cddd971e3cf0a8c = function() { return handleError(function (arg0, arg1) { arg0.truncate(arg1); }, arguments) }; - imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) { + imports.wbg.__wbg_value_dd9372230531eade = function(arg0) { const ret = arg0.value; return ret; }; - imports.wbg.__wbg_view_fd8a56e8983f448d = function(arg0) { + imports.wbg.__wbg_view_91cc97d57ab30530 = function(arg0) { const ret = arg0.view; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_warn_4ca3906c248c47c4 = function(arg0) { + imports.wbg.__wbg_warn_e2ada06313f92f09 = function(arg0) { console.warn(arg0); }; - imports.wbg.__wbg_write_530d3c84df874f53 = function() { return handleError(function (arg0, arg1, arg2, arg3) { - const ret = arg0.write(getArrayU8FromWasm0(arg1, arg2), arg3); - return ret; - }, arguments) }; - imports.wbg.__wbg_write_df271225cf2c4e20 = function() { return handleError(function (arg0, arg1, arg2) { - const ret = arg0.write(arg1, arg2); - return ret; - }, arguments) }; - imports.wbg.__wbindgen_as_number = function(arg0) { - const ret = +arg0; - return ret; - }; - imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) { - const ret = BigInt.asUintN(64, arg0); - return ret; - }; - imports.wbg.__wbindgen_boolean_get = function(arg0) { + imports.wbg.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function(arg0) { const v = arg0; - const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2; - return ret; + const ret = typeof(v) === 'boolean' ? v : undefined; + return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0; }; - imports.wbg.__wbindgen_cb_drop = function(arg0) { + imports.wbg.__wbg_wbindgencbdrop_eb10308566512b88 = function(arg0) { const obj = arg0.original; if (obj.cnt-- == 1) { obj.a = 0; @@ -900,27 +899,86 @@ function __wbg_get_imports() { const ret = false; return ret; }; - imports.wbg.__wbindgen_closure_wrapper250 = function(arg0, arg1, arg2) { - const ret = makeClosure(arg0, arg1, 79, __wbg_adapter_44); - return ret; - }; - imports.wbg.__wbindgen_closure_wrapper4178 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 697, __wbg_adapter_47); - return ret; - }; - imports.wbg.__wbindgen_debug_string = function(arg0, arg1) { + imports.wbg.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) { const ret = debugString(arg1); const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }; - imports.wbg.__wbindgen_error_new = function(arg0, arg1) { - const ret = new Error(getStringFromWasm0(arg0, arg1)); + imports.wbg.__wbg_wbindgenin_d7a1ee10933d2d55 = function(arg0, arg1) { + const ret = arg0 in arg1; return ret; }; - imports.wbg.__wbindgen_in = function(arg0, arg1) { - const ret = arg0 in arg1; + imports.wbg.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) { + const ret = typeof(arg0) === 'function'; + return ret; + }; + imports.wbg.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) { + const val = arg0; + const ret = typeof(val) === 'object' && val !== null; + return ret; + }; + imports.wbg.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) { + const ret = typeof(arg0) === 'string'; + return ret; + }; + imports.wbg.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function(arg0) { + const ret = arg0 === undefined; + return ret; + }; + imports.wbg.__wbg_wbindgenjsvallooseeq_9bec8c9be826bed1 = function(arg0, arg1) { + const ret = arg0 == arg1; + return ret; + }; + imports.wbg.__wbg_wbindgennumberget_f74b4c7525ac05cb = function(arg0, arg1) { + const obj = arg1; + const ret = typeof(obj) === 'number' ? obj : undefined; + getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true); + getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true); + }; + imports.wbg.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) { + const obj = arg1; + const ret = typeof(obj) === 'string' ? obj : undefined; + var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); + getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); + }; + imports.wbg.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) { + throw new Error(getStringFromWasm0(arg0, arg1)); + }; + imports.wbg.__wbg_write_9ac6a5f58a8c835c = function() { return handleError(function (arg0, arg1, arg2, arg3) { + const ret = arg0.write(getArrayU8FromWasm0(arg1, arg2), arg3); + return ret; + }, arguments) }; + imports.wbg.__wbg_write_c0e234eeb0039d0d = function() { return handleError(function (arg0, arg1, arg2) { + const ret = arg0.write(arg1, arg2); + return ret; + }, arguments) }; + imports.wbg.__wbindgen_cast_1f928e962f742754 = function(arg0, arg1) { + // Cast intrinsic for `Closure(Closure { dtor_idx: 34, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 35, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. + const ret = makeClosure(arg0, arg1, 34, __wbg_adapter_13); + return ret; + }; + imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) { + // Cast intrinsic for `Ref(String) -> Externref`. + const ret = getStringFromWasm0(arg0, arg1); + return ret; + }; + imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) { + // Cast intrinsic for `U64 -> Externref`. + const ret = BigInt.asUintN(64, arg0); + return ret; + }; + imports.wbg.__wbindgen_cast_7342bdff31396438 = function(arg0, arg1) { + // Cast intrinsic for `Closure(Closure { dtor_idx: 693, function: Function { arguments: [Externref], shim_idx: 694, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. + const ret = makeMutClosure(arg0, arg1, 693, __wbg_adapter_6); + return ret; + }; + imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) { + // Cast intrinsic for `F64 -> Externref`. + const ret = arg0; return ret; }; imports.wbg.__wbindgen_init_externref_table = function() { @@ -933,56 +991,6 @@ function __wbg_get_imports() { table.set(offset + 3, false); ; }; - imports.wbg.__wbindgen_is_function = function(arg0) { - const ret = typeof(arg0) === 'function'; - return ret; - }; - imports.wbg.__wbindgen_is_object = function(arg0) { - const val = arg0; - const ret = typeof(val) === 'object' && val !== null; - return ret; - }; - imports.wbg.__wbindgen_is_string = function(arg0) { - const ret = typeof(arg0) === 'string'; - return ret; - }; - imports.wbg.__wbindgen_is_undefined = function(arg0) { - const ret = arg0 === undefined; - return ret; - }; - imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) { - const ret = arg0 == arg1; - return ret; - }; - imports.wbg.__wbindgen_memory = function() { - const ret = wasm.memory; - return ret; - }; - imports.wbg.__wbindgen_number_get = function(arg0, arg1) { - const obj = arg1; - const ret = typeof(obj) === 'number' ? obj : undefined; - getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true); - }; - imports.wbg.__wbindgen_number_new = function(arg0) { - const ret = arg0; - return ret; - }; - imports.wbg.__wbindgen_string_get = function(arg0, arg1) { - const obj = arg1; - const ret = typeof(obj) === 'string' ? obj : undefined; - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }; - imports.wbg.__wbindgen_string_new = function(arg0, arg1) { - const ret = getStringFromWasm0(arg0, arg1); - return ret; - }; - imports.wbg.__wbindgen_throw = function(arg0, arg1) { - throw new Error(getStringFromWasm0(arg0, arg1)); - }; return imports; } diff --git a/sqlite3_bg.wasm b/sqlite3_bg.wasm index a40103a..2dc4663 100644 Binary files a/sqlite3_bg.wasm and b/sqlite3_bg.wasm differ diff --git a/sqlite3mc.js b/sqlite3mc.js index 39bf56c..2f315a9 100644 --- a/sqlite3mc.js +++ b/sqlite3mc.js @@ -1,7 +1,35 @@ -import { JSArrayBufferCopy } from './snippets/wasm-array-cp-201e2a98f0e691f7/copy.min.js'; - let wasm; +let cachedUint8ArrayMemory0 = null; + +function getUint8ArrayMemory0() { + if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) { + cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer); + } + return cachedUint8ArrayMemory0; +} + +let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); + +cachedTextDecoder.decode(); + +const MAX_SAFARI_DECODE_BYTES = 2146435072; +let numBytesDecoded = 0; +function decodeText(ptr, len) { + numBytesDecoded += len; + if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) { + cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); + cachedTextDecoder.decode(); + numBytesDecoded = len; + } + return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len)); +} + +function getStringFromWasm0(ptr, len) { + ptr = ptr >>> 0; + return decodeText(ptr, len); +} + function isLikeNone(x) { return x === undefined || x === null; } @@ -21,54 +49,25 @@ function handleError(f, args) { } } -const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } ); - -if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); }; - -let cachedUint8ArrayMemory0 = null; - -function getUint8ArrayMemory0() { - if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) { - cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer); - } - return cachedUint8ArrayMemory0; -} - -function getStringFromWasm0(ptr, len) { - ptr = ptr >>> 0; - return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len)); -} - function getArrayU8FromWasm0(ptr, len) { ptr = ptr >>> 0; return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); } -let cachedDataViewMemory0 = null; - -function getDataViewMemory0() { - if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) { - cachedDataViewMemory0 = new DataView(wasm.memory.buffer); - } - return cachedDataViewMemory0; -} - let WASM_VECTOR_LEN = 0; -const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } ); +const cachedTextEncoder = new TextEncoder(); -const encodeString = (typeof cachedTextEncoder.encodeInto === 'function' - ? function (arg, view) { - return cachedTextEncoder.encodeInto(arg, view); +if (!('encodeInto' in cachedTextEncoder)) { + cachedTextEncoder.encodeInto = function (arg, view) { + const buf = cachedTextEncoder.encode(arg); + view.set(buf); + return { + read: arg.length, + written: buf.length + }; + } } - : function (arg, view) { - const buf = cachedTextEncoder.encode(arg); - view.set(buf); - return { - read: arg.length, - written: buf.length - }; -}); function passStringToWasm0(arg, malloc, realloc) { @@ -99,7 +98,7 @@ function passStringToWasm0(arg, malloc, realloc) { } ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0; const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len); - const ret = encodeString(arg, view); + const ret = cachedTextEncoder.encodeInto(arg, view); offset += ret.written; ptr = realloc(ptr, len, offset, 1) >>> 0; @@ -109,57 +108,13 @@ function passStringToWasm0(arg, malloc, realloc) { return ptr; } -const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined') - ? { register: () => {}, unregister: () => {} } - : new FinalizationRegistry(state => { - wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b) -}); +let cachedDataViewMemory0 = null; -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) => { - // 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++; - const a = state.a; - state.a = 0; - try { - return f(a, state.b, ...args); - } finally { - if (--state.cnt === 0) { - wasm.__wbindgen_export_6.get(state.dtor)(a, state.b); - CLOSURE_DTORS.unregister(state); - } else { - state.a = a; - } - } - }; - real.original = state; - CLOSURE_DTORS.register(real, state, state); - return real; +function getDataViewMemory0() { + if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) { + cachedDataViewMemory0 = new DataView(wasm.memory.buffer); + } + return cachedDataViewMemory0; } function debugString(val) { @@ -226,16 +181,72 @@ function debugString(val) { // TODO we could test for more things here, like `Set`s and `Map`s. return className; } -function __wbg_adapter_44(arg0, arg1, arg2) { - wasm.closure8_externref_shim(arg0, arg1, arg2); + +const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined') + ? { register: () => {}, unregister: () => {} } + : new FinalizationRegistry( +state => { + wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b); +} +); + +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_47(arg0, arg1, arg2) { - wasm.closure861_externref_shim(arg0, arg1, arg2); +function makeMutClosure(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++; + const a = state.a; + state.a = 0; + try { + return f(a, state.b, ...args); + } finally { + if (--state.cnt === 0) { + wasm.__wbindgen_export_6.get(state.dtor)(a, state.b); + CLOSURE_DTORS.unregister(state); + } else { + state.a = a; + } + } + }; + real.original = state; + CLOSURE_DTORS.register(real, state, state); + return real; +} +function __wbg_adapter_12(arg0, arg1, arg2) { + wasm.closure101_externref_shim(arg0, arg1, arg2); } -function __wbg_adapter_228(arg0, arg1, arg2, arg3) { - wasm.closure883_externref_shim(arg0, arg1, arg2, arg3); +function __wbg_adapter_15(arg0, arg1, arg2) { + wasm.closure858_externref_shim(arg0, arg1, arg2); +} + +function __wbg_adapter_196(arg0, arg1, arg2, arg3) { + wasm.closure873_externref_shim(arg0, arg1, arg2, arg3); } const __wbindgen_enum_ReadableStreamType = ["bytes"]; @@ -290,6 +301,7 @@ export class IntoUnderlyingByteSource { wasm.intounderlyingbytesource_cancel(ptr); } } +if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnderlyingByteSource.prototype.free; const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined') ? { register: () => {}, unregister: () => {} } @@ -334,6 +346,7 @@ export class IntoUnderlyingSink { return ret; } } +if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyingSink.prototype.free; const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined') ? { register: () => {}, unregister: () => {} } @@ -365,6 +378,9 @@ export class IntoUnderlyingSource { wasm.intounderlyingsource_cancel(ptr); } } +if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free; + +const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']); async function __wbg_load(module, imports) { if (typeof Response === 'function' && module instanceof Response) { @@ -373,7 +389,9 @@ async function __wbg_load(module, imports) { return await WebAssembly.instantiateStreaming(module, imports); } catch (e) { - if (module.headers.get('Content-Type') != 'application/wasm') { + const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type); + + if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') { 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); } else { @@ -400,81 +418,82 @@ async function __wbg_load(module, imports) { function __wbg_get_imports() { const imports = {}; imports.wbg = {}; - imports.wbg.__wbg_add_883d9432f9188ef2 = function(arg0, arg1) { + imports.wbg.__wbg_Error_e17e777aac105295 = function(arg0, arg1) { + const ret = Error(getStringFromWasm0(arg0, arg1)); + return ret; + }; + imports.wbg.__wbg_Number_998bea33bd87c3e0 = function(arg0) { + 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_09165b52af8c5237 = function(arg0) { + imports.wbg.__wbg_buffer_8d40b1d762fb3c66 = function(arg0) { const ret = arg0.buffer; return ret; }; - imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) { - const ret = arg0.buffer; - return ret; - }; - imports.wbg.__wbg_byobRequest_77d9adf63337edfb = function(arg0) { + imports.wbg.__wbg_byobRequest_2c036bceca1e6037 = function(arg0) { const ret = arg0.byobRequest; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_byteLength_e674b853d9c77e1d = function(arg0) { + imports.wbg.__wbg_byteLength_331a6b5545834024 = function(arg0) { const ret = arg0.byteLength; return ret; }; - imports.wbg.__wbg_byteOffset_fd862df290ef848d = function(arg0) { + imports.wbg.__wbg_byteOffset_49a5b5608000358b = function(arg0) { const ret = arg0.byteOffset; return ret; }; - imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) { const ret = arg0.call(arg1); return ret; }, arguments) }; - imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) { + imports.wbg.__wbg_call_a5400b25a865cfd8 = function() { return handleError(function (arg0, arg1, arg2) { const ret = arg0.call(arg1, arg2); return ret; }, arguments) }; - imports.wbg.__wbg_close_304cc1fef3466669 = function() { return handleError(function (arg0) { + imports.wbg.__wbg_close_cccada6053ee3a65 = function() { return handleError(function (arg0) { arg0.close(); }, arguments) }; - imports.wbg.__wbg_close_5ce03e29be453811 = function() { return handleError(function (arg0) { + imports.wbg.__wbg_close_d71a78219dc23e91 = function() { return handleError(function (arg0) { arg0.close(); }, arguments) }; - imports.wbg.__wbg_createSyncAccessHandle_21c18bcd2a29fa13 = function(arg0) { + imports.wbg.__wbg_createSyncAccessHandle_d06aab2e41a339b2 = function(arg0) { const ret = arg0.createSyncAccessHandle(); return ret; }; - imports.wbg.__wbg_data_432d9c3df2630942 = function(arg0) { + imports.wbg.__wbg_data_9ab529722bcc4e6c = function(arg0) { const ret = arg0.data; return ret; }; - imports.wbg.__wbg_debug_3cb59063b29f58c1 = function(arg0) { + imports.wbg.__wbg_debug_c906769d2f88c17b = function(arg0) { console.debug(arg0); }; - imports.wbg.__wbg_delete_36c8630e530a2a1a = function(arg0, arg1) { + imports.wbg.__wbg_delete_34b4d9b89634f0c0 = function(arg0, arg1) { const ret = arg0.delete(arg1); return ret; }; - imports.wbg.__wbg_delete_d6860deb47204f3b = function(arg0, arg1) { + imports.wbg.__wbg_delete_ded22f5899363180 = function(arg0, arg1) { const ret = arg0.delete(arg1); return ret; }; - imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) { + imports.wbg.__wbg_done_75ed0ee6dd243d9d = function(arg0) { const ret = arg0.done; return ret; }; - imports.wbg.__wbg_enqueue_bb16ba72f537dc9e = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_enqueue_452bc2343d1c2ff9 = function() { return handleError(function (arg0, arg1) { arg0.enqueue(arg1); }, arguments) }; - imports.wbg.__wbg_entries_19efe296f7d36df9 = function(arg0) { + imports.wbg.__wbg_entries_1a3c3b9544532397 = function(arg0) { const ret = arg0.entries(); return ret; }; - imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) { + imports.wbg.__wbg_entries_2be2f15bd5554996 = function(arg0) { const ret = Object.entries(arg0); return ret; }; - imports.wbg.__wbg_error_524f506f44df1645 = function(arg0) { - console.error(arg0); - }; imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) { let deferred0_0; let deferred0_1; @@ -486,89 +505,92 @@ function __wbg_get_imports() { wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); } }; - imports.wbg.__wbg_fill_3311db9cdf18c6c4 = function(arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_error_99981e16d476aa5c = function(arg0) { + console.error(arg0); + }; + imports.wbg.__wbg_fill_c8751cf67b766c70 = function(arg0, arg1, arg2, arg3) { const ret = arg0.fill(arg1, arg2 >>> 0, arg3 >>> 0); return ret; }; - imports.wbg.__wbg_flush_1a680a66b21c53d7 = function() { return handleError(function (arg0) { + imports.wbg.__wbg_flush_d2487a24f3bc3cf4 = function() { return handleError(function (arg0) { arg0.flush(); }, arguments) }; - imports.wbg.__wbg_from_2a5d3e218e67aa85 = function(arg0) { + imports.wbg.__wbg_from_88bc52ce20ba6318 = function(arg0) { const ret = Array.from(arg0); return ret; }; - imports.wbg.__wbg_getDate_ef336e14594b35ce = function(arg0) { + imports.wbg.__wbg_getDate_9615e288fc892247 = function(arg0) { const ret = arg0.getDate(); return ret; }; - imports.wbg.__wbg_getDay_3da98b461c969439 = function(arg0) { + imports.wbg.__wbg_getDay_c9c4f57fb4ef6fef = function(arg0) { const ret = arg0.getDay(); return ret; }; - imports.wbg.__wbg_getDirectoryHandle_c48a138373d79b3d = function(arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_getDirectoryHandle_0fb26677897f1e21 = function(arg0, arg1, arg2, arg3) { const ret = arg0.getDirectoryHandle(getStringFromWasm0(arg1, arg2), arg3); return ret; }; - imports.wbg.__wbg_getDirectory_c206b0540c9acc0f = function(arg0) { + imports.wbg.__wbg_getDirectory_8564f4b4ae7ee35c = function(arg0) { const ret = arg0.getDirectory(); return ret; }; - imports.wbg.__wbg_getFileHandle_5fb877d1ecc74d52 = function(arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_getFileHandle_9f23d09c2497fa5f = function(arg0, arg1, arg2, arg3) { const ret = arg0.getFileHandle(getStringFromWasm0(arg1, arg2), arg3); return ret; }; - imports.wbg.__wbg_getFullYear_17d3c9e4db748eb7 = function(arg0) { + imports.wbg.__wbg_getFullYear_e351a9fa7d2fab83 = function(arg0) { const ret = arg0.getFullYear(); return ret; }; - imports.wbg.__wbg_getHours_70451b8de3ce8638 = function(arg0) { + imports.wbg.__wbg_getHours_4cc14de357c9e723 = function(arg0) { const ret = arg0.getHours(); return ret; }; - imports.wbg.__wbg_getMinutes_e793d718371e18f7 = function(arg0) { + imports.wbg.__wbg_getMinutes_6cde8fdd08b0c2ec = function(arg0) { const ret = arg0.getMinutes(); return ret; }; - imports.wbg.__wbg_getMonth_d37edcd23642c97d = function(arg0) { + imports.wbg.__wbg_getMonth_8cc234bce5c8bcac = function(arg0) { const ret = arg0.getMonth(); return ret; }; - imports.wbg.__wbg_getRandomValues_8e6341dd77432a34 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_getRandomValues_aaf8170c5ce4acde = function() { return handleError(function (arg0, arg1) { globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1)); }, arguments) }; - imports.wbg.__wbg_getSeconds_755197b634cca692 = function(arg0) { + imports.wbg.__wbg_getSeconds_c2f02452d804ece0 = function(arg0) { const ret = arg0.getSeconds(); return ret; }; - imports.wbg.__wbg_getSize_e7dbd5ffa0b43df1 = function() { return handleError(function (arg0) { + imports.wbg.__wbg_getSize_56a06761973a6cd7 = function() { return handleError(function (arg0) { const ret = arg0.getSize(); return ret; }, arguments) }; - imports.wbg.__wbg_getTime_46267b1c24877e30 = function(arg0) { + imports.wbg.__wbg_getTime_6bb3f64e0f18f817 = function(arg0) { const ret = arg0.getTime(); return ret; }; - imports.wbg.__wbg_getTimezoneOffset_6b5752021c499c47 = function(arg0) { + imports.wbg.__wbg_getTimezoneOffset_1e3ddc1382e7c8b0 = function(arg0) { const ret = arg0.getTimezoneOffset(); return ret; }; - imports.wbg.__wbg_getUint32_9c3cc8fde7919ed4 = function(arg0, arg1) { + imports.wbg.__wbg_getUint32_2dc0ed17b0324774 = function(arg0, arg1) { const ret = arg0.getUint32(arg1 >>> 0); return ret; }; - imports.wbg.__wbg_get_13495dac72693ecc = function(arg0, arg1) { - const ret = arg0.get(arg1); - return ret; - }; - imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) { - const ret = Reflect.get(arg0, arg1); - return ret; - }, arguments) }; - imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) { + imports.wbg.__wbg_get_0da715ceaecea5c8 = function(arg0, arg1) { const ret = arg0[arg1 >>> 0]; return ret; }; - imports.wbg.__wbg_getindex_5b00c274b05714aa = function(arg0, arg1) { + imports.wbg.__wbg_get_458e874b43b18b25 = function() { return handleError(function (arg0, arg1) { + 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; }; @@ -576,14 +598,14 @@ function __wbg_get_imports() { const ret = arg0[arg1]; return ret; }; - imports.wbg.__wbg_has_76ca66e2f25d1c49 = function(arg0, arg1) { + imports.wbg.__wbg_has_6a9bff5f4208cfca = function(arg0, arg1) { const ret = arg0.has(arg1); return ret; }; - imports.wbg.__wbg_info_3daf2e093e091b66 = function(arg0) { + imports.wbg.__wbg_info_6cf68c1a86a92f6a = function(arg0) { console.info(arg0); }; - imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) { + imports.wbg.__wbg_instanceof_ArrayBuffer_67f3012529f6a2dd = function(arg0) { let result; try { result = arg0 instanceof ArrayBuffer; @@ -593,7 +615,7 @@ function __wbg_get_imports() { const ret = result; return ret; }; - imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) { + imports.wbg.__wbg_instanceof_Uint8Array_9a8378d955933db7 = function(arg0) { let result; try { result = arg0 instanceof Uint8Array; @@ -603,7 +625,7 @@ function __wbg_get_imports() { const ret = result; return ret; }; - imports.wbg.__wbg_instanceof_WorkerGlobalScope_dbdbdea7e3b56493 = function(arg0) { + imports.wbg.__wbg_instanceof_WorkerGlobalScope_85d487cc157fd065 = function(arg0) { let result; try { result = arg0 instanceof WorkerGlobalScope; @@ -613,53 +635,65 @@ function __wbg_get_imports() { const ret = result; return ret; }; - imports.wbg.__wbg_isArray_a1eab7e0d067391b = function(arg0) { + imports.wbg.__wbg_isArray_030cce220591fb41 = function(arg0) { const ret = Array.isArray(arg0); return ret; }; - imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) { + imports.wbg.__wbg_isSafeInteger_1c0d1af5542e102a = function(arg0) { const ret = Number.isSafeInteger(arg0); return ret; }; - imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() { + imports.wbg.__wbg_iterator_f370b34483c71a1c = function() { const ret = Symbol.iterator; return ret; }; - imports.wbg.__wbg_keys_867d2062f5df73dc = function(arg0) { + imports.wbg.__wbg_keys_200bc2675df61794 = function(arg0) { const ret = arg0.keys(); return ret; }; - imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) { + imports.wbg.__wbg_length_186546c51cd61acd = function(arg0) { const ret = arg0.length; return ret; }; - imports.wbg.__wbg_length_d56737991078581b = function(arg0) { + imports.wbg.__wbg_length_6bb7e81f9d7713e4 = function(arg0) { const ret = arg0.length; return ret; }; - imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) { + imports.wbg.__wbg_length_9d771c54845e987f = function(arg0) { const ret = arg0.length; return ret; }; - imports.wbg.__wbg_log_c222819a41e063d3 = function(arg0) { + imports.wbg.__wbg_log_6c7b5f4f00b8ce3f = function(arg0) { console.log(arg0); }; - imports.wbg.__wbg_navigator_0a9bf1120e24fec2 = function(arg0) { + imports.wbg.__wbg_navigator_bfaf1b0b0eb48da2 = function(arg0) { const ret = arg0.navigator; return ret; }; - imports.wbg.__wbg_new0_f788a2397c7ca929 = function() { + imports.wbg.__wbg_new0_b0a0a38c201e6df5 = function() { const ret = new Date(); return ret; }; - imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) { + 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; + }; + imports.wbg.__wbg_new_1f3a344cf3123716 = function() { + const ret = new Array(); + return ret; + }; + imports.wbg.__wbg_new_2e3c58a15f39f5f9 = function(arg0, arg1) { try { var state0 = {a: arg0, b: arg1}; var cb0 = (arg0, arg1) => { const a = state0.a; state0.a = 0; try { - return __wbg_adapter_228(a, state0.b, arg0, arg1); + return __wbg_adapter_196(a, state0.b, arg0, arg1); } finally { state0.a = a; } @@ -670,137 +704,127 @@ function __wbg_get_imports() { state0.a = state0.b = 0; } }; - imports.wbg.__wbg_new_31a97dac4f10fab7 = function(arg0) { - const ret = new Date(arg0); - return ret; - }; - imports.wbg.__wbg_new_405e22f390576ce2 = function() { - const ret = new Object(); - return ret; - }; - imports.wbg.__wbg_new_5e0be73521bc8c17 = function() { + imports.wbg.__wbg_new_2ff1f68f3676ea53 = function() { const ret = new Map(); return ret; }; - imports.wbg.__wbg_new_78feb108b6472713 = function() { - const ret = new Array(); + imports.wbg.__wbg_new_5a2ae4557f92b50e = function(arg0) { + const ret = new Date(arg0); return ret; }; - imports.wbg.__wbg_new_7e079fa25e135eb1 = function(arg0, arg1, arg2) { - const ret = new DataView(arg0, arg1 >>> 0, arg2 >>> 0); + imports.wbg.__wbg_new_638ebfaedbf32a5e = function(arg0) { + const ret = new Uint8Array(arg0); return ret; }; imports.wbg.__wbg_new_8a6f238a6ece86ea = function() { const ret = new Error(); return ret; }; - imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) { - const ret = new Uint8Array(arg0); - return ret; - }; - imports.wbg.__wbg_new_a239edaa1dc2968f = function(arg0) { - const ret = new Set(arg0); - return ret; - }; - imports.wbg.__wbg_new_c68d7209be747379 = function(arg0, arg1) { + imports.wbg.__wbg_new_da9dc54c5db29dfa = function(arg0, arg1) { const ret = new Error(getStringFromWasm0(arg0, arg1)); return ret; }; - imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) { + imports.wbg.__wbg_new_f60d6f09990bdb99 = function(arg0, arg1, arg2) { + const ret = new DataView(arg0, arg1 >>> 0, arg2 >>> 0); + return ret; + }; + imports.wbg.__wbg_newfromslice_074c56947bd43469 = function(arg0, arg1) { + const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1)); + return ret; + }; + imports.wbg.__wbg_newnoargs_254190557c45b4ec = function(arg0, arg1) { const ret = new Function(getStringFromWasm0(arg0, arg1)); return ret; }; - imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) { + imports.wbg.__wbg_newwithbyteoffsetandlength_e8f53910b4d42b45 = function(arg0, arg1, arg2) { const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0); return ret; }; - imports.wbg.__wbg_newwithlength_a381634e90c276d4 = function(arg0) { + imports.wbg.__wbg_newwithlength_a167dcc7aaa3ba77 = function(arg0) { const ret = new Uint8Array(arg0 >>> 0); return ret; }; - imports.wbg.__wbg_newwithyearmonthday_03748851282a850d = function(arg0, arg1, arg2) { + imports.wbg.__wbg_newwithyearmonthday_9d5466a369f2521d = function(arg0, arg1, arg2) { const ret = new Date(arg0 >>> 0, arg1, arg2); return ret; }; - imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) { + imports.wbg.__wbg_next_1142e1658f75ec63 = function() { return handleError(function (arg0) { + const ret = arg0.next(); + return ret; + }, arguments) }; + imports.wbg.__wbg_next_5b3530e612fde77d = function(arg0) { const ret = arg0.next; return ret; }; - imports.wbg.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) { + imports.wbg.__wbg_next_692e82279131b03c = function() { return handleError(function (arg0) { const ret = arg0.next(); return ret; }, arguments) }; - imports.wbg.__wbg_next_c3ab0d59847b3b5c = function() { return handleError(function (arg0) { - const ret = arg0.next(); - return ret; - }, arguments) }; - imports.wbg.__wbg_now_2f0bbf3fd348701f = function(arg0) { - const ret = globalThis.performance.now(); - getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true); - }; - imports.wbg.__wbg_postMessage_83a8d58d3fcb6c13 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_postMessage_38909232d65f5870 = function() { return handleError(function (arg0, arg1) { arg0.postMessage(arg1); }, arguments) }; - imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) { + imports.wbg.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) { + Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2); + }; + imports.wbg.__wbg_queueMicrotask_25d0739ac89e8c88 = function(arg0) { queueMicrotask(arg0); }; - imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) { + imports.wbg.__wbg_queueMicrotask_4488407636f5bf24 = function(arg0) { const ret = arg0.queueMicrotask; return ret; }; - imports.wbg.__wbg_random_3ad904d98382defe = function() { + imports.wbg.__wbg_random_7ed63a0b38ee3b75 = function() { const ret = Math.random(); return ret; }; - imports.wbg.__wbg_read_50be4c2d01bc12b4 = function() { return handleError(function (arg0, arg1, arg2) { - const ret = arg0.read(arg1, arg2); - return ret; - }, arguments) }; - imports.wbg.__wbg_read_f8fdd4b410209222 = function() { return handleError(function (arg0, arg1, arg2, arg3) { + imports.wbg.__wbg_read_a43bb46027f02ee9 = function() { return handleError(function (arg0, arg1, arg2, arg3) { const ret = arg0.read(getArrayU8FromWasm0(arg1, arg2), arg3); return ret; }, arguments) }; - imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) { + imports.wbg.__wbg_read_e271e94623077591 = function() { return handleError(function (arg0, arg1, arg2) { + const ret = arg0.read(arg1, arg2); + return ret; + }, arguments) }; + imports.wbg.__wbg_resolve_4055c623acdd6a1b = function(arg0) { const ret = Promise.resolve(arg0); return ret; }; - imports.wbg.__wbg_respond_1f279fa9f8edcb1c = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_respond_6c2c4e20ef85138e = function() { return handleError(function (arg0, arg1) { arg0.respond(arg1 >>> 0); }, arguments) }; - imports.wbg.__wbg_setUint32_ad8826b8caeaf63d = function(arg0, arg1, arg2) { + imports.wbg.__wbg_setUint32_8a9564ae127df4c5 = function(arg0, arg1, arg2) { arg0.setUint32(arg1 >>> 0, arg2 >>> 0); }; - imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) { - arg0[arg1 >>> 0] = arg2; + imports.wbg.__wbg_set_1353b2a5e96bc48c = function(arg0, arg1, arg2) { + arg0.set(getArrayU8FromWasm0(arg1, arg2)); }; imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) { arg0[arg1] = arg2; }; - imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) { - arg0.set(arg1, arg2 >>> 0); + imports.wbg.__wbg_set_90f6c0f7bd8c0415 = function(arg0, arg1, arg2) { + arg0[arg1 >>> 0] = arg2; }; - imports.wbg.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_set_b7f1cf4fae26fe2a = function(arg0, arg1, arg2) { const ret = arg0.set(arg1, arg2); return ret; }; - imports.wbg.__wbg_setat_2a071a392643c10e = function(arg0, arg1) { + imports.wbg.__wbg_setat_f8fc70f546036b10 = function(arg0, arg1) { arg0.at = arg1; }; - imports.wbg.__wbg_setcreate_139bad94b2874fb5 = function(arg0, arg1) { + imports.wbg.__wbg_setcreate_1eb73f4ea713c1ad = function(arg0, arg1) { arg0.create = arg1 !== 0; }; - imports.wbg.__wbg_setcreate_4ca762e23d9f78da = function(arg0, arg1) { + imports.wbg.__wbg_setcreate_2d32aa4bbcd1d7af = function(arg0, arg1) { arg0.create = arg1 !== 0; }; - imports.wbg.__wbg_setonmessage_7530ae0596a01ccb = function(arg0, arg1) { + imports.wbg.__wbg_setonmessage_041fb8f4204d276c = function(arg0, arg1) { arg0.onmessage = arg1; }; - imports.wbg.__wbg_size_f9d54556ad844dc3 = function(arg0) { + imports.wbg.__wbg_size_af8602b0b838d49e = function(arg0) { const ret = arg0.size; return ret; }; - imports.wbg.__wbg_slice_972c243648c9fd2e = function(arg0, arg1, arg2) { + imports.wbg.__wbg_slice_974daea329f5c01d = function(arg0, arg1, arg2) { const ret = arg0.slice(arg1 >>> 0, arg2 >>> 0); return ret; }; @@ -811,87 +835,65 @@ function __wbg_get_imports() { getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }; - imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() { + imports.wbg.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function() { const ret = typeof global === 'undefined' ? null : global; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() { + imports.wbg.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function() { const ret = typeof globalThis === 'undefined' ? null : globalThis; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() { + imports.wbg.__wbg_static_accessor_SELF_995b214ae681ff99 = function() { const ret = typeof self === 'undefined' ? null : self; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() { + imports.wbg.__wbg_static_accessor_WINDOW_cde3890479c675ea = function() { const ret = typeof window === 'undefined' ? null : window; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_storage_07eb754b88898955 = function(arg0) { + imports.wbg.__wbg_storage_32b4ac688c114c3d = function(arg0) { const ret = arg0.storage; return ret; }; - imports.wbg.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_subarray_70fd07feefe14294 = function(arg0, arg1, arg2) { const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0); return ret; }; - imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) { - const ret = arg0.then(arg1); - return ret; - }; - imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_then_b33a773d723afa3e = function(arg0, arg1, arg2) { const ret = arg0.then(arg1, arg2); return ret; }; - imports.wbg.__wbg_toString_ba82658ec370add0 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_then_e22500defe16819f = function(arg0, arg1) { + const ret = arg0.then(arg1); + return ret; + }; + imports.wbg.__wbg_toString_2ca967683e5874bc = function() { return handleError(function (arg0, arg1) { const ret = arg0.toString(arg1); return ret; }, arguments) }; - imports.wbg.__wbg_toU8Array_7fa7fb3ae8554ad0 = function(arg0, arg1, arg2, arg3) { - JSArrayBufferCopy.toU8Array(arg0, arg1 >>> 0, arg2 >>> 0, arg3); - }; - imports.wbg.__wbg_toU8Slice_11519abfa5176ae4 = function(arg0, arg1, arg2, arg3) { - JSArrayBufferCopy.toU8Slice(arg0, arg1, arg2 >>> 0, arg3 >>> 0); - }; - imports.wbg.__wbg_truncate_29261a6365c72b01 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_truncate_0fe935591188a14c = function() { return handleError(function (arg0, arg1) { arg0.truncate(arg1 >>> 0); }, arguments) }; - imports.wbg.__wbg_truncate_4e1b09a0538f4ac4 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_truncate_7cddd971e3cf0a8c = function() { return handleError(function (arg0, arg1) { arg0.truncate(arg1); }, arguments) }; - imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) { + imports.wbg.__wbg_value_dd9372230531eade = function(arg0) { const ret = arg0.value; return ret; }; - imports.wbg.__wbg_view_fd8a56e8983f448d = function(arg0) { + imports.wbg.__wbg_view_91cc97d57ab30530 = function(arg0) { const ret = arg0.view; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; - imports.wbg.__wbg_warn_4ca3906c248c47c4 = function(arg0) { + imports.wbg.__wbg_warn_e2ada06313f92f09 = function(arg0) { console.warn(arg0); }; - imports.wbg.__wbg_write_530d3c84df874f53 = function() { return handleError(function (arg0, arg1, arg2, arg3) { - const ret = arg0.write(getArrayU8FromWasm0(arg1, arg2), arg3); - return ret; - }, arguments) }; - imports.wbg.__wbg_write_df271225cf2c4e20 = function() { return handleError(function (arg0, arg1, arg2) { - const ret = arg0.write(arg1, arg2); - return ret; - }, arguments) }; - imports.wbg.__wbindgen_as_number = function(arg0) { - const ret = +arg0; - return ret; - }; - imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) { - const ret = BigInt.asUintN(64, arg0); - return ret; - }; - imports.wbg.__wbindgen_boolean_get = function(arg0) { + imports.wbg.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function(arg0) { const v = arg0; - const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2; - return ret; + const ret = typeof(v) === 'boolean' ? v : undefined; + return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0; }; - imports.wbg.__wbindgen_cb_drop = function(arg0) { + imports.wbg.__wbg_wbindgencbdrop_eb10308566512b88 = function(arg0) { const obj = arg0.original; if (obj.cnt-- == 1) { obj.a = 0; @@ -900,27 +902,86 @@ function __wbg_get_imports() { const ret = false; return ret; }; - imports.wbg.__wbindgen_closure_wrapper157 = function(arg0, arg1, arg2) { - const ret = makeClosure(arg0, arg1, 9, __wbg_adapter_44); - return ret; - }; - imports.wbg.__wbindgen_closure_wrapper3998 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 862, __wbg_adapter_47); - return ret; - }; - imports.wbg.__wbindgen_debug_string = function(arg0, arg1) { + imports.wbg.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) { const ret = debugString(arg1); const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }; - imports.wbg.__wbindgen_error_new = function(arg0, arg1) { - const ret = new Error(getStringFromWasm0(arg0, arg1)); + imports.wbg.__wbg_wbindgenin_d7a1ee10933d2d55 = function(arg0, arg1) { + const ret = arg0 in arg1; return ret; }; - imports.wbg.__wbindgen_in = function(arg0, arg1) { - const ret = arg0 in arg1; + imports.wbg.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) { + const ret = typeof(arg0) === 'function'; + return ret; + }; + imports.wbg.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) { + const val = arg0; + const ret = typeof(val) === 'object' && val !== null; + return ret; + }; + imports.wbg.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) { + const ret = typeof(arg0) === 'string'; + return ret; + }; + imports.wbg.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function(arg0) { + const ret = arg0 === undefined; + return ret; + }; + imports.wbg.__wbg_wbindgenjsvallooseeq_9bec8c9be826bed1 = function(arg0, arg1) { + const ret = arg0 == arg1; + return ret; + }; + imports.wbg.__wbg_wbindgennumberget_f74b4c7525ac05cb = function(arg0, arg1) { + const obj = arg1; + const ret = typeof(obj) === 'number' ? obj : undefined; + getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true); + getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true); + }; + imports.wbg.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) { + const obj = arg1; + const ret = typeof(obj) === 'string' ? obj : undefined; + var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); + getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); + }; + imports.wbg.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) { + throw new Error(getStringFromWasm0(arg0, arg1)); + }; + imports.wbg.__wbg_write_9ac6a5f58a8c835c = function() { return handleError(function (arg0, arg1, arg2, arg3) { + const ret = arg0.write(getArrayU8FromWasm0(arg1, arg2), arg3); + return ret; + }, arguments) }; + imports.wbg.__wbg_write_c0e234eeb0039d0d = function() { return handleError(function (arg0, arg1, arg2) { + const ret = arg0.write(arg1, arg2); + return ret; + }, arguments) }; + imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) { + // Cast intrinsic for `Ref(String) -> Externref`. + const ret = getStringFromWasm0(arg0, arg1); + return ret; + }; + imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) { + // Cast intrinsic for `U64 -> Externref`. + const ret = BigInt.asUintN(64, arg0); + return ret; + }; + imports.wbg.__wbindgen_cast_4fef663bf350536e = function(arg0, arg1) { + // Cast intrinsic for `Closure(Closure { dtor_idx: 100, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 101, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. + const ret = makeClosure(arg0, arg1, 100, __wbg_adapter_12); + return ret; + }; + imports.wbg.__wbindgen_cast_779c8bccf5bc9dbb = function(arg0, arg1) { + // Cast intrinsic for `Closure(Closure { dtor_idx: 857, function: Function { arguments: [Externref], shim_idx: 858, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. + const ret = makeMutClosure(arg0, arg1, 857, __wbg_adapter_15); + return ret; + }; + imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) { + // Cast intrinsic for `F64 -> Externref`. + const ret = arg0; return ret; }; imports.wbg.__wbindgen_init_externref_table = function() { @@ -933,56 +994,6 @@ function __wbg_get_imports() { table.set(offset + 3, false); ; }; - imports.wbg.__wbindgen_is_function = function(arg0) { - const ret = typeof(arg0) === 'function'; - return ret; - }; - imports.wbg.__wbindgen_is_object = function(arg0) { - const val = arg0; - const ret = typeof(val) === 'object' && val !== null; - return ret; - }; - imports.wbg.__wbindgen_is_string = function(arg0) { - const ret = typeof(arg0) === 'string'; - return ret; - }; - imports.wbg.__wbindgen_is_undefined = function(arg0) { - const ret = arg0 === undefined; - return ret; - }; - imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) { - const ret = arg0 == arg1; - return ret; - }; - imports.wbg.__wbindgen_memory = function() { - const ret = wasm.memory; - return ret; - }; - imports.wbg.__wbindgen_number_get = function(arg0, arg1) { - const obj = arg1; - const ret = typeof(obj) === 'number' ? obj : undefined; - getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true); - }; - imports.wbg.__wbindgen_number_new = function(arg0) { - const ret = arg0; - return ret; - }; - imports.wbg.__wbindgen_string_get = function(arg0, arg1) { - const obj = arg1; - const ret = typeof(obj) === 'string' ? obj : undefined; - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }; - imports.wbg.__wbindgen_string_new = function(arg0, arg1) { - const ret = getStringFromWasm0(arg0, arg1); - return ret; - }; - imports.wbg.__wbindgen_throw = function(arg0, arg1) { - throw new Error(getStringFromWasm0(arg0, arg1)); - }; return imports; } diff --git a/sqlite3mc_bg.wasm b/sqlite3mc_bg.wasm index abb2c28..b9870a5 100644 Binary files a/sqlite3mc_bg.wasm and b/sqlite3mc_bg.wasm differ