(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-df089062"],{"0068":function(t,e,n){"use strict";function i(t){return Object.prototype.toString.call(t)}function r(t){return"[object String]"===i(t)}var o=Object.prototype.hasOwnProperty;function a(t,e){return o.call(t,e)}function s(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach((function(e){if(e){if("object"!==typeof e)throw new TypeError(e+"must be object");Object.keys(e).forEach((function(n){t[n]=e[n]}))}})),t}function l(t,e,n){return[].concat(t.slice(0,e),n,t.slice(e+1))}function c(t){return!(t>=55296&&t<=57343)&&(!(t>=64976&&t<=65007)&&(65535!==(65535&t)&&65534!==(65535&t)&&(!(t>=0&&t<=8)&&(11!==t&&(!(t>=14&&t<=31)&&(!(t>=127&&t<=159)&&!(t>1114111)))))))}function u(t){if(t>65535){t-=65536;var e=55296+(t>>10),n=56320+(1023&t);return String.fromCharCode(e,n)}return String.fromCharCode(t)}var d=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,h=/&([a-z#][a-z0-9]{1,31});/gi,p=new RegExp(d.source+"|"+h.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,m=n("bd68");function g(t,e){var n;return a(m,e)?m[e]:35===e.charCodeAt(0)&&f.test(e)&&(n="x"===e[1].toLowerCase()?parseInt(e.slice(2),16):parseInt(e.slice(1),10),c(n))?u(n):t}function v(t){return t.indexOf("\\")<0?t:t.replace(d,"$1")}function y(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(p,(function(t,e,n){return e||g(t,n)}))}var b=/[&<>"]/,w=/[&<>"]/g,x={"&":"&","<":"<",">":">",'"':"""};function C(t){return x[t]}function k(t){return b.test(t)?t.replace(w,C):t}var A=/[.?*+^$[\]\\(){}|-]/g;function E(t){return t.replace(A,"\\$&")}function M(t){switch(t){case 9:case 32:return!0}return!1}function T(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var S=n("7ca0");function N(t){return S.test(t)}function O(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function D(t){return t=t.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(t=t.replace(/ẞ/g,"ß")),t.toLowerCase().toUpperCase()}e.lib={},e.lib.mdurl=n("d8a6"),e.lib.ucmicro=n("d5d1"),e.assign=s,e.isString=r,e.has=a,e.unescapeMd=v,e.unescapeAll=y,e.isValidEntityCode=c,e.fromCodePoint=u,e.escapeHtml=k,e.arrayReplaceAt=l,e.isSpace=M,e.isWhiteSpace=T,e.isMdAsciiPunct=O,e.isPunctChar=N,e.escapeRE=E,e.normalizeReference=D},"0082":function(t,e,n){t.exports=n.p+"img/ditu.svg"},"00fd":function(t,e,n){var i=n("9e69"),r=Object.prototype,o=r.hasOwnProperty,a=r.toString,s=i?i.toStringTag:void 0;function l(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var i=!0}catch(l){}var r=a.call(t);return i&&(e?t[s]=n:delete t[s]),r}t.exports=l},"019d":function(t,e,n){},"01ec":function(t,e,n){t.exports=n.p+"img/minions.webp"},"027d":function(t,e,n){t.exports=n.p+"img/zhongyangjie.svg"},"02a0":function(t,e,n){t.exports=n.p+"img/a-18-xiguan.svg"},"03dd":function(t,e,n){var i=n("eac5"),r=n("57a5"),o=Object.prototype,a=o.hasOwnProperty;function s(t){if(!i(t))return r(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}t.exports=s},"0455":function(t,e,n){t.exports=n.p+"img/zhongqiujie.svg"},"047b":function(t,e,n){t.exports=n.p+"img/classic9.webp"},"049e":function(t,e,n){t.exports=n.p+"img/shiyan.svg"},"050a":function(t,e,n){"use strict";n("44c7")},"05d6":function(t,e,n){"use strict";n("bcf9")},"0613":function(t,e,n){t.exports=n.p+"img/a-6-jiancebi.svg"},"0644":function(t,e,n){var i=n("3818"),r=1,o=4;function a(t){return i(t,r|o)}t.exports=a},"06be":function(t,e,n){const i=n("df02"),r=(t,e)=>new i(t,e).major;t.exports=r},"0722":function(t,e,n){"use strict";n("3f40")},"0738":function(t,e,n){t.exports=n.p+"img/classic13.webp"},"0758":function(t,e,n){"use strict";var i=n("0068").isSpace;t.exports=function(t,e,n,r){var o,a,s,l,c=t.bMarks[e]+t.tShift[e],u=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(o=t.src.charCodeAt(c),35!==o||c>=u)return!1;a=1,o=t.src.charCodeAt(++c);while(35===o&&c6||cc&&i(t.src.charCodeAt(s-1))&&(u=s),t.line=e+1,l=t.push("heading_open","h"+String(a),1),l.markup="########".slice(0,a),l.map=[e,t.line],l=t.push("inline","",0),l.content=t.src.slice(c,u).trim(),l.map=[e,t.line],l.children=[],l=t.push("heading_close","h"+String(a),-1),l.markup="########".slice(0,a)),!0)}},"07c7":function(t,e){function n(){return!1}t.exports=n},"07f3":function(t,e,n){t.exports=n.p+"img/duanwujie.svg"},"0860":function(t,e,n){"use strict";n("825f")},"087d":function(t,e){function n(t,e){var n=-1,i=e.length,r=t.length;while(++n=0))try{e.hostname=d.toASCII(e.hostname)}catch(n){}return u.encode(u.format(e))}function y(t){var e=u.parse(t,!0);if(e.hostname&&(!e.protocol||g.indexOf(e.protocol)>=0))try{e.hostname=d.toUnicode(e.hostname)}catch(n){}return u.decode(u.format(e),u.decode.defaultChars+"%")}function b(t,e){if(!(this instanceof b))return new b(t,e);e||i.isString(t)||(e=t||{},t="default"),this.inline=new l,this.block=new s,this.core=new a,this.renderer=new o,this.linkify=new c,this.validateLink=m,this.normalizeLink=v,this.normalizeLinkText=y,this.utils=i,this.helpers=i.assign({},r),this.options={},this.configure(t),e&&this.set(e)}b.prototype.set=function(t){return i.assign(this.options,t),this},b.prototype.configure=function(t){var e,n=this;if(i.isString(t)&&(e=t,t=h[e],!t))throw new Error('Wrong `markdown-it` preset "'+e+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&n.set(t.options),t.components&&Object.keys(t.components).forEach((function(e){t.components[e].rules&&n[e].ruler.enableOnly(t.components[e].rules),t.components[e].rules2&&n[e].ruler2.enableOnly(t.components[e].rules2)})),this},b.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach((function(e){n=n.concat(this[e].ruler.enable(t,!0))}),this),n=n.concat(this.inline.ruler2.enable(t,!0));var i=t.filter((function(t){return n.indexOf(t)<0}));if(i.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this},b.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach((function(e){n=n.concat(this[e].ruler.disable(t,!0))}),this),n=n.concat(this.inline.ruler2.disable(t,!0));var i=t.filter((function(t){return n.indexOf(t)<0}));if(i.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this},b.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},b.prototype.parse=function(t,e){if("string"!==typeof t)throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens},b.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},b.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},b.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)},t.exports=b},"08cf":function(t,e,n){"use strict";n("2acb")},"0901":function(t,e,n){t.exports=n.p+"img/romanticPurple.webp"},"0914":function(t,e,n){t.exports=n.p+"img/tiyu.svg"},"096b":function(t,e,n){"use strict";function i(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}i.prototype.attrIndex=function(t){var e,n,i;if(!this.attrs)return-1;for(e=this.attrs,n=0,i=e.length;n=0&&(n=this.attrs[e][1]),n},i.prototype.attrJoin=function(t,e){var n=this.attrIndex(t);n<0?this.attrPush([t,e]):this.attrs[n][1]=this.attrs[n][1]+" "+e},t.exports=i},"097b":function(t,e,n){"use strict";var i=n("096b"),r=n("0068").isWhiteSpace,o=n("0068").isPunctChar,a=n("0068").isMdAsciiPunct;function s(t,e,n,i){this.src=t,this.env=n,this.md=e,this.tokens=i,this.tokens_meta=Array(i.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}s.prototype.pushPending=function(){var t=new i("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},s.prototype.push=function(t,e,n){this.pending&&this.pushPending();var r=new i(t,e,n),o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r},s.prototype.scanDelims=function(t,e){var n,i,s,l,c,u,d,h,p,f=t,m=!0,g=!0,v=this.posMax,y=this.src.charCodeAt(t);n=t>0?this.src.charCodeAt(t-1):32;while(f1&&void 0!==arguments[1]?arguments[1]:{};d(this,t),this.onClick=function(){n.hide()},this.quill=e,this.options=(0,o.default)(s.default,i,{arrayMerge:h}),this.currentSpec=null,this.actions=[],this.overlay=document.createElement("div"),this.overlay.classList.add(this.options.overlay.className),this.options.overlay.style&&Object.assign(this.overlay.style,this.options.overlay.style),document.execCommand("enableObjectResizing",!1,"false"),this.quill.root.parentNode.style.position=this.quill.root.parentNode.style.position||"relative",this.quill.root.addEventListener("click",this.onClick),this.specs=this.options.specs.map((function(t){return new t(n)})),this.specs.forEach((function(t){return t.init()}))}return i(t,[{key:"show",value:function(t){this.currentSpec=t,this.currentSpec.setSelection(),this.setUserSelect("none"),this.quill.root.parentNode.appendChild(this.overlay),this.repositionOverlay(),this.createActions(t)}},{key:"hide",value:function(){this.currentSpec&&(this.currentSpec.onHide(),this.currentSpec=null,this.quill.root.parentNode.removeChild(this.overlay),this.overlay.style.setProperty("display","none"),this.setUserSelect(""),this.destroyActions())}},{key:"update",value:function(){this.repositionOverlay(),this.actions.forEach((function(t){return t.onUpdate()}))}},{key:"createActions",value:function(t){var e=this;this.actions=t.getActions().map((function(t){var n=new t(e);return n.onCreate(),n}))}},{key:"destroyActions",value:function(){this.actions.forEach((function(t){return t.onDestroy()})),this.actions=[]}},{key:"repositionOverlay",value:function(){if(this.currentSpec){var t=this.currentSpec.getOverlayElement();if(t){var e=this.quill.root.parentNode,n=t.getBoundingClientRect(),i=e.getBoundingClientRect();Object.assign(this.overlay.style,{display:"block",left:n.left-i.left-1+e.scrollLeft+"px",top:n.top-i.top+e.scrollTop+"px",width:n.width+"px",height:n.height+"px"})}}}},{key:"setUserSelect",value:function(t){var e=this,n=["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"];n.forEach((function(n){e.quill.root.style.setProperty(n,t),document.documentElement&&document.documentElement.style.setProperty(n,t)}))}}]),t}();e.default=p},"0bf4":function(t,e,n){t.exports=n.p+"img/ziyuan_1.svg"},"0d24":function(t,e,n){(function(t){var i=n("2b3e"),r=n("07c7"),o=e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o,l=s?i.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||r;t.exports=u}).call(this,n("62e4")(t))},"0d7c":function(t,e,n){(function(e){const n="object"===typeof e&&Object({VUE_APP_KMIND_ENV:"pro",NODE_ENV:"production",VUE_APP_SIYUAN_WIDGET:"true",BASE_URL:""})&&Object({VUE_APP_KMIND_ENV:"pro",NODE_ENV:"production",VUE_APP_SIYUAN_WIDGET:"true",BASE_URL:""}).NODE_DEBUG&&/\bsemver\b/i.test(Object({VUE_APP_KMIND_ENV:"pro",NODE_ENV:"production",VUE_APP_SIYUAN_WIDGET:"true",BASE_URL:""}).NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=n}).call(this,n("4362"))},"0e25":function(t,e,n){t.exports=n.p+"img/a-13-xiguan.svg"},"0e49":function(t,e,n){const i=n("f06c"),r=(t,e,n)=>i(t,e,n)>=0;t.exports=r},"0e50":function(t,e,n){t.exports=n.p+"img/ziyuan_2.svg"},"0e5f":function(t,e,n){t.exports=n.p+"img/a-9-tizhongcheng.svg"},"0ec4":function(t,e,n){},"0f02":function(t,e,n){t.exports=n.p+"img/coffee.webp"},"0f08":function(t,e,n){(function(t){(function(e){e.parser=function(t,e){return new o(t,e)},e.SAXParser=o,e.SAXStream=d,e.createStream=u,e.MAX_BUFFER_LENGTH=65536;var i,r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function o(t,n){if(!(this instanceof o))return new o(t,n);var i=this;s(i),i.q=i.c="",i.bufferCheckPosition=e.MAX_BUFFER_LENGTH,i.opt=n||{},i.opt.lowercase=i.opt.lowercase||i.opt.lowercasetags,i.looseCase=i.opt.lowercase?"toLowerCase":"toUpperCase",i.tags=[],i.closed=i.closedRoot=i.sawRoot=!1,i.tag=i.error=null,i.strict=!!t,i.noscript=!(!t&&!i.opt.noscript),i.state=M.BEGIN,i.strictEntities=i.opt.strictEntities,i.ENTITIES=i.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),i.attribList=[],i.opt.xmlns&&(i.ns=Object.create(g)),void 0===i.opt.unquotedAttributeValues&&(i.opt.unquotedAttributeValues=!t),i.trackPosition=!1!==i.opt.position,i.trackPosition&&(i.position=i.line=i.column=0),S(i,"onready")}function a(t){for(var n=Math.max(e.MAX_BUFFER_LENGTH,10),i=0,o=0,a=r.length;on)switch(r[o]){case"textNode":O(t);break;case"cdata":N(t,"oncdata",t.cdata),t.cdata="";break;case"script":N(t,"onscript",t.script),t.script="";break;default:L(t,"Max buffer length exceeded: "+r[o])}i=Math.max(i,s)}var l=e.MAX_BUFFER_LENGTH-i;t.bufferCheckPosition=l+t.position}function s(t){for(var e=0,n=r.length;e"===t||x(t)}function A(t,e){return t.test(e)}function E(t,e){return!A(t,e)}var M=0;for(var T in e.STATE={BEGIN:M++,BEGIN_WHITESPACE:M++,TEXT:M++,TEXT_ENTITY:M++,OPEN_WAKA:M++,SGML_DECL:M++,SGML_DECL_QUOTED:M++,DOCTYPE:M++,DOCTYPE_QUOTED:M++,DOCTYPE_DTD:M++,DOCTYPE_DTD_QUOTED:M++,COMMENT_STARTING:M++,COMMENT:M++,COMMENT_ENDING:M++,COMMENT_ENDED:M++,CDATA:M++,CDATA_ENDING:M++,CDATA_ENDING_2:M++,PROC_INST:M++,PROC_INST_BODY:M++,PROC_INST_ENDING:M++,OPEN_TAG:M++,OPEN_TAG_SLASH:M++,ATTRIB:M++,ATTRIB_NAME:M++,ATTRIB_NAME_SAW_WHITE:M++,ATTRIB_VALUE:M++,ATTRIB_VALUE_QUOTED:M++,ATTRIB_VALUE_CLOSED:M++,ATTRIB_VALUE_UNQUOTED:M++,ATTRIB_VALUE_ENTITY_Q:M++,ATTRIB_VALUE_ENTITY_U:M++,CLOSE_TAG:M++,CLOSE_TAG_SAW_WHITE:M++,SCRIPT:M++,SCRIPT_ENDING:M++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach((function(t){var n=e.ENTITIES[t],i="number"===typeof n?String.fromCharCode(n):n;e.ENTITIES[t]=i})),e.STATE)e.STATE[e.STATE[T]]=T;function S(t,e,n){t[e]&&t[e](n)}function N(t,e,n){t.textNode&&O(t),S(t,e,n)}function O(t){t.textNode=D(t.opt,t.textNode),t.textNode&&S(t,"ontext",t.textNode),t.textNode=""}function D(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function L(t,e){return O(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,S(t,"onerror",e),t}function I(t){return t.sawRoot&&!t.closedRoot&&P(t,"Unclosed root tag"),t.state!==M.BEGIN&&t.state!==M.BEGIN_WHITESPACE&&t.state!==M.TEXT&&L(t,"Unexpected end"),O(t),t.c="",t.closed=!0,S(t,"onend"),o.call(t,t.strict,t.opt),t}function P(t,e){if("object"!==typeof t||!(t instanceof o))throw new Error("bad call to strictFail");t.strict&&L(t,e)}function R(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,n=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(n.ns=e.ns),t.attribList.length=0,N(t,"onopentagstart",n)}function F(t,e){var n=t.indexOf(":"),i=n<0?["",t]:t.split(":"),r=i[0],o=i[1];return e&&"xmlns"===t&&(r="xmlns",o=""),{prefix:r,local:o}}function j(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))t.attribName=t.attribValue="";else{if(t.opt.xmlns){var e=F(t.attribName,!0),n=e.prefix,i=e.local;if("xmlns"===n)if("xml"===i&&t.attribValue!==f)P(t,"xml: prefix must be bound to "+f+"\nActual: "+t.attribValue);else if("xmlns"===i&&t.attribValue!==m)P(t,"xmlns: prefix must be bound to "+m+"\nActual: "+t.attribValue);else{var r=t.tag,o=t.tags[t.tags.length-1]||t;r.ns===o.ns&&(r.ns=Object.create(o.ns)),r.ns[i]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,N(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}}function z(t,e){if(t.opt.xmlns){var n=t.tag,i=F(t.tagName);n.prefix=i.prefix,n.local=i.local,n.uri=n.ns[i.prefix]||"",n.prefix&&!n.uri&&(P(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),n.uri=i.prefix);var r=t.tags[t.tags.length-1]||t;n.ns&&r.ns!==n.ns&&Object.keys(n.ns).forEach((function(e){N(t,"onopennamespace",{prefix:e,uri:n.ns[e]})}));for(var o=0,a=t.attribList.length;o",t.tagName="",void(t.state=M.SCRIPT);N(t,"onscript",t.script),t.script=""}var e=t.tags.length,n=t.tagName;t.strict||(n=n[t.looseCase]());var i=n;while(e--){var r=t.tags[e];if(r.name===i)break;P(t,"Unexpected close tag")}if(e<0)return P(t,"Unmatched closing tag: "+t.tagName),t.textNode+="",void(t.state=M.TEXT);t.tagName=n;var o=t.tags.length;while(o-- >e){var a=t.tag=t.tags.pop();t.tagName=t.tag.name,N(t,"onclosetag",t.tagName);var s={};for(var l in a.ns)s[l]=a.ns[l];var c=t.tags[t.tags.length-1]||t;t.opt.xmlns&&a.ns!==c.ns&&Object.keys(a.ns).forEach((function(e){var n=a.ns[e];N(t,"onclosenamespace",{prefix:e,uri:n})}))}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=M.TEXT}function H(t){var e,n=t.entity,i=n.toLowerCase(),r="";return t.ENTITIES[n]?t.ENTITIES[n]:t.ENTITIES[i]?t.ENTITIES[i]:(n=i,"#"===n.charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),e=parseInt(n,16),r=e.toString(16)):(n=n.slice(1),e=parseInt(n,10),r=e.toString(10))),n=n.replace(/^0+/,""),isNaN(e)||r.toLowerCase()!==n?(P(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e))}function q(t,e){"<"===e?(t.state=M.OPEN_WAKA,t.startTagPosition=t.position):x(e)||(P(t,"Non-whitespace before first tag."),t.textNode=e,t.state=M.TEXT)}function U(t,e){var n="";return e"===r?(N(n,"onsgmldeclaration",n.sgmlDecl),n.sgmlDecl="",n.state=M.TEXT):C(r)?(n.state=M.SGML_DECL_QUOTED,n.sgmlDecl+=r):n.sgmlDecl+=r;continue;case M.SGML_DECL_QUOTED:r===n.q&&(n.state=M.SGML_DECL,n.q=""),n.sgmlDecl+=r;continue;case M.DOCTYPE:">"===r?(n.state=M.TEXT,N(n,"ondoctype",n.doctype),n.doctype=!0):(n.doctype+=r,"["===r?n.state=M.DOCTYPE_DTD:C(r)&&(n.state=M.DOCTYPE_QUOTED,n.q=r));continue;case M.DOCTYPE_QUOTED:n.doctype+=r,r===n.q&&(n.q="",n.state=M.DOCTYPE);continue;case M.DOCTYPE_DTD:"]"===r?(n.doctype+=r,n.state=M.DOCTYPE):"<"===r?(n.state=M.OPEN_WAKA,n.startTagPosition=n.position):C(r)?(n.doctype+=r,n.state=M.DOCTYPE_DTD_QUOTED,n.q=r):n.doctype+=r;continue;case M.DOCTYPE_DTD_QUOTED:n.doctype+=r,r===n.q&&(n.state=M.DOCTYPE_DTD,n.q="");continue;case M.COMMENT:"-"===r?n.state=M.COMMENT_ENDING:n.comment+=r;continue;case M.COMMENT_ENDING:"-"===r?(n.state=M.COMMENT_ENDED,n.comment=D(n.opt,n.comment),n.comment&&N(n,"oncomment",n.comment),n.comment=""):(n.comment+="-"+r,n.state=M.COMMENT);continue;case M.COMMENT_ENDED:">"!==r?(P(n,"Malformed comment"),n.comment+="--"+r,n.state=M.COMMENT):n.doctype&&!0!==n.doctype?n.state=M.DOCTYPE_DTD:n.state=M.TEXT;continue;case M.CDATA:"]"===r?n.state=M.CDATA_ENDING:n.cdata+=r;continue;case M.CDATA_ENDING:"]"===r?n.state=M.CDATA_ENDING_2:(n.cdata+="]"+r,n.state=M.CDATA);continue;case M.CDATA_ENDING_2:">"===r?(n.cdata&&N(n,"oncdata",n.cdata),N(n,"onclosecdata"),n.cdata="",n.state=M.TEXT):"]"===r?n.cdata+="]":(n.cdata+="]]"+r,n.state=M.CDATA);continue;case M.PROC_INST:"?"===r?n.state=M.PROC_INST_ENDING:x(r)?n.state=M.PROC_INST_BODY:n.procInstName+=r;continue;case M.PROC_INST_BODY:if(!n.procInstBody&&x(r))continue;"?"===r?n.state=M.PROC_INST_ENDING:n.procInstBody+=r;continue;case M.PROC_INST_ENDING:">"===r?(N(n,"onprocessinginstruction",{name:n.procInstName,body:n.procInstBody}),n.procInstName=n.procInstBody="",n.state=M.TEXT):(n.procInstBody+="?"+r,n.state=M.PROC_INST_BODY);continue;case M.OPEN_TAG:A(y,r)?n.tagName+=r:(R(n),">"===r?z(n):"/"===r?n.state=M.OPEN_TAG_SLASH:(x(r)||P(n,"Invalid character in tag name"),n.state=M.ATTRIB));continue;case M.OPEN_TAG_SLASH:">"===r?(z(n,!0),B(n)):(P(n,"Forward-slash in opening tag not followed by >"),n.state=M.ATTRIB);continue;case M.ATTRIB:if(x(r))continue;">"===r?z(n):"/"===r?n.state=M.OPEN_TAG_SLASH:A(v,r)?(n.attribName=r,n.attribValue="",n.state=M.ATTRIB_NAME):P(n,"Invalid attribute name");continue;case M.ATTRIB_NAME:"="===r?n.state=M.ATTRIB_VALUE:">"===r?(P(n,"Attribute without value"),n.attribValue=n.attribName,j(n),z(n)):x(r)?n.state=M.ATTRIB_NAME_SAW_WHITE:A(y,r)?n.attribName+=r:P(n,"Invalid attribute name");continue;case M.ATTRIB_NAME_SAW_WHITE:if("="===r)n.state=M.ATTRIB_VALUE;else{if(x(r))continue;P(n,"Attribute without value"),n.tag.attributes[n.attribName]="",n.attribValue="",N(n,"onattribute",{name:n.attribName,value:""}),n.attribName="",">"===r?z(n):A(v,r)?(n.attribName=r,n.state=M.ATTRIB_NAME):(P(n,"Invalid attribute name"),n.state=M.ATTRIB)}continue;case M.ATTRIB_VALUE:if(x(r))continue;C(r)?(n.q=r,n.state=M.ATTRIB_VALUE_QUOTED):(n.opt.unquotedAttributeValues||L(n,"Unquoted attribute value"),n.state=M.ATTRIB_VALUE_UNQUOTED,n.attribValue=r);continue;case M.ATTRIB_VALUE_QUOTED:if(r!==n.q){"&"===r?n.state=M.ATTRIB_VALUE_ENTITY_Q:n.attribValue+=r;continue}j(n),n.q="",n.state=M.ATTRIB_VALUE_CLOSED;continue;case M.ATTRIB_VALUE_CLOSED:x(r)?n.state=M.ATTRIB:">"===r?z(n):"/"===r?n.state=M.OPEN_TAG_SLASH:A(v,r)?(P(n,"No whitespace between attributes"),n.attribName=r,n.attribValue="",n.state=M.ATTRIB_NAME):P(n,"Invalid attribute name");continue;case M.ATTRIB_VALUE_UNQUOTED:if(!k(r)){"&"===r?n.state=M.ATTRIB_VALUE_ENTITY_U:n.attribValue+=r;continue}j(n),">"===r?z(n):n.state=M.ATTRIB;continue;case M.CLOSE_TAG:if(n.tagName)">"===r?B(n):A(y,r)?n.tagName+=r:n.script?(n.script+=""===r?B(n):P(n,"Invalid characters in closing tag");continue;case M.TEXT_ENTITY:case M.ATTRIB_VALUE_ENTITY_Q:case M.ATTRIB_VALUE_ENTITY_U:var l,c;switch(n.state){case M.TEXT_ENTITY:l=M.TEXT,c="textNode";break;case M.ATTRIB_VALUE_ENTITY_Q:l=M.ATTRIB_VALUE_QUOTED,c="attribValue";break;case M.ATTRIB_VALUE_ENTITY_U:l=M.ATTRIB_VALUE_UNQUOTED,c="attribValue";break}if(";"===r){var u=H(n);n.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(u)?(n.entity="",n.state=l,n.write(u)):(n[c]+=u,n.entity="",n.state=l)}else A(n.entity.length?w:b,r)?n.entity+=r:(P(n,"Invalid character in entity name"),n[c]+="&"+n.entity+r,n.entity="",n.state=l);continue;default:throw new Error(n,"Unknown state: "+n.state)}}return n.position>=n.bufferCheckPosition&&a(n),n} /*! http://mths.be/fromcodepoint v0.1.0 by @mathias */M=e.STATE,String.fromCodePoint||function(){var t=String.fromCharCode,e=Math.floor,n=function(){var n,i,r=16384,o=[],a=-1,s=arguments.length;if(!s)return"";var l="";while(++a1114111||e(c)!==c)throw RangeError("Invalid code point: "+c);c<=65535?o.push(c):(c-=65536,n=55296+(c>>10),i=c%1024+56320,o.push(n,i)),(a+1===s||o.length>r)&&(l+=t.apply(null,o),o.length=0)}return l};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n}()})(e)}).call(this,n("b639").Buffer)},"0f0f":function(t,e,n){var i=n("8eeb"),r=n("9934");function o(t,e){return t&&i(e,r(e),t)}t.exports=o},"0f57":function(t,e,n){t.exports=n.p+"img/rose.webp"},"0fb5":function(t,e,n){t.exports=n.p+"img/muqinjie.svg"},"103a":function(t,e,n){t.exports=n.p+"img/paishe.svg"},1041:function(t,e,n){var i=n("8eeb"),r=n("a029");function o(t,e){return i(t,r(t),e)}t.exports=o},1090:function(t,e,n){t.exports=n.p+"img/pinkGrape.webp"},1106:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=c-u,C=Math.floor,k=String.fromCharCode;function A(t){throw new RangeError(w[t])}function E(t,e){var n=t.length,i=[];while(n--)i[n]=e(t[n]);return i}function M(t,e){var n=t.split("@"),i="";n.length>1&&(i=n[0]+"@",t=n[1]),t=t.replace(b,".");var r=t.split("."),o=E(r,e).join(".");return i+o}function T(t){var e,n,i=[],r=0,o=t.length;while(r=55296&&e<=56319&&r65535&&(t-=65536,e+=k(t>>>10&1023|55296),t=56320|1023&t),e+=k(t),e})).join("")}function N(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:c}function O(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function D(t,e,n){var i=0;for(t=n?C(t/p):t>>1,t+=C(t/e);t>x*d>>1;i+=c)t=C(t/x);return C(i+(x+1)*t/(t+h))}function L(t){var e,n,i,r,o,a,s,h,p,v,y=[],b=t.length,w=0,x=m,k=f;for(n=t.lastIndexOf(g),n<0&&(n=0),i=0;i=128&&A("not-basic"),y.push(t.charCodeAt(i));for(r=n>0?n+1:0;r=b&&A("invalid-input"),h=N(t.charCodeAt(r++)),(h>=c||h>C((l-w)/a))&&A("overflow"),w+=h*a,p=s<=k?u:s>=k+d?d:s-k,hC(l/v)&&A("overflow"),a*=v}e=y.length+1,k=D(w-o,e,0==o),C(w/e)>l-x&&A("overflow"),x+=C(w/e),w%=e,y.splice(w++,0,x)}return S(y)}function I(t){var e,n,i,r,o,a,s,h,p,v,y,b,w,x,E,M=[];for(t=T(t),b=t.length,e=m,n=0,o=f,a=0;a=e&&yC((l-n)/w)&&A("overflow"),n+=(s-e)*w,e=s,a=0;al&&A("overflow"),y==e){for(h=n,p=c;;p+=c){if(v=p<=o?u:p>=o+d?d:p-o,h=4)return!1;for(h=t.parentType,t.parentType="paragraph";p3)){if(t.sCount[p]>=t.blkIndent&&(l=t.bMarks[p]+t.tShift[p],c=t.eMarks[p],l=c)))){u=61===d?1:2;break}if(!(t.sCount[p]<0)){for(r=!1,o=0,a=f.length;o{for(const[e,n]of f)t=t.split(e+"*").join(`${e}{0,${n}}`).split(e+"+").join(`${e}{1,${n}}`);return t},g=(t,e,n)=>{const i=m(e),r=h++;a(t,r,e),d[t]=r,c[r]=e,u[r]=i,s[r]=new RegExp(e,n?"g":void 0),l[r]=new RegExp(i,n?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),g("MAINVERSION",`(${c[d.NUMERICIDENTIFIER]})\\.(${c[d.NUMERICIDENTIFIER]})\\.(${c[d.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${c[d.NUMERICIDENTIFIERLOOSE]})\\.(${c[d.NUMERICIDENTIFIERLOOSE]})\\.(${c[d.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${c[d.NUMERICIDENTIFIER]}|${c[d.NONNUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${c[d.NUMERICIDENTIFIERLOOSE]}|${c[d.NONNUMERICIDENTIFIER]})`),g("PRERELEASE",`(?:-(${c[d.PRERELEASEIDENTIFIER]}(?:\\.${c[d.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${c[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[d.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",p+"+"),g("BUILD",`(?:\\+(${c[d.BUILDIDENTIFIER]}(?:\\.${c[d.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${c[d.MAINVERSION]}${c[d.PRERELEASE]}?${c[d.BUILD]}?`),g("FULL",`^${c[d.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${c[d.MAINVERSIONLOOSE]}${c[d.PRERELEASELOOSE]}?${c[d.BUILD]}?`),g("LOOSE",`^${c[d.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",c[d.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),g("XRANGEIDENTIFIER",c[d.NUMERICIDENTIFIER]+"|x|X|\\*"),g("XRANGEPLAIN",`[v=\\s]*(${c[d.XRANGEIDENTIFIER]})(?:\\.(${c[d.XRANGEIDENTIFIER]})(?:\\.(${c[d.XRANGEIDENTIFIER]})(?:${c[d.PRERELEASE]})?${c[d.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${c[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[d.XRANGEIDENTIFIERLOOSE]})(?:${c[d.PRERELEASELOOSE]})?${c[d.BUILD]}?)?)?`),g("XRANGE",`^${c[d.GTLT]}\\s*${c[d.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${c[d.GTLT]}\\s*${c[d.XRANGEPLAINLOOSE]}$`),g("COERCEPLAIN",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`),g("COERCE",c[d.COERCEPLAIN]+"(?:$|[^\\d])"),g("COERCEFULL",c[d.COERCEPLAIN]+`(?:${c[d.PRERELEASE]})?`+`(?:${c[d.BUILD]})?(?:$|[^\\d])`),g("COERCERTL",c[d.COERCE],!0),g("COERCERTLFULL",c[d.COERCEFULL],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${c[d.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",g("TILDE",`^${c[d.LONETILDE]}${c[d.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${c[d.LONETILDE]}${c[d.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${c[d.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",g("CARET",`^${c[d.LONECARET]}${c[d.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${c[d.LONECARET]}${c[d.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${c[d.GTLT]}\\s*(${c[d.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${c[d.GTLT]}\\s*(${c[d.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${c[d.GTLT]}\\s*(${c[d.LOOSEPLAIN]}|${c[d.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${c[d.XRANGEPLAIN]})\\s+-\\s+(${c[d.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${c[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[d.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},"23d7":function(t,e,n){const i=n("7b1f"),r=n("bf00"),{ANY:o}=r,a=n("329c"),s=n("f06c"),l=(t,e,n={})=>{if(t===e)return!0;t=new i(t,n),e=new i(e,n);let r=!1;t:for(const i of t.set){for(const t of e.set){const e=d(i,t,n);if(r=r||null!==e,e)continue t}if(r)return!1}return!0},c=[new r(">=0.0.0-0")],u=[new r(">=0.0.0")],d=(t,e,n)=>{if(t===e)return!0;if(1===t.length&&t[0].semver===o){if(1===e.length&&e[0].semver===o)return!0;t=n.includePrerelease?c:u}if(1===e.length&&e[0].semver===o){if(n.includePrerelease)return!0;e=u}const i=new Set;let r,l,d,f,m,g,v;for(const o of t)">"===o.operator||">="===o.operator?r=h(r,o,n):"<"===o.operator||"<="===o.operator?l=p(l,o,n):i.add(o.semver);if(i.size>1)return null;if(r&&l){if(d=s(r.semver,l.semver,n),d>0)return null;if(0===d&&(">="!==r.operator||"<="!==l.operator))return null}for(const o of i){if(r&&!a(o,String(r),n))return null;if(l&&!a(o,String(l),n))return null;for(const t of e)if(!a(o,String(t),n))return!1;return!0}let y=!(!l||n.includePrerelease||!l.semver.prerelease.length)&&l.semver,b=!(!r||n.includePrerelease||!r.semver.prerelease.length)&&r.semver;y&&1===y.prerelease.length&&"<"===l.operator&&0===y.prerelease[0]&&(y=!1);for(const o of e){if(v=v||">"===o.operator||">="===o.operator,g=g||"<"===o.operator||"<="===o.operator,r)if(b&&o.semver.prerelease&&o.semver.prerelease.length&&o.semver.major===b.major&&o.semver.minor===b.minor&&o.semver.patch===b.patch&&(b=!1),">"===o.operator||">="===o.operator){if(f=h(r,o,n),f===o&&f!==r)return!1}else if(">="===r.operator&&!a(r.semver,String(o),n))return!1;if(l)if(y&&o.semver.prerelease&&o.semver.prerelease.length&&o.semver.major===y.major&&o.semver.minor===y.minor&&o.semver.patch===y.patch&&(y=!1),"<"===o.operator||"<="===o.operator){if(m=p(l,o,n),m===o&&m!==l)return!1}else if("<="===l.operator&&!a(l.semver,String(o),n))return!1;if(!o.operator&&(l||r)&&0!==d)return!1}return!(r&&g&&!l&&0!==d)&&(!(l&&v&&!r&&0!==d)&&(!b&&!y))},h=(t,e,n)=>{if(!t)return e;const i=s(t.semver,e.semver,n);return i>0?t:i<0||">"===e.operator&&">="===t.operator?e:t},p=(t,e,n)=>{if(!t)return e;const i=s(t.semver,e.semver,n);return i<0?t:i>0||"<"===e.operator&&"<="===t.operator?e:t};t.exports=l},"23e6":function(t,e,n){},2426:function(t,e,n){const i=n("f06c"),r=(t,e,n)=>i(t,e,n)<0;t.exports=r},2474:function(t,e,n){var i=n("2b3e"),r=i.Uint8Array;t.exports=r},2478:function(t,e,n){var i=n("4245");function r(t){return i(this,t).get(t)}t.exports=r},"24c7":function(t,e,n){t.exports=n.p+"img/diqiu.svg"},"24ee":function(t,e,n){t.exports=n.p+"img/dark3.webp"},2524:function(t,e,n){var i=n("6044"),r="__lodash_hash_undefined__";function o(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?r:e,this}t.exports=o},"253c":function(t,e,n){var i=n("3729"),r=n("1310"),o="[object Arguments]";function a(t){return r(t)&&i(t)==o}t.exports=a},"25ca":function(t,e,n){t.exports=n.p+"img/a-8-DNA.svg"},2613:function(t,e,n){t.exports=n.p+"img/ziyuan_5.svg"},2618:function(t,e,n){t.exports=n.p+"img/classicGreen.webp"},"265a":function(t,e,n){t.exports=n.p+"img/bijiben.svg"},"269c":function(t,e,n){var i=n("f0d3"),r=n("d688");function o(t){var e=i.copyOptions(t);return i.ensureSpacesExists(e),e}t.exports=function(t,e){var n,i,a,s;return n=o(e),i=r(t,n),s="compact"in n&&n.compact?"_parent":"parent",a="addParent"in n&&n.addParent?JSON.stringify(i,(function(t,e){return t===s?"_":e}),n.spaces):JSON.stringify(i,null,n.spaces),a.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}},"26c8":function(t,e,n){t.exports=n.p+"img/darkNightLceBlade.webp"},"26eb":function(t,e,n){t.exports=n.p+"img/-_17.svg"},2710:function(t,e,n){t.exports=n.p+"img/fanqiejiang.svg"},2783:function(t,e,n){t.exports=n.p+"img/ziyuan_13.svg"},"27ae":function(t,e,n){},2874:function(t,e){const n=/^[0-9]+$/,i=(t,e)=>{const i=n.test(t),r=n.test(e);return i&&r&&(t=+t,e=+e),t===e?0:i&&!r?-1:r&&!i?1:ti(e,t);t.exports={compareIdentifiers:i,rcompareIdentifiers:r}},"28c9":function(t,e){function n(){this.__data__=[],this.size=0}t.exports=n},"28ec":function(t,e,n){"use strict";var i=/^([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])?)*)$/,r=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;t.exports=function(t,e){var n,o,a,s,l,c,u=t.pos;if(60!==t.src.charCodeAt(u))return!1;for(l=t.pos,c=t.posMax;;){if(++u>=c)return!1;if(s=t.src.charCodeAt(u),60===s)return!1;if(62===s)break}return n=t.src.slice(l+1,u),r.test(n)?(o=t.md.normalizeLink(n),!!t.md.validateLink(o)&&(e||(a=t.push("link_open","a",1),a.attrs=[["href",o]],a.markup="autolink",a.info="auto",a=t.push("text","",0),a.content=t.md.normalizeLinkText(n),a=t.push("link_close","a",-1),a.markup="autolink",a.info="auto"),t.pos+=n.length+2,!0)):!!i.test(n)&&(o=t.md.normalizeLink("mailto:"+n),!!t.md.validateLink(o)&&(e||(a=t.push("link_open","a",1),a.attrs=[["href",o]],a.markup="autolink",a.info="auto",a=t.push("text","",0),a.content=t.md.normalizeLinkText(n),a=t.push("link_close","a",-1),a.markup="autolink",a.info="auto"),t.pos+=n.length+2,!0))}},"290f":function(t,e,n){t.exports=n.p+"img/a-19guaizhang.svg"},"299e":function(t,e,n){t.exports=n.p+"img/gudingzichan.svg"},"29dc":function(t,e,n){t.exports=n.p+"img/a-15-bingdu.svg"},"29f3":function(t,e){var n=Object.prototype,i=n.toString;function r(t){return i.call(t)}t.exports=r},"2a43":function(t,e,n){t.exports=n.p+"img/a-20-shuye.svg"},"2acb":function(t,e,n){},"2b3e":function(t,e,n){var i=n("585a"),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();t.exports=o},"2bf5":function(t,e,n){t.exports=n.p+"img/dark4.webp"},"2c41":function(t,e,n){t.exports=n.p+"img/yumi.svg"},"2c9f":function(t,e,n){const i=n("df02"),r=(t,e)=>new i(t,e).patch;t.exports=r},"2d26":function(t,e,n){(function(e,i){t.exports=i(n("9339"))})("undefined"!==typeof self&&self,(function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(e,n){e.exports=t},function(t,e,n){"use strict";var i=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){r=!0,o=l}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function t(t,e){for(var n=0;n)\s/g,action:function(t,e){setTimeout((function(){i.quill.formatLine(e.index,1,"blockquote",!0),i.quill.deleteText(e.index-2,2)}),0)}},{name:"code-block",pattern:/^`{3}(?:\s|\n)/g,action:function(t,e){setTimeout((function(){i.quill.formatLine(e.index,1,"code-block",!0),i.quill.deleteText(e.index-4,4)}),0)}},{name:"bolditalic",pattern:/(?:\*|_){3}(.+?)(?:\*|_){3}/g,action:function(t,e,n,r){var o=n.exec(t),a=o[0],s=o[1],l=r+o.index;t.match(/^([*_ \n]+)$/g)||setTimeout((function(){i.quill.deleteText(l,a.length),i.quill.insertText(l,s,{bold:!0,italic:!0}),i.quill.format("bold",!1)}),0)}},{name:"bold",pattern:/(?:\*|_){2}(.+?)(?:\*|_){2}/g,action:function(t,e,n,r){var o=n.exec(t),a=o[0],s=o[1],l=r+o.index;t.match(/^([*_ \n]+)$/g)||setTimeout((function(){i.quill.deleteText(l,a.length),i.quill.insertText(l,s,{bold:!0}),i.quill.format("bold",!1)}),0)}},{name:"italic",pattern:/(?:\*|_){1}(.+?)(?:\*|_){1}/g,action:function(t,e,n,r){var o=n.exec(t),a=o[0],s=o[1],l=r+o.index;t.match(/^([*_ \n]+)$/g)||setTimeout((function(){i.quill.deleteText(l,a.length),i.quill.insertText(l,s,{italic:!0}),i.quill.format("italic",!1)}),0)}},{name:"strikethrough",pattern:/(?:~~)(.+?)(?:~~)/g,action:function(t,e,n,r){var o=n.exec(t),a=o[0],s=o[1],l=r+o.index;t.match(/^([*_ \n]+)$/g)||setTimeout((function(){i.quill.deleteText(l,a.length),i.quill.insertText(l,s,{strike:!0}),i.quill.format("strike",!1)}),0)}},{name:"code",pattern:/(?:`)(.+?)(?:`)/g,action:function(t,e,n,r){var o=n.exec(t),a=o[0],s=o[1],l=r+o.index;t.match(/^([*_ \n]+)$/g)||setTimeout((function(){i.quill.deleteText(l,a.length),i.quill.insertText(l,s,{code:!0}),i.quill.format("code",!1),i.quill.insertText(i.quill.getSelection()," ")}),0)}},{name:"hr",pattern:/^([-*]\s?){3}/g,action:function(t,e){var n=e.index-t.length;setTimeout((function(){i.quill.deleteText(n,t.length),i.quill.insertEmbed(n+1,"hr",!0,a.default.sources.USER),i.quill.insertText(n+2,"\n",a.default.sources.SILENT),i.quill.setSelection(n+2,a.default.sources.SILENT)}),0)}},{name:"asterisk-ul",pattern:/^(\*|\+)\s$/g,action:function(t,e,n){setTimeout((function(){i.quill.formatLine(e.index,1,"list","unordered"),i.quill.deleteText(e.index-2,2)}),0)}},{name:"image",pattern:/(?:!\[(.+?)\])(?:\((.+?)\))/g,action:function(t,e,n){var r=t.search(n),o=t.match(n)[0],a=t.match(/(?:\((.*?)\))/g)[0],s=e.index-o.length-1;-1!==r&&setTimeout((function(){i.quill.deleteText(s,o.length),i.quill.insertEmbed(s,"image",a.slice(1,a.length-1))}),0)}},{name:"link",pattern:/(?:\[(.+?)\])(?:\((.+?)\))/g,action:function(t,e,n){var r=t.search(n),o=t.match(n)[0],a=t.match(/(?:\[(.*?)\])/g)[0],s=t.match(/(?:\((.*?)\))/g)[0],l=e.index-o.length-1;-1!==r&&setTimeout((function(){i.quill.deleteText(l,o.length),i.quill.insertText(l,a.slice(1,a.length-1),"link",s.slice(1,s.length-1))}),0)}}],this.quill.on("text-change",(function(t,e,n){for(var r=0;r{try{e=new i(e,n)}catch(r){return!1}return e.test(t)};t.exports=r},"32b3":function(t,e,n){var i=n("872a"),r=n("9638"),o=Object.prototype,a=o.hasOwnProperty;function s(t,e,n){var o=t[e];a.call(t,e)&&r(o,n)&&(void 0!==n||e in t)||i(t,e,n)}t.exports=s},"32bf":function(t,e,n){"use strict";t.exports=function(t){var e,n,i=0,r=t.tokens,o=t.tokens.length;for(e=n=0;e0&&i++,"text"===r[e].type&&e+1{const n=i(t,e);return n&&n.prerelease.length?n.prerelease:null};t.exports=r},"3bfd":function(t,e,n){var i,r,o=n("f0d3"),a=n("3f28").isArray;function s(t){var e=o.copyOptions(t);return o.ensureFlagExists("ignoreDeclaration",e),o.ensureFlagExists("ignoreInstruction",e),o.ensureFlagExists("ignoreAttributes",e),o.ensureFlagExists("ignoreText",e),o.ensureFlagExists("ignoreComment",e),o.ensureFlagExists("ignoreCdata",e),o.ensureFlagExists("ignoreDoctype",e),o.ensureFlagExists("compact",e),o.ensureFlagExists("indentText",e),o.ensureFlagExists("indentCdata",e),o.ensureFlagExists("indentAttributes",e),o.ensureFlagExists("indentInstruction",e),o.ensureFlagExists("fullTagEmptyElement",e),o.ensureFlagExists("noQuotesForNativeAttributes",e),o.ensureSpacesExists(e),"number"===typeof e.spaces&&(e.spaces=Array(e.spaces+1).join(" ")),o.ensureKeyExists("declaration",e),o.ensureKeyExists("instruction",e),o.ensureKeyExists("attributes",e),o.ensureKeyExists("text",e),o.ensureKeyExists("comment",e),o.ensureKeyExists("cdata",e),o.ensureKeyExists("doctype",e),o.ensureKeyExists("type",e),o.ensureKeyExists("name",e),o.ensureKeyExists("elements",e),o.checkFnExists("doctype",e),o.checkFnExists("instruction",e),o.checkFnExists("cdata",e),o.checkFnExists("comment",e),o.checkFnExists("text",e),o.checkFnExists("instructionName",e),o.checkFnExists("elementName",e),o.checkFnExists("attributeName",e),o.checkFnExists("attributeValue",e),o.checkFnExists("attributes",e),o.checkFnExists("fullTagEmptyElement",e),e}function l(t,e,n){return(!n&&t.spaces?"\n":"")+Array(e+1).join(t.spaces)}function c(t,e,n){if(e.ignoreAttributes)return"";"attributesFn"in e&&(t=e.attributesFn(t,r,i));var o,a,s,c,u=[];for(o in t)t.hasOwnProperty(o)&&null!==t[o]&&void 0!==t[o]&&(c=e.noQuotesForNativeAttributes&&"string"!==typeof t[o]?"":'"',a=""+t[o],a=a.replace(/"/g,"""),s="attributeNameFn"in e?e.attributeNameFn(o,a,r,i):o,u.push(e.spaces&&e.indentAttributes?l(e,n+1,!1):" "),u.push(s+"="+c+("attributeValueFn"in e?e.attributeValueFn(a,o,r,i):a)+c));return t&&Object.keys(t).length&&e.spaces&&e.indentAttributes&&u.push(l(e,n,!1)),u.join("")}function u(t,e,n){return i=t,r="xml",e.ignoreDeclaration?"":""}function d(t,e,n){if(e.ignoreInstruction)return"";var o;for(o in t)if(t.hasOwnProperty(o))break;var a="instructionNameFn"in e?e.instructionNameFn(o,t[o],r,i):o;if("object"===typeof t[o])return i=t,r=a,"";var s=t[o]?t[o]:"";return"instructionFn"in e&&(s=e.instructionFn(s,o,r,i)),""}function h(t,e){return e.ignoreComment?"":"\x3c!--"+("commentFn"in e?e.commentFn(t,r,i):t)+"--\x3e"}function p(t,e){return e.ignoreCdata?"":"","]]]]>"))+"]]>"}function f(t,e){return e.ignoreDoctype?"":""}function m(t,e){return e.ignoreText?"":(t=""+t,t=t.replace(/&/g,"&"),t=t.replace(/&/g,"&").replace(//g,">"),"textFn"in e?e.textFn(t,r,i):t)}function g(t,e){var n;if(t.elements&&t.elements.length)for(n=0;n"),t[e.elementsKey]&&t[e.elementsKey].length&&(o.push(y(t[e.elementsKey],e,n+1)),i=t,r=t.name),o.push(e.spaces&&g(t,e)?"\n"+Array(n+1).join(e.spaces):""),o.push("")):o.push("/>"),o.join("")}function y(t,e,n,i){return t.reduce((function(t,r){var o=l(e,n,i&&!t);switch(r.type){case"element":return t+o+v(r,e,n);case"comment":return t+o+h(r[e.commentKey],e);case"doctype":return t+o+f(r[e.doctypeKey],e);case"cdata":return t+(e.indentCdata?o:"")+p(r[e.cdataKey],e);case"text":return t+(e.indentText?o:"")+m(r[e.textKey],e);case"instruction":var a={};return a[r[e.nameKey]]=r[e.attributesKey]?r:r[e.instructionKey],t+(e.indentInstruction?o:"")+d(a,e,n)}}),"")}function b(t,e,n){var i;for(i in t)if(t.hasOwnProperty(i))switch(i){case e.parentKey:case e.attributesKey:break;case e.textKey:if(e.indentText||n)return!0;break;case e.cdataKey:if(e.indentCdata||n)return!0;break;case e.instructionKey:if(e.indentInstruction||n)return!0;break;case e.doctypeKey:case e.commentKey:return!0;default:return!0}return!1}function w(t,e,n,o,a){i=t,r=e;var s="elementNameFn"in n?n.elementNameFn(e,t):e;if("undefined"===typeof t||null===t||""===t)return"fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(e,t)||n.fullTagEmptyElement?"<"+s+">":"<"+s+"/>";var u=[];if(e){if(u.push("<"+s),"object"!==typeof t)return u.push(">"+m(t,n)+""),u.join("");t[n.attributesKey]&&u.push(c(t[n.attributesKey],n,o));var d=b(t,n,!0)||t[n.attributesKey]&&"preserve"===t[n.attributesKey]["xml:space"];if(d||(d="fullTagEmptyElementFn"in n?n.fullTagEmptyElementFn(e,t):n.fullTagEmptyElement),!d)return u.push("/>"),u.join("");u.push(">")}return u.push(x(t,n,o+1,!1)),i=t,r=e,e&&u.push((a?l(n,o,!1):"")+""),u.join("")}function x(t,e,n,i){var r,o,s,c=[];for(o in t)if(t.hasOwnProperty(o))for(s=a(t[o])?t[o]:[t[o]],r=0;r=0&&32===t.pending.charCodeAt(n))if(n>=1&&32===t.pending.charCodeAt(n-1)){o=n-1;while(o>=1&&32===t.pending.charCodeAt(o-1))o--;t.pending=t.pending.slice(0,o),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);a++;while(a!t.selection.empty&&(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function s(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const l=(t,e,n)=>{let a=s(t,n);if(!a)return!1;let l=d(a);if(!l){let n=a.blockRange(),r=n&&Object(i["k"])(n);return null!=r&&(e&&e(t.tr.lift(n,r).scrollIntoView()),!0)}let u=l.nodeBefore;if(!u.type.spec.isolating&&E(t,l,e))return!0;if(0==a.parent.content.size&&(c(u,"end")||o["NodeSelection"].isSelectable(u))){let n=Object(i["l"])(t.doc,a.before(),a.after(),r["Slice"].empty);if(n&&n.slice.size{let{$head:i,empty:r}=t.selection,a=i;if(!r)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):i.parentOffset>0)return!1;a=d(i)}let s=a&&a.nodeBefore;return!(!s||!o["NodeSelection"].isSelectable(s))&&(e&&e(t.tr.setSelection(o["NodeSelection"].create(t.doc,a.pos-s.nodeSize)).scrollIntoView()),!0)};function d(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function h(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset{let a=h(t,n);if(!a)return!1;let s=m(a);if(!s)return!1;let l=s.nodeAfter;if(E(t,s,e))return!0;if(0==a.parent.content.size&&(c(l,"start")||o["NodeSelection"].isSelectable(l))){let n=Object(i["l"])(t.doc,a.before(),a.after(),r["Slice"].empty);if(n&&n.slice.size{let{$head:i,empty:r}=t.selection,a=i;if(!r)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):i.parentOffset=0;e--){let n=t.node(e);if(t.index(e)+1{let{$head:n,$anchor:i}=t.selection;return!(!n.parent.type.spec.code||!n.sameParent(i))&&(e&&e(t.tr.insertText("\n").scrollIntoView()),!0)};function v(t){for(let e=0;e{let{$head:n,$anchor:i}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(i))return!1;let r=n.node(-1),a=n.indexAfter(-1),s=v(r.contentMatchAt(a));if(!s||!r.canReplaceWith(a,a,s))return!1;if(e){let i=n.after(),r=t.tr.replaceWith(i,i,s.createAndFill());r.setSelection(o["Selection"].near(r.doc.resolve(i),1)),e(r.scrollIntoView())}return!0},b=(t,e)=>{let n=t.selection,{$from:i,$to:r}=n;if(n instanceof o["AllSelection"]||i.parent.inlineContent||r.parent.inlineContent)return!1;let a=v(r.parent.contentMatchAt(r.indexAfter()));if(!a||!a.isTextblock)return!1;if(e){let n=(!i.parentOffset&&r.index(){let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(Object(i["g"])(t.doc,r))return e&&e(t.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),o=r&&Object(i["k"])(r);return null!=o&&(e&&e(t.tr.lift(r,o).scrollIntoView()),!0)};function x(t){return(e,n)=>{let{$from:r,$to:a}=e.selection;if(e.selection instanceof o["NodeSelection"]&&e.selection.node.isBlock)return!(!r.parentOffset||!Object(i["g"])(e.doc,r.pos))&&(n&&n(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.parent.isBlock)return!1;if(n){let s=a.parentOffset==a.parent.content.size,l=e.tr;(e.selection instanceof o["TextSelection"]||e.selection instanceof o["AllSelection"])&&l.deleteSelection();let c=0==r.depth?null:v(r.node(-1).contentMatchAt(r.indexAfter(-1))),u=t&&t(a.parent,s),d=u?[u]:s&&c?[{type:c}]:void 0,h=Object(i["g"])(l.doc,l.mapping.map(r.pos),1,d);if(d||h||!Object(i["g"])(l.doc,l.mapping.map(r.pos),1,c?[{type:c}]:void 0)||(c&&(d=[{type:c}]),h=!0),h&&(l.split(l.mapping.map(r.pos),1,d),!s&&!r.parentOffset&&r.parent.type!=c)){let t=l.mapping.map(r.before()),e=l.doc.resolve(t);c&&r.node(-1).canReplaceWith(e.index(),e.index()+1,c)&&l.setNodeMarkup(l.mapping.map(r.before()),c)}n(l.scrollIntoView())}return!0}}const C=x(),k=(t,e)=>(e&&e(t.tr.setSelection(new o["AllSelection"](t.doc))),!0);function A(t,e,n){let r=e.nodeBefore,o=e.nodeAfter,a=e.index();return!!(r&&o&&r.type.compatibleContent(o.type))&&(!r.content.size&&e.parent.canReplace(a-1,a)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!(!e.parent.canReplace(a,a+1)||!o.isTextblock&&!Object(i["f"])(t.doc,e.pos))&&(n&&n(t.tr.clearIncompatible(e.pos,r.type,r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()),!0))}function E(t,e,n){let a,s,l=e.nodeBefore,u=e.nodeAfter;if(l.type.spec.isolating||u.type.spec.isolating)return!1;if(A(t,e,n))return!0;let d=e.parent.canReplace(e.index(),e.index()+1);if(d&&(a=(s=l.contentMatchAt(l.childCount)).findWrapping(u.type))&&s.matchType(a[0]||u.type).validEnd){if(n){let o=e.pos+u.nodeSize,s=r["Fragment"].empty;for(let t=a.length-1;t>=0;t--)s=r["Fragment"].from(a[t].create(null,s));s=r["Fragment"].from(l.copy(s));let c=t.tr.step(new i["b"](e.pos-1,o,e.pos,o,new r["Slice"](s,1,0),a.length,!0)),d=o+2*a.length;Object(i["f"])(c.doc,d)&&c.join(d),n(c.scrollIntoView())}return!0}let h=o["Selection"].findFrom(e,1),p=h&&h.$from.blockRange(h.$to),f=p&&Object(i["k"])(p);if(null!=f&&f>=e.depth)return n&&n(t.tr.lift(p,f).scrollIntoView()),!0;if(d&&c(u,"start",!0)&&c(l,"end")){let o=l,a=[];for(;;){if(a.push(o),o.isTextblock)break;o=o.lastChild}let s=u,c=1;for(;!s.isTextblock;s=s.firstChild)c++;if(o.canReplace(o.childCount,o.childCount,s.content)){if(n){let o=r["Fragment"].empty;for(let t=a.length-1;t>=0;t--)o=r["Fragment"].from(a[t].copy(o));let s=t.tr.step(new i["b"](e.pos-a.length,e.pos+u.nodeSize,e.pos+c,e.pos+u.nodeSize-c,new r["Slice"](o,a.length,0),0,!0));n(s.scrollIntoView())}return!0}}return!1}function M(t){return function(e,n){let i=e.selection,r=t<0?i.$from:i.$to,a=r.depth;while(r.node(a).isInline){if(!a)return!1;a--}return!!r.node(a).isTextblock&&(n&&n(e.tr.setSelection(o["TextSelection"].create(e.doc,t<0?r.start(a):r.end(a)))),!0)}}const T=M(-1),S=M(1);function N(t,e=null){return function(n,r){let{$from:o,$to:a}=n.selection,s=o.blockRange(a),l=s&&Object(i["i"])(s,t,e);return!!l&&(r&&r(n.tr.wrap(s,l).scrollIntoView()),!0)}}function O(t,e=null){return function(n,i){let r=!1;for(let o=0;o{if(r)return!1;if(i.isTextblock&&!i.hasMarkup(t,e))if(i.type==t)r=!0;else{let e=n.doc.resolve(o),i=e.index();r=e.parent.canReplaceWith(i,i+1,t)}})}if(!r)return!1;if(i){let r=n.tr;for(let i=0;i{if(a)return!1;a=t.inlineContent&&t.type.allowsMarkType(n)}),a)return!0}return!1}function L(t,e=null){return function(n,i){let{empty:r,$cursor:o,ranges:a}=n.selection;if(r&&!o||!D(n.doc,a,t))return!1;if(i)if(o)t.isInSet(n.storedMarks||o.marks())?i(n.tr.removeStoredMark(t)):i(n.tr.addStoredMark(t.create(e)));else{let r=!1,o=n.tr;for(let e=0;!r&&e3)&&!(t.sCount[c]<0)){for(r=!1,o=0,a=u.length;o=a)return-1;if(n=t.src.charCodeAt(o++),n<48||n>57)return-1;for(;;){if(o>=a)return-1;if(n=t.src.charCodeAt(o++),!(n>=48&&n<=57)){if(41===n||46===n)break;return-1}if(o-r>=10)return-1}return o=4)return!1;if(t.listIndent>=0&&t.sCount[P]-t.listIndent>=4&&t.sCount[P]=t.blkIndent&&(R=!0),(S=o(t,P))>=0){if(p=!0,O=t.bMarks[P]+t.tShift[P],b=Number(t.src.slice(O,S-1)),R&&1!==b)return!1}else{if(!((S=r(t,P))>=0))return!1;p=!1}if(R&&t.skipSpaces(S)>=t.eMarks[P])return!1;if(i)return!0;y=t.src.charCodeAt(S-1),v=t.tokens.length,p?(I=t.push("ordered_list_open","ol",1),1!==b&&(I.attrs=[["start",b]])):I=t.push("bullet_list_open","ul",1),I.map=g=[P,0],I.markup=String.fromCharCode(y),N=!1,L=t.md.block.ruler.getRules("list"),k=t.parentType,t.parentType="list";while(P=w?1:x-h,d>4&&(d=1),u=h+d,I=t.push("list_item_open","li",1),I.markup=String.fromCharCode(y),I.map=f=[P,0],p&&(I.info=t.src.slice(O,S-1)),M=t.tight,E=t.tShift[P],A=t.sCount[P],C=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=u,t.tight=!0,t.tShift[P]=l-t.bMarks[P],t.sCount[P]=x,l>=w&&t.isEmpty(P+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,P,n,!0),t.tight&&!N||(F=!1),N=t.line-P>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=C,t.tShift[P]=E,t.sCount[P]=A,t.tight=M,I=t.push("list_item_close","li",-1),I.markup=String.fromCharCode(y),P=t.line,f[1]=P,P>=n)break;if(t.sCount[P]=4)break;for(D=!1,c=0,m=L.length;c=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;e||t.pos++,s[i]=t.pos}else t.pos=s[i]},a.prototype.tokenize=function(t){var e,n,i,r=this.ruler.getRules(""),o=r.length,a=t.posMax,s=t.md.options.maxNesting;while(t.pos=t.pos)throw new Error("inline rule didn't increment state.pos");break}if(e){if(t.pos>=a)break}else t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},a.prototype.parse=function(t,e,n,i){var r,o,a,s=new this.State(t,e,n,i);for(this.tokenize(s),o=this.ruler2.getRules(""),a=o.length,r=0;r{switch(e){case"===":return"object"===typeof t&&(t=t.version),"object"===typeof n&&(n=n.version),t===n;case"!==":return"object"===typeof t&&(t=t.version),"object"===typeof n&&(n=n.version),t!==n;case"":case"=":case"==":return i(t,n,c);case"!=":return r(t,n,c);case">":return o(t,n,c);case">=":return a(t,n,c);case"<":return s(t,n,c);case"<=":return l(t,n,c);default:throw new TypeError("Invalid operator: "+e)}};t.exports=c},"54eb":function(t,e,n){var i=n("8eeb"),r=n("32f4");function o(t,e){return i(t,r(t),e)}t.exports=o},"55a3":function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},"565b":function(t,e,n){"use strict";e.parseLinkLabel=n("df56"),e.parseLinkDestination=n("e4ca"),e.parseLinkTitle=n("7d91")},"566a":function(t,e,n){const i=n("d1e2"),r=(t,e,n)=>i(t,e,">",n);t.exports=r},"56b3":function(t,e,n){(function(e,n){t.exports=n()})(0,(function(){"use strict";var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),i=/MSIE \d/.test(t),r=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),a=i||r||o,s=a&&(i?document.documentMode||6:+(o||r)[1]),l=!o&&/WebKit\//.test(t),c=l&&/Qt\/\d+\.\d+/.test(t),u=!o&&/Chrome\/(\d+)/.exec(t),d=u&&+u[1],h=/Opera\//.test(t),p=/Apple Computer/.test(navigator.vendor),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),m=/PhantomJS/.test(t),g=p&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),v=/Android/.test(t),y=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),b=g||/Mac/.test(e),w=/\bCrOS\b/.test(t),x=/win/i.test(e),C=h&&t.match(/Version\/(\d*\.\d*)/);C&&(C=Number(C[1])),C&&C>=15&&(h=!1,l=!0);var k=b&&(c||h&&(null==C||C<12.11)),A=n||a&&s>=9;function E(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var M,T=function(t,e){var n=t.className,i=E(e).exec(n);if(i){var r=n.slice(i.index+i[0].length);t.className=n.slice(0,i.index)+(r?i[1]+r:"")}};function S(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function N(t,e){return S(t).appendChild(e)}function O(t,e,n,i){var r=document.createElement(t);if(n&&(r.className=n),i&&(r.style.cssText=i),"string"==typeof e)r.appendChild(document.createTextNode(e));else if(e)for(var o=0;o=e)return a+(e-o);a+=s-o,a+=n-a%n,o=s+1}}g?F=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:a&&(F=function(t){try{t.select()}catch(e){}});var W=function(){this.id=null,this.f=null,this.time=0,this.handler=q(this.onTimeout,this)};function V(t,e){for(var n=0;n=e)return i+Math.min(a,e-r);if(r+=o-i,r+=n-r%n,i=o+1,r>=e)return i}}var X=[""];function $(t){while(X.length<=t)X.push(tt(X)+" ");return X[t]}function tt(t){return t[t.length-1]}function et(t,e){for(var n=[],i=0;i"€"&&(t.toUpperCase()!=t.toLowerCase()||ot.test(t))}function st(t,e){return e?!!(e.source.indexOf("\\w")>-1&&at(t))||e.test(t):at(t)}function lt(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var ct=/[\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 ut(t){return t.charCodeAt(0)>=768&&ct.test(t)}function dt(t,e,n){while((n<0?e>0:en?-1:1;;){if(e==n)return e;var r=(e+n)/2,o=i<0?Math.ceil(r):Math.floor(r);if(o==e)return t(o)?e:n;t(o)?n=o:e=o+i}}function pt(t,e,n,i){if(!t)return i(e,n,"ltr",0);for(var r=!1,o=0;oe||e==n&&a.to==e)&&(i(Math.max(a.from,e),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),r=!0)}r||i(e,n,"ltr")}var ft=null;function mt(t,e,n){var i;ft=null;for(var r=0;re)return r;o.to==e&&(o.from!=o.to&&"before"==n?i=r:ft=r),o.from==e&&(o.from!=o.to&&"before"!=n?i=r:ft=r)}return null!=i?i:ft}var gt=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",e="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?t.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?e.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(t,e,n){this.level=t,this.from=e,this.to=n}return function(t,e){var c="ltr"==e?"L":"R";if(0==t.length||"ltr"==e&&!i.test(t))return!1;for(var u=t.length,d=[],h=0;h-1&&(i[e]=r.slice(0,o).concat(r.slice(o+1)))}}}function Ct(t,e){var n=wt(t,e);if(n.length)for(var i=Array.prototype.slice.call(arguments,2),r=0;r0}function Mt(t){t.prototype.on=function(t,e){bt(this,t,e)},t.prototype.off=function(t,e){xt(this,t,e)}}function Tt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function St(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function Nt(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function Ot(t){Tt(t),St(t)}function Dt(t){return t.target||t.srcElement}function Lt(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),b&&t.ctrlKey&&1==e&&(e=3),e}var It,Pt,Rt=function(){if(a&&s<9)return!1;var t=O("div");return"draggable"in t||"dragDrop"in t}();function Ft(t){if(null==It){var e=O("span","​");N(t,O("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(It=e.offsetWidth<=1&&e.offsetHeight>2&&!(a&&s<8))}var n=It?O("span","​"):O("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function jt(t){if(null!=Pt)return Pt;var e=N(t,document.createTextNode("AخA")),n=M(e,0,1).getBoundingClientRect(),i=M(e,1,2).getBoundingClientRect();return S(t),!(!n||n.left==n.right)&&(Pt=i.right-n.right<3)}var zt=3!="\n\nb".split(/\n/).length?function(t){var e=0,n=[],i=t.length;while(e<=i){var r=t.indexOf("\n",e);-1==r&&(r=t.length);var o=t.slice(e,"\r"==t.charAt(r-1)?r-1:r),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),e+=a+1):(n.push(o),e=r+1)}return n}:function(t){return t.split(/\r\n?|\n/)},Bt=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(e){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(n){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},Ht=function(){var t=O("div");return"oncopy"in t||(t.setAttribute("oncopy","return;"),"function"==typeof t.oncopy)}(),qt=null;function Ut(t){if(null!=qt)return qt;var e=N(t,O("span","x")),n=e.getBoundingClientRect(),i=M(e,0,1).getBoundingClientRect();return qt=Math.abs(n.left-i.left)>1}var Gt={},Wt={};function Vt(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),Gt[t]=e}function _t(t,e){Wt[t]=e}function Kt(t){if("string"==typeof t&&Wt.hasOwnProperty(t))t=Wt[t];else if(t&&"string"==typeof t.name&&Wt.hasOwnProperty(t.name)){var e=Wt[t.name];"string"==typeof e&&(e={name:e}),t=rt(e,t),t.name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Kt("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Kt("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Yt(t,e){e=Kt(e);var n=Gt[e.name];if(!n)return Yt(t,"text/plain");var i=n(t,e);if(Zt.hasOwnProperty(e.name)){var r=Zt[e.name];for(var o in r)r.hasOwnProperty(o)&&(i.hasOwnProperty(o)&&(i["_"+o]=i[o]),i[o]=r[o])}if(i.name=e.name,e.helperType&&(i.helperType=e.helperType),e.modeProps)for(var a in e.modeProps)i[a]=e.modeProps[a];return i}var Zt={};function Qt(t,e){var n=Zt.hasOwnProperty(t)?Zt[t]:Zt[t]={};U(e,n)}function Jt(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var i in e){var r=e[i];r instanceof Array&&(r=r.concat([])),n[i]=r}return n}function Xt(t,e){var n;while(t.innerMode){if(n=t.innerMode(e),!n||n.mode==t)break;e=n.state,t=n.mode}return n||{mode:t,state:e}}function $t(t,e,n){return!t.startState||t.startState(e,n)}var te=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function ee(t,e){if(e-=t.first,e<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");var n=t;while(!n.lines)for(var i=0;;++i){var r=n.children[i],o=r.chunkSize();if(e=t.first&&en?ce(n,ee(t,n).text.length):ve(e,ee(t,e.line).text.length)}function ve(t,e){var n=t.ch;return null==n||n>e?ce(t.line,e):n<0?ce(t.line,0):t}function ye(t,e){for(var n=[],i=0;i=this.string.length},te.prototype.sol=function(){return this.pos==this.lineStart},te.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},te.prototype.next=function(){if(this.pose},te.prototype.eatSpace=function(){var t=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++this.pos;return this.pos>t},te.prototype.skipToEnd=function(){this.pos=this.string.length},te.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},te.prototype.backUp=function(t){this.pos-=t},te.prototype.column=function(){return this.lastColumnPos0?null:(i&&!1!==e&&(this.pos+=i[0].length),i)}var r=function(t){return n?t.toLowerCase():t},o=this.string.substr(this.pos,t.length);if(r(o)==r(t))return!1!==e&&(this.pos+=t.length),!0},te.prototype.current=function(){return this.string.slice(this.start,this.pos)},te.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},te.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},te.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var be=function(t,e){this.state=t,this.lookAhead=e},we=function(t,e,n,i){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};function xe(t,e,n,i){var r=[t.state.modeGen],o={};Oe(t,e.text,t.doc.mode,n,(function(t,e){return r.push(t,e)}),o,i);for(var a=n.state,s=function(i){n.baseTokens=r;var s=t.state.overlays[i],l=1,c=0;n.state=!0,Oe(t,e.text,s.mode,n,(function(t,e){var n=l;while(ct&&r.splice(l,1,t,r[l+1],i),l+=2,c=Math.min(t,i)}if(e)if(s.opaque)r.splice(n,l-n,t,"overlay "+e),l=n+2;else for(;nt.options.maxHighlightLength&&Jt(t.doc.mode,i.state),o=xe(t,e,i);r&&(i.state=r),e.stateAfter=i.save(!r),e.styles=o.styles,o.classes?e.styleClasses=o.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function ke(t,e,n){var i=t.doc,r=t.display;if(!i.mode.startState)return new we(i,!0,e);var o=De(t,e,n),a=o>i.first&&ee(i,o-1).stateAfter,s=a?we.fromSaved(i,a,o):new we(i,$t(i.mode),o);return i.iter(o,e,(function(n){Ae(t,n.text,s);var i=s.line;n.stateAfter=i==e-1||i%5==0||i>=r.viewFrom&&ie.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}we.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},we.prototype.baseToken=function(t){if(!this.baseTokens)return null;while(this.baseTokens[this.baseTokenPos]<=t)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},we.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},we.fromSaved=function(t,e,n){return e instanceof be?new we(t,Jt(t.mode,e.state),n,e.lookAhead):new we(t,Jt(t.mode,e),n)},we.prototype.save=function(t){var e=!1!==t?Jt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new be(e,this.maxLookAhead):e};var Te=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function Se(t,e,n,i){var r,o=t.doc,a=o.mode;e=ge(o,e);var s,l=ee(o,e.line),c=ke(t,e.line,n),u=new te(l.text,t.options.tabSize,c);i&&(s=[]);while((i||u.post.options.maxHighlightLength?(s=!1,a&&Ae(t,e,i,d.pos),d.pos=e.length,l=null):l=Ne(Me(n,d,i.state,h),o),h){var p=h[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||u!=l){while(ca;--s){if(s<=o.first)return o.first;var l=ee(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof be?c.lookAhead:0)<=o.modeFrontier))return s;var u=G(l.text,null,t.options.tabSize);(null==r||i>u)&&(r=s-1,i=u)}return r}function Le(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontiern;i--){var r=ee(t,i).stateAfter;if(r&&(!(r instanceof be)||i+r.lookAhead=e:o.to>e);(i||(i=[])).push(new je(a,o.from,l?null:o.to))}}return i}function Ue(t,e,n){var i;if(t)for(var r=0;r=e:o.to>e);if(s||o.from==e&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var l=null==o.from||(a.inclusiveLeft?o.from<=e:o.from0&&s)for(var w=0;w0)){var u=[l,1],d=ue(c.from,s.from),h=ue(c.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(h>0||!a.inclusiveRight&&!h)&&u.push({from:s.to,to:c.to}),r.splice.apply(r,u),l+=u.length-3}}return r}function _e(t){var e=t.markedSpans;if(e){for(var n=0;ne)&&(!n||Qe(n,o.marker)<0)&&(n=o.marker)}return n}function en(t,e,n,i,r){var o=ee(t,e),a=Pe&&o.markedSpans;if(a)for(var s=0;s=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?ue(c.to,n)>=0:ue(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?ue(c.from,i)<=0:ue(c.from,i)<0)))return!0}}}function nn(t){var e;while(e=Xe(t))t=e.find(-1,!0).line;return t}function rn(t){var e;while(e=$e(t))t=e.find(1,!0).line;return t}function on(t){var e,n;while(e=$e(t))t=e.find(1,!0).line,(n||(n=[])).push(t);return n}function an(t,e){var n=ee(t,e),i=nn(n);return n==i?e:oe(i)}function sn(t,e){if(e>t.lastLine())return e;var n,i=ee(t,e);if(!ln(t,i))return e;while(n=$e(i))i=n.find(1,!0).line;return oe(i)+1}function ln(t,e){var n=Pe&&e.markedSpans;if(n)for(var i=void 0,r=0;re.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)}))}var pn=function(t,e,n){this.text=t,Ke(this,e),this.height=n?n(this):1};function fn(t,e,n,i){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),_e(t),Ke(t,n);var r=i?i(t):1;r!=t.height&&re(t,r)}function mn(t){t.parent=null,_e(t)}pn.prototype.lineNo=function(){return oe(this)},Mt(pn);var gn={},vn={};function yn(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?vn:gn;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function bn(t,e){var n=D("span",null,null,l?"padding-right: .1px":null),i={pre:D("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var r=0;r<=(e.rest?e.rest.length:0);r++){var o=r?e.rest[r-1]:e.line,a=void 0;i.pos=0,i.addToken=xn,jt(t.display.measure)&&(a=vt(o,t.doc.direction))&&(i.addToken=kn(i.addToken,a)),i.map=[];var s=e!=t.display.externalMeasured&&oe(o);En(o,i,Ce(t,o,s)),o.styleClasses&&(o.styleClasses.bgClass&&(i.bgClass=R(o.styleClasses.bgClass,i.bgClass||"")),o.styleClasses.textClass&&(i.textClass=R(o.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(Ft(t.display.measure))),0==r?(e.measure.map=i.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(i.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(l){var c=i.content.lastChild;(/\bcm-tab\b/.test(c.className)||c.querySelector&&c.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return Ct(t,"renderLine",t,e.line,i.pre),i.pre.className&&(i.textClass=R(i.pre.className,i.textClass||"")),i}function wn(t){var e=O("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function xn(t,e,n,i,r,o,l){if(e){var c,u=t.splitSpaces?Cn(e,t.trailingSpace):e,d=t.cm.state.specialChars,h=!1;if(d.test(e)){c=document.createDocumentFragment();var p=0;while(1){d.lastIndex=p;var f=d.exec(e),m=f?f.index-p:e.length-p;if(m){var g=document.createTextNode(u.slice(p,p+m));a&&s<9?c.appendChild(O("span",[g])):c.appendChild(g),t.map.push(t.pos,t.pos+m,g),t.col+=m,t.pos+=m}if(!f)break;p+=m+1;var v=void 0;if("\t"==f[0]){var y=t.cm.options.tabSize,b=y-t.col%y;v=c.appendChild(O("span",$(b),"cm-tab")),v.setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),t.col+=b}else"\r"==f[0]||"\n"==f[0]?(v=c.appendChild(O("span","\r"==f[0]?"␍":"␤","cm-invalidchar")),v.setAttribute("cm-text",f[0]),t.col+=1):(v=t.cm.options.specialCharPlaceholder(f[0]),v.setAttribute("cm-text",f[0]),a&&s<9?c.appendChild(O("span",[v])):c.appendChild(v),t.col+=1);t.map.push(t.pos,t.pos+1,v),t.pos++}}else t.col+=e.length,c=document.createTextNode(u),t.map.push(t.pos,t.pos+e.length,c),a&&s<9&&(h=!0),t.pos+=e.length;if(t.trailingSpace=32==u.charCodeAt(e.length-1),n||i||r||h||o||l){var w=n||"";i&&(w+=i),r&&(w+=r);var x=O("span",[c],w,o);if(l)for(var C in l)l.hasOwnProperty(C)&&"style"!=C&&"class"!=C&&x.setAttribute(C,l[C]);return t.content.appendChild(x)}t.content.appendChild(c)}}function Cn(t,e){if(t.length>1&&!/ /.test(t))return t;for(var n=e,i="",r=0;rc&&d.from<=c)break;if(d.to>=u)return t(n,i,r,o,a,s,l);t(n,i.slice(0,d.to-c),r,o,null,s,l),o=null,i=i.slice(d.to-c),c=d.to}}}function An(t,e,n,i){var r=!i&&n.widgetNode;r&&t.map.push(t.pos,t.pos+e,r),!i&&t.cm.display.input.needsContentAttribute&&(r||(r=t.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",n.id)),r&&(t.cm.display.input.setUneditable(r),t.content.appendChild(r)),t.pos+=e,t.trailingSpace=!1}function En(t,e,n){var i=t.markedSpans,r=t.text,o=0;if(i)for(var a,s,l,c,u,d,h,p=r.length,f=0,m=1,g="",v=0;;){if(v==f){l=c=u=s="",h=null,d=null,v=1/0;for(var y=[],b=void 0,w=0;wf||C.collapsed&&x.to==f&&x.from==f)){if(null!=x.to&&x.to!=f&&v>x.to&&(v=x.to,c=""),C.className&&(l+=" "+C.className),C.css&&(s=(s?s+";":"")+C.css),C.startStyle&&x.from==f&&(u+=" "+C.startStyle),C.endStyle&&x.to==v&&(b||(b=[])).push(C.endStyle,x.to),C.title&&((h||(h={})).title=C.title),C.attributes)for(var k in C.attributes)(h||(h={}))[k]=C.attributes[k];C.collapsed&&(!d||Qe(d.marker,C)<0)&&(d=x)}else x.from>f&&v>x.from&&(v=x.from)}if(b)for(var A=0;A=p)break;var M=Math.min(p,v);while(1){if(g){var T=f+g.length;if(!d){var S=T>M?g.slice(0,M-f):g;e.addToken(e,S,a?a+l:l,u,f+S.length==v?c:"",s,h)}if(T>=M){g=g.slice(M-f),f=M;break}f=T,u=""}g=r.slice(o,o=n[m++]),a=yn(n[m++],e.cm.options)}}else for(var N=1;N2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function ni(t,e,n){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};if(t.rest){for(var i=0;in)return{map:t.measure.maps[r],cache:t.measure.caches[r],before:!0}}}function ii(t,e){e=nn(e);var n=oe(e),i=t.display.externalMeasured=new Mn(t.doc,e,n);i.lineN=n;var r=i.built=bn(t,i);return i.text=r.pre,N(t.display.lineMeasure,r.pre),i}function ri(t,e,n,i){return si(t,ai(t,e),n,i)}function oi(t,e){if(e>=t.display.viewFrom&&e=n.lineN&&ee)&&(o=l-s,r=o-1,e>=l&&(a="right")),null!=r){if(i=t[c+2],s==l&&n==(i.insertLeft?"left":"right")&&(a=n),"left"==n&&0==r)while(c&&t[c-2]==t[c-3]&&t[c-1].insertLeft)i=t[2+(c-=3)],a="left";if("right"==n&&r==l-s)while(c=0;r--)if((n=t[r]).left!=n.right)break;return n}function hi(t,e,n,i){var r,o=ui(e.map,n,i),l=o.node,c=o.start,u=o.end,d=o.collapse;if(3==l.nodeType){for(var h=0;h<4;h++){while(c&&ut(e.line.text.charAt(o.coverStart+c)))--c;while(o.coverStart+u0&&(d=i="right"),r=t.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==i?p.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!r||!r.left&&!r.right)){var f=l.parentNode.getClientRects()[0];r=f?{left:f.left,right:f.left+Pi(t.display),top:f.top,bottom:f.bottom}:ci}for(var m=r.top-e.rect.top,g=r.bottom-e.rect.top,v=(m+g)/2,y=e.view.measure.heights,b=0;b=i.text.length?(l=i.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(t,e,n){var i=s[e],r=1==i.level;return a(n?t-1:t,r!=n)}var d=mt(s,l,c),h=ft,p=u(l,d,"before"==c);return null!=h&&(p.other=u(l,h,"before"!=c)),p}function Ai(t,e){var n=0;e=ge(t.doc,e),t.options.lineWrapping||(n=Pi(t.display)*e.ch);var i=ee(t.doc,e.line),r=un(i)+Zn(t.display);return{left:n,right:n,top:r,bottom:r+i.height}}function Ei(t,e,n,i,r){var o=ce(t,e,n);return o.xRel=r,i&&(o.outside=i),o}function Mi(t,e,n){var i=t.doc;if(n+=t.display.viewOffset,n<0)return Ei(i.first,0,null,-1,-1);var r=ae(i,n),o=i.first+i.size-1;if(r>o)return Ei(i.first+i.size-1,ee(i,o).text.length,null,1,1);e<0&&(e=0);for(var a=ee(i,r);;){var s=Oi(t,a,r,e,n),l=tn(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==r)return c;a=ee(i,r=c.line)}}function Ti(t,e,n,i){i-=bi(e);var r=e.text.length,o=ht((function(e){return si(t,n,e-1).bottom<=i}),r,0);return r=ht((function(e){return si(t,n,e).top>i}),o,r),{begin:o,end:r}}function Si(t,e,n,i){n||(n=ai(t,e));var r=wi(t,e,si(t,n,i),"line").top;return Ti(t,e,n,r)}function Ni(t,e,n,i){return!(t.bottom<=n)&&(t.top>n||(i?t.left:t.right)>e)}function Oi(t,e,n,i,r){r-=un(e);var o=ai(t,e),a=bi(e),s=0,l=e.text.length,c=!0,u=vt(e,t.doc.direction);if(u){var d=(t.options.lineWrapping?Li:Di)(t,e,n,o,u,i,r);c=1!=d.level,s=c?d.from:d.to-1,l=c?d.to:d.from-1}var h,p,f=null,m=null,g=ht((function(e){var n=si(t,o,e);return n.top+=a,n.bottom+=a,!!Ni(n,i,r,!1)&&(n.top<=r&&n.left<=i&&(f=e,m=n),!0)}),s,l),v=!1;if(m){var y=i-m.left=w.bottom?1:0}return g=dt(e.text,g,1),Ei(n,g,p,v,i-h)}function Di(t,e,n,i,r,o,a){var s=ht((function(s){var l=r[s],c=1!=l.level;return Ni(ki(t,ce(n,c?l.to:l.from,c?"before":"after"),"line",e,i),o,a,!0)}),0,r.length-1),l=r[s];if(s>0){var c=1!=l.level,u=ki(t,ce(n,c?l.from:l.to,c?"after":"before"),"line",e,i);Ni(u,o,a,!0)&&u.top>a&&(l=r[s-1])}return l}function Li(t,e,n,i,r,o,a){var s=Ti(t,e,i,a),l=s.begin,c=s.end;/\s/.test(e.text.charAt(c-1))&&c--;for(var u=null,d=null,h=0;h=c||p.to<=l)){var f=1!=p.level,m=si(t,i,f?Math.min(c,p.to)-1:Math.max(l,p.from)).right,g=mg)&&(u=p,d=g)}}return u||(u=r[r.length-1]),u.fromc&&(u={from:u.from,to:c,level:u.level}),u}function Ii(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==li){li=O("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)li.appendChild(document.createTextNode("x")),li.appendChild(O("br"));li.appendChild(document.createTextNode("x"))}N(t.measure,li);var n=li.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),S(t.measure),n||1}function Pi(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=O("span","xxxxxxxxxx"),n=O("pre",[e],"CodeMirror-line-like");N(t.measure,n);var i=e.getBoundingClientRect(),r=(i.right-i.left)/10;return r>2&&(t.cachedCharWidth=r),r||10}function Ri(t){for(var e=t.display,n={},i={},r=e.gutters.clientLeft,o=e.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=t.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+r,i[s]=o.clientWidth}return{fixedPos:Fi(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:e.wrapper.clientWidth}}function Fi(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function ji(t){var e=Ii(t.display),n=t.options.lineWrapping,i=n&&Math.max(5,t.display.scroller.clientWidth/Pi(t.display)-3);return function(r){if(ln(t.doc,r))return 0;var o=0;if(r.widgets)for(var a=0;a0&&(l=ee(t.doc,c.line).text).length==c.ch){var u=G(l,l.length,t.options.tabSize)-l.length;c=ce(c.line,Math.max(0,Math.round((o-Jn(t.display).left)/Pi(t.display))-u))}return c}function Hi(t,e){if(e>=t.display.viewTo)return null;if(e-=t.display.viewFrom,e<0)return null;for(var n=t.display.view,i=0;ie)&&(r.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=r.viewTo)Pe&&an(t.doc,e)r.viewFrom?Gi(t):(r.viewFrom+=i,r.viewTo+=i);else if(e<=r.viewFrom&&n>=r.viewTo)Gi(t);else if(e<=r.viewFrom){var o=Wi(t,n,n+i,1);o?(r.view=r.view.slice(o.index),r.viewFrom=o.lineN,r.viewTo+=i):Gi(t)}else if(n>=r.viewTo){var a=Wi(t,e,e,-1);a?(r.view=r.view.slice(0,a.index),r.viewTo=a.lineN):Gi(t)}else{var s=Wi(t,e,e,-1),l=Wi(t,n,n+i,1);s&&l?(r.view=r.view.slice(0,s.index).concat(Tn(t,s.lineN,l.lineN)).concat(r.view.slice(l.index)),r.viewTo+=i):Gi(t)}var c=r.externalMeasured;c&&(n=r.lineN&&e=i.viewTo)){var o=i.view[Hi(t,e)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==V(a,n)&&a.push(n)}}}function Gi(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function Wi(t,e,n,i){var r,o=Hi(t,e),a=t.display.view;if(!Pe||n==t.doc.first+t.doc.size)return{index:o,lineN:n};for(var s=t.display.viewFrom,l=0;l0){if(o==a.length-1)return null;r=s+a[o].size-e,o++}else r=s-e;e+=r,n+=r}while(an(t.doc,n)!=n){if(o==(i<0?0:a.length-1))return null;n+=i*a[o-(i<0?1:0)].size,o+=i}return{index:o,lineN:n}}function Vi(t,e,n){var i=t.display,r=i.view;0==r.length||e>=i.viewTo||n<=i.viewFrom?(i.view=Tn(t,e,n),i.viewFrom=e):(i.viewFrom>e?i.view=Tn(t,e,i.viewFrom).concat(i.view):i.viewFromn&&(i.view=i.view.slice(0,Hi(t,n)))),i.viewTo=n}function _i(t){for(var e=t.display.view,n=0,i=0;i=t.display.viewTo||l.to().line0?a:t.defaultCharWidth())+"px"}if(i.other){var s=n.appendChild(O("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=i.other.left+"px",s.style.top=i.other.top+"px",s.style.height=.85*(i.other.bottom-i.other.top)+"px"}}function Qi(t,e){return t.top-e.top||t.left-e.left}function Ji(t,e,n){var i=t.display,r=t.doc,o=document.createDocumentFragment(),a=Jn(t.display),s=a.left,l=Math.max(i.sizerWidth,$n(t)-i.sizer.offsetLeft)-a.right,c="ltr"==r.direction;function u(t,e,n,i){e<0&&(e=0),e=Math.round(e),i=Math.round(i),o.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px;\n top: "+e+"px; width: "+(null==n?l-t:n)+"px;\n height: "+(i-e)+"px"))}function d(e,n,i){var o,a,d=ee(r,e),h=d.text.length;function p(n,i){return Ci(t,ce(e,n),"div",d,i)}function f(e,n,i){var r=Si(t,d,null,e),o="ltr"==n==("after"==i)?"left":"right",a="after"==i?r.begin:r.end-(/\s/.test(d.text.charAt(r.end-1))?2:1);return p(a,o)[o]}var m=vt(d,r.direction);return pt(m,n||0,null==i?h:i,(function(t,e,r,d){var g="ltr"==r,v=p(t,g?"left":"right"),y=p(e-1,g?"right":"left"),b=null==n&&0==t,w=null==i&&e==h,x=0==d,C=!m||d==m.length-1;if(y.top-v.top<=3){var k=(c?b:w)&&x,A=(c?w:b)&&C,E=k?s:(g?v:y).left,M=A?l:(g?y:v).right;u(E,v.top,M-E,v.bottom)}else{var T,S,N,O;g?(T=c&&b&&x?s:v.left,S=c?l:f(t,r,"before"),N=c?s:f(e,r,"after"),O=c&&w&&C?l:y.right):(T=c?f(t,r,"before"):s,S=!c&&b&&x?l:v.right,N=!c&&w&&C?s:y.left,O=c?f(e,r,"after"):l),u(T,v.top,S-T,v.bottom),v.bottom0?e.blinker=setInterval((function(){t.hasFocus()||nr(t),e.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function $i(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||er(t))}function tr(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&nr(t))}),100)}function er(t,e){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(Ct(t,"focus",t,e),t.state.focused=!0,P(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),l&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),Xi(t))}function nr(t,e){t.state.delayingBlurEvent||(t.state.focused&&(Ct(t,"blur",t,e),t.state.focused=!1,T(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function ir(t){for(var e=t.display,n=e.lineDiv.offsetTop,i=Math.max(0,e.scroller.getBoundingClientRect().top),r=e.lineDiv.getBoundingClientRect().top,o=0,l=0;l.005||m<-.005)&&(rt.display.sizerWidth){var v=Math.ceil(h/Pi(t.display));v>t.display.maxLineLength&&(t.display.maxLineLength=v,t.display.maxLine=c.line,t.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(e.scroller.scrollTop+=o)}function rr(t){if(t.widgets)for(var e=0;e=a&&(o=ae(e,un(ee(e,l))-t.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function ar(t,e){if(!kt(t,"scrollCursorIntoView")){var n=t.display,i=n.sizer.getBoundingClientRect(),r=null,o=n.wrapper.ownerDocument;if(e.top+i.top<0?r=!0:e.bottom+i.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(r=!1),null!=r&&!m){var a=O("div","​",null,"position: absolute;\n top: "+(e.top-n.viewOffset-Zn(t.display))+"px;\n height: "+(e.bottom-e.top+Xn(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(a),a.scrollIntoView(r),t.display.lineSpace.removeChild(a)}}}function sr(t,e,n,i){var r;null==i&&(i=0),t.options.lineWrapping||e!=n||(n="before"==e.sticky?ce(e.line,e.ch+1,"before"):e,e=e.ch?ce(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e);for(var o=0;o<5;o++){var a=!1,s=ki(t,e),l=n&&n!=e?ki(t,n):s;r={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-i,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+i};var c=cr(t,r),u=t.doc.scrollTop,d=t.doc.scrollLeft;if(null!=c.scrollTop&&(gr(t,c.scrollTop),Math.abs(t.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(yr(t,c.scrollLeft),Math.abs(t.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return r}function lr(t,e){var n=cr(t,e);null!=n.scrollTop&&gr(t,n.scrollTop),null!=n.scrollLeft&&yr(t,n.scrollLeft)}function cr(t,e){var n=t.display,i=Ii(t.display);e.top<0&&(e.top=0);var r=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,o=ti(t),a={};e.bottom-e.top>o&&(e.bottom=e.top+o);var s=t.doc.height+Qn(n),l=e.tops-i;if(e.topr+o){var u=Math.min(e.top,(c?s:e.bottom)-o);u!=r&&(a.scrollTop=u)}var d=t.options.fixedGutter?0:n.gutters.offsetWidth,h=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft-d,p=$n(t)-n.gutters.offsetWidth,f=e.right-e.left>p;return f&&(e.right=e.left+p),e.left<10?a.scrollLeft=0:e.leftp+h-3&&(a.scrollLeft=e.right+(f?0:10)-p),a}function ur(t,e){null!=e&&(fr(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function dr(t){fr(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function hr(t,e,n){null==e&&null==n||fr(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function pr(t,e){fr(t),t.curOp.scrollToPos=e}function fr(t){var e=t.curOp.scrollToPos;if(e){t.curOp.scrollToPos=null;var n=Ai(t,e.from),i=Ai(t,e.to);mr(t,n,i,e.margin)}}function mr(t,e,n,i){var r=cr(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-i,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+i});hr(t,r.scrollLeft,r.scrollTop)}function gr(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||Kr(t,{top:e}),vr(t,e,!0),n&&Kr(t),Br(t,100))}function vr(t,e,n){e=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e)),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function yr(t,e,n,i){e=Math.max(0,Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!i||(t.doc.scrollLeft=e,Jr(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function br(t){var e=t.display,n=e.gutters.offsetWidth,i=Math.round(t.doc.height+Qn(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:i,scrollHeight:i+Xn(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var wr=function(t,e,n){this.cm=n;var i=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=r.tabIndex=-1,t(i),t(r),bt(i,"scroll",(function(){i.clientHeight&&e(i.scrollTop,"vertical")})),bt(r,"scroll",(function(){r.clientWidth&&e(r.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};wr.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,i=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?i+"px":"0";var r=t.viewHeight-(e?i:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+r)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?i+"px":"0",this.horiz.style.left=t.barLeft+"px";var o=t.viewWidth-t.barLeft-(n?i:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?i:0,bottom:e?i:0}},wr.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},wr.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},wr.prototype.zeroWidthHack=function(){var t=b&&!f?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new W,this.disableVert=new W},wr.prototype.enableZeroWidthBar=function(t,e,n){function i(){var r=t.getBoundingClientRect(),o="vert"==n?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1);o!=t?t.style.visibility="hidden":e.set(1e3,i)}t.style.visibility="",e.set(1e3,i)},wr.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var xr=function(){};function Cr(t,e){e||(e=br(t));var n=t.display.barWidth,i=t.display.barHeight;kr(t,e);for(var r=0;r<4&&n!=t.display.barWidth||i!=t.display.barHeight;r++)n!=t.display.barWidth&&t.options.lineWrapping&&ir(t),kr(t,br(t)),n=t.display.barWidth,i=t.display.barHeight}function kr(t,e){var n=t.display,i=n.scrollbars.update(e);n.sizer.style.paddingRight=(n.barWidth=i.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=i.bottom)+"px",n.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=i.bottom+"px",n.scrollbarFiller.style.width=i.right+"px"):n.scrollbarFiller.style.display="",i.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=i.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}xr.prototype.update=function(){return{bottom:0,right:0}},xr.prototype.setScrollLeft=function(){},xr.prototype.setScrollTop=function(){},xr.prototype.clear=function(){};var Ar={native:wr,null:xr};function Er(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&T(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Ar[t.options.scrollbarStyle]((function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),bt(e,"mousedown",(function(){t.state.focused&&setTimeout((function(){return t.display.input.focus()}),0)})),e.setAttribute("cm-not-content","true")}),(function(e,n){"horizontal"==n?yr(t,e):gr(t,e)}),t),t.display.scrollbars.addClass&&P(t.display.wrapper,t.display.scrollbars.addClass)}var Mr=0;function Tr(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.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:++Mr,markArrays:null},Nn(t.curOp)}function Sr(t){var e=t.curOp;e&&Dn(e,(function(t){for(var e=0;e=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new qr(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Dr(t){t.updatedDisplay=t.mustUpdate&&Vr(t.cm,t.update)}function Lr(t){var e=t.cm,n=e.display;t.updatedDisplay&&ir(e),t.barMeasure=br(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=ri(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+Xn(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-$n(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function Ir(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft=t.display.viewTo)){var n=+new Date+t.options.workTime,i=ke(t,e.highlightFrontier),r=[];e.iter(i.line,Math.min(e.first+e.size,t.display.viewTo+500),(function(o){if(i.line>=t.display.viewFrom){var a=o.styles,s=o.text.length>t.options.maxHighlightLength?Jt(e.mode,i.state):null,l=xe(t,o,i,!0);s&&(i.state=s),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),h=0;!d&&hn)return Br(t,t.options.workDelay),!0})),e.highlightFrontier=i.line,e.modeFrontier=Math.max(e.modeFrontier,i.line),r.length&&Rr(t,(function(){for(var e=0;e=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==_i(t))return!1;Xr(t)&&(Gi(t),e.dims=Ri(t));var r=i.first+i.size,o=Math.max(e.visible.from-t.options.viewportMargin,i.first),a=Math.min(r,e.visible.to+t.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(r,n.viewTo)),Pe&&(o=an(t.doc,o),a=sn(t.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;Vi(t,o,a),n.viewOffset=un(ee(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var l=_i(t);if(!s&&0==l&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=Gr(t);return l>4&&(n.lineDiv.style.display="none"),Yr(t,n.updateLineNumbers,e.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Wr(c),S(n.cursorDiv),S(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,Br(t,400)),n.updateLineNumbers=null,!0}function _r(t,e){for(var n=e.viewport,i=!0;;i=!1){if(i&&t.options.lineWrapping&&e.oldDisplayWidth!=$n(t))i&&(e.visible=or(t.display,t.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(t.doc.height+Qn(t.display)-ti(t),n.top)}),e.visible=or(t.display,t.doc,n),e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)break;if(!Vr(t,e))break;ir(t);var r=br(t);Ki(t),Cr(t,r),Qr(t,r),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function Kr(t,e){var n=new qr(t,e);if(Vr(t,n)){ir(t),_r(t,n);var i=br(t);Ki(t),Cr(t,i),Qr(t,i),n.finish()}}function Yr(t,e,n){var i=t.display,r=t.options.lineNumbers,o=i.lineDiv,a=o.firstChild;function s(e){var n=e.nextSibling;return l&&b&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var c=i.view,u=i.viewFrom,d=0;d-1&&(p=!1),Rn(t,h,u,n)),p&&(S(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(le(t.options,u)))),a=h.node.nextSibling}else{var f=Gn(t,h,u,n);o.insertBefore(f,a)}u+=h.size}while(a)a=s(a)}function Zr(t){var e=t.gutters.offsetWidth;t.sizer.style.marginLeft=e+"px",In(t,"gutterChanged",t)}function Qr(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+Xn(t)+"px"}function Jr(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var i=Fi(e)-e.scroller.scrollLeft+t.doc.scrollLeft,r=e.gutters.offsetWidth,o=i+"px",a=0;a=105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&y||(o.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(o.wrapper):t(o.wrapper)),o.viewFrom=o.viewTo=e.first,o.reportedViewFrom=o.reportedViewTo=e.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=$r(r.gutters,r.lineNumbers),to(o),i.init(o)}qr.prototype.signal=function(t,e){Et(t,e)&&this.events.push(arguments)},qr.prototype.finish=function(){for(var t=0;tc.clientWidth,f=c.scrollHeight>c.clientHeight;if(r&&p||o&&f){if(o&&b&&l)t:for(var m=e.target,g=s.view;m!=c;m=m.parentNode)for(var v=0;v=0&&ue(t,i.to())<=0)return n}return-1};var co=function(t,e){this.anchor=t,this.head=e};function uo(t,e,n){var i=t&&t.options.selectionsMayTouch,r=e[n];e.sort((function(t,e){return ue(t.from(),e.from())})),n=V(e,r);for(var o=1;o0:l>=0){var c=fe(s.from(),a.from()),u=pe(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,e.splice(--o,2,new co(d?u:c,d?c:u))}}return new lo(e,n)}function ho(t,e){return new lo([new co(t,e||t)],0)}function po(t){return t.text?ce(t.from.line+t.text.length-1,tt(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function fo(t,e){if(ue(t,e.from)<0)return t;if(ue(t,e.to)<=0)return po(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,i=t.ch;return t.line==e.to.line&&(i+=po(e).ch-e.to.ch),ce(n,i)}function mo(t,e){for(var n=[],i=0;i1&&t.remove(s.line+1,f-1),t.insert(s.line+1,v)}In(t,"change",t,e)}function Co(t,e,n){function i(t,r,o){if(t.linked)for(var a=0;a1&&!t.done[t.done.length-2].ranges?(t.done.pop(),tt(t.done)):void 0}function Oo(t,e,n,i){var r=t.history;r.undone.length=0;var o,a,s=+new Date;if((r.lastOp==i||r.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&r.lastModTime>s-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(o=No(r,r.lastOp==i)))a=tt(o.changes),0==ue(e.from,e.to)&&0==ue(e.from,a.to)?a.to=po(e):o.changes.push(To(t,e));else{var l=tt(r.done);l&&l.ranges||Io(t.sel,r.done),o={changes:[To(t,e)],generation:r.generation},r.done.push(o);while(r.done.length>r.undoDepth)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(n),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=s,r.lastOp=r.lastSelOp=i,r.lastOrigin=r.lastSelOrigin=e.origin,a||Ct(t,"historyAdded")}function Do(t,e,n,i){var r=e.charAt(0);return"*"==r||"+"==r&&n.ranges.length==i.ranges.length&&n.somethingSelected()==i.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function Lo(t,e,n,i){var r=t.history,o=i&&i.origin;n==r.lastSelOp||o&&r.lastSelOrigin==o&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==o||Do(t,o,tt(r.done),e))?r.done[r.done.length-1]=e:Io(e,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=o,r.lastSelOp=n,i&&!1!==i.clearRedo&&So(r.undone)}function Io(t,e){var n=tt(e);n&&n.ranges&&n.equals(t)||e.push(t)}function Po(t,e,n,i){var r=e["spans_"+t.id],o=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,i),(function(n){n.markedSpans&&((r||(r=e["spans_"+t.id]={}))[o]=n.markedSpans),++o}))}function Ro(t){if(!t)return null;for(var e,n=0;n-1&&(tt(s)[d]=c[d],delete c[d])}}}return i}function Bo(t,e,n,i){if(i){var r=t.anchor;if(n){var o=ue(e,r)<0;o!=ue(n,r)<0?(r=e,e=n):o!=ue(e,n)<0&&(e=n)}return new co(r,e)}return new co(n||e,e)}function Ho(t,e,n,i,r){null==r&&(r=t.cm&&(t.cm.display.shift||t.extend)),_o(t,new lo([Bo(t.sel.primary(),e,n,r)],0),i)}function qo(t,e,n){for(var i=[],r=t.cm&&(t.cm.display.shift||t.extend),o=0;o=e.ch:s.to>e.ch))){if(r&&(Ct(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(i<0?1:-1),h=void 0;if((i<0?u:c)&&(d=$o(t,d,-i,d&&d.line==e.line?o:null)),d&&d.line==e.line&&(h=ue(d,n))&&(i<0?h<0:h>0))return Jo(t,d,e,i,r)}var p=l.find(i<0?-1:1);return(i<0?c:u)&&(p=$o(t,p,i,p.line==e.line?o:null)),p?Jo(t,p,e,i,r):null}}return e}function Xo(t,e,n,i,r){var o=i||1,a=Jo(t,e,n,o,r)||!r&&Jo(t,e,n,o,!0)||Jo(t,e,n,-o,r)||!r&&Jo(t,e,n,-o,!0);return a||(t.cantEdit=!0,ce(t.first,0))}function $o(t,e,n,i){return n<0&&0==e.ch?e.line>t.first?ge(t,ce(e.line-1)):null:n>0&&e.ch==(i||ee(t,e.line)).text.length?e.line=0;--r)ia(t,{from:i[r].from,to:i[r].to,text:r?[""]:e.text,origin:e.origin});else ia(t,e)}}function ia(t,e){if(1!=e.text.length||""!=e.text[0]||0!=ue(e.from,e.to)){var n=mo(t,e);Oo(t,e,n,t.cm?t.cm.curOp.id:NaN),aa(t,e,n,Ge(t,e));var i=[];Co(t,(function(t,n){n||-1!=V(i,t.history)||(da(t.history,e),i.push(t.history)),aa(t,e,null,Ge(t,e))}))}}function ra(t,e,n){var i=t.cm&&t.cm.state.suppressEdits;if(!i||n){for(var r,o=t.history,a=t.sel,s="undo"==e?o.done:o.undone,l="undo"==e?o.undone:o.done,c=0;c=0;--p){var f=h(p);if(f)return f.v}}}}function oa(t,e){if(0!=e&&(t.first+=e,t.sel=new lo(et(t.sel.ranges,(function(t){return new co(ce(t.anchor.line+e,t.anchor.ch),ce(t.head.line+e,t.head.ch))})),t.sel.primIndex),t.cm)){qi(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,i=n.viewFrom;it.lastLine())){if(e.from.lineo&&(e={from:e.from,to:ce(o,ee(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=ne(t,e.from,e.to),n||(n=mo(t,e)),t.cm?sa(t.cm,e,i):xo(t,e,i),Ko(t,n,Y),t.cantEdit&&Xo(t,ce(t.firstLine(),0))&&(t.cantEdit=!1)}}function sa(t,e,n){var i=t.doc,r=t.display,o=e.from,a=e.to,s=!1,l=o.line;t.options.lineWrapping||(l=oe(nn(ee(i,o.line))),i.iter(l,a.line+1,(function(t){if(t==r.maxLine)return s=!0,!0}))),i.sel.contains(e.from,e.to)>-1&&At(t),xo(i,e,n,ji(t)),t.options.lineWrapping||(i.iter(l,o.line+e.text.length,(function(t){var e=dn(t);e>r.maxLineLength&&(r.maxLine=t,r.maxLineLength=e,r.maxLineChanged=!0,s=!1)})),s&&(t.curOp.updateMaxLine=!0)),Le(i,o.line),Br(t,400);var c=e.text.length-(a.line-o.line)-1;e.full?qi(t):o.line!=a.line||1!=e.text.length||wo(t.doc,e)?qi(t,o.line,a.line+1,c):Ui(t,o.line,"text");var u=Et(t,"changes"),d=Et(t,"change");if(d||u){var h={from:o,to:a,text:e.text,removed:e.removed,origin:e.origin};d&&In(t,"change",t,h),u&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(h)}t.display.selForContextMenu=null}function la(t,e,n,i,r){var o;i||(i=n),ue(i,n)<0&&(o=[i,n],n=o[0],i=o[1]),"string"==typeof e&&(e=t.splitLines(e)),na(t,{from:n,to:i,text:e,origin:r})}function ca(t,e,n,i){n1||!(this.children[0]instanceof pa))){var s=[];this.collapse(s),this.children=[new pa(s)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e50){for(var a=r.lines.length%25+25,s=a;s10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var i=0;i0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=D("span",[o.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(en(t,e.line,e,n,o)||e.line!=n.line&&en(t,n.line,e,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Fe()}o.addToHistory&&Oo(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var s,l=e.line,c=t.cm;if(t.iter(l,n.line+1,(function(i){c&&o.collapsed&&!c.options.lineWrapping&&nn(i)==c.display.maxLine&&(s=!0),o.collapsed&&l!=e.line&&re(i,0),He(i,new je(o,l==e.line?e.ch:null,l==n.line?n.ch:null),t.cm&&t.cm.curOp),++l})),o.collapsed&&t.iter(e.line,n.line+1,(function(e){ln(t,e)&&re(e,0)})),o.clearOnEnter&&bt(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Re(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),o.collapsed&&(o.id=++ya,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)qi(c,e.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=e.line;u<=n.line;u++)Ui(c,u,"text");o.atomic&&Zo(c.doc),In(c,"markerAdded",c,o)}return o}ba.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&Tr(t),Et(this,"clear")){var n=this.find();n&&In(this,"clear",n.from,n.to)}for(var i=null,r=null,o=0;ot.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=u,t.display.maxLineChanged=!0)}null!=i&&t&&this.collapsed&&qi(t,i,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Zo(t.doc)),t&&In(t,"markerCleared",t,this,i,r),e&&Sr(t),this.parent&&this.parent.clear()}},ba.prototype.find=function(t,e){var n,i;null==t&&"bookmark"==this.type&&(t=1);for(var r=0;r=0;l--)na(this,i[l]);s?Vo(this,s):this.cm&&dr(this.cm)})),undo:zr((function(){ra(this,"undo")})),redo:zr((function(){ra(this,"redo")})),undoSelection:zr((function(){ra(this,"undo",!0)})),redoSelection:zr((function(){ra(this,"redo",!0)})),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,i=0;i=t.ch)&&e.push(r.marker.parent||r.marker)}return e},findMarks:function(t,e,n){t=ge(this,t),e=ge(this,e);var i=[],r=t.line;return this.iter(t.line,e.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&r!=t.line||null!=l.from&&r==e.line&&l.from>=e.ch||n&&!n(l.marker)||i.push(l.marker.parent||l.marker)}++r})),i},getAllMarks:function(){var t=[];return this.iter((function(e){var n=e.markedSpans;if(n)for(var i=0;it)return e=t,!0;t-=o,++n})),ge(this,ce(n,e))},indexFromPos:function(t){t=ge(this,t);var e=t.ch;if(t.linee&&(e=t.from),null!=t.to&&t.to-1)return e.state.draggingText(t),void setTimeout((function(){return e.display.input.focus()}),20);try{var d=t.dataTransfer.getData("Text");if(d){var h;if(e.state.draggingText&&!e.state.draggingText.copy&&(h=e.listSelections()),Ko(e.doc,ho(n,n)),h)for(var p=0;p=0;e--)la(t.doc,"",i[e].from,i[e].to,"+delete");dr(t)}))}function Ja(t,e,n){var i=dt(t.text,e+n,n);return i<0||i>t.text.length?null:i}function Xa(t,e,n){var i=Ja(t,e.ch,n);return null==i?null:new ce(e.line,i,n<0?"after":"before")}function $a(t,e,n,i,r){if(t){"rtl"==e.doc.direction&&(r=-r);var o=vt(n,e.doc.direction);if(o){var a,s=r<0?tt(o):o[0],l=r<0==(1==s.level),c=l?"after":"before";if(s.level>0||"rtl"==e.doc.direction){var u=ai(e,n);a=r<0?n.text.length-1:0;var d=si(e,u,a).top;a=ht((function(t){return si(e,u,t).top==d}),r<0==(1==s.level)?s.from:s.to-1,a),"before"==c&&(a=Ja(n,a,1))}else a=r<0?s.to:s.from;return new ce(i,a,c)}}return new ce(i,r<0?n.text.length:0,r<0?"before":"after")}function ts(t,e,n,i){var r=vt(e,t.doc.direction);if(!r)return Xa(e,n,i);n.ch>=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=mt(r,n.ch,n.sticky),a=r[o];if("ltr"==t.doc.direction&&a.level%2==0&&(i>0?a.to>n.ch:a.from=a.from&&h>=u.begin)){var p=d?"before":"after";return new ce(n.line,h,p)}}var f=function(t,e,i){for(var o=function(t,e){return e?new ce(n.line,l(t,1),"before"):new ce(n.line,t,"after")};t>=0&&t0==(1!=a.level),c=s?i.begin:l(i.end,-1);if(a.from<=c&&c0?u.end:l(u.begin,-1);return null==g||i>0&&g==e.text.length||(m=f(i>0?0:r.length-1,i,c(g)),!m)?null:m}Ua.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"},Ua.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"},Ua.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"},Ua.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"]},Ua["default"]=b?Ua.macDefault:Ua.pcDefault;var es={selectAll:ta,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),Y)},killLine:function(t){return Qa(t,(function(e){if(e.empty()){var n=ee(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line0)r=new ce(r.line,r.ch+1),t.replaceRange(o.charAt(r.ch-1)+o.charAt(r.ch-2),ce(r.line,r.ch-2),r,"+transpose");else if(r.line>t.doc.first){var a=ee(t.doc,r.line-1).text;a&&(r=new ce(r.line,1),t.replaceRange(o.charAt(0)+t.doc.lineSeparator()+a.charAt(a.length-1),ce(r.line-1,a.length-1),r,"+transpose"))}n.push(new co(r,r))}t.setSelections(n)}))},newlineAndIndent:function(t){return Rr(t,(function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var i=0;i-1&&(ue((r=s.ranges[r]).from(),e)<0||e.xRel>0)&&(ue(r.to(),e)>0||e.xRel<0)?Ms(t,i,e,o):Ss(t,i,e,o)}function Ms(t,e,n,i){var r=t.display,o=!1,c=Fr(t,(function(e){l&&(r.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:tr(t)),xt(r.wrapper.ownerDocument,"mouseup",c),xt(r.wrapper.ownerDocument,"mousemove",u),xt(r.scroller,"dragstart",d),xt(r.scroller,"drop",c),o||(Tt(e),i.addNew||Ho(t.doc,n,null,null,i.extend),l&&!p||a&&9==s?setTimeout((function(){r.wrapper.ownerDocument.body.focus({preventScroll:!0}),r.input.focus()}),20):r.input.focus())})),u=function(t){o=o||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},d=function(){return o=!0};l&&(r.scroller.draggable=!0),t.state.draggingText=c,c.copy=!i.moveOnDrag,bt(r.wrapper.ownerDocument,"mouseup",c),bt(r.wrapper.ownerDocument,"mousemove",u),bt(r.scroller,"dragstart",d),bt(r.scroller,"drop",c),t.state.delayingBlurEvent=!0,setTimeout((function(){return r.input.focus()}),20),r.scroller.dragDrop&&r.scroller.dragDrop()}function Ts(t,e,n){if("char"==n)return new co(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new co(ce(e.line,0),ge(t.doc,ce(e.line+1,0)));var i=n(t,e);return new co(i.from,i.to)}function Ss(t,e,n,i){a&&tr(t);var r=t.display,o=t.doc;Tt(e);var s,l,c=o.sel,u=c.ranges;if(i.addNew&&!i.extend?(l=o.sel.contains(n),s=l>-1?u[l]:new co(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==i.unit)i.addNew||(s=new co(n,n)),n=Bi(t,e,!0,!0),l=-1;else{var d=Ts(t,n,i.unit);s=i.extend?Bo(s,d.anchor,d.head,i.extend):d}i.addNew?-1==l?(l=u.length,_o(o,uo(t,u.concat([s]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&"char"==i.unit&&!i.extend?(_o(o,uo(t,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),c=o.sel):Uo(o,l,s,Z):(l=0,_o(o,new lo([s],0),Z),c=o.sel);var h=n;function p(e){if(0!=ue(h,e))if(h=e,"rectangle"==i.unit){for(var r=[],a=t.options.tabSize,u=G(ee(o,n.line).text,n.ch,a),d=G(ee(o,e.line).text,e.ch,a),p=Math.min(u,d),f=Math.max(u,d),m=Math.min(n.line,e.line),g=Math.min(t.lastLine(),Math.max(n.line,e.line));m<=g;m++){var v=ee(o,m).text,y=J(v,p,a);p==f?r.push(new co(ce(m,y),ce(m,y))):v.length>y&&r.push(new co(ce(m,y),ce(m,J(v,f,a))))}r.length||r.push(new co(n,n)),_o(o,uo(t,c.ranges.slice(0,l).concat(r),l),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var b,w=s,x=Ts(t,e,i.unit),C=w.anchor;ue(x.anchor,C)>0?(b=x.head,C=fe(w.from(),x.anchor)):(b=x.anchor,C=pe(w.to(),x.head));var k=c.ranges.slice(0);k[l]=Ns(t,new co(ge(o,C),b)),_o(o,uo(t,k,l),Z)}}var f=r.wrapper.getBoundingClientRect(),m=0;function g(e){var n=++m,a=Bi(t,e,!0,"rectangle"==i.unit);if(a)if(0!=ue(a,h)){t.curOp.focus=I(z(t)),p(a);var s=or(r,o);(a.line>=s.to||a.linef.bottom?20:0;l&&setTimeout(Fr(t,(function(){m==n&&(r.scroller.scrollTop+=l,g(e))})),50)}}function v(e){t.state.selectingText=!1,m=1/0,e&&(Tt(e),r.input.focus()),xt(r.wrapper.ownerDocument,"mousemove",y),xt(r.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var y=Fr(t,(function(t){0!==t.buttons&&Lt(t)?g(t):v(t)})),b=Fr(t,v);t.state.selectingText=b,bt(r.wrapper.ownerDocument,"mousemove",y),bt(r.wrapper.ownerDocument,"mouseup",b)}function Ns(t,e){var n=e.anchor,i=e.head,r=ee(t.doc,n.line);if(0==ue(n,i)&&n.sticky==i.sticky)return e;var o=vt(r);if(!o)return e;var a=mt(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return e;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return e;if(i.line!=n.line)l=(i.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var u=mt(o,i.ch,i.sticky),d=u-a||(i.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?d<0:d>0}var h=o[c+(l?-1:0)],p=l==(1==h.level),f=p?h.from:h.to,m=p?"after":"before";return n.ch==f&&n.sticky==m?e:new co(new ce(n.line,f,m),i)}function Os(t,e,n,i){var r,o;if(e.touches)r=e.touches[0].clientX,o=e.touches[0].clientY;else try{r=e.clientX,o=e.clientY}catch(h){return!1}if(r>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;i&&Tt(e);var a=t.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Et(t,n))return Nt(e);o-=s.top-a.viewOffset;for(var l=0;l=r){var u=ae(t.doc,o),d=t.display.gutterSpecs[l];return Ct(t,n,t,u,d.className,e),Nt(e)}}}function Ds(t,e){return Os(t,e,"gutterClick",!0)}function Ls(t,e){Yn(t.display,e)||Is(t,e)||kt(t,e,"contextmenu")||A||t.display.input.onContextMenu(e)}function Is(t,e){return!!Et(t,"gutterContextMenu")&&Os(t,e,"gutterContextMenu",!1)}function Ps(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),gi(t)}ws.prototype.compare=function(t,e,n){return this.time+bs>t&&0==ue(e,this.pos)&&n==this.button};var Rs={toString:function(){return"CodeMirror.Init"}},Fs={},js={};function zs(t){var e=t.optionHandlers;function n(n,i,r,o){t.defaults[n]=i,r&&(e[n]=o?function(t,e,n){n!=Rs&&r(t,e,n)}:r)}t.defineOption=n,t.Init=Rs,n("value","",(function(t,e){return t.setValue(e)}),!0),n("mode",null,(function(t,e){t.doc.modeOption=e,yo(t)}),!0),n("indentUnit",2,yo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(t){bo(t),gi(t),qi(t)}),!0),n("lineSeparator",null,(function(t,e){if(t.doc.lineSep=e,e){var n=[],i=t.doc.first;t.doc.iter((function(t){for(var r=0;;){var o=t.text.indexOf(e,r);if(-1==o)break;r=o+e.length,n.push(ce(i,o))}i++}));for(var r=n.length-1;r>=0;r--)la(t.doc,e,n[r],ce(n[r].line,n[r].ch+e.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=Rs&&t.refresh()})),n("specialCharPlaceholder",wn,(function(t){return t.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(t,e){return t.getInputField().spellcheck=e}),!0),n("autocorrect",!1,(function(t,e){return t.getInputField().autocorrect=e}),!0),n("autocapitalize",!1,(function(t,e){return t.getInputField().autocapitalize=e}),!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",(function(t){Ps(t),eo(t)}),!0),n("keyMap","default",(function(t,e,n){var i=Za(e),r=n!=Rs&&Za(n);r&&r.detach&&r.detach(t,i),i.attach&&i.attach(t,r||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Hs,!0),n("gutters",[],(function(t,e){t.display.gutterSpecs=$r(e,t.options.lineNumbers),eo(t)}),!0),n("fixedGutter",!0,(function(t,e){t.display.gutters.style.left=e?Fi(t.display)+"px":"0",t.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(t){return Cr(t)}),!0),n("scrollbarStyle","native",(function(t){Er(t),Cr(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(t,e){t.display.gutterSpecs=$r(t.options.gutters,e),eo(t)}),!0),n("firstLineNumber",1,eo,!0),n("lineNumberFormatter",(function(t){return t}),eo,!0),n("showCursorWhenSelecting",!1,Ki,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(t,e){"nocursor"==e&&(nr(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)})),n("screenReaderLabel",null,(function(t,e){e=""===e?null:e,t.display.input.screenReaderLabelChanged(e)})),n("disableInput",!1,(function(t,e){e||t.display.input.reset()}),!0),n("dragDrop",!0,Bs),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Ki,!0),n("singleCursorHeightPerLine",!0,Ki,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,bo,!0),n("addModeClass",!1,bo,!0),n("pollInterval",100),n("undoDepth",200,(function(t,e){return t.doc.history.undoDepth=e})),n("historyEventDelay",1250),n("viewportMargin",10,(function(t){return t.refresh()}),!0),n("maxHighlightLength",1e4,bo,!0),n("moveInputWithCursor",!0,(function(t,e){e||t.display.input.resetPosition()})),n("tabindex",null,(function(t,e){return t.display.input.getField().tabIndex=e||""})),n("autofocus",null),n("direction","ltr",(function(t,e){return t.doc.setDirection(e)}),!0),n("phrases",null)}function Bs(t,e,n){var i=n&&n!=Rs;if(!e!=!i){var r=t.display.dragFunctions,o=e?bt:xt;o(t.display.scroller,"dragstart",r.start),o(t.display.scroller,"dragenter",r.enter),o(t.display.scroller,"dragover",r.over),o(t.display.scroller,"dragleave",r.leave),o(t.display.scroller,"drop",r.drop)}}function Hs(t){t.options.lineWrapping?(P(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(T(t.display.wrapper,"CodeMirror-wrap"),hn(t)),zi(t),qi(t),gi(t),setTimeout((function(){return Cr(t)}),100)}function qs(t,e){var n=this;if(!(this instanceof qs))return new qs(t,e);this.options=e=e?U(e):{},U(Fs,e,!1);var i=e.value;"string"==typeof i?i=new Ta(i,e.mode,null,e.lineSeparator,e.direction):e.mode&&(i.modeOption=e.mode),this.doc=i;var r=new qs.inputStyles[e.inputStyle](this),o=this.display=new no(t,i,r,e);for(var c in o.wrapper.CodeMirror=this,Ps(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Er(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 W,keySeq:null,specialChars:null},e.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Us(this),Ra(),Tr(this),this.curOp.forceUpdate=!0,ko(this,i),e.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&er(n)}),20):nr(this),js)js.hasOwnProperty(c)&&js[c](this,e[c],Rs);Xr(this),e.finishInit&&e.finishInit(this);for(var u=0;u400}bt(e.scroller,"touchstart",(function(r){if(!kt(t,r)&&!o(r)&&!Ds(t,r)){e.input.ensurePolled(),clearTimeout(n);var a=+new Date;e.activeTouch={start:a,moved:!1,prev:a-i.end<=300?i:null},1==r.touches.length&&(e.activeTouch.left=r.touches[0].pageX,e.activeTouch.top=r.touches[0].pageY)}})),bt(e.scroller,"touchmove",(function(){e.activeTouch&&(e.activeTouch.moved=!0)})),bt(e.scroller,"touchend",(function(n){var i=e.activeTouch;if(i&&!Yn(e,n)&&null!=i.left&&!i.moved&&new Date-i.start<300){var o,a=t.coordsChar(e.activeTouch,"page");o=!i.prev||l(i,i.prev)?new co(a,a):!i.prev.prev||l(i,i.prev.prev)?t.findWordAt(a):new co(ce(a.line,0),ge(t.doc,ce(a.line+1,0))),t.setSelection(o.anchor,o.head),t.focus(),Tt(n)}r()})),bt(e.scroller,"touchcancel",r),bt(e.scroller,"scroll",(function(){e.scroller.clientHeight&&(gr(t,e.scroller.scrollTop),yr(t,e.scroller.scrollLeft,!0),Ct(t,"scroll",t))})),bt(e.scroller,"mousewheel",(function(e){return so(t,e)})),bt(e.scroller,"DOMMouseScroll",(function(e){return so(t,e)})),bt(e.wrapper,"scroll",(function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0})),e.dragFunctions={enter:function(e){kt(t,e)||Ot(e)},over:function(e){kt(t,e)||(Da(t,e),Ot(e))},start:function(e){return Oa(t,e)},drop:Fr(t,Na),leave:function(e){kt(t,e)||La(t)}};var c=e.input.getField();bt(c,"keyup",(function(e){return ms.call(t,e)})),bt(c,"keydown",Fr(t,ps)),bt(c,"keypress",Fr(t,gs)),bt(c,"focus",(function(e){return er(t,e)})),bt(c,"blur",(function(e){return nr(t,e)}))}qs.defaults=Fs,qs.optionHandlers=js;var Gs=[];function Ws(t,e,n,i){var r,o=t.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?r=ke(t,e).state:n="prev");var a=t.options.tabSize,s=ee(o,e),l=G(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(i||/\S/.test(s.text)){if("smart"==n&&(c=o.mode.indent(r,s.text.slice(u.length),s.text),c==K||c>150)){if(!i)return;n="prev"}}else c=0,n="not";"prev"==n?c=e>o.first?G(ee(o,e-1).text,null,a):0:"add"==n?c=l+t.options.indentUnit:"subtract"==n?c=l-t.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var d="",h=0;if(t.options.indentWithTabs)for(var p=Math.floor(c/a);p;--p)h+=a,d+="\t";if(ha,l=zt(e),c=null;if(s&&i.ranges.length>1)if(Vs&&Vs.text.join("\n")==e){if(i.ranges.length%Vs.text.length==0){c=[];for(var u=0;u=0;h--){var p=i.ranges[h],f=p.from(),m=p.to();p.empty()&&(n&&n>0?f=ce(f.line,f.ch-n):t.state.overwrite&&!s?m=ce(m.line,Math.min(ee(o,m.line).text.length,m.ch+tt(l).length)):s&&Vs&&Vs.lineWise&&Vs.text.join("\n")==l.join("\n")&&(f=m=ce(f.line,0)));var g={from:f,to:m,text:c?c[h%c.length]:l,origin:r||(s?"paste":t.state.cutIncoming>a?"cut":"+input")};na(t.doc,g),In(t,"inputRead",t,g)}e&&!s&&Zs(t,e),dr(t),t.curOp.updateInput<2&&(t.curOp.updateInput=d),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Ys(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||!e.hasFocus()||Rr(e,(function(){return Ks(e,n,0,null,"paste")})),!0}function Zs(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,i=n.ranges.length-1;i>=0;i--){var r=n.ranges[i];if(!(r.head.ch>100||i&&n.ranges[i-1].head.line==r.head.line)){var o=t.getModeAt(r.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Ws(t,r.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(ee(t.doc,r.head.line).text.slice(0,r.head.ch))&&(a=Ws(t,r.head.line,"smart"));a&&In(t,"electricInput",t,r.head.line)}}}function Qs(t){for(var e=[],n=[],i=0;in&&(Ws(this,r.head.line,t,!0),n=r.head.line,i==this.doc.sel.primIndex&&dr(this));else{var o=r.from(),a=r.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&Uo(this.doc,i,new co(o,c[i].to()),Y)}}})),getTokenAt:function(t,e){return Se(this,t,e)},getLineTokens:function(t,e){return Se(this,ce(t),e,!0)},getTokenTypeAt:function(t){t=ge(this.doc,t);var e,n=Ce(this,ee(this.doc,t.line)),i=0,r=(n.length-1)/2,o=t.ch;if(0==o)e=n[2];else for(;;){var a=i+r>>1;if((a?n[2*a-1]:0)>=o)r=a;else{if(!(n[2*a+1]o&&(t=o,r=!0),i=ee(this.doc,t)}else i=t;return wi(this,i,{top:0,left:0},e||"page",n||r).top+(r?this.doc.height-un(i):0)},defaultTextHeight:function(){return Ii(this.display)},defaultCharWidth:function(){return Pi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,i,r){var o=this.display;t=ki(this,ge(this.doc,t));var a=t.bottom,s=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),o.sizer.appendChild(e),"over"==i)a=t.top;else if("above"==i||"near"==i){var l=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==i||t.bottom+e.offsetHeight>l)&&t.top>e.offsetHeight?a=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=l&&(a=t.bottom),s+e.offsetWidth>c&&(s=c-e.offsetWidth)}e.style.top=a+"px",e.style.left=e.style.right="","right"==r?(s=o.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==r?s=0:"middle"==r&&(s=(o.sizer.clientWidth-e.offsetWidth)/2),e.style.left=s+"px"),n&&lr(this,{left:s,top:a,right:s+e.offsetWidth,bottom:a+e.offsetHeight})},triggerOnKeyDown:jr(ps),triggerOnKeyPress:jr(gs),triggerOnKeyUp:ms,triggerOnMouseDown:jr(Cs),execCommand:function(t){if(es.hasOwnProperty(t))return es[t].call(null,this)},triggerElectric:jr((function(t){Zs(this,t)})),findPosH:function(t,e,n,i){var r=1;e<0&&(r=-1,e=-e);for(var o=ge(this.doc,t),a=0;a0&&s(n.charAt(i-1)))--i;while(r.5||this.options.lineWrapping)&&zi(this),Ct(this,"refresh",this)})),swapDoc:jr((function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),ko(this,t),gi(this),this.display.input.reset(),hr(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,In(this,"swapDoc",this,e),e})),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},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}},Mt(t),t.registerHelper=function(e,i,r){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][i]=r},t.registerGlobalHelper=function(e,i,r,o){t.registerHelper(e,i,o),n[e]._global.push({pred:r,val:o})}}function tl(t,e,n,i,r){var o=e,a=n,s=ee(t,e.line),l=r&&"rtl"==t.direction?-n:n;function c(){var n=e.line+l;return!(n=t.first+t.size)&&(e=new ce(n,e.ch,e.sticky),s=ee(t,n))}function u(o){var a;if("codepoint"==i){var u=s.text.charCodeAt(e.ch+(n>0?0:-1));if(isNaN(u))a=null;else{var d=n>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new ce(e.line,Math.max(0,Math.min(s.text.length,e.ch+n*(d?2:1))),-n)}}else a=r?ts(t.cm,s,e,n):Xa(s,e,n);if(null==a){if(o||!c())return!1;e=$a(r,t.cm,s,e.line,l)}else e=a;return!0}if("char"==i||"codepoint"==i)u();else if("column"==i)u(!0);else if("word"==i||"group"==i)for(var d=null,h="group"==i,p=t.cm&&t.cm.getHelper(e,"wordChars"),f=!0;;f=!1){if(n<0&&!u(!f))break;var m=s.text.charAt(e.ch)||"\n",g=st(m,p)?"w":h&&"\n"==m?"n":!h||/\s/.test(m)?null:"p";if(!h||f||g||(g="s"),d&&d!=g){n<0&&(n=1,u(),e.sticky="after");break}if(g&&(d=g),n>0&&!u(!f))break}var v=Xo(t,e,o,a,!0);return de(o,v)&&(v.hitSide=!0),v}function el(t,e,n,i){var r,o,a=t.doc,s=e.left;if("page"==i){var l=Math.min(t.display.wrapper.clientHeight,H(t).innerHeight||a(t).documentElement.clientHeight),c=Math.max(l-.5*Ii(t.display),3);r=(n>0?e.bottom:e.top)+n*c}else"line"==i&&(r=n>0?e.bottom+3:e.top-3);for(;;){if(o=Mi(t,s,r),!o.outside)break;if(n<0?r<=0:r>=a.height){o.hitSide=!0;break}r+=5*n}return o}var nl=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new W,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function il(t,e){var n=oi(t,e.line);if(!n||n.hidden)return null;var i=ee(t.doc,e.line),r=ni(n,i,e.line),o=vt(i,t.doc.direction),a="left";if(o){var s=mt(o,e.ch);a=s%2?"right":"left"}var l=ui(r.map,e.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function rl(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return!0;return!1}function ol(t,e){return e&&(t.bad=!0),t}function al(t,e,n,i,r){var o="",a=!1,s=t.doc.lineSeparator(),l=!1;function c(t){return function(e){return e.id==t}}function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function d(t){t&&(u(),o+=t)}function h(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void d(n);var o,p=e.getAttribute("cm-marker");if(p){var f=t.findMarks(ce(i,0),ce(r+1,0),c(+p));return void(f.length&&(o=f[0].find(0))&&d(ne(t.doc,o.from,o.to).join(s)))}if("false"==e.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;m&&u();for(var g=0;g=e.display.viewTo||o.line=e.display.viewFrom&&il(e,r)||{node:l[0].measure.map[2],offset:0},u=o.linei.firstLine()&&(a=ce(a.line-1,ee(i.doc,a.line-1).length)),s.ch==ee(i.doc,s.line).text.length&&s.liner.viewTo-1)return!1;a.line==r.viewFrom||0==(t=Hi(i,a.line))?(e=oe(r.view[0].line),n=r.view[0].node):(e=oe(r.view[t].line),n=r.view[t-1].node.nextSibling);var l,c,u=Hi(i,s.line);if(u==r.view.length-1?(l=r.viewTo-1,c=r.lineDiv.lastChild):(l=oe(r.view[u+1].line)-1,c=r.view[u+1].node.previousSibling),!n)return!1;var d=i.doc.splitLines(al(i,n,c,e,l)),h=ne(i.doc,ce(e,0),ce(l,ee(i.doc,l).text.length));while(d.length>1&&h.length>1)if(tt(d)==tt(h))d.pop(),h.pop(),l--;else{if(d[0]!=h[0])break;d.shift(),h.shift(),e++}var p=0,f=0,m=d[0],g=h[0],v=Math.min(m.length,g.length);while(pa.ch&&y.charCodeAt(y.length-f-1)==b.charCodeAt(b.length-f-1))p--,f++;d[d.length-1]=y.slice(0,y.length-f).replace(/^\u200b+/,""),d[0]=d[0].slice(p).replace(/\u200b+$/,"");var x=ce(e,p),C=ce(l,h.length?tt(h).length-f:0);return d.length>1||d[0]||ue(x,C)?(la(i.doc,d,x,C,"+input"),!0):void 0},nl.prototype.ensurePolled=function(){this.forceCompositionEnd()},nl.prototype.reset=function(){this.forceCompositionEnd()},nl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},nl.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()}),80))},nl.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||Rr(this.cm,(function(){return qi(t.cm)}))},nl.prototype.setUneditable=function(t){t.contentEditable="false"},nl.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Fr(this.cm,Ks)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},nl.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},nl.prototype.onContextMenu=function(){},nl.prototype.resetPosition=function(){},nl.prototype.needsContentAttribute=!0;var cl=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new W,this.hasSelection=!1,this.composing=null,this.resetting=!1};function ul(t,e){if(e=e?U(e):{},e.value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=I(B(t));e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function i(){t.value=s.getValue()}var r;if(t.form&&(bt(t.form,"submit",i),!e.leaveSubmitMethodAlone)){var o=t.form;r=o.submit;try{var a=o.submit=function(){i(),o.submit=r,o.submit(),o.submit=a}}catch(l){}}e.finishInit=function(n){n.save=i,n.getTextArea=function(){return t},n.toTextArea=function(){n.toTextArea=isNaN,i(),t.parentNode.removeChild(n.getWrapperElement()),t.style.display="",t.form&&(xt(t.form,"submit",i),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=r))}},t.style.display="none";var s=qs((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),e);return s}function dl(t){t.off=xt,t.on=bt,t.wheelEventPixels=ao,t.Doc=Ta,t.splitLines=zt,t.countColumn=G,t.findColumn=J,t.isWordChar=at,t.Pass=K,t.signal=Ct,t.Line=pn,t.changeEnd=po,t.scrollbarModel=Ar,t.Pos=ce,t.cmpPos=ue,t.modes=Gt,t.mimeModes=Wt,t.resolveMode=Kt,t.getMode=Yt,t.modeExtensions=Zt,t.extendMode=Qt,t.copyState=Jt,t.startState=$t,t.innerMode=Xt,t.commands=es,t.keyMap=Ua,t.keyName=Ya,t.isModifierKey=_a,t.lookupKey=Va,t.normalizeKeyMap=Wa,t.StringStream=te,t.SharedTextMarker=xa,t.TextMarker=ba,t.LineWidget=ma,t.e_preventDefault=Tt,t.e_stopPropagation=St,t.e_stop=Ot,t.addClass=P,t.contains=L,t.rmClass=T,t.keyNames=za}cl.prototype.init=function(t){var e=this,n=this,i=this.cm;this.createField(t);var r=this.textarea;function o(t){if(!kt(i,t)){if(i.somethingSelected())_s({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var e=Qs(i);_s({lineWise:!0,text:e.text}),"cut"==t.type?i.setSelections(e.ranges,null,Y):(n.prevInput="",r.value=e.text.join("\n"),F(r))}"cut"==t.type&&(i.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),g&&(r.style.width="0px"),bt(r,"input",(function(){a&&s>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()})),bt(r,"paste",(function(t){kt(i,t)||Ys(t,i)||(i.state.pasteIncoming=+new Date,n.fastPoll())})),bt(r,"cut",o),bt(r,"copy",o),bt(t.scroller,"paste",(function(e){if(!Yn(t,e)&&!kt(i,e)){if(!r.dispatchEvent)return i.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=e.clipboardData,r.dispatchEvent(o)}})),bt(t.lineSpace,"selectstart",(function(e){Yn(t,e)||Tt(e)})),bt(r,"compositionstart",(function(){var t=i.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:i.markText(t,i.getCursor("to"),{className:"CodeMirror-composing"})}})),bt(r,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},cl.prototype.createField=function(t){this.wrapper=Xs(),this.textarea=this.wrapper.firstChild;var e=this.cm.options;Js(this.textarea,e.spellcheck,e.autocorrect,e.autocapitalize)},cl.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},cl.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,i=Yi(t);if(t.options.moveInputWithCursor){var r=ki(t,n.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),a=e.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,r.top+a.top-o.top)),i.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,r.left+a.left-o.left))}return i},cl.prototype.showSelection=function(t){var e=this.cm,n=e.display;N(n.cursorDiv,t.cursors),N(n.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},cl.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing&&t)){var e=this.cm;if(this.resetting=!0,e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&F(this.textarea),a&&s>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},cl.prototype.getField=function(){return this.textarea},cl.prototype.supportsTouch=function(){return!1},cl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||I(B(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(t){}},cl.prototype.blur=function(){this.textarea.blur()},cl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},cl.prototype.receivedFocus=function(){this.slowPoll()},cl.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},cl.prototype.fastPoll=function(){var t=!1,e=this;function n(){var i=e.poll();i||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))}e.pollingFast=!0,e.polling.set(20,n)},cl.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,i=this.prevInput;if(this.contextMenuPending||this.resetting||!e.state.focused||Bt(n)&&!i&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var r=n.value;if(r==i&&!e.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===r||b&&/[\uf700-\uf7ff]/.test(r))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=r.charCodeAt(0);if(8203!=o||i||(i="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}var l=0,c=Math.min(i.length,r.length);while(l1e3||r.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=r,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},cl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},cl.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},cl.prototype.onContextMenu=function(t){var e=this,n=e.cm,i=n.display,r=e.textarea;e.contextMenuPending&&e.contextMenuPending();var o=Bi(n,t),c=i.scroller.scrollTop;if(o&&!h){var u=n.options.resetSelectionOnContextMenu;u&&-1==n.doc.sel.contains(o)&&Fr(n,_o)(n.doc,ho(o),Y);var d,p=r.style.cssText,f=e.wrapper.style.cssText,m=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",r.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-m.top-5)+"px; left: "+(t.clientX-m.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(d=r.ownerDocument.defaultView.scrollY),i.input.focus(),l&&r.ownerDocument.defaultView.scrollTo(null,d),i.input.reset(),n.somethingSelected()||(r.value=e.prevInput=" "),e.contextMenuPending=y,i.selForContextMenu=n.doc.sel,clearTimeout(i.detectingSelectAll),a&&s>=9&&v(),A){Ot(t);var g=function(){xt(window,"mouseup",g),setTimeout(y,20)};bt(window,"mouseup",g)}else setTimeout(y,50)}function v(){if(null!=r.selectionStart){var t=n.somethingSelected(),o="​"+(t?r.value:"");r.value="⇚",r.value=o,e.prevInput=t?"":"​",r.selectionStart=1,r.selectionEnd=o.length,i.selForContextMenu=n.doc.sel}}function y(){if(e.contextMenuPending==y&&(e.contextMenuPending=!1,e.wrapper.style.cssText=f,r.style.cssText=p,a&&s<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=c),null!=r.selectionStart)){(!a||a&&s<9)&&v();var t=0,o=function(){i.selForContextMenu==n.doc.sel&&0==r.selectionStart&&r.selectionEnd>0&&"​"==e.prevInput?Fr(n,ta)(n):t++<10?i.detectingSelectAll=setTimeout(o,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(o,200)}}},cl.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t,this.textarea.readOnly=!!t},cl.prototype.setUneditable=function(){},cl.prototype.needsContentAttribute=!1,zs(qs),$s(qs);var hl="iter insert remove copy getEditor constructor".split(" ");for(var pl in Ta.prototype)Ta.prototype.hasOwnProperty(pl)&&V(hl,pl)<0&&(qs.prototype[pl]=function(t){return function(){return t.apply(this.doc,arguments)}}(Ta.prototype[pl]));return Mt(Ta),qs.inputStyles={textarea:cl,contenteditable:nl},qs.defineMode=function(t){qs.defaults.mode||"null"==t||(qs.defaults.mode=t),Vt.apply(this,arguments)},qs.defineMIME=_t,qs.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),qs.defineMIME("text/plain","null"),qs.defineExtension=function(t,e){qs.prototype[t]=e},qs.defineDocExtension=function(t,e){Ta.prototype[t]=e},qs.fromTextArea=ul,dl(qs),qs.version="5.65.16",qs}))},"56d3":function(t,e,n){t.exports=n.p+"img/ziyuan_4.svg"},5706:function(t,e,n){"use strict";var i="[a-zA-Z_:][a-zA-Z0-9:._-]*",r="[^\"'=<>`\\x00-\\x20]+",o="'[^']*'",a='"[^"]*"',s="(?:"+r+"|"+o+"|"+a+")",l="(?:\\s+"+i+"(?:\\s*=\\s*"+s+")?)",c="<[A-Za-z][A-Za-z0-9\\-]*"+l+"*\\s*\\/?>",u="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",d="\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e",h="<[?][\\s\\S]*?[?]>",p="]*>",f="",m=new RegExp("^(?:"+c+"|"+u+"|"+d+"|"+h+"|"+p+"|"+f+")"),g=new RegExp("^(?:"+c+"|"+u+")");t.exports.HTML_TAG_RE=m,t.exports.HTML_OPEN_CLOSE_TAG_RE=g},5762:function(t,e,n){t.exports=n.p+"img/dark.webp"},"577e6":function(t,e,n){t.exports=n.p+"img/changyongziyuan.svg"},"57a5":function(t,e,n){var i=n("91e9"),r=i(Object.keys,Object);t.exports=r},"585a":function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n("c8ba"))},5865:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return d8}));var i=n("6f27"),r=n("703f"),o=n("b923"),a=n("6ffb"),s=n("e3da"),l=n("442c"),c=n("72a8"),u=n("f201"),d=function(t,e){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},d(t,e)};function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var p=function(){return p=Object.assign||function(t){for(var e,n=1,i=arguments.length;n=0&&ift}function gt(t,e){var n="https://www.google-analytics.com/collect",i=location.hostname,r="event",o="use",a="TOAST UI "+t+" for "+i+": Statistics",s=window.localStorage.getItem(a);(ht(window.tui)||!1!==window.tui.usageStatistics)&&(s&&!mt(s)||(window.localStorage.setItem(a,(new Date).getTime()),setTimeout((function(){"interactive"!==document.readyState&&"complete"!==document.readyState||pt(n,{v:1,t:r,tid:e,cid:i,dp:i,dh:t,el:t,ec:o})}),1e3)))}var vt=gt;/Mac/.test(navigator.platform);var yt=/[\u0020]+/g,bt=/[>(){}[\]+-.!#|]/g,wt=/<([a-zA-Z_][a-zA-Z0-9\-._]*)(\s|[^\\>])*\/?>|<(\/)([a-zA-Z_][a-zA-Z0-9\-._]*)\s*\/?>||<([a-zA-Z_][a-zA-Z0-9\-.:/]*)>/g,xt=/\\[!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~\\]/g,Ct=/[*_~`]/g,kt=/!\[.*\]\(.*\)/g,At=/[[\]]/g,Et=/(?:^|[^\\])\\(?!\\)/g,Mt='[&<>"]',Tt=new RegExp(Mt,"g");function St(t){switch(t){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";default:return t}}function Nt(t){return Tt.test(t)?t.replace(Tt,St):t}function Ot(){vt("editor","UA-129966929-1")}function Dt(t,e){return-1!==t.indexOf(e)}var Lt=["rel","target","hreflang","type"],It={codeblock:/(^ {4}[^\n]+\n*)+/,thematicBreak:/^ *((\* *){3,}|(- *){3,} *|(_ *){3,}) */,atxHeading:/^(#{1,6}) +[\s\S]+/,seTextheading:/^([^\n]+)\n *(=|-){2,} */,blockquote:/^( *>[^\n]+.*)+/,list:/^ *(\*+|-+|\d+\.) [\s\S]+/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? */,link:/!?\[.*\]\(.*\)/,reflink:/!?\[.*\]\s*\[([^\]]*)\]/,verticalBar:/\u007C/,fencedCodeblock:/^((`|~){3,})/};function Pt(t){if(!t)return null;var e={};return Lt.forEach((function(n){B(t[n])||(e[n]=t[n])})),e}function Rt(t,e){for(var n="",i=0;it[0]&&n=e&&t<=n}function Wt(t){return"object"===typeof t&&null!==t}function Vt(t,e){var n=p({},t);return t&&e&&Object.keys(e).forEach((function(t){Wt(n[t])?Array.isArray(e[t])?n[t]=_t(e[t]):n.hasOwnProperty(t)?n[t]=Vt(n[t],e[t]):n[t]=Kt(e[t]):n[t]=e[t]})),n}function _t(t){return t.map((function(t){return Wt(t)?Array.isArray(t)?_t(t):Kt(t):t}))}function Kt(t){var e=Object.keys(t);return e.length?e.reduce((function(e,n){return Wt(t[n])?e[n]=Array.isArray(t[n])?_t(t[n]):Kt(t[n]):e[n]=t[n],e}),{}):t}function Yt(t,e){return void 0===e&&(e={}),Object.keys(e).forEach((function(n){t.hasOwnProperty(n)&&"object"===typeof t[n]?Array.isArray(e[n])?t[n]=e[n]:Yt(t[n],e[n]):t[n]=e[n]})),t}function Zt(t,e){return t>e?[e,t]:[t,e]}var Qt=E;function Jt(t){var e;try{e=Array.prototype.slice.call(t)}catch(n){e=[],Qt(t,(function(t){e.push(t)}))}return e}var Xt=Jt;function $t(t,e){var n=t.nodes.paragraph;return e?n.create(null,x(e)?t.text(e):e):n.createAndFill()}function te(t,e,n){return t.text(e,n)}function ee(t,e,n){void 0===n&&(n=e);var i=t.doc.content.size,r=i>0?i-1:1;return a["TextSelection"].create(t.doc,Math.min(e,r),Math.min(n,r))}function ne(t,e,n){var i=e.pos;return t.replaceWith(i,i,$t(n)),t.setSelection(ee(t,i+1))}function ie(t){for(var e=t.state,n=t.from,r=t.startIndex,o=t.endIndex,a=t.createText,s=e.tr,l=e.doc,c=e.schema,u=r;u<=o;u+=1){var d=l.child(u),h=d.nodeSize,p=d.textContent,f=d.content,m=a(p),g=m?te(c,m):i["Fragment"].empty,v=s.mapping.map(n),y=v+f.size;s.replaceWith(v,y,g),n+=h}return s}function re(t,e,n,i){var r=n.length;t.split(e).delete(e-r,e).insert(t.mapping.map(e),i).setSelection(ee(t,t.mapping.map(e)-r))}function oe(t){return t.sourcepos[0][0]}function ae(t){return t.sourcepos[1][0]}function se(t){return t.sourcepos[0][1]}function le(t){return t.sourcepos[1][1]}function ce(t){var e=t.type;return"htmlBlock"===e||"htmlInline"===e}function ue(t){var e=t.type;return"strike"===e||"strong"===e||"emph"===e||"code"===e||"link"===e||"image"===e}function de(t){return t&&"codeBlock"===t.type}function he(t){return t&&("item"===t.type||"list"===t.type)}function pe(t){return he(t)&&"ordered"===t.listData.type}function fe(t){return he(t)&&"ordered"!==t.listData.type}function me(t){return t&&("tableCell"===t.type||"tableDelimCell"===t.type)}function ge(t){switch(t.type){case"code":case"text":case"emph":case"strong":case"strike":case"link":case"image":case"htmlInline":case"linebreak":case"softbreak":case"customInline":return!0;default:return!1}}function ve(t,e,n){void 0===n&&(n=!0),t=n?t:t.parent;while(t&&"document"!==t.type){if(e(t))return t;t=t.parent}return null}function ye(t,e,n){void 0===n&&(n=!0),t=n?t:t.parent;while(t&&"document"!==t.type)e(t),t=t.parent}function be(t,e){return[t[0],t[1]+e]}function we(t,e){return[t[0],e]}function xe(t){var e=t.firstChild.literal;switch(t.type){case"emph":return"*"+e+"*";case"strong":return"**"+e+"**";case"strike":return"~~"+e+"~~";case"code":return"`"+e+"`";case"link":case"image":var n=t,i=n.destination,r=n.title,o="link"===t.type?"":"!";return o+"["+e+"]("+i+(r?' "'+r+'"':"")+")";default:return null}}function Ce(t){switch(t.type){case"document":case"blockQuote":case"list":case"item":case"paragraph":case"heading":case"emph":case"strong":case"strike":case"link":case"image":case"table":case"tableHead":case"tableBody":case"tableRow":case"tableCell":case"tableDelimRow":case"customInline":return!0;default:return!1}}function ke(t){var e=[],n=t.walker(),i=null;while(i=n.next()){var r=i.node;"text"===r.type&&e.push(r.literal)}return e.join("")}var Ae=[],Ee={},Me=/\$\$widget\d+\s/;function Te(t){var e=t.search(Me);if(-1!==e){var n=t.substring(e),i=n.replace(Me,"").replace("$$","");t=t.substring(0,e),t+=Te(i)}return t}function Se(t,e){return"$$"+t+" "+e+"$$"}function Ne(t,e){var n=Ee[t],i=n.rule,r=n.toDOM,o=Te(e).match(i);return o&&(e=o[0]),r(e)}function Oe(){return Ae}function De(t){Ae=t,Ae.forEach((function(t,e){Ee["widget"+e]=t}))}function Le(t,e,n,i){return t.concat(Ie(e,n,i))}function Ie(t,e,n){void 0===n&&(n=0);var i=[],r=(Ae[n]||{}).rule,o=n+1;if(t=Te(t),r&&r.test(t)){var a=void 0;while(-1!==(a=t.search(r))){var s=t.substring(0,a);s&&(i=Le(i,s,e,o)),t=t.substring(a);var l=t.match(r)[0],c="widget"+n;i.push(e.nodes.widget.create({info:c},e.text(Se(c,l)))),t=t.substring(l.length)}t&&(i=Le(i,t,e,o))}else t&&(i=n-1)}var He=Be,qe=j,Ue=Xt,Ge=Element.prototype,We=Ge.matches||Ge.webkitMatchesSelector||Ge.mozMatchesSelector||Ge.msMatchesSelector||function(t){var e=this.document||this.ownerDocument;return qe(this,Ue(e.querySelectorAll(t)))>-1};function Ve(t,e){return We.call(t,e)}var _e=Ve,Ke="[A-Za-z][A-Za-z0-9-]*",Ye="[a-zA-Z_:][a-zA-Z0-9:._-]*",Ze="[^\"'=<>`\\x00-\\x20]+",Qe="'[^']*'",Je='"[^"]*"',Xe="(?:"+Ze+"|"+Qe+"|"+Je+")",$e="(?:\\s*=\\s*"+Xe+")",tn="(?:\\s+"+Ye+$e+"?)",en="<("+Ke+")("+tn+")*\\s*/?>",nn="]",rn="(?:"+en+"|"+nn+")",on=new RegExp("^"+rn,"i"),an=//i,sn=/|/,ln="

";function cn(t,e,n){var i=parseInt(t.left,10),r=parseInt(t.top,10),o=parseInt(t.width,10)+parseInt(t.paddingLeft,10)+parseInt(t.paddingRight,10),a=parseInt(t.height,10)+parseInt(t.paddingTop,10)+parseInt(t.paddingBottom,10);return e>=i&&e<=i+o&&n>=r&&n<=r+a}var un="toastui-editor-";function dn(){for(var t=[],e=0;e<\/p>/gi,"

"),n=new RegExp(rn,"ig"),i=e.match(n);return null===i||void 0===i||i.forEach((function(t,n){if(an.test(t)){var r=ln;if(n){var o=i[n-1],a=o.match(en);if(a&&!/br/i.test(a[1])){var s=a[1];r="<"+s+">"}}e=e.replace(an,r)}})),e}function Tn(t){var e=//g,n=/ class="ProseMirror-trailingBreak"/g,i=t;return i=i.replace(e,""),i=i.replace(n,""),i}var Sn=new a["PluginKey"]("widget"),Nn=5,On=function(){function t(t,e){var n=this;this.popup=null,this.removeWidget=function(){n.popup&&(n.rootEl.removeChild(n.popup),n.popup=null)},this.rootEl=t.dom.parentElement,this.eventEmitter=e,this.eventEmitter.listen("blur",this.removeWidget),this.eventEmitter.listen("loadUI",(function(){n.rootEl=kn(t.dom.parentElement,"."+dn("defaultUI"))})),this.eventEmitter.listen("removePopupWidget",this.removeWidget)}return t.prototype.update=function(t){var e=Sn.getState(t.state);if(this.removeWidget(),e){var n=e.node,i=e.style,r=t.coordsAtPos(e.pos),o=r.top,a=r.left,s=r.bottom,l=s-o,c=this.rootEl.getBoundingClientRect(),u=o-c.top;P(n,{opacity:"0"}),this.rootEl.appendChild(n),P(n,{position:"absolute",left:a-c.left+Nn+"px",top:("bottom"===i?u+l-Nn:u-l)+"px",opacity:"1"}),this.popup=n,t.focus()}},t.prototype.destroy=function(){this.eventEmitter.removeEventHandler("blur",this.removeWidget)},t}();function Dn(t){return new a["Plugin"]({key:Sn,state:{init:function(){return null},apply:function(t){return t.getMeta("widget")}},view:function(e){return new On(e,t)}})}function Ln(t){t.listen("addImageBlobHook",(function(t,e){var n=new FileReader;n.onload=function(t){var n=t.target;return e(n.result)},n.readAsDataURL(t)}))}function In(t,e,n){var i=function(n,i){t.emit("command","addImage",{imageUrl:n,altText:i||e.name||"image"})};t.emit("addImageBlobHook",e,i,n)}function Pn(t){var e=Xt(t).filter((function(t){var e=t.type;return-1!==e.indexOf("image")}));if(1===e.length){var n=e[0];if(n)return n.getAsFile()}return null}function Rn(t){var e=t.eventEmitter;return new a["Plugin"]({props:{handleDOMEvents:{drop:function(t,n){var i,r=null===(i=n.dataTransfer)||void 0===i?void 0:i.files;return r&&E(r,(function(t){return-1===t.type.indexOf("image")||(n.preventDefault(),n.stopPropagation(),In(e,t,n.type),!1)})),!0}}}})}var Fn=function(){function t(){}return Object.defineProperty(t.prototype,"type",{get:function(){return"node"},enumerable:!1,configurable:!0}),t.prototype.setContext=function(t){this.context=t},t}();function jn(t){var e=document.createElement("span"),n=Ne(t.attrs.info,t.textContent);return e.className="tui-widget",e.appendChild(n),{dom:e}}function zn(t){return"widget"===t.type.name}var Bn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"widget"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{attrs:{info:{default:null}},group:"inline",inline:!0,content:"text*",selectable:!1,atom:!0,toDOM:function(){return["span",{class:"tui-widget"},0]},parseDOM:[{tag:"span.tui-widget",getAttrs:function(t){var e=t.textContent,n=e.match(/\$\$(widget\d+)/),i=n[1];return{info:i}}}]}},enumerable:!1,configurable:!0}),e}(Fn),Hn=function(){function t(t){this.timer=null,this.el=document.createElement("div"),this.el.className="toastui-editor",this.eventEmitter=t,this.placeholder={text:""}}return t.prototype.createState=function(){return a["EditorState"].create({schema:this.schema,plugins:this.createPlugins()})},t.prototype.initEvent=function(){var t=this,e=t.eventEmitter,n=t.view,i=t.editorType;n.dom.addEventListener("focus",(function(){return e.emit("focus",i)})),n.dom.addEventListener("blur",(function(){return e.emit("blur",i)}))},t.prototype.emitChangeEvent=function(t){this.eventEmitter.emit("caretChange",this.editorType),t.docChanged&&this.eventEmitter.emit("change",this.editorType)},Object.defineProperty(t.prototype,"defaultPlugins",{get:function(){var t=this.createInputRules(),e=f(f([],this.keymaps),[Object(s["keymap"])(p({"Shift-Enter":l["a"].Enter},l["a"])),Object(u["a"])(),Fe(this.placeholder),Dn(this.eventEmitter),Rn(this.context)]);return t?e.concat(t):e},enumerable:!1,configurable:!0}),t.prototype.createInputRules=function(){var t=Oe(),e=t.map((function(t){var e=t.rule;return new c["InputRule"](e,(function(t,n,i,r){var o=t.schema,a=t.tr,s=t.doc,l=n.input.match(new RegExp(e,"g")),c=s.resolve(i),u=c.parent,d=0;if(zn(u)&&(u=c.node(c.depth-1)),u.forEach((function(t){return zn(t)&&(d+=1)})),l.length>d){var h=Ut(l),p=Ie(h,o);return a.replaceWith(r-h.length+1,r,p)}return null}))}));return e.length?Object(c["inputRules"])({rules:e}):null},t.prototype.clearTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=null)},t.prototype.createSchema=function(){return new i["Schema"]({nodes:this.specs.nodes,marks:this.specs.marks})},t.prototype.createKeymaps=function(t){var e=Re(),n=e.undo,i=e.redo,r=this.specs.keymaps(t),o={"Mod-z":n(),"Shift-Mod-z":i()};return t?r.concat(Object(s["keymap"])(o)):r},t.prototype.createCommands=function(){return this.specs.commands(this.view)},t.prototype.createPluginProps=function(){var t=this;return this.extraPlugins.map((function(e){return e(t.eventEmitter)}))},t.prototype.focus=function(){var t=this;this.clearTimer(),this.timer=setTimeout((function(){t.view.focus(),t.view.dispatch(t.view.state.tr.scrollIntoView())}))},t.prototype.blur=function(){this.view.dom.blur()},t.prototype.destroy=function(){var t=this;this.clearTimer(),this.view.destroy(),Object.keys(this).forEach((function(e){delete t[e]}))},t.prototype.moveCursorToStart=function(t){var e=this.view.state.tr;this.view.dispatch(e.setSelection(ee(e,1)).scrollIntoView()),t&&this.focus()},t.prototype.moveCursorToEnd=function(t){var e=this.view.state.tr;this.view.dispatch(e.setSelection(ee(e,e.doc.content.size-1)).scrollIntoView()),t&&this.focus()},t.prototype.setScrollTop=function(t){this.view.dom.scrollTop=t},t.prototype.getScrollTop=function(){return this.view.dom.scrollTop},t.prototype.setPlaceholder=function(t){this.placeholder.text=t,this.view.dispatch(this.view.state.tr.scrollIntoView())},t.prototype.setHeight=function(t){P(this.el,{height:t+"px"})},t.prototype.setMinHeight=function(t){P(this.el,{minHeight:t+"px"})},t.prototype.getElement=function(){return this.el},t}();function qn(t){return t instanceof Function}var Un=qn,Gn=["Enter","Shift-Enter","Mod-Enter","Tab","Shift-Tab","Delete","Backspace","Mod-Delete","Mod-Backspace","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Mod-d","Mod-D","Alt-ArrowUp","Alt-ArrowDown"];function Wn(t,e,n){return t.focus(),e(n)(t.state,t.dispatch,t)}var Vn=function(){function t(t){this.specs=t}return Object.defineProperty(t.prototype,"nodes",{get:function(){return this.specs.filter((function(t){return"node"===t.type})).reduce((function(t,e){var n,i=e.name,r=e.schema;return p(p({},t),(n={},n[i]=r,n))}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"marks",{get:function(){return this.specs.filter((function(t){return"mark"===t.type})).reduce((function(t,e){var n,i=e.name,r=e.schema;return p(p({},t),(n={},n[i]=r,n))}),{})},enumerable:!1,configurable:!0}),t.prototype.commands=function(t,e){var n=this.specs.filter((function(t){var e=t.commands;return e})).reduce((function(e,n){var i={},r=n.commands();return Un(r)?i[n.name]=function(e){return Wn(t,r,e)}:Object.keys(r).forEach((function(e){i[e]=function(n){return Wn(t,r[e],n)}})),p(p({},e),i)}),{}),i=Re();return Object.keys(i).forEach((function(e){n[e]=function(n){return Wn(t,i[e],n)}})),e&&Object.keys(e).forEach((function(i){n[i]=function(n){return Wn(t,e[i],n)}})),n},t.prototype.keymaps=function(t){var e=this.specs.filter((function(t){return t.keymaps})).map((function(t){return t.keymaps()}));return e.map((function(e){return t||Object.keys(e).forEach((function(t){Dt(Gn,t)||delete e[t]})),Object(s["keymap"])(e)}))},t.prototype.setContext=function(t){this.specs.forEach((function(e){e.setContext(t)}))},t}();function _n(t){var e=t.from,n=t.to;return t instanceof a["AllSelection"]?[e+1,n-1]:[e,n]}function Kn(t){return t.index(0)+1}function Yn(t,e,n){void 0===n&&(n=1);var i=0;return t.forEach((function(t,r){zn(t)&&r+2 ?/,Xi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"blockQuote"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:hn("block-quote")},0]}}},enumerable:!1,configurable:!0}),e.prototype.createBlockQuoteText=function(t,e){return e?t.replace(Ji,"").trim():"> "+t.trim()},e.prototype.extendBlockQuote=function(){var t=this;return function(e,n){var i=e.selection,r=e.doc,o=e.tr,a=e.schema,s=Xn(i),l=s.endFromOffset,c=s.endToOffset,u=s.endIndex,d=s.to,h=Qi(r,u),p=Ji.test(h);if(p&&d>l&&i.empty){var f=!h.replace(Ji,"").trim();if(f)o.deleteRange(l,c).split(o.mapping.map(c));else{var m=h.slice(d-l).trim(),g=te(a,t.createBlockQuoteText(m));re(o,c,m,g)}return n(o),!0}return!1}},e.prototype.commands=function(){var t=this;return function(){return function(e,n){var i=e.selection,r=e.doc,o=Xn(i),a=o.startFromOffset,s=o.endToOffset,l=o.startIndex,c=o.endIndex,u=Ji.test(Qi(r,l)),d=ie({state:e,startIndex:l,endIndex:c,from:a,createText:function(e){return t.createBlockQuoteText(e,u)}});return n(d.setSelection(ee(d,d.mapping.map(s)))),!0}}},e.prototype.keymaps=function(){var t=this.commands()();return{"alt-q":t,"alt-Q":t,Enter:this.extendBlockQuote()}},e}(Yi),$i=/(^\s*)([-*+] |[\d]+\. )/,tr=/(^\s*)([\d])+\.( \[[ xX]])? /,er=/^(\s*)((\d+)([.)]\s(?:\[(?:x|\s)\]\s)?))(.*)/,nr=/(^\s*)([-*+]|[\d]+\.)( \[[ xX]])? /,ir=/^(\s*)([-*+]+(\s(?:\[(?:x|\s)\]\s)?))(.*)/,rr=/(^\s*)([-*+] |[\d]+\. )(\[[ xX]] )/,or=/(^\s*)([-*+])( \[[ xX]]) /;function ar(t){return tr.test(t)?"ordered":"bullet"}function sr(t){var e=0;while(t&&"document"!==t.type)"list"===t.type&&(e+=1),t=t.parent;return e}function lr(t,e,n,i){var r=t.getLineTexts(),o=r.length,a=[],s=e;while(i?s1){s=i?s+1:s-1;var l=t.findFirstNodeAtLine(s),c=sr(l);if(c===n)a.push({line:s,depth:n,mdNode:l});else if(c0;c-=1){var u=e.findFirstNodeAtLine(c),d=Zi(n,c),h=d&&!!ve(u,(function(t){return he(t)})),p=er.exec(Zi(n,c));if(!p&&!h)break;if(p||!h){var f=p,m=f[1],g=f[3];if(!m){a=Number(g),s=c;break}}else l+=1}var v=a+i-s-l,y=[{text:v+". "+o,line:i}];return{changedResults:y}},task:function(t){var e=t.doc,n=t.line,i=Zi(e,n),r=[{text:"* [ ] "+i,line:n}];return{changedResults:r}}},gr={bullet:function(t){var e=t.line,n=t.doc,i=Zi(n,e),r=ir.exec(i),o=r[1],a=r[2];return{listSyntax:""+o+a}},ordered:function(t){var e=t.toastMark,n=t.line,i=t.mdNode,r=t.doc,o=sr(i),a=Zi(r,n),s=er.exec(a),l=s[1],c=s[3],u=s[4],d=Number(c)+1,h=""+l+d+u,f=lr(e,n,o,!0),m=f.filter((function(t){var e=er.exec(Zi(r,t.line));return e&&e[1].length===l.length&&!!ve(t.mdNode,(function(t){return pe(t)}))}));return p({listSyntax:h},hr(r,m,"ordered",d))}};function vr(t,e,n,i,r){var o=[],a=Zi(t,n),s=er.exec(a);while(s){var l=s[1],c=s[4],u=s[5],d=l.length;if(d===r)o.push(te(e,""+l+i+c+u)),i+=1,n+=1;else if(d>r){var h=vr(t,e,n,1,d);n=h.line,o=o.concat(h.nodes)}if(dt.childCount)break;a=Zi(t,n),s=er.exec(a)}return{nodes:o,line:n}}var yr=/(^\s{1,4})(.*)/;function br(t,e,n){return t0){var u=i.child(c-1),d=u.nodeSize,h=u.textContent;return n.delete(s-d,s).split(n.mapping.map(l)).insert(n.mapping.map(l),te(o,h)),e(n),!0}return!1}},e.prototype.commands=function(){return{indent:this.indent(),outdent:this.outdent()}},e.prototype.keymaps=function(){return{Tab:this.indent(!0)(),"Shift-Tab":this.outdent(!0)(),"Mod-d":this.deleteLines(),"Mod-D":this.deleteLines(),"Alt-ArrowUp":this.moveUp(),"Alt-ArrowDown":this.moveDown()}},e}(Fn),kr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"text"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{group:"inline"}},enumerable:!1,configurable:!0}),e}(Fn),Ar=/^#{1,6}\s/,Er=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"heading"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{attrs:{level:{default:1},seText:{default:!1}},toDOM:function(t){var e=t.attrs,n=e.level,i=e.seText,r="heading|heading"+n;return i&&(r+="|delimiter|setext"),["span",{class:hn.apply(void 0,r.split("|"))},0]}}},enumerable:!1,configurable:!0}),e.prototype.createHeadingText=function(t,e,n){var i=e.replace(n,"").trim(),r="";while(t>0)r+="#",t-=1;return r+" "+i},e.prototype.commands=function(){var t=this;return function(e){return function(n,i){var r=e.level,o=Xn(n.selection),a=o.startFromOffset,s=o.endToOffset,l=o.startIndex,c=o.endIndex,u=ie({state:n,from:a,startIndex:l,endIndex:c,createText:function(e){var n=e.match(Ar),i=n?n[0]:"";return t.createHeadingText(r,e,i)}});return i(u.setSelection(ee(u,u.mapping.map(s)))),!0}}},e}(Yi),Mr="```",Tr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"codeBlock"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:hn("code-block")},0]}}},enumerable:!1,configurable:!0}),e.prototype.commands=function(){return function(){return function(t,e){var n=t.selection,i=t.schema,r=t.tr,o=Xn(n),a=o.startFromOffset,s=o.endToOffset,l=te(i,Mr);return r.insert(a,l).split(a+Mr.length),r.split(r.mapping.map(s)).insert(r.mapping.map(s),l),e(r.setSelection(ee(r,r.mapping.map(s)-(Mr.length+2)))),!0}}},e.prototype.keepIndentation=function(){var t=this;return function(e,n){var i=e.selection,r=e.tr,o=e.doc,a=e.schema,s=t.context.toastMark,l=Xn(i),c=l.startFromOffset,u=l.endToOffset,d=l.endIndex,h=l.from,p=l.to,f=Qi(o,d);if(h===p&&f.trim()){var m=f.match(/^\s+/),g=s.findFirstNodeAtLine(d+1);if(de(g)&&m){var v=m[0],y=f.slice(p-c),b=te(a,v+y);return re(r,u,y,b),n(r),!0}}return!1}},e.prototype.keymaps=function(){var t=this.commands()();return{"Shift-Mod-p":t,"Shift-Mod-P":t,Enter:this.keepIndentation()}},e}(Yi),Sr=/\||\s/g;function Nr(t){return[Dr(t),Dr(t,!0)]}function Or(t,e){for(var n=[],i=0;i0&&(e+="\n")})),e},e.prototype.setSelection=function(t,e){void 0===e&&(e=t);var n=this.view.state.tr,i=Jn(n.doc,t,e),r=i[0],o=i[1];this.view.dispatch(n.setSelection(ee(n,r,o)).scrollIntoView())},e.prototype.replaceSelection=function(t,e,n){var r,o=this.view.state,a=o.tr,s=o.schema,l=o.doc,c=t.split(uo),u=c.map((function(t){return $t(s,Ie(t,s))})),d=new i["Slice"](i["Fragment"].from(u),1,1);if(this.focus(),e&&n){var h=Jn(l,e,n),p=h[0],f=h[1];r=a.replaceRange(p,f,d)}else r=a.replaceSelection(d);this.view.dispatch(r.scrollIntoView())},e.prototype.deleteSelection=function(t,e){var n,i=this.view.state,r=i.tr,o=i.doc;if(t&&e){var a=Jn(o,t,e),s=a[0],l=a[1];n=r.deleteRange(s,l)}else n=r.deleteSelection();this.view.dispatch(n.scrollIntoView())},e.prototype.getSelectedText=function(t,e){var n=this.view.state,i=n.doc,r=n.selection,o=r.from,a=r.to;if(t&&e){var s=Jn(i,t,e);o=s[0],a=s[1]}return i.textBetween(o,a,"\n")},e.prototype.getSelection=function(){var t=this.view.state.selection,e=t.from,n=t.to;return Zn(this.view.state.tr.doc,e,n)},e.prototype.setMarkdown=function(t,e){void 0===e&&(e=!0);var n=t.split(uo),i=this.view.state,r=i.tr,o=i.doc,a=i.schema,s=n.map((function(t){return $t(a,Ie(t,a))}));this.view.dispatch(r.replaceWith(0,o.content.size,s)),e&&this.moveCursorToEnd(!0)},e.prototype.addWidget=function(t,e,n){var i=this.view.state,r=i.tr,o=i.doc,a=i.selection,s=n?Jn(o,n,n)[0]:a.to;this.view.dispatch(r.setMeta("widget",{pos:s,node:t,style:e}))},e.prototype.replaceWithWidget=function(t,e,n){var i=this.view.state,r=i.tr,o=i.schema,a=i.doc,s=Jn(a,t,e),l=Ie(n,o);this.view.dispatch(r.replaceWith(s[0],s[1],l))},e.prototype.getRangeInfoOfNode=function(t){var e=this.view.state,n=e.doc,i=e.selection,r=t||Zn(n,i.from)[0],o=this.toastMark.findNodeAtPosition(r);return"text"===o.type&&"paragraph"!==o.parent.type&&(o=o.parent),o.sourcepos[1][1]+=1,{range:o.sourcepos,type:o.type}},e.prototype.getMarkdown=function(){return this.toastMark.getLineTexts().map((function(t){return Te(t)})).join("\n")},e.prototype.getToastMark=function(){return this.toastMark},e}(Hn),po="_feEventKey";function fo(t,e){var n,i=t[po];return i||(i=t[po]={}),n=i[e],n||(n=i[e]=[]),n}var mo=fo,go=x,vo=O,yo=mo;function bo(t,e,n){go(e)?vo(e.split(/\s+/g),(function(e){wo(t,e,n)})):vo(e,(function(e,n){wo(t,n,e)}))}function wo(t,e,n){var i,r=yo(t,e);n?(vo(r,(function(r,o){return n!==r.handler||(xo(t,e,r.wrappedHandler),i=o,!1)})),r.splice(i,1)):(vo(r,(function(n){xo(t,e,n.wrappedHandler)})),r.splice(0,r.length))}function xo(t,e,n){"removeEventListener"in t?t.removeEventListener(e,n):"detachEvent"in t&&t.detachEvent("on"+e,n)}var Co=bo,ko=x,Ao=O,Eo=mo;function Mo(t,e,n,i){ko(e)?Ao(e.split(/\s+/g),(function(e){To(t,e,n,i)})):Ao(e,(function(e,i){To(t,i,e,n)}))}function To(t,e,n,i){function r(e){n.call(i||t,e||window.event)}"addEventListener"in t?t.addEventListener(e,r):"attachEvent"in t&&t.attachEvent("on"+e,r),So(t,e,n,r)}function So(t,e,n,i){var r=Eo(t,e),o=!1;Ao(r,(function(t){return t.handler!==n||(o=!0,!1)})),o||r.push({handler:n,wrappedHandler:i})}var No=Mo,Oo=function(t,e){return Oo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Oo(t,e)}; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */function Do(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Oo(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Lo=function(){return Lo=Object.assign||function(t){for(var e,n=1,i=arguments.length;n=55296&&o<=57343){if(o>=55296&&o<=56319&&i+1=56320&&a<=57343)){l+=encodeURIComponent(t[i]+t[i+1]),i++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(t[i]);return l}jo.defaultChars=";/?:@&=+$,-_.!~*'()#",jo.componentChars="-_.!~*'()";var zo=jo,Bo={},Ho={},qo="Á",Uo="á",Go="Ă",Wo="ă",Vo="∾",_o="∿",Ko="∾̳",Yo="Â",Zo="â",Qo="´",Jo="А",Xo="а",$o="Æ",ta="æ",ea="⁡",na="𝔄",ia="𝔞",ra="À",oa="à",aa="ℵ",sa="ℵ",la="Α",ca="α",ua="Ā",da="ā",ha="⨿",pa="&",fa="&",ma="⩕",ga="⩓",va="∧",ya="⩜",ba="⩘",wa="⩚",xa="∠",Ca="⦤",ka="∠",Aa="⦨",Ea="⦩",Ma="⦪",Ta="⦫",Sa="⦬",Na="⦭",Oa="⦮",Da="⦯",La="∡",Ia="∟",Pa="⊾",Ra="⦝",Fa="∢",ja="Å",za="⍼",Ba="Ą",Ha="ą",qa="𝔸",Ua="𝕒",Ga="⩯",Wa="≈",Va="⩰",_a="≊",Ka="≋",Ya="'",Za="⁡",Qa="≈",Ja="≊",Xa="Å",$a="å",ts="𝒜",es="𝒶",ns="≔",is="*",rs="≈",os="≍",as="Ã",ss="ã",ls="Ä",cs="ä",us="∳",ds="⨑",hs="≌",ps="϶",fs="‵",ms="∽",gs="⋍",vs="∖",ys="⫧",bs="⊽",ws="⌅",xs="⌆",Cs="⌅",ks="⎵",As="⎶",Es="≌",Ms="Б",Ts="б",Ss="„",Ns="∵",Os="∵",Ds="∵",Ls="⦰",Is="϶",Ps="ℬ",Rs="ℬ",Fs="Β",js="β",zs="ℶ",Bs="≬",Hs="𝔅",qs="𝔟",Us="⋂",Gs="◯",Ws="⋃",Vs="⨀",_s="⨁",Ks="⨂",Ys="⨆",Zs="★",Qs="▽",Js="△",Xs="⨄",$s="⋁",tl="⋀",el="⤍",nl="⧫",il="▪",rl="▴",ol="▾",al="◂",sl="▸",ll="␣",cl="▒",ul="░",dl="▓",hl="█",pl="=⃥",fl="≡⃥",ml="⫭",gl="⌐",vl="𝔹",yl="𝕓",bl="⊥",wl="⊥",xl="⋈",Cl="⧉",kl="┐",Al="╕",El="╖",Ml="╗",Tl="┌",Sl="╒",Nl="╓",Ol="╔",Dl="─",Ll="═",Il="┬",Pl="╤",Rl="╥",Fl="╦",jl="┴",zl="╧",Bl="╨",Hl="╩",ql="⊟",Ul="⊞",Gl="⊠",Wl="┘",Vl="╛",_l="╜",Kl="╝",Yl="└",Zl="╘",Ql="╙",Jl="╚",Xl="│",$l="║",tc="┼",ec="╪",nc="╫",ic="╬",rc="┤",oc="╡",ac="╢",sc="╣",lc="├",cc="╞",uc="╟",dc="╠",hc="‵",pc="˘",fc="˘",mc="¦",gc="𝒷",vc="ℬ",yc="⁏",bc="∽",wc="⋍",xc="⧅",Cc="\\",kc="⟈",Ac="•",Ec="•",Mc="≎",Tc="⪮",Sc="≏",Nc="≎",Oc="≏",Dc="Ć",Lc="ć",Ic="⩄",Pc="⩉",Rc="⩋",Fc="∩",jc="⋒",zc="⩇",Bc="⩀",Hc="ⅅ",qc="∩︀",Uc="⁁",Gc="ˇ",Wc="ℭ",Vc="⩍",_c="Č",Kc="č",Yc="Ç",Zc="ç",Qc="Ĉ",Jc="ĉ",Xc="∰",$c="⩌",tu="⩐",eu="Ċ",nu="ċ",iu="¸",ru="¸",ou="⦲",au="¢",su="·",lu="·",cu="𝔠",uu="ℭ",du="Ч",hu="ч",pu="✓",fu="✓",mu="Χ",gu="χ",vu="ˆ",yu="≗",bu="↺",wu="↻",xu="⊛",Cu="⊚",ku="⊝",Au="⊙",Eu="®",Mu="Ⓢ",Tu="⊖",Su="⊕",Nu="⊗",Ou="○",Du="⧃",Lu="≗",Iu="⨐",Pu="⫯",Ru="⧂",Fu="∲",ju="”",zu="’",Bu="♣",Hu="♣",qu=":",Uu="∷",Gu="⩴",Wu="≔",Vu="≔",_u=",",Ku="@",Yu="∁",Zu="∘",Qu="∁",Ju="ℂ",Xu="≅",$u="⩭",td="≡",ed="∮",nd="∯",id="∮",rd="𝕔",od="ℂ",ad="∐",sd="∐",ld="©",cd="©",ud="℗",dd="∳",hd="↵",pd="✗",fd="⨯",md="𝒞",gd="𝒸",vd="⫏",yd="⫑",bd="⫐",wd="⫒",xd="⋯",Cd="⤸",kd="⤵",Ad="⋞",Ed="⋟",Md="↶",Td="⤽",Sd="⩈",Nd="⩆",Od="≍",Dd="∪",Ld="⋓",Id="⩊",Pd="⊍",Rd="⩅",Fd="∪︀",jd="↷",zd="⤼",Bd="⋞",Hd="⋟",qd="⋎",Ud="⋏",Gd="¤",Wd="↶",Vd="↷",_d="⋎",Kd="⋏",Yd="∲",Zd="∱",Qd="⌭",Jd="†",Xd="‡",$d="ℸ",th="↓",eh="↡",nh="⇓",ih="‐",rh="⫤",oh="⊣",ah="⤏",sh="˝",lh="Ď",ch="ď",uh="Д",dh="д",hh="‡",ph="⇊",fh="ⅅ",mh="ⅆ",gh="⤑",vh="⩷",yh="°",bh="∇",wh="Δ",xh="δ",Ch="⦱",kh="⥿",Ah="𝔇",Eh="𝔡",Mh="⥥",Th="⇃",Sh="⇂",Nh="´",Oh="˙",Dh="˝",Lh="`",Ih="˜",Ph="⋄",Rh="⋄",Fh="⋄",jh="♦",zh="♦",Bh="¨",Hh="ⅆ",qh="ϝ",Uh="⋲",Gh="÷",Wh="÷",Vh="⋇",_h="⋇",Kh="Ђ",Yh="ђ",Zh="⌞",Qh="⌍",Jh="$",Xh="𝔻",$h="𝕕",tp="¨",ep="˙",np="⃜",ip="≐",rp="≑",op="≐",ap="∸",sp="∔",lp="⊡",cp="⌆",up="∯",dp="¨",hp="⇓",pp="⇐",fp="⇔",mp="⫤",gp="⟸",vp="⟺",yp="⟹",bp="⇒",wp="⊨",xp="⇑",Cp="⇕",kp="∥",Ap="⤓",Ep="↓",Mp="↓",Tp="⇓",Sp="⇵",Np="̑",Op="⇊",Dp="⇃",Lp="⇂",Ip="⥐",Pp="⥞",Rp="⥖",Fp="↽",jp="⥟",zp="⥗",Bp="⇁",Hp="↧",qp="⊤",Up="⤐",Gp="⌟",Wp="⌌",Vp="𝒟",_p="𝒹",Kp="Ѕ",Yp="ѕ",Zp="⧶",Qp="Đ",Jp="đ",Xp="⋱",$p="▿",tf="▾",ef="⇵",nf="⥯",rf="⦦",of="Џ",af="џ",sf="⟿",lf="É",cf="é",uf="⩮",df="Ě",hf="ě",pf="Ê",ff="ê",mf="≖",gf="≕",vf="Э",yf="э",bf="⩷",wf="Ė",xf="ė",Cf="≑",kf="ⅇ",Af="≒",Ef="𝔈",Mf="𝔢",Tf="⪚",Sf="È",Nf="è",Of="⪖",Df="⪘",Lf="⪙",If="∈",Pf="⏧",Rf="ℓ",Ff="⪕",jf="⪗",zf="Ē",Bf="ē",Hf="∅",qf="∅",Uf="◻",Gf="∅",Wf="▫",Vf=" ",_f=" ",Kf=" ",Yf="Ŋ",Zf="ŋ",Qf=" ",Jf="Ę",Xf="ę",$f="𝔼",tm="𝕖",em="⋕",nm="⧣",im="⩱",rm="ε",om="Ε",am="ε",sm="ϵ",lm="≖",cm="≕",um="≂",dm="⪖",hm="⪕",pm="⩵",fm="=",mm="≂",gm="≟",vm="⇌",ym="≡",bm="⩸",wm="⧥",xm="⥱",Cm="≓",km="ℯ",Am="ℰ",Em="≐",Mm="⩳",Tm="≂",Sm="Η",Nm="η",Om="Ð",Dm="ð",Lm="Ë",Im="ë",Pm="€",Rm="!",Fm="∃",jm="∃",zm="ℰ",Bm="ⅇ",Hm="ⅇ",qm="≒",Um="Ф",Gm="ф",Wm="♀",Vm="ffi",_m="ff",Km="ffl",Ym="𝔉",Zm="𝔣",Qm="fi",Jm="◼",Xm="▪",$m="fj",tg="♭",eg="fl",ng="▱",ig="ƒ",rg="𝔽",og="𝕗",ag="∀",sg="∀",lg="⋔",cg="⫙",ug="ℱ",dg="⨍",hg="½",pg="⅓",fg="¼",mg="⅕",gg="⅙",vg="⅛",yg="⅔",bg="⅖",wg="¾",xg="⅗",Cg="⅜",kg="⅘",Ag="⅚",Eg="⅝",Mg="⅞",Tg="⁄",Sg="⌢",Ng="𝒻",Og="ℱ",Dg="ǵ",Lg="Γ",Ig="γ",Pg="Ϝ",Rg="ϝ",Fg="⪆",jg="Ğ",zg="ğ",Bg="Ģ",Hg="Ĝ",qg="ĝ",Ug="Г",Gg="г",Wg="Ġ",Vg="ġ",_g="≥",Kg="≧",Yg="⪌",Zg="⋛",Qg="≥",Jg="≧",Xg="⩾",$g="⪩",tv="⩾",ev="⪀",nv="⪂",iv="⪄",rv="⋛︀",ov="⪔",av="𝔊",sv="𝔤",lv="≫",cv="⋙",uv="⋙",dv="ℷ",hv="Ѓ",pv="ѓ",fv="⪥",mv="≷",gv="⪒",vv="⪤",yv="⪊",bv="⪊",wv="⪈",xv="≩",Cv="⪈",kv="≩",Av="⋧",Ev="𝔾",Mv="𝕘",Tv="`",Sv="≥",Nv="⋛",Ov="≧",Dv="⪢",Lv="≷",Iv="⩾",Pv="≳",Rv="𝒢",Fv="ℊ",jv="≳",zv="⪎",Bv="⪐",Hv="⪧",qv="⩺",Uv=">",Gv=">",Wv="≫",Vv="⋗",_v="⦕",Kv="⩼",Yv="⪆",Zv="⥸",Qv="⋗",Jv="⋛",Xv="⪌",$v="≷",ty="≳",ey="≩︀",ny="≩︀",iy="ˇ",ry=" ",oy="½",ay="ℋ",sy="Ъ",ly="ъ",cy="⥈",uy="↔",dy="⇔",hy="↭",py="^",fy="ℏ",my="Ĥ",gy="ĥ",vy="♥",yy="♥",by="…",wy="⊹",xy="𝔥",Cy="ℌ",ky="ℋ",Ay="⤥",Ey="⤦",My="⇿",Ty="∻",Sy="↩",Ny="↪",Oy="𝕙",Dy="ℍ",Ly="―",Iy="─",Py="𝒽",Ry="ℋ",Fy="ℏ",jy="Ħ",zy="ħ",By="≎",Hy="≏",qy="⁃",Uy="‐",Gy="Í",Wy="í",Vy="⁣",_y="Î",Ky="î",Yy="И",Zy="и",Qy="İ",Jy="Е",Xy="е",$y="¡",tb="⇔",eb="𝔦",nb="ℑ",ib="Ì",rb="ì",ob="ⅈ",ab="⨌",sb="∭",lb="⧜",cb="℩",ub="IJ",db="ij",hb="Ī",pb="ī",fb="ℑ",mb="ⅈ",gb="ℐ",vb="ℑ",yb="ı",bb="ℑ",wb="⊷",xb="Ƶ",Cb="⇒",kb="℅",Ab="∞",Eb="⧝",Mb="ı",Tb="⊺",Sb="∫",Nb="∬",Ob="ℤ",Db="∫",Lb="⊺",Ib="⋂",Pb="⨗",Rb="⨼",Fb="⁣",jb="⁢",zb="Ё",Bb="ё",Hb="Į",qb="į",Ub="𝕀",Gb="𝕚",Wb="Ι",Vb="ι",_b="⨼",Kb="¿",Yb="𝒾",Zb="ℐ",Qb="∈",Jb="⋵",Xb="⋹",$b="⋴",tw="⋳",ew="∈",nw="⁢",iw="Ĩ",rw="ĩ",ow="І",aw="і",sw="Ï",lw="ï",cw="Ĵ",uw="ĵ",dw="Й",hw="й",pw="𝔍",fw="𝔧",mw="ȷ",gw="𝕁",vw="𝕛",yw="𝒥",bw="𝒿",ww="Ј",xw="ј",Cw="Є",kw="є",Aw="Κ",Ew="κ",Mw="ϰ",Tw="Ķ",Sw="ķ",Nw="К",Ow="к",Dw="𝔎",Lw="𝔨",Iw="ĸ",Pw="Х",Rw="х",Fw="Ќ",jw="ќ",zw="𝕂",Bw="𝕜",Hw="𝒦",qw="𝓀",Uw="⇚",Gw="Ĺ",Ww="ĺ",Vw="⦴",_w="ℒ",Kw="Λ",Yw="λ",Zw="⟨",Qw="⟪",Jw="⦑",Xw="⟨",$w="⪅",tx="ℒ",ex="«",nx="⇤",ix="⤟",rx="←",ox="↞",ax="⇐",sx="⤝",lx="↩",cx="↫",ux="⤹",dx="⥳",hx="↢",px="⤙",fx="⤛",mx="⪫",gx="⪭",vx="⪭︀",yx="⤌",bx="⤎",wx="❲",xx="{",Cx="[",kx="⦋",Ax="⦏",Ex="⦍",Mx="Ľ",Tx="ľ",Sx="Ļ",Nx="ļ",Ox="⌈",Dx="{",Lx="Л",Ix="л",Px="⤶",Rx="“",Fx="„",jx="⥧",zx="⥋",Bx="↲",Hx="≤",qx="≦",Ux="⟨",Gx="⇤",Wx="←",Vx="←",_x="⇐",Kx="⇆",Yx="↢",Zx="⌈",Qx="⟦",Jx="⥡",Xx="⥙",$x="⇃",tC="⌊",eC="↽",nC="↼",iC="⇇",rC="↔",oC="↔",aC="⇔",sC="⇆",lC="⇋",cC="↭",uC="⥎",dC="↤",hC="⊣",pC="⥚",fC="⋋",mC="⧏",gC="⊲",vC="⊴",yC="⥑",bC="⥠",wC="⥘",xC="↿",CC="⥒",kC="↼",AC="⪋",EC="⋚",MC="≤",TC="≦",SC="⩽",NC="⪨",OC="⩽",DC="⩿",LC="⪁",IC="⪃",PC="⋚︀",RC="⪓",FC="⪅",jC="⋖",zC="⋚",BC="⪋",HC="⋚",qC="≦",UC="≶",GC="≶",WC="⪡",VC="≲",_C="⩽",KC="≲",YC="⥼",ZC="⌊",QC="𝔏",JC="𝔩",XC="≶",$C="⪑",tk="⥢",ek="↽",nk="↼",ik="⥪",rk="▄",ok="Љ",ak="љ",sk="⇇",lk="≪",ck="⋘",uk="⌞",dk="⇚",hk="⥫",pk="◺",fk="Ŀ",mk="ŀ",gk="⎰",vk="⎰",yk="⪉",bk="⪉",wk="⪇",xk="≨",Ck="⪇",kk="≨",Ak="⋦",Ek="⟬",Mk="⇽",Tk="⟦",Sk="⟵",Nk="⟵",Ok="⟸",Dk="⟷",Lk="⟷",Ik="⟺",Pk="⟼",Rk="⟶",Fk="⟶",jk="⟹",zk="↫",Bk="↬",Hk="⦅",qk="𝕃",Uk="𝕝",Gk="⨭",Wk="⨴",Vk="∗",_k="_",Kk="↙",Yk="↘",Zk="◊",Qk="◊",Jk="⧫",Xk="(",$k="⦓",tA="⇆",eA="⌟",nA="⇋",iA="⥭",rA="‎",oA="⊿",aA="‹",sA="𝓁",lA="ℒ",cA="↰",uA="↰",dA="≲",hA="⪍",pA="⪏",fA="[",mA="‘",gA="‚",vA="Ł",yA="ł",bA="⪦",wA="⩹",xA="<",CA="<",kA="≪",AA="⋖",EA="⋋",MA="⋉",TA="⥶",SA="⩻",NA="◃",OA="⊴",DA="◂",LA="⦖",IA="⥊",PA="⥦",RA="≨︀",FA="≨︀",jA="¯",zA="♂",BA="✠",HA="✠",qA="↦",UA="↦",GA="↧",WA="↤",VA="↥",_A="▮",KA="⨩",YA="М",ZA="м",QA="—",JA="∺",XA="∡",$A=" ",tE="ℳ",eE="𝔐",nE="𝔪",iE="℧",rE="µ",oE="*",aE="⫰",sE="∣",lE="·",cE="⊟",uE="−",dE="∸",hE="⨪",pE="∓",fE="⫛",mE="…",gE="∓",vE="⊧",yE="𝕄",bE="𝕞",wE="∓",xE="𝓂",CE="ℳ",kE="∾",AE="Μ",EE="μ",ME="⊸",TE="⊸",SE="∇",NE="Ń",OE="ń",DE="∠⃒",LE="≉",IE="⩰̸",PE="≋̸",RE="ʼn",FE="≉",jE="♮",zE="ℕ",BE="♮",HE=" ",qE="≎̸",UE="≏̸",GE="⩃",WE="Ň",VE="ň",_E="Ņ",KE="ņ",YE="≇",ZE="⩭̸",QE="⩂",JE="Н",XE="н",$E="–",tM="⤤",eM="↗",nM="⇗",iM="↗",rM="≠",oM="≐̸",aM="​",sM="​",lM="​",cM="​",uM="≢",dM="⤨",hM="≂̸",pM="≫",fM="≪",mM="\n",gM="∄",vM="∄",yM="𝔑",bM="𝔫",wM="≧̸",xM="≱",CM="≱",kM="≧̸",AM="⩾̸",EM="⩾̸",MM="⋙̸",TM="≵",SM="≫⃒",NM="≯",OM="≯",DM="≫̸",LM="↮",IM="⇎",PM="⫲",RM="∋",FM="⋼",jM="⋺",zM="∋",BM="Њ",HM="њ",qM="↚",UM="⇍",GM="‥",WM="≦̸",VM="≰",_M="↚",KM="⇍",YM="↮",ZM="⇎",QM="≰",JM="≦̸",XM="⩽̸",$M="⩽̸",tT="≮",eT="⋘̸",nT="≴",iT="≪⃒",rT="≮",oT="⋪",aT="⋬",sT="≪̸",lT="∤",cT="⁠",uT=" ",dT="𝕟",hT="ℕ",pT="⫬",fT="¬",mT="≢",gT="≭",vT="∦",yT="∉",bT="≠",wT="≂̸",xT="∄",CT="≯",kT="≱",AT="≧̸",ET="≫̸",MT="≹",TT="⩾̸",ST="≵",NT="≎̸",OT="≏̸",DT="∉",LT="⋵̸",IT="⋹̸",PT="∉",RT="⋷",FT="⋶",jT="⧏̸",zT="⋪",BT="⋬",HT="≮",qT="≰",UT="≸",GT="≪̸",WT="⩽̸",VT="≴",_T="⪢̸",KT="⪡̸",YT="∌",ZT="∌",QT="⋾",JT="⋽",XT="⊀",$T="⪯̸",tS="⋠",eS="∌",nS="⧐̸",iS="⋫",rS="⋭",oS="⊏̸",aS="⋢",sS="⊐̸",lS="⋣",cS="⊂⃒",uS="⊈",dS="⊁",hS="⪰̸",pS="⋡",fS="≿̸",mS="⊃⃒",gS="⊉",vS="≁",yS="≄",bS="≇",wS="≉",xS="∤",CS="∦",kS="∦",AS="⫽⃥",ES="∂̸",MS="⨔",TS="⊀",SS="⋠",NS="⊀",OS="⪯̸",DS="⪯̸",LS="⤳̸",IS="↛",PS="⇏",RS="↝̸",FS="↛",jS="⇏",zS="⋫",BS="⋭",HS="⊁",qS="⋡",US="⪰̸",GS="𝒩",WS="𝓃",VS="∤",_S="∦",KS="≁",YS="≄",ZS="≄",QS="∤",JS="∦",XS="⋢",$S="⋣",tN="⊄",eN="⫅̸",nN="⊈",iN="⊂⃒",rN="⊈",oN="⫅̸",aN="⊁",sN="⪰̸",lN="⊅",cN="⫆̸",uN="⊉",dN="⊃⃒",hN="⊉",pN="⫆̸",fN="≹",mN="Ñ",gN="ñ",vN="≸",yN="⋪",bN="⋬",wN="⋫",xN="⋭",CN="Ν",kN="ν",AN="#",EN="№",MN=" ",TN="≍⃒",SN="⊬",NN="⊭",ON="⊮",DN="⊯",LN="≥⃒",IN=">⃒",PN="⤄",RN="⧞",FN="⤂",jN="≤⃒",zN="<⃒",BN="⊴⃒",HN="⤃",qN="⊵⃒",UN="∼⃒",GN="⤣",WN="↖",VN="⇖",_N="↖",KN="⤧",YN="Ó",ZN="ó",QN="⊛",JN="Ô",XN="ô",$N="⊚",tO="О",eO="о",nO="⊝",iO="Ő",rO="ő",oO="⨸",aO="⊙",sO="⦼",lO="Œ",cO="œ",uO="⦿",dO="𝔒",hO="𝔬",pO="˛",fO="Ò",mO="ò",gO="⧁",vO="⦵",yO="Ω",bO="∮",wO="↺",xO="⦾",CO="⦻",kO="‾",AO="⧀",EO="Ō",MO="ō",TO="Ω",SO="ω",NO="Ο",OO="ο",DO="⦶",LO="⊖",IO="𝕆",PO="𝕠",RO="⦷",FO="“",jO="‘",zO="⦹",BO="⊕",HO="↻",qO="⩔",UO="∨",GO="⩝",WO="ℴ",VO="ℴ",_O="ª",KO="º",YO="⊶",ZO="⩖",QO="⩗",JO="⩛",XO="Ⓢ",$O="𝒪",tD="ℴ",eD="Ø",nD="ø",iD="⊘",rD="Õ",oD="õ",aD="⨶",sD="⨷",lD="⊗",cD="Ö",uD="ö",dD="⌽",hD="‾",pD="⏞",fD="⎴",mD="⏜",gD="¶",vD="∥",yD="∥",bD="⫳",wD="⫽",xD="∂",CD="∂",kD="П",AD="п",ED="%",MD=".",TD="‰",SD="⊥",ND="‱",OD="𝔓",DD="𝔭",LD="Φ",ID="φ",PD="ϕ",RD="ℳ",FD="☎",jD="Π",zD="π",BD="⋔",HD="ϖ",qD="ℏ",UD="ℎ",GD="ℏ",WD="⨣",VD="⊞",_D="⨢",KD="+",YD="∔",ZD="⨥",QD="⩲",JD="±",XD="±",$D="⨦",tL="⨧",eL="±",nL="ℌ",iL="⨕",rL="𝕡",oL="ℙ",aL="£",sL="⪷",lL="⪻",cL="≺",uL="≼",dL="⪷",hL="≺",pL="≼",fL="≺",mL="⪯",gL="≼",vL="≾",yL="⪯",bL="⪹",wL="⪵",xL="⋨",CL="⪯",kL="⪳",AL="≾",EL="′",ML="″",TL="ℙ",SL="⪹",NL="⪵",OL="⋨",DL="∏",LL="∏",IL="⌮",PL="⌒",RL="⌓",FL="∝",jL="∝",zL="∷",BL="∝",HL="≾",qL="⊰",UL="𝒫",GL="𝓅",WL="Ψ",VL="ψ",_L=" ",KL="𝔔",YL="𝔮",ZL="⨌",QL="𝕢",JL="ℚ",XL="⁗",$L="𝒬",tI="𝓆",eI="ℍ",nI="⨖",iI="?",rI="≟",oI='"',aI='"',sI="⇛",lI="∽̱",cI="Ŕ",uI="ŕ",dI="√",hI="⦳",pI="⟩",fI="⟫",mI="⦒",gI="⦥",vI="⟩",yI="»",bI="⥵",wI="⇥",xI="⤠",CI="⤳",kI="→",AI="↠",EI="⇒",MI="⤞",TI="↪",SI="↬",NI="⥅",OI="⥴",DI="⤖",LI="↣",II="↝",PI="⤚",RI="⤜",FI="∶",jI="ℚ",zI="⤍",BI="⤏",HI="⤐",qI="❳",UI="}",GI="]",WI="⦌",VI="⦎",_I="⦐",KI="Ř",YI="ř",ZI="Ŗ",QI="ŗ",JI="⌉",XI="}",$I="Р",tP="р",eP="⤷",nP="⥩",iP="”",rP="”",oP="↳",aP="ℜ",sP="ℛ",lP="ℜ",cP="ℝ",uP="ℜ",dP="▭",hP="®",pP="®",fP="∋",mP="⇋",gP="⥯",vP="⥽",yP="⌋",bP="𝔯",wP="ℜ",xP="⥤",CP="⇁",kP="⇀",AP="⥬",EP="Ρ",MP="ρ",TP="ϱ",SP="⟩",NP="⇥",OP="→",DP="→",LP="⇒",IP="⇄",PP="↣",RP="⌉",FP="⟧",jP="⥝",zP="⥕",BP="⇂",HP="⌋",qP="⇁",UP="⇀",GP="⇄",WP="⇌",VP="⇉",_P="↝",KP="↦",YP="⊢",ZP="⥛",QP="⋌",JP="⧐",XP="⊳",$P="⊵",tR="⥏",eR="⥜",nR="⥔",iR="↾",rR="⥓",oR="⇀",aR="˚",sR="≓",lR="⇄",cR="⇌",uR="‏",dR="⎱",hR="⎱",pR="⫮",fR="⟭",mR="⇾",gR="⟧",vR="⦆",yR="𝕣",bR="ℝ",wR="⨮",xR="⨵",CR="⥰",kR=")",AR="⦔",ER="⨒",MR="⇉",TR="⇛",SR="›",NR="𝓇",OR="ℛ",DR="↱",LR="↱",IR="]",PR="’",RR="’",FR="⋌",jR="⋊",zR="▹",BR="⊵",HR="▸",qR="⧎",UR="⧴",GR="⥨",WR="℞",VR="Ś",_R="ś",KR="‚",YR="⪸",ZR="Š",QR="š",JR="⪼",XR="≻",$R="≽",tF="⪰",eF="⪴",nF="Ş",iF="ş",rF="Ŝ",oF="ŝ",aF="⪺",sF="⪶",lF="⋩",cF="⨓",uF="≿",dF="С",hF="с",pF="⊡",fF="⋅",mF="⩦",gF="⤥",vF="↘",yF="⇘",bF="↘",wF="§",xF=";",CF="⤩",kF="∖",AF="∖",EF="✶",MF="𝔖",TF="𝔰",SF="⌢",NF="♯",OF="Щ",DF="щ",LF="Ш",IF="ш",PF="↓",RF="←",FF="∣",jF="∥",zF="→",BF="↑",HF="­",qF="Σ",UF="σ",GF="ς",WF="ς",VF="∼",_F="⩪",KF="≃",YF="≃",ZF="⪞",QF="⪠",JF="⪝",XF="⪟",$F="≆",tj="⨤",ej="⥲",nj="←",ij="∘",rj="∖",oj="⨳",aj="⧤",sj="∣",lj="⌣",cj="⪪",uj="⪬",dj="⪬︀",hj="Ь",pj="ь",fj="⌿",mj="⧄",gj="/",vj="𝕊",yj="𝕤",bj="♠",wj="♠",xj="∥",Cj="⊓",kj="⊓︀",Aj="⊔",Ej="⊔︀",Mj="√",Tj="⊏",Sj="⊑",Nj="⊏",Oj="⊑",Dj="⊐",Lj="⊒",Ij="⊐",Pj="⊒",Rj="□",Fj="□",jj="⊓",zj="⊏",Bj="⊑",Hj="⊐",qj="⊒",Uj="⊔",Gj="▪",Wj="□",Vj="▪",_j="→",Kj="𝒮",Yj="𝓈",Zj="∖",Qj="⌣",Jj="⋆",Xj="⋆",$j="☆",tz="★",ez="ϵ",nz="ϕ",iz="¯",rz="⊂",oz="⋐",az="⪽",sz="⫅",lz="⊆",cz="⫃",uz="⫁",dz="⫋",hz="⊊",pz="⪿",fz="⥹",mz="⊂",gz="⋐",vz="⊆",yz="⫅",bz="⊆",wz="⊊",xz="⫋",Cz="⫇",kz="⫕",Az="⫓",Ez="⪸",Mz="≻",Tz="≽",Sz="≻",Nz="⪰",Oz="≽",Dz="≿",Lz="⪰",Iz="⪺",Pz="⪶",Rz="⋩",Fz="≿",jz="∋",zz="∑",Bz="∑",Hz="♪",qz="¹",Uz="²",Gz="³",Wz="⊃",Vz="⋑",_z="⪾",Kz="⫘",Yz="⫆",Zz="⊇",Qz="⫄",Jz="⊃",Xz="⊇",$z="⟉",tB="⫗",eB="⥻",nB="⫂",iB="⫌",rB="⊋",oB="⫀",aB="⊃",sB="⋑",lB="⊇",cB="⫆",uB="⊋",dB="⫌",hB="⫈",pB="⫔",fB="⫖",mB="⤦",gB="↙",vB="⇙",yB="↙",bB="⤪",wB="ß",xB="\t",CB="⌖",kB="Τ",AB="τ",EB="⎴",MB="Ť",TB="ť",SB="Ţ",NB="ţ",OB="Т",DB="т",LB="⃛",IB="⌕",PB="𝔗",RB="𝔱",FB="∴",jB="∴",zB="∴",BB="Θ",HB="θ",qB="ϑ",UB="ϑ",GB="≈",WB="∼",VB="  ",_B=" ",KB=" ",YB="≈",ZB="∼",QB="Þ",JB="þ",XB="˜",$B="∼",tH="≃",eH="≅",nH="≈",iH="⨱",rH="⊠",oH="×",aH="⨰",sH="∭",lH="⤨",cH="⌶",uH="⫱",dH="⊤",hH="𝕋",pH="𝕥",fH="⫚",mH="⤩",gH="‴",vH="™",yH="™",bH="▵",wH="▿",xH="◃",CH="⊴",kH="≜",AH="▹",EH="⊵",MH="◬",TH="≜",SH="⨺",NH="⃛",OH="⨹",DH="⧍",LH="⨻",IH="⏢",PH="𝒯",RH="𝓉",FH="Ц",jH="ц",zH="Ћ",BH="ћ",HH="Ŧ",qH="ŧ",UH="≬",GH="↞",WH="↠",VH="Ú",_H="ú",KH="↑",YH="↟",ZH="⇑",QH="⥉",JH="Ў",XH="ў",$H="Ŭ",tq="ŭ",eq="Û",nq="û",iq="У",rq="у",oq="⇅",aq="Ű",sq="ű",lq="⥮",cq="⥾",uq="𝔘",dq="𝔲",hq="Ù",pq="ù",fq="⥣",mq="↿",gq="↾",vq="▀",yq="⌜",bq="⌜",wq="⌏",xq="◸",Cq="Ū",kq="ū",Aq="¨",Eq="_",Mq="⏟",Tq="⎵",Sq="⏝",Nq="⋃",Oq="⊎",Dq="Ų",Lq="ų",Iq="𝕌",Pq="𝕦",Rq="⤒",Fq="↑",jq="↑",zq="⇑",Bq="⇅",Hq="↕",qq="↕",Uq="⇕",Gq="⥮",Wq="↿",Vq="↾",_q="⊎",Kq="↖",Yq="↗",Zq="υ",Qq="ϒ",Jq="ϒ",Xq="Υ",$q="υ",tU="↥",eU="⊥",nU="⇈",iU="⌝",rU="⌝",oU="⌎",aU="Ů",sU="ů",lU="◹",cU="𝒰",uU="𝓊",dU="⋰",hU="Ũ",pU="ũ",fU="▵",mU="▴",gU="⇈",vU="Ü",yU="ü",bU="⦧",wU="⦜",xU="ϵ",CU="ϰ",kU="∅",AU="ϕ",EU="ϖ",MU="∝",TU="↕",SU="⇕",NU="ϱ",OU="ς",DU="⊊︀",LU="⫋︀",IU="⊋︀",PU="⫌︀",RU="ϑ",FU="⊲",jU="⊳",zU="⫨",BU="⫫",HU="⫩",qU="В",UU="в",GU="⊢",WU="⊨",VU="⊩",_U="⊫",KU="⫦",YU="⊻",ZU="∨",QU="⋁",JU="≚",XU="⋮",$U="|",tG="‖",eG="|",nG="‖",iG="∣",rG="|",oG="❘",aG="≀",sG=" ",lG="𝔙",cG="𝔳",uG="⊲",dG="⊂⃒",hG="⊃⃒",pG="𝕍",fG="𝕧",mG="∝",gG="⊳",vG="𝒱",yG="𝓋",bG="⫋︀",wG="⊊︀",xG="⫌︀",CG="⊋︀",kG="⊪",AG="⦚",EG="Ŵ",MG="ŵ",TG="⩟",SG="∧",NG="⋀",OG="≙",DG="℘",LG="𝔚",IG="𝔴",PG="𝕎",RG="𝕨",FG="℘",jG="≀",zG="≀",BG="𝒲",HG="𝓌",qG="⋂",UG="◯",GG="⋃",WG="▽",VG="𝔛",_G="𝔵",KG="⟷",YG="⟺",ZG="Ξ",QG="ξ",JG="⟵",XG="⟸",$G="⟼",tW="⋻",eW="⨀",nW="𝕏",iW="𝕩",rW="⨁",oW="⨂",aW="⟶",sW="⟹",lW="𝒳",cW="𝓍",uW="⨆",dW="⨄",hW="△",pW="⋁",fW="⋀",mW="Ý",gW="ý",vW="Я",yW="я",bW="Ŷ",wW="ŷ",xW="Ы",CW="ы",kW="¥",AW="𝔜",EW="𝔶",MW="Ї",TW="ї",SW="𝕐",NW="𝕪",OW="𝒴",DW="𝓎",LW="Ю",IW="ю",PW="ÿ",RW="Ÿ",FW="Ź",jW="ź",zW="Ž",BW="ž",HW="З",qW="з",UW="Ż",GW="ż",WW="ℨ",VW="​",_W="Ζ",KW="ζ",YW="𝔷",ZW="ℨ",QW="Ж",JW="ж",XW="⇝",$W="𝕫",tV="ℤ",eV="𝒵",nV="𝓏",iV="‍",rV="‌",oV={Aacute:qo,aacute:Uo,Abreve:Go,abreve:Wo,ac:Vo,acd:_o,acE:Ko,Acirc:Yo,acirc:Zo,acute:Qo,Acy:Jo,acy:Xo,AElig:$o,aelig:ta,af:ea,Afr:na,afr:ia,Agrave:ra,agrave:oa,alefsym:aa,aleph:sa,Alpha:la,alpha:ca,Amacr:ua,amacr:da,amalg:ha,amp:pa,AMP:fa,andand:ma,And:ga,and:va,andd:ya,andslope:ba,andv:wa,ang:xa,ange:Ca,angle:ka,angmsdaa:Aa,angmsdab:Ea,angmsdac:Ma,angmsdad:Ta,angmsdae:Sa,angmsdaf:Na,angmsdag:Oa,angmsdah:Da,angmsd:La,angrt:Ia,angrtvb:Pa,angrtvbd:Ra,angsph:Fa,angst:ja,angzarr:za,Aogon:Ba,aogon:Ha,Aopf:qa,aopf:Ua,apacir:Ga,ap:Wa,apE:Va,ape:_a,apid:Ka,apos:Ya,ApplyFunction:Za,approx:Qa,approxeq:Ja,Aring:Xa,aring:$a,Ascr:ts,ascr:es,Assign:ns,ast:is,asymp:rs,asympeq:os,Atilde:as,atilde:ss,Auml:ls,auml:cs,awconint:us,awint:ds,backcong:hs,backepsilon:ps,backprime:fs,backsim:ms,backsimeq:gs,Backslash:vs,Barv:ys,barvee:bs,barwed:ws,Barwed:xs,barwedge:Cs,bbrk:ks,bbrktbrk:As,bcong:Es,Bcy:Ms,bcy:Ts,bdquo:Ss,becaus:Ns,because:Os,Because:Ds,bemptyv:Ls,bepsi:Is,bernou:Ps,Bernoullis:Rs,Beta:Fs,beta:js,beth:zs,between:Bs,Bfr:Hs,bfr:qs,bigcap:Us,bigcirc:Gs,bigcup:Ws,bigodot:Vs,bigoplus:_s,bigotimes:Ks,bigsqcup:Ys,bigstar:Zs,bigtriangledown:Qs,bigtriangleup:Js,biguplus:Xs,bigvee:$s,bigwedge:tl,bkarow:el,blacklozenge:nl,blacksquare:il,blacktriangle:rl,blacktriangledown:ol,blacktriangleleft:al,blacktriangleright:sl,blank:ll,blk12:cl,blk14:ul,blk34:dl,block:hl,bne:pl,bnequiv:fl,bNot:ml,bnot:gl,Bopf:vl,bopf:yl,bot:bl,bottom:wl,bowtie:xl,boxbox:Cl,boxdl:kl,boxdL:Al,boxDl:El,boxDL:Ml,boxdr:Tl,boxdR:Sl,boxDr:Nl,boxDR:Ol,boxh:Dl,boxH:Ll,boxhd:Il,boxHd:Pl,boxhD:Rl,boxHD:Fl,boxhu:jl,boxHu:zl,boxhU:Bl,boxHU:Hl,boxminus:ql,boxplus:Ul,boxtimes:Gl,boxul:Wl,boxuL:Vl,boxUl:_l,boxUL:Kl,boxur:Yl,boxuR:Zl,boxUr:Ql,boxUR:Jl,boxv:Xl,boxV:$l,boxvh:tc,boxvH:ec,boxVh:nc,boxVH:ic,boxvl:rc,boxvL:oc,boxVl:ac,boxVL:sc,boxvr:lc,boxvR:cc,boxVr:uc,boxVR:dc,bprime:hc,breve:pc,Breve:fc,brvbar:mc,bscr:gc,Bscr:vc,bsemi:yc,bsim:bc,bsime:wc,bsolb:xc,bsol:Cc,bsolhsub:kc,bull:Ac,bullet:Ec,bump:Mc,bumpE:Tc,bumpe:Sc,Bumpeq:Nc,bumpeq:Oc,Cacute:Dc,cacute:Lc,capand:Ic,capbrcup:Pc,capcap:Rc,cap:Fc,Cap:jc,capcup:zc,capdot:Bc,CapitalDifferentialD:Hc,caps:qc,caret:Uc,caron:Gc,Cayleys:Wc,ccaps:Vc,Ccaron:_c,ccaron:Kc,Ccedil:Yc,ccedil:Zc,Ccirc:Qc,ccirc:Jc,Cconint:Xc,ccups:$c,ccupssm:tu,Cdot:eu,cdot:nu,cedil:iu,Cedilla:ru,cemptyv:ou,cent:au,centerdot:su,CenterDot:lu,cfr:cu,Cfr:uu,CHcy:du,chcy:hu,check:pu,checkmark:fu,Chi:mu,chi:gu,circ:vu,circeq:yu,circlearrowleft:bu,circlearrowright:wu,circledast:xu,circledcirc:Cu,circleddash:ku,CircleDot:Au,circledR:Eu,circledS:Mu,CircleMinus:Tu,CirclePlus:Su,CircleTimes:Nu,cir:Ou,cirE:Du,cire:Lu,cirfnint:Iu,cirmid:Pu,cirscir:Ru,ClockwiseContourIntegral:Fu,CloseCurlyDoubleQuote:ju,CloseCurlyQuote:zu,clubs:Bu,clubsuit:Hu,colon:qu,Colon:Uu,Colone:Gu,colone:Wu,coloneq:Vu,comma:_u,commat:Ku,comp:Yu,compfn:Zu,complement:Qu,complexes:Ju,cong:Xu,congdot:$u,Congruent:td,conint:ed,Conint:nd,ContourIntegral:id,copf:rd,Copf:od,coprod:ad,Coproduct:sd,copy:ld,COPY:cd,copysr:ud,CounterClockwiseContourIntegral:dd,crarr:hd,cross:pd,Cross:fd,Cscr:md,cscr:gd,csub:vd,csube:yd,csup:bd,csupe:wd,ctdot:xd,cudarrl:Cd,cudarrr:kd,cuepr:Ad,cuesc:Ed,cularr:Md,cularrp:Td,cupbrcap:Sd,cupcap:Nd,CupCap:Od,cup:Dd,Cup:Ld,cupcup:Id,cupdot:Pd,cupor:Rd,cups:Fd,curarr:jd,curarrm:zd,curlyeqprec:Bd,curlyeqsucc:Hd,curlyvee:qd,curlywedge:Ud,curren:Gd,curvearrowleft:Wd,curvearrowright:Vd,cuvee:_d,cuwed:Kd,cwconint:Yd,cwint:Zd,cylcty:Qd,dagger:Jd,Dagger:Xd,daleth:$d,darr:th,Darr:eh,dArr:nh,dash:ih,Dashv:rh,dashv:oh,dbkarow:ah,dblac:sh,Dcaron:lh,dcaron:ch,Dcy:uh,dcy:dh,ddagger:hh,ddarr:ph,DD:fh,dd:mh,DDotrahd:gh,ddotseq:vh,deg:yh,Del:bh,Delta:wh,delta:xh,demptyv:Ch,dfisht:kh,Dfr:Ah,dfr:Eh,dHar:Mh,dharl:Th,dharr:Sh,DiacriticalAcute:Nh,DiacriticalDot:Oh,DiacriticalDoubleAcute:Dh,DiacriticalGrave:Lh,DiacriticalTilde:Ih,diam:Ph,diamond:Rh,Diamond:Fh,diamondsuit:jh,diams:zh,die:Bh,DifferentialD:Hh,digamma:qh,disin:Uh,div:Gh,divide:Wh,divideontimes:Vh,divonx:_h,DJcy:Kh,djcy:Yh,dlcorn:Zh,dlcrop:Qh,dollar:Jh,Dopf:Xh,dopf:$h,Dot:tp,dot:ep,DotDot:np,doteq:ip,doteqdot:rp,DotEqual:op,dotminus:ap,dotplus:sp,dotsquare:lp,doublebarwedge:cp,DoubleContourIntegral:up,DoubleDot:dp,DoubleDownArrow:hp,DoubleLeftArrow:pp,DoubleLeftRightArrow:fp,DoubleLeftTee:mp,DoubleLongLeftArrow:gp,DoubleLongLeftRightArrow:vp,DoubleLongRightArrow:yp,DoubleRightArrow:bp,DoubleRightTee:wp,DoubleUpArrow:xp,DoubleUpDownArrow:Cp,DoubleVerticalBar:kp,DownArrowBar:Ap,downarrow:Ep,DownArrow:Mp,Downarrow:Tp,DownArrowUpArrow:Sp,DownBreve:Np,downdownarrows:Op,downharpoonleft:Dp,downharpoonright:Lp,DownLeftRightVector:Ip,DownLeftTeeVector:Pp,DownLeftVectorBar:Rp,DownLeftVector:Fp,DownRightTeeVector:jp,DownRightVectorBar:zp,DownRightVector:Bp,DownTeeArrow:Hp,DownTee:qp,drbkarow:Up,drcorn:Gp,drcrop:Wp,Dscr:Vp,dscr:_p,DScy:Kp,dscy:Yp,dsol:Zp,Dstrok:Qp,dstrok:Jp,dtdot:Xp,dtri:$p,dtrif:tf,duarr:ef,duhar:nf,dwangle:rf,DZcy:of,dzcy:af,dzigrarr:sf,Eacute:lf,eacute:cf,easter:uf,Ecaron:df,ecaron:hf,Ecirc:pf,ecirc:ff,ecir:mf,ecolon:gf,Ecy:vf,ecy:yf,eDDot:bf,Edot:wf,edot:xf,eDot:Cf,ee:kf,efDot:Af,Efr:Ef,efr:Mf,eg:Tf,Egrave:Sf,egrave:Nf,egs:Of,egsdot:Df,el:Lf,Element:If,elinters:Pf,ell:Rf,els:Ff,elsdot:jf,Emacr:zf,emacr:Bf,empty:Hf,emptyset:qf,EmptySmallSquare:Uf,emptyv:Gf,EmptyVerySmallSquare:Wf,emsp13:Vf,emsp14:_f,emsp:Kf,ENG:Yf,eng:Zf,ensp:Qf,Eogon:Jf,eogon:Xf,Eopf:$f,eopf:tm,epar:em,eparsl:nm,eplus:im,epsi:rm,Epsilon:om,epsilon:am,epsiv:sm,eqcirc:lm,eqcolon:cm,eqsim:um,eqslantgtr:dm,eqslantless:hm,Equal:pm,equals:fm,EqualTilde:mm,equest:gm,Equilibrium:vm,equiv:ym,equivDD:bm,eqvparsl:wm,erarr:xm,erDot:Cm,escr:km,Escr:Am,esdot:Em,Esim:Mm,esim:Tm,Eta:Sm,eta:Nm,ETH:Om,eth:Dm,Euml:Lm,euml:Im,euro:Pm,excl:Rm,exist:Fm,Exists:jm,expectation:zm,exponentiale:Bm,ExponentialE:Hm,fallingdotseq:qm,Fcy:Um,fcy:Gm,female:Wm,ffilig:Vm,fflig:_m,ffllig:Km,Ffr:Ym,ffr:Zm,filig:Qm,FilledSmallSquare:Jm,FilledVerySmallSquare:Xm,fjlig:$m,flat:tg,fllig:eg,fltns:ng,fnof:ig,Fopf:rg,fopf:og,forall:ag,ForAll:sg,fork:lg,forkv:cg,Fouriertrf:ug,fpartint:dg,frac12:hg,frac13:pg,frac14:fg,frac15:mg,frac16:gg,frac18:vg,frac23:yg,frac25:bg,frac34:wg,frac35:xg,frac38:Cg,frac45:kg,frac56:Ag,frac58:Eg,frac78:Mg,frasl:Tg,frown:Sg,fscr:Ng,Fscr:Og,gacute:Dg,Gamma:Lg,gamma:Ig,Gammad:Pg,gammad:Rg,gap:Fg,Gbreve:jg,gbreve:zg,Gcedil:Bg,Gcirc:Hg,gcirc:qg,Gcy:Ug,gcy:Gg,Gdot:Wg,gdot:Vg,ge:_g,gE:Kg,gEl:Yg,gel:Zg,geq:Qg,geqq:Jg,geqslant:Xg,gescc:$g,ges:tv,gesdot:ev,gesdoto:nv,gesdotol:iv,gesl:rv,gesles:ov,Gfr:av,gfr:sv,gg:lv,Gg:cv,ggg:uv,gimel:dv,GJcy:hv,gjcy:pv,gla:fv,gl:mv,glE:gv,glj:vv,gnap:yv,gnapprox:bv,gne:wv,gnE:xv,gneq:Cv,gneqq:kv,gnsim:Av,Gopf:Ev,gopf:Mv,grave:Tv,GreaterEqual:Sv,GreaterEqualLess:Nv,GreaterFullEqual:Ov,GreaterGreater:Dv,GreaterLess:Lv,GreaterSlantEqual:Iv,GreaterTilde:Pv,Gscr:Rv,gscr:Fv,gsim:jv,gsime:zv,gsiml:Bv,gtcc:Hv,gtcir:qv,gt:Uv,GT:Gv,Gt:Wv,gtdot:Vv,gtlPar:_v,gtquest:Kv,gtrapprox:Yv,gtrarr:Zv,gtrdot:Qv,gtreqless:Jv,gtreqqless:Xv,gtrless:$v,gtrsim:ty,gvertneqq:ey,gvnE:ny,Hacek:iy,hairsp:ry,half:oy,hamilt:ay,HARDcy:sy,hardcy:ly,harrcir:cy,harr:uy,hArr:dy,harrw:hy,Hat:py,hbar:fy,Hcirc:my,hcirc:gy,hearts:vy,heartsuit:yy,hellip:by,hercon:wy,hfr:xy,Hfr:Cy,HilbertSpace:ky,hksearow:Ay,hkswarow:Ey,hoarr:My,homtht:Ty,hookleftarrow:Sy,hookrightarrow:Ny,hopf:Oy,Hopf:Dy,horbar:Ly,HorizontalLine:Iy,hscr:Py,Hscr:Ry,hslash:Fy,Hstrok:jy,hstrok:zy,HumpDownHump:By,HumpEqual:Hy,hybull:qy,hyphen:Uy,Iacute:Gy,iacute:Wy,ic:Vy,Icirc:_y,icirc:Ky,Icy:Yy,icy:Zy,Idot:Qy,IEcy:Jy,iecy:Xy,iexcl:$y,iff:tb,ifr:eb,Ifr:nb,Igrave:ib,igrave:rb,ii:ob,iiiint:ab,iiint:sb,iinfin:lb,iiota:cb,IJlig:ub,ijlig:db,Imacr:hb,imacr:pb,image:fb,ImaginaryI:mb,imagline:gb,imagpart:vb,imath:yb,Im:bb,imof:wb,imped:xb,Implies:Cb,incare:kb,in:"∈",infin:Ab,infintie:Eb,inodot:Mb,intcal:Tb,int:Sb,Int:Nb,integers:Ob,Integral:Db,intercal:Lb,Intersection:Ib,intlarhk:Pb,intprod:Rb,InvisibleComma:Fb,InvisibleTimes:jb,IOcy:zb,iocy:Bb,Iogon:Hb,iogon:qb,Iopf:Ub,iopf:Gb,Iota:Wb,iota:Vb,iprod:_b,iquest:Kb,iscr:Yb,Iscr:Zb,isin:Qb,isindot:Jb,isinE:Xb,isins:$b,isinsv:tw,isinv:ew,it:nw,Itilde:iw,itilde:rw,Iukcy:ow,iukcy:aw,Iuml:sw,iuml:lw,Jcirc:cw,jcirc:uw,Jcy:dw,jcy:hw,Jfr:pw,jfr:fw,jmath:mw,Jopf:gw,jopf:vw,Jscr:yw,jscr:bw,Jsercy:ww,jsercy:xw,Jukcy:Cw,jukcy:kw,Kappa:Aw,kappa:Ew,kappav:Mw,Kcedil:Tw,kcedil:Sw,Kcy:Nw,kcy:Ow,Kfr:Dw,kfr:Lw,kgreen:Iw,KHcy:Pw,khcy:Rw,KJcy:Fw,kjcy:jw,Kopf:zw,kopf:Bw,Kscr:Hw,kscr:qw,lAarr:Uw,Lacute:Gw,lacute:Ww,laemptyv:Vw,lagran:_w,Lambda:Kw,lambda:Yw,lang:Zw,Lang:Qw,langd:Jw,langle:Xw,lap:$w,Laplacetrf:tx,laquo:ex,larrb:nx,larrbfs:ix,larr:rx,Larr:ox,lArr:ax,larrfs:sx,larrhk:lx,larrlp:cx,larrpl:ux,larrsim:dx,larrtl:hx,latail:px,lAtail:fx,lat:mx,late:gx,lates:vx,lbarr:yx,lBarr:bx,lbbrk:wx,lbrace:xx,lbrack:Cx,lbrke:kx,lbrksld:Ax,lbrkslu:Ex,Lcaron:Mx,lcaron:Tx,Lcedil:Sx,lcedil:Nx,lceil:Ox,lcub:Dx,Lcy:Lx,lcy:Ix,ldca:Px,ldquo:Rx,ldquor:Fx,ldrdhar:jx,ldrushar:zx,ldsh:Bx,le:Hx,lE:qx,LeftAngleBracket:Ux,LeftArrowBar:Gx,leftarrow:Wx,LeftArrow:Vx,Leftarrow:_x,LeftArrowRightArrow:Kx,leftarrowtail:Yx,LeftCeiling:Zx,LeftDoubleBracket:Qx,LeftDownTeeVector:Jx,LeftDownVectorBar:Xx,LeftDownVector:$x,LeftFloor:tC,leftharpoondown:eC,leftharpoonup:nC,leftleftarrows:iC,leftrightarrow:rC,LeftRightArrow:oC,Leftrightarrow:aC,leftrightarrows:sC,leftrightharpoons:lC,leftrightsquigarrow:cC,LeftRightVector:uC,LeftTeeArrow:dC,LeftTee:hC,LeftTeeVector:pC,leftthreetimes:fC,LeftTriangleBar:mC,LeftTriangle:gC,LeftTriangleEqual:vC,LeftUpDownVector:yC,LeftUpTeeVector:bC,LeftUpVectorBar:wC,LeftUpVector:xC,LeftVectorBar:CC,LeftVector:kC,lEg:AC,leg:EC,leq:MC,leqq:TC,leqslant:SC,lescc:NC,les:OC,lesdot:DC,lesdoto:LC,lesdotor:IC,lesg:PC,lesges:RC,lessapprox:FC,lessdot:jC,lesseqgtr:zC,lesseqqgtr:BC,LessEqualGreater:HC,LessFullEqual:qC,LessGreater:UC,lessgtr:GC,LessLess:WC,lesssim:VC,LessSlantEqual:_C,LessTilde:KC,lfisht:YC,lfloor:ZC,Lfr:QC,lfr:JC,lg:XC,lgE:$C,lHar:tk,lhard:ek,lharu:nk,lharul:ik,lhblk:rk,LJcy:ok,ljcy:ak,llarr:sk,ll:lk,Ll:ck,llcorner:uk,Lleftarrow:dk,llhard:hk,lltri:pk,Lmidot:fk,lmidot:mk,lmoustache:gk,lmoust:vk,lnap:yk,lnapprox:bk,lne:wk,lnE:xk,lneq:Ck,lneqq:kk,lnsim:Ak,loang:Ek,loarr:Mk,lobrk:Tk,longleftarrow:Sk,LongLeftArrow:Nk,Longleftarrow:Ok,longleftrightarrow:Dk,LongLeftRightArrow:Lk,Longleftrightarrow:Ik,longmapsto:Pk,longrightarrow:Rk,LongRightArrow:Fk,Longrightarrow:jk,looparrowleft:zk,looparrowright:Bk,lopar:Hk,Lopf:qk,lopf:Uk,loplus:Gk,lotimes:Wk,lowast:Vk,lowbar:_k,LowerLeftArrow:Kk,LowerRightArrow:Yk,loz:Zk,lozenge:Qk,lozf:Jk,lpar:Xk,lparlt:$k,lrarr:tA,lrcorner:eA,lrhar:nA,lrhard:iA,lrm:rA,lrtri:oA,lsaquo:aA,lscr:sA,Lscr:lA,lsh:cA,Lsh:uA,lsim:dA,lsime:hA,lsimg:pA,lsqb:fA,lsquo:mA,lsquor:gA,Lstrok:vA,lstrok:yA,ltcc:bA,ltcir:wA,lt:xA,LT:CA,Lt:kA,ltdot:AA,lthree:EA,ltimes:MA,ltlarr:TA,ltquest:SA,ltri:NA,ltrie:OA,ltrif:DA,ltrPar:LA,lurdshar:IA,luruhar:PA,lvertneqq:RA,lvnE:FA,macr:jA,male:zA,malt:BA,maltese:HA,Map:"⤅",map:qA,mapsto:UA,mapstodown:GA,mapstoleft:WA,mapstoup:VA,marker:_A,mcomma:KA,Mcy:YA,mcy:ZA,mdash:QA,mDDot:JA,measuredangle:XA,MediumSpace:$A,Mellintrf:tE,Mfr:eE,mfr:nE,mho:iE,micro:rE,midast:oE,midcir:aE,mid:sE,middot:lE,minusb:cE,minus:uE,minusd:dE,minusdu:hE,MinusPlus:pE,mlcp:fE,mldr:mE,mnplus:gE,models:vE,Mopf:yE,mopf:bE,mp:wE,mscr:xE,Mscr:CE,mstpos:kE,Mu:AE,mu:EE,multimap:ME,mumap:TE,nabla:SE,Nacute:NE,nacute:OE,nang:DE,nap:LE,napE:IE,napid:PE,napos:RE,napprox:FE,natural:jE,naturals:zE,natur:BE,nbsp:HE,nbump:qE,nbumpe:UE,ncap:GE,Ncaron:WE,ncaron:VE,Ncedil:_E,ncedil:KE,ncong:YE,ncongdot:ZE,ncup:QE,Ncy:JE,ncy:XE,ndash:$E,nearhk:tM,nearr:eM,neArr:nM,nearrow:iM,ne:rM,nedot:oM,NegativeMediumSpace:aM,NegativeThickSpace:sM,NegativeThinSpace:lM,NegativeVeryThinSpace:cM,nequiv:uM,nesear:dM,nesim:hM,NestedGreaterGreater:pM,NestedLessLess:fM,NewLine:mM,nexist:gM,nexists:vM,Nfr:yM,nfr:bM,ngE:wM,nge:xM,ngeq:CM,ngeqq:kM,ngeqslant:AM,nges:EM,nGg:MM,ngsim:TM,nGt:SM,ngt:NM,ngtr:OM,nGtv:DM,nharr:LM,nhArr:IM,nhpar:PM,ni:RM,nis:FM,nisd:jM,niv:zM,NJcy:BM,njcy:HM,nlarr:qM,nlArr:UM,nldr:GM,nlE:WM,nle:VM,nleftarrow:_M,nLeftarrow:KM,nleftrightarrow:YM,nLeftrightarrow:ZM,nleq:QM,nleqq:JM,nleqslant:XM,nles:$M,nless:tT,nLl:eT,nlsim:nT,nLt:iT,nlt:rT,nltri:oT,nltrie:aT,nLtv:sT,nmid:lT,NoBreak:cT,NonBreakingSpace:uT,nopf:dT,Nopf:hT,Not:pT,not:fT,NotCongruent:mT,NotCupCap:gT,NotDoubleVerticalBar:vT,NotElement:yT,NotEqual:bT,NotEqualTilde:wT,NotExists:xT,NotGreater:CT,NotGreaterEqual:kT,NotGreaterFullEqual:AT,NotGreaterGreater:ET,NotGreaterLess:MT,NotGreaterSlantEqual:TT,NotGreaterTilde:ST,NotHumpDownHump:NT,NotHumpEqual:OT,notin:DT,notindot:LT,notinE:IT,notinva:PT,notinvb:RT,notinvc:FT,NotLeftTriangleBar:jT,NotLeftTriangle:zT,NotLeftTriangleEqual:BT,NotLess:HT,NotLessEqual:qT,NotLessGreater:UT,NotLessLess:GT,NotLessSlantEqual:WT,NotLessTilde:VT,NotNestedGreaterGreater:_T,NotNestedLessLess:KT,notni:YT,notniva:ZT,notnivb:QT,notnivc:JT,NotPrecedes:XT,NotPrecedesEqual:$T,NotPrecedesSlantEqual:tS,NotReverseElement:eS,NotRightTriangleBar:nS,NotRightTriangle:iS,NotRightTriangleEqual:rS,NotSquareSubset:oS,NotSquareSubsetEqual:aS,NotSquareSuperset:sS,NotSquareSupersetEqual:lS,NotSubset:cS,NotSubsetEqual:uS,NotSucceeds:dS,NotSucceedsEqual:hS,NotSucceedsSlantEqual:pS,NotSucceedsTilde:fS,NotSuperset:mS,NotSupersetEqual:gS,NotTilde:vS,NotTildeEqual:yS,NotTildeFullEqual:bS,NotTildeTilde:wS,NotVerticalBar:xS,nparallel:CS,npar:kS,nparsl:AS,npart:ES,npolint:MS,npr:TS,nprcue:SS,nprec:NS,npreceq:OS,npre:DS,nrarrc:LS,nrarr:IS,nrArr:PS,nrarrw:RS,nrightarrow:FS,nRightarrow:jS,nrtri:zS,nrtrie:BS,nsc:HS,nsccue:qS,nsce:US,Nscr:GS,nscr:WS,nshortmid:VS,nshortparallel:_S,nsim:KS,nsime:YS,nsimeq:ZS,nsmid:QS,nspar:JS,nsqsube:XS,nsqsupe:$S,nsub:tN,nsubE:eN,nsube:nN,nsubset:iN,nsubseteq:rN,nsubseteqq:oN,nsucc:aN,nsucceq:sN,nsup:lN,nsupE:cN,nsupe:uN,nsupset:dN,nsupseteq:hN,nsupseteqq:pN,ntgl:fN,Ntilde:mN,ntilde:gN,ntlg:vN,ntriangleleft:yN,ntrianglelefteq:bN,ntriangleright:wN,ntrianglerighteq:xN,Nu:CN,nu:kN,num:AN,numero:EN,numsp:MN,nvap:TN,nvdash:SN,nvDash:NN,nVdash:ON,nVDash:DN,nvge:LN,nvgt:IN,nvHarr:PN,nvinfin:RN,nvlArr:FN,nvle:jN,nvlt:zN,nvltrie:BN,nvrArr:HN,nvrtrie:qN,nvsim:UN,nwarhk:GN,nwarr:WN,nwArr:VN,nwarrow:_N,nwnear:KN,Oacute:YN,oacute:ZN,oast:QN,Ocirc:JN,ocirc:XN,ocir:$N,Ocy:tO,ocy:eO,odash:nO,Odblac:iO,odblac:rO,odiv:oO,odot:aO,odsold:sO,OElig:lO,oelig:cO,ofcir:uO,Ofr:dO,ofr:hO,ogon:pO,Ograve:fO,ograve:mO,ogt:gO,ohbar:vO,ohm:yO,oint:bO,olarr:wO,olcir:xO,olcross:CO,oline:kO,olt:AO,Omacr:EO,omacr:MO,Omega:TO,omega:SO,Omicron:NO,omicron:OO,omid:DO,ominus:LO,Oopf:IO,oopf:PO,opar:RO,OpenCurlyDoubleQuote:FO,OpenCurlyQuote:jO,operp:zO,oplus:BO,orarr:HO,Or:qO,or:UO,ord:GO,order:WO,orderof:VO,ordf:_O,ordm:KO,origof:YO,oror:ZO,orslope:QO,orv:JO,oS:XO,Oscr:$O,oscr:tD,Oslash:eD,oslash:nD,osol:iD,Otilde:rD,otilde:oD,otimesas:aD,Otimes:sD,otimes:lD,Ouml:cD,ouml:uD,ovbar:dD,OverBar:hD,OverBrace:pD,OverBracket:fD,OverParenthesis:mD,para:gD,parallel:vD,par:yD,parsim:bD,parsl:wD,part:xD,PartialD:CD,Pcy:kD,pcy:AD,percnt:ED,period:MD,permil:TD,perp:SD,pertenk:ND,Pfr:OD,pfr:DD,Phi:LD,phi:ID,phiv:PD,phmmat:RD,phone:FD,Pi:jD,pi:zD,pitchfork:BD,piv:HD,planck:qD,planckh:UD,plankv:GD,plusacir:WD,plusb:VD,pluscir:_D,plus:KD,plusdo:YD,plusdu:ZD,pluse:QD,PlusMinus:JD,plusmn:XD,plussim:$D,plustwo:tL,pm:eL,Poincareplane:nL,pointint:iL,popf:rL,Popf:oL,pound:aL,prap:sL,Pr:lL,pr:cL,prcue:uL,precapprox:dL,prec:hL,preccurlyeq:pL,Precedes:fL,PrecedesEqual:mL,PrecedesSlantEqual:gL,PrecedesTilde:vL,preceq:yL,precnapprox:bL,precneqq:wL,precnsim:xL,pre:CL,prE:kL,precsim:AL,prime:EL,Prime:ML,primes:TL,prnap:SL,prnE:NL,prnsim:OL,prod:DL,Product:LL,profalar:IL,profline:PL,profsurf:RL,prop:FL,Proportional:jL,Proportion:zL,propto:BL,prsim:HL,prurel:qL,Pscr:UL,pscr:GL,Psi:WL,psi:VL,puncsp:_L,Qfr:KL,qfr:YL,qint:ZL,qopf:QL,Qopf:JL,qprime:XL,Qscr:$L,qscr:tI,quaternions:eI,quatint:nI,quest:iI,questeq:rI,quot:oI,QUOT:aI,rAarr:sI,race:lI,Racute:cI,racute:uI,radic:dI,raemptyv:hI,rang:pI,Rang:fI,rangd:mI,range:gI,rangle:vI,raquo:yI,rarrap:bI,rarrb:wI,rarrbfs:xI,rarrc:CI,rarr:kI,Rarr:AI,rArr:EI,rarrfs:MI,rarrhk:TI,rarrlp:SI,rarrpl:NI,rarrsim:OI,Rarrtl:DI,rarrtl:LI,rarrw:II,ratail:PI,rAtail:RI,ratio:FI,rationals:jI,rbarr:zI,rBarr:BI,RBarr:HI,rbbrk:qI,rbrace:UI,rbrack:GI,rbrke:WI,rbrksld:VI,rbrkslu:_I,Rcaron:KI,rcaron:YI,Rcedil:ZI,rcedil:QI,rceil:JI,rcub:XI,Rcy:$I,rcy:tP,rdca:eP,rdldhar:nP,rdquo:iP,rdquor:rP,rdsh:oP,real:aP,realine:sP,realpart:lP,reals:cP,Re:uP,rect:dP,reg:hP,REG:pP,ReverseElement:fP,ReverseEquilibrium:mP,ReverseUpEquilibrium:gP,rfisht:vP,rfloor:yP,rfr:bP,Rfr:wP,rHar:xP,rhard:CP,rharu:kP,rharul:AP,Rho:EP,rho:MP,rhov:TP,RightAngleBracket:SP,RightArrowBar:NP,rightarrow:OP,RightArrow:DP,Rightarrow:LP,RightArrowLeftArrow:IP,rightarrowtail:PP,RightCeiling:RP,RightDoubleBracket:FP,RightDownTeeVector:jP,RightDownVectorBar:zP,RightDownVector:BP,RightFloor:HP,rightharpoondown:qP,rightharpoonup:UP,rightleftarrows:GP,rightleftharpoons:WP,rightrightarrows:VP,rightsquigarrow:_P,RightTeeArrow:KP,RightTee:YP,RightTeeVector:ZP,rightthreetimes:QP,RightTriangleBar:JP,RightTriangle:XP,RightTriangleEqual:$P,RightUpDownVector:tR,RightUpTeeVector:eR,RightUpVectorBar:nR,RightUpVector:iR,RightVectorBar:rR,RightVector:oR,ring:aR,risingdotseq:sR,rlarr:lR,rlhar:cR,rlm:uR,rmoustache:dR,rmoust:hR,rnmid:pR,roang:fR,roarr:mR,robrk:gR,ropar:vR,ropf:yR,Ropf:bR,roplus:wR,rotimes:xR,RoundImplies:CR,rpar:kR,rpargt:AR,rppolint:ER,rrarr:MR,Rrightarrow:TR,rsaquo:SR,rscr:NR,Rscr:OR,rsh:DR,Rsh:LR,rsqb:IR,rsquo:PR,rsquor:RR,rthree:FR,rtimes:jR,rtri:zR,rtrie:BR,rtrif:HR,rtriltri:qR,RuleDelayed:UR,ruluhar:GR,rx:WR,Sacute:VR,sacute:_R,sbquo:KR,scap:YR,Scaron:ZR,scaron:QR,Sc:JR,sc:XR,sccue:$R,sce:tF,scE:eF,Scedil:nF,scedil:iF,Scirc:rF,scirc:oF,scnap:aF,scnE:sF,scnsim:lF,scpolint:cF,scsim:uF,Scy:dF,scy:hF,sdotb:pF,sdot:fF,sdote:mF,searhk:gF,searr:vF,seArr:yF,searrow:bF,sect:wF,semi:xF,seswar:CF,setminus:kF,setmn:AF,sext:EF,Sfr:MF,sfr:TF,sfrown:SF,sharp:NF,SHCHcy:OF,shchcy:DF,SHcy:LF,shcy:IF,ShortDownArrow:PF,ShortLeftArrow:RF,shortmid:FF,shortparallel:jF,ShortRightArrow:zF,ShortUpArrow:BF,shy:HF,Sigma:qF,sigma:UF,sigmaf:GF,sigmav:WF,sim:VF,simdot:_F,sime:KF,simeq:YF,simg:ZF,simgE:QF,siml:JF,simlE:XF,simne:$F,simplus:tj,simrarr:ej,slarr:nj,SmallCircle:ij,smallsetminus:rj,smashp:oj,smeparsl:aj,smid:sj,smile:lj,smt:cj,smte:uj,smtes:dj,SOFTcy:hj,softcy:pj,solbar:fj,solb:mj,sol:gj,Sopf:vj,sopf:yj,spades:bj,spadesuit:wj,spar:xj,sqcap:Cj,sqcaps:kj,sqcup:Aj,sqcups:Ej,Sqrt:Mj,sqsub:Tj,sqsube:Sj,sqsubset:Nj,sqsubseteq:Oj,sqsup:Dj,sqsupe:Lj,sqsupset:Ij,sqsupseteq:Pj,square:Rj,Square:Fj,SquareIntersection:jj,SquareSubset:zj,SquareSubsetEqual:Bj,SquareSuperset:Hj,SquareSupersetEqual:qj,SquareUnion:Uj,squarf:Gj,squ:Wj,squf:Vj,srarr:_j,Sscr:Kj,sscr:Yj,ssetmn:Zj,ssmile:Qj,sstarf:Jj,Star:Xj,star:$j,starf:tz,straightepsilon:ez,straightphi:nz,strns:iz,sub:rz,Sub:oz,subdot:az,subE:sz,sube:lz,subedot:cz,submult:uz,subnE:dz,subne:hz,subplus:pz,subrarr:fz,subset:mz,Subset:gz,subseteq:vz,subseteqq:yz,SubsetEqual:bz,subsetneq:wz,subsetneqq:xz,subsim:Cz,subsub:kz,subsup:Az,succapprox:Ez,succ:Mz,succcurlyeq:Tz,Succeeds:Sz,SucceedsEqual:Nz,SucceedsSlantEqual:Oz,SucceedsTilde:Dz,succeq:Lz,succnapprox:Iz,succneqq:Pz,succnsim:Rz,succsim:Fz,SuchThat:jz,sum:zz,Sum:Bz,sung:Hz,sup1:qz,sup2:Uz,sup3:Gz,sup:Wz,Sup:Vz,supdot:_z,supdsub:Kz,supE:Yz,supe:Zz,supedot:Qz,Superset:Jz,SupersetEqual:Xz,suphsol:$z,suphsub:tB,suplarr:eB,supmult:nB,supnE:iB,supne:rB,supplus:oB,supset:aB,Supset:sB,supseteq:lB,supseteqq:cB,supsetneq:uB,supsetneqq:dB,supsim:hB,supsub:pB,supsup:fB,swarhk:mB,swarr:gB,swArr:vB,swarrow:yB,swnwar:bB,szlig:wB,Tab:xB,target:CB,Tau:kB,tau:AB,tbrk:EB,Tcaron:MB,tcaron:TB,Tcedil:SB,tcedil:NB,Tcy:OB,tcy:DB,tdot:LB,telrec:IB,Tfr:PB,tfr:RB,there4:FB,therefore:jB,Therefore:zB,Theta:BB,theta:HB,thetasym:qB,thetav:UB,thickapprox:GB,thicksim:WB,ThickSpace:VB,ThinSpace:_B,thinsp:KB,thkap:YB,thksim:ZB,THORN:QB,thorn:JB,tilde:XB,Tilde:$B,TildeEqual:tH,TildeFullEqual:eH,TildeTilde:nH,timesbar:iH,timesb:rH,times:oH,timesd:aH,tint:sH,toea:lH,topbot:cH,topcir:uH,top:dH,Topf:hH,topf:pH,topfork:fH,tosa:mH,tprime:gH,trade:vH,TRADE:yH,triangle:bH,triangledown:wH,triangleleft:xH,trianglelefteq:CH,triangleq:kH,triangleright:AH,trianglerighteq:EH,tridot:MH,trie:TH,triminus:SH,TripleDot:NH,triplus:OH,trisb:DH,tritime:LH,trpezium:IH,Tscr:PH,tscr:RH,TScy:FH,tscy:jH,TSHcy:zH,tshcy:BH,Tstrok:HH,tstrok:qH,twixt:UH,twoheadleftarrow:GH,twoheadrightarrow:WH,Uacute:VH,uacute:_H,uarr:KH,Uarr:YH,uArr:ZH,Uarrocir:QH,Ubrcy:JH,ubrcy:XH,Ubreve:$H,ubreve:tq,Ucirc:eq,ucirc:nq,Ucy:iq,ucy:rq,udarr:oq,Udblac:aq,udblac:sq,udhar:lq,ufisht:cq,Ufr:uq,ufr:dq,Ugrave:hq,ugrave:pq,uHar:fq,uharl:mq,uharr:gq,uhblk:vq,ulcorn:yq,ulcorner:bq,ulcrop:wq,ultri:xq,Umacr:Cq,umacr:kq,uml:Aq,UnderBar:Eq,UnderBrace:Mq,UnderBracket:Tq,UnderParenthesis:Sq,Union:Nq,UnionPlus:Oq,Uogon:Dq,uogon:Lq,Uopf:Iq,uopf:Pq,UpArrowBar:Rq,uparrow:Fq,UpArrow:jq,Uparrow:zq,UpArrowDownArrow:Bq,updownarrow:Hq,UpDownArrow:qq,Updownarrow:Uq,UpEquilibrium:Gq,upharpoonleft:Wq,upharpoonright:Vq,uplus:_q,UpperLeftArrow:Kq,UpperRightArrow:Yq,upsi:Zq,Upsi:Qq,upsih:Jq,Upsilon:Xq,upsilon:$q,UpTeeArrow:tU,UpTee:eU,upuparrows:nU,urcorn:iU,urcorner:rU,urcrop:oU,Uring:aU,uring:sU,urtri:lU,Uscr:cU,uscr:uU,utdot:dU,Utilde:hU,utilde:pU,utri:fU,utrif:mU,uuarr:gU,Uuml:vU,uuml:yU,uwangle:bU,vangrt:wU,varepsilon:xU,varkappa:CU,varnothing:kU,varphi:AU,varpi:EU,varpropto:MU,varr:TU,vArr:SU,varrho:NU,varsigma:OU,varsubsetneq:DU,varsubsetneqq:LU,varsupsetneq:IU,varsupsetneqq:PU,vartheta:RU,vartriangleleft:FU,vartriangleright:jU,vBar:zU,Vbar:BU,vBarv:HU,Vcy:qU,vcy:UU,vdash:GU,vDash:WU,Vdash:VU,VDash:_U,Vdashl:KU,veebar:YU,vee:ZU,Vee:QU,veeeq:JU,vellip:XU,verbar:$U,Verbar:tG,vert:eG,Vert:nG,VerticalBar:iG,VerticalLine:rG,VerticalSeparator:oG,VerticalTilde:aG,VeryThinSpace:sG,Vfr:lG,vfr:cG,vltri:uG,vnsub:dG,vnsup:hG,Vopf:pG,vopf:fG,vprop:mG,vrtri:gG,Vscr:vG,vscr:yG,vsubnE:bG,vsubne:wG,vsupnE:xG,vsupne:CG,Vvdash:kG,vzigzag:AG,Wcirc:EG,wcirc:MG,wedbar:TG,wedge:SG,Wedge:NG,wedgeq:OG,weierp:DG,Wfr:LG,wfr:IG,Wopf:PG,wopf:RG,wp:FG,wr:jG,wreath:zG,Wscr:BG,wscr:HG,xcap:qG,xcirc:UG,xcup:GG,xdtri:WG,Xfr:VG,xfr:_G,xharr:KG,xhArr:YG,Xi:ZG,xi:QG,xlarr:JG,xlArr:XG,xmap:$G,xnis:tW,xodot:eW,Xopf:nW,xopf:iW,xoplus:rW,xotime:oW,xrarr:aW,xrArr:sW,Xscr:lW,xscr:cW,xsqcup:uW,xuplus:dW,xutri:hW,xvee:pW,xwedge:fW,Yacute:mW,yacute:gW,YAcy:vW,yacy:yW,Ycirc:bW,ycirc:wW,Ycy:xW,ycy:CW,yen:kW,Yfr:AW,yfr:EW,YIcy:MW,yicy:TW,Yopf:SW,yopf:NW,Yscr:OW,yscr:DW,YUcy:LW,yucy:IW,yuml:PW,Yuml:RW,Zacute:FW,zacute:jW,Zcaron:zW,zcaron:BW,Zcy:HW,zcy:qW,Zdot:UW,zdot:GW,zeetrf:WW,ZeroWidthSpace:VW,Zeta:_W,zeta:KW,zfr:YW,Zfr:ZW,ZHcy:QW,zhcy:JW,zigrarr:XW,zopf:$W,Zopf:tV,Zscr:eV,zscr:nV,zwj:iV,zwnj:rV},aV="Á",sV="á",lV="Â",cV="â",uV="´",dV="Æ",hV="æ",pV="À",fV="à",mV="&",gV="&",vV="Å",yV="å",bV="Ã",wV="ã",xV="Ä",CV="ä",kV="¦",AV="Ç",EV="ç",MV="¸",TV="¢",SV="©",NV="©",OV="¤",DV="°",LV="÷",IV="É",PV="é",RV="Ê",FV="ê",jV="È",zV="è",BV="Ð",HV="ð",qV="Ë",UV="ë",GV="½",WV="¼",VV="¾",_V=">",KV=">",YV="Í",ZV="í",QV="Î",JV="î",XV="¡",$V="Ì",t_="ì",e_="¿",n_="Ï",i_="ï",r_="«",o_="<",a_="<",s_="¯",l_="µ",c_="·",u_=" ",d_="¬",h_="Ñ",p_="ñ",f_="Ó",m_="ó",g_="Ô",v_="ô",y_="Ò",b_="ò",w_="ª",x_="º",C_="Ø",k_="ø",A_="Õ",E_="õ",M_="Ö",T_="ö",S_="¶",N_="±",O_="£",D_='"',L_='"',I_="»",P_="®",R_="®",F_="§",j_="­",z_="¹",B_="²",H_="³",q_="ß",U_="Þ",G_="þ",W_="×",V_="Ú",__="ú",K_="Û",Y_="û",Z_="Ù",Q_="ù",J_="¨",X_="Ü",$_="ü",tK="Ý",eK="ý",nK="¥",iK="ÿ",rK={Aacute:aV,aacute:sV,Acirc:lV,acirc:cV,acute:uV,AElig:dV,aelig:hV,Agrave:pV,agrave:fV,amp:mV,AMP:gV,Aring:vV,aring:yV,Atilde:bV,atilde:wV,Auml:xV,auml:CV,brvbar:kV,Ccedil:AV,ccedil:EV,cedil:MV,cent:TV,copy:SV,COPY:NV,curren:OV,deg:DV,divide:LV,Eacute:IV,eacute:PV,Ecirc:RV,ecirc:FV,Egrave:jV,egrave:zV,ETH:BV,eth:HV,Euml:qV,euml:UV,frac12:GV,frac14:WV,frac34:VV,gt:_V,GT:KV,Iacute:YV,iacute:ZV,Icirc:QV,icirc:JV,iexcl:XV,Igrave:$V,igrave:t_,iquest:e_,Iuml:n_,iuml:i_,laquo:r_,lt:o_,LT:a_,macr:s_,micro:l_,middot:c_,nbsp:u_,not:d_,Ntilde:h_,ntilde:p_,Oacute:f_,oacute:m_,Ocirc:g_,ocirc:v_,Ograve:y_,ograve:b_,ordf:w_,ordm:x_,Oslash:C_,oslash:k_,Otilde:A_,otilde:E_,Ouml:M_,ouml:T_,para:S_,plusmn:N_,pound:O_,quot:D_,QUOT:L_,raquo:I_,reg:P_,REG:R_,sect:F_,shy:j_,sup1:z_,sup2:B_,sup3:H_,szlig:q_,THORN:U_,thorn:G_,times:W_,Uacute:V_,uacute:__,Ucirc:K_,ucirc:Y_,Ugrave:Z_,ugrave:Q_,uml:J_,Uuml:X_,uuml:$_,Yacute:tK,yacute:eK,yen:nK,yuml:iK},oK="&",aK="'",sK=">",lK="<",cK='"',uK={amp:oK,apos:aK,gt:sK,lt:lK,quot:cK},dK={},hK={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},pK=Po&&Po.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(dK,"__esModule",{value:!0});var fK=pK(hK),mK=String.fromCodePoint||function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t),e};function gK(t){return t>=55296&&t<=57343||t>1114111?"�":(t in fK.default&&(t=fK.default[t]),mK(t))}dK.default=gK;var vK=Po&&Po.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ho,"__esModule",{value:!0}),Ho.decodeHTML=Ho.decodeHTMLStrict=Ho.decodeXML=void 0;var yK=vK(oV),bK=vK(rK),wK=vK(uK),xK=vK(dK),CK=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function kK(t){var e=EK(t);return function(t){return String(t).replace(CK,e)}}Ho.decodeXML=kK(wK.default),Ho.decodeHTMLStrict=kK(yK.default);var AK=function(t,e){return t1?jK(t):t.charCodeAt(0)).toString(16).toUpperCase()+";"}function BK(t,e){return function(n){return n.replace(e,(function(e){return t[e]})).replace(FK,zK)}}var HK=new RegExp(OK.source+"|"+FK.source,"g");function qK(t){return t.replace(HK,zK)}function UK(t){return t.replace(OK,zK)}function GK(t){return function(e){return e.replace(HK,(function(e){return t[e]||zK(e)}))}}MK.escape=qK,MK.escapeUTF8=UK,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var e=Ho,n=MK;function i(t,n){return(!n||n<=0?e.decodeXML:e.decodeHTML)(t)}function r(t,n){return(!n||n<=0?e.decodeXML:e.decodeHTMLStrict)(t)}function o(t,e){return(!e||e<=0?n.encodeXML:n.encodeHTML)(t)}t.decode=i,t.decodeStrict=r,t.encode=o;var a=MK;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return a.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return a.encodeNonAsciiHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return a.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return a.escapeUTF8}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return a.encodeHTML}});var s=Ho;Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return s.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return s.decodeXML}})}(Bo);var WK="&(?:#x[a-f0-9]{1,6}|#[0-9]{1,7}|[a-z][a-z0-9]{1,31});",VK=92,_K=/[\\&]/,KK="[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]",YK=new RegExp("\\\\"+KK+"|"+WK,"gi"),ZK='[&<>"]',QK=new RegExp(ZK,"g"),JK=function(t){return t.charCodeAt(0)===VK?t.charAt(1):Bo.decodeHTML(t)};function XK(t){return _K.test(t)?t.replace(YK,JK):t}function $K(t){try{return zo(t)}catch(e){return t}}function tY(t){switch(t){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";default:return t}}function eY(t){return QK.test(t)?t.replace(QK,tY):t}function nY(t,e){for(var n=[],i=0;i`\\x00-\\x20]+",zY="'[^']*'",BY='"[^"]*"',HY="(?:"+jY+"|"+zY+"|"+BY+")",qY="(?:\\s*=\\s*"+HY+")",UY="(?:\\s+"+FY+qY+"?)",GY="<"+RY+UY+"*\\s*/?>",WY="]",VY="\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e",_Y="[<][?].*?[?][>]",KY="]*>",YY="",ZY="(?:"+GY+"|"+WY+"|"+VY+"|"+_Y+"|"+KY+"|"+YY+")",QY=new RegExp("^"+ZY,"i");if(String.fromCodePoint)PY=function(t){try{return String.fromCodePoint(t)}catch(e){if(e instanceof RangeError)return String.fromCharCode(65533);throw e}};else{var JY=String.fromCharCode,XY=Math.floor;PY=function(){for(var t=[],e=0;e1114111||XY(c)!==c)return String.fromCharCode(65533);c<=65535?o.push(c):(c-=65536,n=55296+(c>>10),i=c%1024+56320,o.push(n,i)),(a+1===s||o.length>r)&&(l+=JY.apply(void 0,o),o.length=0)}return l}}var $Y=PY,tZ="(?:[w-]+.)*[A-Za-z0-9-]+.[A-Za-z0-9-]+",eZ="[^<\\s]*[^a&&d.push(IY(r.substring(a,m[0]),u(a,m[0]-1)));var y=AY("link",u.apply(void 0,m));y.appendChild(IY(v,u.apply(void 0,m))),y.destination=g,y.extendedAutolink=!0,d.push(y),a=m[1]+1}a?@\[\]\\^_`{|}~\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]/),PZ=new RegExp('^(?:"('+LZ+'|[^"\\x00])*"|\'('+LZ+"|[^'\\x00])*'|\\(("+LZ+"|[^()\\x00])*\\))"),RZ=/^(?:<(?:[^<>\n\\\x00]|\\.)*>)/,FZ=new RegExp("^"+KK),jZ=new RegExp("^"+WK,"i"),zZ=/`+/,BZ=/^`+/,HZ=/\.\.\./g,qZ=/--+/g,UZ=/^<([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])?)*)>/,GZ=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,WZ=/^ *(?:\n *)?/,VZ=/^[ \t\n\x0b\x0c\x0d]/,_Z=/^\s/,KZ=/ *$/,YZ=/^ */,ZZ=/^ *(?:\n|$)/,QZ=/^\[(?:[^\\\[\]]|\\.){0,1000}\]/,JZ=/^[^\n`\[\]\\!<&*_'"~$]+/m,XZ=function(){function t(t){this.subject="",this.delimiters=null,this.brackets=null,this.pos=0,this.lineStartNum=0,this.lineIdx=0,this.lineOffsets=[0],this.linePosOffset=0,this.refMap={},this.refLinkCandidateMap={},this.refDefCandidateMap={},this.options=t}return t.prototype.sourcepos=function(t,e){var n=this.linePosOffset+this.lineOffsets[this.lineIdx],i=this.lineStartNum+this.lineIdx,r=[i,t+n];return"number"===typeof e?[r,[i,e+n]]:r},t.prototype.nextLine=function(){this.lineIdx+=1,this.linePosOffset=-this.pos},t.prototype.match=function(t){var e=t.exec(this.subject.slice(this.pos));return null===e?null:(this.pos+=e.index+e[0].length,e[0])},t.prototype.peek=function(){return this.pos1){var l=cZ(s);this.lineIdx+=s.length-1,this.linePosOffset=-(this.pos-l.length-n.length),a[1]=this.sourcepos(this.pos),o=s.join(" ")}var c=AY("code",a);return o.length>0&&null!==o.match(/[^ ]/)&&" "==o[0]&&" "==o[o.length-1]?c.literal=o.slice(1,o.length-1):c.literal=o,c.tickCount=n.length,t.appendChild(c),!0}return this.pos=r,t.appendChild(IY(n,this.sourcepos(e,this.pos-1))),!0},t.prototype.parseBackslash=function(t){var e,n=this.subject;this.pos+=1;var i=this.pos;return this.peek()===mZ?(this.pos+=1,e=AY("linebreak",this.sourcepos(this.pos-1,this.pos)),t.appendChild(e),this.nextLine()):FZ.test(n.charAt(this.pos))?(t.appendChild(IY(n.charAt(this.pos),this.sourcepos(i,this.pos))),this.pos+=1):t.appendChild(IY("\\",this.sourcepos(i,i))),!0},t.prototype.parseAutolink=function(t){var e,n,i,r=this.pos+1;return(e=this.match(UZ))?(n=e.slice(1,e.length-1),i=AY("link",this.sourcepos(r,this.pos)),i.destination=$K("mailto:"+n),i.title="",i.appendChild(IY(n,this.sourcepos(r+1,this.pos-1))),t.appendChild(i),!0):!!(e=this.match(GZ))&&(n=e.slice(1,e.length-1),i=AY("link",this.sourcepos(r,this.pos)),i.destination=$K(n),i.title="",i.appendChild(IY(n,this.sourcepos(r+1,this.pos-1))),t.appendChild(i),!0)},t.prototype.parseHtmlTag=function(t){var e=this.pos+1,n=this.match(QY);if(null===n)return!1;var i=AY("htmlInline",this.sourcepos(e,this.pos));return i.literal=n,t.appendChild(i),!0},t.prototype.scanDelims=function(t){var e=0,n=this.pos;if(t===NZ||t===OZ)e++,this.pos++;else while(this.peek()===t)e++,this.pos++;if(0===e||e<2&&(t===xZ||t===DZ))return this.pos=n,null;var i,r=0===n?"\n":this.subject.charAt(n-1),o=this.peek();i=-1===o?"\n":$Y(o);var a,s,l=_Z.test(i),c=IZ.test(i),u=_Z.test(r),d=IZ.test(r),h=!l&&(!c||u||d),p=!u&&(!d||l||c);return t===vZ?(a=h&&(!p||d),s=p&&(!h||c)):t===NZ||t===OZ?(a=h&&!p,s=p):t===DZ?(a=!l,s=!u):(a=h,s=p),this.pos=n,{numdelims:e,canOpen:a,canClose:s}},t.prototype.handleDelim=function(t,e){var n=this.scanDelims(t);if(!n)return!1;var i,r=n.numdelims,o=this.pos+1;this.pos+=r,i=t===NZ?"’":t===OZ?"“":this.subject.slice(o-1,this.pos);var a=IY(i,this.sourcepos(o,this.pos));return e.appendChild(a),(n.canOpen||n.canClose)&&(this.options.smart||t!==NZ&&t!==OZ)&&(this.delimiters={cc:t,numdelims:r,origdelims:r,node:a,previous:this.delimiters,next:null,canOpen:n.canOpen,canClose:n.canClose},this.delimiters.previous&&(this.delimiters.previous.next=this.delimiters)),!0},t.prototype.removeDelimiter=function(t){null!==t.previous&&(t.previous.next=t.next),null===t.next?this.delimiters=t.previous:t.next.previous=t.previous},t.prototype.removeDelimitersBetween=function(t,e){t.next!==e&&(t.next=e,e.previous=t)},t.prototype.processEmphasis=function(t){var e,n,i,r,o,a,s,l=!1,c=(e={},e[vZ]=[t,t,t],e[gZ]=[t,t,t],e[NZ]=[t],e[OZ]=[t],e[xZ]=[t],e[DZ]=[t],e);i=this.delimiters;while(null!==i&&i.previous!==t)i=i.previous;while(null!==i){var u=i.cc,d=u===vZ||u===gZ;if(i.canClose){n=i.previous,s=!1;while(null!==n&&n!==t&&n!==c[u][d?i.origdelims%3:0]){if(l=d&&(i.canOpen||n.canClose)&&i.origdelims%3!==0&&(n.origdelims+i.origdelims)%3===0,n.cc===i.cc&&n.canOpen&&!l){s=!0;break}n=n.previous}if(r=i,d||u===xZ||u===DZ)if(s){if(n){var h=i.numdelims>=2&&n.numdelims>=2?2:1,p=d?0:1;o=n.node,a=i.node;var f=d?1===h?"emph":"strong":"strike";u===DZ&&(f="customInline");var m=AY(f),g=o.sourcepos[1],v=a.sourcepos[0];m.sourcepos=[[g[0],g[1]-h+1],[v[0],v[1]+h-1]],o.sourcepos[1][1]-=h,a.sourcepos[0][1]+=h,o.literal=o.literal.slice(h),a.literal=a.literal.slice(h),n.numdelims-=h,i.numdelims-=h;var y=o.next,b=void 0;while(y&&y!==a)b=y.next,y.unlink(),m.appendChild(y),y=b;if(u===DZ){var w=m.firstChild,x=w.literal||"",C=x.split(/\s/)[0];m.info=C,x.length<=C.length?w.unlink():(w.sourcepos[0][1]+=C.length,w.literal=x.replace(C+" ",""))}if(o.insertAfter(m),this.removeDelimitersBetween(n,i),n.numdelims<=p&&(0===n.numdelims&&o.unlink(),this.removeDelimiter(n)),i.numdelims<=p){0===i.numdelims&&a.unlink();var k=i.next;this.removeDelimiter(i),i=k}}}else i=i.next;else u===NZ?(i.node.literal="’",s&&(n.node.literal="‘"),i=i.next):u===OZ&&(i.node.literal="”",s&&(n.node.literal="“"),i=i.next);s||(c[u][d?r.origdelims%3:0]=r.previous,r.canOpen||this.removeDelimiter(r))}else i=i.next}while(null!==this.delimiters&&this.delimiters!==t)this.removeDelimiter(this.delimiters)},t.prototype.parseLinkTitle=function(){var t=this.match(PZ);return null===t?null:XK(t.substr(1,t.length-2))},t.prototype.parseLinkDestination=function(){var t=this.match(RZ);if(null===t){if(this.peek()===CZ)return null;var e=this.pos,n=0,i=void 0;while(-1!==(i=this.peek()))if(i===AZ&&FZ.test(this.subject.charAt(this.pos+1)))this.pos+=1,-1!==this.peek()&&(this.pos+=1);else if(i===MZ)this.pos+=1,n+=1;else if(i===TZ){if(n<1)break;this.pos+=1,n-=1}else{if(null!==VZ.exec($Y(i)))break;this.pos+=1}return this.pos===e&&i!==TZ||0!==n?null:(t=this.subject.substr(e,this.pos-e),$K(XK(t)))}return $K(XK(t.substr(1,t.length-2)))},t.prototype.parseLinkLabel=function(){var t=this.match(QZ);return null===t||t.length>1001?0:t.length},t.prototype.parseOpenBracket=function(t){var e=this.pos;this.pos+=1;var n=IY("[",this.sourcepos(this.pos,this.pos));return t.appendChild(n),this.addBracket(n,e,!1),!0},t.prototype.parseBang=function(t){var e=this.pos;if(this.pos+=1,this.peek()===bZ){this.pos+=1;var n=IY("![",this.sourcepos(this.pos-1,this.pos));t.appendChild(n),this.addBracket(n,e+1,!0)}else{n=IY("!",this.sourcepos(this.pos,this.pos));t.appendChild(n)}return!0},t.prototype.parseCloseBracket=function(t){var e=null,n=null,i=!1;this.pos+=1;var r=this.pos,o=this.brackets;if(null===o)return t.appendChild(IY("]",this.sourcepos(r,r))),!0;if(!o.active)return t.appendChild(IY("]",this.sourcepos(r,r))),this.removeBracket(),!0;var a=o.image,s=this.pos;this.peek()===MZ&&(this.pos++,this.spnl()&&null!==(e=this.parseLinkDestination())&&this.spnl()&&(VZ.test(this.subject.charAt(this.pos-1))&&(n=this.parseLinkTitle()),1)&&this.spnl()&&this.peek()===TZ?(this.pos+=1,i=!0):this.pos=s);var l="";if(!i){var c=this.pos,u=this.parseLinkLabel();if(u>2?l=this.subject.slice(c,c+u):o.bracketAfter||(l=this.subject.slice(o.index,r)),0===u&&(this.pos=s),l){l=uZ(l);var d=this.refMap[l];d&&(e=d.destination,n=d.title,i=!0)}}if(i){var h=AY(a?"image":"link");h.destination=e,h.title=n||"",h.sourcepos=[o.startpos,this.sourcepos(this.pos)];var p=o.node.next,f=void 0;while(p)f=p.next,p.unlink(),h.appendChild(p),p=f;if(t.appendChild(h),this.processEmphasis(o.previousDelimiter),this.removeBracket(),o.node.unlink(),!a){o=this.brackets;while(null!==o)o.image||(o.active=!1),o=o.previous}return this.options.referenceDefinition&&(this.refLinkCandidateMap[t.id]={node:t,refLabel:l}),!0}return this.removeBracket(),this.pos=r,t.appendChild(IY("]",this.sourcepos(r,r))),this.options.referenceDefinition&&(this.refLinkCandidateMap[t.id]={node:t,refLabel:l}),!0},t.prototype.addBracket=function(t,e,n){null!==this.brackets&&(this.brackets.bracketAfter=!0),this.brackets={node:t,startpos:this.sourcepos(e+(n?0:1)),previous:this.brackets,previousDelimiter:this.delimiters,index:e,image:n,active:!0}},t.prototype.removeBracket=function(){this.brackets&&(this.brackets=this.brackets.previous)},t.prototype.parseEntity=function(t){var e,n=this.pos+1;return!!(e=this.match(jZ))&&(t.appendChild(IY(Bo.decodeHTML(e),this.sourcepos(n,this.pos))),!0)},t.prototype.parseString=function(t){var e,n=this.pos+1;if(e=this.match(JZ)){if(this.options.smart){var i=e.replace(HZ,"…").replace(qZ,(function(t){var e=0,n=0;return t.length%3===0?n=t.length/3:t.length%2===0?e=t.length/2:t.length%3===2?(e=1,n=(t.length-2)/3):(e=2,n=(t.length-4)/3),nY("—",n)+nY("–",e)}));t.appendChild(IY(i,this.sourcepos(n,this.pos)))}else{var r=IY(e,this.sourcepos(n,this.pos));t.appendChild(r)}return!0}return!1},t.prototype.parseNewline=function(t){this.pos+=1;var e=t.lastChild;if(e&&"text"===e.type&&" "===e.literal[e.literal.length-1]){var n=" "===e.literal[e.literal.length-2],i=e.literal.length;e.literal=e.literal.replace(KZ,"");var r=i-e.literal.length;e.sourcepos[1][1]-=r,t.appendChild(AY(n?"linebreak":"softbreak",this.sourcepos(this.pos-r,this.pos)))}else t.appendChild(AY("softbreak",this.sourcepos(this.pos,this.pos)));return this.nextLine(),this.match(YZ),!0},t.prototype.parseReference=function(t,e){if(!this.options.referenceDefinition)return 0;this.subject=t.stringContent,this.pos=0;var n=null,i=this.pos,r=this.parseLinkLabel();if(0===r)return 0;var o=this.subject.substr(0,r);if(this.peek()!==SZ)return this.pos=i,0;this.pos++,this.spnl();var a=this.parseLinkDestination();if(null===a)return this.pos=i,0;var s=this.pos;this.spnl(),this.pos!==s&&(n=this.parseLinkTitle()),null===n&&(n="",this.pos=s);var l=!0;if(null===this.match(ZZ)&&(""===n?l=!1:(n="",this.pos=s,l=null!==this.match(ZZ))),!l)return this.pos=i,0;var c=uZ(o);if(""===c)return this.pos=i,0;var u=this.getReferenceDefSourcepos(t);t.sourcepos[0][0]=u[1][0]+1;var d=AY("refDef",u);return d.title=n,d.dest=a,d.label=c,t.insertBefore(d),e[c]?this.refDefCandidateMap[d.id]=d:e[c]=FJ(d),this.pos-i},t.prototype.mergeTextNodes=function(t){var e,n=[];while(e=t.next()){var i=e.entering,r=e.node;if(i&&"text"===r.type)n.push(r);else if(1===n.length)n=[];else if(n.length>1){var o=n[0],a=n[n.length-1];o.sourcepos&&a.sourcepos&&(o.sourcepos[1]=a.sourcepos[1]),o.next=a.next,o.next&&(o.next.prev=o);for(var s=1;s0&&bQ(vQ(n,t.offset)))t.advanceOffset(1,!0),r--;return 0},finalize:function(t,e){if(null!==e.stringContent){var n=e.stringContent,i=n.indexOf("\n"),r=n.slice(0,i),o=n.slice(i+1),a=r.match(/^(\s*)(.*)/);e.info=XK(a[2].trim()),e.literal=o,e.stringContent=null}},canContain:function(){return!1},acceptsLines:!0},CQ={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!0},kQ={continue:function(){return 0},finalize:function(){},canContain:function(t){return"item"!==t},acceptsLines:!1},AQ={continue:function(){return 0},finalize:function(t,e){var n=e.firstChild;while(n){if(gQ(n)&&n.next){e.listData.tight=!1;break}var i=n.firstChild;while(i){if(gQ(i)&&(n.next||i.next)){e.listData.tight=!1;break}i=i.next}n=n.next}},canContain:function(t){return"item"===t},acceptsLines:!1},EQ={continue:function(t){var e=t.currentLine;return t.indented||vQ(e,t.nextNonspace)!==uQ?1:(t.advanceNextNonspace(),t.advanceOffset(1,!1),bQ(vQ(e,t.offset))&&t.advanceOffset(1,!0),0)},finalize:function(){},canContain:function(t){return"item"!==t},acceptsLines:!1},MQ={continue:function(t,e){if(t.blank){if(null===e.firstChild)return 1;t.advanceNextNonspace()}else{if(!(t.indent>=e.listData.markerOffset+e.listData.padding))return 1;t.advanceOffset(e.listData.markerOffset+e.listData.padding,!0)}return 0},finalize:tQ,canContain:function(t){return"item"!==t},acceptsLines:!1},TQ={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},SQ={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},NQ={continue:function(t,e){var n=t.currentLine,i=t.indent;if(e.isFenced){var r=i<=3&&n.charAt(t.nextNonspace)===e.fenceChar&&n.slice(t.nextNonspace).match(mQ);if(r&&r[0].length>=e.fenceLength)return t.lastLineLength=t.offset+i+r[0].length,t.finalize(e,t.lineNumber),2;var o=e.fenceOffset;while(o>0&&bQ(vQ(n,t.offset)))t.advanceOffset(1,!0),o--}else if(i>=lQ)t.advanceOffset(lQ,!0);else{if(!t.blank)return 1;t.advanceNextNonspace()}return 0},finalize:function(t,e){var n;if(null!==e.stringContent){if(e.isFenced){var i=e.stringContent,r=i.indexOf("\n"),o=i.slice(0,r),a=i.slice(r+1),s=o.match(/^(\s*)(.*)/);e.infoPadding=s[1].length,e.info=XK(s[2].trim()),e.literal=a}else e.literal=null===(n=e.stringContent)||void 0===n?void 0:n.replace(/(\n *)+$/,"\n");e.stringContent=null}},canContain:function(){return!1},acceptsLines:!0},OQ={continue:function(t,e){return!t.blank||6!==e.htmlBlockType&&7!==e.htmlBlockType?0:1},finalize:function(t,e){var n;e.literal=(null===(n=e.stringContent)||void 0===n?void 0:n.replace(/(\n *)+$/,""))||null,e.stringContent=null},canContain:function(){return!1},acceptsLines:!0},DQ={continue:function(t){return t.blank?1:0},finalize:function(t,e){if(null!==e.stringContent){var n,i=!1;while(vQ(e.stringContent,0)===pQ&&(n=t.inlineParser.parseReference(e,t.refMap)))e.stringContent=e.stringContent.slice(n),i=!0;i&&yQ(e.stringContent)&&e.unlink()}},canContain:function(){return!1},acceptsLines:!0},LQ=CQ,IQ=CQ,PQ={document:kQ,list:AQ,blockQuote:EQ,item:MQ,heading:TQ,thematicBreak:SQ,codeBlock:NQ,htmlBlock:OQ,paragraph:DQ,table:eQ,tableBody:nQ,tableHead:iQ,tableRow:aQ,tableCell:sQ,tableDelimRow:rQ,tableDelimCell:oQ,refDef:LQ,customBlock:xQ,frontMatter:IQ};function RQ(t){for(var e=0,n=0,i=[],r=0;r=o.columns.length&&(t.ignored=!0),r.appendChild(t)})),2},HQ=/^(\$\$)(\s*[a-zA-Z])+/,qQ=/^(\$\$)(\s*[a-zA-Z])+.*(\$\$)/,UQ=function(t){var e;if(!t.indented&&!qQ.test(t.currentLine)&&(e=t.currentLine.match(HQ))){var n=e[1].length;t.closeUnmatchedBlocks();var i=t.addChild("customBlock",t.nextNonspace);return i.syntaxLength=n,i.offset=t.indent,t.advanceNextNonspace(),t.advanceOffset(n,!1),2}return 0},GQ=/^`{3,}(?!.*`)|^~{3,}/,WQ=[/./,/^<(?:script|pre|style)(?:\s|>|$)/i,/^/,/\?>/,/>/,/\]\]>/],hJ=/^[#`~*+_=<>0-9-;$]/,pJ=/\r\n|\n|\r/;function fJ(){return AY("document",[[1,1],[0,0]])}var mJ={smart:!1,tagFilter:!1,extendedAutolinks:!1,disallowedHtmlBlockTags:[],referenceDefinition:!1,disallowDeepHeading:!1,customParser:null,frontMatter:!1},gJ=function(){function t(t){this.options=Lo(Lo({},mJ),t),this.doc=fJ(),this.tip=this.doc,this.oldtip=this.doc,this.lineNumber=0,this.offset=0,this.column=0,this.nextNonspace=0,this.nextNonspaceColumn=0,this.indent=0,this.currentLine="",this.indented=!1,this.blank=!1,this.partiallyConsumedTab=!1,this.allClosed=!0,this.lastMatchedContainer=this.doc,this.refMap={},this.refLinkCandidateMap={},this.refDefCandidateMap={},this.lastLineLength=0,this.lines=[],this.options.frontMatter&&(PQ.frontMatter=uJ,sJ.unshift(cJ)),this.inlineParser=new XZ(this.options)}return t.prototype.advanceOffset=function(t,e){void 0===e&&(e=!1);var n,i,r,o=this.currentLine;while(t>0&&(r=o[this.offset]))"\t"===r?(n=4-this.column%4,e?(this.partiallyConsumedTab=n>t,i=n>t?t:n,this.column+=i,this.offset+=this.partiallyConsumedTab?0:1,t-=i):(this.partiallyConsumedTab=!1,this.column+=n,this.offset+=1,t-=1)):(this.partiallyConsumedTab=!1,this.offset+=1,this.column+=1,t-=1)},t.prototype.advanceNextNonspace=function(){this.offset=this.nextNonspace,this.column=this.nextNonspaceColumn,this.partiallyConsumedTab=!1},t.prototype.findNextNonspace=function(){var t,e=this.currentLine,n=this.offset,i=this.column;while(""!==(t=e.charAt(n)))if(" "===t)n++,i++;else{if("\t"!==t)break;n++,i+=4-i%4}this.blank="\n"===t||"\r"===t||""===t,this.nextNonspace=n,this.nextNonspaceColumn=i,this.indent=this.nextNonspaceColumn-this.column,this.indented=this.indent>=lQ},t.prototype.addLine=function(){if(this.partiallyConsumedTab){this.offset+=1;var t=4-this.column%4;this.tip.stringContent+=nY(" ",t)}this.tip.lineOffsets?this.tip.lineOffsets.push(this.offset):this.tip.lineOffsets=[this.offset],this.tip.stringContent+=this.currentLine.slice(this.offset)+"\n"},t.prototype.addChild=function(t,e){while(!PQ[this.tip.type].canContain(t))this.finalize(this.tip,this.lineNumber-1);var n=e+1,i=AY(t,[[this.lineNumber,n],[0,0]]);return i.stringContent="",this.tip.appendChild(i),this.tip=i,i},t.prototype.closeUnmatchedBlocks=function(){if(!this.allClosed){while(this.oldtip!==this.lastMatchedContainer){var t=this.oldtip.parent;this.finalize(this.oldtip,this.lineNumber-1),this.oldtip=t}this.allClosed=!0}},t.prototype.finalize=function(t,e){var n=t.parent;t.open=!1,t.sourcepos[1]=[e,this.lastLineLength],PQ[t.type].finalize(this,t),this.tip=n},t.prototype.processInlines=function(t){var e,n=this.options.customParser,i=t.walker();this.inlineParser.refMap=this.refMap,this.inlineParser.refLinkCandidateMap=this.refLinkCandidateMap,this.inlineParser.refDefCandidateMap=this.refDefCandidateMap,this.inlineParser.options=this.options;while(e=i.next()){var r=e.node,o=e.entering,a=r.type;n&&n[a]&&n[a](r,{entering:o,options:this.options}),o||"paragraph"!==a&&"heading"!==a&&("tableCell"!==a||r.ignored)||this.inlineParser.parse(r)}},t.prototype.incorporateLine=function(t){var e=this.doc;this.oldtip=this.tip,this.offset=0,this.column=0,this.blank=!1,this.partiallyConsumedTab=!1,this.lineNumber+=1,-1!==t.indexOf("\0")&&(t=t.replace(/\0/g,"�")),this.currentLine=t;var n,i=!0;while((n=e.lastChild)&&n.open){switch(e=n,this.findNextNonspace(),PQ[e.type]["continue"](this,e)){case 0:break;case 1:i=!1;break;case 2:return void(this.lastLineLength=t.length);default:throw new Error("continue returned illegal value, must be 0, 1, or 2")}if(!i){e=e.parent;break}}this.allClosed=e===this.oldtip,this.lastMatchedContainer=e;var r="paragraph"!==e.type&&PQ[e.type].acceptsLines,o=sJ.length;while(!r){if(this.findNextNonspace(),"table"!==e.type&&"tableBody"!==e.type&&"paragraph"!==e.type&&!this.indented&&!hJ.test(t.slice(this.nextNonspace))){this.advanceNextNonspace();break}var a=0;while(a=1&&e.htmlBlockType<=5&&dJ[e.htmlBlockType].test(this.currentLine.slice(this.offset))&&(this.lastLineLength=t.length,this.finalize(e,this.lineNumber))):this.offsete[0]?-1:t[1]e[1]?-1:0}function yJ(t,e){var n=t[0],i=t[1];return 1===vJ(i,e)?1:-1===vJ(n,e)?-1:0}function bJ(t,e){if(t.parent===e.parent&&t!==e){var n=t.next;while(n&&n!==e){for(var i=n.next,r=0,o=["parent","prev","next"];r=0;n-=1)t.prependChild(e[n])}function kJ(t,e){if(t&&t.parent&&0!==e){var n,i=t.parent.walker();i.resumeAt(t,!0);while(n=i.next()){var r=n.node,o=n.entering;o&&(r.sourcepos[0][0]+=e,r.sourcepos[1][0]+=e)}}}function AJ(t,e){var n=t[0],i=t[1];return i[0]e?-1:0}function EJ(t,e){var n=t.firstChild;while(n){var i=AJ(n.sourcepos,e);if(0===i)return n;if(-1===i)return n.prev||n;n=n.next}return t.lastChild}function MJ(t){while(t.lastChild)t=t.lastChild;return t}function TJ(t){while(t.parent&&"document"!==t.parent.type&&t.parent.sourcepos[0][0]===t.sourcepos[0][0])t=t.parent;return t}function SJ(t,e){var n=t.firstChild,i=null;while(n){var r=AJ(n.sourcepos,e);if(0===r){if(n.sourcepos[0][0]===e||!n.firstChild)return n;i=n,n=n.firstChild}else{if(-1===r)break;i=n,n=n.next}}return i?TJ(MJ(i)):null}function NJ(t,e){var n=t,i=null;while(n){var r=yJ(n.sourcepos,e);if(0===r){if(!n.firstChild)return n;i=n,n=n.firstChild}else{if(-1===r)return i;if(!n.next)return i;n=n.next}}return n}function OJ(t){return lY(t)||null}function DJ(t,e,n){if(void 0===n&&(n=null),e){var i=e.walker();while(e&&e!==n){t(e);var r=i.next();if(!r)break;e=r.node}}}function LJ(t){var e=OJ(t);if(!e)return!0;while(e&&"document"!==e.type){if(!e.parent&&!e.prev&&!e.next)return!0;e=e.parent}return!1}var IJ=/\r\n|\n|\r/;function PJ(t){var e=t.match(/^[ \t]+/);if(e&&(e[0].length>=2||/\t/.test(e[0])))return!0;var n=e?t.slice(e.length):t;return YQ.test(n)||ZQ.test(n)}function RJ(t){return!yQ(t)&&-1!==t.indexOf("|")}function FJ(t){var e=t.id,n=t.title,i=t.sourcepos,r=t.dest;return{id:e,title:n,sourcepos:i,unlinked:!1,destination:r}}var jJ=function(){function t(t,e){this.refMap={},this.refLinkCandidateMap={},this.refDefCandidateMap={},this.referenceDefinition=!!(null===e||void 0===e?void 0:e.referenceDefinition),this.parser=new gJ(e),this.parser.setRefMaps(this.refMap,this.refLinkCandidateMap,this.refDefCandidateMap),this.eventHandlerMap={change:[]},t=t||"",this.lineTexts=t.split(IJ),this.root=this.parser.parse(t,this.lineTexts)}return t.prototype.updateLineTexts=function(t,e,n){var i,r=t[0],o=t[1],a=e[0],s=e[1],l=n.split(IJ),c=l.length,u=this.lineTexts[r-1],d=this.lineTexts[a-1];l[0]=u.slice(0,o-1)+l[0],l[c-1]=l[c-1]+d.slice(s-1);var h=a-r+1;return(i=this.lineTexts).splice.apply(i,Io([r-1,h],l)),c-h},t.prototype.updateRootNodeState=function(){if(1===this.lineTexts.length&&""===this.lineTexts[0])return this.root.lastLineBlank=!0,void(this.root.sourcepos=[[1,1],[1,0]]);this.root.lastChild&&(this.root.lastLineBlank=this.root.lastChild.lastLineBlank);var t=this.lineTexts,e=t.length-1;while(""===t[e])e-=1;t.length-2>e&&(e+=1),this.root.sourcepos[1]=[e+1,t[e].length]},t.prototype.replaceRangeNodes=function(t,e,n){t?(xJ(t,n),bJ(t,e),[t.id,e.id].forEach((function(t){return cY(t)})),t.unlink()):e?(xJ(e,n),cY(e.id),e.unlink()):CJ(this.root,n)},t.prototype.getNodeRange=function(t,e){var n=EJ(this.root,t[0]),i=EJ(this.root,e[0]);return i&&i.next&&e[0]+1===i.next.sourcepos[0][0]&&(i=i.next),[n,i]},t.prototype.trigger=function(t,e){this.eventHandlerMap[t].forEach((function(t){t(e)}))},t.prototype.extendEndLine=function(t){while(""===this.lineTexts[t])t+=1;return t},t.prototype.parseRange=function(t,e,n,i){t&&t.prev&&(SY(t.prev)&&PJ(this.lineTexts[n-1])||NY(t.prev)&&RJ(this.lineTexts[n-1]))&&(t=t.prev,n=t.sourcepos[0][0]);var r=this.lineTexts.slice(n-1,i),o=this.parser.partialParseStart(n,r),a=e?e.next:this.root.firstChild,s=o.lastChild,l=s&&EY(s)&&s.open,c=s&&DY(s)&&s.open,u=s&&SY(s);while((l||c)&&a||u&&a&&("list"===a.type||a.sourcepos[0][1]>=2)){var d=this.extendEndLine(a.sourcepos[1][0]);this.parser.partialParseExtends(this.lineTexts.slice(i,d)),t||(t=e),e=a,i=d,a=a.next}this.parser.partialParseFinish();var h=wJ(o);return{newNodes:h,extStartNode:t,extEndNode:e}},t.prototype.getRemovedNodeRange=function(t,e){return!t||t&&OY(t)||e&&OY(e)?null:{id:[t.id,e.id],line:[t.sourcepos[0][0]-1,e.sourcepos[1][0]-1]}},t.prototype.markDeletedRefMap=function(t,e){var n=this;if(!pZ(this.refMap)){var i=function(t){if(OY(t)){var e=n.refMap[t.label];e&&t.id===e.id&&(e.unlinked=!0)}};t&&DJ(i,t.parent,e),e&&DJ(i,e)}},t.prototype.replaceWithNewRefDefState=function(t){var e=this;if(!pZ(this.refMap)){var n=function(t){if(OY(t)){var n=t.label,i=e.refMap[n];i&&!i.unlinked||(e.refMap[n]=FJ(t))}};t.forEach((function(t){DJ(n,t)}))}},t.prototype.replaceWithRefDefCandidate=function(){var t=this;pZ(this.refDefCandidateMap)||dZ(this.refDefCandidateMap,(function(e,n){var i=n.label,r=n.sourcepos,o=t.refMap[i];(!o||o.unlinked||o.sourcepos[0][0]>r[0][0])&&(t.refMap[i]=FJ(n))}))},t.prototype.getRangeWithRefDef=function(t,e,n,i,r){if(this.referenceDefinition&&!pZ(this.refMap)){var o=EJ(this.root,t-1),a=EJ(this.root,e+1);o&&OY(o)&&o!==n&&o!==i&&(n=o,t=n.sourcepos[0][0]),a&&OY(a)&&a!==n&&a!==i&&(i=a,e=this.extendEndLine(i.sourcepos[1][0]+r))}return[n,i,t,e]},t.prototype.parse=function(t,e,n){void 0===n&&(n=0);var i=this.getNodeRange(t,e),r=i[0],o=i[1],a=r?Math.min(r.sourcepos[0][0],t[0]):t[0],s=this.extendEndLine((o?Math.max(o.sourcepos[1][0],e[0]):e[0])+n),l=this.parseRange.apply(this,this.getRangeWithRefDef(a,s,r,o,n)),c=l.newNodes,u=l.extStartNode,d=l.extEndNode,h=this.getRemovedNodeRange(u,d),p=d?d.next:this.root.firstChild;return this.referenceDefinition?(this.markDeletedRefMap(u,d),this.replaceRangeNodes(u,d,c),this.replaceWithNewRefDefState(c)):this.replaceRangeNodes(u,d,c),{nodes:c,removedNodeRange:h,nextNode:p}},t.prototype.parseRefLink=function(){var t=this,e=[];return pZ(this.refMap)||dZ(this.refMap,(function(n,i){i.unlinked&&delete t.refMap[n],dZ(t.refLinkCandidateMap,(function(i,r){var o=r.node,a=r.refLabel;a===n&&e.push(t.parse(o.sourcepos[0],o.sourcepos[1]))}))})),e},t.prototype.removeUnlinkedCandidate=function(){pZ(this.refDefCandidateMap)||[this.refLinkCandidateMap,this.refDefCandidateMap].forEach((function(t){dZ(t,(function(e){LJ(e)&&delete t[e]}))}))},t.prototype.editMarkdown=function(t,e,n){var i=this.updateLineTexts(t,e,n),r=this.parse(t,e,i),o=hZ(r,"nextNode");kJ(r.nextNode,i),this.updateRootNodeState();var a=[o];return this.referenceDefinition&&(this.removeUnlinkedCandidate(),this.replaceWithRefDefCandidate(),a=a.concat(this.parseRefLink())),this.trigger("change",a),a},t.prototype.getLineTexts=function(){return this.lineTexts},t.prototype.getRootNode=function(){return this.root},t.prototype.findNodeAtPosition=function(t){var e=NJ(this.root,t);return e&&e!==this.root?e:null},t.prototype.findFirstNodeAtLine=function(t){return SJ(this.root,t)},t.prototype.on=function(t,e){this.eventHandlerMap[t].push(e)},t.prototype.off=function(t,e){var n=this.eventHandlerMap[t],i=n.indexOf(e);n.splice(i,1)},t.prototype.findNodeById=function(t){return OJ(t)},t.prototype.removeAllNode=function(){uY()},t}(),zJ=["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"],BJ=new RegExp("<(/?(?:"+zJ.join("|")+")[^>]*>)","ig");function HJ(t){return BJ.test(t)?t.replace(BJ,(function(t,e){return"<"+e})):t}var qJ={heading:function(t,e){var n=e.entering;return{type:n?"openTag":"closeTag",tagName:"h"+t.level,outerNewLine:!0}},text:function(t){return{type:"text",content:t.literal}},softbreak:function(t,e){var n=e.options;return{type:"html",content:n.softbreak}},linebreak:function(){return{type:"html",content:"
\n"}},emph:function(t,e){var n=e.entering;return{type:n?"openTag":"closeTag",tagName:"em"}},strong:function(t,e){var n=e.entering;return{type:n?"openTag":"closeTag",tagName:"strong"}},paragraph:function(t,e){var n,i=e.entering,r=null===(n=t.parent)||void 0===n?void 0:n.parent;return r&&"list"===r.type&&r.listData.tight?null:{type:i?"openTag":"closeTag",tagName:"p",outerNewLine:!0}},thematicBreak:function(){return{type:"openTag",tagName:"hr",outerNewLine:!0,selfClose:!0}},blockQuote:function(t,e){var n=e.entering;return{type:n?"openTag":"closeTag",tagName:"blockquote",outerNewLine:!0,innerNewLine:!0}},list:function(t,e){var n=e.entering,i=t.listData,r=i.type,o=i.start,a="bullet"===r?"ul":"ol",s={};return"ol"===a&&null!==o&&1!==o&&(s.start=o.toString()),{type:n?"openTag":"closeTag",tagName:a,attributes:s,outerNewLine:!0}},item:function(t,e){var n=e.entering;return{type:n?"openTag":"closeTag",tagName:"li",outerNewLine:!0}},htmlInline:function(t,e){var n=e.options,i=n.tagFilter?HJ(t.literal):t.literal;return{type:"html",content:i}},htmlBlock:function(t,e){var n=e.options,i=n.tagFilter?HJ(t.literal):t.literal;return n.nodeId?[{type:"openTag",tagName:"div",outerNewLine:!0},{type:"html",content:i},{type:"closeTag",tagName:"div",outerNewLine:!0}]:{type:"html",content:i,outerNewLine:!0}},code:function(t){return[{type:"openTag",tagName:"code"},{type:"text",content:t.literal},{type:"closeTag",tagName:"code"}]},codeBlock:function(t){var e=t.info,n=e?e.split(/\s+/):[],i=[];return n.length>0&&n[0].length>0&&i.push("language-"+eY(n[0])),[{type:"openTag",tagName:"pre",outerNewLine:!0},{type:"openTag",tagName:"code",classNames:i},{type:"text",content:t.literal},{type:"closeTag",tagName:"code"},{type:"closeTag",tagName:"pre",outerNewLine:!0}]},link:function(t,e){var n=e.entering;if(n){var i=t,r=i.title,o=i.destination;return{type:"openTag",tagName:"a",attributes:Lo({href:eY(o)},r&&{title:eY(r)})}}return{type:"closeTag",tagName:"a"}},image:function(t,e){var n=e.getChildrenText,i=e.skipChildren,r=t,o=r.title,a=r.destination;return i(),{type:"openTag",tagName:"img",selfClose:!0,attributes:Lo({src:eY(a),alt:n(t)},o&&{title:eY(o)})}},customBlock:function(t,e,n){var i=t.info.trim().toLowerCase(),r=n[i];if(r)try{return r(t,e)}catch(o){console.warn("[@toast-ui/editor] - The error occurred when "+i+" block node was parsed in markdown renderer: "+o)}return[{type:"openTag",tagName:"div",outerNewLine:!0},{type:"text",content:t.literal},{type:"closeTag",tagName:"div",outerNewLine:!0}]},frontMatter:function(t){return[{type:"openTag",tagName:"div",outerNewLine:!0,attributes:{style:"white-space: pre; display: none;"}},{type:"text",content:t.literal},{type:"closeTag",tagName:"div",outerNewLine:!0}]},customInline:function(t,e,n){var i=t,r=i.info,o=i.firstChild,a=r.trim().toLowerCase(),s=n[a],l=e.entering;if(s)try{return s(t,e)}catch(c){console.warn("[@toast-ui/editor] - The error occurred when "+a+" inline node was parsed in markdown renderer: "+c)}return l?[{type:"openTag",tagName:"span"},{type:"text",content:"$$"+r+(o?" ":"")}]:[{type:"text",content:"$$"},{type:"closeTag",tagName:"span"}]}},UJ={strike:function(t,e){var n=e.entering;return{type:n?"openTag":"closeTag",tagName:"del"}},item:function(t,e){var n=e.entering,i=t.listData,r=i.checked,o=i.task;if(n){var a={type:"openTag",tagName:"li",outerNewLine:!0};return o?[a,{type:"openTag",tagName:"input",selfClose:!0,attributes:Lo(Lo({},r&&{checked:""}),{disabled:"",type:"checkbox"})},{type:"text",content:" "}]:a}return{type:"closeTag",tagName:"li",outerNewLine:!0}},table:function(t,e){var n=e.entering;return{type:n?"openTag":"closeTag",tagName:"table",outerNewLine:!0}},tableHead:function(t,e){var n=e.entering;return{type:n?"openTag":"closeTag",tagName:"thead",outerNewLine:!0}},tableBody:function(t,e){var n=e.entering;return{type:n?"openTag":"closeTag",tagName:"tbody",outerNewLine:!0}},tableRow:function(t,e){var n=e.entering;if(n)return{type:"openTag",tagName:"tr",outerNewLine:!0};var i=[];if(t.lastChild)for(var r=t.parent.parent.columns.length,o=t.lastChild.endIdx,a=o+1;a0&&this.buffer.push(' class="'+i.join(" ")+'"'),r&&Object.keys(r).forEach((function(t){var n=r[t];e.buffer.push(" "+t+'="'+n+'"')})),t.selfClose&&this.buffer.push(" /"),this.buffer.push(">")},t.prototype.generateCloseTagString=function(t){var e=t.tagName;this.buffer.push("")},t.prototype.addNewLine=function(){this.buffer.length&&"\n"!==cZ(cZ(this.buffer))&&this.buffer.push("\n")},t.prototype.addOuterNewLine=function(t){t.outerNewLine&&this.addNewLine()},t.prototype.addInnerNewLine=function(t){t.innerNewLine&&this.addNewLine()},t.prototype.renderTextNode=function(t){this.buffer.push(eY(t.content))},t.prototype.renderRawHtmlNode=function(t){this.addOuterNewLine(t),this.buffer.push(t.content),this.addOuterNewLine(t)},t.prototype.renderElementNode=function(t){"openTag"===t.type?(this.addOuterNewLine(t),this.generateOpenTagString(t),t.selfClose?this.addOuterNewLine(t):this.addInnerNewLine(t)):(this.addInnerNewLine(t),this.generateCloseTagString(t),this.addOuterNewLine(t))},t}(); /*! @license DOMPurify 2.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.3/LICENSE */function _J(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e1?n-1:0),r=1;r/gm),LX=$J(/^data-[\-\w.\u00B7-\uFFFF]/),IX=$J(/^aria-[\-\w]+$/),PX=$J(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),RX=$J(/^(?:\w+script|data):/i),FX=$J(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),jX="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function zX(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:BX(),e=function(t){return qX(t)};if(e.version="2.3.3",e.removed=[],!t||!t.document||9!==t.document.nodeType)return e.isSupported=!1,e;var n=t.document,i=t.document,r=t.DocumentFragment,o=t.HTMLTemplateElement,a=t.Node,s=t.Element,l=t.NodeFilter,c=t.NamedNodeMap,u=void 0===c?t.NamedNodeMap||t.MozNamedAttrMap:c,d=t.Text,h=t.Comment,p=t.DOMParser,f=t.trustedTypes,m=s.prototype,g=yX(m,"cloneNode"),v=yX(m,"nextSibling"),y=yX(m,"childNodes"),b=yX(m,"parentNode");if("function"===typeof o){var w=i.createElement("template");w.content&&w.content.ownerDocument&&(i=w.content.ownerDocument)}var x=HX(f,n),C=x&&tt?x.createHTML(""):"",k=i,A=k.implementation,E=k.createNodeIterator,M=k.createDocumentFragment,T=k.getElementsByTagName,S=n.importNode,N={};try{N=vX(i).documentMode?i.documentMode:{}}catch(Bt){}var O={};e.isSupported="function"===typeof b&&A&&"undefined"!==typeof A.createHTMLDocument&&9!==N;var D=OX,L=DX,I=LX,P=IX,R=RX,F=FX,j=PX,z=null,B=gX({},[].concat(zX(bX),zX(wX),zX(xX),zX(kX),zX(EX))),H=null,q=gX({},[].concat(zX(MX),zX(TX),zX(SX),zX(NX))),U=null,G=null,W=!0,V=!0,_=!1,K=!1,Y=!1,Z=!1,Q=!1,J=!1,X=!1,$=!0,tt=!1,et=!0,nt=!0,it=!1,rt={},ot=null,at=gX({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),st=null,lt=gX({},["audio","video","img","source","image","track"]),ct=null,ut=gX({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dt="http://www.w3.org/1998/Math/MathML",ht="http://www.w3.org/2000/svg",pt="http://www.w3.org/1999/xhtml",ft=pt,mt=!1,gt=void 0,vt=["application/xhtml+xml","text/html"],yt="text/html",bt=void 0,wt=null,xt=i.createElement("form"),Ct=function(t){wt&&wt===t||(t&&"object"===("undefined"===typeof t?"undefined":jX(t))||(t={}),t=vX(t),z="ALLOWED_TAGS"in t?gX({},t.ALLOWED_TAGS):B,H="ALLOWED_ATTR"in t?gX({},t.ALLOWED_ATTR):q,ct="ADD_URI_SAFE_ATTR"in t?gX(vX(ut),t.ADD_URI_SAFE_ATTR):ut,st="ADD_DATA_URI_TAGS"in t?gX(vX(lt),t.ADD_DATA_URI_TAGS):lt,ot="FORBID_CONTENTS"in t?gX({},t.FORBID_CONTENTS):at,U="FORBID_TAGS"in t?gX({},t.FORBID_TAGS):{},G="FORBID_ATTR"in t?gX({},t.FORBID_ATTR):{},rt="USE_PROFILES"in t&&t.USE_PROFILES,W=!1!==t.ALLOW_ARIA_ATTR,V=!1!==t.ALLOW_DATA_ATTR,_=t.ALLOW_UNKNOWN_PROTOCOLS||!1,K=t.SAFE_FOR_TEMPLATES||!1,Y=t.WHOLE_DOCUMENT||!1,J=t.RETURN_DOM||!1,X=t.RETURN_DOM_FRAGMENT||!1,$=!1!==t.RETURN_DOM_IMPORT,tt=t.RETURN_TRUSTED_TYPE||!1,Q=t.FORCE_BODY||!1,et=!1!==t.SANITIZE_DOM,nt=!1!==t.KEEP_CONTENT,it=t.IN_PLACE||!1,j=t.ALLOWED_URI_REGEXP||j,ft=t.NAMESPACE||pt,gt=gt=-1===vt.indexOf(t.PARSER_MEDIA_TYPE)?yt:t.PARSER_MEDIA_TYPE,bt="application/xhtml+xml"===gt?function(t){return t}:sX,K&&(V=!1),X&&(J=!0),rt&&(z=gX({},[].concat(zX(EX))),H=[],!0===rt.html&&(gX(z,bX),gX(H,MX)),!0===rt.svg&&(gX(z,wX),gX(H,TX),gX(H,NX)),!0===rt.svgFilters&&(gX(z,xX),gX(H,TX),gX(H,NX)),!0===rt.mathMl&&(gX(z,kX),gX(H,SX),gX(H,NX))),t.ADD_TAGS&&(z===B&&(z=vX(z)),gX(z,t.ADD_TAGS)),t.ADD_ATTR&&(H===q&&(H=vX(H)),gX(H,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&gX(ct,t.ADD_URI_SAFE_ATTR),t.FORBID_CONTENTS&&(ot===at&&(ot=vX(ot)),gX(ot,t.FORBID_CONTENTS)),nt&&(z["#text"]=!0),Y&&gX(z,["html","head","body"]),z.table&&(gX(z,["tbody"]),delete U.tbody),XJ&&XJ(t),wt=t)},kt=gX({},["mi","mo","mn","ms","mtext"]),At=gX({},["foreignobject","desc","title","annotation-xml"]),Et=gX({},wX);gX(Et,xX),gX(Et,CX);var Mt=gX({},kX);gX(Mt,AX);var Tt=function(t){var e=b(t);e&&e.tagName||(e={namespaceURI:pt,tagName:"template"});var n=sX(t.tagName),i=sX(e.tagName);if(t.namespaceURI===ht)return e.namespaceURI===pt?"svg"===n:e.namespaceURI===dt?"svg"===n&&("annotation-xml"===i||kt[i]):Boolean(Et[n]);if(t.namespaceURI===dt)return e.namespaceURI===pt?"math"===n:e.namespaceURI===ht?"math"===n&&At[i]:Boolean(Mt[n]);if(t.namespaceURI===pt){if(e.namespaceURI===ht&&!At[i])return!1;if(e.namespaceURI===dt&&!kt[i])return!1;var r=gX({},["title","style","font","a","script"]);return!Mt[n]&&(r[n]||!Et[n])}return!1},St=function(t){aX(e.removed,{element:t});try{t.parentNode.removeChild(t)}catch(Bt){try{t.outerHTML=C}catch(Bt){t.remove()}}},Nt=function(t,n){try{aX(e.removed,{attribute:n.getAttributeNode(t),from:n})}catch(Bt){aX(e.removed,{attribute:null,from:n})}if(n.removeAttribute(t),"is"===t&&!H[t])if(J||X)try{St(n)}catch(Bt){}else try{n.setAttribute(t,"")}catch(Bt){}},Ot=function(t){var e=void 0,n=void 0;if(Q)t=""+t;else{var r=lX(t,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===gt&&(t=''+t+"");var o=x?x.createHTML(t):t;if(ft===pt)try{e=(new p).parseFromString(o,gt)}catch(Bt){}if(!e||!e.documentElement){e=A.createDocument(ft,"template",null);try{e.documentElement.innerHTML=mt?"":o}catch(Bt){}}var a=e.body||e.documentElement;return t&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),ft===pt?T.call(e,Y?"html":"body")[0]:Y?e.documentElement:a},Dt=function(t){return E.call(t.ownerDocument||t,t,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},Lt=function(t){return!(t instanceof d||t instanceof h)&&!("string"===typeof t.nodeName&&"string"===typeof t.textContent&&"function"===typeof t.removeChild&&t.attributes instanceof u&&"function"===typeof t.removeAttribute&&"function"===typeof t.setAttribute&&"string"===typeof t.namespaceURI&&"function"===typeof t.insertBefore)},It=function(t){return"object"===("undefined"===typeof a?"undefined":jX(a))?t instanceof a:t&&"object"===("undefined"===typeof t?"undefined":jX(t))&&"number"===typeof t.nodeType&&"string"===typeof t.nodeName},Pt=function(t,n,i){O[t]&&rX(O[t],(function(t){t.call(e,n,i,wt)}))},Rt=function(t){var n=void 0;if(Pt("beforeSanitizeElements",t,null),Lt(t))return St(t),!0;if(lX(t.nodeName,/[\u0080-\uFFFF]/))return St(t),!0;var i=bt(t.nodeName);if(Pt("uponSanitizeElement",t,{tagName:i,allowedTags:z}),!It(t.firstElementChild)&&(!It(t.content)||!It(t.content.firstElementChild))&&hX(/<[/\w]/g,t.innerHTML)&&hX(/<[/\w]/g,t.textContent))return St(t),!0;if("select"===i&&hX(/