diff --git a/index.html b/index.html index dbf22f3..13e5141 100644 --- a/index.html +++ b/index.html @@ -4,8 +4,8 @@ - -. + +. . @@ -42,4 +42,4 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/libconfig-validator-9cc39296222496a8_bg.wasm b/libconfig-validator-9cc39296222496a8_bg.wasm deleted file mode 100644 index ce3f9f2..0000000 Binary files a/libconfig-validator-9cc39296222496a8_bg.wasm and /dev/null differ diff --git a/libconfig-validator-9cc39296222496a8.js b/libconfig-validator-b900ed7b11b5e3cc.js similarity index 92% rename from libconfig-validator-9cc39296222496a8.js rename to libconfig-validator-b900ed7b11b5e3cc.js index cea7e07..c2f5f03 100644 --- a/libconfig-validator-9cc39296222496a8.js +++ b/libconfig-validator-b900ed7b11b5e3cc.js @@ -183,43 +183,6 @@ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined') wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b) }); -function makeClosure(arg0, arg1, dtor, f) { - const state = { a: arg0, b: arg1, cnt: 1, dtor }; - const real = (...args) => { - // First up with a closure we increment the internal reference - // count. This ensures that the Rust closure environment won't - // be deallocated while we're invoking it. - state.cnt++; - try { - return f(state.a, state.b, ...args); - } finally { - if (--state.cnt === 0) { - wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b); - state.a = 0; - CLOSURE_DTORS.unregister(state); - } - } - }; - real.original = state; - CLOSURE_DTORS.register(real, state, state); - return real; -} - -let stack_pointer = 128; - -function addBorrowedObject(obj) { - if (stack_pointer == 1) throw new Error('out of js stack'); - heap[--stack_pointer] = obj; - return stack_pointer; -} -function __wbg_adapter_16(arg0, arg1, arg2) { - try { - wasm._dyn_core__ops__function__Fn___A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h99628a6bf2f336a2(arg0, arg1, addBorrowedObject(arg2)); - } finally { - heap[stack_pointer++] = undefined; - } -} - function makeMutClosure(arg0, arg1, dtor, f) { const state = { a: arg0, b: arg1, cnt: 1, dtor }; const real = (...args) => { @@ -244,8 +207,24 @@ function makeMutClosure(arg0, arg1, dtor, f) { CLOSURE_DTORS.register(real, state, state); return real; } + +let stack_pointer = 128; + +function addBorrowedObject(obj) { + if (stack_pointer == 1) throw new Error('out of js stack'); + heap[--stack_pointer] = obj; + return stack_pointer; +} +function __wbg_adapter_16(arg0, arg1, arg2) { + try { + wasm.wasm_bindgen__convert__closures__invoke1_mut_ref__h81a7926215fe5451(arg0, arg1, addBorrowedObject(arg2)); + } finally { + heap[stack_pointer++] = undefined; + } +} + function __wbg_adapter_19(arg0, arg1, arg2) { - wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2cb17cb1b55dc7c4(arg0, arg1, addHeapObject(arg2)); + wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hfc49d15122aebbcb(arg0, arg1, addHeapObject(arg2)); } function handleError(f, args) { @@ -314,13 +293,13 @@ async function __wbg_load(module, imports) { function __wbg_get_imports() { const imports = {}; imports.wbg = {}; - imports.wbg.__wbindgen_object_drop_ref = function(arg0) { - takeObject(arg0); - }; imports.wbg.__wbindgen_is_undefined = function(arg0) { const ret = getObject(arg0) === undefined; return ret; }; + imports.wbg.__wbindgen_object_drop_ref = function(arg0) { + takeObject(arg0); + }; imports.wbg.__wbindgen_string_new = function(arg0, arg1) { const ret = getStringFromWasm0(arg0, arg1); return addHeapObject(ret); @@ -345,28 +324,28 @@ function __wbg_get_imports() { const ret = getObject(arg0); return addHeapObject(ret); }; - imports.wbg.__wbg_setlistenerid_f2e783343fa0cec1 = function(arg0, arg1) { + imports.wbg.__wbg_setlistenerid_3183aae8fa5840fb = function(arg0, arg1) { getObject(arg0).__yew_listener_id = arg1 >>> 0; }; - imports.wbg.__wbg_listenerid_6dcf1c62b7b7de58 = function(arg0, arg1) { + imports.wbg.__wbg_listenerid_12315eee21527820 = function(arg0, arg1) { const ret = getObject(arg1).__yew_listener_id; getInt32Memory0()[arg0 / 4 + 1] = isLikeNone(ret) ? 0 : ret; getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret); }; - imports.wbg.__wbg_subtreeid_e80a1798fee782f9 = function(arg0, arg1) { + imports.wbg.__wbg_subtreeid_e348577f7ef777e3 = function(arg0, arg1) { const ret = getObject(arg1).__yew_subtree_id; getInt32Memory0()[arg0 / 4 + 1] = isLikeNone(ret) ? 0 : ret; getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret); }; - imports.wbg.__wbg_setsubtreeid_e1fab6b578c800cf = function(arg0, arg1) { + imports.wbg.__wbg_setsubtreeid_d32e6327eef1f7fc = function(arg0, arg1) { getObject(arg0).__yew_subtree_id = arg1 >>> 0; }; - imports.wbg.__wbg_cachekey_b81c1aacc6a0645c = function(arg0, arg1) { + imports.wbg.__wbg_cachekey_b61393159c57fd7b = function(arg0, arg1) { const ret = getObject(arg1).__yew_subtree_cache_key; getInt32Memory0()[arg0 / 4 + 1] = isLikeNone(ret) ? 0 : ret; getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret); }; - imports.wbg.__wbg_setcachekey_75bcd45312087529 = function(arg0, arg1) { + imports.wbg.__wbg_setcachekey_80183b7cfc421143 = function(arg0, arg1) { getObject(arg0).__yew_subtree_cache_key = arg1 >>> 0; }; imports.wbg.__wbindgen_cb_drop = function(arg0) { @@ -400,7 +379,7 @@ function __wbg_get_imports() { wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); } }; - imports.wbg.__wbg_error_a526fb08a0205972 = function(arg0, arg1) { + imports.wbg.__wbg_error_71d6845bf00a930f = function(arg0, arg1) { var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice(); wasm.__wbindgen_free(arg0, arg1 * 4, 4); console.error(...v0); @@ -462,56 +441,30 @@ function __wbg_get_imports() { getInt32Memory0()[arg0 / 4 + 1] = len1; getInt32Memory0()[arg0 / 4 + 0] = ptr1; }; + imports.wbg.__wbg_children_8904f20261f6442c = function(arg0) { + const ret = getObject(arg0).children; + return addHeapObject(ret); + }; imports.wbg.__wbg_removeAttribute_1b10a06ae98ebbd1 = function() { return handleError(function (arg0, arg1, arg2) { getObject(arg0).removeAttribute(getStringFromWasm0(arg1, arg2)); }, arguments) }; imports.wbg.__wbg_setAttribute_3c9f6c303b696daa = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { getObject(arg0).setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); }, arguments) }; - imports.wbg.__wbg_addEventListener_4283b15b4f039eb5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { - getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4)); - }, arguments) }; - imports.wbg.__wbg_target_2fc177e386c8b7b0 = function(arg0) { - const ret = getObject(arg0).target; - return isLikeNone(ret) ? 0 : addHeapObject(ret); - }; - imports.wbg.__wbg_bubbles_abce839854481bc6 = function(arg0) { - const ret = getObject(arg0).bubbles; + imports.wbg.__wbg_instanceof_ShadowRoot_9db040264422e84a = function(arg0) { + let result; + try { + result = getObject(arg0) instanceof ShadowRoot; + } catch (_) { + result = false; + } + const ret = result; return ret; }; - imports.wbg.__wbg_cancelBubble_c0aa3172524eb03c = function(arg0) { - const ret = getObject(arg0).cancelBubble; - return ret; - }; - imports.wbg.__wbg_composedPath_58473fd5ae55f2cd = function(arg0) { - const ret = getObject(arg0).composedPath(); + imports.wbg.__wbg_host_c667c7623404d6bf = function(arg0) { + const ret = getObject(arg0).host; return addHeapObject(ret); }; - imports.wbg.__wbg_preventDefault_b1a4aafc79409429 = function(arg0) { - getObject(arg0).preventDefault(); - }; - imports.wbg.__wbg_debug_5fb96680aecf5dc8 = function(arg0) { - console.debug(getObject(arg0)); - }; - imports.wbg.__wbg_error_8e3928cfb8a43e2b = function(arg0) { - console.error(getObject(arg0)); - }; - imports.wbg.__wbg_info_530a29cb2e4e3304 = function(arg0) { - console.info(getObject(arg0)); - }; - imports.wbg.__wbg_warn_63bbae1730aead09 = function(arg0) { - console.warn(getObject(arg0)); - }; - imports.wbg.__wbg_value_d7f5bfbd9302c14b = function(arg0, arg1) { - const ret = getObject(arg1).value; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len1; - getInt32Memory0()[arg0 / 4 + 0] = ptr1; - }; - imports.wbg.__wbg_setvalue_090972231f0a4f6f = function(arg0, arg1, arg2) { - getObject(arg0).value = getStringFromWasm0(arg1, arg2); - }; imports.wbg.__wbg_parentNode_6be3abff20e1a5fb = function(arg0) { const ret = getObject(arg0).parentNode; return isLikeNone(ret) ? 0 : addHeapObject(ret); @@ -520,10 +473,6 @@ function __wbg_get_imports() { const ret = getObject(arg0).parentElement; return isLikeNone(ret) ? 0 : addHeapObject(ret); }; - imports.wbg.__wbg_childNodes_118168e8b23bcb9b = function(arg0) { - const ret = getObject(arg0).childNodes; - return addHeapObject(ret); - }; imports.wbg.__wbg_lastChild_83efe6d5da370e1f = function(arg0) { const ret = getObject(arg0).lastChild; return isLikeNone(ret) ? 0 : addHeapObject(ret); @@ -542,8 +491,8 @@ function __wbg_get_imports() { getInt32Memory0()[arg0 / 4 + 1] = len1; getInt32Memory0()[arg0 / 4 + 0] = ptr1; }; - imports.wbg.__wbg_cloneNode_e19c313ea20d5d1d = function() { return handleError(function (arg0) { - const ret = getObject(arg0).cloneNode(); + imports.wbg.__wbg_appendChild_580ccb11a660db68 = function() { return handleError(function (arg0, arg1) { + const ret = getObject(arg0).appendChild(getObject(arg1)); return addHeapObject(ret); }, arguments) }; imports.wbg.__wbg_insertBefore_d2a001abf538c1f8 = function() { return handleError(function (arg0, arg1, arg2) { @@ -554,19 +503,27 @@ function __wbg_get_imports() { const ret = getObject(arg0).removeChild(getObject(arg1)); return addHeapObject(ret); }, arguments) }; - imports.wbg.__wbg_instanceof_ShadowRoot_9db040264422e84a = function(arg0) { - let result; - try { - result = getObject(arg0) instanceof ShadowRoot; - } catch (_) { - result = false; - } - const ret = result; - return ret; + imports.wbg.__wbg_value_d7f5bfbd9302c14b = function(arg0, arg1) { + const ret = getObject(arg1).value; + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; }; - imports.wbg.__wbg_host_c667c7623404d6bf = function(arg0) { - const ret = getObject(arg0).host; - return addHeapObject(ret); + imports.wbg.__wbg_setvalue_090972231f0a4f6f = function(arg0, arg1, arg2) { + getObject(arg0).value = getStringFromWasm0(arg1, arg2); + }; + imports.wbg.__wbg_debug_5fb96680aecf5dc8 = function(arg0) { + console.debug(getObject(arg0)); + }; + imports.wbg.__wbg_error_8e3928cfb8a43e2b = function(arg0) { + console.error(getObject(arg0)); + }; + imports.wbg.__wbg_info_530a29cb2e4e3304 = function(arg0) { + console.info(getObject(arg0)); + }; + imports.wbg.__wbg_warn_63bbae1730aead09 = function(arg0) { + console.warn(getObject(arg0)); }; imports.wbg.__wbg_checked_749a34774f2df2e3 = function(arg0) { const ret = getObject(arg0).checked; @@ -585,6 +542,28 @@ function __wbg_get_imports() { imports.wbg.__wbg_setvalue_78cb4f1fef58ae98 = function(arg0, arg1, arg2) { getObject(arg0).value = getStringFromWasm0(arg1, arg2); }; + imports.wbg.__wbg_target_2fc177e386c8b7b0 = function(arg0) { + const ret = getObject(arg0).target; + return isLikeNone(ret) ? 0 : addHeapObject(ret); + }; + imports.wbg.__wbg_bubbles_abce839854481bc6 = function(arg0) { + const ret = getObject(arg0).bubbles; + return ret; + }; + imports.wbg.__wbg_cancelBubble_c0aa3172524eb03c = function(arg0) { + const ret = getObject(arg0).cancelBubble; + return ret; + }; + imports.wbg.__wbg_composedPath_58473fd5ae55f2cd = function(arg0) { + const ret = getObject(arg0).composedPath(); + return addHeapObject(ret); + }; + imports.wbg.__wbg_preventDefault_b1a4aafc79409429 = function(arg0) { + getObject(arg0).preventDefault(); + }; + imports.wbg.__wbg_addEventListener_4283b15b4f039eb5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { + getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4)); + }, arguments) }; imports.wbg.__wbg_get_bd8e338fbd5f5cc8 = function(arg0, arg1) { const ret = getObject(arg0)[arg1 >>> 0]; return addHeapObject(ret); @@ -663,12 +642,12 @@ function __wbg_get_imports() { imports.wbg.__wbindgen_throw = function(arg0, arg1) { throw new Error(getStringFromWasm0(arg0, arg1)); }; - imports.wbg.__wbindgen_closure_wrapper1039 = function(arg0, arg1, arg2) { - const ret = makeClosure(arg0, arg1, 374, __wbg_adapter_16); + imports.wbg.__wbindgen_closure_wrapper1118 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 408, __wbg_adapter_16); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper1089 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 394, __wbg_adapter_19); + imports.wbg.__wbindgen_closure_wrapper1248 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 436, __wbg_adapter_19); return addHeapObject(ret); }; @@ -710,7 +689,7 @@ async function __wbg_init(input) { if (wasm !== undefined) return wasm; if (typeof input === 'undefined') { - input = new URL('libconfig-validator-9cc39296222496a8_bg.wasm', import.meta.url); + input = new URL('libconfig-validator-b900ed7b11b5e3cc_bg.wasm', import.meta.url); } const imports = __wbg_get_imports(); diff --git a/libconfig-validator-b900ed7b11b5e3cc_bg.wasm b/libconfig-validator-b900ed7b11b5e3cc_bg.wasm new file mode 100644 index 0000000..d5b9c93 Binary files /dev/null and b/libconfig-validator-b900ed7b11b5e3cc_bg.wasm differ