|
|
@ -48,6 +48,26 @@ function addHeapObject(obj) { |
|
|
|
return idx; |
|
|
|
} |
|
|
|
|
|
|
|
function isLikeNone(x) { |
|
|
|
return x === undefined || x === null; |
|
|
|
} |
|
|
|
|
|
|
|
let cachegetFloat64Memory0 = null; |
|
|
|
function getFloat64Memory0() { |
|
|
|
if (cachegetFloat64Memory0 === null || cachegetFloat64Memory0.buffer !== wasm.memory.buffer) { |
|
|
|
cachegetFloat64Memory0 = new Float64Array(wasm.memory.buffer); |
|
|
|
} |
|
|
|
return cachegetFloat64Memory0; |
|
|
|
} |
|
|
|
|
|
|
|
let cachegetInt32Memory0 = null; |
|
|
|
function getInt32Memory0() { |
|
|
|
if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== wasm.memory.buffer) { |
|
|
|
cachegetInt32Memory0 = new Int32Array(wasm.memory.buffer); |
|
|
|
} |
|
|
|
return cachegetInt32Memory0; |
|
|
|
} |
|
|
|
|
|
|
|
function debugString(val) { |
|
|
|
// primitive types
|
|
|
|
const type = typeof val; |
|
|
@ -167,14 +187,6 @@ function passStringToWasm0(arg, malloc, realloc) { |
|
|
|
WASM_VECTOR_LEN = offset; |
|
|
|
return ptr; |
|
|
|
} |
|
|
|
|
|
|
|
let cachegetInt32Memory0 = null; |
|
|
|
function getInt32Memory0() { |
|
|
|
if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== wasm.memory.buffer) { |
|
|
|
cachegetInt32Memory0 = new Int32Array(wasm.memory.buffer); |
|
|
|
} |
|
|
|
return cachegetInt32Memory0; |
|
|
|
} |
|
|
|
/** |
|
|
|
* @param {string} canvas_id |
|
|
|
* @returns {State} |
|
|
@ -186,6 +198,15 @@ __exports.new_webgl_gui = function(canvas_id) { |
|
|
|
return State.__wrap(ret); |
|
|
|
}; |
|
|
|
|
|
|
|
/** |
|
|
|
* @param {string} canvas_id |
|
|
|
*/ |
|
|
|
__exports.resize_to_screen_size = function(canvas_id) { |
|
|
|
var ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); |
|
|
|
var len0 = WASM_VECTOR_LEN; |
|
|
|
wasm.resize_to_screen_size(ptr0, len0); |
|
|
|
}; |
|
|
|
|
|
|
|
function _assertClass(instance, klass) { |
|
|
|
if (!(instance instanceof klass)) { |
|
|
|
throw new Error(`expected instance of ${klass.name}`); |
|
|
@ -195,26 +216,14 @@ function _assertClass(instance, klass) { |
|
|
|
/** |
|
|
|
* @param {State} state |
|
|
|
* @param {string} web_input_json |
|
|
|
* @returns {string} |
|
|
|
*/ |
|
|
|
__exports.run_gui = function(state, web_input_json) { |
|
|
|
try { |
|
|
|
_assertClass(state, State); |
|
|
|
var ptr0 = passStringToWasm0(web_input_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); |
|
|
|
var len0 = WASM_VECTOR_LEN; |
|
|
|
wasm.run_gui(8, state.ptr, ptr0, len0); |
|
|
|
var r0 = getInt32Memory0()[8 / 4 + 0]; |
|
|
|
var r1 = getInt32Memory0()[8 / 4 + 1]; |
|
|
|
return getStringFromWasm0(r0, r1); |
|
|
|
} finally { |
|
|
|
wasm.__wbindgen_free(r0, r1); |
|
|
|
} |
|
|
|
_assertClass(state, State); |
|
|
|
var ptr0 = passStringToWasm0(web_input_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); |
|
|
|
var len0 = WASM_VECTOR_LEN; |
|
|
|
wasm.run_gui(state.ptr, ptr0, len0); |
|
|
|
}; |
|
|
|
|
|
|
|
function isLikeNone(x) { |
|
|
|
return x === undefined || x === null; |
|
|
|
} |
|
|
|
|
|
|
|
function handleError(f) { |
|
|
|
return function () { |
|
|
|
try { |
|
|
@ -301,184 +310,228 @@ async function init(input) { |
|
|
|
var ret = getStringFromWasm0(arg0, arg1); |
|
|
|
return addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_instanceof_Window_17fdb5cd280d476d = function(arg0) { |
|
|
|
imports.wbg.__wbg_instanceof_Window_0e8decd0a6179699 = function(arg0) { |
|
|
|
var ret = getObject(arg0) instanceof Window; |
|
|
|
return ret; |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_document_c26d0f423c143e0c = function(arg0) { |
|
|
|
imports.wbg.__wbg_document_76c349f54c28c8fa = function(arg0) { |
|
|
|
var ret = getObject(arg0).document; |
|
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_performance_781c00e4226de6c4 = function(arg0) { |
|
|
|
imports.wbg.__wbg_location_9b266239ee5a222a = function(arg0) { |
|
|
|
var ret = getObject(arg0).location; |
|
|
|
return addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_innerWidth_17617548d79db8b4 = handleError(function(arg0) { |
|
|
|
var ret = getObject(arg0).innerWidth; |
|
|
|
return addHeapObject(ret); |
|
|
|
}); |
|
|
|
imports.wbg.__wbg_innerHeight_d010431b496bbadb = handleError(function(arg0) { |
|
|
|
var ret = getObject(arg0).innerHeight; |
|
|
|
return addHeapObject(ret); |
|
|
|
}); |
|
|
|
imports.wbg.__wbg_devicePixelRatio_81f8802ff64194df = function(arg0) { |
|
|
|
var ret = getObject(arg0).devicePixelRatio; |
|
|
|
return ret; |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_performance_7aa28f53ba322a5a = function(arg0) { |
|
|
|
var ret = getObject(arg0).performance; |
|
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_localStorage_09146b4f48d49bc9 = handleError(function(arg0) { |
|
|
|
imports.wbg.__wbg_localStorage_62f777b1184f4bea = handleError(function(arg0) { |
|
|
|
var ret = getObject(arg0).localStorage; |
|
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret); |
|
|
|
}); |
|
|
|
imports.wbg.__wbg_getElementById_df597d226f179219 = function(arg0, arg1, arg2) { |
|
|
|
imports.wbg.__wbg_open_52406b79476e8f5c = handleError(function(arg0, arg1, arg2, arg3, arg4) { |
|
|
|
var ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); |
|
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret); |
|
|
|
}); |
|
|
|
imports.wbg.__wbg_body_ca5c7fc933a74206 = function(arg0) { |
|
|
|
var ret = getObject(arg0).body; |
|
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_getElementById_35de356b82960e7f = function(arg0, arg1, arg2) { |
|
|
|
var ret = getObject(arg0).getElementById(getStringFromWasm0(arg1, arg2)); |
|
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_instanceof_WebGlRenderingContext_f732dd95c50b903a = function(arg0) { |
|
|
|
imports.wbg.__wbg_getItem_5a53c566950c2181 = handleError(function(arg0, arg1, arg2, arg3) { |
|
|
|
var ret = getObject(arg1).getItem(getStringFromWasm0(arg2, arg3)); |
|
|
|
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); |
|
|
|
var len0 = WASM_VECTOR_LEN; |
|
|
|
getInt32Memory0()[arg0 / 4 + 1] = len0; |
|
|
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0; |
|
|
|
}); |
|
|
|
imports.wbg.__wbg_setItem_6884e4d52a076b78 = handleError(function(arg0, arg1, arg2, arg3, arg4) { |
|
|
|
getObject(arg0).setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); |
|
|
|
}); |
|
|
|
imports.wbg.__wbg_setProperty_3090dd7650e67dd9 = handleError(function(arg0, arg1, arg2, arg3, arg4) { |
|
|
|
getObject(arg0).setProperty(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); |
|
|
|
}); |
|
|
|
imports.wbg.__wbg_instanceof_WebGlRenderingContext_4dbaf147f8c72285 = function(arg0) { |
|
|
|
var ret = getObject(arg0) instanceof WebGLRenderingContext; |
|
|
|
return ret; |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_drawingBufferWidth_f6e2e679bef8d30c = function(arg0) { |
|
|
|
imports.wbg.__wbg_drawingBufferWidth_d15574dca0dbf918 = function(arg0) { |
|
|
|
var ret = getObject(arg0).drawingBufferWidth; |
|
|
|
return ret; |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_drawingBufferHeight_53a875c847d3f27e = function(arg0) { |
|
|
|
imports.wbg.__wbg_drawingBufferHeight_64716b9e5a2d23f9 = function(arg0) { |
|
|
|
var ret = getObject(arg0).drawingBufferHeight; |
|
|
|
return ret; |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_bufferData_a513e51e685294ae = function(arg0, arg1, arg2, arg3) { |
|
|
|
imports.wbg.__wbg_bufferData_7c335d1d31ac7268 = function(arg0, arg1, arg2, arg3) { |
|
|
|
getObject(arg0).bufferData(arg1 >>> 0, getObject(arg2), arg3 >>> 0); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_texImage2D_f4f837ad2dcc6a75 = handleError(function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) { |
|
|
|
imports.wbg.__wbg_texImage2D_b9580f442e65b12c = handleError(function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) { |
|
|
|
getObject(arg0).texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9 === 0 ? undefined : getArrayU8FromWasm0(arg9, arg10)); |
|
|
|
}); |
|
|
|
imports.wbg.__wbg_activeTexture_ee6eed2472803dd2 = function(arg0, arg1) { |
|
|
|
imports.wbg.__wbg_activeTexture_98659cb2d4378082 = function(arg0, arg1) { |
|
|
|
getObject(arg0).activeTexture(arg1 >>> 0); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_attachShader_c2f7771e6f4b91d8 = function(arg0, arg1, arg2) { |
|
|
|
imports.wbg.__wbg_attachShader_7abea275e2bef18f = function(arg0, arg1, arg2) { |
|
|
|
getObject(arg0).attachShader(getObject(arg1), getObject(arg2)); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_bindBuffer_f4ad79795655c1c4 = function(arg0, arg1, arg2) { |
|
|
|
imports.wbg.__wbg_bindBuffer_213222637184d14a = function(arg0, arg1, arg2) { |
|
|
|
getObject(arg0).bindBuffer(arg1 >>> 0, getObject(arg2)); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_bindTexture_751d66bbae4822ab = function(arg0, arg1, arg2) { |
|
|
|
imports.wbg.__wbg_bindTexture_100465c6a2ac91a4 = function(arg0, arg1, arg2) { |
|
|
|
getObject(arg0).bindTexture(arg1 >>> 0, getObject(arg2)); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_blendFunc_e6775dade5e99b3e = function(arg0, arg1, arg2) { |
|
|
|
imports.wbg.__wbg_blendFunc_3a8cc938ef99e93f = function(arg0, arg1, arg2) { |
|
|
|
getObject(arg0).blendFunc(arg1 >>> 0, arg2 >>> 0); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_clear_42b42c27d041ce11 = function(arg0, arg1) { |
|
|
|
imports.wbg.__wbg_clear_fca4f400fe29d8eb = function(arg0, arg1) { |
|
|
|
getObject(arg0).clear(arg1 >>> 0); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_clearColor_ba6ba6886092ab6a = function(arg0, arg1, arg2, arg3, arg4) { |
|
|
|
imports.wbg.__wbg_clearColor_d2a3f875ec95af09 = function(arg0, arg1, arg2, arg3, arg4) { |
|
|
|
getObject(arg0).clearColor(arg1, arg2, arg3, arg4); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_compileShader_8aec8947f553f5b6 = function(arg0, arg1) { |
|
|
|
imports.wbg.__wbg_compileShader_836d2f5f9711cad1 = function(arg0, arg1) { |
|
|
|
getObject(arg0).compileShader(getObject(arg1)); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_createBuffer_f26187e1b465a677 = function(arg0) { |
|
|
|
imports.wbg.__wbg_createBuffer_62053581fee0bc61 = function(arg0) { |
|
|
|
var ret = getObject(arg0).createBuffer(); |
|
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_createProgram_10f7bf07e21fe904 = function(arg0) { |
|
|
|
imports.wbg.__wbg_createProgram_f493c0c083100a0d = function(arg0) { |
|
|
|
var ret = getObject(arg0).createProgram(); |
|
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_createShader_4060106dc88c8bca = function(arg0, arg1) { |
|
|
|
imports.wbg.__wbg_createShader_21f7c586da404166 = function(arg0, arg1) { |
|
|
|
var ret = getObject(arg0).createShader(arg1 >>> 0); |
|
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_createTexture_d7a4df257a9410a7 = function(arg0) { |
|
|
|
imports.wbg.__wbg_createTexture_0980984dcf341648 = function(arg0) { |
|
|
|
var ret = getObject(arg0).createTexture(); |
|
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_drawElements_90d9e4b571f4de3d = function(arg0, arg1, arg2, arg3, arg4) { |
|
|
|
imports.wbg.__wbg_drawElements_723792382868b794 = function(arg0, arg1, arg2, arg3, arg4) { |
|
|
|
getObject(arg0).drawElements(arg1 >>> 0, arg2, arg3 >>> 0, arg4); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_enable_24e0ca734ee94d76 = function(arg0, arg1) { |
|
|
|
imports.wbg.__wbg_enable_0ffb8209df59b6e9 = function(arg0, arg1) { |
|
|
|
getObject(arg0).enable(arg1 >>> 0); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_enableVertexAttribArray_2e2bfba7f3a5fb74 = function(arg0, arg1) { |
|
|
|
imports.wbg.__wbg_enableVertexAttribArray_a5f053ba5a4c63f8 = function(arg0, arg1) { |
|
|
|
getObject(arg0).enableVertexAttribArray(arg1 >>> 0); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_getAttribLocation_ea61e93124c45a64 = function(arg0, arg1, arg2, arg3) { |
|
|
|
imports.wbg.__wbg_getAttribLocation_742edd714d13137e = function(arg0, arg1, arg2, arg3) { |
|
|
|
var ret = getObject(arg0).getAttribLocation(getObject(arg1), getStringFromWasm0(arg2, arg3)); |
|
|
|
return ret; |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_getProgramInfoLog_ebcdc102c402de8d = function(arg0, arg1, arg2) { |
|
|
|
imports.wbg.__wbg_getProgramInfoLog_29ce85a2de692138 = function(arg0, arg1, arg2) { |
|
|
|
var ret = getObject(arg1).getProgramInfoLog(getObject(arg2)); |
|
|
|
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); |
|
|
|
var len0 = WASM_VECTOR_LEN; |
|
|
|
getInt32Memory0()[arg0 / 4 + 1] = len0; |
|
|
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0; |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_getProgramParameter_02e369d0fe1637e6 = function(arg0, arg1, arg2) { |
|
|
|
imports.wbg.__wbg_getProgramParameter_40f2b936702245fa = function(arg0, arg1, arg2) { |
|
|
|
var ret = getObject(arg0).getProgramParameter(getObject(arg1), arg2 >>> 0); |
|
|
|
return addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_getShaderInfoLog_932172511c0dfdb7 = function(arg0, arg1, arg2) { |
|
|
|
imports.wbg.__wbg_getShaderInfoLog_de2b10efd38974b9 = function(arg0, arg1, arg2) { |
|
|
|
var ret = getObject(arg1).getShaderInfoLog(getObject(arg2)); |
|
|
|
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); |
|
|
|
var len0 = WASM_VECTOR_LEN; |
|
|
|
getInt32Memory0()[arg0 / 4 + 1] = len0; |
|
|
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0; |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_getShaderParameter_4306f019f7eb9f82 = function(arg0, arg1, arg2) { |
|
|
|
imports.wbg.__wbg_getShaderParameter_dcc11a2ddcfa8846 = function(arg0, arg1, arg2) { |
|
|
|
var ret = getObject(arg0).getShaderParameter(getObject(arg1), arg2 >>> 0); |
|
|
|
return addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_getUniformLocation_277279212040ec65 = function(arg0, arg1, arg2, arg3) { |
|
|
|
imports.wbg.__wbg_getUniformLocation_8d9e8ecae0d977a7 = function(arg0, arg1, arg2, arg3) { |
|
|
|
var ret = getObject(arg0).getUniformLocation(getObject(arg1), getStringFromWasm0(arg2, arg3)); |
|
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_linkProgram_9258ef1fcd3afc43 = function(arg0, arg1) { |
|
|
|
imports.wbg.__wbg_linkProgram_eadfa937deac04bc = function(arg0, arg1) { |
|
|
|
getObject(arg0).linkProgram(getObject(arg1)); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_shaderSource_ef8be775578bf902 = function(arg0, arg1, arg2, arg3) { |
|
|
|
imports.wbg.__wbg_scissor_d14e3ca37a6c3f5f = function(arg0, arg1, arg2, arg3, arg4) { |
|
|
|
getObject(arg0).scissor(arg1, arg2, arg3, arg4); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_shaderSource_8bde928aee653e1e = function(arg0, arg1, arg2, arg3) { |
|
|
|
getObject(arg0).shaderSource(getObject(arg1), getStringFromWasm0(arg2, arg3)); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_texParameteri_e2db4aa7650962eb = function(arg0, arg1, arg2, arg3) { |
|
|
|
imports.wbg.__wbg_texParameteri_909613a4b282cc0e = function(arg0, arg1, arg2, arg3) { |
|
|
|
getObject(arg0).texParameteri(arg1 >>> 0, arg2 >>> 0, arg3); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_uniform1i_595e085d9c3aadf2 = function(arg0, arg1, arg2) { |
|
|
|
imports.wbg.__wbg_uniform1i_6392f03e162d29dd = function(arg0, arg1, arg2) { |
|
|
|
getObject(arg0).uniform1i(getObject(arg1), arg2); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_uniform2f_ecf476a0ffa61198 = function(arg0, arg1, arg2, arg3) { |
|
|
|
imports.wbg.__wbg_uniform2f_c02c75fd5f501550 = function(arg0, arg1, arg2, arg3) { |
|
|
|
getObject(arg0).uniform2f(getObject(arg1), arg2, arg3); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_uniform4f_d948981d4592be6a = function(arg0, arg1, arg2, arg3, arg4, arg5) { |
|
|
|
getObject(arg0).uniform4f(getObject(arg1), arg2, arg3, arg4, arg5); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_useProgram_67487c5ef197884d = function(arg0, arg1) { |
|
|
|
imports.wbg.__wbg_useProgram_c189e979d24eebd0 = function(arg0, arg1) { |
|
|
|
getObject(arg0).useProgram(getObject(arg1)); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_vertexAttribPointer_52d124f67ddb572d = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) { |
|
|
|
imports.wbg.__wbg_vertexAttribPointer_39d650aa12b34b0a = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) { |
|
|
|
getObject(arg0).vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_viewport_5f99aff932f780aa = function(arg0, arg1, arg2, arg3, arg4) { |
|
|
|
imports.wbg.__wbg_viewport_eb68ba7f5198ca9c = function(arg0, arg1, arg2, arg3, arg4) { |
|
|
|
getObject(arg0).viewport(arg1, arg2, arg3, arg4); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_log_eb1108411ecc4a7f = function(arg0) { |
|
|
|
imports.wbg.__wbg_log_8c015365353ccd49 = function(arg0) { |
|
|
|
console.log(getObject(arg0)); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_now_43100dbb52857cc6 = function(arg0) { |
|
|
|
imports.wbg.__wbg_style_08224ec396c218e8 = function(arg0) { |
|
|
|
var ret = getObject(arg0).style; |
|
|
|
return addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_hash_807752e2195bb755 = handleError(function(arg0, arg1) { |
|
|
|
var ret = getObject(arg1).hash; |
|
|
|
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); |
|
|
|
var len0 = WASM_VECTOR_LEN; |
|
|
|
getInt32Memory0()[arg0 / 4 + 1] = len0; |
|
|
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0; |
|
|
|
}); |
|
|
|
imports.wbg.__wbg_now_66c779566d9324ca = function(arg0) { |
|
|
|
var ret = getObject(arg0).now(); |
|
|
|
return ret; |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_instanceof_HtmlCanvasElement_ff7be16a6a6bdf51 = function(arg0) { |
|
|
|
imports.wbg.__wbg_instanceof_HtmlCanvasElement_0d5b3d4264830667 = function(arg0) { |
|
|
|
var ret = getObject(arg0) instanceof HTMLCanvasElement; |
|
|
|
return ret; |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_width_aeeb90e24b778e64 = function(arg0) { |
|
|
|
imports.wbg.__wbg_width_56afa08c5d6a4ccc = function(arg0) { |
|
|
|
var ret = getObject(arg0).width; |
|
|
|
return ret; |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_height_66b10992a66b71e3 = function(arg0) { |
|
|
|
imports.wbg.__wbg_setwidth_f14d289597bfbc0c = function(arg0, arg1) { |
|
|
|
getObject(arg0).width = arg1 >>> 0; |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_height_8f8f429d977ce11a = function(arg0) { |
|
|
|
var ret = getObject(arg0).height; |
|
|
|
return ret; |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_getContext_0dcf09cb63d08f77 = handleError(function(arg0, arg1, arg2) { |
|
|
|
imports.wbg.__wbg_setheight_560464c89bcf1ef6 = function(arg0, arg1) { |
|
|
|
getObject(arg0).height = arg1 >>> 0; |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_getContext_36ec9e6a6037ed40 = handleError(function(arg0, arg1, arg2) { |
|
|
|
var ret = getObject(arg0).getContext(getStringFromWasm0(arg1, arg2)); |
|
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret); |
|
|
|
}); |
|
|
|
imports.wbg.__wbg_getItem_08cba7eaeaee125e = handleError(function(arg0, arg1, arg2, arg3) { |
|
|
|
var ret = getObject(arg1).getItem(getStringFromWasm0(arg2, arg3)); |
|
|
|
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); |
|
|
|
var len0 = WASM_VECTOR_LEN; |
|
|
|
getInt32Memory0()[arg0 / 4 + 1] = len0; |
|
|
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0; |
|
|
|
}); |
|
|
|
imports.wbg.__wbg_setItem_535f63295c5e7cec = handleError(function(arg0, arg1, arg2, arg3, arg4) { |
|
|
|
getObject(arg0).setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); |
|
|
|
}); |
|
|
|
imports.wbg.__wbg_call_1f85aaa5836dfb23 = handleError(function(arg0, arg1) { |
|
|
|
imports.wbg.__wbg_call_79ca0d435495a83a = handleError(function(arg0, arg1) { |
|
|
|
var ret = getObject(arg0).call(getObject(arg1)); |
|
|
|
return addHeapObject(ret); |
|
|
|
}); |
|
|
@ -486,23 +539,23 @@ async function init(input) { |
|
|
|
var ret = getObject(arg0); |
|
|
|
return addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_newnoargs_8aad4a6554f38345 = function(arg0, arg1) { |
|
|
|
imports.wbg.__wbg_newnoargs_db0587fa712f9acc = function(arg0, arg1) { |
|
|
|
var ret = new Function(getStringFromWasm0(arg0, arg1)); |
|
|
|
return addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_self_c0d3a5923e013647 = handleError(function() { |
|
|
|
imports.wbg.__wbg_self_d1b58dbab69d5bb1 = handleError(function() { |
|
|
|
var ret = self.self; |
|
|
|
return addHeapObject(ret); |
|
|
|
}); |
|
|
|
imports.wbg.__wbg_window_7ee6c8be3432927d = handleError(function() { |
|
|
|
imports.wbg.__wbg_window_de445cb18819ad4b = handleError(function() { |
|
|
|
var ret = window.window; |
|
|
|
return addHeapObject(ret); |
|
|
|
}); |
|
|
|
imports.wbg.__wbg_globalThis_c6de1d938e089cf0 = handleError(function() { |
|
|
|
imports.wbg.__wbg_globalThis_68afcb0d98f0112d = handleError(function() { |
|
|
|
var ret = globalThis.globalThis; |
|
|
|
return addHeapObject(ret); |
|
|
|
}); |
|
|
|
imports.wbg.__wbg_global_c9a01ce4680907f8 = handleError(function() { |
|
|
|
imports.wbg.__wbg_global_baed4e4fa850c0d0 = handleError(function() { |
|
|
|
var ret = global.global; |
|
|
|
return addHeapObject(ret); |
|
|
|
}); |
|
|
@ -510,46 +563,52 @@ async function init(input) { |
|
|
|
var ret = getObject(arg0) === undefined; |
|
|
|
return ret; |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_buffer_eb5185aa4a8e9c62 = function(arg0) { |
|
|
|
imports.wbg.__wbg_buffer_44855aefa83ea48c = function(arg0) { |
|
|
|
var ret = getObject(arg0).buffer; |
|
|
|
return addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_new_857f86306f3c9f8e = function(arg0) { |
|
|
|
imports.wbg.__wbg_new_99dceb228156b8f9 = function(arg0) { |
|
|
|
var ret = new Int16Array(getObject(arg0)); |
|
|
|
return addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_new_3d94e83f0a6bf252 = function(arg0) { |
|
|
|
imports.wbg.__wbg_new_04793d2c09ba060f = function(arg0) { |
|
|
|
var ret = new Uint8Array(getObject(arg0)); |
|
|
|
return addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_new_2818287a48d6df17 = function(arg0) { |
|
|
|
imports.wbg.__wbg_new_2ea4016337a3ea43 = function(arg0) { |
|
|
|
var ret = new Uint16Array(getObject(arg0)); |
|
|
|
return addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_new_470473004db6a289 = function(arg0) { |
|
|
|
imports.wbg.__wbg_new_05020d898fee9291 = function(arg0) { |
|
|
|
var ret = new Float32Array(getObject(arg0)); |
|
|
|
return addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_subarray_fde523a929c57e27 = function(arg0, arg1, arg2) { |
|
|
|
imports.wbg.__wbg_subarray_51ef53d36c4ab7da = function(arg0, arg1, arg2) { |
|
|
|
var ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0); |
|
|
|
return addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_subarray_cc54babc55409ee0 = function(arg0, arg1, arg2) { |
|
|
|
imports.wbg.__wbg_subarray_37f4436e082c6827 = function(arg0, arg1, arg2) { |
|
|
|
var ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0); |
|
|
|
return addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_subarray_709e8f734d7056df = function(arg0, arg1, arg2) { |
|
|
|
imports.wbg.__wbg_subarray_cdadaa7a73205e8a = function(arg0, arg1, arg2) { |
|
|
|
var ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0); |
|
|
|
return addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_subarray_618d0460088cd7d6 = function(arg0, arg1, arg2) { |
|
|
|
imports.wbg.__wbg_subarray_2b50278eea0fd249 = function(arg0, arg1, arg2) { |
|
|
|
var ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0); |
|
|
|
return addHeapObject(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbg_instanceof_Memory_ce2336191e545514 = function(arg0) { |
|
|
|
imports.wbg.__wbg_instanceof_Memory_39ad4e10adf95010 = function(arg0) { |
|
|
|
var ret = getObject(arg0) instanceof WebAssembly.Memory; |
|
|
|
return ret; |
|
|
|
}; |
|
|
|
imports.wbg.__wbindgen_number_get = function(arg0, arg1) { |
|
|
|
const obj = getObject(arg1); |
|
|
|
var ret = typeof(obj) === 'number' ? obj : undefined; |
|
|
|
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret; |
|
|
|
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret); |
|
|
|
}; |
|
|
|
imports.wbg.__wbindgen_boolean_get = function(arg0) { |
|
|
|
const v = getObject(arg0); |
|
|
|
var ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2; |
|
|
|