(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b1b8d4a4"],{"000f":function(e,t,A){e.exports=A.p+"img/classic11.png"},"0010":function(e,t,A){e.exports=A.p+"img/lemonBubbles.jpg"},"0068":function(e,t,A){"use strict";function n(e){return Object.prototype.toString.call(e)}function r(e){return"[object String]"===n(e)}var i=Object.prototype.hasOwnProperty;function o(e,t){return i.call(e,t)}function a(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){if(t){if("object"!==typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(A){e[A]=t[A]}))}})),e}function s(e,t,A){return[].concat(e.slice(0,t),A,e.slice(t+1))}function l(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!==(65535&e)&&65534!==(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function c(e){if(e>65535){e-=65536;var t=55296+(e>>10),A=56320+(1023&e);return String.fromCharCode(t,A)}return String.fromCharCode(e)}var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,h=/&([a-z#][a-z0-9]{1,31});/gi,d=new RegExp(u.source+"|"+h.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,p=A("bd68");function m(e,t){var A;return o(p,t)?p[t]:35===t.charCodeAt(0)&&f.test(t)&&(A="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10),l(A))?c(A):e}function g(e){return e.indexOf("\\")<0?e:e.replace(u,"$1")}function v(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(d,(function(e,t,A){return t||m(e,A)}))}var b=/[&<>"]/,y=/[&<>"]/g,w={"&":"&","<":"<",">":">",'"':"""};function x(e){return w[e]}function k(e){return b.test(e)?e.replace(y,x):e}var T=/[.?*+^$[\]\\(){}|-]/g;function N(e){return e.replace(T,"\\$&")}function C(e){switch(e){case 9:case 32:return!0}return!1}function M(e){if(e>=8192&&e<=8202)return!0;switch(e){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 E=A("7ca0");function S(e){return E.test(e)}function z(e){switch(e){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 O(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=A("d8a6"),t.lib.ucmicro=A("d5d1"),t.assign=a,t.isString=r,t.has=o,t.unescapeMd=g,t.unescapeAll=v,t.isValidEntityCode=l,t.fromCodePoint=c,t.escapeHtml=k,t.arrayReplaceAt=s,t.isSpace=C,t.isWhiteSpace=M,t.isMdAsciiPunct=z,t.isPunctChar=S,t.escapeRE=N,t.normalizeReference=O},"0082":function(e,t,A){e.exports=A.p+"img/ditu.svg"},"00ee":function(e,t,A){"use strict";var n=A("b622"),r=n("toStringTag"),i={};i[r]="z",e.exports="[object z]"===String(i)},"018d":function(e,t,A){"use strict";A("f5e9")},"01da":function(e,t,A){e.exports=A.p+"img/autumn.jpg"},"027d":function(e,t,A){e.exports=A.p+"img/zhongyangjie.svg"},"02a0":function(e,t,A){e.exports=A.p+"img/a-18-xiguan.svg"},"030b":function(e,t,A){"use strict";A("4928")},"0455":function(e,t,A){e.exports=A.p+"img/zhongqiujie.svg"},"0469":function(e,t,A){e.exports=A.p+"img/vitalityOrange.jpg"},"048e":function(e,t,A){e.exports=A.p+"img/mint.jpg"},"049e":function(e,t,A){e.exports=A.p+"img/shiyan.svg"},"0613":function(e,t,A){e.exports=A.p+"img/a-6-jiancebi.svg"},"0628":function(e,t,A){var n,r,i=A("bbc7"),o=A("2ed7").isArray;function a(e){var t=i.copyOptions(e);return i.ensureFlagExists("ignoreDeclaration",t),i.ensureFlagExists("ignoreInstruction",t),i.ensureFlagExists("ignoreAttributes",t),i.ensureFlagExists("ignoreText",t),i.ensureFlagExists("ignoreComment",t),i.ensureFlagExists("ignoreCdata",t),i.ensureFlagExists("ignoreDoctype",t),i.ensureFlagExists("compact",t),i.ensureFlagExists("indentText",t),i.ensureFlagExists("indentCdata",t),i.ensureFlagExists("indentAttributes",t),i.ensureFlagExists("indentInstruction",t),i.ensureFlagExists("fullTagEmptyElement",t),i.ensureFlagExists("noQuotesForNativeAttributes",t),i.ensureSpacesExists(t),"number"===typeof t.spaces&&(t.spaces=Array(t.spaces+1).join(" ")),i.ensureKeyExists("declaration",t),i.ensureKeyExists("instruction",t),i.ensureKeyExists("attributes",t),i.ensureKeyExists("text",t),i.ensureKeyExists("comment",t),i.ensureKeyExists("cdata",t),i.ensureKeyExists("doctype",t),i.ensureKeyExists("type",t),i.ensureKeyExists("name",t),i.ensureKeyExists("elements",t),i.checkFnExists("doctype",t),i.checkFnExists("instruction",t),i.checkFnExists("cdata",t),i.checkFnExists("comment",t),i.checkFnExists("text",t),i.checkFnExists("instructionName",t),i.checkFnExists("elementName",t),i.checkFnExists("attributeName",t),i.checkFnExists("attributeValue",t),i.checkFnExists("attributes",t),i.checkFnExists("fullTagEmptyElement",t),t}function s(e,t,A){return(!A&&e.spaces?"\n":"")+Array(t+1).join(e.spaces)}function l(e,t,A){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,r,n));var i,o,a,l,c=[];for(i in e)e.hasOwnProperty(i)&&null!==e[i]&&void 0!==e[i]&&(l=t.noQuotesForNativeAttributes&&"string"!==typeof e[i]?"":'"',o=""+e[i],o=o.replace(/"/g,"""),a="attributeNameFn"in t?t.attributeNameFn(i,o,r,n):i,c.push(t.spaces&&t.indentAttributes?s(t,A+1,!1):" "),c.push(a+"="+l+("attributeValueFn"in t?t.attributeValueFn(o,i,r,n):o)+l));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&c.push(s(t,A,!1)),c.join("")}function c(e,t,A){return n=e,r="xml",t.ignoreDeclaration?"":""}function u(e,t,A){if(t.ignoreInstruction)return"";var i;for(i in e)if(e.hasOwnProperty(i))break;var o="instructionNameFn"in t?t.instructionNameFn(i,e[i],r,n):i;if("object"===typeof e[i])return n=e,r=o,"";var a=e[i]?e[i]:"";return"instructionFn"in t&&(a=t.instructionFn(a,i,r,n)),""}function h(e,t){return t.ignoreComment?"":"\x3c!--"+("commentFn"in t?t.commentFn(e,r,n):e)+"--\x3e"}function d(e,t){return t.ignoreCdata?"":"","]]]]>"))+"]]>"}function f(e,t){return t.ignoreDoctype?"":""}function p(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&/g,"&"),e=e.replace(/&/g,"&").replace(//g,">"),"textFn"in t?t.textFn(e,r,n):e)}function m(e,t){var A;if(e.elements&&e.elements.length)for(A=0;A"),e[t.elementsKey]&&e[t.elementsKey].length&&(i.push(v(e[t.elementsKey],t,A+1)),n=e,r=e.name),i.push(t.spaces&&m(e,t)?"\n"+Array(A+1).join(t.spaces):""),i.push("")):i.push("/>"),i.join("")}function v(e,t,A,n){return e.reduce((function(e,r){var i=s(t,A,n&&!e);switch(r.type){case"element":return e+i+g(r,t,A);case"comment":return e+i+h(r[t.commentKey],t);case"doctype":return e+i+f(r[t.doctypeKey],t);case"cdata":return e+(t.indentCdata?i:"")+d(r[t.cdataKey],t);case"text":return e+(t.indentText?i:"")+p(r[t.textKey],t);case"instruction":var o={};return o[r[t.nameKey]]=r[t.attributesKey]?r:r[t.instructionKey],e+(t.indentInstruction?i:"")+u(o,t,A)}}),"")}function b(e,t,A){var n;for(n in e)if(e.hasOwnProperty(n))switch(n){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||A)return!0;break;case t.cdataKey:if(t.indentCdata||A)return!0;break;case t.instructionKey:if(t.indentInstruction||A)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}function y(e,t,A,i,o){n=e,r=t;var a="elementNameFn"in A?A.elementNameFn(t,e):t;if("undefined"===typeof e||null===e||""===e)return"fullTagEmptyElementFn"in A&&A.fullTagEmptyElementFn(t,e)||A.fullTagEmptyElement?"<"+a+">":"<"+a+"/>";var c=[];if(t){if(c.push("<"+a),"object"!==typeof e)return c.push(">"+p(e,A)+""),c.join("");e[A.attributesKey]&&c.push(l(e[A.attributesKey],A,i));var u=b(e,A,!0)||e[A.attributesKey]&&"preserve"===e[A.attributesKey]["xml:space"];if(u||(u="fullTagEmptyElementFn"in A?A.fullTagEmptyElementFn(t,e):A.fullTagEmptyElement),!u)return c.push("/>"),c.join("");c.push(">")}return c.push(w(e,A,i+1,!1)),n=e,r=t,t&&c.push((o?s(A,i,!1):"")+""),c.join("")}function w(e,t,A,n){var r,i,a,l=[];for(i in e)if(e.hasOwnProperty(i))for(a=o(e[i])?e[i]:[e[i]],r=0;r=4)return!1;if(i=e.src.charCodeAt(l),35!==i||l>=c)return!1;o=1,i=e.src.charCodeAt(++l);while(35===i&&l6||ll&&n(e.src.charCodeAt(a-1))&&(c=a),e.line=t+1,s=e.push("heading_open","h"+String(o),1),s.markup="########".slice(0,o),s.map=[t,e.line],s=e.push("inline","",0),s.content=e.src.slice(l,c).trim(),s.map=[t,e.line],s.children=[],s=e.push("heading_close","h"+String(o),-1),s.markup="########".slice(0,o)),!0)}},"07f3":function(e,t,A){e.exports=A.p+"img/duanwujie.svg"},"08ae":function(e,t,A){"use strict";var n=A("0068"),r=A("565b"),i=A("7cc2"),o=A("a915"),a=A("7696"),s=A("4cb4"),l=A("fbcd"),c=A("d8a6"),u=A("1985"),h={default:A("8a31"),zero:A("1caa"),commonmark:A("428d")},d=/^(vbscript|javascript|file|data):/,f=/^data:image\/(gif|png|jpeg|webp);/;function p(e){var t=e.trim().toLowerCase();return!d.test(t)||!!f.test(t)}var m=["http:","https:","mailto:"];function g(e){var t=c.parse(e,!0);if(t.hostname&&(!t.protocol||m.indexOf(t.protocol)>=0))try{t.hostname=u.toASCII(t.hostname)}catch(A){}return c.encode(c.format(t))}function v(e){var t=c.parse(e,!0);if(t.hostname&&(!t.protocol||m.indexOf(t.protocol)>=0))try{t.hostname=u.toUnicode(t.hostname)}catch(A){}return c.decode(c.format(t),c.decode.defaultChars+"%")}function b(e,t){if(!(this instanceof b))return new b(e,t);t||n.isString(e)||(t=e||{},e="default"),this.inline=new s,this.block=new a,this.core=new o,this.renderer=new i,this.linkify=new l,this.validateLink=p,this.normalizeLink=g,this.normalizeLinkText=v,this.utils=n,this.helpers=n.assign({},r),this.options={},this.configure(e),t&&this.set(t)}b.prototype.set=function(e){return n.assign(this.options,e),this},b.prototype.configure=function(e){var t,A=this;if(n.isString(e)&&(t=e,e=h[t],!e))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&A.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&A[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&A[t].ruler2.enableOnly(e.components[t].rules2)})),this},b.prototype.enable=function(e,t){var A=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){A=A.concat(this[t].ruler.enable(e,!0))}),this),A=A.concat(this.inline.ruler2.enable(e,!0));var n=e.filter((function(e){return A.indexOf(e)<0}));if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},b.prototype.disable=function(e,t){var A=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){A=A.concat(this[t].ruler.disable(e,!0))}),this),A=A.concat(this.inline.ruler2.disable(e,!0));var n=e.filter((function(e){return A.indexOf(e)<0}));if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},b.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},b.prototype.parse=function(e,t){if("string"!==typeof e)throw new Error("Input data should be a String");var A=new this.core.State(e,this,t);return this.core.process(A),A.tokens},b.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},b.prototype.parseInline=function(e,t){var A=new this.core.State(e,this,t);return A.inlineMode=!0,this.core.process(A),A.tokens},b.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=b},"0914":function(e,t,A){e.exports=A.p+"img/tiyu.svg"},"091d":function(e,t,A){e.exports=A.p+"img/withBg3.jpg"},"0960":function(e,t,A){e.exports=A("b19a")},"096b":function(e,t,A){"use strict";function n(e,t,A){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=A,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}n.prototype.attrIndex=function(e){var t,A,n;if(!this.attrs)return-1;for(t=this.attrs,A=0,n=t.length;A=0&&(A=this.attrs[t][1]),A},n.prototype.attrJoin=function(e,t){var A=this.attrIndex(e);A<0?this.attrPush([e,t]):this.attrs[A][1]=this.attrs[A][1]+" "+t},e.exports=n},"097b":function(e,t,A){"use strict";var n=A("096b"),r=A("0068").isWhiteSpace,i=A("0068").isPunctChar,o=A("0068").isMdAsciiPunct;function a(e,t,A,n){this.src=e,this.env=A,this.md=t,this.tokens=n,this.tokens_meta=Array(n.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}a.prototype.pushPending=function(){var e=new n("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},a.prototype.push=function(e,t,A){this.pending&&this.pushPending();var r=new n(e,t,A),i=null;return A<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,A>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},a.prototype.scanDelims=function(e,t){var A,n,a,s,l,c,u,h,d,f=e,p=!0,m=!0,g=this.posMax,v=this.src.charCodeAt(e);A=e>0?this.src.charCodeAt(e-1):32;while(f]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,A,n,u,h){var d=A+e.length,f=n.length,p=c;return void 0!==u&&(u=r(u),p=l),a(h,p,(function(r,a){var l;switch(o(a,0)){case"$":return"$";case"&":return e;case"`":return s(t,0,A);case"'":return s(t,d);case"<":l=u[s(a,1,-1)];break;default:var c=+a;if(0===c)return r;if(c>f){var h=i(c/10);return 0===h?r:h<=f?void 0===n[h-1]?o(a,1):n[h-1]+o(a,1):r}l=n[c-1]}return void 0===l?"":l}))}},"0ced":function(e,t,A){"use strict";A("2a70")},"0d15":function(e,t,A){e.exports=A.p+"img/fishbone2.jpg"},"0d26":function(e,t,A){"use strict";var n=A("e330"),r=Error,i=n("".replace),o=function(e){return String(new r(e).stack)}("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,s=a.test(o);e.exports=function(e,t){if(s&&"string"==typeof e&&!r.prepareStackTrace)while(t--)e=i(e,a,"");return e}},"0d8b":function(e,t,A){e.exports=A.p+"img/classic14.png"},"0e08":function(e,t,A){e.exports=A.p+"img/dark2.jpg"},"0e25":function(e,t,A){e.exports=A.p+"img/a-13-xiguan.svg"},"0e2f":function(e,t,A){"use strict";A("3b12")},"0e50":function(e,t,A){e.exports=A.p+"img/ziyuan_2.svg"},"0e5f":function(e,t,A){e.exports=A.p+"img/a-9-tizhongcheng.svg"},"0eb9":function(e,t,A){(function(e,A){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",h="[object GeneratorFunction]",d="[object Map]",f="[object Number]",p="[object Object]",m="[object Promise]",g="[object RegExp]",v="[object Set]",b="[object String]",y="[object Symbol]",w="[object WeakMap]",x="[object ArrayBuffer]",k="[object DataView]",T="[object Float32Array]",N="[object Float64Array]",C="[object Int8Array]",M="[object Int16Array]",E="[object Int32Array]",S="[object Uint8Array]",z="[object Uint8ClampedArray]",O="[object Uint16Array]",D="[object Uint32Array]",P=/[\\^$.*+?()[\]{}|]/g,L=/\w*$/,R=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,I={};I[o]=I[a]=I[x]=I[k]=I[s]=I[l]=I[T]=I[N]=I[C]=I[M]=I[E]=I[d]=I[f]=I[p]=I[g]=I[v]=I[b]=I[y]=I[S]=I[z]=I[O]=I[D]=!0,I[c]=I[u]=I[w]=!1;var B="object"==typeof e&&e&&e.Object===Object&&e,j="object"==typeof self&&self&&self.Object===Object&&self,q=B||j||Function("return this")(),H=t&&!t.nodeType&&t,W=H&&"object"==typeof A&&A&&!A.nodeType&&A,X=W&&W.exports===H;function V(e,t){return e.set(t[0],t[1]),e}function Z(e,t){return e.add(t),e}function U(e,t){var A=-1,n=e?e.length:0;while(++A-1}function Ve(e,t){var A=this.__data__,n=it(A,e);return n<0?A.push([e,t]):A[n][1]=t,this}function Ze(e){var t=-1,A=e?e.length:0;this.clear();while(++t-1&&e%1==0&&e-1&&e%1==0&&e<=i}function Ut(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Gt(e){return!!e&&"object"==typeof e}function Yt(e){return Ht(e)?nt(e):ht(e)}function Kt(){return[]}function Jt(){return!1}A.exports=It}).call(this,A("c8ba"),A("62e4")(e))},"0fb5":function(e,t,A){e.exports=A.p+"img/muqinjie.svg"},"0fdb":function(e,t,A){"use strict";A("868c")},1:function(e,t){},"103a":function(e,t,A){e.exports=A.p+"img/paishe.svg"},1069:function(e,t,A){},"107c":function(e,t,A){"use strict";var n=A("d039"),r=A("da84"),i=r.RegExp;e.exports=n((function(){var e=i("(?b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},1085:function(e,t,A){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=A("0eb9"),r=A("51a1");var i;(function(e){function t(e={},t={},A=!1){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});let r=n(t);A||(r=Object.keys(r).reduce((e,t)=>(null!=r[t]&&(e[t]=r[t]),e),{}));for(const n in e)void 0!==e[n]&&void 0===t[n]&&(r[n]=e[n]);return Object.keys(r).length>0?r:void 0}function A(e={},t={}){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});const A=Object.keys(e).concat(Object.keys(t)).reduce((A,n)=>(r(e[n],t[n])||(A[n]=void 0===t[n]?null:t[n]),A),{});return Object.keys(A).length>0?A:void 0}function i(e={},t={}){e=e||{};const A=Object.keys(t).reduce((A,n)=>(t[n]!==e[n]&&void 0!==e[n]&&(A[n]=t[n]),A),{});return Object.keys(e).reduce((A,n)=>(e[n]!==t[n]&&void 0===t[n]&&(A[n]=null),A),A)}function o(e,t,A=!1){if("object"!==typeof e)return t;if("object"!==typeof t)return;if(!A)return t;const n=Object.keys(t).reduce((A,n)=>(void 0===e[n]&&(A[n]=t[n]),A),{});return Object.keys(n).length>0?n:void 0}e.compose=t,e.diff=A,e.invert=i,e.transform=o})(i||(i={})),t.default=i},"10ad":function(e,t,A){var n,r,i=A("a83d"),o={on:function(){},parse:function(){}},a=A("09d9"),s=A("9a1c").isArray,l=!0;function c(e){return n=a.copyOptions(e),a.ensureFlagExists("ignoreDeclaration",n),a.ensureFlagExists("ignoreInstruction",n),a.ensureFlagExists("ignoreAttributes",n),a.ensureFlagExists("ignoreText",n),a.ensureFlagExists("ignoreComment",n),a.ensureFlagExists("ignoreCdata",n),a.ensureFlagExists("ignoreDoctype",n),a.ensureFlagExists("compact",n),a.ensureFlagExists("alwaysChildren",n),a.ensureFlagExists("addParent",n),a.ensureFlagExists("trim",n),a.ensureFlagExists("nativeType",n),a.ensureFlagExists("nativeTypeAttributes",n),a.ensureFlagExists("sanitize",n),a.ensureFlagExists("instructionHasAttributes",n),a.ensureFlagExists("captureSpacesBetweenElements",n),a.ensureAlwaysArrayExists(n),a.ensureKeyExists("declaration",n),a.ensureKeyExists("instruction",n),a.ensureKeyExists("attributes",n),a.ensureKeyExists("text",n),a.ensureKeyExists("comment",n),a.ensureKeyExists("cdata",n),a.ensureKeyExists("doctype",n),a.ensureKeyExists("type",n),a.ensureKeyExists("name",n),a.ensureKeyExists("elements",n),a.ensureKeyExists("parent",n),a.checkFnExists("doctype",n),a.checkFnExists("instruction",n),a.checkFnExists("cdata",n),a.checkFnExists("comment",n),a.checkFnExists("text",n),a.checkFnExists("instructionName",n),a.checkFnExists("elementName",n),a.checkFnExists("attributeName",n),a.checkFnExists("attributeValue",n),a.checkFnExists("attributes",n),n}function u(e){var t=Number(e);if(!isNaN(t))return t;var A=e.toLowerCase();return"true"===A||"false"!==A&&e}function h(e,t){var A;if(n.compact){if(!r[n[e+"Key"]]&&(s(n.alwaysArray)?-1!==n.alwaysArray.indexOf(n[e+"Key"]):n.alwaysArray)&&(r[n[e+"Key"]]=[]),r[n[e+"Key"]]&&!s(r[n[e+"Key"]])&&(r[n[e+"Key"]]=[r[n[e+"Key"]]]),e+"Fn"in n&&"string"===typeof t&&(t=n[e+"Fn"](t,r)),"instruction"===e&&("instructionFn"in n||"instructionNameFn"in n))for(A in t)if(t.hasOwnProperty(A))if("instructionFn"in n)t[A]=n.instructionFn(t[A],A,r);else{var i=t[A];delete t[A],t[n.instructionNameFn(A,i,r)]=i}s(r[n[e+"Key"]])?r[n[e+"Key"]].push(t):r[n[e+"Key"]]=t}else{r[n.elementsKey]||(r[n.elementsKey]=[]);var o={};if(o[n.typeKey]=e,"instruction"===e){for(A in t)if(t.hasOwnProperty(A))break;o[n.nameKey]="instructionNameFn"in n?n.instructionNameFn(A,t,r):A,n.instructionHasAttributes?(o[n.attributesKey]=t[A][n.attributesKey],"instructionFn"in n&&(o[n.attributesKey]=n.instructionFn(o[n.attributesKey],A,r))):("instructionFn"in n&&(t[A]=n.instructionFn(t[A],A,r)),o[n.instructionKey]=t[A])}else e+"Fn"in n&&(t=n[e+"Fn"](t,r)),o[n[e+"Key"]]=t;n.addParent&&(o[n.parentKey]=r),r[n.elementsKey].push(o)}}function d(e){var t;if("attributesFn"in n&&e&&(e=n.attributesFn(e,r)),(n.trim||"attributeValueFn"in n||"attributeNameFn"in n||n.nativeTypeAttributes)&&e)for(t in e)if(e.hasOwnProperty(t)&&(n.trim&&(e[t]=e[t].trim()),n.nativeTypeAttributes&&(e[t]=u(e[t])),"attributeValueFn"in n&&(e[t]=n.attributeValueFn(e[t],t,r)),"attributeNameFn"in n)){var A=e[t];delete e[t],e[n.attributeNameFn(t,e[t],r)]=A}return e}function f(e){var t={};if(e.body&&("xml"===e.name.toLowerCase()||n.instructionHasAttributes)){var A,i=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;while(null!==(A=i.exec(e.body)))t[A[1]]=A[2]||A[3]||A[4];t=d(t)}if("xml"===e.name.toLowerCase()){if(n.ignoreDeclaration)return;r[n.declarationKey]={},Object.keys(t).length&&(r[n.declarationKey][n.attributesKey]=t),n.addParent&&(r[n.declarationKey][n.parentKey]=r)}else{if(n.ignoreInstruction)return;n.trim&&(e.body=e.body.trim());var o={};n.instructionHasAttributes&&Object.keys(t).length?(o[e.name]={},o[e.name][n.attributesKey]=t):o[e.name]=e.body,h("instruction",o)}}function p(e,t){var A;if("object"===typeof e&&(t=e.attributes,e=e.name),t=d(t),"elementNameFn"in n&&(e=n.elementNameFn(e,r)),n.compact){var i;if(A={},!n.ignoreAttributes&&t&&Object.keys(t).length)for(i in A[n.attributesKey]={},t)t.hasOwnProperty(i)&&(A[n.attributesKey][i]=t[i]);!(e in r)&&(s(n.alwaysArray)?-1!==n.alwaysArray.indexOf(e):n.alwaysArray)&&(r[e]=[]),r[e]&&!s(r[e])&&(r[e]=[r[e]]),s(r[e])?r[e].push(A):r[e]=A}else r[n.elementsKey]||(r[n.elementsKey]=[]),A={},A[n.typeKey]="element",A[n.nameKey]=e,!n.ignoreAttributes&&t&&Object.keys(t).length&&(A[n.attributesKey]=t),n.alwaysChildren&&(A[n.elementsKey]=[]),r[n.elementsKey].push(A);A[n.parentKey]=r,r=A}function m(e){n.ignoreText||(e.trim()||n.captureSpacesBetweenElements)&&(n.trim&&(e=e.trim()),n.nativeType&&(e=u(e)),n.sanitize&&(e=e.replace(/&/g,"&").replace(//g,">")),h("text",e))}function g(e){n.ignoreComment||(n.trim&&(e=e.trim()),h("comment",e))}function v(e){var t=r[n.parentKey];n.addParent||delete r[n.parentKey],r=t}function b(e){n.ignoreCdata||(n.trim&&(e=e.trim()),h("cdata",e))}function y(e){n.ignoreDoctype||(e=e.replace(/^ /,""),n.trim&&(e=e.trim()),h("doctype",e))}function w(e){e.note=e}e.exports=function(e,t){var A=l?i.parser(!0,{}):A=new o.Parser("UTF-8"),a={};if(r=a,n=c(t),l?(A.opt={strictEntities:!0},A.onopentag=p,A.ontext=m,A.oncomment=g,A.onclosetag=v,A.onerror=w,A.oncdata=b,A.ondoctype=y,A.onprocessinginstruction=f):(A.on("startElement",p),A.on("text",m),A.on("comment",g),A.on("endElement",v),A.on("error",w)),l)A.write(e).close();else if(!A.parse(e))throw new Error("XML parsing error: "+A.getError());if(a[n.elementsKey]){var s=a[n.elementsKey];delete a[n.elementsKey],a[n.elementsKey]=s,delete a.text}return a}},"10db1":function(e,t,A){"use strict";var n=A("8790");A.d(t,"PDFDocument",(function(){return n["a"]}));A("a935"),A("5d8f"),A("5d9a")},1142:function(e,t,A){"use strict";A("c562")},"121b":function(e,t,A){},"12a6":function(e,t,A){e.exports=A.p+"img/ziyuan.svg"},"12b7":function(e,t,A){e.exports=A.p+"img/a-7-xinzang.svg"},"13a8":function(e,t,A){e.exports=A.p+"img/classic2.jpg"},1433:function(e,t,A){},"145c":function(e,t,A){"use strict";A("a7a7")},1485:function(e,t,A){e.exports=A.p+"img/pisa.svg"},"14bd":function(e,t,A){e.exports=A.p+"img/ziyuan_10.svg"},"14c3":function(e,t,A){"use strict";var n=A("c65b"),r=A("825a"),i=A("1626"),o=A("c6b6"),a=A("9263"),s=TypeError;e.exports=function(e,t){var A=e.exec;if(i(A)){var l=n(A,e,t);return null!==l&&r(l),l}if("RegExp"===o(e))return n(a,e,t);throw new s("RegExp#exec called on incompatible receiver")}},"14cb":function(e,t,A){e.exports=A.p+"img/timeline.jpg"},"14d4":function(e,t,A){e.exports=A.p+"img/tianqi.svg"},"14dc":function(e,t,A){"use strict";A("6685")},1524:function(e,t,A){"use strict";A("ea1b")},1659:function(e,t,A){e.exports=A.p+"img/pinkGrape.jpg"},1703:function(e,t,A){e.exports=A.p+"img/dark7.png"},1754:function(e,t,A){"use strict";A.d(t,"g",(function(){return i})),A.d(t,"d",(function(){return o})),A.d(t,"a",(function(){return a})),A.d(t,"c",(function(){return s})),A.d(t,"e",(function(){return l})),A.d(t,"f",(function(){return u})),A.d(t,"b",(function(){return v}));var n,r=A("31fc"),i=function(e,t){void 0===t&&(t=!0);var A=[];t&&A.push(65279);for(var n=0,i=e.length;n=0&&e<=65535},a=function(e){return e>=65536&&e<=1114111},s=function(e){return Math.floor((e-65536)/1024)+55296},l=function(e){return(e-65536)%1024+56320};(function(e){e["BigEndian"]="BigEndian",e["LittleEndian"]="LittleEndian"})(n||(n={}));var c="�".codePointAt(0),u=function(e,t){if(void 0===t&&(t=!0),e.length<=1)return String.fromCodePoint(c);var A=t?p(e):n.BigEndian,r=t?2:0,i=[];while(e.length-r>=2){var o=f(e[r++],e[r++],A);if(h(o))if(e.length-r<2)i.push(c);else{var a=f(e[r++],e[r++],A);d(a)?i.push(o,a):i.push(c)}else d(o)?(r+=2,i.push(c)):i.push(o)}return r=55296&&e<=56319},d=function(e){return e>=56320&&e<=57343},f=function(e,t,A){if(A===n.LittleEndian)return t<<8|e;if(A===n.BigEndian)return e<<8|t;throw new Error("Invalid byteOrder: "+A)},p=function(e){return m(e)?n.BigEndian:g(e)?n.LittleEndian:n.BigEndian},m=function(e){return 254===e[0]&&255===e[1]},g=function(e){return 255===e[0]&&254===e[1]},v=function(e){return m(e)||g(e)}},1787:function(e,t,A){"use strict";var n=A("861d");e.exports=function(e){return n(e)||null===e}},"17f2":function(e,t,A){e.exports=A.p+"img/jisuanqi.svg"},1801:function(e,t,A){"use strict";A("e720")},"18ef":function(e,t,A){"use strict";A("9ac0")},1985:function(e,t,A){(function(e,n){var r;/*! https://mths.be/punycode v1.4.1 by @mathias */(function(i){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof n&&n;o.global!==o&&o.window!==o&&o.self;var a,s=2147483647,l=36,c=1,u=26,h=38,d=700,f=72,p=128,m="-",g=/^xn--/,v=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=l-c,x=Math.floor,k=String.fromCharCode;function T(e){throw new RangeError(y[e])}function N(e,t){var A=e.length,n=[];while(A--)n[A]=t(e[A]);return n}function C(e,t){var A=e.split("@"),n="";A.length>1&&(n=A[0]+"@",e=A[1]),e=e.replace(b,".");var r=e.split("."),i=N(r,t).join(".");return n+i}function M(e){var t,A,n=[],r=0,i=e.length;while(r=55296&&t<=56319&&r65535&&(e-=65536,t+=k(e>>>10&1023|55296),e=56320|1023&e),t+=k(e),t})).join("")}function S(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:l}function z(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function O(e,t,A){var n=0;for(e=A?x(e/d):e>>1,e+=x(e/t);e>w*u>>1;n+=l)e=x(e/w);return x(n+(w+1)*e/(e+h))}function D(e){var t,A,n,r,i,o,a,h,d,g,v=[],b=e.length,y=0,w=p,k=f;for(A=e.lastIndexOf(m),A<0&&(A=0),n=0;n=128&&T("not-basic"),v.push(e.charCodeAt(n));for(r=A>0?A+1:0;r=b&&T("invalid-input"),h=S(e.charCodeAt(r++)),(h>=l||h>x((s-y)/o))&&T("overflow"),y+=h*o,d=a<=k?c:a>=k+u?u:a-k,hx(s/g)&&T("overflow"),o*=g}t=v.length+1,k=O(y-i,t,0==i),x(y/t)>s-w&&T("overflow"),w+=x(y/t),y%=t,v.splice(y++,0,w)}return E(v)}function P(e){var t,A,n,r,i,o,a,h,d,g,v,b,y,w,N,C=[];for(e=M(e),b=e.length,t=p,A=0,i=f,o=0;o=t&&vx((s-A)/y)&&T("overflow"),A+=(a-t)*y,t=a,o=0;os&&T("overflow"),v==t){for(h=A,d=l;;d+=l){if(g=d<=i?c:d>=i+u?u:d-i,h=4)return!1;for(h=e.parentType,e.parentType="paragraph";d3)){if(e.sCount[d]>=e.blkIndent&&(s=e.bMarks[d]+e.tShift[d],l=e.eMarks[d],s=l)))){c=61===u?1:2;break}if(!(e.sCount[d]<0)){for(r=!1,i=0,o=f.length;i * @license MIT */ var n=A("1fb5"),r=A("9152"),i=A("e3db");function o(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),l.alloc(+e)}function y(e,t){if(l.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var A=e.length;if(0===A)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return A;case"utf8":case"utf-8":case void 0:return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*A;case"hex":return A>>>1;case"base64":return $(e).length;default:if(n)return J(e).length;t=(""+t).toLowerCase(),n=!0}}function w(e,t,A){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===A||A>this.length)&&(A=this.length),A<=0)return"";if(A>>>=0,t>>>=0,A<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return I(this,t,A);case"utf8":case"utf-8":return D(this,t,A);case"ascii":return R(this,t,A);case"latin1":case"binary":return F(this,t,A);case"base64":return O(this,t,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,A);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function x(e,t,A){var n=e[t];e[t]=e[A],e[A]=n}function k(e,t,A,n,r){if(0===e.length)return-1;if("string"===typeof A?(n=A,A=0):A>2147483647?A=2147483647:A<-2147483648&&(A=-2147483648),A=+A,isNaN(A)&&(A=r?0:e.length-1),A<0&&(A=e.length+A),A>=e.length){if(r)return-1;A=e.length-1}else if(A<0){if(!r)return-1;A=0}if("string"===typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:T(e,t,A,n,r);if("number"===typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,A):Uint8Array.prototype.lastIndexOf.call(e,t,A):T(e,[t],A,n,r);throw new TypeError("val must be string, number or Buffer")}function T(e,t,A,n,r){var i,o=1,a=e.length,s=t.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,a/=2,s/=2,A/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(r){var c=-1;for(i=A;ia&&(A=a-s),i=A;i>=0;i--){for(var u=!0,h=0;hr&&(n=r)):n=r;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var o=0;o239?4:l>223?3:l>191?2:1;if(r+u<=A)switch(u){case 1:l<128&&(c=l);break;case 2:i=e[r+1],128===(192&i)&&(s=(31&l)<<6|63&i,s>127&&(c=s));break;case 3:i=e[r+1],o=e[r+2],128===(192&i)&&128===(192&o)&&(s=(15&l)<<12|(63&i)<<6|63&o,s>2047&&(s<55296||s>57343)&&(c=s));break;case 4:i=e[r+1],o=e[r+2],a=e[r+3],128===(192&i)&&128===(192&o)&&128===(192&a)&&(s=(15&l)<<18|(63&i)<<12|(63&o)<<6|63&a,s>65535&&s<1114112&&(c=s))}null===c?(c=65533,u=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),r+=u}return L(n)}t.Buffer=l,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:o(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,A){return c(null,e,t,A)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,A){return h(null,e,t,A)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var A=e.length,n=t.length,r=0,i=Math.min(A,n);r0&&(e=this.toString("hex",0,A).match(/.{2}/g).join(" "),this.length>A&&(e+=" ... ")),""},l.prototype.compare=function(e,t,A,n,r){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===A&&(A=e?e.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),t<0||A>e.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&t>=A)return 0;if(n>=r)return-1;if(t>=A)return 1;if(t>>>=0,A>>>=0,n>>>=0,r>>>=0,this===e)return 0;for(var i=r-n,o=A-t,a=Math.min(i,o),s=this.slice(n,r),c=e.slice(t,A),u=0;ur)&&(A=r),e.length>0&&(A<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return N(this,e,t,A);case"utf8":case"utf-8":return C(this,e,t,A);case"ascii":return M(this,e,t,A);case"latin1":case"binary":return E(this,e,t,A);case"base64":return S(this,e,t,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,e,t,A);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function L(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);var A="",n=0;while(nn)&&(A=n);for(var r="",i=t;iA)throw new RangeError("Trying to access beyond buffer length")}function q(e,t,A,n,r,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function H(e,t,A,n){t<0&&(t=65535+t+1);for(var r=0,i=Math.min(e.length-A,2);r>>8*(n?r:1-r)}function W(e,t,A,n){t<0&&(t=4294967295+t+1);for(var r=0,i=Math.min(e.length-A,4);r>>8*(n?r:3-r)&255}function X(e,t,A,n,r,i){if(A+n>e.length)throw new RangeError("Index out of range");if(A<0)throw new RangeError("Index out of range")}function V(e,t,A,n,i){return i||X(e,t,A,4,34028234663852886e22,-34028234663852886e22),r.write(e,t,A,n,23,4),A+4}function Z(e,t,A,n,i){return i||X(e,t,A,8,17976931348623157e292,-17976931348623157e292),r.write(e,t,A,n,52,8),A+8}l.prototype.slice=function(e,t){var A,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t0&&(r*=256))n+=this[e+--t]*r;return n},l.prototype.readUInt8=function(e,t){return t||j(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||j(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||j(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,A){e|=0,t|=0,A||j(e,t,this.length);var n=this[e],r=1,i=0;while(++i=r&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,A){e|=0,t|=0,A||j(e,t,this.length);var n=t,r=1,i=this[e+--n];while(n>0&&(r*=256))i+=this[e+--n]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||j(e,2,this.length);var A=this[e]|this[e+1]<<8;return 32768&A?4294901760|A:A},l.prototype.readInt16BE=function(e,t){t||j(e,2,this.length);var A=this[e+1]|this[e]<<8;return 32768&A?4294901760|A:A},l.prototype.readInt32LE=function(e,t){return t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||j(e,4,this.length),r.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||j(e,4,this.length),r.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||j(e,8,this.length),r.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||j(e,8,this.length),r.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,A,n){if(e=+e,t|=0,A|=0,!n){var r=Math.pow(2,8*A)-1;q(this,e,t,A,r,0)}var i=1,o=0;this[t]=255&e;while(++o=0&&(o*=256))this[t+i]=e/o&255;return t+A},l.prototype.writeUInt8=function(e,t,A){return e=+e,t|=0,A||q(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,A){return e=+e,t|=0,A||q(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):H(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,A){return e=+e,t|=0,A||q(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):H(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,A){return e=+e,t|=0,A||q(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):W(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,A){return e=+e,t|=0,A||q(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):W(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,A,n){if(e=+e,t|=0,!n){var r=Math.pow(2,8*A-1);q(this,e,t,A,r-1,-r)}var i=0,o=1,a=0;this[t]=255&e;while(++i>0)-a&255;return t+A},l.prototype.writeIntBE=function(e,t,A,n){if(e=+e,t|=0,!n){var r=Math.pow(2,8*A-1);q(this,e,t,A,r-1,-r)}var i=A-1,o=1,a=0;this[t+i]=255&e;while(--i>=0&&(o*=256))e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+A},l.prototype.writeInt8=function(e,t,A){return e=+e,t|=0,A||q(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,A){return e=+e,t|=0,A||q(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):H(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,A){return e=+e,t|=0,A||q(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):H(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,A){return e=+e,t|=0,A||q(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):W(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,A){return e=+e,t|=0,A||q(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):W(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,A){return V(this,e,t,!0,A)},l.prototype.writeFloatBE=function(e,t,A){return V(this,e,t,!1,A)},l.prototype.writeDoubleLE=function(e,t,A){return Z(this,e,t,!0,A)},l.prototype.writeDoubleBE=function(e,t,A){return Z(this,e,t,!1,A)},l.prototype.copy=function(e,t,A,n){if(A||(A=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--r)e[r+t]=this[r+A];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,A=void 0===A?this.length:A>>>0,e||(e=0),"number"===typeof e)for(i=t;i55295&&A<57344){if(!r){if(A>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&i.push(239,191,189);continue}r=A;continue}if(A<56320){(t-=3)>-1&&i.push(239,191,189),r=A;continue}A=65536+(r-55296<<10|A-56320)}else r&&(t-=3)>-1&&i.push(239,191,189);if(r=null,A<128){if((t-=1)<0)break;i.push(A)}else if(A<2048){if((t-=2)<0)break;i.push(A>>6|192,63&A|128)}else if(A<65536){if((t-=3)<0)break;i.push(A>>12|224,A>>6&63|128,63&A|128)}else{if(!(A<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(A>>18|240,A>>12&63|128,A>>6&63|128,63&A|128)}}return i}function Q(e){for(var t=[],A=0;A>8,r=A%256,i.push(r),i.push(n)}return i}function $(e){return n.toByteArray(G(e))}function ee(e,t,A,n){for(var r=0;r=t.length||r>=e.length)break;t[r+A]=e[r]}return r}function te(e){return e!==e}}).call(this,A("c8ba"))},"1c6b":function(e,t,A){e.exports=A.p+"img/naozhong.svg"},"1caa":function(e,t,A){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}}},"1d10":function(e,t,A){e.exports=A.p+"img/morandi.jpg"},"1e35":function(e,t,A){e.exports=A.p+"img/shouji.svg"},"1ecb":function(e,t,A){e.exports=A.p+"img/dark.jpg"},"1f78":function(e,t,A){},"1faf":function(e,t,A){e.exports=A.p+"img/a-13-xiguan.svg"},"1fb5":function(e,t,A){"use strict";t.byteLength=c,t.toByteArray=h,t.fromByteArray=p;for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var A=e.indexOf("=");-1===A&&(A=t);var n=A===t?0:4-A%4;return[A,n]}function c(e){var t=l(e),A=t[0],n=t[1];return 3*(A+n)/4-n}function u(e,t,A){return 3*(t+A)/4-A}function h(e){var t,A,n=l(e),o=n[0],a=n[1],s=new i(u(e,o,a)),c=0,h=a>0?o-4:o;for(A=0;A>16&255,s[c++]=t>>8&255,s[c++]=255&t;return 2===a&&(t=r[e.charCodeAt(A)]<<2|r[e.charCodeAt(A+1)]>>4,s[c++]=255&t),1===a&&(t=r[e.charCodeAt(A)]<<10|r[e.charCodeAt(A+1)]<<4|r[e.charCodeAt(A+2)]>>2,s[c++]=t>>8&255,s[c++]=255&t),s}function d(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function f(e,t,A){for(var n,r=[],i=t;is?s:a+o));return 1===r?(t=e[A-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===r&&(t=(e[A-2]<<8)+e[A-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},2:function(e,t){},"207f":function(e,t,A){"use strict";A("bbbc")},2136:function(e,t,A){"use strict";A("7125")},"21cd":function(e,t,A){e.exports=A.p+"img/qixi.svg"},"222a":function(e,t,A){e.exports=A.p+"img/hangli.svg"},2232:function(e,t,A){"use strict";A.d(t,"c",(function(){return s})),A.d(t,"b",(function(){return S})),A.d(t,"a",(function(){return L}));for(var n=A("77f5"),r=A.n(n),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=new Uint8Array(256),a=0;a>4,c[l++]=(15&n)<<4|r>>2,c[l++]=(3&r)<<6|63&i;return c},c=function(e){for(var t="",A=0;A"},t.prototype.sizeInBytes=function(){return this.value.length+2},t.prototype.copyBytesInto=function(e,t){return e[t++]=i["a"].LessThan,t+=Object(o["w"])(this.value,e,t),e[t++]=i["a"].GreaterThan,this.value.length+2},t.of=function(e){return new t(e)},t.fromText=function(e){for(var A=Object(o["Z"])(e),n="",r=0,i=A.length;r\x00-\x20]*)$/;e.exports=function(e,t){var A,i,o,a,s,l,c=e.pos;if(60!==e.src.charCodeAt(c))return!1;for(s=e.pos,l=e.posMax;;){if(++c>=l)return!1;if(a=e.src.charCodeAt(c),60===a)return!1;if(62===a)break}return A=e.src.slice(s+1,c),r.test(A)?(i=e.md.normalizeLink(A),!!e.md.validateLink(i)&&(t||(o=e.push("link_open","a",1),o.attrs=[["href",i]],o.markup="autolink",o.info="auto",o=e.push("text","",0),o.content=e.md.normalizeLinkText(A),o=e.push("link_close","a",-1),o.markup="autolink",o.info="auto"),e.pos+=A.length+2,!0)):!!n.test(A)&&(i=e.md.normalizeLink("mailto:"+A),!!e.md.validateLink(i)&&(t||(o=e.push("link_open","a",1),o.attrs=[["href",i]],o.markup="autolink",o.info="auto",o=e.push("text","",0),o.content=e.md.normalizeLinkText(A),o=e.push("link_close","a",-1),o.markup="autolink",o.info="auto"),e.pos+=A.length+2,!0))}},"290f":function(e,t,A){e.exports=A.p+"img/a-19guaizhang.svg"},"299e":function(e,t,A){e.exports=A.p+"img/gudingzichan.svg"},"29dc":function(e,t,A){e.exports=A.p+"img/a-15-bingdu.svg"},"2a43":function(e,t,A){e.exports=A.p+"img/a-20-shuye.svg"},"2a4c":function(e,t,A){"use strict";A("4517")},"2a70":function(e,t,A){},"2b93":function(e,t,A){e.exports=A.p+"img/catalogOrganization.jpg"},"2ba4":function(e,t,A){"use strict";var n=A("40d5"),r=Function.prototype,i=r.apply,o=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},"2c41":function(e,t,A){e.exports=A.p+"img/yumi.svg"},"2c63":function(e,t,A){e.exports=A("dc14")},"2ce1":function(e,t,A){"use strict";A("5d71")},"2cf1":function(e,t,A){"use strict";(function(e){var A="object"==typeof e&&e&&e.Object===Object&&e;t["a"]=A}).call(this,A("c8ba"))},"2d51":function(e,t,A){"use strict";function n(e,t,A,n){var r=65535&e|0,i=e>>>16&65535|0,o=0;while(0!==A){o=A>2e3?2e3:A,A-=o;do{r=r+t[n++]|0,i=i+r|0}while(--o);r%=65521,i%=65521}return r|i<<16|0}e.exports=n},"2d6b":function(e,t,A){"use strict";A("93aa")},"2ed7":function(e,t){e.exports={isArray:function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}}},3100:function(e,t,A){},"318a":function(e,t,A){e.exports=A.p+"img/jisuan.svg"},"31fc":function(e,t,A){"use strict";A.d(t,"m",(function(){return n})),A.d(t,"n",(function(){return r})),A.d(t,"p",(function(){return i})),A.d(t,"o",(function(){return o})),A.d(t,"c",(function(){return a})),A.d(t,"d",(function(){return s})),A.d(t,"k",(function(){return l})),A.d(t,"g",(function(){return c})),A.d(t,"f",(function(){return h})),A.d(t,"i",(function(){return p})),A.d(t,"j",(function(){return m})),A.d(t,"b",(function(){return g})),A.d(t,"e",(function(){return v})),A.d(t,"a",(function(){return y})),A.d(t,"l",(function(){return x})),A.d(t,"h",(function(){return k}));var n=function(e){return e.charCodeAt(0)},r=function(e){return e.codePointAt(0)},i=function(e,t){return l(e.toString(16),t,"0").toUpperCase()},o=function(e){return i(e,2)},a=function(e){return String.fromCharCode(e)},s=function(e){return a(parseInt(e,16))},l=function(e,t,A){for(var n="",r=0,i=t-e.length;r=55296&&n<=56319&&e.length>r&&(A=e.charCodeAt(r),A>=56320&&A<=57343&&(i=2)),[e.slice(t,t+i),i]},v=function(e){for(var t=[],A=0,n=e.length;AA&&l(),o+=d,a+=p}}return l(),s},w=/^D:(\d\d\d\d)(\d\d)?(\d\d)?(\d\d)?(\d\d)?(\d\d)?([+\-Z])?(\d\d)?'?(\d\d)?'?$/,x=function(e){var t=e.match(w);if(t){var A=t[1],n=t[2],r=void 0===n?"01":n,i=t[3],o=void 0===i?"01":i,a=t[4],s=void 0===a?"00":a,l=t[5],c=void 0===l?"00":l,u=t[6],h=void 0===u?"00":u,d=t[7],f=void 0===d?"Z":d,p=t[8],m=void 0===p?"00":p,g=t[9],v=void 0===g?"00":g,b="Z"===f?"Z":""+f+m+":"+v,y=new Date(A+"-"+r+"-"+o+"T"+s+":"+c+":"+h+b);return y}},k=function(e,t){var A,n,r=0;while(r0&&n++,"text"===r[t].type&&t+1=0?n:A+n;return a<0||a>=A?void 0:t[a]}}),a("at")},"33d7":function(e,t,A){e.exports=A.p+"img/a-1-shilibiao.svg"},3408:function(e,t,A){"use strict";e.exports=function(e){var t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}},3454:function(e){e.exports=JSON.parse('"eJyFWdtyGjkQ/RVqnnarcAo7vuE3jEnCxgEvGDtxKg9iRgxaa0ZEF9s4lX/fnrGdTVZ9lBcKTmvU96PW8C0bmqqStc9OsqsPwYlSdnaPDvb6naP+3v5+1s3emNpPRCVpwdAEq6TdOTW6mC61+hpksyBo/euCTrOg89MKUSm9/XUNwddSletGcbOcfo+90Cof1KWmdTu7e4S4N+pBFhfK5+vsxNsgu9lwLazIvbRz2Tw7evCyLmQxM5Won809PTUP2cnnnYOj7s7eQa97fNjvHvd2v3SzBS21WtXywjjllakbRb3eT4LLtcpva+lcdkJPZlfSunZZ1uu9ftXr9UjFxHiVP7my2drGh84f+Z+d3f5xv0uf/V77udt+vm4/jzqDwixlZ751XlauM65zYzfGCi+LV53OQOvOrNnHdWbSSXtHKOkZ0apC1eU8X8s2dO0mcy/qQtjiRUoLh2Lz7jmWB4cUto8vv/Zf97vZwOVNhGx2crhHP8/kj987uxShbO6Ld9fZyfF++/WKvu72Dp/i/EF6q3IKxedv2fVH2qAJ1YQscRtBEfje/R8sH3Itqhj/Ggx5utSxpA7VsglxWceywmgtbIxvpM2bio0EoiKRo/AAC9pcMfsJK2stV0gEHhOu2dHdMk/p4GI0p0YTMbzebtaS8Z5cUYbxxGnh1jH8KK2JUVMzWfL3zEq/tpJZu6JuZVB1x6x16oEB5R3nneRjWivO4Nxow+zhZKWASDcNHCv9GgRTg6WV1IiMm8ReriWJOPeM7YMYOo2hYQydxdAoht7E0NsYehdD4xj6K4bex9B5DH2IoUkMTWPoIob+jqFZDM1j6DKGFjF0FUPXMfQxhj7F0E0MLekQupWep40lyUCfPj8HOSVXKlc2DwyLhoa1HZ0cTIu0/MYbw3DOkukxhn+ZDmK4gGkohuViSMXQPzHE0CvTwky0mK5laG/DhDKGGG5g6IWJfYihuxi6jyGGSbcM6fP1BQphyR2m7fpUNXqlC3jUF+aeiTN/OjfHpW4GlriEmoGO5dktd3astLGKPQ/ALnmwdIznTADbtnGqHTnh1MJHswyKJJUBFNCI241/IwahXzHdsWIKnyY5lmYKUZbckfaEs6PY08DR5E5ayfQ+zUKitGLDkRpdASTjxX/hXQqXiHBaCkL0IwFALrVWG6eYRiVP/doENCk+Hfp8aVMAuNFH5MFzg0vL5CstmXYGfVWJ3HI1vLSSU1wYL3K+3wq6ZUnWf8t2YS4LCig3oYa6FDZUWgRGjSlpyGRYOhesH7LiC3bAjDzGFiua8fih8BwcsFOE8woqIrmgWQ2Cj3czWzLdqYFeg3Bmd2pNusVSyTNJG+N8SlB+AhRNSGdUgtR9whYU6k5x1fwJWDZIdYYADy1SD23BQ669dqEekaktF3yfLHAYBGqGBbAuoAdGWMkZEQR3/0g6mr+8qmBUIcrJQR0IPi6TpAEa1Shg1MvkbkO0G2DVUYInHXDTQUJUQLs2j7IuGcEMqHibdDIkmyQlHKCUWmBIDn29SUTucm0ss9kUaZ+BuM0BXgBrF0hB4CuzfbfhQjvgMDPRFJTgAOGAVqugvdpoZswMwMFL4CCNWl4JXagVc7vaYmqYAD0qVSyjZJklTh0syoEdNaJBlNAJCNAYbNS8eaOBgXv9trTmVtbsHcjKUjkw9b4FyR6nGCVQV/NXkRGoKQscMigyN+CBGxCx55dc4BXYyDMTyhCSgk7ylkejHzwdkWCAxodEVYIAP6LWQLqnKCPo6EGZckgzdmKaHEuAh2dSeyZXnidpf28SjIhNq5hXGgpYZNJz5giFvgATTsvjVMCWCpkxbZ6oV74i3yfr+BwkzltRyEpYxnKZYIUxiNIYFc45sJqCthaaORmamwlocJOqqBpMTYvf5A/ERyKHSsCl5NBzVrmk8kGYJ1M3TVteEEtw/3YYkKIhMCJANi9UzqXhDGxkk95MQH4MwGfpsk5KB2DPAeRofuaagn0eEx0yQqc90n2bdAUMAuNkKwATfPpyY8om37Xh3o9gLg1YRFuhf6vSF1ruIH8ETtXJrSjk+IRQqMdHofkf8ks3ey9tfSGUbf49/vL9XxrnGMA="')},3469:function(e,t,A){e.exports=A.p+"img/a-3-chuangkoutie.svg"},"347b":function(e,t,A){e.exports=A.p+"img/OAxitong.svg"},"35aa":function(e,t,A){e.exports=A.p+"img/shengdanjie.svg"},"35ae":function(e,t,A){e.exports=A.p+"img/menpiao.svg"},"35d8":function(e,t,A){e.exports=A.p+"img/fishbone.jpg"},"369f":function(e,t,A){e.exports=A.p+"img/sousuo.svg"},"36a2":function(e,t,A){"use strict";A("791e")},"36b7":function(e,t,A){"use strict";A("c018")},3752:function(e,t,A){e.exports=A.p+"img/gongju.svg"},"37e8":function(e,t,A){"use strict";var n=A("83ab"),r=A("aed9"),i=A("9bf2"),o=A("825a"),a=A("fc6a"),s=A("df75");t.f=n&&!r?Object.defineProperties:function(e,t){o(e);var A,n=a(t),r=s(t),l=r.length,c=0;while(l>c)i.f(e,A=r[c++],n[A]);return e}},"37fa":function(e,t,A){e.exports=A.p+"img/logicalStructureLeft.jpg"},3819:function(e,t,A){e.exports=A.p+"img/timeline2.jpg"},"3a7c":function(e,t,A){function n(e){return Array.isArray?Array.isArray(e):"[object Array]"===g(e)}function r(e){return"boolean"===typeof e}function i(e){return null===e}function o(e){return null==e}function a(e){return"number"===typeof e}function s(e){return"string"===typeof e}function l(e){return"symbol"===typeof e}function c(e){return void 0===e}function u(e){return"[object RegExp]"===g(e)}function h(e){return"object"===typeof e&&null!==e}function d(e){return"[object Date]"===g(e)}function f(e){return"[object Error]"===g(e)||e instanceof Error}function p(e){return"function"===typeof e}function m(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function g(e){return Object.prototype.toString.call(e)}t.isArray=n,t.isBoolean=r,t.isNull=i,t.isNullOrUndefined=o,t.isNumber=a,t.isString=s,t.isSymbol=l,t.isUndefined=c,t.isRegExp=u,t.isObject=h,t.isDate=d,t.isError=f,t.isFunction=p,t.isPrimitive=m,t.isBuffer=A("1c35").Buffer.isBuffer},"3acd":function(e,t,A){e.exports=A.p+"img/fanwendengji.svg"},"3b12":function(e,t,A){},"3b39":function(e,t,A){e.exports=A.p+"img/dark5.png"},"3b50":function(e,t,A){e.exports=A.p+"img/jiandan.svg"},"3b78":function(e,t,A){},"3bbe":function(e,t,A){"use strict";var n=A("1787"),r=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+r(e)+" as a prototype")}},"3bd3":function(e,t,A){e.exports=A.p+"img/jiaoxuelou.svg"},"3c59":function(e,t,A){"use strict";A("a2d8")},"3d18":function(e,t,A){e.exports=A.p+"img/jiangbei.svg"},"3ec8":function(e,t,A){e.exports=A.p+"img/a-19guaizhang.svg"},"3f8c":function(e,t,A){"use strict";e.exports={}},"3fb5":function(e,t){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var A=function(){};A.prototype=t.prototype,e.prototype=new A,e.prototype.constructor=e}}},"401c":function(e){e.exports=JSON.parse('"eJyFWdtSGzkQ/RXXPO1WmZSBEAJvjnESb8AmGENCKg+ypj3Wohk5ugAmlX9fzUCyW6s+ysuUfVqXvh61Zr4XI1PX1PjiuLg6C05U1Ns/Ojx42TsYHB4eFf3irWn8VNQUB4xMsIpsCwatU1DUSm8T+JpUtW7XP6NShToiEy+0ksOm0nHkIP53b9UDlefKy3Vx7G2gfjFaCyukJzundu74wVNTUnlhatE8a/XmjXkojr/s7O33d/YOBv3D3YP+68HB136xiEOtVg2dG6e8Mk1xvLM7GPxHcLlW8rYh54rjOLO4Iuu6YcVgsP9iMBjELabGK/lkymZrWxt6f8g/e7tHr4/68Xk06J673XOve+53z8PesDRL6s23zlPtepNGGrsxVngqX/R6Q617F+1qrndBjuxdRONu4ziqVE01l2vqHNgtMveiKYUtf0rjwJHYvH/26MGrvX7x6ee/l3uv+sXQydZPtjh+tXfUL07o1/+d3YPDfjH35fvrOHO3+3n1/LN19hl5q2T0x5fvxfWnOL/11zQq4jYiuuFH/38wPUgt6hT/Fkw0dKlTSRPqZevnqkllpdFa2BTfkJVtdiYCUUeRi94BGnQBY9YTlhpNKyQC04RrV3S3zCwdXIrKWFQihdfbzZoY66MpyjCWOC3cOoUfyZoUNQ0TJX/PjPRrS8zYVSxZBlV3zFinHhiQ7jjriPdpoziFpdGGWcNRrYBIt1WcbvotCCYHK0uxDhkzvwVyHVOksWd0H6bQmxQapdBJCo1T6G0KvUuh9yk0SaG/UuhDCp2m0FkKTVNolkLnKfQxhS5SaJ5Clym0SKGrFLpOoU8p9DmFblJoGU+iW/I8bSyjDNTp8zzIKVIpqawMDIuGlrRdPDiYEun4jVeG4ZwlU2MM/zIVxHABU1AMy6WQSqG/U4ihV6aEGW8xVcvQ3oZxZQox3MDQC+P7kEJ3KXSfQgyTbhnS5/MLJMKSO0y78bls9EqX8KgvzT3jZ/50bo9L3fYraQq1XR3Ls1vu7FhpYxV7HoBVZLDxGJeMA7uycarrOmHXwnuzCipKagMooBV3C/9GDFy/YqpjxSR+bORYmilFVXFH2hPOtmJPDUcbO7LE1H7shURlxYYjtdj6E2PFv+5dCpfxcF4KXPQrAEBOWquNU0yhRkv92gTUKT4d+nxqRwdwrY+QwXONS8fkK01MOYO6qoW0XA4vLXEbl8YLyddbGa9axNpv2SqU8SoWG26Gu0NTCRtqLQKzjalik8mwtBSsHVTzCTtkWh5jy1Xs8fim8BQcsDOE8xvUkeSCZncQvL/b3pKpTg32NQhnVo+lGa+yMeWZoE1wPAmknwBJE/IRJRC6z1iDUt0pLps/A82GucoQYNIiN2kLJrnu2oVqhHJLLvg6WWA3CFQMC6BdQBPGeJOTSBDc/SNrqPz5voLZClGOBHkgeL9MswpolKOAUS+zq43QaoBVxxmedMBMBwlRgd21eaSmYgQXYIt3WSNDtkhywiEKqQWKSGjrTcZzl2tjmcVmaPcL4Lc5wEug7QJtEPjM7N5tuNA1OExPNAMpOEQ4oNU6aK82mmkzAzDwEhgYWy2vhC7VirldbTE1TME+Kpcs42yaZU4dLJJAjwbRIAroFDhoAhZq37zFhoF7/ba05pYa9g5kqVIOdL3vQLAnOUYJsar5q8gY5JQFBhnkmRsw4QZ47PklF3gFNvZMhzKCpKCzvOVR6wdPRyQYovYhk5XAwY+oNNDeMxQRdPSgSDm0MzZilm1LgIUnpD0TK8+TtL83GUbEqtXMKw0FNDL5PnOMXF+CDqfj8ZjANiYyo9o8k698Rn7I5vEpCJy3oqRaWEZzyrDCBHhpghLnFGgdnbYWmjkZ2psJKHCTy6gGdE2L38QP+IeQQRXg0mjQc1S5oPJOmGdDN8trXkaW4L52GBCiEVAiQDYvleTCcAIWsllrpiA+BuAX+bTOSodgzSHkaL7nmoF1HjMVMkanPdr7NmsKaAQm2VIAKvj85cZUbbwbw70fwVwasCguhb5W5S+03EH+CIxqsktFl+MTQqEaH4f2O+TXfvGBbHMulG2/Hn/98Q/b2xEO"')},4027:function(e,t,A){},"406c":function(e,t,A){"use strict";function n(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}e.exports=n},4129:function(e,t,A){"use strict";A("f5c8")},"419c":function(e,t,A){"use strict";A("1f78")},"41b8":function(e,t,A){e.exports=A.p+"img/dark4.jpg"},"41c5":function(e,t,A){e.exports=A.p+"img/-_12.svg"},4236:function(e,t,A){"use strict";var n=A("0068").isSpace;e.exports=function(e,t){var A,r,i,o=e.pos;if(10!==e.src.charCodeAt(o))return!1;if(A=e.pending.length-1,r=e.posMax,!t)if(A>=0&&32===e.pending.charCodeAt(A))if(A>=1&&32===e.pending.charCodeAt(A-1)){i=A-1;while(i>=1&&32===e.pending.charCodeAt(i-1))i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);o++;while(o!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function a(e,t){let{$cursor:A}=e.selection;return!A||(t?!t.endOfTextblock("backward",e):A.parentOffset>0)?null:A}const s=(e,t,A)=>{let o=a(e,A);if(!o)return!1;let s=u(o);if(!s){let A=o.blockRange(),r=A&&Object(n["k"])(A);return null!=r&&(t&&t(e.tr.lift(A,r).scrollIntoView()),!0)}let c=s.nodeBefore;if(!c.type.spec.isolating&&N(e,s,t))return!0;if(0==o.parent.content.size&&(l(c,"end")||i["NodeSelection"].isSelectable(c))){let A=Object(n["l"])(e.doc,o.before(),o.after(),r["Slice"].empty);if(A&&A.slice.size{let{$head:n,empty:r}=e.selection,o=n;if(!r)return!1;if(n.parent.isTextblock){if(A?!A.endOfTextblock("backward",e):n.parentOffset>0)return!1;o=u(n)}let a=o&&o.nodeBefore;return!(!a||!i["NodeSelection"].isSelectable(a))&&(t&&t(e.tr.setSelection(i["NodeSelection"].create(e.doc,o.pos-a.nodeSize)).scrollIntoView()),!0)};function u(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function h(e,t){let{$cursor:A}=e.selection;return!A||(t?!t.endOfTextblock("forward",e):A.parentOffset{let o=h(e,A);if(!o)return!1;let a=p(o);if(!a)return!1;let s=a.nodeAfter;if(N(e,a,t))return!0;if(0==o.parent.content.size&&(l(s,"start")||i["NodeSelection"].isSelectable(s))){let A=Object(n["l"])(e.doc,o.before(),o.after(),r["Slice"].empty);if(A&&A.slice.size{let{$head:n,empty:r}=e.selection,o=n;if(!r)return!1;if(n.parent.isTextblock){if(A?!A.endOfTextblock("forward",e):n.parentOffset=0;t--){let A=e.node(t);if(e.index(t)+1{let{$head:A,$anchor:n}=e.selection;return!(!A.parent.type.spec.code||!A.sameParent(n))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function g(e){for(let t=0;t{let{$head:A,$anchor:n}=e.selection;if(!A.parent.type.spec.code||!A.sameParent(n))return!1;let r=A.node(-1),o=A.indexAfter(-1),a=g(r.contentMatchAt(o));if(!a||!r.canReplaceWith(o,o,a))return!1;if(t){let n=A.after(),r=e.tr.replaceWith(n,n,a.createAndFill());r.setSelection(i["Selection"].near(r.doc.resolve(n),1)),t(r.scrollIntoView())}return!0},b=(e,t)=>{let A=e.selection,{$from:n,$to:r}=A;if(A instanceof i["AllSelection"]||n.parent.inlineContent||r.parent.inlineContent)return!1;let o=g(r.parent.contentMatchAt(r.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){let A=(!n.parentOffset&&r.index(){let{$cursor:A}=e.selection;if(!A||A.parent.content.size)return!1;if(A.depth>1&&A.after()!=A.end(-1)){let r=A.before();if(Object(n["g"])(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=A.blockRange(),i=r&&Object(n["k"])(r);return null!=i&&(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)};function w(e){return(t,A)=>{let{$from:r,$to:o}=t.selection;if(t.selection instanceof i["NodeSelection"]&&t.selection.node.isBlock)return!(!r.parentOffset||!Object(n["g"])(t.doc,r.pos))&&(A&&A(t.tr.split(r.pos).scrollIntoView()),!0);if(!r.parent.isBlock)return!1;if(A){let a=o.parentOffset==o.parent.content.size,s=t.tr;(t.selection instanceof i["TextSelection"]||t.selection instanceof i["AllSelection"])&&s.deleteSelection();let l=0==r.depth?null:g(r.node(-1).contentMatchAt(r.indexAfter(-1))),c=e&&e(o.parent,a),u=c?[c]:a&&l?[{type:l}]:void 0,h=Object(n["g"])(s.doc,s.mapping.map(r.pos),1,u);if(u||h||!Object(n["g"])(s.doc,s.mapping.map(r.pos),1,l?[{type:l}]:void 0)||(l&&(u=[{type:l}]),h=!0),h&&(s.split(s.mapping.map(r.pos),1,u),!a&&!r.parentOffset&&r.parent.type!=l)){let e=s.mapping.map(r.before()),t=s.doc.resolve(e);l&&r.node(-1).canReplaceWith(t.index(),t.index()+1,l)&&s.setNodeMarkup(s.mapping.map(r.before()),l)}A(s.scrollIntoView())}return!0}}const x=w(),k=(e,t)=>(t&&t(e.tr.setSelection(new i["AllSelection"](e.doc))),!0);function T(e,t,A){let r=t.nodeBefore,i=t.nodeAfter,o=t.index();return!!(r&&i&&r.type.compatibleContent(i.type))&&(!r.content.size&&t.parent.canReplace(o-1,o)?(A&&A(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!(!t.parent.canReplace(o,o+1)||!i.isTextblock&&!Object(n["f"])(e.doc,t.pos))&&(A&&A(e.tr.clearIncompatible(t.pos,r.type,r.contentMatchAt(r.childCount)).join(t.pos).scrollIntoView()),!0))}function N(e,t,A){let o,a,s=t.nodeBefore,c=t.nodeAfter;if(s.type.spec.isolating||c.type.spec.isolating)return!1;if(T(e,t,A))return!0;let u=t.parent.canReplace(t.index(),t.index()+1);if(u&&(o=(a=s.contentMatchAt(s.childCount)).findWrapping(c.type))&&a.matchType(o[0]||c.type).validEnd){if(A){let i=t.pos+c.nodeSize,a=r["Fragment"].empty;for(let e=o.length-1;e>=0;e--)a=r["Fragment"].from(o[e].create(null,a));a=r["Fragment"].from(s.copy(a));let l=e.tr.step(new n["b"](t.pos-1,i,t.pos,i,new r["Slice"](a,1,0),o.length,!0)),u=i+2*o.length;Object(n["f"])(l.doc,u)&&l.join(u),A(l.scrollIntoView())}return!0}let h=i["Selection"].findFrom(t,1),d=h&&h.$from.blockRange(h.$to),f=d&&Object(n["k"])(d);if(null!=f&&f>=t.depth)return A&&A(e.tr.lift(d,f).scrollIntoView()),!0;if(u&&l(c,"start",!0)&&l(s,"end")){let i=s,o=[];for(;;){if(o.push(i),i.isTextblock)break;i=i.lastChild}let a=c,l=1;for(;!a.isTextblock;a=a.firstChild)l++;if(i.canReplace(i.childCount,i.childCount,a.content)){if(A){let i=r["Fragment"].empty;for(let e=o.length-1;e>=0;e--)i=r["Fragment"].from(o[e].copy(i));let a=e.tr.step(new n["b"](t.pos-o.length,t.pos+c.nodeSize,t.pos+l,t.pos+c.nodeSize-l,new r["Slice"](i,o.length,0),0,!0));A(a.scrollIntoView())}return!0}}return!1}function C(e){return function(t,A){let n=t.selection,r=e<0?n.$from:n.$to,o=r.depth;while(r.node(o).isInline){if(!o)return!1;o--}return!!r.node(o).isTextblock&&(A&&A(t.tr.setSelection(i["TextSelection"].create(t.doc,e<0?r.start(o):r.end(o)))),!0)}}const M=C(-1),E=C(1);function S(e,t=null){return function(A,r){let{$from:i,$to:o}=A.selection,a=i.blockRange(o),s=a&&Object(n["i"])(a,e,t);return!!s&&(r&&r(A.tr.wrap(a,s).scrollIntoView()),!0)}}function z(e,t=null){return function(A,n){let r=!1;for(let i=0;i{if(r)return!1;if(n.isTextblock&&!n.hasMarkup(e,t))if(n.type==e)r=!0;else{let t=A.doc.resolve(i),n=t.index();r=t.parent.canReplaceWith(n,n+1,e)}})}if(!r)return!1;if(n){let r=A.tr;for(let n=0;n{if(o)return!1;o=e.inlineContent&&e.type.allowsMarkType(A)}),o)return!0}return!1}function D(e,t=null){return function(A,n){let{empty:r,$cursor:i,ranges:o}=A.selection;if(r&&!i||!O(A.doc,o,e))return!1;if(n)if(i)e.isInSet(A.storedMarks||i.marks())?n(A.tr.removeStoredMark(e)):n(A.tr.addStoredMark(e.create(t)));else{let r=!1,i=A.tr;for(let t=0;!r&&t3)&&!(e.sCount[l]<0)){for(r=!1,i=0,o=c.length;i=o)return-1;if(A=e.src.charCodeAt(i++),A<48||A>57)return-1;for(;;){if(i>=o)return-1;if(A=e.src.charCodeAt(i++),!(A>=48&&A<=57)){if(41===A||46===A)break;return-1}if(i-r>=10)return-1}return i=4)return!1;if(e.listIndent>=0&&e.sCount[L]-e.listIndent>=4&&e.sCount[L]=e.blkIndent&&(R=!0),(E=i(e,L))>=0){if(d=!0,z=e.bMarks[L]+e.tShift[L],b=Number(e.src.slice(z,E-1)),R&&1!==b)return!1}else{if(!((E=r(e,L))>=0))return!1;d=!1}if(R&&e.skipSpaces(E)>=e.eMarks[L])return!1;if(n)return!0;v=e.src.charCodeAt(E-1),g=e.tokens.length,d?(P=e.push("ordered_list_open","ol",1),1!==b&&(P.attrs=[["start",b]])):P=e.push("bullet_list_open","ul",1),P.map=m=[L,0],P.markup=String.fromCharCode(v),S=!1,D=e.md.block.ruler.getRules("list"),k=e.parentType,e.parentType="list";while(L=y?1:w-h,u>4&&(u=1),c=h+u,P=e.push("list_item_open","li",1),P.markup=String.fromCharCode(v),P.map=f=[L,0],d&&(P.info=e.src.slice(z,E-1)),C=e.tight,N=e.tShift[L],T=e.sCount[L],x=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[L]=s-e.bMarks[L],e.sCount[L]=w,s>=y&&e.isEmpty(L+1)?e.line=Math.min(e.line+2,A):e.md.block.tokenize(e,L,A,!0),e.tight&&!S||(F=!1),S=e.line-L>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=x,e.tShift[L]=N,e.sCount[L]=T,e.tight=C,P=e.push("list_item_close","li",-1),P.markup=String.fromCharCode(v),L=e.line,f[1]=L,L>=A)break;if(e.sCount[L]=4)break;for(O=!1,l=0,p=D.length;l=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;t||e.pos++,a[n]=e.pos}else e.pos=a[n]},o.prototype.tokenize=function(e){var t,A,n,r=this.ruler.getRules(""),i=r.length,o=e.posMax,a=e.md.options.maxNesting;while(e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(t){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},o.prototype.parse=function(e,t,A,n){var r,i,o,a=new this.State(e,t,A,n);for(this.tokenize(a),i=this.ruler2.getRules(""),o=i.length,r=0;r=i["a"].Zero&&l<=i["a"].Seven?(t+=s,3!==t.length&&c>="0"&&c<="7"||(n(parseInt(t,8)),t="")):n(l):l===i["a"].BackSlash?A=!0:n(l)}return new Uint8Array(e)},t.prototype.decodeText=function(){var e=this.asBytes();return Object(o["A"])(e)?Object(o["Y"])(e):Object(o["K"])(e)},t.prototype.decodeDate=function(){var e=this.decodeText(),t=Object(o["J"])(e);if(!t)throw new a["d"](e);return t},t.prototype.asString=function(){return this.value},t.prototype.clone=function(){return t.of(this.value)},t.prototype.toString=function(){return"("+this.value+")"},t.prototype.sizeInBytes=function(){return this.value.length+2},t.prototype.copyBytesInto=function(e,t){return e[t++]=i["a"].LeftParen,t+=Object(o["w"])(this.value,e,t),e[t++]=i["a"].RightParen,this.value.length+2},t.of=function(e){return new t(e)},t.fromDate=function(e){var A=Object(o["I"])(String(e.getUTCFullYear()),4,"0"),n=Object(o["I"])(String(e.getUTCMonth()+1),2,"0"),r=Object(o["I"])(String(e.getUTCDate()),2,"0"),i=Object(o["I"])(String(e.getUTCHours()),2,"0"),a=Object(o["I"])(String(e.getUTCMinutes()),2,"0"),s=Object(o["I"])(String(e.getUTCSeconds()),2,"0");return new t("D:"+A+n+r+i+a+s+"Z")},t}(r["a"]);t["a"]=s},"4f5a":function(e,t,A){e.exports=A.p+"img/-_14.svg"},"4fc2":function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},5023:function(e,t,A){e.exports=A.p+"img/ertongjie.svg"},5071:function(e,t,A){},5082:function(e,t,A){e.exports=A.p+"img/a-10-yiliaoxiang.svg"},5087:function(e,t,A){"use strict";var n=A("68ee"),r=A("0d51"),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(r(e)+" is not a constructor")}},"51a1":function(e,t,A){(function(e,A){var n=200,r="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",u="[object Boolean]",h="[object Date]",d="[object Error]",f="[object Function]",p="[object GeneratorFunction]",m="[object Map]",g="[object Number]",v="[object Null]",b="[object Object]",y="[object Promise]",w="[object Proxy]",x="[object RegExp]",k="[object Set]",T="[object String]",N="[object Symbol]",C="[object Undefined]",M="[object WeakMap]",E="[object ArrayBuffer]",S="[object DataView]",z="[object Float32Array]",O="[object Float64Array]",D="[object Int8Array]",P="[object Int16Array]",L="[object Int32Array]",R="[object Uint8Array]",F="[object Uint8ClampedArray]",I="[object Uint16Array]",B="[object Uint32Array]",j=/[\\^$.*+?()[\]{}|]/g,q=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,W={};W[z]=W[O]=W[D]=W[P]=W[L]=W[R]=W[F]=W[I]=W[B]=!0,W[s]=W[l]=W[E]=W[u]=W[S]=W[h]=W[d]=W[f]=W[m]=W[g]=W[b]=W[x]=W[k]=W[T]=W[M]=!1;var X="object"==typeof e&&e&&e.Object===Object&&e,V="object"==typeof self&&self&&self.Object===Object&&self,Z=X||V||Function("return this")(),U=t&&!t.nodeType&&t,G=U&&"object"==typeof A&&A&&!A.nodeType&&A,Y=G&&G.exports===U,K=Y&&X.process,J=function(){try{return K&&K.binding&&K.binding("util")}catch(e){}}(),Q=J&&J.isTypedArray;function _(e,t){var A=-1,n=null==e?0:e.length,r=0,i=[];while(++A-1}function Je(e,t){var A=this.__data__,n=dt(A,e);return n<0?(++this.size,A.push([e,t])):A[n][1]=t,this}function Qe(e){var t=-1,A=null==e?0:e.length;this.clear();while(++tl))return!1;var u=a.get(e);if(u&&a.get(t))return u==t;var h=-1,d=!0,f=A&o?new nt:void 0;a.set(e,t),a.set(t,e);while(++h-1&&e%1==0&&e-1&&e%1==0&&e<=a}function Zt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ut(e){return null!=e&&"object"==typeof e}var Gt=Q?Ae(Q):yt;function Yt(e){return qt(e)?ht(e):wt(e)}function Kt(){return[]}function Jt(){return!1}A.exports=Wt}).call(this,A("c8ba"),A("62e4")(e))},5227:function(e,t,A){e.exports=A.p+"img/zuche.svg"},5262:function(e,t,A){e.exports=A.p+"img/brainImpairedPink.jpg"},"528d":function(e,t,A){e.exports=A.p+"img/xiaoheiban.svg"},"52f2":function(e,t,A){"use strict";A("542e")},"540f":function(e,t,A){},"542e":function(e,t,A){},5440:function(e,t,A){e.exports=A.p+"img/blackHumour.jpg"},"544e":function(e,t,A){},5471:function(e,t,A){"use strict";A("7591")},"559d":function(e,t,A){e.exports=A.p+"img/simpleBlack.jpg"},5648:function(e,t,A){var n=A("86d7"),r=A("2376"),i=A("0628"),o=A("b1c8");e.exports={xml2js:n,xml2json:r,js2xml:i,json2xml:o}},"565b":function(e,t,A){"use strict";t.parseLinkLabel=A("df56"),t.parseLinkDestination=A("e4ca"),t.parseLinkTitle=A("7d91")},"56b3":function(e,t,A){(function(t,A){e.exports=A()})(0,(function(){"use strict";var e=navigator.userAgent,t=navigator.platform,A=/gecko\/\d/i.test(e),n=/MSIE \d/.test(e),r=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),i=/Edge\/(\d+)/.exec(e),o=n||r||i,a=o&&(n?document.documentMode||6:+(i||r)[1]),s=!i&&/WebKit\//.test(e),l=s&&/Qt\/\d+\.\d+/.test(e),c=!i&&/Chrome\/(\d+)/.exec(e),u=c&&+c[1],h=/Opera\//.test(e),d=/Apple Computer/.test(navigator.vendor),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),p=/PhantomJS/.test(e),m=d&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),g=/Android/.test(e),v=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=m||/Mac/.test(t),y=/\bCrOS\b/.test(e),w=/win/i.test(t),x=h&&e.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(h=!1,s=!0);var k=b&&(l||h&&(null==x||x<12.11)),T=A||o&&a>=9;function N(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var C,M=function(e,t){var A=e.className,n=N(t).exec(A);if(n){var r=A.slice(n.index+n[0].length);e.className=A.slice(0,n.index)+(r?n[1]+r:"")}};function E(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function S(e,t){return E(e).appendChild(t)}function z(e,t,A,n){var r=document.createElement(e);if(A&&(r.className=A),n&&(r.style.cssText=n),"string"==typeof t)r.appendChild(document.createTextNode(t));else if(t)for(var i=0;i=t)return o+(t-i);o+=a-i,o+=A-o%A,i=a+1}}m?F=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:o&&(F=function(e){try{e.select()}catch(t){}});var V=function(){this.id=null,this.f=null,this.time=0,this.handler=H(this.onTimeout,this)};function Z(e,t){for(var A=0;A=t)return n+Math.min(o,t-r);if(r+=i-n,r+=A-r%A,n=i+1,r>=t)return n}}var _=[""];function $(e){while(_.length<=e)_.push(ee(_)+" ");return _[e]}function ee(e){return e[e.length-1]}function te(e,t){for(var A=[],n=0;n"€"&&(e.toUpperCase()!=e.toLowerCase()||ie.test(e))}function ae(e,t){return t?!!(t.source.indexOf("\\w")>-1&&oe(e))||t.test(e):oe(e)}function se(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var le=/[\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 ce(e){return e.charCodeAt(0)>=768&&le.test(e)}function ue(e,t,A){while((A<0?t>0:tA?-1:1;;){if(t==A)return t;var r=(t+A)/2,i=n<0?Math.ceil(r):Math.floor(r);if(i==t)return e(i)?t:A;e(i)?A=i:t=i+n}}function de(e,t,A,n){if(!e)return n(t,A,"ltr",0);for(var r=!1,i=0;it||t==A&&o.to==t)&&(n(Math.max(o.from,t),Math.min(o.to,A),1==o.level?"rtl":"ltr",i),r=!0)}r||n(t,A,"ltr")}var fe=null;function pe(e,t,A){var n;fe=null;for(var r=0;rt)return r;i.to==t&&(i.from!=i.to&&"before"==A?n=r:fe=r),i.from==t&&(i.from!=i.to&&"before"!=A?n=r:fe=r)}return null!=n?n:fe}var me=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function A(A){return A<=247?e.charAt(A):1424<=A&&A<=1524?"R":1536<=A&&A<=1785?t.charAt(A-1536):1774<=A&&A<=2220?"r":8192<=A&&A<=8203?"w":8204==A?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,i=/[LRr]/,o=/[Lb1n]/,a=/[1n]/;function s(e,t,A){this.level=e,this.from=t,this.to=A}return function(e,t){var l="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!n.test(e))return!1;for(var c=e.length,u=[],h=0;h-1&&(n[t]=r.slice(0,i).concat(r.slice(i+1)))}}}function xe(e,t){var A=ye(e,t);if(A.length)for(var n=Array.prototype.slice.call(arguments,2),r=0;r0}function Ce(e){e.prototype.on=function(e,t){be(this,e,t)},e.prototype.off=function(e,t){we(this,e,t)}}function Me(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ee(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Se(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function ze(e){Me(e),Ee(e)}function Oe(e){return e.target||e.srcElement}function De(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var Pe,Le,Re=function(){if(o&&a<9)return!1;var e=z("div");return"draggable"in e||"dragDrop"in e}();function Fe(e){if(null==Pe){var t=z("span","​");S(e,z("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Pe=t.offsetWidth<=1&&t.offsetHeight>2&&!(o&&a<8))}var A=Pe?z("span","​"):z("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return A.setAttribute("cm-text",""),A}function Ie(e){if(null!=Le)return Le;var t=S(e,document.createTextNode("AخA")),A=C(t,0,1).getBoundingClientRect(),n=C(t,1,2).getBoundingClientRect();return E(e),!(!A||A.left==A.right)&&(Le=n.right-A.right<3)}var Be=3!="\n\nb".split(/\n/).length?function(e){var t=0,A=[],n=e.length;while(t<=n){var r=e.indexOf("\n",t);-1==r&&(r=e.length);var i=e.slice(t,"\r"==e.charAt(r-1)?r-1:r),o=i.indexOf("\r");-1!=o?(A.push(i.slice(0,o)),t+=o+1):(A.push(i),t=r+1)}return A}:function(e){return e.split(/\r\n?|\n/)},je=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(A){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},qe=function(){var e=z("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),He=null;function We(e){if(null!=He)return He;var t=S(e,z("span","x")),A=t.getBoundingClientRect(),n=C(t,0,1).getBoundingClientRect();return He=Math.abs(A.left-n.left)>1}var Xe={},Ve={};function Ze(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Xe[e]=t}function Ue(e,t){Ve[e]=t}function Ge(e){if("string"==typeof e&&Ve.hasOwnProperty(e))e=Ve[e];else if(e&&"string"==typeof e.name&&Ve.hasOwnProperty(e.name)){var t=Ve[e.name];"string"==typeof t&&(t={name:t}),e=re(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ge("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ge("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ye(e,t){t=Ge(t);var A=Xe[t.name];if(!A)return Ye(e,"text/plain");var n=A(e,t);if(Ke.hasOwnProperty(t.name)){var r=Ke[t.name];for(var i in r)r.hasOwnProperty(i)&&(n.hasOwnProperty(i)&&(n["_"+i]=n[i]),n[i]=r[i])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)n[o]=t.modeProps[o];return n}var Ke={};function Je(e,t){var A=Ke.hasOwnProperty(e)?Ke[e]:Ke[e]={};W(t,A)}function Qe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var A={};for(var n in t){var r=t[n];r instanceof Array&&(r=r.concat([])),A[n]=r}return A}function _e(e,t){var A;while(e.innerMode){if(A=e.innerMode(t),!A||A.mode==e)break;t=A.state,e=A.mode}return A||{mode:e,state:t}}function $e(e,t,A){return!e.startState||e.startState(t,A)}var et=function(e,t,A){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=A};function tt(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");var A=e;while(!A.lines)for(var n=0;;++n){var r=A.children[n],i=r.chunkSize();if(t=e.first&&tA?lt(A,tt(e,A).text.length):gt(t,tt(e,t.line).text.length)}function gt(e,t){var A=e.ch;return null==A||A>t?lt(e.line,t):A<0?lt(e.line,0):e}function vt(e,t){for(var A=[],n=0;n=this.string.length},et.prototype.sol=function(){return this.pos==this.lineStart},et.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},et.prototype.next=function(){if(this.post},et.prototype.eatSpace=function(){var e=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++this.pos;return this.pos>e},et.prototype.skipToEnd=function(){this.pos=this.string.length},et.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},et.prototype.backUp=function(e){this.pos-=e},et.prototype.column=function(){return this.lastColumnPos0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}var r=function(e){return A?e.toLowerCase():e},i=this.string.substr(this.pos,e.length);if(r(i)==r(e))return!1!==t&&(this.pos+=e.length),!0},et.prototype.current=function(){return this.string.slice(this.start,this.pos)},et.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},et.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},et.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var bt=function(e,t){this.state=e,this.lookAhead=t},yt=function(e,t,A,n){this.state=t,this.doc=e,this.line=A,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};function wt(e,t,A,n){var r=[e.state.modeGen],i={};zt(e,t.text,e.doc.mode,A,(function(e,t){return r.push(e,t)}),i,n);for(var o=A.state,a=function(n){A.baseTokens=r;var a=e.state.overlays[n],s=1,l=0;A.state=!0,zt(e,t.text,a.mode,A,(function(e,t){var A=s;while(le&&r.splice(s,1,e,r[s+1],n),s+=2,l=Math.min(e,n)}if(t)if(a.opaque)r.splice(A,s-A,e,"overlay "+t),s=A+2;else for(;Ae.options.maxHighlightLength&&Qe(e.doc.mode,n.state),i=wt(e,t,n);r&&(n.state=r),t.stateAfter=n.save(!r),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),A===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function kt(e,t,A){var n=e.doc,r=e.display;if(!n.mode.startState)return new yt(n,!0,t);var i=Ot(e,t,A),o=i>n.first&&tt(n,i-1).stateAfter,a=o?yt.fromSaved(n,o,i):new yt(n,$e(n.mode),i);return n.iter(i,t,(function(A){Tt(e,A.text,a);var n=a.line;A.stateAfter=n==t-1||n%5==0||n>=r.viewFrom&&nt.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}yt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},yt.prototype.baseToken=function(e){if(!this.baseTokens)return null;while(this.baseTokens[this.baseTokenPos]<=e)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},yt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},yt.fromSaved=function(e,t,A){return t instanceof bt?new yt(e,Qe(e.mode,t.state),A,t.lookAhead):new yt(e,Qe(e.mode,t),A)},yt.prototype.save=function(e){var t=!1!==e?Qe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new bt(t,this.maxLookAhead):t};var Mt=function(e,t,A){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=A};function Et(e,t,A,n){var r,i=e.doc,o=i.mode;t=mt(i,t);var a,s=tt(i,t.line),l=kt(e,t.line,A),c=new et(s.text,e.options.tabSize,l);n&&(a=[]);while((n||c.pose.options.maxHighlightLength?(a=!1,o&&Tt(e,t,n,u.pos),u.pos=t.length,s=null):s=St(Ct(A,u,n.state,h),i),h){var d=h[0].name;d&&(s="m-"+(s?d+" "+s:d))}if(!a||c!=s){while(lo;--a){if(a<=i.first)return i.first;var s=tt(i,a-1),l=s.stateAfter;if(l&&(!A||a+(l instanceof bt?l.lookAhead:0)<=i.modeFrontier))return a;var c=X(s.text,null,e.options.tabSize);(null==r||n>c)&&(r=a-1,n=c)}return r}function Dt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontierA;n--){var r=tt(e,n).stateAfter;if(r&&(!(r instanceof bt)||n+r.lookAhead=t:i.to>t);(n||(n=[])).push(new It(o,i.from,s?null:i.to))}}return n}function Wt(e,t,A){var n;if(e)for(var r=0;r=t:i.to>t);if(a||i.from==t&&"bookmark"==o.type&&(!A||i.marker.insertLeft)){var s=null==i.from||(o.inclusiveLeft?i.from<=t:i.from0&&a)for(var y=0;y0)){var c=[s,1],u=ct(l.from,a.from),h=ct(l.to,a.to);(u<0||!o.inclusiveLeft&&!u)&&c.push({from:l.from,to:a.from}),(h>0||!o.inclusiveRight&&!h)&&c.push({from:a.to,to:l.to}),r.splice.apply(r,c),s+=c.length-3}}return r}function Ut(e){var t=e.markedSpans;if(t){for(var A=0;At)&&(!A||Jt(A,i.marker)<0)&&(A=i.marker)}return A}function tA(e,t,A,n,r){var i=tt(e,t),o=Lt&&i.markedSpans;if(o)for(var a=0;a=0&&u<=0||c<=0&&u>=0)&&(c<=0&&(s.marker.inclusiveRight&&r.inclusiveLeft?ct(l.to,A)>=0:ct(l.to,A)>0)||c>=0&&(s.marker.inclusiveRight&&r.inclusiveLeft?ct(l.from,n)<=0:ct(l.from,n)<0)))return!0}}}function AA(e){var t;while(t=_t(e))e=t.find(-1,!0).line;return e}function nA(e){var t;while(t=$t(e))e=t.find(1,!0).line;return e}function rA(e){var t,A;while(t=$t(e))e=t.find(1,!0).line,(A||(A=[])).push(e);return A}function iA(e,t){var A=tt(e,t),n=AA(A);return A==n?t:it(n)}function oA(e,t){if(t>e.lastLine())return t;var A,n=tt(e,t);if(!aA(e,n))return t;while(A=$t(n))n=A.find(1,!0).line;return it(n)+1}function aA(e,t){var A=Lt&&t.markedSpans;if(A)for(var n=void 0,r=0;rt.maxLineLength&&(t.maxLineLength=A,t.maxLine=e)}))}var hA=function(e,t,A){this.text=e,Gt(this,t),this.height=A?A(this):1};function dA(e,t,A,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ut(e),Gt(e,A);var r=n?n(e):1;r!=e.height&&rt(e,r)}function fA(e){e.parent=null,Ut(e)}hA.prototype.lineNo=function(){return it(this)},Ce(hA);var pA={},mA={};function gA(e,t){if(!e||/^\s*$/.test(e))return null;var A=t.addModeClass?mA:pA;return A[e]||(A[e]=e.replace(/\S+/g,"cm-$&"))}function vA(e,t){var A=O("span",null,null,s?"padding-right: .1px":null),n={pre:O("pre",[A],"CodeMirror-line"),content:A,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var r=0;r<=(t.rest?t.rest.length:0);r++){var i=r?t.rest[r-1]:t.line,o=void 0;n.pos=0,n.addToken=yA,Ie(e.display.measure)&&(o=ge(i,e.doc.direction))&&(n.addToken=xA(n.addToken,o)),n.map=[];var a=t!=e.display.externalMeasured&&it(i);TA(i,n,xt(e,i,a)),i.styleClasses&&(i.styleClasses.bgClass&&(n.bgClass=R(i.styleClasses.bgClass,n.bgClass||"")),i.styleClasses.textClass&&(n.textClass=R(i.styleClasses.textClass,n.textClass||""))),0==n.map.length&&n.map.push(0,0,n.content.appendChild(Fe(e.display.measure))),0==r?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(s){var l=n.content.lastChild;(/\bcm-tab\b/.test(l.className)||l.querySelector&&l.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return xe(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=R(n.pre.className,n.textClass||"")),n}function bA(e){var t=z("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function yA(e,t,A,n,r,i,s){if(t){var l,c=e.splitSpaces?wA(t,e.trailingSpace):t,u=e.cm.state.specialChars,h=!1;if(u.test(t)){l=document.createDocumentFragment();var d=0;while(1){u.lastIndex=d;var f=u.exec(t),p=f?f.index-d:t.length-d;if(p){var m=document.createTextNode(c.slice(d,d+p));o&&a<9?l.appendChild(z("span",[m])):l.appendChild(m),e.map.push(e.pos,e.pos+p,m),e.col+=p,e.pos+=p}if(!f)break;d+=p+1;var g=void 0;if("\t"==f[0]){var v=e.cm.options.tabSize,b=v-e.col%v;g=l.appendChild(z("span",$(b),"cm-tab")),g.setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),e.col+=b}else"\r"==f[0]||"\n"==f[0]?(g=l.appendChild(z("span","\r"==f[0]?"␍":"␤","cm-invalidchar")),g.setAttribute("cm-text",f[0]),e.col+=1):(g=e.cm.options.specialCharPlaceholder(f[0]),g.setAttribute("cm-text",f[0]),o&&a<9?l.appendChild(z("span",[g])):l.appendChild(g),e.col+=1);e.map.push(e.pos,e.pos+1,g),e.pos++}}else e.col+=t.length,l=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,l),o&&a<9&&(h=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),A||n||r||h||i||s){var y=A||"";n&&(y+=n),r&&(y+=r);var w=z("span",[l],y,i);if(s)for(var x in s)s.hasOwnProperty(x)&&"style"!=x&&"class"!=x&&w.setAttribute(x,s[x]);return e.content.appendChild(w)}e.content.appendChild(l)}}function wA(e,t){if(e.length>1&&!/ /.test(e))return e;for(var A=t,n="",r=0;rl&&u.from<=l)break;if(u.to>=c)return e(A,n,r,i,o,a,s);e(A,n.slice(0,u.to-l),r,i,null,a,s),i=null,n=n.slice(u.to-l),l=u.to}}}function kA(e,t,A,n){var r=!n&&A.widgetNode;r&&e.map.push(e.pos,e.pos+t,r),!n&&e.cm.display.input.needsContentAttribute&&(r||(r=e.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",A.id)),r&&(e.cm.display.input.setUneditable(r),e.content.appendChild(r)),e.pos+=t,e.trailingSpace=!1}function TA(e,t,A){var n=e.markedSpans,r=e.text,i=0;if(n)for(var o,a,s,l,c,u,h,d=r.length,f=0,p=1,m="",g=0;;){if(g==f){s=l=c=a="",h=null,u=null,g=1/0;for(var v=[],b=void 0,y=0;yf||x.collapsed&&w.to==f&&w.from==f)){if(null!=w.to&&w.to!=f&&g>w.to&&(g=w.to,l=""),x.className&&(s+=" "+x.className),x.css&&(a=(a?a+";":"")+x.css),x.startStyle&&w.from==f&&(c+=" "+x.startStyle),x.endStyle&&w.to==g&&(b||(b=[])).push(x.endStyle,w.to),x.title&&((h||(h={})).title=x.title),x.attributes)for(var k in x.attributes)(h||(h={}))[k]=x.attributes[k];x.collapsed&&(!u||Jt(u.marker,x)<0)&&(u=w)}else w.from>f&&g>w.from&&(g=w.from)}if(b)for(var T=0;T=d)break;var C=Math.min(d,g);while(1){if(m){var M=f+m.length;if(!u){var E=M>C?m.slice(0,C-f):m;t.addToken(t,E,o?o+s:s,c,f+E.length==g?l:"",a,h)}if(M>=C){m=m.slice(C-f),f=C;break}f=M,c=""}m=r.slice(i,i=A[p++]),o=gA(A[p++],t.cm.options)}}else for(var S=1;S2&&i.push((s.bottom+l.top)/2-A.top)}}i.push(A.bottom-A.top)}}function tn(e,t,A){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var n=0;nA)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}}function An(e,t){t=AA(t);var A=it(t),n=e.display.externalMeasured=new NA(e.doc,t,A);n.lineN=A;var r=n.built=vA(e,n);return n.text=r.pre,S(e.display.lineMeasure,r.pre),n}function nn(e,t,A,n){return an(e,on(e,t),A,n)}function rn(e,t){if(t>=e.display.viewFrom&&t=A.lineN&&tt)&&(i=s-a,r=i-1,t>=s&&(o="right")),null!=r){if(n=e[l+2],a==s&&A==(n.insertLeft?"left":"right")&&(o=A),"left"==A&&0==r)while(l&&e[l-2]==e[l-3]&&e[l-1].insertLeft)n=e[2+(l-=3)],o="left";if("right"==A&&r==s-a)while(l=0;r--)if((A=e[r]).left!=A.right)break;return A}function hn(e,t,A,n){var r,i=cn(t.map,A,n),s=i.node,l=i.start,c=i.end,u=i.collapse;if(3==s.nodeType){for(var h=0;h<4;h++){while(l&&ce(t.line.text.charAt(i.coverStart+l)))--l;while(i.coverStart+c0&&(u=n="right"),r=e.options.lineWrapping&&(d=s.getClientRects()).length>1?d["right"==n?d.length-1:0]:s.getBoundingClientRect()}if(o&&a<9&&!l&&(!r||!r.left&&!r.right)){var f=s.parentNode.getClientRects()[0];r=f?{left:f.left,right:f.left+Ln(e.display),top:f.top,bottom:f.bottom}:ln}for(var p=r.top-t.rect.top,m=r.bottom-t.rect.top,g=(p+m)/2,v=t.view.measure.heights,b=0;b=n.text.length?(s=n.text.length,l="before"):s<=0&&(s=0,l="after"),!a)return o("before"==l?s-1:s,"before"==l);function c(e,t,A){var n=a[t],r=1==n.level;return o(A?e-1:e,r!=A)}var u=pe(a,s,l),h=fe,d=c(s,u,"before"==l);return null!=h&&(d.other=c(s,h,"before"!=l)),d}function Tn(e,t){var A=0;t=mt(e.doc,t),e.options.lineWrapping||(A=Ln(e.display)*t.ch);var n=tt(e.doc,t.line),r=lA(n)+YA(e.display);return{left:A,right:A,top:r,bottom:r+n.height}}function Nn(e,t,A,n,r){var i=lt(e,t,A);return i.xRel=r,n&&(i.outside=n),i}function Cn(e,t,A){var n=e.doc;if(A+=e.display.viewOffset,A<0)return Nn(n.first,0,null,-1,-1);var r=ot(n,A),i=n.first+n.size-1;if(r>i)return Nn(n.first+n.size-1,tt(n,i).text.length,null,1,1);t<0&&(t=0);for(var o=tt(n,r);;){var a=zn(e,o,r,t,A),s=eA(o,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var l=s.find(1);if(l.line==r)return l;o=tt(n,r=l.line)}}function Mn(e,t,A,n){n-=bn(t);var r=t.text.length,i=he((function(t){return an(e,A,t-1).bottom<=n}),r,0);return r=he((function(t){return an(e,A,t).top>n}),i,r),{begin:i,end:r}}function En(e,t,A,n){A||(A=on(e,t));var r=yn(e,t,an(e,A,n),"line").top;return Mn(e,t,A,r)}function Sn(e,t,A,n){return!(e.bottom<=A)&&(e.top>A||(n?e.left:e.right)>t)}function zn(e,t,A,n,r){r-=lA(t);var i=on(e,t),o=bn(t),a=0,s=t.text.length,l=!0,c=ge(t,e.doc.direction);if(c){var u=(e.options.lineWrapping?Dn:On)(e,t,A,i,c,n,r);l=1!=u.level,a=l?u.from:u.to-1,s=l?u.to:u.from-1}var h,d,f=null,p=null,m=he((function(t){var A=an(e,i,t);return A.top+=o,A.bottom+=o,!!Sn(A,n,r,!1)&&(A.top<=r&&A.left<=n&&(f=t,p=A),!0)}),a,s),g=!1;if(p){var v=n-p.left=y.bottom?1:0}return m=ue(t.text,m,1),Nn(A,m,d,g,n-h)}function On(e,t,A,n,r,i,o){var a=he((function(a){var s=r[a],l=1!=s.level;return Sn(kn(e,lt(A,l?s.to:s.from,l?"before":"after"),"line",t,n),i,o,!0)}),0,r.length-1),s=r[a];if(a>0){var l=1!=s.level,c=kn(e,lt(A,l?s.from:s.to,l?"after":"before"),"line",t,n);Sn(c,i,o,!0)&&c.top>o&&(s=r[a-1])}return s}function Dn(e,t,A,n,r,i,o){var a=Mn(e,t,n,o),s=a.begin,l=a.end;/\s/.test(t.text.charAt(l-1))&&l--;for(var c=null,u=null,h=0;h=l||d.to<=s)){var f=1!=d.level,p=an(e,n,f?Math.min(l,d.to)-1:Math.max(s,d.from)).right,m=pm)&&(c=d,u=m)}}return c||(c=r[r.length-1]),c.froml&&(c={from:c.from,to:l,level:c.level}),c}function Pn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==sn){sn=z("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)sn.appendChild(document.createTextNode("x")),sn.appendChild(z("br"));sn.appendChild(document.createTextNode("x"))}S(e.measure,sn);var A=sn.offsetHeight/50;return A>3&&(e.cachedTextHeight=A),E(e.measure),A||1}function Ln(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=z("span","xxxxxxxxxx"),A=z("pre",[t],"CodeMirror-line-like");S(e.measure,A);var n=t.getBoundingClientRect(),r=(n.right-n.left)/10;return r>2&&(e.cachedCharWidth=r),r||10}function Rn(e){for(var t=e.display,A={},n={},r=t.gutters.clientLeft,i=t.gutters.firstChild,o=0;i;i=i.nextSibling,++o){var a=e.display.gutterSpecs[o].className;A[a]=i.offsetLeft+i.clientLeft+r,n[a]=i.clientWidth}return{fixedPos:Fn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:A,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function Fn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function In(e){var t=Pn(e.display),A=e.options.lineWrapping,n=A&&Math.max(5,e.display.scroller.clientWidth/Ln(e.display)-3);return function(r){if(aA(e.doc,r))return 0;var i=0;if(r.widgets)for(var o=0;o0&&(s=tt(e.doc,l.line).text).length==l.ch){var c=X(s,s.length,e.options.tabSize)-s.length;l=lt(l.line,Math.max(0,Math.round((i-JA(e.display).left)/Ln(e.display))-c))}return l}function qn(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var A=e.display.view,n=0;nt)&&(r.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=r.viewTo)Lt&&iA(e.doc,t)r.viewFrom?Xn(e):(r.viewFrom+=n,r.viewTo+=n);else if(t<=r.viewFrom&&A>=r.viewTo)Xn(e);else if(t<=r.viewFrom){var i=Vn(e,A,A+n,1);i?(r.view=r.view.slice(i.index),r.viewFrom=i.lineN,r.viewTo+=n):Xn(e)}else if(A>=r.viewTo){var o=Vn(e,t,t,-1);o?(r.view=r.view.slice(0,o.index),r.viewTo=o.lineN):Xn(e)}else{var a=Vn(e,t,t,-1),s=Vn(e,A,A+n,1);a&&s?(r.view=r.view.slice(0,a.index).concat(CA(e,a.lineN,s.lineN)).concat(r.view.slice(s.index)),r.viewTo+=n):Xn(e)}var l=r.externalMeasured;l&&(A=r.lineN&&t=n.viewTo)){var i=n.view[qn(e,t)];if(null!=i.node){var o=i.changes||(i.changes=[]);-1==Z(o,A)&&o.push(A)}}}function Xn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Vn(e,t,A,n){var r,i=qn(e,t),o=e.display.view;if(!Lt||A==e.doc.first+e.doc.size)return{index:i,lineN:A};for(var a=e.display.viewFrom,s=0;s0){if(i==o.length-1)return null;r=a+o[i].size-t,i++}else r=a-t;t+=r,A+=r}while(iA(e.doc,A)!=A){if(i==(n<0?0:o.length-1))return null;A+=n*o[i-(n<0?1:0)].size,i+=n}return{index:i,lineN:A}}function Zn(e,t,A){var n=e.display,r=n.view;0==r.length||t>=n.viewTo||A<=n.viewFrom?(n.view=CA(e,t,A),n.viewFrom=t):(n.viewFrom>t?n.view=CA(e,t,n.viewFrom).concat(n.view):n.viewFromA&&(n.view=n.view.slice(0,qn(e,A)))),n.viewTo=A}function Un(e){for(var t=e.display.view,A=0,n=0;n=e.display.viewTo||s.to().line0?o:e.defaultCharWidth())+"px"}if(n.other){var a=A.appendChild(z("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=n.other.left+"px",a.style.top=n.other.top+"px",a.style.height=.85*(n.other.bottom-n.other.top)+"px"}}function Jn(e,t){return e.top-t.top||e.left-t.left}function Qn(e,t,A){var n=e.display,r=e.doc,i=document.createDocumentFragment(),o=JA(e.display),a=o.left,s=Math.max(n.sizerWidth,_A(e)-n.sizer.offsetLeft)-o.right,l="ltr"==r.direction;function c(e,t,A,n){t<0&&(t=0),t=Math.round(t),n=Math.round(n),i.appendChild(z("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==A?s-e:A)+"px;\n height: "+(n-t)+"px"))}function u(t,A,n){var i,o,u=tt(r,t),h=u.text.length;function d(A,n){return xn(e,lt(t,A),"div",u,n)}function f(t,A,n){var r=En(e,u,null,t),i="ltr"==A==("after"==n)?"left":"right",o="after"==n?r.begin:r.end-(/\s/.test(u.text.charAt(r.end-1))?2:1);return d(o,i)[i]}var p=ge(u,r.direction);return de(p,A||0,null==n?h:n,(function(e,t,r,u){var m="ltr"==r,g=d(e,m?"left":"right"),v=d(t-1,m?"right":"left"),b=null==A&&0==e,y=null==n&&t==h,w=0==u,x=!p||u==p.length-1;if(v.top-g.top<=3){var k=(l?b:y)&&w,T=(l?y:b)&&x,N=k?a:(m?g:v).left,C=T?s:(m?v:g).right;c(N,g.top,C-N,g.bottom)}else{var M,E,S,z;m?(M=l&&b&&w?a:g.left,E=l?s:f(e,r,"before"),S=l?a:f(t,r,"after"),z=l&&y&&x?s:v.right):(M=l?f(e,r,"before"):a,E=!l&&b&&w?s:g.right,S=!l&&y&&x?a:v.left,z=l?f(t,r,"after"):s),c(M,g.top,E-M,g.bottom),g.bottom0?t.blinker=setInterval((function(){e.hasFocus()||Ar(e),t.cursorDiv.style.visibility=(A=!A)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function $n(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||tr(e))}function er(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Ar(e))}),100)}function tr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(xe(e,"focus",e,t),e.state.focused=!0,L(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),s&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),_n(e))}function Ar(e,t){e.state.delayingBlurEvent||(e.state.focused&&(xe(e,"blur",e,t),e.state.focused=!1,M(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function nr(e){for(var t=e.display,A=t.lineDiv.offsetTop,n=Math.max(0,t.scroller.getBoundingClientRect().top),r=t.lineDiv.getBoundingClientRect().top,i=0,s=0;s.005||p<-.005)&&(re.display.sizerWidth){var g=Math.ceil(h/Ln(e.display));g>e.display.maxLineLength&&(e.display.maxLineLength=g,e.display.maxLine=l.line,e.display.maxLineChanged=!0)}}}Math.abs(i)>2&&(t.scroller.scrollTop+=i)}function rr(e){if(e.widgets)for(var t=0;t=o&&(i=ot(t,lA(tt(t,s))-e.wrapper.clientHeight),o=s)}return{from:i,to:Math.max(o,i+1)}}function or(e,t){if(!ke(e,"scrollCursorIntoView")){var A=e.display,n=A.sizer.getBoundingClientRect(),r=null,i=A.wrapper.ownerDocument;if(t.top+n.top<0?r=!0:t.bottom+n.top>(i.defaultView.innerHeight||i.documentElement.clientHeight)&&(r=!1),null!=r&&!p){var o=z("div","​",null,"position: absolute;\n top: "+(t.top-A.viewOffset-YA(e.display))+"px;\n height: "+(t.bottom-t.top+QA(e)+A.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(r),e.display.lineSpace.removeChild(o)}}}function ar(e,t,A,n){var r;null==n&&(n=0),e.options.lineWrapping||t!=A||(A="before"==t.sticky?lt(t.line,t.ch+1,"before"):t,t=t.ch?lt(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var i=0;i<5;i++){var o=!1,a=kn(e,t),s=A&&A!=t?kn(e,A):a;r={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-n,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+n};var l=lr(e,r),c=e.doc.scrollTop,u=e.doc.scrollLeft;if(null!=l.scrollTop&&(mr(e,l.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(o=!0)),null!=l.scrollLeft&&(vr(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-u)>1&&(o=!0)),!o)break}return r}function sr(e,t){var A=lr(e,t);null!=A.scrollTop&&mr(e,A.scrollTop),null!=A.scrollLeft&&vr(e,A.scrollLeft)}function lr(e,t){var A=e.display,n=Pn(e.display);t.top<0&&(t.top=0);var r=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:A.scroller.scrollTop,i=$A(e),o={};t.bottom-t.top>i&&(t.bottom=t.top+i);var a=e.doc.height+KA(A),s=t.topa-n;if(t.topr+i){var c=Math.min(t.top,(l?a:t.bottom)-i);c!=r&&(o.scrollTop=c)}var u=e.options.fixedGutter?0:A.gutters.offsetWidth,h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:A.scroller.scrollLeft-u,d=_A(e)-A.gutters.offsetWidth,f=t.right-t.left>d;return f&&(t.right=t.left+d),t.left<10?o.scrollLeft=0:t.leftd+h-3&&(o.scrollLeft=t.right+(f?0:10)-d),o}function cr(e,t){null!=t&&(fr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ur(e){fr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function hr(e,t,A){null==t&&null==A||fr(e),null!=t&&(e.curOp.scrollLeft=t),null!=A&&(e.curOp.scrollTop=A)}function dr(e,t){fr(e),e.curOp.scrollToPos=t}function fr(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var A=Tn(e,t.from),n=Tn(e,t.to);pr(e,A,n,t.margin)}}function pr(e,t,A,n){var r=lr(e,{left:Math.min(t.left,A.left),top:Math.min(t.top,A.top)-n,right:Math.max(t.right,A.right),bottom:Math.max(t.bottom,A.bottom)+n});hr(e,r.scrollLeft,r.scrollTop)}function mr(e,t){Math.abs(e.doc.scrollTop-t)<2||(A||Gr(e,{top:t}),gr(e,t,!0),A&&Gr(e),jr(e,100))}function gr(e,t,A){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||A)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function vr(e,t,A,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(A?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,Qr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function br(e){var t=e.display,A=t.gutters.offsetWidth,n=Math.round(e.doc.height+KA(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?A:0,docHeight:n,scrollHeight:n+QA(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:A}}var yr=function(e,t,A){this.cm=A;var n=this.vert=z("div",[z("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=z("div",[z("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=r.tabIndex=-1,e(n),e(r),be(n,"scroll",(function(){n.clientHeight&&t(n.scrollTop,"vertical")})),be(r,"scroll",(function(){r.clientWidth&&t(r.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,o&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};yr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,A=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(A){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var r=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+r)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=A?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var i=e.viewWidth-e.barLeft-(A?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==n&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:A?n:0,bottom:t?n:0}},yr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},yr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},yr.prototype.zeroWidthHack=function(){var e=b&&!f?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new V,this.disableVert=new V},yr.prototype.enableZeroWidthBar=function(e,t,A){function n(){var r=e.getBoundingClientRect(),i="vert"==A?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1);i!=e?e.style.visibility="hidden":t.set(1e3,n)}e.style.visibility="",t.set(1e3,n)},yr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var wr=function(){};function xr(e,t){t||(t=br(e));var A=e.display.barWidth,n=e.display.barHeight;kr(e,t);for(var r=0;r<4&&A!=e.display.barWidth||n!=e.display.barHeight;r++)A!=e.display.barWidth&&e.options.lineWrapping&&nr(e),kr(e,br(e)),A=e.display.barWidth,n=e.display.barHeight}function kr(e,t){var A=e.display,n=A.scrollbars.update(t);A.sizer.style.paddingRight=(A.barWidth=n.right)+"px",A.sizer.style.paddingBottom=(A.barHeight=n.bottom)+"px",A.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(A.scrollbarFiller.style.display="block",A.scrollbarFiller.style.height=n.bottom+"px",A.scrollbarFiller.style.width=n.right+"px"):A.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(A.gutterFiller.style.display="block",A.gutterFiller.style.height=n.bottom+"px",A.gutterFiller.style.width=t.gutterWidth+"px"):A.gutterFiller.style.display=""}wr.prototype.update=function(){return{bottom:0,right:0}},wr.prototype.setScrollLeft=function(){},wr.prototype.setScrollTop=function(){},wr.prototype.clear=function(){};var Tr={native:yr,null:wr};function Nr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&M(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Tr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),be(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,A){"horizontal"==A?vr(e,t):mr(e,t)}),e),e.display.scrollbars.addClass&&L(e.display.wrapper,e.display.scrollbars.addClass)}var Cr=0;function Mr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Cr,markArrays:null},EA(e.curOp)}function Er(e){var t=e.curOp;t&&zA(t,(function(e){for(var t=0;t=A.viewTo)||A.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Hr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Or(e){e.updatedDisplay=e.mustUpdate&&Zr(e.cm,e.update)}function Dr(e){var t=e.cm,A=t.display;e.updatedDisplay&&nr(t),e.barMeasure=br(t),A.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=nn(t,A.maxLine,A.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(A.scroller.clientWidth,A.sizer.offsetLeft+e.adjustWidthTo+QA(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,A.sizer.offsetLeft+e.adjustWidthTo-_A(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=A.input.prepareSelection())}function Pr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var A=+new Date+e.options.workTime,n=kt(e,t.highlightFrontier),r=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(i){if(n.line>=e.display.viewFrom){var o=i.styles,a=i.text.length>e.options.maxHighlightLength?Qe(t.mode,n.state):null,s=wt(e,i,n,!0);a&&(n.state=a),i.styles=s.styles;var l=i.styleClasses,c=s.classes;c?i.styleClasses=c:l&&(i.styleClasses=null);for(var u=!o||o.length!=i.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.textClass!=c.textClass),h=0;!u&&hA)return jr(e,e.options.workDelay),!0})),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),r.length&&Rr(e,(function(){for(var t=0;t=A.viewFrom&&t.visible.to<=A.viewTo&&(null==A.updateLineNumbers||A.updateLineNumbers>=A.viewTo)&&A.renderedView==A.view&&0==Un(e))return!1;_r(e)&&(Xn(e),t.dims=Rn(e));var r=n.first+n.size,i=Math.max(t.visible.from-e.options.viewportMargin,n.first),o=Math.min(r,t.visible.to+e.options.viewportMargin);A.viewFromo&&A.viewTo-o<20&&(o=Math.min(r,A.viewTo)),Lt&&(i=iA(e.doc,i),o=oA(e.doc,o));var a=i!=A.viewFrom||o!=A.viewTo||A.lastWrapHeight!=t.wrapperHeight||A.lastWrapWidth!=t.wrapperWidth;Zn(e,i,o),A.viewOffset=lA(tt(e.doc,A.viewFrom)),e.display.mover.style.top=A.viewOffset+"px";var s=Un(e);if(!a&&0==s&&!t.force&&A.renderedView==A.view&&(null==A.updateLineNumbers||A.updateLineNumbers>=A.viewTo))return!1;var l=Xr(e);return s>4&&(A.lineDiv.style.display="none"),Yr(e,A.updateLineNumbers,t.dims),s>4&&(A.lineDiv.style.display=""),A.renderedView=A.view,Vr(l),E(A.cursorDiv),E(A.selectionDiv),A.gutters.style.height=A.sizer.style.minHeight=0,a&&(A.lastWrapHeight=t.wrapperHeight,A.lastWrapWidth=t.wrapperWidth,jr(e,400)),A.updateLineNumbers=null,!0}function Ur(e,t){for(var A=t.viewport,n=!0;;n=!1){if(n&&e.options.lineWrapping&&t.oldDisplayWidth!=_A(e))n&&(t.visible=ir(e.display,e.doc,A));else if(A&&null!=A.top&&(A={top:Math.min(e.doc.height+KA(e.display)-$A(e),A.top)}),t.visible=ir(e.display,e.doc,A),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Zr(e,t))break;nr(e);var r=br(e);Gn(e),xr(e,r),Jr(e,r),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Gr(e,t){var A=new Hr(e,t);if(Zr(e,A)){nr(e),Ur(e,A);var n=br(e);Gn(e),xr(e,n),Jr(e,n),A.finish()}}function Yr(e,t,A){var n=e.display,r=e.options.lineNumbers,i=n.lineDiv,o=i.firstChild;function a(t){var A=t.nextSibling;return s&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),A}for(var l=n.view,c=n.viewFrom,u=0;u-1&&(d=!1),LA(e,h,c,A)),d&&(E(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(st(e.options,c)))),o=h.node.nextSibling}else{var f=WA(e,h,c,A);i.insertBefore(f,o)}c+=h.size}while(o)o=a(o)}function Kr(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",DA(e,"gutterChanged",e)}function Jr(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+QA(e)+"px"}function Qr(e){var t=e.display,A=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=Fn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,r=t.gutters.offsetWidth,i=n+"px",o=0;o=105&&(i.wrapper.style.clipPath="inset(0px)"),i.wrapper.setAttribute("translate","no"),o&&a<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),s||A&&v||(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=$r(r.gutters,r.lineNumbers),ei(i),n.init(i)}Hr.prototype.signal=function(e,t){Ne(e,t)&&this.events.push(arguments)},Hr.prototype.finish=function(){for(var e=0;el.clientWidth,f=l.scrollHeight>l.clientHeight;if(r&&d||i&&f){if(i&&b&&s)e:for(var p=t.target,m=a.view;p!=l;p=p.parentNode)for(var g=0;g=0&&ct(e,n.to())<=0)return A}return-1};var li=function(e,t){this.anchor=e,this.head=t};function ci(e,t,A){var n=e&&e.options.selectionsMayTouch,r=t[A];t.sort((function(e,t){return ct(e.from(),t.from())})),A=Z(t,r);for(var i=1;i0:s>=0){var l=ft(a.from(),o.from()),c=dt(a.to(),o.to()),u=a.empty()?o.from()==o.head:a.from()==a.head;i<=A&&--A,t.splice(--i,2,new li(u?c:l,u?l:c))}}return new si(t,A)}function ui(e,t){return new si([new li(e,t||e)],0)}function hi(e){return e.text?lt(e.from.line+e.text.length-1,ee(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function di(e,t){if(ct(e,t.from)<0)return e;if(ct(e,t.to)<=0)return hi(t);var A=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=hi(t).ch-t.to.ch),lt(A,n)}function fi(e,t){for(var A=[],n=0;n1&&e.remove(a.line+1,f-1),e.insert(a.line+1,g)}DA(e,"change",e,t)}function wi(e,t,A){function n(e,r,i){if(e.linked)for(var o=0;o1&&!e.done[e.done.length-2].ranges?(e.done.pop(),ee(e.done)):void 0}function Si(e,t,A,n){var r=e.history;r.undone.length=0;var i,o,a=+new Date;if((r.lastOp==n||r.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&r.lastModTime>a-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(i=Ei(r,r.lastOp==n)))o=ee(i.changes),0==ct(t.from,t.to)&&0==ct(t.from,o.to)?o.to=hi(t):i.changes.push(Ci(e,t));else{var s=ee(r.done);s&&s.ranges||Di(e.sel,r.done),i={changes:[Ci(e,t)],generation:r.generation},r.done.push(i);while(r.done.length>r.undoDepth)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(A),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=a,r.lastOp=r.lastSelOp=n,r.lastOrigin=r.lastSelOrigin=t.origin,o||xe(e,"historyAdded")}function zi(e,t,A,n){var r=t.charAt(0);return"*"==r||"+"==r&&A.ranges.length==n.ranges.length&&A.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Oi(e,t,A,n){var r=e.history,i=n&&n.origin;A==r.lastSelOp||i&&r.lastSelOrigin==i&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==i||zi(e,i,ee(r.done),t))?r.done[r.done.length-1]=t:Di(t,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=i,r.lastSelOp=A,n&&!1!==n.clearRedo&&Mi(r.undone)}function Di(e,t){var A=ee(t);A&&A.ranges&&A.equals(e)||t.push(e)}function Pi(e,t,A,n){var r=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,A),Math.min(e.first+e.size,n),(function(A){A.markedSpans&&((r||(r=t["spans_"+e.id]={}))[i]=A.markedSpans),++i}))}function Li(e){if(!e)return null;for(var t,A=0;A-1&&(ee(a)[u]=l[u],delete l[u])}}}return n}function Bi(e,t,A,n){if(n){var r=e.anchor;if(A){var i=ct(t,r)<0;i!=ct(A,r)<0?(r=t,t=A):i!=ct(t,A)<0&&(t=A)}return new li(r,t)}return new li(A||t,t)}function ji(e,t,A,n,r){null==r&&(r=e.cm&&(e.cm.display.shift||e.extend)),Zi(e,new si([Bi(e.sel.primary(),t,A,r)],0),n)}function qi(e,t,A){for(var n=[],r=e.cm&&(e.cm.display.shift||e.extend),i=0;i=t.ch:a.to>t.ch))){if(r&&(xe(s,"beforeCursorEnter"),s.explicitlyCleared)){if(i.markedSpans){--o;continue}break}if(!s.atomic)continue;if(A){var u=s.find(n<0?1:-1),h=void 0;if((n<0?c:l)&&(u=_i(e,u,-n,u&&u.line==t.line?i:null)),u&&u.line==t.line&&(h=ct(u,A))&&(n<0?h<0:h>0))return Ji(e,u,t,n,r)}var d=s.find(n<0?-1:1);return(n<0?l:c)&&(d=_i(e,d,n,d.line==t.line?i:null)),d?Ji(e,d,t,n,r):null}}return t}function Qi(e,t,A,n,r){var i=n||1,o=Ji(e,t,A,i,r)||!r&&Ji(e,t,A,i,!0)||Ji(e,t,A,-i,r)||!r&&Ji(e,t,A,-i,!0);return o||(e.cantEdit=!0,lt(e.first,0))}function _i(e,t,A,n){return A<0&&0==t.ch?t.line>e.first?mt(e,lt(t.line-1)):null:A>0&&t.ch==(n||tt(e,t.line)).text.length?t.line=0;--r)Ao(e,{from:n[r].from,to:n[r].to,text:r?[""]:t.text,origin:t.origin});else Ao(e,t)}}function Ao(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ct(t.from,t.to)){var A=fi(e,t);Si(e,t,A,e.cm?e.cm.curOp.id:NaN),io(e,t,A,Xt(e,t));var n=[];wi(e,(function(e,A){A||-1!=Z(n,e.history)||(co(e.history,t),n.push(e.history)),io(e,t,null,Xt(e,t))}))}}function no(e,t,A){var n=e.cm&&e.cm.state.suppressEdits;if(!n||A){for(var r,i=e.history,o=e.sel,a="undo"==t?i.done:i.undone,s="undo"==t?i.undone:i.done,l=0;l=0;--d){var f=h(d);if(f)return f.v}}}}function ro(e,t){if(0!=t&&(e.first+=t,e.sel=new si(te(e.sel.ranges,(function(e){return new li(lt(e.anchor.line+t,e.anchor.ch),lt(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Hn(e.cm,e.first,e.first-t,t);for(var A=e.cm.display,n=A.viewFrom;ne.lastLine())){if(t.from.linei&&(t={from:t.from,to:lt(i,tt(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=At(e,t.from,t.to),A||(A=fi(e,t)),e.cm?oo(e.cm,t,n):yi(e,t,n),Ui(e,A,Y),e.cantEdit&&Qi(e,lt(e.firstLine(),0))&&(e.cantEdit=!1)}}function oo(e,t,A){var n=e.doc,r=e.display,i=t.from,o=t.to,a=!1,s=i.line;e.options.lineWrapping||(s=it(AA(tt(n,i.line))),n.iter(s,o.line+1,(function(e){if(e==r.maxLine)return a=!0,!0}))),n.sel.contains(t.from,t.to)>-1&&Te(e),yi(n,t,A,In(e)),e.options.lineWrapping||(n.iter(s,i.line+t.text.length,(function(e){var t=cA(e);t>r.maxLineLength&&(r.maxLine=e,r.maxLineLength=t,r.maxLineChanged=!0,a=!1)})),a&&(e.curOp.updateMaxLine=!0)),Dt(n,i.line),jr(e,400);var l=t.text.length-(o.line-i.line)-1;t.full?Hn(e):i.line!=o.line||1!=t.text.length||bi(e.doc,t)?Hn(e,i.line,o.line+1,l):Wn(e,i.line,"text");var c=Ne(e,"changes"),u=Ne(e,"change");if(u||c){var h={from:i,to:o,text:t.text,removed:t.removed,origin:t.origin};u&&DA(e,"change",e,h),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function ao(e,t,A,n,r){var i;n||(n=A),ct(n,A)<0&&(i=[n,A],A=i[0],n=i[1]),"string"==typeof t&&(t=e.splitLines(t)),to(e,{from:A,to:n,text:t,origin:r})}function so(e,t,A,n){A1||!(this.children[0]instanceof ho))){var a=[];this.collapse(a),this.children=[new ho(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var o=r.lines.length%25+25,a=o;a10);e.parent.maybeSpill()}},iterN:function(e,t,A){for(var n=0;n0||0==o&&!1!==i.clearWhenEmpty)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=O("span",[i.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(tA(e,t.line,t,A,i)||t.line!=A.line&&tA(e,A.line,t,A,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ft()}i.addToHistory&&Si(e,{from:t,to:A,origin:"markText"},e.sel,NaN);var a,s=t.line,l=e.cm;if(e.iter(s,A.line+1,(function(n){l&&i.collapsed&&!l.options.lineWrapping&&AA(n)==l.display.maxLine&&(a=!0),i.collapsed&&s!=t.line&&rt(n,0),qt(n,new It(i,s==t.line?t.ch:null,s==A.line?A.ch:null),e.cm&&e.cm.curOp),++s})),i.collapsed&&e.iter(t.line,A.line+1,(function(t){aA(e,t)&&rt(t,0)})),i.clearOnEnter&&be(i,"beforeCursorEnter",(function(){return i.clear()})),i.readOnly&&(Rt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++vo,i.atomic=!0),l){if(a&&(l.curOp.updateMaxLine=!0),i.collapsed)Hn(l,t.line,A.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var c=t.line;c<=A.line;c++)Wn(l,c,"text");i.atomic&&Yi(l.doc),DA(l,"markerAdded",l,i)}return i}bo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Mr(e),Ne(this,"clear")){var A=this.find();A&&DA(this,"clear",A.from,A.to)}for(var n=null,r=null,i=0;ie.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=n&&e&&this.collapsed&&Hn(e,n,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Yi(e.doc)),e&&DA(e,"markerCleared",e,this,n,r),t&&Er(e),this.parent&&this.parent.clear()}},bo.prototype.find=function(e,t){var A,n;null==e&&"bookmark"==this.type&&(e=1);for(var r=0;r=0;s--)to(this,n[s]);a?Vi(this,a):this.cm&&ur(this.cm)})),undo:Br((function(){no(this,"undo")})),redo:Br((function(){no(this,"redo")})),undoSelection:Br((function(){no(this,"undo",!0)})),redoSelection:Br((function(){no(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,A=0,n=0;n=e.ch)&&t.push(r.marker.parent||r.marker)}return t},findMarks:function(e,t,A){e=mt(this,e),t=mt(this,t);var n=[],r=e.line;return this.iter(e.line,t.line+1,(function(i){var o=i.markedSpans;if(o)for(var a=0;a=s.to||null==s.from&&r!=e.line||null!=s.from&&r==t.line&&s.from>=t.ch||A&&!A(s.marker)||n.push(s.marker.parent||s.marker)}++r})),n},getAllMarks:function(){var e=[];return this.iter((function(t){var A=t.markedSpans;if(A)for(var n=0;ne)return t=e,!0;e-=i,++A})),mt(this,lt(A,t))},indexFromPos:function(e){e=mt(this,e);var t=e.ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var u=e.dataTransfer.getData("Text");if(u){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),Ui(t.doc,ui(A,A)),h)for(var d=0;d=0;t--)ao(e.doc,"",n[t].from,n[t].to,"+delete");ur(e)}))}function Qo(e,t,A){var n=ue(e.text,t+A,A);return n<0||n>e.text.length?null:n}function _o(e,t,A){var n=Qo(e,t.ch,A);return null==n?null:new lt(t.line,n,A<0?"after":"before")}function $o(e,t,A,n,r){if(e){"rtl"==t.doc.direction&&(r=-r);var i=ge(A,t.doc.direction);if(i){var o,a=r<0?ee(i):i[0],s=r<0==(1==a.level),l=s?"after":"before";if(a.level>0||"rtl"==t.doc.direction){var c=on(t,A);o=r<0?A.text.length-1:0;var u=an(t,c,o).top;o=he((function(e){return an(t,c,e).top==u}),r<0==(1==a.level)?a.from:a.to-1,o),"before"==l&&(o=Qo(A,o,1))}else o=r<0?a.to:a.from;return new lt(n,o,l)}}return new lt(n,r<0?A.text.length:0,r<0?"before":"after")}function ea(e,t,A,n){var r=ge(t,e.doc.direction);if(!r)return _o(t,A,n);A.ch>=t.text.length?(A.ch=t.text.length,A.sticky="before"):A.ch<=0&&(A.ch=0,A.sticky="after");var i=pe(r,A.ch,A.sticky),o=r[i];if("ltr"==e.doc.direction&&o.level%2==0&&(n>0?o.to>A.ch:o.from=o.from&&h>=c.begin)){var d=u?"before":"after";return new lt(A.line,h,d)}}var f=function(e,t,n){for(var i=function(e,t){return t?new lt(A.line,s(e,1),"before"):new lt(A.line,e,"after")};e>=0&&e0==(1!=o.level),l=a?n.begin:s(n.end,-1);if(o.from<=l&&l0?c.end:s(c.begin,-1);return null==m||n>0&&m==t.text.length||(p=f(n>0?0:r.length-1,n,l(m)),!p)?null:p}Wo.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"},Wo.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"},Wo.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"},Wo.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"]},Wo["default"]=b?Wo.macDefault:Wo.pcDefault;var ta={selectAll:$i,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Y)},killLine:function(e){return Jo(e,(function(t){if(t.empty()){var A=tt(e.doc,t.head.line).text.length;return t.head.ch==A&&t.head.line0)r=new lt(r.line,r.ch+1),e.replaceRange(i.charAt(r.ch-1)+i.charAt(r.ch-2),lt(r.line,r.ch-2),r,"+transpose");else if(r.line>e.doc.first){var o=tt(e.doc,r.line-1).text;o&&(r=new lt(r.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+o.charAt(o.length-1),lt(r.line-1,o.length-1),r,"+transpose"))}A.push(new li(r,r))}e.setSelections(A)}))},newlineAndIndent:function(e){return Rr(e,(function(){for(var t=e.listSelections(),A=t.length-1;A>=0;A--)e.replaceRange(e.doc.lineSeparator(),t[A].anchor,t[A].head,"+input");t=e.listSelections();for(var n=0;n-1&&(ct((r=a.ranges[r]).from(),t)<0||t.xRel>0)&&(ct(r.to(),t)>0||t.xRel<0)?Ca(e,n,t,i):Ea(e,n,t,i)}function Ca(e,t,A,n){var r=e.display,i=!1,l=Fr(e,(function(t){s&&(r.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:er(e)),we(r.wrapper.ownerDocument,"mouseup",l),we(r.wrapper.ownerDocument,"mousemove",c),we(r.scroller,"dragstart",u),we(r.scroller,"drop",l),i||(Me(t),n.addNew||ji(e.doc,A,null,null,n.extend),s&&!d||o&&9==a?setTimeout((function(){r.wrapper.ownerDocument.body.focus({preventScroll:!0}),r.input.focus()}),20):r.input.focus())})),c=function(e){i=i||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},u=function(){return i=!0};s&&(r.scroller.draggable=!0),e.state.draggingText=l,l.copy=!n.moveOnDrag,be(r.wrapper.ownerDocument,"mouseup",l),be(r.wrapper.ownerDocument,"mousemove",c),be(r.scroller,"dragstart",u),be(r.scroller,"drop",l),e.state.delayingBlurEvent=!0,setTimeout((function(){return r.input.focus()}),20),r.scroller.dragDrop&&r.scroller.dragDrop()}function Ma(e,t,A){if("char"==A)return new li(t,t);if("word"==A)return e.findWordAt(t);if("line"==A)return new li(lt(t.line,0),mt(e.doc,lt(t.line+1,0)));var n=A(e,t);return new li(n.from,n.to)}function Ea(e,t,A,n){o&&er(e);var r=e.display,i=e.doc;Me(t);var a,s,l=i.sel,c=l.ranges;if(n.addNew&&!n.extend?(s=i.sel.contains(A),a=s>-1?c[s]:new li(A,A)):(a=i.sel.primary(),s=i.sel.primIndex),"rectangle"==n.unit)n.addNew||(a=new li(A,A)),A=jn(e,t,!0,!0),s=-1;else{var u=Ma(e,A,n.unit);a=n.extend?Bi(a,u.anchor,u.head,n.extend):u}n.addNew?-1==s?(s=c.length,Zi(i,ci(e,c.concat([a]),s),{scroll:!1,origin:"*mouse"})):c.length>1&&c[s].empty()&&"char"==n.unit&&!n.extend?(Zi(i,ci(e,c.slice(0,s).concat(c.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),l=i.sel):Hi(i,s,a,K):(s=0,Zi(i,new si([a],0),K),l=i.sel);var h=A;function d(t){if(0!=ct(h,t))if(h=t,"rectangle"==n.unit){for(var r=[],o=e.options.tabSize,c=X(tt(i,A.line).text,A.ch,o),u=X(tt(i,t.line).text,t.ch,o),d=Math.min(c,u),f=Math.max(c,u),p=Math.min(A.line,t.line),m=Math.min(e.lastLine(),Math.max(A.line,t.line));p<=m;p++){var g=tt(i,p).text,v=Q(g,d,o);d==f?r.push(new li(lt(p,v),lt(p,v))):g.length>v&&r.push(new li(lt(p,v),lt(p,Q(g,f,o))))}r.length||r.push(new li(A,A)),Zi(i,ci(e,l.ranges.slice(0,s).concat(r),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,y=a,w=Ma(e,t,n.unit),x=y.anchor;ct(w.anchor,x)>0?(b=w.head,x=ft(y.from(),w.anchor)):(b=w.anchor,x=dt(y.to(),w.head));var k=l.ranges.slice(0);k[s]=Sa(e,new li(mt(i,x),b)),Zi(i,ci(e,k,s),K)}}var f=r.wrapper.getBoundingClientRect(),p=0;function m(t){var A=++p,o=jn(e,t,!0,"rectangle"==n.unit);if(o)if(0!=ct(o,h)){e.curOp.focus=P(B(e)),d(o);var a=ir(r,i);(o.line>=a.to||o.linef.bottom?20:0;s&&setTimeout(Fr(e,(function(){p==A&&(r.scroller.scrollTop+=s,m(t))})),50)}}function g(t){e.state.selectingText=!1,p=1/0,t&&(Me(t),r.input.focus()),we(r.wrapper.ownerDocument,"mousemove",v),we(r.wrapper.ownerDocument,"mouseup",b),i.history.lastSelOrigin=null}var v=Fr(e,(function(e){0!==e.buttons&&De(e)?m(e):g(e)})),b=Fr(e,g);e.state.selectingText=b,be(r.wrapper.ownerDocument,"mousemove",v),be(r.wrapper.ownerDocument,"mouseup",b)}function Sa(e,t){var A=t.anchor,n=t.head,r=tt(e.doc,A.line);if(0==ct(A,n)&&A.sticky==n.sticky)return t;var i=ge(r);if(!i)return t;var o=pe(i,A.ch,A.sticky),a=i[o];if(a.from!=A.ch&&a.to!=A.ch)return t;var s,l=o+(a.from==A.ch==(1!=a.level)?0:1);if(0==l||l==i.length)return t;if(n.line!=A.line)s=(n.line-A.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=pe(i,n.ch,n.sticky),u=c-o||(n.ch-A.ch)*(1==a.level?-1:1);s=c==l-1||c==l?u<0:u>0}var h=i[l+(s?-1:0)],d=s==(1==h.level),f=d?h.from:h.to,p=d?"after":"before";return A.ch==f&&A.sticky==p?t:new li(new lt(A.line,f,p),n)}function za(e,t,A,n){var r,i;if(t.touches)r=t.touches[0].clientX,i=t.touches[0].clientY;else try{r=t.clientX,i=t.clientY}catch(h){return!1}if(r>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&Me(t);var o=e.display,a=o.lineDiv.getBoundingClientRect();if(i>a.bottom||!Ne(e,A))return Se(t);i-=a.top-o.viewOffset;for(var s=0;s=r){var c=ot(e.doc,i),u=e.display.gutterSpecs[s];return xe(e,A,e,c,u.className,t),Se(t)}}}function Oa(e,t){return za(e,t,"gutterClick",!0)}function Da(e,t){GA(e.display,t)||Pa(e,t)||ke(e,t,"contextmenu")||T||e.display.input.onContextMenu(t)}function Pa(e,t){return!!Ne(e,"gutterContextMenu")&&za(e,t,"gutterContextMenu",!1)}function La(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),mn(e)}ya.prototype.compare=function(e,t,A){return this.time+ba>e&&0==ct(t,this.pos)&&A==this.button};var Ra={toString:function(){return"CodeMirror.Init"}},Fa={},Ia={};function Ba(e){var t=e.optionHandlers;function A(A,n,r,i){e.defaults[A]=n,r&&(t[A]=i?function(e,t,A){A!=Ra&&r(e,t,A)}:r)}e.defineOption=A,e.Init=Ra,A("value","",(function(e,t){return e.setValue(t)}),!0),A("mode",null,(function(e,t){e.doc.modeOption=t,gi(e)}),!0),A("indentUnit",2,gi,!0),A("indentWithTabs",!1),A("smartIndent",!0),A("tabSize",4,(function(e){vi(e),mn(e),Hn(e)}),!0),A("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var A=[],n=e.doc.first;e.doc.iter((function(e){for(var r=0;;){var i=e.text.indexOf(t,r);if(-1==i)break;r=i+t.length,A.push(lt(n,i))}n++}));for(var r=A.length-1;r>=0;r--)ao(e.doc,t,A[r],lt(A[r].line,A[r].ch+t.length))}})),A("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,A){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),A!=Ra&&e.refresh()})),A("specialCharPlaceholder",bA,(function(e){return e.refresh()}),!0),A("electricChars",!0),A("inputStyle",v?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),A("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),A("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),A("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),A("rtlMoveVisually",!w),A("wholeLineUpdateBefore",!0),A("theme","default",(function(e){La(e),ti(e)}),!0),A("keyMap","default",(function(e,t,A){var n=Ko(t),r=A!=Ra&&Ko(A);r&&r.detach&&r.detach(e,n),n.attach&&n.attach(e,r||null)})),A("extraKeys",null),A("configureMouse",null),A("lineWrapping",!1,qa,!0),A("gutters",[],(function(e,t){e.display.gutterSpecs=$r(t,e.options.lineNumbers),ti(e)}),!0),A("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Fn(e.display)+"px":"0",e.refresh()}),!0),A("coverGutterNextToScrollbar",!1,(function(e){return xr(e)}),!0),A("scrollbarStyle","native",(function(e){Nr(e),xr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),A("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=$r(e.options.gutters,t),ti(e)}),!0),A("firstLineNumber",1,ti,!0),A("lineNumberFormatter",(function(e){return e}),ti,!0),A("showCursorWhenSelecting",!1,Gn,!0),A("resetSelectionOnContextMenu",!0),A("lineWiseCopyCut",!0),A("pasteLinesPerSelection",!0),A("selectionsMayTouch",!1),A("readOnly",!1,(function(e,t){"nocursor"==t&&(Ar(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),A("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),A("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),A("dragDrop",!0,ja),A("allowDropFileTypes",null),A("cursorBlinkRate",530),A("cursorScrollMargin",0),A("cursorHeight",1,Gn,!0),A("singleCursorHeightPerLine",!0,Gn,!0),A("workTime",100),A("workDelay",100),A("flattenSpans",!0,vi,!0),A("addModeClass",!1,vi,!0),A("pollInterval",100),A("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),A("historyEventDelay",1250),A("viewportMargin",10,(function(e){return e.refresh()}),!0),A("maxHighlightLength",1e4,vi,!0),A("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),A("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),A("autofocus",null),A("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),A("phrases",null)}function ja(e,t,A){var n=A&&A!=Ra;if(!t!=!n){var r=e.display.dragFunctions,i=t?be:we;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function qa(e){e.options.lineWrapping?(L(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(M(e.display.wrapper,"CodeMirror-wrap"),uA(e)),Bn(e),Hn(e),mn(e),setTimeout((function(){return xr(e)}),100)}function Ha(e,t){var A=this;if(!(this instanceof Ha))return new Ha(e,t);this.options=t=t?W(t):{},W(Fa,t,!1);var n=t.value;"string"==typeof n?n=new Mo(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var r=new Ha.inputStyles[t.inputStyle](this),i=this.display=new Ai(e,n,r,t);for(var l in i.wrapper.CodeMirror=this,La(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Nr(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 V,keySeq:null,specialChars:null},t.autofocus&&!v&&i.input.focus(),o&&a<11&&setTimeout((function(){return A.display.input.reset(!0)}),20),Wa(this),Ro(),Mr(this),this.curOp.forceUpdate=!0,xi(this,n),t.autofocus&&!v||this.hasFocus()?setTimeout((function(){A.hasFocus()&&!A.state.focused&&tr(A)}),20):Ar(this),Ia)Ia.hasOwnProperty(l)&&Ia[l](this,t[l],Ra);_r(this),t.finishInit&&t.finishInit(this);for(var c=0;c400}be(t.scroller,"touchstart",(function(r){if(!ke(e,r)&&!i(r)&&!Oa(e,r)){t.input.ensurePolled(),clearTimeout(A);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-n.end<=300?n:null},1==r.touches.length&&(t.activeTouch.left=r.touches[0].pageX,t.activeTouch.top=r.touches[0].pageY)}})),be(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),be(t.scroller,"touchend",(function(A){var n=t.activeTouch;if(n&&!GA(t,A)&&null!=n.left&&!n.moved&&new Date-n.start<300){var i,o=e.coordsChar(t.activeTouch,"page");i=!n.prev||s(n,n.prev)?new li(o,o):!n.prev.prev||s(n,n.prev.prev)?e.findWordAt(o):new li(lt(o.line,0),mt(e.doc,lt(o.line+1,0))),e.setSelection(i.anchor,i.head),e.focus(),Me(A)}r()})),be(t.scroller,"touchcancel",r),be(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(mr(e,t.scroller.scrollTop),vr(e,t.scroller.scrollLeft,!0),xe(e,"scroll",e))})),be(t.scroller,"mousewheel",(function(t){return ai(e,t)})),be(t.scroller,"DOMMouseScroll",(function(t){return ai(e,t)})),be(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ke(e,t)||ze(t)},over:function(t){ke(e,t)||(Oo(e,t),ze(t))},start:function(t){return zo(e,t)},drop:Fr(e,So),leave:function(t){ke(e,t)||Do(e)}};var l=t.input.getField();be(l,"keyup",(function(t){return pa.call(e,t)})),be(l,"keydown",Fr(e,da)),be(l,"keypress",Fr(e,ma)),be(l,"focus",(function(t){return tr(e,t)})),be(l,"blur",(function(t){return Ar(e,t)}))}Ha.defaults=Fa,Ha.optionHandlers=Ia;var Xa=[];function Va(e,t,A,n){var r,i=e.doc;null==A&&(A="add"),"smart"==A&&(i.mode.indent?r=kt(e,t).state:A="prev");var o=e.options.tabSize,a=tt(i,t),s=X(a.text,null,o);a.stateAfter&&(a.stateAfter=null);var l,c=a.text.match(/^\s*/)[0];if(n||/\S/.test(a.text)){if("smart"==A&&(l=i.mode.indent(r,a.text.slice(c.length),a.text),l==G||l>150)){if(!n)return;A="prev"}}else l=0,A="not";"prev"==A?l=t>i.first?X(tt(i,t-1).text,null,o):0:"add"==A?l=s+e.options.indentUnit:"subtract"==A?l=s-e.options.indentUnit:"number"==typeof A&&(l=s+A),l=Math.max(0,l);var u="",h=0;if(e.options.indentWithTabs)for(var d=Math.floor(l/o);d;--d)h+=o,u+="\t";if(ho,s=Be(t),l=null;if(a&&n.ranges.length>1)if(Za&&Za.text.join("\n")==t){if(n.ranges.length%Za.text.length==0){l=[];for(var c=0;c=0;h--){var d=n.ranges[h],f=d.from(),p=d.to();d.empty()&&(A&&A>0?f=lt(f.line,f.ch-A):e.state.overwrite&&!a?p=lt(p.line,Math.min(tt(i,p.line).text.length,p.ch+ee(s).length)):a&&Za&&Za.lineWise&&Za.text.join("\n")==s.join("\n")&&(f=p=lt(f.line,0)));var m={from:f,to:p,text:l?l[h%l.length]:s,origin:r||(a?"paste":e.state.cutIncoming>o?"cut":"+input")};to(e.doc,m),DA(e,"inputRead",e,m)}t&&!a&&Ka(e,t),ur(e),e.curOp.updateInput<2&&(e.curOp.updateInput=u),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ya(e,t){var A=e.clipboardData&&e.clipboardData.getData("Text");if(A)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Rr(t,(function(){return Ga(t,A,0,null,"paste")})),!0}function Ka(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var A=e.doc.sel,n=A.ranges.length-1;n>=0;n--){var r=A.ranges[n];if(!(r.head.ch>100||n&&A.ranges[n-1].head.line==r.head.line)){var i=e.getModeAt(r.head),o=!1;if(i.electricChars){for(var a=0;a-1){o=Va(e,r.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(tt(e.doc,r.head.line).text.slice(0,r.head.ch))&&(o=Va(e,r.head.line,"smart"));o&&DA(e,"electricInput",e,r.head.line)}}}function Ja(e){for(var t=[],A=[],n=0;nA&&(Va(this,r.head.line,e,!0),A=r.head.line,n==this.doc.sel.primIndex&&ur(this));else{var i=r.from(),o=r.to(),a=Math.max(A,i.line);A=Math.min(this.lastLine(),o.line-(o.ch?0:1))+1;for(var s=a;s0&&Hi(this.doc,n,new li(i,l[n].to()),Y)}}})),getTokenAt:function(e,t){return Et(this,e,t)},getLineTokens:function(e,t){return Et(this,lt(e),t,!0)},getTokenTypeAt:function(e){e=mt(this.doc,e);var t,A=xt(this,tt(this.doc,e.line)),n=0,r=(A.length-1)/2,i=e.ch;if(0==i)t=A[2];else for(;;){var o=n+r>>1;if((o?A[2*o-1]:0)>=i)r=o;else{if(!(A[2*o+1]i&&(e=i,r=!0),n=tt(this.doc,e)}else n=e;return yn(this,n,{top:0,left:0},t||"page",A||r).top+(r?this.doc.height-lA(n):0)},defaultTextHeight:function(){return Pn(this.display)},defaultCharWidth:function(){return Ln(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,A,n,r){var i=this.display;e=kn(this,mt(this.doc,e));var o=e.bottom,a=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),i.sizer.appendChild(t),"over"==n)o=e.top;else if("above"==n||"near"==n){var s=Math.max(i.wrapper.clientHeight,this.doc.height),l=Math.max(i.sizer.clientWidth,i.lineSpace.clientWidth);("above"==n||e.bottom+t.offsetHeight>s)&&e.top>t.offsetHeight?o=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=s&&(o=e.bottom),a+t.offsetWidth>l&&(a=l-t.offsetWidth)}t.style.top=o+"px",t.style.left=t.style.right="","right"==r?(a=i.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==r?a=0:"middle"==r&&(a=(i.sizer.clientWidth-t.offsetWidth)/2),t.style.left=a+"px"),A&&sr(this,{left:a,top:o,right:a+t.offsetWidth,bottom:o+t.offsetHeight})},triggerOnKeyDown:Ir(da),triggerOnKeyPress:Ir(ma),triggerOnKeyUp:pa,triggerOnMouseDown:Ir(xa),execCommand:function(e){if(ta.hasOwnProperty(e))return ta[e].call(null,this)},triggerElectric:Ir((function(e){Ka(this,e)})),findPosH:function(e,t,A,n){var r=1;t<0&&(r=-1,t=-t);for(var i=mt(this.doc,e),o=0;o0&&a(A.charAt(n-1)))--n;while(r.5||this.options.lineWrapping)&&Bn(this),xe(this,"refresh",this)})),swapDoc:Ir((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),xi(this,e),mn(this),this.display.input.reset(),hr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,DA(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},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}},Ce(e),e.registerHelper=function(t,n,r){A.hasOwnProperty(t)||(A[t]=e[t]={_global:[]}),A[t][n]=r},e.registerGlobalHelper=function(t,n,r,i){e.registerHelper(t,n,i),A[t]._global.push({pred:r,val:i})}}function es(e,t,A,n,r){var i=t,o=A,a=tt(e,t.line),s=r&&"rtl"==e.direction?-A:A;function l(){var A=t.line+s;return!(A=e.first+e.size)&&(t=new lt(A,t.ch,t.sticky),a=tt(e,A))}function c(i){var o;if("codepoint"==n){var c=a.text.charCodeAt(t.ch+(A>0?0:-1));if(isNaN(c))o=null;else{var u=A>0?c>=55296&&c<56320:c>=56320&&c<57343;o=new lt(t.line,Math.max(0,Math.min(a.text.length,t.ch+A*(u?2:1))),-A)}}else o=r?ea(e.cm,a,t,A):_o(a,t,A);if(null==o){if(i||!l())return!1;t=$o(r,e.cm,a,t.line,s)}else t=o;return!0}if("char"==n||"codepoint"==n)c();else if("column"==n)c(!0);else if("word"==n||"group"==n)for(var u=null,h="group"==n,d=e.cm&&e.cm.getHelper(t,"wordChars"),f=!0;;f=!1){if(A<0&&!c(!f))break;var p=a.text.charAt(t.ch)||"\n",m=ae(p,d)?"w":h&&"\n"==p?"n":!h||/\s/.test(p)?null:"p";if(!h||f||m||(m="s"),u&&u!=m){A<0&&(A=1,c(),t.sticky="after");break}if(m&&(u=m),A>0&&!c(!f))break}var g=Qi(e,t,i,o,!0);return ut(i,g)&&(g.hitSide=!0),g}function ts(e,t,A,n){var r,i,o=e.doc,a=t.left;if("page"==n){var s=Math.min(e.display.wrapper.clientHeight,q(e).innerHeight||o(e).documentElement.clientHeight),l=Math.max(s-.5*Pn(e.display),3);r=(A>0?t.bottom:t.top)+A*l}else"line"==n&&(r=A>0?t.bottom+3:t.top-3);for(;;){if(i=Cn(e,a,r),!i.outside)break;if(A<0?r<=0:r>=o.height){i.hitSide=!0;break}r+=5*A}return i}var As=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new V,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function ns(e,t){var A=rn(e,t.line);if(!A||A.hidden)return null;var n=tt(e.doc,t.line),r=tn(A,n,t.line),i=ge(n,e.doc.direction),o="left";if(i){var a=pe(i,t.ch);o=a%2?"right":"left"}var s=cn(r.map,t.ch,o);return s.offset="right"==s.collapse?s.end:s.start,s}function rs(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function is(e,t){return t&&(e.bad=!0),e}function os(e,t,A,n,r){var i="",o=!1,a=e.doc.lineSeparator(),s=!1;function l(e){return function(t){return t.id==e}}function c(){o&&(i+=a,s&&(i+=a),o=s=!1)}function u(e){e&&(c(),i+=e)}function h(t){if(1==t.nodeType){var A=t.getAttribute("cm-text");if(A)return void u(A);var i,d=t.getAttribute("cm-marker");if(d){var f=e.findMarks(lt(n,0),lt(r+1,0),l(+d));return void(f.length&&(i=f[0].find(0))&&u(At(e.doc,i.from,i.to).join(a)))}if("false"==t.getAttribute("contenteditable"))return;var p=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;p&&c();for(var m=0;m=t.display.viewTo||i.line=t.display.viewFrom&&ns(t,r)||{node:s[0].measure.map[2],offset:0},c=i.linen.firstLine()&&(o=lt(o.line-1,tt(n.doc,o.line-1).length)),a.ch==tt(n.doc,a.line).text.length&&a.liner.viewTo-1)return!1;o.line==r.viewFrom||0==(e=qn(n,o.line))?(t=it(r.view[0].line),A=r.view[0].node):(t=it(r.view[e].line),A=r.view[e-1].node.nextSibling);var s,l,c=qn(n,a.line);if(c==r.view.length-1?(s=r.viewTo-1,l=r.lineDiv.lastChild):(s=it(r.view[c+1].line)-1,l=r.view[c+1].node.previousSibling),!A)return!1;var u=n.doc.splitLines(os(n,A,l,t,s)),h=At(n.doc,lt(t,0),lt(s,tt(n.doc,s).text.length));while(u.length>1&&h.length>1)if(ee(u)==ee(h))u.pop(),h.pop(),s--;else{if(u[0]!=h[0])break;u.shift(),h.shift(),t++}var d=0,f=0,p=u[0],m=h[0],g=Math.min(p.length,m.length);while(do.ch&&v.charCodeAt(v.length-f-1)==b.charCodeAt(b.length-f-1))d--,f++;u[u.length-1]=v.slice(0,v.length-f).replace(/^\u200b+/,""),u[0]=u[0].slice(d).replace(/\u200b+$/,"");var w=lt(t,d),x=lt(s,h.length?ee(h).length-f:0);return u.length>1||u[0]||ct(w,x)?(ao(n.doc,u,w,x,"+input"),!0):void 0},As.prototype.ensurePolled=function(){this.forceCompositionEnd()},As.prototype.reset=function(){this.forceCompositionEnd()},As.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},As.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},As.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Rr(this.cm,(function(){return Hn(e.cm)}))},As.prototype.setUneditable=function(e){e.contentEditable="false"},As.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Fr(this.cm,Ga)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},As.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},As.prototype.onContextMenu=function(){},As.prototype.resetPosition=function(){},As.prototype.needsContentAttribute=!0;var ls=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new V,this.hasSelection=!1,this.composing=null,this.resetting=!1};function cs(e,t){if(t=t?W(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var A=P(j(e));t.autofocus=A==e||null!=e.getAttribute("autofocus")&&A==document.body}function n(){e.value=a.getValue()}var r;if(e.form&&(be(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var i=e.form;r=i.submit;try{var o=i.submit=function(){n(),i.submit=r,i.submit(),i.submit=o}}catch(s){}}t.finishInit=function(A){A.save=n,A.getTextArea=function(){return e},A.toTextArea=function(){A.toTextArea=isNaN,n(),e.parentNode.removeChild(A.getWrapperElement()),e.style.display="",e.form&&(we(e.form,"submit",n),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=r))}},e.style.display="none";var a=Ha((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return a}function us(e){e.off=we,e.on=be,e.wheelEventPixels=oi,e.Doc=Mo,e.splitLines=Be,e.countColumn=X,e.findColumn=Q,e.isWordChar=oe,e.Pass=G,e.signal=xe,e.Line=hA,e.changeEnd=hi,e.scrollbarModel=Tr,e.Pos=lt,e.cmpPos=ct,e.modes=Xe,e.mimeModes=Ve,e.resolveMode=Ge,e.getMode=Ye,e.modeExtensions=Ke,e.extendMode=Je,e.copyState=Qe,e.startState=$e,e.innerMode=_e,e.commands=ta,e.keyMap=Wo,e.keyName=Yo,e.isModifierKey=Uo,e.lookupKey=Zo,e.normalizeKeyMap=Vo,e.StringStream=et,e.SharedTextMarker=wo,e.TextMarker=bo,e.LineWidget=po,e.e_preventDefault=Me,e.e_stopPropagation=Ee,e.e_stop=ze,e.addClass=L,e.contains=D,e.rmClass=M,e.keyNames=Bo}ls.prototype.init=function(e){var t=this,A=this,n=this.cm;this.createField(e);var r=this.textarea;function i(e){if(!ke(n,e)){if(n.somethingSelected())Ua({lineWise:!1,text:n.getSelections()});else{if(!n.options.lineWiseCopyCut)return;var t=Ja(n);Ua({lineWise:!0,text:t.text}),"cut"==e.type?n.setSelections(t.ranges,null,Y):(A.prevInput="",r.value=t.text.join("\n"),F(r))}"cut"==e.type&&(n.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(r.style.width="0px"),be(r,"input",(function(){o&&a>=9&&t.hasSelection&&(t.hasSelection=null),A.poll()})),be(r,"paste",(function(e){ke(n,e)||Ya(e,n)||(n.state.pasteIncoming=+new Date,A.fastPoll())})),be(r,"cut",i),be(r,"copy",i),be(e.scroller,"paste",(function(t){if(!GA(e,t)&&!ke(n,t)){if(!r.dispatchEvent)return n.state.pasteIncoming=+new Date,void A.focus();var i=new Event("paste");i.clipboardData=t.clipboardData,r.dispatchEvent(i)}})),be(e.lineSpace,"selectstart",(function(t){GA(e,t)||Me(t)})),be(r,"compositionstart",(function(){var e=n.getCursor("from");A.composing&&A.composing.range.clear(),A.composing={start:e,range:n.markText(e,n.getCursor("to"),{className:"CodeMirror-composing"})}})),be(r,"compositionend",(function(){A.composing&&(A.poll(),A.composing.range.clear(),A.composing=null)}))},ls.prototype.createField=function(e){this.wrapper=_a(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Qa(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},ls.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ls.prototype.prepareSelection=function(){var e=this.cm,t=e.display,A=e.doc,n=Yn(e);if(e.options.moveInputWithCursor){var r=kn(e,A.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),o=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,r.top+o.top-i.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,r.left+o.left-i.left))}return n},ls.prototype.showSelection=function(e){var t=this.cm,A=t.display;S(A.cursorDiv,e.cursors),S(A.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ls.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var A=t.getSelection();this.textarea.value=A,t.state.focused&&F(this.textarea),o&&a>=9&&(this.hasSelection=A)}else e||(this.prevInput=this.textarea.value="",o&&a>=9&&(this.hasSelection=null));this.resetting=!1}},ls.prototype.getField=function(){return this.textarea},ls.prototype.supportsTouch=function(){return!1},ls.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||P(j(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(e){}},ls.prototype.blur=function(){this.textarea.blur()},ls.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ls.prototype.receivedFocus=function(){this.slowPoll()},ls.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},ls.prototype.fastPoll=function(){var e=!1,t=this;function A(){var n=t.poll();n||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,A))}t.pollingFast=!0,t.polling.set(20,A)},ls.prototype.poll=function(){var e=this,t=this.cm,A=this.textarea,n=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||je(A)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var r=A.value;if(r==n&&!t.somethingSelected())return!1;if(o&&a>=9&&this.hasSelection===r||b&&/[\uf700-\uf7ff]/.test(r))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var i=r.charCodeAt(0);if(8203!=i||n||(n="​"),8666==i)return this.reset(),this.cm.execCommand("undo")}var s=0,l=Math.min(n.length,r.length);while(s1e3||r.indexOf("\n")>-1?A.value=e.prevInput="":e.prevInput=r,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},ls.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ls.prototype.onKeyPress=function(){o&&a>=9&&(this.hasSelection=null),this.fastPoll()},ls.prototype.onContextMenu=function(e){var t=this,A=t.cm,n=A.display,r=t.textarea;t.contextMenuPending&&t.contextMenuPending();var i=jn(A,e),l=n.scroller.scrollTop;if(i&&!h){var c=A.options.resetSelectionOnContextMenu;c&&-1==A.doc.sel.contains(i)&&Fr(A,Zi)(A.doc,ui(i),Y);var u,d=r.style.cssText,f=t.wrapper.style.cssText,p=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",r.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n z-index: 1000; background: "+(o?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",s&&(u=r.ownerDocument.defaultView.scrollY),n.input.focus(),s&&r.ownerDocument.defaultView.scrollTo(null,u),n.input.reset(),A.somethingSelected()||(r.value=t.prevInput=" "),t.contextMenuPending=v,n.selForContextMenu=A.doc.sel,clearTimeout(n.detectingSelectAll),o&&a>=9&&g(),T){ze(e);var m=function(){we(window,"mouseup",m),setTimeout(v,20)};be(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=r.selectionStart){var e=A.somethingSelected(),i="​"+(e?r.value:"");r.value="⇚",r.value=i,t.prevInput=e?"":"​",r.selectionStart=1,r.selectionEnd=i.length,n.selForContextMenu=A.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=f,r.style.cssText=d,o&&a<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=l),null!=r.selectionStart)){(!o||o&&a<9)&&g();var e=0,i=function(){n.selForContextMenu==A.doc.sel&&0==r.selectionStart&&r.selectionEnd>0&&"​"==t.prevInput?Fr(A,$i)(A):e++<10?n.detectingSelectAll=setTimeout(i,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(i,200)}}},ls.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},ls.prototype.setUneditable=function(){},ls.prototype.needsContentAttribute=!1,Ba(Ha),$a(Ha);var hs="iter insert remove copy getEditor constructor".split(" ");for(var ds in Mo.prototype)Mo.prototype.hasOwnProperty(ds)&&Z(hs,ds)<0&&(Ha.prototype[ds]=function(e){return function(){return e.apply(this.doc,arguments)}}(Mo.prototype[ds]));return Ce(Mo),Ha.inputStyles={textarea:ls,contenteditable:As},Ha.defineMode=function(e){Ha.defaults.mode||"null"==e||(Ha.defaults.mode=e),Ze.apply(this,arguments)},Ha.defineMIME=Ue,Ha.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Ha.defineMIME("text/plain","null"),Ha.defineExtension=function(e,t){Ha.prototype[e]=t},Ha.defineDocExtension=function(e,t){Mo.prototype[e]=t},Ha.fromTextArea=cs,us(Ha),Ha.version="5.65.16",Ha}))},"56d3":function(e,t,A){e.exports=A.p+"img/ziyuan_4.svg"},5703:function(e,t,A){(function(t,A){e.exports=A()})("undefined"!==typeof self&&self,(function(){return function(){"use strict";var e={};!function(){e.d=function(t,A){for(var n in A)e.o(A,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:A[n]})}}(),function(){e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}();var t={};e.d(t,{default:function(){return bi}});var A=function e(t,A){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n,r,i="KaTeX parse error: "+t,o=A&&A.loc;if(o&&o.start<=o.end){var a=o.lexer.input;n=o.start,r=o.end,n===a.length?i+=" at end of input: ":i+=" at position "+(n+1)+": ";var s,l,c=a.slice(n,r).replace(/[^]/g,"$&̲");s=n>15?"…"+a.slice(n-15,n):a.slice(0,n),l=r+15":">","<":"<",'"':""","'":"'"},l=/[&><"']/g;function c(e){return String(e).replace(l,(function(e){return s[e]}))}var u=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},h=function(e){var t=u(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},d=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},f=function(e){var t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return null!=t?t[1]:"_relative"},p={contains:r,deflt:i,escape:c,hyphenate:a,getBaseElem:u,isCharacterBox:h,protocolFromUrl:f},m={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:function(e){return"#"+e}},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:function(e,t){return t.push(e),t}},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:function(e){return Math.max(0,e)},cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:function(e){return Math.max(0,e)},cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:function(e){return Math.max(0,e)},cli:"-e, --max-expand ",cliProcessor:function(e){return"Infinity"===e?1/0:parseInt(e)}},globalGroup:{type:"boolean",cli:!1}};function g(e){if(e.default)return e.default;var t=e.type,A=Array.isArray(t)?t[0]:t;if("string"!==typeof A)return A.enum[0];switch(A){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}var v=function(){function e(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},m)if(m.hasOwnProperty(t)){var A=m[t];this[t]=void 0!==e[t]?A.processor?A.processor(e[t]):e[t]:g(A)}}var t=e.prototype;return t.reportNonstrict=function(e,t,A){var r=this.strict;if("function"===typeof r&&(r=r(e,t,A)),r&&"ignore"!==r){if(!0===r||"error"===r)throw new n("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",A);"warn"===r?"undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+r+"': "+t+" ["+e+"]")}},t.useStrictBehavior=function(e,t,A){var n=this.strict;if("function"===typeof n)try{n=n(e,t,A)}catch(r){n="error"}return!(!n||"ignore"===n)&&(!0===n||"error"===n||("warn"===n?("undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),!1):("undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]"),!1)))},t.isTrusted=function(e){e.url&&!e.protocol&&(e.protocol=p.protocolFromUrl(e.url));var t="function"===typeof this.trust?this.trust(e):this.trust;return Boolean(t)},e}(),b=function(){function e(e,t,A){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=A}var t=e.prototype;return t.sup=function(){return E[S[this.id]]},t.sub=function(){return E[z[this.id]]},t.fracNum=function(){return E[O[this.id]]},t.fracDen=function(){return E[D[this.id]]},t.cramp=function(){return E[P[this.id]]},t.text=function(){return E[L[this.id]]},t.isTight=function(){return this.size>=2},e}(),y=0,w=1,x=2,k=3,T=4,N=5,C=6,M=7,E=[new b(y,0,!1),new b(w,0,!0),new b(x,1,!1),new b(k,1,!0),new b(T,2,!1),new b(N,2,!0),new b(C,3,!1),new b(M,3,!0)],S=[T,N,T,N,C,M,C,M],z=[N,N,N,N,M,M,M,M],O=[x,k,T,N,C,M,C,M],D=[k,k,N,N,M,M,M,M],P=[w,w,k,k,N,N,M,M],L=[y,w,x,k,x,k,x,k],R={DISPLAY:E[y],TEXT:E[x],SCRIPT:E[T],SCRIPTSCRIPT:E[C]},F=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function I(e){for(var t=0;t=r[0]&&e<=r[1])return A.name}return null}var B=[];function j(e){for(var t=0;t=B[t]&&e<=B[t+1])return!0;return!1}F.forEach((function(e){return e.blocks.forEach((function(e){return B.push.apply(B,e)}))}));var q=80,H=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},W=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},X=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},V=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"},Z=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},U=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},G=function(e,t,A){var n=A-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+n+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"},Y=function(e,t,A){t*=1e3;var n="";switch(e){case"sqrtMain":n=H(t,q);break;case"sqrtSize1":n=W(t,q);break;case"sqrtSize2":n=X(t,q);break;case"sqrtSize3":n=V(t,q);break;case"sqrtSize4":n=Z(t,q);break;case"sqrtTall":n=G(t,q,A)}return n},K=function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}},J={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},Q=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}},_=function(){function e(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var t=e.prototype;return t.hasClass=function(e){return p.contains(this.classes,e)},t.toNode=function(){for(var e=document.createDocumentFragment(),t=0;t=5?0:e>=3?1:2,!re[t]){var A=re[t]={cssEmPerMu:ee.quad[t]/18};for(var n in ee)ee.hasOwnProperty(n)&&(A[n]=ee[n][t])}return re[t]}var oe=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],ae=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],se=function(e,t){return t.size<2?e:oe[e-1][t.size-1]},le=function(){function e(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=ae[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}var t=e.prototype;return t.extend=function(t){var A={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in t)t.hasOwnProperty(n)&&(A[n]=t[n]);return new e(A)},t.havingStyle=function(e){return this.style===e?this:this.extend({style:e,size:se(this.textSize,e)})},t.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},t.havingSize=function(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:ae[e-1]})},t.havingBaseStyle=function(t){t=t||this.style.text();var A=se(e.BASESIZE,t);return this.size===A&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:A})},t.havingBaseSizing=function(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})},t.withColor=function(e){return this.extend({color:e})},t.withPhantom=function(){return this.extend({phantom:!0})},t.withFont=function(e){return this.extend({font:e})},t.withTextFontFamily=function(e){return this.extend({fontFamily:e,font:""})},t.withTextFontWeight=function(e){return this.extend({fontWeight:e,font:""})},t.withTextFontShape=function(e){return this.extend({fontShape:e,font:""})},t.sizingClasses=function(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]},t.baseSizingClasses=function(){return this.size!==e.BASESIZE?["sizing","reset-size"+this.size,"size"+e.BASESIZE]:[]},t.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=ie(this.size)),this._fontMetrics},t.getColor=function(){return this.phantom?"transparent":this.color},e}();le.BASESIZE=6;var ce=le,ue={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},he={ex:!0,em:!0,mu:!0},de=function(e){return"string"!==typeof e&&(e=e.unit),e in ue||e in he||"ex"===e},fe=function(e,t){var A;if(e.unit in ue)A=ue[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)A=t.fontMetrics().cssEmPerMu;else{var r;if(r=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)A=r.fontMetrics().xHeight;else{if("em"!==e.unit)throw new n("Invalid unit: '"+e.unit+"'");A=r.fontMetrics().quad}r!==t&&(A*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*A,t.maxSize)},pe=function(e){return+e.toFixed(4)+"em"},me=function(e){return e.filter((function(e){return e})).join(" ")},ge=function(e,t,A){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=A||{},t){t.style.isTight()&&this.classes.push("mtight");var n=t.getColor();n&&(this.style.color=n)}},ve=function(e){var t=document.createElement(e);for(var A in t.className=me(this.classes),this.style)this.style.hasOwnProperty(A)&&(t.style[A]=this.style[A]);for(var n in this.attributes)this.attributes.hasOwnProperty(n)&&t.setAttribute(n,this.attributes[n]);for(var r=0;r",t},ye=function(){function e(e,t,A,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,ge.call(this,e,A,n),this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return p.contains(this.classes,e)},t.toNode=function(){return ve.call(this,"span")},t.toMarkup=function(){return be.call(this,"span")},e}(),we=function(){function e(e,t,A,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,ge.call(this,t,n),this.children=A||[],this.setAttribute("href",e)}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return p.contains(this.classes,e)},t.toNode=function(){return ve.call(this,"a")},t.toMarkup=function(){return be.call(this,"a")},e}(),xe=function(){function e(e,t,A){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=A}var t=e.prototype;return t.hasClass=function(e){return p.contains(this.classes,e)},t.toNode=function(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e},t.toMarkup=function(){var e=""+this.alt+"0&&(t=document.createElement("span"),t.style.marginRight=pe(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=me(this.classes)),this.style)this.style.hasOwnProperty(A)&&(t=t||document.createElement("span"),t.style[A]=this.style[A]);return t?(t.appendChild(e),t):e},t.toMarkup=function(){var e=!1,t="0&&(A+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(n)&&(A+=p.hyphenate(n)+":"+this.style[n]+";");A&&(e=!0,t+=' style="'+p.escape(A)+'"');var r=p.escape(this.text);return e?(t+=">",t+=r,t+="",t):r},e}(),Ne=function(){function e(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}var t=e.prototype;return t.toNode=function(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");for(var A in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,A)&&t.setAttribute(A,this.attributes[A]);for(var n=0;n":""},e}(),Me=function(){function e(e){this.attributes=void 0,this.attributes=e||{}}var t=e.prototype;return t.toNode=function(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"line");for(var A in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,A)&&t.setAttribute(A,this.attributes[A]);return t},t.toMarkup=function(){var e=" but got "+String(e)+".")}var ze={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Oe={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},De={math:{},text:{}},Pe=De;function Le(e,t,A,n,r,i){De[e][r]={font:t,group:A,replace:n},i&&n&&(De[e][n]=De[e][r])}var Re="math",Fe="text",Ie="main",Be="ams",je="accent-token",qe="bin",He="close",We="inner",Xe="mathord",Ve="op-token",Ze="open",Ue="punct",Ge="rel",Ye="spacing",Ke="textord";Le(Re,Ie,Ge,"≡","\\equiv",!0),Le(Re,Ie,Ge,"≺","\\prec",!0),Le(Re,Ie,Ge,"≻","\\succ",!0),Le(Re,Ie,Ge,"∼","\\sim",!0),Le(Re,Ie,Ge,"⊥","\\perp"),Le(Re,Ie,Ge,"⪯","\\preceq",!0),Le(Re,Ie,Ge,"⪰","\\succeq",!0),Le(Re,Ie,Ge,"≃","\\simeq",!0),Le(Re,Ie,Ge,"∣","\\mid",!0),Le(Re,Ie,Ge,"≪","\\ll",!0),Le(Re,Ie,Ge,"≫","\\gg",!0),Le(Re,Ie,Ge,"≍","\\asymp",!0),Le(Re,Ie,Ge,"∥","\\parallel"),Le(Re,Ie,Ge,"⋈","\\bowtie",!0),Le(Re,Ie,Ge,"⌣","\\smile",!0),Le(Re,Ie,Ge,"⊑","\\sqsubseteq",!0),Le(Re,Ie,Ge,"⊒","\\sqsupseteq",!0),Le(Re,Ie,Ge,"≐","\\doteq",!0),Le(Re,Ie,Ge,"⌢","\\frown",!0),Le(Re,Ie,Ge,"∋","\\ni",!0),Le(Re,Ie,Ge,"∝","\\propto",!0),Le(Re,Ie,Ge,"⊢","\\vdash",!0),Le(Re,Ie,Ge,"⊣","\\dashv",!0),Le(Re,Ie,Ge,"∋","\\owns"),Le(Re,Ie,Ue,".","\\ldotp"),Le(Re,Ie,Ue,"⋅","\\cdotp"),Le(Re,Ie,Ke,"#","\\#"),Le(Fe,Ie,Ke,"#","\\#"),Le(Re,Ie,Ke,"&","\\&"),Le(Fe,Ie,Ke,"&","\\&"),Le(Re,Ie,Ke,"ℵ","\\aleph",!0),Le(Re,Ie,Ke,"∀","\\forall",!0),Le(Re,Ie,Ke,"ℏ","\\hbar",!0),Le(Re,Ie,Ke,"∃","\\exists",!0),Le(Re,Ie,Ke,"∇","\\nabla",!0),Le(Re,Ie,Ke,"♭","\\flat",!0),Le(Re,Ie,Ke,"ℓ","\\ell",!0),Le(Re,Ie,Ke,"♮","\\natural",!0),Le(Re,Ie,Ke,"♣","\\clubsuit",!0),Le(Re,Ie,Ke,"℘","\\wp",!0),Le(Re,Ie,Ke,"♯","\\sharp",!0),Le(Re,Ie,Ke,"♢","\\diamondsuit",!0),Le(Re,Ie,Ke,"ℜ","\\Re",!0),Le(Re,Ie,Ke,"♡","\\heartsuit",!0),Le(Re,Ie,Ke,"ℑ","\\Im",!0),Le(Re,Ie,Ke,"♠","\\spadesuit",!0),Le(Re,Ie,Ke,"§","\\S",!0),Le(Fe,Ie,Ke,"§","\\S"),Le(Re,Ie,Ke,"¶","\\P",!0),Le(Fe,Ie,Ke,"¶","\\P"),Le(Re,Ie,Ke,"†","\\dag"),Le(Fe,Ie,Ke,"†","\\dag"),Le(Fe,Ie,Ke,"†","\\textdagger"),Le(Re,Ie,Ke,"‡","\\ddag"),Le(Fe,Ie,Ke,"‡","\\ddag"),Le(Fe,Ie,Ke,"‡","\\textdaggerdbl"),Le(Re,Ie,He,"⎱","\\rmoustache",!0),Le(Re,Ie,Ze,"⎰","\\lmoustache",!0),Le(Re,Ie,He,"⟯","\\rgroup",!0),Le(Re,Ie,Ze,"⟮","\\lgroup",!0),Le(Re,Ie,qe,"∓","\\mp",!0),Le(Re,Ie,qe,"⊖","\\ominus",!0),Le(Re,Ie,qe,"⊎","\\uplus",!0),Le(Re,Ie,qe,"⊓","\\sqcap",!0),Le(Re,Ie,qe,"∗","\\ast"),Le(Re,Ie,qe,"⊔","\\sqcup",!0),Le(Re,Ie,qe,"◯","\\bigcirc",!0),Le(Re,Ie,qe,"∙","\\bullet",!0),Le(Re,Ie,qe,"‡","\\ddagger"),Le(Re,Ie,qe,"≀","\\wr",!0),Le(Re,Ie,qe,"⨿","\\amalg"),Le(Re,Ie,qe,"&","\\And"),Le(Re,Ie,Ge,"⟵","\\longleftarrow",!0),Le(Re,Ie,Ge,"⇐","\\Leftarrow",!0),Le(Re,Ie,Ge,"⟸","\\Longleftarrow",!0),Le(Re,Ie,Ge,"⟶","\\longrightarrow",!0),Le(Re,Ie,Ge,"⇒","\\Rightarrow",!0),Le(Re,Ie,Ge,"⟹","\\Longrightarrow",!0),Le(Re,Ie,Ge,"↔","\\leftrightarrow",!0),Le(Re,Ie,Ge,"⟷","\\longleftrightarrow",!0),Le(Re,Ie,Ge,"⇔","\\Leftrightarrow",!0),Le(Re,Ie,Ge,"⟺","\\Longleftrightarrow",!0),Le(Re,Ie,Ge,"↦","\\mapsto",!0),Le(Re,Ie,Ge,"⟼","\\longmapsto",!0),Le(Re,Ie,Ge,"↗","\\nearrow",!0),Le(Re,Ie,Ge,"↩","\\hookleftarrow",!0),Le(Re,Ie,Ge,"↪","\\hookrightarrow",!0),Le(Re,Ie,Ge,"↘","\\searrow",!0),Le(Re,Ie,Ge,"↼","\\leftharpoonup",!0),Le(Re,Ie,Ge,"⇀","\\rightharpoonup",!0),Le(Re,Ie,Ge,"↙","\\swarrow",!0),Le(Re,Ie,Ge,"↽","\\leftharpoondown",!0),Le(Re,Ie,Ge,"⇁","\\rightharpoondown",!0),Le(Re,Ie,Ge,"↖","\\nwarrow",!0),Le(Re,Ie,Ge,"⇌","\\rightleftharpoons",!0),Le(Re,Be,Ge,"≮","\\nless",!0),Le(Re,Be,Ge,"","\\@nleqslant"),Le(Re,Be,Ge,"","\\@nleqq"),Le(Re,Be,Ge,"⪇","\\lneq",!0),Le(Re,Be,Ge,"≨","\\lneqq",!0),Le(Re,Be,Ge,"","\\@lvertneqq"),Le(Re,Be,Ge,"⋦","\\lnsim",!0),Le(Re,Be,Ge,"⪉","\\lnapprox",!0),Le(Re,Be,Ge,"⊀","\\nprec",!0),Le(Re,Be,Ge,"⋠","\\npreceq",!0),Le(Re,Be,Ge,"⋨","\\precnsim",!0),Le(Re,Be,Ge,"⪹","\\precnapprox",!0),Le(Re,Be,Ge,"≁","\\nsim",!0),Le(Re,Be,Ge,"","\\@nshortmid"),Le(Re,Be,Ge,"∤","\\nmid",!0),Le(Re,Be,Ge,"⊬","\\nvdash",!0),Le(Re,Be,Ge,"⊭","\\nvDash",!0),Le(Re,Be,Ge,"⋪","\\ntriangleleft"),Le(Re,Be,Ge,"⋬","\\ntrianglelefteq",!0),Le(Re,Be,Ge,"⊊","\\subsetneq",!0),Le(Re,Be,Ge,"","\\@varsubsetneq"),Le(Re,Be,Ge,"⫋","\\subsetneqq",!0),Le(Re,Be,Ge,"","\\@varsubsetneqq"),Le(Re,Be,Ge,"≯","\\ngtr",!0),Le(Re,Be,Ge,"","\\@ngeqslant"),Le(Re,Be,Ge,"","\\@ngeqq"),Le(Re,Be,Ge,"⪈","\\gneq",!0),Le(Re,Be,Ge,"≩","\\gneqq",!0),Le(Re,Be,Ge,"","\\@gvertneqq"),Le(Re,Be,Ge,"⋧","\\gnsim",!0),Le(Re,Be,Ge,"⪊","\\gnapprox",!0),Le(Re,Be,Ge,"⊁","\\nsucc",!0),Le(Re,Be,Ge,"⋡","\\nsucceq",!0),Le(Re,Be,Ge,"⋩","\\succnsim",!0),Le(Re,Be,Ge,"⪺","\\succnapprox",!0),Le(Re,Be,Ge,"≆","\\ncong",!0),Le(Re,Be,Ge,"","\\@nshortparallel"),Le(Re,Be,Ge,"∦","\\nparallel",!0),Le(Re,Be,Ge,"⊯","\\nVDash",!0),Le(Re,Be,Ge,"⋫","\\ntriangleright"),Le(Re,Be,Ge,"⋭","\\ntrianglerighteq",!0),Le(Re,Be,Ge,"","\\@nsupseteqq"),Le(Re,Be,Ge,"⊋","\\supsetneq",!0),Le(Re,Be,Ge,"","\\@varsupsetneq"),Le(Re,Be,Ge,"⫌","\\supsetneqq",!0),Le(Re,Be,Ge,"","\\@varsupsetneqq"),Le(Re,Be,Ge,"⊮","\\nVdash",!0),Le(Re,Be,Ge,"⪵","\\precneqq",!0),Le(Re,Be,Ge,"⪶","\\succneqq",!0),Le(Re,Be,Ge,"","\\@nsubseteqq"),Le(Re,Be,qe,"⊴","\\unlhd"),Le(Re,Be,qe,"⊵","\\unrhd"),Le(Re,Be,Ge,"↚","\\nleftarrow",!0),Le(Re,Be,Ge,"↛","\\nrightarrow",!0),Le(Re,Be,Ge,"⇍","\\nLeftarrow",!0),Le(Re,Be,Ge,"⇏","\\nRightarrow",!0),Le(Re,Be,Ge,"↮","\\nleftrightarrow",!0),Le(Re,Be,Ge,"⇎","\\nLeftrightarrow",!0),Le(Re,Be,Ge,"△","\\vartriangle"),Le(Re,Be,Ke,"ℏ","\\hslash"),Le(Re,Be,Ke,"▽","\\triangledown"),Le(Re,Be,Ke,"◊","\\lozenge"),Le(Re,Be,Ke,"Ⓢ","\\circledS"),Le(Re,Be,Ke,"®","\\circledR"),Le(Fe,Be,Ke,"®","\\circledR"),Le(Re,Be,Ke,"∡","\\measuredangle",!0),Le(Re,Be,Ke,"∄","\\nexists"),Le(Re,Be,Ke,"℧","\\mho"),Le(Re,Be,Ke,"Ⅎ","\\Finv",!0),Le(Re,Be,Ke,"⅁","\\Game",!0),Le(Re,Be,Ke,"‵","\\backprime"),Le(Re,Be,Ke,"▲","\\blacktriangle"),Le(Re,Be,Ke,"▼","\\blacktriangledown"),Le(Re,Be,Ke,"■","\\blacksquare"),Le(Re,Be,Ke,"⧫","\\blacklozenge"),Le(Re,Be,Ke,"★","\\bigstar"),Le(Re,Be,Ke,"∢","\\sphericalangle",!0),Le(Re,Be,Ke,"∁","\\complement",!0),Le(Re,Be,Ke,"ð","\\eth",!0),Le(Fe,Ie,Ke,"ð","ð"),Le(Re,Be,Ke,"╱","\\diagup"),Le(Re,Be,Ke,"╲","\\diagdown"),Le(Re,Be,Ke,"□","\\square"),Le(Re,Be,Ke,"□","\\Box"),Le(Re,Be,Ke,"◊","\\Diamond"),Le(Re,Be,Ke,"¥","\\yen",!0),Le(Fe,Be,Ke,"¥","\\yen",!0),Le(Re,Be,Ke,"✓","\\checkmark",!0),Le(Fe,Be,Ke,"✓","\\checkmark"),Le(Re,Be,Ke,"ℶ","\\beth",!0),Le(Re,Be,Ke,"ℸ","\\daleth",!0),Le(Re,Be,Ke,"ℷ","\\gimel",!0),Le(Re,Be,Ke,"ϝ","\\digamma",!0),Le(Re,Be,Ke,"ϰ","\\varkappa"),Le(Re,Be,Ze,"┌","\\@ulcorner",!0),Le(Re,Be,He,"┐","\\@urcorner",!0),Le(Re,Be,Ze,"└","\\@llcorner",!0),Le(Re,Be,He,"┘","\\@lrcorner",!0),Le(Re,Be,Ge,"≦","\\leqq",!0),Le(Re,Be,Ge,"⩽","\\leqslant",!0),Le(Re,Be,Ge,"⪕","\\eqslantless",!0),Le(Re,Be,Ge,"≲","\\lesssim",!0),Le(Re,Be,Ge,"⪅","\\lessapprox",!0),Le(Re,Be,Ge,"≊","\\approxeq",!0),Le(Re,Be,qe,"⋖","\\lessdot"),Le(Re,Be,Ge,"⋘","\\lll",!0),Le(Re,Be,Ge,"≶","\\lessgtr",!0),Le(Re,Be,Ge,"⋚","\\lesseqgtr",!0),Le(Re,Be,Ge,"⪋","\\lesseqqgtr",!0),Le(Re,Be,Ge,"≑","\\doteqdot"),Le(Re,Be,Ge,"≓","\\risingdotseq",!0),Le(Re,Be,Ge,"≒","\\fallingdotseq",!0),Le(Re,Be,Ge,"∽","\\backsim",!0),Le(Re,Be,Ge,"⋍","\\backsimeq",!0),Le(Re,Be,Ge,"⫅","\\subseteqq",!0),Le(Re,Be,Ge,"⋐","\\Subset",!0),Le(Re,Be,Ge,"⊏","\\sqsubset",!0),Le(Re,Be,Ge,"≼","\\preccurlyeq",!0),Le(Re,Be,Ge,"⋞","\\curlyeqprec",!0),Le(Re,Be,Ge,"≾","\\precsim",!0),Le(Re,Be,Ge,"⪷","\\precapprox",!0),Le(Re,Be,Ge,"⊲","\\vartriangleleft"),Le(Re,Be,Ge,"⊴","\\trianglelefteq"),Le(Re,Be,Ge,"⊨","\\vDash",!0),Le(Re,Be,Ge,"⊪","\\Vvdash",!0),Le(Re,Be,Ge,"⌣","\\smallsmile"),Le(Re,Be,Ge,"⌢","\\smallfrown"),Le(Re,Be,Ge,"≏","\\bumpeq",!0),Le(Re,Be,Ge,"≎","\\Bumpeq",!0),Le(Re,Be,Ge,"≧","\\geqq",!0),Le(Re,Be,Ge,"⩾","\\geqslant",!0),Le(Re,Be,Ge,"⪖","\\eqslantgtr",!0),Le(Re,Be,Ge,"≳","\\gtrsim",!0),Le(Re,Be,Ge,"⪆","\\gtrapprox",!0),Le(Re,Be,qe,"⋗","\\gtrdot"),Le(Re,Be,Ge,"⋙","\\ggg",!0),Le(Re,Be,Ge,"≷","\\gtrless",!0),Le(Re,Be,Ge,"⋛","\\gtreqless",!0),Le(Re,Be,Ge,"⪌","\\gtreqqless",!0),Le(Re,Be,Ge,"≖","\\eqcirc",!0),Le(Re,Be,Ge,"≗","\\circeq",!0),Le(Re,Be,Ge,"≜","\\triangleq",!0),Le(Re,Be,Ge,"∼","\\thicksim"),Le(Re,Be,Ge,"≈","\\thickapprox"),Le(Re,Be,Ge,"⫆","\\supseteqq",!0),Le(Re,Be,Ge,"⋑","\\Supset",!0),Le(Re,Be,Ge,"⊐","\\sqsupset",!0),Le(Re,Be,Ge,"≽","\\succcurlyeq",!0),Le(Re,Be,Ge,"⋟","\\curlyeqsucc",!0),Le(Re,Be,Ge,"≿","\\succsim",!0),Le(Re,Be,Ge,"⪸","\\succapprox",!0),Le(Re,Be,Ge,"⊳","\\vartriangleright"),Le(Re,Be,Ge,"⊵","\\trianglerighteq"),Le(Re,Be,Ge,"⊩","\\Vdash",!0),Le(Re,Be,Ge,"∣","\\shortmid"),Le(Re,Be,Ge,"∥","\\shortparallel"),Le(Re,Be,Ge,"≬","\\between",!0),Le(Re,Be,Ge,"⋔","\\pitchfork",!0),Le(Re,Be,Ge,"∝","\\varpropto"),Le(Re,Be,Ge,"◀","\\blacktriangleleft"),Le(Re,Be,Ge,"∴","\\therefore",!0),Le(Re,Be,Ge,"∍","\\backepsilon"),Le(Re,Be,Ge,"▶","\\blacktriangleright"),Le(Re,Be,Ge,"∵","\\because",!0),Le(Re,Be,Ge,"⋘","\\llless"),Le(Re,Be,Ge,"⋙","\\gggtr"),Le(Re,Be,qe,"⊲","\\lhd"),Le(Re,Be,qe,"⊳","\\rhd"),Le(Re,Be,Ge,"≂","\\eqsim",!0),Le(Re,Ie,Ge,"⋈","\\Join"),Le(Re,Be,Ge,"≑","\\Doteq",!0),Le(Re,Be,qe,"∔","\\dotplus",!0),Le(Re,Be,qe,"∖","\\smallsetminus"),Le(Re,Be,qe,"⋒","\\Cap",!0),Le(Re,Be,qe,"⋓","\\Cup",!0),Le(Re,Be,qe,"⩞","\\doublebarwedge",!0),Le(Re,Be,qe,"⊟","\\boxminus",!0),Le(Re,Be,qe,"⊞","\\boxplus",!0),Le(Re,Be,qe,"⋇","\\divideontimes",!0),Le(Re,Be,qe,"⋉","\\ltimes",!0),Le(Re,Be,qe,"⋊","\\rtimes",!0),Le(Re,Be,qe,"⋋","\\leftthreetimes",!0),Le(Re,Be,qe,"⋌","\\rightthreetimes",!0),Le(Re,Be,qe,"⋏","\\curlywedge",!0),Le(Re,Be,qe,"⋎","\\curlyvee",!0),Le(Re,Be,qe,"⊝","\\circleddash",!0),Le(Re,Be,qe,"⊛","\\circledast",!0),Le(Re,Be,qe,"⋅","\\centerdot"),Le(Re,Be,qe,"⊺","\\intercal",!0),Le(Re,Be,qe,"⋒","\\doublecap"),Le(Re,Be,qe,"⋓","\\doublecup"),Le(Re,Be,qe,"⊠","\\boxtimes",!0),Le(Re,Be,Ge,"⇢","\\dashrightarrow",!0),Le(Re,Be,Ge,"⇠","\\dashleftarrow",!0),Le(Re,Be,Ge,"⇇","\\leftleftarrows",!0),Le(Re,Be,Ge,"⇆","\\leftrightarrows",!0),Le(Re,Be,Ge,"⇚","\\Lleftarrow",!0),Le(Re,Be,Ge,"↞","\\twoheadleftarrow",!0),Le(Re,Be,Ge,"↢","\\leftarrowtail",!0),Le(Re,Be,Ge,"↫","\\looparrowleft",!0),Le(Re,Be,Ge,"⇋","\\leftrightharpoons",!0),Le(Re,Be,Ge,"↶","\\curvearrowleft",!0),Le(Re,Be,Ge,"↺","\\circlearrowleft",!0),Le(Re,Be,Ge,"↰","\\Lsh",!0),Le(Re,Be,Ge,"⇈","\\upuparrows",!0),Le(Re,Be,Ge,"↿","\\upharpoonleft",!0),Le(Re,Be,Ge,"⇃","\\downharpoonleft",!0),Le(Re,Ie,Ge,"⊶","\\origof",!0),Le(Re,Ie,Ge,"⊷","\\imageof",!0),Le(Re,Be,Ge,"⊸","\\multimap",!0),Le(Re,Be,Ge,"↭","\\leftrightsquigarrow",!0),Le(Re,Be,Ge,"⇉","\\rightrightarrows",!0),Le(Re,Be,Ge,"⇄","\\rightleftarrows",!0),Le(Re,Be,Ge,"↠","\\twoheadrightarrow",!0),Le(Re,Be,Ge,"↣","\\rightarrowtail",!0),Le(Re,Be,Ge,"↬","\\looparrowright",!0),Le(Re,Be,Ge,"↷","\\curvearrowright",!0),Le(Re,Be,Ge,"↻","\\circlearrowright",!0),Le(Re,Be,Ge,"↱","\\Rsh",!0),Le(Re,Be,Ge,"⇊","\\downdownarrows",!0),Le(Re,Be,Ge,"↾","\\upharpoonright",!0),Le(Re,Be,Ge,"⇂","\\downharpoonright",!0),Le(Re,Be,Ge,"⇝","\\rightsquigarrow",!0),Le(Re,Be,Ge,"⇝","\\leadsto"),Le(Re,Be,Ge,"⇛","\\Rrightarrow",!0),Le(Re,Be,Ge,"↾","\\restriction"),Le(Re,Ie,Ke,"‘","`"),Le(Re,Ie,Ke,"$","\\$"),Le(Fe,Ie,Ke,"$","\\$"),Le(Fe,Ie,Ke,"$","\\textdollar"),Le(Re,Ie,Ke,"%","\\%"),Le(Fe,Ie,Ke,"%","\\%"),Le(Re,Ie,Ke,"_","\\_"),Le(Fe,Ie,Ke,"_","\\_"),Le(Fe,Ie,Ke,"_","\\textunderscore"),Le(Re,Ie,Ke,"∠","\\angle",!0),Le(Re,Ie,Ke,"∞","\\infty",!0),Le(Re,Ie,Ke,"′","\\prime"),Le(Re,Ie,Ke,"△","\\triangle"),Le(Re,Ie,Ke,"Γ","\\Gamma",!0),Le(Re,Ie,Ke,"Δ","\\Delta",!0),Le(Re,Ie,Ke,"Θ","\\Theta",!0),Le(Re,Ie,Ke,"Λ","\\Lambda",!0),Le(Re,Ie,Ke,"Ξ","\\Xi",!0),Le(Re,Ie,Ke,"Π","\\Pi",!0),Le(Re,Ie,Ke,"Σ","\\Sigma",!0),Le(Re,Ie,Ke,"Υ","\\Upsilon",!0),Le(Re,Ie,Ke,"Φ","\\Phi",!0),Le(Re,Ie,Ke,"Ψ","\\Psi",!0),Le(Re,Ie,Ke,"Ω","\\Omega",!0),Le(Re,Ie,Ke,"A","Α"),Le(Re,Ie,Ke,"B","Β"),Le(Re,Ie,Ke,"E","Ε"),Le(Re,Ie,Ke,"Z","Ζ"),Le(Re,Ie,Ke,"H","Η"),Le(Re,Ie,Ke,"I","Ι"),Le(Re,Ie,Ke,"K","Κ"),Le(Re,Ie,Ke,"M","Μ"),Le(Re,Ie,Ke,"N","Ν"),Le(Re,Ie,Ke,"O","Ο"),Le(Re,Ie,Ke,"P","Ρ"),Le(Re,Ie,Ke,"T","Τ"),Le(Re,Ie,Ke,"X","Χ"),Le(Re,Ie,Ke,"¬","\\neg",!0),Le(Re,Ie,Ke,"¬","\\lnot"),Le(Re,Ie,Ke,"⊤","\\top"),Le(Re,Ie,Ke,"⊥","\\bot"),Le(Re,Ie,Ke,"∅","\\emptyset"),Le(Re,Be,Ke,"∅","\\varnothing"),Le(Re,Ie,Xe,"α","\\alpha",!0),Le(Re,Ie,Xe,"β","\\beta",!0),Le(Re,Ie,Xe,"γ","\\gamma",!0),Le(Re,Ie,Xe,"δ","\\delta",!0),Le(Re,Ie,Xe,"ϵ","\\epsilon",!0),Le(Re,Ie,Xe,"ζ","\\zeta",!0),Le(Re,Ie,Xe,"η","\\eta",!0),Le(Re,Ie,Xe,"θ","\\theta",!0),Le(Re,Ie,Xe,"ι","\\iota",!0),Le(Re,Ie,Xe,"κ","\\kappa",!0),Le(Re,Ie,Xe,"λ","\\lambda",!0),Le(Re,Ie,Xe,"μ","\\mu",!0),Le(Re,Ie,Xe,"ν","\\nu",!0),Le(Re,Ie,Xe,"ξ","\\xi",!0),Le(Re,Ie,Xe,"ο","\\omicron",!0),Le(Re,Ie,Xe,"π","\\pi",!0),Le(Re,Ie,Xe,"ρ","\\rho",!0),Le(Re,Ie,Xe,"σ","\\sigma",!0),Le(Re,Ie,Xe,"τ","\\tau",!0),Le(Re,Ie,Xe,"υ","\\upsilon",!0),Le(Re,Ie,Xe,"ϕ","\\phi",!0),Le(Re,Ie,Xe,"χ","\\chi",!0),Le(Re,Ie,Xe,"ψ","\\psi",!0),Le(Re,Ie,Xe,"ω","\\omega",!0),Le(Re,Ie,Xe,"ε","\\varepsilon",!0),Le(Re,Ie,Xe,"ϑ","\\vartheta",!0),Le(Re,Ie,Xe,"ϖ","\\varpi",!0),Le(Re,Ie,Xe,"ϱ","\\varrho",!0),Le(Re,Ie,Xe,"ς","\\varsigma",!0),Le(Re,Ie,Xe,"φ","\\varphi",!0),Le(Re,Ie,qe,"∗","*",!0),Le(Re,Ie,qe,"+","+"),Le(Re,Ie,qe,"−","-",!0),Le(Re,Ie,qe,"⋅","\\cdot",!0),Le(Re,Ie,qe,"∘","\\circ",!0),Le(Re,Ie,qe,"÷","\\div",!0),Le(Re,Ie,qe,"±","\\pm",!0),Le(Re,Ie,qe,"×","\\times",!0),Le(Re,Ie,qe,"∩","\\cap",!0),Le(Re,Ie,qe,"∪","\\cup",!0),Le(Re,Ie,qe,"∖","\\setminus",!0),Le(Re,Ie,qe,"∧","\\land"),Le(Re,Ie,qe,"∨","\\lor"),Le(Re,Ie,qe,"∧","\\wedge",!0),Le(Re,Ie,qe,"∨","\\vee",!0),Le(Re,Ie,Ke,"√","\\surd"),Le(Re,Ie,Ze,"⟨","\\langle",!0),Le(Re,Ie,Ze,"∣","\\lvert"),Le(Re,Ie,Ze,"∥","\\lVert"),Le(Re,Ie,He,"?","?"),Le(Re,Ie,He,"!","!"),Le(Re,Ie,He,"⟩","\\rangle",!0),Le(Re,Ie,He,"∣","\\rvert"),Le(Re,Ie,He,"∥","\\rVert"),Le(Re,Ie,Ge,"=","="),Le(Re,Ie,Ge,":",":"),Le(Re,Ie,Ge,"≈","\\approx",!0),Le(Re,Ie,Ge,"≅","\\cong",!0),Le(Re,Ie,Ge,"≥","\\ge"),Le(Re,Ie,Ge,"≥","\\geq",!0),Le(Re,Ie,Ge,"←","\\gets"),Le(Re,Ie,Ge,">","\\gt",!0),Le(Re,Ie,Ge,"∈","\\in",!0),Le(Re,Ie,Ge,"","\\@not"),Le(Re,Ie,Ge,"⊂","\\subset",!0),Le(Re,Ie,Ge,"⊃","\\supset",!0),Le(Re,Ie,Ge,"⊆","\\subseteq",!0),Le(Re,Ie,Ge,"⊇","\\supseteq",!0),Le(Re,Be,Ge,"⊈","\\nsubseteq",!0),Le(Re,Be,Ge,"⊉","\\nsupseteq",!0),Le(Re,Ie,Ge,"⊨","\\models"),Le(Re,Ie,Ge,"←","\\leftarrow",!0),Le(Re,Ie,Ge,"≤","\\le"),Le(Re,Ie,Ge,"≤","\\leq",!0),Le(Re,Ie,Ge,"<","\\lt",!0),Le(Re,Ie,Ge,"→","\\rightarrow",!0),Le(Re,Ie,Ge,"→","\\to"),Le(Re,Be,Ge,"≱","\\ngeq",!0),Le(Re,Be,Ge,"≰","\\nleq",!0),Le(Re,Ie,Ye," ","\\ "),Le(Re,Ie,Ye," ","\\space"),Le(Re,Ie,Ye," ","\\nobreakspace"),Le(Fe,Ie,Ye," ","\\ "),Le(Fe,Ie,Ye," "," "),Le(Fe,Ie,Ye," ","\\space"),Le(Fe,Ie,Ye," ","\\nobreakspace"),Le(Re,Ie,Ye,null,"\\nobreak"),Le(Re,Ie,Ye,null,"\\allowbreak"),Le(Re,Ie,Ue,",",","),Le(Re,Ie,Ue,";",";"),Le(Re,Be,qe,"⊼","\\barwedge",!0),Le(Re,Be,qe,"⊻","\\veebar",!0),Le(Re,Ie,qe,"⊙","\\odot",!0),Le(Re,Ie,qe,"⊕","\\oplus",!0),Le(Re,Ie,qe,"⊗","\\otimes",!0),Le(Re,Ie,Ke,"∂","\\partial",!0),Le(Re,Ie,qe,"⊘","\\oslash",!0),Le(Re,Be,qe,"⊚","\\circledcirc",!0),Le(Re,Be,qe,"⊡","\\boxdot",!0),Le(Re,Ie,qe,"△","\\bigtriangleup"),Le(Re,Ie,qe,"▽","\\bigtriangledown"),Le(Re,Ie,qe,"†","\\dagger"),Le(Re,Ie,qe,"⋄","\\diamond"),Le(Re,Ie,qe,"⋆","\\star"),Le(Re,Ie,qe,"◃","\\triangleleft"),Le(Re,Ie,qe,"▹","\\triangleright"),Le(Re,Ie,Ze,"{","\\{"),Le(Fe,Ie,Ke,"{","\\{"),Le(Fe,Ie,Ke,"{","\\textbraceleft"),Le(Re,Ie,He,"}","\\}"),Le(Fe,Ie,Ke,"}","\\}"),Le(Fe,Ie,Ke,"}","\\textbraceright"),Le(Re,Ie,Ze,"{","\\lbrace"),Le(Re,Ie,He,"}","\\rbrace"),Le(Re,Ie,Ze,"[","\\lbrack",!0),Le(Fe,Ie,Ke,"[","\\lbrack",!0),Le(Re,Ie,He,"]","\\rbrack",!0),Le(Fe,Ie,Ke,"]","\\rbrack",!0),Le(Re,Ie,Ze,"(","\\lparen",!0),Le(Re,Ie,He,")","\\rparen",!0),Le(Fe,Ie,Ke,"<","\\textless",!0),Le(Fe,Ie,Ke,">","\\textgreater",!0),Le(Re,Ie,Ze,"⌊","\\lfloor",!0),Le(Re,Ie,He,"⌋","\\rfloor",!0),Le(Re,Ie,Ze,"⌈","\\lceil",!0),Le(Re,Ie,He,"⌉","\\rceil",!0),Le(Re,Ie,Ke,"\\","\\backslash"),Le(Re,Ie,Ke,"∣","|"),Le(Re,Ie,Ke,"∣","\\vert"),Le(Fe,Ie,Ke,"|","\\textbar",!0),Le(Re,Ie,Ke,"∥","\\|"),Le(Re,Ie,Ke,"∥","\\Vert"),Le(Fe,Ie,Ke,"∥","\\textbardbl"),Le(Fe,Ie,Ke,"~","\\textasciitilde"),Le(Fe,Ie,Ke,"\\","\\textbackslash"),Le(Fe,Ie,Ke,"^","\\textasciicircum"),Le(Re,Ie,Ge,"↑","\\uparrow",!0),Le(Re,Ie,Ge,"⇑","\\Uparrow",!0),Le(Re,Ie,Ge,"↓","\\downarrow",!0),Le(Re,Ie,Ge,"⇓","\\Downarrow",!0),Le(Re,Ie,Ge,"↕","\\updownarrow",!0),Le(Re,Ie,Ge,"⇕","\\Updownarrow",!0),Le(Re,Ie,Ve,"∐","\\coprod"),Le(Re,Ie,Ve,"⋁","\\bigvee"),Le(Re,Ie,Ve,"⋀","\\bigwedge"),Le(Re,Ie,Ve,"⨄","\\biguplus"),Le(Re,Ie,Ve,"⋂","\\bigcap"),Le(Re,Ie,Ve,"⋃","\\bigcup"),Le(Re,Ie,Ve,"∫","\\int"),Le(Re,Ie,Ve,"∫","\\intop"),Le(Re,Ie,Ve,"∬","\\iint"),Le(Re,Ie,Ve,"∭","\\iiint"),Le(Re,Ie,Ve,"∏","\\prod"),Le(Re,Ie,Ve,"∑","\\sum"),Le(Re,Ie,Ve,"⨂","\\bigotimes"),Le(Re,Ie,Ve,"⨁","\\bigoplus"),Le(Re,Ie,Ve,"⨀","\\bigodot"),Le(Re,Ie,Ve,"∮","\\oint"),Le(Re,Ie,Ve,"∯","\\oiint"),Le(Re,Ie,Ve,"∰","\\oiiint"),Le(Re,Ie,Ve,"⨆","\\bigsqcup"),Le(Re,Ie,Ve,"∫","\\smallint"),Le(Fe,Ie,We,"…","\\textellipsis"),Le(Re,Ie,We,"…","\\mathellipsis"),Le(Fe,Ie,We,"…","\\ldots",!0),Le(Re,Ie,We,"…","\\ldots",!0),Le(Re,Ie,We,"⋯","\\@cdots",!0),Le(Re,Ie,We,"⋱","\\ddots",!0),Le(Re,Ie,Ke,"⋮","\\varvdots"),Le(Re,Ie,je,"ˊ","\\acute"),Le(Re,Ie,je,"ˋ","\\grave"),Le(Re,Ie,je,"¨","\\ddot"),Le(Re,Ie,je,"~","\\tilde"),Le(Re,Ie,je,"ˉ","\\bar"),Le(Re,Ie,je,"˘","\\breve"),Le(Re,Ie,je,"ˇ","\\check"),Le(Re,Ie,je,"^","\\hat"),Le(Re,Ie,je,"⃗","\\vec"),Le(Re,Ie,je,"˙","\\dot"),Le(Re,Ie,je,"˚","\\mathring"),Le(Re,Ie,Xe,"","\\@imath"),Le(Re,Ie,Xe,"","\\@jmath"),Le(Re,Ie,Ke,"ı","ı"),Le(Re,Ie,Ke,"ȷ","ȷ"),Le(Fe,Ie,Ke,"ı","\\i",!0),Le(Fe,Ie,Ke,"ȷ","\\j",!0),Le(Fe,Ie,Ke,"ß","\\ss",!0),Le(Fe,Ie,Ke,"æ","\\ae",!0),Le(Fe,Ie,Ke,"œ","\\oe",!0),Le(Fe,Ie,Ke,"ø","\\o",!0),Le(Fe,Ie,Ke,"Æ","\\AE",!0),Le(Fe,Ie,Ke,"Œ","\\OE",!0),Le(Fe,Ie,Ke,"Ø","\\O",!0),Le(Fe,Ie,je,"ˊ","\\'"),Le(Fe,Ie,je,"ˋ","\\`"),Le(Fe,Ie,je,"ˆ","\\^"),Le(Fe,Ie,je,"˜","\\~"),Le(Fe,Ie,je,"ˉ","\\="),Le(Fe,Ie,je,"˘","\\u"),Le(Fe,Ie,je,"˙","\\."),Le(Fe,Ie,je,"¸","\\c"),Le(Fe,Ie,je,"˚","\\r"),Le(Fe,Ie,je,"ˇ","\\v"),Le(Fe,Ie,je,"¨",'\\"'),Le(Fe,Ie,je,"˝","\\H"),Le(Fe,Ie,je,"◯","\\textcircled");var Je={"--":!0,"---":!0,"``":!0,"''":!0};Le(Fe,Ie,Ke,"–","--",!0),Le(Fe,Ie,Ke,"–","\\textendash"),Le(Fe,Ie,Ke,"—","---",!0),Le(Fe,Ie,Ke,"—","\\textemdash"),Le(Fe,Ie,Ke,"‘","`",!0),Le(Fe,Ie,Ke,"‘","\\textquoteleft"),Le(Fe,Ie,Ke,"’","'",!0),Le(Fe,Ie,Ke,"’","\\textquoteright"),Le(Fe,Ie,Ke,"“","``",!0),Le(Fe,Ie,Ke,"“","\\textquotedblleft"),Le(Fe,Ie,Ke,"”","''",!0),Le(Fe,Ie,Ke,"”","\\textquotedblright"),Le(Re,Ie,Ke,"°","\\degree",!0),Le(Fe,Ie,Ke,"°","\\degree"),Le(Fe,Ie,Ke,"°","\\textdegree",!0),Le(Re,Ie,Ke,"£","\\pounds"),Le(Re,Ie,Ke,"£","\\mathsterling",!0),Le(Fe,Ie,Ke,"£","\\pounds"),Le(Fe,Ie,Ke,"£","\\textsterling",!0),Le(Re,Be,Ke,"✠","\\maltese"),Le(Fe,Be,Ke,"✠","\\maltese");for(var Qe='0123456789/@."',_e=0;_e0)return vt(r,s,n,t,i.concat(l));if(a){var u,h;if("boldsymbol"===a){var d=yt(r,n,t,i,A);u=d.fontName,h=[d.fontClass]}else o?(u=Rt[a].fontName,h=[a]):(u=Lt(a,t.fontWeight,t.fontShape),h=[a,t.fontWeight,t.fontShape]);if(gt(r,u,n).metrics)return vt(r,u,n,t,i.concat(h));if(Je.hasOwnProperty(r)&&"Typewriter"===u.slice(0,10)){for(var f=[],p=0;pt&&(t=i.height),i.depth>A&&(A=i.depth),i.maxFontSize>n&&(n=i.maxFontSize)}e.height=t,e.depth=A,e.maxFontSize=n},Nt=function(e,t,A,n){var r=new ye(e,t,A,n);return Tt(r),r},Ct=function(e,t,A,n){return new ye(e,t,A,n)},Mt=function(e,t,A){var n=Nt([e],[],t);return n.height=Math.max(A||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=pe(n.height),n.maxFontSize=1,n},Et=function(e,t,A,n){var r=new we(e,t,A,n);return Tt(r),r},St=function(e){var t=new _(e);return Tt(t),t},zt=function(e,t){return e instanceof _?Nt([],[e],t):e},Ot=function(e){if("individualShift"===e.positionType){for(var t=e.children,A=[t[0]],n=-t[0].shift-t[0].elem.depth,r=n,i=1;i0&&(o.push(lA(a,t)),a=[]),o.push(r[s]));a.length>0&&o.push(lA(a,t)),A?(i=lA(AA(A,t,!0)),i.classes=["tag"],o.push(i)):n&&o.push(n);var c=Qt(["katex-html"],o);if(c.setAttribute("aria-hidden","true"),i){var u=i.children[0];u.style.height=pe(c.height+c.depth),c.depth&&(u.style.verticalAlign=pe(-c.depth))}return c}function uA(e){return new _(e)}var hA=function(){function e(e,t,A){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=A||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.getAttribute=function(e){return this.attributes[e]},t.toNode=function(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=me(this.classes));for(var A=0;A0&&(e+=' class ="'+p.escape(me(this.classes))+'"'),e+=">";for(var A=0;A",e},t.toText=function(){return this.children.map((function(e){return e.toText()})).join("")},e}(),dA=function(){function e(e){this.text=void 0,this.text=e}var t=e.prototype;return t.toNode=function(){return document.createTextNode(this.text)},t.toMarkup=function(){return p.escape(this.toText())},t.toText=function(){return this.text},e}(),fA=function(){function e(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?"  ":e>=-.05556&&e<=-.05555?" ⁣":e>=-.1667&&e<=-.1666?" ⁣":e>=-.2223&&e<=-.2222?" ⁣":e>=-.2778&&e<=-.2777?" ⁣":null}var t=e.prototype;return t.toNode=function(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",pe(this.width)),e},t.toMarkup=function(){return this.character?""+this.character+"":''},t.toText=function(){return this.character?this.character:" "},e}(),pA={MathNode:hA,TextNode:dA,SpaceNode:fA,newDocumentFragment:uA},mA=function(e,t,A){return!Pe[t][e]||!Pe[t][e].replace||55349===e.charCodeAt(0)||Je.hasOwnProperty(e)&&A&&(A.fontFamily&&"tt"===A.fontFamily.slice(4,6)||A.font&&"tt"===A.font.slice(4,6))||(e=Pe[t][e].replace),new pA.TextNode(e)},gA=function(e){return 1===e.length?e[0]:new pA.MathNode("mrow",e)},vA=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var A=t.font;if(!A||"mathnormal"===A)return null;var n=e.mode;if("mathit"===A)return"italic";if("boldsymbol"===A)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===A)return"bold";if("mathbb"===A)return"double-struck";if("mathfrak"===A)return"fraktur";if("mathscr"===A||"mathcal"===A)return"script";if("mathsf"===A)return"sans-serif";if("mathtt"===A)return"monospace";var r=e.text;if(p.contains(["\\imath","\\jmath"],r))return null;Pe[n][r]&&Pe[n][r].replace&&(r=Pe[n][r].replace);var i=Bt.fontMap[A].fontName;return ne(r,i,n)?Bt.fontMap[A].variant:null},bA=function(e,t,A){if(1===e.length){var n=wA(e[0],t);return A&&n instanceof hA&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var r,i=[],o=0;o0&&(d.text=d.text.slice(0,1)+"̸"+d.text.slice(1),i.pop())}}}i.push(a),r=a}return i},yA=function(e,t,A){return gA(bA(e,t,A))},wA=function(e,t){if(!e)return new pA.MathNode("mrow");if(Ut[e.type]){var A=Ut[e.type](e,t);return A}throw new n("Got group of unknown type: '"+e.type+"'")};function xA(e,t,A,n,r){var i,o=bA(e,A);i=1===o.length&&o[0]instanceof hA&&p.contains(["mrow","mtable"],o[0].type)?o[0]:new pA.MathNode("mrow",o);var a=new pA.MathNode("annotation",[new pA.TextNode(t)]);a.setAttribute("encoding","application/x-tex");var s=new pA.MathNode("semantics",[i,a]),l=new pA.MathNode("math",[s]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&l.setAttribute("display","block");var c=r?"katex":"katex-mathml";return Bt.makeSpan([c],[l])}var kA=function(e){return new ce({style:e.displayMode?R.DISPLAY:R.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},TA=function(e,t){if(t.displayMode){var A=["katex-display"];t.leqno&&A.push("leqno"),t.fleqn&&A.push("fleqn"),e=Bt.makeSpan(A,[e])}return e},NA=function(e,t,A){var n,r=kA(A);if("mathml"===A.output)return xA(e,t,r,A.displayMode,!0);if("html"===A.output){var i=cA(e,r);n=Bt.makeSpan(["katex"],[i])}else{var o=xA(e,t,r,A.displayMode,!1),a=cA(e,r);n=Bt.makeSpan(["katex"],[o,a])}return TA(n,A)},CA=function(e,t,A){var n=kA(A),r=cA(e,n),i=Bt.makeSpan(["katex"],[r]);return TA(i,A)},MA={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},EA=function(e){var t=new pA.MathNode("mo",[new pA.TextNode(MA[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},SA={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},zA=function(e){return"ordgroup"===e.type?e.body.length:1},OA=function(e,t){function A(){var A=4e5,n=e.label.slice(1);if(p.contains(["widehat","widecheck","widetilde","utilde"],n)){var r,i,o,a=e,s=zA(a.base);if(s>5)"widehat"===n||"widecheck"===n?(r=420,A=2364,o=.42,i=n+"4"):(r=312,A=2340,o=.34,i="tilde4");else{var l=[1,1,2,2,3,3][s];"widehat"===n||"widecheck"===n?(A=[0,1062,2364,2364,2364][l],r=[0,239,300,360,420][l],o=[0,.24,.3,.3,.36,.42][l],i=n+l):(A=[0,600,1033,2339,2340][l],r=[0,260,286,306,312][l],o=[0,.26,.286,.3,.306,.34][l],i="tilde"+l)}var c=new Ce(i),u=new Ne([c],{width:"100%",height:pe(o),viewBox:"0 0 "+A+" "+r,preserveAspectRatio:"none"});return{span:Bt.makeSvgSpan([],[u],t),minWidth:0,height:o}}var h,d,f=[],m=SA[n],g=m[0],v=m[1],b=m[2],y=b/1e3,w=g.length;if(1===w){var x=m[3];h=["hide-tail"],d=[x]}else if(2===w)h=["halfarrow-left","halfarrow-right"],d=["xMinYMin","xMaxYMin"];else{if(3!==w)throw new Error("Correct katexImagesData or update code here to support\n "+w+" children.");h=["brace-left","brace-center","brace-right"],d=["xMinYMin","xMidYMin","xMaxYMin"]}for(var k=0;k0&&(r.style.minWidth=pe(i)),r},DA=function(e,t,A,n,r){var i,o=e.height+e.depth+A+n;if(/fbox|color|angl/.test(t)){if(i=Bt.makeSpan(["stretchy",t],[],r),"fbox"===t){var a=r.color&&r.getColor();a&&(i.style.borderColor=a)}}else{var s=[];/^[bx]cancel$/.test(t)&&s.push(new Me({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&s.push(new Me({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var l=new Ne(s,{width:"100%",height:pe(o)});i=Bt.makeSvgSpan([],[l],r)}return i.height=o,i.style.height=pe(o),i},PA={encloseSpan:DA,mathMLnode:EA,svgSpan:OA};function LA(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function RA(e){var t=FA(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function FA(e){return e&&("atom"===e.type||Oe.hasOwnProperty(e.type))?e:null}var IA=function(e,t){var A,n,r;e&&"supsub"===e.type?(n=LA(e.base,"accent"),A=n.base,e.base=A,r=Se(sA(e,t)),e.base=n):(n=LA(e,"accent"),A=n.base);var i=sA(A,t.havingCrampedStyle()),o=n.isShifty&&p.isCharacterBox(A),a=0;if(o){var s=p.getBaseElem(A),l=sA(s,t.havingCrampedStyle());a=Ee(l).skew}var c,u="\\c"===n.label,h=u?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight);if(n.isStretchy)c=PA.svgSpan(n,t),c=Bt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:c,wrapperClasses:["svg-align"],wrapperStyle:a>0?{width:"calc(100% - "+pe(2*a)+")",marginLeft:pe(2*a)}:void 0}]},t);else{var d,f;"\\vec"===n.label?(d=Bt.staticSvg("vec",t),f=Bt.svgData.vec[1]):(d=Bt.makeOrd({mode:n.mode,text:n.label},t,"textord"),d=Ee(d),d.italic=0,f=d.width,u&&(h+=d.depth)),c=Bt.makeSpan(["accent-body"],[d]);var m="\\textcircled"===n.label;m&&(c.classes.push("accent-full"),h=i.height);var g=a;m||(g-=f/2),c.style.left=pe(g),"\\textcircled"===n.label&&(c.style.top=".2em"),c=Bt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-h},{type:"elem",elem:c}]},t)}var v=Bt.makeSpan(["mord","accent"],[c],t);return r?(r.children[0]=v,r.height=Math.max(v.height,r.height),r.classes[0]="mord",r):v},BA=function(e,t){var A=e.isStretchy?PA.mathMLnode(e.label):new pA.MathNode("mo",[mA(e.label,e.mode)]),n=new pA.MathNode("mover",[wA(e.base,t),A]);return n.setAttribute("accent","true"),n},jA=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((function(e){return"\\"+e})).join("|"));Gt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(e,t){var A=Kt(t[0]),n=!jA.test(e.funcName),r=!n||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:r,base:A}},htmlBuilder:IA,mathmlBuilder:BA}),Gt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:function(e,t){var A=t[0],n=e.parser.mode;return"math"===n&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:A}},htmlBuilder:IA,mathmlBuilder:BA}),Gt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(e,t){var A=e.parser,n=e.funcName,r=t[0];return{type:"accentUnder",mode:A.mode,label:n,base:r}},htmlBuilder:function(e,t){var A=sA(e.base,t),n=PA.svgSpan(e,t),r="\\utilde"===e.label?.12:0,i=Bt.makeVList({positionType:"top",positionData:A.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:r},{type:"elem",elem:A}]},t);return Bt.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:function(e,t){var A=PA.mathMLnode(e.label),n=new pA.MathNode("munder",[wA(e.base,t),A]);return n.setAttribute("accentunder","true"),n}});var qA=function(e){var t=new pA.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Gt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,A){var n=e.parser,r=e.funcName;return{type:"xArrow",mode:n.mode,label:r,body:t[0],below:A[0]}},htmlBuilder:function(e,t){var A,n=t.style,r=t.havingStyle(n.sup()),i=Bt.wrapFragment(sA(e.body,r,t),t),o="\\x"===e.label.slice(0,2)?"x":"cd";i.classes.push(o+"-arrow-pad"),e.below&&(r=t.havingStyle(n.sub()),A=Bt.wrapFragment(sA(e.below,r,t),t),A.classes.push(o+"-arrow-pad"));var a,s=PA.svgSpan(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,c=-t.fontMetrics().axisHeight-.5*s.height-.111;if((i.depth>.25||"\\xleftequilibrium"===e.label)&&(c-=i.depth),A){var u=-t.fontMetrics().axisHeight+A.height+.5*s.height+.111;a=Bt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:s,shift:l},{type:"elem",elem:A,shift:u}]},t)}else a=Bt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:s,shift:l}]},t);return a.children[0].children[0].children[1].classes.push("svg-align"),Bt.makeSpan(["mrel","x-arrow"],[a],t)},mathmlBuilder:function(e,t){var A,n=PA.mathMLnode(e.label);if(n.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var r=qA(wA(e.body,t));if(e.below){var i=qA(wA(e.below,t));A=new pA.MathNode("munderover",[n,i,r])}else A=new pA.MathNode("mover",[n,r])}else if(e.below){var o=qA(wA(e.below,t));A=new pA.MathNode("munder",[n,o])}else A=qA(),A=new pA.MathNode("mover",[n,A]);return A}});var HA=Bt.makeSpan;function WA(e,t){var A=AA(e.body,t,!0);return HA([e.mclass],A,t)}function XA(e,t){var A,n=bA(e.body,t);return"minner"===e.mclass?A=new pA.MathNode("mpadded",n):"mord"===e.mclass?e.isCharacterBox?(A=n[0],A.type="mi"):A=new pA.MathNode("mi",n):(e.isCharacterBox?(A=n[0],A.type="mo"):A=new pA.MathNode("mo",n),"mbin"===e.mclass?(A.attributes.lspace="0.22em",A.attributes.rspace="0.22em"):"mpunct"===e.mclass?(A.attributes.lspace="0em",A.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(A.attributes.lspace="0em",A.attributes.rspace="0em"):"minner"===e.mclass&&(A.attributes.lspace="0.0556em",A.attributes.width="+0.1111em")),A}Gt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler:function(e,t){var A=e.parser,n=e.funcName,r=t[0];return{type:"mclass",mode:A.mode,mclass:"m"+n.slice(5),body:Jt(r),isCharacterBox:p.isCharacterBox(r)}},htmlBuilder:WA,mathmlBuilder:XA});var VA=function(e){var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};Gt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(e,t){var A=e.parser;return{type:"mclass",mode:A.mode,mclass:VA(t[0]),body:Jt(t[1]),isCharacterBox:p.isCharacterBox(t[1])}}}),Gt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(e,t){var A,n=e.parser,r=e.funcName,i=t[1],o=t[0];A="\\stackrel"!==r?VA(i):"mrel";var a={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==r,body:Jt(i)},s={type:"supsub",mode:o.mode,base:a,sup:"\\underset"===r?null:o,sub:"\\underset"===r?o:null};return{type:"mclass",mode:n.mode,mclass:A,body:[s],isCharacterBox:p.isCharacterBox(s)}},htmlBuilder:WA,mathmlBuilder:XA}),Gt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var A=e.parser;return{type:"pmb",mode:A.mode,mclass:VA(t[0]),body:Jt(t[0])}},htmlBuilder:function(e,t){var A=AA(e.body,t,!0),n=Bt.makeSpan([e.mclass],A,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder:function(e,t){var A=bA(e.body,t),n=new pA.MathNode("mstyle",A);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var ZA={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},UA=function(){return{type:"styling",body:[],mode:"math",style:"display"}},GA=function(e){return"textord"===e.type&&"@"===e.text},YA=function(e,t){return("mathord"===e.type||"atom"===e.type)&&e.text===t};function KA(e,t,A){var n=ZA[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return A.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var r=A.callFunction("\\\\cdleft",[t[0]],[]),i={type:"atom",text:n,mode:"math",family:"rel"},o=A.callFunction("\\Big",[i],[]),a=A.callFunction("\\\\cdright",[t[1]],[]),s={type:"ordgroup",mode:"math",body:[r,o,a]};return A.callFunction("\\\\cdparent",[s],[]);case"\\\\cdlongequal":return A.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":var l={type:"textord",text:"\\Vert",mode:"math"};return A.callFunction("\\Big",[l],[]);default:return{type:"textord",text:" ",mode:"math"}}}function JA(e){var t=[];e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();while(1){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var A=e.fetch().text;if("&"!==A&&"\\\\"!==A){if("\\end"===A){0===t[t.length-1].length&&t.pop();break}throw new n("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var r=[],i=[r],o=0;o-1);else{if(!("<>AV".indexOf(c)>-1))throw new n('Expected one of "<>AV=|." after @',a[l]);for(var h=0;h<2;h++){for(var d=!0,f=l+1;f=1114111)throw new n("\\@char with invalid code point "+o);return c<=65535?l=String.fromCharCode(c):(c-=65536,l=String.fromCharCode(55296+(c>>10),56320+(1023&c))),{type:"textord",mode:A.mode,text:l}}});var QA=function(e,t){var A=AA(e.body,t.withColor(e.color),!1);return Bt.makeFragment(A)},_A=function(e,t){var A=bA(e.body,t.withColor(e.color)),n=new pA.MathNode("mstyle",A);return n.setAttribute("mathcolor",e.color),n};Gt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler:function(e,t){var A=e.parser,n=LA(t[0],"color-token").color,r=t[1];return{type:"color",mode:A.mode,color:n,body:Jt(r)}},htmlBuilder:QA,mathmlBuilder:_A}),Gt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler:function(e,t){var A=e.parser,n=e.breakOnTokenText,r=LA(t[0],"color-token").color;A.gullet.macros.set("\\current@color",r);var i=A.parseExpression(!0,n);return{type:"color",mode:A.mode,color:r,body:i}},htmlBuilder:QA,mathmlBuilder:_A}),Gt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler:function(e,t,A){var n=e.parser,r="["===n.gullet.future().text?n.parseSizeGroup(!0):null,i=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:i,size:r&&LA(r,"size").value}},htmlBuilder:function(e,t){var A=Bt.makeSpan(["mspace"],[],t);return e.newLine&&(A.classes.push("newline"),e.size&&(A.style.marginTop=pe(fe(e.size,t)))),A},mathmlBuilder:function(e,t){var A=new pA.MathNode("mspace");return e.newLine&&(A.setAttribute("linebreak","newline"),e.size&&A.setAttribute("height",pe(fe(e.size,t)))),A}});var $A={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},en=function(e){var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new n("Expected a control sequence",e);return t},tn=function(e){var t=e.gullet.popToken();return"="===t.text&&(t=e.gullet.popToken()," "===t.text&&(t=e.gullet.popToken())),t},An=function(e,t,A,n){var r=e.gullet.macros.get(A.text);null==r&&(A.noexpand=!0,r={tokens:[A],numArgs:0,unexpandable:!e.gullet.isExpandable(A.text)}),e.gullet.macros.set(t,r,n)};Gt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,A=e.funcName;t.consumeSpaces();var r=t.fetch();if($A[r.text])return"\\global"!==A&&"\\\\globallong"!==A||(r.text=$A[r.text]),LA(t.parseFunction(),"internal");throw new n("Invalid token after macro prefix",r)}}),Gt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,A=e.funcName,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new n("Expected a control sequence",r);var o,a=0,s=[[]];while("{"!==t.gullet.future().text)if(r=t.gullet.popToken(),"#"===r.text){if("{"===t.gullet.future().text){o=t.gullet.future(),s[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new n('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new n('Argument number "'+r.text+'" out of order');a++,s.push([])}else{if("EOF"===r.text)throw new n("Expected a macro definition");s[a].push(r.text)}var l=t.gullet.consumeArg(),c=l.tokens;return o&&c.unshift(o),"\\edef"!==A&&"\\xdef"!==A||(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(i,{tokens:c,numArgs:a,delimiters:s},A===$A[A]),{type:"internal",mode:t.mode}}}),Gt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,A=e.funcName,n=en(t.gullet.popToken());t.gullet.consumeSpaces();var r=tn(t);return An(t,n,r,"\\\\globallet"===A),{type:"internal",mode:t.mode}}}),Gt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,A=e.funcName,n=en(t.gullet.popToken()),r=t.gullet.popToken(),i=t.gullet.popToken();return An(t,n,i,"\\\\globalfuture"===A),t.gullet.pushToken(i),t.gullet.pushToken(r),{type:"internal",mode:t.mode}}});var nn=function(e,t,A){var n=Pe.math[e]&&Pe.math[e].replace,r=ne(n||e,t,A);if(!r)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return r},rn=function(e,t,A,n){var r=A.havingBaseStyle(t),i=Bt.makeSpan(n.concat(r.sizingClasses(A)),[e],A),o=r.sizeMultiplier/A.sizeMultiplier;return i.height*=o,i.depth*=o,i.maxFontSize=r.sizeMultiplier,i},on=function(e,t,A){var n=t.havingBaseStyle(A),r=(1-t.sizeMultiplier/n.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=pe(r),e.height-=r,e.depth+=r},an=function(e,t,A,n,r,i){var o=Bt.makeSymbol(e,"Main-Regular",r,n),a=rn(o,t,n,i);return A&&on(a,n,t),a},sn=function(e,t,A,n){return Bt.makeSymbol(e,"Size"+t+"-Regular",A,n)},ln=function(e,t,A,n,r,i){var o=sn(e,t,r,n),a=rn(Bt.makeSpan(["delimsizing","size"+t],[o],n),R.TEXT,n,i);return A&&on(a,n,R.TEXT),a},cn=function(e,t,A){var n;n="Size1-Regular"===t?"delim-size1":"delim-size4";var r=Bt.makeSpan(["delimsizinginner",n],[Bt.makeSpan([],[Bt.makeSymbol(e,t,A)])]);return{type:"elem",elem:r}},un=function(e,t,A){var n=$["Size4-Regular"][e.charCodeAt(0)]?$["Size4-Regular"][e.charCodeAt(0)][4]:$["Size1-Regular"][e.charCodeAt(0)][4],r=new Ce("inner",K(e,Math.round(1e3*t))),i=new Ne([r],{width:pe(n),height:pe(t),style:"width:"+pe(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),o=Bt.makeSvgSpan([],[i],A);return o.height=t,o.style.height=pe(t),o.style.width=pe(n),{type:"elem",elem:o}},hn=.008,dn={type:"kern",size:-1*hn},fn=["|","\\lvert","\\rvert","\\vert"],pn=["\\|","\\lVert","\\rVert","\\Vert"],mn=function(e,t,A,n,r,i){var o,a,s,l,c="",u=0;o=s=l=e,a=null;var h="Size1-Regular";"\\uparrow"===e?s=l="⏐":"\\Uparrow"===e?s=l="‖":"\\downarrow"===e?o=s="⏐":"\\Downarrow"===e?o=s="‖":"\\updownarrow"===e?(o="\\uparrow",s="⏐",l="\\downarrow"):"\\Updownarrow"===e?(o="\\Uparrow",s="‖",l="\\Downarrow"):p.contains(fn,e)?(s="∣",c="vert",u=333):p.contains(pn,e)?(s="∥",c="doublevert",u=556):"["===e||"\\lbrack"===e?(o="⎡",s="⎢",l="⎣",h="Size4-Regular",c="lbrack",u=667):"]"===e||"\\rbrack"===e?(o="⎤",s="⎥",l="⎦",h="Size4-Regular",c="rbrack",u=667):"\\lfloor"===e||"⌊"===e?(s=o="⎢",l="⎣",h="Size4-Regular",c="lfloor",u=667):"\\lceil"===e||"⌈"===e?(o="⎡",s=l="⎢",h="Size4-Regular",c="lceil",u=667):"\\rfloor"===e||"⌋"===e?(s=o="⎥",l="⎦",h="Size4-Regular",c="rfloor",u=667):"\\rceil"===e||"⌉"===e?(o="⎤",s=l="⎥",h="Size4-Regular",c="rceil",u=667):"("===e||"\\lparen"===e?(o="⎛",s="⎜",l="⎝",h="Size4-Regular",c="lparen",u=875):")"===e||"\\rparen"===e?(o="⎞",s="⎟",l="⎠",h="Size4-Regular",c="rparen",u=875):"\\{"===e||"\\lbrace"===e?(o="⎧",a="⎨",l="⎩",s="⎪",h="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(o="⎫",a="⎬",l="⎭",s="⎪",h="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(o="⎧",l="⎩",s="⎪",h="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(o="⎫",l="⎭",s="⎪",h="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(o="⎧",l="⎭",s="⎪",h="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(o="⎫",l="⎩",s="⎪",h="Size4-Regular");var d=nn(o,h,r),f=d.height+d.depth,m=nn(s,h,r),g=m.height+m.depth,v=nn(l,h,r),b=v.height+v.depth,y=0,w=1;if(null!==a){var x=nn(a,h,r);y=x.height+x.depth,w=2}var k=f+b+y,T=Math.max(0,Math.ceil((t-k)/(w*g))),N=k+T*w*g,C=n.fontMetrics().axisHeight;A&&(C*=n.sizeMultiplier);var M=N/2-C,E=[];if(c.length>0){var S=N-f-b,z=Math.round(1e3*N),O=Q(c,Math.round(1e3*S)),D=new Ce(c,O),P=(u/1e3).toFixed(3)+"em",L=(z/1e3).toFixed(3)+"em",F=new Ne([D],{width:P,height:L,viewBox:"0 0 "+u+" "+z}),I=Bt.makeSvgSpan([],[F],n);I.height=z/1e3,I.style.width=P,I.style.height=L,E.push({type:"elem",elem:I})}else{if(E.push(cn(l,h,r)),E.push(dn),null===a){var B=N-f-b+2*hn;E.push(un(s,B,n))}else{var j=(N-f-b-y)/2+2*hn;E.push(un(s,j,n)),E.push(dn),E.push(cn(a,h,r)),E.push(dn),E.push(un(s,j,n))}E.push(dn),E.push(cn(o,h,r))}var q=n.havingBaseStyle(R.TEXT),H=Bt.makeVList({positionType:"bottom",positionData:M,children:E},q);return rn(Bt.makeSpan(["delimsizing","mult"],[H],q),R.TEXT,n,i)},gn=80,vn=.08,bn=function(e,t,A,n,r){var i=Y(e,n,A),o=new Ce(e,i),a=new Ne([o],{width:"400em",height:pe(t),viewBox:"0 0 400000 "+A,preserveAspectRatio:"xMinYMin slice"});return Bt.makeSvgSpan(["hide-tail"],[a],r)},yn=function(e,t){var A,n,r=t.havingBaseSizing(),i=zn("\\surd",e*r.sizeMultiplier,En,r),o=r.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),s=0,l=0,c=0;return"small"===i.type?(c=1e3+1e3*a+gn,e<1?o=1:e<1.4&&(o=.7),s=(1+a+vn)/o,l=(1+a)/o,A=bn("sqrtMain",s,c,a,t),A.style.minWidth="0.853em",n=.833/o):"large"===i.type?(c=(1e3+gn)*Tn[i.size],l=(Tn[i.size]+a)/o,s=(Tn[i.size]+a+vn)/o,A=bn("sqrtSize"+i.size,s,c,a,t),A.style.minWidth="1.02em",n=1/o):(s=e+a+vn,l=e+a,c=Math.floor(1e3*e+a)+gn,A=bn("sqrtTall",s,c,a,t),A.style.minWidth="0.742em",n=1.056),A.height=l,A.style.height=pe(s),{span:A,advanceWidth:n,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*o}},wn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],xn=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],kn=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Tn=[0,1.2,1.8,2.4,3],Nn=function(e,t,A,r,i){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),p.contains(wn,e)||p.contains(kn,e))return ln(e,t,!1,A,r,i);if(p.contains(xn,e))return mn(e,Tn[t],!1,A,r,i);throw new n("Illegal delimiter: '"+e+"'")},Cn=[{type:"small",style:R.SCRIPTSCRIPT},{type:"small",style:R.SCRIPT},{type:"small",style:R.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Mn=[{type:"small",style:R.SCRIPTSCRIPT},{type:"small",style:R.SCRIPT},{type:"small",style:R.TEXT},{type:"stack"}],En=[{type:"small",style:R.SCRIPTSCRIPT},{type:"small",style:R.SCRIPT},{type:"small",style:R.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Sn=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},zn=function(e,t,A,n){for(var r=Math.min(2,3-n.style.size),i=r;it)return A[i]}return A[A.length-1]},On=function(e,t,A,n,r,i){var o;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),o=p.contains(kn,e)?Cn:p.contains(wn,e)?En:Mn;var a=zn(e,t,o,n);return"small"===a.type?an(e,a.style,A,n,r,i):"large"===a.type?ln(e,a.size,A,n,r,i):mn(e,t,A,n,r,i)},Dn=function(e,t,A,n,r,i){var o=n.fontMetrics().axisHeight*n.sizeMultiplier,a=901,s=5/n.fontMetrics().ptPerEm,l=Math.max(t-o,A+o),c=Math.max(l/500*a,2*l-s);return On(e,c,!0,n,r,i)},Pn={sqrtImage:yn,sizedDelim:Nn,sizeToMaxHeight:Tn,customSizedDelim:On,leftRightDelim:Dn},Ln={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Rn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Fn(e,t){var A=FA(e);if(A&&p.contains(Rn,A.text))return A;throw new n(A?"Invalid delimiter '"+A.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function In(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Gt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:function(e,t){var A=Fn(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Ln[e.funcName].size,mclass:Ln[e.funcName].mclass,delim:A.text}},htmlBuilder:function(e,t){return"."===e.delim?Bt.makeSpan([e.mclass]):Pn.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];"."!==e.delim&&t.push(mA(e.delim,e.mode));var A=new pA.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?A.setAttribute("fence","true"):A.setAttribute("fence","false"),A.setAttribute("stretchy","true");var n=pe(Pn.sizeToMaxHeight[e.size]);return A.setAttribute("minsize",n),A.setAttribute("maxsize",n),A}}),Gt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:function(e,t){var A=e.parser.gullet.macros.get("\\current@color");if(A&&"string"!==typeof A)throw new n("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Fn(t[0],e).text,color:A}}}),Gt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:function(e,t){var A=Fn(t[0],e),n=e.parser;++n.leftrightDepth;var r=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=LA(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:r,left:A.text,right:i.delim,rightColor:i.color}},htmlBuilder:function(e,t){In(e);for(var A,n,r=AA(e.body,t,!0,["mopen","mclose"]),i=0,o=0,a=!1,s=0;s-1?"mpadded":"menclose",[wA(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(A=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*A+"pt"),n.setAttribute("height","+"+2*A+"pt"),n.setAttribute("lspace",A+"pt"),n.setAttribute("voffset",A+"pt"),"\\fcolorbox"===e.label){var r=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+r+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};Gt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler:function(e,t,A){var n=e.parser,r=e.funcName,i=LA(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:n.mode,label:r,backgroundColor:i,body:o}},htmlBuilder:Bn,mathmlBuilder:jn}),Gt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler:function(e,t,A){var n=e.parser,r=e.funcName,i=LA(t[0],"color-token").color,o=LA(t[1],"color-token").color,a=t[2];return{type:"enclose",mode:n.mode,label:r,backgroundColor:o,borderColor:i,body:a}},htmlBuilder:Bn,mathmlBuilder:jn}),Gt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(e,t){var A=e.parser;return{type:"enclose",mode:A.mode,label:"\\fbox",body:t[0]}}}),Gt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler:function(e,t){var A=e.parser,n=e.funcName,r=t[0];return{type:"enclose",mode:A.mode,label:n,body:r}},htmlBuilder:Bn,mathmlBuilder:jn}),Gt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler:function(e,t){var A=e.parser;return{type:"enclose",mode:A.mode,label:"\\angl",body:t[0]}}});var qn={};function Hn(e){for(var t=e.type,A=e.names,n=e.props,r=e.handler,i=e.htmlBuilder,o=e.mathmlBuilder,a={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:r},s=0;s1||!u)&&m.pop(),v.length0&&(y+=.25),l.push({pos:y,isDashed:e[t]})}for(w(o[0]),A=0;A0&&(E+=b,T=a)){var Z=void 0;(r>0||e.hskipBeforeAndAfter)&&(Z=p.deflt(q.pregap,h),0!==Z&&(S=Bt.makeSpan(["arraycolsep"],[]),S.style.width=pe(Z),P.push(S)));var U=[];for(A=0;A0){var J=Bt.makeLineSpan("hline",t,c),Q=Bt.makeLineSpan("hdashline",t,c),_=[{type:"elem",elem:s,shift:0}];while(l.length>0){var $=l.pop(),ee=$.pos-O;$.isDashed?_.push({type:"elem",elem:Q,shift:ee}):_.push({type:"elem",elem:J,shift:ee})}s=Bt.makeVList({positionType:"individualShift",children:_},t)}if(0===L.length)return Bt.makeSpan(["mord"],[s],t);var te=Bt.makeVList({positionType:"individualShift",children:L},t);return te=Bt.makeSpan(["tag"],[te],t),Bt.makeFragment([s,te])},_n={c:"center ",l:"left ",r:"right "},$n=function(e,t){for(var A=[],n=new pA.MathNode("mtd",[],["mtr-glue"]),r=new pA.MathNode("mtd",[],["mml-eqn-num"]),i=0;i0){var d=e.cols,f="",p=!1,m=0,g=d.length;"separator"===d[0].type&&(u+="top ",m=1),"separator"===d[d.length-1].type&&(u+="bottom ",g-=1);for(var v=m;v0?"left ":"",u+=k[k.length-1].length>0?"right ":"";for(var T=1;T-1?"alignat":"align",o="split"===e.envName,a=Kn(e.parser,{cols:r,addJot:!0,autoTag:o?void 0:Yn(e.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:o?2:void 0,leqno:e.parser.settings.leqno},"display"),s=0,l={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var c="",u=0;u0&&d&&(m=1),r[f]={type:"align",align:p,pregap:m,postgap:0}}return a.colSeparationType=d?"align":"alignat",a};Hn({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(e,t){var A=FA(t[0]),r=A?[t[0]]:LA(t[0],"ordgroup").body,i=r.map((function(e){var t=RA(e),A=t.text;if(-1!=="lcr".indexOf(A))return{type:"align",align:A};if("|"===A)return{type:"separator",separator:"|"};if(":"===A)return{type:"separator",separator:":"};throw new n("Unknown column alignment: "+A,e)})),o={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Kn(e.parser,o,Jn(e.envName))},htmlBuilder:Qn,mathmlBuilder:$n}),Hn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler:function(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],A="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:A}]};if("*"===e.envName.charAt(e.envName.length-1)){var i=e.parser;if(i.consumeSpaces(),"["===i.fetch().text){if(i.consume(),i.consumeSpaces(),A=i.fetch().text,-1==="lcr".indexOf(A))throw new n("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:A}]}}var o=Kn(e.parser,r,Jn(e.envName)),a=Math.max.apply(Math,[0].concat(o.body.map((function(e){return e.length}))));return o.cols=new Array(a).fill({type:"align",align:A}),t?{type:"leftright",mode:e.mode,body:[o],left:t[0],right:t[1],rightColor:void 0}:o},htmlBuilder:Qn,mathmlBuilder:$n}),Hn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(e){var t={arraystretch:.5},A=Kn(e.parser,t,"script");return A.colSeparationType="small",A},htmlBuilder:Qn,mathmlBuilder:$n}),Hn({type:"array",names:["subarray"],props:{numArgs:1},handler:function(e,t){var A=FA(t[0]),r=A?[t[0]]:LA(t[0],"ordgroup").body,i=r.map((function(e){var t=RA(e),A=t.text;if(-1!=="lc".indexOf(A))return{type:"align",align:A};throw new n("Unknown column alignment: "+A,e)}));if(i.length>1)throw new n("{subarray} can contain only one column");var o={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(o=Kn(e.parser,o,"script"),o.body.length>0&&o.body[0].length>1)throw new n("{subarray} can contain only one column");return o},htmlBuilder:Qn,mathmlBuilder:$n}),Hn({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},A=Kn(e.parser,t,Jn(e.envName));return{type:"leftright",mode:e.mode,body:[A],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Qn,mathmlBuilder:$n}),Hn({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:er,htmlBuilder:Qn,mathmlBuilder:$n}),Hn({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler:function(e){p.contains(["gather","gather*"],e.envName)&&Gn(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Yn(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Kn(e.parser,t,"display")},htmlBuilder:Qn,mathmlBuilder:$n}),Hn({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:er,htmlBuilder:Qn,mathmlBuilder:$n}),Hn({type:"array",names:["equation","equation*"],props:{numArgs:0},handler:function(e){Gn(e);var t={autoTag:Yn(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Kn(e.parser,t,"display")},htmlBuilder:Qn,mathmlBuilder:$n}),Hn({type:"array",names:["CD"],props:{numArgs:0},handler:function(e){return Gn(e),JA(e.parser)},htmlBuilder:Qn,mathmlBuilder:$n}),Xn("\\nonumber","\\gdef\\@eqnsw{0}"),Xn("\\notag","\\nonumber"),Gt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(e,t){throw new n(e.funcName+" valid only within array environment")}});var tr=qn,Ar=tr;Gt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(e,t){var A=e.parser,r=e.funcName,i=t[0];if("ordgroup"!==i.type)throw new n("Invalid environment name",i);for(var o="",a=0;a=R.SCRIPT.id?A.text():R.DISPLAY:"text"===e&&A.size===R.DISPLAY.size?A=R.TEXT:"script"===e?A=R.SCRIPT:"scriptscript"===e&&(A=R.SCRIPTSCRIPT),A},ar=function(e,t){var A,n=or(e.size,t.style),r=n.fracNum(),i=n.fracDen();A=t.havingStyle(r);var o=sA(e.numer,A,t);if(e.continued){var a=8.5/t.fontMetrics().ptPerEm,s=3.5/t.fontMetrics().ptPerEm;o.height=o.height0?3*u:7*u,f=t.fontMetrics().denom1):(c>0?(h=t.fontMetrics().num2,d=u):(h=t.fontMetrics().num3,d=3*u),f=t.fontMetrics().denom2),l){var y=t.fontMetrics().axisHeight;h-o.depth-(y+.5*c)0&&(t=e,t="."===t?null:t),t};Gt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var A,n=e.parser,r=t[4],i=t[5],o=Kt(t[0]),a="atom"===o.type&&"open"===o.family?cr(o.text):null,s=Kt(t[1]),l="atom"===s.type&&"close"===s.family?cr(s.text):null,c=LA(t[2],"size"),u=null;c.isBlank?A=!0:(u=c.value,A=u.number>0);var h="auto",d=t[3];if("ordgroup"===d.type){if(d.body.length>0){var f=LA(d.body[0],"textord");h=lr[Number(f.text)]}}else d=LA(d,"textord"),h=lr[Number(d.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:A,barSize:u,leftDelim:a,rightDelim:l,size:h}},htmlBuilder:ar,mathmlBuilder:sr}),Gt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(e,t){var A=e.parser,n=(e.funcName,e.token);return{type:"infix",mode:A.mode,replaceWith:"\\\\abovefrac",size:LA(t[0],"size").value,token:n}}}),Gt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var A=e.parser,n=(e.funcName,t[0]),r=d(LA(t[1],"infix").size),i=t[2],o=r.number>0;return{type:"genfrac",mode:A.mode,numer:n,denom:i,continued:!1,hasBarLine:o,barSize:r,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:ar,mathmlBuilder:sr});var ur=function(e,t){var A,n,r=t.style;"supsub"===e.type?(A=e.sup?sA(e.sup,t.havingStyle(r.sup()),t):sA(e.sub,t.havingStyle(r.sub()),t),n=LA(e.base,"horizBrace")):n=LA(e,"horizBrace");var i,o=sA(n.base,t.havingBaseStyle(R.DISPLAY)),a=PA.svgSpan(n,t);if(n.isOver?(i=Bt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:a}]},t),i.children[0].children[0].children[1].classes.push("svg-align")):(i=Bt.makeVList({positionType:"bottom",positionData:o.depth+.1+a.height,children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:o}]},t),i.children[0].children[0].children[0].classes.push("svg-align")),A){var s=Bt.makeSpan(["mord",n.isOver?"mover":"munder"],[i],t);i=n.isOver?Bt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.2},{type:"elem",elem:A}]},t):Bt.makeVList({positionType:"bottom",positionData:s.depth+.2+A.height+A.depth,children:[{type:"elem",elem:A},{type:"kern",size:.2},{type:"elem",elem:s}]},t)}return Bt.makeSpan(["mord",n.isOver?"mover":"munder"],[i],t)},hr=function(e,t){var A=PA.mathMLnode(e.label);return new pA.MathNode(e.isOver?"mover":"munder",[wA(e.base,t),A])};Gt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(e,t){var A=e.parser,n=e.funcName;return{type:"horizBrace",mode:A.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:ur,mathmlBuilder:hr}),Gt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var A=e.parser,n=t[1],r=LA(t[0],"url").url;return A.settings.isTrusted({command:"\\href",url:r})?{type:"href",mode:A.mode,href:r,body:Jt(n)}:A.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var A=AA(e.body,t,!1);return Bt.makeAnchor(e.href,[],A,t)},mathmlBuilder:function(e,t){var A=yA(e.body,t);return A instanceof hA||(A=new hA("mrow",[A])),A.setAttribute("href",e.href),A}}),Gt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var A=e.parser,n=LA(t[0],"url").url;if(!A.settings.isTrusted({command:"\\url",url:n}))return A.formatUnsupportedCmd("\\url");for(var r=[],i=0;i0&&(n=fe(e.totalheight,t)-A);var r=0;e.width.number>0&&(r=fe(e.width,t));var i={height:pe(A+n)};r>0&&(i.width=pe(r)),n>0&&(i.verticalAlign=pe(-n));var o=new xe(e.src,e.alt,i);return o.height=A,o.depth=n,o},mathmlBuilder:function(e,t){var A=new pA.MathNode("mglyph",[]);A.setAttribute("alt",e.alt);var n=fe(e.height,t),r=0;if(e.totalheight.number>0&&(r=fe(e.totalheight,t)-n,A.setAttribute("valign",pe(-r))),A.setAttribute("height",pe(n+r)),e.width.number>0){var i=fe(e.width,t);A.setAttribute("width",pe(i))}return A.setAttribute("src",e.src),A}}),Gt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler:function(e,t){var A=e.parser,n=e.funcName,r=LA(t[0],"size");if(A.settings.strict){var i="m"===n[1],o="mu"===r.value.unit;i?(o||A.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, not "+r.value.unit+" units"),"math"!==A.mode&&A.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):o&&A.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:A.mode,dimension:r.value}},htmlBuilder:function(e,t){return Bt.makeGlue(e.dimension,t)},mathmlBuilder:function(e,t){var A=fe(e.dimension,t);return new pA.SpaceNode(A)}}),Gt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var A=e.parser,n=e.funcName,r=t[0];return{type:"lap",mode:A.mode,alignment:n.slice(5),body:r}},htmlBuilder:function(e,t){var A;"clap"===e.alignment?(A=Bt.makeSpan([],[sA(e.body,t)]),A=Bt.makeSpan(["inner"],[A],t)):A=Bt.makeSpan(["inner"],[sA(e.body,t)]);var n=Bt.makeSpan(["fix"],[]),r=Bt.makeSpan([e.alignment],[A,n],t),i=Bt.makeSpan(["strut"]);return i.style.height=pe(r.height+r.depth),r.depth&&(i.style.verticalAlign=pe(-r.depth)),r.children.unshift(i),r=Bt.makeSpan(["thinbox"],[r],t),Bt.makeSpan(["mord","vbox"],[r],t)},mathmlBuilder:function(e,t){var A=new pA.MathNode("mpadded",[wA(e.body,t)]);if("rlap"!==e.alignment){var n="llap"===e.alignment?"-1":"-0.5";A.setAttribute("lspace",n+"width")}return A.setAttribute("width","0px"),A}}),Gt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var A=e.funcName,n=e.parser,r=n.mode;n.switchMode("math");var i="\\("===A?"\\)":"$",o=n.parseExpression(!1,i);return n.expect(i),n.switchMode(r),{type:"styling",mode:n.mode,style:"text",body:o}}}),Gt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){throw new n("Mismatched "+e.funcName)}});var fr=function(e,t){switch(t.style.size){case R.DISPLAY.size:return e.display;case R.TEXT.size:return e.text;case R.SCRIPT.size:return e.script;case R.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Gt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:function(e,t){var A=e.parser;return{type:"mathchoice",mode:A.mode,display:Jt(t[0]),text:Jt(t[1]),script:Jt(t[2]),scriptscript:Jt(t[3])}},htmlBuilder:function(e,t){var A=fr(e,t),n=AA(A,t,!1);return Bt.makeFragment(n)},mathmlBuilder:function(e,t){var A=fr(e,t);return yA(A,t)}});var pr=function(e,t,A,n,r,i,o){e=Bt.makeSpan([],[e]);var a,s,l,c=A&&p.isCharacterBox(A);if(t){var u=sA(t,n.havingStyle(r.sup()),n);s={elem:u,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-u.depth)}}if(A){var h=sA(A,n.havingStyle(r.sub()),n);a={elem:h,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-h.height)}}if(s&&a){var d=n.fontMetrics().bigOpSpacing5+a.elem.height+a.elem.depth+a.kern+e.depth+o;l=Bt.makeVList({positionType:"bottom",positionData:d,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:a.elem,marginLeft:pe(-i)},{type:"kern",size:a.kern},{type:"elem",elem:e},{type:"kern",size:s.kern},{type:"elem",elem:s.elem,marginLeft:pe(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(a){var f=e.height-o;l=Bt.makeVList({positionType:"top",positionData:f,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:a.elem,marginLeft:pe(-i)},{type:"kern",size:a.kern},{type:"elem",elem:e}]},n)}else{if(!s)return e;var m=e.depth+o;l=Bt.makeVList({positionType:"bottom",positionData:m,children:[{type:"elem",elem:e},{type:"kern",size:s.kern},{type:"elem",elem:s.elem,marginLeft:pe(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}var g=[l];if(a&&0!==i&&!c){var v=Bt.makeSpan(["mspace"],[],n);v.style.marginRight=pe(i),g.unshift(v)}return Bt.makeSpan(["mop","op-limits"],g,n)},mr=["\\smallint"],gr=function(e,t){var A,n,r,i=!1;"supsub"===e.type?(A=e.sup,n=e.sub,r=LA(e.base,"op"),i=!0):r=LA(e,"op");var o,a=t.style,s=!1;if(a.size===R.DISPLAY.size&&r.symbol&&!p.contains(mr,r.name)&&(s=!0),r.symbol){var l=s?"Size2-Regular":"Size1-Regular",c="";if("\\oiint"!==r.name&&"\\oiiint"!==r.name||(c=r.name.slice(1),r.name="oiint"===c?"\\iint":"\\iiint"),o=Bt.makeSymbol(r.name,l,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),c.length>0){var u=o.italic,h=Bt.staticSvg(c+"Size"+(s?"2":"1"),t);o=Bt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:h,shift:s?.08:0}]},t),r.name="\\"+c,o.classes.unshift("mop"),o.italic=u}}else if(r.body){var d=AA(r.body,t,!0);1===d.length&&d[0]instanceof Te?(o=d[0],o.classes[0]="mop"):o=Bt.makeSpan(["mop"],d,t)}else{for(var f=[],m=1;m0){for(var a=r.body.map((function(e){var t=e.text;return"string"===typeof t?{type:"textord",mode:e.mode,text:t}:e})),s=AA(a,t.withFont("mathrm"),!0),l=0;l=0?a.setAttribute("height",pe(r)):(a.setAttribute("height",pe(r)),a.setAttribute("depth",pe(-r))),a.setAttribute("voffset",pe(r)),a}});var Tr=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Nr=function(e,t){var A=t.havingSize(e.size);return kr(e.body,A,t)};Gt({type:"sizing",names:Tr,props:{numArgs:0,allowedInText:!0},handler:function(e,t){var A=e.breakOnTokenText,n=e.funcName,r=e.parser,i=r.parseExpression(!1,A);return{type:"sizing",mode:r.mode,size:Tr.indexOf(n)+1,body:i}},htmlBuilder:Nr,mathmlBuilder:function(e,t){var A=t.havingSize(e.size),n=bA(e.body,A),r=new pA.MathNode("mstyle",n);return r.setAttribute("mathsize",pe(A.sizeMultiplier)),r}}),Gt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(e,t,A){var n=e.parser,r=!1,i=!1,o=A[0]&&LA(A[0],"ordgroup");if(o)for(var a="",s=0;sA.height+A.depth+o&&(o=(o+h-A.height-A.depth)/2);var d=l.height-A.height-o-c;A.style.paddingLeft=pe(u);var f=Bt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:A,wrapperClasses:["svg-align"]},{type:"kern",size:-(A.height+d)},{type:"elem",elem:l},{type:"kern",size:c}]},t);if(e.index){var p=t.havingStyle(R.SCRIPTSCRIPT),m=sA(e.index,p,t),g=.6*(f.height-f.depth),v=Bt.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:m}]},t),b=Bt.makeSpan(["root"],[v]);return Bt.makeSpan(["mord","sqrt"],[b,f],t)}return Bt.makeSpan(["mord","sqrt"],[f],t)},mathmlBuilder:function(e,t){var A=e.body,n=e.index;return n?new pA.MathNode("mroot",[wA(A,t),wA(n,t)]):new pA.MathNode("msqrt",[wA(A,t)])}});var Cr={display:R.DISPLAY,text:R.TEXT,script:R.SCRIPT,scriptscript:R.SCRIPTSCRIPT};Gt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e,t){var A=e.breakOnTokenText,n=e.funcName,r=e.parser,i=r.parseExpression(!0,A),o=n.slice(1,n.length-5);return{type:"styling",mode:r.mode,style:o,body:i}},htmlBuilder:function(e,t){var A=Cr[e.style],n=t.havingStyle(A).withFont("");return kr(e.body,n,t)},mathmlBuilder:function(e,t){var A=Cr[e.style],n=t.havingStyle(A),r=bA(e.body,n),i=new pA.MathNode("mstyle",r),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},a=o[e.style];return i.setAttribute("scriptlevel",a[0]),i.setAttribute("displaystyle",a[1]),i}});var Mr=function(e,t){var A=e.base;if(A){if("op"===A.type){var n=A.limits&&(t.style.size===R.DISPLAY.size||A.alwaysHandleSupSub);return n?gr:null}if("operatorname"===A.type){var r=A.alwaysHandleSupSub&&(t.style.size===R.DISPLAY.size||A.limits);return r?wr:null}if("accent"===A.type)return p.isCharacterBox(A.base)?IA:null;if("horizBrace"===A.type){var i=!e.sub;return i===A.isOver?ur:null}return null}return null};Yt({type:"supsub",htmlBuilder:function(e,t){var A=Mr(e,t);if(A)return A(e,t);var n,r,i,o=e.base,a=e.sup,s=e.sub,l=sA(o,t),c=t.fontMetrics(),u=0,h=0,d=o&&p.isCharacterBox(o);if(a){var f=t.havingStyle(t.style.sup());n=sA(a,f,t),d||(u=l.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(s){var m=t.havingStyle(t.style.sub());r=sA(s,m,t),d||(h=l.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}i=t.style===R.DISPLAY?c.sup1:t.style.cramped?c.sup3:c.sup2;var g,v=t.sizeMultiplier,b=pe(.5/c.ptPerEm/v),y=null;if(r){var w=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(l instanceof Te||w)&&(y=pe(-l.italic))}if(n&&r){u=Math.max(u,i,n.depth+.25*c.xHeight),h=Math.max(h,c.sub2);var x=c.defaultRuleThickness,k=4*x;if(u-n.depth-(r.height-h)0&&(u+=T,h-=T)}var N=[{type:"elem",elem:r,shift:h,marginRight:b,marginLeft:y},{type:"elem",elem:n,shift:-u,marginRight:b}];g=Bt.makeVList({positionType:"individualShift",children:N},t)}else if(r){h=Math.max(h,c.sub1,r.height-.8*c.xHeight);var C=[{type:"elem",elem:r,marginLeft:y,marginRight:b}];g=Bt.makeVList({positionType:"shift",positionData:h,children:C},t)}else{if(!n)throw new Error("supsub must have either sup or sub.");u=Math.max(u,i,n.depth+.25*c.xHeight),g=Bt.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:n,marginRight:b}]},t)}var M=oA(l,"right")||"mord";return Bt.makeSpan([M],[l,Bt.makeSpan(["msupsub"],[g])],t)},mathmlBuilder:function(e,t){var A,n,r=!1;e.base&&"horizBrace"===e.base.type&&(n=!!e.sup,n===e.base.isOver&&(r=!0,A=e.base.isOver)),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var i,o=[wA(e.base,t)];if(e.sub&&o.push(wA(e.sub,t)),e.sup&&o.push(wA(e.sup,t)),r)i=A?"mover":"munder";else if(e.sub)if(e.sup){var a=e.base;i=a&&"op"===a.type&&a.limits&&t.style===R.DISPLAY||a&&"operatorname"===a.type&&a.alwaysHandleSupSub&&(t.style===R.DISPLAY||a.limits)?"munderover":"msubsup"}else{var s=e.base;i=s&&"op"===s.type&&s.limits&&(t.style===R.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===R.DISPLAY)?"munder":"msub"}else{var l=e.base;i=l&&"op"===l.type&&l.limits&&(t.style===R.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===R.DISPLAY)?"mover":"msup"}return new pA.MathNode(i,o)}}),Yt({type:"atom",htmlBuilder:function(e,t){return Bt.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var A=new pA.MathNode("mo",[mA(e.text,e.mode)]);if("bin"===e.family){var n=vA(e,t);"bold-italic"===n&&A.setAttribute("mathvariant",n)}else"punct"===e.family?A.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||A.setAttribute("stretchy","false");return A}});var Er={mi:"italic",mn:"normal",mtext:"normal"};Yt({type:"mathord",htmlBuilder:function(e,t){return Bt.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var A=new pA.MathNode("mi",[mA(e.text,e.mode,t)]),n=vA(e,t)||"italic";return n!==Er[A.type]&&A.setAttribute("mathvariant",n),A}}),Yt({type:"textord",htmlBuilder:function(e,t){return Bt.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var A,n=mA(e.text,e.mode,t),r=vA(e,t)||"normal";return A="text"===e.mode?new pA.MathNode("mtext",[n]):/[0-9]/.test(e.text)?new pA.MathNode("mn",[n]):"\\prime"===e.text?new pA.MathNode("mo",[n]):new pA.MathNode("mi",[n]),r!==Er[A.type]&&A.setAttribute("mathvariant",r),A}});var Sr={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},zr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Yt({type:"spacing",htmlBuilder:function(e,t){if(zr.hasOwnProperty(e.text)){var A=zr[e.text].className||"";if("text"===e.mode){var r=Bt.makeOrd(e,t,"textord");return r.classes.push(A),r}return Bt.makeSpan(["mspace",A],[Bt.mathsym(e.text,e.mode,t)],t)}if(Sr.hasOwnProperty(e.text))return Bt.makeSpan(["mspace",Sr[e.text]],[],t);throw new n('Unknown type of space "'+e.text+'"')},mathmlBuilder:function(e,t){var A;if(!zr.hasOwnProperty(e.text)){if(Sr.hasOwnProperty(e.text))return new pA.MathNode("mspace");throw new n('Unknown type of space "'+e.text+'"')}return A=new pA.MathNode("mtext",[new pA.TextNode(" ")]),A}});var Or=function(){var e=new pA.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Yt({type:"tag",mathmlBuilder:function(e,t){var A=new pA.MathNode("mtable",[new pA.MathNode("mtr",[Or(),new pA.MathNode("mtd",[yA(e.body,t)]),Or(),new pA.MathNode("mtd",[yA(e.tag,t)])])]);return A.setAttribute("width","100%"),A}});var Dr={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Pr={"\\textbf":"textbf","\\textmd":"textmd"},Lr={"\\textit":"textit","\\textup":"textup"},Rr=function(e,t){var A=e.font;return A?Dr[A]?t.withTextFontFamily(Dr[A]):Pr[A]?t.withTextFontWeight(Pr[A]):t.withTextFontShape(Lr[A]):t};Gt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler:function(e,t){var A=e.parser,n=e.funcName,r=t[0];return{type:"text",mode:A.mode,body:Jt(r),font:n}},htmlBuilder:function(e,t){var A=Rr(e,t),n=AA(e.body,A,!0);return Bt.makeSpan(["mord","text"],n,A)},mathmlBuilder:function(e,t){var A=Rr(e,t);return yA(e.body,A)}}),Gt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var A=e.parser;return{type:"underline",mode:A.mode,body:t[0]}},htmlBuilder:function(e,t){var A=sA(e.body,t),n=Bt.makeLineSpan("underline-line",t),r=t.fontMetrics().defaultRuleThickness,i=Bt.makeVList({positionType:"top",positionData:A.height,children:[{type:"kern",size:r},{type:"elem",elem:n},{type:"kern",size:3*r},{type:"elem",elem:A}]},t);return Bt.makeSpan(["mord","underline"],[i],t)},mathmlBuilder:function(e,t){var A=new pA.MathNode("mo",[new pA.TextNode("‾")]);A.setAttribute("stretchy","true");var n=new pA.MathNode("munder",[wA(e.body,t),A]);return n.setAttribute("accentunder","true"),n}}),Gt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler:function(e,t){var A=e.parser;return{type:"vcenter",mode:A.mode,body:t[0]}},htmlBuilder:function(e,t){var A=sA(e.body,t),n=t.fontMetrics().axisHeight,r=.5*(A.height-n-(A.depth+n));return Bt.makeVList({positionType:"shift",positionData:r,children:[{type:"elem",elem:A}]},t)},mathmlBuilder:function(e,t){return new pA.MathNode("mpadded",[wA(e.body,t)],["vcenter"])}}),Gt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(e,t,A){throw new n("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var A=Fr(e),n=[],r=t.havingStyle(t.style.text()),i=0;i0)this.endGroup()},t.has=function(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)},t.get=function(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]},t.set=function(e,t,A){if(void 0===A&&(A=!1),A){for(var n=0;n0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var r=this.undefStack[this.undefStack.length-1];r&&!r.hasOwnProperty(e)&&(r[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t},e}(),Kr=Wn,Jr=Kr;Xn("\\noexpand",(function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}})),Xn("\\expandafter",(function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}})),Xn("\\@firstoftwo",(function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}})),Xn("\\@secondoftwo",(function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}})),Xn("\\@ifnextchar",(function(e){var t=e.consumeArgs(3);e.consumeSpaces();var A=e.future();return 1===t[0].length&&t[0][0].text===A.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),Xn("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Xn("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var Qr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Xn("\\char",(function(e){var t,A=e.popToken(),r="";if("'"===A.text)t=8,A=e.popToken();else if('"'===A.text)t=16,A=e.popToken();else if("`"===A.text)if(A=e.popToken(),"\\"===A.text[0])r=A.text.charCodeAt(1);else{if("EOF"===A.text)throw new n("\\char` missing argument");r=A.text.charCodeAt(0)}else t=10;if(t){if(r=Qr[A.text],null==r||r>=t)throw new n("Invalid base-"+t+" digit "+A.text);var i;while(null!=(i=Qr[e.future().text])&&i":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Xn("\\dots",(function(e){var t="\\dotso",A=e.expandAfterFuture().text;return A in $r?t=$r[A]:("\\not"===A.slice(0,4)||A in Pe.math&&p.contains(["bin","rel"],Pe.math[A].group))&&(t="\\dotsb"),t}));var ei={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Xn("\\dotso",(function(e){var t=e.future().text;return t in ei?"\\ldots\\,":"\\ldots"})),Xn("\\dotsc",(function(e){var t=e.future().text;return t in ei&&","!==t?"\\ldots\\,":"\\ldots"})),Xn("\\cdots",(function(e){var t=e.future().text;return t in ei?"\\@cdots\\,":"\\@cdots"})),Xn("\\dotsb","\\cdots"),Xn("\\dotsm","\\cdots"),Xn("\\dotsi","\\!\\cdots"),Xn("\\dotsx","\\ldots\\,"),Xn("\\DOTSI","\\relax"),Xn("\\DOTSB","\\relax"),Xn("\\DOTSX","\\relax"),Xn("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Xn("\\,","\\tmspace+{3mu}{.1667em}"),Xn("\\thinspace","\\,"),Xn("\\>","\\mskip{4mu}"),Xn("\\:","\\tmspace+{4mu}{.2222em}"),Xn("\\medspace","\\:"),Xn("\\;","\\tmspace+{5mu}{.2777em}"),Xn("\\thickspace","\\;"),Xn("\\!","\\tmspace-{3mu}{.1667em}"),Xn("\\negthinspace","\\!"),Xn("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Xn("\\negthickspace","\\tmspace-{5mu}{.277em}"),Xn("\\enspace","\\kern.5em "),Xn("\\enskip","\\hskip.5em\\relax"),Xn("\\quad","\\hskip1em\\relax"),Xn("\\qquad","\\hskip2em\\relax"),Xn("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Xn("\\tag@paren","\\tag@literal{({#1})}"),Xn("\\tag@literal",(function(e){if(e.macros.get("\\df@tag"))throw new n("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),Xn("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Xn("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Xn("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Xn("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Xn("\\newline","\\\\\\relax"),Xn("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var ti=pe($["Main-Regular"]["T".charCodeAt(0)][1]-.7*$["Main-Regular"]["A".charCodeAt(0)][1]);Xn("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+ti+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),Xn("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+ti+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),Xn("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Xn("\\@hspace","\\hskip #1\\relax"),Xn("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Xn("\\ordinarycolon",":"),Xn("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Xn("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Xn("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Xn("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Xn("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Xn("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Xn("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Xn("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Xn("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Xn("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Xn("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Xn("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Xn("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Xn("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Xn("∷","\\dblcolon"),Xn("∹","\\eqcolon"),Xn("≔","\\coloneqq"),Xn("≕","\\eqqcolon"),Xn("⩴","\\Coloneqq"),Xn("\\ratio","\\vcentcolon"),Xn("\\coloncolon","\\dblcolon"),Xn("\\colonequals","\\coloneqq"),Xn("\\coloncolonequals","\\Coloneqq"),Xn("\\equalscolon","\\eqqcolon"),Xn("\\equalscoloncolon","\\Eqqcolon"),Xn("\\colonminus","\\coloneq"),Xn("\\coloncolonminus","\\Coloneq"),Xn("\\minuscolon","\\eqcolon"),Xn("\\minuscoloncolon","\\Eqcolon"),Xn("\\coloncolonapprox","\\Colonapprox"),Xn("\\coloncolonsim","\\Colonsim"),Xn("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Xn("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Xn("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Xn("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Xn("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Xn("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Xn("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Xn("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),Xn("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),Xn("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),Xn("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),Xn("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),Xn("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),Xn("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),Xn("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),Xn("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),Xn("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),Xn("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),Xn("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),Xn("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),Xn("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),Xn("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),Xn("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),Xn("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),Xn("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),Xn("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),Xn("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),Xn("\\imath","\\html@mathml{\\@imath}{ı}"),Xn("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),Xn("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Xn("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Xn("⟦","\\llbracket"),Xn("⟧","\\rrbracket"),Xn("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Xn("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Xn("⦃","\\lBrace"),Xn("⦄","\\rBrace"),Xn("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Xn("⦵","\\minuso"),Xn("\\darr","\\downarrow"),Xn("\\dArr","\\Downarrow"),Xn("\\Darr","\\Downarrow"),Xn("\\lang","\\langle"),Xn("\\rang","\\rangle"),Xn("\\uarr","\\uparrow"),Xn("\\uArr","\\Uparrow"),Xn("\\Uarr","\\Uparrow"),Xn("\\N","\\mathbb{N}"),Xn("\\R","\\mathbb{R}"),Xn("\\Z","\\mathbb{Z}"),Xn("\\alef","\\aleph"),Xn("\\alefsym","\\aleph"),Xn("\\Alpha","\\mathrm{A}"),Xn("\\Beta","\\mathrm{B}"),Xn("\\bull","\\bullet"),Xn("\\Chi","\\mathrm{X}"),Xn("\\clubs","\\clubsuit"),Xn("\\cnums","\\mathbb{C}"),Xn("\\Complex","\\mathbb{C}"),Xn("\\Dagger","\\ddagger"),Xn("\\diamonds","\\diamondsuit"),Xn("\\empty","\\emptyset"),Xn("\\Epsilon","\\mathrm{E}"),Xn("\\Eta","\\mathrm{H}"),Xn("\\exist","\\exists"),Xn("\\harr","\\leftrightarrow"),Xn("\\hArr","\\Leftrightarrow"),Xn("\\Harr","\\Leftrightarrow"),Xn("\\hearts","\\heartsuit"),Xn("\\image","\\Im"),Xn("\\infin","\\infty"),Xn("\\Iota","\\mathrm{I}"),Xn("\\isin","\\in"),Xn("\\Kappa","\\mathrm{K}"),Xn("\\larr","\\leftarrow"),Xn("\\lArr","\\Leftarrow"),Xn("\\Larr","\\Leftarrow"),Xn("\\lrarr","\\leftrightarrow"),Xn("\\lrArr","\\Leftrightarrow"),Xn("\\Lrarr","\\Leftrightarrow"),Xn("\\Mu","\\mathrm{M}"),Xn("\\natnums","\\mathbb{N}"),Xn("\\Nu","\\mathrm{N}"),Xn("\\Omicron","\\mathrm{O}"),Xn("\\plusmn","\\pm"),Xn("\\rarr","\\rightarrow"),Xn("\\rArr","\\Rightarrow"),Xn("\\Rarr","\\Rightarrow"),Xn("\\real","\\Re"),Xn("\\reals","\\mathbb{R}"),Xn("\\Reals","\\mathbb{R}"),Xn("\\Rho","\\mathrm{P}"),Xn("\\sdot","\\cdot"),Xn("\\sect","\\S"),Xn("\\spades","\\spadesuit"),Xn("\\sub","\\subset"),Xn("\\sube","\\subseteq"),Xn("\\supe","\\supseteq"),Xn("\\Tau","\\mathrm{T}"),Xn("\\thetasym","\\vartheta"),Xn("\\weierp","\\wp"),Xn("\\Zeta","\\mathrm{Z}"),Xn("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Xn("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Xn("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Xn("\\bra","\\mathinner{\\langle{#1}|}"),Xn("\\ket","\\mathinner{|{#1}\\rangle}"),Xn("\\braket","\\mathinner{\\langle{#1}\\rangle}"),Xn("\\Bra","\\left\\langle#1\\right|"),Xn("\\Ket","\\left|#1\\right\\rangle");var Ai=function(e){return function(t){var A=t.consumeArg().tokens,n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,o=t.macros.get("|"),a=t.macros.get("\\|");t.macros.beginGroup();var s=function(t){return function(A){e&&(A.macros.set("|",o),r.length&&A.macros.set("\\|",a));var i=t;if(!t&&r.length){var s=A.future();"|"===s.text&&(A.popToken(),i=!0)}return{tokens:i?r:n,numArgs:0}}};t.macros.set("|",s(!1)),r.length&&t.macros.set("\\|",s(!0));var l=t.consumeArg().tokens,c=t.expandTokens([].concat(i,l,A));return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}}};Xn("\\bra@ket",Ai(!1)),Xn("\\bra@set",Ai(!0)),Xn("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),Xn("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),Xn("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),Xn("\\angln","{\\angl n}"),Xn("\\blue","\\textcolor{##6495ed}{#1}"),Xn("\\orange","\\textcolor{##ffa500}{#1}"),Xn("\\pink","\\textcolor{##ff00af}{#1}"),Xn("\\red","\\textcolor{##df0030}{#1}"),Xn("\\green","\\textcolor{##28ae7b}{#1}"),Xn("\\gray","\\textcolor{gray}{#1}"),Xn("\\purple","\\textcolor{##9d38bd}{#1}"),Xn("\\blueA","\\textcolor{##ccfaff}{#1}"),Xn("\\blueB","\\textcolor{##80f6ff}{#1}"),Xn("\\blueC","\\textcolor{##63d9ea}{#1}"),Xn("\\blueD","\\textcolor{##11accd}{#1}"),Xn("\\blueE","\\textcolor{##0c7f99}{#1}"),Xn("\\tealA","\\textcolor{##94fff5}{#1}"),Xn("\\tealB","\\textcolor{##26edd5}{#1}"),Xn("\\tealC","\\textcolor{##01d1c1}{#1}"),Xn("\\tealD","\\textcolor{##01a995}{#1}"),Xn("\\tealE","\\textcolor{##208170}{#1}"),Xn("\\greenA","\\textcolor{##b6ffb0}{#1}"),Xn("\\greenB","\\textcolor{##8af281}{#1}"),Xn("\\greenC","\\textcolor{##74cf70}{#1}"),Xn("\\greenD","\\textcolor{##1fab54}{#1}"),Xn("\\greenE","\\textcolor{##0d923f}{#1}"),Xn("\\goldA","\\textcolor{##ffd0a9}{#1}"),Xn("\\goldB","\\textcolor{##ffbb71}{#1}"),Xn("\\goldC","\\textcolor{##ff9c39}{#1}"),Xn("\\goldD","\\textcolor{##e07d10}{#1}"),Xn("\\goldE","\\textcolor{##a75a05}{#1}"),Xn("\\redA","\\textcolor{##fca9a9}{#1}"),Xn("\\redB","\\textcolor{##ff8482}{#1}"),Xn("\\redC","\\textcolor{##f9685d}{#1}"),Xn("\\redD","\\textcolor{##e84d39}{#1}"),Xn("\\redE","\\textcolor{##bc2612}{#1}"),Xn("\\maroonA","\\textcolor{##ffbde0}{#1}"),Xn("\\maroonB","\\textcolor{##ff92c6}{#1}"),Xn("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Xn("\\maroonD","\\textcolor{##ca337c}{#1}"),Xn("\\maroonE","\\textcolor{##9e034e}{#1}"),Xn("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Xn("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Xn("\\purpleC","\\textcolor{##aa87ff}{#1}"),Xn("\\purpleD","\\textcolor{##7854ab}{#1}"),Xn("\\purpleE","\\textcolor{##543b78}{#1}"),Xn("\\mintA","\\textcolor{##f5f9e8}{#1}"),Xn("\\mintB","\\textcolor{##edf2df}{#1}"),Xn("\\mintC","\\textcolor{##e0e5cc}{#1}"),Xn("\\grayA","\\textcolor{##f6f7f7}{#1}"),Xn("\\grayB","\\textcolor{##f0f1f2}{#1}"),Xn("\\grayC","\\textcolor{##e3e5e6}{#1}"),Xn("\\grayD","\\textcolor{##d6d8da}{#1}"),Xn("\\grayE","\\textcolor{##babec2}{#1}"),Xn("\\grayF","\\textcolor{##888d93}{#1}"),Xn("\\grayG","\\textcolor{##626569}{#1}"),Xn("\\grayH","\\textcolor{##3b3e40}{#1}"),Xn("\\grayI","\\textcolor{##21242c}{#1}"),Xn("\\kaBlue","\\textcolor{##314453}{#1}"),Xn("\\kaGreen","\\textcolor{##71B307}{#1}");var ni={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},ri=function(){function e(e,t,A){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Yr(Jr,t.macros),this.mode=A,this.stack=[]}var t=e.prototype;return t.feed=function(e){this.lexer=new Gr(e,this.settings)},t.switchMode=function(e){this.mode=e},t.beginGroup=function(){this.macros.beginGroup()},t.endGroup=function(){this.macros.endGroup()},t.endGroups=function(){this.macros.endGroups()},t.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},t.popToken=function(){return this.future(),this.stack.pop()},t.pushToken=function(e){this.stack.push(e)},t.pushTokens=function(e){var t;(t=this.stack).push.apply(t,e)},t.scanArgument=function(e){var t,A,n;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken();var r=this.consumeArg(["]"]);n=r.tokens,A=r.end}else{var i=this.consumeArg();n=i.tokens,t=i.start,A=i.end}return this.pushToken(new Zn("EOF",A.loc)),this.pushTokens(n),t.range(A,"")},t.consumeSpaces=function(){for(;;){var e=this.future();if(" "!==e.text)break;this.stack.pop()}},t.consumeArg=function(e){var t=[],A=e&&e.length>0;A||this.consumeSpaces();var r,i=this.future(),o=0,a=0;do{if(r=this.popToken(),t.push(r),"{"===r.text)++o;else if("}"===r.text){if(--o,-1===o)throw new n("Extra }",r)}else if("EOF"===r.text)throw new n("Unexpected end of input in a macro argument, expected '"+(e&&A?e[a]:"}")+"'",r);if(e&&A)if((0===o||1===o&&"{"===e[a])&&r.text===e[a]){if(++a,a===e.length){t.splice(-a,a);break}}else a=0}while(0!==o||A);return"{"===i.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:i,end:r}},t.consumeArgs=function(e,t){if(t){if(t.length!==e+1)throw new n("The length of delimiters doesn't match the number of args!");for(var A=t[0],r=0;rthis.settings.maxExpand)throw new n("Too many expansions: infinite loop or need to increase maxExpand setting");var i=r.tokens,o=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var a=i.length-1;a>=0;--a){var s=i[a];if("#"===s.text){if(0===a)throw new n("Incomplete placeholder at end of macro body",s);if(s=i[--a],"#"===s.text)i.splice(a+1,1);else{if(!/^[1-9]$/.test(s.text))throw new n("Not a valid argument number",s);var l;(l=i).splice.apply(l,[a,2].concat(o[+s.text-1]))}}}}return this.pushTokens(i),i.length},t.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.expandNextToken=function(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error},t.expandMacro=function(e){return this.macros.has(e)?this.expandTokens([new Zn(e)]):void 0},t.expandTokens=function(e){var t=[],A=this.stack.length;this.pushTokens(e);while(this.stack.length>A)if(!1===this.expandOnce(!0)){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),t.push(n)}return t},t.expandMacroAsText=function(e){var t=this.expandMacro(e);return t?t.map((function(e){return e.text})).join(""):t},t._getExpansion=function(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var A=this.lexer.catcodes[e];if(null!=A&&13!==A)return}var n="function"===typeof t?t(this):t;if("string"===typeof n){var r=0;if(-1!==n.indexOf("#")){var i=n.replace(/##/g,"");while(-1!==i.indexOf("#"+(r+1)))++r}var o=new Gr(n,this.settings),a=[],s=o.lex();while("EOF"!==s.text)a.push(s),s=o.lex();a.reverse();var l={tokens:a,numArgs:r};return l}return n},t.isDefined=function(e){return this.macros.has(e)||Br.hasOwnProperty(e)||Pe.math.hasOwnProperty(e)||Pe.text.hasOwnProperty(e)||ni.hasOwnProperty(e)},t.isExpandable=function(e){var t=this.macros.get(e);return null!=t?"string"===typeof t||"function"===typeof t||!t.unexpandable:Br.hasOwnProperty(e)&&!Br[e].primitive},e}(),ii=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,oi=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),ai={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},si={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"},li=function(){function e(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new ri(e,t,this.mode),this.settings=t,this.leftrightDepth=0}var t=e.prototype;return t.expect=function(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new n("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()},t.consume=function(){this.nextToken=null},t.fetch=function(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},t.switchMode=function(e){this.mode=e,this.gullet.switchMode(e)},t.parse=function(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}},t.subparse=function(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new Zn("}")),this.gullet.pushTokens(e);var A=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,A},t.parseExpression=function(t,A){var n=[];while(1){"math"===this.mode&&this.consumeSpaces();var r=this.fetch();if(-1!==e.endOfExpression.indexOf(r.text))break;if(A&&r.text===A)break;if(t&&Br[r.text]&&Br[r.text].infix)break;var i=this.parseAtom(A);if(!i)break;"internal"!==i.type&&n.push(i)}return"text"===this.mode&&this.formLigatures(n),this.handleInfixNodes(n)},t.handleInfixNodes=function(e){for(var t,A=-1,r=0;r=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var a,s=Pe[this.mode][t].group,l=Vn.range(e);if(ze.hasOwnProperty(s)){var c=s;a={type:"atom",mode:this.mode,family:c,loc:l,text:t}}else a={type:s,mode:this.mode,loc:l,text:t};i=a}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(j(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),i={type:"textord",mode:"text",loc:Vn.range(e),text:t}}if(this.consume(),o)for(var u=0;u`\\x00-\\x20]+",i="'[^']*'",o='"[^"]*"',a="(?:"+r+"|"+i+"|"+o+")",s="(?:\\s+"+n+"(?:\\s*=\\s*"+a+")?)",l="<[A-Za-z][A-Za-z0-9\\-]*"+s+"*\\s*\\/?>",c="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",u="\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e",h="<[?][\\s\\S]*?[?]>",d="]*>",f="",p=new RegExp("^(?:"+l+"|"+c+"|"+u+"|"+h+"|"+d+"|"+f+")"),m=new RegExp("^(?:"+l+"|"+c+")");e.exports.HTML_TAG_RE=p,e.exports.HTML_OPEN_CLOSE_TAG_RE=m},"577e":function(e,t,A){"use strict";var n=A("f5df"),r=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return r(e)}},"577e6":function(e,t,A){e.exports=A.p+"img/changyongziyuan.svg"},"57a6":function(e,t,A){"use strict";A.d(t,"a",(function(){return n}));var n,r=A("c4ab"),i=A("4dde"),o=A("2364");(function(e){e["Source"]="Source",e["Data"]="Data",e["Alternative"]="Alternative",e["Supplement"]="Supplement",e["EncryptedPayload"]="EncryptedPayload",e["FormData"]="EncryptedPayload",e["Schema"]="Schema",e["Unspecified"]="Unspecified"})(n||(n={}));var a=function(){function e(e,t,A){void 0===A&&(A={}),this.fileData=e,this.fileName=t,this.options=A}return e.for=function(t,A,n){return void 0===n&&(n={}),new e(t,A,n)},e.prototype.embedIntoContext=function(e,t){return Object(r["b"])(this,void 0,void 0,(function(){var A,n,a,s,l,c,u,h,d;return Object(r["d"])(this,(function(r){return A=this.options,n=A.mimeType,a=A.description,s=A.creationDate,l=A.modificationDate,c=A.afRelationship,u=e.flateStream(this.fileData,{Type:"EmbeddedFile",Subtype:null!==n&&void 0!==n?n:void 0,Params:{Size:this.fileData.length,CreationDate:s?i["a"].fromDate(s):void 0,ModDate:l?i["a"].fromDate(l):void 0}}),h=e.register(u),d=e.obj({Type:"Filespec",F:i["a"].of(this.fileName),UF:o["a"].fromText(this.fileName),EF:{F:h},Desc:a?o["a"].fromText(a):void 0,AFRelationship:null!==c&&void 0!==c?c:void 0}),t?(e.assign(t,d),[2,t]):[2,e.register(d)]}))}))},e}();t["b"]=a},"57e0":function(e,t,A){},5838:function(e,t,A){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},5865:function(e,t,A){"use strict";(function(e){A.d(t,"a",(function(){return u5}));var n=A("6f27"),r=A("703f"),i=A("b923"),o=A("6ffb"),a=A("e3da"),s=A("442c"),l=A("72a8"),c=A("f201"),u=function(e,t){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var A in t)Object.prototype.hasOwnProperty.call(t,A)&&(e[A]=t[A])},u(e,t)};function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function A(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(A.prototype=t.prototype,new A)}var d=function(){return d=Object.assign||function(e){for(var t,A=1,n=arguments.length;A=0&&nfe}function me(e,t){var A="https://www.google-analytics.com/collect",n=location.hostname,r="event",i="use",o="TOAST UI "+e+" for "+n+": Statistics",a=window.localStorage.getItem(o);(he(window.tui)||!1!==window.tui.usageStatistics)&&(a&&!pe(a)||(window.localStorage.setItem(o,(new Date).getTime()),setTimeout((function(){"interactive"!==document.readyState&&"complete"!==document.readyState||de(A,{v:1,t:r,tid:t,cid:n,dp:n,dh:e,el:e,ec:i})}),1e3)))}var ge=me;/Mac/.test(navigator.platform);var ve=/[\u0020]+/g,be=/[>(){}[\]+-.!#|]/g,ye=/<([a-zA-Z_][a-zA-Z0-9\-._]*)(\s|[^\\>])*\/?>|<(\/)([a-zA-Z_][a-zA-Z0-9\-._]*)\s*\/?>||<([a-zA-Z_][a-zA-Z0-9\-.:/]*)>/g,we=/\\[!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~\\]/g,xe=/[*_~`]/g,ke=/!\[.*\]\(.*\)/g,Te=/[[\]]/g,Ne=/(?:^|[^\\])\\(?!\\)/g,Ce='[&<>"]',Me=new RegExp(Ce,"g");function Ee(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";default:return e}}function Se(e){return Me.test(e)?e.replace(Me,Ee):e}function ze(){ge("editor","UA-129966929-1")}function Oe(e,t){return-1!==e.indexOf(t)}var De=["rel","target","hreflang","type"],Pe={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 Le(e){if(!e)return null;var t={};return De.forEach((function(A){j(e[A])||(t[A]=e[A])})),t}function Re(e,t){for(var A="",n=0;ne[0]&&A=t&&e<=A}function Ve(e){return"object"===typeof e&&null!==e}function Ze(e,t){var A=d({},e);return e&&t&&Object.keys(t).forEach((function(e){Ve(A[e])?Array.isArray(t[e])?A[e]=Ue(t[e]):A.hasOwnProperty(e)?A[e]=Ze(A[e],t[e]):A[e]=Ge(t[e]):A[e]=t[e]})),A}function Ue(e){return e.map((function(e){return Ve(e)?Array.isArray(e)?Ue(e):Ge(e):e}))}function Ge(e){var t=Object.keys(e);return t.length?t.reduce((function(t,A){return Ve(e[A])?t[A]=Array.isArray(e[A])?Ue(e[A]):Ge(e[A]):t[A]=e[A],t}),{}):e}function Ye(e,t){return void 0===t&&(t={}),Object.keys(t).forEach((function(A){e.hasOwnProperty(A)&&"object"===typeof e[A]?Array.isArray(t[A])?e[A]=t[A]:Ye(e[A],t[A]):e[A]=t[A]})),e}function Ke(e,t){return e>t?[t,e]:[e,t]}var Je=N;function Qe(e){var t;try{t=Array.prototype.slice.call(e)}catch(A){t=[],Je(e,(function(e){t.push(e)}))}return t}var _e=Qe;function $e(e,t){var A=e.nodes.paragraph;return t?A.create(null,w(t)?e.text(t):t):A.createAndFill()}function et(e,t,A){return e.text(t,A)}function tt(e,t,A){void 0===A&&(A=t);var n=e.doc.content.size,r=n>0?n-1:1;return o["TextSelection"].create(e.doc,Math.min(t,r),Math.min(A,r))}function At(e,t,A){var n=t.pos;return e.replaceWith(n,n,$e(A)),e.setSelection(tt(e,n+1))}function nt(e){for(var t=e.state,A=e.from,r=e.startIndex,i=e.endIndex,o=e.createText,a=t.tr,s=t.doc,l=t.schema,c=r;c<=i;c+=1){var u=s.child(c),h=u.nodeSize,d=u.textContent,f=u.content,p=o(d),m=p?et(l,p):n["Fragment"].empty,g=a.mapping.map(A),v=g+f.size;a.replaceWith(g,v,m),A+=h}return a}function rt(e,t,A,n){var r=A.length;e.split(t).delete(t-r,t).insert(e.mapping.map(t),n).setSelection(tt(e,e.mapping.map(t)-r))}function it(e){return e.sourcepos[0][0]}function ot(e){return e.sourcepos[1][0]}function at(e){return e.sourcepos[0][1]}function st(e){return e.sourcepos[1][1]}function lt(e){var t=e.type;return"htmlBlock"===t||"htmlInline"===t}function ct(e){var t=e.type;return"strike"===t||"strong"===t||"emph"===t||"code"===t||"link"===t||"image"===t}function ut(e){return e&&"codeBlock"===e.type}function ht(e){return e&&("item"===e.type||"list"===e.type)}function dt(e){return ht(e)&&"ordered"===e.listData.type}function ft(e){return ht(e)&&"ordered"!==e.listData.type}function pt(e){return e&&("tableCell"===e.type||"tableDelimCell"===e.type)}function mt(e){switch(e.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 gt(e,t,A){void 0===A&&(A=!0),e=A?e:e.parent;while(e&&"document"!==e.type){if(t(e))return e;e=e.parent}return null}function vt(e,t,A){void 0===A&&(A=!0),e=A?e:e.parent;while(e&&"document"!==e.type)t(e),e=e.parent}function bt(e,t){return[e[0],e[1]+t]}function yt(e,t){return[e[0],t]}function wt(e){var t=e.firstChild.literal;switch(e.type){case"emph":return"*"+t+"*";case"strong":return"**"+t+"**";case"strike":return"~~"+t+"~~";case"code":return"`"+t+"`";case"link":case"image":var A=e,n=A.destination,r=A.title,i="link"===e.type?"":"!";return i+"["+t+"]("+n+(r?' "'+r+'"':"")+")";default:return null}}function xt(e){switch(e.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 kt(e){var t=[],A=e.walker(),n=null;while(n=A.next()){var r=n.node;"text"===r.type&&t.push(r.literal)}return t.join("")}var Tt=[],Nt={},Ct=/\$\$widget\d+\s/;function Mt(e){var t=e.search(Ct);if(-1!==t){var A=e.substring(t),n=A.replace(Ct,"").replace("$$","");e=e.substring(0,t),e+=Mt(n)}return e}function Et(e,t){return"$$"+e+" "+t+"$$"}function St(e,t){var A=Nt[e],n=A.rule,r=A.toDOM,i=Mt(t).match(n);return i&&(t=i[0]),r(t)}function zt(){return Tt}function Ot(e){Tt=e,Tt.forEach((function(e,t){Nt["widget"+t]=e}))}function Dt(e,t,A,n){return e.concat(Pt(t,A,n))}function Pt(e,t,A){void 0===A&&(A=0);var n=[],r=(Tt[A]||{}).rule,i=A+1;if(e=Mt(e),r&&r.test(e)){var o=void 0;while(-1!==(o=e.search(r))){var a=e.substring(0,o);a&&(n=Dt(n,a,t,i)),e=e.substring(o);var s=e.match(r)[0],l="widget"+A;n.push(t.nodes.widget.create({info:l},t.text(Et(l,s)))),e=e.substring(s.length)}e&&(n=Dt(n,e,t,i))}else e&&(n=A-1)}var qt=jt,Ht=I,Wt=_e,Xt=Element.prototype,Vt=Xt.matches||Xt.webkitMatchesSelector||Xt.mozMatchesSelector||Xt.msMatchesSelector||function(e){var t=this.document||this.ownerDocument;return Ht(this,Wt(t.querySelectorAll(e)))>-1};function Zt(e,t){return Vt.call(e,t)}var Ut=Zt,Gt="[A-Za-z][A-Za-z0-9-]*",Yt="[a-zA-Z_:][a-zA-Z0-9:._-]*",Kt="[^\"'=<>`\\x00-\\x20]+",Jt="'[^']*'",Qt='"[^"]*"',_t="(?:"+Kt+"|"+Jt+"|"+Qt+")",$t="(?:\\s*=\\s*"+_t+")",eA="(?:\\s+"+Yt+$t+"?)",tA="<("+Gt+")("+eA+")*\\s*/?>",AA="]",nA="(?:"+tA+"|"+AA+")",rA=new RegExp("^"+nA,"i"),iA=//i,oA=/|/,aA="

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

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