mirror of https://github.com/emilk/egui.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1584 lines
67 KiB
1584 lines
67 KiB
let wasm_bindgen;
|
|
(function() {
|
|
const __exports = {};
|
|
let wasm;
|
|
|
|
const heap = new Array(32).fill(undefined);
|
|
|
|
heap.push(undefined, null, true, false);
|
|
|
|
function getObject(idx) { return heap[idx]; }
|
|
|
|
let heap_next = heap.length;
|
|
|
|
function dropObject(idx) {
|
|
if (idx < 36) return;
|
|
heap[idx] = heap_next;
|
|
heap_next = idx;
|
|
}
|
|
|
|
function takeObject(idx) {
|
|
const ret = getObject(idx);
|
|
dropObject(idx);
|
|
return ret;
|
|
}
|
|
|
|
let WASM_VECTOR_LEN = 0;
|
|
|
|
let cachegetUint8Memory0 = null;
|
|
function getUint8Memory0() {
|
|
if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== wasm.memory.buffer) {
|
|
cachegetUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
}
|
|
return cachegetUint8Memory0;
|
|
}
|
|
|
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
|
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
? function (arg, view) {
|
|
return cachedTextEncoder.encodeInto(arg, view);
|
|
}
|
|
: function (arg, view) {
|
|
const buf = cachedTextEncoder.encode(arg);
|
|
view.set(buf);
|
|
return {
|
|
read: arg.length,
|
|
written: buf.length
|
|
};
|
|
});
|
|
|
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
|
|
if (realloc === undefined) {
|
|
const buf = cachedTextEncoder.encode(arg);
|
|
const ptr = malloc(buf.length);
|
|
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
WASM_VECTOR_LEN = buf.length;
|
|
return ptr;
|
|
}
|
|
|
|
let len = arg.length;
|
|
let ptr = malloc(len);
|
|
|
|
const mem = getUint8Memory0();
|
|
|
|
let offset = 0;
|
|
|
|
for (; offset < len; offset++) {
|
|
const code = arg.charCodeAt(offset);
|
|
if (code > 0x7F) break;
|
|
mem[ptr + offset] = code;
|
|
}
|
|
|
|
if (offset !== len) {
|
|
if (offset !== 0) {
|
|
arg = arg.slice(offset);
|
|
}
|
|
ptr = realloc(ptr, len, len = offset + arg.length * 3);
|
|
const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
|
|
const ret = encodeString(arg, view);
|
|
|
|
offset += ret.written;
|
|
}
|
|
|
|
WASM_VECTOR_LEN = offset;
|
|
return ptr;
|
|
}
|
|
|
|
function isLikeNone(x) {
|
|
return x === undefined || x === null;
|
|
}
|
|
|
|
let cachegetInt32Memory0 = null;
|
|
function getInt32Memory0() {
|
|
if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== wasm.memory.buffer) {
|
|
cachegetInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
}
|
|
return cachegetInt32Memory0;
|
|
}
|
|
|
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
|
|
cachedTextDecoder.decode();
|
|
|
|
function getStringFromWasm0(ptr, len) {
|
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
let cachegetFloat64Memory0 = null;
|
|
function getFloat64Memory0() {
|
|
if (cachegetFloat64Memory0 === null || cachegetFloat64Memory0.buffer !== wasm.memory.buffer) {
|
|
cachegetFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
}
|
|
return cachegetFloat64Memory0;
|
|
}
|
|
|
|
function debugString(val) {
|
|
// primitive types
|
|
const type = typeof val;
|
|
if (type == 'number' || type == 'boolean' || val == null) {
|
|
return `${val}`;
|
|
}
|
|
if (type == 'string') {
|
|
return `"${val}"`;
|
|
}
|
|
if (type == 'symbol') {
|
|
const description = val.description;
|
|
if (description == null) {
|
|
return 'Symbol';
|
|
} else {
|
|
return `Symbol(${description})`;
|
|
}
|
|
}
|
|
if (type == 'function') {
|
|
const name = val.name;
|
|
if (typeof name == 'string' && name.length > 0) {
|
|
return `Function(${name})`;
|
|
} else {
|
|
return 'Function';
|
|
}
|
|
}
|
|
// objects
|
|
if (Array.isArray(val)) {
|
|
const length = val.length;
|
|
let debug = '[';
|
|
if (length > 0) {
|
|
debug += debugString(val[0]);
|
|
}
|
|
for(let i = 1; i < length; i++) {
|
|
debug += ', ' + debugString(val[i]);
|
|
}
|
|
debug += ']';
|
|
return debug;
|
|
}
|
|
// Test for built-in
|
|
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
let className;
|
|
if (builtInMatches.length > 1) {
|
|
className = builtInMatches[1];
|
|
} else {
|
|
// Failed to match the standard '[object ClassName]'
|
|
return toString.call(val);
|
|
}
|
|
if (className == 'Object') {
|
|
// we're a user defined class or Object
|
|
// JSON.stringify avoids problems with cycles, and is generally much
|
|
// easier than looping through ownProperties of `val`.
|
|
try {
|
|
return 'Object(' + JSON.stringify(val) + ')';
|
|
} catch (_) {
|
|
return 'Object';
|
|
}
|
|
}
|
|
// errors
|
|
if (val instanceof Error) {
|
|
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
}
|
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
return className;
|
|
}
|
|
|
|
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_2.get(state.dtor)(a, state.b);
|
|
|
|
} else {
|
|
state.a = a;
|
|
}
|
|
}
|
|
};
|
|
real.original = state;
|
|
|
|
return real;
|
|
}
|
|
function __wbg_adapter_28(arg0, arg1) {
|
|
try {
|
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1a994ac62d7f09ed(retptr, arg0, arg1);
|
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
if (r1) {
|
|
throw takeObject(r0);
|
|
}
|
|
} finally {
|
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
}
|
|
}
|
|
|
|
function __wbg_adapter_31(arg0, arg1, arg2) {
|
|
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1ad4df80404e66c5(arg0, arg1, addHeapObject(arg2));
|
|
}
|
|
|
|
function __wbg_adapter_34(arg0, arg1, arg2) {
|
|
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1ad4df80404e66c5(arg0, arg1, addHeapObject(arg2));
|
|
}
|
|
|
|
function __wbg_adapter_37(arg0, arg1, arg2) {
|
|
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1ad4df80404e66c5(arg0, arg1, addHeapObject(arg2));
|
|
}
|
|
|
|
function __wbg_adapter_40(arg0, arg1) {
|
|
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hab0a29b7d3429481(arg0, arg1);
|
|
}
|
|
|
|
function __wbg_adapter_43(arg0, arg1, arg2) {
|
|
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1ad4df80404e66c5(arg0, arg1, addHeapObject(arg2));
|
|
}
|
|
|
|
function __wbg_adapter_46(arg0, arg1, arg2) {
|
|
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1ad4df80404e66c5(arg0, arg1, addHeapObject(arg2));
|
|
}
|
|
|
|
function __wbg_adapter_49(arg0, arg1, arg2) {
|
|
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1ad4df80404e66c5(arg0, arg1, addHeapObject(arg2));
|
|
}
|
|
|
|
function __wbg_adapter_52(arg0, arg1, arg2) {
|
|
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1ad4df80404e66c5(arg0, arg1, addHeapObject(arg2));
|
|
}
|
|
|
|
function __wbg_adapter_55(arg0, arg1, arg2) {
|
|
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1ad4df80404e66c5(arg0, arg1, addHeapObject(arg2));
|
|
}
|
|
|
|
function __wbg_adapter_58(arg0, arg1, arg2) {
|
|
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5cef6584e9ecc7ee(arg0, arg1, addHeapObject(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_2.get(state.dtor)(state.a, state.b);
|
|
state.a = 0;
|
|
|
|
}
|
|
}
|
|
};
|
|
real.original = state;
|
|
|
|
return real;
|
|
}
|
|
function __wbg_adapter_61(arg0, arg1, arg2) {
|
|
wasm._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7a180c79a20cae62(arg0, arg1, addHeapObject(arg2));
|
|
}
|
|
|
|
function __wbg_adapter_64(arg0, arg1, arg2) {
|
|
wasm._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7a180c79a20cae62(arg0, arg1, addHeapObject(arg2));
|
|
}
|
|
|
|
/**
|
|
* This is the entry-point for all the web-assembly.
|
|
* This is called once from the HTML.
|
|
* It loads the app, installs some callbacks, then returns.
|
|
* You can add more callbacks like this if you want to call in to your code.
|
|
* @param {string} canvas_id
|
|
*/
|
|
__exports.start = function(canvas_id) {
|
|
try {
|
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
var ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
var len0 = WASM_VECTOR_LEN;
|
|
wasm.start(retptr, ptr0, len0);
|
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
if (r1) {
|
|
throw takeObject(r0);
|
|
}
|
|
} finally {
|
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
}
|
|
};
|
|
|
|
function handleError(f, args) {
|
|
try {
|
|
return f.apply(this, args);
|
|
} catch (e) {
|
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
}
|
|
}
|
|
|
|
async function load(module, imports) {
|
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
try {
|
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
|
|
} catch (e) {
|
|
if (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 {
|
|
throw e;
|
|
}
|
|
}
|
|
}
|
|
|
|
const bytes = await module.arrayBuffer();
|
|
return await WebAssembly.instantiate(bytes, imports);
|
|
|
|
} else {
|
|
const instance = await WebAssembly.instantiate(module, imports);
|
|
|
|
if (instance instanceof WebAssembly.Instance) {
|
|
return { instance, module };
|
|
|
|
} else {
|
|
return instance;
|
|
}
|
|
}
|
|
}
|
|
|
|
async function init(input) {
|
|
if (typeof input === 'undefined') {
|
|
let src;
|
|
if (typeof document === 'undefined') {
|
|
src = location.href;
|
|
} else {
|
|
src = document.currentScript.src;
|
|
}
|
|
input = src.replace(/\.js$/, '_bg.wasm');
|
|
}
|
|
const imports = {};
|
|
imports.wbg = {};
|
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
takeObject(arg0);
|
|
};
|
|
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
const obj = takeObject(arg0).original;
|
|
if (obj.cnt-- == 1) {
|
|
obj.a = 0;
|
|
return true;
|
|
}
|
|
var ret = false;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
const obj = getObject(arg1);
|
|
var ret = typeof(obj) === 'string' ? obj : undefined;
|
|
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.__wbindgen_string_new = function(arg0, arg1) {
|
|
var ret = getStringFromWasm0(arg0, arg1);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_log_02e20a3c32305fb7 = function(arg0, arg1) {
|
|
try {
|
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
} finally {
|
|
wasm.__wbindgen_free(arg0, arg1);
|
|
}
|
|
};
|
|
imports.wbg.__wbg_log_5c7513aa8c164502 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
try {
|
|
console.log(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
} finally {
|
|
wasm.__wbindgen_free(arg0, arg1);
|
|
}
|
|
};
|
|
imports.wbg.__wbg_mark_abc7631bdced64f0 = function(arg0, arg1) {
|
|
performance.mark(getStringFromWasm0(arg0, arg1));
|
|
};
|
|
imports.wbg.__wbg_measure_c528ff64085b7146 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
try {
|
|
performance.measure(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
} finally {
|
|
wasm.__wbindgen_free(arg0, arg1);
|
|
wasm.__wbindgen_free(arg2, arg3);
|
|
}
|
|
}, arguments) };
|
|
imports.wbg.__wbg_new_693216e109162396 = function() {
|
|
var ret = new Error();
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_stack_0ddaca5d1abfb52f = function(arg0, arg1) {
|
|
var ret = getObject(arg1).stack;
|
|
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_error_09919627ac0992f5 = function(arg0, arg1) {
|
|
try {
|
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
} finally {
|
|
wasm.__wbindgen_free(arg0, arg1);
|
|
}
|
|
};
|
|
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;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_instanceof_WebGl2RenderingContext_df519ebc1fd4a55f = function(arg0) {
|
|
var ret = getObject(arg0) instanceof WebGL2RenderingContext;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_bindVertexArray_8020efc46272d6b1 = function(arg0, arg1) {
|
|
getObject(arg0).bindVertexArray(getObject(arg1));
|
|
};
|
|
imports.wbg.__wbg_bufferData_17b90d9499ee7889 = function(arg0, arg1, arg2, arg3) {
|
|
getObject(arg0).bufferData(arg1 >>> 0, getObject(arg2), arg3 >>> 0);
|
|
};
|
|
imports.wbg.__wbg_createVertexArray_ccfd68f784dda58d = function(arg0) {
|
|
var ret = getObject(arg0).createVertexArray();
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_texImage2D_40c3695cff5564ad = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
getObject(arg0).texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, getObject(arg9));
|
|
}, arguments) };
|
|
imports.wbg.__wbg_texSubImage2D_3225e265581d1641 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
getObject(arg0).texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, getObject(arg9));
|
|
}, arguments) };
|
|
imports.wbg.__wbg_texSubImage2D_b6e8bd62500957ed = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
getObject(arg0).texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
}, arguments) };
|
|
imports.wbg.__wbg_activeTexture_e07e910acea70faa = function(arg0, arg1) {
|
|
getObject(arg0).activeTexture(arg1 >>> 0);
|
|
};
|
|
imports.wbg.__wbg_attachShader_2e252ab2fda53d9b = function(arg0, arg1, arg2) {
|
|
getObject(arg0).attachShader(getObject(arg1), getObject(arg2));
|
|
};
|
|
imports.wbg.__wbg_bindBuffer_612af2c0d1623df9 = function(arg0, arg1, arg2) {
|
|
getObject(arg0).bindBuffer(arg1 >>> 0, getObject(arg2));
|
|
};
|
|
imports.wbg.__wbg_bindFramebuffer_f79f98a252b25421 = function(arg0, arg1, arg2) {
|
|
getObject(arg0).bindFramebuffer(arg1 >>> 0, getObject(arg2));
|
|
};
|
|
imports.wbg.__wbg_bindTexture_5de299363180ad48 = function(arg0, arg1, arg2) {
|
|
getObject(arg0).bindTexture(arg1 >>> 0, getObject(arg2));
|
|
};
|
|
imports.wbg.__wbg_blendEquation_3ddbe96827ea563c = function(arg0, arg1) {
|
|
getObject(arg0).blendEquation(arg1 >>> 0);
|
|
};
|
|
imports.wbg.__wbg_blendFuncSeparate_be76c74e24fb8c4b = function(arg0, arg1, arg2, arg3, arg4) {
|
|
getObject(arg0).blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
};
|
|
imports.wbg.__wbg_clear_4c5eed385310e256 = function(arg0, arg1) {
|
|
getObject(arg0).clear(arg1 >>> 0);
|
|
};
|
|
imports.wbg.__wbg_clearColor_d9d486c5ff20404c = function(arg0, arg1, arg2, arg3, arg4) {
|
|
getObject(arg0).clearColor(arg1, arg2, arg3, arg4);
|
|
};
|
|
imports.wbg.__wbg_compileShader_e224e94272352503 = function(arg0, arg1) {
|
|
getObject(arg0).compileShader(getObject(arg1));
|
|
};
|
|
imports.wbg.__wbg_createBuffer_564dc1c3c3f058b7 = function(arg0) {
|
|
var ret = getObject(arg0).createBuffer();
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_createFramebuffer_ca860b7155b412f2 = function(arg0) {
|
|
var ret = getObject(arg0).createFramebuffer();
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_createProgram_e9fa1d7669773667 = function(arg0) {
|
|
var ret = getObject(arg0).createProgram();
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_createShader_03233922e9b5ebf2 = function(arg0, arg1) {
|
|
var ret = getObject(arg0).createShader(arg1 >>> 0);
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_createTexture_7ee50a5b223f0511 = function(arg0) {
|
|
var ret = getObject(arg0).createTexture();
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_deleteShader_67c4f4b03b5c074a = function(arg0, arg1) {
|
|
getObject(arg0).deleteShader(getObject(arg1));
|
|
};
|
|
imports.wbg.__wbg_deleteTexture_b4643da89823c0c1 = function(arg0, arg1) {
|
|
getObject(arg0).deleteTexture(getObject(arg1));
|
|
};
|
|
imports.wbg.__wbg_detachShader_c7115572e0c5095c = function(arg0, arg1, arg2) {
|
|
getObject(arg0).detachShader(getObject(arg1), getObject(arg2));
|
|
};
|
|
imports.wbg.__wbg_disable_e61fb08d6c7131e4 = function(arg0, arg1) {
|
|
getObject(arg0).disable(arg1 >>> 0);
|
|
};
|
|
imports.wbg.__wbg_disableVertexAttribArray_4e8dd2973a2f796d = function(arg0, arg1) {
|
|
getObject(arg0).disableVertexAttribArray(arg1 >>> 0);
|
|
};
|
|
imports.wbg.__wbg_drawElements_8f3cfd28610fd46e = function(arg0, arg1, arg2, arg3, arg4) {
|
|
getObject(arg0).drawElements(arg1 >>> 0, arg2, arg3 >>> 0, arg4);
|
|
};
|
|
imports.wbg.__wbg_enable_8e888a63831a3fe5 = function(arg0, arg1) {
|
|
getObject(arg0).enable(arg1 >>> 0);
|
|
};
|
|
imports.wbg.__wbg_enableVertexAttribArray_d1b2636395bdaa7a = function(arg0, arg1) {
|
|
getObject(arg0).enableVertexAttribArray(arg1 >>> 0);
|
|
};
|
|
imports.wbg.__wbg_framebufferTexture2D_ceadbfd128a6e565 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
getObject(arg0).framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, getObject(arg4), arg5);
|
|
};
|
|
imports.wbg.__wbg_getAttribLocation_7f79c73e983e47cd = function(arg0, arg1, arg2, arg3) {
|
|
var ret = getObject(arg0).getAttribLocation(getObject(arg1), getStringFromWasm0(arg2, arg3));
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_getError_a89e4527e1dad18c = function(arg0) {
|
|
var ret = getObject(arg0).getError();
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_getExtension_aa055f67731688a2 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
var ret = getObject(arg0).getExtension(getStringFromWasm0(arg1, arg2));
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
}, arguments) };
|
|
imports.wbg.__wbg_getParameter_ecc6d50165f87cce = function() { return handleError(function (arg0, arg1) {
|
|
var ret = getObject(arg0).getParameter(arg1 >>> 0);
|
|
return addHeapObject(ret);
|
|
}, arguments) };
|
|
imports.wbg.__wbg_getProgramInfoLog_dbd8d8cedcc8cdcc = 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_4b9d43902599c2d2 = function(arg0, arg1, arg2) {
|
|
var ret = getObject(arg0).getProgramParameter(getObject(arg1), arg2 >>> 0);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_getShaderInfoLog_5aab05280bd0fe1b = 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_e5f7e371d4eec000 = function(arg0, arg1, arg2) {
|
|
var ret = getObject(arg0).getShaderParameter(getObject(arg1), arg2 >>> 0);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_getSupportedExtensions_9129f695af4c7c3a = function(arg0) {
|
|
var ret = getObject(arg0).getSupportedExtensions();
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_getUniformLocation_9541edb0d39d1646 = 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_116382e2dc17af64 = function(arg0, arg1) {
|
|
getObject(arg0).linkProgram(getObject(arg1));
|
|
};
|
|
imports.wbg.__wbg_pixelStorei_ea8cf13cf2f14a47 = function(arg0, arg1, arg2) {
|
|
getObject(arg0).pixelStorei(arg1 >>> 0, arg2);
|
|
};
|
|
imports.wbg.__wbg_scissor_826e824cb569eebc = function(arg0, arg1, arg2, arg3, arg4) {
|
|
getObject(arg0).scissor(arg1, arg2, arg3, arg4);
|
|
};
|
|
imports.wbg.__wbg_shaderSource_0066bb6817bf9e88 = function(arg0, arg1, arg2, arg3) {
|
|
getObject(arg0).shaderSource(getObject(arg1), getStringFromWasm0(arg2, arg3));
|
|
};
|
|
imports.wbg.__wbg_texParameteri_52fb3e85a6d2c636 = function(arg0, arg1, arg2, arg3) {
|
|
getObject(arg0).texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
|
|
};
|
|
imports.wbg.__wbg_uniform1i_a6ce351ee8cef296 = function(arg0, arg1, arg2) {
|
|
getObject(arg0).uniform1i(getObject(arg1), arg2);
|
|
};
|
|
imports.wbg.__wbg_uniform2f_84c79c4f8bb2428e = function(arg0, arg1, arg2, arg3) {
|
|
getObject(arg0).uniform2f(getObject(arg1), arg2, arg3);
|
|
};
|
|
imports.wbg.__wbg_useProgram_de22d1e01c430663 = function(arg0, arg1) {
|
|
getObject(arg0).useProgram(getObject(arg1));
|
|
};
|
|
imports.wbg.__wbg_vertexAttribPointer_4e139167926d5080 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
getObject(arg0).vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
|
|
};
|
|
imports.wbg.__wbg_viewport_caffbaa3e8b9568b = function(arg0, arg1, arg2, arg3, arg4) {
|
|
getObject(arg0).viewport(arg1, arg2, arg3, arg4);
|
|
};
|
|
imports.wbg.__wbg_instanceof_Window_434ce1849eb4e0fc = function(arg0) {
|
|
var ret = getObject(arg0) instanceof Window;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_document_5edd43643d1060d9 = function(arg0) {
|
|
var ret = getObject(arg0).document;
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_location_11472bb76bf5bbca = function(arg0) {
|
|
var ret = getObject(arg0).location;
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_navigator_0e0588c949560476 = function(arg0) {
|
|
var ret = getObject(arg0).navigator;
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_innerWidth_405786923c1d2641 = function() { return handleError(function (arg0) {
|
|
var ret = getObject(arg0).innerWidth;
|
|
return addHeapObject(ret);
|
|
}, arguments) };
|
|
imports.wbg.__wbg_innerHeight_25d3be0d129329c3 = function() { return handleError(function (arg0) {
|
|
var ret = getObject(arg0).innerHeight;
|
|
return addHeapObject(ret);
|
|
}, arguments) };
|
|
imports.wbg.__wbg_devicePixelRatio_9632545370d525ae = function(arg0) {
|
|
var ret = getObject(arg0).devicePixelRatio;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_performance_bbca4ccfaef860b2 = function(arg0) {
|
|
var ret = getObject(arg0).performance;
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_speechSynthesis_b2674a6ce67b99ad = function() { return handleError(function (arg0) {
|
|
var ret = getObject(arg0).speechSynthesis;
|
|
return addHeapObject(ret);
|
|
}, arguments) };
|
|
imports.wbg.__wbg_localStorage_2b7091e6919605e2 = function() { return handleError(function (arg0) {
|
|
var ret = getObject(arg0).localStorage;
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
}, arguments) };
|
|
imports.wbg.__wbg_matchMedia_646cf522f15a60a9 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
var ret = getObject(arg0).matchMedia(getStringFromWasm0(arg1, arg2));
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
}, arguments) };
|
|
imports.wbg.__wbg_open_67fbcd7373a90ddc = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
var ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
}, arguments) };
|
|
imports.wbg.__wbg_requestAnimationFrame_0c71cd3c6779a371 = function() { return handleError(function (arg0, arg1) {
|
|
var ret = getObject(arg0).requestAnimationFrame(getObject(arg1));
|
|
return ret;
|
|
}, arguments) };
|
|
imports.wbg.__wbg_fetch_427498e0ccea81f4 = function(arg0, arg1) {
|
|
var ret = getObject(arg0).fetch(getObject(arg1));
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_setInterval_fcb622396840b607 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
var ret = getObject(arg0).setInterval(getObject(arg1), arg2);
|
|
return ret;
|
|
}, arguments) };
|
|
imports.wbg.__wbg_setTimeout_1c75092906446b91 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
var ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
|
|
return ret;
|
|
}, arguments) };
|
|
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
var ret = getObject(arg0);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_data_9562112603a9aa89 = function(arg0, arg1) {
|
|
var ret = getObject(arg1).data;
|
|
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_type_8bc3e57acd2158c9 = function(arg0, arg1) {
|
|
var ret = getObject(arg1).type;
|
|
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_set_f9448486a94c9aef = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
getObject(arg0).set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
}, arguments) };
|
|
imports.wbg.__wbg_bindVertexArrayOES_4364f11e81712180 = function(arg0, arg1) {
|
|
getObject(arg0).bindVertexArrayOES(getObject(arg1));
|
|
};
|
|
imports.wbg.__wbg_createVertexArrayOES_54cc0b7c450f4662 = function(arg0) {
|
|
var ret = getObject(arg0).createVertexArrayOES();
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_setvolume_1f2d6904dfdf4626 = function(arg0, arg1) {
|
|
getObject(arg0).volume = arg1;
|
|
};
|
|
imports.wbg.__wbg_setrate_d8f68fa10eeb7dbb = function(arg0, arg1) {
|
|
getObject(arg0).rate = arg1;
|
|
};
|
|
imports.wbg.__wbg_setpitch_7cc80b45cc0633c7 = function(arg0, arg1) {
|
|
getObject(arg0).pitch = arg1;
|
|
};
|
|
imports.wbg.__wbg_setonstart_fab3ebffcb3dc24f = function(arg0, arg1) {
|
|
getObject(arg0).onstart = getObject(arg1);
|
|
};
|
|
imports.wbg.__wbg_setonend_fff35a6f78e430f4 = function(arg0, arg1) {
|
|
getObject(arg0).onend = getObject(arg1);
|
|
};
|
|
imports.wbg.__wbg_setonerror_ec0f8ed48489bd83 = function(arg0, arg1) {
|
|
getObject(arg0).onerror = getObject(arg1);
|
|
};
|
|
imports.wbg.__wbg_newwithtext_b63d82923fd41338 = function() { return handleError(function (arg0, arg1) {
|
|
var ret = new SpeechSynthesisUtterance(getStringFromWasm0(arg0, arg1));
|
|
return addHeapObject(ret);
|
|
}, arguments) };
|
|
imports.wbg.__wbg_deltaX_df228181f4d1a561 = function(arg0) {
|
|
var ret = getObject(arg0).deltaX;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_deltaY_afa6edde136e1500 = function(arg0) {
|
|
var ret = getObject(arg0).deltaY;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_deltaMode_ed9d7974a0c11323 = function(arg0) {
|
|
var ret = getObject(arg0).deltaMode;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_clipboardData_702911c63c2dd54e = function(arg0) {
|
|
var ret = getObject(arg0).clipboardData;
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_dataTransfer_bc4c0501385a0c8e = function(arg0) {
|
|
var ret = getObject(arg0).dataTransfer;
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_instanceof_Response_ea36d565358a42f7 = function(arg0) {
|
|
var ret = getObject(arg0) instanceof Response;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_url_6e564c9e212456f8 = function(arg0, arg1) {
|
|
var ret = getObject(arg1).url;
|
|
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_status_3a55bb50e744b834 = function(arg0) {
|
|
var ret = getObject(arg0).status;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_ok_23eb4786bc6e94e7 = function(arg0) {
|
|
var ret = getObject(arg0).ok;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_statusText_a3f3d92b5ddca585 = function(arg0, arg1) {
|
|
var ret = getObject(arg1).statusText;
|
|
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_headers_e4204c6775f7b3b4 = function(arg0) {
|
|
var ret = getObject(arg0).headers;
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_arrayBuffer_0e2a43f68a8b3e49 = function() { return handleError(function (arg0) {
|
|
var ret = getObject(arg0).arrayBuffer();
|
|
return addHeapObject(ret);
|
|
}, arguments) };
|
|
imports.wbg.__wbg_writeText_6267af08021f3e64 = function(arg0, arg1, arg2) {
|
|
var ret = getObject(arg0).writeText(getStringFromWasm0(arg1, arg2));
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_addEventListener_6bdba88519fdc1c9 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
}, arguments) };
|
|
imports.wbg.__wbg_matches_a375878271bc2ba5 = function(arg0) {
|
|
var ret = getObject(arg0).matches;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_identifier_afa8b01d4d901685 = function(arg0) {
|
|
var ret = getObject(arg0).identifier;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_pageX_e0c8221ecfdb73d0 = function(arg0) {
|
|
var ret = getObject(arg0).pageX;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_pageY_32100ad7039a744e = function(arg0) {
|
|
var ret = getObject(arg0).pageY;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_force_8e51e1fec066aade = function(arg0) {
|
|
var ret = getObject(arg0).force;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_instanceof_HtmlInputElement_8969541a2a0bded0 = function(arg0) {
|
|
var ret = getObject(arg0) instanceof HTMLInputElement;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_setautofocus_a2ae37091dfbe4af = function(arg0, arg1) {
|
|
getObject(arg0).autofocus = arg1 !== 0;
|
|
};
|
|
imports.wbg.__wbg_setsize_90d1034a7a757a50 = function(arg0, arg1) {
|
|
getObject(arg0).size = arg1 >>> 0;
|
|
};
|
|
imports.wbg.__wbg_value_fc1c354d1a0e9714 = function(arg0, arg1) {
|
|
var ret = getObject(arg1).value;
|
|
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_setvalue_ce4a23f487065c07 = function(arg0, arg1, arg2) {
|
|
getObject(arg0).value = getStringFromWasm0(arg1, arg2);
|
|
};
|
|
imports.wbg.__wbg_length_41b205f6892bf9d9 = function(arg0) {
|
|
var ret = getObject(arg0).length;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_get_bdec89fd60d07530 = function(arg0, arg1) {
|
|
var ret = getObject(arg0)[arg1 >>> 0];
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_now_5fa0ca001e042f8a = function(arg0) {
|
|
var ret = getObject(arg0).now();
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_headers_1a60dec7fbd28a3b = function(arg0) {
|
|
var ret = getObject(arg0).headers;
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_newwithstrandinit_c07f0662ece15bc6 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
var ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
return addHeapObject(ret);
|
|
}, arguments) };
|
|
imports.wbg.__wbg_speaking_3e6ccf3668029ac5 = function(arg0) {
|
|
var ret = getObject(arg0).speaking;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_cancel_85040548807aa10f = function(arg0) {
|
|
getObject(arg0).cancel();
|
|
};
|
|
imports.wbg.__wbg_speak_907bd548bebdbbf2 = function(arg0, arg1) {
|
|
getObject(arg0).speak(getObject(arg1));
|
|
};
|
|
imports.wbg.__wbg_items_d571f433ef73ee49 = function(arg0) {
|
|
var ret = getObject(arg0).items;
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_files_a4192b4f5967317b = function(arg0) {
|
|
var ret = getObject(arg0).files;
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_getData_3a1069aff0f72f76 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
var ret = getObject(arg1).getData(getStringFromWasm0(arg2, arg3));
|
|
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;
|
|
}, arguments) };
|
|
imports.wbg.__wbg_type_e32f387f5584c765 = function(arg0, arg1) {
|
|
var ret = getObject(arg1).type;
|
|
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_preventDefault_fa00541ff125b78c = function(arg0) {
|
|
getObject(arg0).preventDefault();
|
|
};
|
|
imports.wbg.__wbg_stopPropagation_da586180676fa914 = function(arg0) {
|
|
getObject(arg0).stopPropagation();
|
|
};
|
|
imports.wbg.__wbg_name_9a61dbbdbfb2d0de = function(arg0, arg1) {
|
|
var ret = getObject(arg1).name;
|
|
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_lastModified_0de23a8c5214f2fb = function(arg0) {
|
|
var ret = getObject(arg0).lastModified;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_length_a2882c668bdf6488 = function(arg0) {
|
|
var ret = getObject(arg0).length;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_get_1c01a7682a9775bb = function(arg0, arg1) {
|
|
var ret = getObject(arg0)[arg1 >>> 0];
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_keyCode_8a05b1390fced3c8 = function(arg0) {
|
|
var ret = getObject(arg0).keyCode;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_altKey_773e7f8151c49bb1 = function(arg0) {
|
|
var ret = getObject(arg0).altKey;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_ctrlKey_8c7ff99be598479e = function(arg0) {
|
|
var ret = getObject(arg0).ctrlKey;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_shiftKey_894b631364d8db13 = function(arg0) {
|
|
var ret = getObject(arg0).shiftKey;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_metaKey_99a7d3732e1b7856 = function(arg0) {
|
|
var ret = getObject(arg0).metaKey;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_isComposing_b892666abf384da9 = function(arg0) {
|
|
var ret = getObject(arg0).isComposing;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_key_7f10b1291a923361 = function(arg0, arg1) {
|
|
var ret = getObject(arg1).key;
|
|
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_length_01a613025b5ffd74 = function(arg0) {
|
|
var ret = getObject(arg0).length;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_item_b192ab411bbfbb09 = function(arg0, arg1) {
|
|
var ret = getObject(arg0).item(arg1 >>> 0);
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_get_a765dab923455e0d = function(arg0, arg1) {
|
|
var ret = getObject(arg0)[arg1 >>> 0];
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_body_7538539844356c1c = function(arg0) {
|
|
var ret = getObject(arg0).body;
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_createElement_d017b8d2af99bab9 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
var ret = getObject(arg0).createElement(getStringFromWasm0(arg1, arg2));
|
|
return addHeapObject(ret);
|
|
}, arguments) };
|
|
imports.wbg.__wbg_getElementById_b30e88aff96f66a1 = function(arg0, arg1, arg2) {
|
|
var ret = getObject(arg0).getElementById(getStringFromWasm0(arg1, arg2));
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_instanceof_WebGlRenderingContext_2be4c068bf5f8362 = function(arg0) {
|
|
var ret = getObject(arg0) instanceof WebGLRenderingContext;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_bufferData_85d635f32a990208 = function(arg0, arg1, arg2, arg3) {
|
|
getObject(arg0).bufferData(arg1 >>> 0, getObject(arg2), arg3 >>> 0);
|
|
};
|
|
imports.wbg.__wbg_texImage2D_16ff123798c82f60 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
getObject(arg0).texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, getObject(arg9));
|
|
}, arguments) };
|
|
imports.wbg.__wbg_texSubImage2D_d907a4c940fd6e41 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
getObject(arg0).texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, getObject(arg9));
|
|
}, arguments) };
|
|
imports.wbg.__wbg_activeTexture_74ed11a5c5d5af90 = function(arg0, arg1) {
|
|
getObject(arg0).activeTexture(arg1 >>> 0);
|
|
};
|
|
imports.wbg.__wbg_attachShader_55dbe770f3ee32ca = function(arg0, arg1, arg2) {
|
|
getObject(arg0).attachShader(getObject(arg1), getObject(arg2));
|
|
};
|
|
imports.wbg.__wbg_bindBuffer_29d52e7bc48650c3 = function(arg0, arg1, arg2) {
|
|
getObject(arg0).bindBuffer(arg1 >>> 0, getObject(arg2));
|
|
};
|
|
imports.wbg.__wbg_bindFramebuffer_bd35ddd23765c7b6 = function(arg0, arg1, arg2) {
|
|
getObject(arg0).bindFramebuffer(arg1 >>> 0, getObject(arg2));
|
|
};
|
|
imports.wbg.__wbg_bindTexture_198c816345baca83 = function(arg0, arg1, arg2) {
|
|
getObject(arg0).bindTexture(arg1 >>> 0, getObject(arg2));
|
|
};
|
|
imports.wbg.__wbg_blendEquation_09d56f3be6f914f5 = function(arg0, arg1) {
|
|
getObject(arg0).blendEquation(arg1 >>> 0);
|
|
};
|
|
imports.wbg.__wbg_blendFuncSeparate_494b1dae028cb9a9 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
getObject(arg0).blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
};
|
|
imports.wbg.__wbg_clear_2af1271959ec83d7 = function(arg0, arg1) {
|
|
getObject(arg0).clear(arg1 >>> 0);
|
|
};
|
|
imports.wbg.__wbg_clearColor_51c4f69c743c3252 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
getObject(arg0).clearColor(arg1, arg2, arg3, arg4);
|
|
};
|
|
imports.wbg.__wbg_compileShader_3b5f9ef4c67a0777 = function(arg0, arg1) {
|
|
getObject(arg0).compileShader(getObject(arg1));
|
|
};
|
|
imports.wbg.__wbg_createBuffer_c40f37e1348bb91f = function(arg0) {
|
|
var ret = getObject(arg0).createBuffer();
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_createFramebuffer_410b12a5cc5a8f13 = function(arg0) {
|
|
var ret = getObject(arg0).createFramebuffer();
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_createProgram_245520da1fb9e47b = function(arg0) {
|
|
var ret = getObject(arg0).createProgram();
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_createShader_4d8818a13cb825b3 = function(arg0, arg1) {
|
|
var ret = getObject(arg0).createShader(arg1 >>> 0);
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_createTexture_f3a6a715d6bada45 = function(arg0) {
|
|
var ret = getObject(arg0).createTexture();
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_deleteShader_e4f5a1da4d9c84c4 = function(arg0, arg1) {
|
|
getObject(arg0).deleteShader(getObject(arg1));
|
|
};
|
|
imports.wbg.__wbg_deleteTexture_9159fb5927ed32c0 = function(arg0, arg1) {
|
|
getObject(arg0).deleteTexture(getObject(arg1));
|
|
};
|
|
imports.wbg.__wbg_detachShader_32e4b718f0a63080 = function(arg0, arg1, arg2) {
|
|
getObject(arg0).detachShader(getObject(arg1), getObject(arg2));
|
|
};
|
|
imports.wbg.__wbg_disable_2b63b75dc6c27537 = function(arg0, arg1) {
|
|
getObject(arg0).disable(arg1 >>> 0);
|
|
};
|
|
imports.wbg.__wbg_disableVertexAttribArray_aa8458b40dd08914 = function(arg0, arg1) {
|
|
getObject(arg0).disableVertexAttribArray(arg1 >>> 0);
|
|
};
|
|
imports.wbg.__wbg_drawElements_6e26500a25ecf478 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
getObject(arg0).drawElements(arg1 >>> 0, arg2, arg3 >>> 0, arg4);
|
|
};
|
|
imports.wbg.__wbg_enable_8f6dd779ccb8e1de = function(arg0, arg1) {
|
|
getObject(arg0).enable(arg1 >>> 0);
|
|
};
|
|
imports.wbg.__wbg_enableVertexAttribArray_4ed5f91d0718bee1 = function(arg0, arg1) {
|
|
getObject(arg0).enableVertexAttribArray(arg1 >>> 0);
|
|
};
|
|
imports.wbg.__wbg_framebufferTexture2D_31643260e5b0b294 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
getObject(arg0).framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, getObject(arg4), arg5);
|
|
};
|
|
imports.wbg.__wbg_getAttribLocation_da5df7094096113d = function(arg0, arg1, arg2, arg3) {
|
|
var ret = getObject(arg0).getAttribLocation(getObject(arg1), getStringFromWasm0(arg2, arg3));
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_getError_364189947a05fa24 = function(arg0) {
|
|
var ret = getObject(arg0).getError();
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_getExtension_c6ceee3244ee7f20 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
var ret = getObject(arg0).getExtension(getStringFromWasm0(arg1, arg2));
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
}, arguments) };
|
|
imports.wbg.__wbg_getParameter_cf7a00ba1cbac0d3 = function() { return handleError(function (arg0, arg1) {
|
|
var ret = getObject(arg0).getParameter(arg1 >>> 0);
|
|
return addHeapObject(ret);
|
|
}, arguments) };
|
|
imports.wbg.__wbg_getProgramInfoLog_c253042b64e86027 = 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_4f698af0dda0a2d4 = function(arg0, arg1, arg2) {
|
|
var ret = getObject(arg0).getProgramParameter(getObject(arg1), arg2 >>> 0);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_getShaderInfoLog_584794e3bcf1e19b = 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_64b1ffe576e5fa25 = function(arg0, arg1, arg2) {
|
|
var ret = getObject(arg0).getShaderParameter(getObject(arg1), arg2 >>> 0);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_getSupportedExtensions_687e6dd9ca9b8e1e = function(arg0) {
|
|
var ret = getObject(arg0).getSupportedExtensions();
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_getUniformLocation_703972f150a46500 = 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_5fdd57237c761833 = function(arg0, arg1) {
|
|
getObject(arg0).linkProgram(getObject(arg1));
|
|
};
|
|
imports.wbg.__wbg_pixelStorei_fab41fe53c557df3 = function(arg0, arg1, arg2) {
|
|
getObject(arg0).pixelStorei(arg1 >>> 0, arg2);
|
|
};
|
|
imports.wbg.__wbg_scissor_fb094c7db856e2a7 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
getObject(arg0).scissor(arg1, arg2, arg3, arg4);
|
|
};
|
|
imports.wbg.__wbg_shaderSource_173ab97288934a60 = function(arg0, arg1, arg2, arg3) {
|
|
getObject(arg0).shaderSource(getObject(arg1), getStringFromWasm0(arg2, arg3));
|
|
};
|
|
imports.wbg.__wbg_texParameteri_caec5468f2a850c3 = function(arg0, arg1, arg2, arg3) {
|
|
getObject(arg0).texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
|
|
};
|
|
imports.wbg.__wbg_uniform1i_a0275676828a22b6 = function(arg0, arg1, arg2) {
|
|
getObject(arg0).uniform1i(getObject(arg1), arg2);
|
|
};
|
|
imports.wbg.__wbg_uniform2f_b0af46ba675f2c0d = function(arg0, arg1, arg2, arg3) {
|
|
getObject(arg0).uniform2f(getObject(arg1), arg2, arg3);
|
|
};
|
|
imports.wbg.__wbg_useProgram_d5898a40ebe88916 = function(arg0, arg1) {
|
|
getObject(arg0).useProgram(getObject(arg1));
|
|
};
|
|
imports.wbg.__wbg_vertexAttribPointer_0d097efa33e3f45f = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
getObject(arg0).vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
|
|
};
|
|
imports.wbg.__wbg_viewport_19577064127daf83 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
getObject(arg0).viewport(arg1, arg2, arg3, arg4);
|
|
};
|
|
imports.wbg.__wbg_setid_73be37238eaa05be = function(arg0, arg1, arg2) {
|
|
getObject(arg0).id = getStringFromWasm0(arg1, arg2);
|
|
};
|
|
imports.wbg.__wbg_scrollLeft_e8aba47a94d12290 = function(arg0) {
|
|
var ret = getObject(arg0).scrollLeft;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_clientWidth_4c903f82634f2159 = function(arg0) {
|
|
var ret = getObject(arg0).clientWidth;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_clientHeight_cddbd2cef19a2cb1 = function(arg0) {
|
|
var ret = getObject(arg0).clientHeight;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_getBoundingClientRect_534c1b96b6e612d3 = function(arg0) {
|
|
var ret = getObject(arg0).getBoundingClientRect();
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_scrollTop_5ebd5c6591748d6e = function(arg0) {
|
|
var ret = getObject(arg0).scrollTop;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_hidden_f7a620ec4ab18ce5 = function(arg0) {
|
|
var ret = getObject(arg0).hidden;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_sethidden_fdaefd7e7da7e4c0 = function(arg0, arg1) {
|
|
getObject(arg0).hidden = arg1 !== 0;
|
|
};
|
|
imports.wbg.__wbg_style_16f5dd9624687c8f = function(arg0) {
|
|
var ret = getObject(arg0).style;
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_offsetTop_45111254e7b26a1f = function(arg0) {
|
|
var ret = getObject(arg0).offsetTop;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_offsetLeft_be5393bf9eec5766 = function(arg0) {
|
|
var ret = getObject(arg0).offsetLeft;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_offsetWidth_bc683e2f57ea2d6b = function(arg0) {
|
|
var ret = getObject(arg0).offsetWidth;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_blur_2156876090506146 = function() { return handleError(function (arg0) {
|
|
getObject(arg0).blur();
|
|
}, arguments) };
|
|
imports.wbg.__wbg_focus_4434360545ac99cf = function() { return handleError(function (arg0) {
|
|
getObject(arg0).focus();
|
|
}, arguments) };
|
|
imports.wbg.__wbg_instanceof_HtmlCanvasElement_a6157e470d06b638 = function(arg0) {
|
|
var ret = getObject(arg0) instanceof HTMLCanvasElement;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_width_cfa982e2a6ad6297 = function(arg0) {
|
|
var ret = getObject(arg0).width;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_setwidth_362e8db8cbadbe96 = function(arg0, arg1) {
|
|
getObject(arg0).width = arg1 >>> 0;
|
|
};
|
|
imports.wbg.__wbg_height_1b399500ca683487 = function(arg0) {
|
|
var ret = getObject(arg0).height;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_setheight_28f53831182cc410 = function(arg0, arg1) {
|
|
getObject(arg0).height = arg1 >>> 0;
|
|
};
|
|
imports.wbg.__wbg_getContext_bd4e9445094eda84 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
var ret = getObject(arg0).getContext(getStringFromWasm0(arg1, arg2));
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
}, arguments) };
|
|
imports.wbg.__wbg_clipboard_7f80e1666b51776c = function(arg0) {
|
|
var ret = getObject(arg0).clipboard;
|
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_userAgent_3f63af8b4fe2331c = function() { return handleError(function (arg0, arg1) {
|
|
var ret = getObject(arg1).userAgent;
|
|
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;
|
|
}, arguments) };
|
|
imports.wbg.__wbg_touches_7397ce4df4dceded = function(arg0) {
|
|
var ret = getObject(arg0).touches;
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_changedTouches_363278e8a9a95419 = function(arg0) {
|
|
var ret = getObject(arg0).changedTouches;
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_size_20c167ba9040b895 = function(arg0) {
|
|
var ret = getObject(arg0).size;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_arrayBuffer_8b5364ee9b393098 = function(arg0) {
|
|
var ret = getObject(arg0).arrayBuffer();
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_width_079617995a2466be = function(arg0) {
|
|
var ret = getObject(arg0).width;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_height_ece90b0809f44f4d = function(arg0) {
|
|
var ret = getObject(arg0).height;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_top_a24b8b81afea659b = function(arg0) {
|
|
var ret = getObject(arg0).top;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_left_0e681cb8fd277739 = function(arg0) {
|
|
var ret = getObject(arg0).left;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_appendChild_3fe5090c665d3bb4 = function() { return handleError(function (arg0, arg1) {
|
|
var ret = getObject(arg0).appendChild(getObject(arg1));
|
|
return addHeapObject(ret);
|
|
}, arguments) };
|
|
imports.wbg.__wbg_getItem_f92ef607397e96b1 = function() { return 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;
|
|
}, arguments) };
|
|
imports.wbg.__wbg_setItem_279b13e5ad0b82cb = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
getObject(arg0).setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
}, arguments) };
|
|
imports.wbg.__wbg_setProperty_ebb06e7fa941d6a8 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
getObject(arg0).setProperty(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
}, arguments) };
|
|
imports.wbg.__wbg_href_0c435df13f22003c = function() { return handleError(function (arg0, arg1) {
|
|
var ret = getObject(arg1).href;
|
|
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;
|
|
}, arguments) };
|
|
imports.wbg.__wbg_origin_1bc82542e055b010 = function() { return handleError(function (arg0, arg1) {
|
|
var ret = getObject(arg1).origin;
|
|
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;
|
|
}, arguments) };
|
|
imports.wbg.__wbg_protocol_128aca096ff0b399 = function() { return handleError(function (arg0, arg1) {
|
|
var ret = getObject(arg1).protocol;
|
|
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;
|
|
}, arguments) };
|
|
imports.wbg.__wbg_host_8afef3759896202e = function() { return handleError(function (arg0, arg1) {
|
|
var ret = getObject(arg1).host;
|
|
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;
|
|
}, arguments) };
|
|
imports.wbg.__wbg_hostname_37415809eea07bcd = function() { return handleError(function (arg0, arg1) {
|
|
var ret = getObject(arg1).hostname;
|
|
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;
|
|
}, arguments) };
|
|
imports.wbg.__wbg_port_e5253b8797db36d1 = function() { return handleError(function (arg0, arg1) {
|
|
var ret = getObject(arg1).port;
|
|
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;
|
|
}, arguments) };
|
|
imports.wbg.__wbg_search_7e1c9ba7f3985c36 = function() { return handleError(function (arg0, arg1) {
|
|
var ret = getObject(arg1).search;
|
|
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;
|
|
}, arguments) };
|
|
imports.wbg.__wbg_hash_2f90ddae1e6efe5f = function() { return 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;
|
|
}, arguments) };
|
|
imports.wbg.__wbg_clientX_849ccdf456d662ac = function(arg0) {
|
|
var ret = getObject(arg0).clientX;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_clientY_1aaff30fe0cd0876 = function(arg0) {
|
|
var ret = getObject(arg0).clientY;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_ctrlKey_4e536bedb069129f = function(arg0) {
|
|
var ret = getObject(arg0).ctrlKey;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_shiftKey_cc93bd2f12bfcc9c = function(arg0) {
|
|
var ret = getObject(arg0).shiftKey;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_metaKey_0b396e35a4941247 = function(arg0) {
|
|
var ret = getObject(arg0).metaKey;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_button_a18f33eb55774d89 = function(arg0) {
|
|
var ret = getObject(arg0).button;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_error_e676403cd981461e = function(arg0) {
|
|
var ret = getObject(arg0).error;
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_get_f45dff51f52d7222 = function(arg0, arg1) {
|
|
var ret = getObject(arg0)[arg1 >>> 0];
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_length_7b60f47bde714631 = function(arg0) {
|
|
var ret = getObject(arg0).length;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
var ret = typeof(getObject(arg0)) === 'function';
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_newnoargs_f579424187aa1717 = function(arg0, arg1) {
|
|
var ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
const val = getObject(arg0);
|
|
var ret = typeof(val) === 'object' && val !== null;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_next_c7a2a6b012059a5e = function(arg0) {
|
|
var ret = getObject(arg0).next;
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_next_dd1a890d37e38d73 = function() { return handleError(function (arg0) {
|
|
var ret = getObject(arg0).next();
|
|
return addHeapObject(ret);
|
|
}, arguments) };
|
|
imports.wbg.__wbg_done_982b1c7ac0cbc69d = function(arg0) {
|
|
var ret = getObject(arg0).done;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_value_2def2d1fb38b02cd = function(arg0) {
|
|
var ret = getObject(arg0).value;
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_iterator_4b9cedbeda0c0e30 = function() {
|
|
var ret = Symbol.iterator;
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_get_8bbb82393651dd9c = function() { return handleError(function (arg0, arg1) {
|
|
var ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
return addHeapObject(ret);
|
|
}, arguments) };
|
|
imports.wbg.__wbg_call_89558c3e96703ca1 = function() { return handleError(function (arg0, arg1) {
|
|
var ret = getObject(arg0).call(getObject(arg1));
|
|
return addHeapObject(ret);
|
|
}, arguments) };
|
|
imports.wbg.__wbg_new_d3138911a89329b0 = function() {
|
|
var ret = new Object();
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_getTime_f8ce0ff902444efb = function(arg0) {
|
|
var ret = getObject(arg0).getTime();
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_getTimezoneOffset_41211a984662508b = function(arg0) {
|
|
var ret = getObject(arg0).getTimezoneOffset();
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_new0_57a6a2c2aaed3fc5 = function() {
|
|
var ret = new Date();
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_resolve_4f8f547f26b30b27 = function(arg0) {
|
|
var ret = Promise.resolve(getObject(arg0));
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_then_a6860c82b90816ca = function(arg0, arg1) {
|
|
var ret = getObject(arg0).then(getObject(arg1));
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_then_58a04e42527f52c6 = function(arg0, arg1, arg2) {
|
|
var ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_self_e23d74ae45fb17d1 = function() { return handleError(function () {
|
|
var ret = self.self;
|
|
return addHeapObject(ret);
|
|
}, arguments) };
|
|
imports.wbg.__wbg_window_b4be7f48b24ac56e = function() { return handleError(function () {
|
|
var ret = window.window;
|
|
return addHeapObject(ret);
|
|
}, arguments) };
|
|
imports.wbg.__wbg_globalThis_d61b1f48a57191ae = function() { return handleError(function () {
|
|
var ret = globalThis.globalThis;
|
|
return addHeapObject(ret);
|
|
}, arguments) };
|
|
imports.wbg.__wbg_global_e7669da72fd7f239 = function() { return handleError(function () {
|
|
var ret = global.global;
|
|
return addHeapObject(ret);
|
|
}, arguments) };
|
|
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
var ret = getObject(arg0) === undefined;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_buffer_5e74a88a1424a2e0 = function(arg0) {
|
|
var ret = getObject(arg0).buffer;
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_newwithbyteoffsetandlength_8c0e6ae8071b27e7 = function(arg0, arg1, arg2) {
|
|
var ret = new Int8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_newwithbyteoffsetandlength_fa38811f43e9099d = function(arg0, arg1, arg2) {
|
|
var ret = new Int16Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_newwithbyteoffsetandlength_a0b51a3de0017386 = function(arg0, arg1, arg2) {
|
|
var ret = new Int32Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_newwithbyteoffsetandlength_278ec7532799393a = function(arg0, arg1, arg2) {
|
|
var ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_new_e3b800e570795b3c = function(arg0) {
|
|
var ret = new Uint8Array(getObject(arg0));
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_set_5b8081e9d002f0df = function(arg0, arg1, arg2) {
|
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
};
|
|
imports.wbg.__wbg_length_30803400a8f15c59 = function(arg0) {
|
|
var ret = getObject(arg0).length;
|
|
return ret;
|
|
};
|
|
imports.wbg.__wbg_newwithbyteoffsetandlength_bdb885cfc5e9bc43 = function(arg0, arg1, arg2) {
|
|
var ret = new Uint16Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_newwithbyteoffsetandlength_f6c2c5e40f6f5bda = function(arg0, arg1, arg2) {
|
|
var ret = new Uint32Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_newwithbyteoffsetandlength_ad2916c6fa7d4c6f = function(arg0, arg1, arg2) {
|
|
var ret = new Float32Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbg_set_c42875065132a932 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
var ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
return ret;
|
|
}, arguments) };
|
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
var ret = debugString(getObject(arg1));
|
|
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.__wbindgen_throw = function(arg0, arg1) {
|
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
};
|
|
imports.wbg.__wbindgen_memory = function() {
|
|
var ret = wasm.memory;
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbindgen_closure_wrapper2336 = function(arg0, arg1, arg2) {
|
|
var ret = makeMutClosure(arg0, arg1, 928, __wbg_adapter_28);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbindgen_closure_wrapper2337 = function(arg0, arg1, arg2) {
|
|
var ret = makeMutClosure(arg0, arg1, 928, __wbg_adapter_31);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbindgen_closure_wrapper2339 = function(arg0, arg1, arg2) {
|
|
var ret = makeMutClosure(arg0, arg1, 928, __wbg_adapter_34);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbindgen_closure_wrapper2341 = function(arg0, arg1, arg2) {
|
|
var ret = makeMutClosure(arg0, arg1, 928, __wbg_adapter_37);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbindgen_closure_wrapper2343 = function(arg0, arg1, arg2) {
|
|
var ret = makeMutClosure(arg0, arg1, 928, __wbg_adapter_40);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbindgen_closure_wrapper2345 = function(arg0, arg1, arg2) {
|
|
var ret = makeMutClosure(arg0, arg1, 928, __wbg_adapter_43);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbindgen_closure_wrapper2348 = function(arg0, arg1, arg2) {
|
|
var ret = makeMutClosure(arg0, arg1, 928, __wbg_adapter_46);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbindgen_closure_wrapper2350 = function(arg0, arg1, arg2) {
|
|
var ret = makeMutClosure(arg0, arg1, 928, __wbg_adapter_49);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbindgen_closure_wrapper2352 = function(arg0, arg1, arg2) {
|
|
var ret = makeMutClosure(arg0, arg1, 928, __wbg_adapter_52);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbindgen_closure_wrapper2354 = function(arg0, arg1, arg2) {
|
|
var ret = makeMutClosure(arg0, arg1, 928, __wbg_adapter_55);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbindgen_closure_wrapper2467 = function(arg0, arg1, arg2) {
|
|
var ret = makeMutClosure(arg0, arg1, 978, __wbg_adapter_58);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbindgen_closure_wrapper2532 = function(arg0, arg1, arg2) {
|
|
var ret = makeClosure(arg0, arg1, 1026, __wbg_adapter_61);
|
|
return addHeapObject(ret);
|
|
};
|
|
imports.wbg.__wbindgen_closure_wrapper2534 = function(arg0, arg1, arg2) {
|
|
var ret = makeClosure(arg0, arg1, 1026, __wbg_adapter_64);
|
|
return addHeapObject(ret);
|
|
};
|
|
|
|
if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) {
|
|
input = fetch(input);
|
|
}
|
|
|
|
|
|
|
|
const { instance, module } = await load(await input, imports);
|
|
|
|
wasm = instance.exports;
|
|
init.__wbindgen_wasm_module = module;
|
|
|
|
return wasm;
|
|
}
|
|
|
|
wasm_bindgen = Object.assign(init, __exports);
|
|
|
|
})();
|
|
|