mirror of
https://github.com/Luzifer/wiki.git
synced 2024-11-09 23:30:07 +00:00
252 lines
535 KiB
JavaScript
252 lines
535 KiB
JavaScript
(()=>{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 Date?e.f():setTimeout(e.handler,e.time-+new Date)},ce.prototype.set=function(e,r){this.f=r;var a=+new Date+e;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=a)};function ie(e,r){for(var a=0;a<e.length;++a)if(e[a]==r)return a;return-1}var he=50,Ce={toString:function(){return"CodeMirror.Pass"}},$e={scroll:!1},He={origin:"*mouse"},F={origin:"+move"};function $(e,r,a){for(var i=0,l=0;;){var f=e.indexOf(" ",i);f==-1&&(f=e.length);var h=f-i;if(f==e.length||l+h>=r)return i+Math.min(h,r-l);if(l+=f-i,l+=a-l%a,i=f+1,l>=r)return i}}var Q=[""];function re(e){for(;Q.length<=e;)Q.push(te(Q)+" ");return Q[e]}function te(e){return e[e.length-1]}function se(e,r){for(var a=[],i=0;i<e.length;i++)a[i]=r(e[i],i);return a}function pe(e,r,a){for(var i=0,l=a(r);i<e.length&&a(e[i])<=l;)i++;e.splice(i,0,r)}function ue(){}function me(e,r){var a;return Object.create?a=Object.create(e):(ue.prototype=e,a=new ue),r&&Ge(r,a),a}var le=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function xe(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||le.test(e))}function Te(e,r){return r?r.source.indexOf("\\w")>-1&&xe(e)?!0:r.test(e):xe(e)}function Oe(e){for(var r in e)if(e.hasOwnProperty(r)&&e[r])return!1;return!0}var je=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function We(e){return e.charCodeAt(0)>=768&&je.test(e)}function Ze(e,r,a){for(;(a<0?r>0:r<e.length)&&We(e.charAt(r));)r+=a;return r}function Je(e,r,a){for(var i=r>a?-1:1;;){if(r==a)return r;var l=(r+a)/2,f=i<0?Math.ceil(l):Math.floor(l);if(f==r)return e(f)?r:a;e(f)?a=f:r=f+i}}function xt(e,r,a,i){if(!e)return i(r,a,"ltr",0);for(var l=!1,f=0;f<e.length;++f){var h=e[f];(h.from<a&&h.to>r||r==a&&h.to==r)&&(i(Math.max(h.from,r),Math.min(h.to,a),h.level==1?"rtl":"ltr",f),l=!0)}l||i(r,a,"ltr")}var Mt=null;function ur(e,r,a){var i;Mt=null;for(var l=0;l<e.length;++l){var f=e[l];if(f.from<r&&f.to>r)return l;f.to==r&&(f.from!=f.to&&a=="before"?i=l:Mt=l),f.from==r&&(f.from!=f.to&&a!="before"?i=l:Mt=l)}return i??Mt}var ua=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(E){return E<=247?e.charAt(E):1424<=E&&E<=1524?"R":1536<=E&&E<=1785?r.charAt(E-1536):1774<=E&&E<=2220?"r":8192<=E&&E<=8203?"w":E==8204?"b":"L"}var i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,l=/[stwN]/,f=/[LRr]/,h=/[Lb1n]/,b=/[1n]/;function y(E,M,B){this.level=E,this.from=M,this.to=B}return function(E,M){var B=M=="ltr"?"L":"R";if(E.length==0||M=="ltr"&&!i.test(E))return!1;for(var K=E.length,W=[],ee=0;ee<K;++ee)W.push(a(E.charCodeAt(ee)));for(var oe=0,de=B;oe<K;++oe){var ge=W[oe];ge=="m"?W[oe]=de:de=ge}for(var we=0,be=B;we<K;++we){var ke=W[we];ke=="1"&&be=="r"?W[we]="n":f.test(ke)&&(be=ke,ke=="r"&&(W[we]="R"))}for(var Fe=1,Ae=W[0];Fe<K-1;++Fe){var Ue=W[Fe];Ue=="+"&&Ae=="1"&&W[Fe+1]=="1"?W[Fe]="1":Ue==","&&Ae==W[Fe+1]&&(Ae=="1"||Ae=="n")&&(W[Fe]=Ae),Ae=Ue}for(var nt=0;nt<K;++nt){var St=W[nt];if(St==",")W[nt]="N";else if(St=="%"){var ft=void 0;for(ft=nt+1;ft<K&&W[ft]=="%";++ft);for(var rr=nt&&W[nt-1]=="!"||ft<K&&W[ft]=="1"?"1":"N",Yt=nt;Yt<ft;++Yt)W[Yt]=rr;nt=ft-1}}for(var bt=0,Xt=B;bt<K;++bt){var Lt=W[bt];Xt=="L"&&Lt=="1"?W[bt]="L":f.test(Lt)&&(Xt=Lt)}for(var yt=0;yt<K;++yt)if(l.test(W[yt])){var vt=void 0;for(vt=yt+1;vt<K&&l.test(W[vt]);++vt);for(var pt=(yt?W[yt-1]:B)=="L",Zt=(vt<K?W[vt]:B)=="L",Ln=pt==Zt?pt?"L":"R":B,ho=yt;ho<vt;++ho)W[ho]=Ln;yt=vt-1}for(var Rt=[],Nr,At=0;At<K;)if(h.test(W[At])){var Dd=At;for(++At;At<K&&h.test(W[At]);++At);Rt.push(new y(0,Dd,At))}else{var Wr=At,$o=Rt.length,Uo=M=="rtl"?1:0;for(++At;At<K&&W[At]!="L";++At);for(var Vt=Wr;Vt<At;)if(b.test(W[Vt])){Wr<Vt&&(Rt.splice($o,0,new y(1,Wr,Vt)),$o+=Uo);var Fn=Vt;for(++Vt;Vt<At&&b.test(W[Vt]);++Vt);Rt.splice($o,0,new y(2,Fn,Vt)),$o+=Uo,Wr=Vt}else++Vt;Wr<At&&Rt.splice($o,0,new y(1,Wr,At))}return M=="ltr"&&(Rt[0].level==1&&(Nr=E.match(/^\s+/))&&(Rt[0].from=Nr[0].length,Rt.unshift(new y(0,0,Nr[0].length))),te(Rt).level==1&&(Nr=E.match(/\s+$/))&&(te(Rt).to-=Nr[0].length,Rt.push(new y(0,K-Nr[0].length,K)))),M=="rtl"?Rt.reverse():Rt}}();function Wt(e,r){var a=e.order;return a==null&&(a=e.order=ua(e.text,r)),a}var Jn=[],Ee=function(e,r,a){if(e.addEventListener)e.addEventListener(r,a,!1);else if(e.attachEvent)e.attachEvent("on"+r,a);else{var i=e._handlers||(e._handlers={});i[r]=(i[r]||Jn).concat(a)}};function er(e,r){return e._handlers&&e._handlers[r]||Jn}function Ht(e,r,a){if(e.removeEventListener)e.removeEventListener(r,a,!1);else if(e.detachEvent)e.detachEvent("on"+r,a);else{var i=e._handlers,l=i&&i[r];if(l){var f=ie(l,a);f>-1&&(i[r]=l.slice(0,f).concat(l.slice(f+1)))}}}function ht(e,r){var a=er(e,r);if(a.length)for(var i=Array.prototype.slice.call(arguments,2),l=0;l<a.length;++l)a[l].apply(null,i)}function _t(e,r,a){return typeof r=="string"&&(r={type:r,preventDefault:function(){this.defaultPrevented=!0}}),ht(e,a||r.type,e,r),yl(r)||r.codemirrorIgnore}function uc(e){var r=e._handlers&&e._handlers.cursorActivity;if(r)for(var a=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),i=0;i<r.length;++i)ie(a,r[i])==-1&&a.push(r[i])}function cr(e,r){return er(e,r).length>0}function fn(e){e.prototype.on=function(r,a){Ee(this,r,a)},e.prototype.off=function(r,a){Ht(this,r,a)}}function qt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function cc(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function yl(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function ei(e){qt(e),cc(e)}function kl(e){return e.target||e.srcElement}function fc(e){var r=e.which;return r==null&&(e.button&1?r=1:e.button&2?r=3:e.button&4&&(r=2)),p&&e.ctrlKey&&r==1&&(r=3),r}var Pb=function(){if(c&&m<9)return!1;var e=L("div");return"draggable"in e||"dragDrop"in e}(),_l;function Rb(e){if(_l==null){var r=L("span","\u200B");q(e,L("span",[r,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(_l=r.offsetWidth<=1&&r.offsetHeight>2&&!(c&&m<8))}var a=_l?L("span","\u200B"):L("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var El;function zb(e){if(El!=null)return El;var r=q(e,document.createTextNode("A\u062EA")),a=N(r,0,1).getBoundingClientRect(),i=N(r,1,2).getBoundingClientRect();return Z(e),!a||a.left==a.right?!1:El=i.right-a.right<3}var Dl=`
|
|
|
|
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\u00a0]/.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.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Se(e,r){if(r-=e.first,r<0||r>=e.size)throw new Error("There is no line "+(r+e.first)+" in the document.");for(var a=e;!a.lines;)for(var i=0;;++i){var l=a.children[i],f=l.chunkSize();if(r<f){a=l;break}r-=f}return a.lines[r]}function Fo(e,r,a){var i=[],l=r.line;return e.iter(r.line,a.line+1,function(f){var h=f.text;l==a.line&&(h=h.slice(0,a.ch)),l==r.line&&(h=h.slice(r.ch)),i.push(h),++l}),i}function Tl(e,r,a){var i=[];return e.iter(r,a,function(l){i.push(l.text)}),i}function Dr(e,r){var a=r-e.height;if(a)for(var i=e;i;i=i.parent)i.height+=a}function et(e){if(e.parent==null)return null;for(var r=e.parent,a=ie(r.lines,e),i=r.parent;i;r=i,i=i.parent)for(var l=0;i.children[l]!=r;++l)a+=i.children[l].chunkSize();return a+r.first}function Mo(e,r){var a=e.first;e:do{for(var i=0;i<e.children.length;++i){var l=e.children[i],f=l.height;if(r<f){e=l;continue e}r-=f,a+=l.chunkSize()}return a}while(!e.lines);for(var h=0;h<e.lines.length;++h){var b=e.lines[h],y=b.height;if(r<y)break;r-=y}return a+h}function ti(e,r){return r>=e.first&&r<e.first+e.size}function Ol(e,r){return String(e.lineNumberFormatter(r+e.firstLineNumber))}function ae(e,r,a){if(a===void 0&&(a=null),!(this instanceof ae))return new ae(e,r,a);this.line=e,this.ch=r,this.sticky=a}function Be(e,r){return e.line-r.line||e.ch-r.ch}function Ll(e,r){return e.sticky==r.sticky&&Be(e,r)==0}function Fl(e){return ae(e.line,e.ch)}function fa(e,r){return Be(e,r)<0?r:e}function pa(e,r){return Be(e,r)<0?e:r}function mc(e,r){return Math.max(e.first,Math.min(r,e.first+e.size-1))}function Ie(e,r){if(r.line<e.first)return ae(e.first,0);var a=e.first+e.size-1;return r.line>a?ae(a,Se(e,a).text.length):Ub(r,Se(e,r.line).text.length)}function Ub(e,r){var a=e.ch;return a==null||a>r?ae(e.line,r):a<0?ae(e.line,0):e}function hc(e,r){for(var a=[],i=0;i<r.length;i++)a[i]=Ie(e,r[i]);return a}var ma=function(e,r){this.state=e,this.lookAhead=r},Cr=function(e,r,a,i){this.state=r,this.doc=e,this.line=a,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};Cr.prototype.lookAhead=function(e){var r=this.doc.getLine(this.line+e);return r!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),r},Cr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Cr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Cr.fromSaved=function(e,r,a){return r instanceof ma?new Cr(e,Lo(e.mode,r.state),a,r.lookAhead):new Cr(e,Lo(e.mode,r),a)},Cr.prototype.save=function(e){var r=e!==!1?Lo(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ma(r,this.maxLookAhead):r};function gc(e,r,a,i){var l=[e.state.modeGen],f={};kc(e,r.text,e.doc.mode,a,function(E,M){return l.push(E,M)},f,i);for(var h=a.state,b=function(E){a.baseTokens=l;var M=e.state.overlays[E],B=1,K=0;a.state=!0,kc(e,r.text,M.mode,a,function(W,ee){for(var oe=B;K<W;){var de=l[B];de>W&&l.splice(B,1,W,l[B+1],de),B+=2,K=Math.min(W,de)}if(ee)if(M.opaque)l.splice(oe,B-oe,W,"overlay "+ee),B=oe+2;else for(;oe<B;oe+=2){var ge=l[oe+1];l[oe+1]=(ge?ge+" ":"")+"overlay "+ee}},f),a.state=h,a.baseTokens=null,a.baseTokenPos=1},y=0;y<e.state.overlays.length;++y)b(y);return{styles:l,classes:f.bgClass||f.textClass?f:null}}function bc(e,r,a){if(!r.styles||r.styles[0]!=e.state.modeGen){var i=ri(e,et(r)),l=r.text.length>e.options.maxHighlightLength&&Lo(e.doc.mode,i.state),f=gc(e,r,i);l&&(i.state=l),r.stateAfter=i.save(!l),r.styles=f.styles,f.classes?r.styleClasses=f.classes:r.styleClasses&&(r.styleClasses=null),a===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return r.styles}function ri(e,r,a){var i=e.doc,l=e.display;if(!i.mode.startState)return new Cr(i,!0,r);var f=Wb(e,r,a),h=f>i.first&&Se(i,f-1).stateAfter,b=h?Cr.fromSaved(i,h,f):new Cr(i,pc(i.mode),f);return i.iter(f,r,function(y){Ml(e,y.text,b);var E=b.line;y.stateAfter=E==r-1||E%5==0||E>=l.viewFrom&&E<l.viewTo?b.save():null,b.nextLine()}),a&&(i.modeFrontier=b.line),b}function Ml(e,r,a,i){var l=e.doc.mode,f=new gt(r,e.options.tabSize,a);for(f.start=f.pos=i||0,r==""&&vc(l,a.state);!f.eol();)Pl(l,f,a.state),f.start=f.pos}function vc(e,r){if(e.blankLine)return e.blankLine(r);if(e.innerMode){var a=Nl(e,r);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function Pl(e,r,a,i){for(var l=0;l<10;l++){i&&(i[0]=Nl(e,a).mode);var f=e.token(r,a);if(r.pos>r.start)return f}throw new Error("Mode "+e.name+" failed to advance stream.")}var wc=function(e,r,a){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=r||null,this.state=a};function xc(e,r,a,i){var l=e.doc,f=l.mode,h;r=Ie(l,r);var b=Se(l,r.line),y=ri(e,r.line,a),E=new gt(b.text,e.options.tabSize,y),M;for(i&&(M=[]);(i||E.pos<r.ch)&&!E.eol();)E.start=E.pos,h=Pl(f,E,y.state),i&&M.push(new wc(E,h,Lo(l.mode,y.state)));return i?M:new wc(E,h,y.state)}function yc(e,r){if(e)for(;;){var a=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!a)break;e=e.slice(0,a.index)+e.slice(a.index+a[0].length);var i=a[1]?"bgClass":"textClass";r[i]==null?r[i]=a[2]:new RegExp("(?:^|\\s)"+a[2]+"(?:$|\\s)").test(r[i])||(r[i]+=" "+a[2])}return e}function kc(e,r,a,i,l,f,h){var b=a.flattenSpans;b==null&&(b=e.options.flattenSpans);var y=0,E=null,M=new gt(r,e.options.tabSize,i),B,K=e.options.addModeClass&&[null];for(r==""&&yc(vc(a,i.state),f);!M.eol();){if(M.pos>e.options.maxHighlightLength?(b=!1,h&&Ml(e,r,i,M.pos),M.pos=r.length,B=null):B=yc(Pl(a,M,i.state,K),f),K){var W=K[0].name;W&&(B="m-"+(B?W+" "+B:W))}if(!b||E!=B){for(;y<M.start;)y=Math.min(M.start,y+5e3),l(y,E);E=B}M.start=M.pos}for(;y<M.pos;){var ee=Math.min(M.pos,y+5e3);l(ee,E),y=ee}}function Wb(e,r,a){for(var i,l,f=e.doc,h=a?-1:r-(e.doc.mode.innerMode?1e3:100),b=r;b>h;--b){if(b<=f.first)return f.first;var y=Se(f,b-1),E=y.stateAfter;if(E&&(!a||b+(E instanceof ma?E.lookAhead:0)<=f.modeFrontier))return b;var M=X(y.text,null,e.options.tabSize);(l==null||i>M)&&(l=b-1,i=M)}return l}function qb(e,r){if(e.modeFrontier=Math.min(e.modeFrontier,r),!(e.highlightFrontier<r-10)){for(var a=e.first,i=r-1;i>a;i--){var l=Se(e,i).stateAfter;if(l&&(!(l instanceof ma)||i+l.lookAhead<r)){a=i+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,a)}}var _c=!1,Hr=!1;function Gb(){_c=!0}function Kb(){Hr=!0}function ha(e,r,a){this.marker=e,this.from=r,this.to=a}function oi(e,r){if(e)for(var a=0;a<e.length;++a){var i=e[a];if(i.marker==r)return i}}function Yb(e,r){for(var a,i=0;i<e.length;++i)e[i]!=r&&(a||(a=[])).push(e[i]);return a}function Xb(e,r,a){var i=a&&window.WeakSet&&(a.markedSpans||(a.markedSpans=new WeakSet));i&&e.markedSpans&&i.has(e.markedSpans)?e.markedSpans.push(r):(e.markedSpans=e.markedSpans?e.markedSpans.concat([r]):[r],i&&i.add(e.markedSpans)),r.marker.attachLine(e)}function Zb(e,r,a){var i;if(e)for(var l=0;l<e.length;++l){var f=e[l],h=f.marker,b=f.from==null||(h.inclusiveLeft?f.from<=r:f.from<r);if(b||f.from==r&&h.type=="bookmark"&&(!a||!f.marker.insertLeft)){var y=f.to==null||(h.inclusiveRight?f.to>=r:f.to>r);(i||(i=[])).push(new ha(h,f.from,y?null:f.to))}}return i}function Qb(e,r,a){var i;if(e)for(var l=0;l<e.length;++l){var f=e[l],h=f.marker,b=f.to==null||(h.inclusiveRight?f.to>=r:f.to>r);if(b||f.from==r&&h.type=="bookmark"&&(!a||f.marker.insertLeft)){var y=f.from==null||(h.inclusiveLeft?f.from<=r:f.from<r);(i||(i=[])).push(new ha(h,y?null:f.from-r,f.to==null?null:f.to-r))}}return i}function Rl(e,r){if(r.full)return null;var a=ti(e,r.from.line)&&Se(e,r.from.line).markedSpans,i=ti(e,r.to.line)&&Se(e,r.to.line).markedSpans;if(!a&&!i)return null;var l=r.from.ch,f=r.to.ch,h=Be(r.from,r.to)==0,b=Zb(a,l,h),y=Qb(i,f,h),E=r.text.length==1,M=te(r.text).length+(E?l:0);if(b)for(var B=0;B<b.length;++B){var K=b[B];if(K.to==null){var W=oi(y,K.marker);W?E&&(K.to=W.to==null?null:W.to+M):K.to=l}}if(y)for(var ee=0;ee<y.length;++ee){var oe=y[ee];if(oe.to!=null&&(oe.to+=M),oe.from==null){var de=oi(b,oe.marker);de||(oe.from=M,E&&(b||(b=[])).push(oe))}else oe.from+=M,E&&(b||(b=[])).push(oe)}b&&(b=Ec(b)),y&&y!=b&&(y=Ec(y));var ge=[b];if(!E){var we=r.text.length-2,be;if(we>0&&b)for(var ke=0;ke<b.length;++ke)b[ke].to==null&&(be||(be=[])).push(new ha(b[ke].marker,null,null));for(var Fe=0;Fe<we;++Fe)ge.push(be);ge.push(y)}return ge}function Ec(e){for(var r=0;r<e.length;++r){var a=e[r];a.from!=null&&a.from==a.to&&a.marker.clearWhenEmpty!==!1&&e.splice(r--,1)}return e.length?e:null}function Jb(e,r,a){var i=null;if(e.iter(r.line,a.line+1,function(W){if(W.markedSpans)for(var ee=0;ee<W.markedSpans.length;++ee){var oe=W.markedSpans[ee].marker;oe.readOnly&&(!i||ie(i,oe)==-1)&&(i||(i=[])).push(oe)}}),!i)return null;for(var l=[{from:r,to:a}],f=0;f<i.length;++f)for(var h=i[f],b=h.find(0),y=0;y<l.length;++y){var E=l[y];if(!(Be(E.to,b.from)<0||Be(E.from,b.to)>0)){var M=[y,1],B=Be(E.from,b.from),K=Be(E.to,b.to);(B<0||!h.inclusiveLeft&&!B)&&M.push({from:E.from,to:b.from}),(K>0||!h.inclusiveRight&&!K)&&M.push({from:b.to,to:E.to}),l.splice.apply(l,M),y+=M.length-3}}return l}function Dc(e){var r=e.markedSpans;if(r){for(var a=0;a<r.length;++a)r[a].marker.detachLine(e);e.markedSpans=null}}function Cc(e,r){if(r){for(var a=0;a<r.length;++a)r[a].marker.attachLine(e);e.markedSpans=r}}function ga(e){return e.inclusiveLeft?-1:0}function ba(e){return e.inclusiveRight?1:0}function zl(e,r){var a=e.lines.length-r.lines.length;if(a!=0)return a;var i=e.find(),l=r.find(),f=Be(i.from,l.from)||ga(e)-ga(r);if(f)return-f;var h=Be(i.to,l.to)||ba(e)-ba(r);return h||r.id-e.id}function Sc(e,r){var a=Hr&&e.markedSpans,i;if(a)for(var l=void 0,f=0;f<a.length;++f)l=a[f],l.marker.collapsed&&(r?l.from:l.to)==null&&(!i||zl(i,l.marker)<0)&&(i=l.marker);return i}function Ac(e){return Sc(e,!0)}function va(e){return Sc(e,!1)}function ev(e,r){var a=Hr&&e.markedSpans,i;if(a)for(var l=0;l<a.length;++l){var f=a[l];f.marker.collapsed&&(f.from==null||f.from<r)&&(f.to==null||f.to>r)&&(!i||zl(i,f.marker)<0)&&(i=f.marker)}return i}function Nc(e,r,a,i,l){var f=Se(e,r),h=Hr&&f.markedSpans;if(h)for(var b=0;b<h.length;++b){var y=h[b];if(y.marker.collapsed){var E=y.marker.find(0),M=Be(E.from,a)||ga(y.marker)-ga(l),B=Be(E.to,i)||ba(y.marker)-ba(l);if(!(M>=0&&B<=0||M<=0&&B>=0)&&(M<=0&&(y.marker.inclusiveRight&&l.inclusiveLeft?Be(E.to,a)>=0:Be(E.to,a)>0)||M>=0&&(y.marker.inclusiveRight&&l.inclusiveLeft?Be(E.from,i)<=0:Be(E.from,i)<0)))return!0}}}function gr(e){for(var r;r=Ac(e);)e=r.find(-1,!0).line;return e}function tv(e){for(var r;r=va(e);)e=r.find(1,!0).line;return e}function rv(e){for(var r,a;r=va(e);)e=r.find(1,!0).line,(a||(a=[])).push(e);return a}function Bl(e,r){var a=Se(e,r),i=gr(a);return a==i?r:et(i)}function Tc(e,r){if(r>e.lastLine())return r;var a=Se(e,r),i;if(!ao(e,a))return r;for(;i=va(a);)a=i.find(1,!0).line;return et(a)+1}function ao(e,r){var a=Hr&&r.markedSpans;if(a){for(var i=void 0,l=0;l<a.length;++l)if(i=a[l],!!i.marker.collapsed){if(i.from==null)return!0;if(!i.marker.widgetNode&&i.from==0&&i.marker.inclusiveLeft&&Il(e,r,i))return!0}}}function Il(e,r,a){if(a.to==null){var i=a.marker.find(1,!0);return Il(e,i.line,oi(i.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==r.text.length)return!0;for(var l=void 0,f=0;f<r.markedSpans.length;++f)if(l=r.markedSpans[f],l.marker.collapsed&&!l.marker.widgetNode&&l.from==a.to&&(l.to==null||l.to!=a.from)&&(l.marker.inclusiveLeft||a.marker.inclusiveRight)&&Il(e,r,l))return!0}function jr(e){e=gr(e);for(var r=0,a=e.parent,i=0;i<a.lines.length;++i){var l=a.lines[i];if(l==e)break;r+=l.height}for(var f=a.parent;f;a=f,f=a.parent)for(var h=0;h<f.children.length;++h){var b=f.children[h];if(b==a)break;r+=b.height}return r}function wa(e){if(e.height==0)return 0;for(var r=e.text.length,a,i=e;a=Ac(i);){var l=a.find(0,!0);i=l.from.line,r+=l.from.ch-l.to.ch}for(i=e;a=va(i);){var f=a.find(0,!0);r-=i.text.length-f.from.ch,i=f.to.line,r+=i.text.length-f.to.ch}return r}function Hl(e){var r=e.display,a=e.doc;r.maxLine=Se(a,a.first),r.maxLineLength=wa(r.maxLine),r.maxLineChanged=!0,a.iter(function(i){var l=wa(i);l>r.maxLineLength&&(r.maxLineLength=l,r.maxLine=i)})}var hn=function(e,r,a){this.text=e,Cc(this,r),this.height=a?a(this):1};hn.prototype.lineNo=function(){return et(this)},fn(hn);function ov(e,r,a,i){e.text=r,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Dc(e),Cc(e,a);var l=i?i(e):1;l!=e.height&&Dr(e,l)}function nv(e){e.parent=null,Dc(e)}var iv={},av={};function Oc(e,r){if(!e||/^\s*$/.test(e))return null;var a=r.addModeClass?av:iv;return a[e]||(a[e]=e.replace(/\S+/g,"cm-$&"))}function Lc(e,r){var a=U("span",null,null,g?"padding-right: .1px":null),i={pre:U("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};r.measure={};for(var l=0;l<=(r.rest?r.rest.length:0);l++){var f=l?r.rest[l-1]:r.line,h=void 0;i.pos=0,i.addToken=lv,zb(e.display.measure)&&(h=Wt(f,e.doc.direction))&&(i.addToken=uv(i.addToken,h)),i.map=[];var b=r!=e.display.externalMeasured&&et(f);cv(f,i,bc(e,f,b)),f.styleClasses&&(f.styleClasses.bgClass&&(i.bgClass=Ne(f.styleClasses.bgClass,i.bgClass||"")),f.styleClasses.textClass&&(i.textClass=Ne(f.styleClasses.textClass,i.textClass||""))),i.map.length==0&&i.map.push(0,0,i.content.appendChild(Rb(e.display.measure))),l==0?(r.measure.map=i.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(i.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(g){var y=i.content.lastChild;(/\bcm-tab\b/.test(y.className)||y.querySelector&&y.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return ht(e,"renderLine",e,r.line,i.pre),i.pre.className&&(i.textClass=Ne(i.pre.className,i.textClass||"")),i}function sv(e){var r=L("span","\u2022","cm-invalidchar");return r.title="\\u"+e.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function lv(e,r,a,i,l,f,h){if(r){var b=e.splitSpaces?dv(r,e.trailingSpace):r,y=e.cm.state.specialChars,E=!1,M;if(!y.test(r))e.col+=r.length,M=document.createTextNode(b),e.map.push(e.pos,e.pos+r.length,M),c&&m<9&&(E=!0),e.pos+=r.length;else{M=document.createDocumentFragment();for(var B=0;;){y.lastIndex=B;var K=y.exec(r),W=K?K.index-B:r.length-B;if(W){var ee=document.createTextNode(b.slice(B,B+W));c&&m<9?M.appendChild(L("span",[ee])):M.appendChild(ee),e.map.push(e.pos,e.pos+W,ee),e.col+=W,e.pos+=W}if(!K)break;B+=W+1;var oe=void 0;if(K[0]==" "){var de=e.cm.options.tabSize,ge=de-e.col%de;oe=M.appendChild(L("span",re(ge),"cm-tab")),oe.setAttribute("role","presentation"),oe.setAttribute("cm-text"," "),e.col+=ge}else K[0]=="\r"||K[0]==`
|
|
`?(oe=M.appendChild(L("span",K[0]=="\r"?"\u240D":"\u2424","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="\xA0"),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: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),c&&m<8&&(e.node.style.zIndex=2)),e.node}function gv(e,r){var a=r.bgClass?r.bgClass+" "+(r.line.bgClass||""):r.line.bgClass;if(a&&(a+=" CodeMirror-linebackground"),r.background)a?r.background.className=a:(r.background.parentNode.removeChild(r.background),r.background=null);else if(a){var i=ii(r);r.background=i.insertBefore(L("div",null,a),i.firstChild),e.display.input.setUneditable(r.background)}}function Rc(e,r){var a=e.display.externalMeasured;return a&&a.line==r.line?(e.display.externalMeasured=null,r.measure=a.measure,a.built):Lc(e,r)}function bv(e,r){var a=r.text.className,i=Rc(e,r);r.text==r.node&&(r.node=i.pre),r.text.parentNode.replaceChild(i.pre,r.text),r.text=i.pre,i.bgClass!=r.bgClass||i.textClass!=r.textClass?(r.bgClass=i.bgClass,r.textClass=i.textClass,jl(e,r)):a&&(r.text.className=a)}function jl(e,r){gv(e,r),r.line.wrapClass?ii(r).className=r.line.wrapClass:r.node!=r.text&&(r.node.className="");var a=r.textClass?r.textClass+" "+(r.line.textClass||""):r.line.textClass;r.text.className=a||""}function zc(e,r,a,i){if(r.gutter&&(r.node.removeChild(r.gutter),r.gutter=null),r.gutterBackground&&(r.node.removeChild(r.gutterBackground),r.gutterBackground=null),r.line.gutterClass){var l=ii(r);r.gutterBackground=L("div",null,"CodeMirror-gutter-background "+r.line.gutterClass,"left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px; width: "+i.gutterTotalWidth+"px"),e.display.input.setUneditable(r.gutterBackground),l.insertBefore(r.gutterBackground,r.text)}var f=r.line.gutterMarkers;if(e.options.lineNumbers||f){var h=ii(r),b=r.gutter=L("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px");if(b.setAttribute("aria-hidden","true"),e.display.input.setUneditable(b),h.insertBefore(b,r.text),r.line.gutterClass&&(b.className+=" "+r.line.gutterClass),e.options.lineNumbers&&(!f||!f["CodeMirror-linenumbers"])&&(r.lineNumber=b.appendChild(L("div",Ol(e.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),f)for(var y=0;y<e.display.gutterSpecs.length;++y){var E=e.display.gutterSpecs[y].className,M=f.hasOwnProperty(E)&&f[E];M&&b.appendChild(L("div",[M],"CodeMirror-gutter-elt","left: "+i.gutterLeft[E]+"px; width: "+i.gutterWidth[E]+"px"))}}}function vv(e,r,a){r.alignable&&(r.alignable=null);for(var i=A("CodeMirror-linewidget"),l=r.node.firstChild,f=void 0;l;l=f)f=l.nextSibling,i.test(l.className)&&r.node.removeChild(l);Bc(e,r,a)}function wv(e,r,a,i){var l=Rc(e,r);return r.text=r.node=l.pre,l.bgClass&&(r.bgClass=l.bgClass),l.textClass&&(r.textClass=l.textClass),jl(e,r),zc(e,r,a,i),Bc(e,r,i),r.node}function Bc(e,r,a){if(Ic(e,r.line,r,a,!0),r.rest)for(var i=0;i<r.rest.length;i++)Ic(e,r.rest[i],r,a,!1)}function Ic(e,r,a,i,l){if(r.widgets)for(var f=ii(a),h=0,b=r.widgets;h<b.length;++h){var y=b[h],E=L("div",[y.node],"CodeMirror-linewidget"+(y.className?" "+y.className:""));y.handleMouseEvents||E.setAttribute("cm-ignore-events","true"),xv(y,E,a,i),e.display.input.setUneditable(E),l&&y.above?f.insertBefore(E,a.gutter||a.text):f.appendChild(E),Et(y,"redraw")}}function xv(e,r,a,i){if(e.noHScroll){(a.alignable||(a.alignable=[])).push(r);var l=i.wrapperWidth;r.style.left=i.fixedPos+"px",e.coverGutter||(l-=i.gutterTotalWidth,r.style.paddingLeft=i.gutterTotalWidth+"px"),r.style.width=l+"px"}e.coverGutter&&(r.style.zIndex=5,r.style.position="relative",e.noHScroll||(r.style.marginLeft=-i.gutterTotalWidth+"px"))}function ai(e){if(e.height!=null)return e.height;var r=e.doc.cm;if(!r)return 0;if(!G(document.body,e.node)){var a="position: relative;";e.coverGutter&&(a+="margin-left: -"+r.display.gutters.offsetWidth+"px;"),e.noHScroll&&(a+="width: "+r.display.wrapper.clientWidth+"px;"),q(r.display.measure,L("div",[e.node],null,a))}return e.height=e.node.parentNode.offsetHeight}function Vr(e,r){for(var a=kl(r);a!=e.wrapper;a=a.parentNode)if(!a||a.nodeType==1&&a.getAttribute("cm-ignore-events")=="true"||a.parentNode==e.sizer&&a!=e.mover)return!0}function ya(e){return e.lineSpace.offsetTop}function Vl(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Hc(e){if(e.cachedPaddingH)return e.cachedPaddingH;var r=q(e.measure,L("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,i={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(i.left)&&!isNaN(i.right)&&(e.cachedPaddingH=i),i}function Sr(e){return he-e.display.nativeBarWidth}function Po(e){return e.display.scroller.clientWidth-Sr(e)-e.display.barWidth}function $l(e){return e.display.scroller.clientHeight-Sr(e)-e.display.barHeight}function yv(e,r,a){var i=e.options.lineWrapping,l=i&&Po(e);if(!r.measure.heights||i&&r.measure.width!=l){var f=r.measure.heights=[];if(i){r.measure.width=l;for(var h=r.text.firstChild.getClientRects(),b=0;b<h.length-1;b++){var y=h[b],E=h[b+1];Math.abs(y.bottom-E.bottom)>2&&f.push((y.bottom+E.top)/2-a.top)}}f.push(a.bottom-a.top)}}function jc(e,r,a){if(e.line==r)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var i=0;i<e.rest.length;i++)if(e.rest[i]==r)return{map:e.measure.maps[i],cache:e.measure.caches[i]};for(var l=0;l<e.rest.length;l++)if(et(e.rest[l])>a)return{map:e.measure.maps[l],cache:e.measure.caches[l],before:!0}}}function kv(e,r){r=gr(r);var a=et(r),i=e.display.externalMeasured=new Mc(e.doc,r,a);i.lineN=a;var l=i.built=Lc(e,i);return i.text=l.pre,q(e.display.lineMeasure,l.pre),i}function Vc(e,r,a,i){return Ar(e,bn(e,r),a,i)}function Ul(e,r){if(r>=e.display.viewFrom&&r<e.display.viewTo)return e.display.view[Bo(e,r)];var a=e.display.externalMeasured;if(a&&r>=a.lineN&&r<a.lineN+a.size)return a}function bn(e,r){var a=et(r),i=Ul(e,a);i&&!i.text?i=null:i&&i.changes&&(Pc(e,i,a,Yl(e)),e.curOp.forceUpdate=!0),i||(i=kv(e,r));var l=jc(i,r,a);return{line:r,view:i,rect:null,map:l.map,cache:l.cache,before:l.before,hasHeights:!1}}function Ar(e,r,a,i,l){r.before&&(a=-1);var f=a+(i||""),h;return r.cache.hasOwnProperty(f)?h=r.cache[f]:(r.rect||(r.rect=r.view.text.getBoundingClientRect()),r.hasHeights||(yv(e,r.view,r.rect),r.hasHeights=!0),h=Ev(e,r,a,i),h.bogus||(r.cache[f]=h)),{left:h.left,right:h.right,top:l?h.rtop:h.top,bottom:l?h.rbottom:h.bottom}}var $c={left:0,right:0,top:0,bottom:0};function Uc(e,r,a){for(var i,l,f,h,b,y,E=0;E<e.length;E+=3)if(b=e[E],y=e[E+1],r<b?(l=0,f=1,h="left"):r<y?(l=r-b,f=l+1):(E==e.length-3||r==y&&e[E+3]>r)&&(f=y-b,l=f-1,r>=y&&(h="right")),l!=null){if(i=e[E+2],b==y&&a==(i.insertLeft?"left":"right")&&(h=a),a=="left"&&l==0)for(;E&&e[E-2]==e[E-3]&&e[E-1].insertLeft;)i=e[(E-=3)+2],h="left";if(a=="right"&&l==y-b)for(;E<e.length-3&&e[E+3]==e[E+4]&&!e[E+5].insertLeft;)i=e[(E+=3)+2],h="right";break}return{node:i,start:l,end:f,collapse:h,coverStart:b,coverEnd:y}}function _v(e,r){var a=$c;if(r=="left")for(var i=0;i<e.length&&(a=e[i]).left==a.right;i++);else for(var l=e.length-1;l>=0&&(a=e[l]).left==a.right;l--);return a}function Ev(e,r,a,i){var l=Uc(r.map,a,i),f=l.node,h=l.start,b=l.end,y=l.collapse,E;if(f.nodeType==3){for(var M=0;M<4;M++){for(;h&&We(r.line.text.charAt(l.coverStart+h));)--h;for(;l.coverStart+b<l.coverEnd&&We(r.line.text.charAt(l.coverStart+b));)++b;if(c&&m<9&&h==0&&b==l.coverEnd-l.coverStart?E=f.parentNode.getBoundingClientRect():E=_v(N(f,h,b).getClientRects(),i),E.left||E.right||h==0)break;b=h,h=h-1,y="right"}c&&m<11&&(E=Dv(e.display.measure,E))}else{h>0&&(y=i="right");var B;e.options.lineWrapping&&(B=f.getClientRects()).length>1?E=B[i=="right"?B.length-1:0]:E=f.getBoundingClientRect()}if(c&&m<9&&!h&&(!E||!E.left&&!E.right)){var K=f.parentNode.getClientRects()[0];K?E={left:K.left,right:K.left+wn(e.display),top:K.top,bottom:K.bottom}:E=$c}for(var W=E.top-r.rect.top,ee=E.bottom-r.rect.top,oe=(W+ee)/2,de=r.view.measure.heights,ge=0;ge<de.length-1&&!(oe<de[ge]);ge++);var we=ge?de[ge-1]:0,be=de[ge],ke={left:(y=="right"?E.right:E.left)-r.rect.left,right:(y=="left"?E.left:E.right)-r.rect.left,top:we,bottom:be};return!E.left&&!E.right&&(ke.bogus=!0),e.options.singleCursorHeightPerLine||(ke.rtop=W,ke.rbottom=ee),ke}function Dv(e,r){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Hb(e))return r;var a=screen.logicalXDPI/screen.deviceXDPI,i=screen.logicalYDPI/screen.deviceYDPI;return{left:r.left*a,right:r.right*a,top:r.top*i,bottom:r.bottom*i}}function Wc(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var r=0;r<e.rest.length;r++)e.measure.caches[r]={}}function qc(e){e.display.externalMeasure=null,Z(e.display.lineMeasure);for(var r=0;r<e.display.view.length;r++)Wc(e.display.view[r])}function si(e){qc(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Gc(e){return x&&j?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function Kc(e){return x&&j?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function Wl(e){var r=gr(e),a=r.widgets,i=0;if(a)for(var l=0;l<a.length;++l)a[l].above&&(i+=ai(a[l]));return i}function ka(e,r,a,i,l){if(!l){var f=Wl(r);a.top+=f,a.bottom+=f}if(i=="line")return a;i||(i="local");var h=jr(r);if(i=="local"?h+=ya(e.display):h-=e.display.viewOffset,i=="page"||i=="window"){var b=e.display.lineSpace.getBoundingClientRect();h+=b.top+(i=="window"?0:Kc(S(e)));var y=b.left+(i=="window"?0:Gc(S(e)));a.left+=y,a.right+=y}return a.top+=h,a.bottom+=h,a}function Yc(e,r,a){if(a=="div")return r;var i=r.left,l=r.top;if(a=="page")i-=Gc(S(e)),l-=Kc(S(e));else if(a=="local"||!a){var f=e.display.sizer.getBoundingClientRect();i+=f.left,l+=f.top}var h=e.display.lineSpace.getBoundingClientRect();return{left:i-h.left,top:l-h.top}}function _a(e,r,a,i,l){return i||(i=Se(e.doc,r.line)),ka(e,i,Vc(e,i,r.ch,l),a)}function br(e,r,a,i,l,f){i=i||Se(e.doc,r.line),l||(l=bn(e,i));function h(ee,oe){var de=Ar(e,l,ee,oe?"right":"left",f);return oe?de.left=de.right:de.right=de.left,ka(e,i,de,a)}var b=Wt(i,e.doc.direction),y=r.ch,E=r.sticky;if(y>=i.text.length?(y=i.text.length,E="before"):y<=0&&(y=0,E="after"),!b)return h(E=="before"?y-1:y,E=="before");function M(ee,oe,de){var ge=b[oe],we=ge.level==1;return h(de?ee-1:ee,we!=de)}var B=ur(b,y,E),K=Mt,W=M(y,B,E=="before");return K!=null&&(W.other=M(y,K,E!="before")),W}function Xc(e,r){var a=0;r=Ie(e.doc,r),e.options.lineWrapping||(a=wn(e.display)*r.ch);var i=Se(e.doc,r.line),l=jr(i)+ya(e.display);return{left:a,right:a,top:l,bottom:l+i.height}}function ql(e,r,a,i,l){var f=ae(e,r,a);return f.xRel=l,i&&(f.outside=i),f}function Gl(e,r,a){var i=e.doc;if(a+=e.display.viewOffset,a<0)return ql(i.first,0,null,-1,-1);var l=Mo(i,a),f=i.first+i.size-1;if(l>f)return ql(i.first+i.size-1,Se(i,f).text.length,null,1,1);r<0&&(r=0);for(var h=Se(i,l);;){var b=Cv(e,h,l,r,a),y=ev(h,b.ch+(b.xRel>0||b.outside>0?1:0));if(!y)return b;var E=y.find(1);if(E.line==l)return E;h=Se(i,l=E.line)}}function Zc(e,r,a,i){i-=Wl(r);var l=r.text.length,f=Je(function(h){return Ar(e,a,h-1).bottom<=i},l,0);return l=Je(function(h){return Ar(e,a,h).top>i},f,l),{begin:f,end:l}}function Qc(e,r,a,i){a||(a=bn(e,r));var l=ka(e,r,Ar(e,a,i),"line").top;return Zc(e,r,a,l)}function Kl(e,r,a,i){return e.bottom<=a?!1:e.top>a?!0:(i?e.left:e.right)>r}function Cv(e,r,a,i,l){l-=jr(r);var f=bn(e,r),h=Wl(r),b=0,y=r.text.length,E=!0,M=Wt(r,e.doc.direction);if(M){var B=(e.options.lineWrapping?Av:Sv)(e,r,a,f,M,i,l);E=B.level!=1,b=E?B.from:B.to-1,y=E?B.to:B.from-1}var K=null,W=null,ee=Je(function(Fe){var Ae=Ar(e,f,Fe);return Ae.top+=h,Ae.bottom+=h,Kl(Ae,i,l,!1)?(Ae.top<=l&&Ae.left<=i&&(K=Fe,W=Ae),!0):!1},b,y),oe,de,ge=!1;if(W){var we=i-W.left<W.right-i,be=we==E;ee=K+(be?0:1),de=be?"after":"before",oe=we?W.left:W.right}else{!E&&(ee==y||ee==b)&&ee++,de=ee==0?"after":ee==r.text.length?"before":Ar(e,f,ee-(E?1:0)).bottom+h<=l==E?"after":"before";var ke=br(e,ae(a,ee,de),"line",r,f);oe=ke.left,ge=l<ke.top?-1:l>=ke.bottom?1:0}return ee=Ze(r.text,ee,1),ql(a,ee,de,ge,i-oe)}function Sv(e,r,a,i,l,f,h){var b=Je(function(B){var K=l[B],W=K.level!=1;return Kl(br(e,ae(a,W?K.to:K.from,W?"before":"after"),"line",r,i),f,h,!0)},0,l.length-1),y=l[b];if(b>0){var E=y.level!=1,M=br(e,ae(a,E?y.from:y.to,E?"after":"before"),"line",r,i);Kl(M,f,h,!0)&&M.top>h&&(y=l[b-1])}return y}function Av(e,r,a,i,l,f,h){var b=Zc(e,r,i,h),y=b.begin,E=b.end;/\s/.test(r.text.charAt(E-1))&&E--;for(var M=null,B=null,K=0;K<l.length;K++){var W=l[K];if(!(W.from>=E||W.to<=y)){var ee=W.level!=1,oe=Ar(e,i,ee?Math.min(E,W.to)-1:Math.max(y,W.from)).right,de=oe<f?f-oe+1e9:oe-f;(!M||B>de)&&(M=W,B=de)}}return M||(M=l[l.length-1]),M.from<y&&(M={from:y,to:M.to,level:M.level}),M.to>E&&(M={from:M.from,to:E,level:M.level}),M}var Ro;function vn(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ro==null){Ro=L("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)Ro.appendChild(document.createTextNode("x")),Ro.appendChild(L("br"));Ro.appendChild(document.createTextNode("x"))}q(e.measure,Ro);var a=Ro.offsetHeight/50;return a>3&&(e.cachedTextHeight=a),Z(e.measure),a||1}function wn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var r=L("span","xxxxxxxxxx"),a=L("pre",[r],"CodeMirror-line-like");q(e.measure,a);var i=r.getBoundingClientRect(),l=(i.right-i.left)/10;return l>2&&(e.cachedCharWidth=l),l||10}function Yl(e){for(var r=e.display,a={},i={},l=r.gutters.clientLeft,f=r.gutters.firstChild,h=0;f;f=f.nextSibling,++h){var b=e.display.gutterSpecs[h].className;a[b]=f.offsetLeft+f.clientLeft+l,i[b]=f.clientWidth}return{fixedPos:Xl(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:a,gutterWidth:i,wrapperWidth:r.wrapper.clientWidth}}function Xl(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Jc(e){var r=vn(e.display),a=e.options.lineWrapping,i=a&&Math.max(5,e.display.scroller.clientWidth/wn(e.display)-3);return function(l){if(ao(e.doc,l))return 0;var f=0;if(l.widgets)for(var h=0;h<l.widgets.length;h++)l.widgets[h].height&&(f+=l.widgets[h].height);return a?f+(Math.ceil(l.text.length/i)||1)*r:f+r}}function Zl(e){var r=e.doc,a=Jc(e);r.iter(function(i){var l=a(i);l!=i.height&&Dr(i,l)})}function zo(e,r,a,i){var l=e.display;if(!a&&kl(r).getAttribute("cm-not-content")=="true")return null;var f,h,b=l.lineSpace.getBoundingClientRect();try{f=r.clientX-b.left,h=r.clientY-b.top}catch{return null}var y=Gl(e,f,h),E;if(i&&y.xRel>0&&(E=Se(e.doc,y.line).text).length==y.ch){var M=X(E,E.length,e.options.tabSize)-E.length;y=ae(y.line,Math.max(0,Math.round((f-Hc(e.display).left)/wn(e.display))-M))}return y}function Bo(e,r){if(r>=e.display.viewTo||(r-=e.display.viewFrom,r<0))return null;for(var a=e.display.view,i=0;i<a.length;i++)if(r-=a[i].size,r<0)return i}function Gt(e,r,a,i){r==null&&(r=e.doc.first),a==null&&(a=e.doc.first+e.doc.size),i||(i=0);var l=e.display;if(i&&a<l.viewTo&&(l.updateLineNumbers==null||l.updateLineNumbers>r)&&(l.updateLineNumbers=r),e.curOp.viewChanged=!0,r>=l.viewTo)Hr&&Bl(e.doc,r)<l.viewTo&&lo(e);else if(a<=l.viewFrom)Hr&&Tc(e.doc,a+i)>l.viewFrom?lo(e):(l.viewFrom+=i,l.viewTo+=i);else if(r<=l.viewFrom&&a>=l.viewTo)lo(e);else if(r<=l.viewFrom){var f=Ea(e,a,a+i,1);f?(l.view=l.view.slice(f.index),l.viewFrom=f.lineN,l.viewTo+=i):lo(e)}else if(a>=l.viewTo){var h=Ea(e,r,r,-1);h?(l.view=l.view.slice(0,h.index),l.viewTo=h.lineN):lo(e)}else{var b=Ea(e,r,r,-1),y=Ea(e,a,a+i,1);b&&y?(l.view=l.view.slice(0,b.index).concat(xa(e,b.lineN,y.lineN)).concat(l.view.slice(y.index)),l.viewTo+=i):lo(e)}var E=l.externalMeasured;E&&(a<E.lineN?E.lineN+=i:r<E.lineN+E.size&&(l.externalMeasured=null))}function so(e,r,a){e.curOp.viewChanged=!0;var i=e.display,l=e.display.externalMeasured;if(l&&r>=l.lineN&&r<l.lineN+l.size&&(i.externalMeasured=null),!(r<i.viewFrom||r>=i.viewTo)){var f=i.view[Bo(e,r)];if(f.node!=null){var h=f.changes||(f.changes=[]);ie(h,a)==-1&&h.push(a)}}}function lo(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ea(e,r,a,i){var l=Bo(e,r),f,h=e.display.view;if(!Hr||a==e.doc.first+e.doc.size)return{index:l,lineN:a};for(var b=e.display.viewFrom,y=0;y<l;y++)b+=h[y].size;if(b!=r){if(i>0){if(l==h.length-1)return null;f=b+h[l].size-r,l++}else f=b-r;r+=f,a+=f}for(;Bl(e.doc,a)!=a;){if(l==(i<0?0:h.length-1))return null;a+=i*h[l-(i<0?1:0)].size,l+=i}return{index:l,lineN:a}}function Nv(e,r,a){var i=e.display,l=i.view;l.length==0||r>=i.viewTo||a<=i.viewFrom?(i.view=xa(e,r,a),i.viewFrom=r):(i.viewFrom>r?i.view=xa(e,r,i.viewFrom).concat(i.view):i.viewFrom<r&&(i.view=i.view.slice(Bo(e,r))),i.viewFrom=r,i.viewTo<a?i.view=i.view.concat(xa(e,i.viewTo,a)):i.viewTo>a&&(i.view=i.view.slice(0,Bo(e,a)))),i.viewTo=a}function ef(e){for(var r=e.display.view,a=0,i=0;i<r.length;i++){var l=r[i];!l.hidden&&(!l.node||l.changes)&&++a}return a}function li(e){e.display.input.showSelection(e.display.input.prepareSelection())}function tf(e,r){r===void 0&&(r=!0);var a=e.doc,i={},l=i.cursors=document.createDocumentFragment(),f=i.selection=document.createDocumentFragment(),h=e.options.$customCursor;h&&(r=!0);for(var b=0;b<a.sel.ranges.length;b++)if(!(!r&&b==a.sel.primIndex)){var y=a.sel.ranges[b];if(!(y.from().line>=e.display.viewTo||y.to().line<e.display.viewFrom)){var E=y.empty();if(h){var M=h(e,y);M&&Ql(e,M,l)}else(E||e.options.showCursorWhenSelecting)&&Ql(e,y.head,l);E||Tv(e,y,f)}}return i}function Ql(e,r,a){var i=br(e,r,"div",null,null,!e.options.singleCursorHeightPerLine),l=a.appendChild(L("div","\xA0","CodeMirror-cursor"));if(l.style.left=i.left+"px",l.style.top=i.top+"px",l.style.height=Math.max(0,i.bottom-i.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var f=_a(e,r,"div",null,null),h=f.right-f.left;l.style.width=(h>0?h:e.defaultCharWidth())+"px"}if(i.other){var b=a.appendChild(L("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));b.style.display="",b.style.left=i.other.left+"px",b.style.top=i.other.top+"px",b.style.height=(i.other.bottom-i.other.top)*.85+"px"}}function Da(e,r){return e.top-r.top||e.left-r.left}function Tv(e,r,a){var i=e.display,l=e.doc,f=document.createDocumentFragment(),h=Hc(e.display),b=h.left,y=Math.max(i.sizerWidth,Po(e)-i.sizer.offsetLeft)-h.right,E=l.direction=="ltr";function M(be,ke,Fe,Ae){ke<0&&(ke=0),ke=Math.round(ke),Ae=Math.round(Ae),f.appendChild(L("div",null,"CodeMirror-selected","position: absolute; left: "+be+`px;
|
|
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.clientHeight),h=y)}return{from:f,to:Math.max(h,f+1)}}function Ov(e,r){if(!_t(e,"scrollCursorIntoView")){var a=e.display,i=a.sizer.getBoundingClientRect(),l=null,f=a.wrapper.ownerDocument;if(r.top+i.top<0?l=!0:r.bottom+i.top>(f.defaultView.innerHeight||f.documentElement.clientHeight)&&(l=!1),l!=null&&!I){var h=L("div","\u200B",null,`position: absolute;
|
|
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.style.height=Math.max(0,e.scrollHeight-e.clientHeight+l)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=a?i+"px":"0",this.horiz.style.left=e.barLeft+"px";var f=e.viewWidth-e.barLeft-(a?i:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+f)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(i==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?i:0,bottom:r?i:0}},Ho.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ho.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ho.prototype.zeroWidthHack=function(){var e=p&&!H?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new ce,this.disableVert=new ce},Ho.prototype.enableZeroWidthBar=function(e,r,a){e.style.visibility="";function i(){var l=e.getBoundingClientRect(),f=a=="vert"?document.elementFromPoint(l.right-1,(l.top+l.bottom)/2):document.elementFromPoint((l.right+l.left)/2,l.bottom-1);f!=e?e.style.visibility="hidden":r.set(1e3,i)}r.set(1e3,i)},Ho.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var fi=function(){};fi.prototype.update=function(){return{bottom:0,right:0}},fi.prototype.setScrollLeft=function(){},fi.prototype.setScrollTop=function(){},fi.prototype.clear=function(){};function kn(e,r){r||(r=ci(e));var a=e.display.barWidth,i=e.display.barHeight;sf(e,r);for(var l=0;l<4&&a!=e.display.barWidth||i!=e.display.barHeight;l++)a!=e.display.barWidth&&e.options.lineWrapping&&Ca(e),sf(e,ci(e)),a=e.display.barWidth,i=e.display.barHeight}function sf(e,r){var a=e.display,i=a.scrollbars.update(r);a.sizer.style.paddingRight=(a.barWidth=i.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=i.bottom)+"px",a.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=i.bottom+"px",a.scrollbarFiller.style.width=i.right+"px"):a.scrollbarFiller.style.display="",i.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=i.bottom+"px",a.gutterFiller.style.width=r.gutterWidth+"px"):a.gutterFiller.style.display=""}var lf={native:Ho,null:fi};function df(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&V(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new lf[e.options.scrollbarStyle](function(r){e.display.wrapper.insertBefore(r,e.display.scrollbarFiller),Ee(r,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,a){a=="horizontal"?Io(e,r):ui(e,r)},e),e.display.scrollbars.addClass&&ne(e.display.wrapper,e.display.scrollbars.addClass)}var Pv=0;function jo(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Pv,markArrays:null},fv(e.curOp)}function Vo(e){var r=e.curOp;r&&mv(r,function(a){for(var i=0;i<a.ops.length;i++)a.ops[i].cm.curOp=null;Rv(a)})}function Rv(e){for(var r=e.ops,a=0;a<r.length;a++)zv(r[a]);for(var i=0;i<r.length;i++)Bv(r[i]);for(var l=0;l<r.length;l++)Iv(r[l]);for(var f=0;f<r.length;f++)Hv(r[f]);for(var h=0;h<r.length;h++)jv(r[h])}function zv(e){var r=e.cm,a=r.display;$v(r),e.updateMaxLine&&Hl(r),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<a.viewFrom||e.scrollToPos.to.line>=a.viewTo)||a.maxLineChanged&&r.options.lineWrapping,e.update=e.mustUpdate&&new Na(r,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Bv(e){e.updatedDisplay=e.mustUpdate&&nd(e.cm,e.update)}function Iv(e){var r=e.cm,a=r.display;e.updatedDisplay&&Ca(r),e.barMeasure=ci(r),a.maxLineChanged&&!r.options.lineWrapping&&(e.adjustWidthTo=Vc(r,a.maxLine,a.maxLine.text.length).left+3,r.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+e.adjustWidthTo+Sr(r)+r.display.barWidth),e.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+e.adjustWidthTo-Po(r))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=a.input.prepareSelection())}function Hv(e){var r=e.cm;e.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<r.doc.scrollLeft&&Io(r,Math.min(r.display.scroller.scrollLeft,e.maxScrollLeft),!0),r.display.maxLineChanged=!1);var a=e.focus&&e.focus==J(fe(r));e.preparedSelection&&r.display.input.showSelection(e.preparedSelection,a),(e.updatedDisplay||e.startHeight!=r.doc.height)&&kn(r,e.barMeasure),e.updatedDisplay&&sd(r,e.barMeasure),e.selectionChanged&&Jl(r),r.state.focused&&e.updateInput&&r.display.input.reset(e.typing),a&&rf(e.cm)}function jv(e){var r=e.cm,a=r.display,i=r.doc;if(e.updatedDisplay&&uf(r,e.update),a.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),e.scrollTop!=null&&af(r,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Io(r,e.scrollLeft,!0,!0),e.scrollToPos){var l=Lv(r,Ie(i,e.scrollToPos.from),Ie(i,e.scrollToPos.to),e.scrollToPos.margin);Ov(r,l)}var f=e.maybeHiddenMarkers,h=e.maybeUnhiddenMarkers;if(f)for(var b=0;b<f.length;++b)f[b].lines.length||ht(f[b],"hide");if(h)for(var y=0;y<h.length;++y)h[y].lines.length&&ht(h[y],"unhide");a.wrapper.offsetHeight&&(i.scrollTop=r.display.scroller.scrollTop),e.changeObjs&&ht(r,"changes",r,e.changeObjs),e.update&&e.update.finish()}function tr(e,r){if(e.curOp)return r();jo(e);try{return r()}finally{Vo(e)}}function Dt(e,r){return function(){if(e.curOp)return r.apply(e,arguments);jo(e);try{return r.apply(e,arguments)}finally{Vo(e)}}}function jt(e){return function(){if(this.curOp)return e.apply(this,arguments);jo(this);try{return e.apply(this,arguments)}finally{Vo(this)}}}function Ct(e){return function(){var r=this.cm;if(!r||r.curOp)return e.apply(this,arguments);jo(r);try{return e.apply(this,arguments)}finally{Vo(r)}}}function pi(e,r){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(r,Ke(Vv,e))}function Vv(e){var r=e.doc;if(!(r.highlightFrontier>=e.display.viewTo)){var a=+new Date+e.options.workTime,i=ri(e,r.highlightFrontier),l=[];r.iter(i.line,Math.min(r.first+r.size,e.display.viewTo+500),function(f){if(i.line>=e.display.viewFrom){var h=f.styles,b=f.text.length>e.options.maxHighlightLength?Lo(r.mode,i.state):null,y=gc(e,f,i,!0);b&&(i.state=b),f.styles=y.styles;var E=f.styleClasses,M=y.classes;M?f.styleClasses=M:E&&(f.styleClasses=null);for(var B=!h||h.length!=f.styles.length||E!=M&&(!E||!M||E.bgClass!=M.bgClass||E.textClass!=M.textClass),K=0;!B&&K<h.length;++K)B=h[K]!=f.styles[K];B&&l.push(i.line),f.stateAfter=i.save(),i.nextLine()}else f.text.length<=e.options.maxHighlightLength&&Ml(e,f.text,i),f.stateAfter=i.line%5==0?i.save():null,i.nextLine();if(+new Date>a)return pi(e,e.options.workDelay),!0}),r.highlightFrontier=i.line,r.modeFrontier=Math.max(r.modeFrontier,i.line),l.length&&tr(e,function(){for(var f=0;f<l.length;f++)so(e,l[f],"text")})}}var Na=function(e,r,a){var i=e.display;this.viewport=r,this.visible=Sa(i,e.doc,r),this.editorIsHidden=!i.wrapper.offsetWidth,this.wrapperHeight=i.wrapper.clientHeight,this.wrapperWidth=i.wrapper.clientWidth,this.oldDisplayWidth=Po(e),this.force=a,this.dims=Yl(e),this.events=[]};Na.prototype.signal=function(e,r){cr(e,r)&&this.events.push(arguments)},Na.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ht.apply(null,this.events[e])};function $v(e){var r=e.display;!r.scrollbarsClipped&&r.scroller.offsetWidth&&(r.nativeBarWidth=r.scroller.offsetWidth-r.scroller.clientWidth,r.heightForcer.style.height=Sr(e)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=Sr(e)+"px",r.scrollbarsClipped=!0)}function Uv(e){if(e.hasFocus())return null;var r=J(fe(e));if(!r||!G(e.display.lineDiv,r))return null;var a={activeElt:r};if(window.getSelection){var i=_e(e).getSelection();i.anchorNode&&i.extend&&G(e.display.lineDiv,i.anchorNode)&&(a.anchorNode=i.anchorNode,a.anchorOffset=i.anchorOffset,a.focusNode=i.focusNode,a.focusOffset=i.focusOffset)}return a}function Wv(e){if(!(!e||!e.activeElt||e.activeElt==J(Le(e.activeElt)))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&G(document.body,e.anchorNode)&&G(document.body,e.focusNode))){var r=e.activeElt.ownerDocument,a=r.defaultView.getSelection(),i=r.createRange();i.setEnd(e.anchorNode,e.anchorOffset),i.collapse(!1),a.removeAllRanges(),a.addRange(i),a.extend(e.focusNode,e.focusOffset)}}function nd(e,r){var a=e.display,i=e.doc;if(r.editorIsHidden)return lo(e),!1;if(!r.force&&r.visible.from>=a.viewFrom&&r.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&ef(e)==0)return!1;ff(e)&&(lo(e),r.dims=Yl(e));var l=i.first+i.size,f=Math.max(r.visible.from-e.options.viewportMargin,i.first),h=Math.min(l,r.visible.to+e.options.viewportMargin);a.viewFrom<f&&f-a.viewFrom<20&&(f=Math.max(i.first,a.viewFrom)),a.viewTo>h&&a.viewTo-h<20&&(h=Math.min(l,a.viewTo)),Hr&&(f=Bl(e.doc,f),h=Tc(e.doc,h));var b=f!=a.viewFrom||h!=a.viewTo||a.lastWrapHeight!=r.wrapperHeight||a.lastWrapWidth!=r.wrapperWidth;Nv(e,f,h),a.viewOffset=jr(Se(e.doc,a.viewFrom)),e.display.mover.style.top=a.viewOffset+"px";var y=ef(e);if(!b&&y==0&&!r.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var E=Uv(e);return y>4&&(a.lineDiv.style.display="none"),qv(e,a.updateLineNumbers,r.dims),y>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Wv(E),Z(a.cursorDiv),Z(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,b&&(a.lastWrapHeight=r.wrapperHeight,a.lastWrapWidth=r.wrapperWidth,pi(e,400)),a.updateLineNumbers=null,!0}function uf(e,r){for(var a=r.viewport,i=!0;;i=!1){if(!i||!e.options.lineWrapping||r.oldDisplayWidth==Po(e)){if(a&&a.top!=null&&(a={top:Math.min(e.doc.height+Vl(e.display)-$l(e),a.top)}),r.visible=Sa(e.display,e.doc,a),r.visible.from>=e.display.viewFrom&&r.visible.to<=e.display.viewTo)break}else i&&(r.visible=Sa(e.display,e.doc,a));if(!nd(e,r))break;Ca(e);var l=ci(e);li(e),kn(e,l),sd(e,l),r.force=!1}r.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(r.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function id(e,r){var a=new Na(e,r);if(nd(e,a)){Ca(e),uf(e,a);var i=ci(e);li(e),kn(e,i),sd(e,i),a.finish()}}function qv(e,r,a){var i=e.display,l=e.options.lineNumbers,f=i.lineDiv,h=f.firstChild;function b(ee){var oe=ee.nextSibling;return g&&p&&e.display.currentWheelTarget==ee?ee.style.display="none":ee.parentNode.removeChild(ee),oe}for(var y=i.view,E=i.viewFrom,M=0;M<y.length;M++){var B=y[M];if(!B.hidden)if(!B.node||B.node.parentNode!=f){var K=wv(e,B,E,a);f.insertBefore(K,h)}else{for(;h!=B.node;)h=b(h);var W=l&&r!=null&&r<=E&&B.lineNumber;B.changes&&(ie(B.changes,"gutter")>-1&&(W=!1),Pc(e,B,E,a)),W&&(Z(B.lineNumber),B.lineNumber.appendChild(document.createTextNode(Ol(e.options,E)))),h=B.node.nextSibling}E+=B.size}for(;h;)h=b(h)}function ad(e){var r=e.gutters.offsetWidth;e.sizer.style.marginLeft=r+"px",Et(e,"gutterChanged",e)}function sd(e,r){e.display.sizer.style.minHeight=r.docHeight+"px",e.display.heightForcer.style.top=r.docHeight+"px",e.display.gutters.style.height=r.docHeight+e.display.barHeight+Sr(e)+"px"}function cf(e){var r=e.display,a=r.view;if(!(!r.alignWidgets&&(!r.gutters.firstChild||!e.options.fixedGutter))){for(var i=Xl(r)-r.scroller.scrollLeft+e.doc.scrollLeft,l=r.gutters.offsetWidth,f=i+"px",h=0;h<a.length;h++)if(!a[h].hidden){e.options.fixedGutter&&(a[h].gutter&&(a[h].gutter.style.left=f),a[h].gutterBackground&&(a[h].gutterBackground.style.left=f));var b=a[h].alignable;if(b)for(var y=0;y<b.length;y++)b[y].style.left=f}e.options.fixedGutter&&(r.gutters.style.left=i+l+"px")}}function ff(e){if(!e.options.lineNumbers)return!1;var r=e.doc,a=Ol(e.options,r.first+r.size-1),i=e.display;if(a.length!=i.lineNumChars){var l=i.measure.appendChild(L("div",[L("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),f=l.firstChild.offsetWidth,h=l.offsetWidth-f;return i.lineGutter.style.width="",i.lineNumInnerWidth=Math.max(f,i.lineGutter.offsetWidth-h)+1,i.lineNumWidth=i.lineNumInnerWidth+h,i.lineNumChars=i.lineNumInnerWidth?a.length:-1,i.lineGutter.style.width=i.lineNumWidth+"px",ad(e.display),!0}return!1}function ld(e,r){for(var a=[],i=!1,l=0;l<e.length;l++){var f=e[l],h=null;if(typeof f!="string"&&(h=f.style,f=f.className),f=="CodeMirror-linenumbers")if(r)i=!0;else continue;a.push({className:f,style:h})}return r&&!i&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function pf(e){var r=e.gutters,a=e.gutterSpecs;Z(r),e.lineGutter=null;for(var i=0;i<a.length;++i){var l=a[i],f=l.className,h=l.style,b=r.appendChild(L("div",null,"CodeMirror-gutter "+f));h&&(b.style.cssText=h),f=="CodeMirror-linenumbers"&&(e.lineGutter=b,b.style.width=(e.lineNumWidth||1)+"px")}r.style.display=a.length?"":"none",ad(e)}function mi(e){pf(e.display),Gt(e),cf(e)}function Gv(e,r,a,i){var l=this;this.input=a,l.scrollbarFiller=L("div",null,"CodeMirror-scrollbar-filler"),l.scrollbarFiller.setAttribute("cm-not-content","true"),l.gutterFiller=L("div",null,"CodeMirror-gutter-filler"),l.gutterFiller.setAttribute("cm-not-content","true"),l.lineDiv=U("div",null,"CodeMirror-code"),l.selectionDiv=L("div",null,null,"position: relative; z-index: 1"),l.cursorDiv=L("div",null,"CodeMirror-cursors"),l.measure=L("div",null,"CodeMirror-measure"),l.lineMeasure=L("div",null,"CodeMirror-measure"),l.lineSpace=U("div",[l.measure,l.lineMeasure,l.selectionDiv,l.cursorDiv,l.lineDiv],null,"position: relative; outline: none");var f=U("div",[l.lineSpace],"CodeMirror-lines");l.mover=L("div",[f],null,"position: relative"),l.sizer=L("div",[l.mover],"CodeMirror-sizer"),l.sizerWidth=null,l.heightForcer=L("div",null,null,"position: absolute; height: "+he+"px; width: 1px;"),l.gutters=L("div",null,"CodeMirror-gutters"),l.lineGutter=null,l.scroller=L("div",[l.sizer,l.heightForcer,l.gutters],"CodeMirror-scroll"),l.scroller.setAttribute("tabIndex","-1"),l.wrapper=L("div",[l.scrollbarFiller,l.gutterFiller,l.scroller],"CodeMirror"),x&&_>=105&&(l.wrapper.style.clipPath="inset(0px)"),l.wrapper.setAttribute("translate","no"),c&&m<8&&(l.gutters.style.zIndex=-1,l.scroller.style.paddingRight=0),!g&&!(n&&Y)&&(l.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(l.wrapper):e(l.wrapper)),l.viewFrom=l.viewTo=r.first,l.reportedViewFrom=l.reportedViewTo=r.first,l.view=[],l.renderedView=null,l.externalMeasured=null,l.viewOffset=0,l.lastWrapHeight=l.lastWrapWidth=0,l.updateLineNumbers=null,l.nativeBarWidth=l.barHeight=l.barWidth=0,l.scrollbarsClipped=!1,l.lineNumWidth=l.lineNumInnerWidth=l.lineNumChars=null,l.alignWidgets=!1,l.cachedCharWidth=l.cachedTextHeight=l.cachedPaddingH=null,l.maxLine=null,l.maxLineLength=0,l.maxLineChanged=!1,l.wheelDX=l.wheelDY=l.wheelStartX=l.wheelStartY=null,l.shift=!1,l.selForContextMenu=null,l.activeTouch=null,l.gutterSpecs=ld(i.gutters,i.lineNumbers),pf(l),a.init(l)}var Ta=0,$r=null;c?$r=-.53:n?$r=15:x?$r=-.7:O&&($r=-1/3);function mf(e){var r=e.wheelDeltaX,a=e.wheelDeltaY;return r==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(r=e.detail),a==null&&e.detail&&e.axis==e.VERTICAL_AXIS?a=e.detail:a==null&&(a=e.wheelDelta),{x:r,y:a}}function Kv(e){var r=mf(e);return r.x*=$r,r.y*=$r,r}function hf(e,r){x&&_==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var a=mf(r),i=a.x,l=a.y,f=$r;r.deltaMode===0&&(i=r.deltaX,l=r.deltaY,f=1);var h=e.display,b=h.scroller,y=b.scrollWidth>b.clientWidth,E=b.scrollHeight>b.clientHeight;if(i&&y||l&&E){if(l&&p&&g){e:for(var M=r.target,B=h.view;M!=b;M=M.parentNode)for(var K=0;K<B.length;K++)if(B[K].node==M){e.display.currentWheelTarget=M;break e}}if(i&&!n&&!D&&f!=null){l&&E&&ui(e,Math.max(0,b.scrollTop+l*f)),Io(e,Math.max(0,b.scrollLeft+i*f)),(!l||l&&E)&&qt(r),h.wheelStartX=null;return}if(l&&f!=null){var W=l*f,ee=e.doc.scrollTop,oe=ee+h.wrapper.clientHeight;W<0?ee=Math.max(0,ee+W-50):oe=Math.min(e.doc.height,oe+W+50),id(e,{top:ee,bottom:oe})}Ta<20&&r.deltaMode!==0&&(h.wheelStartX==null?(h.wheelStartX=b.scrollLeft,h.wheelStartY=b.scrollTop,h.wheelDX=i,h.wheelDY=l,setTimeout(function(){if(h.wheelStartX!=null){var de=b.scrollLeft-h.wheelStartX,ge=b.scrollTop-h.wheelStartY,we=ge&&h.wheelDY&&ge/h.wheelDY||de&&h.wheelDX&&de/h.wheelDX;h.wheelStartX=h.wheelStartY=null,we&&($r=($r*Ta+we)/(Ta+1),++Ta)}},200)):(h.wheelDX+=i,h.wheelDY+=l))}}var ar=function(e,r){this.ranges=e,this.primIndex=r};ar.prototype.primary=function(){return this.ranges[this.primIndex]},ar.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var r=0;r<this.ranges.length;r++){var a=this.ranges[r],i=e.ranges[r];if(!Ll(a.anchor,i.anchor)||!Ll(a.head,i.head))return!1}return!0},ar.prototype.deepCopy=function(){for(var e=[],r=0;r<this.ranges.length;r++)e[r]=new Qe(Fl(this.ranges[r].anchor),Fl(this.ranges[r].head));return new ar(e,this.primIndex)},ar.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},ar.prototype.contains=function(e,r){r||(r=e);for(var a=0;a<this.ranges.length;a++){var i=this.ranges[a];if(Be(r,i.from())>=0&&Be(e,i.to())<=0)return a}return-1};var Qe=function(e,r){this.anchor=e,this.head=r};Qe.prototype.from=function(){return pa(this.anchor,this.head)},Qe.prototype.to=function(){return fa(this.anchor,this.head)},Qe.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function vr(e,r,a){var i=e&&e.options.selectionsMayTouch,l=r[a];r.sort(function(K,W){return Be(K.from(),W.from())}),a=ie(r,l);for(var f=1;f<r.length;f++){var h=r[f],b=r[f-1],y=Be(b.to(),h.from());if(i&&!h.empty()?y>0:y>=0){var E=pa(b.from(),h.from()),M=fa(b.to(),h.to()),B=b.empty()?h.from()==h.head:b.from()==b.head;f<=a&&--a,r.splice(--f,2,new Qe(B?M:E,B?E:M))}}return new ar(r,a)}function uo(e,r){return new ar([new Qe(e,r||e)],0)}function co(e){return e.text?ae(e.from.line+e.text.length-1,te(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function gf(e,r){if(Be(e,r.from)<0)return e;if(Be(e,r.to)<=0)return co(r);var a=e.line+r.text.length-(r.to.line-r.from.line)-1,i=e.ch;return e.line==r.to.line&&(i+=co(r).ch-r.to.ch),ae(a,i)}function dd(e,r){for(var a=[],i=0;i<e.sel.ranges.length;i++){var l=e.sel.ranges[i];a.push(new Qe(gf(l.anchor,r),gf(l.head,r)))}return vr(e.cm,a,e.sel.primIndex)}function bf(e,r,a){return e.line==r.line?ae(a.line,e.ch-r.ch+a.ch):ae(a.line+(e.line-r.line),e.ch)}function Yv(e,r,a){for(var i=[],l=ae(e.first,0),f=l,h=0;h<r.length;h++){var b=r[h],y=bf(b.from,l,f),E=bf(co(b),l,f);if(l=b.to,f=E,a=="around"){var M=e.sel.ranges[h],B=Be(M.head,M.anchor)<0;i[h]=new Qe(B?E:y,B?y:E)}else i[h]=new Qe(y,y)}return new ar(i,e.sel.primIndex)}function ud(e){e.doc.mode=Al(e.options,e.doc.modeOption),hi(e)}function hi(e){e.doc.iter(function(r){r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,pi(e,100),e.state.modeGen++,e.curOp&&Gt(e)}function vf(e,r){return r.from.ch==0&&r.to.ch==0&&te(r.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function cd(e,r,a,i){function l(we){return a?a[we]:null}function f(we,be,ke){ov(we,be,ke,i),Et(we,"change",we,r)}function h(we,be){for(var ke=[],Fe=we;Fe<be;++Fe)ke.push(new hn(E[Fe],l(Fe),i));return ke}var b=r.from,y=r.to,E=r.text,M=Se(e,b.line),B=Se(e,y.line),K=te(E),W=l(E.length-1),ee=y.line-b.line;if(r.full)e.insert(0,h(0,E.length)),e.remove(E.length,e.size-E.length);else if(vf(e,r)){var oe=h(0,E.length-1);f(B,B.text,W),ee&&e.remove(b.line,ee),oe.length&&e.insert(b.line,oe)}else if(M==B)if(E.length==1)f(M,M.text.slice(0,b.ch)+K+M.text.slice(y.ch),W);else{var de=h(1,E.length-1);de.push(new hn(K+M.text.slice(y.ch),W,i)),f(M,M.text.slice(0,b.ch)+E[0],l(0)),e.insert(b.line+1,de)}else if(E.length==1)f(M,M.text.slice(0,b.ch)+E[0]+B.text.slice(y.ch),l(0)),e.remove(b.line+1,ee);else{f(M,M.text.slice(0,b.ch)+E[0],l(0)),f(B,K+B.text.slice(y.ch),W);var ge=h(1,E.length-1);ee>1&&e.remove(b.line+1,ee-1),e.insert(b.line+1,ge)}Et(e,"change",e,r)}function fo(e,r,a){function i(l,f,h){if(l.linked)for(var b=0;b<l.linked.length;++b){var y=l.linked[b];if(y.doc!=f){var E=h&&y.sharedHist;a&&!E||(r(y.doc,E),i(y.doc,l,E))}}}i(e,null,!0)}function wf(e,r){if(r.cm)throw new Error("This document is already in use.");e.doc=r,r.cm=e,Zl(e),ud(e),xf(e),e.options.direction=r.direction,e.options.lineWrapping||Hl(e),e.options.mode=r.modeOption,Gt(e)}function xf(e){(e.doc.direction=="rtl"?ne:V)(e.display.lineDiv,"CodeMirror-rtl")}function Xv(e){tr(e,function(){xf(e),Gt(e)})}function Oa(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function fd(e,r){var a={from:Fl(r.from),to:co(r),text:Fo(e,r.from,r.to)};return _f(e,a,r.from.line,r.to.line+1),fo(e,function(i){return _f(i,a,r.from.line,r.to.line+1)},!0),a}function yf(e){for(;e.length;){var r=te(e);if(r.ranges)e.pop();else break}}function Zv(e,r){if(r)return yf(e.done),te(e.done);if(e.done.length&&!te(e.done).ranges)return te(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),te(e.done)}function kf(e,r,a,i){var l=e.history;l.undone.length=0;var f=+new Date,h,b;if((l.lastOp==i||l.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&l.lastModTime>f-(e.cm?e.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(h=Zv(l,l.lastOp==i)))b=te(h.changes),Be(r.from,r.to)==0&&Be(r.from,b.to)==0?b.to=co(r):h.changes.push(fd(e,r));else{var y=te(l.done);for((!y||!y.ranges)&&La(e.sel,l.done),h={changes:[fd(e,r)],generation:l.generation},l.done.push(h);l.done.length>l.undoDepth;)l.done.shift(),l.done[0].ranges||l.done.shift()}l.done.push(a),l.generation=++l.maxGeneration,l.lastModTime=l.lastSelTime=f,l.lastOp=l.lastSelOp=i,l.lastOrigin=l.lastSelOrigin=r.origin,b||ht(e,"historyAdded")}function Qv(e,r,a,i){var l=r.charAt(0);return l=="*"||l=="+"&&a.ranges.length==i.ranges.length&&a.somethingSelected()==i.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Jv(e,r,a,i){var l=e.history,f=i&&i.origin;a==l.lastSelOp||f&&l.lastSelOrigin==f&&(l.lastModTime==l.lastSelTime&&l.lastOrigin==f||Qv(e,f,te(l.done),r))?l.done[l.done.length-1]=r:La(r,l.done),l.lastSelTime=+new Date,l.lastSelOrigin=f,l.lastSelOp=a,i&&i.clearRedo!==!1&&yf(l.undone)}function La(e,r){var a=te(r);a&&a.ranges&&a.equals(e)||r.push(e)}function _f(e,r,a,i){var l=r["spans_"+e.id],f=0;e.iter(Math.max(e.first,a),Math.min(e.first+e.size,i),function(h){h.markedSpans&&((l||(l=r["spans_"+e.id]={}))[f]=h.markedSpans),++f})}function e0(e){if(!e)return null;for(var r,a=0;a<e.length;++a)e[a].marker.explicitlyCleared?r||(r=e.slice(0,a)):r&&r.push(e[a]);return r?r.length?r:null:e}function t0(e,r){var a=r["spans_"+e.id];if(!a)return null;for(var i=[],l=0;l<r.text.length;++l)i.push(e0(a[l]));return i}function Ef(e,r){var a=t0(e,r),i=Rl(e,r);if(!a)return i;if(!i)return a;for(var l=0;l<a.length;++l){var f=a[l],h=i[l];if(f&&h)e:for(var b=0;b<h.length;++b){for(var y=h[b],E=0;E<f.length;++E)if(f[E].marker==y.marker)continue e;f.push(y)}else h&&(a[l]=h)}return a}function _n(e,r,a){for(var i=[],l=0;l<e.length;++l){var f=e[l];if(f.ranges){i.push(a?ar.prototype.deepCopy.call(f):f);continue}var h=f.changes,b=[];i.push({changes:b});for(var y=0;y<h.length;++y){var E=h[y],M=void 0;if(b.push({from:E.from,to:E.to,text:E.text}),r)for(var B in E)(M=B.match(/^spans_(\d+)$/))&&ie(r,Number(M[1]))>-1&&(te(b)[B]=E[B],delete E[B])}}return i}function pd(e,r,a,i){if(i){var l=e.anchor;if(a){var f=Be(r,l)<0;f!=Be(a,l)<0?(l=r,r=a):f!=Be(r,a)<0&&(r=a)}return new Qe(l,r)}else return new Qe(a||r,r)}function Fa(e,r,a,i,l){l==null&&(l=e.cm&&(e.cm.display.shift||e.extend)),Pt(e,new ar([pd(e.sel.primary(),r,a,l)],0),i)}function Df(e,r,a){for(var i=[],l=e.cm&&(e.cm.display.shift||e.extend),f=0;f<e.sel.ranges.length;f++)i[f]=pd(e.sel.ranges[f],r[f],null,l);var h=vr(e.cm,i,e.sel.primIndex);Pt(e,h,a)}function md(e,r,a,i){var l=e.sel.ranges.slice(0);l[r]=a,Pt(e,vr(e.cm,l,e.sel.primIndex),i)}function Cf(e,r,a,i){Pt(e,uo(r,a),i)}function r0(e,r,a){var i={ranges:r.ranges,update:function(l){this.ranges=[];for(var f=0;f<l.length;f++)this.ranges[f]=new Qe(Ie(e,l[f].anchor),Ie(e,l[f].head))},origin:a&&a.origin};return ht(e,"beforeSelectionChange",e,i),e.cm&&ht(e.cm,"beforeSelectionChange",e.cm,i),i.ranges!=r.ranges?vr(e.cm,i.ranges,i.ranges.length-1):r}function Sf(e,r,a){var i=e.history.done,l=te(i);l&&l.ranges?(i[i.length-1]=r,Ma(e,r,a)):Pt(e,r,a)}function Pt(e,r,a){Ma(e,r,a),Jv(e,e.sel,e.cm?e.cm.curOp.id:NaN,a)}function Ma(e,r,a){(cr(e,"beforeSelectionChange")||e.cm&&cr(e.cm,"beforeSelectionChange"))&&(r=r0(e,r,a));var i=a&&a.bias||(Be(r.primary().head,e.sel.primary().head)<0?-1:1);Af(e,Tf(e,r,i,!0)),!(a&&a.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&yn(e.cm)}function Af(e,r){r.equals(e.sel)||(e.sel=r,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,uc(e.cm)),Et(e,"cursorActivity",e))}function Nf(e){Af(e,Tf(e,e.sel,null,!1))}function Tf(e,r,a,i){for(var l,f=0;f<r.ranges.length;f++){var h=r.ranges[f],b=r.ranges.length==e.sel.ranges.length&&e.sel.ranges[f],y=Pa(e,h.anchor,b&&b.anchor,a,i),E=h.head==h.anchor?y:Pa(e,h.head,b&&b.head,a,i);(l||y!=h.anchor||E!=h.head)&&(l||(l=r.ranges.slice(0,f)),l[f]=new Qe(y,E))}return l?vr(e.cm,l,r.primIndex):r}function En(e,r,a,i,l){var f=Se(e,r.line);if(f.markedSpans)for(var h=0;h<f.markedSpans.length;++h){var b=f.markedSpans[h],y=b.marker,E="selectLeft"in y?!y.selectLeft:y.inclusiveLeft,M="selectRight"in y?!y.selectRight:y.inclusiveRight;if((b.from==null||(E?b.from<=r.ch:b.from<r.ch))&&(b.to==null||(M?b.to>=r.ch:b.to>r.ch))){if(l&&(ht(y,"beforeCursorEnter"),y.explicitlyCleared))if(f.markedSpans){--h;continue}else break;if(!y.atomic)continue;if(a){var B=y.find(i<0?1:-1),K=void 0;if((i<0?M:E)&&(B=Of(e,B,-i,B&&B.line==r.line?f:null)),B&&B.line==r.line&&(K=Be(B,a))&&(i<0?K<0:K>0))return En(e,B,r,i,l)}var W=y.find(i<0?-1:1);return(i<0?E:M)&&(W=Of(e,W,i,W.line==r.line?f:null)),W?En(e,W,r,i,l):null}}return r}function Pa(e,r,a,i,l){var f=i||1,h=En(e,r,a,f,l)||!l&&En(e,r,a,f,!0)||En(e,r,a,-f,l)||!l&&En(e,r,a,-f,!0);return h||(e.cantEdit=!0,ae(e.first,0))}function Of(e,r,a,i){return a<0&&r.ch==0?r.line>e.first?Ie(e,ae(r.line-1)):null:a>0&&r.ch==(i||Se(e,r.line)).text.length?r.line<e.first+e.size-1?ae(r.line+1,0):null:new ae(r.line,r.ch+a)}function Lf(e){e.setSelection(ae(e.firstLine(),0),ae(e.lastLine()),$e)}function Ff(e,r,a){var i={canceled:!1,from:r.from,to:r.to,text:r.text,origin:r.origin,cancel:function(){return i.canceled=!0}};return a&&(i.update=function(l,f,h,b){l&&(i.from=Ie(e,l)),f&&(i.to=Ie(e,f)),h&&(i.text=h),b!==void 0&&(i.origin=b)}),ht(e,"beforeChange",e,i),e.cm&&ht(e.cm,"beforeChange",e.cm,i),i.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:i.from,to:i.to,text:i.text,origin:i.origin}}function Dn(e,r,a){if(e.cm){if(!e.cm.curOp)return Dt(e.cm,Dn)(e,r,a);if(e.cm.state.suppressEdits)return}if(!((cr(e,"beforeChange")||e.cm&&cr(e.cm,"beforeChange"))&&(r=Ff(e,r,!0),!r))){var i=_c&&!a&&Jb(e,r.from,r.to);if(i)for(var l=i.length-1;l>=0;--l)Mf(e,{from:i[l].from,to:i[l].to,text:l?[""]:r.text,origin:r.origin});else Mf(e,r)}}function Mf(e,r){if(!(r.text.length==1&&r.text[0]==""&&Be(r.from,r.to)==0)){var a=dd(e,r);kf(e,r,a,e.cm?e.cm.curOp.id:NaN),gi(e,r,a,Rl(e,r));var i=[];fo(e,function(l,f){!f&&ie(i,l.history)==-1&&(Bf(l.history,r),i.push(l.history)),gi(l,r,null,Rl(l,r))})}}function Ra(e,r,a){var i=e.cm&&e.cm.state.suppressEdits;if(!(i&&!a)){for(var l=e.history,f,h=e.sel,b=r=="undo"?l.done:l.undone,y=r=="undo"?l.undone:l.done,E=0;E<b.length&&(f=b[E],!(a?f.ranges&&!f.equals(e.sel):!f.ranges));E++);if(E!=b.length){for(l.lastOrigin=l.lastSelOrigin=null;;)if(f=b.pop(),f.ranges){if(La(f,y),a&&!f.equals(e.sel)){Pt(e,f,{clearRedo:!1});return}h=f}else if(i){b.push(f);return}else break;var M=[];La(h,y),y.push({changes:M,generation:l.generation}),l.generation=f.generation||++l.maxGeneration;for(var B=cr(e,"beforeChange")||e.cm&&cr(e.cm,"beforeChange"),K=function(oe){var de=f.changes[oe];if(de.origin=r,B&&!Ff(e,de,!1))return b.length=0,{};M.push(fd(e,de));var ge=oe?dd(e,de):te(b);gi(e,de,ge,Ef(e,de)),!oe&&e.cm&&e.cm.scrollIntoView({from:de.from,to:co(de)});var we=[];fo(e,function(be,ke){!ke&&ie(we,be.history)==-1&&(Bf(be.history,de),we.push(be.history)),gi(be,de,null,Ef(be,de))})},W=f.changes.length-1;W>=0;--W){var ee=K(W);if(ee)return ee.v}}}}function Pf(e,r){if(r!=0&&(e.first+=r,e.sel=new ar(se(e.sel.ranges,function(l){return new Qe(ae(l.anchor.line+r,l.anchor.ch),ae(l.head.line+r,l.head.ch))}),e.sel.primIndex),e.cm)){Gt(e.cm,e.first,e.first-r,r);for(var a=e.cm.display,i=a.viewFrom;i<a.viewTo;i++)so(e.cm,i,"gutter")}}function gi(e,r,a,i){if(e.cm&&!e.cm.curOp)return Dt(e.cm,gi)(e,r,a,i);if(r.to.line<e.first){Pf(e,r.text.length-1-(r.to.line-r.from.line));return}if(!(r.from.line>e.lastLine())){if(r.from.line<e.first){var l=r.text.length-1-(e.first-r.from.line);Pf(e,l),r={from:ae(e.first,0),to:ae(r.to.line+l,r.to.ch),text:[te(r.text)],origin:r.origin}}var f=e.lastLine();r.to.line>f&&(r={from:r.from,to:ae(f,Se(e,f).text.length),text:[r.text[0]],origin:r.origin}),r.removed=Fo(e,r.from,r.to),a||(a=dd(e,r)),e.cm?o0(e.cm,r,i):cd(e,r,i),Ma(e,a,$e),e.cantEdit&&Pa(e,ae(e.firstLine(),0))&&(e.cantEdit=!1)}}function o0(e,r,a){var i=e.doc,l=e.display,f=r.from,h=r.to,b=!1,y=f.line;e.options.lineWrapping||(y=et(gr(Se(i,f.line))),i.iter(y,h.line+1,function(W){if(W==l.maxLine)return b=!0,!0})),i.sel.contains(r.from,r.to)>-1&&uc(e),cd(i,r,a,Jc(e)),e.options.lineWrapping||(i.iter(y,f.line+r.text.length,function(W){var ee=wa(W);ee>l.maxLineLength&&(l.maxLine=W,l.maxLineLength=ee,l.maxLineChanged=!0,b=!1)}),b&&(e.curOp.updateMaxLine=!0)),qb(i,f.line),pi(e,400);var E=r.text.length-(h.line-f.line)-1;r.full?Gt(e):f.line==h.line&&r.text.length==1&&!vf(e.doc,r)?so(e,f.line,"text"):Gt(e,f.line,h.line+1,E);var M=cr(e,"changes"),B=cr(e,"change");if(B||M){var K={from:f,to:h,text:r.text,removed:r.removed,origin:r.origin};B&&Et(e,"change",e,K),M&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(K)}e.display.selForContextMenu=null}function Cn(e,r,a,i,l){var f;i||(i=a),Be(i,a)<0&&(f=[i,a],a=f[0],i=f[1]),typeof r=="string"&&(r=e.splitLines(r)),Dn(e,{from:a,to:i,text:r,origin:l})}function Rf(e,r,a,i){a<e.line?e.line+=i:r<e.line&&(e.line=r,e.ch=0)}function zf(e,r,a,i){for(var l=0;l<e.length;++l){var f=e[l],h=!0;if(f.ranges){f.copied||(f=e[l]=f.deepCopy(),f.copied=!0);for(var b=0;b<f.ranges.length;b++)Rf(f.ranges[b].anchor,r,a,i),Rf(f.ranges[b].head,r,a,i);continue}for(var y=0;y<f.changes.length;++y){var E=f.changes[y];if(a<E.from.line)E.from=ae(E.from.line+i,E.from.ch),E.to=ae(E.to.line+i,E.to.ch);else if(r<=E.to.line){h=!1;break}}h||(e.splice(0,l+1),l=0)}}function Bf(e,r){var a=r.from.line,i=r.to.line,l=r.text.length-(i-a)-1;zf(e.done,a,i,l),zf(e.undone,a,i,l)}function bi(e,r,a,i){var l=r,f=r;return typeof r=="number"?f=Se(e,mc(e,r)):l=et(r),l==null?null:(i(f,l)&&e.cm&&so(e.cm,l,a),f)}function vi(e){this.lines=e,this.parent=null;for(var r=0,a=0;a<e.length;++a)e[a].parent=this,r+=e[a].height;this.height=r}vi.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,r){for(var a=e,i=e+r;a<i;++a){var l=this.lines[a];this.height-=l.height,nv(l),Et(l,"delete")}this.lines.splice(e,r)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,r,a){this.height+=a,this.lines=this.lines.slice(0,e).concat(r).concat(this.lines.slice(e));for(var i=0;i<r.length;++i)r[i].parent=this},iterN:function(e,r,a){for(var i=e+r;e<i;++e)if(a(this.lines[e]))return!0}};function wi(e){this.children=e;for(var r=0,a=0,i=0;i<e.length;++i){var l=e[i];r+=l.chunkSize(),a+=l.height,l.parent=this}this.size=r,this.height=a,this.parent=null}wi.prototype={chunkSize:function(){return this.size},removeInner:function(e,r){this.size-=r;for(var a=0;a<this.children.length;++a){var i=this.children[a],l=i.chunkSize();if(e<l){var f=Math.min(r,l-e),h=i.height;if(i.removeInner(e,f),this.height-=h-i.height,l==f&&(this.children.splice(a--,1),i.parent=null),(r-=f)==0)break;e=0}else e-=l}if(this.size-r<25&&(this.children.length>1||!(this.children[0]instanceof vi))){var b=[];this.collapse(b),this.children=[new vi(b)],this.children[0].parent=this}},collapse:function(e){for(var r=0;r<this.children.length;++r)this.children[r].collapse(e)},insertInner:function(e,r,a){this.size+=r.length,this.height+=a;for(var i=0;i<this.children.length;++i){var l=this.children[i],f=l.chunkSize();if(e<=f){if(l.insertInner(e,r,a),l.lines&&l.lines.length>50){for(var h=l.lines.length%25+25,b=h;b<l.lines.length;){var y=new vi(l.lines.slice(b,b+=25));l.height-=y.height,this.children.splice(++i,0,y),y.parent=this}l.lines=l.lines.slice(0,h),this.maybeSpill()}break}e-=f}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var r=e.children.splice(e.children.length-5,5),a=new wi(r);if(e.parent){e.size-=a.size,e.height-=a.height;var l=ie(e.parent.children,e);e.parent.children.splice(l+1,0,a)}else{var i=new wi(e.children);i.parent=e,e.children=[i,a],e=i}a.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,r,a){for(var i=0;i<this.children.length;++i){var l=this.children[i],f=l.chunkSize();if(e<f){var h=Math.min(r,f-e);if(l.iterN(e,h,a))return!0;if((r-=h)==0)break;e=0}else e-=f}}};var xi=function(e,r,a){if(a)for(var i in a)a.hasOwnProperty(i)&&(this[i]=a[i]);this.doc=e,this.node=r};xi.prototype.clear=function(){var e=this.doc.cm,r=this.line.widgets,a=this.line,i=et(a);if(!(i==null||!r)){for(var l=0;l<r.length;++l)r[l]==this&&r.splice(l--,1);r.length||(a.widgets=null);var f=ai(this);Dr(a,Math.max(0,a.height-f)),e&&(tr(e,function(){If(e,a,-f),so(e,i,"widget")}),Et(e,"lineWidgetCleared",e,this,i))}},xi.prototype.changed=function(){var e=this,r=this.height,a=this.doc.cm,i=this.line;this.height=null;var l=ai(this)-r;l&&(ao(this.doc,i)||Dr(i,i.height+l),a&&tr(a,function(){a.curOp.forceUpdate=!0,If(a,i,l),Et(a,"lineWidgetChanged",a,e,et(i))}))},fn(xi);function If(e,r,a){jr(r)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&od(e,a)}function n0(e,r,a,i){var l=new xi(e,a,i),f=e.cm;return f&&l.noHScroll&&(f.display.alignWidgets=!0),bi(e,r,"widget",function(h){var b=h.widgets||(h.widgets=[]);if(l.insertAt==null?b.push(l):b.splice(Math.min(b.length,Math.max(0,l.insertAt)),0,l),l.line=h,f&&!ao(e,h)){var y=jr(h)<e.scrollTop;Dr(h,h.height+ai(l)),y&&od(f,l.height),f.curOp.forceUpdate=!0}return!0}),f&&Et(f,"lineWidgetAdded",f,l,typeof r=="number"?r:et(r)),l}var Hf=0,po=function(e,r){this.lines=[],this.type=r,this.doc=e,this.id=++Hf};po.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,r=e&&!e.curOp;if(r&&jo(e),cr(this,"clear")){var a=this.find();a&&Et(this,"clear",a.from,a.to)}for(var i=null,l=null,f=0;f<this.lines.length;++f){var h=this.lines[f],b=oi(h.markedSpans,this);e&&!this.collapsed?so(e,et(h),"text"):e&&(b.to!=null&&(l=et(h)),b.from!=null&&(i=et(h))),h.markedSpans=Yb(h.markedSpans,b),b.from==null&&this.collapsed&&!ao(this.doc,h)&&e&&Dr(h,vn(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var y=0;y<this.lines.length;++y){var E=gr(this.lines[y]),M=wa(E);M>e.display.maxLineLength&&(e.display.maxLine=E,e.display.maxLineLength=M,e.display.maxLineChanged=!0)}i!=null&&e&&this.collapsed&&Gt(e,i,l+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Nf(e.doc)),e&&Et(e,"markerCleared",e,this,i,l),r&&Vo(e),this.parent&&this.parent.clear()}},po.prototype.find=function(e,r){e==null&&this.type=="bookmark"&&(e=1);for(var a,i,l=0;l<this.lines.length;++l){var f=this.lines[l],h=oi(f.markedSpans,this);if(h.from!=null&&(a=ae(r?f:et(f),h.from),e==-1))return a;if(h.to!=null&&(i=ae(r?f:et(f),h.to),e==1))return i}return a&&{from:a,to:i}},po.prototype.changed=function(){var e=this,r=this.find(-1,!0),a=this,i=this.doc.cm;!r||!i||tr(i,function(){var l=r.line,f=et(r.line),h=Ul(i,f);if(h&&(Wc(h),i.curOp.selectionChanged=i.curOp.forceUpdate=!0),i.curOp.updateMaxLine=!0,!ao(a.doc,l)&&a.height!=null){var b=a.height;a.height=null;var y=ai(a)-b;y&&Dr(l,l.height+y)}Et(i,"markerChanged",i,e)})},po.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||ie(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},po.prototype.detachLine=function(e){if(this.lines.splice(ie(this.lines,e),1),!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}},fn(po);function Sn(e,r,a,i,l){if(i&&i.shared)return i0(e,r,a,i,l);if(e.cm&&!e.cm.curOp)return Dt(e.cm,Sn)(e,r,a,i,l);var f=new po(e,l),h=Be(r,a);if(i&&Ge(i,f,!1),h>0||h==0&&f.clearWhenEmpty!==!1)return f;if(f.replacedWith&&(f.collapsed=!0,f.widgetNode=U("span",[f.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||f.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(f.widgetNode.insertLeft=!0)),f.collapsed){if(Nc(e,r.line,r,a,f)||r.line!=a.line&&Nc(e,a.line,r,a,f))throw new Error("Inserting collapsed marker partially overlapping an existing one");Kb()}f.addToHistory&&kf(e,{from:r,to:a,origin:"markText"},e.sel,NaN);var b=r.line,y=e.cm,E;if(e.iter(b,a.line+1,function(B){y&&f.collapsed&&!y.options.lineWrapping&&gr(B)==y.display.maxLine&&(E=!0),f.collapsed&&b!=r.line&&Dr(B,0),Xb(B,new ha(f,b==r.line?r.ch:null,b==a.line?a.ch:null),e.cm&&e.cm.curOp),++b}),f.collapsed&&e.iter(r.line,a.line+1,function(B){ao(e,B)&&Dr(B,0)}),f.clearOnEnter&&Ee(f,"beforeCursorEnter",function(){return f.clear()}),f.readOnly&&(Gb(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),f.collapsed&&(f.id=++Hf,f.atomic=!0),y){if(E&&(y.curOp.updateMaxLine=!0),f.collapsed)Gt(y,r.line,a.line+1);else if(f.className||f.startStyle||f.endStyle||f.css||f.attributes||f.title)for(var M=r.line;M<=a.line;M++)so(y,M,"text");f.atomic&&Nf(y.doc),Et(y,"markerAdded",y,f)}return f}var yi=function(e,r){this.markers=e,this.primary=r;for(var a=0;a<e.length;++a)e[a].parent=this};yi.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Et(this,"clear")}},yi.prototype.find=function(e,r){return this.primary.find(e,r)},fn(yi);function i0(e,r,a,i,l){i=Ge(i),i.shared=!1;var f=[Sn(e,r,a,i,l)],h=f[0],b=i.widgetNode;return fo(e,function(y){b&&(i.widgetNode=b.cloneNode(!0)),f.push(Sn(y,Ie(y,r),Ie(y,a),i,l));for(var E=0;E<y.linked.length;++E)if(y.linked[E].isParent)return;h=te(f)}),new yi(f,h)}function jf(e){return e.findMarks(ae(e.first,0),e.clipPos(ae(e.lastLine())),function(r){return r.parent})}function a0(e,r){for(var a=0;a<r.length;a++){var i=r[a],l=i.find(),f=e.clipPos(l.from),h=e.clipPos(l.to);if(Be(f,h)){var b=Sn(e,f,h,i.primary,i.primary.type);i.markers.push(b),b.parent=i}}}function s0(e){for(var r=function(i){var l=e[i],f=[l.primary.doc];fo(l.primary.doc,function(y){return f.push(y)});for(var h=0;h<l.markers.length;h++){var b=l.markers[h];ie(f,b.doc)==-1&&(b.parent=null,l.markers.splice(h--,1))}},a=0;a<e.length;a++)r(a)}var l0=0,Kt=function(e,r,a,i,l){if(!(this instanceof Kt))return new Kt(e,r,a,i,l);a==null&&(a=0),wi.call(this,[new vi([new hn("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var f=ae(a,0);this.sel=uo(f),this.history=new Oa(null),this.id=++l0,this.modeOption=r,this.lineSep=i,this.direction=l=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),cd(this,{from:f,to:f,text:e}),Pt(this,uo(f),$e)};Kt.prototype=me(wi.prototype,{constructor:Kt,iter:function(e,r,a){a?this.iterN(e-this.first,r-e,a):this.iterN(this.first,this.first+this.size,e)},insert:function(e,r){for(var a=0,i=0;i<r.length;++i)a+=r[i].height;this.insertInner(e-this.first,r,a)},remove:function(e,r){this.removeInner(e-this.first,r)},getValue:function(e){var r=Tl(this,this.first,this.first+this.size);return e===!1?r:r.join(e||this.lineSeparator())},setValue:Ct(function(e){var r=ae(this.first,0),a=this.first+this.size-1;Dn(this,{from:r,to:ae(a,Se(this,a).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&di(this.cm,0,0),Pt(this,uo(r),$e)}),replaceRange:function(e,r,a,i){r=Ie(this,r),a=a?Ie(this,a):r,Cn(this,e,r,a,i)},getRange:function(e,r,a){var i=Fo(this,Ie(this,e),Ie(this,r));return a===!1?i:a===""?i.join(""):i.join(a||this.lineSeparator())},getLine:function(e){var r=this.getLineHandle(e);return r&&r.text},getLineHandle:function(e){if(ti(this,e))return Se(this,e)},getLineNumber:function(e){return et(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Se(this,e)),gr(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Ie(this,e)},getCursor:function(e){var r=this.sel.primary(),a;return e==null||e=="head"?a=r.head:e=="anchor"?a=r.anchor:e=="end"||e=="to"||e===!1?a=r.to():a=r.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ct(function(e,r,a){Cf(this,Ie(this,typeof e=="number"?ae(e,r||0):e),null,a)}),setSelection:Ct(function(e,r,a){Cf(this,Ie(this,e),Ie(this,r||e),a)}),extendSelection:Ct(function(e,r,a){Fa(this,Ie(this,e),r&&Ie(this,r),a)}),extendSelections:Ct(function(e,r){Df(this,hc(this,e),r)}),extendSelectionsBy:Ct(function(e,r){var a=se(this.sel.ranges,e);Df(this,hc(this,a),r)}),setSelections:Ct(function(e,r,a){if(e.length){for(var i=[],l=0;l<e.length;l++)i[l]=new Qe(Ie(this,e[l].anchor),Ie(this,e[l].head||e[l].anchor));r==null&&(r=Math.min(e.length-1,this.sel.primIndex)),Pt(this,vr(this.cm,i,r),a)}}),addSelection:Ct(function(e,r,a){var i=this.sel.ranges.slice(0);i.push(new Qe(Ie(this,e),Ie(this,r||e))),Pt(this,vr(this.cm,i,i.length-1),a)}),getSelection:function(e){for(var r=this.sel.ranges,a,i=0;i<r.length;i++){var l=Fo(this,r[i].from(),r[i].to());a=a?a.concat(l):l}return e===!1?a:a.join(e||this.lineSeparator())},getSelections:function(e){for(var r=[],a=this.sel.ranges,i=0;i<a.length;i++){var l=Fo(this,a[i].from(),a[i].to());e!==!1&&(l=l.join(e||this.lineSeparator())),r[i]=l}return r},replaceSelection:function(e,r,a){for(var i=[],l=0;l<this.sel.ranges.length;l++)i[l]=e;this.replaceSelections(i,r,a||"+input")},replaceSelections:Ct(function(e,r,a){for(var i=[],l=this.sel,f=0;f<l.ranges.length;f++){var h=l.ranges[f];i[f]={from:h.from(),to:h.to(),text:this.splitLines(e[f]),origin:a}}for(var b=r&&r!="end"&&Yv(this,i,r),y=i.length-1;y>=0;y--)Dn(this,i[y]);b?Sf(this,b):this.cm&&yn(this.cm)}),undo:Ct(function(){Ra(this,"undo")}),redo:Ct(function(){Ra(this,"redo")}),undoSelection:Ct(function(){Ra(this,"undo",!0)}),redoSelection:Ct(function(){Ra(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,r=0,a=0,i=0;i<e.done.length;i++)e.done[i].ranges||++r;for(var l=0;l<e.undone.length;l++)e.undone[l].ranges||++a;return{undo:r,redo:a}},clearHistory:function(){var e=this;this.history=new Oa(this.history),fo(this,function(r){return r.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:_n(this.history.done),undone:_n(this.history.undone)}},setHistory:function(e){var r=this.history=new Oa(this.history);r.done=_n(e.done.slice(0),null,!0),r.undone=_n(e.undone.slice(0),null,!0)},setGutterMarker:Ct(function(e,r,a){return bi(this,e,"gutter",function(i){var l=i.gutterMarkers||(i.gutterMarkers={});return l[r]=a,!a&&Oe(l)&&(i.gutterMarkers=null),!0})}),clearGutter:Ct(function(e){var r=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[e]&&bi(r,a,"gutter",function(){return a.gutterMarkers[e]=null,Oe(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(e){var r;if(typeof e=="number"){if(!ti(this,e)||(r=e,e=Se(this,e),!e))return null}else if(r=et(e),r==null)return null;return{line:r,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Ct(function(e,r,a){return bi(this,e,r=="gutter"?"gutter":"class",function(i){var l=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!i[l])i[l]=a;else{if(A(a).test(i[l]))return!1;i[l]+=" "+a}return!0})}),removeLineClass:Ct(function(e,r,a){return bi(this,e,r=="gutter"?"gutter":"class",function(i){var l=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",f=i[l];if(f)if(a==null)i[l]=null;else{var h=f.match(A(a));if(!h)return!1;var b=h.index+h[0].length;i[l]=f.slice(0,h.index)+(!h.index||b==f.length?"":" ")+f.slice(b)||null}else return!1;return!0})}),addLineWidget:Ct(function(e,r,a){return n0(this,e,r,a)}),removeLineWidget:function(e){e.clear()},markText:function(e,r,a){return Sn(this,Ie(this,e),Ie(this,r),a,a&&a.type||"range")},setBookmark:function(e,r){var a={replacedWith:r&&(r.nodeType==null?r.widget:r),insertLeft:r&&r.insertLeft,clearWhenEmpty:!1,shared:r&&r.shared,handleMouseEvents:r&&r.handleMouseEvents};return e=Ie(this,e),Sn(this,e,e,a,"bookmark")},findMarksAt:function(e){e=Ie(this,e);var r=[],a=Se(this,e.line).markedSpans;if(a)for(var i=0;i<a.length;++i){var l=a[i];(l.from==null||l.from<=e.ch)&&(l.to==null||l.to>=e.ch)&&r.push(l.marker.parent||l.marker)}return r},findMarks:function(e,r,a){e=Ie(this,e),r=Ie(this,r);var i=[],l=e.line;return this.iter(e.line,r.line+1,function(f){var h=f.markedSpans;if(h)for(var b=0;b<h.length;b++){var y=h[b];!(y.to!=null&&l==e.line&&e.ch>=y.to||y.from==null&&l!=e.line||y.from!=null&&l==r.line&&y.from>=r.ch)&&(!a||a(y.marker))&&i.push(y.marker.parent||y.marker)}++l}),i},getAllMarks:function(){var e=[];return this.iter(function(r){var a=r.markedSpans;if(a)for(var i=0;i<a.length;++i)a[i].from!=null&&e.push(a[i].marker)}),e},posFromIndex:function(e){var r,a=this.first,i=this.lineSeparator().length;return this.iter(function(l){var f=l.text.length+i;if(f>e)return r=e,!0;e-=f,++a}),Ie(this,ae(a,r))},indexFromPos:function(e){e=Ie(this,e);var r=e.ch;if(e.line<this.first||e.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,e.line,function(i){r+=i.text.length+a}),r},copy:function(e){var r=new Kt(Tl(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return r.scrollTop=this.scrollTop,r.scrollLeft=this.scrollLeft,r.sel=this.sel,r.extend=!1,e&&(r.history.undoDepth=this.history.undoDepth,r.setHistory(this.getHistory())),r},linkedDoc:function(e){e||(e={});var r=this.first,a=this.first+this.size;e.from!=null&&e.from>r&&(r=e.from),e.to!=null&&e.to<a&&(a=e.to);var i=new Kt(Tl(this,r,a),e.mode||this.modeOption,r,this.lineSep,this.direction);return e.sharedHist&&(i.history=this.history),(this.linked||(this.linked=[])).push({doc:i,sharedHist:e.sharedHist}),i.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],a0(i,jf(this)),i},unlinkDoc:function(e){if(e instanceof dt&&(e=e.doc),this.linked)for(var r=0;r<this.linked.length;++r){var a=this.linked[r];if(a.doc==e){this.linked.splice(r,1),e.unlinkDoc(this),s0(jf(this));break}}if(e.history==this.history){var i=[e.id];fo(e,function(l){return i.push(l.id)},!0),e.history=new Oa(null),e.history.done=_n(this.history.done,i),e.history.undone=_n(this.history.undone,i)}},iterLinkedDocs:function(e){fo(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Dl(e)},lineSeparator:function(){return this.lineSep||`
|
|
`},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(/[\x00-\x08\x0e-\x1f]{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","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ur.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ur.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ur.default=p?Ur.macDefault:Ur.pcDefault;function h0(e){var r=e.split(/-(?!$)/);e=r[r.length-1];for(var a,i,l,f,h=0;h<r.length-1;h++){var b=r[h];if(/^(cmd|meta|m)$/i.test(b))f=!0;else if(/^a(lt)?$/i.test(b))a=!0;else if(/^(c|ctrl|control)$/i.test(b))i=!0;else if(/^s(hift)?$/i.test(b))l=!0;else throw new Error("Unrecognized modifier name: "+b)}return a&&(e="Alt-"+e),i&&(e="Ctrl-"+e),f&&(e="Cmd-"+e),l&&(e="Shift-"+e),e}function g0(e){var r={};for(var a in e)if(e.hasOwnProperty(a)){var i=e[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(i=="..."){delete e[a];continue}for(var l=se(a.split(" "),h0),f=0;f<l.length;f++){var h=void 0,b=void 0;f==l.length-1?(b=l.join(" "),h=i):(b=l.slice(0,f+1).join(" "),h="...");var y=r[b];if(!y)r[b]=h;else if(y!=h)throw new Error("Inconsistent bindings for "+b)}delete e[a]}for(var E in r)e[E]=r[E];return e}function An(e,r,a,i){r=Ba(r);var l=r.call?r.call(e,i):r[e];if(l===!1)return"nothing";if(l==="...")return"multi";if(l!=null&&a(l))return"handled";if(r.fallthrough){if(Object.prototype.toString.call(r.fallthrough)!="[object Array]")return An(e,r.fallthrough,a,i);for(var f=0;f<r.fallthrough.length;f++){var h=An(e,r.fallthrough[f],a,i);if(h)return h}}}function qf(e){var r=typeof e=="string"?e:mo[e.keyCode];return r=="Ctrl"||r=="Alt"||r=="Shift"||r=="Mod"}function Gf(e,r,a){var i=e;return r.altKey&&i!="Alt"&&(e="Alt-"+e),(T?r.metaKey:r.ctrlKey)&&i!="Ctrl"&&(e="Ctrl-"+e),(T?r.ctrlKey:r.metaKey)&&i!="Mod"&&(e="Cmd-"+e),!a&&r.shiftKey&&i!="Shift"&&(e="Shift-"+e),e}function Kf(e,r){if(D&&e.keyCode==34&&e.char)return!1;var a=mo[e.keyCode];return a==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(a=e.code),Gf(a,e,r))}function Ba(e){return typeof e=="string"?Ur[e]:e}function Nn(e,r){for(var a=e.doc.sel.ranges,i=[],l=0;l<a.length;l++){for(var f=r(a[l]);i.length&&Be(f.from,te(i).to)<=0;){var h=i.pop();if(Be(h.from,f.from)<0){f.from=h.from;break}}i.push(f)}tr(e,function(){for(var b=i.length-1;b>=0;b--)Cn(e.doc,"",i[b].from,i[b].to,"+delete");yn(e)})}function hd(e,r,a){var i=Ze(e.text,r+a,a);return i<0||i>e.text.length?null:i}function gd(e,r,a){var i=hd(e,r.ch,a);return i==null?null:new ae(r.line,i,a<0?"after":"before")}function bd(e,r,a,i,l){if(e){r.doc.direction=="rtl"&&(l=-l);var f=Wt(a,r.doc.direction);if(f){var h=l<0?te(f):f[0],b=l<0==(h.level==1),y=b?"after":"before",E;if(h.level>0||r.doc.direction=="rtl"){var M=bn(r,a);E=l<0?a.text.length-1:0;var B=Ar(r,M,E).top;E=Je(function(K){return Ar(r,M,K).top==B},l<0==(h.level==1)?h.from:h.to-1,E),y=="before"&&(E=hd(a,E,1))}else E=l<0?h.to:h.from;return new ae(i,E,y)}}return new ae(i,l<0?a.text.length:0,l<0?"before":"after")}function b0(e,r,a,i){var l=Wt(r,e.doc.direction);if(!l)return gd(r,a,i);a.ch>=r.text.length?(a.ch=r.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var f=ur(l,a.ch,a.sticky),h=l[f];if(e.doc.direction=="ltr"&&h.level%2==0&&(i>0?h.to>a.ch:h.from<a.ch))return gd(r,a,i);var b=function(ge,we){return hd(r,ge instanceof ae?ge.ch:ge,we)},y,E=function(ge){return e.options.lineWrapping?(y=y||bn(e,r),Qc(e,r,y,ge)):{begin:0,end:r.text.length}},M=E(a.sticky=="before"?b(a,-1):a.ch);if(e.doc.direction=="rtl"||h.level==1){var B=h.level==1==i<0,K=b(a,B?1:-1);if(K!=null&&(B?K<=h.to&&K<=M.end:K>=h.from&&K>=M.begin)){var W=B?"before":"after";return new ae(a.line,K,W)}}var ee=function(ge,we,be){for(var ke=function(nt,St){return St?new ae(a.line,b(nt,1),"before"):new ae(a.line,nt,"after")};ge>=0&&ge<l.length;ge+=we){var Fe=l[ge],Ae=we>0==(Fe.level!=1),Ue=Ae?be.begin:b(be.end,-1);if(Fe.from<=Ue&&Ue<Fe.to||(Ue=Ae?Fe.from:b(Fe.to,-1),be.begin<=Ue&&Ue<be.end))return ke(Ue,Ae)}},oe=ee(f+i,i,M);if(oe)return oe;var de=i>0?M.end:b(M.begin,-1);return de!=null&&!(i>0&&de==r.text.length)&&(oe=ee(i>0?0:l.length-1,i,E(de)),oe)?oe:null}var Ei={selectAll:Lf,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),$e)},killLine:function(e){return Nn(e,function(r){if(r.empty()){var a=Se(e.doc,r.head.line).text.length;return r.head.ch==a&&r.head.line<e.lastLine()?{from:r.head,to:ae(r.head.line+1,0)}:{from:r.head,to:ae(r.head.line,a)}}else return{from:r.from(),to:r.to()}})},deleteLine:function(e){return Nn(e,function(r){return{from:ae(r.from().line,0),to:Ie(e.doc,ae(r.to().line+1,0))}})},delLineLeft:function(e){return Nn(e,function(r){return{from:ae(r.from().line,0),to:r.from()}})},delWrappedLineLeft:function(e){return Nn(e,function(r){var a=e.charCoords(r.head,"div").top+5,i=e.coordsChar({left:0,top:a},"div");return{from:i,to:r.from()}})},delWrappedLineRight:function(e){return Nn(e,function(r){var a=e.charCoords(r.head,"div").top+5,i=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:a},"div");return{from:r.from(),to:i}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ae(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ae(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(r){return Yf(e,r.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(r){return Xf(e,r.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(r){return v0(e,r.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(r){var a=e.cursorCoords(r.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:a},"div")},F)},goLineLeft:function(e){return e.extendSelectionsBy(function(r){var a=e.cursorCoords(r.head,"div").top+5;return e.coordsChar({left:0,top:a},"div")},F)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(r){var a=e.cursorCoords(r.head,"div").top+5,i=e.coordsChar({left:0,top:a},"div");return i.ch<e.getLine(i.line).search(/\S/)?Xf(e,r.head):i},F)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var r=[],a=e.listSelections(),i=e.options.tabSize,l=0;l<a.length;l++){var f=a[l].from(),h=X(e.getLine(f.line),f.ch,i);r.push(re(i-h%i))}e.replaceSelections(r)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return tr(e,function(){for(var r=e.listSelections(),a=[],i=0;i<r.length;i++)if(r[i].empty()){var l=r[i].head,f=Se(e.doc,l.line).text;if(f){if(l.ch==f.length&&(l=new ae(l.line,l.ch-1)),l.ch>0)l=new ae(l.line,l.ch+1),e.replaceRange(f.charAt(l.ch-1)+f.charAt(l.ch-2),ae(l.line,l.ch-2),l,"+transpose");else if(l.line>e.doc.first){var h=Se(e.doc,l.line-1).text;h&&(l=new ae(l.line,1),e.replaceRange(f.charAt(0)+e.doc.lineSeparator()+h.charAt(h.length-1),ae(l.line-1,h.length-1),l,"+transpose"))}}a.push(new Qe(l,l))}e.setSelections(a)})},newlineAndIndent:function(e){return tr(e,function(){for(var r=e.listSelections(),a=r.length-1;a>=0;a--)e.replaceRange(e.doc.lineSeparator(),r[a].anchor,r[a].head,"+input");r=e.listSelections();for(var i=0;i<r.length;i++)e.indentLine(r[i].from().line,null,!0);yn(e)})},openLine:function(e){return e.replaceSelection(`
|
|
`,"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&&!/\bCodeMirror-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==null){var f=v?a.shiftKey&&a.metaKey:a.altKey;l.unit=f?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(l.extend==null||e.doc.extend)&&(l.extend=e.doc.extend||a.shiftKey),l.addNew==null&&(l.addNew=p?a.metaKey:a.ctrlKey),l.moveOnDrag==null&&(l.moveOnDrag=!(p?a.altKey:a.ctrlKey)),l}function S0(e,r,a,i){c?setTimeout(Ke(rf,e),0):e.curOp.focus=J(fe(e));var l=C0(e,a,i),f=e.doc.sel,h;e.options.dragDrop&&Pb&&!e.isReadOnly()&&a=="single"&&(h=f.contains(r))>-1&&(Be((h=f.ranges[h]).from(),r)<0||r.xRel>0)&&(Be(h.to(),r)>0||r.xRel<0)?A0(e,i,r,l):N0(e,i,r,l)}function A0(e,r,a,i){var l=e.display,f=!1,h=Dt(e,function(E){g&&(l.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:ed(e)),Ht(l.wrapper.ownerDocument,"mouseup",h),Ht(l.wrapper.ownerDocument,"mousemove",b),Ht(l.scroller,"dragstart",y),Ht(l.scroller,"drop",h),f||(qt(E),i.addNew||Fa(e.doc,a,null,null,i.extend),g&&!O||c&&m==9?setTimeout(function(){l.wrapper.ownerDocument.body.focus({preventScroll:!0}),l.input.focus()},20):l.input.focus())}),b=function(E){f=f||Math.abs(r.clientX-E.clientX)+Math.abs(r.clientY-E.clientY)>=10},y=function(){return f=!0};g&&(l.scroller.draggable=!0),e.state.draggingText=h,h.copy=!i.moveOnDrag,Ee(l.wrapper.ownerDocument,"mouseup",h),Ee(l.wrapper.ownerDocument,"mousemove",b),Ee(l.scroller,"dragstart",y),Ee(l.scroller,"drop",h),e.state.delayingBlurEvent=!0,setTimeout(function(){return l.input.focus()},20),l.scroller.dragDrop&&l.scroller.dragDrop()}function op(e,r,a){if(a=="char")return new Qe(r,r);if(a=="word")return e.findWordAt(r);if(a=="line")return new Qe(ae(r.line,0),Ie(e.doc,ae(r.line+1,0)));var i=a(e,r);return new Qe(i.from,i.to)}function N0(e,r,a,i){c&&ed(e);var l=e.display,f=e.doc;qt(r);var h,b,y=f.sel,E=y.ranges;if(i.addNew&&!i.extend?(b=f.sel.contains(a),b>-1?h=E[b]:h=new Qe(a,a)):(h=f.sel.primary(),b=f.sel.primIndex),i.unit=="rectangle")i.addNew||(h=new Qe(a,a)),a=zo(e,r,!0,!0),b=-1;else{var M=op(e,a,i.unit);i.extend?h=pd(h,M.anchor,M.head,i.extend):h=M}i.addNew?b==-1?(b=E.length,Pt(f,vr(e,E.concat([h]),b),{scroll:!1,origin:"*mouse"})):E.length>1&&E[b].empty()&&i.unit=="char"&&!i.extend?(Pt(f,vr(e,E.slice(0,b).concat(E.slice(b+1)),0),{scroll:!1,origin:"*mouse"}),y=f.sel):md(f,b,h,He):(b=0,Pt(f,new ar([h],0),He),y=f.sel);var B=a;function K(be){if(Be(B,be)!=0)if(B=be,i.unit=="rectangle"){for(var ke=[],Fe=e.options.tabSize,Ae=X(Se(f,a.line).text,a.ch,Fe),Ue=X(Se(f,be.line).text,be.ch,Fe),nt=Math.min(Ae,Ue),St=Math.max(Ae,Ue),ft=Math.min(a.line,be.line),rr=Math.min(e.lastLine(),Math.max(a.line,be.line));ft<=rr;ft++){var Yt=Se(f,ft).text,bt=$(Yt,nt,Fe);nt==St?ke.push(new Qe(ae(ft,bt),ae(ft,bt))):Yt.length>bt&&ke.push(new Qe(ae(ft,bt),ae(ft,$(Yt,St,Fe))))}ke.length||ke.push(new Qe(a,a)),Pt(f,vr(e,y.ranges.slice(0,b).concat(ke),b),{origin:"*mouse",scroll:!1}),e.scrollIntoView(be)}else{var Xt=h,Lt=op(e,be,i.unit),yt=Xt.anchor,vt;Be(Lt.anchor,yt)>0?(vt=Lt.head,yt=pa(Xt.from(),Lt.anchor)):(vt=Lt.anchor,yt=fa(Xt.to(),Lt.head));var pt=y.ranges.slice(0);pt[b]=T0(e,new Qe(Ie(f,yt),vt)),Pt(f,vr(e,pt,b),He)}}var W=l.wrapper.getBoundingClientRect(),ee=0;function oe(be){var ke=++ee,Fe=zo(e,be,!0,i.unit=="rectangle");if(Fe)if(Be(Fe,B)!=0){e.curOp.focus=J(fe(e)),K(Fe);var Ae=Sa(l,f);(Fe.line>=Ae.to||Fe.line<Ae.from)&&setTimeout(Dt(e,function(){ee==ke&&oe(be)}),150)}else{var Ue=be.clientY<W.top?-20:be.clientY>W.bottom?20:0;Ue&&setTimeout(Dt(e,function(){ee==ke&&(l.scroller.scrollTop+=Ue,oe(be))}),50)}}function de(be){e.state.selectingText=!1,ee=1/0,be&&(qt(be),l.input.focus()),Ht(l.wrapper.ownerDocument,"mousemove",ge),Ht(l.wrapper.ownerDocument,"mouseup",we),f.history.lastSelOrigin=null}var ge=Dt(e,function(be){be.buttons===0||!fc(be)?de(be):oe(be)}),we=Dt(e,de);e.state.selectingText=we,Ee(l.wrapper.ownerDocument,"mousemove",ge),Ee(l.wrapper.ownerDocument,"mouseup",we)}function T0(e,r){var a=r.anchor,i=r.head,l=Se(e.doc,a.line);if(Be(a,i)==0&&a.sticky==i.sticky)return r;var f=Wt(l);if(!f)return r;var h=ur(f,a.ch,a.sticky),b=f[h];if(b.from!=a.ch&&b.to!=a.ch)return r;var y=h+(b.from==a.ch==(b.level!=1)?0:1);if(y==0||y==f.length)return r;var E;if(i.line!=a.line)E=(i.line-a.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var M=ur(f,i.ch,i.sticky),B=M-h||(i.ch-a.ch)*(b.level==1?-1:1);M==y-1||M==y?E=B<0:E=B>0}var K=f[y+(E?-1:0)],W=E==(K.level==1),ee=W?K.from:K.to,oe=W?"after":"before";return a.ch==ee&&a.sticky==oe?r:new Qe(new ae(a.line,ee,oe),i)}function np(e,r,a,i){var l,f;if(r.touches)l=r.touches[0].clientX,f=r.touches[0].clientY;else try{l=r.clientX,f=r.clientY}catch{return!1}if(l>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;i&&qt(r);var h=e.display,b=h.lineDiv.getBoundingClientRect();if(f>b.bottom||!cr(e,a))return yl(r);f-=b.top-h.viewOffset;for(var y=0;y<e.display.gutterSpecs.length;++y){var E=h.gutters.childNodes[y];if(E&&E.getBoundingClientRect().right>=l){var M=Mo(e.doc,f),B=e.display.gutterSpecs[y];return ht(e,a,e,M,B.className,r),yl(r)}}}function xd(e,r){return np(e,r,"gutterClick",!0)}function ip(e,r){Vr(e.display,r)||O0(e,r)||_t(e,r,"contextmenu")||z||e.display.input.onContextMenu(r)}function O0(e,r){return cr(e,"gutterContextMenu")?np(e,r,"gutterContextMenu",!1):!1}function ap(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),si(e)}var Tn={toString:function(){return"CodeMirror.Init"}},sp={},Ha={};function L0(e){var r=e.optionHandlers;function a(i,l,f,h){e.defaults[i]=l,f&&(r[i]=h?function(b,y,E){E!=Tn&&f(b,y,E)}:f)}e.defineOption=a,e.Init=Tn,a("value","",function(i,l){return i.setValue(l)},!0),a("mode",null,function(i,l){i.doc.modeOption=l,ud(i)},!0),a("indentUnit",2,ud,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(i){hi(i),si(i),Gt(i)},!0),a("lineSeparator",null,function(i,l){if(i.doc.lineSep=l,!!l){var f=[],h=i.doc.first;i.doc.iter(function(y){for(var E=0;;){var M=y.text.indexOf(l,E);if(M==-1)break;E=M+l.length,f.push(ae(h,M))}h++});for(var b=f.length-1;b>=0;b--)Cn(i.doc,l,f[b],ae(f[b].line,f[b].ch+l.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(i,l,f){i.state.specialChars=new RegExp(l.source+(l.test(" ")?"":"| "),"g"),f!=Tn&&i.refresh()}),a("specialCharPlaceholder",sv,function(i){return i.refresh()},!0),a("electricChars",!0),a("inputStyle",Y?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(i,l){return i.getInputField().spellcheck=l},!0),a("autocorrect",!1,function(i,l){return i.getInputField().autocorrect=l},!0),a("autocapitalize",!1,function(i,l){return i.getInputField().autocapitalize=l},!0),a("rtlMoveVisually",!w),a("wholeLineUpdateBefore",!0),a("theme","default",function(i){ap(i),mi(i)},!0),a("keyMap","default",function(i,l,f){var h=Ba(l),b=f!=Tn&&Ba(f);b&&b.detach&&b.detach(i,h),h.attach&&h.attach(i,b||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,M0,!0),a("gutters",[],function(i,l){i.display.gutterSpecs=ld(l,i.options.lineNumbers),mi(i)},!0),a("fixedGutter",!0,function(i,l){i.display.gutters.style.left=l?Xl(i.display)+"px":"0",i.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(i){return kn(i)},!0),a("scrollbarStyle","native",function(i){df(i),kn(i),i.display.scrollbars.setScrollTop(i.doc.scrollTop),i.display.scrollbars.setScrollLeft(i.doc.scrollLeft)},!0),a("lineNumbers",!1,function(i,l){i.display.gutterSpecs=ld(i.options.gutters,l),mi(i)},!0),a("firstLineNumber",1,mi,!0),a("lineNumberFormatter",function(i){return i},mi,!0),a("showCursorWhenSelecting",!1,li,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(i,l){l=="nocursor"&&(xn(i),i.display.input.blur()),i.display.input.readOnlyChanged(l)}),a("screenReaderLabel",null,function(i,l){l=l===""?null:l,i.display.input.screenReaderLabelChanged(l)}),a("disableInput",!1,function(i,l){l||i.display.input.reset()},!0),a("dragDrop",!0,F0),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,li,!0),a("singleCursorHeightPerLine",!0,li,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,hi,!0),a("addModeClass",!1,hi,!0),a("pollInterval",100),a("undoDepth",200,function(i,l){return i.doc.history.undoDepth=l}),a("historyEventDelay",1250),a("viewportMargin",10,function(i){return i.refresh()},!0),a("maxHighlightLength",1e4,hi,!0),a("moveInputWithCursor",!0,function(i,l){l||i.display.input.resetPosition()}),a("tabindex",null,function(i,l){return i.display.input.getField().tabIndex=l||""}),a("autofocus",null),a("direction","ltr",function(i,l){return i.doc.setDirection(l)},!0),a("phrases",null)}function F0(e,r,a){var i=a&&a!=Tn;if(!r!=!i){var l=e.display.dragFunctions,f=r?Ee:Ht;f(e.display.scroller,"dragstart",l.start),f(e.display.scroller,"dragenter",l.enter),f(e.display.scroller,"dragover",l.over),f(e.display.scroller,"dragleave",l.leave),f(e.display.scroller,"drop",l.drop)}}function M0(e){e.options.lineWrapping?(ne(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(V(e.display.wrapper,"CodeMirror-wrap"),Hl(e)),Zl(e),Gt(e),si(e),setTimeout(function(){return kn(e)},100)}function dt(e,r){var a=this;if(!(this instanceof dt))return new dt(e,r);this.options=r=r?Ge(r):{},Ge(sp,r,!1);var i=r.value;typeof i=="string"?i=new Kt(i,r.mode,null,r.lineSeparator,r.direction):r.mode&&(i.modeOption=r.mode),this.doc=i;var l=new dt.inputStyles[r.inputStyle](this),f=this.display=new Gv(e,i,l,r);f.wrapper.CodeMirror=this,ap(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),df(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ce,keySeq:null,specialChars:null},r.autofocus&&!Y&&f.input.focus(),c&&m<11&&setTimeout(function(){return a.display.input.reset(!0)},20),P0(this),f0(),jo(this),this.curOp.forceUpdate=!0,wf(this,i),r.autofocus&&!Y||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&td(a)},20):xn(this);for(var h in Ha)Ha.hasOwnProperty(h)&&Ha[h](this,r[h],Tn);ff(this),r.finishInit&&r.finishInit(this);for(var b=0;b<yd.length;++b)yd[b](this);Vo(this),g&&r.lineWrapping&&getComputedStyle(f.lineDiv).textRendering=="optimizelegibility"&&(f.lineDiv.style.textRendering="auto")}dt.defaults=sp,dt.optionHandlers=Ha;function P0(e){var r=e.display;Ee(r.scroller,"mousedown",Dt(e,rp)),c&&m<11?Ee(r.scroller,"dblclick",Dt(e,function(y){if(!_t(e,y)){var E=zo(e,y);if(!(!E||xd(e,y)||Vr(e.display,y))){qt(y);var M=e.findWordAt(E);Fa(e.doc,M.anchor,M.head)}}})):Ee(r.scroller,"dblclick",function(y){return _t(e,y)||qt(y)}),Ee(r.scroller,"contextmenu",function(y){return ip(e,y)}),Ee(r.input.getField(),"contextmenu",function(y){r.scroller.contains(y.target)||ip(e,y)});var a,i={end:0};function l(){r.activeTouch&&(a=setTimeout(function(){return r.activeTouch=null},1e3),i=r.activeTouch,i.end=+new Date)}function f(y){if(y.touches.length!=1)return!1;var E=y.touches[0];return E.radiusX<=1&&E.radiusY<=1}function h(y,E){if(E.left==null)return!0;var M=E.left-y.left,B=E.top-y.top;return M*M+B*B>20*20}Ee(r.scroller,"touchstart",function(y){if(!_t(e,y)&&!f(y)&&!xd(e,y)){r.input.ensurePolled(),clearTimeout(a);var E=+new Date;r.activeTouch={start:E,moved:!1,prev:E-i.end<=300?i:null},y.touches.length==1&&(r.activeTouch.left=y.touches[0].pageX,r.activeTouch.top=y.touches[0].pageY)}}),Ee(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),Ee(r.scroller,"touchend",function(y){var E=r.activeTouch;if(E&&!Vr(r,y)&&E.left!=null&&!E.moved&&new Date-E.start<300){var M=e.coordsChar(r.activeTouch,"page"),B;!E.prev||h(E,E.prev)?B=new Qe(M,M):!E.prev.prev||h(E,E.prev.prev)?B=e.findWordAt(M):B=new Qe(ae(M.line,0),Ie(e.doc,ae(M.line+1,0))),e.setSelection(B.anchor,B.head),e.focus(),qt(y)}l()}),Ee(r.scroller,"touchcancel",l),Ee(r.scroller,"scroll",function(){r.scroller.clientHeight&&(ui(e,r.scroller.scrollTop),Io(e,r.scroller.scrollLeft,!0),ht(e,"scroll",e))}),Ee(r.scroller,"mousewheel",function(y){return hf(e,y)}),Ee(r.scroller,"DOMMouseScroll",function(y){return hf(e,y)}),Ee(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(y){_t(e,y)||ei(y)},over:function(y){_t(e,y)||(c0(e,y),ei(y))},start:function(y){return u0(e,y)},drop:Dt(e,d0),leave:function(y){_t(e,y)||$f(e)}};var b=r.input.getField();Ee(b,"keyup",function(y){return ep.call(e,y)}),Ee(b,"keydown",Dt(e,Jf)),Ee(b,"keypress",Dt(e,tp)),Ee(b,"focus",function(y){return td(e,y)}),Ee(b,"blur",function(y){return xn(e,y)})}var yd=[];dt.defineInitHook=function(e){return yd.push(e)};function Ai(e,r,a,i){var l=e.doc,f;a==null&&(a="add"),a=="smart"&&(l.mode.indent?f=ri(e,r).state:a="prev");var h=e.options.tabSize,b=Se(l,r),y=X(b.text,null,h);b.stateAfter&&(b.stateAfter=null);var E=b.text.match(/^\s*/)[0],M;if(!i&&!/\S/.test(b.text))M=0,a="not";else if(a=="smart"&&(M=l.mode.indent(f,b.text.slice(E.length),b.text),M==Ce||M>150)){if(!i)return;a="prev"}a=="prev"?r>l.first?M=X(Se(l,r-1).text,null,h):M=0:a=="add"?M=y+e.options.indentUnit:a=="subtract"?M=y-e.options.indentUnit:typeof a=="number"&&(M=y+a),M=Math.max(0,M);var B="",K=0;if(e.options.indentWithTabs)for(var W=Math.floor(M/h);W;--W)K+=h,B+=" ";if(K<M&&(B+=re(M-K)),B!=E)return Cn(l,B,ae(r,0),ae(r,E.length),"+input"),b.stateAfter=null,!0;for(var ee=0;ee<l.sel.ranges.length;ee++){var oe=l.sel.ranges[ee];if(oe.head.line==r&&oe.head.ch<E.length){var de=ae(r,E.length);md(l,ee,new Qe(de,de));break}}}var wr=null;function ja(e){wr=e}function kd(e,r,a,i,l){var f=e.doc;e.display.shift=!1,i||(i=f.sel);var h=+new Date-200,b=l=="paste"||e.state.pasteIncoming>h,y=Dl(r),E=null;if(b&&i.ranges.length>1)if(wr&&wr.text.join(`
|
|
`)==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[b[l]]&&f.push(h[b[l]]);else if(b[l])for(var y=0;y<b[l].length;y++){var E=h[b[l][y]];E&&f.push(E)}else b.helperType&&h[b.helperType]?f.push(h[b.helperType]):h[b.name]&&f.push(h[b.name]);for(var M=0;M<h._global.length;M++){var B=h._global[M];B.pred(b,this)&&ie(f,B.val)==-1&&f.push(B.val)}return f},getStateAfter:function(i,l){var f=this.doc;return i=mc(f,i??f.first+f.size-1),ri(this,i+1,l).state},cursorCoords:function(i,l){var f,h=this.doc.sel.primary();return i==null?f=h.head:typeof i=="object"?f=Ie(this.doc,i):f=i?h.from():h.to(),br(this,f,l||"page")},charCoords:function(i,l){return _a(this,Ie(this.doc,i),l||"page")},coordsChar:function(i,l){return i=Yc(this,i,l||"page"),Gl(this,i.left,i.top)},lineAtHeight:function(i,l){return i=Yc(this,{top:i,left:0},l||"page").top,Mo(this.doc,i+this.display.viewOffset)},heightAtLine:function(i,l,f){var h=!1,b;if(typeof i=="number"){var y=this.doc.first+this.doc.size-1;i<this.doc.first?i=this.doc.first:i>y&&(i=y,h=!0),b=Se(this.doc,i)}else b=i;return ka(this,b,{top:0,left:0},l||"page",f||h).top+(h?this.doc.height-jr(b):0)},defaultTextHeight:function(){return vn(this.display)},defaultCharWidth:function(){return wn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(i,l,f,h,b){var y=this.display;i=br(this,Ie(this.doc,i));var E=i.bottom,M=i.left;if(l.style.position="absolute",l.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(l),y.sizer.appendChild(l),h=="over")E=i.top;else if(h=="above"||h=="near"){var B=Math.max(y.wrapper.clientHeight,this.doc.height),K=Math.max(y.sizer.clientWidth,y.lineSpace.clientWidth);(h=="above"||i.bottom+l.offsetHeight>B)&&i.top>l.offsetHeight?E=i.top-l.offsetHeight:i.bottom+l.offsetHeight<=B&&(E=i.bottom),M+l.offsetWidth>K&&(M=K-l.offsetWidth)}l.style.top=E+"px",l.style.left=l.style.right="",b=="right"?(M=y.sizer.clientWidth-l.offsetWidth,l.style.right="0px"):(b=="left"?M=0:b=="middle"&&(M=(y.sizer.clientWidth-l.offsetWidth)/2),l.style.left=M+"px"),f&&Fv(this,{left:M,top:E,right:M+l.offsetWidth,bottom:E+l.offsetHeight})},triggerOnKeyDown:jt(Jf),triggerOnKeyPress:jt(tp),triggerOnKeyUp:ep,triggerOnMouseDown:jt(rp),execCommand:function(i){if(Ei.hasOwnProperty(i))return Ei[i].call(null,this)},triggerElectric:jt(function(i){dp(this,i)}),findPosH:function(i,l,f,h){var b=1;l<0&&(b=-1,l=-l);for(var y=Ie(this.doc,i),E=0;E<l&&(y=Ed(this.doc,y,b,f,h),!y.hitSide);++E);return y},moveH:jt(function(i,l){var f=this;this.extendSelectionsBy(function(h){return f.display.shift||f.doc.extend||h.empty()?Ed(f.doc,h.head,i,l,f.options.rtlMoveVisually):i<0?h.from():h.to()},F)}),deleteH:jt(function(i,l){var f=this.doc.sel,h=this.doc;f.somethingSelected()?h.replaceSelection("",null,"+delete"):Nn(this,function(b){var y=Ed(h,b.head,i,l,!1);return i<0?{from:y,to:b.head}:{from:b.head,to:y}})}),findPosV:function(i,l,f,h){var b=1,y=h;l<0&&(b=-1,l=-l);for(var E=Ie(this.doc,i),M=0;M<l;++M){var B=br(this,E,"div");if(y==null?y=B.left:B.left=y,E=fp(this,B,b,f),E.hitSide)break}return E},moveV:jt(function(i,l){var f=this,h=this.doc,b=[],y=!this.display.shift&&!h.extend&&h.sel.somethingSelected();if(h.extendSelectionsBy(function(M){if(y)return i<0?M.from():M.to();var B=br(f,M.head,"div");M.goalColumn!=null&&(B.left=M.goalColumn),b.push(B.left);var K=fp(f,B,i,l);return l=="page"&&M==h.sel.primary()&&od(f,_a(f,K,"div").top-B.top),K},F),b.length)for(var E=0;E<h.sel.ranges.length;E++)h.sel.ranges[E].goalColumn=b[E]}),findWordAt:function(i){var l=this.doc,f=Se(l,i.line).text,h=i.ch,b=i.ch;if(f){var y=this.getHelper(i,"wordChars");(i.sticky=="before"||b==f.length)&&h?--h:++b;for(var E=f.charAt(h),M=Te(E,y)?function(B){return Te(B,y)}:/\s/.test(E)?function(B){return/\s/.test(B)}:function(B){return!/\s/.test(B)&&!Te(B)};h>0&&M(f.charAt(h-1));)--h;for(;b<f.length&&M(f.charAt(b));)++b}return new Qe(ae(i.line,h),ae(i.line,b))},toggleOverwrite:function(i){i!=null&&i==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ne(this.display.cursorDiv,"CodeMirror-overwrite"):V(this.display.cursorDiv,"CodeMirror-overwrite"),ht(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==J(fe(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:jt(function(i,l){di(this,i,l)}),getScrollInfo:function(){var i=this.display.scroller;return{left:i.scrollLeft,top:i.scrollTop,height:i.scrollHeight-Sr(this)-this.display.barHeight,width:i.scrollWidth-Sr(this)-this.display.barWidth,clientHeight:$l(this),clientWidth:Po(this)}},scrollIntoView:jt(function(i,l){i==null?(i={from:this.doc.sel.primary().head,to:null},l==null&&(l=this.options.cursorScrollMargin)):typeof i=="number"?i={from:ae(i,0),to:null}:i.from==null&&(i={from:i,to:null}),i.to||(i.to=i.from),i.margin=l||0,i.from.line!=null?Mv(this,i):nf(this,i.from,i.to,i.margin)}),setSize:jt(function(i,l){var f=this,h=function(y){return typeof y=="number"||/^\d+$/.test(String(y))?y+"px":y};i!=null&&(this.display.wrapper.style.width=h(i)),l!=null&&(this.display.wrapper.style.height=h(l)),this.options.lineWrapping&&qc(this);var b=this.display.viewFrom;this.doc.iter(b,this.display.viewTo,function(y){if(y.widgets){for(var E=0;E<y.widgets.length;E++)if(y.widgets[E].noHScroll){so(f,b,"widget");break}}++b}),this.curOp.forceUpdate=!0,ht(this,"refresh",this)}),operation:function(i){return tr(this,i)},startOperation:function(){return jo(this)},endOperation:function(){return Vo(this)},refresh:jt(function(){var i=this.display.cachedTextHeight;Gt(this),this.curOp.forceUpdate=!0,si(this),di(this,this.doc.scrollLeft,this.doc.scrollTop),ad(this.display),(i==null||Math.abs(i-vn(this.display))>.5||this.options.lineWrapping)&&Zl(this),ht(this,"refresh",this)}),swapDoc:jt(function(i){var l=this.doc;return l.cm=null,this.state.selectingText&&this.state.selectingText(),wf(this,i),si(this),this.display.input.reset(),di(this,i.scrollLeft,i.scrollTop),this.curOp.forceScroll=!0,Et(this,"swapDoc",this,l),l}),phrase:function(i){var l=this.options.phrases;return l&&Object.prototype.hasOwnProperty.call(l,i)?l[i]:i},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},fn(e),e.registerHelper=function(i,l,f){a.hasOwnProperty(i)||(a[i]=e[i]={_global:[]}),a[i][l]=f},e.registerGlobalHelper=function(i,l,f,h){e.registerHelper(i,l,h),a[i]._global.push({pred:f,val:h})}}function Ed(e,r,a,i,l){var f=r,h=a,b=Se(e,r.line),y=l&&e.direction=="rtl"?-a:a;function E(){var we=r.line+y;return we<e.first||we>=e.first+e.size?!1:(r=new ae(we,r.ch,r.sticky),b=Se(e,we))}function M(we){var be;if(i=="codepoint"){var ke=b.text.charCodeAt(r.ch+(a>0?0:-1));if(isNaN(ke))be=null;else{var Fe=a>0?ke>=55296&&ke<56320:ke>=56320&&ke<57343;be=new ae(r.line,Math.max(0,Math.min(b.text.length,r.ch+a*(Fe?2:1))),-a)}}else l?be=b0(e.cm,b,r,a):be=gd(b,r,a);if(be==null)if(!we&&E())r=bd(l,e.cm,b,r.line,y);else return!1;else r=be;return!0}if(i=="char"||i=="codepoint")M();else if(i=="column")M(!0);else if(i=="word"||i=="group")for(var B=null,K=i=="group",W=e.cm&&e.cm.getHelper(r,"wordChars"),ee=!0;!(a<0&&!M(!ee));ee=!1){var oe=b.text.charAt(r.ch)||`
|
|
`,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(/\bCodeMirror-(?: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).text.length&&l.line<e.lastLine()&&(l=ae(l.line+1,0)),i.line<r.viewFrom||l.line>r.viewTo-1)return!1;var f,h,b;i.line==r.viewFrom||(f=Bo(e,i.line))==0?(h=et(r.view[0].line),b=r.view[0].node):(h=et(r.view[f].line),b=r.view[f-1].node.nextSibling);var y=Bo(e,l.line),E,M;if(y==r.view.length-1?(E=r.viewTo-1,M=r.lineDiv.lastChild):(E=et(r.view[y+1].line)-1,M=r.view[y+1].node.previousSibling),!b)return!1;for(var B=e.doc.splitLines(B0(e,b,M,h,E)),K=Fo(e.doc,ae(h,0),ae(E,Se(e.doc,E).text.length));B.length>1&&K.length>1;)if(te(B)==te(K))B.pop(),K.pop(),E--;else if(B[0]==K[0])B.shift(),K.shift(),h++;else break;for(var W=0,ee=0,oe=B[0],de=K[0],ge=Math.min(oe.length,de.length);W<ge&&oe.charCodeAt(W)==de.charCodeAt(W);)++W;for(var we=te(B),be=te(K),ke=Math.min(we.length-(B.length==1?W:0),be.length-(K.length==1?W:0));ee<ke&&we.charCodeAt(we.length-ee-1)==be.charCodeAt(be.length-ee-1);)++ee;if(B.length==1&&K.length==1&&h==i.line)for(;W&&W>i.ch&&we.charCodeAt(we.length-ee-1)==be.charCodeAt(be.length-ee-1);)W--,ee++;B[B.length-1]=we.slice(0,we.length-ee).replace(/^\u200b+/,""),B[0]=B[0].slice(W).replace(/\u200b+$/,"");var Fe=ae(h,W),Ae=ae(E,K.length?te(K).length-ee:0);if(B.length>1||B[0]||Be(Fe,Ae))return Cn(e.doc,B,Fe,Ae,"+input"),!0},tt.prototype.ensurePolled=function(){this.forceCompositionEnd()},tt.prototype.reset=function(){this.forceCompositionEnd()},tt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},tt.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},tt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&tr(this.cm,function(){return Gt(e.cm)})},tt.prototype.setUneditable=function(e){e.contentEditable="false"},tt.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Dt(this.cm,kd)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},tt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},tt.prototype.onContextMenu=function(){},tt.prototype.resetPosition=function(){},tt.prototype.needsContentAttribute=!0;function pp(e,r){var a=Ul(e,r.line);if(!a||a.hidden)return null;var i=Se(e.doc,r.line),l=jc(a,i,r.line),f=Wt(i,e.doc.direction),h="left";if(f){var b=ur(f,r.ch);h=b%2?"right":"left"}var y=Uc(l.map,r.ch,h);return y.offset=y.collapse=="right"?y.end:y.start,y}function z0(e){for(var r=e;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function On(e,r){return r&&(e.bad=!0),e}function B0(e,r,a,i,l){var f="",h=!1,b=e.doc.lineSeparator(),y=!1;function E(W){return function(ee){return ee.id==W}}function M(){h&&(f+=b,y&&(f+=b),h=y=!1)}function B(W){W&&(M(),f+=W)}function K(W){if(W.nodeType==1){var ee=W.getAttribute("cm-text");if(ee){B(ee);return}var oe=W.getAttribute("cm-marker"),de;if(oe){var ge=e.findMarks(ae(i,0),ae(l+1,0),E(+oe));ge.length&&(de=ge[0].find(0))&&B(Fo(e.doc,de.from,de.to).join(b));return}if(W.getAttribute("contenteditable")=="false")return;var we=/^(pre|div|p|li|table|br)$/i.test(W.nodeName);if(!/^br$/i.test(W.nodeName)&&W.textContent.length==0)return;we&&M();for(var be=0;be<W.childNodes.length;be++)K(W.childNodes[be]);/^(pre|p)$/i.test(W.nodeName)&&(y=!0),we&&(h=!0)}else W.nodeType==3&&B(W.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;K(r),r!=a;)r=r.nextSibling,y=!1;return f}function Va(e,r,a){var i;if(r==e.display.lineDiv){if(i=e.display.lineDiv.childNodes[a],!i)return On(e.clipPos(ae(e.display.viewTo-1)),!0);r=null,a=0}else for(i=r;;i=i.parentNode){if(!i||i==e.display.lineDiv)return null;if(i.parentNode&&i.parentNode==e.display.lineDiv)break}for(var l=0;l<e.display.view.length;l++){var f=e.display.view[l];if(f.node==i)return I0(f,r,a)}}function I0(e,r,a){var i=e.text.firstChild,l=!1;if(!r||!G(i,r))return On(ae(et(e.line),0),!0);if(r==i&&(l=!0,r=i.childNodes[a],a=0,!r)){var f=e.rest?te(e.rest):e.line;return On(ae(et(f),f.text.length),l)}var h=r.nodeType==3?r:null,b=r;for(!h&&r.childNodes.length==1&&r.firstChild.nodeType==3&&(h=r.firstChild,a&&(a=h.nodeValue.length));b.parentNode!=i;)b=b.parentNode;var y=e.measure,E=y.maps;function M(de,ge,we){for(var be=-1;be<(E?E.length:0);be++)for(var ke=be<0?y.map:E[be],Fe=0;Fe<ke.length;Fe+=3){var Ae=ke[Fe+2];if(Ae==de||Ae==ge){var Ue=et(be<0?e.line:e.rest[be]),nt=ke[Fe]+we;return(we<0||Ae!=de)&&(nt=ke[Fe+(we?1:0)]),ae(Ue,nt)}}}var B=M(h,b,a);if(B)return On(B,l);for(var K=b.nextSibling,W=h?h.nodeValue.length-a:0;K;K=K.nextSibling){if(B=M(K,K.firstChild,0),B)return On(ae(B.line,B.ch-W),l);W+=K.textContent.length}for(var ee=b.previousSibling,oe=a;ee;ee=ee.previousSibling){if(B=M(ee,ee.firstChild,-1),B)return On(ae(B.line,B.ch+oe),l);oe+=ee.textContent.length}}var mt=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ce,this.hasSelection=!1,this.composing=null,this.resetting=!1};mt.prototype.init=function(e){var r=this,a=this,i=this.cm;this.createField(e);var l=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),R&&(l.style.width="0px"),Ee(l,"input",function(){c&&m>=9&&r.hasSelection&&(r.hasSelection=null),a.poll()}),Ee(l,"paste",function(h){_t(i,h)||lp(h,i)||(i.state.pasteIncoming=+new Date,a.fastPoll())});function f(h){if(!_t(i,h)){if(i.somethingSelected())ja({lineWise:!1,text:i.getSelections()});else if(i.options.lineWiseCopyCut){var b=up(i);ja({lineWise:!0,text:b.text}),h.type=="cut"?i.setSelections(b.ranges,null,$e):(a.prevInput="",l.value=b.text.join(`
|
|
`),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&&/[\uf700-\uf7ff]/.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="\u200B"),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: 30px; height: 30px;
|
|
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="\u200B"+(oe?l.value:"");l.value="\u21DA",l.value=de,r.prevInput=oe?"":"\u200B",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=="\u200B"?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<c.length;g++){var k=c[g].head,x=u.getStateAfter(k.line),_=t.innerMode(u.getMode(),x);if(_.mode.name!=="markdown"&&_.mode.helperType!=="markdown"){u.execCommand("newlineAndIndent");return}else x=_.state;var D=x.list!==!1,O=x.quote!==0,H=u.getLine(k.line),I=o.exec(H),R=/^\s*$/.test(H.slice(0,k.ch));if(!c[g].empty()||!D&&!O||!I||R){u.execCommand("newlineAndIndent");return}if(n.test(H)){var j=O&&/>\s*$/.test(H),Y=!/>\s*$/.test(H);(j||Y)&&u.replaceRange("",{line:k.line,ch:0},{line:k.line,ch:k.ch+1}),m[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);return G?G+" tag error":"tag error"}else return/[\'\"]/.test(N)?(U.tokenize=O(N),U.stringStartCol=L.column(),U.tokenize(L,U)):(L.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function O(L){var U=function(N,G){for(;!N.eol();)if(N.next()==L){G.tokenize=D;break}return"string"};return U.isInAttribute=!0,U}function H(L,U){return function(N,G){for(;!N.eol();){if(N.match(U)){G.tokenize=_;break}N.next()}return L}}function I(L){return function(U,N){for(var G;(G=U.next())!=null;){if(G=="<")return N.tokenize=I(L+1),N.tokenize(U,N);if(G==">")if(L==1){N.tokenize=_;break}else return N.tokenize=I(L-1),N.tokenize(U,N)}return"meta"}}function R(L){return L&&L.toLowerCase()}function j(L,U,N){this.prev=L.context,this.tagName=U||"",this.indent=L.indented,this.startOfLine=N,(c.doNotIndent.hasOwnProperty(U)||L.context&&L.context.noIndent)&&(this.noIndent=!0)}function Y(L){L.context&&(L.context=L.context.prev)}function p(L,U){for(var N;;){if(!L.context||(N=L.context.tagName,!c.contextGrabbers.hasOwnProperty(R(N))||!c.contextGrabbers[R(N)].hasOwnProperty(R(U))))return;Y(L)}}function v(L,U,N){return L=="openTag"?(N.tagStart=U.column(),w):L=="closeTag"?C:v}function w(L,U,N){return L=="word"?(N.tagName=U.current(),x="tag",A):c.allowMissingTagName&&L=="endTag"?(x="tag bracket",A(L,U,N)):(x="error",w)}function C(L,U,N){if(L=="word"){var G=U.current();return N.context&&N.context.tagName!=G&&c.implicitlyClosed.hasOwnProperty(R(N.context.tagName))&&Y(N),N.context&&N.context.tagName==G||c.matchClosing===!1?(x="tag",T):(x="tag error",z)}else return c.allowMissingTagName&&L=="endTag"?(x="tag bracket",T(L,U,N)):(x="error",z)}function T(L,U,N){return L!="endTag"?(x="error",T):(Y(N),v)}function z(L,U,N){return x="error",T(L,U,N)}function A(L,U,N){if(L=="word")return x="attribute",V;if(L=="endTag"||L=="selfcloseTag"){var G=N.tagName,J=N.tagStart;return N.tagName=N.tagStart=null,L=="selfcloseTag"||c.autoSelfClosers.hasOwnProperty(R(G))?p(N,G):(p(N,G),N.context=new j(N,G,J==N.indented)),v}return x="error",A}function V(L,U,N){return L=="equals"?Z:(c.allowMissing||(x="error"),A(L,U,N))}function Z(L,U,N){return L=="string"?q:L=="word"&&c.allowUnquoted?(x="string",A):(x="error",A(L,U,N))}function q(L,U,N){return L=="string"?q:A(L,U,N)}return{startState:function(L){var U={tokenize:_,state:v,indented:L||0,tagName:null,tagStart:null,context:null};return L!=null&&(U.baseIndent=L),U},token:function(L,U){if(!U.tagName&&L.sol()&&(U.indented=L.indentation()),L.eatSpace())return null;k=null;var N=U.tokenize(L,U);return(N||k)&&N!="comment"&&(x=null,U.state=U.state(k||N,L,U),x&&(N=x=="error"?N+" error":x)),N},indent:function(L,U,N){var G=L.context;if(L.tokenize.isInAttribute)return L.tagStart==L.indented?L.stringStartCol+1:L.indented+u;if(G&&G.noIndent)return t.Pass;if(L.tokenize!=D&&L.tokenize!=_)return N?N.match(/^(\s*)/)[0].length:0;if(L.tagName)return c.multilineTagIndentPastTag!==!1?L.tagStart+L.tagName.length+2:L.tagStart+u*(c.multilineTagIndentFactor||1);if(c.alignCDATA&&/<!\[CDATA\[/.test(U))return 0;var J=U&&/^<(\/)?([\w_:\.-]*)/.exec(U);if(J&&J[1])for(;G;)if(G.tagName==J[2]){G=G.prev;break}else if(c.implicitlyClosed.hasOwnProperty(R(G.tagName)))G=G.prev;else break;else if(J)for(;G;){var ne=c.contextGrabbers[R(G.tagName)];if(ne&&ne.hasOwnProperty(R(J[2])))G=G.prev;else break}for(;G&&G.prev&&!G.startOfLine;)G=G.prev;return G?G.indent+u:L.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:c.htmlMode?"html":"xml",helperType:c.htmlMode?"html":"xml",skipAttribute:function(L){L.state==Z&&(L.state=A)},xmlCurrentTag:function(L){return L.tagName?{name:L.tagName,close:L.type=="closeTag"}:null},xmlCurrentContext:function(L){for(var U=[],N=L.context;N;N=N.prev)U.push(N.tagName);return U.reverse()}}}),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})})});var Ag=Nt((Cg,Sg)=>{(function(t){typeof Cg=="object"&&typeof Sg=="object"?t(ir()):typeof define=="function"&&define.amd?define(["../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var o=0;o<t.modeInfo.length;o++){var n=t.modeInfo[o];n.mimes&&(n.mime=n.mimes[0])}t.findModeByMIME=function(s){s=s.toLowerCase();for(var d=0;d<t.modeInfo.length;d++){var u=t.modeInfo[d];if(u.mime==s)return u;if(u.mimes){for(var c=0;c<u.mimes.length;c++)if(u.mimes[c]==s)return u}}if(/\+xml$/.test(s))return t.findModeByMIME("application/xml");if(/\+json$/.test(s))return t.findModeByMIME("application/json")},t.findModeByExtension=function(s){s=s.toLowerCase();for(var d=0;d<t.modeInfo.length;d++){var u=t.modeInfo[d];if(u.ext){for(var c=0;c<u.ext.length;c++)if(u.ext[c]==s)return u}}},t.findModeByFileName=function(s){for(var d=0;d<t.modeInfo.length;d++){var u=t.modeInfo[d];if(u.file&&u.file.test(s))return u}var c=s.lastIndexOf("."),m=c>-1&&s.substring(c+1,s.length);if(m)return t.findModeByExtension(m)},t.findModeByName=function(s){s=s.toLowerCase();for(var d=0;d<t.modeInfo.length;d++){var u=t.modeInfo[d];if(u.name.toLowerCase()==s)return u;if(u.alias){for(var c=0;c<u.alias.length;c++)if(u.alias[c].toLowerCase()==s)return u}}}})});var Yu=Nt((Ng,Tg)=>{(function(t){typeof Ng=="object"&&typeof Tg=="object"?t(ir(),Ku(),Ag()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../meta"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("markdown",function(o,n){var s=t.getMode(o,"text/html"),d=s.name=="null";function u(P){if(t.findModeByName){var S=t.findModeByName(P);S&&(P=S.mime||S.mimes[0])}var fe=t.getMode(o,P);return fe.name=="null"?null:fe}n.highlightFormatting===void 0&&(n.highlightFormatting=!1),n.maxBlockquoteDepth===void 0&&(n.maxBlockquoteDepth=0),n.taskLists===void 0&&(n.taskLists=!1),n.strikethrough===void 0&&(n.strikethrough=!1),n.emoji===void 0&&(n.emoji=!1),n.fencedCodeBlockHighlighting===void 0&&(n.fencedCodeBlockHighlighting=!0),n.fencedCodeBlockDefaultMode===void 0&&(n.fencedCodeBlockDefaultMode="text/plain"),n.xml===void 0&&(n.xml=!0),n.tokenTypeOverrides===void 0&&(n.tokenTypeOverrides={});var c={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var m in c)c.hasOwnProperty(m)&&n.tokenTypeOverrides[m]&&(c[m]=n.tokenTypeOverrides[m]);var g=/^([*\-_])(?:\s*\1){2,}\s*$/,k=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,x=/^\[(x| )\](?=\s)/i,_=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,D=/^ {0,3}(?:\={1,}|-{2,})\s*$/,O=/^[^#!\[\]*_\\<>` "'(~:]+/,H=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,I=/^\s*\[[^\]]+?\]:.*$/,R=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,j=" ";function Y(P,S,fe){return S.f=S.inline=fe,fe(P,S)}function p(P,S,fe){return S.f=S.block=fe,fe(P,S)}function v(P){return!P||!/\S/.test(P.string)}function w(P){if(P.linkTitle=!1,P.linkHref=!1,P.linkText=!1,P.em=!1,P.strong=!1,P.strikethrough=!1,P.quote=0,P.indentedCode=!1,P.f==T){var S=d;if(!S){var fe=t.innerMode(s,P.htmlState);S=fe.mode.name=="xml"&&fe.state.tagStart===null&&!fe.state.context&&fe.state.tokenize.isInText}S&&(P.f=Z,P.block=C,P.htmlState=null)}return P.trailingSpace=0,P.trailingSpaceNewLine=!1,P.prevLine=P.thisLine,P.thisLine={stream:null},null}function C(P,S){var fe=P.column()===S.indentation,Le=v(S.prevLine.stream),_e=S.indentedCode,Ke=S.prevLine.hr,Ge=S.list!==!1,X=(S.listStack[S.listStack.length-1]||0)+3;S.indentedCode=!1;var ce=S.indentation;if(S.indentationDiff===null&&(S.indentationDiff=S.indentation,Ge)){for(S.list=null;ce<S.listStack[S.listStack.length-1];)S.listStack.pop(),S.listStack.length?S.indentation=S.listStack[S.listStack.length-1]:S.list=!1;S.list!==!1&&(S.indentationDiff=ce-S.listStack[S.listStack.length-1])}var ie=!Le&&!Ke&&!S.prevLine.header&&(!Ge||!_e)&&!S.prevLine.fencedCodeEnd,he=(S.list===!1||Ke||Le)&&S.indentation<=X&&P.match(g),Ce=null;if(S.indentationDiff>=4&&(_e||S.prevLine.fencedCodeEnd||S.prevLine.header||Le))return P.skipToEnd(),S.indentedCode=!0,c.code;if(P.eatSpace())return null;if(fe&&S.indentation<=X&&(Ce=P.match(_))&&Ce[1].length<=6)return S.quote=0,S.header=Ce[1].length,S.thisLine.header=!0,n.highlightFormatting&&(S.formatting="header"),S.f=S.inline,A(S);if(S.indentation<=X&&P.eat(">"))return S.quote=fe?1:S.quote+1,n.highlightFormatting&&(S.formatting="quote"),P.eatSpace(),A(S);if(!he&&!S.setext&&fe&&S.indentation<=X&&(Ce=P.match(k))){var $e=Ce[1]?"ol":"ul";return S.indentation=ce+P.current().length,S.list=!0,S.quote=0,S.listStack.push(S.indentation),S.em=!1,S.strong=!1,S.code=!1,S.strikethrough=!1,n.taskLists&&P.match(x,!1)&&(S.taskList=!0),S.f=S.inline,n.highlightFormatting&&(S.formatting=["list","list-"+$e]),A(S)}else{if(fe&&S.indentation<=X&&(Ce=P.match(H,!0)))return S.quote=0,S.fencedEndRE=new RegExp(Ce[1]+"+ *$"),S.localMode=n.fencedCodeBlockHighlighting&&u(Ce[2]||n.fencedCodeBlockDefaultMode),S.localMode&&(S.localState=t.startState(S.localMode)),S.f=S.block=z,n.highlightFormatting&&(S.formatting="code-block"),S.code=-1,A(S);if(S.setext||(!ie||!Ge)&&!S.quote&&S.list===!1&&!S.code&&!he&&!I.test(P.string)&&(Ce=P.lookAhead(1))&&(Ce=Ce.match(D)))return S.setext?(S.header=S.setext,S.setext=0,P.skipToEnd(),n.highlightFormatting&&(S.formatting="header")):(S.header=Ce[0].charAt(0)=="="?1:2,S.setext=S.header),S.thisLine.header=!0,S.f=S.inline,A(S);if(he)return P.skipToEnd(),S.hr=!0,S.thisLine.hr=!0,c.hr;if(P.peek()==="[")return Y(P,S,G)}return Y(P,S,S.inline)}function T(P,S){var fe=s.token(P,S.htmlState);if(!d){var Le=t.innerMode(s,S.htmlState);(Le.mode.name=="xml"&&Le.state.tagStart===null&&!Le.state.context&&Le.state.tokenize.isInText||S.md_inside&&P.current().indexOf(">")>-1)&&(S.f=Z,S.block=C,S.htmlState=null)}return fe}function z(P,S){var fe=S.listStack[S.listStack.length-1]||0,Le=S.indentation<fe,_e=fe+3;if(S.fencedEndRE&&S.indentation<=_e&&(Le||P.match(S.fencedEndRE))){n.highlightFormatting&&(S.formatting="code-block");var Ke;return Le||(Ke=A(S)),S.localMode=S.localState=null,S.block=C,S.f=Z,S.fencedEndRE=null,S.code=0,S.thisLine.fencedCodeEnd=!0,Le?p(P,S,S.block):Ke}else return S.localMode?S.localMode.token(P,S.localState):(P.skipToEnd(),c.code)}function A(P){var S=[];if(P.formatting){S.push(c.formatting),typeof P.formatting=="string"&&(P.formatting=[P.formatting]);for(var fe=0;fe<P.formatting.length;fe++)S.push(c.formatting+"-"+P.formatting[fe]),P.formatting[fe]==="header"&&S.push(c.formatting+"-"+P.formatting[fe]+"-"+P.header),P.formatting[fe]==="quote"&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=P.quote?S.push(c.formatting+"-"+P.formatting[fe]+"-"+P.quote):S.push("error"))}if(P.taskOpen)return S.push("meta"),S.length?S.join(" "):null;if(P.taskClosed)return S.push("property"),S.length?S.join(" "):null;if(P.linkHref?S.push(c.linkHref,"url"):(P.strong&&S.push(c.strong),P.em&&S.push(c.em),P.strikethrough&&S.push(c.strikethrough),P.emoji&&S.push(c.emoji),P.linkText&&S.push(c.linkText),P.code&&S.push(c.code),P.image&&S.push(c.image),P.imageAltText&&S.push(c.imageAltText,"link"),P.imageMarker&&S.push(c.imageMarker)),P.header&&S.push(c.header,c.header+"-"+P.header),P.quote&&(S.push(c.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=P.quote?S.push(c.quote+"-"+P.quote):S.push(c.quote+"-"+n.maxBlockquoteDepth)),P.list!==!1){var Le=(P.listStack.length-1)%3;Le?Le===1?S.push(c.list2):S.push(c.list3):S.push(c.list1)}return P.trailingSpaceNewLine?S.push("trailing-space-new-line"):P.trailingSpace&&S.push("trailing-space-"+(P.trailingSpace%2?"a":"b")),S.length?S.join(" "):null}function V(P,S){if(P.match(O,!0))return A(S)}function Z(P,S){var fe=S.text(P,S);if(typeof fe<"u")return fe;if(S.list)return S.list=null,A(S);if(S.taskList){var Le=P.match(x,!0)[1]===" ";return Le?S.taskOpen=!0:S.taskClosed=!0,n.highlightFormatting&&(S.formatting="task"),S.taskList=!1,A(S)}if(S.taskOpen=!1,S.taskClosed=!1,S.header&&P.match(/^#+$/,!0))return n.highlightFormatting&&(S.formatting="header"),A(S);var _e=P.next();if(S.linkTitle){S.linkTitle=!1;var Ke=_e;_e==="("&&(Ke=")"),Ke=(Ke+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ge="^\\s*(?:[^"+Ke+"\\\\]+|\\\\\\\\|\\\\.)"+Ke;if(P.match(new RegExp(Ge),!0))return c.linkHref}if(_e==="`"){var X=S.formatting;n.highlightFormatting&&(S.formatting="code"),P.eatWhile("`");var ce=P.current().length;if(S.code==0&&(!S.quote||ce==1))return S.code=ce,A(S);if(ce==S.code){var ie=A(S);return S.code=0,ie}else return S.formatting=X,A(S)}else if(S.code)return A(S);if(_e==="\\"&&(P.next(),n.highlightFormatting)){var he=A(S),Ce=c.formatting+"-escape";return he?he+" "+Ce:Ce}if(_e==="!"&&P.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return S.imageMarker=!0,S.image=!0,n.highlightFormatting&&(S.formatting="image"),A(S);if(_e==="["&&S.imageMarker&&P.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return S.imageMarker=!1,S.imageAltText=!0,n.highlightFormatting&&(S.formatting="image"),A(S);if(_e==="]"&&S.imageAltText){n.highlightFormatting&&(S.formatting="image");var he=A(S);return S.imageAltText=!1,S.image=!1,S.inline=S.f=L,he}if(_e==="["&&!S.image)return S.linkText&&P.match(/^.*?\]/)||(S.linkText=!0,n.highlightFormatting&&(S.formatting="link")),A(S);if(_e==="]"&&S.linkText){n.highlightFormatting&&(S.formatting="link");var he=A(S);return S.linkText=!1,S.inline=S.f=P.match(/\(.*?\)| ?\[.*?\]/,!1)?L:Z,he}if(_e==="<"&&P.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){S.f=S.inline=q,n.highlightFormatting&&(S.formatting="link");var he=A(S);return he?he+=" ":he="",he+c.linkInline}if(_e==="<"&&P.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){S.f=S.inline=q,n.highlightFormatting&&(S.formatting="link");var he=A(S);return he?he+=" ":he="",he+c.linkEmail}if(n.xml&&_e==="<"&&P.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var $e=P.string.indexOf(">",P.pos);if($e!=-1){var He=P.string.substring(P.start,$e);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(He)&&(S.md_inside=!0)}return P.backUp(1),S.htmlState=t.startState(s),p(P,S,T)}if(n.xml&&_e==="<"&&P.match(/^\/\w*?>/))return S.md_inside=!1,"tag";if(_e==="*"||_e==="_"){for(var F=1,$=P.pos==1?" ":P.string.charAt(P.pos-2);F<3&&P.eat(_e);)F++;var Q=P.peek()||" ",re=!/\s/.test(Q)&&(!R.test(Q)||/\s/.test($)||R.test($)),te=!/\s/.test($)&&(!R.test($)||/\s/.test(Q)||R.test(Q)),se=null,pe=null;if(F%2&&(!S.em&&re&&(_e==="*"||!te||R.test($))?se=!0:S.em==_e&&te&&(_e==="*"||!re||R.test(Q))&&(se=!1)),F>1&&(!S.strong&&re&&(_e==="*"||!te||R.test($))?pe=!0:S.strong==_e&&te&&(_e==="*"||!re||R.test(Q))&&(pe=!1)),pe!=null||se!=null){n.highlightFormatting&&(S.formatting=se==null?"strong":pe==null?"em":"strong em"),se===!0&&(S.em=_e),pe===!0&&(S.strong=_e);var ie=A(S);return se===!1&&(S.em=!1),pe===!1&&(S.strong=!1),ie}}else if(_e===" "&&(P.eat("*")||P.eat("_"))){if(P.peek()===" ")return A(S);P.backUp(1)}if(n.strikethrough){if(_e==="~"&&P.eatWhile(_e)){if(S.strikethrough){n.highlightFormatting&&(S.formatting="strikethrough");var ie=A(S);return S.strikethrough=!1,ie}else if(P.match(/^[^\s]/,!1))return S.strikethrough=!0,n.highlightFormatting&&(S.formatting="strikethrough"),A(S)}else if(_e===" "&&P.match("~~",!0)){if(P.peek()===" ")return A(S);P.backUp(2)}}if(n.emoji&&_e===":"&&P.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){S.emoji=!0,n.highlightFormatting&&(S.formatting="emoji");var ue=A(S);return S.emoji=!1,ue}return _e===" "&&(P.match(/^ +$/,!1)?S.trailingSpace++:S.trailingSpace&&(S.trailingSpaceNewLine=!0)),A(S)}function q(P,S){var fe=P.next();if(fe===">"){S.f=S.inline=Z,n.highlightFormatting&&(S.formatting="link");var Le=A(S);return Le?Le+=" ":Le="",Le+c.linkInline}return P.match(/^[^>]+/,!0),c.linkInline}function L(P,S){if(P.eatSpace())return null;var fe=P.next();return fe==="("||fe==="["?(S.f=S.inline=N(fe==="("?")":"]"),n.highlightFormatting&&(S.formatting="link-string"),S.linkHref=!0,A(S)):"error"}var U={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function N(P){return function(S,fe){var Le=S.next();if(Le===P){fe.f=fe.inline=Z,n.highlightFormatting&&(fe.formatting="link-string");var _e=A(fe);return fe.linkHref=!1,_e}return S.match(U[P]),fe.linkHref=!0,A(fe)}}function G(P,S){return P.match(/^([^\]\\]|\\.)*\]:/,!1)?(S.f=J,P.next(),n.highlightFormatting&&(S.formatting="link"),S.linkText=!0,A(S)):Y(P,S,Z)}function J(P,S){if(P.match("]:",!0)){S.f=S.inline=ne,n.highlightFormatting&&(S.formatting="link");var fe=A(S);return S.linkText=!1,fe}return P.match(/^([^\]\\]|\\.)+/,!0),c.linkText}function ne(P,S){return P.eatSpace()?null:(P.match(/^[^\s]+/,!0),P.peek()===void 0?S.linkTitle=!0:P.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),S.f=S.inline=Z,c.linkHref+" url")}var Ne={startState:function(){return{f:C,prevLine:{stream:null},thisLine:{stream:null},block:C,htmlState:null,indentation:0,inline:Z,text:V,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(P){return{f:P.f,prevLine:P.prevLine,thisLine:P.thisLine,block:P.block,htmlState:P.htmlState&&t.copyState(s,P.htmlState),indentation:P.indentation,localMode:P.localMode,localState:P.localMode?t.copyState(P.localMode,P.localState):null,inline:P.inline,text:P.text,formatting:!1,linkText:P.linkText,linkTitle:P.linkTitle,linkHref:P.linkHref,code:P.code,em:P.em,strong:P.strong,strikethrough:P.strikethrough,emoji:P.emoji,header:P.header,setext:P.setext,hr:P.hr,taskList:P.taskList,list:P.list,listStack:P.listStack.slice(0),quote:P.quote,indentedCode:P.indentedCode,trailingSpace:P.trailingSpace,trailingSpaceNewLine:P.trailingSpaceNewLine,md_inside:P.md_inside,fencedEndRE:P.fencedEndRE}},token:function(P,S){if(S.formatting=!1,P!=S.thisLine.stream){if(S.header=0,S.hr=!1,P.match(/^\s*$/,!0))return w(S),null;if(S.prevLine=S.thisLine,S.thisLine={stream:P},S.taskList=!1,S.trailingSpace=0,S.trailingSpaceNewLine=!1,!S.localState&&(S.f=S.block,S.f!=T)){var fe=P.match(/^\s*/,!0)[0].replace(/\t/g,j).length;if(S.indentation=fe,S.indentationDiff=null,fe>0)return null}}return S.f(P,S)},innerMode:function(P){return P.block==T?{state:P.htmlState,mode:s}:P.localState?{state:P.localState,mode:P.localMode}:{state:P,mode:Ne}},indent:function(P,S,fe){return P.block==T&&s.indent?s.indent(P.htmlState,S,fe):P.localState&&P.localMode.indent?P.localMode.indent(P.localState,S,fe):t.Pass},blankLine:w,getType:A,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ne},"xml"),t.defineMIME("text/markdown","markdown"),t.defineMIME("text/x-markdown","markdown")})});var Xu=Nt((Og,Lg)=>{(function(t){typeof Og=="object"&&typeof Lg=="object"?t(ir()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.overlayMode=function(o,n,s){return{startState:function(){return{base:t.startState(o),overlay:t.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(d){return{base:t.copyState(o,d.base),overlay:t.copyState(n,d.overlay),basePos:d.basePos,baseCur:null,overlayPos:d.overlayPos,overlayCur:null}},token:function(d,u){return(d!=u.streamSeen||Math.min(u.basePos,u.overlayPos)<d.start)&&(u.streamSeen=d,u.basePos=u.overlayPos=d.start),d.start==u.basePos&&(u.baseCur=o.token(d,u.base),u.basePos=d.pos),d.start==u.overlayPos&&(d.pos=d.start,u.overlayCur=n.token(d,u.overlay),u.overlayPos=d.pos),d.pos=Math.min(u.basePos,u.overlayPos),u.overlayCur==null?u.baseCur:u.baseCur!=null&&u.overlay.combineTokens||s&&u.overlay.combineTokens==null?u.baseCur+" "+u.overlayCur:u.overlayCur},indent:o.indent&&function(d,u,c){return o.indent(d.base,u,c)},electricChars:o.electricChars,innerMode:function(d){return{state:d.base,mode:o}},blankLine:function(d){var u,c;return o.blankLine&&(u=o.blankLine(d.base)),n.blankLine&&(c=n.blankLine(d.overlay)),c==null?u:s&&u!=null?u+" "+c:c}}}})});var Pg=Nt((Fg,Mg)=>{(function(t){typeof Fg=="object"&&typeof Mg=="object"?t(ir()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){t.defineOption("placeholder","",function(m,g,k){var x=k&&k!=t.Init;if(g&&!x)m.on("blur",d),m.on("change",u),m.on("swapDoc",u),t.on(m.getInputField(),"compositionupdate",m.state.placeholderCompose=function(){s(m)}),u(m);else if(!g&&x){m.off("blur",d),m.off("change",u),m.off("swapDoc",u),t.off(m.getInputField(),"compositionupdate",m.state.placeholderCompose),o(m);var _=m.getWrapperElement();_.className=_.className.replace(" CodeMirror-empty","")}g&&!m.hasFocus()&&d(m)});function o(m){m.state.placeholder&&(m.state.placeholder.parentNode.removeChild(m.state.placeholder),m.state.placeholder=null)}function n(m){o(m);var g=m.state.placeholder=document.createElement("pre");g.style.cssText="height: 0; overflow: visible",g.style.direction=m.getOption("direction"),g.className="CodeMirror-placeholder CodeMirror-line-like";var k=m.getOption("placeholder");typeof k=="string"&&(k=document.createTextNode(k)),g.appendChild(k),m.display.lineSpace.insertBefore(g,m.display.lineSpace.firstChild)}function s(m){setTimeout(function(){var g=!1;if(m.lineCount()==1){var k=m.getInputField();g=k.nodeName=="TEXTAREA"?!m.getLine(0).length:!/[^\u200b]/.test(k.querySelector(".CodeMirror-line").textContent)}g?n(m):o(m)},20)}function d(m){c(m)&&n(m)}function u(m){var g=m.getWrapperElement(),k=c(m);g.className=g.className.replace(" CodeMirror-empty","")+(k?" CodeMirror-empty":""),k?n(m):o(m)}function c(m){return m.lineCount()===1&&m.getLine(0)===""}})});var Bg=Nt((Rg,zg)=>{(function(t){typeof Rg=="object"&&typeof zg=="object"?t(ir()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineOption("autoRefresh",!1,function(s,d){s.state.autoRefresh&&(n(s,s.state.autoRefresh),s.state.autoRefresh=null),d&&s.display.wrapper.offsetHeight==0&&o(s,s.state.autoRefresh={delay:d.delay||250})});function o(s,d){function u(){s.display.wrapper.offsetHeight?(n(s,d),s.display.lastWrapHeight!=s.display.wrapper.clientHeight&&s.refresh()):d.timeout=setTimeout(u,d.delay)}d.timeout=setTimeout(u,d.delay),d.hurry=function(){clearTimeout(d.timeout),d.timeout=setTimeout(u,50)},t.on(window,"mouseup",d.hurry),t.on(window,"keyup",d.hurry)}function n(s,d){clearTimeout(d.timeout),t.off(window,"mouseup",d.hurry),t.off(window,"keyup",d.hurry)}})});var jg=Nt((Ig,Hg)=>{(function(t){typeof Ig=="object"&&typeof Hg=="object"?t(ir()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineOption("styleSelectedText",!1,function(x,_,D){var O=D&&D!=t.Init;_&&!O?(x.state.markedSelection=[],x.state.markedSelectionStyle=typeof _=="string"?_:"CodeMirror-selectedtext",g(x),x.on("cursorActivity",o),x.on("change",n)):!_&&O&&(x.off("cursorActivity",o),x.off("change",n),m(x),x.state.markedSelection=x.state.markedSelectionStyle=null)});function o(x){x.state.markedSelection&&x.operation(function(){k(x)})}function n(x){x.state.markedSelection&&x.state.markedSelection.length&&x.operation(function(){m(x)})}var s=8,d=t.Pos,u=t.cmpPos;function c(x,_,D,O){if(u(_,D)!=0)for(var H=x.state.markedSelection,I=x.state.markedSelectionStyle,R=_.line;;){var j=R==_.line?_:d(R,0),Y=R+s,p=Y>=D.line,v=p?D:d(Y,0),w=x.markText(j,v,{className:I});if(O==null?H.push(w):H.splice(O++,0,w),p)break;R=Y}}function m(x){for(var _=x.state.markedSelection,D=0;D<_.length;++D)_[D].clear();_.length=0}function g(x){m(x);for(var _=x.listSelections(),D=0;D<_.length;D++)c(x,_[D].from(),_[D].to())}function k(x){if(!x.somethingSelected())return m(x);if(x.listSelections().length>1)return g(x);var _=x.getCursor("start"),D=x.getCursor("end"),O=x.state.markedSelection;if(!O.length)return c(x,_,D);var H=O[0].find(),I=O[O.length-1].find();if(!H||!I||D.line-_.line<=s||u(_,I.to)>=0||u(D,H.from)<=0)return g(x);for(;u(_,H.from)>0;)O.shift().clear(),H=O[0].find();for(u(_,H.from)<0&&(H.to.line-_.line<s?(O.shift().clear(),c(x,_,H.to,0)):c(x,_,H.from,0));u(D,I.to)<0;)O.pop().clear(),I=O[O.length-1].find();u(D,I.to)>0&&(D.line-I.from.line<s?(O.pop().clear(),c(x,I.from,D)):c(x,I.to,D))}})});var Ug=Nt((Vg,$g)=>{(function(t){typeof Vg=="object"&&typeof $g=="object"?t(ir()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";var o=t.Pos;function n(R){var j=R.flags;return j??(R.ignoreCase?"i":"")+(R.global?"g":"")+(R.multiline?"m":"")}function s(R,j){for(var Y=n(R),p=Y,v=0;v<j.length;v++)p.indexOf(j.charAt(v))==-1&&(p+=j.charAt(v));return Y==p?R:new RegExp(R.source,p)}function d(R){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(R.source)}function u(R,j,Y){j=s(j,"g");for(var p=Y.line,v=Y.ch,w=R.lastLine();p<=w;p++,v=0){j.lastIndex=v;var C=R.getLine(p),T=j.exec(C);if(T)return{from:o(p,T.index),to:o(p,T.index+T[0].length),match:T}}}function c(R,j,Y){if(!d(j))return u(R,j,Y);j=s(j,"gm");for(var p,v=1,w=Y.line,C=R.lastLine();w<=C;){for(var T=0;T<v&&!(w>C);T++){var z=R.getLine(w++);p=p==null?z:p+`
|
|
`+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|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;t.defineMode("gfm",function(n,s){var d=0;function u(k){return k.code=!1,null}var c={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(k){return{code:k.code,codeBlock:k.codeBlock,ateSpace:k.ateSpace}},token:function(k,x){if(x.combineTokens=null,x.codeBlock)return k.match(/^```+/)?(x.codeBlock=!1,null):(k.skipToEnd(),null);if(k.sol()&&(x.code=!1),k.sol()&&k.match(/^```+/))return k.skipToEnd(),x.codeBlock=!0,null;if(k.peek()==="`"){k.next();var _=k.pos;k.eatWhile("`");var D=1+k.pos-_;return x.code?D===d&&(x.code=!1):(d=D,x.code=!0),null}else if(x.code)return k.next(),null;if(k.eatSpace())return x.ateSpace=!0,null;if((k.sol()||x.ateSpace)&&(x.ateSpace=!1,s.gitHubSpice!==!1)){if(k.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return x.combineTokens=!0,"link";if(k.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return x.combineTokens=!0,"link"}return k.match(o)&&k.string.slice(k.start-2,k.start)!="]("&&(k.start==0||/\W/.test(k.string.charAt(k.start-1)))?(x.combineTokens=!0,"link"):(k.next(),null)},blankLine:u},m={taskLists:!0,strikethrough:!0,emoji:!0};for(var g in s)m[g]=s[g];return m.name="markdown",t.overlayMode(t.getMode(n,m),c)},"markdown"),t.defineMIME("text/x-gfm","gfm")})});var Kg=Nt(()=>{});var Yg=Nt((S_,Qu)=>{var Zu;(function(){"use strict";Zu=function(t,o,n,s){s=s||{},this.dictionary=null,this.rules={},this.dictionaryTable={},this.compoundRules=[],this.compoundRuleCodes={},this.replacementTable=[],this.flags=s.flags||{},this.memoized={},this.loaded=!1;var d=this,u,c,m,g,k;t&&(d.dictionary=t,o&&n?O():typeof window<"u"&&"chrome"in window&&"extension"in window.chrome&&"getURL"in window.chrome.extension?(s.dictionaryPath?u=s.dictionaryPath:u="typo/dictionaries",o||x(chrome.extension.getURL(u+"/"+t+"/"+t+".aff"),_),n||x(chrome.extension.getURL(u+"/"+t+"/"+t+".dic"),D)):(s.dictionaryPath?u=s.dictionaryPath:typeof __dirname<"u"?u=__dirname+"/dictionaries":u="./dictionaries",o||x(u+"/"+t+"/"+t+".aff",_),n||x(u+"/"+t+"/"+t+".dic",D)));function x(H,I){var R=d._readFile(H,null,s.asyncLoad);s.asyncLoad?R.then(function(j){I(j)}):I(R)}function _(H){o=H,n&&O()}function D(H){n=H,o&&O()}function O(){for(d.rules=d._parseAFF(o),d.compoundRuleCodes={},c=0,g=d.compoundRules.length;c<g;c++){var H=d.compoundRules[c];for(m=0,k=H.length;m<k;m++)d.compoundRuleCodes[H[m]]=[]}"ONLYINCOMPOUND"in d.flags&&(d.compoundRuleCodes[d.flags.ONLYINCOMPOUND]=[]),d.dictionaryTable=d._parseDIC(n);for(c in d.compoundRuleCodes)d.compoundRuleCodes[c].length===0&&delete d.compoundRuleCodes[c];for(c=0,g=d.compoundRules.length;c<g;c++){var I=d.compoundRules[c],R="";for(m=0,k=I.length;m<k;m++){var j=I[m];j in d.compoundRuleCodes?R+="("+d.compoundRuleCodes[j].join("|")+")":R+=j}d.compoundRules[c]=new RegExp(R,"i")}d.loaded=!0,s.asyncLoad&&s.loadedCallback&&s.loadedCallback(d)}return this},Zu.prototype={load:function(t){for(var o in t)t.hasOwnProperty(o)&&(this[o]=t[o]);return this},_readFile:function(t,o,n){if(o=o||"utf8",typeof XMLHttpRequest<"u"){var s,d=new XMLHttpRequest;return d.open("GET",t,n),n&&(s=new Promise(function(c,m){d.onload=function(){d.status===200?c(d.responseText):m(d.statusText)},d.onerror=function(){m(d.statusText)}})),d.overrideMimeType&&d.overrideMimeType("text/plain; charset="+o),d.send(null),n?s:d.responseText}else if(typeof hp<"u"){var u=Kg();try{if(u.existsSync(t))return u.readFileSync(t,o);console.log("Path "+t+" does not exist.")}catch(c){return console.log(c),""}}},_parseAFF:function(t){var o={},n,s,d,u,c,m,g,k,x=t.split(/\r?\n/);for(c=0,g=x.length;c<g;c++)if(n=this._removeAffixComments(x[c]),n=n.trim(),!!n){var _=n.split(/\s+/),D=_[0];if(D=="PFX"||D=="SFX"){var O=_[1],H=_[2];d=parseInt(_[3],10);var I=[];for(m=c+1,k=c+1+d;m<k;m++){s=x[m],u=s.split(/\s+/);var R=u[2],j=u[3].split("/"),Y=j[0];Y==="0"&&(Y="");var p=this.parseRuleCodes(j[1]),v=u[4],w={};w.add=Y,p.length>0&&(w.continuationClasses=p),v!=="."&&(D==="SFX"?w.match=new RegExp(v+"$"):w.match=new RegExp("^"+v)),R!="0"&&(D==="SFX"?w.remove=new RegExp(R+"$"):w.remove=R),I.push(w)}o[O]={type:D,combineable:H=="Y",entries:I},c+=d}else if(D==="COMPOUNDRULE"){for(d=parseInt(_[1],10),m=c+1,k=c+1+d;m<k;m++)n=x[m],u=n.split(/\s+/),this.compoundRules.push(u[1]);c+=d}else D==="REP"?(u=n.split(/\s+/),u.length===3&&this.replacementTable.push([u[1],u[2]])):this.flags[D]=_[1]}return o},_removeAffixComments:function(t){return t.match(/^\s*#/,"")?"":t},_parseDIC:function(t){t=this._removeDicComments(t);var o=t.split(/\r?\n/),n={};function s(A,V){n.hasOwnProperty(A)||(n[A]=null),V.length>0&&(n[A]===null&&(n[A]=[]),n[A].push(V))}for(var d=1,u=o.length;d<u;d++){var c=o[d];if(c){var m=c.split("/",2),g=m[0];if(m.length>1){var k=this.parseRuleCodes(m[1]);(!("NEEDAFFIX"in this.flags)||k.indexOf(this.flags.NEEDAFFIX)==-1)&&s(g,k);for(var x=0,_=k.length;x<_;x++){var D=k[x],O=this.rules[D];if(O)for(var H=this._applyRule(g,O),I=0,R=H.length;I<R;I++){var j=H[I];if(s(j,[]),O.combineable)for(var Y=x+1;Y<_;Y++){var p=k[Y],v=this.rules[p];if(v&&v.combineable&&O.type!=v.type)for(var w=this._applyRule(j,v),C=0,T=w.length;C<T;C++){var z=w[C];s(z,[])}}}D in this.compoundRuleCodes&&this.compoundRuleCodes[D].push(g)}}else s(g.trim(),[])}}return n},_removeDicComments:function(t){return t=t.replace(/^\t.*$/mg,""),t},parseRuleCodes:function(t){if(t)if("FLAG"in this.flags)if(this.flags.FLAG==="long"){for(var o=[],n=0,s=t.length;n<s;n+=2)o.push(t.substr(n,2));return o}else return this.flags.FLAG==="num"?t.split(","):this.flags.FLAG==="UTF-8"?Array.from(t):t.split("");else return t.split("");else return[]},_applyRule:function(t,o){for(var n=o.entries,s=[],d=0,u=n.length;d<u;d++){var c=n[d];if(!c.match||t.match(c.match)){var m=t;if(c.remove&&(m=m.replace(c.remove,"")),o.type==="SFX"?m=m+c.add:m=c.add+m,s.push(m),"continuationClasses"in c)for(var g=0,k=c.continuationClasses.length;g<k;g++){var x=this.rules[c.continuationClasses[g]];x&&(s=s.concat(this._applyRule(m,x)))}}}return s},check:function(t){if(!this.loaded)throw"Dictionary not loaded.";var o=t.replace(/^\s\s*/,"").replace(/\s\s*$/,"");if(this.checkExact(o))return!0;if(o.toUpperCase()===o){var n=o[0]+o.substring(1).toLowerCase();if(this.hasFlag(n,"KEEPCASE"))return!1;if(this.checkExact(n)||this.checkExact(o.toLowerCase()))return!0}var s=o[0].toLowerCase()+o.substring(1);if(s!==o){if(this.hasFlag(s,"KEEPCASE"))return!1;if(this.checkExact(s))return!0}return!1},checkExact:function(t){if(!this.loaded)throw"Dictionary not loaded.";var o=this.dictionaryTable[t],n,s;if(typeof o>"u"){if("COMPOUNDMIN"in this.flags&&t.length>=this.flags.COMPOUNDMIN){for(n=0,s=this.compoundRules.length;n<s;n++)if(t.match(this.compoundRules[n]))return!0}}else{if(o===null)return!0;if(typeof o=="object"){for(n=0,s=o.length;n<s;n++)if(!this.hasFlag(t,"ONLYINCOMPOUND",o[n]))return!0}}return!1},hasFlag:function(t,o,n){if(!this.loaded)throw"Dictionary not loaded.";return!!(o in this.flags&&(typeof n>"u"&&(n=Array.prototype.concat.apply([],this.dictionaryTable[t])),n&&n.indexOf(this.flags[o])!==-1))},alphabet:"",suggest:function(t,o){if(!this.loaded)throw"Dictionary not loaded.";if(o=o||5,this.memoized.hasOwnProperty(t)){var n=this.memoized[t].limit;if(o<=n||this.memoized[t].suggestions.length<n)return this.memoized[t].suggestions.slice(0,o)}if(this.check(t))return[];for(var s=0,d=this.replacementTable.length;s<d;s++){var u=this.replacementTable[s];if(t.indexOf(u[0])!==-1){var c=t.replace(u[0],u[1]);if(this.check(c))return[c]}}if(!this.alphabet){this.alphabet="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ","TRY"in this.flags&&(this.alphabet+=this.flags.TRY),"WORDCHARS"in this.flags&&(this.alphabet+=this.flags.WORDCHARS);var m=this.alphabet.split("");m.sort();for(var g={},s=0;s<m.length;s++)g[m[s]]=!0;this.alphabet="";for(var s in g)this.alphabet+=s}var k=this;function x(D,O){var H={},I,R,j,Y,p,v,w=k.alphabet.length;if(typeof D=="string"){var C=D;D={},D[C]=!0}for(var C in D)for(I=0,Y=C.length+1;I<Y;I++){var T=[C.substring(0,I),C.substring(I)];if(T[1]&&(v=T[0]+T[1].substring(1),(!O||k.check(v))&&(v in H?H[v]+=1:H[v]=1)),T[1].length>1&&T[1][1]!==T[1][0]&&(v=T[0]+T[1][1]+T[1][0]+T[1].substring(2),(!O||k.check(v))&&(v in H?H[v]+=1:H[v]=1)),T[1]){var z=T[1].substring(0,1).toUpperCase()===T[1].substring(0,1)?"uppercase":"lowercase";for(R=0;R<w;R++){var A=k.alphabet[R];z==="uppercase"&&(A=A.toUpperCase()),A!=T[1].substring(0,1)&&(v=T[0]+A+T[1].substring(1),(!O||k.check(v))&&(v in H?H[v]+=1:H[v]=1))}}if(T[1])for(R=0;R<w;R++){var z=T[0].substring(-1).toUpperCase()===T[0].substring(-1)&&T[1].substring(0,1).toUpperCase()===T[1].substring(0,1)?"uppercase":"lowercase",A=k.alphabet[R];z==="uppercase"&&(A=A.toUpperCase()),v=T[0]+A+T[1],(!O||k.check(v))&&(v in H?H[v]+=1:H[v]=1)}}return H}function _(D){var O=x(D),H=x(O,!0),I=H;for(var R in O)k.check(R)&&(R in I?I[R]+=O[R]:I[R]=O[R]);var j,Y,p=[];for(j in I)I.hasOwnProperty(j)&&p.push([j,I[j]]);function v(z,A){var V=z[1],Z=A[1];return V<Z?-1:V>Z?1:A[0].localeCompare(z[0])}p.sort(v).reverse();var w=[],C="lowercase";D.toUpperCase()===D?C="uppercase":D.substr(0,1).toUpperCase()+D.substr(1).toLowerCase()===D&&(C="capitalized");var T=o;for(j=0;j<Math.min(T,p.length);j++)C==="uppercase"?p[j][0]=p[j][0].toUpperCase():C==="capitalized"&&(p[j][0]=p[j][0].substr(0,1).toUpperCase()+p[j][0].substr(1)),!k.hasFlag(p[j][0],"NOSUGGEST")&&w.indexOf(p[j][0])==-1?w.push(p[j][0]):T++;return w}return this.memoized[t]={suggestions:_(t),limit:o},this.memoized[t].suggestions}}})();typeof Qu<"u"&&(Qu.exports=Zu)});var Qg=Nt((N_,Zg)=>{"use strict";var Xg=Yg();function ct(t){if(t=t||{},typeof t.codeMirrorInstance!="function"||typeof t.codeMirrorInstance.defineMode!="function"){console.log("CodeMirror Spell Checker: You must provide an instance of CodeMirror via the option `codeMirrorInstance`");return}String.prototype.includes||(String.prototype.includes=function(){"use strict";return String.prototype.indexOf.apply(this,arguments)!==-1}),t.codeMirrorInstance.defineMode("spell-checker",function(o){if(!ct.aff_loading){ct.aff_loading=!0;var n=new XMLHttpRequest;n.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.aff",!0),n.onload=function(){n.readyState===4&&n.status===200&&(ct.aff_data=n.responseText,ct.num_loaded++,ct.num_loaded==2&&(ct.typo=new Xg("en_US",ct.aff_data,ct.dic_data,{platform:"any"})))},n.send(null)}if(!ct.dic_loading){ct.dic_loading=!0;var s=new XMLHttpRequest;s.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.dic",!0),s.onload=function(){s.readyState===4&&s.status===200&&(ct.dic_data=s.responseText,ct.num_loaded++,ct.num_loaded==2&&(ct.typo=new Xg("en_US",ct.aff_data,ct.dic_data,{platform:"any"})))},s.send(null)}var d='!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~ ',u={token:function(m){var g=m.peek(),k="";if(d.includes(g))return m.next(),null;for(;(g=m.peek())!=null&&!d.includes(g);)k+=g,m.next();return ct.typo&&!ct.typo.check(k)?"spell-error":null}},c=t.codeMirrorInstance.getMode(o,o.backdrop||"text/plain");return t.codeMirrorInstance.overlayMode(c,u,!0)})}ct.num_loaded=0;ct.aff_loading=!1;ct.dic_loading=!1;ct.aff_data="";ct.dic_data="";ct.typo;Zg.exports=ct});var cb=Nt(st=>{"use strict";function Jg(t,o){for(var n=0;n<o.length;n++){var s=o[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,p3(s.key),s)}}function u3(t,o,n){return o&&Jg(t.prototype,o),n&&Jg(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function dr(){return dr=Object.assign?Object.assign.bind():function(t){for(var o=1;o<arguments.length;o++){var n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},dr.apply(this,arguments)}function c3(t,o){if(t){if(typeof t=="string")return eb(t,o);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eb(t,o)}}function eb(t,o){(o==null||o>t.length)&&(o=t.length);for(var n=0,s=new Array(o);n<o;n++)s[n]=t[n];return s}function Us(t,o){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=c3(t))||o&&t&&typeof t.length=="number"){n&&(t=n);var s=0;return function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
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\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var m=c[1]||c[2]||"";if(!m||m&&(u===""||this.rules.inline.punctuation.exec(u))){var g=c[0].length-1,k,x,_=g,D=0,O=c[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(O.lastIndex=0,d=d.slice(-1*s.length+g);(c=O.exec(d))!=null;)if(k=c[1]||c[2]||c[3]||c[4]||c[5]||c[6],!!k){if(x=k.length,c[3]||c[4]){_+=x;continue}else if((c[5]||c[6])&&g%3&&!((g+x)%3)){D+=x;continue}if(_-=x,!(_>0)){x=Math.min(x,x+_+D);var H=s.slice(0,g+c.index+(c[0].length-k.length)+x);if(Math.min(g,x)%2){var I=H.slice(1,-1);return{type:"em",raw:H,text:I,tokens:this.lexer.inlineTokens(I)}}var R=H.slice(2,-2);return{type:"strong",raw:H,text:R,tokens:this.lexer.inlineTokens(R)}}}}}},o.codespan=function(s){var d=this.rules.inline.code.exec(s);if(d){var u=d[2].replace(/\n/g," "),c=/[^ ]/.test(u),m=/^ /.test(u)&&/ $/.test(u);return c&&m&&(u=u.substring(1,u.length-1)),u=Ut(u,!0),{type:"codespan",raw:d[0],text:u}}},o.br=function(s){var d=this.rules.inline.br.exec(s);if(d)return{type:"br",raw:d[0]}},o.del=function(s){var d=this.rules.inline.del.exec(s);if(d)return{type:"del",raw:d[0],text:d[2],tokens:this.lexer.inlineTokens(d[2])}},o.autolink=function(s,d){var u=this.rules.inline.autolink.exec(s);if(u){var c,m;return u[2]==="@"?(c=Ut(this.options.mangle?d(u[1]):u[1]),m="mailto:"+c):(c=Ut(u[1]),m=c),{type:"link",raw:u[0],text:c,href:m,tokens:[{type:"text",raw:c,text:c}]}}},o.url=function(s,d){var u;if(u=this.rules.inline.url.exec(s)){var c,m;if(u[2]==="@")c=Ut(this.options.mangle?d(u[0]):u[0]),m="mailto:"+c;else{var g;do g=u[0],u[0]=this.rules.inline._backpedal.exec(u[0])[0];while(g!==u[0]);c=Ut(u[0]),u[1]==="www."?m="http://"+u[0]:m=u[0]}return{type:"link",raw:u[0],text:c,href:m,tokens:[{type:"text",raw:c,text:c}]}}},o.inlineText=function(s,d){var u=this.rules.inline.text.exec(s);if(u){var c;return this.lexer.state.inRawBlock?c=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(u[0]):Ut(u[0]):u[0]:c=Ut(this.options.smartypants?d(u[0]):u[0]),{type:"text",raw:u[0],text:c}}},t}(),Re={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Gs,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};Re._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;Re._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;Re.def=at(Re.def).replace("label",Re._label).replace("title",Re._title).getRegex();Re.bullet=/(?:[*+-]|\d{1,9}[.)])/;Re.listItemStart=at(/^( *)(bull) */).replace("bull",Re.bullet).getRegex();Re.list=at(Re.list).replace(/bull/g,Re.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Re.def.source+")").getRegex();Re._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";Re._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;Re.html=at(Re.html,"i").replace("comment",Re._comment).replace("tag",Re._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();Re.paragraph=at(Re._paragraph).replace("hr",Re.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Re._tag).getRegex();Re.blockquote=at(Re.blockquote).replace("paragraph",Re.paragraph).getRegex();Re.normal=dr({},Re);Re.gfm=dr({},Re.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});Re.gfm.table=at(Re.gfm.table).replace("hr",Re.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Re._tag).getRegex();Re.gfm.paragraph=at(Re._paragraph).replace("hr",Re.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Re.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Re._tag).getRegex();Re.pedantic=dr({},Re.normal,{html:at(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Re._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Gs,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:at(Re.normal._paragraph).replace("hr",Re.hr).replace("heading",` *#{1,6} *[^
|
|
]`).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-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/});De.gfm.url=at(De.gfm.url,"i").replace("email",De.gfm._extended_email).getRegex();De.breaks=dr({},De.gfm,{br:at(De.br).replace("{2,}","*").getRegex(),text:at(De.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function N3(t){return t.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function ab(t){var o="",n,s,d=t.length;for(n=0;n<d;n++)s=t.charCodeAt(n),Math.random()>.5&&(s="x"+s.toString(16)),o+="&#"+s+";";return o}var Yn=function(){function t(n){this.tokens=[],this.tokens.links=Object.create(null),this.options=n||st.defaults,this.options.tokenizer=this.options.tokenizer||new Ks,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var s={block:Re.normal,inline:De.normal};this.options.pedantic?(s.block=Re.pedantic,s.inline=De.pedantic):this.options.gfm&&(s.block=Re.gfm,this.options.breaks?s.inline=De.breaks:s.inline=De.gfm),this.tokenizer.rules=s}t.lex=function(s,d){var u=new t(d);return u.lex(s)},t.lexInline=function(s,d){var u=new t(d);return u.inlineTokens(s)};var o=t.prototype;return o.lex=function(s){s=s.replace(/\r\n|\r/g,`
|
|
`),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))+`</code></pre>
|
|
`:"<pre><code>"+(u?s:Ut(s,!0))+`</code></pre>
|
|
`},o.blockquote=function(s){return`<blockquote>
|
|
`+s+`</blockquote>
|
|
`},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+`</li>
|
|
`},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+`</thead>
|
|
`+d+`</table>
|
|
`},o.tablerow=function(s){return`<tr>
|
|
`+s+`</tr>
|
|
`},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(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/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}}Pe.setOptions(u)})};Pe.walkTokens=function(t,o){for(var n=[],s=function(){var m=u.value;switch(n=n.concat(o.call(Pe,m)),m.type){case"table":{for(var g=Us(m.header),k;!(k=g()).done;){var x=k.value;n=n.concat(Pe.walkTokens(x.tokens,o))}for(var _=Us(m.rows),D;!(D=_()).done;)for(var O=D.value,H=Us(O),I;!(I=H()).done;){var R=I.value;n=n.concat(Pe.walkTokens(R.tokens,o))}break}case"list":{n=n.concat(Pe.walkTokens(m.items,o));break}default:Pe.defaults.extensions&&Pe.defaults.extensions.childTokens&&Pe.defaults.extensions.childTokens[m.type]?Pe.defaults.extensions.childTokens[m.type].forEach(function(j){n=n.concat(Pe.walkTokens(m[j],o))}):m.tokens&&(n=n.concat(Pe.walkTokens(m.tokens,o)))}},d=Us(t),u;!(u=d()).done;)s();return n};Pe.parseInline=ub(Yn.lexInline,Xn.parseInline);Pe.Parser=Xn;Pe.parser=Xn.parse;Pe.Renderer=Ys;Pe.TextRenderer=ec;Pe.Lexer=Yn;Pe.lexer=Yn.lex;Pe.Tokenizer=Ks;Pe.Slugger=tc;Pe.Hooks=sa;Pe.parse=Pe;var O3=Pe.options,L3=Pe.setOptions,F3=Pe.use,M3=Pe.walkTokens,P3=Pe.parseInline,R3=Pe,z3=Xn.parse,B3=Yn.lex;st.Hooks=sa;st.Lexer=Yn;st.Parser=Xn;st.Renderer=Ys;st.Slugger=tc;st.TextRenderer=ec;st.Tokenizer=Ks;st.getDefaults=Ju;st.lexer=B3;st.marked=Pe;st.options=O3;st.parse=R3;st.parseInline=P3;st.parser=z3;st.setOptions=L3;st.use=F3;st.walkTokens=M3});var kb=Nt((O_,yb)=>{"use strict";var Zn=ir();vg();xg();_g();Yu();Xu();Pg();Bg();jg();Ug();Gg();Ku();var I3=Qg(),rc=cb().marked,mb=/Mac/.test(navigator.platform),H3=new RegExp(/(<a.*?https?:\/\/.*?[^a]>)+?/g),la={toggleBold:Qs,toggleItalic:Js,drawLink:ul,toggleHeadingSmaller:da,toggleHeadingBigger:ol,drawImage:cl,toggleBlockquote:rl,toggleOrderedList:ll,toggleUnorderedList:sl,toggleCodeBlock:tl,togglePreview:gl,toggleStrikethrough:el,toggleHeading1:nl,toggleHeading2:il,toggleHeading3:al,toggleHeading4:nc,toggleHeading5:ic,toggleHeading6:ac,cleanBlock:dl,drawTable:fl,drawHorizontalRule:pl,undo:ml,redo:hl,toggleSideBySide:Qn,toggleFullScreen:un},j3={toggleBold:"Cmd-B",toggleItalic:"Cmd-I",drawLink:"Cmd-K",toggleHeadingSmaller:"Cmd-H",toggleHeadingBigger:"Shift-Cmd-H",toggleHeading1:"Ctrl+Alt+1",toggleHeading2:"Ctrl+Alt+2",toggleHeading3:"Ctrl+Alt+3",toggleHeading4:"Ctrl+Alt+4",toggleHeading5:"Ctrl+Alt+5",toggleHeading6:"Ctrl+Alt+6",cleanBlock:"Cmd-E",drawImage:"Cmd-Alt-I",toggleBlockquote:"Cmd-'",toggleOrderedList:"Cmd-Alt-L",toggleUnorderedList:"Cmd-L",toggleCodeBlock:"Cmd-Alt-C",togglePreview:"Cmd-P",toggleSideBySide:"F9",toggleFullScreen:"F11"},V3=function(t){for(var o in la)if(la[o]===t)return o;return null},oc=function(){var t=!1;return function(o){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(o)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(o.substr(0,4)))&&(t=!0)}(navigator.userAgent||navigator.vendor||window.opera),t};function $3(t){for(var o;(o=H3.exec(t))!==null;){var n=o[0];if(n.indexOf("target=")===-1){var s=n.replace(/>$/,' target="_blank">');t=t.replace(n,s)}}return t}function U3(t){for(var o=new DOMParser,n=o.parseFromString(t,"text/html"),s=n.getElementsByTagName("li"),d=0;d<s.length;d++)for(var u=s[d],c=0;c<u.children.length;c++){var m=u.children[c];m instanceof HTMLInputElement&&m.type==="checkbox"&&(u.style.marginLeft="-1.5em",u.style.listStyleType="none")}return n.documentElement.innerHTML}function hb(t){return mb?t=t.replace("Ctrl","Cmd"):t=t.replace("Cmd","Ctrl"),t}function W3(t,o,n,s){var d=Xs(t,!1,o,n,"button",s);d.classList.add("easymde-dropdown"),d.onclick=function(){d.focus()};var u=document.createElement("div");u.className="easymde-dropdown-content";for(var c=0;c<t.children.length;c++){var m=t.children[c],g;typeof m=="string"&&m in dn?g=Xs(dn[m],!0,o,n,"button",s):g=Xs(m,!0,o,n,"button",s),g.addEventListener("click",function(k){k.stopPropagation()},!1),u.appendChild(g)}return d.appendChild(u),d}function Xs(t,o,n,s,d,u){t=t||{};var c=document.createElement(d);if(t.attributes)for(var m in t.attributes)Object.prototype.hasOwnProperty.call(t.attributes,m)&&c.setAttribute(m,t.attributes[m]);var g=u.options.toolbarButtonClassPrefix?u.options.toolbarButtonClassPrefix+"-":"";c.className=g+t.name,c.setAttribute("type",d),n=n??!0,t.text&&(c.innerText=t.text),t.name&&t.name in s&&(la[t.name]=t.action),t.title&&n&&(c.title=G3(t.title,t.action,s),mb&&(c.title=c.title.replace("Ctrl","\u2318"),c.title=c.title.replace("Alt","\u2325"))),t.title&&c.setAttribute("aria-label",t.title),t.noDisable&&c.classList.add("no-disable"),t.noMobile&&c.classList.add("no-mobile");var k=[];typeof t.className<"u"&&(k=t.className.split(" "));for(var x=[],_=0;_<k.length;_++){var D=k[_];D.match(/^fa([srlb]|(-[\w-]*)|$)/)?x.push(D):c.classList.add(D)}if(c.tabIndex=-1,x.length>0){for(var O=document.createElement("i"),H=0;H<x.length;H++){var I=x[H];O.classList.add(I)}c.appendChild(O)}return typeof t.icon<"u"&&(c.innerHTML=t.icon),t.action&&o&&(typeof t.action=="function"?c.onclick=function(R){R.preventDefault(),t.action(u)}:typeof t.action=="string"&&(c.onclick=function(R){R.preventDefault(),window.open(t.action,"_blank")})),c}function q3(){var t=document.createElement("i");return t.className="separator",t.innerHTML="|",t}function G3(t,o,n){var s,d=t;return o&&(s=V3(o),n[s]&&(d+=" ("+hb(n[s])+")")),d}function To(t,o){o=o||t.getCursor("start");var n=t.getTokenAt(o);if(!n.type)return{};for(var s=n.type.split(" "),d={},u,c,m=0;m<s.length;m++)u=s[m],u==="strong"?d.bold=!0:u==="variable-2"?(c=t.getLine(o.line),/^\s*\d+\.\s/.test(c)?d["ordered-list"]=!0:d["unordered-list"]=!0):u==="atom"?d.quote=!0:u==="em"?d.italic=!0:u==="quote"?d.quote=!0:u==="strikethrough"?d.strikethrough=!0:u==="comment"?d.code=!0:u==="link"&&!d.image?d.link=!0:u==="image"?d.image=!0:u.match(/^header(-[1-6])?$/)&&(d[u.replace("header","heading")]=!0);return d}var fb="";function un(t){var o=t.codemirror;o.setOption("fullScreen",!o.getOption("fullScreen")),o.getOption("fullScreen")?(fb=document.body.style.overflow,document.body.style.overflow="hidden"):document.body.style.overflow=fb;var n=o.getWrapperElement(),s=n.nextSibling;if(s.classList.contains("editor-preview-active-side"))if(t.options.sideBySideFullscreen===!1){var d=n.parentNode;o.getOption("fullScreen")?d.classList.remove("sided--no-fullscreen"):d.classList.add("sided--no-fullscreen")}else Qn(t);if(t.options.onToggleFullScreen&&t.options.onToggleFullScreen(o.getOption("fullScreen")||!1),typeof t.options.maxHeight<"u"&&(o.getOption("fullScreen")?(o.getScrollerElement().style.removeProperty("height"),s.style.removeProperty("height")):(o.getScrollerElement().style.height=t.options.maxHeight,t.setPreviewMaxHeight())),t.toolbar_div.classList.toggle("fullscreen"),t.toolbarElements&&t.toolbarElements.fullscreen){var u=t.toolbarElements.fullscreen;u.classList.toggle("active")}}function Qs(t){dc(t,"bold",t.options.blockStyles.bold)}function Js(t){dc(t,"italic",t.options.blockStyles.italic)}function el(t){dc(t,"strikethrough","~~")}function tl(t){var o=t.options.blockStyles.code;function n(U){if(typeof U!="object")throw"fencing_line() takes a 'line' object (not a line number, or line text). Got: "+typeof U+": "+U;return U.styles&&U.styles[2]&&U.styles[2].indexOf("formatting-code-block")!==-1}function s(U){return U.state.base.base||U.state.base}function d(U,N,G,J,ne){G=G||U.getLineHandle(N),J=J||U.getTokenAt({line:N,ch:1}),ne=ne||!!G.text&&U.getTokenAt({line:N,ch:G.text.length-1});var Ne=J.type?J.type.split(" "):[];return ne&&s(ne).indentedCode?"indented":Ne.indexOf("comment")===-1?!1:s(J).fencedChars||s(ne).fencedChars||n(G)?"fenced":"single"}function u(U,N,G,J){var ne=N.line+1,Ne=G.line+1,P=N.line!==G.line,S=J+`
|
|
`,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"),s.classList.add("disabled-for-preview")));var g=t.options.previewRender(t.value(),u);g!==null&&(u.innerHTML=g)}function cn(t,o,n,s){if(!t.getWrapperElement().lastChild.classList.contains("editor-preview-active")){var d,u=n[0],c=n[1],m={},g={};Object.assign(m,t.getCursor("start")),Object.assign(g,t.getCursor("end")),s&&(u=u.replace("#url#",s),c=c.replace("#url#",s)),o?(d=t.getLine(m.line),u=d.slice(0,m.ch),c=d.slice(m.ch),t.replaceRange(u+c,{line:m.line,ch:0})):(d=t.getSelection(),t.replaceSelection(u+d+c),m.ch+=u.length,m!==g&&(g.ch+=u.length)),t.setSelection(m,g),t.focus()}}function Oo(t,o,n){if(!t.getWrapperElement().lastChild.classList.contains("editor-preview-active")){for(var s=t.getCursor("start"),d=t.getCursor("end"),u=s.line;u<=d.line;u++)(function(c){var m=t.getLine(c),g=m.search(/[^#]/);o!==void 0?g<=0?o=="bigger"?m="###### "+m:m="# "+m:g==6&&o=="smaller"?m=m.substr(7):g==1&&o=="bigger"?m=m.substr(2):o=="bigger"?m=m.substr(1):m="#"+m:g<=0?m="#".repeat(n)+" "+m:g==n?m=m.substr(g+1):m="#".repeat(n)+" "+m.substr(g+1),t.replaceRange(m,{line:c,ch:0},{line:c,ch:99999999999999})})(u);t.focus()}}function lc(t,o,n){if(!t.getWrapperElement().lastChild.classList.contains("editor-preview-active")){for(var s=/^(\s*)(\*|-|\+|\d*\.)(\s+)/,d=/^\s*/,u=To(t),c=t.getCursor("start"),m=t.getCursor("end"),g={quote:/^(\s*)>\s+/,"unordered-list":s,"ordered-list":s},k=function(H,I){var R={quote:">","unordered-list":n,"ordered-list":"%%i."};return R[H].replace("%%i",I)},x=function(H,I){var R={quote:">","unordered-list":"\\"+n,"ordered-list":"\\d+."},j=new RegExp(R[H]);return I&&j.test(I)},_=function(H,I,R){var j=s.exec(I),Y=k(H,D);return j!==null?(x(H,j[2])&&(Y=""),I=j[1]+Y+j[3]+I.replace(d,"").replace(g[H],"$1")):R==!1&&(I=Y+" "+I),I},D=1,O=c.line;O<=m.line;O++)(function(H){var I=t.getLine(H);u[o]?I=I.replace(g[o],"$1"):(o=="unordered-list"&&(I=_("ordered-list",I,!0)),I=_(o,I,!1),D+=1),t.replaceRange(I,{line:H,ch:0},{line:H,ch:99999999999999})})(O);t.focus()}}function vb(t,o,n,s){if(!(!t.codemirror||t.isPreviewActive())){var d=t.codemirror,u=To(d),c=u[o];if(!c){cn(d,c,n,s);return}var m=d.getCursor("start"),g=d.getCursor("end"),k=d.getLine(m.line),x=k.slice(0,m.ch),_=k.slice(m.ch);o=="link"?x=x.replace(/(.*)[^!]\[/,"$1"):o=="image"&&(x=x.replace(/(.*)!\[$/,"$1")),_=_.replace(/]\(.*?\)/,""),d.replaceRange(x+_,{line:m.line,ch:0},{line:m.line,ch:99999999999999}),m.ch-=n[0].length,m!==g&&(g.ch-=n[0].length),d.setSelection(m,g),d.focus()}}function dc(t,o,n,s){if(!(!t.codemirror||t.isPreviewActive())){s=typeof s>"u"?n:s;var d=t.codemirror,u=To(d),c,m=n,g=s,k=d.getCursor("start"),x=d.getCursor("end");u[o]?(c=d.getLine(k.line),m=c.slice(0,k.ch),g=c.slice(k.ch),o=="bold"?(m=m.replace(/(\*\*|__)(?![\s\S]*(\*\*|__))/,""),g=g.replace(/(\*\*|__)/,"")):o=="italic"?(m=m.replace(/(\*|_)(?![\s\S]*(\*|_))/,""),g=g.replace(/(\*|_)/,"")):o=="strikethrough"&&(m=m.replace(/(\*\*|~~)(?![\s\S]*(\*\*|~~))/,""),g=g.replace(/(\*\*|~~)/,"")),d.replaceRange(m+g,{line:k.line,ch:0},{line:k.line,ch:99999999999999}),o=="bold"||o=="strikethrough"?(k.ch-=2,k!==x&&(x.ch-=2)):o=="italic"&&(k.ch-=1,k!==x&&(x.ch-=1))):(c=d.getSelection(),o=="bold"?(c=c.split("**").join(""),c=c.split("__").join("")):o=="italic"?(c=c.split("*").join(""),c=c.split("_").join("")):o=="strikethrough"&&(c=c.split("~~").join("")),d.replaceSelection(m+c+g),k.ch+=n.length,x.ch=k.ch+c.length),d.setSelection(k,x),d.focus()}}function K3(t){if(!t.getWrapperElement().lastChild.classList.contains("editor-preview-active"))for(var o=t.getCursor("start"),n=t.getCursor("end"),s,d=o.line;d<=n.line;d++)s=t.getLine(d),s=s.replace(/^[ ]*([# ]+|\*|-|[> ]+|[0-9]+(.|\)))[ ]*/,""),t.replaceRange(s,{line:d,ch:0},{line:d,ch:99999999999999})}function Zs(t,o){if(Math.abs(t)<1024)return""+t+o[0];var n=0;do t/=1024,++n;while(Math.abs(t)>=1024&&n<o.length);return""+t.toFixed(1)+o[n]}function wb(t,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(o[n]instanceof Array?t[n]=o[n].concat(t[n]instanceof Array?t[n]:[]):o[n]!==null&&typeof o[n]=="object"&&o[n].constructor===Object?t[n]=wb(t[n]||{},o[n]):t[n]=o[n]);return t}function io(t){for(var o=1;o<arguments.length;o++)t=wb(t,arguments[o]);return t}function pb(t){var o=/[a-zA-Z0-9_\u00A0-\u02AF\u0392-\u03c9\u0410-\u04F9]+|[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g,n=t.match(o),s=0;if(n===null)return s;for(var d=0;d<n.length;d++)n[d].charCodeAt(0)>=19968?s+=n[d].length:s+=1;return s}var lt={bold:"fa fa-bold",italic:"fa fa-italic",strikethrough:"fa fa-strikethrough",heading:"fa fa-header fa-heading","heading-smaller":"fa fa-header fa-heading header-smaller","heading-bigger":"fa fa-header fa-heading header-bigger","heading-1":"fa fa-header fa-heading header-1","heading-2":"fa fa-header fa-heading header-2","heading-3":"fa fa-header fa-heading header-3",code:"fa fa-code",quote:"fa fa-quote-left","ordered-list":"fa fa-list-ol","unordered-list":"fa fa-list-ul","clean-block":"fa fa-eraser",link:"fa fa-link",image:"fa fa-image","upload-image":"fa fa-image",table:"fa fa-table","horizontal-rule":"fa fa-minus",preview:"fa fa-eye","side-by-side":"fa fa-columns",fullscreen:"fa fa-arrows-alt",guide:"fa fa-question-circle",undo:"fa fa-undo",redo:"fa fa-repeat fa-redo"},dn={bold:{name:"bold",action:Qs,className:lt.bold,title:"Bold",default:!0},italic:{name:"italic",action:Js,className:lt.italic,title:"Italic",default:!0},strikethrough:{name:"strikethrough",action:el,className:lt.strikethrough,title:"Strikethrough"},heading:{name:"heading",action:da,className:lt.heading,title:"Heading",default:!0},"heading-smaller":{name:"heading-smaller",action:da,className:lt["heading-smaller"],title:"Smaller Heading"},"heading-bigger":{name:"heading-bigger",action:ol,className:lt["heading-bigger"],title:"Bigger Heading"},"heading-1":{name:"heading-1",action:nl,className:lt["heading-1"],title:"Big Heading"},"heading-2":{name:"heading-2",action:il,className:lt["heading-2"],title:"Medium Heading"},"heading-3":{name:"heading-3",action:al,className:lt["heading-3"],title:"Small Heading"},"separator-1":{name:"separator-1"},code:{name:"code",action:tl,className:lt.code,title:"Code"},quote:{name:"quote",action:rl,className:lt.quote,title:"Quote",default:!0},"unordered-list":{name:"unordered-list",action:sl,className:lt["unordered-list"],title:"Generic List",default:!0},"ordered-list":{name:"ordered-list",action:ll,className:lt["ordered-list"],title:"Numbered List",default:!0},"clean-block":{name:"clean-block",action:dl,className:lt["clean-block"],title:"Clean block"},"separator-2":{name:"separator-2"},link:{name:"link",action:ul,className:lt.link,title:"Create Link",default:!0},image:{name:"image",action:cl,className:lt.image,title:"Insert Image",default:!0},"upload-image":{name:"upload-image",action:sc,className:lt["upload-image"],title:"Import an image"},table:{name:"table",action:fl,className:lt.table,title:"Insert Table"},"horizontal-rule":{name:"horizontal-rule",action:pl,className:lt["horizontal-rule"],title:"Insert Horizontal Line"},"separator-3":{name:"separator-3"},preview:{name:"preview",action:gl,className:lt.preview,noDisable:!0,title:"Toggle Preview",default:!0},"side-by-side":{name:"side-by-side",action:Qn,className:lt["side-by-side"],noDisable:!0,noMobile:!0,title:"Toggle Side by Side",default:!0},fullscreen:{name:"fullscreen",action:un,className:lt.fullscreen,noDisable:!0,noMobile:!0,title:"Toggle Fullscreen",default:!0},"separator-4":{name:"separator-4"},guide:{name:"guide",action:"https://www.markdownguide.org/basic-syntax/",className:lt.guide,noDisable:!0,title:"Markdown Guide",default:!0},"separator-5":{name:"separator-5"},undo:{name:"undo",action:ml,className:lt.undo,noDisable:!0,title:"Undo"},redo:{name:"redo",action:hl,className:lt.redo,noDisable:!0,title:"Redo"}},Y3={link:["[","](#url#)"],image:["![","](#url#)"],uploadedImage:["![](#url#)",""],table:["",`
|
|
|
|
| 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.updateStatusBar=function(t,o){if(this.gui.statusbar){var n=this.gui.statusbar.getElementsByClassName(t);n.length===1?this.gui.statusbar.getElementsByClassName(t)[0].textContent=o:n.length===0?console.log("EasyMDE: status bar item "+t+" was not found."):console.log("EasyMDE: Several status bar items named "+t+" was found.")}};ye.prototype.markdown=function(t){if(rc){var o;if(this.options&&this.options.renderingConfig&&this.options.renderingConfig.markedOptions?o=this.options.renderingConfig.markedOptions:o={},this.options&&this.options.renderingConfig&&this.options.renderingConfig.singleLineBreaks===!1?o.breaks=!1:o.breaks=!0,this.options&&this.options.renderingConfig&&this.options.renderingConfig.codeSyntaxHighlighting===!0){var n=this.options.renderingConfig.hljs||window.hljs;n&&(o.highlight=function(d,u){return u&&n.getLanguage(u)?n.highlight(u,d).value:n.highlightAuto(d).value})}rc.setOptions(o);var s=rc.parse(t);return this.options.renderingConfig&&typeof this.options.renderingConfig.sanitizerFunction=="function"&&(s=this.options.renderingConfig.sanitizerFunction.call(this,s)),s=$3(s),s=U3(s),s}};ye.prototype.render=function(t){if(t||(t=this.element||document.getElementsByTagName("textarea")[0]),this._rendered&&this._rendered===t)return;this.element=t;var o=this.options,n=this,s={};for(var d in o.shortcuts)o.shortcuts[d]!==null&&la[d]!==null&&function(R){s[hb(o.shortcuts[R])]=function(){var j=la[R];typeof j=="function"?j(n):typeof j=="string"&&window.open(j,"_blank")}}(d);s.Enter="newlineAndIndentContinueMarkdownList",s.Tab="tabAndIndentMarkdownList",s["Shift-Tab"]="shiftTabAndUnindentMarkdownList",s.Esc=function(R){R.getOption("fullScreen")&&un(n)},this.documentOnKeyDown=function(R){R=R||window.event,R.keyCode==27&&n.codemirror.getOption("fullScreen")&&un(n)},document.addEventListener("keydown",this.documentOnKeyDown,!1);var u,c;o.overlayMode?(Zn.defineMode("overlay-mode",function(R){return Zn.overlayMode(Zn.getMode(R,o.spellChecker!==!1?"spell-checker":"gfm"),o.overlayMode.mode,o.overlayMode.combine)}),u="overlay-mode",c=o.parsingConfig,c.gitHubSpice=!1):(u=o.parsingConfig,u.name="gfm",u.gitHubSpice=!1),o.spellChecker!==!1&&(u="spell-checker",c=o.parsingConfig,c.name="gfm",c.gitHubSpice=!1,typeof o.spellChecker=="function"?o.spellChecker({codeMirrorInstance:Zn}):I3({codeMirrorInstance:Zn}));function m(R,j,Y){return{addNew:!1}}if(this.codemirror=Zn.fromTextArea(t,{mode:u,backdrop:c,theme:o.theme!=null?o.theme:"easymde",tabSize:o.tabSize!=null?o.tabSize:2,indentUnit:o.tabSize!=null?o.tabSize:2,indentWithTabs:o.indentWithTabs!==!1,lineNumbers:o.lineNumbers===!0,autofocus:o.autofocus===!0,extraKeys:s,direction:o.direction,lineWrapping:o.lineWrapping!==!1,allowDropFileTypes:["text/plain"],placeholder:o.placeholder||t.getAttribute("placeholder")||"",styleSelectedText:o.styleSelectedText!=null?o.styleSelectedText:!oc(),scrollbarStyle:o.scrollbarStyle!=null?o.scrollbarStyle:"native",configureMouse:m,inputStyle:o.inputStyle!=null?o.inputStyle:oc()?"contenteditable":"textarea",spellcheck:o.nativeSpellcheck!=null?o.nativeSpellcheck:!0,autoRefresh:o.autoRefresh!=null?o.autoRefresh:!1}),this.codemirror.getScrollerElement().style.minHeight=o.minHeight,typeof o.maxHeight<"u"&&(this.codemirror.getScrollerElement().style.height=o.maxHeight),o.forceSync===!0){var g=this.codemirror;g.on("change",function(){g.save()})}this.gui={};var k=document.createElement("div");k.classList.add("EasyMDEContainer"),k.setAttribute("role","application");var x=this.codemirror.getWrapperElement();x.parentNode.insertBefore(k,x),k.appendChild(x),o.toolbar!==!1&&(this.gui.toolbar=this.createToolbar()),o.status!==!1&&(this.gui.statusbar=this.createStatusbar()),o.autosave!=null&&o.autosave.enabled===!0&&(this.autosave(),this.codemirror.on("change",function(){clearTimeout(n._autosave_timeout),n._autosave_timeout=setTimeout(function(){n.autosave()},n.options.autosave.submit_delay||n.options.autosave.delay||1e3)}));function _(R,j){var Y,p=window.getComputedStyle(document.querySelector(".CodeMirror-sizer")).width.replace("px","");return R<p?Y=j+"px":Y=j/R*100+"%",Y}var D=this;function O(R,j){R.setAttribute("data-img-src",j.url),R.setAttribute("style","--bg-image:url("+j.url+");--width:"+j.naturalWidth+"px;--height:"+_(j.naturalWidth,j.naturalHeight)),D.codemirror.setSize()}function H(){o.previewImagesInEditor&&k.querySelectorAll(".cm-image-marker").forEach(function(R){var j=R.parentElement;if(j.innerText.match(/^!\[.*?\]\(.*\)/g)&&!j.hasAttribute("data-img-src")){var Y=j.innerText.match("\\((.*)\\)");if(window.EMDEimagesCache||(window.EMDEimagesCache={}),Y&&Y.length>=2){var p=Y[1];if(o.imagesPreviewHandler){var v=o.imagesPreviewHandler(Y[1]);typeof v=="string"&&(p=v)}if(window.EMDEimagesCache[p])O(j,window.EMDEimagesCache[p]);else{var w=document.createElement("img");w.onload=function(){window.EMDEimagesCache[p]={naturalWidth:w.naturalWidth,naturalHeight:w.naturalHeight,url:p},O(j,window.EMDEimagesCache[p])},w.src=p}}}})}this.codemirror.on("update",function(){H()}),this.gui.sideBySide=this.createSideBySide(),this._rendered=this.element,(o.autofocus===!0||t.autofocus)&&this.codemirror.focus();var I=this.codemirror;setTimeout((function(){I.refresh()}).bind(I),0)};ye.prototype.cleanup=function(){document.removeEventListener("keydown",this.documentOnKeyDown)};function xb(){if(typeof localStorage=="object")try{localStorage.setItem("smde_localStorage",1),localStorage.removeItem("smde_localStorage")}catch{return!1}else return!1;return!0}ye.prototype.autosave=function(){if(xb()){var t=this;if(this.options.autosave.uniqueId==null||this.options.autosave.uniqueId==""){console.log("EasyMDE: You must set a uniqueId to use the autosave feature");return}this.options.autosave.binded!==!0&&(t.element.form!=null&&t.element.form!=null&&t.element.form.addEventListener("submit",function(){clearTimeout(t.autosaveTimeoutId),t.autosaveTimeoutId=void 0,localStorage.removeItem("smde_"+t.options.autosave.uniqueId)}),this.options.autosave.binded=!0),this.options.autosave.loaded!==!0&&(typeof localStorage.getItem("smde_"+this.options.autosave.uniqueId)=="string"&&localStorage.getItem("smde_"+this.options.autosave.uniqueId)!=""&&(this.codemirror.setValue(localStorage.getItem("smde_"+this.options.autosave.uniqueId)),this.options.autosave.foundSavedValue=!0),this.options.autosave.loaded=!0);var o=t.value();o!==""?localStorage.setItem("smde_"+this.options.autosave.uniqueId,o):localStorage.removeItem("smde_"+this.options.autosave.uniqueId);var n=document.getElementById("autosaved");if(n!=null&&n!=null&&n!=""){var s=new Date,d=new Intl.DateTimeFormat([this.options.autosave.timeFormat.locale,"en-US"],this.options.autosave.timeFormat.format).format(s),u=this.options.autosave.text==null?"Autosaved: ":this.options.autosave.text;n.innerHTML=u+d}}else console.log("EasyMDE: localStorage not available, cannot autosave")};ye.prototype.clearAutosavedValue=function(){if(xb()){if(this.options.autosave==null||this.options.autosave.uniqueId==null||this.options.autosave.uniqueId==""){console.log("EasyMDE: You must set a uniqueId to clear the autosave value");return}localStorage.removeItem("smde_"+this.options.autosave.uniqueId)}else console.log("EasyMDE: localStorage not available, cannot autosave")};ye.prototype.openBrowseFileWindow=function(t,o){var n=this,s=this.gui.toolbar.getElementsByClassName("imageInput")[0];s.click();function d(u){n.options.imageUploadFunction?n.uploadImagesUsingCustomFunction(n.options.imageUploadFunction,u.target.files):n.uploadImages(u.target.files,t,o),s.removeEventListener("change",d)}s.addEventListener("change",d)};ye.prototype.uploadImage=function(t,o,n){var s=this;o=o||function(k){bb(s,k)};function d(g){s.updateStatusBar("upload-image",g),setTimeout(function(){s.updateStatusBar("upload-image",s.options.imageTexts.sbInit)},1e4),n&&typeof n=="function"&&n(g),s.options.errorCallback(g)}function u(g){var k=s.options.imageTexts.sizeUnits.split(",");return g.replace("#image_name#",t.name).replace("#image_size#",Zs(t.size,k)).replace("#image_max_size#",Zs(s.options.imageMaxSize,k))}if(t.size>this.options.imageMaxSize){d(u(this.options.errorMessages.fileTooLarge));return}var c=new FormData;c.append("image",t),s.options.imageCSRFToken&&!s.options.imageCSRFHeader&&c.append(s.options.imageCSRFName,s.options.imageCSRFToken);var m=new XMLHttpRequest;m.upload.onprogress=function(g){if(g.lengthComputable){var k=""+Math.round(g.loaded*100/g.total);s.updateStatusBar("upload-image",s.options.imageTexts.sbProgress.replace("#file_name#",t.name).replace("#progress#",k))}},m.open("POST",this.options.imageUploadEndpoint),s.options.imageCSRFToken&&s.options.imageCSRFHeader&&m.setRequestHeader(s.options.imageCSRFName,s.options.imageCSRFToken),m.onload=function(){try{var g=JSON.parse(this.responseText)}catch{console.error("EasyMDE: The server did not return a valid json."),d(u(s.options.errorMessages.importError));return}this.status===200&&g&&!g.error&&g.data&&g.data.filePath?o((s.options.imagePathAbsolute?"":window.location.origin+"/")+g.data.filePath):g.error&&g.error in s.options.errorMessages?d(u(s.options.errorMessages[g.error])):g.error?d(u(g.error)):(console.error("EasyMDE: Received an unexpected response after uploading the image."+this.status+" ("+this.statusText+")"),d(u(s.options.errorMessages.importError)))},m.onerror=function(g){console.error("EasyMDE: An unexpected error occurred when trying to upload the image."+g.target.status+" ("+g.target.statusText+")"),d(s.options.errorMessages.importError)},m.send(c)};ye.prototype.uploadImageUsingCustomFunction=function(t,o){var n=this;function s(c){bb(n,c)}function d(c){var m=u(c);n.updateStatusBar("upload-image",m),setTimeout(function(){n.updateStatusBar("upload-image",n.options.imageTexts.sbInit)},1e4),n.options.errorCallback(m)}function u(c){var m=n.options.imageTexts.sizeUnits.split(",");return c.replace("#image_name#",o.name).replace("#image_size#",Zs(o.size,m)).replace("#image_max_size#",Zs(n.options.imageMaxSize,m))}t.apply(this,[o,s,d])};ye.prototype.setPreviewMaxHeight=function(){var t=this.codemirror,o=t.getWrapperElement(),n=o.nextSibling,s=parseInt(window.getComputedStyle(o).paddingTop),d=parseInt(window.getComputedStyle(o).borderTopWidth),u=parseInt(this.options.maxHeight),c=u+s*2+d*2,m=c.toString()+"px";n.style.height=m};ye.prototype.createSideBySide=function(){var t=this.codemirror,o=t.getWrapperElement(),n=o.nextSibling;if(!n||!n.classList.contains("editor-preview-side")){if(n=document.createElement("div"),n.className="editor-preview-side",this.options.previewClass)if(Array.isArray(this.options.previewClass))for(var s=0;s<this.options.previewClass.length;s++)n.classList.add(this.options.previewClass[s]);else typeof this.options.previewClass=="string"&&n.classList.add(this.options.previewClass);o.parentNode.insertBefore(n,o.nextSibling)}if(typeof this.options.maxHeight<"u"&&this.setPreviewMaxHeight(),this.options.syncSideBySidePreviewScroll===!1)return n;var d=!1,u=!1;return t.on("scroll",function(c){if(d){d=!1;return}u=!0;var m=c.getScrollInfo().height-c.getScrollInfo().clientHeight,g=parseFloat(c.getScrollInfo().top)/m,k=(n.scrollHeight-n.clientHeight)*g;n.scrollTop=k}),n.onscroll=function(){if(u){u=!1;return}d=!0;var c=n.scrollHeight-n.clientHeight,m=parseFloat(n.scrollTop)/c,g=(t.getScrollInfo().height-t.getScrollInfo().clientHeight)*m;t.scrollTo(0,g)},n};ye.prototype.createToolbar=function(t){if(t=t||this.options.toolbar,!(!t||t.length===0)){var o;for(o=0;o<t.length;o++)dn[t[o]]!=null&&(t[o]=dn[t[o]]);var n=document.createElement("div");n.className="editor-toolbar",n.setAttribute("role","toolbar");var s=this,d={};for(s.toolbar=t,o=0;o<t.length;o++)if(!(t[o].name=="guide"&&s.options.toolbarGuideIcon===!1)&&!(s.options.hideIcons&&s.options.hideIcons.indexOf(t[o].name)!=-1)&&!((t[o].name=="fullscreen"||t[o].name=="side-by-side")&&oc())){if(t[o]==="|"){for(var u=!1,c=o+1;c<t.length;c++)t[c]!=="|"&&(!s.options.hideIcons||s.options.hideIcons.indexOf(t[c].name)==-1)&&(u=!0);if(!u)continue}(function(k){var x;if(k==="|"?x=q3():k.children?x=W3(k,s.options.toolbarTips,s.options.shortcuts,s):x=Xs(k,!0,s.options.toolbarTips,s.options.shortcuts,"button",s),d[k.name||k]=x,n.appendChild(x),k.name==="upload-image"){var _=document.createElement("input");_.className="imageInput",_.type="file",_.multiple=!0,_.name="image",_.accept=s.options.imageAccept,_.style.display="none",_.style.opacity=0,n.appendChild(_)}})(t[o])}s.toolbar_div=n,s.toolbarElements=d;var m=this.codemirror;m.on("cursorActivity",function(){var k=To(m);for(var x in d)(function(_){var D=d[_];k[_]?D.classList.add("active"):_!="fullscreen"&&_!="side-by-side"&&D.classList.remove("active")})(x)});var g=m.getWrapperElement();return g.parentNode.insertBefore(n,g),n}};ye.prototype.createStatusbar=function(t){t=t||this.options.status;var o=this.options,n=this.codemirror;if(!(!t||t.length===0)){var s=[],d,u,c,m;for(d=0;d<t.length;d++)if(u=void 0,c=void 0,m=void 0,typeof t[d]=="object")s.push({className:t[d].className,defaultValue:t[d].defaultValue,onUpdate:t[d].onUpdate,onActivity:t[d].onActivity});else{var g=t[d];g==="words"?(m=function(O){O.innerHTML=pb(n.getValue())},u=function(O){O.innerHTML=pb(n.getValue())}):g==="lines"?(m=function(O){O.innerHTML=n.lineCount()},u=function(O){O.innerHTML=n.lineCount()}):g==="cursor"?(m=function(O){O.innerHTML="1:1"},c=function(O){var H=n.getCursor(),I=H.line+1,R=H.ch+1;O.innerHTML=I+":"+R}):g==="autosave"?m=function(O){o.autosave!=null&&o.autosave.enabled===!0&&O.setAttribute("id","autosaved")}:g==="upload-image"&&(m=function(O){O.innerHTML=o.imageTexts.sbInit}),s.push({className:g,defaultValue:m,onUpdate:u,onActivity:c})}var k=document.createElement("div");for(k.className="editor-statusbar",d=0;d<s.length;d++){var x=s[d],_=document.createElement("span");_.className=x.className,typeof x.defaultValue=="function"&&x.defaultValue(_),typeof x.onUpdate=="function"&&this.codemirror.on("update",function(O,H){return function(){H.onUpdate(O)}}(_,x)),typeof x.onActivity=="function"&&this.codemirror.on("cursorActivity",function(O,H){return function(){H.onActivity(O)}}(_,x)),k.appendChild(_)}var D=this.codemirror.getWrapperElement();return D.parentNode.insertBefore(k,D.nextSibling),k}};ye.prototype.value=function(t){var o=this.codemirror;if(t===void 0)return o.getValue();if(o.getDoc().setValue(t),this.isPreviewActive()){var n=o.getWrapperElement(),s=n.lastChild,d=this.options.previewRender(t,s);d!==null&&(s.innerHTML=d)}return this};ye.toggleBold=Qs;ye.toggleItalic=Js;ye.toggleStrikethrough=el;ye.toggleBlockquote=rl;ye.toggleHeadingSmaller=da;ye.toggleHeadingBigger=ol;ye.toggleHeading1=nl;ye.toggleHeading2=il;ye.toggleHeading3=al;ye.toggleHeading4=nc;ye.toggleHeading5=ic;ye.toggleHeading6=ac;ye.toggleCodeBlock=tl;ye.toggleUnorderedList=sl;ye.toggleOrderedList=ll;ye.cleanBlock=dl;ye.drawLink=ul;ye.drawImage=cl;ye.drawUploadedImage=sc;ye.drawTable=fl;ye.drawHorizontalRule=pl;ye.undo=ml;ye.redo=hl;ye.togglePreview=gl;ye.toggleSideBySide=Qn;ye.toggleFullScreen=un;ye.prototype.toggleBold=function(){Qs(this)};ye.prototype.toggleItalic=function(){Js(this)};ye.prototype.toggleStrikethrough=function(){el(this)};ye.prototype.toggleBlockquote=function(){rl(this)};ye.prototype.toggleHeadingSmaller=function(){da(this)};ye.prototype.toggleHeadingBigger=function(){ol(this)};ye.prototype.toggleHeading1=function(){nl(this)};ye.prototype.toggleHeading2=function(){il(this)};ye.prototype.toggleHeading3=function(){al(this)};ye.prototype.toggleHeading4=function(){nc(this)};ye.prototype.toggleHeading5=function(){ic(this)};ye.prototype.toggleHeading6=function(){ac(this)};ye.prototype.toggleCodeBlock=function(){tl(this)};ye.prototype.toggleUnorderedList=function(){sl(this)};ye.prototype.toggleOrderedList=function(){ll(this)};ye.prototype.cleanBlock=function(){dl(this)};ye.prototype.drawLink=function(){ul(this)};ye.prototype.drawImage=function(){cl(this)};ye.prototype.drawUploadedImage=function(){sc(this)};ye.prototype.drawTable=function(){fl(this)};ye.prototype.drawHorizontalRule=function(){pl(this)};ye.prototype.undo=function(){ml(this)};ye.prototype.redo=function(){hl(this)};ye.prototype.togglePreview=function(){gl(this)};ye.prototype.toggleSideBySide=function(){Qn(this)};ye.prototype.toggleFullScreen=function(){un(this)};ye.prototype.isPreviewActive=function(){var t=this.codemirror,o=t.getWrapperElement(),n=o.lastChild;return n.classList.contains("editor-preview-active")};ye.prototype.isSideBySideActive=function(){var t=this.codemirror,o=t.getWrapperElement(),n=o.nextSibling;return n.classList.contains("editor-preview-active-side")};ye.prototype.isFullscreenActive=function(){var t=this.codemirror;return t.getOption("fullScreen")};ye.prototype.getState=function(){var t=this.codemirror;return To(t)};ye.prototype.toTextArea=function(){var t=this.codemirror,o=t.getWrapperElement(),n=o.parentNode;n&&(this.gui.toolbar&&n.removeChild(this.gui.toolbar),this.gui.statusbar&&n.removeChild(this.gui.statusbar),this.gui.sideBySide&&n.removeChild(this.gui.sideBySide)),n.parentNode.insertBefore(o,n),n.remove(),t.toTextArea(),this.autosaveTimeoutId&&(clearTimeout(this.autosaveTimeoutId),this.autosaveTimeoutId=void 0,this.clearAutosavedValue())};yb.exports=ye});var Sb=Nt((Cb,vl)=>{(function(){function t(p){"use strict";var v={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:`Remove only spaces, ' and " from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids`,type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,describe:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,describe:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,describe:"Parses simple line breaks as <br> (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,describe:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,describe:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",describe:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,describe:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,describe:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,describe:"Support for HTML Tag escaping. ex: <div>foo</div>",type:"boolean"},emoji:{defaultValue:!1,describe:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,describe:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `<em>` and `<strong>`",type:"boolean"},ellipsis:{defaultValue:!0,describe:"Replaces three dots with the ellipsis unicode character",type:"boolean"},completeHTMLDocument:{defaultValue:!1,describe:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` tags",type:"boolean"},metadata:{defaultValue:!1,describe:"Enable support for document metadata (defined at the top of the document between `\xAB\xAB\xAB` and `\xBB\xBB\xBB` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,describe:"Split adjacent blockquote blocks",type:"boolean"}};if(p===!1)return JSON.parse(JSON.stringify(v));var w={};for(var C in v)v.hasOwnProperty(C)&&(w[C]=v[C].defaultValue);return w}function o(){"use strict";var p=t(!0),v={};for(var w in p)p.hasOwnProperty(w)&&(v[w]=!0);return v}var n={},s={},d={},u=t(!0),c="vanilla",m={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:t(!0),allOn:o()};n.helper={},n.extensions={},n.setOption=function(p,v){"use strict";return u[p]=v,this},n.getOption=function(p){"use strict";return u[p]},n.getOptions=function(){"use strict";return u},n.resetOptions=function(){"use strict";u=t(!0)},n.setFlavor=function(p){"use strict";if(!m.hasOwnProperty(p))throw Error(p+" flavor was not found");n.resetOptions();var v=m[p];c=p;for(var w in v)v.hasOwnProperty(w)&&(u[w]=v[w])},n.getFlavor=function(){"use strict";return c},n.getFlavorOptions=function(p){"use strict";if(m.hasOwnProperty(p))return m[p]},n.getDefaultOptions=function(p){"use strict";return t(p)},n.subParser=function(p,v){"use strict";if(n.helper.isString(p))if(typeof v<"u")s[p]=v;else{if(s.hasOwnProperty(p))return s[p];throw Error("SubParser named "+p+" not registered!")}},n.extension=function(p,v){"use strict";if(!n.helper.isString(p))throw Error("Extension 'name' must be a string");if(p=n.helper.stdExtName(p),n.helper.isUndefined(v)){if(!d.hasOwnProperty(p))throw Error("Extension named "+p+" is not registered!");return d[p]}else{typeof v=="function"&&(v=v()),n.helper.isArray(v)||(v=[v]);var w=g(v,p);if(w.valid)d[p]=v;else throw Error(w.error)}},n.getAllExtensions=function(){"use strict";return d},n.removeExtension=function(p){"use strict";delete d[p]},n.resetExtensions=function(){"use strict";d={}};function g(p,v){"use strict";var w=v?"Error in "+v+" extension->":"Error in unnamed extension",C={valid:!0,error:""};n.helper.isArray(p)||(p=[p]);for(var T=0;T<p.length;++T){var z=w+" sub-extension "+T+": ",A=p[T];if(typeof A!="object")return C.valid=!1,C.error=z+"must be an object, but "+typeof A+" given",C;if(!n.helper.isString(A.type))return C.valid=!1,C.error=z+'property "type" must be a string, but '+typeof A.type+" given",C;var V=A.type=A.type.toLowerCase();if(V==="language"&&(V=A.type="lang"),V==="html"&&(V=A.type="output"),V!=="lang"&&V!=="output"&&V!=="listener")return C.valid=!1,C.error=z+"type "+V+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',C;if(V==="listener"){if(n.helper.isUndefined(A.listeners))return C.valid=!1,C.error=z+'. Extensions of type "listener" must have a property called "listeners"',C}else if(n.helper.isUndefined(A.filter)&&n.helper.isUndefined(A.regex))return C.valid=!1,C.error=z+V+' extensions must define either a "regex" property or a "filter" method',C;if(A.listeners){if(typeof A.listeners!="object")return C.valid=!1,C.error=z+'"listeners" property must be an object but '+typeof A.listeners+" given",C;for(var Z in A.listeners)if(A.listeners.hasOwnProperty(Z)&&typeof A.listeners[Z]!="function")return C.valid=!1,C.error=z+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+Z+" must be a function but "+typeof A.listeners[Z]+" given",C}if(A.filter){if(typeof A.filter!="function")return C.valid=!1,C.error=z+'"filter" must be a function, but '+typeof A.filter+" given",C}else if(A.regex){if(n.helper.isString(A.regex)&&(A.regex=new RegExp(A.regex,"g")),!(A.regex instanceof RegExp))return C.valid=!1,C.error=z+'"regex" property must either be a string or a RegExp object, but '+typeof A.regex+" given",C;if(n.helper.isUndefined(A.replace))return C.valid=!1,C.error=z+'"regex" extensions must implement a replace string or function',C}}return C}n.validateExtension=function(p){"use strict";var v=g(p,null);return v.valid?!0:(console.warn(v.error),!1)},n.hasOwnProperty("helper")||(n.helper={}),n.helper.isString=function(p){"use strict";return typeof p=="string"||p instanceof String},n.helper.isFunction=function(p){"use strict";var v={};return p&&v.toString.call(p)==="[object Function]"},n.helper.isArray=function(p){"use strict";return Array.isArray(p)},n.helper.isUndefined=function(p){"use strict";return typeof p>"u"},n.helper.forEach=function(p,v){"use strict";if(n.helper.isUndefined(p))throw new Error("obj param is required");if(n.helper.isUndefined(v))throw new Error("callback param is required");if(!n.helper.isFunction(v))throw new Error("callback param must be a function/closure");if(typeof p.forEach=="function")p.forEach(v);else if(n.helper.isArray(p))for(var w=0;w<p.length;w++)v(p[w],w,p);else if(typeof p=="object")for(var C in p)p.hasOwnProperty(C)&&v(p[C],C,p);else throw new Error("obj does not seem to be an array or an iterable object")},n.helper.stdExtName=function(p){"use strict";return p.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()};function k(p,v){"use strict";var w=v.charCodeAt(0);return"\xA8E"+w+"E"}n.helper.escapeCharactersCallback=k,n.helper.escapeCharacters=function(p,v,w){"use strict";var C="(["+v.replace(/([\[\]\\])/g,"\\$1")+"])";w&&(C="\\\\"+C);var T=new RegExp(C,"g");return p=p.replace(T,k),p},n.helper.unescapeHTMLEntities=function(p){"use strict";return p.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")};var x=function(p,v,w,C){"use strict";var T=C||"",z=T.indexOf("g")>-1,A=new RegExp(v+"|"+w,"g"+T.replace(/g/g,"")),V=new RegExp(v,T.replace(/g/g,"")),Z=[],q,L,U,N,G;do for(q=0;U=A.exec(p);)if(V.test(U[0]))q++||(L=A.lastIndex,N=L-U[0].length);else if(q&&!--q){G=U.index+U[0].length;var J={left:{start:N,end:L},match:{start:L,end:U.index},right:{start:U.index,end:G},wholeMatch:{start:N,end:G}};if(Z.push(J),!z)return Z}while(q&&(A.lastIndex=L));return Z};n.helper.matchRecursiveRegExp=function(p,v,w,C){"use strict";for(var T=x(p,v,w,C),z=[],A=0;A<T.length;++A)z.push([p.slice(T[A].wholeMatch.start,T[A].wholeMatch.end),p.slice(T[A].match.start,T[A].match.end),p.slice(T[A].left.start,T[A].left.end),p.slice(T[A].right.start,T[A].right.end)]);return z},n.helper.replaceRecursiveRegExp=function(p,v,w,C,T){"use strict";if(!n.helper.isFunction(v)){var z=v;v=function(){return z}}var A=x(p,w,C,T),V=p,Z=A.length;if(Z>0){var q=[];A[0].wholeMatch.start!==0&&q.push(p.slice(0,A[0].wholeMatch.start));for(var L=0;L<Z;++L)q.push(v(p.slice(A[L].wholeMatch.start,A[L].wholeMatch.end),p.slice(A[L].match.start,A[L].match.end),p.slice(A[L].left.start,A[L].left.end),p.slice(A[L].right.start,A[L].right.end))),L<Z-1&&q.push(p.slice(A[L].wholeMatch.end,A[L+1].wholeMatch.start));A[Z-1].wholeMatch.end<p.length&&q.push(p.slice(A[Z-1].wholeMatch.end)),V=q.join("")}return V},n.helper.regexIndexOf=function(p,v,w){"use strict";if(!n.helper.isString(p))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(!(v instanceof RegExp))throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var C=p.substring(w||0).search(v);return C>=0?C+(w||0):C},n.helper.splitAtIndex=function(p,v){"use strict";if(!n.helper.isString(p))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[p.substring(0,v),p.substring(v)]},n.helper.encodeEmailAddress=function(p){"use strict";var v=[function(w){return"&#"+w.charCodeAt(0)+";"},function(w){return"&#x"+w.charCodeAt(0).toString(16)+";"},function(w){return w}];return p=p.replace(/./g,function(w){if(w==="@")w=v[Math.floor(Math.random()*2)](w);else{var C=Math.random();w=C>.9?v[2](w):C>.45?v[1](w):v[0](w)}return w}),p},n.helper.padEnd=function(v,w,C){"use strict";return w=w>>0,C=String(C||" "),v.length>w?String(v):(w=w-v.length,w>C.length&&(C+=C.repeat(w/C.length)),String(v)+C.slice(0,w))},typeof console>"u"&&(console={warn:function(p){"use strict";alert(p)},log:function(p){"use strict";alert(p)},error:function(p){"use strict";throw p}}),n.helper.regexes={asteriskDashAndColon:/([*_:~])/g},n.helper.emojis={"+1":"\u{1F44D}","-1":"\u{1F44E}",100:"\u{1F4AF}",1234:"\u{1F522}","1st_place_medal":"\u{1F947}","2nd_place_medal":"\u{1F948}","3rd_place_medal":"\u{1F949}","8ball":"\u{1F3B1}",a:"\u{1F170}\uFE0F",ab:"\u{1F18E}",abc:"\u{1F524}",abcd:"\u{1F521}",accept:"\u{1F251}",aerial_tramway:"\u{1F6A1}",airplane:"\u2708\uFE0F",alarm_clock:"\u23F0",alembic:"\u2697\uFE0F",alien:"\u{1F47D}",ambulance:"\u{1F691}",amphora:"\u{1F3FA}",anchor:"\u2693\uFE0F",angel:"\u{1F47C}",anger:"\u{1F4A2}",angry:"\u{1F620}",anguished:"\u{1F627}",ant:"\u{1F41C}",apple:"\u{1F34E}",aquarius:"\u2652\uFE0F",aries:"\u2648\uFE0F",arrow_backward:"\u25C0\uFE0F",arrow_double_down:"\u23EC",arrow_double_up:"\u23EB",arrow_down:"\u2B07\uFE0F",arrow_down_small:"\u{1F53D}",arrow_forward:"\u25B6\uFE0F",arrow_heading_down:"\u2935\uFE0F",arrow_heading_up:"\u2934\uFE0F",arrow_left:"\u2B05\uFE0F",arrow_lower_left:"\u2199\uFE0F",arrow_lower_right:"\u2198\uFE0F",arrow_right:"\u27A1\uFE0F",arrow_right_hook:"\u21AA\uFE0F",arrow_up:"\u2B06\uFE0F",arrow_up_down:"\u2195\uFE0F",arrow_up_small:"\u{1F53C}",arrow_upper_left:"\u2196\uFE0F",arrow_upper_right:"\u2197\uFE0F",arrows_clockwise:"\u{1F503}",arrows_counterclockwise:"\u{1F504}",art:"\u{1F3A8}",articulated_lorry:"\u{1F69B}",artificial_satellite:"\u{1F6F0}",astonished:"\u{1F632}",athletic_shoe:"\u{1F45F}",atm:"\u{1F3E7}",atom_symbol:"\u269B\uFE0F",avocado:"\u{1F951}",b:"\u{1F171}\uFE0F",baby:"\u{1F476}",baby_bottle:"\u{1F37C}",baby_chick:"\u{1F424}",baby_symbol:"\u{1F6BC}",back:"\u{1F519}",bacon:"\u{1F953}",badminton:"\u{1F3F8}",baggage_claim:"\u{1F6C4}",baguette_bread:"\u{1F956}",balance_scale:"\u2696\uFE0F",balloon:"\u{1F388}",ballot_box:"\u{1F5F3}",ballot_box_with_check:"\u2611\uFE0F",bamboo:"\u{1F38D}",banana:"\u{1F34C}",bangbang:"\u203C\uFE0F",bank:"\u{1F3E6}",bar_chart:"\u{1F4CA}",barber:"\u{1F488}",baseball:"\u26BE\uFE0F",basketball:"\u{1F3C0}",basketball_man:"\u26F9\uFE0F",basketball_woman:"\u26F9\uFE0F‍\u2640\uFE0F",bat:"\u{1F987}",bath:"\u{1F6C0}",bathtub:"\u{1F6C1}",battery:"\u{1F50B}",beach_umbrella:"\u{1F3D6}",bear:"\u{1F43B}",bed:"\u{1F6CF}",bee:"\u{1F41D}",beer:"\u{1F37A}",beers:"\u{1F37B}",beetle:"\u{1F41E}",beginner:"\u{1F530}",bell:"\u{1F514}",bellhop_bell:"\u{1F6CE}",bento:"\u{1F371}",biking_man:"\u{1F6B4}",bike:"\u{1F6B2}",biking_woman:"\u{1F6B4}‍\u2640\uFE0F",bikini:"\u{1F459}",biohazard:"\u2623\uFE0F",bird:"\u{1F426}",birthday:"\u{1F382}",black_circle:"\u26AB\uFE0F",black_flag:"\u{1F3F4}",black_heart:"\u{1F5A4}",black_joker:"\u{1F0CF}",black_large_square:"\u2B1B\uFE0F",black_medium_small_square:"\u25FE\uFE0F",black_medium_square:"\u25FC\uFE0F",black_nib:"\u2712\uFE0F",black_small_square:"\u25AA\uFE0F",black_square_button:"\u{1F532}",blonde_man:"\u{1F471}",blonde_woman:"\u{1F471}‍\u2640\uFE0F",blossom:"\u{1F33C}",blowfish:"\u{1F421}",blue_book:"\u{1F4D8}",blue_car:"\u{1F699}",blue_heart:"\u{1F499}",blush:"\u{1F60A}",boar:"\u{1F417}",boat:"\u26F5\uFE0F",bomb:"\u{1F4A3}",book:"\u{1F4D6}",bookmark:"\u{1F516}",bookmark_tabs:"\u{1F4D1}",books:"\u{1F4DA}",boom:"\u{1F4A5}",boot:"\u{1F462}",bouquet:"\u{1F490}",bowing_man:"\u{1F647}",bow_and_arrow:"\u{1F3F9}",bowing_woman:"\u{1F647}‍\u2640\uFE0F",bowling:"\u{1F3B3}",boxing_glove:"\u{1F94A}",boy:"\u{1F466}",bread:"\u{1F35E}",bride_with_veil:"\u{1F470}",bridge_at_night:"\u{1F309}",briefcase:"\u{1F4BC}",broken_heart:"\u{1F494}",bug:"\u{1F41B}",building_construction:"\u{1F3D7}",bulb:"\u{1F4A1}",bullettrain_front:"\u{1F685}",bullettrain_side:"\u{1F684}",burrito:"\u{1F32F}",bus:"\u{1F68C}",business_suit_levitating:"\u{1F574}",busstop:"\u{1F68F}",bust_in_silhouette:"\u{1F464}",busts_in_silhouette:"\u{1F465}",butterfly:"\u{1F98B}",cactus:"\u{1F335}",cake:"\u{1F370}",calendar:"\u{1F4C6}",call_me_hand:"\u{1F919}",calling:"\u{1F4F2}",camel:"\u{1F42B}",camera:"\u{1F4F7}",camera_flash:"\u{1F4F8}",camping:"\u{1F3D5}",cancer:"\u264B\uFE0F",candle:"\u{1F56F}",candy:"\u{1F36C}",canoe:"\u{1F6F6}",capital_abcd:"\u{1F520}",capricorn:"\u2651\uFE0F",car:"\u{1F697}",card_file_box:"\u{1F5C3}",card_index:"\u{1F4C7}",card_index_dividers:"\u{1F5C2}",carousel_horse:"\u{1F3A0}",carrot:"\u{1F955}",cat:"\u{1F431}",cat2:"\u{1F408}",cd:"\u{1F4BF}",chains:"\u26D3",champagne:"\u{1F37E}",chart:"\u{1F4B9}",chart_with_downwards_trend:"\u{1F4C9}",chart_with_upwards_trend:"\u{1F4C8}",checkered_flag:"\u{1F3C1}",cheese:"\u{1F9C0}",cherries:"\u{1F352}",cherry_blossom:"\u{1F338}",chestnut:"\u{1F330}",chicken:"\u{1F414}",children_crossing:"\u{1F6B8}",chipmunk:"\u{1F43F}",chocolate_bar:"\u{1F36B}",christmas_tree:"\u{1F384}",church:"\u26EA\uFE0F",cinema:"\u{1F3A6}",circus_tent:"\u{1F3AA}",city_sunrise:"\u{1F307}",city_sunset:"\u{1F306}",cityscape:"\u{1F3D9}",cl:"\u{1F191}",clamp:"\u{1F5DC}",clap:"\u{1F44F}",clapper:"\u{1F3AC}",classical_building:"\u{1F3DB}",clinking_glasses:"\u{1F942}",clipboard:"\u{1F4CB}",clock1:"\u{1F550}",clock10:"\u{1F559}",clock1030:"\u{1F565}",clock11:"\u{1F55A}",clock1130:"\u{1F566}",clock12:"\u{1F55B}",clock1230:"\u{1F567}",clock130:"\u{1F55C}",clock2:"\u{1F551}",clock230:"\u{1F55D}",clock3:"\u{1F552}",clock330:"\u{1F55E}",clock4:"\u{1F553}",clock430:"\u{1F55F}",clock5:"\u{1F554}",clock530:"\u{1F560}",clock6:"\u{1F555}",clock630:"\u{1F561}",clock7:"\u{1F556}",clock730:"\u{1F562}",clock8:"\u{1F557}",clock830:"\u{1F563}",clock9:"\u{1F558}",clock930:"\u{1F564}",closed_book:"\u{1F4D5}",closed_lock_with_key:"\u{1F510}",closed_umbrella:"\u{1F302}",cloud:"\u2601\uFE0F",cloud_with_lightning:"\u{1F329}",cloud_with_lightning_and_rain:"\u26C8",cloud_with_rain:"\u{1F327}",cloud_with_snow:"\u{1F328}",clown_face:"\u{1F921}",clubs:"\u2663\uFE0F",cocktail:"\u{1F378}",coffee:"\u2615\uFE0F",coffin:"\u26B0\uFE0F",cold_sweat:"\u{1F630}",comet:"\u2604\uFE0F",computer:"\u{1F4BB}",computer_mouse:"\u{1F5B1}",confetti_ball:"\u{1F38A}",confounded:"\u{1F616}",confused:"\u{1F615}",congratulations:"\u3297\uFE0F",construction:"\u{1F6A7}",construction_worker_man:"\u{1F477}",construction_worker_woman:"\u{1F477}‍\u2640\uFE0F",control_knobs:"\u{1F39B}",convenience_store:"\u{1F3EA}",cookie:"\u{1F36A}",cool:"\u{1F192}",policeman:"\u{1F46E}",copyright:"\xA9\uFE0F",corn:"\u{1F33D}",couch_and_lamp:"\u{1F6CB}",couple:"\u{1F46B}",couple_with_heart_woman_man:"\u{1F491}",couple_with_heart_man_man:"\u{1F468}‍\u2764\uFE0F‍\u{1F468}",couple_with_heart_woman_woman:"\u{1F469}‍\u2764\uFE0F‍\u{1F469}",couplekiss_man_man:"\u{1F468}‍\u2764\uFE0F‍\u{1F48B}‍\u{1F468}",couplekiss_man_woman:"\u{1F48F}",couplekiss_woman_woman:"\u{1F469}‍\u2764\uFE0F‍\u{1F48B}‍\u{1F469}",cow:"\u{1F42E}",cow2:"\u{1F404}",cowboy_hat_face:"\u{1F920}",crab:"\u{1F980}",crayon:"\u{1F58D}",credit_card:"\u{1F4B3}",crescent_moon:"\u{1F319}",cricket:"\u{1F3CF}",crocodile:"\u{1F40A}",croissant:"\u{1F950}",crossed_fingers:"\u{1F91E}",crossed_flags:"\u{1F38C}",crossed_swords:"\u2694\uFE0F",crown:"\u{1F451}",cry:"\u{1F622}",crying_cat_face:"\u{1F63F}",crystal_ball:"\u{1F52E}",cucumber:"\u{1F952}",cupid:"\u{1F498}",curly_loop:"\u27B0",currency_exchange:"\u{1F4B1}",curry:"\u{1F35B}",custard:"\u{1F36E}",customs:"\u{1F6C3}",cyclone:"\u{1F300}",dagger:"\u{1F5E1}",dancer:"\u{1F483}",dancing_women:"\u{1F46F}",dancing_men:"\u{1F46F}‍\u2642\uFE0F",dango:"\u{1F361}",dark_sunglasses:"\u{1F576}",dart:"\u{1F3AF}",dash:"\u{1F4A8}",date:"\u{1F4C5}",deciduous_tree:"\u{1F333}",deer:"\u{1F98C}",department_store:"\u{1F3EC}",derelict_house:"\u{1F3DA}",desert:"\u{1F3DC}",desert_island:"\u{1F3DD}",desktop_computer:"\u{1F5A5}",male_detective:"\u{1F575}\uFE0F",diamond_shape_with_a_dot_inside:"\u{1F4A0}",diamonds:"\u2666\uFE0F",disappointed:"\u{1F61E}",disappointed_relieved:"\u{1F625}",dizzy:"\u{1F4AB}",dizzy_face:"\u{1F635}",do_not_litter:"\u{1F6AF}",dog:"\u{1F436}",dog2:"\u{1F415}",dollar:"\u{1F4B5}",dolls:"\u{1F38E}",dolphin:"\u{1F42C}",door:"\u{1F6AA}",doughnut:"\u{1F369}",dove:"\u{1F54A}",dragon:"\u{1F409}",dragon_face:"\u{1F432}",dress:"\u{1F457}",dromedary_camel:"\u{1F42A}",drooling_face:"\u{1F924}",droplet:"\u{1F4A7}",drum:"\u{1F941}",duck:"\u{1F986}",dvd:"\u{1F4C0}","e-mail":"\u{1F4E7}",eagle:"\u{1F985}",ear:"\u{1F442}",ear_of_rice:"\u{1F33E}",earth_africa:"\u{1F30D}",earth_americas:"\u{1F30E}",earth_asia:"\u{1F30F}",egg:"\u{1F95A}",eggplant:"\u{1F346}",eight_pointed_black_star:"\u2734\uFE0F",eight_spoked_asterisk:"\u2733\uFE0F",electric_plug:"\u{1F50C}",elephant:"\u{1F418}",email:"\u2709\uFE0F",end:"\u{1F51A}",envelope_with_arrow:"\u{1F4E9}",euro:"\u{1F4B6}",european_castle:"\u{1F3F0}",european_post_office:"\u{1F3E4}",evergreen_tree:"\u{1F332}",exclamation:"\u2757\uFE0F",expressionless:"\u{1F611}",eye:"\u{1F441}",eye_speech_bubble:"\u{1F441}‍\u{1F5E8}",eyeglasses:"\u{1F453}",eyes:"\u{1F440}",face_with_head_bandage:"\u{1F915}",face_with_thermometer:"\u{1F912}",fist_oncoming:"\u{1F44A}",factory:"\u{1F3ED}",fallen_leaf:"\u{1F342}",family_man_woman_boy:"\u{1F46A}",family_man_boy:"\u{1F468}‍\u{1F466}",family_man_boy_boy:"\u{1F468}‍\u{1F466}‍\u{1F466}",family_man_girl:"\u{1F468}‍\u{1F467}",family_man_girl_boy:"\u{1F468}‍\u{1F467}‍\u{1F466}",family_man_girl_girl:"\u{1F468}‍\u{1F467}‍\u{1F467}",family_man_man_boy:"\u{1F468}‍\u{1F468}‍\u{1F466}",family_man_man_boy_boy:"\u{1F468}‍\u{1F468}‍\u{1F466}‍\u{1F466}",family_man_man_girl:"\u{1F468}‍\u{1F468}‍\u{1F467}",family_man_man_girl_boy:"\u{1F468}‍\u{1F468}‍\u{1F467}‍\u{1F466}",family_man_man_girl_girl:"\u{1F468}‍\u{1F468}‍\u{1F467}‍\u{1F467}",family_man_woman_boy_boy:"\u{1F468}‍\u{1F469}‍\u{1F466}‍\u{1F466}",family_man_woman_girl:"\u{1F468}‍\u{1F469}‍\u{1F467}",family_man_woman_girl_boy:"\u{1F468}‍\u{1F469}‍\u{1F467}‍\u{1F466}",family_man_woman_girl_girl:"\u{1F468}‍\u{1F469}‍\u{1F467}‍\u{1F467}",family_woman_boy:"\u{1F469}‍\u{1F466}",family_woman_boy_boy:"\u{1F469}‍\u{1F466}‍\u{1F466}",family_woman_girl:"\u{1F469}‍\u{1F467}",family_woman_girl_boy:"\u{1F469}‍\u{1F467}‍\u{1F466}",family_woman_girl_girl:"\u{1F469}‍\u{1F467}‍\u{1F467}",family_woman_woman_boy:"\u{1F469}‍\u{1F469}‍\u{1F466}",family_woman_woman_boy_boy:"\u{1F469}‍\u{1F469}‍\u{1F466}‍\u{1F466}",family_woman_woman_girl:"\u{1F469}‍\u{1F469}‍\u{1F467}",family_woman_woman_girl_boy:"\u{1F469}‍\u{1F469}‍\u{1F467}‍\u{1F466}",family_woman_woman_girl_girl:"\u{1F469}‍\u{1F469}‍\u{1F467}‍\u{1F467}",fast_forward:"\u23E9",fax:"\u{1F4E0}",fearful:"\u{1F628}",feet:"\u{1F43E}",female_detective:"\u{1F575}\uFE0F‍\u2640\uFE0F",ferris_wheel:"\u{1F3A1}",ferry:"\u26F4",field_hockey:"\u{1F3D1}",file_cabinet:"\u{1F5C4}",file_folder:"\u{1F4C1}",film_projector:"\u{1F4FD}",film_strip:"\u{1F39E}",fire:"\u{1F525}",fire_engine:"\u{1F692}",fireworks:"\u{1F386}",first_quarter_moon:"\u{1F313}",first_quarter_moon_with_face:"\u{1F31B}",fish:"\u{1F41F}",fish_cake:"\u{1F365}",fishing_pole_and_fish:"\u{1F3A3}",fist_raised:"\u270A",fist_left:"\u{1F91B}",fist_right:"\u{1F91C}",flags:"\u{1F38F}",flashlight:"\u{1F526}",fleur_de_lis:"\u269C\uFE0F",flight_arrival:"\u{1F6EC}",flight_departure:"\u{1F6EB}",floppy_disk:"\u{1F4BE}",flower_playing_cards:"\u{1F3B4}",flushed:"\u{1F633}",fog:"\u{1F32B}",foggy:"\u{1F301}",football:"\u{1F3C8}",footprints:"\u{1F463}",fork_and_knife:"\u{1F374}",fountain:"\u26F2\uFE0F",fountain_pen:"\u{1F58B}",four_leaf_clover:"\u{1F340}",fox_face:"\u{1F98A}",framed_picture:"\u{1F5BC}",free:"\u{1F193}",fried_egg:"\u{1F373}",fried_shrimp:"\u{1F364}",fries:"\u{1F35F}",frog:"\u{1F438}",frowning:"\u{1F626}",frowning_face:"\u2639\uFE0F",frowning_man:"\u{1F64D}‍\u2642\uFE0F",frowning_woman:"\u{1F64D}",middle_finger:"\u{1F595}",fuelpump:"\u26FD\uFE0F",full_moon:"\u{1F315}",full_moon_with_face:"\u{1F31D}",funeral_urn:"\u26B1\uFE0F",game_die:"\u{1F3B2}",gear:"\u2699\uFE0F",gem:"\u{1F48E}",gemini:"\u264A\uFE0F",ghost:"\u{1F47B}",gift:"\u{1F381}",gift_heart:"\u{1F49D}",girl:"\u{1F467}",globe_with_meridians:"\u{1F310}",goal_net:"\u{1F945}",goat:"\u{1F410}",golf:"\u26F3\uFE0F",golfing_man:"\u{1F3CC}\uFE0F",golfing_woman:"\u{1F3CC}\uFE0F‍\u2640\uFE0F",gorilla:"\u{1F98D}",grapes:"\u{1F347}",green_apple:"\u{1F34F}",green_book:"\u{1F4D7}",green_heart:"\u{1F49A}",green_salad:"\u{1F957}",grey_exclamation:"\u2755",grey_question:"\u2754",grimacing:"\u{1F62C}",grin:"\u{1F601}",grinning:"\u{1F600}",guardsman:"\u{1F482}",guardswoman:"\u{1F482}‍\u2640\uFE0F",guitar:"\u{1F3B8}",gun:"\u{1F52B}",haircut_woman:"\u{1F487}",haircut_man:"\u{1F487}‍\u2642\uFE0F",hamburger:"\u{1F354}",hammer:"\u{1F528}",hammer_and_pick:"\u2692",hammer_and_wrench:"\u{1F6E0}",hamster:"\u{1F439}",hand:"\u270B",handbag:"\u{1F45C}",handshake:"\u{1F91D}",hankey:"\u{1F4A9}",hatched_chick:"\u{1F425}",hatching_chick:"\u{1F423}",headphones:"\u{1F3A7}",hear_no_evil:"\u{1F649}",heart:"\u2764\uFE0F",heart_decoration:"\u{1F49F}",heart_eyes:"\u{1F60D}",heart_eyes_cat:"\u{1F63B}",heartbeat:"\u{1F493}",heartpulse:"\u{1F497}",hearts:"\u2665\uFE0F",heavy_check_mark:"\u2714\uFE0F",heavy_division_sign:"\u2797",heavy_dollar_sign:"\u{1F4B2}",heavy_heart_exclamation:"\u2763\uFE0F",heavy_minus_sign:"\u2796",heavy_multiplication_x:"\u2716\uFE0F",heavy_plus_sign:"\u2795",helicopter:"\u{1F681}",herb:"\u{1F33F}",hibiscus:"\u{1F33A}",high_brightness:"\u{1F506}",high_heel:"\u{1F460}",hocho:"\u{1F52A}",hole:"\u{1F573}",honey_pot:"\u{1F36F}",horse:"\u{1F434}",horse_racing:"\u{1F3C7}",hospital:"\u{1F3E5}",hot_pepper:"\u{1F336}",hotdog:"\u{1F32D}",hotel:"\u{1F3E8}",hotsprings:"\u2668\uFE0F",hourglass:"\u231B\uFE0F",hourglass_flowing_sand:"\u23F3",house:"\u{1F3E0}",house_with_garden:"\u{1F3E1}",houses:"\u{1F3D8}",hugs:"\u{1F917}",hushed:"\u{1F62F}",ice_cream:"\u{1F368}",ice_hockey:"\u{1F3D2}",ice_skate:"\u26F8",icecream:"\u{1F366}",id:"\u{1F194}",ideograph_advantage:"\u{1F250}",imp:"\u{1F47F}",inbox_tray:"\u{1F4E5}",incoming_envelope:"\u{1F4E8}",tipping_hand_woman:"\u{1F481}",information_source:"\u2139\uFE0F",innocent:"\u{1F607}",interrobang:"\u2049\uFE0F",iphone:"\u{1F4F1}",izakaya_lantern:"\u{1F3EE}",jack_o_lantern:"\u{1F383}",japan:"\u{1F5FE}",japanese_castle:"\u{1F3EF}",japanese_goblin:"\u{1F47A}",japanese_ogre:"\u{1F479}",jeans:"\u{1F456}",joy:"\u{1F602}",joy_cat:"\u{1F639}",joystick:"\u{1F579}",kaaba:"\u{1F54B}",key:"\u{1F511}",keyboard:"\u2328\uFE0F",keycap_ten:"\u{1F51F}",kick_scooter:"\u{1F6F4}",kimono:"\u{1F458}",kiss:"\u{1F48B}",kissing:"\u{1F617}",kissing_cat:"\u{1F63D}",kissing_closed_eyes:"\u{1F61A}",kissing_heart:"\u{1F618}",kissing_smiling_eyes:"\u{1F619}",kiwi_fruit:"\u{1F95D}",koala:"\u{1F428}",koko:"\u{1F201}",label:"\u{1F3F7}",large_blue_circle:"\u{1F535}",large_blue_diamond:"\u{1F537}",large_orange_diamond:"\u{1F536}",last_quarter_moon:"\u{1F317}",last_quarter_moon_with_face:"\u{1F31C}",latin_cross:"\u271D\uFE0F",laughing:"\u{1F606}",leaves:"\u{1F343}",ledger:"\u{1F4D2}",left_luggage:"\u{1F6C5}",left_right_arrow:"\u2194\uFE0F",leftwards_arrow_with_hook:"\u21A9\uFE0F",lemon:"\u{1F34B}",leo:"\u264C\uFE0F",leopard:"\u{1F406}",level_slider:"\u{1F39A}",libra:"\u264E\uFE0F",light_rail:"\u{1F688}",link:"\u{1F517}",lion:"\u{1F981}",lips:"\u{1F444}",lipstick:"\u{1F484}",lizard:"\u{1F98E}",lock:"\u{1F512}",lock_with_ink_pen:"\u{1F50F}",lollipop:"\u{1F36D}",loop:"\u27BF",loud_sound:"\u{1F50A}",loudspeaker:"\u{1F4E2}",love_hotel:"\u{1F3E9}",love_letter:"\u{1F48C}",low_brightness:"\u{1F505}",lying_face:"\u{1F925}",m:"\u24C2\uFE0F",mag:"\u{1F50D}",mag_right:"\u{1F50E}",mahjong:"\u{1F004}\uFE0F",mailbox:"\u{1F4EB}",mailbox_closed:"\u{1F4EA}",mailbox_with_mail:"\u{1F4EC}",mailbox_with_no_mail:"\u{1F4ED}",man:"\u{1F468}",man_artist:"\u{1F468}‍\u{1F3A8}",man_astronaut:"\u{1F468}‍\u{1F680}",man_cartwheeling:"\u{1F938}‍\u2642\uFE0F",man_cook:"\u{1F468}‍\u{1F373}",man_dancing:"\u{1F57A}",man_facepalming:"\u{1F926}‍\u2642\uFE0F",man_factory_worker:"\u{1F468}‍\u{1F3ED}",man_farmer:"\u{1F468}‍\u{1F33E}",man_firefighter:"\u{1F468}‍\u{1F692}",man_health_worker:"\u{1F468}‍\u2695\uFE0F",man_in_tuxedo:"\u{1F935}",man_judge:"\u{1F468}‍\u2696\uFE0F",man_juggling:"\u{1F939}‍\u2642\uFE0F",man_mechanic:"\u{1F468}‍\u{1F527}",man_office_worker:"\u{1F468}‍\u{1F4BC}",man_pilot:"\u{1F468}‍\u2708\uFE0F",man_playing_handball:"\u{1F93E}‍\u2642\uFE0F",man_playing_water_polo:"\u{1F93D}‍\u2642\uFE0F",man_scientist:"\u{1F468}‍\u{1F52C}",man_shrugging:"\u{1F937}‍\u2642\uFE0F",man_singer:"\u{1F468}‍\u{1F3A4}",man_student:"\u{1F468}‍\u{1F393}",man_teacher:"\u{1F468}‍\u{1F3EB}",man_technologist:"\u{1F468}‍\u{1F4BB}",man_with_gua_pi_mao:"\u{1F472}",man_with_turban:"\u{1F473}",tangerine:"\u{1F34A}",mans_shoe:"\u{1F45E}",mantelpiece_clock:"\u{1F570}",maple_leaf:"\u{1F341}",martial_arts_uniform:"\u{1F94B}",mask:"\u{1F637}",massage_woman:"\u{1F486}",massage_man:"\u{1F486}‍\u2642\uFE0F",meat_on_bone:"\u{1F356}",medal_military:"\u{1F396}",medal_sports:"\u{1F3C5}",mega:"\u{1F4E3}",melon:"\u{1F348}",memo:"\u{1F4DD}",men_wrestling:"\u{1F93C}‍\u2642\uFE0F",menorah:"\u{1F54E}",mens:"\u{1F6B9}",metal:"\u{1F918}",metro:"\u{1F687}",microphone:"\u{1F3A4}",microscope:"\u{1F52C}",milk_glass:"\u{1F95B}",milky_way:"\u{1F30C}",minibus:"\u{1F690}",minidisc:"\u{1F4BD}",mobile_phone_off:"\u{1F4F4}",money_mouth_face:"\u{1F911}",money_with_wings:"\u{1F4B8}",moneybag:"\u{1F4B0}",monkey:"\u{1F412}",monkey_face:"\u{1F435}",monorail:"\u{1F69D}",moon:"\u{1F314}",mortar_board:"\u{1F393}",mosque:"\u{1F54C}",motor_boat:"\u{1F6E5}",motor_scooter:"\u{1F6F5}",motorcycle:"\u{1F3CD}",motorway:"\u{1F6E3}",mount_fuji:"\u{1F5FB}",mountain:"\u26F0",mountain_biking_man:"\u{1F6B5}",mountain_biking_woman:"\u{1F6B5}‍\u2640\uFE0F",mountain_cableway:"\u{1F6A0}",mountain_railway:"\u{1F69E}",mountain_snow:"\u{1F3D4}",mouse:"\u{1F42D}",mouse2:"\u{1F401}",movie_camera:"\u{1F3A5}",moyai:"\u{1F5FF}",mrs_claus:"\u{1F936}",muscle:"\u{1F4AA}",mushroom:"\u{1F344}",musical_keyboard:"\u{1F3B9}",musical_note:"\u{1F3B5}",musical_score:"\u{1F3BC}",mute:"\u{1F507}",nail_care:"\u{1F485}",name_badge:"\u{1F4DB}",national_park:"\u{1F3DE}",nauseated_face:"\u{1F922}",necktie:"\u{1F454}",negative_squared_cross_mark:"\u274E",nerd_face:"\u{1F913}",neutral_face:"\u{1F610}",new:"\u{1F195}",new_moon:"\u{1F311}",new_moon_with_face:"\u{1F31A}",newspaper:"\u{1F4F0}",newspaper_roll:"\u{1F5DE}",next_track_button:"\u23ED",ng:"\u{1F196}",no_good_man:"\u{1F645}‍\u2642\uFE0F",no_good_woman:"\u{1F645}",night_with_stars:"\u{1F303}",no_bell:"\u{1F515}",no_bicycles:"\u{1F6B3}",no_entry:"\u26D4\uFE0F",no_entry_sign:"\u{1F6AB}",no_mobile_phones:"\u{1F4F5}",no_mouth:"\u{1F636}",no_pedestrians:"\u{1F6B7}",no_smoking:"\u{1F6AD}","non-potable_water":"\u{1F6B1}",nose:"\u{1F443}",notebook:"\u{1F4D3}",notebook_with_decorative_cover:"\u{1F4D4}",notes:"\u{1F3B6}",nut_and_bolt:"\u{1F529}",o:"\u2B55\uFE0F",o2:"\u{1F17E}\uFE0F",ocean:"\u{1F30A}",octopus:"\u{1F419}",oden:"\u{1F362}",office:"\u{1F3E2}",oil_drum:"\u{1F6E2}",ok:"\u{1F197}",ok_hand:"\u{1F44C}",ok_man:"\u{1F646}‍\u2642\uFE0F",ok_woman:"\u{1F646}",old_key:"\u{1F5DD}",older_man:"\u{1F474}",older_woman:"\u{1F475}",om:"\u{1F549}",on:"\u{1F51B}",oncoming_automobile:"\u{1F698}",oncoming_bus:"\u{1F68D}",oncoming_police_car:"\u{1F694}",oncoming_taxi:"\u{1F696}",open_file_folder:"\u{1F4C2}",open_hands:"\u{1F450}",open_mouth:"\u{1F62E}",open_umbrella:"\u2602\uFE0F",ophiuchus:"\u26CE",orange_book:"\u{1F4D9}",orthodox_cross:"\u2626\uFE0F",outbox_tray:"\u{1F4E4}",owl:"\u{1F989}",ox:"\u{1F402}",package:"\u{1F4E6}",page_facing_up:"\u{1F4C4}",page_with_curl:"\u{1F4C3}",pager:"\u{1F4DF}",paintbrush:"\u{1F58C}",palm_tree:"\u{1F334}",pancakes:"\u{1F95E}",panda_face:"\u{1F43C}",paperclip:"\u{1F4CE}",paperclips:"\u{1F587}",parasol_on_ground:"\u26F1",parking:"\u{1F17F}\uFE0F",part_alternation_mark:"\u303D\uFE0F",partly_sunny:"\u26C5\uFE0F",passenger_ship:"\u{1F6F3}",passport_control:"\u{1F6C2}",pause_button:"\u23F8",peace_symbol:"\u262E\uFE0F",peach:"\u{1F351}",peanuts:"\u{1F95C}",pear:"\u{1F350}",pen:"\u{1F58A}",pencil2:"\u270F\uFE0F",penguin:"\u{1F427}",pensive:"\u{1F614}",performing_arts:"\u{1F3AD}",persevere:"\u{1F623}",person_fencing:"\u{1F93A}",pouting_woman:"\u{1F64E}",phone:"\u260E\uFE0F",pick:"\u26CF",pig:"\u{1F437}",pig2:"\u{1F416}",pig_nose:"\u{1F43D}",pill:"\u{1F48A}",pineapple:"\u{1F34D}",ping_pong:"\u{1F3D3}",pisces:"\u2653\uFE0F",pizza:"\u{1F355}",place_of_worship:"\u{1F6D0}",plate_with_cutlery:"\u{1F37D}",play_or_pause_button:"\u23EF",point_down:"\u{1F447}",point_left:"\u{1F448}",point_right:"\u{1F449}",point_up:"\u261D\uFE0F",point_up_2:"\u{1F446}",police_car:"\u{1F693}",policewoman:"\u{1F46E}‍\u2640\uFE0F",poodle:"\u{1F429}",popcorn:"\u{1F37F}",post_office:"\u{1F3E3}",postal_horn:"\u{1F4EF}",postbox:"\u{1F4EE}",potable_water:"\u{1F6B0}",potato:"\u{1F954}",pouch:"\u{1F45D}",poultry_leg:"\u{1F357}",pound:"\u{1F4B7}",rage:"\u{1F621}",pouting_cat:"\u{1F63E}",pouting_man:"\u{1F64E}‍\u2642\uFE0F",pray:"\u{1F64F}",prayer_beads:"\u{1F4FF}",pregnant_woman:"\u{1F930}",previous_track_button:"\u23EE",prince:"\u{1F934}",princess:"\u{1F478}",printer:"\u{1F5A8}",purple_heart:"\u{1F49C}",purse:"\u{1F45B}",pushpin:"\u{1F4CC}",put_litter_in_its_place:"\u{1F6AE}",question:"\u2753",rabbit:"\u{1F430}",rabbit2:"\u{1F407}",racehorse:"\u{1F40E}",racing_car:"\u{1F3CE}",radio:"\u{1F4FB}",radio_button:"\u{1F518}",radioactive:"\u2622\uFE0F",railway_car:"\u{1F683}",railway_track:"\u{1F6E4}",rainbow:"\u{1F308}",rainbow_flag:"\u{1F3F3}\uFE0F‍\u{1F308}",raised_back_of_hand:"\u{1F91A}",raised_hand_with_fingers_splayed:"\u{1F590}",raised_hands:"\u{1F64C}",raising_hand_woman:"\u{1F64B}",raising_hand_man:"\u{1F64B}‍\u2642\uFE0F",ram:"\u{1F40F}",ramen:"\u{1F35C}",rat:"\u{1F400}",record_button:"\u23FA",recycle:"\u267B\uFE0F",red_circle:"\u{1F534}",registered:"\xAE\uFE0F",relaxed:"\u263A\uFE0F",relieved:"\u{1F60C}",reminder_ribbon:"\u{1F397}",repeat:"\u{1F501}",repeat_one:"\u{1F502}",rescue_worker_helmet:"\u26D1",restroom:"\u{1F6BB}",revolving_hearts:"\u{1F49E}",rewind:"\u23EA",rhinoceros:"\u{1F98F}",ribbon:"\u{1F380}",rice:"\u{1F35A}",rice_ball:"\u{1F359}",rice_cracker:"\u{1F358}",rice_scene:"\u{1F391}",right_anger_bubble:"\u{1F5EF}",ring:"\u{1F48D}",robot:"\u{1F916}",rocket:"\u{1F680}",rofl:"\u{1F923}",roll_eyes:"\u{1F644}",roller_coaster:"\u{1F3A2}",rooster:"\u{1F413}",rose:"\u{1F339}",rosette:"\u{1F3F5}",rotating_light:"\u{1F6A8}",round_pushpin:"\u{1F4CD}",rowing_man:"\u{1F6A3}",rowing_woman:"\u{1F6A3}‍\u2640\uFE0F",rugby_football:"\u{1F3C9}",running_man:"\u{1F3C3}",running_shirt_with_sash:"\u{1F3BD}",running_woman:"\u{1F3C3}‍\u2640\uFE0F",sa:"\u{1F202}\uFE0F",sagittarius:"\u2650\uFE0F",sake:"\u{1F376}",sandal:"\u{1F461}",santa:"\u{1F385}",satellite:"\u{1F4E1}",saxophone:"\u{1F3B7}",school:"\u{1F3EB}",school_satchel:"\u{1F392}",scissors:"\u2702\uFE0F",scorpion:"\u{1F982}",scorpius:"\u264F\uFE0F",scream:"\u{1F631}",scream_cat:"\u{1F640}",scroll:"\u{1F4DC}",seat:"\u{1F4BA}",secret:"\u3299\uFE0F",see_no_evil:"\u{1F648}",seedling:"\u{1F331}",selfie:"\u{1F933}",shallow_pan_of_food:"\u{1F958}",shamrock:"\u2618\uFE0F",shark:"\u{1F988}",shaved_ice:"\u{1F367}",sheep:"\u{1F411}",shell:"\u{1F41A}",shield:"\u{1F6E1}",shinto_shrine:"\u26E9",ship:"\u{1F6A2}",shirt:"\u{1F455}",shopping:"\u{1F6CD}",shopping_cart:"\u{1F6D2}",shower:"\u{1F6BF}",shrimp:"\u{1F990}",signal_strength:"\u{1F4F6}",six_pointed_star:"\u{1F52F}",ski:"\u{1F3BF}",skier:"\u26F7",skull:"\u{1F480}",skull_and_crossbones:"\u2620\uFE0F",sleeping:"\u{1F634}",sleeping_bed:"\u{1F6CC}",sleepy:"\u{1F62A}",slightly_frowning_face:"\u{1F641}",slightly_smiling_face:"\u{1F642}",slot_machine:"\u{1F3B0}",small_airplane:"\u{1F6E9}",small_blue_diamond:"\u{1F539}",small_orange_diamond:"\u{1F538}",small_red_triangle:"\u{1F53A}",small_red_triangle_down:"\u{1F53B}",smile:"\u{1F604}",smile_cat:"\u{1F638}",smiley:"\u{1F603}",smiley_cat:"\u{1F63A}",smiling_imp:"\u{1F608}",smirk:"\u{1F60F}",smirk_cat:"\u{1F63C}",smoking:"\u{1F6AC}",snail:"\u{1F40C}",snake:"\u{1F40D}",sneezing_face:"\u{1F927}",snowboarder:"\u{1F3C2}",snowflake:"\u2744\uFE0F",snowman:"\u26C4\uFE0F",snowman_with_snow:"\u2603\uFE0F",sob:"\u{1F62D}",soccer:"\u26BD\uFE0F",soon:"\u{1F51C}",sos:"\u{1F198}",sound:"\u{1F509}",space_invader:"\u{1F47E}",spades:"\u2660\uFE0F",spaghetti:"\u{1F35D}",sparkle:"\u2747\uFE0F",sparkler:"\u{1F387}",sparkles:"\u2728",sparkling_heart:"\u{1F496}",speak_no_evil:"\u{1F64A}",speaker:"\u{1F508}",speaking_head:"\u{1F5E3}",speech_balloon:"\u{1F4AC}",speedboat:"\u{1F6A4}",spider:"\u{1F577}",spider_web:"\u{1F578}",spiral_calendar:"\u{1F5D3}",spiral_notepad:"\u{1F5D2}",spoon:"\u{1F944}",squid:"\u{1F991}",stadium:"\u{1F3DF}",star:"\u2B50\uFE0F",star2:"\u{1F31F}",star_and_crescent:"\u262A\uFE0F",star_of_david:"\u2721\uFE0F",stars:"\u{1F320}",station:"\u{1F689}",statue_of_liberty:"\u{1F5FD}",steam_locomotive:"\u{1F682}",stew:"\u{1F372}",stop_button:"\u23F9",stop_sign:"\u{1F6D1}",stopwatch:"\u23F1",straight_ruler:"\u{1F4CF}",strawberry:"\u{1F353}",stuck_out_tongue:"\u{1F61B}",stuck_out_tongue_closed_eyes:"\u{1F61D}",stuck_out_tongue_winking_eye:"\u{1F61C}",studio_microphone:"\u{1F399}",stuffed_flatbread:"\u{1F959}",sun_behind_large_cloud:"\u{1F325}",sun_behind_rain_cloud:"\u{1F326}",sun_behind_small_cloud:"\u{1F324}",sun_with_face:"\u{1F31E}",sunflower:"\u{1F33B}",sunglasses:"\u{1F60E}",sunny:"\u2600\uFE0F",sunrise:"\u{1F305}",sunrise_over_mountains:"\u{1F304}",surfing_man:"\u{1F3C4}",surfing_woman:"\u{1F3C4}‍\u2640\uFE0F",sushi:"\u{1F363}",suspension_railway:"\u{1F69F}",sweat:"\u{1F613}",sweat_drops:"\u{1F4A6}",sweat_smile:"\u{1F605}",sweet_potato:"\u{1F360}",swimming_man:"\u{1F3CA}",swimming_woman:"\u{1F3CA}‍\u2640\uFE0F",symbols:"\u{1F523}",synagogue:"\u{1F54D}",syringe:"\u{1F489}",taco:"\u{1F32E}",tada:"\u{1F389}",tanabata_tree:"\u{1F38B}",taurus:"\u2649\uFE0F",taxi:"\u{1F695}",tea:"\u{1F375}",telephone_receiver:"\u{1F4DE}",telescope:"\u{1F52D}",tennis:"\u{1F3BE}",tent:"\u26FA\uFE0F",thermometer:"\u{1F321}",thinking:"\u{1F914}",thought_balloon:"\u{1F4AD}",ticket:"\u{1F3AB}",tickets:"\u{1F39F}",tiger:"\u{1F42F}",tiger2:"\u{1F405}",timer_clock:"\u23F2",tipping_hand_man:"\u{1F481}‍\u2642\uFE0F",tired_face:"\u{1F62B}",tm:"\u2122\uFE0F",toilet:"\u{1F6BD}",tokyo_tower:"\u{1F5FC}",tomato:"\u{1F345}",tongue:"\u{1F445}",top:"\u{1F51D}",tophat:"\u{1F3A9}",tornado:"\u{1F32A}",trackball:"\u{1F5B2}",tractor:"\u{1F69C}",traffic_light:"\u{1F6A5}",train:"\u{1F68B}",train2:"\u{1F686}",tram:"\u{1F68A}",triangular_flag_on_post:"\u{1F6A9}",triangular_ruler:"\u{1F4D0}",trident:"\u{1F531}",triumph:"\u{1F624}",trolleybus:"\u{1F68E}",trophy:"\u{1F3C6}",tropical_drink:"\u{1F379}",tropical_fish:"\u{1F420}",truck:"\u{1F69A}",trumpet:"\u{1F3BA}",tulip:"\u{1F337}",tumbler_glass:"\u{1F943}",turkey:"\u{1F983}",turtle:"\u{1F422}",tv:"\u{1F4FA}",twisted_rightwards_arrows:"\u{1F500}",two_hearts:"\u{1F495}",two_men_holding_hands:"\u{1F46C}",two_women_holding_hands:"\u{1F46D}",u5272:"\u{1F239}",u5408:"\u{1F234}",u55b6:"\u{1F23A}",u6307:"\u{1F22F}\uFE0F",u6708:"\u{1F237}\uFE0F",u6709:"\u{1F236}",u6e80:"\u{1F235}",u7121:"\u{1F21A}\uFE0F",u7533:"\u{1F238}",u7981:"\u{1F232}",u7a7a:"\u{1F233}",umbrella:"\u2614\uFE0F",unamused:"\u{1F612}",underage:"\u{1F51E}",unicorn:"\u{1F984}",unlock:"\u{1F513}",up:"\u{1F199}",upside_down_face:"\u{1F643}",v:"\u270C\uFE0F",vertical_traffic_light:"\u{1F6A6}",vhs:"\u{1F4FC}",vibration_mode:"\u{1F4F3}",video_camera:"\u{1F4F9}",video_game:"\u{1F3AE}",violin:"\u{1F3BB}",virgo:"\u264D\uFE0F",volcano:"\u{1F30B}",volleyball:"\u{1F3D0}",vs:"\u{1F19A}",vulcan_salute:"\u{1F596}",walking_man:"\u{1F6B6}",walking_woman:"\u{1F6B6}‍\u2640\uFE0F",waning_crescent_moon:"\u{1F318}",waning_gibbous_moon:"\u{1F316}",warning:"\u26A0\uFE0F",wastebasket:"\u{1F5D1}",watch:"\u231A\uFE0F",water_buffalo:"\u{1F403}",watermelon:"\u{1F349}",wave:"\u{1F44B}",wavy_dash:"\u3030\uFE0F",waxing_crescent_moon:"\u{1F312}",wc:"\u{1F6BE}",weary:"\u{1F629}",wedding:"\u{1F492}",weight_lifting_man:"\u{1F3CB}\uFE0F",weight_lifting_woman:"\u{1F3CB}\uFE0F‍\u2640\uFE0F",whale:"\u{1F433}",whale2:"\u{1F40B}",wheel_of_dharma:"\u2638\uFE0F",wheelchair:"\u267F\uFE0F",white_check_mark:"\u2705",white_circle:"\u26AA\uFE0F",white_flag:"\u{1F3F3}\uFE0F",white_flower:"\u{1F4AE}",white_large_square:"\u2B1C\uFE0F",white_medium_small_square:"\u25FD\uFE0F",white_medium_square:"\u25FB\uFE0F",white_small_square:"\u25AB\uFE0F",white_square_button:"\u{1F533}",wilted_flower:"\u{1F940}",wind_chime:"\u{1F390}",wind_face:"\u{1F32C}",wine_glass:"\u{1F377}",wink:"\u{1F609}",wolf:"\u{1F43A}",woman:"\u{1F469}",woman_artist:"\u{1F469}‍\u{1F3A8}",woman_astronaut:"\u{1F469}‍\u{1F680}",woman_cartwheeling:"\u{1F938}‍\u2640\uFE0F",woman_cook:"\u{1F469}‍\u{1F373}",woman_facepalming:"\u{1F926}‍\u2640\uFE0F",woman_factory_worker:"\u{1F469}‍\u{1F3ED}",woman_farmer:"\u{1F469}‍\u{1F33E}",woman_firefighter:"\u{1F469}‍\u{1F692}",woman_health_worker:"\u{1F469}‍\u2695\uFE0F",woman_judge:"\u{1F469}‍\u2696\uFE0F",woman_juggling:"\u{1F939}‍\u2640\uFE0F",woman_mechanic:"\u{1F469}‍\u{1F527}",woman_office_worker:"\u{1F469}‍\u{1F4BC}",woman_pilot:"\u{1F469}‍\u2708\uFE0F",woman_playing_handball:"\u{1F93E}‍\u2640\uFE0F",woman_playing_water_polo:"\u{1F93D}‍\u2640\uFE0F",woman_scientist:"\u{1F469}‍\u{1F52C}",woman_shrugging:"\u{1F937}‍\u2640\uFE0F",woman_singer:"\u{1F469}‍\u{1F3A4}",woman_student:"\u{1F469}‍\u{1F393}",woman_teacher:"\u{1F469}‍\u{1F3EB}",woman_technologist:"\u{1F469}‍\u{1F4BB}",woman_with_turban:"\u{1F473}‍\u2640\uFE0F",womans_clothes:"\u{1F45A}",womans_hat:"\u{1F452}",women_wrestling:"\u{1F93C}‍\u2640\uFE0F",womens:"\u{1F6BA}",world_map:"\u{1F5FA}",worried:"\u{1F61F}",wrench:"\u{1F527}",writing_hand:"\u270D\uFE0F",x:"\u274C",yellow_heart:"\u{1F49B}",yen:"\u{1F4B4}",yin_yang:"\u262F\uFE0F",yum:"\u{1F60B}",zap:"\u26A1\uFE0F",zipper_mouth_face:"\u{1F910}",zzz:"\u{1F4A4}",octocat:'<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',showdown:`<span style="font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;">S</span>`},n.Converter=function(p){"use strict";var v={},w=[],C=[],T={},z=c,A={parsed:{},raw:"",format:""};V();function V(){p=p||{};for(var N in u)u.hasOwnProperty(N)&&(v[N]=u[N]);if(typeof p=="object")for(var G in p)p.hasOwnProperty(G)&&(v[G]=p[G]);else throw Error("Converter expects the passed parameter to be an object, but "+typeof p+" was passed instead.");v.extensions&&n.helper.forEach(v.extensions,Z)}function Z(N,G){if(G=G||null,n.helper.isString(N))if(N=n.helper.stdExtName(N),G=N,n.extensions[N]){console.warn("DEPRECATION WARNING: "+N+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),q(n.extensions[N],N);return}else if(!n.helper.isUndefined(d[N]))N=d[N];else throw Error('Extension "'+N+'" could not be loaded. It was either not found or is not a valid extension.');typeof N=="function"&&(N=N()),n.helper.isArray(N)||(N=[N]);var J=g(N,G);if(!J.valid)throw Error(J.error);for(var ne=0;ne<N.length;++ne){switch(N[ne].type){case"lang":w.push(N[ne]);break;case"output":C.push(N[ne]);break}if(N[ne].hasOwnProperty("listeners"))for(var Ne in N[ne].listeners)N[ne].listeners.hasOwnProperty(Ne)&&L(Ne,N[ne].listeners[Ne])}}function q(N,G){typeof N=="function"&&(N=N(new n.Converter)),n.helper.isArray(N)||(N=[N]);var J=g(N,G);if(!J.valid)throw Error(J.error);for(var ne=0;ne<N.length;++ne)switch(N[ne].type){case"lang":w.push(N[ne]);break;case"output":C.push(N[ne]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}function L(N,G){if(!n.helper.isString(N))throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof N+" given");if(typeof G!="function")throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof G+" given");T.hasOwnProperty(N)||(T[N]=[]),T[N].push(G)}function U(N){var G=N.match(/^\s*/)[0].length,J=new RegExp("^\\s{0,"+G+"}","gm");return N.replace(J,"")}this._dispatch=function(G,J,ne,Ne){if(T.hasOwnProperty(G))for(var P=0;P<T[G].length;++P){var S=T[G][P](G,J,this,ne,Ne);S&&typeof S<"u"&&(J=S)}return J},this.listen=function(N,G){return L(N,G),this},this.makeHtml=function(N){if(!N)return N;var G={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:w,outputModifiers:C,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return N=N.replace(/¨/g,"\xA8T"),N=N.replace(/\$/g,"\xA8D"),N=N.replace(/\r\n/g,`
|
|
`),N=N.replace(/\r/g,`
|
|
`),N=N.replace(/\u00A0/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,"\xA8"),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]+</,">\xA8NBSP;<"),!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="\xA8E95Eblank"'),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="\xA8E95Eblank"'),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}},j=function(p,v){"use strict";return function(w,C,T){var z="mailto:";return C=C||"",T=n.subParser("unescapeSpecialChars")(T,p,v),p.encodeEmails?(z=n.helper.encodeEmailAddress(z+T),T=n.helper.encodeEmailAddress(T)):z=z+T,C+'<a href="'+z+'">'+T+"</a>"}};n.subParser("autoLinks",function(p,v,w){"use strict";return p=w.converter._dispatch("autoLinks.before",p,v,w),p=p.replace(O,R(v)),p=p.replace(I,j(v,w)),p=w.converter._dispatch("autoLinks.after",p,v,w),p}),n.subParser("simplifiedAutoLinks",function(p,v,w){"use strict";return v.simplifiedAutoLink&&(p=w.converter._dispatch("simplifiedAutoLinks.before",p,v,w),v.excludeTrailingPunctuationFromURLs?p=p.replace(D,R(v)):p=p.replace(_,R(v)),p=p.replace(H,j(v,w)),p=w.converter._dispatch("simplifiedAutoLinks.after",p,v,w)),p}),n.subParser("blockGamut",function(p,v,w){"use strict";return p=w.converter._dispatch("blockGamut.before",p,v,w),p=n.subParser("blockQuotes")(p,v,w),p=n.subParser("headers")(p,v,w),p=n.subParser("horizontalRule")(p,v,w),p=n.subParser("lists")(p,v,w),p=n.subParser("codeBlocks")(p,v,w),p=n.subParser("tables")(p,v,w),p=n.subParser("hashHTMLBlocks")(p,v,w),p=n.subParser("paragraphs")(p,v,w),p=w.converter._dispatch("blockGamut.after",p,v,w),p}),n.subParser("blockQuotes",function(p,v,w){"use strict";p=w.converter._dispatch("blockQuotes.before",p,v,w),p=p+`
|
|
|
|
`;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,"\xA80"),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+`</title>
|
|
`;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+`</head>
|
|
<body>
|
|
`+p.trim()+`
|
|
</body>
|
|
</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"\xA8C"+(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(/\bmarkdown\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"\xA8C"+(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("\xA8C"+A+"C",w.gHtmlSpans[A]),z===10){console.error("maximum nesting of 10 spans reached!!!");break}++z}p=p.replace("\xA8C"+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),p}),n.subParser("italicsAndBold",function(p,v,w){"use strict";p=w.converter._dispatch("italicsAndBold.before",p,v,w);function C(T,z,A){return z+T+A}return v.literalMidWordUnderscores?(p=p.replace(/\b___(\S[\s\S]*?)___\b/g,function(T,z){return C(z,"<strong><em>","</em></strong>")}),p=p.replace(/\b__(\S[\s\S]*?)__\b/g,function(T,z){return C(z,"<strong>","</strong>")}),p=p.replace(/\b_(\S[\s\S]*?)_\b/g,function(T,z){return C(z,"<em>","</em>")})):(p=p.replace(/___(\S[\s\S]*?)___/g,function(T,z){return/\S$/.test(z)?C(z,"<strong><em>","</em></strong>"):T}),p=p.replace(/__(\S[\s\S]*?)__/g,function(T,z){return/\S$/.test(z)?C(z,"<strong>","</strong>"):T}),p=p.replace(/_([^\s_][\s\S]*?)_/g,function(T,z){return/\S$/.test(z)?C(z,"<em>","</em>"):T})),v.literalMidWordAsterisks?(p=p.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,function(T,z,A){return C(A,z+"<strong><em>","</em></strong>")}),p=p.replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,function(T,z,A){return C(A,z+"<strong>","</strong>")}),p=p.replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,function(T,z,A){return C(A,z+"<em>","</em>")})):(p=p.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,function(T,z){return/\S$/.test(z)?C(z,"<strong><em>","</em></strong>"):T}),p=p.replace(/\*\*(\S[\s\S]*?)\*\*/g,function(T,z){return/\S$/.test(z)?C(z,"<strong>","</strong>"):T}),p=p.replace(/\*([^\s*][\s\S]*?)\*/g,function(T,z){return/\S$/.test(z)?C(z,"<em>","</em>"):T})),p=w.converter._dispatch("italicsAndBold.after",p,v,w),p}),n.subParser("lists",function(p,v,w){"use strict";function C(A,V){w.gListLevel++,A=A.replace(/\n{2,}$/,`
|
|
`),A+="\xA80";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"\xA8A"+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("\xA8A",""),P="<li"+S+">"+P+`</li>
|
|
`,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+="\xA80",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),"\xA8M"}),p=p.replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,function(T,z,A){return z&&(w.metadata.format=z),C(A),"\xA8M"}),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,"\xA80"),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+="\xA80";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+`</th>
|
|
`}function V(L,U){var N=n.subParser("spanGamut")(L,v,w);return"<td"+U+">"+N+`</td>
|
|
`}function Z(L,U){for(var N=`<table>
|
|
<thead>
|
|
<tr>
|
|
`,G=L.length,J=0;J<G;++J)N+=L[J];for(N+=`</tr>
|
|
</thead>
|
|
<tbody>
|
|
`,J=0;J<U.length;++J){N+=`<tr>
|
|
`;for(var ne=0;ne<G;++ne)N+=U[J][ne];N+=`</tr>
|
|
`}return N+=`</tbody>
|
|
</table>
|
|
`,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,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",nw="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics";var xp=fr(rw),yp=fr(ow),kp=fr(nw);var _p="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ep=fr(_p),iw=fr(_p+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function Za(t){return!!t||t===""}var Ld=t=>ut(t)?t:t==null?"":Me(t)||Xe(t)&&(t.toString===vp||!ze(t.toString))?JSON.stringify(t,Dp,2):String(t),Dp=(t,o)=>o&&o.__v_isRef?Dp(t,o.value):qr(o)?{[`Map(${o.size})`]:[...o.entries()].reduce((n,[s,d],u)=>(n[Sd(s,u)+" =>"]=d,n),{})}:Wa(o)?{[`Set(${o.size})`]:[...o.values()].map(n=>Sd(n))}:Go(o)?Sd(o):Xe(o)&&!Me(o)&&!Nd(o)?String(o):o,Sd=(t,o="")=>{var n;return Go(t)?`Symbol(${(n=t.description)!=null?n:o})`:t};function Fd(t,...o){console.warn(`[Vue warn] ${t}`,...o)}var yr,Fi=class{constructor(o=!1){this.detached=o,this._active=!0,this.effects=[],this.cleanups=[],this.parent=yr,!o&&yr&&(this.index=(yr.scopes||(yr.scopes=[])).push(this)-1)}get active(){return this._active}run(o){if(this._active){let n=yr;try{return yr=this,o()}finally{yr=n}}else Fd("cannot run an inactive effect scope.")}on(){yr=this}off(){yr=this.parent}stop(o){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!o){let d=this.parent.scopes.pop();d&&d!==this&&(this.parent.scopes[this.index]=d,d.index=this.index)}this.parent=void 0,this._active=!1}}};function aw(t,o=yr){o&&o.active&&o.effects.push(t)}function Id(){return yr}var Yo,Zo=class{constructor(o,n,s,d){this.fn=o,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,aw(this,d)}get dirty(){if(this._dirtyLevel===1){Kr();for(let o=0;o<this._depsLength;o++){let n=this.deps[o];if(n.computed&&(sw(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),Yr()}return this._dirtyLevel>=2}set dirty(o){this._dirtyLevel=o?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let o=bo,n=Yo;try{return bo=!0,Yo=this,this._runnings++,Cp(this),this.fn()}finally{Sp(this),this._runnings--,Yo=n,bo=o}}stop(){var o;this.active&&(Cp(this),Sp(this),(o=this.onStop)==null||o.call(this),this.active=!1)}};function sw(t){return t.value}function Cp(t){t._trackId++,t._depsLength=0}function Sp(t){if(t.deps&&t.deps.length>t._depsLength){for(let o=t._depsLength;o<t.deps.length;o++)Fp(t.deps[o],t);t.deps.length=t._depsLength}}function Fp(t,o){let n=t.get(o);n!==void 0&&o._trackId!==n&&(t.delete(o),t.size===0&&t.cleanup())}var bo=!0,Md=0,Mp=[];function Kr(){Mp.push(bo),bo=!1}function Yr(){let t=Mp.pop();bo=t===void 0?!0:t}function Hd(){Md++}function jd(){for(Md--;!Md&&Pd.length;)Pd.shift()()}function Pp(t,o,n){var s;if(o.get(t)!==t._trackId){o.set(t,t._trackId);let d=t.deps[t._depsLength];d!==o?(d&&Fp(d,t),t.deps[t._depsLength++]=o):t._depsLength++,(s=t.onTrack)==null||s.call(t,it({effect:t},n))}}var Pd=[];function Rp(t,o,n){var s;Hd();for(let d of t.keys())if(d._dirtyLevel<o&&t.get(d)===d._trackId){let u=d._dirtyLevel;d._dirtyLevel=o,u===0&&(d._shouldSchedule=!0,(s=d.onTrigger)==null||s.call(d,it({effect:d},n)),d.trigger())}zp(t),jd()}function zp(t){for(let o of t.keys())o.scheduler&&o._shouldSchedule&&(!o._runnings||o.allowRecurse)&&t.get(o)===o._trackId&&(o._shouldSchedule=!1,Pd.push(o.scheduler))}var Bp=(t,o)=>{let n=new Map;return n.cleanup=t,n.computed=o,n},Rd=new WeakMap,Xo=Symbol("iterate"),zd=Symbol("Map key iterate");function zt(t,o,n){if(bo&&Yo){let s=Rd.get(t);s||Rd.set(t,s=new Map);let d=s.get(n);d||s.set(n,d=Bp(()=>s.delete(n))),Pp(Yo,d,{target:t,type:o,key:n})}}function kr(t,o,n,s,d,u){let c=Rd.get(t);if(!c)return;let m=[];if(o==="clear")m=[...c.values()];else if(n==="length"&&Me(t)){let g=Number(s);c.forEach((k,x)=>{(x==="length"||!Go(x)&&x>=g)&&m.push(k)})}else switch(n!==void 0&&m.push(c.get(n)),o){case"add":Me(t)?Ka(n)&&m.push(c.get("length")):(m.push(c.get(Xo)),qr(t)&&m.push(c.get(zd)));break;case"delete":Me(t)||(m.push(c.get(Xo)),qr(t)&&m.push(c.get(zd)));break;case"set":qr(t)&&m.push(c.get(Xo));break}Hd();for(let g of m)g&&Rp(g,2,{target:t,type:o,key:n,newValue:s,oldValue:d,oldTarget:u});jd()}var lw=fr("__proto__,__v_isRef,__isVue"),Ip=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Go)),Ap=dw();function dw(){let t={};return["includes","indexOf","lastIndexOf"].forEach(o=>{t[o]=function(...n){let s=Ve(this);for(let u=0,c=this.length;u<c;u++)zt(s,"get",u+"");let d=s[o](...n);return d===-1||d===!1?s[o](...n.map(Ve)):d}}),["push","pop","shift","unshift","splice"].forEach(o=>{t[o]=function(...n){Kr(),Hd();let s=Ve(this)[o].apply(this,n);return jd(),Yr(),s}}),t}function uw(t){let o=Ve(this);return zt(o,"has",t),o.hasOwnProperty(t)}var ns=class{constructor(o=!1,n=!1){this._isReadonly=o,this._shallow=n}get(o,n,s){let d=this._isReadonly,u=this._shallow;if(n==="__v_isReactive")return!d;if(n==="__v_isReadonly")return d;if(n==="__v_isShallow")return u;if(n==="__v_raw")return s===(d?u?Up:$p:u?Vp:jp).get(o)||Object.getPrototypeOf(o)===Object.getPrototypeOf(s)?o:void 0;let c=Me(o);if(!d){if(c&&qe(Ap,n))return Reflect.get(Ap,n,s);if(n==="hasOwnProperty")return uw}let m=Reflect.get(o,n,s);return(Go(n)?Ip.has(n):lw(n))||(d||zt(o,"get",n),u)?m:Tt(m)?c&&Ka(n)?m:m.value:Xe(m)?d?$d(m):Qo(m):m}},is=class extends ns{constructor(o=!1){super(!1,o)}set(o,n,s,d){let u=o[n];if(!this._shallow){let g=Lr(u);if(!Rn(s)&&!Lr(s)&&(u=Ve(u),s=Ve(s)),!Me(o)&&Tt(u)&&!Tt(s))return g?!1:(u.value=s,!0)}let c=Me(o)&&Ka(n)?Number(n)<o.length:qe(o,n),m=Reflect.set(o,n,s,d);return o===Ve(d)&&(c?Or(s,u)&&kr(o,"set",n,s,u):kr(o,"add",n,s)),m}deleteProperty(o,n){let s=qe(o,n),d=o[n],u=Reflect.deleteProperty(o,n);return u&&s&&kr(o,"delete",n,void 0,d),u}has(o,n){let s=Reflect.has(o,n);return(!Go(n)||!Ip.has(n))&&zt(o,"has",n),s}ownKeys(o){return zt(o,"iterate",Me(o)?"length":Xo),Reflect.ownKeys(o)}},as=class extends ns{constructor(o=!1){super(!0,o)}set(o,n){return Fd(`Set operation on key "${String(n)}" failed: target is readonly.`,o),!0}deleteProperty(o,n){return Fd(`Delete operation on key "${String(n)}" failed: target is readonly.`,o),!0}},cw=new is,fw=new as,pw=new is(!0),mw=new as(!0),Vd=t=>t,ls=t=>Reflect.getPrototypeOf(t);function Qa(t,o,n=!1,s=!1){t=t.__v_raw;let d=Ve(t),u=Ve(o);n||(Or(o,u)&&zt(d,"get",o),zt(d,"get",u));let{has:c}=ls(d),m=s?Vd:n?Ud:Mi;if(c.call(d,o))return m(t.get(o));if(c.call(d,u))return m(t.get(u));t!==d&&t.get(o)}function Ja(t,o=!1){let n=this.__v_raw,s=Ve(n),d=Ve(t);return o||(Or(t,d)&&zt(s,"has",t),zt(s,"has",d)),t===d?n.has(t):n.has(t)||n.has(d)}function es(t,o=!1){return t=t.__v_raw,!o&&zt(Ve(t),"iterate",Xo),Reflect.get(t,"size",t)}function Np(t){t=Ve(t);let o=Ve(this);return ls(o).has.call(o,t)||(o.add(t),kr(o,"add",t,t)),this}function Tp(t,o){o=Ve(o);let n=Ve(this),{has:s,get:d}=ls(n),u=s.call(n,t);u?Hp(n,s,t):(t=Ve(t),u=s.call(n,t));let c=d.call(n,t);return n.set(t,o),u?Or(o,c)&&kr(n,"set",t,o,c):kr(n,"add",t,o),this}function Op(t){let o=Ve(this),{has:n,get:s}=ls(o),d=n.call(o,t);d?Hp(o,n,t):(t=Ve(t),d=n.call(o,t));let u=s?s.call(o,t):void 0,c=o.delete(t);return d&&kr(o,"delete",t,void 0,u),c}function Lp(){let t=Ve(this),o=t.size!==0,n=qr(t)?new Map(t):new Set(t),s=t.clear();return o&&kr(t,"clear",void 0,void 0,n),s}function ts(t,o){return function(s,d){let u=this,c=u.__v_raw,m=Ve(c),g=o?Vd:t?Ud:Mi;return!t&&zt(m,"iterate",Xo),c.forEach((k,x)=>s.call(d,g(k),g(x),u))}}function rs(t,o,n){return function(...s){let d=this.__v_raw,u=Ve(d),c=qr(u),m=t==="entries"||t===Symbol.iterator&&c,g=t==="keys"&&c,k=d[t](...s),x=n?Vd:o?Ud:Mi;return!o&&zt(u,"iterate",g?zd:Xo),{next(){let{value:_,done:D}=k.next();return D?{value:_,done:D}:{value:m?[x(_[0]),x(_[1])]:x(_),done:D}},[Symbol.iterator](){return this}}}}function go(t){return function(...o){{let n=o[0]?`on key "${o[0]}" `:"";console.warn(`${xr(t)} operation ${n}failed: target is readonly.`,Ve(this))}return t==="delete"?!1:t==="clear"?void 0:this}}function hw(){let t={get(u){return Qa(this,u)},get size(){return es(this)},has:Ja,add:Np,set:Tp,delete:Op,clear:Lp,forEach:ts(!1,!1)},o={get(u){return Qa(this,u,!1,!0)},get size(){return es(this)},has:Ja,add:Np,set:Tp,delete:Op,clear:Lp,forEach:ts(!1,!0)},n={get(u){return Qa(this,u,!0)},get size(){return es(this,!0)},has(u){return Ja.call(this,u,!0)},add:go("add"),set:go("set"),delete:go("delete"),clear:go("clear"),forEach:ts(!0,!1)},s={get(u){return Qa(this,u,!0,!0)},get size(){return es(this,!0)},has(u){return Ja.call(this,u,!0)},add:go("add"),set:go("set"),delete:go("delete"),clear:go("clear"),forEach:ts(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{t[u]=rs(u,!1,!1),n[u]=rs(u,!0,!1),o[u]=rs(u,!1,!0),s[u]=rs(u,!0,!0)}),[t,n,o,s]}var[gw,bw,vw,ww]=hw();function ds(t,o){let n=o?t?ww:vw:t?bw:gw;return(s,d,u)=>d==="__v_isReactive"?!t:d==="__v_isReadonly"?t:d==="__v_raw"?s:Reflect.get(qe(n,d)&&d in s?n:s,d,u)}var xw={get:ds(!1,!1)},yw={get:ds(!1,!0)},kw={get:ds(!0,!1)},_w={get:ds(!0,!0)};function Hp(t,o,n){let s=Ve(n);if(s!==n&&o.call(t,s)){let d=Ni(t);console.warn(`Reactive ${d} contains both the raw and reactive versions of the same object${d==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var jp=new WeakMap,Vp=new WeakMap,$p=new WeakMap,Up=new WeakMap;function Ew(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Dw(t){return t.__v_skip||!Object.isExtensible(t)?0:Ew(Ni(t))}function Qo(t){return Lr(t)?t:us(t,!1,cw,xw,jp)}function Pi(t){return us(t,!1,pw,yw,Vp)}function $d(t){return us(t,!0,fw,kw,$p)}function vo(t){return us(t,!0,mw,_w,Up)}function us(t,o,n,s,d){if(!Xe(t))return console.warn(`value cannot be made reactive: ${String(t)}`),t;if(t.__v_raw&&!(o&&t.__v_isReactive))return t;let u=d.get(t);if(u)return u;let c=Dw(t);if(c===0)return t;let m=new Proxy(t,c===2?s:n);return d.set(t,m),m}function Xr(t){return Lr(t)?Xr(t.__v_raw):!!(t&&t.__v_isReactive)}function Lr(t){return!!(t&&t.__v_isReadonly)}function Rn(t){return!!(t&&t.__v_isShallow)}function Ri(t){return Xr(t)||Lr(t)}function Ve(t){let o=t&&t.__v_raw;return o?Ve(o):t}function cs(t){return Pn(t,"__v_skip",!0),t}var Mi=t=>Xe(t)?Qo(t):t,Ud=t=>Xe(t)?$d(t):t,ss=class{constructor(o,n,s,d){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Zo(()=>o(this._value),()=>os(this,1),()=>this.dep&&zp(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!d,this.__v_isReadonly=s}get value(){let o=Ve(this);return(!o._cacheable||o.effect.dirty)&&Or(o._value,o._value=o.effect.run())&&os(o,2),qp(o),o.effect._dirtyLevel>=1&&os(o,1),o._value}set value(o){this._setter(o)}get _dirty(){return this.effect.dirty}set _dirty(o){this.effect.dirty=o}};function Wp(t,o,n=!1){let s,d,u=ze(t);u?(s=t,d=()=>{console.warn("Write operation failed: computed value is readonly")}):(s=t.get,d=t.set);let c=new ss(s,d,u||!d,n);return o&&!n&&(c.effect.onTrack=o.onTrack,c.effect.onTrigger=o.onTrigger),c}function qp(t){bo&&Yo&&(t=Ve(t),Pp(Yo,t.dep||(t.dep=Bp(()=>t.dep=void 0,t instanceof ss?t:void 0)),{target:t,type:"get",key:"value"}))}function os(t,o=2,n){t=Ve(t);let s=t.dep;s&&Rp(s,o,{target:t,type:"set",key:"value",newValue:n})}function Tt(t){return!!(t&&t.__v_isRef===!0)}function fs(t){return Gp(t,!1)}function Wd(t){return Gp(t,!0)}function Gp(t,o){return Tt(t)?t:new Bd(t,o)}var Bd=class{constructor(o,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?o:Ve(o),this._value=n?o:Mi(o)}get value(){return qp(this),this._value}set value(o){let n=this.__v_isShallow||Rn(o)||Lr(o);o=n?o:Ve(o),Or(o,this._rawValue)&&(this._rawValue=o,this._value=n?o:Mi(o),os(this,2,o))}};function wo(t){return Tt(t)?t.value:t}var Cw={get:(t,o,n)=>wo(Reflect.get(t,o,n)),set:(t,o,n,s)=>{let d=t[o];return Tt(d)&&!Tt(n)?(d.value=n,!0):Reflect.set(t,o,n,s)}};function ps(t){return Xr(t)?t:new Proxy(t,Cw)}var rn=[];function gs(t){rn.push(t)}function bs(){rn.pop()}function ve(t,...o){Kr();let n=rn.length?rn[rn.length-1].component:null,s=n&&n.appContext.config.warnHandler,d=Aw();if(s)eo(s,n,11,[t+o.join(""),n&&n.proxy,d.map(({vnode:u})=>`at <${Bs(n,u.type)}>`).join(`
|
|
`),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.type),n=an.get(o)),n.instances.add(t)}function Bw(t){an.get(t.type.__hmrId).instances.delete(t)}function km(t,o){return an.has(t)?!1:(an.set(t,{initialDef:Hi(o),instances:new Set}),!0)}function Hi(t){return th(t)?t.__vccOpts:t}function Iw(t,o){let n=an.get(t);n&&(n.initialDef.render=o,[...n.instances].forEach(s=>{o&&(s.render=o,Hi(s.type).render=o),s.renderCache=[],on=!0,s.effect.dirty=!0,s.update(),on=!1}))}function Hw(t,o){let n=an.get(t);if(!n)return;o=Hi(o),Yp(n.initialDef,o);let s=[...n.instances];for(let d of s){let u=Hi(d.type);zn.has(u)||(u!==n.initialDef&&Yp(u,o),zn.add(u)),d.appContext.propsCache.delete(d.type),d.appContext.emitsCache.delete(d.type),d.appContext.optionsCache.delete(d.type),d.ceReload?(zn.add(u),d.ceReload(o.styles),zn.delete(u)):d.parent?(d.parent.effect.dirty=!0,As(d.parent.update)):d.appContext.reload?d.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}wm(()=>{for(let d of s)zn.delete(Hi(d.type))})}function Yp(t,o){it(t,o);for(let n in t)n!=="__file"&&!(n in o)&&delete t[n]}function qd(t){return(o,n)=>{try{return t(o,n)}catch(s){console.error(s),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}var Pr,Bi=[],Jd=!1;function Ki(t,...o){Pr?Pr.emit(t,...o):Jd||Bi.push({event:t,args:o})}function _m(t,o){var n,s;Pr=t,Pr?(Pr.enabled=!0,Bi.forEach(({event:d,args:u})=>Pr.emit(d,...u)),Bi=[]):typeof window<"u"&&window.HTMLElement&&!((s=(n=window.navigator)==null?void 0:n.userAgent)!=null&&s.includes("jsdom"))?((o.__VUE_DEVTOOLS_HOOK_REPLAY__=o.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(u=>{_m(u,o)}),setTimeout(()=>{Pr||(o.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Jd=!0,Bi=[])},3e3)):(Jd=!0,Bi=[])}function jw(t,o){Ki("app:init",t,o,{Fragment:Bt,Text:Zi,Comment:It,Static:ji})}function Vw(t){Ki("app:unmount",t)}var $w=mu("component:added"),Em=mu("component:updated"),Uw=mu("component:removed"),Ww=t=>{Pr&&typeof Pr.cleanupBuffer=="function"&&!Pr.cleanupBuffer(t)&&Uw(t)};function mu(t){return o=>{Ki(t,o.appContext.app,o.uid,o.parent?o.parent.uid:void 0,o)}}var qw=Dm("perf:start"),Gw=Dm("perf:end");function Dm(t){return(o,n,s)=>{Ki(t,o.appContext.app,o.uid,o,n,s)}}function Kw(t,o,n){Ki("component:emit",t.appContext.app,t,o,n)}function Yw(t,o,...n){if(t.isUnmounted)return;let s=t.vnode.props||ot;{let{emitsOptions:x,propsOptions:[_]}=t;if(x)if(!(o in x))(!_||!(Gr(o)in _))&&ve(`Component emitted event "${o}" but it is neither declared in the emits option nor as an "${Gr(o)}" prop.`);else{let D=x[o];ze(D)&&(D(...n)||ve(`Invalid event arguments: event validation failed for event "${o}".`))}}let d=n,u=o.startsWith("update:"),c=u&&o.slice(7);if(c&&c in s){let x=`${c==="modelValue"?"model":c}Modifiers`,{number:_,trim:D}=s[x]||ot;D&&(d=n.map(O=>ut(O)?O.trim():O)),_&&(d=n.map(Td))}Kw(t,o,d);{let x=o.toLowerCase();x!==o&&s[Gr(x)]&&ve(`Event "${x}" is emitted in component ${Bs(t,t.type)} but the handler is registered for "${o}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${Tr(o)}" instead of "${o}".`)}let m,g=s[m=Gr(o)]||s[m=Gr(or(o))];!g&&u&&(g=s[m=Gr(Tr(o))]),g&&sr(g,t,6,d);let k=s[m+"Once"];if(k){if(!t.emitted)t.emitted={};else if(t.emitted[m])return;t.emitted[m]=!0,sr(k,t,6,d)}}function Cm(t,o,n=!1){let s=o.emitsCache,d=s.get(t);if(d!==void 0)return d;let u=t.emits,c={},m=!1;if(!ze(t)){let g=k=>{let x=Cm(k,o,!0);x&&(m=!0,it(c,x))};!n&&o.mixins.length&&o.mixins.forEach(g),t.extends&&g(t.extends),t.mixins&&t.mixins.forEach(g)}return!u&&!m?(Xe(t)&&s.set(t,null),null):(Me(u)?u.forEach(g=>c[g]=null):it(c,u),Xe(t)&&s.set(t,c),c)}function Ns(t,o){return!t||!qo(o)?!1:(o=o.slice(2).replace(/Once$/,""),qe(t,o[0].toLowerCase()+o.slice(1))||qe(t,Tr(o))||qe(t,o))}var Jt=null,Sm=null;function ys(t){let o=Jt;return Jt=t,Sm=t&&t.type.__scopeId||null,o}function $n(t,o=Jt,n){if(!o||t._n)return t;let s=(...d)=>{s._d&&dm(-1);let u=ys(o),c;try{c=t(...d)}finally{ys(u),s._d&&dm(1)}return Em(o),c};return s._n=!0,s._c=!0,s._d=!0,s}var eu=!1;function ks(){eu=!0}function Gd(t){let{type:o,vnode:n,proxy:s,withProxy:d,props:u,propsOptions:[c],slots:m,attrs:g,emit:k,render:x,renderCache:_,data:D,setupState:O,ctx:H,inheritAttrs:I}=t,R,j,Y=ys(t);eu=!1;try{if(n.shapeFlag&4){let w=d||s,C=O.__isScriptSetup?new Proxy(w,{get(T,z,A){return ve(`Property '${String(z)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(T,z,A)}}):w;R=_r(x.call(C,w,_,u,O,D,H)),j=g}else{let w=o;g===u&&ks(),R=_r(w.length>1?w(u,{get attrs(){return ks(),g},slots:m,emit:k}):w(u,null)),j=o.props?g:Xw(g)}}catch(w){Vi.length=0,Gi(w,t,1),R=wt(It)}let p=R,v;if(R.patchFlag>0&&R.patchFlag&2048&&([p,v]=Am(R)),j&&I!==!1){let w=Object.keys(j),{shapeFlag:C}=p;if(w.length){if(C&7)c&&w.some(Mn)&&(j=Zw(j,c)),p=zr(p,j);else if(!eu&&p.type!==It){let T=Object.keys(g),z=[],A=[];for(let V=0,Z=T.length;V<Z;V++){let q=T[V];qo(q)?Mn(q)||z.push(q[2].toLowerCase()+q.slice(3)):A.push(q)}A.length&&ve(`Extraneous non-props attributes (${A.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),z.length&&ve(`Extraneous non-emits event listeners (${z.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return n.dirs&&(Xp(p)||ve("Runtime directive used on component with non-element root node. The directives will not function as intended."),p=zr(p),p.dirs=p.dirs?p.dirs.concat(n.dirs):n.dirs),n.transition&&(Xp(p)||ve("Component inside <Transition> renders non-element root node that cannot be animated."),p.transition=n.transition),v?v(p):R=p,ys(Y),R}var Am=t=>{let o=t.children,n=t.dynamicChildren,s=hu(o,!1);if(s){if(s.patchFlag>0&&s.patchFlag&2048)return Am(s)}else return[t,void 0];let d=o.indexOf(s),u=n?n.indexOf(s):-1,c=m=>{o[d]=m,n&&(u>-1?n[u]=m:m.patchFlag>0&&(t.dynamicChildren=[...n,m]))};return[_r(s),c]};function hu(t,o=!0){let n;for(let s=0;s<t.length;s++){let d=t[s];if(qi(d)){if(d.type!==It||d.children==="v-if"){if(n)return;if(n=d,o&&n.patchFlag>0&&n.patchFlag&2048)return hu(n.children)}}else return}return n}var Xw=t=>{let o;for(let n in t)(n==="class"||n==="style"||qo(n))&&((o||(o={}))[n]=t[n]);return o},Zw=(t,o)=>{let n={};for(let s in t)(!Mn(s)||!(s.slice(9)in o))&&(n[s]=t[s]);return n},Xp=t=>t.shapeFlag&7||t.type===It;function Qw(t,o,n){let{props:s,children:d,component:u}=t,{props:c,children:m,patchFlag:g}=o,k=u.emitsOptions;if((d||m)&&on||o.dirs||o.transition)return!0;if(n&&g>=0){if(g&1024)return!0;if(g&16)return s?Zp(s,c,k):!!c;if(g&8){let x=o.dynamicProps;for(let _=0;_<x.length;_++){let D=x[_];if(c[D]!==s[D]&&!Ns(k,D))return!0}}}else return(d||m)&&(!m||!m.$stable)?!0:s===c?!1:s?c?Zp(s,c,k):!0:!!c;return!1}function Zp(t,o,n){let s=Object.keys(o);if(s.length!==Object.keys(t).length)return!0;for(let d=0;d<s.length;d++){let u=s[d];if(o[u]!==t[u]&&!Ns(n,u))return!0}return!1}function Jw({vnode:t,parent:o},n){for(;o;){let s=o.subTree;if(s.suspense&&s.suspense.activeBranch===t&&(s.el=t.el),s===t)(t=o.vnode).el=n,o=o.parent;else break}}var tu="components";function Un(t,o){return tx(tu,t,!0,o)||t}var ex=Symbol.for("v-ndc");function tx(t,o,n=!0,s=!1){let d=Jt||Ot;if(d){let u=d.type;if(t===tu){let m=Au(u,!1);if(m&&(m===o||m===or(o)||m===xr(or(o))))return u}let c=Qp(d[t]||u[t],o)||Qp(d.appContext[t],o);if(!c&&s)return u;if(n&&!c){let m=t===tu?`
|
|
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,setup(t,{slots:o}){let n=Wn(),s=bu(),d;return()=>{let u=o.default&&Ts(o.default(),!0);if(!u||!u.length)return;let c=u[0];if(u.length>1){let I=!1;for(let R of u)if(R.type!==It){if(I){ve("<transition> can only be used on a single element or component. Use <transition-group> for lists.");break}c=R,I=!0}}let m=Ve(t),{mode:g}=m;if(g&&g!=="in-out"&&g!=="out-in"&&g!=="default"&&ve(`invalid <transition> mode: ${g}`),s.isLeaving)return Kd(c);let k=Jp(c);if(!k)return Kd(c);let x=jn(k,m,s,n);Vn(k,x);let _=n.subTree,D=_&&Jp(_),O=!1,{getTransitionKey:H}=k.type;if(H){let I=H();d===void 0?d=I:I!==d&&(d=I,O=!0)}if(D&&D.type!==It&&(!tn(k,D)||O)){let I=jn(D,m,s,n);if(Vn(D,I),g==="out-in")return s.isLeaving=!0,I.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Kd(c);g==="in-out"&&k.type!==It&&(I.delayLeave=(R,j,Y)=>{let p=Fm(s,D);p[String(D.key)]=D,R[yo]=()=>{j(),R[yo]=void 0,delete x.delayedLeave},x.delayedLeave=Y})}return c}}},Lm=sx;function Fm(t,o){let{leavingVNodes:n}=t,s=n.get(o.type);return s||(s=Object.create(null),n.set(o.type,s)),s}function jn(t,o,n,s){let{appear:d,mode:u,persisted:c=!1,onBeforeEnter:m,onEnter:g,onAfterEnter:k,onEnterCancelled:x,onBeforeLeave:_,onLeave:D,onAfterLeave:O,onLeaveCancelled:H,onBeforeAppear:I,onAppear:R,onAfterAppear:j,onAppearCancelled:Y}=o,p=String(t.key),v=Fm(n,t),w=(z,A)=>{z&&sr(z,s,9,A)},C=(z,A)=>{let V=A[1];w(z,A),Me(z)?z.every(Z=>Z.length<=1)&&V():z.length<=1&&V()},T={mode:u,persisted:c,beforeEnter(z){let A=m;if(!n.isMounted)if(d)A=I||m;else return;z[yo]&&z[yo](!0);let V=v[p];V&&tn(t,V)&&V.el[yo]&&V.el[yo](),w(A,[z])},enter(z){let A=g,V=k,Z=x;if(!n.isMounted)if(d)A=R||g,V=j||k,Z=Y||x;else return;let q=!1,L=z[hs]=U=>{q||(q=!0,U?w(Z,[z]):w(V,[z]),T.delayedLeave&&T.delayedLeave(),z[hs]=void 0)};A?C(A,[z,L]):L()},leave(z,A){let V=String(t.key);if(z[hs]&&z[hs](!0),n.isUnmounting)return A();w(_,[z]);let Z=!1,q=z[yo]=L=>{Z||(Z=!0,A(),L?w(H,[z]):w(O,[z]),z[yo]=void 0,v[V]===t&&delete v[V])};v[V]=t,D?C(D,[z,q]):q()},clone(z){return jn(z,o,n,s)}};return T}function Kd(t){if(Yi(t))return t=zr(t),t.children=null,t}function Jp(t){return Yi(t)?t.component?t.component.subTree:t.children?t.children[0]:void 0:t}function Vn(t,o){t.shapeFlag&6&&t.component?Vn(t.component.subTree,o):t.shapeFlag&128?(t.ssContent.transition=o.clone(t.ssContent),t.ssFallback.transition=o.clone(t.ssFallback)):t.transition=o}function Ts(t,o=!1,n){let s=[],d=0;for(let u=0;u<t.length;u++){let c=t[u],m=n==null?c.key:String(n)+String(c.key!=null?c.key:u);c.type===Bt?(c.patchFlag&128&&d++,s=s.concat(Ts(c.children,o,m))):(o||c.type!==It)&&s.push(m!=null?zr(c,{key:m}):c)}if(d>1)for(let u=0;u<s.length;u++)s[u].patchFlag=-2;return s}function Os(t,o){return ze(t)?it({name:t.name},o,{setup:t}):t}var vs=t=>!!t.type.__asyncLoader;var Yi=t=>t.type.__isKeepAlive;function Mm(t,o){Rm(t,"a",o)}function Pm(t,o){Rm(t,"da",o)}function Rm(t,o,n=Ot){let s=t.__wdc||(t.__wdc=()=>{let d=n;for(;d;){if(d.isDeactivated)return;d=d.parent}return t()});if(Ls(o,s,n),n){let d=n.parent;for(;d&&d.parent;)Yi(d.parent.vnode)&&lx(s,o,n,d),d=d.parent}}function lx(t,o,n,s){let d=Ls(o,t,s,!0);Fs(()=>{Ua(s[o],d)},n)}function Ls(t,o,n=Ot,s=!1){if(n){let d=n[t]||(n[t]=[]),u=o.__weh||(o.__weh=(...c)=>{if(n.isUnmounted)return;Kr();let m=Qi(n),g=sr(o,n,t,c);return m(),Yr(),g});return s?d.unshift(u):d.push(u),u}else{let d=Gr(cu[t].replace(/ hook$/,""));ve(`${d} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}var to=t=>(o,n=Ot)=>(!zs||t==="sp")&&Ls(t,(...s)=>o(...s),n),dx=to("bm"),wu=to("m"),ux=to("bu"),xu=to("u"),zm=to("bum"),Fs=to("um"),cx=to("sp"),fx=to("rtg"),px=to("rtc");function mx(t,o=Ot){Ls("ec",t,o)}function Bm(t,o,n,s){let d,u=n&&n[s];if(Me(t)||ut(t)){d=new Array(t.length);for(let c=0,m=t.length;c<m;c++)d[c]=o(t[c],c,void 0,u&&u[c])}else if(typeof t=="number"){Number.isInteger(t)||ve(`The v-for range expect an integer value but got ${t}.`),d=new Array(t);for(let c=0;c<t;c++)d[c]=o(c+1,c,void 0,u&&u[c])}else if(Xe(t))if(t[Symbol.iterator])d=Array.from(t,(c,m)=>o(c,m,void 0,u&&u[m]));else{let c=Object.keys(t);d=new Array(c.length);for(let m=0,g=c.length;m<g;m++){let k=c[m];d[m]=o(t[k],k,m,u&&u[m])}}else d=[];return n&&(n[s]=d),d}var ru=t=>t?Jm(t)?Su(t)||t.proxy:ru(t.parent):null,nn=it(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>vo(t.props),$attrs:t=>vo(t.attrs),$slots:t=>vo(t.slots),$refs:t=>vo(t.refs),$parent:t=>ru(t.parent),$root:t=>ru(t.root),$emit:t=>t.emit,$options:t=>ku(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,As(t.update)}),$nextTick:t=>t.n||(t.n=Ss.bind(t.proxy)),$watch:t=>ax.bind(t)}),yu=t=>t==="_"||t==="$",Yd=(t,o)=>t!==ot&&!t.__isScriptSetup&&qe(t,o),Im={get({_:t},o){let{ctx:n,setupState:s,data:d,props:u,accessCache:c,type:m,appContext:g}=t;if(o==="__isVue")return!0;let k;if(o[0]!=="$"){let O=c[o];if(O!==void 0)switch(O){case 1:return s[o];case 2:return d[o];case 4:return n[o];case 3:return u[o]}else{if(Yd(s,o))return c[o]=1,s[o];if(d!==ot&&qe(d,o))return c[o]=2,d[o];if((k=t.propsOptions[0])&&qe(k,o))return c[o]=3,u[o];if(n!==ot&&qe(n,o))return c[o]=4,n[o];ou&&(c[o]=0)}}let x=nn[o],_,D;if(x)return o==="$attrs"?(zt(t,"get",o),ks()):o==="$slots"&&zt(t,"get",o),x(t);if((_=m.__cssModules)&&(_=_[o]))return _;if(n!==ot&&qe(n,o))return c[o]=4,n[o];if(D=g.config.globalProperties,qe(D,o))return D[o];Jt&&(!ut(o)||o.indexOf("__v")!==0)&&(d!==ot&&yu(o[0])&&qe(d,o)?ve(`Property ${JSON.stringify(o)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):t===Jt&&ve(`Property ${JSON.stringify(o)} was accessed during render but is not defined on instance.`))},set({_:t},o,n){let{data:s,setupState:d,ctx:u}=t;return Yd(d,o)?(d[o]=n,!0):d.__isScriptSetup&&qe(d,o)?(ve(`Cannot mutate <script setup> binding "${o}" from Options API.`),!1):s!==ot&&qe(s,o)?(s[o]=n,!0):qe(t.props,o)?(ve(`Attempting to mutate prop "${o}". Props are readonly.`),!1):o[0]==="$"&&o.slice(1)in t?(ve(`Attempting to mutate public property "${o}". Properties starting with $ are reserved and readonly.`),!1):(o in t.appContext.config.globalProperties?Object.defineProperty(u,o,{enumerable:!0,configurable:!0,value:n}):u[o]=n,!0)},has({_:{data:t,setupState:o,accessCache:n,ctx:s,appContext:d,propsOptions:u}},c){let m;return!!n[c]||t!==ot&&qe(t,c)||Yd(o,c)||(m=u[0])&&qe(m,c)||qe(s,c)||qe(nn,c)||qe(d.config.globalProperties,c)},defineProperty(t,o,n){return n.get!=null?t._.accessCache[o]=0:qe(n,"value")&&this.set(t,o,n.value,null),Reflect.defineProperty(t,o,n)}};Im.ownKeys=t=>(ve("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(t));function hx(t){let o={};return Object.defineProperty(o,"_",{configurable:!0,enumerable:!1,get:()=>t}),Object.keys(nn).forEach(n=>{Object.defineProperty(o,n,{configurable:!0,enumerable:!1,get:()=>nn[n](t),set:Ft})}),o}function gx(t){let{ctx:o,propsOptions:[n]}=t;n&&Object.keys(n).forEach(s=>{Object.defineProperty(o,s,{enumerable:!0,configurable:!0,get:()=>t.props[s],set:Ft})})}function bx(t){let{ctx:o,setupState:n}=t;Object.keys(Ve(n)).forEach(s=>{if(!n.__isScriptSetup){if(yu(s[0])){ve(`setup() return property ${JSON.stringify(s)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(o,s,{enumerable:!0,configurable:!0,get:()=>n[s],set:Ft})}})}function em(t){return Me(t)?t.reduce((o,n)=>(o[n]=null,o),{}):t}function vx(){let t=Object.create(null);return(o,n)=>{t[n]?ve(`${o} property "${n}" is already defined in ${t[n]}.`):t[n]=o}}var ou=!0;function wx(t){let o=ku(t),n=t.proxy,s=t.ctx;ou=!1,o.beforeCreate&&tm(o.beforeCreate,t,"bc");let{data:d,computed:u,methods:c,watch:m,provide:g,inject:k,created:x,beforeMount:_,mounted:D,beforeUpdate:O,updated:H,activated:I,deactivated:R,beforeDestroy:j,beforeUnmount:Y,destroyed:p,unmounted:v,render:w,renderTracked:C,renderTriggered:T,errorCaptured:z,serverPrefetch:A,expose:V,inheritAttrs:Z,components:q,directives:L,filters:U}=o,N=vx();{let[J]=t.propsOptions;if(J)for(let ne in J)N("Props",ne)}if(k&&xx(k,s,N),c)for(let J in c){let ne=c[J];ze(ne)?(Object.defineProperty(s,J,{value:ne.bind(n),configurable:!0,enumerable:!0,writable:!0}),N("Methods",J)):ve(`Method "${J}" has type "${typeof ne}" in the component definition. Did you reference the function correctly?`)}if(d){ze(d)||ve("The data option must be a function. Plain object usage is no longer supported.");let J=d.call(n,n);if(qa(J)&&ve("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Xe(J))ve("data() should return an object.");else{t.data=Qo(J);for(let ne in J)N("Data",ne),yu(ne[0])||Object.defineProperty(s,ne,{configurable:!0,enumerable:!0,get:()=>J[ne],set:Ft})}}if(ou=!0,u)for(let J in u){let ne=u[J],Ne=ze(ne)?ne.bind(n,n):ze(ne.get)?ne.get.bind(n,n):Ft;Ne===Ft&&ve(`Computed property "${J}" has no getter.`);let P=!ze(ne)&&ze(ne.set)?ne.set.bind(n):()=>{ve(`Write operation failed: computed property "${J}" is readonly.`)},S=hr({get:Ne,set:P});Object.defineProperty(s,J,{enumerable:!0,configurable:!0,get:()=>S.value,set:fe=>S.value=fe}),N("Computed",J)}if(m)for(let J in m)Hm(m[J],s,n,J);if(g){let J=ze(g)?g.call(n):g;Reflect.ownKeys(J).forEach(ne=>{Xi(ne,J[ne])})}x&&tm(x,t,"c");function G(J,ne){Me(ne)?ne.forEach(Ne=>J(Ne.bind(n))):ne&&J(ne.bind(n))}if(G(dx,_),G(wu,D),G(ux,O),G(xu,H),G(Mm,I),G(Pm,R),G(mx,z),G(px,C),G(fx,T),G(zm,Y),G(Fs,v),G(cx,A),Me(V))if(V.length){let J=t.exposed||(t.exposed={});V.forEach(ne=>{Object.defineProperty(J,ne,{get:()=>n[ne],set:Ne=>n[ne]=Ne})})}else t.exposed||(t.exposed={});w&&t.render===Ft&&(t.render=w),Z!=null&&(t.inheritAttrs=Z),q&&(t.components=q),L&&(t.directives=L)}function xx(t,o,n=Ft){Me(t)&&(t=nu(t));for(let s in t){let d=t[s],u;Xe(d)?"default"in d?u=Rr(d.from||s,d.default,!0):u=Rr(d.from||s):u=Rr(d),Tt(u)?Object.defineProperty(o,s,{enumerable:!0,configurable:!0,get:()=>u.value,set:c=>u.value=c}):o[s]=u,n("Inject",s)}}function tm(t,o,n){sr(Me(t)?t.map(s=>s.bind(o.proxy)):t.bind(o.proxy),o,n)}function Hm(t,o,n,s){let d=s.includes(".")?Tm(n,s):()=>n[s];if(ut(t)){let u=o[t];ze(u)?Hn(d,u):ve(`Invalid watch handler specified by key "${t}"`,u)}else if(ze(t))Hn(d,t.bind(n));else if(Xe(t))if(Me(t))t.forEach(u=>Hm(u,o,n,s));else{let u=ze(t.handler)?t.handler.bind(n):o[t.handler];ze(u)?Hn(d,u,t):ve(`Invalid watch handler specified by key "${t.handler}"`,u)}else ve(`Invalid watch option: "${s}"`,t)}function ku(t){let o=t.type,{mixins:n,extends:s}=o,{mixins:d,optionsCache:u,config:{optionMergeStrategies:c}}=t.appContext,m=u.get(o),g;return m?g=m:!d.length&&!n&&!s?g=o:(g={},d.length&&d.forEach(k=>_s(g,k,c,!0)),_s(g,o,c)),Xe(o)&&u.set(o,g),g}function _s(t,o,n,s=!1){let{mixins:d,extends:u}=o;u&&_s(t,u,n,!0),d&&d.forEach(c=>_s(t,c,n,!0));for(let c in o)if(s&&c==="expose")ve('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{let m=yx[c]||n&&n[c];t[c]=m?m(t[c],o[c]):o[c]}return t}var yx={data:rm,props:om,emits:om,methods:Ii,computed:Ii,beforeCreate:Qt,created:Qt,beforeMount:Qt,mounted:Qt,beforeUpdate:Qt,updated:Qt,beforeDestroy:Qt,beforeUnmount:Qt,destroyed:Qt,unmounted:Qt,activated:Qt,deactivated:Qt,errorCaptured:Qt,serverPrefetch:Qt,components:Ii,directives:Ii,watch:_x,provide:rm,inject:kx};function rm(t,o){return o?t?function(){return it(ze(t)?t.call(this,this):t,ze(o)?o.call(this,this):o)}:o:t}function kx(t,o){return Ii(nu(t),nu(o))}function nu(t){if(Me(t)){let o={};for(let n=0;n<t.length;n++)o[t[n]]=t[n];return o}return t}function Qt(t,o){return t?[...new Set([].concat(t,o))]:o}function Ii(t,o){return t?it(Object.create(null),t,o):o}function om(t,o){return t?Me(t)&&Me(o)?[...new Set([...t,...o])]:it(Object.create(null),em(t),em(o??{})):o}function _x(t,o){if(!t)return o;if(!o)return t;let n=it(Object.create(null),t);for(let s in o)n[s]=Qt(t[s],o[s]);return n}function jm(){return{app:null,config:{isNativeTag:Ad,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var Ex=0;function Dx(t,o){return function(s,d=null){ze(s)||(s=it({},s)),d!=null&&!Xe(d)&&(ve("root props passed to app.mount() must be an object."),d=null);let u=jm(),c=new WeakSet,m=!1,g=u.app={_uid:Ex++,_component:s,_props:d,_container:null,_context:u,_instance:null,version:mm,get config(){return u.config},set config(k){ve("app.config cannot be replaced. Modify individual options instead.")},use(k,...x){return c.has(k)?ve("Plugin has already been applied to target app."):k&&ze(k.install)?(c.add(k),k.install(g,...x)):ze(k)?(c.add(k),k(g,...x)):ve('A plugin must either be a function or an object with an "install" function.'),g},mixin(k){return u.mixins.includes(k)?ve("Mixin has already been applied to target app"+(k.name?`: ${k.name}`:"")):u.mixins.push(k),g},component(k,x){return uu(k,u.config),x?(u.components[k]&&ve(`Component "${k}" has already been registered in target app.`),u.components[k]=x,g):u.components[k]},directive(k,x){return Om(k),x?(u.directives[k]&&ve(`Directive "${k}" has already been registered in target app.`),u.directives[k]=x,g):u.directives[k]},mount(k,x,_){if(m)ve("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{k.__vue_app__&&ve("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");let D=wt(s,d);return D.appContext=u,_===!0?_="svg":_===!1&&(_=void 0),u.reload=()=>{t(zr(D),k,_)},x&&o?o(D,k):t(D,k,_),m=!0,g._container=k,k.__vue_app__=g,g._instance=D.component,jw(g,mm),Su(D.component)||D.component.proxy}},unmount(){m?(t(null,g._container),g._instance=null,Vw(g),delete g._container.__vue_app__):ve("Cannot unmount an app that is not mounted.")},provide(k,x){return k in u.provides&&ve(`App already provides property with key "${String(k)}". It will be overwritten with the new value.`),u.provides[k]=x,g},runWithContext(k){Es=g;try{return k()}finally{Es=null}}};return g}}var Es=null;function Xi(t,o){if(!Ot)ve("provide() can only be used inside setup().");else{let n=Ot.provides,s=Ot.parent&&Ot.parent.provides;s===n&&(n=Ot.provides=Object.create(s)),n[t]=o}}function Rr(t,o,n=!1){let s=Ot||Jt;if(s||Es){let d=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:Es._context.provides;if(d&&t in d)return d[t];if(arguments.length>1)return n&&ze(o)?o.call(s&&s.proxy):o;ve(`injection "${String(t)}" not found.`)}else ve("inject() can only be used inside setup() or functional components.")}function Cx(t,o,n,s=!1){let d={},u={};Pn(u,Ms,1),t.propsDefaults=Object.create(null),Vm(t,o,d,u);for(let c in t.propsOptions[0])c in d||(d[c]=void 0);Um(o||{},d,t),n?t.props=s?d:Pi(d):t.type.props?t.props=d:t.props=u,t.attrs=u}function Sx(t){for(;t;){if(t.type.__hmrId)return!0;t=t.parent}}function Ax(t,o,n,s){let{props:d,attrs:u,vnode:{patchFlag:c}}=t,m=Ve(d),[g]=t.propsOptions,k=!1;if(!Sx(t)&&(s||c>0)&&!(c&16)){if(c&8){let x=t.vnode.dynamicProps;for(let _=0;_<x.length;_++){let D=x[_];if(Ns(t.emitsOptions,D))continue;let O=o[D];if(g)if(qe(u,D))O!==u[D]&&(u[D]=O,k=!0);else{let H=or(D);d[H]=iu(g,m,H,O,t,!1)}else O!==u[D]&&(u[D]=O,k=!0)}}}else{Vm(t,o,d,u)&&(k=!0);let x;for(let _ in m)(!o||!qe(o,_)&&((x=Tr(_))===_||!qe(o,x)))&&(g?n&&(n[_]!==void 0||n[x]!==void 0)&&(d[_]=iu(g,m,_,void 0,t,!0)):delete d[_]);if(u!==m)for(let _ in u)(!o||!qe(o,_))&&(delete u[_],k=!0)}k&&kr(t,"set","$attrs"),Um(o||{},d,t)}function Vm(t,o,n,s){let[d,u]=t.propsOptions,c=!1,m;if(o)for(let g in o){if(Ti(g))continue;let k=o[g],x;d&&qe(d,x=or(g))?!u||!u.includes(x)?n[x]=k:(m||(m={}))[x]=k:Ns(t.emitsOptions,g)||(!(g in s)||k!==s[g])&&(s[g]=k,c=!0)}if(u){let g=Ve(n),k=m||ot;for(let x=0;x<u.length;x++){let _=u[x];n[_]=iu(d,g,_,k[_],t,!qe(k,_))}}return c}function iu(t,o,n,s,d,u){let c=t[n];if(c!=null){let m=qe(c,"default");if(m&&s===void 0){let g=c.default;if(c.type!==Function&&!c.skipFactory&&ze(g)){let{propsDefaults:k}=d;if(n in k)s=k[n];else{let x=Qi(d);s=k[n]=g.call(null,o),x()}}else s=g}c[0]&&(u&&!m?s=!1:c[1]&&(s===""||s===Tr(n))&&(s=!0))}return s}function $m(t,o,n=!1){let s=o.propsCache,d=s.get(t);if(d)return d;let u=t.props,c={},m=[],g=!1;if(!ze(t)){let x=_=>{g=!0;let[D,O]=$m(_,o,!0);it(c,D),O&&m.push(...O)};!n&&o.mixins.length&&o.mixins.forEach(x),t.extends&&x(t.extends),t.mixins&&t.mixins.forEach(x)}if(!u&&!g)return Xe(t)&&s.set(t,Wo),Wo;if(Me(u))for(let x=0;x<u.length;x++){ut(u[x])||ve("props must be strings when using array syntax.",u[x]);let _=or(u[x]);nm(_)&&(c[_]=ot)}else if(u){Xe(u)||ve("invalid props options",u);for(let x in u){let _=or(x);if(nm(_)){let D=u[x],O=c[_]=Me(D)||ze(D)?{type:D}:it({},D);if(O){let H=am(Boolean,O.type),I=am(String,O.type);O[0]=H>-1,O[1]=I<0||H<I,(H>-1||qe(O,"default"))&&m.push(_)}}}}let k=[c,m];return Xe(t)&&s.set(t,k),k}function nm(t){return t[0]!=="$"?!0:(ve(`Invalid prop name: "${t}" is a reserved property.`),!1)}function au(t){let o=t&&t.toString().match(/^\s*(function|class) (\w+)/);return o?o[2]:t===null?"null":""}function im(t,o){return au(t)===au(o)}function am(t,o){return Me(o)?o.findIndex(n=>im(n,t)):ze(o)&&im(o,t)?0:-1}function Um(t,o,n){let s=Ve(o),d=n.propsOptions[0];for(let u in d){let c=d[u];c!=null&&Nx(u,s[u],c,vo(s),!qe(t,u)&&!qe(t,Tr(u)))}}function Nx(t,o,n,s,d){let{type:u,required:c,validator:m,skipCheck:g}=n;if(c&&d){ve('Missing required prop: "'+t+'"');return}if(!(o==null&&!c)){if(u!=null&&u!==!0&&!g){let k=!1,x=Me(u)?u:[u],_=[];for(let D=0;D<x.length&&!k;D++){let{valid:O,expectedType:H}=Ox(o,x[D]);_.push(H||""),k=O}if(!k){ve(Lx(t,o,_));return}}m&&!m(o,s)&&ve('Invalid prop: custom validator check failed for prop "'+t+'".')}}var Tx=fr("String,Number,Boolean,Function,Symbol,BigInt");function Ox(t,o){let n,s=au(o);if(Tx(s)){let d=typeof t;n=d===s.toLowerCase(),!n&&d==="object"&&(n=t instanceof o)}else s==="Object"?n=Xe(t):s==="Array"?n=Me(t):s==="null"?n=t===null:n=t instanceof o;return{valid:n,expectedType:s}}function Lx(t,o,n){if(n.length===0)return`Prop type [] for prop "${t}" won't match anything. Did you mean to use type Array instead?`;let s=`Invalid prop: type check failed for prop "${t}". Expected ${n.map(xr).join(" | ")}`,d=n[0],u=Ni(o),c=sm(o,d),m=sm(o,u);return n.length===1&&lm(d)&&!Fx(d,u)&&(s+=` with value ${c}`),s+=`, got ${u} `,lm(u)&&(s+=`with value ${m}.`),s}function sm(t,o){return o==="String"?`"${t}"`:o==="Number"?`${Number(t)}`:`${t}`}function lm(t){return["string","number","boolean"].some(n=>t.toLowerCase()===n)}function Fx(...t){return t.some(o=>o.toLowerCase()==="boolean")}var Wm=t=>t[0]==="_"||t==="$stable",_u=t=>Me(t)?t.map(_r):[_r(t)],Mx=(t,o,n)=>{if(o._n)return o;let s=$n((...d)=>(Ot&&(!n||n.root===Ot.root)&&ve(`Slot "${t}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),_u(o(...d))),n);return s._c=!1,s},qm=(t,o,n)=>{let s=t._ctx;for(let d in t){if(Wm(d))continue;let u=t[d];if(ze(u))o[d]=Mx(d,u,s);else if(u!=null){ve(`Non-function value encountered for slot "${d}". Prefer function slots for better performance.`);let c=_u(u);o[d]=()=>c}}},Gm=(t,o)=>{Yi(t.vnode)||ve("Non-function value encountered for default slot. Prefer function slots for better performance.");let n=_u(o);t.slots.default=()=>n},Px=(t,o)=>{if(t.vnode.shapeFlag&32){let n=o._;n?(t.slots=Ve(o),Pn(o,"_",n)):qm(o,t.slots={})}else t.slots={},o&&Gm(t,o);Pn(t.slots,Ms,1)},Rx=(t,o,n)=>{let{vnode:s,slots:d}=t,u=!0,c=ot;if(s.shapeFlag&32){let m=o._;m?on?(it(d,o),kr(t,"set","$slots")):n&&m===1?u=!1:(it(d,o),!n&&m===1&&delete d._):(u=!o.$stable,qm(o,d)),c=o}else o&&(Gm(t,o),c={default:1});if(u)for(let m in d)!Wm(m)&&c[m]==null&&delete d[m]};function su(t,o,n,s,d=!1){if(Me(t)){t.forEach((D,O)=>su(D,o&&(Me(o)?o[O]:o),n,s,d));return}if(vs(s)&&!d)return;let u=s.shapeFlag&4?Su(s.component)||s.component.proxy:s.el,c=d?null:u,{i:m,r:g}=t;if(!m){ve("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}let k=o&&o.r,x=m.refs===ot?m.refs={}:m.refs,_=m.setupState;if(k!=null&&k!==g&&(ut(k)?(x[k]=null,qe(_,k)&&(_[k]=null)):Tt(k)&&(k.value=null)),ze(g))eo(g,m,12,[c,x]);else{let D=ut(g),O=Tt(g),H=t.f;if(D||O){let I=()=>{if(H){let R=D?qe(_,g)?_[g]:x[g]:g.value;d?Me(R)&&Ua(R,u):Me(R)?R.includes(u)||R.push(u):D?(x[g]=[u],qe(_,g)&&(_[g]=x[g])):(g.value=[u],t.k&&(x[t.k]=g.value))}else D?(x[g]=c,qe(_,g)&&(_[g]=c)):O?(g.value=c,t.k&&(x[t.k]=c)):ve("Invalid template ref type:",g,`(${typeof g})`)};d||H?I():(I.id=-1,nr(I,n))}else ve("Invalid template ref type:",g,`(${typeof g})`)}}var zi,_o;function Zr(t,o){t.appContext.config.performance&&Ds()&&_o.mark(`vue-${o}-${t.uid}`),qw(t,o,Ds()?_o.now():Date.now())}function Qr(t,o){if(t.appContext.config.performance&&Ds()){let n=`vue-${o}-${t.uid}`,s=n+":end";_o.mark(s),_o.measure(`<${Bs(t,t.type)}> ${o}`,n,s),_o.clearMarks(n),_o.clearMarks(s)}Gw(t,o,Ds()?_o.now():Date.now())}function Ds(){return zi!==void 0||(typeof window<"u"&&window.performance?(zi=!0,_o=window.performance):zi=!1),zi}function zx(){let t=[];if(t.length){let o=t.length>1;console.warn(`Feature flag${o?"s":""} ${t.join(", ")} ${o?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
|
|
|
|
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.el:m(""),xe=$.anchor=F?F.anchor:m(""),{patchFlag:Te,dynamicChildren:Oe,slotScopeIds:je}=$;(on||Te&2048)&&(Te=0,me=!1,Oe=null),je&&(ue=ue?ue.concat(je):je),F==null?(s(le,Q,re),s(xe,Q,re),A($.children||[],Q,xe,te,se,pe,ue,me)):Te>0&&Te&64&&Oe&&F.dynamicChildren?(Z(F.dynamicChildren,Oe,Q,te,se,pe,ue),lu(F,$)):Ne(F,$,Q,xe,te,se,pe,ue,me)},U=(F,$,Q,re,te,se,pe,ue,me)=>{$.slotScopeIds=ue,F==null?$.shapeFlag&512?te.ctx.activate($,Q,re,pe,me):N($,Q,re,te,se,pe,me):G(F,$,me)},N=(F,$,Q,re,te,se,pe)=>{let ue=F.component=Yx(F,re,te);if(ue.type.__hmrId&&zw(ue),gs(F),Zr(ue,"mount"),Yi(F)&&(ue.ctx.renderer=Ce),Zr(ue,"init"),Zx(ue),Qr(ue,"init"),ue.asyncDep){if(te&&te.registerDep(ue,J),!F.el){let me=ue.subTree=wt(It);j(null,me,$,Q)}}else J(ue,F,$,Q,te,se,pe);bs(),Qr(ue,"mount")},G=(F,$,Q)=>{let re=$.component=F.component;if(Qw(F,$,Q))if(re.asyncDep&&!re.asyncResolved){gs($),ne(re,$,Q),bs();return}else re.next=$,Pw(re.update),re.effect.dirty=!0,re.update();else $.el=F.el,re.vnode=$},J=(F,$,Q,re,te,se,pe)=>{let ue=()=>{if(F.isMounted){let{next:xe,bu:Te,u:Oe,parent:je,vnode:We}=F;{let ur=Ym(F);if(ur){xe&&(xe.el=We.el,ne(F,xe,pe)),ur.asyncDep.then(()=>{F.isUnmounted||ue()});return}}let Ze=xe,Je;gs(xe||F.vnode),en(F,!1),xe?(xe.el=We.el,ne(F,xe,pe)):xe=We,Te&&Ko(Te),(Je=xe.props&&xe.props.onVnodeBeforeUpdate)&&Fr(Je,je,xe,We),en(F,!0),Zr(F,"render");let xt=Gd(F);Qr(F,"render");let Mt=F.subTree;F.subTree=xt,Zr(F,"patch"),I(Mt,xt,_(Mt.el),ce(Mt),F,te,se),Qr(F,"patch"),xe.el=xt.el,Ze===null&&Jw(F,xt.el),Oe&&nr(Oe,te),(Je=xe.props&&xe.props.onVnodeUpdated)&&nr(()=>Fr(Je,je,xe,We),te),Em(F),bs()}else{let xe,{el:Te,props:Oe}=$,{bm:je,m:We,parent:Ze}=F,Je=vs($);if(en(F,!1),je&&Ko(je),!Je&&(xe=Oe&&Oe.onVnodeBeforeMount)&&Fr(xe,Ze,$),en(F,!0),Te&&He){let xt=()=>{Zr(F,"render"),F.subTree=Gd(F),Qr(F,"render"),Zr(F,"hydrate"),He(Te,F.subTree,F,te,null),Qr(F,"hydrate")};Je?$.type.__asyncLoader().then(()=>!F.isUnmounted&&xt()):xt()}else{Zr(F,"render");let xt=F.subTree=Gd(F);Qr(F,"render"),Zr(F,"patch"),I(null,xt,Q,re,F,te,se),Qr(F,"patch"),$.el=xt.el}if(We&&nr(We,te),!Je&&(xe=Oe&&Oe.onVnodeMounted)){let xt=$;nr(()=>Fr(xe,Ze,xt),te)}($.shapeFlag&256||Ze&&vs(Ze.vnode)&&Ze.vnode.shapeFlag&256)&&F.a&&nr(F.a,te),F.isMounted=!0,$w(F),$=Q=re=null}},me=F.effect=new Zo(ue,Ft,()=>As(le),F.scope),le=F.update=()=>{me.dirty&&me.run()};le.id=F.uid,en(F,!0),me.onTrack=F.rtc?xe=>Ko(F.rtc,xe):void 0,me.onTrigger=F.rtg?xe=>Ko(F.rtg,xe):void 0,le.ownerInstance=F,le()},ne=(F,$,Q)=>{$.component=F;let re=F.vnode.props;F.vnode=$,F.next=null,Ax(F,$.props,re,Q),Rx(F,$.children,Q),Kr(),Kp(F),Yr()},Ne=(F,$,Q,re,te,se,pe,ue,me=!1)=>{let le=F&&F.children,xe=F?F.shapeFlag:0,Te=$.children,{patchFlag:Oe,shapeFlag:je}=$;if(Oe>0){if(Oe&128){S(le,Te,Q,re,te,se,pe,ue,me);return}else if(Oe&256){P(le,Te,Q,re,te,se,pe,ue,me);return}}je&8?(xe&16&&X(le,te,se),Te!==le&&x(Q,Te)):xe&16?je&16?S(le,Te,Q,re,te,se,pe,ue,me):X(le,te,se,!0):(xe&8&&x(Q,""),je&16&&A(Te,Q,re,te,se,pe,ue,me))},P=(F,$,Q,re,te,se,pe,ue,me)=>{F=F||Wo,$=$||Wo;let le=F.length,xe=$.length,Te=Math.min(le,xe),Oe;for(Oe=0;Oe<Te;Oe++){let je=$[Oe]=me?ko($[Oe]):_r($[Oe]);I(F[Oe],je,Q,null,te,se,pe,ue,me)}le>xe?X(F,te,se,!0,!1,Te):A($,Q,re,te,se,pe,ue,me,Te)},S=(F,$,Q,re,te,se,pe,ue,me)=>{let le=0,xe=$.length,Te=F.length-1,Oe=xe-1;for(;le<=Te&&le<=Oe;){let je=F[le],We=$[le]=me?ko($[le]):_r($[le]);if(tn(je,We))I(je,We,Q,null,te,se,pe,ue,me);else break;le++}for(;le<=Te&&le<=Oe;){let je=F[Te],We=$[Oe]=me?ko($[Oe]):_r($[Oe]);if(tn(je,We))I(je,We,Q,null,te,se,pe,ue,me);else break;Te--,Oe--}if(le>Te){if(le<=Oe){let je=Oe+1,We=je<xe?$[je].el:re;for(;le<=Oe;)I(null,$[le]=me?ko($[le]):_r($[le]),Q,We,te,se,pe,ue,me),le++}}else if(le>Oe)for(;le<=Te;)Le(F[le],te,se,!0),le++;else{let je=le,We=le,Ze=new Map;for(le=We;le<=Oe;le++){let Ee=$[le]=me?ko($[le]):_r($[le]);Ee.key!=null&&(Ze.has(Ee.key)&&ve("Duplicate keys found during update:",JSON.stringify(Ee.key),"Make sure keys are unique."),Ze.set(Ee.key,le))}let Je,xt=0,Mt=Oe-We+1,ur=!1,ua=0,Wt=new Array(Mt);for(le=0;le<Mt;le++)Wt[le]=0;for(le=je;le<=Te;le++){let Ee=F[le];if(xt>=Mt){Le(Ee,te,se,!0);continue}let er;if(Ee.key!=null)er=Ze.get(Ee.key);else for(Je=We;Je<=Oe;Je++)if(Wt[Je-We]===0&&tn(Ee,$[Je])){er=Je;break}er===void 0?Le(Ee,te,se,!0):(Wt[er-We]=le+1,er>=ua?ua=er:ur=!0,I(Ee,$[er],Q,null,te,se,pe,ue,me),xt++)}let Jn=ur?Hx(Wt):Wo;for(Je=Jn.length-1,le=Mt-1;le>=0;le--){let Ee=We+le,er=$[Ee],Ht=Ee+1<xe?$[Ee+1].el:re;Wt[le]===0?I(null,er,Q,Ht,te,se,pe,ue,me):ur&&(Je<0||le!==Jn[Je]?fe(er,Q,Ht,2):Je--)}}},fe=(F,$,Q,re,te=null)=>{let{el:se,type:pe,transition:ue,children:me,shapeFlag:le}=F;if(le&6){fe(F.component.subTree,$,Q,re);return}if(le&128){F.suspense.move($,Q,re);return}if(le&64){pe.move(F,$,Q,Ce);return}if(pe===Bt){s(se,$,Q);for(let Te=0;Te<me.length;Te++)fe(me[Te],$,Q,re);s(F.anchor,$,Q);return}if(pe===ji){v(F,$,Q);return}if(re!==2&&le&1&&ue)if(re===0)ue.beforeEnter(se),s(se,$,Q),nr(()=>ue.enter(se),te);else{let{leave:Te,delayLeave:Oe,afterLeave:je}=ue,We=()=>s(se,$,Q),Ze=()=>{Te(se,()=>{We(),je&&je()})};Oe?Oe(se,We,Ze):Ze()}else s(se,$,Q)},Le=(F,$,Q,re=!1,te=!1)=>{let{type:se,props:pe,ref:ue,children:me,dynamicChildren:le,shapeFlag:xe,patchFlag:Te,dirs:Oe}=F;if(ue!=null&&su(ue,null,Q,F,!0),xe&256){$.ctx.deactivate(F);return}let je=xe&1&&Oe,We=!vs(F),Ze;if(We&&(Ze=pe&&pe.onVnodeBeforeUnmount)&&Fr(Ze,$,F),xe&6)Ge(F.component,Q,re);else{if(xe&128){F.suspense.unmount(Q,re);return}je&&Jo(F,null,$,"beforeUnmount"),xe&64?F.type.remove(F,$,Q,te,Ce,re):le&&(se!==Bt||Te>0&&Te&64)?X(le,$,Q,!1,!0):(se===Bt&&Te&384||!te&&xe&16)&&X(me,$,Q),re&&_e(F)}(We&&(Ze=pe&&pe.onVnodeUnmounted)||je)&&nr(()=>{Ze&&Fr(Ze,$,F),je&&Jo(F,null,$,"unmounted")},Q)},_e=F=>{let{type:$,el:Q,anchor:re,transition:te}=F;if($===Bt){F.patchFlag>0&&F.patchFlag&2048&&te&&!te.persisted?F.children.forEach(pe=>{pe.type===It?d(pe.el):_e(pe)}):Ke(Q,re);return}if($===ji){w(F);return}let se=()=>{d(Q),te&&!te.persisted&&te.afterLeave&&te.afterLeave()};if(F.shapeFlag&1&&te&&!te.persisted){let{leave:pe,delayLeave:ue}=te,me=()=>pe(Q,se);ue?ue(F.el,se,me):me()}else se()},Ke=(F,$)=>{let Q;for(;F!==$;)Q=D(F),d(F),F=Q;d($)},Ge=(F,$,Q)=>{F.type.__hmrId&&Bw(F);let{bum:re,scope:te,update:se,subTree:pe,um:ue}=F;re&&Ko(re),te.stop(),se&&(se.active=!1,Le(pe,F,$,Q)),ue&&nr(ue,$),nr(()=>{F.isUnmounted=!0},$),$&&$.pendingBranch&&!$.isUnmounted&&F.asyncDep&&!F.asyncResolved&&F.suspenseId===$.pendingId&&($.deps--,$.deps===0&&$.resolve()),Ww(F)},X=(F,$,Q,re=!1,te=!1,se=0)=>{for(let pe=se;pe<F.length;pe++)Le(F[pe],$,Q,re,te)},ce=F=>F.shapeFlag&6?ce(F.component.subTree):F.shapeFlag&128?F.suspense.next():D(F.anchor||F.el),ie=!1,he=(F,$,Q)=>{F==null?$._vnode&&Le($._vnode,null,null,!0):I($._vnode||null,F,$,null,null,null,Q),ie||(ie=!0,Kp(),xm(),ie=!1),$._vnode=F},Ce={p:I,um:Le,m:fe,r:_e,mt:N,mc:A,pc:Ne,pbc:Z,n:ce,o:t},$e,He;return o&&([$e,He]=o(Ce)),{render:he,hydrate:$e,createApp:Dx(he,$e)}}function Xd({type:t,props:o},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&o&&o.encoding&&o.encoding.includes("html")?void 0:n}function en({effect:t,update:o},n){t.allowRecurse=o.allowRecurse=n}function Ix(t,o){return(!t||t&&!t.pendingBranch)&&o&&!o.persisted}function lu(t,o,n=!1){let s=t.children,d=o.children;if(Me(s)&&Me(d))for(let u=0;u<s.length;u++){let c=s[u],m=d[u];m.shapeFlag&1&&!m.dynamicChildren&&((m.patchFlag<=0||m.patchFlag===32)&&(m=d[u]=ko(d[u]),m.el=c.el),n||lu(c,m)),m.type===Zi&&(m.el=c.el),m.type===It&&!m.el&&(m.el=c.el)}}function Hx(t){let o=t.slice(),n=[0],s,d,u,c,m,g=t.length;for(s=0;s<g;s++){let k=t[s];if(k!==0){if(d=n[n.length-1],t[d]<k){o[s]=d,n.push(s);continue}for(u=0,c=n.length-1;u<c;)m=u+c>>1,t[n[m]]<k?u=m+1:c=m;k<t[n[u]]&&(u>0&&(o[s]=n[u-1]),n[u]=s)}}for(u=n.length,c=n[u-1];u-- >0;)n[u]=c,c=o[c];return n}function Ym(t){let o=t.subTree.component;if(o)return o.asyncDep&&!o.asyncResolved?o:Ym(o)}var jx=t=>t.__isTeleport;var Bt=Symbol.for("v-fgt"),Zi=Symbol.for("v-txt"),It=Symbol.for("v-cmt"),ji=Symbol.for("v-stc"),Vi=[],Er=null;function mr(t=!1){Vi.push(Er=t?null:[])}function Vx(){Vi.pop(),Er=Vi[Vi.length-1]||null}var Wi=1;function dm(t){Wi+=t}function Xm(t){return t.dynamicChildren=Wi>0?Er||Wo:null,Vx(),Wi>0&&Er&&Er.push(t),t}function Br(t,o,n,s,d,u){return Xm(kt(t,o,n,s,d,u,!0))}function Eu(t,o,n,s,d){return Xm(wt(t,o,n,s,d,!0))}function qi(t){return t?t.__v_isVNode===!0:!1}function tn(t,o){return o.shapeFlag&6&&zn.has(o.type)?(t.shapeFlag&=-257,o.shapeFlag&=-513,!1):t.type===o.type&&t.key===o.key}var um;var $x=(...t)=>Ux(...um?um(t,Jt):t),Ms="__vInternal",Zm=({key:t})=>t??null,ws=({ref:t,ref_key:o,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?ut(t)||Tt(t)||ze(t)?{i:Jt,r:t,k:o,f:!!n}:t:null);function kt(t,o=null,n=null,s=0,d=null,u=t===Bt?0:1,c=!1,m=!1){let g={__v_isVNode:!0,__v_skip:!0,type:t,props:o,key:o&&Zm(o),ref:o&&ws(o),scopeId:Sm,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:u,patchFlag:s,dynamicProps:d,dynamicChildren:null,appContext:null,ctx:Jt};return m?(Du(g,n),u&128&&t.normalize(g)):n&&(g.shapeFlag|=ut(n)?8:16),g.key!==g.key&&ve("VNode created with invalid key (NaN). VNode type:",g.type),Wi>0&&!c&&Er&&(g.patchFlag>0||u&6)&&g.patchFlag!==32&&Er.push(g),g}var wt=$x;function Ux(t,o=null,n=null,s=0,d=null,u=!1){if((!t||t===ex)&&(t||ve(`Invalid vnode type when creating vnode: ${t}.`),t=It),qi(t)){let m=zr(t,o,!0);return n&&Du(m,n),Wi>0&&!u&&Er&&(m.shapeFlag&6?Er[Er.indexOf(t)]=m:Er.push(m)),m.patchFlag|=-2,m}if(th(t)&&(t=t.__vccOpts),o){o=Wx(o);let{class:m,style:g}=o;m&&!ut(m)&&(o.class=Li(m)),Xe(g)&&(Ri(g)&&!Me(g)&&(g=it({},g)),o.style=Oi(g))}let c=ut(t)?1:rx(t)?128:jx(t)?64:Xe(t)?4:ze(t)?2:0;return c&4&&Ri(t)&&(t=Ve(t),ve("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
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.create(null),t.proxy=cs(new Proxy(t.ctx,Im)),gx(t);let{setup:d}=s;if(d){let u=t.setupContext=d.length>1?ty(t):null,c=Qi(t);Kr();let m=eo(d,t,0,[vo(t.props),u]);if(Yr(),c(),qa(m)){if(m.then(cm,cm),o)return m.then(g=>{fm(t,g,o)}).catch(g=>{Gi(g,t,0)});if(t.asyncDep=m,!t.suspense){let g=(n=s.name)!=null?n:"Anonymous";ve(`Component <${g}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else fm(t,m,o)}else eh(t,o)}function fm(t,o,n){ze(o)?t.type.__ssrInlineRender?t.ssrRender=o:t.render=o:Xe(o)?(qi(o)&&ve("setup() should not return VNodes directly - return a render function instead."),t.devtoolsRawSetupState=o,t.setupState=ps(o),bx(t)):o!==void 0&&ve(`setup() should return an object. Received: ${o===null?"null":typeof o}`),eh(t,n)}var xs,pm;var Cu=()=>!xs;function eh(t,o,n){let s=t.type;if(!t.render){if(!o&&xs&&!s.render){let d=s.template||ku(t).template;if(d){Zr(t,"compile");let{isCustomElement:u,compilerOptions:c}=t.appContext.config,{delimiters:m,compilerOptions:g}=s,k=it(it({isCustomElement:u,delimiters:m},c),g);s.render=xs(d,k),Qr(t,"compile")}}t.render=s.render||Ft,pm&&pm(t)}{let d=Qi(t);Kr();try{wx(t)}finally{Yr(),d()}}!s.render&&t.render===Ft&&!o&&(!xs&&s.template?ve('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):ve("Component is missing template or render function."))}function Jx(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(o,n){return ks(),zt(t,"get","$attrs"),o[n]},set(){return ve("setupContext.attrs is readonly."),!1},deleteProperty(){return ve("setupContext.attrs is readonly."),!1}}))}function ey(t){return t.slotsProxy||(t.slotsProxy=new Proxy(t.slots,{get(o,n){return zt(t,"get","$slots"),o[n]}}))}function ty(t){return Object.freeze({get attrs(){return Jx(t)},get slots(){return ey(t)},get emit(){return(n,...s)=>t.emit(n,...s)},expose:n=>{if(t.exposed&&ve("expose() should be called only once per setup()."),n!=null){let s=typeof n;s==="object"&&(Me(n)?s="array":Tt(n)&&(s="ref")),s!=="object"&&ve(`expose() should be passed a plain object, received ${s}.`)}t.exposed=n||{}}})}function Su(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(ps(cs(t.exposed)),{get(o,n){if(n in o)return o[n];if(n in nn)return nn[n](t)},has(o,n){return n in o||n in nn}}))}var ry=/(?:^|[-_])(\w)/g,oy=t=>t.replace(ry,o=>o.toUpperCase()).replace(/[-_]/g,"");function Au(t,o=!0){return ze(t)?t.displayName||t.name:t.name||o&&t.__name}function Bs(t,o,n=!1){let s=Au(o);if(!s&&o.__file){let d=o.__file.match(/([^/\\]+)\.\w+$/);d&&(s=d[1])}if(!s&&t&&t.parent){let d=u=>{for(let c in u)if(u[c]===o)return c};s=d(t.components||t.parent.type.components)||d(t.appContext.components)}return s?oy(s):n?"App":"Anonymous"}function th(t){return ze(t)&&"__vccOpts"in t}var hr=(t,o)=>Wp(t,o,zs);function sn(t,o,n){let s=arguments.length;return s===2?Xe(o)&&!Me(o)?qi(o)?wt(t,null,[o]):wt(t,o):wt(t,null,o):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&qi(n)&&(n=[n]),wt(t,o,n))}function Zd(t){return!!(t&&t.__v_isShallow)}function rh(){if(typeof window>"u")return;let t={style:"color:#3ba776"},o={style:"color:#1677ff"},n={style:"color:#f5222d"},s={style:"color:#eb2f96"},d={header(_){return Xe(_)?_.__isVue?["div",t,"VueInstance"]:Tt(_)?["div",{},["span",t,x(_)],"<",m(_.value),">"]:Xr(_)?["div",{},["span",t,Zd(_)?"ShallowReactive":"Reactive"],"<",m(_),`>${Lr(_)?" (readonly)":""}`]:Lr(_)?["div",{},["span",t,Zd(_)?"ShallowReadonly":"Readonly"],"<",m(_),">"]:null:null},hasBody(_){return _&&_.__isVue},body(_){if(_&&_.__isVue)return["div",{},...u(_.$)]}};function u(_){let D=[];_.type.props&&_.props&&D.push(c("props",Ve(_.props))),_.setupState!==ot&&D.push(c("setup",_.setupState)),_.data!==ot&&D.push(c("data",Ve(_.data)));let O=g(_,"computed");O&&D.push(c("computed",O));let H=g(_,"inject");return H&&D.push(c("injected",H)),D.push(["div",{},["span",{style:s.style+";opacity:0.66"},"$ (internal): "],["object",{object:_}]]),D}function c(_,D){return D=it({},D),Object.keys(D).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},_],["div",{style:"padding-left:1.25em"},...Object.keys(D).map(O=>["div",{},["span",s,O+": "],m(D[O],!1)])]]:["span",{}]}function m(_,D=!0){return typeof _=="number"?["span",o,_]:typeof _=="string"?["span",n,JSON.stringify(_)]:typeof _=="boolean"?["span",s,_]:Xe(_)?["object",{object:D?Ve(_):_}]:["span",n,String(_)]}function g(_,D){let O=_.type;if(ze(O))return;let H={};for(let I in _.ctx)k(O,I,D)&&(H[I]=_.ctx[I]);return H}function k(_,D,O){let H=_[O];if(Me(H)&&H.includes(D)||Xe(H)&&D in H||_.extends&&k(_.extends,D,O)||_.mixins&&_.mixins.some(I=>k(I,D,O)))return!0}function x(_){return Zd(_)?"ShallowRef":_.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(d):window.devtoolsFormatters=[d]}var mm="3.4.15",Ir=ve;var ny="http://www.w3.org/2000/svg",iy="http://www.w3.org/1998/Math/MathML",Co=typeof document<"u"?document:null,oh=Co&&Co.createElement("template"),ay={insert:(t,o,n)=>{o.insertBefore(t,n||null)},remove:t=>{let o=t.parentNode;o&&o.removeChild(t)},createElement:(t,o,n,s)=>{let d=o==="svg"?Co.createElementNS(ny,t):o==="mathml"?Co.createElementNS(iy,t):Co.createElement(t,n?{is:n}:void 0);return t==="select"&&s&&s.multiple!=null&&d.setAttribute("multiple",s.multiple),d},createText:t=>Co.createTextNode(t),createComment:t=>Co.createComment(t),setText:(t,o)=>{t.nodeValue=o},setElementText:(t,o)=>{t.textContent=o},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Co.querySelector(t),setScopeId(t,o){t.setAttribute(o,"")},insertStaticContent(t,o,n,s,d,u){let c=n?n.previousSibling:o.lastChild;if(d&&(d===u||d.nextSibling))for(;o.insertBefore(d.cloneNode(!0),n),!(d===u||!(d=d.nextSibling)););else{oh.innerHTML=s==="svg"?`<svg>${t}</svg>`:s==="mathml"?`<math>${t}</math>`:t;let m=oh.content;if(s==="svg"||s==="mathml"){let g=m.firstChild;for(;g.firstChild;)m.appendChild(g.firstChild);m.removeChild(g)}o.insertBefore(m,n)}return[c?c.nextSibling:o.firstChild,n?n.previousSibling:o.lastChild]}},Eo="transition",Ji="animation",qn=Symbol("_vtc"),bh=(t,{slots:o})=>sn(Lm,wh(t),o);bh.displayName="Transition";var vh={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},sy=bh.props=it({},vu,vh),ln=(t,o=[])=>{Me(t)?t.forEach(n=>n(...o)):t&&t(...o)},nh=t=>t?Me(t)?t.some(o=>o.length>1):t.length>1:!1;function wh(t){let o={};for(let q in t)q in vh||(o[q]=t[q]);if(t.css===!1)return o;let{name:n="v",type:s,duration:d,enterFromClass:u=`${n}-enter-from`,enterActiveClass:c=`${n}-enter-active`,enterToClass:m=`${n}-enter-to`,appearFromClass:g=u,appearActiveClass:k=c,appearToClass:x=m,leaveFromClass:_=`${n}-leave-from`,leaveActiveClass:D=`${n}-leave-active`,leaveToClass:O=`${n}-leave-to`}=t,H=ly(d),I=H&&H[0],R=H&&H[1],{onBeforeEnter:j,onEnter:Y,onEnterCancelled:p,onLeave:v,onLeaveCancelled:w,onBeforeAppear:C=j,onAppear:T=Y,onAppearCancelled:z=p}=o,A=(q,L,U)=>{Do(q,L?x:m),Do(q,L?k:c),U&&U()},V=(q,L)=>{q._isLeaving=!1,Do(q,_),Do(q,O),Do(q,D),L&&L()},Z=q=>(L,U)=>{let N=q?T:Y,G=()=>A(L,q,U);ln(N,[L,G]),ih(()=>{Do(L,q?g:u),ro(L,q?x:m),nh(N)||ah(L,s,I,G)})};return it(o,{onBeforeEnter(q){ln(j,[q]),ro(q,u),ro(q,c)},onBeforeAppear(q){ln(C,[q]),ro(q,g),ro(q,k)},onEnter:Z(!1),onAppear:Z(!0),onLeave(q,L){q._isLeaving=!0;let U=()=>V(q,L);ro(q,_),yh(),ro(q,D),ih(()=>{q._isLeaving&&(Do(q,_),ro(q,O),nh(v)||ah(q,s,R,U))}),ln(v,[q,U])},onEnterCancelled(q){A(q,!1),ln(p,[q])},onAppearCancelled(q){A(q,!0),ln(z,[q])},onLeaveCancelled(q){V(q),ln(w,[q])}})}function ly(t){if(t==null)return null;if(Xe(t))return[Nu(t.enter),Nu(t.leave)];{let o=Nu(t);return[o,o]}}function Nu(t){let o=Od(t);return gm(o,"<transition> explicit duration"),o}function ro(t,o){o.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[qn]||(t[qn]=new Set)).add(o)}function Do(t,o){o.split(/\s+/).forEach(s=>s&&t.classList.remove(s));let n=t[qn];n&&(n.delete(o),n.size||(t[qn]=void 0))}function ih(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}var dy=0;function ah(t,o,n,s){let d=t._endId=++dy,u=()=>{d===t._endId&&s()};if(n)return setTimeout(u,n);let{type:c,timeout:m,propCount:g}=xh(t,o);if(!c)return s();let k=c+"end",x=0,_=()=>{t.removeEventListener(k,D),u()},D=O=>{O.target===t&&++x>=g&&_()};setTimeout(()=>{x<g&&_()},m+1),t.addEventListener(k,D)}function xh(t,o){let n=window.getComputedStyle(t),s=H=>(n[H]||"").split(", "),d=s(`${Eo}Delay`),u=s(`${Eo}Duration`),c=sh(d,u),m=s(`${Ji}Delay`),g=s(`${Ji}Duration`),k=sh(m,g),x=null,_=0,D=0;o===Eo?c>0&&(x=Eo,_=c,D=u.length):o===Ji?k>0&&(x=Ji,_=k,D=g.length):(_=Math.max(c,k),x=_>0?c>k?Eo:Ji:null,D=x?x===Eo?u.length:g.length:0);let O=x===Eo&&/\b(transform|all)(,|$)/.test(s(`${Eo}Property`).toString());return{type:x,timeout:_,propCount:D,hasTransform:O}}function sh(t,o){for(;t.length<o.length;)t=t.concat(t);return Math.max(...o.map((n,s)=>lh(n)+lh(t[s])))}function lh(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function yh(){return document.body.offsetHeight}function uy(t,o,n){let s=t[qn];s&&(o=(o?[o,...s]:[...s]).join(" ")),o==null?t.removeAttribute("class"):n?t.setAttribute("class",o):t.className=o}var Fu=Symbol("_vod"),cy={beforeMount(t,{value:o},{transition:n}){t[Fu]=t.style.display==="none"?"":t.style.display,n&&o?n.beforeEnter(t):ea(t,o)},mounted(t,{value:o},{transition:n}){n&&o&&n.enter(t)},updated(t,{value:o,oldValue:n},{transition:s}){!o!=!n&&(s?o?(s.beforeEnter(t),ea(t,!0),s.enter(t)):s.leave(t,()=>{ea(t,!1)}):ea(t,o))},beforeUnmount(t,{value:o}){ea(t,o)}};cy.name="show";function ea(t,o){t.style.display=o?t[Fu]:"none"}var fy=Symbol("CSS_VAR_TEXT");function py(t,o,n){let s=t.style,d=s.display,u=ut(n);if(n&&!u){if(o&&!ut(o))for(let c in o)n[c]==null&&Lu(s,c,"");for(let c in n)Lu(s,c,n[c])}else if(u){if(o!==n){let c=s[fy];c&&(n+=";"+c),s.cssText=n}}else o&&t.removeAttribute("style");Fu in t&&(s.display=d)}var my=/[^\\];\s*$/,dh=/\s*!important$/;function Lu(t,o,n){if(Me(n))n.forEach(s=>Lu(t,o,s));else if(n==null&&(n=""),my.test(n)&&Ir(`Unexpected semicolon at the end of '${o}' style value: '${n}'`),o.startsWith("--"))t.setProperty(o,n);else{let s=hy(t,o);dh.test(n)?t.setProperty(Tr(s),n.replace(dh,""),"important"):t[s]=n}}var uh=["Webkit","Moz","ms"],Tu={};function hy(t,o){let n=Tu[o];if(n)return n;let s=or(o);if(s!=="filter"&&s in t)return Tu[o]=s;s=xr(s);for(let d=0;d<uh.length;d++){let u=uh[d]+s;if(u in t)return Tu[o]=u}return o}var ch="http://www.w3.org/1999/xlink";function gy(t,o,n,s,d){if(s&&o.startsWith("xlink:"))n==null?t.removeAttributeNS(ch,o.slice(6,o.length)):t.setAttributeNS(ch,o,n);else{let u=Ep(o);n==null||u&&!Za(n)?t.removeAttribute(o):t.setAttribute(o,u?"":n)}}function by(t,o,n,s,d,u,c){if(o==="innerHTML"||o==="textContent"){s&&c(s,d,u),t[o]=n??"";return}let m=t.tagName;if(o==="value"&&m!=="PROGRESS"&&!m.includes("-")){t._value=n;let k=m==="OPTION"?t.getAttribute("value"):t.value,x=n??"";k!==x&&(t.value=x),n==null&&t.removeAttribute(o);return}let g=!1;if(n===""||n==null){let k=typeof t[o];k==="boolean"?n=Za(n):n==null&&k==="string"?(n="",g=!0):k==="number"&&(n=0,g=!0)}try{t[o]=n}catch(k){g||Ir(`Failed setting prop "${o}" on <${m.toLowerCase()}>: value ${n} is invalid.`,k)}g&&t.removeAttribute(o)}function vy(t,o,n,s){t.addEventListener(o,n,s)}function wy(t,o,n,s){t.removeEventListener(o,n,s)}var fh=Symbol("_vei");function xy(t,o,n,s,d=null){let u=t[fh]||(t[fh]={}),c=u[o];if(s&&c)c.value=s;else{let[m,g]=yy(o);if(s){let k=u[o]=Ey(s,d);vy(t,m,k,g)}else c&&(wy(t,m,c,g),u[o]=void 0)}}var ph=/(?:Once|Passive|Capture)$/;function yy(t){let o;if(ph.test(t)){o={};let s;for(;s=t.match(ph);)t=t.slice(0,t.length-s[0].length),o[s[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Tr(t.slice(2)),o]}var Ou=0,ky=Promise.resolve(),_y=()=>Ou||(ky.then(()=>Ou=0),Ou=Date.now());function Ey(t,o){let n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;sr(Dy(s,n.value),o,5,[s])};return n.value=t,n.attached=_y(),n}function Dy(t,o){if(Me(o)){let n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},o.map(s=>d=>!d._stopped&&s&&s(d))}else return o}var mh=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Cy=(t,o,n,s,d,u,c,m,g)=>{let k=d==="svg";o==="class"?uy(t,s,k):o==="style"?py(t,n,s):qo(o)?Mn(o)||xy(t,o,n,s,c):(o[0]==="."?(o=o.slice(1),!0):o[0]==="^"?(o=o.slice(1),!1):Sy(t,o,s,k))?by(t,o,s,u,c,m,g):(o==="true-value"?t._trueValue=s:o==="false-value"&&(t._falseValue=s),gy(t,o,s,k))};function Sy(t,o,n,s){if(s)return!!(o==="innerHTML"||o==="textContent"||o in t&&mh(o)&&ze(n));if(o==="spellcheck"||o==="draggable"||o==="translate"||o==="form"||o==="list"&&t.tagName==="INPUT"||o==="type"&&t.tagName==="TEXTAREA")return!1;if(o==="width"||o==="height"){let d=t.tagName;if(d==="IMG"||d==="VIDEO"||d==="CANVAS"||d==="SOURCE")return!1}return mh(o)&&ut(n)?!1:o in t}var kh=new WeakMap,_h=new WeakMap,Is=Symbol("_moveCb"),hh=Symbol("_enterCb"),Ay={name:"TransitionGroup",props:it({},sy,{tag:String,moveClass:String}),setup(t,{slots:o}){let n=Wn(),s=bu(),d,u;return xu(()=>{if(!d.length)return;let c=t.moveClass||`${t.name||"v"}-move`;if(!Fy(d[0].el,n.vnode.el,c))return;d.forEach(Ty),d.forEach(Oy);let m=d.filter(Ly);yh(),m.forEach(g=>{let k=g.el,x=k.style;ro(k,c),x.transform=x.webkitTransform=x.transitionDuration="";let _=k[Is]=D=>{D&&D.target!==k||(!D||/transform$/.test(D.propertyName))&&(k.removeEventListener("transitionend",_),k[Is]=null,Do(k,c))};k.addEventListener("transitionend",_)})}),()=>{let c=Ve(t),m=wh(c),g=c.tag||Bt;d=u,u=o.default?Ts(o.default()):[];for(let k=0;k<u.length;k++){let x=u[k];x.key!=null?Vn(x,jn(x,m,s,n)):Ir("<TransitionGroup> children must be keyed.")}if(d)for(let k=0;k<d.length;k++){let x=d[k];Vn(x,jn(x,m,s,n)),kh.set(x,x.el.getBoundingClientRect())}return wt(g,null,u)}}},Ny=t=>delete t.mode;Ay.props;function Ty(t){let o=t.el;o[Is]&&o[Is](),o[hh]&&o[hh]()}function Oy(t){_h.set(t,t.el.getBoundingClientRect())}function Ly(t){let o=kh.get(t),n=_h.get(t),s=o.left-n.left,d=o.top-n.top;if(s||d){let u=t.el.style;return u.transform=u.webkitTransform=`translate(${s}px,${d}px)`,u.transitionDuration="0s",t}}function Fy(t,o,n){let s=t.cloneNode(),d=t[qn];d&&d.forEach(m=>{m.split(/\s+/).forEach(g=>g&&s.classList.remove(g))}),n.split(/\s+/).forEach(m=>m&&s.classList.add(m)),s.style.display="none";let u=o.nodeType===1?o:o.parentNode;u.appendChild(s);let{hasTransform:c}=xh(s);return u.removeChild(s),c}var Yk=Symbol("_assign");var My=it({patchProp:Cy},ay),gh;function Py(){return gh||(gh=Km(My))}var Eh=(...t)=>{let o=Py().createApp(...t);zy(o),By(o);let{mount:n}=o;return o.mount=s=>{let d=Iy(s);if(!d)return;let u=o._component;!ze(u)&&!u.render&&!u.template&&(u.template=d.innerHTML),d.innerHTML="";let c=n(d,!1,Ry(d));return d instanceof Element&&(d.removeAttribute("v-cloak"),d.setAttribute("data-v-app","")),c},o};function Ry(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function zy(t){Object.defineProperty(t.config,"isNativeTag",{value:o=>xp(o)||yp(o)||kp(o),writable:!1})}function By(t){if(Cu()){let o=t.config.isCustomElement;Object.defineProperty(t.config,"isCustomElement",{get(){return o},set(){Ir("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});let n=t.config.compilerOptions,s='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';Object.defineProperty(t.config,"compilerOptions",{get(){return Ir(s),n},set(){Ir(s)}})}}function Iy(t){if(ut(t)){let o=document.querySelector(t);return o||Ir(`Failed to mount app: mount target selector "${t}" returned null.`),o}return window.ShadowRoot&&t instanceof window.ShadowRoot&&t.mode==="closed"&&Ir('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),t}function Hy(){rh()}Hy();function Dh(){return Mu().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Mu(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}var Ch=typeof Proxy=="function";var Sh="devtools-plugin:setup",Ah="plugin:settings:set";var Gn,Pu;function jy(){var t;return Gn!==void 0||(typeof window<"u"&&window.performance?(Gn=!0,Pu=window.performance):typeof global<"u"&&(!((t=global.perf_hooks)===null||t===void 0)&&t.performance)?(Gn=!0,Pu=global.perf_hooks.performance):Gn=!1),Gn}function Nh(){return jy()?Pu.now():Date.now()}var Hs=class{constructor(o,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=o,this.hook=n;let s={};if(o.settings)for(let c in o.settings){let m=o.settings[c];s[c]=m.defaultValue}let d=`__vue-devtools-plugin-settings__${o.id}`,u=Object.assign({},s);try{let c=localStorage.getItem(d),m=JSON.parse(c);Object.assign(u,m)}catch{}this.fallbacks={getSettings(){return u},setSettings(c){try{localStorage.setItem(d,JSON.stringify(c))}catch{}u=c},now(){return Nh()}},n&&n.on(Ah,(c,m)=>{c===this.plugin.id&&this.fallbacks.setSettings(m)}),this.proxiedOn=new Proxy({},{get:(c,m)=>this.target?this.target.on[m]:(...g)=>{this.onQueue.push({method:m,args:g})}}),this.proxiedTarget=new Proxy({},{get:(c,m)=>this.target?this.target[m]:m==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(m)?(...g)=>(this.targetQueue.push({method:m,args:g,resolve:()=>{}}),this.fallbacks[m](...g)):(...g)=>new Promise(k=>{this.targetQueue.push({method:m,args:g,resolve:k})})})}async setRealTarget(o){this.target=o;for(let n of this.onQueue)this.target.on[n.method](...n.args);for(let n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}};function Th(t,o){let n=t,s=Mu(),d=Dh(),u=Ch&&n.enableEarlyProxy;if(d&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!u))d.emit(Sh,t,o);else{let c=u?new Hs(n,d):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:o,proxy:c}),c&&o(c.proxiedTarget)}}var no=typeof window<"u";function Vy(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}var rt=Object.assign;function Ru(t,o){let n={};for(let s in o){let d=o[s];n[s]=lr(d)?d.map(t):t(d)}return n}var oa=()=>{},lr=Array.isArray;function Ye(t){let o=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+t].concat(o))}var $y=/\/$/,Uy=t=>t.replace($y,"");function zu(t,o,n="/"){let s,d={},u="",c="",m=o.indexOf("#"),g=o.indexOf("?");return m<g&&m>=0&&(g=-1),g>-1&&(s=o.slice(0,g),u=o.slice(g+1,m>-1?m:o.length),d=t(u)),m>-1&&(s=s||o.slice(0,m),c=o.slice(m,o.length)),s=Gy(s??o,n),{fullPath:s+(u&&"?")+u+c,path:s,query:d,hash:c}}function Wy(t,o){let n=o.query?t(o.query):"";return o.path+(n&&"?")+n+(o.hash||"")}function Oh(t,o){return!o||!t.toLowerCase().startsWith(o.toLowerCase())?t:t.slice(o.length)||"/"}function Lh(t,o,n){let s=o.matched.length-1,d=n.matched.length-1;return s>-1&&s===d&&No(o.matched[s],n.matched[d])&&Kh(o.params,n.params)&&t(o.query)===t(n.query)&&o.hash===n.hash}function No(t,o){return(t.aliasOf||t)===(o.aliasOf||o)}function Kh(t,o){if(Object.keys(t).length!==Object.keys(o).length)return!1;for(let n in t)if(!qy(t[n],o[n]))return!1;return!0}function qy(t,o){return lr(t)?Fh(t,o):lr(o)?Fh(o,t):t===o}function Fh(t,o){return lr(o)?t.length===o.length&&t.every((n,s)=>n===o[s]):t.length===1&&t[0]===o}function Gy(t,o){if(t.startsWith("/"))return t;if(!o.startsWith("/"))return Ye(`Cannot resolve a relative location without an absolute path. Trying to resolve "${t}" from "${o}". It should look like "/${o}".`),t;if(!t)return o;let n=o.split("/"),s=t.split("/"),d=s[s.length-1];(d===".."||d===".")&&s.push("");let u=n.length-1,c,m;for(c=0;c<s.length;c++)if(m=s[c],m!==".")if(m==="..")u>1&&u--;else break;return n.slice(0,u).join("/")+"/"+s.slice(c-(c===s.length?1:0)).join("/")}var ia;(function(t){t.pop="pop",t.push="push"})(ia||(ia={}));var na;(function(t){t.back="back",t.forward="forward",t.unknown=""})(na||(na={}));function Ky(t){if(!t)if(no){let o=document.querySelector("base");t=o&&o.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),Uy(t)}var Yy=/^[^#]+#/;function Xy(t,o){return t.replace(Yy,"#")+o}function Zy(t,o){let n=document.documentElement.getBoundingClientRect(),s=t.getBoundingClientRect();return{behavior:o.behavior,left:s.left-n.left-(o.left||0),top:s.top-n.top-(o.top||0)}}var Vs=()=>({left:window.pageXOffset,top:window.pageYOffset});function Qy(t){let o;if("el"in t){let n=t.el,s=typeof n=="string"&&n.startsWith("#");if(typeof t.el=="string"&&(!s||!document.getElementById(t.el.slice(1))))try{let u=document.querySelector(t.el);if(s&&u){Ye(`The selector "${t.el}" should be passed as "el: document.querySelector('${t.el}')" because it starts with "#".`);return}}catch{Ye(`The selector "${t.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}let d=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!d){Ye(`Couldn't find element using selector "${t.el}" returned by scrollBehavior.`);return}o=Zy(d,t)}else o=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(o):window.scrollTo(o.left!=null?o.left:window.pageXOffset,o.top!=null?o.top:window.pageYOffset)}function Mh(t,o){return(history.state?history.state.position-o:-1)+t}var Iu=new Map;function Jy(t,o){Iu.set(t,o)}function e1(t){let o=Iu.get(t);return Iu.delete(t),o}var t1=()=>location.protocol+"//"+location.host;function Yh(t,o){let{pathname:n,search:s,hash:d}=o,u=t.indexOf("#");if(u>-1){let m=d.includes(t.slice(u))?t.slice(u).length:1,g=d.slice(m);return g[0]!=="/"&&(g="/"+g),Oh(g,"")}return Oh(n,t)+s+d}function r1(t,o,n,s){let d=[],u=[],c=null,m=({state:D})=>{let O=Yh(t,location),H=n.value,I=o.value,R=0;if(D){if(n.value=O,o.value=D,c&&c===H){c=null;return}R=I?D.position-I.position:0}else s(O);d.forEach(j=>{j(n.value,H,{delta:R,type:ia.pop,direction:R?R>0?na.forward:na.back:na.unknown})})};function g(){c=n.value}function k(D){d.push(D);let O=()=>{let H=d.indexOf(D);H>-1&&d.splice(H,1)};return u.push(O),O}function x(){let{history:D}=window;D.state&&D.replaceState(rt({},D.state,{scroll:Vs()}),"")}function _(){for(let D of u)D();u=[],window.removeEventListener("popstate",m),window.removeEventListener("beforeunload",x)}return window.addEventListener("popstate",m),window.addEventListener("beforeunload",x,{passive:!0}),{pauseListeners:g,listen:k,destroy:_}}function Ph(t,o,n,s=!1,d=!1){return{back:t,current:o,forward:n,replaced:s,position:window.history.length,scroll:d?Vs():null}}function o1(t){let{history:o,location:n}=window,s={value:Yh(t,n)},d={value:o.state};d.value||u(s.value,{back:null,current:s.value,forward:null,position:o.length-1,replaced:!0,scroll:null},!0);function u(g,k,x){let _=t.indexOf("#"),D=_>-1?(n.host&&document.querySelector("base")?t:t.slice(_))+g:t1()+t+g;try{o[x?"replaceState":"pushState"](k,"",D),d.value=k}catch(O){Ye("Error with push/replace State",O),n[x?"replace":"assign"](D)}}function c(g,k){let x=rt({},o.state,Ph(d.value.back,g,d.value.forward,!0),k,{position:d.value.position});u(g,x,!0),s.value=g}function m(g,k){let x=rt({},d.value,o.state,{forward:g,scroll:Vs()});o.state||Ye(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
|
|
|
|
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.name}" for path "${t.path}". Only the last one will be available on "$route.params".`),u.add(c.name)}let d=rt(s,{record:t,parent:o,children:[],alias:[]});return o&&!d.record.aliasOf==!o.record.aliasOf&&o.children.push(d),d}function b1(t,o){let n=[],s=new Map;o=jh({strict:!1,end:!0,sensitive:!1},o);function d(x){return s.get(x)}function u(x,_,D){let O=!D,H=v1(x);k1(H,_),H.aliasOf=D&&D.record;let I=jh(o,x),R=[H];if("alias"in x){let p=typeof x.alias=="string"?[x.alias]:x.alias;for(let v of p)R.push(rt({},H,{components:D?D.record.components:H.components,path:v,aliasOf:D?D.record:H}))}let j,Y;for(let p of R){let{path:v}=p;if(_&&v[0]!=="/"){let w=_.record.path,C=w[w.length-1]==="/"?"":"/";p.path=_.record.path+(v&&C+v)}if(p.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
|
|
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,"|").replace(A1,"[").replace(N1,"]")}function F1(t){return Uu(t).replace(og,"{").replace(ng,"}").replace(rg,"^")}function ju(t){return Uu(t).replace(tg,"%2B").replace(L1,"+").replace(eg,"%23").replace(E1,"%26").replace(T1,"`").replace(og,"{").replace(ng,"}").replace(rg,"^")}function M1(t){return ju(t).replace(C1,"%3D")}function P1(t){return Uu(t).replace(eg,"%23").replace(S1,"%3F")}function R1(t){return t==null?"":P1(t).replace(D1,"%2F")}function aa(t){try{return decodeURIComponent(""+t)}catch{Ye(`Error decoding "${t}". Using original value`)}return""+t}function z1(t){let o={};if(t===""||t==="?")return o;let s=(t[0]==="?"?t.slice(1):t).split("&");for(let d=0;d<s.length;++d){let u=s[d].replace(tg," "),c=u.indexOf("="),m=aa(c<0?u:u.slice(0,c)),g=c<0?null:aa(u.slice(c+1));if(m in o){let k=o[m];lr(k)||(k=o[m]=[k]),k.push(g)}else o[m]=g}return o}function Vh(t){let o="";for(let n in t){let s=t[n];if(n=M1(n),s==null){s!==void 0&&(o+=(o.length?"&":"")+n);continue}(lr(s)?s.map(u=>u&&ju(u)):[s&&ju(s)]).forEach(u=>{u!==void 0&&(o+=(o.length?"&":"")+n,u!=null&&(o+="="+u))})}return o}function B1(t){let o={};for(let n in t){let s=t[n];s!==void 0&&(o[n]=lr(s)?s.map(d=>d==null?null:""+d):s==null?s:""+s)}return o}var I1=Symbol("router view location matched"),$h=Symbol("router view depth"),Wu=Symbol("router"),ig=Symbol("route location"),Vu=Symbol("router view location");function ta(){let t=[];function o(s){return t.push(s),()=>{let d=t.indexOf(s);d>-1&&t.splice(d,1)}}function n(){t=[]}return{add:o,list:()=>t.slice(),reset:n}}function Ao(t,o,n,s,d){let u=s&&(s.enterCallbacks[d]=s.enterCallbacks[d]||[]);return()=>new Promise((c,m)=>{let g=_=>{_===!1?m(Kn(4,{from:n,to:o})):_ instanceof Error?m(_):n1(_)?m(Kn(2,{from:o,to:_})):(u&&s.enterCallbacks[d]===u&&typeof _=="function"&&u.push(_),c())},k=t.call(s&&s.instances[d],o,n,H1(g,o,n)),x=Promise.resolve(k);if(t.length<3&&(x=x.then(g)),t.length>2){let _=`The "next" callback was never called inside of ${t.name?'"'+t.name+'"':""}:
|
|
${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.preventDefault&&t.preventDefault(),!0}}function W1(t,o){for(let n in o){let s=o[n],d=t[n];if(typeof s=="string"){if(s!==d)return!1}else if(!lr(d)||d.length!==s.length||s.some((u,c)=>u!==d[c]))return!1}return!0}function Wh(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}var qh=(t,o,n)=>t??o??n,q1=Os({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:o,slots:n}){K1();let s=Rr(Vu),d=hr(()=>t.route||s.value),u=Rr($h,0),c=hr(()=>{let k=wo(u),{matched:x}=d.value,_;for(;(_=x[k])&&!_.components;)k++;return k}),m=hr(()=>d.value.matched[c.value]);Xi($h,hr(()=>c.value+1)),Xi(I1,m),Xi(Vu,d);let g=fs();return Hn(()=>[g.value,m.value,t.name],([k,x,_],[D,O,H])=>{x&&(x.instances[_]=k,O&&O!==x&&k&&k===D&&(x.leaveGuards.size||(x.leaveGuards=O.leaveGuards),x.updateGuards.size||(x.updateGuards=O.updateGuards))),k&&x&&(!O||!No(x,O)||!D)&&(x.enterCallbacks[_]||[]).forEach(I=>I(k))},{flush:"post"}),()=>{let k=d.value,x=t.name,_=m.value,D=_&&_.components[x];if(!D)return Gh(n.default,{Component:D,route:k});let O=_.props[x],H=O?O===!0?k.params:typeof O=="function"?O(k):O:null,R=sn(D,rt({},H,o,{onVnodeUnmounted:j=>{j.component.isUnmounted&&(_.instances[x]=null)},ref:g}));if(no&&R.ref){let j={depth:c.value,name:_.name,path:_.path,meta:_.meta};(lr(R.ref)?R.ref.map(p=>p.i):[R.ref.i]).forEach(p=>{p.__vrv_devtools=j})}return Gh(n.default,{Component:R,route:k})||R}}});function Gh(t,o){if(!t)return null;let n=t(o);return n.length===1?n[0]:n}var G1=q1;function K1(){let t=Wn(),o=t.parent&&t.parent.type.name,n=t.parent&&t.parent.subTree&&t.parent.subTree.type;if(o&&(o==="KeepAlive"||o.includes("Transition"))&&typeof n=="object"&&n.name==="RouterView"){let s=o==="KeepAlive"?"keep-alive":"transition";Ye(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
|
|
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(" | "),tooltip:"Score used to sort routes",value:t.score}}}),n}var ag=15485081,sg=2450411,lg=8702998,J1=2282478,dg=16486972,e3=6710886;function ug(t){let o=[],{record:n}=t;n.name!=null&&o.push({label:String(n.name),textColor:0,backgroundColor:J1}),n.aliasOf&&o.push({label:"alias",textColor:0,backgroundColor:dg}),t.__vd_match&&o.push({label:"matches",textColor:0,backgroundColor:ag}),t.__vd_exactActive&&o.push({label:"exact",textColor:0,backgroundColor:lg}),t.__vd_active&&o.push({label:"active",textColor:0,backgroundColor:sg}),n.redirect&&o.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:e3});let s=n.__vd_id;return s==null&&(s=String(t3++),n.__vd_id=s),{id:s,label:n.path,tags:o,children:t.children.map(ug)}}var t3=0,r3=/^\/(.*)\/([a-z]*)$/;function cg(t,o){let n=o.matched.length&&No(o.matched[o.matched.length-1],t.record);t.__vd_exactActive=t.__vd_active=n,n||(t.__vd_active=o.matched.some(s=>No(s,t.record))),t.children.forEach(s=>cg(s,o))}function fg(t){t.__vd_match=!1,t.children.forEach(fg)}function $u(t,o){let n=String(t.re).match(r3);if(t.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(o))return t.children.forEach(c=>$u(c,o)),t.record.path!=="/"||o==="/"?(t.__vd_match=t.re.test(o),!0):!1;let d=t.record.path.toLowerCase(),u=aa(d);return!o.startsWith("/")&&(u.includes(o)||d.includes(o))||u.startsWith(o)||d.startsWith(o)||t.record.name&&String(t.record.name).includes(o)?!0:t.children.some(c=>$u(c,o))}function o3(t,o){let n={};for(let s in t)o.includes(s)||(n[s]=t[s]);return n}function pg(t){let o=b1(t.routes,t),n=t.parseQuery||z1,s=t.stringifyQuery||Vh,d=t.history;if(!d)throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');let u=ta(),c=ta(),m=ta(),g=Wd(So),k=So;no&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");let x=Ru.bind(null,X=>""+X),_=Ru.bind(null,R1),D=Ru.bind(null,aa);function O(X,ce){let ie,he;return Zh(X)?(ie=o.getRecordMatcher(X),he=ce):he=X,o.addRoute(he,ie)}function H(X){let ce=o.getRecordMatcher(X);ce?o.removeRoute(ce):Ye(`Cannot remove non-existent route "${String(X)}"`)}function I(){return o.getRoutes().map(X=>X.record)}function R(X){return!!o.getRecordMatcher(X)}function j(X,ce){if(ce=rt({},ce||g.value),typeof X=="string"){let F=zu(n,X,ce.path),$=o.resolve({path:F.path},ce),Q=d.createHref(F.fullPath);return Q.startsWith("//")?Ye(`Location "${X}" resolved to "${Q}". A resolved location cannot start with multiple slashes.`):$.matched.length||Ye(`No match found for location with path "${X}"`),rt(F,$,{params:D($.params),hash:aa(F.hash),redirectedFrom:void 0,href:Q})}let ie;if("path"in X)"params"in X&&!("name"in X)&&Object.keys(X.params).length&&Ye(`Path "${X.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),ie=rt({},X,{path:zu(n,X.path,ce.path).path});else{let F=rt({},X.params);for(let $ in F)F[$]==null&&delete F[$];ie=rt({},X,{params:_(F)}),ce.params=_(ce.params)}let he=o.resolve(ie,ce),Ce=X.hash||"";Ce&&!Ce.startsWith("#")&&Ye(`A \`hash\` should always start with the character "#". Replace "${Ce}" with "#${Ce}".`),he.params=x(D(he.params));let $e=Wy(s,rt({},X,{hash:F1(Ce),path:he.path})),He=d.createHref($e);return He.startsWith("//")?Ye(`Location "${X}" resolved to "${He}". A resolved location cannot start with multiple slashes.`):he.matched.length||Ye(`No match found for location with path "${"path"in X?X.path:X}"`),rt({fullPath:$e,hash:Ce,query:s===Vh?B1(X.query):X.query||{}},he,{redirectedFrom:void 0,href:He})}function Y(X){return typeof X=="string"?zu(n,X,g.value.path):rt({},X)}function p(X,ce){if(k!==X)return Kn(8,{from:ce,to:X})}function v(X){return T(X)}function w(X){return v(rt(Y(X),{replace:!0}))}function C(X){let ce=X.matched[X.matched.length-1];if(ce&&ce.redirect){let{redirect:ie}=ce,he=typeof ie=="function"?ie(X):ie;if(typeof he=="string"&&(he=he.includes("?")||he.includes("#")?he=Y(he):{path:he},he.params={}),!("path"in he)&&!("name"in he))throw Ye(`Invalid redirect found:
|
|
${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 $s={data(){return{navContent:""}},methods:{loadNav(){return fetch("/_content/_navigation").then(t=>t.json()).then(t=>{this.navContent=t.content.split(`
|
|
`).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;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.content,prerender:u.prerender,onRendered:u.rendered},null,8,["content","prerender","onRendered"])],512)])])}xl.render=Ob;xl.__file="src/view.vue";var Lb=xl;var uk=[{component:Lb,name:"view",path:"/:page"},{component:Db,name:"edit",path:"/:page/edit"},{name:"home",path:"/",redirect:"/Home"}],Fb=pg({history:Xh(),mode:"history",routes:uk}),Mb=Eh({name:"WikiMain",render(){return sn(hg)},router:Fb});Mb.use(Fb);Mb.mount("#app");})();
|