@topwrite/cli 1.0.23-alpha.1 → 1.0.23-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/ttx.js +1 -1
- package/package.json +4 -4
package/bin/ttx.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
7
7
|
* @license MIT
|
|
8
|
-
*/var Un=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},Vn=Object.prototype.hasOwnProperty,Hn=Object.prototype.toString,Qn=Object.defineProperty,Gn=Object.getOwnPropertyDescriptor,Wn=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Hn.call(e)},Kn=function(e){if(!e||"[object Object]"!==Hn.call(e))return!1;var t,r=Vn.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&Vn.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||Vn.call(e,t)},Jn=function(e,t){Qn&&"__proto__"===t.name?Qn(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Yn=function(e,t){if("__proto__"===t){if(!Vn.call(e,t))return;if(Gn)return Gn(e,t).value}return e[t]},Xn=function e(){var t,r,n,i,a,o,s=arguments[0],c=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[1]||{},c=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});c<u;++c)if(null!=(t=arguments[c]))for(r in t)n=Yn(s,r),s!==(i=Yn(t,r))&&(l&&i&&(Kn(i)||(a=Wn(i)))?(a?(a=!1,o=n&&Wn(n)?n:[]):o=n&&Kn(n)?n:{},Jn(s,{name:r,newValue:e(l,o,i)})):void 0!==i&&Jn(s,{name:r,newValue:i}));return s};function Zn(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function ei(){const e=[],t={run:function(...t){let r=-1;const n=t.pop();if("function"!=typeof n)throw new TypeError("Expected function as last argument, not "+n);!function i(a,...o){const s=e[++r];let c=-1;if(a)n(a);else{for(;++c<t.length;)null!==o[c]&&void 0!==o[c]||(o[c]=t[c]);t=o,s?function(e,t){let r;return n;function n(...t){const n=e.length>t.length;let o;n&&t.push(i);try{o=e(...t)}catch(e){const t=e;if(n&&r)throw t;return i(t)}n||(o instanceof Promise?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...n){r||(r=!0,t(e,...n))}function a(e){i(null,e)}}(s,i)(...o):n(null,...o)}}(null,...t)},use:function(r){if("function"!=typeof r)throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}};return t}var ti={}.hasOwnProperty;function ri(e){return e&&"object"==typeof e?ti.call(e,"position")||ti.call(e,"type")?ii(e.position):ti.call(e,"start")||ti.call(e,"end")?ii(e):ti.call(e,"line")||ti.call(e,"column")?ni(e):"":""}function ni(e){return ai(e&&e.line)+":"+ai(e&&e.column)}function ii(e){return ni(e&&e.start)+"-"+ni(e&&e.end)}function ai(e){return e&&"number"==typeof e?e:1}class oi extends Error{constructor(e,t,r){var n,i=[null,null],a={start:{line:null,column:null},end:{line:null,column:null}};super(),"string"==typeof t&&(r=t,t=null),"string"==typeof r&&(-1===(n=r.indexOf(":"))?i[1]=r:(i[0]=r.slice(0,n),i[1]=r.slice(n+1))),t&&("type"in t||"position"in t?t.position&&(a=t.position):"start"in t||"end"in t?a=t:("line"in t||"column"in t)&&(a.start=t)),this.name=ri(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="object"==typeof e?e.stack:"",this.reason=this.message,this.line=a.start.line,this.column=a.start.column,this.source=i[0],this.ruleId=i[1],this.position=a,this.file,this.fatal,this.url,this.note}}oi.prototype.file="",oi.prototype.name="",oi.prototype.reason="",oi.prototype.message="",oi.prototype.stack="",oi.prototype.fatal=null,oi.prototype.column=null,oi.prototype.line=null,oi.prototype.source=null,oi.prototype.ruleId=null,oi.prototype.position=null;const si=z.default;function ci(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}const ui=["history","path","basename","stem","extname","dirname"];class li{constructor(e){let t;t=e?"string"==typeof e||Un(e)?{value:e}:ci(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=si.cwd(),this.value,this.stored,this.result,this.map;let r,n=-1;for(;++n<ui.length;){const e=ui[n];e in t&&void 0!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(r in t)ui.includes(r)||(this[r]=t[r])}get path(){return this.history[this.history.length-1]}set path(e){ci(e)&&(e=o.fileURLToPath(e)),hi(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?j.default.dirname(this.path):void 0}set dirname(e){pi(this.basename,"dirname"),this.path=j.default.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?j.default.basename(this.path):void 0}set basename(e){hi(e,"basename"),fi(e,"basename"),this.path=j.default.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?j.default.extname(this.path):void 0}set extname(e){if(fi(e,"extname"),pi(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=j.default.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?j.default.basename(this.path,this.extname):void 0}set stem(e){hi(e,"stem"),fi(e,"stem"),this.path=j.default.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e)}message(e,t,r){const n=new oi(e,t,r);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}info(e,t,r){const n=this.message(e,t,r);return n.fatal=null,n}fail(e,t,r){const n=this.message(e,t,r);throw n.fatal=!0,n}}function fi(e,t){if(e&&e.includes(j.default.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+j.default.sep+"`")}function hi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function pi(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const di=function e(){const t=ei(),r=[];let n,i={},a=-1;return o.data=function(e,t){if("string"==typeof e)return 2===arguments.length?(bi("data",n),i[e]=t,o):mi.call(i,e)&&i[e]||null;if(e)return bi("data",n),i=e,o;return i},o.Parser=void 0,o.Compiler=void 0,o.freeze=function(){if(n)return o;for(;++a<r.length;){const[e,...n]=r[a];if(!1===n[0])continue;!0===n[0]&&(n[1]=void 0);const i=e.call(o,...n);"function"==typeof i&&t.use(i)}return n=!0,a=Number.POSITIVE_INFINITY,o},o.attachers=r,o.use=function(e,...t){let a;if(bi("use",n),null==e);else if("function"==typeof e)l(e,...t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?u(e):c(e)}a&&(i.settings=Object.assign(i.settings||{},a));return o;function s(e){if("function"==typeof e)l(e);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...r]=e;l(t,...r)}else c(e)}}function c(e){u(e.plugins),e.settings&&(a=Object.assign(a||{},e.settings))}function u(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){s(e[t])}}}function l(e,t){let n,i=-1;for(;++i<r.length;)if(r[i][0]===e){n=r[i];break}n?(Zn(n[1])&&Zn(t)&&(t=Xn(!0,n[1],t)),n[1]=t):r.push([...arguments])}},o.parse=function(e){o.freeze();const t=ki(e),r=o.Parser;if(vi("parse",r),gi(r,"parse"))return new r(String(t),t).parse();return r(String(t),t)},o.stringify=function(e,t){o.freeze();const r=ki(t),n=o.Compiler;if(yi("stringify",n),wi(e),gi(n,"compile"))return new n(e,r).compile();return n(e,r)},o.run=function(e,r,n){wi(e),o.freeze(),n||"function"!=typeof r||(n=r,r=void 0);if(!n)return new Promise(i);function i(i,a){function o(t,r,o){r=r||e,t?a(t):i?i(r):n(null,r,o)}t.run(e,ki(r),o)}i(null,n)},o.runSync=function(e,t){let r,n;return o.run(e,t,i),xi("runSync","run",n),r;function i(e,t){$n(e),r=t,n=!0}},o.process=function(e,t){if(o.freeze(),vi("process",o.Parser),yi("process",o.Compiler),!t)return new Promise(r);function r(r,n){const i=ki(e);function a(e,i){e||!i?n(e):r?r(i):t(null,i)}o.run(o.parse(i),i,((e,t,r)=>{if(!e&&t&&r){const n=o.stringify(t,r);null==n||(!function(e){return"string"==typeof e||Un(e)}(n)?r.result=n:r.value=n),a(e,r)}else a(e)}))}r(null,t)},o.processSync=function(e){let t;o.freeze(),vi("processSync",o.Parser),yi("processSync",o.Compiler);const r=ki(e);return o.process(r,n),xi("processSync","process",t),r;function n(e){t=!0,$n(e)}},o;function o(){const t=e();let n=-1;for(;++n<r.length;)t.use(...r[n]);return t.data(Xn(!0,{},i)),t}}().freeze(),mi={}.hasOwnProperty;function gi(e,t){return"function"==typeof e&&e.prototype&&(function(e){let t;for(t in e)if(mi.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function vi(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function yi(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function bi(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function wi(e){if(!Zn(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function xi(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ki(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new li(e)}var Ei=le(Object.freeze({__proto__:null,unified:di}));function Si(e,t){var{includeImageAlt:r=!0}=t||{};return Pi(e,r)}function Pi(e,t){return e&&"object"==typeof e&&(e.value||(t?e.alt:"")||"children"in e&&_i(e.children,t)||Array.isArray(e)&&_i(e,t))||""}function _i(e,t){for(var r=[],n=-1;++n<e.length;)r[n]=Pi(e[n],t);return r.join("")}function Ai(e,t,r,n){const i=e.length;let a,o=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,r=r>0?r:0,n.length<1e4)a=Array.from(n),a.unshift(t,r),[].splice.apply(e,a);else for(r&&[].splice.apply(e,[t,r]);o<n.length;)a=n.slice(o,o+1e4),a.unshift(t,0),[].splice.apply(e,a),o+=1e4,t+=1e4}function Ci(e,t){return e.length>0?(Ai(e,e.length,0,t),e):t}const Fi={}.hasOwnProperty;function Di(e){const t={};let r=-1;for(;++r<e.length;)Oi(t,e[r]);return t}function Oi(e,t){let r;for(r in t){const n=(Fi.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let a;for(a in i){Fi.call(n,a)||(n[a]=[]);const e=i[a];Ri(n[a],Array.isArray(e)?e:e?[e]:[])}}}function Ri(e,t){let r=-1;const n=[];for(;++r<t.length;)("after"===t[r].add?e:n).push(t[r]);Ai(e,0,0,n)}const Ti=Hi(/[A-Za-z]/),Ii=Hi(/\d/),ji=Hi(/[\dA-Fa-f]/),Li=Hi(/[\dA-Za-z]/),qi=Hi(/[!-/:-@[-`{-~]/),zi=Hi(/[#-'*+\--9=?A-Z^-~]/);function Mi(e){return null!==e&&(e<32||127===e)}function Ni(e){return null!==e&&(e<0||32===e)}function Bi(e){return null!==e&&e<-2}function $i(e){return-2===e||-1===e||32===e}const Ui=Hi(/\s/),Vi=Hi(/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/);function Hi(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}var Qi=Object.freeze({__proto__:null,asciiAlpha:Ti,asciiDigit:Ii,asciiHexDigit:ji,asciiAlphanumeric:Li,asciiPunctuation:qi,asciiAtext:zi,asciiControl:Mi,markdownLineEndingOrSpace:Ni,markdownLineEnding:Bi,markdownSpace:$i,unicodeWhitespace:Ui,unicodePunctuation:Vi});function Gi(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return function(n){if($i(n))return e.enter(r),o(n);return t(n)};function o(n){return $i(n)&&a++<i?(e.consume(n),o):(e.exit(r),t(n))}}var Wi=Object.freeze({__proto__:null,factorySpace:Gi});const Ki={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Gi(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),n(t)}));let r;return t;function n(t){const n=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=n),r=n,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Bi(t)?(e.consume(t),e.exit("chunkText"),n):(e.consume(t),i)}}};const Ji={tokenize:function(e){const t=this,r=[];let n,i,a,o=0;return s;function s(n){if(o<r.length){const i=r[o];return t.containerState=i[1],e.attempt(i[0].continuation,c,u)(n)}return u(n)}function c(e){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&y();const r=t.events.length;let i,a=r;for(;a--;)if("exit"===t.events[a][0]&&"chunkFlow"===t.events[a][1].type){i=t.events[a][1].end;break}v(o);let s=r;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},i),s++;return Ai(t.events,a+1,0,t.events.slice(r)),t.events.length=s,u(e)}return s(e)}function u(i){if(o===r.length){if(!n)return h(i);if(n.currentConstruct&&n.currentConstruct.concrete)return d(i);t.interrupt=Boolean(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Yi,l,f)(i)}function l(e){return n&&y(),v(o),h(e)}function f(e){return t.parser.lazy[t.now().line]=o!==r.length,a=t.now().offset,d(e)}function h(r){return t.containerState={},e.attempt(Yi,p,d)(r)}function p(e){return o++,r.push([t.currentConstruct,t.containerState]),h(e)}function d(r){return null===r?(n&&y(),v(0),void e.consume(r)):(n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:n}),m(r))}function m(r){return null===r?(g(e.exit("chunkFlow"),!0),v(0),void e.consume(r)):Bi(r)?(e.consume(r),g(e.exit("chunkFlow")),o=0,t.interrupt=void 0,s):(e.consume(r),m)}function g(e,r){const s=t.sliceStream(e);if(r&&s.push(null),e.previous=i,i&&(i.next=e),i=e,n.defineSkip(e.start),n.write(s),t.parser.lazy[e.start.line]){let e=n.events.length;for(;e--;)if(n.events[e][1].start.offset<a&&(!n.events[e][1].end||n.events[e][1].end.offset>a))return;const r=t.events.length;let i,s,c=r;for(;c--;)if("exit"===t.events[c][0]&&"chunkFlow"===t.events[c][1].type){if(i){s=t.events[c][1].end;break}i=!0}for(v(o),e=r;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;Ai(t.events,c+1,0,t.events.slice(r)),t.events.length=e}}function v(n){let i=r.length;for(;i-- >n;){const n=r[i];t.containerState=n[1],n[0].exit.call(t,e)}r.length=n}function y(){n.write([null]),i=void 0,n=void 0,t.containerState._closeFlow=void 0}}},Yi={tokenize:function(e,t,r){return Gi(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function Xi(e){return null===e||Ni(e)||Ui(e)?1:Vi(e)?2:void 0}function Zi(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}const ea={name:"attention",tokenize:function(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Xi(n);let a;return function(t){return e.enter("attentionSequence"),a=t,o(t)};function o(s){if(s===a)return e.consume(s),o;const c=e.exit("attentionSequence"),u=Xi(s),l=!u||2===u&&i||r.includes(s),f=!i||2===i&&u||r.includes(n);return c._open=Boolean(42===a?l:l&&(i||!f)),c._close=Boolean(42===a?f:f&&(u||!l)),t(s)}},resolveAll:function(e,t){let r,n,i,a,o,s,c,u,l=-1;for(;++l<e.length;)if("enter"===e[l][0]&&"attentionSequence"===e[l][1].type&&e[l][1]._close)for(r=l;r--;)if("exit"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[l][1]).charCodeAt(0)){if((e[r][1]._close||e[l][1]._open)&&(e[l][1].end.offset-e[l][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[l][1].end.offset-e[l][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[l][1].end.offset-e[l][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),h=Object.assign({},e[l][1].start);ta(f,-s),ta(h,s),a={type:s>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},o={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[l][1].start),end:h},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[l][1].start)},n={type:s>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},a.start),e[l][1].start=Object.assign({},o.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Ci(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Ci(c,[["enter",n,t],["enter",a,t],["exit",a,t],["enter",i,t]]),c=Ci(c,Zi(t.parser.constructs.insideSpan.null,e.slice(r+1,l),t)),c=Ci(c,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",n,t]]),e[l][1].end.offset-e[l][1].start.offset?(u=2,c=Ci(c,[["enter",e[l][1],t],["exit",e[l][1],t]])):u=0,Ai(e,r-1,l-r+3,c),l=r+c.length-u-2;break}l=-1;for(;++l<e.length;)"attentionSequence"===e[l][1].type&&(e[l][1].type="data");return e}};function ta(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ra={name:"autolink",tokenize:function(e,t,r){let n=1;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return Ti(t)?(e.consume(t),a):zi(t)?c(t):r(t)}function a(e){return 43===e||45===e||46===e||Li(e)?o(e):c(e)}function o(t){return 58===t?(e.consume(t),s):(43===t||45===t||46===t||Li(t))&&n++<32?(e.consume(t),o):c(t)}function s(t){return 62===t?(e.exit("autolinkProtocol"),h(t)):null===t||32===t||60===t||Mi(t)?r(t):(e.consume(t),s)}function c(t){return 64===t?(e.consume(t),n=0,u):zi(t)?(e.consume(t),c):r(t)}function u(e){return Li(e)?l(e):r(e)}function l(t){return 46===t?(e.consume(t),n=0,u):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",h(t)):f(t)}function f(t){return(45===t||Li(t))&&n++<63?(e.consume(t),45===t?f:l):r(t)}function h(r){return e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t}}};const na={tokenize:function(e,t,r){return Gi(e,(function(e){return null===e||Bi(e)?t(e):r(e)}),"linePrefix")},partial:!0};const ia={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(62===t){const r=n.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return r(t)};function i(r){return $i(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}},continuation:{tokenize:function(e,t,r){return Gi(e,e.attempt(ia,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},exit:function(e){e.exit("blockQuote")}};const aa={name:"characterEscape",tokenize:function(e,t,r){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),n};function n(n){return qi(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}};const oa={AEli:"Æ",AElig:"Æ",AM:"&",AMP:"&",Aacut:"Á",Aacute:"Á",Abreve:"Ă",Acir:"Â",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrav:"À",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Arin:"Å",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atild:"Ã",Atilde:"Ã",Aum:"Ä",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COP:"©",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedi:"Ç",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ET:"Ð",ETH:"Ð",Eacut:"É",Eacute:"É",Ecaron:"Ě",Ecir:"Ê",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrav:"È",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Eum:"Ë",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",G:">",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacut:"Í",Iacute:"Í",Icir:"Î",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrav:"Ì",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Ium:"Ï",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",L:"<",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntild:"Ñ",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacut:"Ó",Oacute:"Ó",Ocir:"Ô",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograv:"Ò",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslas:"Ø",Oslash:"Ø",Otild:"Õ",Otilde:"Õ",Otimes:"⨷",Oum:"Ö",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUO:'"',QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",RE:"®",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THOR:"Þ",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacut:"Ú",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucir:"Û",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrav:"Ù",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uum:"Ü",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacut:"Ý",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacut:"á",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acir:"â",acirc:"â",acut:"´",acute:"´",acy:"а",aeli:"æ",aelig:"æ",af:"",afr:"𝔞",agrav:"à",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",am:"&",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",arin:"å",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atild:"ã",atilde:"ã",aum:"ä",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvba:"¦",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedi:"ç",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedi:"¸",cedil:"¸",cemptyv:"⦲",cen:"¢",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",cop:"©",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curre:"¤",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",de:"°",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divid:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacut:"é",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"ê",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrav:"è",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",et:"ð",eth:"ð",eum:"ë",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac1:"¼",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac3:"¾",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",g:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacut:"í",iacute:"í",ic:"",icir:"î",icirc:"î",icy:"и",iecy:"е",iexc:"¡",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrav:"ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iques:"¿",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",ium:"ï",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laqu:"«",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",l:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",mac:"¯",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micr:"µ",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middo:"·",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbs:" ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",no:"¬",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntild:"ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacut:"ó",oacute:"ó",oast:"⊛",ocir:"ô",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograv:"ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"º",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslas:"ø",oslash:"ø",osol:"⊘",otild:"õ",otilde:"õ",otimes:"⊗",otimesas:"⨶",oum:"ö",ouml:"ö",ovbar:"⌽",par:"¶",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusm:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",poun:"£",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quo:'"',quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raqu:"»",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",re:"®",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sec:"§",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",sh:"",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szli:"ß",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thor:"þ",thorn:"þ",tilde:"˜",time:"×",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacut:"ú",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucir:"û",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrav:"ù",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",um:"¨",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uum:"ü",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacut:"ý",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",ye:"¥",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yum:"ÿ",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},sa={}.hasOwnProperty;function ca(e){return!!sa.call(oa,e)&&oa[e]}const ua={name:"characterReference",tokenize:function(e,t,r){const n=this;let i,a,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,a=Li,u(t))}function c(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,a=ji,u):(e.enter("characterReferenceValue"),i=7,a=Ii,u(t))}function u(s){let c;return 59===s&&o?(c=e.exit("characterReferenceValue"),a!==Li||ca(n.sliceSerialize(c))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(s)):a(s)&&o++<i?(e.consume(s),u):r(s)}}};const la={name:"codeFenced",tokenize:function(e,t,r){const n=this,i={tokenize:function(e,t,r){let n=0;return Gi(e,i,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function i(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),a(t)}function a(t){return t===c?(e.consume(t),n++,a):n<u?r(t):(e.exit("codeFencedFenceSequence"),Gi(e,o,"whitespace")(t))}function o(n){return null===n||Bi(n)?(e.exit("codeFencedFence"),t(n)):r(n)}},partial:!0},a={tokenize:function(e,t,r){const n=this;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a}function a(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0},o=this.events[this.events.length-1],s=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0;let c,u=0;return function(t){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c=t,l(t)};function l(t){return t===c?(e.consume(t),u++,l):(e.exit("codeFencedFenceSequence"),u<3?r(t):Gi(e,f,"whitespace")(t))}function f(t){return null===t||Bi(t)?m(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(t))}function h(t){return null===t||Ni(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Gi(e,p,"whitespace")(t)):96===t&&t===c?r(t):(e.consume(t),h)}function p(t){return null===t||Bi(t)?m(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||Bi(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(t)):96===t&&t===c?r(t):(e.consume(t),d)}function m(r){return e.exit("codeFencedFence"),n.interrupt?t(r):g(r)}function g(t){return null===t?y(t):Bi(t)?e.attempt(a,e.attempt(i,y,s?Gi(e,g,"linePrefix",s+1):g),y)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||Bi(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)}function y(r){return e.exit("codeFenced"),t(r)}},concrete:!0};const fa={name:"codeIndented",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("codeIndented"),Gi(e,i,"linePrefix",5)(t)};function i(e){const t=n.events[n.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?a(e):r(e)}function a(t){return null===t?s(t):Bi(t)?e.attempt(ha,a,s)(t):(e.enter("codeFlowValue"),o(t))}function o(t){return null===t||Bi(t)?(e.exit("codeFlowValue"),a(t)):(e.consume(t),o)}function s(r){return e.exit("codeIndented"),t(r)}}},ha={tokenize:function(e,t,r){const n=this;return i;function i(t){return n.parser.lazy[n.now().line]?r(t):Bi(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):Gi(e,a,"linePrefix",5)(t)}function a(e){const a=n.events[n.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):Bi(e)?i(e):r(e)}},partial:!0};const pa={name:"codeText",tokenize:function(e,t,r){let n,i,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),o(t)};function o(t){return 96===t?(e.consume(t),a++,o):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?r(t):96===t?(i=e.enter("codeTextSequence"),n=0,u(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):Bi(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(t))}function c(t){return null===t||32===t||96===t||Bi(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),c)}function u(r){return 96===r?(e.consume(r),n++,u):n===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(r)):(i.type="codeTextData",c(r))}},resolve:function(e){let t,r,n=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[n][1].type&&"space"!==e[n][1].type))for(t=i;++t<n;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[n][1].type="codeTextPadding",i+=2,n-=2;break}t=i-1,n++;for(;++t<=n;)void 0===r?t!==n&&"lineEnding"!==e[t][1].type&&(r=t):t!==n&&"lineEnding"!==e[t][1].type||(e[r][1].type="codeTextData",t!==r+2&&(e[r][1].end=e[t-1][1].end,e.splice(r+2,t-r-2),n-=t-r-2,t=r+2),r=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};function da(e){const t={};let r,n,i,a,o,s,c,u=-1;for(;++u<e.length;){for(;u in t;)u=t[u];if(r=e[u],u&&"chunkFlow"===r[1].type&&"listItemPrefix"===e[u-1][1].type&&(s=r[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===r[0])r[1].contentType&&(Object.assign(t,ma(e,u)),u=t[u],c=!0);else if(r[1]._container){for(i=u,n=void 0;i--&&(a=e[i],"lineEnding"===a[1].type||"lineEndingBlank"===a[1].type);)"enter"===a[0]&&(n&&(e[n][1].type="lineEndingBlank"),a[1].type="lineEnding",n=i);n&&(r[1].end=Object.assign({},e[n][1].start),o=e.slice(n,u),o.unshift(r),Ai(e,n,u-n+1,o))}}return!c}function ma(e,t){const r=e[t][1],n=e[t][2];let i=t-1;const a=[],o=r._tokenizer||n.parser[r.contentType](r.start),s=o.events,c=[],u={};let l,f,h=-1,p=r,d=0,m=0;const g=[m];for(;p;){for(;e[++i][1]!==p;);a.push(i),p._tokenizer||(l=n.sliceStream(p),p.next||l.push(null),f&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(l),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=r;++h<s.length;)"exit"===s[h][0]&&"enter"===s[h-1][0]&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(m=h+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),h=g.length;h--;){const t=s.slice(g[h],g[h+1]),r=a.pop();c.unshift([r,r+t.length-1]),Ai(e,r,2,t)}for(h=-1;++h<c.length;)u[d+c[h][0]]=d+c[h][1],d+=c[h][1]-c[h][0]-1;return u}const ga={tokenize:function(e,t){let r;return function(t){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(t)};function n(t){return null===t?i(t):Bi(t)?e.check(va,a,i)(t):(e.consume(t),n)}function i(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function a(t){return e.consume(t),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}},resolve:function(e){return da(e),e}},va={tokenize:function(e,t,r){const n=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Gi(e,i,"linePrefix")};function i(i){if(null===i||Bi(i))return r(i);const a=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(n.parser.constructs.flow,r,t)(i)}},partial:!0};function ya(e,t,r,n,i,a,o,s,c){const u=c||Number.POSITIVE_INFINITY;let l=0;return function(t){if(60===t)return e.enter(n),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f;if(null===t||41===t||Mi(t))return r(t);return e.enter(n),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),d(t)};function f(r){return 62===r?(e.enter(a),e.consume(r),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(r))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(s),f(t)):null===t||60===t||Bi(t)?r(t):(e.consume(t),92===t?p:h)}function p(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function d(i){return 40===i?++l>u?r(i):(e.consume(i),d):41===i?l--?(e.consume(i),d):(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(i)):null===i||Ni(i)?l?r(i):(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(i)):Mi(i)?r(i):(e.consume(i),92===i?m:d)}function m(t){return 40===t||41===t||92===t?(e.consume(t),d):d(t)}}var ba=Object.freeze({__proto__:null,factoryDestination:ya});function wa(e,t,r,n,i,a){const o=this;let s,c=0;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u};function u(f){return null===f||91===f||93===f&&!s||94===f&&!c&&"_hiddenFootnoteSupport"in o.parser.constructs||c>999?r(f):93===f?(e.exit(a),e.enter(i),e.consume(f),e.exit(i),e.exit(n),t):Bi(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),l(f))}function l(t){return null===t||91===t||93===t||Bi(t)||c++>999?(e.exit("chunkString"),u(t)):(e.consume(t),s=s||!$i(t),92===t?f:l)}function f(t){return 91===t||92===t||93===t?(e.consume(t),c++,l):l(t)}}var xa=Object.freeze({__proto__:null,factoryLabel:wa});function ka(e,t,r,n,i,a){let o;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,s};function s(r){return r===o?(e.enter(i),e.consume(r),e.exit(i),e.exit(n),t):(e.enter(a),c(r))}function c(t){return t===o?(e.exit(a),s(o)):null===t?r(t):Bi(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Gi(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===o||null===t||Bi(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?l:u)}function l(t){return t===o||92===t?(e.consume(t),u):u(t)}}var Ea=Object.freeze({__proto__:null,factoryTitle:ka});function Sa(e,t){let r;return function n(i){if(Bi(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n;if($i(i))return Gi(e,n,r?"linePrefix":"lineSuffix")(i);return t(i)}}var Pa=Object.freeze({__proto__:null,factoryWhitespace:Sa});function _a(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Aa=Object.freeze({__proto__:null,normalizeIdentifier:_a});const Ca={name:"definition",tokenize:function(e,t,r){const n=this;let i;return function(t){return e.enter("definition"),wa.call(n,e,a,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function a(t){return i=_a(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),Sa(e,ya(e,e.attempt(Fa,Gi(e,o,"whitespace"),Gi(e,o,"whitespace")),r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):r(t)}function o(a){return null===a||Bi(a)?(e.exit("definition"),n.parser.defined.includes(i)||n.parser.defined.push(i),t(a)):r(a)}}},Fa={tokenize:function(e,t,r){return function(t){return Ni(t)?Sa(e,n)(t):r(t)};function n(t){return 34===t||39===t||40===t?ka(e,Gi(e,i,"whitespace"),r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):r(t)}function i(e){return null===e||Bi(e)?t(e):r(e)}},partial:!0};const Da={name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),n};function n(n){return Bi(n)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(n)):r(n)}}};const Oa={name:"headingAtx",tokenize:function(e,t,r){const n=this;let i=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),a(t)};function a(s){return 35===s&&i++<6?(e.consume(s),a):null===s||Ni(s)?(e.exit("atxHeadingSequence"),n.interrupt?t(s):o(s)):r(s)}function o(r){return 35===r?(e.enter("atxHeadingSequence"),s(r)):null===r||Bi(r)?(e.exit("atxHeading"),t(r)):$i(r)?Gi(e,o,"whitespace")(r):(e.enter("atxHeadingText"),c(r))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),o(t))}function c(t){return null===t||35===t||Ni(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),c)}},resolve:function(e,t){let r,n,i=e.length-2,a=3;"whitespace"===e[a][1].type&&(a+=2);i-2>a&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4);i>a&&(r={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},n={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},Ai(e,a,i-a+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]]));return e}};const Ra=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ta=["pre","script","style","textarea"],Ia={name:"htmlFlow",tokenize:function(e,t,r){const n=this;let i,a,o,s,c;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u};function u(s){return 33===s?(e.consume(s),l):47===s?(e.consume(s),p):63===s?(e.consume(s),i=3,n.interrupt?t:I):Ti(s)?(e.consume(s),o=String.fromCharCode(s),a=!0,d):r(s)}function l(a){return 45===a?(e.consume(a),i=2,f):91===a?(e.consume(a),i=5,o="CDATA[",s=0,h):Ti(a)?(e.consume(a),i=4,n.interrupt?t:I):r(a)}function f(i){return 45===i?(e.consume(i),n.interrupt?t:I):r(i)}function h(i){return i===o.charCodeAt(s++)?(e.consume(i),s===o.length?n.interrupt?t:_:h):r(i)}function p(t){return Ti(t)?(e.consume(t),o=String.fromCharCode(t),d):r(t)}function d(s){return null===s||47===s||62===s||Ni(s)?47!==s&&a&&Ta.includes(o.toLowerCase())?(i=1,n.interrupt?t(s):_(s)):Ra.includes(o.toLowerCase())?(i=6,47===s?(e.consume(s),m):n.interrupt?t(s):_(s)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(s):a?v(s):g(s)):45===s||Li(s)?(e.consume(s),o+=String.fromCharCode(s),d):r(s)}function m(i){return 62===i?(e.consume(i),n.interrupt?t:_):r(i)}function g(t){return $i(t)?(e.consume(t),g):S(t)}function v(t){return 47===t?(e.consume(t),S):58===t||95===t||Ti(t)?(e.consume(t),y):$i(t)?(e.consume(t),v):S(t)}function y(t){return 45===t||46===t||58===t||95===t||Li(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),w):$i(t)?(e.consume(t),b):v(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),c=t,x):$i(t)?(e.consume(t),w):(c=null,k(t))}function x(t){return null===t||Bi(t)?r(t):t===c?(e.consume(t),E):(e.consume(t),x)}function k(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||Ni(t)?b(t):(e.consume(t),k)}function E(e){return 47===e||62===e||$i(e)?v(e):r(e)}function S(t){return 62===t?(e.consume(t),P):r(t)}function P(t){return $i(t)?(e.consume(t),P):null===t||Bi(t)?_(t):r(t)}function _(t){return 45===t&&2===i?(e.consume(t),D):60===t&&1===i?(e.consume(t),O):62===t&&4===i?(e.consume(t),j):63===t&&3===i?(e.consume(t),I):93===t&&5===i?(e.consume(t),T):!Bi(t)||6!==i&&7!==i?null===t||Bi(t)?A(t):(e.consume(t),_):e.check(ja,j,A)(t)}function A(t){return e.exit("htmlFlowData"),C(t)}function C(t){return null===t?L(t):Bi(t)?e.attempt({tokenize:F,partial:!0},C,L)(t):(e.enter("htmlFlowData"),_(t))}function F(e,t,r){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}}function D(t){return 45===t?(e.consume(t),I):_(t)}function O(t){return 47===t?(e.consume(t),o="",R):_(t)}function R(t){return 62===t&&Ta.includes(o.toLowerCase())?(e.consume(t),j):Ti(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),R):_(t)}function T(t){return 93===t?(e.consume(t),I):_(t)}function I(t){return 62===t?(e.consume(t),j):45===t&&2===i?(e.consume(t),I):_(t)}function j(t){return null===t||Bi(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),j)}function L(r){return e.exit("htmlFlow"),t(r)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},ja={tokenize:function(e,t,r){return function(n){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),e.attempt(na,t,r)}},partial:!0};const La={name:"htmlText",tokenize:function(e,t,r){const n=this;let i,a,o,s;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),c};function c(t){return 33===t?(e.consume(t),u):47===t?(e.consume(t),k):63===t?(e.consume(t),w):Ti(t)?(e.consume(t),P):r(t)}function u(t){return 45===t?(e.consume(t),l):91===t?(e.consume(t),a="CDATA[",o=0,m):Ti(t)?(e.consume(t),b):r(t)}function l(t){return 45===t?(e.consume(t),f):r(t)}function f(t){return null===t||62===t?r(t):45===t?(e.consume(t),h):p(t)}function h(e){return null===e||62===e?r(e):p(e)}function p(t){return null===t?r(t):45===t?(e.consume(t),d):Bi(t)?(s=p,T(t)):(e.consume(t),p)}function d(t){return 45===t?(e.consume(t),j):p(t)}function m(t){return t===a.charCodeAt(o++)?(e.consume(t),o===a.length?g:m):r(t)}function g(t){return null===t?r(t):93===t?(e.consume(t),v):Bi(t)?(s=g,T(t)):(e.consume(t),g)}function v(t){return 93===t?(e.consume(t),y):g(t)}function y(t){return 62===t?j(t):93===t?(e.consume(t),y):g(t)}function b(t){return null===t||62===t?j(t):Bi(t)?(s=b,T(t)):(e.consume(t),b)}function w(t){return null===t?r(t):63===t?(e.consume(t),x):Bi(t)?(s=w,T(t)):(e.consume(t),w)}function x(e){return 62===e?j(e):w(e)}function k(t){return Ti(t)?(e.consume(t),E):r(t)}function E(t){return 45===t||Li(t)?(e.consume(t),E):S(t)}function S(t){return Bi(t)?(s=S,T(t)):$i(t)?(e.consume(t),S):j(t)}function P(t){return 45===t||Li(t)?(e.consume(t),P):47===t||62===t||Ni(t)?_(t):r(t)}function _(t){return 47===t?(e.consume(t),j):58===t||95===t||Ti(t)?(e.consume(t),A):Bi(t)?(s=_,T(t)):$i(t)?(e.consume(t),_):j(t)}function A(t){return 45===t||46===t||58===t||95===t||Li(t)?(e.consume(t),A):C(t)}function C(t){return 61===t?(e.consume(t),F):Bi(t)?(s=C,T(t)):$i(t)?(e.consume(t),C):_(t)}function F(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),i=t,D):Bi(t)?(s=F,T(t)):$i(t)?(e.consume(t),F):(e.consume(t),i=void 0,R)}function D(t){return t===i?(e.consume(t),O):null===t?r(t):Bi(t)?(s=D,T(t)):(e.consume(t),D)}function O(e){return 62===e||47===e||Ni(e)?_(e):r(e)}function R(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):62===t||Ni(t)?_(t):(e.consume(t),R)}function T(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Gi(e,I,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function I(t){return e.enter("htmlTextData"),s(t)}function j(n){return 62===n?(e.consume(n),e.exit("htmlTextData"),e.exit("htmlText"),t):r(n)}}};const qa={name:"labelEnd",tokenize:function(e,t,r){const n=this;let i,a,o=n.events.length;for(;o--;)if(("labelImage"===n.events[o][1].type||"labelLink"===n.events[o][1].type)&&!n.events[o][1]._balanced){i=n.events[o][1];break}return function(t){if(!i)return r(t);return i._inactive?c(t):(a=n.parser.defined.includes(_a(n.sliceSerialize({start:i.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s)};function s(r){return 40===r?e.attempt(za,t,a?t:c)(r):91===r?e.attempt(Ma,t,a?e.attempt(Na,t,c):c)(r):a?t(r):c(r)}function c(e){return i._balanced=!0,r(e)}},resolveTo:function(e,t){let r,n,i,a,o=e.length,s=0;for(;o--;)if(r=e[o][1],n){if("link"===r.type||"labelLink"===r.type&&r._inactive)break;"enter"===e[o][0]&&"labelLink"===r.type&&(r._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===r.type||"labelLink"===r.type)&&!r._balanced&&(n=o,"labelLink"!==r.type)){s=2;break}}else"labelEnd"===r.type&&(i=o);const c={type:"labelLink"===e[n][1].type?"link":"image",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[n][1].start),end:Object.assign({},e[i][1].end)},l={type:"labelText",start:Object.assign({},e[n+s+2][1].end),end:Object.assign({},e[i-2][1].start)};return a=[["enter",c,t],["enter",u,t]],a=Ci(a,e.slice(n+1,n+s+3)),a=Ci(a,[["enter",l,t]]),a=Ci(a,Zi(t.parser.constructs.insideSpan.null,e.slice(n+s+4,i-3),t)),a=Ci(a,[["exit",l,t],e[i-2],e[i-1],["exit",u,t]]),a=Ci(a,e.slice(i+1)),a=Ci(a,[["exit",c,t]]),Ai(e,n,e.length,a),e},resolveAll:function(e){let t,r=-1;for(;++r<e.length;)t=e[r][1],"labelImage"!==t.type&&"labelLink"!==t.type&&"labelEnd"!==t.type||(e.splice(r+1,"labelImage"===t.type?4:2),t.type="data",r++);return e}},za={tokenize:function(e,t,r){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),Sa(e,n)};function n(t){return 41===t?o(t):ya(e,i,r,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",3)(t)}function i(t){return Ni(t)?Sa(e,a)(t):o(t)}function a(t){return 34===t||39===t||40===t?ka(e,Sa(e,o),r,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):o(t)}function o(n){return 41===n?(e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),e.exit("resource"),t):r(n)}}},Ma={tokenize:function(e,t,r){const n=this;return function(t){return wa.call(n,e,i,r,"reference","referenceMarker","referenceString")(t)};function i(e){return n.parser.defined.includes(_a(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}}},Na={tokenize:function(e,t,r){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),n};function n(n){return 93===n?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}};const Ba={name:"labelStartImage",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):r(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}},resolveAll:qa.resolveAll};const $a={name:"labelStartLink",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}},resolveAll:qa.resolveAll};const Ua={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Gi(e,t,"linePrefix")}}};const Va={name:"thematicBreak",tokenize:function(e,t,r){let n,i=0;return function(t){return e.enter("thematicBreak"),n=t,a(t)};function a(s){return s===n?(e.enter("thematicBreakSequence"),o(s)):$i(s)?Gi(e,a,"whitespace")(s):i<3||null!==s&&!Bi(s)?r(s):(e.exit("thematicBreak"),t(s))}function o(t){return t===n?(e.consume(t),i++,o):(e.exit("thematicBreakSequence"),a(t))}}};const Ha={name:"list",tokenize:function(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){const i=n.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!n.containerState.marker||t===n.containerState.marker:Ii(t)){if(n.containerState.type||(n.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(Va,r,c)(t):c(t);if(!n.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return r(t)};function s(t){return Ii(t)&&++o<10?(e.consume(t),s):(!n.interrupt||o<2)&&(n.containerState.marker?t===n.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),c(t)):r(t)}function c(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||t,e.check(na,n.interrupt?r:u,e.attempt(Qa,f,l))}function u(e){return n.containerState.initialBlankLine=!0,a++,f(e)}function l(t){return $i(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):r(t)}function f(r){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(r)}},continuation:{tokenize:function(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(na,i,a);function i(r){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Gi(e,t,"listItemIndent",n.containerState.size+1)(r)}function a(r){return n.containerState.furtherBlankLines||!$i(r)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,o(r)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Ga,t,o)(r))}function o(i){return n.containerState._closeFlow=!0,n.interrupt=void 0,Gi(e,e.attempt(Ha,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},Qa={tokenize:function(e,t,r){const n=this;return Gi(e,(function(e){const i=n.events[n.events.length-1];return!$i(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):r(e)}),"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Ga={tokenize:function(e,t,r){const n=this;return Gi(e,(function(e){const i=n.events[n.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===n.containerState.size?t(e):r(e)}),"listItemIndent",n.containerState.size+1)},partial:!0};const Wa={name:"setextUnderline",tokenize:function(e,t,r){const n=this;let i,a,o=n.events.length;for(;o--;)if("lineEnding"!==n.events[o][1].type&&"linePrefix"!==n.events[o][1].type&&"content"!==n.events[o][1].type){a="paragraph"===n.events[o][1].type;break}return function(t){if(!n.parser.lazy[n.now().line]&&(n.interrupt||a))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),i=t,s(t);return r(t)};function s(t){return t===i?(e.consume(t),s):(e.exit("setextHeadingLineSequence"),Gi(e,c,"lineSuffix")(t))}function c(n){return null===n||Bi(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}},resolveTo:function(e,t){let r,n,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){r=a;break}"paragraph"===e[a][1].type&&(n=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);const o={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};e[n][1].type="setextHeadingText",i?(e.splice(n,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=o;return e.push(["exit",o,t]),e}};var Ka=Object.freeze({__proto__:null,attention:ea,autolink:ra,blankLine:na,blockQuote:ia,characterEscape:aa,characterReference:ua,codeFenced:la,codeIndented:fa,codeText:pa,content:ga,definition:Ca,hardBreakEscape:Da,headingAtx:Oa,htmlFlow:Ia,htmlText:La,labelEnd:qa,labelStartImage:Ba,labelStartLink:$a,lineEnding:Ua,list:Ha,setextUnderline:Wa,thematicBreak:Va});const Ja={tokenize:function(e){const t=this,r=e.attempt(na,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}),e.attempt(this.parser.constructs.flowInitial,n,Gi(e,e.attempt(this.parser.constructs.flow,n,e.attempt(ga,n)),"linePrefix")));return r;function n(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r;e.consume(n)}}};const Ya={resolveAll:to()},Xa=eo("string"),Za=eo("text");function eo(e){return{tokenize:function(t){const r=this,n=this.parser.constructs[e],i=t.attempt(n,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return c(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function c(e){if(null===e)return!0;const t=n[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(r,r.previous))return!0}return!1}},resolveAll:to("text"===e?ro:void 0)}}function to(e){return function(t,r){let n,i=-1;for(;++i<=t.length;)void 0===n?t[i]&&"data"===t[i][1].type&&(n=i,i++):t[i]&&"data"===t[i][1].type||(i!==n+2&&(t[n][1].end=t[i-1][1].end,t.splice(n+2,i-n-2),i=n+2),n=void 0);return e?e(t,r):t}}function ro(e,t){let r=-1;for(;++r<=e.length;)if((r===e.length||"lineEnding"===e[r][1].type)&&"data"===e[r-1][1].type){const n=e[r-1][1],i=t.sliceStream(n);let a,o=i.length,s=-1,c=0;for(;o--;){const e=i[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)c++,s--;if(s)break;s=-1}else if(-2===e)a=!0,c++;else if(-1!==e){o++;break}}if(c){const i={type:r===e.length||a||c<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-c,offset:n.end.offset-c,_index:n.start._index+o,_bufferIndex:o?s:n.start._bufferIndex+s},end:Object.assign({},n.end)};n.end=Object.assign({},i.start),n.start.offset===n.end.offset?Object.assign(n,i):(e.splice(r,0,["enter",i,t],["exit",i,t]),r+=2)}r++}return e}function no(e,t,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},a=[];let o=[],s=[];const c={consume:function(e){Bi(e)?(n.line++,n.column=1,n.offset+=-3===e?2:1,y()):-1!==e&&(n.column++,n.offset++);n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===o[n._index].length&&(n._bufferIndex=-1,n._index++));u.previous=e},enter:function(e,t){const r=t||{};return r.type=e,r.start=h(),u.events.push(["enter",r,u]),s.push(r),r},exit:function(e){const t=s.pop();return t.end=h(),u.events.push(["exit",t,u]),t},attempt:g((function(e,t){v(e,t.from)})),check:g(m),interrupt:g(m,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:f,sliceSerialize:function(e,t){return function(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let o;if("string"==typeof a)o=a;else switch(a){case-5:o="\r";break;case-4:o="\n";break;case-3:o="\r\n";break;case-2:o=t?" ":"\t";break;case-1:if(!t&&i)continue;o=" ";break;default:o=String.fromCharCode(a)}i=-2===a,n.push(o)}return n.join("")}(f(e),t)},now:h,defineSkip:function(e){i[e.line]=e.column,y()},write:function(e){if(o=Ci(o,e),p(),null!==o[o.length-1])return[];return v(t,0),u.events=Zi(a,u.events,u),u.events}};let l=t.tokenize.call(u,c);return t.resolveAll&&a.push(t),u;function f(e){return function(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;r===i?o=[e[r].slice(n,a)]:(o=e.slice(r,i),n>-1&&(o[0]=o[0].slice(n)),a>0&&o.push(e[i].slice(0,a)));return o}(o,e)}function h(){return Object.assign({},n)}function p(){let e;for(;n._index<o.length;){const t=o[n._index];if("string"==typeof t)for(e=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===e&&n._bufferIndex<t.length;)d(t.charCodeAt(n._bufferIndex));else d(t)}}function d(e){l=l(e)}function m(e,t){t.restore()}function g(e,t){return function(r,i,a){let o,l,f,p;return Array.isArray(r)?d(r):"tokenize"in r?d([r]):function(e){return t;function t(t){const r=null!==t&&e[t],n=null!==t&&e.null;return d([...Array.isArray(r)?r:r?[r]:[],...Array.isArray(n)?n:n?[n]:[]])(t)}}(r);function d(e){return o=e,l=0,0===e.length?a:m(e[l])}function m(e){return function(r){p=function(){const e=h(),t=u.previous,r=u.currentConstruct,i=u.events.length,a=Array.from(s);return{restore:o,from:i};function o(){n=e,u.previous=t,u.currentConstruct=r,u.events.length=i,s=a,y()}}(),f=e,e.partial||(u.currentConstruct=e);if(e.name&&u.parser.constructs.disable.null.includes(e.name))return v();return e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,g,v)(r)}}function g(t){return e(f,p),i}function v(e){return p.restore(),++l<o.length?m(o[l]):a}}}function v(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&Ai(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function y(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}const io={42:Ha,43:Ha,45:Ha,48:Ha,49:Ha,50:Ha,51:Ha,52:Ha,53:Ha,54:Ha,55:Ha,56:Ha,57:Ha,62:ia},ao={91:Ca},oo={[-2]:fa,[-1]:fa,32:fa},so={35:Oa,42:Va,45:[Wa,Va],60:Ia,61:Wa,95:Va,96:la,126:la},co={38:ua,92:aa},uo={[-5]:Ua,[-4]:Ua,[-3]:Ua,33:Ba,38:ua,42:ea,60:[ra,La],91:$a,92:[Da,aa],93:qa,95:ea,96:pa},lo={null:[ea,Ya]};var fo=Object.freeze({__proto__:null,document:io,contentInitial:ao,flowInitial:oo,flow:so,string:co,text:uo,insideSpan:lo,attentionMarkers:{null:[42,95]},disable:{null:[]}});const ho=/[\0\t\n\r]/g;function po(e,t){const r=Number.parseInt(e,t);return r<9||11===r||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||65535==(65535&r)||65534==(65535&r)||r>1114111?"�":String.fromCharCode(r)}const mo=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function go(e){return e.replace(mo,vo)}function vo(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return po(r.slice(t?2:1),t?16:10)}return ca(r)||e}const yo={}.hasOwnProperty,bo=function(e,t,r){return"string"!=typeof t&&(r=t,t=void 0),function(e={}){const t=wo({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(ne),autolinkProtocol:C,autolinkEmail:C,atxHeading:c(Z),blockQuote:c(W),characterEscape:C,characterReference:C,codeFenced:c(K),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:c(K,u),codeText:c(J,u),codeTextData:C,data:C,codeFlowValue:C,definition:c(Y),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:c(X),hardBreakEscape:c(ee),hardBreakTrailing:c(ee),htmlFlow:c(te,u),htmlFlowData:C,htmlText:c(te,u),htmlTextData:C,image:c(re),label:u,link:c(ne),listItem:c(ae),listItemValue:m,listOrdered:c(ie,d),listUnordered:c(ie),paragraph:c(oe),reference:$,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:c(Z),strong:c(se),thematicBreak:c(ue)},exit:{atxHeading:f(),atxHeadingSequence:S,autolink:f(),autolinkEmail:G,autolinkProtocol:Q,blockQuote:f(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:H,codeFenced:f(b),codeFencedFence:y,codeFencedFenceInfo:g,codeFencedFenceMeta:v,codeFlowValue:F,codeIndented:f(w),codeText:f(I),codeTextData:F,data:F,definition:f(),definitionDestinationString:E,definitionLabelString:x,definitionTitleString:k,emphasis:f(),hardBreakEscape:f(O),hardBreakTrailing:f(O),htmlFlow:f(R),htmlFlowData:F,htmlText:f(T),htmlTextData:F,image:f(L),label:z,labelText:q,lineEnding:D,link:f(j),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:U,resourceDestinationString:M,resourceTitleString:N,resource:B,setextHeading:f(A),setextHeadingLineSequence:_,setextHeadingText:P,strong:f(),thematicBreak:f()}},e.mdastExtensions||[]),r={};return n;function n(e){let r={type:"root",children:[]};const n=[],c=[],f={stack:[r],tokenStack:n,config:t,enter:l,exit:h,buffer:u,resume:p,setData:a,getData:o};let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])c.push(d);else{d=i(e,c.pop(),d)}for(d=-1;++d<e.length;){const r=t[e[d][0]];yo.call(r,e[d][1].type)&&r[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},f),e[d][1])}if(n.length>0){const e=n[n.length-1];(e[1]||ko).call(f,void 0,e[0])}for(r.position={start:s(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:s(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,r){let n,i,a,o,s=t-1,c=-1,u=!1;for(;++s<=r;){const t=e[s];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?c++:c--,o=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!n||o||c||a||(a=s),o=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(o=void 0),!c&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===c&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(n){let o=s;for(i=void 0;o--;){const t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=o}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}a&&(!i||a<i)&&(n._spread=!0),n.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",n,t[2]]),s++,r++}"listItemPrefix"===t[1].type&&(n={type:"listItem",_spread:!1,start:Object.assign({},t[1].start)},e.splice(s,0,["enter",n,t[2]]),s++,r++,a=void 0,o=!0)}}return e[t][1]._spread=u,r}function a(e,t){r[e]=t}function o(e){return r[e]}function s(e){return{line:e.line,column:e.column,offset:e.offset}}function c(e,t){return r;function r(r){l.call(this,e(r),r),t&&t.call(this,r)}}function u(){this.stack.push({type:"fragment",children:[]})}function l(e,t,r){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,r]),e.position={start:s(t.start)},e}function f(e){return t;function t(t){e&&e.call(this,t),h.call(this,t)}}function h(e,t){const r=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+e.type+"` ("+ri({start:e.start,end:e.end})+"): it’s not open");if(n[0].type!==e.type)if(t)t.call(this,e,n[0]);else{(n[1]||ko).call(this,e,n[0])}return r.position.end=s(e.end),r}function p(){return Si(this.stack.pop())}function d(){a("expectingFirstListItemValue",!0)}function m(e){if(o("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),a("expectingFirstListItemValue")}}function g(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function v(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function y(){o("flowCodeInside")||(this.buffer(),a("flowCodeInside",!0))}function b(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),a("flowCodeInside")}function w(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function x(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=_a(this.sliceSerialize(e)).toLowerCase()}function k(){const e=this.resume();this.stack[this.stack.length-1].title=e}function E(){const e=this.resume();this.stack[this.stack.length-1].url=e}function S(e){const t=this.stack[this.stack.length-1];if(!t.depth){const r=this.sliceSerialize(e).length;t.depth=r}}function P(){a("setextHeadingSlurpLineEnding",!0)}function _(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function A(){a("setextHeadingSlurpLineEnding")}function C(e){const t=this.stack[this.stack.length-1];let r=t.children[t.children.length-1];r&&"text"===r.type||(r=ce(),r.position={start:s(e.start)},t.children.push(r)),this.stack.push(r)}function F(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=s(e.end)}function D(e){const r=this.stack[this.stack.length-1];if(o("atHardBreak")){return r.children[r.children.length-1].position.end=s(e.end),void a("atHardBreak")}!o("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(r.type)&&(C.call(this,e),F.call(this,e))}function O(){a("atHardBreak",!0)}function R(){const e=this.resume();this.stack[this.stack.length-1].value=e}function T(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function j(){const e=this.stack[this.stack.length-1];o("inReference")?(e.type+="Reference",e.referenceType=o("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label),a("referenceType")}function L(){const e=this.stack[this.stack.length-1];o("inReference")?(e.type+="Reference",e.referenceType=o("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label),a("referenceType")}function q(e){const t=this.stack[this.stack.length-2],r=this.sliceSerialize(e);t.label=go(r),t.identifier=_a(r).toLowerCase()}function z(){const e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];a("inReference",!0),"link"===r.type?r.children=e.children:r.alt=t}function M(){const e=this.resume();this.stack[this.stack.length-1].url=e}function N(){const e=this.resume();this.stack[this.stack.length-1].title=e}function B(){a("inReference")}function $(){a("referenceType","collapsed")}function U(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=_a(this.sliceSerialize(e)).toLowerCase(),a("referenceType","full")}function V(e){a("characterReferenceType",e.type)}function H(e){const t=this.sliceSerialize(e),r=o("characterReferenceType");let n;r?(n=po(t,"characterReferenceMarkerNumeric"===r?10:16),a("characterReferenceType")):n=ca(t);const i=this.stack.pop();i.value+=n,i.position.end=s(e.end)}function Q(e){F.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function G(e){F.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function W(){return{type:"blockquote",children:[]}}function K(){return{type:"code",lang:null,meta:null,value:""}}function J(){return{type:"inlineCode",value:""}}function Y(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function Z(){return{type:"heading",depth:void 0,children:[]}}function ee(){return{type:"break"}}function te(){return{type:"html",value:""}}function re(){return{type:"image",title:null,url:"",alt:null}}function ne(){return{type:"link",title:null,url:"",children:[]}}function ie(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function ae(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function se(){return{type:"strong",children:[]}}function ce(){return{type:"text",value:""}}function ue(){return{type:"thematicBreak"}}}(r)(function(e){for(;!da(e););return e}(function(e={}){const t={defined:[],lazy:{},constructs:Di([fo].concat(e.extensions||[])),content:r(Ki),document:r(Ji),flow:r(Ja),string:r(Xa),text:r(Za)};return t;function r(e){return function(r){return no(t,e,r)}}}(r).document().write(function(){let e,t=1,r="",n=!0;return function(i,a,o){const s=[];let c,u,l,f,h;for(i=r+i.toString(a),l=0,r="",n&&(65279===i.charCodeAt(0)&&l++,n=void 0);l<i.length;){if(ho.lastIndex=l,c=ho.exec(i),f=c&&void 0!==c.index?c.index:i.length,h=i.charCodeAt(f),!c){r=i.slice(l);break}if(10===h&&l===f&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),l<f&&(s.push(i.slice(l,f)),t+=f-l),h){case 0:s.push(65533),t++;break;case 9:for(u=4*Math.ceil(t/4),s.push(-2);t++<u;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}l=f+1}return o&&(e&&s.push(-5),r&&s.push(r),s.push(null)),s}}()(e,t,!0))))};function wo(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?wo(e,n):xo(e,n)}return e}function xo(e,t){let r;for(r in t)if(yo.call(t,r)){const n="canContainEols"===r||"transforms"===r,i=(yo.call(e,r)?e[r]:void 0)||(e[r]=n?[]:{}),a=t[r];a&&(n?e[r]=[...i,...a]:Object.assign(i,a))}}function ko(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ri({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ri({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ri({start:t.start,end:t.end})+") is still open")}var Eo=le(Object.freeze({__proto__:null,default:function(e){Object.assign(this,{Parser:t=>{const r=this.data("settings");return bo(t,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}}));const So={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(t){return 87===t||119===t?(e.consume(t),i):r(t)}function i(t){return 87===t||119===t?(e.consume(t),a):r(t)}function a(t){return 46===t?(e.consume(t),o):r(t)}function o(e){return null===e||Bi(e)?r(e):t(e)}},partial:!0},Po={tokenize:function(e,t,r){let n,i;return a;function a(t){return 38===t?e.check(Co,s,o)(t):46===t||95===t?e.check(Ao,s,o)(t):null===t||Mi(t)||Ui(t)||45!==t&&Vi(t)?s(t):(e.consume(t),a)}function o(t){return 46===t?(i=n,n=void 0,e.consume(t),a):(95===t&&(n=!0),e.consume(t),a)}function s(e){return i||n?r(e):t(e)}},partial:!0},_o={tokenize:function(e,t){let r=0;return n;function n(o){return 38===o?e.check(Co,t,i)(o):(40===o&&r++,41===o?e.check(Ao,a,i)(o):Lo(o)?t(o):jo(o)?e.check(Ao,t,i)(o):(e.consume(o),n))}function i(t){return e.consume(t),n}function a(e){return r--,r<0?t(e):i(e)}},partial:!0},Ao={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(i){return jo(i)?(e.consume(i),n):Lo(i)?t(i):r(i)}},partial:!0},Co={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(t){return Ti(t)?(e.consume(t),n):59===t?(e.consume(t),i):r(t)}function i(e){return Lo(e)?t(e):r(e)}},partial:!0},Fo={tokenize:function(e,t,r){const n=this;return function(t){if(87!==t&&119!==t||!zo(n.previous)||Bo(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(So,e.attempt(Po,e.attempt(_o,i),r),r)(t)};function i(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}},previous:zo},Do={tokenize:function(e,t,r){const n=this;return function(t){if(72!==t&&104!==t||!Mo(n.previous)||Bo(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),i};function i(t){return 84===t||116===t?(e.consume(t),a):r(t)}function a(t){return 84===t||116===t?(e.consume(t),o):r(t)}function o(t){return 80===t||112===t?(e.consume(t),s):r(t)}function s(t){return 83===t||115===t?(e.consume(t),c):c(t)}function c(t){return 58===t?(e.consume(t),u):r(t)}function u(t){return 47===t?(e.consume(t),l):r(t)}function l(t){return 47===t?(e.consume(t),f):r(t)}function f(t){return null===t||Mi(t)||Ui(t)||Vi(t)?r(t):e.attempt(Po,e.attempt(_o,h),r)(t)}function h(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}},previous:Mo},Oo={tokenize:function(e,t,r){const n=this;let i,a;return function(t){if(!qo(t)||!No(n.previous)||Bo(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(t)};function o(t){return qo(t)?(e.consume(t),o):64===t?(e.consume(t),s):r(t)}function s(t){return 46===t?e.check(Ao,f,c)(t):45===t||95===t?e.check(Ao,r,u)(t):Li(t)?(!a&&Ii(t)&&(a=!0),e.consume(t),s):f(t)}function c(t){return e.consume(t),i=!0,a=void 0,s}function u(t){return e.consume(t),l}function l(t){return 46===t?e.check(Ao,r,c)(t):s(t)}function f(n){return i&&!a?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(n)):r(n)}},previous:No},Ro={},To={text:Ro};let Io=48;for(;Io<123;)Ro[Io]=Oo,Io++,58===Io?Io=65:91===Io&&(Io=97);function jo(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function Lo(e){return null===e||60===e||Ni(e)}function qo(e){return 43===e||45===e||46===e||95===e||Li(e)}function zo(e){return null===e||40===e||42===e||95===e||126===e||Ni(e)}function Mo(e){return null===e||!Ti(e)}function No(e){return 47!==e&&Mo(e)}function Bo(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if(("labelLink"===n.type||"labelImage"===n.type)&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}Ro[43]=Oo,Ro[45]=Oo,Ro[46]=Oo,Ro[95]=Oo,Ro[72]=[Oo,Do],Ro[104]=[Oo,Do],Ro[87]=[Oo,Fo],Ro[119]=[Oo,Fo];const $o={tokenize:function(e,t,r){const n=this;return Gi(e,(function(e){const i=n.events[n.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):r(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function Uo(e,t,r){const n=this;let i=n.events.length;const a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o;for(;i--;){const e=n.events[i][1];if("labelImage"===e.type){o=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!o||!o._balanced)return r(i);const s=_a(n.sliceSerialize({start:o.end,end:n.now()}));if(94!==s.charCodeAt(0)||!a.includes(s.slice(1)))return r(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function Vo(e,t){let r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...s),e}function Ho(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?r(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(s){let l;return null===s||91===s||o++>999?r(s):93===s?a?(e.exit("chunkString"),l=e.exit("gfmFootnoteCallString"),i.includes(_a(n.sliceSerialize(l)))?function(r){return e.enter("gfmFootnoteCallLabelMarker"),e.consume(r),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t}(s):r(s)):r(s):(e.consume(s),Ni(s)||(a=!0),92===s?u:c)}function u(t){return 91===t||92===t||93===t?(e.consume(t),o++,c):c(t)}}function Qo(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,o,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),c};function c(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),u):r(t)}function u(t){let i;return null===t||91===t||s>999?r(t):93===t?o?(i=e.exit("gfmFootnoteDefinitionLabelString"),a=_a(n.sliceSerialize(i)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h):r(t):Bi(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s++,u):(e.enter("chunkString").contentType="string",l(t))}function l(t){return null===t||Bi(t)||91===t||93===t||s>999?(e.exit("chunkString"),u(t)):(Ni(t)||(o=!0),s++,e.consume(t),92===t?f:l)}function f(t){return 91===t||92===t||93===t?(e.consume(t),s++,l):l(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),Gi(e,p,"gfmFootnoteDefinitionWhitespace")):r(t)}function p(e){return i.includes(a)||i.push(a),t(e)}}function Go(e,t,r){return e.check(na,t,e.attempt($o,t,r))}function Wo(e){e.exit("gfmFootnoteDefinition")}function Ko(e={}){let t=e.singleTilde;const r={tokenize:function(e,r,n){const i=this.previous,a=this.events;let o=0;return function(t){if(126===i&&"characterEscape"!==a[a.length-1][1].type)return n(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(a){const c=Xi(i);if(126===a)return o>1?n(a):(e.consume(a),o++,s);if(o<2&&!t)return n(a);const u=e.exit("strikethroughSequenceTemporary"),l=Xi(a);return u._open=!l||2===l&&Boolean(c),u._close=!c||2===c&&Boolean(l),r(a)}},resolveAll:function(e,t){let r=-1;for(;++r<e.length;)if("enter"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._close){let n=r;for(;n--;)if("exit"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._open&&e[r][1].end.offset-e[r][1].start.offset==e[n][1].end.offset-e[n][1].start.offset){e[r][1].type="strikethroughSequence",e[n][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[n][1].start),end:Object.assign({},e[r][1].end)},a={type:"strikethroughText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},o=[["enter",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["enter",a,t]];Ai(o,o.length,0,Zi(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),Ai(o,o.length,0,[["exit",a,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",i,t]]),Ai(e,n-1,r-n+3,o),r=n+o.length-2;break}}r=-1;for(;++r<e.length;)"strikethroughSequenceTemporary"===e[r][1].type&&(e[r][1].type="data");return e}};return null==t&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}}}const Jo={flow:{null:{tokenize:function(e,t,r){const n=this,i=[];let a,o,s=0;return function(t){if(e.enter("table")._align=i,e.enter("tableHead"),e.enter("tableRow"),124===t)return c(t);return s++,e.enter("temporaryTableCellContent"),f(t)};function c(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,u}function u(t){return null===t||Bi(t)?function(t){if(null===t)return r(t);e.exit("tableRow"),e.exit("tableHead");const i=n.interrupt;return n.interrupt=!0,e.attempt({tokenize:C,partial:!0},(function(t){return n.interrupt=i,e.enter("tableDelimiterRow"),p(t)}),(function(e){return n.interrupt=i,r(e)}))(t)}(t):$i(t)?(e.enter("whitespace"),e.consume(t),l):(a&&(a=void 0,s++),124===t?c(t):(e.enter("temporaryTableCellContent"),f(t)))}function l(t){return $i(t)?(e.consume(t),l):(e.exit("whitespace"),u(t))}function f(t){return null===t||124===t||Ni(t)?(e.exit("temporaryTableCellContent"),u(t)):(e.consume(t),92===t?h:f)}function h(t){return 92===t||124===t?(e.consume(t),f):f(t)}function p(t){return null===t||Bi(t)?y(t):$i(t)?(e.enter("whitespace"),e.consume(t),d):45===t?(e.enter("tableDelimiterFiller"),e.consume(t),o=!0,i.push(null),m):58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),i.push("left"),g):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):r(t)}function d(t){return $i(t)?(e.consume(t),d):(e.exit("whitespace"),p(t))}function m(t){return 45===t?(e.consume(t),m):(e.exit("tableDelimiterFiller"),58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),i[i.length-1]="left"===i[i.length-1]?"center":"right",v):p(t))}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),e.consume(t),o=!0,m):r(t)}function v(t){return null===t||Bi(t)?y(t):$i(t)?(e.enter("whitespace"),e.consume(t),d):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):r(t)}function y(t){return e.exit("tableDelimiterRow"),o&&s===i.length?null===t?b(t):e.check(Yo,b,e.attempt({tokenize:C,partial:!0},Gi(e,w,"linePrefix",4),b))(t):r(t)}function b(r){return e.exit("table"),t(r)}function w(t){return e.enter("tableBody"),x(t)}function x(t){return e.enter("tableRow"),124===t?k(t):(e.enter("temporaryTableCellContent"),P(t))}function k(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),E}function E(t){return null===t||Bi(t)?function(t){if(e.exit("tableRow"),null===t)return A(t);return e.check(Yo,A,e.attempt({tokenize:C,partial:!0},Gi(e,x,"linePrefix",4),A))(t)}(t):$i(t)?(e.enter("whitespace"),e.consume(t),S):124===t?k(t):(e.enter("temporaryTableCellContent"),P(t))}function S(t){return $i(t)?(e.consume(t),S):(e.exit("whitespace"),E(t))}function P(t){return null===t||124===t||Ni(t)?(e.exit("temporaryTableCellContent"),E(t)):(e.consume(t),92===t?_:P)}function _(t){return 92===t||124===t?(e.consume(t),P):P(t)}function A(t){return e.exit("tableBody"),b(t)}function C(e,t,r){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Gi(e,i,"linePrefix")};function i(i){if(n.parser.lazy[n.now().line]||null===i||Bi(i))return r(i);const a=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?r(i):(n._gfmTableDynamicInterruptHack=!0,e.check(n.parser.constructs.flow,(function(e){return n._gfmTableDynamicInterruptHack=!1,r(e)}),(function(e){return n._gfmTableDynamicInterruptHack=!1,t(e)}))(i))}}},resolve:function(e,t){let r,n,i,a,o,s,c,u=-1;for(;++u<e.length;){const l=e[u][1];if(i&&("temporaryTableCellContent"===l.type&&(a=a||u,o=u),("tableCellDivider"===l.type||"tableRow"===l.type)&&o)){const r={type:"tableContent",start:e[a][1].start,end:e[o][1].end},n={type:"chunkText",start:r.start,end:r.end,contentType:"text"};e.splice(a,o-a+1,["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]),u-=o-a-3,a=void 0,o=void 0}if("exit"===e[u][0]&&void 0!==s&&s+(c?0:1)<u&&("tableCellDivider"===l.type||"tableRow"===l.type&&(s+3<u||"whitespace"!==e[s][1].type))){const i={type:n?"tableDelimiter":r?"tableHeader":"tableData",start:e[s][1].start,end:e[u][1].end};e.splice(u+("tableCellDivider"===l.type?1:0),0,["exit",i,t]),e.splice(s,0,["enter",i,t]),u+=2,s=u+1,c=!0}"tableRow"===l.type&&(i="enter"===e[u][0],i&&(s=u+1,c=!1)),"tableDelimiterRow"===l.type&&(n="enter"===e[u][0],n&&(s=u+1,c=!1)),"tableHead"===l.type&&(r="enter"===e[u][0])}return e}}}},Yo={tokenize:function(e,t,r){let n=0;return function(t){return e.enter("check"),e.consume(t),i};function i(a){return-1===a||32===a?(e.consume(a),n++,4===n?t:i):null===a||Ni(a)?t(a):r(a)}},partial:!0};const Xo={tokenize:function(e,t,r){const n=this;return function(t){if(null!==n.previous||!n._gfmTasklistFirstContentOfListItem)return r(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return $i(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):r(t)}function a(n){return 93===n?(e.enter("taskListCheckMarker"),e.consume(n),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:es},t,r)):r(n)}}},Zo={text:{91:Xo}};function es(e,t,r){const n=this;return Gi(e,(function(e){const i=n.events[n.events.length-1];return i&&"whitespace"===i[1].type&&null!==e&&!Ni(e)?t(e):r(e)}),"whitespace")}function ts(e,t){const r=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;-1!==i;)n++,i=r.indexOf(t,i+t.length);return n}const rs=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);var i=Yr(t),a=n?-1:1;!function e(o,s,c){var u,l="object"==typeof o&&null!==o?o:{};"string"==typeof l.type&&(u="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0,Object.defineProperty(h,"name",{value:"node ("+(f=l.type+(u?"<"+u+">":""),"[33m"+f+"[39m)")}));var f;return h;function h(){var u,l,f,h=[];if((!t||i(o,s,c[c.length-1]||null))&&(h=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(r(o,c)),false===h[0]))return h;if(o.children&&"skip"!==h[0])for(l=(n?o.children.length:-1)+a,f=c.concat(o);l>-1&&l<o.children.length;){if(u=e(o.children[l],l,f)(),false===u[0])return u;l="number"==typeof u[1]?u[1]:l+a}return h}}(e,null,[])()};const ns={}.hasOwnProperty,is=function(e,t,r,n){let i,a;"string"==typeof t||t instanceof RegExp?(a=[[t,r]],i=n):(a=t,i=r),i||(i={});const o=Yr(i.ignore||[]),s=function(e){const t=[];if("object"!=typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let r=-1;for(;++r<e.length;)t.push([as(e[r][0]),os(e[r][1])])}else{let r;for(r in e)ns.call(e,r)&&t.push([as(r),os(e[r])])}return t}(a);let c=-1;for(;++c<s.length;)rs(e,"text",u);return e;function u(e,t){let r,n=-1;for(;++n<t.length;){const e=t[n];if(o(e,r?r.children.indexOf(e):void 0,r))return;r=e}if(r)return function(e,t){const r=s[c][0],n=s[c][1];let i,a=0,o=t.children.indexOf(e),u=[];r.lastIndex=0;let l=r.exec(e.value);for(;l;){i=l.index;let t=n(...l,{index:l.index,input:l.input});if("string"==typeof t&&(t=t.length>0?{type:"text",value:t}:void 0),!1!==t&&(a!==i&&u.push({type:"text",value:e.value.slice(a,i)}),Array.isArray(t)?u.push(...t):t&&u.push(t),a=i+l[0].length),!r.global)break;l=r.exec(e.value)}void 0===i?(u=[e],o--):(a<e.value.length&&u.push({type:"text",value:e.value.slice(a)}),t.children.splice(o,1,...u));return o+u.length+1}(e,r)}};function as(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function os(e){return"function"==typeof e?e:()=>e}const ss=["autolink","link","image","label"],cs={transforms:[function(e){is(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,fs],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,hs]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:ls,literalAutolinkHttp:ls,literalAutolinkWww:ls},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},us={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:"phrasing",notInConstruct:ss},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:"phrasing",notInConstruct:ss},{character:":",before:"[ps]",after:"\\/",inConstruct:"phrasing",notInConstruct:ss}]};function ls(e){this.config.enter.autolinkProtocol.call(this,e)}function fs(e,t,r,n,i){let a="";if(!ps(i))return!1;if(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(r))return!1;const o=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);let r,n,i,a;if(t)for(e=e.slice(0,t.index),a=t[0],r=a.indexOf(")"),n=ts(e,"("),i=ts(e,")");-1!==r&&n>i;)e+=a.slice(0,r+1),a=a.slice(r+1),r=a.indexOf(")"),i++;return[e,a]}(r+n);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function hs(e,t,r,n){return!(!ps(n,!0)||/[_-\d]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function ps(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||Ui(r)||Vi(r))&&(!t||47!==r)}function ds(e){return e.label||!e.identifier?e.label||"":go(e.identifier)}function ms(e,t){const r=t.indexStack,n=e.children||[],i=[];let a=-1;for(r.push(-1);++a<n.length;){const s=n[a];r[r.length-1]=a,i.push(t.handle(s,e,t,{before:"\n",after:"\n"})),"list"!==s.type&&(t.bulletLastUsed=void 0),a<n.length-1&&i.push(o(s,n[a+1]))}return r.pop(),i.join("");function o(r,n){let i=t.join.length;for(;i--;){const a=t.join[i](r,n,e,t);if(!0===a||1===a)break;if("number"==typeof a)return"\n".repeat(1+a);if(!1===a)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}}const gs=/\r?\n|\r/g;function vs(e,t){const r=[];let n,i=0,a=0;for(;n=gs.exec(e);)o(e.slice(i,n.index)),r.push(n[0]),i=n.index+n[0].length,a++;return o(e.slice(i)),r.join("");function o(e){r.push(t(e,a,!e))}}function ys(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function bs(e,t){return ws(e,t.inConstruct,!0)&&!ws(e,t.notInConstruct,!1)}function ws(e,t,r){if(!t)return r;"string"==typeof t&&(t=[t]);let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function xs(e,t,r){const n=(r.before||"")+(t||"")+(r.after||""),i=[],a=[],o={};let s=-1;for(;++s<e.unsafe.length;){const t=e.unsafe[s];if(!bs(e.stack,t))continue;const r=ys(t);let a;for(;a=r.exec(n);){const e="before"in t||Boolean(t.atBreak),r="after"in t,n=a.index+(e?a[1].length:0);i.includes(n)?(o[n].before&&!e&&(o[n].before=!1),o[n].after&&!r&&(o[n].after=!1)):(i.push(n),o[n]={before:e,after:r})}}i.sort(ks);let c=r.before?r.before.length:0;const u=n.length-(r.after?r.after.length:0);for(s=-1;++s<i.length;){const e=i[s];e<c||e>=u||(e+1<u&&i[s+1]===e+1&&o[e].after&&!o[e+1].before&&!o[e+1].after||i[s-1]===e-1&&o[e].before&&!o[e-1].before&&!o[e-1].after||(c!==e&&a.push(Es(n.slice(c,e),"\\")),c=e,!/[!-/:-@[-`{-~]/.test(n.charAt(e))||r.encode&&r.encode.includes(n.charAt(e))?(a.push("&#x"+n.charCodeAt(e).toString(16).toUpperCase()+";"),c++):a.push("\\")))}return a.push(Es(n.slice(c,u),r.after)),a.join("")}function ks(e,t){return e-t}function Es(e,t){const r=/\\(?=[!-/:-@[-`{-~])/g,n=[],i=[],a=e+t;let o,s=-1,c=0;for(;o=r.exec(a);)n.push(o.index);for(;++s<n.length;)c!==n[s]&&i.push(e.slice(c,n[s])),i.push("\\"),c=n[s];return i.push(e.slice(c)),i.join("")}const Ss=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);const i=Yr(t),a=n?-1:1;!function e(o,s,c){const u="object"==typeof o&&null!==o?o:{};let l;"string"==typeof u.type&&(l="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0,Object.defineProperty(h,"name",{value:"node ("+(f=u.type+(l?"<"+l+">":""),"[33m"+f+"[39m)")}));var f;return h;function h(){let u,l,f,h=[];if((!t||i(o,s,c[c.length-1]||null))&&(h=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(r(o,c)),false===h[0]))return h;if(o.children&&"skip"!==h[0])for(l=(n?o.children.length:-1)+a,f=c.concat(o);l>-1&&l<o.children.length;){if(u=e(o.children[l],l,f)(),false===u[0])return u;l="number"==typeof u[1]?u[1]:l+a}return h}}(e,null,[])()};const Ps=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null),Ss(e,t,(function(e,t){const n=t[t.length-1];return r(e,n?n.children.indexOf(e):null,n)}),n)};var _s=Object.freeze({__proto__:null,CONTINUE:true,SKIP:"skip",EXIT:false,visit:Ps});let As=!1,Cs=!1;function Fs(){return e.peek=function(){return"["},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:function(e,t,r){const n=r.enter("footnoteDefinition"),i=r.enter("label"),a=xs(r,ds(e),{before:"^",after:"]"}),o="[^"+a+"]:";i();const s=vs(ms(e,r),(function(e,t,r){if(t)return(r?"":" ")+e;return(r?o:o+" ")+e}));n(),!As&&a.includes(":")&&(console.warn("[mdast-util-gfm-footnote] Warning: Found a colon in footnote identifier `"+a+"`. GitHub currently crahes on colons in footnotes (see <https://github.com/github/cmark-gfm/issues/241> for more info)"),As=!0);Cs||Ps(e,"list",(()=>(console.warn("[mdast-util-gfm-footnote] Warning: Found a list in a footnote definition. GitHub currently crahes on lists in footnotes (see <https://github.com/github/cmark-gfm/issues/241> for more info)"),Cs=!0,false)));return s},footnoteReference:e}};function e(e,t,r){const n=r.enter("footnoteReference"),i=r.enter("reference"),a=xs(r,ds(e),{before:"^",after:"]"});return i(),n(),"[^"+a+"]"}}function Ds(e,t,r){const n=t.indexStack,i=e.children||[],a=[];let o=-1,s=r.before;for(n.push(-1);++o<i.length;){const c=i[o];let u;if(n[n.length-1]=o,o+1<i.length){let r=t.handle.handlers[i[o+1].type];r&&r.peek&&(r=r.peek),u=r?r(i[o+1],e,t,{before:"",after:""}).charAt(0):""}else u=r.after;a.length>0&&("\r"===s||"\n"===s)&&"html"===c.type&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),s=" "),a.push(t.handle(c,e,t,{before:s,after:u})),s=a[a.length-1].slice(-1)}return n.pop(),a.join("")}const Os={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},Rs={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:Ts}};function Ts(e,t,r){const n=r.enter("emphasis"),i=Ds(e,r,{before:"~",after:"~"});return n(),"~~"+i+"~~"}function Is(e,t,r){let n=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++a<r.unsafe.length;){const e=r.unsafe[a],t=ys(e);let i;if(e.atBreak)for(;i=t.exec(n);){let e=i.index;10===n.charCodeAt(e)&&13===n.charCodeAt(e-1)&&e--,n=n.slice(0,e)+" "+n.slice(i.index+1)}}return i+n+i}function js(e){return null==e?"":String(e)}function Ls(e){return e.length}function qs(e){const t="string"==typeof e?e.charCodeAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}Ts.peek=function(){return"~"},Is.peek=function(){return"`"};const zs={enter:{table:function(e){const t=e._align;this.enter({type:"table",align:t,children:[]},e),this.setData("inTable",!0)},tableData:Ns,tableHeader:Ns,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,Bs));this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:Ms,tableHeader:Ms,tableRow:Ms}};function Ms(e){this.exit(e)}function Ns(e){this.enter({type:"tableCell",children:[]},e)}function Bs(e,t){return"|"===t?t:e}function $s(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,r){return s(function(e,t){const r=e.children;let n=-1;const i=[],a=t.enter("table");for(;++n<r.length;)i[n]=c(r[n],t);return a(),i}(e,r),e.align)},tableRow:function(e,t,r){const n=s([c(e,r)]);return n.slice(0,n.indexOf("\n"))},tableCell:o,inlineCode:function(e,t,r){let n=Is(e,0,r);r.stack.includes("tableCell")&&(n=n.replace(/\|/g,"\\$&"));return n}}};function o(e,t,r){const n=r.enter("tableCell"),i=r.enter("phrasing"),o=Ds(e,r,{before:a,after:a});return i(),n(),o}function s(e,t){return function(e,t){const r=t||{},n=(r.align||[]).concat(),i=r.stringLength||Ls,a=[];let o=-1;const s=[],c=[],u=[];let l,f,h,p,d,m,g,v,y,b=0;for(;++o<e.length;){for(l=-1,f=[],h=[],e[o].length>b&&(b=e[o].length);++l<e[o].length;)d=js(e[o][l]),!1!==r.alignDelimiters&&(p=i(d),h[l]=p,(void 0===u[l]||p>u[l])&&(u[l]=p)),f.push(d);s[o]=f,c[o]=h}if(l=-1,"object"==typeof n&&"length"in n)for(;++l<b;)a[l]=qs(n[l]);else for(y=qs(n);++l<b;)a[l]=y;for(l=-1,f=[],h=[];++l<b;)y=a[l],g="",v="",99===y?(g=":",v=":"):108===y?g=":":114===y&&(v=":"),p=!1===r.alignDelimiters?1:Math.max(1,u[l]-g.length-v.length),d=g+"-".repeat(p)+v,!1!==r.alignDelimiters&&(p=g.length+p+v.length,p>u[l]&&(u[l]=p),h[l]=p),f[l]=d;s.splice(1,0,f),c.splice(1,0,h),o=-1;const w=[];for(;++o<s.length;){for(f=s[o],h=c[o],l=-1,m=[];++l<b;)d=f[l]||"",g="",v="",!1!==r.alignDelimiters&&(p=u[l]-(h[l]||0),y=a[l],114===y?g=" ".repeat(p):99===y?p%2?(g=" ".repeat(p/2+.5),v=" ".repeat(p/2-.5)):(g=" ".repeat(p/2),v=g):v=" ".repeat(p)),!1===r.delimiterStart||l||m.push("|"),!1===r.padding||!1===r.alignDelimiters&&""===d||!1===r.delimiterStart&&!l||m.push(" "),!1!==r.alignDelimiters&&m.push(g),m.push(d),!1!==r.alignDelimiters&&m.push(v),!1!==r.padding&&m.push(" "),!1===r.delimiterEnd&&l===b-1||m.push("|");w.push(!1===r.delimiterEnd?m.join("").replace(/ +$/,""):m.join(""))}return w.join("\n")}(e,{align:t,alignDelimiters:n,padding:r,stringLength:i})}function c(e,t){const r=e.children;let n=-1;const i=[],a=t.enter("tableRow");for(;++n<r.length;)i[n]=o(r[n],0,t);return a(),i}}function Us(e,t,r){const n=function(e){const t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(r);let i=r.bulletCurrent||function(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(r);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===n||"mixed"===n&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const o=r.enter("listItem"),s=vs(ms(e,r),(function(e,t,r){if(t)return(r?"":" ".repeat(a))+e;return(r?i:i+" ".repeat(a-i.length))+e}));return o(),s}const Vs={exit:{taskListCheckValueChecked:Qs,taskListCheckValueUnchecked:Qs,paragraph:function(e){const t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],n=t.children,i=r.children[0];let a,o=-1;if(t&&"listItem"===t.type&&"boolean"==typeof t.checked&&i&&"text"===i.type){for(;++o<n.length;){const e=n[o];if("paragraph"===e.type){a=e;break}}a===r&&(i.value=i.value.slice(1),0===i.value.length?r.children.shift():(i.position.start.column++,i.position.start.offset++,r.position.start=Object.assign({},i.position.start)))}this.exit(e)}}},Hs={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,t,r){const n=e.children[0];let i=Us(e,t,r);"boolean"==typeof e.checked&&n&&"paragraph"===n.type&&(i=i.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(t){return t+"["+(e.checked?"x":" ")+"] "})));return i}}};function Qs(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}var Gs=Object.freeze({__proto__:null,default:function(e={}){const t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",function(e){return Di([To,{document:{91:{tokenize:Qo,continuation:{tokenize:Go},exit:Wo}},text:{91:{tokenize:Ho},93:{add:"after",tokenize:Uo,resolveTo:Vo}}},Ko(e),Jo,Zo])}(e)),r("fromMarkdownExtensions",[cs,{enter:{gfmFootnoteDefinition:function(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)},gfmFootnoteDefinitionLabelString:function(){this.buffer()},gfmFootnoteCall:function(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)},gfmFootnoteCallString:function(){this.buffer()}},exit:{gfmFootnoteDefinition:function(e){this.exit(e)},gfmFootnoteDefinitionLabelString:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=_a(this.sliceSerialize(e)).toLowerCase()},gfmFootnoteCall:function(e){this.exit(e)},gfmFootnoteCallString:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=_a(this.sliceSerialize(e)).toLowerCase()}}},Os,zs,Vs]),r("toMarkdownExtensions",function(e){return{extensions:[us,Fs(),Rs,$s(e),Hs]}}(e))}}),Ws=le(Gs);const Ks=/[\t ]*(?:\r?\n|\r)/g;var Js=Object.freeze({__proto__:null,default:function(){return e=>{Ps(e,"text",((e,t,r)=>{const n=[];let i=0;Ks.lastIndex=0;let a=Ks.exec(e.value);for(;a;){const t=a.index;i!==t&&n.push({type:"text",value:e.value.slice(i,t)}),n.push({type:"break"}),i=t+a[0].length,a=Ks.exec(e.value)}if(n.length>0&&r&&"number"==typeof t)return i<e.value.length&&n.push({type:"text",value:e.value.slice(i)}),r.children.splice(t,1,...n),t+n.length}))}}}),Ys=le(Js),Xs={},Zs={};function ec(e,t,r){var n,i,a,o,s,c="";for("string"!=typeof t&&(r=t,t=ec.defaultChars),void 0===r&&(r=!0),s=function(e){var t,r,n=Zs[e];if(n)return n;for(n=Zs[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),/^[0-9a-z]$/i.test(r)?n.push(r):n.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)n[e.charCodeAt(t)]=e[t];return n}(t),n=0,i=e.length;n<i;n++)if(a=e.charCodeAt(n),r&&37===a&&n+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(n+1,n+3)))c+=e.slice(n,n+3),n+=2;else if(a<128)c+=s[a];else if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&n+1<i&&(o=e.charCodeAt(n+1))>=56320&&o<=57343){c+=encodeURIComponent(e[n]+e[n+1]),n++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[n]);return c}ec.defaultChars=";/?:@&=+$,-_.!~*'()#",ec.componentChars="-_.!~*'()";var tc=ec,rc={};function nc(e,t){var r;return"string"!=typeof t&&(t=nc.defaultChars),r=function(e){var t,r,n=rc[e];if(n)return n;for(n=rc[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),n.push(r);for(t=0;t<e.length;t++)n[r=e.charCodeAt(t)]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return n}(t),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,n,i,a,o,s,c,u="";for(t=0,n=e.length;t<n;t+=3)(i=parseInt(e.slice(t+1,t+3),16))<128?u+=r[i]:192==(224&i)&&t+3<n&&128==(192&(a=parseInt(e.slice(t+4,t+6),16)))?(u+=(c=i<<6&1984|63&a)<128?"��":String.fromCharCode(c),t+=3):224==(240&i)&&t+6<n&&(a=parseInt(e.slice(t+4,t+6),16),o=parseInt(e.slice(t+7,t+9),16),128==(192&a)&&128==(192&o))?(u+=(c=i<<12&61440|a<<6&4032|63&o)<2048||c>=55296&&c<=57343?"���":String.fromCharCode(c),t+=6):240==(248&i)&&t+9<n&&(a=parseInt(e.slice(t+4,t+6),16),o=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128==(192&a)&&128==(192&o)&&128==(192&s))?((c=i<<18&1835008|a<<12&258048|o<<6&4032|63&s)<65536||c>1114111?u+="����":(c-=65536,u+=String.fromCharCode(55296+(c>>10),56320+(1023&c))),t+=9):u+="�";return u}))}nc.defaultChars=";/?:@&=+$,#",nc.componentChars="";var ic=nc;function ac(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var oc=/^([a-z0-9.+-]+:)/i,sc=/:[0-9]*$/,cc=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,uc=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),lc=["'"].concat(uc),fc=["%","/","?",";","#"].concat(lc),hc=["/","?","#"],pc=/^[+a-z0-9A-Z_-]{0,63}$/,dc=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,mc={javascript:!0,"javascript:":!0},gc={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};ac.prototype.parse=function(e,t){var r,n,i,a,o,s=e;if(s=s.trim(),!t&&1===e.split("#").length){var c=cc.exec(s);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var u=oc.exec(s);if(u&&(i=(u=u[0]).toLowerCase(),this.protocol=u,s=s.substr(u.length)),(t||u||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(o="//"===s.substr(0,2))||u&&mc[u]||(s=s.substr(2),this.slashes=!0)),!mc[u]&&(o||u&&!gc[u])){var l,f,h=-1;for(r=0;r<hc.length;r++)-1!==(a=s.indexOf(hc[r]))&&(-1===h||a<h)&&(h=a);for(-1!==(f=-1===h?s.lastIndexOf("@"):s.lastIndexOf("@",h))&&(l=s.slice(0,f),s=s.slice(f+1),this.auth=l),h=-1,r=0;r<fc.length;r++)-1!==(a=s.indexOf(fc[r]))&&(-1===h||a<h)&&(h=a);-1===h&&(h=s.length),":"===s[h-1]&&h--;var p=s.slice(0,h);s=s.slice(h),this.parseHost(p),this.hostname=this.hostname||"";var d="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!d){var m=this.hostname.split(/\./);for(r=0,n=m.length;r<n;r++){var g=m[r];if(g&&!g.match(pc)){for(var v="",y=0,b=g.length;y<b;y++)g.charCodeAt(y)>127?v+="x":v+=g[y];if(!v.match(pc)){var w=m.slice(0,r),x=m.slice(r+1),k=g.match(dc);k&&(w.push(k[1]),x.unshift(k[2])),x.length&&(s=x.join(".")+s),this.hostname=w.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),d&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var E=s.indexOf("#");-1!==E&&(this.hash=s.substr(E),s=s.slice(0,E));var S=s.indexOf("?");return-1!==S&&(this.search=s.substr(S),s=s.slice(0,S)),s&&(this.pathname=s),gc[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},ac.prototype.parseHost=function(e){var t=sc.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var vc=function(e,t){if(e&&e instanceof ac)return e;var r=new ac;return r.parse(e,t),r};function yc(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function bc(e,t,r){const n=yc(r),i='"'===n?"Quote":"Apostrophe",a=r.enter("image");let o=r.enter("label"),s="!["+xs(r,e.alt,{before:"[",after:"]"})+"](";return o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),s+="<"+xs(r,e.url,{before:"<",after:">"})+">"):(o=r.enter("destinationRaw"),s+=xs(r,e.url,{before:"(",after:e.title?" ":")"})),o(),e.title&&(o=r.enter("title"+i),s+=" "+n+xs(r,e.title,{before:n,after:n})+n,o()),s+=")",a(),s}Xs.encode=tc,Xs.decode=ic,Xs.format=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""},Xs.parse=vc,bc.peek=function(){return"!"};var wc=le(Object.freeze({__proto__:null,image:bc})),xc=le(Ka);var kc=le(Object.freeze({__proto__:null,types:{data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"}}));var Ec=le(Object.freeze({__proto__:null,codes:{carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533}}));var Sc=le(Object.freeze({__proto__:null,constants:{attentionSideBefore:1,attentionSideAfter:2,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupWhitespace:1,characterGroupPunctuation:2,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeContent:"content",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlRaw:1,htmlComment:2,htmlInstruction:3,htmlDeclaration:4,htmlCdata:5,htmlBasic:6,htmlComplete:7,htmlRawSizeMax:8,linkResourceDestinationBalanceMax:3,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4}})),Pc=le(Aa),_c=le(Pa),Ac=le(ba),Cc=le(Qi),Fc=le(xa),Dc=le(Ea),Oc=le(_s);var Rc=Object.freeze({__proto__:null,paragraph:function(e,t,r){const n=r.enter("paragraph"),i=r.enter("phrasing"),a=Ds(e,r,{before:"\n",after:"\n"});return i(),n(),a}}),Tc=le(Rc);var Ic=Object.freeze({__proto__:null,heading:function(e,t,r){const n=Math.max(Math.min(6,e.depth||1),1);if(function(e,t){let r=!1;return Ps(e,(e=>{if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,!1})),Boolean((!e.depth||e.depth<3)&&Si(e)&&(t.options.setext||r))}(e,r)){const t=r.enter("headingSetext"),i=r.enter("phrasing"),a=Ds(e,r,{before:"\n",after:"\n"});return i(),t(),a+"\n"+(1===n?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const i="#".repeat(n),a=r.enter("headingAtx"),o=r.enter("phrasing");let s=Ds(e,r,{before:"# ",after:"\n"});return/^[\t ]/.test(s)&&(s="&#x"+s.charCodeAt(0).toString(16).toUpperCase()+";"+s.slice(1)),s=s?i+" "+s:i,r.options.closeAtx&&(s+=" "+i),o(),a(),s}}),jc=le(Ic),Lc=le(Wi);function qc(e,t,r){return">"+(r?"":" ")+e}var zc,Mc=Object.freeze({__proto__:null,blockquote:function(e,t,r){const n=r.enter("blockquote"),i=vs(ms(e,r),qc);return n(),i}}),Nc=le(Mc),Bc={exports:{}};zc=Bc,function(){var e;function t(e){for(var t,r,n,i,a=1,o=[].slice.call(arguments),s=0,c=e.length,u="",l=!1,f=!1,h=function(){return o[a++]},p=function(){for(var r="";/\d/.test(e[s]);)r+=e[s++],t=e[s];return r.length>0?parseInt(r):null};s<c;++s)if(t=e[s],l)switch(l=!1,"."==t?(f=!1,t=e[++s]):"0"==t&&"."==e[s+1]?(f=!0,t=e[s+=2]):f=!0,i=p(),t){case"b":u+=parseInt(h(),10).toString(2);break;case"c":u+="string"==typeof(r=h())||r instanceof String?r:String.fromCharCode(parseInt(r,10));break;case"d":u+=parseInt(h(),10);break;case"f":n=String(parseFloat(h()).toFixed(i||6)),u+=f?n:n.replace(/^0/,"");break;case"j":u+=JSON.stringify(h());break;case"o":u+="0"+parseInt(h(),10).toString(8);break;case"s":u+=h();break;case"x":u+="0x"+parseInt(h(),10).toString(16);break;case"X":u+="0x"+parseInt(h(),10).toString(16).toUpperCase();break;default:u+=t}else"%"===t?l=!0:u+=t;return u}(e=zc.exports=t).format=t,e.vsprintf=function(e,r){return t.apply(null,[e].concat(r))},"undefined"!=typeof console&&"function"==typeof console.log&&(e.printf=function(){console.log(t.apply(null,arguments))})}();var $c=Bc.exports;const Uc=Object.assign(Vc(Error),{eval:Vc(EvalError),range:Vc(RangeError),reference:Vc(ReferenceError),syntax:Vc(SyntaxError),type:Vc(TypeError),uri:Vc(URIError)});function Vc(e){return t.displayName=e.displayName||e.name,t;function t(t,...r){const n=t?$c(t,...r):t;return new e(n)}}const Hc={}.hasOwnProperty,Qc={yaml:"-",toml:"+"};function Gc(e="yaml"){const t=[];let r=-1;for(Array.isArray(e)||(e=[e]);++r<e.length;)t[r]=Wc(e[r]);return t}function Wc(e){let t=e;if("string"==typeof t){if(!Hc.call(Qc,t))throw Uc("Missing matter definition for `%s`",t);t={type:t,marker:Qc[t]}}else if("object"!=typeof t)throw Uc("Expected matter to be an object, not `%j`",t);if(!Hc.call(t,"type"))throw Uc("Missing `type` in matter `%j`",t);if(!Hc.call(t,"fence")&&!Hc.call(t,"marker"))throw Uc("Missing `marker` or `fence` in matter `%j`",t);return t}function Kc(e){const t=e.type,r=e.anywhere,n=t+"Value",i=t+"Fence",a=i+"Sequence",o={tokenize:function(e,t,r){let n=0;return function(t){if(t===s.charCodeAt(n))return e.enter(i),e.enter(a),o(t);return r(t)};function o(t){return n===s.length?(e.exit(a),$i(t)?(e.enter("whitespace"),c(t)):u(t)):t===s.charCodeAt(n++)?(e.consume(t),o):r(t)}function c(t){return $i(t)?(e.consume(t),c):(e.exit("whitespace"),u(t))}function u(n){return null===n||Bi(n)?(e.exit(i),t(n)):r(n)}},partial:!0};let s;return{tokenize:function(i,a,c){const u=this;return function(n){const a=u.now();if(1!==a.column||!r&&1!==a.line)return c(n);return i.enter(t),s=Jc(e,"open"),i.attempt(o,l,c)(n)};function l(t){return s=Jc(e,"close"),p(t)}function f(e){return null===e||Bi(e)?p(e):(i.enter(n),h(e))}function h(e){return null===e||Bi(e)?(i.exit(n),p(e)):(i.consume(e),h)}function p(e){return null===e?c(e):(i.enter("lineEnding"),i.consume(e),i.exit("lineEnding"),i.attempt(o,d,f))}function d(e){return i.exit(t),a(e)}},concrete:!0}}function Jc(e,t){return e.marker?Yc(e.marker,t).repeat(3):Yc(e.fence,t)}function Yc(e,t){return"string"==typeof e?e:e[t]}function Xc(e){return function(t){this.enter({type:e.type,value:""},t),this.buffer()}}function Zc(e){const t=this.resume();this.exit(e).value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function eu(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function tu(e){const t=ru(e,"open"),r=ru(e,"close");return function(e){return t+(e.value?"\n"+e.value:"")+"\n"+r}}function ru(e,t){return e.marker?nu(e.marker,t).repeat(3):nu(e.fence,t)}function nu(e,t){return"string"==typeof e?e:e[t]}var iu=Object.freeze({__proto__:null,default:function(e="yaml"){const t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",function(e){const t=Gc(e),r={};let n,i,a=-1;for(;++a<t.length;)n=t[a],i=Jc(n,"open").charCodeAt(0),i in r?r[i].push(Kc(n)):r[i]=[Kc(n)];return{flow:r}}(e)),r("fromMarkdownExtensions",function(e){const t=Gc(e),r={},n={};let i=-1;for(;++i<t.length;){const e=t[i];r[e.type]=Xc(e),n[e.type]=Zc,n[e.type+"Value"]=eu}return{enter:r,exit:n}}(e)),r("toMarkdownExtensions",function(e){const t=[],r={},n=Gc(e);let i=-1;for(;++i<n.length;){const e=n[i];r[e.type]=tu(e),t.push({atBreak:!0,character:ru(e,"open").charAt(0)})}return{unsafe:t,handlers:r}}(e))}}),au=le(iu);function ou(e,t,r,n,i,a,o,s,c,u,l,f,h,p,d){let m,g;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),v};function v(t){return 35===t?(m=o,y(t)):46===t?(m=s,y(t)):58===t||95===t||Ti(t)?(e.enter(a),e.enter(c),e.consume(t),x):d&&$i(t)?Gi(e,v,"whitespace")(t):!d&&Ni(t)?Sa(e,v)(t):F(t)}function y(t){return e.enter(a),e.enter(m),e.enter(m+"Marker"),e.consume(t),e.exit(m+"Marker"),b}function b(t){return null===t||34===t||35===t||39===t||46===t||60===t||61===t||62===t||96===t||125===t||Ni(t)?r(t):(e.enter(m+"Value"),e.consume(t),w)}function w(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t?r(t):35===t||46===t||125===t||Ni(t)?(e.exit(m+"Value"),e.exit(m),e.exit(a),v(t)):(e.consume(t),w)}function x(t){return 45===t||46===t||58===t||95===t||Li(t)?(e.consume(t),x):(e.exit(c),d&&$i(t)?Gi(e,k,"whitespace")(t):!d&&Ni(t)?Sa(e,k)(t):k(t))}function k(t){return 61===t?(e.enter(u),e.consume(t),e.exit(u),E):(e.exit(a),v(t))}function E(t){return null===t||60===t||61===t||62===t||96===t||125===t||d&&Bi(t)?r(t):34===t||39===t?(e.enter(l),e.enter(h),e.consume(t),e.exit(h),g=t,P):d&&$i(t)?Gi(e,E,"whitespace")(t):!d&&Ni(t)?Sa(e,E)(t):(e.enter(f),e.enter(p),e.consume(t),g=void 0,S)}function S(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t?r(t):125===t||Ni(t)?(e.exit(p),e.exit(f),e.exit(a),v(t)):(e.consume(t),S)}function P(t){return t===g?(e.enter(h),e.consume(t),e.exit(h),e.exit(l),e.exit(a),C):(e.enter(f),_(t))}function _(t){return t===g?(e.exit(f),P(t)):null===t?r(t):Bi(t)?d?r(t):Sa(e,_)(t):(e.enter(p),e.consume(t),A)}function A(t){return t===g||null===t||Bi(t)?(e.exit(p),_(t)):(e.consume(t),A)}function C(e){return 125===e||Ni(e)?v(e):F(e)}function F(a){return 125===a?(e.enter(i),e.consume(a),e.exit(i),e.exit(n),t):r(a)}}function su(e,t,r,n,i,a,o){let s=0,c=0;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),u};function u(r){return 93===r?(e.enter(i),e.consume(r),e.exit(i),e.exit(n),t):(e.enter(a),l(r))}function l(t){return null===t||s>999?r(t):93!==t||c--?Bi(t)?o?r(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("chunkText",{contentType:"text"}),f(t)):h(t)}function f(t){return null===t||Bi(t)||s>999?(e.exit("chunkText"),l(t)):91===t&&++c>3?r(t):93!==t||c--?(e.consume(t),92===t?p:f):(e.exit("chunkText"),h(t))}function h(r){return e.exit(a),e.enter(i),e.consume(r),e.exit(i),e.exit(n),t}function p(t){return 91===t||92===t||93===t?(e.consume(t),s++,f):f(t)}}function cu(e,t,r,n){const i=this;return function(t){if(Ti(t))return e.enter(n),e.consume(t),a;return r(t)};function a(o){return 45===o||95===o||Li(o)?(e.consume(o),a):(e.exit(n),45===i.previous||95===i.previous?r(o):t(o))}}const uu={tokenize:function(e,t,r){const n=this,i=n.events[n.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0;let o,s=0;return function(t){return e.enter("directiveContainer"),e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),c(t)};function c(t){return 58===t?(e.consume(t),s++,c):s<3?r(t):(e.exit("directiveContainerSequence"),cu.call(n,e,u,r,"directiveContainerName")(t))}function u(t){return 91===t?e.attempt(lu,l,l)(t):l(t)}function l(t){return 123===t?e.attempt(fu,f,f)(t):f(t)}function f(t){return Gi(e,h,"whitespace")(t)}function h(i){return e.exit("directiveContainerFence"),null===i?p(i):Bi(i)?n.interrupt?t(i):e.attempt(hu,d,p)(i):r(i)}function p(r){return e.exit("directiveContainer"),t(r)}function d(r){return null===r?(e.exit("directiveContainer"),t(r)):(e.enter("directiveContainerContent"),m(r))}function m(t){return null===t?w(t):e.attempt({tokenize:x,partial:!0},w,a?Gi(e,g,"linePrefix",a+1):g)(t)}function g(t){if(null===t)return w(t);const r=e.enter("chunkDocument",{contentType:"document",previous:o});return o&&(o.next=r),o=r,v(t)}function v(t){if(null===t){const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,w(t)}return Bi(t)?e.check(hu,y,b)(t):(e.consume(t),v)}function y(t){e.consume(t);const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,m}function b(t){const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,w(t)}function w(r){return e.exit("directiveContainerContent"),e.exit("directiveContainer"),t(r)}function x(e,t,r){let n=0;return Gi(e,(function(t){return e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),i(t)}),"linePrefix",4);function i(t){return 58===t?(e.consume(t),n++,i):n<s?r(t):(e.exit("directiveContainerSequence"),Gi(e,a,"whitespace")(t))}function a(n){return null===n||Bi(n)?(e.exit("directiveContainerFence"),t(n)):r(n)}}},concrete:!0},lu={tokenize:function(e,t,r){return su(e,t,r,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)},partial:!0},fu={tokenize:function(e,t,r){return ou(e,t,r,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)},partial:!0},hu={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0};const pu={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("directiveLeaf"),e.enter("directiveLeafSequence"),e.consume(t),i};function i(t){return 58===t?(e.consume(t),e.exit("directiveLeafSequence"),cu.call(n,e,a,r,"directiveLeafName")):r(t)}function a(t){return 91===t?e.attempt(du,o,o)(t):o(t)}function o(t){return 123===t?e.attempt(mu,s,s)(t):s(t)}function s(t){return Gi(e,c,"whitespace")(t)}function c(n){return null===n||Bi(n)?(e.exit("directiveLeaf"),t(n)):r(n)}}},du={tokenize:function(e,t,r){return su(e,t,r,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)},partial:!0},mu={tokenize:function(e,t,r){return ou(e,t,r,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)},partial:!0};const gu={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("directiveText"),e.enter("directiveTextMarker"),e.consume(t),e.exit("directiveTextMarker"),cu.call(n,e,i,r,"directiveTextName")};function i(t){return 58===t?r(t):91===t?e.attempt(vu,a,a)(t):a(t)}function a(t){return 123===t?e.attempt(yu,o,o)(t):o(t)}function o(r){return e.exit("directiveText"),t(r)}},previous:function(e){return 58!==e||"characterEscape"===this.events[this.events.length-1][1].type}},vu={tokenize:function(e,t,r){return su(e,t,r,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")},partial:!0},yu={tokenize:function(e,t,r){return ou(e,t,r,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")},partial:!0};const bu=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],wu={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function xu(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function ku(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Eu(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||xu(e)}const Su=String.fromCharCode,Pu=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function _u(e,t={}){const r="string"==typeof t.additional?t.additional.charCodeAt(0):t.additional,n=[];let i,a,o=0,s=-1,c="";t.position&&("start"in t.position||"indent"in t.position?(a=t.position.indent,i=t.position.start):i=t.position);let u,l=(i?i.line:0)||1,f=(i?i.column:0)||1,h=p();for(o--;++o<=e.length;)if(10===u&&(f=(a?a[s]:0)||1),u=e.charCodeAt(o),38===u){const i=e.charCodeAt(o+1);if(9===i||10===i||12===i||32===i||38===i||60===i||Number.isNaN(i)||r&&i===r){c+=Su(u),f++;continue}const a=o+1;let s,l=a,g=a;if(35===i){g=++l;const t=e.charCodeAt(g);88===t||120===t?(s="hexadecimal",g=++l):s="decimal"}else s="named";let v="",y="",b="";const w="named"===s?Eu:"decimal"===s?xu:ku;for(g--;++g<=e.length;){const t=e.charCodeAt(g);if(!w(t))break;b+=Su(t),"named"===s&&bu.includes(b)&&(v=b,y=ca(b))}let x=59===e.charCodeAt(g);if(x){g++;const e="named"===s&&ca(b);e&&(v=b,y=e)}let k=1+g-a,E="";if(x||!1!==t.nonTerminated)if(b)if("named"===s){if(x&&!y)d(5,1);else if(v!==b&&(g=l+v.length,k=1+g-l,x=!1),!x){const r=v?1:3;if(t.attribute){const t=e.charCodeAt(g);61===t?(d(r,k),y=""):Eu(t)?y="":d(r,k)}else d(r,k)}E=y}else{x||d(2,k);let e=Number.parseInt(b,"hexadecimal"===s?16:10);if(Au(e))d(7,k),E=Su(65533);else if(e in wu)d(6,k),E=wu[e];else{let t="";Cu(e)&&d(6,k),e>65535&&(e-=65536,t+=Su(e>>>10|55296),e=56320|1023&e),E=t+Su(e)}}else"named"!==s&&d(4,k);else;if(E){m(),h=p(),o=g-1,f+=g-a+1,n.push(E);const r=p();r.offset++,t.reference&&t.reference.call(t.referenceContext,E,{start:h,end:r},e.slice(a-1,g)),h=r}else b=e.slice(a-1,g),c+=b,f+=b.length,o=g-1}else 10===u&&(l++,s++,f=0),Number.isNaN(u)?m():(c+=Su(u),f++);return n.join("");function p(){return{line:l,column:f,offset:o+((i?i.offset:0)||0)}}function d(e,r){let n;t.warning&&(n=p(),n.column+=r,n.offset+=r,t.warning.call(t.warningContext,Pu[e],n,e))}function m(){c&&(n.push(c),t.text&&t.text.call(t.textContext,c,{start:h,end:p()}),c="")}}function Au(e){return e>=55296&&e<=57343||e>1114111}function Cu(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}function Fu(e,t){return e=e.replace(t.subset?function(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(t.subset):/["&'<>`]/g,r),t.subset||t.escapeOnly?e:e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,r,n){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,n.charCodeAt(r+2),t)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,r);function r(e,r,n){return t.format(e.charCodeAt(0),n.charCodeAt(r+1),t)}}function Du(e){return"&#x"+e.toString(16).toUpperCase()+";"}const Ou=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);const i=Yr(t),a=n?-1:1;!function e(o,s,c){const u="object"==typeof o&&null!==o?o:{};let l;"string"==typeof u.type&&(l="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0,Object.defineProperty(h,"name",{value:"node ("+(f=u.type+(l?"<"+l+">":""),"[33m"+f+"[39m)")}));var f;return h;function h(){let u,l,f,h=[];if((!t||i(o,s,c[c.length-1]||null))&&(h=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(r(o,c)),false===h[0]))return h;if(o.children&&"skip"!==h[0])for(l=(n?o.children.length:-1)+a,f=c.concat(o);l>-1&&l<o.children.length;){if(u=e(o.children[l],l,f)(),false===u[0])return u;l="number"==typeof u[1]?u[1]:l+a}return h}}(e,null,[])()};const Ru={}.hasOwnProperty,Tu=/^[^\t\n\r "#'.<=>`}]+$/;Hu.peek=function(){return":"};const Iu={canContainEols:["textDirective"],enter:{directiveContainer:function(e){Lu.call(this,"containerDirective",e)},directiveContainerAttributes:zu,directiveContainerLabel:function(e){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},e)},directiveLeaf:function(e){Lu.call(this,"leafDirective",e)},directiveLeafAttributes:zu,directiveText:function(e){Lu.call(this,"textDirective",e)},directiveTextAttributes:zu},exit:{directiveContainer:Vu,directiveContainerAttributeClassValue:Nu,directiveContainerAttributeIdValue:Mu,directiveContainerAttributeName:$u,directiveContainerAttributeValue:Bu,directiveContainerAttributes:Uu,directiveContainerLabel:function(e){this.exit(e)},directiveContainerName:qu,directiveLeaf:Vu,directiveLeafAttributeClassValue:Nu,directiveLeafAttributeIdValue:Mu,directiveLeafAttributeName:$u,directiveLeafAttributeValue:Bu,directiveLeafAttributes:Uu,directiveLeafName:qu,directiveText:Vu,directiveTextAttributeClassValue:Nu,directiveTextAttributeIdValue:Mu,directiveTextAttributeName:$u,directiveTextAttributeValue:Bu,directiveTextAttributes:Uu,directiveTextName:qu}},ju={unsafe:[{character:"\r",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{character:"\n",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{before:"[^:]",character:":",after:"[A-Za-z]",inConstruct:["phrasing"]},{atBreak:!0,character:":",after:":"}],handlers:{containerDirective:Hu,leafDirective:Hu,textDirective:Hu}};function Lu(e,t){this.enter({type:e,name:"",attributes:{},children:[]},t)}function qu(e){this.stack[this.stack.length-1].name=this.sliceSerialize(e)}function zu(){this.setData("directiveAttributes",[]),this.buffer()}function Mu(e){this.getData("directiveAttributes").push(["id",_u(this.sliceSerialize(e))])}function Nu(e){this.getData("directiveAttributes").push(["class",_u(this.sliceSerialize(e))])}function Bu(e){const t=this.getData("directiveAttributes");t[t.length-1][1]=_u(this.sliceSerialize(e))}function $u(e){this.getData("directiveAttributes").push([this.sliceSerialize(e),""])}function Uu(){const e=this.getData("directiveAttributes"),t={};let r=-1;for(;++r<e.length;){const n=e[r];"class"===n[0]&&t.class?t.class+=" "+n[1]:t[n[0]]=n[1]}this.setData("directiveAttributes"),this.resume();this.stack[this.stack.length-1].attributes=t}function Vu(e){this.exit(e)}function Hu(e,t,r){const n=function(e){let t=0;"containerDirective"===e.type?(Ou(e,"containerDirective",r),t+=3):t="leafDirective"===e.type?2:1;return":".repeat(t);function r(e,r){let n=r.length,i=0;for(;n--;)"containerDirective"===r[n].type&&i++;i>t&&(t=i)}}(e),i=r.enter(e.type);let a=n+(e.name||"")+function(e,t){let r=e;if("containerDirective"===e.type){const t=(e.children||[])[0];if(!Qu(t))return"";r=t}const n=t.enter("label"),i=t.enter(e.type+"Label"),a=Ds(r,t,{before:"[",after:"]"});return i(),n(),a?"["+a+"]":""}(e,r)+function(e,t){const r=yc(t),n="textDirective"===e.type?[r]:[r,"\n","\r"],i=e.attributes||{},a=[];let o,s,c,u;for(u in i)if(Ru.call(i,u)&&void 0!==i[u]&&null!==i[u]){const e=String(i[u]);if("id"===u)c=Tu.test(e)?"#"+e:l("id",e);else if("class"===u){const t=e.split(/[\t\n\r ]+/g),r=[],n=[];let i=-1;for(;++i<t.length;)(Tu.test(t[i])?n:r).push(t[i]);o=r.length>0?l("class",r.join(" ")):"",s=n.length>0?"."+n.join("."):""}else a.push(l(u,e))}o&&a.unshift(o);s&&a.unshift(s);c&&a.unshift(c);return a.length>0?"{"+a.join(" ")+"}":"";function l(e,t){return e+(t?"="+r+function(e,t){return Fu(e,Object.assign({format:Du},t))}(t,{subset:n})+r:"")}}(e,r);if("containerDirective"===e.type){const t=function(e,t){Qu((e.children||[])[0])&&(e=Object.assign({},e,{children:e.children.slice(1)}));return ms(e,t)}(e,r);t&&(a+="\n"+t),a+="\n"+n}return i(),a}function Qu(e){return Boolean(e&&"paragraph"===e.type&&e.data&&e.data.directiveLabel)}var Gu=Object.freeze({__proto__:null,default:function(){const e=this.data();function t(t,r){(e[t]?e[t]:e[t]=[]).push(r)}t("micromarkExtensions",{text:{58:gu},flow:{58:[uu,pu]}}),t("fromMarkdownExtensions",Iu),t("toMarkdownExtensions",ju)}}),Wu=le(Gu);const Ku={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533};var Ju=Object.freeze({__proto__:null,remarkHeadingId:function(){const e=this.data();function t(t,r){(e[t]||(e[t]=[])).push(r)}return t("micromarkExtensions",function(){const e={text:{[Ku.leftCurlyBrace]:{name:"headingIdMaybeStart",tokenize:(e,t,r)=>function(n){return e.attempt({tokenize(e,t,r){return function(t){if(t!==Ku.leftCurlyBrace)throw new Error(`Unexpected code ${t}`);return e.enter("id"),e.enter("idMarker"),e.consume(t),n};function n(t){return t!==Ku.numberSign?r(t):(e.consume(t),e.exit("idMarker"),e.enter("idString"),e.enter("chunkString",{contentType:"string"}),i)}function i(n){return[Ku.carriageReturn,Ku.lineFeed,Ku.carriageReturnLineFeed,null,Ku.backslash,Ku.leftCurlyBrace].includes(n)?r(n):n===Ku.rightCurlyBrace?(e.exit("chunkString"),e.exit("idString"),e.enter("idMarker"),e.consume(n),e.exit("idMarker"),e.exit("id"),t):(e.consume(n),i)}}},t,r)(n)}}}};return e}()),t("fromMarkdownExtensions",{enter:{idString(e){this.enter({type:"idString",value:null},e),this.buffer()}},exit:{idString(e){const t=this.resume();this.exit(e).value=t}}}),function(e){Ps(e,"idString",((e,t,r)=>{if(!r)throw new Error("Unexpected idString under no parent.");if("heading"!==r.type)throw new Error(`Unexpected node ${e} under ${r}`)})),Ps(e,"heading",(e=>{const t=e.children.filter((e=>"idString"===e.type));if(0==t.length)return;if(t.length>1)throw new Error(`Found ${t.length} ids under heading ${e}.`);const r=t[0];if(r.value&&r.value.length>0){e.data||(e.data={}),e.data.hProperties||(e.data.hProperties={}),e.data.id=e.data.hProperties.id=r.value,r.value="";const t=e.children.indexOf(r);if(t>=1){const r=e.children[t-1];"text"===r.type&&(r.value=r.value.trimEnd())}e.children.splice(t,1)}}))}}}),Yu=le(Ju),Xu=le(en),Zu={exports:{}},el=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}},tl=el,rl=Object.prototype.toString;function nl(e){return"[object Array]"===rl.call(e)}function il(e){return void 0===e}function al(e){return null!==e&&"object"==typeof e}function ol(e){if("[object Object]"!==rl.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function sl(e){return"[object Function]"===rl.call(e)}function cl(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),nl(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var ul={isArray:nl,isArrayBuffer:function(e){return"[object ArrayBuffer]"===rl.call(e)},isBuffer:function(e){return null!==e&&!il(e)&&null!==e.constructor&&!il(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:al,isPlainObject:ol,isUndefined:il,isDate:function(e){return"[object Date]"===rl.call(e)},isFile:function(e){return"[object File]"===rl.call(e)},isBlob:function(e){return"[object Blob]"===rl.call(e)},isFunction:sl,isStream:function(e){return al(e)&&sl(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:cl,merge:function e(){var t={};function r(r,n){ol(t[n])&&ol(r)?t[n]=e(t[n],r):ol(r)?t[n]=e({},r):nl(r)?t[n]=r.slice():t[n]=r}for(var n=0,i=arguments.length;n<i;n++)cl(arguments[n],r);return t},extend:function(e,t,r){return cl(t,(function(t,n){e[n]=r&&"function"==typeof t?tl(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}},ll=ul;function fl(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var hl=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(ll.isURLSearchParams(t))n=t.toString();else{var i=[];ll.forEach(t,(function(e,t){null!=e&&(ll.isArray(e)?t+="[]":e=[e],ll.forEach(e,(function(e){ll.isDate(e)?e=e.toISOString():ll.isObject(e)&&(e=JSON.stringify(e)),i.push(fl(t)+"="+fl(e))})))})),n=i.join("&")}if(n){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},pl=ul;function dl(){this.handlers=[]}dl.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},dl.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},dl.prototype.forEach=function(e){pl.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var ml=dl,gl=ul,vl=function(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},yl=vl,bl=function(e,t,r,n,i){var a=new Error(e);return yl(a,t,r,n,i)},wl=bl,xl=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(wl("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)},kl=ul,El=kl.isStandardBrowserEnv()?{write:function(e,t,r,n,i,a){var o=[];o.push(e+"="+encodeURIComponent(t)),kl.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),kl.isString(n)&&o.push("path="+n),kl.isString(i)&&o.push("domain="+i),!0===a&&o.push("secure"),document.cookie=o.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},Sl=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)},Pl=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},_l=function(e,t){return e&&!Sl(t)?Pl(e,t):t},Al=ul,Cl=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],Fl=ul,Dl=Fl.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=Fl.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0};function Ol(e){this.message=e}Ol.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Ol.prototype.__CANCEL__=!0;var Rl,Tl=Ol,Il=ul,jl=xl,Ll=El,ql=hl,zl=_l,Ml=function(e){var t,r,n,i={};return e?(Al.forEach(e.split("\n"),(function(e){if(n=e.indexOf(":"),t=Al.trim(e.substr(0,n)).toLowerCase(),r=Al.trim(e.substr(n+1)),t){if(i[t]&&Cl.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([r]):i[t]?i[t]+", "+r:r}})),i):i},Nl=Dl,Bl=bl,$l=Mf,Ul=Tl,Vl=function(e){return new Promise((function(t,r){var n,i=e.data,a=e.headers,o=e.responseType;function s(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}Il.isFormData(i)&&delete a["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var u=e.auth.username||"",l=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.Authorization="Basic "+btoa(u+":"+l)}var f=zl(e.baseURL,e.url);function h(){if(c){var n="getAllResponseHeaders"in c?Ml(c.getAllResponseHeaders()):null,i={data:o&&"text"!==o&&"json"!==o?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c};jl((function(e){t(e),s()}),(function(e){r(e),s()}),i),c=null}}if(c.open(e.method.toUpperCase(),ql(f,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(h)},c.onabort=function(){c&&(r(Bl("Request aborted",e,"ECONNABORTED",c)),c=null)},c.onerror=function(){r(Bl("Network Error",e,null,c)),c=null},c.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||$l.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(Bl(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},Il.isStandardBrowserEnv()){var p=(e.withCredentials||Nl(f))&&e.xsrfCookieName?Ll.read(e.xsrfCookieName):void 0;p&&(a[e.xsrfHeaderName]=p)}"setRequestHeader"in c&&Il.forEach(a,(function(e,t){void 0===i&&"content-type"===t.toLowerCase()?delete a[t]:c.setRequestHeader(t,e)})),Il.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),o&&"json"!==o&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(n=function(e){c&&(r(!e||e&&e.type?new Ul("canceled"):e),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n))),i||(i=null),c.send(i)}))},Hl={exports:{}},Ql=M.default,Gl=Ql.URL,Wl=B.default,Kl=$.default,Jl=U.default.Writable,Yl=N.default,Xl=function(){if(!Rl){try{Rl=require("debug")("follow-redirects")}catch(e){}"function"!=typeof Rl&&(Rl=function(){})}Rl.apply(null,arguments)},Zl=["abort","aborted","connect","error","socket","timeout"],ef=Object.create(null);Zl.forEach((function(e){ef[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}}));var tf=ff("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),rf=ff("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),nf=ff("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),af=ff("ERR_STREAM_WRITE_AFTER_END","write after end");function of(e,t){Jl.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(e){r._processResponse(e)},this._performRequest()}function sf(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach((function(n){var i=n+":",a=r[i]=e[n],o=t[n]=Object.create(a);Object.defineProperties(o,{request:{value:function(e,n,a){if("string"==typeof e){var o=e;try{e=uf(new Gl(o))}catch(t){e=Ql.parse(o)}}else Gl&&e instanceof Gl?e=uf(e):(a=n,n=e,e={protocol:i});return"function"==typeof n&&(a=n,n=null),(n=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,n)).nativeProtocols=r,Yl.equal(n.protocol,i,"protocol mismatch"),Xl("options",n),new of(n,a)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,r){var n=o.request(e,t,r);return n.end(),n},configurable:!0,enumerable:!0,writable:!0}})})),t}function cf(){}function uf(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(t.port=Number(e.port)),t}function lf(e,t){var r;for(var n in t)e.test(n)&&(r=t[n].toString().trim(),delete t[n]);return r}function ff(e,t){function r(e){Error.captureStackTrace(this,this.constructor),e?(this.message=t+": "+e.message,this.cause=e):this.message=t}return r.prototype=new Error,r.prototype.constructor=r,r.prototype.name="Error ["+e+"]",r.prototype.code=e,r}function hf(e){for(var t=0;t<Zl.length;t++)e.removeListener(Zl[t],ef[Zl[t]]);e.on("error",cf),e.abort()}of.prototype=Object.create(Jl.prototype),of.prototype.abort=function(){hf(this._currentRequest),this.emit("abort")},of.prototype.write=function(e,t,r){if(this._ending)throw new af;if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");"function"==typeof t&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new nf),this.abort()):r&&r()},of.prototype.end=function(e,t,r){if("function"==typeof e?(r=e,e=t=null):"function"==typeof t&&(r=t,t=null),e){var n=this,i=this._currentRequest;this.write(e,t,(function(){n._ended=!0,i.end(null,null,r)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,r)},of.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},of.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},of.prototype.setTimeout=function(e,t){var r=this;function n(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function i(t){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout((function(){r.emit("timeout"),a()}),e),n(t)}function a(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",a),r.removeListener("error",a),r.removeListener("response",a),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",a),this.on("error",a),this.on("response",a),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){of.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(of.prototype,e,{get:function(){return this._currentRequest[e]}})})),of.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},of.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=Ql.format(this._options),n._redirectable=this;for(var i=0;i<Zl.length;i++)n.on(Zl[i],ef[Zl[i]]);if(this._isRedirect){var a=0,o=this,s=this._requestBodyBuffers;!function e(t){if(n===o._currentRequest)if(t)o.emit("error",t);else if(a<s.length){var r=s[a++];n.finished||n.write(r.data,r.encoding,e)}else o._ended&&n.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+e))},of.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(r&&!1!==this._options.followRedirects&&t>=300&&t<400){if(hf(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new rf);((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],lf(/^content-/i,this._options.headers));var n,i=lf(/^host$/i,this._options.headers),a=Ql.parse(this._currentUrl),o=i||a.host,s=/^\w+:/.test(r)?this._currentUrl:Ql.format(Object.assign(a,{host:o}));try{n=Ql.resolve(s,r)}catch(e){return void this.emit("error",new tf(e))}Xl("redirecting to",n),this._isRedirect=!0;var c=Ql.parse(n);if(Object.assign(this._options,c),c.host===o||function(e,t){const r=e.length-t.length-1;return r>0&&"."===e[r]&&e.endsWith(t)}(c.host,o)||lf(/^authorization$/i,this._options.headers),"function"==typeof this._options.beforeRedirect){var u={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,u)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new tf(e))}}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]},Hl.exports=sf({http:Wl,https:Kl}),Hl.exports.wrap=sf;var pf="0.24.0",df=ul,mf=xl,gf=_l,vf=hl,yf=B.default,bf=$.default,wf=Hl.exports.http,xf=Hl.exports.https,kf=M.default,Ef=V.default,Sf=pf,Pf=bl,_f=vl,Af=Mf,Cf=Tl,Ff=/https:?/;function Df(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(e){e.headers.host=e.host,Df(e,t,e.href)}}var Of=function(e){return new Promise((function(t,r){var n;function i(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}var a=function(e){i(),t(e)},o=function(e){i(),r(e)},s=e.data,c=e.headers,u={};if(Object.keys(c).forEach((function(e){u[e.toLowerCase()]=e})),"user-agent"in u?c[u["user-agent"]]||delete c[u["user-agent"]]:c["User-Agent"]="axios/"+Sf,s&&!df.isStream(s)){if(Buffer.isBuffer(s));else if(df.isArrayBuffer(s))s=Buffer.from(new Uint8Array(s));else{if(!df.isString(s))return o(Pf("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));s=Buffer.from(s,"utf-8")}u["content-length"]||(c["Content-Length"]=s.length)}var l=void 0;e.auth&&(l=(e.auth.username||"")+":"+(e.auth.password||""));var f=gf(e.baseURL,e.url),h=kf.parse(f),p=h.protocol||"http:";if(!l&&h.auth){var d=h.auth.split(":");l=(d[0]||"")+":"+(d[1]||"")}l&&u.authorization&&delete c[u.authorization];var m=Ff.test(p),g=m?e.httpsAgent:e.httpAgent,v={path:vf(h.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:c,agent:g,agents:{http:e.httpAgent,https:e.httpsAgent},auth:l};e.socketPath?v.socketPath=e.socketPath:(v.hostname=h.hostname,v.port=h.port);var y,b=e.proxy;if(!b&&!1!==b){var w=p.slice(0,-1)+"_proxy",x=process.env[w]||process.env[w.toUpperCase()];if(x){var k=kf.parse(x),E=process.env.no_proxy||process.env.NO_PROXY,S=!0;if(E){var P=E.split(",").map((function(e){return e.trim()}));S=!P.some((function(e){return!!e&&("*"===e||("."===e[0]&&h.hostname.substr(h.hostname.length-e.length)===e||h.hostname===e))}))}if(S&&(b={host:k.hostname,port:k.port,protocol:k.protocol},k.auth)){var _=k.auth.split(":");b.auth={username:_[0],password:_[1]}}}}b&&(v.headers.host=h.hostname+(h.port?":"+h.port:""),Df(v,b,p+"//"+h.hostname+(h.port?":"+h.port:"")+v.path));var A=m&&(!b||Ff.test(b.protocol));e.transport?y=e.transport:0===e.maxRedirects?y=A?bf:yf:(e.maxRedirects&&(v.maxRedirects=e.maxRedirects),y=A?xf:wf),e.maxBodyLength>-1&&(v.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(v.insecureHTTPParser=e.insecureHTTPParser);var C=y.request(v,(function(t){if(!C.aborted){var r=t,n=t.req||C;if(204!==t.statusCode&&"HEAD"!==n.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(Ef.createUnzip()),delete t.headers["content-encoding"]}var i={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:n};if("stream"===e.responseType)i.data=r,mf(a,o,i);else{var s=[],c=0;r.on("data",(function(t){s.push(t),c+=t.length,e.maxContentLength>-1&&c>e.maxContentLength&&(r.destroy(),o(Pf("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,n)))})),r.on("error",(function(t){C.aborted||o(_f(t,e,null,n))})),r.on("end",(function(){var t=Buffer.concat(s);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(t=df.stripBOM(t))),i.data=t,mf(a,o,i)}))}}}));if(C.on("error",(function(t){C.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||o(_f(t,e,null,C))})),e.timeout){var F=parseInt(e.timeout,10);if(isNaN(F))return void o(Pf("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",C));C.setTimeout(F,(function(){C.abort();var t=e.transitional||Af.transitional;o(Pf("timeout of "+F+"ms exceeded",e,t.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",C))}))}(e.cancelToken||e.signal)&&(n=function(e){C.aborted||(C.abort(),o(!e||e&&e.type?new Cf("canceled"):e))},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n))),df.isStream(s)?s.on("error",(function(t){o(_f(t,e,null,C))})).pipe(C):C.end(s)}))},Rf=ul,Tf=function(e,t){gl.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},If=vl,jf={"Content-Type":"application/x-www-form-urlencoded"};function Lf(e,t){!Rf.isUndefined(e)&&Rf.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var qf,zf={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:("undefined"!=typeof XMLHttpRequest?qf=Vl:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(qf=Of),qf),transformRequest:[function(e,t){return Tf(t,"Accept"),Tf(t,"Content-Type"),Rf.isFormData(e)||Rf.isArrayBuffer(e)||Rf.isBuffer(e)||Rf.isStream(e)||Rf.isFile(e)||Rf.isBlob(e)?e:Rf.isArrayBufferView(e)?e.buffer:Rf.isURLSearchParams(e)?(Lf(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Rf.isObject(e)||t&&"application/json"===t["Content-Type"]?(Lf(t,"application/json"),function(e,t,r){if(Rf.isString(e))try{return(t||JSON.parse)(e),Rf.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||zf.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&Rf.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw If(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Rf.forEach(["delete","get","head"],(function(e){zf.headers[e]={}})),Rf.forEach(["post","put","patch"],(function(e){zf.headers[e]=Rf.merge(jf)}));var Mf=zf,Nf=ul,Bf=Mf,$f=function(e){return!(!e||!e.__CANCEL__)},Uf=ul,Vf=function(e,t,r){var n=this||Bf;return Nf.forEach(r,(function(r){e=r.call(n,e,t)})),e},Hf=$f,Qf=Mf,Gf=Tl;function Wf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gf("canceled")}var Kf=ul,Jf=function(e,t){t=t||{};var r={};function n(e,t){return Kf.isPlainObject(e)&&Kf.isPlainObject(t)?Kf.merge(e,t):Kf.isPlainObject(t)?Kf.merge({},t):Kf.isArray(t)?t.slice():t}function i(r){return Kf.isUndefined(t[r])?Kf.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function a(e){if(!Kf.isUndefined(t[e]))return n(void 0,t[e])}function o(r){return Kf.isUndefined(t[r])?Kf.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function s(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s};return Kf.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,n=t(e);Kf.isUndefined(n)&&t!==s||(r[e]=n)})),r},Yf=pf,Xf={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Xf[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var Zf={};Xf.transitional=function(e,t,r){function n(e,t){return"[Axios v"+Yf+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,i,a){if(!1===e)throw new Error(n(i," has been removed"+(t?" in "+t:"")));return t&&!Zf[i]&&(Zf[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,a)}};var eh={assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var a=n[i],o=t[a];if(o){var s=e[a],c=void 0===s||o(s,a,e);if(!0!==c)throw new TypeError("option "+a+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+a)}},validators:Xf},th=ul,rh=hl,nh=ml,ih=function(e){return Wf(e),e.headers=e.headers||{},e.data=Vf.call(e,e.data,e.headers,e.transformRequest),e.headers=Uf.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Uf.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||Qf.adapter)(e).then((function(t){return Wf(e),t.data=Vf.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return Hf(t)||(Wf(e),t&&t.response&&(t.response.data=Vf.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},ah=Jf,oh=eh,sh=oh.validators;function ch(e){this.defaults=e,this.interceptors={request:new nh,response:new nh}}ch.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=ah(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&oh.assertOptions(t,{silentJSONParsing:sh.transitional(sh.boolean),forcedJSONParsing:sh.transitional(sh.boolean),clarifyTimeoutError:sh.transitional(sh.boolean)},!1);var r=[],n=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(n=n&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!n){var o=[ih,void 0];for(Array.prototype.unshift.apply(o,r),o=o.concat(a),i=Promise.resolve(e);o.length;)i=i.then(o.shift(),o.shift());return i}for(var s=e;r.length;){var c=r.shift(),u=r.shift();try{s=c(s)}catch(e){u(e);break}}try{i=ih(s)}catch(e){return Promise.reject(e)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},ch.prototype.getUri=function(e){return e=ah(this.defaults,e),rh(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},th.forEach(["delete","get","head","options"],(function(e){ch.prototype[e]=function(t,r){return this.request(ah(r||{},{method:e,url:t,data:(r||{}).data}))}})),th.forEach(["post","put","patch"],(function(e){ch.prototype[e]=function(t,r,n){return this.request(ah(n||{},{method:e,url:t,data:r}))}}));var uh=ch,lh=Tl;function fh(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new lh(e),t(r.reason))}))}fh.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},fh.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},fh.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},fh.source=function(){var e;return{token:new fh((function(t){e=t})),cancel:e}};var hh=fh,ph=ul,dh=el,mh=uh,gh=Jf;var vh=function e(t){var r=new mh(t),n=dh(mh.prototype.request,r);return ph.extend(n,mh.prototype,r),ph.extend(n,r),n.create=function(r){return e(gh(t,r))},n}(Mf);vh.Axios=mh,vh.Cancel=Tl,vh.CancelToken=hh,vh.isCancel=$f,vh.VERSION=pf,vh.all=function(e){return Promise.all(e)},vh.spread=function(e){return function(t){return e.apply(null,t)}},vh.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError},Zu.exports=vh,Zu.exports.default=vh;var yh=Zu.exports;function bh(e){return e}function wh(e){var t=[];if(e)return Array.isArray(e)?e:("object"==typeof e&&Object.keys(e).forEach((function(r){"number"==typeof r&&(t[r]=e[r])})),t)}function xh(e){if(yh.isCancel(e))return Promise.reject(e);var t=Eh(e)||{};if(t.currentRetryAttempt=t.currentRetryAttempt||0,t.retry="number"==typeof t.retry?t.retry:3,t.retryDelay="number"==typeof t.retryDelay?t.retryDelay:100,t.instance=t.instance||yh,t.backoffType=t.backoffType||"exponential",t.httpMethodsToRetry=wh(t.httpMethodsToRetry)||["GET","HEAD","PUT","OPTIONS","DELETE"],t.noResponseRetries="number"==typeof t.noResponseRetries?t.noResponseRetries:2,t.checkRetryAfter="boolean"!=typeof t.checkRetryAfter||t.checkRetryAfter,t.maxRetryAfter="number"==typeof t.maxRetryAfter?t.maxRetryAfter:3e5,t.statusCodesToRetry=wh(t.statusCodesToRetry)||[[100,199],[429,429],[500,599]],e.config=e.config||{},e.config.raxConfig=Object.assign({},t),!(t.shouldRetry||kh)(e))return Promise.reject(e);var r=new Promise((function(r,n){var i=0;if(t.checkRetryAfter&&e.response&&e.response.headers["retry-after"]){var a=function(e){var t=Number(e);if(!Number.isNaN(t))return 1e3*t;var r=Date.parse(e);return Number.isNaN(r)?void 0:r-Date.now()}(e.response.headers["retry-after"]);if(!(a&&a>0&&a<=t.maxRetryAfter))return n(e);i=a}e.config.raxConfig.currentRetryAttempt+=1;var o=e.config.raxConfig.currentRetryAttempt;0===i&&(i="linear"===t.backoffType?1e3*o:"static"===t.backoffType?t.retryDelay:(Math.pow(2,o)-1)/2*1e3,"number"==typeof t.maxRetryDelay&&(i=Math.min(i,t.maxRetryDelay))),setTimeout(r,i)})),n=t.onRetryAttempt?Promise.resolve(t.onRetryAttempt(e)):Promise.resolve();return Promise.resolve().then((function(){return r})).then((function(){return n})).then((function(){return t.instance.request(e.config)}))}function kh(e){var t=e.config.raxConfig;if(!t||0===t.retry)return!1;if(!e.response&&(t.currentRetryAttempt||0)>=t.noResponseRetries)return!1;if(!e.config.method||t.httpMethodsToRetry.indexOf(e.config.method.toUpperCase())<0)return!1;if(e.response&&e.response.status){for(var r=!1,n=0,i=t.statusCodesToRetry;n<i.length;n+=1){var a=i[n],o=e.response.status;if(o>=a[0]&&o<=a[1]){r=!0;break}}if(!r)return!1}return t.currentRetryAttempt=t.currentRetryAttempt||0,!(t.currentRetryAttempt>=t.retry)}function Eh(e){if(e&&e.config)return e.config.raxConfig}var Sh=Object.freeze({__proto__:null,attach:function(e){return(e=e||yh).interceptors.response.use(bh,xh)},detach:function(e,t){(t=t||yh).interceptors.response.eject(e)},shouldRetryRequest:kh,getConfig:Eh}),Ph=le(Sh);!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=q.default,r=vr,n=Rr.exports,i=Nr.exports,a=Bn,o=Ei,s=Eo,c=Ws,u=Ys,l=Xs,f=wc,h=xc,p=kc,d=Ec,m=Sc,g=N.default,v=Pc,y=_c,b=Ac,w=Cc,x=Fc,k=Dc,E=Oc,S=Tc,P=jc,_=Lc,A=Nc,C=au,F=Wu,D=Yu,O=Xu,R=j.default,T=yh,I=Ph,L=jr.exports;function z(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var M=z(r),B=z(n),$=z(i),U=z(s),V=z(c),H=z(u),Q=z(g),G=z(C),W=z(F),K=z(R),J=z(T),Y=z(I),X=z(L);function Z(e){return"string"==typeof e&&e.startsWith("@encrypted:")}function ee(e,t){return B.default.encrypt(e,t).toString()}function te(e,t){try{return B.default.decrypt(e,t).toString($.default)}catch{return""}}var re=Object.freeze({__proto__:null,encrypt:ee,decrypt:te});class ne{constructor(e,t,r){this.key=void 0,this.values=void 0,this.schema=void 0,this.values=e,this.schema=t,this.key=r}setKey(e){this.key=e}getValues(){return this.values}setValues(e){const r=new M.default({removeAdditional:!0,useDefaults:!0,allErrors:!0}).compile(this.schema);if(!r(e=t.cloneDeep(e)))for(const n of r.errors)e=t.omit(e,n.dataPath.substr(1).split("/"));this.values=e}getValue(e,r){return t.get(this.values,e,r)}setValue(e,r){return t.set(this.values,e,r)}toObject(){const e=new M.default({removeAdditional:!0,useDefaults:!0,allErrors:!0});e.removeKeyword("default"),e.addKeyword("default",{validate:(e,r,n,i,a,o,s)=>(t.isEqual(e,r)&&(delete a[o],t.isEmpty(a)&&function(e,r){const n=[];let i=e;for(let e=0;e<r.length-1;e++)n.push(i),i=i[r[e]];for(let e=r.length-2;e>=0;e--)t.isEmpty(n[e][r[e]])&&delete n[e][r[e]]}(s,t.toPath(i.substr(1)))),!0),modifying:!0,errors:!1}),e.addKeyword("encrypt",{validate:(e,r,n,i,a,o)=>(this.key&&e&&!Z(r)&&a&&o&&t.set(a,o,"@encrypted:"+ee(r,this.key)),!0),modifying:!0,errors:!1});const r=e.compile(this.schema),n=t.cloneDeep(this.values);return r(n),n}static createFromObject(e,r,n){const i=new M.default({removeAdditional:!0,useDefaults:!0,allErrors:!0});i.addKeyword("encrypt",{validate:(e,r,i,a,o,s)=>(n&&e&&Z(r)&&o&&s&&t.set(o,s,te(r.substr(11),n)),!0),modifying:!0,errors:!1});const a=i.compile(r);if(!a(e))for(const r of a.errors)e=t.omit(e,r.dataPath.substr(1).split("/"));return new this(e,r,n)}}class ie extends ne{constructor(){super(...arguments),this.pluginsConfig={}}getStructure(e){return this.getValue(["structure",e])}getPluginConfig(e,r){if(!this.pluginsConfig[e]){const n=this.getValue(["pluginsConfig",e],{});this.pluginsConfig[e]=ne.createFromObject(t.cloneDeep(n),r,this.key+":"+e)}return this.pluginsConfig[e]}setPluginConfig(e,r){const n=r.toObject();t.isEmpty(n)?t.unset(this.values,["pluginsConfig",e]):this.setValue(["pluginsConfig",e],n),delete this.pluginsConfig[e]}static createFromObject(e){return super.createFromObject(e,ie.schema)}}ie.file="book.json",ie.schema={title:"TopWrite Configuration",type:"object",properties:{root:{type:"string",title:"Path from the root folder containing the book's content"},title:{type:"string",title:"Title of the book"},author:{type:"object",title:"attr of the author",properties:{name:{type:"string"},email:{type:"string"},home:{type:"string"}}},theme:{type:"string",title:"Name of the theme",default:"default"},themeConfig:{type:"object",title:"Configuration for theme",properties:{defaultMode:{type:"string",title:"Default mode form theme",default:"light"},primaryColor:{type:"string",title:"Primary Color form theme",default:"#3c60ff"}},default:{}},plugins:{type:"array",items:{type:"string"},default:[]},pluginsConfig:{type:"object",title:"Configuration for plugins",default:{}},structure:{type:"object",properties:{langs:{default:"LANGS.md",type:"string",title:"File to use as languages index",pattern:"^[a-zA-Z-._\\d,\\s]+$"},readme:{default:"README.md",type:"string",title:"File to use as preface",pattern:"^[a-zA-Z-._\\d,\\s]+$"},summary:{default:"SUMMARY.md",type:"string",title:"File to use as table of contents",pattern:"^[a-zA-Z-._\\d,\\s]+$"}},default:{}},pdf:{type:"object",title:"PDF specific configurations",properties:{fontFamily:{type:"string",default:"Microsoft Yahei",title:"Font family for the PDF output"},margin:{type:"object",title:"Margins (unit: pt)",properties:{right:{type:"integer",title:"Right Margin",minimum:0,maximum:100,default:30},left:{type:"integer",title:"Left Margin",minimum:0,maximum:100,default:30},top:{type:"integer",title:"Top Margin",minimum:0,maximum:100,default:40},bottom:{type:"integer",title:"Bottom Margin",minimum:0,maximum:100,default:40}},default:{}},paperSize:{type:"string",enum:["a0","a1","a2","a3","a4","a5","a6","b0","b1","b2","b3","b4","b5","b6","legal","letter"],default:"a4",title:"Paper size for the PDF"},chapterMark:{type:"string",enum:["pagebreak","rule","both","none"],default:"pagebreak",title:"How to mark detected chapters"},pageBreaksBefore:{type:"string",default:"/",title:'An XPath expression. Page breaks are inserted before the specified elements. To disable use the expression: "/"'},pageNumbers:{type:"boolean",default:!0,title:"Add page numbers to the bottom of every page"}},default:{}}},required:[]};class ae{constructor(e){void 0===e&&(e=[]),this.data=void 0,this.data="string"==typeof e?e.split(".").map((e=>parseInt(e,10))):e}getParent(){return new ae(this.data.slice(0,-1))}createChild(e){return new ae(this.data.concat(e))}isDescendant(e){return e.toString().startsWith(this.toString()+".")}getNext(){const e=[...this.data];return e[e.length-1]++,new ae(e)}getDepth(){return this.data.length-1}eq(e){return this.toString()===e.toString()}getLeafIndex(){return this.data[this.data.length-1]-1}toString(){return this.data.join(".")}static compare(e,t){for(let r=0;r<Math.max(e.data.length,t.data.length);r++){let n=e.data[r]||0,i=t.data[r]||0;if(n>i)return 1;if(i>n)return-1}return 0}}class oe{constructor(e){let{title:t,ref:r,path:n,children:i=[]}=e;this.level=void 0,this.title=void 0,this.ref=void 0,this.path=void 0,this.children=void 0,this.title=t,this.ref=r,this.path=n,this.children=i,this.level=new ae}getLevel(){return this.level}getTitle(){return this.title}getRef(){return this.ref}getPath(){return this.path?this.path:this.ref}getArticles(){return this.children}getDepth(){return this.getLevel().getDepth()}createChildLevel(){return this.level.createChild(this.children.length+1)}indexLevels(e){e?this.level=e:e=this.level;for(const[t,r]of this.children.entries())r.indexLevels(e.createChild(t+1))}static findArticle(e,t){return e.getArticles().reduce(((e,r)=>e||(t(r)?r:oe.findArticle(r,t))),void 0)}static createFromObject(e){var t;const r=null==(t=e.children)?void 0:t.map((e=>oe.createFromObject(e)));return new oe({...e,children:r})}}class se{constructor(e,t,r){void 0===t&&(t=[]),this.level=void 0,this.id=void 0,this.title=void 0,this.articles=void 0,this.level=new ae,this.id=r,this.title=e,this.articles=t}getLevel(){return this.level}getTitle(){return this.title}getArticles(){return this.articles}createChildLevel(){return this.level.createChild(this.articles.length+1)}indexLevels(e){e?this.level=e:e=this.level;for(const[t,r]of this.articles.entries())r.indexLevels(e.createChild(t+1))}static createFormObject(e){var t;return new se(e.title,null==(t=e.articles)?void 0:t.map((e=>oe.createFromObject(e))),e.id)}}const ce={tokenize:function(e,t,r){function n(t){return t===d.codes.rightParenthesis?f(t):b.factoryDestination(e,i,r,p.types.resourceDestination,p.types.resourceDestinationLiteral,p.types.resourceDestinationLiteralMarker,p.types.resourceDestinationRaw,p.types.resourceDestinationString,m.constants.linkResourceDestinationBalanceMax)(t)}function i(t){return w.markdownLineEndingOrSpace(t)?y.factoryWhitespace(e,a)(t):f(t)}function a(t){return t===d.codes.quotationMark||t===d.codes.apostrophe||t===d.codes.leftParenthesis?k.factoryTitle(e,y.factoryWhitespace(e,o),r,p.types.resourceTitle,p.types.resourceTitleMarker,p.types.resourceTitleString)(t):o(t)}function o(t){return t===d.codes.equalsTo?(e.enter("resourceSize"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),s):f(t)}function s(t){return t===d.codes.lowercaseX?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),u):t===d.codes.rightParenthesis||w.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),y.factoryWhitespace(e,f)(t)):(e.enter("resourceSizeWidth"),e.enter(p.types.chunkString,{contentType:"string"}),c(t))}function c(t){return t===d.codes.rightParenthesis||w.markdownLineEndingOrSpace(t)?(e.exit(p.types.chunkString),e.exit("resourceSizeWidth"),e.exit("resourceSize"),y.factoryWhitespace(e,f)(t)):t===d.codes.lowercaseX?(e.exit(p.types.chunkString),e.exit("resourceSizeWidth"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),u):(e.consume(t),c)}function u(t){return t===d.codes.rightParenthesis||w.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),y.factoryWhitespace(e,f)(t)):(e.enter("resourceSizeHeight"),e.enter(p.types.chunkString,{contentType:"string"}),l(t))}function l(t){return t===d.codes.rightParenthesis||w.markdownLineEndingOrSpace(t)?(e.exit(p.types.chunkString),e.exit("resourceSizeHeight"),e.exit("resourceSize"),y.factoryWhitespace(e,f)(t)):(e.consume(t),l)}function f(n){return n===d.codes.rightParenthesis?(e.enter(p.types.resourceMarker),e.consume(n),e.exit(p.types.resourceMarker),e.exit(p.types.resource),t):r(n)}return function(t){return e.enter(p.types.resource),e.enter(p.types.resourceMarker),e.consume(t),e.exit(p.types.resourceMarker),y.factoryWhitespace(e,n)}}},ue={tokenize:function(e,t,r){const n=this;function i(e){return n.parser.defined.includes(v.normalizeIdentifier(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}return function(t){return Q.default.strictEqual(t,d.codes.leftSquareBracket,"expected left bracket"),x.factoryLabel.call(n,e,i,r,p.types.reference,p.types.referenceMarker,p.types.referenceString)(t)}}},le={tokenize:function(e,t,r){function n(n){return 93===n?(e.enter(p.types.referenceMarker),e.consume(n),e.exit(p.types.referenceMarker),e.exit(p.types.reference),t):r(n)}return function(t){return e.enter(p.types.reference),e.enter(p.types.referenceMarker),e.consume(t),e.exit(p.types.referenceMarker),n}}};var fe={name:"labelEnd",tokenize:function(e,t,r){const n=this;let i,a,o=n.events.length;for(;o--;)if((n.events[o][1].type===p.types.labelImage||n.events[o][1].type===p.types.labelLink)&&!n.events[o][1]._balanced){i=n.events[o][1];break}function s(e){return i._balanced=!0,r(e)}function c(r){return r===d.codes.leftParenthesis?e.attempt(ce,t,a?t:s)(r):r===d.codes.leftSquareBracket?e.attempt(ue,t,a?e.attempt(le,t,s):s)(r):a?t(r):s(r)}return function(t){return Q.default(t===d.codes.rightSquareBracket,"expected `]`"),i?i._inactive?s(t):(a=n.parser.defined.indexOf(v.normalizeIdentifier(n.sliceSerialize({start:i.end,end:n.now()})))>-1,e.enter(p.types.labelEnd),e.enter(p.types.labelMarker),e.consume(t),e.exit(p.types.labelMarker),e.exit(p.types.labelEnd),c):r(t)}},resolveTo:h.labelEnd.resolveTo,resolveAll:h.labelEnd.resolveAll};const he=(e,t,r)=>{const n=f.image(e,t,r);return e.width||e.height?n.replace(/\)$/," ="+(e.width||"")+(e.height?"x"+e.height:"")+")"):n};he.peek=f.image.peek;const pe=e=>{let t;switch(e){case"right":t="--: ";break;case"center":t=":-: ";break;default:t=""}return t},de={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(t===d.codes.greaterThan){const r=n.containerState;return Q.default(r,"expected `containerState` to be defined in container"),r.open||(e.enter(p.types.blockQuote,{_container:!0}),r.open=!0),e.enter(p.types.blockQuotePrefix),e.enter(p.types.blockQuoteMarker),e.consume(t),e.exit(p.types.blockQuoteMarker),_.factorySpace(e,i,p.types.whitespace)}return r(t)};function i(t){return t===d.codes.leftSquareBracket?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),a):s(t)}function a(t){return t===d.codes.rightSquareBracket||w.markdownLineEndingOrSpace(t)?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),s):(e.enter("blockQuoteType"),e.enter(p.types.chunkString,{contentType:"string"}),o(t))}function o(t){return t===d.codes.rightSquareBracket||w.markdownLineEndingOrSpace(t)?(e.exit(p.types.chunkString),e.exit("blockQuoteType"),e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),s):(e.consume(t),o)}function s(r){return w.markdownSpace(r)?(e.enter(p.types.blockQuotePrefixWhitespace),e.consume(r),e.exit(p.types.blockQuotePrefixWhitespace),e.exit(p.types.blockQuotePrefix),t):(e.exit(p.types.blockQuotePrefix),t(r))}},continuation:{tokenize:function(e,t,r){return _.factorySpace(e,e.attempt(de,t,r),p.types.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:m.constants.tabSize)}},exit:h.blockQuote.exit},me=function(e,t){void 0===t&&(t="text");let r="";return E.visit(e,t,(function(e){r+=e.value})),r},ge=/^\[toc(?:=(\d)(?:,(\d))?)?]$/im,ve=o.unified().use(U.default).use((function(){const e=this.data();e.micromarkExtensions=[],e.fromMarkdownExtensions=[],e.toMarkdownExtensions=[],e.toHastExtensions=[]})).use(W.default).use(G.default,["yaml"]).use(V.default).use(H.default).use(D.remarkHeadingId).use((function(){return this.data().toHastExtensions.push({xBlock:(e,t)=>e({},"x-block",{name:t.name,value:t.value,parameter:t.parameter}),xInline:(e,t)=>e({},"x-inline",{name:t.name,value:t.value})}),function(e){E.visit(e,((e,t,r)=>{if(null!==t&&null!==r)if((e=>"code"===e.type)(e)&&e.lang){const n=/\[([\w-_]+)(:([\w-_]+))?]/g.exec(e.lang);if(n){const i={type:"xBlock",name:n[1],parameter:n[3]||"",value:e.value,position:e.position};r.children.splice(t,1,i)}}else if((e=>"inlineCode"===e.type)(e)){const n=/^([^\s]+)\s(.*?)\s\1$/.exec(e.value);if(n){const i={type:"xInline",name:n[1],value:n[2],position:e.position};r.children.splice(t,1,i)}}}))}})).use((function(){const e=this.data();e.micromarkExtensions.push({text:{[d.codes.rightSquareBracket]:fe}}),e.fromMarkdownExtensions.push({enter:{resourceSizeWidth:function(){this.buffer()},resourceSizeHeight:function(){this.buffer()}},exit:{resourceSizeWidth:function(){const e=this.resume();this.stack[this.stack.length-1].width=e},resourceSizeHeight:function(){const e=this.resume();this.stack[this.stack.length-1].height=e}}}),e.toMarkdownExtensions.push({handlers:{image:he}}),e.toHastExtensions.push({image:(e,t)=>{const r={src:l.encode(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),r.width=t.width,r.height=t.height,e(t,"img",r)}})})).use((function(){return this.data().toMarkdownExtensions.push({handlers:{paragraph:(e,t,r)=>{const n=S.paragraph(e,t,r);return pe(e.align)+n},heading:(e,t,r)=>P.heading(e,t,r).replace(/^#+\s/,"$&"+pe(e.align))}}),function(e){E.visit(e,((e,t,r)=>{if((e=>"paragraph"===e.type||"heading"===e.type)(e)){const t=a.select("text",e);if(t){const n=t.value;n.startsWith("--: ")?e.align="right":n.startsWith(":-: ")?e.align="center":n.startsWith(":-- ")&&(e.align="left"),e.align&&(t.value=n.substr(4),r&&"listItem"===r.type?r.data={...r.data,hProperties:{className:"align-"+e.align}}:e.data={...e.data,hProperties:{className:"align-"+e.align}})}}}))}})).use((function(){const e=this.data();return e.toMarkdownExtensions.push({handlers:{blockquote:(e,t,r)=>{const n=A.blockquote(e,t,r);return e.variant?n.replace(/(^|\s+)>\s/,"$1> ["+e.variant+"] "):n}}}),e.micromarkExtensions.push({document:{[d.codes.greaterThan]:de}}),e.fromMarkdownExtensions.push({enter:{blockQuoteType:function(){this.buffer()}},exit:{blockQuoteType:function(){const e=this.resume();this.stack[this.stack.length-1].variant=e}}}),function(e){E.visit(e,"blockquote",(e=>{e.variant&&(e.data={...e.data,hProperties:{className:e.variant}})}))}})).use((function(){return function(e){E.visit(e,((e,t,r)=>{if(r&&"root"===r.type&&null!==t&&me(e).match(ge))return r.children.splice(t,1),[E.SKIP,t]}))}}));function ye(e){const t=[];for(const r of e.children){const e=r.children,n=a.select("paragraph:first-child>*",r);if(!n)continue;const i=me(n);if(!i)continue;const o=n.url?decodeURI(n.url):void 0;if(o&&o.match(/[\\:*?"<>|]/))continue;let s={title:i,ref:o};if(e.length>1){const t=e[e.length-1];O.is(t,"list")&&(s.children=ye(t))}t.push(s)}return t}const be=ve();class we{constructor(e){void 0===e&&(e=[]),this.parts=void 0,this.parts=e,this.indexLevels()}getParts(){return this.parts}getPart(e){return this.parts[e]}getLastPart(){return this.parts[this.parts.length-1]}getArticles(){const e=[];return this.getArticle((t=>(e.push(t),!1))),e}getArticle(e){return this.parts.reduce(((t,r)=>t||oe.findArticle(r,e)),void 0)}getByLevel(e){const t=t=>t.getLevel().eq(e);return this.parts.reduce(((e,r)=>e||(t(r)?r:oe.findArticle(r,t))),void 0)}getFirstPath(){const e=this.getArticle((e=>!!e.getPath()));if(e)return e.getPath()}getNextArticle(e){const t=e instanceof oe?e.getLevel():e;let r=!1;return this.getArticle((e=>!!r||(r=e.getLevel()==t,!1)))}getPrevArticle(e){const t=e instanceof oe?e.getLevel():e;let r;return this.getArticle((e=>e.getLevel()==t||(r=e,!1))),r}getParent(e){const t=(e instanceof oe?e.getLevel():e).getParent();if(t)return this.getByLevel(t)}indexLevels(){for(const[e,t]of this.parts.entries()){const r=new ae(String(e+1));t.indexLevels(r)}}isSinglePart(){return 1===this.parts.length&&!this.parts[0].title}isEmpty(){return this.isSinglePart()?0===this.parts[0].articles.length:0===this.parts.length}static createFromObject(e){return new we(e.map((e=>se.createFormObject(e))))}static createFromText(e){const t=function(e){const t=be.parse(e),r=[];let n;for(const e of t.children)if(O.is(e,"heading")&&[2,3].includes(e.depth)&&(n&&r.push(n),n={id:me(e,"idString").trim(),title:me(e).trim()}),O.is(e,"list")){const t=ye(e);n?n.articles=(n.articles||[]).concat(t):n={title:"",articles:t}}return n?r.push(n):r.push({title:""}),r}(e);return we.createFromObject(t)}static create(e){return"object"==typeof e?we.createFromObject(e):we.createFromText(e)}}class xe{constructor(e){let{host:t}=e;this.host=void 0,this.host=t}getBuyUrl(e,t){return this.host+"/api/buy?book="+e.id+"&plugin="+t.name}async bought(e,t){try{return await J.default.get(this.host+"/api/bought?book="+e.id+"&plugin="+t.name),!0}catch{return!1}}async queryPlugins(e){let{page:t=1,...r}=e;const{data:n}=await J.default.get(this.host+"/api/query",{params:{...r,page:t}});return n}async getInstalled(e){const{config:t}=e,r=["theme-"+t.getValue("theme"),...t.getValue("plugins")],{data:n}=await J.default.get(this.host+"/api/installed",{params:{book:e.id,plugins:r.join(",")}}).catch((e=>{throw new Error("Plugins Check Failed:"+e.message)}));return n}}e.pluginCenter=void 0;class ke{constructor(e,t,r){this.flatColors=["#1abc9c","#2ecc71","#3498db","#9b59b6","#34495e","#16a085","#27ae60","#2980b9","#8e44ad","#2c3e50","#f1c40f","#e67e22","#e74c3c","#f39c12","#d35400","#c0392b"],this.letter=void 0,this.size=void 0,this.canvas=void 0,this.letter=e,this.size=t,this.canvas=r,this.generate()}toDataUrl(){return this.canvas.toDataURL()}generate(){const e=this.canvas.getContext("2d");if(!e)throw new Error("getContext failed");const t=this.letter[0].toUpperCase();e.fillStyle=this.flatColors[t.charCodeAt(0)%this.flatColors.length],e.fillRect(0,0,this.size,this.size),e.font=Math.round(this.size/2)+"px Roboto",e.textAlign="center",e.fillStyle="#FFFFFF",e.fillText(this.letter[0].toUpperCase(),this.size/2,this.size/1.5)}static create(e,t,r){return r||(r=function(e){const t=window.document.createElement("canvas");return t.width=e,t.height=e,t}(t)),new ke(e,t,r)}}const Ee=/^(?:\w+:)?\/\/(\S+)$/,Se=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Pe=/^[^\s\.]+\.\S{2,}$/;Y.default.attach(),J.default.defaults.maxContentLength=1/0,J.default.defaults.maxBodyLength=1/0,Object.defineProperty(e,"request",{enumerable:!0,get:function(){return J.default}}),e.BaseConfig=ne,e.Book=class{constructor(e,t,r){this.id=void 0,this.summary=void 0,this._config=void 0,this.id=e,this.summary=r,this.config=t}get config(){return this._config}set config(e){e.setKey(this.id+":config"),this._config=e}},e.Config=ie,e.File=class{constructor(e){let{path:t,content:r,meta:n={}}=e;this.path=void 0,this.content=void 0,this.meta=void 0,this.path=t,this.content=r,this.meta=n}getMeta(e,r){return t.get(this.meta,e,r)}relative(e){const t="/"===e.slice(-1);return(e=K.default.posix.relative(K.default.posix.dirname(this.path),e)||".")+(t?"/":"")}},e.LetterAvatar=ke,e.Level=ae,e.Summary=we,e.SummaryArticle=oe,e.SummaryPart=se,e.aes=re,e.createPluginCenter=function(t){return e.pluginCenter=new xe(t)},e.isEncryptedData=Z,e.isUrl=function(e){const t=e.match(Ee);if(!t)return!1;const r=t[1];return!!r&&(Se.test(r)||Pe.test(r))},e.markdown=ve,e.md5=function(e){return X.default(e).toString()}}(fe);class _h{name;version;path;hooks;config;constructor({name:e,version:t,path:r,hooks:n,config:i}){this.name=e,this.version=t,this.path=r,this.hooks=n,this.config=i}getHook(e){return this.hooks[e]}getContext(e){return{...e,getConfig:()=>e.book.config.getPluginConfig(this.name,this.config)}}}async function Ah(e,t){se.info(`installing plugin "${e.name}"`);const r=`npm install ${e.host}.tgz`,{error:n}=H.default.sync(r,{stdio:["inherit"],cwd:t,shell:!0});if(n)throw n;const i=j.default.join(t,"node_modules","topwrite-plugin-"+e.name),a=j.default.join(i,"dist","hooks.js");let o={};if(Q.existsSync(a)){o=new d.NodeVM({require:{builtin:["path/posix","crypto"]},sandbox:{URL:URL,URLSearchParams:URLSearchParams}}).runFile(a)}const s=j.default.join(i,"config.json");let c={};return Q.existsSync(s)&&(c=require(s)),se.info(`plugin "${e.name}@${e.version}" installed with success`),new _h({name:e.name,version:e.version,path:i,hooks:o,config:c})}const Ch=/(^-{3}(?:\r\n|\r|\n)([\w\W]*?)-{3}(?:\r\n|\r|\n))?([\w\W]*)*/;class Fh extends class{book;sourceFS;tmpFS;dest;options;plugins=[];constructor(e,t,r,n,i){this.book=e,this.sourceFS=t,this.tmpFS=r,this.options=n,this.dest=i}getContext(){return{book:this.book,sourceFS:this.sourceFS,tmpFS:this.tmpFS,request:fe.request,logger:se,format:this.format}}async generate(){await this.initLfs(),await this.initPlugins(),await this.onInit(),await this.callHook("init"),await this.generateLogo(),await this.onSummary(),await this.callHook("summary"),await this.generateArticles(),await this.callHook("articles"),await this.callHook("beforeFinish")&&(await this.onFinish(),await this.callHook("finish")),se.success("generation finished with success!")}async initLfs(){if(this.options.lfs){se.info("generate lfs files...");let e="git lfs ls-files -l";const{config:t}=this.book,r=t.getValue("root","");r&&(e+=` --include ${r}`);const{error:n,stdout:i}=H.default.sync(e,{stdio:["inherit"],encoding:"utf8",cwd:this.sourceFS.root,shell:!0}),a={};n||i.trim().split("\n").forEach((e=>{if(e){const[t,n]=e.trim().split(/\s[-*]\s/);if(t&&n){let e=n.trim();r&&(e=j.default.relative(r,e)),a[e]=t.trim()}}})),this.options.lfs.files=a,se.info(`found ${Object.keys(a).length} files`)}}async initPlugins(){this.plugins=await async function(e,t,r){const n=fe.createPluginCenter(r),i=await n.getInstalled(e),a=[];se.info(`installing ${i.length} plugins from registry`);for(let e of i)try{if(e.disabled){se.warn('plugin "'+e.name+'" has been disabled');continue}a.push(await Ah(e,t))}catch(t){se.warn('plugin "'+e.name+'" installed with fail'),se.warn(t.message)}return a}(this.book,this.tmpFS.root,this.options.plugins)}async generateLogo(){if(!this.tmpFS.exist("logo.png")){const e=this.book.config.getValue("title","Untitled"),t=g.createCanvas(60,60);fe.LetterAvatar.create(e,60,t);const r=t.toBuffer("image/png");await this.tmpFS.writeFile("logo.png",r)}}async generateArticles(){se.info("generate articles ...");const e=this.book.summary.getArticles();se.info(`found ${e.length} articles`);for(const t of e)if(t.ref){se.info('generate article "'+t.getRef()+'"');try{await this.onArticle(t),await this.callHook("article",t)}catch(e){"ENOENT"===e.code?se.warn(`article file [${t.ref}] not exist`):se.warn(`generate article [${t.ref}] failed: ${e.message}`)}}}async callHook(e,...t){return se.debug('calling hook "'+e+'"'),await(async(e,t)=>{for(let r of e)if(!await t(r))return!1;return!0})(this.plugins,(async r=>{const n=r.getHook(e);return!n||await n.apply(r.getContext(this.getContext()),t)}))}async makeFile(e,t){const r=await this.tmpFS.readAsString(t),n=this.parseFileMeta(t,r);return new fe.File({path:e,...n})}parseFileMeta(e,t){const r=t.match(Ch);let n={};if(r){if(void 0!==r[2])try{n=W.default.load(r[2])||{}}catch{}t=void 0!==r[3]?r[3]:""}const i=j.default.join(this.book.config.getValue("root",""),e);return n.mtime=this.sourceFS.readFileMTime(i),{meta:n,content:t}}}{format="json";async onInit(){this.processSummary()}processSummary(){this.book.summary.getArticle((e=>(e.ref&&(e.path=K.default(e.ref,".json")),!1)))}async onArticle(e){if(e.ref){const t=await this.tmpFS.readAsString(e.ref);await this.tmpFS.unlink(e.ref),await this.tmpFS.writeFile(e.getPath(),JSON.stringify({title:e.title,content:t},null,4))}}async onSummary(){const e=this.book.summary;await this.tmpFS.unlink("SUMMARY.md"),await this.tmpFS.writeFile("SUMMARY.json",JSON.stringify(e.toObject(),null,4))}async onFinish(){await this.packBook()}async packBook(){se.info("pack book ...");const e=J.default.createWriteStream(this.dest);await this.tmpFS.archive(e,"tar")}}class Dh{root;constructor(e){this.root=e}readFileMTime(e){const t=`git log --pretty=format:%cI -1 -- ${e}`,{error:r,stdout:n}=H.default.sync(t,{stdio:["inherit"],encoding:"utf8",cwd:this.root,shell:!0});if(!r)return n}createReadStream(e,t){return J.default.createReadStream(this.resolve(e),t)}async readFile(e){return await J.default.readFile(this.resolve(e))}async readAsObject(e){try{return await J.default.readJSON(this.resolve(e))}catch{return{}}}async readAsString(e){try{return await J.default.readFile(this.resolve(e),"utf-8")}catch{return""}}async writeFile(e,t){return J.default.writeFile(this.resolve(e),t)}createWriteStream(e,t){return e=this.resolve(e),J.default.ensureDirSync(j.default.dirname(e)),J.default.createWriteStream(e,t)}async appendFile(e,t){return J.default.appendFile(this.resolve(e),t)}exist(e){return J.default.pathExistsSync(this.resolve(e))}async unlink(e){try{await J.default.unlink(this.resolve(e))}catch{}}async readDir(e=""){const t=[];return new Promise((r=>{Y.default({path:this.resolve(e),ignoreFiles:[".gitignore",".bookignore"]}).on("child",(function(e){t.push({type:e.type,path:e.path.substr(e.root.path.length+1)})})).on("close",(()=>{r(t)}))}))}resolve(...e){return j.default.join(this.root,...e)}async archive(e,t="tar"){if("tar"==t)return new Promise(((t,r)=>{x.pack(this.root,{fromBase:!0,ignoreFiles:[".gitignore",".bookignore"]}).pipe(e).on("error",(e=>{r(e)})).on("close",(()=>{t()}))}));{const r=await this.readDir();return new Promise(((n,i)=>{e.on("error",(e=>{i(e)})),e.on("close",(()=>{n()}));const a=X.default(t,{gzip:!0,gzipOptions:{level:9},zlib:{level:9}});a.pipe(e);for(const e of r)"File"===e.type&&a.append(this.createReadStream(e.path),{name:e.path});a.finalize()}))}}}class Oh extends Fh{template;scripts=[];stylesheets=[];headScripts=[];format="html";async onInit(){await super.onInit(),await this.installCommonAssets(),await this.installReader(),await this.copyPluginsAssets(),await this.initTemplate()}initTemplate(){const e=J.default.readFileSync(j.default.resolve(__dirname,"../templates/html.ejs"),"utf-8");this.template=Z.default.compile(e)}processSummary(){this.book.summary.getArticle((e=>{if(e.ref){const t=r.posix.parse(e.ref);e.path=r.posix.format({...t,name:E.pinyin(t.name,{toneType:"none",type:"array"}).join("-"),ext:".html",base:""})}return!1}))}async installCommonAssets(){se.info("installing common assets ..."),await this.installPackage("lodash","lodash.min.js","lodash/lodash.min.js"),await this.installPackage("react","umd/react.production.min.js","react/react.production.min.js"),await this.installPackage("react-dom","umd/react-dom.production.min.js","react-dom/react-dom.production.min.js"),se.info("common assets installed with success")}async installReader(){se.info("installing package @topwrite/reader ...");const e=await this.installPackage("@topwrite/reader","dist/","reader");se.info(`package @topwrite/reader@${e.version} installed with success`)}async installPackage(e,t,r){const n=require.resolve(`${e}/package.json`),i=j.default.join(j.default.dirname(n),t),a=j.default.join(this.tmpFS.root,"asset",r);await J.default.copy(i,a);const o=require(n);return t.endsWith("/")&&(r=`${r}/index.js`),this.scripts.push(`asset/${r}?v=${o.version}`),o}async copyPluginsAssets(){for(const e of this.plugins)await J.default.copy(j.default.join(e.path,"dist"),j.default.join(this.tmpFS.root,"asset","plugins",e.name)),this.scripts.push(`asset/plugins/${e.name}/index.js?v=${e.version}`)}async onArticle(e){if(e.ref){const t=e.getPath(),r=await this.makeFile(t,e.ref),n=await this.renderFile(r,e.title);await this.tmpFS.unlink(e.ref),await this.tmpFS.writeFile(t,n)}}async onSummary(){const e=await this.makeFile("index.html","README.md"),t=await this.renderFile(e);await this.tmpFS.unlink("SUMMARY.md"),await this.tmpFS.unlink("README.md"),await this.tmpFS.writeFile("index.html",t)}async renderFile(e,t){const r={id:this.book.id,summary:this.book.summary.toObject(),config:this.book.config.toObject(),file:e,options:{lfs:this.options.lfs}},n=this.scripts.map((t=>fe.isUrl(t)?t:e.relative(t))),i=this.headScripts.map((t=>fe.isUrl(t)?t:e.relative(t))),a=this.stylesheets.map((t=>fe.isUrl(t)?t:e.relative(t))),o=this.book.config.getValue("title","Untitled"),s=e.getMeta("title",t);return this.template({title:(s?`${s} - `:"")+o,keywords:e.getMeta("keywords"),description:e.getMeta("description"),stylesheets:a,headScripts:i,scripts:n,payload:JSON.stringify(r).replace(/\//g,"\\/")})}}const Rh=(e,t)=>e.some((e=>e instanceof RegExp?e.test(t):e===t));class Th extends ee.default.ResourceLoader{fs;file;constructor(e,t){super(),this.fs=e,this.file=t}async fetch(e,t){const{element:r}=t;if(r&&"IMG"===r.nodeName){if(o.parse(e).protocol?.startsWith("http")){const t=await fe.request.get(e,{responseType:"stream"});let n=`_images/${fe.md5(e)}`;const i=te.default.extension(t.headers["content-type"]);i&&(n+=`.${i}`),r.setAttribute("src",this.file.relative(n));const a=this.fs.createWriteStream(n);return new Promise(((e,r)=>{t.data.pipe(a),a.on("error",(e=>{a.close(),r(e)})),a.on("close",(()=>{e(null)}))}))}return null}return super.fetch(e,t)}}function Ih(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const jh={json:Fh,html:Oh,ebook:class extends Oh{format="ebook";async initPlugins(){this.book.config.setValue("theme","ebook"),await super.initPlugins()}createDOM(e,t){const r=new Th(this.tmpFS,t),n=new P.VirtualConsole;return n.sendTo(console,{omitJSDOMErrors:!0}),new P.JSDOM(e,{virtualConsole:n,url:`file:///${this.tmpFS.resolve(t.path)}`,runScripts:"dangerously",resources:r,pretendToBeVisual:!0,beforeParse(e){e.SC_DISABLE_SPEEDY=!0}})}async renderFile(e,t){const r=await super.renderFile(e,t),n=this.createDOM(r,e);return await function(e,t){const{tryEvery:r,stopAfter:n}=t,i=Date.now(),a=(t,o)=>{setTimeout((async()=>{try{const r=await e();t(r)}catch(e){Date.now()-i>n?o(e):a(t,o)}}),r)};return new Promise(a)}((()=>{const e=n.window.document,t=e.getElementById("root");if(t&&t.innerHTML&&Array.from(e.images).every((e=>e.complete))){for(const e of Array.from(n.window.document.scripts))e.remove();return n.serialize()}throw new Error("render html timeout")}),{stopAfter:5e3,tryEvery:100})}getConvertOptions(e){const{config:t}=this.book,r={title:t.getValue("title"),"book-producer":"TopWrite",publisher:"TopWrite",chapter:"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-chapter')]","level1-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-level1-toc')]","level2-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-level2-toc')]","level3-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-level3-toc')]","max-toc-links":"0","max-levels":"1","no-chapters-in-toc":!0,"breadth-first":!0,"disable-font-rescaling":!0};switch(e){case"docx":r["docx-no-toc"]=!0;break;case"epub":r["dont-split-on-page-breaks"]=!0;break;case"pdf":const e=J.default.readFileSync(j.default.resolve(__dirname,"../templates/pdf-header.ejs"),"utf-8"),n=J.default.readFileSync(j.default.resolve(__dirname,"../templates/pdf-footer.ejs"),"utf-8");r["chapter-mark"]=t.getValue(["pdf","chapterMark"]),r["page-breaks-before"]=t.getValue(["pdf","pageBreaksBefore"]),r["pdf-page-margin-left"]=t.getValue(["pdf","margin","left"]),r["pdf-page-margin-right"]=t.getValue(["pdf","margin","right"]),r["pdf-page-margin-top"]=t.getValue(["pdf","margin","top"]),r["pdf-page-margin-bottom"]=t.getValue(["pdf","margin","bottom"]),r["pdf-serif-family"]=t.getValue(["pdf","fontFamily"]),r["paper-size"]=t.getValue(["pdf","paperSize"]),r["pdf-custom-size"]=t.getValue(["pdf","customSize"]),r.unit="millimeter",r["pdf-page-numbers"]=t.getValue(["pdf","pageNumbers"]),r["preserve-cover-aspect-ratio"]=!0,r["pdf-header-template"]=e,r["pdf-footer-template"]=n}return r}async packBook(){const e=j.default.extname(this.dest).substr(1);if(!["pdf","docx","epub"].includes(e))return super.packBook();const t=await S.lookpath("ebook-convert");if(!t)throw new Error("Install ebook-convert from Calibre: https://calibre-ebook.com");const r=function(e,t){const r=[];let n=[],i=[];t={useEquals:!0,shortFlag:!0,...t};const a=(e,n)=>{const i=t.shortFlag&&1===e.length?"-":"--",a=t.allowCamelCase?e:e.replace(/[A-Z]/g,"-$&").toLowerCase();e=i+a,t.useEquals?r.push(e+(n?`=${n}`:"")):(r.push(e),n&&r.push(n))},o=(e,t)=>{r.push(`-${e}`),t&&r.push(t)};for(let[r,s]of Object.entries(e)){let e=a;if((!Array.isArray(t.excludes)||!Rh(t.excludes,r))&&(!Array.isArray(t.includes)||Rh(t.includes,r)))if("object"==typeof t.aliases&&t.aliases[r]&&(r=t.aliases[r],e=o),"--"!==r)if("_"!==r){if(!0!==s||t.ignoreTrue||e(r,""),!1!==s||t.ignoreFalse||e(`no-${r}`),"string"==typeof s&&e(r,s),"number"!=typeof s||Number.isNaN(s)||e(r,String(s)),Array.isArray(s))for(const t of s)e(r,t)}else{if(!Array.isArray(s))throw new TypeError("Expected key `_` to be Array, got "+typeof s);n=s}else{if(!Array.isArray(s))throw new TypeError("Expected key `--` to be Array, got "+typeof s);i=s}}for(const e of n)r.push(String(e));i.length>0&&r.push("--");for(const e of i)r.push(String(e));return r}(this.getConvertOptions(e)),n=this.tmpFS.resolve("index.html");return r.unshift(n,this.dest),new Promise(((e,i)=>{se.info("convert book ...");const a=H.default(t,r,{stdio:["inherit"],cwd:this.tmpFS.root}),o=["^Conversion options ","^ \\w+: ","^Blocking URL ","^Ignoring CSS ","^CSSStyleDeclaration: ","^PropertyValue: ","^CSSVariable: ",Ih(n),Ih(this.dest)].map((e=>`(${e})`)).join("|"),s=new RegExp(`(${o})`);a.stdout?.on("data",(e=>{e.toString().replace(/[\r\n]*$/,"").split("\n").forEach((e=>{if(e){const t=e.trim();e.match(s)?se.debug({message:t,type:"log"}):se.log(t)}}))})),a.stderr?.on("data",(e=>{se.error(e.toString().trimEnd())})),a.on("close",(t=>{0!==t?i("Convert failed"):e()}))}))}}};var Lh=ne.default,qh=process.cwd,zh=null,Mh=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return zh||(zh=qh.call(process)),zh};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var Nh=process.chdir;process.chdir=function(e){zh=null,Nh.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Nh)}var Bh=function(e){Lh.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,n){e.open(t,Lh.O_WRONLY|Lh.O_SYMLINK,r,(function(t,i){t?n&&n(t):e.fchmod(i,r,(function(t){e.close(i,(function(e){n&&n(t||e)}))}))}))},e.lchmodSync=function(t,r){var n,i=e.openSync(t,Lh.O_WRONLY|Lh.O_SYMLINK,r),a=!0;try{n=e.fchmodSync(i,r),a=!1}finally{if(a)try{e.closeSync(i)}catch(e){}else e.closeSync(i)}return n}}(e);e.lutimes||function(e){Lh.hasOwnProperty("O_SYMLINK")?(e.lutimes=function(t,r,n,i){e.open(t,Lh.O_SYMLINK,(function(t,a){t?i&&i(t):e.futimes(a,r,n,(function(t){e.close(a,(function(e){i&&i(t||e)}))}))}))},e.lutimesSync=function(t,r,n){var i,a=e.openSync(t,Lh.O_SYMLINK),o=!0;try{i=e.futimesSync(a,r,n),o=!1}finally{if(o)try{e.closeSync(a)}catch(e){}else e.closeSync(a)}return i}):(e.lutimes=function(e,t,r,n){n&&process.nextTick(n)},e.lutimesSync=function(){})}(e);e.chown=i(e.chown),e.fchown=i(e.fchown),e.lchown=i(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=n(e.chmodSync),e.fchmodSync=n(e.fchmodSync),e.lchmodSync=n(e.lchmodSync),e.stat=o(e.stat),e.fstat=o(e.fstat),e.lstat=o(e.lstat),e.statSync=s(e.statSync),e.fstatSync=s(e.fstatSync),e.lstatSync=s(e.lstatSync),e.lchmod||(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){});e.lchown||(e.lchown=function(e,t,r,n){n&&process.nextTick(n)},e.lchownSync=function(){});"win32"===Mh&&(e.rename=(t=e.rename,function(r,n,i){var a=Date.now(),o=0;t(r,n,(function s(c){if(c&&("EACCES"===c.code||"EPERM"===c.code)&&Date.now()-a<6e4)return setTimeout((function(){e.stat(n,(function(e,a){e&&"ENOENT"===e.code?t(r,n,s):i(c)}))}),o),void(o<100&&(o+=10));i&&i(c)}))}));var t;function r(t){return t?function(r,n,i){return t.call(e,r,n,(function(e){c(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function n(t){return t?function(r,n){try{return t.call(e,r,n)}catch(e){if(!c(e))throw e}}:t}function i(t){return t?function(r,n,i,a){return t.call(e,r,n,i,(function(e){c(e)&&(e=null),a&&a.apply(this,arguments)}))}:t}function a(t){return t?function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!c(e))throw e}}:t}function o(t){return t?function(r,n,i){function a(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof n&&(i=n,n=null),n?t.call(e,r,n,a):t.call(e,r,a)}:t}function s(t){return t?function(r,n){var i=n?t.call(e,r,n):t.call(e,r);return i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296),i}:t}function c(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}e.read=function(t){function r(r,n,i,a,o,s){var c;if(s&&"function"==typeof s){var u=0;c=function(l,f,h){if(l&&"EAGAIN"===l.code&&u<10)return u++,t.call(e,r,n,i,a,o,c);s.apply(this,arguments)}}return t.call(e,r,n,i,a,o,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.read),e.readSync=(u=e.readSync,function(t,r,n,i,a){for(var o=0;;)try{return u.call(e,t,r,n,i,a)}catch(e){if("EAGAIN"===e.code&&o<10){o++;continue}throw e}});var u};var $h=U.default.Stream,Uh=function(e){return{ReadStream:function t(r,n){if(!(this instanceof t))return new t(r,n);$h.call(this);var i=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,n=n||{};for(var a=Object.keys(n),o=0,s=a.length;o<s;o++){var c=a[o];this[c]=n[c]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){i._read()}));e.open(this.path,this.flags,this.mode,(function(e,t){if(e)return i.emit("error",e),void(i.readable=!1);i.fd=t,i.emit("open",t),i._read()}))},WriteStream:function t(r,n){if(!(this instanceof t))return new t(r,n);$h.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,n=n||{};for(var i=Object.keys(n),a=0,o=i.length;a<o;a++){var s=i[a];this[s]=n[s]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}};var Vh=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var t={__proto__:Hh(e)};else t=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})),t},Hh=Object.getPrototypeOf||function(e){return e.__proto__};var Qh,Gh,Wh=G.default,Kh=Bh,Jh=Uh,Yh=Vh,Xh=ie.default;function Zh(e,t){Object.defineProperty(e,Qh,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(Qh=Symbol.for("graceful-fs.queue"),Gh=Symbol.for("graceful-fs.previous")):(Qh="___graceful-fs.queue",Gh="___graceful-fs.previous");var ep=function(){};if(Xh.debuglog?ep=Xh.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(ep=function(){var e=Xh.format.apply(Xh,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!Wh[Qh]){var tp=ce[Qh]||[];Zh(Wh,tp),Wh.close=function(e){function t(t,r){return e.call(Wh,t,(function(e){e||op(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(t,Gh,{value:e}),t}(Wh.close),Wh.closeSync=function(e){function t(t){e.apply(Wh,arguments),op()}return Object.defineProperty(t,Gh,{value:e}),t}(Wh.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){ep(Wh[Qh]),N.default.equal(Wh[Qh].length,0)}))}ce[Qh]||Zh(ce,Wh[Qh]);var rp,np=ip(Yh(Wh));function ip(e){Kh(e),e.gracefulify=ip,e.createReadStream=function(t,r){return new e.ReadStream(t,r)},e.createWriteStream=function(t,r){return new e.WriteStream(t,r)};var t=e.readFile;e.readFile=function(e,r,n){"function"==typeof r&&(n=r,r=null);return function e(r,n,i,a){return t(r,n,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof i&&i.apply(this,arguments):ap([e,[r,n,i],t,a||Date.now(),Date.now()])}))}(e,r,n)};var r=e.writeFile;e.writeFile=function(e,t,n,i){"function"==typeof n&&(i=n,n=null);return function e(t,n,i,a,o){return r(t,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof a&&a.apply(this,arguments):ap([e,[t,n,i,a],r,o||Date.now(),Date.now()])}))}(e,t,n,i)};var n=e.appendFile;n&&(e.appendFile=function(e,t,r,i){"function"==typeof r&&(i=r,r=null);return function e(t,r,i,a,o){return n(t,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof a&&a.apply(this,arguments):ap([e,[t,r,i,a],n,o||Date.now(),Date.now()])}))}(e,t,r,i)});var i=e.copyFile;i&&(e.copyFile=function(e,t,r,n){"function"==typeof r&&(n=r,r=0);return function e(t,r,n,a,o){return i(t,r,n,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof a&&a.apply(this,arguments):ap([e,[t,r,n,a],i,o||Date.now(),Date.now()])}))}(e,t,r,n)});var a=e.readdir;if(e.readdir=function(e,t,r){"function"==typeof t&&(r=t,t=null);return function e(t,r,n,i){return a(t,r,(function(a,o){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?(o&&o.sort&&o.sort(),"function"==typeof n&&n.call(this,a,o)):ap([e,[t,r,n],a,i||Date.now(),Date.now()])}))}(e,t,r)},"v0.8"===process.version.substr(0,4)){var o=Jh(e);f=o.ReadStream,h=o.WriteStream}var s=e.ReadStream;s&&(f.prototype=Object.create(s.prototype),f.prototype.open=function(){var e=this;d(e.path,e.flags,e.mode,(function(t,r){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r),e.read())}))});var c=e.WriteStream;c&&(h.prototype=Object.create(c.prototype),h.prototype.open=function(){var e=this;d(e.path,e.flags,e.mode,(function(t,r){t?(e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return f},set:function(e){f=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0});var u=f;Object.defineProperty(e,"FileReadStream",{get:function(){return u},set:function(e){u=e},enumerable:!0,configurable:!0});var l=h;function f(e,t){return this instanceof f?(s.apply(this,arguments),this):f.apply(Object.create(f.prototype),arguments)}function h(e,t){return this instanceof h?(c.apply(this,arguments),this):h.apply(Object.create(h.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return l},set:function(e){l=e},enumerable:!0,configurable:!0});var p=e.open;function d(e,t,r,n){return"function"==typeof r&&(n=r,r=null),function e(t,r,n,i,a){return p(t,r,n,(function(o,s){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?"function"==typeof i&&i.apply(this,arguments):ap([e,[t,r,n,i],o,a||Date.now(),Date.now()])}))}(e,t,r,n)}return e.open=d,e}function ap(e){ep("ENQUEUE",e[0].name,e[1]),Wh[Qh].push(e),sp()}function op(){for(var e=Date.now(),t=0;t<Wh[Qh].length;++t)Wh[Qh][t].length>2&&(Wh[Qh][t][3]=e,Wh[Qh][t][4]=e);sp()}function sp(){if(clearTimeout(rp),rp=void 0,0!==Wh[Qh].length){var e=Wh[Qh].shift(),t=e[0],r=e[1],n=e[2],i=e[3],a=e[4];if(void 0===i)ep("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){ep("TIMEOUT",t.name,r);var o=r.pop();"function"==typeof o&&o.call(null,n)}else{var s=Date.now()-a,c=Math.max(a-i,1);s>=Math.min(1.2*c,100)?(ep("RETRY",t.name,r),t.apply(null,r.concat([i]))):Wh[Qh].push(e)}void 0===rp&&(rp=setTimeout(sp,0))}}process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Wh.__patched&&(np=ip(Wh),Wh.__patched=!0);var cp=np;const up=re.default.homedir(),{env:lp}=process,fp=lp.XDG_DATA_HOME||(up?j.default.join(up,".local","share"):void 0),hp=lp.XDG_CONFIG_HOME||(up?j.default.join(up,".config"):void 0);lp.XDG_STATE_HOME||up&&j.default.join(up,".local","state"),lp.XDG_CACHE_HOME||up&&j.default.join(up,".cache"),lp.XDG_RUNTIME_DIR;const pp=(lp.XDG_DATA_DIRS||"/usr/local/share/:/usr/share/").split(":");fp&&pp.unshift(fp);const dp=(lp.XDG_CONFIG_DIRS||"/etc/xdg").split(":");hp&&dp.unshift(hp);var mp={exports:{}},gp={exports:{}};
|
|
8
|
+
*/var Un=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},Vn=Object.prototype.hasOwnProperty,Hn=Object.prototype.toString,Qn=Object.defineProperty,Gn=Object.getOwnPropertyDescriptor,Wn=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Hn.call(e)},Kn=function(e){if(!e||"[object Object]"!==Hn.call(e))return!1;var t,r=Vn.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&Vn.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||Vn.call(e,t)},Jn=function(e,t){Qn&&"__proto__"===t.name?Qn(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Yn=function(e,t){if("__proto__"===t){if(!Vn.call(e,t))return;if(Gn)return Gn(e,t).value}return e[t]},Xn=function e(){var t,r,n,i,a,o,s=arguments[0],c=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[1]||{},c=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});c<u;++c)if(null!=(t=arguments[c]))for(r in t)n=Yn(s,r),s!==(i=Yn(t,r))&&(l&&i&&(Kn(i)||(a=Wn(i)))?(a?(a=!1,o=n&&Wn(n)?n:[]):o=n&&Kn(n)?n:{},Jn(s,{name:r,newValue:e(l,o,i)})):void 0!==i&&Jn(s,{name:r,newValue:i}));return s};function Zn(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function ei(){const e=[],t={run:function(...t){let r=-1;const n=t.pop();if("function"!=typeof n)throw new TypeError("Expected function as last argument, not "+n);!function i(a,...o){const s=e[++r];let c=-1;if(a)n(a);else{for(;++c<t.length;)null!==o[c]&&void 0!==o[c]||(o[c]=t[c]);t=o,s?function(e,t){let r;return n;function n(...t){const n=e.length>t.length;let o;n&&t.push(i);try{o=e(...t)}catch(e){const t=e;if(n&&r)throw t;return i(t)}n||(o instanceof Promise?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...n){r||(r=!0,t(e,...n))}function a(e){i(null,e)}}(s,i)(...o):n(null,...o)}}(null,...t)},use:function(r){if("function"!=typeof r)throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}};return t}var ti={}.hasOwnProperty;function ri(e){return e&&"object"==typeof e?ti.call(e,"position")||ti.call(e,"type")?ii(e.position):ti.call(e,"start")||ti.call(e,"end")?ii(e):ti.call(e,"line")||ti.call(e,"column")?ni(e):"":""}function ni(e){return ai(e&&e.line)+":"+ai(e&&e.column)}function ii(e){return ni(e&&e.start)+"-"+ni(e&&e.end)}function ai(e){return e&&"number"==typeof e?e:1}class oi extends Error{constructor(e,t,r){var n,i=[null,null],a={start:{line:null,column:null},end:{line:null,column:null}};super(),"string"==typeof t&&(r=t,t=null),"string"==typeof r&&(-1===(n=r.indexOf(":"))?i[1]=r:(i[0]=r.slice(0,n),i[1]=r.slice(n+1))),t&&("type"in t||"position"in t?t.position&&(a=t.position):"start"in t||"end"in t?a=t:("line"in t||"column"in t)&&(a.start=t)),this.name=ri(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="object"==typeof e?e.stack:"",this.reason=this.message,this.line=a.start.line,this.column=a.start.column,this.source=i[0],this.ruleId=i[1],this.position=a,this.file,this.fatal,this.url,this.note}}oi.prototype.file="",oi.prototype.name="",oi.prototype.reason="",oi.prototype.message="",oi.prototype.stack="",oi.prototype.fatal=null,oi.prototype.column=null,oi.prototype.line=null,oi.prototype.source=null,oi.prototype.ruleId=null,oi.prototype.position=null;const si=z.default;function ci(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}const ui=["history","path","basename","stem","extname","dirname"];class li{constructor(e){let t;t=e?"string"==typeof e||Un(e)?{value:e}:ci(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=si.cwd(),this.value,this.stored,this.result,this.map;let r,n=-1;for(;++n<ui.length;){const e=ui[n];e in t&&void 0!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(r in t)ui.includes(r)||(this[r]=t[r])}get path(){return this.history[this.history.length-1]}set path(e){ci(e)&&(e=o.fileURLToPath(e)),hi(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?j.default.dirname(this.path):void 0}set dirname(e){pi(this.basename,"dirname"),this.path=j.default.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?j.default.basename(this.path):void 0}set basename(e){hi(e,"basename"),fi(e,"basename"),this.path=j.default.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?j.default.extname(this.path):void 0}set extname(e){if(fi(e,"extname"),pi(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=j.default.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?j.default.basename(this.path,this.extname):void 0}set stem(e){hi(e,"stem"),fi(e,"stem"),this.path=j.default.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e)}message(e,t,r){const n=new oi(e,t,r);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}info(e,t,r){const n=this.message(e,t,r);return n.fatal=null,n}fail(e,t,r){const n=this.message(e,t,r);throw n.fatal=!0,n}}function fi(e,t){if(e&&e.includes(j.default.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+j.default.sep+"`")}function hi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function pi(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const di=function e(){const t=ei(),r=[];let n,i={},a=-1;return o.data=function(e,t){if("string"==typeof e)return 2===arguments.length?(bi("data",n),i[e]=t,o):mi.call(i,e)&&i[e]||null;if(e)return bi("data",n),i=e,o;return i},o.Parser=void 0,o.Compiler=void 0,o.freeze=function(){if(n)return o;for(;++a<r.length;){const[e,...n]=r[a];if(!1===n[0])continue;!0===n[0]&&(n[1]=void 0);const i=e.call(o,...n);"function"==typeof i&&t.use(i)}return n=!0,a=Number.POSITIVE_INFINITY,o},o.attachers=r,o.use=function(e,...t){let a;if(bi("use",n),null==e);else if("function"==typeof e)l(e,...t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?u(e):c(e)}a&&(i.settings=Object.assign(i.settings||{},a));return o;function s(e){if("function"==typeof e)l(e);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...r]=e;l(t,...r)}else c(e)}}function c(e){u(e.plugins),e.settings&&(a=Object.assign(a||{},e.settings))}function u(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){s(e[t])}}}function l(e,t){let n,i=-1;for(;++i<r.length;)if(r[i][0]===e){n=r[i];break}n?(Zn(n[1])&&Zn(t)&&(t=Xn(!0,n[1],t)),n[1]=t):r.push([...arguments])}},o.parse=function(e){o.freeze();const t=ki(e),r=o.Parser;if(vi("parse",r),gi(r,"parse"))return new r(String(t),t).parse();return r(String(t),t)},o.stringify=function(e,t){o.freeze();const r=ki(t),n=o.Compiler;if(yi("stringify",n),wi(e),gi(n,"compile"))return new n(e,r).compile();return n(e,r)},o.run=function(e,r,n){wi(e),o.freeze(),n||"function"!=typeof r||(n=r,r=void 0);if(!n)return new Promise(i);function i(i,a){function o(t,r,o){r=r||e,t?a(t):i?i(r):n(null,r,o)}t.run(e,ki(r),o)}i(null,n)},o.runSync=function(e,t){let r,n;return o.run(e,t,i),xi("runSync","run",n),r;function i(e,t){$n(e),r=t,n=!0}},o.process=function(e,t){if(o.freeze(),vi("process",o.Parser),yi("process",o.Compiler),!t)return new Promise(r);function r(r,n){const i=ki(e);function a(e,i){e||!i?n(e):r?r(i):t(null,i)}o.run(o.parse(i),i,((e,t,r)=>{if(!e&&t&&r){const n=o.stringify(t,r);null==n||(!function(e){return"string"==typeof e||Un(e)}(n)?r.result=n:r.value=n),a(e,r)}else a(e)}))}r(null,t)},o.processSync=function(e){let t;o.freeze(),vi("processSync",o.Parser),yi("processSync",o.Compiler);const r=ki(e);return o.process(r,n),xi("processSync","process",t),r;function n(e){t=!0,$n(e)}},o;function o(){const t=e();let n=-1;for(;++n<r.length;)t.use(...r[n]);return t.data(Xn(!0,{},i)),t}}().freeze(),mi={}.hasOwnProperty;function gi(e,t){return"function"==typeof e&&e.prototype&&(function(e){let t;for(t in e)if(mi.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function vi(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function yi(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function bi(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function wi(e){if(!Zn(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function xi(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ki(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new li(e)}var Ei=le(Object.freeze({__proto__:null,unified:di}));function Si(e,t){var{includeImageAlt:r=!0}=t||{};return Pi(e,r)}function Pi(e,t){return e&&"object"==typeof e&&(e.value||(t?e.alt:"")||"children"in e&&_i(e.children,t)||Array.isArray(e)&&_i(e,t))||""}function _i(e,t){for(var r=[],n=-1;++n<e.length;)r[n]=Pi(e[n],t);return r.join("")}function Ai(e,t,r,n){const i=e.length;let a,o=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,r=r>0?r:0,n.length<1e4)a=Array.from(n),a.unshift(t,r),[].splice.apply(e,a);else for(r&&[].splice.apply(e,[t,r]);o<n.length;)a=n.slice(o,o+1e4),a.unshift(t,0),[].splice.apply(e,a),o+=1e4,t+=1e4}function Ci(e,t){return e.length>0?(Ai(e,e.length,0,t),e):t}const Fi={}.hasOwnProperty;function Di(e){const t={};let r=-1;for(;++r<e.length;)Oi(t,e[r]);return t}function Oi(e,t){let r;for(r in t){const n=(Fi.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let a;for(a in i){Fi.call(n,a)||(n[a]=[]);const e=i[a];Ri(n[a],Array.isArray(e)?e:e?[e]:[])}}}function Ri(e,t){let r=-1;const n=[];for(;++r<t.length;)("after"===t[r].add?e:n).push(t[r]);Ai(e,0,0,n)}const Ti=Hi(/[A-Za-z]/),Ii=Hi(/\d/),ji=Hi(/[\dA-Fa-f]/),Li=Hi(/[\dA-Za-z]/),qi=Hi(/[!-/:-@[-`{-~]/),zi=Hi(/[#-'*+\--9=?A-Z^-~]/);function Mi(e){return null!==e&&(e<32||127===e)}function Ni(e){return null!==e&&(e<0||32===e)}function Bi(e){return null!==e&&e<-2}function $i(e){return-2===e||-1===e||32===e}const Ui=Hi(/\s/),Vi=Hi(/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/);function Hi(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}var Qi=Object.freeze({__proto__:null,asciiAlpha:Ti,asciiDigit:Ii,asciiHexDigit:ji,asciiAlphanumeric:Li,asciiPunctuation:qi,asciiAtext:zi,asciiControl:Mi,markdownLineEndingOrSpace:Ni,markdownLineEnding:Bi,markdownSpace:$i,unicodeWhitespace:Ui,unicodePunctuation:Vi});function Gi(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return function(n){if($i(n))return e.enter(r),o(n);return t(n)};function o(n){return $i(n)&&a++<i?(e.consume(n),o):(e.exit(r),t(n))}}var Wi=Object.freeze({__proto__:null,factorySpace:Gi});const Ki={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Gi(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),n(t)}));let r;return t;function n(t){const n=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=n),r=n,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Bi(t)?(e.consume(t),e.exit("chunkText"),n):(e.consume(t),i)}}};const Ji={tokenize:function(e){const t=this,r=[];let n,i,a,o=0;return s;function s(n){if(o<r.length){const i=r[o];return t.containerState=i[1],e.attempt(i[0].continuation,c,u)(n)}return u(n)}function c(e){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&y();const r=t.events.length;let i,a=r;for(;a--;)if("exit"===t.events[a][0]&&"chunkFlow"===t.events[a][1].type){i=t.events[a][1].end;break}v(o);let s=r;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},i),s++;return Ai(t.events,a+1,0,t.events.slice(r)),t.events.length=s,u(e)}return s(e)}function u(i){if(o===r.length){if(!n)return h(i);if(n.currentConstruct&&n.currentConstruct.concrete)return d(i);t.interrupt=Boolean(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Yi,l,f)(i)}function l(e){return n&&y(),v(o),h(e)}function f(e){return t.parser.lazy[t.now().line]=o!==r.length,a=t.now().offset,d(e)}function h(r){return t.containerState={},e.attempt(Yi,p,d)(r)}function p(e){return o++,r.push([t.currentConstruct,t.containerState]),h(e)}function d(r){return null===r?(n&&y(),v(0),void e.consume(r)):(n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:n}),m(r))}function m(r){return null===r?(g(e.exit("chunkFlow"),!0),v(0),void e.consume(r)):Bi(r)?(e.consume(r),g(e.exit("chunkFlow")),o=0,t.interrupt=void 0,s):(e.consume(r),m)}function g(e,r){const s=t.sliceStream(e);if(r&&s.push(null),e.previous=i,i&&(i.next=e),i=e,n.defineSkip(e.start),n.write(s),t.parser.lazy[e.start.line]){let e=n.events.length;for(;e--;)if(n.events[e][1].start.offset<a&&(!n.events[e][1].end||n.events[e][1].end.offset>a))return;const r=t.events.length;let i,s,c=r;for(;c--;)if("exit"===t.events[c][0]&&"chunkFlow"===t.events[c][1].type){if(i){s=t.events[c][1].end;break}i=!0}for(v(o),e=r;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;Ai(t.events,c+1,0,t.events.slice(r)),t.events.length=e}}function v(n){let i=r.length;for(;i-- >n;){const n=r[i];t.containerState=n[1],n[0].exit.call(t,e)}r.length=n}function y(){n.write([null]),i=void 0,n=void 0,t.containerState._closeFlow=void 0}}},Yi={tokenize:function(e,t,r){return Gi(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function Xi(e){return null===e||Ni(e)||Ui(e)?1:Vi(e)?2:void 0}function Zi(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}const ea={name:"attention",tokenize:function(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Xi(n);let a;return function(t){return e.enter("attentionSequence"),a=t,o(t)};function o(s){if(s===a)return e.consume(s),o;const c=e.exit("attentionSequence"),u=Xi(s),l=!u||2===u&&i||r.includes(s),f=!i||2===i&&u||r.includes(n);return c._open=Boolean(42===a?l:l&&(i||!f)),c._close=Boolean(42===a?f:f&&(u||!l)),t(s)}},resolveAll:function(e,t){let r,n,i,a,o,s,c,u,l=-1;for(;++l<e.length;)if("enter"===e[l][0]&&"attentionSequence"===e[l][1].type&&e[l][1]._close)for(r=l;r--;)if("exit"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[l][1]).charCodeAt(0)){if((e[r][1]._close||e[l][1]._open)&&(e[l][1].end.offset-e[l][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[l][1].end.offset-e[l][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[l][1].end.offset-e[l][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),h=Object.assign({},e[l][1].start);ta(f,-s),ta(h,s),a={type:s>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},o={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[l][1].start),end:h},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[l][1].start)},n={type:s>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},a.start),e[l][1].start=Object.assign({},o.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Ci(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Ci(c,[["enter",n,t],["enter",a,t],["exit",a,t],["enter",i,t]]),c=Ci(c,Zi(t.parser.constructs.insideSpan.null,e.slice(r+1,l),t)),c=Ci(c,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",n,t]]),e[l][1].end.offset-e[l][1].start.offset?(u=2,c=Ci(c,[["enter",e[l][1],t],["exit",e[l][1],t]])):u=0,Ai(e,r-1,l-r+3,c),l=r+c.length-u-2;break}l=-1;for(;++l<e.length;)"attentionSequence"===e[l][1].type&&(e[l][1].type="data");return e}};function ta(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ra={name:"autolink",tokenize:function(e,t,r){let n=1;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return Ti(t)?(e.consume(t),a):zi(t)?c(t):r(t)}function a(e){return 43===e||45===e||46===e||Li(e)?o(e):c(e)}function o(t){return 58===t?(e.consume(t),s):(43===t||45===t||46===t||Li(t))&&n++<32?(e.consume(t),o):c(t)}function s(t){return 62===t?(e.exit("autolinkProtocol"),h(t)):null===t||32===t||60===t||Mi(t)?r(t):(e.consume(t),s)}function c(t){return 64===t?(e.consume(t),n=0,u):zi(t)?(e.consume(t),c):r(t)}function u(e){return Li(e)?l(e):r(e)}function l(t){return 46===t?(e.consume(t),n=0,u):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",h(t)):f(t)}function f(t){return(45===t||Li(t))&&n++<63?(e.consume(t),45===t?f:l):r(t)}function h(r){return e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t}}};const na={tokenize:function(e,t,r){return Gi(e,(function(e){return null===e||Bi(e)?t(e):r(e)}),"linePrefix")},partial:!0};const ia={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(62===t){const r=n.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return r(t)};function i(r){return $i(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}},continuation:{tokenize:function(e,t,r){return Gi(e,e.attempt(ia,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},exit:function(e){e.exit("blockQuote")}};const aa={name:"characterEscape",tokenize:function(e,t,r){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),n};function n(n){return qi(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}};const oa={AEli:"Æ",AElig:"Æ",AM:"&",AMP:"&",Aacut:"Á",Aacute:"Á",Abreve:"Ă",Acir:"Â",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrav:"À",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Arin:"Å",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atild:"Ã",Atilde:"Ã",Aum:"Ä",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COP:"©",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedi:"Ç",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ET:"Ð",ETH:"Ð",Eacut:"É",Eacute:"É",Ecaron:"Ě",Ecir:"Ê",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrav:"È",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Eum:"Ë",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",G:">",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacut:"Í",Iacute:"Í",Icir:"Î",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrav:"Ì",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Ium:"Ï",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",L:"<",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntild:"Ñ",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacut:"Ó",Oacute:"Ó",Ocir:"Ô",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograv:"Ò",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslas:"Ø",Oslash:"Ø",Otild:"Õ",Otilde:"Õ",Otimes:"⨷",Oum:"Ö",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUO:'"',QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",RE:"®",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THOR:"Þ",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacut:"Ú",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucir:"Û",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrav:"Ù",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uum:"Ü",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacut:"Ý",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacut:"á",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acir:"â",acirc:"â",acut:"´",acute:"´",acy:"а",aeli:"æ",aelig:"æ",af:"",afr:"𝔞",agrav:"à",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",am:"&",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",arin:"å",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atild:"ã",atilde:"ã",aum:"ä",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvba:"¦",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedi:"ç",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedi:"¸",cedil:"¸",cemptyv:"⦲",cen:"¢",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",cop:"©",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curre:"¤",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",de:"°",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divid:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacut:"é",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"ê",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrav:"è",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",et:"ð",eth:"ð",eum:"ë",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac1:"¼",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac3:"¾",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",g:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacut:"í",iacute:"í",ic:"",icir:"î",icirc:"î",icy:"и",iecy:"е",iexc:"¡",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrav:"ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iques:"¿",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",ium:"ï",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laqu:"«",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",l:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",mac:"¯",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micr:"µ",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middo:"·",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbs:" ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",no:"¬",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntild:"ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacut:"ó",oacute:"ó",oast:"⊛",ocir:"ô",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograv:"ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"º",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslas:"ø",oslash:"ø",osol:"⊘",otild:"õ",otilde:"õ",otimes:"⊗",otimesas:"⨶",oum:"ö",ouml:"ö",ovbar:"⌽",par:"¶",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusm:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",poun:"£",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quo:'"',quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raqu:"»",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",re:"®",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sec:"§",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",sh:"",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szli:"ß",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thor:"þ",thorn:"þ",tilde:"˜",time:"×",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacut:"ú",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucir:"û",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrav:"ù",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",um:"¨",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uum:"ü",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacut:"ý",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",ye:"¥",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yum:"ÿ",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},sa={}.hasOwnProperty;function ca(e){return!!sa.call(oa,e)&&oa[e]}const ua={name:"characterReference",tokenize:function(e,t,r){const n=this;let i,a,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,a=Li,u(t))}function c(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,a=ji,u):(e.enter("characterReferenceValue"),i=7,a=Ii,u(t))}function u(s){let c;return 59===s&&o?(c=e.exit("characterReferenceValue"),a!==Li||ca(n.sliceSerialize(c))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(s)):a(s)&&o++<i?(e.consume(s),u):r(s)}}};const la={name:"codeFenced",tokenize:function(e,t,r){const n=this,i={tokenize:function(e,t,r){let n=0;return Gi(e,i,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function i(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),a(t)}function a(t){return t===c?(e.consume(t),n++,a):n<u?r(t):(e.exit("codeFencedFenceSequence"),Gi(e,o,"whitespace")(t))}function o(n){return null===n||Bi(n)?(e.exit("codeFencedFence"),t(n)):r(n)}},partial:!0},a={tokenize:function(e,t,r){const n=this;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a}function a(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0},o=this.events[this.events.length-1],s=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0;let c,u=0;return function(t){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c=t,l(t)};function l(t){return t===c?(e.consume(t),u++,l):(e.exit("codeFencedFenceSequence"),u<3?r(t):Gi(e,f,"whitespace")(t))}function f(t){return null===t||Bi(t)?m(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(t))}function h(t){return null===t||Ni(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Gi(e,p,"whitespace")(t)):96===t&&t===c?r(t):(e.consume(t),h)}function p(t){return null===t||Bi(t)?m(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||Bi(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(t)):96===t&&t===c?r(t):(e.consume(t),d)}function m(r){return e.exit("codeFencedFence"),n.interrupt?t(r):g(r)}function g(t){return null===t?y(t):Bi(t)?e.attempt(a,e.attempt(i,y,s?Gi(e,g,"linePrefix",s+1):g),y)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||Bi(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)}function y(r){return e.exit("codeFenced"),t(r)}},concrete:!0};const fa={name:"codeIndented",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("codeIndented"),Gi(e,i,"linePrefix",5)(t)};function i(e){const t=n.events[n.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?a(e):r(e)}function a(t){return null===t?s(t):Bi(t)?e.attempt(ha,a,s)(t):(e.enter("codeFlowValue"),o(t))}function o(t){return null===t||Bi(t)?(e.exit("codeFlowValue"),a(t)):(e.consume(t),o)}function s(r){return e.exit("codeIndented"),t(r)}}},ha={tokenize:function(e,t,r){const n=this;return i;function i(t){return n.parser.lazy[n.now().line]?r(t):Bi(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):Gi(e,a,"linePrefix",5)(t)}function a(e){const a=n.events[n.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):Bi(e)?i(e):r(e)}},partial:!0};const pa={name:"codeText",tokenize:function(e,t,r){let n,i,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),o(t)};function o(t){return 96===t?(e.consume(t),a++,o):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?r(t):96===t?(i=e.enter("codeTextSequence"),n=0,u(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):Bi(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(t))}function c(t){return null===t||32===t||96===t||Bi(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),c)}function u(r){return 96===r?(e.consume(r),n++,u):n===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(r)):(i.type="codeTextData",c(r))}},resolve:function(e){let t,r,n=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[n][1].type&&"space"!==e[n][1].type))for(t=i;++t<n;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[n][1].type="codeTextPadding",i+=2,n-=2;break}t=i-1,n++;for(;++t<=n;)void 0===r?t!==n&&"lineEnding"!==e[t][1].type&&(r=t):t!==n&&"lineEnding"!==e[t][1].type||(e[r][1].type="codeTextData",t!==r+2&&(e[r][1].end=e[t-1][1].end,e.splice(r+2,t-r-2),n-=t-r-2,t=r+2),r=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};function da(e){const t={};let r,n,i,a,o,s,c,u=-1;for(;++u<e.length;){for(;u in t;)u=t[u];if(r=e[u],u&&"chunkFlow"===r[1].type&&"listItemPrefix"===e[u-1][1].type&&(s=r[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===r[0])r[1].contentType&&(Object.assign(t,ma(e,u)),u=t[u],c=!0);else if(r[1]._container){for(i=u,n=void 0;i--&&(a=e[i],"lineEnding"===a[1].type||"lineEndingBlank"===a[1].type);)"enter"===a[0]&&(n&&(e[n][1].type="lineEndingBlank"),a[1].type="lineEnding",n=i);n&&(r[1].end=Object.assign({},e[n][1].start),o=e.slice(n,u),o.unshift(r),Ai(e,n,u-n+1,o))}}return!c}function ma(e,t){const r=e[t][1],n=e[t][2];let i=t-1;const a=[],o=r._tokenizer||n.parser[r.contentType](r.start),s=o.events,c=[],u={};let l,f,h=-1,p=r,d=0,m=0;const g=[m];for(;p;){for(;e[++i][1]!==p;);a.push(i),p._tokenizer||(l=n.sliceStream(p),p.next||l.push(null),f&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(l),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=r;++h<s.length;)"exit"===s[h][0]&&"enter"===s[h-1][0]&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(m=h+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),h=g.length;h--;){const t=s.slice(g[h],g[h+1]),r=a.pop();c.unshift([r,r+t.length-1]),Ai(e,r,2,t)}for(h=-1;++h<c.length;)u[d+c[h][0]]=d+c[h][1],d+=c[h][1]-c[h][0]-1;return u}const ga={tokenize:function(e,t){let r;return function(t){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(t)};function n(t){return null===t?i(t):Bi(t)?e.check(va,a,i)(t):(e.consume(t),n)}function i(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function a(t){return e.consume(t),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}},resolve:function(e){return da(e),e}},va={tokenize:function(e,t,r){const n=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Gi(e,i,"linePrefix")};function i(i){if(null===i||Bi(i))return r(i);const a=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(n.parser.constructs.flow,r,t)(i)}},partial:!0};function ya(e,t,r,n,i,a,o,s,c){const u=c||Number.POSITIVE_INFINITY;let l=0;return function(t){if(60===t)return e.enter(n),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f;if(null===t||41===t||Mi(t))return r(t);return e.enter(n),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),d(t)};function f(r){return 62===r?(e.enter(a),e.consume(r),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(r))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(s),f(t)):null===t||60===t||Bi(t)?r(t):(e.consume(t),92===t?p:h)}function p(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function d(i){return 40===i?++l>u?r(i):(e.consume(i),d):41===i?l--?(e.consume(i),d):(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(i)):null===i||Ni(i)?l?r(i):(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(i)):Mi(i)?r(i):(e.consume(i),92===i?m:d)}function m(t){return 40===t||41===t||92===t?(e.consume(t),d):d(t)}}var ba=Object.freeze({__proto__:null,factoryDestination:ya});function wa(e,t,r,n,i,a){const o=this;let s,c=0;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u};function u(f){return null===f||91===f||93===f&&!s||94===f&&!c&&"_hiddenFootnoteSupport"in o.parser.constructs||c>999?r(f):93===f?(e.exit(a),e.enter(i),e.consume(f),e.exit(i),e.exit(n),t):Bi(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),l(f))}function l(t){return null===t||91===t||93===t||Bi(t)||c++>999?(e.exit("chunkString"),u(t)):(e.consume(t),s=s||!$i(t),92===t?f:l)}function f(t){return 91===t||92===t||93===t?(e.consume(t),c++,l):l(t)}}var xa=Object.freeze({__proto__:null,factoryLabel:wa});function ka(e,t,r,n,i,a){let o;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,s};function s(r){return r===o?(e.enter(i),e.consume(r),e.exit(i),e.exit(n),t):(e.enter(a),c(r))}function c(t){return t===o?(e.exit(a),s(o)):null===t?r(t):Bi(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Gi(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===o||null===t||Bi(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?l:u)}function l(t){return t===o||92===t?(e.consume(t),u):u(t)}}var Ea=Object.freeze({__proto__:null,factoryTitle:ka});function Sa(e,t){let r;return function n(i){if(Bi(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n;if($i(i))return Gi(e,n,r?"linePrefix":"lineSuffix")(i);return t(i)}}var Pa=Object.freeze({__proto__:null,factoryWhitespace:Sa});function _a(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Aa=Object.freeze({__proto__:null,normalizeIdentifier:_a});const Ca={name:"definition",tokenize:function(e,t,r){const n=this;let i;return function(t){return e.enter("definition"),wa.call(n,e,a,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function a(t){return i=_a(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),Sa(e,ya(e,e.attempt(Fa,Gi(e,o,"whitespace"),Gi(e,o,"whitespace")),r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):r(t)}function o(a){return null===a||Bi(a)?(e.exit("definition"),n.parser.defined.includes(i)||n.parser.defined.push(i),t(a)):r(a)}}},Fa={tokenize:function(e,t,r){return function(t){return Ni(t)?Sa(e,n)(t):r(t)};function n(t){return 34===t||39===t||40===t?ka(e,Gi(e,i,"whitespace"),r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):r(t)}function i(e){return null===e||Bi(e)?t(e):r(e)}},partial:!0};const Da={name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),n};function n(n){return Bi(n)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(n)):r(n)}}};const Oa={name:"headingAtx",tokenize:function(e,t,r){const n=this;let i=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),a(t)};function a(s){return 35===s&&i++<6?(e.consume(s),a):null===s||Ni(s)?(e.exit("atxHeadingSequence"),n.interrupt?t(s):o(s)):r(s)}function o(r){return 35===r?(e.enter("atxHeadingSequence"),s(r)):null===r||Bi(r)?(e.exit("atxHeading"),t(r)):$i(r)?Gi(e,o,"whitespace")(r):(e.enter("atxHeadingText"),c(r))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),o(t))}function c(t){return null===t||35===t||Ni(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),c)}},resolve:function(e,t){let r,n,i=e.length-2,a=3;"whitespace"===e[a][1].type&&(a+=2);i-2>a&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4);i>a&&(r={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},n={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},Ai(e,a,i-a+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]]));return e}};const Ra=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ta=["pre","script","style","textarea"],Ia={name:"htmlFlow",tokenize:function(e,t,r){const n=this;let i,a,o,s,c;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u};function u(s){return 33===s?(e.consume(s),l):47===s?(e.consume(s),p):63===s?(e.consume(s),i=3,n.interrupt?t:I):Ti(s)?(e.consume(s),o=String.fromCharCode(s),a=!0,d):r(s)}function l(a){return 45===a?(e.consume(a),i=2,f):91===a?(e.consume(a),i=5,o="CDATA[",s=0,h):Ti(a)?(e.consume(a),i=4,n.interrupt?t:I):r(a)}function f(i){return 45===i?(e.consume(i),n.interrupt?t:I):r(i)}function h(i){return i===o.charCodeAt(s++)?(e.consume(i),s===o.length?n.interrupt?t:_:h):r(i)}function p(t){return Ti(t)?(e.consume(t),o=String.fromCharCode(t),d):r(t)}function d(s){return null===s||47===s||62===s||Ni(s)?47!==s&&a&&Ta.includes(o.toLowerCase())?(i=1,n.interrupt?t(s):_(s)):Ra.includes(o.toLowerCase())?(i=6,47===s?(e.consume(s),m):n.interrupt?t(s):_(s)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(s):a?v(s):g(s)):45===s||Li(s)?(e.consume(s),o+=String.fromCharCode(s),d):r(s)}function m(i){return 62===i?(e.consume(i),n.interrupt?t:_):r(i)}function g(t){return $i(t)?(e.consume(t),g):S(t)}function v(t){return 47===t?(e.consume(t),S):58===t||95===t||Ti(t)?(e.consume(t),y):$i(t)?(e.consume(t),v):S(t)}function y(t){return 45===t||46===t||58===t||95===t||Li(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),w):$i(t)?(e.consume(t),b):v(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),c=t,x):$i(t)?(e.consume(t),w):(c=null,k(t))}function x(t){return null===t||Bi(t)?r(t):t===c?(e.consume(t),E):(e.consume(t),x)}function k(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||Ni(t)?b(t):(e.consume(t),k)}function E(e){return 47===e||62===e||$i(e)?v(e):r(e)}function S(t){return 62===t?(e.consume(t),P):r(t)}function P(t){return $i(t)?(e.consume(t),P):null===t||Bi(t)?_(t):r(t)}function _(t){return 45===t&&2===i?(e.consume(t),D):60===t&&1===i?(e.consume(t),O):62===t&&4===i?(e.consume(t),j):63===t&&3===i?(e.consume(t),I):93===t&&5===i?(e.consume(t),T):!Bi(t)||6!==i&&7!==i?null===t||Bi(t)?A(t):(e.consume(t),_):e.check(ja,j,A)(t)}function A(t){return e.exit("htmlFlowData"),C(t)}function C(t){return null===t?L(t):Bi(t)?e.attempt({tokenize:F,partial:!0},C,L)(t):(e.enter("htmlFlowData"),_(t))}function F(e,t,r){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}}function D(t){return 45===t?(e.consume(t),I):_(t)}function O(t){return 47===t?(e.consume(t),o="",R):_(t)}function R(t){return 62===t&&Ta.includes(o.toLowerCase())?(e.consume(t),j):Ti(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),R):_(t)}function T(t){return 93===t?(e.consume(t),I):_(t)}function I(t){return 62===t?(e.consume(t),j):45===t&&2===i?(e.consume(t),I):_(t)}function j(t){return null===t||Bi(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),j)}function L(r){return e.exit("htmlFlow"),t(r)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},ja={tokenize:function(e,t,r){return function(n){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),e.attempt(na,t,r)}},partial:!0};const La={name:"htmlText",tokenize:function(e,t,r){const n=this;let i,a,o,s;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),c};function c(t){return 33===t?(e.consume(t),u):47===t?(e.consume(t),k):63===t?(e.consume(t),w):Ti(t)?(e.consume(t),P):r(t)}function u(t){return 45===t?(e.consume(t),l):91===t?(e.consume(t),a="CDATA[",o=0,m):Ti(t)?(e.consume(t),b):r(t)}function l(t){return 45===t?(e.consume(t),f):r(t)}function f(t){return null===t||62===t?r(t):45===t?(e.consume(t),h):p(t)}function h(e){return null===e||62===e?r(e):p(e)}function p(t){return null===t?r(t):45===t?(e.consume(t),d):Bi(t)?(s=p,T(t)):(e.consume(t),p)}function d(t){return 45===t?(e.consume(t),j):p(t)}function m(t){return t===a.charCodeAt(o++)?(e.consume(t),o===a.length?g:m):r(t)}function g(t){return null===t?r(t):93===t?(e.consume(t),v):Bi(t)?(s=g,T(t)):(e.consume(t),g)}function v(t){return 93===t?(e.consume(t),y):g(t)}function y(t){return 62===t?j(t):93===t?(e.consume(t),y):g(t)}function b(t){return null===t||62===t?j(t):Bi(t)?(s=b,T(t)):(e.consume(t),b)}function w(t){return null===t?r(t):63===t?(e.consume(t),x):Bi(t)?(s=w,T(t)):(e.consume(t),w)}function x(e){return 62===e?j(e):w(e)}function k(t){return Ti(t)?(e.consume(t),E):r(t)}function E(t){return 45===t||Li(t)?(e.consume(t),E):S(t)}function S(t){return Bi(t)?(s=S,T(t)):$i(t)?(e.consume(t),S):j(t)}function P(t){return 45===t||Li(t)?(e.consume(t),P):47===t||62===t||Ni(t)?_(t):r(t)}function _(t){return 47===t?(e.consume(t),j):58===t||95===t||Ti(t)?(e.consume(t),A):Bi(t)?(s=_,T(t)):$i(t)?(e.consume(t),_):j(t)}function A(t){return 45===t||46===t||58===t||95===t||Li(t)?(e.consume(t),A):C(t)}function C(t){return 61===t?(e.consume(t),F):Bi(t)?(s=C,T(t)):$i(t)?(e.consume(t),C):_(t)}function F(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),i=t,D):Bi(t)?(s=F,T(t)):$i(t)?(e.consume(t),F):(e.consume(t),i=void 0,R)}function D(t){return t===i?(e.consume(t),O):null===t?r(t):Bi(t)?(s=D,T(t)):(e.consume(t),D)}function O(e){return 62===e||47===e||Ni(e)?_(e):r(e)}function R(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):62===t||Ni(t)?_(t):(e.consume(t),R)}function T(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Gi(e,I,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function I(t){return e.enter("htmlTextData"),s(t)}function j(n){return 62===n?(e.consume(n),e.exit("htmlTextData"),e.exit("htmlText"),t):r(n)}}};const qa={name:"labelEnd",tokenize:function(e,t,r){const n=this;let i,a,o=n.events.length;for(;o--;)if(("labelImage"===n.events[o][1].type||"labelLink"===n.events[o][1].type)&&!n.events[o][1]._balanced){i=n.events[o][1];break}return function(t){if(!i)return r(t);return i._inactive?c(t):(a=n.parser.defined.includes(_a(n.sliceSerialize({start:i.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s)};function s(r){return 40===r?e.attempt(za,t,a?t:c)(r):91===r?e.attempt(Ma,t,a?e.attempt(Na,t,c):c)(r):a?t(r):c(r)}function c(e){return i._balanced=!0,r(e)}},resolveTo:function(e,t){let r,n,i,a,o=e.length,s=0;for(;o--;)if(r=e[o][1],n){if("link"===r.type||"labelLink"===r.type&&r._inactive)break;"enter"===e[o][0]&&"labelLink"===r.type&&(r._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===r.type||"labelLink"===r.type)&&!r._balanced&&(n=o,"labelLink"!==r.type)){s=2;break}}else"labelEnd"===r.type&&(i=o);const c={type:"labelLink"===e[n][1].type?"link":"image",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[n][1].start),end:Object.assign({},e[i][1].end)},l={type:"labelText",start:Object.assign({},e[n+s+2][1].end),end:Object.assign({},e[i-2][1].start)};return a=[["enter",c,t],["enter",u,t]],a=Ci(a,e.slice(n+1,n+s+3)),a=Ci(a,[["enter",l,t]]),a=Ci(a,Zi(t.parser.constructs.insideSpan.null,e.slice(n+s+4,i-3),t)),a=Ci(a,[["exit",l,t],e[i-2],e[i-1],["exit",u,t]]),a=Ci(a,e.slice(i+1)),a=Ci(a,[["exit",c,t]]),Ai(e,n,e.length,a),e},resolveAll:function(e){let t,r=-1;for(;++r<e.length;)t=e[r][1],"labelImage"!==t.type&&"labelLink"!==t.type&&"labelEnd"!==t.type||(e.splice(r+1,"labelImage"===t.type?4:2),t.type="data",r++);return e}},za={tokenize:function(e,t,r){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),Sa(e,n)};function n(t){return 41===t?o(t):ya(e,i,r,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",3)(t)}function i(t){return Ni(t)?Sa(e,a)(t):o(t)}function a(t){return 34===t||39===t||40===t?ka(e,Sa(e,o),r,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):o(t)}function o(n){return 41===n?(e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),e.exit("resource"),t):r(n)}}},Ma={tokenize:function(e,t,r){const n=this;return function(t){return wa.call(n,e,i,r,"reference","referenceMarker","referenceString")(t)};function i(e){return n.parser.defined.includes(_a(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}}},Na={tokenize:function(e,t,r){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),n};function n(n){return 93===n?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}};const Ba={name:"labelStartImage",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):r(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}},resolveAll:qa.resolveAll};const $a={name:"labelStartLink",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}},resolveAll:qa.resolveAll};const Ua={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Gi(e,t,"linePrefix")}}};const Va={name:"thematicBreak",tokenize:function(e,t,r){let n,i=0;return function(t){return e.enter("thematicBreak"),n=t,a(t)};function a(s){return s===n?(e.enter("thematicBreakSequence"),o(s)):$i(s)?Gi(e,a,"whitespace")(s):i<3||null!==s&&!Bi(s)?r(s):(e.exit("thematicBreak"),t(s))}function o(t){return t===n?(e.consume(t),i++,o):(e.exit("thematicBreakSequence"),a(t))}}};const Ha={name:"list",tokenize:function(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){const i=n.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!n.containerState.marker||t===n.containerState.marker:Ii(t)){if(n.containerState.type||(n.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(Va,r,c)(t):c(t);if(!n.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return r(t)};function s(t){return Ii(t)&&++o<10?(e.consume(t),s):(!n.interrupt||o<2)&&(n.containerState.marker?t===n.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),c(t)):r(t)}function c(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||t,e.check(na,n.interrupt?r:u,e.attempt(Qa,f,l))}function u(e){return n.containerState.initialBlankLine=!0,a++,f(e)}function l(t){return $i(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):r(t)}function f(r){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(r)}},continuation:{tokenize:function(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(na,i,a);function i(r){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Gi(e,t,"listItemIndent",n.containerState.size+1)(r)}function a(r){return n.containerState.furtherBlankLines||!$i(r)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,o(r)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Ga,t,o)(r))}function o(i){return n.containerState._closeFlow=!0,n.interrupt=void 0,Gi(e,e.attempt(Ha,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},Qa={tokenize:function(e,t,r){const n=this;return Gi(e,(function(e){const i=n.events[n.events.length-1];return!$i(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):r(e)}),"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Ga={tokenize:function(e,t,r){const n=this;return Gi(e,(function(e){const i=n.events[n.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===n.containerState.size?t(e):r(e)}),"listItemIndent",n.containerState.size+1)},partial:!0};const Wa={name:"setextUnderline",tokenize:function(e,t,r){const n=this;let i,a,o=n.events.length;for(;o--;)if("lineEnding"!==n.events[o][1].type&&"linePrefix"!==n.events[o][1].type&&"content"!==n.events[o][1].type){a="paragraph"===n.events[o][1].type;break}return function(t){if(!n.parser.lazy[n.now().line]&&(n.interrupt||a))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),i=t,s(t);return r(t)};function s(t){return t===i?(e.consume(t),s):(e.exit("setextHeadingLineSequence"),Gi(e,c,"lineSuffix")(t))}function c(n){return null===n||Bi(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}},resolveTo:function(e,t){let r,n,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){r=a;break}"paragraph"===e[a][1].type&&(n=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);const o={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};e[n][1].type="setextHeadingText",i?(e.splice(n,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=o;return e.push(["exit",o,t]),e}};var Ka=Object.freeze({__proto__:null,attention:ea,autolink:ra,blankLine:na,blockQuote:ia,characterEscape:aa,characterReference:ua,codeFenced:la,codeIndented:fa,codeText:pa,content:ga,definition:Ca,hardBreakEscape:Da,headingAtx:Oa,htmlFlow:Ia,htmlText:La,labelEnd:qa,labelStartImage:Ba,labelStartLink:$a,lineEnding:Ua,list:Ha,setextUnderline:Wa,thematicBreak:Va});const Ja={tokenize:function(e){const t=this,r=e.attempt(na,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}),e.attempt(this.parser.constructs.flowInitial,n,Gi(e,e.attempt(this.parser.constructs.flow,n,e.attempt(ga,n)),"linePrefix")));return r;function n(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r;e.consume(n)}}};const Ya={resolveAll:to()},Xa=eo("string"),Za=eo("text");function eo(e){return{tokenize:function(t){const r=this,n=this.parser.constructs[e],i=t.attempt(n,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return c(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function c(e){if(null===e)return!0;const t=n[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(r,r.previous))return!0}return!1}},resolveAll:to("text"===e?ro:void 0)}}function to(e){return function(t,r){let n,i=-1;for(;++i<=t.length;)void 0===n?t[i]&&"data"===t[i][1].type&&(n=i,i++):t[i]&&"data"===t[i][1].type||(i!==n+2&&(t[n][1].end=t[i-1][1].end,t.splice(n+2,i-n-2),i=n+2),n=void 0);return e?e(t,r):t}}function ro(e,t){let r=-1;for(;++r<=e.length;)if((r===e.length||"lineEnding"===e[r][1].type)&&"data"===e[r-1][1].type){const n=e[r-1][1],i=t.sliceStream(n);let a,o=i.length,s=-1,c=0;for(;o--;){const e=i[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)c++,s--;if(s)break;s=-1}else if(-2===e)a=!0,c++;else if(-1!==e){o++;break}}if(c){const i={type:r===e.length||a||c<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-c,offset:n.end.offset-c,_index:n.start._index+o,_bufferIndex:o?s:n.start._bufferIndex+s},end:Object.assign({},n.end)};n.end=Object.assign({},i.start),n.start.offset===n.end.offset?Object.assign(n,i):(e.splice(r,0,["enter",i,t],["exit",i,t]),r+=2)}r++}return e}function no(e,t,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},a=[];let o=[],s=[];const c={consume:function(e){Bi(e)?(n.line++,n.column=1,n.offset+=-3===e?2:1,y()):-1!==e&&(n.column++,n.offset++);n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===o[n._index].length&&(n._bufferIndex=-1,n._index++));u.previous=e},enter:function(e,t){const r=t||{};return r.type=e,r.start=h(),u.events.push(["enter",r,u]),s.push(r),r},exit:function(e){const t=s.pop();return t.end=h(),u.events.push(["exit",t,u]),t},attempt:g((function(e,t){v(e,t.from)})),check:g(m),interrupt:g(m,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:f,sliceSerialize:function(e,t){return function(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let o;if("string"==typeof a)o=a;else switch(a){case-5:o="\r";break;case-4:o="\n";break;case-3:o="\r\n";break;case-2:o=t?" ":"\t";break;case-1:if(!t&&i)continue;o=" ";break;default:o=String.fromCharCode(a)}i=-2===a,n.push(o)}return n.join("")}(f(e),t)},now:h,defineSkip:function(e){i[e.line]=e.column,y()},write:function(e){if(o=Ci(o,e),p(),null!==o[o.length-1])return[];return v(t,0),u.events=Zi(a,u.events,u),u.events}};let l=t.tokenize.call(u,c);return t.resolveAll&&a.push(t),u;function f(e){return function(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;r===i?o=[e[r].slice(n,a)]:(o=e.slice(r,i),n>-1&&(o[0]=o[0].slice(n)),a>0&&o.push(e[i].slice(0,a)));return o}(o,e)}function h(){return Object.assign({},n)}function p(){let e;for(;n._index<o.length;){const t=o[n._index];if("string"==typeof t)for(e=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===e&&n._bufferIndex<t.length;)d(t.charCodeAt(n._bufferIndex));else d(t)}}function d(e){l=l(e)}function m(e,t){t.restore()}function g(e,t){return function(r,i,a){let o,l,f,p;return Array.isArray(r)?d(r):"tokenize"in r?d([r]):function(e){return t;function t(t){const r=null!==t&&e[t],n=null!==t&&e.null;return d([...Array.isArray(r)?r:r?[r]:[],...Array.isArray(n)?n:n?[n]:[]])(t)}}(r);function d(e){return o=e,l=0,0===e.length?a:m(e[l])}function m(e){return function(r){p=function(){const e=h(),t=u.previous,r=u.currentConstruct,i=u.events.length,a=Array.from(s);return{restore:o,from:i};function o(){n=e,u.previous=t,u.currentConstruct=r,u.events.length=i,s=a,y()}}(),f=e,e.partial||(u.currentConstruct=e);if(e.name&&u.parser.constructs.disable.null.includes(e.name))return v();return e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,g,v)(r)}}function g(t){return e(f,p),i}function v(e){return p.restore(),++l<o.length?m(o[l]):a}}}function v(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&Ai(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function y(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}const io={42:Ha,43:Ha,45:Ha,48:Ha,49:Ha,50:Ha,51:Ha,52:Ha,53:Ha,54:Ha,55:Ha,56:Ha,57:Ha,62:ia},ao={91:Ca},oo={[-2]:fa,[-1]:fa,32:fa},so={35:Oa,42:Va,45:[Wa,Va],60:Ia,61:Wa,95:Va,96:la,126:la},co={38:ua,92:aa},uo={[-5]:Ua,[-4]:Ua,[-3]:Ua,33:Ba,38:ua,42:ea,60:[ra,La],91:$a,92:[Da,aa],93:qa,95:ea,96:pa},lo={null:[ea,Ya]};var fo=Object.freeze({__proto__:null,document:io,contentInitial:ao,flowInitial:oo,flow:so,string:co,text:uo,insideSpan:lo,attentionMarkers:{null:[42,95]},disable:{null:[]}});const ho=/[\0\t\n\r]/g;function po(e,t){const r=Number.parseInt(e,t);return r<9||11===r||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||65535==(65535&r)||65534==(65535&r)||r>1114111?"�":String.fromCharCode(r)}const mo=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function go(e){return e.replace(mo,vo)}function vo(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return po(r.slice(t?2:1),t?16:10)}return ca(r)||e}const yo={}.hasOwnProperty,bo=function(e,t,r){return"string"!=typeof t&&(r=t,t=void 0),function(e={}){const t=wo({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(ne),autolinkProtocol:C,autolinkEmail:C,atxHeading:c(Z),blockQuote:c(W),characterEscape:C,characterReference:C,codeFenced:c(K),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:c(K,u),codeText:c(J,u),codeTextData:C,data:C,codeFlowValue:C,definition:c(Y),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:c(X),hardBreakEscape:c(ee),hardBreakTrailing:c(ee),htmlFlow:c(te,u),htmlFlowData:C,htmlText:c(te,u),htmlTextData:C,image:c(re),label:u,link:c(ne),listItem:c(ae),listItemValue:m,listOrdered:c(ie,d),listUnordered:c(ie),paragraph:c(oe),reference:$,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:c(Z),strong:c(se),thematicBreak:c(ue)},exit:{atxHeading:f(),atxHeadingSequence:S,autolink:f(),autolinkEmail:G,autolinkProtocol:Q,blockQuote:f(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:H,codeFenced:f(b),codeFencedFence:y,codeFencedFenceInfo:g,codeFencedFenceMeta:v,codeFlowValue:F,codeIndented:f(w),codeText:f(I),codeTextData:F,data:F,definition:f(),definitionDestinationString:E,definitionLabelString:x,definitionTitleString:k,emphasis:f(),hardBreakEscape:f(O),hardBreakTrailing:f(O),htmlFlow:f(R),htmlFlowData:F,htmlText:f(T),htmlTextData:F,image:f(L),label:z,labelText:q,lineEnding:D,link:f(j),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:U,resourceDestinationString:M,resourceTitleString:N,resource:B,setextHeading:f(A),setextHeadingLineSequence:_,setextHeadingText:P,strong:f(),thematicBreak:f()}},e.mdastExtensions||[]),r={};return n;function n(e){let r={type:"root",children:[]};const n=[],c=[],f={stack:[r],tokenStack:n,config:t,enter:l,exit:h,buffer:u,resume:p,setData:a,getData:o};let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])c.push(d);else{d=i(e,c.pop(),d)}for(d=-1;++d<e.length;){const r=t[e[d][0]];yo.call(r,e[d][1].type)&&r[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},f),e[d][1])}if(n.length>0){const e=n[n.length-1];(e[1]||ko).call(f,void 0,e[0])}for(r.position={start:s(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:s(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,r){let n,i,a,o,s=t-1,c=-1,u=!1;for(;++s<=r;){const t=e[s];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?c++:c--,o=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!n||o||c||a||(a=s),o=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(o=void 0),!c&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===c&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(n){let o=s;for(i=void 0;o--;){const t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=o}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}a&&(!i||a<i)&&(n._spread=!0),n.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",n,t[2]]),s++,r++}"listItemPrefix"===t[1].type&&(n={type:"listItem",_spread:!1,start:Object.assign({},t[1].start)},e.splice(s,0,["enter",n,t[2]]),s++,r++,a=void 0,o=!0)}}return e[t][1]._spread=u,r}function a(e,t){r[e]=t}function o(e){return r[e]}function s(e){return{line:e.line,column:e.column,offset:e.offset}}function c(e,t){return r;function r(r){l.call(this,e(r),r),t&&t.call(this,r)}}function u(){this.stack.push({type:"fragment",children:[]})}function l(e,t,r){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,r]),e.position={start:s(t.start)},e}function f(e){return t;function t(t){e&&e.call(this,t),h.call(this,t)}}function h(e,t){const r=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+e.type+"` ("+ri({start:e.start,end:e.end})+"): it’s not open");if(n[0].type!==e.type)if(t)t.call(this,e,n[0]);else{(n[1]||ko).call(this,e,n[0])}return r.position.end=s(e.end),r}function p(){return Si(this.stack.pop())}function d(){a("expectingFirstListItemValue",!0)}function m(e){if(o("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),a("expectingFirstListItemValue")}}function g(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function v(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function y(){o("flowCodeInside")||(this.buffer(),a("flowCodeInside",!0))}function b(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),a("flowCodeInside")}function w(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function x(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=_a(this.sliceSerialize(e)).toLowerCase()}function k(){const e=this.resume();this.stack[this.stack.length-1].title=e}function E(){const e=this.resume();this.stack[this.stack.length-1].url=e}function S(e){const t=this.stack[this.stack.length-1];if(!t.depth){const r=this.sliceSerialize(e).length;t.depth=r}}function P(){a("setextHeadingSlurpLineEnding",!0)}function _(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function A(){a("setextHeadingSlurpLineEnding")}function C(e){const t=this.stack[this.stack.length-1];let r=t.children[t.children.length-1];r&&"text"===r.type||(r=ce(),r.position={start:s(e.start)},t.children.push(r)),this.stack.push(r)}function F(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=s(e.end)}function D(e){const r=this.stack[this.stack.length-1];if(o("atHardBreak")){return r.children[r.children.length-1].position.end=s(e.end),void a("atHardBreak")}!o("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(r.type)&&(C.call(this,e),F.call(this,e))}function O(){a("atHardBreak",!0)}function R(){const e=this.resume();this.stack[this.stack.length-1].value=e}function T(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function j(){const e=this.stack[this.stack.length-1];o("inReference")?(e.type+="Reference",e.referenceType=o("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label),a("referenceType")}function L(){const e=this.stack[this.stack.length-1];o("inReference")?(e.type+="Reference",e.referenceType=o("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label),a("referenceType")}function q(e){const t=this.stack[this.stack.length-2],r=this.sliceSerialize(e);t.label=go(r),t.identifier=_a(r).toLowerCase()}function z(){const e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];a("inReference",!0),"link"===r.type?r.children=e.children:r.alt=t}function M(){const e=this.resume();this.stack[this.stack.length-1].url=e}function N(){const e=this.resume();this.stack[this.stack.length-1].title=e}function B(){a("inReference")}function $(){a("referenceType","collapsed")}function U(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=_a(this.sliceSerialize(e)).toLowerCase(),a("referenceType","full")}function V(e){a("characterReferenceType",e.type)}function H(e){const t=this.sliceSerialize(e),r=o("characterReferenceType");let n;r?(n=po(t,"characterReferenceMarkerNumeric"===r?10:16),a("characterReferenceType")):n=ca(t);const i=this.stack.pop();i.value+=n,i.position.end=s(e.end)}function Q(e){F.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function G(e){F.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function W(){return{type:"blockquote",children:[]}}function K(){return{type:"code",lang:null,meta:null,value:""}}function J(){return{type:"inlineCode",value:""}}function Y(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function Z(){return{type:"heading",depth:void 0,children:[]}}function ee(){return{type:"break"}}function te(){return{type:"html",value:""}}function re(){return{type:"image",title:null,url:"",alt:null}}function ne(){return{type:"link",title:null,url:"",children:[]}}function ie(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function ae(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function se(){return{type:"strong",children:[]}}function ce(){return{type:"text",value:""}}function ue(){return{type:"thematicBreak"}}}(r)(function(e){for(;!da(e););return e}(function(e={}){const t={defined:[],lazy:{},constructs:Di([fo].concat(e.extensions||[])),content:r(Ki),document:r(Ji),flow:r(Ja),string:r(Xa),text:r(Za)};return t;function r(e){return function(r){return no(t,e,r)}}}(r).document().write(function(){let e,t=1,r="",n=!0;return function(i,a,o){const s=[];let c,u,l,f,h;for(i=r+i.toString(a),l=0,r="",n&&(65279===i.charCodeAt(0)&&l++,n=void 0);l<i.length;){if(ho.lastIndex=l,c=ho.exec(i),f=c&&void 0!==c.index?c.index:i.length,h=i.charCodeAt(f),!c){r=i.slice(l);break}if(10===h&&l===f&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),l<f&&(s.push(i.slice(l,f)),t+=f-l),h){case 0:s.push(65533),t++;break;case 9:for(u=4*Math.ceil(t/4),s.push(-2);t++<u;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}l=f+1}return o&&(e&&s.push(-5),r&&s.push(r),s.push(null)),s}}()(e,t,!0))))};function wo(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?wo(e,n):xo(e,n)}return e}function xo(e,t){let r;for(r in t)if(yo.call(t,r)){const n="canContainEols"===r||"transforms"===r,i=(yo.call(e,r)?e[r]:void 0)||(e[r]=n?[]:{}),a=t[r];a&&(n?e[r]=[...i,...a]:Object.assign(i,a))}}function ko(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ri({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ri({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ri({start:t.start,end:t.end})+") is still open")}var Eo=le(Object.freeze({__proto__:null,default:function(e){Object.assign(this,{Parser:t=>{const r=this.data("settings");return bo(t,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}}));const So={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(t){return 87===t||119===t?(e.consume(t),i):r(t)}function i(t){return 87===t||119===t?(e.consume(t),a):r(t)}function a(t){return 46===t?(e.consume(t),o):r(t)}function o(e){return null===e||Bi(e)?r(e):t(e)}},partial:!0},Po={tokenize:function(e,t,r){let n,i;return a;function a(t){return 38===t?e.check(Co,s,o)(t):46===t||95===t?e.check(Ao,s,o)(t):null===t||Mi(t)||Ui(t)||45!==t&&Vi(t)?s(t):(e.consume(t),a)}function o(t){return 46===t?(i=n,n=void 0,e.consume(t),a):(95===t&&(n=!0),e.consume(t),a)}function s(e){return i||n?r(e):t(e)}},partial:!0},_o={tokenize:function(e,t){let r=0;return n;function n(o){return 38===o?e.check(Co,t,i)(o):(40===o&&r++,41===o?e.check(Ao,a,i)(o):Lo(o)?t(o):jo(o)?e.check(Ao,t,i)(o):(e.consume(o),n))}function i(t){return e.consume(t),n}function a(e){return r--,r<0?t(e):i(e)}},partial:!0},Ao={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(i){return jo(i)?(e.consume(i),n):Lo(i)?t(i):r(i)}},partial:!0},Co={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(t){return Ti(t)?(e.consume(t),n):59===t?(e.consume(t),i):r(t)}function i(e){return Lo(e)?t(e):r(e)}},partial:!0},Fo={tokenize:function(e,t,r){const n=this;return function(t){if(87!==t&&119!==t||!zo(n.previous)||Bo(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(So,e.attempt(Po,e.attempt(_o,i),r),r)(t)};function i(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}},previous:zo},Do={tokenize:function(e,t,r){const n=this;return function(t){if(72!==t&&104!==t||!Mo(n.previous)||Bo(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),i};function i(t){return 84===t||116===t?(e.consume(t),a):r(t)}function a(t){return 84===t||116===t?(e.consume(t),o):r(t)}function o(t){return 80===t||112===t?(e.consume(t),s):r(t)}function s(t){return 83===t||115===t?(e.consume(t),c):c(t)}function c(t){return 58===t?(e.consume(t),u):r(t)}function u(t){return 47===t?(e.consume(t),l):r(t)}function l(t){return 47===t?(e.consume(t),f):r(t)}function f(t){return null===t||Mi(t)||Ui(t)||Vi(t)?r(t):e.attempt(Po,e.attempt(_o,h),r)(t)}function h(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}},previous:Mo},Oo={tokenize:function(e,t,r){const n=this;let i,a;return function(t){if(!qo(t)||!No(n.previous)||Bo(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(t)};function o(t){return qo(t)?(e.consume(t),o):64===t?(e.consume(t),s):r(t)}function s(t){return 46===t?e.check(Ao,f,c)(t):45===t||95===t?e.check(Ao,r,u)(t):Li(t)?(!a&&Ii(t)&&(a=!0),e.consume(t),s):f(t)}function c(t){return e.consume(t),i=!0,a=void 0,s}function u(t){return e.consume(t),l}function l(t){return 46===t?e.check(Ao,r,c)(t):s(t)}function f(n){return i&&!a?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(n)):r(n)}},previous:No},Ro={},To={text:Ro};let Io=48;for(;Io<123;)Ro[Io]=Oo,Io++,58===Io?Io=65:91===Io&&(Io=97);function jo(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function Lo(e){return null===e||60===e||Ni(e)}function qo(e){return 43===e||45===e||46===e||95===e||Li(e)}function zo(e){return null===e||40===e||42===e||95===e||126===e||Ni(e)}function Mo(e){return null===e||!Ti(e)}function No(e){return 47!==e&&Mo(e)}function Bo(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if(("labelLink"===n.type||"labelImage"===n.type)&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}Ro[43]=Oo,Ro[45]=Oo,Ro[46]=Oo,Ro[95]=Oo,Ro[72]=[Oo,Do],Ro[104]=[Oo,Do],Ro[87]=[Oo,Fo],Ro[119]=[Oo,Fo];const $o={tokenize:function(e,t,r){const n=this;return Gi(e,(function(e){const i=n.events[n.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):r(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function Uo(e,t,r){const n=this;let i=n.events.length;const a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o;for(;i--;){const e=n.events[i][1];if("labelImage"===e.type){o=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!o||!o._balanced)return r(i);const s=_a(n.sliceSerialize({start:o.end,end:n.now()}));if(94!==s.charCodeAt(0)||!a.includes(s.slice(1)))return r(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function Vo(e,t){let r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...s),e}function Ho(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?r(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(s){let l;return null===s||91===s||o++>999?r(s):93===s?a?(e.exit("chunkString"),l=e.exit("gfmFootnoteCallString"),i.includes(_a(n.sliceSerialize(l)))?function(r){return e.enter("gfmFootnoteCallLabelMarker"),e.consume(r),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t}(s):r(s)):r(s):(e.consume(s),Ni(s)||(a=!0),92===s?u:c)}function u(t){return 91===t||92===t||93===t?(e.consume(t),o++,c):c(t)}}function Qo(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,o,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),c};function c(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),u):r(t)}function u(t){let i;return null===t||91===t||s>999?r(t):93===t?o?(i=e.exit("gfmFootnoteDefinitionLabelString"),a=_a(n.sliceSerialize(i)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h):r(t):Bi(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s++,u):(e.enter("chunkString").contentType="string",l(t))}function l(t){return null===t||Bi(t)||91===t||93===t||s>999?(e.exit("chunkString"),u(t)):(Ni(t)||(o=!0),s++,e.consume(t),92===t?f:l)}function f(t){return 91===t||92===t||93===t?(e.consume(t),s++,l):l(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),Gi(e,p,"gfmFootnoteDefinitionWhitespace")):r(t)}function p(e){return i.includes(a)||i.push(a),t(e)}}function Go(e,t,r){return e.check(na,t,e.attempt($o,t,r))}function Wo(e){e.exit("gfmFootnoteDefinition")}function Ko(e={}){let t=e.singleTilde;const r={tokenize:function(e,r,n){const i=this.previous,a=this.events;let o=0;return function(t){if(126===i&&"characterEscape"!==a[a.length-1][1].type)return n(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(a){const c=Xi(i);if(126===a)return o>1?n(a):(e.consume(a),o++,s);if(o<2&&!t)return n(a);const u=e.exit("strikethroughSequenceTemporary"),l=Xi(a);return u._open=!l||2===l&&Boolean(c),u._close=!c||2===c&&Boolean(l),r(a)}},resolveAll:function(e,t){let r=-1;for(;++r<e.length;)if("enter"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._close){let n=r;for(;n--;)if("exit"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._open&&e[r][1].end.offset-e[r][1].start.offset==e[n][1].end.offset-e[n][1].start.offset){e[r][1].type="strikethroughSequence",e[n][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[n][1].start),end:Object.assign({},e[r][1].end)},a={type:"strikethroughText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},o=[["enter",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["enter",a,t]];Ai(o,o.length,0,Zi(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),Ai(o,o.length,0,[["exit",a,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",i,t]]),Ai(e,n-1,r-n+3,o),r=n+o.length-2;break}}r=-1;for(;++r<e.length;)"strikethroughSequenceTemporary"===e[r][1].type&&(e[r][1].type="data");return e}};return null==t&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}}}const Jo={flow:{null:{tokenize:function(e,t,r){const n=this,i=[];let a,o,s=0;return function(t){if(e.enter("table")._align=i,e.enter("tableHead"),e.enter("tableRow"),124===t)return c(t);return s++,e.enter("temporaryTableCellContent"),f(t)};function c(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,u}function u(t){return null===t||Bi(t)?function(t){if(null===t)return r(t);e.exit("tableRow"),e.exit("tableHead");const i=n.interrupt;return n.interrupt=!0,e.attempt({tokenize:C,partial:!0},(function(t){return n.interrupt=i,e.enter("tableDelimiterRow"),p(t)}),(function(e){return n.interrupt=i,r(e)}))(t)}(t):$i(t)?(e.enter("whitespace"),e.consume(t),l):(a&&(a=void 0,s++),124===t?c(t):(e.enter("temporaryTableCellContent"),f(t)))}function l(t){return $i(t)?(e.consume(t),l):(e.exit("whitespace"),u(t))}function f(t){return null===t||124===t||Ni(t)?(e.exit("temporaryTableCellContent"),u(t)):(e.consume(t),92===t?h:f)}function h(t){return 92===t||124===t?(e.consume(t),f):f(t)}function p(t){return null===t||Bi(t)?y(t):$i(t)?(e.enter("whitespace"),e.consume(t),d):45===t?(e.enter("tableDelimiterFiller"),e.consume(t),o=!0,i.push(null),m):58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),i.push("left"),g):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):r(t)}function d(t){return $i(t)?(e.consume(t),d):(e.exit("whitespace"),p(t))}function m(t){return 45===t?(e.consume(t),m):(e.exit("tableDelimiterFiller"),58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),i[i.length-1]="left"===i[i.length-1]?"center":"right",v):p(t))}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),e.consume(t),o=!0,m):r(t)}function v(t){return null===t||Bi(t)?y(t):$i(t)?(e.enter("whitespace"),e.consume(t),d):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):r(t)}function y(t){return e.exit("tableDelimiterRow"),o&&s===i.length?null===t?b(t):e.check(Yo,b,e.attempt({tokenize:C,partial:!0},Gi(e,w,"linePrefix",4),b))(t):r(t)}function b(r){return e.exit("table"),t(r)}function w(t){return e.enter("tableBody"),x(t)}function x(t){return e.enter("tableRow"),124===t?k(t):(e.enter("temporaryTableCellContent"),P(t))}function k(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),E}function E(t){return null===t||Bi(t)?function(t){if(e.exit("tableRow"),null===t)return A(t);return e.check(Yo,A,e.attempt({tokenize:C,partial:!0},Gi(e,x,"linePrefix",4),A))(t)}(t):$i(t)?(e.enter("whitespace"),e.consume(t),S):124===t?k(t):(e.enter("temporaryTableCellContent"),P(t))}function S(t){return $i(t)?(e.consume(t),S):(e.exit("whitespace"),E(t))}function P(t){return null===t||124===t||Ni(t)?(e.exit("temporaryTableCellContent"),E(t)):(e.consume(t),92===t?_:P)}function _(t){return 92===t||124===t?(e.consume(t),P):P(t)}function A(t){return e.exit("tableBody"),b(t)}function C(e,t,r){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Gi(e,i,"linePrefix")};function i(i){if(n.parser.lazy[n.now().line]||null===i||Bi(i))return r(i);const a=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?r(i):(n._gfmTableDynamicInterruptHack=!0,e.check(n.parser.constructs.flow,(function(e){return n._gfmTableDynamicInterruptHack=!1,r(e)}),(function(e){return n._gfmTableDynamicInterruptHack=!1,t(e)}))(i))}}},resolve:function(e,t){let r,n,i,a,o,s,c,u=-1;for(;++u<e.length;){const l=e[u][1];if(i&&("temporaryTableCellContent"===l.type&&(a=a||u,o=u),("tableCellDivider"===l.type||"tableRow"===l.type)&&o)){const r={type:"tableContent",start:e[a][1].start,end:e[o][1].end},n={type:"chunkText",start:r.start,end:r.end,contentType:"text"};e.splice(a,o-a+1,["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]),u-=o-a-3,a=void 0,o=void 0}if("exit"===e[u][0]&&void 0!==s&&s+(c?0:1)<u&&("tableCellDivider"===l.type||"tableRow"===l.type&&(s+3<u||"whitespace"!==e[s][1].type))){const i={type:n?"tableDelimiter":r?"tableHeader":"tableData",start:e[s][1].start,end:e[u][1].end};e.splice(u+("tableCellDivider"===l.type?1:0),0,["exit",i,t]),e.splice(s,0,["enter",i,t]),u+=2,s=u+1,c=!0}"tableRow"===l.type&&(i="enter"===e[u][0],i&&(s=u+1,c=!1)),"tableDelimiterRow"===l.type&&(n="enter"===e[u][0],n&&(s=u+1,c=!1)),"tableHead"===l.type&&(r="enter"===e[u][0])}return e}}}},Yo={tokenize:function(e,t,r){let n=0;return function(t){return e.enter("check"),e.consume(t),i};function i(a){return-1===a||32===a?(e.consume(a),n++,4===n?t:i):null===a||Ni(a)?t(a):r(a)}},partial:!0};const Xo={tokenize:function(e,t,r){const n=this;return function(t){if(null!==n.previous||!n._gfmTasklistFirstContentOfListItem)return r(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return $i(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):r(t)}function a(n){return 93===n?(e.enter("taskListCheckMarker"),e.consume(n),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:es},t,r)):r(n)}}},Zo={text:{91:Xo}};function es(e,t,r){const n=this;return Gi(e,(function(e){const i=n.events[n.events.length-1];return i&&"whitespace"===i[1].type&&null!==e&&!Ni(e)?t(e):r(e)}),"whitespace")}function ts(e,t){const r=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;-1!==i;)n++,i=r.indexOf(t,i+t.length);return n}const rs=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);var i=Yr(t),a=n?-1:1;!function e(o,s,c){var u,l="object"==typeof o&&null!==o?o:{};"string"==typeof l.type&&(u="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0,Object.defineProperty(h,"name",{value:"node ("+(f=l.type+(u?"<"+u+">":""),"[33m"+f+"[39m)")}));var f;return h;function h(){var u,l,f,h=[];if((!t||i(o,s,c[c.length-1]||null))&&(h=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(r(o,c)),false===h[0]))return h;if(o.children&&"skip"!==h[0])for(l=(n?o.children.length:-1)+a,f=c.concat(o);l>-1&&l<o.children.length;){if(u=e(o.children[l],l,f)(),false===u[0])return u;l="number"==typeof u[1]?u[1]:l+a}return h}}(e,null,[])()};const ns={}.hasOwnProperty,is=function(e,t,r,n){let i,a;"string"==typeof t||t instanceof RegExp?(a=[[t,r]],i=n):(a=t,i=r),i||(i={});const o=Yr(i.ignore||[]),s=function(e){const t=[];if("object"!=typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let r=-1;for(;++r<e.length;)t.push([as(e[r][0]),os(e[r][1])])}else{let r;for(r in e)ns.call(e,r)&&t.push([as(r),os(e[r])])}return t}(a);let c=-1;for(;++c<s.length;)rs(e,"text",u);return e;function u(e,t){let r,n=-1;for(;++n<t.length;){const e=t[n];if(o(e,r?r.children.indexOf(e):void 0,r))return;r=e}if(r)return function(e,t){const r=s[c][0],n=s[c][1];let i,a=0,o=t.children.indexOf(e),u=[];r.lastIndex=0;let l=r.exec(e.value);for(;l;){i=l.index;let t=n(...l,{index:l.index,input:l.input});if("string"==typeof t&&(t=t.length>0?{type:"text",value:t}:void 0),!1!==t&&(a!==i&&u.push({type:"text",value:e.value.slice(a,i)}),Array.isArray(t)?u.push(...t):t&&u.push(t),a=i+l[0].length),!r.global)break;l=r.exec(e.value)}void 0===i?(u=[e],o--):(a<e.value.length&&u.push({type:"text",value:e.value.slice(a)}),t.children.splice(o,1,...u));return o+u.length+1}(e,r)}};function as(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function os(e){return"function"==typeof e?e:()=>e}const ss=["autolink","link","image","label"],cs={transforms:[function(e){is(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,fs],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,hs]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:ls,literalAutolinkHttp:ls,literalAutolinkWww:ls},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},us={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:"phrasing",notInConstruct:ss},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:"phrasing",notInConstruct:ss},{character:":",before:"[ps]",after:"\\/",inConstruct:"phrasing",notInConstruct:ss}]};function ls(e){this.config.enter.autolinkProtocol.call(this,e)}function fs(e,t,r,n,i){let a="";if(!ps(i))return!1;if(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(r))return!1;const o=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);let r,n,i,a;if(t)for(e=e.slice(0,t.index),a=t[0],r=a.indexOf(")"),n=ts(e,"("),i=ts(e,")");-1!==r&&n>i;)e+=a.slice(0,r+1),a=a.slice(r+1),r=a.indexOf(")"),i++;return[e,a]}(r+n);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function hs(e,t,r,n){return!(!ps(n,!0)||/[_-\d]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function ps(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||Ui(r)||Vi(r))&&(!t||47!==r)}function ds(e){return e.label||!e.identifier?e.label||"":go(e.identifier)}function ms(e,t){const r=t.indexStack,n=e.children||[],i=[];let a=-1;for(r.push(-1);++a<n.length;){const s=n[a];r[r.length-1]=a,i.push(t.handle(s,e,t,{before:"\n",after:"\n"})),"list"!==s.type&&(t.bulletLastUsed=void 0),a<n.length-1&&i.push(o(s,n[a+1]))}return r.pop(),i.join("");function o(r,n){let i=t.join.length;for(;i--;){const a=t.join[i](r,n,e,t);if(!0===a||1===a)break;if("number"==typeof a)return"\n".repeat(1+a);if(!1===a)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}}const gs=/\r?\n|\r/g;function vs(e,t){const r=[];let n,i=0,a=0;for(;n=gs.exec(e);)o(e.slice(i,n.index)),r.push(n[0]),i=n.index+n[0].length,a++;return o(e.slice(i)),r.join("");function o(e){r.push(t(e,a,!e))}}function ys(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function bs(e,t){return ws(e,t.inConstruct,!0)&&!ws(e,t.notInConstruct,!1)}function ws(e,t,r){if(!t)return r;"string"==typeof t&&(t=[t]);let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function xs(e,t,r){const n=(r.before||"")+(t||"")+(r.after||""),i=[],a=[],o={};let s=-1;for(;++s<e.unsafe.length;){const t=e.unsafe[s];if(!bs(e.stack,t))continue;const r=ys(t);let a;for(;a=r.exec(n);){const e="before"in t||Boolean(t.atBreak),r="after"in t,n=a.index+(e?a[1].length:0);i.includes(n)?(o[n].before&&!e&&(o[n].before=!1),o[n].after&&!r&&(o[n].after=!1)):(i.push(n),o[n]={before:e,after:r})}}i.sort(ks);let c=r.before?r.before.length:0;const u=n.length-(r.after?r.after.length:0);for(s=-1;++s<i.length;){const e=i[s];e<c||e>=u||(e+1<u&&i[s+1]===e+1&&o[e].after&&!o[e+1].before&&!o[e+1].after||i[s-1]===e-1&&o[e].before&&!o[e-1].before&&!o[e-1].after||(c!==e&&a.push(Es(n.slice(c,e),"\\")),c=e,!/[!-/:-@[-`{-~]/.test(n.charAt(e))||r.encode&&r.encode.includes(n.charAt(e))?(a.push("&#x"+n.charCodeAt(e).toString(16).toUpperCase()+";"),c++):a.push("\\")))}return a.push(Es(n.slice(c,u),r.after)),a.join("")}function ks(e,t){return e-t}function Es(e,t){const r=/\\(?=[!-/:-@[-`{-~])/g,n=[],i=[],a=e+t;let o,s=-1,c=0;for(;o=r.exec(a);)n.push(o.index);for(;++s<n.length;)c!==n[s]&&i.push(e.slice(c,n[s])),i.push("\\"),c=n[s];return i.push(e.slice(c)),i.join("")}const Ss=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);const i=Yr(t),a=n?-1:1;!function e(o,s,c){const u="object"==typeof o&&null!==o?o:{};let l;"string"==typeof u.type&&(l="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0,Object.defineProperty(h,"name",{value:"node ("+(f=u.type+(l?"<"+l+">":""),"[33m"+f+"[39m)")}));var f;return h;function h(){let u,l,f,h=[];if((!t||i(o,s,c[c.length-1]||null))&&(h=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(r(o,c)),false===h[0]))return h;if(o.children&&"skip"!==h[0])for(l=(n?o.children.length:-1)+a,f=c.concat(o);l>-1&&l<o.children.length;){if(u=e(o.children[l],l,f)(),false===u[0])return u;l="number"==typeof u[1]?u[1]:l+a}return h}}(e,null,[])()};const Ps=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null),Ss(e,t,(function(e,t){const n=t[t.length-1];return r(e,n?n.children.indexOf(e):null,n)}),n)};var _s=Object.freeze({__proto__:null,CONTINUE:true,SKIP:"skip",EXIT:false,visit:Ps});let As=!1,Cs=!1;function Fs(){return e.peek=function(){return"["},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:function(e,t,r){const n=r.enter("footnoteDefinition"),i=r.enter("label"),a=xs(r,ds(e),{before:"^",after:"]"}),o="[^"+a+"]:";i();const s=vs(ms(e,r),(function(e,t,r){if(t)return(r?"":" ")+e;return(r?o:o+" ")+e}));n(),!As&&a.includes(":")&&(console.warn("[mdast-util-gfm-footnote] Warning: Found a colon in footnote identifier `"+a+"`. GitHub currently crahes on colons in footnotes (see <https://github.com/github/cmark-gfm/issues/241> for more info)"),As=!0);Cs||Ps(e,"list",(()=>(console.warn("[mdast-util-gfm-footnote] Warning: Found a list in a footnote definition. GitHub currently crahes on lists in footnotes (see <https://github.com/github/cmark-gfm/issues/241> for more info)"),Cs=!0,false)));return s},footnoteReference:e}};function e(e,t,r){const n=r.enter("footnoteReference"),i=r.enter("reference"),a=xs(r,ds(e),{before:"^",after:"]"});return i(),n(),"[^"+a+"]"}}function Ds(e,t,r){const n=t.indexStack,i=e.children||[],a=[];let o=-1,s=r.before;for(n.push(-1);++o<i.length;){const c=i[o];let u;if(n[n.length-1]=o,o+1<i.length){let r=t.handle.handlers[i[o+1].type];r&&r.peek&&(r=r.peek),u=r?r(i[o+1],e,t,{before:"",after:""}).charAt(0):""}else u=r.after;a.length>0&&("\r"===s||"\n"===s)&&"html"===c.type&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),s=" "),a.push(t.handle(c,e,t,{before:s,after:u})),s=a[a.length-1].slice(-1)}return n.pop(),a.join("")}const Os={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},Rs={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:Ts}};function Ts(e,t,r){const n=r.enter("emphasis"),i=Ds(e,r,{before:"~",after:"~"});return n(),"~~"+i+"~~"}function Is(e,t,r){let n=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++a<r.unsafe.length;){const e=r.unsafe[a],t=ys(e);let i;if(e.atBreak)for(;i=t.exec(n);){let e=i.index;10===n.charCodeAt(e)&&13===n.charCodeAt(e-1)&&e--,n=n.slice(0,e)+" "+n.slice(i.index+1)}}return i+n+i}function js(e){return null==e?"":String(e)}function Ls(e){return e.length}function qs(e){const t="string"==typeof e?e.charCodeAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}Ts.peek=function(){return"~"},Is.peek=function(){return"`"};const zs={enter:{table:function(e){const t=e._align;this.enter({type:"table",align:t,children:[]},e),this.setData("inTable",!0)},tableData:Ns,tableHeader:Ns,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,Bs));this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:Ms,tableHeader:Ms,tableRow:Ms}};function Ms(e){this.exit(e)}function Ns(e){this.enter({type:"tableCell",children:[]},e)}function Bs(e,t){return"|"===t?t:e}function $s(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,r){return s(function(e,t){const r=e.children;let n=-1;const i=[],a=t.enter("table");for(;++n<r.length;)i[n]=c(r[n],t);return a(),i}(e,r),e.align)},tableRow:function(e,t,r){const n=s([c(e,r)]);return n.slice(0,n.indexOf("\n"))},tableCell:o,inlineCode:function(e,t,r){let n=Is(e,0,r);r.stack.includes("tableCell")&&(n=n.replace(/\|/g,"\\$&"));return n}}};function o(e,t,r){const n=r.enter("tableCell"),i=r.enter("phrasing"),o=Ds(e,r,{before:a,after:a});return i(),n(),o}function s(e,t){return function(e,t){const r=t||{},n=(r.align||[]).concat(),i=r.stringLength||Ls,a=[];let o=-1;const s=[],c=[],u=[];let l,f,h,p,d,m,g,v,y,b=0;for(;++o<e.length;){for(l=-1,f=[],h=[],e[o].length>b&&(b=e[o].length);++l<e[o].length;)d=js(e[o][l]),!1!==r.alignDelimiters&&(p=i(d),h[l]=p,(void 0===u[l]||p>u[l])&&(u[l]=p)),f.push(d);s[o]=f,c[o]=h}if(l=-1,"object"==typeof n&&"length"in n)for(;++l<b;)a[l]=qs(n[l]);else for(y=qs(n);++l<b;)a[l]=y;for(l=-1,f=[],h=[];++l<b;)y=a[l],g="",v="",99===y?(g=":",v=":"):108===y?g=":":114===y&&(v=":"),p=!1===r.alignDelimiters?1:Math.max(1,u[l]-g.length-v.length),d=g+"-".repeat(p)+v,!1!==r.alignDelimiters&&(p=g.length+p+v.length,p>u[l]&&(u[l]=p),h[l]=p),f[l]=d;s.splice(1,0,f),c.splice(1,0,h),o=-1;const w=[];for(;++o<s.length;){for(f=s[o],h=c[o],l=-1,m=[];++l<b;)d=f[l]||"",g="",v="",!1!==r.alignDelimiters&&(p=u[l]-(h[l]||0),y=a[l],114===y?g=" ".repeat(p):99===y?p%2?(g=" ".repeat(p/2+.5),v=" ".repeat(p/2-.5)):(g=" ".repeat(p/2),v=g):v=" ".repeat(p)),!1===r.delimiterStart||l||m.push("|"),!1===r.padding||!1===r.alignDelimiters&&""===d||!1===r.delimiterStart&&!l||m.push(" "),!1!==r.alignDelimiters&&m.push(g),m.push(d),!1!==r.alignDelimiters&&m.push(v),!1!==r.padding&&m.push(" "),!1===r.delimiterEnd&&l===b-1||m.push("|");w.push(!1===r.delimiterEnd?m.join("").replace(/ +$/,""):m.join(""))}return w.join("\n")}(e,{align:t,alignDelimiters:n,padding:r,stringLength:i})}function c(e,t){const r=e.children;let n=-1;const i=[],a=t.enter("tableRow");for(;++n<r.length;)i[n]=o(r[n],0,t);return a(),i}}function Us(e,t,r){const n=function(e){const t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(r);let i=r.bulletCurrent||function(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(r);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===n||"mixed"===n&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const o=r.enter("listItem"),s=vs(ms(e,r),(function(e,t,r){if(t)return(r?"":" ".repeat(a))+e;return(r?i:i+" ".repeat(a-i.length))+e}));return o(),s}const Vs={exit:{taskListCheckValueChecked:Qs,taskListCheckValueUnchecked:Qs,paragraph:function(e){const t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],n=t.children,i=r.children[0];let a,o=-1;if(t&&"listItem"===t.type&&"boolean"==typeof t.checked&&i&&"text"===i.type){for(;++o<n.length;){const e=n[o];if("paragraph"===e.type){a=e;break}}a===r&&(i.value=i.value.slice(1),0===i.value.length?r.children.shift():(i.position.start.column++,i.position.start.offset++,r.position.start=Object.assign({},i.position.start)))}this.exit(e)}}},Hs={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,t,r){const n=e.children[0];let i=Us(e,t,r);"boolean"==typeof e.checked&&n&&"paragraph"===n.type&&(i=i.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(t){return t+"["+(e.checked?"x":" ")+"] "})));return i}}};function Qs(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}var Gs=Object.freeze({__proto__:null,default:function(e={}){const t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",function(e){return Di([To,{document:{91:{tokenize:Qo,continuation:{tokenize:Go},exit:Wo}},text:{91:{tokenize:Ho},93:{add:"after",tokenize:Uo,resolveTo:Vo}}},Ko(e),Jo,Zo])}(e)),r("fromMarkdownExtensions",[cs,{enter:{gfmFootnoteDefinition:function(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)},gfmFootnoteDefinitionLabelString:function(){this.buffer()},gfmFootnoteCall:function(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)},gfmFootnoteCallString:function(){this.buffer()}},exit:{gfmFootnoteDefinition:function(e){this.exit(e)},gfmFootnoteDefinitionLabelString:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=_a(this.sliceSerialize(e)).toLowerCase()},gfmFootnoteCall:function(e){this.exit(e)},gfmFootnoteCallString:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=_a(this.sliceSerialize(e)).toLowerCase()}}},Os,zs,Vs]),r("toMarkdownExtensions",function(e){return{extensions:[us,Fs(),Rs,$s(e),Hs]}}(e))}}),Ws=le(Gs);const Ks=/[\t ]*(?:\r?\n|\r)/g;var Js=Object.freeze({__proto__:null,default:function(){return e=>{Ps(e,"text",((e,t,r)=>{const n=[];let i=0;Ks.lastIndex=0;let a=Ks.exec(e.value);for(;a;){const t=a.index;i!==t&&n.push({type:"text",value:e.value.slice(i,t)}),n.push({type:"break"}),i=t+a[0].length,a=Ks.exec(e.value)}if(n.length>0&&r&&"number"==typeof t)return i<e.value.length&&n.push({type:"text",value:e.value.slice(i)}),r.children.splice(t,1,...n),t+n.length}))}}}),Ys=le(Js),Xs={},Zs={};function ec(e,t,r){var n,i,a,o,s,c="";for("string"!=typeof t&&(r=t,t=ec.defaultChars),void 0===r&&(r=!0),s=function(e){var t,r,n=Zs[e];if(n)return n;for(n=Zs[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),/^[0-9a-z]$/i.test(r)?n.push(r):n.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)n[e.charCodeAt(t)]=e[t];return n}(t),n=0,i=e.length;n<i;n++)if(a=e.charCodeAt(n),r&&37===a&&n+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(n+1,n+3)))c+=e.slice(n,n+3),n+=2;else if(a<128)c+=s[a];else if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&n+1<i&&(o=e.charCodeAt(n+1))>=56320&&o<=57343){c+=encodeURIComponent(e[n]+e[n+1]),n++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[n]);return c}ec.defaultChars=";/?:@&=+$,-_.!~*'()#",ec.componentChars="-_.!~*'()";var tc=ec,rc={};function nc(e,t){var r;return"string"!=typeof t&&(t=nc.defaultChars),r=function(e){var t,r,n=rc[e];if(n)return n;for(n=rc[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),n.push(r);for(t=0;t<e.length;t++)n[r=e.charCodeAt(t)]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return n}(t),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,n,i,a,o,s,c,u="";for(t=0,n=e.length;t<n;t+=3)(i=parseInt(e.slice(t+1,t+3),16))<128?u+=r[i]:192==(224&i)&&t+3<n&&128==(192&(a=parseInt(e.slice(t+4,t+6),16)))?(u+=(c=i<<6&1984|63&a)<128?"��":String.fromCharCode(c),t+=3):224==(240&i)&&t+6<n&&(a=parseInt(e.slice(t+4,t+6),16),o=parseInt(e.slice(t+7,t+9),16),128==(192&a)&&128==(192&o))?(u+=(c=i<<12&61440|a<<6&4032|63&o)<2048||c>=55296&&c<=57343?"���":String.fromCharCode(c),t+=6):240==(248&i)&&t+9<n&&(a=parseInt(e.slice(t+4,t+6),16),o=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128==(192&a)&&128==(192&o)&&128==(192&s))?((c=i<<18&1835008|a<<12&258048|o<<6&4032|63&s)<65536||c>1114111?u+="����":(c-=65536,u+=String.fromCharCode(55296+(c>>10),56320+(1023&c))),t+=9):u+="�";return u}))}nc.defaultChars=";/?:@&=+$,#",nc.componentChars="";var ic=nc;function ac(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var oc=/^([a-z0-9.+-]+:)/i,sc=/:[0-9]*$/,cc=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,uc=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),lc=["'"].concat(uc),fc=["%","/","?",";","#"].concat(lc),hc=["/","?","#"],pc=/^[+a-z0-9A-Z_-]{0,63}$/,dc=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,mc={javascript:!0,"javascript:":!0},gc={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};ac.prototype.parse=function(e,t){var r,n,i,a,o,s=e;if(s=s.trim(),!t&&1===e.split("#").length){var c=cc.exec(s);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var u=oc.exec(s);if(u&&(i=(u=u[0]).toLowerCase(),this.protocol=u,s=s.substr(u.length)),(t||u||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(o="//"===s.substr(0,2))||u&&mc[u]||(s=s.substr(2),this.slashes=!0)),!mc[u]&&(o||u&&!gc[u])){var l,f,h=-1;for(r=0;r<hc.length;r++)-1!==(a=s.indexOf(hc[r]))&&(-1===h||a<h)&&(h=a);for(-1!==(f=-1===h?s.lastIndexOf("@"):s.lastIndexOf("@",h))&&(l=s.slice(0,f),s=s.slice(f+1),this.auth=l),h=-1,r=0;r<fc.length;r++)-1!==(a=s.indexOf(fc[r]))&&(-1===h||a<h)&&(h=a);-1===h&&(h=s.length),":"===s[h-1]&&h--;var p=s.slice(0,h);s=s.slice(h),this.parseHost(p),this.hostname=this.hostname||"";var d="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!d){var m=this.hostname.split(/\./);for(r=0,n=m.length;r<n;r++){var g=m[r];if(g&&!g.match(pc)){for(var v="",y=0,b=g.length;y<b;y++)g.charCodeAt(y)>127?v+="x":v+=g[y];if(!v.match(pc)){var w=m.slice(0,r),x=m.slice(r+1),k=g.match(dc);k&&(w.push(k[1]),x.unshift(k[2])),x.length&&(s=x.join(".")+s),this.hostname=w.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),d&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var E=s.indexOf("#");-1!==E&&(this.hash=s.substr(E),s=s.slice(0,E));var S=s.indexOf("?");return-1!==S&&(this.search=s.substr(S),s=s.slice(0,S)),s&&(this.pathname=s),gc[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},ac.prototype.parseHost=function(e){var t=sc.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var vc=function(e,t){if(e&&e instanceof ac)return e;var r=new ac;return r.parse(e,t),r};function yc(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function bc(e,t,r){const n=yc(r),i='"'===n?"Quote":"Apostrophe",a=r.enter("image");let o=r.enter("label"),s="!["+xs(r,e.alt,{before:"[",after:"]"})+"](";return o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),s+="<"+xs(r,e.url,{before:"<",after:">"})+">"):(o=r.enter("destinationRaw"),s+=xs(r,e.url,{before:"(",after:e.title?" ":")"})),o(),e.title&&(o=r.enter("title"+i),s+=" "+n+xs(r,e.title,{before:n,after:n})+n,o()),s+=")",a(),s}Xs.encode=tc,Xs.decode=ic,Xs.format=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""},Xs.parse=vc,bc.peek=function(){return"!"};var wc=le(Object.freeze({__proto__:null,image:bc})),xc=le(Ka);var kc=le(Object.freeze({__proto__:null,types:{data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"}}));var Ec=le(Object.freeze({__proto__:null,codes:{carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533}}));var Sc=le(Object.freeze({__proto__:null,constants:{attentionSideBefore:1,attentionSideAfter:2,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupWhitespace:1,characterGroupPunctuation:2,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeContent:"content",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlRaw:1,htmlComment:2,htmlInstruction:3,htmlDeclaration:4,htmlCdata:5,htmlBasic:6,htmlComplete:7,htmlRawSizeMax:8,linkResourceDestinationBalanceMax:3,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4}})),Pc=le(Aa),_c=le(Pa),Ac=le(ba),Cc=le(Qi),Fc=le(xa),Dc=le(Ea),Oc=le(_s);var Rc=Object.freeze({__proto__:null,paragraph:function(e,t,r){const n=r.enter("paragraph"),i=r.enter("phrasing"),a=Ds(e,r,{before:"\n",after:"\n"});return i(),n(),a}}),Tc=le(Rc);var Ic=Object.freeze({__proto__:null,heading:function(e,t,r){const n=Math.max(Math.min(6,e.depth||1),1);if(function(e,t){let r=!1;return Ps(e,(e=>{if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,!1})),Boolean((!e.depth||e.depth<3)&&Si(e)&&(t.options.setext||r))}(e,r)){const t=r.enter("headingSetext"),i=r.enter("phrasing"),a=Ds(e,r,{before:"\n",after:"\n"});return i(),t(),a+"\n"+(1===n?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const i="#".repeat(n),a=r.enter("headingAtx"),o=r.enter("phrasing");let s=Ds(e,r,{before:"# ",after:"\n"});return/^[\t ]/.test(s)&&(s="&#x"+s.charCodeAt(0).toString(16).toUpperCase()+";"+s.slice(1)),s=s?i+" "+s:i,r.options.closeAtx&&(s+=" "+i),o(),a(),s}}),jc=le(Ic),Lc=le(Wi);function qc(e,t,r){return">"+(r?"":" ")+e}var zc,Mc=Object.freeze({__proto__:null,blockquote:function(e,t,r){const n=r.enter("blockquote"),i=vs(ms(e,r),qc);return n(),i}}),Nc=le(Mc),Bc={exports:{}};zc=Bc,function(){var e;function t(e){for(var t,r,n,i,a=1,o=[].slice.call(arguments),s=0,c=e.length,u="",l=!1,f=!1,h=function(){return o[a++]},p=function(){for(var r="";/\d/.test(e[s]);)r+=e[s++],t=e[s];return r.length>0?parseInt(r):null};s<c;++s)if(t=e[s],l)switch(l=!1,"."==t?(f=!1,t=e[++s]):"0"==t&&"."==e[s+1]?(f=!0,t=e[s+=2]):f=!0,i=p(),t){case"b":u+=parseInt(h(),10).toString(2);break;case"c":u+="string"==typeof(r=h())||r instanceof String?r:String.fromCharCode(parseInt(r,10));break;case"d":u+=parseInt(h(),10);break;case"f":n=String(parseFloat(h()).toFixed(i||6)),u+=f?n:n.replace(/^0/,"");break;case"j":u+=JSON.stringify(h());break;case"o":u+="0"+parseInt(h(),10).toString(8);break;case"s":u+=h();break;case"x":u+="0x"+parseInt(h(),10).toString(16);break;case"X":u+="0x"+parseInt(h(),10).toString(16).toUpperCase();break;default:u+=t}else"%"===t?l=!0:u+=t;return u}(e=zc.exports=t).format=t,e.vsprintf=function(e,r){return t.apply(null,[e].concat(r))},"undefined"!=typeof console&&"function"==typeof console.log&&(e.printf=function(){console.log(t.apply(null,arguments))})}();var $c=Bc.exports;const Uc=Object.assign(Vc(Error),{eval:Vc(EvalError),range:Vc(RangeError),reference:Vc(ReferenceError),syntax:Vc(SyntaxError),type:Vc(TypeError),uri:Vc(URIError)});function Vc(e){return t.displayName=e.displayName||e.name,t;function t(t,...r){const n=t?$c(t,...r):t;return new e(n)}}const Hc={}.hasOwnProperty,Qc={yaml:"-",toml:"+"};function Gc(e="yaml"){const t=[];let r=-1;for(Array.isArray(e)||(e=[e]);++r<e.length;)t[r]=Wc(e[r]);return t}function Wc(e){let t=e;if("string"==typeof t){if(!Hc.call(Qc,t))throw Uc("Missing matter definition for `%s`",t);t={type:t,marker:Qc[t]}}else if("object"!=typeof t)throw Uc("Expected matter to be an object, not `%j`",t);if(!Hc.call(t,"type"))throw Uc("Missing `type` in matter `%j`",t);if(!Hc.call(t,"fence")&&!Hc.call(t,"marker"))throw Uc("Missing `marker` or `fence` in matter `%j`",t);return t}function Kc(e){const t=e.type,r=e.anywhere,n=t+"Value",i=t+"Fence",a=i+"Sequence",o={tokenize:function(e,t,r){let n=0;return function(t){if(t===s.charCodeAt(n))return e.enter(i),e.enter(a),o(t);return r(t)};function o(t){return n===s.length?(e.exit(a),$i(t)?(e.enter("whitespace"),c(t)):u(t)):t===s.charCodeAt(n++)?(e.consume(t),o):r(t)}function c(t){return $i(t)?(e.consume(t),c):(e.exit("whitespace"),u(t))}function u(n){return null===n||Bi(n)?(e.exit(i),t(n)):r(n)}},partial:!0};let s;return{tokenize:function(i,a,c){const u=this;return function(n){const a=u.now();if(1!==a.column||!r&&1!==a.line)return c(n);return i.enter(t),s=Jc(e,"open"),i.attempt(o,l,c)(n)};function l(t){return s=Jc(e,"close"),p(t)}function f(e){return null===e||Bi(e)?p(e):(i.enter(n),h(e))}function h(e){return null===e||Bi(e)?(i.exit(n),p(e)):(i.consume(e),h)}function p(e){return null===e?c(e):(i.enter("lineEnding"),i.consume(e),i.exit("lineEnding"),i.attempt(o,d,f))}function d(e){return i.exit(t),a(e)}},concrete:!0}}function Jc(e,t){return e.marker?Yc(e.marker,t).repeat(3):Yc(e.fence,t)}function Yc(e,t){return"string"==typeof e?e:e[t]}function Xc(e){return function(t){this.enter({type:e.type,value:""},t),this.buffer()}}function Zc(e){const t=this.resume();this.exit(e).value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function eu(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function tu(e){const t=ru(e,"open"),r=ru(e,"close");return function(e){return t+(e.value?"\n"+e.value:"")+"\n"+r}}function ru(e,t){return e.marker?nu(e.marker,t).repeat(3):nu(e.fence,t)}function nu(e,t){return"string"==typeof e?e:e[t]}var iu=Object.freeze({__proto__:null,default:function(e="yaml"){const t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",function(e){const t=Gc(e),r={};let n,i,a=-1;for(;++a<t.length;)n=t[a],i=Jc(n,"open").charCodeAt(0),i in r?r[i].push(Kc(n)):r[i]=[Kc(n)];return{flow:r}}(e)),r("fromMarkdownExtensions",function(e){const t=Gc(e),r={},n={};let i=-1;for(;++i<t.length;){const e=t[i];r[e.type]=Xc(e),n[e.type]=Zc,n[e.type+"Value"]=eu}return{enter:r,exit:n}}(e)),r("toMarkdownExtensions",function(e){const t=[],r={},n=Gc(e);let i=-1;for(;++i<n.length;){const e=n[i];r[e.type]=tu(e),t.push({atBreak:!0,character:ru(e,"open").charAt(0)})}return{unsafe:t,handlers:r}}(e))}}),au=le(iu);function ou(e,t,r,n,i,a,o,s,c,u,l,f,h,p,d){let m,g;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),v};function v(t){return 35===t?(m=o,y(t)):46===t?(m=s,y(t)):58===t||95===t||Ti(t)?(e.enter(a),e.enter(c),e.consume(t),x):d&&$i(t)?Gi(e,v,"whitespace")(t):!d&&Ni(t)?Sa(e,v)(t):F(t)}function y(t){return e.enter(a),e.enter(m),e.enter(m+"Marker"),e.consume(t),e.exit(m+"Marker"),b}function b(t){return null===t||34===t||35===t||39===t||46===t||60===t||61===t||62===t||96===t||125===t||Ni(t)?r(t):(e.enter(m+"Value"),e.consume(t),w)}function w(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t?r(t):35===t||46===t||125===t||Ni(t)?(e.exit(m+"Value"),e.exit(m),e.exit(a),v(t)):(e.consume(t),w)}function x(t){return 45===t||46===t||58===t||95===t||Li(t)?(e.consume(t),x):(e.exit(c),d&&$i(t)?Gi(e,k,"whitespace")(t):!d&&Ni(t)?Sa(e,k)(t):k(t))}function k(t){return 61===t?(e.enter(u),e.consume(t),e.exit(u),E):(e.exit(a),v(t))}function E(t){return null===t||60===t||61===t||62===t||96===t||125===t||d&&Bi(t)?r(t):34===t||39===t?(e.enter(l),e.enter(h),e.consume(t),e.exit(h),g=t,P):d&&$i(t)?Gi(e,E,"whitespace")(t):!d&&Ni(t)?Sa(e,E)(t):(e.enter(f),e.enter(p),e.consume(t),g=void 0,S)}function S(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t?r(t):125===t||Ni(t)?(e.exit(p),e.exit(f),e.exit(a),v(t)):(e.consume(t),S)}function P(t){return t===g?(e.enter(h),e.consume(t),e.exit(h),e.exit(l),e.exit(a),C):(e.enter(f),_(t))}function _(t){return t===g?(e.exit(f),P(t)):null===t?r(t):Bi(t)?d?r(t):Sa(e,_)(t):(e.enter(p),e.consume(t),A)}function A(t){return t===g||null===t||Bi(t)?(e.exit(p),_(t)):(e.consume(t),A)}function C(e){return 125===e||Ni(e)?v(e):F(e)}function F(a){return 125===a?(e.enter(i),e.consume(a),e.exit(i),e.exit(n),t):r(a)}}function su(e,t,r,n,i,a,o){let s=0,c=0;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),u};function u(r){return 93===r?(e.enter(i),e.consume(r),e.exit(i),e.exit(n),t):(e.enter(a),l(r))}function l(t){return null===t||s>999?r(t):93!==t||c--?Bi(t)?o?r(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("chunkText",{contentType:"text"}),f(t)):h(t)}function f(t){return null===t||Bi(t)||s>999?(e.exit("chunkText"),l(t)):91===t&&++c>3?r(t):93!==t||c--?(e.consume(t),92===t?p:f):(e.exit("chunkText"),h(t))}function h(r){return e.exit(a),e.enter(i),e.consume(r),e.exit(i),e.exit(n),t}function p(t){return 91===t||92===t||93===t?(e.consume(t),s++,f):f(t)}}function cu(e,t,r,n){const i=this;return function(t){if(Ti(t))return e.enter(n),e.consume(t),a;return r(t)};function a(o){return 45===o||95===o||Li(o)?(e.consume(o),a):(e.exit(n),45===i.previous||95===i.previous?r(o):t(o))}}const uu={tokenize:function(e,t,r){const n=this,i=n.events[n.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0;let o,s=0;return function(t){return e.enter("directiveContainer"),e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),c(t)};function c(t){return 58===t?(e.consume(t),s++,c):s<3?r(t):(e.exit("directiveContainerSequence"),cu.call(n,e,u,r,"directiveContainerName")(t))}function u(t){return 91===t?e.attempt(lu,l,l)(t):l(t)}function l(t){return 123===t?e.attempt(fu,f,f)(t):f(t)}function f(t){return Gi(e,h,"whitespace")(t)}function h(i){return e.exit("directiveContainerFence"),null===i?p(i):Bi(i)?n.interrupt?t(i):e.attempt(hu,d,p)(i):r(i)}function p(r){return e.exit("directiveContainer"),t(r)}function d(r){return null===r?(e.exit("directiveContainer"),t(r)):(e.enter("directiveContainerContent"),m(r))}function m(t){return null===t?w(t):e.attempt({tokenize:x,partial:!0},w,a?Gi(e,g,"linePrefix",a+1):g)(t)}function g(t){if(null===t)return w(t);const r=e.enter("chunkDocument",{contentType:"document",previous:o});return o&&(o.next=r),o=r,v(t)}function v(t){if(null===t){const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,w(t)}return Bi(t)?e.check(hu,y,b)(t):(e.consume(t),v)}function y(t){e.consume(t);const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,m}function b(t){const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,w(t)}function w(r){return e.exit("directiveContainerContent"),e.exit("directiveContainer"),t(r)}function x(e,t,r){let n=0;return Gi(e,(function(t){return e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),i(t)}),"linePrefix",4);function i(t){return 58===t?(e.consume(t),n++,i):n<s?r(t):(e.exit("directiveContainerSequence"),Gi(e,a,"whitespace")(t))}function a(n){return null===n||Bi(n)?(e.exit("directiveContainerFence"),t(n)):r(n)}}},concrete:!0},lu={tokenize:function(e,t,r){return su(e,t,r,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)},partial:!0},fu={tokenize:function(e,t,r){return ou(e,t,r,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)},partial:!0},hu={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0};const pu={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("directiveLeaf"),e.enter("directiveLeafSequence"),e.consume(t),i};function i(t){return 58===t?(e.consume(t),e.exit("directiveLeafSequence"),cu.call(n,e,a,r,"directiveLeafName")):r(t)}function a(t){return 91===t?e.attempt(du,o,o)(t):o(t)}function o(t){return 123===t?e.attempt(mu,s,s)(t):s(t)}function s(t){return Gi(e,c,"whitespace")(t)}function c(n){return null===n||Bi(n)?(e.exit("directiveLeaf"),t(n)):r(n)}}},du={tokenize:function(e,t,r){return su(e,t,r,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)},partial:!0},mu={tokenize:function(e,t,r){return ou(e,t,r,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)},partial:!0};const gu={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("directiveText"),e.enter("directiveTextMarker"),e.consume(t),e.exit("directiveTextMarker"),cu.call(n,e,i,r,"directiveTextName")};function i(t){return 58===t?r(t):91===t?e.attempt(vu,a,a)(t):a(t)}function a(t){return 123===t?e.attempt(yu,o,o)(t):o(t)}function o(r){return e.exit("directiveText"),t(r)}},previous:function(e){return 58!==e||"characterEscape"===this.events[this.events.length-1][1].type}},vu={tokenize:function(e,t,r){return su(e,t,r,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")},partial:!0},yu={tokenize:function(e,t,r){return ou(e,t,r,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")},partial:!0};const bu=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],wu={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function xu(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function ku(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Eu(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||xu(e)}const Su=String.fromCharCode,Pu=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function _u(e,t={}){const r="string"==typeof t.additional?t.additional.charCodeAt(0):t.additional,n=[];let i,a,o=0,s=-1,c="";t.position&&("start"in t.position||"indent"in t.position?(a=t.position.indent,i=t.position.start):i=t.position);let u,l=(i?i.line:0)||1,f=(i?i.column:0)||1,h=p();for(o--;++o<=e.length;)if(10===u&&(f=(a?a[s]:0)||1),u=e.charCodeAt(o),38===u){const i=e.charCodeAt(o+1);if(9===i||10===i||12===i||32===i||38===i||60===i||Number.isNaN(i)||r&&i===r){c+=Su(u),f++;continue}const a=o+1;let s,l=a,g=a;if(35===i){g=++l;const t=e.charCodeAt(g);88===t||120===t?(s="hexadecimal",g=++l):s="decimal"}else s="named";let v="",y="",b="";const w="named"===s?Eu:"decimal"===s?xu:ku;for(g--;++g<=e.length;){const t=e.charCodeAt(g);if(!w(t))break;b+=Su(t),"named"===s&&bu.includes(b)&&(v=b,y=ca(b))}let x=59===e.charCodeAt(g);if(x){g++;const e="named"===s&&ca(b);e&&(v=b,y=e)}let k=1+g-a,E="";if(x||!1!==t.nonTerminated)if(b)if("named"===s){if(x&&!y)d(5,1);else if(v!==b&&(g=l+v.length,k=1+g-l,x=!1),!x){const r=v?1:3;if(t.attribute){const t=e.charCodeAt(g);61===t?(d(r,k),y=""):Eu(t)?y="":d(r,k)}else d(r,k)}E=y}else{x||d(2,k);let e=Number.parseInt(b,"hexadecimal"===s?16:10);if(Au(e))d(7,k),E=Su(65533);else if(e in wu)d(6,k),E=wu[e];else{let t="";Cu(e)&&d(6,k),e>65535&&(e-=65536,t+=Su(e>>>10|55296),e=56320|1023&e),E=t+Su(e)}}else"named"!==s&&d(4,k);else;if(E){m(),h=p(),o=g-1,f+=g-a+1,n.push(E);const r=p();r.offset++,t.reference&&t.reference.call(t.referenceContext,E,{start:h,end:r},e.slice(a-1,g)),h=r}else b=e.slice(a-1,g),c+=b,f+=b.length,o=g-1}else 10===u&&(l++,s++,f=0),Number.isNaN(u)?m():(c+=Su(u),f++);return n.join("");function p(){return{line:l,column:f,offset:o+((i?i.offset:0)||0)}}function d(e,r){let n;t.warning&&(n=p(),n.column+=r,n.offset+=r,t.warning.call(t.warningContext,Pu[e],n,e))}function m(){c&&(n.push(c),t.text&&t.text.call(t.textContext,c,{start:h,end:p()}),c="")}}function Au(e){return e>=55296&&e<=57343||e>1114111}function Cu(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}function Fu(e,t){return e=e.replace(t.subset?function(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(t.subset):/["&'<>`]/g,r),t.subset||t.escapeOnly?e:e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,r,n){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,n.charCodeAt(r+2),t)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,r);function r(e,r,n){return t.format(e.charCodeAt(0),n.charCodeAt(r+1),t)}}function Du(e){return"&#x"+e.toString(16).toUpperCase()+";"}const Ou=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);const i=Yr(t),a=n?-1:1;!function e(o,s,c){const u="object"==typeof o&&null!==o?o:{};let l;"string"==typeof u.type&&(l="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0,Object.defineProperty(h,"name",{value:"node ("+(f=u.type+(l?"<"+l+">":""),"[33m"+f+"[39m)")}));var f;return h;function h(){let u,l,f,h=[];if((!t||i(o,s,c[c.length-1]||null))&&(h=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(r(o,c)),false===h[0]))return h;if(o.children&&"skip"!==h[0])for(l=(n?o.children.length:-1)+a,f=c.concat(o);l>-1&&l<o.children.length;){if(u=e(o.children[l],l,f)(),false===u[0])return u;l="number"==typeof u[1]?u[1]:l+a}return h}}(e,null,[])()};const Ru={}.hasOwnProperty,Tu=/^[^\t\n\r "#'.<=>`}]+$/;Hu.peek=function(){return":"};const Iu={canContainEols:["textDirective"],enter:{directiveContainer:function(e){Lu.call(this,"containerDirective",e)},directiveContainerAttributes:zu,directiveContainerLabel:function(e){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},e)},directiveLeaf:function(e){Lu.call(this,"leafDirective",e)},directiveLeafAttributes:zu,directiveText:function(e){Lu.call(this,"textDirective",e)},directiveTextAttributes:zu},exit:{directiveContainer:Vu,directiveContainerAttributeClassValue:Nu,directiveContainerAttributeIdValue:Mu,directiveContainerAttributeName:$u,directiveContainerAttributeValue:Bu,directiveContainerAttributes:Uu,directiveContainerLabel:function(e){this.exit(e)},directiveContainerName:qu,directiveLeaf:Vu,directiveLeafAttributeClassValue:Nu,directiveLeafAttributeIdValue:Mu,directiveLeafAttributeName:$u,directiveLeafAttributeValue:Bu,directiveLeafAttributes:Uu,directiveLeafName:qu,directiveText:Vu,directiveTextAttributeClassValue:Nu,directiveTextAttributeIdValue:Mu,directiveTextAttributeName:$u,directiveTextAttributeValue:Bu,directiveTextAttributes:Uu,directiveTextName:qu}},ju={unsafe:[{character:"\r",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{character:"\n",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{before:"[^:]",character:":",after:"[A-Za-z]",inConstruct:["phrasing"]},{atBreak:!0,character:":",after:":"}],handlers:{containerDirective:Hu,leafDirective:Hu,textDirective:Hu}};function Lu(e,t){this.enter({type:e,name:"",attributes:{},children:[]},t)}function qu(e){this.stack[this.stack.length-1].name=this.sliceSerialize(e)}function zu(){this.setData("directiveAttributes",[]),this.buffer()}function Mu(e){this.getData("directiveAttributes").push(["id",_u(this.sliceSerialize(e))])}function Nu(e){this.getData("directiveAttributes").push(["class",_u(this.sliceSerialize(e))])}function Bu(e){const t=this.getData("directiveAttributes");t[t.length-1][1]=_u(this.sliceSerialize(e))}function $u(e){this.getData("directiveAttributes").push([this.sliceSerialize(e),""])}function Uu(){const e=this.getData("directiveAttributes"),t={};let r=-1;for(;++r<e.length;){const n=e[r];"class"===n[0]&&t.class?t.class+=" "+n[1]:t[n[0]]=n[1]}this.setData("directiveAttributes"),this.resume();this.stack[this.stack.length-1].attributes=t}function Vu(e){this.exit(e)}function Hu(e,t,r){const n=function(e){let t=0;"containerDirective"===e.type?(Ou(e,"containerDirective",r),t+=3):t="leafDirective"===e.type?2:1;return":".repeat(t);function r(e,r){let n=r.length,i=0;for(;n--;)"containerDirective"===r[n].type&&i++;i>t&&(t=i)}}(e),i=r.enter(e.type);let a=n+(e.name||"")+function(e,t){let r=e;if("containerDirective"===e.type){const t=(e.children||[])[0];if(!Qu(t))return"";r=t}const n=t.enter("label"),i=t.enter(e.type+"Label"),a=Ds(r,t,{before:"[",after:"]"});return i(),n(),a?"["+a+"]":""}(e,r)+function(e,t){const r=yc(t),n="textDirective"===e.type?[r]:[r,"\n","\r"],i=e.attributes||{},a=[];let o,s,c,u;for(u in i)if(Ru.call(i,u)&&void 0!==i[u]&&null!==i[u]){const e=String(i[u]);if("id"===u)c=Tu.test(e)?"#"+e:l("id",e);else if("class"===u){const t=e.split(/[\t\n\r ]+/g),r=[],n=[];let i=-1;for(;++i<t.length;)(Tu.test(t[i])?n:r).push(t[i]);o=r.length>0?l("class",r.join(" ")):"",s=n.length>0?"."+n.join("."):""}else a.push(l(u,e))}o&&a.unshift(o);s&&a.unshift(s);c&&a.unshift(c);return a.length>0?"{"+a.join(" ")+"}":"";function l(e,t){return e+(t?"="+r+function(e,t){return Fu(e,Object.assign({format:Du},t))}(t,{subset:n})+r:"")}}(e,r);if("containerDirective"===e.type){const t=function(e,t){Qu((e.children||[])[0])&&(e=Object.assign({},e,{children:e.children.slice(1)}));return ms(e,t)}(e,r);t&&(a+="\n"+t),a+="\n"+n}return i(),a}function Qu(e){return Boolean(e&&"paragraph"===e.type&&e.data&&e.data.directiveLabel)}var Gu=Object.freeze({__proto__:null,default:function(){const e=this.data();function t(t,r){(e[t]?e[t]:e[t]=[]).push(r)}t("micromarkExtensions",{text:{58:gu},flow:{58:[uu,pu]}}),t("fromMarkdownExtensions",Iu),t("toMarkdownExtensions",ju)}}),Wu=le(Gu);const Ku={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533};var Ju=Object.freeze({__proto__:null,remarkHeadingId:function(){const e=this.data();function t(t,r){(e[t]||(e[t]=[])).push(r)}return t("micromarkExtensions",function(){const e={text:{[Ku.leftCurlyBrace]:{name:"headingIdMaybeStart",tokenize:(e,t,r)=>function(n){return e.attempt({tokenize(e,t,r){return function(t){if(t!==Ku.leftCurlyBrace)throw new Error(`Unexpected code ${t}`);return e.enter("id"),e.enter("idMarker"),e.consume(t),n};function n(t){return t!==Ku.numberSign?r(t):(e.consume(t),e.exit("idMarker"),e.enter("idString"),e.enter("chunkString",{contentType:"string"}),i)}function i(n){return[Ku.carriageReturn,Ku.lineFeed,Ku.carriageReturnLineFeed,null,Ku.backslash,Ku.leftCurlyBrace].includes(n)?r(n):n===Ku.rightCurlyBrace?(e.exit("chunkString"),e.exit("idString"),e.enter("idMarker"),e.consume(n),e.exit("idMarker"),e.exit("id"),t):(e.consume(n),i)}}},t,r)(n)}}}};return e}()),t("fromMarkdownExtensions",{enter:{idString(e){this.enter({type:"idString",value:null},e),this.buffer()}},exit:{idString(e){const t=this.resume();this.exit(e).value=t}}}),function(e){Ps(e,"idString",((e,t,r)=>{if(!r)throw new Error("Unexpected idString under no parent.");if("heading"!==r.type)throw new Error(`Unexpected node ${e} under ${r}`)})),Ps(e,"heading",(e=>{const t=e.children.filter((e=>"idString"===e.type));if(0==t.length)return;if(t.length>1)throw new Error(`Found ${t.length} ids under heading ${e}.`);const r=t[0];if(r.value&&r.value.length>0){e.data||(e.data={}),e.data.hProperties||(e.data.hProperties={}),e.data.id=e.data.hProperties.id=r.value,r.value="";const t=e.children.indexOf(r);if(t>=1){const r=e.children[t-1];"text"===r.type&&(r.value=r.value.trimEnd())}e.children.splice(t,1)}}))}}}),Yu=le(Ju),Xu=le(en),Zu={exports:{}},el=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}},tl=el,rl=Object.prototype.toString;function nl(e){return"[object Array]"===rl.call(e)}function il(e){return void 0===e}function al(e){return null!==e&&"object"==typeof e}function ol(e){if("[object Object]"!==rl.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function sl(e){return"[object Function]"===rl.call(e)}function cl(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),nl(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var ul={isArray:nl,isArrayBuffer:function(e){return"[object ArrayBuffer]"===rl.call(e)},isBuffer:function(e){return null!==e&&!il(e)&&null!==e.constructor&&!il(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:al,isPlainObject:ol,isUndefined:il,isDate:function(e){return"[object Date]"===rl.call(e)},isFile:function(e){return"[object File]"===rl.call(e)},isBlob:function(e){return"[object Blob]"===rl.call(e)},isFunction:sl,isStream:function(e){return al(e)&&sl(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:cl,merge:function e(){var t={};function r(r,n){ol(t[n])&&ol(r)?t[n]=e(t[n],r):ol(r)?t[n]=e({},r):nl(r)?t[n]=r.slice():t[n]=r}for(var n=0,i=arguments.length;n<i;n++)cl(arguments[n],r);return t},extend:function(e,t,r){return cl(t,(function(t,n){e[n]=r&&"function"==typeof t?tl(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}},ll=ul;function fl(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var hl=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(ll.isURLSearchParams(t))n=t.toString();else{var i=[];ll.forEach(t,(function(e,t){null!=e&&(ll.isArray(e)?t+="[]":e=[e],ll.forEach(e,(function(e){ll.isDate(e)?e=e.toISOString():ll.isObject(e)&&(e=JSON.stringify(e)),i.push(fl(t)+"="+fl(e))})))})),n=i.join("&")}if(n){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},pl=ul;function dl(){this.handlers=[]}dl.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},dl.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},dl.prototype.forEach=function(e){pl.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var ml=dl,gl=ul,vl=function(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},yl=vl,bl=function(e,t,r,n,i){var a=new Error(e);return yl(a,t,r,n,i)},wl=bl,xl=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(wl("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)},kl=ul,El=kl.isStandardBrowserEnv()?{write:function(e,t,r,n,i,a){var o=[];o.push(e+"="+encodeURIComponent(t)),kl.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),kl.isString(n)&&o.push("path="+n),kl.isString(i)&&o.push("domain="+i),!0===a&&o.push("secure"),document.cookie=o.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},Sl=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)},Pl=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},_l=function(e,t){return e&&!Sl(t)?Pl(e,t):t},Al=ul,Cl=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],Fl=ul,Dl=Fl.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=Fl.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0};function Ol(e){this.message=e}Ol.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Ol.prototype.__CANCEL__=!0;var Rl,Tl=Ol,Il=ul,jl=xl,Ll=El,ql=hl,zl=_l,Ml=function(e){var t,r,n,i={};return e?(Al.forEach(e.split("\n"),(function(e){if(n=e.indexOf(":"),t=Al.trim(e.substr(0,n)).toLowerCase(),r=Al.trim(e.substr(n+1)),t){if(i[t]&&Cl.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([r]):i[t]?i[t]+", "+r:r}})),i):i},Nl=Dl,Bl=bl,$l=Mf,Ul=Tl,Vl=function(e){return new Promise((function(t,r){var n,i=e.data,a=e.headers,o=e.responseType;function s(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}Il.isFormData(i)&&delete a["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var u=e.auth.username||"",l=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.Authorization="Basic "+btoa(u+":"+l)}var f=zl(e.baseURL,e.url);function h(){if(c){var n="getAllResponseHeaders"in c?Ml(c.getAllResponseHeaders()):null,i={data:o&&"text"!==o&&"json"!==o?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c};jl((function(e){t(e),s()}),(function(e){r(e),s()}),i),c=null}}if(c.open(e.method.toUpperCase(),ql(f,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(h)},c.onabort=function(){c&&(r(Bl("Request aborted",e,"ECONNABORTED",c)),c=null)},c.onerror=function(){r(Bl("Network Error",e,null,c)),c=null},c.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||$l.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(Bl(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},Il.isStandardBrowserEnv()){var p=(e.withCredentials||Nl(f))&&e.xsrfCookieName?Ll.read(e.xsrfCookieName):void 0;p&&(a[e.xsrfHeaderName]=p)}"setRequestHeader"in c&&Il.forEach(a,(function(e,t){void 0===i&&"content-type"===t.toLowerCase()?delete a[t]:c.setRequestHeader(t,e)})),Il.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),o&&"json"!==o&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(n=function(e){c&&(r(!e||e&&e.type?new Ul("canceled"):e),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n))),i||(i=null),c.send(i)}))},Hl={exports:{}},Ql=M.default,Gl=Ql.URL,Wl=B.default,Kl=$.default,Jl=U.default.Writable,Yl=N.default,Xl=function(){if(!Rl){try{Rl=require("debug")("follow-redirects")}catch(e){}"function"!=typeof Rl&&(Rl=function(){})}Rl.apply(null,arguments)},Zl=["abort","aborted","connect","error","socket","timeout"],ef=Object.create(null);Zl.forEach((function(e){ef[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}}));var tf=ff("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),rf=ff("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),nf=ff("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),af=ff("ERR_STREAM_WRITE_AFTER_END","write after end");function of(e,t){Jl.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(e){r._processResponse(e)},this._performRequest()}function sf(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach((function(n){var i=n+":",a=r[i]=e[n],o=t[n]=Object.create(a);Object.defineProperties(o,{request:{value:function(e,n,a){if("string"==typeof e){var o=e;try{e=uf(new Gl(o))}catch(t){e=Ql.parse(o)}}else Gl&&e instanceof Gl?e=uf(e):(a=n,n=e,e={protocol:i});return"function"==typeof n&&(a=n,n=null),(n=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,n)).nativeProtocols=r,Yl.equal(n.protocol,i,"protocol mismatch"),Xl("options",n),new of(n,a)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,r){var n=o.request(e,t,r);return n.end(),n},configurable:!0,enumerable:!0,writable:!0}})})),t}function cf(){}function uf(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(t.port=Number(e.port)),t}function lf(e,t){var r;for(var n in t)e.test(n)&&(r=t[n].toString().trim(),delete t[n]);return r}function ff(e,t){function r(e){Error.captureStackTrace(this,this.constructor),e?(this.message=t+": "+e.message,this.cause=e):this.message=t}return r.prototype=new Error,r.prototype.constructor=r,r.prototype.name="Error ["+e+"]",r.prototype.code=e,r}function hf(e){for(var t=0;t<Zl.length;t++)e.removeListener(Zl[t],ef[Zl[t]]);e.on("error",cf),e.abort()}of.prototype=Object.create(Jl.prototype),of.prototype.abort=function(){hf(this._currentRequest),this.emit("abort")},of.prototype.write=function(e,t,r){if(this._ending)throw new af;if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");"function"==typeof t&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new nf),this.abort()):r&&r()},of.prototype.end=function(e,t,r){if("function"==typeof e?(r=e,e=t=null):"function"==typeof t&&(r=t,t=null),e){var n=this,i=this._currentRequest;this.write(e,t,(function(){n._ended=!0,i.end(null,null,r)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,r)},of.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},of.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},of.prototype.setTimeout=function(e,t){var r=this;function n(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function i(t){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout((function(){r.emit("timeout"),a()}),e),n(t)}function a(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",a),r.removeListener("error",a),r.removeListener("response",a),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",a),this.on("error",a),this.on("response",a),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){of.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(of.prototype,e,{get:function(){return this._currentRequest[e]}})})),of.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},of.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=Ql.format(this._options),n._redirectable=this;for(var i=0;i<Zl.length;i++)n.on(Zl[i],ef[Zl[i]]);if(this._isRedirect){var a=0,o=this,s=this._requestBodyBuffers;!function e(t){if(n===o._currentRequest)if(t)o.emit("error",t);else if(a<s.length){var r=s[a++];n.finished||n.write(r.data,r.encoding,e)}else o._ended&&n.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+e))},of.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(r&&!1!==this._options.followRedirects&&t>=300&&t<400){if(hf(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new rf);((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],lf(/^content-/i,this._options.headers));var n,i=lf(/^host$/i,this._options.headers),a=Ql.parse(this._currentUrl),o=i||a.host,s=/^\w+:/.test(r)?this._currentUrl:Ql.format(Object.assign(a,{host:o}));try{n=Ql.resolve(s,r)}catch(e){return void this.emit("error",new tf(e))}Xl("redirecting to",n),this._isRedirect=!0;var c=Ql.parse(n);if(Object.assign(this._options,c),c.host===o||function(e,t){const r=e.length-t.length-1;return r>0&&"."===e[r]&&e.endsWith(t)}(c.host,o)||lf(/^authorization$/i,this._options.headers),"function"==typeof this._options.beforeRedirect){var u={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,u)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new tf(e))}}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]},Hl.exports=sf({http:Wl,https:Kl}),Hl.exports.wrap=sf;var pf="0.24.0",df=ul,mf=xl,gf=_l,vf=hl,yf=B.default,bf=$.default,wf=Hl.exports.http,xf=Hl.exports.https,kf=M.default,Ef=V.default,Sf=pf,Pf=bl,_f=vl,Af=Mf,Cf=Tl,Ff=/https:?/;function Df(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(e){e.headers.host=e.host,Df(e,t,e.href)}}var Of=function(e){return new Promise((function(t,r){var n;function i(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}var a=function(e){i(),t(e)},o=function(e){i(),r(e)},s=e.data,c=e.headers,u={};if(Object.keys(c).forEach((function(e){u[e.toLowerCase()]=e})),"user-agent"in u?c[u["user-agent"]]||delete c[u["user-agent"]]:c["User-Agent"]="axios/"+Sf,s&&!df.isStream(s)){if(Buffer.isBuffer(s));else if(df.isArrayBuffer(s))s=Buffer.from(new Uint8Array(s));else{if(!df.isString(s))return o(Pf("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));s=Buffer.from(s,"utf-8")}u["content-length"]||(c["Content-Length"]=s.length)}var l=void 0;e.auth&&(l=(e.auth.username||"")+":"+(e.auth.password||""));var f=gf(e.baseURL,e.url),h=kf.parse(f),p=h.protocol||"http:";if(!l&&h.auth){var d=h.auth.split(":");l=(d[0]||"")+":"+(d[1]||"")}l&&u.authorization&&delete c[u.authorization];var m=Ff.test(p),g=m?e.httpsAgent:e.httpAgent,v={path:vf(h.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:c,agent:g,agents:{http:e.httpAgent,https:e.httpsAgent},auth:l};e.socketPath?v.socketPath=e.socketPath:(v.hostname=h.hostname,v.port=h.port);var y,b=e.proxy;if(!b&&!1!==b){var w=p.slice(0,-1)+"_proxy",x=process.env[w]||process.env[w.toUpperCase()];if(x){var k=kf.parse(x),E=process.env.no_proxy||process.env.NO_PROXY,S=!0;if(E){var P=E.split(",").map((function(e){return e.trim()}));S=!P.some((function(e){return!!e&&("*"===e||("."===e[0]&&h.hostname.substr(h.hostname.length-e.length)===e||h.hostname===e))}))}if(S&&(b={host:k.hostname,port:k.port,protocol:k.protocol},k.auth)){var _=k.auth.split(":");b.auth={username:_[0],password:_[1]}}}}b&&(v.headers.host=h.hostname+(h.port?":"+h.port:""),Df(v,b,p+"//"+h.hostname+(h.port?":"+h.port:"")+v.path));var A=m&&(!b||Ff.test(b.protocol));e.transport?y=e.transport:0===e.maxRedirects?y=A?bf:yf:(e.maxRedirects&&(v.maxRedirects=e.maxRedirects),y=A?xf:wf),e.maxBodyLength>-1&&(v.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(v.insecureHTTPParser=e.insecureHTTPParser);var C=y.request(v,(function(t){if(!C.aborted){var r=t,n=t.req||C;if(204!==t.statusCode&&"HEAD"!==n.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(Ef.createUnzip()),delete t.headers["content-encoding"]}var i={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:n};if("stream"===e.responseType)i.data=r,mf(a,o,i);else{var s=[],c=0;r.on("data",(function(t){s.push(t),c+=t.length,e.maxContentLength>-1&&c>e.maxContentLength&&(r.destroy(),o(Pf("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,n)))})),r.on("error",(function(t){C.aborted||o(_f(t,e,null,n))})),r.on("end",(function(){var t=Buffer.concat(s);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(t=df.stripBOM(t))),i.data=t,mf(a,o,i)}))}}}));if(C.on("error",(function(t){C.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||o(_f(t,e,null,C))})),e.timeout){var F=parseInt(e.timeout,10);if(isNaN(F))return void o(Pf("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",C));C.setTimeout(F,(function(){C.abort();var t=e.transitional||Af.transitional;o(Pf("timeout of "+F+"ms exceeded",e,t.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",C))}))}(e.cancelToken||e.signal)&&(n=function(e){C.aborted||(C.abort(),o(!e||e&&e.type?new Cf("canceled"):e))},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n))),df.isStream(s)?s.on("error",(function(t){o(_f(t,e,null,C))})).pipe(C):C.end(s)}))},Rf=ul,Tf=function(e,t){gl.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},If=vl,jf={"Content-Type":"application/x-www-form-urlencoded"};function Lf(e,t){!Rf.isUndefined(e)&&Rf.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var qf,zf={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:("undefined"!=typeof XMLHttpRequest?qf=Vl:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(qf=Of),qf),transformRequest:[function(e,t){return Tf(t,"Accept"),Tf(t,"Content-Type"),Rf.isFormData(e)||Rf.isArrayBuffer(e)||Rf.isBuffer(e)||Rf.isStream(e)||Rf.isFile(e)||Rf.isBlob(e)?e:Rf.isArrayBufferView(e)?e.buffer:Rf.isURLSearchParams(e)?(Lf(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Rf.isObject(e)||t&&"application/json"===t["Content-Type"]?(Lf(t,"application/json"),function(e,t,r){if(Rf.isString(e))try{return(t||JSON.parse)(e),Rf.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||zf.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&Rf.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw If(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Rf.forEach(["delete","get","head"],(function(e){zf.headers[e]={}})),Rf.forEach(["post","put","patch"],(function(e){zf.headers[e]=Rf.merge(jf)}));var Mf=zf,Nf=ul,Bf=Mf,$f=function(e){return!(!e||!e.__CANCEL__)},Uf=ul,Vf=function(e,t,r){var n=this||Bf;return Nf.forEach(r,(function(r){e=r.call(n,e,t)})),e},Hf=$f,Qf=Mf,Gf=Tl;function Wf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gf("canceled")}var Kf=ul,Jf=function(e,t){t=t||{};var r={};function n(e,t){return Kf.isPlainObject(e)&&Kf.isPlainObject(t)?Kf.merge(e,t):Kf.isPlainObject(t)?Kf.merge({},t):Kf.isArray(t)?t.slice():t}function i(r){return Kf.isUndefined(t[r])?Kf.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function a(e){if(!Kf.isUndefined(t[e]))return n(void 0,t[e])}function o(r){return Kf.isUndefined(t[r])?Kf.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function s(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s};return Kf.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,n=t(e);Kf.isUndefined(n)&&t!==s||(r[e]=n)})),r},Yf=pf,Xf={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Xf[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var Zf={};Xf.transitional=function(e,t,r){function n(e,t){return"[Axios v"+Yf+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,i,a){if(!1===e)throw new Error(n(i," has been removed"+(t?" in "+t:"")));return t&&!Zf[i]&&(Zf[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,a)}};var eh={assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var a=n[i],o=t[a];if(o){var s=e[a],c=void 0===s||o(s,a,e);if(!0!==c)throw new TypeError("option "+a+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+a)}},validators:Xf},th=ul,rh=hl,nh=ml,ih=function(e){return Wf(e),e.headers=e.headers||{},e.data=Vf.call(e,e.data,e.headers,e.transformRequest),e.headers=Uf.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Uf.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||Qf.adapter)(e).then((function(t){return Wf(e),t.data=Vf.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return Hf(t)||(Wf(e),t&&t.response&&(t.response.data=Vf.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},ah=Jf,oh=eh,sh=oh.validators;function ch(e){this.defaults=e,this.interceptors={request:new nh,response:new nh}}ch.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=ah(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&oh.assertOptions(t,{silentJSONParsing:sh.transitional(sh.boolean),forcedJSONParsing:sh.transitional(sh.boolean),clarifyTimeoutError:sh.transitional(sh.boolean)},!1);var r=[],n=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(n=n&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!n){var o=[ih,void 0];for(Array.prototype.unshift.apply(o,r),o=o.concat(a),i=Promise.resolve(e);o.length;)i=i.then(o.shift(),o.shift());return i}for(var s=e;r.length;){var c=r.shift(),u=r.shift();try{s=c(s)}catch(e){u(e);break}}try{i=ih(s)}catch(e){return Promise.reject(e)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},ch.prototype.getUri=function(e){return e=ah(this.defaults,e),rh(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},th.forEach(["delete","get","head","options"],(function(e){ch.prototype[e]=function(t,r){return this.request(ah(r||{},{method:e,url:t,data:(r||{}).data}))}})),th.forEach(["post","put","patch"],(function(e){ch.prototype[e]=function(t,r,n){return this.request(ah(n||{},{method:e,url:t,data:r}))}}));var uh=ch,lh=Tl;function fh(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new lh(e),t(r.reason))}))}fh.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},fh.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},fh.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},fh.source=function(){var e;return{token:new fh((function(t){e=t})),cancel:e}};var hh=fh,ph=ul,dh=el,mh=uh,gh=Jf;var vh=function e(t){var r=new mh(t),n=dh(mh.prototype.request,r);return ph.extend(n,mh.prototype,r),ph.extend(n,r),n.create=function(r){return e(gh(t,r))},n}(Mf);vh.Axios=mh,vh.Cancel=Tl,vh.CancelToken=hh,vh.isCancel=$f,vh.VERSION=pf,vh.all=function(e){return Promise.all(e)},vh.spread=function(e){return function(t){return e.apply(null,t)}},vh.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError},Zu.exports=vh,Zu.exports.default=vh;var yh=Zu.exports;function bh(e){return e}function wh(e){var t=[];if(e)return Array.isArray(e)?e:("object"==typeof e&&Object.keys(e).forEach((function(r){"number"==typeof r&&(t[r]=e[r])})),t)}function xh(e){if(yh.isCancel(e))return Promise.reject(e);var t=Eh(e)||{};if(t.currentRetryAttempt=t.currentRetryAttempt||0,t.retry="number"==typeof t.retry?t.retry:3,t.retryDelay="number"==typeof t.retryDelay?t.retryDelay:100,t.instance=t.instance||yh,t.backoffType=t.backoffType||"exponential",t.httpMethodsToRetry=wh(t.httpMethodsToRetry)||["GET","HEAD","PUT","OPTIONS","DELETE"],t.noResponseRetries="number"==typeof t.noResponseRetries?t.noResponseRetries:2,t.checkRetryAfter="boolean"!=typeof t.checkRetryAfter||t.checkRetryAfter,t.maxRetryAfter="number"==typeof t.maxRetryAfter?t.maxRetryAfter:3e5,t.statusCodesToRetry=wh(t.statusCodesToRetry)||[[100,199],[429,429],[500,599]],e.config=e.config||{},e.config.raxConfig=Object.assign({},t),!(t.shouldRetry||kh)(e))return Promise.reject(e);var r=new Promise((function(r,n){var i=0;if(t.checkRetryAfter&&e.response&&e.response.headers["retry-after"]){var a=function(e){var t=Number(e);if(!Number.isNaN(t))return 1e3*t;var r=Date.parse(e);return Number.isNaN(r)?void 0:r-Date.now()}(e.response.headers["retry-after"]);if(!(a&&a>0&&a<=t.maxRetryAfter))return n(e);i=a}e.config.raxConfig.currentRetryAttempt+=1;var o=e.config.raxConfig.currentRetryAttempt;0===i&&(i="linear"===t.backoffType?1e3*o:"static"===t.backoffType?t.retryDelay:(Math.pow(2,o)-1)/2*1e3,"number"==typeof t.maxRetryDelay&&(i=Math.min(i,t.maxRetryDelay))),setTimeout(r,i)})),n=t.onRetryAttempt?Promise.resolve(t.onRetryAttempt(e)):Promise.resolve();return Promise.resolve().then((function(){return r})).then((function(){return n})).then((function(){return t.instance.request(e.config)}))}function kh(e){var t=e.config.raxConfig;if(!t||0===t.retry)return!1;if(!e.response&&(t.currentRetryAttempt||0)>=t.noResponseRetries)return!1;if(!e.config.method||t.httpMethodsToRetry.indexOf(e.config.method.toUpperCase())<0)return!1;if(e.response&&e.response.status){for(var r=!1,n=0,i=t.statusCodesToRetry;n<i.length;n+=1){var a=i[n],o=e.response.status;if(o>=a[0]&&o<=a[1]){r=!0;break}}if(!r)return!1}return t.currentRetryAttempt=t.currentRetryAttempt||0,!(t.currentRetryAttempt>=t.retry)}function Eh(e){if(e&&e.config)return e.config.raxConfig}var Sh=Object.freeze({__proto__:null,attach:function(e){return(e=e||yh).interceptors.response.use(bh,xh)},detach:function(e,t){(t=t||yh).interceptors.response.eject(e)},shouldRetryRequest:kh,getConfig:Eh}),Ph=le(Sh);!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=q.default,r=vr,n=Rr.exports,i=Nr.exports,a=Bn,o=Ei,s=Eo,c=Ws,u=Ys,l=Xs,f=wc,h=xc,p=kc,d=Ec,m=Sc,g=N.default,v=Pc,y=_c,b=Ac,w=Cc,x=Fc,k=Dc,E=Oc,S=Tc,P=jc,_=Lc,A=Nc,C=au,F=Wu,D=Yu,O=Xu,R=j.default,T=yh,I=Ph,L=jr.exports;function z(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var M=z(r),B=z(n),$=z(i),U=z(s),V=z(c),H=z(u),Q=z(g),G=z(C),W=z(F),K=z(R),J=z(T),Y=z(I),X=z(L);function Z(e){return"string"==typeof e&&e.startsWith("@encrypted:")}function ee(e,t){return B.default.encrypt(e,t).toString()}function te(e,t){try{return B.default.decrypt(e,t).toString($.default)}catch{return""}}var re=Object.freeze({__proto__:null,encrypt:ee,decrypt:te});class ne{constructor(e,t,r){this.key=void 0,this.values=void 0,this.schema=void 0,this.values=e,this.schema=t,this.key=r}setKey(e){this.key=e}getValues(){return this.values}setValues(e){const r=new M.default({removeAdditional:!0,useDefaults:!0,allErrors:!0}).compile(this.schema);if(!r(e=t.cloneDeep(e)))for(const n of r.errors)e=t.omit(e,n.dataPath.substr(1).split("/"));this.values=e}getValue(e,r){return t.get(this.values,e,r)}setValue(e,r){return t.set(this.values,e,r)}toObject(){const e=new M.default({removeAdditional:!0,useDefaults:!0,allErrors:!0});e.removeKeyword("default"),e.addKeyword("default",{validate:(e,r,n,i,a,o,s)=>(t.isEqual(e,r)&&(delete a[o],t.isEmpty(a)&&function(e,r){const n=[];let i=e;for(let e=0;e<r.length-1;e++)n.push(i),i=i[r[e]];for(let e=r.length-2;e>=0;e--)t.isEmpty(n[e][r[e]])&&delete n[e][r[e]]}(s,t.toPath(i.substr(1)))),!0),modifying:!0,errors:!1}),e.addKeyword("encrypt",{validate:(e,r,n,i,a,o)=>(this.key&&e&&!Z(r)&&a&&o&&t.set(a,o,"@encrypted:"+ee(r,this.key)),!0),modifying:!0,errors:!1});const r=e.compile(this.schema),n=t.cloneDeep(this.values);return r(n),n}static createFromObject(e,r,n){const i=new M.default({removeAdditional:!0,useDefaults:!0,allErrors:!0});i.addKeyword("encrypt",{validate:(e,r,i,a,o,s)=>(n&&e&&Z(r)&&o&&s&&t.set(o,s,te(r.substr(11),n)),!0),modifying:!0,errors:!1});const a=i.compile(r);if(!a(e))for(const r of a.errors)e=t.omit(e,r.dataPath.substr(1).split("/"));return new this(e,r,n)}}class ie extends ne{constructor(){super(...arguments),this.pluginsConfig={}}getStructure(e){return this.getValue(["structure",e])}getPluginConfig(e,r){if(!this.pluginsConfig[e]){const n=this.getValue(["pluginsConfig",e],{});this.pluginsConfig[e]=ne.createFromObject(t.cloneDeep(n),r,this.key+":"+e)}return this.pluginsConfig[e]}setPluginConfig(e,r){const n=r.toObject();t.isEmpty(n)?t.unset(this.values,["pluginsConfig",e]):this.setValue(["pluginsConfig",e],n),delete this.pluginsConfig[e]}static createFromObject(e){return super.createFromObject(e,ie.schema)}}ie.file="book.json",ie.schema={title:"TopWrite Configuration",type:"object",properties:{root:{type:"string",title:"Path from the root folder containing the book's content"},title:{type:"string",title:"Title of the book"},author:{type:"object",title:"attr of the author",properties:{name:{type:"string"},email:{type:"string"},home:{type:"string"}}},theme:{type:"string",title:"Name of the theme",default:"default"},themeConfig:{type:"object",title:"Configuration for theme",properties:{defaultMode:{type:"string",title:"Default mode form theme",default:"light"},primaryColor:{type:"string",title:"Primary Color form theme",default:"#3c60ff"}},default:{}},plugins:{type:"array",items:{type:"string"},default:[]},pluginsConfig:{type:"object",title:"Configuration for plugins",default:{}},structure:{type:"object",properties:{langs:{default:"LANGS.md",type:"string",title:"File to use as languages index",pattern:"^[a-zA-Z-._\\d,\\s]+$"},readme:{default:"README.md",type:"string",title:"File to use as preface",pattern:"^[a-zA-Z-._\\d,\\s]+$"},summary:{default:"SUMMARY.md",type:"string",title:"File to use as table of contents",pattern:"^[a-zA-Z-._\\d,\\s]+$"}},default:{}},pdf:{type:"object",title:"PDF specific configurations",properties:{fontFamily:{type:"string",default:"Microsoft Yahei",title:"Font family for the PDF output"},margin:{type:"object",title:"Margins (unit: pt)",properties:{right:{type:"integer",title:"Right Margin",minimum:0,maximum:100,default:30},left:{type:"integer",title:"Left Margin",minimum:0,maximum:100,default:30},top:{type:"integer",title:"Top Margin",minimum:0,maximum:100,default:40},bottom:{type:"integer",title:"Bottom Margin",minimum:0,maximum:100,default:40}},default:{}},paperSize:{type:"string",enum:["a0","a1","a2","a3","a4","a5","a6","b0","b1","b2","b3","b4","b5","b6","legal","letter"],default:"a4",title:"Paper size for the PDF"},chapterMark:{type:"string",enum:["pagebreak","rule","both","none"],default:"pagebreak",title:"How to mark detected chapters"},pageBreaksBefore:{type:"string",default:"/",title:'An XPath expression. Page breaks are inserted before the specified elements. To disable use the expression: "/"'},pageNumbers:{type:"boolean",default:!0,title:"Add page numbers to the bottom of every page"}},default:{}}},required:[]};class ae{constructor(e){void 0===e&&(e=[]),this.data=void 0,this.data="string"==typeof e?e.split(".").map((e=>parseInt(e,10))):e}getParent(){return new ae(this.data.slice(0,-1))}createChild(e){return new ae(this.data.concat(e))}isDescendant(e){return e.toString().startsWith(this.toString()+".")}getNext(){const e=[...this.data];return e[e.length-1]++,new ae(e)}getDepth(){return this.data.length-1}eq(e){return this.toString()===e.toString()}getLeafIndex(){return this.data[this.data.length-1]-1}toString(){return this.data.join(".")}static compare(e,t){for(let r=0;r<Math.max(e.data.length,t.data.length);r++){let n=e.data[r]||0,i=t.data[r]||0;if(n>i)return 1;if(i>n)return-1}return 0}}class oe{constructor(e){let{title:t,ref:r,path:n,children:i=[]}=e;this.level=void 0,this.title=void 0,this.ref=void 0,this.path=void 0,this.children=void 0,this.title=t,this.ref=r,this.path=n,this.children=i,this.level=new ae}getLevel(){return this.level}getTitle(){return this.title}getRef(){return this.ref}getPath(){return this.path?this.path:this.ref}getArticles(){return this.children}getDepth(){return this.getLevel().getDepth()}createChildLevel(){return this.level.createChild(this.children.length+1)}indexLevels(e){e?this.level=e:e=this.level;for(const[t,r]of this.children.entries())r.indexLevels(e.createChild(t+1))}static findArticle(e,t){return e.getArticles().reduce(((e,r)=>e||(t(r)?r:oe.findArticle(r,t))),void 0)}static createFromObject(e){var t;const r=null==(t=e.children)?void 0:t.map((e=>oe.createFromObject(e)));return new oe({...e,children:r})}}class se{constructor(e,t,r){void 0===t&&(t=[]),this.level=void 0,this.id=void 0,this.title=void 0,this.articles=void 0,this.level=new ae,this.id=r,this.title=e,this.articles=t}getLevel(){return this.level}getTitle(){return this.title}getArticles(){return this.articles}createChildLevel(){return this.level.createChild(this.articles.length+1)}indexLevels(e){e?this.level=e:e=this.level;for(const[t,r]of this.articles.entries())r.indexLevels(e.createChild(t+1))}static createFormObject(e){var t;return new se(e.title,null==(t=e.articles)?void 0:t.map((e=>oe.createFromObject(e))),e.id)}}const ce={tokenize:function(e,t,r){function n(t){return t===d.codes.rightParenthesis?f(t):b.factoryDestination(e,i,r,p.types.resourceDestination,p.types.resourceDestinationLiteral,p.types.resourceDestinationLiteralMarker,p.types.resourceDestinationRaw,p.types.resourceDestinationString,m.constants.linkResourceDestinationBalanceMax)(t)}function i(t){return w.markdownLineEndingOrSpace(t)?y.factoryWhitespace(e,a)(t):f(t)}function a(t){return t===d.codes.quotationMark||t===d.codes.apostrophe||t===d.codes.leftParenthesis?k.factoryTitle(e,y.factoryWhitespace(e,o),r,p.types.resourceTitle,p.types.resourceTitleMarker,p.types.resourceTitleString)(t):o(t)}function o(t){return t===d.codes.equalsTo?(e.enter("resourceSize"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),s):f(t)}function s(t){return t===d.codes.lowercaseX?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),u):t===d.codes.rightParenthesis||w.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),y.factoryWhitespace(e,f)(t)):(e.enter("resourceSizeWidth"),e.enter(p.types.chunkString,{contentType:"string"}),c(t))}function c(t){return t===d.codes.rightParenthesis||w.markdownLineEndingOrSpace(t)?(e.exit(p.types.chunkString),e.exit("resourceSizeWidth"),e.exit("resourceSize"),y.factoryWhitespace(e,f)(t)):t===d.codes.lowercaseX?(e.exit(p.types.chunkString),e.exit("resourceSizeWidth"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),u):(e.consume(t),c)}function u(t){return t===d.codes.rightParenthesis||w.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),y.factoryWhitespace(e,f)(t)):(e.enter("resourceSizeHeight"),e.enter(p.types.chunkString,{contentType:"string"}),l(t))}function l(t){return t===d.codes.rightParenthesis||w.markdownLineEndingOrSpace(t)?(e.exit(p.types.chunkString),e.exit("resourceSizeHeight"),e.exit("resourceSize"),y.factoryWhitespace(e,f)(t)):(e.consume(t),l)}function f(n){return n===d.codes.rightParenthesis?(e.enter(p.types.resourceMarker),e.consume(n),e.exit(p.types.resourceMarker),e.exit(p.types.resource),t):r(n)}return function(t){return e.enter(p.types.resource),e.enter(p.types.resourceMarker),e.consume(t),e.exit(p.types.resourceMarker),y.factoryWhitespace(e,n)}}},ue={tokenize:function(e,t,r){const n=this;function i(e){return n.parser.defined.includes(v.normalizeIdentifier(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}return function(t){return Q.default.strictEqual(t,d.codes.leftSquareBracket,"expected left bracket"),x.factoryLabel.call(n,e,i,r,p.types.reference,p.types.referenceMarker,p.types.referenceString)(t)}}},le={tokenize:function(e,t,r){function n(n){return 93===n?(e.enter(p.types.referenceMarker),e.consume(n),e.exit(p.types.referenceMarker),e.exit(p.types.reference),t):r(n)}return function(t){return e.enter(p.types.reference),e.enter(p.types.referenceMarker),e.consume(t),e.exit(p.types.referenceMarker),n}}};var fe={name:"labelEnd",tokenize:function(e,t,r){const n=this;let i,a,o=n.events.length;for(;o--;)if((n.events[o][1].type===p.types.labelImage||n.events[o][1].type===p.types.labelLink)&&!n.events[o][1]._balanced){i=n.events[o][1];break}function s(e){return i._balanced=!0,r(e)}function c(r){return r===d.codes.leftParenthesis?e.attempt(ce,t,a?t:s)(r):r===d.codes.leftSquareBracket?e.attempt(ue,t,a?e.attempt(le,t,s):s)(r):a?t(r):s(r)}return function(t){return Q.default(t===d.codes.rightSquareBracket,"expected `]`"),i?i._inactive?s(t):(a=n.parser.defined.indexOf(v.normalizeIdentifier(n.sliceSerialize({start:i.end,end:n.now()})))>-1,e.enter(p.types.labelEnd),e.enter(p.types.labelMarker),e.consume(t),e.exit(p.types.labelMarker),e.exit(p.types.labelEnd),c):r(t)}},resolveTo:h.labelEnd.resolveTo,resolveAll:h.labelEnd.resolveAll};const he=(e,t,r)=>{const n=f.image(e,t,r);return e.width||e.height?n.replace(/\)$/," ="+(e.width||"")+(e.height?"x"+e.height:"")+")"):n};he.peek=f.image.peek;const pe=e=>{let t;switch(e){case"right":t="--: ";break;case"center":t=":-: ";break;default:t=""}return t},de={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(t===d.codes.greaterThan){const r=n.containerState;return Q.default(r,"expected `containerState` to be defined in container"),r.open||(e.enter(p.types.blockQuote,{_container:!0}),r.open=!0),e.enter(p.types.blockQuotePrefix),e.enter(p.types.blockQuoteMarker),e.consume(t),e.exit(p.types.blockQuoteMarker),_.factorySpace(e,i,p.types.whitespace)}return r(t)};function i(t){return t===d.codes.leftSquareBracket?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),a):s(t)}function a(t){return t===d.codes.rightSquareBracket||w.markdownLineEndingOrSpace(t)?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),s):(e.enter("blockQuoteType"),e.enter(p.types.chunkString,{contentType:"string"}),o(t))}function o(t){return t===d.codes.rightSquareBracket||w.markdownLineEndingOrSpace(t)?(e.exit(p.types.chunkString),e.exit("blockQuoteType"),e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),s):(e.consume(t),o)}function s(r){return w.markdownSpace(r)?(e.enter(p.types.blockQuotePrefixWhitespace),e.consume(r),e.exit(p.types.blockQuotePrefixWhitespace),e.exit(p.types.blockQuotePrefix),t):(e.exit(p.types.blockQuotePrefix),t(r))}},continuation:{tokenize:function(e,t,r){return _.factorySpace(e,e.attempt(de,t,r),p.types.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:m.constants.tabSize)}},exit:h.blockQuote.exit},me=function(e,t){void 0===t&&(t="text");let r="";return E.visit(e,t,(function(e){r+=e.value})),r},ge=/^\[toc(?:=(\d)(?:,(\d))?)?]$/im,ve=o.unified().use(U.default).use((function(){const e=this.data();e.micromarkExtensions=[],e.fromMarkdownExtensions=[],e.toMarkdownExtensions=[],e.toHastExtensions=[]})).use(W.default).use(G.default,["yaml"]).use(V.default).use(H.default).use(D.remarkHeadingId).use((function(){return this.data().toHastExtensions.push({xBlock:(e,t)=>e({},"x-block",{name:t.name,value:t.value,parameter:t.parameter}),xInline:(e,t)=>e({},"x-inline",{name:t.name,value:t.value})}),function(e){E.visit(e,((e,t,r)=>{if(null!==t&&null!==r)if((e=>"code"===e.type)(e)&&e.lang){const n=/\[([\w-_]+)(:([\w-_]+))?]/g.exec(e.lang);if(n){const i={type:"xBlock",name:n[1],parameter:n[3]||"",value:e.value,position:e.position};r.children.splice(t,1,i)}}else if((e=>"inlineCode"===e.type)(e)){const n=/^([^\s]+)\s(.*?)\s\1$/.exec(e.value);if(n){const i={type:"xInline",name:n[1],value:n[2],position:e.position};r.children.splice(t,1,i)}}}))}})).use((function(){const e=this.data();e.micromarkExtensions.push({text:{[d.codes.rightSquareBracket]:fe}}),e.fromMarkdownExtensions.push({enter:{resourceSizeWidth:function(){this.buffer()},resourceSizeHeight:function(){this.buffer()}},exit:{resourceSizeWidth:function(){const e=this.resume();this.stack[this.stack.length-1].width=e},resourceSizeHeight:function(){const e=this.resume();this.stack[this.stack.length-1].height=e}}}),e.toMarkdownExtensions.push({handlers:{image:he}}),e.toHastExtensions.push({image:(e,t)=>{const r={src:l.encode(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),r.width=t.width,r.height=t.height,e(t,"img",r)}})})).use((function(){return this.data().toMarkdownExtensions.push({handlers:{paragraph:(e,t,r)=>{const n=S.paragraph(e,t,r);return pe(e.align)+n},heading:(e,t,r)=>P.heading(e,t,r).replace(/^#+\s/,"$&"+pe(e.align))}}),function(e){E.visit(e,((e,t,r)=>{if((e=>"paragraph"===e.type||"heading"===e.type)(e)){const t=a.select("text",e);if(t){const n=t.value;n.startsWith("--: ")?e.align="right":n.startsWith(":-: ")?e.align="center":n.startsWith(":-- ")&&(e.align="left"),e.align&&(t.value=n.substr(4),r&&"listItem"===r.type?r.data={...r.data,hProperties:{className:"align-"+e.align}}:e.data={...e.data,hProperties:{className:"align-"+e.align}})}}}))}})).use((function(){const e=this.data();return e.toMarkdownExtensions.push({handlers:{blockquote:(e,t,r)=>{const n=A.blockquote(e,t,r);return e.variant?n.replace(/(^|\s+)>\s/,"$1> ["+e.variant+"] "):n}}}),e.micromarkExtensions.push({document:{[d.codes.greaterThan]:de}}),e.fromMarkdownExtensions.push({enter:{blockQuoteType:function(){this.buffer()}},exit:{blockQuoteType:function(){const e=this.resume();this.stack[this.stack.length-1].variant=e}}}),function(e){E.visit(e,"blockquote",(e=>{e.variant&&(e.data={...e.data,hProperties:{className:e.variant}})}))}})).use((function(){return function(e){E.visit(e,((e,t,r)=>{if(r&&"root"===r.type&&null!==t&&me(e).match(ge))return r.children.splice(t,1),[E.SKIP,t]}))}}));function ye(e){const t=[];for(const r of e.children){const e=r.children,n=a.select("paragraph:first-child>*",r);if(!n)continue;const i=me(n);if(!i)continue;const o=n.url?decodeURI(n.url):void 0;if(o&&o.match(/[\\:*?"<>|]/))continue;let s={title:i,ref:o};if(e.length>1){const t=e[e.length-1];O.is(t,"list")&&(s.children=ye(t))}t.push(s)}return t}const be=ve();class we{constructor(e){void 0===e&&(e=[]),this.parts=void 0,this.parts=e,this.indexLevels()}getParts(){return this.parts}getPart(e){return this.parts[e]}getLastPart(){return this.parts[this.parts.length-1]}getArticles(){const e=[];return this.getArticle((t=>(e.push(t),!1))),e}getArticle(e){return this.parts.reduce(((t,r)=>t||oe.findArticle(r,e)),void 0)}getByLevel(e){const t=t=>t.getLevel().eq(e);return this.parts.reduce(((e,r)=>e||(t(r)?r:oe.findArticle(r,t))),void 0)}getFirstPath(){const e=this.getArticle((e=>!!e.getPath()));if(e)return e.getPath()}getNextArticle(e){const t=e instanceof oe?e.getLevel():e;let r=!1;return this.getArticle((e=>!!r||(r=e.getLevel()==t,!1)))}getPrevArticle(e){const t=e instanceof oe?e.getLevel():e;let r;return this.getArticle((e=>e.getLevel()==t||(r=e,!1))),r}getParent(e){const t=(e instanceof oe?e.getLevel():e).getParent();if(t)return this.getByLevel(t)}indexLevels(){for(const[e,t]of this.parts.entries()){const r=new ae(String(e+1));t.indexLevels(r)}}isSinglePart(){return 1===this.parts.length&&!this.parts[0].title}isEmpty(){return this.isSinglePart()?0===this.parts[0].articles.length:0===this.parts.length}static createFromObject(e){return new we(e.map((e=>se.createFormObject(e))))}static createFromText(e){const t=function(e){const t=be.parse(e),r=[];let n;for(const e of t.children)if(O.is(e,"heading")&&[2,3].includes(e.depth)&&(n&&r.push(n),n={id:me(e,"idString").trim(),title:me(e).trim()}),O.is(e,"list")){const t=ye(e);n?n.articles=(n.articles||[]).concat(t):n={title:"",articles:t}}return n?r.push(n):r.push({title:""}),r}(e);return we.createFromObject(t)}static create(e){return"object"==typeof e?we.createFromObject(e):we.createFromText(e)}}class xe{constructor(e){let{host:t,preset:r}=e;this.host=void 0,this.preset=void 0,this.host=t,this.preset=r}getBuyUrl(e,t){return this.host+"/api/buy?book="+e.id+"&plugin="+t.name}async bought(e,t){try{return await J.default.get(this.host+"/api/bought?book="+e.id+"&plugin="+t.name),!0}catch{return!1}}async queryPlugins(e){let{page:t=1,...r}=e;const{data:n}=await J.default.get(this.host+"/api/query",{params:{...r,page:t}});return n}async getInstalled(e){const{config:t}=e,r=["theme-"+t.getValue("theme"),...t.getValue("plugins")],{data:n}=await J.default.get(this.host+"/api/installed",{params:{book:e.id,plugins:r.join(",")}}).catch((e=>{throw new Error("Plugins Check Failed:"+e.message)}));return n}}e.pluginCenter=void 0;class ke{constructor(e,t,r){this.flatColors=["#1abc9c","#2ecc71","#3498db","#9b59b6","#34495e","#16a085","#27ae60","#2980b9","#8e44ad","#2c3e50","#f1c40f","#e67e22","#e74c3c","#f39c12","#d35400","#c0392b"],this.letter=void 0,this.size=void 0,this.canvas=void 0,this.letter=e,this.size=t,this.canvas=r,this.generate()}toDataUrl(){return this.canvas.toDataURL()}generate(){const e=this.canvas.getContext("2d");if(!e)throw new Error("getContext failed");const t=this.letter[0].toUpperCase();e.fillStyle=this.flatColors[t.charCodeAt(0)%this.flatColors.length],e.fillRect(0,0,this.size,this.size),e.font=Math.round(this.size/2)+"px Roboto",e.textAlign="center",e.fillStyle="#FFFFFF",e.fillText(this.letter[0].toUpperCase(),this.size/2,this.size/1.5)}static create(e,t,r){return r||(r=function(e){const t=window.document.createElement("canvas");return t.width=e,t.height=e,t}(t)),new ke(e,t,r)}}const Ee=/^(?:\w+:)?\/\/(\S+)$/,Se=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Pe=/^[^\s\.]+\.\S{2,}$/;Y.default.attach(),J.default.defaults.maxContentLength=1/0,J.default.defaults.maxBodyLength=1/0,Object.defineProperty(e,"request",{enumerable:!0,get:function(){return J.default}}),e.BaseConfig=ne,e.Book=class{constructor(e,t,r){this.id=void 0,this.summary=void 0,this._config=void 0,this.id=e,this.summary=r,this.config=t}get config(){return this._config}set config(e){e.setKey(this.id+":config"),this._config=e}},e.Config=ie,e.File=class{constructor(e){let{path:t,content:r,meta:n={}}=e;this.path=void 0,this.content=void 0,this.meta=void 0,this.path=t,this.content=r,this.meta=n}getMeta(e,r){return t.get(this.meta,e,r)}relative(e){const t="/"===e.slice(-1);return(e=K.default.posix.relative(K.default.posix.dirname(this.path),e)||".")+(t?"/":"")}resolve(e){return K.default.posix.join(K.default.posix.dirname(this.path),e)}},e.LetterAvatar=ke,e.Level=ae,e.Summary=we,e.SummaryArticle=oe,e.SummaryPart=se,e.aes=re,e.createPluginCenter=function(t){return e.pluginCenter=new xe(t)},e.isEncryptedData=Z,e.isUrl=function(e){const t=e.match(Ee);if(!t)return!1;const r=t[1];return!!r&&(Se.test(r)||Pe.test(r))},e.markdown=ve,e.md5=function(e){return X.default(e).toString()}}(fe);class _h{name;version;path;hooks;config;constructor({name:e,version:t,path:r,hooks:n,config:i}){this.name=e,this.version=t,this.path=r,this.hooks=n,this.config=i}getHook(e){return this.hooks[e]}getContext(e){return{...e,getConfig:()=>e.book.config.getPluginConfig(this.name,this.config)}}}async function Ah(e,t){se.info(`installing plugin "${e.name}"`);const r=`npm install ${e.host}.tgz`,{error:n}=H.default.sync(r,{stdio:["inherit"],cwd:t,shell:!0});if(n)throw n;const i=j.default.join(t,"node_modules","topwrite-plugin-"+e.name),a=j.default.join(i,"dist","hooks.js");let o={};if(Q.existsSync(a)){o=new d.NodeVM({require:{builtin:["path/posix","crypto"]},sandbox:{URL:URL,URLSearchParams:URLSearchParams}}).runFile(a)}const s=j.default.join(i,"config.json");let c={};return Q.existsSync(s)&&(c=require(s)),se.info(`plugin "${e.name}@${e.version}" installed with success`),new _h({name:e.name,version:e.version,path:i,hooks:o,config:c})}const Ch=/(^-{3}(?:\r\n|\r|\n)([\w\W]*?)-{3}(?:\r\n|\r|\n))?([\w\W]*)*/;class Fh extends class{book;sourceFS;tmpFS;dest;options;plugins=[];constructor(e,t,r,n,i){this.book=e,this.sourceFS=t,this.tmpFS=r,this.options=n,this.dest=i}getContext(){return{book:this.book,sourceFS:this.sourceFS,tmpFS:this.tmpFS,request:fe.request,logger:se,format:this.format}}async generate(){await this.initLfs(),await this.initPlugins(),await this.onInit(),await this.callHook("init"),await this.generateLogo(),await this.onSummary(),await this.callHook("summary"),await this.generateArticles(),await this.callHook("articles"),await this.callHook("beforeFinish")&&(await this.onFinish(),await this.callHook("finish")),se.success("generation finished with success!")}async initLfs(){if(this.options.lfs){se.info("generate lfs files...");let e="git lfs ls-files -l";const{config:t}=this.book,r=t.getValue("root","");r&&(e+=` --include ${r}`);const{error:n,stdout:i}=H.default.sync(e,{stdio:["inherit"],encoding:"utf8",cwd:this.sourceFS.root,shell:!0}),a={};n||i.trim().split("\n").forEach((e=>{if(e){const[t,n]=e.trim().split(/\s[-*]\s/);if(t&&n){let e=n.trim();r&&(e=j.default.relative(r,e)),a[e]=t.trim()}}})),this.options.lfs.files=a,se.info(`found ${Object.keys(a).length} files`)}}async initPlugins(){this.plugins=await async function(e,t,r){const n=fe.createPluginCenter(r),i=await n.getInstalled(e),a=[];se.info(`installing ${i.length} plugins from registry`);for(let e of i)try{if(e.disabled){se.warn('plugin "'+e.name+'" has been disabled');continue}a.push(await Ah(e,t))}catch(t){se.warn('plugin "'+e.name+'" installed with fail'),se.warn(t.message)}return a}(this.book,this.tmpFS.root,this.options.plugins)}async generateLogo(){if(!this.tmpFS.exist("logo.png")){const e=this.book.config.getValue("title","Untitled"),t=g.createCanvas(60,60);fe.LetterAvatar.create(e,60,t);const r=t.toBuffer("image/png");await this.tmpFS.writeFile("logo.png",r)}}async generateArticles(){se.info("generate articles ...");const e=this.book.summary.getArticles();se.info(`found ${e.length} articles`);for(const t of e)if(t.ref){se.info('generate article "'+t.getRef()+'"');try{await this.onArticle(t),await this.callHook("article",t)}catch(e){"ENOENT"===e.code?se.warn(`article file [${t.ref}] not exist`):se.warn(`generate article [${t.ref}] failed: ${e.message}`)}}}async callHook(e,...t){return se.debug('calling hook "'+e+'"'),await(async(e,t)=>{for(let r of e)if(!await t(r))return!1;return!0})(this.plugins,(async r=>{const n=r.getHook(e);return!n||await n.apply(r.getContext(this.getContext()),t)}))}async makeFile(e,t){const r=await this.tmpFS.readAsString(t),n=this.parseFileMeta(t,r);return new fe.File({path:e,...n})}parseFileMeta(e,t){const r=t.match(Ch);let n={};if(r){if(void 0!==r[2])try{n=W.default.load(r[2])||{}}catch{}t=void 0!==r[3]?r[3]:""}const i=j.default.join(this.book.config.getValue("root",""),e);return n.mtime=this.sourceFS.readFileMTime(i),{meta:n,content:t}}}{format="json";async onInit(){this.processSummary()}processSummary(){this.book.summary.getArticle((e=>(e.ref&&(e.path=K.default(e.ref,".json")),!1)))}async onArticle(e){if(e.ref){const t=await this.tmpFS.readAsString(e.ref);await this.tmpFS.unlink(e.ref),await this.tmpFS.writeFile(e.getPath(),JSON.stringify({title:e.title,content:t},null,4))}}async onSummary(){const e=this.book.summary;await this.tmpFS.unlink("SUMMARY.md"),await this.tmpFS.writeFile("SUMMARY.json",JSON.stringify(e.toObject(),null,4))}async onFinish(){await this.packBook()}async packBook(){se.info("pack book ...");const e=J.default.createWriteStream(this.dest);await this.tmpFS.archive(e,"tar")}}class Dh{root;constructor(e){this.root=e}readFileMTime(e){const t=`git log --pretty=format:%cI -1 -- ${e}`,{error:r,stdout:n}=H.default.sync(t,{stdio:["inherit"],encoding:"utf8",cwd:this.root,shell:!0});if(!r)return n}createReadStream(e,t){return J.default.createReadStream(this.resolve(e),t)}async readFile(e){return await J.default.readFile(this.resolve(e))}async readAsObject(e){try{return await J.default.readJSON(this.resolve(e))}catch{return{}}}async readAsString(e){try{return await J.default.readFile(this.resolve(e),"utf-8")}catch{return""}}async writeFile(e,t){return J.default.writeFile(this.resolve(e),t)}createWriteStream(e,t){return e=this.resolve(e),J.default.ensureDirSync(j.default.dirname(e)),J.default.createWriteStream(e,t)}async appendFile(e,t){return J.default.appendFile(this.resolve(e),t)}exist(e){return J.default.pathExistsSync(this.resolve(e))}async unlink(e){try{await J.default.unlink(this.resolve(e))}catch{}}async readDir(e=""){const t=[];return new Promise((r=>{Y.default({path:this.resolve(e),ignoreFiles:[".gitignore",".bookignore"]}).on("child",(function(e){t.push({type:e.type,path:e.path.substr(e.root.path.length+1)})})).on("close",(()=>{r(t)}))}))}resolve(...e){return j.default.join(this.root,...e)}async archive(e,t="tar"){if("tar"==t)return new Promise(((t,r)=>{x.pack(this.root,{fromBase:!0,ignoreFiles:[".gitignore",".bookignore"]}).pipe(e).on("error",(e=>{r(e)})).on("close",(()=>{t()}))}));{const r=await this.readDir();return new Promise(((n,i)=>{e.on("error",(e=>{i(e)})),e.on("close",(()=>{n()}));const a=X.default(t,{gzip:!0,gzipOptions:{level:9},zlib:{level:9}});a.pipe(e);for(const e of r)"File"===e.type&&a.append(this.createReadStream(e.path),{name:e.path});a.finalize()}))}}}class Oh extends Fh{template;scripts=[];stylesheets=[];headScripts=[];format="html";async onInit(){await super.onInit(),await this.installCommonAssets(),await this.installReader(),await this.copyPluginsAssets(),await this.initTemplate()}initTemplate(){const e=J.default.readFileSync(j.default.resolve(__dirname,"../templates/html.ejs"),"utf-8");this.template=Z.default.compile(e)}processSummary(){this.book.summary.getArticle((e=>{if(e.ref){const t=r.posix.parse(e.ref);e.path=r.posix.format({...t,name:E.pinyin(t.name,{toneType:"none",type:"array"}).join("-"),ext:".html",base:""})}return!1}))}async installCommonAssets(){se.info("installing common assets ..."),await this.installPackage("lodash","lodash.min.js","lodash/lodash.min.js"),await this.installPackage("react","umd/react.production.min.js","react/react.production.min.js"),await this.installPackage("react-dom","umd/react-dom.production.min.js","react-dom/react-dom.production.min.js"),se.info("common assets installed with success")}async installReader(){se.info("installing package @topwrite/reader ...");const e=await this.installPackage("@topwrite/reader","dist/","reader");se.info(`package @topwrite/reader@${e.version} installed with success`)}async installPackage(e,t,r){const n=require.resolve(`${e}/package.json`),i=j.default.join(j.default.dirname(n),t),a=j.default.join(this.tmpFS.root,"asset",r);await J.default.copy(i,a);const o=require(n);return t.endsWith("/")&&(r=`${r}/index.js`),this.scripts.push(`asset/${r}?v=${o.version}`),o}async copyPluginsAssets(){for(const e of this.plugins)await J.default.copy(j.default.join(e.path,"dist"),j.default.join(this.tmpFS.root,"asset","plugins",e.name)),this.scripts.push(`asset/plugins/${e.name}/index.js?v=${e.version}`)}async onArticle(e){if(e.ref){const t=e.getPath(),r=await this.makeFile(t,e.ref),n=await this.renderFile(r,e.title);await this.tmpFS.unlink(e.ref),await this.tmpFS.writeFile(t,n)}}async onSummary(){const e=await this.makeFile("index.html","README.md"),t=await this.renderFile(e);await this.tmpFS.unlink("SUMMARY.md"),await this.tmpFS.unlink("README.md"),await this.tmpFS.writeFile("index.html",t)}async renderFile(e,t){const r={id:this.book.id,summary:this.book.summary.toObject(),config:this.book.config.toObject(),file:e,options:{lfs:this.options.lfs}},n=this.scripts.map((t=>fe.isUrl(t)?t:e.relative(t))),i=this.headScripts.map((t=>fe.isUrl(t)?t:e.relative(t))),a=this.stylesheets.map((t=>fe.isUrl(t)?t:e.relative(t))),o=this.book.config.getValue("title","Untitled"),s=e.getMeta("title",t);return this.template({title:(s?`${s} - `:"")+o,keywords:e.getMeta("keywords"),description:e.getMeta("description"),stylesheets:a,headScripts:i,scripts:n,payload:JSON.stringify(r).replace(/\//g,"\\/")})}}const Rh=(e,t)=>e.some((e=>e instanceof RegExp?e.test(t):e===t));class Th extends ee.default.ResourceLoader{fs;file;constructor(e,t){super(),this.fs=e,this.file=t}async fetch(e,t){const{element:r}=t;if(r&&"IMG"===r.nodeName){if(o.parse(e).protocol?.startsWith("http")){const t=await fe.request.get(e,{responseType:"stream"});let n=`_images/${fe.md5(e)}`;const i=te.default.extension(t.headers["content-type"]);i&&(n+=`.${i}`),r.setAttribute("src",this.file.relative(n));const a=this.fs.createWriteStream(n);return new Promise(((e,r)=>{t.data.pipe(a),a.on("error",(e=>{a.close(),r(e)})),a.on("close",(()=>{e(null)}))}))}return null}return super.fetch(e,t)}}function Ih(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const jh={json:Fh,html:Oh,ebook:class extends Oh{format="ebook";async initPlugins(){this.book.config.setValue("theme","ebook"),await super.initPlugins()}createDOM(e,t){const r=new Th(this.tmpFS,t),n=new P.VirtualConsole;return n.sendTo(console,{omitJSDOMErrors:!0}),new P.JSDOM(e,{virtualConsole:n,url:`file:///${this.tmpFS.resolve(t.path)}`,runScripts:"dangerously",resources:r,pretendToBeVisual:!0,beforeParse(e){e.SC_DISABLE_SPEEDY=!0}})}async renderFile(e,t){const r=await super.renderFile(e,t),n=this.createDOM(r,e);return await function(e,t){const{tryEvery:r,stopAfter:n}=t,i=Date.now(),a=(t,o)=>{setTimeout((async()=>{try{const r=await e();t(r)}catch(e){Date.now()-i>n?o(e):a(t,o)}}),r)};return new Promise(a)}((()=>{const e=n.window.document,t=e.getElementById("root");if(t&&t.innerHTML&&Array.from(e.images).every((e=>e.complete))){for(const e of Array.from(n.window.document.scripts))e.remove();return n.serialize()}throw new Error("render html timeout")}),{stopAfter:5e3,tryEvery:100})}getConvertOptions(e){const{config:t}=this.book,r={title:t.getValue("title"),"book-producer":"TopWrite",publisher:"TopWrite",chapter:"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-chapter')]","level1-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-level1-toc')]","level2-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-level2-toc')]","level3-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-level3-toc')]","max-toc-links":"0","max-levels":"1","no-chapters-in-toc":!0,"breadth-first":!0,"disable-font-rescaling":!0};switch(e){case"docx":r["docx-no-toc"]=!0;break;case"epub":r["dont-split-on-page-breaks"]=!0;break;case"pdf":const e=J.default.readFileSync(j.default.resolve(__dirname,"../templates/pdf-header.ejs"),"utf-8"),n=J.default.readFileSync(j.default.resolve(__dirname,"../templates/pdf-footer.ejs"),"utf-8");r["chapter-mark"]=t.getValue(["pdf","chapterMark"]),r["page-breaks-before"]=t.getValue(["pdf","pageBreaksBefore"]),r["pdf-page-margin-left"]=t.getValue(["pdf","margin","left"]),r["pdf-page-margin-right"]=t.getValue(["pdf","margin","right"]),r["pdf-page-margin-top"]=t.getValue(["pdf","margin","top"]),r["pdf-page-margin-bottom"]=t.getValue(["pdf","margin","bottom"]),r["pdf-serif-family"]=t.getValue(["pdf","fontFamily"]),r["paper-size"]=t.getValue(["pdf","paperSize"]),r["pdf-custom-size"]=t.getValue(["pdf","customSize"]),r.unit="millimeter",r["pdf-page-numbers"]=t.getValue(["pdf","pageNumbers"]),r["preserve-cover-aspect-ratio"]=!0,r["pdf-header-template"]=e,r["pdf-footer-template"]=n}return r}async packBook(){const e=j.default.extname(this.dest).substr(1);if(!["pdf","docx","epub"].includes(e))return super.packBook();const t=await S.lookpath("ebook-convert");if(!t)throw new Error("Install ebook-convert from Calibre: https://calibre-ebook.com");const r=function(e,t){const r=[];let n=[],i=[];t={useEquals:!0,shortFlag:!0,...t};const a=(e,n)=>{const i=t.shortFlag&&1===e.length?"-":"--",a=t.allowCamelCase?e:e.replace(/[A-Z]/g,"-$&").toLowerCase();e=i+a,t.useEquals?r.push(e+(n?`=${n}`:"")):(r.push(e),n&&r.push(n))},o=(e,t)=>{r.push(`-${e}`),t&&r.push(t)};for(let[r,s]of Object.entries(e)){let e=a;if((!Array.isArray(t.excludes)||!Rh(t.excludes,r))&&(!Array.isArray(t.includes)||Rh(t.includes,r)))if("object"==typeof t.aliases&&t.aliases[r]&&(r=t.aliases[r],e=o),"--"!==r)if("_"!==r){if(!0!==s||t.ignoreTrue||e(r,""),!1!==s||t.ignoreFalse||e(`no-${r}`),"string"==typeof s&&e(r,s),"number"!=typeof s||Number.isNaN(s)||e(r,String(s)),Array.isArray(s))for(const t of s)e(r,t)}else{if(!Array.isArray(s))throw new TypeError("Expected key `_` to be Array, got "+typeof s);n=s}else{if(!Array.isArray(s))throw new TypeError("Expected key `--` to be Array, got "+typeof s);i=s}}for(const e of n)r.push(String(e));i.length>0&&r.push("--");for(const e of i)r.push(String(e));return r}(this.getConvertOptions(e)),n=this.tmpFS.resolve("index.html");return r.unshift(n,this.dest),new Promise(((e,i)=>{se.info("convert book ...");const a=H.default(t,r,{stdio:["inherit"],cwd:this.tmpFS.root}),o=["^Conversion options ","^ \\w+: ","^Blocking URL ","^Ignoring CSS ","^CSSStyleDeclaration: ","^PropertyValue: ","^CSSVariable: ",Ih(n),Ih(this.dest)].map((e=>`(${e})`)).join("|"),s=new RegExp(`(${o})`);a.stdout?.on("data",(e=>{e.toString().replace(/[\r\n]*$/,"").split("\n").forEach((e=>{if(e){const t=e.trim();e.match(s)?se.debug({message:t,type:"log"}):se.log(t)}}))})),a.stderr?.on("data",(e=>{se.error(e.toString().trimEnd())})),a.on("close",(t=>{0!==t?i("Convert failed"):e()}))}))}}};var Lh=ne.default,qh=process.cwd,zh=null,Mh=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return zh||(zh=qh.call(process)),zh};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var Nh=process.chdir;process.chdir=function(e){zh=null,Nh.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Nh)}var Bh=function(e){Lh.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,n){e.open(t,Lh.O_WRONLY|Lh.O_SYMLINK,r,(function(t,i){t?n&&n(t):e.fchmod(i,r,(function(t){e.close(i,(function(e){n&&n(t||e)}))}))}))},e.lchmodSync=function(t,r){var n,i=e.openSync(t,Lh.O_WRONLY|Lh.O_SYMLINK,r),a=!0;try{n=e.fchmodSync(i,r),a=!1}finally{if(a)try{e.closeSync(i)}catch(e){}else e.closeSync(i)}return n}}(e);e.lutimes||function(e){Lh.hasOwnProperty("O_SYMLINK")?(e.lutimes=function(t,r,n,i){e.open(t,Lh.O_SYMLINK,(function(t,a){t?i&&i(t):e.futimes(a,r,n,(function(t){e.close(a,(function(e){i&&i(t||e)}))}))}))},e.lutimesSync=function(t,r,n){var i,a=e.openSync(t,Lh.O_SYMLINK),o=!0;try{i=e.futimesSync(a,r,n),o=!1}finally{if(o)try{e.closeSync(a)}catch(e){}else e.closeSync(a)}return i}):(e.lutimes=function(e,t,r,n){n&&process.nextTick(n)},e.lutimesSync=function(){})}(e);e.chown=i(e.chown),e.fchown=i(e.fchown),e.lchown=i(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=n(e.chmodSync),e.fchmodSync=n(e.fchmodSync),e.lchmodSync=n(e.lchmodSync),e.stat=o(e.stat),e.fstat=o(e.fstat),e.lstat=o(e.lstat),e.statSync=s(e.statSync),e.fstatSync=s(e.fstatSync),e.lstatSync=s(e.lstatSync),e.lchmod||(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){});e.lchown||(e.lchown=function(e,t,r,n){n&&process.nextTick(n)},e.lchownSync=function(){});"win32"===Mh&&(e.rename=(t=e.rename,function(r,n,i){var a=Date.now(),o=0;t(r,n,(function s(c){if(c&&("EACCES"===c.code||"EPERM"===c.code)&&Date.now()-a<6e4)return setTimeout((function(){e.stat(n,(function(e,a){e&&"ENOENT"===e.code?t(r,n,s):i(c)}))}),o),void(o<100&&(o+=10));i&&i(c)}))}));var t;function r(t){return t?function(r,n,i){return t.call(e,r,n,(function(e){c(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function n(t){return t?function(r,n){try{return t.call(e,r,n)}catch(e){if(!c(e))throw e}}:t}function i(t){return t?function(r,n,i,a){return t.call(e,r,n,i,(function(e){c(e)&&(e=null),a&&a.apply(this,arguments)}))}:t}function a(t){return t?function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!c(e))throw e}}:t}function o(t){return t?function(r,n,i){function a(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof n&&(i=n,n=null),n?t.call(e,r,n,a):t.call(e,r,a)}:t}function s(t){return t?function(r,n){var i=n?t.call(e,r,n):t.call(e,r);return i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296),i}:t}function c(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}e.read=function(t){function r(r,n,i,a,o,s){var c;if(s&&"function"==typeof s){var u=0;c=function(l,f,h){if(l&&"EAGAIN"===l.code&&u<10)return u++,t.call(e,r,n,i,a,o,c);s.apply(this,arguments)}}return t.call(e,r,n,i,a,o,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.read),e.readSync=(u=e.readSync,function(t,r,n,i,a){for(var o=0;;)try{return u.call(e,t,r,n,i,a)}catch(e){if("EAGAIN"===e.code&&o<10){o++;continue}throw e}});var u};var $h=U.default.Stream,Uh=function(e){return{ReadStream:function t(r,n){if(!(this instanceof t))return new t(r,n);$h.call(this);var i=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,n=n||{};for(var a=Object.keys(n),o=0,s=a.length;o<s;o++){var c=a[o];this[c]=n[c]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){i._read()}));e.open(this.path,this.flags,this.mode,(function(e,t){if(e)return i.emit("error",e),void(i.readable=!1);i.fd=t,i.emit("open",t),i._read()}))},WriteStream:function t(r,n){if(!(this instanceof t))return new t(r,n);$h.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,n=n||{};for(var i=Object.keys(n),a=0,o=i.length;a<o;a++){var s=i[a];this[s]=n[s]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}};var Vh=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var t={__proto__:Hh(e)};else t=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})),t},Hh=Object.getPrototypeOf||function(e){return e.__proto__};var Qh,Gh,Wh=G.default,Kh=Bh,Jh=Uh,Yh=Vh,Xh=ie.default;function Zh(e,t){Object.defineProperty(e,Qh,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(Qh=Symbol.for("graceful-fs.queue"),Gh=Symbol.for("graceful-fs.previous")):(Qh="___graceful-fs.queue",Gh="___graceful-fs.previous");var ep=function(){};if(Xh.debuglog?ep=Xh.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(ep=function(){var e=Xh.format.apply(Xh,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!Wh[Qh]){var tp=ce[Qh]||[];Zh(Wh,tp),Wh.close=function(e){function t(t,r){return e.call(Wh,t,(function(e){e||op(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(t,Gh,{value:e}),t}(Wh.close),Wh.closeSync=function(e){function t(t){e.apply(Wh,arguments),op()}return Object.defineProperty(t,Gh,{value:e}),t}(Wh.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){ep(Wh[Qh]),N.default.equal(Wh[Qh].length,0)}))}ce[Qh]||Zh(ce,Wh[Qh]);var rp,np=ip(Yh(Wh));function ip(e){Kh(e),e.gracefulify=ip,e.createReadStream=function(t,r){return new e.ReadStream(t,r)},e.createWriteStream=function(t,r){return new e.WriteStream(t,r)};var t=e.readFile;e.readFile=function(e,r,n){"function"==typeof r&&(n=r,r=null);return function e(r,n,i,a){return t(r,n,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof i&&i.apply(this,arguments):ap([e,[r,n,i],t,a||Date.now(),Date.now()])}))}(e,r,n)};var r=e.writeFile;e.writeFile=function(e,t,n,i){"function"==typeof n&&(i=n,n=null);return function e(t,n,i,a,o){return r(t,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof a&&a.apply(this,arguments):ap([e,[t,n,i,a],r,o||Date.now(),Date.now()])}))}(e,t,n,i)};var n=e.appendFile;n&&(e.appendFile=function(e,t,r,i){"function"==typeof r&&(i=r,r=null);return function e(t,r,i,a,o){return n(t,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof a&&a.apply(this,arguments):ap([e,[t,r,i,a],n,o||Date.now(),Date.now()])}))}(e,t,r,i)});var i=e.copyFile;i&&(e.copyFile=function(e,t,r,n){"function"==typeof r&&(n=r,r=0);return function e(t,r,n,a,o){return i(t,r,n,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof a&&a.apply(this,arguments):ap([e,[t,r,n,a],i,o||Date.now(),Date.now()])}))}(e,t,r,n)});var a=e.readdir;if(e.readdir=function(e,t,r){"function"==typeof t&&(r=t,t=null);return function e(t,r,n,i){return a(t,r,(function(a,o){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?(o&&o.sort&&o.sort(),"function"==typeof n&&n.call(this,a,o)):ap([e,[t,r,n],a,i||Date.now(),Date.now()])}))}(e,t,r)},"v0.8"===process.version.substr(0,4)){var o=Jh(e);f=o.ReadStream,h=o.WriteStream}var s=e.ReadStream;s&&(f.prototype=Object.create(s.prototype),f.prototype.open=function(){var e=this;d(e.path,e.flags,e.mode,(function(t,r){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r),e.read())}))});var c=e.WriteStream;c&&(h.prototype=Object.create(c.prototype),h.prototype.open=function(){var e=this;d(e.path,e.flags,e.mode,(function(t,r){t?(e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return f},set:function(e){f=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0});var u=f;Object.defineProperty(e,"FileReadStream",{get:function(){return u},set:function(e){u=e},enumerable:!0,configurable:!0});var l=h;function f(e,t){return this instanceof f?(s.apply(this,arguments),this):f.apply(Object.create(f.prototype),arguments)}function h(e,t){return this instanceof h?(c.apply(this,arguments),this):h.apply(Object.create(h.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return l},set:function(e){l=e},enumerable:!0,configurable:!0});var p=e.open;function d(e,t,r,n){return"function"==typeof r&&(n=r,r=null),function e(t,r,n,i,a){return p(t,r,n,(function(o,s){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?"function"==typeof i&&i.apply(this,arguments):ap([e,[t,r,n,i],o,a||Date.now(),Date.now()])}))}(e,t,r,n)}return e.open=d,e}function ap(e){ep("ENQUEUE",e[0].name,e[1]),Wh[Qh].push(e),sp()}function op(){for(var e=Date.now(),t=0;t<Wh[Qh].length;++t)Wh[Qh][t].length>2&&(Wh[Qh][t][3]=e,Wh[Qh][t][4]=e);sp()}function sp(){if(clearTimeout(rp),rp=void 0,0!==Wh[Qh].length){var e=Wh[Qh].shift(),t=e[0],r=e[1],n=e[2],i=e[3],a=e[4];if(void 0===i)ep("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){ep("TIMEOUT",t.name,r);var o=r.pop();"function"==typeof o&&o.call(null,n)}else{var s=Date.now()-a,c=Math.max(a-i,1);s>=Math.min(1.2*c,100)?(ep("RETRY",t.name,r),t.apply(null,r.concat([i]))):Wh[Qh].push(e)}void 0===rp&&(rp=setTimeout(sp,0))}}process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Wh.__patched&&(np=ip(Wh),Wh.__patched=!0);var cp=np;const up=re.default.homedir(),{env:lp}=process,fp=lp.XDG_DATA_HOME||(up?j.default.join(up,".local","share"):void 0),hp=lp.XDG_CONFIG_HOME||(up?j.default.join(up,".config"):void 0);lp.XDG_STATE_HOME||up&&j.default.join(up,".local","state"),lp.XDG_CACHE_HOME||up&&j.default.join(up,".cache"),lp.XDG_RUNTIME_DIR;const pp=(lp.XDG_DATA_DIRS||"/usr/local/share/:/usr/share/").split(":");fp&&pp.unshift(fp);const dp=(lp.XDG_CONFIG_DIRS||"/etc/xdg").split(":");hp&&dp.unshift(hp);var mp={exports:{}},gp={exports:{}};
|
|
9
9
|
/**
|
|
10
10
|
* @preserve
|
|
11
11
|
* JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
|