mq-web 0.5.2 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/core.cjs +2 -2
- package/dist/core.d.cts +3 -0
- package/dist/core.d.ts +3 -0
- package/dist/core.js +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -2
- package/dist/mq_wasm.js +225 -239
- package/dist/mq_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<a href="https://mqlang.org/playground">Playground 🎮</a>
|
|
7
7
|
</div>
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
<h1 align="center">mq-web</h1>
|
|
10
10
|
|
|
11
11
|
A TypeScript/JavaScript package for running [mq](https://github.com/harehare/mq) (a jq-like command-line tool for Markdown processing) in web environments using WebAssembly.
|
|
12
12
|
|
package/dist/core.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var D=Object.defineProperty;var z=Object.getOwnPropertyDescriptor;var q=Object.getOwnPropertyNames;var $=Object.prototype.hasOwnProperty;var C=(n
|
|
2
|
-
${n.stack}`:r}function M(n,e){try{return n.apply(this,e)}catch(t){c.__wbindgen_export3(s(t))}}function X(n,e){return n=n>>>0,h().subarray(n/1,n/1+e)}function Y(n){n<132||(w[n]=x,x=n)}function d(n){let e=o(n);return Y(n),e}function J(n,e,t,r){let i={a:n,b:e,cnt:1,dtor:t},a=(..._)=>{i.cnt++;let f=i.a;i.a=0;try{return r(f,i.b,..._)}finally{i.a=f,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{--i.cnt===0&&(i.dtor(i.a,i.b),i.a=0,k.unregister(i))},k.register(a,i,i),a}function K(n,e,t){let r=b(n,c.__wbindgen_export,c.__wbindgen_export2),i=u,a=b(e,c.__wbindgen_export,c.__wbindgen_export2),_=u,f=c.run(r,i,a,_,s(t));return d(f)}function Q(n){let e=b(n,c.__wbindgen_export,c.__wbindgen_export2),t=u,r=c.toAst(e,t);return d(r)}function Z(n){let e=b(n,c.__wbindgen_export,c.__wbindgen_export2),t=u,r=c.format(e,t);return d(r)}function nn(n){let e=b(n,c.__wbindgen_export,c.__wbindgen_export2),t=u,r=c.diagnostics(e,t);return d(r)}function en(n,e){let t=b(n,c.__wbindgen_export,c.__wbindgen_export2),r=u;var i=g(e)?0:b(e,c.__wbindgen_export,c.__wbindgen_export2),a=u;let _=c.definedValues(t,r,i,a);return d(_)}function tn(n,e,t){c.__wasm_bindgen_func_elem_2757(n,e,s(t))}function rn(n,e,t,r){c.__wasm_bindgen_func_elem_722(n,e,s(t),s(r))}async function sn(n,e){if(typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,e)}catch(r){if(n.ok&&cn.has(n.type)&&n.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",r);else throw r}let t=await n.arrayBuffer();return await WebAssembly.instantiate(t,e)}else{let t=await WebAssembly.instantiate(n,e);return t instanceof WebAssembly.Instance?{instance:t,module:n}:t}}function U(){let n={};return n.wbg={},n.wbg.__wbg_Error_e83987f665cf5504=function(e,t){let r=Error(O(e,t));return s(r)},n.wbg.__wbg_String_8f0eb39a4a4c2f66=function(e,t){let r=String(o(t)),i=b(r,c.__wbindgen_export,c.__wbindgen_export2),a=u;y().setInt32(e+4*1,a,!0),y().setInt32(e+4*0,i,!0)},n.wbg.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68=function(e){let t=o(e),r=typeof t=="boolean"?t:void 0;return g(r)?16777215:r?1:0},n.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763=function(e,t){let r=R(o(t)),i=b(r,c.__wbindgen_export,c.__wbindgen_export2),a=u;y().setInt32(e+4*1,a,!0),y().setInt32(e+4*0,i,!0)},n.wbg.__wbg___wbindgen_in_bb933bd9e1b3bc0f=function(e,t){return o(e)in o(t)},n.wbg.__wbg___wbindgen_is_function_ee8a6c5833c90377=function(e){return typeof o(e)=="function"},n.wbg.__wbg___wbindgen_is_object_c818261d21f283a4=function(e){let t=o(e);return typeof t=="object"&&t!==null},n.wbg.__wbg___wbindgen_is_string_fbb76cb2940daafd=function(e){return typeof o(e)=="string"},n.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478=function(e){return o(e)===void 0},n.wbg.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147=function(e,t){return o(e)==o(t)},n.wbg.__wbg___wbindgen_number_get_a20bf9b85341449d=function(e,t){let r=o(t),i=typeof r=="number"?r:void 0;y().setFloat64(e+8*1,g(i)?0:i,!0),y().setInt32(e+4*0,!g(i),!0)},n.wbg.__wbg___wbindgen_string_get_e4f06c90489ad01b=function(e,t){let r=o(t),i=typeof r=="string"?r:void 0;var a=g(i)?0:b(i,c.__wbindgen_export,c.__wbindgen_export2),_=u;y().setInt32(e+4*1,_,!0),y().setInt32(e+4*0,a,!0)},n.wbg.__wbg___wbindgen_throw_b855445ff6a94295=function(e,t){throw new Error(O(e,t))},n.wbg.__wbg__wbg_cb_unref_2454a539ea5790d9=function(e){o(e)._wbg_cb_unref()},n.wbg.__wbg_arrayBuffer_5930938a049abc90=function(e){let t=o(e).arrayBuffer();return s(t)},n.wbg.__wbg_call_525440f72fbfc0ea=function(){return M(function(e,t,r){let i=o(e).call(o(t),o(r));return s(i)},arguments)},n.wbg.__wbg_call_e762c39fa8ea36bf=function(){return M(function(e,t){let r=o(e).call(o(t));return s(r)},arguments)},n.wbg.__wbg_done_2042aa2670fb1db1=function(e){return o(e).done},n.wbg.__wbg_entries_a1e792d46512c8bf=function(e){let t=o(e).entries();return s(t)},n.wbg.__wbg_entries_e171b586f8f6bdbf=function(e){let t=Object.entries(o(e));return s(t)},n.wbg.__wbg_from_a4ad7cbddd0d7135=function(e){let t=Array.from(o(e));return s(t)},n.wbg.__wbg_getDirectory_7e7a55f640412401=function(e){let t=o(e).getDirectory();return s(t)},n.wbg.__wbg_getFile_985459d958bb9dfe=function(e){let t=o(e).getFile();return s(t)},n.wbg.__wbg_get_7bed016f185add81=function(e,t){let r=o(e)[t>>>0];return s(r)},n.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe=function(e,t){let r=o(e)[o(t)];return s(r)},n.wbg.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38=function(e){let t;try{t=o(e)instanceof ArrayBuffer}catch{t=!1}return t},n.wbg.__wbg_instanceof_FileSystemDirectoryHandle_7a17cc3353820fcf=function(e){let t;try{t=o(e)instanceof FileSystemDirectoryHandle}catch{t=!1}return t},n.wbg.__wbg_instanceof_FileSystemFileHandle_5730ec1d120983f4=function(e){let t;try{t=o(e)instanceof FileSystemFileHandle}catch{t=!1}return t},n.wbg.__wbg_instanceof_Uint8Array_20c8e73002f7af98=function(e){let t;try{t=o(e)instanceof Uint8Array}catch{t=!1}return t},n.wbg.__wbg_instanceof_Window_4846dbb3de56c84c=function(e){let t;try{t=o(e)instanceof Window}catch{t=!1}return t},n.wbg.__wbg_length_69bca3cb64fc8748=function(e){return o(e).length},n.wbg.__wbg_length_cdd215e10d9dd507=function(e){return o(e).length},n.wbg.__wbg_navigator_971384882e8ea23a=function(e){let t=o(e).navigator;return s(t)},n.wbg.__wbg_new_1acc0b6eea89d040=function(){let e=new Object;return s(e)},n.wbg.__wbg_new_3c3d849046688a66=function(e,t){try{var r={a:e,b:t},i=(_,f)=>{let l=r.a;r.a=0;try{return rn(l,r.b,_,f)}finally{r.a=l}};let a=new Promise(i);return s(a)}finally{r.a=r.b=0}},n.wbg.__wbg_new_5a79be3ab53b8aa5=function(e){let t=new Uint8Array(o(e));return s(t)},n.wbg.__wbg_new_e17d9f43105b08be=function(){let e=new Array;return s(e)},n.wbg.__wbg_new_no_args_ee98eee5275000a4=function(e,t){let r=new Function(O(e,t));return s(r)},n.wbg.__wbg_next_eedaffcadc567b75=function(){return M(function(e){let t=o(e).next();return s(t)},arguments)},n.wbg.__wbg_prototypesetcall_2a6620b6922694b2=function(e,t,r){Uint8Array.prototype.set.call(X(e,t),o(r))},n.wbg.__wbg_queueMicrotask_34d692c25c47d05b=function(e){let t=o(e).queueMicrotask;return s(t)},n.wbg.__wbg_queueMicrotask_9d76cacb20c84d58=function(e){queueMicrotask(o(e))},n.wbg.__wbg_resolve_caf97c30b83f7053=function(e){let t=Promise.resolve(o(e));return s(t)},n.wbg.__wbg_set_3f1d0b984ed272ed=function(e,t,r){o(e)[d(t)]=d(r)},n.wbg.__wbg_set_c213c871859d6500=function(e,t,r){o(e)[t>>>0]=d(r)},n.wbg.__wbg_size_0a5a003dbf5dfee8=function(e){return o(e).size},n.wbg.__wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e=function(){let e=typeof global>"u"?null:global;return g(e)?0:s(e)},n.wbg.__wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac=function(){let e=typeof globalThis>"u"?null:globalThis;return g(e)?0:s(e)},n.wbg.__wbg_static_accessor_SELF_6fdf4b64710cc91b=function(){let e=typeof self>"u"?null:self;return g(e)?0:s(e)},n.wbg.__wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2=function(){let e=typeof window>"u"?null:window;return g(e)?0:s(e)},n.wbg.__wbg_storage_3e7b84b6fbb9dd1c=function(e){let t=o(e).storage;return s(t)},n.wbg.__wbg_then_4f46f6544e6b4a28=function(e,t){let r=o(e).then(o(t));return s(r)},n.wbg.__wbg_then_70d05cf780a18d77=function(e,t,r){let i=o(e).then(o(t),o(r));return s(i)},n.wbg.__wbg_value_692627309814bb8c=function(e){let t=o(e).value;return s(t)},n.wbg.__wbindgen_cast_1e8790df2cc2adfe=function(e,t){let r=J(e,t,c.__wasm_bindgen_func_elem_2756,tn);return s(r)},n.wbg.__wbindgen_cast_2241b6af4c4b2941=function(e,t){let r=O(e,t);return s(r)},n.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(e){return s(e)},n.wbg.__wbindgen_object_clone_ref=function(e){let t=o(e);return s(t)},n.wbg.__wbindgen_object_drop_ref=function(e){d(e)},n}function V(n,e){return c=n.exports,L.__wbindgen_wasm_module=e,p=null,m=null,c}function _n(n){if(c!==void 0)return c;typeof n<"u"&&(Object.getPrototypeOf(n)===Object.prototype?{module:n}=n:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let e=U();n instanceof WebAssembly.Module||(n=new WebAssembly.Module(n));let t=new WebAssembly.Instance(n,e);return V(t,n)}async function L(n){if(c!==void 0)return c;typeof n<"u"&&(Object.getPrototypeOf(n)===Object.prototype?{module_or_path:n}=n:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof n>"u"&&(n=new URL("mq_wasm_bg.wasm",an.url));let e=U();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n));let{instance:t,module:r}=await sn(await n,e);return V(t,r)}var an,c,m,W,v,E,w,x,u,A,p,k,on,S,cn,P,I=C(()=>{"use strict";an={},m=null;W=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});W.decode();v=2146435072,E=0;w=new Array(128).fill(void 0);w.push(void 0,null,!0,!1);x=w.length;u=0,A=new TextEncoder;"encodeInto"in A||(A.encodeInto=function(n,e){let t=A.encode(n);return e.set(t),{read:n.length,written:t.length}});p=null;k=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>n.dtor(n.a,n.b));on=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>c.__wbg_runoptions_free(n>>>0,1)),S=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,on.unregister(this),e}free(){let e=this.__destroy_into_raw();c.__wbg_runoptions_free(e,0)}};Symbol.dispose&&(S.prototype[Symbol.dispose]=S.prototype.free);cn=new Set(["basic","cors","default"]);P=L});var dn={};T(dn,{definedValues:()=>wn,diagnostics:()=>gn,format:()=>bn,run:()=>fn,toAst:()=>un});module.exports=N(dn);I();var j=null;async function F(){return j||(await(async()=>{try{await P();let n=await Promise.resolve().then(()=>(I(),B));j={run:n.run,toAst:n.toAst,format:n.format,diagnostics:n.diagnostics,definedValues:n.definedValues}}catch(n){throw new Error(`Failed to initialize mq WebAssembly module: ${n}`)}})(),j)}async function fn(n,e,t={}){return await(await F()).run(n,e,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...t})}async function un(n){return await(await F()).toAst(n)}async function bn(n){return await(await F()).format(n)}async function gn(n){return await(await F()).diagnostics(n)}async function wn(n,e){return await(await F()).definedValues(n,e)}0&&(module.exports={definedValues,diagnostics,format,run,toAst});
|
|
1
|
+
"use strict";var D=Object.defineProperty;var z=Object.getOwnPropertyDescriptor;var q=Object.getOwnPropertyNames;var $=Object.prototype.hasOwnProperty;var C=(e,n)=>()=>(e&&(n=e(e=0)),n);var T=(e,n)=>{for(var t in n)D(e,t,{get:n[t],enumerable:!0})},H=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of q(n))!$.call(e,i)&&i!==t&&D(e,i,{get:()=>n[i],enumerable:!(r=z(n,i))||r.enumerable});return e};var N=e=>H(D({},"__esModule",{value:!0}),e);var B={};T(B,{RunOptions:()=>S,default:()=>P,definedValues:()=>ee,diagnostics:()=>ne,format:()=>te,initSync:()=>se,run:()=>re,toAst:()=>ie});function s(e){x===w.length&&w.push(w.length+1);let n=x;return x=w[n],w[n]=e,n}function R(e){let n=typeof e;if(n=="number"||n=="boolean"||e==null)return`${e}`;if(n=="string")return`"${e}"`;if(n=="symbol"){let i=e.description;return i==null?"Symbol":`Symbol(${i})`}if(n=="function"){let i=e.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(e)){let i=e.length,a="[";i>0&&(a+=R(e[0]));for(let _=1;_<i;_++)a+=", "+R(e[_]);return a+="]",a}let t=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(t&&t.length>1)r=t[1];else return toString.call(e);if(r=="Object")try{return"Object("+JSON.stringify(e)+")"}catch{return"Object"}return e instanceof Error?`${e.name}: ${e.message}
|
|
2
|
+
${e.stack}`:r}function v(e){e<132||(w[e]=x,x=e)}function G(e,n){return e=e>>>0,h().subarray(e/1,e/1+n)}function y(){return(p===null||p.buffer.detached===!0||p.buffer.detached===void 0&&p.buffer!==c.memory.buffer)&&(p=new DataView(c.memory.buffer)),p}function O(e,n){return e=e>>>0,J(e,n)}function h(){return(m===null||m.byteLength===0)&&(m=new Uint8Array(c.memory.buffer)),m}function o(e){return w[e]}function E(e,n){try{return e.apply(this,n)}catch(t){c.__wbindgen_export3(s(t))}}function g(e){return e==null}function X(e,n,t,r){let i={a:e,b:n,cnt:1,dtor:t},a=(..._)=>{i.cnt++;let f=i.a;i.a=0;try{return r(f,i.b,..._)}finally{i.a=f,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{--i.cnt===0&&(i.dtor(i.a,i.b),i.a=0,k.unregister(i))},k.register(a,i,i),a}function b(e,n,t){if(t===void 0){let f=A.encode(e),l=n(f.length,1)>>>0;return h().subarray(l,l+f.length).set(f),u=f.length,l}let r=e.length,i=n(r,1)>>>0,a=h(),_=0;for(;_<r;_++){let f=e.charCodeAt(_);if(f>127)break;a[i+_]=f}if(_!==r){_!==0&&(e=e.slice(_)),i=t(i,r,r=_+e.length*3,1)>>>0;let f=h().subarray(i+_,i+r),l=A.encodeInto(e,f);_+=l.written,i=t(i,r,_,1)>>>0}return u=_,i}function d(e){let n=o(e);return v(e),n}function J(e,n){return M+=n,M>=Y&&(W=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),W.decode(),M=n),W.decode(h().subarray(e,e+n))}function K(e,n,t){c.__wasm_bindgen_func_elem_2764(e,n,s(t))}function Q(e,n,t,r){c.__wasm_bindgen_func_elem_718(e,n,s(t),s(r))}function ee(e,n){let t=b(e,c.__wbindgen_export,c.__wbindgen_export2),r=u;var i=g(n)?0:b(n,c.__wbindgen_export,c.__wbindgen_export2),a=u;let _=c.definedValues(t,r,i,a);return d(_)}function ne(e){let n=b(e,c.__wbindgen_export,c.__wbindgen_export2),t=u,r=c.diagnostics(n,t);return d(r)}function te(e){let n=b(e,c.__wbindgen_export,c.__wbindgen_export2),t=u,r=c.format(n,t);return d(r)}function re(e,n,t){let r=b(e,c.__wbindgen_export,c.__wbindgen_export2),i=u,a=b(n,c.__wbindgen_export,c.__wbindgen_export2),_=u,f=c.run(r,i,a,_,s(t));return d(f)}function ie(e){let n=b(e,c.__wbindgen_export,c.__wbindgen_export2),t=u,r=c.toAst(n,t);return d(r)}async function ce(e,n){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,n)}catch(r){if(e.ok&&oe.has(e.type)&&e.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",r);else throw r}let t=await e.arrayBuffer();return await WebAssembly.instantiate(t,n)}else{let t=await WebAssembly.instantiate(e,n);return t instanceof WebAssembly.Instance?{instance:t,module:e}:t}}function U(){let e={};return e.wbg={},e.wbg.__wbg_Error_52673b7de5a0ca89=function(n,t){let r=Error(O(n,t));return s(r)},e.wbg.__wbg_String_8f0eb39a4a4c2f66=function(n,t){let r=String(o(t)),i=b(r,c.__wbindgen_export,c.__wbindgen_export2),a=u;y().setInt32(n+4*1,a,!0),y().setInt32(n+4*0,i,!0)},e.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b=function(n){let t=o(n),r=typeof t=="boolean"?t:void 0;return g(r)?16777215:r?1:0},e.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6=function(n,t){let r=R(o(t)),i=b(r,c.__wbindgen_export,c.__wbindgen_export2),a=u;y().setInt32(n+4*1,a,!0),y().setInt32(n+4*0,i,!0)},e.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317=function(n,t){return o(n)in o(t)},e.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd=function(n){return typeof o(n)=="function"},e.wbg.__wbg___wbindgen_is_object_ce774f3490692386=function(n){let t=o(n);return typeof t=="object"&&t!==null},e.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030=function(n){return typeof o(n)=="string"},e.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269=function(n){return o(n)===void 0},e.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d=function(n,t){return o(n)==o(t)},e.wbg.__wbg___wbindgen_number_get_9619185a74197f95=function(n,t){let r=o(t),i=typeof r=="number"?r:void 0;y().setFloat64(n+8*1,g(i)?0:i,!0),y().setInt32(n+4*0,!g(i),!0)},e.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42=function(n,t){let r=o(t),i=typeof r=="string"?r:void 0;var a=g(i)?0:b(i,c.__wbindgen_export,c.__wbindgen_export2),_=u;y().setInt32(n+4*1,_,!0),y().setInt32(n+4*0,a,!0)},e.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e=function(n,t){throw new Error(O(n,t))},e.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7=function(n){o(n)._wbg_cb_unref()},e.wbg.__wbg_arrayBuffer_3356d392ef2d2aa9=function(n){let t=o(n).arrayBuffer();return s(t)},e.wbg.__wbg_call_3020136f7a2d6e44=function(){return E(function(n,t,r){let i=o(n).call(o(t),o(r));return s(i)},arguments)},e.wbg.__wbg_call_abb4ff46ce38be40=function(){return E(function(n,t){let r=o(n).call(o(t));return s(r)},arguments)},e.wbg.__wbg_done_62ea16af4ce34b24=function(n){return o(n).done},e.wbg.__wbg_entries_7de5c9edd116e219=function(n){let t=o(n).entries();return s(t)},e.wbg.__wbg_entries_83c79938054e065f=function(n){let t=Object.entries(o(n));return s(t)},e.wbg.__wbg_from_29a8414a7a7cd19d=function(n){let t=Array.from(o(n));return s(t)},e.wbg.__wbg_getDirectory_9beed6c83b6861f5=function(n){let t=o(n).getDirectory();return s(t)},e.wbg.__wbg_getFile_3d12eaf635641f3a=function(n){let t=o(n).getFile();return s(t)},e.wbg.__wbg_get_6b7bd52aca3f9671=function(n,t){let r=o(n)[t>>>0];return s(r)},e.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe=function(n,t){let r=o(n)[o(t)];return s(r)},e.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355=function(n){let t;try{t=o(n)instanceof ArrayBuffer}catch{t=!1}return t},e.wbg.__wbg_instanceof_FileSystemDirectoryHandle_264085cadc86679a=function(n){let t;try{t=o(n)instanceof FileSystemDirectoryHandle}catch{t=!1}return t},e.wbg.__wbg_instanceof_FileSystemFileHandle_214d69e0ae063fc8=function(n){let t;try{t=o(n)instanceof FileSystemFileHandle}catch{t=!1}return t},e.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434=function(n){let t;try{t=o(n)instanceof Uint8Array}catch{t=!1}return t},e.wbg.__wbg_instanceof_Window_b5cf7783caa68180=function(n){let t;try{t=o(n)instanceof Window}catch{t=!1}return t},e.wbg.__wbg_length_22ac23eaec9d8053=function(n){return o(n).length},e.wbg.__wbg_length_d45040a40c570362=function(n){return o(n).length},e.wbg.__wbg_navigator_b49edef831236138=function(n){let t=o(n).navigator;return s(t)},e.wbg.__wbg_new_1ba21ce319a06297=function(){let n=new Object;return s(n)},e.wbg.__wbg_new_25f239778d6112b9=function(){let n=new Array;return s(n)},e.wbg.__wbg_new_6421f6084cc5bc5a=function(n){let t=new Uint8Array(o(n));return s(t)},e.wbg.__wbg_new_ff12d2b041fb48f1=function(n,t){try{var r={a:n,b:t},i=(_,f)=>{let l=r.a;r.a=0;try{return Q(l,r.b,_,f)}finally{r.a=l}};let a=new Promise(i);return s(a)}finally{r.a=r.b=0}},e.wbg.__wbg_new_no_args_cb138f77cf6151ee=function(n,t){let r=new Function(O(n,t));return s(r)},e.wbg.__wbg_next_b34c09a202bf4424=function(){return E(function(n){let t=o(n).next();return s(t)},arguments)},e.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd=function(n,t,r){Uint8Array.prototype.set.call(G(n,t),o(r))},e.wbg.__wbg_queueMicrotask_9b549dfce8865860=function(n){let t=o(n).queueMicrotask;return s(t)},e.wbg.__wbg_queueMicrotask_fca69f5bfad613a5=function(n){queueMicrotask(o(n))},e.wbg.__wbg_resolve_fd5bfbaa4ce36e1e=function(n){let t=Promise.resolve(o(n));return s(t)},e.wbg.__wbg_set_3f1d0b984ed272ed=function(n,t,r){o(n)[d(t)]=d(r)},e.wbg.__wbg_set_7df433eea03a5c14=function(n,t,r){o(n)[t>>>0]=d(r)},e.wbg.__wbg_size_82fbdb656de23326=function(n){return o(n).size},e.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335=function(){let n=typeof global>"u"?null:global;return g(n)?0:s(n)},e.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1=function(){let n=typeof globalThis>"u"?null:globalThis;return g(n)?0:s(n)},e.wbg.__wbg_static_accessor_SELF_08f5a74c69739274=function(){let n=typeof self>"u"?null:self;return g(n)?0:s(n)},e.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024=function(){let n=typeof window>"u"?null:window;return g(n)?0:s(n)},e.wbg.__wbg_storage_b04c3b736f10dd3b=function(n){let t=o(n).storage;return s(t)},e.wbg.__wbg_then_429f7caf1026411d=function(n,t,r){let i=o(n).then(o(t),o(r));return s(i)},e.wbg.__wbg_then_4f95312d68691235=function(n,t){let r=o(n).then(o(t));return s(r)},e.wbg.__wbg_value_57b7b035e117f7ee=function(n){let t=o(n).value;return s(t)},e.wbg.__wbindgen_cast_2241b6af4c4b2941=function(n,t){let r=O(n,t);return s(r)},e.wbg.__wbindgen_cast_7cc765810adca37d=function(n,t){let r=X(n,t,c.__wasm_bindgen_func_elem_2763,K);return s(r)},e.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(n){return s(n)},e.wbg.__wbindgen_object_clone_ref=function(n){let t=o(n);return s(t)},e.wbg.__wbindgen_object_drop_ref=function(n){d(n)},e}function V(e,n){return c=e.exports,L.__wbindgen_wasm_module=n,p=null,m=null,c}function se(e){if(c!==void 0)return c;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let n=U();e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));let t=new WebAssembly.Instance(e,n);return V(t,e)}async function L(e){if(c!==void 0)return c;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof e>"u"&&(e=new URL("mq_wasm_bg.wasm",_e.url));let n=U();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));let{instance:t,module:r}=await ce(await e,n);return V(t,r)}var _e,c,k,p,m,w,x,W,Y,M,A,u,Z,S,oe,P,I=C(()=>{"use strict";_e={};k=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>e.dtor(e.a,e.b));p=null;m=null;w=new Array(128).fill(void 0);w.push(void 0,null,!0,!1);x=w.length;W=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});W.decode();Y=2146435072,M=0;A=new TextEncoder;"encodeInto"in A||(A.encodeInto=function(e,n){let t=A.encode(e);return n.set(t),{read:e.length,written:t.length}});u=0;Z=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>c.__wbg_runoptions_free(e>>>0,1)),S=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),n}free(){let n=this.__destroy_into_raw();c.__wbg_runoptions_free(n,0)}};Symbol.dispose&&(S.prototype[Symbol.dispose]=S.prototype.free);oe=new Set(["basic","cors","default"]);P=L});var we={};T(we,{definedValues:()=>ge,diagnostics:()=>be,format:()=>ue,run:()=>ae,toAst:()=>fe});module.exports=N(we);I();var j=null;async function F(){return j||(await(async()=>{try{await P();let e=await Promise.resolve().then(()=>(I(),B));j={run:e.run,toAst:e.toAst,format:e.format,diagnostics:e.diagnostics,definedValues:e.definedValues}}catch(e){throw new Error(`Failed to initialize mq WebAssembly module: ${e}`)}})(),j)}async function ae(e,n,t={}){return await(await F()).run(e,n,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...t})}async function fe(e){return await(await F()).toAst(e)}async function ue(e){return await(await F()).format(e)}async function be(e){return await(await F()).diagnostics(e)}async function ge(e,n){return await(await F()).definedValues(e,n)}0&&(module.exports={definedValues,diagnostics,format,run,toAst});
|
package/dist/core.d.cts
CHANGED
package/dist/core.d.ts
CHANGED
package/dist/core.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var L=Object.defineProperty;var B=(n
|
|
2
|
-
${n.stack}`:r}function E(n,e){try{return n.apply(this,e)}catch(t){c.__wbindgen_export3(s(t))}}function C(n,e){return n=n>>>0,h().subarray(n/1,n/1+e)}function H(n){n<132||(w[n]=x,x=n)}function d(n){let e=o(n);return H(n),e}function N(n,e,t,r){let i={a:n,b:e,cnt:1,dtor:t},a=(..._)=>{i.cnt++;let f=i.a;i.a=0;try{return r(f,i.b,..._)}finally{i.a=f,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{--i.cnt===0&&(i.dtor(i.a,i.b),i.a=0,I.unregister(i))},I.register(a,i,i),a}function v(n,e,t){let r=b(n,c.__wbindgen_export,c.__wbindgen_export2),i=u,a=b(e,c.__wbindgen_export,c.__wbindgen_export2),_=u,f=c.run(r,i,a,_,s(t));return d(f)}function G(n){let e=b(n,c.__wbindgen_export,c.__wbindgen_export2),t=u,r=c.toAst(e,t);return d(r)}function X(n){let e=b(n,c.__wbindgen_export,c.__wbindgen_export2),t=u,r=c.format(e,t);return d(r)}function Y(n){let e=b(n,c.__wbindgen_export,c.__wbindgen_export2),t=u,r=c.diagnostics(e,t);return d(r)}function J(n,e){let t=b(n,c.__wbindgen_export,c.__wbindgen_export2),r=u;var i=g(e)?0:b(e,c.__wbindgen_export,c.__wbindgen_export2),a=u;let _=c.definedValues(t,r,i,a);return d(_)}function K(n,e,t){c.__wasm_bindgen_func_elem_2757(n,e,s(t))}function Q(n,e,t,r){c.__wasm_bindgen_func_elem_722(n,e,s(t),s(r))}async function en(n,e){if(typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,e)}catch(r){if(n.ok&&nn.has(n.type)&&n.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",r);else throw r}let t=await n.arrayBuffer();return await WebAssembly.instantiate(t,e)}else{let t=await WebAssembly.instantiate(n,e);return t instanceof WebAssembly.Instance?{instance:t,module:n}:t}}function T(){let n={};return n.wbg={},n.wbg.__wbg_Error_e83987f665cf5504=function(e,t){let r=Error(O(e,t));return s(r)},n.wbg.__wbg_String_8f0eb39a4a4c2f66=function(e,t){let r=String(o(t)),i=b(r,c.__wbindgen_export,c.__wbindgen_export2),a=u;y().setInt32(e+4*1,a,!0),y().setInt32(e+4*0,i,!0)},n.wbg.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68=function(e){let t=o(e),r=typeof t=="boolean"?t:void 0;return g(r)?16777215:r?1:0},n.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763=function(e,t){let r=M(o(t)),i=b(r,c.__wbindgen_export,c.__wbindgen_export2),a=u;y().setInt32(e+4*1,a,!0),y().setInt32(e+4*0,i,!0)},n.wbg.__wbg___wbindgen_in_bb933bd9e1b3bc0f=function(e,t){return o(e)in o(t)},n.wbg.__wbg___wbindgen_is_function_ee8a6c5833c90377=function(e){return typeof o(e)=="function"},n.wbg.__wbg___wbindgen_is_object_c818261d21f283a4=function(e){let t=o(e);return typeof t=="object"&&t!==null},n.wbg.__wbg___wbindgen_is_string_fbb76cb2940daafd=function(e){return typeof o(e)=="string"},n.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478=function(e){return o(e)===void 0},n.wbg.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147=function(e,t){return o(e)==o(t)},n.wbg.__wbg___wbindgen_number_get_a20bf9b85341449d=function(e,t){let r=o(t),i=typeof r=="number"?r:void 0;y().setFloat64(e+8*1,g(i)?0:i,!0),y().setInt32(e+4*0,!g(i),!0)},n.wbg.__wbg___wbindgen_string_get_e4f06c90489ad01b=function(e,t){let r=o(t),i=typeof r=="string"?r:void 0;var a=g(i)?0:b(i,c.__wbindgen_export,c.__wbindgen_export2),_=u;y().setInt32(e+4*1,_,!0),y().setInt32(e+4*0,a,!0)},n.wbg.__wbg___wbindgen_throw_b855445ff6a94295=function(e,t){throw new Error(O(e,t))},n.wbg.__wbg__wbg_cb_unref_2454a539ea5790d9=function(e){o(e)._wbg_cb_unref()},n.wbg.__wbg_arrayBuffer_5930938a049abc90=function(e){let t=o(e).arrayBuffer();return s(t)},n.wbg.__wbg_call_525440f72fbfc0ea=function(){return E(function(e,t,r){let i=o(e).call(o(t),o(r));return s(i)},arguments)},n.wbg.__wbg_call_e762c39fa8ea36bf=function(){return E(function(e,t){let r=o(e).call(o(t));return s(r)},arguments)},n.wbg.__wbg_done_2042aa2670fb1db1=function(e){return o(e).done},n.wbg.__wbg_entries_a1e792d46512c8bf=function(e){let t=o(e).entries();return s(t)},n.wbg.__wbg_entries_e171b586f8f6bdbf=function(e){let t=Object.entries(o(e));return s(t)},n.wbg.__wbg_from_a4ad7cbddd0d7135=function(e){let t=Array.from(o(e));return s(t)},n.wbg.__wbg_getDirectory_7e7a55f640412401=function(e){let t=o(e).getDirectory();return s(t)},n.wbg.__wbg_getFile_985459d958bb9dfe=function(e){let t=o(e).getFile();return s(t)},n.wbg.__wbg_get_7bed016f185add81=function(e,t){let r=o(e)[t>>>0];return s(r)},n.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe=function(e,t){let r=o(e)[o(t)];return s(r)},n.wbg.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38=function(e){let t;try{t=o(e)instanceof ArrayBuffer}catch{t=!1}return t},n.wbg.__wbg_instanceof_FileSystemDirectoryHandle_7a17cc3353820fcf=function(e){let t;try{t=o(e)instanceof FileSystemDirectoryHandle}catch{t=!1}return t},n.wbg.__wbg_instanceof_FileSystemFileHandle_5730ec1d120983f4=function(e){let t;try{t=o(e)instanceof FileSystemFileHandle}catch{t=!1}return t},n.wbg.__wbg_instanceof_Uint8Array_20c8e73002f7af98=function(e){let t;try{t=o(e)instanceof Uint8Array}catch{t=!1}return t},n.wbg.__wbg_instanceof_Window_4846dbb3de56c84c=function(e){let t;try{t=o(e)instanceof Window}catch{t=!1}return t},n.wbg.__wbg_length_69bca3cb64fc8748=function(e){return o(e).length},n.wbg.__wbg_length_cdd215e10d9dd507=function(e){return o(e).length},n.wbg.__wbg_navigator_971384882e8ea23a=function(e){let t=o(e).navigator;return s(t)},n.wbg.__wbg_new_1acc0b6eea89d040=function(){let e=new Object;return s(e)},n.wbg.__wbg_new_3c3d849046688a66=function(e,t){try{var r={a:e,b:t},i=(_,f)=>{let l=r.a;r.a=0;try{return Q(l,r.b,_,f)}finally{r.a=l}};let a=new Promise(i);return s(a)}finally{r.a=r.b=0}},n.wbg.__wbg_new_5a79be3ab53b8aa5=function(e){let t=new Uint8Array(o(e));return s(t)},n.wbg.__wbg_new_e17d9f43105b08be=function(){let e=new Array;return s(e)},n.wbg.__wbg_new_no_args_ee98eee5275000a4=function(e,t){let r=new Function(O(e,t));return s(r)},n.wbg.__wbg_next_eedaffcadc567b75=function(){return E(function(e){let t=o(e).next();return s(t)},arguments)},n.wbg.__wbg_prototypesetcall_2a6620b6922694b2=function(e,t,r){Uint8Array.prototype.set.call(C(e,t),o(r))},n.wbg.__wbg_queueMicrotask_34d692c25c47d05b=function(e){let t=o(e).queueMicrotask;return s(t)},n.wbg.__wbg_queueMicrotask_9d76cacb20c84d58=function(e){queueMicrotask(o(e))},n.wbg.__wbg_resolve_caf97c30b83f7053=function(e){let t=Promise.resolve(o(e));return s(t)},n.wbg.__wbg_set_3f1d0b984ed272ed=function(e,t,r){o(e)[d(t)]=d(r)},n.wbg.__wbg_set_c213c871859d6500=function(e,t,r){o(e)[t>>>0]=d(r)},n.wbg.__wbg_size_0a5a003dbf5dfee8=function(e){return o(e).size},n.wbg.__wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e=function(){let e=typeof global>"u"?null:global;return g(e)?0:s(e)},n.wbg.__wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac=function(){let e=typeof globalThis>"u"?null:globalThis;return g(e)?0:s(e)},n.wbg.__wbg_static_accessor_SELF_6fdf4b64710cc91b=function(){let e=typeof self>"u"?null:self;return g(e)?0:s(e)},n.wbg.__wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2=function(){let e=typeof window>"u"?null:window;return g(e)?0:s(e)},n.wbg.__wbg_storage_3e7b84b6fbb9dd1c=function(e){let t=o(e).storage;return s(t)},n.wbg.__wbg_then_4f46f6544e6b4a28=function(e,t){let r=o(e).then(o(t));return s(r)},n.wbg.__wbg_then_70d05cf780a18d77=function(e,t,r){let i=o(e).then(o(t),o(r));return s(i)},n.wbg.__wbg_value_692627309814bb8c=function(e){let t=o(e).value;return s(t)},n.wbg.__wbindgen_cast_1e8790df2cc2adfe=function(e,t){let r=N(e,t,c.__wasm_bindgen_func_elem_2756,K);return s(r)},n.wbg.__wbindgen_cast_2241b6af4c4b2941=function(e,t){let r=O(e,t);return s(r)},n.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(e){return s(e)},n.wbg.__wbindgen_object_clone_ref=function(e){let t=o(e);return s(t)},n.wbg.__wbindgen_object_drop_ref=function(e){d(e)},n}function k(n,e){return c=n.exports,U.__wbindgen_wasm_module=e,p=null,m=null,c}function tn(n){if(c!==void 0)return c;typeof n<"u"&&(Object.getPrototypeOf(n)===Object.prototype?{module:n}=n:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let e=T();n instanceof WebAssembly.Module||(n=new WebAssembly.Module(n));let t=new WebAssembly.Instance(n,e);return k(t,n)}async function U(n){if(c!==void 0)return c;typeof n<"u"&&(Object.getPrototypeOf(n)===Object.prototype?{module_or_path:n}=n:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof n>"u"&&(n=new URL("mq_wasm_bg.wasm",import.meta.url));let e=T();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n));let{instance:t,module:r}=await en(await n,e);return k(t,r)}var c,m,W,q,D,w,x,u,A,p,I,Z,S,nn,R,P=B(()=>{"use strict";m=null;W=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});W.decode();q=2146435072,D=0;w=new Array(128).fill(void 0);w.push(void 0,null,!0,!1);x=w.length;u=0,A=new TextEncoder;"encodeInto"in A||(A.encodeInto=function(n,e){let t=A.encode(n);return e.set(t),{read:n.length,written:t.length}});p=null;I=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>n.dtor(n.a,n.b));Z=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>c.__wbg_runoptions_free(n>>>0,1)),S=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),e}free(){let e=this.__destroy_into_raw();c.__wbg_runoptions_free(e,0)}};Symbol.dispose&&(S.prototype[Symbol.dispose]=S.prototype.free);nn=new Set(["basic","cors","default"]);R=U});P();var j=null;async function F(){return j||(await(async()=>{try{await R();let n=await Promise.resolve().then(()=>(P(),V));j={run:n.run,toAst:n.toAst,format:n.format,diagnostics:n.diagnostics,definedValues:n.definedValues}}catch(n){throw new Error(`Failed to initialize mq WebAssembly module: ${n}`)}})(),j)}async function an(n,e,t={}){return await(await F()).run(n,e,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...t})}async function fn(n){return await(await F()).toAst(n)}async function un(n){return await(await F()).format(n)}async function bn(n){return await(await F()).diagnostics(n)}async function gn(n,e){return await(await F()).definedValues(n,e)}export{gn as definedValues,bn as diagnostics,un as format,an as run,fn as toAst};
|
|
1
|
+
var L=Object.defineProperty;var B=(e,n)=>()=>(e&&(n=e(e=0)),n);var z=(e,n)=>{for(var t in n)L(e,t,{get:n[t],enumerable:!0})};var V={};z(V,{RunOptions:()=>S,default:()=>R,definedValues:()=>Y,diagnostics:()=>J,format:()=>K,initSync:()=>te,run:()=>Q,toAst:()=>Z});function s(e){x===w.length&&w.push(w.length+1);let n=x;return x=w[n],w[n]=e,n}function M(e){let n=typeof e;if(n=="number"||n=="boolean"||e==null)return`${e}`;if(n=="string")return`"${e}"`;if(n=="symbol"){let i=e.description;return i==null?"Symbol":`Symbol(${i})`}if(n=="function"){let i=e.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(e)){let i=e.length,a="[";i>0&&(a+=M(e[0]));for(let _=1;_<i;_++)a+=", "+M(e[_]);return a+="]",a}let t=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(t&&t.length>1)r=t[1];else return toString.call(e);if(r=="Object")try{return"Object("+JSON.stringify(e)+")"}catch{return"Object"}return e instanceof Error?`${e.name}: ${e.message}
|
|
2
|
+
${e.stack}`:r}function q(e){e<132||(w[e]=x,x=e)}function $(e,n){return e=e>>>0,h().subarray(e/1,e/1+n)}function y(){return(p===null||p.buffer.detached===!0||p.buffer.detached===void 0&&p.buffer!==c.memory.buffer)&&(p=new DataView(c.memory.buffer)),p}function O(e,n){return e=e>>>0,N(e,n)}function h(){return(m===null||m.byteLength===0)&&(m=new Uint8Array(c.memory.buffer)),m}function o(e){return w[e]}function D(e,n){try{return e.apply(this,n)}catch(t){c.__wbindgen_export3(s(t))}}function g(e){return e==null}function C(e,n,t,r){let i={a:e,b:n,cnt:1,dtor:t},a=(..._)=>{i.cnt++;let f=i.a;i.a=0;try{return r(f,i.b,..._)}finally{i.a=f,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{--i.cnt===0&&(i.dtor(i.a,i.b),i.a=0,I.unregister(i))},I.register(a,i,i),a}function b(e,n,t){if(t===void 0){let f=A.encode(e),l=n(f.length,1)>>>0;return h().subarray(l,l+f.length).set(f),u=f.length,l}let r=e.length,i=n(r,1)>>>0,a=h(),_=0;for(;_<r;_++){let f=e.charCodeAt(_);if(f>127)break;a[i+_]=f}if(_!==r){_!==0&&(e=e.slice(_)),i=t(i,r,r=_+e.length*3,1)>>>0;let f=h().subarray(i+_,i+r),l=A.encodeInto(e,f);_+=l.written,i=t(i,r,_,1)>>>0}return u=_,i}function d(e){let n=o(e);return q(e),n}function N(e,n){return E+=n,E>=H&&(W=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),W.decode(),E=n),W.decode(h().subarray(e,e+n))}function v(e,n,t){c.__wasm_bindgen_func_elem_2764(e,n,s(t))}function G(e,n,t,r){c.__wasm_bindgen_func_elem_718(e,n,s(t),s(r))}function Y(e,n){let t=b(e,c.__wbindgen_export,c.__wbindgen_export2),r=u;var i=g(n)?0:b(n,c.__wbindgen_export,c.__wbindgen_export2),a=u;let _=c.definedValues(t,r,i,a);return d(_)}function J(e){let n=b(e,c.__wbindgen_export,c.__wbindgen_export2),t=u,r=c.diagnostics(n,t);return d(r)}function K(e){let n=b(e,c.__wbindgen_export,c.__wbindgen_export2),t=u,r=c.format(n,t);return d(r)}function Q(e,n,t){let r=b(e,c.__wbindgen_export,c.__wbindgen_export2),i=u,a=b(n,c.__wbindgen_export,c.__wbindgen_export2),_=u,f=c.run(r,i,a,_,s(t));return d(f)}function Z(e){let n=b(e,c.__wbindgen_export,c.__wbindgen_export2),t=u,r=c.toAst(n,t);return d(r)}async function ne(e,n){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,n)}catch(r){if(e.ok&&ee.has(e.type)&&e.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",r);else throw r}let t=await e.arrayBuffer();return await WebAssembly.instantiate(t,n)}else{let t=await WebAssembly.instantiate(e,n);return t instanceof WebAssembly.Instance?{instance:t,module:e}:t}}function T(){let e={};return e.wbg={},e.wbg.__wbg_Error_52673b7de5a0ca89=function(n,t){let r=Error(O(n,t));return s(r)},e.wbg.__wbg_String_8f0eb39a4a4c2f66=function(n,t){let r=String(o(t)),i=b(r,c.__wbindgen_export,c.__wbindgen_export2),a=u;y().setInt32(n+4*1,a,!0),y().setInt32(n+4*0,i,!0)},e.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b=function(n){let t=o(n),r=typeof t=="boolean"?t:void 0;return g(r)?16777215:r?1:0},e.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6=function(n,t){let r=M(o(t)),i=b(r,c.__wbindgen_export,c.__wbindgen_export2),a=u;y().setInt32(n+4*1,a,!0),y().setInt32(n+4*0,i,!0)},e.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317=function(n,t){return o(n)in o(t)},e.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd=function(n){return typeof o(n)=="function"},e.wbg.__wbg___wbindgen_is_object_ce774f3490692386=function(n){let t=o(n);return typeof t=="object"&&t!==null},e.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030=function(n){return typeof o(n)=="string"},e.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269=function(n){return o(n)===void 0},e.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d=function(n,t){return o(n)==o(t)},e.wbg.__wbg___wbindgen_number_get_9619185a74197f95=function(n,t){let r=o(t),i=typeof r=="number"?r:void 0;y().setFloat64(n+8*1,g(i)?0:i,!0),y().setInt32(n+4*0,!g(i),!0)},e.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42=function(n,t){let r=o(t),i=typeof r=="string"?r:void 0;var a=g(i)?0:b(i,c.__wbindgen_export,c.__wbindgen_export2),_=u;y().setInt32(n+4*1,_,!0),y().setInt32(n+4*0,a,!0)},e.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e=function(n,t){throw new Error(O(n,t))},e.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7=function(n){o(n)._wbg_cb_unref()},e.wbg.__wbg_arrayBuffer_3356d392ef2d2aa9=function(n){let t=o(n).arrayBuffer();return s(t)},e.wbg.__wbg_call_3020136f7a2d6e44=function(){return D(function(n,t,r){let i=o(n).call(o(t),o(r));return s(i)},arguments)},e.wbg.__wbg_call_abb4ff46ce38be40=function(){return D(function(n,t){let r=o(n).call(o(t));return s(r)},arguments)},e.wbg.__wbg_done_62ea16af4ce34b24=function(n){return o(n).done},e.wbg.__wbg_entries_7de5c9edd116e219=function(n){let t=o(n).entries();return s(t)},e.wbg.__wbg_entries_83c79938054e065f=function(n){let t=Object.entries(o(n));return s(t)},e.wbg.__wbg_from_29a8414a7a7cd19d=function(n){let t=Array.from(o(n));return s(t)},e.wbg.__wbg_getDirectory_9beed6c83b6861f5=function(n){let t=o(n).getDirectory();return s(t)},e.wbg.__wbg_getFile_3d12eaf635641f3a=function(n){let t=o(n).getFile();return s(t)},e.wbg.__wbg_get_6b7bd52aca3f9671=function(n,t){let r=o(n)[t>>>0];return s(r)},e.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe=function(n,t){let r=o(n)[o(t)];return s(r)},e.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355=function(n){let t;try{t=o(n)instanceof ArrayBuffer}catch{t=!1}return t},e.wbg.__wbg_instanceof_FileSystemDirectoryHandle_264085cadc86679a=function(n){let t;try{t=o(n)instanceof FileSystemDirectoryHandle}catch{t=!1}return t},e.wbg.__wbg_instanceof_FileSystemFileHandle_214d69e0ae063fc8=function(n){let t;try{t=o(n)instanceof FileSystemFileHandle}catch{t=!1}return t},e.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434=function(n){let t;try{t=o(n)instanceof Uint8Array}catch{t=!1}return t},e.wbg.__wbg_instanceof_Window_b5cf7783caa68180=function(n){let t;try{t=o(n)instanceof Window}catch{t=!1}return t},e.wbg.__wbg_length_22ac23eaec9d8053=function(n){return o(n).length},e.wbg.__wbg_length_d45040a40c570362=function(n){return o(n).length},e.wbg.__wbg_navigator_b49edef831236138=function(n){let t=o(n).navigator;return s(t)},e.wbg.__wbg_new_1ba21ce319a06297=function(){let n=new Object;return s(n)},e.wbg.__wbg_new_25f239778d6112b9=function(){let n=new Array;return s(n)},e.wbg.__wbg_new_6421f6084cc5bc5a=function(n){let t=new Uint8Array(o(n));return s(t)},e.wbg.__wbg_new_ff12d2b041fb48f1=function(n,t){try{var r={a:n,b:t},i=(_,f)=>{let l=r.a;r.a=0;try{return G(l,r.b,_,f)}finally{r.a=l}};let a=new Promise(i);return s(a)}finally{r.a=r.b=0}},e.wbg.__wbg_new_no_args_cb138f77cf6151ee=function(n,t){let r=new Function(O(n,t));return s(r)},e.wbg.__wbg_next_b34c09a202bf4424=function(){return D(function(n){let t=o(n).next();return s(t)},arguments)},e.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd=function(n,t,r){Uint8Array.prototype.set.call($(n,t),o(r))},e.wbg.__wbg_queueMicrotask_9b549dfce8865860=function(n){let t=o(n).queueMicrotask;return s(t)},e.wbg.__wbg_queueMicrotask_fca69f5bfad613a5=function(n){queueMicrotask(o(n))},e.wbg.__wbg_resolve_fd5bfbaa4ce36e1e=function(n){let t=Promise.resolve(o(n));return s(t)},e.wbg.__wbg_set_3f1d0b984ed272ed=function(n,t,r){o(n)[d(t)]=d(r)},e.wbg.__wbg_set_7df433eea03a5c14=function(n,t,r){o(n)[t>>>0]=d(r)},e.wbg.__wbg_size_82fbdb656de23326=function(n){return o(n).size},e.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335=function(){let n=typeof global>"u"?null:global;return g(n)?0:s(n)},e.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1=function(){let n=typeof globalThis>"u"?null:globalThis;return g(n)?0:s(n)},e.wbg.__wbg_static_accessor_SELF_08f5a74c69739274=function(){let n=typeof self>"u"?null:self;return g(n)?0:s(n)},e.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024=function(){let n=typeof window>"u"?null:window;return g(n)?0:s(n)},e.wbg.__wbg_storage_b04c3b736f10dd3b=function(n){let t=o(n).storage;return s(t)},e.wbg.__wbg_then_429f7caf1026411d=function(n,t,r){let i=o(n).then(o(t),o(r));return s(i)},e.wbg.__wbg_then_4f95312d68691235=function(n,t){let r=o(n).then(o(t));return s(r)},e.wbg.__wbg_value_57b7b035e117f7ee=function(n){let t=o(n).value;return s(t)},e.wbg.__wbindgen_cast_2241b6af4c4b2941=function(n,t){let r=O(n,t);return s(r)},e.wbg.__wbindgen_cast_7cc765810adca37d=function(n,t){let r=C(n,t,c.__wasm_bindgen_func_elem_2763,v);return s(r)},e.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(n){return s(n)},e.wbg.__wbindgen_object_clone_ref=function(n){let t=o(n);return s(t)},e.wbg.__wbindgen_object_drop_ref=function(n){d(n)},e}function k(e,n){return c=e.exports,U.__wbindgen_wasm_module=n,p=null,m=null,c}function te(e){if(c!==void 0)return c;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let n=T();e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));let t=new WebAssembly.Instance(e,n);return k(t,e)}async function U(e){if(c!==void 0)return c;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof e>"u"&&(e=new URL("mq_wasm_bg.wasm",import.meta.url));let n=T();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));let{instance:t,module:r}=await ne(await e,n);return k(t,r)}var c,I,p,m,w,x,W,H,E,A,u,X,S,ee,R,P=B(()=>{"use strict";I=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>e.dtor(e.a,e.b));p=null;m=null;w=new Array(128).fill(void 0);w.push(void 0,null,!0,!1);x=w.length;W=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});W.decode();H=2146435072,E=0;A=new TextEncoder;"encodeInto"in A||(A.encodeInto=function(e,n){let t=A.encode(e);return n.set(t),{read:e.length,written:t.length}});u=0;X=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>c.__wbg_runoptions_free(e>>>0,1)),S=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),n}free(){let n=this.__destroy_into_raw();c.__wbg_runoptions_free(n,0)}};Symbol.dispose&&(S.prototype[Symbol.dispose]=S.prototype.free);ee=new Set(["basic","cors","default"]);R=U});P();var j=null;async function F(){return j||(await(async()=>{try{await R();let e=await Promise.resolve().then(()=>(P(),V));j={run:e.run,toAst:e.toAst,format:e.format,diagnostics:e.diagnostics,definedValues:e.definedValues}}catch(e){throw new Error(`Failed to initialize mq WebAssembly module: ${e}`)}})(),j)}async function _e(e,n,t={}){return await(await F()).run(e,n,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...t})}async function ae(e){return await(await F()).toAst(e)}async function fe(e){return await(await F()).format(e)}async function ue(e){return await(await F()).diagnostics(e)}async function be(e,n){return await(await F()).definedValues(e,n)}export{be as definedValues,ue as diagnostics,fe as format,_e as run,ae as toAst};
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var W=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var G=Object.prototype.hasOwnProperty;var X=(e,n)=>()=>(e&&(n=e(e=0)),n);var T=(e,n)=>{for(var t in n)W(e,t,{get:n[t],enumerable:!0})},Y=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of v(n))!G.call(e,i)&&i!==t&&W(e,i,{get:()=>n[i],enumerable:!(r=N(n,i))||r.enumerable});return e};var J=e=>Y(W({},"__esModule",{value:!0}),e);var q={};T(q,{RunOptions:()=>S,default:()=>P,definedValues:()=>
|
|
2
|
-
${e.stack}`:r}function M(e,n){try{return e.apply(this,n)}catch(t){s.__wbindgen_export3(c(t))}}function Z(e,n){return e=e>>>0,h().subarray(e/1,e/1+n)}function ee(e){e<132||(w[e]=x,x=e)}function d(e){let n=o(e);return ee(e),n}function ne(e,n,t,r){let i={a:e,b:n,cnt:1,dtor:t},a=(..._)=>{i.cnt++;let f=i.a;i.a=0;try{return r(f,i.b,..._)}finally{i.a=f,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{--i.cnt===0&&(i.dtor(i.a,i.b),i.a=0,V.unregister(i))},V.register(a,i,i),a}function te(e,n,t){let r=b(e,s.__wbindgen_export,s.__wbindgen_export2),i=u,a=b(n,s.__wbindgen_export,s.__wbindgen_export2),_=u,f=s.run(r,i,a,_,c(t));return d(f)}function re(e){let n=b(e,s.__wbindgen_export,s.__wbindgen_export2),t=u,r=s.toAst(n,t);return d(r)}function ie(e){let n=b(e,s.__wbindgen_export,s.__wbindgen_export2),t=u,r=s.format(n,t);return d(r)}function oe(e){let n=b(e,s.__wbindgen_export,s.__wbindgen_export2),t=u,r=s.diagnostics(n,t);return d(r)}function se(e,n){let t=b(e,s.__wbindgen_export,s.__wbindgen_export2),r=u;var i=g(n)?0:b(n,s.__wbindgen_export,s.__wbindgen_export2),a=u;let _=s.definedValues(t,r,i,a);return d(_)}function ce(e,n,t){s.__wasm_bindgen_func_elem_2757(e,n,c(t))}function _e(e,n,t,r){s.__wasm_bindgen_func_elem_722(e,n,c(t),c(r))}async function ue(e,n){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,n)}catch(r){if(e.ok&&fe.has(e.type)&&e.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",r);else throw r}let t=await e.arrayBuffer();return await WebAssembly.instantiate(t,n)}else{let t=await WebAssembly.instantiate(e,n);return t instanceof WebAssembly.Instance?{instance:t,module:e}:t}}function k(){let e={};return e.wbg={},e.wbg.__wbg_Error_e83987f665cf5504=function(n,t){let r=Error(O(n,t));return c(r)},e.wbg.__wbg_String_8f0eb39a4a4c2f66=function(n,t){let r=String(o(t)),i=b(r,s.__wbindgen_export,s.__wbindgen_export2),a=u;y().setInt32(n+4*1,a,!0),y().setInt32(n+4*0,i,!0)},e.wbg.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68=function(n){let t=o(n),r=typeof t=="boolean"?t:void 0;return g(r)?16777215:r?1:0},e.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763=function(n,t){let r=R(o(t)),i=b(r,s.__wbindgen_export,s.__wbindgen_export2),a=u;y().setInt32(n+4*1,a,!0),y().setInt32(n+4*0,i,!0)},e.wbg.__wbg___wbindgen_in_bb933bd9e1b3bc0f=function(n,t){return o(n)in o(t)},e.wbg.__wbg___wbindgen_is_function_ee8a6c5833c90377=function(n){return typeof o(n)=="function"},e.wbg.__wbg___wbindgen_is_object_c818261d21f283a4=function(n){let t=o(n);return typeof t=="object"&&t!==null},e.wbg.__wbg___wbindgen_is_string_fbb76cb2940daafd=function(n){return typeof o(n)=="string"},e.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478=function(n){return o(n)===void 0},e.wbg.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147=function(n,t){return o(n)==o(t)},e.wbg.__wbg___wbindgen_number_get_a20bf9b85341449d=function(n,t){let r=o(t),i=typeof r=="number"?r:void 0;y().setFloat64(n+8*1,g(i)?0:i,!0),y().setInt32(n+4*0,!g(i),!0)},e.wbg.__wbg___wbindgen_string_get_e4f06c90489ad01b=function(n,t){let r=o(t),i=typeof r=="string"?r:void 0;var a=g(i)?0:b(i,s.__wbindgen_export,s.__wbindgen_export2),_=u;y().setInt32(n+4*1,_,!0),y().setInt32(n+4*0,a,!0)},e.wbg.__wbg___wbindgen_throw_b855445ff6a94295=function(n,t){throw new Error(O(n,t))},e.wbg.__wbg__wbg_cb_unref_2454a539ea5790d9=function(n){o(n)._wbg_cb_unref()},e.wbg.__wbg_arrayBuffer_5930938a049abc90=function(n){let t=o(n).arrayBuffer();return c(t)},e.wbg.__wbg_call_525440f72fbfc0ea=function(){return M(function(n,t,r){let i=o(n).call(o(t),o(r));return c(i)},arguments)},e.wbg.__wbg_call_e762c39fa8ea36bf=function(){return M(function(n,t){let r=o(n).call(o(t));return c(r)},arguments)},e.wbg.__wbg_done_2042aa2670fb1db1=function(n){return o(n).done},e.wbg.__wbg_entries_a1e792d46512c8bf=function(n){let t=o(n).entries();return c(t)},e.wbg.__wbg_entries_e171b586f8f6bdbf=function(n){let t=Object.entries(o(n));return c(t)},e.wbg.__wbg_from_a4ad7cbddd0d7135=function(n){let t=Array.from(o(n));return c(t)},e.wbg.__wbg_getDirectory_7e7a55f640412401=function(n){let t=o(n).getDirectory();return c(t)},e.wbg.__wbg_getFile_985459d958bb9dfe=function(n){let t=o(n).getFile();return c(t)},e.wbg.__wbg_get_7bed016f185add81=function(n,t){let r=o(n)[t>>>0];return c(r)},e.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe=function(n,t){let r=o(n)[o(t)];return c(r)},e.wbg.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38=function(n){let t;try{t=o(n)instanceof ArrayBuffer}catch{t=!1}return t},e.wbg.__wbg_instanceof_FileSystemDirectoryHandle_7a17cc3353820fcf=function(n){let t;try{t=o(n)instanceof FileSystemDirectoryHandle}catch{t=!1}return t},e.wbg.__wbg_instanceof_FileSystemFileHandle_5730ec1d120983f4=function(n){let t;try{t=o(n)instanceof FileSystemFileHandle}catch{t=!1}return t},e.wbg.__wbg_instanceof_Uint8Array_20c8e73002f7af98=function(n){let t;try{t=o(n)instanceof Uint8Array}catch{t=!1}return t},e.wbg.__wbg_instanceof_Window_4846dbb3de56c84c=function(n){let t;try{t=o(n)instanceof Window}catch{t=!1}return t},e.wbg.__wbg_length_69bca3cb64fc8748=function(n){return o(n).length},e.wbg.__wbg_length_cdd215e10d9dd507=function(n){return o(n).length},e.wbg.__wbg_navigator_971384882e8ea23a=function(n){let t=o(n).navigator;return c(t)},e.wbg.__wbg_new_1acc0b6eea89d040=function(){let n=new Object;return c(n)},e.wbg.__wbg_new_3c3d849046688a66=function(n,t){try{var r={a:n,b:t},i=(_,f)=>{let l=r.a;r.a=0;try{return _e(l,r.b,_,f)}finally{r.a=l}};let a=new Promise(i);return c(a)}finally{r.a=r.b=0}},e.wbg.__wbg_new_5a79be3ab53b8aa5=function(n){let t=new Uint8Array(o(n));return c(t)},e.wbg.__wbg_new_e17d9f43105b08be=function(){let n=new Array;return c(n)},e.wbg.__wbg_new_no_args_ee98eee5275000a4=function(n,t){let r=new Function(O(n,t));return c(r)},e.wbg.__wbg_next_eedaffcadc567b75=function(){return M(function(n){let t=o(n).next();return c(t)},arguments)},e.wbg.__wbg_prototypesetcall_2a6620b6922694b2=function(n,t,r){Uint8Array.prototype.set.call(Z(n,t),o(r))},e.wbg.__wbg_queueMicrotask_34d692c25c47d05b=function(n){let t=o(n).queueMicrotask;return c(t)},e.wbg.__wbg_queueMicrotask_9d76cacb20c84d58=function(n){queueMicrotask(o(n))},e.wbg.__wbg_resolve_caf97c30b83f7053=function(n){let t=Promise.resolve(o(n));return c(t)},e.wbg.__wbg_set_3f1d0b984ed272ed=function(n,t,r){o(n)[d(t)]=d(r)},e.wbg.__wbg_set_c213c871859d6500=function(n,t,r){o(n)[t>>>0]=d(r)},e.wbg.__wbg_size_0a5a003dbf5dfee8=function(n){return o(n).size},e.wbg.__wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e=function(){let n=typeof global>"u"?null:global;return g(n)?0:c(n)},e.wbg.__wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac=function(){let n=typeof globalThis>"u"?null:globalThis;return g(n)?0:c(n)},e.wbg.__wbg_static_accessor_SELF_6fdf4b64710cc91b=function(){let n=typeof self>"u"?null:self;return g(n)?0:c(n)},e.wbg.__wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2=function(){let n=typeof window>"u"?null:window;return g(n)?0:c(n)},e.wbg.__wbg_storage_3e7b84b6fbb9dd1c=function(n){let t=o(n).storage;return c(t)},e.wbg.__wbg_then_4f46f6544e6b4a28=function(n,t){let r=o(n).then(o(t));return c(r)},e.wbg.__wbg_then_70d05cf780a18d77=function(n,t,r){let i=o(n).then(o(t),o(r));return c(i)},e.wbg.__wbg_value_692627309814bb8c=function(n){let t=o(n).value;return c(t)},e.wbg.__wbindgen_cast_1e8790df2cc2adfe=function(n,t){let r=ne(n,t,s.__wasm_bindgen_func_elem_2756,ce);return c(r)},e.wbg.__wbindgen_cast_2241b6af4c4b2941=function(n,t){let r=O(n,t);return c(r)},e.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(n){return c(n)},e.wbg.__wbindgen_object_clone_ref=function(n){let t=o(n);return c(t)},e.wbg.__wbindgen_object_drop_ref=function(n){d(n)},e}function U(e,n){return s=e.exports,L.__wbindgen_wasm_module=n,p=null,m=null,s}function be(e){if(s!==void 0)return s;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let n=k();e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));let t=new WebAssembly.Instance(e,n);return U(t,e)}async function L(e){if(s!==void 0)return s;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof e>"u"&&(e=new URL("mq_wasm_bg.wasm",ge.url));let n=k();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));let{instance:t,module:r}=await ue(await e,n);return U(t,r)}var ge,s,m,D,K,E,w,x,u,A,p,V,ae,S,fe,P,I=X(()=>{"use strict";ge={},m=null;D=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});D.decode();K=2146435072,E=0;w=new Array(128).fill(void 0);w.push(void 0,null,!0,!1);x=w.length;u=0,A=new TextEncoder;"encodeInto"in A||(A.encodeInto=function(e,n){let t=A.encode(e);return n.set(t),{read:e.length,written:t.length}});p=null;V=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>e.dtor(e.a,e.b));ae=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>s.__wbg_runoptions_free(e>>>0,1)),S=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,ae.unregister(this),n}free(){let n=this.__destroy_into_raw();s.__wbg_runoptions_free(n,0)}};Symbol.dispose&&(S.prototype[Symbol.dispose]=S.prototype.free);fe=new Set(["basic","cors","default"]);P=L});var we={};T(we,{definedValues:()=>H,diagnostics:()=>C,format:()=>$,run:()=>B,toAst:()=>z});module.exports=J(we);I();var j=null;async function F(){return j||(await(async()=>{try{await P();let e=await Promise.resolve().then(()=>(I(),q));j={run:e.run,toAst:e.toAst,format:e.format,diagnostics:e.diagnostics,definedValues:e.definedValues}}catch(e){throw new Error(`Failed to initialize mq WebAssembly module: ${e}`)}})(),j)}async function B(e,n,t={}){return await(await F()).run(e,n,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...t})}async function z(e){return await(await F()).toAst(e)}async function $(e){return await(await F()).format(e)}async function C(e){return await(await F()).diagnostics(e)}async function H(e,n){return await(await F()).definedValues(e,n)}0&&(module.exports={definedValues,diagnostics,format,run,toAst});
|
|
1
|
+
"use strict";var W=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var G=Object.prototype.hasOwnProperty;var X=(e,n)=>()=>(e&&(n=e(e=0)),n);var T=(e,n)=>{for(var t in n)W(e,t,{get:n[t],enumerable:!0})},Y=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of v(n))!G.call(e,i)&&i!==t&&W(e,i,{get:()=>n[i],enumerable:!(r=N(n,i))||r.enumerable});return e};var J=e=>Y(W({},"__esModule",{value:!0}),e);var q={};T(q,{RunOptions:()=>S,default:()=>P,definedValues:()=>oe,diagnostics:()=>se,format:()=>ce,initSync:()=>be,run:()=>_e,toAst:()=>ae});function c(e){x===w.length&&w.push(w.length+1);let n=x;return x=w[n],w[n]=e,n}function R(e){let n=typeof e;if(n=="number"||n=="boolean"||e==null)return`${e}`;if(n=="string")return`"${e}"`;if(n=="symbol"){let i=e.description;return i==null?"Symbol":`Symbol(${i})`}if(n=="function"){let i=e.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(e)){let i=e.length,a="[";i>0&&(a+=R(e[0]));for(let _=1;_<i;_++)a+=", "+R(e[_]);return a+="]",a}let t=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(t&&t.length>1)r=t[1];else return toString.call(e);if(r=="Object")try{return"Object("+JSON.stringify(e)+")"}catch{return"Object"}return e instanceof Error?`${e.name}: ${e.message}
|
|
2
|
+
${e.stack}`:r}function K(e){e<132||(w[e]=x,x=e)}function Q(e,n){return e=e>>>0,h().subarray(e/1,e/1+n)}function y(){return(p===null||p.buffer.detached===!0||p.buffer.detached===void 0&&p.buffer!==s.memory.buffer)&&(p=new DataView(s.memory.buffer)),p}function O(e,n){return e=e>>>0,ne(e,n)}function h(){return(m===null||m.byteLength===0)&&(m=new Uint8Array(s.memory.buffer)),m}function o(e){return w[e]}function E(e,n){try{return e.apply(this,n)}catch(t){s.__wbindgen_export3(c(t))}}function g(e){return e==null}function Z(e,n,t,r){let i={a:e,b:n,cnt:1,dtor:t},a=(..._)=>{i.cnt++;let f=i.a;i.a=0;try{return r(f,i.b,..._)}finally{i.a=f,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{--i.cnt===0&&(i.dtor(i.a,i.b),i.a=0,V.unregister(i))},V.register(a,i,i),a}function b(e,n,t){if(t===void 0){let f=A.encode(e),l=n(f.length,1)>>>0;return h().subarray(l,l+f.length).set(f),u=f.length,l}let r=e.length,i=n(r,1)>>>0,a=h(),_=0;for(;_<r;_++){let f=e.charCodeAt(_);if(f>127)break;a[i+_]=f}if(_!==r){_!==0&&(e=e.slice(_)),i=t(i,r,r=_+e.length*3,1)>>>0;let f=h().subarray(i+_,i+r),l=A.encodeInto(e,f);_+=l.written,i=t(i,r,_,1)>>>0}return u=_,i}function d(e){let n=o(e);return K(e),n}function ne(e,n){return M+=n,M>=ee&&(D=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),D.decode(),M=n),D.decode(h().subarray(e,e+n))}function te(e,n,t){s.__wasm_bindgen_func_elem_2764(e,n,c(t))}function re(e,n,t,r){s.__wasm_bindgen_func_elem_718(e,n,c(t),c(r))}function oe(e,n){let t=b(e,s.__wbindgen_export,s.__wbindgen_export2),r=u;var i=g(n)?0:b(n,s.__wbindgen_export,s.__wbindgen_export2),a=u;let _=s.definedValues(t,r,i,a);return d(_)}function se(e){let n=b(e,s.__wbindgen_export,s.__wbindgen_export2),t=u,r=s.diagnostics(n,t);return d(r)}function ce(e){let n=b(e,s.__wbindgen_export,s.__wbindgen_export2),t=u,r=s.format(n,t);return d(r)}function _e(e,n,t){let r=b(e,s.__wbindgen_export,s.__wbindgen_export2),i=u,a=b(n,s.__wbindgen_export,s.__wbindgen_export2),_=u,f=s.run(r,i,a,_,c(t));return d(f)}function ae(e){let n=b(e,s.__wbindgen_export,s.__wbindgen_export2),t=u,r=s.toAst(n,t);return d(r)}async function ue(e,n){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,n)}catch(r){if(e.ok&&fe.has(e.type)&&e.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",r);else throw r}let t=await e.arrayBuffer();return await WebAssembly.instantiate(t,n)}else{let t=await WebAssembly.instantiate(e,n);return t instanceof WebAssembly.Instance?{instance:t,module:e}:t}}function k(){let e={};return e.wbg={},e.wbg.__wbg_Error_52673b7de5a0ca89=function(n,t){let r=Error(O(n,t));return c(r)},e.wbg.__wbg_String_8f0eb39a4a4c2f66=function(n,t){let r=String(o(t)),i=b(r,s.__wbindgen_export,s.__wbindgen_export2),a=u;y().setInt32(n+4*1,a,!0),y().setInt32(n+4*0,i,!0)},e.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b=function(n){let t=o(n),r=typeof t=="boolean"?t:void 0;return g(r)?16777215:r?1:0},e.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6=function(n,t){let r=R(o(t)),i=b(r,s.__wbindgen_export,s.__wbindgen_export2),a=u;y().setInt32(n+4*1,a,!0),y().setInt32(n+4*0,i,!0)},e.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317=function(n,t){return o(n)in o(t)},e.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd=function(n){return typeof o(n)=="function"},e.wbg.__wbg___wbindgen_is_object_ce774f3490692386=function(n){let t=o(n);return typeof t=="object"&&t!==null},e.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030=function(n){return typeof o(n)=="string"},e.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269=function(n){return o(n)===void 0},e.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d=function(n,t){return o(n)==o(t)},e.wbg.__wbg___wbindgen_number_get_9619185a74197f95=function(n,t){let r=o(t),i=typeof r=="number"?r:void 0;y().setFloat64(n+8*1,g(i)?0:i,!0),y().setInt32(n+4*0,!g(i),!0)},e.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42=function(n,t){let r=o(t),i=typeof r=="string"?r:void 0;var a=g(i)?0:b(i,s.__wbindgen_export,s.__wbindgen_export2),_=u;y().setInt32(n+4*1,_,!0),y().setInt32(n+4*0,a,!0)},e.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e=function(n,t){throw new Error(O(n,t))},e.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7=function(n){o(n)._wbg_cb_unref()},e.wbg.__wbg_arrayBuffer_3356d392ef2d2aa9=function(n){let t=o(n).arrayBuffer();return c(t)},e.wbg.__wbg_call_3020136f7a2d6e44=function(){return E(function(n,t,r){let i=o(n).call(o(t),o(r));return c(i)},arguments)},e.wbg.__wbg_call_abb4ff46ce38be40=function(){return E(function(n,t){let r=o(n).call(o(t));return c(r)},arguments)},e.wbg.__wbg_done_62ea16af4ce34b24=function(n){return o(n).done},e.wbg.__wbg_entries_7de5c9edd116e219=function(n){let t=o(n).entries();return c(t)},e.wbg.__wbg_entries_83c79938054e065f=function(n){let t=Object.entries(o(n));return c(t)},e.wbg.__wbg_from_29a8414a7a7cd19d=function(n){let t=Array.from(o(n));return c(t)},e.wbg.__wbg_getDirectory_9beed6c83b6861f5=function(n){let t=o(n).getDirectory();return c(t)},e.wbg.__wbg_getFile_3d12eaf635641f3a=function(n){let t=o(n).getFile();return c(t)},e.wbg.__wbg_get_6b7bd52aca3f9671=function(n,t){let r=o(n)[t>>>0];return c(r)},e.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe=function(n,t){let r=o(n)[o(t)];return c(r)},e.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355=function(n){let t;try{t=o(n)instanceof ArrayBuffer}catch{t=!1}return t},e.wbg.__wbg_instanceof_FileSystemDirectoryHandle_264085cadc86679a=function(n){let t;try{t=o(n)instanceof FileSystemDirectoryHandle}catch{t=!1}return t},e.wbg.__wbg_instanceof_FileSystemFileHandle_214d69e0ae063fc8=function(n){let t;try{t=o(n)instanceof FileSystemFileHandle}catch{t=!1}return t},e.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434=function(n){let t;try{t=o(n)instanceof Uint8Array}catch{t=!1}return t},e.wbg.__wbg_instanceof_Window_b5cf7783caa68180=function(n){let t;try{t=o(n)instanceof Window}catch{t=!1}return t},e.wbg.__wbg_length_22ac23eaec9d8053=function(n){return o(n).length},e.wbg.__wbg_length_d45040a40c570362=function(n){return o(n).length},e.wbg.__wbg_navigator_b49edef831236138=function(n){let t=o(n).navigator;return c(t)},e.wbg.__wbg_new_1ba21ce319a06297=function(){let n=new Object;return c(n)},e.wbg.__wbg_new_25f239778d6112b9=function(){let n=new Array;return c(n)},e.wbg.__wbg_new_6421f6084cc5bc5a=function(n){let t=new Uint8Array(o(n));return c(t)},e.wbg.__wbg_new_ff12d2b041fb48f1=function(n,t){try{var r={a:n,b:t},i=(_,f)=>{let l=r.a;r.a=0;try{return re(l,r.b,_,f)}finally{r.a=l}};let a=new Promise(i);return c(a)}finally{r.a=r.b=0}},e.wbg.__wbg_new_no_args_cb138f77cf6151ee=function(n,t){let r=new Function(O(n,t));return c(r)},e.wbg.__wbg_next_b34c09a202bf4424=function(){return E(function(n){let t=o(n).next();return c(t)},arguments)},e.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd=function(n,t,r){Uint8Array.prototype.set.call(Q(n,t),o(r))},e.wbg.__wbg_queueMicrotask_9b549dfce8865860=function(n){let t=o(n).queueMicrotask;return c(t)},e.wbg.__wbg_queueMicrotask_fca69f5bfad613a5=function(n){queueMicrotask(o(n))},e.wbg.__wbg_resolve_fd5bfbaa4ce36e1e=function(n){let t=Promise.resolve(o(n));return c(t)},e.wbg.__wbg_set_3f1d0b984ed272ed=function(n,t,r){o(n)[d(t)]=d(r)},e.wbg.__wbg_set_7df433eea03a5c14=function(n,t,r){o(n)[t>>>0]=d(r)},e.wbg.__wbg_size_82fbdb656de23326=function(n){return o(n).size},e.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335=function(){let n=typeof global>"u"?null:global;return g(n)?0:c(n)},e.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1=function(){let n=typeof globalThis>"u"?null:globalThis;return g(n)?0:c(n)},e.wbg.__wbg_static_accessor_SELF_08f5a74c69739274=function(){let n=typeof self>"u"?null:self;return g(n)?0:c(n)},e.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024=function(){let n=typeof window>"u"?null:window;return g(n)?0:c(n)},e.wbg.__wbg_storage_b04c3b736f10dd3b=function(n){let t=o(n).storage;return c(t)},e.wbg.__wbg_then_429f7caf1026411d=function(n,t,r){let i=o(n).then(o(t),o(r));return c(i)},e.wbg.__wbg_then_4f95312d68691235=function(n,t){let r=o(n).then(o(t));return c(r)},e.wbg.__wbg_value_57b7b035e117f7ee=function(n){let t=o(n).value;return c(t)},e.wbg.__wbindgen_cast_2241b6af4c4b2941=function(n,t){let r=O(n,t);return c(r)},e.wbg.__wbindgen_cast_7cc765810adca37d=function(n,t){let r=Z(n,t,s.__wasm_bindgen_func_elem_2763,te);return c(r)},e.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(n){return c(n)},e.wbg.__wbindgen_object_clone_ref=function(n){let t=o(n);return c(t)},e.wbg.__wbindgen_object_drop_ref=function(n){d(n)},e}function U(e,n){return s=e.exports,L.__wbindgen_wasm_module=n,p=null,m=null,s}function be(e){if(s!==void 0)return s;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let n=k();e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));let t=new WebAssembly.Instance(e,n);return U(t,e)}async function L(e){if(s!==void 0)return s;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof e>"u"&&(e=new URL("mq_wasm_bg.wasm",ge.url));let n=k();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));let{instance:t,module:r}=await ue(await e,n);return U(t,r)}var ge,s,V,p,m,w,x,D,ee,M,A,u,ie,S,fe,P,I=X(()=>{"use strict";ge={};V=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>e.dtor(e.a,e.b));p=null;m=null;w=new Array(128).fill(void 0);w.push(void 0,null,!0,!1);x=w.length;D=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});D.decode();ee=2146435072,M=0;A=new TextEncoder;"encodeInto"in A||(A.encodeInto=function(e,n){let t=A.encode(e);return n.set(t),{read:e.length,written:t.length}});u=0;ie=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>s.__wbg_runoptions_free(e>>>0,1)),S=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,ie.unregister(this),n}free(){let n=this.__destroy_into_raw();s.__wbg_runoptions_free(n,0)}};Symbol.dispose&&(S.prototype[Symbol.dispose]=S.prototype.free);fe=new Set(["basic","cors","default"]);P=L});var we={};T(we,{definedValues:()=>H,diagnostics:()=>C,format:()=>$,run:()=>B,toAst:()=>z});module.exports=J(we);I();var j=null;async function F(){return j||(await(async()=>{try{await P();let e=await Promise.resolve().then(()=>(I(),q));j={run:e.run,toAst:e.toAst,format:e.format,diagnostics:e.diagnostics,definedValues:e.definedValues}}catch(e){throw new Error(`Failed to initialize mq WebAssembly module: ${e}`)}})(),j)}async function B(e,n,t={}){return await(await F()).run(e,n,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...t})}async function z(e){return await(await F()).toAst(e)}async function $(e){return await(await F()).format(e)}async function C(e){return await(await F()).diagnostics(e)}async function H(e,n){return await(await F()).definedValues(e,n)}0&&(module.exports={definedValues,diagnostics,format,run,toAst});
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var L=Object.defineProperty;var q=(e,n)=>()=>(e&&(n=e(e=0)),n);var B=(e,n)=>{for(var t in n)L(e,t,{get:n[t],enumerable:!0})};var U={};B(U,{RunOptions:()=>S,default:()=>R,definedValues:()=>
|
|
2
|
-
${e.stack}`:r}function E(e,n){try{return e.apply(this,n)}catch(t){s.__wbindgen_export3(c(t))}}function C(e,n){return e=e>>>0,h().subarray(e/1,e/1+n)}function H(e){e<132||(w[e]=x,x=e)}function d(e){let n=o(e);return H(e),n}function N(e,n,t,r){let i={a:e,b:n,cnt:1,dtor:t},a=(..._)=>{i.cnt++;let f=i.a;i.a=0;try{return r(f,i.b,..._)}finally{i.a=f,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{--i.cnt===0&&(i.dtor(i.a,i.b),i.a=0,I.unregister(i))},I.register(a,i,i),a}function v(e,n,t){let r=b(e,s.__wbindgen_export,s.__wbindgen_export2),i=u,a=b(n,s.__wbindgen_export,s.__wbindgen_export2),_=u,f=s.run(r,i,a,_,c(t));return d(f)}function G(e){let n=b(e,s.__wbindgen_export,s.__wbindgen_export2),t=u,r=s.toAst(n,t);return d(r)}function X(e){let n=b(e,s.__wbindgen_export,s.__wbindgen_export2),t=u,r=s.format(n,t);return d(r)}function Y(e){let n=b(e,s.__wbindgen_export,s.__wbindgen_export2),t=u,r=s.diagnostics(n,t);return d(r)}function J(e,n){let t=b(e,s.__wbindgen_export,s.__wbindgen_export2),r=u;var i=g(n)?0:b(n,s.__wbindgen_export,s.__wbindgen_export2),a=u;let _=s.definedValues(t,r,i,a);return d(_)}function K(e,n,t){s.__wasm_bindgen_func_elem_2757(e,n,c(t))}function Q(e,n,t,r){s.__wasm_bindgen_func_elem_722(e,n,c(t),c(r))}async function ne(e,n){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,n)}catch(r){if(e.ok&&ee.has(e.type)&&e.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",r);else throw r}let t=await e.arrayBuffer();return await WebAssembly.instantiate(t,n)}else{let t=await WebAssembly.instantiate(e,n);return t instanceof WebAssembly.Instance?{instance:t,module:e}:t}}function T(){let e={};return e.wbg={},e.wbg.__wbg_Error_e83987f665cf5504=function(n,t){let r=Error(O(n,t));return c(r)},e.wbg.__wbg_String_8f0eb39a4a4c2f66=function(n,t){let r=String(o(t)),i=b(r,s.__wbindgen_export,s.__wbindgen_export2),a=u;y().setInt32(n+4*1,a,!0),y().setInt32(n+4*0,i,!0)},e.wbg.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68=function(n){let t=o(n),r=typeof t=="boolean"?t:void 0;return g(r)?16777215:r?1:0},e.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763=function(n,t){let r=M(o(t)),i=b(r,s.__wbindgen_export,s.__wbindgen_export2),a=u;y().setInt32(n+4*1,a,!0),y().setInt32(n+4*0,i,!0)},e.wbg.__wbg___wbindgen_in_bb933bd9e1b3bc0f=function(n,t){return o(n)in o(t)},e.wbg.__wbg___wbindgen_is_function_ee8a6c5833c90377=function(n){return typeof o(n)=="function"},e.wbg.__wbg___wbindgen_is_object_c818261d21f283a4=function(n){let t=o(n);return typeof t=="object"&&t!==null},e.wbg.__wbg___wbindgen_is_string_fbb76cb2940daafd=function(n){return typeof o(n)=="string"},e.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478=function(n){return o(n)===void 0},e.wbg.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147=function(n,t){return o(n)==o(t)},e.wbg.__wbg___wbindgen_number_get_a20bf9b85341449d=function(n,t){let r=o(t),i=typeof r=="number"?r:void 0;y().setFloat64(n+8*1,g(i)?0:i,!0),y().setInt32(n+4*0,!g(i),!0)},e.wbg.__wbg___wbindgen_string_get_e4f06c90489ad01b=function(n,t){let r=o(t),i=typeof r=="string"?r:void 0;var a=g(i)?0:b(i,s.__wbindgen_export,s.__wbindgen_export2),_=u;y().setInt32(n+4*1,_,!0),y().setInt32(n+4*0,a,!0)},e.wbg.__wbg___wbindgen_throw_b855445ff6a94295=function(n,t){throw new Error(O(n,t))},e.wbg.__wbg__wbg_cb_unref_2454a539ea5790d9=function(n){o(n)._wbg_cb_unref()},e.wbg.__wbg_arrayBuffer_5930938a049abc90=function(n){let t=o(n).arrayBuffer();return c(t)},e.wbg.__wbg_call_525440f72fbfc0ea=function(){return E(function(n,t,r){let i=o(n).call(o(t),o(r));return c(i)},arguments)},e.wbg.__wbg_call_e762c39fa8ea36bf=function(){return E(function(n,t){let r=o(n).call(o(t));return c(r)},arguments)},e.wbg.__wbg_done_2042aa2670fb1db1=function(n){return o(n).done},e.wbg.__wbg_entries_a1e792d46512c8bf=function(n){let t=o(n).entries();return c(t)},e.wbg.__wbg_entries_e171b586f8f6bdbf=function(n){let t=Object.entries(o(n));return c(t)},e.wbg.__wbg_from_a4ad7cbddd0d7135=function(n){let t=Array.from(o(n));return c(t)},e.wbg.__wbg_getDirectory_7e7a55f640412401=function(n){let t=o(n).getDirectory();return c(t)},e.wbg.__wbg_getFile_985459d958bb9dfe=function(n){let t=o(n).getFile();return c(t)},e.wbg.__wbg_get_7bed016f185add81=function(n,t){let r=o(n)[t>>>0];return c(r)},e.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe=function(n,t){let r=o(n)[o(t)];return c(r)},e.wbg.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38=function(n){let t;try{t=o(n)instanceof ArrayBuffer}catch{t=!1}return t},e.wbg.__wbg_instanceof_FileSystemDirectoryHandle_7a17cc3353820fcf=function(n){let t;try{t=o(n)instanceof FileSystemDirectoryHandle}catch{t=!1}return t},e.wbg.__wbg_instanceof_FileSystemFileHandle_5730ec1d120983f4=function(n){let t;try{t=o(n)instanceof FileSystemFileHandle}catch{t=!1}return t},e.wbg.__wbg_instanceof_Uint8Array_20c8e73002f7af98=function(n){let t;try{t=o(n)instanceof Uint8Array}catch{t=!1}return t},e.wbg.__wbg_instanceof_Window_4846dbb3de56c84c=function(n){let t;try{t=o(n)instanceof Window}catch{t=!1}return t},e.wbg.__wbg_length_69bca3cb64fc8748=function(n){return o(n).length},e.wbg.__wbg_length_cdd215e10d9dd507=function(n){return o(n).length},e.wbg.__wbg_navigator_971384882e8ea23a=function(n){let t=o(n).navigator;return c(t)},e.wbg.__wbg_new_1acc0b6eea89d040=function(){let n=new Object;return c(n)},e.wbg.__wbg_new_3c3d849046688a66=function(n,t){try{var r={a:n,b:t},i=(_,f)=>{let l=r.a;r.a=0;try{return Q(l,r.b,_,f)}finally{r.a=l}};let a=new Promise(i);return c(a)}finally{r.a=r.b=0}},e.wbg.__wbg_new_5a79be3ab53b8aa5=function(n){let t=new Uint8Array(o(n));return c(t)},e.wbg.__wbg_new_e17d9f43105b08be=function(){let n=new Array;return c(n)},e.wbg.__wbg_new_no_args_ee98eee5275000a4=function(n,t){let r=new Function(O(n,t));return c(r)},e.wbg.__wbg_next_eedaffcadc567b75=function(){return E(function(n){let t=o(n).next();return c(t)},arguments)},e.wbg.__wbg_prototypesetcall_2a6620b6922694b2=function(n,t,r){Uint8Array.prototype.set.call(C(n,t),o(r))},e.wbg.__wbg_queueMicrotask_34d692c25c47d05b=function(n){let t=o(n).queueMicrotask;return c(t)},e.wbg.__wbg_queueMicrotask_9d76cacb20c84d58=function(n){queueMicrotask(o(n))},e.wbg.__wbg_resolve_caf97c30b83f7053=function(n){let t=Promise.resolve(o(n));return c(t)},e.wbg.__wbg_set_3f1d0b984ed272ed=function(n,t,r){o(n)[d(t)]=d(r)},e.wbg.__wbg_set_c213c871859d6500=function(n,t,r){o(n)[t>>>0]=d(r)},e.wbg.__wbg_size_0a5a003dbf5dfee8=function(n){return o(n).size},e.wbg.__wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e=function(){let n=typeof global>"u"?null:global;return g(n)?0:c(n)},e.wbg.__wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac=function(){let n=typeof globalThis>"u"?null:globalThis;return g(n)?0:c(n)},e.wbg.__wbg_static_accessor_SELF_6fdf4b64710cc91b=function(){let n=typeof self>"u"?null:self;return g(n)?0:c(n)},e.wbg.__wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2=function(){let n=typeof window>"u"?null:window;return g(n)?0:c(n)},e.wbg.__wbg_storage_3e7b84b6fbb9dd1c=function(n){let t=o(n).storage;return c(t)},e.wbg.__wbg_then_4f46f6544e6b4a28=function(n,t){let r=o(n).then(o(t));return c(r)},e.wbg.__wbg_then_70d05cf780a18d77=function(n,t,r){let i=o(n).then(o(t),o(r));return c(i)},e.wbg.__wbg_value_692627309814bb8c=function(n){let t=o(n).value;return c(t)},e.wbg.__wbindgen_cast_1e8790df2cc2adfe=function(n,t){let r=N(n,t,s.__wasm_bindgen_func_elem_2756,K);return c(r)},e.wbg.__wbindgen_cast_2241b6af4c4b2941=function(n,t){let r=O(n,t);return c(r)},e.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(n){return c(n)},e.wbg.__wbindgen_object_clone_ref=function(n){let t=o(n);return c(t)},e.wbg.__wbindgen_object_drop_ref=function(n){d(n)},e}function V(e,n){return s=e.exports,k.__wbindgen_wasm_module=n,p=null,m=null,s}function te(e){if(s!==void 0)return s;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let n=T();e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));let t=new WebAssembly.Instance(e,n);return V(t,e)}async function k(e){if(s!==void 0)return s;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof e>"u"&&(e=new URL("mq_wasm_bg.wasm",import.meta.url));let n=T();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));let{instance:t,module:r}=await ne(await e,n);return V(t,r)}var s,m,D,z,W,w,x,u,A,p,I,Z,S,ee,R,P=q(()=>{"use strict";m=null;D=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});D.decode();z=2146435072,W=0;w=new Array(128).fill(void 0);w.push(void 0,null,!0,!1);x=w.length;u=0,A=new TextEncoder;"encodeInto"in A||(A.encodeInto=function(e,n){let t=A.encode(e);return n.set(t),{read:e.length,written:t.length}});p=null;I=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>e.dtor(e.a,e.b));Z=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>s.__wbg_runoptions_free(e>>>0,1)),S=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),n}free(){let n=this.__destroy_into_raw();s.__wbg_runoptions_free(n,0)}};Symbol.dispose&&(S.prototype[Symbol.dispose]=S.prototype.free);ee=new Set(["basic","cors","default"]);R=k});P();var j=null;async function F(){return j||(await(async()=>{try{await R();let e=await Promise.resolve().then(()=>(P(),U));j={run:e.run,toAst:e.toAst,format:e.format,diagnostics:e.diagnostics,definedValues:e.definedValues}}catch(e){throw new Error(`Failed to initialize mq WebAssembly module: ${e}`)}})(),j)}async function re(e,n,t={}){return await(await F()).run(e,n,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...t})}async function ie(e){return await(await F()).toAst(e)}async function oe(e){return await(await F()).format(e)}async function se(e){return await(await F()).diagnostics(e)}async function ce(e,n){return await(await F()).definedValues(e,n)}export{ce as definedValues,se as diagnostics,oe as format,re as run,ie as toAst};
|
|
1
|
+
var L=Object.defineProperty;var q=(e,n)=>()=>(e&&(n=e(e=0)),n);var B=(e,n)=>{for(var t in n)L(e,t,{get:n[t],enumerable:!0})};var U={};B(U,{RunOptions:()=>S,default:()=>R,definedValues:()=>Y,diagnostics:()=>J,format:()=>K,initSync:()=>te,run:()=>Q,toAst:()=>Z});function c(e){x===w.length&&w.push(w.length+1);let n=x;return x=w[n],w[n]=e,n}function M(e){let n=typeof e;if(n=="number"||n=="boolean"||e==null)return`${e}`;if(n=="string")return`"${e}"`;if(n=="symbol"){let i=e.description;return i==null?"Symbol":`Symbol(${i})`}if(n=="function"){let i=e.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(e)){let i=e.length,a="[";i>0&&(a+=M(e[0]));for(let _=1;_<i;_++)a+=", "+M(e[_]);return a+="]",a}let t=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(t&&t.length>1)r=t[1];else return toString.call(e);if(r=="Object")try{return"Object("+JSON.stringify(e)+")"}catch{return"Object"}return e instanceof Error?`${e.name}: ${e.message}
|
|
2
|
+
${e.stack}`:r}function z(e){e<132||(w[e]=x,x=e)}function $(e,n){return e=e>>>0,h().subarray(e/1,e/1+n)}function y(){return(p===null||p.buffer.detached===!0||p.buffer.detached===void 0&&p.buffer!==s.memory.buffer)&&(p=new DataView(s.memory.buffer)),p}function O(e,n){return e=e>>>0,N(e,n)}function h(){return(m===null||m.byteLength===0)&&(m=new Uint8Array(s.memory.buffer)),m}function o(e){return w[e]}function W(e,n){try{return e.apply(this,n)}catch(t){s.__wbindgen_export3(c(t))}}function g(e){return e==null}function C(e,n,t,r){let i={a:e,b:n,cnt:1,dtor:t},a=(..._)=>{i.cnt++;let f=i.a;i.a=0;try{return r(f,i.b,..._)}finally{i.a=f,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{--i.cnt===0&&(i.dtor(i.a,i.b),i.a=0,I.unregister(i))},I.register(a,i,i),a}function b(e,n,t){if(t===void 0){let f=A.encode(e),l=n(f.length,1)>>>0;return h().subarray(l,l+f.length).set(f),u=f.length,l}let r=e.length,i=n(r,1)>>>0,a=h(),_=0;for(;_<r;_++){let f=e.charCodeAt(_);if(f>127)break;a[i+_]=f}if(_!==r){_!==0&&(e=e.slice(_)),i=t(i,r,r=_+e.length*3,1)>>>0;let f=h().subarray(i+_,i+r),l=A.encodeInto(e,f);_+=l.written,i=t(i,r,_,1)>>>0}return u=_,i}function d(e){let n=o(e);return z(e),n}function N(e,n){return E+=n,E>=H&&(D=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),D.decode(),E=n),D.decode(h().subarray(e,e+n))}function v(e,n,t){s.__wasm_bindgen_func_elem_2764(e,n,c(t))}function G(e,n,t,r){s.__wasm_bindgen_func_elem_718(e,n,c(t),c(r))}function Y(e,n){let t=b(e,s.__wbindgen_export,s.__wbindgen_export2),r=u;var i=g(n)?0:b(n,s.__wbindgen_export,s.__wbindgen_export2),a=u;let _=s.definedValues(t,r,i,a);return d(_)}function J(e){let n=b(e,s.__wbindgen_export,s.__wbindgen_export2),t=u,r=s.diagnostics(n,t);return d(r)}function K(e){let n=b(e,s.__wbindgen_export,s.__wbindgen_export2),t=u,r=s.format(n,t);return d(r)}function Q(e,n,t){let r=b(e,s.__wbindgen_export,s.__wbindgen_export2),i=u,a=b(n,s.__wbindgen_export,s.__wbindgen_export2),_=u,f=s.run(r,i,a,_,c(t));return d(f)}function Z(e){let n=b(e,s.__wbindgen_export,s.__wbindgen_export2),t=u,r=s.toAst(n,t);return d(r)}async function ne(e,n){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,n)}catch(r){if(e.ok&&ee.has(e.type)&&e.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",r);else throw r}let t=await e.arrayBuffer();return await WebAssembly.instantiate(t,n)}else{let t=await WebAssembly.instantiate(e,n);return t instanceof WebAssembly.Instance?{instance:t,module:e}:t}}function T(){let e={};return e.wbg={},e.wbg.__wbg_Error_52673b7de5a0ca89=function(n,t){let r=Error(O(n,t));return c(r)},e.wbg.__wbg_String_8f0eb39a4a4c2f66=function(n,t){let r=String(o(t)),i=b(r,s.__wbindgen_export,s.__wbindgen_export2),a=u;y().setInt32(n+4*1,a,!0),y().setInt32(n+4*0,i,!0)},e.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b=function(n){let t=o(n),r=typeof t=="boolean"?t:void 0;return g(r)?16777215:r?1:0},e.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6=function(n,t){let r=M(o(t)),i=b(r,s.__wbindgen_export,s.__wbindgen_export2),a=u;y().setInt32(n+4*1,a,!0),y().setInt32(n+4*0,i,!0)},e.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317=function(n,t){return o(n)in o(t)},e.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd=function(n){return typeof o(n)=="function"},e.wbg.__wbg___wbindgen_is_object_ce774f3490692386=function(n){let t=o(n);return typeof t=="object"&&t!==null},e.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030=function(n){return typeof o(n)=="string"},e.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269=function(n){return o(n)===void 0},e.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d=function(n,t){return o(n)==o(t)},e.wbg.__wbg___wbindgen_number_get_9619185a74197f95=function(n,t){let r=o(t),i=typeof r=="number"?r:void 0;y().setFloat64(n+8*1,g(i)?0:i,!0),y().setInt32(n+4*0,!g(i),!0)},e.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42=function(n,t){let r=o(t),i=typeof r=="string"?r:void 0;var a=g(i)?0:b(i,s.__wbindgen_export,s.__wbindgen_export2),_=u;y().setInt32(n+4*1,_,!0),y().setInt32(n+4*0,a,!0)},e.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e=function(n,t){throw new Error(O(n,t))},e.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7=function(n){o(n)._wbg_cb_unref()},e.wbg.__wbg_arrayBuffer_3356d392ef2d2aa9=function(n){let t=o(n).arrayBuffer();return c(t)},e.wbg.__wbg_call_3020136f7a2d6e44=function(){return W(function(n,t,r){let i=o(n).call(o(t),o(r));return c(i)},arguments)},e.wbg.__wbg_call_abb4ff46ce38be40=function(){return W(function(n,t){let r=o(n).call(o(t));return c(r)},arguments)},e.wbg.__wbg_done_62ea16af4ce34b24=function(n){return o(n).done},e.wbg.__wbg_entries_7de5c9edd116e219=function(n){let t=o(n).entries();return c(t)},e.wbg.__wbg_entries_83c79938054e065f=function(n){let t=Object.entries(o(n));return c(t)},e.wbg.__wbg_from_29a8414a7a7cd19d=function(n){let t=Array.from(o(n));return c(t)},e.wbg.__wbg_getDirectory_9beed6c83b6861f5=function(n){let t=o(n).getDirectory();return c(t)},e.wbg.__wbg_getFile_3d12eaf635641f3a=function(n){let t=o(n).getFile();return c(t)},e.wbg.__wbg_get_6b7bd52aca3f9671=function(n,t){let r=o(n)[t>>>0];return c(r)},e.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe=function(n,t){let r=o(n)[o(t)];return c(r)},e.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355=function(n){let t;try{t=o(n)instanceof ArrayBuffer}catch{t=!1}return t},e.wbg.__wbg_instanceof_FileSystemDirectoryHandle_264085cadc86679a=function(n){let t;try{t=o(n)instanceof FileSystemDirectoryHandle}catch{t=!1}return t},e.wbg.__wbg_instanceof_FileSystemFileHandle_214d69e0ae063fc8=function(n){let t;try{t=o(n)instanceof FileSystemFileHandle}catch{t=!1}return t},e.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434=function(n){let t;try{t=o(n)instanceof Uint8Array}catch{t=!1}return t},e.wbg.__wbg_instanceof_Window_b5cf7783caa68180=function(n){let t;try{t=o(n)instanceof Window}catch{t=!1}return t},e.wbg.__wbg_length_22ac23eaec9d8053=function(n){return o(n).length},e.wbg.__wbg_length_d45040a40c570362=function(n){return o(n).length},e.wbg.__wbg_navigator_b49edef831236138=function(n){let t=o(n).navigator;return c(t)},e.wbg.__wbg_new_1ba21ce319a06297=function(){let n=new Object;return c(n)},e.wbg.__wbg_new_25f239778d6112b9=function(){let n=new Array;return c(n)},e.wbg.__wbg_new_6421f6084cc5bc5a=function(n){let t=new Uint8Array(o(n));return c(t)},e.wbg.__wbg_new_ff12d2b041fb48f1=function(n,t){try{var r={a:n,b:t},i=(_,f)=>{let l=r.a;r.a=0;try{return G(l,r.b,_,f)}finally{r.a=l}};let a=new Promise(i);return c(a)}finally{r.a=r.b=0}},e.wbg.__wbg_new_no_args_cb138f77cf6151ee=function(n,t){let r=new Function(O(n,t));return c(r)},e.wbg.__wbg_next_b34c09a202bf4424=function(){return W(function(n){let t=o(n).next();return c(t)},arguments)},e.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd=function(n,t,r){Uint8Array.prototype.set.call($(n,t),o(r))},e.wbg.__wbg_queueMicrotask_9b549dfce8865860=function(n){let t=o(n).queueMicrotask;return c(t)},e.wbg.__wbg_queueMicrotask_fca69f5bfad613a5=function(n){queueMicrotask(o(n))},e.wbg.__wbg_resolve_fd5bfbaa4ce36e1e=function(n){let t=Promise.resolve(o(n));return c(t)},e.wbg.__wbg_set_3f1d0b984ed272ed=function(n,t,r){o(n)[d(t)]=d(r)},e.wbg.__wbg_set_7df433eea03a5c14=function(n,t,r){o(n)[t>>>0]=d(r)},e.wbg.__wbg_size_82fbdb656de23326=function(n){return o(n).size},e.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335=function(){let n=typeof global>"u"?null:global;return g(n)?0:c(n)},e.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1=function(){let n=typeof globalThis>"u"?null:globalThis;return g(n)?0:c(n)},e.wbg.__wbg_static_accessor_SELF_08f5a74c69739274=function(){let n=typeof self>"u"?null:self;return g(n)?0:c(n)},e.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024=function(){let n=typeof window>"u"?null:window;return g(n)?0:c(n)},e.wbg.__wbg_storage_b04c3b736f10dd3b=function(n){let t=o(n).storage;return c(t)},e.wbg.__wbg_then_429f7caf1026411d=function(n,t,r){let i=o(n).then(o(t),o(r));return c(i)},e.wbg.__wbg_then_4f95312d68691235=function(n,t){let r=o(n).then(o(t));return c(r)},e.wbg.__wbg_value_57b7b035e117f7ee=function(n){let t=o(n).value;return c(t)},e.wbg.__wbindgen_cast_2241b6af4c4b2941=function(n,t){let r=O(n,t);return c(r)},e.wbg.__wbindgen_cast_7cc765810adca37d=function(n,t){let r=C(n,t,s.__wasm_bindgen_func_elem_2763,v);return c(r)},e.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(n){return c(n)},e.wbg.__wbindgen_object_clone_ref=function(n){let t=o(n);return c(t)},e.wbg.__wbindgen_object_drop_ref=function(n){d(n)},e}function V(e,n){return s=e.exports,k.__wbindgen_wasm_module=n,p=null,m=null,s}function te(e){if(s!==void 0)return s;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let n=T();e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));let t=new WebAssembly.Instance(e,n);return V(t,e)}async function k(e){if(s!==void 0)return s;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof e>"u"&&(e=new URL("mq_wasm_bg.wasm",import.meta.url));let n=T();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));let{instance:t,module:r}=await ne(await e,n);return V(t,r)}var s,I,p,m,w,x,D,H,E,A,u,X,S,ee,R,P=q(()=>{"use strict";I=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>e.dtor(e.a,e.b));p=null;m=null;w=new Array(128).fill(void 0);w.push(void 0,null,!0,!1);x=w.length;D=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});D.decode();H=2146435072,E=0;A=new TextEncoder;"encodeInto"in A||(A.encodeInto=function(e,n){let t=A.encode(e);return n.set(t),{read:e.length,written:t.length}});u=0;X=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>s.__wbg_runoptions_free(e>>>0,1)),S=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),n}free(){let n=this.__destroy_into_raw();s.__wbg_runoptions_free(n,0)}};Symbol.dispose&&(S.prototype[Symbol.dispose]=S.prototype.free);ee=new Set(["basic","cors","default"]);R=k});P();var j=null;async function F(){return j||(await(async()=>{try{await R();let e=await Promise.resolve().then(()=>(P(),U));j={run:e.run,toAst:e.toAst,format:e.format,diagnostics:e.diagnostics,definedValues:e.definedValues}}catch(e){throw new Error(`Failed to initialize mq WebAssembly module: ${e}`)}})(),j)}async function re(e,n,t={}){return await(await F()).run(e,n,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...t})}async function ie(e){return await(await F()).toAst(e)}async function oe(e){return await(await F()).format(e)}async function se(e){return await(await F()).diagnostics(e)}async function ce(e,n){return await(await F()).definedValues(e,n)}export{ce as definedValues,se as diagnostics,oe as format,re as run,ie as toAst};
|
package/dist/mq_wasm.js
CHANGED
|
@@ -1,41 +1,5 @@
|
|
|
1
1
|
let wasm;
|
|
2
2
|
|
|
3
|
-
let cachedUint8ArrayMemory0 = null;
|
|
4
|
-
|
|
5
|
-
function getUint8ArrayMemory0() {
|
|
6
|
-
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
7
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
8
|
-
}
|
|
9
|
-
return cachedUint8ArrayMemory0;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
13
|
-
|
|
14
|
-
cachedTextDecoder.decode();
|
|
15
|
-
|
|
16
|
-
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
17
|
-
let numBytesDecoded = 0;
|
|
18
|
-
function decodeText(ptr, len) {
|
|
19
|
-
numBytesDecoded += len;
|
|
20
|
-
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
21
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
22
|
-
cachedTextDecoder.decode();
|
|
23
|
-
numBytesDecoded = len;
|
|
24
|
-
}
|
|
25
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function getStringFromWasm0(ptr, len) {
|
|
29
|
-
ptr = ptr >>> 0;
|
|
30
|
-
return decodeText(ptr, len);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
let heap = new Array(128).fill(undefined);
|
|
34
|
-
|
|
35
|
-
heap.push(undefined, null, true, false);
|
|
36
|
-
|
|
37
|
-
let heap_next = heap.length;
|
|
38
|
-
|
|
39
3
|
function addHeapObject(obj) {
|
|
40
4
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
41
5
|
const idx = heap_next;
|
|
@@ -45,74 +9,9 @@ function addHeapObject(obj) {
|
|
|
45
9
|
return idx;
|
|
46
10
|
}
|
|
47
11
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
const cachedTextEncoder = new TextEncoder();
|
|
53
|
-
|
|
54
|
-
if (!('encodeInto' in cachedTextEncoder)) {
|
|
55
|
-
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
56
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
57
|
-
view.set(buf);
|
|
58
|
-
return {
|
|
59
|
-
read: arg.length,
|
|
60
|
-
written: buf.length
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
66
|
-
|
|
67
|
-
if (realloc === undefined) {
|
|
68
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
69
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
70
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
71
|
-
WASM_VECTOR_LEN = buf.length;
|
|
72
|
-
return ptr;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
let len = arg.length;
|
|
76
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
77
|
-
|
|
78
|
-
const mem = getUint8ArrayMemory0();
|
|
79
|
-
|
|
80
|
-
let offset = 0;
|
|
81
|
-
|
|
82
|
-
for (; offset < len; offset++) {
|
|
83
|
-
const code = arg.charCodeAt(offset);
|
|
84
|
-
if (code > 0x7F) break;
|
|
85
|
-
mem[ptr + offset] = code;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
if (offset !== len) {
|
|
89
|
-
if (offset !== 0) {
|
|
90
|
-
arg = arg.slice(offset);
|
|
91
|
-
}
|
|
92
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
93
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
94
|
-
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
95
|
-
|
|
96
|
-
offset += ret.written;
|
|
97
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
WASM_VECTOR_LEN = offset;
|
|
101
|
-
return ptr;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
let cachedDataViewMemory0 = null;
|
|
105
|
-
|
|
106
|
-
function getDataViewMemory0() {
|
|
107
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
108
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
109
|
-
}
|
|
110
|
-
return cachedDataViewMemory0;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
function isLikeNone(x) {
|
|
114
|
-
return x === undefined || x === null;
|
|
115
|
-
}
|
|
12
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
13
|
+
? { register: () => {}, unregister: () => {} }
|
|
14
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
116
15
|
|
|
117
16
|
function debugString(val) {
|
|
118
17
|
// primitive types
|
|
@@ -179,12 +78,10 @@ function debugString(val) {
|
|
|
179
78
|
return className;
|
|
180
79
|
}
|
|
181
80
|
|
|
182
|
-
function
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
wasm.__wbindgen_export3(addHeapObject(e));
|
|
187
|
-
}
|
|
81
|
+
function dropObject(idx) {
|
|
82
|
+
if (idx < 132) return;
|
|
83
|
+
heap[idx] = heap_next;
|
|
84
|
+
heap_next = idx;
|
|
188
85
|
}
|
|
189
86
|
|
|
190
87
|
function getArrayU8FromWasm0(ptr, len) {
|
|
@@ -192,21 +89,45 @@ function getArrayU8FromWasm0(ptr, len) {
|
|
|
192
89
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
193
90
|
}
|
|
194
91
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
92
|
+
let cachedDataViewMemory0 = null;
|
|
93
|
+
function getDataViewMemory0() {
|
|
94
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
95
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
96
|
+
}
|
|
97
|
+
return cachedDataViewMemory0;
|
|
199
98
|
}
|
|
200
99
|
|
|
201
|
-
function
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
return ret;
|
|
100
|
+
function getStringFromWasm0(ptr, len) {
|
|
101
|
+
ptr = ptr >>> 0;
|
|
102
|
+
return decodeText(ptr, len);
|
|
205
103
|
}
|
|
206
104
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
105
|
+
let cachedUint8ArrayMemory0 = null;
|
|
106
|
+
function getUint8ArrayMemory0() {
|
|
107
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
108
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
109
|
+
}
|
|
110
|
+
return cachedUint8ArrayMemory0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function getObject(idx) { return heap[idx]; }
|
|
114
|
+
|
|
115
|
+
function handleError(f, args) {
|
|
116
|
+
try {
|
|
117
|
+
return f.apply(this, args);
|
|
118
|
+
} catch (e) {
|
|
119
|
+
wasm.__wbindgen_export3(addHeapObject(e));
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
let heap = new Array(128).fill(undefined);
|
|
124
|
+
heap.push(undefined, null, true, false);
|
|
125
|
+
|
|
126
|
+
let heap_next = heap.length;
|
|
127
|
+
|
|
128
|
+
function isLikeNone(x) {
|
|
129
|
+
return x === undefined || x === null;
|
|
130
|
+
}
|
|
210
131
|
|
|
211
132
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
212
133
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
@@ -235,29 +156,127 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
235
156
|
CLOSURE_DTORS.register(real, state, state);
|
|
236
157
|
return real;
|
|
237
158
|
}
|
|
159
|
+
|
|
160
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
161
|
+
if (realloc === undefined) {
|
|
162
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
163
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
164
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
165
|
+
WASM_VECTOR_LEN = buf.length;
|
|
166
|
+
return ptr;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
let len = arg.length;
|
|
170
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
171
|
+
|
|
172
|
+
const mem = getUint8ArrayMemory0();
|
|
173
|
+
|
|
174
|
+
let offset = 0;
|
|
175
|
+
|
|
176
|
+
for (; offset < len; offset++) {
|
|
177
|
+
const code = arg.charCodeAt(offset);
|
|
178
|
+
if (code > 0x7F) break;
|
|
179
|
+
mem[ptr + offset] = code;
|
|
180
|
+
}
|
|
181
|
+
if (offset !== len) {
|
|
182
|
+
if (offset !== 0) {
|
|
183
|
+
arg = arg.slice(offset);
|
|
184
|
+
}
|
|
185
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
186
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
187
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
188
|
+
|
|
189
|
+
offset += ret.written;
|
|
190
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
WASM_VECTOR_LEN = offset;
|
|
194
|
+
return ptr;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
function takeObject(idx) {
|
|
198
|
+
const ret = getObject(idx);
|
|
199
|
+
dropObject(idx);
|
|
200
|
+
return ret;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
204
|
+
cachedTextDecoder.decode();
|
|
205
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
206
|
+
let numBytesDecoded = 0;
|
|
207
|
+
function decodeText(ptr, len) {
|
|
208
|
+
numBytesDecoded += len;
|
|
209
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
210
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
211
|
+
cachedTextDecoder.decode();
|
|
212
|
+
numBytesDecoded = len;
|
|
213
|
+
}
|
|
214
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
const cachedTextEncoder = new TextEncoder();
|
|
218
|
+
|
|
219
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
220
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
221
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
222
|
+
view.set(buf);
|
|
223
|
+
return {
|
|
224
|
+
read: arg.length,
|
|
225
|
+
written: buf.length
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
let WASM_VECTOR_LEN = 0;
|
|
231
|
+
|
|
232
|
+
function __wasm_bindgen_func_elem_2764(arg0, arg1, arg2) {
|
|
233
|
+
wasm.__wasm_bindgen_func_elem_2764(arg0, arg1, addHeapObject(arg2));
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
function __wasm_bindgen_func_elem_718(arg0, arg1, arg2, arg3) {
|
|
237
|
+
wasm.__wasm_bindgen_func_elem_718(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
const RunOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
241
|
+
? { register: () => {}, unregister: () => {} }
|
|
242
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_runoptions_free(ptr >>> 0, 1));
|
|
243
|
+
|
|
244
|
+
export class RunOptions {
|
|
245
|
+
__destroy_into_raw() {
|
|
246
|
+
const ptr = this.__wbg_ptr;
|
|
247
|
+
this.__wbg_ptr = 0;
|
|
248
|
+
RunOptionsFinalization.unregister(this);
|
|
249
|
+
return ptr;
|
|
250
|
+
}
|
|
251
|
+
free() {
|
|
252
|
+
const ptr = this.__destroy_into_raw();
|
|
253
|
+
wasm.__wbg_runoptions_free(ptr, 0);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
if (Symbol.dispose) RunOptions.prototype[Symbol.dispose] = RunOptions.prototype.free;
|
|
257
|
+
|
|
238
258
|
/**
|
|
239
259
|
* @param {string} code
|
|
240
|
-
* @param {string}
|
|
241
|
-
* @
|
|
242
|
-
* @returns {Promise<string>}
|
|
260
|
+
* @param {string | null} [module]
|
|
261
|
+
* @returns {Promise<any>}
|
|
243
262
|
*/
|
|
244
|
-
export function
|
|
263
|
+
export function definedValues(code, module) {
|
|
245
264
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
246
265
|
const len0 = WASM_VECTOR_LEN;
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
const ret = wasm.
|
|
266
|
+
var ptr1 = isLikeNone(module) ? 0 : passStringToWasm0(module, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
267
|
+
var len1 = WASM_VECTOR_LEN;
|
|
268
|
+
const ret = wasm.definedValues(ptr0, len0, ptr1, len1);
|
|
250
269
|
return takeObject(ret);
|
|
251
270
|
}
|
|
252
271
|
|
|
253
272
|
/**
|
|
254
273
|
* @param {string} code
|
|
255
|
-
* @returns {Promise<
|
|
274
|
+
* @returns {Promise<any>}
|
|
256
275
|
*/
|
|
257
|
-
export function
|
|
276
|
+
export function diagnostics(code) {
|
|
258
277
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
259
278
|
const len0 = WASM_VECTOR_LEN;
|
|
260
|
-
const ret = wasm.
|
|
279
|
+
const ret = wasm.diagnostics(ptr0, len0);
|
|
261
280
|
return takeObject(ret);
|
|
262
281
|
}
|
|
263
282
|
|
|
@@ -274,57 +293,30 @@ export function format(code) {
|
|
|
274
293
|
|
|
275
294
|
/**
|
|
276
295
|
* @param {string} code
|
|
277
|
-
* @
|
|
296
|
+
* @param {string} content
|
|
297
|
+
* @param {any} options
|
|
298
|
+
* @returns {Promise<string>}
|
|
278
299
|
*/
|
|
279
|
-
export function
|
|
300
|
+
export function run(code, content, options) {
|
|
280
301
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
281
302
|
const len0 = WASM_VECTOR_LEN;
|
|
282
|
-
const
|
|
303
|
+
const ptr1 = passStringToWasm0(content, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
304
|
+
const len1 = WASM_VECTOR_LEN;
|
|
305
|
+
const ret = wasm.run(ptr0, len0, ptr1, len1, addHeapObject(options));
|
|
283
306
|
return takeObject(ret);
|
|
284
307
|
}
|
|
285
308
|
|
|
286
309
|
/**
|
|
287
310
|
* @param {string} code
|
|
288
|
-
* @
|
|
289
|
-
* @returns {Promise<any>}
|
|
311
|
+
* @returns {Promise<string>}
|
|
290
312
|
*/
|
|
291
|
-
export function
|
|
313
|
+
export function toAst(code) {
|
|
292
314
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
293
315
|
const len0 = WASM_VECTOR_LEN;
|
|
294
|
-
|
|
295
|
-
var len1 = WASM_VECTOR_LEN;
|
|
296
|
-
const ret = wasm.definedValues(ptr0, len0, ptr1, len1);
|
|
316
|
+
const ret = wasm.toAst(ptr0, len0);
|
|
297
317
|
return takeObject(ret);
|
|
298
318
|
}
|
|
299
319
|
|
|
300
|
-
function __wasm_bindgen_func_elem_2757(arg0, arg1, arg2) {
|
|
301
|
-
wasm.__wasm_bindgen_func_elem_2757(arg0, arg1, addHeapObject(arg2));
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
function __wasm_bindgen_func_elem_722(arg0, arg1, arg2, arg3) {
|
|
305
|
-
wasm.__wasm_bindgen_func_elem_722(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
const RunOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
309
|
-
? { register: () => {}, unregister: () => {} }
|
|
310
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_runoptions_free(ptr >>> 0, 1));
|
|
311
|
-
|
|
312
|
-
export class RunOptions {
|
|
313
|
-
|
|
314
|
-
__destroy_into_raw() {
|
|
315
|
-
const ptr = this.__wbg_ptr;
|
|
316
|
-
this.__wbg_ptr = 0;
|
|
317
|
-
RunOptionsFinalization.unregister(this);
|
|
318
|
-
return ptr;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
free() {
|
|
322
|
-
const ptr = this.__destroy_into_raw();
|
|
323
|
-
wasm.__wbg_runoptions_free(ptr, 0);
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
if (Symbol.dispose) RunOptions.prototype[Symbol.dispose] = RunOptions.prototype.free;
|
|
327
|
-
|
|
328
320
|
const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
|
|
329
321
|
|
|
330
322
|
async function __wbg_load(module, imports) {
|
|
@@ -332,7 +324,6 @@ async function __wbg_load(module, imports) {
|
|
|
332
324
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
333
325
|
try {
|
|
334
326
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
335
|
-
|
|
336
327
|
} catch (e) {
|
|
337
328
|
const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
|
|
338
329
|
|
|
@@ -347,13 +338,11 @@ async function __wbg_load(module, imports) {
|
|
|
347
338
|
|
|
348
339
|
const bytes = await module.arrayBuffer();
|
|
349
340
|
return await WebAssembly.instantiate(bytes, imports);
|
|
350
|
-
|
|
351
341
|
} else {
|
|
352
342
|
const instance = await WebAssembly.instantiate(module, imports);
|
|
353
343
|
|
|
354
344
|
if (instance instanceof WebAssembly.Instance) {
|
|
355
345
|
return { instance, module };
|
|
356
|
-
|
|
357
346
|
} else {
|
|
358
347
|
return instance;
|
|
359
348
|
}
|
|
@@ -363,7 +352,7 @@ async function __wbg_load(module, imports) {
|
|
|
363
352
|
function __wbg_get_imports() {
|
|
364
353
|
const imports = {};
|
|
365
354
|
imports.wbg = {};
|
|
366
|
-
imports.wbg.
|
|
355
|
+
imports.wbg.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
|
|
367
356
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
368
357
|
return addHeapObject(ret);
|
|
369
358
|
};
|
|
@@ -374,50 +363,50 @@ function __wbg_get_imports() {
|
|
|
374
363
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
375
364
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
376
365
|
};
|
|
377
|
-
imports.wbg.
|
|
366
|
+
imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
|
|
378
367
|
const v = getObject(arg0);
|
|
379
368
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
380
369
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
381
370
|
};
|
|
382
|
-
imports.wbg.
|
|
371
|
+
imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
|
|
383
372
|
const ret = debugString(getObject(arg1));
|
|
384
373
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
385
374
|
const len1 = WASM_VECTOR_LEN;
|
|
386
375
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
387
376
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
388
377
|
};
|
|
389
|
-
imports.wbg.
|
|
378
|
+
imports.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317 = function(arg0, arg1) {
|
|
390
379
|
const ret = getObject(arg0) in getObject(arg1);
|
|
391
380
|
return ret;
|
|
392
381
|
};
|
|
393
|
-
imports.wbg.
|
|
382
|
+
imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
|
|
394
383
|
const ret = typeof(getObject(arg0)) === 'function';
|
|
395
384
|
return ret;
|
|
396
385
|
};
|
|
397
|
-
imports.wbg.
|
|
386
|
+
imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
|
|
398
387
|
const val = getObject(arg0);
|
|
399
388
|
const ret = typeof(val) === 'object' && val !== null;
|
|
400
389
|
return ret;
|
|
401
390
|
};
|
|
402
|
-
imports.wbg.
|
|
391
|
+
imports.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030 = function(arg0) {
|
|
403
392
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
404
393
|
return ret;
|
|
405
394
|
};
|
|
406
|
-
imports.wbg.
|
|
395
|
+
imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
|
|
407
396
|
const ret = getObject(arg0) === undefined;
|
|
408
397
|
return ret;
|
|
409
398
|
};
|
|
410
|
-
imports.wbg.
|
|
399
|
+
imports.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d = function(arg0, arg1) {
|
|
411
400
|
const ret = getObject(arg0) == getObject(arg1);
|
|
412
401
|
return ret;
|
|
413
402
|
};
|
|
414
|
-
imports.wbg.
|
|
403
|
+
imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
|
|
415
404
|
const obj = getObject(arg1);
|
|
416
405
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
417
406
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
418
407
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
419
408
|
};
|
|
420
|
-
imports.wbg.
|
|
409
|
+
imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
|
|
421
410
|
const obj = getObject(arg1);
|
|
422
411
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
423
412
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -425,49 +414,49 @@ function __wbg_get_imports() {
|
|
|
425
414
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
426
415
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
427
416
|
};
|
|
428
|
-
imports.wbg.
|
|
417
|
+
imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
|
|
429
418
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
430
419
|
};
|
|
431
|
-
imports.wbg.
|
|
420
|
+
imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) {
|
|
432
421
|
getObject(arg0)._wbg_cb_unref();
|
|
433
422
|
};
|
|
434
|
-
imports.wbg.
|
|
423
|
+
imports.wbg.__wbg_arrayBuffer_3356d392ef2d2aa9 = function(arg0) {
|
|
435
424
|
const ret = getObject(arg0).arrayBuffer();
|
|
436
425
|
return addHeapObject(ret);
|
|
437
426
|
};
|
|
438
|
-
imports.wbg.
|
|
427
|
+
imports.wbg.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
439
428
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
440
429
|
return addHeapObject(ret);
|
|
441
430
|
}, arguments) };
|
|
442
|
-
imports.wbg.
|
|
431
|
+
imports.wbg.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) {
|
|
443
432
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
444
433
|
return addHeapObject(ret);
|
|
445
434
|
}, arguments) };
|
|
446
|
-
imports.wbg.
|
|
435
|
+
imports.wbg.__wbg_done_62ea16af4ce34b24 = function(arg0) {
|
|
447
436
|
const ret = getObject(arg0).done;
|
|
448
437
|
return ret;
|
|
449
438
|
};
|
|
450
|
-
imports.wbg.
|
|
439
|
+
imports.wbg.__wbg_entries_7de5c9edd116e219 = function(arg0) {
|
|
451
440
|
const ret = getObject(arg0).entries();
|
|
452
441
|
return addHeapObject(ret);
|
|
453
442
|
};
|
|
454
|
-
imports.wbg.
|
|
443
|
+
imports.wbg.__wbg_entries_83c79938054e065f = function(arg0) {
|
|
455
444
|
const ret = Object.entries(getObject(arg0));
|
|
456
445
|
return addHeapObject(ret);
|
|
457
446
|
};
|
|
458
|
-
imports.wbg.
|
|
447
|
+
imports.wbg.__wbg_from_29a8414a7a7cd19d = function(arg0) {
|
|
459
448
|
const ret = Array.from(getObject(arg0));
|
|
460
449
|
return addHeapObject(ret);
|
|
461
450
|
};
|
|
462
|
-
imports.wbg.
|
|
451
|
+
imports.wbg.__wbg_getDirectory_9beed6c83b6861f5 = function(arg0) {
|
|
463
452
|
const ret = getObject(arg0).getDirectory();
|
|
464
453
|
return addHeapObject(ret);
|
|
465
454
|
};
|
|
466
|
-
imports.wbg.
|
|
455
|
+
imports.wbg.__wbg_getFile_3d12eaf635641f3a = function(arg0) {
|
|
467
456
|
const ret = getObject(arg0).getFile();
|
|
468
457
|
return addHeapObject(ret);
|
|
469
458
|
};
|
|
470
|
-
imports.wbg.
|
|
459
|
+
imports.wbg.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
|
|
471
460
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
472
461
|
return addHeapObject(ret);
|
|
473
462
|
};
|
|
@@ -475,7 +464,7 @@ function __wbg_get_imports() {
|
|
|
475
464
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
476
465
|
return addHeapObject(ret);
|
|
477
466
|
};
|
|
478
|
-
imports.wbg.
|
|
467
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
|
|
479
468
|
let result;
|
|
480
469
|
try {
|
|
481
470
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
@@ -485,7 +474,7 @@ function __wbg_get_imports() {
|
|
|
485
474
|
const ret = result;
|
|
486
475
|
return ret;
|
|
487
476
|
};
|
|
488
|
-
imports.wbg.
|
|
477
|
+
imports.wbg.__wbg_instanceof_FileSystemDirectoryHandle_264085cadc86679a = function(arg0) {
|
|
489
478
|
let result;
|
|
490
479
|
try {
|
|
491
480
|
result = getObject(arg0) instanceof FileSystemDirectoryHandle;
|
|
@@ -495,7 +484,7 @@ function __wbg_get_imports() {
|
|
|
495
484
|
const ret = result;
|
|
496
485
|
return ret;
|
|
497
486
|
};
|
|
498
|
-
imports.wbg.
|
|
487
|
+
imports.wbg.__wbg_instanceof_FileSystemFileHandle_214d69e0ae063fc8 = function(arg0) {
|
|
499
488
|
let result;
|
|
500
489
|
try {
|
|
501
490
|
result = getObject(arg0) instanceof FileSystemFileHandle;
|
|
@@ -505,7 +494,7 @@ function __wbg_get_imports() {
|
|
|
505
494
|
const ret = result;
|
|
506
495
|
return ret;
|
|
507
496
|
};
|
|
508
|
-
imports.wbg.
|
|
497
|
+
imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
|
|
509
498
|
let result;
|
|
510
499
|
try {
|
|
511
500
|
result = getObject(arg0) instanceof Uint8Array;
|
|
@@ -515,7 +504,7 @@ function __wbg_get_imports() {
|
|
|
515
504
|
const ret = result;
|
|
516
505
|
return ret;
|
|
517
506
|
};
|
|
518
|
-
imports.wbg.
|
|
507
|
+
imports.wbg.__wbg_instanceof_Window_b5cf7783caa68180 = function(arg0) {
|
|
519
508
|
let result;
|
|
520
509
|
try {
|
|
521
510
|
result = getObject(arg0) instanceof Window;
|
|
@@ -525,30 +514,38 @@ function __wbg_get_imports() {
|
|
|
525
514
|
const ret = result;
|
|
526
515
|
return ret;
|
|
527
516
|
};
|
|
528
|
-
imports.wbg.
|
|
517
|
+
imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
|
|
529
518
|
const ret = getObject(arg0).length;
|
|
530
519
|
return ret;
|
|
531
520
|
};
|
|
532
|
-
imports.wbg.
|
|
521
|
+
imports.wbg.__wbg_length_d45040a40c570362 = function(arg0) {
|
|
533
522
|
const ret = getObject(arg0).length;
|
|
534
523
|
return ret;
|
|
535
524
|
};
|
|
536
|
-
imports.wbg.
|
|
525
|
+
imports.wbg.__wbg_navigator_b49edef831236138 = function(arg0) {
|
|
537
526
|
const ret = getObject(arg0).navigator;
|
|
538
527
|
return addHeapObject(ret);
|
|
539
528
|
};
|
|
540
|
-
imports.wbg.
|
|
529
|
+
imports.wbg.__wbg_new_1ba21ce319a06297 = function() {
|
|
541
530
|
const ret = new Object();
|
|
542
531
|
return addHeapObject(ret);
|
|
543
532
|
};
|
|
544
|
-
imports.wbg.
|
|
533
|
+
imports.wbg.__wbg_new_25f239778d6112b9 = function() {
|
|
534
|
+
const ret = new Array();
|
|
535
|
+
return addHeapObject(ret);
|
|
536
|
+
};
|
|
537
|
+
imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
|
|
538
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
539
|
+
return addHeapObject(ret);
|
|
540
|
+
};
|
|
541
|
+
imports.wbg.__wbg_new_ff12d2b041fb48f1 = function(arg0, arg1) {
|
|
545
542
|
try {
|
|
546
543
|
var state0 = {a: arg0, b: arg1};
|
|
547
544
|
var cb0 = (arg0, arg1) => {
|
|
548
545
|
const a = state0.a;
|
|
549
546
|
state0.a = 0;
|
|
550
547
|
try {
|
|
551
|
-
return
|
|
548
|
+
return __wasm_bindgen_func_elem_718(a, state0.b, arg0, arg1);
|
|
552
549
|
} finally {
|
|
553
550
|
state0.a = a;
|
|
554
551
|
}
|
|
@@ -559,81 +556,68 @@ function __wbg_get_imports() {
|
|
|
559
556
|
state0.a = state0.b = 0;
|
|
560
557
|
}
|
|
561
558
|
};
|
|
562
|
-
imports.wbg.
|
|
563
|
-
const ret = new Uint8Array(getObject(arg0));
|
|
564
|
-
return addHeapObject(ret);
|
|
565
|
-
};
|
|
566
|
-
imports.wbg.__wbg_new_e17d9f43105b08be = function() {
|
|
567
|
-
const ret = new Array();
|
|
568
|
-
return addHeapObject(ret);
|
|
569
|
-
};
|
|
570
|
-
imports.wbg.__wbg_new_no_args_ee98eee5275000a4 = function(arg0, arg1) {
|
|
559
|
+
imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
|
|
571
560
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
572
561
|
return addHeapObject(ret);
|
|
573
562
|
};
|
|
574
|
-
imports.wbg.
|
|
563
|
+
imports.wbg.__wbg_next_b34c09a202bf4424 = function() { return handleError(function (arg0) {
|
|
575
564
|
const ret = getObject(arg0).next();
|
|
576
565
|
return addHeapObject(ret);
|
|
577
566
|
}, arguments) };
|
|
578
|
-
imports.wbg.
|
|
567
|
+
imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
|
|
579
568
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
580
569
|
};
|
|
581
|
-
imports.wbg.
|
|
570
|
+
imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) {
|
|
582
571
|
const ret = getObject(arg0).queueMicrotask;
|
|
583
572
|
return addHeapObject(ret);
|
|
584
573
|
};
|
|
585
|
-
imports.wbg.
|
|
574
|
+
imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function(arg0) {
|
|
586
575
|
queueMicrotask(getObject(arg0));
|
|
587
576
|
};
|
|
588
|
-
imports.wbg.
|
|
577
|
+
imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) {
|
|
589
578
|
const ret = Promise.resolve(getObject(arg0));
|
|
590
579
|
return addHeapObject(ret);
|
|
591
580
|
};
|
|
592
581
|
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
593
582
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
594
583
|
};
|
|
595
|
-
imports.wbg.
|
|
584
|
+
imports.wbg.__wbg_set_7df433eea03a5c14 = function(arg0, arg1, arg2) {
|
|
596
585
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
597
586
|
};
|
|
598
|
-
imports.wbg.
|
|
587
|
+
imports.wbg.__wbg_size_82fbdb656de23326 = function(arg0) {
|
|
599
588
|
const ret = getObject(arg0).size;
|
|
600
589
|
return ret;
|
|
601
590
|
};
|
|
602
|
-
imports.wbg.
|
|
591
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
|
|
603
592
|
const ret = typeof global === 'undefined' ? null : global;
|
|
604
593
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
605
594
|
};
|
|
606
|
-
imports.wbg.
|
|
595
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() {
|
|
607
596
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
608
597
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
609
598
|
};
|
|
610
|
-
imports.wbg.
|
|
599
|
+
imports.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function() {
|
|
611
600
|
const ret = typeof self === 'undefined' ? null : self;
|
|
612
601
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
613
602
|
};
|
|
614
|
-
imports.wbg.
|
|
603
|
+
imports.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() {
|
|
615
604
|
const ret = typeof window === 'undefined' ? null : window;
|
|
616
605
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
617
606
|
};
|
|
618
|
-
imports.wbg.
|
|
607
|
+
imports.wbg.__wbg_storage_b04c3b736f10dd3b = function(arg0) {
|
|
619
608
|
const ret = getObject(arg0).storage;
|
|
620
609
|
return addHeapObject(ret);
|
|
621
610
|
};
|
|
622
|
-
imports.wbg.
|
|
623
|
-
const ret = getObject(arg0).then(getObject(arg1));
|
|
624
|
-
return addHeapObject(ret);
|
|
625
|
-
};
|
|
626
|
-
imports.wbg.__wbg_then_70d05cf780a18d77 = function(arg0, arg1, arg2) {
|
|
611
|
+
imports.wbg.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) {
|
|
627
612
|
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
628
613
|
return addHeapObject(ret);
|
|
629
614
|
};
|
|
630
|
-
imports.wbg.
|
|
631
|
-
const ret = getObject(arg0).
|
|
615
|
+
imports.wbg.__wbg_then_4f95312d68691235 = function(arg0, arg1) {
|
|
616
|
+
const ret = getObject(arg0).then(getObject(arg1));
|
|
632
617
|
return addHeapObject(ret);
|
|
633
618
|
};
|
|
634
|
-
imports.wbg.
|
|
635
|
-
|
|
636
|
-
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2756, __wasm_bindgen_func_elem_2757);
|
|
619
|
+
imports.wbg.__wbg_value_57b7b035e117f7ee = function(arg0) {
|
|
620
|
+
const ret = getObject(arg0).value;
|
|
637
621
|
return addHeapObject(ret);
|
|
638
622
|
};
|
|
639
623
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
@@ -641,6 +625,11 @@ function __wbg_get_imports() {
|
|
|
641
625
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
642
626
|
return addHeapObject(ret);
|
|
643
627
|
};
|
|
628
|
+
imports.wbg.__wbindgen_cast_7cc765810adca37d = function(arg0, arg1) {
|
|
629
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 261, function: Function { arguments: [Externref], shim_idx: 262, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
630
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2763, __wasm_bindgen_func_elem_2764);
|
|
631
|
+
return addHeapObject(ret);
|
|
632
|
+
};
|
|
644
633
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
645
634
|
// Cast intrinsic for `F64 -> Externref`.
|
|
646
635
|
const ret = arg0;
|
|
@@ -681,13 +670,10 @@ function initSync(module) {
|
|
|
681
670
|
}
|
|
682
671
|
|
|
683
672
|
const imports = __wbg_get_imports();
|
|
684
|
-
|
|
685
673
|
if (!(module instanceof WebAssembly.Module)) {
|
|
686
674
|
module = new WebAssembly.Module(module);
|
|
687
675
|
}
|
|
688
|
-
|
|
689
676
|
const instance = new WebAssembly.Instance(module, imports);
|
|
690
|
-
|
|
691
677
|
return __wbg_finalize_init(instance, module);
|
|
692
678
|
}
|
|
693
679
|
|
package/dist/mq_wasm_bg.wasm
CHANGED
|
Binary file
|