diff --git a/web/public/tetanes-web/8e694e2cf66511c1-initializer.js b/web/public/tetanes-web/804ea45b79221f1b-initializer.js similarity index 58% rename from web/public/tetanes-web/8e694e2cf66511c1-initializer.js rename to web/public/tetanes-web/804ea45b79221f1b-initializer.js index 821e8b4..d27bd5a 100644 --- a/web/public/tetanes-web/8e694e2cf66511c1-initializer.js +++ b/web/public/tetanes-web/804ea45b79221f1b-initializer.js @@ -1,8 +1,12 @@ export default function () { + const loading = document.getElementById("loading-status"); + const error = document.getElementById("error"); return { onStart: () => { console.log("Loading..."); console.time("initializer"); + loading.classList.remove("hidden"); + error.classList.add("hidden"); }, onProgress: ({ current, total }) => { if (!total) { @@ -14,13 +18,17 @@ export default function () { onComplete: () => { console.log("Loading... done!"); console.timeEnd("initializer"); + loading.classList.add("hidden"); }, - onSuccess: (wasm) => { + onSuccess: () => { console.log("Loading... successful!"); - console.log("WebAssembly: ", wasm); + error.classList.add("hidden"); }, onFailure: (error) => { console.error(`Loading... failed! ${error}`); + loading.classList.add("hidden"); + error.classList.remove("hidden"); + error.innerText = `Loading... failed! ${error}`; }, }; } diff --git a/web/public/tetanes-web/index.html b/web/public/tetanes-web/index.html index 35215f3..b73fc2e 100644 --- a/web/public/tetanes-web/index.html +++ b/web/public/tetanes-web/index.html @@ -1,4 +1,4 @@ - + @@ -6,274 +6,281 @@ TetaNES Web - - - - +const wasm = await __trunkInitializer(init, './tetanes-8c1626a2fc12c412_bg.wasm', 10705450, initializer()); - - - - + +window.wasmBindings = bindings; + + +dispatchEvent(new CustomEvent("TrunkApplicationStarted", {detail: {wasm}})); + + + + + + -

TetaNES

+

TetaNES

@@ -281,10 +288,14 @@

TetaNES

-

-
+

+
Loading... -

+ +

@@ -307,9 +318,38 @@

You can check out the code on - github. + github or download the + desktop version:

+ +

Controls

diff --git a/web/public/tetanes-web/tetanes-e336354b120eaa6c.js b/web/public/tetanes-web/tetanes-8c1626a2fc12c412.js similarity index 90% rename from web/public/tetanes-web/tetanes-e336354b120eaa6c.js rename to web/public/tetanes-web/tetanes-8c1626a2fc12c412.js index 81244af..a0029fb 100644 --- a/web/public/tetanes-web/tetanes-e336354b120eaa6c.js +++ b/web/public/tetanes-web/tetanes-8c1626a2fc12c412.js @@ -9,6 +9,15 @@ function getObject(idx) { return heap[idx]; } let heap_next = heap.length; +function addHeapObject(obj) { + if (heap_next === heap.length) heap.push(heap.length + 1); + const idx = heap_next; + heap_next = heap[idx]; + + heap[idx] = obj; + return idx; +} + function dropObject(idx) { if (idx < 132) return; heap[idx] = heap_next; @@ -21,16 +30,9 @@ function takeObject(idx) { return ret; } -function addHeapObject(obj) { - if (heap_next === heap.length) heap.push(heap.length + 1); - const idx = heap_next; - heap_next = heap[idx]; - - heap[idx] = obj; - return idx; -} +const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } ); -let WASM_VECTOR_LEN = 0; +if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); }; let cachedUint8Memory0 = null; @@ -41,6 +43,13 @@ function getUint8Memory0() { return cachedUint8Memory0; } +function getStringFromWasm0(ptr, len) { + ptr = ptr >>> 0; + return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); +} + +let WASM_VECTOR_LEN = 0; + const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } ); const encodeString = (typeof cachedTextEncoder.encodeInto === 'function' @@ -117,15 +126,6 @@ function getFloat64Memory0() { return cachedFloat64Memory0; } -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(getUint8Memory0().subarray(ptr, ptr + len)); -} - function debugString(val) { // primitive types const type = typeof val; @@ -222,15 +222,15 @@ function makeMutClosure(arg0, arg1, dtor, f) { return real; } function __wbg_adapter_34(arg0, arg1, arg2) { - wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1ca7e96420367277(arg0, arg1, addHeapObject(arg2)); + wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1d23731ee06f2295(arg0, arg1, addHeapObject(arg2)); } function __wbg_adapter_45(arg0, arg1) { - wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h29ef9db0ddfee35e(arg0, arg1); + wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd25cdae70c8ddef2(arg0, arg1); } -function __wbg_adapter_60(arg0, arg1, arg2, arg3) { - wasm._dyn_core__ops__function__FnMut__A_B___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h351b7a843089a900(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); +function __wbg_adapter_62(arg0, arg1, arg2, arg3) { + wasm._dyn_core__ops__function__FnMut__A_B___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7620da4812ea8f89(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); } function handleError(f, args) { @@ -241,6 +241,26 @@ function handleError(f, args) { } } +let cachedUint32Memory0 = null; + +function getUint32Memory0() { + if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) { + cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer); + } + return cachedUint32Memory0; +} + +function getArrayJsValueFromWasm0(ptr, len) { + ptr = ptr >>> 0; + const mem = getUint32Memory0(); + const slice = mem.subarray(ptr / 4, ptr / 4 + len); + const result = []; + for (let i = 0; i < slice.length; i++) { + result.push(takeObject(slice[i])); + } + return result; +} + let cachedFloat32Memory0 = null; function getFloat32Memory0() { @@ -260,15 +280,6 @@ function getArrayI32FromWasm0(ptr, len) { return getInt32Memory0().subarray(ptr / 4, ptr / 4 + len); } -let cachedUint32Memory0 = null; - -function getUint32Memory0() { - if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) { - cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer); - } - return cachedUint32Memory0; -} - function getArrayU32FromWasm0(ptr, len) { ptr = ptr >>> 0; return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len); @@ -308,6 +319,10 @@ async function __wbg_load(module, imports) { function __wbg_get_imports() { const imports = {}; imports.wbg = {}; + imports.wbg.__wbindgen_object_clone_ref = function(arg0) { + const ret = getObject(arg0); + return addHeapObject(ret); + }; imports.wbg.__wbg_instanceof_Window_f401953a2cf86220 = function(arg0) { let result; try { @@ -325,42 +340,28 @@ function __wbg_get_imports() { const ret = getObject(arg0).document; return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_Window_cc0273a5da2c36dc = function(arg0) { - const ret = getObject(arg0).Window; + imports.wbg.__wbg_addEventListener_53b787075bd5e003 = function() { return handleError(function (arg0, arg1, arg2, arg3) { + getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3)); + }, arguments) }; + imports.wbg.__wbg_new0_7d84e5b2cd9fdc73 = function() { + const ret = new Date(); return addHeapObject(ret); }; - imports.wbg.__wbindgen_is_undefined = function(arg0) { - const ret = getObject(arg0) === undefined; + imports.wbg.__wbg_getTime_2bc4375165f02d15 = function(arg0) { + const ret = getObject(arg0).getTime(); return ret; }; - imports.wbg.__wbindgen_object_clone_ref = function(arg0) { - const ret = getObject(arg0); + imports.wbg.__wbindgen_number_new = function(arg0) { + const ret = arg0; return addHeapObject(ret); }; - imports.wbg.__wbg_addEventListener_53b787075bd5e003 = function() { return handleError(function (arg0, arg1, arg2, arg3) { - getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3)); - }, arguments) }; - imports.wbg.__wbg_new_abda76e883ba8a5f = function() { - const ret = new Error(); + imports.wbg.__wbg_new_cf3ec55744a78578 = function(arg0) { + const ret = new Date(getObject(arg0)); return addHeapObject(ret); }; - imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) { - const ret = getObject(arg1).stack; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len1; - getInt32Memory0()[arg0 / 4 + 0] = ptr1; - }; - imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) { - let deferred0_0; - let deferred0_1; - try { - deferred0_0 = arg0; - deferred0_1 = arg1; - console.error(getStringFromWasm0(arg0, arg1)); - } finally { - wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); - } + imports.wbg.__wbg_getTimezoneOffset_38257122e236c190 = function(arg0) { + const ret = getObject(arg0).getTimezoneOffset(); + return ret; }; imports.wbg.__wbg_close_72f0f505a65b831b = function() { return handleError(function (arg0) { const ret = getObject(arg0).close(); @@ -374,6 +375,10 @@ function __wbg_get_imports() { const ret = getObject(arg0).setTimeout(getObject(arg1), arg2); return ret; }, arguments) }; + imports.wbg.__wbg_now_e0d8ec93dd25766a = function(arg0) { + const ret = getObject(arg0).now(); + return ret; + }; imports.wbg.__wbg_devicePixelRatio_efc553b59506f64c = function(arg0) { const ret = getObject(arg0).devicePixelRatio; return ret; @@ -391,6 +396,55 @@ function __wbg_get_imports() { imports.wbg.__wbg_focus_39d4b8ba8ff9df14 = function() { return handleError(function (arg0) { getObject(arg0).focus(); }, arguments) }; + imports.wbg.__wbg_crypto_1d1f22824a6a080c = function(arg0) { + const ret = getObject(arg0).crypto; + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_is_object = function(arg0) { + const val = getObject(arg0); + const ret = typeof(val) === 'object' && val !== null; + return ret; + }; + imports.wbg.__wbg_process_4a72847cc503995b = function(arg0) { + const ret = getObject(arg0).process; + return addHeapObject(ret); + }; + imports.wbg.__wbg_versions_f686565e586dd935 = function(arg0) { + const ret = getObject(arg0).versions; + return addHeapObject(ret); + }; + imports.wbg.__wbg_node_104a2ff8d6ea03a2 = function(arg0) { + const ret = getObject(arg0).node; + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_is_string = function(arg0) { + const ret = typeof(getObject(arg0)) === 'string'; + return ret; + }; + imports.wbg.__wbg_require_cca90b1a94a0255b = function() { return handleError(function () { + const ret = module.require; + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbindgen_is_function = function(arg0) { + const ret = typeof(getObject(arg0)) === 'function'; + return ret; + }; + imports.wbg.__wbindgen_string_new = function(arg0, arg1) { + const ret = getStringFromWasm0(arg0, arg1); + return addHeapObject(ret); + }; + imports.wbg.__wbg_call_b3ca7c6051f9bec1 = function() { return handleError(function (arg0, arg1, arg2) { + const ret = getObject(arg0).call(getObject(arg1), getObject(arg2)); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) { + const ret = getObject(arg0).msCrypto; + return addHeapObject(ret); + }; + imports.wbg.__wbg_newwithlength_e9b4878cebadb3d3 = function(arg0) { + const ret = new Uint8Array(arg0 >>> 0); + return addHeapObject(ret); + }; imports.wbg.__wbg_navigator_6c8fa55c5cc8796e = function(arg0) { const ret = getObject(arg0).navigator; return addHeapObject(ret); @@ -692,10 +746,6 @@ function __wbg_get_imports() { const ret = new Array(); return addHeapObject(ret); }; - imports.wbg.__wbindgen_number_new = function(arg0) { - const ret = arg0; - return addHeapObject(ret); - }; imports.wbg.__wbg_push_a5b05aedc7234f9f = function(arg0, arg1) { const ret = getObject(arg0).push(getObject(arg1)); return ret; @@ -981,6 +1031,10 @@ function __wbg_get_imports() { const ret = global.global; return addHeapObject(ret); }, arguments) }; + imports.wbg.__wbindgen_is_undefined = function(arg0) { + const ret = getObject(arg0) === undefined; + return ret; + }; imports.wbg.__wbg_newnoargs_e258087cd0daa0ea = function(arg0, arg1) { const ret = new Function(getStringFromWasm0(arg0, arg1)); return addHeapObject(ret); @@ -1000,69 +1054,16 @@ function __wbg_get_imports() { imports.wbg.__wbg_set_a47bac70306a19a7 = function(arg0, arg1, arg2) { getObject(arg0).set(getObject(arg1), arg2 >>> 0); }; - imports.wbg.__wbg_crypto_566d7465cdbb6b7a = function(arg0) { - const ret = getObject(arg0).crypto; - return addHeapObject(ret); - }; - imports.wbg.__wbindgen_is_object = function(arg0) { - const val = getObject(arg0); - const ret = typeof(val) === 'object' && val !== null; - return ret; - }; - imports.wbg.__wbg_process_dc09a8c7d59982f6 = function(arg0) { - const ret = getObject(arg0).process; - return addHeapObject(ret); - }; - imports.wbg.__wbg_versions_d98c6400c6ca2bd8 = function(arg0) { - const ret = getObject(arg0).versions; - return addHeapObject(ret); - }; - imports.wbg.__wbg_node_caaf83d002149bd5 = function(arg0) { - const ret = getObject(arg0).node; - return addHeapObject(ret); - }; - imports.wbg.__wbindgen_is_string = function(arg0) { - const ret = typeof(getObject(arg0)) === 'string'; - return ret; - }; - imports.wbg.__wbg_require_94a9da52636aacbf = function() { return handleError(function () { - const ret = module.require; - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbindgen_is_function = function(arg0) { - const ret = typeof(getObject(arg0)) === 'function'; - return ret; - }; - imports.wbg.__wbindgen_string_new = function(arg0, arg1) { - const ret = getStringFromWasm0(arg0, arg1); - return addHeapObject(ret); - }; - imports.wbg.__wbg_call_b3ca7c6051f9bec1 = function() { return handleError(function (arg0, arg1, arg2) { - const ret = getObject(arg0).call(getObject(arg1), getObject(arg2)); - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_msCrypto_0b84745e9245cdf6 = function(arg0) { - const ret = getObject(arg0).msCrypto; - return addHeapObject(ret); - }; - imports.wbg.__wbg_newwithlength_e9b4878cebadb3d3 = function(arg0) { - const ret = new Uint8Array(arg0 >>> 0); - return addHeapObject(ret); - }; - imports.wbg.__wbg_randomFillSync_290977693942bf03 = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) { getObject(arg0).randomFillSync(takeObject(arg1)); }, arguments) }; imports.wbg.__wbg_subarray_a1f73cd4b5b42fe1 = function(arg0, arg1, arg2) { const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0); return addHeapObject(ret); }; - imports.wbg.__wbg_getRandomValues_260cc23a41afad9a = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) { getObject(arg0).getRandomValues(getObject(arg1)); }, arguments) }; - imports.wbg.__wbg_performance_72f95fe5952939b5 = function() { - const ret = globalThis.performance; - return addHeapObject(ret); - }; imports.wbg.__wbg_mark_6045ef1772587264 = function() { return handleError(function (arg0, arg1, arg2) { getObject(arg0).mark(getStringFromWasm0(arg1, arg2)); }, arguments) }; @@ -1083,6 +1084,43 @@ function __wbg_get_imports() { imports.wbg.__wbg_warn_63bbae1730aead09 = function(arg0) { console.warn(getObject(arg0)); }; + imports.wbg.__wbg_performance_72f95fe5952939b5 = function() { + const ret = globalThis.performance; + return addHeapObject(ret); + }; + imports.wbg.__wbg_getElementById_c369ff43f0db99cf = function(arg0, arg1, arg2) { + const ret = getObject(arg0).getElementById(getStringFromWasm0(arg1, arg2)); + return isLikeNone(ret) ? 0 : addHeapObject(ret); + }; + imports.wbg.__wbg_classList_1f0528ee002e56d4 = function(arg0) { + const ret = getObject(arg0).classList; + return addHeapObject(ret); + }; + imports.wbg.__wbg_remove_698118fb25ab8150 = function() { return handleError(function (arg0, arg1, arg2) { + getObject(arg0).remove(getStringFromWasm0(arg1, arg2)); + }, arguments) }; + imports.wbg.__wbg_new_abda76e883ba8a5f = function() { + const ret = new Error(); + return addHeapObject(ret); + }; + imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) { + const ret = getObject(arg1).stack; + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }; + imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) { + let deferred0_0; + let deferred0_1; + try { + deferred0_0 = arg0; + deferred0_1 = arg1; + console.error(getStringFromWasm0(arg0, arg1)); + } finally { + wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); + } + }; imports.wbg.__wbindgen_cb_drop = function(arg0) { const obj = takeObject(arg0).original; if (obj.cnt-- == 1) { @@ -1143,17 +1181,23 @@ function __wbg_get_imports() { imports.wbg.__wbg_copyToChannel_c5200b51ff33f8a3 = function() { return handleError(function (arg0, arg1, arg2, arg3) { getObject(arg0).copyToChannel(getArrayF32FromWasm0(arg1, arg2), arg3); }, arguments) }; + imports.wbg.__wbg_getItem_164e8e5265095b87 = function() { return handleError(function (arg0, arg1, arg2, arg3) { + const ret = getObject(arg1).getItem(getStringFromWasm0(arg2, arg3)); + var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }, arguments) }; + imports.wbg.__wbg_Window_cc0273a5da2c36dc = function(arg0) { + const ret = getObject(arg0).Window; + return addHeapObject(ret); + }; imports.wbg.__wbg_isSecureContext_3dd59a5324a1c6d5 = function(arg0) { const ret = getObject(arg0).isSecureContext; return ret; }; - imports.wbg.__wbg_getElementById_c369ff43f0db99cf = function(arg0, arg1, arg2) { - const ret = getObject(arg0).getElementById(getStringFromWasm0(arg1, arg2)); - return isLikeNone(ret) ? 0 : addHeapObject(ret); - }; - imports.wbg.__wbg_classList_1f0528ee002e56d4 = function(arg0) { - const ret = getObject(arg0).classList; - return addHeapObject(ret); + imports.wbg.__wbg_setinnerHTML_26d69b59e1af99c7 = function(arg0, arg1, arg2) { + getObject(arg0).innerHTML = getStringFromWasm0(arg1, arg2); }; imports.wbg.__wbg_add_dcb05a8ba423bdac = function() { return handleError(function (arg0, arg1, arg2) { getObject(arg0).add(getStringFromWasm0(arg1, arg2)); @@ -1168,6 +1212,9 @@ function __wbg_get_imports() { const ret = result; return ret; }; + imports.wbg.__wbg_blur_51f7b635f18a0eec = function() { return handleError(function (arg0) { + getObject(arg0).blur(); + }, arguments) }; imports.wbg.__wbg_click_897b305b2e10b9cf = function(arg0) { getObject(arg0).click(); }; @@ -1181,6 +1228,24 @@ function __wbg_get_imports() { const ret = result; return ret; }; + imports.wbg.__wbg_new_81740750da40724f = 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_62(a, state0.b, arg0, arg1); + } finally { + state0.a = a; + } + }; + const ret = new Promise(cb0); + return addHeapObject(ret); + } finally { + state0.a = state0.b = 0; + } + }; imports.wbg.__wbg_createElement_8bae7856a4bb7411 = function() { return handleError(function (arg0, arg1, arg2) { const ret = getObject(arg0).createElement(getStringFromWasm0(arg1, arg2)); return addHeapObject(ret); @@ -1382,6 +1447,42 @@ function __wbg_get_imports() { const ret = getObject(arg0).repeat; return ret; }; + imports.wbg.__wbg_keys_91e412b4b222659f = function(arg0) { + const ret = Object.keys(getObject(arg0)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_removeItem_c0321116dc514363 = function() { return handleError(function (arg0, arg1, arg2) { + getObject(arg0).removeItem(getStringFromWasm0(arg1, arg2)); + }, arguments) }; + imports.wbg.__wbg_key_dccf9e8aa1315a8e = function(arg0, arg1) { + const ret = getObject(arg1).key; + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }; + imports.wbg.__wbg_stopPropagation_fa5b666049c9fd02 = function(arg0) { + getObject(arg0).stopPropagation(); + }; + imports.wbg.__wbg_clipboard_45ef2514e9ece120 = function(arg0) { + const ret = getObject(arg0).clipboard; + return isLikeNone(ret) ? 0 : addHeapObject(ret); + }; + imports.wbg.__wbg_writeText_4f1bf9bc5850bc26 = function(arg0, arg1, arg2) { + const ret = getObject(arg0).writeText(getStringFromWasm0(arg1, arg2)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_clipboardData_0427b2003659865a = function(arg0) { + const ret = getObject(arg0).clipboardData; + return isLikeNone(ret) ? 0 : addHeapObject(ret); + }; + imports.wbg.__wbg_getData_35c5974f5cd7e02c = function() { return handleError(function (arg0, arg1, arg2, arg3) { + const ret = getObject(arg1).getData(getStringFromWasm0(arg2, arg3)); + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }, arguments) }; imports.wbg.__wbg_new_c1e4a76f0b5c28b8 = function() { return handleError(function () { const ret = new FileReader(); return addHeapObject(ret); @@ -1401,6 +1502,13 @@ function __wbg_get_imports() { imports.wbg.__wbg_readAsArrayBuffer_4f4ed73c7dc0ce42 = function() { return handleError(function (arg0, arg1) { getObject(arg0).readAsArrayBuffer(getObject(arg1)); }, arguments) }; + imports.wbg.__wbg_name_f35eb93a73d94973 = function(arg0, arg1) { + const ret = getObject(arg1).name; + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }; imports.wbg.__wbg_setonload_0af77109dbfaa065 = function(arg0, arg1) { getObject(arg0).onload = getObject(arg1); }; @@ -1408,13 +1516,82 @@ function __wbg_get_imports() { const ret = getObject(arg0).result; return addHeapObject(ret); }, arguments) }; - imports.wbg.__wbg_name_f35eb93a73d94973 = function(arg0, arg1) { - const ret = getObject(arg1).name; + imports.wbg.__wbg_innerWidth_758af301ca4baa3e = function() { return handleError(function (arg0) { + const ret = getObject(arg0).innerWidth; + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_innerHeight_c1ef73925c3d3e9c = function() { return handleError(function (arg0) { + const ret = getObject(arg0).innerHeight; + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_instanceof_HtmlAnchorElement_5fc0eb2fbc8672d8 = function(arg0) { + let result; + try { + result = getObject(arg0) instanceof HTMLAnchorElement; + } catch (_) { + result = false; + } + const ret = result; + return ret; + }; + imports.wbg.__wbg_sethref_b0712139dd35e2fd = function(arg0, arg1, arg2) { + getObject(arg0).href = getStringFromWasm0(arg1, arg2); + }; + imports.wbg.__wbg_setinnerText_087b7e3f90d97466 = function(arg0, arg1, arg2) { + getObject(arg0).innerText = getStringFromWasm0(arg1, arg2); + }; + imports.wbg.__wbg_userAgent_e94c7cbcdac01fea = function() { return handleError(function (arg0, arg1) { + const ret = getObject(arg1).userAgent; + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }, arguments) }; + imports.wbg.__wbg_userAgentData_9d548ec3075a92ad = function(arg0) { + const ret = getObject(arg0).userAgentData; + return isLikeNone(ret) ? 0 : addHeapObject(ret); + }; + imports.wbg.__wbg_getHighEntropyValues_ec789642fc4e67be = function(arg0, arg1, arg2) { + var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice(); + wasm.__wbindgen_free(arg1, arg2 * 4, 4); + const ret = getObject(arg0).getHighEntropyValues(v0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_instanceof_HighEntropyValues_7e8c302a6108d644 = function(arg0) { + let result; + try { + result = getObject(arg0) instanceof Object; + } catch (_) { + result = false; + } + const ret = result; + return ret; + }; + imports.wbg.__wbg_mobile_3a9b9c488eb20623 = function(arg0) { + const ret = getObject(arg0).mobile; + return ret; + }; + imports.wbg.__wbg_platform_ac2d875e0a09e265 = function(arg0, arg1) { + const ret = getObject(arg1).platform; const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; getInt32Memory0()[arg0 / 4 + 1] = len1; getInt32Memory0()[arg0 / 4 + 0] = ptr1; }; + imports.wbg.__wbg_architecture_953742b2d21c0dc5 = function(arg0, arg1) { + const ret = getObject(arg1).architecture; + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }; + imports.wbg.__wbg_localStorage_e381d34d0c40c761 = function() { return handleError(function (arg0) { + const ret = getObject(arg0).localStorage; + return isLikeNone(ret) ? 0 : addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_setItem_ba2bb41d73dac079 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { + getObject(arg0).setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); + }, arguments) }; imports.wbg.__wbg_mark_bad820680b8580c2 = function() { return handleError(function (arg0, arg1, arg2, arg3) { getObject(arg0).mark(getStringFromWasm0(arg1, arg2), getObject(arg3)); }, arguments) }; @@ -1449,6 +1626,10 @@ function __wbg_get_imports() { imports.wbg.__wbindgen_throw = function(arg0, arg1) { throw new Error(getStringFromWasm0(arg0, arg1)); }; + imports.wbg.__wbg_then_a73caa9a87991566 = function(arg0, arg1, arg2) { + const ret = getObject(arg0).then(getObject(arg1), getObject(arg2)); + return addHeapObject(ret); + }; imports.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) { const ret = getObject(arg0).queueMicrotask; return addHeapObject(ret); @@ -1472,10 +1653,6 @@ function __wbg_get_imports() { const ret = getObject(arg0).performance; return addHeapObject(ret); }; - imports.wbg.__wbg_now_e0d8ec93dd25766a = function(arg0) { - const ret = getObject(arg0).now(); - return ret; - }; imports.wbg.__wbg_Window_ae070805b1226083 = function(arg0) { const ret = getObject(arg0).Window; return addHeapObject(ret); @@ -2065,13 +2242,6 @@ function __wbg_get_imports() { imports.wbg.__wbg_exitFullscreen_5679ad2b002921bd = function(arg0) { getObject(arg0).exitFullscreen(); }; - imports.wbg.__wbg_key_dccf9e8aa1315a8e = function(arg0, arg1) { - const ret = getObject(arg1).key; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len1; - getInt32Memory0()[arg0 / 4 + 0] = ptr1; - }; imports.wbg.__wbg_location_f7b033ddfc516739 = function(arg0) { const ret = getObject(arg0).location; return ret; @@ -2083,68 +2253,76 @@ function __wbg_get_imports() { getInt32Memory0()[arg0 / 4 + 1] = len1; getInt32Memory0()[arg0 / 4 + 0] = ptr1; }; - imports.wbg.__wbindgen_closure_wrapper539 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 214, __wbg_adapter_34); + imports.wbg.__wbindgen_closure_wrapper576 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 379, __wbg_adapter_34); + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_closure_wrapper578 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 379, __wbg_adapter_34); + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_closure_wrapper580 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 379, __wbg_adapter_34); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper541 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 214, __wbg_adapter_34); + imports.wbg.__wbindgen_closure_wrapper581 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 379, __wbg_adapter_34); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper543 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 214, __wbg_adapter_34); + imports.wbg.__wbindgen_closure_wrapper582 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 379, __wbg_adapter_34); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper544 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 214, __wbg_adapter_34); + imports.wbg.__wbindgen_closure_wrapper3382 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 379, __wbg_adapter_45); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper545 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 214, __wbg_adapter_34); + imports.wbg.__wbindgen_closure_wrapper4079 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 379, __wbg_adapter_34); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper3168 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 214, __wbg_adapter_45); + imports.wbg.__wbindgen_closure_wrapper4094 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 379, __wbg_adapter_34); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper3537 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 214, __wbg_adapter_34); + imports.wbg.__wbindgen_closure_wrapper4095 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 379, __wbg_adapter_34); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper3627 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 214, __wbg_adapter_45); + imports.wbg.__wbindgen_closure_wrapper4205 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 379, __wbg_adapter_45); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper3629 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 214, __wbg_adapter_34); + imports.wbg.__wbindgen_closure_wrapper4207 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 379, __wbg_adapter_34); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper3632 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 214, __wbg_adapter_34); + imports.wbg.__wbindgen_closure_wrapper4209 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 379, __wbg_adapter_34); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper3633 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 214, __wbg_adapter_34); + imports.wbg.__wbindgen_closure_wrapper4210 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 379, __wbg_adapter_34); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper3634 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 214, __wbg_adapter_34); + imports.wbg.__wbindgen_closure_wrapper4212 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 379, __wbg_adapter_62); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper3636 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 214, __wbg_adapter_60); + imports.wbg.__wbindgen_closure_wrapper4215 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 379, __wbg_adapter_34); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper3639 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 214, __wbg_adapter_34); + imports.wbg.__wbindgen_closure_wrapper4687 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 379, __wbg_adapter_34); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper4486 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 214, __wbg_adapter_34); + imports.wbg.__wbindgen_closure_wrapper5121 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 379, __wbg_adapter_34); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper7599 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 214, __wbg_adapter_34); + imports.wbg.__wbindgen_closure_wrapper8151 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 379, __wbg_adapter_34); return addHeapObject(ret); }; diff --git a/web/public/tetanes-web/tetanes-e336354b120eaa6c_bg.wasm b/web/public/tetanes-web/tetanes-8c1626a2fc12c412_bg.wasm similarity index 66% rename from web/public/tetanes-web/tetanes-e336354b120eaa6c_bg.wasm rename to web/public/tetanes-web/tetanes-8c1626a2fc12c412_bg.wasm index c937369..639289d 100644 Binary files a/web/public/tetanes-web/tetanes-e336354b120eaa6c_bg.wasm and b/web/public/tetanes-web/tetanes-8c1626a2fc12c412_bg.wasm differ