| 251 | `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,n.push(o)}return n.join("")}function Ese(e){let n={constructs:sV([Sse,...(e||{}).extensions||[]]),content:i(Y7e),defined:[],document:i(K7e),flow:i(tLe),lazy:{},string:i(nLe),text:i(iLe)};return n;function i(a){return o;function o(s){return sLe(n,a,s)}}}function kse(e){for(;!mV(e););return e}var lLe=/[\0\t\n\r]/g;function Cse(){let e=1,t="",r=!0,n;return i;function i(a,o,s){let l=[],u,c,f,d,p;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),f=0,t="",r&&(a.charCodeAt(0)===65279&&f++,r=void 0);f<a.length;){if(lLe.lastIndex=f,u=lLe.exec(a),d=u&&u.index!==void 0?u.index:a.length,p=a.charCodeAt(d),!u){t=a.slice(f);break}if(p===10&&f===d&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),f<d&&(l.push(a.slice(f,d)),e+=d-f),p){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}f=d+1}return s&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}var ZDt=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function uLe(e){return e.replace(ZDt,eTt)}function eTt(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){let i=r.charCodeAt(1),a=i===120||i===88;return lV(r.slice(a?2:1),a?16:10)}return bD(r)||e}var fLe={}.hasOwnProperty;function Dse(e,t,r){return typeof t!="string"&&(r=t,t=void 0),tTt(r)(kse(Ese(r).document().write(Cse()(e,t,!0))))}function tTt(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Z),autolinkProtocol:D,autolinkEmail:D,atxHeading:a(z),blockQuote:a(ue),characterEscape:D,characterReference:D,codeFenced:a(Se),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(Se,o),codeText:a(H,o),codeTextData:D,data:D,codeFlowValue:D,definition:a(ye),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(ne),hardBreakEscape:a(U),hardBreakTrailing:a(U),htmlFlow:a(V,o),htmlFlowData:D,htmlText:a(V,o),htmlTextData:D,image:a(Y),label:o,link:a(Z),listItem:a(he),listItemValue:d,listOrdered:a(re,f),listUnordered:a(re),paragraph:a(fe),reference:q,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(z),strong:a(ke),thematicBreak:a(Le)},exit:{atxHeading:l(),atxHeadingSequence:b,autolink:l(),autolinkEmail:oe,autolinkProtocol:ae,blockQuote:l(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:Ae,characterReferenceMarkerNumeric:Ae,characterReferenceValue:le,characterReference:pe,codeFenced:l(v),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:h,codeFlowValue:k,codeIndented:l(A),codeText:l(_),codeTextData:k,data:k,definition:l(),definitionDestinationString:w,definitionLabelString:x,definitionTitleString:g,emphasis:l(),hardBreakEscape:l(E),hardBreakTrailing:l(E),htmlFlow:l(O),htmlFlowData:k,htmlText:l(P),htmlTextData:k,image:l(F),label:I,labelText:L,lineEnding:M,link:l(B),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ie,resourceDestinationString:R,resourceTitleString:J,resource:Q,setextHeading:l(T),setextHeadingLineSequence:S,setextHeadingText:y,strong:l(),thematicBreak:l()}};dLe(t,(e||{}).mdastExtensions||[]);let r={};return n;function n(Ne){let Ge={type:"root",children:[]},Ye={stack:[Ge],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:c,data:r},ve=[],Oe=-1;for(;++Oe<Ne.length;)if(Ne[Oe][1].type==="listOrdered"||Ne[Oe][1].type==="listUnordered")if(Ne[Oe][0]==="enter")ve.push(Oe);else{let Te=ve.pop();Oe=i(Ne,Te,Oe)}for(Oe=-1;++Oe<Ne.length;){let Te=t[Ne[Oe][0]];fLe.call(Te,Ne[Oe][1].type)&&Te[Ne[Oe][1].type].call(Object.assign({sliceSerialize:Ne[Oe][2].sliceSerialize},Ye),Ne[Oe][1])}if(Ye.tokenStack.length>0){let Te=Ye.tokenStack[Ye.tokenStack.length-1];(Te[1]||cLe).call(Ye,void 0,Te[0])}for(Ge.position={start:mb(Ne.length>0?Ne[0][1].start:{line:1,column:1,offset:0}),end:mb(Ne.length>0?Ne[Ne.length-2][1].end:{line:1,column:1,offset:0})},Oe=-1;++Oe<t.transforms.length;)Ge=t.transforms[Oe](Ge)||Ge;return Ge}function i(Ne,Ge,Ye){let ve=Ge-1,Oe=-1,Te=!1,Ie,$e,Ue,Qe;for(;++ve<=Ye;){let We=Ne[ve];switch(We[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{We[0]==="enter"?Oe++:Oe--,Qe=void 0;break}case"lineEndingBlank":{We[0]==="enter"&&(Ie&&!Qe&&!Oe&&!Ue&&(Ue=ve),Qe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Qe=void 0}if(!Oe&&We[0]==="enter"&&We[1].type==="listItemPrefix"||Oe===-1&&We[0]==="exit"&&(We[1].type==="listUnordered"||We[1].type==="listOrdered")){if(Ie){let K=ve;for($e=void 0;K--;){let me=Ne[K];if(me[1].type==="lineEnding"||me[1].type==="lineEndingBlank"){if(me[0]==="exit")continue;$e&&(Ne[$e][1].type="lineEndingBlank",Te=!0),me[1].type="lineEnding",$e=K}else if(!(me[1].type==="linePrefix"||me[1].type==="blockQuotePrefix"||me[1].type==="blockQuotePrefixWhitespace"||me[1].type==="blockQuoteMarker"||me[1].type==="listItemIndent"))break}Ue&&(!$e||Ue<$e)&&(Ie._spread=!0),Ie.end=Object.assign({},$e?Ne[$e][1].start:We[1].end),Ne.splice($e||ve,0,["exit",Ie,We[2]]),ve++,Ye++}if(We[1].type==="listItemPrefix"){let K={type:"listItem",_spread:!1,start:Object.assign({},We[1].start),end:void 0};Ie=K,Ne.splice(ve,0,["enter",K,We[2]]),ve++,Ye++,Ue=void 0,Qe=!0}}}return Ne[Ge][1]._spread=Te,Ye}function a(Ne,Ge){return Ye;function Ye(ve){s.call(this,Ne(ve),ve),Ge&&Ge.call(this,ve)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(Ne,Ge,Ye){this.stack[this.stack.length-1].children.push(Ne),this.stack.push(Ne),this.tokenStack.push([Ge,Ye||void 0]),Ne.position={start:mb(Ge.start),end:void 0}}function l(Ne){return Ge;function Ge(Ye){Ne&&Ne.call(this,Ye),u.call(this,Ye)}}function u(Ne,Ge){let Ye=this.stack.pop(),ve=this.tokenStack.pop();if(ve)ve[0].type!==Ne.type&&(Ge?Ge.call(this,Ne,ve[0]):(ve[1]||cLe).call(this,Ne,ve[0]));else throw new Error("Cannot close `"+Ne.type+"` ("+fb({start:Ne.start,end:Ne.end})+"): it\u2019s not open");Ye.position.end=mb(Ne.end)}function c(){return fse(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(Ne){if(this.data.expectingFirstListItemValue){let Ge=this.stack[this.stack.length-2];Ge.start=Number.parseInt(this.sliceSerialize(Ne),10),this.data.expectingFirstListItemValue=void 0}}function p(){let Ne=this.resume(),Ge=this.stack[this.stack.length-1];Ge.lang=Ne}function h(){let Ne=this.resume(),Ge=this.stack[this.stack.length-1];Ge.meta=Ne}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){let Ne=this.resume(),Ge=this.stack[this.stack.length-1];Ge.value=Ne.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){let Ne=this.resume(),Ge=this.stack[this.stack.length-1];Ge.value=Ne.replace(/(\r?\n|\r)$/g,"")}function x(Ne){let Ge=this.resume(),Ye=this.stack[this.stack.length-1];Ye.label=Ge,Ye.identifier=Cc(this.sliceSerialize(Ne)).toLowerCase()}function g(){let Ne=this.resume(),Ge=this.stack[this.stack.length-1];Ge.title=Ne}function w(){let Ne=this.resume(),Ge=this.stack[this.stack.length-1];Ge.url=Ne}function b(Ne){let Ge=this.stack[this.stack.length-1];if(!Ge.depth){let Ye=this.sliceSerialize(Ne).length;Ge.depth=Ye}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function S(Ne){let Ge=this.stack[this.stack.length-1];Ge.depth=this.sliceSerialize(Ne).codePointAt(0)===61?1:2}function T(){this.data.setextHeadingSlurpLineEnding=void 0}function D(Ne){let Ye=this.stack[this.stack.length-1].children,ve=Ye[Ye.length-1];(!ve||ve.type!=="text")&&(ve=se(),ve.position={start:mb(Ne.start),end:void 0},Ye.push(ve)),this.stack.push(ve)}function k(Ne){let Ge=this.stack.pop();Ge.value+=this.sliceSerialize(Ne),Ge.position.end=mb(Ne.end)}function M(Ne){let Ge=this.stack[this.stack.length-1];if(this.data.atHardBreak){let Ye=Ge.children[Ge.children.length-1];Ye.position.end=mb(Ne.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Ge.type)&&(D.call(this,Ne),k.call(this,Ne))}function E(){this.data.atHardBreak=!0}function O(){let Ne=this.resume(),Ge=this.stack[this.stack.length-1];Ge.value=Ne}function P(){let Ne=this.resume(),Ge=this.stack[this.stack.length-1];Ge.value=Ne}function _(){let Ne=this.resume(),Ge=this.stack[this.stack.length-1];Ge.value=Ne}function B(){let Ne=this.stack[this.stack.length-1];if(this.data.inReference){let Ge=this.data.referenceType||"shortcut";Ne.type+="Reference",Ne.referenceType=Ge,delete Ne.url,delete Ne.title}else delete Ne.identifier,delete Ne.label;this.data.referenceType=void 0}function F(){let Ne=this.stack[this.stack.length-1];if(this.data.inReference){let Ge=this.data.referenceType||"shortcut";Ne.type+="Reference",Ne.referenceType=Ge,delete Ne.url,delete Ne.title}else delete Ne.identifier,delete Ne.label;this.data.referenceType=void 0}function L(Ne){let Ge=this.sliceSerialize(Ne),Ye=this.stack[this.stack.length-2];Ye.label=uLe(Ge),Ye.identifier=Cc(Ge).toLowerCase()}function I(){let Ne=this.stack[this.stack.length-1],Ge=this.resume(),Ye=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ye.type==="link"){let ve=Ne.children;Ye.children=ve}else Ye.alt=Ge}function R(){let Ne=this.resume(),Ge=this.stack[this.stack.length-1];Ge.url=Ne}function J(){let Ne=this.resume(),Ge=this.stack[this.stack.length-1];Ge.title=Ne}function Q(){this.data.inReference=void 0}function q(){this.data.referenceType="collapsed"}function ie(Ne){let Ge=this.resume(),Ye=this.stack[this.stack.length-1];Ye.label=Ge,Ye.identifier=Cc(this.sliceSerialize(Ne)).toLowerCase(),this.data.referenceType="full"}function Ae(Ne){this.data.characterReferenceType=Ne.type}function le(Ne){let Ge=this.sliceSerialize(Ne),Ye=this.data.characterReferenceType,ve;Ye?(ve=lV(Ge,Ye==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ve=bD(Ge);let Oe=this.stack[this.stack.length-1];Oe.value+=ve}function pe(Ne){let Ge=this.stack.pop();Ge.position.end=mb(Ne.end)}function ae(Ne){k.call(this,Ne);let Ge=this.stack[this.stack.length-1];Ge.url=this.sliceSerialize(Ne)}function oe(Ne){k.call(this,Ne);let Ge=this.stack[this.stack.length-1];Ge.url="mailto:"+this.sliceSerialize(Ne)}function ue(){return{type:"blockquote",children:[]}}function Se(){return{type:"code",lang:null,meta:null,value:""}}function H(){return{type:"inlineCode",value:""}}function ye(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ne(){return{type:"emphasis",children:[]}}function z(){return{type:"heading",depth:0,children:[]}}function U(){return{type:"break"}}function V(){return{type:"html",value:""}}function Y(){return{type:"image",title:null,url:"",alt:null}}function Z(){return{type:"link",title:null,url:"",children:[]}}function re(Ne){return{type:"list",ordered:Ne.type==="listOrdered",start:null,spread:Ne._spread,children:[]}}function he(Ne){return{type:"listItem",spread:Ne._spread,checked:null,children:[]}}function fe(){return{type:"paragraph",children:[]}}function ke(){return{type:"strong",children:[]}}function se(){return{type:"text",value:""}}function Le(){return{type:"thematicBreak"}}}function mb(e){return{line:e.line,column:e.column,offset:e.offset}}function dLe(e,t){let r=-1;for(;++r<t.length;){let n=t[r];Array.isArray(n)?dLe(e,n):rTt(e,n)}}function rTt(e,t){let r;for(r in t)if(fLe.call(t,r))switch(r){case"canContainEols":{let n=t[r];n&&e[r].push(...n);break}case"transforms":{let n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{let n=t[r];n&&Object.assign(e[r],n);break}}}function cLe(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+fb({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+fb({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+fb({start:t.start,end:t.end})+") is still open")}var mLe=ge(pLe(),1),YF=Object.assign(j2(Error),{eval:j2(EvalError),range:j2(RangeError),reference:j2(ReferenceError),syntax:j2(SyntaxError),type:j2(TypeError),uri:j2(URIError)});function j2(e){return t.displayName=e.displayName||e.name,t;function t(r,...n){let i=r&&(0,mLe.default)(r,...n);return new e(i)}}var yV={}.hasOwnProperty,hLe={yaml:"-",toml:"+"};function XF(e){let t=[],r=-1,n=Array.isArray(e)?e:e?[e]:["yaml"];for(;++r<n.length;)t[r]=nTt(n[r]);return t}function nTt(e){let t=e;if(typeof t=="string"){if(!yV.call(hLe,t))throw YF("Missing matter definition for `%s`",t);t={type:t,marker:hLe[t]}}else if(typeof t!="object")throw YF("Expected matter to be an object, not `%j`",t);if(!yV.call(t,"type"))throw YF("Missing `type` in matter `%j`",t);if(!yV.call(t,"fence")&&!yV.call(t,"marker"))throw YF("Missing `marker` or `fence` in matter `%j`",t);return t}function Mse(e){let t=XF(e),r={},n=-1;for(;++n<t.length;){let i=t[n],a=Nse(i,"open").charCodeAt(0),o=iTt(i),s=r[a];Array.isArray(s)?s.push(o):r[a]=[o]}return{flow:r}}function iTt(e){let t=e.anywhere,r=e.type,n=r+"Fence",i=n+"Sequence",a=r+"Value",o={tokenize:c,partial:!0},s,l=0;return{tokenize:u,concrete:!0};function u(f,d,p){let h=this;return m;function m(S){let T=h.now();return T.column===1&&(T.line===1||t)&&(s=Nse(e,"open"),l=0,S===s.charCodeAt(l))?(f.enter(r),f.enter(n),f.enter(i),v(S)):p(S)}function v(S){return l===s.length?(f.exit(i),Fr(S)?(f.enter("whitespace"),A(S)):x(S)):S===s.charCodeAt(l++)?(f.consume(S),v):p(S)}function A(S){return Fr(S)?(f.consume(S),A):(f.exit("whitespace"),x(S))}function x(S){return Qt(S)?(f.exit(n),f.enter("lineEnding"),f.consume(S),f.exit("lineEnding"),s=Nse(e,"close"),l=0,f.attempt(o,y,g)):p(S)}function g(S){return S===null||Qt(S)?b(S):(f.enter(a),w(S))}function w(S){return S===null||Qt(S)?(f.exit(a),b(S)):(f.consume(S),w)}function b(S){return S===null?p(S):(f.enter("lineEnding"),f.consume(S),f.exit("lineEnding"),f.attempt(o,y,g))}function y(S){return f.exit(r),d(S)}}function c(f,d,p){let h=0;return m;function m(g){return g===s.charCodeAt(h)?(f.enter(n),f.enter(i),v(g)):p(g)}function v(g){return h===s.length?(f.exit(i),Fr(g)?(f.enter("whitespace"),A(g)):x(g)):g===s.charCodeAt(h++)?(f.consume(g),v):p(g)}function A(g){return Fr(g)?(f.consume(g),A):(f.exit("whitespace"),x(g))}function x(g){return g===null||Qt(g)?(f.exit(n),d(g)):p(g)}}}function Nse(e,t){return e.marker?gLe(e.marker,t).repeat(3):gLe(e.fence,t)}function gLe(e,t){return typeof e=="string"?e:e[t]}function Ose(e){let t=XF(e),r={},n={},i=-1;for(;++i<t.length;){let a=t[i];r[a.type]=aTt(a),n[a.type]=oTt,n[a.type+"Value"]=sTt}return{enter:r,exit:n}}function aTt(e){return t;function t(r){this.enter({type:e.type,value:""},r),this.buffer()}}function oTt(e){let t=this.resume(),r=this.stack[this.stack.length-1];"value"in r,this.exit(e),r.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function sTt(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function wD(e,t){let r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}function Fse(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var SD=function(e){if(e==null)return fTt;if(typeof e=="function")return bV(e);if(typeof e=="object")return Array.isArray(e)?lTt(e):uTt(e);if(typeof e=="string")return cTt(e);throw new Error("Expected function, string, or object as test")};function lTt(e){let t=[],r=-1;for(;++r<e.length;)t[r]=SD(e[r]);return bV(n);function n(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function uTt(e){let t=e;return bV(r);function r(n){let i=n,a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function cTt(e){return bV(t);function t(r){return r&&r.type===e}}function bV(e){return t;function t(r,n,i){return Boolean(dTt(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function fTt(){return!0}function dTt(e){return e!==null&&typeof e=="object"&&"type"in e}var ALe=[],vLe=!0,jse=!1,yLe="skip";function Pse(e,t,r,n){let i;typeof t=="function"&&typeof r!="function"?(n=r,r=t):i=t;let a=SD(i),o=n?-1:1;s(e,void 0,[])();function s(l,u,c){let f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){let p=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(l.type+(p?"<"+p+">":""))+")"})}return d;function d(){let p=ALe,h,m,v;if((!t||a(l,u,c[c.length-1]||void 0))&&(p=pTt(r(l,c)),p[0]===jse))return p;if("children"in l&&l.children){let A=l;if(A.children&&p[0]!==yLe)for(m=(n?A.children.length:-1)+o,v=c.concat(A);m>-1&&m<A.children.length;){let x=A.children[m];if(h=s(x,m,v)(),h[0]===jse)return h;m=typeof h[1]=="number"?h[1]:m+o}}return p}}}function pTt(e){return Array.isArray(e)?e:typeof e=="number"?[vLe,e]:e==null?ALe:[e]}function _se(e,t,r){let i=SD((r||{}).ignore||[]),a=mTt(t),o=-1;for(;++o<a.length;)Pse(e,"text",s);function s(u,c){let f=-1,d;for(;++f<c.length;){let p=c[f],h=d?d.children:void 0;if(i(p,h?h.indexOf(p):void 0,d))return;d=p}if(d)return l(u,c)}function l(u,c){let f=c[c.length-1],d=a[o][0],p=a[o][1],h=0,v=f.children.indexOf(u),A=!1,x=[];d.lastIndex=0;let g=d.exec(u.value);for(;g;){let w=g.index,b={index:g.index,input:g.input,stack:[...c,u]},y=p(...g,b);if(typeof y=="string"&&(y=y.length>0?{type:"text",value:y}:void 0),y===!1?d.lastIndex=w+1:(h!==w&&x.push({type:"text",value:u.value.slice(h,w)}),Array.isArray(y)?x.push(...y):y&&x.push(y),h=w+g[0].length,A=!0),!d.global)break;g=d.exec(u.value)}return A?(h<u.value.length&&x.push({type:"text",value:u.value.slice(h)}),f.children.splice(v,1,...x)):x=[u],v+x.length}}function mTt(e){let t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");let r=!e[0]||Array.isArray(e[0])?e:[e],n=-1;for(;++n<r.length;){let i=r[n];t.push([hTt(i[0]),gTt(i[1])])}return t}function hTt(e){return typeof e=="string"?new RegExp(Fse(e),"g"):e}function gTt(e){return typeof e=="function"?e:function(){return e}}function Bse(){return{transforms:[wTt],enter:{literalAutolink:ATt,literalAutolinkEmail:Ise,literalAutolinkHttp:Ise,literalAutolinkWww:Ise},exit:{literalAutolink:xTt,literalAutolinkEmail:bTt,literalAutolinkHttp:vTt,literalAutolinkWww:yTt}}}function ATt(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ise(e){this.config.enter.autolinkProtocol.call(this,e)}function vTt(e){this.config.exit.autolinkProtocol.call(this,e)}function yTt(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function bTt(e){this.config.exit.autolinkEmail.call(this,e)}function xTt(e){this.exit(e)}function wTt(e){_se(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,STt],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,ETt]],{ignore:["link","linkReference"]})}function STt(e,t,r,n,i){let a="";if(!bLe(i)||(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!kTt(r)))return!1;let o=CTt(r+n);if(!o[0])return!1;let s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function ETt(e,t,r,n){return!bLe(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function kTt(e){let t=e.split(".");return!(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])))}function CTt(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")"),i=wD(e,"("),a=wD(e,")");for(;n!==-1&&i>a;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),a++;return[e,r]}function bLe(e,t){let r=e.input.charCodeAt(e.index-1);return(e.index===0||EA(r)||N2(r))&&(!t||r!==47)}BTt.peek=ITt;function TTt(){this.buffer()}function NTt(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function MTt(){this.buffer()}function OTt(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function FTt(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Cc(this.sliceSerialize(e)).toLowerCase(),r.label=t}function jTt(e){this.exit(e)}function PTt(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Cc(this.sliceSerialize(e)).toLowerCase(),r.label=t}function _Tt(e){this.exit(e)}function ITt(){return"["}function BTt(e,t,r,n){let i=r.createTracker(n),a=i.move("[^"),o=r.enter("footnoteReference"),s=r.enter("reference");return a+=i.move(r.safe(r.associationId(e),{after:"]",before:a})),s(),o(),a+=i.move("]"),a}function Lse(){return{enter:{gfmFootnoteCallString:TTt,gfmFootnoteCall:NTt,gfmFootnoteDefinitionLabelString:MTt,gfmFootnoteDefinition:OTt},exit:{gfmFootnoteCallString:FTt,gfmFootnoteCall:jTt,gfmFootnoteDefinitionLabelString:PTt,gfmFootnoteDefinition:_Tt}}}$Tt.peek=zTt;function Rse(){return{canContainEols:["delete"],enter:{strikethrough:RTt},exit:{strikethrough:qTt}}}function RTt(e){this.enter({type:"delete",children:[]},e)}function qTt(e){this.exit(e)}function $Tt(e,t,r,n){let i=r.createTracker(n),a=r.enter("strikethrough"),o=i.move("~~");return o+=r.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function zTt(){return"~"}var xLe={}.hasOwnProperty;function wLe(e,t){let r=t||{};function n(i,...a){let o=n.invalid,s=n.handlers;if(i&&xLe.call(i,e)){let l=String(i[e]);o=xLe.call(s,l)?s[l]:n.unknown}if(o)return o.call(this,i,...a)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}function $se(){return{enter:{table:HTt,tableData:SLe,tableHeader:SLe,tableRow:GTt},exit:{codeText:WTt,table:VTt,tableData:qse,tableHeader:qse,tableRow:qse}}}function HTt(e){let t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function VTt(e){this.exit(e),this.data.inTable=void 0}function GTt(e){this.enter({type:"tableRow",children:[]},e)}function qse(e){this.exit(e)}function SLe(e){this.enter({type:"tableCell",children:[]},e)}function WTt(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,QTt));let r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function QTt(e,t){return t==="|"?t:e}function zse(){return{exit:{taskListCheckValueChecked:ELe,taskListCheckValueUnchecked:ELe,paragraph:XTt}}}function ELe(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function XTt(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let r=this.stack[this.stack.length-1];r.type;let n=r.children[0];if(n&&n.type==="text"){let i=t.children,a=-1,o;for(;++a<i.length;){let s=i[a];if(s.type==="paragraph"){o=s;break}}o===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Use(){return[Bse(),Lse(),Rse(),$se(),zse()]}var JTt={553:e=>{e.exports=function(t){var r,n;return t._compiled||(r=t.before?"(?:"+t.before+")":"",n=t.after?"(?:"+t.after+")":"",t.atBreak&&(r="[\\r\\n][\\t ]*"+r),t._compiled=new RegExp((r?"("+r+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(t.character)?"\\":"")+t.character+(n||""),"g")),t._compiled}},112:e=>{function t(r,n,i){var a;if(!n)return i;for(typeof n=="string"&&(n=[n]),a=-1;++a<n.length;)if(r.indexOf(n[a])!==-1)return!0;return!1}e.exports=function(r,n){return t(r,n.inConstruct,!0)&&!t(r,n.notInConstruct)}},113:(e,t,r)=>{e.exports=function(s,l,u){for(var c,f,d,p,h,m,v,A,x=(u.before||"")+(l||"")+(u.after||""),g=[],w=[],b={},y=-1;++y<s.unsafe.length;)if(p=s.unsafe[y],i(s.stack,p))for(h=n(p);m=h.exec(x);)c="before"in p||p.atBreak,f="after"in p,d=m.index+(c?m[1].length:0),g.indexOf(d)===-1?(g.push(d),b[d]={before:c,after:f}):(b[d].before&&!c&&(b[d].before=!1),b[d].after&&!f&&(b[d].after=!1));for(g.sort(a),v=u.before?u.before.length:0,A=x.length-(u.after?u.after.length:0),y=-1;++y<g.length;)(d=g[y])<v||d>=A||d+1<A&&g[y+1]===d+1&&b[d].after&&!b[d+1].before&&!b[d+1].after||(v!==d&&w.push(o(x.slice(v,d),"\\")),v=d,!/[!-/:-@[-`{-~]/.test(x.charAt(d))||u.encode&&u.encode.indexOf(x.charAt(d))!==-1?(w.push("&#x"+x.charCodeAt(d).toString(16).toUpperCase()+";"),v++):w.push("\\"));return w.push(o(x.slice(v,A),u.after)),w.join("")};var n=r(553),i=r(112);function a(s,l){return s-l}function o(s,l){for(var u,c=/\\(?=[!-/:-@[-`{-~])/g,f=[],d=[],p=-1,h=0,m=s+l;u=c.exec(m);)f.push(u.index);for(;++p<f.length;)h!==f[p]&&d.push(s.slice(h,f[p])),d.push("\\"),h=f[p];return d.push(s.slice(h)),d.join("")}}},kLe={};function CA(e){var t=kLe[e];if(t!==void 0)return t.exports;var r=kLe[e]={exports:{}};return JTt[e](r,r.exports,CA),r.exports}CA.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return CA.d(t,{a:t}),t},CA.d=(e,t)=>{for(var r in t)CA.o(t,r)&&!CA.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},CA.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Hse={};(()=>{function e(i={}){let a=i.permalinks||[],o=i.pageResolver||(d=>[d.replace(/ /g,"_").toLowerCase()]),s=i.newClassName||"new",l=i.wikiLinkClassName||"internal",u=i.hrefTemplate||(d=>`#/page/${d}`),c;function f(d){return d[d.length-1]}return{enter:{wikiLink:function(d){c={type:"wikiLink",value:null,data:{alias:null,permalink:null,exists:null}},this.enter(c,d)}},exit:{wikiLinkTarget:function(d){let p=this.sliceSerialize(d);f(this.stack).value=p},wikiLinkAlias:function(d){let p=this.sliceSerialize(d);f(this.stack).data.alias=p},wikiLink:function(d){this.exit(d);let p=c,h=o(p.value),m=h.find(w=>a.indexOf(w)!==-1),v=m!==void 0,A;A=v?m:h[0]||"";let x=p.value;p.data.alias&&(x=p.data.alias);let g=l;v||(g+=" "+s),p.data.alias=x,p.data.permalink=A,p.data.exists=v,p.data.hName="a",p.data.hProperties={className:g,href:u(A)},p.data.hChildren=[{type:"text",value:x}]}}}}CA.d(Hse,{V:()=>e,x:()=>n});var t=CA(113),r=CA.n(t);function n(i={}){let a=i.aliasDivider||":";return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]},{character:"]",inConstruct:["label","reference"]}],handlers:{wikiLink:function(o,s,l){let u=l.enter("wikiLink"),c=r()(l,o.value,{before:"[",after:"]"}),f=r()(l,o.data.alias,{before:"[",after:"]"}),d;return d=f!==c?`[[${c}${a}${f}]]`:`[[${c}]]`,u(),d}}}}})();var CLe=Hse.V,vwn=Hse.x;var eNt={tokenize:aNt,partial:!0},DLe={tokenize:oNt,partial:!0},TLe={tokenize:sNt,partial:!0},NLe={tokenize:lNt,partial:!0},tNt={tokenize:uNt,partial:!0},MLe={name:"wwwAutolink",tokenize:nNt,previous:FLe},OLe={name:"protocolAutolink",tokenize:iNt,previous:jLe},xv={name:"emailAutolink",tokenize:rNt,previous:PLe},DA={};function Gse(){return{text:DA}}var P2=48;for(;P2<123;)DA[P2]=xv,P2++,P2===58?P2=65:P2===91&&(P2=97);DA[43]=xv;DA[45]=xv;DA[46]=xv;DA[95]=xv;DA[72]=[xv,OLe];DA[104]=[xv,OLe];DA[87]=[xv,MLe];DA[119]=[xv,MLe];function rNt(e,t,r){let n=this,i,a;return o;function o(f){return!Vse(f)||!PLe.call(n,n.previous)||Wse(n.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(f))}function s(f){return Vse(f)?(e.consume(f),s):f===64?(e.consume(f),l):r(f)}function l(f){return f===46?e.check(tNt,c,u)(f):f===45||f===95||Cl(f)?(a=!0,e.consume(f),l):c(f)}function u(f){return e.consume(f),i=!0,l}function c(f){return a&&i&&kl(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}function nNt(e,t,r){let n=this;return i;function i(o){return o!==87&&o!==119||!FLe.call(n,n.previous)||Wse(n.events)?r(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(eNt,e.attempt(DLe,e.attempt(TLe,a),r),r)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function iNt(e,t,r){let n=this,i="",a=!1;return o;function o(f){return(f===72||f===104)&&jLe.call(n,n.previous)&&!Wse(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),s):r(f)}function s(f){if(kl(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),s;if(f===58){let d=i.toLowerCase();if(d==="http"||d==="https")return e.consume(f),l}return r(f)}function l(f){return f===47?(e.consume(f),a?u:(a=!0,l)):r(f)}function u(f){return f===null||T2(f)||Vn(f)||EA(f)||N2(f)?r(f):e.attempt(DLe,e.attempt(TLe,c),r)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function aNt(e,t,r){let n=0;return i;function i(o){return(o===87||o===119)&&n<3?(n++,e.consume(o),i):o===46&&n===3?(e.consume(o),a):r(o)}function a(o){return o===null?r(o):t(o)}}function oNt(e,t,r){let n,i,a;return o;function o(u){return u===46||u===95?e.check(NLe,l,s)(u):u===null||Vn(u)||EA(u)||u!==45&&N2(u)?l(u):(a=!0,e.consume(u),o)}function s(u){return u===95?n=!0:(i=n,n=void 0),e.consume(u),o}function l(u){return i||n||!a?r(u):t(u)}}function sNt(e,t){let r=0,n=0;return i;function i(o){return o===40?(r++,e.consume(o),i):o===41&&n<r?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(NLe,t,a)(o):o===null||Vn(o)||EA(o)?t(o):(e.consume(o),i)}function a(o){return o===41&&n++,e.consume(o),i}}function lNt(e,t,r){return n;function n(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),n):s===38?(e.consume(s),a):s===93?(e.consume(s),i):s===60||s===null||Vn(s)||EA(s)?t(s):r(s)}function i(s){return s===null||s===40||s===91||Vn(s)||EA(s)?t(s):n(s)}function a(s){return kl(s)?o(s):r(s)}function o(s){return s===59?(e.consume(s),n):kl(s)?(e.consume(s),o):r(s)}}function uNt(e,t,r){return n;function n(a){return e.consume(a),i}function i(a){return Cl(a)?r(a):t(a)}}function FLe(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Vn(e)}function jLe(e){return!kl(e)}function PLe(e){return!(e===47||Vse(e))}function Vse(e){return e===43||e===45||e===46||e===95||Cl(e)}function Wse(e){let t=e.length,r=!1;for(;t--;){let n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}var cNt={tokenize:ANt,partial:!0};function Qse(){return{document:{[91]:{name:"gfmFootnoteDefinition",tokenize:mNt,continuation:{tokenize:hNt},exit:gNt}},text:{[91]:{name:"gfmFootnoteCall",tokenize:pNt},[93]:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:fNt,resolveTo:dNt}}}}function fNt(e,t,r){let n=this,i=n.events.length,a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o;for(;i--;){let l=n.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!o||!o._balanced)return r(l);let u=Cc(n.sliceSerialize({start:o.end,end:n.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?r(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function dNt(e,t){let r=e.length,n;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";let i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;let o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...l),e}function pNt(e,t,r){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),a=0,o;return s;function s(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?r(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(a>999||f===93&&!o||f===null||f===91||Vn(f))return r(f);if(f===93){e.exit("chunkString");let d=e.exit("gfmFootnoteCallString");return i.includes(Cc(n.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(f)}return Vn(f)||(o=!0),a++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),a++,u):u(f)}}function mNt(e,t,r){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),a,o=0,s;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(h)}function c(h){if(o>999||h===93&&!s||h===null||h===91||Vn(h))return r(h);if(h===93){e.exit("chunkString");let m=e.exit("gfmFootnoteDefinitionLabelString");return a=Cc(n.sliceSerialize(m)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Vn(h)||(s=!0),o++,e.consume(h),h===92?f:c}function f(h){return h===91||h===92||h===93?(e.consume(h),o++,c):c(h)}function d(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(a)||i.push(a),Ir(e,p,"gfmFootnoteDefinitionWhitespace")):r(h)}function p(h){return t(h)}}function hNt(e,t,r){return e.check(kA,t,e.attempt(cNt,t,r))}function gNt(e){e.exit("gfmFootnoteDefinition")}function ANt(e,t,r){let n=this;return Ir(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(a){let o=n.events[n.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):r(a)}}function Yse(e){let r=(e||{}).singleTilde,n={name:"strikethrough",tokenize:a,resolveAll:i};return r==null&&(r=!0),{text:{[126]:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function i(o,s){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let u=l;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[l][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[l][1].end)},f={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[l][1].start)},d=[["enter",c,s],["enter",o[u][1],s],["exit",o[u][1],s],["enter",f,s]],p=s.parser.constructs.insideSpan.null;p&&xs(d,d.length,0,pb(p,o.slice(u+1,l),s)),xs(d,d.length,0,[["exit",f,s],["enter",o[l][1],s],["exit",o[l][1],s],["exit",c,s]]),xs(o,u-1,l-u+3,d),l=u+d.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function a(o,s,l){let u=this.previous,c=this.events,f=0;return d;function d(h){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(h):(o.enter("strikethroughSequenceTemporary"),p(h))}function p(h){let m=xD(u);if(h===126)return f>1?l(h):(o.consume(h),f++,p);if(f<2&&!r)return l(h);let v=o.exit("strikethroughSequenceTemporary"),A=xD(h);return v._open=!A||A===2&&Boolean(m),v._close=!m||m===2&&Boolean(A),s(h)}}}var xV=class{constructor(){this.map=[]}add(t,r,n){vNt(this,t,r,n)}consume(t){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let r=this.map.length,n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push(t.slice()),t.length=0;let i=n.pop();for(;i;){for(let a of i)t.push(a);i=n.pop()}this.map.length=0}};function vNt(e,t,r,n){let i=0;if(!(r===0&&n.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=r,e.map[i][2].push(...n);return}i+=1}e.map.push([t,r,n])}}function _Le(e,t){let r=!1,n=[];for(;t<e.length;){let i=e[t];if(r){if(i[0]==="enter")i[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let a=n.length-1;n[a]=n[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}function Xse(){return{flow:{null:{name:"table",tokenize:yNt,resolveAll:bNt}}}}function yNt(e,t,r){let n=this,i=0,a=0,o;return s;function s(k){let M=n.events.length-1;for(;M>-1;){let P=n.events[M][1].type;if(P==="lineEnding"||P==="linePrefix")M--;else break}let E=M>-1?n.events[M][1].type:null,O=E==="tableHead"||E==="tableRow"?y:l;return O===y&&n.parser.lazy[n.now().line]?r(k):O(k)}function l(k){return e.enter("tableHead"),e.enter("tableRow"),u(k)}function u(k){return k===124||(o=!0,a+=1),c(k)}function c(k){return k===null?r(k):Qt(k)?a>1?(a=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),p):r(k):Fr(k)?Ir(e,c,"whitespace")(k):(a+=1,o&&(o=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),f(k)))}function f(k){return k===null||k===124||Vn(k)?(e.exit("data"),c(k)):(e.consume(k),k===92?d:f)}function d(k){return k===92||k===124?(e.consume(k),f):f(k)}function p(k){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(k):(e.enter("tableDelimiterRow"),o=!1,Fr(k)?Ir(e,h,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):h(k))}function h(k){return k===45||k===58?v(k):k===124?(o=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),m):b(k)}function m(k){return Fr(k)?Ir(e,v,"whitespace")(k):v(k)}function v(k){return k===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),A):k===45?(a+=1,A(k)):k===null||Qt(k)?w(k):b(k)}function A(k){return k===45?(e.enter("tableDelimiterFiller"),x(k)):b(k)}function x(k){return k===45?(e.consume(k),x):k===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(k))}function g(k){return Fr(k)?Ir(e,w,"whitespace")(k):w(k)}function w(k){return k===124?h(k):k===null||Qt(k)?!o||i!==a?b(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):b(k)}function b(k){return r(k)}function y(k){return e.enter("tableRow"),S(k)}function S(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),S):k===null||Qt(k)?(e.exit("tableRow"),t(k)):Fr(k)?Ir(e,S,"whitespace")(k):(e.enter("data"),T(k))}function T(k){return k===null||k===124||Vn(k)?(e.exit("data"),S(k)):(e.consume(k),k===92?D:T)}function D(k){return k===92||k===124?(e.consume(k),T):T(k)}}function bNt(e,t){let r=-1,n=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,u,c,f,d=new xV;for(;++r<e.length;){let p=e[r],h=p[1];p[0]==="enter"?h.type==="tableHead"?(s=!1,l!==0&&(ILe(d,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},d.add(r,0,[["enter",u,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(n=!0,f=void 0,a=[0,0,0,0],o=[0,r+1,0,0],s&&(s=!1,c={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},d.add(r,0,[["enter",c,t]])),i=h.type==="tableDelimiterRow"?2:c?3:1):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(n=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],f=wV(d,t,a,i,void 0,f),a=[0,0,0,0]),o[2]=r)):h.type==="tableCellDivider"&&(n?n=!1:(a[1]!==0&&(o[0]=o[1],f=wV(d,t,a,i,void 0,f)),a=o,o=[a[1],r,0,0])):h.type==="tableHead"?(s=!0,l=r):h.type==="tableRow"||h.type==="tableDelimiterRow"?(l=r,a[1]!==0?(o[0]=o[1],f=wV(d,t,a,i,r,f)):o[1]!==0&&(f=wV(d,t,o,i,r,f)),i=0):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(o[3]=r)}for(l!==0&&ILe(d,t,l,u,c),d.consume(t.events),r=-1;++r<t.events.length;){let p=t.events[r];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=_Le(t.events,r))}return e}function wV(e,t,r,n,i,a){let o=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",s="tableContent";r[0]!==0&&(a.end=Object.assign({},ED(t.events,r[0])),e.add(r[0],0,[["exit",a,t]]));let l=ED(t.events,r[1]);if(a={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",a,t]]),r[2]!==0){let u=ED(t.events,r[2]),c=ED(t.events,r[3]),f={type:s,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(r[2],0,[["enter",f,t]]),n!==2){let d=t.events[r[2]],p=t.events[r[3]];if(d[1].end=Object.assign({},p[1].end),d[1].type="chunkText",d[1].contentType="text",r[3]>r[2]+1){let h=r[2]+1,m=r[3]-r[2]-1;e.add(h,m,[])}}e.add(r[3]+1,0,[["exit",f,t]])}return i!==void 0&&(a.end=Object.assign({},ED(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function ILe(e,t,r,n,i){let a=[],o=ED(t.events,r);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),n.end=Object.assign({},o),a.push(["exit",n,t]),e.add(r+1,0,a)}function ED(e,t){let r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}var xNt={name:"tasklistCheck",tokenize:wNt};function Kse(){return{text:{[91]:xNt}}}function wNt(e,t,r){let n=this;return i;function i(l){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return Vn(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):r(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):r(l)}function s(l){return Qt(l)?t(l):Fr(l)?e.check({tokenize:SNt},t,r)(l):r(l)}}function SNt(e,t,r){return Ir(e,n,"whitespace");function n(i){return i===null?r(i):t(i)}}function BLe(e){return sV([Gse(),Qse(),Yse(e),Xse(),Kse()])}var kD={horizontalTab:-2,virtualSpace:-1,nul:0,eof:null,space:32};function LLe(e){return e<kD.nul||e===kD.space}function Jse(e){return e<kD.horizontalTab}function RLe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.aliasDivider||":",r=t,n="[[",i="]]";function a(s,l,u){var c,f,d=0,p=0,h=0;return m;function m(y){return y!==n.charCodeAt(p)?u(y):(s.enter("wikiLink"),s.enter("wikiLinkMarker"),v(y))}function v(y){return p===n.length?(s.exit("wikiLinkMarker"),A(y)):y!==n.charCodeAt(p)?u(y):(s.consume(y),p++,v)}function A(y){return Jse(y)||y===kD.eof?u(y):(s.enter("wikiLinkData"),s.enter("wikiLinkTarget"),x(y))}function x(y){return y===r.charCodeAt(d)?c?(s.exit("wikiLinkTarget"),s.enter("wikiLinkAliasMarker"),g(y)):u(y):y===i.charCodeAt(h)?c?(s.exit("wikiLinkTarget"),s.exit("wikiLinkData"),s.enter("wikiLinkMarker"),b(y)):u(y):Jse(y)||y===kD.eof?u(y):(LLe(y)||(c=!0),s.consume(y),x)}function g(y){return d===r.length?(s.exit("wikiLinkAliasMarker"),s.enter("wikiLinkAlias"),w(y)):y!==r.charCodeAt(d)?u(y):(s.consume(y),d++,g)}function w(y){return y===i.charCodeAt(h)?f?(s.exit("wikiLinkAlias"),s.exit("wikiLinkData"),s.enter("wikiLinkMarker"),b(y)):u(y):Jse(y)||y===kD.eof?u(y):(LLe(y)||(f=!0),s.consume(y),w)}function b(y){return h===i.length?(s.exit("wikiLinkMarker"),s.exit("wikiLink"),l(y)):y!==i.charCodeAt(h)?u(y):(s.consume(y),h++,b)}}var o={tokenize:a};return{text:{91:o}}}var qLe=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ENt=/\n/g,kNt=/^\s*/,CNt=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,DNt=/^:\s*/,TNt=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,NNt=/^[;\s]*/,MNt=/^\s+|\s+$/g,ONt=` |
| 252 | `,$Le="/",zLe="*",_2="",FNt="comment",jNt="declaration";function HLe(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(h){var m=h.match(ENt);m&&(r+=m.length);var v=h.lastIndexOf(ONt);n=~v?h.length-v:n+h.length}function a(){var h={line:r,column:n};return function(m){return m.position=new o(h),u(),m}}function o(h){this.start=h,this.end={line:r,column:n},this.source=t.source}o.prototype.content=e;function s(h){var m=new Error(t.source+":"+r+":"+n+": "+h);if(m.reason=h,m.filename=t.source,m.line=r,m.column=n,m.source=e,!t.silent)throw m}function l(h){var m=h.exec(e);if(!!m){var v=m[0];return i(v),e=e.slice(v.length),m}}function u(){l(kNt)}function c(h){var m;for(h=h||[];m=f();)m!==!1&&h.push(m);return h}function f(){var h=a();if(!($Le!=e.charAt(0)||zLe!=e.charAt(1))){for(var m=2;_2!=e.charAt(m)&&(zLe!=e.charAt(m)||$Le!=e.charAt(m+1));)++m;if(m+=2,_2===e.charAt(m-1))return s("End of comment missing");var v=e.slice(2,m-2);return n+=2,i(v),e=e.slice(m),n+=2,h({type:FNt,comment:v})}}function d(){var h=a(),m=l(CNt);if(!!m){if(f(),!l(DNt))return s("property missing ':'");var v=l(TNt),A=h({type:jNt,property:ULe(m[0].replace(qLe,_2)),value:v?ULe(v[0].replace(qLe,_2)):_2});return l(NNt),A}}function p(){var h=[];c(h);for(var m;m=d();)m!==!1&&(h.push(m),c(h));return h}return u(),p()}function ULe(e){return e?e.replace(MNt,_2):_2}var Zse=ge(On()),VLe=e=>{let t=UF(e,{fragment:!0}),r=(n,i)=>{let a=(0,Zse.uniqueId)("~"),o=[],s={},l={},u="group",c=null;if((n.tagName=="strong"||n.tagName=="em"||n.tagName=="s"||n.tagName==="p"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6")&&(c=n.tagName,u="text"),n.tagName=="span"&&(u="text",c="span",n.properties.style&&HLe(n.properties.style).forEach(d=>{d.type==="declaration"&&(s[d.property]=Jt(d.value))})),(n.tagName=="blockquote"||n.tagName=="pre")&&(u="group",c=n.tagName),n.tagName=="a"&&(u="text",c="a",s.label=Jt(n.value),l.value=Jt(n.href)),n.tagName=="br"&&(u="text",l.value="",c="br"),n.type==="text"&&(u="text",l.value=Jt(n.value)),(n.tagName=="table"||n.tagName=="thead"||n.tagName=="tbody"||n.tagName=="tfoot"||n.tagName=="tr"||n.tagName=="td"||n.tagName=="th")&&(u="group",c=n.tagName),(n.tagName==="ul"||n.tagName==="ol")&&(u="group",c=n.tagName,n.properties.dataType=="taskList"&&(c="taskList")),n.children?.length>0&&(o=n.children.map((d,p)=>r(d,p)),n.tagName==="li"&&(u="group",c="li",n.properties.dataType=="taskItem"))){l.value=Jt(n.properties.dataChecked=="true"?"true":"false"),c="task";let d=(0,Zse.uniqueId)("~");o=[{id:d,node:{id:d,schemaId:"",rank:0,name:"input",type:"input",props:{value:n.checked?"true":"false"}},children:[],parent:null,isRef:!1,editorProps:{editMode:0}},...o]}return c&&(s.sem=Jt(c)),{id:a,node:{id:a,schemaId:"",rank:0,name:n.tagName,type:u,props:l,styles:s},children:o,parent:null,isRef:!1,editorProps:{editMode:0}}};return r(t,0)};var SV=ge(Foe());SV.default.support.nodebuffer=!1;var hb=async(e,t,r)=>r?fetch(t).then(i=>i.arrayBuffer()):await e.middleware.fileExists(t)?await e.middleware.readBinaryToFile(t):null,PNt=async(e,t,r,n)=>{let i=await hb(e,r,n);if(i){let a=await new t.Database(new Uint8Array(i));try{a.exec("SELECT name FROM sqlite_schema")}catch{return new t.Database}return a}return new t.Database},KF=async(e,t,r,n)=>{let i=await _Nt(e,r,n);if(i){let a=await new t.Database(new Uint8Array(i));try{a.exec("SELECT name FROM sqlite_schema")}catch{return new t.Database}return a}return new t.Database},_Nt=async(e,t,r)=>{if(r)return fetch(t).then(o=>o.arrayBuffer());if(!await e.middleware.fileExists(t))return null;let n=new SV.default,i=await e.middleware.readBinaryToFile(t),a;try{a=await n.loadAsync(i).then(o=>n.file("data.mdb").async("arraybuffer"))}catch{}return a},CD=async(e,t,r)=>{await e.middleware.fileExists(Vu(Rc(t)))||await e.middleware.createFolder(Rc(t));let n=new SV.default;n.file("data.mdb",r);let i=await n.generateAsync({type:"arraybuffer",compression:"DEFLATE",compressionOptions:{level:5}});return e.middleware.writeBinaryToFile(t,i)},EV=async(e,t,r)=>(await e.middleware.fileExists(Vu(Rc(t)))||await e.middleware.createFolder(Rc(t)),e.middleware.writeBinaryToFile(t,r)),ele=(e,t)=>Object.keys(e).reduce((r,n)=>({...r,[n]:{uniques:t?.[n]??[],cols:e[n].cols.map(i=>i.name),rows:e[n].rows}}),{}),Kl=e=>e.reduce((t,r,n)=>[...t,{cols:r.columns,rows:r?r.values.map(i=>r.columns.reduce((a,o,s)=>({...a,[o]:i[s]}),{})):[]}],[]),JF=(e,t,r,n)=>{let i=n??"*",a=r?`SELECT ${i} FROM "${t}" WHERE ${r};`:`SELECT ${i} FROM ${t};`,o;try{o=Kl(e.exec(a))}catch{return null}return o.length==1?o[0]:null},GLe=(e,t,r)=>{let n=yfe(Object.keys(t).map(i=>{let a=t[i].cols;return t[i].rows.reduce((s,l)=>`${s} ${r?"REPLACE":"INSERT"} INTO "${i}" VALUES (${FQ(a.map(u=>`'${Cg(l?.[u])??""}'`))});`,"")}));try{e.exec(`${n}`)}catch{}};var I2=(e,t,r)=>{let n=`DELETE FROM "${t}" WHERE ${r};`;try{e.exec(n)}catch{}},WLe=(e,t)=>{let r=`DROP TABLE IF EXISTS "${t}";`;try{e.exec(r)}catch{}},wv=(e,t)=>{let r=[];Object.keys(t).forEach(n=>{let i=t[n].cols,a=bfe(Mr(i).filter(f=>f).map(f=>`'${Cg(f)}' char`)),o=`CREATE TABLE IF NOT EXISTS "${n}" (${a}); `,s=t[n].uniques.filter(f=>f).reduce((f,d)=>`${f} CREATE UNIQUE INDEX IF NOT EXISTS "idx_${n}_${d.replace(/,/g,"_")}" ON "${n}"(${d});`,""),l="BEGIN TRANSACTION;",u=t[n].rows.map(f=>`REPLACE INTO "${n}" VALUES (${FQ(i.map(d=>`'${Cg(f?.[d]??"")}'`))});`),c="COMMIT;";r.push(`DROP INDEX IF EXISTS "idx_${n}__id"; DROP TABLE IF EXISTS "${n}";`),a.length>0&&(r.push(o),r.push(s),r.push(l),r.push(...u),r.push(c))});try{for(let n of r)e.exec(n)}catch{return!1}return!0},QLe=async(e,t,r)=>{let n=await e.sqlJS(),i=await KF(e,n,t);return i?(wv(i,r),await CD(e,t,i.export().buffer),i.close(),!0):(i.close(),!1)},Tc=async(e,t,r,n=!0)=>{let i=await e.sqlJS(),a=await PNt(e,i,t);if(!a)return a.close(),!1;if(n){let s=[];try{s=Kl(a.exec("SELECT name FROM sqlite_master WHERE type='table' AND name='m_schema' OR name='m_fields';"))[0]?.rows??[]}catch{}if(!s.some(l=>l.name=="m_schema")){let l='CREATE TABLE m_schema ("id" char, "name" char, "type" char, "def" char, "predicate" char, "primary" char)';try{a.exec(l)}catch{}}if(!s.some(l=>l.name=="m_fields")){let l='CREATE TABLE m_fields ("name" char, "schemaId" char, "type" char, "value" char, "hidden" char, "attrs" char, "unique" char, "primary" char)';try{a.exec(l)}catch{}}}let o=wv(a,r);return o&&await EV(e,t,a.export().buffer),a.close(),o};var YLe=(e,t,r)=>({schema:t,cols:r,rows:e?.rows??[]});var XLe=async(e,t)=>{let r=await e.sqlJS(),n=await hb(e,t,!1);if(!n)return null;let i=new r.Database(new Uint8Array(n)),a,o;try{a=Kl(i.exec("SELECT * FROM m_fields"))[0].rows,o=Kl(i.exec("SELECT * FROM m_schema"))[0].rows}catch{return i.close(),null}let s;try{s=o.filter(l=>l.type=="db").map(l=>({[l.id]:Kl(i.exec(`SELECT * FROM "${l.id}"`))[0]})).reduce((l,u)=>({...l,...u}),{})}catch{return i.close(),null}return i.close(),{schemas:o,fields:a,tables:s}},kV=async(e,t,r)=>{let n=await e.sqlJS(),i=await hb(e,t,!1);if(!i)return null;let a=new n.Database(new Uint8Array(i)),o,s;try{o=Kl(a.exec(`SELECT * FROM m_fields WHERE schemaId = '${r}'`)),s=Kl(a.exec(`SELECT * FROM m_schema WHERE id = '${r}'`))[0]?.rows[0]}catch(c){return e.plugin.superstate.ui.error(c),a.close(),null}if(!s)return null;let l=(o[0]?.rows??[]).filter(c=>c.name.length>0),u;try{u=Kl(a.exec(`SELECT * FROM "${r}"`))}catch{return a.close(),{schema:s,cols:l,rows:[]}}return a.close(),YLe(u[0],s,l)},CV=async(e,t)=>{let r=await e.sqlJS(),n=await hb(e,t,!1);if(!n)return null;let i=new r.Database(new Uint8Array(n)),a=[];try{a=Kl(i.exec("SELECT * FROM m_schema"))[0]?.rows??[]}catch{}a.length==0&&(a=(Kl(i.exec("SELECT name FROM sqlite_schema WHERE type ='table' AND name NOT LIKE 'sqlite_%';"))[0]?.rows?.map(u=>u.name)??[]).filter(u=>!u.startsWith("m_")).map(u=>u==lr?yd:{id:u,name:u,type:"db",primary:""}),i.exec("CREATE TABLE IF NOT EXISTS m_schema ('id' char, 'name' char, 'type' char, 'def' char, 'predicate' char, 'primary' char)"),i.exec(a.map(u=>`INSERT INTO m_schema ('id', 'name', 'type', 'primary') VALUES ('${u.id}', '${u.name}', '${u.type}', '${u.primary}')`).join(";")),await EV(e,t,i.export().buffer));let o={};return a.forEach(s=>{let l;try{l=Kl(i.exec(`SELECT * FROM m_fields WHERE schemaId = '${s.id}'`))}catch{return}let u=(l?.[0]?.rows??[]).filter(f=>f.name.length>0),c;try{c=Kl(i.exec(`SELECT * FROM "${s.id}"`)),o[s.id]=YLe(c[0],s,u)}catch{o[s.id]={schema:s,cols:u,rows:[]};return}}),i.close(),o},DV=async(e,t,r)=>{let n=await e.sqlJS(),i=await hb(e,r,!1);if(!i)return!1;let a=new n.Database(new Uint8Array(i));return I2(a,"m_schema",`id = '${Cg(t)}'`),I2(a,"m_schema",`def = '${Cg(t)}'`),I2(a,"m_fields",`schemaId = '${Cg(t)}'`),WLe(a,t),await EV(e,r,a.export().buffer),a.close(),!0},tle=async(e,t)=>{let r=await e.sqlJS(),n=await hb(e,t,!1);if(!n)return null;let i=new r.Database(new Uint8Array(n)),a=[];try{a=i.exec("SELECT * FROM m_schema")}catch{}return i.close(),(a[0]?.values??[]).map(o=>{let[s,l,u,c,f,d]=o;return{id:s,name:l,type:u,def:c,predicate:f,primary:d}})},KLe=async(e,t)=>{let r=await e.sqlJS(),n=await hb(e,t,!1);if(!n)return null;let i=new r.Database(new Uint8Array(n)),a;try{a=Kl(i.exec("SELECT * FROM m_fields"))[0].rows}catch{return i.close(),[]}if(a.length==0){try{i.exec("CREATE TABLE m_fields (name TEXT, schemaId TEXT, type TEXT, value TEXT, hidden TEXT, attrs TEXT, unique TEXT, primary TEXT)")}catch{}return i.close(),[]}return i.close(),a};var JLe=require("obsidian"),rle=ge(Me());var B2="mk-space-embed";var TV=class extends JLe.ItemView{constructor(r,n){super(r);this.navigation=!0;this.plugin=n}getViewType(){return B2}getDisplayText(){return this.path}async onClose(){this.destroy()}onunload(){this.destroy()}destroy(){this.root&&this.root.unmount()}async onOpen(){this.destroy()}async setState(r,n){this.path=r.path,this.source=r.source,this.constructInlineContext(),await super.setState(r,n);let i=ex(this.path,this.plugin.superstate);this.leaf.tabHeaderInnerTitleEl.innerText=i,this.leaf.view.titleEl=i;let a=this.leaf.view.headerEl;a&&(a.querySelector(".view-header-title").innerText=i)}getState(){let r=super.getState();return r.path=this.path,r.source=this.source,r}constructInlineContext(){this.destroy(),this.root=this.plugin.ui.createRoot(this.contentEl),this.root?this.root.render(rle.default.createElement(DF,{path:this.path,superstate:this.plugin.superstate,key:this.path,readOnly:!0},rle.default.createElement(NV,{superstate:this.plugin.superstate,header:!1}))):this.plugin.ui.manager.eventsDispatch.addOnceListener("windowReady",()=>{this.constructInlineContext()})}};var wRe=require("obsidian"),qV=ge(Me());var RV=require("obsidian"),bRe=ge(jo());var ZLe=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var INt=/["&'<>`]/g,BNt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,LNt=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,RNt=/[|\\{}()[\]^$+*?.]/g,eRe=new WeakMap;function tRe(e,t){if(e=e.replace(t.subset?qNt(t.subset):INt,n),t.subset||t.escapeOnly)return e;return e.replace(BNt,r).replace(LNt,n);function r(i,a,o){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(a+2),t)}function n(i,a,o){return t.format(i.charCodeAt(0),o.charCodeAt(a+1),t)}}function qNt(e){let t=eRe.get(e);return t||(t=$Nt(e),eRe.set(e,t)),t}function $Nt(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(RNt,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var zNt=/[\dA-Fa-f]/;function rRe(e,t,r){let n="&#x"+e.toString(16).toUpperCase();return r&&t&&!zNt.test(String.fromCharCode(t))?n:n+";"}var UNt=/\d/;function nRe(e,t,r){let n="&#"+String(e);return r&&t&&!UNt.test(String.fromCharCode(t))?n:n+";"}var iRe=["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"];var MV={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"};var aRe=["cent","copy","divide","gt","lt","not","para","times"];var oRe={}.hasOwnProperty,nle={},OV;for(OV in MV)oRe.call(MV,OV)&&(nle[MV[OV]]=OV);var HNt=/[^\dA-Za-z]/;function sRe(e,t,r,n){let i=String.fromCharCode(e);if(oRe.call(nle,i)){let a=nle[i],o="&"+a;return r&&iRe.includes(a)&&!aRe.includes(a)&&(!n||t&&t!==61&&HNt.test(String.fromCharCode(t)))?o:o+";"}return""}function lRe(e,t,r){let n=rRe(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=sRe(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){let a=nRe(e,t,r.omitOptionalSemicolons);a.length<n.length&&(n=a)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function Sv(e,t){return tRe(e,Object.assign({format:lRe},t))}var VNt=/^>|^->|<!--|-->|--!>|<!-$/g,GNt=[">"],WNt=["<",">"];function uRe(e,t,r,n){return n.settings.bogusComments?"<?"+Sv(e.value,Object.assign({},n.settings.characterReferences,{subset:GNt}))+">":"<!--"+e.value.replace(VNt,i)+"-->";function i(a){return Sv(a,Object.assign({},n.settings.characterReferences,{subset:WNt}))}}function cRe(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}var QNt=/[ \t\n\f\r]/g;function L2(e){return typeof e=="object"?e.type==="text"?fRe(e.value):!1:fRe(e)}function fRe(e){return e.replace(QNt,"")===""}var ws=dRe(1),ile=dRe(-1),YNt=[];function dRe(e){return t;function t(r,n,i){let a=r?r.children:YNt,o=(n||0)+e,s=a[o];if(!i)for(;s&&L2(s);)o+=e,s=a[o];return s}}var XNt={}.hasOwnProperty;function FV(e){return t;function t(r,n,i){return XNt.call(e,r.tagName)&&e[r.tagName](r,n,i)}}var ZF=FV({body:JNt,caption:ale,colgroup:ale,dd:r3t,dt:t3t,head:ale,html:KNt,li:e3t,optgroup:n3t,option:i3t,p:ZNt,rp:pRe,rt:pRe,tbody:o3t,td:mRe,tfoot:s3t,th:mRe,thead:a3t,tr:l3t});function ale(e,t,r){let n=ws(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&L2(n.value.charAt(0)))}function KNt(e,t,r){let n=ws(r,t);return!n||n.type!=="comment"}function JNt(e,t,r){let n=ws(r,t);return!n||n.type!=="comment"}function ZNt(e,t,r){let n=ws(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function e3t(e,t,r){let n=ws(r,t);return!n||n.type==="element"&&n.tagName==="li"}function t3t(e,t,r){let n=ws(r,t);return Boolean(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function r3t(e,t,r){let n=ws(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function pRe(e,t,r){let n=ws(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function n3t(e,t,r){let n=ws(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function i3t(e,t,r){let n=ws(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function a3t(e,t,r){let n=ws(r,t);return Boolean(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function o3t(e,t,r){let n=ws(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function s3t(e,t,r){return!ws(r,t)}function l3t(e,t,r){let n=ws(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function mRe(e,t,r){let n=ws(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}var hRe=FV({body:f3t,colgroup:d3t,head:c3t,html:u3t,tbody:p3t});function u3t(e){let t=ws(e,-1);return!t||t.type!=="comment"}function c3t(e){let t=new Set;for(let n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}let r=e.children[0];return!r||r.type==="element"}function f3t(e){let t=ws(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&L2(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function d3t(e,t,r){let n=ile(r,t),i=ws(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&ZF(n,r.children.indexOf(n),r)?!1:Boolean(i&&i.type==="element"&&i.tagName==="col")}function p3t(e,t,r){let n=ile(r,t),i=ws(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&ZF(n,r.children.indexOf(n),r)?!1:Boolean(i&&i.type==="element"&&i.tagName==="tr")}var jV={name:[[` |