import{h as m0}from"./naive-ui-fedd20b1.js";var Qu={exports:{}},Ll;function ks(){return Ll||(Ll=1,function(n,a){(function(d,x){n.exports=x()})(typeof self<"u"?self:m0,function(){return function(){var s={};(function(){s.d=function(m,r){for(var t in r)s.o(r,t)&&!s.o(m,t)&&Object.defineProperty(m,t,{enumerable:!0,get:r[t]})}})(),function(){s.o=function(m,r){return Object.prototype.hasOwnProperty.call(m,r)}}();var d={};s.d(d,{default:function(){return Yu}});var x=function m(r,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var i="KaTeX parse error: "+r,l,c,v=t&&t.loc;if(v&&v.start<=v.end){var A=v.lexer.input;l=v.start,c=v.end,l===A.length?i+=" at end of input: ":i+=" at position "+(l+1)+": ";var D=A.slice(l,c).replace(/[^]/g,"$&̲"),M;l>15?M="…"+A.slice(l-15,l):M=A.slice(0,l);var N;c+15":">","<":"<",'"':""","'":"'"},V=/[&><"']/g;function W(m){return String(m).replace(V,function(r){return q[r]})}var j=function m(r){return r.type==="ordgroup"||r.type==="color"?r.body.length===1?m(r.body[0]):r:r.type==="font"?m(r.body):r},ke=function(r){var t=j(r);return t.type==="mathord"||t.type==="textord"||t.type==="atom"},ve=function(r){if(!r)throw new Error("Expected non-null, but got "+String(r));return r},De=function(r){var t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(r);return t!=null?t[1]:"_relative"},Z={contains:C,deflt:B,escape:W,hyphenate:I,getBaseElem:j,isCharacterBox:ke,protocolFromUrl:De},be={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(r){return"#"+r}},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(r,t){return t.push(r),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(r){return Math.max(0,r)},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(r){return Math.max(0,r)},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(r){return Math.max(0,r)},cli:"-e, --max-expand ",cliProcessor:function(r){return r==="Infinity"?1/0:parseInt(r)}},globalGroup:{type:"boolean",cli:!1}};function qe(m){if(m.default)return m.default;var r=m.type,t=Array.isArray(r)?r[0]:r;if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}var Ve=function(){function m(t){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,t=t||{};for(var i in be)if(be.hasOwnProperty(i)){var l=be[i];this[i]=t[i]!==void 0?l.processor?l.processor(t[i]):t[i]:qe(l)}}var r=m.prototype;return r.reportNonstrict=function(i,l,c){var v=this.strict;if(typeof v=="function"&&(v=v(i,l,c)),!(!v||v==="ignore")){if(v===!0||v==="error")throw new b("LaTeX-incompatible input and strict mode is set to 'error': "+(l+" ["+i+"]"),c);v==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(l+" ["+i+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+v+"': "+l+" ["+i+"]"))}},r.useStrictBehavior=function(i,l,c){var v=this.strict;if(typeof v=="function")try{v=v(i,l,c)}catch{v="error"}return!v||v==="ignore"?!1:v===!0||v==="error"?!0:v==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(l+" ["+i+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+v+"': "+l+" ["+i+"]")),!1)},r.isTrusted=function(i){i.url&&!i.protocol&&(i.protocol=Z.protocolFromUrl(i.url));var l=typeof this.trust=="function"?this.trust(i):this.trust;return!!l},m}(),Oe=function(){function m(t,i,l){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=i,this.cramped=l}var r=m.prototype;return r.sup=function(){return P[ce[this.id]]},r.sub=function(){return P[re[this.id]]},r.fracNum=function(){return P[we[this.id]]},r.fracDen=function(){return P[Se[this.id]]},r.cramp=function(){return P[_e[this.id]]},r.text=function(){return P[Ee[this.id]]},r.isTight=function(){return this.size>=2},m}(),ir=0,ar=1,ur=2,or=3,Br=4,sr=5,Rr=6,G=7,P=[new Oe(ir,0,!1),new Oe(ar,0,!0),new Oe(ur,1,!1),new Oe(or,1,!0),new Oe(Br,2,!1),new Oe(sr,2,!0),new Oe(Rr,3,!1),new Oe(G,3,!0)],ce=[Br,sr,Br,sr,Rr,G,Rr,G],re=[sr,sr,sr,sr,G,G,G,G],we=[ur,or,Br,sr,Rr,G,Rr,G],Se=[or,or,sr,sr,G,G,G,G],_e=[ar,ar,or,or,sr,sr,G,G],Ee=[ir,ar,ur,or,ur,or,ur,or],ue={DISPLAY:P[ir],TEXT:P[ur],SCRIPT:P[Br],SCRIPTSCRIPT:P[Rr]},Le=[{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 Mr(m){for(var r=0;r=l[0]&&m<=l[1])return t.name}return null}var Ge=[];Le.forEach(function(m){return m.blocks.forEach(function(r){return Ge.push.apply(Ge,r)})});function mr(m){for(var r=0;r=Ge[r]&&m<=Ge[r+1])return!0;return!1}var We=80,wr=function(r,t){return"M95,"+(622+r+t)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.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 s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 c69,-144,104.5,-217.7,106.5,-221 l`+r/2.075+" -"+r+` c5.3,-9.3,12,-14,20,-14 H400000v`+(40+r)+`H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z M`+(834+r)+" "+t+"h400000v"+(40+r)+"h-400000z"},Ir=function(r,t){return"M263,"+(601+r+t)+`c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 l`+r/2.084+" -"+r+` c4.7,-7.3,11,-11,19,-11 H40000v`+(40+r)+`H1012.3 s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z M`+(1001+r)+" "+t+"h400000v"+(40+r)+"h-400000z"},Yt=function(r,t){return"M983 "+(10+r+t)+` l`+r/3.13+" -"+r+` c4,-6.7,10,-10,18,-10 H400000v`+(40+r)+` H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z M`+(1001+r)+" "+t+"h400000v"+(40+r)+"h-400000z"},Ka=function(r,t){return"M424,"+(2398+r+t)+` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-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 s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 l`+r/4.223+" -"+r+`c4,-6.7,10,-10,18,-10 H400000 v`+(40+r)+`H1014.6 s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M`+(1001+r)+" "+t+` h400000v`+(40+r)+"h-400000z"},vr=function(r,t){return"M473,"+(2713+r+t)+` c339.3,-1799.3,509.3,-2700,510,-2702 l`+r/5.298+" -"+r+` c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+r)+`H1017.7 s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 c0,-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 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 606zM`+(1001+r)+" "+t+"h400000v"+(40+r)+"H1017.7z"},pe=function(r){var t=r/2;return"M400000 "+r+" H0 L"+t+" 0 l65 45 L145 "+(r-80)+" H400000z"},ti=function(r,t,i){var l=i-54-t-r;return"M702 "+(r+t)+"H400000"+(40+r)+` H742v`+l+`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 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 219 661 l218 661zM702 `+t+"H400000v"+(40+r)+"H742z"},xt=function(r,t,i){t=1e3*t;var l="";switch(r){case"sqrtMain":l=wr(t,We);break;case"sqrtSize1":l=Ir(t,We);break;case"sqrtSize2":l=Yt(t,We);break;case"sqrtSize3":l=Ka(t,We);break;case"sqrtSize4":l=vr(t,We);break;case"sqrtTall":l=ti(t,We,i)}return l},on=function(r,t){switch(r){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+" H145z"+("M367 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+" H257z"+("M478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z");default:return""}},gr={doubleleftarrow:`M262 157 l10-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 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 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 c2 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 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 -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l -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 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 -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 -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 -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 c-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 -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 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 -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 c-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 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 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 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 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 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 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 H435C64 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 435 0h399565z`,leftgroupunder:`M400000 262 H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 -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 -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 -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 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 -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 -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 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 -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 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 -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 -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 -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 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 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-70-101l-7-8h399905v-40H95l7-8 c28.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 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 c-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 -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 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 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 c100.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 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 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 -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 -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z m368.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 60.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 -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 c0 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 -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 85.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 -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 c0 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 -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 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 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 -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 -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 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l -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 s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 c124.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 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 -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 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 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 -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 -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 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 -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 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 m0 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 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 -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 -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 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 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 -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z m0-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 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 -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 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 M399960 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 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 -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 -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 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 -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 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 c-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 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 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 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 -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 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 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 -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 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 c1 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 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 -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 -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 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 -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 -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 c-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 -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 -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 -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, -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, -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, -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, -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 c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 c-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 s-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 121.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 s2.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 c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-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 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 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-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 -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 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 c2,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 c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -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 c-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 M0 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 c1.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, 1c0,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, -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z M93 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 c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -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 c-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 M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Za=function(r,t){switch(r){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v1759 h347 v-84 H403z 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 M347 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 c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 c-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 c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 c-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 MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+` v1799 H0 v-84 H319z MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v602 h84z M403 1759 V0 H319 V1759 v`+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v602 h84z M347 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 c-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, -36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, 949.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 c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, -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, 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+` c-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 c-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 c0,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 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, -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.")}},Or=function(){function m(t){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=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var r=m.prototype;return r.hasClass=function(i){return Z.contains(this.classes,i)},r.toNode=function(){for(var i=document.createDocumentFragment(),l=0;l=5?r=0:m>=3?r=1:r=2,!b0[r]){var t=b0[r]={cssEmPerMu:y0.quad[r]/18};for(var i in y0)y0.hasOwnProperty(i)&&(t[i]=y0[i][r])}return b0[r]}var Ja=[[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]],ai=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],ui=function(r,t){return t.size<2?r:Ja[r-1][t.size-1]},li=function(){function m(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||m.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=ai[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}var r=m.prototype;return r.extend=function(i){var l={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 c in i)i.hasOwnProperty(c)&&(l[c]=i[c]);return new m(l)},r.havingStyle=function(i){return this.style===i?this:this.extend({style:i,size:ui(this.textSize,i)})},r.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},r.havingSize=function(i){return this.size===i&&this.textSize===i?this:this.extend({style:this.style.text(),size:i,textSize:i,sizeMultiplier:ai[i-1]})},r.havingBaseStyle=function(i){i=i||this.style.text();var l=ui(m.BASESIZE,i);return this.size===l&&this.textSize===m.BASESIZE&&this.style===i?this:this.extend({style:i,size:l})},r.havingBaseSizing=function(){var i;switch(this.style.id){case 4:case 5:i=3;break;case 6:case 7:i=1;break;default:i=6}return this.extend({style:this.style.text(),size:i})},r.withColor=function(i){return this.extend({color:i})},r.withPhantom=function(){return this.extend({phantom:!0})},r.withFont=function(i){return this.extend({font:i})},r.withTextFontFamily=function(i){return this.extend({fontFamily:i,font:""})},r.withTextFontWeight=function(i){return this.extend({fontWeight:i,font:""})},r.withTextFontShape=function(i){return this.extend({fontShape:i,font:""})},r.sizingClasses=function(i){return i.size!==this.size?["sizing","reset-size"+i.size,"size"+this.size]:[]},r.baseSizingClasses=function(){return this.size!==m.BASESIZE?["sizing","reset-size"+this.size,"size"+m.BASESIZE]:[]},r.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=ii(this.size)),this._fontMetrics},r.getColor=function(){return this.phantom?"transparent":this.color},m}();li.BASESIZE=6;var oi=li,Xt={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Qa={ex:!0,em:!0,mu:!0},si=function(r){return typeof r!="string"&&(r=r.unit),r in Xt||r in Qa||r==="ex"},je=function(r,t){var i;if(r.unit in Xt)i=Xt[r.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(r.unit==="mu")i=t.fontMetrics().cssEmPerMu;else{var l;if(t.style.isTight()?l=t.havingStyle(t.style.text()):l=t,r.unit==="ex")i=l.fontMetrics().xHeight;else if(r.unit==="em")i=l.fontMetrics().quad;else throw new b("Invalid unit: '"+r.unit+"'");l!==t&&(i*=l.sizeMultiplier/t.sizeMultiplier)}return Math.min(r.number*i,t.maxSize)},ae=function(r){return+r.toFixed(4)+"em"},it=function(r){return r.filter(function(t){return t}).join(" ")},ci=function(r,t,i){if(this.classes=r||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=i||{},t){t.style.isTight()&&this.classes.push("mtight");var l=t.getColor();l&&(this.style.color=l)}},hi=function(r){var t=document.createElement(r);t.className=it(this.classes);for(var i in this.style)this.style.hasOwnProperty(i)&&(t.style[i]=this.style[i]);for(var l in this.attributes)this.attributes.hasOwnProperty(l)&&t.setAttribute(l,this.attributes[l]);for(var c=0;c",t},Wt=function(){function m(t,i,l,c){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,ci.call(this,t,l,c),this.children=i||[]}var r=m.prototype;return r.setAttribute=function(i,l){this.attributes[i]=l},r.hasClass=function(i){return Z.contains(this.classes,i)},r.toNode=function(){return hi.call(this,"span")},r.toMarkup=function(){return cn.call(this,"span")},m}(),w0=function(){function m(t,i,l,c){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,ci.call(this,i,c),this.children=l||[],this.setAttribute("href",t)}var r=m.prototype;return r.setAttribute=function(i,l){this.attributes[i]=l},r.hasClass=function(i){return Z.contains(this.classes,i)},r.toNode=function(){return hi.call(this,"a")},r.toMarkup=function(){return cn.call(this,"a")},m}(),fi=function(){function m(t,i,l){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=i,this.src=t,this.classes=["mord"],this.style=l}var r=m.prototype;return r.hasClass=function(i){return Z.contains(this.classes,i)},r.toNode=function(){var i=document.createElement("img");i.src=this.src,i.alt=this.alt,i.className="mord";for(var l in this.style)this.style.hasOwnProperty(l)&&(i.style[l]=this.style[l]);return i},r.toMarkup=function(){var i=""+this.alt+"0&&(l=document.createElement("span"),l.style.marginRight=ae(this.italic)),this.classes.length>0&&(l=l||document.createElement("span"),l.className=it(this.classes));for(var c in this.style)this.style.hasOwnProperty(c)&&(l=l||document.createElement("span"),l.style[c]=this.style[c]);return l?(l.appendChild(i),l):i},r.toMarkup=function(){var i=!1,l="0&&(c+="margin-right:"+this.italic+"em;");for(var v in this.style)this.style.hasOwnProperty(v)&&(c+=Z.hyphenate(v)+":"+this.style[v]+";");c&&(i=!0,l+=' style="'+Z.escape(c)+'"');var A=Z.escape(this.text);return i?(l+=">",l+=A,l+="",l):A},m}(),Lr=function(){function m(t,i){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=i||{}}var r=m.prototype;return r.toNode=function(){var i="http://www.w3.org/2000/svg",l=document.createElementNS(i,"svg");for(var c in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,c)&&l.setAttribute(c,this.attributes[c]);for(var v=0;v":""},m}(),Jr=function(){function m(t){this.attributes=void 0,this.attributes=t||{}}var r=m.prototype;return r.toNode=function(){var i="http://www.w3.org/2000/svg",l=document.createElementNS(i,"line");for(var c in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,c)&&l.setAttribute(c,this.attributes[c]);return l},r.toMarkup=function(){var i=" but got "+String(m)+".")}var ru={bin:1,close:1,inner:1,open:1,punct:1,rel:1},tu={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Kt={math:{},text:{}},$e=Kt;function p(m,r,t,i,l,c){Kt[m][l]={font:r,group:t,replace:i},c&&i&&(Kt[m][i]=Kt[m][l])}var g="math",ee="text",S="main",_="ams",Ue="accent-token",he="bin",cr="close",zt="inner",ye="mathord",Ke="op-token",Ar="open",bt="punct",F="rel",Qr="spacing",L="textord";p(g,S,F,"≡","\\equiv",!0),p(g,S,F,"≺","\\prec",!0),p(g,S,F,"≻","\\succ",!0),p(g,S,F,"∼","\\sim",!0),p(g,S,F,"⊥","\\perp"),p(g,S,F,"⪯","\\preceq",!0),p(g,S,F,"⪰","\\succeq",!0),p(g,S,F,"≃","\\simeq",!0),p(g,S,F,"∣","\\mid",!0),p(g,S,F,"≪","\\ll",!0),p(g,S,F,"≫","\\gg",!0),p(g,S,F,"≍","\\asymp",!0),p(g,S,F,"∥","\\parallel"),p(g,S,F,"⋈","\\bowtie",!0),p(g,S,F,"⌣","\\smile",!0),p(g,S,F,"⊑","\\sqsubseteq",!0),p(g,S,F,"⊒","\\sqsupseteq",!0),p(g,S,F,"≐","\\doteq",!0),p(g,S,F,"⌢","\\frown",!0),p(g,S,F,"∋","\\ni",!0),p(g,S,F,"∝","\\propto",!0),p(g,S,F,"⊢","\\vdash",!0),p(g,S,F,"⊣","\\dashv",!0),p(g,S,F,"∋","\\owns"),p(g,S,bt,".","\\ldotp"),p(g,S,bt,"⋅","\\cdotp"),p(g,S,L,"#","\\#"),p(ee,S,L,"#","\\#"),p(g,S,L,"&","\\&"),p(ee,S,L,"&","\\&"),p(g,S,L,"ℵ","\\aleph",!0),p(g,S,L,"∀","\\forall",!0),p(g,S,L,"ℏ","\\hbar",!0),p(g,S,L,"∃","\\exists",!0),p(g,S,L,"∇","\\nabla",!0),p(g,S,L,"♭","\\flat",!0),p(g,S,L,"ℓ","\\ell",!0),p(g,S,L,"♮","\\natural",!0),p(g,S,L,"♣","\\clubsuit",!0),p(g,S,L,"℘","\\wp",!0),p(g,S,L,"♯","\\sharp",!0),p(g,S,L,"♢","\\diamondsuit",!0),p(g,S,L,"ℜ","\\Re",!0),p(g,S,L,"♡","\\heartsuit",!0),p(g,S,L,"ℑ","\\Im",!0),p(g,S,L,"♠","\\spadesuit",!0),p(g,S,L,"§","\\S",!0),p(ee,S,L,"§","\\S"),p(g,S,L,"¶","\\P",!0),p(ee,S,L,"¶","\\P"),p(g,S,L,"†","\\dag"),p(ee,S,L,"†","\\dag"),p(ee,S,L,"†","\\textdagger"),p(g,S,L,"‡","\\ddag"),p(ee,S,L,"‡","\\ddag"),p(ee,S,L,"‡","\\textdaggerdbl"),p(g,S,cr,"⎱","\\rmoustache",!0),p(g,S,Ar,"⎰","\\lmoustache",!0),p(g,S,cr,"⟯","\\rgroup",!0),p(g,S,Ar,"⟮","\\lgroup",!0),p(g,S,he,"∓","\\mp",!0),p(g,S,he,"⊖","\\ominus",!0),p(g,S,he,"⊎","\\uplus",!0),p(g,S,he,"⊓","\\sqcap",!0),p(g,S,he,"∗","\\ast"),p(g,S,he,"⊔","\\sqcup",!0),p(g,S,he,"◯","\\bigcirc",!0),p(g,S,he,"∙","\\bullet",!0),p(g,S,he,"‡","\\ddagger"),p(g,S,he,"≀","\\wr",!0),p(g,S,he,"⨿","\\amalg"),p(g,S,he,"&","\\And"),p(g,S,F,"⟵","\\longleftarrow",!0),p(g,S,F,"⇐","\\Leftarrow",!0),p(g,S,F,"⟸","\\Longleftarrow",!0),p(g,S,F,"⟶","\\longrightarrow",!0),p(g,S,F,"⇒","\\Rightarrow",!0),p(g,S,F,"⟹","\\Longrightarrow",!0),p(g,S,F,"↔","\\leftrightarrow",!0),p(g,S,F,"⟷","\\longleftrightarrow",!0),p(g,S,F,"⇔","\\Leftrightarrow",!0),p(g,S,F,"⟺","\\Longleftrightarrow",!0),p(g,S,F,"↦","\\mapsto",!0),p(g,S,F,"⟼","\\longmapsto",!0),p(g,S,F,"↗","\\nearrow",!0),p(g,S,F,"↩","\\hookleftarrow",!0),p(g,S,F,"↪","\\hookrightarrow",!0),p(g,S,F,"↘","\\searrow",!0),p(g,S,F,"↼","\\leftharpoonup",!0),p(g,S,F,"⇀","\\rightharpoonup",!0),p(g,S,F,"↙","\\swarrow",!0),p(g,S,F,"↽","\\leftharpoondown",!0),p(g,S,F,"⇁","\\rightharpoondown",!0),p(g,S,F,"↖","\\nwarrow",!0),p(g,S,F,"⇌","\\rightleftharpoons",!0),p(g,_,F,"≮","\\nless",!0),p(g,_,F,"","\\@nleqslant"),p(g,_,F,"","\\@nleqq"),p(g,_,F,"⪇","\\lneq",!0),p(g,_,F,"≨","\\lneqq",!0),p(g,_,F,"","\\@lvertneqq"),p(g,_,F,"⋦","\\lnsim",!0),p(g,_,F,"⪉","\\lnapprox",!0),p(g,_,F,"⊀","\\nprec",!0),p(g,_,F,"⋠","\\npreceq",!0),p(g,_,F,"⋨","\\precnsim",!0),p(g,_,F,"⪹","\\precnapprox",!0),p(g,_,F,"≁","\\nsim",!0),p(g,_,F,"","\\@nshortmid"),p(g,_,F,"∤","\\nmid",!0),p(g,_,F,"⊬","\\nvdash",!0),p(g,_,F,"⊭","\\nvDash",!0),p(g,_,F,"⋪","\\ntriangleleft"),p(g,_,F,"⋬","\\ntrianglelefteq",!0),p(g,_,F,"⊊","\\subsetneq",!0),p(g,_,F,"","\\@varsubsetneq"),p(g,_,F,"⫋","\\subsetneqq",!0),p(g,_,F,"","\\@varsubsetneqq"),p(g,_,F,"≯","\\ngtr",!0),p(g,_,F,"","\\@ngeqslant"),p(g,_,F,"","\\@ngeqq"),p(g,_,F,"⪈","\\gneq",!0),p(g,_,F,"≩","\\gneqq",!0),p(g,_,F,"","\\@gvertneqq"),p(g,_,F,"⋧","\\gnsim",!0),p(g,_,F,"⪊","\\gnapprox",!0),p(g,_,F,"⊁","\\nsucc",!0),p(g,_,F,"⋡","\\nsucceq",!0),p(g,_,F,"⋩","\\succnsim",!0),p(g,_,F,"⪺","\\succnapprox",!0),p(g,_,F,"≆","\\ncong",!0),p(g,_,F,"","\\@nshortparallel"),p(g,_,F,"∦","\\nparallel",!0),p(g,_,F,"⊯","\\nVDash",!0),p(g,_,F,"⋫","\\ntriangleright"),p(g,_,F,"⋭","\\ntrianglerighteq",!0),p(g,_,F,"","\\@nsupseteqq"),p(g,_,F,"⊋","\\supsetneq",!0),p(g,_,F,"","\\@varsupsetneq"),p(g,_,F,"⫌","\\supsetneqq",!0),p(g,_,F,"","\\@varsupsetneqq"),p(g,_,F,"⊮","\\nVdash",!0),p(g,_,F,"⪵","\\precneqq",!0),p(g,_,F,"⪶","\\succneqq",!0),p(g,_,F,"","\\@nsubseteqq"),p(g,_,he,"⊴","\\unlhd"),p(g,_,he,"⊵","\\unrhd"),p(g,_,F,"↚","\\nleftarrow",!0),p(g,_,F,"↛","\\nrightarrow",!0),p(g,_,F,"⇍","\\nLeftarrow",!0),p(g,_,F,"⇏","\\nRightarrow",!0),p(g,_,F,"↮","\\nleftrightarrow",!0),p(g,_,F,"⇎","\\nLeftrightarrow",!0),p(g,_,F,"△","\\vartriangle"),p(g,_,L,"ℏ","\\hslash"),p(g,_,L,"▽","\\triangledown"),p(g,_,L,"◊","\\lozenge"),p(g,_,L,"Ⓢ","\\circledS"),p(g,_,L,"®","\\circledR"),p(ee,_,L,"®","\\circledR"),p(g,_,L,"∡","\\measuredangle",!0),p(g,_,L,"∄","\\nexists"),p(g,_,L,"℧","\\mho"),p(g,_,L,"Ⅎ","\\Finv",!0),p(g,_,L,"⅁","\\Game",!0),p(g,_,L,"‵","\\backprime"),p(g,_,L,"▲","\\blacktriangle"),p(g,_,L,"▼","\\blacktriangledown"),p(g,_,L,"■","\\blacksquare"),p(g,_,L,"⧫","\\blacklozenge"),p(g,_,L,"★","\\bigstar"),p(g,_,L,"∢","\\sphericalangle",!0),p(g,_,L,"∁","\\complement",!0),p(g,_,L,"ð","\\eth",!0),p(ee,S,L,"ð","ð"),p(g,_,L,"╱","\\diagup"),p(g,_,L,"╲","\\diagdown"),p(g,_,L,"□","\\square"),p(g,_,L,"□","\\Box"),p(g,_,L,"◊","\\Diamond"),p(g,_,L,"¥","\\yen",!0),p(ee,_,L,"¥","\\yen",!0),p(g,_,L,"✓","\\checkmark",!0),p(ee,_,L,"✓","\\checkmark"),p(g,_,L,"ℶ","\\beth",!0),p(g,_,L,"ℸ","\\daleth",!0),p(g,_,L,"ℷ","\\gimel",!0),p(g,_,L,"ϝ","\\digamma",!0),p(g,_,L,"ϰ","\\varkappa"),p(g,_,Ar,"┌","\\@ulcorner",!0),p(g,_,cr,"┐","\\@urcorner",!0),p(g,_,Ar,"└","\\@llcorner",!0),p(g,_,cr,"┘","\\@lrcorner",!0),p(g,_,F,"≦","\\leqq",!0),p(g,_,F,"⩽","\\leqslant",!0),p(g,_,F,"⪕","\\eqslantless",!0),p(g,_,F,"≲","\\lesssim",!0),p(g,_,F,"⪅","\\lessapprox",!0),p(g,_,F,"≊","\\approxeq",!0),p(g,_,he,"⋖","\\lessdot"),p(g,_,F,"⋘","\\lll",!0),p(g,_,F,"≶","\\lessgtr",!0),p(g,_,F,"⋚","\\lesseqgtr",!0),p(g,_,F,"⪋","\\lesseqqgtr",!0),p(g,_,F,"≑","\\doteqdot"),p(g,_,F,"≓","\\risingdotseq",!0),p(g,_,F,"≒","\\fallingdotseq",!0),p(g,_,F,"∽","\\backsim",!0),p(g,_,F,"⋍","\\backsimeq",!0),p(g,_,F,"⫅","\\subseteqq",!0),p(g,_,F,"⋐","\\Subset",!0),p(g,_,F,"⊏","\\sqsubset",!0),p(g,_,F,"≼","\\preccurlyeq",!0),p(g,_,F,"⋞","\\curlyeqprec",!0),p(g,_,F,"≾","\\precsim",!0),p(g,_,F,"⪷","\\precapprox",!0),p(g,_,F,"⊲","\\vartriangleleft"),p(g,_,F,"⊴","\\trianglelefteq"),p(g,_,F,"⊨","\\vDash",!0),p(g,_,F,"⊪","\\Vvdash",!0),p(g,_,F,"⌣","\\smallsmile"),p(g,_,F,"⌢","\\smallfrown"),p(g,_,F,"≏","\\bumpeq",!0),p(g,_,F,"≎","\\Bumpeq",!0),p(g,_,F,"≧","\\geqq",!0),p(g,_,F,"⩾","\\geqslant",!0),p(g,_,F,"⪖","\\eqslantgtr",!0),p(g,_,F,"≳","\\gtrsim",!0),p(g,_,F,"⪆","\\gtrapprox",!0),p(g,_,he,"⋗","\\gtrdot"),p(g,_,F,"⋙","\\ggg",!0),p(g,_,F,"≷","\\gtrless",!0),p(g,_,F,"⋛","\\gtreqless",!0),p(g,_,F,"⪌","\\gtreqqless",!0),p(g,_,F,"≖","\\eqcirc",!0),p(g,_,F,"≗","\\circeq",!0),p(g,_,F,"≜","\\triangleq",!0),p(g,_,F,"∼","\\thicksim"),p(g,_,F,"≈","\\thickapprox"),p(g,_,F,"⫆","\\supseteqq",!0),p(g,_,F,"⋑","\\Supset",!0),p(g,_,F,"⊐","\\sqsupset",!0),p(g,_,F,"≽","\\succcurlyeq",!0),p(g,_,F,"⋟","\\curlyeqsucc",!0),p(g,_,F,"≿","\\succsim",!0),p(g,_,F,"⪸","\\succapprox",!0),p(g,_,F,"⊳","\\vartriangleright"),p(g,_,F,"⊵","\\trianglerighteq"),p(g,_,F,"⊩","\\Vdash",!0),p(g,_,F,"∣","\\shortmid"),p(g,_,F,"∥","\\shortparallel"),p(g,_,F,"≬","\\between",!0),p(g,_,F,"⋔","\\pitchfork",!0),p(g,_,F,"∝","\\varpropto"),p(g,_,F,"◀","\\blacktriangleleft"),p(g,_,F,"∴","\\therefore",!0),p(g,_,F,"∍","\\backepsilon"),p(g,_,F,"▶","\\blacktriangleright"),p(g,_,F,"∵","\\because",!0),p(g,_,F,"⋘","\\llless"),p(g,_,F,"⋙","\\gggtr"),p(g,_,he,"⊲","\\lhd"),p(g,_,he,"⊳","\\rhd"),p(g,_,F,"≂","\\eqsim",!0),p(g,S,F,"⋈","\\Join"),p(g,_,F,"≑","\\Doteq",!0),p(g,_,he,"∔","\\dotplus",!0),p(g,_,he,"∖","\\smallsetminus"),p(g,_,he,"⋒","\\Cap",!0),p(g,_,he,"⋓","\\Cup",!0),p(g,_,he,"⩞","\\doublebarwedge",!0),p(g,_,he,"⊟","\\boxminus",!0),p(g,_,he,"⊞","\\boxplus",!0),p(g,_,he,"⋇","\\divideontimes",!0),p(g,_,he,"⋉","\\ltimes",!0),p(g,_,he,"⋊","\\rtimes",!0),p(g,_,he,"⋋","\\leftthreetimes",!0),p(g,_,he,"⋌","\\rightthreetimes",!0),p(g,_,he,"⋏","\\curlywedge",!0),p(g,_,he,"⋎","\\curlyvee",!0),p(g,_,he,"⊝","\\circleddash",!0),p(g,_,he,"⊛","\\circledast",!0),p(g,_,he,"⋅","\\centerdot"),p(g,_,he,"⊺","\\intercal",!0),p(g,_,he,"⋒","\\doublecap"),p(g,_,he,"⋓","\\doublecup"),p(g,_,he,"⊠","\\boxtimes",!0),p(g,_,F,"⇢","\\dashrightarrow",!0),p(g,_,F,"⇠","\\dashleftarrow",!0),p(g,_,F,"⇇","\\leftleftarrows",!0),p(g,_,F,"⇆","\\leftrightarrows",!0),p(g,_,F,"⇚","\\Lleftarrow",!0),p(g,_,F,"↞","\\twoheadleftarrow",!0),p(g,_,F,"↢","\\leftarrowtail",!0),p(g,_,F,"↫","\\looparrowleft",!0),p(g,_,F,"⇋","\\leftrightharpoons",!0),p(g,_,F,"↶","\\curvearrowleft",!0),p(g,_,F,"↺","\\circlearrowleft",!0),p(g,_,F,"↰","\\Lsh",!0),p(g,_,F,"⇈","\\upuparrows",!0),p(g,_,F,"↿","\\upharpoonleft",!0),p(g,_,F,"⇃","\\downharpoonleft",!0),p(g,S,F,"⊶","\\origof",!0),p(g,S,F,"⊷","\\imageof",!0),p(g,_,F,"⊸","\\multimap",!0),p(g,_,F,"↭","\\leftrightsquigarrow",!0),p(g,_,F,"⇉","\\rightrightarrows",!0),p(g,_,F,"⇄","\\rightleftarrows",!0),p(g,_,F,"↠","\\twoheadrightarrow",!0),p(g,_,F,"↣","\\rightarrowtail",!0),p(g,_,F,"↬","\\looparrowright",!0),p(g,_,F,"↷","\\curvearrowright",!0),p(g,_,F,"↻","\\circlearrowright",!0),p(g,_,F,"↱","\\Rsh",!0),p(g,_,F,"⇊","\\downdownarrows",!0),p(g,_,F,"↾","\\upharpoonright",!0),p(g,_,F,"⇂","\\downharpoonright",!0),p(g,_,F,"⇝","\\rightsquigarrow",!0),p(g,_,F,"⇝","\\leadsto"),p(g,_,F,"⇛","\\Rrightarrow",!0),p(g,_,F,"↾","\\restriction"),p(g,S,L,"‘","`"),p(g,S,L,"$","\\$"),p(ee,S,L,"$","\\$"),p(ee,S,L,"$","\\textdollar"),p(g,S,L,"%","\\%"),p(ee,S,L,"%","\\%"),p(g,S,L,"_","\\_"),p(ee,S,L,"_","\\_"),p(ee,S,L,"_","\\textunderscore"),p(g,S,L,"∠","\\angle",!0),p(g,S,L,"∞","\\infty",!0),p(g,S,L,"′","\\prime"),p(g,S,L,"△","\\triangle"),p(g,S,L,"Γ","\\Gamma",!0),p(g,S,L,"Δ","\\Delta",!0),p(g,S,L,"Θ","\\Theta",!0),p(g,S,L,"Λ","\\Lambda",!0),p(g,S,L,"Ξ","\\Xi",!0),p(g,S,L,"Π","\\Pi",!0),p(g,S,L,"Σ","\\Sigma",!0),p(g,S,L,"Υ","\\Upsilon",!0),p(g,S,L,"Φ","\\Phi",!0),p(g,S,L,"Ψ","\\Psi",!0),p(g,S,L,"Ω","\\Omega",!0),p(g,S,L,"A","Α"),p(g,S,L,"B","Β"),p(g,S,L,"E","Ε"),p(g,S,L,"Z","Ζ"),p(g,S,L,"H","Η"),p(g,S,L,"I","Ι"),p(g,S,L,"K","Κ"),p(g,S,L,"M","Μ"),p(g,S,L,"N","Ν"),p(g,S,L,"O","Ο"),p(g,S,L,"P","Ρ"),p(g,S,L,"T","Τ"),p(g,S,L,"X","Χ"),p(g,S,L,"¬","\\neg",!0),p(g,S,L,"¬","\\lnot"),p(g,S,L,"⊤","\\top"),p(g,S,L,"⊥","\\bot"),p(g,S,L,"∅","\\emptyset"),p(g,_,L,"∅","\\varnothing"),p(g,S,ye,"α","\\alpha",!0),p(g,S,ye,"β","\\beta",!0),p(g,S,ye,"γ","\\gamma",!0),p(g,S,ye,"δ","\\delta",!0),p(g,S,ye,"ϵ","\\epsilon",!0),p(g,S,ye,"ζ","\\zeta",!0),p(g,S,ye,"η","\\eta",!0),p(g,S,ye,"θ","\\theta",!0),p(g,S,ye,"ι","\\iota",!0),p(g,S,ye,"κ","\\kappa",!0),p(g,S,ye,"λ","\\lambda",!0),p(g,S,ye,"μ","\\mu",!0),p(g,S,ye,"ν","\\nu",!0),p(g,S,ye,"ξ","\\xi",!0),p(g,S,ye,"ο","\\omicron",!0),p(g,S,ye,"π","\\pi",!0),p(g,S,ye,"ρ","\\rho",!0),p(g,S,ye,"σ","\\sigma",!0),p(g,S,ye,"τ","\\tau",!0),p(g,S,ye,"υ","\\upsilon",!0),p(g,S,ye,"ϕ","\\phi",!0),p(g,S,ye,"χ","\\chi",!0),p(g,S,ye,"ψ","\\psi",!0),p(g,S,ye,"ω","\\omega",!0),p(g,S,ye,"ε","\\varepsilon",!0),p(g,S,ye,"ϑ","\\vartheta",!0),p(g,S,ye,"ϖ","\\varpi",!0),p(g,S,ye,"ϱ","\\varrho",!0),p(g,S,ye,"ς","\\varsigma",!0),p(g,S,ye,"φ","\\varphi",!0),p(g,S,he,"∗","*",!0),p(g,S,he,"+","+"),p(g,S,he,"−","-",!0),p(g,S,he,"⋅","\\cdot",!0),p(g,S,he,"∘","\\circ",!0),p(g,S,he,"÷","\\div",!0),p(g,S,he,"±","\\pm",!0),p(g,S,he,"×","\\times",!0),p(g,S,he,"∩","\\cap",!0),p(g,S,he,"∪","\\cup",!0),p(g,S,he,"∖","\\setminus",!0),p(g,S,he,"∧","\\land"),p(g,S,he,"∨","\\lor"),p(g,S,he,"∧","\\wedge",!0),p(g,S,he,"∨","\\vee",!0),p(g,S,L,"√","\\surd"),p(g,S,Ar,"⟨","\\langle",!0),p(g,S,Ar,"∣","\\lvert"),p(g,S,Ar,"∥","\\lVert"),p(g,S,cr,"?","?"),p(g,S,cr,"!","!"),p(g,S,cr,"⟩","\\rangle",!0),p(g,S,cr,"∣","\\rvert"),p(g,S,cr,"∥","\\rVert"),p(g,S,F,"=","="),p(g,S,F,":",":"),p(g,S,F,"≈","\\approx",!0),p(g,S,F,"≅","\\cong",!0),p(g,S,F,"≥","\\ge"),p(g,S,F,"≥","\\geq",!0),p(g,S,F,"←","\\gets"),p(g,S,F,">","\\gt",!0),p(g,S,F,"∈","\\in",!0),p(g,S,F,"","\\@not"),p(g,S,F,"⊂","\\subset",!0),p(g,S,F,"⊃","\\supset",!0),p(g,S,F,"⊆","\\subseteq",!0),p(g,S,F,"⊇","\\supseteq",!0),p(g,_,F,"⊈","\\nsubseteq",!0),p(g,_,F,"⊉","\\nsupseteq",!0),p(g,S,F,"⊨","\\models"),p(g,S,F,"←","\\leftarrow",!0),p(g,S,F,"≤","\\le"),p(g,S,F,"≤","\\leq",!0),p(g,S,F,"<","\\lt",!0),p(g,S,F,"→","\\rightarrow",!0),p(g,S,F,"→","\\to"),p(g,_,F,"≱","\\ngeq",!0),p(g,_,F,"≰","\\nleq",!0),p(g,S,Qr," ","\\ "),p(g,S,Qr," ","\\space"),p(g,S,Qr," ","\\nobreakspace"),p(ee,S,Qr," ","\\ "),p(ee,S,Qr," "," "),p(ee,S,Qr," ","\\space"),p(ee,S,Qr," ","\\nobreakspace"),p(g,S,Qr,null,"\\nobreak"),p(g,S,Qr,null,"\\allowbreak"),p(g,S,bt,",",","),p(g,S,bt,";",";"),p(g,_,he,"⊼","\\barwedge",!0),p(g,_,he,"⊻","\\veebar",!0),p(g,S,he,"⊙","\\odot",!0),p(g,S,he,"⊕","\\oplus",!0),p(g,S,he,"⊗","\\otimes",!0),p(g,S,L,"∂","\\partial",!0),p(g,S,he,"⊘","\\oslash",!0),p(g,_,he,"⊚","\\circledcirc",!0),p(g,_,he,"⊡","\\boxdot",!0),p(g,S,he,"△","\\bigtriangleup"),p(g,S,he,"▽","\\bigtriangledown"),p(g,S,he,"†","\\dagger"),p(g,S,he,"⋄","\\diamond"),p(g,S,he,"⋆","\\star"),p(g,S,he,"◃","\\triangleleft"),p(g,S,he,"▹","\\triangleright"),p(g,S,Ar,"{","\\{"),p(ee,S,L,"{","\\{"),p(ee,S,L,"{","\\textbraceleft"),p(g,S,cr,"}","\\}"),p(ee,S,L,"}","\\}"),p(ee,S,L,"}","\\textbraceright"),p(g,S,Ar,"{","\\lbrace"),p(g,S,cr,"}","\\rbrace"),p(g,S,Ar,"[","\\lbrack",!0),p(ee,S,L,"[","\\lbrack",!0),p(g,S,cr,"]","\\rbrack",!0),p(ee,S,L,"]","\\rbrack",!0),p(g,S,Ar,"(","\\lparen",!0),p(g,S,cr,")","\\rparen",!0),p(ee,S,L,"<","\\textless",!0),p(ee,S,L,">","\\textgreater",!0),p(g,S,Ar,"⌊","\\lfloor",!0),p(g,S,cr,"⌋","\\rfloor",!0),p(g,S,Ar,"⌈","\\lceil",!0),p(g,S,cr,"⌉","\\rceil",!0),p(g,S,L,"\\","\\backslash"),p(g,S,L,"∣","|"),p(g,S,L,"∣","\\vert"),p(ee,S,L,"|","\\textbar",!0),p(g,S,L,"∥","\\|"),p(g,S,L,"∥","\\Vert"),p(ee,S,L,"∥","\\textbardbl"),p(ee,S,L,"~","\\textasciitilde"),p(ee,S,L,"\\","\\textbackslash"),p(ee,S,L,"^","\\textasciicircum"),p(g,S,F,"↑","\\uparrow",!0),p(g,S,F,"⇑","\\Uparrow",!0),p(g,S,F,"↓","\\downarrow",!0),p(g,S,F,"⇓","\\Downarrow",!0),p(g,S,F,"↕","\\updownarrow",!0),p(g,S,F,"⇕","\\Updownarrow",!0),p(g,S,Ke,"∐","\\coprod"),p(g,S,Ke,"⋁","\\bigvee"),p(g,S,Ke,"⋀","\\bigwedge"),p(g,S,Ke,"⨄","\\biguplus"),p(g,S,Ke,"⋂","\\bigcap"),p(g,S,Ke,"⋃","\\bigcup"),p(g,S,Ke,"∫","\\int"),p(g,S,Ke,"∫","\\intop"),p(g,S,Ke,"∬","\\iint"),p(g,S,Ke,"∭","\\iiint"),p(g,S,Ke,"∏","\\prod"),p(g,S,Ke,"∑","\\sum"),p(g,S,Ke,"⨂","\\bigotimes"),p(g,S,Ke,"⨁","\\bigoplus"),p(g,S,Ke,"⨀","\\bigodot"),p(g,S,Ke,"∮","\\oint"),p(g,S,Ke,"∯","\\oiint"),p(g,S,Ke,"∰","\\oiiint"),p(g,S,Ke,"⨆","\\bigsqcup"),p(g,S,Ke,"∫","\\smallint"),p(ee,S,zt,"…","\\textellipsis"),p(g,S,zt,"…","\\mathellipsis"),p(ee,S,zt,"…","\\ldots",!0),p(g,S,zt,"…","\\ldots",!0),p(g,S,zt,"⋯","\\@cdots",!0),p(g,S,zt,"⋱","\\ddots",!0),p(g,S,L,"⋮","\\varvdots"),p(g,S,Ue,"ˊ","\\acute"),p(g,S,Ue,"ˋ","\\grave"),p(g,S,Ue,"¨","\\ddot"),p(g,S,Ue,"~","\\tilde"),p(g,S,Ue,"ˉ","\\bar"),p(g,S,Ue,"˘","\\breve"),p(g,S,Ue,"ˇ","\\check"),p(g,S,Ue,"^","\\hat"),p(g,S,Ue,"⃗","\\vec"),p(g,S,Ue,"˙","\\dot"),p(g,S,Ue,"˚","\\mathring"),p(g,S,ye,"","\\@imath"),p(g,S,ye,"","\\@jmath"),p(g,S,L,"ı","ı"),p(g,S,L,"ȷ","ȷ"),p(ee,S,L,"ı","\\i",!0),p(ee,S,L,"ȷ","\\j",!0),p(ee,S,L,"ß","\\ss",!0),p(ee,S,L,"æ","\\ae",!0),p(ee,S,L,"œ","\\oe",!0),p(ee,S,L,"ø","\\o",!0),p(ee,S,L,"Æ","\\AE",!0),p(ee,S,L,"Œ","\\OE",!0),p(ee,S,L,"Ø","\\O",!0),p(ee,S,Ue,"ˊ","\\'"),p(ee,S,Ue,"ˋ","\\`"),p(ee,S,Ue,"ˆ","\\^"),p(ee,S,Ue,"˜","\\~"),p(ee,S,Ue,"ˉ","\\="),p(ee,S,Ue,"˘","\\u"),p(ee,S,Ue,"˙","\\."),p(ee,S,Ue,"¸","\\c"),p(ee,S,Ue,"˚","\\r"),p(ee,S,Ue,"ˇ","\\v"),p(ee,S,Ue,"¨",'\\"'),p(ee,S,Ue,"˝","\\H"),p(ee,S,Ue,"◯","\\textcircled");var Zt={"--":!0,"---":!0,"``":!0,"''":!0};p(ee,S,L,"–","--",!0),p(ee,S,L,"–","\\textendash"),p(ee,S,L,"—","---",!0),p(ee,S,L,"—","\\textemdash"),p(ee,S,L,"‘","`",!0),p(ee,S,L,"‘","\\textquoteleft"),p(ee,S,L,"’","'",!0),p(ee,S,L,"’","\\textquoteright"),p(ee,S,L,"“","``",!0),p(ee,S,L,"“","\\textquotedblleft"),p(ee,S,L,"”","''",!0),p(ee,S,L,"”","\\textquotedblright"),p(g,S,L,"°","\\degree",!0),p(ee,S,L,"°","\\degree"),p(ee,S,L,"°","\\textdegree",!0),p(g,S,L,"£","\\pounds"),p(g,S,L,"£","\\mathsterling",!0),p(ee,S,L,"£","\\pounds"),p(ee,S,L,"£","\\textsterling",!0),p(g,_,L,"✠","\\maltese"),p(ee,_,L,"✠","\\maltese");for(var A0='0123456789/@."',hn=0;hn0)return Pr(c,M,l,t,v.concat(N));if(D){var Y,X;if(D==="boldsymbol"){var K=au(c,l,t,v,i);Y=K.fontName,X=[K.fontClass]}else A?(Y=bi[D].fontName,X=[D]):(Y=M0(D,t.fontWeight,t.fontShape),X=[D,t.fontWeight,t.fontShape]);if(B0(c,Y,l).metrics)return Pr(c,Y,l,t,v.concat(X));if(Zt.hasOwnProperty(c)&&Y.slice(0,10)==="Typewriter"){for(var ie=[],le=0;let&&(t=v.height),v.depth>i&&(i=v.depth),v.maxFontSize>l&&(l=v.maxFontSize)}r.height=t,r.depth=i,r.maxFontSize=l},lr=function(r,t,i,l){var c=new Wt(r,t,i,l);return pn(c),c},yi=function(r,t,i,l){return new Wt(r,t,i,l)},su=function(r,t,i){var l=lr([r],[],t);return l.height=Math.max(i||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),l.style.borderBottomWidth=ae(l.height),l.maxFontSize=1,l},cu=function(r,t,i,l){var c=new w0(r,t,i,l);return pn(c),c},xi=function(r){var t=new Or(r);return pn(t),t},hu=function(r,t){return r instanceof Or?lr([],[r],t):r},fu=function(r){if(r.positionType==="individualShift"){for(var t=r.children,i=[t[0]],l=-t[0].shift-t[0].elem.depth,c=l,v=1;v0&&(c.push(F0(v,r)),v=[]),c.push(i[A]));v.length>0&&c.push(F0(v,r));var M;t?(M=F0(rr(t,r,!0)),M.classes=["tag"],c.push(M)):l&&c.push(l);var N=Yr(["katex-html"],c);if(N.setAttribute("aria-hidden","true"),M){var U=M.children[0];U.style.height=ae(N.height+N.depth),N.depth&&(U.style.verticalAlign=ae(-N.depth))}return N}function N0(m){return new Or(m)}var _r=function(){function m(t,i,l){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=i||[],this.classes=l||[]}var r=m.prototype;return r.setAttribute=function(i,l){this.attributes[i]=l},r.getAttribute=function(i){return this.attributes[i]},r.toNode=function(){var i=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var l in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,l)&&i.setAttribute(l,this.attributes[l]);this.classes.length>0&&(i.className=it(this.classes));for(var c=0;c0&&(i+=' class ="'+Z.escape(it(this.classes))+'"'),i+=">";for(var c=0;c",i},r.toText=function(){return this.children.map(function(i){return i.toText()}).join("")},m}(),i0=function(){function m(t){this.text=void 0,this.text=t}var r=m.prototype;return r.toNode=function(){return document.createTextNode(this.text)},r.toMarkup=function(){return Z.escape(this.toText())},r.toText=function(){return this.text},m}(),Si=function(){function m(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}var r=m.prototype;return r.toNode=function(){if(this.character)return document.createTextNode(this.character);var i=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return i.setAttribute("width",ae(this.width)),i},r.toMarkup=function(){return this.character?""+this.character+"":''},r.toText=function(){return this.character?this.character:" "},m}(),te={MathNode:_r,TextNode:i0,SpaceNode:Si,newDocumentFragment:N0},kr=function(r,t,i){return $e[t][r]&&$e[t][r].replace&&r.charCodeAt(0)!==55349&&!(Zt.hasOwnProperty(r)&&i&&(i.fontFamily&&i.fontFamily.slice(4,6)==="tt"||i.font&&i.font.slice(4,6)==="tt"))&&(r=$e[t][r].replace),new te.TextNode(r)},dn=function(r){return r.length===1?r[0]:new te.MathNode("mrow",r)},mn=function(r,t){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold";var i=t.font;if(!i||i==="mathnormal")return null;var l=r.mode;if(i==="mathit")return"italic";if(i==="boldsymbol")return r.type==="textord"?"bold":"bold-italic";if(i==="mathbf")return"bold";if(i==="mathbb")return"double-struck";if(i==="mathfrak")return"fraktur";if(i==="mathscr"||i==="mathcal")return"script";if(i==="mathsf")return"sans-serif";if(i==="mathtt")return"monospace";var c=r.text;if(Z.contains(["\\imath","\\jmath"],c))return null;$e[l][c]&&$e[l][c].replace&&(c=$e[l][c].replace);var v=$.fontMap[i].fontName;return x0(c,v,l)?$.fontMap[i].variant:null},xr=function(r,t,i){if(r.length===1){var l=Pe(r[0],t);return i&&l instanceof _r&&l.type==="mo"&&(l.setAttribute("lspace","0em"),l.setAttribute("rspace","0em")),[l]}for(var c=[],v,A=0;A0&&(K.text=K.text.slice(0,1)+"̸"+K.text.slice(1),c.pop())}}}c.push(D),v=D}return c},lt=function(r,t,i){return dn(xr(r,t,i))},Pe=function(r,t){if(!r)return new te.MathNode("mrow");if(_0[r.type]){var i=_0[r.type](r,t);return i}else throw new b("Got group of unknown type: '"+r.type+"'")};function Ci(m,r,t,i,l){var c=xr(m,t),v;c.length===1&&c[0]instanceof _r&&Z.contains(["mrow","mtable"],c[0].type)?v=c[0]:v=new te.MathNode("mrow",c);var A=new te.MathNode("annotation",[new te.TextNode(r)]);A.setAttribute("encoding","application/x-tex");var D=new te.MathNode("semantics",[v,A]),M=new te.MathNode("math",[D]);M.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),i&&M.setAttribute("display","block");var N=l?"katex":"katex-mathml";return $.makeSpan([N],[M])}var Di=function(r){return new oi({style:r.displayMode?ue.DISPLAY:ue.TEXT,maxSize:r.maxSize,minRuleThickness:r.minRuleThickness})},Ei=function(r,t){if(t.displayMode){var i=["katex-display"];t.leqno&&i.push("leqno"),t.fleqn&&i.push("fleqn"),r=$.makeSpan(i,[r])}return r},xu=function(r,t,i){var l=Di(i),c;if(i.output==="mathml")return Ci(r,t,l,i.displayMode,!0);if(i.output==="html"){var v=n0(r,l);c=$.makeSpan(["katex"],[v])}else{var A=Ci(r,t,l,i.displayMode,!1),D=n0(r,l);c=$.makeSpan(["katex"],[A,D])}return Ei(c,i)},bu=function(r,t,i){var l=Di(i),c=n0(r,l),v=$.makeSpan(["katex"],[c]);return Ei(v,i)},wu={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":"="},nr=function(r){var t=new te.MathNode("mo",[new te.TextNode(wu[r.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},Bi={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]},a0=function(r){return r.type==="ordgroup"?r.body.length:1},fr=function(r,t){function i(){var D=4e5,M=r.label.slice(1);if(Z.contains(["widehat","widecheck","widetilde","utilde"],M)){var N=r,U=a0(N.base),Y,X,K;if(U>5)M==="widehat"||M==="widecheck"?(Y=420,D=2364,K=.42,X=M+"4"):(Y=312,D=2340,K=.34,X="tilde4");else{var ie=[1,1,2,2,3,3][U];M==="widehat"||M==="widecheck"?(D=[0,1062,2364,2364,2364][ie],Y=[0,239,300,360,420][ie],K=[0,.24,.3,.3,.36,.42][ie],X=M+ie):(D=[0,600,1033,2339,2340][ie],Y=[0,260,286,306,312][ie],K=[0,.26,.286,.3,.306,.34][ie],X="tilde"+ie)}var le=new Zr(X),fe=new Lr([le],{width:"100%",height:ae(K),viewBox:"0 0 "+D+" "+Y,preserveAspectRatio:"none"});return{span:$.makeSvgSpan([],[fe],t),minWidth:0,height:K}}else{var de=[],ge=Bi[M],ze=ge[0],Ce=ge[1],Re=ge[2],Ne=Re/1e3,Ie=ze.length,He,Qe;if(Ie===1){var Sr=ge[3];He=["hide-tail"],Qe=[Sr]}else if(Ie===2)He=["halfarrow-left","halfarrow-right"],Qe=["xMinYMin","xMaxYMin"];else if(Ie===3)He=["brace-left","brace-center","brace-right"],Qe=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support `+Ie+" children.");for(var Xe=0;Xe0&&(c.style.minWidth=ae(v)),c},vn=function(r,t,i,l,c){var v,A=r.height+r.depth+i+l;if(/fbox|color|angl/.test(t)){if(v=$.makeSpan(["stretchy",t],[],c),t==="fbox"){var D=c.color&&c.getColor();D&&(v.style.borderColor=D)}}else{var M=[];/^[bx]cancel$/.test(t)&&M.push(new Jr({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&M.push(new Jr({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var N=new Lr(M,{width:"100%",height:ae(A)});v=$.makeSvgSpan([],[N],c)}return v.height=A,v.style.height=ae(A),v},Hr={encloseSpan:vn,mathMLnode:nr,svgSpan:fr};function Be(m,r){if(!m||m.type!==r)throw new Error("Expected node of type "+r+", but got "+(m?"node of type "+m.type:String(m)));return m}function gn(m){var r=q0(m);if(!r)throw new Error("Expected node of symbol group type, but got "+(m?"node of type "+m.type:String(m)));return r}function q0(m){return m&&(m.type==="atom"||tu.hasOwnProperty(m.type))?m:null}var yn=function(r,t){var i,l,c;r&&r.type==="supsub"?(l=Be(r.base,"accent"),i=l.base,r.base=i,c=eu(Fe(r,t)),r.base=l):(l=Be(r,"accent"),i=l.base);var v=Fe(i,t.havingCrampedStyle()),A=l.isShifty&&Z.isCharacterBox(i),D=0;if(A){var M=Z.getBaseElem(i),N=Fe(M,t.havingCrampedStyle());D=pi(N).skew}var U=l.label==="\\c",Y=U?v.height+v.depth:Math.min(v.height,t.fontMetrics().xHeight),X;if(l.isStretchy)X=Hr.svgSpan(l,t),X=$.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:v},{type:"elem",elem:X,wrapperClasses:["svg-align"],wrapperStyle:D>0?{width:"calc(100% - "+ae(2*D)+")",marginLeft:ae(2*D)}:void 0}]},t);else{var K,ie;l.label==="\\vec"?(K=$.staticSvg("vec",t),ie=$.svgData.vec[1]):(K=$.makeOrd({mode:l.mode,text:l.label},t,"textord"),K=pi(K),K.italic=0,ie=K.width,U&&(Y+=K.depth)),X=$.makeSpan(["accent-body"],[K]);var le=l.label==="\\textcircled";le&&(X.classes.push("accent-full"),Y=v.height);var fe=D;le||(fe-=ie/2),X.style.left=ae(fe),l.label==="\\textcircled"&&(X.style.top=".2em"),X=$.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:v},{type:"kern",size:-Y},{type:"elem",elem:X}]},t)}var de=$.makeSpan(["mord","accent"],[X],t);return c?(c.children[0]=de,c.height=Math.max(de.height,c.height),c.classes[0]="mord",c):de},Mi=function(r,t){var i=r.isStretchy?Hr.mathMLnode(r.label):new te.MathNode("mo",[kr(r.label,r.mode)]),l=new te.MathNode("mover",[Pe(r.base,t),i]);return l.setAttribute("accent","true"),l},Au=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(m){return"\\"+m}).join("|"));oe({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(r,t){var i=z0(t[0]),l=!Au.test(r.funcName),c=!l||r.funcName==="\\widehat"||r.funcName==="\\widetilde"||r.funcName==="\\widecheck";return{type:"accent",mode:r.parser.mode,label:r.funcName,isStretchy:l,isShifty:c,base:i}},htmlBuilder:yn,mathmlBuilder:Mi}),oe({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:function(r,t){var i=t[0],l=r.parser.mode;return l==="math"&&(r.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+r.funcName+" works only in text mode"),l="text"),{type:"accent",mode:l,label:r.funcName,isStretchy:!1,isShifty:!0,base:i}},htmlBuilder:yn,mathmlBuilder:Mi}),oe({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(r,t){var i=r.parser,l=r.funcName,c=t[0];return{type:"accentUnder",mode:i.mode,label:l,base:c}},htmlBuilder:function(r,t){var i=Fe(r.base,t),l=Hr.svgSpan(r,t),c=r.label==="\\utilde"?.12:0,v=$.makeVList({positionType:"top",positionData:i.height,children:[{type:"elem",elem:l,wrapperClasses:["svg-align"]},{type:"kern",size:c},{type:"elem",elem:i}]},t);return $.makeSpan(["mord","accentunder"],[v],t)},mathmlBuilder:function(r,t){var i=Hr.mathMLnode(r.label),l=new te.MathNode("munder",[Pe(r.base,t),i]);return l.setAttribute("accentunder","true"),l}});var tr=function(r){var t=new te.MathNode("mpadded",r?[r]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};oe({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(r,t,i){var l=r.parser,c=r.funcName;return{type:"xArrow",mode:l.mode,label:c,body:t[0],below:i[0]}},htmlBuilder:function(r,t){var i=t.style,l=t.havingStyle(i.sup()),c=$.wrapFragment(Fe(r.body,l,t),t),v=r.label.slice(0,2)==="\\x"?"x":"cd";c.classes.push(v+"-arrow-pad");var A;r.below&&(l=t.havingStyle(i.sub()),A=$.wrapFragment(Fe(r.below,l,t),t),A.classes.push(v+"-arrow-pad"));var D=Hr.svgSpan(r,t),M=-t.fontMetrics().axisHeight+.5*D.height,N=-t.fontMetrics().axisHeight-.5*D.height-.111;(c.depth>.25||r.label==="\\xleftequilibrium")&&(N-=c.depth);var U;if(A){var Y=-t.fontMetrics().axisHeight+A.height+.5*D.height+.111;U=$.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:N},{type:"elem",elem:D,shift:M},{type:"elem",elem:A,shift:Y}]},t)}else U=$.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:N},{type:"elem",elem:D,shift:M}]},t);return U.children[0].children[0].children[1].classes.push("svg-align"),$.makeSpan(["mrel","x-arrow"],[U],t)},mathmlBuilder:function(r,t){var i=Hr.mathMLnode(r.label);i.setAttribute("minsize",r.label.charAt(0)==="x"?"1.75em":"3.0em");var l;if(r.body){var c=tr(Pe(r.body,t));if(r.below){var v=tr(Pe(r.below,t));l=new te.MathNode("munderover",[i,v,c])}else l=new te.MathNode("mover",[i,c])}else if(r.below){var A=tr(Pe(r.below,t));l=new te.MathNode("munder",[i,A])}else l=tr(),l=new te.MathNode("mover",[i,l]);return l}});var Ti=$.makeSpan;function _i(m,r){var t=rr(m.body,r,!0);return Ti([m.mclass],t,r)}function R0(m,r){var t,i=xr(m.body,r);return m.mclass==="minner"?t=new te.MathNode("mpadded",i):m.mclass==="mord"?m.isCharacterBox?(t=i[0],t.type="mi"):t=new te.MathNode("mi",i):(m.isCharacterBox?(t=i[0],t.type="mo"):t=new te.MathNode("mo",i),m.mclass==="mbin"?(t.attributes.lspace="0.22em",t.attributes.rspace="0.22em"):m.mclass==="mpunct"?(t.attributes.lspace="0em",t.attributes.rspace="0.17em"):m.mclass==="mopen"||m.mclass==="mclose"?(t.attributes.lspace="0em",t.attributes.rspace="0em"):m.mclass==="minner"&&(t.attributes.lspace="0.0556em",t.attributes.width="+0.1111em")),t}oe({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler:function(r,t){var i=r.parser,l=r.funcName,c=t[0];return{type:"mclass",mode:i.mode,mclass:"m"+l.slice(5),body:er(c),isCharacterBox:Z.isCharacterBox(c)}},htmlBuilder:_i,mathmlBuilder:R0});var u0=function(r){var t=r.type==="ordgroup"&&r.body.length?r.body[0]:r;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};oe({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(r,t){var i=r.parser;return{type:"mclass",mode:i.mode,mclass:u0(t[0]),body:er(t[1]),isCharacterBox:Z.isCharacterBox(t[1])}}}),oe({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(r,t){var i=r.parser,l=r.funcName,c=t[1],v=t[0],A;l!=="\\stackrel"?A=u0(c):A="mrel";var D={type:"op",mode:c.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:l!=="\\stackrel",body:er(c)},M={type:"supsub",mode:v.mode,base:D,sup:l==="\\underset"?null:v,sub:l==="\\underset"?v:null};return{type:"mclass",mode:i.mode,mclass:A,body:[M],isCharacterBox:Z.isCharacterBox(M)}},htmlBuilder:_i,mathmlBuilder:R0}),oe({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler:function(r,t){var i=r.parser;return{type:"pmb",mode:i.mode,mclass:u0(t[0]),body:er(t[0])}},htmlBuilder:function(r,t){var i=rr(r.body,t,!0),l=$.makeSpan([r.mclass],i,t);return l.style.textShadow="0.02em 0.01em 0.04px",l},mathmlBuilder:function(r,t){var i=xr(r.body,t),l=new te.MathNode("mstyle",i);return l.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),l}});var zi={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},xn=function(){return{type:"styling",body:[],mode:"math",style:"display"}},bn=function(r){return r.type==="textord"&&r.text==="@"},Fi=function(r,t){return(r.type==="mathord"||r.type==="atom")&&r.text===t};function ku(m,r,t){var i=zi[m];switch(i){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return t.callFunction(i,[r[0]],[r[1]]);case"\\uparrow":case"\\downarrow":{var l=t.callFunction("\\\\cdleft",[r[0]],[]),c={type:"atom",text:i,mode:"math",family:"rel"},v=t.callFunction("\\Big",[c],[]),A=t.callFunction("\\\\cdright",[r[1]],[]),D={type:"ordgroup",mode:"math",body:[l,v,A]};return t.callFunction("\\\\cdparent",[D],[])}case"\\\\cdlongequal":return t.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var M={type:"textord",text:"\\Vert",mode:"math"};return t.callFunction("\\Big",[M],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Su(m){var r=[];for(m.gullet.beginGroup(),m.gullet.macros.set("\\cr","\\\\\\relax"),m.gullet.beginGroup();;){r.push(m.parseExpression(!1,"\\\\")),m.gullet.endGroup(),m.gullet.beginGroup();var t=m.fetch().text;if(t==="&"||t==="\\\\")m.consume();else if(t==="\\end"){r[r.length-1].length===0&&r.pop();break}else throw new b("Expected \\\\ or \\cr or \\end",m.nextToken)}for(var i=[],l=[i],c=0;c-1))if("<>AV".indexOf(M)>-1)for(var U=0;U<2;U++){for(var Y=!0,X=D+1;XAV=|." after @',v[D]);var K=ku(M,N,m),ie={type:"styling",body:[K],mode:"math",style:"display"};i.push(ie),A=xn()}c%2===0?i.push(A):i.shift(),i=[],l.push(i)}m.gullet.endGroup(),m.gullet.endGroup();var le=new Array(l[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:l,arraystretch:1,addJot:!0,rowGaps:[null],cols:le,colSeparationType:"CD",hLinesBeforeRow:new Array(l.length+1).fill([])}}oe({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler:function(r,t){var i=r.parser,l=r.funcName;return{type:"cdlabel",mode:i.mode,side:l.slice(4),label:t[0]}},htmlBuilder:function(r,t){var i=t.havingStyle(t.style.sup()),l=$.wrapFragment(Fe(r.label,i,t),t);return l.classes.push("cd-label-"+r.side),l.style.bottom=ae(.8-l.depth),l.height=0,l.depth=0,l},mathmlBuilder:function(r,t){var i=new te.MathNode("mrow",[Pe(r.label,t)]);return i=new te.MathNode("mpadded",[i]),i.setAttribute("width","0"),r.side==="left"&&i.setAttribute("lspace","-1width"),i.setAttribute("voffset","0.7em"),i=new te.MathNode("mstyle",[i]),i.setAttribute("displaystyle","false"),i.setAttribute("scriptlevel","1"),i}}),oe({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler:function(r,t){var i=r.parser;return{type:"cdlabelparent",mode:i.mode,fragment:t[0]}},htmlBuilder:function(r,t){var i=$.wrapFragment(Fe(r.fragment,t),t);return i.classes.push("cd-vert-arrow"),i},mathmlBuilder:function(r,t){return new te.MathNode("mrow",[Pe(r.fragment,t)])}}),oe({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(r,t){for(var i=r.parser,l=Be(t[0],"ordgroup"),c=l.body,v="",A=0;A=1114111)throw new b("\\@char with invalid code point "+v);return M<=65535?N=String.fromCharCode(M):(M-=65536,N=String.fromCharCode((M>>10)+55296,(M&1023)+56320)),{type:"textord",mode:i.mode,text:N}}});var Ni=function(r,t){var i=rr(r.body,t.withColor(r.color),!1);return $.makeFragment(i)},wn=function(r,t){var i=xr(r.body,t.withColor(r.color)),l=new te.MathNode("mstyle",i);return l.setAttribute("mathcolor",r.color),l};oe({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler:function(r,t){var i=r.parser,l=Be(t[0],"color-token").color,c=t[1];return{type:"color",mode:i.mode,color:l,body:er(c)}},htmlBuilder:Ni,mathmlBuilder:wn}),oe({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler:function(r,t){var i=r.parser,l=r.breakOnTokenText,c=Be(t[0],"color-token").color;i.gullet.macros.set("\\current@color",c);var v=i.parseExpression(!0,l);return{type:"color",mode:i.mode,color:c,body:v}},htmlBuilder:Ni,mathmlBuilder:wn}),oe({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler:function(r,t,i){var l=r.parser,c=l.gullet.future().text==="["?l.parseSizeGroup(!0):null,v=!l.settings.displayMode||!l.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:l.mode,newLine:v,size:c&&Be(c,"size").value}},htmlBuilder:function(r,t){var i=$.makeSpan(["mspace"],[],t);return r.newLine&&(i.classes.push("newline"),r.size&&(i.style.marginTop=ae(je(r.size,t)))),i},mathmlBuilder:function(r,t){var i=new te.MathNode("mspace");return r.newLine&&(i.setAttribute("linebreak","newline"),r.size&&i.setAttribute("height",ae(je(r.size,t)))),i}});var An={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},qi=function(r){var t=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new b("Expected a control sequence",r);return t},Cu=function(r){var t=r.gullet.popToken();return t.text==="="&&(t=r.gullet.popToken(),t.text===" "&&(t=r.gullet.popToken())),t},kn=function(r,t,i,l){var c=r.gullet.macros.get(i.text);c==null&&(i.noexpand=!0,c={tokens:[i],numArgs:0,unexpandable:!r.gullet.isExpandable(i.text)}),r.gullet.macros.set(t,c,l)};oe({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(r){var t=r.parser,i=r.funcName;t.consumeSpaces();var l=t.fetch();if(An[l.text])return(i==="\\global"||i==="\\\\globallong")&&(l.text=An[l.text]),Be(t.parseFunction(),"internal");throw new b("Invalid token after macro prefix",l)}}),oe({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(r){var t=r.parser,i=r.funcName,l=t.gullet.popToken(),c=l.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(c))throw new b("Expected a control sequence",l);for(var v=0,A,D=[[]];t.gullet.future().text!=="{";)if(l=t.gullet.popToken(),l.text==="#"){if(t.gullet.future().text==="{"){A=t.gullet.future(),D[v].push("{");break}if(l=t.gullet.popToken(),!/^[1-9]$/.test(l.text))throw new b('Invalid argument number "'+l.text+'"');if(parseInt(l.text)!==v+1)throw new b('Argument number "'+l.text+'" out of order');v++,D.push([])}else{if(l.text==="EOF")throw new b("Expected a macro definition");D[v].push(l.text)}var M=t.gullet.consumeArg(),N=M.tokens;return A&&N.unshift(A),(i==="\\edef"||i==="\\xdef")&&(N=t.gullet.expandTokens(N),N.reverse()),t.gullet.macros.set(c,{tokens:N,numArgs:v,delimiters:D},i===An[i]),{type:"internal",mode:t.mode}}}),oe({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(r){var t=r.parser,i=r.funcName,l=qi(t.gullet.popToken());t.gullet.consumeSpaces();var c=Cu(t);return kn(t,l,c,i==="\\\\globallet"),{type:"internal",mode:t.mode}}}),oe({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(r){var t=r.parser,i=r.funcName,l=qi(t.gullet.popToken()),c=t.gullet.popToken(),v=t.gullet.popToken();return kn(t,l,v,i==="\\\\globalfuture"),t.gullet.pushToken(v),t.gullet.pushToken(c),{type:"internal",mode:t.mode}}});var l0=function(r,t,i){var l=$e.math[r]&&$e.math[r].replace,c=x0(l||r,t,i);if(!c)throw new Error("Unsupported symbol "+r+" and font size "+t+".");return c},Sn=function(r,t,i,l){var c=i.havingBaseStyle(t),v=$.makeSpan(l.concat(c.sizingClasses(i)),[r],i),A=c.sizeMultiplier/i.sizeMultiplier;return v.height*=A,v.depth*=A,v.maxFontSize=c.sizeMultiplier,v},Ri=function(r,t,i){var l=t.havingBaseStyle(i),c=(1-t.sizeMultiplier/l.sizeMultiplier)*t.fontMetrics().axisHeight;r.classes.push("delimcenter"),r.style.top=ae(c),r.height-=c,r.depth+=c},Du=function(r,t,i,l,c,v){var A=$.makeSymbol(r,"Main-Regular",c,l),D=Sn(A,t,l,v);return i&&Ri(D,l,t),D},Eu=function(r,t,i,l){return $.makeSymbol(r,"Size"+t+"-Regular",i,l)},Ii=function(r,t,i,l,c,v){var A=Eu(r,t,c,l),D=Sn($.makeSpan(["delimsizing","size"+t],[A],l),ue.TEXT,l,v);return i&&Ri(D,l,ue.TEXT),D},I0=function(r,t,i){var l;t==="Size1-Regular"?l="delim-size1":l="delim-size4";var c=$.makeSpan(["delimsizinginner",l],[$.makeSpan([],[$.makeSymbol(r,t,i)])]);return{type:"elem",elem:c}},Cn=function(r,t,i){var l=yr["Size4-Regular"][r.charCodeAt(0)]?yr["Size4-Regular"][r.charCodeAt(0)][4]:yr["Size1-Regular"][r.charCodeAt(0)][4],c=new Zr("inner",on(r,Math.round(1e3*t))),v=new Lr([c],{width:ae(l),height:ae(t),style:"width:"+ae(l),viewBox:"0 0 "+1e3*l+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),A=$.makeSvgSpan([],[v],i);return A.height=t,A.style.height=ae(t),A.style.width=ae(l),{type:"elem",elem:A}},Dn=.008,O0={type:"kern",size:-1*Dn},Bu=["|","\\lvert","\\rvert","\\vert"],Mu=["\\|","\\lVert","\\rVert","\\Vert"],Oi=function(r,t,i,l,c,v){var A,D,M,N,U="",Y=0;A=M=N=r,D=null;var X="Size1-Regular";r==="\\uparrow"?M=N="⏐":r==="\\Uparrow"?M=N="‖":r==="\\downarrow"?A=M="⏐":r==="\\Downarrow"?A=M="‖":r==="\\updownarrow"?(A="\\uparrow",M="⏐",N="\\downarrow"):r==="\\Updownarrow"?(A="\\Uparrow",M="‖",N="\\Downarrow"):Z.contains(Bu,r)?(M="∣",U="vert",Y=333):Z.contains(Mu,r)?(M="∥",U="doublevert",Y=556):r==="["||r==="\\lbrack"?(A="⎡",M="⎢",N="⎣",X="Size4-Regular",U="lbrack",Y=667):r==="]"||r==="\\rbrack"?(A="⎤",M="⎥",N="⎦",X="Size4-Regular",U="rbrack",Y=667):r==="\\lfloor"||r==="⌊"?(M=A="⎢",N="⎣",X="Size4-Regular",U="lfloor",Y=667):r==="\\lceil"||r==="⌈"?(A="⎡",M=N="⎢",X="Size4-Regular",U="lceil",Y=667):r==="\\rfloor"||r==="⌋"?(M=A="⎥",N="⎦",X="Size4-Regular",U="rfloor",Y=667):r==="\\rceil"||r==="⌉"?(A="⎤",M=N="⎥",X="Size4-Regular",U="rceil",Y=667):r==="("||r==="\\lparen"?(A="⎛",M="⎜",N="⎝",X="Size4-Regular",U="lparen",Y=875):r===")"||r==="\\rparen"?(A="⎞",M="⎟",N="⎠",X="Size4-Regular",U="rparen",Y=875):r==="\\{"||r==="\\lbrace"?(A="⎧",D="⎨",N="⎩",M="⎪",X="Size4-Regular"):r==="\\}"||r==="\\rbrace"?(A="⎫",D="⎬",N="⎭",M="⎪",X="Size4-Regular"):r==="\\lgroup"||r==="⟮"?(A="⎧",N="⎩",M="⎪",X="Size4-Regular"):r==="\\rgroup"||r==="⟯"?(A="⎫",N="⎭",M="⎪",X="Size4-Regular"):r==="\\lmoustache"||r==="⎰"?(A="⎧",N="⎭",M="⎪",X="Size4-Regular"):(r==="\\rmoustache"||r==="⎱")&&(A="⎫",N="⎩",M="⎪",X="Size4-Regular");var K=l0(A,X,c),ie=K.height+K.depth,le=l0(M,X,c),fe=le.height+le.depth,de=l0(N,X,c),ge=de.height+de.depth,ze=0,Ce=1;if(D!==null){var Re=l0(D,X,c);ze=Re.height+Re.depth,Ce=2}var Ne=ie+ge+ze,Ie=Math.max(0,Math.ceil((t-Ne)/(Ce*fe))),He=Ne+Ie*Ce*fe,Qe=l.fontMetrics().axisHeight;i&&(Qe*=l.sizeMultiplier);var Sr=He/2-Qe,Xe=[];if(U.length>0){var ft=He-ie-ge,Cr=Math.round(He*1e3),dr=Za(U,Math.round(ft*1e3)),rt=new Zr(U,dr),Lt=(Y/1e3).toFixed(3)+"em",Pt=(Cr/1e3).toFixed(3)+"em",Q0=new Lr([rt],{width:Lt,height:Pt,viewBox:"0 0 "+Y+" "+Cr}),pt=$.makeSvgSpan([],[Q0],l);pt.height=Cr/1e3,pt.style.width=Lt,pt.style.height=Pt,Xe.push({type:"elem",elem:pt})}else{if(Xe.push(I0(N,X,c)),Xe.push(O0),D===null){var dt=He-ie-ge+2*Dn;Xe.push(Cn(M,dt,l))}else{var Dr=(He-ie-ge-ze)/2+2*Dn;Xe.push(Cn(M,Dr,l)),Xe.push(O0),Xe.push(I0(D,X,c)),Xe.push(O0),Xe.push(Cn(M,Dr,l))}Xe.push(O0),Xe.push(I0(A,X,c))}var Er=l.havingBaseStyle(ue.TEXT),Un=$.makeVList({positionType:"bottom",positionData:Sr,children:Xe},Er);return Sn($.makeSpan(["delimsizing","mult"],[Un],Er),ue.TEXT,l,v)},L0=80,P0=.08,H0=function(r,t,i,l,c){var v=xt(r,l,i),A=new Zr(r,v),D=new Lr([A],{width:"400em",height:ae(t),viewBox:"0 0 400000 "+i,preserveAspectRatio:"xMinYMin slice"});return $.makeSvgSpan(["hide-tail"],[D],c)},Li=function(r,t){var i=t.havingBaseSizing(),l=$i("\\surd",r*i.sizeMultiplier,U0,i),c=i.sizeMultiplier,v=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),A,D=0,M=0,N=0,U;return l.type==="small"?(N=1e3+1e3*v+L0,r<1?c=1:r<1.4&&(c=.7),D=(1+v+P0)/c,M=(1+v)/c,A=H0("sqrtMain",D,N,v,t),A.style.minWidth="0.853em",U=.833/c):l.type==="large"?(N=(1e3+L0)*o0[l.size],M=(o0[l.size]+v)/c,D=(o0[l.size]+v+P0)/c,A=H0("sqrtSize"+l.size,D,N,v,t),A.style.minWidth="1.02em",U=1/c):(D=r+v+P0,M=r+v,N=Math.floor(1e3*r+v)+L0,A=H0("sqrtTall",D,N,v,t),A.style.minWidth="0.742em",U=1.056),A.height=M,A.style.height=ae(D),{span:A,advanceWidth:U,ruleWidth:(t.fontMetrics().sqrtRuleThickness+v)*c}},En=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Tu=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Pi=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],o0=[0,1.2,1.8,2.4,3],Hi=function(r,t,i,l,c){if(r==="<"||r==="\\lt"||r==="⟨"?r="\\langle":(r===">"||r==="\\gt"||r==="⟩")&&(r="\\rangle"),Z.contains(En,r)||Z.contains(Pi,r))return Ii(r,t,!1,i,l,c);if(Z.contains(Tu,r))return Oi(r,o0[t],!1,i,l,c);throw new b("Illegal delimiter: '"+r+"'")},_u=[{type:"small",style:ue.SCRIPTSCRIPT},{type:"small",style:ue.SCRIPT},{type:"small",style:ue.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Ui=[{type:"small",style:ue.SCRIPTSCRIPT},{type:"small",style:ue.SCRIPT},{type:"small",style:ue.TEXT},{type:"stack"}],U0=[{type:"small",style:ue.SCRIPTSCRIPT},{type:"small",style:ue.SCRIPT},{type:"small",style:ue.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],zu=function(r){if(r.type==="small")return"Main-Regular";if(r.type==="large")return"Size"+r.size+"-Regular";if(r.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+r.type+"' here.")},$i=function(r,t,i,l){for(var c=Math.min(2,3-l.style.size),v=c;vt)return i[v]}return i[i.length-1]},Vi=function(r,t,i,l,c,v){r==="<"||r==="\\lt"||r==="⟨"?r="\\langle":(r===">"||r==="\\gt"||r==="⟩")&&(r="\\rangle");var A;Z.contains(Pi,r)?A=_u:Z.contains(En,r)?A=U0:A=Ui;var D=$i(r,t,A,l);return D.type==="small"?Du(r,D.style,i,l,c,v):D.type==="large"?Ii(r,D.size,i,l,c,v):Oi(r,t,i,l,c,v)},Fu=function(r,t,i,l,c,v){var A=l.fontMetrics().axisHeight*l.sizeMultiplier,D=901,M=5/l.fontMetrics().ptPerEm,N=Math.max(t-A,i+A),U=Math.max(N/500*D,2*N-M);return Vi(r,U,!0,l,c,v)},Xr={sqrtImage:Li,sizedDelim:Hi,sizeToMaxHeight:o0,customSizedDelim:Vi,leftRightDelim:Fu},Gi={"\\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}},Nu=["(","\\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 $0(m,r){var t=q0(m);if(t&&Z.contains(Nu,t.text))return t;throw t?new b("Invalid delimiter '"+t.text+"' after '"+r.funcName+"'",m):new b("Invalid delimiter type '"+m.type+"'",m)}oe({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(r,t){var i=$0(t[0],r);return{type:"delimsizing",mode:r.parser.mode,size:Gi[r.funcName].size,mclass:Gi[r.funcName].mclass,delim:i.text}},htmlBuilder:function(r,t){return r.delim==="."?$.makeSpan([r.mclass]):Xr.sizedDelim(r.delim,r.size,t,r.mode,[r.mclass])},mathmlBuilder:function(r){var t=[];r.delim!=="."&&t.push(kr(r.delim,r.mode));var i=new te.MathNode("mo",t);r.mclass==="mopen"||r.mclass==="mclose"?i.setAttribute("fence","true"):i.setAttribute("fence","false"),i.setAttribute("stretchy","true");var l=ae(Xr.sizeToMaxHeight[r.size]);return i.setAttribute("minsize",l),i.setAttribute("maxsize",l),i}});function ji(m){if(!m.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}oe({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:function(r,t){var i=r.parser.gullet.macros.get("\\current@color");if(i&&typeof i!="string")throw new b("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:r.parser.mode,delim:$0(t[0],r).text,color:i}}}),oe({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:function(r,t){var i=$0(t[0],r),l=r.parser;++l.leftrightDepth;var c=l.parseExpression(!1);--l.leftrightDepth,l.expect("\\right",!1);var v=Be(l.parseFunction(),"leftright-right");return{type:"leftright",mode:l.mode,body:c,left:i.text,right:v.delim,rightColor:v.color}},htmlBuilder:function(r,t){ji(r);for(var i=rr(r.body,t,!0,["mopen","mclose"]),l=0,c=0,v=!1,A=0;A-1?"mpadded":"menclose",[Pe(r.body,t)]);switch(r.label){case"\\cancel":l.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":l.setAttribute("notation","downdiagonalstrike");break;case"\\phase":l.setAttribute("notation","phasorangle");break;case"\\sout":l.setAttribute("notation","horizontalstrike");break;case"\\fbox":l.setAttribute("notation","box");break;case"\\angl":l.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(i=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,l.setAttribute("width","+"+2*i+"pt"),l.setAttribute("height","+"+2*i+"pt"),l.setAttribute("lspace",i+"pt"),l.setAttribute("voffset",i+"pt"),r.label==="\\fcolorbox"){var c=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);l.setAttribute("style","border: "+c+"em solid "+String(r.borderColor))}break;case"\\xcancel":l.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return r.backgroundColor&&l.setAttribute("mathbackground",r.backgroundColor),l};oe({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler:function(r,t,i){var l=r.parser,c=r.funcName,v=Be(t[0],"color-token").color,A=t[1];return{type:"enclose",mode:l.mode,label:c,backgroundColor:v,body:A}},htmlBuilder:V0,mathmlBuilder:Bn}),oe({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler:function(r,t,i){var l=r.parser,c=r.funcName,v=Be(t[0],"color-token").color,A=Be(t[1],"color-token").color,D=t[2];return{type:"enclose",mode:l.mode,label:c,backgroundColor:A,borderColor:v,body:D}},htmlBuilder:V0,mathmlBuilder:Bn}),oe({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(r,t){var i=r.parser;return{type:"enclose",mode:i.mode,label:"\\fbox",body:t[0]}}}),oe({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler:function(r,t){var i=r.parser,l=r.funcName,c=t[0];return{type:"enclose",mode:i.mode,label:l,body:c}},htmlBuilder:V0,mathmlBuilder:Bn}),oe({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler:function(r,t){var i=r.parser;return{type:"enclose",mode:i.mode,label:"\\angl",body:t[0]}}});var Yi={};function Wr(m){for(var r=m.type,t=m.names,i=m.props,l=m.handler,c=m.htmlBuilder,v=m.mathmlBuilder,A={type:r,numArgs:i.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:l},D=0;D1||!N)&&ie.pop(),fe.length0&&(ge+=.25),M.push({pos:ge,isDashed:rn[tn]})}for(ze(v[0]),i=0;i0&&(Sr+=de,Ne=A)){var Ht=void 0;(l>0||r.hskipBeforeAndAfter)&&(Ht=Z.deflt(Dr.pregap,Y),Ht!==0&&(dr=$.makeSpan(["arraycolsep"],[]),dr.style.width=ae(Ht),Cr.push(dr)));var Ut=[];for(i=0;i0){for(var Wu=$.makeLineSpan("hline",t,N),Ku=$.makeLineSpan("hdashline",t,N),$n=[{type:"elem",elem:D,shift:0}];M.length>0;){var wa=M.pop(),Aa=wa.pos-Xe;wa.isDashed?$n.push({type:"elem",elem:Ku,shift:Aa}):$n.push({type:"elem",elem:Wu,shift:Aa})}D=$.makeVList({positionType:"individualShift",children:$n},t)}if(Lt.length===0)return $.makeSpan(["mord"],[D],t);var Vn=$.makeVList({positionType:"individualShift",children:Lt},t);return Vn=$.makeSpan(["tag"],[Vn],t),$.makeFragment([D,Vn])},j0={c:"center ",l:"left ",r:"right "},zr=function(r,t){for(var i=[],l=new te.MathNode("mtd",[],["mtr-glue"]),c=new te.MathNode("mtd",[],["mml-eqn-num"]),v=0;v0){var K=r.cols,ie="",le=!1,fe=0,de=K.length;K[0].type==="separator"&&(Y+="top ",fe=1),K[K.length-1].type==="separator"&&(Y+="bottom ",de-=1);for(var ge=fe;ge0?"left ":"",Y+=Ie[Ie.length-1].length>0?"right ":"";for(var He=1;He-1?"alignat":"align",c=r.envName==="split",v=$r(r.parser,{cols:i,addJot:!0,autoTag:c?void 0:Kr(r.envName),emptySingleRow:!0,colSeparationType:l,maxNumCols:c?2:void 0,leqno:r.parser.settings.leqno},"display"),A,D=0,M={type:"ordgroup",mode:r.mode,body:[]};if(t[0]&&t[0].type==="ordgroup"){for(var N="",U=0;U0&&X&&(le=1),i[K]={type:"align",align:ie,pregap:le,postgap:0}}return v.colSeparationType=X?"align":"alignat",v};Wr({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(r,t){var i=q0(t[0]),l=i?[t[0]]:Be(t[0],"ordgroup").body,c=l.map(function(A){var D=gn(A),M=D.text;if("lcr".indexOf(M)!==-1)return{type:"align",align:M};if(M==="|")return{type:"separator",separator:"|"};if(M===":")return{type:"separator",separator:":"};throw new b("Unknown column alignment: "+M,A)}),v={cols:c,hskipBeforeAndAfter:!0,maxNumCols:c.length};return $r(r.parser,v,G0(r.envName))},htmlBuilder:Vr,mathmlBuilder:zr}),Wr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler:function(r){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[r.envName.replace("*","")],i="c",l={hskipBeforeAndAfter:!1,cols:[{type:"align",align:i}]};if(r.envName.charAt(r.envName.length-1)==="*"){var c=r.parser;if(c.consumeSpaces(),c.fetch().text==="["){if(c.consume(),c.consumeSpaces(),i=c.fetch().text,"lcr".indexOf(i)===-1)throw new b("Expected l or c or r",c.nextToken);c.consume(),c.consumeSpaces(),c.expect("]"),c.consume(),l.cols=[{type:"align",align:i}]}}var v=$r(r.parser,l,G0(r.envName)),A=Math.max.apply(Math,[0].concat(v.body.map(function(D){return D.length})));return v.cols=new Array(A).fill({type:"align",align:i}),t?{type:"leftright",mode:r.mode,body:[v],left:t[0],right:t[1],rightColor:void 0}:v},htmlBuilder:Vr,mathmlBuilder:zr}),Wr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(r){var t={arraystretch:.5},i=$r(r.parser,t,"script");return i.colSeparationType="small",i},htmlBuilder:Vr,mathmlBuilder:zr}),Wr({type:"array",names:["subarray"],props:{numArgs:1},handler:function(r,t){var i=q0(t[0]),l=i?[t[0]]:Be(t[0],"ordgroup").body,c=l.map(function(A){var D=gn(A),M=D.text;if("lc".indexOf(M)!==-1)return{type:"align",align:M};throw new b("Unknown column alignment: "+M,A)});if(c.length>1)throw new b("{subarray} can contain only one column");var v={cols:c,hskipBeforeAndAfter:!1,arraystretch:.5};if(v=$r(r.parser,v,"script"),v.body.length>0&&v.body[0].length>1)throw new b("{subarray} can contain only one column");return v},htmlBuilder:Vr,mathmlBuilder:zr}),Wr({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(r){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},i=$r(r.parser,t,G0(r.envName));return{type:"leftright",mode:r.mode,body:[i],left:r.envName.indexOf("r")>-1?".":"\\{",right:r.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Vr,mathmlBuilder:zr}),Wr({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Xi,htmlBuilder:Vr,mathmlBuilder:zr}),Wr({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler:function(r){Z.contains(["gather","gather*"],r.envName)&&Ft(r);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Kr(r.envName),emptySingleRow:!0,leqno:r.parser.settings.leqno};return $r(r.parser,t,"display")},htmlBuilder:Vr,mathmlBuilder:zr}),Wr({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Xi,htmlBuilder:Vr,mathmlBuilder:zr}),Wr({type:"array",names:["equation","equation*"],props:{numArgs:0},handler:function(r){Ft(r);var t={autoTag:Kr(r.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:r.parser.settings.leqno};return $r(r.parser,t,"display")},htmlBuilder:Vr,mathmlBuilder:zr}),Wr({type:"array",names:["CD"],props:{numArgs:0},handler:function(r){return Ft(r),Su(r.parser)},htmlBuilder:Vr,mathmlBuilder:zr}),E("\\nonumber","\\gdef\\@eqnsw{0}"),E("\\notag","\\nonumber"),oe({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(r,t){throw new b(r.funcName+" valid only within array environment")}});var Wi=Yi,Ki=Wi;oe({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(r,t){var i=r.parser,l=r.funcName,c=t[0];if(c.type!=="ordgroup")throw new b("Invalid environment name",c);for(var v="",A=0;A=ue.SCRIPT.id?i.text():ue.DISPLAY:r==="text"&&i.size===ue.DISPLAY.size?i=ue.TEXT:r==="script"?i=ue.SCRIPT:r==="scriptscript"&&(i=ue.SCRIPTSCRIPT),i},Y0=function(r,t){var i=zn(r.size,t.style),l=i.fracNum(),c=i.fracDen(),v;v=t.havingStyle(l);var A=Fe(r.numer,v,t);if(r.continued){var D=8.5/t.fontMetrics().ptPerEm,M=3.5/t.fontMetrics().ptPerEm;A.height=A.height0?ie=3*X:ie=7*X,le=t.fontMetrics().denom1):(Y>0?(K=t.fontMetrics().num2,ie=X):(K=t.fontMetrics().num3,ie=3*X),le=t.fontMetrics().denom2);var fe;if(U){var ge=t.fontMetrics().axisHeight;K-A.depth-(ge+.5*Y)0&&(t=r,t=t==="."?null:t),t};oe({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler:function(r,t){var i=r.parser,l=t[4],c=t[5],v=z0(t[0]),A=v.type==="atom"&&v.family==="open"?pr(v.text):null,D=z0(t[1]),M=D.type==="atom"&&D.family==="close"?pr(D.text):null,N=Be(t[2],"size"),U,Y=null;N.isBlank?U=!0:(Y=N.value,U=Y.number>0);var X="auto",K=t[3];if(K.type==="ordgroup"){if(K.body.length>0){var ie=Be(K.body[0],"textord");X=st[Number(ie.text)]}}else K=Be(K,"textord"),X=st[Number(K.text)];return{type:"genfrac",mode:i.mode,numer:l,denom:c,continued:!1,hasBarLine:U,barSize:Y,leftDelim:A,rightDelim:M,size:X}},htmlBuilder:Y0,mathmlBuilder:Fr}),oe({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(r,t){var i=r.parser;r.funcName;var l=r.token;return{type:"infix",mode:i.mode,replaceWith:"\\\\abovefrac",size:Be(t[0],"size").value,token:l}}}),oe({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(r,t){var i=r.parser;r.funcName;var l=t[0],c=ve(Be(t[1],"infix").size),v=t[2],A=c.number>0;return{type:"genfrac",mode:i.mode,numer:l,denom:v,continued:!1,hasBarLine:A,barSize:c,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Y0,mathmlBuilder:Fr});var Ct=function(r,t){var i=t.style,l,c;r.type==="supsub"?(l=r.sup?Fe(r.sup,t.havingStyle(i.sup()),t):Fe(r.sub,t.havingStyle(i.sub()),t),c=Be(r.base,"horizBrace")):c=Be(r,"horizBrace");var v=Fe(c.base,t.havingBaseStyle(ue.DISPLAY)),A=Hr.svgSpan(c,t),D;if(c.isOver?(D=$.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:v},{type:"kern",size:.1},{type:"elem",elem:A}]},t),D.children[0].children[0].children[1].classes.push("svg-align")):(D=$.makeVList({positionType:"bottom",positionData:v.depth+.1+A.height,children:[{type:"elem",elem:A},{type:"kern",size:.1},{type:"elem",elem:v}]},t),D.children[0].children[0].children[0].classes.push("svg-align")),l){var M=$.makeSpan(["mord",c.isOver?"mover":"munder"],[D],t);c.isOver?D=$.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:M},{type:"kern",size:.2},{type:"elem",elem:l}]},t):D=$.makeVList({positionType:"bottom",positionData:M.depth+.2+l.height+l.depth,children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:M}]},t)}return $.makeSpan(["mord",c.isOver?"mover":"munder"],[D],t)},qu=function(r,t){var i=Hr.mathMLnode(r.label);return new te.MathNode(r.isOver?"mover":"munder",[Pe(r.base,t),i])};oe({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(r,t){var i=r.parser,l=r.funcName;return{type:"horizBrace",mode:i.mode,label:l,isOver:/^\\over/.test(l),base:t[0]}},htmlBuilder:Ct,mathmlBuilder:qu}),oe({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(r,t){var i=r.parser,l=t[1],c=Be(t[0],"url").url;return i.settings.isTrusted({command:"\\href",url:c})?{type:"href",mode:i.mode,href:c,body:er(l)}:i.formatUnsupportedCmd("\\href")},htmlBuilder:function(r,t){var i=rr(r.body,t,!1);return $.makeAnchor(r.href,[],i,t)},mathmlBuilder:function(r,t){var i=lt(r.body,t);return i instanceof _r||(i=new _r("mrow",[i])),i.setAttribute("href",r.href),i}}),oe({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(r,t){var i=r.parser,l=Be(t[0],"url").url;if(!i.settings.isTrusted({command:"\\url",url:l}))return i.formatUnsupportedCmd("\\url");for(var c=[],v=0;v0&&(l=je(r.totalheight,t)-i);var c=0;r.width.number>0&&(c=je(r.width,t));var v={height:ae(i+l)};c>0&&(v.width=ae(c)),l>0&&(v.verticalAlign=ae(-l));var A=new fi(r.src,r.alt,v);return A.height=i,A.depth=l,A},mathmlBuilder:function(r,t){var i=new te.MathNode("mglyph",[]);i.setAttribute("alt",r.alt);var l=je(r.height,t),c=0;if(r.totalheight.number>0&&(c=je(r.totalheight,t)-l,i.setAttribute("valign",ae(-c))),i.setAttribute("height",ae(l+c)),r.width.number>0){var v=je(r.width,t);i.setAttribute("width",ae(v))}return i.setAttribute("src",r.src),i}}),oe({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler:function(r,t){var i=r.parser,l=r.funcName,c=Be(t[0],"size");if(i.settings.strict){var v=l[1]==="m",A=c.value.unit==="mu";v?(A||i.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+l+" supports only mu units, "+("not "+c.value.unit+" units")),i.mode!=="math"&&i.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+l+" works only in math mode")):A&&i.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+l+" doesn't support mu units")}return{type:"kern",mode:i.mode,dimension:c.value}},htmlBuilder:function(r,t){return $.makeGlue(r.dimension,t)},mathmlBuilder:function(r,t){var i=je(r.dimension,t);return new te.SpaceNode(i)}}),oe({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(r,t){var i=r.parser,l=r.funcName,c=t[0];return{type:"lap",mode:i.mode,alignment:l.slice(5),body:c}},htmlBuilder:function(r,t){var i;r.alignment==="clap"?(i=$.makeSpan([],[Fe(r.body,t)]),i=$.makeSpan(["inner"],[i],t)):i=$.makeSpan(["inner"],[Fe(r.body,t)]);var l=$.makeSpan(["fix"],[]),c=$.makeSpan([r.alignment],[i,l],t),v=$.makeSpan(["strut"]);return v.style.height=ae(c.height+c.depth),c.depth&&(v.style.verticalAlign=ae(-c.depth)),c.children.unshift(v),c=$.makeSpan(["thinbox"],[c],t),$.makeSpan(["mord","vbox"],[c],t)},mathmlBuilder:function(r,t){var i=new te.MathNode("mpadded",[Pe(r.body,t)]);if(r.alignment!=="rlap"){var l=r.alignment==="llap"?"-1":"-0.5";i.setAttribute("lspace",l+"width")}return i.setAttribute("width","0px"),i}}),oe({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(r,t){var i=r.funcName,l=r.parser,c=l.mode;l.switchMode("math");var v=i==="\\("?"\\)":"$",A=l.parseExpression(!1,v);return l.expect(v),l.switchMode(c),{type:"styling",mode:l.mode,style:"text",body:A}}}),oe({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(r,t){throw new b("Mismatched "+r.funcName)}});var Qi=function(r,t){switch(t.style.size){case ue.DISPLAY.size:return r.display;case ue.TEXT.size:return r.text;case ue.SCRIPT.size:return r.script;case ue.SCRIPTSCRIPT.size:return r.scriptscript;default:return r.text}};oe({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:function(r,t){var i=r.parser;return{type:"mathchoice",mode:i.mode,display:er(t[0]),text:er(t[1]),script:er(t[2]),scriptscript:er(t[3])}},htmlBuilder:function(r,t){var i=Qi(r,t),l=rr(i,t,!1);return $.makeFragment(l)},mathmlBuilder:function(r,t){var i=Qi(r,t);return lt(i,t)}});var Nn=function(r,t,i,l,c,v,A){r=$.makeSpan([],[r]);var D=i&&Z.isCharacterBox(i),M,N;if(t){var U=Fe(t,l.havingStyle(c.sup()),l);N={elem:U,kern:Math.max(l.fontMetrics().bigOpSpacing1,l.fontMetrics().bigOpSpacing3-U.depth)}}if(i){var Y=Fe(i,l.havingStyle(c.sub()),l);M={elem:Y,kern:Math.max(l.fontMetrics().bigOpSpacing2,l.fontMetrics().bigOpSpacing4-Y.height)}}var X;if(N&&M){var K=l.fontMetrics().bigOpSpacing5+M.elem.height+M.elem.depth+M.kern+r.depth+A;X=$.makeVList({positionType:"bottom",positionData:K,children:[{type:"kern",size:l.fontMetrics().bigOpSpacing5},{type:"elem",elem:M.elem,marginLeft:ae(-v)},{type:"kern",size:M.kern},{type:"elem",elem:r},{type:"kern",size:N.kern},{type:"elem",elem:N.elem,marginLeft:ae(v)},{type:"kern",size:l.fontMetrics().bigOpSpacing5}]},l)}else if(M){var ie=r.height-A;X=$.makeVList({positionType:"top",positionData:ie,children:[{type:"kern",size:l.fontMetrics().bigOpSpacing5},{type:"elem",elem:M.elem,marginLeft:ae(-v)},{type:"kern",size:M.kern},{type:"elem",elem:r}]},l)}else if(N){var le=r.depth+A;X=$.makeVList({positionType:"bottom",positionData:le,children:[{type:"elem",elem:r},{type:"kern",size:N.kern},{type:"elem",elem:N.elem,marginLeft:ae(v)},{type:"kern",size:l.fontMetrics().bigOpSpacing5}]},l)}else return r;var fe=[X];if(M&&v!==0&&!D){var de=$.makeSpan(["mspace"],[],l);de.style.marginRight=ae(v),fe.unshift(de)}return $.makeSpan(["mop","op-limits"],fe,l)},ea=["\\smallint"],Dt=function(r,t){var i,l,c=!1,v;r.type==="supsub"?(i=r.sup,l=r.sub,v=Be(r.base,"op"),c=!0):v=Be(r,"op");var A=t.style,D=!1;A.size===ue.DISPLAY.size&&v.symbol&&!Z.contains(ea,v.name)&&(D=!0);var M;if(v.symbol){var N=D?"Size2-Regular":"Size1-Regular",U="";if((v.name==="\\oiint"||v.name==="\\oiiint")&&(U=v.name.slice(1),v.name=U==="oiint"?"\\iint":"\\iiint"),M=$.makeSymbol(v.name,N,"math",t,["mop","op-symbol",D?"large-op":"small-op"]),U.length>0){var Y=M.italic,X=$.staticSvg(U+"Size"+(D?"2":"1"),t);M=$.makeVList({positionType:"individualShift",children:[{type:"elem",elem:M,shift:0},{type:"elem",elem:X,shift:D?.08:0}]},t),v.name="\\"+U,M.classes.unshift("mop"),M.italic=Y}}else if(v.body){var K=rr(v.body,t,!0);K.length===1&&K[0]instanceof Tr?(M=K[0],M.classes[0]="mop"):M=$.makeSpan(["mop"],K,t)}else{for(var ie=[],le=1;le0){for(var D=v.body.map(function(Y){var X=Y.text;return typeof X=="string"?{type:"textord",mode:Y.mode,text:X}:Y}),M=rr(D,t.withFont("mathrm"),!0),N=0;N=0?D.setAttribute("height",ae(c)):(D.setAttribute("height",ae(c)),D.setAttribute("depth",ae(-c))),D.setAttribute("voffset",ae(c)),D}});function s0(m,r,t){for(var i=rr(m,r,!1),l=r.sizeMultiplier/t.sizeMultiplier,c=0;ci.height+i.depth+A&&(A=(A+X-i.height-i.depth)/2);var K=N.height-i.height-A-U;i.style.paddingLeft=ae(Y);var ie=$.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:-(i.height+K)},{type:"elem",elem:N},{type:"kern",size:U}]},t);if(r.index){var le=t.havingStyle(ue.SCRIPTSCRIPT),fe=Fe(r.index,le,t),de=.6*(ie.height-ie.depth),ge=$.makeVList({positionType:"shift",positionData:-de,children:[{type:"elem",elem:fe}]},t),ze=$.makeSpan(["root"],[ge]);return $.makeSpan(["mord","sqrt"],[ze,ie],t)}else return $.makeSpan(["mord","sqrt"],[ie],t)},mathmlBuilder:function(r,t){var i=r.body,l=r.index;return l?new te.MathNode("mroot",[Pe(i,t),Pe(l,t)]):new te.MathNode("msqrt",[Pe(i,t)])}});var In={display:ue.DISPLAY,text:ue.TEXT,script:ue.SCRIPT,scriptscript:ue.SCRIPTSCRIPT};oe({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(r,t){var i=r.breakOnTokenText,l=r.funcName,c=r.parser,v=c.parseExpression(!0,i),A=l.slice(1,l.length-5);return{type:"styling",mode:c.mode,style:A,body:v}},htmlBuilder:function(r,t){var i=In[r.style],l=t.havingStyle(i).withFont("");return s0(r.body,l,t)},mathmlBuilder:function(r,t){var i=In[r.style],l=t.havingStyle(i),c=xr(r.body,l),v=new te.MathNode("mstyle",c),A={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},D=A[r.style];return v.setAttribute("scriptlevel",D[0]),v.setAttribute("displaystyle",D[1]),v}});var Rt=function(r,t){var i=r.base;if(i)if(i.type==="op"){var l=i.limits&&(t.style.size===ue.DISPLAY.size||i.alwaysHandleSupSub);return l?Dt:null}else if(i.type==="operatorname"){var c=i.alwaysHandleSupSub&&(t.style.size===ue.DISPLAY.size||i.limits);return c?qn:null}else{if(i.type==="accent")return Z.isCharacterBox(i.base)?yn:null;if(i.type==="horizBrace"){var v=!r.sub;return v===i.isOver?Ct:null}else return null}else return null};St({type:"supsub",htmlBuilder:function(r,t){var i=Rt(r,t);if(i)return i(r,t);var l=r.base,c=r.sup,v=r.sub,A=Fe(l,t),D,M,N=t.fontMetrics(),U=0,Y=0,X=l&&Z.isCharacterBox(l);if(c){var K=t.havingStyle(t.style.sup());D=Fe(c,K,t),X||(U=A.height-K.fontMetrics().supDrop*K.sizeMultiplier/t.sizeMultiplier)}if(v){var ie=t.havingStyle(t.style.sub());M=Fe(v,ie,t),X||(Y=A.depth+ie.fontMetrics().subDrop*ie.sizeMultiplier/t.sizeMultiplier)}var le;t.style===ue.DISPLAY?le=N.sup1:t.style.cramped?le=N.sup3:le=N.sup2;var fe=t.sizeMultiplier,de=ae(.5/N.ptPerEm/fe),ge=null;if(M){var ze=r.base&&r.base.type==="op"&&r.base.name&&(r.base.name==="\\oiint"||r.base.name==="\\oiiint");(A instanceof Tr||ze)&&(ge=ae(-A.italic))}var Ce;if(D&&M){U=Math.max(U,le,D.depth+.25*N.xHeight),Y=Math.max(Y,N.sub2);var Re=N.defaultRuleThickness,Ne=4*Re;if(U-D.depth-(M.height-Y)0&&(U+=Ie,Y-=Ie)}var He=[{type:"elem",elem:M,shift:Y,marginRight:de,marginLeft:ge},{type:"elem",elem:D,shift:-U,marginRight:de}];Ce=$.makeVList({positionType:"individualShift",children:He},t)}else if(M){Y=Math.max(Y,N.sub1,M.height-.8*N.xHeight);var Qe=[{type:"elem",elem:M,marginLeft:ge,marginRight:de}];Ce=$.makeVList({positionType:"shift",positionData:Y,children:Qe},t)}else if(D)U=Math.max(U,le,D.depth+.25*N.xHeight),Ce=$.makeVList({positionType:"shift",positionData:-U,children:[{type:"elem",elem:D,marginRight:de}]},t);else throw new Error("supsub must have either sup or sub.");var Sr=r0(A,"right")||"mord";return $.makeSpan([Sr],[A,$.makeSpan(["msupsub"],[Ce])],t)},mathmlBuilder:function(r,t){var i=!1,l,c;r.base&&r.base.type==="horizBrace"&&(c=!!r.sup,c===r.base.isOver&&(i=!0,l=r.base.isOver)),r.base&&(r.base.type==="op"||r.base.type==="operatorname")&&(r.base.parentIsSupSub=!0);var v=[Pe(r.base,t)];r.sub&&v.push(Pe(r.sub,t)),r.sup&&v.push(Pe(r.sup,t));var A;if(i)A=l?"mover":"munder";else if(r.sub)if(r.sup){var N=r.base;N&&N.type==="op"&&N.limits&&t.style===ue.DISPLAY||N&&N.type==="operatorname"&&N.alwaysHandleSupSub&&(t.style===ue.DISPLAY||N.limits)?A="munderover":A="msubsup"}else{var M=r.base;M&&M.type==="op"&&M.limits&&(t.style===ue.DISPLAY||M.alwaysHandleSupSub)||M&&M.type==="operatorname"&&M.alwaysHandleSupSub&&(M.limits||t.style===ue.DISPLAY)?A="munder":A="msub"}else{var D=r.base;D&&D.type==="op"&&D.limits&&(t.style===ue.DISPLAY||D.alwaysHandleSupSub)||D&&D.type==="operatorname"&&D.alwaysHandleSupSub&&(D.limits||t.style===ue.DISPLAY)?A="mover":A="msup"}return new te.MathNode(A,v)}}),St({type:"atom",htmlBuilder:function(r,t){return $.mathsym(r.text,r.mode,t,["m"+r.family])},mathmlBuilder:function(r,t){var i=new te.MathNode("mo",[kr(r.text,r.mode)]);if(r.family==="bin"){var l=mn(r,t);l==="bold-italic"&&i.setAttribute("mathvariant",l)}else r.family==="punct"?i.setAttribute("separator","true"):(r.family==="open"||r.family==="close")&&i.setAttribute("stretchy","false");return i}});var X0={mi:"italic",mn:"normal",mtext:"normal"};St({type:"mathord",htmlBuilder:function(r,t){return $.makeOrd(r,t,"mathord")},mathmlBuilder:function(r,t){var i=new te.MathNode("mi",[kr(r.text,r.mode,t)]),l=mn(r,t)||"italic";return l!==X0[i.type]&&i.setAttribute("mathvariant",l),i}}),St({type:"textord",htmlBuilder:function(r,t){return $.makeOrd(r,t,"textord")},mathmlBuilder:function(r,t){var i=kr(r.text,r.mode,t),l=mn(r,t)||"normal",c;return r.mode==="text"?c=new te.MathNode("mtext",[i]):/[0-9]/.test(r.text)?c=new te.MathNode("mn",[i]):r.text==="\\prime"?c=new te.MathNode("mo",[i]):c=new te.MathNode("mi",[i]),l!==X0[c.type]&&c.setAttribute("mathvariant",l),c}});var Je={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},It={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};St({type:"spacing",htmlBuilder:function(r,t){if(It.hasOwnProperty(r.text)){var i=It[r.text].className||"";if(r.mode==="text"){var l=$.makeOrd(r,t,"textord");return l.classes.push(i),l}else return $.makeSpan(["mspace",i],[$.mathsym(r.text,r.mode,t)],t)}else{if(Je.hasOwnProperty(r.text))return $.makeSpan(["mspace",Je[r.text]],[],t);throw new b('Unknown type of space "'+r.text+'"')}},mathmlBuilder:function(r,t){var i;if(It.hasOwnProperty(r.text))i=new te.MathNode("mtext",[new te.TextNode(" ")]);else{if(Je.hasOwnProperty(r.text))return new te.MathNode("mspace");throw new b('Unknown type of space "'+r.text+'"')}return i}});var W0=function(){var r=new te.MathNode("mtd",[]);return r.setAttribute("width","50%"),r};St({type:"tag",mathmlBuilder:function(r,t){var i=new te.MathNode("mtable",[new te.MathNode("mtr",[W0(),new te.MathNode("mtd",[lt(r.body,t)]),W0(),new te.MathNode("mtd",[lt(r.tag,t)])])]);return i.setAttribute("width","100%"),i}});var ra={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},ta={"\\textbf":"textbf","\\textmd":"textmd"},Iu={"\\textit":"textit","\\textup":"textup"},na=function(r,t){var i=r.font;return i?ra[i]?t.withTextFontFamily(ra[i]):ta[i]?t.withTextFontWeight(ta[i]):t.withTextFontShape(Iu[i]):t};oe({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler:function(r,t){var i=r.parser,l=r.funcName,c=t[0];return{type:"text",mode:i.mode,body:er(c),font:l}},htmlBuilder:function(r,t){var i=na(r,t),l=rr(r.body,i,!0);return $.makeSpan(["mord","text"],l,i)},mathmlBuilder:function(r,t){var i=na(r,t);return lt(r.body,i)}}),oe({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(r,t){var i=r.parser;return{type:"underline",mode:i.mode,body:t[0]}},htmlBuilder:function(r,t){var i=Fe(r.body,t),l=$.makeLineSpan("underline-line",t),c=t.fontMetrics().defaultRuleThickness,v=$.makeVList({positionType:"top",positionData:i.height,children:[{type:"kern",size:c},{type:"elem",elem:l},{type:"kern",size:3*c},{type:"elem",elem:i}]},t);return $.makeSpan(["mord","underline"],[v],t)},mathmlBuilder:function(r,t){var i=new te.MathNode("mo",[new te.TextNode("‾")]);i.setAttribute("stretchy","true");var l=new te.MathNode("munder",[Pe(r.body,t),i]);return l.setAttribute("accentunder","true"),l}}),oe({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler:function(r,t){var i=r.parser;return{type:"vcenter",mode:i.mode,body:t[0]}},htmlBuilder:function(r,t){var i=Fe(r.body,t),l=t.fontMetrics().axisHeight,c=.5*(i.height-l-(i.depth+l));return $.makeVList({positionType:"shift",positionData:c,children:[{type:"elem",elem:i}]},t)},mathmlBuilder:function(r,t){return new te.MathNode("mpadded",[Pe(r.body,t)],["vcenter"])}}),oe({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(r,t,i){throw new b("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(r,t){for(var i=ia(r),l=[],c=t.havingStyle(t.style.text()),v=0;v0;)this.endGroup()},r.has=function(i){return this.current.hasOwnProperty(i)||this.builtins.hasOwnProperty(i)},r.get=function(i){return this.current.hasOwnProperty(i)?this.current[i]:this.builtins[i]},r.set=function(i,l,c){if(c===void 0&&(c=!1),c){for(var v=0;v0&&(this.undefStack[this.undefStack.length-1][i]=l)}else{var A=this.undefStack[this.undefStack.length-1];A&&!A.hasOwnProperty(i)&&(A[i]=this.current[i])}l==null?delete this.current[i]:this.current[i]=l},m}(),oa=Mn,sa=oa;E("\\noexpand",function(m){var r=m.popToken();return m.isExpandable(r.text)&&(r.noexpand=!0,r.treatAsRelax=!0),{tokens:[r],numArgs:0}}),E("\\expandafter",function(m){var r=m.popToken();return m.expandOnce(!0),{tokens:[r],numArgs:0}}),E("\\@firstoftwo",function(m){var r=m.consumeArgs(2);return{tokens:r[0],numArgs:0}}),E("\\@secondoftwo",function(m){var r=m.consumeArgs(2);return{tokens:r[1],numArgs:0}}),E("\\@ifnextchar",function(m){var r=m.consumeArgs(3);m.consumeSpaces();var t=m.future();return r[0].length===1&&r[0][0].text===t.text?{tokens:r[1],numArgs:0}:{tokens:r[2],numArgs:0}}),E("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),E("\\TextOrMath",function(m){var r=m.consumeArgs(2);return m.mode==="text"?{tokens:r[0],numArgs:0}:{tokens:r[1],numArgs:0}});var On={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};E("\\char",function(m){var r=m.popToken(),t,i="";if(r.text==="'")t=8,r=m.popToken();else if(r.text==='"')t=16,r=m.popToken();else if(r.text==="`")if(r=m.popToken(),r.text[0]==="\\")i=r.text.charCodeAt(1);else{if(r.text==="EOF")throw new b("\\char` missing argument");i=r.text.charCodeAt(0)}else t=10;if(t){if(i=On[r.text],i==null||i>=t)throw new b("Invalid base-"+t+" digit "+r.text);for(var l;(l=On[m.future().text])!=null&&l":"\\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"};E("\\dots",function(m){var r="\\dotso",t=m.expandAfterFuture().text;return t in ca?r=ca[t]:(t.slice(0,4)==="\\not"||t in $e.math&&Z.contains(["bin","rel"],$e.math[t].group))&&(r="\\dotsb"),r});var Et={")":!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};E("\\dotso",function(m){var r=m.future().text;return r in Et?"\\ldots\\,":"\\ldots"}),E("\\dotsc",function(m){var r=m.future().text;return r in Et&&r!==","?"\\ldots\\,":"\\ldots"}),E("\\cdots",function(m){var r=m.future().text;return r in Et?"\\@cdots\\,":"\\@cdots"}),E("\\dotsb","\\cdots"),E("\\dotsm","\\cdots"),E("\\dotsi","\\!\\cdots"),E("\\dotsx","\\ldots\\,"),E("\\DOTSI","\\relax"),E("\\DOTSB","\\relax"),E("\\DOTSX","\\relax"),E("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),E("\\,","\\tmspace+{3mu}{.1667em}"),E("\\thinspace","\\,"),E("\\>","\\mskip{4mu}"),E("\\:","\\tmspace+{4mu}{.2222em}"),E("\\medspace","\\:"),E("\\;","\\tmspace+{5mu}{.2777em}"),E("\\thickspace","\\;"),E("\\!","\\tmspace-{3mu}{.1667em}"),E("\\negthinspace","\\!"),E("\\negmedspace","\\tmspace-{4mu}{.2222em}"),E("\\negthickspace","\\tmspace-{5mu}{.277em}"),E("\\enspace","\\kern.5em "),E("\\enskip","\\hskip.5em\\relax"),E("\\quad","\\hskip1em\\relax"),E("\\qquad","\\hskip2em\\relax"),E("\\tag","\\@ifstar\\tag@literal\\tag@paren"),E("\\tag@paren","\\tag@literal{({#1})}"),E("\\tag@literal",function(m){if(m.macros.get("\\df@tag"))throw new b("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),E("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),E("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),E("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),E("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),E("\\newline","\\\\\\relax"),E("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var ha=ae(yr["Main-Regular"]["T".charCodeAt(0)][1]-.7*yr["Main-Regular"]["A".charCodeAt(0)][1]);E("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+ha+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),E("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+ha+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),E("\\hspace","\\@ifstar\\@hspacer\\@hspace"),E("\\@hspace","\\hskip #1\\relax"),E("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),E("\\ordinarycolon",":"),E("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),E("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),E("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),E("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),E("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),E("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),E("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),E("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),E("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),E("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),E("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),E("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),E("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),E("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),E("∷","\\dblcolon"),E("∹","\\eqcolon"),E("≔","\\coloneqq"),E("≕","\\eqqcolon"),E("⩴","\\Coloneqq"),E("\\ratio","\\vcentcolon"),E("\\coloncolon","\\dblcolon"),E("\\colonequals","\\coloneqq"),E("\\coloncolonequals","\\Coloneqq"),E("\\equalscolon","\\eqqcolon"),E("\\equalscoloncolon","\\Eqqcolon"),E("\\colonminus","\\coloneq"),E("\\coloncolonminus","\\Coloneq"),E("\\minuscolon","\\eqcolon"),E("\\minuscoloncolon","\\Eqcolon"),E("\\coloncolonapprox","\\Colonapprox"),E("\\coloncolonsim","\\Colonsim"),E("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),E("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),E("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),E("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),E("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),E("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),E("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),E("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),E("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),E("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),E("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),E("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),E("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),E("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),E("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),E("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),E("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),E("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),E("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),E("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),E("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),E("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),E("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),E("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),E("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),E("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),E("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),E("\\imath","\\html@mathml{\\@imath}{ı}"),E("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),E("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),E("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),E("⟦","\\llbracket"),E("⟧","\\rrbracket"),E("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),E("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),E("⦃","\\lBrace"),E("⦄","\\rBrace"),E("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),E("⦵","\\minuso"),E("\\darr","\\downarrow"),E("\\dArr","\\Downarrow"),E("\\Darr","\\Downarrow"),E("\\lang","\\langle"),E("\\rang","\\rangle"),E("\\uarr","\\uparrow"),E("\\uArr","\\Uparrow"),E("\\Uarr","\\Uparrow"),E("\\N","\\mathbb{N}"),E("\\R","\\mathbb{R}"),E("\\Z","\\mathbb{Z}"),E("\\alef","\\aleph"),E("\\alefsym","\\aleph"),E("\\Alpha","\\mathrm{A}"),E("\\Beta","\\mathrm{B}"),E("\\bull","\\bullet"),E("\\Chi","\\mathrm{X}"),E("\\clubs","\\clubsuit"),E("\\cnums","\\mathbb{C}"),E("\\Complex","\\mathbb{C}"),E("\\Dagger","\\ddagger"),E("\\diamonds","\\diamondsuit"),E("\\empty","\\emptyset"),E("\\Epsilon","\\mathrm{E}"),E("\\Eta","\\mathrm{H}"),E("\\exist","\\exists"),E("\\harr","\\leftrightarrow"),E("\\hArr","\\Leftrightarrow"),E("\\Harr","\\Leftrightarrow"),E("\\hearts","\\heartsuit"),E("\\image","\\Im"),E("\\infin","\\infty"),E("\\Iota","\\mathrm{I}"),E("\\isin","\\in"),E("\\Kappa","\\mathrm{K}"),E("\\larr","\\leftarrow"),E("\\lArr","\\Leftarrow"),E("\\Larr","\\Leftarrow"),E("\\lrarr","\\leftrightarrow"),E("\\lrArr","\\Leftrightarrow"),E("\\Lrarr","\\Leftrightarrow"),E("\\Mu","\\mathrm{M}"),E("\\natnums","\\mathbb{N}"),E("\\Nu","\\mathrm{N}"),E("\\Omicron","\\mathrm{O}"),E("\\plusmn","\\pm"),E("\\rarr","\\rightarrow"),E("\\rArr","\\Rightarrow"),E("\\Rarr","\\Rightarrow"),E("\\real","\\Re"),E("\\reals","\\mathbb{R}"),E("\\Reals","\\mathbb{R}"),E("\\Rho","\\mathrm{P}"),E("\\sdot","\\cdot"),E("\\sect","\\S"),E("\\spades","\\spadesuit"),E("\\sub","\\subset"),E("\\sube","\\subseteq"),E("\\supe","\\supseteq"),E("\\Tau","\\mathrm{T}"),E("\\thetasym","\\vartheta"),E("\\weierp","\\wp"),E("\\Zeta","\\mathrm{Z}"),E("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),E("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),E("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),E("\\bra","\\mathinner{\\langle{#1}|}"),E("\\ket","\\mathinner{|{#1}\\rangle}"),E("\\braket","\\mathinner{\\langle{#1}\\rangle}"),E("\\Bra","\\left\\langle#1\\right|"),E("\\Ket","\\left|#1\\right\\rangle");var fa=function(r){return function(t){var i=t.consumeArg().tokens,l=t.consumeArg().tokens,c=t.consumeArg().tokens,v=t.consumeArg().tokens,A=t.macros.get("|"),D=t.macros.get("\\|");t.macros.beginGroup();var M=function(X){return function(K){r&&(K.macros.set("|",A),c.length&&K.macros.set("\\|",D));var ie=X;if(!X&&c.length){var le=K.future();le.text==="|"&&(K.popToken(),ie=!0)}return{tokens:ie?c:l,numArgs:0}}};t.macros.set("|",M(!1)),c.length&&t.macros.set("\\|",M(!0));var N=t.consumeArg().tokens,U=t.expandTokens([].concat(v,N,i));return t.macros.endGroup(),{tokens:U.reverse(),numArgs:0}}};E("\\bra@ket",fa(!1)),E("\\bra@set",fa(!0)),E("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),E("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),E("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),E("\\angln","{\\angl n}"),E("\\blue","\\textcolor{##6495ed}{#1}"),E("\\orange","\\textcolor{##ffa500}{#1}"),E("\\pink","\\textcolor{##ff00af}{#1}"),E("\\red","\\textcolor{##df0030}{#1}"),E("\\green","\\textcolor{##28ae7b}{#1}"),E("\\gray","\\textcolor{gray}{#1}"),E("\\purple","\\textcolor{##9d38bd}{#1}"),E("\\blueA","\\textcolor{##ccfaff}{#1}"),E("\\blueB","\\textcolor{##80f6ff}{#1}"),E("\\blueC","\\textcolor{##63d9ea}{#1}"),E("\\blueD","\\textcolor{##11accd}{#1}"),E("\\blueE","\\textcolor{##0c7f99}{#1}"),E("\\tealA","\\textcolor{##94fff5}{#1}"),E("\\tealB","\\textcolor{##26edd5}{#1}"),E("\\tealC","\\textcolor{##01d1c1}{#1}"),E("\\tealD","\\textcolor{##01a995}{#1}"),E("\\tealE","\\textcolor{##208170}{#1}"),E("\\greenA","\\textcolor{##b6ffb0}{#1}"),E("\\greenB","\\textcolor{##8af281}{#1}"),E("\\greenC","\\textcolor{##74cf70}{#1}"),E("\\greenD","\\textcolor{##1fab54}{#1}"),E("\\greenE","\\textcolor{##0d923f}{#1}"),E("\\goldA","\\textcolor{##ffd0a9}{#1}"),E("\\goldB","\\textcolor{##ffbb71}{#1}"),E("\\goldC","\\textcolor{##ff9c39}{#1}"),E("\\goldD","\\textcolor{##e07d10}{#1}"),E("\\goldE","\\textcolor{##a75a05}{#1}"),E("\\redA","\\textcolor{##fca9a9}{#1}"),E("\\redB","\\textcolor{##ff8482}{#1}"),E("\\redC","\\textcolor{##f9685d}{#1}"),E("\\redD","\\textcolor{##e84d39}{#1}"),E("\\redE","\\textcolor{##bc2612}{#1}"),E("\\maroonA","\\textcolor{##ffbde0}{#1}"),E("\\maroonB","\\textcolor{##ff92c6}{#1}"),E("\\maroonC","\\textcolor{##ed5fa6}{#1}"),E("\\maroonD","\\textcolor{##ca337c}{#1}"),E("\\maroonE","\\textcolor{##9e034e}{#1}"),E("\\purpleA","\\textcolor{##ddd7ff}{#1}"),E("\\purpleB","\\textcolor{##c6b9fc}{#1}"),E("\\purpleC","\\textcolor{##aa87ff}{#1}"),E("\\purpleD","\\textcolor{##7854ab}{#1}"),E("\\purpleE","\\textcolor{##543b78}{#1}"),E("\\mintA","\\textcolor{##f5f9e8}{#1}"),E("\\mintB","\\textcolor{##edf2df}{#1}"),E("\\mintC","\\textcolor{##e0e5cc}{#1}"),E("\\grayA","\\textcolor{##f6f7f7}{#1}"),E("\\grayB","\\textcolor{##f0f1f2}{#1}"),E("\\grayC","\\textcolor{##e3e5e6}{#1}"),E("\\grayD","\\textcolor{##d6d8da}{#1}"),E("\\grayE","\\textcolor{##babec2}{#1}"),E("\\grayF","\\textcolor{##888d93}{#1}"),E("\\grayG","\\textcolor{##626569}{#1}"),E("\\grayH","\\textcolor{##3b3e40}{#1}"),E("\\grayI","\\textcolor{##21242c}{#1}"),E("\\kaBlue","\\textcolor{##314453}{#1}"),E("\\kaGreen","\\textcolor{##71B307}{#1}");var pa={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Vu=function(){function m(t,i,l){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=i,this.expansionCount=0,this.feed(t),this.macros=new $u(sa,i.macros),this.mode=l,this.stack=[]}var r=m.prototype;return r.feed=function(i){this.lexer=new la(i,this.settings)},r.switchMode=function(i){this.mode=i},r.beginGroup=function(){this.macros.beginGroup()},r.endGroup=function(){this.macros.endGroup()},r.endGroups=function(){this.macros.endGroups()},r.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},r.popToken=function(){return this.future(),this.stack.pop()},r.pushToken=function(i){this.stack.push(i)},r.pushTokens=function(i){var l;(l=this.stack).push.apply(l,i)},r.scanArgument=function(i){var l,c,v;if(i){if(this.consumeSpaces(),this.future().text!=="[")return null;l=this.popToken();var A=this.consumeArg(["]"]);v=A.tokens,c=A.end}else{var D=this.consumeArg();v=D.tokens,l=D.start,c=D.end}return this.pushToken(new ot("EOF",c.loc)),this.pushTokens(v),l.range(c,"")},r.consumeSpaces=function(){for(;;){var i=this.future();if(i.text===" ")this.stack.pop();else break}},r.consumeArg=function(i){var l=[],c=i&&i.length>0;c||this.consumeSpaces();var v=this.future(),A,D=0,M=0;do{if(A=this.popToken(),l.push(A),A.text==="{")++D;else if(A.text==="}"){if(--D,D===-1)throw new b("Extra }",A)}else if(A.text==="EOF")throw new b("Unexpected end of input in a macro argument, expected '"+(i&&c?i[M]:"}")+"'",A);if(i&&c)if((D===0||D===1&&i[M]==="{")&&A.text===i[M]){if(++M,M===i.length){l.splice(-M,M);break}}else M=0}while(D!==0||c);return v.text==="{"&&l[l.length-1].text==="}"&&(l.pop(),l.shift()),l.reverse(),{tokens:l,start:v,end:A}},r.consumeArgs=function(i,l){if(l){if(l.length!==i+1)throw new b("The length of delimiters doesn't match the number of args!");for(var c=l[0],v=0;vthis.settings.maxExpand)throw new b("Too many expansions: infinite loop or need to increase maxExpand setting");var A=v.tokens,D=this.consumeArgs(v.numArgs,v.delimiters);if(v.numArgs){A=A.slice();for(var M=A.length-1;M>=0;--M){var N=A[M];if(N.text==="#"){if(M===0)throw new b("Incomplete placeholder at end of macro body",N);if(N=A[--M],N.text==="#")A.splice(M+1,1);else if(/^[1-9]$/.test(N.text)){var U;(U=A).splice.apply(U,[M,2].concat(D[+N.text-1]))}else throw new b("Not a valid argument number",N)}}}return this.pushTokens(A),A.length},r.expandAfterFuture=function(){return this.expandOnce(),this.future()},r.expandNextToken=function(){for(;;)if(this.expandOnce()===!1){var i=this.stack.pop();return i.treatAsRelax&&(i.text="\\relax"),i}throw new Error},r.expandMacro=function(i){return this.macros.has(i)?this.expandTokens([new ot(i)]):void 0},r.expandTokens=function(i){var l=[],c=this.stack.length;for(this.pushTokens(i);this.stack.length>c;)if(this.expandOnce(!0)===!1){var v=this.stack.pop();v.treatAsRelax&&(v.noexpand=!1,v.treatAsRelax=!1),l.push(v)}return l},r.expandMacroAsText=function(i){var l=this.expandMacro(i);return l&&l.map(function(c){return c.text}).join("")},r._getExpansion=function(i){var l=this.macros.get(i);if(l==null)return l;if(i.length===1){var c=this.lexer.catcodes[i];if(c!=null&&c!==13)return}var v=typeof l=="function"?l(this):l;if(typeof v=="string"){var A=0;if(v.indexOf("#")!==-1)for(var D=v.replace(/##/g,"");D.indexOf("#"+(A+1))!==-1;)++A;for(var M=new la(v,this.settings),N=[],U=M.lex();U.text!=="EOF";)N.push(U),U=M.lex();N.reverse();var Y={tokens:N,numArgs:A};return Y}return v},r.isDefined=function(i){return this.macros.has(i)||ht.hasOwnProperty(i)||$e.math.hasOwnProperty(i)||$e.text.hasOwnProperty(i)||pa.hasOwnProperty(i)},r.isExpandable=function(i){var l=this.macros.get(i);return l!=null?typeof l=="string"||typeof l=="function"||!l.unexpandable:ht.hasOwnProperty(i)&&!ht[i].primitive},m}(),Z0=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,J0=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Ln={"́":{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"}},da={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"},ma=function(){function m(t,i){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 Vu(t,i,this.mode),this.settings=i,this.leftrightDepth=0}var r=m.prototype;return r.expect=function(i,l){if(l===void 0&&(l=!0),this.fetch().text!==i)throw new b("Expected '"+i+"', got '"+this.fetch().text+"'",this.fetch());l&&this.consume()},r.consume=function(){this.nextToken=null},r.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},r.switchMode=function(i){this.mode=i,this.gullet.switchMode(i)},r.parse=function(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var i=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),i}finally{this.gullet.endGroups()}},r.subparse=function(i){var l=this.nextToken;this.consume(),this.gullet.pushToken(new ot("}")),this.gullet.pushTokens(i);var c=this.parseExpression(!1);return this.expect("}"),this.nextToken=l,c},r.parseExpression=function(i,l){for(var c=[];;){this.mode==="math"&&this.consumeSpaces();var v=this.fetch();if(m.endOfExpression.indexOf(v.text)!==-1||l&&v.text===l||i&&ht[v.text]&&ht[v.text].infix)break;var A=this.parseAtom(l);if(A){if(A.type==="internal")continue}else break;c.push(A)}return this.mode==="text"&&this.formLigatures(c),this.handleInfixNodes(c)},r.handleInfixNodes=function(i){for(var l=-1,c,v=0;v=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+l[0]+'" used in math mode',i);var M=$e[this.mode][l].group,N=Ur.range(i),U;if(ru.hasOwnProperty(M)){var Y=M;U={type:"atom",mode:this.mode,family:Y,loc:N,text:l}}else U={type:M,mode:this.mode,loc:N,text:l};D=U}else if(l.charCodeAt(0)>=128)this.settings.strict&&(mr(l.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+l[0]+'" used in math mode',i):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+l[0]+'"'+(" ("+l.charCodeAt(0)+")"),i)),D={type:"textord",mode:"text",loc:Ur.range(i),text:l};else return null;if(this.consume(),A)for(var X=0;Xthis.revoke(u)}revoke(u){const o=this.listeners.indexOf(u);o>=0&&this.listeners.splice(o,1)}revokeAll(){this.listeners.splice(0)}call(...u){for(const o of this.listeners)o(...u)}}function z(){return z=Object.assign||function(e){for(var u=1;u=0)&&(o[h]=e[h]);return o}const q=["textContent"];function V(e){return e.replace(/[&<"]/g,u=>({"&":"&","<":"<",'"':"""})[u])}function W(e){return e.replace(/<(\/script>)/g,"\\x3c$2")}function j(e,u){const o=u?Object.entries(u).map(([f,h])=>{if(!(h==null||h===!1))return f=` ${V(f)}`,h===!0?f:`${f}="${V(h)}"`}).filter(Boolean).join(""):"";return`<${e}${o}>`}function ke(e){return``}function ve(e,u,o){return u==null?j(e,o):j(e,o)+(u||"")+ke(e)}function De(e,u){const o=u.map(f=>typeof f=="function"?f.toString():JSON.stringify(f??null)).join(",");return`(${e.toString()})(${o})`}function Z(e,u){return e.map(o=>{if(o.type==="script"){const f=o.data,{textContent:h}=f,y=I(f,q);return ve("script",h||"",y)}if(o.type==="iife"){const{fn:f,getParams:h}=o.data;return ve("script",W(De(f,(h==null?void 0:h(u))||[])))}return""})}function be(e){return e.map(u=>u.type==="stylesheet"?ve("link",null,z({rel:"stylesheet"},u.data)):ve("style",u.data))}Math.random().toString(36).slice(2,8);function qe(e,{before:u,after:o}){return function(...h){const y={args:h,thisObj:this};try{u&&u(y)}catch{}y.result=e.apply(y.thisObj,y.args);try{o&&o(y)}catch{}return y.result}}function Ve(e){const u={};return function(...f){const h=`${f[0]}`;let y=u[h];return y||(y={value:e(...f)},u[h]=y),y.value}}function Oe(e,u,o){const f=document.createElement(e);return u&&Object.entries(u).forEach(([h,y])=>{f[h]=y}),o&&Object.entries(o).forEach(([h,y])=>{f.setAttribute(h,y)}),f}const ir=Ve(e=>{document.head.append(Oe("link",{rel:"preload",as:"script",href:e}))});async function ar(e,u){if(!e.loaded&&(e.type==="script"&&(e.loaded=new Promise((o,f)=>{var h;document.head.append(Oe("script",z({},e.data,{onload:o,onerror:f}))),(h=e.data)!=null&&h.src||o(void 0)}).then(()=>{e.loaded=!0})),e.type==="iife")){const{fn:o,getParams:f}=e.data;o(...(f==null?void 0:f(u))||[]),e.loaded=!0}await e.loaded}async function ur(e,u){const o=e.filter(f=>{var h;return f.type==="script"&&((h=f.data)==null?void 0:h.src)});o.length>1&&o.forEach(f=>ir(f.data.src)),u=z({getMarkmap:()=>window.markmap},u);for(const f of e)await ar(f,u)}const or=` Markmap `,Br=["https://cdn.jsdelivr.net/npm/d3@6.7.0","https://cdn.jsdelivr.net/npm/markmap-view@0.14.4"].map(e=>({type:"script",data:{src:e}}));function sr(e,u,o){o=C({baseJs:Br},o);const{scripts:f,styles:h}=u,y=[...h?be(h):[]],w={getMarkmap:()=>window.markmap,getOptions:o.getOptions,jsonOptions:o.jsonOptions,root:e},k=[...Z([...o.baseJs,...f||[],{type:"iife",data:{fn:(O,R,H,J)=>{const Q=O();window.mm=Q.Markmap.create("svg#mindmap",(R||Q.deriveOptions)(J),H)},getParams:({getMarkmap:O,getOptions:R,root:H,jsonOptions:J})=>[O,R,H,J]}}],w)];return or.replace("",()=>y.join("")).replace("",()=>k.join(""))}var Rr={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",GT:">",Gt:"≫",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",LT:"<",Lt:"≪",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:` `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},G=Object.prototype.hasOwnProperty;function P(e,u){return e?G.call(e,u):!1}function ce(e){return P(Rr,e)?Rr[e]:e}var re=Object.prototype.hasOwnProperty;function we(e,u){return e?re.call(e,u):!1}function Se(e){var u=[].slice.call(arguments,1);return u.forEach(function(o){if(o){if(typeof o!="object")throw new TypeError(o+"must be object");Object.keys(o).forEach(function(f){e[f]=o[f]})}}),e}var _e=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function Ee(e){return e.indexOf("\\")<0?e:e.replace(_e,"$1")}function ue(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Le(e){if(e>65535){e-=65536;var u=55296+(e>>10),o=56320+(e&1023);return String.fromCharCode(u,o)}return String.fromCharCode(e)}var Mr=/&([a-z#][a-z0-9]{1,31});/gi,Ge=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function mr(e,u){var o=0,f=ce(u);return u!==f?f:u.charCodeAt(0)===35&&Ge.test(u)&&(o=u[1].toLowerCase()==="x"?parseInt(u.slice(2),16):parseInt(u.slice(1),10),ue(o))?Le(o):e}function We(e){return e.indexOf("&")<0?e:e.replace(Mr,mr)}var wr=/[&<>"]/,Ir=/[&<>"]/g,Yt={"&":"&","<":"<",">":">",'"':"""};function Ka(e){return Yt[e]}function vr(e){return wr.test(e)?e.replace(Ir,Ka):e}var pe={};pe.blockquote_open=function(){return`
`},pe.blockquote_close=function(e,u){return"
"+xt(e,u)},pe.code=function(e,u){return e[u].block?"
"+vr(e[u].content)+"
"+xt(e,u):""+vr(e[u].content)+""},pe.fence=function(e,u,o,f,h){var y=e[u],w="",k=o.langPrefix,T="",O,R,H;if(y.params){if(O=y.params.split(/\s+/g),R=O.join(" "),we(h.rules.fence_custom,O[0]))return h.rules.fence_custom[O[0]](e,u,o,f,h);T=vr(We(Ee(R))),w=' class="'+k+T+'"'}return o.highlight?H=o.highlight.apply(o.highlight,[y.content].concat(O))||vr(y.content):H=vr(y.content),"
"+H+"
"+xt(e,u)},pe.fence_custom={},pe.heading_open=function(e,u){return""},pe.heading_close=function(e,u){return" `},pe.hr=function(e,u,o){return(o.xhtmlOut?"
":"
")+xt(e,u)},pe.bullet_list_open=function(){return`
    `},pe.bullet_list_close=function(e,u){return"
"+xt(e,u)},pe.list_item_open=function(){return"
  • "},pe.list_item_close=function(){return`
  • `},pe.ordered_list_open=function(e,u){var o=e[u],f=o.order>1?' start="'+o.order+'"':"";return" `},pe.ordered_list_close=function(e,u){return""+xt(e,u)},pe.paragraph_open=function(e,u){return e[u].tight?"":"

    "},pe.paragraph_close=function(e,u){var o=!(e[u].tight&&u&&e[u-1].type==="inline"&&!e[u-1].content);return(e[u].tight?"":"

    ")+(o?xt(e,u):"")},pe.link_open=function(e,u,o){var f=e[u].title?' title="'+vr(We(e[u].title))+'"':"",h=o.linkTarget?' target="'+o.linkTarget+'"':"";return'"},pe.link_close=function(){return""},pe.image=function(e,u,o){var f=' src="'+vr(e[u].src)+'"',h=e[u].title?' title="'+vr(We(e[u].title))+'"':"",y=' alt="'+(e[u].alt?vr(We(Ee(e[u].alt))):"")+'"',w=o.xhtmlOut?" /":"";return""},pe.table_open=function(){return` `},pe.table_close=function(){return`
    `},pe.thead_open=function(){return` `},pe.thead_close=function(){return` `},pe.tbody_open=function(){return` `},pe.tbody_close=function(){return` `},pe.tr_open=function(){return""},pe.tr_close=function(){return` `},pe.th_open=function(e,u){var o=e[u];return""},pe.th_close=function(){return""},pe.td_open=function(e,u){var o=e[u];return""},pe.td_close=function(){return""},pe.strong_open=function(){return""},pe.strong_close=function(){return""},pe.em_open=function(){return""},pe.em_close=function(){return""},pe.del_open=function(){return""},pe.del_close=function(){return""},pe.ins_open=function(){return""},pe.ins_close=function(){return""},pe.mark_open=function(){return""},pe.mark_close=function(){return""},pe.sub=function(e,u){return""+vr(e[u].content)+""},pe.sup=function(e,u){return""+vr(e[u].content)+""},pe.hardbreak=function(e,u,o){return o.xhtmlOut?`
    `:`
    `},pe.softbreak=function(e,u,o){return o.breaks?o.xhtmlOut?`
    `:`
    `:` `},pe.text=function(e,u){return vr(e[u].content)},pe.htmlblock=function(e,u){return e[u].content},pe.htmltag=function(e,u){return e[u].content},pe.abbr_open=function(e,u){return''},pe.abbr_close=function(){return""},pe.footnote_ref=function(e,u){var o=Number(e[u].id+1).toString(),f="fnref"+o;return e[u].subId>0&&(f+=":"+e[u].subId),'['+o+"]"},pe.footnote_block_open=function(e,u,o){var f=o.xhtmlOut?`
    `:`
    `;return f+`
      `},pe.footnote_block_close=function(){return`
    `},pe.footnote_open=function(e,u){var o=Number(e[u].id+1).toString();return'
  • '},pe.footnote_close=function(){return`
  • `},pe.footnote_anchor=function(e,u){var o=Number(e[u].id+1).toString(),f="fnref"+o;return e[u].subId>0&&(f+=":"+e[u].subId),' '},pe.dl_open=function(){return`
    `},pe.dt_open=function(){return"
    "},pe.dd_open=function(){return"
    "},pe.dl_close=function(){return`
    `},pe.dt_close=function(){return` `},pe.dd_close=function(){return` `};function ti(e,u){return++u>=e.length-2?u:e[u].type==="paragraph_open"&&e[u].tight&&e[u+1].type==="inline"&&e[u+1].content.length===0&&e[u+2].type==="paragraph_close"&&e[u+2].tight?ti(e,u+2):u}var xt=pe.getBreak=function(u,o){return o=ti(u,o),o"u"&&(f.abbreviations[":"+T]=O),w)}function ni(e){var u=e.tokens,o,f,h,y;if(!e.inlineMode){for(o=1,f=u.length-1;o1)||o===41&&(f--,f<0))break;u++}return y===u||(h=Ee(e.src.slice(y,u)),!e.parser.validateLink(h))?!1:(e.linkContent=h,e.pos=u,!0)}function b0(e,u){var o,f=u,h=e.posMax,y=e.src.charCodeAt(u);if(y!==34&&y!==39&&y!==40)return!1;for(u++,y===40&&(y=41);u"u"&&(f.references[J]={title:H,href:R}),w)}function ai(e){var u=e.tokens,o,f,h,y;if(e.env.references=e.env.references||{},!e.inlineMode){for(o=1,f=u.length-1;o0?w[u].count:1,f=0;f=0;u--)if(y=h[u],y.type==="text"){for(T=0,w=y.content,R.lastIndex=0,O=y.level,k=[];H=R.exec(w);)R.lastIndex>T&&k.push({type:"text",content:w.slice(T,H.index+H[1].length),level:O}),k.push({type:"abbr_open",title:e.env.abbreviations[":"+H[2]],level:O++}),k.push({type:"text",content:H[2],level:O}),k.push({type:"abbr_close",level:--O}),T=R.lastIndex-H[3].length;k.length&&(T=0;y--)if(e.tokens[y].type==="inline")for(h=e.tokens[y].children,u=h.length-1;u>=0;u--)o=h[u],o.type==="text"&&(f=o.content,f=it(f),si.test(f)&&(f=f.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/mg,"$1—$2").replace(/(^|\s)--(\s|$)/mg,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/mg,"$1–$2")),o.content=f)}}var hi=/['"]/,cn=/['"]/g,Wt=/[-\s()\[\]]/,w0="’";function fi(e,u){return u<0||u>=e.length?!1:!Wt.test(e[u])}function _t(e,u,o){return e.substr(0,u)+o+e.substr(u+1)}function Tr(e){var u,o,f,h,y,w,k,T,O,R,H,J,Q,ne,se,xe,Me;if(e.options.typographer){for(Me=[],se=e.tokens.length-1;se>=0;se--)if(e.tokens[se].type==="inline"){for(xe=e.tokens[se].children,Me.length=0,u=0;u=0&&!(Me[Q].level<=k);Q--);Me.length=Q+1,f=o.content,y=0,w=f.length;e:for(;y=0&&(R=Me[Q],!(Me[Q].level=this.eMarks[u]},Jr.prototype.skipEmptyLines=function(u){for(var o=this.lineMax;uf;)if(o!==this.src.charCodeAt(--u))return u+1;return u},Jr.prototype.getLines=function(u,o,f,h){var y,w,k,T,O,R=u;if(u>=o)return"";if(R+1===o)return w=this.bMarks[R]+Math.min(this.tShift[R],f),k=h?this.eMarks[R]+1:this.eMarks[R],this.src.slice(w,k);for(T=new Array(o-u),y=0;Rf&&(O=f),O<0&&(O=0),w=this.bMarks[R]+O,R+1=4){f++,h=f;continue}break}return e.line=f,e.tokens.push({type:"code",content:e.getLines(u,h,4+e.blkIndent,!0),block:!0,lines:[u,e.line],level:e.level}),!0}function eu(e,u,o,f){var h,y,w,k,T,O=!1,R=e.bMarks[u]+e.tShift[u],H=e.eMarks[u];if(R+3>H||(h=e.src.charCodeAt(R),h!==126&&h!==96)||(T=R,R=e.skipChars(R,h),y=R-T,y<3)||(w=e.src.slice(R,H).trim(),w.indexOf("`")>=0))return!1;if(f)return!0;for(k=u;k++,!(k>=o||(R=T=e.bMarks[k]+e.tShift[k],H=e.eMarks[k],R=4)&&(R=e.skipChars(R,h),!(R-Txe||e.src.charCodeAt(se++)!==62||e.level>=e.options.maxNesting)return!1;if(f)return!0;for(e.src.charCodeAt(se)===32&&se++,T=e.blkIndent,e.blkIndent=0,k=[e.bMarks[u]],e.bMarks[u]=se,se=se=xe,w=[e.tShift[u]],e.tShift[u]=se-e.bMarks[u],H=e.parser.ruler.getRules("blockquote"),h=u+1;h=xe));h++){if(e.src.charCodeAt(se++)===62){e.src.charCodeAt(se)===32&&se++,k.push(e.bMarks[h]),e.bMarks[h]=se,se=se=xe,w.push(e.tShift[h]),e.tShift[h]=se-e.bMarks[h];continue}if(y)break;for(ne=!1,J=0,Q=H.length;JT||(h=e.src.charCodeAt(k++),h!==42&&h!==45&&h!==95))return!1;for(y=1;k=h||(o=e.src.charCodeAt(f++),o!==42&&o!==45&&o!==43)||f=h||(o=e.src.charCodeAt(f++),o<48||o>57))return-1;for(;;){if(f>=h)return-1;if(o=e.src.charCodeAt(f++),!(o>=48&&o<=57)){if(o===41||o===46)break;return-1}}return f=0)xe=!0;else if((H=Kt(e,u))>=0)xe=!1;else return!1;if(e.level>=e.options.maxNesting)return!1;if(se=e.src.charCodeAt(H-1),f)return!0;for(Te=e.tokens.length,xe?(R=e.bMarks[u]+e.tShift[u],ne=Number(e.src.substr(R,H-R-1)),e.tokens.push({type:"ordered_list_open",order:ne,lines:tt=[u,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:tt=[u,0],level:e.level++}),h=u,br=!1,Zu=e.parser.ruler.getRules("list");h=J?Q=1:Q=Me-H,Q>4&&(Q=1),Q<1&&(Q=1),y=H-e.bMarks[h]+Q,e.tokens.push({type:"list_item_open",lines:ka=[u,0],level:e.level++}),k=e.blkIndent,T=e.tight,w=e.tShift[u],O=e.parentType,e.tShift[u]=Me-e.bMarks[u],e.blkIndent=y,e.tight=!0,e.parentType="list",e.parser.tokenize(e,u,o,!0),(!e.tight||br)&&(Il=!1),br=e.line-u>1&&e.isEmpty(e.line-1),e.blkIndent=k,e.tShift[u]=w,e.tight=T,e.parentType=O,e.tokens.push({type:"list_item_close",level:--e.level}),h=u=e.line,ka[1]=h,Me=e.bMarks[u],!(h>=o||e.isEmpty(h)||e.tShift[h]R||e.src.charCodeAt(O)!==91||e.src.charCodeAt(O+1)!==94||e.level>=e.options.maxNesting)return!1;for(k=O+2;k=R||e.src.charCodeAt(++k)!==58?!1:(f||(k++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),T=e.src.slice(O+2,k-2),e.env.footnotes.refs[":"+T]=-1,e.tokens.push({type:"footnote_reference_open",label:T,level:e.level++}),h=e.bMarks[u],y=e.tShift[u],w=e.parentType,e.tShift[u]=e.skipSpaces(k)-k,e.bMarks[u]=k,e.blkIndent+=4,e.parentType="footnote",e.tShift[u]=T||(h=e.src.charCodeAt(k),h!==35||k>=T))return!1;for(y=1,h=e.src.charCodeAt(++k);h===35&&k6||kk&&e.src.charCodeAt(w-1)===32&&(T=w),e.line=u+1,e.tokens.push({type:"heading_open",hLevel:y,lines:[u,e.line],level:e.level}),k=o||e.tShift[w]3||(h=e.bMarks[w]+e.tShift[w],y=e.eMarks[w],h>=y)||(f=e.src.charCodeAt(h),f!==45&&f!==61)||(h=e.skipChars(h,f),h=e.skipSpaces(h),h]/,cr=/^<\/([a-zA-Z]{1,15})[\s>]/;function zt(e){var u=e|32;return u>=97&&u<=122}function ye(e,u,o,f){var h,y,w,k=e.bMarks[u],T=e.eMarks[u],O=e.tShift[u];if(k+=O,!e.options.html||O>3||k+2>=T||e.src.charCodeAt(k)!==60)return!1;if(h=e.src.charCodeAt(k+1),h===33||h===63){if(f)return!0}else if(h===47||zt(h)){if(h===47){if(y=e.src.slice(k,T).match(cr),!y)return!1}else if(y=e.src.slice(k,T).match(he),!y)return!1;if(Ue[y[1].toLowerCase()]!==!0)return!1;if(f)return!0}else return!1;for(w=u+1;wo||(T=u+1,e.tShift[T]=e.eMarks[T])||(h=e.src.charCodeAt(w),h!==124&&h!==45&&h!==58)||(y=Ke(e,u+1),!/^[-:| ]+$/.test(y))||(O=y.split("|"),O<=2))return!1;for(H=[],k=0;k=y||(f=e.src.charCodeAt(h++),f!==126&&f!==58)||(o=e.skipSpaces(h),h===o)||o>=y?-1:o}function F(e,u){var o,f,h=e.level+2;for(o=u+2,f=e.tokens.length-2;o=0;if(R=u+1,e.isEmpty(R)&&++R>o||e.tShift[R]=e.options.maxNesting)return!1;O=e.tokens.length,e.tokens.push({type:"dl_open",lines:T=[u,0],level:e.level++}),w=u,y=R;e:for(;;){for(Me=!0,xe=!1,e.tokens.push({type:"dt_open",lines:[w,w],level:e.level++}),e.tokens.push({type:"inline",content:e.getLines(w,w+1,e.blkIndent,!1).trim(),level:e.level+1,lines:[w,w],children:[]}),e.tokens.push({type:"dt_close",level:--e.level});;){if(e.tokens.push({type:"dd_open",lines:k=[R,0],level:e.level++}),se=e.tight,J=e.ddIndent,H=e.blkIndent,ne=e.tShift[y],Q=e.parentType,e.blkIndent=e.ddIndent=e.tShift[y]+2,e.tShift[y]=h-e.bMarks[y],e.tight=!0,e.parentType="deflist",e.parser.tokenize(e,y,o,!0),(!e.tight||xe)&&(Me=!1),xe=e.line-y>1&&e.isEmpty(e.line-1),e.tShift[y]=ne,e.tight=se,e.parentType=Q,e.blkIndent=H,e.ddIndent=J,e.tokens.push({type:"dd_close",level:--e.level}),k[1]=R=e.line,R>=o||e.tShift[R]=o||(w=R,e.isEmpty(w))||e.tShift[w]=o)||(e.isEmpty(y)&&y++,y>=o)||e.tShift[y]3)){for(h=!1,y=0,w=T.length;y=o||e.tShift[y]=0&&(e=e.replace(hn,function(k,T){var O;return e.charCodeAt(T)===10?(y=T+1,w=0,k):(O=" ".slice((T-y-w)%4),w=T-y+1,O)})),h=new Jr(e,this,u,o,f),this.tokenize(h,h.line,h.lineMax)};function fn(e){switch(e){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}function vi(e,u){for(var o=e.pos;o=0&&e.pending.charCodeAt(o)===32)if(o>=1&&e.pending.charCodeAt(o-1)===32){for(var y=o-2;y>=0;y--)if(e.pending.charCodeAt(y)!==32){e.pending=e.pending.substring(0,y+1);break}e.push({type:"hardbreak",level:e.level})}else e.pending=e.pending.slice(0,-1),e.push({type:"softbreak",level:e.level});else e.push({type:"softbreak",level:e.level});for(h++;h?@[]^_`{|}~-".split("").forEach(function(e){Jt[e.charCodeAt(0)]=1});function Ae(e,u){var o,f=e.pos,h=e.posMax;if(e.src.charCodeAt(f)!==92)return!1;if(f++,f=y||e.src.charCodeAt(w+1)!==126||e.level>=e.options.maxNesting||(k=w>0?e.src.charCodeAt(w-1):-1,T=e.src.charCodeAt(w+2),k===126)||T===126||T===32||T===10)return!1;for(f=w+2;fw+3)return e.pos+=f-w,u||(e.pending+=e.src.slice(w,f)),!0;for(e.pos=w+2,h=1;e.pos+1=y||e.src.charCodeAt(w+1)!==43||e.level>=e.options.maxNesting||(k=w>0?e.src.charCodeAt(w-1):-1,T=e.src.charCodeAt(w+2),k===43)||T===43||T===32||T===10)return!1;for(f=w+2;f=y||e.src.charCodeAt(w+1)!==61||e.level>=e.options.maxNesting||(k=w>0?e.src.charCodeAt(w-1):-1,T=e.src.charCodeAt(w+2),k===61)||T===61||T===32||T===10)return!1;for(f=w+2;f=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function C0(e,u){var o=u,f,h,y,w=!0,k=!0,T=e.posMax,O=e.src.charCodeAt(u);for(f=u>0?e.src.charCodeAt(u-1):-1;o=T&&(w=!1),y=o-u,y>=4?w=k=!1:(h=o=e.options.maxNesting)return!1;for(e.pos=R+o,k=[o];e.pos?@[\]^_`{|}~-])/g;function gi(e,u){var o,f,h=e.posMax,y=e.pos;if(e.src.charCodeAt(y)!==126||u||y+2>=h||e.level>=e.options.maxNesting)return!1;for(e.pos=y+1;e.pos?@[\]^_`{|}~-])/g;function B0(e,u){var o,f,h=e.posMax,y=e.pos;if(e.src.charCodeAt(y)!==94||u||y+2>=h||e.level>=e.options.maxNesting)return!1;for(e.pos=y+1;e.pos=e.options.maxNesting||(o=Q+1,f=yr(e,Q),f<0))return!1;if(k=f+1,k=J)return!1;for(Q=k,x0(e,k)?(y=e.linkContent,k=e.pos):y="",Q=k;k=J||e.src.charCodeAt(k)!==41)return e.pos=H,!1;k++}else{if(e.linkLevel>0)return!1;for(;k=0?h=e.src.slice(Q,k++):k=Q-1),h||(typeof h>"u"&&(k=f+1),h=e.src.slice(o,f)),T=e.env.references[ii(h)],!T)return e.pos=H,!1;y=T.href,w=T.title}return u||(e.pos=o,e.posMax=f,R?e.push({type:"image",src:y,title:w,alt:e.src.substr(o,f-o),level:e.level}):(e.push({type:"link_open",href:y,title:w,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:"link_close",level:--e.level}))),e.pos=k,e.posMax=J,!0}function iu(e,u){var o,f,h,y,w=e.posMax,k=e.pos;return k+2>=w||e.src.charCodeAt(k)!==94||e.src.charCodeAt(k+1)!==91||e.level>=e.options.maxNesting||(o=k+2,f=yr(e,k+1),f<0)?!1:(u||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),h=e.env.footnotes.list.length,e.pos=o,e.posMax=f,e.push({type:"footnote_ref",id:h,level:e.level}),e.linkLevel++,y=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[h]={tokens:e.tokens.splice(y)},e.linkLevel--),e.pos=f+1,e.posMax=w,!0)}function au(e,u){var o,f,h,y,w=e.posMax,k=e.pos;if(k+3>w||!e.env.footnotes||!e.env.footnotes.refs||e.src.charCodeAt(k)!==91||e.src.charCodeAt(k+1)!==94||e.level>=e.options.maxNesting)return!1;for(f=k+2;f=w||(f++,o=e.src.slice(k+2,f-1),typeof e.env.footnotes.refs[":"+o]>"u")?!1:(u||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+o]<0?(h=e.env.footnotes.list.length,e.env.footnotes.list[h]={label:o,count:0},e.env.footnotes.refs[":"+o]=h):h=e.env.footnotes.refs[":"+o],y=e.env.footnotes.list[h].count,e.env.footnotes.list[h].count++,e.push({type:"footnote_ref",id:h,subId:y,level:e.level})),e.pos=f,e.posMax=w,!0)}var uu=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],lu=/^<([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])?)*)>/,ou=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function pn(e,u){var o,f,h,y,w,k=e.pos;return e.src.charCodeAt(k)!==60||(o=e.src.slice(k),o.indexOf(">")<0)?!1:(f=o.match(ou),f?uu.indexOf(f[1].toLowerCase())<0||(y=f[0].slice(1,-1),w=sn(y),!e.parser.validateLink(y))?!1:(u||(e.push({type:"link_open",href:w,level:e.level}),e.push({type:"text",content:y,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=f[0].length,!0):(h=o.match(lu),h?(y=h[0].slice(1,-1),w=sn("mailto:"+y),e.parser.validateLink(w)?(u||(e.push({type:"link_open",href:w,level:e.level}),e.push({type:"text",content:y,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=h[0].length,!0):!1):!1))}function lr(e,u){return e=e.source,u=u||"",function o(f,h){return f?(h=h.source||h,e=e.replace(f,h),o):new RegExp(e,u)}}var yi=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,su=/[^"'=<>`\x00-\x20]+/,cu=/'[^']*'/,xi=/"[^"]*"/,hu=lr(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",su)("single_quoted",cu)("double_quoted",xi)(),fu=lr(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",yi)("attr_value",hu)(),pu=lr(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",fu)(),du=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,M0=/|/,bi=/<[?].*?[?]>/,wi=/]*>/,mu=//,$=lr(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",pu)("close_tag",du)("comment",M0)("processing",bi)("declaration",wi)("cdata",mu)();function Ye(e){var u=e|32;return u>=97&&u<=122}function At(e,u){var o,f,h,y=e.pos;return!e.options.html||(h=e.posMax,e.src.charCodeAt(y)!==60||y+2>=h)||(o=e.src.charCodeAt(y+1),o!==33&&o!==63&&o!==47&&!Ye(o))||(f=e.src.slice(y).match($),!f)?!1:(u||e.push({type:"htmltag",content:e.src.slice(y,y+f[0].length),level:e.level}),e.pos+=f[0].length,!0)}var et=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,vu=/^&([a-z][a-z0-9]{1,31});/i;function gu(e,u){var o,f,h,y=e.pos,w=e.posMax;if(e.src.charCodeAt(y)!==38)return!1;if(y+10){e.pos=y;return}for(h=0;h=f)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},kt.prototype.parse=function(e,u,o,f){var h=new Or(e,this,u,o,f);this.tokenize(h)};function _0(e){var u=["vbscript","javascript","file","data"],o=e.trim().toLowerCase();return o=We(o),!(o.indexOf(":")!==-1&&u.indexOf(o.split(":")[0])!==-1)}var oe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},St={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},z0={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}},er={default:oe,full:St,commonmark:z0};function Yr(e,u,o){this.src=u,this.env=o,this.options=e.options,this.tokens=[],this.inlineMode=!1,this.inline=e.inline,this.block=e.block,this.renderer=e.renderer,this.typographer=e.typographer}function ut(e,u){typeof e!="string"&&(u=e,e="default"),u&&u.linkify!=null&&console.warn(`linkify option is removed. Use linkify plugin instead: import Remarkable from 'remarkable'; import linkify from 'remarkable/linkify'; new Remarkable().use(linkify) `),this.inline=new kt,this.block=new A0,this.core=new Zr,this.renderer=new on,this.ruler=new gr,this.options={},this.configure(er[e]),this.set(u||{})}ut.prototype.set=function(e){Se(this.options,e)},ut.prototype.configure=function(e){var u=this;if(!e)throw new Error("Wrong `remarkable` preset, check name/content");e.options&&u.set(e.options),e.components&&Object.keys(e.components).forEach(function(o){e.components[o].rules&&u[o].ruler.enable(e.components[o].rules,!0)})},ut.prototype.use=function(e,u){return e(this,u),this},ut.prototype.parse=function(e,u){var o=new Yr(this,e,u);return this.core.process(o),o.tokens},ut.prototype.render=function(e,u){return u=u||{},this.renderer.render(this.parse(e,u),this.options,u)},ut.prototype.parseInline=function(e,u){var o=new Yr(this,e,u);return o.inlineMode=!0,this.core.process(o),o.tokens},ut.prototype.renderInline=function(e,u){return u=u||{},this.renderer.render(this.parseInline(e,u),this.options,u)};var yu=(e,u)=>{const o="\\",f="$",y=(u||{}).delimiter||f;if(y.length!==1)throw new Error("invalid delimiter");const w=b,k=(R,H)=>w.renderToString(R,{displayMode:H,throwOnError:!1}),T=(R,H,J)=>{let Q=!1,ne=R.bMarks[H]+R.tShift[H],se=R.eMarks[H];if(ne+1>se)return!1;const xe=R.src.charAt(ne);if(xe!==y)return!1;let Me=ne;ne=R.skipChars(ne,xe);let Te=ne-Me;if(Te!==2)return!1;let br=H;for(;++br,!(br>=J||(ne=Me=R.bMarks[br]+R.tShift[br],se=R.eMarks[br],ne=4)&&(ne=R.skipChars(ne,xe),!(ne-Me{const J=R.pos,Q=R.posMax;let ne=J;if(R.src.charAt(ne)!==y)return!1;for(++ne;ne2)return!1;const xe=ne;let Me=0;for(;ne1,level:R.level})}return R.pos=tt,!0}}ne+=1}return H||(R.pending+=se),R.pos+=se.length,!0};e.inline.ruler.push("katex",O,u),e.block.ruler.push("katex",T,u),e.renderer.rules.katex=(R,H)=>k(R[H].content,R[H].block),e.renderer.rules.katex.delimiter=y},e0={versions:{katex:"0.16.0",webfontloader:"1.6.28"},preloadScripts:[{type:"script",data:{src:"https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.js"}}],scripts:[{type:"iife",data:{fn:e=>{window.WebFontConfig={custom:{families:["KaTeX_AMS","KaTeX_Caligraphic:n4,n7","KaTeX_Fraktur:n4,n7","KaTeX_Main:n4,n7,i4,i7","KaTeX_Math:i4,i7","KaTeX_Script","KaTeX_SansSerif:n4,n7,i4","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4","KaTeX_Typewriter"]},active:()=>{e().refreshHook.call()}}},getParams({getMarkmap:e}){return[e]}}},{type:"script",data:{src:"https://cdn.jsdelivr.net/npm/webfontloader@1.6.28/webfontloader.js",defer:!0}}],styles:[{type:"stylesheet",data:{href:"https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.css"}}]};const rr="https://cdn.jsdelivr.net/npm/";function Ai(e,u,o){return e.map(f=>(typeof f=="string"&&(f.startsWith(`${u}/`)?f=`${rr}${u}@${o}${f.slice(u.length)}`:f.startsWith(`${u}@`)&&(f=`${rr}${f}`)),f))}function ki(){return{parser:new B,beforeParse:new B,afterParse:new B,htmltag:new B,retransform:new B}}function Fl(e){return e}let r0;const t0=()=>(r0||(r0=ur(e0.preloadScripts)),r0),Fe="katex";var F0={name:Fe,config:e0,transform(e){const u=(f,h)=>{const{katex:y}=window;return y?y.renderToString(f,{displayMode:h,throwOnError:!1}):(t0().then(()=>{e.retransform.call()}),f)};let o=()=>{};return e.parser.tap(f=>{f.use(yu),f.renderer.rules.katex=(h,y)=>(o(),u(h[y].content,h[y].block))}),e.beforeParse.tap((f,h)=>{o=()=>{h.features[Fe]=!0}}),e.afterParse.tap((f,h)=>{const{frontmatter:y}=h;y!=null&&y.markmap&&["extraJs","extraCss"].forEach(w=>{y.markmap[w]&&(y.markmap[w]=Ai(y.markmap[w],Fe,e0.versions.katex))})}),{styles:e0.styles,scripts:e0.scripts}}},n0={versions:{prismjs:"1.28.0"},preloadScripts:[{type:"script",data:{src:"https://cdn.jsdelivr.net/npm/prismjs@1.28.0/components/prism-core.min.js"}},{type:"script",data:{src:"https://cdn.jsdelivr.net/npm/prismjs@1.28.0/plugins/autoloader/prism-autoloader.min.js"}}],styles:[{type:"stylesheet",data:{href:"https://cdn.jsdelivr.net/npm/prismjs@1.28.0/themes/prism.css"}}]};let N0;const _r=()=>(N0||(N0=ur(n0.preloadScripts)),N0);function i0(e,u){_r().then(()=>{window.Prism.plugins.autoloader.loadLanguages([e],()=>{u.retransform.call()})})}const Si="prism";var te={name:Si,config:n0,transform(e){let u=()=>{};return e.parser.tap(o=>{o.set({highlight:(f,h)=>{var y;u();const{Prism:w}=window,k=w==null||(y=w.languages)==null?void 0:y[h];return k?w.highlight(f,k,h):(i0(h,e),"")}})}),e.beforeParse.tap((o,f)=>{u=()=>{f.features[Si]=!0}}),{styles:n0.styles}}};/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function kr(e){return typeof e>"u"||e===null}function dn(e){return typeof e=="object"&&e!==null}function mn(e){return Array.isArray(e)?e:kr(e)?[]:[e]}function xr(e,u){var o,f,h,y;if(u)for(y=Object.keys(u),o=0,f=y.length;ok&&(y=" ... ",u=f-k+y.length),o-f>k&&(w=" ...",o=f+k-w.length),{str:y+e.slice(u,o).replace(/\t/g,"→")+w,pos:f-u+y.length}}function Hr(e,u){return nr.repeat(" ",u-e.length)+e}function Be(e,u){if(u=Object.create(u||null),!e.buffer)return null;u.maxLength||(u.maxLength=79),typeof u.indent!="number"&&(u.indent=1),typeof u.linesBefore!="number"&&(u.linesBefore=3),typeof u.linesAfter!="number"&&(u.linesAfter=2);for(var o=/\r?\n|\r|\0/g,f=[0],h=[],y,w=-1;y=o.exec(e.buffer);)h.push(y.index),f.push(y.index+y[0].length),e.position<=y.index&&w<0&&(w=f.length-2);w<0&&(w=f.length-1);var k="",T,O,R=Math.min(e.line+u.linesAfter,h.length).toString().length,H=u.maxLength-(u.indent+R+3);for(T=1;T<=u.linesBefore&&!(w-T<0);T++)O=vn(e.buffer,f[w-T],h[w-T],e.position-(f[w]-f[w-T]),H),k=nr.repeat(" ",u.indent)+Hr((e.line-T+1).toString(),R)+" | "+O.str+` `+k;for(O=vn(e.buffer,f[w],h[w],e.position,H),k+=nr.repeat(" ",u.indent)+Hr((e.line+1).toString(),R)+" | "+O.str+` `,k+=nr.repeat("-",u.indent+R+3+O.pos)+`^ `,T=1;T<=u.linesAfter&&!(w+T>=h.length);T++)O=vn(e.buffer,f[w+T],h[w+T],e.position-(f[w]-f[w+T]),H),k+=nr.repeat(" ",u.indent)+Hr((e.line+T+1).toString(),R)+" | "+O.str+` `;return k.replace(/\n$/,"")}var gn=Be,q0=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],yn=["scalar","sequence","mapping"];function Mi(e){var u={};return e!==null&&Object.keys(e).forEach(function(o){e[o].forEach(function(f){u[String(f)]=o})}),u}function Au(e,u){if(u=u||{},Object.keys(u).forEach(function(o){if(q0.indexOf(o)===-1)throw new fr('Unknown option "'+o+'" is met in definition of "'+e+'" YAML type.')}),this.options=u,this.tag=e,this.kind=u.kind||null,this.resolve=u.resolve||function(){return!0},this.construct=u.construct||function(o){return o},this.instanceOf=u.instanceOf||null,this.predicate=u.predicate||null,this.represent=u.represent||null,this.representName=u.representName||null,this.defaultStyle=u.defaultStyle||null,this.multi=u.multi||!1,this.styleAliases=Mi(u.styleAliases||null),yn.indexOf(this.kind)===-1)throw new fr('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var tr=Au;function Ti(e,u){var o=[];return e[u].forEach(function(f){var h=o.length;o.forEach(function(y,w){y.tag===f.tag&&y.kind===f.kind&&y.multi===f.multi&&(h=w)}),o[h]=f}),o}function _i(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},u,o;function f(h){h.multi?(e.multi[h.kind].push(h),e.multi.fallback.push(h)):e[h.kind][h.tag]=e.fallback[h.tag]=h}for(u=0,o=arguments.length;u=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Cn=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Dn(e){return!(e===null||!Cn.test(e)||e[e.length-1]==="_")}function O0(e){var u,o;return u=e.replace(/_/g,"").toLowerCase(),o=u[0]==="-"?-1:1,"+-".indexOf(u[0])>=0&&(u=u.slice(1)),u===".inf"?o===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:u===".nan"?NaN:o*parseFloat(u,10)}var Bu=/^[-+]?[0-9]+e/;function Mu(e,u){var o;if(isNaN(e))switch(u){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(u){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(u){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(nr.isNegativeZero(e))return"-0.0";return o=e.toString(10),Bu.test(o)?o.replace("e",".e"):o}function Oi(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||nr.isNegativeZero(e))}var L0=new tr("tag:yaml.org,2002:float",{kind:"scalar",resolve:Dn,construct:O0,predicate:Oi,represent:Mu,defaultStyle:"lowercase"}),P0=Fi.extend({implicit:[wn,kn,I0,L0]}),H0=P0,Li=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),En=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Tu(e){return e===null?!1:Li.exec(e)!==null||En.exec(e)!==null}function Pi(e){var u,o,f,h,y,w,k,T=0,O=null,R,H,J;if(u=Li.exec(e),u===null&&(u=En.exec(e)),u===null)throw new Error("Date resolve error");if(o=+u[1],f=+u[2]-1,h=+u[3],!u[4])return new Date(Date.UTC(o,f,h));if(y=+u[4],w=+u[5],k=+u[6],u[7]){for(T=u[7].slice(0,3);T.length<3;)T+="0";T=+T}return u[9]&&(R=+u[10],H=+(u[11]||0),O=(R*60+H)*6e4,u[9]==="-"&&(O=-O)),J=new Date(Date.UTC(o,f,h,y,w,k,T)),O&&J.setTime(J.getTime()-O),J}function o0(e){return e.toISOString()}var Hi=new tr("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Tu,construct:Pi,instanceOf:Date,represent:o0});function _u(e){return e==="<<"||e===null}var Ui=new tr("tag:yaml.org,2002:merge",{kind:"scalar",resolve:_u}),U0=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`;function zu(e){if(e===null)return!1;var u,o,f=0,h=e.length,y=U0;for(o=0;o64)){if(u<0)return!1;f+=6}return f%8===0}function $i(e){var u,o,f=e.replace(/[\r\n=]/g,""),h=f.length,y=U0,w=0,k=[];for(u=0;u>16&255),k.push(w>>8&255),k.push(w&255)),w=w<<6|y.indexOf(f.charAt(u));return o=h%4*6,o===0?(k.push(w>>16&255),k.push(w>>8&255),k.push(w&255)):o===18?(k.push(w>>10&255),k.push(w>>2&255)):o===12&&k.push(w>>4&255),new Uint8Array(k)}function Vi(e){var u="",o=0,f,h,y=e.length,w=U0;for(f=0;f>18&63],u+=w[o>>12&63],u+=w[o>>6&63],u+=w[o&63]),o=(o<<8)+e[f];return h=y%3,h===0?(u+=w[o>>18&63],u+=w[o>>12&63],u+=w[o>>6&63],u+=w[o&63]):h===2?(u+=w[o>>10&63],u+=w[o>>4&63],u+=w[o<<2&63],u+=w[64]):h===1&&(u+=w[o>>2&63],u+=w[o<<4&63],u+=w[64],u+=w[64]),u}function Fu(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Xr=new tr("tag:yaml.org,2002:binary",{kind:"scalar",resolve:zu,construct:$i,predicate:Fu,represent:Vi}),Gi=Object.prototype.hasOwnProperty,Nu=Object.prototype.toString;function $0(e){if(e===null)return!0;var u=[],o,f,h,y,w,k=e;for(o=0,f=k.length;o>10)+55296,(e-65536&1023)+56320)}for(var Dt=new Array(256),Nt=new Array(256),qt=0;qt<256;qt++)Dt[qt]=Nn(qt)?1:0,Nt[qt]=Nn(qt);function Ru(e,u){this.input=e,this.filename=u.filename||null,this.schema=u.schema||Ft,this.onWarning=u.onWarning||null,this.legacy=u.legacy||!1,this.json=u.json||!1,this.listener=u.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function qn(e,u){var o={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return o.snippet=gn(o),new fr(u,o)}function me(e,u){throw qn(e,u)}function s0(e,u){e.onWarning&&e.onWarning.call(null,qn(e,u))}var Rn={YAML:function(u,o,f){var h,y,w;u.version!==null&&me(u,"duplication of %YAML directive"),f.length!==1&&me(u,"YAML directive accepts exactly one argument"),h=/^([0-9]+)\.([0-9]+)$/.exec(f[0]),h===null&&me(u,"ill-formed argument of the YAML directive"),y=parseInt(h[1],10),w=parseInt(h[2],10),y!==1&&me(u,"unacceptable YAML version of the document"),u.version=f[0],u.checkLineBreaks=w<2,w!==1&&w!==2&&s0(u,"unsupported YAML version of the document")},TAG:function(u,o,f){var h,y;f.length!==2&&me(u,"TAG directive accepts exactly two arguments"),h=f[0],y=f[1],_n.test(h)||me(u,"ill-formed tag handle (first argument) of the TAG directive"),Kr.call(u.tagMap,h)&&me(u,'there is a previously declared suffix for "'+h+'" tag handle'),zn.test(y)||me(u,"ill-formed tag prefix (second argument) of the TAG directive");try{y=decodeURIComponent(y)}catch{me(u,"tag prefix is malformed: "+y)}u.tagMap[h]=y}};function ct(e,u,o,f){var h,y,w,k;if(u1&&(e.result+=nr.repeat(` `,u-1))}function ra(e,u,o){var f,h,y,w,k,T,O,R,H=e.kind,J=e.result,Q;if(Q=e.input.charCodeAt(e.position),pr(Q)||Ct(Q)||Q===35||Q===38||Q===42||Q===33||Q===124||Q===62||Q===39||Q===34||Q===37||Q===64||Q===96||(Q===63||Q===45)&&(h=e.input.charCodeAt(e.position+1),pr(h)||o&&Ct(h)))return!1;for(e.kind="scalar",e.result="",y=w=e.position,k=!1;Q!==0;){if(Q===58){if(h=e.input.charCodeAt(e.position+1),pr(h)||o&&Ct(h))break}else if(Q===35){if(f=e.input.charCodeAt(e.position-1),pr(f))break}else{if(e.position===e.lineStart&&It(e)||o&&Ct(Q))break;if(Fr(Q))if(T=e.line,O=e.lineStart,R=e.lineIndent,Je(e,!1,-1),e.lineIndent>=u){k=!0,Q=e.input.charCodeAt(e.position);continue}else{e.position=w,e.line=T,e.lineStart=O,e.lineIndent=R;break}}k&&(ct(e,y,w,!1),W0(e,e.line-T),y=w=e.position,k=!1),st(Q)||(w=e.position+1),Q=e.input.charCodeAt(++e.position)}return ct(e,y,w,!1),e.result?!0:(e.kind=H,e.result=J,!1)}function ta(e,u){var o,f,h;if(o=e.input.charCodeAt(e.position),o!==39)return!1;for(e.kind="scalar",e.result="",e.position++,f=h=e.position;(o=e.input.charCodeAt(e.position))!==0;)if(o===39)if(ct(e,f,e.position,!0),o=e.input.charCodeAt(++e.position),o===39)f=e.position,e.position++,h=e.position;else return!0;else Fr(o)?(ct(e,f,h,!0),W0(e,Je(e,!1,u)),f=h=e.position):e.position===e.lineStart&&It(e)?me(e,"unexpected end of the document within a single quoted scalar"):(e.position++,h=e.position);me(e,"unexpected end of the stream within a single quoted scalar")}function Iu(e,u){var o,f,h,y,w,k;if(k=e.input.charCodeAt(e.position),k!==34)return!1;for(e.kind="scalar",e.result="",e.position++,o=f=e.position;(k=e.input.charCodeAt(e.position))!==0;){if(k===34)return ct(e,o,e.position,!0),e.position++,!0;if(k===92){if(ct(e,o,e.position,!0),k=e.input.charCodeAt(++e.position),Fr(k))Je(e,!1,u);else if(k<256&&Dt[k])e.result+=Nt[k],e.position++;else if((w=Fn(k))>0){for(h=w,y=0;h>0;h--)k=e.input.charCodeAt(++e.position),(w=qu(k))>=0?y=(y<<4)+w:me(e,"expected hexadecimal character");e.result+=ea(y),e.position++}else me(e,"unknown escape sequence");o=f=e.position}else Fr(k)?(ct(e,o,f,!0),W0(e,Je(e,!1,u)),o=f=e.position):e.position===e.lineStart&&It(e)?me(e,"unexpected end of the document within a double quoted scalar"):(e.position++,f=e.position)}me(e,"unexpected end of the stream within a double quoted scalar")}function na(e,u){var o=!0,f,h,y,w=e.tag,k,T=e.anchor,O,R,H,J,Q,ne=Object.create(null),se,xe,Me,Te;if(Te=e.input.charCodeAt(e.position),Te===91)R=93,Q=!1,k=[];else if(Te===123)R=125,Q=!0,k={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=k),Te=e.input.charCodeAt(++e.position);Te!==0;){if(Je(e,!0,u),Te=e.input.charCodeAt(e.position),Te===R)return e.position++,e.tag=w,e.anchor=T,e.kind=Q?"mapping":"sequence",e.result=k,!0;o?Te===44&&me(e,"expected the node content, but found ','"):me(e,"missed comma between flow collection entries"),xe=se=Me=null,H=J=!1,Te===63&&(O=e.input.charCodeAt(e.position+1),pr(O)&&(H=J=!0,e.position++,Je(e,!0,u))),f=e.line,h=e.lineStart,y=e.position,Ot(e,u,$r,!1,!0),xe=e.tag,se=e.result,Je(e,!0,u),Te=e.input.charCodeAt(e.position),(J||e.line===f)&&Te===58&&(H=!0,Te=e.input.charCodeAt(++e.position),Je(e,!0,u),Ot(e,u,$r,!1,!0),Me=e.result),Q?Rt(e,k,ne,xe,se,Me,f,h,y):H?k.push(Rt(e,null,ne,xe,se,Me,f,h,y)):k.push(se),Je(e,!0,u),Te=e.input.charCodeAt(e.position),Te===44?(o=!0,Te=e.input.charCodeAt(++e.position)):o=!1}me(e,"unexpected end of the stream within a flow collection")}function ia(e,u){var o,f,h=zr,y=!1,w=!1,k=u,T=0,O=!1,R,H;if(H=e.input.charCodeAt(e.position),H===124)f=!1;else if(H===62)f=!0;else return!1;for(e.kind="scalar",e.result="";H!==0;)if(H=e.input.charCodeAt(++e.position),H===43||H===45)zr===h?h=H===43?Wi:Xi:me(e,"repeat of a chomping mode identifier");else if((R=Qi(H))>=0)R===0?me(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):w?me(e,"repeat of an indentation width identifier"):(k=u+R-1,w=!0);else break;if(st(H)){do H=e.input.charCodeAt(++e.position);while(st(H));if(H===35)do H=e.input.charCodeAt(++e.position);while(!Fr(H)&&H!==0)}for(;H!==0;){for(X0(e),e.lineIndent=0,H=e.input.charCodeAt(e.position);(!w||e.lineIndentk&&(k=e.lineIndent),Fr(H)){T++;continue}if(e.lineIndentu)&&T!==0)me(e,"bad indentation of a sequence entry");else if(e.lineIndentu)&&(xe&&(w=e.line,k=e.lineStart,T=e.position),Ot(e,u,j0,!0,h)&&(xe?ne=e.result:se=e.result),xe||(Rt(e,H,J,Q,ne,se,w,k,T),Q=ne=se=null),Je(e,!0,-1),Te=e.input.charCodeAt(e.position)),(e.line===y||e.lineIndent>u)&&Te!==0)me(e,"bad indentation of a mapping entry");else if(e.lineIndentu?T=1:e.lineIndent===u?T=0:e.lineIndentu?T=1:e.lineIndent===u?T=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),H=0,J=e.implicitTypes.length;H"),e.result!==null&&ne.kind!==e.kind&&me(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+ne.kind+'", not "'+e.kind+'"'),ne.resolve(e.result,e.tag)?(e.result=ne.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):me(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||R}function Pu(e){var u=e.position,o,f,h,y=!1,w;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(w=e.input.charCodeAt(e.position))!==0&&(Je(e,!0,-1),w=e.input.charCodeAt(e.position),!(e.lineIndent>0||w!==37));){for(y=!0,w=e.input.charCodeAt(++e.position),o=e.position;w!==0&&!pr(w);)w=e.input.charCodeAt(++e.position);for(f=e.input.slice(o,e.position),h=[],f.length<1&&me(e,"directive name must not be less than one character in length");w!==0;){for(;st(w);)w=e.input.charCodeAt(++e.position);if(w===35){do w=e.input.charCodeAt(++e.position);while(w!==0&&!Fr(w));break}if(Fr(w))break;for(o=e.position;w!==0&&!pr(w);)w=e.input.charCodeAt(++e.position);h.push(e.input.slice(o,e.position))}w!==0&&X0(e),Kr.call(Rn,f)?Rn[f](e,f,h):s0(e,'unknown document directive "'+f+'"')}if(Je(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Je(e,!0,-1)):y&&me(e,"directives end mark is expected"),Ot(e,e.lineIndent-1,j0,!1,!0),Je(e,!0,-1),e.checkLineBreaks&&Zi.test(e.input.slice(u,e.position))&&s0(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&It(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Je(e,!0,-1));return}if(e.position"u"&&(o=u,u=null);var f=K0(e,o);if(typeof u!="function")return f;for(var h=0,y=f.length;h=55296&&o<=56319&&u+1=56320&&f<=57343)?(o-55296)*1024+f-56320+65536:o}function Ce(e){var u=/^\n* /;return u.test(e)}var Re=1,Ne=2,Ie=3,He=4,Qe=5;function Sr(e,u,o,f,h,y,w,k){var T,O=0,R=null,H=!1,J=!1,Q=f!==-1,ne=-1,se=de(ze(e,0))&&ge(ze(e,e.length-1));if(u||w)for(T=0;T=65536?T+=2:T++){if(O=ze(e,T),!ie(O))return Qe;se=se&&fe(O,R,k),R=O}else{for(T=0;T=65536?T+=2:T++){if(O=ze(e,T),O===Et)H=!0,Q&&(J=J||T-ne-1>f&&e[ne+1]!==" ",ne=T);else if(!ie(O))return Qe;se=se&&fe(O,R,k),R=O}J=J||Q&&T-ne-1>f&&e[ne+1]!==" "}return!H&&!J?se&&!w&&!h(e)?Re:y===M?Qe:Ne:o>9&&Ce(e)?Qe:w?y===M?Qe:Ne:J?He:Ie}function Xe(e,u,o,f,h){e.dump=function(){if(u.length===0)return e.quotingType===M?'""':"''";if(!e.noCompatMode&&(l.indexOf(u)!==-1||c.test(u)))return e.quotingType===M?'"'+u+'"':"'"+u+"'";var y=e.indent*Math.max(1,o),w=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-y),k=f||e.flowLevel>-1&&o>=e.flowLevel;function T(O){return X(e,O)}switch(Sr(u,k,e.indent,w,T,e.quotingType,e.forceQuotes&&!f,h)){case Re:return u;case Ne:return"'"+u.replace(/'/g,"''")+"'";case Ie:return"|"+ft(u,e.indent)+Cr(U(u,y));case He:return">"+ft(u,e.indent)+Cr(U(dr(u,w),y));case Qe:return'"'+Lt(u)+'"';default:throw new fr("impossible error: invalid scalar style")}}()}function ft(e,u){var o=Ce(e)?String(u):"",f=e[e.length-1]===` `,h=f&&(e[e.length-2]===` `||e===` `),y=h?"+":f?"":"-";return o+y+` `}function Cr(e){return e[e.length-1]===` `?e.slice(0,-1):e}function dr(e,u){for(var o=/(\n+)([^\n]*)/g,f=function(){var O=e.indexOf(` `);return O=O!==-1?O:e.length,o.lastIndex=O,rt(e.slice(0,O),u)}(),h=e[0]===` `||e[0]===" ",y,w;w=o.exec(e);){var k=w[1],T=w[2];y=T[0]===" ",f+=k+(!h&&!y&&T!==""?` `:"")+rt(T,u),h=y}return f}function rt(e,u){if(e===""||e[0]===" ")return e;for(var o=/ [^ ]/g,f,h=0,y,w=0,k=0,T="";f=o.exec(e);)k=f.index,k-h>u&&(y=w>h?w:k,T+=` `+e.slice(h,y),h=y+1),w=k;return T+=` `,e.length-h>u&&w>h?T+=e.slice(h,w)+` `+e.slice(w+1):T+=e.slice(h),T.slice(1)}function Lt(e){for(var u="",o=0,f,h=0;h=65536?h+=2:h++)o=ze(e,h),f=i[o],!f&&ie(o)?(u+=e[h],o>=65536&&(u+=e[h+1])):u+=f||A(o);return u}function Pt(e,u,o){var f="",h=e.tag,y,w,k;for(y=0,w=o.length;y"u"&&Er(e,u,null,!1,!1))&&(f!==""&&(f+=","+(e.condenseFlow?"":" ")),f+=e.dump);e.tag=h,e.dump="["+f+"]"}function Q0(e,u,o,f){var h="",y=e.tag,w,k,T;for(w=0,k=o.length;w"u"&&Er(e,u+1,null,!0,!0,!1,!0))&&((!f||h!=="")&&(h+=Y(e,u)),e.dump&&Et===e.dump.charCodeAt(0)?h+="-":h+="- ",h+=e.dump);e.tag=y,e.dump=h||"[]"}function pt(e,u,o){var f="",h=e.tag,y=Object.keys(o),w,k,T,O,R;for(w=0,k=y.length;w1024&&(R+="? "),R+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Er(e,u,O,!1,!1)&&(R+=e.dump,f+=R));e.tag=h,e.dump="{"+f+"}"}function dt(e,u,o,f){var h="",y=e.tag,w=Object.keys(o),k,T,O,R,H,J;if(e.sortKeys===!0)w.sort();else if(typeof e.sortKeys=="function")w.sort(e.sortKeys);else if(e.sortKeys)throw new fr("sortKeys must be a boolean or a function");for(k=0,T=w.length;k1024,H&&(e.dump&&Et===e.dump.charCodeAt(0)?J+="?":J+="? "),J+=e.dump,H&&(J+=Y(e,u)),Er(e,u+1,R,!0,H)&&(e.dump&&Et===e.dump.charCodeAt(0)?J+=":":J+=": ",J+=e.dump,h+=J));e.tag=y,e.dump=h||"{}"}function Dr(e,u,o){var f,h,y,w,k,T;for(h=o?e.explicitTypes:e.implicitTypes,y=0,w=h.length;y tag resolver accepts not "'+T+'" style');e.dump=f}return!0}return!1}function Er(e,u,o,f,h,y,w){e.tag=null,e.dump=o,Dr(e,o,!1)||Dr(e,o,!0);var k=sa.call(e.dump),T=f,O;f&&(f=e.flowLevel<0||e.flowLevel>u);var R=k==="[object Object]"||k==="[object Array]",H,J;if(R&&(H=e.duplicates.indexOf(o),J=H!==-1),(e.tag!==null&&e.tag!=="?"||J||e.indent!==2&&u>0)&&(h=!1),J&&e.usedDuplicates[H])e.dump="*ref_"+H;else{if(R&&J&&!e.usedDuplicates[H]&&(e.usedDuplicates[H]=!0),k==="[object Object]")f&&Object.keys(e.dump).length!==0?(dt(e,u,e.dump,h),J&&(e.dump="&ref_"+H+e.dump)):(pt(e,u,e.dump),J&&(e.dump="&ref_"+H+" "+e.dump));else if(k==="[object Array]")f&&e.dump.length!==0?(e.noArrayIndent&&!w&&u>0?Q0(e,u-1,e.dump,h):Q0(e,u,e.dump,h),J&&(e.dump="&ref_"+H+e.dump)):(Pt(e,u,e.dump),J&&(e.dump="&ref_"+H+" "+e.dump));else if(k==="[object String]")e.tag!=="?"&&Xe(e,e.dump,u,y,T);else{if(k==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new fr("unacceptable kind of an object to dump "+k)}e.tag!==null&&e.tag!=="?"&&(O=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?O="!"+O:O.slice(0,18)==="tag:yaml.org,2002:"?O="!!"+O.slice(18):O="!<"+O+">",e.dump=O+" "+e.dump)}return!0}function Un(e,u){var o=[],f=[],h,y;for(mt(e,o,f),h=0,y=f.length;h{const f=u.parse;u.parse=qe(f,{before(h){const[y]=h.args;if(!y.startsWith(`--- `))return;const w=y.indexOf(` --- `);if(w<0)return;const k=y.slice(4,w);let T;try{var O;T=vs.load(k),(O=T)!=null&&O.markmap&&(T.markmap=ys(T.markmap))}catch{return}o.frontmatter=T;const R=w+5;h.args[0]=y.slice(R)},after(){u.parse=f}})}),{}}};function ys(e){if(e)return["color","extraJs","extraCss"].forEach(u=>{e[u]!=null&&(e[u]=xs(e[u]))}),["duration","maxWidth","initialExpandLevel"].forEach(u=>{e[u]!=null&&(e[u]=bs(e[u]))}),e}function xs(e){var u;let o;return typeof e=="string"?o=[e]:Array.isArray(e)&&(o=e.filter(f=>f&&typeof f=="string")),(u=o)!=null&&u.length?o:void 0}function bs(e){if(!isNaN(+e))return+e}const Nl=[gs,F0,te];function ql(e){if(e.type==="heading")e.children=e.children.filter(h=>h.type!=="paragraph");else if(e.type==="list_item"){var u;e.children=e.children.filter(h=>["paragraph","fence"].includes(h.type)?(e.content||(e.content=h.content,e.payload=C({},e.payload,h.payload)),!1):!0),((u=e.payload)==null?void 0:u.index)!=null&&(e.content=`${e.payload.index}. ${e.content}`)}else if(e.type==="ordered_list"){var o,f;let h=(o=(f=e.payload)==null?void 0:f.startIndex)!=null?o:1;e.children.forEach(y=>{y.type==="list_item"&&(y.payload=C({},y.payload,{index:h}),h+=1)})}e.children.length===0?delete e.children:(e.children.forEach(h=>ql(h)),e.children.length===1&&!e.children[0].content&&(e.children=e.children[0].children))}function Rl(e,u=0){var o;e.depth=u,(o=e.children)==null||o.forEach(f=>{Rl(f,u+1)})}class ws{constructor(u=Nl){this.assetsMap={},this.plugins=u,this.hooks=ki();const o={};for(const{name:h,transform:y}of u)o[h]=y(this.hooks);this.assetsMap=o;const f=new ut("full",{html:!0,breaks:!0,maxNesting:1/0});f.renderer.rules.htmltag=qe(f.renderer.rules.htmltag,{after:h=>{this.hooks.htmltag.call(h)}}),this.md=f,this.hooks.parser.call(f)}buildTree(u){const{md:o}=this,f={type:"root",depth:0,content:"",children:[],payload:{}},h=[f];let y=0;for(const T of u){let O=h[h.length-1];if(T.type.endsWith("_open")){const R=T.type.slice(0,-5),H={};if(T.lines&&(H.lines=T.lines),R==="heading")for(y=T.hLevel;((w=O)==null?void 0:w.depth)>=y;){var w;h.pop(),O=h[h.length-1]}else{var k;y=Math.max(y,((k=O)==null?void 0:k.depth)||0)+1,R==="ordered_list"&&(H.startIndex=T.order)}const J={type:R,depth:y,payload:H,content:"",children:[]};O.children.push(J),h.push(J)}else if(O){if(T.type===`${O.type}_close`)O.type==="heading"?y=O.depth:(h.pop(),y=0);else if(T.type==="inline"){const R=this.hooks.htmltag.tap(J=>{const Q=J.result.match(/^$/),ne=Q==null?void 0:Q[1].trim().split(" ");ne[0]==="fold"&&(O.payload.fold=["all","recursively"].includes(ne[1])?2:1,J.result="")}),H=o.renderer.render([T],o.options,{});R(),O.content=`${O.content||""}${H}`}else if(T.type==="fence"){let R=o.renderer.render([T],o.options,{});const H=R.match(//);H&&(R=R.replace("
    ",``)),O.children.push({type:T.type,depth:y+1,content:R,children:[]})}}else continue}return f}transform(u){var o;const f={features:{}};this.hooks.beforeParse.call(this.md,f);const h=this.md.parse(u,{});this.hooks.afterParse.call(this.md,f);let y=this.buildTree(h);return ql(y),((o=y.children)==null?void 0:o.length)===1&&(y=y.children[0]),Rl(y),C({},f,{root:y})}getAssets(u){var o;const f=[],h=[];(o=u)!=null||(u=this.plugins.map(y=>y.name));for(const y of u.map(w=>this.assetsMap[w]))y&&(y.styles&&f.push(...y.styles),y.scripts&&h.push(...y.scripts));return{styles:f,scripts:h}}getUsedAssets(u){const o=this.plugins.map(f=>f.name).filter(f=>u[f]);return this.getAssets(o)}}const As={"markmap-lib":"0.14.4",d3:"6.7.0"};s.Transformer=ws,s.builtInPlugins=Nl,s.fillTemplate=sr,s.transformerVersions=As})})(ll,ll.exports);var s4=ll.exports;/*! markmap-common v0.14.2 | MIT License */class xo{constructor(){this.listeners=[]}tap(a){return this.listeners.push(a),()=>this.revoke(a)}revoke(a){const s=this.listeners.indexOf(a);s>=0&&this.listeners.splice(s,1)}revokeAll(){this.listeners.splice(0)}call(...a){for(const s of this.listeners)s(...a)}}const Ss=Math.random().toString(36).slice(2,8);let Pl=0;function Cs(){return Pl+=1,`mm-${Ss}-${Pl}`}function el(){}function ol(n,a,s="children"){const d=(x,b)=>a(x,()=>{var C;(C=x[s])==null||C.forEach(B=>{d(B,x)})},b);d(n)}function bo(n){if(Array.from)return Array.from(n);const a=[];for(let s=0;s{d&&s.indexOf(d)<0&&s.push(d)}),s.join(" ")}function nn(n){if(typeof n=="string"){const s=n;n=d=>d.tagName===s}const a=n;return function(){let d=bo(this.childNodes);return a&&(d=d.filter(x=>a(x))),d}}function Hl(n,a){let s;if(a===void 0)for(const d of n)d!=null&&(s=d)&&(s=d);else{let d=-1;for(let x of n)(x=a(x,++d,n))!=null&&(s=x)&&(s=x)}return s}function Ul(n,a){let s;if(a===void 0)for(const d of n)d!=null&&(s>d||s===void 0&&d>=d)&&(s=d);else{let d=-1;for(let x of n)(x=a(x,++d,n))!=null&&(s>x||s===void 0&&x>=x)&&(s=x)}return s}function Es(n,a){let s,d=-1,x=-1;if(a===void 0)for(const b of n)++x,b!=null&&(s>b||s===void 0&&b>=b)&&(s=b,d=x);else for(let b of n)(b=a(b,++x,n))!=null&&(s>b||s===void 0&&b>=b)&&(s=b,d=x);return d}var Bs={value:()=>{}};function Al(){for(var n=0,a=arguments.length,s={},d;n=0&&(d=s.slice(x+1),s=s.slice(0,x)),s&&!a.hasOwnProperty(s))throw new Error("unknown type: "+s);return{type:s,name:d}})}Ta.prototype=Al.prototype={constructor:Ta,on:function(n,a){var s=this._,d=Ms(n+"",s),x,b=-1,C=d.length;if(arguments.length<2){for(;++b0)for(var s=new Array(x),d=0,x,b;d=0&&(a=n.slice(0,s))!=="xmlns"&&(n=n.slice(s+1)),Vl.hasOwnProperty(a)?{space:Vl[a],local:n}:n}function _s(n){return function(){var a=this.ownerDocument,s=this.namespaceURI;return s===sl&&a.documentElement.namespaceURI===sl?a.createElement(n):a.createElementNS(s,n)}}function zs(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function wo(n){var a=Ga(n);return(a.local?zs:_s)(a)}function Fs(){}function kl(n){return n==null?Fs:function(){return this.querySelector(n)}}function Ns(n){typeof n!="function"&&(n=kl(n));for(var a=this._groups,s=a.length,d=new Array(s),x=0;x=qe&&(qe=be+1);!(Oe=De[qe])&&++qe=0;)(C=d[x])&&(b&&C.compareDocumentPosition(b)^4&&b.parentNode.insertBefore(C,b),b=C);return this}function nc(n){n||(n=ic);function a(V,W){return V&&W?n(V.__data__,W.__data__):!V-!W}for(var s=this._groups,d=s.length,x=new Array(d),b=0;ba?1:n>=a?0:NaN}function ac(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this}function uc(){return Array.from(this)}function lc(){for(var n=this._groups,a=0,s=n.length;a1?this.each((a==null?yc:typeof a=="function"?bc:xc)(n,a,s??"")):un(this.node(),n)}function un(n,a){return n.style.getPropertyValue(a)||Eo(n).getComputedStyle(n,null).getPropertyValue(a)}function Ac(n){return function(){delete this[n]}}function kc(n,a){return function(){this[n]=a}}function Sc(n,a){return function(){var s=a.apply(this,arguments);s==null?delete this[n]:this[n]=s}}function Cc(n,a){return arguments.length>1?this.each((a==null?Ac:typeof a=="function"?Sc:kc)(n,a)):this.node()[n]}function Bo(n){return n.trim().split(/^|\s+/)}function Sl(n){return n.classList||new Mo(n)}function Mo(n){this._node=n,this._names=Bo(n.getAttribute("class")||"")}Mo.prototype={add:function(n){var a=this._names.indexOf(n);a<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var a=this._names.indexOf(n);a>=0&&(this._names.splice(a,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};function To(n,a){for(var s=Sl(n),d=-1,x=a.length;++d=0&&(s=a.slice(d+1),a=a.slice(0,d)),{type:a,name:s}})}function Qc(n){return function(){var a=this.__on;if(a){for(var s=0,d=-1,x=a.length,b;s>8&15|a>>4&240,a>>4&15|a&240,(a&15)<<4|a&15,1):s===8?Ca(a>>24&255,a>>16&255,a>>8&255,(a&255)/255):s===4?Ca(a>>12&15|a>>8&240,a>>8&15|a>>4&240,a>>4&15|a&240,((a&15)<<4|a&15)/255):null):(a=h1.exec(n))?new jr(a[1],a[2],a[3],1):(a=f1.exec(n))?new jr(a[1]*255/100,a[2]*255/100,a[3]*255/100,1):(a=p1.exec(n))?Ca(a[1],a[2],a[3],a[4]):(a=d1.exec(n))?Ca(a[1]*255/100,a[2]*255/100,a[3]*255/100,a[4]):(a=m1.exec(n))?Zl(a[1],a[2]/100,a[3]/100,1):(a=v1.exec(n))?Zl(a[1],a[2]/100,a[3]/100,a[4]):Gl.hasOwnProperty(n)?Xl(Gl[n]):n==="transparent"?new jr(NaN,NaN,NaN,0):null}function Xl(n){return new jr(n>>16&255,n>>8&255,n&255,1)}function Ca(n,a,s,d){return d<=0&&(n=a=s=NaN),new jr(n,a,s,d)}function y1(n){return n instanceof ri||(n=Jn(n)),n?(n=n.rgb(),new jr(n.r,n.g,n.b,n.opacity)):new jr}function hl(n,a,s,d){return arguments.length===1?y1(n):new jr(n,a,s,d??1)}function jr(n,a,s,d){this.r=+n,this.g=+a,this.b=+s,this.opacity=+d}Cl(jr,hl,No(ri,{brighter:function(n){return n=n==null?Ia:Math.pow(Ia,n),new jr(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=n==null?Kn:Math.pow(Kn,n),new jr(this.r*n,this.g*n,this.b*n,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Wl,formatHex:Wl,formatRgb:Kl,toString:Kl}));function Wl(){return"#"+rl(this.r)+rl(this.g)+rl(this.b)}function Kl(){var n=this.opacity;return n=isNaN(n)?1:Math.max(0,Math.min(1,n)),(n===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(n===1?")":", "+n+")")}function rl(n){return n=Math.max(0,Math.min(255,Math.round(n)||0)),(n<16?"0":"")+n.toString(16)}function Zl(n,a,s,d){return d<=0?n=a=s=NaN:s<=0||s>=1?n=a=NaN:a<=0&&(n=NaN),new vt(n,a,s,d)}function qo(n){if(n instanceof vt)return new vt(n.h,n.s,n.l,n.opacity);if(n instanceof ri||(n=Jn(n)),!n)return new vt;if(n instanceof vt)return n;n=n.rgb();var a=n.r/255,s=n.g/255,d=n.b/255,x=Math.min(a,s,d),b=Math.max(a,s,d),C=NaN,B=b-x,z=(b+x)/2;return B?(a===b?C=(s-d)/B+(s0&&z<1?0:C,new vt(C,B,z,n.opacity)}function x1(n,a,s,d){return arguments.length===1?qo(n):new vt(n,a,s,d??1)}function vt(n,a,s,d){this.h=+n,this.s=+a,this.l=+s,this.opacity=+d}Cl(vt,x1,No(ri,{brighter:function(n){return n=n==null?Ia:Math.pow(Ia,n),new vt(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=n==null?Kn:Math.pow(Kn,n),new vt(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=this.h%360+(this.h<0)*360,a=isNaN(n)||isNaN(this.s)?0:this.s,s=this.l,d=s+(s<.5?s:1-s)*a,x=2*s-d;return new jr(tl(n>=240?n-240:n+120,x,d),tl(n,x,d),tl(n<120?n+240:n-120,x,d),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var n=this.opacity;return n=isNaN(n)?1:Math.max(0,Math.min(1,n)),(n===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(n===1?")":", "+n+")")}}));function tl(n,a,s){return(n<60?a+(s-a)*n/60:n<180?s:n<240?a+(s-a)*(240-n)/60:a)*255}const Ro=n=>()=>n;function b1(n,a){return function(s){return n+s*a}}function w1(n,a,s){return n=Math.pow(n,s),a=Math.pow(a,s)-n,s=1/s,function(d){return Math.pow(n+d*a,s)}}function A1(n){return(n=+n)==1?Io:function(a,s){return s-a?w1(a,s,n):Ro(isNaN(a)?s:a)}}function Io(n,a){var s=a-n;return s?b1(n,s):Ro(isNaN(n)?a:n)}const Jl=function n(a){var s=A1(a);function d(x,b){var C=s((x=hl(x)).r,(b=hl(b)).r),B=s(x.g,b.g),z=s(x.b,b.b),I=Io(x.opacity,b.opacity);return function(q){return x.r=C(q),x.g=B(q),x.b=z(q),x.opacity=I(q),x+""}}return d.gamma=n,d}(1);function Vt(n,a){return n=+n,a=+a,function(s){return n*(1-s)+a*s}}var fl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,nl=new RegExp(fl.source,"g");function k1(n){return function(){return n}}function S1(n){return function(a){return n(a)+""}}function C1(n,a){var s=fl.lastIndex=nl.lastIndex=0,d,x,b,C=-1,B=[],z=[];for(n=n+"",a=a+"";(d=fl.exec(n))&&(x=nl.exec(a));)(b=x.index)>s&&(b=a.slice(s,b),B[C]?B[C]+=b:B[++C]=b),(d=d[0])===(x=x[0])?B[C]?B[C]+=x:B[++C]=x:(B[++C]=null,z.push({i:C,x:Vt(d,x)})),s=nl.lastIndex;return s180?q+=360:q-I>180&&(I+=360),W.push({i:V.push(x(V)+"rotate(",null,d)-2,x:Vt(I,q)})):q&&V.push(x(V)+"rotate("+q+d)}function B(I,q,V,W){I!==q?W.push({i:V.push(x(V)+"skewX(",null,d)-2,x:Vt(I,q)}):q&&V.push(x(V)+"skewX("+q+d)}function z(I,q,V,W,j,ke){if(I!==V||q!==W){var ve=j.push(x(j)+"scale(",null,",",null,")");ke.push({i:ve-4,x:Vt(I,V)},{i:ve-2,x:Vt(q,W)})}else(V!==1||W!==1)&&j.push(x(j)+"scale("+V+","+W+")")}return function(I,q){var V=[],W=[];return I=n(I),q=n(q),b(I.translateX,I.translateY,q.translateX,q.translateY,V,W),C(I.rotate,q.rotate,V,W),B(I.skewX,q.skewX,V,W),z(I.scaleX,I.scaleY,q.scaleX,q.scaleY,V,W),I=q=null,function(j){for(var ke=-1,ve=W.length,De;++ke=0&&n._call.call(null,a),n=n._next;--ln}function ro(){g0=(La=Qn.now())+ja,ln=Yn=0;try{q1()}finally{ln=0,I1(),g0=0}}function R1(){var n=Qn.now(),a=n-La;a>Po&&(ja-=a,La=n)}function I1(){for(var n,a=Oa,s,d=1/0;a;)a._call?(d>a._time&&(d=a._time),n=a,a=a._next):(s=a._next,a._next=null,a=n?n._next=s:Oa=s);Xn=n,dl(d)}function dl(n){if(!ln){Yn&&(Yn=clearTimeout(Yn));var a=n-g0;a>24?(n<1/0&&(Yn=setTimeout(ro,n-Qn.now()-ja)),Gn&&(Gn=clearInterval(Gn))):(Gn||(La=Qn.now(),Gn=setInterval(R1,Po)),ln=1,Ho(ro))}}function to(n,a,s){var d=new Pa;return a=a==null?0:+a,d.restart(x=>{d.stop(),n(x+a)},a,s),d}var O1=Al("start","end","cancel","interrupt"),L1=[],$o=0,no=1,ml=2,_a=3,io=4,vl=5,za=6;function Ya(n,a,s,d,x,b){var C=n.__transition;if(!C)n.__transition={};else if(s in C)return;P1(n,s,{name:a,index:d,group:x,on:O1,tween:L1,time:b.time,delay:b.delay,duration:b.duration,ease:b.ease,timer:null,state:$o})}function El(n,a){var s=nt(n,a);if(s.state>$o)throw new Error("too late; already scheduled");return s}function yt(n,a){var s=nt(n,a);if(s.state>_a)throw new Error("too late; already running");return s}function nt(n,a){var s=n.__transition;if(!s||!(s=s[a]))throw new Error("transition not found");return s}function P1(n,a,s){var d=n.__transition,x;d[a]=s,s.timer=Uo(b,0,s.time);function b(I){s.state=no,s.timer.restart(C,s.delay,s.time),s.delay<=I&&C(I-s.delay)}function C(I){var q,V,W,j;if(s.state!==no)return z();for(q in d)if(j=d[q],j.name===s.name){if(j.state===_a)return to(C);j.state===io?(j.state=za,j.timer.stop(),j.on.call("interrupt",n,n.__data__,j.index,j.group),delete d[q]):+qml&&d.state=0&&(a=a.slice(0,s)),!a||a==="start"})}function vh(n,a,s){var d,x,b=mh(a)?El:yt;return function(){var C=b(this,n),B=C.on;B!==d&&(x=(d=B).copy()).on(a,s),C.on=x}}function gh(n,a){var s=this._id;return arguments.length<2?nt(this.node(),s).on.on(n):this.each(vh(s,n,a))}function yh(n){return function(){var a=this.parentNode;for(var s in this.__transition)if(+s!==n)return;a&&a.removeChild(this)}}function xh(){return this.on("end.remove",yh(this._id))}function bh(n){var a=this._name,s=this._id;typeof n!="function"&&(n=kl(n));for(var d=this._groups,x=d.length,b=new Array(x),C=0;Cd0)if(!(Math.abs(q*B-z*I)>d0)||!x)this._+="L"+(this._x1=n)+","+(this._y1=a);else{var W=s-b,j=d-C,ke=B*B+z*z,ve=W*W+j*j,De=Math.sqrt(ke),Z=Math.sqrt(V),be=x*Math.tan((gl-Math.acos((ke+V-ve)/(2*De*Z)))/2),qe=be/Z,Ve=be/De;Math.abs(qe-1)>d0&&(this._+="L"+(n+qe*I)+","+(a+qe*q)),this._+="A"+x+","+x+",0,0,"+ +(q*W>I*j)+","+(this._x1=n+Ve*B)+","+(this._y1=a+Ve*z)}},arc:function(n,a,s,d,x,b){n=+n,a=+a,s=+s,b=!!b;var C=s*Math.cos(d),B=s*Math.sin(d),z=n+C,I=a+B,q=1^b,V=b?d-x:x-d;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+z+","+I:(Math.abs(this._x1-z)>d0||Math.abs(this._y1-I)>d0)&&(this._+="L"+z+","+I),s&&(V<0&&(V=V%yl+yl),V>Gh?this._+="A"+s+","+s+",0,1,"+q+","+(n-C)+","+(a-B)+"A"+s+","+s+",0,1,"+q+","+(this._x1=z)+","+(this._y1=I):V>d0&&(this._+="A"+s+","+s+",0,"+ +(V>=gl)+","+q+","+(this._x1=n+s*Math.cos(x))+","+(this._y1=a+s*Math.sin(x))))},rect:function(n,a,s,d){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+a)+"h"+ +s+"v"+ +d+"h"+-s+"Z"},toString:function(){return this._}};function jh(n,a){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(a).domain(n);break}return this}const ao=Symbol("implicit");function Xo(){var n=new Map,a=[],s=[],d=ao;function x(b){var C=b+"",B=n.get(C);if(!B){if(d!==ao)return d;n.set(C,B=a.push(b))}return s[(B-1)%s.length]}return x.domain=function(b){if(!arguments.length)return a.slice();a=[],n=new Map;for(const C of b){const B=C+"";n.has(B)||n.set(B,a.push(C))}return x},x.range=function(b){return arguments.length?(s=Array.from(b),x):s.slice()},x.unknown=function(b){return arguments.length?(d=b,x):d},x.copy=function(){return Xo(a,s).unknown(d)},jh.apply(x,arguments),x}function Yh(n){for(var a=n.length/6|0,s=new Array(a),d=0;d()=>n;function n2(n,{sourceEvent:a,target:s,transform:d,dispatch:x}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:a,enumerable:!0,configurable:!0},target:{value:s,enumerable:!0,configurable:!0},transform:{value:d,enumerable:!0,configurable:!0},_:{value:x}})}function Bt(n,a,s){this.k=n,this.x=a,this.y=s}Bt.prototype={constructor:Bt,scale:function(n){return n===1?this:new Bt(this.k*n,this.x,this.y)},translate:function(n,a){return n===0&a===0?this:new Bt(this.k,this.x+this.k*n,this.y+this.k*a)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Xa=new Bt(1,0,0);Na.prototype=Bt.prototype;function Na(n){for(;!n.__zoom;)if(!(n=n.parentNode))return Xa;return n.__zoom}function il(n){n.stopImmediatePropagation()}function jn(n){n.preventDefault(),n.stopImmediatePropagation()}function i2(n){return(!n.ctrlKey||n.type==="wheel")&&!n.button}function a2(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n,n.hasAttribute("viewBox")?(n=n.viewBox.baseVal,[[n.x,n.y],[n.x+n.width,n.y+n.height]]):[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]):[[0,0],[n.clientWidth,n.clientHeight]]}function lo(){return this.__zoom||Xa}function u2(n){return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*(n.ctrlKey?10:1)}function l2(){return navigator.maxTouchPoints||"ontouchstart"in this}function o2(n,a,s){var d=n.invertX(a[0][0])-s[0][0],x=n.invertX(a[1][0])-s[1][0],b=n.invertY(a[0][1])-s[0][1],C=n.invertY(a[1][1])-s[1][1];return n.translate(x>d?(d+x)/2:Math.min(0,d)||Math.max(0,x),C>b?(b+C)/2:Math.min(0,b)||Math.max(0,C))}function s2(){var n=i2,a=a2,s=o2,d=u2,x=l2,b=[0,1/0],C=[[-1/0,-1/0],[1/0,1/0]],B=250,z=F1,I=Al("start","zoom","end"),q,V,W,j=500,ke=150,ve=0,De=10;function Z(P){P.property("__zoom",lo).on("wheel.zoom",ur).on("mousedown.zoom",or).on("dblclick.zoom",Br).filter(x).on("touchstart.zoom",sr).on("touchmove.zoom",Rr).on("touchend.zoom touchcancel.zoom",G).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}Z.transform=function(P,ce,re,we){var Se=P.selection?P.selection():P;Se.property("__zoom",lo),P!==Se?Oe(P,ce,re,we):Se.interrupt().each(function(){ir(this,arguments).event(we).start().zoom(null,typeof ce=="function"?ce.apply(this,arguments):ce).end()})},Z.scaleBy=function(P,ce,re,we){Z.scaleTo(P,function(){var Se=this.__zoom.k,_e=typeof ce=="function"?ce.apply(this,arguments):ce;return Se*_e},re,we)},Z.scaleTo=function(P,ce,re,we){Z.transform(P,function(){var Se=a.apply(this,arguments),_e=this.__zoom,Ee=re==null?Ve(Se):typeof re=="function"?re.apply(this,arguments):re,ue=_e.invert(Ee),Le=typeof ce=="function"?ce.apply(this,arguments):ce;return s(qe(be(_e,Le),Ee,ue),Se,C)},re,we)},Z.translateBy=function(P,ce,re,we){Z.transform(P,function(){return s(this.__zoom.translate(typeof ce=="function"?ce.apply(this,arguments):ce,typeof re=="function"?re.apply(this,arguments):re),a.apply(this,arguments),C)},null,we)},Z.translateTo=function(P,ce,re,we,Se){Z.transform(P,function(){var _e=a.apply(this,arguments),Ee=this.__zoom,ue=we==null?Ve(_e):typeof we=="function"?we.apply(this,arguments):we;return s(Xa.translate(ue[0],ue[1]).scale(Ee.k).translate(typeof ce=="function"?-ce.apply(this,arguments):-ce,typeof re=="function"?-re.apply(this,arguments):-re),_e,C)},we,Se)};function be(P,ce){return ce=Math.max(b[0],Math.min(b[1],ce)),ce===P.k?P:new Bt(ce,P.x,P.y)}function qe(P,ce,re){var we=ce[0]-re[0]*P.k,Se=ce[1]-re[1]*P.k;return we===P.x&&Se===P.y?P:new Bt(P.k,we,Se)}function Ve(P){return[(+P[0][0]+ +P[1][0])/2,(+P[0][1]+ +P[1][1])/2]}function Oe(P,ce,re,we){P.on("start.zoom",function(){ir(this,arguments).event(we).start()}).on("interrupt.zoom end.zoom",function(){ir(this,arguments).event(we).end()}).tween("zoom",function(){var Se=this,_e=arguments,Ee=ir(Se,_e).event(we),ue=a.apply(Se,_e),Le=re==null?Ve(ue):typeof re=="function"?re.apply(Se,_e):re,Mr=Math.max(ue[1][0]-ue[0][0],ue[1][1]-ue[0][1]),Ge=Se.__zoom,mr=typeof ce=="function"?ce.apply(Se,_e):ce,We=z(Ge.invert(Le).concat(Mr/Ge.k),mr.invert(Le).concat(Mr/mr.k));return function(wr){if(wr===1)wr=mr;else{var Ir=We(wr),Yt=Mr/Ir[2];wr=new Bt(Yt,Le[0]-Ir[0]*Yt,Le[1]-Ir[1]*Yt)}Ee.zoom(null,wr)}})}function ir(P,ce,re){return!re&&P.__zooming||new ar(P,ce)}function ar(P,ce){this.that=P,this.args=ce,this.active=0,this.sourceEvent=null,this.extent=a.apply(P,ce),this.taps=0}ar.prototype={event:function(P){return P&&(this.sourceEvent=P),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(P,ce){return this.mouse&&P!=="mouse"&&(this.mouse[1]=ce.invert(this.mouse[0])),this.touch0&&P!=="touch"&&(this.touch0[1]=ce.invert(this.touch0[0])),this.touch1&&P!=="touch"&&(this.touch1[1]=ce.invert(this.touch1[0])),this.that.__zoom=ce,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(P){var ce=jt(this.that).datum();I.call(P,this.that,new n2(P,{sourceEvent:this.sourceEvent,target:Z,type:P,transform:this.that.__zoom,dispatch:I}),ce)}};function ur(P,...ce){if(!n.apply(this,arguments))return;var re=ir(this,ce).event(P),we=this.__zoom,Se=Math.max(b[0],Math.min(b[1],we.k*Math.pow(2,d.apply(this,arguments)))),_e=f0(P);if(re.wheel)(re.mouse[0][0]!==_e[0]||re.mouse[0][1]!==_e[1])&&(re.mouse[1]=we.invert(re.mouse[0]=_e)),clearTimeout(re.wheel);else{if(we.k===Se)return;re.mouse=[_e,we.invert(_e)],Fa(this),re.start()}jn(P),re.wheel=setTimeout(Ee,ke),re.zoom("mouse",s(qe(be(we,Se),re.mouse[0],re.mouse[1]),re.extent,C));function Ee(){re.wheel=null,re.end()}}function or(P,...ce){if(W||!n.apply(this,arguments))return;var re=ir(this,ce,!0).event(P),we=jt(P.view).on("mousemove.zoom",Le,!0).on("mouseup.zoom",Mr,!0),Se=f0(P,_e),_e=P.currentTarget,Ee=P.clientX,ue=P.clientY;o1(P.view),il(P),re.mouse=[Se,this.__zoom.invert(Se)],Fa(this),re.start();function Le(Ge){if(jn(Ge),!re.moved){var mr=Ge.clientX-Ee,We=Ge.clientY-ue;re.moved=mr*mr+We*We>ve}re.event(Ge).zoom("mouse",s(qe(re.that.__zoom,re.mouse[0]=f0(Ge,_e),re.mouse[1]),re.extent,C))}function Mr(Ge){we.on("mousemove.zoom mouseup.zoom",null),s1(Ge.view,re.moved),jn(Ge),re.event(Ge).end()}}function Br(P,...ce){if(n.apply(this,arguments)){var re=this.__zoom,we=f0(P.changedTouches?P.changedTouches[0]:P,this),Se=re.invert(we),_e=re.k*(P.shiftKey?.5:2),Ee=s(qe(be(re,_e),we,Se),a.apply(this,ce),C);jn(P),B>0?jt(this).transition().duration(B).call(Oe,Ee,we,P):jt(this).call(Z.transform,Ee,we,P)}}function sr(P,...ce){if(n.apply(this,arguments)){var re=P.touches,we=re.length,Se=ir(this,ce,P.changedTouches.length===we).event(P),_e,Ee,ue,Le;for(il(P),Ee=0;Ee=0;)a+=s[d].value;n.value=a}function h2(){return this.eachAfter(c2)}function f2(n){var a=this,s,d=[a],x,b,C;do for(s=d.reverse(),d=[];a=s.pop();)if(n(a),x=a.children,x)for(b=0,C=x.length;b=0;--x)s.push(d[x]);return this}function d2(n){for(var a=this,s=[a],d=[],x,b,C;a=s.pop();)if(d.push(a),x=a.children,x)for(b=0,C=x.length;b=0;)s+=d[x].value;a.value=s})}function v2(n){return this.eachBefore(function(a){a.children&&a.children.sort(n)})}function g2(n){for(var a=this,s=y2(a,n),d=[a];a!==s;)a=a.parent,d.push(a);for(var x=d.length;n!==s;)d.splice(x,0,n),n=n.parent;return d}function y2(n,a){if(n===a)return n;var s=n.ancestors(),d=a.ancestors(),x=null;for(n=s.pop(),a=d.pop();n===a;)x=n,n=s.pop(),a=d.pop();return x}function x2(){for(var n=this,a=[n];n=n.parent;)a.push(n);return a}function b2(){var n=[];return this.each(function(a){n.push(a)}),n}function w2(){var n=[];return this.eachBefore(function(a){a.children||n.push(a)}),n}function A2(){var n=this,a=[];return n.each(function(s){s!==n&&a.push({source:s.parent,target:s})}),a}function Ml(n,a){var s=new Ha(n),d=+n.value&&(s.value=n.value),x,b=[s],C,B,z,I;for(a==null&&(a=S2);x=b.pop();)if(d&&(x.value=+x.data.value),(B=a(x.data))&&(I=B.length))for(x.children=new Array(I),z=I-1;z>=0;--z)b.push(C=x.children[z]=new Ha(B[z])),C.parent=x,C.depth=x.depth+1;return s.eachBefore(D2)}function k2(){return Ml(this).eachBefore(C2)}function S2(n){return n.children}function C2(n){n.data=n.data.data}function D2(n){var a=0;do n.height=a;while((n=n.parent)&&n.height<++a)}function Ha(n){this.data=n,this.depth=this.height=0,this.parent=null}Ha.prototype=Ml.prototype={constructor:Ha,count:h2,each:f2,eachAfter:d2,eachBefore:p2,sum:m2,sort:v2,path:g2,ancestors:x2,descendants:b2,leaves:w2,links:A2,copy:k2};var E2="d3-flextree",B2="2.1.2",M2="build/d3-flextree.js",T2="index",_2={name:"Chris Maloney",url:"http://chrismaloney.org"},z2="Flexible tree layout algorithm that allows for variable node sizes.",F2=["d3","d3-module","layout","tree","hierarchy","d3-hierarchy","plugin","d3-plugin","infovis","visualization","2d"],N2="https://github.com/klortho/d3-flextree",q2="WTFPL",R2={type:"git",url:"https://github.com/klortho/d3-flextree.git"},I2={clean:"rm -rf build demo test","build:demo":"rollup -c --environment BUILD:demo","build:dev":"rollup -c --environment BUILD:dev","build:prod":"rollup -c --environment BUILD:prod","build:test":"rollup -c --environment BUILD:test",build:"rollup -c",lint:"eslint index.js src","test:main":"node test/bundle.js","test:browser":"node test/browser-tests.js",test:"npm-run-all test:*",prepare:"npm-run-all clean build lint test"},O2={"d3-hierarchy":"^1.1.5"},L2={"babel-plugin-external-helpers":"^6.22.0","babel-preset-es2015-rollup":"^3.0.0",d3:"^4.13.0","d3-selection-multi":"^1.0.1",eslint:"^4.19.1",jsdom:"^11.6.2","npm-run-all":"^4.1.2",rollup:"^0.55.3","rollup-plugin-babel":"^2.7.1","rollup-plugin-commonjs":"^8.0.2","rollup-plugin-copy":"^0.2.3","rollup-plugin-json":"^2.3.0","rollup-plugin-node-resolve":"^3.0.2","rollup-plugin-uglify":"^3.0.0","uglify-es":"^3.3.9"},P2={name:E2,version:B2,main:M2,module:T2,"jsnext:main":"index",author:_2,description:z2,keywords:F2,homepage:N2,license:q2,repository:R2,scripts:I2,dependencies:O2,devDependencies:L2};const{version:H2}=P2,U2=Object.freeze({children:n=>n.children,nodeSize:n=>n.data.size,spacing:0});function Ko(n){const a=Object.assign({},U2,n);function s(B){const z=a[B];return typeof z=="function"?z:()=>z}function d(B){const z=C(b(),B,I=>I.children);return z.update(),z.data}function x(){const B=s("nodeSize"),z=s("spacing");return class Wo extends Ml.prototype.constructor{constructor(q){super(q)}copy(){const q=C(this.constructor,this,V=>V.children);return q.each(V=>V.data=V.data.data),q}get size(){return B(this)}spacing(q){return z(this,q)}get nodes(){return this.descendants()}get xSize(){return this.size[0]}get ySize(){return this.size[1]}get top(){return this.y}get bottom(){return this.y+this.ySize}get left(){return this.x-this.xSize/2}get right(){return this.x+this.xSize/2}get root(){const q=this.ancestors();return q[q.length-1]}get numChildren(){return this.hasChildren?this.children.length:0}get hasChildren(){return!this.noChildren}get noChildren(){return this.children===null}get firstChild(){return this.hasChildren?this.children[0]:null}get lastChild(){return this.hasChildren?this.children[this.numChildren-1]:null}get extents(){return(this.children||[]).reduce((q,V)=>Wo.maxExtents(q,V.extents),this.nodeExtents)}get nodeExtents(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}static maxExtents(q,V){return{top:Math.min(q.top,V.top),bottom:Math.max(q.bottom,V.bottom),left:Math.min(q.left,V.left),right:Math.max(q.right,V.right)}}}}function b(){const B=x(),z=s("nodeSize"),I=s("spacing");return class extends B{constructor(q){super(q),Object.assign(this,{x:0,y:0,relX:0,prelim:0,shift:0,change:0,lExt:this,lExtRelX:0,lThr:null,rExt:this,rExtRelX:0,rThr:null})}get size(){return z(this.data)}spacing(q){return I(this.data,q.data)}get x(){return this.data.x}set x(q){this.data.x=q}get y(){return this.data.y}set y(q){this.data.y=q}update(){return Zo(this),Jo(this),this}}}function C(B,z,I){const q=(V,W)=>{const j=new B(V);Object.assign(j,{parent:W,depth:W===null?0:W.depth+1,height:0,length:1});const ke=I(V)||[];return j.children=ke.length===0?null:ke.map(ve=>q(ve,j)),j.children&&Object.assign(j,j.children.reduce((ve,De)=>({height:Math.max(ve.height,De.height+1),length:ve.length+De.length}),j)),j};return q(z,null)}return Object.assign(d,{nodeSize(B){return arguments.length?(a.nodeSize=B,d):a.nodeSize},spacing(B){return arguments.length?(a.spacing=B,d):a.spacing},children(B){return arguments.length?(a.children=B,d):a.children},hierarchy(B,z){const I=typeof z>"u"?a.children:z;return C(x(),B,I)},dump(B){const z=s("nodeSize"),I=q=>V=>{const W=q+"  ",j=q+"    ",{x:ke,y:ve}=V,De=z(V),Z=V.children||[],be=Z.length===0?" ":`,${W}children: [${j}${Z.map(I(j)).join(j)}${W}],${q}`;return`{ size: [${De.join(", ")}],${W}x: ${ke}, y: ${ve}${be}},`};return I(`
    `)(B)}}),d}Ko.version=H2;const Zo=(n,a=0)=>(n.y=a,(n.children||[]).reduce((s,d)=>{const[x,b]=s;Zo(d,n.y+n.ySize);const C=(x===0?d.lExt:d.rExt).bottom;x!==0&&V2(n,x,b);const B=J2(C,x,b);return[x+1,B]},[0,null]),$2(n),Z2(n),n),Jo=(n,a,s)=>{typeof a>"u"&&(a=-n.relX-n.prelim,s=0);const d=a+n.relX;return n.relX=d+n.prelim-s,n.prelim=0,n.x=s+n.relX,(n.children||[]).forEach(x=>Jo(x,d,n.x)),n},$2=n=>{(n.children||[]).reduce((a,s)=>{const[d,x]=a,b=d+s.shift,C=x+b+s.change;return s.relX+=C,[b,C]},[0,0])},V2=(n,a,s)=>{const d=n.children[a-1],x=n.children[a];let b=d,C=d.relX,B=x,z=x.relX,I=!0;for(;b&&B;){b.bottom>s.lowY&&(s=s.next);const q=C+b.prelim-(z+B.prelim)+b.xSize/2+B.xSize/2+b.spacing(B);(q>0||q<0&&I)&&(z+=q,G2(x,q),j2(n,a,s.index,q)),I=!1;const V=b.bottom,W=B.bottom;V<=W&&(b=X2(b),b&&(C+=b.relX)),V>=W&&(B=Y2(B),B&&(z+=B.relX))}!b&&B?W2(n,a,B,z):b&&!B&&K2(n,a,b,C)},G2=(n,a)=>{n.relX+=a,n.lExtRelX+=a,n.rExtRelX+=a},j2=(n,a,s,d)=>{const x=n.children[a],b=a-s;if(b>1){const C=d/b;n.children[s+1].shift+=C,x.shift-=C,x.change-=d-C}},Y2=n=>n.hasChildren?n.firstChild:n.lThr,X2=n=>n.hasChildren?n.lastChild:n.rThr,W2=(n,a,s,d)=>{const x=n.firstChild,b=x.lExt,C=n.children[a];b.lThr=s;const B=d-s.relX-x.lExtRelX;b.relX+=B,b.prelim-=B,x.lExt=C.lExt,x.lExtRelX=C.lExtRelX},K2=(n,a,s,d)=>{const x=n.children[a],b=x.rExt,C=n.children[a-1];b.rThr=s;const B=d-s.relX-x.rExtRelX;b.relX+=B,b.prelim-=B,x.rExt=C.rExt,x.rExtRelX=C.rExtRelX},Z2=n=>{if(n.hasChildren){const a=n.firstChild,s=n.lastChild,d=(a.prelim+a.relX-a.xSize/2+s.relX+s.prelim+s.xSize/2)/2;Object.assign(n,{prelim:d,lExt:a.lExt,lExtRelX:a.lExtRelX,rExt:s.rExt,rExtRelX:s.rExtRelX})}},J2=(n,a,s)=>{for(;s!==null&&n>=s.lowY;)s=s.next;return{lowY:n,index:a,next:s}};/*! @gera2ld/jsx-dom v2.1.1 | ISC License */var Qo=1,es=2,v0=1,rs=4,Q2="http://www.w3.org/2000/svg",al="http://www.w3.org/1999/xlink",ef={show:al,actuate:al,href:al},rf=function(a){return typeof a=="string"||typeof a=="number"},tf=function(a){return(a==null?void 0:a.vtype)===Qo},nf=function(a){return(a==null?void 0:a.vtype)===es};function Ba(n,a){var s;if(typeof n=="string")s=Qo;else if(typeof n=="function")s=es;else throw new Error("Invalid VNode type");return{vtype:s,type:n,props:a}}function af(n){return n.children}var uf={isSvg:!1};function bl(n,a){if(a.type===v0)a.node!=null&&n.append(a.node);else if(a.type===rs)a.children.forEach(function(s){bl(n,s)});else throw new Error("Unkown ref type "+JSON.stringify(a))}function lf(n,a,s){for(var d in a)d==="key"||d==="children"||d==="ref"||(d==="dangerouslySetInnerHTML"?n.innerHTML=a[d].__html:d==="innerHTML"||d==="textContent"||d==="innerText"?n[d]=a[d]:d.startsWith("on")?n[d.toLowerCase()]=a[d]:sf(n,d,a[d],s.isSvg))}var of={className:"class",labelFor:"for"};function sf(n,a,s,d){if(a=of[a]||a,s===!0)n.setAttribute(a,"");else if(s===!1)n.removeAttribute(a);else{var x=d?ef[a]:void 0;x!==void 0?n.setAttributeNS(x,a,s):n.setAttribute(a,s)}}function Wn(n,a){if(a===void 0&&(a=uf),n==null||typeof n=="boolean")return{type:v0,node:null};if(n instanceof Node)return{type:v0,node:n};if(nf(n)){var s=n,d=s.type,x=s.props;if(d===af){var b=document.createDocumentFragment();if(x.children){var C=Wn(x.children,a);bl(b,C)}return{type:v0,node:b}}var B=d(x);return Wn(B,a)}if(rf(n))return{type:v0,node:document.createTextNode(""+n)};if(tf(n)){var z,I=n,q=I.type,V=I.props;!a.isSvg&&q==="svg"&&(a=Object.assign({},a,{isSvg:!0})),a.isSvg?z=document.createElementNS(Q2,q):z=document.createElement(q),lf(z,V,a);var W;if(V.children){var j=a;a.isSvg&&q==="foreignObject"&&(j=Object.assign({},j,{isSvg:!1})),W=Wn(V.children,j)}W!=null&&bl(z,W);var ke=V.ref;return typeof ke=="function"&&ke(z),{type:v0,node:z}}if(Array.isArray(n))return{type:rs,children:n.map(function(ve){return Wn(ve,a)})};throw new Error("mount: Invalid Vnode!")}function ts(n){for(var a=[],s=0;s{s.ySizeInner=s.ySize-a,s.y+=a,d()},"children")}function so(n,a){const s=Es(n,a);return n[s]}function co(n){n.stopPropagation()}function pf(){return{transformHtml:new xo}}const df=new xo,mf=Xo(Xh),vf=typeof navigator<"u"&&navigator.userAgent.includes("Macintosh");class Ua{constructor(a,s){this.revokers=[],["handleZoom","handleClick","handlePan"].forEach(d=>{this[d]=this[d].bind(this)}),this.viewHooks=pf(),this.svg=a.datum?a:jt(a),this.styleNode=this.svg.append("style"),this.zoom=s2().filter(d=>this.options.scrollForPan&&d.type==="wheel"?d.ctrlKey&&!d.button:(!d.ctrlKey||d.type==="wheel")&&!d.button).on("zoom",this.handleZoom),this.setOptions(s),this.state={id:this.options.id||this.svg.attr("id")||Cs()},this.g=this.svg.append("g"),this.revokers.push(df.tap(()=>{this.setData()}))}getStyleContent(){const{style:a}=this.options,{id:s}=this.state,d=typeof a=="function"?a(s):"";return[this.options.embedGlobalCSS&&cf,d].filter(Boolean).join(`
    `)}updateStyle(){this.svg.attr("class",Ds(this.svg.attr("class"),"markmap",this.state.id));const a=this.getStyleContent();this.styleNode.text(a)}handleZoom(a){const{transform:s}=a;this.g.attr("transform",s)}handlePan(a){a.preventDefault();const s=Na(this.svg.node()),d=s.translate(-a.deltaX/s.k,-a.deltaY/s.k);this.svg.call(this.zoom.transform,d)}handleClick(a,s){var d;const{data:x}=s;x.payload=Gt({},x.payload,{fold:(d=x.payload)!=null&&d.fold?0:1}),this.renderData(s.data)}initializeData(a){let s=0;const{color:d,nodeMinHeight:x,maxWidth:b,initialExpandLevel:C}=this.options,{id:B}=this.state,z=qa(Ba("div",{className:`markmap-container markmap ${B}-g`})),I=qa(Ba("style",{children:[this.getStyleContent(),hf].join(`
    `)}));document.body.append(z,I);const q=b?`max-width: ${b}px`:"";let V=0;ol(a,(j,ke,ve)=>{var De,Z,be;j.children=(De=j.children)==null?void 0:De.map(Oe=>Gt({},Oe)),s+=1;const qe=qa(Ba("div",{className:"markmap-foreign",style:q,children:Ba("div",{dangerouslySetInnerHTML:{__html:j.content}})}));z.append(qe),j.state=Gt({},j.state,{id:s,el:qe.firstChild}),j.state.path=[ve==null||(Z=ve.state)==null?void 0:Z.path,j.state.id].filter(Boolean).join("."),d(j);const Ve=((be=j.payload)==null?void 0:be.fold)===2;Ve?V+=1:(V||C>=0&&j.depth>=C)&&(j.payload=Gt({},j.payload,{fold:1})),ke(),Ve&&(V-=1)});const W=bo(z.childNodes).map(j=>j.firstChild);this.viewHooks.transformHtml.call(this,W),W.forEach(j=>{j.parentNode.append(j.cloneNode(!0))}),ol(a,(j,ke,ve)=>{var De;const Z=j.state.el.getBoundingClientRect();j.content=j.state.el.innerHTML,j.state.size=[Math.ceil(Z.width)+1,Math.max(Math.ceil(Z.height),x)],j.state.key=[ve==null||(De=ve.state)==null?void 0:De.id,j.state.id].filter(Boolean).join(".")+j.content,ke()}),z.remove(),I.remove()}setOptions(a){this.options=Gt({},Ua.defaultOptions,a),this.options.zoom?this.svg.call(this.zoom):this.svg.on(".zoom",null),this.svg.on("wheel",this.options.pan?this.handlePan:null)}setData(a,s){a&&(this.state.data=a),s&&this.setOptions(s),this.initializeData(this.state.data),this.updateStyle(),this.renderData()}renderData(a){var s,d;if(!this.state.data)return;const{spacingHorizontal:x,paddingX:b,spacingVertical:C,autoFit:B,color:z}=this.options,I=Ko().children(G=>{var P;return!((P=G.payload)!=null&&P.fold)&&G.children}).nodeSize(G=>{const[P,ce]=G.data.state.size;return[ce,P+(P?b*2:0)+x]}).spacing((G,P)=>G.parent===P.parent?C:C*2),q=I.hierarchy(this.state.data);I(q),ff(q,x);const V=q.descendants().reverse(),W=q.links(),j=t2(),ke=Ul(V,G=>G.x-G.xSize/2),ve=Hl(V,G=>G.x+G.xSize/2),De=Ul(V,G=>G.y),Z=Hl(V,G=>G.y+G.ySizeInner);Object.assign(this.state,{minX:ke,maxX:ve,minY:De,maxY:Z}),B&&this.fit();const be=a&&V.find(G=>G.data===a)||q,qe=(s=be.data.state.x0)!=null?s:be.x,Ve=(d=be.data.state.y0)!=null?d:be.y,Oe=this.g.selectAll(nn("g")).data(V,G=>G.data.state.key),ir=Oe.enter().append("g").attr("data-depth",G=>G.data.depth).attr("data-path",G=>G.data.state.path).attr("transform",G=>`translate(${Ve+be.ySizeInner-G.ySizeInner},${qe+be.xSize/2-G.xSize})`),ar=this.transition(Oe.exit());ar.select("line").attr("x1",G=>G.ySizeInner).attr("x2",G=>G.ySizeInner),ar.select("foreignObject").style("opacity",0),ar.attr("transform",G=>`translate(${be.y+be.ySizeInner-G.ySizeInner},${be.x+be.xSize/2-G.xSize})`).remove();const ur=Oe.merge(ir).attr("class",G=>{var P;return["markmap-node",((P=G.data.payload)==null?void 0:P.fold)&&"markmap-fold"].filter(Boolean).join(" ")});this.transition(ur).attr("transform",G=>`translate(${G.y},${G.x-G.xSize/2})`);const or=ur.selectAll(nn("line")).data(G=>[G],G=>G.data.state.key).join(G=>G.append("line").attr("x1",P=>P.ySizeInner).attr("x2",P=>P.ySizeInner),G=>G,G=>G.remove());this.transition(or).attr("x1",-1).attr("x2",G=>G.ySizeInner+2).attr("y1",G=>G.xSize).attr("y2",G=>G.xSize).attr("stroke",G=>z(G.data)).attr("stroke-width",oo);const Br=ur.selectAll(nn("circle")).data(G=>G.data.children?[G]:[],G=>G.data.state.key).join(G=>G.append("circle").attr("stroke-width","1.5").attr("cx",P=>P.ySizeInner).attr("cy",P=>P.xSize).attr("r",0).on("click",(P,ce)=>this.handleClick(P,ce)),G=>G,G=>G.remove());this.transition(Br).attr("r",6).attr("cx",G=>G.ySizeInner).attr("cy",G=>G.xSize).attr("stroke",G=>z(G.data)).attr("fill",G=>{var P;return(P=G.data.payload)!=null&&P.fold&&G.data.children?z(G.data):"#fff"});const sr=ur.selectAll(nn("foreignObject")).data(G=>[G],G=>G.data.state.key).join(G=>{const P=G.append("foreignObject").attr("class","markmap-foreign").attr("x",b).attr("y",0).style("opacity",0).on("mousedown",co).on("dblclick",co);return P.append("xhtml:div").select(function(re){const we=re.data.state.el.cloneNode(!0);return this.replaceWith(we),we}).attr("xmlns","http://www.w3.org/1999/xhtml"),P},G=>G,G=>G.remove()).attr("width",G=>Math.max(0,G.ySizeInner-b*2)).attr("height",G=>G.xSize);this.transition(sr).style("opacity",1);const Rr=this.g.selectAll(nn("path")).data(W,G=>G.target.data.state.key).join(G=>{const P=[Ve+be.ySizeInner,qe+be.xSize/2];return G.insert("path","g").attr("class","markmap-link").attr("data-depth",ce=>ce.target.data.depth).attr("data-path",ce=>ce.target.data.state.path).attr("d",j({source:P,target:P}))},G=>G,G=>{const P=[be.y+be.ySizeInner,be.x+be.xSize/2];return this.transition(G).attr("d",j({source:P,target:P})).remove()});this.transition(Rr).attr("stroke",G=>z(G.target.data)).attr("stroke-width",G=>oo(G.target)).attr("d",G=>{const P=[G.source.y+G.source.ySizeInner,G.source.x+G.source.xSize/2],ce=[G.target.y,G.target.x+G.target.xSize/2];return j({source:P,target:ce})}),V.forEach(G=>{G.data.state.x0=G.x,G.data.state.y0=G.y})}transition(a){const{duration:s}=this.options;return a.transition().duration(s)}async fit(){const a=this.svg.node(),{width:s,height:d}=a.getBoundingClientRect(),{fitRatio:x}=this.options,{minX:b,maxX:C,minY:B,maxY:z}=this.state,I=z-B,q=C-b,V=Math.min(s/I*x,d/q*x,2),W=Xa.translate((s-I*V)/2-B*V,(d-q*V)/2-b*V).scale(V);return this.transition(this.svg).call(this.zoom.transform,W).end().catch(el)}async ensureView(a,s){let d,x;if(this.g.selectAll(nn("g")).each(function(be){be.data===a&&(d=this,x=be)}),!d||!x)return;const b=this.svg.node(),C=b.getBoundingClientRect(),B=Na(b),[z,I]=[x.y,x.y+x.ySizeInner+2].map(Z=>Z*B.k+B.x),[q,V]=[x.x-x.xSize/2,x.x+x.xSize/2].map(Z=>Z*B.k+B.y),W=Gt({left:0,right:0,top:0,bottom:0},s),j=[W.left-z,C.width-W.right-I],ke=[W.top-q,C.height-W.bottom-V],ve=j[0]*j[1]>0?so(j,Math.abs)/B.k:0,De=ke[0]*ke[1]>0?so(ke,Math.abs)/B.k:0;if(ve||De){const Z=B.translate(ve,De);return this.transition(this.svg).call(this.zoom.transform,Z).end().catch(el)}}async rescale(a){const s=this.svg.node(),{width:d,height:x}=s.getBoundingClientRect(),b=d/2,C=x/2,B=Na(s),z=B.translate((b-B.x)*(1-a)/B.k,(C-B.y)*(1-a)/B.k).scale(a);return this.transition(this.svg).call(this.zoom.transform,z).end().catch(el)}destroy(){this.svg.on(".zoom",null),this.svg.html(null),this.revokers.forEach(a=>{a()})}static create(a,s,d){const x=new Ua(a,s);return d&&(x.setData(d),x.fit()),x}}Ua.defaultOptions={autoFit:!1,color:n=>mf(`${n.state.path}`),duration:500,embedGlobalCSS:!0,fitRatio:.95,maxWidth:0,nodeMinHeight:16,paddingX:8,scrollForPan:vf,spacingHorizontal:80,spacingVertical:5,initialExpandLevel:-1,zoom:!0,pan:!0};var is={exports:{}};(function(n,a){(function(s,d){d()})(m0,function(){function s(I,q){return typeof q>"u"?q={autoBom:!1}:typeof q!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),q={autoBom:!q}),q.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(I.type)?new Blob(["\uFEFF",I],{type:I.type}):I}function d(I,q,V){var W=new XMLHttpRequest;W.open("GET",I),W.responseType="blob",W.onload=function(){z(W.response,q,V)},W.onerror=function(){console.error("could not download file")},W.send()}function x(I){var q=new XMLHttpRequest;q.open("HEAD",I,!1);try{q.send()}catch{}return 200<=q.status&&299>=q.status}function b(I){try{I.dispatchEvent(new MouseEvent("click"))}catch{var q=document.createEvent("MouseEvents");q.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),I.dispatchEvent(q)}}var C=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof m0=="object"&&m0.global===m0?m0:void 0,B=C.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),z=C.saveAs||(typeof window!="object"||window!==C?function(){}:"download"in HTMLAnchorElement.prototype&&!B?function(I,q,V){var W=C.URL||C.webkitURL,j=document.createElement("a");q=q||I.name||"download",j.download=q,j.rel="noopener",typeof I=="string"?(j.href=I,j.origin===location.origin?b(j):x(j.href)?d(I,q,V):b(j,j.target="_blank")):(j.href=W.createObjectURL(I),setTimeout(function(){W.revokeObjectURL(j.href)},4e4),setTimeout(function(){b(j)},0))}:"msSaveOrOpenBlob"in navigator?function(I,q,V){if(q=q||I.name||"download",typeof I!="string")navigator.msSaveOrOpenBlob(s(I,V),q);else if(x(I))d(I,q,V);else{var W=document.createElement("a");W.href=I,W.target="_blank",setTimeout(function(){b(W)})}}:function(I,q,V,W){if(W=W||open("","_blank"),W&&(W.document.title=W.document.body.innerText="downloading..."),typeof I=="string")return d(I,q,V);var j=I.type==="application/octet-stream",ke=/constructor/i.test(C.HTMLElement)||C.safari,ve=/CriOS\/[\d]+/.test(navigator.userAgent);if((ve||j&&ke||B)&&typeof FileReader<"u"){var De=new FileReader;De.onloadend=function(){var qe=De.result;qe=ve?qe:qe.replace(/^data:[^;]*;/,"data:attachment/file;"),W?W.location.href=qe:location=qe,W=null},De.readAsDataURL(I)}else{var Z=C.URL||C.webkitURL,be=Z.createObjectURL(I);W?W.location=be:location.href=be,W=null,setTimeout(function(){Z.revokeObjectURL(be)},4e4)}});C.saveAs=z.saveAs=z,n.exports=z})})(is);var c4=is.exports;function gf(n,a){if(n.match(/^[a-z]+:\/\//i))return n;if(n.match(/^\/\//))return window.location.protocol+n;if(n.match(/^[a-z]+:/i))return n;const s=document.implementation.createHTMLDocument(),d=s.createElement("base"),x=s.createElement("a");return s.head.appendChild(d),s.body.appendChild(x),a&&(d.href=a),x.href=n,x.href}const yf=(()=>{let n=0;const a=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(n+=1,`u${a()}${n}`)})();function Mt(n){const a=[];for(let s=0,d=n.length;sGr||n.height>Gr)&&(n.width>Gr&&n.height>Gr?n.width>n.height?(n.height*=Gr/n.width,n.width=Gr):(n.width*=Gr/n.height,n.height=Gr):n.width>Gr?(n.height*=Gr/n.width,n.width=Gr):(n.width*=Gr/n.height,n.height=Gr))}function Va(n){return new Promise((a,s)=>{const d=new Image;d.decode=()=>a(d),d.onload=()=>a(d),d.onerror=s,d.crossOrigin="anonymous",d.decoding="async",d.src=n})}async function kf(n){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(n)).then(encodeURIComponent).then(a=>`data:image/svg+xml;charset=utf-8,${a}`)}async function Sf(n,a,s){const d="http://www.w3.org/2000/svg",x=document.createElementNS(d,"svg"),b=document.createElementNS(d,"foreignObject");return x.setAttribute("width",`${a}`),x.setAttribute("height",`${s}`),x.setAttribute("viewBox",`0 0 ${a} ${s}`),b.setAttribute("width","100%"),b.setAttribute("height","100%"),b.setAttribute("x","0"),b.setAttribute("y","0"),b.setAttribute("externalResourcesRequired","true"),x.appendChild(b),b.appendChild(n),kf(x)}const Nr=(n,a)=>{if(n instanceof a)return!0;const s=Object.getPrototypeOf(n);return s===null?!1:s.constructor.name===a.name||Nr(s,a)};function Cf(n){const a=n.getPropertyValue("content");return`${n.cssText} content: '${a.replace(/'|"/g,"")}';`}function Df(n){return Mt(n).map(a=>{const s=n.getPropertyValue(a),d=n.getPropertyPriority(a);return`${a}: ${s}${d?" !important":""};`}).join(" ")}function Ef(n,a,s){const d=`.${n}:${a}`,x=s.cssText?Cf(s):Df(s);return document.createTextNode(`${d}{${x}}`)}function ho(n,a,s){const d=window.getComputedStyle(n,s),x=d.getPropertyValue("content");if(x===""||x==="none")return;const b=yf();try{a.className=`${a.className} ${b}`}catch{return}const C=document.createElement("style");C.appendChild(Ef(b,s,d)),a.appendChild(C)}function Bf(n,a){ho(n,a,":before"),ho(n,a,":after")}const fo="application/font-woff",po="image/jpeg",Mf={woff:fo,woff2:fo,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:po,jpeg:po,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Tf(n){const a=/\.([^./]*?)$/g.exec(n);return a?a[1]:""}function Tl(n){const a=Tf(n).toLowerCase();return Mf[a]||""}function _f(n){return n.split(/,/)[1]}function wl(n){return n.search(/^(data:)/)!==-1}function us(n,a){return`data:${a};base64,${n}`}async function ls(n,a,s){const d=await fetch(n,a);if(d.status===404)throw new Error(`Resource "${d.url}" not found`);const x=await d.blob();return new Promise((b,C)=>{const B=new FileReader;B.onerror=C,B.onloadend=()=>{try{b(s({res:d,result:B.result}))}catch(z){C(z)}},B.readAsDataURL(x)})}const ul={};function zf(n,a,s){let d=n.replace(/\?.*/,"");return s&&(d=n),/ttf|otf|eot|woff2?/i.test(d)&&(d=d.replace(/.*\//,"")),a?`[${a}]${d}`:d}async function _l(n,a,s){const d=zf(n,a,s.includeQueryParams);if(ul[d]!=null)return ul[d];s.cacheBust&&(n+=(/\?/.test(n)?"&":"?")+new Date().getTime());let x;try{const b=await ls(n,s.fetchRequestInit,({res:C,result:B})=>(a||(a=C.headers.get("Content-Type")||""),_f(B)));x=us(b,a)}catch(b){x=s.imagePlaceholder||"";let C=`Failed to fetch resource: ${n}`;b&&(C=typeof b=="string"?b:b.message),C&&console.warn(C)}return ul[d]=x,x}async function Ff(n){const a=n.toDataURL();return a==="data:,"?n.cloneNode(!1):Va(a)}async function Nf(n,a){if(n.currentSrc){const b=document.createElement("canvas"),C=b.getContext("2d");b.width=n.clientWidth,b.height=n.clientHeight,C==null||C.drawImage(n,0,0,b.width,b.height);const B=b.toDataURL();return Va(B)}const s=n.poster,d=Tl(s),x=await _l(s,d,a);return Va(x)}async function qf(n){var a;try{if(!((a=n==null?void 0:n.contentDocument)===null||a===void 0)&&a.body)return await Wa(n.contentDocument.body,{},!0)}catch{}return n.cloneNode(!1)}async function Rf(n,a){return Nr(n,HTMLCanvasElement)?Ff(n):Nr(n,HTMLVideoElement)?Nf(n,a):Nr(n,HTMLIFrameElement)?qf(n):n.cloneNode(!1)}const If=n=>n.tagName!=null&&n.tagName.toUpperCase()==="SLOT";async function Of(n,a,s){var d,x;let b=[];return If(n)&&n.assignedNodes?b=Mt(n.assignedNodes()):Nr(n,HTMLIFrameElement)&&(!((d=n.contentDocument)===null||d===void 0)&&d.body)?b=Mt(n.contentDocument.body.childNodes):b=Mt(((x=n.shadowRoot)!==null&&x!==void 0?x:n).childNodes),b.length===0||Nr(n,HTMLVideoElement)||await b.reduce((C,B)=>C.then(()=>Wa(B,s)).then(z=>{z&&a.appendChild(z)}),Promise.resolve()),a}function Lf(n,a){const s=a.style;if(!s)return;const d=window.getComputedStyle(n);d.cssText?(s.cssText=d.cssText,s.transformOrigin=d.transformOrigin):Mt(d).forEach(x=>{let b=d.getPropertyValue(x);x==="font-size"&&b.endsWith("px")&&(b=`${Math.floor(parseFloat(b.substring(0,b.length-2)))-.1}px`),Nr(n,HTMLIFrameElement)&&x==="display"&&b==="inline"&&(b="block"),x==="d"&&a.getAttribute("d")&&(b=`path(${a.getAttribute("d")})`),s.setProperty(x,b,d.getPropertyPriority(x))})}function Pf(n,a){Nr(n,HTMLTextAreaElement)&&(a.innerHTML=n.value),Nr(n,HTMLInputElement)&&a.setAttribute("value",n.value)}function Hf(n,a){if(Nr(n,HTMLSelectElement)){const s=a,d=Array.from(s.children).find(x=>n.value===x.getAttribute("value"));d&&d.setAttribute("selected","")}}function Uf(n,a){return Nr(a,Element)&&(Lf(n,a),Bf(n,a),Pf(n,a),Hf(n,a)),a}async function $f(n,a){const s=n.querySelectorAll?n.querySelectorAll("use"):[];if(s.length===0)return n;const d={};for(let b=0;bRf(d,a)).then(d=>Of(n,d,a)).then(d=>Uf(n,d)).then(d=>$f(d,a))}const os=/url\((['"]?)([^'"]+?)\1\)/g,Vf=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Gf=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function jf(n){const a=n.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${a})(['"]?\\))`,"g")}function Yf(n){const a=[];return n.replace(os,(s,d,x)=>(a.push(x),s)),a.filter(s=>!wl(s))}async function Xf(n,a,s,d,x){try{const b=s?gf(a,s):a,C=Tl(a);let B;if(x){const z=await x(b);B=us(z,C)}else B=await _l(b,C,d);return n.replace(jf(a),`$1${B}$3`)}catch{}return n}function Wf(n,{preferredFontFormat:a}){return a?n.replace(Gf,s=>{for(;;){const[d,,x]=Vf.exec(s)||[];if(!x)return"";if(x===a)return`src: ${d};`}}):n}function ss(n){return n.search(os)!==-1}async function cs(n,a,s){if(!ss(n))return n;const d=Wf(n,s);return Yf(d).reduce((b,C)=>b.then(B=>Xf(B,C,a,s)),Promise.resolve(d))}async function Ma(n,a,s){var d;const x=(d=a.style)===null||d===void 0?void 0:d.getPropertyValue(n);if(x){const b=await cs(x,null,s);return a.style.setProperty(n,b,a.style.getPropertyPriority(n)),!0}return!1}async function Kf(n,a){await Ma("background",n,a)||await Ma("background-image",n,a),await Ma("mask",n,a)||await Ma("mask-image",n,a)}async function Zf(n,a){const s=Nr(n,HTMLImageElement);if(!(s&&!wl(n.src))&&!(Nr(n,SVGImageElement)&&!wl(n.href.baseVal)))return;const d=s?n.src:n.href.baseVal,x=await _l(d,Tl(d),a);await new Promise((b,C)=>{n.onload=b,n.onerror=C;const B=n;B.decode&&(B.decode=b),B.loading==="lazy"&&(B.loading="eager"),s?(n.srcset="",n.src=x):n.href.baseVal=x})}async function Jf(n,a){const d=Mt(n.childNodes).map(x=>hs(x,a));await Promise.all(d).then(()=>n)}async function hs(n,a){Nr(n,Element)&&(await Kf(n,a),await Zf(n,a),await Jf(n,a))}function Qf(n,a){const{style:s}=n;a.backgroundColor&&(s.backgroundColor=a.backgroundColor),a.width&&(s.width=`${a.width}px`),a.height&&(s.height=`${a.height}px`);const d=a.style;return d!=null&&Object.keys(d).forEach(x=>{s[x]=d[x]}),n}const mo={};async function vo(n){let a=mo[n];if(a!=null)return a;const d=await(await fetch(n)).text();return a={url:n,cssText:d},mo[n]=a,a}async function go(n,a){let s=n.cssText;const d=/url\(["']?([^"')]+)["']?\)/g,b=(s.match(/url\([^)]+\)/g)||[]).map(async C=>{let B=C.replace(d,"$1");return B.startsWith("https://")||(B=new URL(B,n.url).href),ls(B,a.fetchRequestInit,({result:z})=>(s=s.replace(C,`url(${z})`),[C,z]))});return Promise.all(b).then(()=>s)}function yo(n){if(n==null)return[];const a=[],s=/(\/\*[\s\S]*?\*\/)/gi;let d=n.replace(s,"");const x=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const z=x.exec(d);if(z===null)break;a.push(z[0])}d=d.replace(x,"");const b=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,C="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",B=new RegExp(C,"gi");for(;;){let z=b.exec(d);if(z===null){if(z=B.exec(d),z===null)break;b.lastIndex=B.lastIndex}else B.lastIndex=b.lastIndex;a.push(z[0])}return a}async function e4(n,a){const s=[],d=[];return n.forEach(x=>{if("cssRules"in x)try{Mt(x.cssRules||[]).forEach((b,C)=>{if(b.type===CSSRule.IMPORT_RULE){let B=C+1;const z=b.href,I=vo(z).then(q=>go(q,a)).then(q=>yo(q).forEach(V=>{try{x.insertRule(V,V.startsWith("@import")?B+=1:x.cssRules.length)}catch(W){console.error("Error inserting rule from remote css",{rule:V,error:W})}})).catch(q=>{console.error("Error loading remote css",q.toString())});d.push(I)}})}catch(b){const C=n.find(B=>B.href==null)||document.styleSheets[0];x.href!=null&&d.push(vo(x.href).then(B=>go(B,a)).then(B=>yo(B).forEach(z=>{C.insertRule(z,x.cssRules.length)})).catch(B=>{console.error("Error loading remote stylesheet",B)})),console.error("Error inlining remote css file",b)}}),Promise.all(d).then(()=>(n.forEach(x=>{if("cssRules"in x)try{Mt(x.cssRules||[]).forEach(b=>{s.push(b)})}catch(b){console.error(`Error while reading CSS rules from ${x.href}`,b)}}),s))}function r4(n){return n.filter(a=>a.type===CSSRule.FONT_FACE_RULE).filter(a=>ss(a.style.getPropertyValue("src")))}async function t4(n,a){if(n.ownerDocument==null)throw new Error("Provided element is not within a Document");const s=Mt(n.ownerDocument.styleSheets),d=await e4(s,a);return r4(d)}async function n4(n,a){const s=await t4(n,a);return(await Promise.all(s.map(x=>{const b=x.parentStyleSheet?x.parentStyleSheet.href:null;return cs(x.cssText,b,a)}))).join(`
    `)}async function i4(n,a){const s=a.fontEmbedCSS!=null?a.fontEmbedCSS:a.skipFonts?null:await n4(n,a);if(s){const d=document.createElement("style"),x=document.createTextNode(s);d.appendChild(x),n.firstChild?n.insertBefore(d,n.firstChild):n.appendChild(d)}}async function a4(n,a={}){const{width:s,height:d}=as(n,a),x=await Wa(n,a,!0);return await i4(x,a),await hs(x,a),Qf(x,a),await Sf(x,s,d)}async function u4(n,a={}){const{width:s,height:d}=as(n,a),x=await a4(n,a),b=await Va(x),C=document.createElement("canvas"),B=C.getContext("2d"),z=a.pixelRatio||wf(),I=a.canvasWidth||s,q=a.canvasHeight||d;return C.width=I*z,C.height=q*z,a.skipAutoScale||Af(C),C.style.width=`${I}`,C.style.height=`${q}`,a.backgroundColor&&(B.fillStyle=a.backgroundColor,B.fillRect(0,0,C.width,C.height)),B.drawImage(b,0,0,C.width,C.height),C}async function h4(n,a={}){return(await u4(n,a)).toDataURL()}export{c4 as F,Ua as M,s4 as b,ks as r,h4 as t};