@topwrite/cli 1.0.90-alpha.2 → 1.0.91-alpha.2

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.
Files changed (2) hide show
  1. package/bin/ttx.js +1 -1
  2. 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 $n=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},Kn=Object.prototype.hasOwnProperty,Vn=Object.prototype.toString,Qn=Object.defineProperty,Wn=Object.getOwnPropertyDescriptor,Yn=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Vn.call(e)},Xn=function(e){if(!e||"[object Object]"!==Vn.call(e))return!1;var t,r=Kn.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&Kn.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||Kn.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},Zn=function(e,t){if("__proto__"===t){if(!Kn.call(e,t))return;if(Wn)return Wn(e,t).value}return e[t]},ei=function e(){var t,r,n,i,o,a,s=arguments[0],c=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},c=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});c<l;++c)if(null!=(t=arguments[c]))for(r in t)n=Zn(s,r),s!==(i=Zn(t,r))&&(u&&i&&(Xn(i)||(o=Yn(i)))?(o?(o=!1,a=n&&Yn(n)?n:[]):a=n&&Xn(n)?n:{},Jn(s,{name:r,newValue:e(u,a,i)})):void 0!==i&&Jn(s,{name:r,newValue:i}));return s};function ti(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function ri(){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(o,...a){const s=e[++r];let c=-1;if(o)n(o);else{for(;++c<t.length;)null!==a[c]&&void 0!==a[c]||(a[c]=t[c]);t=a,s?function(e,t){let r;return n;function n(...t){const n=e.length>t.length;let a;n&&t.push(i);try{a=e.apply(this,t)}catch(e){if(n&&r)throw e;return i(e)}n||(a instanceof Promise?a.then(o,i):a instanceof Error?i(a):o(a))}function i(e,...n){r||(r=!0,t(e,...n))}function o(e){i(null,e)}}(s,i)(...a):n(null,...a)}}(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}function ni(e){return e&&"object"==typeof e?"position"in e||"type"in e?oi(e.position):"start"in e||"end"in e?oi(e):"line"in e||"column"in e?ii(e):"":""}function ii(e){return ai(e&&e.line)+":"+ai(e&&e.column)}function oi(e){return ii(e&&e.start)+"-"+ii(e&&e.end)}function ai(e){return e&&"number"==typeof e?e:1}class si extends Error{constructor(e,t,r){const n=[null,null];let i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(r=t,t=void 0),"string"==typeof r){const e=r.indexOf(":");-1===e?n[1]=r:(n[0]=r.slice(0,e),n[1]=r.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(i=t.position):"start"in t||"end"in t?i=t:("line"in t||"column"in t)&&(i.start=t)),this.name=ni(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.position=i,this.source=n[0],this.ruleId=n[1],this.file,this.actual,this.expected,this.url,this.note}}function ci(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}si.prototype.file="",si.prototype.name="",si.prototype.reason="",si.prototype.message="",si.prototype.stack="",si.prototype.fatal=null,si.prototype.column=null,si.prototype.line=null,si.prototype.source=null,si.prototype.ruleId=null,si.prototype.position=null;const li=["history","path","basename","stem","extname","dirname"];class ui{constructor(e){let t;t=e?"string"==typeof e||function(e){return $n(e)}(e)?{value:e}:ci(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=B.default.cwd(),this.value,this.stored,this.result,this.map;let r,n=-1;for(;++n<li.length;){const e=li[n];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(r in t)li.includes(r)||(this[r]=t[r])}get path(){return this.history[this.history.length-1]}set path(e){ci(e)&&(e=a.fileURLToPath(e)),pi(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?M.default.dirname(this.path):void 0}set dirname(e){fi(this.basename,"dirname"),this.path=M.default.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?M.default.basename(this.path):void 0}set basename(e){pi(e,"basename"),hi(e,"basename"),this.path=M.default.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?M.default.extname(this.path):void 0}set extname(e){if(hi(e,"extname"),fi(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=M.default.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?M.default.basename(this.path,this.extname):void 0}set stem(e){pi(e,"stem"),hi(e,"stem"),this.path=M.default.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,t,r){const n=new si(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 hi(e,t){if(e&&e.includes(M.default.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+M.default.sep+"`")}function pi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function fi(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const di=function e(){const t=ri(),r=[];let n,i={},o=-1;return a.data=function(e,t){if("string"==typeof e)return 2===arguments.length?(Ti("data",n),i[e]=t,a):mi.call(i,e)&&i[e]||null;if(e)return Ti("data",n),i=e,a;return i},a.Parser=void 0,a.Compiler=void 0,a.freeze=function(){if(n)return a;for(;++o<r.length;){const[e,...n]=r[o];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const i=e.call(a,...n);"function"==typeof i&&t.use(i)}return n=!0,o=Number.POSITIVE_INFINITY,a},a.attachers=r,a.use=function(e,...t){let o;if(Ti("use",n),null==e);else if("function"==typeof e)u(e,...t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?l(e):c(e)}o&&(i.settings=Object.assign(i.settings||{},o));return a;function s(e){if("function"==typeof e)u(e);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...r]=e;u(t,...r)}else c(e)}}function c(e){l(e.plugins),e.settings&&(o=Object.assign(o||{},e.settings))}function l(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 u(e,t){let n,i=-1;for(;++i<r.length;)if(r[i][0]===e){n=r[i];break}n?(ti(n[1])&&ti(t)&&(t=ei(!0,n[1],t)),n[1]=t):r.push([...arguments])}},a.parse=function(e){a.freeze();const t=_i(e),r=a.Parser;if(Ei("parse",r),gi(r,"parse"))return new r(String(t),t).parse();return r(String(t),t)},a.stringify=function(e,t){a.freeze();const r=_i(t),n=a.Compiler;if(yi("stringify",n),vi(e),gi(n,"compile"))return new n(e,r).compile();return n(e,r)},a.run=function(e,r,n){vi(e),a.freeze(),n||"function"!=typeof r||(n=r,r=void 0);if(!n)return new Promise(i);function i(i,o){function a(t,r,a){r=r||e,t?o(t):i?i(r):n(null,r,a)}t.run(e,_i(r),a)}i(null,n)},a.runSync=function(e,t){let r,n;return a.run(e,t,i),bi("runSync","run",n),r;function i(e,t){Gn(e),r=t,n=!0}},a.process=function(e,t){if(a.freeze(),Ei("process",a.Parser),yi("process",a.Compiler),!t)return new Promise(r);function r(r,n){const i=_i(e);function o(e,i){e||!i?n(e):r?r(i):t(null,i)}a.run(a.parse(i),i,((e,t,r)=>{if(!e&&t&&r){const n=a.stringify(t,r);null==n||(!function(e){return"string"==typeof e||$n(e)}(n)?r.result=n:r.value=n),o(e,r)}else o(e)}))}r(null,t)},a.processSync=function(e){let t;a.freeze(),Ei("processSync",a.Parser),yi("processSync",a.Compiler);const r=_i(e);return a.process(r,n),bi("processSync","process",t),r;function n(e){t=!0,Gn(e)}},a;function a(){const t=e();let n=-1;for(;++n<r.length;)t.use(...r[n]);return t.data(ei(!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 Ei(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 Ti(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 vi(e){if(!ti(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function bi(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function _i(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new ui(e)}var Ai=he(Object.freeze({__proto__:null,unified:di}));function Si(e,t){const r=(t||{}).includeImageAlt;return ki(e,"boolean"!=typeof r||r)}function ki(e,t){return function(e){return Boolean(e&&"object"==typeof e)}(e)&&("value"in e&&e.value||t&&"alt"in e&&e.alt||"children"in e&&Ci(e.children,t))||Array.isArray(e)&&Ci(e,t)||""}function Ci(e,t){const r=[];let n=-1;for(;++n<e.length;)r[n]=ki(e[n],t);return r.join("")}function xi(e,t,r,n){const i=e.length;let o,a=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),[].splice.apply(e,o);else for(r&&[].splice.apply(e,[t,r]);a<n.length;)o=n.slice(a,a+1e4),o.unshift(t,0),[].splice.apply(e,o),a+=1e4,t+=1e4}function wi(e,t){return e.length>0?(xi(e,e.length,0,t),e):t}const Oi={}.hasOwnProperty;function Ni(e){const t={};let r=-1;for(;++r<e.length;)Pi(t,e[r]);return t}function Pi(e,t){let r;for(r in t){const n=(Oi.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let o;for(o in i){Oi.call(n,o)||(n[o]=[]);const e=i[o];Ri(n[o],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]);xi(e,0,0,n)}const Ii=$i(/[A-Za-z]/),Li=$i(/\d/),Di=$i(/[\dA-Fa-f]/),Mi=$i(/[\dA-Za-z]/),Fi=$i(/[!-/:-@[-`{-~]/),Hi=$i(/[#-'*+\--9=?A-Z^-~]/);function Bi(e){return null!==e&&(e<32||127===e)}function Ui(e){return null!==e&&(e<0||32===e)}function ji(e){return null!==e&&e<-2}function qi(e){return-2===e||-1===e||32===e}const zi=$i(/\s/),Gi=$i(/[!-/:-@[-`{-~\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 $i(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}var Ki=Object.freeze({__proto__:null,asciiAlpha:Ii,asciiDigit:Li,asciiHexDigit:Di,asciiAlphanumeric:Mi,asciiPunctuation:Fi,asciiAtext:Hi,asciiControl:Bi,markdownLineEndingOrSpace:Ui,markdownLineEnding:ji,markdownSpace:qi,unicodeWhitespace:zi,unicodePunctuation:Gi});function Vi(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let o=0;return function(n){if(qi(n))return e.enter(r),a(n);return t(n)};function a(n){return qi(n)&&o++<i?(e.consume(n),a):(e.exit(r),t(n))}}var Qi=Object.freeze({__proto__:null,factorySpace:Vi});const Wi={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"),Vi(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)):ji(t)?(e.consume(t),e.exit("chunkText"),n):(e.consume(t),i)}}};const Yi={tokenize:function(e){const t=this,r=[];let n,i,o,a=0;return s;function s(n){if(a<r.length){const i=r[a];return t.containerState=i[1],e.attempt(i[0].continuation,c,l)(n)}return l(n)}function c(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&y();const r=t.events.length;let i,o=r;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}E(a);let s=r;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},i),s++;return xi(t.events,o+1,0,t.events.slice(r)),t.events.length=s,l(e)}return s(e)}function l(i){if(a===r.length){if(!n)return p(i);if(n.currentConstruct&&n.currentConstruct.concrete)return d(i);t.interrupt=Boolean(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Xi,u,h)(i)}function u(e){return n&&y(),E(a),p(e)}function h(e){return t.parser.lazy[t.now().line]=a!==r.length,o=t.now().offset,d(e)}function p(r){return t.containerState={},e.attempt(Xi,f,d)(r)}function f(e){return a++,r.push([t.currentConstruct,t.containerState]),p(e)}function d(r){return null===r?(n&&y(),E(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),E(0),void e.consume(r)):ji(r)?(e.consume(r),g(e.exit("chunkFlow")),a=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<o&&(!n.events[e][1].end||n.events[e][1].end.offset>o))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(E(a),e=r;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;xi(t.events,c+1,0,t.events.slice(r)),t.events.length=e}}function E(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}}},Xi={tokenize:function(e,t,r){return Vi(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function Ji(e){return null===e||Ui(e)||zi(e)?1:Gi(e)?2:void 0}function Zi(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!n.includes(o)&&(t=o(t,r),n.push(o))}return t}const eo={name:"attention",tokenize:function(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Ji(n);let o;return function(t){return e.enter("attentionSequence"),o=t,a(t)};function a(s){if(s===o)return e.consume(s),a;const c=e.exit("attentionSequence"),l=Ji(s),u=!l||2===l&&i||r.includes(s),h=!i||2===i&&l||r.includes(n);return c._open=Boolean(42===o?u:u&&(i||!h)),c._close=Boolean(42===o?h:h&&(l||!u)),t(s)}},resolveAll:function(e,t){let r,n,i,o,a,s,c,l,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(r=u;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[u][1]).charCodeAt(0)){if((e[r][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const h=Object.assign({},e[r][1].end),p=Object.assign({},e[u][1].start);to(h,-s),to(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[r][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:p},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[u][1].start)},n={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},o.start),e[u][1].start=Object.assign({},a.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=wi(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=wi(c,[["enter",n,t],["enter",o,t],["exit",o,t],["enter",i,t]]),c=wi(c,Zi(t.parser.constructs.insideSpan.null,e.slice(r+1,u),t)),c=wi(c,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",n,t]]),e[u][1].end.offset-e[u][1].start.offset?(l=2,c=wi(c,[["enter",e[u][1],t],["exit",e[u][1],t]])):l=0,xi(e,r-1,u-r+3,c),u=r+c.length-l-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e}};function to(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ro={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 Ii(t)?(e.consume(t),o):Hi(t)?c(t):r(t)}function o(e){return 43===e||45===e||46===e||Mi(e)?a(e):c(e)}function a(t){return 58===t?(e.consume(t),s):(43===t||45===t||46===t||Mi(t))&&n++<32?(e.consume(t),a):c(t)}function s(t){return 62===t?(e.exit("autolinkProtocol"),p(t)):null===t||32===t||60===t||Bi(t)?r(t):(e.consume(t),s)}function c(t){return 64===t?(e.consume(t),n=0,l):Hi(t)?(e.consume(t),c):r(t)}function l(e){return Mi(e)?u(e):r(e)}function u(t){return 46===t?(e.consume(t),n=0,l):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",p(t)):h(t)}function h(t){return(45===t||Mi(t))&&n++<63?(e.consume(t),45===t?h:u):r(t)}function p(r){return e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t}}};const no={tokenize:function(e,t,r){return Vi(e,(function(e){return null===e||ji(e)?t(e):r(e)}),"linePrefix")},partial:!0};const io={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 qi(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 Vi(e,e.attempt(io,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},exit:function(e){e.exit("blockQuote")}};const oo={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 Fi(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}};const ao={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",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:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",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:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",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:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",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:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",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:"Ũ",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:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"⁡",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",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:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",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:"˘",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:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",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:"∐",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:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",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:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",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:"η",eth:"ð",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:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",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:"⪐",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:"‐",iacute:"í",ic:"⁣",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",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:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",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:"⪅",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:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",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:"ℕ",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:"𝕟",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:"≹",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:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",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:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",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:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",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:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",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:"▭",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:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",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:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",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:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",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:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",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:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},so={}.hasOwnProperty;function co(e){return!!so.call(ao,e)&&ao[e]}const lo={name:"characterReference",tokenize:function(e,t,r){const n=this;let i,o,a=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,o=Mi,l(t))}function c(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Di,l):(e.enter("characterReferenceValue"),i=7,o=Li,l(t))}function l(s){let c;return 59===s&&a?(c=e.exit("characterReferenceValue"),o!==Mi||co(n.sliceSerialize(c))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(s)):o(s)&&a++<i?(e.consume(s),l):r(s)}}};const uo={name:"codeFenced",tokenize:function(e,t,r){const n=this,i={tokenize:function(e,t,r){let n=0;return Vi(e,i,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function i(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),o(t)}function o(t){return t===c?(e.consume(t),n++,o):n<l?r(t):(e.exit("codeFencedFenceSequence"),Vi(e,a,"whitespace")(t))}function a(n){return null===n||ji(n)?(e.exit("codeFencedFence"),t(n)):r(n)}},partial:!0},o={tokenize:function(e,t,r){const n=this;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o}function o(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0},a=this.events[this.events.length-1],s=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0;let c,l=0;return function(t){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c=t,u(t)};function u(t){return t===c?(e.consume(t),l++,u):(e.exit("codeFencedFenceSequence"),l<3?r(t):Vi(e,h,"whitespace")(t))}function h(t){return null===t||ji(t)?m(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||Ui(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Vi(e,f,"whitespace")(t)):96===t&&t===c?r(t):(e.consume(t),p)}function f(t){return null===t||ji(t)?m(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||ji(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):ji(t)?e.attempt(o,e.attempt(i,y,s?Vi(e,g,"linePrefix",s+1):g),y)(t):(e.enter("codeFlowValue"),E(t))}function E(t){return null===t||ji(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),E)}function y(r){return e.exit("codeFenced"),t(r)}},concrete:!0};const ho={name:"codeIndented",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("codeIndented"),Vi(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?o(e):r(e)}function o(t){return null===t?s(t):ji(t)?e.attempt(po,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||ji(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(r){return e.exit("codeIndented"),t(r)}}},po={tokenize:function(e,t,r){const n=this;return i;function i(t){return n.parser.lazy[n.now().line]?r(t):ji(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):Vi(e,o,"linePrefix",5)(t)}function o(e){const o=n.events[n.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):ji(e)?i(e):r(e)}},partial:!0};const fo={name:"codeText",tokenize:function(e,t,r){let n,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),o++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?r(t):96===t?(i=e.enter("codeTextSequence"),n=0,l(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):ji(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||ji(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),c)}function l(r){return 96===r?(e.consume(r),n++,l):n===o?(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 mo(e){const t={};let r,n,i,o,a,s,c,l=-1;for(;++l<e.length;){for(;l in t;)l=t[l];if(r=e[l],l&&"chunkFlow"===r[1].type&&"listItemPrefix"===e[l-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,go(e,l)),l=t[l],c=!0);else if(r[1]._container){for(i=l,n=void 0;i--&&(o=e[i],"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(n&&(e[n][1].type="lineEndingBlank"),o[1].type="lineEnding",n=i);n&&(r[1].end=Object.assign({},e[n][1].start),a=e.slice(n,l),a.unshift(r),xi(e,n,l-n+1,a))}}return!c}function go(e,t){const r=e[t][1],n=e[t][2];let i=t-1;const o=[],a=r._tokenizer||n.parser[r.contentType](r.start),s=a.events,c=[],l={};let u,h,p=-1,f=r,d=0,m=0;const g=[m];for(;f;){for(;e[++i][1]!==f;);o.push(i),f._tokenizer||(u=n.sliceStream(f),f.next||u.push(null),h&&a.defineSkip(f.start),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),h=f,f=f.next}for(f=r;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(a.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),p=g.length;p--;){const t=s.slice(g[p],g[p+1]),r=o.pop();c.unshift([r,r+t.length-1]),xi(e,r,2,t)}for(p=-1;++p<c.length;)l[d+c[p][0]]=d+c[p][1],d+=c[p][1]-c[p][0]-1;return l}const Eo={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):ji(t)?e.check(yo,o,i)(t):(e.consume(t),n)}function i(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function o(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 mo(e),e}},yo={tokenize:function(e,t,r){const n=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Vi(e,i,"linePrefix")};function i(i){if(null===i||ji(i))return r(i);const o=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(n.parser.constructs.flow,r,t)(i)}},partial:!0};function To(e,t,r,n,i,o,a,s,c){const l=c||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(n),e.enter(i),e.enter(o),e.consume(t),e.exit(o),h;if(null===t||41===t||Bi(t))return r(t);return e.enter(n),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),d(t)};function h(r){return 62===r?(e.enter(o),e.consume(r),e.exit(o),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(r))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),h(t)):null===t||60===t||ji(t)?r(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function d(i){return 40===i?++u>l?r(i):(e.consume(i),d):41===i?u--?(e.consume(i),d):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(n),t(i)):null===i||Ui(i)?u?r(i):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(n),t(i)):Bi(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 vo=Object.freeze({__proto__:null,factoryDestination:To});function bo(e,t,r,n,i,o){const a=this;let s,c=0;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),e.enter(o),l};function l(h){return null===h||91===h||93===h&&!s||94===h&&!c&&"_hiddenFootnoteSupport"in a.parser.constructs||c>999?r(h):93===h?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):ji(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(t){return null===t||91===t||93===t||ji(t)||c++>999?(e.exit("chunkString"),l(t)):(e.consume(t),s=s||!qi(t),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),c++,u):u(t)}}var _o=Object.freeze({__proto__:null,factoryLabel:bo});function Ao(e,t,r,n,i,o){let a;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s};function s(r){return r===a?(e.enter(i),e.consume(r),e.exit(i),e.exit(n),t):(e.enter(o),c(r))}function c(t){return t===a?(e.exit(o),s(a)):null===t?r(t):ji(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Vi(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(t))}function l(t){return t===a||null===t||ji(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?u:l)}function u(t){return t===a||92===t?(e.consume(t),l):l(t)}}var So=Object.freeze({__proto__:null,factoryTitle:Ao});function ko(e,t){let r;return function n(i){if(ji(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n;if(qi(i))return Vi(e,n,r?"linePrefix":"lineSuffix")(i);return t(i)}}var Co=Object.freeze({__proto__:null,factoryWhitespace:ko});function xo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var wo=Object.freeze({__proto__:null,normalizeIdentifier:xo});const Oo={name:"definition",tokenize:function(e,t,r){const n=this;let i;return function(t){return e.enter("definition"),bo.call(n,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function o(t){return i=xo(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),ko(e,To(e,e.attempt(No,Vi(e,a,"whitespace"),Vi(e,a,"whitespace")),r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):r(t)}function a(o){return null===o||ji(o)?(e.exit("definition"),n.parser.defined.includes(i)||n.parser.defined.push(i),t(o)):r(o)}}},No={tokenize:function(e,t,r){return function(t){return Ui(t)?ko(e,n)(t):r(t)};function n(t){return 34===t||39===t||40===t?Ao(e,Vi(e,i,"whitespace"),r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):r(t)}function i(e){return null===e||ji(e)?t(e):r(e)}},partial:!0};const Po={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 ji(n)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(n)):r(n)}}};const Ro={name:"headingAtx",tokenize:function(e,t,r){const n=this;let i=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),o(t)};function o(s){return 35===s&&i++<6?(e.consume(s),o):null===s||Ui(s)?(e.exit("atxHeadingSequence"),n.interrupt?t(s):a(s)):r(s)}function a(r){return 35===r?(e.enter("atxHeadingSequence"),s(r)):null===r||ji(r)?(e.exit("atxHeading"),t(r)):qi(r)?Vi(e,a,"whitespace")(r):(e.enter("atxHeadingText"),c(r))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),a(t))}function c(t){return null===t||35===t||Ui(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),c)}},resolve:function(e,t){let r,n,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(r={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},n={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},xi(e,o,i-o+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]]));return e}};const Io=["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","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Lo=["pre","script","style","textarea"],Do={name:"htmlFlow",tokenize:function(e,t,r){const n=this;let i,o,a,s,c;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),l};function l(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),f):63===s?(e.consume(s),i=3,n.interrupt?t:L):Ii(s)?(e.consume(s),a=String.fromCharCode(s),o=!0,d):r(s)}function u(o){return 45===o?(e.consume(o),i=2,h):91===o?(e.consume(o),i=5,a="CDATA[",s=0,p):Ii(o)?(e.consume(o),i=4,n.interrupt?t:L):r(o)}function h(i){return 45===i?(e.consume(i),n.interrupt?t:L):r(i)}function p(i){return i===a.charCodeAt(s++)?(e.consume(i),s===a.length?n.interrupt?t:C:p):r(i)}function f(t){return Ii(t)?(e.consume(t),a=String.fromCharCode(t),d):r(t)}function d(s){return null===s||47===s||62===s||Ui(s)?47!==s&&o&&Lo.includes(a.toLowerCase())?(i=1,n.interrupt?t(s):C(s)):Io.includes(a.toLowerCase())?(i=6,47===s?(e.consume(s),m):n.interrupt?t(s):C(s)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(s):o?E(s):g(s)):45===s||Mi(s)?(e.consume(s),a+=String.fromCharCode(s),d):r(s)}function m(i){return 62===i?(e.consume(i),n.interrupt?t:C):r(i)}function g(t){return qi(t)?(e.consume(t),g):S(t)}function E(t){return 47===t?(e.consume(t),S):58===t||95===t||Ii(t)?(e.consume(t),y):qi(t)?(e.consume(t),E):S(t)}function y(t){return 45===t||46===t||58===t||95===t||Mi(t)?(e.consume(t),y):T(t)}function T(t){return 61===t?(e.consume(t),v):qi(t)?(e.consume(t),T):E(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),c=t,b):qi(t)?(e.consume(t),v):(c=null,_(t))}function b(t){return null===t||ji(t)?r(t):t===c?(e.consume(t),A):(e.consume(t),b)}function _(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||Ui(t)?T(t):(e.consume(t),_)}function A(e){return 47===e||62===e||qi(e)?E(e):r(e)}function S(t){return 62===t?(e.consume(t),k):r(t)}function k(t){return qi(t)?(e.consume(t),k):null===t||ji(t)?C(t):r(t)}function C(t){return 45===t&&2===i?(e.consume(t),N):60===t&&1===i?(e.consume(t),P):62===t&&4===i?(e.consume(t),D):63===t&&3===i?(e.consume(t),L):93===t&&5===i?(e.consume(t),I):!ji(t)||6!==i&&7!==i?null===t||ji(t)?x(t):(e.consume(t),C):e.check(Mo,D,x)(t)}function x(t){return e.exit("htmlFlowData"),w(t)}function w(t){return null===t?M(t):ji(t)?e.attempt({tokenize:O,partial:!0},w,M)(t):(e.enter("htmlFlowData"),C(t))}function O(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 N(t){return 45===t?(e.consume(t),L):C(t)}function P(t){return 47===t?(e.consume(t),a="",R):C(t)}function R(t){return 62===t&&Lo.includes(a.toLowerCase())?(e.consume(t),D):Ii(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),R):C(t)}function I(t){return 93===t?(e.consume(t),L):C(t)}function L(t){return 62===t?(e.consume(t),D):45===t&&2===i?(e.consume(t),L):C(t)}function D(t){return null===t||ji(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),D)}function M(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},Mo={tokenize:function(e,t,r){return function(n){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),e.attempt(no,t,r)}},partial:!0};const Fo={name:"htmlText",tokenize:function(e,t,r){const n=this;let i,o,a,s;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),c};function c(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),_):63===t?(e.consume(t),v):Ii(t)?(e.consume(t),k):r(t)}function l(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),o="CDATA[",a=0,m):Ii(t)?(e.consume(t),T):r(t)}function u(t){return 45===t?(e.consume(t),h):r(t)}function h(t){return null===t||62===t?r(t):45===t?(e.consume(t),p):f(t)}function p(e){return null===e||62===e?r(e):f(e)}function f(t){return null===t?r(t):45===t?(e.consume(t),d):ji(t)?(s=f,I(t)):(e.consume(t),f)}function d(t){return 45===t?(e.consume(t),D):f(t)}function m(t){return t===o.charCodeAt(a++)?(e.consume(t),a===o.length?g:m):r(t)}function g(t){return null===t?r(t):93===t?(e.consume(t),E):ji(t)?(s=g,I(t)):(e.consume(t),g)}function E(t){return 93===t?(e.consume(t),y):g(t)}function y(t){return 62===t?D(t):93===t?(e.consume(t),y):g(t)}function T(t){return null===t||62===t?D(t):ji(t)?(s=T,I(t)):(e.consume(t),T)}function v(t){return null===t?r(t):63===t?(e.consume(t),b):ji(t)?(s=v,I(t)):(e.consume(t),v)}function b(e){return 62===e?D(e):v(e)}function _(t){return Ii(t)?(e.consume(t),A):r(t)}function A(t){return 45===t||Mi(t)?(e.consume(t),A):S(t)}function S(t){return ji(t)?(s=S,I(t)):qi(t)?(e.consume(t),S):D(t)}function k(t){return 45===t||Mi(t)?(e.consume(t),k):47===t||62===t||Ui(t)?C(t):r(t)}function C(t){return 47===t?(e.consume(t),D):58===t||95===t||Ii(t)?(e.consume(t),x):ji(t)?(s=C,I(t)):qi(t)?(e.consume(t),C):D(t)}function x(t){return 45===t||46===t||58===t||95===t||Mi(t)?(e.consume(t),x):w(t)}function w(t){return 61===t?(e.consume(t),O):ji(t)?(s=w,I(t)):qi(t)?(e.consume(t),w):C(t)}function O(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),i=t,N):ji(t)?(s=O,I(t)):qi(t)?(e.consume(t),O):(e.consume(t),i=void 0,R)}function N(t){return t===i?(e.consume(t),P):null===t?r(t):ji(t)?(s=N,I(t)):(e.consume(t),N)}function P(e){return 62===e||47===e||Ui(e)?C(e):r(e)}function R(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):62===t||Ui(t)?C(t):(e.consume(t),R)}function I(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Vi(e,L,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function L(t){return e.enter("htmlTextData"),s(t)}function D(n){return 62===n?(e.consume(n),e.exit("htmlTextData"),e.exit("htmlText"),t):r(n)}}};const Ho={name:"labelEnd",tokenize:function(e,t,r){const n=this;let i,o,a=n.events.length;for(;a--;)if(("labelImage"===n.events[a][1].type||"labelLink"===n.events[a][1].type)&&!n.events[a][1]._balanced){i=n.events[a][1];break}return function(t){if(!i)return r(t);return i._inactive?c(t):(o=n.parser.defined.includes(xo(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(Bo,t,o?t:c)(r):91===r?e.attempt(Uo,t,o?e.attempt(jo,t,c):c)(r):o?t(r):c(r)}function c(e){return i._balanced=!0,r(e)}},resolveTo:function(e,t){let r,n,i,o,a=e.length,s=0;for(;a--;)if(r=e[a][1],n){if("link"===r.type||"labelLink"===r.type&&r._inactive)break;"enter"===e[a][0]&&"labelLink"===r.type&&(r._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===r.type||"labelLink"===r.type)&&!r._balanced&&(n=a,"labelLink"!==r.type)){s=2;break}}else"labelEnd"===r.type&&(i=a);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)},l={type:"label",start:Object.assign({},e[n][1].start),end:Object.assign({},e[i][1].end)},u={type:"labelText",start:Object.assign({},e[n+s+2][1].end),end:Object.assign({},e[i-2][1].start)};return o=[["enter",c,t],["enter",l,t]],o=wi(o,e.slice(n+1,n+s+3)),o=wi(o,[["enter",u,t]]),o=wi(o,Zi(t.parser.constructs.insideSpan.null,e.slice(n+s+4,i-3),t)),o=wi(o,[["exit",u,t],e[i-2],e[i-1],["exit",l,t]]),o=wi(o,e.slice(i+1)),o=wi(o,[["exit",c,t]]),xi(e,n,e.length,o),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}},Bo={tokenize:function(e,t,r){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),ko(e,n)};function n(t){return 41===t?a(t):To(e,i,r,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return Ui(t)?ko(e,o)(t):a(t)}function o(t){return 34===t||39===t||40===t?Ao(e,ko(e,a),r,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):a(t)}function a(n){return 41===n?(e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),e.exit("resource"),t):r(n)}}},Uo={tokenize:function(e,t,r){const n=this;return function(t){return bo.call(n,e,i,r,"reference","referenceMarker","referenceString")(t)};function i(e){return n.parser.defined.includes(xo(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}}},jo={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 qo={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"),o):r(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}},resolveAll:Ho.resolveAll};const zo={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:Ho.resolveAll};const Go={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Vi(e,t,"linePrefix")}}};const $o={name:"thematicBreak",tokenize:function(e,t,r){let n,i=0;return function(t){return e.enter("thematicBreak"),n=t,o(t)};function o(s){return s===n?(e.enter("thematicBreakSequence"),a(s)):qi(s)?Vi(e,o,"whitespace")(s):i<3||null!==s&&!ji(s)?r(s):(e.exit("thematicBreak"),t(s))}function a(t){return t===n?(e.consume(t),i++,a):(e.exit("thematicBreakSequence"),o(t))}}};const Ko={name:"list",tokenize:function(e,t,r){const n=this,i=n.events[n.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=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:Li(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($o,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 Li(t)&&++a<10?(e.consume(t),s):(!n.interrupt||a<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(no,n.interrupt?r:l,e.attempt(Vo,h,u))}function l(e){return n.containerState.initialBlankLine=!0,o++,h(e)}function u(t){return qi(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),h):r(t)}function h(r){return n.containerState.size=o+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(no,i,o);function i(r){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Vi(e,t,"listItemIndent",n.containerState.size+1)(r)}function o(r){return n.containerState.furtherBlankLines||!qi(r)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,a(r)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Qo,t,a)(r))}function a(i){return n.containerState._closeFlow=!0,n.interrupt=void 0,Vi(e,e.attempt(Ko,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},Vo={tokenize:function(e,t,r){const n=this;return Vi(e,(function(e){const i=n.events[n.events.length-1];return!qi(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):r(e)}),"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Qo={tokenize:function(e,t,r){const n=this;return Vi(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 Wo={name:"setextUnderline",tokenize:function(e,t,r){const n=this;let i,o,a=n.events.length;for(;a--;)if("lineEnding"!==n.events[a][1].type&&"linePrefix"!==n.events[a][1].type&&"content"!==n.events[a][1].type){o="paragraph"===n.events[a][1].type;break}return function(t){if(!n.parser.lazy[n.now().line]&&(n.interrupt||o))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"),Vi(e,c,"lineSuffix")(t))}function c(n){return null===n||ji(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}},resolveTo:function(e,t){let r,n,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){r=o;break}"paragraph"===e[o][1].type&&(n=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const a={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",a,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=a;return e.push(["exit",a,t]),e}};var Yo=Object.freeze({__proto__:null,attention:eo,autolink:ro,blankLine:no,blockQuote:io,characterEscape:oo,characterReference:lo,codeFenced:uo,codeIndented:ho,codeText:fo,content:Eo,definition:Oo,hardBreakEscape:Po,headingAtx:Ro,htmlFlow:Do,htmlText:Fo,labelEnd:Ho,labelStartImage:qo,labelStartLink:zo,lineEnding:Go,list:Ko,setextUnderline:Wo,thematicBreak:$o});const Xo={tokenize:function(e){const t=this,r=e.attempt(no,(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,Vi(e,e.attempt(this.parser.constructs.flow,n,e.attempt(Eo,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 Jo={resolveAll:ra()},Zo=ta("string"),ea=ta("text");function ta(e){return{tokenize:function(t){const r=this,n=this.parser.constructs[e],i=t.attempt(n,o,a);return o;function o(e){return c(e)?i(e):a(e)}function a(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:ra("text"===e?na:void 0)}}function ra(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 na(e,t){let r=0;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 o,a=i.length,s=-1,c=0;for(;a--;){const e=i[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)c++,s--;if(s)break;s=-1}else if(-2===e)o=!0,c++;else if(-1!==e){a++;break}}if(c){const i={type:r===e.length||o||c<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-c,offset:n.end.offset-c,_index:n.start._index+a,_bufferIndex:a?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 ia(e,t,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let a=[],s=[];const c={consume:function(e){ji(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===a[n._index].length&&(n._bufferIndex=-1,n._index++));l.previous=e},enter:function(e,t){const r=t||{};return r.type=e,r.start=p(),l.events.push(["enter",r,l]),s.push(r),r},exit:function(e){const t=s.pop();return t.end=p(),l.events.push(["exit",t,l]),t},attempt:g((function(e,t){E(e,t.from)})),check:g(m),interrupt:g(m,{interrupt:!0})},l={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:function(e,t){return function(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const o=e[r];let a;if("string"==typeof o)a=o;else switch(o){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&i)continue;a=" ";break;default:a=String.fromCharCode(o)}i=-2===o,n.push(a)}return n.join("")}(h(e),t)},now:p,defineSkip:function(e){i[e.line]=e.column,y()},write:function(e){if(a=wi(a,e),f(),null!==a[a.length-1])return[];return E(t,0),l.events=Zi(o,l.events,l),l.events}};let u=t.tokenize.call(l,c);return t.resolveAll&&o.push(t),l;function h(e){return function(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;r===i?a=[e[r].slice(n,o)]:(a=e.slice(r,i),n>-1&&(a[0]=a[0].slice(n)),o>0&&a.push(e[i].slice(0,o)));return a}(a,e)}function p(){return Object.assign({},n)}function f(){let e;for(;n._index<a.length;){const t=a[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){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(r,i,o){let a,u,h,f;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 a=e,u=0,0===e.length?o:m(e[u])}function m(e){return function(r){f=function(){const e=p(),t=l.previous,r=l.currentConstruct,i=l.events.length,o=Array.from(s);return{restore:a,from:i};function a(){n=e,l.previous=t,l.currentConstruct=r,l.events.length=i,s=o,y()}}(),h=e,e.partial||(l.currentConstruct=e);if(e.name&&l.parser.constructs.disable.null.includes(e.name))return E();return e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,g,E)(r)}}function g(t){return e(h,f),i}function E(e){return f.restore(),++u<a.length?m(a[u]):o}}}function E(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&xi(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function y(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}const oa={42:Ko,43:Ko,45:Ko,48:Ko,49:Ko,50:Ko,51:Ko,52:Ko,53:Ko,54:Ko,55:Ko,56:Ko,57:Ko,62:io},aa={91:Oo},sa={[-2]:ho,[-1]:ho,32:ho},ca={35:Ro,42:$o,45:[Wo,$o],60:Do,61:Wo,95:$o,96:uo,126:uo},la={38:lo,92:oo},ua={[-5]:Go,[-4]:Go,[-3]:Go,33:qo,38:lo,42:eo,60:[ro,Fo],91:zo,92:[Po,oo],93:Ho,95:eo,96:fo},ha={null:[eo,Jo]};var pa=Object.freeze({__proto__:null,document:oa,contentInitial:aa,flowInitial:sa,flow:ca,string:la,text:ua,insideSpan:ha,attentionMarkers:{null:[42,95]},disable:{null:[]}});const fa=/[\0\t\n\r]/g;function da(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 ma=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ga(e){return e.replace(ma,Ea)}function Ea(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return da(r.slice(t?2:1),t?16:10)}return co(r)||e}const ya={}.hasOwnProperty,Ta=function(e,t,r){return"string"!=typeof t&&(r=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(re),autolinkProtocol:x,autolinkEmail:x,atxHeading:s(J),blockQuote:s(V),characterEscape:x,characterReference:x,codeFenced:s(Q),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Q,c),codeText:s(W,c),codeTextData:x,data:x,codeFlowValue:x,definition:s(Y),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(X),hardBreakEscape:s(Z),hardBreakTrailing:s(Z),htmlFlow:s(ee,c),htmlFlowData:x,htmlText:s(ee,c),htmlTextData:x,image:s(te),label:c,link:s(re),listItem:s(ie),listItemValue:d,listOrdered:s(ne,f),listUnordered:s(ne),paragraph:s(oe),reference:j,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(J),strong:s(ae),thematicBreak:s(ce)},exit:{atxHeading:u(),atxHeadingSequence:A,autolink:u(),autolinkEmail:K,autolinkProtocol:$,blockQuote:u(),characterEscapeValue:w,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:G,codeFenced:u(y),codeFencedFence:E,codeFencedFenceInfo:m,codeFencedFenceMeta:g,codeFlowValue:w,codeIndented:u(T),codeText:u(I),codeTextData:w,data:w,definition:u(),definitionDestinationString:_,definitionLabelString:v,definitionTitleString:b,emphasis:u(),hardBreakEscape:u(N),hardBreakTrailing:u(N),htmlFlow:u(P),htmlFlowData:w,htmlText:u(R),htmlTextData:w,image:u(D),label:F,labelText:M,lineEnding:O,link:u(L),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:q,resourceDestinationString:H,resourceTitleString:B,resource:U,setextHeading:u(C),setextHeadingLineSequence:k,setextHeadingText:S,strong:u(),thematicBreak:u()}};ba(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(e){let r={type:"root",children:[]};const n={stack:[r],tokenStack:[],config:t,enter:l,exit:h,buffer:c,resume:p,setData:o,getData:a},s=[];let u=-1;for(;++u<e.length;)if("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)if("enter"===e[u][0])s.push(u);else{u=i(e,s.pop(),u)}for(u=-1;++u<e.length;){const r=t[e[u][0]];ya.call(r,e[u][1].type)&&r[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},n),e[u][1])}if(n.tokenStack.length>0){const e=n.tokenStack[n.tokenStack.length-1];(e[1]||Aa).call(n,void 0,e[0])}for(r.position={start:va(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:va(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r}function i(e,t,r){let n,i,o,a,s=t-1,c=-1,l=!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--,a=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!n||a||c||o||(o=s),a=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(a=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 a=s;for(i=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",l=!0),t[1].type="lineEnding",i=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<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++,o=void 0,a=!0)}}return e[t][1]._spread=l,r}function o(e,t){r[e]=t}function a(e){return r[e]}function s(e,t){return r;function r(r){l.call(this,e(r),r),t&&t.call(this,r)}}function c(){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:va(t.start)},e}function u(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+"` ("+ni({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]||Aa).call(this,e,n[0])}return r.position.end=va(e.end),r}function p(){return Si(this.stack.pop())}function f(){o("expectingFirstListItemValue",!0)}function d(e){if(a("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),o("expectingFirstListItemValue")}}function m(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function g(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function E(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function T(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=xo(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function _(){const e=this.resume();this.stack[this.stack.length-1].url=e}function A(e){const t=this.stack[this.stack.length-1];if(!t.depth){const r=this.sliceSerialize(e).length;t.depth=r}}function S(){o("setextHeadingSlurpLineEnding",!0)}function k(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function C(){o("setextHeadingSlurpLineEnding")}function x(e){const t=this.stack[this.stack.length-1];let r=t.children[t.children.length-1];r&&"text"===r.type||(r=se(),r.position={start:va(e.start)},t.children.push(r)),this.stack.push(r)}function w(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=va(e.end)}function O(e){const r=this.stack[this.stack.length-1];if(a("atHardBreak")){return r.children[r.children.length-1].position.end=va(e.end),void o("atHardBreak")}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(r.type)&&(x.call(this,e),w.call(this,e))}function N(){o("atHardBreak",!0)}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){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 L(){const e=this.stack[this.stack.length-1];if(a("inReference")){const t=a("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;o("referenceType")}function D(){const e=this.stack[this.stack.length-1];if(a("inReference")){const t=a("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;o("referenceType")}function M(e){const t=this.sliceSerialize(e),r=this.stack[this.stack.length-2];r.label=ga(t),r.identifier=xo(t).toLowerCase()}function F(){const e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];if(o("inReference",!0),"link"===r.type){const t=e.children;r.children=t}else r.alt=t}function H(){const e=this.resume();this.stack[this.stack.length-1].url=e}function B(){const e=this.resume();this.stack[this.stack.length-1].title=e}function U(){o("inReference")}function j(){o("referenceType","collapsed")}function q(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=xo(this.sliceSerialize(e)).toLowerCase(),o("referenceType","full")}function z(e){o("characterReferenceType",e.type)}function G(e){const t=this.sliceSerialize(e),r=a("characterReferenceType");let n;if(r)n=da(t,"characterReferenceMarkerNumeric"===r?10:16),o("characterReferenceType");else{n=co(t)}const i=this.stack.pop();i.value+=n,i.position.end=va(e.end)}function $(e){w.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function K(e){w.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function V(){return{type:"blockquote",children:[]}}function Q(){return{type:"code",lang:null,meta:null,value:""}}function W(){return{type:"inlineCode",value:""}}function Y(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function J(){return{type:"heading",depth:void 0,children:[]}}function Z(){return{type:"break"}}function ee(){return{type:"html",value:""}}function te(){return{type:"image",title:null,url:"",alt:null}}function re(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function ie(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ae(){return{type:"strong",children:[]}}function se(){return{type:"text",value:""}}function ce(){return{type:"thematicBreak"}}}(r)(function(e){for(;!mo(e););return e}(function(e={}){const t={defined:[],lazy:{},constructs:Ni([pa].concat(e.extensions||[])),content:r(Wi),document:r(Yi),flow:r(Xo),string:r(Zo),text:r(ea)};return t;function r(e){return function(r){return ia(t,e,r)}}}(r).document().write(function(){let e,t=1,r="",n=!0;return function(i,o,a){const s=[];let c,l,u,h,p;for(i=r+i.toString(o),u=0,r="",n&&(65279===i.charCodeAt(0)&&u++,n=void 0);u<i.length;){if(fa.lastIndex=u,c=fa.exec(i),h=c&&void 0!==c.index?c.index:i.length,p=i.charCodeAt(h),!c){r=i.slice(u);break}if(10===p&&u===h&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<h&&(s.push(i.slice(u,h)),t+=h-u),p){case 0:s.push(65533),t++;break;case 9:for(l=4*Math.ceil(t/4),s.push(-2);t++<l;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=h+1}return a&&(e&&s.push(-5),r&&s.push(r),s.push(null)),s}}()(e,t,!0))))};function va(e){return{line:e.line,column:e.column,offset:e.offset}}function ba(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?ba(e,n):_a(e,n)}}function _a(e,t){let r;for(r in t)if(ya.call(t,r))if("canContainEols"===r){const n=t[r];n&&e[r].push(...n)}else if("transforms"===r){const n=t[r];n&&e[r].push(...n)}else if("enter"===r||"exit"===r){const n=t[r];n&&Object.assign(e[r],n)}}function Aa(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ni({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ni({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ni({start:t.start,end:t.end})+") is still open")}var Sa=he(Object.freeze({__proto__:null,default:function(e){Object.assign(this,{Parser:t=>{const r=this.data("settings");return Ta(t,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}}));const ka={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),o):r(t)}function o(t){return 46===t?(e.consume(t),a):r(t)}function a(e){return null===e||ji(e)?r(e):t(e)}},partial:!0},Ca={tokenize:function(e,t,r){let n,i;return o;function o(t){return 38===t?e.check(Oa,s,a)(t):46===t||95===t?e.check(wa,s,a)(t):null===t||Bi(t)||zi(t)||45!==t&&Gi(t)?s(t):(e.consume(t),o)}function a(t){return 46===t?(i=n,n=void 0,e.consume(t),o):(95===t&&(n=!0),e.consume(t),o)}function s(e){return i||n?r(e):t(e)}},partial:!0},xa={tokenize:function(e,t){let r=0;return n;function n(a){return 38===a?e.check(Oa,t,i)(a):(40===a&&r++,41===a?e.check(wa,o,i)(a):Fa(a)?t(a):Ma(a)?e.check(wa,t,i)(a):(e.consume(a),n))}function i(t){return e.consume(t),n}function o(e){return r--,r<0?t(e):i(e)}},partial:!0},wa={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(i){return Ma(i)?(e.consume(i),n):Fa(i)?t(i):r(i)}},partial:!0},Oa={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(t){return Ii(t)?(e.consume(t),n):59===t?(e.consume(t),i):r(t)}function i(e){return Fa(e)?t(e):r(e)}},partial:!0},Na={tokenize:function(e,t,r){const n=this;return function(t){if(87!==t&&119!==t||!Ba(n.previous)||qa(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ka,e.attempt(Ca,e.attempt(xa,i),r),r)(t)};function i(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}},previous:Ba},Pa={tokenize:function(e,t,r){const n=this;return function(t){if(72!==t&&104!==t||!Ua(n.previous)||qa(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),o):r(t)}function o(t){return 84===t||116===t?(e.consume(t),a):r(t)}function a(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),l):r(t)}function l(t){return 47===t?(e.consume(t),u):r(t)}function u(t){return 47===t?(e.consume(t),h):r(t)}function h(t){return null===t||Bi(t)||zi(t)||Gi(t)?r(t):e.attempt(Ca,e.attempt(xa,p),r)(t)}function p(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}},previous:Ua},Ra={tokenize:function(e,t,r){const n=this;let i,o;return function(t){if(!Ha(t)||!ja(n.previous)||qa(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return Ha(t)?(e.consume(t),a):64===t?(e.consume(t),s):r(t)}function s(t){return 46===t?e.check(wa,h,c)(t):45===t||95===t?e.check(wa,r,l)(t):Mi(t)?(!o&&Li(t)&&(o=!0),e.consume(t),s):h(t)}function c(t){return e.consume(t),i=!0,o=void 0,s}function l(t){return e.consume(t),u}function u(t){return 46===t?e.check(wa,r,c)(t):s(t)}function h(n){return i&&!o?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(n)):r(n)}},previous:ja},Ia={},La={text:Ia};let Da=48;for(;Da<123;)Ia[Da]=Ra,Da++,58===Da?Da=65:91===Da&&(Da=97);function Ma(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 Fa(e){return null===e||60===e||Ui(e)}function Ha(e){return 43===e||45===e||46===e||95===e||Mi(e)}function Ba(e){return null===e||40===e||42===e||95===e||126===e||Ui(e)}function Ua(e){return null===e||!Ii(e)}function ja(e){return 47!==e&&Ua(e)}function qa(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}Ia[43]=Ra,Ia[45]=Ra,Ia[46]=Ra,Ia[95]=Ra,Ia[72]=[Ra,Pa],Ia[104]=[Ra,Pa],Ia[87]=[Ra,Na],Ia[119]=[Ra,Na];const za={tokenize:function(e,t,r){const n=this;return Vi(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 Ga(e,t,r){const n=this;let i=n.events.length;const o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a;for(;i--;){const e=n.events[i][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!a||!a._balanced)return r(i);const s=xo(n.sliceSerialize({start:a.end,end:n.now()}));if(94!==s.charCodeAt(0)||!o.includes(s.slice(1)))return r(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function $a(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 o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...s),e}function Ka(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o,a=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 u;return null===s||91===s||a++>999?r(s):93===s?o?(e.exit("chunkString"),u=e.exit("gfmFootnoteCallString"),i.includes(xo(n.sliceSerialize(u)))?function(r){return e.enter("gfmFootnoteCallLabelMarker"),e.consume(r),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t}(s):r(s)):r(s):(e.consume(s),Ui(s)||(o=!0),92===s?l:c)}function l(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}}function Va(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o,a,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"),l):r(t)}function l(t){let i;return null===t||91===t||s>999?r(t):93===t?a?(i=e.exit("gfmFootnoteDefinitionLabelString"),o=xo(n.sliceSerialize(i)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p):r(t):ji(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s++,l):(e.enter("chunkString").contentType="string",u(t))}function u(t){return null===t||ji(t)||91===t||93===t||s>999?(e.exit("chunkString"),l(t)):(Ui(t)||(a=!0),s++,e.consume(t),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}function p(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),Vi(e,f,"gfmFootnoteDefinitionWhitespace")):r(t)}function f(e){return i.includes(o)||i.push(o),t(e)}}function Qa(e,t,r){return e.check(no,t,e.attempt(za,t,r))}function Wa(e){e.exit("gfmFootnoteDefinition")}function Ya(e={}){let t=e.singleTilde;const r={tokenize:function(e,r,n){const i=this.previous,o=this.events;let a=0;return function(t){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return n(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(o){const c=Ji(i);if(126===o)return a>1?n(o):(e.consume(o),a++,s);if(a<2&&!t)return n(o);const l=e.exit("strikethroughSequenceTemporary"),u=Ji(o);return l._open=!u||2===u&&Boolean(c),l._close=!c||2===c&&Boolean(u),r(o)}},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)},o={type:"strikethroughText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},a=[["enter",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["enter",o,t]];xi(a,a.length,0,Zi(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),xi(a,a.length,0,[["exit",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",i,t]]),xi(e,n-1,r-n+3,a),r=n+a.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 Xa={flow:{null:{tokenize:function(e,t,r){const n=this,i=[];let o,a,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"),h(t)};function c(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,l}function l(t){return null===t||ji(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:w,partial:!0},(function(t){return n.interrupt=i,e.enter("tableDelimiterRow"),f(t)}),(function(e){return n.interrupt=i,r(e)}))(t)}(t):qi(t)?(e.enter("whitespace"),e.consume(t),u):(o&&(o=void 0,s++),124===t?c(t):(e.enter("temporaryTableCellContent"),h(t)))}function u(t){return qi(t)?(e.consume(t),u):(e.exit("whitespace"),l(t))}function h(t){return null===t||124===t||Ui(t)?(e.exit("temporaryTableCellContent"),l(t)):(e.consume(t),92===t?p:h)}function p(t){return 92===t||124===t?(e.consume(t),h):h(t)}function f(t){return null===t||ji(t)?y(t):qi(t)?(e.enter("whitespace"),e.consume(t),d):45===t?(e.enter("tableDelimiterFiller"),e.consume(t),a=!0,i.push("none"),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"),f):r(t)}function d(t){return qi(t)?(e.consume(t),d):(e.exit("whitespace"),f(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",E):f(t))}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),e.consume(t),a=!0,m):r(t)}function E(t){return null===t||ji(t)?y(t):qi(t)?(e.enter("whitespace"),e.consume(t),d):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):r(t)}function y(t){return e.exit("tableDelimiterRow"),a&&s===i.length?null===t?T(t):e.check(Ja,T,e.attempt({tokenize:w,partial:!0},Vi(e,v,"linePrefix",4),T))(t):r(t)}function T(r){return e.exit("table"),t(r)}function v(t){return e.enter("tableBody"),b(t)}function b(t){return e.enter("tableRow"),124===t?_(t):(e.enter("temporaryTableCellContent"),k(t))}function _(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),A}function A(t){return null===t||ji(t)?function(t){if(e.exit("tableRow"),null===t)return x(t);return e.check(Ja,x,e.attempt({tokenize:w,partial:!0},Vi(e,b,"linePrefix",4),x))(t)}(t):qi(t)?(e.enter("whitespace"),e.consume(t),S):124===t?_(t):(e.enter("temporaryTableCellContent"),k(t))}function S(t){return qi(t)?(e.consume(t),S):(e.exit("whitespace"),A(t))}function k(t){return null===t||124===t||Ui(t)?(e.exit("temporaryTableCellContent"),A(t)):(e.consume(t),92===t?C:k)}function C(t){return 92===t||124===t?(e.consume(t),k):k(t)}function x(t){return e.exit("tableBody"),T(t)}function w(e,t,r){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Vi(e,i,"linePrefix")};function i(i){if(n.parser.lazy[n.now().line]||null===i||ji(i))return r(i);const o=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[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,o,a,s,c,l=-1;for(;++l<e.length;){const u=e[l][1];if(i&&("temporaryTableCellContent"===u.type&&(o=o||l,a=l),("tableCellDivider"===u.type||"tableRow"===u.type)&&a)){const r={type:"tableContent",start:e[o][1].start,end:e[a][1].end},n={type:"chunkText",start:r.start,end:r.end,contentType:"text"};e.splice(o,a-o+1,["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]),l-=a-o-3,o=void 0,a=void 0}if("exit"===e[l][0]&&void 0!==s&&s+(c?0:1)<l&&("tableCellDivider"===u.type||"tableRow"===u.type&&(s+3<l||"whitespace"!==e[s][1].type))){const i={type:n?"tableDelimiter":r?"tableHeader":"tableData",start:e[s][1].start,end:e[l][1].end};e.splice(l+("tableCellDivider"===u.type?1:0),0,["exit",i,t]),e.splice(s,0,["enter",i,t]),l+=2,s=l+1,c=!0}"tableRow"===u.type&&(i="enter"===e[l][0],i&&(s=l+1,c=!1)),"tableDelimiterRow"===u.type&&(n="enter"===e[l][0],n&&(s=l+1,c=!1)),"tableHead"===u.type&&(r="enter"===e[l][0])}return e}}}},Ja={tokenize:function(e,t,r){let n=0;return function(t){return e.enter("check"),e.consume(t),i};function i(o){return-1===o||32===o?(e.consume(o),n++,4===n?t:i):null===o||Ui(o)?t(o):r(o)}},partial:!0};const Za={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 Ui(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):r(t)}function o(n){return 93===n?(e.enter("taskListCheckMarker"),e.consume(n),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:ts},t,r)):r(n)}}},es={text:{91:Za}};function ts(e,t,r){const n=this;return Vi(e,(function(e){const i=n.events[n.events.length-1];return(i&&"whitespace"===i[1].type||ji(e))&&null!==e?t(e):r(e)}),"whitespace")}function rs(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}function ns(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const is=function(e){if(null==e)return as;if("string"==typeof e)return function(e){return os(t);function t(t){return t&&t.type===e}}(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=is(e[r]);return os(n);function n(...e){let r=-1;for(;++r<t.length;)if(t[r].call(this,...e))return!0;return!1}}(e):function(e){return os(t);function t(t){let r;for(r in e)if(t[r]!==e[r])return!1;return!0}}(e);if("function"==typeof e)return os(e);throw new Error("Expected function, string, or object as test")};function os(e){return function(t,...r){return Boolean(t&&"object"==typeof t&&"type"in t&&Boolean(e.call(this,t,...r)))}}function as(){return!0}var ss=Object.freeze({__proto__:null,is:function e(t,r,n,i,o){const a=is(r);if(null!=n&&("number"!=typeof n||n<0||n===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(!(null==i||e(i)&&i.children))throw new Error("Expected parent node");if(null==i!=(null==n))throw new Error("Expected both parent and index");return!(!t||!t.type||"string"!=typeof t.type)&&Boolean(a.call(o,t,n,i))},convert:is});const cs=!0,ls=!1,us="skip",hs=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);const i=is(t),o=n?-1:1;!function e(a,s,c){const l=a&&"object"==typeof a?a:{};if("string"==typeof l.type){const e="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(u=a.type+(e?"<"+e+">":""),""+u+")")})}var u;return h;function h(){let l,u,h,p=[];if((!t||i(a,s,c[c.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[cs,e];return[e]}(r(a,c)),p[0]===ls))return p;if(a.children&&p[0]!==us)for(u=(n?a.children.length:-1)+o,h=c.concat(a);u>-1&&u<a.children.length;){if(l=e(a.children[u],u,h)(),l[0]===ls)return l;u="number"==typeof l[1]?l[1]:u+o}return p}}(e,void 0,[])()};const ps={}.hasOwnProperty,fs=function(e,t,r,n){let i,o;"string"==typeof t||t instanceof RegExp?(o=[[t,r]],i=n):(o=t,i=r),i||(i={});const a=is(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([ds(e[r][0]),ms(e[r][1])])}else{let r;for(r in e)ps.call(e,r)&&t.push([ds(r),ms(e[r])])}return t}(o);let c=-1;for(;++c<s.length;)hs(e,"text",l);return e;function l(e,t){let r,n=-1;for(;++n<t.length;){const e=t[n];if(a(e,r?r.children.indexOf(e):void 0,r))return;r=e}if(r)return function(e,t){const r=t[t.length-1],n=s[c][0],i=s[c][1];let o=0;const a=r.children.indexOf(e);let l=!1,u=[];n.lastIndex=0;let h=n.exec(e.value);for(;h;){const r=h.index,a={index:h.index,input:h.input,stack:[...t,e]};let s=i(...h,a);if("string"==typeof s&&(s=s.length>0?{type:"text",value:s}:void 0),!1!==s&&(o!==r&&u.push({type:"text",value:e.value.slice(o,r)}),Array.isArray(s)?u.push(...s):s&&u.push(s),o=r+h[0].length,l=!0),!n.global)break;h=n.exec(e.value)}l?(o<e.value.length&&u.push({type:"text",value:e.value.slice(o)}),r.children.splice(a,1,...u)):u=[e];return a+u.length}(e,t)}};function ds(e){return"string"==typeof e?new RegExp(ns(e),"g"):e}function ms(e){return"function"==typeof e?e:()=>e}const gs="phrasing",Es=["autolink","link","image","label"],ys={transforms:[function(e){fs(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,bs],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,_s]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:vs,literalAutolinkHttp:vs,literalAutolinkWww:vs},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);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}}},Ts={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:gs,notInConstruct:Es},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:gs,notInConstruct:Es},{character:":",before:"[ps]",after:"\\/",inConstruct:gs,notInConstruct:Es}]};function vs(e){this.config.enter.autolinkProtocol.call(this,e)}function bs(e,t,r,n,i){let o="";if(!As(i))return!1;if(/^w/i.test(t)&&(r=t+r,t="",o="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 a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const i=rs(e,"(");let o=rs(e,")");for(;-1!==n&&i>o;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),o++;return[e,r]}(r+n);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function _s(e,t,r,n){return!(!As(n,!0)||/[-\d_]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function As(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||zi(r)||Gi(r))&&(!t||47!==r)}function Ss(e){return e.label||!e.identifier?e.label||"":ga(e.identifier)}function ks(e,t,r){const n=t.indexStack,i=e.children||[],o=t.createTracker(r),a=[];let s=-1;for(n.push(-1);++s<i.length;){const r=i[s];n[n.length-1]=s,a.push(o.move(t.handle(r,e,t,{before:"\n",after:"\n",...o.current()}))),"list"!==r.type&&(t.bulletLastUsed=void 0),s<i.length-1&&a.push(o.move(Cs(r,i[s+1],e,t)))}return n.pop(),a.join("")}function Cs(e,t,r,n){let i=n.join.length;for(;i--;){const o=n.join[i](e,t,r,n);if(!0===o||1===o)break;if("number"==typeof o)return"\n".repeat(1+o);if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const xs=/\r?\n|\r/g;function ws(e,t){const r=[];let n,i=0,o=0;for(;n=xs.exec(e);)a(e.slice(i,n.index)),r.push(n[0]),i=n.index+n[0].length,o++;return a(e.slice(i)),r.join("");function a(e){r.push(t(e,o,!e))}}function Os(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 Ns(e,t){return Ps(e,t.inConstruct,!0)&&!Ps(e,t.notInConstruct,!1)}function Ps(e,t,r){if("string"==typeof t&&(t=[t]),!t||0===t.length)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function Rs(e,t,r){const n=(r.before||"")+(t||"")+(r.after||""),i=[],o=[],a={};let s=-1;for(;++s<e.unsafe.length;){const t=e.unsafe[s];if(!Ns(e.stack,t))continue;const r=Os(t);let o;for(;o=r.exec(n);){const e="before"in t||Boolean(t.atBreak),r="after"in t,n=o.index+(e?o[1].length:0);i.includes(n)?(a[n].before&&!e&&(a[n].before=!1),a[n].after&&!r&&(a[n].after=!1)):(i.push(n),a[n]={before:e,after:r})}}i.sort(Is);let c=r.before?r.before.length:0;const l=n.length-(r.after?r.after.length:0);for(s=-1;++s<i.length;){const e=i[s];e<c||e>=l||(e+1<l&&i[s+1]===e+1&&a[e].after&&!a[e+1].before&&!a[e+1].after||i[s-1]===e-1&&a[e].before&&!a[e-1].before&&!a[e-1].after||(c!==e&&o.push(Ls(n.slice(c,e),"\\")),c=e,!/[!-/:-@[-`{-~]/.test(n.charAt(e))||r.encode&&r.encode.includes(n.charAt(e))?(o.push("&#x"+n.charCodeAt(e).toString(16).toUpperCase()+";"),c++):o.push("\\")))}return o.push(Ls(n.slice(c,l),r.after)),o.join("")}function Is(e,t){return e-t}function Ls(e,t){const r=/\\(?=[!-/:-@[-`{-~])/g,n=[],i=[],o=e+t;let a,s=-1,c=0;for(;a=r.exec(o);)n.push(a.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("")}function Ds(e){const t=e||{},r=t.now||{};let n=t.lineShift||0,i=r.line||1,o=r.column||1;return{move:function(e){const t=e||"",r=t.split(/\r?\n|\r/g),a=r[r.length-1];return i+=r.length-1,o=1===r.length?o+a.length:1+a.length+n,t},current:function(){return{now:{line:i,column:o},lineShift:n}},shift:function(e){n+=e}}}function Ms(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Fs(){this.buffer()}function Hs(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=xo(this.sliceSerialize(e)).toLowerCase()}function Bs(e){this.exit(e)}function Us(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function js(){this.buffer()}function qs(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=xo(this.sliceSerialize(e)).toLowerCase()}function zs(e){this.exit(e)}function Gs(e,t,r,n){const i=Ds(n);let o=i.move("[^");const a=r.enter("footnoteReference"),s=r.enter("reference");return o+=i.move(Rs(r,Ss(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function $s(e,t,r,n){const i=Ds(n);let o=i.move("[^");const a=r.enter("footnoteDefinition"),s=r.enter("label");return o+=i.move(Rs(r,Ss(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(ws(ks(e,r,i.current()),Ks)),a(),o}function Ks(e,t,r){return 0===t?e:(r?"":" ")+e}function Vs(e,t,r){const n=t.indexStack,i=e.children||[],o=[];let a=-1,s=r.before;n.push(-1);let c=t.createTracker(r);for(;++a<i.length;){const l=i[a];let u;if(n[n.length-1]=a,a+1<i.length){let r=t.handle.handlers[i[a+1].type];r&&r.peek&&(r=r.peek),u=r?r(i[a+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else u=r.after;o.length>0&&("\r"===s||"\n"===s)&&"html"===l.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" ",c=t.createTracker(r),c.move(o.join(""))),o.push(c.move(t.handle(l,e,t,{...c.current(),before:s,after:u}))),s=o[o.length-1].slice(-1)}return n.pop(),o.join("")}Gs.peek=function(){return"["};Ys.peek=function(){return"~"};const Qs={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},Ws={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:Ys}};function Ys(e,t,r,n){const i=Ds(n),o=r.enter("strikethrough");let a=i.move("~~");return a+=Vs(e,r,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function Xs(e,t,r){let n=e.value||"",i="`",o=-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+" ");++o<r.unsafe.length;){const e=r.unsafe[o],t=Os(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 Zs(e){return e.length}function ec(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}Xs.peek=function(){return"`"};const tc={enter:{table:function(e){const t=e._align;this.enter({type:"table",align:t.map((e=>"none"===e?null:e)),children:[]},e),this.setData("inTable",!0)},tableData:nc,tableHeader:nc,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,ic));const r=this.stack[this.stack.length-1];r.value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:rc,tableHeader:rc,tableRow:rc}};function rc(e){this.exit(e)}function nc(e){this.enter({type:"tableCell",children:[]},e)}function ic(e,t){return"|"===t?t:e}function oc(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,o=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,n){return s(function(e,t,r){const n=e.children;let i=-1;const o=[],a=t.enter("table");for(;++i<n.length;)o[i]=c(n[i],t,r);return a(),o}(e,r,n),e.align)},tableRow:function(e,t,r,n){const i=c(e,r,n),o=s([i]);return o.slice(0,o.indexOf("\n"))},tableCell:a,inlineCode:function(e,t,r){let n=Xs(e,0,r);r.stack.includes("tableCell")&&(n=n.replace(/\|/g,"\\$&"));return n}}};function a(e,t,r,n){const i=r.enter("tableCell"),a=r.enter("phrasing"),s=Vs(e,r,{...n,before:o,after:o});return a(),i(),s}function s(e,t){return function(e,t={}){const r=(t.align||[]).concat(),n=t.stringLength||Zs,i=[],o=[],a=[],s=[];let c=0,l=-1;for(;++l<e.length;){const r=[],i=[];let u=-1;for(e[l].length>c&&(c=e[l].length);++u<e[l].length;){const o=Js(e[l][u]);if(!1!==t.alignDelimiters){const e=n(o);i[u]=e,(void 0===s[u]||e>s[u])&&(s[u]=e)}r.push(o)}o[l]=r,a[l]=i}let u=-1;if("object"==typeof r&&"length"in r)for(;++u<c;)i[u]=ec(r[u]);else{const e=ec(r);for(;++u<c;)i[u]=e}u=-1;const h=[],p=[];for(;++u<c;){const e=i[u];let r="",n="";99===e?(r=":",n=":"):108===e?r=":":114===e&&(n=":");let o=!1===t.alignDelimiters?1:Math.max(1,s[u]-r.length-n.length);const a=r+"-".repeat(o)+n;!1!==t.alignDelimiters&&(o=r.length+o+n.length,o>s[u]&&(s[u]=o),p[u]=o),h[u]=a}o.splice(1,0,h),a.splice(1,0,p),l=-1;const f=[];for(;++l<o.length;){const e=o[l],r=a[l];u=-1;const n=[];for(;++u<c;){const o=e[u]||"";let a="",l="";if(!1!==t.alignDelimiters){const e=s[u]-(r[u]||0),t=i[u];114===t?a=" ".repeat(e):99===t?e%2?(a=" ".repeat(e/2+.5),l=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),l=a):l=" ".repeat(e)}!1===t.delimiterStart||u||n.push("|"),!1===t.padding||!1===t.alignDelimiters&&""===o||!1===t.delimiterStart&&!u||n.push(" "),!1!==t.alignDelimiters&&n.push(a),n.push(o),!1!==t.alignDelimiters&&n.push(l),!1!==t.padding&&n.push(" "),!1===t.delimiterEnd&&u===c-1||n.push("|")}f.push(!1===t.delimiterEnd?n.join("").replace(/ +$/,""):n.join(""))}return f.join("\n")}(e,{align:t,alignDelimiters:n,padding:r,stringLength:i})}function c(e,t,r){const n=e.children;let i=-1;const o=[],s=t.enter("tableRow");for(;++i<n.length;)o[i]=a(n[i],0,t,r);return s(),o}}function ac(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}function sc(e,t,r,n){const i=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 o=r.bulletCurrent||ac(r);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+o);let a=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=r.createTracker(n);s.move(o+" ".repeat(a-o.length)),s.shift(a);const c=r.enter("listItem"),l=r.indentLines(r.containerFlow(e,s.current()),(function(e,t,r){if(t)return(r?"":" ".repeat(a))+e;return(r?o:o+" ".repeat(a-o.length))+e}));return c(),l}const cc={exit:{taskListCheckValueChecked:uc,taskListCheckValueUnchecked:uc,paragraph:function(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1],r=e.children[0];if(r&&"text"===r.type){const n=t.children;let i,o=-1;for(;++o<n.length;){const e=n[o];if("paragraph"===e.type){i=e;break}}i===e&&(r.value=r.value.slice(1),0===r.value.length?e.children.shift():e.position&&r.position&&"number"==typeof r.position.start.offset&&(r.position.start.column++,r.position.start.offset++,e.position.start=Object.assign({},r.position.start)))}}this.exit(e)}}},lc={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,t,r,n){const i=e.children[0],o="boolean"==typeof e.checked&&i&&"paragraph"===i.type,a="["+(e.checked?"x":" ")+"] ",s=Ds(n);o&&s.move(a);let c=sc(e,t,r,{...n,...s.current()});o&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a})));return c}}};function uc(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function hc(e={}){const t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",function(e){return Ni([La,{document:{91:{tokenize:Va,continuation:{tokenize:Qa},exit:Wa}},text:{91:{tokenize:Ka},93:{add:"after",tokenize:Ga,resolveTo:$a}}},Ya(e),Xa,es])}(e)),r("fromMarkdownExtensions",[ys,{enter:{gfmFootnoteDefinition:Ms,gfmFootnoteDefinitionLabelString:Fs,gfmFootnoteCall:Us,gfmFootnoteCallString:js},exit:{gfmFootnoteDefinition:Bs,gfmFootnoteDefinitionLabelString:Hs,gfmFootnoteCall:zs,gfmFootnoteCallString:qs}},Qs,tc,cc]),r("toMarkdownExtensions",function(e){return{extensions:[Ts,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:$s,footnoteReference:Gs}},Ws,oc(e),lc]}}(e))}var pc=he(Object.freeze({__proto__:null,default:hc}));const fc=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null),hs(e,t,(function(e,t){const n=t[t.length-1];return r(e,n?n.children.indexOf(e):null,n)}),n)};var dc=Object.freeze({__proto__:null,CONTINUE:cs,EXIT:ls,SKIP:us,visit:fc});const mc=/[\t ]*(?:\r?\n|\r)/g;var gc=Object.freeze({__proto__:null,default:function(){return e=>{fc(e,"text",((e,t,r)=>{const n=[];let i=0;mc.lastIndex=0;let o=mc.exec(e.value);for(;o;){const t=o.index;i!==t&&n.push({type:"text",value:e.value.slice(i,t)}),n.push({type:"break"}),i=t+o[0].length,o=mc.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}))}}}),Ec=he(gc),yc={},Tc={};function vc(e,t,r){var n,i,o,a,s,c="";for("string"!=typeof t&&(r=t,t=vc.defaultChars),void 0===r&&(r=!0),s=function(e){var t,r,n=Tc[e];if(n)return n;for(n=Tc[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(o=e.charCodeAt(n),r&&37===o&&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(o<128)c+=s[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&n+1<i&&(a=e.charCodeAt(n+1))>=56320&&a<=57343){c+=encodeURIComponent(e[n]+e[n+1]),n++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[n]);return c}vc.defaultChars=";/?:@&=+$,-_.!~*'()#",vc.componentChars="-_.!~*'()";var bc=vc,_c={};function Ac(e,t){var r;return"string"!=typeof t&&(t=Ac.defaultChars),r=function(e){var t,r,n=_c[e];if(n)return n;for(n=_c[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,o,a,s,c,l="";for(t=0,n=e.length;t<n;t+=3)(i=parseInt(e.slice(t+1,t+3),16))<128?l+=r[i]:192==(224&i)&&t+3<n&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(l+=(c=i<<6&1984|63&o)<128?"��":String.fromCharCode(c),t+=3):224==(240&i)&&t+6<n&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&a))?(l+=(c=i<<12&61440|o<<6&4032|63&a)<2048||c>=55296&&c<=57343?"���":String.fromCharCode(c),t+=6):240==(248&i)&&t+9<n&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&a)&&128==(192&s))?((c=i<<18&1835008|o<<12&258048|a<<6&4032|63&s)<65536||c>1114111?l+="����":(c-=65536,l+=String.fromCharCode(55296+(c>>10),56320+(1023&c))),t+=9):l+="�";return l}))}Ac.defaultChars=";/?:@&=+$,#",Ac.componentChars="";var Sc=Ac;function kc(){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 Cc=/^([a-z0-9.+-]+:)/i,xc=/:[0-9]*$/,wc=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Oc=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Nc=["'"].concat(Oc),Pc=["%","/","?",";","#"].concat(Nc),Rc=["/","?","#"],Ic=/^[+a-z0-9A-Z_-]{0,63}$/,Lc=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Dc={javascript:!0,"javascript:":!0},Mc={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};kc.prototype.parse=function(e,t){var r,n,i,o,a,s=e;if(s=s.trim(),!t&&1===e.split("#").length){var c=wc.exec(s);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var l=Cc.exec(s);if(l&&(i=(l=l[0]).toLowerCase(),this.protocol=l,s=s.substr(l.length)),(t||l||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===s.substr(0,2))||l&&Dc[l]||(s=s.substr(2),this.slashes=!0)),!Dc[l]&&(a||l&&!Mc[l])){var u,h,p=-1;for(r=0;r<Rc.length;r++)-1!==(o=s.indexOf(Rc[r]))&&(-1===p||o<p)&&(p=o);for(-1!==(h=-1===p?s.lastIndexOf("@"):s.lastIndexOf("@",p))&&(u=s.slice(0,h),s=s.slice(h+1),this.auth=u),p=-1,r=0;r<Pc.length;r++)-1!==(o=s.indexOf(Pc[r]))&&(-1===p||o<p)&&(p=o);-1===p&&(p=s.length),":"===s[p-1]&&p--;var f=s.slice(0,p);s=s.slice(p),this.parseHost(f),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(Ic)){for(var E="",y=0,T=g.length;y<T;y++)g.charCodeAt(y)>127?E+="x":E+=g[y];if(!E.match(Ic)){var v=m.slice(0,r),b=m.slice(r+1),_=g.match(Lc);_&&(v.push(_[1]),b.unshift(_[2])),b.length&&(s=b.join(".")+s),this.hostname=v.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),d&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var A=s.indexOf("#");-1!==A&&(this.hash=s.substr(A),s=s.slice(0,A));var S=s.indexOf("?");return-1!==S&&(this.search=s.substr(S),s=s.slice(0,S)),s&&(this.pathname=s),Mc[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},kc.prototype.parseHost=function(e){var t=xc.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var Fc=function(e,t){if(e&&e instanceof kc)return e;var r=new kc;return r.parse(e,t),r};function Hc(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,n){const i=Hc(r),o='"'===i?"Quote":"Apostrophe",a=r.enter("image");let s=r.enter("label");const c=r.createTracker(n);let l=c.move("![");return l+=c.move(r.safe(e.alt,{before:l,after:"]",...c.current()})),l+=c.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(r.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(s=r.enter("destinationRaw"),l+=c.move(r.safe(e.url,{before:l,after:e.title?" ":")",...c.current()}))),s(),e.title&&(s=r.enter(`title${o}`),l+=c.move(" "+i),l+=c.move(r.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(")"),a(),l}yc.encode=bc,yc.decode=Sc,yc.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||""},yc.parse=Fc,Bc.peek=function(){return"!"};var Uc=he(Object.freeze({__proto__:null,image:Bc})),jc=he(Yo);var qc=he(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"}}));const zc={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 Gc=he(Object.freeze({__proto__:null,codes:zc}));var $c=he(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:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4}})),Kc=he(wo),Vc=he(Co),Qc=he(vo),Wc=he(Ki),Yc=he(_o),Xc=he(So),Jc=he(dc);function Zc(e,t,r,n){const i=r.enter("paragraph"),o=r.enter("phrasing"),a=r.containerPhrasing(e,n);return o(),i(),a}var el=he(Object.freeze({__proto__:null,paragraph:Zc}));function tl(e,t){let r=!1;return fc(e,(e=>{if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,ls})),Boolean((!e.depth||e.depth<3)&&Si(e)&&(t.options.setext||r))}function rl(e,t,r,n){const i=Math.max(Math.min(6,e.depth||1),1),o=r.createTracker(n);if(tl(e,r)){const t=r.enter("headingSetext"),n=r.enter("phrasing"),a=r.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return n(),t(),a+"\n"+(1===i?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(i),s=r.enter("headingAtx"),c=r.enter("phrasing");o.move(a+" ");let l=r.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(l)&&(l="&#x"+l.charCodeAt(0).toString(16).toUpperCase()+";"+l.slice(1)),l=l?a+" "+l:a,r.options.closeAtx&&(l+=" "+a),c(),s(),l}var nl=he(Object.freeze({__proto__:null,heading:rl})),il=he(Qi);function ol(e,t,r,n){const i=r.enter("blockquote"),o=r.createTracker(n);o.move("> "),o.shift(2);const a=r.indentLines(r.containerFlow(e,o.current()),al);return i(),a}function al(e,t,r){return">"+(r?"":" ")+e}var sl,cl=he(Object.freeze({__proto__:null,blockquote:ol})),ll={exports:{}};sl=ll,function(){var e;function t(e){for(var t,r,n,i,o=1,a=[].slice.call(arguments),s=0,c=e.length,l="",u=!1,h=!1,p=function(){return a[o++]},f=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],u)switch(u=!1,"."==t?(h=!1,t=e[++s]):"0"==t&&"."==e[s+1]?(h=!0,t=e[s+=2]):h=!0,i=f(),t){case"b":l+=parseInt(p(),10).toString(2);break;case"c":l+="string"==typeof(r=p())||r instanceof String?r:String.fromCharCode(parseInt(r,10));break;case"d":l+=parseInt(p(),10);break;case"f":n=String(parseFloat(p()).toFixed(i||6)),l+=h?n:n.replace(/^0/,"");break;case"j":l+=JSON.stringify(p());break;case"o":l+="0"+parseInt(p(),10).toString(8);break;case"s":l+=p();break;case"x":l+="0x"+parseInt(p(),10).toString(16);break;case"X":l+="0x"+parseInt(p(),10).toString(16).toUpperCase();break;default:l+=t}else"%"===t?u=!0:l+=t;return l}(e=sl.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 ul=ll.exports;const hl=Object.assign(pl(Error),{eval:pl(EvalError),range:pl(RangeError),reference:pl(ReferenceError),syntax:pl(SyntaxError),type:pl(TypeError),uri:pl(URIError)});function pl(e){return t.displayName=e.displayName||e.name,t;function t(t,...r){const n=t?ul(t,...r):t;return new e(n)}}const fl={}.hasOwnProperty,dl={yaml:"-",toml:"+"};function ml(e="yaml"){const t=[];let r=-1;for(Array.isArray(e)||(e=[e]);++r<e.length;)t[r]=gl(e[r]);return t}function gl(e){let t=e;if("string"==typeof t){if(!fl.call(dl,t))throw hl("Missing matter definition for `%s`",t);t={type:t,marker:dl[t]}}else if("object"!=typeof t)throw hl("Expected matter to be an object, not `%j`",t);if(!fl.call(t,"type"))throw hl("Missing `type` in matter `%j`",t);if(!fl.call(t,"fence")&&!fl.call(t,"marker"))throw hl("Missing `marker` or `fence` in matter `%j`",t);return t}function El(e){const t=e.type,r=e.anywhere,n=t+"Value",i=t+"Fence",o=i+"Sequence",a={tokenize:function(e,t,r){let n=0;return function(t){if(t===s.charCodeAt(n))return e.enter(i),e.enter(o),a(t);return r(t)};function a(t){return n===s.length?(e.exit(o),qi(t)?(e.enter("whitespace"),c(t)):l(t)):t===s.charCodeAt(n++)?(e.consume(t),a):r(t)}function c(t){return qi(t)?(e.consume(t),c):(e.exit("whitespace"),l(t))}function l(n){return null===n||ji(n)?(e.exit(i),t(n)):r(n)}},partial:!0};let s;return{tokenize:function(i,o,c){const l=this;return function(n){const o=l.now();if(1!==o.column||!r&&1!==o.line)return c(n);return i.enter(t),s=yl(e,"open"),i.attempt(a,u,c)(n)};function u(t){return s=yl(e,"close"),f(t)}function h(e){return null===e||ji(e)?f(e):(i.enter(n),p(e))}function p(e){return null===e||ji(e)?(i.exit(n),f(e)):(i.consume(e),p)}function f(e){return null===e?c(e):(i.enter("lineEnding"),i.consume(e),i.exit("lineEnding"),i.attempt(a,d,h))}function d(e){return i.exit(t),o(e)}},concrete:!0}}function yl(e,t){return e.marker?Tl(e.marker,t).repeat(3):Tl(e.fence,t)}function Tl(e,t){return"string"==typeof e?e:e[t]}function vl(e){return function(t){this.enter({type:e.type,value:""},t),this.buffer()}}function bl(e){const t=this.resume();this.exit(e).value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function _l(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Al(e){const t=Sl(e,"open"),r=Sl(e,"close");return function(e){return t+(e.value?"\n"+e.value:"")+"\n"+r}}function Sl(e,t){return e.marker?kl(e.marker,t).repeat(3):kl(e.fence,t)}function kl(e,t){return"string"==typeof e?e:e[t]}var Cl=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=ml(e),r={};let n=-1;for(;++n<t.length;){const e=t[n],i=yl(e,"open").charCodeAt(0);i in r?r[i].push(El(e)):r[i]=[El(e)]}return{flow:r}}(e)),r("fromMarkdownExtensions",function(e){const t=ml(e),r={},n={};let i=-1;for(;++i<t.length;){const e=t[i];r[e.type]=vl(e),n[e.type]=bl,n[e.type+"Value"]=_l}return{enter:r,exit:n}}(e)),r("toMarkdownExtensions",function(e){const t=[],r={},n=ml(e);let i=-1;for(;++i<n.length;){const e=n[i];r[e.type]=Al(e),t.push({atBreak:!0,character:Sl(e,"open").charAt(0)})}return{unsafe:t,handlers:r}}(e))}}),xl=he(Cl);function wl(e,t,r,n,i,o,a,s,c,l,u,h,p,f,d){let m,g;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),E};function E(t){return 35===t?(m=a,y(t)):46===t?(m=s,y(t)):58===t||95===t||Ii(t)?(e.enter(o),e.enter(c),e.consume(t),b):d&&qi(t)?Vi(e,E,"whitespace")(t):!d&&Ui(t)?ko(e,E)(t):O(t)}function y(t){return e.enter(o),e.enter(m),e.enter(m+"Marker"),e.consume(t),e.exit(m+"Marker"),T}function T(t){return null===t||34===t||35===t||39===t||46===t||60===t||61===t||62===t||96===t||125===t||Ui(t)?r(t):(e.enter(m+"Value"),e.consume(t),v)}function v(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t?r(t):35===t||46===t||125===t||Ui(t)?(e.exit(m+"Value"),e.exit(m),e.exit(o),E(t)):(e.consume(t),v)}function b(t){return 45===t||46===t||58===t||95===t||Mi(t)?(e.consume(t),b):(e.exit(c),d&&qi(t)?Vi(e,_,"whitespace")(t):!d&&Ui(t)?ko(e,_)(t):_(t))}function _(t){return 61===t?(e.enter(l),e.consume(t),e.exit(l),A):(e.exit(o),E(t))}function A(t){return null===t||60===t||61===t||62===t||96===t||125===t||d&&ji(t)?r(t):34===t||39===t?(e.enter(u),e.enter(p),e.consume(t),e.exit(p),g=t,k):d&&qi(t)?Vi(e,A,"whitespace")(t):!d&&Ui(t)?ko(e,A)(t):(e.enter(h),e.enter(f),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||Ui(t)?(e.exit(f),e.exit(h),e.exit(o),E(t)):(e.consume(t),S)}function k(t){return t===g?(e.enter(p),e.consume(t),e.exit(p),e.exit(u),e.exit(o),w):(e.enter(h),C(t))}function C(t){return t===g?(e.exit(h),k(t)):null===t?r(t):ji(t)?d?r(t):ko(e,C)(t):(e.enter(f),e.consume(t),x)}function x(t){return t===g||null===t||ji(t)?(e.exit(f),C(t)):(e.consume(t),x)}function w(e){return 125===e||Ui(e)?E(e):O(e)}function O(o){return 125===o?(e.enter(i),e.consume(o),e.exit(i),e.exit(n),t):r(o)}}function Ol(e,t,r,n,i,o,a){let s,c=0,l=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(o),h(r))}function h(t){if(93===t&&!l)return d(t);const r=e.enter("chunkText",{contentType:"text",previous:s});return s&&(s.next=r),s=r,p(t)}function p(t){return null===t||c>999||91===t&&++l>32?r(t):93!==t||l--?ji(t)?a?r(t):(e.consume(t),e.exit("chunkText"),h):(e.consume(t),92===t?f:p):(e.exit("chunkText"),d(t))}function f(t){return 91===t||92===t||93===t?(e.consume(t),c++,p):p(t)}function d(r){return e.exit(o),e.enter(i),e.consume(r),e.exit(i),e.exit(n),t}}function Nl(e,t,r,n){const i=this;return function(t){if(Ii(t))return e.enter(n),e.consume(t),o;return r(t)};function o(a){return 45===a||95===a||Mi(a)?(e.consume(a),o):(e.exit(n),45===i.previous||95===i.previous?r(a):t(a))}}const Pl={tokenize:function(e,t,r){const n=this,i=n.events[n.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0;let a,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"),Nl.call(n,e,l,r,"directiveContainerName")(t))}function l(t){return 91===t?e.attempt(Rl,u,u)(t):u(t)}function u(t){return 123===t?e.attempt(Il,h,h)(t):h(t)}function h(t){return Vi(e,p,"whitespace")(t)}function p(i){return e.exit("directiveContainerFence"),null===i?f(i):ji(i)?n.interrupt?t(i):e.attempt(Ll,d,f)(i):r(i)}function f(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?v(t):e.attempt({tokenize:b,partial:!0},v,o?Vi(e,g,"linePrefix",o+1):g)(t)}function g(t){if(null===t)return v(t);const r=e.enter("chunkDocument",{contentType:"document",previous:a});return a&&(a.next=r),a=r,E(t)}function E(t){if(null===t){const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,v(t)}return ji(t)?e.check(Ll,y,T)(t):(e.consume(t),E)}function y(t){e.consume(t);const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,m}function T(t){const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,v(t)}function v(r){return e.exit("directiveContainerContent"),e.exit("directiveContainer"),t(r)}function b(e,t,r){let n=0;return Vi(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"),Vi(e,o,"whitespace")(t))}function o(n){return null===n||ji(n)?(e.exit("directiveContainerFence"),t(n)):r(n)}}},concrete:!0},Rl={tokenize:function(e,t,r){return Ol(e,t,r,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)},partial:!0},Il={tokenize:function(e,t,r){return wl(e,t,r,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)},partial:!0},Ll={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 Dl={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"),Nl.call(n,e,o,r,"directiveLeafName")):r(t)}function o(t){return 91===t?e.attempt(Ml,a,a)(t):a(t)}function a(t){return 123===t?e.attempt(Fl,s,s)(t):s(t)}function s(t){return Vi(e,c,"whitespace")(t)}function c(n){return null===n||ji(n)?(e.exit("directiveLeaf"),t(n)):r(n)}}},Ml={tokenize:function(e,t,r){return Ol(e,t,r,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)},partial:!0},Fl={tokenize:function(e,t,r){return wl(e,t,r,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)},partial:!0};const Hl={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("directiveText"),e.enter("directiveTextMarker"),e.consume(t),e.exit("directiveTextMarker"),Nl.call(n,e,i,r,"directiveTextName")};function i(t){return 58===t?r(t):91===t?e.attempt(Bl,o,o)(t):o(t)}function o(t){return 123===t?e.attempt(Ul,a,a)(t):a(t)}function a(r){return e.exit("directiveText"),t(r)}},previous:function(e){return 58!==e||"characterEscape"===this.events[this.events.length-1][1].type}},Bl={tokenize:function(e,t,r){return Ol(e,t,r,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")},partial:!0},Ul={tokenize:function(e,t,r){return wl(e,t,r,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")},partial:!0};const jl=["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"],ql={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 zl(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function Gl(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function $l(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||zl(e)}const Kl=String.fromCharCode,Vl=["","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 Ql(e,t={}){const r="string"==typeof t.additional?t.additional.charCodeAt(0):t.additional,n=[];let i,o,a=0,s=-1,c="";t.position&&("start"in t.position||"indent"in t.position?(o=t.position.indent,i=t.position.start):i=t.position);let l,u=(i?i.line:0)||1,h=(i?i.column:0)||1,p=f();for(a--;++a<=e.length;)if(10===l&&(h=(o?o[s]:0)||1),l=e.charCodeAt(a),38===l){const i=e.charCodeAt(a+1);if(9===i||10===i||12===i||32===i||38===i||60===i||Number.isNaN(i)||r&&i===r){c+=Kl(l),h++;continue}const o=a+1;let s,u=o,g=o;if(35===i){g=++u;const t=e.charCodeAt(g);88===t||120===t?(s="hexadecimal",g=++u):s="decimal"}else s="named";let E="",y="",T="";const v="named"===s?$l:"decimal"===s?zl:Gl;for(g--;++g<=e.length;){const t=e.charCodeAt(g);if(!v(t))break;T+=Kl(t),"named"===s&&jl.includes(T)&&(E=T,y=co(T))}let b=59===e.charCodeAt(g);if(b){g++;const e="named"===s&&co(T);e&&(E=T,y=e)}let _=1+g-o,A="";if(b||!1!==t.nonTerminated)if(T)if("named"===s){if(b&&!y)d(5,1);else if(E!==T&&(g=u+E.length,_=1+g-u,b=!1),!b){const r=E?1:3;if(t.attribute){const t=e.charCodeAt(g);61===t?(d(r,_),y=""):$l(t)?y="":d(r,_)}else d(r,_)}A=y}else{b||d(2,_);let e=Number.parseInt(T,"hexadecimal"===s?16:10);if(Wl(e))d(7,_),A=Kl(65533);else if(e in ql)d(6,_),A=ql[e];else{let t="";Yl(e)&&d(6,_),e>65535&&(e-=65536,t+=Kl(e>>>10|55296),e=56320|1023&e),A=t+Kl(e)}}else"named"!==s&&d(4,_);else;if(A){m(),p=f(),a=g-1,h+=g-o+1,n.push(A);const r=f();r.offset++,t.reference&&t.reference.call(t.referenceContext,A,{start:p,end:r},e.slice(o-1,g)),p=r}else T=e.slice(o-1,g),c+=T,h+=T.length,a=g-1}else 10===l&&(u++,s++,h=0),Number.isNaN(l)?m():(c+=Kl(l),h++);return n.join("");function f(){return{line:u,column:h,offset:a+((i?i.offset:0)||0)}}function d(e,r){let n;t.warning&&(n=f(),n.column+=r,n.offset+=r,t.warning.call(t.warningContext,Vl[e],n,e))}function m(){c&&(n.push(c),t.text&&t.text.call(t.textContext,c,{start:p,end:f()}),c="")}}function Wl(e){return e>=55296&&e<=57343||e>1114111}function Yl(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 Xl(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 Jl(e){return"&#x"+e.toString(16).toUpperCase()+";"}const Zl={}.hasOwnProperty,eu=/^[^\t\n\r "#'.<=>`}]+$/;pu.peek=function(){return":"};const tu={canContainEols:["textDirective"],enter:{directiveContainer:function(e){nu.call(this,"containerDirective",e)},directiveContainerAttributes:ou,directiveContainerLabel:function(e){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},e)},directiveLeaf:function(e){nu.call(this,"leafDirective",e)},directiveLeafAttributes:ou,directiveText:function(e){nu.call(this,"textDirective",e)},directiveTextAttributes:ou},exit:{directiveContainer:hu,directiveContainerAttributeClassValue:su,directiveContainerAttributeIdValue:au,directiveContainerAttributeName:lu,directiveContainerAttributeValue:cu,directiveContainerAttributes:uu,directiveContainerLabel:function(e){this.exit(e)},directiveContainerName:iu,directiveLeaf:hu,directiveLeafAttributeClassValue:su,directiveLeafAttributeIdValue:au,directiveLeafAttributeName:lu,directiveLeafAttributeValue:cu,directiveLeafAttributes:uu,directiveLeafName:iu,directiveText:hu,directiveTextAttributeClassValue:su,directiveTextAttributeIdValue:au,directiveTextAttributeName:lu,directiveTextAttributeValue:cu,directiveTextAttributes:uu,directiveTextName:iu}},ru={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:pu,leafDirective:pu,textDirective:pu}};function nu(e,t){this.enter({type:e,name:"",attributes:{},children:[]},t)}function iu(e){this.stack[this.stack.length-1].name=this.sliceSerialize(e)}function ou(){this.setData("directiveAttributes",[]),this.buffer()}function au(e){this.getData("directiveAttributes").push(["id",Ql(this.sliceSerialize(e),{attribute:!0})])}function su(e){this.getData("directiveAttributes").push(["class",Ql(this.sliceSerialize(e),{attribute:!0})])}function cu(e){const t=this.getData("directiveAttributes");t[t.length-1][1]=Ql(this.sliceSerialize(e),{attribute:!0})}function lu(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 hu(e){this.exit(e)}function pu(e,t,r,n){const i=Ds(n),o=function(e){let t=0;"containerDirective"===e.type?(hs(e,(function(e,r){if("containerDirective"===e.type){let e=r.length,n=0;for(;e--;)"containerDirective"===r[e].type&&n++;n>t&&(t=n)}})),t+=3):t="leafDirective"===e.type?2:1;return":".repeat(t)}(e),a=r.enter(e.type);let s,c=i.move(o+(e.name||""));if("containerDirective"===e.type){const t=(e.children||[])[0];s=fu(t)?t:void 0}else s=e;if(s&&s.children&&s.children.length>0){const t=r.enter("label"),n=`${e.type}Label`,o=r.enter(n);c+=i.move("["),c+=i.move(Vs(s,r,{...i.current(),before:c,after:"]"})),c+=i.move("]"),o(),t()}if(c+=i.move(function(e,t){const r=Hc(t),n="textDirective"===e.type?[r]:[r,"\n","\r"],i=e.attributes||{},o=[];let a,s,c,l;for(l in i)if(Zl.call(i,l)&&void 0!==i[l]&&null!==i[l]){const e=String(i[l]);if("id"===l)c=eu.test(e)?"#"+e:u("id",e);else if("class"===l){const t=e.split(/[\t\n\r ]+/g),r=[],n=[];let i=-1;for(;++i<t.length;)(eu.test(t[i])?n:r).push(t[i]);a=r.length>0?u("class",r.join(" ")):"",s=n.length>0?"."+n.join("."):""}else o.push(u(l,e))}a&&o.unshift(a);s&&o.unshift(s);c&&o.unshift(c);return o.length>0?"{"+o.join(" ")+"}":"";function u(e,t){return e+(t?"="+r+function(e,t){return Xl(e,Object.assign({format:Jl},t))}(t,{subset:n})+r:"")}}(e,r)),"containerDirective"===e.type){let t=e;fu((e.children||[])[0])&&(t=Object.assign({},e,{children:e.children.slice(1)})),t&&t.children&&t.children.length>0&&(c+=i.move("\n"),c+=i.move(ks(t,r,i.current()))),c+=i.move("\n"+o)}return a(),c}function fu(e){return Boolean(e&&"paragraph"===e.type&&e.data&&e.data.directiveLabel)}var du=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:Hl},flow:{58:[Pl,Dl]}}),t("fromMarkdownExtensions",tu),t("toMarkdownExtensions",ru)}}),mu=he(du);var gu=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:{[zc.leftCurlyBrace]:{name:"headingIdMaybeStart",tokenize:(e,t,r)=>function(n){return e.attempt({tokenize(e,t,r){return function(t){if(t!==zc.leftCurlyBrace)throw new Error(`Unexpected code ${t}`);return e.enter("id"),e.enter("idMarker"),e.consume(t),n};function n(t){return t!==zc.numberSign?r(t):(e.consume(t),e.exit("idMarker"),e.enter("idString"),e.enter("chunkString",{contentType:"string"}),i)}function i(n){return[zc.carriageReturn,zc.lineFeed,zc.carriageReturnLineFeed,null,zc.backslash,zc.leftCurlyBrace].includes(n)?r(n):n===zc.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){fc(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}`)})),fc(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)}}))}}}),Eu=he(gu),yu=he(ss),Tu={exports:{}},vu=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)}},bu=vu,_u=Object.prototype.toString;function Au(e){return Array.isArray(e)}function Su(e){return void 0===e}function ku(e){return"[object ArrayBuffer]"===_u.call(e)}function Cu(e){return null!==e&&"object"==typeof e}function xu(e){if("[object Object]"!==_u.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function wu(e){return"[object Function]"===_u.call(e)}function Ou(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),Au(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 Nu={isArray:Au,isArrayBuffer:ku,isBuffer:function(e){return null!==e&&!Su(e)&&null!==e.constructor&&!Su(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===_u.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ku(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:Cu,isPlainObject:xu,isUndefined:Su,isDate:function(e){return"[object Date]"===_u.call(e)},isFile:function(e){return"[object File]"===_u.call(e)},isBlob:function(e){return"[object Blob]"===_u.call(e)},isFunction:wu,isStream:function(e){return Cu(e)&&wu(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===_u.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:Ou,merge:function e(){var t={};function r(r,n){xu(t[n])&&xu(r)?t[n]=e(t[n],r):xu(r)?t[n]=e({},r):Au(r)?t[n]=r.slice():t[n]=r}for(var n=0,i=arguments.length;n<i;n++)Ou(arguments[n],r);return t},extend:function(e,t,r){return Ou(t,(function(t,n){e[n]=r&&"function"==typeof t?bu(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}},Pu=Nu;function Ru(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Iu=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(Pu.isURLSearchParams(t))n=t.toString();else{var i=[];Pu.forEach(t,(function(e,t){null!=e&&(Pu.isArray(e)?t+="[]":e=[e],Pu.forEach(e,(function(e){Pu.isDate(e)?e=e.toISOString():Pu.isObject(e)&&(e=JSON.stringify(e)),i.push(Ru(t)+"="+Ru(e))})))})),n=i.join("&")}if(n){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},Lu=Nu;function Du(){this.handlers=[]}Du.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},Du.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Du.prototype.forEach=function(e){Lu.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var Mu=Du,Fu=Nu,Hu=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},Bu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Uu=Hu,ju=function(e,t,r,n,i){var o=new Error(e);return Uu(o,t,r,n,i)},qu=ju,zu=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(qu("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)},Gu=Nu,$u=Gu.isStandardBrowserEnv()?{write:function(e,t,r,n,i,o){var a=[];a.push(e+"="+encodeURIComponent(t)),Gu.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Gu.isString(n)&&a.push("path="+n),Gu.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.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(){}},Ku=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},Vu=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},Qu=function(e,t){return e&&!Ku(t)?Vu(e,t):t},Wu=Nu,Yu=["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"],Xu=Nu,Ju=Xu.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=Xu.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0};function Zu(e){this.message=e}Zu.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Zu.prototype.__CANCEL__=!0;var eh,th=Zu,rh=Nu,nh=zu,ih=$u,oh=Iu,ah=Qu,sh=function(e){var t,r,n,i={};return e?(Wu.forEach(e.split("\n"),(function(e){if(n=e.indexOf(":"),t=Wu.trim(e.substr(0,n)).toLowerCase(),r=Wu.trim(e.substr(n+1)),t){if(i[t]&&Yu.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([r]):i[t]?i[t]+", "+r:r}})),i):i},ch=Ju,lh=ju,uh=Bu,hh=th,ph=function(e){return new Promise((function(t,r){var n,i=e.data,o=e.headers,a=e.responseType;function s(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}rh.isFormData(i)&&delete o["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var l=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(l+":"+u)}var h=ah(e.baseURL,e.url);function p(){if(c){var n="getAllResponseHeaders"in c?sh(c.getAllResponseHeaders()):null,i={data:a&&"text"!==a&&"json"!==a?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c};nh((function(e){t(e),s()}),(function(e){r(e),s()}),i),c=null}}if(c.open(e.method.toUpperCase(),oh(h,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(p)},c.onabort=function(){c&&(r(lh("Request aborted",e,"ECONNABORTED",c)),c=null)},c.onerror=function(){r(lh("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||uh;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(lh(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},rh.isStandardBrowserEnv()){var f=(e.withCredentials||ch(h))&&e.xsrfCookieName?ih.read(e.xsrfCookieName):void 0;f&&(o[e.xsrfHeaderName]=f)}"setRequestHeader"in c&&rh.forEach(o,(function(e,t){void 0===i&&"content-type"===t.toLowerCase()?delete o[t]:c.setRequestHeader(t,e)})),rh.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),a&&"json"!==a&&(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 hh("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)}))},fh={exports:{}},dh=U.default,mh=dh.URL,gh=q.default,Eh=z.default,yh=G.default.Writable,Th=j.default,vh=function(){if(!eh){try{eh=require("debug")("follow-redirects")}catch(e){}"function"!=typeof eh&&(eh=function(){})}eh.apply(null,arguments)},bh=["abort","aborted","connect","error","socket","timeout"],_h=Object.create(null);bh.forEach((function(e){_h[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}}));var Ah=Ih("ERR_INVALID_URL","Invalid URL",TypeError),Sh=Ih("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),kh=Ih("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Ch=Ih("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),xh=Ih("ERR_STREAM_WRITE_AFTER_END","write after end");function wh(e,t){yh.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 Oh(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach((function(n){var i=n+":",o=r[i]=e[n],a=t[n]=Object.create(o);Object.defineProperties(a,{request:{value:function(e,n,o){if(Dh(e)){var a;try{a=Ph(new mh(e))}catch(t){a=dh.parse(e)}if(!Dh(a.protocol))throw new Ah({input:e});e=a}else mh&&e instanceof mh?e=Ph(e):(o=n,n=e,e={protocol:i});return Mh(n)&&(o=n,n=null),(n=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,n)).nativeProtocols=r,Dh(n.host)||Dh(n.hostname)||(n.hostname="::1"),Th.equal(n.protocol,i,"protocol mismatch"),vh("options",n),new wh(n,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,r){var n=a.request(e,t,r);return n.end(),n},configurable:!0,enumerable:!0,writable:!0}})})),t}function Nh(){}function Ph(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 Rh(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return null==r?void 0:String(r).trim()}function Ih(e,t,r){function n(r){Error.captureStackTrace(this,this.constructor),Object.assign(this,r||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name="Error ["+e+"]",n}function Lh(e){for(var t of bh)e.removeListener(t,_h[t]);e.on("error",Nh),e.abort()}function Dh(e){return"string"==typeof e||e instanceof String}function Mh(e){return"function"==typeof e}wh.prototype=Object.create(yh.prototype),wh.prototype.abort=function(){Lh(this._currentRequest),this.emit("abort")},wh.prototype.write=function(e,t,r){if(this._ending)throw new xh;if(!Dh(e)&&!function(e){return"object"==typeof e&&"length"in e}(e))throw new TypeError("data should be a string, Buffer or Uint8Array");Mh(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 Ch),this.abort()):r&&r()},wh.prototype.end=function(e,t,r){if(Mh(e)?(r=e,e=t=null):Mh(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)},wh.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},wh.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},wh.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"),o()}),e),n(t)}function o(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",o),r.removeListener("error",o),r.removeListener("response",o),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",o),this.on("error",o),this.on("response",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){wh.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(wh.prototype,e,{get:function(){return this._currentRequest[e]}})})),wh.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))}},wh.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var i of(n._redirectable=this,bh))n.on(i,_h[i]);if(this._currentUrl=/^\//.test(this._options.path)?dh.format(this._options):this._options.path,this._isRedirect){var o=0,a=this,s=this._requestBodyBuffers;!function e(t){if(n===a._currentRequest)if(t)a.emit("error",t);else if(o<s.length){var r=s[o++];n.finished||n.write(r.data,r.encoding,e)}else a._ended&&n.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+e))},wh.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)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(Lh(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)this.emit("error",new kh);else{var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Rh(/^content-/i,this._options.headers));var a,s=Rh(/^host$/i,this._options.headers),c=dh.parse(this._currentUrl),l=s||c.host,u=/^\w+:/.test(r)?this._currentUrl:dh.format(Object.assign(c,{host:l}));try{a=dh.resolve(u,r)}catch(e){return void this.emit("error",new Sh({cause:e}))}vh("redirecting to",a),this._isRedirect=!0;var h=dh.parse(a);if(Object.assign(this._options,h),(h.protocol!==c.protocol&&"https:"!==h.protocol||h.host!==l&&!function(e,t){Th(Dh(e)&&Dh(t));var r=e.length-t.length-1;return r>0&&"."===e[r]&&e.endsWith(t)}(h.host,l))&&Rh(/^(?:authorization|cookie)$/i,this._options.headers),Mh(i)){var p={headers:e.headers,statusCode:t},f={url:u,method:o,headers:n};try{i(this._options,p,f)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new Sh({cause:e}))}}},fh.exports=Oh({http:gh,https:Eh}),fh.exports.wrap=Oh;var Fh="0.26.1",Hh=Nu,Bh=zu,Uh=Qu,jh=Iu,qh=q.default,zh=z.default,Gh=fh.exports.http,$h=fh.exports.https,Kh=U.default,Vh=$.default,Qh=Fh,Wh=ju,Yh=Hu,Xh=Bu,Jh=th,Zh=/https:?/;function ep(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,ep(e,t,e.href)}}var tp=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 o=function(e){i(),t(e)},a=!1,s=function(e){i(),a=!0,r(e)},c=e.data,l=e.headers,u={};if(Object.keys(l).forEach((function(e){u[e.toLowerCase()]=e})),"user-agent"in u?l[u["user-agent"]]||delete l[u["user-agent"]]:l["User-Agent"]="axios/"+Qh,c&&!Hh.isStream(c)){if(Buffer.isBuffer(c));else if(Hh.isArrayBuffer(c))c=Buffer.from(new Uint8Array(c));else{if(!Hh.isString(c))return s(Wh("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));c=Buffer.from(c,"utf-8")}if(e.maxBodyLength>-1&&c.length>e.maxBodyLength)return s(Wh("Request body larger than maxBodyLength limit",e));u["content-length"]||(l["Content-Length"]=c.length)}var h=void 0;e.auth&&(h=(e.auth.username||"")+":"+(e.auth.password||""));var p=Uh(e.baseURL,e.url),f=Kh.parse(p),d=f.protocol||"http:";if(!h&&f.auth){var m=f.auth.split(":");h=(m[0]||"")+":"+(m[1]||"")}h&&u.authorization&&delete l[u.authorization];var g=Zh.test(d),E=g?e.httpsAgent:e.httpAgent;try{jh(f.path,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){var y=new Error(t.message);y.config=e,y.url=e.url,y.exists=!0,s(y)}var T={path:jh(f.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:l,agent:E,agents:{http:e.httpAgent,https:e.httpsAgent},auth:h};e.socketPath?T.socketPath=e.socketPath:(T.hostname=f.hostname,T.port=f.port);var v,b=e.proxy;if(!b&&!1!==b){var _=d.slice(0,-1)+"_proxy",A=process.env[_]||process.env[_.toUpperCase()];if(A){var S=Kh.parse(A),k=process.env.no_proxy||process.env.NO_PROXY,C=!0;if(k){var x=k.split(",").map((function(e){return e.trim()}));C=!x.some((function(e){return!!e&&("*"===e||("."===e[0]&&f.hostname.substr(f.hostname.length-e.length)===e||f.hostname===e))}))}if(C&&(b={host:S.hostname,port:S.port,protocol:S.protocol},S.auth)){var w=S.auth.split(":");b.auth={username:w[0],password:w[1]}}}}b&&(T.headers.host=f.hostname+(f.port?":"+f.port:""),ep(T,b,d+"//"+f.hostname+(f.port?":"+f.port:"")+T.path));var O=g&&(!b||Zh.test(b.protocol));e.transport?v=e.transport:0===e.maxRedirects?v=O?zh:qh:(e.maxRedirects&&(T.maxRedirects=e.maxRedirects),v=O?$h:Gh),e.maxBodyLength>-1&&(T.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(T.insecureHTTPParser=e.insecureHTTPParser);var N=v.request(T,(function(t){if(!N.aborted){var r=t,n=t.req||N;if(204!==t.statusCode&&"HEAD"!==n.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(Vh.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,Bh(o,s,i);else{var c=[],l=0;r.on("data",(function(t){c.push(t),l+=t.length,e.maxContentLength>-1&&l>e.maxContentLength&&(a=!0,r.destroy(),s(Wh("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,n)))})),r.on("aborted",(function(){a||(r.destroy(),s(Wh("error request aborted",e,"ERR_REQUEST_ABORTED",n)))})),r.on("error",(function(t){N.aborted||s(Yh(t,e,null,n))})),r.on("end",(function(){try{var t=1===c.length?c[0]:Buffer.concat(c);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(t=Hh.stripBOM(t))),i.data=t}catch(t){s(Yh(t,e,t.code,i.request,i))}Bh(o,s,i)}))}}}));if(N.on("error",(function(t){N.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||s(Yh(t,e,null,N))})),N.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){var P=parseInt(e.timeout,10);if(isNaN(P))return void s(Wh("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",N));N.setTimeout(P,(function(){N.abort();var t="";t=e.timeoutErrorMessage?e.timeoutErrorMessage:"timeout of "+e.timeout+"ms exceeded";var r=e.transitional||Xh;s(Wh(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",N))}))}(e.cancelToken||e.signal)&&(n=function(e){N.aborted||(N.abort(),s(!e||e&&e.type?new Jh("canceled"):e))},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n))),Hh.isStream(c)?c.on("error",(function(t){s(Yh(t,e,null,N))})).pipe(N):N.end(c)}))},rp=Nu,np=function(e,t){Fu.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},ip=Hu,op={"Content-Type":"application/x-www-form-urlencoded"};function ap(e,t){!rp.isUndefined(e)&&rp.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var sp,cp={transitional:Bu,adapter:("undefined"!=typeof XMLHttpRequest?sp=ph:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(sp=tp),sp),transformRequest:[function(e,t){return np(t,"Accept"),np(t,"Content-Type"),rp.isFormData(e)||rp.isArrayBuffer(e)||rp.isBuffer(e)||rp.isStream(e)||rp.isFile(e)||rp.isBlob(e)?e:rp.isArrayBufferView(e)?e.buffer:rp.isURLSearchParams(e)?(ap(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):rp.isObject(e)||t&&"application/json"===t["Content-Type"]?(ap(t,"application/json"),function(e,t,r){if(rp.isString(e))try{return(t||JSON.parse)(e),rp.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||cp.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&rp.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw ip(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, */*"}}};rp.forEach(["delete","get","head"],(function(e){cp.headers[e]={}})),rp.forEach(["post","put","patch"],(function(e){cp.headers[e]=rp.merge(op)}));var lp=cp,up=Nu,hp=lp,pp=function(e){return!(!e||!e.__CANCEL__)},fp=Nu,dp=function(e,t,r){var n=this||hp;return up.forEach(r,(function(r){e=r.call(n,e,t)})),e},mp=pp,gp=lp,Ep=th;function yp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ep("canceled")}var Tp=Nu,vp=function(e,t){t=t||{};var r={};function n(e,t){return Tp.isPlainObject(e)&&Tp.isPlainObject(t)?Tp.merge(e,t):Tp.isPlainObject(t)?Tp.merge({},t):Tp.isArray(t)?t.slice():t}function i(r){return Tp.isUndefined(t[r])?Tp.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function o(e){if(!Tp.isUndefined(t[e]))return n(void 0,t[e])}function a(r){return Tp.isUndefined(t[r])?Tp.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:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s};return Tp.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,n=t(e);Tp.isUndefined(n)&&t!==s||(r[e]=n)})),r},bp=Fh,_p={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){_p[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var Ap={};_p.transitional=function(e,t,r){function n(e,t){return"[Axios v"+bp+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,i,o){if(!1===e)throw new Error(n(i," has been removed"+(t?" in "+t:"")));return t&&!Ap[i]&&(Ap[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}};var Sp={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 o=n[i],a=t[o];if(a){var s=e[o],c=void 0===s||a(s,o,e);if(!0!==c)throw new TypeError("option "+o+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+o)}},validators:_p},kp=Nu,Cp=Iu,xp=Mu,wp=function(e){return yp(e),e.headers=e.headers||{},e.data=dp.call(e,e.data,e.headers,e.transformRequest),e.headers=fp.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),fp.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||gp.adapter)(e).then((function(t){return yp(e),t.data=dp.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return mp(t)||(yp(e),t&&t.response&&(t.response.data=dp.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Op=vp,Np=Sp,Pp=Np.validators;function Rp(e){this.defaults=e,this.interceptors={request:new xp,response:new xp}}Rp.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=Op(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&Np.assertOptions(r,{silentJSONParsing:Pp.transitional(Pp.boolean),forcedJSONParsing:Pp.transitional(Pp.boolean),clarifyTimeoutError:Pp.transitional(Pp.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var o,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!i){var s=[wp,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(a),o=Promise.resolve(t);s.length;)o=o.then(s.shift(),s.shift());return o}for(var c=t;n.length;){var l=n.shift(),u=n.shift();try{c=l(c)}catch(e){u(e);break}}try{o=wp(c)}catch(e){return Promise.reject(e)}for(;a.length;)o=o.then(a.shift(),a.shift());return o},Rp.prototype.getUri=function(e){return e=Op(this.defaults,e),Cp(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},kp.forEach(["delete","get","head","options"],(function(e){Rp.prototype[e]=function(t,r){return this.request(Op(r||{},{method:e,url:t,data:(r||{}).data}))}})),kp.forEach(["post","put","patch"],(function(e){Rp.prototype[e]=function(t,r,n){return this.request(Op(n||{},{method:e,url:t,data:r}))}}));var Ip=Rp,Lp=th;function Dp(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 Lp(e),t(r.reason))}))}Dp.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Dp.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},Dp.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},Dp.source=function(){var e;return{token:new Dp((function(t){e=t})),cancel:e}};var Mp=Dp,Fp=Nu,Hp=Nu,Bp=vu,Up=Ip,jp=vp;var qp=function e(t){var r=new Up(t),n=Bp(Up.prototype.request,r);return Hp.extend(n,Up.prototype,r),Hp.extend(n,r),n.create=function(r){return e(jp(t,r))},n}(lp);qp.Axios=Up,qp.Cancel=th,qp.CancelToken=Mp,qp.isCancel=pp,qp.VERSION=Fh,qp.all=function(e){return Promise.all(e)},qp.spread=function(e){return function(t){return e.apply(null,t)}},qp.isAxiosError=function(e){return Fp.isObject(e)&&!0===e.isAxiosError},Tu.exports=qp,Tu.exports.default=qp;var zp=Tu.exports;function Gp(e){return e}function $p(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 Kp(e){if(zp.isCancel(e))return Promise.reject(e);var t=Qp(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||zp,t.backoffType=t.backoffType||"exponential",t.httpMethodsToRetry=$p(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=$p(t.statusCodesToRetry)||[[100,199],[429,429],[500,599]],e.config=e.config||{},e.config.raxConfig=Object.assign({},t),!(t.shouldRetry||Vp)(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 o=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(!(o&&o>0&&o<=t.maxRetryAfter))return n(e);i=o}e.config.raxConfig.currentRetryAttempt+=1;var a=e.config.raxConfig.currentRetryAttempt;0===i&&(i="linear"===t.backoffType?1e3*a:"static"===t.backoffType?t.retryDelay:(Math.pow(2,a)-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 Vp(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 o=i[n],a=e.response.status;if(a>=o[0]&&a<=o[1]){r=!0;break}}if(!r)return!1}return t.currentRetryAttempt=t.currentRetryAttempt||0,!(t.currentRetryAttempt>=t.retry)}function Qp(e){if(e&&e.config)return e.config.raxConfig}var Wp=Object.freeze({__proto__:null,attach:function(e){return(e=e||zp).interceptors.response.use(Gp,Kp)},detach:function(e,t){(t=t||zp).interceptors.response.eject(e)},shouldRetryRequest:Vp,getConfig:Qp}),Yp=he(Wp);!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=H.default,r=yr,n=Ir.exports,i=jr.exports,o=zn,a=Ai,s=Sa,c=pc,l=Ec,u=yc,h=Uc,p=jc,f=qc,d=Gc,m=$c,g=j.default,E=Kc,y=Vc,T=Qc,v=Wc,b=Yc,_=Xc,A=Jc,S=el,k=nl,C=il,x=cl,w=xl,O=mu,N=Eu,P=yu,R=M.default,I=zp,L=Yp,D=Mr.exports;function F(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var B=F(r),U=F(n),q=F(i),z=F(s),G=F(c),$=F(l),K=F(g),V=F(w),Q=F(O),W=F(R),Y=F(I),X=F(L),J=F(D);class Z{constructor(e,t,r,n,i){this.id=void 0,this.sha=void 0,this.metadata=void 0,this.summary=void 0,this._config=void 0,this.id=e,this.summary=r,this.config=t,this.metadata=n,this.sha=i}getMetadata(e,r){return this.metadata?t.get(this.metadata,e,r):r}setMetadata(e,r){this.metadata||(this.metadata={}),t.set(this.metadata,e,r)}get config(){return this._config}set config(e){e.setKey(`${this.id}:config`),this._config=e}}function ee(e,t){return U.default.encrypt(e,t).toString()}function te(e,t){try{return U.default.decrypt(e,t).toString(q.default)}catch{return""}}Z.style=".topwrite/style.css",Z.logo="logo.png",Z.readme="README.md";var re=Object.freeze({__proto__:null,encrypt:ee,decrypt:te});function ne(e){return"string"==typeof e&&e.startsWith("@encrypted:")}class ie{constructor(e,r,n,i){this.key=void 0,this.values=void 0,this.presetValues=void 0,this.schema=void 0,this.values=t.merge(e,i),this.presetValues=i,this.schema=r,this.key=n}setKey(e){this.key=e;const r=new B.default({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:["color"]});r.addKeyword("encrypt",{validate:(r,n,i,o,a,s)=>(r&&ne(n)&&a&&s&&t.set(a,s,te(n.substring(11),e)),!0),modifying:!0,errors:!1}),r.compile(this.schema)(this.values)}getValues(){return this.values}setValues(e){const r=new B.default({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:"ignore"}).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}getPresetValues(){return this.presetValues}getValue(e,r){return t.get(this.values,e,r)}setValue(e,r){return t.set(this.values,e,r)}toObject(){let e=t.cloneDeep(this.values);this.presetValues&&(e=t.omit(e,t.keys(this.presetValues)));const r=new B.default({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:["color"]});return r.removeKeyword("default"),r.addKeyword("default",{validate:(e,r,n,i,o,a,s)=>(t.isEqual(e,r)&&(delete o[a],t.isEmpty(o)&&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.substring(1)))),!0),modifying:!0,errors:!1}),r.addKeyword("encrypt",{validate:(e,r,n,i,o,a)=>(this.key&&e&&!ne(r)&&o&&a&&t.set(o,a,`@encrypted:${ee(r,this.key)}`),!0),modifying:!0,errors:!1}),r.compile(this.schema)(e),e}toText(){const e=this.toObject();let r="";return t.isEmpty(e)||(r=JSON.stringify(e,null,4)),r}static createFromObject(e,r,n,i){const o=new B.default({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:["color"]});n&&o.addKeyword("encrypt",{validate:(e,r,i,o,a,s)=>(e&&ne(r)&&a&&s&&t.set(a,s,te(r.substring(11),n)),!0),modifying:!0,errors:!1});const a=o.compile(r);if(!a(e))for(const r of a.errors)e=t.omit(e,r.dataPath.substring(1).split("/"));return new this(e,r,n,i)}}class oe extends ie{constructor(){super(...arguments),this.pluginsConfig={},this.presetPlugins={}}setPresetPlugins(e){this.presetPlugins=e}getPresetPluginConfig(e){return this.presetPlugins[e]}getPlugins(){return Array.from(new Set([...this.getValue("plugins"),...Object.keys(this.presetPlugins)]))}getPluginConfig(e,r){if(!this.pluginsConfig[e]){const n=this.getValue(["pluginsConfig",e],{});this.pluginsConfig[e]=ie.createFromObject(t.cloneDeep(n),r,`${this.key}:${e}`,this.presetPlugins[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,oe.schema)}}oe.file="book.json",oe.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",default:"light"},primaryColor:{type:"string",title:"Primary Color",format:"color",default:"#3c60ff"},expandLevel:{type:"integer",title:"Expand level",default:0},navs:{type:"array",title:"Nav configures",items:{type:"object",properties:{title:{title:"Label",type:"string"},url:{title:"Link",type:"string"}},required:["title","url"],additionalProperties:!1},default:[]}},default:{}},plugins:{type:"array",items:{type:"string"},default:[]},pluginsConfig:{type:"object",title:"Configuration for plugins",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:{}},release:{type:"object",title:"Release specific configurations",properties:{pathEncode:{type:"boolean",title:"Whether to encode the chapter path",default:!0}},default:{}},assistant:{type:"object",title:"AI Assistant configurations",properties:{token:{type:"string",title:"ThinkAI Token",encrypt:!0}},default:{}}},required:[]};const ae={tokenize:function(e,t,r){function n(t){return t===d.codes.rightParenthesis?h(t):T.factoryDestination(e,i,r,f.types.resourceDestination,f.types.resourceDestinationLiteral,f.types.resourceDestinationLiteralMarker,f.types.resourceDestinationRaw,f.types.resourceDestinationString,m.constants.linkResourceDestinationBalanceMax)(t)}function i(t){return v.markdownLineEndingOrSpace(t)?y.factoryWhitespace(e,o)(t):h(t)}function o(t){return t===d.codes.quotationMark||t===d.codes.apostrophe||t===d.codes.leftParenthesis?_.factoryTitle(e,y.factoryWhitespace(e,a),r,f.types.resourceTitle,f.types.resourceTitleMarker,f.types.resourceTitleString)(t):a(t)}function a(t){return t===d.codes.equalsTo?(e.enter("resourceSize"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),s):h(t)}function s(t){return t===d.codes.lowercaseX?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),l):t===d.codes.rightParenthesis||v.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),y.factoryWhitespace(e,h)(t)):(e.enter("resourceSizeWidth"),e.enter(f.types.chunkString,{contentType:"string"}),c(t))}function c(t){return t===d.codes.rightParenthesis||v.markdownLineEndingOrSpace(t)?(e.exit(f.types.chunkString),e.exit("resourceSizeWidth"),e.exit("resourceSize"),y.factoryWhitespace(e,h)(t)):t===d.codes.lowercaseX?(e.exit(f.types.chunkString),e.exit("resourceSizeWidth"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),l):(e.consume(t),c)}function l(t){return t===d.codes.rightParenthesis||v.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),y.factoryWhitespace(e,h)(t)):(e.enter("resourceSizeHeight"),e.enter(f.types.chunkString,{contentType:"string"}),u(t))}function u(t){return t===d.codes.rightParenthesis||v.markdownLineEndingOrSpace(t)?(e.exit(f.types.chunkString),e.exit("resourceSizeHeight"),e.exit("resourceSize"),y.factoryWhitespace(e,h)(t)):(e.consume(t),u)}function h(n){return n===d.codes.rightParenthesis?(e.enter(f.types.resourceMarker),e.consume(n),e.exit(f.types.resourceMarker),e.exit(f.types.resource),t):r(n)}return function(t){return e.enter(f.types.resource),e.enter(f.types.resourceMarker),e.consume(t),e.exit(f.types.resourceMarker),y.factoryWhitespace(e,n)}}},se={tokenize:function(e,t,r){const n=this;function i(e){return n.parser.defined.includes(E.normalizeIdentifier(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}return function(t){return K.default.strictEqual(t,d.codes.leftSquareBracket,"expected left bracket"),b.factoryLabel.call(n,e,i,r,f.types.reference,f.types.referenceMarker,f.types.referenceString)(t)}}},ce={tokenize:function(e,t,r){function n(n){return 93===n?(e.enter(f.types.referenceMarker),e.consume(n),e.exit(f.types.referenceMarker),e.exit(f.types.reference),t):r(n)}return function(t){return e.enter(f.types.reference),e.enter(f.types.referenceMarker),e.consume(t),e.exit(f.types.referenceMarker),n}}};var le={name:"labelEnd",tokenize:function(e,t,r){const n=this;let i,o,a=n.events.length;for(;a--;)if((n.events[a][1].type===f.types.labelImage||n.events[a][1].type===f.types.labelLink)&&!n.events[a][1]._balanced){i=n.events[a][1];break}function s(e){return i._balanced=!0,r(e)}function c(r){return r===d.codes.leftParenthesis?e.attempt(ae,t,o?t:s)(r):r===d.codes.leftSquareBracket?e.attempt(se,t,o?e.attempt(ce,t,s):s)(r):o?t(r):s(r)}return function(t){return K.default(t===d.codes.rightSquareBracket,"expected `]`"),i?i._inactive?s(t):(o=n.parser.defined.indexOf(E.normalizeIdentifier(n.sliceSerialize({start:i.end,end:n.now()})))>-1,e.enter(f.types.labelEnd),e.enter(f.types.labelMarker),e.consume(t),e.exit(f.types.labelMarker),e.exit(f.types.labelEnd),c):r(t)}},resolveTo:p.labelEnd.resolveTo,resolveAll:p.labelEnd.resolveAll};const ue=(e,t,r,n)=>{const i=h.image(e,t,r,n);return e.width||e.height?i.replace(/\)$/,` =${e.width||""}${e.height?`x${e.height}`:""})`):i};ue.peek=h.image.peek;const he=e=>{let t;switch(e){case"right":t="--: ";break;case"center":t=":-: ";break;default:t=""}return t},pe={tokenize:function(e,t,r){function n(t){return t===d.codes.rightSquareBracket?r(t):(e.enter("blockQuoteType"),e.enter(f.types.chunkString,{contentType:"string"}),i(t))}function i(t){return t===d.codes.rightSquareBracket?(e.exit(f.types.chunkString),e.exit("blockQuoteType"),e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),o):v.markdownLineEndingOrSpace(t)||!v.asciiAlpha(t)?r(t):(e.consume(t),i)}function o(e){return e===d.codes.leftParenthesis?r(e):t(e)}return function(t){return e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),n}},partial:!0},fe={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(t===d.codes.greaterThan){const r=n.containerState;return K.default(r,"expected `containerState` to be defined in container"),r.open||(e.enter(f.types.blockQuote,{_container:!0}),r.open=!0),e.enter(f.types.blockQuotePrefix),e.enter(f.types.blockQuoteMarker),e.consume(t),e.exit(f.types.blockQuoteMarker),C.factorySpace(e,i,f.types.whitespace)}return r(t)};function i(t){return t===d.codes.leftSquareBracket?e.attempt(pe,o,o)(t):o(t)}function o(r){return v.markdownSpace(r)?(e.enter(f.types.blockQuotePrefixWhitespace),e.consume(r),e.exit(f.types.blockQuotePrefixWhitespace),e.exit(f.types.blockQuotePrefix),t):(e.exit(f.types.blockQuotePrefix),t(r))}},continuation:{tokenize:function(e,t,r){return C.factorySpace(e,e.attempt(fe,t,r),f.types.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:m.constants.tabSize)}},exit:p.blockQuote.exit},de="blankLine",me="blankLineSequence",ge={name:"blankLine",tokenize:(e,t,r)=>{let n;const i=t=>t===n?(e.consume(t),i):(e.exit(me),o(t)),o=a=>a===n?(e.enter(me),i(a)):v.markdownSpace(a)?C.factorySpace(e,o,f.types.whitespace)(a):a===d.codes.eof||v.markdownLineEnding(a)?(e.exit(de),t(a)):r(a);return t=>(K.default(t===d.codes.caret,"expected `^`"),e.enter(de),n=t,o(t))}},Ee=function(e,t){void 0===t&&(t="text");let r="";return A.visit(e,t,(function(e){r+=e.value})),r},ye=/^\[toc(?:=(\d)(?:,(\d))?)?]$/im,Te=a.unified().use(z.default).use((function(){const e=this.data();e.micromarkExtensions=[],e.fromMarkdownExtensions=[],e.toMarkdownExtensions=[],e.toHastExtensions=[]})).use(Q.default).use(V.default,["yaml"]).use(G.default).use($.default).use(N.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){A.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]:le}}),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:ue}}),e.toHastExtensions.push({image:(e,t)=>{const r={src:u.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,n)=>{const i=S.paragraph(e,t,r,n);return he(e.align)+i},heading:(e,t,r,n)=>k.heading(e,t,r,n).replace(/^#+\s/,`$&${he(e.align)}`)}}),function(e){A.visit(e,((e,t,r)=>{if((e=>"paragraph"===e.type||"heading"===e.type)(e)){const t=o.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,n)=>{const i=x.blockquote(e,t,r,n);return e.variant?i.replace(/(^|\s+)>\s/,`$1> [${e.variant}] `):i}}}),e.micromarkExtensions.push({document:{[d.codes.greaterThan]:fe}}),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){A.visit(e,"blockquote",(e=>{e.variant&&(e.data={...e.data,hProperties:{className:e.variant}})}))}})).use((function(){const e=this.data();e.toHastExtensions.push({blankLine:e=>e({},"p",[e({},"br")])}),e.micromarkExtensions.push({flow:{[d.codes.caret]:ge}}),e.toMarkdownExtensions.push({handlers:{blankLine:()=>"^"}}),e.fromMarkdownExtensions.push({enter:{blankLine:function(e){this.enter({type:"blankLine"},e)}},exit:{blankLine:function(e){this.exit(e)}}})})).use((function(){return function(e){A.visit(e,((e,t,r)=>{if(r&&"root"===r.type&&null!==t&&Ee(e).match(ye))return r.children.splice(t,1),[A.SKIP,t]}))}}));function ve(e){const t=[];for(const r of e.children){const e=r.children,n=o.select("paragraph:first-child>*",r);if(!n)continue;const i=Ee(n);if(!i)continue;let a="";n.url&&(a=decodeURI(n.url),a.match(/[\\:*?"<>|]/)&&(a=""));let s={title:i,ref:a};if(e.length>1){const t=e[e.length-1];P.is(t,"list")&&(s.children=ve(t))}t.push(s)}return t}const be=Te();class _e{constructor(e){void 0===e&&(e=[]),this.data=void 0,this.data="string"==typeof e?e.split(".").map((e=>parseInt(e,10))):e}getRoot(){return new _e(this.data.slice(0,1))}getParent(){return new _e(this.data.slice(0,-1))}createChild(e){return new _e(this.data.concat(e))}isDescendant(e){return e.toString().startsWith(`${this.toString()}.`)}getNext(){const e=[...this.data];return e[e.length-1]++,new _e(e)}getDepth(){return this.data.length-1}eq(e){return this.toString()===e.toString()}getLeafIndex(){return this.data[this.data.length-1]-1}toString(e){return e?this.data.slice(e.data.length).join("."):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 Ae{constructor(e){let{title:t,ref:r="",path:n,children:i=[],metadata:o}=e;this.level=void 0,this.title=void 0,this.ref=void 0,this.path=void 0,this.children=void 0,this.metadata=void 0,this.hasPath=!1,this.title=t,this.ref=r,n?(this.hasPath=!0,this.path=n):this.path=r?R.posix.format({...R.posix.parse(r),ext:".html",base:""}):"",this.children=i,this.level=new _e,this.metadata=o}getMetadata(e,r){return this.metadata?t.get(this.metadata,e,r):r}setMetadata(e,r){this.metadata||(this.metadata={}),t.set(this.metadata,e,r)}getLevel(){return this.level}getTitle(){return this.title}getRef(){return this.ref}getPath(){return this.path}getArticles(){return this.children}getDescendants(){const e=[];return Ae.findArticle(this,(t=>(e.push(t),!1))),e}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))}toObject(){const e=this.children.map((function(e){return e.toObject()}));return{title:this.title,ref:this.ref,path:this.hasPath?this.path:void 0,metadata:this.metadata,children:t.isEmpty(e)?void 0:e}}static findArticle(e,t){return e.getArticles().reduce(((e,r)=>e||(t(r)?r:Ae.findArticle(r,t))),void 0)}static createFromObject(e){const t=e.children?.filter((e=>!!e.title)).map((e=>Ae.createFromObject(e)));return new Ae({...e,children:t})}}class Se{constructor(e,t,r){void 0===t&&(t=[]),this.level=void 0,this.title=void 0,this.articles=void 0,this.metadata=void 0,this.level=new _e,this.title=e,this.articles=t,this.metadata=r}getMetadata(e,r){return this.metadata?t.get(this.metadata,e,r):r}getLevel(){return this.level}getTitle(){return this.title}getArticles(){return this.articles}getFirstArticle(){return Ae.findArticle(this,(()=>!0))}getDescendants(){const e=[];return Ae.findArticle(this,(t=>(e.push(t),!1))),e}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))}toText(){let e="";return Ae.findArticle(this,(r=>{const n=r.ref?`[${r.title}](${r.ref.replace(/\s/g,"%20")})`:r.title;return e+=`${t.repeat(" ",r.getDepth()-1)}* ${n}\n`,!1})),e}toObject(){const e=this.articles.map((function(e){return e.toObject()}));return{title:this.title,metadata:this.metadata,articles:t.isEmpty(e)?void 0:e}}static createFromObject(e){const t=e.articles?.filter((e=>!!e.title)).map((e=>Ae.createFromObject(e)));return new Se(e.title,t,e.metadata)}}class ke{constructor(e,t){void 0===e&&(e=[]),void 0===t&&(t=!1),this.parts=void 0,this.json=void 0,this.parts=e,this.json=t,this.indexLevels()}insertPart(e,t){if(e instanceof Se||(e=Se.createFromObject(e)),this.isEmpty())this.parts=[e];else{const r=t?t.getLeafIndex():this.parts.length;this.parts.splice(r,0,e)}this.indexLevels()}updatePart(e,r){const n=this.getByLevel(e);n instanceof Se&&(t.isFunction(r)?r(n):(n.title=r.title,n.metadata=r.metadata))}removePart(e){const t=e.getLeafIndex();this.parts.splice(t,1),0===this.parts.length&&(this.parts=[new Se("")]),this.indexLevels()}insertArticle(e,t){e instanceof Ae||(e=Ae.createFromObject(e));const r=this.getParent(t);if(!r)return;const n=r.getArticles(),i=t.getLeafIndex();n.splice(i,0,e),r.indexLevels()}updateArticle(e,r){const n=this.getByLevel(e);n instanceof Ae&&(t.isFunction(r)?r(n):(n.title=r.title,n.ref=r.ref,n.metadata=r.metadata))}removeArticle(e){const t=this.getParent(e);if(!t)return;const r=t.getArticles(),n=e.getLeafIndex();r.splice(n,1),t.indexLevels()}toText(){let e="";if(1!==this.parts.length||this.parts[0].title)for(let t of this.parts)e+=`## ${t.title}`,e+="\n",e+=t.toText(),e+="\n";else e+=this.parts[0].toText();return e}hasMetadata(){let e=!1;return this.getArticle((r=>!!e||!t.isEmpty(r.metadata)&&(e=!0,!0)),(r=>(t.isEmpty(r.metadata)||(e=!0),!0))),e}isJson(){return this.json}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,t){return this.parts.reduce(((r,n)=>r||(!t||t(n)?Ae.findArticle(n,e):void 0)),void 0)}getArticlePart(e){const t=e.getLevel().getRoot();return this.getByLevel(t)}getFirstPath(){const e=this.getArticle((e=>!!e.getPath()));if(e)return e.getPath()}getByLevel(e){const t=t=>t.getLevel().eq(e);return this.parts.reduce(((e,r)=>e||(t(r)?r:Ae.findArticle(r,t))),void 0)}getFirstArticle(){return this.getArticle((()=>!0))}getNextArticle(e){const t=e instanceof Ae?e.getLevel():e;let r=!1;return this.getArticle((e=>!!r||(r=e.getLevel()==t,!1)))}getPrevArticle(e){const t=e instanceof Ae?e.getLevel():e;let r;return this.getArticle((e=>e.getLevel()==t||(r=e,!1))),r}getParent(e){const t=(e instanceof Ae?e.getLevel():e).getParent();if(t)return this.getByLevel(t)}indexLevels(){for(const[e,t]of this.parts.entries()){const r=new _e(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}toObject(){return this.parts.map((function(e){return e.toObject()}))}static createFromObject(e){return new ke(e.map((e=>Se.createFromObject(e))),!0)}static createFromText(e){const t=function(e){const t=be.parse(e),r=[];let n;for(const e of t.children)if(P.is(e,"heading")&&[2,3].includes(e.depth)&&(n&&r.push(n),n={title:Ee(e).trim()}),P.is(e,"list")){const t=ve(e);n?n.articles=(n.articles||[]).concat(t):n={title:"",articles:t}}return n?r.push(n):r.push({title:""}),r}(e);return new ke(t.map((e=>Se.createFromObject(e))))}static create(e){return"object"==typeof e?ke.createFromObject(e):ke.createFromText(e)}}ke.file={json:"SUMMARY.json",markdown:"SUMMARY.md"};class Ce{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 Y.default.get(`${this.host}/api/bought?book=${e.id}&plugin=${t.name}`),!0}catch{return!1}}async trial(e,t){try{const{data:r}=await Y.default.get(`${this.host}/api/trial?book=${e.id}&plugin=${t.name}`);return r}catch{return!1}}async queryPlugins(e){let{page:t=1,...r}=e;const{data:n}=await Y.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")];this.preset&&(r.push(...Object.keys(this.preset)),t.setPresetPlugins(this.preset));const{data:n}=await Y.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.flatMap((e=>!e.builtin||this.preset?.[e.name]?(e.preset=!!this.preset?.[e.name],[e]):[]))}}e.pluginCenter=void 0;class xe{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.size/10;if(e.beginPath(),e.arc(this.size-t,this.size-t,t,0,Math.PI/2),e.lineTo(t,this.size),e.arc(t,this.size-t,t,Math.PI/2,Math.PI),e.lineTo(0,t),e.arc(t,t,t,Math.PI,3*Math.PI/2),e.lineTo(this.size-t,0),e.arc(this.size-t,t,t,3*Math.PI/2,2*Math.PI),e.lineTo(this.size,this.size-t),e.closePath(),this.letter.length>0){const t=this.letter[0].toUpperCase();e.fillStyle=this.flatColors[t.charCodeAt(0)%this.flatColors.length],e.fill(),e.restore(),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)}else e.fillStyle=this.flatColors[0],e.fill()}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 xe(e,t,r)}}const we=/^(?:\w+:)?\/\/(\S+)$/,Oe=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Ne=/^[^\s\.]+\.\S{2,}$/;X.default.attach(),Y.default.defaults.raxConfig={retryDelay:2e3,backoffType:"static",shouldRetry:e=>{let{config:t,response:r}=e;const n=t.raxConfig||{};return!(n?.retryDecider&&!n.retryDecider()||!t.method||!n.httpMethodsToRetry?.includes(t.method.toUpperCase())||449!==r?.status)}},Y.default.defaults.maxContentLength=1/0,Y.default.defaults.maxBodyLength=1/0,Y.default.interceptors.request.use((e=>{if(e.onMessage){let t=0,r="",n=null;const i=e.onMessage;e.onDownloadProgress=e=>{const o=e.target,{responseText:a}=o;for(;t<e.loaded;){const e=a.substring(t,++t);if(r+=e,"\n"===e){if(n||(n={id:"",event:"",data:""}),"\n"===r)i(n),n=null;else{const e=r.match(/^data:(?<data>.*)/);e&&(n.data=e.groups.data.trim())}r=""}}}}return e})),Y.default.interceptors.response.use((e=>e),(e=>{if(Y.default.isAxiosError(e)&&e.response){const{data:t,status:r}=e.response;401===r?e.errors="Unauthorized":function(e){return e&&"object"==typeof e}(t)&&422!==r?"message"in t&&(e.errors=t.message):e.errors=t,"string"!=typeof e.errors?e.message=Object.values(e.errors).join("\n"):e.message=e.errors}return Promise.reject(e)}));const Pe=Y.default.isAxiosError,Re=Y.default.isCancel;Object.defineProperty(e,"request",{enumerable:!0,get:function(){return Y.default}}),e.BaseConfig=ie,e.Book=Z,e.Config=oe,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=W.default.posix.relative(W.default.posix.dirname(this.path),e)||".")+(t?"/":"")}resolve(e){return W.default.posix.join(W.default.posix.dirname(this.path),e)}},e.LetterAvatar=xe,e.Level=_e,e.Summary=ke,e.SummaryArticle=Ae,e.SummaryPart=Se,e.aes=re,e.createPluginCenter=function(t){return e.pluginCenter=new Ce(t)},e.isCancel=Re,e.isEncryptedData=ne,e.isRequestError=Pe,e.isUrl=function(e){const t=e.match(we);if(!t)return!1;const r=t[1];return!!r&&(Oe.test(r)||Ne.test(r))},e.markdown=Te,e.md5=function(e){return J.default(e).toString()}}(pe);class Xp{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 Jp(e,t){le.info(`installing plugin "${e.name}"`);const r=`npm install ${e.host}.tgz`,{error:n}=K.default.sync(r,{stdio:["inherit"],cwd:t,shell:!0});if(n)throw n;const i=M.default.join(t,"node_modules","topwrite-plugin-"+e.name),o=M.default.join(i,"dist","hooks.js");let a={};if(V.existsSync(o)){a=new d.NodeVM({require:{builtin:["path/posix","crypto"]},sandbox:{URL:URL,URLSearchParams:URLSearchParams}}).runFile(o)}const s=M.default.join(i,"config.json");let c={};return V.existsSync(s)&&(c=require(s)),le.info(`plugin "${e.name}@${e.version}" installed with success`),new Xp({name:e.name,version:e.version,path:i,hooks:a,config:c})}const Zp=/(^-{3}(?:\r\n|\r|\n)([\w\W]*?)-{3}(?:\r\n|\r|\n))?([\w\W]*)*/;class ef{book;sourceFS;tmpFS;dest;version;options;plugins=[];constructor(e,t,r,n,i,o){this.book=e,this.sourceFS=t,this.tmpFS=r,this.options=n,this.dest=i,this.version=o}getContext(){return{book:this.book,sourceFS:this.sourceFS,tmpFS:this.tmpFS,request:pe.request,logger:le,format:this.format}}async generate(){await this.initLfs(),await this.initPlugins(),await this.onInit(),await this.callHook("init"),await this.checkStyle(),await this.generateLogo(),await this.onReadme(),await this.callHook("readme"),await this.generateArticles(),await this.callHook("articles"),await this.onSummary(),await this.callHook("summary"),await this.callHook("beforeFinish")&&(await this.onFinish(),await this.callHook("finish")),le.success("generation finished with success!")}async checkStyle(){this.tmpFS.exist(pe.Book.style)||await this.tmpFS.writeFile(pe.Book.style,"")}async initLfs(){if(this.options.lfs){le.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}=K.default.sync(e,{stdio:["inherit"],encoding:"utf8",cwd:this.sourceFS.root,shell:!0}),o={};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=M.default.relative(r,e)),o[e]=t.trim(),this.tmpFS.unlink(e)}}})),this.options.lfs.files=o,le.info(`found ${Object.keys(o).length} files`)}}async initPlugins(){this.plugins=await async function(e,t,r){const n=pe.createPluginCenter(r),i=await n.getInstalled(e),o=[],a=e.config.getValue("theme");le.info(`installing ${i.length} plugins from registry`);for(let e of i){if(e.disabled)throw new Error('plugin "'+e.name+'" has been disabled');"theme"===e.type||"ebook"!==a||e.ebook?o.push(await Jp(e,t)):le.info(`plugin "${e.name}" ignored in ebook`)}return o}(this.book,this.tmpFS.root,this.options.plugins)}async generateLogo(){if(!this.tmpFS.exist(pe.Book.logo)){const e=this.book.config.getValue("title","Untitled"),t=g.createCanvas(60,60);pe.LetterAvatar.create(e,60,t);const r=t.toBuffer("image/png");await this.tmpFS.writeFile(pe.Book.logo,r)}}async generateArticle(e){if(e.ref){le.info('generate article "'+e.getRef()+'"');try{await this.onArticle(e),await this.callHook("article",e)}catch(t){"ENOENT"===t.code?le.warn(`article file [${e.ref}] not exist`):le.warn(`generate article [${e.ref}] failed: ${t.message}`)}}}async generateArticles(){le.info("generate articles ...");const e=this.book.summary.getArticles();le.info(`found ${e.length} articles`);for(const t of e)await this.generateArticle(t)}async callHook(e,...t){return le.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){const t=await this.tmpFS.readAsString(e.ref),r=this.parseFileMeta(e.ref,t);return new pe.File({path:e.path,...r})}parseFileMeta(e,t){const r=t.match(Zp);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=M.default.join(this.book.config.getValue("root",""),e),[o,a]=this.sourceFS.readFileTime(i);return n.ctime=o,n.mtime=a,{meta:n,content:t}}}class tf extends ef{format="json";scripts=[];async onInit(){this.processSummary(),await this.installCommonAssets(),await this.installReader(),await this.copyPluginsAssets()}processSummary(){this.book.summary.getArticle((e=>(this.book.config.getValue(["release","pathEncode"],!0)&&(e.path=y.pinyin(e.path,{toneType:"none",nonZh:"consecutive",type:"array",v:!0}).join("")),e.hasPath=!0,!1)))}async installCommonAssets(){le.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"),le.info("common assets installed with success")}async installReader(){le.info("installing package @topwrite/reader ...");const e=await this.installPackage("@topwrite/reader","dist/","reader");le.info(`package @topwrite/reader@${e.version} installed with success`)}async installPackage(e,t,r){const n=require.resolve(`${e}/package.json`),i=require(n);if(this.useCdn())t.endsWith("/")&&(t=`${t}index.js`),this.scripts.push(`https://jsdelivr.topthink.com/npm/${e}@${i.version}/${t}`);else{const e=M.default.join(M.default.dirname(n),t),o=M.default.join(this.tmpFS.root,"asset",r);await Y.default.copy(e,o),t.endsWith("/")&&(r=`${r}/index.js`),this.scripts.push(`asset/${r}?v=${i.version}`)}return i}async copyPluginsAssets(){for(const e of this.plugins)if(this.useCdn()){const t=this.options.plugins.host;this.scripts.push(`${t}/plugins/${e.name}/${e.version}/dist/index.js`)}else await Y.default.copy(M.default.join(e.path,"dist"),M.default.join(this.tmpFS.root,"asset","plugins",e.name)),this.scripts.push(`asset/plugins/${e.name}/index.js?v=${e.version}`)}useCdn(){return"cdn"===this.options.asset}async onReadme(){const e=await this.makeFile({path:"index.html",ref:"README.md"});await this.tmpFS.unlink("README.md"),await this.tmpFS.writeFile("index.html.json",this.stringify(e))}async onArticle(e){const t=e.path+".json";if(!this.tmpFS.exist(t)){const r=await this.makeFile(e);e.metadata={...r.meta,...e.metadata},await this.tmpFS.unlink(e.ref),await this.tmpFS.writeFile(t,this.stringify(r))}}async onSummary(){const e=this.book.summary;await this.tmpFS.unlink(pe.Summary.file.json),await this.tmpFS.unlink(pe.Summary.file.markdown),await this.tmpFS.writeFile(pe.Summary.file.json,this.stringify(e.toObject()));const[t,r]=this.sourceFS.readFileTime(),n={id:this.book.id,sha:this.book.sha,lfs:this.options.lfs,scripts:this.scripts,poweredBy:this.options.poweredBy,ctime:t,mtime:r};await this.tmpFS.writeFile("context.json",this.stringify(n))}async onFinish(){await this.packBook()}async packBook(){le.info("pack book ...");const e=Y.default.createWriteStream(this.dest);await this.tmpFS.archive(e,"tar")}stringify(e){return JSON.stringify(e,null,4)}}class rf{root;constructor(e){this.root=e}readFileTime(e=""){const t=`git log --pretty=format:%cI -- ${e}`,{error:r,stdout:n}=K.default.sync(t,{stdio:["inherit"],encoding:"utf8",cwd:this.root,shell:!0});if(r||!n)return[void 0,void 0];const i=n.split("\n");return[i[i.length-1],i[0]]}createReadStream(e,t){return Y.default.createReadStream(this.resolve(e),t)}async readFile(e){return await Y.default.readFile(this.resolve(e))}async readAsObject(e,t={}){try{return await Y.default.readJSON(this.resolve(e))}catch{return t}}async readAsString(e){try{return await Y.default.readFile(this.resolve(e),"utf-8")}catch{return""}}async writeFile(e,t){return e=this.resolve(e),Y.default.ensureDirSync(M.default.dirname(e)),Y.default.writeFile(e,t)}createWriteStream(e,t){return e=this.resolve(e),Y.default.ensureDirSync(M.default.dirname(e)),Y.default.createWriteStream(e,t)}async appendFile(e,t){return Y.default.appendFile(this.resolve(e),t)}exist(e){return Y.default.pathExistsSync(this.resolve(e))}async unlink(e){try{await Y.default.unlink(this.resolve(e))}catch{}}async readDir(e=""){const t=[];return new Promise((r=>{X.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 M.default.join(this.root,...e)}async archive(e,t="tar"){if("tar"==t)return new Promise(((t,r)=>{b.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 o=J.default(t,{gzip:!0,gzipOptions:{level:9},zlib:{level:9}});o.pipe(e);for(const e of r)"File"===e.type&&o.append(this.createReadStream(e.path),{name:e.path});o.finalize()}))}}}class nf extends tf{template;format="html";async onInit(){await super.onInit(),await this.initTemplate()}async initTemplate(){const e=await Y.default.readFile(M.default.resolve(__dirname,"../templates/html.ejs"),"utf-8");this.template=Z.default.compile(e)}useCdn(){return!1}async onReadme(){const e=await this.makeFile({path:"index.html",ref:"README.md"}),t=await this.renderFile(e);await this.tmpFS.unlink("README.md"),await this.tmpFS.writeFile("index.html",t)}async onArticle(e){if(!this.tmpFS.exist(e.path)){const t=await this.makeFile(e);e.metadata={...t.meta,...e.metadata};const r=await this.renderFile(t,e.title);await this.tmpFS.unlink(e.ref),await this.tmpFS.writeFile(e.path,r)}}async onSummary(){await this.tmpFS.unlink(pe.Summary.file.json),await this.tmpFS.unlink(pe.Summary.file.markdown)}async renderFile(e,t){const r={id:this.book.id,sha:this.book.sha,metadata:this.book.metadata,summary:this.book.summary.toObject(),config:this.book.config.toObject(),file:e,lfs:this.options.lfs,options:{poweredBy:this.options.poweredBy}},n=this.scripts.map((t=>pe.isUrl(t)?t:e.relative(t))),i=this.book.config.getValue("title","Untitled"),o=e.getMeta("title",t);return this.template({title:(o?`${o} - `:"")+i,keywords:e.getMeta("keywords"),description:e.getMeta("description"),scripts:n,payload:JSON.stringify(r).replace(/\//g,"\\/")})}}const of=(e,t)=>e.some((e=>e instanceof RegExp?e.test(t):e===t));function af(e,t){const{tryEvery:r,stopAfter:n}=t,i=Date.now(),o=(t,a)=>{setTimeout((async()=>{try{const r=await e();t(r)}catch(e){Date.now()-i>n?a(e):o(t,a)}}),r)};return new Promise(o)}class sf extends ee.default.ResourceLoader{async fetch(e,t){const{element:r}=t;return r&&"IMG"===r.nodeName?null:super.fetch(e,t)}}const cf=/\s+at.*[(\s](.*)\)?/,lf=/^(?:(?:(?:node|node:[\w/]+|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/,uf=void 0===re.default.homedir?"":re.default.homedir().replace(/\\/g,"/");class hf extends Error{#e;name="AggregateError";constructor(e){if(!Array.isArray(e))throw new TypeError("Expected input to be an Array, got "+typeof e);let t=(e=e.map((e=>e instanceof Error?e:null!==e&&"object"==typeof e?Object.assign(new Error(e.message),e):new Error(e)))).map((e=>{return"string"==typeof e.stack&&e.stack.length>0?(t=function(e,{pretty:t=!1,basePath:r}={}){const n=r&&new RegExp(`(at | \\()${ns(r.replace(/\\/g,"/"))}`,"g");if("string"==typeof e)return e.replace(/\\/g,"/").split("\n").filter((e=>{const t=e.match(cf);if(null===t||!t[1])return!0;const r=t[1];return!(r.includes(".app/Contents/Resources/electron.asar")||r.includes(".app/Contents/Resources/default_app.asar")||r.includes("node_modules/electron/dist/resources/electron.asar")||r.includes("node_modules/electron/dist/resources/default_app.asar")||lf.test(r))})).filter((e=>""!==e.trim())).map((e=>(n&&(e=e.replace(n,"$1")),t&&(e=e.replace(cf,((e,t)=>e.replace(t,t.replace(uf,"~"))))),e))).join("\n")}(e.stack),t.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,"")):String(e);var t})).join("\n");t="\n"+function(e,t=1,r={}){const{indent:n=" ",includeEmptyLines:i=!1}=r;if("string"!=typeof e)throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(t<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if("string"!=typeof n)throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(0===t)return e;const o=i?/^/gm:/^(?!\s*$)/gm;return e.replace(o,n.repeat(t))}(t,4),super(t),this.#e=e}get errors(){return this.#e.slice()}}class pf extends Error{constructor(e){super(),this.name="AbortError",this.message=e}}const ff=e=>void 0===globalThis.DOMException?new pf(e):new DOMException(e),df=e=>{const t=void 0===e.reason?ff("This operation was aborted."):e.reason;return t instanceof Error?t:ff(t)};async function mf(e,t,{concurrency:r=Number.POSITIVE_INFINITY,stopOnError:n=!0,signal:i}={}){return new Promise(((o,a)=>{if(void 0===e[Symbol.iterator]&&void 0===e[Symbol.asyncIterator])throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if("function"!=typeof t)throw new TypeError("Mapper function is required");if(!Number.isSafeInteger(r)&&r!==Number.POSITIVE_INFINITY||!(r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);const s=[],c=[],l=new Map;let u=!1,h=!1,p=!1,f=0,d=0;const m=void 0===e[Symbol.iterator]?e[Symbol.asyncIterator]():e[Symbol.iterator](),g=e=>{u=!0,h=!0,a(e)};i&&(i.aborted&&g(df(i)),i.addEventListener("abort",(()=>{g(df(i))})));const E=async()=>{if(h)return;const e=await m.next(),r=d;if(d++,e.done){if(p=!0,0===f&&!h){if(!n&&c.length>0)return void g(new hf(c));if(h=!0,0===l.size)return void o(s);const e=[];for(const[t,r]of s.entries())l.get(t)!==gf&&e.push(r);o(e)}}else f++,(async()=>{try{const n=await e.value;if(h)return;const i=await t(n,r);i===gf&&l.set(r,i),s[r]=i,f--,await E()}catch(e){if(n)g(e);else{c.push(e),f--;try{await E()}catch(e){g(e)}}}})()};(async()=>{for(let e=0;e<r;e++){try{await E()}catch(e){g(e);break}if(p||u)break}})()}))}const gf=Symbol("skip");function Ef(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}class yf extends nf{format="ebook";article;setArticle(e){const t=this.book.summary.getArticle((t=>t.getRef()===e));if(!t)throw new Error(`article ${e} not found`);this.article=t}async initPlugins(){this.book.config.setValue("theme","ebook"),this.options.plugins.preset["theme-ebook"]={},await super.initPlugins()}async generateArticles(){this.article?await this.generateArticle(this.article):await super.generateArticles()}async createDOM(e,t){const r=new sf,n=new S.VirtualConsole;n.on("debug",(e=>{le.debug(e)})),n.on("error",(e=>{le.error(e)})),n.on("jsdomError",(e=>{le.error(e)}));let i=!1,o=0;const a=new S.JSDOM(e,{virtualConsole:n,url:`file:///${this.tmpFS.resolve(t.path)}`,runScripts:"dangerously",resources:r,pretendToBeVisual:!0,beforeParse(e){e.SC_DISABLE_SPEEDY=!0;const{document:t}=e,r={attributes:!0,childList:!0,subtree:!0};e.addEventListener("load",(()=>{const n=new e.MutationObserver((function(e){for(const t of e)"childList"===t.type&&t.addedNodes.forEach((e=>{if("SCRIPT"===e.nodeName){++o;e.addEventListener("load",(()=>{--o}))}}))}));n.observe(t.head,r)})),e.addEventListener("pageLoaded",(()=>{i=!0}))}});return await af((()=>{if(!i||o>0)throw new Error("render html timeout")}),{stopAfter:5e3,tryEvery:100}),a}async renderFile(e,t){const r=await super.renderFile(e,t),n=await this.createDOM(r,e);await mf(Array.from(n.window.document.images),(async(t,r)=>{if(t.src){const n=a.parse(t.src);if(n.protocol?.startsWith("http"))try{le.info(`fetch image#${r}: ${t.src}`),t.src=await this.fetchImage(e,t.src),le.info(`image#${r} fetch succeed`)}catch{le.warn(`image#${r} ${t.src} fetch failed`)}}}),{concurrency:3});for(const e of Array.from(n.window.document.scripts))e.remove();return n.serialize()}async fetchImage(e,t){const r=await pe.request.get(t,{responseType:"stream",timeout:5e3,headers:{"User-Agent":`TopWriteBuilder/${this.version}`}});let n=`_images/${pe.md5(t)}`;const i=te.default.extension(r.headers["content-type"]);i&&(n+=`.${i}`);const o=this.tmpFS.createWriteStream(n);return new Promise(((t,i)=>{r.data.pipe(o),o.on("error",(e=>{o.close(),i(e)})),o.on("close",(()=>{t(e.relative(n))}))}))}async 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={poweredBy:this.options.poweredBy},n=await Z.default.renderFile(M.default.resolve(__dirname,"../templates/pdf-header.ejs"),e,{rmWhitespace:!0}),i=await Z.default.renderFile(M.default.resolve(__dirname,"../templates/pdf-footer.ejs"),e,{rmWhitespace:!0});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,this.article||(r["pdf-header-template"]=n),r["pdf-footer-template"]=i}return r}async packBook(){const e=M.default.extname(this.dest).substr(1);if(!["pdf","docx","epub"].includes(e))return super.packBook();const t=await A.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 o=(e,n)=>{const i=t.shortFlag&&1===e.length?"-":"--",o=t.allowCamelCase?e:e.replace(/[A-Z]/g,"-$&").toLowerCase();e=i+o,t.useEquals?r.push(e+(n?`=${n}`:"")):(r.push(e),n&&r.push(n))},a=(e,t)=>{r.push(`-${e}`),t&&r.push(t)};for(let[r,s]of Object.entries(e)){let e=o;if((!Array.isArray(t.excludes)||!of(t.excludes,r))&&(!Array.isArray(t.includes)||of(t.includes,r)))if("object"==typeof t.aliases&&t.aliases[r]&&(r=t.aliases[r],e=a),"--"!==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}(await this.getConvertOptions(e)),n=this.article?this.tmpFS.resolve(this.article.path):this.tmpFS.resolve("index.html");return r.unshift(n,this.dest),new Promise(((e,i)=>{le.info("convert book ...");const o=K.default(t,r,{stdio:["inherit"],cwd:this.tmpFS.root}),a=["^Conversion options ","^ \\w+: ","^Blocking URL ","^Ignoring CSS ","^Ignoring internal ","^CSSStyleDeclaration: ","^CSSStylesheet: ","^PropertyValue: ","^CSSVariable: ",Ef(n),Ef(this.dest)].map((e=>`(${e})`)).join("|"),s=new RegExp(`(${a})`);o.stdout?.on("data",(e=>{e.toString().replace(/[\r\n]*$/,"").split("\n").forEach((e=>{if(e){const t=e.trim();e.match(s)?le.debug({message:t,type:"log"}):le.log(t)}}))})),o.stderr?.on("data",(e=>{le.error(e.toString().trimEnd())})),o.on("close",(t=>{0!==t?i("Convert failed"):e()}))}))}}var Tf=ne.default,vf=process.cwd,bf=null,_f=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return bf||(bf=vf.call(process)),bf};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var Af=process.chdir;process.chdir=function(e){bf=null,Af.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Af)}var Sf=function(e){Tf.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,n){e.open(t,Tf.O_WRONLY|Tf.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,Tf.O_WRONLY|Tf.O_SYMLINK,r),o=!0;try{n=e.fchmodSync(i,r),o=!1}finally{if(o)try{e.closeSync(i)}catch(e){}else e.closeSync(i)}return n}}(e);e.lutimes||function(e){Tf.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,r,n,i){e.open(t,Tf.O_SYMLINK,(function(t,o){t?i&&i(t):e.futimes(o,r,n,(function(t){e.close(o,(function(e){i&&i(t||e)}))}))}))},e.lutimesSync=function(t,r,n){var i,o=e.openSync(t,Tf.O_SYMLINK),a=!0;try{i=e.futimesSync(o,r,n),a=!1}finally{if(a)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return i}):e.futimes&&(e.lutimes=function(e,t,r,n){n&&process.nextTick(n)},e.lutimesSync=function(){})}(e);e.chown=n(e.chown),e.fchown=n(e.fchown),e.lchown=n(e.lchown),e.chmod=t(e.chmod),e.fchmod=t(e.fchmod),e.lchmod=t(e.lchmod),e.chownSync=i(e.chownSync),e.fchownSync=i(e.fchownSync),e.lchownSync=i(e.lchownSync),e.chmodSync=r(e.chmodSync),e.fchmodSync=r(e.fchmodSync),e.lchmodSync=r(e.lchmodSync),e.stat=o(e.stat),e.fstat=o(e.fstat),e.lstat=o(e.lstat),e.statSync=a(e.statSync),e.fstatSync=a(e.fstatSync),e.lstatSync=a(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){});e.chown&&!e.lchown&&(e.lchown=function(e,t,r,n){n&&process.nextTick(n)},e.lchownSync=function(){});"win32"===_f&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function r(r,n,i){var o=Date.now(),a=0;t(r,n,(function s(c){if(c&&("EACCES"===c.code||"EPERM"===c.code)&&Date.now()-o<6e4)return setTimeout((function(){e.stat(n,(function(e,o){e&&"ENOENT"===e.code?t(r,n,s):i(c)}))}),a),void(a<100&&(a+=10));i&&i(c)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.rename));function t(t){return t?function(r,n,i){return t.call(e,r,n,(function(e){s(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function r(t){return t?function(r,n){try{return t.call(e,r,n)}catch(e){if(!s(e))throw e}}:t}function n(t){return t?function(r,n,i,o){return t.call(e,r,n,i,(function(e){s(e)&&(e=null),o&&o.apply(this,arguments)}))}:t}function i(t){return t?function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!s(e))throw e}}:t}function o(t){return t?function(r,n,i){function o(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,o):t.call(e,r,o)}:t}function a(t){return t?function(r,n){var i=n?t.call(e,r,n):t.call(e,r);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:t}function s(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}e.read="function"!=typeof e.read?e.read:function(t){function r(r,n,i,o,a,s){var c;if(s&&"function"==typeof s){var l=0;c=function(u,h,p){if(u&&"EAGAIN"===u.code&&l<10)return l++,t.call(e,r,n,i,o,a,c);s.apply(this,arguments)}}return t.call(e,r,n,i,o,a,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.read),e.readSync="function"!=typeof e.readSync?e.readSync:(c=e.readSync,function(t,r,n,i,o){for(var a=0;;)try{return c.call(e,t,r,n,i,o)}catch(e){if("EAGAIN"===e.code&&a<10){a++;continue}throw e}});var c};var kf=G.default.Stream,Cf=function(e){return{ReadStream:function t(r,n){if(!(this instanceof t))return new t(r,n);kf.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 o=Object.keys(n),a=0,s=o.length;a<s;a++){var c=o[a];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);kf.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),o=0,a=i.length;o<a;o++){var s=i[o];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 xf=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var t={__proto__:wf(e)};else t=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})),t},wf=Object.getPrototypeOf||function(e){return e.__proto__};var Of,Nf,Pf=Q.default,Rf=Sf,If=Cf,Lf=xf,Df=ie.default;function Mf(e,t){Object.defineProperty(e,Of,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(Of=Symbol.for("graceful-fs.queue"),Nf=Symbol.for("graceful-fs.previous")):(Of="___graceful-fs.queue",Nf="___graceful-fs.previous");var Ff=function(){};if(Df.debuglog?Ff=Df.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Ff=function(){var e=Df.format.apply(Df,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!Pf[Of]){var Hf=ue[Of]||[];Mf(Pf,Hf),Pf.close=function(e){function t(t,r){return e.call(Pf,t,(function(e){e||zf(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(t,Nf,{value:e}),t}(Pf.close),Pf.closeSync=function(e){function t(t){e.apply(Pf,arguments),zf()}return Object.defineProperty(t,Nf,{value:e}),t}(Pf.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){Ff(Pf[Of]),j.default.equal(Pf[Of].length,0)}))}ue[Of]||Mf(ue,Pf[Of]);var Bf,Uf=jf(Lf(Pf));function jf(e){Rf(e),e.gracefulify=jf,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,o){return t(r,n,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof i&&i.apply(this,arguments):qf([e,[r,n,i],t,o||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,o,a){return r(t,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof o&&o.apply(this,arguments):qf([e,[t,n,i,o],r,a||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,o,a){return n(t,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof o&&o.apply(this,arguments):qf([e,[t,r,i,o],n,a||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,o,a){return i(t,r,n,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof o&&o.apply(this,arguments):qf([e,[t,r,n,o],i,a||Date.now(),Date.now()])}))}(e,t,r,n)});var o=e.readdir;e.readdir=function(e,t,r){"function"==typeof t&&(r=t,t=null);var n=a.test(process.version)?function(e,t,r,n){return o(e,i(e,t,r,n))}:function(e,t,r,n){return o(e,t,i(e,t,r,n))};return n(e,t,r);function i(e,t,r,i){return function(o,a){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?(a&&a.sort&&a.sort(),"function"==typeof r&&r.call(this,o,a)):qf([n,[e,t,r],o,i||Date.now(),Date.now()])}}};var a=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var s=If(e);p=s.ReadStream,f=s.WriteStream}var c=e.ReadStream;c&&(p.prototype=Object.create(c.prototype),p.prototype.open=function(){var e=this;m(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 l=e.WriteStream;l&&(f.prototype=Object.create(l.prototype),f.prototype.open=function(){var e=this;m(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 p},set:function(e){p=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return f},set:function(e){f=e},enumerable:!0,configurable:!0});var u=p;Object.defineProperty(e,"FileReadStream",{get:function(){return u},set:function(e){u=e},enumerable:!0,configurable:!0});var h=f;function p(e,t){return this instanceof p?(c.apply(this,arguments),this):p.apply(Object.create(p.prototype),arguments)}function f(e,t){return this instanceof f?(l.apply(this,arguments),this):f.apply(Object.create(f.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0});var d=e.open;function m(e,t,r,n){return"function"==typeof r&&(n=r,r=null),function e(t,r,n,i,o){return d(t,r,n,(function(a,s){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof i&&i.apply(this,arguments):qf([e,[t,r,n,i],a,o||Date.now(),Date.now()])}))}(e,t,r,n)}return e.open=m,e}function qf(e){Ff("ENQUEUE",e[0].name,e[1]),Pf[Of].push(e),Gf()}function zf(){for(var e=Date.now(),t=0;t<Pf[Of].length;++t)Pf[Of][t].length>2&&(Pf[Of][t][3]=e,Pf[Of][t][4]=e);Gf()}function Gf(){if(clearTimeout(Bf),Bf=void 0,0!==Pf[Of].length){var e=Pf[Of].shift(),t=e[0],r=e[1],n=e[2],i=e[3],o=e[4];if(void 0===i)Ff("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Ff("TIMEOUT",t.name,r);var a=r.pop();"function"==typeof a&&a.call(null,n)}else{var s=Date.now()-o,c=Math.max(o-i,1);s>=Math.min(1.2*c,100)?(Ff("RETRY",t.name,r),t.apply(null,r.concat([i]))):Pf[Of].push(e)}void 0===Bf&&(Bf=setTimeout(Gf,0))}}process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Pf.__patched&&(Uf=jf(Pf),Pf.__patched=!0);var $f=Uf;const Kf=re.default.homedir(),{env:Vf}=process,Qf=Vf.XDG_DATA_HOME||(Kf?M.default.join(Kf,".local","share"):void 0),Wf=Vf.XDG_CONFIG_HOME||(Kf?M.default.join(Kf,".config"):void 0);Vf.XDG_STATE_HOME||Kf&&M.default.join(Kf,".local","state"),Vf.XDG_CACHE_HOME||Kf&&M.default.join(Kf,".cache"),Vf.XDG_RUNTIME_DIR;const Yf=(Vf.XDG_DATA_DIRS||"/usr/local/share/:/usr/share/").split(":");Qf&&Yf.unshift(Qf);const Xf=(Vf.XDG_CONFIG_DIRS||"/etc/xdg").split(":");Wf&&Xf.unshift(Wf);var Jf={exports:{}},Zf={exports:{}};
8
+ */var $n=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},Kn=Object.prototype.hasOwnProperty,Vn=Object.prototype.toString,Qn=Object.defineProperty,Wn=Object.getOwnPropertyDescriptor,Yn=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Vn.call(e)},Xn=function(e){if(!e||"[object Object]"!==Vn.call(e))return!1;var t,r=Kn.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&Kn.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||Kn.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},Zn=function(e,t){if("__proto__"===t){if(!Kn.call(e,t))return;if(Wn)return Wn(e,t).value}return e[t]},ei=function e(){var t,r,n,i,o,a,s=arguments[0],c=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},c=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});c<l;++c)if(null!=(t=arguments[c]))for(r in t)n=Zn(s,r),s!==(i=Zn(t,r))&&(u&&i&&(Xn(i)||(o=Yn(i)))?(o?(o=!1,a=n&&Yn(n)?n:[]):a=n&&Xn(n)?n:{},Jn(s,{name:r,newValue:e(u,a,i)})):void 0!==i&&Jn(s,{name:r,newValue:i}));return s};function ti(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function ri(){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(o,...a){const s=e[++r];let c=-1;if(o)n(o);else{for(;++c<t.length;)null!==a[c]&&void 0!==a[c]||(a[c]=t[c]);t=a,s?function(e,t){let r;return n;function n(...t){const n=e.length>t.length;let a;n&&t.push(i);try{a=e.apply(this,t)}catch(e){if(n&&r)throw e;return i(e)}n||(a instanceof Promise?a.then(o,i):a instanceof Error?i(a):o(a))}function i(e,...n){r||(r=!0,t(e,...n))}function o(e){i(null,e)}}(s,i)(...a):n(null,...a)}}(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}function ni(e){return e&&"object"==typeof e?"position"in e||"type"in e?oi(e.position):"start"in e||"end"in e?oi(e):"line"in e||"column"in e?ii(e):"":""}function ii(e){return ai(e&&e.line)+":"+ai(e&&e.column)}function oi(e){return ii(e&&e.start)+"-"+ii(e&&e.end)}function ai(e){return e&&"number"==typeof e?e:1}class si extends Error{constructor(e,t,r){const n=[null,null];let i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(r=t,t=void 0),"string"==typeof r){const e=r.indexOf(":");-1===e?n[1]=r:(n[0]=r.slice(0,e),n[1]=r.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(i=t.position):"start"in t||"end"in t?i=t:("line"in t||"column"in t)&&(i.start=t)),this.name=ni(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.position=i,this.source=n[0],this.ruleId=n[1],this.file,this.actual,this.expected,this.url,this.note}}function ci(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}si.prototype.file="",si.prototype.name="",si.prototype.reason="",si.prototype.message="",si.prototype.stack="",si.prototype.fatal=null,si.prototype.column=null,si.prototype.line=null,si.prototype.source=null,si.prototype.ruleId=null,si.prototype.position=null;const li=["history","path","basename","stem","extname","dirname"];class ui{constructor(e){let t;t=e?"string"==typeof e||function(e){return $n(e)}(e)?{value:e}:ci(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=B.default.cwd(),this.value,this.stored,this.result,this.map;let r,n=-1;for(;++n<li.length;){const e=li[n];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(r in t)li.includes(r)||(this[r]=t[r])}get path(){return this.history[this.history.length-1]}set path(e){ci(e)&&(e=a.fileURLToPath(e)),pi(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?M.default.dirname(this.path):void 0}set dirname(e){fi(this.basename,"dirname"),this.path=M.default.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?M.default.basename(this.path):void 0}set basename(e){pi(e,"basename"),hi(e,"basename"),this.path=M.default.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?M.default.extname(this.path):void 0}set extname(e){if(hi(e,"extname"),fi(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=M.default.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?M.default.basename(this.path,this.extname):void 0}set stem(e){pi(e,"stem"),hi(e,"stem"),this.path=M.default.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,t,r){const n=new si(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 hi(e,t){if(e&&e.includes(M.default.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+M.default.sep+"`")}function pi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function fi(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const di=function e(){const t=ri(),r=[];let n,i={},o=-1;return a.data=function(e,t){if("string"==typeof e)return 2===arguments.length?(Ti("data",n),i[e]=t,a):mi.call(i,e)&&i[e]||null;if(e)return Ti("data",n),i=e,a;return i},a.Parser=void 0,a.Compiler=void 0,a.freeze=function(){if(n)return a;for(;++o<r.length;){const[e,...n]=r[o];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const i=e.call(a,...n);"function"==typeof i&&t.use(i)}return n=!0,o=Number.POSITIVE_INFINITY,a},a.attachers=r,a.use=function(e,...t){let o;if(Ti("use",n),null==e);else if("function"==typeof e)u(e,...t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?l(e):c(e)}o&&(i.settings=Object.assign(i.settings||{},o));return a;function s(e){if("function"==typeof e)u(e);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...r]=e;u(t,...r)}else c(e)}}function c(e){l(e.plugins),e.settings&&(o=Object.assign(o||{},e.settings))}function l(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 u(e,t){let n,i=-1;for(;++i<r.length;)if(r[i][0]===e){n=r[i];break}n?(ti(n[1])&&ti(t)&&(t=ei(!0,n[1],t)),n[1]=t):r.push([...arguments])}},a.parse=function(e){a.freeze();const t=_i(e),r=a.Parser;if(Ei("parse",r),gi(r,"parse"))return new r(String(t),t).parse();return r(String(t),t)},a.stringify=function(e,t){a.freeze();const r=_i(t),n=a.Compiler;if(yi("stringify",n),vi(e),gi(n,"compile"))return new n(e,r).compile();return n(e,r)},a.run=function(e,r,n){vi(e),a.freeze(),n||"function"!=typeof r||(n=r,r=void 0);if(!n)return new Promise(i);function i(i,o){function a(t,r,a){r=r||e,t?o(t):i?i(r):n(null,r,a)}t.run(e,_i(r),a)}i(null,n)},a.runSync=function(e,t){let r,n;return a.run(e,t,i),bi("runSync","run",n),r;function i(e,t){Gn(e),r=t,n=!0}},a.process=function(e,t){if(a.freeze(),Ei("process",a.Parser),yi("process",a.Compiler),!t)return new Promise(r);function r(r,n){const i=_i(e);function o(e,i){e||!i?n(e):r?r(i):t(null,i)}a.run(a.parse(i),i,((e,t,r)=>{if(!e&&t&&r){const n=a.stringify(t,r);null==n||(!function(e){return"string"==typeof e||$n(e)}(n)?r.result=n:r.value=n),o(e,r)}else o(e)}))}r(null,t)},a.processSync=function(e){let t;a.freeze(),Ei("processSync",a.Parser),yi("processSync",a.Compiler);const r=_i(e);return a.process(r,n),bi("processSync","process",t),r;function n(e){t=!0,Gn(e)}},a;function a(){const t=e();let n=-1;for(;++n<r.length;)t.use(...r[n]);return t.data(ei(!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 Ei(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 Ti(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 vi(e){if(!ti(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function bi(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function _i(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new ui(e)}var Ai=he(Object.freeze({__proto__:null,unified:di}));function Si(e,t){const r=(t||{}).includeImageAlt;return ki(e,"boolean"!=typeof r||r)}function ki(e,t){return function(e){return Boolean(e&&"object"==typeof e)}(e)&&("value"in e&&e.value||t&&"alt"in e&&e.alt||"children"in e&&Ci(e.children,t))||Array.isArray(e)&&Ci(e,t)||""}function Ci(e,t){const r=[];let n=-1;for(;++n<e.length;)r[n]=ki(e[n],t);return r.join("")}function xi(e,t,r,n){const i=e.length;let o,a=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),[].splice.apply(e,o);else for(r&&[].splice.apply(e,[t,r]);a<n.length;)o=n.slice(a,a+1e4),o.unshift(t,0),[].splice.apply(e,o),a+=1e4,t+=1e4}function wi(e,t){return e.length>0?(xi(e,e.length,0,t),e):t}const Oi={}.hasOwnProperty;function Ni(e){const t={};let r=-1;for(;++r<e.length;)Pi(t,e[r]);return t}function Pi(e,t){let r;for(r in t){const n=(Oi.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let o;for(o in i){Oi.call(n,o)||(n[o]=[]);const e=i[o];Ri(n[o],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]);xi(e,0,0,n)}const Ii=$i(/[A-Za-z]/),Li=$i(/\d/),Di=$i(/[\dA-Fa-f]/),Mi=$i(/[\dA-Za-z]/),Fi=$i(/[!-/:-@[-`{-~]/),Hi=$i(/[#-'*+\--9=?A-Z^-~]/);function Bi(e){return null!==e&&(e<32||127===e)}function Ui(e){return null!==e&&(e<0||32===e)}function ji(e){return null!==e&&e<-2}function qi(e){return-2===e||-1===e||32===e}const zi=$i(/\s/),Gi=$i(/[!-/:-@[-`{-~\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 $i(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}var Ki=Object.freeze({__proto__:null,asciiAlpha:Ii,asciiDigit:Li,asciiHexDigit:Di,asciiAlphanumeric:Mi,asciiPunctuation:Fi,asciiAtext:Hi,asciiControl:Bi,markdownLineEndingOrSpace:Ui,markdownLineEnding:ji,markdownSpace:qi,unicodeWhitespace:zi,unicodePunctuation:Gi});function Vi(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let o=0;return function(n){if(qi(n))return e.enter(r),a(n);return t(n)};function a(n){return qi(n)&&o++<i?(e.consume(n),a):(e.exit(r),t(n))}}var Qi=Object.freeze({__proto__:null,factorySpace:Vi});const Wi={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"),Vi(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)):ji(t)?(e.consume(t),e.exit("chunkText"),n):(e.consume(t),i)}}};const Yi={tokenize:function(e){const t=this,r=[];let n,i,o,a=0;return s;function s(n){if(a<r.length){const i=r[a];return t.containerState=i[1],e.attempt(i[0].continuation,c,l)(n)}return l(n)}function c(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&y();const r=t.events.length;let i,o=r;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}E(a);let s=r;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},i),s++;return xi(t.events,o+1,0,t.events.slice(r)),t.events.length=s,l(e)}return s(e)}function l(i){if(a===r.length){if(!n)return p(i);if(n.currentConstruct&&n.currentConstruct.concrete)return d(i);t.interrupt=Boolean(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Xi,u,h)(i)}function u(e){return n&&y(),E(a),p(e)}function h(e){return t.parser.lazy[t.now().line]=a!==r.length,o=t.now().offset,d(e)}function p(r){return t.containerState={},e.attempt(Xi,f,d)(r)}function f(e){return a++,r.push([t.currentConstruct,t.containerState]),p(e)}function d(r){return null===r?(n&&y(),E(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),E(0),void e.consume(r)):ji(r)?(e.consume(r),g(e.exit("chunkFlow")),a=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<o&&(!n.events[e][1].end||n.events[e][1].end.offset>o))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(E(a),e=r;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;xi(t.events,c+1,0,t.events.slice(r)),t.events.length=e}}function E(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}}},Xi={tokenize:function(e,t,r){return Vi(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function Ji(e){return null===e||Ui(e)||zi(e)?1:Gi(e)?2:void 0}function Zi(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!n.includes(o)&&(t=o(t,r),n.push(o))}return t}const eo={name:"attention",tokenize:function(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Ji(n);let o;return function(t){return e.enter("attentionSequence"),o=t,a(t)};function a(s){if(s===o)return e.consume(s),a;const c=e.exit("attentionSequence"),l=Ji(s),u=!l||2===l&&i||r.includes(s),h=!i||2===i&&l||r.includes(n);return c._open=Boolean(42===o?u:u&&(i||!h)),c._close=Boolean(42===o?h:h&&(l||!u)),t(s)}},resolveAll:function(e,t){let r,n,i,o,a,s,c,l,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(r=u;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[u][1]).charCodeAt(0)){if((e[r][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const h=Object.assign({},e[r][1].end),p=Object.assign({},e[u][1].start);to(h,-s),to(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[r][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:p},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[u][1].start)},n={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},o.start),e[u][1].start=Object.assign({},a.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=wi(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=wi(c,[["enter",n,t],["enter",o,t],["exit",o,t],["enter",i,t]]),c=wi(c,Zi(t.parser.constructs.insideSpan.null,e.slice(r+1,u),t)),c=wi(c,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",n,t]]),e[u][1].end.offset-e[u][1].start.offset?(l=2,c=wi(c,[["enter",e[u][1],t],["exit",e[u][1],t]])):l=0,xi(e,r-1,u-r+3,c),u=r+c.length-l-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e}};function to(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ro={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 Ii(t)?(e.consume(t),o):Hi(t)?c(t):r(t)}function o(e){return 43===e||45===e||46===e||Mi(e)?a(e):c(e)}function a(t){return 58===t?(e.consume(t),s):(43===t||45===t||46===t||Mi(t))&&n++<32?(e.consume(t),a):c(t)}function s(t){return 62===t?(e.exit("autolinkProtocol"),p(t)):null===t||32===t||60===t||Bi(t)?r(t):(e.consume(t),s)}function c(t){return 64===t?(e.consume(t),n=0,l):Hi(t)?(e.consume(t),c):r(t)}function l(e){return Mi(e)?u(e):r(e)}function u(t){return 46===t?(e.consume(t),n=0,l):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",p(t)):h(t)}function h(t){return(45===t||Mi(t))&&n++<63?(e.consume(t),45===t?h:u):r(t)}function p(r){return e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t}}};const no={tokenize:function(e,t,r){return Vi(e,(function(e){return null===e||ji(e)?t(e):r(e)}),"linePrefix")},partial:!0};const io={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 qi(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 Vi(e,e.attempt(io,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},exit:function(e){e.exit("blockQuote")}};const oo={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 Fi(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}};const ao={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",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:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",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:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",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:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",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:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",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:"Ũ",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:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"⁡",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",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:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",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:"˘",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:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",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:"∐",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:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",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:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",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:"η",eth:"ð",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:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",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:"⪐",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:"‐",iacute:"í",ic:"⁣",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",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:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",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:"⪅",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:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",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:"ℕ",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:"𝕟",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:"≹",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:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",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:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",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:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",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:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",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:"▭",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:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",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:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",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:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",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:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",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:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},so={}.hasOwnProperty;function co(e){return!!so.call(ao,e)&&ao[e]}const lo={name:"characterReference",tokenize:function(e,t,r){const n=this;let i,o,a=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,o=Mi,l(t))}function c(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Di,l):(e.enter("characterReferenceValue"),i=7,o=Li,l(t))}function l(s){let c;return 59===s&&a?(c=e.exit("characterReferenceValue"),o!==Mi||co(n.sliceSerialize(c))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(s)):o(s)&&a++<i?(e.consume(s),l):r(s)}}};const uo={name:"codeFenced",tokenize:function(e,t,r){const n=this,i={tokenize:function(e,t,r){let n=0;return Vi(e,i,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function i(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),o(t)}function o(t){return t===c?(e.consume(t),n++,o):n<l?r(t):(e.exit("codeFencedFenceSequence"),Vi(e,a,"whitespace")(t))}function a(n){return null===n||ji(n)?(e.exit("codeFencedFence"),t(n)):r(n)}},partial:!0},o={tokenize:function(e,t,r){const n=this;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o}function o(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0},a=this.events[this.events.length-1],s=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0;let c,l=0;return function(t){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c=t,u(t)};function u(t){return t===c?(e.consume(t),l++,u):(e.exit("codeFencedFenceSequence"),l<3?r(t):Vi(e,h,"whitespace")(t))}function h(t){return null===t||ji(t)?m(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||Ui(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Vi(e,f,"whitespace")(t)):96===t&&t===c?r(t):(e.consume(t),p)}function f(t){return null===t||ji(t)?m(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||ji(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):ji(t)?e.attempt(o,e.attempt(i,y,s?Vi(e,g,"linePrefix",s+1):g),y)(t):(e.enter("codeFlowValue"),E(t))}function E(t){return null===t||ji(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),E)}function y(r){return e.exit("codeFenced"),t(r)}},concrete:!0};const ho={name:"codeIndented",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("codeIndented"),Vi(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?o(e):r(e)}function o(t){return null===t?s(t):ji(t)?e.attempt(po,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||ji(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(r){return e.exit("codeIndented"),t(r)}}},po={tokenize:function(e,t,r){const n=this;return i;function i(t){return n.parser.lazy[n.now().line]?r(t):ji(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):Vi(e,o,"linePrefix",5)(t)}function o(e){const o=n.events[n.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):ji(e)?i(e):r(e)}},partial:!0};const fo={name:"codeText",tokenize:function(e,t,r){let n,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),o++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?r(t):96===t?(i=e.enter("codeTextSequence"),n=0,l(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):ji(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||ji(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),c)}function l(r){return 96===r?(e.consume(r),n++,l):n===o?(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 mo(e){const t={};let r,n,i,o,a,s,c,l=-1;for(;++l<e.length;){for(;l in t;)l=t[l];if(r=e[l],l&&"chunkFlow"===r[1].type&&"listItemPrefix"===e[l-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,go(e,l)),l=t[l],c=!0);else if(r[1]._container){for(i=l,n=void 0;i--&&(o=e[i],"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(n&&(e[n][1].type="lineEndingBlank"),o[1].type="lineEnding",n=i);n&&(r[1].end=Object.assign({},e[n][1].start),a=e.slice(n,l),a.unshift(r),xi(e,n,l-n+1,a))}}return!c}function go(e,t){const r=e[t][1],n=e[t][2];let i=t-1;const o=[],a=r._tokenizer||n.parser[r.contentType](r.start),s=a.events,c=[],l={};let u,h,p=-1,f=r,d=0,m=0;const g=[m];for(;f;){for(;e[++i][1]!==f;);o.push(i),f._tokenizer||(u=n.sliceStream(f),f.next||u.push(null),h&&a.defineSkip(f.start),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),h=f,f=f.next}for(f=r;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(a.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),p=g.length;p--;){const t=s.slice(g[p],g[p+1]),r=o.pop();c.unshift([r,r+t.length-1]),xi(e,r,2,t)}for(p=-1;++p<c.length;)l[d+c[p][0]]=d+c[p][1],d+=c[p][1]-c[p][0]-1;return l}const Eo={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):ji(t)?e.check(yo,o,i)(t):(e.consume(t),n)}function i(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function o(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 mo(e),e}},yo={tokenize:function(e,t,r){const n=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Vi(e,i,"linePrefix")};function i(i){if(null===i||ji(i))return r(i);const o=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(n.parser.constructs.flow,r,t)(i)}},partial:!0};function To(e,t,r,n,i,o,a,s,c){const l=c||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(n),e.enter(i),e.enter(o),e.consume(t),e.exit(o),h;if(null===t||41===t||Bi(t))return r(t);return e.enter(n),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),d(t)};function h(r){return 62===r?(e.enter(o),e.consume(r),e.exit(o),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(r))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),h(t)):null===t||60===t||ji(t)?r(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function d(i){return 40===i?++u>l?r(i):(e.consume(i),d):41===i?u--?(e.consume(i),d):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(n),t(i)):null===i||Ui(i)?u?r(i):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(n),t(i)):Bi(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 vo=Object.freeze({__proto__:null,factoryDestination:To});function bo(e,t,r,n,i,o){const a=this;let s,c=0;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),e.enter(o),l};function l(h){return null===h||91===h||93===h&&!s||94===h&&!c&&"_hiddenFootnoteSupport"in a.parser.constructs||c>999?r(h):93===h?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):ji(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(t){return null===t||91===t||93===t||ji(t)||c++>999?(e.exit("chunkString"),l(t)):(e.consume(t),s=s||!qi(t),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),c++,u):u(t)}}var _o=Object.freeze({__proto__:null,factoryLabel:bo});function Ao(e,t,r,n,i,o){let a;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s};function s(r){return r===a?(e.enter(i),e.consume(r),e.exit(i),e.exit(n),t):(e.enter(o),c(r))}function c(t){return t===a?(e.exit(o),s(a)):null===t?r(t):ji(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Vi(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(t))}function l(t){return t===a||null===t||ji(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?u:l)}function u(t){return t===a||92===t?(e.consume(t),l):l(t)}}var So=Object.freeze({__proto__:null,factoryTitle:Ao});function ko(e,t){let r;return function n(i){if(ji(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n;if(qi(i))return Vi(e,n,r?"linePrefix":"lineSuffix")(i);return t(i)}}var Co=Object.freeze({__proto__:null,factoryWhitespace:ko});function xo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var wo=Object.freeze({__proto__:null,normalizeIdentifier:xo});const Oo={name:"definition",tokenize:function(e,t,r){const n=this;let i;return function(t){return e.enter("definition"),bo.call(n,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function o(t){return i=xo(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),ko(e,To(e,e.attempt(No,Vi(e,a,"whitespace"),Vi(e,a,"whitespace")),r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):r(t)}function a(o){return null===o||ji(o)?(e.exit("definition"),n.parser.defined.includes(i)||n.parser.defined.push(i),t(o)):r(o)}}},No={tokenize:function(e,t,r){return function(t){return Ui(t)?ko(e,n)(t):r(t)};function n(t){return 34===t||39===t||40===t?Ao(e,Vi(e,i,"whitespace"),r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):r(t)}function i(e){return null===e||ji(e)?t(e):r(e)}},partial:!0};const Po={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 ji(n)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(n)):r(n)}}};const Ro={name:"headingAtx",tokenize:function(e,t,r){const n=this;let i=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),o(t)};function o(s){return 35===s&&i++<6?(e.consume(s),o):null===s||Ui(s)?(e.exit("atxHeadingSequence"),n.interrupt?t(s):a(s)):r(s)}function a(r){return 35===r?(e.enter("atxHeadingSequence"),s(r)):null===r||ji(r)?(e.exit("atxHeading"),t(r)):qi(r)?Vi(e,a,"whitespace")(r):(e.enter("atxHeadingText"),c(r))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),a(t))}function c(t){return null===t||35===t||Ui(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),c)}},resolve:function(e,t){let r,n,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(r={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},n={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},xi(e,o,i-o+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]]));return e}};const Io=["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","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Lo=["pre","script","style","textarea"],Do={name:"htmlFlow",tokenize:function(e,t,r){const n=this;let i,o,a,s,c;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),l};function l(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),f):63===s?(e.consume(s),i=3,n.interrupt?t:L):Ii(s)?(e.consume(s),a=String.fromCharCode(s),o=!0,d):r(s)}function u(o){return 45===o?(e.consume(o),i=2,h):91===o?(e.consume(o),i=5,a="CDATA[",s=0,p):Ii(o)?(e.consume(o),i=4,n.interrupt?t:L):r(o)}function h(i){return 45===i?(e.consume(i),n.interrupt?t:L):r(i)}function p(i){return i===a.charCodeAt(s++)?(e.consume(i),s===a.length?n.interrupt?t:C:p):r(i)}function f(t){return Ii(t)?(e.consume(t),a=String.fromCharCode(t),d):r(t)}function d(s){return null===s||47===s||62===s||Ui(s)?47!==s&&o&&Lo.includes(a.toLowerCase())?(i=1,n.interrupt?t(s):C(s)):Io.includes(a.toLowerCase())?(i=6,47===s?(e.consume(s),m):n.interrupt?t(s):C(s)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(s):o?E(s):g(s)):45===s||Mi(s)?(e.consume(s),a+=String.fromCharCode(s),d):r(s)}function m(i){return 62===i?(e.consume(i),n.interrupt?t:C):r(i)}function g(t){return qi(t)?(e.consume(t),g):S(t)}function E(t){return 47===t?(e.consume(t),S):58===t||95===t||Ii(t)?(e.consume(t),y):qi(t)?(e.consume(t),E):S(t)}function y(t){return 45===t||46===t||58===t||95===t||Mi(t)?(e.consume(t),y):T(t)}function T(t){return 61===t?(e.consume(t),v):qi(t)?(e.consume(t),T):E(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),c=t,b):qi(t)?(e.consume(t),v):(c=null,_(t))}function b(t){return null===t||ji(t)?r(t):t===c?(e.consume(t),A):(e.consume(t),b)}function _(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||Ui(t)?T(t):(e.consume(t),_)}function A(e){return 47===e||62===e||qi(e)?E(e):r(e)}function S(t){return 62===t?(e.consume(t),k):r(t)}function k(t){return qi(t)?(e.consume(t),k):null===t||ji(t)?C(t):r(t)}function C(t){return 45===t&&2===i?(e.consume(t),N):60===t&&1===i?(e.consume(t),P):62===t&&4===i?(e.consume(t),D):63===t&&3===i?(e.consume(t),L):93===t&&5===i?(e.consume(t),I):!ji(t)||6!==i&&7!==i?null===t||ji(t)?x(t):(e.consume(t),C):e.check(Mo,D,x)(t)}function x(t){return e.exit("htmlFlowData"),w(t)}function w(t){return null===t?M(t):ji(t)?e.attempt({tokenize:O,partial:!0},w,M)(t):(e.enter("htmlFlowData"),C(t))}function O(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 N(t){return 45===t?(e.consume(t),L):C(t)}function P(t){return 47===t?(e.consume(t),a="",R):C(t)}function R(t){return 62===t&&Lo.includes(a.toLowerCase())?(e.consume(t),D):Ii(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),R):C(t)}function I(t){return 93===t?(e.consume(t),L):C(t)}function L(t){return 62===t?(e.consume(t),D):45===t&&2===i?(e.consume(t),L):C(t)}function D(t){return null===t||ji(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),D)}function M(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},Mo={tokenize:function(e,t,r){return function(n){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),e.attempt(no,t,r)}},partial:!0};const Fo={name:"htmlText",tokenize:function(e,t,r){const n=this;let i,o,a,s;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),c};function c(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),_):63===t?(e.consume(t),v):Ii(t)?(e.consume(t),k):r(t)}function l(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),o="CDATA[",a=0,m):Ii(t)?(e.consume(t),T):r(t)}function u(t){return 45===t?(e.consume(t),h):r(t)}function h(t){return null===t||62===t?r(t):45===t?(e.consume(t),p):f(t)}function p(e){return null===e||62===e?r(e):f(e)}function f(t){return null===t?r(t):45===t?(e.consume(t),d):ji(t)?(s=f,I(t)):(e.consume(t),f)}function d(t){return 45===t?(e.consume(t),D):f(t)}function m(t){return t===o.charCodeAt(a++)?(e.consume(t),a===o.length?g:m):r(t)}function g(t){return null===t?r(t):93===t?(e.consume(t),E):ji(t)?(s=g,I(t)):(e.consume(t),g)}function E(t){return 93===t?(e.consume(t),y):g(t)}function y(t){return 62===t?D(t):93===t?(e.consume(t),y):g(t)}function T(t){return null===t||62===t?D(t):ji(t)?(s=T,I(t)):(e.consume(t),T)}function v(t){return null===t?r(t):63===t?(e.consume(t),b):ji(t)?(s=v,I(t)):(e.consume(t),v)}function b(e){return 62===e?D(e):v(e)}function _(t){return Ii(t)?(e.consume(t),A):r(t)}function A(t){return 45===t||Mi(t)?(e.consume(t),A):S(t)}function S(t){return ji(t)?(s=S,I(t)):qi(t)?(e.consume(t),S):D(t)}function k(t){return 45===t||Mi(t)?(e.consume(t),k):47===t||62===t||Ui(t)?C(t):r(t)}function C(t){return 47===t?(e.consume(t),D):58===t||95===t||Ii(t)?(e.consume(t),x):ji(t)?(s=C,I(t)):qi(t)?(e.consume(t),C):D(t)}function x(t){return 45===t||46===t||58===t||95===t||Mi(t)?(e.consume(t),x):w(t)}function w(t){return 61===t?(e.consume(t),O):ji(t)?(s=w,I(t)):qi(t)?(e.consume(t),w):C(t)}function O(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),i=t,N):ji(t)?(s=O,I(t)):qi(t)?(e.consume(t),O):(e.consume(t),i=void 0,R)}function N(t){return t===i?(e.consume(t),P):null===t?r(t):ji(t)?(s=N,I(t)):(e.consume(t),N)}function P(e){return 62===e||47===e||Ui(e)?C(e):r(e)}function R(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):62===t||Ui(t)?C(t):(e.consume(t),R)}function I(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Vi(e,L,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function L(t){return e.enter("htmlTextData"),s(t)}function D(n){return 62===n?(e.consume(n),e.exit("htmlTextData"),e.exit("htmlText"),t):r(n)}}};const Ho={name:"labelEnd",tokenize:function(e,t,r){const n=this;let i,o,a=n.events.length;for(;a--;)if(("labelImage"===n.events[a][1].type||"labelLink"===n.events[a][1].type)&&!n.events[a][1]._balanced){i=n.events[a][1];break}return function(t){if(!i)return r(t);return i._inactive?c(t):(o=n.parser.defined.includes(xo(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(Bo,t,o?t:c)(r):91===r?e.attempt(Uo,t,o?e.attempt(jo,t,c):c)(r):o?t(r):c(r)}function c(e){return i._balanced=!0,r(e)}},resolveTo:function(e,t){let r,n,i,o,a=e.length,s=0;for(;a--;)if(r=e[a][1],n){if("link"===r.type||"labelLink"===r.type&&r._inactive)break;"enter"===e[a][0]&&"labelLink"===r.type&&(r._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===r.type||"labelLink"===r.type)&&!r._balanced&&(n=a,"labelLink"!==r.type)){s=2;break}}else"labelEnd"===r.type&&(i=a);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)},l={type:"label",start:Object.assign({},e[n][1].start),end:Object.assign({},e[i][1].end)},u={type:"labelText",start:Object.assign({},e[n+s+2][1].end),end:Object.assign({},e[i-2][1].start)};return o=[["enter",c,t],["enter",l,t]],o=wi(o,e.slice(n+1,n+s+3)),o=wi(o,[["enter",u,t]]),o=wi(o,Zi(t.parser.constructs.insideSpan.null,e.slice(n+s+4,i-3),t)),o=wi(o,[["exit",u,t],e[i-2],e[i-1],["exit",l,t]]),o=wi(o,e.slice(i+1)),o=wi(o,[["exit",c,t]]),xi(e,n,e.length,o),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}},Bo={tokenize:function(e,t,r){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),ko(e,n)};function n(t){return 41===t?a(t):To(e,i,r,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return Ui(t)?ko(e,o)(t):a(t)}function o(t){return 34===t||39===t||40===t?Ao(e,ko(e,a),r,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):a(t)}function a(n){return 41===n?(e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),e.exit("resource"),t):r(n)}}},Uo={tokenize:function(e,t,r){const n=this;return function(t){return bo.call(n,e,i,r,"reference","referenceMarker","referenceString")(t)};function i(e){return n.parser.defined.includes(xo(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}}},jo={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 qo={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"),o):r(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}},resolveAll:Ho.resolveAll};const zo={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:Ho.resolveAll};const Go={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Vi(e,t,"linePrefix")}}};const $o={name:"thematicBreak",tokenize:function(e,t,r){let n,i=0;return function(t){return e.enter("thematicBreak"),n=t,o(t)};function o(s){return s===n?(e.enter("thematicBreakSequence"),a(s)):qi(s)?Vi(e,o,"whitespace")(s):i<3||null!==s&&!ji(s)?r(s):(e.exit("thematicBreak"),t(s))}function a(t){return t===n?(e.consume(t),i++,a):(e.exit("thematicBreakSequence"),o(t))}}};const Ko={name:"list",tokenize:function(e,t,r){const n=this,i=n.events[n.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=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:Li(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($o,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 Li(t)&&++a<10?(e.consume(t),s):(!n.interrupt||a<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(no,n.interrupt?r:l,e.attempt(Vo,h,u))}function l(e){return n.containerState.initialBlankLine=!0,o++,h(e)}function u(t){return qi(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),h):r(t)}function h(r){return n.containerState.size=o+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(no,i,o);function i(r){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Vi(e,t,"listItemIndent",n.containerState.size+1)(r)}function o(r){return n.containerState.furtherBlankLines||!qi(r)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,a(r)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Qo,t,a)(r))}function a(i){return n.containerState._closeFlow=!0,n.interrupt=void 0,Vi(e,e.attempt(Ko,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},Vo={tokenize:function(e,t,r){const n=this;return Vi(e,(function(e){const i=n.events[n.events.length-1];return!qi(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):r(e)}),"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Qo={tokenize:function(e,t,r){const n=this;return Vi(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 Wo={name:"setextUnderline",tokenize:function(e,t,r){const n=this;let i,o,a=n.events.length;for(;a--;)if("lineEnding"!==n.events[a][1].type&&"linePrefix"!==n.events[a][1].type&&"content"!==n.events[a][1].type){o="paragraph"===n.events[a][1].type;break}return function(t){if(!n.parser.lazy[n.now().line]&&(n.interrupt||o))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"),Vi(e,c,"lineSuffix")(t))}function c(n){return null===n||ji(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}},resolveTo:function(e,t){let r,n,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){r=o;break}"paragraph"===e[o][1].type&&(n=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const a={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",a,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=a;return e.push(["exit",a,t]),e}};var Yo=Object.freeze({__proto__:null,attention:eo,autolink:ro,blankLine:no,blockQuote:io,characterEscape:oo,characterReference:lo,codeFenced:uo,codeIndented:ho,codeText:fo,content:Eo,definition:Oo,hardBreakEscape:Po,headingAtx:Ro,htmlFlow:Do,htmlText:Fo,labelEnd:Ho,labelStartImage:qo,labelStartLink:zo,lineEnding:Go,list:Ko,setextUnderline:Wo,thematicBreak:$o});const Xo={tokenize:function(e){const t=this,r=e.attempt(no,(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,Vi(e,e.attempt(this.parser.constructs.flow,n,e.attempt(Eo,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 Jo={resolveAll:ra()},Zo=ta("string"),ea=ta("text");function ta(e){return{tokenize:function(t){const r=this,n=this.parser.constructs[e],i=t.attempt(n,o,a);return o;function o(e){return c(e)?i(e):a(e)}function a(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:ra("text"===e?na:void 0)}}function ra(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 na(e,t){let r=0;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 o,a=i.length,s=-1,c=0;for(;a--;){const e=i[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)c++,s--;if(s)break;s=-1}else if(-2===e)o=!0,c++;else if(-1!==e){a++;break}}if(c){const i={type:r===e.length||o||c<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-c,offset:n.end.offset-c,_index:n.start._index+a,_bufferIndex:a?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 ia(e,t,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let a=[],s=[];const c={consume:function(e){ji(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===a[n._index].length&&(n._bufferIndex=-1,n._index++));l.previous=e},enter:function(e,t){const r=t||{};return r.type=e,r.start=p(),l.events.push(["enter",r,l]),s.push(r),r},exit:function(e){const t=s.pop();return t.end=p(),l.events.push(["exit",t,l]),t},attempt:g((function(e,t){E(e,t.from)})),check:g(m),interrupt:g(m,{interrupt:!0})},l={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:function(e,t){return function(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const o=e[r];let a;if("string"==typeof o)a=o;else switch(o){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&i)continue;a=" ";break;default:a=String.fromCharCode(o)}i=-2===o,n.push(a)}return n.join("")}(h(e),t)},now:p,defineSkip:function(e){i[e.line]=e.column,y()},write:function(e){if(a=wi(a,e),f(),null!==a[a.length-1])return[];return E(t,0),l.events=Zi(o,l.events,l),l.events}};let u=t.tokenize.call(l,c);return t.resolveAll&&o.push(t),l;function h(e){return function(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;r===i?a=[e[r].slice(n,o)]:(a=e.slice(r,i),n>-1&&(a[0]=a[0].slice(n)),o>0&&a.push(e[i].slice(0,o)));return a}(a,e)}function p(){return Object.assign({},n)}function f(){let e;for(;n._index<a.length;){const t=a[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){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(r,i,o){let a,u,h,f;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 a=e,u=0,0===e.length?o:m(e[u])}function m(e){return function(r){f=function(){const e=p(),t=l.previous,r=l.currentConstruct,i=l.events.length,o=Array.from(s);return{restore:a,from:i};function a(){n=e,l.previous=t,l.currentConstruct=r,l.events.length=i,s=o,y()}}(),h=e,e.partial||(l.currentConstruct=e);if(e.name&&l.parser.constructs.disable.null.includes(e.name))return E();return e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,g,E)(r)}}function g(t){return e(h,f),i}function E(e){return f.restore(),++u<a.length?m(a[u]):o}}}function E(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&xi(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function y(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}const oa={42:Ko,43:Ko,45:Ko,48:Ko,49:Ko,50:Ko,51:Ko,52:Ko,53:Ko,54:Ko,55:Ko,56:Ko,57:Ko,62:io},aa={91:Oo},sa={[-2]:ho,[-1]:ho,32:ho},ca={35:Ro,42:$o,45:[Wo,$o],60:Do,61:Wo,95:$o,96:uo,126:uo},la={38:lo,92:oo},ua={[-5]:Go,[-4]:Go,[-3]:Go,33:qo,38:lo,42:eo,60:[ro,Fo],91:zo,92:[Po,oo],93:Ho,95:eo,96:fo},ha={null:[eo,Jo]};var pa=Object.freeze({__proto__:null,document:oa,contentInitial:aa,flowInitial:sa,flow:ca,string:la,text:ua,insideSpan:ha,attentionMarkers:{null:[42,95]},disable:{null:[]}});const fa=/[\0\t\n\r]/g;function da(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 ma=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ga(e){return e.replace(ma,Ea)}function Ea(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return da(r.slice(t?2:1),t?16:10)}return co(r)||e}const ya={}.hasOwnProperty,Ta=function(e,t,r){return"string"!=typeof t&&(r=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(re),autolinkProtocol:x,autolinkEmail:x,atxHeading:s(J),blockQuote:s(V),characterEscape:x,characterReference:x,codeFenced:s(Q),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Q,c),codeText:s(W,c),codeTextData:x,data:x,codeFlowValue:x,definition:s(Y),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(X),hardBreakEscape:s(Z),hardBreakTrailing:s(Z),htmlFlow:s(ee,c),htmlFlowData:x,htmlText:s(ee,c),htmlTextData:x,image:s(te),label:c,link:s(re),listItem:s(ie),listItemValue:d,listOrdered:s(ne,f),listUnordered:s(ne),paragraph:s(oe),reference:j,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(J),strong:s(ae),thematicBreak:s(ce)},exit:{atxHeading:u(),atxHeadingSequence:A,autolink:u(),autolinkEmail:K,autolinkProtocol:$,blockQuote:u(),characterEscapeValue:w,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:G,codeFenced:u(y),codeFencedFence:E,codeFencedFenceInfo:m,codeFencedFenceMeta:g,codeFlowValue:w,codeIndented:u(T),codeText:u(I),codeTextData:w,data:w,definition:u(),definitionDestinationString:_,definitionLabelString:v,definitionTitleString:b,emphasis:u(),hardBreakEscape:u(N),hardBreakTrailing:u(N),htmlFlow:u(P),htmlFlowData:w,htmlText:u(R),htmlTextData:w,image:u(D),label:F,labelText:M,lineEnding:O,link:u(L),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:q,resourceDestinationString:H,resourceTitleString:B,resource:U,setextHeading:u(C),setextHeadingLineSequence:k,setextHeadingText:S,strong:u(),thematicBreak:u()}};ba(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(e){let r={type:"root",children:[]};const n={stack:[r],tokenStack:[],config:t,enter:l,exit:h,buffer:c,resume:p,setData:o,getData:a},s=[];let u=-1;for(;++u<e.length;)if("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)if("enter"===e[u][0])s.push(u);else{u=i(e,s.pop(),u)}for(u=-1;++u<e.length;){const r=t[e[u][0]];ya.call(r,e[u][1].type)&&r[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},n),e[u][1])}if(n.tokenStack.length>0){const e=n.tokenStack[n.tokenStack.length-1];(e[1]||Aa).call(n,void 0,e[0])}for(r.position={start:va(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:va(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r}function i(e,t,r){let n,i,o,a,s=t-1,c=-1,l=!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--,a=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!n||a||c||o||(o=s),a=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(a=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 a=s;for(i=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",l=!0),t[1].type="lineEnding",i=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<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++,o=void 0,a=!0)}}return e[t][1]._spread=l,r}function o(e,t){r[e]=t}function a(e){return r[e]}function s(e,t){return r;function r(r){l.call(this,e(r),r),t&&t.call(this,r)}}function c(){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:va(t.start)},e}function u(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+"` ("+ni({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]||Aa).call(this,e,n[0])}return r.position.end=va(e.end),r}function p(){return Si(this.stack.pop())}function f(){o("expectingFirstListItemValue",!0)}function d(e){if(a("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),o("expectingFirstListItemValue")}}function m(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function g(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function E(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function T(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=xo(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function _(){const e=this.resume();this.stack[this.stack.length-1].url=e}function A(e){const t=this.stack[this.stack.length-1];if(!t.depth){const r=this.sliceSerialize(e).length;t.depth=r}}function S(){o("setextHeadingSlurpLineEnding",!0)}function k(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function C(){o("setextHeadingSlurpLineEnding")}function x(e){const t=this.stack[this.stack.length-1];let r=t.children[t.children.length-1];r&&"text"===r.type||(r=se(),r.position={start:va(e.start)},t.children.push(r)),this.stack.push(r)}function w(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=va(e.end)}function O(e){const r=this.stack[this.stack.length-1];if(a("atHardBreak")){return r.children[r.children.length-1].position.end=va(e.end),void o("atHardBreak")}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(r.type)&&(x.call(this,e),w.call(this,e))}function N(){o("atHardBreak",!0)}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){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 L(){const e=this.stack[this.stack.length-1];if(a("inReference")){const t=a("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;o("referenceType")}function D(){const e=this.stack[this.stack.length-1];if(a("inReference")){const t=a("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;o("referenceType")}function M(e){const t=this.sliceSerialize(e),r=this.stack[this.stack.length-2];r.label=ga(t),r.identifier=xo(t).toLowerCase()}function F(){const e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];if(o("inReference",!0),"link"===r.type){const t=e.children;r.children=t}else r.alt=t}function H(){const e=this.resume();this.stack[this.stack.length-1].url=e}function B(){const e=this.resume();this.stack[this.stack.length-1].title=e}function U(){o("inReference")}function j(){o("referenceType","collapsed")}function q(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=xo(this.sliceSerialize(e)).toLowerCase(),o("referenceType","full")}function z(e){o("characterReferenceType",e.type)}function G(e){const t=this.sliceSerialize(e),r=a("characterReferenceType");let n;if(r)n=da(t,"characterReferenceMarkerNumeric"===r?10:16),o("characterReferenceType");else{n=co(t)}const i=this.stack.pop();i.value+=n,i.position.end=va(e.end)}function $(e){w.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function K(e){w.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function V(){return{type:"blockquote",children:[]}}function Q(){return{type:"code",lang:null,meta:null,value:""}}function W(){return{type:"inlineCode",value:""}}function Y(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function J(){return{type:"heading",depth:void 0,children:[]}}function Z(){return{type:"break"}}function ee(){return{type:"html",value:""}}function te(){return{type:"image",title:null,url:"",alt:null}}function re(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function ie(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ae(){return{type:"strong",children:[]}}function se(){return{type:"text",value:""}}function ce(){return{type:"thematicBreak"}}}(r)(function(e){for(;!mo(e););return e}(function(e={}){const t={defined:[],lazy:{},constructs:Ni([pa].concat(e.extensions||[])),content:r(Wi),document:r(Yi),flow:r(Xo),string:r(Zo),text:r(ea)};return t;function r(e){return function(r){return ia(t,e,r)}}}(r).document().write(function(){let e,t=1,r="",n=!0;return function(i,o,a){const s=[];let c,l,u,h,p;for(i=r+i.toString(o),u=0,r="",n&&(65279===i.charCodeAt(0)&&u++,n=void 0);u<i.length;){if(fa.lastIndex=u,c=fa.exec(i),h=c&&void 0!==c.index?c.index:i.length,p=i.charCodeAt(h),!c){r=i.slice(u);break}if(10===p&&u===h&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<h&&(s.push(i.slice(u,h)),t+=h-u),p){case 0:s.push(65533),t++;break;case 9:for(l=4*Math.ceil(t/4),s.push(-2);t++<l;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=h+1}return a&&(e&&s.push(-5),r&&s.push(r),s.push(null)),s}}()(e,t,!0))))};function va(e){return{line:e.line,column:e.column,offset:e.offset}}function ba(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?ba(e,n):_a(e,n)}}function _a(e,t){let r;for(r in t)if(ya.call(t,r))if("canContainEols"===r){const n=t[r];n&&e[r].push(...n)}else if("transforms"===r){const n=t[r];n&&e[r].push(...n)}else if("enter"===r||"exit"===r){const n=t[r];n&&Object.assign(e[r],n)}}function Aa(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ni({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ni({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ni({start:t.start,end:t.end})+") is still open")}var Sa=he(Object.freeze({__proto__:null,default:function(e){Object.assign(this,{Parser:t=>{const r=this.data("settings");return Ta(t,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}}));const ka={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),o):r(t)}function o(t){return 46===t?(e.consume(t),a):r(t)}function a(e){return null===e||ji(e)?r(e):t(e)}},partial:!0},Ca={tokenize:function(e,t,r){let n,i;return o;function o(t){return 38===t?e.check(Oa,s,a)(t):46===t||95===t?e.check(wa,s,a)(t):null===t||Bi(t)||zi(t)||45!==t&&Gi(t)?s(t):(e.consume(t),o)}function a(t){return 46===t?(i=n,n=void 0,e.consume(t),o):(95===t&&(n=!0),e.consume(t),o)}function s(e){return i||n?r(e):t(e)}},partial:!0},xa={tokenize:function(e,t){let r=0;return n;function n(a){return 38===a?e.check(Oa,t,i)(a):(40===a&&r++,41===a?e.check(wa,o,i)(a):Fa(a)?t(a):Ma(a)?e.check(wa,t,i)(a):(e.consume(a),n))}function i(t){return e.consume(t),n}function o(e){return r--,r<0?t(e):i(e)}},partial:!0},wa={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(i){return Ma(i)?(e.consume(i),n):Fa(i)?t(i):r(i)}},partial:!0},Oa={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(t){return Ii(t)?(e.consume(t),n):59===t?(e.consume(t),i):r(t)}function i(e){return Fa(e)?t(e):r(e)}},partial:!0},Na={tokenize:function(e,t,r){const n=this;return function(t){if(87!==t&&119!==t||!Ba(n.previous)||qa(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ka,e.attempt(Ca,e.attempt(xa,i),r),r)(t)};function i(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}},previous:Ba},Pa={tokenize:function(e,t,r){const n=this;return function(t){if(72!==t&&104!==t||!Ua(n.previous)||qa(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),o):r(t)}function o(t){return 84===t||116===t?(e.consume(t),a):r(t)}function a(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),l):r(t)}function l(t){return 47===t?(e.consume(t),u):r(t)}function u(t){return 47===t?(e.consume(t),h):r(t)}function h(t){return null===t||Bi(t)||zi(t)||Gi(t)?r(t):e.attempt(Ca,e.attempt(xa,p),r)(t)}function p(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}},previous:Ua},Ra={tokenize:function(e,t,r){const n=this;let i,o;return function(t){if(!Ha(t)||!ja(n.previous)||qa(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return Ha(t)?(e.consume(t),a):64===t?(e.consume(t),s):r(t)}function s(t){return 46===t?e.check(wa,h,c)(t):45===t||95===t?e.check(wa,r,l)(t):Mi(t)?(!o&&Li(t)&&(o=!0),e.consume(t),s):h(t)}function c(t){return e.consume(t),i=!0,o=void 0,s}function l(t){return e.consume(t),u}function u(t){return 46===t?e.check(wa,r,c)(t):s(t)}function h(n){return i&&!o?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(n)):r(n)}},previous:ja},Ia={},La={text:Ia};let Da=48;for(;Da<123;)Ia[Da]=Ra,Da++,58===Da?Da=65:91===Da&&(Da=97);function Ma(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 Fa(e){return null===e||60===e||Ui(e)}function Ha(e){return 43===e||45===e||46===e||95===e||Mi(e)}function Ba(e){return null===e||40===e||42===e||95===e||126===e||Ui(e)}function Ua(e){return null===e||!Ii(e)}function ja(e){return 47!==e&&Ua(e)}function qa(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}Ia[43]=Ra,Ia[45]=Ra,Ia[46]=Ra,Ia[95]=Ra,Ia[72]=[Ra,Pa],Ia[104]=[Ra,Pa],Ia[87]=[Ra,Na],Ia[119]=[Ra,Na];const za={tokenize:function(e,t,r){const n=this;return Vi(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 Ga(e,t,r){const n=this;let i=n.events.length;const o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a;for(;i--;){const e=n.events[i][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!a||!a._balanced)return r(i);const s=xo(n.sliceSerialize({start:a.end,end:n.now()}));if(94!==s.charCodeAt(0)||!o.includes(s.slice(1)))return r(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function $a(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 o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...s),e}function Ka(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o,a=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 u;return null===s||91===s||a++>999?r(s):93===s?o?(e.exit("chunkString"),u=e.exit("gfmFootnoteCallString"),i.includes(xo(n.sliceSerialize(u)))?function(r){return e.enter("gfmFootnoteCallLabelMarker"),e.consume(r),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t}(s):r(s)):r(s):(e.consume(s),Ui(s)||(o=!0),92===s?l:c)}function l(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}}function Va(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o,a,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"),l):r(t)}function l(t){let i;return null===t||91===t||s>999?r(t):93===t?a?(i=e.exit("gfmFootnoteDefinitionLabelString"),o=xo(n.sliceSerialize(i)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p):r(t):ji(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s++,l):(e.enter("chunkString").contentType="string",u(t))}function u(t){return null===t||ji(t)||91===t||93===t||s>999?(e.exit("chunkString"),l(t)):(Ui(t)||(a=!0),s++,e.consume(t),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}function p(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),Vi(e,f,"gfmFootnoteDefinitionWhitespace")):r(t)}function f(e){return i.includes(o)||i.push(o),t(e)}}function Qa(e,t,r){return e.check(no,t,e.attempt(za,t,r))}function Wa(e){e.exit("gfmFootnoteDefinition")}function Ya(e={}){let t=e.singleTilde;const r={tokenize:function(e,r,n){const i=this.previous,o=this.events;let a=0;return function(t){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return n(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(o){const c=Ji(i);if(126===o)return a>1?n(o):(e.consume(o),a++,s);if(a<2&&!t)return n(o);const l=e.exit("strikethroughSequenceTemporary"),u=Ji(o);return l._open=!u||2===u&&Boolean(c),l._close=!c||2===c&&Boolean(u),r(o)}},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)},o={type:"strikethroughText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},a=[["enter",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["enter",o,t]];xi(a,a.length,0,Zi(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),xi(a,a.length,0,[["exit",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",i,t]]),xi(e,n-1,r-n+3,a),r=n+a.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 Xa={flow:{null:{tokenize:function(e,t,r){const n=this,i=[];let o,a,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"),h(t)};function c(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,l}function l(t){return null===t||ji(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:w,partial:!0},(function(t){return n.interrupt=i,e.enter("tableDelimiterRow"),f(t)}),(function(e){return n.interrupt=i,r(e)}))(t)}(t):qi(t)?(e.enter("whitespace"),e.consume(t),u):(o&&(o=void 0,s++),124===t?c(t):(e.enter("temporaryTableCellContent"),h(t)))}function u(t){return qi(t)?(e.consume(t),u):(e.exit("whitespace"),l(t))}function h(t){return null===t||124===t||Ui(t)?(e.exit("temporaryTableCellContent"),l(t)):(e.consume(t),92===t?p:h)}function p(t){return 92===t||124===t?(e.consume(t),h):h(t)}function f(t){return null===t||ji(t)?y(t):qi(t)?(e.enter("whitespace"),e.consume(t),d):45===t?(e.enter("tableDelimiterFiller"),e.consume(t),a=!0,i.push("none"),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"),f):r(t)}function d(t){return qi(t)?(e.consume(t),d):(e.exit("whitespace"),f(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",E):f(t))}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),e.consume(t),a=!0,m):r(t)}function E(t){return null===t||ji(t)?y(t):qi(t)?(e.enter("whitespace"),e.consume(t),d):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):r(t)}function y(t){return e.exit("tableDelimiterRow"),a&&s===i.length?null===t?T(t):e.check(Ja,T,e.attempt({tokenize:w,partial:!0},Vi(e,v,"linePrefix",4),T))(t):r(t)}function T(r){return e.exit("table"),t(r)}function v(t){return e.enter("tableBody"),b(t)}function b(t){return e.enter("tableRow"),124===t?_(t):(e.enter("temporaryTableCellContent"),k(t))}function _(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),A}function A(t){return null===t||ji(t)?function(t){if(e.exit("tableRow"),null===t)return x(t);return e.check(Ja,x,e.attempt({tokenize:w,partial:!0},Vi(e,b,"linePrefix",4),x))(t)}(t):qi(t)?(e.enter("whitespace"),e.consume(t),S):124===t?_(t):(e.enter("temporaryTableCellContent"),k(t))}function S(t){return qi(t)?(e.consume(t),S):(e.exit("whitespace"),A(t))}function k(t){return null===t||124===t||Ui(t)?(e.exit("temporaryTableCellContent"),A(t)):(e.consume(t),92===t?C:k)}function C(t){return 92===t||124===t?(e.consume(t),k):k(t)}function x(t){return e.exit("tableBody"),T(t)}function w(e,t,r){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Vi(e,i,"linePrefix")};function i(i){if(n.parser.lazy[n.now().line]||null===i||ji(i))return r(i);const o=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[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,o,a,s,c,l=-1;for(;++l<e.length;){const u=e[l][1];if(i&&("temporaryTableCellContent"===u.type&&(o=o||l,a=l),("tableCellDivider"===u.type||"tableRow"===u.type)&&a)){const r={type:"tableContent",start:e[o][1].start,end:e[a][1].end},n={type:"chunkText",start:r.start,end:r.end,contentType:"text"};e.splice(o,a-o+1,["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]),l-=a-o-3,o=void 0,a=void 0}if("exit"===e[l][0]&&void 0!==s&&s+(c?0:1)<l&&("tableCellDivider"===u.type||"tableRow"===u.type&&(s+3<l||"whitespace"!==e[s][1].type))){const i={type:n?"tableDelimiter":r?"tableHeader":"tableData",start:e[s][1].start,end:e[l][1].end};e.splice(l+("tableCellDivider"===u.type?1:0),0,["exit",i,t]),e.splice(s,0,["enter",i,t]),l+=2,s=l+1,c=!0}"tableRow"===u.type&&(i="enter"===e[l][0],i&&(s=l+1,c=!1)),"tableDelimiterRow"===u.type&&(n="enter"===e[l][0],n&&(s=l+1,c=!1)),"tableHead"===u.type&&(r="enter"===e[l][0])}return e}}}},Ja={tokenize:function(e,t,r){let n=0;return function(t){return e.enter("check"),e.consume(t),i};function i(o){return-1===o||32===o?(e.consume(o),n++,4===n?t:i):null===o||Ui(o)?t(o):r(o)}},partial:!0};const Za={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 Ui(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):r(t)}function o(n){return 93===n?(e.enter("taskListCheckMarker"),e.consume(n),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:ts},t,r)):r(n)}}},es={text:{91:Za}};function ts(e,t,r){const n=this;return Vi(e,(function(e){const i=n.events[n.events.length-1];return(i&&"whitespace"===i[1].type||ji(e))&&null!==e?t(e):r(e)}),"whitespace")}function rs(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}function ns(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const is=function(e){if(null==e)return as;if("string"==typeof e)return function(e){return os(t);function t(t){return t&&t.type===e}}(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=is(e[r]);return os(n);function n(...e){let r=-1;for(;++r<t.length;)if(t[r].call(this,...e))return!0;return!1}}(e):function(e){return os(t);function t(t){let r;for(r in e)if(t[r]!==e[r])return!1;return!0}}(e);if("function"==typeof e)return os(e);throw new Error("Expected function, string, or object as test")};function os(e){return function(t,...r){return Boolean(t&&"object"==typeof t&&"type"in t&&Boolean(e.call(this,t,...r)))}}function as(){return!0}var ss=Object.freeze({__proto__:null,is:function e(t,r,n,i,o){const a=is(r);if(null!=n&&("number"!=typeof n||n<0||n===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(!(null==i||e(i)&&i.children))throw new Error("Expected parent node");if(null==i!=(null==n))throw new Error("Expected both parent and index");return!(!t||!t.type||"string"!=typeof t.type)&&Boolean(a.call(o,t,n,i))},convert:is});const cs=!0,ls=!1,us="skip",hs=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);const i=is(t),o=n?-1:1;!function e(a,s,c){const l=a&&"object"==typeof a?a:{};if("string"==typeof l.type){const e="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(u=a.type+(e?"<"+e+">":""),""+u+")")})}var u;return h;function h(){let l,u,h,p=[];if((!t||i(a,s,c[c.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[cs,e];return[e]}(r(a,c)),p[0]===ls))return p;if(a.children&&p[0]!==us)for(u=(n?a.children.length:-1)+o,h=c.concat(a);u>-1&&u<a.children.length;){if(l=e(a.children[u],u,h)(),l[0]===ls)return l;u="number"==typeof l[1]?l[1]:u+o}return p}}(e,void 0,[])()};const ps={}.hasOwnProperty,fs=function(e,t,r,n){let i,o;"string"==typeof t||t instanceof RegExp?(o=[[t,r]],i=n):(o=t,i=r),i||(i={});const a=is(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([ds(e[r][0]),ms(e[r][1])])}else{let r;for(r in e)ps.call(e,r)&&t.push([ds(r),ms(e[r])])}return t}(o);let c=-1;for(;++c<s.length;)hs(e,"text",l);return e;function l(e,t){let r,n=-1;for(;++n<t.length;){const e=t[n];if(a(e,r?r.children.indexOf(e):void 0,r))return;r=e}if(r)return function(e,t){const r=t[t.length-1],n=s[c][0],i=s[c][1];let o=0;const a=r.children.indexOf(e);let l=!1,u=[];n.lastIndex=0;let h=n.exec(e.value);for(;h;){const r=h.index,a={index:h.index,input:h.input,stack:[...t,e]};let s=i(...h,a);if("string"==typeof s&&(s=s.length>0?{type:"text",value:s}:void 0),!1!==s&&(o!==r&&u.push({type:"text",value:e.value.slice(o,r)}),Array.isArray(s)?u.push(...s):s&&u.push(s),o=r+h[0].length,l=!0),!n.global)break;h=n.exec(e.value)}l?(o<e.value.length&&u.push({type:"text",value:e.value.slice(o)}),r.children.splice(a,1,...u)):u=[e];return a+u.length}(e,t)}};function ds(e){return"string"==typeof e?new RegExp(ns(e),"g"):e}function ms(e){return"function"==typeof e?e:()=>e}const gs="phrasing",Es=["autolink","link","image","label"],ys={transforms:[function(e){fs(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,bs],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,_s]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:vs,literalAutolinkHttp:vs,literalAutolinkWww:vs},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);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}}},Ts={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:gs,notInConstruct:Es},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:gs,notInConstruct:Es},{character:":",before:"[ps]",after:"\\/",inConstruct:gs,notInConstruct:Es}]};function vs(e){this.config.enter.autolinkProtocol.call(this,e)}function bs(e,t,r,n,i){let o="";if(!As(i))return!1;if(/^w/i.test(t)&&(r=t+r,t="",o="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 a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const i=rs(e,"(");let o=rs(e,")");for(;-1!==n&&i>o;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),o++;return[e,r]}(r+n);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function _s(e,t,r,n){return!(!As(n,!0)||/[-\d_]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function As(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||zi(r)||Gi(r))&&(!t||47!==r)}function Ss(e){return e.label||!e.identifier?e.label||"":ga(e.identifier)}function ks(e,t,r){const n=t.indexStack,i=e.children||[],o=t.createTracker(r),a=[];let s=-1;for(n.push(-1);++s<i.length;){const r=i[s];n[n.length-1]=s,a.push(o.move(t.handle(r,e,t,{before:"\n",after:"\n",...o.current()}))),"list"!==r.type&&(t.bulletLastUsed=void 0),s<i.length-1&&a.push(o.move(Cs(r,i[s+1],e,t)))}return n.pop(),a.join("")}function Cs(e,t,r,n){let i=n.join.length;for(;i--;){const o=n.join[i](e,t,r,n);if(!0===o||1===o)break;if("number"==typeof o)return"\n".repeat(1+o);if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const xs=/\r?\n|\r/g;function ws(e,t){const r=[];let n,i=0,o=0;for(;n=xs.exec(e);)a(e.slice(i,n.index)),r.push(n[0]),i=n.index+n[0].length,o++;return a(e.slice(i)),r.join("");function a(e){r.push(t(e,o,!e))}}function Os(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 Ns(e,t){return Ps(e,t.inConstruct,!0)&&!Ps(e,t.notInConstruct,!1)}function Ps(e,t,r){if("string"==typeof t&&(t=[t]),!t||0===t.length)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function Rs(e,t,r){const n=(r.before||"")+(t||"")+(r.after||""),i=[],o=[],a={};let s=-1;for(;++s<e.unsafe.length;){const t=e.unsafe[s];if(!Ns(e.stack,t))continue;const r=Os(t);let o;for(;o=r.exec(n);){const e="before"in t||Boolean(t.atBreak),r="after"in t,n=o.index+(e?o[1].length:0);i.includes(n)?(a[n].before&&!e&&(a[n].before=!1),a[n].after&&!r&&(a[n].after=!1)):(i.push(n),a[n]={before:e,after:r})}}i.sort(Is);let c=r.before?r.before.length:0;const l=n.length-(r.after?r.after.length:0);for(s=-1;++s<i.length;){const e=i[s];e<c||e>=l||(e+1<l&&i[s+1]===e+1&&a[e].after&&!a[e+1].before&&!a[e+1].after||i[s-1]===e-1&&a[e].before&&!a[e-1].before&&!a[e-1].after||(c!==e&&o.push(Ls(n.slice(c,e),"\\")),c=e,!/[!-/:-@[-`{-~]/.test(n.charAt(e))||r.encode&&r.encode.includes(n.charAt(e))?(o.push("&#x"+n.charCodeAt(e).toString(16).toUpperCase()+";"),c++):o.push("\\")))}return o.push(Ls(n.slice(c,l),r.after)),o.join("")}function Is(e,t){return e-t}function Ls(e,t){const r=/\\(?=[!-/:-@[-`{-~])/g,n=[],i=[],o=e+t;let a,s=-1,c=0;for(;a=r.exec(o);)n.push(a.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("")}function Ds(e){const t=e||{},r=t.now||{};let n=t.lineShift||0,i=r.line||1,o=r.column||1;return{move:function(e){const t=e||"",r=t.split(/\r?\n|\r/g),a=r[r.length-1];return i+=r.length-1,o=1===r.length?o+a.length:1+a.length+n,t},current:function(){return{now:{line:i,column:o},lineShift:n}},shift:function(e){n+=e}}}function Ms(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Fs(){this.buffer()}function Hs(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=xo(this.sliceSerialize(e)).toLowerCase()}function Bs(e){this.exit(e)}function Us(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function js(){this.buffer()}function qs(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=xo(this.sliceSerialize(e)).toLowerCase()}function zs(e){this.exit(e)}function Gs(e,t,r,n){const i=Ds(n);let o=i.move("[^");const a=r.enter("footnoteReference"),s=r.enter("reference");return o+=i.move(Rs(r,Ss(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function $s(e,t,r,n){const i=Ds(n);let o=i.move("[^");const a=r.enter("footnoteDefinition"),s=r.enter("label");return o+=i.move(Rs(r,Ss(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(ws(ks(e,r,i.current()),Ks)),a(),o}function Ks(e,t,r){return 0===t?e:(r?"":" ")+e}function Vs(e,t,r){const n=t.indexStack,i=e.children||[],o=[];let a=-1,s=r.before;n.push(-1);let c=t.createTracker(r);for(;++a<i.length;){const l=i[a];let u;if(n[n.length-1]=a,a+1<i.length){let r=t.handle.handlers[i[a+1].type];r&&r.peek&&(r=r.peek),u=r?r(i[a+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else u=r.after;o.length>0&&("\r"===s||"\n"===s)&&"html"===l.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" ",c=t.createTracker(r),c.move(o.join(""))),o.push(c.move(t.handle(l,e,t,{...c.current(),before:s,after:u}))),s=o[o.length-1].slice(-1)}return n.pop(),o.join("")}Gs.peek=function(){return"["};Ys.peek=function(){return"~"};const Qs={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},Ws={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:Ys}};function Ys(e,t,r,n){const i=Ds(n),o=r.enter("strikethrough");let a=i.move("~~");return a+=Vs(e,r,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function Xs(e,t,r){let n=e.value||"",i="`",o=-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+" ");++o<r.unsafe.length;){const e=r.unsafe[o],t=Os(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 Zs(e){return e.length}function ec(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}Xs.peek=function(){return"`"};const tc={enter:{table:function(e){const t=e._align;this.enter({type:"table",align:t.map((e=>"none"===e?null:e)),children:[]},e),this.setData("inTable",!0)},tableData:nc,tableHeader:nc,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,ic));const r=this.stack[this.stack.length-1];r.value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:rc,tableHeader:rc,tableRow:rc}};function rc(e){this.exit(e)}function nc(e){this.enter({type:"tableCell",children:[]},e)}function ic(e,t){return"|"===t?t:e}function oc(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,o=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,n){return s(function(e,t,r){const n=e.children;let i=-1;const o=[],a=t.enter("table");for(;++i<n.length;)o[i]=c(n[i],t,r);return a(),o}(e,r,n),e.align)},tableRow:function(e,t,r,n){const i=c(e,r,n),o=s([i]);return o.slice(0,o.indexOf("\n"))},tableCell:a,inlineCode:function(e,t,r){let n=Xs(e,0,r);r.stack.includes("tableCell")&&(n=n.replace(/\|/g,"\\$&"));return n}}};function a(e,t,r,n){const i=r.enter("tableCell"),a=r.enter("phrasing"),s=Vs(e,r,{...n,before:o,after:o});return a(),i(),s}function s(e,t){return function(e,t={}){const r=(t.align||[]).concat(),n=t.stringLength||Zs,i=[],o=[],a=[],s=[];let c=0,l=-1;for(;++l<e.length;){const r=[],i=[];let u=-1;for(e[l].length>c&&(c=e[l].length);++u<e[l].length;){const o=Js(e[l][u]);if(!1!==t.alignDelimiters){const e=n(o);i[u]=e,(void 0===s[u]||e>s[u])&&(s[u]=e)}r.push(o)}o[l]=r,a[l]=i}let u=-1;if("object"==typeof r&&"length"in r)for(;++u<c;)i[u]=ec(r[u]);else{const e=ec(r);for(;++u<c;)i[u]=e}u=-1;const h=[],p=[];for(;++u<c;){const e=i[u];let r="",n="";99===e?(r=":",n=":"):108===e?r=":":114===e&&(n=":");let o=!1===t.alignDelimiters?1:Math.max(1,s[u]-r.length-n.length);const a=r+"-".repeat(o)+n;!1!==t.alignDelimiters&&(o=r.length+o+n.length,o>s[u]&&(s[u]=o),p[u]=o),h[u]=a}o.splice(1,0,h),a.splice(1,0,p),l=-1;const f=[];for(;++l<o.length;){const e=o[l],r=a[l];u=-1;const n=[];for(;++u<c;){const o=e[u]||"";let a="",l="";if(!1!==t.alignDelimiters){const e=s[u]-(r[u]||0),t=i[u];114===t?a=" ".repeat(e):99===t?e%2?(a=" ".repeat(e/2+.5),l=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),l=a):l=" ".repeat(e)}!1===t.delimiterStart||u||n.push("|"),!1===t.padding||!1===t.alignDelimiters&&""===o||!1===t.delimiterStart&&!u||n.push(" "),!1!==t.alignDelimiters&&n.push(a),n.push(o),!1!==t.alignDelimiters&&n.push(l),!1!==t.padding&&n.push(" "),!1===t.delimiterEnd&&u===c-1||n.push("|")}f.push(!1===t.delimiterEnd?n.join("").replace(/ +$/,""):n.join(""))}return f.join("\n")}(e,{align:t,alignDelimiters:n,padding:r,stringLength:i})}function c(e,t,r){const n=e.children;let i=-1;const o=[],s=t.enter("tableRow");for(;++i<n.length;)o[i]=a(n[i],0,t,r);return s(),o}}function ac(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}function sc(e,t,r,n){const i=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 o=r.bulletCurrent||ac(r);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+o);let a=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=r.createTracker(n);s.move(o+" ".repeat(a-o.length)),s.shift(a);const c=r.enter("listItem"),l=r.indentLines(r.containerFlow(e,s.current()),(function(e,t,r){if(t)return(r?"":" ".repeat(a))+e;return(r?o:o+" ".repeat(a-o.length))+e}));return c(),l}const cc={exit:{taskListCheckValueChecked:uc,taskListCheckValueUnchecked:uc,paragraph:function(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1],r=e.children[0];if(r&&"text"===r.type){const n=t.children;let i,o=-1;for(;++o<n.length;){const e=n[o];if("paragraph"===e.type){i=e;break}}i===e&&(r.value=r.value.slice(1),0===r.value.length?e.children.shift():e.position&&r.position&&"number"==typeof r.position.start.offset&&(r.position.start.column++,r.position.start.offset++,e.position.start=Object.assign({},r.position.start)))}}this.exit(e)}}},lc={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,t,r,n){const i=e.children[0],o="boolean"==typeof e.checked&&i&&"paragraph"===i.type,a="["+(e.checked?"x":" ")+"] ",s=Ds(n);o&&s.move(a);let c=sc(e,t,r,{...n,...s.current()});o&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a})));return c}}};function uc(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function hc(e={}){const t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",function(e){return Ni([La,{document:{91:{tokenize:Va,continuation:{tokenize:Qa},exit:Wa}},text:{91:{tokenize:Ka},93:{add:"after",tokenize:Ga,resolveTo:$a}}},Ya(e),Xa,es])}(e)),r("fromMarkdownExtensions",[ys,{enter:{gfmFootnoteDefinition:Ms,gfmFootnoteDefinitionLabelString:Fs,gfmFootnoteCall:Us,gfmFootnoteCallString:js},exit:{gfmFootnoteDefinition:Bs,gfmFootnoteDefinitionLabelString:Hs,gfmFootnoteCall:zs,gfmFootnoteCallString:qs}},Qs,tc,cc]),r("toMarkdownExtensions",function(e){return{extensions:[Ts,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:$s,footnoteReference:Gs}},Ws,oc(e),lc]}}(e))}var pc=he(Object.freeze({__proto__:null,default:hc}));const fc=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null),hs(e,t,(function(e,t){const n=t[t.length-1];return r(e,n?n.children.indexOf(e):null,n)}),n)};var dc=Object.freeze({__proto__:null,CONTINUE:cs,EXIT:ls,SKIP:us,visit:fc});const mc=/[\t ]*(?:\r?\n|\r)/g;var gc=Object.freeze({__proto__:null,default:function(){return e=>{fc(e,"text",((e,t,r)=>{const n=[];let i=0;mc.lastIndex=0;let o=mc.exec(e.value);for(;o;){const t=o.index;i!==t&&n.push({type:"text",value:e.value.slice(i,t)}),n.push({type:"break"}),i=t+o[0].length,o=mc.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}))}}}),Ec=he(gc),yc={},Tc={};function vc(e,t,r){var n,i,o,a,s,c="";for("string"!=typeof t&&(r=t,t=vc.defaultChars),void 0===r&&(r=!0),s=function(e){var t,r,n=Tc[e];if(n)return n;for(n=Tc[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(o=e.charCodeAt(n),r&&37===o&&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(o<128)c+=s[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&n+1<i&&(a=e.charCodeAt(n+1))>=56320&&a<=57343){c+=encodeURIComponent(e[n]+e[n+1]),n++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[n]);return c}vc.defaultChars=";/?:@&=+$,-_.!~*'()#",vc.componentChars="-_.!~*'()";var bc=vc,_c={};function Ac(e,t){var r;return"string"!=typeof t&&(t=Ac.defaultChars),r=function(e){var t,r,n=_c[e];if(n)return n;for(n=_c[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,o,a,s,c,l="";for(t=0,n=e.length;t<n;t+=3)(i=parseInt(e.slice(t+1,t+3),16))<128?l+=r[i]:192==(224&i)&&t+3<n&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(l+=(c=i<<6&1984|63&o)<128?"��":String.fromCharCode(c),t+=3):224==(240&i)&&t+6<n&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&a))?(l+=(c=i<<12&61440|o<<6&4032|63&a)<2048||c>=55296&&c<=57343?"���":String.fromCharCode(c),t+=6):240==(248&i)&&t+9<n&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&a)&&128==(192&s))?((c=i<<18&1835008|o<<12&258048|a<<6&4032|63&s)<65536||c>1114111?l+="����":(c-=65536,l+=String.fromCharCode(55296+(c>>10),56320+(1023&c))),t+=9):l+="�";return l}))}Ac.defaultChars=";/?:@&=+$,#",Ac.componentChars="";var Sc=Ac;function kc(){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 Cc=/^([a-z0-9.+-]+:)/i,xc=/:[0-9]*$/,wc=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Oc=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Nc=["'"].concat(Oc),Pc=["%","/","?",";","#"].concat(Nc),Rc=["/","?","#"],Ic=/^[+a-z0-9A-Z_-]{0,63}$/,Lc=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Dc={javascript:!0,"javascript:":!0},Mc={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};kc.prototype.parse=function(e,t){var r,n,i,o,a,s=e;if(s=s.trim(),!t&&1===e.split("#").length){var c=wc.exec(s);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var l=Cc.exec(s);if(l&&(i=(l=l[0]).toLowerCase(),this.protocol=l,s=s.substr(l.length)),(t||l||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===s.substr(0,2))||l&&Dc[l]||(s=s.substr(2),this.slashes=!0)),!Dc[l]&&(a||l&&!Mc[l])){var u,h,p=-1;for(r=0;r<Rc.length;r++)-1!==(o=s.indexOf(Rc[r]))&&(-1===p||o<p)&&(p=o);for(-1!==(h=-1===p?s.lastIndexOf("@"):s.lastIndexOf("@",p))&&(u=s.slice(0,h),s=s.slice(h+1),this.auth=u),p=-1,r=0;r<Pc.length;r++)-1!==(o=s.indexOf(Pc[r]))&&(-1===p||o<p)&&(p=o);-1===p&&(p=s.length),":"===s[p-1]&&p--;var f=s.slice(0,p);s=s.slice(p),this.parseHost(f),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(Ic)){for(var E="",y=0,T=g.length;y<T;y++)g.charCodeAt(y)>127?E+="x":E+=g[y];if(!E.match(Ic)){var v=m.slice(0,r),b=m.slice(r+1),_=g.match(Lc);_&&(v.push(_[1]),b.unshift(_[2])),b.length&&(s=b.join(".")+s),this.hostname=v.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),d&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var A=s.indexOf("#");-1!==A&&(this.hash=s.substr(A),s=s.slice(0,A));var S=s.indexOf("?");return-1!==S&&(this.search=s.substr(S),s=s.slice(0,S)),s&&(this.pathname=s),Mc[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},kc.prototype.parseHost=function(e){var t=xc.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var Fc=function(e,t){if(e&&e instanceof kc)return e;var r=new kc;return r.parse(e,t),r};function Hc(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,n){const i=Hc(r),o='"'===i?"Quote":"Apostrophe",a=r.enter("image");let s=r.enter("label");const c=r.createTracker(n);let l=c.move("![");return l+=c.move(r.safe(e.alt,{before:l,after:"]",...c.current()})),l+=c.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(r.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(s=r.enter("destinationRaw"),l+=c.move(r.safe(e.url,{before:l,after:e.title?" ":")",...c.current()}))),s(),e.title&&(s=r.enter(`title${o}`),l+=c.move(" "+i),l+=c.move(r.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(")"),a(),l}yc.encode=bc,yc.decode=Sc,yc.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||""},yc.parse=Fc,Bc.peek=function(){return"!"};var Uc=he(Object.freeze({__proto__:null,image:Bc})),jc=he(Yo);var qc=he(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"}}));const zc={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 Gc=he(Object.freeze({__proto__:null,codes:zc}));var $c=he(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:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4}})),Kc=he(wo),Vc=he(Co),Qc=he(vo),Wc=he(Ki),Yc=he(_o),Xc=he(So),Jc=he(dc);function Zc(e,t,r,n){const i=r.enter("paragraph"),o=r.enter("phrasing"),a=r.containerPhrasing(e,n);return o(),i(),a}var el=he(Object.freeze({__proto__:null,paragraph:Zc}));function tl(e,t){let r=!1;return fc(e,(e=>{if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,ls})),Boolean((!e.depth||e.depth<3)&&Si(e)&&(t.options.setext||r))}function rl(e,t,r,n){const i=Math.max(Math.min(6,e.depth||1),1),o=r.createTracker(n);if(tl(e,r)){const t=r.enter("headingSetext"),n=r.enter("phrasing"),a=r.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return n(),t(),a+"\n"+(1===i?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(i),s=r.enter("headingAtx"),c=r.enter("phrasing");o.move(a+" ");let l=r.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(l)&&(l="&#x"+l.charCodeAt(0).toString(16).toUpperCase()+";"+l.slice(1)),l=l?a+" "+l:a,r.options.closeAtx&&(l+=" "+a),c(),s(),l}var nl=he(Object.freeze({__proto__:null,heading:rl})),il=he(Qi);function ol(e,t,r,n){const i=r.enter("blockquote"),o=r.createTracker(n);o.move("> "),o.shift(2);const a=r.indentLines(r.containerFlow(e,o.current()),al);return i(),a}function al(e,t,r){return">"+(r?"":" ")+e}var sl,cl=he(Object.freeze({__proto__:null,blockquote:ol})),ll={exports:{}};sl=ll,function(){var e;function t(e){for(var t,r,n,i,o=1,a=[].slice.call(arguments),s=0,c=e.length,l="",u=!1,h=!1,p=function(){return a[o++]},f=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],u)switch(u=!1,"."==t?(h=!1,t=e[++s]):"0"==t&&"."==e[s+1]?(h=!0,t=e[s+=2]):h=!0,i=f(),t){case"b":l+=parseInt(p(),10).toString(2);break;case"c":l+="string"==typeof(r=p())||r instanceof String?r:String.fromCharCode(parseInt(r,10));break;case"d":l+=parseInt(p(),10);break;case"f":n=String(parseFloat(p()).toFixed(i||6)),l+=h?n:n.replace(/^0/,"");break;case"j":l+=JSON.stringify(p());break;case"o":l+="0"+parseInt(p(),10).toString(8);break;case"s":l+=p();break;case"x":l+="0x"+parseInt(p(),10).toString(16);break;case"X":l+="0x"+parseInt(p(),10).toString(16).toUpperCase();break;default:l+=t}else"%"===t?u=!0:l+=t;return l}(e=sl.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 ul=ll.exports;const hl=Object.assign(pl(Error),{eval:pl(EvalError),range:pl(RangeError),reference:pl(ReferenceError),syntax:pl(SyntaxError),type:pl(TypeError),uri:pl(URIError)});function pl(e){return t.displayName=e.displayName||e.name,t;function t(t,...r){const n=t?ul(t,...r):t;return new e(n)}}const fl={}.hasOwnProperty,dl={yaml:"-",toml:"+"};function ml(e="yaml"){const t=[];let r=-1;for(Array.isArray(e)||(e=[e]);++r<e.length;)t[r]=gl(e[r]);return t}function gl(e){let t=e;if("string"==typeof t){if(!fl.call(dl,t))throw hl("Missing matter definition for `%s`",t);t={type:t,marker:dl[t]}}else if("object"!=typeof t)throw hl("Expected matter to be an object, not `%j`",t);if(!fl.call(t,"type"))throw hl("Missing `type` in matter `%j`",t);if(!fl.call(t,"fence")&&!fl.call(t,"marker"))throw hl("Missing `marker` or `fence` in matter `%j`",t);return t}function El(e){const t=e.type,r=e.anywhere,n=t+"Value",i=t+"Fence",o=i+"Sequence",a={tokenize:function(e,t,r){let n=0;return function(t){if(t===s.charCodeAt(n))return e.enter(i),e.enter(o),a(t);return r(t)};function a(t){return n===s.length?(e.exit(o),qi(t)?(e.enter("whitespace"),c(t)):l(t)):t===s.charCodeAt(n++)?(e.consume(t),a):r(t)}function c(t){return qi(t)?(e.consume(t),c):(e.exit("whitespace"),l(t))}function l(n){return null===n||ji(n)?(e.exit(i),t(n)):r(n)}},partial:!0};let s;return{tokenize:function(i,o,c){const l=this;return function(n){const o=l.now();if(1!==o.column||!r&&1!==o.line)return c(n);return i.enter(t),s=yl(e,"open"),i.attempt(a,u,c)(n)};function u(t){return s=yl(e,"close"),f(t)}function h(e){return null===e||ji(e)?f(e):(i.enter(n),p(e))}function p(e){return null===e||ji(e)?(i.exit(n),f(e)):(i.consume(e),p)}function f(e){return null===e?c(e):(i.enter("lineEnding"),i.consume(e),i.exit("lineEnding"),i.attempt(a,d,h))}function d(e){return i.exit(t),o(e)}},concrete:!0}}function yl(e,t){return e.marker?Tl(e.marker,t).repeat(3):Tl(e.fence,t)}function Tl(e,t){return"string"==typeof e?e:e[t]}function vl(e){return function(t){this.enter({type:e.type,value:""},t),this.buffer()}}function bl(e){const t=this.resume();this.exit(e).value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function _l(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Al(e){const t=Sl(e,"open"),r=Sl(e,"close");return function(e){return t+(e.value?"\n"+e.value:"")+"\n"+r}}function Sl(e,t){return e.marker?kl(e.marker,t).repeat(3):kl(e.fence,t)}function kl(e,t){return"string"==typeof e?e:e[t]}var Cl=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=ml(e),r={};let n=-1;for(;++n<t.length;){const e=t[n],i=yl(e,"open").charCodeAt(0);i in r?r[i].push(El(e)):r[i]=[El(e)]}return{flow:r}}(e)),r("fromMarkdownExtensions",function(e){const t=ml(e),r={},n={};let i=-1;for(;++i<t.length;){const e=t[i];r[e.type]=vl(e),n[e.type]=bl,n[e.type+"Value"]=_l}return{enter:r,exit:n}}(e)),r("toMarkdownExtensions",function(e){const t=[],r={},n=ml(e);let i=-1;for(;++i<n.length;){const e=n[i];r[e.type]=Al(e),t.push({atBreak:!0,character:Sl(e,"open").charAt(0)})}return{unsafe:t,handlers:r}}(e))}}),xl=he(Cl);function wl(e,t,r,n,i,o,a,s,c,l,u,h,p,f,d){let m,g;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),E};function E(t){return 35===t?(m=a,y(t)):46===t?(m=s,y(t)):58===t||95===t||Ii(t)?(e.enter(o),e.enter(c),e.consume(t),b):d&&qi(t)?Vi(e,E,"whitespace")(t):!d&&Ui(t)?ko(e,E)(t):O(t)}function y(t){return e.enter(o),e.enter(m),e.enter(m+"Marker"),e.consume(t),e.exit(m+"Marker"),T}function T(t){return null===t||34===t||35===t||39===t||46===t||60===t||61===t||62===t||96===t||125===t||Ui(t)?r(t):(e.enter(m+"Value"),e.consume(t),v)}function v(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t?r(t):35===t||46===t||125===t||Ui(t)?(e.exit(m+"Value"),e.exit(m),e.exit(o),E(t)):(e.consume(t),v)}function b(t){return 45===t||46===t||58===t||95===t||Mi(t)?(e.consume(t),b):(e.exit(c),d&&qi(t)?Vi(e,_,"whitespace")(t):!d&&Ui(t)?ko(e,_)(t):_(t))}function _(t){return 61===t?(e.enter(l),e.consume(t),e.exit(l),A):(e.exit(o),E(t))}function A(t){return null===t||60===t||61===t||62===t||96===t||125===t||d&&ji(t)?r(t):34===t||39===t?(e.enter(u),e.enter(p),e.consume(t),e.exit(p),g=t,k):d&&qi(t)?Vi(e,A,"whitespace")(t):!d&&Ui(t)?ko(e,A)(t):(e.enter(h),e.enter(f),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||Ui(t)?(e.exit(f),e.exit(h),e.exit(o),E(t)):(e.consume(t),S)}function k(t){return t===g?(e.enter(p),e.consume(t),e.exit(p),e.exit(u),e.exit(o),w):(e.enter(h),C(t))}function C(t){return t===g?(e.exit(h),k(t)):null===t?r(t):ji(t)?d?r(t):ko(e,C)(t):(e.enter(f),e.consume(t),x)}function x(t){return t===g||null===t||ji(t)?(e.exit(f),C(t)):(e.consume(t),x)}function w(e){return 125===e||Ui(e)?E(e):O(e)}function O(o){return 125===o?(e.enter(i),e.consume(o),e.exit(i),e.exit(n),t):r(o)}}function Ol(e,t,r,n,i,o,a){let s,c=0,l=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(o),h(r))}function h(t){if(93===t&&!l)return d(t);const r=e.enter("chunkText",{contentType:"text",previous:s});return s&&(s.next=r),s=r,p(t)}function p(t){return null===t||c>999||91===t&&++l>32?r(t):93!==t||l--?ji(t)?a?r(t):(e.consume(t),e.exit("chunkText"),h):(e.consume(t),92===t?f:p):(e.exit("chunkText"),d(t))}function f(t){return 91===t||92===t||93===t?(e.consume(t),c++,p):p(t)}function d(r){return e.exit(o),e.enter(i),e.consume(r),e.exit(i),e.exit(n),t}}function Nl(e,t,r,n){const i=this;return function(t){if(Ii(t))return e.enter(n),e.consume(t),o;return r(t)};function o(a){return 45===a||95===a||Mi(a)?(e.consume(a),o):(e.exit(n),45===i.previous||95===i.previous?r(a):t(a))}}const Pl={tokenize:function(e,t,r){const n=this,i=n.events[n.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0;let a,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"),Nl.call(n,e,l,r,"directiveContainerName")(t))}function l(t){return 91===t?e.attempt(Rl,u,u)(t):u(t)}function u(t){return 123===t?e.attempt(Il,h,h)(t):h(t)}function h(t){return Vi(e,p,"whitespace")(t)}function p(i){return e.exit("directiveContainerFence"),null===i?f(i):ji(i)?n.interrupt?t(i):e.attempt(Ll,d,f)(i):r(i)}function f(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?v(t):e.attempt({tokenize:b,partial:!0},v,o?Vi(e,g,"linePrefix",o+1):g)(t)}function g(t){if(null===t)return v(t);const r=e.enter("chunkDocument",{contentType:"document",previous:a});return a&&(a.next=r),a=r,E(t)}function E(t){if(null===t){const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,v(t)}return ji(t)?e.check(Ll,y,T)(t):(e.consume(t),E)}function y(t){e.consume(t);const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,m}function T(t){const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,v(t)}function v(r){return e.exit("directiveContainerContent"),e.exit("directiveContainer"),t(r)}function b(e,t,r){let n=0;return Vi(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"),Vi(e,o,"whitespace")(t))}function o(n){return null===n||ji(n)?(e.exit("directiveContainerFence"),t(n)):r(n)}}},concrete:!0},Rl={tokenize:function(e,t,r){return Ol(e,t,r,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)},partial:!0},Il={tokenize:function(e,t,r){return wl(e,t,r,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)},partial:!0},Ll={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 Dl={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"),Nl.call(n,e,o,r,"directiveLeafName")):r(t)}function o(t){return 91===t?e.attempt(Ml,a,a)(t):a(t)}function a(t){return 123===t?e.attempt(Fl,s,s)(t):s(t)}function s(t){return Vi(e,c,"whitespace")(t)}function c(n){return null===n||ji(n)?(e.exit("directiveLeaf"),t(n)):r(n)}}},Ml={tokenize:function(e,t,r){return Ol(e,t,r,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)},partial:!0},Fl={tokenize:function(e,t,r){return wl(e,t,r,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)},partial:!0};const Hl={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("directiveText"),e.enter("directiveTextMarker"),e.consume(t),e.exit("directiveTextMarker"),Nl.call(n,e,i,r,"directiveTextName")};function i(t){return 58===t?r(t):91===t?e.attempt(Bl,o,o)(t):o(t)}function o(t){return 123===t?e.attempt(Ul,a,a)(t):a(t)}function a(r){return e.exit("directiveText"),t(r)}},previous:function(e){return 58!==e||"characterEscape"===this.events[this.events.length-1][1].type}},Bl={tokenize:function(e,t,r){return Ol(e,t,r,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")},partial:!0},Ul={tokenize:function(e,t,r){return wl(e,t,r,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")},partial:!0};const jl=["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"],ql={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 zl(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function Gl(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function $l(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||zl(e)}const Kl=String.fromCharCode,Vl=["","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 Ql(e,t={}){const r="string"==typeof t.additional?t.additional.charCodeAt(0):t.additional,n=[];let i,o,a=0,s=-1,c="";t.position&&("start"in t.position||"indent"in t.position?(o=t.position.indent,i=t.position.start):i=t.position);let l,u=(i?i.line:0)||1,h=(i?i.column:0)||1,p=f();for(a--;++a<=e.length;)if(10===l&&(h=(o?o[s]:0)||1),l=e.charCodeAt(a),38===l){const i=e.charCodeAt(a+1);if(9===i||10===i||12===i||32===i||38===i||60===i||Number.isNaN(i)||r&&i===r){c+=Kl(l),h++;continue}const o=a+1;let s,u=o,g=o;if(35===i){g=++u;const t=e.charCodeAt(g);88===t||120===t?(s="hexadecimal",g=++u):s="decimal"}else s="named";let E="",y="",T="";const v="named"===s?$l:"decimal"===s?zl:Gl;for(g--;++g<=e.length;){const t=e.charCodeAt(g);if(!v(t))break;T+=Kl(t),"named"===s&&jl.includes(T)&&(E=T,y=co(T))}let b=59===e.charCodeAt(g);if(b){g++;const e="named"===s&&co(T);e&&(E=T,y=e)}let _=1+g-o,A="";if(b||!1!==t.nonTerminated)if(T)if("named"===s){if(b&&!y)d(5,1);else if(E!==T&&(g=u+E.length,_=1+g-u,b=!1),!b){const r=E?1:3;if(t.attribute){const t=e.charCodeAt(g);61===t?(d(r,_),y=""):$l(t)?y="":d(r,_)}else d(r,_)}A=y}else{b||d(2,_);let e=Number.parseInt(T,"hexadecimal"===s?16:10);if(Wl(e))d(7,_),A=Kl(65533);else if(e in ql)d(6,_),A=ql[e];else{let t="";Yl(e)&&d(6,_),e>65535&&(e-=65536,t+=Kl(e>>>10|55296),e=56320|1023&e),A=t+Kl(e)}}else"named"!==s&&d(4,_);else;if(A){m(),p=f(),a=g-1,h+=g-o+1,n.push(A);const r=f();r.offset++,t.reference&&t.reference.call(t.referenceContext,A,{start:p,end:r},e.slice(o-1,g)),p=r}else T=e.slice(o-1,g),c+=T,h+=T.length,a=g-1}else 10===l&&(u++,s++,h=0),Number.isNaN(l)?m():(c+=Kl(l),h++);return n.join("");function f(){return{line:u,column:h,offset:a+((i?i.offset:0)||0)}}function d(e,r){let n;t.warning&&(n=f(),n.column+=r,n.offset+=r,t.warning.call(t.warningContext,Vl[e],n,e))}function m(){c&&(n.push(c),t.text&&t.text.call(t.textContext,c,{start:p,end:f()}),c="")}}function Wl(e){return e>=55296&&e<=57343||e>1114111}function Yl(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 Xl(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 Jl(e){return"&#x"+e.toString(16).toUpperCase()+";"}const Zl={}.hasOwnProperty,eu=/^[^\t\n\r "#'.<=>`}]+$/;pu.peek=function(){return":"};const tu={canContainEols:["textDirective"],enter:{directiveContainer:function(e){nu.call(this,"containerDirective",e)},directiveContainerAttributes:ou,directiveContainerLabel:function(e){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},e)},directiveLeaf:function(e){nu.call(this,"leafDirective",e)},directiveLeafAttributes:ou,directiveText:function(e){nu.call(this,"textDirective",e)},directiveTextAttributes:ou},exit:{directiveContainer:hu,directiveContainerAttributeClassValue:su,directiveContainerAttributeIdValue:au,directiveContainerAttributeName:lu,directiveContainerAttributeValue:cu,directiveContainerAttributes:uu,directiveContainerLabel:function(e){this.exit(e)},directiveContainerName:iu,directiveLeaf:hu,directiveLeafAttributeClassValue:su,directiveLeafAttributeIdValue:au,directiveLeafAttributeName:lu,directiveLeafAttributeValue:cu,directiveLeafAttributes:uu,directiveLeafName:iu,directiveText:hu,directiveTextAttributeClassValue:su,directiveTextAttributeIdValue:au,directiveTextAttributeName:lu,directiveTextAttributeValue:cu,directiveTextAttributes:uu,directiveTextName:iu}},ru={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:pu,leafDirective:pu,textDirective:pu}};function nu(e,t){this.enter({type:e,name:"",attributes:{},children:[]},t)}function iu(e){this.stack[this.stack.length-1].name=this.sliceSerialize(e)}function ou(){this.setData("directiveAttributes",[]),this.buffer()}function au(e){this.getData("directiveAttributes").push(["id",Ql(this.sliceSerialize(e),{attribute:!0})])}function su(e){this.getData("directiveAttributes").push(["class",Ql(this.sliceSerialize(e),{attribute:!0})])}function cu(e){const t=this.getData("directiveAttributes");t[t.length-1][1]=Ql(this.sliceSerialize(e),{attribute:!0})}function lu(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 hu(e){this.exit(e)}function pu(e,t,r,n){const i=Ds(n),o=function(e){let t=0;"containerDirective"===e.type?(hs(e,(function(e,r){if("containerDirective"===e.type){let e=r.length,n=0;for(;e--;)"containerDirective"===r[e].type&&n++;n>t&&(t=n)}})),t+=3):t="leafDirective"===e.type?2:1;return":".repeat(t)}(e),a=r.enter(e.type);let s,c=i.move(o+(e.name||""));if("containerDirective"===e.type){const t=(e.children||[])[0];s=fu(t)?t:void 0}else s=e;if(s&&s.children&&s.children.length>0){const t=r.enter("label"),n=`${e.type}Label`,o=r.enter(n);c+=i.move("["),c+=i.move(Vs(s,r,{...i.current(),before:c,after:"]"})),c+=i.move("]"),o(),t()}if(c+=i.move(function(e,t){const r=Hc(t),n="textDirective"===e.type?[r]:[r,"\n","\r"],i=e.attributes||{},o=[];let a,s,c,l;for(l in i)if(Zl.call(i,l)&&void 0!==i[l]&&null!==i[l]){const e=String(i[l]);if("id"===l)c=eu.test(e)?"#"+e:u("id",e);else if("class"===l){const t=e.split(/[\t\n\r ]+/g),r=[],n=[];let i=-1;for(;++i<t.length;)(eu.test(t[i])?n:r).push(t[i]);a=r.length>0?u("class",r.join(" ")):"",s=n.length>0?"."+n.join("."):""}else o.push(u(l,e))}a&&o.unshift(a);s&&o.unshift(s);c&&o.unshift(c);return o.length>0?"{"+o.join(" ")+"}":"";function u(e,t){return e+(t?"="+r+function(e,t){return Xl(e,Object.assign({format:Jl},t))}(t,{subset:n})+r:"")}}(e,r)),"containerDirective"===e.type){let t=e;fu((e.children||[])[0])&&(t=Object.assign({},e,{children:e.children.slice(1)})),t&&t.children&&t.children.length>0&&(c+=i.move("\n"),c+=i.move(ks(t,r,i.current()))),c+=i.move("\n"+o)}return a(),c}function fu(e){return Boolean(e&&"paragraph"===e.type&&e.data&&e.data.directiveLabel)}var du=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:Hl},flow:{58:[Pl,Dl]}}),t("fromMarkdownExtensions",tu),t("toMarkdownExtensions",ru)}}),mu=he(du);var gu=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:{[zc.leftCurlyBrace]:{name:"headingIdMaybeStart",tokenize:(e,t,r)=>function(n){return e.attempt({tokenize(e,t,r){return function(t){if(t!==zc.leftCurlyBrace)throw new Error(`Unexpected code ${t}`);return e.enter("id"),e.enter("idMarker"),e.consume(t),n};function n(t){return t!==zc.numberSign?r(t):(e.consume(t),e.exit("idMarker"),e.enter("idString"),e.enter("chunkString",{contentType:"string"}),i)}function i(n){return[zc.carriageReturn,zc.lineFeed,zc.carriageReturnLineFeed,null,zc.backslash,zc.leftCurlyBrace].includes(n)?r(n):n===zc.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){fc(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}`)})),fc(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)}}))}}}),Eu=he(gu),yu=he(ss),Tu={exports:{}},vu=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)}},bu=vu,_u=Object.prototype.toString;function Au(e){return Array.isArray(e)}function Su(e){return void 0===e}function ku(e){return"[object ArrayBuffer]"===_u.call(e)}function Cu(e){return null!==e&&"object"==typeof e}function xu(e){if("[object Object]"!==_u.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function wu(e){return"[object Function]"===_u.call(e)}function Ou(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),Au(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 Nu={isArray:Au,isArrayBuffer:ku,isBuffer:function(e){return null!==e&&!Su(e)&&null!==e.constructor&&!Su(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===_u.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ku(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:Cu,isPlainObject:xu,isUndefined:Su,isDate:function(e){return"[object Date]"===_u.call(e)},isFile:function(e){return"[object File]"===_u.call(e)},isBlob:function(e){return"[object Blob]"===_u.call(e)},isFunction:wu,isStream:function(e){return Cu(e)&&wu(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===_u.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:Ou,merge:function e(){var t={};function r(r,n){xu(t[n])&&xu(r)?t[n]=e(t[n],r):xu(r)?t[n]=e({},r):Au(r)?t[n]=r.slice():t[n]=r}for(var n=0,i=arguments.length;n<i;n++)Ou(arguments[n],r);return t},extend:function(e,t,r){return Ou(t,(function(t,n){e[n]=r&&"function"==typeof t?bu(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}},Pu=Nu;function Ru(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Iu=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(Pu.isURLSearchParams(t))n=t.toString();else{var i=[];Pu.forEach(t,(function(e,t){null!=e&&(Pu.isArray(e)?t+="[]":e=[e],Pu.forEach(e,(function(e){Pu.isDate(e)?e=e.toISOString():Pu.isObject(e)&&(e=JSON.stringify(e)),i.push(Ru(t)+"="+Ru(e))})))})),n=i.join("&")}if(n){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},Lu=Nu;function Du(){this.handlers=[]}Du.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},Du.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Du.prototype.forEach=function(e){Lu.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var Mu=Du,Fu=Nu,Hu=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},Bu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Uu=Hu,ju=function(e,t,r,n,i){var o=new Error(e);return Uu(o,t,r,n,i)},qu=ju,zu=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(qu("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)},Gu=Nu,$u=Gu.isStandardBrowserEnv()?{write:function(e,t,r,n,i,o){var a=[];a.push(e+"="+encodeURIComponent(t)),Gu.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Gu.isString(n)&&a.push("path="+n),Gu.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.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(){}},Ku=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},Vu=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},Qu=function(e,t){return e&&!Ku(t)?Vu(e,t):t},Wu=Nu,Yu=["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"],Xu=Nu,Ju=Xu.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=Xu.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0};function Zu(e){this.message=e}Zu.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Zu.prototype.__CANCEL__=!0;var eh,th=Zu,rh=Nu,nh=zu,ih=$u,oh=Iu,ah=Qu,sh=function(e){var t,r,n,i={};return e?(Wu.forEach(e.split("\n"),(function(e){if(n=e.indexOf(":"),t=Wu.trim(e.substr(0,n)).toLowerCase(),r=Wu.trim(e.substr(n+1)),t){if(i[t]&&Yu.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([r]):i[t]?i[t]+", "+r:r}})),i):i},ch=Ju,lh=ju,uh=Bu,hh=th,ph=function(e){return new Promise((function(t,r){var n,i=e.data,o=e.headers,a=e.responseType;function s(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}rh.isFormData(i)&&delete o["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var l=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(l+":"+u)}var h=ah(e.baseURL,e.url);function p(){if(c){var n="getAllResponseHeaders"in c?sh(c.getAllResponseHeaders()):null,i={data:a&&"text"!==a&&"json"!==a?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c};nh((function(e){t(e),s()}),(function(e){r(e),s()}),i),c=null}}if(c.open(e.method.toUpperCase(),oh(h,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(p)},c.onabort=function(){c&&(r(lh("Request aborted",e,"ECONNABORTED",c)),c=null)},c.onerror=function(){r(lh("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||uh;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(lh(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},rh.isStandardBrowserEnv()){var f=(e.withCredentials||ch(h))&&e.xsrfCookieName?ih.read(e.xsrfCookieName):void 0;f&&(o[e.xsrfHeaderName]=f)}"setRequestHeader"in c&&rh.forEach(o,(function(e,t){void 0===i&&"content-type"===t.toLowerCase()?delete o[t]:c.setRequestHeader(t,e)})),rh.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),a&&"json"!==a&&(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 hh("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)}))},fh={exports:{}},dh=U.default,mh=dh.URL,gh=q.default,Eh=z.default,yh=G.default.Writable,Th=j.default,vh=function(){if(!eh){try{eh=require("debug")("follow-redirects")}catch(e){}"function"!=typeof eh&&(eh=function(){})}eh.apply(null,arguments)},bh=["abort","aborted","connect","error","socket","timeout"],_h=Object.create(null);bh.forEach((function(e){_h[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}}));var Ah=Ih("ERR_INVALID_URL","Invalid URL",TypeError),Sh=Ih("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),kh=Ih("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Ch=Ih("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),xh=Ih("ERR_STREAM_WRITE_AFTER_END","write after end");function wh(e,t){yh.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 Oh(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach((function(n){var i=n+":",o=r[i]=e[n],a=t[n]=Object.create(o);Object.defineProperties(a,{request:{value:function(e,n,o){if(Dh(e)){var a;try{a=Ph(new mh(e))}catch(t){a=dh.parse(e)}if(!Dh(a.protocol))throw new Ah({input:e});e=a}else mh&&e instanceof mh?e=Ph(e):(o=n,n=e,e={protocol:i});return Mh(n)&&(o=n,n=null),(n=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,n)).nativeProtocols=r,Dh(n.host)||Dh(n.hostname)||(n.hostname="::1"),Th.equal(n.protocol,i,"protocol mismatch"),vh("options",n),new wh(n,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,r){var n=a.request(e,t,r);return n.end(),n},configurable:!0,enumerable:!0,writable:!0}})})),t}function Nh(){}function Ph(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 Rh(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return null==r?void 0:String(r).trim()}function Ih(e,t,r){function n(r){Error.captureStackTrace(this,this.constructor),Object.assign(this,r||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name="Error ["+e+"]",n}function Lh(e){for(var t of bh)e.removeListener(t,_h[t]);e.on("error",Nh),e.abort()}function Dh(e){return"string"==typeof e||e instanceof String}function Mh(e){return"function"==typeof e}wh.prototype=Object.create(yh.prototype),wh.prototype.abort=function(){Lh(this._currentRequest),this.emit("abort")},wh.prototype.write=function(e,t,r){if(this._ending)throw new xh;if(!Dh(e)&&!function(e){return"object"==typeof e&&"length"in e}(e))throw new TypeError("data should be a string, Buffer or Uint8Array");Mh(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 Ch),this.abort()):r&&r()},wh.prototype.end=function(e,t,r){if(Mh(e)?(r=e,e=t=null):Mh(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)},wh.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},wh.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},wh.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"),o()}),e),n(t)}function o(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",o),r.removeListener("error",o),r.removeListener("response",o),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",o),this.on("error",o),this.on("response",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){wh.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(wh.prototype,e,{get:function(){return this._currentRequest[e]}})})),wh.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))}},wh.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var i of(n._redirectable=this,bh))n.on(i,_h[i]);if(this._currentUrl=/^\//.test(this._options.path)?dh.format(this._options):this._options.path,this._isRedirect){var o=0,a=this,s=this._requestBodyBuffers;!function e(t){if(n===a._currentRequest)if(t)a.emit("error",t);else if(o<s.length){var r=s[o++];n.finished||n.write(r.data,r.encoding,e)}else a._ended&&n.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+e))},wh.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)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(Lh(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)this.emit("error",new kh);else{var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Rh(/^content-/i,this._options.headers));var a,s=Rh(/^host$/i,this._options.headers),c=dh.parse(this._currentUrl),l=s||c.host,u=/^\w+:/.test(r)?this._currentUrl:dh.format(Object.assign(c,{host:l}));try{a=dh.resolve(u,r)}catch(e){return void this.emit("error",new Sh({cause:e}))}vh("redirecting to",a),this._isRedirect=!0;var h=dh.parse(a);if(Object.assign(this._options,h),(h.protocol!==c.protocol&&"https:"!==h.protocol||h.host!==l&&!function(e,t){Th(Dh(e)&&Dh(t));var r=e.length-t.length-1;return r>0&&"."===e[r]&&e.endsWith(t)}(h.host,l))&&Rh(/^(?:authorization|cookie)$/i,this._options.headers),Mh(i)){var p={headers:e.headers,statusCode:t},f={url:u,method:o,headers:n};try{i(this._options,p,f)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new Sh({cause:e}))}}},fh.exports=Oh({http:gh,https:Eh}),fh.exports.wrap=Oh;var Fh="0.26.1",Hh=Nu,Bh=zu,Uh=Qu,jh=Iu,qh=q.default,zh=z.default,Gh=fh.exports.http,$h=fh.exports.https,Kh=U.default,Vh=$.default,Qh=Fh,Wh=ju,Yh=Hu,Xh=Bu,Jh=th,Zh=/https:?/;function ep(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,ep(e,t,e.href)}}var tp=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 o=function(e){i(),t(e)},a=!1,s=function(e){i(),a=!0,r(e)},c=e.data,l=e.headers,u={};if(Object.keys(l).forEach((function(e){u[e.toLowerCase()]=e})),"user-agent"in u?l[u["user-agent"]]||delete l[u["user-agent"]]:l["User-Agent"]="axios/"+Qh,c&&!Hh.isStream(c)){if(Buffer.isBuffer(c));else if(Hh.isArrayBuffer(c))c=Buffer.from(new Uint8Array(c));else{if(!Hh.isString(c))return s(Wh("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));c=Buffer.from(c,"utf-8")}if(e.maxBodyLength>-1&&c.length>e.maxBodyLength)return s(Wh("Request body larger than maxBodyLength limit",e));u["content-length"]||(l["Content-Length"]=c.length)}var h=void 0;e.auth&&(h=(e.auth.username||"")+":"+(e.auth.password||""));var p=Uh(e.baseURL,e.url),f=Kh.parse(p),d=f.protocol||"http:";if(!h&&f.auth){var m=f.auth.split(":");h=(m[0]||"")+":"+(m[1]||"")}h&&u.authorization&&delete l[u.authorization];var g=Zh.test(d),E=g?e.httpsAgent:e.httpAgent;try{jh(f.path,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){var y=new Error(t.message);y.config=e,y.url=e.url,y.exists=!0,s(y)}var T={path:jh(f.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:l,agent:E,agents:{http:e.httpAgent,https:e.httpsAgent},auth:h};e.socketPath?T.socketPath=e.socketPath:(T.hostname=f.hostname,T.port=f.port);var v,b=e.proxy;if(!b&&!1!==b){var _=d.slice(0,-1)+"_proxy",A=process.env[_]||process.env[_.toUpperCase()];if(A){var S=Kh.parse(A),k=process.env.no_proxy||process.env.NO_PROXY,C=!0;if(k){var x=k.split(",").map((function(e){return e.trim()}));C=!x.some((function(e){return!!e&&("*"===e||("."===e[0]&&f.hostname.substr(f.hostname.length-e.length)===e||f.hostname===e))}))}if(C&&(b={host:S.hostname,port:S.port,protocol:S.protocol},S.auth)){var w=S.auth.split(":");b.auth={username:w[0],password:w[1]}}}}b&&(T.headers.host=f.hostname+(f.port?":"+f.port:""),ep(T,b,d+"//"+f.hostname+(f.port?":"+f.port:"")+T.path));var O=g&&(!b||Zh.test(b.protocol));e.transport?v=e.transport:0===e.maxRedirects?v=O?zh:qh:(e.maxRedirects&&(T.maxRedirects=e.maxRedirects),v=O?$h:Gh),e.maxBodyLength>-1&&(T.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(T.insecureHTTPParser=e.insecureHTTPParser);var N=v.request(T,(function(t){if(!N.aborted){var r=t,n=t.req||N;if(204!==t.statusCode&&"HEAD"!==n.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(Vh.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,Bh(o,s,i);else{var c=[],l=0;r.on("data",(function(t){c.push(t),l+=t.length,e.maxContentLength>-1&&l>e.maxContentLength&&(a=!0,r.destroy(),s(Wh("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,n)))})),r.on("aborted",(function(){a||(r.destroy(),s(Wh("error request aborted",e,"ERR_REQUEST_ABORTED",n)))})),r.on("error",(function(t){N.aborted||s(Yh(t,e,null,n))})),r.on("end",(function(){try{var t=1===c.length?c[0]:Buffer.concat(c);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(t=Hh.stripBOM(t))),i.data=t}catch(t){s(Yh(t,e,t.code,i.request,i))}Bh(o,s,i)}))}}}));if(N.on("error",(function(t){N.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||s(Yh(t,e,null,N))})),N.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){var P=parseInt(e.timeout,10);if(isNaN(P))return void s(Wh("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",N));N.setTimeout(P,(function(){N.abort();var t="";t=e.timeoutErrorMessage?e.timeoutErrorMessage:"timeout of "+e.timeout+"ms exceeded";var r=e.transitional||Xh;s(Wh(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",N))}))}(e.cancelToken||e.signal)&&(n=function(e){N.aborted||(N.abort(),s(!e||e&&e.type?new Jh("canceled"):e))},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n))),Hh.isStream(c)?c.on("error",(function(t){s(Yh(t,e,null,N))})).pipe(N):N.end(c)}))},rp=Nu,np=function(e,t){Fu.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},ip=Hu,op={"Content-Type":"application/x-www-form-urlencoded"};function ap(e,t){!rp.isUndefined(e)&&rp.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var sp,cp={transitional:Bu,adapter:("undefined"!=typeof XMLHttpRequest?sp=ph:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(sp=tp),sp),transformRequest:[function(e,t){return np(t,"Accept"),np(t,"Content-Type"),rp.isFormData(e)||rp.isArrayBuffer(e)||rp.isBuffer(e)||rp.isStream(e)||rp.isFile(e)||rp.isBlob(e)?e:rp.isArrayBufferView(e)?e.buffer:rp.isURLSearchParams(e)?(ap(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):rp.isObject(e)||t&&"application/json"===t["Content-Type"]?(ap(t,"application/json"),function(e,t,r){if(rp.isString(e))try{return(t||JSON.parse)(e),rp.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||cp.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&rp.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw ip(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, */*"}}};rp.forEach(["delete","get","head"],(function(e){cp.headers[e]={}})),rp.forEach(["post","put","patch"],(function(e){cp.headers[e]=rp.merge(op)}));var lp=cp,up=Nu,hp=lp,pp=function(e){return!(!e||!e.__CANCEL__)},fp=Nu,dp=function(e,t,r){var n=this||hp;return up.forEach(r,(function(r){e=r.call(n,e,t)})),e},mp=pp,gp=lp,Ep=th;function yp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ep("canceled")}var Tp=Nu,vp=function(e,t){t=t||{};var r={};function n(e,t){return Tp.isPlainObject(e)&&Tp.isPlainObject(t)?Tp.merge(e,t):Tp.isPlainObject(t)?Tp.merge({},t):Tp.isArray(t)?t.slice():t}function i(r){return Tp.isUndefined(t[r])?Tp.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function o(e){if(!Tp.isUndefined(t[e]))return n(void 0,t[e])}function a(r){return Tp.isUndefined(t[r])?Tp.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:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s};return Tp.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,n=t(e);Tp.isUndefined(n)&&t!==s||(r[e]=n)})),r},bp=Fh,_p={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){_p[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var Ap={};_p.transitional=function(e,t,r){function n(e,t){return"[Axios v"+bp+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,i,o){if(!1===e)throw new Error(n(i," has been removed"+(t?" in "+t:"")));return t&&!Ap[i]&&(Ap[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}};var Sp={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 o=n[i],a=t[o];if(a){var s=e[o],c=void 0===s||a(s,o,e);if(!0!==c)throw new TypeError("option "+o+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+o)}},validators:_p},kp=Nu,Cp=Iu,xp=Mu,wp=function(e){return yp(e),e.headers=e.headers||{},e.data=dp.call(e,e.data,e.headers,e.transformRequest),e.headers=fp.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),fp.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||gp.adapter)(e).then((function(t){return yp(e),t.data=dp.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return mp(t)||(yp(e),t&&t.response&&(t.response.data=dp.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Op=vp,Np=Sp,Pp=Np.validators;function Rp(e){this.defaults=e,this.interceptors={request:new xp,response:new xp}}Rp.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=Op(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&Np.assertOptions(r,{silentJSONParsing:Pp.transitional(Pp.boolean),forcedJSONParsing:Pp.transitional(Pp.boolean),clarifyTimeoutError:Pp.transitional(Pp.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var o,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!i){var s=[wp,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(a),o=Promise.resolve(t);s.length;)o=o.then(s.shift(),s.shift());return o}for(var c=t;n.length;){var l=n.shift(),u=n.shift();try{c=l(c)}catch(e){u(e);break}}try{o=wp(c)}catch(e){return Promise.reject(e)}for(;a.length;)o=o.then(a.shift(),a.shift());return o},Rp.prototype.getUri=function(e){return e=Op(this.defaults,e),Cp(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},kp.forEach(["delete","get","head","options"],(function(e){Rp.prototype[e]=function(t,r){return this.request(Op(r||{},{method:e,url:t,data:(r||{}).data}))}})),kp.forEach(["post","put","patch"],(function(e){Rp.prototype[e]=function(t,r,n){return this.request(Op(n||{},{method:e,url:t,data:r}))}}));var Ip=Rp,Lp=th;function Dp(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 Lp(e),t(r.reason))}))}Dp.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Dp.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},Dp.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},Dp.source=function(){var e;return{token:new Dp((function(t){e=t})),cancel:e}};var Mp=Dp,Fp=Nu,Hp=Nu,Bp=vu,Up=Ip,jp=vp;var qp=function e(t){var r=new Up(t),n=Bp(Up.prototype.request,r);return Hp.extend(n,Up.prototype,r),Hp.extend(n,r),n.create=function(r){return e(jp(t,r))},n}(lp);qp.Axios=Up,qp.Cancel=th,qp.CancelToken=Mp,qp.isCancel=pp,qp.VERSION=Fh,qp.all=function(e){return Promise.all(e)},qp.spread=function(e){return function(t){return e.apply(null,t)}},qp.isAxiosError=function(e){return Fp.isObject(e)&&!0===e.isAxiosError},Tu.exports=qp,Tu.exports.default=qp;var zp=Tu.exports;function Gp(e){return e}function $p(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 Kp(e){if(zp.isCancel(e))return Promise.reject(e);var t=Qp(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||zp,t.backoffType=t.backoffType||"exponential",t.httpMethodsToRetry=$p(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=$p(t.statusCodesToRetry)||[[100,199],[429,429],[500,599]],e.config=e.config||{},e.config.raxConfig=Object.assign({},t),!(t.shouldRetry||Vp)(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 o=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(!(o&&o>0&&o<=t.maxRetryAfter))return n(e);i=o}e.config.raxConfig.currentRetryAttempt+=1;var a=e.config.raxConfig.currentRetryAttempt;0===i&&(i="linear"===t.backoffType?1e3*a:"static"===t.backoffType?t.retryDelay:(Math.pow(2,a)-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 Vp(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 o=i[n],a=e.response.status;if(a>=o[0]&&a<=o[1]){r=!0;break}}if(!r)return!1}return t.currentRetryAttempt=t.currentRetryAttempt||0,!(t.currentRetryAttempt>=t.retry)}function Qp(e){if(e&&e.config)return e.config.raxConfig}var Wp=Object.freeze({__proto__:null,attach:function(e){return(e=e||zp).interceptors.response.use(Gp,Kp)},detach:function(e,t){(t=t||zp).interceptors.response.eject(e)},shouldRetryRequest:Vp,getConfig:Qp}),Yp=he(Wp);!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=H.default,r=yr,n=Ir.exports,i=jr.exports,o=zn,a=Ai,s=Sa,c=pc,l=Ec,u=yc,h=Uc,p=jc,f=qc,d=Gc,m=$c,g=j.default,E=Kc,y=Vc,T=Qc,v=Wc,b=Yc,_=Xc,A=Jc,S=el,k=nl,C=il,x=cl,w=xl,O=mu,N=Eu,P=yu,R=M.default,I=zp,L=Yp,D=Mr.exports;function F(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var B=F(r),U=F(n),q=F(i),z=F(s),G=F(c),$=F(l),K=F(g),V=F(w),Q=F(O),W=F(R),Y=F(I),X=F(L),J=F(D);class Z{constructor(e,t,r,n,i){this.id=void 0,this.sha=void 0,this.metadata=void 0,this.summary=void 0,this._config=void 0,this.id=e,this.summary=r,this.config=t,this.metadata=n,this.sha=i}getMetadata(e,r){return this.metadata?t.get(this.metadata,e,r):r}setMetadata(e,r){this.metadata||(this.metadata={}),t.set(this.metadata,e,r)}get config(){return this._config}set config(e){e.setKey(`${this.id}:config`),this._config=e}}function ee(e,t){return U.default.encrypt(e,t).toString()}function te(e,t){try{return U.default.decrypt(e,t).toString(q.default)}catch{return""}}Z.style=".topwrite/style.css",Z.logo="logo.png",Z.readme="README.md";var re=Object.freeze({__proto__:null,encrypt:ee,decrypt:te});function ne(e){return"string"==typeof e&&e.startsWith("@encrypted:")}class ie{constructor(e,r,n,i){this.key=void 0,this.values=void 0,this.presetValues=void 0,this.schema=void 0,this.values=t.merge(e,i),this.presetValues=i,this.schema=r,this.key=n}setKey(e){this.key=e;const r=new B.default({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:["color"]});r.addKeyword("encrypt",{validate:(r,n,i,o,a,s)=>(r&&ne(n)&&a&&s&&t.set(a,s,te(n.substring(11),e)),!0),modifying:!0,errors:!1}),r.compile(this.schema)(this.values)}getValues(){return this.values}setValues(e){const r=new B.default({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:"ignore"}).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}getPresetValues(){return this.presetValues}getValue(e,r){return t.get(this.values,e,r)}setValue(e,r){return t.set(this.values,e,r)}toObject(){let e=t.cloneDeep(this.values);this.presetValues&&(e=t.omit(e,t.keys(this.presetValues)));const r=new B.default({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:["color"]});return r.removeKeyword("default"),r.addKeyword("default",{validate:(e,r,n,i,o,a,s)=>(t.isEqual(e,r)&&(delete o[a],t.isEmpty(o)&&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.substring(1)))),!0),modifying:!0,errors:!1}),r.addKeyword("encrypt",{validate:(e,r,n,i,o,a)=>(this.key&&e&&!ne(r)&&o&&a&&t.set(o,a,`@encrypted:${ee(r,this.key)}`),!0),modifying:!0,errors:!1}),r.compile(this.schema)(e),e}toText(){const e=this.toObject();let r="";return t.isEmpty(e)||(r=JSON.stringify(e,null,4)),r}static createFromObject(e,r,n,i){const o=new B.default({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:["color"]});n&&o.addKeyword("encrypt",{validate:(e,r,i,o,a,s)=>(e&&ne(r)&&a&&s&&t.set(a,s,te(r.substring(11),n)),!0),modifying:!0,errors:!1});const a=o.compile(r);if(!a(e))for(const r of a.errors)e=t.omit(e,r.dataPath.substring(1).split("/"));return new this(e,r,n,i)}}class oe extends ie{constructor(){super(...arguments),this.pluginsConfig={},this.presetPlugins={}}setPresetPlugins(e){this.presetPlugins=e}getPresetPluginConfig(e){return this.presetPlugins[e]}getPlugins(){return Array.from(new Set([...this.getValue("plugins"),...Object.keys(this.presetPlugins)]))}getPluginConfig(e,r){if(!this.pluginsConfig[e]){const n=this.getValue(["pluginsConfig",e],{});this.pluginsConfig[e]=ie.createFromObject(t.cloneDeep(n),r,`${this.key}:${e}`,this.presetPlugins[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,oe.schema)}}oe.file="book.json",oe.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",default:"light"},primaryColor:{type:"string",title:"Primary Color",format:"color",default:"#3c60ff"},expandLevel:{type:"integer",title:"Expand level",default:0},navs:{type:"array",title:"Nav configures",items:{type:"object",properties:{title:{title:"Label",type:"string"},url:{title:"Link",type:"string"}},required:["title","url"],additionalProperties:!1},default:[]}},default:{}},plugins:{type:"array",items:{type:"string"},default:[]},pluginsConfig:{type:"object",title:"Configuration for plugins",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:{}},release:{type:"object",title:"Release specific configurations",properties:{pathEncode:{type:"boolean",title:"Whether to encode the chapter path",default:!0}},default:{}},assistant:{type:"object",title:"AI Assistant configurations",properties:{token:{type:"string",title:"ThinkAI Token",encrypt:!0}},default:{}}},required:[]};const ae={tokenize:function(e,t,r){function n(t){return t===d.codes.rightParenthesis?h(t):T.factoryDestination(e,i,r,f.types.resourceDestination,f.types.resourceDestinationLiteral,f.types.resourceDestinationLiteralMarker,f.types.resourceDestinationRaw,f.types.resourceDestinationString,m.constants.linkResourceDestinationBalanceMax)(t)}function i(t){return v.markdownLineEndingOrSpace(t)?y.factoryWhitespace(e,o)(t):h(t)}function o(t){return t===d.codes.quotationMark||t===d.codes.apostrophe||t===d.codes.leftParenthesis?_.factoryTitle(e,y.factoryWhitespace(e,a),r,f.types.resourceTitle,f.types.resourceTitleMarker,f.types.resourceTitleString)(t):a(t)}function a(t){return t===d.codes.equalsTo?(e.enter("resourceSize"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),s):h(t)}function s(t){return t===d.codes.lowercaseX?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),l):t===d.codes.rightParenthesis||v.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),y.factoryWhitespace(e,h)(t)):(e.enter("resourceSizeWidth"),e.enter(f.types.chunkString,{contentType:"string"}),c(t))}function c(t){return t===d.codes.rightParenthesis||v.markdownLineEndingOrSpace(t)?(e.exit(f.types.chunkString),e.exit("resourceSizeWidth"),e.exit("resourceSize"),y.factoryWhitespace(e,h)(t)):t===d.codes.lowercaseX?(e.exit(f.types.chunkString),e.exit("resourceSizeWidth"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),l):(e.consume(t),c)}function l(t){return t===d.codes.rightParenthesis||v.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),y.factoryWhitespace(e,h)(t)):(e.enter("resourceSizeHeight"),e.enter(f.types.chunkString,{contentType:"string"}),u(t))}function u(t){return t===d.codes.rightParenthesis||v.markdownLineEndingOrSpace(t)?(e.exit(f.types.chunkString),e.exit("resourceSizeHeight"),e.exit("resourceSize"),y.factoryWhitespace(e,h)(t)):(e.consume(t),u)}function h(n){return n===d.codes.rightParenthesis?(e.enter(f.types.resourceMarker),e.consume(n),e.exit(f.types.resourceMarker),e.exit(f.types.resource),t):r(n)}return function(t){return e.enter(f.types.resource),e.enter(f.types.resourceMarker),e.consume(t),e.exit(f.types.resourceMarker),y.factoryWhitespace(e,n)}}},se={tokenize:function(e,t,r){const n=this;function i(e){return n.parser.defined.includes(E.normalizeIdentifier(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}return function(t){return K.default.strictEqual(t,d.codes.leftSquareBracket,"expected left bracket"),b.factoryLabel.call(n,e,i,r,f.types.reference,f.types.referenceMarker,f.types.referenceString)(t)}}},ce={tokenize:function(e,t,r){function n(n){return 93===n?(e.enter(f.types.referenceMarker),e.consume(n),e.exit(f.types.referenceMarker),e.exit(f.types.reference),t):r(n)}return function(t){return e.enter(f.types.reference),e.enter(f.types.referenceMarker),e.consume(t),e.exit(f.types.referenceMarker),n}}};var le={name:"labelEnd",tokenize:function(e,t,r){const n=this;let i,o,a=n.events.length;for(;a--;)if((n.events[a][1].type===f.types.labelImage||n.events[a][1].type===f.types.labelLink)&&!n.events[a][1]._balanced){i=n.events[a][1];break}function s(e){return i._balanced=!0,r(e)}function c(r){return r===d.codes.leftParenthesis?e.attempt(ae,t,o?t:s)(r):r===d.codes.leftSquareBracket?e.attempt(se,t,o?e.attempt(ce,t,s):s)(r):o?t(r):s(r)}return function(t){return K.default(t===d.codes.rightSquareBracket,"expected `]`"),i?i._inactive?s(t):(o=n.parser.defined.indexOf(E.normalizeIdentifier(n.sliceSerialize({start:i.end,end:n.now()})))>-1,e.enter(f.types.labelEnd),e.enter(f.types.labelMarker),e.consume(t),e.exit(f.types.labelMarker),e.exit(f.types.labelEnd),c):r(t)}},resolveTo:p.labelEnd.resolveTo,resolveAll:p.labelEnd.resolveAll};const ue=(e,t,r,n)=>{const i=h.image(e,t,r,n);return e.width||e.height?i.replace(/\)$/,` =${e.width||""}${e.height?`x${e.height}`:""})`):i};ue.peek=h.image.peek;const he=e=>{let t;switch(e){case"right":t="--: ";break;case"center":t=":-: ";break;default:t=""}return t},pe={tokenize:function(e,t,r){function n(t){return t===d.codes.rightSquareBracket?r(t):(e.enter("blockQuoteType"),e.enter(f.types.chunkString,{contentType:"string"}),i(t))}function i(t){return t===d.codes.rightSquareBracket?(e.exit(f.types.chunkString),e.exit("blockQuoteType"),e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),o):v.markdownLineEndingOrSpace(t)||!v.asciiAlpha(t)?r(t):(e.consume(t),i)}function o(e){return e===d.codes.leftParenthesis?r(e):t(e)}return function(t){return e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),n}},partial:!0},fe={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(t===d.codes.greaterThan){const r=n.containerState;return K.default(r,"expected `containerState` to be defined in container"),r.open||(e.enter(f.types.blockQuote,{_container:!0}),r.open=!0),e.enter(f.types.blockQuotePrefix),e.enter(f.types.blockQuoteMarker),e.consume(t),e.exit(f.types.blockQuoteMarker),C.factorySpace(e,i,f.types.whitespace)}return r(t)};function i(t){return t===d.codes.leftSquareBracket?e.attempt(pe,o,o)(t):o(t)}function o(r){return v.markdownSpace(r)?(e.enter(f.types.blockQuotePrefixWhitespace),e.consume(r),e.exit(f.types.blockQuotePrefixWhitespace),e.exit(f.types.blockQuotePrefix),t):(e.exit(f.types.blockQuotePrefix),t(r))}},continuation:{tokenize:function(e,t,r){return C.factorySpace(e,e.attempt(fe,t,r),f.types.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:m.constants.tabSize)}},exit:p.blockQuote.exit},de="blankLine",me="blankLineSequence",ge={name:"blankLine",tokenize:(e,t,r)=>{let n;const i=t=>t===n?(e.consume(t),i):(e.exit(me),o(t)),o=a=>a===n?(e.enter(me),i(a)):v.markdownSpace(a)?C.factorySpace(e,o,f.types.whitespace)(a):a===d.codes.eof||v.markdownLineEnding(a)?(e.exit(de),t(a)):r(a);return t=>(K.default(t===d.codes.caret,"expected `^`"),e.enter(de),n=t,o(t))}},Ee=function(e,t){void 0===t&&(t="text");let r="";return A.visit(e,t,(function(e){r+=e.value})),r},ye=/^\[toc(?:=(\d)(?:,(\d))?)?]$/im,Te=a.unified().use(z.default).use((function(){const e=this.data();e.micromarkExtensions=[],e.fromMarkdownExtensions=[],e.toMarkdownExtensions=[],e.toHastExtensions=[]})).use(Q.default).use(V.default,["yaml"]).use(G.default).use($.default).use(N.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){A.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]:le}}),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:ue}}),e.toHastExtensions.push({image:(e,t)=>{const r={src:u.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,n)=>{const i=S.paragraph(e,t,r,n);return he(e.align)+i},heading:(e,t,r,n)=>k.heading(e,t,r,n).replace(/^#+\s/,`$&${he(e.align)}`)}}),function(e){A.visit(e,((e,t,r)=>{if((e=>"paragraph"===e.type||"heading"===e.type)(e)){const t=o.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,n)=>{const i=x.blockquote(e,t,r,n);return e.variant?i.replace(/(^|\s+)>\s/,`$1> [${e.variant}] `):i}}}),e.micromarkExtensions.push({document:{[d.codes.greaterThan]:fe}}),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){A.visit(e,"blockquote",(e=>{e.variant&&(e.data={...e.data,hProperties:{className:e.variant}})}))}})).use((function(){const e=this.data();e.toHastExtensions.push({blankLine:e=>e({},"p",[e({},"br")])}),e.micromarkExtensions.push({flow:{[d.codes.caret]:ge}}),e.toMarkdownExtensions.push({handlers:{blankLine:()=>"^"}}),e.fromMarkdownExtensions.push({enter:{blankLine:function(e){this.enter({type:"blankLine"},e)}},exit:{blankLine:function(e){this.exit(e)}}})})).use((function(){return function(e){A.visit(e,((e,t,r)=>{if(r&&"root"===r.type&&null!==t&&Ee(e).match(ye))return r.children.splice(t,1),[A.SKIP,t]}))}}));function ve(e){const t=[];for(const r of e.children){const e=r.children,n=o.select("paragraph:first-child>*",r);if(!n)continue;const i=Ee(n);if(!i)continue;let a="";n.url&&(a=decodeURI(n.url),a.match(/[\\:*?"<>|]/)&&(a=""));let s={title:i,ref:a};if(e.length>1){const t=e[e.length-1];P.is(t,"list")&&(s.children=ve(t))}t.push(s)}return t}const be=Te();class _e{constructor(e){void 0===e&&(e=[]),this.data=void 0,this.data="string"==typeof e?e.split(".").map((e=>parseInt(e,10))):e}getRoot(){return new _e(this.data.slice(0,1))}getParent(){return new _e(this.data.slice(0,-1))}createChild(e){return new _e(this.data.concat(e))}isDescendant(e){return e.toString().startsWith(`${this.toString()}.`)}getNext(){const e=[...this.data];return e[e.length-1]++,new _e(e)}getDepth(){return this.data.length-1}eq(e){return this.toString()===e.toString()}getLeafIndex(){return this.data[this.data.length-1]-1}toString(e){return e?this.data.slice(e.data.length).join("."):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 Ae{constructor(e){let{title:t,ref:r="",path:n,children:i=[],metadata:o}=e;this.level=void 0,this.title=void 0,this.ref=void 0,this.path=void 0,this.children=void 0,this.metadata=void 0,this.hasPath=!1,this.title=t,this.ref=r,n?(this.hasPath=!0,this.path=n):this.path=r?R.posix.format({...R.posix.parse(r),ext:".html",base:""}):"",this.children=i,this.level=new _e,this.metadata=o}getMetadata(e,r){return this.metadata?t.get(this.metadata,e,r):r}setMetadata(e,r){this.metadata||(this.metadata={}),t.set(this.metadata,e,r)}getLevel(){return this.level}getTitle(){return this.title}getRef(){return this.ref}getPath(){return this.path}getArticles(){return this.children}getDescendants(){const e=[];return Ae.findArticle(this,(t=>(e.push(t),!1))),e}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))}toObject(){const e=this.children.map((function(e){return e.toObject()}));return{title:this.title,ref:this.ref,path:this.hasPath?this.path:void 0,metadata:this.metadata,children:t.isEmpty(e)?void 0:e}}static findArticle(e,t){return e.getArticles().reduce(((e,r)=>e||(t(r)?r:Ae.findArticle(r,t))),void 0)}static createFromObject(e){const t=e.children?.filter((e=>!!e.title)).map((e=>Ae.createFromObject(e)));return new Ae({...e,children:t})}}class Se{constructor(e,t,r){void 0===t&&(t=[]),this.level=void 0,this.title=void 0,this.articles=void 0,this.metadata=void 0,this.level=new _e,this.title=e,this.articles=t,this.metadata=r}getMetadata(e,r){return this.metadata?t.get(this.metadata,e,r):r}getLevel(){return this.level}getTitle(){return this.title}getArticles(){return this.articles}getFirstArticle(){return Ae.findArticle(this,(()=>!0))}getDescendants(){const e=[];return Ae.findArticle(this,(t=>(e.push(t),!1))),e}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))}toText(){let e="";return Ae.findArticle(this,(r=>{const n=r.ref?`[${r.title}](${r.ref.replace(/\s/g,"%20")})`:r.title;return e+=`${t.repeat(" ",r.getDepth()-1)}* ${n}\n`,!1})),e}toObject(){const e=this.articles.map((function(e){return e.toObject()}));return{title:this.title,metadata:this.metadata,articles:t.isEmpty(e)?void 0:e}}static createFromObject(e){const t=e.articles?.filter((e=>!!e.title)).map((e=>Ae.createFromObject(e)));return new Se(e.title,t,e.metadata)}}class ke{constructor(e,t){void 0===e&&(e=[]),void 0===t&&(t=!1),this.parts=void 0,this.json=void 0,this.parts=e,this.json=t,this.indexLevels()}insertPart(e,t){if(e instanceof Se||(e=Se.createFromObject(e)),this.isEmpty())this.parts=[e];else{const r=t?t.getLeafIndex():this.parts.length;this.parts.splice(r,0,e)}this.indexLevels()}updatePart(e,r){const n=this.getByLevel(e);n instanceof Se&&(t.isFunction(r)?r(n):(n.title=r.title,n.metadata=r.metadata))}removePart(e){const t=e.getLeafIndex();this.parts.splice(t,1),0===this.parts.length&&(this.parts=[new Se("")]),this.indexLevels()}insertArticle(e,t){e instanceof Ae||(e=Ae.createFromObject(e));const r=this.getParent(t);if(!r)return;const n=r.getArticles(),i=t.getLeafIndex();n.splice(i,0,e),r.indexLevels()}updateArticle(e,r){const n=this.getByLevel(e);n instanceof Ae&&(t.isFunction(r)?r(n):(n.title=r.title,n.ref=r.ref,n.metadata=r.metadata))}removeArticle(e){const t=this.getParent(e);if(!t)return;const r=t.getArticles(),n=e.getLeafIndex();r.splice(n,1),t.indexLevels()}toText(){let e="";if(1!==this.parts.length||this.parts[0].title)for(let t of this.parts)e+=`## ${t.title}`,e+="\n",e+=t.toText(),e+="\n";else e+=this.parts[0].toText();return e}hasMetadata(){let e=!1;return this.getArticle((r=>!!e||!t.isEmpty(r.metadata)&&(e=!0,!0)),(r=>(t.isEmpty(r.metadata)||(e=!0),!0))),e}isJson(){return this.json}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,t){return this.parts.reduce(((r,n)=>r||(!t||t(n)?Ae.findArticle(n,e):void 0)),void 0)}getArticlePart(e){const t=e.getLevel().getRoot();return this.getByLevel(t)}getFirstPath(){const e=this.getArticle((e=>!!e.getPath()));if(e)return e.getPath()}getByLevel(e){const t=t=>t.getLevel().eq(e);return this.parts.reduce(((e,r)=>e||(t(r)?r:Ae.findArticle(r,t))),void 0)}getFirstArticle(){return this.getArticle((()=>!0))}getNextArticle(e){const t=e instanceof Ae?e.getLevel():e;let r=!1;return this.getArticle((e=>!!r||(r=e.getLevel()==t,!1)))}getPrevArticle(e){const t=e instanceof Ae?e.getLevel():e;let r;return this.getArticle((e=>e.getLevel()==t||(r=e,!1))),r}getParent(e){const t=(e instanceof Ae?e.getLevel():e).getParent();if(t)return this.getByLevel(t)}indexLevels(){for(const[e,t]of this.parts.entries()){const r=new _e(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}toObject(){return this.parts.map((function(e){return e.toObject()}))}static createFromObject(e){return new ke(e.map((e=>Se.createFromObject(e))),!0)}static createFromText(e){const t=function(e){const t=be.parse(e),r=[];let n;for(const e of t.children)if(P.is(e,"heading")&&[2,3].includes(e.depth)&&(n&&r.push(n),n={title:Ee(e).trim()}),P.is(e,"list")){const t=ve(e);n?n.articles=(n.articles||[]).concat(t):n={title:"",articles:t}}return n?r.push(n):r.push({title:""}),r}(e);return new ke(t.map((e=>Se.createFromObject(e))))}static create(e){return"object"==typeof e?ke.createFromObject(e):ke.createFromText(e)}}ke.file={json:"SUMMARY.json",markdown:"SUMMARY.md"};class Ce{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 Y.default.get(`${this.host}/api/bought?book=${e.id}&plugin=${t.name}`),!0}catch{return!1}}async trial(e,t){try{const{data:r}=await Y.default.get(`${this.host}/api/trial?book=${e.id}&plugin=${t.name}`);return r}catch{return!1}}async queryPlugins(e){let{page:t=1,...r}=e;const{data:n}=await Y.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")];this.preset&&(r.push(...Object.keys(this.preset)),t.setPresetPlugins(this.preset));const{data:n}=await Y.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.flatMap((e=>!e.builtin||this.preset?.[e.name]?(e.preset=!!this.preset?.[e.name],[e]):[]))}}e.pluginCenter=void 0;class xe{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.size/10;if(e.beginPath(),e.arc(this.size-t,this.size-t,t,0,Math.PI/2),e.lineTo(t,this.size),e.arc(t,this.size-t,t,Math.PI/2,Math.PI),e.lineTo(0,t),e.arc(t,t,t,Math.PI,3*Math.PI/2),e.lineTo(this.size-t,0),e.arc(this.size-t,t,t,3*Math.PI/2,2*Math.PI),e.lineTo(this.size,this.size-t),e.closePath(),this.letter.length>0){const t=this.letter[0].toUpperCase();e.fillStyle=this.flatColors[t.charCodeAt(0)%this.flatColors.length],e.fill(),e.restore(),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)}else e.fillStyle=this.flatColors[0],e.fill()}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 xe(e,t,r)}}const we=/^(?:\w+:)?\/\/(\S+)$/,Oe=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Ne=/^[^\s\.]+\.\S{2,}$/;X.default.attach(),Y.default.defaults.raxConfig={retryDelay:2e3,backoffType:"static",shouldRetry:e=>{let{config:t,response:r}=e;const n=t.raxConfig||{};return!(n?.retryDecider&&!n.retryDecider()||!t.method||!n.httpMethodsToRetry?.includes(t.method.toUpperCase())||449!==r?.status)}},Y.default.defaults.maxContentLength=1/0,Y.default.defaults.maxBodyLength=1/0,Y.default.interceptors.request.use((e=>{if(e.onMessage){let t=0,r="",n=null;const i=e.onMessage;e.onDownloadProgress=e=>{const o=e.target,{responseText:a}=o;for(;t<e.loaded;){const e=a.substring(t,++t);if(r+=e,"\n"===e){if(n||(n={id:"",event:"",data:""}),"\n"===r)i(n),n=null;else{const e=r.match(/^data:(?<data>.*)/);e&&(n.data=e.groups.data.trim())}r=""}}}}return e})),Y.default.interceptors.response.use((e=>e),(e=>{if(Y.default.isAxiosError(e)&&e.response){const{data:t,status:r}=e.response;401===r?e.errors="Unauthorized":function(e){return e&&"object"==typeof e}(t)&&422!==r?"message"in t&&(e.errors=t.message):e.errors=t,"string"!=typeof e.errors?e.message=Object.values(e.errors).join("\n"):e.message=e.errors}return Promise.reject(e)}));const Pe=Y.default.isAxiosError,Re=Y.default.isCancel;Object.defineProperty(e,"request",{enumerable:!0,get:function(){return Y.default}}),e.BaseConfig=ie,e.Book=Z,e.Config=oe,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=W.default.posix.relative(W.default.posix.dirname(this.path),e)||".")+(t?"/":"")}resolve(e){return W.default.isAbsolute(e)?e.slice(1):W.default.posix.join(W.default.posix.dirname(this.path),e)}},e.LetterAvatar=xe,e.Level=_e,e.Summary=ke,e.SummaryArticle=Ae,e.SummaryPart=Se,e.aes=re,e.createPluginCenter=function(t){return e.pluginCenter=new Ce(t)},e.isCancel=Re,e.isEncryptedData=ne,e.isRequestError=Pe,e.isUrl=function(e){const t=e.match(we);if(!t)return!1;const r=t[1];return!!r&&(Oe.test(r)||Ne.test(r))},e.markdown=Te,e.md5=function(e){return J.default(e).toString()}}(pe);class Xp{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 Jp(e,t){le.info(`installing plugin "${e.name}"`);const r=`npm install ${e.host}.tgz`,{error:n}=K.default.sync(r,{stdio:["inherit"],cwd:t,shell:!0});if(n)throw n;const i=M.default.join(t,"node_modules","topwrite-plugin-"+e.name),o=M.default.join(i,"dist","hooks.js");let a={};if(V.existsSync(o)){a=new d.NodeVM({require:{builtin:["path/posix","crypto"]},sandbox:{URL:URL,URLSearchParams:URLSearchParams}}).runFile(o)}const s=M.default.join(i,"config.json");let c={};return V.existsSync(s)&&(c=require(s)),le.info(`plugin "${e.name}@${e.version}" installed with success`),new Xp({name:e.name,version:e.version,path:i,hooks:a,config:c})}const Zp=/(^-{3}(?:\r\n|\r|\n)([\w\W]*?)-{3}(?:\r\n|\r|\n))?([\w\W]*)*/;class ef{book;sourceFS;tmpFS;dest;version;options;plugins=[];constructor(e,t,r,n,i,o){this.book=e,this.sourceFS=t,this.tmpFS=r,this.options=n,this.dest=i,this.version=o}getContext(){return{book:this.book,sourceFS:this.sourceFS,tmpFS:this.tmpFS,request:pe.request,logger:le,format:this.format}}async generate(){await this.initLfs(),await this.initPlugins(),await this.onInit(),await this.callHook("init"),await this.checkStyle(),await this.generateLogo(),await this.onReadme(),await this.callHook("readme"),await this.generateArticles(),await this.callHook("articles"),await this.onSummary(),await this.callHook("summary"),await this.callHook("beforeFinish")&&(await this.onFinish(),await this.callHook("finish")),le.success("generation finished with success!")}async checkStyle(){this.tmpFS.exist(pe.Book.style)||await this.tmpFS.writeFile(pe.Book.style,"")}async initLfs(){if(this.options.lfs){le.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}=K.default.sync(e,{stdio:["inherit"],encoding:"utf8",cwd:this.sourceFS.root,shell:!0}),o={};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=M.default.relative(r,e)),o[e]=t.trim(),this.tmpFS.unlink(e)}}})),this.options.lfs.files=o,le.info(`found ${Object.keys(o).length} files`)}}async initPlugins(){this.plugins=await async function(e,t,r){const n=pe.createPluginCenter(r),i=await n.getInstalled(e),o=[],a=e.config.getValue("theme");le.info(`installing ${i.length} plugins from registry`);for(let e of i){if(e.disabled)throw new Error('plugin "'+e.name+'" has been disabled');"theme"===e.type||"ebook"!==a||e.ebook?o.push(await Jp(e,t)):le.info(`plugin "${e.name}" ignored in ebook`)}return o}(this.book,this.tmpFS.root,this.options.plugins)}async generateLogo(){if(!this.tmpFS.exist(pe.Book.logo)){const e=this.book.config.getValue("title","Untitled"),t=g.createCanvas(60,60);pe.LetterAvatar.create(e,60,t);const r=t.toBuffer("image/png");await this.tmpFS.writeFile(pe.Book.logo,r)}}async generateArticle(e){if(e.ref){le.info('generate article "'+e.getRef()+'"');try{await this.onArticle(e),await this.callHook("article",e)}catch(t){"ENOENT"===t.code?le.warn(`article file [${e.ref}] not exist`):le.warn(`generate article [${e.ref}] failed: ${t.message}`)}}}async generateArticles(){le.info("generate articles ...");const e=this.book.summary.getArticles();le.info(`found ${e.length} articles`);for(const t of e)await this.generateArticle(t)}async callHook(e,...t){return le.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){const t=await this.tmpFS.readAsString(e.ref),r=this.parseFileMeta(e.ref,t);return new pe.File({path:e.path,...r})}parseFileMeta(e,t){const r=t.match(Zp);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=M.default.join(this.book.config.getValue("root",""),e),[o,a]=this.sourceFS.readFileTime(i);return n.ctime=o,n.mtime=a,{meta:n,content:t}}}class tf extends ef{format="json";scripts=[];async onInit(){this.processSummary(),await this.installCommonAssets(),await this.installReader(),await this.copyPluginsAssets()}processSummary(){this.book.summary.getArticle((e=>(this.book.config.getValue(["release","pathEncode"],!0)&&(e.path=y.pinyin(e.path,{toneType:"none",nonZh:"consecutive",type:"array",v:!0}).join("")),e.hasPath=!0,!1)))}async installCommonAssets(){le.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"),le.info("common assets installed with success")}async installReader(){le.info("installing package @topwrite/reader ...");const e=await this.installPackage("@topwrite/reader","dist/","reader");le.info(`package @topwrite/reader@${e.version} installed with success`)}async installPackage(e,t,r){const n=require.resolve(`${e}/package.json`),i=require(n);if(this.useCdn())t.endsWith("/")&&(t=`${t}index.js`),this.scripts.push(`https://jsdelivr.topthink.com/npm/${e}@${i.version}/${t}`);else{const e=M.default.join(M.default.dirname(n),t),o=M.default.join(this.tmpFS.root,"asset",r);await Y.default.copy(e,o),t.endsWith("/")&&(r=`${r}/index.js`),this.scripts.push(`asset/${r}?v=${i.version}`)}return i}async copyPluginsAssets(){for(const e of this.plugins)if(this.useCdn()){const t=this.options.plugins.host;this.scripts.push(`${t}/plugins/${e.name}/${e.version}/dist/index.js`)}else await Y.default.copy(M.default.join(e.path,"dist"),M.default.join(this.tmpFS.root,"asset","plugins",e.name)),this.scripts.push(`asset/plugins/${e.name}/index.js?v=${e.version}`)}useCdn(){return"cdn"===this.options.asset}async onReadme(){const e=await this.makeFile({path:"index.html",ref:"README.md"});await this.tmpFS.unlink("README.md"),await this.tmpFS.writeFile("index.html.json",this.stringify(e))}async onArticle(e){const t=e.path+".json";if(!this.tmpFS.exist(t)){const r=await this.makeFile(e);e.metadata={...r.meta,...e.metadata},await this.tmpFS.unlink(e.ref),await this.tmpFS.writeFile(t,this.stringify(r))}}async onSummary(){const e=this.book.summary;await this.tmpFS.unlink(pe.Summary.file.json),await this.tmpFS.unlink(pe.Summary.file.markdown),await this.tmpFS.writeFile(pe.Summary.file.json,this.stringify(e.toObject()));const[t,r]=this.sourceFS.readFileTime(),n={id:this.book.id,sha:this.book.sha,lfs:this.options.lfs,scripts:this.scripts,poweredBy:this.options.poweredBy,ctime:t,mtime:r};await this.tmpFS.writeFile("context.json",this.stringify(n))}async onFinish(){await this.packBook()}async packBook(){le.info("pack book ...");const e=Y.default.createWriteStream(this.dest);await this.tmpFS.archive(e,"tar")}stringify(e){return JSON.stringify(e,null,4)}}class rf{root;constructor(e){this.root=e}readFileTime(e=""){const t=`git log --pretty=format:%cI -- ${e}`,{error:r,stdout:n}=K.default.sync(t,{stdio:["inherit"],encoding:"utf8",cwd:this.root,shell:!0});if(r||!n)return[void 0,void 0];const i=n.split("\n");return[i[i.length-1],i[0]]}createReadStream(e,t){return Y.default.createReadStream(this.resolve(e),t)}async readFile(e){return await Y.default.readFile(this.resolve(e))}async readAsObject(e,t={}){try{return await Y.default.readJSON(this.resolve(e))}catch{return t}}async readAsString(e){try{return await Y.default.readFile(this.resolve(e),"utf-8")}catch{return""}}async writeFile(e,t){return e=this.resolve(e),Y.default.ensureDirSync(M.default.dirname(e)),Y.default.writeFile(e,t)}createWriteStream(e,t){return e=this.resolve(e),Y.default.ensureDirSync(M.default.dirname(e)),Y.default.createWriteStream(e,t)}async appendFile(e,t){return Y.default.appendFile(this.resolve(e),t)}exist(e){return Y.default.pathExistsSync(this.resolve(e))}async unlink(e){try{await Y.default.unlink(this.resolve(e))}catch{}}async readDir(e=""){const t=[];return new Promise((r=>{X.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 M.default.join(this.root,...e)}async archive(e,t="tar"){if("tar"==t)return new Promise(((t,r)=>{b.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 o=J.default(t,{gzip:!0,gzipOptions:{level:9},zlib:{level:9}});o.pipe(e);for(const e of r)"File"===e.type&&o.append(this.createReadStream(e.path),{name:e.path});o.finalize()}))}}}class nf extends tf{template;format="html";async onInit(){await super.onInit(),await this.initTemplate()}async initTemplate(){const e=await Y.default.readFile(M.default.resolve(__dirname,"../templates/html.ejs"),"utf-8");this.template=Z.default.compile(e)}useCdn(){return!1}async onReadme(){const e=await this.makeFile({path:"index.html",ref:"README.md"}),t=await this.renderFile(e);await this.tmpFS.unlink("README.md"),await this.tmpFS.writeFile("index.html",t)}async onArticle(e){if(!this.tmpFS.exist(e.path)){const t=await this.makeFile(e);e.metadata={...t.meta,...e.metadata};const r=await this.renderFile(t,e.title);await this.tmpFS.unlink(e.ref),await this.tmpFS.writeFile(e.path,r)}}async onSummary(){await this.tmpFS.unlink(pe.Summary.file.json),await this.tmpFS.unlink(pe.Summary.file.markdown)}async renderFile(e,t){const r={id:this.book.id,sha:this.book.sha,metadata:this.book.metadata,summary:this.book.summary.toObject(),config:this.book.config.toObject(),file:e,lfs:this.options.lfs,options:{poweredBy:this.options.poweredBy}},n=this.scripts.map((t=>pe.isUrl(t)?t:e.relative(t))),i=this.book.config.getValue("title","Untitled"),o=e.getMeta("title",t);return this.template({title:(o?`${o} - `:"")+i,keywords:e.getMeta("keywords"),description:e.getMeta("description"),scripts:n,payload:JSON.stringify(r).replace(/\//g,"\\/")})}}const of=(e,t)=>e.some((e=>e instanceof RegExp?e.test(t):e===t));function af(e,t){const{tryEvery:r,stopAfter:n}=t,i=Date.now(),o=(t,a)=>{setTimeout((async()=>{try{const r=await e();t(r)}catch(e){Date.now()-i>n?a(e):o(t,a)}}),r)};return new Promise(o)}class sf extends ee.default.ResourceLoader{async fetch(e,t){const{element:r}=t;return r&&"IMG"===r.nodeName?null:super.fetch(e,t)}}const cf=/\s+at.*[(\s](.*)\)?/,lf=/^(?:(?:(?:node|node:[\w/]+|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/,uf=void 0===re.default.homedir?"":re.default.homedir().replace(/\\/g,"/");class hf extends Error{#e;name="AggregateError";constructor(e){if(!Array.isArray(e))throw new TypeError("Expected input to be an Array, got "+typeof e);let t=(e=e.map((e=>e instanceof Error?e:null!==e&&"object"==typeof e?Object.assign(new Error(e.message),e):new Error(e)))).map((e=>{return"string"==typeof e.stack&&e.stack.length>0?(t=function(e,{pretty:t=!1,basePath:r}={}){const n=r&&new RegExp(`(at | \\()${ns(r.replace(/\\/g,"/"))}`,"g");if("string"==typeof e)return e.replace(/\\/g,"/").split("\n").filter((e=>{const t=e.match(cf);if(null===t||!t[1])return!0;const r=t[1];return!(r.includes(".app/Contents/Resources/electron.asar")||r.includes(".app/Contents/Resources/default_app.asar")||r.includes("node_modules/electron/dist/resources/electron.asar")||r.includes("node_modules/electron/dist/resources/default_app.asar")||lf.test(r))})).filter((e=>""!==e.trim())).map((e=>(n&&(e=e.replace(n,"$1")),t&&(e=e.replace(cf,((e,t)=>e.replace(t,t.replace(uf,"~"))))),e))).join("\n")}(e.stack),t.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,"")):String(e);var t})).join("\n");t="\n"+function(e,t=1,r={}){const{indent:n=" ",includeEmptyLines:i=!1}=r;if("string"!=typeof e)throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(t<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if("string"!=typeof n)throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(0===t)return e;const o=i?/^/gm:/^(?!\s*$)/gm;return e.replace(o,n.repeat(t))}(t,4),super(t),this.#e=e}get errors(){return this.#e.slice()}}class pf extends Error{constructor(e){super(),this.name="AbortError",this.message=e}}const ff=e=>void 0===globalThis.DOMException?new pf(e):new DOMException(e),df=e=>{const t=void 0===e.reason?ff("This operation was aborted."):e.reason;return t instanceof Error?t:ff(t)};async function mf(e,t,{concurrency:r=Number.POSITIVE_INFINITY,stopOnError:n=!0,signal:i}={}){return new Promise(((o,a)=>{if(void 0===e[Symbol.iterator]&&void 0===e[Symbol.asyncIterator])throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if("function"!=typeof t)throw new TypeError("Mapper function is required");if(!Number.isSafeInteger(r)&&r!==Number.POSITIVE_INFINITY||!(r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);const s=[],c=[],l=new Map;let u=!1,h=!1,p=!1,f=0,d=0;const m=void 0===e[Symbol.iterator]?e[Symbol.asyncIterator]():e[Symbol.iterator](),g=e=>{u=!0,h=!0,a(e)};i&&(i.aborted&&g(df(i)),i.addEventListener("abort",(()=>{g(df(i))})));const E=async()=>{if(h)return;const e=await m.next(),r=d;if(d++,e.done){if(p=!0,0===f&&!h){if(!n&&c.length>0)return void g(new hf(c));if(h=!0,0===l.size)return void o(s);const e=[];for(const[t,r]of s.entries())l.get(t)!==gf&&e.push(r);o(e)}}else f++,(async()=>{try{const n=await e.value;if(h)return;const i=await t(n,r);i===gf&&l.set(r,i),s[r]=i,f--,await E()}catch(e){if(n)g(e);else{c.push(e),f--;try{await E()}catch(e){g(e)}}}})()};(async()=>{for(let e=0;e<r;e++){try{await E()}catch(e){g(e);break}if(p||u)break}})()}))}const gf=Symbol("skip");function Ef(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}class yf extends nf{format="ebook";article;setArticle(e){const t=this.book.summary.getArticle((t=>t.getRef()===e));if(!t)throw new Error(`article ${e} not found`);this.article=t}async initPlugins(){this.book.config.setValue("theme","ebook"),this.options.plugins.preset["theme-ebook"]={},await super.initPlugins()}async generateArticles(){this.article?await this.generateArticle(this.article):await super.generateArticles()}async createDOM(e,t){const r=new sf,n=new S.VirtualConsole;n.on("debug",(e=>{le.debug(e)})),n.on("error",(e=>{le.error(e)})),n.on("jsdomError",(e=>{le.error(e)}));let i=!1,o=0;const a=new S.JSDOM(e,{virtualConsole:n,url:`file:///${this.tmpFS.resolve(t.path)}`,runScripts:"dangerously",resources:r,pretendToBeVisual:!0,beforeParse(e){e.SC_DISABLE_SPEEDY=!0;const{document:t}=e,r={attributes:!0,childList:!0,subtree:!0};e.addEventListener("load",(()=>{const n=new e.MutationObserver((function(e){for(const t of e)"childList"===t.type&&t.addedNodes.forEach((e=>{if("SCRIPT"===e.nodeName){++o;e.addEventListener("load",(()=>{--o}))}}))}));n.observe(t.head,r)})),e.addEventListener("pageLoaded",(()=>{i=!0}))}});return await af((()=>{if(!i||o>0)throw new Error("render html timeout")}),{stopAfter:5e3,tryEvery:100}),a}async renderFile(e,t){const r=await super.renderFile(e,t),n=await this.createDOM(r,e);await mf(Array.from(n.window.document.images),(async(t,r)=>{if(t.src){const n=a.parse(t.src);if(n.protocol?.startsWith("http"))try{le.info(`fetch image#${r}: ${t.src}`),t.src=await this.fetchImage(e,t.src),le.info(`image#${r} fetch succeed`)}catch{le.warn(`image#${r} ${t.src} fetch failed`)}}}),{concurrency:3});for(const e of Array.from(n.window.document.scripts))e.remove();return n.serialize()}async fetchImage(e,t){const r=await pe.request.get(t,{responseType:"stream",timeout:5e3,headers:{"User-Agent":`TopWriteBuilder/${this.version}`}});let n=`_images/${pe.md5(t)}`;const i=te.default.extension(r.headers["content-type"]);i&&(n+=`.${i}`);const o=this.tmpFS.createWriteStream(n);return new Promise(((t,i)=>{r.data.pipe(o),o.on("error",(e=>{o.close(),i(e)})),o.on("close",(()=>{t(e.relative(n))}))}))}async 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={poweredBy:this.options.poweredBy},n=await Z.default.renderFile(M.default.resolve(__dirname,"../templates/pdf-header.ejs"),e,{rmWhitespace:!0}),i=await Z.default.renderFile(M.default.resolve(__dirname,"../templates/pdf-footer.ejs"),e,{rmWhitespace:!0});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,this.article||(r["pdf-header-template"]=n),r["pdf-footer-template"]=i}return r}async packBook(){const e=M.default.extname(this.dest).substr(1);if(!["pdf","docx","epub"].includes(e))return super.packBook();const t=await A.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 o=(e,n)=>{const i=t.shortFlag&&1===e.length?"-":"--",o=t.allowCamelCase?e:e.replace(/[A-Z]/g,"-$&").toLowerCase();e=i+o,t.useEquals?r.push(e+(n?`=${n}`:"")):(r.push(e),n&&r.push(n))},a=(e,t)=>{r.push(`-${e}`),t&&r.push(t)};for(let[r,s]of Object.entries(e)){let e=o;if((!Array.isArray(t.excludes)||!of(t.excludes,r))&&(!Array.isArray(t.includes)||of(t.includes,r)))if("object"==typeof t.aliases&&t.aliases[r]&&(r=t.aliases[r],e=a),"--"!==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}(await this.getConvertOptions(e)),n=this.article?this.tmpFS.resolve(this.article.path):this.tmpFS.resolve("index.html");return r.unshift(n,this.dest),new Promise(((e,i)=>{le.info("convert book ...");const o=K.default(t,r,{stdio:["inherit"],cwd:this.tmpFS.root}),a=["^Conversion options ","^ \\w+: ","^Blocking URL ","^Ignoring CSS ","^Ignoring internal ","^CSSStyleDeclaration: ","^CSSStylesheet: ","^PropertyValue: ","^CSSVariable: ",Ef(n),Ef(this.dest)].map((e=>`(${e})`)).join("|"),s=new RegExp(`(${a})`);o.stdout?.on("data",(e=>{e.toString().replace(/[\r\n]*$/,"").split("\n").forEach((e=>{if(e){const t=e.trim();e.match(s)?le.debug({message:t,type:"log"}):le.log(t)}}))})),o.stderr?.on("data",(e=>{le.error(e.toString().trimEnd())})),o.on("close",(t=>{0!==t?i("Convert failed"):e()}))}))}}var Tf=ne.default,vf=process.cwd,bf=null,_f=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return bf||(bf=vf.call(process)),bf};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var Af=process.chdir;process.chdir=function(e){bf=null,Af.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Af)}var Sf=function(e){Tf.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,n){e.open(t,Tf.O_WRONLY|Tf.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,Tf.O_WRONLY|Tf.O_SYMLINK,r),o=!0;try{n=e.fchmodSync(i,r),o=!1}finally{if(o)try{e.closeSync(i)}catch(e){}else e.closeSync(i)}return n}}(e);e.lutimes||function(e){Tf.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,r,n,i){e.open(t,Tf.O_SYMLINK,(function(t,o){t?i&&i(t):e.futimes(o,r,n,(function(t){e.close(o,(function(e){i&&i(t||e)}))}))}))},e.lutimesSync=function(t,r,n){var i,o=e.openSync(t,Tf.O_SYMLINK),a=!0;try{i=e.futimesSync(o,r,n),a=!1}finally{if(a)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return i}):e.futimes&&(e.lutimes=function(e,t,r,n){n&&process.nextTick(n)},e.lutimesSync=function(){})}(e);e.chown=n(e.chown),e.fchown=n(e.fchown),e.lchown=n(e.lchown),e.chmod=t(e.chmod),e.fchmod=t(e.fchmod),e.lchmod=t(e.lchmod),e.chownSync=i(e.chownSync),e.fchownSync=i(e.fchownSync),e.lchownSync=i(e.lchownSync),e.chmodSync=r(e.chmodSync),e.fchmodSync=r(e.fchmodSync),e.lchmodSync=r(e.lchmodSync),e.stat=o(e.stat),e.fstat=o(e.fstat),e.lstat=o(e.lstat),e.statSync=a(e.statSync),e.fstatSync=a(e.fstatSync),e.lstatSync=a(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){});e.chown&&!e.lchown&&(e.lchown=function(e,t,r,n){n&&process.nextTick(n)},e.lchownSync=function(){});"win32"===_f&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function r(r,n,i){var o=Date.now(),a=0;t(r,n,(function s(c){if(c&&("EACCES"===c.code||"EPERM"===c.code)&&Date.now()-o<6e4)return setTimeout((function(){e.stat(n,(function(e,o){e&&"ENOENT"===e.code?t(r,n,s):i(c)}))}),a),void(a<100&&(a+=10));i&&i(c)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.rename));function t(t){return t?function(r,n,i){return t.call(e,r,n,(function(e){s(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function r(t){return t?function(r,n){try{return t.call(e,r,n)}catch(e){if(!s(e))throw e}}:t}function n(t){return t?function(r,n,i,o){return t.call(e,r,n,i,(function(e){s(e)&&(e=null),o&&o.apply(this,arguments)}))}:t}function i(t){return t?function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!s(e))throw e}}:t}function o(t){return t?function(r,n,i){function o(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,o):t.call(e,r,o)}:t}function a(t){return t?function(r,n){var i=n?t.call(e,r,n):t.call(e,r);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:t}function s(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}e.read="function"!=typeof e.read?e.read:function(t){function r(r,n,i,o,a,s){var c;if(s&&"function"==typeof s){var l=0;c=function(u,h,p){if(u&&"EAGAIN"===u.code&&l<10)return l++,t.call(e,r,n,i,o,a,c);s.apply(this,arguments)}}return t.call(e,r,n,i,o,a,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.read),e.readSync="function"!=typeof e.readSync?e.readSync:(c=e.readSync,function(t,r,n,i,o){for(var a=0;;)try{return c.call(e,t,r,n,i,o)}catch(e){if("EAGAIN"===e.code&&a<10){a++;continue}throw e}});var c};var kf=G.default.Stream,Cf=function(e){return{ReadStream:function t(r,n){if(!(this instanceof t))return new t(r,n);kf.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 o=Object.keys(n),a=0,s=o.length;a<s;a++){var c=o[a];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);kf.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),o=0,a=i.length;o<a;o++){var s=i[o];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 xf=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var t={__proto__:wf(e)};else t=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})),t},wf=Object.getPrototypeOf||function(e){return e.__proto__};var Of,Nf,Pf=Q.default,Rf=Sf,If=Cf,Lf=xf,Df=ie.default;function Mf(e,t){Object.defineProperty(e,Of,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(Of=Symbol.for("graceful-fs.queue"),Nf=Symbol.for("graceful-fs.previous")):(Of="___graceful-fs.queue",Nf="___graceful-fs.previous");var Ff=function(){};if(Df.debuglog?Ff=Df.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Ff=function(){var e=Df.format.apply(Df,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!Pf[Of]){var Hf=ue[Of]||[];Mf(Pf,Hf),Pf.close=function(e){function t(t,r){return e.call(Pf,t,(function(e){e||zf(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(t,Nf,{value:e}),t}(Pf.close),Pf.closeSync=function(e){function t(t){e.apply(Pf,arguments),zf()}return Object.defineProperty(t,Nf,{value:e}),t}(Pf.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){Ff(Pf[Of]),j.default.equal(Pf[Of].length,0)}))}ue[Of]||Mf(ue,Pf[Of]);var Bf,Uf=jf(Lf(Pf));function jf(e){Rf(e),e.gracefulify=jf,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,o){return t(r,n,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof i&&i.apply(this,arguments):qf([e,[r,n,i],t,o||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,o,a){return r(t,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof o&&o.apply(this,arguments):qf([e,[t,n,i,o],r,a||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,o,a){return n(t,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof o&&o.apply(this,arguments):qf([e,[t,r,i,o],n,a||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,o,a){return i(t,r,n,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof o&&o.apply(this,arguments):qf([e,[t,r,n,o],i,a||Date.now(),Date.now()])}))}(e,t,r,n)});var o=e.readdir;e.readdir=function(e,t,r){"function"==typeof t&&(r=t,t=null);var n=a.test(process.version)?function(e,t,r,n){return o(e,i(e,t,r,n))}:function(e,t,r,n){return o(e,t,i(e,t,r,n))};return n(e,t,r);function i(e,t,r,i){return function(o,a){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?(a&&a.sort&&a.sort(),"function"==typeof r&&r.call(this,o,a)):qf([n,[e,t,r],o,i||Date.now(),Date.now()])}}};var a=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var s=If(e);p=s.ReadStream,f=s.WriteStream}var c=e.ReadStream;c&&(p.prototype=Object.create(c.prototype),p.prototype.open=function(){var e=this;m(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 l=e.WriteStream;l&&(f.prototype=Object.create(l.prototype),f.prototype.open=function(){var e=this;m(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 p},set:function(e){p=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return f},set:function(e){f=e},enumerable:!0,configurable:!0});var u=p;Object.defineProperty(e,"FileReadStream",{get:function(){return u},set:function(e){u=e},enumerable:!0,configurable:!0});var h=f;function p(e,t){return this instanceof p?(c.apply(this,arguments),this):p.apply(Object.create(p.prototype),arguments)}function f(e,t){return this instanceof f?(l.apply(this,arguments),this):f.apply(Object.create(f.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0});var d=e.open;function m(e,t,r,n){return"function"==typeof r&&(n=r,r=null),function e(t,r,n,i,o){return d(t,r,n,(function(a,s){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof i&&i.apply(this,arguments):qf([e,[t,r,n,i],a,o||Date.now(),Date.now()])}))}(e,t,r,n)}return e.open=m,e}function qf(e){Ff("ENQUEUE",e[0].name,e[1]),Pf[Of].push(e),Gf()}function zf(){for(var e=Date.now(),t=0;t<Pf[Of].length;++t)Pf[Of][t].length>2&&(Pf[Of][t][3]=e,Pf[Of][t][4]=e);Gf()}function Gf(){if(clearTimeout(Bf),Bf=void 0,0!==Pf[Of].length){var e=Pf[Of].shift(),t=e[0],r=e[1],n=e[2],i=e[3],o=e[4];if(void 0===i)Ff("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Ff("TIMEOUT",t.name,r);var a=r.pop();"function"==typeof a&&a.call(null,n)}else{var s=Date.now()-o,c=Math.max(o-i,1);s>=Math.min(1.2*c,100)?(Ff("RETRY",t.name,r),t.apply(null,r.concat([i]))):Pf[Of].push(e)}void 0===Bf&&(Bf=setTimeout(Gf,0))}}process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Pf.__patched&&(Uf=jf(Pf),Pf.__patched=!0);var $f=Uf;const Kf=re.default.homedir(),{env:Vf}=process,Qf=Vf.XDG_DATA_HOME||(Kf?M.default.join(Kf,".local","share"):void 0),Wf=Vf.XDG_CONFIG_HOME||(Kf?M.default.join(Kf,".config"):void 0);Vf.XDG_STATE_HOME||Kf&&M.default.join(Kf,".local","state"),Vf.XDG_CACHE_HOME||Kf&&M.default.join(Kf,".cache"),Vf.XDG_RUNTIME_DIR;const Yf=(Vf.XDG_DATA_DIRS||"/usr/local/share/:/usr/share/").split(":");Qf&&Yf.unshift(Qf);const Xf=(Vf.XDG_CONFIG_DIRS||"/etc/xdg").split(":");Wf&&Xf.unshift(Wf);var Jf={exports:{}},Zf={exports:{}};
9
9
  /**
10
10
  * @preserve
11
11
  * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)