mq-nodejs 0.5.28 → 0.5.30

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/dist/core.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var D=Object.create;var O=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var U=Object.getPrototypeOf,C=Object.prototype.hasOwnProperty;var W=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports),q=(n,t)=>{for(var e in t)O(n,e,{get:t[e],enumerable:!0})},P=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of E(t))!C.call(n,o)&&o!==e&&O(n,o,{get:()=>t[o],enumerable:!(r=R(t,o))||r.enumerable});return n};var L=(n,t,e)=>(e=n!=null?D(U(n)):{},P(t||!n||!n.__esModule?O(e,"default",{value:n,enumerable:!0}):e,n)),$=n=>P(O({},"__esModule",{value:!0}),n);var v=W(l=>{"use strict";var A=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,et.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_conversionoptions_free(t,0)}get extract_scripts_as_code_blocks(){return _.__wbg_get_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr)!==0}get generate_front_matter(){return _.__wbg_get_conversionoptions_generate_front_matter(this.__wbg_ptr)!==0}get use_title_as_h1(){return _.__wbg_get_conversionoptions_use_title_as_h1(this.__wbg_ptr)!==0}set extract_scripts_as_code_blocks(t){_.__wbg_set_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr,t)}set generate_front_matter(t){_.__wbg_set_conversionoptions_generate_front_matter(this.__wbg_ptr,t)}set use_title_as_h1(t){_.__wbg_set_conversionoptions_use_title_as_h1(this.__wbg_ptr,t)}};Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);l.ConversionOptions=A;var M=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,rt.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_runoptions_free(t,0)}};Symbol.dispose&&(M.prototype[Symbol.dispose]=M.prototype.free);l.RunOptions=M;function z(n,t){let e=g(n,_.__wbindgen_export,_.__wbindgen_export2),r=u;var o=w(t)?0:g(t,_.__wbindgen_export,_.__wbindgen_export2),s=u;let c=_.definedValues(e,r,o,s);return d(c)}l.definedValues=z;function B(n,t){let e=g(n,_.__wbindgen_export,_.__wbindgen_export2),r=u,o=_.diagnostics(e,r,w(t)?16777215:t?1:0);return d(o)}l.diagnostics=B;function N(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.format(t,e);return d(r)}l.format=N;function G(n,t,e){let r=g(n,_.__wbindgen_export,_.__wbindgen_export2),o=u,s=_.hover(r,o,t,e);return d(s)}l.hover=G;function J(n,t){let e=g(n,_.__wbindgen_export,_.__wbindgen_export2),r=u,o=0;w(t)||(ot(t,A),o=t.__destroy_into_raw());let s=_.htmlToMarkdown(e,r,o);return d(s)}l.htmlToMarkdown=J;function K(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.inlayHints(t,e);return d(r)}l.inlayHints=K;function Q(n,t,e){let r=g(n,_.__wbindgen_export,_.__wbindgen_export2),o=u,s=g(t,_.__wbindgen_export,_.__wbindgen_export2),c=u,b=_.run(r,o,s,c,a(e));return d(b)}l.run=Q;function X(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.toAst(t,e);return d(r)}l.toAst=X;function Y(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.toHtml(t,e);return d(r)}l.toHtml=Y;function Z(){return{__proto__:null,"./mq_wasm_bg.js":{__proto__:null,__wbg_Error_960c155d3d49e4c2:function(t,e){let r=Error(H(t,e));return a(r)},__wbg_String_8564e559799eccda:function(t,e){let r=String(i(e)),o=g(r,_.__wbindgen_export,_.__wbindgen_export2),s=u;p().setInt32(t+4,s,!0),p().setInt32(t+0,o,!0)},__wbg___wbindgen_boolean_get_6ea149f0a8dcc5ff:function(t){let e=i(t),r=typeof e=="boolean"?e:void 0;return w(r)?16777215:r?1:0},__wbg___wbindgen_debug_string_ab4b34d23d6778bd:function(t,e){let r=T(i(e)),o=g(r,_.__wbindgen_export,_.__wbindgen_export2),s=u;p().setInt32(t+4,s,!0),p().setInt32(t+0,o,!0)},__wbg___wbindgen_in_a5d8b22e52b24dd1:function(t,e){return i(t)in i(e)},__wbg___wbindgen_is_function_3baa9db1a987f47d:function(t){return typeof i(t)=="function"},__wbg___wbindgen_is_object_63322ec0cd6ea4ef:function(t){let e=i(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_6df3bf7ef1164ed3:function(t){return typeof i(t)=="string"},__wbg___wbindgen_is_undefined_29a43b4d42920abd:function(t){return i(t)===void 0},__wbg___wbindgen_jsval_loose_eq_cac3565e89b4134c:function(t,e){return i(t)==i(e)},__wbg___wbindgen_number_get_c7f42aed0525c451:function(t,e){let r=i(e),o=typeof r=="number"?r:void 0;p().setFloat64(t+8,w(o)?0:o,!0),p().setInt32(t+0,!w(o),!0)},__wbg___wbindgen_string_get_7ed5322991caaec5:function(t,e){let r=i(e),o=typeof r=="string"?r:void 0;var s=w(o)?0:g(o,_.__wbindgen_export,_.__wbindgen_export2),c=u;p().setInt32(t+4,c,!0),p().setInt32(t+0,s,!0)},__wbg___wbindgen_throw_6b64449b9b9ed33c:function(t,e){throw new Error(H(t,e))},__wbg__wbg_cb_unref_b46c9b5a9f08ec37:function(t){i(t)._wbg_cb_unref()},__wbg_call_a24592a6f349a97e:function(){return st(function(t,e,r){let o=i(t).call(i(e),i(r));return a(o)},arguments)},__wbg_entries_e0b73aa8571ddb56:function(t){let e=Object.entries(i(t));return a(e)},__wbg_get_8360291721e2339f:function(t,e){let r=i(t)[e>>>0];return a(r)},__wbg_get_with_ref_key_6412cf3094599694:function(t,e){let r=i(t)[i(e)];return a(r)},__wbg_instanceof_ArrayBuffer_7c8433c6ed14ffe3:function(t){let e;try{e=i(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Uint8Array_152ba1f289edcf3f:function(t){let e;try{e=i(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_length_3d4ecd04bd8d22f1:function(t){return i(t).length},__wbg_length_9f1775224cf1d815:function(t){return i(t).length},__wbg_new_0c7403db6e782f19:function(t){let e=new Uint8Array(i(t));return a(e)},__wbg_new_682678e2f47e32bc:function(){let t=new Array;return a(t)},__wbg_new_aa8d0fa9762c29bd:function(){let t=new Object;return a(t)},__wbg_new_typed_323f37fd55ab048d:function(t,e){try{var r={a:t,b:e},o=(c,b)=>{let y=r.a;r.a=0;try{return nt(y,r.b,c,b)}finally{r.a=y}};let s=new Promise(o);return a(s)}finally{r.a=0}},__wbg_prototypesetcall_a6b02eb00b0f4ce2:function(t,e,r){Uint8Array.prototype.set.call(it(t,e),i(r))},__wbg_queueMicrotask_5d15a957e6aa920e:function(t){queueMicrotask(i(t))},__wbg_queueMicrotask_f8819e5ffc402f36:function(t){let e=i(t).queueMicrotask;return a(e)},__wbg_resolve_e6c466bc1052f16c:function(t){let e=Promise.resolve(i(t));return a(e)},__wbg_set_3bf1de9fab0cd644:function(t,e,r){i(t)[e>>>0]=d(r)},__wbg_set_6be42768c690e380:function(t,e,r){i(t)[d(e)]=d(r)},__wbg_static_accessor_GLOBAL_8cfadc87a297ca02:function(){let t=typeof global>"u"?null:global;return w(t)?0:a(t)},__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf:function(){let t=typeof globalThis>"u"?null:globalThis;return w(t)?0:a(t)},__wbg_static_accessor_SELF_e445c1c7484aecc3:function(){let t=typeof self>"u"?null:self;return w(t)?0:a(t)},__wbg_static_accessor_WINDOW_f20e8576ef1e0f17:function(){let t=typeof window>"u"?null:window;return w(t)?0:a(t)},__wbg_then_8e16ee11f05e4827:function(t,e){let r=i(t).then(i(e));return a(r)},__wbindgen_cast_0000000000000001:function(t,e){let r=ct(t,e,tt);return a(r)},__wbindgen_cast_0000000000000002:function(t){return a(t)},__wbindgen_cast_0000000000000003:function(t,e){let r=H(t,e);return a(r)},__wbindgen_object_clone_ref:function(t){let e=i(t);return a(e)},__wbindgen_object_drop_ref:function(t){d(t)}}}}function tt(n,t,e){try{let s=_.__wbindgen_add_to_stack_pointer(-16);_.__wasm_bindgen_func_elem_726(s,n,t,a(e));var r=p().getInt32(s+0,!0),o=p().getInt32(s+4,!0);if(o)throw d(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function nt(n,t,e,r){_.__wasm_bindgen_func_elem_1016(n,t,a(e),a(r))}var et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_conversionoptions_free(n>>>0,1)),rt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_runoptions_free(n>>>0,1));function a(n){I===m.length&&m.push(m.length+1);let t=I;return I=m[t],m[t]=n,t}function ot(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}var j=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbindgen_export4(n.a,n.b));function T(n){let t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){let o=n.description;return o==null?"Symbol":`Symbol(${o})`}if(t=="function"){let o=n.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(n)){let o=n.length,s="[";o>0&&(s+=T(n[0]));for(let c=1;c<o;c++)s+=", "+T(n[c]);return s+="]",s}let e=/\[object ([^\]]+)\]/.exec(toString.call(n)),r;if(e&&e.length>1)r=e[1];else return toString.call(n);if(r=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
2
- ${n.stack}`:r}function _t(n){n<1028||(m[n]=I,I=n)}function it(n,t){return n=n>>>0,F().subarray(n/1,n/1+t)}var x=null;function p(){return(x===null||x.buffer.detached===!0||x.buffer.detached===void 0&&x.buffer!==_.memory.buffer)&&(x=new DataView(_.memory.buffer)),x}function H(n,t){return n=n>>>0,at(n,t)}var S=null;function F(){return(S===null||S.byteLength===0)&&(S=new Uint8Array(_.memory.buffer)),S}function i(n){return m[n]}function st(n,t){try{return n.apply(this,t)}catch(e){_.__wbindgen_export3(a(e))}}var m=new Array(1024).fill(void 0);m.push(void 0,null,!0,!1);var I=m.length;function w(n){return n==null}function ct(n,t,e){let r={a:n,b:t,cnt:1},o=(...s)=>{r.cnt++;let c=r.a;r.a=0;try{return e(c,r.b,...s)}finally{r.a=c,o._wbg_cb_unref()}};return o._wbg_cb_unref=()=>{--r.cnt===0&&(_.__wbindgen_export4(r.a,r.b),r.a=0,j.unregister(r))},j.register(o,r,r),o}function g(n,t,e){if(e===void 0){let b=k.encode(n),y=t(b.length,1)>>>0;return F().subarray(y,y+b.length).set(b),u=b.length,y}let r=n.length,o=t(r,1)>>>0,s=F(),c=0;for(;c<r;c++){let b=n.charCodeAt(c);if(b>127)break;s[o+c]=b}if(c!==r){c!==0&&(n=n.slice(c)),o=e(o,r,r=c+n.length*3,1)>>>0;let b=F().subarray(o+c,o+r),y=k.encodeInto(n,b);c+=y.written,o=e(o,r,c,1)>>>0}return u=c,o}function d(n){let t=i(n);return _t(n),t}var V=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});V.decode();function at(n,t){return V.decode(F().subarray(n,n+t))}var k=new TextEncoder;"encodeInto"in k||(k.encodeInto=function(n,t){let e=k.encode(n);return t.set(e),{read:n.length,written:e.length}});var u=0,ut=`${__dirname}/mq_wasm_bg.wasm`,ft=require("fs").readFileSync(ut),dt=new WebAssembly.Module(ft),_=new WebAssembly.Instance(dt,Z()).exports});var xt={};q(xt,{definedValues:()=>mt,diagnostics:()=>wt,format:()=>lt,htmlToMarkdown:()=>yt,inlayHints:()=>pt,run:()=>gt,toAst:()=>bt,toHtml:()=>ht});module.exports=$(xt);var f=L(v()),h={run:f.run,toAst:f.toAst,format:f.format,diagnostics:f.diagnostics,inlayHints:f.inlayHints,definedValues:f.definedValues,htmlToMarkdown:f.htmlToMarkdown,toHtml:f.toHtml};async function gt(n,t,e={}){return await h.run(n,t,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...e})}async function bt(n){return await h.toAst(n)}async function lt(n){return await h.format(n)}async function wt(n,t){return await h.diagnostics(n,t)}async function pt(n){return await h.inlayHints(n)}async function mt(n,t){return await h.definedValues(n,t)}async function yt(n,t){return await h.htmlToMarkdown(n,t)}async function ht(n){return await h.toHtml(n)}0&&(module.exports={definedValues,diagnostics,format,htmlToMarkdown,inlayHints,run,toAst,toHtml});
1
+ "use strict";var v=Object.create;var M=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var U=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty;var C=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports),W=(n,t)=>{for(var e in t)M(n,e,{get:t[e],enumerable:!0})},P=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of E(t))!z.call(n,o)&&o!==e&&M(n,o,{get:()=>t[o],enumerable:!(r=R(t,o))||r.enumerable});return n};var q=(n,t,e)=>(e=n!=null?v(U(n)):{},P(t||!n||!n.__esModule?M(e,"default",{value:n,enumerable:!0}):e,n)),L=n=>P(M({},"__esModule",{value:!0}),n);var D=C(l=>{"use strict";var A=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,et.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_conversionoptions_free(t,0)}get extract_scripts_as_code_blocks(){return _.__wbg_get_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr)!==0}get generate_front_matter(){return _.__wbg_get_conversionoptions_generate_front_matter(this.__wbg_ptr)!==0}get use_title_as_h1(){return _.__wbg_get_conversionoptions_use_title_as_h1(this.__wbg_ptr)!==0}set extract_scripts_as_code_blocks(t){_.__wbg_set_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr,t)}set generate_front_matter(t){_.__wbg_set_conversionoptions_generate_front_matter(this.__wbg_ptr,t)}set use_title_as_h1(t){_.__wbg_set_conversionoptions_use_title_as_h1(this.__wbg_ptr,t)}};Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);l.ConversionOptions=A;var O=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,rt.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_runoptions_free(t,0)}};Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);l.RunOptions=O;function $(n,t){let e=g(n,_.__wbindgen_export,_.__wbindgen_export2),r=u;var o=w(t)?0:g(t,_.__wbindgen_export,_.__wbindgen_export2),s=u;let c=_.definedValues(e,r,o,s);return d(c)}l.definedValues=$;function B(n,t){let e=g(n,_.__wbindgen_export,_.__wbindgen_export2),r=u,o=_.diagnostics(e,r,w(t)?16777215:t?1:0);return d(o)}l.diagnostics=B;function N(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.format(t,e);return d(r)}l.format=N;function G(n,t,e){let r=g(n,_.__wbindgen_export,_.__wbindgen_export2),o=u,s=_.hover(r,o,t,e);return d(s)}l.hover=G;function J(n,t){let e=g(n,_.__wbindgen_export,_.__wbindgen_export2),r=u,o=0;w(t)||(ot(t,A),o=t.__destroy_into_raw());let s=_.htmlToMarkdown(e,r,o);return d(s)}l.htmlToMarkdown=J;function K(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.inlayHints(t,e);return d(r)}l.inlayHints=K;function Q(n,t,e){let r=g(n,_.__wbindgen_export,_.__wbindgen_export2),o=u,s=g(t,_.__wbindgen_export,_.__wbindgen_export2),c=u,b=_.run(r,o,s,c,a(e));return d(b)}l.run=Q;function X(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.toAst(t,e);return d(r)}l.toAst=X;function Y(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.toHtml(t,e);return d(r)}l.toHtml=Y;function Z(){return{__proto__:null,"./mq_wasm_bg.js":{__proto__:null,__wbg_Error_960c155d3d49e4c2:function(t,e){let r=Error(T(t,e));return a(r)},__wbg_String_8564e559799eccda:function(t,e){let r=String(i(e)),o=g(r,_.__wbindgen_export,_.__wbindgen_export2),s=u;p().setInt32(t+4,s,!0),p().setInt32(t+0,o,!0)},__wbg___wbindgen_boolean_get_6ea149f0a8dcc5ff:function(t){let e=i(t),r=typeof e=="boolean"?e:void 0;return w(r)?16777215:r?1:0},__wbg___wbindgen_debug_string_ab4b34d23d6778bd:function(t,e){let r=H(i(e)),o=g(r,_.__wbindgen_export,_.__wbindgen_export2),s=u;p().setInt32(t+4,s,!0),p().setInt32(t+0,o,!0)},__wbg___wbindgen_in_a5d8b22e52b24dd1:function(t,e){return i(t)in i(e)},__wbg___wbindgen_is_function_3baa9db1a987f47d:function(t){return typeof i(t)=="function"},__wbg___wbindgen_is_object_63322ec0cd6ea4ef:function(t){let e=i(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_6df3bf7ef1164ed3:function(t){return typeof i(t)=="string"},__wbg___wbindgen_is_undefined_29a43b4d42920abd:function(t){return i(t)===void 0},__wbg___wbindgen_jsval_loose_eq_cac3565e89b4134c:function(t,e){return i(t)==i(e)},__wbg___wbindgen_number_get_c7f42aed0525c451:function(t,e){let r=i(e),o=typeof r=="number"?r:void 0;p().setFloat64(t+8,w(o)?0:o,!0),p().setInt32(t+0,!w(o),!0)},__wbg___wbindgen_string_get_7ed5322991caaec5:function(t,e){let r=i(e),o=typeof r=="string"?r:void 0;var s=w(o)?0:g(o,_.__wbindgen_export,_.__wbindgen_export2),c=u;p().setInt32(t+4,c,!0),p().setInt32(t+0,s,!0)},__wbg___wbindgen_throw_6b64449b9b9ed33c:function(t,e){throw new Error(T(t,e))},__wbg__wbg_cb_unref_b46c9b5a9f08ec37:function(t){i(t)._wbg_cb_unref()},__wbg_call_a24592a6f349a97e:function(){return st(function(t,e,r){let o=i(t).call(i(e),i(r));return a(o)},arguments)},__wbg_entries_e0b73aa8571ddb56:function(t){let e=Object.entries(i(t));return a(e)},__wbg_getTimezoneOffset_31f57a5389d0d57c:function(t){return i(t).getTimezoneOffset()},__wbg_get_8360291721e2339f:function(t,e){let r=i(t)[e>>>0];return a(r)},__wbg_get_with_ref_key_6412cf3094599694:function(t,e){let r=i(t)[i(e)];return a(r)},__wbg_instanceof_ArrayBuffer_7c8433c6ed14ffe3:function(t){let e;try{e=i(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Uint8Array_152ba1f289edcf3f:function(t){let e;try{e=i(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_length_3d4ecd04bd8d22f1:function(t){return i(t).length},__wbg_length_9f1775224cf1d815:function(t){return i(t).length},__wbg_new_0c7403db6e782f19:function(t){let e=new Uint8Array(i(t));return a(e)},__wbg_new_682678e2f47e32bc:function(){let t=new Array;return a(t)},__wbg_new_7913666fe5070684:function(t){let e=new Date(i(t));return a(e)},__wbg_new_aa8d0fa9762c29bd:function(){let t=new Object;return a(t)},__wbg_new_typed_323f37fd55ab048d:function(t,e){try{var r={a:t,b:e},o=(c,b)=>{let y=r.a;r.a=0;try{return nt(y,r.b,c,b)}finally{r.a=y}};let s=new Promise(o);return a(s)}finally{r.a=0}},__wbg_prototypesetcall_a6b02eb00b0f4ce2:function(t,e,r){Uint8Array.prototype.set.call(it(t,e),i(r))},__wbg_queueMicrotask_5d15a957e6aa920e:function(t){queueMicrotask(i(t))},__wbg_queueMicrotask_f8819e5ffc402f36:function(t){let e=i(t).queueMicrotask;return a(e)},__wbg_resolve_e6c466bc1052f16c:function(t){let e=Promise.resolve(i(t));return a(e)},__wbg_set_3bf1de9fab0cd644:function(t,e,r){i(t)[e>>>0]=d(r)},__wbg_set_6be42768c690e380:function(t,e,r){i(t)[d(e)]=d(r)},__wbg_static_accessor_GLOBAL_8cfadc87a297ca02:function(){let t=typeof global>"u"?null:global;return w(t)?0:a(t)},__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf:function(){let t=typeof globalThis>"u"?null:globalThis;return w(t)?0:a(t)},__wbg_static_accessor_SELF_e445c1c7484aecc3:function(){let t=typeof self>"u"?null:self;return w(t)?0:a(t)},__wbg_static_accessor_WINDOW_f20e8576ef1e0f17:function(){let t=typeof window>"u"?null:window;return w(t)?0:a(t)},__wbg_then_8e16ee11f05e4827:function(t,e){let r=i(t).then(i(e));return a(r)},__wbindgen_cast_0000000000000001:function(t,e){let r=ct(t,e,tt);return a(r)},__wbindgen_cast_0000000000000002:function(t){return a(t)},__wbindgen_cast_0000000000000003:function(t,e){let r=T(t,e);return a(r)},__wbindgen_object_clone_ref:function(t){let e=i(t);return a(e)},__wbindgen_object_drop_ref:function(t){d(t)}}}}function tt(n,t,e){try{let s=_.__wbindgen_add_to_stack_pointer(-16);_.__wasm_bindgen_func_elem_1070(s,n,t,a(e));var r=p().getInt32(s+0,!0),o=p().getInt32(s+4,!0);if(o)throw d(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function nt(n,t,e,r){_.__wasm_bindgen_func_elem_1360(n,t,a(e),a(r))}var et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_conversionoptions_free(n>>>0,1)),rt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_runoptions_free(n>>>0,1));function a(n){I===m.length&&m.push(m.length+1);let t=I;return I=m[t],m[t]=n,t}function ot(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}var j=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbindgen_export4(n.a,n.b));function H(n){let t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){let o=n.description;return o==null?"Symbol":`Symbol(${o})`}if(t=="function"){let o=n.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(n)){let o=n.length,s="[";o>0&&(s+=H(n[0]));for(let c=1;c<o;c++)s+=", "+H(n[c]);return s+="]",s}let e=/\[object ([^\]]+)\]/.exec(toString.call(n)),r;if(e&&e.length>1)r=e[1];else return toString.call(n);if(r=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
2
+ ${n.stack}`:r}function _t(n){n<1028||(m[n]=I,I=n)}function it(n,t){return n=n>>>0,F().subarray(n/1,n/1+t)}var x=null;function p(){return(x===null||x.buffer.detached===!0||x.buffer.detached===void 0&&x.buffer!==_.memory.buffer)&&(x=new DataView(_.memory.buffer)),x}function T(n,t){return n=n>>>0,at(n,t)}var S=null;function F(){return(S===null||S.byteLength===0)&&(S=new Uint8Array(_.memory.buffer)),S}function i(n){return m[n]}function st(n,t){try{return n.apply(this,t)}catch(e){_.__wbindgen_export3(a(e))}}var m=new Array(1024).fill(void 0);m.push(void 0,null,!0,!1);var I=m.length;function w(n){return n==null}function ct(n,t,e){let r={a:n,b:t,cnt:1},o=(...s)=>{r.cnt++;let c=r.a;r.a=0;try{return e(c,r.b,...s)}finally{r.a=c,o._wbg_cb_unref()}};return o._wbg_cb_unref=()=>{--r.cnt===0&&(_.__wbindgen_export4(r.a,r.b),r.a=0,j.unregister(r))},j.register(o,r,r),o}function g(n,t,e){if(e===void 0){let b=k.encode(n),y=t(b.length,1)>>>0;return F().subarray(y,y+b.length).set(b),u=b.length,y}let r=n.length,o=t(r,1)>>>0,s=F(),c=0;for(;c<r;c++){let b=n.charCodeAt(c);if(b>127)break;s[o+c]=b}if(c!==r){c!==0&&(n=n.slice(c)),o=e(o,r,r=c+n.length*3,1)>>>0;let b=F().subarray(o+c,o+r),y=k.encodeInto(n,b);c+=y.written,o=e(o,r,c,1)>>>0}return u=c,o}function d(n){let t=i(n);return _t(n),t}var V=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});V.decode();function at(n,t){return V.decode(F().subarray(n,n+t))}var k=new TextEncoder;"encodeInto"in k||(k.encodeInto=function(n,t){let e=k.encode(n);return t.set(e),{read:n.length,written:e.length}});var u=0,ut=`${__dirname}/mq_wasm_bg.wasm`,ft=require("fs").readFileSync(ut),dt=new WebAssembly.Module(ft),_=new WebAssembly.Instance(dt,Z()).exports});var xt={};W(xt,{definedValues:()=>mt,diagnostics:()=>wt,format:()=>lt,htmlToMarkdown:()=>yt,inlayHints:()=>pt,run:()=>gt,toAst:()=>bt,toHtml:()=>ht});module.exports=L(xt);var f=q(D()),h={run:f.run,toAst:f.toAst,format:f.format,diagnostics:f.diagnostics,inlayHints:f.inlayHints,definedValues:f.definedValues,htmlToMarkdown:f.htmlToMarkdown,toHtml:f.toHtml};async function gt(n,t,e={}){return await h.run(n,t,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...e})}async function bt(n){return await h.toAst(n)}async function lt(n){return await h.format(n)}async function wt(n,t){return await h.diagnostics(n,t)}async function pt(n){return await h.inlayHints(n)}async function mt(n,t){return await h.definedValues(n,t)}async function yt(n,t){return await h.htmlToMarkdown(n,t)}async function ht(n){return await h.toHtml(n)}0&&(module.exports={definedValues,diagnostics,format,htmlToMarkdown,inlayHints,run,toAst,toHtml});
package/dist/core.mjs CHANGED
@@ -1,2 +1,2 @@
1
- var v=Object.create;var T=Object.defineProperty;var D=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty;var C=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(t,e)=>(typeof require<"u"?require:t)[e]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var W=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports);var q=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of R(t))!U.call(n,o)&&o!==e&&T(n,o,{get:()=>t[o],enumerable:!(r=D(t,o))||r.enumerable});return n};var L=(n,t,e)=>(e=n!=null?v(E(n)):{},q(t||!n||!n.__esModule?T(e,"default",{value:n,enumerable:!0}):e,n));var V=W(l=>{"use strict";var A=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,nt.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_conversionoptions_free(t,0)}get extract_scripts_as_code_blocks(){return _.__wbg_get_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr)!==0}get generate_front_matter(){return _.__wbg_get_conversionoptions_generate_front_matter(this.__wbg_ptr)!==0}get use_title_as_h1(){return _.__wbg_get_conversionoptions_use_title_as_h1(this.__wbg_ptr)!==0}set extract_scripts_as_code_blocks(t){_.__wbg_set_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr,t)}set generate_front_matter(t){_.__wbg_set_conversionoptions_generate_front_matter(this.__wbg_ptr,t)}set use_title_as_h1(t){_.__wbg_set_conversionoptions_use_title_as_h1(this.__wbg_ptr,t)}};Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);l.ConversionOptions=A;var M=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,et.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_runoptions_free(t,0)}};Symbol.dispose&&(M.prototype[Symbol.dispose]=M.prototype.free);l.RunOptions=M;function $(n,t){let e=g(n,_.__wbindgen_export,_.__wbindgen_export2),r=u;var o=w(t)?0:g(t,_.__wbindgen_export,_.__wbindgen_export2),s=u;let c=_.definedValues(e,r,o,s);return d(c)}l.definedValues=$;function z(n,t){let e=g(n,_.__wbindgen_export,_.__wbindgen_export2),r=u,o=_.diagnostics(e,r,w(t)?16777215:t?1:0);return d(o)}l.diagnostics=z;function B(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.format(t,e);return d(r)}l.format=B;function N(n,t,e){let r=g(n,_.__wbindgen_export,_.__wbindgen_export2),o=u,s=_.hover(r,o,t,e);return d(s)}l.hover=N;function G(n,t){let e=g(n,_.__wbindgen_export,_.__wbindgen_export2),r=u,o=0;w(t)||(rt(t,A),o=t.__destroy_into_raw());let s=_.htmlToMarkdown(e,r,o);return d(s)}l.htmlToMarkdown=G;function J(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.inlayHints(t,e);return d(r)}l.inlayHints=J;function K(n,t,e){let r=g(n,_.__wbindgen_export,_.__wbindgen_export2),o=u,s=g(t,_.__wbindgen_export,_.__wbindgen_export2),c=u,b=_.run(r,o,s,c,a(e));return d(b)}l.run=K;function Q(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.toAst(t,e);return d(r)}l.toAst=Q;function X(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.toHtml(t,e);return d(r)}l.toHtml=X;function Y(){return{__proto__:null,"./mq_wasm_bg.js":{__proto__:null,__wbg_Error_960c155d3d49e4c2:function(t,e){let r=Error(S(t,e));return a(r)},__wbg_String_8564e559799eccda:function(t,e){let r=String(i(e)),o=g(r,_.__wbindgen_export,_.__wbindgen_export2),s=u;p().setInt32(t+4,s,!0),p().setInt32(t+0,o,!0)},__wbg___wbindgen_boolean_get_6ea149f0a8dcc5ff:function(t){let e=i(t),r=typeof e=="boolean"?e:void 0;return w(r)?16777215:r?1:0},__wbg___wbindgen_debug_string_ab4b34d23d6778bd:function(t,e){let r=H(i(e)),o=g(r,_.__wbindgen_export,_.__wbindgen_export2),s=u;p().setInt32(t+4,s,!0),p().setInt32(t+0,o,!0)},__wbg___wbindgen_in_a5d8b22e52b24dd1:function(t,e){return i(t)in i(e)},__wbg___wbindgen_is_function_3baa9db1a987f47d:function(t){return typeof i(t)=="function"},__wbg___wbindgen_is_object_63322ec0cd6ea4ef:function(t){let e=i(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_6df3bf7ef1164ed3:function(t){return typeof i(t)=="string"},__wbg___wbindgen_is_undefined_29a43b4d42920abd:function(t){return i(t)===void 0},__wbg___wbindgen_jsval_loose_eq_cac3565e89b4134c:function(t,e){return i(t)==i(e)},__wbg___wbindgen_number_get_c7f42aed0525c451:function(t,e){let r=i(e),o=typeof r=="number"?r:void 0;p().setFloat64(t+8,w(o)?0:o,!0),p().setInt32(t+0,!w(o),!0)},__wbg___wbindgen_string_get_7ed5322991caaec5:function(t,e){let r=i(e),o=typeof r=="string"?r:void 0;var s=w(o)?0:g(o,_.__wbindgen_export,_.__wbindgen_export2),c=u;p().setInt32(t+4,c,!0),p().setInt32(t+0,s,!0)},__wbg___wbindgen_throw_6b64449b9b9ed33c:function(t,e){throw new Error(S(t,e))},__wbg__wbg_cb_unref_b46c9b5a9f08ec37:function(t){i(t)._wbg_cb_unref()},__wbg_call_a24592a6f349a97e:function(){return it(function(t,e,r){let o=i(t).call(i(e),i(r));return a(o)},arguments)},__wbg_entries_e0b73aa8571ddb56:function(t){let e=Object.entries(i(t));return a(e)},__wbg_get_8360291721e2339f:function(t,e){let r=i(t)[e>>>0];return a(r)},__wbg_get_with_ref_key_6412cf3094599694:function(t,e){let r=i(t)[i(e)];return a(r)},__wbg_instanceof_ArrayBuffer_7c8433c6ed14ffe3:function(t){let e;try{e=i(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Uint8Array_152ba1f289edcf3f:function(t){let e;try{e=i(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_length_3d4ecd04bd8d22f1:function(t){return i(t).length},__wbg_length_9f1775224cf1d815:function(t){return i(t).length},__wbg_new_0c7403db6e782f19:function(t){let e=new Uint8Array(i(t));return a(e)},__wbg_new_682678e2f47e32bc:function(){let t=new Array;return a(t)},__wbg_new_aa8d0fa9762c29bd:function(){let t=new Object;return a(t)},__wbg_new_typed_323f37fd55ab048d:function(t,e){try{var r={a:t,b:e},o=(c,b)=>{let y=r.a;r.a=0;try{return tt(y,r.b,c,b)}finally{r.a=y}};let s=new Promise(o);return a(s)}finally{r.a=0}},__wbg_prototypesetcall_a6b02eb00b0f4ce2:function(t,e,r){Uint8Array.prototype.set.call(_t(t,e),i(r))},__wbg_queueMicrotask_5d15a957e6aa920e:function(t){queueMicrotask(i(t))},__wbg_queueMicrotask_f8819e5ffc402f36:function(t){let e=i(t).queueMicrotask;return a(e)},__wbg_resolve_e6c466bc1052f16c:function(t){let e=Promise.resolve(i(t));return a(e)},__wbg_set_3bf1de9fab0cd644:function(t,e,r){i(t)[e>>>0]=d(r)},__wbg_set_6be42768c690e380:function(t,e,r){i(t)[d(e)]=d(r)},__wbg_static_accessor_GLOBAL_8cfadc87a297ca02:function(){let t=typeof global>"u"?null:global;return w(t)?0:a(t)},__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf:function(){let t=typeof globalThis>"u"?null:globalThis;return w(t)?0:a(t)},__wbg_static_accessor_SELF_e445c1c7484aecc3:function(){let t=typeof self>"u"?null:self;return w(t)?0:a(t)},__wbg_static_accessor_WINDOW_f20e8576ef1e0f17:function(){let t=typeof window>"u"?null:window;return w(t)?0:a(t)},__wbg_then_8e16ee11f05e4827:function(t,e){let r=i(t).then(i(e));return a(r)},__wbindgen_cast_0000000000000001:function(t,e){let r=st(t,e,Z);return a(r)},__wbindgen_cast_0000000000000002:function(t){return a(t)},__wbindgen_cast_0000000000000003:function(t,e){let r=S(t,e);return a(r)},__wbindgen_object_clone_ref:function(t){let e=i(t);return a(e)},__wbindgen_object_drop_ref:function(t){d(t)}}}}function Z(n,t,e){try{let s=_.__wbindgen_add_to_stack_pointer(-16);_.__wasm_bindgen_func_elem_726(s,n,t,a(e));var r=p().getInt32(s+0,!0),o=p().getInt32(s+4,!0);if(o)throw d(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function tt(n,t,e,r){_.__wasm_bindgen_func_elem_1016(n,t,a(e),a(r))}var nt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_conversionoptions_free(n>>>0,1)),et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_runoptions_free(n>>>0,1));function a(n){I===m.length&&m.push(m.length+1);let t=I;return I=m[t],m[t]=n,t}function rt(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}var P=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbindgen_export4(n.a,n.b));function H(n){let t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){let o=n.description;return o==null?"Symbol":`Symbol(${o})`}if(t=="function"){let o=n.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(n)){let o=n.length,s="[";o>0&&(s+=H(n[0]));for(let c=1;c<o;c++)s+=", "+H(n[c]);return s+="]",s}let e=/\[object ([^\]]+)\]/.exec(toString.call(n)),r;if(e&&e.length>1)r=e[1];else return toString.call(n);if(r=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
2
- ${n.stack}`:r}function ot(n){n<1028||(m[n]=I,I=n)}function _t(n,t){return n=n>>>0,F().subarray(n/1,n/1+t)}var x=null;function p(){return(x===null||x.buffer.detached===!0||x.buffer.detached===void 0&&x.buffer!==_.memory.buffer)&&(x=new DataView(_.memory.buffer)),x}function S(n,t){return n=n>>>0,ct(n,t)}var O=null;function F(){return(O===null||O.byteLength===0)&&(O=new Uint8Array(_.memory.buffer)),O}function i(n){return m[n]}function it(n,t){try{return n.apply(this,t)}catch(e){_.__wbindgen_export3(a(e))}}var m=new Array(1024).fill(void 0);m.push(void 0,null,!0,!1);var I=m.length;function w(n){return n==null}function st(n,t,e){let r={a:n,b:t,cnt:1},o=(...s)=>{r.cnt++;let c=r.a;r.a=0;try{return e(c,r.b,...s)}finally{r.a=c,o._wbg_cb_unref()}};return o._wbg_cb_unref=()=>{--r.cnt===0&&(_.__wbindgen_export4(r.a,r.b),r.a=0,P.unregister(r))},P.register(o,r,r),o}function g(n,t,e){if(e===void 0){let b=k.encode(n),y=t(b.length,1)>>>0;return F().subarray(y,y+b.length).set(b),u=b.length,y}let r=n.length,o=t(r,1)>>>0,s=F(),c=0;for(;c<r;c++){let b=n.charCodeAt(c);if(b>127)break;s[o+c]=b}if(c!==r){c!==0&&(n=n.slice(c)),o=e(o,r,r=c+n.length*3,1)>>>0;let b=F().subarray(o+c,o+r),y=k.encodeInto(n,b);c+=y.written,o=e(o,r,c,1)>>>0}return u=c,o}function d(n){let t=i(n);return ot(n),t}var j=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});j.decode();function ct(n,t){return j.decode(F().subarray(n,n+t))}var k=new TextEncoder;"encodeInto"in k||(k.encodeInto=function(n,t){let e=k.encode(n);return t.set(e),{read:n.length,written:e.length}});var u=0,at=`${__dirname}/mq_wasm_bg.wasm`,ut=C("fs").readFileSync(at),ft=new WebAssembly.Module(ut),_=new WebAssembly.Instance(ft,Y()).exports});var f=L(V()),h={run:f.run,toAst:f.toAst,format:f.format,diagnostics:f.diagnostics,inlayHints:f.inlayHints,definedValues:f.definedValues,htmlToMarkdown:f.htmlToMarkdown,toHtml:f.toHtml};async function bt(n,t,e={}){return await h.run(n,t,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...e})}async function lt(n){return await h.toAst(n)}async function wt(n){return await h.format(n)}async function pt(n,t){return await h.diagnostics(n,t)}async function mt(n){return await h.inlayHints(n)}async function yt(n,t){return await h.definedValues(n,t)}async function ht(n,t){return await h.htmlToMarkdown(n,t)}async function xt(n){return await h.toHtml(n)}export{yt as definedValues,pt as diagnostics,wt as format,ht as htmlToMarkdown,mt as inlayHints,bt as run,lt as toAst,xt as toHtml};
1
+ var D=Object.create;var H=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty;var z=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(t,e)=>(typeof require<"u"?require:t)[e]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var C=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports);var W=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of R(t))!U.call(n,o)&&o!==e&&H(n,o,{get:()=>t[o],enumerable:!(r=v(t,o))||r.enumerable});return n};var q=(n,t,e)=>(e=n!=null?D(E(n)):{},W(t||!n||!n.__esModule?H(e,"default",{value:n,enumerable:!0}):e,n));var V=C(l=>{"use strict";var A=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,nt.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_conversionoptions_free(t,0)}get extract_scripts_as_code_blocks(){return _.__wbg_get_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr)!==0}get generate_front_matter(){return _.__wbg_get_conversionoptions_generate_front_matter(this.__wbg_ptr)!==0}get use_title_as_h1(){return _.__wbg_get_conversionoptions_use_title_as_h1(this.__wbg_ptr)!==0}set extract_scripts_as_code_blocks(t){_.__wbg_set_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr,t)}set generate_front_matter(t){_.__wbg_set_conversionoptions_generate_front_matter(this.__wbg_ptr,t)}set use_title_as_h1(t){_.__wbg_set_conversionoptions_use_title_as_h1(this.__wbg_ptr,t)}};Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);l.ConversionOptions=A;var O=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,et.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_runoptions_free(t,0)}};Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);l.RunOptions=O;function L(n,t){let e=g(n,_.__wbindgen_export,_.__wbindgen_export2),r=u;var o=w(t)?0:g(t,_.__wbindgen_export,_.__wbindgen_export2),s=u;let c=_.definedValues(e,r,o,s);return d(c)}l.definedValues=L;function $(n,t){let e=g(n,_.__wbindgen_export,_.__wbindgen_export2),r=u,o=_.diagnostics(e,r,w(t)?16777215:t?1:0);return d(o)}l.diagnostics=$;function B(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.format(t,e);return d(r)}l.format=B;function N(n,t,e){let r=g(n,_.__wbindgen_export,_.__wbindgen_export2),o=u,s=_.hover(r,o,t,e);return d(s)}l.hover=N;function G(n,t){let e=g(n,_.__wbindgen_export,_.__wbindgen_export2),r=u,o=0;w(t)||(rt(t,A),o=t.__destroy_into_raw());let s=_.htmlToMarkdown(e,r,o);return d(s)}l.htmlToMarkdown=G;function J(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.inlayHints(t,e);return d(r)}l.inlayHints=J;function K(n,t,e){let r=g(n,_.__wbindgen_export,_.__wbindgen_export2),o=u,s=g(t,_.__wbindgen_export,_.__wbindgen_export2),c=u,b=_.run(r,o,s,c,a(e));return d(b)}l.run=K;function Q(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.toAst(t,e);return d(r)}l.toAst=Q;function X(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.toHtml(t,e);return d(r)}l.toHtml=X;function Y(){return{__proto__:null,"./mq_wasm_bg.js":{__proto__:null,__wbg_Error_960c155d3d49e4c2:function(t,e){let r=Error(S(t,e));return a(r)},__wbg_String_8564e559799eccda:function(t,e){let r=String(i(e)),o=g(r,_.__wbindgen_export,_.__wbindgen_export2),s=u;p().setInt32(t+4,s,!0),p().setInt32(t+0,o,!0)},__wbg___wbindgen_boolean_get_6ea149f0a8dcc5ff:function(t){let e=i(t),r=typeof e=="boolean"?e:void 0;return w(r)?16777215:r?1:0},__wbg___wbindgen_debug_string_ab4b34d23d6778bd:function(t,e){let r=T(i(e)),o=g(r,_.__wbindgen_export,_.__wbindgen_export2),s=u;p().setInt32(t+4,s,!0),p().setInt32(t+0,o,!0)},__wbg___wbindgen_in_a5d8b22e52b24dd1:function(t,e){return i(t)in i(e)},__wbg___wbindgen_is_function_3baa9db1a987f47d:function(t){return typeof i(t)=="function"},__wbg___wbindgen_is_object_63322ec0cd6ea4ef:function(t){let e=i(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_6df3bf7ef1164ed3:function(t){return typeof i(t)=="string"},__wbg___wbindgen_is_undefined_29a43b4d42920abd:function(t){return i(t)===void 0},__wbg___wbindgen_jsval_loose_eq_cac3565e89b4134c:function(t,e){return i(t)==i(e)},__wbg___wbindgen_number_get_c7f42aed0525c451:function(t,e){let r=i(e),o=typeof r=="number"?r:void 0;p().setFloat64(t+8,w(o)?0:o,!0),p().setInt32(t+0,!w(o),!0)},__wbg___wbindgen_string_get_7ed5322991caaec5:function(t,e){let r=i(e),o=typeof r=="string"?r:void 0;var s=w(o)?0:g(o,_.__wbindgen_export,_.__wbindgen_export2),c=u;p().setInt32(t+4,c,!0),p().setInt32(t+0,s,!0)},__wbg___wbindgen_throw_6b64449b9b9ed33c:function(t,e){throw new Error(S(t,e))},__wbg__wbg_cb_unref_b46c9b5a9f08ec37:function(t){i(t)._wbg_cb_unref()},__wbg_call_a24592a6f349a97e:function(){return it(function(t,e,r){let o=i(t).call(i(e),i(r));return a(o)},arguments)},__wbg_entries_e0b73aa8571ddb56:function(t){let e=Object.entries(i(t));return a(e)},__wbg_getTimezoneOffset_31f57a5389d0d57c:function(t){return i(t).getTimezoneOffset()},__wbg_get_8360291721e2339f:function(t,e){let r=i(t)[e>>>0];return a(r)},__wbg_get_with_ref_key_6412cf3094599694:function(t,e){let r=i(t)[i(e)];return a(r)},__wbg_instanceof_ArrayBuffer_7c8433c6ed14ffe3:function(t){let e;try{e=i(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Uint8Array_152ba1f289edcf3f:function(t){let e;try{e=i(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_length_3d4ecd04bd8d22f1:function(t){return i(t).length},__wbg_length_9f1775224cf1d815:function(t){return i(t).length},__wbg_new_0c7403db6e782f19:function(t){let e=new Uint8Array(i(t));return a(e)},__wbg_new_682678e2f47e32bc:function(){let t=new Array;return a(t)},__wbg_new_7913666fe5070684:function(t){let e=new Date(i(t));return a(e)},__wbg_new_aa8d0fa9762c29bd:function(){let t=new Object;return a(t)},__wbg_new_typed_323f37fd55ab048d:function(t,e){try{var r={a:t,b:e},o=(c,b)=>{let y=r.a;r.a=0;try{return tt(y,r.b,c,b)}finally{r.a=y}};let s=new Promise(o);return a(s)}finally{r.a=0}},__wbg_prototypesetcall_a6b02eb00b0f4ce2:function(t,e,r){Uint8Array.prototype.set.call(_t(t,e),i(r))},__wbg_queueMicrotask_5d15a957e6aa920e:function(t){queueMicrotask(i(t))},__wbg_queueMicrotask_f8819e5ffc402f36:function(t){let e=i(t).queueMicrotask;return a(e)},__wbg_resolve_e6c466bc1052f16c:function(t){let e=Promise.resolve(i(t));return a(e)},__wbg_set_3bf1de9fab0cd644:function(t,e,r){i(t)[e>>>0]=d(r)},__wbg_set_6be42768c690e380:function(t,e,r){i(t)[d(e)]=d(r)},__wbg_static_accessor_GLOBAL_8cfadc87a297ca02:function(){let t=typeof global>"u"?null:global;return w(t)?0:a(t)},__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf:function(){let t=typeof globalThis>"u"?null:globalThis;return w(t)?0:a(t)},__wbg_static_accessor_SELF_e445c1c7484aecc3:function(){let t=typeof self>"u"?null:self;return w(t)?0:a(t)},__wbg_static_accessor_WINDOW_f20e8576ef1e0f17:function(){let t=typeof window>"u"?null:window;return w(t)?0:a(t)},__wbg_then_8e16ee11f05e4827:function(t,e){let r=i(t).then(i(e));return a(r)},__wbindgen_cast_0000000000000001:function(t,e){let r=st(t,e,Z);return a(r)},__wbindgen_cast_0000000000000002:function(t){return a(t)},__wbindgen_cast_0000000000000003:function(t,e){let r=S(t,e);return a(r)},__wbindgen_object_clone_ref:function(t){let e=i(t);return a(e)},__wbindgen_object_drop_ref:function(t){d(t)}}}}function Z(n,t,e){try{let s=_.__wbindgen_add_to_stack_pointer(-16);_.__wasm_bindgen_func_elem_1070(s,n,t,a(e));var r=p().getInt32(s+0,!0),o=p().getInt32(s+4,!0);if(o)throw d(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function tt(n,t,e,r){_.__wasm_bindgen_func_elem_1360(n,t,a(e),a(r))}var nt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_conversionoptions_free(n>>>0,1)),et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_runoptions_free(n>>>0,1));function a(n){I===m.length&&m.push(m.length+1);let t=I;return I=m[t],m[t]=n,t}function rt(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}var P=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbindgen_export4(n.a,n.b));function T(n){let t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){let o=n.description;return o==null?"Symbol":`Symbol(${o})`}if(t=="function"){let o=n.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(n)){let o=n.length,s="[";o>0&&(s+=T(n[0]));for(let c=1;c<o;c++)s+=", "+T(n[c]);return s+="]",s}let e=/\[object ([^\]]+)\]/.exec(toString.call(n)),r;if(e&&e.length>1)r=e[1];else return toString.call(n);if(r=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
2
+ ${n.stack}`:r}function ot(n){n<1028||(m[n]=I,I=n)}function _t(n,t){return n=n>>>0,F().subarray(n/1,n/1+t)}var x=null;function p(){return(x===null||x.buffer.detached===!0||x.buffer.detached===void 0&&x.buffer!==_.memory.buffer)&&(x=new DataView(_.memory.buffer)),x}function S(n,t){return n=n>>>0,ct(n,t)}var M=null;function F(){return(M===null||M.byteLength===0)&&(M=new Uint8Array(_.memory.buffer)),M}function i(n){return m[n]}function it(n,t){try{return n.apply(this,t)}catch(e){_.__wbindgen_export3(a(e))}}var m=new Array(1024).fill(void 0);m.push(void 0,null,!0,!1);var I=m.length;function w(n){return n==null}function st(n,t,e){let r={a:n,b:t,cnt:1},o=(...s)=>{r.cnt++;let c=r.a;r.a=0;try{return e(c,r.b,...s)}finally{r.a=c,o._wbg_cb_unref()}};return o._wbg_cb_unref=()=>{--r.cnt===0&&(_.__wbindgen_export4(r.a,r.b),r.a=0,P.unregister(r))},P.register(o,r,r),o}function g(n,t,e){if(e===void 0){let b=k.encode(n),y=t(b.length,1)>>>0;return F().subarray(y,y+b.length).set(b),u=b.length,y}let r=n.length,o=t(r,1)>>>0,s=F(),c=0;for(;c<r;c++){let b=n.charCodeAt(c);if(b>127)break;s[o+c]=b}if(c!==r){c!==0&&(n=n.slice(c)),o=e(o,r,r=c+n.length*3,1)>>>0;let b=F().subarray(o+c,o+r),y=k.encodeInto(n,b);c+=y.written,o=e(o,r,c,1)>>>0}return u=c,o}function d(n){let t=i(n);return ot(n),t}var j=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});j.decode();function ct(n,t){return j.decode(F().subarray(n,n+t))}var k=new TextEncoder;"encodeInto"in k||(k.encodeInto=function(n,t){let e=k.encode(n);return t.set(e),{read:n.length,written:e.length}});var u=0,at=`${__dirname}/mq_wasm_bg.wasm`,ut=z("fs").readFileSync(at),ft=new WebAssembly.Module(ut),_=new WebAssembly.Instance(ft,Y()).exports});var f=q(V()),h={run:f.run,toAst:f.toAst,format:f.format,diagnostics:f.diagnostics,inlayHints:f.inlayHints,definedValues:f.definedValues,htmlToMarkdown:f.htmlToMarkdown,toHtml:f.toHtml};async function bt(n,t,e={}){return await h.run(n,t,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...e})}async function lt(n){return await h.toAst(n)}async function wt(n){return await h.format(n)}async function pt(n,t){return await h.diagnostics(n,t)}async function mt(n){return await h.inlayHints(n)}async function yt(n,t){return await h.definedValues(n,t)}async function ht(n,t){return await h.htmlToMarkdown(n,t)}async function xt(n){return await h.toHtml(n)}export{yt as definedValues,pt as diagnostics,wt as format,ht as htmlToMarkdown,mt as inlayHints,bt as run,lt as toAst,xt as toHtml};
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var $=Object.create;var O=Object.defineProperty;var z=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var N=Object.getPrototypeOf,G=Object.prototype.hasOwnProperty;var J=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports),K=(n,t)=>{for(var e in t)O(n,e,{get:t[e],enumerable:!0})},j=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of B(t))!G.call(n,o)&&o!==e&&O(n,o,{get:()=>t[o],enumerable:!(r=z(t,o))||r.enumerable});return n};var Q=(n,t,e)=>(e=n!=null?$(N(n)):{},j(t||!n||!n.__esModule?O(e,"default",{value:n,enumerable:!0}):e,n)),X=n=>j(O({},"__esModule",{value:!0}),n);var D=J(l=>{"use strict";var A=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,ut.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_conversionoptions_free(t,0)}get extract_scripts_as_code_blocks(){return _.__wbg_get_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr)!==0}get generate_front_matter(){return _.__wbg_get_conversionoptions_generate_front_matter(this.__wbg_ptr)!==0}get use_title_as_h1(){return _.__wbg_get_conversionoptions_use_title_as_h1(this.__wbg_ptr)!==0}set extract_scripts_as_code_blocks(t){_.__wbg_set_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr,t)}set generate_front_matter(t){_.__wbg_set_conversionoptions_generate_front_matter(this.__wbg_ptr,t)}set use_title_as_h1(t){_.__wbg_set_conversionoptions_use_title_as_h1(this.__wbg_ptr,t)}};Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);l.ConversionOptions=A;var M=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_runoptions_free(t,0)}};Symbol.dispose&&(M.prototype[Symbol.dispose]=M.prototype.free);l.RunOptions=M;function Y(n,t){let e=g(n,_.__wbindgen_export,_.__wbindgen_export2),r=u;var o=w(t)?0:g(t,_.__wbindgen_export,_.__wbindgen_export2),s=u;let c=_.definedValues(e,r,o,s);return d(c)}l.definedValues=Y;function Z(n,t){let e=g(n,_.__wbindgen_export,_.__wbindgen_export2),r=u,o=_.diagnostics(e,r,w(t)?16777215:t?1:0);return d(o)}l.diagnostics=Z;function tt(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.format(t,e);return d(r)}l.format=tt;function nt(n,t,e){let r=g(n,_.__wbindgen_export,_.__wbindgen_export2),o=u,s=_.hover(r,o,t,e);return d(s)}l.hover=nt;function et(n,t){let e=g(n,_.__wbindgen_export,_.__wbindgen_export2),r=u,o=0;w(t)||(dt(t,A),o=t.__destroy_into_raw());let s=_.htmlToMarkdown(e,r,o);return d(s)}l.htmlToMarkdown=et;function rt(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.inlayHints(t,e);return d(r)}l.inlayHints=rt;function ot(n,t,e){let r=g(n,_.__wbindgen_export,_.__wbindgen_export2),o=u,s=g(t,_.__wbindgen_export,_.__wbindgen_export2),c=u,b=_.run(r,o,s,c,a(e));return d(b)}l.run=ot;function _t(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.toAst(t,e);return d(r)}l.toAst=_t;function it(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.toHtml(t,e);return d(r)}l.toHtml=it;function st(){return{__proto__:null,"./mq_wasm_bg.js":{__proto__:null,__wbg_Error_960c155d3d49e4c2:function(t,e){let r=Error(S(t,e));return a(r)},__wbg_String_8564e559799eccda:function(t,e){let r=String(i(e)),o=g(r,_.__wbindgen_export,_.__wbindgen_export2),s=u;p().setInt32(t+4,s,!0),p().setInt32(t+0,o,!0)},__wbg___wbindgen_boolean_get_6ea149f0a8dcc5ff:function(t){let e=i(t),r=typeof e=="boolean"?e:void 0;return w(r)?16777215:r?1:0},__wbg___wbindgen_debug_string_ab4b34d23d6778bd:function(t,e){let r=T(i(e)),o=g(r,_.__wbindgen_export,_.__wbindgen_export2),s=u;p().setInt32(t+4,s,!0),p().setInt32(t+0,o,!0)},__wbg___wbindgen_in_a5d8b22e52b24dd1:function(t,e){return i(t)in i(e)},__wbg___wbindgen_is_function_3baa9db1a987f47d:function(t){return typeof i(t)=="function"},__wbg___wbindgen_is_object_63322ec0cd6ea4ef:function(t){let e=i(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_6df3bf7ef1164ed3:function(t){return typeof i(t)=="string"},__wbg___wbindgen_is_undefined_29a43b4d42920abd:function(t){return i(t)===void 0},__wbg___wbindgen_jsval_loose_eq_cac3565e89b4134c:function(t,e){return i(t)==i(e)},__wbg___wbindgen_number_get_c7f42aed0525c451:function(t,e){let r=i(e),o=typeof r=="number"?r:void 0;p().setFloat64(t+8,w(o)?0:o,!0),p().setInt32(t+0,!w(o),!0)},__wbg___wbindgen_string_get_7ed5322991caaec5:function(t,e){let r=i(e),o=typeof r=="string"?r:void 0;var s=w(o)?0:g(o,_.__wbindgen_export,_.__wbindgen_export2),c=u;p().setInt32(t+4,c,!0),p().setInt32(t+0,s,!0)},__wbg___wbindgen_throw_6b64449b9b9ed33c:function(t,e){throw new Error(S(t,e))},__wbg__wbg_cb_unref_b46c9b5a9f08ec37:function(t){i(t)._wbg_cb_unref()},__wbg_call_a24592a6f349a97e:function(){return lt(function(t,e,r){let o=i(t).call(i(e),i(r));return a(o)},arguments)},__wbg_entries_e0b73aa8571ddb56:function(t){let e=Object.entries(i(t));return a(e)},__wbg_get_8360291721e2339f:function(t,e){let r=i(t)[e>>>0];return a(r)},__wbg_get_with_ref_key_6412cf3094599694:function(t,e){let r=i(t)[i(e)];return a(r)},__wbg_instanceof_ArrayBuffer_7c8433c6ed14ffe3:function(t){let e;try{e=i(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Uint8Array_152ba1f289edcf3f:function(t){let e;try{e=i(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_length_3d4ecd04bd8d22f1:function(t){return i(t).length},__wbg_length_9f1775224cf1d815:function(t){return i(t).length},__wbg_new_0c7403db6e782f19:function(t){let e=new Uint8Array(i(t));return a(e)},__wbg_new_682678e2f47e32bc:function(){let t=new Array;return a(t)},__wbg_new_aa8d0fa9762c29bd:function(){let t=new Object;return a(t)},__wbg_new_typed_323f37fd55ab048d:function(t,e){try{var r={a:t,b:e},o=(c,b)=>{let y=r.a;r.a=0;try{return at(y,r.b,c,b)}finally{r.a=y}};let s=new Promise(o);return a(s)}finally{r.a=0}},__wbg_prototypesetcall_a6b02eb00b0f4ce2:function(t,e,r){Uint8Array.prototype.set.call(bt(t,e),i(r))},__wbg_queueMicrotask_5d15a957e6aa920e:function(t){queueMicrotask(i(t))},__wbg_queueMicrotask_f8819e5ffc402f36:function(t){let e=i(t).queueMicrotask;return a(e)},__wbg_resolve_e6c466bc1052f16c:function(t){let e=Promise.resolve(i(t));return a(e)},__wbg_set_3bf1de9fab0cd644:function(t,e,r){i(t)[e>>>0]=d(r)},__wbg_set_6be42768c690e380:function(t,e,r){i(t)[d(e)]=d(r)},__wbg_static_accessor_GLOBAL_8cfadc87a297ca02:function(){let t=typeof global>"u"?null:global;return w(t)?0:a(t)},__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf:function(){let t=typeof globalThis>"u"?null:globalThis;return w(t)?0:a(t)},__wbg_static_accessor_SELF_e445c1c7484aecc3:function(){let t=typeof self>"u"?null:self;return w(t)?0:a(t)},__wbg_static_accessor_WINDOW_f20e8576ef1e0f17:function(){let t=typeof window>"u"?null:window;return w(t)?0:a(t)},__wbg_then_8e16ee11f05e4827:function(t,e){let r=i(t).then(i(e));return a(r)},__wbindgen_cast_0000000000000001:function(t,e){let r=wt(t,e,ct);return a(r)},__wbindgen_cast_0000000000000002:function(t){return a(t)},__wbindgen_cast_0000000000000003:function(t,e){let r=S(t,e);return a(r)},__wbindgen_object_clone_ref:function(t){let e=i(t);return a(e)},__wbindgen_object_drop_ref:function(t){d(t)}}}}function ct(n,t,e){try{let s=_.__wbindgen_add_to_stack_pointer(-16);_.__wasm_bindgen_func_elem_726(s,n,t,a(e));var r=p().getInt32(s+0,!0),o=p().getInt32(s+4,!0);if(o)throw d(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function at(n,t,e,r){_.__wasm_bindgen_func_elem_1016(n,t,a(e),a(r))}var ut=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_conversionoptions_free(n>>>0,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_runoptions_free(n>>>0,1));function a(n){I===m.length&&m.push(m.length+1);let t=I;return I=m[t],m[t]=n,t}function dt(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}var P=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbindgen_export4(n.a,n.b));function T(n){let t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){let o=n.description;return o==null?"Symbol":`Symbol(${o})`}if(t=="function"){let o=n.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(n)){let o=n.length,s="[";o>0&&(s+=T(n[0]));for(let c=1;c<o;c++)s+=", "+T(n[c]);return s+="]",s}let e=/\[object ([^\]]+)\]/.exec(toString.call(n)),r;if(e&&e.length>1)r=e[1];else return toString.call(n);if(r=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
2
- ${n.stack}`:r}function gt(n){n<1028||(m[n]=I,I=n)}function bt(n,t){return n=n>>>0,F().subarray(n/1,n/1+t)}var x=null;function p(){return(x===null||x.buffer.detached===!0||x.buffer.detached===void 0&&x.buffer!==_.memory.buffer)&&(x=new DataView(_.memory.buffer)),x}function S(n,t){return n=n>>>0,pt(n,t)}var H=null;function F(){return(H===null||H.byteLength===0)&&(H=new Uint8Array(_.memory.buffer)),H}function i(n){return m[n]}function lt(n,t){try{return n.apply(this,t)}catch(e){_.__wbindgen_export3(a(e))}}var m=new Array(1024).fill(void 0);m.push(void 0,null,!0,!1);var I=m.length;function w(n){return n==null}function wt(n,t,e){let r={a:n,b:t,cnt:1},o=(...s)=>{r.cnt++;let c=r.a;r.a=0;try{return e(c,r.b,...s)}finally{r.a=c,o._wbg_cb_unref()}};return o._wbg_cb_unref=()=>{--r.cnt===0&&(_.__wbindgen_export4(r.a,r.b),r.a=0,P.unregister(r))},P.register(o,r,r),o}function g(n,t,e){if(e===void 0){let b=k.encode(n),y=t(b.length,1)>>>0;return F().subarray(y,y+b.length).set(b),u=b.length,y}let r=n.length,o=t(r,1)>>>0,s=F(),c=0;for(;c<r;c++){let b=n.charCodeAt(c);if(b>127)break;s[o+c]=b}if(c!==r){c!==0&&(n=n.slice(c)),o=e(o,r,r=c+n.length*3,1)>>>0;let b=F().subarray(o+c,o+r),y=k.encodeInto(n,b);c+=y.written,o=e(o,r,c,1)>>>0}return u=c,o}function d(n){let t=i(n);return gt(n),t}var V=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});V.decode();function pt(n,t){return V.decode(F().subarray(n,n+t))}var k=new TextEncoder;"encodeInto"in k||(k.encodeInto=function(n,t){let e=k.encode(n);return t.set(e),{read:n.length,written:e.length}});var u=0,mt=`${__dirname}/mq_wasm_bg.wasm`,yt=require("fs").readFileSync(mt),ht=new WebAssembly.Module(yt),_=new WebAssembly.Instance(ht,st()).exports});var xt={};K(xt,{definedValues:()=>C,diagnostics:()=>U,format:()=>E,htmlToMarkdown:()=>W,inlayHints:()=>q,run:()=>v,toAst:()=>R,toHtml:()=>L});module.exports=X(xt);var f=Q(D()),h={run:f.run,toAst:f.toAst,format:f.format,diagnostics:f.diagnostics,inlayHints:f.inlayHints,definedValues:f.definedValues,htmlToMarkdown:f.htmlToMarkdown,toHtml:f.toHtml};async function v(n,t,e={}){return await h.run(n,t,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...e})}async function R(n){return await h.toAst(n)}async function E(n){return await h.format(n)}async function U(n,t){return await h.diagnostics(n,t)}async function q(n){return await h.inlayHints(n)}async function C(n,t){return await h.definedValues(n,t)}async function W(n,t){return await h.htmlToMarkdown(n,t)}async function L(n){return await h.toHtml(n)}0&&(module.exports={definedValues,diagnostics,format,htmlToMarkdown,inlayHints,run,toAst,toHtml});
1
+ "use strict";var L=Object.create;var M=Object.defineProperty;var $=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var N=Object.getPrototypeOf,G=Object.prototype.hasOwnProperty;var J=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports),K=(n,t)=>{for(var e in t)M(n,e,{get:t[e],enumerable:!0})},j=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of B(t))!G.call(n,o)&&o!==e&&M(n,o,{get:()=>t[o],enumerable:!(r=$(t,o))||r.enumerable});return n};var Q=(n,t,e)=>(e=n!=null?L(N(n)):{},j(t||!n||!n.__esModule?M(e,"default",{value:n,enumerable:!0}):e,n)),X=n=>j(M({},"__esModule",{value:!0}),n);var D=J(l=>{"use strict";var A=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,ut.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_conversionoptions_free(t,0)}get extract_scripts_as_code_blocks(){return _.__wbg_get_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr)!==0}get generate_front_matter(){return _.__wbg_get_conversionoptions_generate_front_matter(this.__wbg_ptr)!==0}get use_title_as_h1(){return _.__wbg_get_conversionoptions_use_title_as_h1(this.__wbg_ptr)!==0}set extract_scripts_as_code_blocks(t){_.__wbg_set_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr,t)}set generate_front_matter(t){_.__wbg_set_conversionoptions_generate_front_matter(this.__wbg_ptr,t)}set use_title_as_h1(t){_.__wbg_set_conversionoptions_use_title_as_h1(this.__wbg_ptr,t)}};Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);l.ConversionOptions=A;var O=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_runoptions_free(t,0)}};Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);l.RunOptions=O;function Y(n,t){let e=g(n,_.__wbindgen_export,_.__wbindgen_export2),r=u;var o=w(t)?0:g(t,_.__wbindgen_export,_.__wbindgen_export2),s=u;let c=_.definedValues(e,r,o,s);return d(c)}l.definedValues=Y;function Z(n,t){let e=g(n,_.__wbindgen_export,_.__wbindgen_export2),r=u,o=_.diagnostics(e,r,w(t)?16777215:t?1:0);return d(o)}l.diagnostics=Z;function tt(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.format(t,e);return d(r)}l.format=tt;function nt(n,t,e){let r=g(n,_.__wbindgen_export,_.__wbindgen_export2),o=u,s=_.hover(r,o,t,e);return d(s)}l.hover=nt;function et(n,t){let e=g(n,_.__wbindgen_export,_.__wbindgen_export2),r=u,o=0;w(t)||(dt(t,A),o=t.__destroy_into_raw());let s=_.htmlToMarkdown(e,r,o);return d(s)}l.htmlToMarkdown=et;function rt(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.inlayHints(t,e);return d(r)}l.inlayHints=rt;function ot(n,t,e){let r=g(n,_.__wbindgen_export,_.__wbindgen_export2),o=u,s=g(t,_.__wbindgen_export,_.__wbindgen_export2),c=u,b=_.run(r,o,s,c,a(e));return d(b)}l.run=ot;function _t(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.toAst(t,e);return d(r)}l.toAst=_t;function it(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.toHtml(t,e);return d(r)}l.toHtml=it;function st(){return{__proto__:null,"./mq_wasm_bg.js":{__proto__:null,__wbg_Error_960c155d3d49e4c2:function(t,e){let r=Error(H(t,e));return a(r)},__wbg_String_8564e559799eccda:function(t,e){let r=String(i(e)),o=g(r,_.__wbindgen_export,_.__wbindgen_export2),s=u;p().setInt32(t+4,s,!0),p().setInt32(t+0,o,!0)},__wbg___wbindgen_boolean_get_6ea149f0a8dcc5ff:function(t){let e=i(t),r=typeof e=="boolean"?e:void 0;return w(r)?16777215:r?1:0},__wbg___wbindgen_debug_string_ab4b34d23d6778bd:function(t,e){let r=S(i(e)),o=g(r,_.__wbindgen_export,_.__wbindgen_export2),s=u;p().setInt32(t+4,s,!0),p().setInt32(t+0,o,!0)},__wbg___wbindgen_in_a5d8b22e52b24dd1:function(t,e){return i(t)in i(e)},__wbg___wbindgen_is_function_3baa9db1a987f47d:function(t){return typeof i(t)=="function"},__wbg___wbindgen_is_object_63322ec0cd6ea4ef:function(t){let e=i(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_6df3bf7ef1164ed3:function(t){return typeof i(t)=="string"},__wbg___wbindgen_is_undefined_29a43b4d42920abd:function(t){return i(t)===void 0},__wbg___wbindgen_jsval_loose_eq_cac3565e89b4134c:function(t,e){return i(t)==i(e)},__wbg___wbindgen_number_get_c7f42aed0525c451:function(t,e){let r=i(e),o=typeof r=="number"?r:void 0;p().setFloat64(t+8,w(o)?0:o,!0),p().setInt32(t+0,!w(o),!0)},__wbg___wbindgen_string_get_7ed5322991caaec5:function(t,e){let r=i(e),o=typeof r=="string"?r:void 0;var s=w(o)?0:g(o,_.__wbindgen_export,_.__wbindgen_export2),c=u;p().setInt32(t+4,c,!0),p().setInt32(t+0,s,!0)},__wbg___wbindgen_throw_6b64449b9b9ed33c:function(t,e){throw new Error(H(t,e))},__wbg__wbg_cb_unref_b46c9b5a9f08ec37:function(t){i(t)._wbg_cb_unref()},__wbg_call_a24592a6f349a97e:function(){return lt(function(t,e,r){let o=i(t).call(i(e),i(r));return a(o)},arguments)},__wbg_entries_e0b73aa8571ddb56:function(t){let e=Object.entries(i(t));return a(e)},__wbg_getTimezoneOffset_31f57a5389d0d57c:function(t){return i(t).getTimezoneOffset()},__wbg_get_8360291721e2339f:function(t,e){let r=i(t)[e>>>0];return a(r)},__wbg_get_with_ref_key_6412cf3094599694:function(t,e){let r=i(t)[i(e)];return a(r)},__wbg_instanceof_ArrayBuffer_7c8433c6ed14ffe3:function(t){let e;try{e=i(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Uint8Array_152ba1f289edcf3f:function(t){let e;try{e=i(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_length_3d4ecd04bd8d22f1:function(t){return i(t).length},__wbg_length_9f1775224cf1d815:function(t){return i(t).length},__wbg_new_0c7403db6e782f19:function(t){let e=new Uint8Array(i(t));return a(e)},__wbg_new_682678e2f47e32bc:function(){let t=new Array;return a(t)},__wbg_new_7913666fe5070684:function(t){let e=new Date(i(t));return a(e)},__wbg_new_aa8d0fa9762c29bd:function(){let t=new Object;return a(t)},__wbg_new_typed_323f37fd55ab048d:function(t,e){try{var r={a:t,b:e},o=(c,b)=>{let y=r.a;r.a=0;try{return at(y,r.b,c,b)}finally{r.a=y}};let s=new Promise(o);return a(s)}finally{r.a=0}},__wbg_prototypesetcall_a6b02eb00b0f4ce2:function(t,e,r){Uint8Array.prototype.set.call(bt(t,e),i(r))},__wbg_queueMicrotask_5d15a957e6aa920e:function(t){queueMicrotask(i(t))},__wbg_queueMicrotask_f8819e5ffc402f36:function(t){let e=i(t).queueMicrotask;return a(e)},__wbg_resolve_e6c466bc1052f16c:function(t){let e=Promise.resolve(i(t));return a(e)},__wbg_set_3bf1de9fab0cd644:function(t,e,r){i(t)[e>>>0]=d(r)},__wbg_set_6be42768c690e380:function(t,e,r){i(t)[d(e)]=d(r)},__wbg_static_accessor_GLOBAL_8cfadc87a297ca02:function(){let t=typeof global>"u"?null:global;return w(t)?0:a(t)},__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf:function(){let t=typeof globalThis>"u"?null:globalThis;return w(t)?0:a(t)},__wbg_static_accessor_SELF_e445c1c7484aecc3:function(){let t=typeof self>"u"?null:self;return w(t)?0:a(t)},__wbg_static_accessor_WINDOW_f20e8576ef1e0f17:function(){let t=typeof window>"u"?null:window;return w(t)?0:a(t)},__wbg_then_8e16ee11f05e4827:function(t,e){let r=i(t).then(i(e));return a(r)},__wbindgen_cast_0000000000000001:function(t,e){let r=wt(t,e,ct);return a(r)},__wbindgen_cast_0000000000000002:function(t){return a(t)},__wbindgen_cast_0000000000000003:function(t,e){let r=H(t,e);return a(r)},__wbindgen_object_clone_ref:function(t){let e=i(t);return a(e)},__wbindgen_object_drop_ref:function(t){d(t)}}}}function ct(n,t,e){try{let s=_.__wbindgen_add_to_stack_pointer(-16);_.__wasm_bindgen_func_elem_1070(s,n,t,a(e));var r=p().getInt32(s+0,!0),o=p().getInt32(s+4,!0);if(o)throw d(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function at(n,t,e,r){_.__wasm_bindgen_func_elem_1360(n,t,a(e),a(r))}var ut=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_conversionoptions_free(n>>>0,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_runoptions_free(n>>>0,1));function a(n){I===m.length&&m.push(m.length+1);let t=I;return I=m[t],m[t]=n,t}function dt(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}var P=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbindgen_export4(n.a,n.b));function S(n){let t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){let o=n.description;return o==null?"Symbol":`Symbol(${o})`}if(t=="function"){let o=n.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(n)){let o=n.length,s="[";o>0&&(s+=S(n[0]));for(let c=1;c<o;c++)s+=", "+S(n[c]);return s+="]",s}let e=/\[object ([^\]]+)\]/.exec(toString.call(n)),r;if(e&&e.length>1)r=e[1];else return toString.call(n);if(r=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
2
+ ${n.stack}`:r}function gt(n){n<1028||(m[n]=I,I=n)}function bt(n,t){return n=n>>>0,F().subarray(n/1,n/1+t)}var x=null;function p(){return(x===null||x.buffer.detached===!0||x.buffer.detached===void 0&&x.buffer!==_.memory.buffer)&&(x=new DataView(_.memory.buffer)),x}function H(n,t){return n=n>>>0,pt(n,t)}var T=null;function F(){return(T===null||T.byteLength===0)&&(T=new Uint8Array(_.memory.buffer)),T}function i(n){return m[n]}function lt(n,t){try{return n.apply(this,t)}catch(e){_.__wbindgen_export3(a(e))}}var m=new Array(1024).fill(void 0);m.push(void 0,null,!0,!1);var I=m.length;function w(n){return n==null}function wt(n,t,e){let r={a:n,b:t,cnt:1},o=(...s)=>{r.cnt++;let c=r.a;r.a=0;try{return e(c,r.b,...s)}finally{r.a=c,o._wbg_cb_unref()}};return o._wbg_cb_unref=()=>{--r.cnt===0&&(_.__wbindgen_export4(r.a,r.b),r.a=0,P.unregister(r))},P.register(o,r,r),o}function g(n,t,e){if(e===void 0){let b=k.encode(n),y=t(b.length,1)>>>0;return F().subarray(y,y+b.length).set(b),u=b.length,y}let r=n.length,o=t(r,1)>>>0,s=F(),c=0;for(;c<r;c++){let b=n.charCodeAt(c);if(b>127)break;s[o+c]=b}if(c!==r){c!==0&&(n=n.slice(c)),o=e(o,r,r=c+n.length*3,1)>>>0;let b=F().subarray(o+c,o+r),y=k.encodeInto(n,b);c+=y.written,o=e(o,r,c,1)>>>0}return u=c,o}function d(n){let t=i(n);return gt(n),t}var V=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});V.decode();function pt(n,t){return V.decode(F().subarray(n,n+t))}var k=new TextEncoder;"encodeInto"in k||(k.encodeInto=function(n,t){let e=k.encode(n);return t.set(e),{read:n.length,written:e.length}});var u=0,mt=`${__dirname}/mq_wasm_bg.wasm`,yt=require("fs").readFileSync(mt),ht=new WebAssembly.Module(yt),_=new WebAssembly.Instance(ht,st()).exports});var xt={};K(xt,{definedValues:()=>z,diagnostics:()=>U,format:()=>E,htmlToMarkdown:()=>C,inlayHints:()=>q,run:()=>v,toAst:()=>R,toHtml:()=>W});module.exports=X(xt);var f=Q(D()),h={run:f.run,toAst:f.toAst,format:f.format,diagnostics:f.diagnostics,inlayHints:f.inlayHints,definedValues:f.definedValues,htmlToMarkdown:f.htmlToMarkdown,toHtml:f.toHtml};async function v(n,t,e={}){return await h.run(n,t,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...e})}async function R(n){return await h.toAst(n)}async function E(n){return await h.format(n)}async function U(n,t){return await h.diagnostics(n,t)}async function q(n){return await h.inlayHints(n)}async function z(n,t){return await h.definedValues(n,t)}async function C(n,t){return await h.htmlToMarkdown(n,t)}async function W(n){return await h.toHtml(n)}0&&(module.exports={definedValues,diagnostics,format,htmlToMarkdown,inlayHints,run,toAst,toHtml});
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- var D=Object.create;var T=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty;var q=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(t,e)=>(typeof require<"u"?require:t)[e]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var C=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports);var W=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of R(t))!U.call(n,o)&&o!==e&&T(n,o,{get:()=>t[o],enumerable:!(r=v(t,o))||r.enumerable});return n};var L=(n,t,e)=>(e=n!=null?D(E(n)):{},W(t||!n||!n.__esModule?T(e,"default",{value:n,enumerable:!0}):e,n));var V=C(l=>{"use strict";var A=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,nt.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_conversionoptions_free(t,0)}get extract_scripts_as_code_blocks(){return _.__wbg_get_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr)!==0}get generate_front_matter(){return _.__wbg_get_conversionoptions_generate_front_matter(this.__wbg_ptr)!==0}get use_title_as_h1(){return _.__wbg_get_conversionoptions_use_title_as_h1(this.__wbg_ptr)!==0}set extract_scripts_as_code_blocks(t){_.__wbg_set_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr,t)}set generate_front_matter(t){_.__wbg_set_conversionoptions_generate_front_matter(this.__wbg_ptr,t)}set use_title_as_h1(t){_.__wbg_set_conversionoptions_use_title_as_h1(this.__wbg_ptr,t)}};Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);l.ConversionOptions=A;var M=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,et.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_runoptions_free(t,0)}};Symbol.dispose&&(M.prototype[Symbol.dispose]=M.prototype.free);l.RunOptions=M;function $(n,t){let e=g(n,_.__wbindgen_export,_.__wbindgen_export2),r=u;var o=w(t)?0:g(t,_.__wbindgen_export,_.__wbindgen_export2),s=u;let c=_.definedValues(e,r,o,s);return d(c)}l.definedValues=$;function z(n,t){let e=g(n,_.__wbindgen_export,_.__wbindgen_export2),r=u,o=_.diagnostics(e,r,w(t)?16777215:t?1:0);return d(o)}l.diagnostics=z;function B(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.format(t,e);return d(r)}l.format=B;function N(n,t,e){let r=g(n,_.__wbindgen_export,_.__wbindgen_export2),o=u,s=_.hover(r,o,t,e);return d(s)}l.hover=N;function G(n,t){let e=g(n,_.__wbindgen_export,_.__wbindgen_export2),r=u,o=0;w(t)||(rt(t,A),o=t.__destroy_into_raw());let s=_.htmlToMarkdown(e,r,o);return d(s)}l.htmlToMarkdown=G;function J(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.inlayHints(t,e);return d(r)}l.inlayHints=J;function K(n,t,e){let r=g(n,_.__wbindgen_export,_.__wbindgen_export2),o=u,s=g(t,_.__wbindgen_export,_.__wbindgen_export2),c=u,b=_.run(r,o,s,c,a(e));return d(b)}l.run=K;function Q(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.toAst(t,e);return d(r)}l.toAst=Q;function X(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.toHtml(t,e);return d(r)}l.toHtml=X;function Y(){return{__proto__:null,"./mq_wasm_bg.js":{__proto__:null,__wbg_Error_960c155d3d49e4c2:function(t,e){let r=Error(H(t,e));return a(r)},__wbg_String_8564e559799eccda:function(t,e){let r=String(i(e)),o=g(r,_.__wbindgen_export,_.__wbindgen_export2),s=u;p().setInt32(t+4,s,!0),p().setInt32(t+0,o,!0)},__wbg___wbindgen_boolean_get_6ea149f0a8dcc5ff:function(t){let e=i(t),r=typeof e=="boolean"?e:void 0;return w(r)?16777215:r?1:0},__wbg___wbindgen_debug_string_ab4b34d23d6778bd:function(t,e){let r=S(i(e)),o=g(r,_.__wbindgen_export,_.__wbindgen_export2),s=u;p().setInt32(t+4,s,!0),p().setInt32(t+0,o,!0)},__wbg___wbindgen_in_a5d8b22e52b24dd1:function(t,e){return i(t)in i(e)},__wbg___wbindgen_is_function_3baa9db1a987f47d:function(t){return typeof i(t)=="function"},__wbg___wbindgen_is_object_63322ec0cd6ea4ef:function(t){let e=i(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_6df3bf7ef1164ed3:function(t){return typeof i(t)=="string"},__wbg___wbindgen_is_undefined_29a43b4d42920abd:function(t){return i(t)===void 0},__wbg___wbindgen_jsval_loose_eq_cac3565e89b4134c:function(t,e){return i(t)==i(e)},__wbg___wbindgen_number_get_c7f42aed0525c451:function(t,e){let r=i(e),o=typeof r=="number"?r:void 0;p().setFloat64(t+8,w(o)?0:o,!0),p().setInt32(t+0,!w(o),!0)},__wbg___wbindgen_string_get_7ed5322991caaec5:function(t,e){let r=i(e),o=typeof r=="string"?r:void 0;var s=w(o)?0:g(o,_.__wbindgen_export,_.__wbindgen_export2),c=u;p().setInt32(t+4,c,!0),p().setInt32(t+0,s,!0)},__wbg___wbindgen_throw_6b64449b9b9ed33c:function(t,e){throw new Error(H(t,e))},__wbg__wbg_cb_unref_b46c9b5a9f08ec37:function(t){i(t)._wbg_cb_unref()},__wbg_call_a24592a6f349a97e:function(){return it(function(t,e,r){let o=i(t).call(i(e),i(r));return a(o)},arguments)},__wbg_entries_e0b73aa8571ddb56:function(t){let e=Object.entries(i(t));return a(e)},__wbg_get_8360291721e2339f:function(t,e){let r=i(t)[e>>>0];return a(r)},__wbg_get_with_ref_key_6412cf3094599694:function(t,e){let r=i(t)[i(e)];return a(r)},__wbg_instanceof_ArrayBuffer_7c8433c6ed14ffe3:function(t){let e;try{e=i(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Uint8Array_152ba1f289edcf3f:function(t){let e;try{e=i(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_length_3d4ecd04bd8d22f1:function(t){return i(t).length},__wbg_length_9f1775224cf1d815:function(t){return i(t).length},__wbg_new_0c7403db6e782f19:function(t){let e=new Uint8Array(i(t));return a(e)},__wbg_new_682678e2f47e32bc:function(){let t=new Array;return a(t)},__wbg_new_aa8d0fa9762c29bd:function(){let t=new Object;return a(t)},__wbg_new_typed_323f37fd55ab048d:function(t,e){try{var r={a:t,b:e},o=(c,b)=>{let y=r.a;r.a=0;try{return tt(y,r.b,c,b)}finally{r.a=y}};let s=new Promise(o);return a(s)}finally{r.a=0}},__wbg_prototypesetcall_a6b02eb00b0f4ce2:function(t,e,r){Uint8Array.prototype.set.call(_t(t,e),i(r))},__wbg_queueMicrotask_5d15a957e6aa920e:function(t){queueMicrotask(i(t))},__wbg_queueMicrotask_f8819e5ffc402f36:function(t){let e=i(t).queueMicrotask;return a(e)},__wbg_resolve_e6c466bc1052f16c:function(t){let e=Promise.resolve(i(t));return a(e)},__wbg_set_3bf1de9fab0cd644:function(t,e,r){i(t)[e>>>0]=d(r)},__wbg_set_6be42768c690e380:function(t,e,r){i(t)[d(e)]=d(r)},__wbg_static_accessor_GLOBAL_8cfadc87a297ca02:function(){let t=typeof global>"u"?null:global;return w(t)?0:a(t)},__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf:function(){let t=typeof globalThis>"u"?null:globalThis;return w(t)?0:a(t)},__wbg_static_accessor_SELF_e445c1c7484aecc3:function(){let t=typeof self>"u"?null:self;return w(t)?0:a(t)},__wbg_static_accessor_WINDOW_f20e8576ef1e0f17:function(){let t=typeof window>"u"?null:window;return w(t)?0:a(t)},__wbg_then_8e16ee11f05e4827:function(t,e){let r=i(t).then(i(e));return a(r)},__wbindgen_cast_0000000000000001:function(t,e){let r=st(t,e,Z);return a(r)},__wbindgen_cast_0000000000000002:function(t){return a(t)},__wbindgen_cast_0000000000000003:function(t,e){let r=H(t,e);return a(r)},__wbindgen_object_clone_ref:function(t){let e=i(t);return a(e)},__wbindgen_object_drop_ref:function(t){d(t)}}}}function Z(n,t,e){try{let s=_.__wbindgen_add_to_stack_pointer(-16);_.__wasm_bindgen_func_elem_726(s,n,t,a(e));var r=p().getInt32(s+0,!0),o=p().getInt32(s+4,!0);if(o)throw d(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function tt(n,t,e,r){_.__wasm_bindgen_func_elem_1016(n,t,a(e),a(r))}var nt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_conversionoptions_free(n>>>0,1)),et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_runoptions_free(n>>>0,1));function a(n){I===m.length&&m.push(m.length+1);let t=I;return I=m[t],m[t]=n,t}function rt(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}var j=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbindgen_export4(n.a,n.b));function S(n){let t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){let o=n.description;return o==null?"Symbol":`Symbol(${o})`}if(t=="function"){let o=n.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(n)){let o=n.length,s="[";o>0&&(s+=S(n[0]));for(let c=1;c<o;c++)s+=", "+S(n[c]);return s+="]",s}let e=/\[object ([^\]]+)\]/.exec(toString.call(n)),r;if(e&&e.length>1)r=e[1];else return toString.call(n);if(r=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
2
- ${n.stack}`:r}function ot(n){n<1028||(m[n]=I,I=n)}function _t(n,t){return n=n>>>0,F().subarray(n/1,n/1+t)}var x=null;function p(){return(x===null||x.buffer.detached===!0||x.buffer.detached===void 0&&x.buffer!==_.memory.buffer)&&(x=new DataView(_.memory.buffer)),x}function H(n,t){return n=n>>>0,ct(n,t)}var O=null;function F(){return(O===null||O.byteLength===0)&&(O=new Uint8Array(_.memory.buffer)),O}function i(n){return m[n]}function it(n,t){try{return n.apply(this,t)}catch(e){_.__wbindgen_export3(a(e))}}var m=new Array(1024).fill(void 0);m.push(void 0,null,!0,!1);var I=m.length;function w(n){return n==null}function st(n,t,e){let r={a:n,b:t,cnt:1},o=(...s)=>{r.cnt++;let c=r.a;r.a=0;try{return e(c,r.b,...s)}finally{r.a=c,o._wbg_cb_unref()}};return o._wbg_cb_unref=()=>{--r.cnt===0&&(_.__wbindgen_export4(r.a,r.b),r.a=0,j.unregister(r))},j.register(o,r,r),o}function g(n,t,e){if(e===void 0){let b=k.encode(n),y=t(b.length,1)>>>0;return F().subarray(y,y+b.length).set(b),u=b.length,y}let r=n.length,o=t(r,1)>>>0,s=F(),c=0;for(;c<r;c++){let b=n.charCodeAt(c);if(b>127)break;s[o+c]=b}if(c!==r){c!==0&&(n=n.slice(c)),o=e(o,r,r=c+n.length*3,1)>>>0;let b=F().subarray(o+c,o+r),y=k.encodeInto(n,b);c+=y.written,o=e(o,r,c,1)>>>0}return u=c,o}function d(n){let t=i(n);return ot(n),t}var P=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});P.decode();function ct(n,t){return P.decode(F().subarray(n,n+t))}var k=new TextEncoder;"encodeInto"in k||(k.encodeInto=function(n,t){let e=k.encode(n);return t.set(e),{read:n.length,written:e.length}});var u=0,at=`${__dirname}/mq_wasm_bg.wasm`,ut=q("fs").readFileSync(at),ft=new WebAssembly.Module(ut),_=new WebAssembly.Instance(ft,Y()).exports});var f=L(V()),h={run:f.run,toAst:f.toAst,format:f.format,diagnostics:f.diagnostics,inlayHints:f.inlayHints,definedValues:f.definedValues,htmlToMarkdown:f.htmlToMarkdown,toHtml:f.toHtml};async function dt(n,t,e={}){return await h.run(n,t,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...e})}async function gt(n){return await h.toAst(n)}async function bt(n){return await h.format(n)}async function lt(n,t){return await h.diagnostics(n,t)}async function wt(n){return await h.inlayHints(n)}async function pt(n,t){return await h.definedValues(n,t)}async function mt(n,t){return await h.htmlToMarkdown(n,t)}async function yt(n){return await h.toHtml(n)}export{pt as definedValues,lt as diagnostics,bt as format,mt as htmlToMarkdown,wt as inlayHints,dt as run,gt as toAst,yt as toHtml};
1
+ var D=Object.create;var S=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty;var q=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(t,e)=>(typeof require<"u"?require:t)[e]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var z=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports);var C=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of R(t))!U.call(n,o)&&o!==e&&S(n,o,{get:()=>t[o],enumerable:!(r=v(t,o))||r.enumerable});return n};var W=(n,t,e)=>(e=n!=null?D(E(n)):{},C(t||!n||!n.__esModule?S(e,"default",{value:n,enumerable:!0}):e,n));var V=z(l=>{"use strict";var A=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,nt.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_conversionoptions_free(t,0)}get extract_scripts_as_code_blocks(){return _.__wbg_get_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr)!==0}get generate_front_matter(){return _.__wbg_get_conversionoptions_generate_front_matter(this.__wbg_ptr)!==0}get use_title_as_h1(){return _.__wbg_get_conversionoptions_use_title_as_h1(this.__wbg_ptr)!==0}set extract_scripts_as_code_blocks(t){_.__wbg_set_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr,t)}set generate_front_matter(t){_.__wbg_set_conversionoptions_generate_front_matter(this.__wbg_ptr,t)}set use_title_as_h1(t){_.__wbg_set_conversionoptions_use_title_as_h1(this.__wbg_ptr,t)}};Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);l.ConversionOptions=A;var O=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,et.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_runoptions_free(t,0)}};Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);l.RunOptions=O;function L(n,t){let e=g(n,_.__wbindgen_export,_.__wbindgen_export2),r=u;var o=w(t)?0:g(t,_.__wbindgen_export,_.__wbindgen_export2),s=u;let c=_.definedValues(e,r,o,s);return d(c)}l.definedValues=L;function $(n,t){let e=g(n,_.__wbindgen_export,_.__wbindgen_export2),r=u,o=_.diagnostics(e,r,w(t)?16777215:t?1:0);return d(o)}l.diagnostics=$;function B(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.format(t,e);return d(r)}l.format=B;function N(n,t,e){let r=g(n,_.__wbindgen_export,_.__wbindgen_export2),o=u,s=_.hover(r,o,t,e);return d(s)}l.hover=N;function G(n,t){let e=g(n,_.__wbindgen_export,_.__wbindgen_export2),r=u,o=0;w(t)||(rt(t,A),o=t.__destroy_into_raw());let s=_.htmlToMarkdown(e,r,o);return d(s)}l.htmlToMarkdown=G;function J(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.inlayHints(t,e);return d(r)}l.inlayHints=J;function K(n,t,e){let r=g(n,_.__wbindgen_export,_.__wbindgen_export2),o=u,s=g(t,_.__wbindgen_export,_.__wbindgen_export2),c=u,b=_.run(r,o,s,c,a(e));return d(b)}l.run=K;function Q(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.toAst(t,e);return d(r)}l.toAst=Q;function X(n){let t=g(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.toHtml(t,e);return d(r)}l.toHtml=X;function Y(){return{__proto__:null,"./mq_wasm_bg.js":{__proto__:null,__wbg_Error_960c155d3d49e4c2:function(t,e){let r=Error(T(t,e));return a(r)},__wbg_String_8564e559799eccda:function(t,e){let r=String(i(e)),o=g(r,_.__wbindgen_export,_.__wbindgen_export2),s=u;p().setInt32(t+4,s,!0),p().setInt32(t+0,o,!0)},__wbg___wbindgen_boolean_get_6ea149f0a8dcc5ff:function(t){let e=i(t),r=typeof e=="boolean"?e:void 0;return w(r)?16777215:r?1:0},__wbg___wbindgen_debug_string_ab4b34d23d6778bd:function(t,e){let r=H(i(e)),o=g(r,_.__wbindgen_export,_.__wbindgen_export2),s=u;p().setInt32(t+4,s,!0),p().setInt32(t+0,o,!0)},__wbg___wbindgen_in_a5d8b22e52b24dd1:function(t,e){return i(t)in i(e)},__wbg___wbindgen_is_function_3baa9db1a987f47d:function(t){return typeof i(t)=="function"},__wbg___wbindgen_is_object_63322ec0cd6ea4ef:function(t){let e=i(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_6df3bf7ef1164ed3:function(t){return typeof i(t)=="string"},__wbg___wbindgen_is_undefined_29a43b4d42920abd:function(t){return i(t)===void 0},__wbg___wbindgen_jsval_loose_eq_cac3565e89b4134c:function(t,e){return i(t)==i(e)},__wbg___wbindgen_number_get_c7f42aed0525c451:function(t,e){let r=i(e),o=typeof r=="number"?r:void 0;p().setFloat64(t+8,w(o)?0:o,!0),p().setInt32(t+0,!w(o),!0)},__wbg___wbindgen_string_get_7ed5322991caaec5:function(t,e){let r=i(e),o=typeof r=="string"?r:void 0;var s=w(o)?0:g(o,_.__wbindgen_export,_.__wbindgen_export2),c=u;p().setInt32(t+4,c,!0),p().setInt32(t+0,s,!0)},__wbg___wbindgen_throw_6b64449b9b9ed33c:function(t,e){throw new Error(T(t,e))},__wbg__wbg_cb_unref_b46c9b5a9f08ec37:function(t){i(t)._wbg_cb_unref()},__wbg_call_a24592a6f349a97e:function(){return it(function(t,e,r){let o=i(t).call(i(e),i(r));return a(o)},arguments)},__wbg_entries_e0b73aa8571ddb56:function(t){let e=Object.entries(i(t));return a(e)},__wbg_getTimezoneOffset_31f57a5389d0d57c:function(t){return i(t).getTimezoneOffset()},__wbg_get_8360291721e2339f:function(t,e){let r=i(t)[e>>>0];return a(r)},__wbg_get_with_ref_key_6412cf3094599694:function(t,e){let r=i(t)[i(e)];return a(r)},__wbg_instanceof_ArrayBuffer_7c8433c6ed14ffe3:function(t){let e;try{e=i(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Uint8Array_152ba1f289edcf3f:function(t){let e;try{e=i(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_length_3d4ecd04bd8d22f1:function(t){return i(t).length},__wbg_length_9f1775224cf1d815:function(t){return i(t).length},__wbg_new_0c7403db6e782f19:function(t){let e=new Uint8Array(i(t));return a(e)},__wbg_new_682678e2f47e32bc:function(){let t=new Array;return a(t)},__wbg_new_7913666fe5070684:function(t){let e=new Date(i(t));return a(e)},__wbg_new_aa8d0fa9762c29bd:function(){let t=new Object;return a(t)},__wbg_new_typed_323f37fd55ab048d:function(t,e){try{var r={a:t,b:e},o=(c,b)=>{let y=r.a;r.a=0;try{return tt(y,r.b,c,b)}finally{r.a=y}};let s=new Promise(o);return a(s)}finally{r.a=0}},__wbg_prototypesetcall_a6b02eb00b0f4ce2:function(t,e,r){Uint8Array.prototype.set.call(_t(t,e),i(r))},__wbg_queueMicrotask_5d15a957e6aa920e:function(t){queueMicrotask(i(t))},__wbg_queueMicrotask_f8819e5ffc402f36:function(t){let e=i(t).queueMicrotask;return a(e)},__wbg_resolve_e6c466bc1052f16c:function(t){let e=Promise.resolve(i(t));return a(e)},__wbg_set_3bf1de9fab0cd644:function(t,e,r){i(t)[e>>>0]=d(r)},__wbg_set_6be42768c690e380:function(t,e,r){i(t)[d(e)]=d(r)},__wbg_static_accessor_GLOBAL_8cfadc87a297ca02:function(){let t=typeof global>"u"?null:global;return w(t)?0:a(t)},__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf:function(){let t=typeof globalThis>"u"?null:globalThis;return w(t)?0:a(t)},__wbg_static_accessor_SELF_e445c1c7484aecc3:function(){let t=typeof self>"u"?null:self;return w(t)?0:a(t)},__wbg_static_accessor_WINDOW_f20e8576ef1e0f17:function(){let t=typeof window>"u"?null:window;return w(t)?0:a(t)},__wbg_then_8e16ee11f05e4827:function(t,e){let r=i(t).then(i(e));return a(r)},__wbindgen_cast_0000000000000001:function(t,e){let r=st(t,e,Z);return a(r)},__wbindgen_cast_0000000000000002:function(t){return a(t)},__wbindgen_cast_0000000000000003:function(t,e){let r=T(t,e);return a(r)},__wbindgen_object_clone_ref:function(t){let e=i(t);return a(e)},__wbindgen_object_drop_ref:function(t){d(t)}}}}function Z(n,t,e){try{let s=_.__wbindgen_add_to_stack_pointer(-16);_.__wasm_bindgen_func_elem_1070(s,n,t,a(e));var r=p().getInt32(s+0,!0),o=p().getInt32(s+4,!0);if(o)throw d(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function tt(n,t,e,r){_.__wasm_bindgen_func_elem_1360(n,t,a(e),a(r))}var nt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_conversionoptions_free(n>>>0,1)),et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_runoptions_free(n>>>0,1));function a(n){I===m.length&&m.push(m.length+1);let t=I;return I=m[t],m[t]=n,t}function rt(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}var j=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbindgen_export4(n.a,n.b));function H(n){let t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){let o=n.description;return o==null?"Symbol":`Symbol(${o})`}if(t=="function"){let o=n.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(n)){let o=n.length,s="[";o>0&&(s+=H(n[0]));for(let c=1;c<o;c++)s+=", "+H(n[c]);return s+="]",s}let e=/\[object ([^\]]+)\]/.exec(toString.call(n)),r;if(e&&e.length>1)r=e[1];else return toString.call(n);if(r=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
2
+ ${n.stack}`:r}function ot(n){n<1028||(m[n]=I,I=n)}function _t(n,t){return n=n>>>0,F().subarray(n/1,n/1+t)}var x=null;function p(){return(x===null||x.buffer.detached===!0||x.buffer.detached===void 0&&x.buffer!==_.memory.buffer)&&(x=new DataView(_.memory.buffer)),x}function T(n,t){return n=n>>>0,ct(n,t)}var M=null;function F(){return(M===null||M.byteLength===0)&&(M=new Uint8Array(_.memory.buffer)),M}function i(n){return m[n]}function it(n,t){try{return n.apply(this,t)}catch(e){_.__wbindgen_export3(a(e))}}var m=new Array(1024).fill(void 0);m.push(void 0,null,!0,!1);var I=m.length;function w(n){return n==null}function st(n,t,e){let r={a:n,b:t,cnt:1},o=(...s)=>{r.cnt++;let c=r.a;r.a=0;try{return e(c,r.b,...s)}finally{r.a=c,o._wbg_cb_unref()}};return o._wbg_cb_unref=()=>{--r.cnt===0&&(_.__wbindgen_export4(r.a,r.b),r.a=0,j.unregister(r))},j.register(o,r,r),o}function g(n,t,e){if(e===void 0){let b=k.encode(n),y=t(b.length,1)>>>0;return F().subarray(y,y+b.length).set(b),u=b.length,y}let r=n.length,o=t(r,1)>>>0,s=F(),c=0;for(;c<r;c++){let b=n.charCodeAt(c);if(b>127)break;s[o+c]=b}if(c!==r){c!==0&&(n=n.slice(c)),o=e(o,r,r=c+n.length*3,1)>>>0;let b=F().subarray(o+c,o+r),y=k.encodeInto(n,b);c+=y.written,o=e(o,r,c,1)>>>0}return u=c,o}function d(n){let t=i(n);return ot(n),t}var P=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});P.decode();function ct(n,t){return P.decode(F().subarray(n,n+t))}var k=new TextEncoder;"encodeInto"in k||(k.encodeInto=function(n,t){let e=k.encode(n);return t.set(e),{read:n.length,written:e.length}});var u=0,at=`${__dirname}/mq_wasm_bg.wasm`,ut=q("fs").readFileSync(at),ft=new WebAssembly.Module(ut),_=new WebAssembly.Instance(ft,Y()).exports});var f=W(V()),h={run:f.run,toAst:f.toAst,format:f.format,diagnostics:f.diagnostics,inlayHints:f.inlayHints,definedValues:f.definedValues,htmlToMarkdown:f.htmlToMarkdown,toHtml:f.toHtml};async function dt(n,t,e={}){return await h.run(n,t,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...e})}async function gt(n){return await h.toAst(n)}async function bt(n){return await h.format(n)}async function lt(n,t){return await h.diagnostics(n,t)}async function wt(n){return await h.inlayHints(n)}async function pt(n,t){return await h.definedValues(n,t)}async function mt(n,t){return await h.htmlToMarkdown(n,t)}async function yt(n){return await h.toHtml(n)}export{pt as definedValues,lt as diagnostics,bt as format,mt as htmlToMarkdown,wt as inlayHints,dt as run,gt as toAst,yt as toHtml};
package/dist/mq_wasm.js CHANGED
@@ -274,6 +274,10 @@ function __wbg_get_imports() {
274
274
  const ret = Object.entries(getObject(arg0));
275
275
  return addHeapObject(ret);
276
276
  },
277
+ __wbg_getTimezoneOffset_31f57a5389d0d57c: function(arg0) {
278
+ const ret = getObject(arg0).getTimezoneOffset();
279
+ return ret;
280
+ },
277
281
  __wbg_get_8360291721e2339f: function(arg0, arg1) {
278
282
  const ret = getObject(arg0)[arg1 >>> 0];
279
283
  return addHeapObject(ret);
@@ -318,6 +322,10 @@ function __wbg_get_imports() {
318
322
  const ret = new Array();
319
323
  return addHeapObject(ret);
320
324
  },
325
+ __wbg_new_7913666fe5070684: function(arg0) {
326
+ const ret = new Date(getObject(arg0));
327
+ return addHeapObject(ret);
328
+ },
321
329
  __wbg_new_aa8d0fa9762c29bd: function() {
322
330
  const ret = new Object();
323
331
  return addHeapObject(ret);
@@ -329,7 +337,7 @@ function __wbg_get_imports() {
329
337
  const a = state0.a;
330
338
  state0.a = 0;
331
339
  try {
332
- return __wasm_bindgen_func_elem_1016(a, state0.b, arg0, arg1);
340
+ return __wasm_bindgen_func_elem_1360(a, state0.b, arg0, arg1);
333
341
  } finally {
334
342
  state0.a = a;
335
343
  }
@@ -381,8 +389,8 @@ function __wbg_get_imports() {
381
389
  return addHeapObject(ret);
382
390
  },
383
391
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
384
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 93, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
385
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_726);
392
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 161, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
393
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1070);
386
394
  return addHeapObject(ret);
387
395
  },
388
396
  __wbindgen_cast_0000000000000002: function(arg0) {
@@ -409,10 +417,10 @@ function __wbg_get_imports() {
409
417
  };
410
418
  }
411
419
 
412
- function __wasm_bindgen_func_elem_726(arg0, arg1, arg2) {
420
+ function __wasm_bindgen_func_elem_1070(arg0, arg1, arg2) {
413
421
  try {
414
422
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
415
- wasm.__wasm_bindgen_func_elem_726(retptr, arg0, arg1, addHeapObject(arg2));
423
+ wasm.__wasm_bindgen_func_elem_1070(retptr, arg0, arg1, addHeapObject(arg2));
416
424
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
417
425
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
418
426
  if (r1) {
@@ -423,8 +431,8 @@ function __wasm_bindgen_func_elem_726(arg0, arg1, arg2) {
423
431
  }
424
432
  }
425
433
 
426
- function __wasm_bindgen_func_elem_1016(arg0, arg1, arg2, arg3) {
427
- wasm.__wasm_bindgen_func_elem_1016(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
434
+ function __wasm_bindgen_func_elem_1360(arg0, arg1, arg2, arg3) {
435
+ wasm.__wasm_bindgen_func_elem_1360(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
428
436
  }
429
437
 
430
438
  const ConversionOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mq-nodejs",
3
3
  "description": "A jq-like command-line tool for Markdown processing for Node.js",
4
- "version": "0.5.28",
4
+ "version": "0.5.30",
5
5
  "author": "harehare",
6
6
  "license": "MIT",
7
7
  "bugs": {