kanidm/kanidmd_web_ui/pkg/kanidmd_web_ui.js

894 lines
37 KiB
JavaScript
Raw Normal View History

let wasm;
const heap = new Array(32).fill(undefined);
heap.push(undefined, null, true, false);
function getObject(idx) { return heap[idx]; }
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;
2021-12-31 00:11:20 +01:00
}
2022-04-27 05:35:26 +02:00
const 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 (typeof(arg) !== 'string') throw new Error('expected a string argument');
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);
if (ret.read !== arg.length) throw new Error('failed to pass whole string');
offset += ret.written;
}
WASM_VECTOR_LEN = offset;
return ptr;
}
2021-07-25 02:51:37 +02:00
let cachegetInt32Memory0 = null;
function getInt32Memory0() {
if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== wasm.memory.buffer) {
cachegetInt32Memory0 = new Int32Array(wasm.memory.buffer);
}
return cachegetInt32Memory0;
}
2022-04-27 05:35:26 +02:00
const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
cachedTextDecoder.decode();
function getStringFromWasm0(ptr, len) {
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
}
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];
if (typeof(heap_next) !== 'number') throw new Error('corrupt heap');
heap[idx] = obj;
return idx;
}
function isLikeNone(x) {
return x === undefined || x === null;
}
function _assertNum(n) {
if (typeof(n) !== 'number') throw new Error('expected a number argument');
}
function _assertBoolean(n) {
if (typeof(n) !== 'boolean') {
throw new Error('expected a boolean argument');
}
}
2021-12-31 00:11:20 +01:00
let cachegetFloat64Memory0 = null;
function getFloat64Memory0() {
if (cachegetFloat64Memory0 === null || cachegetFloat64Memory0.buffer !== wasm.memory.buffer) {
cachegetFloat64Memory0 = new Float64Array(wasm.memory.buffer);
}
return cachegetFloat64Memory0;
}
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;
}
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 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 logError(f, args) {
try {
return f.apply(this, args);
} catch (e) {
let error = (function () {
try {
return e instanceof Error ? `${e.message}\n\nStack:\n${e.stack}` : e.toString();
} catch(_) {
return "<failed to stringify thrown value>";
}
}());
console.error("wasm-bindgen: imported JS function that was not marked as `catch` threw an error:", error);
throw e;
}
}
function __wbg_adapter_30(arg0, arg1, arg2) {
_assertNum(arg0);
_assertNum(arg1);
2022-04-27 05:35:26 +02:00
wasm._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h82f2f6511a22593f(arg0, arg1, addHeapObject(arg2));
}
function makeMutClosure(arg0, arg1, dtor, f) {
2021-12-31 00:11:20 +01:00
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;
2021-12-31 00:11:20 +01:00
try {
return f(a, state.b, ...args);
2021-12-31 00:11:20 +01:00
} finally {
if (--state.cnt === 0) {
wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
2021-12-31 00:11:20 +01:00
} else {
state.a = a;
2021-12-31 00:11:20 +01:00
}
}
};
real.original = state;
return real;
}
function __wbg_adapter_33(arg0, arg1, arg2) {
_assertNum(arg0);
_assertNum(arg1);
2022-04-27 05:35:26 +02:00
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h62c0974bc69b817a(arg0, arg1, addHeapObject(arg2));
2021-12-29 02:36:56 +01:00
}
let stack_pointer = 32;
function addBorrowedObject(obj) {
if (stack_pointer == 1) throw new Error('out of js stack');
heap[--stack_pointer] = obj;
return stack_pointer;
}
2021-12-31 00:11:20 +01:00
function __wbg_adapter_36(arg0, arg1, arg2) {
try {
_assertNum(arg0);
_assertNum(arg1);
2022-04-27 05:35:26 +02:00
wasm._dyn_core__ops__function__FnMut___A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd28867f91ff91e2f(arg0, arg1, addBorrowedObject(arg2));
} finally {
heap[stack_pointer++] = undefined;
}
2021-07-25 02:51:37 +02:00
}
/**
*/
2021-07-25 02:51:37 +02:00
export function run_app() {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
wasm.run_app(retptr);
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);
}
}
2021-12-31 00:11:20 +01:00
let cachegetUint32Memory0 = null;
function getUint32Memory0() {
if (cachegetUint32Memory0 === null || cachegetUint32Memory0.buffer !== wasm.memory.buffer) {
cachegetUint32Memory0 = new Uint32Array(wasm.memory.buffer);
}
return cachegetUint32Memory0;
}
function getArrayJsValueFromWasm0(ptr, len) {
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;
}
2021-07-07 03:50:13 +02:00
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') {
input = new URL('kanidmd_web_ui_bg.wasm', import.meta.url);
}
const imports = {};
imports.wbg = {};
imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
const obj = getObject(arg1);
2022-04-27 05:35:26 +02:00
const ret = JSON.stringify(obj === undefined ? null : obj);
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2022-04-27 05:35:26 +02:00
const ret = getStringFromWasm0(arg0, arg1);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
const obj = getObject(arg1);
2022-04-27 05:35:26 +02:00
const 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_object_clone_ref = function(arg0) {
2022-04-27 05:35:26 +02:00
const ret = getObject(arg0);
return addHeapObject(ret);
2021-12-31 00:11:20 +01:00
};
imports.wbg.__wbindgen_json_parse = function(arg0, arg1) {
2022-04-27 05:35:26 +02:00
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
2021-07-25 02:51:37 +02:00
};
imports.wbg.__wbindgen_boolean_get = function(arg0) {
const v = getObject(arg0);
2022-04-27 05:35:26 +02:00
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
_assertNum(ret);
return ret;
};
imports.wbg.__wbindgen_is_undefined = function(arg0) {
2022-04-27 05:35:26 +02:00
const ret = getObject(arg0) === undefined;
_assertBoolean(ret);
return ret;
};
2021-12-31 00:11:20 +01:00
imports.wbg.__wbindgen_number_new = function(arg0) {
2022-04-27 05:35:26 +02:00
const ret = arg0;
return addHeapObject(ret);
};
2021-12-31 00:11:20 +01:00
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
const obj = getObject(arg1);
2022-04-27 05:35:26 +02:00
const ret = typeof(obj) === 'number' ? obj : undefined;
if (!isLikeNone(ret)) {
_assertNum(ret);
}
2021-12-31 00:11:20 +01:00
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
};
imports.wbg.__wbg_error_09919627ac0992f5 = function() { return logError(function (arg0, arg1) {
try {
console.error(getStringFromWasm0(arg0, arg1));
} finally {
wasm.__wbindgen_free(arg0, arg1);
}
}, arguments) };
imports.wbg.__wbg_new_693216e109162396 = function() { return logError(function () {
2022-04-27 05:35:26 +02:00
const ret = new Error();
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbg_stack_0ddaca5d1abfb52f = function() { return logError(function (arg0, arg1) {
2022-04-27 05:35:26 +02:00
const ret = getObject(arg1).stack;
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
}, arguments) };
2022-04-27 05:35:26 +02:00
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;
}
2022-04-27 05:35:26 +02:00
const ret = false;
_assertBoolean(ret);
return ret;
};
imports.wbg.__wbg_log_06b7ffc63a0f8bee = function() { return logError(function (arg0, arg1) {
2021-12-31 00:11:20 +01:00
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
wasm.__wbindgen_free(arg0, arg1 * 4);
console.log(...v0);
}, arguments) };
imports.wbg.__wbg_warn_2aa0e7178e1d35f6 = function() { return logError(function (arg0, arg1) {
2021-12-31 00:11:20 +01:00
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
wasm.__wbindgen_free(arg0, arg1 * 4);
console.warn(...v0);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_instanceof_Window_0e6c0f1096d66c3c = function() { return logError(function (arg0) {
const ret = getObject(arg0) instanceof Window;
_assertBoolean(ret);
return ret;
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_document_99eddbbc11ec831e = function() { return logError(function (arg0) {
const ret = getObject(arg0).document;
return isLikeNone(ret) ? 0 : addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_location_fa9019d2eb2195e8 = function() { return logError(function (arg0) {
const ret = getObject(arg0).location;
2021-04-24 02:53:19 +02:00
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_history_dd96d7b18f9170a6 = function() { return handleError(function (arg0) {
const ret = getObject(arg0).history;
2021-04-24 02:53:19 +02:00
return addHeapObject(ret);
2021-07-07 03:50:13 +02:00
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_navigator_1f72d7edb7b4c387 = function() { return logError(function (arg0) {
const ret = getObject(arg0).navigator;
2021-04-24 02:53:19 +02:00
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_localStorage_6e9ba4e9a3771427 = function() { return handleError(function (arg0) {
const ret = getObject(arg0).localStorage;
return isLikeNone(ret) ? 0 : addHeapObject(ret);
2021-07-07 03:50:13 +02:00
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_sessionStorage_ac0b57844426d0d8 = function() { return handleError(function (arg0) {
const ret = getObject(arg0).sessionStorage;
return isLikeNone(ret) ? 0 : addHeapObject(ret);
2021-07-07 03:50:13 +02:00
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_fetch_ef7a6623d1fcd3b8 = function() { return logError(function (arg0, arg1) {
const ret = getObject(arg0).fetch(getObject(arg1));
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_body_2a1ff14b05042a51 = function() { return logError(function (arg0) {
const ret = getObject(arg0).body;
2021-07-25 02:51:37 +02:00
return isLikeNone(ret) ? 0 : addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_createElement_3c9b5f3aa42457a1 = function() { return handleError(function (arg0, arg1, arg2) {
const ret = getObject(arg0).createElement(getStringFromWasm0(arg1, arg2));
return addHeapObject(ret);
2021-07-07 03:50:13 +02:00
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_createElementNS_a0904ea4c02292f4 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
const ret = getObject(arg0).createElementNS(arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
return addHeapObject(ret);
2021-07-07 03:50:13 +02:00
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_createTextNode_72cf3c22f1eed9ee = function() { return logError(function (arg0, arg1, arg2) {
const ret = getObject(arg0).createTextNode(getStringFromWasm0(arg1, arg2));
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_getElementById_f83c5de20dc455d6 = function() { return logError(function (arg0, arg1, arg2) {
const ret = getObject(arg0).getElementById(getStringFromWasm0(arg1, arg2));
2021-07-25 02:51:37 +02:00
return isLikeNone(ret) ? 0 : addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_querySelector_c03126fc82664294 = function() { return handleError(function (arg0, arg1, arg2) {
const ret = getObject(arg0).querySelector(getStringFromWasm0(arg1, arg2));
return isLikeNone(ret) ? 0 : addHeapObject(ret);
2021-07-07 03:50:13 +02:00
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_pushState_b0c96c33f80b8f64 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
getObject(arg0).pushState(getObject(arg1), getStringFromWasm0(arg2, arg3), arg4 === 0 ? undefined : getStringFromWasm0(arg4, arg5));
}, arguments) };
imports.wbg.__wbg_pathname_805641640383ca79 = function() { return handleError(function (arg0, arg1) {
const ret = getObject(arg1).pathname;
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_search_083c5449552cf16e = function() { return handleError(function (arg0, arg1) {
const ret = getObject(arg1).search;
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_replace_345170f940d047af = function() { return handleError(function (arg0, arg1, arg2) {
getObject(arg0).replace(getStringFromWasm0(arg1, arg2));
}, arguments) };
imports.wbg.__wbg_instanceof_Response_ccfeb62399355bcd = function() { return logError(function (arg0) {
const ret = getObject(arg0) instanceof Response;
_assertBoolean(ret);
return ret;
}, arguments) };
imports.wbg.__wbg_status_600fd8b881393898 = function() { return logError(function (arg0) {
const ret = getObject(arg0).status;
_assertNum(ret);
return ret;
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_headers_9e7f2c05a9b962ea = function() { return logError(function (arg0) {
const ret = getObject(arg0).headers;
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_json_df9259ba758ea2fe = function() { return handleError(function (arg0) {
const ret = getObject(arg0).json();
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_text_2612fbe0b9d32220 = function() { return handleError(function (arg0) {
const ret = getObject(arg0).text();
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_getItem_eb6e17b18b890a47 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
const ret = getObject(arg1).getItem(getStringFromWasm0(arg2, arg3));
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2021-07-25 02:51:37 +02:00
var len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_removeItem_be0233b7e0822d46 = function() { return handleError(function (arg0, arg1, arg2) {
getObject(arg0).removeItem(getStringFromWasm0(arg1, arg2));
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_setItem_ed2ea572329ab721 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
getObject(arg0).setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_get_85a5f49f8e22030b = function() { return handleError(function (arg0, arg1, arg2, arg3) {
const ret = getObject(arg1).get(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) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_set_6884dcc6cdd65022 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
getObject(arg0).set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_headers_0a71906114661592 = function() { return logError(function (arg0) {
const ret = getObject(arg0).headers;
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_newwithstrandinit_fd99688f189f053e = function() { return handleError(function (arg0, arg1, arg2) {
const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_pathname_704bbbf916a0727d = function() { return logError(function (arg0, arg1) {
const ret = getObject(arg1).pathname;
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
2021-12-31 00:11:20 +01:00
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_new_25e89e4c66f17ba3 = function() { return handleError(function (arg0, arg1) {
const ret = new URL(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_get_63177ea11cf74f5a = function() { return handleError(function (arg0, arg1) {
const ret = getObject(arg0).get(getObject(arg1));
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_add_0e4449143d6e7625 = function() { return handleError(function (arg0, arg1, arg2) {
getObject(arg0).add(getStringFromWasm0(arg1, arg2));
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_remove_90cd0eb3c01b4900 = function() { return handleError(function (arg0, arg1, arg2) {
getObject(arg0).remove(getStringFromWasm0(arg1, arg2));
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_href_fbf5127aa00a8b86 = function() { return logError(function (arg0, arg1) {
const ret = getObject(arg1).href;
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
}, arguments) };
imports.wbg.__wbg_value_f232184bd0e27b00 = function() { return logError(function (arg0, arg1) {
const ret = getObject(arg1).value;
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_setvalue_8efcd1f77232ee9b = function() { return logError(function (arg0, arg1, arg2) {
getObject(arg0).value = getStringFromWasm0(arg1, arg2);
}, arguments) };
imports.wbg.__wbg_instanceof_Element_4fafc1ceb4cdee77 = function() { return logError(function (arg0) {
const ret = getObject(arg0) instanceof Element;
_assertBoolean(ret);
2021-12-31 00:11:20 +01:00
return ret;
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_namespaceURI_3bb5841c365214c8 = function() { return logError(function (arg0, arg1) {
const ret = getObject(arg1).namespaceURI;
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) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_classList_557a7b717387d03d = function() { return logError(function (arg0) {
const ret = getObject(arg0).classList;
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_removeAttribute_8a8f459a4b627ec4 = function() { return handleError(function (arg0, arg1, arg2) {
getObject(arg0).removeAttribute(getStringFromWasm0(arg1, arg2));
2021-07-07 03:50:13 +02:00
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_setAttribute_8d90e00d652037be = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
getObject(arg0).setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
2021-07-07 03:50:13 +02:00
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_instanceof_HtmlElement_806c643943ab20c1 = function() { return logError(function (arg0) {
const ret = getObject(arg0) instanceof HTMLElement;
_assertBoolean(ret);
2021-07-25 02:51:37 +02:00
return ret;
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_focus_42ad8e77a7a0b22a = function() { return handleError(function (arg0) {
2021-07-25 02:51:37 +02:00
getObject(arg0).focus();
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_instanceof_Event_2311550b7d159b6e = function() { return logError(function (arg0) {
const ret = getObject(arg0) instanceof Event;
_assertBoolean(ret);
return ret;
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_target_46fd3a29f64b0e43 = function() { return logError(function (arg0) {
const ret = getObject(arg0).target;
return isLikeNone(ret) ? 0 : addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_cancelBubble_7446704fccad1780 = function() { return logError(function (arg0) {
const ret = getObject(arg0).cancelBubble;
_assertBoolean(ret);
return ret;
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_preventDefault_747982fd5fe3b6d0 = function() { return logError(function (arg0) {
getObject(arg0).preventDefault();
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_instanceof_HtmlInputElement_750fccab172eab35 = function() { return logError(function (arg0) {
const ret = getObject(arg0) instanceof HTMLInputElement;
_assertBoolean(ret);
return ret;
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_setchecked_e37cbc4fab363e71 = function() { return logError(function (arg0, arg1) {
getObject(arg0).checked = arg1 !== 0;
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_value_14b43f7df5bd6160 = function() { return logError(function (arg0, arg1) {
const ret = getObject(arg1).value;
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_setvalue_649eb7de76d4a493 = function() { return logError(function (arg0, arg1, arg2) {
getObject(arg0).value = getStringFromWasm0(arg1, arg2);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_getClientExtensionResults_8400549e426a9259 = function() { return logError(function (arg0) {
const ret = getObject(arg0).getClientExtensionResults();
return addHeapObject(ret);
2021-07-07 03:50:13 +02:00
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_addEventListener_be0c061a1359c1dd = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4));
2021-07-07 03:50:13 +02:00
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_removeEventListener_3e7319b5d7c8be8f = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), arg4 !== 0);
2021-07-07 03:50:13 +02:00
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_credentials_f81f9e33f9789a54 = function() { return logError(function (arg0) {
const ret = getObject(arg0).credentials;
return addHeapObject(ret);
2021-12-31 00:11:20 +01:00
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_instanceof_HtmlDocument_a4a9eb971e2c2b02 = function() { return logError(function (arg0) {
const ret = getObject(arg0) instanceof HTMLDocument;
_assertBoolean(ret);
return ret;
2021-12-31 00:11:20 +01:00
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_cookie_4b5805da6b19c329 = function() { return handleError(function (arg0, arg1) {
const ret = getObject(arg1).cookie;
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
2021-12-31 00:11:20 +01:00
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_parentElement_d078cf0bd5c4b641 = function() { return logError(function (arg0) {
const ret = getObject(arg0).parentElement;
return isLikeNone(ret) ? 0 : addHeapObject(ret);
2021-12-31 00:11:20 +01:00
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_lastChild_84687239bfef7d2f = function() { return logError(function (arg0) {
const ret = getObject(arg0).lastChild;
return isLikeNone(ret) ? 0 : addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_setnodeValue_77a78d32cf9e9152 = function() { return logError(function (arg0, arg1, arg2) {
getObject(arg0).nodeValue = arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_appendChild_a86c0da8d152eae4 = function() { return handleError(function (arg0, arg1) {
const ret = getObject(arg0).appendChild(getObject(arg1));
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_insertBefore_4df558a2aa0435c1 = function() { return handleError(function (arg0, arg1, arg2) {
const ret = getObject(arg0).insertBefore(getObject(arg1), getObject(arg2));
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_removeChild_b4ce6c8d6e5d47be = function() { return handleError(function (arg0, arg1) {
const ret = getObject(arg0).removeChild(getObject(arg1));
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_new_94fb1279cf6afea5 = function() { return logError(function () {
const ret = new Array();
return addHeapObject(ret);
2021-07-07 03:50:13 +02:00
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_push_40c6a90f1805aa90 = function() { return logError(function (arg0, arg1) {
const ret = getObject(arg0).push(getObject(arg1));
_assertNum(ret);
return ret;
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_instanceof_Error_b074c76f6096db9b = function() { return logError(function (arg0) {
const ret = getObject(arg0) instanceof Error;
_assertBoolean(ret);
2021-12-31 00:11:20 +01:00
return ret;
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_message_dcca38fbff239fbf = function() { return logError(function (arg0) {
const ret = getObject(arg0).message;
2021-12-31 00:11:20 +01:00
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_name_642dd84602f48d65 = function() { return logError(function (arg0) {
const ret = getObject(arg0).name;
2021-12-31 00:11:20 +01:00
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_toString_eec28c54c24b830b = function() { return logError(function (arg0) {
const ret = getObject(arg0).toString();
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_newnoargs_e23b458e372830de = function() { return logError(function (arg0, arg1) {
const ret = new Function(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_call_ae78342adc33730a = function() { return handleError(function (arg0, arg1) {
const ret = getObject(arg0).call(getObject(arg1));
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_valueOf_a08afc4df5d92043 = function() { return logError(function (arg0) {
const ret = getObject(arg0).valueOf();
2021-12-31 00:11:20 +01:00
return ret;
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_is_40969b082b54c84d = function() { return logError(function (arg0, arg1) {
const ret = Object.is(getObject(arg0), getObject(arg1));
_assertBoolean(ret);
return ret;
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_new_36359baae5a47e27 = function() { return logError(function () {
const ret = new Object();
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_resolve_a9a87bdd64e9e62c = function() { return logError(function (arg0) {
const ret = Promise.resolve(getObject(arg0));
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_then_ce526c837d07b68f = function() { return logError(function (arg0, arg1) {
const ret = getObject(arg0).then(getObject(arg1));
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_then_842e65b843962f56 = function() { return logError(function (arg0, arg1, arg2) {
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_globalThis_8e275ef40caea3a3 = function() { return handleError(function () {
const ret = globalThis.globalThis;
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_self_99737b4dcdf6f0d8 = function() { return handleError(function () {
const ret = self.self;
return addHeapObject(ret);
2021-07-07 03:50:13 +02:00
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_window_9b61fbbf3564c4fb = function() { return handleError(function () {
const ret = window.window;
return addHeapObject(ret);
2021-07-07 03:50:13 +02:00
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_global_5de1e0f82bddcd27 = function() { return handleError(function () {
const ret = global.global;
return addHeapObject(ret);
2021-07-07 03:50:13 +02:00
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_new_cc9018bd6f283b6f = function() { return logError(function (arg0) {
const ret = new Uint8Array(getObject(arg0));
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_newwithbyteoffsetandlength_ce1e75f0ce5f7974 = function() { return logError(function (arg0, arg1, arg2) {
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_length_0acb1cf9bbaf8519 = function() { return logError(function (arg0) {
const ret = getObject(arg0).length;
_assertNum(ret);
return ret;
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_set_f25e869e4565d2a2 = function() { return logError(function (arg0, arg1, arg2) {
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_buffer_7af23f65f6c64548 = function() { return logError(function (arg0) {
const ret = getObject(arg0).buffer;
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_get_a9cab131e3152c49 = function() { return handleError(function (arg0, arg1) {
const ret = Reflect.get(getObject(arg0), getObject(arg1));
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbg_set_93b1c87ee2af852e = function() { return handleError(function (arg0, arg1, arg2) {
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
_assertBoolean(ret);
2021-07-25 02:51:37 +02:00
return ret;
}, arguments) };
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
2022-04-27 05:35:26 +02:00
const ret = debugString(getObject(arg1));
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const 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() {
2022-04-27 05:35:26 +02:00
const ret = wasm.memory;
return addHeapObject(ret);
};
2022-04-27 05:35:26 +02:00
imports.wbg.__wbindgen_closure_wrapper12105 = function() { return logError(function (arg0, arg1, arg2) {
const ret = makeClosure(arg0, arg1, 848, __wbg_adapter_30);
2021-07-25 02:51:37 +02:00
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbindgen_closure_wrapper15823 = function() { return logError(function (arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 885, __wbg_adapter_33);
return addHeapObject(ret);
}, arguments) };
2022-04-27 05:35:26 +02:00
imports.wbg.__wbindgen_closure_wrapper16232 = function() { return logError(function (arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 904, __wbg_adapter_36);
return addHeapObject(ret);
}, arguments) };
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;
}
export default init;