2024-01-30 14:46:01 +00:00
( ( ) => { var $0 = Object . create ; var mp = Object . defineProperty ; var U0 = Object . getOwnPropertyDescriptor ; var W0 = Object . getOwnPropertyNames ; var q0 = Object . getPrototypeOf , G0 = Object . prototype . hasOwnProperty ; var hp = ( t => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy ( t , { get : ( o , n ) => ( typeof require < "u" ? require : o ) [ n ] } ) : t ) ( function ( t ) { if ( typeof require < "u" ) return require . apply ( this , arguments ) ; throw Error ( 'Dynamic require of "' + t + '" is not supported' ) } ) ; var Nt = ( t , o ) => ( ) => ( o || t ( ( o = { exports : { } } ) . exports , o ) , o . exports ) ; var K0 = ( t , o , n , s ) => { if ( o && typeof o == "object" || typeof o == "function" ) for ( let d of W0 ( o ) ) ! G0 . call ( t , d ) && d !== n && mp ( t , d , { get : ( ) => o [ d ] , enumerable : ! ( s = U0 ( o , d ) ) || s . enumerable } ) ; return t } ; var gp = ( t , o , n ) => ( n = t != null ? $0 ( q0 ( t ) ) : { } , K0 ( o || ! t || ! t . _ _esModule ? mp ( n , "default" , { value : t , enumerable : ! 0 } ) : n , t ) ) ; var ir = Nt ( ( qu , Gu ) => { ( function ( t , o ) { typeof qu == "object" && typeof Gu < "u" ? Gu . exports = o ( ) : typeof define == "function" && define . amd ? define ( o ) : ( t = t || self , t . CodeMirror = o ( ) ) } ) ( qu , function ( ) { "use strict" ; var t = navigator . userAgent , o = navigator . platform , n = /gecko\/\d/i . test ( t ) , s = /MSIE \d/ . test ( t ) , d = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/ . exec ( t ) , u = /Edge\/(\d+)/ . exec ( t ) , c = s || d || u , m = c && ( s ? document . documentMode || 6 : + ( u || d ) [ 1 ] ) , g = ! u && /WebKit\// . test ( t ) , k = g && /Qt\/\d+\.\d+/ . test ( t ) , x = ! u && /Chrome\/(\d+)/ . exec ( t ) , _ = x && + x [ 1 ] , D = /Opera\// . test ( t ) , O = /Apple Computer/ . test ( navigator . vendor ) , H = /Mac OS X 1\d\D([8-9]|\d\d)\D/ . test ( t ) , I = /PhantomJS/ . test ( t ) , R = O && ( /Mobile\/\w+/ . test ( t ) || navigator . maxTouchPoints > 2 ) , j = /Android/ . test ( t ) , Y = R || j || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i . test ( t ) , p = R || /Mac/ . test ( o ) , v = /\bCrOS\b/ . test ( t ) , w = /win/i . test ( o ) , C = D && t . match ( /Version\/(\d*\.\d*)/ ) ; C && ( C = Number ( C [ 1 ] ) ) , C && C >= 15 && ( D = ! 1 , g = ! 0 ) ; var T = p && ( k || D && ( C == null || C < 12.11 ) ) , z = n || c && m >= 9 ; function A ( e ) { return new RegExp ( "(^|\\s)" + e + "(?:$|\\s)\\s*" ) } var V = function ( e , r ) { var a = e . className , i = A ( r ) . exec ( a ) ; if ( i ) { var l = a . slice ( i . index + i [ 0 ] . length ) ; e . className = a . slice ( 0 , i . index ) + ( l ? i [ 1 ] + l : "" ) } } ; function Z ( e ) { for ( var r = e . childNodes . length ; r > 0 ; -- r ) e . removeChild ( e . firstChild ) ; return e } function q ( e , r ) { return Z ( e ) . appendChild ( r ) } function L ( e , r , a , i ) { var l = document . createElement ( e ) ; if ( a && ( l . className = a ) , i && ( l . style . cssText = i ) , typeof r == "string" ) l . appendChild ( document . createTextNode ( r ) ) ; else if ( r ) for ( var f = 0 ; f < r . length ; ++ f ) l . appendChild ( r [ f ] ) ; return l } function U ( e , r , a , i ) { var l = L ( e , r , a , i ) ; return l . setAttribute ( "role" , "presentation" ) , l } var N ; document . createRange ? N = function ( e , r , a , i ) { var l = document . createRange ( ) ; return l . setEnd ( i || e , a ) , l . setStart ( e , r ) , l } : N = function ( e , r , a ) { var i = document . body . createTextRange ( ) ; try { i . moveToElementText ( e . parentNode ) } catch { return i } return i . collapse ( ! 0 ) , i . moveEnd ( "character" , a ) , i . moveStart ( "character" , r ) , i } ; function G ( e , r ) { if ( r . nodeType == 3 && ( r = r . parentNode ) , e . contains ) return e . contains ( r ) ; do if ( r . nodeType == 11 && ( r = r . host ) , r == e ) return ! 0 ; while ( r = r . parentNode ) } function J ( e ) { var r = e . ownerDocument || e , a ; try { a = e . activeElement } catch { a = r . body || null } for ( ; a && a . shadowRoot && a . shadowRoot . activeElement ; ) a = a . shadowRoot . activeElement ; return a } function ne ( e , r ) { var a = e . className ; A ( r ) . test ( a ) || ( e . className += ( a ? " " : "" ) + r ) } function Ne ( e , r ) { for ( var a = e . split ( " " ) , i = 0 ; i < a . length ; i ++ ) a [ i ] && ! A ( a [ i ] ) . test ( r ) && ( r += " " + a [ i ] ) ; return r } var P = function ( e ) { e . select ( ) } ; R ? P = function ( e ) { e . selectionStart = 0 , e . selectionEnd = e . value . length } : c && ( P = function ( e ) { try { e . select ( ) } catch { } } ) ; function S ( e ) { return e . display . wrapper . ownerDocument } function fe ( e ) { return Le ( e . display . wrapper ) } function Le ( e ) { return e . getRootNode ? e . getRootNode ( ) : e . ownerDocument } function _e ( e ) { return S ( e ) . defaultView } function Ke ( e ) { var r = Array . prototype . slice . call ( arguments , 1 ) ; return function ( ) { return e . apply ( null , r ) } } function Ge ( e , r , a ) { r || ( r = { } ) ; for ( var i in e ) e . hasOwnProperty ( i ) && ( a !== ! 1 || ! r . hasOwnProperty ( i ) ) && ( r [ i ] = e [ i ] ) ; return r } function X ( e , r , a , i , l ) { r == null && ( r = e . search ( /[^\s\u00a0]/ ) , r == - 1 && ( r = e . length ) ) ; for ( var f = i || 0 , h = l || 0 ; ; ) { var b = e . indexOf ( " " , f ) ; if ( b < 0 || b >= r ) return h + ( r - f ) ; h += b - f , h += a - h % a , f = b + 1 } } var ce = function ( ) { this . id = null , this . f = null , this . time = 0 , this . handler = Ke ( this . onTimeout , this ) } ; ce . prototype . onTimeout = function ( e ) { e . id = 0 , e . time <= + new
b ` .split(/ \n /).length!=3?function(e){for(var r=0,a=[],i=e.length;r<=i;){var l=e.indexOf( `
` ,r);l==-1&&(l=e.length);var f=e.slice(r,e.charAt(l-1)==" \r "?l-1:l),h=f.indexOf(" \r ");h!=-1?(a.push(f.slice(0,h)),r+=h+1):(a.push(f),r=l+1)}return a}:function(e){return e.split(/ \r \n ?| \n /)},Bb=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var r;try{r=e.ownerDocument.selection.createRange()}catch{}return!r||r.parentElement()!=e?!1:r.compareEndPoints("StartToEnd",r)!=0},Ib=function(){var e=L("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Cl=null;function Hb(e){if(Cl!=null)return Cl;var r=q(e,L("span","x")),a=r.getBoundingClientRect(),i=N(r,0,1).getBoundingClientRect();return Cl=Math.abs(a.left-i.left)>1}var Sl={},pn={};function jb(e,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),Sl[e]=r}function Vb(e,r){pn[e]=r}function ca(e){if(typeof e=="string"&&pn.hasOwnProperty(e))e=pn[e];else if(e&&typeof e.name=="string"&&pn.hasOwnProperty(e.name)){var r=pn[e.name];typeof r=="string"&&(r={name:r}),e=me(r,e),e.name=r.name}else{if(typeof e=="string"&&/^[ \w \- ]+ \/ [ \w \- ]+ \+ xml $ /.test(e))return ca("application/xml");if(typeof e=="string"&&/^[ \w \- ]+ \/ [ \w \- ]+ \+ json $ /.test(e))return ca("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Al(e,r){r=ca(r);var a=Sl[r.name];if(!a)return Al(e,"text/plain");var i=a(e,r);if(mn.hasOwnProperty(r.name)){var l=mn[r.name];for(var f in l)l.hasOwnProperty(f)&&(i.hasOwnProperty(f)&&(i["_"+f]=i[f]),i[f]=l[f])}if(i.name=r.name,r.helperType&&(i.helperType=r.helperType),r.modeProps)for(var h in r.modeProps)i[h]=r.modeProps[h];return i}var mn={};function $ b(e,r){var a=mn.hasOwnProperty(e)?mn[e]:mn[e]={};Ge(r,a)}function Lo(e,r){if(r===!0)return r;if(e.copyState)return e.copyState(r);var a={};for(var i in r){var l=r[i];l instanceof Array&&(l=l.concat([])),a[i]=l}return a}function Nl(e,r){for(var a;e.innerMode&&(a=e.innerMode(r),!(!a||a.mode==e));)r=a.state,e=a.mode;return a||{mode:e,state:r}}function pc(e,r,a){return e.startState?e.startState(r,a):!0}var gt=function(e,r,a){this.pos=this.start=0,this.string=e,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};gt.prototype.eol=function(){return this.pos>=this.string.length},gt.prototype.sol=function(){return this.pos==this.lineStart},gt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},gt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},gt.prototype.eat=function(e){var r=this.string.charAt(this.pos),a;if(typeof e=="string"?a=r==e:a=r&&(e.test?e.test(r):e(r)),a)return++this.pos,r},gt.prototype.eatWhile=function(e){for(var r=this.pos;this.eat(e););return this.pos>r},gt.prototype.eatSpace=function(){for(var e=this.pos;/[ \s \u 00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},gt.prototype.skipToEnd=function(){this.pos=this.string.length},gt.prototype.skipTo=function(e){var r=this.string.indexOf(e,this.pos);if(r>-1)return this.pos=r,!0},gt.prototype.backUp=function(e){this.pos-=e},gt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=X(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?X(this.string,this.lineStart,this.tabSize):0)},gt.prototype.indentation=function(){return X(this.string,null,this.tabSize)-(this.lineStart?X(this.string,this.lineStart,this.tabSize):0)},gt.prototype.match=function(e,r,a){if(typeof e=="string"){var i=function(h){return a?h.toLowerCase():h},l=this.string.substr(this.pos,e.length);if(i(l)==i(e))return r!==!1&&(this.pos+=e.length),!0}else{var f=this.string.slice(this.pos).match(e);return f&&f.index>0?null:(f&&r!==!1&&(this.pos+=f[0].length),f)}},gt.prototype.current=function(){return this.string.slice(this.start,this.pos)},gt.prototype.hideFirstChars=function(e,r){this.lineStart+=e;try{return r()}finally{this.lineStart-=e}},gt.prototype.lookAhead=function(e){var r=this.lineOracle;return r&&r.lookAhead(e)},gt.proto
` ?(oe=M.appendChild(L("span",K[0]==" \r "?" \u 240D":" \u 2424","cm-invalidchar")),oe.setAttribute("cm-text",K[0]),e.col+=1):(oe=e.cm.options.specialCharPlaceholder(K[0]),oe.setAttribute("cm-text",K[0]),c&&m<9?M.appendChild(L("span",[oe])):M.appendChild(oe),e.col+=1);e.map.push(e.pos,e.pos+1,oe),e.pos++}}if(e.trailingSpace=b.charCodeAt(r.length-1)==32,a||i||l||E||f||h){var we=a||"";i&&(we+=i),l&&(we+=l);var be=L("span",[M],we,f);if(h)for(var ke in h)h.hasOwnProperty(ke)&&ke!="style"&&ke!="class"&&be.setAttribute(ke,h[ke]);return e.content.appendChild(be)}e.content.appendChild(M)}}function dv(e,r){if(e.length>1&&!/ /.test(e))return e;for(var a=r,i="",l=0;l<e.length;l++){var f=e.charAt(l);f==" "&&a&&(l==e.length-1||e.charCodeAt(l+1)==32)&&(f=" \x A0"),i+=f,a=f==" "}return i}function uv(e,r){return function(a,i,l,f,h,b,y){l=l?l+" cm-force-border":"cm-force-border";for(var E=a.pos,M=E+i.length;;){for(var B=void 0,K=0;K<r.length&&(B=r[K],!(B.to>E&&B.from<=E));K++);if(B.to>=M)return e(a,i,l,f,h,b,y);e(a,i.slice(0,B.to-E),l,f,null,b,y),f=null,i=i.slice(B.to-E),E=B.to}}}function Fc(e,r,a,i){var l=!i&&a.widgetNode;l&&e.map.push(e.pos,e.pos+r,l),!i&&e.cm.display.input.needsContentAttribute&&(l||(l=e.content.appendChild(document.createElement("span"))),l.setAttribute("cm-marker",a.id)),l&&(e.cm.display.input.setUneditable(l),e.content.appendChild(l)),e.pos+=r,e.trailingSpace=!1}function cv(e,r,a){var i=e.markedSpans,l=e.text,f=0;if(!i){for(var h=1;h<a.length;h+=2)r.addToken(r,l.slice(f,f=a[h]),Oc(a[h+1],r.cm.options));return}for(var b=l.length,y=0,E=1,M="",B,K,W=0,ee,oe,de,ge,we;;){if(W==y){ee=oe=de=K="",we=null,ge=null,W=1/0;for(var be=[],ke=void 0,Fe=0;Fe<i.length;++Fe){var Ae=i[Fe],Ue=Ae.marker;if(Ue.type=="bookmark"&&Ae.from==y&&Ue.widgetNode)be.push(Ue);else if(Ae.from<=y&&(Ae.to==null||Ae.to>y||Ue.collapsed&&Ae.to==y&&Ae.from==y)){if(Ae.to!=null&&Ae.to!=y&&W>Ae.to&&(W=Ae.to,oe=""),Ue.className&&(ee+=" "+Ue.className),Ue.css&&(K=(K?K+";":"")+Ue.css),Ue.startStyle&&Ae.from==y&&(de+=" "+Ue.startStyle),Ue.endStyle&&Ae.to==W&&(ke||(ke=[])).push(Ue.endStyle,Ae.to),Ue.title&&((we||(we={})).title=Ue.title),Ue.attributes)for(var nt in Ue.attributes)(we||(we={}))[nt]=Ue.attributes[nt];Ue.collapsed&&(!ge||zl(ge.marker,Ue)<0)&&(ge=Ae)}else Ae.from>y&&W>Ae.from&&(W=Ae.from)}if(ke)for(var St=0;St<ke.length;St+=2)ke[St+1]==W&&(oe+=" "+ke[St]);if(!ge||ge.from==y)for(var ft=0;ft<be.length;++ft)Fc(r,0,be[ft]);if(ge&&(ge.from||0)==y){if(Fc(r,(ge.to==null?b+1:ge.to)-y,ge.marker,ge.from==null),ge.to==null)return;ge.to==y&&(ge=!1)}}if(y>=b)break;for(var rr=Math.min(b,W);;){if(M){var Yt=y+M.length;if(!ge){var bt=Yt>rr?M.slice(0,rr-y):M;r.addToken(r,bt,B?B+ee:ee,de,y+bt.length==W?oe:"",K,we)}if(Yt>=rr){M=M.slice(rr-y),y=rr;break}y=Yt,de=""}M=l.slice(f,f=a[E++]),B=Oc(a[E++],r.cm.options)}}}function Mc(e,r,a){this.line=r,this.rest=rv(r),this.size=this.rest?et(te(this.rest))-a+1:1,this.node=this.text=null,this.hidden=ao(e,r)}function xa(e,r,a){for(var i=[],l,f=r;f<a;f=l){var h=new Mc(e.doc,Se(e.doc,f),f);l=f+h.size,i.push(h)}return i}var gn=null;function fv(e){gn?gn.ops.push(e):e.ownsGroup=gn={ops:[e],delayedCallbacks:[]}}function pv(e){var r=e.delayedCallbacks,a=0;do{for(;a<r.length;a++)r[a].call(null);for(var i=0;i<e.ops.length;i++){var l=e.ops[i];if(l.cursorActivityHandlers)for(;l.cursorActivityCalled<l.cursorActivityHandlers.length;)l.cursorActivityHandlers[l.cursorActivityCalled++].call(null,l.cm)}}while(a<r.length)}function mv(e,r){var a=e.ownsGroup;if(a)try{pv(a)}finally{gn=null,r(a)}}var ni=null;function Et(e,r){var a=er(e,r);if(a.length){var i=Array.prototype.slice.call(arguments,2),l;gn?l=gn.delayedCallbacks:ni?l=ni:(l=ni=[],setTimeout(hv,0));for(var f=function(b){l.push(function(){return a[b].apply(null,i)})},h=0;h<a.length;++h)f(h)}}function hv(){var e=ni;ni=null;for(var r=0;r<e.length;++r)e[r]()}function Pc(e,r,a,i){for(var l=0;l<r.changes.length;l++){var f=r.changes[l];f=="text"?bv(e,r):f=="gutter"?zc(e,r,a,i):f=="class"?jl(e,r):f=="widget"&&vv(e,r,i)}r.changes=null}function ii(e){return e.node==e.text&&(e.node=L("div",null,null,"position: rela
top : ` +ke+"px; width: "+(Fe??y-be)+ ` px ;
height : ` +(Ae-ke)+"px"))}function B(be,ke,Fe){var Ae=Se(l,be),Ue=Ae.text.length,nt,St;function ft(bt,Xt){return _a(e,ae(be,bt),"div",Ae,Xt)}function rr(bt,Xt,Lt){var yt=Qc(e,Ae,null,bt),vt=Xt=="ltr"==(Lt=="after")?"left":"right",pt=Lt=="after"?yt.begin:yt.end-(/ \s /.test(Ae.text.charAt(yt.end-1))?2:1);return ft(pt,vt)[vt]}var Yt=Wt(Ae,l.direction);return xt(Yt,ke||0,Fe??Ue,function(bt,Xt,Lt,yt){var vt=Lt=="ltr",pt=ft(bt,vt?"left":"right"),Zt=ft(Xt-1,vt?"right":"left"),Ln=ke==null&&bt==0,ho=Fe==null&&Xt==Ue,Rt=yt==0,Nr=!Yt||yt==Yt.length-1;if(Zt.top-pt.top<=3){var At=(E?Ln:ho)&&Rt,Dd=(E?ho:Ln)&&Nr,Wr=At?b:(vt?pt:Zt).left, $ o=Dd?y:(vt?Zt:pt).right;M(Wr,pt.top, $ o-Wr,pt.bottom)}else{var Uo,Vt,Fn,Cd;vt?(Uo=E&&Ln&&Rt?b:pt.left,Vt=E?y:rr(bt,Lt,"before"),Fn=E?b:rr(Xt,Lt,"after"),Cd=E&&ho&&Nr?y:Zt.right):(Uo=E?rr(bt,Lt,"before"):b,Vt=!E&&Ln&&Rt?y:pt.right,Fn=!E&&ho&&Nr?b:Zt.left,Cd=E?rr(Xt,Lt,"after"):y),M(Uo,pt.top,Vt-Uo,pt.bottom),pt.bottom<Zt.top&&M(b,pt.bottom,null,Zt.top),M(Fn,Zt.top,Cd-Fn,Zt.bottom)}(!nt||Da(pt,nt)<0)&&(nt=pt),Da(Zt,nt)<0&&(nt=Zt),(!St||Da(pt,St)<0)&&(St=pt),Da(Zt,St)<0&&(St=Zt)}),{start:nt,end:St}}var K=r.from(),W=r.to();if(K.line==W.line)B(K.line,K.ch,W.ch);else{var ee=Se(l,K.line),oe=Se(l,W.line),de=gr(ee)==gr(oe),ge=B(K.line,K.ch,de?ee.text.length+1:null).end,we=B(W.line,de?0:null,W.ch).start;de&&(ge.top<we.top-2?(M(ge.right,ge.top,null,ge.bottom),M(b,we.top,we.left,we.bottom)):M(ge.right,ge.top,we.left-ge.right,ge.bottom)),ge.bottom<we.top&&M(b,ge.bottom,null,we.top)}a.appendChild(f)}function Jl(e){if(e.state.focused){var r=e.display;clearInterval(r.blinker);var a=!0;r.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?r.blinker=setInterval(function(){e.hasFocus()||xn(e),r.cursorDiv.style.visibility=(a=!a)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}}function rf(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||td(e))}function ed(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&xn(e))},100)}function td(e,r){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(ht(e,"focus",e,r),e.state.focused=!0,ne(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),g&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Jl(e))}function xn(e,r){e.state.delayingBlurEvent||(e.state.focused&&(ht(e,"blur",e,r),e.state.focused=!1,V(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Ca(e){for(var r=e.display,a=r.lineDiv.offsetTop,i=Math.max(0,r.scroller.getBoundingClientRect().top),l=r.lineDiv.getBoundingClientRect().top,f=0,h=0;h<r.view.length;h++){var b=r.view[h],y=e.options.lineWrapping,E=void 0,M=0;if(!b.hidden){if(l+=b.line.height,c&&m<8){var B=b.node.offsetTop+b.node.offsetHeight;E=B-a,a=B}else{var K=b.node.getBoundingClientRect();E=K.bottom-K.top,!y&&b.text.firstChild&&(M=b.text.firstChild.getBoundingClientRect().right-K.left-1)}var W=b.line.height-E;if((W>.005||W<-.005)&&(l<i&&(f-=W),Dr(b.line,E),of(b.line),b.rest))for(var ee=0;ee<b.rest.length;ee++)of(b.rest[ee]);if(M>e.display.sizerWidth){var oe=Math.ceil(M/wn(e.display));oe>e.display.maxLineLength&&(e.display.maxLineLength=oe,e.display.maxLine=b.line,e.display.maxLineChanged=!0)}}}Math.abs(f)>2&&(r.scroller.scrollTop+=f)}function of(e){if(e.widgets)for(var r=0;r<e.widgets.length;++r){var a=e.widgets[r],i=a.node.parentNode;i&&(a.height=i.offsetHeight)}}function Sa(e,r,a){var i=a&&a.top!=null?Math.max(0,a.top):e.scroller.scrollTop;i=Math.floor(i-ya(e));var l=a&&a.bottom!=null?a.bottom:i+e.wrapper.clientHeight,f=Mo(r,i),h=Mo(r,l);if(a&&a.ensure){var b=a.ensure.from.line,y=a.ensure.to.line;b<f?(f=b,h=Mo(r,jr(Se(r,b))+e.wrapper.clientHeight)):Math.min(y,r.lastLine())>=h&&(f=Mo(r,jr(Se(r,y))-e.wrapper.clientH
top : ` +(r.top-a.viewOffset-ya(e.display))+ ` px ;
height : ` +(r.bottom-r.top+Sr(e)+a.barHeight)+ ` px ;
left : ` +r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");e.display.lineSpace.appendChild(h),h.scrollIntoView(l),e.display.lineSpace.removeChild(h)}}}function Lv(e,r,a,i){i==null&&(i=0);var l;!e.options.lineWrapping&&r==a&&(a=r.sticky=="before"?ae(r.line,r.ch+1,"before"):r,r=r.ch?ae(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r);for(var f=0;f<5;f++){var h=!1,b=br(e,r),y=!a||a==r?b:br(e,a);l={left:Math.min(b.left,y.left),top:Math.min(b.top,y.top)-i,right:Math.max(b.left,y.left),bottom:Math.max(b.bottom,y.bottom)+i};var E=rd(e,l),M=e.doc.scrollTop,B=e.doc.scrollLeft;if(E.scrollTop!=null&&(ui(e,E.scrollTop),Math.abs(e.doc.scrollTop-M)>1&&(h=!0)),E.scrollLeft!=null&&(Io(e,E.scrollLeft),Math.abs(e.doc.scrollLeft-B)>1&&(h=!0)),!h)break}return l}function Fv(e,r){var a=rd(e,r);a.scrollTop!=null&&ui(e,a.scrollTop),a.scrollLeft!=null&&Io(e,a.scrollLeft)}function rd(e,r){var a=e.display,i=vn(e.display);r.top<0&&(r.top=0);var l=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:a.scroller.scrollTop,f= $ l(e),h={};r.bottom-r.top>f&&(r.bottom=r.top+f);var b=e.doc.height+Vl(a),y=r.top<i,E=r.bottom>b-i;if(r.top<l)h.scrollTop=y?0:r.top;else if(r.bottom>l+f){var M=Math.min(r.top,(E?b:r.bottom)-f);M!=l&&(h.scrollTop=M)}var B=e.options.fixedGutter?0:a.gutters.offsetWidth,K=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:a.scroller.scrollLeft-B,W=Po(e)-a.gutters.offsetWidth,ee=r.right-r.left>W;return ee&&(r.right=r.left+W),r.left<10?h.scrollLeft=0:r.left<K?h.scrollLeft=Math.max(0,r.left+B-(ee?0:10)):r.right>W+K-3&&(h.scrollLeft=r.right+(ee?0:10)-W),h}function od(e,r){r!=null&&(Aa(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+r)}function yn(e){Aa(e);var r=e.getCursor();e.curOp.scrollToPos={from:r,to:r,margin:e.options.cursorScrollMargin}}function di(e,r,a){(r!=null||a!=null)&&Aa(e),r!=null&&(e.curOp.scrollLeft=r),a!=null&&(e.curOp.scrollTop=a)}function Mv(e,r){Aa(e),e.curOp.scrollToPos=r}function Aa(e){var r=e.curOp.scrollToPos;if(r){e.curOp.scrollToPos=null;var a=Xc(e,r.from),i=Xc(e,r.to);nf(e,a,i,r.margin)}}function nf(e,r,a,i){var l=rd(e,{left:Math.min(r.left,a.left),top:Math.min(r.top,a.top)-i,right:Math.max(r.right,a.right),bottom:Math.max(r.bottom,a.bottom)+i});di(e,l.scrollLeft,l.scrollTop)}function ui(e,r){Math.abs(e.doc.scrollTop-r)<2||(n||id(e,{top:r}),af(e,r,!0),n&&id(e),pi(e,100))}function af(e,r,a){r=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,r)),!(e.display.scroller.scrollTop==r&&!a)&&(e.doc.scrollTop=r,e.display.scrollbars.setScrollTop(r),e.display.scroller.scrollTop!=r&&(e.display.scroller.scrollTop=r))}function Io(e,r,a,i){r=Math.max(0,Math.min(r,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((a?r==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-r)<2)&&!i)&&(e.doc.scrollLeft=r,cf(e),e.display.scroller.scrollLeft!=r&&(e.display.scroller.scrollLeft=r),e.display.scrollbars.setScrollLeft(r))}function ci(e){var r=e.display,a=r.gutters.offsetWidth,i=Math.round(e.doc.height+Vl(e.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:e.options.fixedGutter?a:0,docHeight:i,scrollHeight:i+Sr(e)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:a}}var Ho=function(e,r,a){this.cm=a;var i=this.vert=L("div",[L("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),l=this.horiz=L("div",[L("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=l.tabIndex=-1,e(i),e(l),Ee(i,"scroll",function(){i.clientHeight&&r(i.scrollTop,"vertical")}),Ee(l,"scroll",function(){l.clientWidth&&r(l.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,c&&m<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ho.prototype.update=function(e){var r=e.scrollWidth>e.clientWidth+1,a=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=r?i+"px":"0";var l=e.viewHeight-(r?i:0);this.vert.firstChild.s
` },setDirection:Ct(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(r){return r.order=null}),this.cm&&Xv(this.cm))})}),Kt.prototype.eachLine=Kt.prototype.iter;var Vf=0;function d0(e){var r=this;if( $ f(r),!(_t(r,e)||Vr(r.display,e))){qt(e),c&&(Vf=+new Date);var a=zo(r,e,!0),i=e.dataTransfer.files;if(!(!a||r.isReadOnly()))if(i&&i.length&&window.FileReader&&window.File)for(var l=i.length,f=Array(l),h=0,b=function(){++h==l&&Dt(r,function(){a=Ie(r.doc,a);var W={from:a,to:a,text:r.doc.splitLines(f.filter(function(ee){return ee!=null}).join(r.doc.lineSeparator())),origin:"paste"};Dn(r.doc,W),Sf(r.doc,uo(Ie(r.doc,a),Ie(r.doc,co(W))))})()},y=function(W,ee){if(r.options.allowDropFileTypes&&ie(r.options.allowDropFileTypes,W.type)==-1){b();return}var oe=new FileReader;oe.onerror=function(){return b()},oe.onload=function(){var de=oe.result;if(/[ \x 00- \x 08 \x 0e- \x 1f]{2}/.test(de)){b();return}f[ee]=de,b()},oe.readAsText(W)},E=0;E<i.length;E++)y(i[E],E);else{if(r.state.draggingText&&r.doc.sel.contains(a)>-1){r.state.draggingText(e),setTimeout(function(){return r.display.input.focus()},20);return}try{var M=e.dataTransfer.getData("Text");if(M){var B;if(r.state.draggingText&&!r.state.draggingText.copy&&(B=r.listSelections()),Ma(r.doc,uo(a,a)),B)for(var K=0;K<B.length;++K)Cn(r.doc,"",B[K].anchor,B[K].head,"drag");r.replaceSelection(M,"around","paste"),r.display.input.focus()}}catch{}}}}function u0(e,r){if(c&&(!e.state.draggingText||+new Date-Vf<100)){ei(r);return}if(!(_t(e,r)||Vr(e.display,r))&&(r.dataTransfer.setData("Text",e.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!O)){var a=L("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",D&&(a.width=a.height=1,e.display.wrapper.appendChild(a),a._top=a.offsetTop),r.dataTransfer.setDragImage(a,0,0),D&&a.parentNode.removeChild(a)}}function c0(e,r){var a=zo(e,r);if(a){var i=document.createDocumentFragment();Ql(e,a,i),e.display.dragCursor||(e.display.dragCursor=L("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),q(e.display.dragCursor,i)}}function $ f(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Uf(e){if(document.getElementsByClassName){for(var r=document.getElementsByClassName("CodeMirror"),a=[],i=0;i<r.length;i++){var l=r[i].CodeMirror;l&&a.push(l)}a.length&&a[0].operation(function(){for(var f=0;f<a.length;f++)e(a[f])})}}var Wf=!1;function f0(){Wf||(p0(),Wf=!0)}function p0(){var e;Ee(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Uf(m0)},100))}),Ee(window,"blur",function(){return Uf(xn)})}function m0(e){var r=e.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,e.setSize()}for(var mo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:" ` ",219:" [ ",220:" \ \ ",221:" ] ",222:" ' ",224:" Mod ",63232:" Up ",63233:" Down ",63234:" Left ",63235:" Right ",63272:" Delete ",63273:" Home ",63275:" End ",63276:" PageUp ",63277:" PageDown ",63302:" Insert "},ki=0;ki<10;ki++)mo[ki+48]=mo[ki+96]=String(ki);for(var za=65;za<=90;za++)mo[za]=String.fromCharCode(za);for(var _i=1;_i<=12;_i++)mo[_i+111]=mo[_i+63235]=" F "+_i;var Ur={};Ur.basic={Left:" goCharLeft ",Right:" goCharRight ",Up:" goLineUp ",Down:" goLineDown ",End:" goLineEnd ",Home:" goLineStartSmart ",PageUp:" goPageUp ",PageDown:" goPageDown ",Delete:" delCharAfter ",Backspace:" delCharBefore "," Shift - Backspace ":" delCharBefore ",Tab:" defaultTab "," Shift - Tab ":" indentAuto ",Enter:" newlineAndIndent ",Insert:" toggleOverwrite ",Esc:" singleSelection "},Ur.pcDefault={" Ctrl - A ":" selectAll "," Ctrl - D ":" deleteLine "
` ,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Yf(e,r){var a=Se(e.doc,r),i=gr(a);return i!=a&&(r=et(i)),bd(!0,e,i,r,1)}function v0(e,r){var a=Se(e.doc,r),i=tv(a);return i!=a&&(r=et(i)),bd(!0,e,a,r,-1)}function Xf(e,r){var a=Yf(e,r.line),i=Se(e.doc,a.line),l=Wt(i,e.doc.direction);if(!l||l[0].level==0){var f=Math.max(a.ch,i.text.search(/ \S /)),h=r.line==a.line&&r.ch<=f&&r.ch;return ae(a.line,h?0:f,a.sticky)}return a}function Ia(e,r,a){if(typeof r=="string"&&(r=Ei[r],!r))return!1;e.display.input.ensurePolled();var i=e.display.shift,l=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),a&&(e.display.shift=!1),l=r(e)!=Ce}finally{e.display.shift=i,e.state.suppressEdits=!1}return l}function w0(e,r,a){for(var i=0;i<e.state.keyMaps.length;i++){var l=An(r,e.state.keyMaps[i],a,e);if(l)return l}return e.options.extraKeys&&An(r,e.options.extraKeys,a,e)||An(r,e.options.keyMap,a,e)}var x0=new ce;function Di(e,r,a,i){var l=e.state.keySeq;if(l){if(qf(r))return"handled";if(/ \' $ /.test(r)?e.state.keySeq=null:x0.set(50,function(){e.state.keySeq==l&&(e.state.keySeq=null,e.display.input.reset())}),Zf(e,l+" "+r,a,i))return!0}return Zf(e,r,a,i)}function Zf(e,r,a,i){var l=w0(e,r,i);return l=="multi"&&(e.state.keySeq=r),l=="handled"&&Et(e,"keyHandled",e,r,a),(l=="handled"||l=="multi")&&(qt(a),Jl(e)),!!l}function Qf(e,r){var a=Kf(r,!0);return a?r.shiftKey&&!e.state.keySeq?Di(e,"Shift-"+a,r,function(i){return Ia(e,i,!0)})||Di(e,a,r,function(i){if(typeof i=="string"?/^go[A-Z]/.test(i):i.motion)return Ia(e,i)}):Di(e,a,r,function(i){return Ia(e,i)}):!1}function y0(e,r,a){return Di(e,"'"+a+"'",r,function(i){return Ia(e,i,!0)})}var vd=null;function Jf(e){var r=this;if(!(e.target&&e.target!=r.display.input.getField())&&(r.curOp.focus=J(fe(r)),!_t(r,e))){c&&m<11&&e.keyCode==27&&(e.returnValue=!1);var a=e.keyCode;r.display.shift=a==16||e.shiftKey;var i=Qf(r,e);D&&(vd=i?a:null,!i&&a==88&&!Ib&&(p?e.metaKey:e.ctrlKey)&&r.replaceSelection("",null,"cut")),n&&!p&&!i&&a==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/ \b CodeMirror-crosshair \b /.test(r.display.lineDiv.className)&&k0(r)}}function k0(e){var r=e.display.lineDiv;ne(r,"CodeMirror-crosshair");function a(i){(i.keyCode==18||!i.altKey)&&(V(r,"CodeMirror-crosshair"),Ht(document,"keyup",a),Ht(document,"mouseover",a))}Ee(document,"keyup",a),Ee(document,"mouseover",a)}function ep(e){e.keyCode==16&&(this.doc.sel.shift=!1),_t(this,e)}function tp(e){var r=this;if(!(e.target&&e.target!=r.display.input.getField())&&!(Vr(r.display,e)||_t(r,e)||e.ctrlKey&&!e.altKey||p&&e.metaKey)){var a=e.keyCode,i=e.charCode;if(D&&a==vd){vd=null,qt(e);return}if(!(D&&(!e.which||e.which<10)&&Qf(r,e))){var l=String.fromCharCode(i??a);l!=" \b "&&(y0(r,e,l)||r.display.input.onKeyPress(e))}}}var _0=400,wd=function(e,r,a){this.time=e,this.pos=r,this.button=a};wd.prototype.compare=function(e,r,a){return this.time+_0>e&&Be(r,this.pos)==0&&a==this.button};var Ci,Si;function E0(e,r){var a=+new Date;return Si&&Si.compare(a,e,r)?(Ci=Si=null,"triple"):Ci&&Ci.compare(a,e,r)?(Si=new wd(a,e,r),Ci=null,"double"):(Ci=new wd(a,e,r),Si=null,"single")}function rp(e){var r=this,a=r.display;if(!(_t(r,e)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=e.shiftKey,Vr(a,e)){g||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!xd(r,e)){var i=zo(r,e),l=fc(e),f=i?E0(i,l):"single";_e(r).focus(),l==1&&r.state.selectingText&&r.state.selectingText(e),!(i&&D0(r,l,i,f,e))&&(l==1?i?S0(r,i,f,e):kl(e)==a.scroller&&qt(e):l==2?(i&&Fa(r.doc,i),setTimeout(function(){return a.input.focus()},20)):l==3&&(z?r.display.input.onContextMenu(e):ed(r)))}}}function D0(e,r,a,i,l){var f="Click";return i=="double"?f="Double"+f:i=="triple"&&(f="Triple"+f),f=(r==1?"Left":r==2?"Middle":"Right")+f,Di(e,Gf(f,l),l,function(h){if(typeof h=="string"&&(h=Ei[h]),!h)return!1;var b=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),b=h(e,a)!=Ce}finally{e.state.suppressEdits=!1}return b})}function C0(e,r,a){var i=e.getOption("configureMouse"),l=i?i(e,r,a):{};if(l.unit
` )==r){if(i.ranges.length%wr.text.length==0){E=[];for(var M=0;M<wr.text.length;M++)E.push(f.splitLines(wr.text[M]))}}else y.length==i.ranges.length&&e.options.pasteLinesPerSelection&&(E=se(y,function(ge){return[ge]}));for(var B=e.curOp.updateInput,K=i.ranges.length-1;K>=0;K--){var W=i.ranges[K],ee=W.from(),oe=W.to();W.empty()&&(a&&a>0?ee=ae(ee.line,ee.ch-a):e.state.overwrite&&!b?oe=ae(oe.line,Math.min(Se(f,oe.line).text.length,oe.ch+te(y).length)):b&&wr&&wr.lineWise&&wr.text.join( `
` )==y.join( `
` )&&(ee=oe=ae(ee.line,0)));var de={from:ee,to:oe,text:E?E[K%E.length]:y,origin:l||(b?"paste":e.state.cutIncoming>h?"cut":"+input")};Dn(e.doc,de),Et(e,"inputRead",e,de)}r&&!b&&dp(e,r),yn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=B),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function lp(e,r){var a=e.clipboardData&&e.clipboardData.getData("Text");if(a)return e.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&r.hasFocus()&&tr(r,function(){return kd(r,a,0,null,"paste")}),!0}function dp(e,r){if(!(!e.options.electricChars||!e.options.smartIndent))for(var a=e.doc.sel,i=a.ranges.length-1;i>=0;i--){var l=a.ranges[i];if(!(l.head.ch>100||i&&a.ranges[i-1].head.line==l.head.line)){var f=e.getModeAt(l.head),h=!1;if(f.electricChars){for(var b=0;b<f.electricChars.length;b++)if(r.indexOf(f.electricChars.charAt(b))>-1){h=Ai(e,l.head.line,"smart");break}}else f.electricInput&&f.electricInput.test(Se(e.doc,l.head.line).text.slice(0,l.head.ch))&&(h=Ai(e,l.head.line,"smart"));h&&Et(e,"electricInput",e,l.head.line)}}}function up(e){for(var r=[],a=[],i=0;i<e.doc.sel.ranges.length;i++){var l=e.doc.sel.ranges[i].head.line,f={anchor:ae(l,0),head:ae(l+1,0)};a.push(f),r.push(e.getRange(f.anchor,f.head))}return{text:r,ranges:a}}function _d(e,r,a,i){e.setAttribute("autocorrect",a?"on":"off"),e.setAttribute("autocapitalize",i?"on":"off"),e.setAttribute("spellcheck",!!r)}function cp(){var e=L("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),r=L("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?e.style.width="1000px":e.setAttribute("wrap","off"),R&&(e.style.border="1px solid black"),r}function R0(e){var r=e.optionHandlers,a=e.helpers={};e.prototype={constructor:e,focus:function(){_e(this).focus(),this.display.input.focus()},setOption:function(i,l){var f=this.options,h=f[i];f[i]==l&&i!="mode"||(f[i]=l,r.hasOwnProperty(i)&&Dt(this,r[i])(this,l,h),ht(this,"optionChange",this,i))},getOption:function(i){return this.options[i]},getDoc:function(){return this.doc},addKeyMap:function(i,l){this.state.keyMaps[l?"push":"unshift"](Ba(i))},removeKeyMap:function(i){for(var l=this.state.keyMaps,f=0;f<l.length;++f)if(l[f]==i||l[f].name==i)return l.splice(f,1),!0},addOverlay:jt(function(i,l){var f=i.token?i:e.getMode(this.options,i);if(f.startState)throw new Error("Overlays may not be stateful.");pe(this.state.overlays,{mode:f,modeSpec:i,opaque:l&&l.opaque,priority:l&&l.priority||0},function(h){return h.priority}),this.state.modeGen++,Gt(this)}),removeOverlay:jt(function(i){for(var l=this.state.overlays,f=0;f<l.length;++f){var h=l[f].modeSpec;if(h==i||typeof i=="string"&&h.name==i){l.splice(f,1),this.state.modeGen++,Gt(this);return}}}),indentLine:jt(function(i,l,f){typeof l!="string"&&typeof l!="number"&&(l==null?l=this.options.smartIndent?"smart":"prev":l=l?"add":"subtract"),ti(this.doc,i)&&Ai(this,i,l,f)}),indentSelection:jt(function(i){for(var l=this.doc.sel.ranges,f=-1,h=0;h<l.length;h++){var b=l[h];if(b.empty())b.head.line>f&&(Ai(this,b.head.line,i,!0),f=b.head.line,h==this.doc.sel.primIndex&&yn(this));else{var y=b.from(),E=b.to(),M=Math.max(f,y.line);f=Math.min(this.lastLine(),E.line-(E.ch?0:1))+1;for(var B=M;B<f;++B)Ai(this,B,i);var K=this.doc.sel.ranges;y.ch==0&&l.length==K.length&&K[h].from().ch>0&&md(this.doc,h,new Qe(y,K[h].to()), $ e)}}}),getTokenAt:function(i,l){return xc(this,i,l)},getLineTokens:function(i,l){return xc(this,ae(i),l,!0)},getTokenTypeAt:function(i){i=Ie(this.doc,i);var l=bc(this,Se(this.doc,i.line)),f=0,h=(l.length-1)/2,b=i.ch,y;if(b==0)y=l[2];else for(;;){var E=f+h>>1;if((E?l[E*2-1]:0)>=b)h=E;else if(l[E*2+1]<b)f=E+1;else{y=l[E*2+2];break}}var M=y?y.indexOf("overlay "):-1;return M<0?y:M==0?null:y.slice(0,M-1)},getModeAt:function(i){var l=this.doc.mode;return l.innerMode?e.innerMode(l,this.getTokenAt(i).state).mode:l},getHelper:function(i,l){return this.getHelpers(i,l)[0]},getHelpers:function(i,l){var f=[];if(!a.hasOwnProperty(l))return f;var h=a[l],b=this.getModeAt(i);if(typeof b[l]=="string")h[
` ,de=Te(oe,W)?"w":K&&oe== `
` ?"n":!K||/ \s /.test(oe)?null:"p";if(K&&!ee&&!de&&(de="s"),B&&B!=de){a<0&&(a=1,M(),r.sticky="after");break}if(de&&(B=de),a>0&&!M(!ee))break}var ge=Pa(e,r,f,h,!0);return Ll(f,ge)&&(ge.hitSide=!0),ge}function fp(e,r,a,i){var l=e.doc,f=r.left,h;if(i=="page"){var b=Math.min(e.display.wrapper.clientHeight,_e(e).innerHeight||l(e).documentElement.clientHeight),y=Math.max(b-.5*vn(e.display),3);h=(a>0?r.bottom:r.top)+a*y}else i=="line"&&(h=a>0?r.bottom+3:r.top-3);for(var E;E=Gl(e,f,h),!!E.outside;){if(a<0?h<=0:h>=l.height){E.hitSide=!0;break}h+=a*5}return E}var tt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ce,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};tt.prototype.init=function(e){var r=this,a=this,i=a.cm,l=a.div=e.lineDiv;l.contentEditable=!0,_d(l,i.options.spellcheck,i.options.autocorrect,i.options.autocapitalize);function f(b){for(var y=b.target;y;y=y.parentNode){if(y==l)return!0;if(/ \b CodeMirror-(?:line)?widget \b /.test(y.className))break}return!1}Ee(l,"paste",function(b){!f(b)||_t(i,b)||lp(b,i)||m<=11&&setTimeout(Dt(i,function(){return r.updateFromDOM()}),20)}),Ee(l,"compositionstart",function(b){r.composing={data:b.data,done:!1}}),Ee(l,"compositionupdate",function(b){r.composing||(r.composing={data:b.data,done:!1})}),Ee(l,"compositionend",function(b){r.composing&&(b.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),Ee(l,"touchstart",function(){return a.forceCompositionEnd()}),Ee(l,"input",function(){r.composing||r.readFromDOMSoon()});function h(b){if(!(!f(b)||_t(i,b))){if(i.somethingSelected())ja({lineWise:!1,text:i.getSelections()}),b.type=="cut"&&i.replaceSelection("",null,"cut");else if(i.options.lineWiseCopyCut){var y=up(i);ja({lineWise:!0,text:y.text}),b.type=="cut"&&i.operation(function(){i.setSelections(y.ranges,0, $ e),i.replaceSelection("",null,"cut")})}else return;if(b.clipboardData){b.clipboardData.clearData();var E=wr.text.join( `
` );if(b.clipboardData.setData("Text",E),b.clipboardData.getData("Text")==E){b.preventDefault();return}}var M=cp(),B=M.firstChild;_d(B),i.display.lineSpace.insertBefore(M,i.display.lineSpace.firstChild),B.value=wr.text.join( `
` );var K=J(Le(l));P(B),setTimeout(function(){i.display.lineSpace.removeChild(M),K.focus(),K==l&&a.showPrimarySelection()},50)}}Ee(l,"copy",h),Ee(l,"cut",h)},tt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},tt.prototype.prepareSelection=function(){var e=tf(this.cm,!1);return e.focus=J(Le(this.div))==this.div,e},tt.prototype.showSelection=function(e,r){!e||!this.cm.display.view.length||((e.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(e))},tt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},tt.prototype.showPrimarySelection=function(){var e=this.getSelection(),r=this.cm,a=r.doc.sel.primary(),i=a.from(),l=a.to();if(r.display.viewTo==r.display.viewFrom||i.line>=r.display.viewTo||l.line<r.display.viewFrom){e.removeAllRanges();return}var f=Va(r,e.anchorNode,e.anchorOffset),h=Va(r,e.focusNode,e.focusOffset);if(!(f&&!f.bad&&h&&!h.bad&&Be(pa(f,h),i)==0&&Be(fa(f,h),l)==0)){var b=r.display.view,y=i.line>=r.display.viewFrom&&pp(r,i)||{node:b[0].measure.map[2],offset:0},E=l.line<r.display.viewTo&&pp(r,l);if(!E){var M=b[b.length-1].measure,B=M.maps?M.maps[M.maps.length-1]:M.map;E={node:B[B.length-1],offset:B[B.length-2]-B[B.length-3]}}if(!y||!E){e.removeAllRanges();return}var K=e.rangeCount&&e.getRangeAt(0),W;try{W=N(y.node,y.offset,E.offset,E.node)}catch{}W&&(!n&&r.state.focused?(e.collapse(y.node,y.offset),W.collapsed||(e.removeAllRanges(),e.addRange(W))):(e.removeAllRanges(),e.addRange(W)),K&&e.anchorNode==null?e.addRange(K):n&&this.startGracePeriod()),this.rememberSelection()}},tt.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},tt.prototype.showMultipleSelections=function(e){q(this.cm.display.cursorDiv,e.cursors),q(this.cm.display.selectionDiv,e.selection)},tt.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},tt.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var r=e.getRangeAt(0).commonAncestorContainer;return G(this.div,r)},tt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||J(Le(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},tt.prototype.blur=function(){this.div.blur()},tt.prototype.getField=function(){return this.div},tt.prototype.supportsTouch=function(){return!0},tt.prototype.receivedFocus=function(){var e=this,r=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):tr(this.cm,function(){return r.cm.curOp.selectionChanged=!0});function a(){r.cm.state.focused&&(r.pollSelection(),r.polling.set(r.cm.options.pollInterval,a))}this.polling.set(this.cm.options.pollInterval,a)},tt.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},tt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),r=this.cm;if(j&&x&&this.cm.display.gutterSpecs.length&&z0(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=Va(r,e.anchorNode,e.anchorOffset),i=Va(r,e.focusNode,e.focusOffset);a&&i&&tr(r,function(){Pt(r.doc,uo(a,i), $ e),(a.bad||i.bad)&&(r.curOp.selectionChanged=!0)})}}},tt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,r=e.display,a=e.doc.sel.primary(),i=a.from(),l=a.to();if(i.ch==0&&i.line>e.firstLine()&&(i=ae(i.line-1,Se(e.doc,i.line-1).length)),l.ch==Se(e.doc,l.line).
` ),P(l))}else return;h.type=="cut"&&(i.state.cutIncoming=+new Date)}}Ee(l,"cut",f),Ee(l,"copy",f),Ee(e.scroller,"paste",function(h){if(!(Vr(e,h)||_t(i,h))){if(!l.dispatchEvent){i.state.pasteIncoming=+new Date,a.focus();return}var b=new Event("paste");b.clipboardData=h.clipboardData,l.dispatchEvent(b)}}),Ee(e.lineSpace,"selectstart",function(h){Vr(e,h)||qt(h)}),Ee(l,"compositionstart",function(){var h=i.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:h,range:i.markText(h,i.getCursor("to"),{className:"CodeMirror-composing"})}}),Ee(l,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},mt.prototype.createField=function(e){this.wrapper=cp(),this.textarea=this.wrapper.firstChild;var r=this.cm.options;_d(this.textarea,r.spellcheck,r.autocorrect,r.autocapitalize)},mt.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},mt.prototype.prepareSelection=function(){var e=this.cm,r=e.display,a=e.doc,i=tf(e);if(e.options.moveInputWithCursor){var l=br(e,a.sel.primary().head,"div"),f=r.wrapper.getBoundingClientRect(),h=r.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,l.top+h.top-f.top)),i.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,l.left+h.left-f.left))}return i},mt.prototype.showSelection=function(e){var r=this.cm,a=r.display;q(a.cursorDiv,e.cursors),q(a.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},mt.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var r=this.cm;if(this.resetting=!0,r.somethingSelected()){this.prevInput="";var a=r.getSelection();this.textarea.value=a,r.state.focused&&P(this.textarea),c&&m>=9&&(this.hasSelection=a)}else e||(this.prevInput=this.textarea.value="",c&&m>=9&&(this.hasSelection=null));this.resetting=!1}},mt.prototype.getField=function(){return this.textarea},mt.prototype.supportsTouch=function(){return!1},mt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Y||J(Le(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},mt.prototype.blur=function(){this.textarea.blur()},mt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},mt.prototype.receivedFocus=function(){this.slowPoll()},mt.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},mt.prototype.fastPoll=function(){var e=!1,r=this;r.pollingFast=!0;function a(){var i=r.poll();!i&&!e?(e=!0,r.polling.set(60,a)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,a)},mt.prototype.poll=function(){var e=this,r=this.cm,a=this.textarea,i=this.prevInput;if(this.contextMenuPending||this.resetting||!r.state.focused||Bb(a)&&!i&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var l=a.value;if(l==i&&!r.somethingSelected())return!1;if(c&&m>=9&&this.hasSelection===l||p&&/[ \u f700- \u f7ff]/.test(l))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var f=l.charCodeAt(0);if(f==8203&&!i&&(i=" \u 200B"),f==8666)return this.reset(),this.cm.execCommand("undo")}for(var h=0,b=Math.min(i.length,l.length);h<b&&i.charCodeAt(h)==l.charCodeAt(h);)++h;return tr(r,function(){kd(r,l.slice(h),i.length-h,null,e.composing?"*compose":null),l.length>1e3||l.indexOf( `
` )>-1?a.value=e.prevInput="":e.prevInput=l,e.composing&&(e.composing.range.clear(),e.composing.range=r.markText(e.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},mt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},mt.prototype.onKeyPress=function(){c&&m>=9&&(this.hasSelection=null),this.fastPoll()},mt.prototype.onContextMenu=function(e){var r=this,a=r.cm,i=a.display,l=r.textarea;r.contextMenuPending&&r.contextMenuPending();var f=zo(a,e),h=i.scroller.scrollTop;if(!f||D)return;var b=a.options.resetSelectionOnContextMenu;b&&a.doc.sel.contains(f)==-1&&Dt(a,Pt)(a.doc,uo(f), $ e);var y=l.style.cssText,E=r.wrapper.style.cssText,M=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",l.style.cssText= ` position : absolute ; width : 30 px ; height : 30 px ;
top : ` +(e.clientY-M.top-5)+"px; left: "+(e.clientX-M.left-5)+ ` px ;
z - index : 1000 ; background : ` +(c?"rgba(255, 255, 255, .05)":"transparent")+ ` ;
outline : none ; border - width : 0 ; outline : none ; overflow : hidden ; opacity : . 05 ; filter : alpha ( opacity = 5 ) ; ` ;var B;g&&(B=l.ownerDocument.defaultView.scrollY),i.input.focus(),g&&l.ownerDocument.defaultView.scrollTo(null,B),i.input.reset(),a.somethingSelected()||(l.value=r.prevInput=" "),r.contextMenuPending=W,i.selForContextMenu=a.doc.sel,clearTimeout(i.detectingSelectAll);function K(){if(l.selectionStart!=null){var oe=a.somethingSelected(),de=" \u 200B"+(oe?l.value:"");l.value=" \u 21DA",l.value=de,r.prevInput=oe?"":" \u 200B",l.selectionStart=1,l.selectionEnd=de.length,i.selForContextMenu=a.doc.sel}}function W(){if(r.contextMenuPending==W&&(r.contextMenuPending=!1,r.wrapper.style.cssText=E,l.style.cssText=y,c&&m<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=h),l.selectionStart!=null)){(!c||c&&m<9)&&K();var oe=0,de=function(){i.selForContextMenu==a.doc.sel&&l.selectionStart==0&&l.selectionEnd>0&&r.prevInput==" \u 200B"?Dt(a,Lf)(a):oe++<10?i.detectingSelectAll=setTimeout(de,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(de,200)}}if(c&&m>=9&&K(),z){ei(e);var ee=function(){Ht(window,"mouseup",ee),setTimeout(W,20)};Ee(window,"mouseup",ee)}else setTimeout(W,50)},mt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},mt.prototype.setUneditable=function(){},mt.prototype.needsContentAttribute=!1;function H0(e,r){if(r=r?Ge(r):{},r.value=e.value,!r.tabindex&&e.tabIndex&&(r.tabindex=e.tabIndex),!r.placeholder&&e.placeholder&&(r.placeholder=e.placeholder),r.autofocus==null){var a=J(Le(e));r.autofocus=a==e||e.getAttribute("autofocus")!=null&&a==document.body}function i(){e.value=b.getValue()}var l;if(e.form&&(Ee(e.form,"submit",i),!r.leaveSubmitMethodAlone)){var f=e.form;l=f.submit;try{var h=f.submit=function(){i(),f.submit=l,f.submit(),f.submit=h}}catch{}}r.finishInit=function(y){y.save=i,y.getTextArea=function(){return e},y.toTextArea=function(){y.toTextArea=isNaN,i(),e.parentNode.removeChild(y.getWrapperElement()),e.style.display="",e.form&&(Ht(e.form,"submit",i),!r.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=l))}},e.style.display="none";var b=dt(function(y){return e.parentNode.insertBefore(y,e.nextSibling)},r);return b}function j0(e){e.off=Ht,e.on=Ee,e.wheelEventPixels=Kv,e.Doc=Kt,e.splitLines=Dl,e.countColumn=X,e.findColumn= $ ,e.isWordChar=xe,e.Pass=Ce,e.signal=ht,e.Line=hn,e.changeEnd=co,e.scrollbarModel=lf,e.Pos=ae,e.cmpPos=Be,e.modes=Sl,e.mimeModes=pn,e.resolveMode=ca,e.getMode=Al,e.modeExtensions=mn,e.extendMode= $ b,e.copyState=Lo,e.startState=pc,e.innerMode=Nl,e.commands=Ei,e.keyMap=Ur,e.keyName=Kf,e.isModifierKey=qf,e.lookupKey=An,e.normalizeKeyMap=g0,e.StringStream=gt,e.SharedTextMarker=yi,e.TextMarker=po,e.LineWidget=xi,e.e_preventDefault=qt,e.e_stopPropagation=cc,e.e_stop=ei,e.addClass=ne,e.contains=G,e.rmClass=V,e.keyNames=mo}L0(dt),R0(dt);var V0="iter insert remove copy getEditor constructor".split(" ");for(var $ a in Kt.prototype)Kt.prototype.hasOwnProperty( $ a)&&ie(V0, $ a)<0&&(dt.prototype[ $ a]=function(e){return function(){return e.apply(this.doc,arguments)}}(Kt.prototype[ $ a]));return fn(Kt),dt.inputStyles={textarea:mt,contenteditable:tt},dt.defineMode=function(e){!dt.defaults.mode&&e!="null"&&(dt.defaults.mode=e),jb.apply(this,arguments)},dt.defineMIME=Vb,dt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),dt.defineMIME("text/plain","null"),dt.defineExtension=function(e,r){dt.prototype[e]=r},dt.defineDocExtension=function(e,r){Kt.prototype[e]=r},dt.fromTextArea=H0,j0(dt),dt.version="5.65.16",dt})});var vg=Nt((gg,bg)=>{(function(t){typeof gg=="object"&&typeof bg=="object"?t(ir()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";var o=/^( \s *)(>[> ]*|[*+-] \[ [x ] \] \s |[*+-] \s |( \d +)([.)]))( \s *)/,n=/^( \s *)(>[> ]*|[*+-] \[ [x ] \] |[*+-]|( \d +)[.)])( \s *) $ /,s=/[*+-] \s /;t.commands.newlineAndIndentContinueMarkdownList=function(u){if(u.getOption("disableInput"))return t.Pass;for(var c=u.listSelections(),m=[],g=0;g
` }else{var p=I[1],v=I[5],w=!(s.test(I[2])||I[2].indexOf(">")>=0),C=w?parseInt(I[3],10)+1+I[4]:I[2].replace("x"," ");m[g]= `
` +p+C+v,w&&d(u,k)}}u.replaceSelections(m)};function d(u,c){var m=c.line,g=0,k=0,x=o.exec(u.getLine(m)),_=x[1];do{g+=1;var D=m+g,O=u.getLine(D),H=o.exec(O);if(H){var I=H[1],R=parseInt(x[3],10)+g-k,j=parseInt(H[3],10),Y=j;if(_===I&&!isNaN(j))R===j&&(Y=j+1),R>j&&(Y=R+1),u.replaceRange(O.replace(o,I+Y+H[4]+H[5]),{line:D,ch:0},{line:D,ch:O.length});else{if(_.length>I.length||_.length<I.length&&g===1)return;k+=1}}}while(H)}})});var xg=Nt(()=>{var wg=ir();wg.commands.tabAndIndentMarkdownList=function(t){var o=t.listSelections(),n=o[0].head,s=t.getStateAfter(n.line),d=s.list!==!1;if(d){t.execCommand("indentMore");return}if(t.options.indentWithTabs)t.execCommand("insertTab");else{var u=Array(t.options.tabSize+1).join(" ");t.replaceSelection(u)}};wg.commands.shiftTabAndUnindentMarkdownList=function(t){var o=t.listSelections(),n=o[0].head,s=t.getStateAfter(n.line),d=s.list!==!1;if(d){t.execCommand("indentLess");return}if(t.options.indentWithTabs)t.execCommand("insertTab");else{var u=Array(t.options.tabSize+1).join(" ");t.replaceSelection(u)}}});var _g=Nt((yg,kg)=>{(function(t){typeof yg=="object"&&typeof kg=="object"?t(ir()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineOption("fullScreen",!1,function(s,d,u){u==t.Init&&(u=!1),!u!=!d&&(d?o(s):n(s))});function o(s){var d=s.getWrapperElement();s.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:d.style.width,height:d.style.height},d.style.width="",d.style.height="auto",d.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",s.refresh()}function n(s){var d=s.getWrapperElement();d.className=d.className.replace(/ \s *CodeMirror-fullscreen \b /,""),document.documentElement.style.overflow="";var u=s.state.fullScreenRestore;d.style.width=u.width,d.style.height=u.height,window.scrollTo(u.scrollLeft,u.scrollTop),s.refresh()}})});var Ku=Nt((Eg,Dg)=>{(function(t){typeof Eg=="object"&&typeof Dg=="object"?t(ir()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};t.defineMode("xml",function(s,d){var u=s.indentUnit,c={},m=d.htmlMode?o:n;for(var g in m)c[g]=m[g];for(var g in d)c[g]=d[g];var k,x;function _(L,U){function N(ne){return U.tokenize=ne,ne(L,U)}var G=L.next();if(G=="<")return L.eat("!")?L.eat("[")?L.match("CDATA[")?N(H("atom","]]>")):null:L.match("--")?N(H("comment","-->")):L.match("DOCTYPE",!0,!0)?(L.eatWhile(/[ \w \. _ \- ]/),N(I(1))):null:L.eat("?")?(L.eatWhile(/[ \w \. _ \- ]/),U.tokenize=H("meta","?>"),"meta"):(k=L.eat("/")?"closeTag":"openTag",U.tokenize=D,"tag bracket");if(G=="&"){var J;return L.eat("#")?L.eat("x")?J=L.eatWhile(/[a-fA-F \d ]/)&&L.eat(";"):J=L.eatWhile(/[ \d ]/)&&L.eat(";"):J=L.eatWhile(/[ \w \. \- :]/)&&L.eat(";"),J?"atom":"error"}else return L.eatWhile(/[^&<]/),null}_.isInText=!0;function D(L,U){var N=L.next();if(N==">"||N=="/"&&L.eat(">"))return U.tokenize=_,k=N==">"?"endTag":"selfcloseTag","tag bracket";if(N=="=")return k="equals",null;if(N=="<"){U.tokenize=_,U.state=v,U.tagName=U.tagStart=null;var G=U.tokenize(L,U)
` +z}v=v*2,j.lastIndex=Y.ch;var A=j.exec(p);if(A){var V=p.slice(0,A.index).split( `
` ),Z=A[0].split( `
` ),q=Y.line+V.length-1,L=V[V.length-1].length;return{from:o(q,L),to:o(q+Z.length-1,Z.length==1?L+Z[0].length:Z[Z.length-1].length),match:A}}}}function m(R,j,Y){for(var p,v=0;v<=R.length;){j.lastIndex=v;var w=j.exec(R);if(!w)break;var C=w.index+w[0].length;if(C>R.length-Y)break;(!p||C>p.index+p[0].length)&&(p=w),v=w.index+1}return p}function g(R,j,Y){j=s(j,"g");for(var p=Y.line,v=Y.ch,w=R.firstLine();p>=w;p--,v=-1){var C=R.getLine(p),T=m(C,j,v<0?0:C.length-v);if(T)return{from:o(p,T.index),to:o(p,T.index+T[0].length),match:T}}}function k(R,j,Y){if(!d(j))return g(R,j,Y);j=s(j,"gm");for(var p,v=1,w=R.getLine(Y.line).length-Y.ch,C=Y.line,T=R.firstLine();C>=T;){for(var z=0;z<v&&C>=T;z++){var A=R.getLine(C--);p=p==null?A:A+ `
` +p}v*=2;var V=m(p,j,w);if(V){var Z=p.slice(0,V.index).split( `
` ),q=V[0].split( `
` ),L=C+Z.length,U=Z[Z.length-1].length;return{from:o(L,U),to:o(L+q.length-1,q.length==1?U+q[0].length:q[q.length-1].length),match:V}}}}var x,_;String.prototype.normalize?(x=function(R){return R.normalize("NFD").toLowerCase()},_=function(R){return R.normalize("NFD")}):(x=function(R){return R.toLowerCase()},_=function(R){return R});function D(R,j,Y,p){if(R.length==j.length)return Y;for(var v=0,w=Y+Math.max(0,R.length-j.length);;){if(v==w)return v;var C=v+w>>1,T=p(R.slice(0,C)).length;if(T==Y)return C;T>Y?w=C:v=C+1}}function O(R,j,Y,p){if(!j.length)return null;var v=p?x:_,w=v(j).split(/ \r | \n \r ?/);e:for(var C=Y.line,T=Y.ch,z=R.lastLine()+1-w.length;C<=z;C++,T=0){var A=R.getLine(C).slice(T),V=v(A);if(w.length==1){var Z=V.indexOf(w[0]);if(Z==-1)continue e;var Y=D(A,V,Z,v)+T;return{from:o(C,D(A,V,Z,v)+T),to:o(C,D(A,V,Z+w[0].length,v)+T)}}else{var q=V.length-w[0].length;if(V.slice(q)!=w[0])continue e;for(var L=1;L<w.length-1;L++)if(v(R.getLine(C+L))!=w[L])continue e;var U=R.getLine(C+w.length-1),N=v(U),G=w[w.length-1];if(N.slice(0,G.length)!=G)continue e;return{from:o(C,D(A,V,q,v)+T),to:o(C+w.length-1,D(U,N,G.length,v))}}}}function H(R,j,Y,p){if(!j.length)return null;var v=p?x:_,w=v(j).split(/ \r | \n \r ?/);e:for(var C=Y.line,T=Y.ch,z=R.firstLine()-1+w.length;C>=z;C--,T=-1){var A=R.getLine(C);T>-1&&(A=A.slice(0,T));var V=v(A);if(w.length==1){var Z=V.lastIndexOf(w[0]);if(Z==-1)continue e;return{from:o(C,D(A,V,Z,v)),to:o(C,D(A,V,Z+w[0].length,v))}}else{var q=w[w.length-1];if(V.slice(0,q.length)!=q)continue e;for(var L=1,Y=C-w.length+1;L<w.length-1;L++)if(v(R.getLine(Y+L))!=w[L])continue e;var U=R.getLine(C+1-w.length),N=v(U);if(N.slice(N.length-w[0].length)!=w[0])continue e;return{from:o(C+1-w.length,D(U,N,U.length-w[0].length,v)),to:o(C,D(A,V,q.length,v))}}}}function I(R,j,Y,p){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=R,Y=Y?R.clipPos(Y):o(0,0),this.pos={from:Y,to:Y};var v;typeof p=="object"?v=p.caseFold:(v=p,p=null),typeof j=="string"?(v==null&&(v=!1),this.matches=function(w,C){return(w?H:O)(R,j,C,v)}):(j=s(j,"gm"),!p||p.multiline!==!1?this.matches=function(w,C){return(w?k:c)(R,j,C)}:this.matches=function(w,C){return(w?g:u)(R,j,C)})}I.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(R){var j=this.doc.clipPos(R?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(j=o(j.line,j.ch),R?(j.ch--,j.ch<0&&(j.line--,j.ch=(this.doc.getLine(j.line)||"").length)):(j.ch++,j.ch>(this.doc.getLine(j.line)||"").length&&(j.ch=0,j.line++)),t.cmpPos(j,this.doc.clipPos(j))!=0))return this.atOccurrence=!1;var Y=this.matches(R,j);if(this.afterEmptyMatch=Y&&t.cmpPos(Y.from,Y.to)==0,Y)return this.pos=Y,this.atOccurrence=!0,this.pos.match||!0;var p=o(R?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:p,to:p},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(R,j){if(this.atOccurrence){var Y=t.splitLines(R);this.doc.replaceRange(Y,this.pos.from,this.pos.to,j),this.pos.to=o(this.pos.from.line+Y.length-1,Y[Y.length-1].length+(Y.length==1?this.pos.from.ch:0))}}},t.defineExtension("getSearchCursor",function(R,j,Y){return new I(this.doc,R,j,Y)}),t.defineDocExtension("getSearchCursor",function(R,j,Y){return new I(this,R,j,Y)}),t.defineExtension("selectMatches",function(R,j){for(var Y=[],p=this.getSearchCursor(R,this.getCursor("from"),j);p.findNext()&&!(t.cmpPos(p.to(),this.getCursor("to"))>0);)Y.push({anchor:p.from(),head:p.to()});Y.length&&this.setSelections(Y,0)})})});var Gg=Nt((Wg,qg)=>{(function(t){typeof Wg=="object"&&typeof qg=="object"?t(ir(),Yu(),Xu()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../markdown/markdown","../../addon/mode/overlay"],t):t(CodeMirror)})(function(t){"use strict";var o=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|d
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}function f3(t,o){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var s=n.call(t,o||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(t)}function p3(t){var o=f3(t,"string");return typeof o=="symbol"?o:String(o)}function Ju(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}st.defaults=Ju();function m3(t){st.defaults=t}var sb=/[&<>"']/,h3=new RegExp(sb.source,"g"),lb=/[<>"']|&(?!(# \d {1,7}|#[Xx][a-fA-F0-9]{1,6}| \w +);)/,g3=new RegExp(lb.source,"g"),b3={"&":"&","<":"<",">":">",'"':""","'":"'"},tb=function(o){return b3[o]};function Ut(t,o){if(o){if(sb.test(t))return t.replace(h3,tb)}else if(lb.test(t))return t.replace(g3,tb);return t}var v3=/&(#(?: \d +)|(?:#x[0-9A-Fa-f]+)|(?: \w +));?/ig;function db(t){return t.replace(v3,function(o,n){return n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""})}var w3=/(^|[^ \[ ]) \^ /g;function at(t,o){t=typeof t=="string"?t:t.source,o=o||"";var n={replace:function(d,u){return u=u.source||u,u=u.replace(w3," $ 1"),t=t.replace(d,u),n},getRegex:function(){return new RegExp(t,o)}};return n}var x3=/[^ \w :]/g,y3=/^ $ |^[a-z][a-z0-9+.-]*:|^[?#]/i;function rb(t,o,n){if(t){var s;try{s=decodeURIComponent(db(n)).replace(x3,"").toLowerCase()}catch{return null}if(s.indexOf("javascript:")===0||s.indexOf("vbscript:")===0||s.indexOf("data:")===0)return null}o&&!y3.test(n)&&(n=D3(o,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}var Ws={},k3=/^[^:]+: \/ *[^/]* $ /,_3=/^([^:]+:)[ \s \S ]* $ /,E3=/^([^:]+: \/ *[^/]*)[ \s \S ]* $ /;function D3(t,o){Ws[" "+t]||(k3.test(t)?Ws[" "+t]=t+"/":Ws[" "+t]=qs(t,"/",!0)),t=Ws[" "+t];var n=t.indexOf(":")===-1;return o.substring(0,2)==="//"?n?o:t.replace(_3," $ 1")+o:o.charAt(0)==="/"?n?o:t.replace(E3," $ 1")+o:t+o}var Gs={exec:function(){}};function ob(t,o){var n=t.replace(/ \| /g,function(u,c,m){for(var g=!1,k=c;--k>=0&&m[k]===" \\ ";)g=!g;return g?"|":" |"}),s=n.split(/ \| /),d=0;if(s[0].trim()||s.shift(),s.length>0&&!s[s.length-1].trim()&&s.pop(),s.length>o)s.splice(o);else for(;s.length<o;)s.push("");for(;d<s.length;d++)s[d]=s[d].trim().replace(/ \\ \| /g,"|");return s}function qs(t,o,n){var s=t.length;if(s===0)return"";for(var d=0;d<s;){var u=t.charAt(s-d-1);if(u===o&&!n)d++;else if(u!==o&&n)d++;else break}return t.slice(0,s-d)}function C3(t,o){if(t.indexOf(o[1])===-1)return-1;for(var n=t.length,s=0,d=0;d<n;d++)if(t[d]===" \\ ")d++;else if(t[d]===o[0])s++;else if(t[d]===o[1]&&(s--,s<0))return d;return-1}function S3(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function nb(t,o){if(o<1)return"";for(var n="";o>1;)o&1&&(n+=t),o>>=1,t+=t;return n+t}function ib(t,o,n,s){var d=o.href,u=o.title?Ut(o.title):null,c=t[1].replace(/ \\ ([ \[ \] ])/g," $ 1");if(t[0].charAt(0)!=="!"){s.state.inLink=!0;var m={type:"link",raw:n,href:d,title:u,text:c,tokens:s.inlineTokens(c)};return s.state.inLink=!1,m}return{type:"image",raw:n,href:d,title:u,text:Ut(c)}}function A3(t,o){var n=t.match(/^( \s +)(?: ` ` ` ) / ) ; if ( n === null ) return o ; var s = n [ 1 ] ; return o . split ( `
` ).map(function(d){var u=d.match(/^ \s +/);if(u===null)return d;var c=u[0];return c.length>=s.length?d.slice(s.length):d}).join( `
` )}var Ks=function(){function t(n){this.options=n||st.defaults}var o=t.prototype;return o.space=function(s){var d=this.rules.block.newline.exec(s);if(d&&d[0].length>0)return{type:"space",raw:d[0]}},o.code=function(s){var d=this.rules.block.code.exec(s);if(d){var u=d[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:d[0],codeBlockStyle:"indented",text:this.options.pedantic?u:qs(u, `
` )}}},o.fences=function(s){var d=this.rules.block.fences.exec(s);if(d){var u=d[0],c=A3(u,d[3]||"");return{type:"code",raw:u,lang:d[2]?d[2].trim().replace(this.rules.inline._escapes," $ 1"):d[2],text:c}}},o.heading=function(s){var d=this.rules.block.heading.exec(s);if(d){var u=d[2].trim();if(/# $ /.test(u)){var c=qs(u,"#");(this.options.pedantic||!c||/ $ /.test(c))&&(u=c.trim())}return{type:"heading",raw:d[0],depth:d[1].length,text:u,tokens:this.lexer.inline(u)}}},o.hr=function(s){var d=this.rules.block.hr.exec(s);if(d)return{type:"hr",raw:d[0]}},o.blockquote=function(s){var d=this.rules.block.blockquote.exec(s);if(d){var u=d[0].replace(/^ *>[ \t ]?/gm,""),c=this.lexer.state.top;this.lexer.state.top=!0;var m=this.lexer.blockTokens(u);return this.lexer.state.top=c,{type:"blockquote",raw:d[0],tokens:m,text:u}}},o.list=function(s){var d=this.rules.block.list.exec(s);if(d){var u,c,m,g,k,x,_,D,O,H,I,R,j=d[1].trim(),Y=j.length>1,p={type:"list",raw:"",ordered:Y,start:Y?+j.slice(0,-1):"",loose:!1,items:[]};j=Y?" \\ d{1,9} \\ "+j.slice(-1):" \\ "+j,this.options.pedantic&&(j=Y?j:"[*+-]");for(var v=new RegExp("^( {0,3}"+j+")((?:[ ][^ \\ n]*)?(?: \\ n| $ ))");s&&(R=!1,!(!(d=v.exec(s))||this.rules.block.hr.test(s)));){if(u=d[0],s=s.substring(u.length),D=d[2].split( `
` ,1)[0].replace(/^ \t +/,function(q){return" ".repeat(3*q.length)}),O=s.split( `
` ,1)[0],this.options.pedantic?(g=2,I=D.trimLeft()):(g=d[2].search(/[^ ]/),g=g>4?1:g,I=D.slice(g),g+=d[1].length),x=!1,!D&&/^ * $ /.test(O)&&(u+=O+ `
` ,s=s.substring(O.length+1),R=!0),!R)for(var w=new RegExp("^ {0,"+Math.min(3,g-1)+"}(?:[*+-]| \\ d{1,9}[.)])((?:[ ][^ \\ n]*)?(?: \\ n| $ ))"),C=new RegExp("^ {0,"+Math.min(3,g-1)+"}((?:- *){3,}|(?:_ *){3,}|(?: \\ * *){3,})(?: \\ n+| $ )"),T=new RegExp("^ {0,"+Math.min(3,g-1)+"}(?: ` ` ` | ~ ~ ~ ) "),z=new RegExp(" ^ { 0 , "+Math.min(3,g-1)+" } # " ) ; s && ( H = s . split ( `
` ,1)[0],O=H,this.options.pedantic&&(O=O.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(T.test(O)||z.test(O)||w.test(O)||C.test(s)));){if(O.search(/[^ ]/)>=g||!O.trim())I+= `
` +O.slice(g);else{if(x||D.search(/[^ ]/)>=4||T.test(D)||z.test(D)||C.test(D))break;I+= `
` +O}!x&&!O.trim()&&(x=!0),u+=H+ `
` ,s=s.substring(H.length+1),D=O.slice(g)}p.loose||(_?p.loose=!0:/ \n * \n * $ /.test(u)&&(_=!0)),this.options.gfm&&(c=/^ \[ [ xX] \] /.exec(I),c&&(m=c[0]!=="[ ] ",I=I.replace(/^ \[ [ xX] \] +/,""))),p.items.push({type:"list_item",raw:u,task:!!c,checked:m,loose:!1,text:I}),p.raw+=u}p.items[p.items.length-1].raw=u.trimRight(),p.items[p.items.length-1].text=I.trimRight(),p.raw=p.raw.trimRight();var A=p.items.length;for(k=0;k<A;k++)if(this.lexer.state.top=!1,p.items[k].tokens=this.lexer.blockTokens(p.items[k].text,[]),!p.loose){var V=p.items[k].tokens.filter(function(q){return q.type==="space"}),Z=V.length>0&&V.some(function(q){return/ \n .* \n /.test(q.raw)});p.loose=Z}if(p.loose)for(k=0;k<A;k++)p.items[k].loose=!0;return p}},o.html=function(s){var d=this.rules.block.html.exec(s);if(d){var u={type:"html",raw:d[0],pre:!this.options.sanitizer&&(d[1]==="pre"||d[1]==="script"||d[1]==="style"),text:d[0]};if(this.options.sanitize){var c=this.options.sanitizer?this.options.sanitizer(d[0]):Ut(d[0]);u.type="paragraph",u.text=c,u.tokens=this.lexer.inline(c)}return u}},o.def=function(s){var d=this.rules.block.def.exec(s);if(d){var u=d[1].toLowerCase().replace(/ \s +/g," "),c=d[2]?d[2].replace(/^<(.*)> $ /," $ 1").replace(this.rules.inline._escapes," $ 1"):"",m=d[3]?d[3].substring(1,d[3].length-1).replace(this.rules.inline._escapes," $ 1"):d[3];return{type:"def",tag:u,raw:d[0],href:c,title:m}}},o.table=function(s){var d=this.rules.block.table.exec(s);if(d){var u={type:"table",header:ob(d[1]).map(function(_){return{text:_}}),align:d[2].replace(/^ *| \| * $ /g,"").split(/ * \| */),rows:d[3]&&d[3].trim()?d[3].replace(/ \n [ \t ]* $ /,"").split( `
` ):[]};if(u.header.length===u.align.length){u.raw=d[0];var c=u.align.length,m,g,k,x;for(m=0;m<c;m++)/^ *-+: * $ /.test(u.align[m])?u.align[m]="right":/^ *:-+: * $ /.test(u.align[m])?u.align[m]="center":/^ *:-+ * $ /.test(u.align[m])?u.align[m]="left":u.align[m]=null;for(c=u.rows.length,m=0;m<c;m++)u.rows[m]=ob(u.rows[m],u.header.length).map(function(_){return{text:_}});for(c=u.header.length,g=0;g<c;g++)u.header[g].tokens=this.lexer.inline(u.header[g].text);for(c=u.rows.length,g=0;g<c;g++)for(x=u.rows[g],k=0;k<x.length;k++)x[k].tokens=this.lexer.inline(x[k].text);return u}}},o.lheading=function(s){var d=this.rules.block.lheading.exec(s);if(d)return{type:"heading",raw:d[0],depth:d[2].charAt(0)==="="?1:2,text:d[1],tokens:this.lexer.inline(d[1])}},o.paragraph=function(s){var d=this.rules.block.paragraph.exec(s);if(d){var u=d[1].charAt(d[1].length-1)=== `
` ?d[1].slice(0,-1):d[1];return{type:"paragraph",raw:d[0],text:u,tokens:this.lexer.inline(u)}}},o.text=function(s){var d=this.rules.block.text.exec(s);if(d)return{type:"text",raw:d[0],text:d[0],tokens:this.lexer.inline(d[0])}},o.escape=function(s){var d=this.rules.inline.escape.exec(s);if(d)return{type:"escape",raw:d[0],text:Ut(d[1])}},o.tag=function(s){var d=this.rules.inline.tag.exec(s);if(d)return!this.lexer.state.inLink&&/^<a /i.test(d[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^< \/ a>/i.test(d[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)( \s |>)/i.test(d[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^< \/ (pre|code|kbd|script)( \s |>)/i.test(d[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:d[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(d[0]):Ut(d[0]):d[0]}},o.link=function(s){var d=this.rules.inline.link.exec(s);if(d){var u=d[2].trim();if(!this.options.pedantic&&/^</.test(u)){if(!/> $ /.test(u))return;var c=qs(u.slice(0,-1)," \\ ");if((u.length-c.length)%2===0)return}else{var m=C3(d[2],"()");if(m>-1){var g=d[0].indexOf("!")===0?5:4,k=g+d[1].length+m;d[2]=d[2].substring(0,m),d[0]=d[0].substring(0,k).trim(),d[3]=""}}var x=d[2],_="";if(this.options.pedantic){var D=/^([^'"]*[^ \s ]) \s +(['"])(.*) \2 /.exec(x);D&&(x=D[1],_=D[3])}else _=d[3]?d[3].slice(1,-1):"";return x=x.trim(),/^</.test(x)&&(this.options.pedantic&&!/> $ /.test(u)?x=x.slice(1):x=x.slice(1,-1)),ib(d,{href:x&&x.replace(this.rules.inline._escapes," $ 1"),title:_&&_.replace(this.rules.inline._escapes," $ 1")},d[0],this.lexer)}},o.reflink=function(s,d){var u;if((u=this.rules.inline.reflink.exec(s))||(u=this.rules.inline.nolink.exec(s))){var c=(u[2]||u[1]).replace(/ \s +/g," ");if(c=d[c.toLowerCase()],!c){var m=u[0].charAt(0);return{type:"text",raw:m,text:m}}return ib(u,c,u[0],this.lexer)}},o.emStrong=function(s,d,u){u===void 0&&(u="");var c=this.rules.inline.emStrong.lDelim.exec(s);if(c&&!(c[3]&&u.match(/(?:[0-9A-Za-z \x AA \x B2 \x B3 \x B5 \x B9 \x BA \x BC- \x BE \x C0- \x D6 \x D8- \x F6 \x F8- \u 02C1 \u 02C6- \u 02D1 \u 02E0- \u 02E4 \u 02EC \u 02EE \u 0370- \u 0374 \u 0376 \u 0377 \u 037A- \u 037D \u 037F \u 0386 \u 0388- \u 038A \u 038C \u 038E- \u 03A1 \u 03A3- \u 03F5 \u 03F7- \u 0481 \u 048A- \u 052F \u 0531- \u 0556 \u 0559 \u 0560- \u 0588 \u 05D0- \u 05EA \u 05EF- \u 05F2 \u 0620- \u 064A \u 0660- \u 0669 \u 066E \u 066F \u 0671- \u 06D3 \u 06D5 \u 06E5 \u 06E6 \u 06EE- \u 06FC \u 06FF \u 0710 \u 0712- \u 072F \u 074D- \u 07A5 \u 07B1 \u 07C0- \u 07EA \u 07F4 \u 07F5 \u 07FA \u 0800- \u 0815 \u 081A \u 0824 \u 0828 \u 0840- \u 0858 \u 0860- \u 086A \u 0870- \u 0887 \u 0889- \u 088E \u 08A0- \u 08C9 \u 0904- \u 0939 \u 093D \u 0950 \u 0958- \u 0961 \u 0966- \u 096F \u 0971- \u 0980 \u 0985- \u 098C \u 098F \u 0990 \u 0993- \u 09A8 \u 09AA- \u 09B0 \u 09B2 \u 09B6- \u 09B9 \u 09BD \u 09CE \u 09DC \u 09DD \u 09DF- \u 09E1 \u 09E6- \u 09F1 \u 09F4- \u 09F9 \u 09FC \u 0A05- \u 0A0A \u 0A0F \u 0A10 \u 0A13- \u 0A28 \u 0A2A- \u 0A30 \u 0A32 \u 0A33 \u 0A35 \u 0A36 \u 0A38 \u 0A39 \u 0A59- \u 0A5C \u 0A5E \u 0A66- \u 0A6F \u 0A72- \u 0A74 \u 0A85- \u 0A8D \u 0A8F- \u 0A91 \u 0A93- \u 0AA8 \u 0AAA- \u 0AB0 \u 0AB2 \u 0AB3 \u 0AB5- \u 0AB9 \u 0ABD \u 0AD0 \u 0AE0 \u 0AE1 \u 0AE6- \u 0AEF \u 0AF9 \u 0B05- \u 0B0C \u 0B0F \u 0B10 \u 0B13- \u 0B28 \u 0B2A- \u 0B30 \u 0B32 \u 0B33 \u 0B35- \u 0B39 \u 0B3D \u 0B5C \u 0B5D \u 0B5F- \u 0B61 \u 0B66- \u 0B6F \u 0B71- \u 0B77 \u 0B83 \u 0B85- \u 0B8A \u 0B8E- \u 0B90 \u 0B92- \u 0B95 \u 0B99 \u 0B9A \u 0B9C \u 0B9E \u 0B9F \u 0BA3 \u 0BA4 \u 0BA8- \u 0BAA \u 0BAE- \u 0BB9 \u 0BD0 \u 0BE6- \u 0BF2 \u 0C05- \u 0C0C \u 0C0E- \u 0C10 \u 0C12- \u 0C28 \u 0C2A- \u 0C39 \u 0C3D \u 0C58- \u 0C5A \u 0C5D \u 0C60 \u 0C61 \u 0C66- \u 0C6F \u 0C78- \u 0C7E \u 0C80 \u 0C85- \u 0C8C \u 0C8E- \u 0C90 \u 0C92- \u 0CA8 \u 0CAA- \u 0CB3 \u 0CB5- \u 0CB9 \u 0CBD \u 0CDD \u 0CDE \u 0CE0 \u 0CE1 \u 0CE6- \u 0CEF \u 0CF1 \u 0CF2 \u 0D04- \u 0D0C \u 0D0E- \u 0D10 \u 0D12- \u 0D3A \u 0D3D \u 0D4E \u 0D54- \u 0D56 \u 0D58- \u 0D61 \u 0D66- \u 0D78 \u 0D7A- \u 0D7F \u 0D85- \u 0D96 \u 0D9A- \u 0DB1 \u 0DB3- \u 0DBB \u 0DBD \u 0DC0- \u 0DC6 \u 0DE6- \u 0DEF \u 0E01- \u 0E30 \u 0E32 \u 0E33 \u 0E40- \u 0E46 \u 0E50- \u 0E59 \u 0E81 \u 0E82 \u 0E84 \u 0E86- \u 0E8A \u 0E8C- \u 0EA3 \u 0EA5 \u 0EA7- \u 0EB0 \u 0EB2 \u 0EB3 \u 0EBD \u 0EC0- \u 0EC4 \u 0EC6 \u 0ED0- \u 0ED9 \u 0EDC- \u 0EDF \u 0F00 \u 0F20- \u 0F33 \u 0F40- \u 0F47 \u 0F49- \u 0F6C \u 0F88- \u 0F8C \u 1000- \u 102A \u 103F- \u 1049 \u 1050- \u 1055 \u 105A- \u 105D \u 1061 \u 1065 \u 1066 \u 106E- \u 1070 \u 1075- \
] ` ).replace("lheading",Re.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var De={escape:/^ \\ ([!"# $ %&'()*+, \- ./:;<=>?@ \[ \] \\ ^_ ` { | } ~ ] ) / , autolink : /^<(scheme:[^\s\x00-\x1f<>]*|email)>/ , url : Gs , tag : "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>" , link : /^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/ , reflink : /^!?\[(label)\]\[(ref)\]/ , nolink : /^!?\[(ref)\](?:\[\])?/ , reflinkSearch : "reflink|nolink(?!\\()" , emStrong : { lDelim : /^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/ , rDelimAst : /^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/ , rDelimUnd : /^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/ } , code : /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/ , br : /^( {2,}|\\)\n(?!\s*$)/ , del : Gs , text : /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/ , punctuation : /^([\spunctuation])/ } ; De . _punctuation = "!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~" ; De . punctuation = at ( De . punctuation ) . replace ( /punctuation/g , De . _punctuation ) . getRegex ( ) ; De . blockSkip = /\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g ; De . escapedEmSt = /(?:^|[^\\])(?:\\\\)*\\[*_]/g ; De . _comment = at ( Re . _comment ) . replace ( "(?:-->|$)" , "-->" ) . getRegex ( ) ; De . emStrong . lDelim = at ( De . emStrong . lDelim ) . replace ( /punct/g , De . _punctuation ) . getRegex ( ) ; De . emStrong . rDelimAst = at ( De . emStrong . rDelimAst , "g" ) . replace ( /punct/g , De . _punctuation ) . getRegex ( ) ; De . emStrong . rDelimUnd = at ( De . emStrong . rDelimUnd , "g" ) . replace ( /punct/g , De . _punctuation ) . getRegex ( ) ; De . _escapes = /\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g ; De . _scheme = /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/ ; De . _email = /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/ ; De . autolink = at ( De . autolink ) . replace ( "scheme" , De . _scheme ) . replace ( "email" , De . _email ) . getRegex ( ) ; De . _attribute = /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/ ; De . tag = at ( De . tag ) . replace ( "comment" , De . _comment ) . replace ( "attribute" , De . _attribute ) . getRegex ( ) ; De . _label = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/ ; De . _href = /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/ ; De . _title = /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/ ; De . link = at ( De . link ) . replace ( "label" , De . _label ) . replace ( "href" , De . _href ) . replace ( "title" , De . _title ) . getRegex ( ) ; De . reflink = at ( De . reflink ) . replace ( "label" , De . _label ) . replace ( "ref" , Re . _label ) . getRegex ( ) ; De . nolink = at ( De . nolink ) . replace ( "ref" , Re . _label ) . getRegex ( ) ; De . reflinkSearch = at ( De . reflinkSearch , "g" ) . replace ( "reflink" , De . reflink ) . replace ( "nolink" , De . nolink ) . getRegex ( ) ; De . normal = dr ( { } , De ) ; De . pedantic = dr ( { } , De . normal , { strong : { start : /^__|\*\*/ , middle : /^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/ , endAst : /\*\*(?!\*)/g , endUnd : /__(?!_)/g } , em : { start : /^_|\*/ , middle : /^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/ , endAst : /\*(?!\*)/g , endUnd : /_(?!_)/g } , link : at ( /^!?\[(label)\]\((.*?)\)/ ) . replace ( "label" , De . _label ) . getRegex ( ) , reflink : at ( /^!?\[(label)\]\s*\[([^\]]*)\]/ ) . replace ( "label" , De . _label ) . getRegex ( ) } ) ; De . gfm = dr ( { } , De . normal , { escape : at ( De . escape ) . replace ( "])" , "~|])" ) . getRegex ( ) , _extended _email : /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/ , url : /^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/ , _backpedal : /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/ , del : /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/ , text : / ^ ( [ ` ~ ] + | [ ^ ` ~ ] ) ( ? : ( ? = { 2 , } \ n ) | ( ? = [ a - z A - Z 0 - 9 . ! # $ % & ' * + \ / = ? _ ` { \ | } ~ - ] + @ ) | [ \ s \ S ] * ? ( ? : ( ? = [ \ \ < ! \ [ ` * ~ _ ] | \ b _ | h t t p s ? : \ / \ / | f t p : \ / \ / | w w w \ . | $ ) | [ ^ ] ( ? = { 2 , } \ n ) | [ ^ a - z A - Z 0 - 9 . ! # $ % & ' * + \ / = ? _ ` { \ | } ~
` ),this.blockTokens(s,this.tokens);for(var d;d=this.inlineQueue.shift();)this.inlineTokens(d.src,d.tokens);return this.tokens},o.blockTokens=function(s,d){var u=this;d===void 0&&(d=[]),this.options.pedantic?s=s.replace(/ \t /g," ").replace(/^ + $ /gm,""):s=s.replace(/^( *)( \t +)/gm,function(_,D,O){return D+" ".repeat(O.length)});for(var c,m,g,k;s;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(_){return(c=_.call({lexer:u},s,d))?(s=s.substring(c.raw.length),d.push(c),!0):!1}))){if(c=this.tokenizer.space(s)){s=s.substring(c.raw.length),c.raw.length===1&&d.length>0?d[d.length-1].raw+= `
` :d.push(c);continue}if(c=this.tokenizer.code(s)){s=s.substring(c.raw.length),m=d[d.length-1],m&&(m.type==="paragraph"||m.type==="text")?(m.raw+= `
` +c.raw,m.text+= `
` +c.text,this.inlineQueue[this.inlineQueue.length-1].src=m.text):d.push(c);continue}if(c=this.tokenizer.fences(s)){s=s.substring(c.raw.length),d.push(c);continue}if(c=this.tokenizer.heading(s)){s=s.substring(c.raw.length),d.push(c);continue}if(c=this.tokenizer.hr(s)){s=s.substring(c.raw.length),d.push(c);continue}if(c=this.tokenizer.blockquote(s)){s=s.substring(c.raw.length),d.push(c);continue}if(c=this.tokenizer.list(s)){s=s.substring(c.raw.length),d.push(c);continue}if(c=this.tokenizer.html(s)){s=s.substring(c.raw.length),d.push(c);continue}if(c=this.tokenizer.def(s)){s=s.substring(c.raw.length),m=d[d.length-1],m&&(m.type==="paragraph"||m.type==="text")?(m.raw+= `
` +c.raw,m.text+= `
` +c.raw,this.inlineQueue[this.inlineQueue.length-1].src=m.text):this.tokens.links[c.tag]||(this.tokens.links[c.tag]={href:c.href,title:c.title});continue}if(c=this.tokenizer.table(s)){s=s.substring(c.raw.length),d.push(c);continue}if(c=this.tokenizer.lheading(s)){s=s.substring(c.raw.length),d.push(c);continue}if(g=s,this.options.extensions&&this.options.extensions.startBlock&&function(){var _=1/0,D=s.slice(1),O=void 0;u.options.extensions.startBlock.forEach(function(H){O=H.call({lexer:this},D),typeof O=="number"&&O>=0&&(_=Math.min(_,O))}),_<1/0&&_>=0&&(g=s.substring(0,_+1))}(),this.state.top&&(c=this.tokenizer.paragraph(g))){m=d[d.length-1],k&&m.type==="paragraph"?(m.raw+= `
` +c.raw,m.text+= `
` +c.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=m.text):d.push(c),k=g.length!==s.length,s=s.substring(c.raw.length);continue}if(c=this.tokenizer.text(s)){s=s.substring(c.raw.length),m=d[d.length-1],m&&m.type==="text"?(m.raw+= `
` +c.raw,m.text+= `
` +c.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=m.text):d.push(c);continue}if(s){var x="Infinite loop on byte: "+s.charCodeAt(0);if(this.options.silent){console.error(x);break}else throw new Error(x)}}return this.state.top=!0,d},o.inline=function(s,d){return d===void 0&&(d=[]),this.inlineQueue.push({src:s,tokens:d}),d},o.inlineTokens=function(s,d){var u=this;d===void 0&&(d=[]);var c,m,g,k=s,x,_,D;if(this.tokens.links){var O=Object.keys(this.tokens.links);if(O.length>0)for(;(x=this.tokenizer.rules.inline.reflinkSearch.exec(k))!=null;)O.includes(x[0].slice(x[0].lastIndexOf("[")+1,-1))&&(k=k.slice(0,x.index)+"["+nb("a",x[0].length-2)+"]"+k.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(x=this.tokenizer.rules.inline.blockSkip.exec(k))!=null;)k=k.slice(0,x.index)+"["+nb("a",x[0].length-2)+"]"+k.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(x=this.tokenizer.rules.inline.escapedEmSt.exec(k))!=null;)k=k.slice(0,x.index+x[0].length-2)+"++"+k.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;s;)if(_||(D=""),_=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(I){return(c=I.call({lexer:u},s,d))?(s=s.substring(c.raw.length),d.push(c),!0):!1}))){if(c=this.tokenizer.escape(s)){s=s.substring(c.raw.length),d.push(c);continue}if(c=this.tokenizer.tag(s)){s=s.substring(c.raw.length),m=d[d.length-1],m&&c.type==="text"&&m.type==="text"?(m.raw+=c.raw,m.text+=c.text):d.push(c);continue}if(c=this.tokenizer.link(s)){s=s.substring(c.raw.length),d.push(c);continue}if(c=this.tokenizer.reflink(s,this.tokens.links)){s=s.substring(c.raw.length),m=d[d.length-1],m&&c.type==="text"&&m.type==="text"?(m.raw+=c.raw,m.text+=c.text):d.push(c);continue}if(c=this.tokenizer.emStrong(s,k,D)){s=s.substring(c.raw.length),d.push(c);continue}if(c=this.tokenizer.codespan(s)){s=s.substring(c.raw.length),d.push(c);continue}if(c=this.tokenizer.br(s)){s=s.substring(c.raw.length),d.push(c);continue}if(c=this.tokenizer.del(s)){s=s.substring(c.raw.length),d.push(c);continue}if(c=this.tokenizer.autolink(s,ab)){s=s.substring(c.raw.length),d.push(c);continue}if(!this.state.inLink&&(c=this.tokenizer.url(s,ab))){s=s.substring(c.raw.length),d.push(c);continue}if(g=s,this.options.extensions&&this.options.extensions.startInline&&function(){var I=1/0,R=s.slice(1),j=void 0;u.options.extensions.startInline.forEach(function(Y){j=Y.call({lexer:this},R),typeof j=="number"&&j>=0&&(I=Math.min(I,j))}),I<1/0&&I>=0&&(g=s.substring(0,I+1))}(),c=this.tokenizer.inlineText(g,N3)){s=s.substring(c.raw.length),c.raw.slice(-1)!=="_"&&(D=c.raw.slice(-1)),_=!0,m=d[d.length-1],m&&m.type==="text"?(m.raw+=c.raw,m.text+=c.text):d.push(c);continue}if(s){var H="Infinite loop on byte: "+s.charCodeAt(0);if(this.options.silent){console.error(H);break}else throw new Error(H)}}return d},u3(t,null,[{key:"rules",get:function(){return{block:Re,inline:De}}}]),t}(),Ys=function(){function t(n){this.options=n||st.defaults}var o=t.prototype;return o.code=function(s,d,u){var c=(d||"").match(/ \S */)[0];if(this.options.highlight){var m=this.options.highlight(s,c);m!=null&&m!==s&&(u=!0,s=m)}return s=s.replace(/ \n $ /,"")+ `
` ,c?'<pre><code class="'+this.options.langPrefix+Ut(c)+'">'+(u?s:Ut(s,!0))+ ` < / c o d e > < / p r e >
` :"<pre><code>"+(u?s:Ut(s,!0))+ ` < / c o d e > < / p r e >
` },o.blockquote=function(s){return ` < blockquote >
` +s+ ` < / b l o c k q u o t e >
` },o.html=function(s){return s},o.heading=function(s,d,u,c){if(this.options.headerIds){var m=this.options.headerPrefix+c.slug(u);return"<h"+d+' id="'+m+'">'+s+"</h"+d+ ` >
` }return"<h"+d+">"+s+"</h"+d+ ` >
` },o.hr=function(){return this.options.xhtml? ` < hr / >
` : ` < hr >
` },o.list=function(s,d,u){var c=d?"ol":"ul",m=d&&u!==1?' start="'+u+'"':"";return"<"+c+m+ ` >
` +s+"</"+c+ ` >
` },o.listitem=function(s){return"<li>"+s+ ` < / l i >
` },o.checkbox=function(s){return"<input "+(s?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},o.paragraph=function(s){return"<p>"+s+ ` < / p >
` },o.table=function(s,d){return d&&(d="<tbody>"+d+"</tbody>"), ` < table >
< thead >
` +s+ ` < / t h e a d >
` +d+ ` < / t a b l e >
` },o.tablerow=function(s){return ` < tr >
` +s+ ` < / t r >
` },o.tablecell=function(s,d){var u=d.header?"th":"td",c=d.align?"<"+u+' align="'+d.align+'">':"<"+u+">";return c+s+("</"+u+ ` >
` )},o.strong=function(s){return"<strong>"+s+"</strong>"},o.em=function(s){return"<em>"+s+"</em>"},o.codespan=function(s){return"<code>"+s+"</code>"},o.br=function(){return this.options.xhtml?"<br/>":"<br>"},o.del=function(s){return"<del>"+s+"</del>"},o.link=function(s,d,u){if(s=rb(this.options.sanitize,this.options.baseUrl,s),s===null)return u;var c='<a href="'+s+'"';return d&&(c+=' title="'+d+'"'),c+=">"+u+"</a>",c},o.image=function(s,d,u){if(s=rb(this.options.sanitize,this.options.baseUrl,s),s===null)return u;var c='<img src="'+s+'" alt="'+u+'"';return d&&(c+=' title="'+d+'"'),c+=this.options.xhtml?"/>":">",c},o.text=function(s){return s},t}(),ec=function(){function t(){}var o=t.prototype;return o.strong=function(s){return s},o.em=function(s){return s},o.codespan=function(s){return s},o.del=function(s){return s},o.html=function(s){return s},o.text=function(s){return s},o.link=function(s,d,u){return""+u},o.image=function(s,d,u){return""+u},o.br=function(){return""},t}(),tc=function(){function t(){this.seen={}}var o=t.prototype;return o.serialize=function(s){return s.toLowerCase().trim().replace(/<[! \/ a-z].*?>/ig,"").replace(/[ \u 2000- \u 206F \u 2E00- \u 2E7F \\ '!"# $ %&()*+,./:;<=>?@[ \] ^ ` { | } ~ ] / g , "" ) . replace ( /\s/g , "-" ) } , o . getNextSafeSlug = function ( s , d ) { var u = s , c = 0 ; if ( this . seen . hasOwnProperty ( u ) ) { c = this . seen [ s ] ; do c ++ , u = s + "-" + c ; while ( this . seen . hasOwnProperty ( u ) ) } return d || ( this . seen [ s ] = c , this . seen [ u ] = 0 ) , u } , o . slug = function ( s , d ) { d === void 0 && ( d = { } ) ; var u = this . serialize ( s ) ; return this . getNextSafeSlug ( u , d . dryrun ) } , t } ( ) , Xn = function ( ) { function t ( n ) { this . options = n || st . defaults , this . options . renderer = this . options . renderer || new Ys , this . renderer = this . options . renderer , this . renderer . options = this . options , this . textRenderer = new ec , this . slugger = new tc } t . parse = function ( s , d ) { var u = new t ( d ) ; return u . parse ( s ) } , t . parseInline = function ( s , d ) { var u = new t ( d ) ; return u . parseInline ( s ) } ; var o = t . prototype ; return o . parse = function ( s , d ) { d === void 0 && ( d = ! 0 ) ; var u = "" , c , m , g , k , x , _ , D , O , H , I , R , j , Y , p , v , w , C , T , z , A = s . length ; for ( c = 0 ; c < A ; c ++ ) { if ( I = s [ c ] , this . options . extensions && this . options . extensions . renderers && this . options . extensions . renderers [ I . type ] && ( z = this . options . extensions . renderers [ I . type ] . call ( { parser : this } , I ) , z !== ! 1 || ! [ "space" , "hr" , "heading" , "code" , "table" , "blockquote" , "list" , "html" , "paragraph" , "text" ] . includes ( I . type ) ) ) { u += z || "" ; continue } switch ( I . type ) { case "space" : continue ; case "hr" : { u += this . renderer . hr ( ) ; continue } case "heading" : { u += this . renderer . heading ( this . parseInline ( I . tokens ) , I . depth , db ( this . parseInline ( I . tokens , this . textRenderer ) ) , this . slugger ) ; continue } case "code" : { u += this . renderer . code ( I . text , I . lang , I . escaped ) ; continue } case "table" : { for ( O = "" , D = "" , k = I . header . length , m = 0 ; m < k ; m ++ ) D += this . renderer . tablecell ( this . parseInline ( I . header [ m ] . tokens ) , { header : ! 0 , align : I . align [ m ] } ) ; for ( O += this . renderer . tablerow ( D ) , H = "" , k = I . rows . length , m = 0 ; m < k ; m ++ ) { for ( _ = I . rows [ m ] , D = "" , x = _ . length , g = 0 ; g < x ; g ++ ) D += this . renderer . tablecell ( this . parseInline ( _ [ g ] . tokens ) , { header : ! 1 , align : I . align [ g ] } ) ; H += this . renderer . tablerow ( D ) } u += this . renderer . table ( O , H ) ; continue } case "blockquote" : { H = this . parse ( I . tokens ) , u += this . renderer . blockquote ( H ) ; continue } case "list" : { for ( R = I . ordered , j = I . start , Y = I . loose , k = I . items . length , H = "" , m = 0 ; m < k ; m ++ ) v = I . items [ m ] , w = v . checked , C = v . task , p = "" , v . task && ( T = this . renderer . checkbox ( w ) , Y ? v . tokens . length > 0 && v . tokens [ 0 ] . type === "paragraph" ? ( v . tokens [ 0 ] . text = T + " " + v . tokens [ 0 ] . text , v . tokens [ 0 ] . tokens && v . tokens [ 0 ] . tokens . length > 0 && v . tokens [ 0 ] . tokens [ 0 ] . type === "text" && ( v . tokens [ 0 ] . tokens [ 0 ] . text = T + " " + v . tokens [ 0 ] . tokens [ 0 ] . text ) ) : v . tokens . unshift ( { type : "text" , text : T } ) : p += T ) , p += this . parse ( v . tokens , Y ) , H += this . renderer . listitem ( p , C , w ) ; u += this . renderer . list ( H , R , j ) ; continue } case "html" : { u += this . renderer . html ( I . text ) ; continue } case "paragraph" : { u += this . renderer . paragraph ( this . parseInline ( I . tokens ) ) ; continue } case "text" : { for ( H = I . tokens ? this . parseInline ( I . tokens ) : I . text ; c + 1 < A && s [ c + 1 ] . type === "text" ; ) I = s [ ++ c ] , H += `
` +(I.tokens?this.parseInline(I.tokens):I.text);u+=d?this.renderer.paragraph(H):H;continue}default:{var V='Token with "'+I.type+'" type was not found.';if(this.options.silent){console.error(V);return}else throw new Error(V)}}}return u},o.parseInline=function(s,d){d=d||this.renderer;var u="",c,m,g,k=s.length;for(c=0;c<k;c++){if(m=s[c],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[m.type]&&(g=this.options.extensions.renderers[m.type].call({parser:this},m),g!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(m.type))){u+=g||"";continue}switch(m.type){case"escape":{u+=d.text(m.text);break}case"html":{u+=d.html(m.text);break}case"link":{u+=d.link(m.href,m.title,this.parseInline(m.tokens,d));break}case"image":{u+=d.image(m.href,m.title,m.text);break}case"strong":{u+=d.strong(this.parseInline(m.tokens,d));break}case"em":{u+=d.em(this.parseInline(m.tokens,d));break}case"codespan":{u+=d.codespan(m.text);break}case"br":{u+=d.br();break}case"del":{u+=d.del(this.parseInline(m.tokens,d));break}case"text":{u+=d.text(m.text);break}default:{var x='Token with "'+m.type+'" type was not found.';if(this.options.silent){console.error(x);return}else throw new Error(x)}}}return u},t}(),sa=function(){function t(n){this.options=n||st.defaults}var o=t.prototype;return o.preprocess=function(s){return s},o.postprocess=function(s){return s},t}();sa.passThroughHooks=new Set(["preprocess","postprocess"]);function T3(t,o,n){return function(s){if(s.message+= `
Please report this to https : //github.com/markedjs/marked.`,t){var d="<p>An error occurred:</p><pre>"+Ut(s.message+"",!0)+"</pre>";if(o)return Promise.resolve(d);if(n){n(null,d);return}return d}if(o)return Promise.reject(s);if(n){n(s);return}throw s}}function ub(t,o){return function(n,s,d){typeof s=="function"&&(d=s,s=null);var u=dr({},s);s=dr({},Pe.defaults,u);var c=T3(s.silent,s.async,d);if(typeof n>"u"||n===null)return c(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return c(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(S3(s),s.hooks&&(s.hooks.options=s),d){var m=s.highlight,g;try{s.hooks&&(n=s.hooks.preprocess(n)),g=t(n,s)}catch(O){return c(O)}var k=function(H){var I;if(!H)try{s.walkTokens&&Pe.walkTokens(g,s.walkTokens),I=o(g,s),s.hooks&&(I=s.hooks.postprocess(I))}catch(R){H=R}return s.highlight=m,H?c(H):d(null,I)};if(!m||m.length<3||(delete s.highlight,!g.length))return k();var x=0;Pe.walkTokens(g,function(O){O.type==="code"&&(x++,setTimeout(function(){m(O.text,O.lang,function(H,I){if(H)return k(H);I!=null&&I!==O.text&&(O.text=I,O.escaped=!0),x--,x===0&&k()})},0))}),x===0&&k();return}if(s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(n):n).then(function(O){return t(O,s)}).then(function(O){return s.walkTokens?Promise.all(Pe.walkTokens(O,s.walkTokens)).then(function(){return O}):O}).then(function(O){return o(O,s)}).then(function(O){return s.hooks?s.hooks.postprocess(O):O}).catch(c);try{s.hooks&&(n=s.hooks.preprocess(n));var _=t(n,s);s.walkTokens&&Pe.walkTokens(_,s.walkTokens);var D=o(_,s);return s.hooks&&(D=s.hooks.postprocess(D)),D}catch(O){return c(O)}}}function Pe(t,o,n){return ub(Yn.lex,Xn.parse)(t,o,n)}Pe.options=Pe.setOptions=function(t){return Pe.defaults=dr({},Pe.defaults,t),m3(Pe.defaults),Pe};Pe.getDefaults=Ju;Pe.defaults=st.defaults;Pe.use=function(){for(var t=Pe.defaults.extensions||{renderers:{},childTokens:{}},o=arguments.length,n=new Array(o),s=0;s<o;s++)n[s]=arguments[s];n.forEach(function(d){var u=dr({},d);if(u.async=Pe.defaults.async||u.async||!1,d.extensions&&(d.extensions.forEach(function(m){if(!m.name)throw new Error("extension name required");if(m.renderer){var g=t.renderers[m.name];g?t.renderers[m.name]=function(){for(var k=arguments.length,x=new Array(k),_=0;_<k;_++)x[_]=arguments[_];var D=m.renderer.apply(this,x);return D===!1&&(D=g.apply(this,x)),D}:t.renderers[m.name]=m.renderer}if(m.tokenizer){if(!m.level||m.level!=="block"&&m.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");t[m.level]?t[m.level].unshift(m.tokenizer):t[m.level]=[m.tokenizer],m.start&&(m.level==="block"?t.startBlock?t.startBlock.push(m.start):t.startBlock=[m.start]:m.level==="inline"&&(t.startInline?t.startInline.push(m.start):t.startInline=[m.start]))}m.childTokens&&(t.childTokens[m.name]=m.childTokens)}),u.extensions=t),d.renderer&&function(){var m=Pe.defaults.renderer||new Ys,g=function(_){var D=m[_];m[_]=function(){for(var O=arguments.length,H=new Array(O),I=0;I<O;I++)H[I]=arguments[I];var R=d.renderer[_].apply(m,H);return R===!1&&(R=D.apply(m,H)),R}};for(var k in d.renderer)g(k);u.renderer=m}(),d.tokenizer&&function(){var m=Pe.defaults.tokenizer||new Ks,g=function(_){var D=m[_];m[_]=function(){for(var O=arguments.length,H=new Array(O),I=0;I<O;I++)H[I]=arguments[I];var R=d.tokenizer[_].apply(m,H);return R===!1&&(R=D.apply(m,H)),R}};for(var k in d.tokenizer)g(k);u.tokenizer=m}(),d.hooks&&function(){var m=Pe.defaults.hooks||new sa,g=function(_){var D=m[_];sa.passThroughHooks.has(_)?m[_]=function(O){if(Pe.defaults.async)return Promise.resolve(d.hooks[_].call(m,O)).then(function(I){return D.call(m,I)});var H=d.hooks[_].call(m,O);return D.call(m,H)}:m[_]=function(){for(var O=arguments.length,H=new Array(O),I=0;I<O;I++)H[I]=arguments[I];var R=d.hooks[_].apply(m,H);return R===!1&&(R=D.apply(m,H)),R}};for(var k in d.hooks)g(k);u.hooks=m}(),d.walkTokens){var c=Pe.defaults.walkTokens;u.walkTokens=function(m){var g=[];return g.push(d.walkTokens.call(this,m)),c&&(g=g.concat(c.call(this,m))),g}}
` ,fe= `
` +J;P&&Ne++,P&&G.ch===0&&(fe=J+ `
` ,Ne--),cn(U,!1,[S,fe]),U.setSelection({line:ne,ch:0},{line:Ne,ch:0})}var c=t.codemirror,m=c.getCursor("start"),g=c.getCursor("end"),k=c.getTokenAt({line:m.line,ch:m.ch||1}),x=c.getLineHandle(m.line),_=d(c,m.line,x,k),D,O,H;if(_==="single"){var I=x.text.slice(0,m.ch).replace(" ` "," "),R=x.text.slice(m.ch).replace(" ` ","");c.replaceRange(I+R,{line:m.line,ch:0},{line:m.line,ch:99999999999999}),m.ch--,m!==g&&g.ch--,c.setSelection(m,g),c.focus()}else if(_==="fenced")if(m.line!==g.line||m.ch!==g.ch){for(D=m.line;D>=0&&(x=c.getLineHandle(D),!n(x));D--);var j=c.getTokenAt({line:D,ch:1}),Y=s(j).fencedChars,p,v,w,C;n(c.getLineHandle(m.line))?(p="",v=m.line):n(c.getLineHandle(m.line-1))?(p="",v=m.line-1):(p=Y+ `
` ,v=m.line),n(c.getLineHandle(g.line))?(w="",C=g.line,g.ch===0&&(C+=1)):g.ch!==0&&n(c.getLineHandle(g.line+1))?(w="",C=g.line+1):(w=Y+ `
` ,C=g.line+1),g.ch===0&&(C-=1),c.operation(function(){c.replaceRange(w,{line:C,ch:0},{line:C+(w?0:1),ch:0}),c.replaceRange(p,{line:v,ch:0},{line:v+(p?0:1),ch:0})}),c.setSelection({line:v+(p?1:0),ch:0},{line:C+(p?1:-1),ch:0}),c.focus()}else{var T=m.line;if(n(c.getLineHandle(m.line))&&(d(c,m.line+1)==="fenced"?(D=m.line,T=m.line+1):(O=m.line,T=m.line-1)),D===void 0)for(D=T;D>=0&&(x=c.getLineHandle(D),!n(x));D--);if(O===void 0)for(H=c.lineCount(),O=T;O<H&&(x=c.getLineHandle(O),!n(x));O++);c.operation(function(){c.replaceRange("",{line:D,ch:0},{line:D+1,ch:0}),c.replaceRange("",{line:O-1,ch:0},{line:O,ch:0})}),c.focus()}else if(_==="indented"){if(m.line!==g.line||m.ch!==g.ch)D=m.line,O=g.line,g.ch===0&&O--;else{for(D=m.line;D>=0;D--)if(x=c.getLineHandle(D),!x.text.match(/^ \s * $ /)&&d(c,D,x)!=="indented"){D+=1;break}for(H=c.lineCount(),O=m.line;O<H;O++)if(x=c.getLineHandle(O),!x.text.match(/^ \s * $ /)&&d(c,O,x)!=="indented"){O-=1;break}}var z=c.getLineHandle(O+1),A=z&&c.getTokenAt({line:O+1,ch:z.text.length-1}),V=A&&s(A).indentedCode;V&&c.replaceRange( `
` ,{line:O+1,ch:0});for(var Z=D;Z<=O;Z++)c.indentLine(Z,"subtract");c.focus()}else{var q=m.line===g.line&&m.ch===g.ch&&m.ch===0,L=m.line!==g.line;q||L?u(c,m,g,o):cn(c,!1,[" ` "," ` "])}}function rl(t){lc(t.codemirror,"quote")}function da(t){Oo(t.codemirror,"smaller")}function ol(t){Oo(t.codemirror,"bigger")}function nl(t){Oo(t.codemirror,void 0,1)}function il(t){Oo(t.codemirror,void 0,2)}function al(t){Oo(t.codemirror,void 0,3)}function nc(t){Oo(t.codemirror,void 0,4)}function ic(t){Oo(t.codemirror,void 0,5)}function ac(t){Oo(t.codemirror,void 0,6)}function sl(t){var o=t.codemirror,n="*";["-","+","*"].includes(t.options.unorderedListStyle)&&(n=t.options.unorderedListStyle),lc(o,"unordered-list",n)}function ll(t){lc(t.codemirror,"ordered-list")}function dl(t){K3(t.codemirror)}function ul(t){var o=t.options,n="https://";if(o.promptURLs){var s=prompt(o.promptTexts.link,n);if(!s)return!1;n=gb(s)}vb(t,"link",o.insertTexts.link,n)}function cl(t){var o=t.options,n="https://";if(o.promptURLs){var s=prompt(o.promptTexts.image,n);if(!s)return!1;n=gb(s)}vb(t,"image",o.insertTexts.image,n)}function gb(t){return encodeURI(t).replace(/([ \\ ()])/g," \\ $ 1")}function sc(t){t.openBrowseFileWindow()}function bb(t,o){var n=t.codemirror,s=To(n),d=t.options,u=o.substr(o.lastIndexOf("/")+1),c=u.substring(u.lastIndexOf(".")+1).replace(/ \? .* $ /,"").toLowerCase();if(["png","jpg","jpeg","gif","svg","apng","avif","webp"].includes(c))cn(n,s.image,d.insertTexts.uploadedImage,o);else{var m=d.insertTexts.link;m[0]="["+u,cn(n,s.link,m,o)}t.updateStatusBar("upload-image",t.options.imageTexts.sbOnUploaded.replace("#image_name#",u)),setTimeout(function(){t.updateStatusBar("upload-image",t.options.imageTexts.sbInit)},1e3)}function fl(t){var o=t.codemirror,n=To(o),s=t.options;cn(o,n.table,s.insertTexts.table)}function pl(t){var o=t.codemirror,n=To(o),s=t.options;cn(o,n.image,s.insertTexts.horizontalRule)}function ml(t){var o=t.codemirror;o.undo(),o.focus()}function hl(t){var o=t.codemirror;o.redo(),o.focus()}function Qn(t){var o=t.codemirror,n=o.getWrapperElement(),s=n.nextSibling,d=t.toolbarElements&&t.toolbarElements["side-by-side"],u=!1,c=n.parentNode;s.classList.contains("editor-preview-active-side")?(t.options.sideBySideFullscreen===!1&&c.classList.remove("sided--no-fullscreen"),s.classList.remove("editor-preview-active-side"),d&&d.classList.remove("active"),n.classList.remove("CodeMirror-sided")):(setTimeout(function(){o.getOption("fullScreen")||(t.options.sideBySideFullscreen===!1?c.classList.add("sided--no-fullscreen"):un(t)),s.classList.add("editor-preview-active-side")},1),d&&d.classList.add("active"),n.classList.add("CodeMirror-sided"),u=!0);var m=n.lastChild;if(m.classList.contains("editor-preview-active")){m.classList.remove("editor-preview-active");var g=t.toolbarElements.preview,k=t.toolbar_div;g.classList.remove("active"),k.classList.remove("disabled-for-preview")}var x=function(){var D=t.options.previewRender(t.value(),s);D!=null&&(s.innerHTML=D)};if(o.sideBySideRenderingFunction||(o.sideBySideRenderingFunction=x),u){var _=t.options.previewRender(t.value(),s);_!=null&&(s.innerHTML=_),o.on("update",o.sideBySideRenderingFunction)}else o.off("update",o.sideBySideRenderingFunction);o.refresh()}function gl(t){var o=t.codemirror,n=o.getWrapperElement(),s=t.toolbar_div,d=t.options.toolbar?t.toolbarElements.preview:!1,u=n.lastChild,c=o.getWrapperElement().nextSibling;if(c.classList.contains("editor-preview-active-side")&&Qn(t),!u||!u.classList.contains("editor-preview-full")){if(u=document.createElement("div"),u.className="editor-preview-full",t.options.previewClass)if(Array.isArray(t.options.previewClass))for(var m=0;m<t.options.previewClass.length;m++)u.classList.add(t.options.previewClass[m]);else typeof t.options.previewClass=="string"&&u.classList.add(t.options.previewClass);n.appendChild(u)}u.classList.contains("editor-preview-active")?(u.classList.remove("editor-preview-active"),d&&(d.classList.remove("active"),s.classList.remove("disabled-for-preview"))):(setTimeout(function(){u.classList.add("editor-preview-active")},1),d&&(d.classList.add("active
| Column 1 | Column 2 | Column 3 |
| -- -- -- -- | -- -- -- -- | -- -- -- -- |
| Text | Text | Text |
` ],horizontalRule:["", `
-- -- -
` ]},X3={link:"URL for the link:",image:"URL of the image:"},Z3={locale:"en-US",format:{hour:"2-digit",minute:"2-digit"}},Q3={bold:"**",code:" ` ` ` ",italic:" * "},J3={sbInit:" Attach files by drag and dropping or pasting from clipboard . ",sbOnDragEnter:" Drop image to upload it . ",sbOnDrop:" Uploading image # images _names # ... ",sbProgress:" Uploading # file _name # : # progress # % ",sbOnUploaded:" Uploaded # image _name # ",sizeUnits:" B , KB , MB "},ek={noFileGiven:" You must select a file . ",typeNotAllowed:" This image type is not allowed . " , fileTooLarge : ` Image #image_name# is too big (#image_size#).
Maximum file size is # image _max _size # . ` ,importError:"Something went wrong when uploading the image #image_name#."};function ye(t){t=t||{},t.parent=this;var o=!0;if(t.autoDownloadFontAwesome===!1&&(o=!1),t.autoDownloadFontAwesome!==!0)for(var n=document.styleSheets,s=0;s<n.length;s++)n[s].href&&n[s].href.indexOf("//maxcdn.bootstrapcdn.com/font-awesome/")>-1&&(o=!1);if(o){var d=document.createElement("link");d.rel="stylesheet",d.href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css",document.getElementsByTagName("head")[0].appendChild(d)}if(t.element)this.element=t.element;else if(t.element===null){console.log("EasyMDE: Error. No element was found.");return}if(t.toolbar===void 0){t.toolbar=[];for(var u in dn)Object.prototype.hasOwnProperty.call(dn,u)&&(u.indexOf("separator-")!=-1&&t.toolbar.push("|"),(dn[u].default===!0||t.showIcons&&t.showIcons.constructor===Array&&t.showIcons.indexOf(u)!=-1)&&t.toolbar.push(u))}if(Object.prototype.hasOwnProperty.call(t,"previewClass")||(t.previewClass="editor-preview"),Object.prototype.hasOwnProperty.call(t,"status")||(t.status=["autosave","lines","words","cursor"],t.uploadImage&&t.status.unshift("upload-image")),t.previewRender||(t.previewRender=function(m){return this.parent.markdown(m)}),t.parsingConfig=io({highlightFormatting:!0},t.parsingConfig||{}),t.insertTexts=io({},Y3,t.insertTexts||{}),t.promptTexts=io({},X3,t.promptTexts||{}),t.blockStyles=io({},Q3,t.blockStyles||{}),t.autosave!=null&&(t.autosave.timeFormat=io({},Z3,t.autosave.timeFormat||{})),t.iconClassMap=io({},lt,t.iconClassMap||{}),t.shortcuts=io({},j3,t.shortcuts||{}),t.maxHeight=t.maxHeight||void 0,t.direction=t.direction||"ltr",typeof t.maxHeight<"u"?t.minHeight=t.maxHeight:t.minHeight=t.minHeight||"300px",t.errorCallback=t.errorCallback||function(m){alert(m)},t.uploadImage=t.uploadImage||!1,t.imageMaxSize=t.imageMaxSize||2097152,t.imageAccept=t.imageAccept||"image/png, image/jpeg, image/gif, image/avif",t.imageTexts=io({},J3,t.imageTexts||{}),t.errorMessages=io({},ek,t.errorMessages||{}),t.imagePathAbsolute=t.imagePathAbsolute||!1,t.imageCSRFName=t.imageCSRFName||"csrfmiddlewaretoken",t.imageCSRFHeader=t.imageCSRFHeader||!1,t.autosave!=null&&t.autosave.unique_id!=null&&t.autosave.unique_id!=""&&(t.autosave.uniqueId=t.autosave.unique_id),t.overlayMode&&t.overlayMode.combine===void 0&&(t.overlayMode.combine=!0),this.options=t,this.render(),t.initialValue&&(!this.options.autosave||this.options.autosave.foundSavedValue!==!0)&&this.value(t.initialValue),t.uploadImage){var c=this;this.codemirror.on("dragenter",function(m,g){c.updateStatusBar("upload-image",c.options.imageTexts.sbOnDragEnter),g.stopPropagation(),g.preventDefault()}),this.codemirror.on("dragend",function(m,g){c.updateStatusBar("upload-image",c.options.imageTexts.sbInit),g.stopPropagation(),g.preventDefault()}),this.codemirror.on("dragleave",function(m,g){c.updateStatusBar("upload-image",c.options.imageTexts.sbInit),g.stopPropagation(),g.preventDefault()}),this.codemirror.on("dragover",function(m,g){c.updateStatusBar("upload-image",c.options.imageTexts.sbOnDragEnter),g.stopPropagation(),g.preventDefault()}),this.codemirror.on("drop",function(m,g){g.stopPropagation(),g.preventDefault(),t.imageUploadFunction?c.uploadImagesUsingCustomFunction(t.imageUploadFunction,g.dataTransfer.files):c.uploadImages(g.dataTransfer.files)}),this.codemirror.on("paste",function(m,g){t.imageUploadFunction?c.uploadImagesUsingCustomFunction(t.imageUploadFunction,g.clipboardData.files):c.uploadImages(g.clipboardData.files)})}}ye.prototype.uploadImages=function(t,o,n){if(t.length!==0){for(var s=[],d=0;d<t.length;d++)s.push(t[d].name),this.uploadImage(t[d],o,n);this.updateStatusBar("upload-image",this.options.imageTexts.sbOnDrop.replace("#images_names#",s.join(", ")))}};ye.prototype.uploadImagesUsingCustomFunction=function(t,o){if(o.length!==0){for(var n=[],s=0;s<o.length;s++)n.push(o[s].name),this.uploadImageUsingCustomFunction(t,o[s]);this.updateStatusBar("upload-image",this.options.imageTexts.sbOnDrop.replace("#images_names#",n.join(", ")))}};ye.prototype
` ),N=N.replace(/ \r /g, `
` ),N=N.replace(/ \u 00A0/g," "),v.smartIndentationFix&&(N=U(N)),N= `
` +N+ `
` ,N=n.subParser("detab")(N,v,G),N=N.replace(/^[ \t ]+ $ /mg,""),n.helper.forEach(w,function(J){N=n.subParser("runExtension")(J,N,v,G)}),N=n.subParser("metadata")(N,v,G),N=n.subParser("hashPreCodeTags")(N,v,G),N=n.subParser("githubCodeBlocks")(N,v,G),N=n.subParser("hashHTMLBlocks")(N,v,G),N=n.subParser("hashCodeTags")(N,v,G),N=n.subParser("stripLinkDefinitions")(N,v,G),N=n.subParser("blockGamut")(N,v,G),N=n.subParser("unhashHTMLSpans")(N,v,G),N=n.subParser("unescapeSpecialChars")(N,v,G),N=N.replace(/¨D/g," $ $ "),N=N.replace(/¨T/g," \x A8"),N=n.subParser("completeHTMLDocument")(N,v,G),n.helper.forEach(C,function(J){N=n.subParser("runExtension")(J,N,v,G)}),A=G.metadata,N},this.makeMarkdown=this.makeMd=function(N,G){if(N=N.replace(/ \r \n /g, `
` ),N=N.replace(/ \r /g, `
` ),N=N.replace(/>[ \t ]+</,"> \x A8NBSP;<"),!G)if(window&&window.document)G=window.document;else throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");var J=G.createElement("div");J.innerHTML=N;var ne={preList:Le(J)};fe(J);for(var Ne=J.childNodes,P="",S=0;S<Ne.length;S++)P+=n.subParser("makeMarkdown.node")(Ne[S],ne);function fe(_e){for(var Ke=0;Ke<_e.childNodes.length;++Ke){var Ge=_e.childNodes[Ke];Ge.nodeType===3?!/ \S /.test(Ge.nodeValue)&&!/^[ ]+ $ /.test(Ge.nodeValue)?(_e.removeChild(Ge),--Ke):(Ge.nodeValue=Ge.nodeValue.split( `
` ).join(" "),Ge.nodeValue=Ge.nodeValue.replace(/( \s )+/g," $ 1")):Ge.nodeType===1&&fe(Ge)}}function Le(_e){for(var Ke=_e.querySelectorAll("pre"),Ge=[],X=0;X<Ke.length;++X)if(Ke[X].childElementCount===1&&Ke[X].firstChild.tagName.toLowerCase()==="code"){var ce=Ke[X].firstChild.innerHTML.trim(),ie=Ke[X].firstChild.getAttribute("data-language")||"";if(ie==="")for(var he=Ke[X].firstChild.className.split(" "),Ce=0;Ce<he.length;++Ce){var $ e=he[Ce].match(/^language-(.+) $ /);if( $ e!==null){ie= $ e[1];break}}ce=n.helper.unescapeHTMLEntities(ce),Ge.push(ce),Ke[X].outerHTML='<precode language="'+ie+'" precodenum="'+X.toString()+'"></precode>'}else Ge.push(Ke[X].innerHTML),Ke[X].innerHTML="",Ke[X].setAttribute("prenum",X.toString());return Ge}return P},this.setOption=function(N,G){v[N]=G},this.getOption=function(N){return v[N]},this.getOptions=function(){return v},this.addExtension=function(N,G){G=G||null,Z(N,G)},this.useExtension=function(N){Z(N)},this.setFlavor=function(N){if(!m.hasOwnProperty(N))throw Error(N+" flavor was not found");var G=m[N];z=N;for(var J in G)G.hasOwnProperty(J)&&(v[J]=G[J])},this.getFlavor=function(){return z},this.removeExtension=function(N){n.helper.isArray(N)||(N=[N]);for(var G=0;G<N.length;++G){for(var J=N[G],ne=0;ne<w.length;++ne)w[ne]===J&&w.splice(ne,1);for(var Ne=0;Ne<C.length;++Ne)C[Ne]===J&&C.splice(Ne,1)}},this.getAllExtensions=function(){return{language:w,output:C}},this.getMetadata=function(N){return N?A.raw:A.parsed},this.getMetadataFormat=function(){return A.format},this._setMetadataPair=function(N,G){A.parsed[N]=G},this._setMetadataFormat=function(N){A.format=N},this._setMetadataRaw=function(N){A.raw=N}},n.subParser("anchors",function(p,v,w){"use strict";p=w.converter._dispatch("anchors.before",p,v,w);var C=function(T,z,A,V,Z,q,L){if(n.helper.isUndefined(L)&&(L=""),A=A.toLowerCase(),T.search(/ \( <? \s *>? ?(['"].*['"])? \) $ /m)>-1)V="";else if(!V)if(A||(A=z.toLowerCase().replace(/ ? \n /g," ")),V="#"+A,!n.helper.isUndefined(w.gUrls[A]))V=w.gUrls[A],n.helper.isUndefined(w.gTitles[A])||(L=w.gTitles[A]);else return T;V=V.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback);var U='<a href="'+V+'"';return L!==""&&L!==null&&(L=L.replace(/"/g,"""),L=L.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback),U+=' title="'+L+'"'),v.openLinksInNewWindow&&!/^#/.test(V)&&(U+=' rel="noopener noreferrer" target=" \x A8E95Eblank"'),U+=">"+z+"</a>",U};return p=p.replace(/ \[ ((?: \[ [^ \] ]*]|[^ \[ \] ])*)] ?(?: \n *)? \[ (.*?)]()()()()/g,C),p=p.replace(/ \[ ((?: \[ [^ \] ]*]|[^ \[ \] ])*)]()[ \t ]* \( [ \t ]?<([^>]*)>(?:[ \t ]*((["'])([^"]*?) \5 ))?[ \t ]? \) /g,C),p=p.replace(/ \[ ((?: \[ [^ \] ]*]|[^ \[ \] ])*)]()[ \t ]* \( [ \t ]?<?([ \S ]+?(?: \( [ \S ]*? \) [ \S ]*?)?)>?(?:[ \t ]*((["'])([^"]*?) \5 ))?[ \t ]? \) /g,C),p=p.replace(/ \[ ([^ \[ \] ]+)]()()()()()/g,C),v.ghMentions&&(p=p.replace(/(^| \s )( \\ )?(@([a-z \d ]+(?:[a-z \d .-]+?[a-z \d ]+)*))/gmi,function(T,z,A,V,Z){if(A===" \\ ")return z+V;if(!n.helper.isString(v.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var q=v.ghMentionsLink.replace(/ \{ u}/g,Z),L="";return v.openLinksInNewWindow&&(L=' rel="noopener noreferrer" target=" \x A8E95Eblank"'),z+'<a href="'+q+'"'+L+">"+V+"</a>"})),p=w.converter._dispatch("anchors.after",p,v,w),p});var _=/([*~_]+| \b )(((https?|ftp|dict): \/ \/ |www \. )[^'"> \s ]+? \. [^'"> \s ]+?)()( \1 )?(?= \s | $ )(?!["<>])/gi,D=/([*~_]+| \b )(((https?|ftp|dict): \/ \/ |www \. )[^'"> \s ]+ \. [^'"> \s ]+?)([.!?,() \[ \] ])?( \1 )?(?= \s | $ )(?!["<>])/gi,O=/()<(((https?|ftp|dict): \/ \/ |www \. )[^'"> \s ]+)()>()/gi,H=/(^| \s )(?:mailto:)?([A-Za-z0-9!# $ %&'*+-/=?^_ ` { | } ~ . ] + @ [ - a - z0 - 9 ] + ( \ . [ - a - z0 - 9 ] + ) * \ . [ a - z ] + ) ( ? = $ | \ s ) / gmi , I = /<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi , R = function ( p ) { "use strict" ; return function ( v , w , C , T , z , A , V ) { C = C . replace ( n . helper . regexes . asteriskDashAndColon , n . helper . escapeCharactersCallback ) ; var Z = C , q = "" , L = "" , U = w || "" , N = V || "" ; return /^www\./i . test ( C ) && ( C = C . replace ( /^www\./i , "http://www." ) ) , p . excludeTrailingPunctuationFromURLs && A && ( q = A ) , p . openLinksInNewWindow && ( L = ' rel="noopener noreferrer" target="\xA8E95Eblank"' ) , U + '<a href="' + C + '"' + L + ">" + Z + "</a>" + q + N } } ,
` ;var C=/(^ {0,3}>[ \t ]?.+ \n (.+ \n )* \n *)+/gm;return v.splitAdjacentBlockquotes&&(C=/^ {0,3}>[ \s \S ]*?(?: \n \n )/gm),p=p.replace(C,function(T){return T=T.replace(/^[ \t ]*>[ \t ]?/gm,""),T=T.replace(/¨0/g,""),T=T.replace(/^[ \t ]+ $ /gm,""),T=n.subParser("githubCodeBlocks")(T,v,w),T=n.subParser("blockGamut")(T,v,w),T=T.replace(/(^| \n )/g," $ 1 "),T=T.replace(/( \s *<pre>[^ \r ]+?< \/ pre>)/gm,function(z,A){var V=A;return V=V.replace(/^ /mg," \x A80"),V=V.replace(/¨0/g,""),V}),n.subParser("hashBlock")( ` < blockquote >
` +T+ `
< /blockquote>`,v,w)}),p=w.converter._dispatch("blockQuotes.after",p,v,w),p}),n.subParser("codeBlocks",function(p,v,w){"use strict";p=w.converter._dispatch("codeBlocks.before",p,v,w),p+="\xA80";var C=/ ( ? : \ n \ n | ^ ) ( ( ? : ( ? : [ ] { 4 } | \ t ) . * \ n + ) + ) ( \ n * [ ] { 0 , 3 } [ ^ \ t \ n ] | ( ? = ¨ 0 ) ) / g ; return p = p . replace ( C , function ( T , z , A ) { var V = z , Z = A , q = `
` ;return V=n.subParser("outdent")(V,v,w),V=n.subParser("encodeCode")(V,v,w),V=n.subParser("detab")(V,v,w),V=V.replace(/^ \n +/g,""),V=V.replace(/ \n + $ /g,""),v.omitExtraWLInCodeBlocks&&(q=""),V="<pre><code>"+V+q+"</code></pre>",n.subParser("hashBlock")(V,v,w)+Z}),p=p.replace(/¨0/,""),p=w.converter._dispatch("codeBlocks.after",p,v,w),p}),n.subParser("codeSpans",function(p,v,w){"use strict";return p=w.converter._dispatch("codeSpans.before",p,v,w),typeof p>"u"&&(p=""),p=p.replace(/(^|[^ \\ ])( ` + ) ( [ ^ \ r ] * ? [ ^ ` ]) \2 (?! ` ) / gm , function ( C , T , z , A ) { var V = A ; return V = V . replace ( /^([ \t]*)/g , "" ) , V = V . replace ( /[ \t]*$/g , "" ) , V = n . subParser ( "encodeCode" ) ( V , v , w ) , V = T + "<code>" + V + "</code>" , V = n . subParser ( "hashHTMLSpans" ) ( V , v , w ) , V } ) , p = w . converter . _dispatch ( "codeSpans.after" , p , v , w ) , p } ) , n . subParser ( "completeHTMLDocument" , function ( p , v , w ) { "use strict" ; if ( ! v . completeHTMLDocument ) return p ; p = w . converter . _dispatch ( "completeHTMLDocument.before" , p , v , w ) ; var C = "html" , T = ` <!DOCTYPE HTML>
` ,z="",A= ` < meta charset = "utf-8" >
` ,V="",Z="";typeof w.metadata.parsed.doctype<"u"&&(T="<!DOCTYPE "+w.metadata.parsed.doctype+ ` >
` ,C=w.metadata.parsed.doctype.toString().toLowerCase(),(C==="html"||C==="html5")&&(A='<meta charset="utf-8">'));for(var q in w.metadata.parsed)if(w.metadata.parsed.hasOwnProperty(q))switch(q.toLowerCase()){case"doctype":break;case"title":z="<title>"+w.metadata.parsed.title+ ` < / t i t l e >
` ;break;case"charset":C==="html"||C==="html5"?A='<meta charset="'+w.metadata.parsed.charset+ ` " >
` :A='<meta name="charset" content="'+w.metadata.parsed.charset+ ` " >
` ;break;case"language":case"lang":V=' lang="'+w.metadata.parsed[q]+'"',Z+='<meta name="'+q+'" content="'+w.metadata.parsed[q]+ ` " >
` ;break;default:Z+='<meta name="'+q+'" content="'+w.metadata.parsed[q]+ ` " >
` }return p=T+"<html"+V+ ` >
< head >
` +z+A+Z+ ` < / h e a d >
< body >
` +p.trim()+ `
< / b o d y >
< /html>`,p=w.converter._dispatch("completeHTMLDocument.after",p,v,w),p}),n.subParser("detab",function(p,v,w){"use strict";return p=w.converter._dispatch("detab.before",p,v,w),p=p.replace(/ \ t ( ? = \ t ) / g , " " ) , p = p . replace ( /\t/g , "\xA8A\xA8B" ) , p = p . replace ( /¨B(.+?)¨A/g , function ( C , T ) { for ( var z = T , A = 4 - z . length % 4 , V = 0 ; V < A ; V ++ ) z += " " ; return z } ) , p = p . replace ( /¨A/g , " " ) , p = p . replace ( /¨B/g , "" ) , p = w . converter . _dispatch ( "detab.after" , p , v , w ) , p } ) , n . subParser ( "ellipsis" , function ( p , v , w ) { "use strict" ; return v . ellipsis && ( p = w . converter . _dispatch ( "ellipsis.before" , p , v , w ) , p = p . replace ( /\.\.\./g , "\u2026" ) , p = w . converter . _dispatch ( "ellipsis.after" , p , v , w ) ) , p } ) , n . subParser ( "emoji" , function ( p , v , w ) { "use strict" ; if ( ! v . emoji ) return p ; p = w . converter . _dispatch ( "emoji.before" , p , v , w ) ; var C = /:([\S]+?):/g ; return p = p . replace ( C , function ( T , z ) { return n . helper . emojis . hasOwnProperty ( z ) ? n . helper . emojis [ z ] : T } ) , p = w . converter . _dispatch ( "emoji.after" , p , v , w ) , p } ) , n . subParser ( "encodeAmpsAndAngles" , function ( p , v , w ) { "use strict" ; return p = w . converter . _dispatch ( "encodeAmpsAndAngles.before" , p , v , w ) , p = p . replace ( /&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g , "&" ) , p = p . replace ( /<(?![a-z\/?$!])/gi , "<" ) , p = p . replace ( /</g , "<" ) , p = p . replace ( />/g , ">" ) , p = w . converter . _dispatch ( "encodeAmpsAndAngles.after" , p , v , w ) , p } ) , n . subParser ( "encodeBackslashEscapes" , function ( p , v , w ) { "use strict" ; return p = w . converter . _dispatch ( "encodeBackslashEscapes.before" , p , v , w ) , p = p . replace ( /\\(\\)/g , n . helper . escapeCharactersCallback ) , p = p . replace ( /\\([`*_{}\[\]()>#+.!~=|:-])/g , n . helper . escapeCharactersCallback ) , p = w . converter . _dispatch ( "encodeBackslashEscapes.after" , p , v , w ) , p } ) , n . subParser ( "encodeCode" , function ( p , v , w ) { "use strict" ; return p = w . converter . _dispatch ( "encodeCode.before" , p , v , w ) , p = p . replace ( /&/g , "&" ) . replace ( /</g , "<" ) . replace ( />/g , ">" ) . replace ( /([*_{}\[\]\\=~-])/g , n . helper . escapeCharactersCallback ) , p = w . converter . _dispatch ( "encodeCode.after" , p , v , w ) , p } ) , n . subParser ( "escapeSpecialCharsWithinTagAttributes" , function ( p , v , w ) { "use strict" ; p = w . converter . _dispatch ( "escapeSpecialCharsWithinTagAttributes.before" , p , v , w ) ; var C = /<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi , T = /<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi ; return p = p . replace ( C , function ( z ) { return z . replace ( /(.)<\/?code>(?=.)/g , "$1`" ) . replace ( /([\\`*_~=|])/g , n . helper . escapeCharactersCallback ) } ) , p = p . replace ( T , function ( z ) { return z . replace ( /([\\`*_~=|])/g , n . helper . escapeCharactersCallback ) } ) , p = w . converter . _dispatch ( "escapeSpecialCharsWithinTagAttributes.after" , p , v , w ) , p } ) , n . subParser ( "githubCodeBlocks" , function ( p , v , w ) { "use strict" ; return v . ghCodeBlocks ? ( p = w . converter . _dispatch ( "githubCodeBlocks.before" , p , v , w ) , p += "\xA80" , p = p . replace ( /(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g , function ( C , T , z , A ) { var V = v . omitExtraWLInCodeBlocks ? "" : `
` ;return A=n.subParser("encodeCode")(A,v,w),A=n.subParser("detab")(A,v,w),A=A.replace(/^ \n +/g,""),A=A.replace(/ \n + $ /g,""),A="<pre><code"+(z?' class="'+z+" language-"+z+'"':"")+">"+A+V+"</code></pre>",A=n.subParser("hashBlock")(A,v,w), `
\ xA8G ` +(w.ghCodeBlocks.push({text:C,codeblock:A})-1)+ ` G
` }),p=p.replace(/¨0/,""),w.converter._dispatch("githubCodeBlocks.after",p,v,w)):p}),n.subParser("hashBlock",function(p,v,w){"use strict";return p=w.converter._dispatch("hashBlock.before",p,v,w),p=p.replace(/(^ \n +| \n + $ )/g,""),p= `
\ xA8K ` +(w.gHtmlBlocks.push(p)-1)+ ` K
` ,p=w.converter._dispatch("hashBlock.after",p,v,w),p}),n.subParser("hashCodeTags",function(p,v,w){"use strict";p=w.converter._dispatch("hashCodeTags.before",p,v,w);var C=function(T,z,A,V){var Z=A+n.subParser("encodeCode")(z,v,w)+V;return" \x A8C"+(w.gHtmlSpans.push(Z)-1)+"C"};return p=n.helper.replaceRecursiveRegExp(p,C,"<code \\ b[^>]*>","</code>","gim"),p=w.converter._dispatch("hashCodeTags.after",p,v,w),p}),n.subParser("hashElement",function(p,v,w){"use strict";return function(C,T){var z=T;return z=z.replace(/ \n \n /g, `
` ),z=z.replace(/^ \n /,""),z=z.replace(/ \n + $ /g,""),z= `
\ xA8K ` +(w.gHtmlBlocks.push(z)-1)+ ` K
` ,z}}),n.subParser("hashHTMLBlocks",function(p,v,w){"use strict";p=w.converter._dispatch("hashHTMLBlocks.before",p,v,w);var C=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],T=function(N,G,J,ne){var Ne=N;return J.search(/ \b markdown \b /)!==-1&&(Ne=J+w.converter.makeHtml(G)+ne), `
\ xA8K ` +(w.gHtmlBlocks.push(Ne)-1)+ ` K
` };v.backslashEscapesHTMLTags&&(p=p.replace(/ \\ <( \/ ?[^>]+?)>/g,function(N,G){return"<"+G+">"}));for(var z=0;z<C.length;++z)for(var A,V=new RegExp("^ {0,3}(<"+C[z]+" \\ b[^>]*>)","im"),Z="<"+C[z]+" \\ b[^>]*>",q="</"+C[z]+">";(A=n.helper.regexIndexOf(p,V))!==-1;){var L=n.helper.splitAtIndex(p,A),U=n.helper.replaceRecursiveRegExp(L[1],T,Z,q,"im");if(U===L[1])break;p=L[0].concat(U)}return p=p.replace(/( \n {0,3}(<(hr) \b ([^<>])*? \/ ?>)[ \t ]*(?= \n {2,}))/g,n.subParser("hashElement")(p,v,w)),p=n.helper.replaceRecursiveRegExp(p,function(N){return `
\ xA8K ` +(w.gHtmlBlocks.push(N)-1)+ ` K
` },"^ {0,3}<!--","-->","gm"),p=p.replace(/(?: \n \n )( {0,3}(?:<([?%])[^ \r ]*? \2 >)[ \t ]*(?= \n {2,}))/g,n.subParser("hashElement")(p,v,w)),p=w.converter._dispatch("hashHTMLBlocks.after",p,v,w),p}),n.subParser("hashHTMLSpans",function(p,v,w){"use strict";p=w.converter._dispatch("hashHTMLSpans.before",p,v,w);function C(T){return" \x A8C"+(w.gHtmlSpans.push(T)-1)+"C"}return p=p.replace(/<[^>]+? \/ >/gi,function(T){return C(T)}),p=p.replace(/<([^>]+?)>[ \s \S ]*?< \/ \1 >/g,function(T){return C(T)}),p=p.replace(/<([^>]+?) \s [^>]+?>[ \s \S ]*?< \/ \1 >/g,function(T){return C(T)}),p=p.replace(/<[^>]+?>/gi,function(T){return C(T)}),p=w.converter._dispatch("hashHTMLSpans.after",p,v,w),p}),n.subParser("unhashHTMLSpans",function(p,v,w){"use strict";p=w.converter._dispatch("unhashHTMLSpans.before",p,v,w);for(var C=0;C<w.gHtmlSpans.length;++C){for(var T=w.gHtmlSpans[C],z=0;/¨C( \d +)C/.test(T);){var A=RegExp. $ 1;if(T=T.replace(" \x A8C"+A+"C",w.gHtmlSpans[A]),z===10){console.error("maximum nesting of 10 spans reached!!!");break}++z}p=p.replace(" \x A8C"+C+"C",T)}return p=w.converter._dispatch("unhashHTMLSpans.after",p,v,w),p}),n.subParser("hashPreCodeTags",function(p,v,w){"use strict";p=w.converter._dispatch("hashPreCodeTags.before",p,v,w);var C=function(T,z,A,V){var Z=A+n.subParser("encodeCode")(z,v,w)+V;return `
\ xA8G ` +(w.ghCodeBlocks.push({text:T,codeblock:Z})-1)+ ` G
` };return p=n.helper.replaceRecursiveRegExp(p,C,"^ {0,3}<pre \\ b[^>]*> \\ s*<code \\ b[^>]*>","^ {0,3}</code> \\ s*</pre>","gim"),p=w.converter._dispatch("hashPreCodeTags.after",p,v,w),p}),n.subParser("headers",function(p,v,w){"use strict";p=w.converter._dispatch("headers.before",p,v,w);var C=isNaN(parseInt(v.headerLevelStart))?1:parseInt(v.headerLevelStart),T=v.smoothLivePreview?/^(.+)[ \t ]* \n ={2,}[ \t ]* \n +/gm:/^(.+)[ \t ]* \n =+[ \t ]* \n +/gm,z=v.smoothLivePreview?/^(.+)[ \t ]* \n -{2,}[ \t ]* \n +/gm:/^(.+)[ \t ]* \n -+[ \t ]* \n +/gm;p=p.replace(T,function(Z,q){var L=n.subParser("spanGamut")(q,v,w),U=v.noHeaderId?"":' id="'+V(q)+'"',N=C,G="<h"+N+U+">"+L+"</h"+N+">";return n.subParser("hashBlock")(G,v,w)}),p=p.replace(z,function(Z,q){var L=n.subParser("spanGamut")(q,v,w),U=v.noHeaderId?"":' id="'+V(q)+'"',N=C+1,G="<h"+N+U+">"+L+"</h"+N+">";return n.subParser("hashBlock")(G,v,w)});var A=v.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t ]+(.+?)[ \t ]*#* \n +/gm:/^(#{1,6})[ \t ]*(.+?)[ \t ]*#* \n +/gm;p=p.replace(A,function(Z,q,L){var U=L;v.customizedHeaderId&&(U=L.replace(/ \s ? \{ ([^{]+?)} \s * $ /,""));var N=n.subParser("spanGamut")(U,v,w),G=v.noHeaderId?"":' id="'+V(L)+'"',J=C-1+q.length,ne="<h"+J+G+">"+N+"</h"+J+">";return n.subParser("hashBlock")(ne,v,w)});function V(Z){var q,L;if(v.customizedHeaderId){var U=Z.match(/ \{ ([^{]+?)} \s * $ /);U&&U[1]&&(Z=U[1])}return q=Z,n.helper.isString(v.prefixHeaderId)?L=v.prefixHeaderId:v.prefixHeaderId===!0?L="section-":L="",v.rawPrefixHeaderId||(q=L+q),v.ghCompatibleHeaderId?q=q.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+ $ , \/ :;=?@"#{}|^¨~ \[ \] ` \ \ * ) ( % . ! '<>]/g,"").toLowerCase():v.rawHeaderId?q=q.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"\xA8").replace(/¨D/g,"$").replace(/["' ] / g , "-" ) . toLowerCase ( ) : q = q . replace ( /[^\w]/g , "" ) . toLowerCase ( ) , v . rawPrefixHeaderId && ( q = L + q ) , w . hashLinkCounts [ q ] ? q = q + "-" + w . hashLinkCounts [ q ] ++ : w . hashLinkCounts [ q ] = 1 , q } return p = w . converter . _dispatch ( "headers.after" , p , v , w ) , p } ) , n . subParser ( "horizontalRule" , function ( p , v , w ) { "use strict" ; p = w . converter . _dispatch ( "horizontalRule.before" , p , v , w ) ; var C = n . subParser ( "hashBlock" ) ( "<hr />" , v , w ) ; return p = p . replace ( /^ {0,2}( ?-){3,}[ \t]*$/gm , C ) , p = p . replace ( /^ {0,2}( ?\*){3,}[ \t]*$/gm , C ) , p = p . replace ( /^ {0,2}( ?_){3,}[ \t]*$/gm , C ) , p = w . converter . _dispatch ( "horizontalRule.after" , p , v , w ) , p } ) , n . subParser ( "images" , function ( p , v , w ) { "use strict" ; p = w . converter . _dispatch ( "images.before" , p , v , w ) ; var C = /!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g , T = /!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g , z = /!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g , A = /!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g , V = /!\[([^\[\]]+)]()()()()()/g ; function Z ( L , U , N , G , J , ne , Ne , P ) { return G = G . replace ( /\s/g , "" ) , q ( L , U , N , G , J , ne , Ne , P ) } function q ( L , U , N , G , J , ne , Ne , P ) { var S = w . gUrls , fe = w . gTitles , Le = w . gDimensions ; if ( N = N . toLowerCase ( ) , P || ( P = "" ) , L . search ( /\(<?\s*>? ?(['"].*['"])?\)$/m ) > - 1 ) G = "" ; else if ( G === "" || G === null ) if ( ( N === "" || N === null ) && ( N = U . toLowerCase ( ) . replace ( / ?\n/g , " " ) ) , G = "#" + N , ! n . helper . isUndefined ( S [ N ] ) ) G = S [ N ] , n . helper . isUndefined ( fe [ N ] ) || ( P = fe [ N ] ) , n . helper . isUndefined ( Le [ N ] ) || ( J = Le [ N ] . width , ne = Le [ N ] . height ) ; else return L ; U = U . replace ( /"/g , """ ) . replace ( n . helper . regexes . asteriskDashAndColon , n . helper . escapeCharactersCallback ) , G = G . replace ( n . helper . regexes . asteriskDashAndColon , n . helper . escapeCharactersCallback ) ; var _e = '<img src="' + G + '" alt="' + U + '"' ; return P && n . helper . isString ( P ) && ( P = P . replace ( /"/g , """ ) . replace ( n . helper . regexes . asteriskDashAndColon , n . helper . escapeCharactersCallback ) , _e += ' title="' + P + '"' ) , J && ne && ( J = J === "*" ? "auto" : J , ne = ne === "*" ? "auto" : ne , _e += ' width="' + J + '"' , _e += ' height="' + ne + '"' ) , _e += " />" , _e } return p = p . replace ( A , q ) , p = p . replace ( z , Z ) , p = p . replace ( T , q ) , p = p . replace ( C , q ) , p = p . replace ( V , q ) , p = w . converter . _dispatch ( "images.after" , p , v , w ) ,
` ),A+=" \x A80";var Z=/( \n )?(^ {0,3})([*+-]| \d +[.])[ \t ]+(( \[ (x|X| )?])?[ \t ]*[^ \r ]+?( \n {1,2}))(?= \n *(¨0| {0,3}([*+-]| \d +[.])[ \t ]+))/gm,q=/ \n [ \t ]* \n (?!¨0)/.test(A);return v.disableForced4SpacesIndentedSublists&&(Z=/( \n )?(^ {0,3})([*+-]| \d +[.])[ \t ]+(( \[ (x|X| )?])?[ \t ]*[^ \r ]+?( \n {1,2}))(?= \n *(¨0| \2 ([*+-]| \d +[.])[ \t ]+))/gm),A=A.replace(Z,function(L,U,N,G,J,ne,Ne){Ne=Ne&&Ne.trim()!=="";var P=n.subParser("outdent")(J,v,w),S="";return ne&&v.tasklists&&(S=' class="task-list-item" style="list-style-type: none;"',P=P.replace(/^[ \t ]* \[ (x|X| )?]/m,function(){var fe='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return Ne&&(fe+=" checked"),fe+=">",fe})),P=P.replace(/^([-*+]| \d \. )[ \t ]+[ \S \n ]*/g,function(fe){return" \x A8A"+fe}),U||P.search(/ \n {2,}/)>-1?(P=n.subParser("githubCodeBlocks")(P,v,w),P=n.subParser("blockGamut")(P,v,w)):(P=n.subParser("lists")(P,v,w),P=P.replace(/ \n $ /,""),P=n.subParser("hashHTMLBlocks")(P,v,w),P=P.replace(/ \n \n +/g, `
` ),q?P=n.subParser("paragraphs")(P,v,w):P=n.subParser("spanGamut")(P,v,w)),P=P.replace(" \x A8A",""),P="<li"+S+">"+P+ ` < / l i >
` ,P}),A=A.replace(/¨0/g,""),w.gListLevel--,V&&(A=A.replace(/ \s + $ /,"")),A}function T(A,V){if(V==="ol"){var Z=A.match(/^ *( \d +) \. /);if(Z&&Z[1]!=="1")return' start="'+Z[1]+'"'}return""}function z(A,V,Z){var q=v.disableForced4SpacesIndentedSublists?/^ ? \d + \. [ \t ]/gm:/^ {0,3} \d + \. [ \t ]/gm,L=v.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t ]/gm:/^ {0,3}[*+-][ \t ]/gm,U=V==="ul"?q:L,N="";if(A.search(U)!==-1)(function J(ne){var Ne=ne.search(U),P=T(A,V);Ne!==-1?(N+= `
< ` +V+P+ ` >
` +C(ne.slice(0,Ne),!!Z)+"</"+V+ ` >
` ,V=V==="ul"?"ol":"ul",U=V==="ul"?q:L,J(ne.slice(Ne))):N+= `
< ` +V+P+ ` >
` +C(ne,!!Z)+"</"+V+ ` >
` })(A);else{var G=T(A,V);N= `
< ` +V+G+ ` >
` +C(A,!!Z)+"</"+V+ ` >
` }return N}return p=w.converter._dispatch("lists.before",p,v,w),p+=" \x A80",w.gListLevel?p=p.replace(/^(( {0,3}([*+-]| \d +[.])[ \t ]+)[^ \r ]+?(¨0| \n {2,}(?= \S )(?![ \t ]*(?:[*+-]| \d +[.])[ \t ]+)))/gm,function(A,V,Z){var q=Z.search(/[*+-]/g)>-1?"ul":"ol";return z(V,q,!0)}):p=p.replace(/( \n \n |^ \n ?)(( {0,3}([*+-]| \d +[.])[ \t ]+)[^ \r ]+?(¨0| \n {2,}(?= \S )(?![ \t ]*(?:[*+-]| \d +[.])[ \t ]+)))/gm,function(A,V,Z,q){var L=q.search(/[*+-]/g)>-1?"ul":"ol";return z(Z,L,!1)}),p=p.replace(/¨0/,""),p=w.converter._dispatch("lists.after",p,v,w),p}),n.subParser("metadata",function(p,v,w){"use strict";if(!v.metadata)return p;p=w.converter._dispatch("metadata.before",p,v,w);function C(T){w.metadata.raw=T,T=T.replace(/&/g,"&").replace(/"/g,"""),T=T.replace(/ \n {4}/g," "),T.replace(/^([ \S ]+): +([ \s \S ]+?) $ /gm,function(z,A,V){return w.metadata.parsed[A]=V,""})}return p=p.replace(/^ \s *«««+( \S *?) \n ([ \s \S ]+?) \n »»»+ \n /,function(T,z,A){return C(A)," \x A8M"}),p=p.replace(/^ \s *---+( \S *?) \n ([ \s \S ]+?) \n ---+ \n /,function(T,z,A){return z&&(w.metadata.format=z),C(A)," \x A8M"}),p=p.replace(/¨M/g,""),p=w.converter._dispatch("metadata.after",p,v,w),p}),n.subParser("outdent",function(p,v,w){"use strict";return p=w.converter._dispatch("outdent.before",p,v,w),p=p.replace(/^( \t |[ ]{1,4})/gm," \x A80"),p=p.replace(/¨0/g,""),p=w.converter._dispatch("outdent.after",p,v,w),p}),n.subParser("paragraphs",function(p,v,w){"use strict";p=w.converter._dispatch("paragraphs.before",p,v,w),p=p.replace(/^ \n +/g,""),p=p.replace(/ \n + $ /g,"");for(var C=p.split(/ \n {2,}/g),T=[],z=C.length,A=0;A<z;A++){var V=C[A];V.search(/¨(K|G)( \d +) \1 /g)>=0?T.push(V):V.search(/ \S /)>=0&&(V=n.subParser("spanGamut")(V,v,w),V=V.replace(/^([ \t ]*)/g,"<p>"),V+="</p>",T.push(V))}for(z=T.length,A=0;A<z;A++){for(var Z="",q=T[A],L=!1;/¨(K|G)( \d +) \1 /.test(q);){var U=RegExp. $ 1,N=RegExp. $ 2;U==="K"?Z=w.gHtmlBlocks[N]:L?Z=n.subParser("encodeCode")(w.ghCodeBlocks[N].text,v,w):Z=w.ghCodeBlocks[N].codeblock,Z=Z.replace(/ \$ /g," $ $ $ $ "),q=q.replace(/( \n \n )?¨(K|G) \d + \2 ( \n \n )?/,Z),/^<pre \b [^>]*> \s *<code \b [^>]*>/.test(q)&&(L=!0)}T[A]=q}return p=T.join( `
` ),p=p.replace(/^ \n +/g,""),p=p.replace(/ \n + $ /g,""),w.converter._dispatch("paragraphs.after",p,v,w)}),n.subParser("runExtension",function(p,v,w,C){"use strict";if(p.filter)v=p.filter(v,C.converter,w);else if(p.regex){var T=p.regex;T instanceof RegExp||(T=new RegExp(T,"g")),v=v.replace(T,p.replace)}return v}),n.subParser("spanGamut",function(p,v,w){"use strict";return p=w.converter._dispatch("spanGamut.before",p,v,w),p=n.subParser("codeSpans")(p,v,w),p=n.subParser("escapeSpecialCharsWithinTagAttributes")(p,v,w),p=n.subParser("encodeBackslashEscapes")(p,v,w),p=n.subParser("images")(p,v,w),p=n.subParser("anchors")(p,v,w),p=n.subParser("autoLinks")(p,v,w),p=n.subParser("simplifiedAutoLinks")(p,v,w),p=n.subParser("emoji")(p,v,w),p=n.subParser("underline")(p,v,w),p=n.subParser("italicsAndBold")(p,v,w),p=n.subParser("strikethrough")(p,v,w),p=n.subParser("ellipsis")(p,v,w),p=n.subParser("hashHTMLSpans")(p,v,w),p=n.subParser("encodeAmpsAndAngles")(p,v,w),v.simpleLineBreaks?/ \n \n ¨K/.test(p)||(p=p.replace(/ \n +/g, ` < br / >
` )):p=p.replace(/ + \n /g, ` < br / >
` ),p=w.converter._dispatch("spanGamut.after",p,v,w),p}),n.subParser("strikethrough",function(p,v,w){"use strict";function C(T){return v.simplifiedAutoLink&&(T=n.subParser("simplifiedAutoLinks")(T,v,w)),"<del>"+T+"</del>"}return v.strikethrough&&(p=w.converter._dispatch("strikethrough.before",p,v,w),p=p.replace(/(?:~){2}([ \s \S ]+?)(?:~){2}/g,function(T,z){return C(z)}),p=w.converter._dispatch("strikethrough.after",p,v,w)),p}),n.subParser("stripLinkDefinitions",function(p,v,w){"use strict";var C=/^ {0,3} \[ ([^ \] ]+)]:[ \t ]* \n ?[ \t ]*<?([^> \s ]+)>?(?: =([* \d ]+[A-Za-z%]{0,4})x([* \d ]+[A-Za-z%]{0,4}))?[ \t ]* \n ?[ \t ]*(?:( \n *)["|'(](.+?)["|')][ \t ]*)?(?: \n +|(?=¨0))/gm,T=/^ {0,3} \[ ([^ \] ]+)]:[ \t ]* \n ?[ \t ]*<?(data:.+? \/ .+?;base64,[A-Za-z0-9+/= \n ]+?)>?(?: =([* \d ]+[A-Za-z%]{0,4})x([* \d ]+[A-Za-z%]{0,4}))?[ \t ]* \n ?[ \t ]*(?:( \n *)["|'(](.+?)["|')][ \t ]*)?(?: \n \n |(?=¨0)|(?= \n \[ ))/gm;p+=" \x A80";var z=function(A,V,Z,q,L,U,N){return V=V.toLowerCase(),p.toLowerCase().split(V).length-1<2?A:(Z.match(/^data:.+? \/ .+?;base64,/)?w.gUrls[V]=Z.replace(/ \s /g,""):w.gUrls[V]=n.subParser("encodeAmpsAndAngles")(Z,v,w),U?U+N:(N&&(w.gTitles[V]=N.replace(/"|'/g,""")),v.parseImgDimensions&&q&&L&&(w.gDimensions[V]={width:q,height:L}),""))};return p=p.replace(T,z),p=p.replace(C,z),p=p.replace(/¨0/,""),p}),n.subParser("tables",function(p,v,w){"use strict";if(!v.tables)return p;var C=/^ {0,3} \| ?.+ \| .+ \n {0,3} \| ?[ \t ]*:?[ \t ]*(?:[-=]){2,}[ \t ]*:?[ \t ]* \| [ \t ]*:?[ \t ]*(?:[-=]){2,}[ \s \S ]+?(?: \n \n |¨0)/gm,T=/^ {0,3} \| .+ \| [ \t ]* \n {0,3} \| [ \t ]*:?[ \t ]*(?:[-=]){2,}[ \t ]*:?[ \t ]* \| [ \t ]* \n ( {0,3} \| .+ \| [ \t ]* \n )*(?: \n |¨0)/gm;function z(L){return/^:[ \t ]*--* $ /.test(L)?' style="text-align:left;"':/^--*[ \t ]*:[ \t ]* $ /.test(L)?' style="text-align:right;"':/^:[ \t ]*--*[ \t ]*: $ /.test(L)?' style="text-align:center;"':""}function A(L,U){var N="";return L=L.trim(),(v.tablesHeaderId||v.tableHeaderId)&&(N=' id="'+L.replace(/ /g,"_").toLowerCase()+'"'),L=n.subParser("spanGamut")(L,v,w),"<th"+N+U+">"+L+ ` < / t h >
` }function V(L,U){var N=n.subParser("spanGamut")(L,v,w);return"<td"+U+">"+N+ ` < / t d >
` }function Z(L,U){for(var N= ` < table >
< thead >
< tr >
` ,G=L.length,J=0;J<G;++J)N+=L[J];for(N+= ` < / t r >
< / t h e a d >
< tbody >
` ,J=0;J<U.length;++J){N+= ` < tr >
` ;for(var ne=0;ne<G;++ne)N+=U[J][ne];N+= ` < / t r >
` }return N+= ` < / t b o d y >
< / t a b l e >
` ,N}function q(L){var U,N=L.split( `
` );for(U=0;U<N.length;++U)/^ {0,3} \| /.test(N[U])&&(N[U]=N[U].replace(/^ {0,3} \| /,"")),/ \| [ \t ]* $ /.test(N[U])&&(N[U]=N[U].replace(/ \| [ \t ]* $ /,"")),N[U]=n.subParser("codeSpans")(N[U],v,w);var G=N[0].split("|").map(function(_e){return _e.trim()}),J=N[1].split("|").map(function(_e){return _e.trim()}),ne=[],Ne=[],P=[],S=[];for(N.shift(),N.shift(),U=0;U<N.length;++U)N[U].trim()!==""&&ne.push(N[U].split("|").map(function(_e){return _e.trim()}));if(G.length<J.length)return L;for(U=0;U<J.length;++U)P.push(z(J[U]));for(U=0;U<G.length;++U)n.helper.isUndefined(P[U])&&(P[U]=""),Ne.push(A(G[U],P[U]));for(U=0;U<ne.length;++U){for(var fe=[],Le=0;Le<Ne.length;++Le)n.helper.isUndefined(ne[U][Le]),fe.push(V(ne[U][Le],P[Le]));S.push(fe)}return Z(Ne,S)}return p=w.converter._dispatch("tables.before",p,v,w),p=p.replace(/ \\ ( \| )/g,n.helper.escapeCharactersCallback),p=p.replace(C,q),p=p.replace(T,q),p=w.converter._dispatch("tables.after",p,v,w),p}),n.subParser("underline",function(p,v,w){"use strict";return v.underline&&(p=w.converter._dispatch("underline.before",p,v,w),v.literalMidWordUnderscores?(p=p.replace(/ \b ___( \S [ \s \S ]*?)___ \b /g,function(C,T){return"<u>"+T+"</u>"}),p=p.replace(/ \b __( \S [ \s \S ]*?)__ \b /g,function(C,T){return"<u>"+T+"</u>"})):(p=p.replace(/___( \S [ \s \S ]*?)___/g,function(C,T){return/ \S $ /.test(T)?"<u>"+T+"</u>":C}),p=p.replace(/__( \S [ \s \S ]*?)__/g,function(C,T){return/ \S $ /.test(T)?"<u>"+T+"</u>":C})),p=p.replace(/(_)/g,n.helper.escapeCharactersCallback),p=w.converter._dispatch("underline.after",p,v,w)),p}),n.subParser("unescapeSpecialChars",function(p,v,w){"use strict";return p=w.converter._dispatch("unescapeSpecialChars.before",p,v,w),p=p.replace(/¨E( \d +)E/g,function(C,T){var z=parseInt(T);return String.fromCharCode(z)}),p=w.converter._dispatch("unescapeSpecialChars.after",p,v,w),p}),n.subParser("makeMarkdown.blockquote",function(p,v){"use strict";var w="";if(p.hasChildNodes())for(var C=p.childNodes,T=C.length,z=0;z<T;++z){var A=n.subParser("makeMarkdown.node")(C[z],v);A!==""&&(w+=A)}return w=w.trim(),w="> "+w.split( `
` ).join( `
> ` ),w}),n.subParser("makeMarkdown.codeBlock",function(p,v){"use strict";var w=p.getAttribute("language"),C=p.getAttribute("precodenum");return" ` ` ` " + w + `
` +v.preList[C]+" \n ` ` ` "}),n.subParser(" makeMarkdown . codeSpan ",function(p){" use strict ";return" ` "+p.innerHTML+" ` "}),n.subParser(" makeMarkdown . emphasis ",function(p,v){" use strict ";var w=" ";if(p.hasChildNodes()){w+=" * ";for(var C=p.childNodes,T=C.length,z=0;z<T;++z)w+=n.subParser(" makeMarkdown . node ")(C[z],v);w+=" * "}return w}),n.subParser(" makeMarkdown . header ",function(p,v,w){" use strict ";var C=new Array(w+1).join(" # "),T=" ";if(p.hasChildNodes()){T=C+" ";for(var z=p.childNodes,A=z.length,V=0;V<A;++V)T+=n.subParser(" makeMarkdown . node ")(z[V],v)}return T}),n.subParser(" makeMarkdown . hr ",function(){" use strict ";return" -- - "}),n.subParser(" makeMarkdown . image ",function(p){" use strict ";var v=" ";return p.hasAttribute(" src ")&&(v+=" ! [ "+p.getAttribute(" alt ")+" ] ( ",v+=" < "+p.getAttribute(" src ")+" > ",p.hasAttribute(" width ")&&p.hasAttribute(" height ")&&(v+=" = "+p.getAttribute(" width ")+" x "+p.getAttribute(" height ")),p.hasAttribute(" title ")&&(v+=' " '+p.getAttribute("title")+' "'),v+=" ) "),v}),n.subParser(" makeMarkdown . links ",function(p,v){" use strict ";var w=" ";if(p.hasChildNodes()&&p.hasAttribute(" href ")){var C=p.childNodes,T=C.length;w=" [ ";for(var z=0;z<T;++z)w+=n.subParser(" makeMarkdown . node ")(C[z],v);w+=" ] ( ",w+=" < "+p.getAttribute(" href ")+" > ",p.hasAttribute(" title ")&&(w+=' " '+p.getAttribute("title")+' "'),w+=" ) "}return w}),n.subParser(" makeMarkdown . list ",function(p,v,w){" use strict ";var C=" ";if(!p.hasChildNodes())return" ";for(var T=p.childNodes,z=T.length,A=p.getAttribute(" start ")||1,V=0;V<z;++V)if(!(typeof T[V].tagName>" u "||T[V].tagName.toLowerCase()!==" li ")){var Z=" ";w===" ol "?Z=A.toString()+" . ":Z=" - ",C+=Z+n.subParser(" makeMarkdown . listItem " ) ( T [ V ] , v ) , ++ A } return C += `
<!-- -- >
` ,C.trim()}),n.subParser("makeMarkdown.listItem",function(p,v){"use strict";for(var w="",C=p.childNodes,T=C.length,z=0;z<T;++z)w+=n.subParser("makeMarkdown.node")(C[z],v);return/ \n $ /.test(w)?w=w.split( `
` ).join( `
` ).replace(/^ {4} $ /gm,"").replace(/ \n \n +/g, `
` ):w+= `
` ,w}),n.subParser("makeMarkdown.node",function(p,v,w){"use strict";w=w||!1;var C="";if(p.nodeType===3)return n.subParser("makeMarkdown.txt")(p,v);if(p.nodeType===8)return"<!--"+p.data+ ` -- >
` ;if(p.nodeType!==1)return"";var T=p.tagName.toLowerCase();switch(T){case"h1":w||(C=n.subParser("makeMarkdown.header")(p,v,1)+ `
` );break;case"h2":w||(C=n.subParser("makeMarkdown.header")(p,v,2)+ `
` );break;case"h3":w||(C=n.subParser("makeMarkdown.header")(p,v,3)+ `
` );break;case"h4":w||(C=n.subParser("makeMarkdown.header")(p,v,4)+ `
` );break;case"h5":w||(C=n.subParser("makeMarkdown.header")(p,v,5)+ `
` );break;case"h6":w||(C=n.subParser("makeMarkdown.header")(p,v,6)+ `
` );break;case"p":w||(C=n.subParser("makeMarkdown.paragraph")(p,v)+ `
` );break;case"blockquote":w||(C=n.subParser("makeMarkdown.blockquote")(p,v)+ `
` );break;case"hr":w||(C=n.subParser("makeMarkdown.hr")(p,v)+ `
` );break;case"ol":w||(C=n.subParser("makeMarkdown.list")(p,v,"ol")+ `
` );break;case"ul":w||(C=n.subParser("makeMarkdown.list")(p,v,"ul")+ `
` );break;case"precode":w||(C=n.subParser("makeMarkdown.codeBlock")(p,v)+ `
` );break;case"pre":w||(C=n.subParser("makeMarkdown.pre")(p,v)+ `
` );break;case"table":w||(C=n.subParser("makeMarkdown.table")(p,v)+ `
` );break;case"code":C=n.subParser("makeMarkdown.codeSpan")(p,v);break;case"em":case"i":C=n.subParser("makeMarkdown.emphasis")(p,v);break;case"strong":case"b":C=n.subParser("makeMarkdown.strong")(p,v);break;case"del":C=n.subParser("makeMarkdown.strikethrough")(p,v);break;case"a":C=n.subParser("makeMarkdown.links")(p,v);break;case"img":C=n.subParser("makeMarkdown.image")(p,v);break;default:C=p.outerHTML+ `
` }return C}),n.subParser("makeMarkdown.paragraph",function(p,v){"use strict";var w="";if(p.hasChildNodes())for(var C=p.childNodes,T=C.length,z=0;z<T;++z)w+=n.subParser("makeMarkdown.node")(C[z],v);return w=w.trim(),w}),n.subParser("makeMarkdown.pre",function(p,v){"use strict";var w=p.getAttribute("prenum");return"<pre>"+v.preList[w]+"</pre>"}),n.subParser("makeMarkdown.strikethrough",function(p,v){"use strict";var w="";if(p.hasChildNodes()){w+="~~";for(var C=p.childNodes,T=C.length,z=0;z<T;++z)w+=n.subParser("makeMarkdown.node")(C[z],v);w+="~~"}return w}),n.subParser("makeMarkdown.strong",function(p,v){"use strict";var w="";if(p.hasChildNodes()){w+="**";for(var C=p.childNodes,T=C.length,z=0;z<T;++z)w+=n.subParser("makeMarkdown.node")(C[z],v);w+="**"}return w}),n.subParser("makeMarkdown.table",function(p,v){"use strict";var w="",C=[[],[]],T=p.querySelectorAll("thead>tr>th"),z=p.querySelectorAll("tbody>tr"),A,V;for(A=0;A<T.length;++A){var Z=n.subParser("makeMarkdown.tableCell")(T[A],v),q="---";if(T[A].hasAttribute("style")){var L=T[A].getAttribute("style").toLowerCase().replace(/ \s /g,"");switch(L){case"text-align:left;":q=":---";break;case"text-align:right;":q="---:";break;case"text-align:center;":q=":---:";break}}C[0][A]=Z.trim(),C[1][A]=q}for(A=0;A<z.length;++A){var U=C.push([])-1,N=z[A].getElementsByTagName("td");for(V=0;V<T.length;++V){var G=" ";typeof N[V]<"u"&&(G=n.subParser("makeMarkdown.tableCell")(N[V],v)),C[U].push(G)}}var J=3;for(A=0;A<C.length;++A)for(V=0;V<C[A].length;++V){var ne=C[A][V].length;ne>J&&(J=ne)}for(A=0;A<C.length;++A){for(V=0;V<C[A].length;++V)A===1?C[A][V].slice(-1)===":"?C[A][V]=n.helper.padEnd(C[A][V].slice(-1),J-1,"-")+":":C[A][V]=n.helper.padEnd(C[A][V],J,"-"):C[A][V]=n.helper.padEnd(C[A][V],J);w+="| "+C[A].join(" | ")+ ` |
` }return w.trim()}),n.subParser("makeMarkdown.tableCell",function(p,v){"use strict";var w="";if(!p.hasChildNodes())return"";for(var C=p.childNodes,T=C.length,z=0;z<T;++z)w+=n.subParser("makeMarkdown.node")(C[z],v,!0);return w.trim()}),n.subParser("makeMarkdown.txt",function(p){"use strict";var v=p.nodeValue;return v=v.replace(/ +/g," "),v=v.replace(/¨NBSP;/g," "),v=n.helper.unescapeHTMLEntities(v),v=v.replace(/([*_~| ` ] ) / g , "\\$1" ) , v = v . replace ( /^(\s*)>/g , "\\$1>" ) , v = v . replace ( /^#/gm , "\\#" ) , v = v . replace ( /^(\s*)([-=]{3,})(\s*)$/ , "$1\\$2$3" ) , v = v . replace ( /^( {0,3}\d+)\./gm , "$1\\." ) , v = v . replace ( /^( {0,3})([+-])/gm , "$1\\$2" ) , v = v . replace ( /]([\s]*)\(/g , "\\]$1\\(" ) , v = v . replace ( /^ {0,3}\[([\S \t]*?)]:/gm , "\\[$1]:" ) , v } ) ; var Y = this ; typeof define == "function" && define . amd ? define ( function ( ) { "use strict" ; return n } ) : typeof vl < "u" && vl . exports ? vl . exports = n : Y . showdown = n } ) . call ( Cb ) } ) ; function fr ( t , o ) { let n = new Set ( t . split ( "," ) ) ; return o ? s => n . has ( s . toLowerCase ( ) ) : s => n . has ( s ) } var ot = Object . freeze ( { } ) , Wo = Object . freeze ( [ ] ) , Ft = ( ) => { } , Ad = ( ) => ! 1 , qo = t => t . charCodeAt ( 0 ) === 111 && t . charCodeAt ( 1 ) === 110 && ( t . charCodeAt ( 2 ) > 122 || t . charCodeAt ( 2 ) < 97 ) , Mn = t => t . startsWith ( "onUpdate:" ) , it = Object . assign , Ua = ( t , o ) => { let n = t . indexOf ( o ) ; n > - 1 && t . splice ( n , 1 ) } , Y0 = Object . prototype . hasOwnProperty , qe = ( t , o ) => Y0 . call ( t , o ) , Me = Array . isArray , qr = t => Ga ( t ) === "[object Map]" , Wa = t => Ga ( t ) === "[object Set]" ; var ze = t => typeof t == "function" , ut = t => typeof t == "string" , Go = t => typeof t == "symbol" , Xe = t => t !== null && typeof t == "object" , qa = t => ( Xe ( t ) || ze ( t ) ) && ze ( t . then ) && ze ( t . catch ) , vp = Object . prototype . toString , Ga = t => vp . call ( t ) , Ni = t => Ga ( t ) . slice ( 8 , - 1 ) , Nd = t => Ga ( t ) === "[object Object]" , Ka = t => ut ( t ) && t !== "NaN" && t [ 0 ] !== "-" && "" + parseInt ( t , 10 ) === t , Ti = fr ( ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted" ) , wp = fr ( "bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo" ) , Ya = t => { let o = Object . create ( null ) ; return n => o [ n ] || ( o [ n ] = t ( n ) ) } , X0 = /-(\w)/g , or = Ya ( t => t . replace ( X0 , ( o , n ) => n ? n . toUpperCase ( ) : "" ) ) , Z0 = /\B([A-Z])/g , Tr = Ya ( t => t . replace ( Z0 , "-$1" ) . toLowerCase ( ) ) , xr = Ya ( t => t . charAt ( 0 ) . toUpperCase ( ) + t . slice ( 1 ) ) , Gr = Ya ( t => t ? ` on ${ xr ( t ) } ` : "" ) , Or = ( t , o ) => ! Object . is ( t , o ) , Ko = ( t , o ) => { for ( let n = 0 ; n < t . length ; n ++ ) t [ n ] ( o ) } , Pn = ( t , o , n ) => { Object . defineProperty ( t , o , { configurable : ! 0 , enumerable : ! 1 , value : n } ) } , Td = t => { let o = parseFloat ( t ) ; return isNaN ( o ) ? t : o } , Od = t => { let o = ut ( t ) ? Number ( t ) : NaN ; return isNaN ( o ) ? t : o } , bp , Xa = ( ) => bp || ( bp = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : { } ) ; function Oi ( t ) { if ( Me ( t ) ) { let o = { } ; for ( let n = 0 ; n < t . length ; n ++ ) { let s = t [ n ] , d = ut ( s ) ? tw ( s ) : Oi ( s ) ; if ( d ) for ( let u in d ) o [ u ] = d [ u ] } return o } else if ( ut ( t ) || Xe ( t ) ) return t } var Q0 = /;(?![^(]*\))/g , J0 = /:([^]+)/ , ew = /\/\*[^]*?\*\//g ; function tw ( t ) { let o = { } ; return t . replace ( ew , "" ) . split ( Q0 ) . forEach ( n => { if ( n ) { let s = n . split ( J0 ) ; s . length > 1 && ( o [ s [ 0 ] . trim ( ) ] = s [ 1 ] . trim ( ) ) } } ) , o } function Li ( t ) { let o = "" ; if ( ut ( t ) ) o = t ; else if ( Me ( t ) ) for ( let n = 0 ; n < t . length ; n ++ ) { let s = Li ( t [ n ] ) ; s && ( o += s + " " ) } else if ( Xe ( t ) ) for ( let n in t ) t [ n ] && ( o += n + " " ) ; return o . trim ( ) } var rw = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot" , ow = " svg , animate , animateMotion , animateTransform , circle , clipPath , color - profile , defs , desc , discard , ellipse , feBlend , feColorMatrix , feComponentTransfer , feComposite , feConvolveMatrix , feDiffuseLighting , feDisplacementMap , feDistantLight , feDropShadow , feFlood , feFuncA , feFuncB , feFuncG , feFuncR , feGaussianBlur , feImage , feMerge , feMergeNode , feMorphology , feOffset , fePointLight , feSpecularLighting , feSpotLight , feTile , feTurbulence , filter , foreign
` ),d]);else{let u=[ ` [ Vue warn ] : $ { t } ` ,...o];d.length&&u.push( `
` ,...Nw(d)),console.warn(...u)}Yr()}function Aw(){let t=rn[rn.length-1];if(!t)return[];let o=[];for(;t;){let n=o[0];n&&n.vnode===t?n.recurseCount++:o.push({vnode:t,recurseCount:0});let s=t.component&&t.component.parent;t=s&&s.vnode}return o}function Nw(t){let o=[];return t.forEach((n,s)=>{o.push(...s===0?[]:[ `
` ],...Tw(n))}),o}function Tw({vnode:t,recurseCount:o}){let n=o>0? ` ... ( $ { o } recursive calls ) ` :"",s=t.component?t.component.parent==null:!1,d= ` at < $ { Bs ( t . component , t . type , s ) } ` ,u=">"+n;return t.props?[d,...Ow(t.props),u]:[d+u]}function Ow(t){let o=[],n=Object.keys(t);return n.slice(0,3).forEach(s=>{o.push(...hm(s,t[s]))}),n.length>3&&o.push(" ..."),o}function hm(t,o,n){return ut(o)?(o=JSON.stringify(o),n?o:[ ` $ { t } = $ { o } ` ]):typeof o=="number"||typeof o=="boolean"||o==null?n?o:[ ` $ { t } = $ { o } ` ]:Tt(o)?(o=hm(t,Ve(o.value),!0),n?o:[ ` $ { t } = Ref < ` ,o,">"]):ze(o)?[ ` $ { t } = fn$ { o . name ? ` < ${ o . name } > ` : "" } ` ]:(o=Ve(o),n?o:[ ` $ { t } = ` ,o])}function gm(t,o){t!==void 0&&(typeof t!="number"?ve( ` $ { o } is not a valid number - got $ { JSON . stringify ( t ) } . ` ):isNaN(t)&&ve( ` $ { o } is NaN - the duration expression might be incorrect . ` ))}var cu={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function eo(t,o,n,s){let d;try{d=s?t(...s):t()}catch(u){Gi(u,o,n)}return d}function sr(t,o,n,s){if(ze(t)){let u=eo(t,o,n,s);return u&&qa(u)&&u.catch(c=>{Gi(c,o,n)}),u}let d=[];for(let u=0;u<t.length;u++)d.push(sr(t[u],o,n,s));return d}function Gi(t,o,n,s=!0){let d=o?o.vnode:null;if(o){let u=o.parent,c=o.proxy,m=cu[n];for(;u;){let k=u.ec;if(k){for(let x=0;x<k.length;x++)if(k[x](t,c,m)===!1)return}u=u.parent}let g=o.appContext.config.errorHandler;if(g){eo(g,null,10,[t,c,m]);return}}Lw(t,n,d,s)}function Lw(t,o,n,s=!0){{let d=cu[o];if(n&&gs(n),ve( ` Unhandled error$ { d ? ` during execution of ${ d } ` : "" } ` ),n&&bs(),s)throw t;console.error(t)}}var $ i=!1,Qd=!1, $ t=[],Mr=0,In=[],Jr=null,xo=0,bm=Promise.resolve(),fu=null,Fw=100;function Ss(t){let o=fu||bm;return t?o.then(this?t.bind(this):t):o}function Mw(t){let o=Mr+1,n= $ t.length;for(;o<n;){let s=o+n>>>1,d= $ t[s],u=Ui(d);u<t||u===t&&d.pre?o=s+1:n=s}return o}function As(t){(! $ t.length||! $ t.includes(t, $ i&&t.allowRecurse?Mr+1:Mr))&&(t.id==null? $ t.push(t): $ t.splice(Mw(t.id),0,t),vm())}function vm(){! $ i&&!Qd&&(Qd=!0,fu=bm.then(ym))}function Pw(t){let o= $ t.indexOf(t);o>Mr&& $ t.splice(o,1)}function wm(t){Me(t)?In.push(...t):(!Jr||!Jr.includes(t,t.allowRecurse?xo+1:xo))&&In.push(t),vm()}function Kp(t,o,n= $ i?Mr+1:0){for(o=o||new Map;n< $ t.length;n++){let s= $ t[n];if(s&&s.pre){if(t&&s.id!==t.uid||pu(o,s))continue; $ t.splice(n,1),n--,s()}}}function xm(t){if(In.length){let o=[...new Set(In)].sort((n,s)=>Ui(n)-Ui(s));if(In.length=0,Jr){Jr.push(...o);return}for(Jr=o,t=t||new Map,xo=0;xo<Jr.length;xo++)pu(t,Jr[xo])||Jr[xo]();Jr=null,xo=0}}var Ui=t=>t.id==null?1/0:t.id,Rw=(t,o)=>{let n=Ui(t)-Ui(o);if(n===0){if(t.pre&&!o.pre)return-1;if(o.pre&&!t.pre)return 1}return n};function ym(t){Qd=!1, $ i=!0,t=t||new Map, $ t.sort(Rw);let o=n=>pu(t,n);try{for(Mr=0;Mr< $ t.length;Mr++){let n= $ t[Mr];if(n&&n.active!==!1){if(o(n))continue;eo(n,null,14)}}}finally{Mr=0, $ t.length=0,xm(t), $ i=!1,fu=null,( $ t.length||In.length)&&ym(t)}}function pu(t,o){if(!t.has(o))t.set(o,1);else{let n=t.get(o);if(n>Fw){let s=o.ownerInstance,d=s&&Au(s.type);return Gi( ` Maximum recursive updates exceeded$ { d ? ` in component < ${ d } > ` : "" } . This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself . Possible sources include component template , render function , updated hook or watcher source function . ` ,null,10),!0}else t.set(o,n+1)}}var on=!1,zn=new Set;Xa().__VUE_HMR_RUNTIME__={createRecord:qd(km),rerender:qd(Iw),reload:qd(Hw)};var an=new Map;function zw(t){let o=t.type.__hmrId,n=an.get(o);n||(km(o,t.typ
If this is a native custom element , make sure to exclude it from component resolution via compilerOptions . isCustomElement . ` :"";ve( ` Failed to resolve $ { t . slice ( 0 , - 1 ) } : $ { o } $ { m } ` )}return c}else ve( ` resolve$ { xr ( t . slice ( 0 , - 1 ) ) } can only be used in render ( ) or setup ( ) . ` )}function Qp(t,o){return t&&(t[o]||t[or(o)]||t[xr(or(o))])}var rx=t=>t.__isSuspense;function ox(t,o){o&&o.pendingBranch?Me(t)?o.effects.push(...t):o.effects.push(t):wm(t)}var nx=Symbol.for("v-scx"),ix=()=>{{let t=Rr(nx);return t||ve("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),t}};function Nm(t,o){return gu(t,null,o)}var ms={};function Hn(t,o,n){return ze(o)||ve(" ` watch ( fn , options ? ) ` signature has been moved to a separate API. Use ` watchEffect ( fn , options ? ) ` instead. ` watch ` now only supports ` watch ( source , cb , options ? ) signature . "),gu(t,o,n)}function gu(t,o,{immediate:n,deep:s,flush:d,once:u,onTrack:c,onTrigger:m}=ot){if(o&&u){let T=o;o=(...z)=>{T(...z),C()}}s!==void 0&&typeof s==" number "&&ve('watch() " deep " option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),o||(n!==void 0&&ve('watch() " immediate " option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&ve('watch() " deep " option is only respected when using the watch(source, callback, options?) signature.'),u!==void 0&&ve('watch() " once " option is only respected when using the watch(source, callback, options?) signature.'));let g=T=>{ve(" Invalid watch source : ",T," A watch source can only be a getter / effect function , a ref , a reactive object , or an array of these types . ")},k=Ot,x=T=>s===!0?T:Bn(T,s===!1?1:void 0),_,D=!1,O=!1;if(Tt(t)?(_=()=>t.value,D=Rn(t)):Xr(t)?(_=()=>x(t),D=!0):Me(t)?(O=!0,D=t.some(T=>Xr(T)||Rn(T)),_=()=>t.map(T=>{if(Tt(T))return T.value;if(Xr(T))return x(T);if(ze(T))return eo(T,k,2);g(T)})):ze(t)?o?_=()=>eo(t,k,2):_=()=>(H&&H(),sr(t,k,3,[I])):(_=Ft,g(t)),o&&s){let T=_;_=()=>Bn(T())}let H,I=T=>{H=v.onStop=()=>{eo(T,k,4),H=v.onStop=void 0}},R;if(zs)if(I=Ft,o?n&&sr(o,k,3,[_(),O?[]:void 0,I]):_(),d===" sync "){let T=ix();R=T.__watcherHandles||(T.__watcherHandles=[])}else return Ft;let j=O?new Array(t.length).fill(ms):ms,Y=()=>{if(!(!v.active||!v.dirty))if(o){let T=v.run();(s||D||(O?T.some((z,A)=>Or(z,j[A])):Or(T,j)))&&(H&&H(),sr(o,k,3,[T,j===ms?void 0:O&&j[0]===ms?[]:j,I]),j=T)}else v.run()};Y.allowRecurse=!!o;let p;d===" sync "?p=Y:d===" post "?p=()=>nr(Y,k&&k.suspense):(Y.pre=!0,k&&(Y.id=k.uid),p=()=>As(Y));let v=new Zo(_,Ft,p),w=Id(),C=()=>{v.stop(),w&&Ua(w.effects,v)};return v.onTrack=c,v.onTrigger=m,o?n?Y():j=v.run():d===" post "?nr(v.run.bind(v),k&&k.suspense):v.run(),R&&R.push(C),C}function ax(t,o,n){let s=this.proxy,d=ut(t)?t.includes(" . ")?Tm(s,t):()=>s[t]:t.bind(s,s),u;ze(o)?u=o:(u=o.handler,n=o);let c=Qi(this),m=gu(d,u.bind(s),n);return c(),m}function Tm(t,o){let n=o.split(" . ");return()=>{let s=t;for(let d=0;d<n.length&&s;d++)s=s[n[d]];return s}}function Bn(t,o,n=0,s){if(!Xe(t)||t.__v_skip)return t;if(o&&o>0){if(n>=o)return t;n++}if(s=s||new Set,s.has(t))return t;if(s.add(t),Tt(t))Bn(t.value,o,n,s);else if(Me(t))for(let d=0;d<t.length;d++)Bn(t[d],o,n,s);else if(Wa(t)||qr(t))t.forEach(d=>{Bn(d,o,n,s)});else if(Nd(t))for(let d in t)Bn(t[d],o,n,s);return t}function Om(t){wp(t)&&ve(" Do not use built - in directive ids as custom directive id : "+t)}function Jo(t,o,n,s){let d=t.dirs,u=o&&o.dirs;for(let c=0;c<d.length;c++){let m=d[c];u&&(m.oldValue=u[c].value);let g=m.dir[s];g&&(Kr(),sr(g,n,8,[t.el,m,t,o]),Yr())}}var yo=Symbol(" _leaveCb "),hs=Symbol(" _enterCb ");function bu(){let t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return wu(()=>{t.isMounted=!0}),zm(()=>{t.isUnmounting=!0}),t}var pr=[Function,Array],vu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:pr,onEnter:pr,onAfterEnter:pr,onEnterCancelled:pr,onBeforeLeave:pr,onLeave:pr,onAfterLeave:pr,onLeaveCancelled:pr,onBeforeAppear:pr,onAppear:pr,onAfterAppear:pr,onAppearCancelled:pr},sx={name:" BaseTransition " , props : vu , se
For more details , see https : //link.vuejs.org/feature-flags.`)}}var nr=ox;function Km(t){return Bx(t)}function Bx(t,o){zx();let n=Xa();n.__VUE__=!0,_m(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);let{insert:s,remove:d,patchProp:u,createElement:c,createText:m,createComment:g,setText:k,setElementText:x,parentNode:_,nextSibling:D,setScopeId:O=Ft,insertStaticContent:H}=t,I=(F,$,Q,re=null,te=null,se=null,pe=void 0,ue=null,me=on?!1:!!$.dynamicChildren)=>{if(F===$)return;F&&!tn(F,$)&&(re=ce(F),Le(F,te,se,!0),F=null),$.patchFlag===-2&&(me=!1,$.dynamicChildren=null);let{type:le,ref:xe,shapeFlag:Te}=$;switch(le){case Zi:R(F,$,Q,re);break;case It:j(F,$,Q,re);break;case ji:F==null?Y($,Q,re,pe):p(F,$,Q,pe);break;case Bt:L(F,$,Q,re,te,se,pe,ue,me);break;default:Te&1?C(F,$,Q,re,te,se,pe,ue,me):Te&6?U(F,$,Q,re,te,se,pe,ue,me):Te&64||Te&128?le.process(F,$,Q,re,te,se,pe,ue,me,Ce):ve("Invalid VNode type:",le,`(${typeof le})`)}xe!=null&&te&&su(xe,F&&F.ref,se,$||F,!$)},R=(F,$,Q,re)=>{if(F==null)s($.el=m($.children),Q,re);else{let te=$.el=F.el;$.children!==F.children&&k(te,$.children)}},j=(F,$,Q,re)=>{F==null?s($.el=g($.children||""),Q,re):$.el=F.el},Y=(F,$,Q,re)=>{[F.el,F.anchor]=H(F.children,$,Q,re,F.el,F.anchor)},p=(F,$,Q,re)=>{if($.children!==F.children){let te=D(F.anchor);w(F),[$.el,$.anchor]=H($.children,Q,te,re)}else $.el=F.el,$.anchor=F.anchor},v=({el:F,anchor:$},Q,re)=>{let te;for(;F&&F!==$;)te=D(F),s(F,Q,re),F=te;s($,Q,re)},w=({el:F,anchor:$})=>{let Q;for(;F&&F!==$;)Q=D(F),d(F),F=Q;d($)},C=(F,$,Q,re,te,se,pe,ue,me)=>{$.type==="svg"?pe="svg":$.type==="math"&&(pe="mathml"),F==null?T($,Q,re,te,se,pe,ue,me):V(F,$,te,se,pe,ue,me)},T=(F,$,Q,re,te,se,pe,ue)=>{let me,le,{props:xe,shapeFlag:Te,transition:Oe,dirs:je}=F;if(me=F.el=c(F.type,se,xe&&xe.is,xe),Te&8?x(me,F.children):Te&16&&A(F.children,me,null,re,te,Xd(F,se),pe,ue),je&&Jo(F,null,re,"created"),z(me,F,F.scopeId,pe,re),xe){for(let Ze in xe)Ze!=="value"&&!Ti(Ze)&&u(me,Ze,null,xe[Ze],se,F.children,re,te,X);"value"in xe&&u(me,"value",null,xe.value,se),(le=xe.onVnodeBeforeMount)&&Fr(le,re,F)}Object.defineProperty(me,"__vnode",{value:F,enumerable:!1}),Object.defineProperty(me,"__vueParentComponent",{value:re,enumerable:!1}),je&&Jo(F,null,re,"beforeMount");let We=Ix(te,Oe);We&&Oe.beforeEnter(me),s(me,$,Q),((le=xe&&xe.onVnodeMounted)||We||je)&&nr(()=>{le&&Fr(le,re,F),We&&Oe.enter(me),je&&Jo(F,null,re,"mounted")},te)},z=(F,$,Q,re,te)=>{if(Q&&O(F,Q),re)for(let se=0;se<re.length;se++)O(F,re[se]);if(te){let se=te.subTree;if(se.patchFlag>0&&se.patchFlag&2048&&(se=hu(se.children)||se),$===se){let pe=te.vnode;z(F,pe,pe.scopeId,pe.slotScopeIds,te.parent)}}},A=(F,$,Q,re,te,se,pe,ue,me=0)=>{for(let le=me;le<F.length;le++){let xe=F[le]=ue?ko(F[le]):_r(F[le]);I(null,xe,$,Q,re,te,se,pe,ue)}},V=(F,$,Q,re,te,se,pe)=>{let ue=$.el=F.el,{patchFlag:me,dynamicChildren:le,dirs:xe}=$;me|=F.patchFlag&16;let Te=F.props||ot,Oe=$.props||ot,je;if(Q&&en(Q,!1),(je=Oe.onVnodeBeforeUpdate)&&Fr(je,Q,$,F),xe&&Jo($,F,Q,"beforeUpdate"),Q&&en(Q,!0),on&&(me=0,pe=!1,le=null),le?(Z(F.dynamicChildren,le,ue,Q,re,Xd($,te),se),lu(F,$)):pe||Ne(F,$,ue,null,Q,re,Xd($,te),se,!1),me>0){if(me&16)q(ue,$,Te,Oe,Q,re,te);else if(me&2&&Te.class!==Oe.class&&u(ue,"class",null,Oe.class,te),me&4&&u(ue,"style",Te.style,Oe.style,te),me&8){let We=$.dynamicProps;for(let Ze=0;Ze<We.length;Ze++){let Je=We[Ze],xt=Te[Je],Mt=Oe[Je];(Mt!==xt||Je==="value")&&u(ue,Je,xt,Mt,te,F.children,Q,re,X)}}me&1&&F.children!==$.children&&x(ue,$.children)}else!pe&&le==null&&q(ue,$,Te,Oe,Q,re,te);((je=Oe.onVnodeUpdated)||xe)&&nr(()=>{je&&Fr(je,Q,$,F),xe&&Jo($,F,Q,"updated")},re)},Z=(F,$,Q,re,te,se,pe)=>{for(let ue=0;ue<$.length;ue++){let me=F[ue],le=$[ue],xe=me.el&&(me.type===Bt||!tn(me,le)||me.shapeFlag&70)?_(me.el):Q;I(me,le,xe,null,re,te,se,pe,!0)}},q=(F,$,Q,re,te,se,pe)=>{if(Q!==re){if(Q!==ot)for(let ue in Q)!Ti(ue)&&!(ue in re)&&u(F,ue,Q[ue],null,pe,$.children,te,se,X);for(let ue in re){if(Ti(ue))continue;let me=re[ue],le=Q[ue];me!==le&&ue!=="value"&&u(F,ue,le,me,pe,$.children,te,se,X)}"value"in re&&u(F,"value",Q.value,re.value,pe)}},L=(F,$,Q,re,te,se,pe,ue,me)=>{let le=$.el=F?F.
Component that was made reactive : ` ,t)),kt(t,o,n,s,d,c,u,!0)}function Wx(t){return t?Ri(t)||Ms in t?it({},t):t:null}function zr(t,o,n=!1){let{props:s,ref:d,patchFlag:u,children:c}=t,m=o?qx(s||{},o):s;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:m,key:m&&Zm(m),ref:o&&o.ref?n&&d?Me(d)?d.concat(ws(o)):[d,ws(o)]:ws(o):d,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:u===-1&&Me(c)?c.map(Qm):c,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:o&&t.type!==Bt?u===-1?16:u|16:u,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&zr(t.ssContent),ssFallback:t.ssFallback&&zr(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Qm(t){let o=zr(t);return Me(t.children)&&(o.children=t.children.map(Qm)),o}function Ps(t=" ",o=0){return wt(Zi,null,t,o)}function Rs(t="",o=!1){return o?(mr(),Eu(It,null,t)):wt(It,null,t)}function _r(t){return t==null||typeof t=="boolean"?wt(It):Me(t)?wt(Bt,null,t.slice()):typeof t=="object"?ko(t):wt(Zi,null,String(t))}function ko(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:zr(t)}function Du(t,o){let n=0,{shapeFlag:s}=t;if(o==null)o=null;else if(Me(o))n=16;else if(typeof o=="object")if(s&65){let d=o.default;d&&(d._c&&(d._d=!1),Du(t,d()),d._c&&(d._d=!0));return}else{n=32;let d=o._;!d&&!(Ms in o)?o._ctx=Jt:d===3&&Jt&&(Jt.slots._===1?o._=1:(o._=2,t.patchFlag|=1024))}else ze(o)?(o={default:o,_ctx:Jt},n=32):(o=String(o),s&64?(n=16,o=[Ps(o)]):n=8);t.children=o,t.shapeFlag|=n}function qx(...t){let o={};for(let n=0;n<t.length;n++){let s=t[n];for(let d in s)if(d==="class")o.class!==s.class&&(o.class=Li([o.class,s.class]));else if(d==="style")o.style=Oi([o.style,s.style]);else if(qo(d)){let u=o[d],c=s[d];c&&u!==c&&!(Me(u)&&u.includes(c))&&(o[d]=u?[].concat(u,c):c)}else d!==""&&(o[d]=s[d])}return o}function Fr(t,o,n,s=null){sr(t,o,7,[n,s])}var Gx=jm(),Kx=0;function Yx(t,o,n){let s=t.type,d=(o?o.appContext:t.appContext)||Gx,u={uid:Kx++,vnode:t,type:s,parent:o,appContext:d,root:null,next:null,subTree:null,effect:null,update:null,scope:new Fi(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:o?o.provides:Object.create(d.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions: $ m(s,d),emitsOptions:Cm(s,d),emit:null,emitted:null,propsDefaults:ot,inheritAttrs:s.inheritAttrs,ctx:ot,data:ot,props:ot,attrs:ot,slots:ot,refs:ot,setupState:ot,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return u.ctx=hx(u),u.root=o?o.root:u,u.emit=Yw.bind(null,u),t.ce&&t.ce(u),u}var Ot=null,Wn=()=>Ot||Jt,Cs,du;{let t=Xa(),o=(n,s)=>{let d;return(d=t[n])||(d=t[n]=[]),d.push(s),u=>{d.length>1?d.forEach(c=>c(u)):d[0](u)}};Cs=o("__VUE_INSTANCE_SETTERS__",n=>Ot=n),du=o("__VUE_SSR_SETTERS__",n=>zs=n)}var Qi=t=>{let o=Ot;return Cs(t),t.scope.on(),()=>{t.scope.off(),Cs(o)}},cm=()=>{Ot&&Ot.scope.off(),Cs(null)},Xx=fr("slot,component");function uu(t,o){let n=o.isNativeTag||Ad;(Xx(t)||n(t))&&ve("Do not use built-in or reserved HTML elements as component id: "+t)}function Jm(t){return t.vnode.shapeFlag&4}var zs=!1;function Zx(t,o=!1){o&&du(o);let{props:n,children:s}=t.vnode,d=Jm(t);Cx(t,n,d,o),Px(t,s);let u=d?Qx(t,o):void 0;return o&&du(!1),u}function Qx(t,o){var n;let s=t.type;if(s.name&&uu(s.name,t.appContext.config),s.components){let u=Object.keys(s.components);for(let c=0;c<u.length;c++)uu(u[c],t.appContext.config)}if(s.directives){let u=Object.keys(s.directives);for(let c=0;c<u.length;c++)Om(u[c])}s.compilerOptions&&Cu()&&ve('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.'),t.accessCache=Object.creat
history . replaceState ( history . state , '' , url )
You can find more information at https : //next.router.vuejs.org/guide/migration/#usage-of-history-state.`),u(x.current,x,!0);let _=rt({},Ph(s.value,g,null),{position:x.position+1},k);u(g,_,!1),s.value=g}return{location:s,state:d,push:m,replace:c}}function Xh(t){t=Ky(t);let o=o1(t),n=r1(t,o.state,o.location,o.replace);function s(u,c=!0){c||n.pauseListeners(),history.go(u)}let d=rt({location:"",base:t,go:s,createHref:Xy.bind(null,t)},o,n);return Object.defineProperty(d,"location",{enumerable:!0,get:()=>o.location.value}),Object.defineProperty(d,"state",{enumerable:!0,get:()=>o.state.value}),d}function n1(t){return typeof t=="string"||t&&typeof t=="object"}function Zh(t){return typeof t=="string"||typeof t=="symbol"}var So={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Qh=Symbol("navigation failure"),Rh;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Rh||(Rh={}));var i1={1({location:t,currentLocation:o}){return`No match for
$ { JSON . stringify ( t ) } $ { o ? `
while being at
` +JSON.stringify(o):""} ` } , 2 ( { from : t , to : o } ) { return ` Redirected from " ${ t . fullPath } " to " ${ s1 ( o ) } " via a navigation guard. ` } , 4 ( { from : t , to : o } ) { return ` Navigation aborted from " ${ t . fullPath } " to " ${ o . fullPath } " via a navigation guard. ` } , 8 ( { from : t , to : o } ) { return ` Navigation cancelled from " ${ t . fullPath } " to " ${ o . fullPath } " with a new navigation. ` } , 16 ( { from : t , to : o } ) { return ` Avoided redundant navigation to current location: " ${ t . fullPath } ". ` } } ; function Kn ( t , o ) { return rt ( new Error ( i1 [ t ] ( o ) ) , { type : t , [ Qh ] : ! 0 } , o ) } function oo ( t , o ) { return t instanceof Error && Qh in t && ( o == null || ! ! ( t . type & o ) ) } var a1 = [ "params" , "query" , "hash" ] ; function s1 ( t ) { if ( typeof t == "string" ) return t ; if ( "path" in t ) return t . path ; let o = { } ; for ( let n of a1 ) n in t && ( o [ n ] = t [ n ] ) ; return JSON . stringify ( o , null , 2 ) } var zh = "[^/]+?" , l1 = { sensitive : ! 1 , strict : ! 1 , start : ! 0 , end : ! 0 } , d1 = /[.+*?^${}()[\]/\\]/g ; function u1 ( t , o ) { let n = rt ( { } , l1 , o ) , s = [ ] , d = n . start ? "^" : "" , u = [ ] ; for ( let k of t ) { let x = k . length ? [ ] : [ 90 ] ; n . strict && ! k . length && ( d += "/" ) ; for ( let _ = 0 ; _ < k . length ; _ ++ ) { let D = k [ _ ] , O = 40 + ( n . sensitive ? . 25 : 0 ) ; if ( D . type === 0 ) _ || ( d += "/" ) , d += D . value . replace ( d1 , "\\$&" ) , O += 40 ; else if ( D . type === 1 ) { let { value : H , repeatable : I , optional : R , regexp : j } = D ; u . push ( { name : H , repeatable : I , optional : R } ) ; let Y = j || zh ; if ( Y !== zh ) { O += 10 ; try { new RegExp ( ` ( ${ Y } ) ` ) } catch ( v ) { throw new Error ( ` Invalid custom RegExp for param " ${ H } " ( ${ Y } ): ` + v . message ) } } let p = I ? ` ((?: ${ Y } )(?:/(?: ${ Y } ))*) ` : ` ( ${ Y } ) ` ; _ || ( p = R && k . length < 2 ? ` (?:/ ${ p } ) ` : "/" + p ) , R && ( p += "?" ) , d += p , O += 20 , R && ( O += - 8 ) , I && ( O += - 20 ) , Y === ".*" && ( O += - 50 ) } x . push ( O ) } s . push ( x ) } if ( n . strict && n . end ) { let k = s . length - 1 ; s [ k ] [ s [ k ] . length - 1 ] += . 7000000000000001 } n . strict || ( d += "/?" ) , n . end ? d += "$" : n . strict && ( d += "(?:/|$)" ) ; let c = new RegExp ( d , n . sensitive ? "" : "i" ) ; function m ( k ) { let x = k . match ( c ) , _ = { } ; if ( ! x ) return null ; for ( let D = 1 ; D < x . length ; D ++ ) { let O = x [ D ] || "" , H = u [ D - 1 ] ; _ [ H . name ] = O && H . repeatable ? O . split ( "/" ) : O } return _ } function g ( k ) { let x = "" , _ = ! 1 ; for ( let D of t ) { ( ! _ || ! x . endsWith ( "/" ) ) && ( x += "/" ) , _ = ! 1 ; for ( let O of D ) if ( O . type === 0 ) x += O . value ; else if ( O . type === 1 ) { let { value : H , repeatable : I , optional : R } = O , j = H in k ? k [ H ] : "" ; if ( lr ( j ) && ! I ) throw new Error ( ` Provided param " ${ H } " is an array but it is not repeatable (* or + modifiers) ` ) ; let Y = lr ( j ) ? j . join ( "/" ) : j ; if ( ! Y ) if ( R ) D . length < 2 && ( x . endsWith ( "/" ) ? x = x . slice ( 0 , - 1 ) : _ = ! 0 ) ; else throw new Error ( ` Missing required param " ${ H } " ` ) ; x += Y } } return x || "/" } return { re : c , score : s , keys : u , parse : m , stringify : g } } function c1 ( t , o ) { let n = 0 ; for ( ; n < t . length && n < o . length ; ) { let s = o [ n ] - t [ n ] ; if ( s ) return s ; n ++ } return t . length < o . length ? t . length === 1 && t [ 0 ] === 80 ? - 1 : 1 : t . length > o . length ? o . length === 1 && o [ 0 ] === 80 ? 1 : - 1 : 0 } function f1 ( t , o ) { let n = 0 , s = t . score , d = o . score ; for ( ; n < s . length && n < d . length ; ) { let u = c1 ( s [ n ] , d [ n ] ) ; if ( u ) return u ; n ++ } if ( Math . abs ( d . length - s . length ) === 1 ) { if ( Bh ( s ) ) return 1 ; if ( Bh ( d ) ) return - 1 } return d . length - s . length } function Bh ( t ) { let o = t [ t . length - 1 ] ; return t . length > 0 && o [ o . length - 1 ] < 0 } var p1 = { type : 0 , value : "" } , m1 = /[a-zA-Z0-9_]/ ; function h1 ( t ) { if ( ! t ) return [ [ ] ] ; if ( t === "/" ) return [ [ p1 ] ] ; if ( ! t . startsWith ( "/" ) ) throw new Error ( ` Route paths should start with a "/": " ${ t } " should be "/ ${ t } ". ` ) ; function o ( O ) { throw new Error ( ` ERR ( ${ n } )/" ${ k } ": ${ O } ` ) } let n = 0 , s = n , d = [ ] , u ; function c ( ) { u && d . push ( u ) , u = [ ] } let m = 0 , g , k = "" , x = "" ; function _ ( ) { k && ( n === 0 ? u . push ( { type : 0 , value : k } ) : n === 1 || n === 2 || n === 3 ? ( u . length > 1 && ( g === "*" || g === "+" ) && o ( ` A repeatable param ( ${ k } ) must be alone in its segment. eg: '/:ids+. ` ) , u . push ( { type : 1 , value : k , regexp : x , repeatable : g === "*" || g === "+" , optional : g === "*" || g === "?" } ) ) : o ( "Invalid state to consume buffer" ) , k = "" ) } function D ( ) { k += g } for ( ; m < t . length ; ) { if ( g = t [ m ++ ] , g === "\\" && n !== 2 ) { s = n , n = 4 ; continue } switch ( n ) { case 0 : g === "/" ? ( k && _ ( ) , c ( ) ) : g === ":" ? ( _ ( ) , n = 1 ) : D ( ) ; break ; case 4 : D ( ) , n = s ; break ; case 1 : g === "(" ? n = 2 : m1 . test ( g ) ? D ( ) : ( _ ( ) , n = 0 , g !== "*" && g !== "?" && g !== "+" && m -- ) ; break ; case 2 : g === ")" ? x [ x . length - 1 ] == "\\" ? x = x . slice ( 0 , - 1 ) + g : n = 3 : x += g ; break ; case 3 : _ ( ) , n = 0 , g !== "*" && g !== "?" && g !== "+" && m -- , x = "" ; break ; default : o ( "Unknown state" ) ; break } } return n === 2 && o ( ` Unfinished custom RegExp for param " ${ k } " ` ) , _ ( ) , c ( ) , d } function g1 ( t , o , n ) { let s = u1 ( h1 ( t . path ) , n ) ; { let u = new Set ; for ( let c of s . keys ) u . has ( c . name ) && Ye ( ` Found duplicated params with name " ${ c .
See more at https : //next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);if(j=g1(p,_,I),_&&v[0]==="/"&&_1(j,_),D?(D.alias.push(j),y1(D,j)):(Y=Y||j,Y!==j&&Y.alias.push(j),O&&x.name&&!Hh(j)&&c(x.name)),H.children){let w=H.children;for(let C=0;C<w.length;C++)u(w[C],j,D&&D.children[C])}D=D||j,(j.record.components&&Object.keys(j.record.components).length||j.record.name||j.record.redirect)&&g(j)}return Y?()=>{c(Y)}:oa}function c(x){if(Zh(x)){let _=s.get(x);_&&(s.delete(x),n.splice(n.indexOf(_),1),_.children.forEach(c),_.alias.forEach(c))}else{let _=n.indexOf(x);_>-1&&(n.splice(_,1),x.record.name&&s.delete(x.record.name),x.children.forEach(c),x.alias.forEach(c))}}function m(){return n}function g(x){let _=0;for(;_<n.length&&f1(x,n[_])>=0&&(x.record.path!==n[_].record.path||!Jh(x,n[_]));)_++;n.splice(_,0,x),x.record.name&&!Hh(x)&&s.set(x.record.name,x)}function k(x,_){let D,O={},H,I;if("name"in x&&x.name){if(D=s.get(x.name),!D)throw Kn(1,{location:x});{let Y=Object.keys(x.params||{}).filter(p=>!D.keys.find(v=>v.name===p));Y.length&&Ye(`Discarded invalid param(s) "${Y.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}I=D.record.name,O=rt(Ih(_.params,D.keys.filter(Y=>!Y.optional).map(Y=>Y.name)),x.params&&Ih(x.params,D.keys.map(Y=>Y.name))),H=D.stringify(O)}else if("path"in x)H=x.path,H.startsWith("/")||Ye(`The Matcher cannot resolve relative paths but received "${H}". Unless you directly called \`matcher.resolve("${H}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),D=n.find(Y=>Y.re.test(H)),D&&(O=D.parse(H),I=D.record.name);else{if(D=_.name?s.get(_.name):n.find(Y=>Y.re.test(_.path)),!D)throw Kn(1,{location:x,currentLocation:_});I=D.record.name,O=rt({},_.params,x.params),H=D.stringify(O)}let R=[],j=D;for(;j;)R.unshift(j.record),j=j.parent;return{name:I,path:H,params:O,matched:R,meta:x1(R)}}return t.forEach(x=>u(x)),{addRoute:u,resolve:k,removeRoute:c,getRoutes:m,getRecordMatcher:d}}function Ih(t,o){let n={};for(let s of o)s in t&&(n[s]=t[s]);return n}function v1(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:w1(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function w1(t){let o={},n=t.props||!1;if("component"in t)o.default=n;else for(let s in t.components)o[s]=typeof n=="object"?n[s]:n;return o}function Hh(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function x1(t){return t.reduce((o,n)=>rt(o,n.meta),{})}function jh(t,o){let n={};for(let s in t)n[s]=s in o?o[s]:t[s];return n}function Hu(t,o){return t.name===o.name&&t.optional===o.optional&&t.repeatable===o.repeatable}function y1(t,o){for(let n of t.keys)if(!n.optional&&!o.keys.find(Hu.bind(null,n)))return Ye(`Alias "${o.record.path}" and the original record: "${t.record.path}" must have the exact same param named "${n.name}"`);for(let n of o.keys)if(!n.optional&&!t.keys.find(Hu.bind(null,n)))return Ye(`Alias "${o.record.path}" and the original record: "${t.record.path}" must have the exact same param named "${n.name}"`)}function k1(t,o){o&&o.record.name&&!t.name&&!t.path&&Ye(`The route named "${String(o.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}function _1(t,o){for(let n of o.keys)if(!t.keys.find(Hu.bind(null,n)))return Ye(`Absolute path "${t.record.path}" must have the exact same param named "${n.name}" as its parent "${o.record.path}".`)}function Jh(t,o){return o.children.some(n=>n===t||Jh(t,n))}var eg=/#/g,E1=/&/g,D1=/\//g,C1=/=/g,S1=/\?/g,tg=/\+/g,A1=/%5B/g,N1=/%5D/g,rg=/%5E/g,T1=/%60/g,og=/%7B/g,O1=/%7C/g,ng=/%7D/g,L1=/%20/g;function Uu(t){return encodeURI(""+t).replace(O1
$ { t . toString ( ) }
. If you are returning a value instead of calling "next" , make sure to remove the "next" parameter from your function . ` ;if(typeof k=="object"&&"then"in k)x=x.then(D=>g._called?D:(Ye(_),Promise.reject(new Error("Invalid navigation guard"))));else if(k!==void 0&&!g._called){Ye(_),m(new Error("Invalid navigation guard"));return}}x.catch(_=>m(_))})}function H1(t,o,n){let s=0;return function(){s++===1&&Ye( ` The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${o.fullPath}" . It should be called exactly one time in each navigation guard . This will fail in production . ` ),t._called=!0,s===1&&t.apply(null,arguments)}}function Bu(t,o,n,s){let d=[];for(let u of t){!u.components&&!u.children.length&&Ye( ` Record with path "${u.path}" is either missing a "component(s)" or "children" property . ` );for(let c in u.components){let m=u.components[c];if(!m||typeof m!="object"&&typeof m!="function")throw Ye( ` Component "${c}" in record with path "${u.path}" is not a valid component . Received "${String(m)}" . ` ),new Error("Invalid route component");if("then"in m){Ye( ` Component "${c}" in record with path "${u.path}" is a Promise instead of a function that returns a Promise . Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed . ` );let g=m;m=()=>g}else m.__asyncLoader&&!m.__warnedDefineAsync&&(m.__warnedDefineAsync=!0,Ye( ` Component "${c}" in record with path "${u.path}" is defined using "defineAsyncComponent()" . Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))" . ` ));if(!(o!=="beforeRouteEnter"&&!u.instances[c]))if(j1(m)){let k=(m.__vccOpts||m)[o];k&&d.push(Ao(k,n,s,u,c))}else{let g=m();"catch"in g||(Ye( ` Component "${c}" in record with path "${u.path}" is a function that does not return a Promise . If you were passing a functional component , make sure to add a "displayName" to the component . This will break in production if not fixed . ` ),g=Promise.resolve(g)),d.push(()=>g.then(k=>{if(!k)return Promise.reject(new Error( ` Couldn ' t resolve component "${c}" at "${u.path}" ` ));let x=Vy(k)?k.default:k;u.components[c]=x;let D=(x.__vccOpts||x)[o];return D&&Ao(D,n,s,u,c)()}))}}}return d}function j1(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function Uh(t){let o=Rr(Wu),n=Rr(ig),s=hr(()=>o.resolve(wo(t.to))),d=hr(()=>{let{matched:g}=s.value,{length:k}=g,x=g[k-1],_=n.matched;if(!x||!_.length)return-1;let D=_.findIndex(No.bind(null,x));if(D>-1)return D;let O=Wh(g[k-2]);return k>1&&Wh(x)===O&&_[_.length-1].path!==O?_.findIndex(No.bind(null,g[k-2])):D}),u=hr(()=>d.value>-1&&W1(n.params,s.value.params)),c=hr(()=>d.value>-1&&d.value===n.matched.length-1&&Kh(n.params,s.value.params));function m(g={}){return U1(g)?o[wo(t.replace)?"replace":"push"](wo(t.to)).catch(oa):Promise.resolve()}if(no){let g=Wn();if(g){let k={route:s.value,isActive:u.value,isExactActive:c.value};g.__vrl_devtools=g.__vrl_devtools||[],g.__vrl_devtools.push(k),Nm(()=>{k.route=s.value,k.isActive=u.value,k.isExactActive=c.value},{flush:"post"})}}return{route:s,href:hr(()=>s.value.href),isActive:u,isExactActive:c,navigate:m}}var V1=Os({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Uh,setup(t,{slots:o}){let n=Qo(Uh(t)),{options:s}=Rr(Wu),d=hr(()=>({[qh(t.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[qh(t.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{let u=o.default&&o.default(n);return t.custom?u:sn("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:d.value},u)}}}), $ 1=V1;function U1(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){let o=t.currentTarget.getAttribute("target");if(/ \b _blank \b /i.test(o))return}return t
Use slot props instead :
< router - view v - slot = "{ Component }" >
< $ { s } >
< component : is = "Component" / >
< / $ { s } >
< /router-view>`)}}function ra(t,o){let n=rt({},t,{matched:t.matched.map(s=>o3(s,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:t.fullPath,tooltip:o,value:n}}}function js(t){return{_custom:{display:t}}}var Y1=0;function X1(t,o,n){if(o.__hasDevtools)return;o.__hasDevtools=!0;let s=Y1++;Th({id:"org.vuejs.router"+(s?"."+s:""),label:"Vue Router",packageName:"vue-router",homepage:"https:/ / router . vuejs . org ",logo:" https : //router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:t},d=>{typeof d.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),d.on.inspectComponent((x,_)=>{x.instanceData&&x.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:ra(o.currentRoute.value,"Current Route")})}),d.on.visitComponentTree(({treeNode:x,componentInstance:_})=>{if(_.__vrv_devtools){let D=_.__vrv_devtools;x.tags.push({label:(D.name?`${D.name.toString()}: `:"")+D.path,textColor:0,tooltip:"This component is rendered by <router-view>",backgroundColor:ag})}lr(_.__vrl_devtools)&&(_.__devtoolsApi=d,_.__vrl_devtools.forEach(D=>{let O=dg,H="";D.isExactActive?(O=lg,H="This is exactly active"):D.isActive&&(O=sg,H="This link is active"),x.tags.push({label:D.route.path,textColor:0,tooltip:H,backgroundColor:O})}))}),Hn(o.currentRoute,()=>{g(),d.notifyComponentUpdate(),d.sendInspectorTree(m),d.sendInspectorState(m)});let u="router:navigations:"+s;d.addTimelineLayer({id:u,label:`Router${s?" "+s:""} Navigations`,color:4237508}),o.onError((x,_)=>{d.addTimelineEvent({layerId:u,event:{title:"Error during Navigation",subtitle:_.fullPath,logType:"error",time:d.now(),data:{error:x},groupId:_.meta.__navigationId}})});let c=0;o.beforeEach((x,_)=>{let D={guard:js("beforeEach"),from:ra(_,"Current Location during this navigation"),to:ra(x,"Target location")};Object.defineProperty(x.meta,"__navigationId",{value:c++}),d.addTimelineEvent({layerId:u,event:{time:d.now(),title:"Start of navigation",subtitle:x.fullPath,data:D,groupId:x.meta.__navigationId}})}),o.afterEach((x,_,D)=>{let O={guard:js("afterEach")};D?(O.failure={_custom:{type:Error,readOnly:!0,display:D?D.message:"",tooltip:"Navigation Failure",value:D}},O.status=js("\u274C")):O.status=js("\u2705"),O.from=ra(_,"Current Location during this navigation"),O.to=ra(x,"Target location"),d.addTimelineEvent({layerId:u,event:{title:"End of navigation",subtitle:x.fullPath,time:d.now(),data:O,logType:D?"warning":"default",groupId:x.meta.__navigationId}})});let m="router-inspector:"+s;d.addInspector({id:m,label:"Routes"+(s?" "+s:""),icon:"book",treeFilterPlaceholder:"Search routes"});function g(){if(!k)return;let x=k,_=n.getRoutes().filter(D=>!D.parent||!D.parent.record.components);_.forEach(fg),x.filter&&(_=_.filter(D=>$u(D,x.filter.toLowerCase()))),_.forEach(D=>cg(D,o.currentRoute.value)),x.rootNodes=_.map(ug)}let k;d.on.getInspectorTree(x=>{k=x,x.app===t&&x.inspectorId===m&&g()}),d.on.getInspectorState(x=>{if(x.app===t&&x.inspectorId===m){let D=n.getRoutes().find(O=>O.record.__vd_id===x.nodeId);D&&(x.state={options:Q1(D)})}}),d.sendInspectorTree(m),d.sendInspectorState(m)})}function Z1(t){return t.optional?t.repeatable?"*":"?":t.repeatable?"+":""}function Q1(t){let{record:o}=t,n=[{editable:!1,key:"path",value:o.path}];return o.name!=null&&n.push({editable:!1,key:"name",value:o.name}),n.push({editable:!1,key:"regexp",value:t.re}),t.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:t.keys.map(s=>`${s.name}${Z1(s)}`).join(" "),tooltip:"Param keys",value:t.keys}}}),o.redirect!=null&&n.push({editable:!1,key:"redirect",value:o.redirect}),t.alias.length&&n.push({editable:!1,key:"aliases",value:t.alias.map(s=>s.record.path)}),Object.keys(t.record.meta).length&&n.push({editable:!1,key:"meta",value:t.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:t.score.map(s=>s.join(", ")).join(" | "),too
$ { JSON . stringify ( he , null , 2 ) }
when navigating to "${X.fullPath}" . A redirect must contain a name or path . This will break in production . ` ),new Error("Invalid redirect");return rt({query:X.query,hash:X.hash,params:"path"in he?{}:X.params},he)}}function T(X,ce){let ie=k=j(X),he=g.value,Ce=X.state, $ e=X.force,He=X.replace===!0,F=C(ie);if(F)return T(rt(Y(F),{state:typeof F=="object"?rt({},Ce,F.state):Ce,force: $ e,replace:He}),ce||ie);let $ =ie; $ .redirectedFrom=ce;let Q;return! $ e&&Lh(s,he,ie)&&(Q=Kn(16,{to: $ ,from:he}),S(he,he,!0,!1)),(Q?Promise.resolve(Q):V( $ ,he)).catch(re=>oo(re)?oo(re,2)?re:P(re):ne(re, $ ,he)).then(re=>{if(re){if(oo(re,2))return Lh(s,j(re.to), $ )&&ce&&(ce._count=ce._count?ce._count+1:1)>30?(Ye( ` Detected a possibly infinite redirection in a navigation guard when going from "${he.fullPath}" to "${$.fullPath}" . Aborting to avoid a Stack Overflow .
Are you always returning a new location within a navigation guard ? That would lead to this error . Only return when redirecting or aborting , that should fix this . This might break in production if not fixed . ` ),Promise.reject(new Error("Infinite redirect in navigation guard"))):T(rt({replace:He},Y(re.to),{state:typeof re.to=="object"?rt({},Ce,re.to.state):Ce,force: $ e}),ce|| $ )}else re=q( $ ,he,!0,He,Ce);return Z( $ ,he,re),re})}function z(X,ce){let ie=p(X,ce);return ie?Promise.reject(ie):Promise.resolve()}function A(X){let ce=_e.values().next().value;return ce&&typeof ce.runWithContext=="function"?ce.runWithContext(X):X()}function V(X,ce){let ie,[he,Ce, $ e]=n3(X,ce);ie=Bu(he.reverse(),"beforeRouteLeave",X,ce);for(let F of he)F.leaveGuards.forEach( $ =>{ie.push(Ao( $ ,X,ce))});let He=z.bind(null,X,ce);return ie.push(He),Ge(ie).then(()=>{ie=[];for(let F of u.list())ie.push(Ao(F,X,ce));return ie.push(He),Ge(ie)}).then(()=>{ie=Bu(Ce,"beforeRouteUpdate",X,ce);for(let F of Ce)F.updateGuards.forEach( $ =>{ie.push(Ao( $ ,X,ce))});return ie.push(He),Ge(ie)}).then(()=>{ie=[];for(let F of $ e)if(F.beforeEnter)if(lr(F.beforeEnter))for(let $ of F.beforeEnter)ie.push(Ao( $ ,X,ce));else ie.push(Ao(F.beforeEnter,X,ce));return ie.push(He),Ge(ie)}).then(()=>(X.matched.forEach(F=>F.enterCallbacks={}),ie=Bu( $ e,"beforeRouteEnter",X,ce),ie.push(He),Ge(ie))).then(()=>{ie=[];for(let F of c.list())ie.push(Ao(F,X,ce));return ie.push(He),Ge(ie)}).catch(F=>oo(F,8)?F:Promise.reject(F))}function Z(X,ce,ie){m.list().forEach(he=>A(()=>he(X,ce,ie)))}function q(X,ce,ie,he,Ce){let $ e=p(X,ce);if( $ e)return $ e;let He=ce===So,F=no?history.state:{};ie&&(he||He?d.replace(X.fullPath,rt({scroll:He&&F&&F.scroll},Ce)):d.push(X.fullPath,Ce)),g.value=X,S(X,ce,ie,He),P()}let L;function U(){L||(L=d.listen((X,ce,ie)=>{if(!Ke.listening)return;let he=j(X),Ce=C(he);if(Ce){T(rt(Ce,{replace:!0}),he).catch(oa);return}k=he;let $ e=g.value;no&&Jy(Mh( $ e.fullPath,ie.delta),Vs()),V(he, $ e).catch(He=>oo(He,12)?He:oo(He,2)?(T(He.to,he).then(F=>{oo(F,20)&&!ie.delta&&ie.type===ia.pop&&d.go(-1,!1)}).catch(oa),Promise.reject()):(ie.delta&&d.go(-ie.delta,!1),ne(He,he, $ e))).then(He=>{He=He||q(he, $ e,!1),He&&(ie.delta&&!oo(He,8)?d.go(-ie.delta,!1):ie.type===ia.pop&&oo(He,20)&&d.go(-1,!1)),Z(he, $ e,He)}).catch(oa)}))}let N=ta(),G=ta(),J;function ne(X,ce,ie){P(X);let he=G.list();return he.length?he.forEach(Ce=>Ce(X,ce,ie)):(Ye("uncaught error during route navigation:"),console.error(X)),Promise.reject(X)}function Ne(){return J&&g.value!==So?Promise.resolve():new Promise((X,ce)=>{N.add([X,ce])})}function P(X){return J||(J=!X,U(),N.list().forEach(([ce,ie])=>X?ie(X):ce()),N.reset()),X}function S(X,ce,ie,he){let{scrollBehavior:Ce}=t;if(!no||!Ce)return Promise.resolve();let $ e=!ie&&e1(Mh(X.fullPath,0))||(he||!ie)&&history.state&&history.state.scroll||null;return Ss().then(()=>Ce(X,ce, $ e)).then(He=>He&&Qy(He)).catch(He=>ne(He,X,ce))}let fe=X=>d.go(X),Le,_e=new Set,Ke={currentRoute:g,listening:!0,addRoute:O,removeRoute:H,hasRoute:R,getRoutes:I,resolve:j,options:t,push:v,replace:w,go:fe,back:()=>fe(-1),forward:()=>fe(1),beforeEach:u.add,beforeResolve:c.add,afterEach:m.add,onError:G.add,isReady:Ne,install(X){let ce=this;X.component("RouterLink", $ 1),X.component("RouterView",G1),X.config.globalProperties. $ router=ce,Object.defineProperty(X.config.globalProperties," $ route",{enumerable:!0,get:()=>wo(g)}),no&&!Le&&g.value===So&&(Le=!0,v(d.location).catch(Ce=>{Ye("Unexpected error when starting the router:",Ce)}));let ie={};for(let Ce in So)Object.defineProperty(ie,Ce,{get:()=>g.value[Ce],enumerable:!0});X.provide(Wu,ce),X.provide(ig,Pi(ie)),X.provide(Vu,g);let he=X.unmount;_e.add(X),X.unmount=function(){_e.delete(X),_e.size<1&&(k=So,L&&L(),L=null,g.value=So,Le=!1,J=!1),he()},no&&X1(X,ce,o)}};function Ge(X){return X.reduce((ce,ie)=>ce.then(()=>A(ie)),Promise.resolve())}return Ke}function n3(t,o){let n=[],s=[],d=[],u=Math.max(o.matched.length,t.matched.length);for(let c=0;c<u;c++){let m=o.matched[c];m&&(t.matched.find(k=>No(k,m))?s.push(m):n.push(m));let g=t.matched[c];g&&(o.matched.find(k=>No(k,g))||d.push(g))}return[n,s,d]}var
2024-01-30 15:01:13 +00:00
` ).filter(o=>o&&!o.match(/^!/))}).catch(t=>{console.error(t)})}},mounted(){this.loadNav()},name:"WikiApp"};var i3={class:"navbar navbar-expand-lg bg-body-tertiary mb-3"},a3={class:"container-fluid"},s3=kt("button",{class:"navbar-toggler",type:"button","data-bs-toggle":"collapse","data-bs-target":"#navbarSupportedContent","aria-controls":"navbarSupportedContent","aria-expanded":"false","aria-label":"Toggle navigation"},[kt("span",{class:"navbar-toggler-icon"})],-1),l3={id:"navbarSupportedContent",class:"collapse navbar-collapse"},d3={class:"navbar-nav me-auto mb-2 mb-lg-0"};function mg(t,o,n,s,d,u){let c=Un("router-link"),m=Un("router-view");return mr(),Br("div",null,[kt("nav",i3,[kt("div",a3,[wt(c,{class:"navbar-brand",to:{name:"home"}},{default: $ n(()=>[Ps(" Wiki ")]),_:1}),s3,kt("div",l3,[kt("ul",d3,[(mr(!0),Br(Bt,null,Bm(d.navContent,g=>(mr(),Br("li",{key:g,class:"nav-item"},[wt(c,{class:"nav-link",to:{name:"view",params:{page:g}}},{default: $ n(()=>[Ps(Ld(g),1)]),_:2},1032,["to"])]))),128))])])])]),wt(m)])} $ s.render=mg; $ s.__file="src/app.vue";var hg= $ s;var _b=gp(kb()),bl={data(){return{editor:null}},methods:{loadPage(t){return console.debug( ` Loading $ { t } ... ` ),fetch( ` / _content / $ { t } ` ).then(o=>o.status===404?{content: ` # $ { t } ` }:o.json()).then(o=>{this.editor&&(this.editor.toTextArea(),this.editor=null),this.editor=new _b.default({element:this. $ refs.editor,forceSync:!0,indentWithTabs:!1,initialValue:o.content})}).catch(o=>{o.response&&o.response.status===404||console.error(o)})},save(){return fetch( ` / _content / $ { this . $route . params . page } ` ,{body:JSON.stringify({content:this. $ refs.editor.value}),method:"POST"}).then(()=>{this. $ router.push({name:"view",params:{page:this. $ route.params.page}})}).catch(t=>{console.error(t)})}},mounted(){this.loadPage(this. $ route.params.page)},name:"WikiEdit",watch:{ $ route(t,o){t.params.page!==o.params.page&&this.loadPage(t.params.page)}}};var tk={class:"container"},rk={class:"row"},ok={class:"col"},nk={ref:"editor"};function Eb(t,o,n,s,d,u){return mr(),Br("div",tk,[kt("div",rk,[kt("div",ok,[kt("textarea",nk,null,512),kt("button",{class:"btn btn-primary",onClick:o[0]||(o[0]=(...c)=>u.save&&u.save(...c))}," Save ")])])])}bl.render=Eb;bl.__file="src/edit.vue";var Db=bl;var Ab=gp(Sb()),wl={data(){return{render:""}},emits:["rendered"],name:"WikiMarkdown",props:{content:{default:"",type:String},prerender:{default:null,type:Function}},watch:{content(t){let o=t;this.prerender&&(o=this.prerender(o));let n=new Ab.default.Converter({tables:!0});n.setFlavor("github"),this.render=n.makeHtml(o),this. $ emit("rendered")}}};var ik=["innerHTML"];function Nb(t,o,n,s,d,u){return mr(),Br(Bt,null,[Rs(" eslint-disable-next-line vue/no-v-html "),kt("div",{innerHTML:d.render},null,8,ik)],2112)}wl.render=Nb;wl.__file="src/markdown.vue";var Tb=wl;var xl={components:{mdRender:Tb},data(){return{content:""}},methods:{intLinkClick(t){let o=t.target;return this. $ router.push({name:"view",params:{page:o.dataset.page}}),!1},loadPage(t){return console.debug( ` Loading $ { t } ... ` ),fetch( ` / _content / $ { t } ` ).then(o=>{if(o.status===404){this. $ router.push({name:"edit",params:{page:t}});return}return o.json()}).then(o=>{o&&(this.content=o.content)}).catch(o=>{console.error(o)})},prerender(t){return t=t.replace(new RegExp(/ \[ \[ ([^ \] ]+) \] \] /,"g"),'<a class="intLink" data-page=" $ 1" href=" $ 1"> $ 1</a>'),t},rendered(){window.setTimeout(()=>{let t=this. $ refs.content.getElementsByClassName("intLink");for(let o of t)o.onclick=this.intLinkClick;Prism.highlightAll()},100)}},mounted(){this.loadPage(this. $ route.params.page)},name:"WikiView",watch:{ $ route(t,o){t.params.page!==o.params.page&&this.loadPage(t.params.page)}}};var ak={class:"container"},sk={class:"row"},lk={ref:"content",class:"col relAnchor"},dk=kt("i",{class:"fas fa-edit"},null,-1);function Ob(t,o,n,s,d,u){let c=Un("router-link"),m=Un("md-render");return mr(),Br("div",ak,[kt("div",sk,[kt("div",lk,[t. $ route.params.page?(mr(),Eu(c,{key:0,class:"btn btn-secondary btn-sm editBtn",to:{name:"edit",params:{page:t. $ route.params.page}}},{default: $ n(()=>[dk]),_:1},8,["to"])):Rs("v-if",!0),wt(m,{content:d.co