import{bH as fr,a9 as Rc,d as Ic,k as Nc,ad as qc,n as Oc,r as wr,e as Zi,ac as Lc,c as Ji,a as De,f as Te,u as Me,w as sr,bY as Pc,o as Qi,i as eu,A as _r,z as Cr,_ as Yn,bZ as zc}from"./index-bf4d935c.js";import{r as $c}from"./katex-a636beea.js";var nt={exports:{}};/*! markmap-lib v0.14.4 | MIT License */(function(r,n){(function(i,a){a(n,$c())})(fr,function(i,a){function c(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var p=c(a);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var u=arguments[t];for(var l in u)Object.prototype.hasOwnProperty.call(u,l)&&(e[l]=u[l])}return e},d.apply(this,arguments)}/*! markmap-common v0.14.2 | MIT License */class g{constructor(){this.listeners=[]}tap(t){return this.listeners.push(t),()=>this.revoke(t)}revoke(t){const u=this.listeners.indexOf(t);u>=0&&this.listeners.splice(u,1)}revokeAll(){this.listeners.splice(0)}call(...t){for(const u of this.listeners)u(...t)}}function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var u=arguments[t];for(var l in u)Object.prototype.hasOwnProperty.call(u,l)&&(e[l]=u[l])}return e},v.apply(this,arguments)}function A(e,t){if(e==null)return{};var u={},l=Object.keys(e),o,s;for(s=0;s<l.length;s++)o=l[s],!(t.indexOf(o)>=0)&&(u[o]=e[o]);return u}const x=["textContent"];function k(e){return e.replace(/[&<"]/g,t=>({"&":"&amp;","<":"&lt;",'"':"&quot;"})[t])}function D(e){return e.replace(/<(\/script>)/g,"\\x3c$2")}function E(e,t){const u=t?Object.entries(t).map(([l,o])=>{if(!(o==null||o===!1))return l=` ${k(l)}`,o===!0?l:`${l}="${k(o)}"`}).filter(Boolean).join(""):"";return`<${e}${u}>`}function j(e){return`</${e}>`}function z(e,t,u){return t==null?E(e,u):E(e,u)+(t||"")+j(e)}function Z(e,t){const u=t.map(l=>typeof l=="function"?l.toString():JSON.stringify(l??null)).join(",");return`(${e.toString()})(${u})`}function q(e,t){return e.map(u=>{if(u.type==="script"){const l=u.data,{textContent:o}=l,s=A(l,x);return z("script",o||"",s)}if(u.type==="iife"){const{fn:l,getParams:o}=u.data;return z("script",D(Z(l,(o==null?void 0:o(t))||[])))}return""})}function Y(e){return e.map(t=>t.type==="stylesheet"?z("link",null,v({rel:"stylesheet"},t.data)):z("style",t.data))}Math.random().toString(36).slice(2,8);function ue(e,{before:t,after:u}){return function(...o){const s={args:o,thisObj:this};try{t&&t(s)}catch{}s.result=e.apply(s.thisObj,s.args);try{u&&u(s)}catch{}return s.result}}function se(e){const t={};return function(...l){const o=`${l[0]}`;let s=t[o];return s||(s={value:e(...l)},t[o]=s),s.value}}function ce(e,t,u){const l=document.createElement(e);return t&&Object.entries(t).forEach(([o,s])=>{l[o]=s}),u&&Object.entries(u).forEach(([o,s])=>{l.setAttribute(o,s)}),l}const oe=se(e=>{document.head.append(ce("link",{rel:"preload",as:"script",href:e}))});async function R(e,t){if(!e.loaded&&(e.type==="script"&&(e.loaded=new Promise((u,l)=>{var o;document.head.append(ce("script",v({},e.data,{onload:u,onerror:l}))),(o=e.data)!=null&&o.src||u(void 0)}).then(()=>{e.loaded=!0})),e.type==="iife")){const{fn:u,getParams:l}=e.data;u(...(l==null?void 0:l(t))||[]),e.loaded=!0}await e.loaded}async function I(e,t){const u=e.filter(l=>{var o;return l.type==="script"&&((o=l.data)==null?void 0:o.src)});u.length>1&&u.forEach(l=>oe(l.data.src)),t=v({getMarkmap:()=>window.markmap},t);for(const l of e)await R(l,t)}const U=`<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Markmap</title>
<style>
* {
  margin: 0;
  padding: 0;
}
#mindmap {
  display: block;
  width: 100vw;
  height: 100vh;
}
</style>
<!--CSS-->
</head>
<body>
<svg id="mindmap"></svg>
<!--JS-->
</body>
</html>
`,W=["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 ie(e,t,u){u=d({baseJs:W},u);const{scripts:l,styles:o}=t,s=[...o?Y(o):[]],f={getMarkmap:()=>window.markmap,getOptions:u.getOptions,jsonOptions:u.jsonOptions,root:e},h=[...q([...u.baseJs,...l||[],{type:"iife",data:{fn:(b,y,_,F)=>{const B=b();window.mm=B.Markmap.create("svg#mindmap",(y||B.deriveOptions)(F),_)},getParams:({getMarkmap:b,getOptions:y,root:_,jsonOptions:F})=>[b,y,_,F]}}],f)];return U.replace("<!--CSS-->",()=>s.join("")).replace("<!--JS-->",()=>h.join(""))}var J={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:"ﬃ",fflig:"ﬀ",ffllig:"ﬄ",Ffr:"𝔉",ffr:"𝔣",filig:"ﬁ",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"ﬂ",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:"Ĳ",ijlig:"ĳ",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:"ŉ",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:"‌"},C=Object.prototype.hasOwnProperty;function w(e,t){return e?C.call(e,t):!1}function M(e){return w(J,e)?J[e]:e}var S=Object.prototype.hasOwnProperty;function L(e,t){return e?S.call(e,t):!1}function X(e){var t=[].slice.call(arguments,1);return t.forEach(function(u){if(u){if(typeof u!="object")throw new TypeError(u+"must be object");Object.keys(u).forEach(function(l){e[l]=u[l]})}}),e}var K=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function $(e){return e.indexOf("\\")<0?e:e.replace(K,"$1")}function re(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 t=55296+(e>>10),u=56320+(e&1023);return String.fromCharCode(t,u)}return String.fromCharCode(e)}var fe=/&([a-z#][a-z0-9]{1,31});/gi,ae=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function P(e,t){var u=0,l=M(t);return t!==l?l:t.charCodeAt(0)===35&&ae.test(t)&&(u=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),re(u))?le(u):e}function G(e){return e.indexOf("&")<0?e:e.replace(fe,P)}var te=/[&<>"]/,ne=/[&<>"]/g,he={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Se(e){return he[e]}function ge(e){return te.test(e)?e.replace(ne,Se):e}var O={};O.blockquote_open=function(){return`<blockquote>
`},O.blockquote_close=function(e,t){return"</blockquote>"+me(e,t)},O.code=function(e,t){return e[t].block?"<pre><code>"+ge(e[t].content)+"</code></pre>"+me(e,t):"<code>"+ge(e[t].content)+"</code>"},O.fence=function(e,t,u,l,o){var s=e[t],f="",h=u.langPrefix,m="",b,y,_;if(s.params){if(b=s.params.split(/\s+/g),y=b.join(" "),L(o.rules.fence_custom,b[0]))return o.rules.fence_custom[b[0]](e,t,u,l,o);m=ge(G($(y))),f=' class="'+h+m+'"'}return u.highlight?_=u.highlight.apply(u.highlight,[s.content].concat(b))||ge(s.content):_=ge(s.content),"<pre><code"+f+">"+_+"</code></pre>"+me(e,t)},O.fence_custom={},O.heading_open=function(e,t){return"<h"+e[t].hLevel+">"},O.heading_close=function(e,t){return"</h"+e[t].hLevel+`>
`},O.hr=function(e,t,u){return(u.xhtmlOut?"<hr />":"<hr>")+me(e,t)},O.bullet_list_open=function(){return`<ul>
`},O.bullet_list_close=function(e,t){return"</ul>"+me(e,t)},O.list_item_open=function(){return"<li>"},O.list_item_close=function(){return`</li>
`},O.ordered_list_open=function(e,t){var u=e[t],l=u.order>1?' start="'+u.order+'"':"";return"<ol"+l+`>
`},O.ordered_list_close=function(e,t){return"</ol>"+me(e,t)},O.paragraph_open=function(e,t){return e[t].tight?"":"<p>"},O.paragraph_close=function(e,t){var u=!(e[t].tight&&t&&e[t-1].type==="inline"&&!e[t-1].content);return(e[t].tight?"":"</p>")+(u?me(e,t):"")},O.link_open=function(e,t,u){var l=e[t].title?' title="'+ge(G(e[t].title))+'"':"",o=u.linkTarget?' target="'+u.linkTarget+'"':"";return'<a href="'+ge(e[t].href)+'"'+l+o+">"},O.link_close=function(){return"</a>"},O.image=function(e,t,u){var l=' src="'+ge(e[t].src)+'"',o=e[t].title?' title="'+ge(G(e[t].title))+'"':"",s=' alt="'+(e[t].alt?ge(G($(e[t].alt))):"")+'"',f=u.xhtmlOut?" /":"";return"<img"+l+s+o+f+">"},O.table_open=function(){return`<table>
`},O.table_close=function(){return`</table>
`},O.thead_open=function(){return`<thead>
`},O.thead_close=function(){return`</thead>
`},O.tbody_open=function(){return`<tbody>
`},O.tbody_close=function(){return`</tbody>
`},O.tr_open=function(){return"<tr>"},O.tr_close=function(){return`</tr>
`},O.th_open=function(e,t){var u=e[t];return"<th"+(u.align?' style="text-align:'+u.align+'"':"")+">"},O.th_close=function(){return"</th>"},O.td_open=function(e,t){var u=e[t];return"<td"+(u.align?' style="text-align:'+u.align+'"':"")+">"},O.td_close=function(){return"</td>"},O.strong_open=function(){return"<strong>"},O.strong_close=function(){return"</strong>"},O.em_open=function(){return"<em>"},O.em_close=function(){return"</em>"},O.del_open=function(){return"<del>"},O.del_close=function(){return"</del>"},O.ins_open=function(){return"<ins>"},O.ins_close=function(){return"</ins>"},O.mark_open=function(){return"<mark>"},O.mark_close=function(){return"</mark>"},O.sub=function(e,t){return"<sub>"+ge(e[t].content)+"</sub>"},O.sup=function(e,t){return"<sup>"+ge(e[t].content)+"</sup>"},O.hardbreak=function(e,t,u){return u.xhtmlOut?`<br />
`:`<br>
`},O.softbreak=function(e,t,u){return u.breaks?u.xhtmlOut?`<br />
`:`<br>
`:`
`},O.text=function(e,t){return ge(e[t].content)},O.htmlblock=function(e,t){return e[t].content},O.htmltag=function(e,t){return e[t].content},O.abbr_open=function(e,t){return'<abbr title="'+ge(G(e[t].title))+'">'},O.abbr_close=function(){return"</abbr>"},O.footnote_ref=function(e,t){var u=Number(e[t].id+1).toString(),l="fnref"+u;return e[t].subId>0&&(l+=":"+e[t].subId),'<sup class="footnote-ref"><a href="#fn'+u+'" id="'+l+'">['+u+"]</a></sup>"},O.footnote_block_open=function(e,t,u){var l=u.xhtmlOut?`<hr class="footnotes-sep" />
`:`<hr class="footnotes-sep">
`;return l+`<section class="footnotes">
<ol class="footnotes-list">
`},O.footnote_block_close=function(){return`</ol>
</section>
`},O.footnote_open=function(e,t){var u=Number(e[t].id+1).toString();return'<li id="fn'+u+'"  class="footnote-item">'},O.footnote_close=function(){return`</li>
`},O.footnote_anchor=function(e,t){var u=Number(e[t].id+1).toString(),l="fnref"+u;return e[t].subId>0&&(l+=":"+e[t].subId),' <a href="#'+l+'" class="footnote-backref">↩</a>'},O.dl_open=function(){return`<dl>
`},O.dt_open=function(){return"<dt>"},O.dd_open=function(){return"<dd>"},O.dl_close=function(){return`</dl>
`},O.dt_close=function(){return`</dt>
`},O.dd_close=function(){return`</dd>
`};function Fe(e,t){return++t>=e.length-2?t:e[t].type==="paragraph_open"&&e[t].tight&&e[t+1].type==="inline"&&e[t+1].content.length===0&&e[t+2].type==="paragraph_close"&&e[t+2].tight?Fe(e,t+2):t}var me=O.getBreak=function(t,u){return u=Fe(t,u),u<t.length&&t[u].type==="list_item_close"?"":`
`};function Le(){this.rules=X({},O),this.getBreak=O.getBreak}Le.prototype.renderInline=function(e,t,u){for(var l=this.rules,o=e.length,s=0,f="";o--;)f+=l[e[s].type](e,s++,t,u,this);return f},Le.prototype.render=function(e,t,u){for(var l=this.rules,o=e.length,s=-1,f="";++s<o;)e[s].type==="inline"?f+=this.renderInline(e[s].children,t,u):f+=l[e[s].type](e,s,t,u,this);return f};function Ce(){this.__rules__=[],this.__cache__=null}Ce.prototype.__find__=function(e){for(var t=this.__rules__.length,u=-1;t--;)if(this.__rules__[++u].name===e)return u;return-1},Ce.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(u){u.enabled&&u.alt.forEach(function(l){t.indexOf(l)<0&&t.push(l)})}),e.__cache__={},t.forEach(function(u){e.__cache__[u]=[],e.__rules__.forEach(function(l){l.enabled&&(u&&l.alt.indexOf(u)<0||e.__cache__[u].push(l.fn))})})},Ce.prototype.at=function(e,t,u){var l=this.__find__(e),o=u||{};if(l===-1)throw new Error("Parser rule not found: "+e);this.__rules__[l].fn=t,this.__rules__[l].alt=o.alt||[],this.__cache__=null},Ce.prototype.before=function(e,t,u,l){var o=this.__find__(e),s=l||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:u,alt:s.alt||[]}),this.__cache__=null},Ce.prototype.after=function(e,t,u,l){var o=this.__find__(e),s=l||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:u,alt:s.alt||[]}),this.__cache__=null},Ce.prototype.push=function(e,t,u){var l=u||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:l.alt||[]}),this.__cache__=null},Ce.prototype.enable=function(e,t){e=Array.isArray(e)?e:[e],t&&this.__rules__.forEach(function(u){u.enabled=!1}),e.forEach(function(u){var l=this.__find__(u);if(l<0)throw new Error("Rules manager: invalid rule name "+u);this.__rules__[l].enabled=!0},this),this.__cache__=null},Ce.prototype.disable=function(e){e=Array.isArray(e)?e:[e],e.forEach(function(t){var u=this.__find__(t);if(u<0)throw new Error("Rules manager: invalid rule name "+t);this.__rules__[u].enabled=!1},this),this.__cache__=null},Ce.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function So(e){e.inlineMode?e.tokens.push({type:"inline",content:e.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):e.block.parse(e.src,e.options,e.env,e.tokens)}function Ke(e,t,u,l,o){this.src=e,this.env=l,this.options=u,this.parser=t,this.tokens=o,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache=[],this.isInLabel=!1,this.linkLevel=0,this.linkContent="",this.labelUnmatchedScopes=0}Ke.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""},Ke.prototype.push=function(e){this.pending&&this.pushPending(),this.tokens.push(e),this.pendingLevel=this.level},Ke.prototype.cacheSet=function(e,t){for(var u=this.cache.length;u<=e;u++)this.cache.push(0);this.cache[e]=t},Ke.prototype.cacheGet=function(e){return e<this.cache.length?this.cache[e]:0};function gr(e,t){var u,l,o,s=-1,f=e.posMax,h=e.pos,m=e.isInLabel;if(e.isInLabel)return-1;if(e.labelUnmatchedScopes)return e.labelUnmatchedScopes--,-1;for(e.pos=t+1,e.isInLabel=!0,u=1;e.pos<f;){if(o=e.src.charCodeAt(e.pos),o===91)u++;else if(o===93&&(u--,u===0)){l=!0;break}e.parser.skipToken(e)}return l?(s=e.pos,e.labelUnmatchedScopes=0):e.labelUnmatchedScopes=u-1,e.pos=h,e.isInLabel=m,s}function Fo(e,t,u,l){var o,s,f,h,m,b;if(e.charCodeAt(0)!==42||e.charCodeAt(1)!==91||e.indexOf("]:")===-1||(o=new Ke(e,t,u,l,[]),s=gr(o,1),s<0||e.charCodeAt(s+1)!==58))return-1;for(h=o.posMax,f=s+2;f<h&&o.src.charCodeAt(f)!==10;f++);return m=e.slice(2,s),b=e.slice(s+2,f).trim(),b.length===0?-1:(l.abbreviations||(l.abbreviations={}),typeof l.abbreviations[":"+m]>"u"&&(l.abbreviations[":"+m]=b),f)}function Bo(e){var t=e.tokens,u,l,o,s;if(!e.inlineMode){for(u=1,l=t.length-1;u<l;u++)if(t[u-1].type==="paragraph_open"&&t[u].type==="inline"&&t[u+1].type==="paragraph_close"){for(o=t[u].content;o.length&&(s=Fo(o,e.inline,e.options,e.env),!(s<0));)o=o.slice(s).trim();t[u].content=o,o.length||(t[u-1].tight=!0,t[u+1].tight=!0)}}}function An(e){var t=G(e);try{t=decodeURI(t)}catch{}return encodeURI(t)}function Et(e,t){var u,l,o,s=t,f=e.posMax;if(e.src.charCodeAt(t)===60){for(t++;t<f;){if(u=e.src.charCodeAt(t),u===10)return!1;if(u===62)return o=An($(e.src.slice(s+1,t))),e.parser.validateLink(o)?(e.pos=t+1,e.linkContent=o,!0):!1;if(u===92&&t+1<f){t+=2;continue}t++}return!1}for(l=0;t<f&&(u=e.src.charCodeAt(t),!(u===32||u<32||u===127));){if(u===92&&t+1<f){t+=2;continue}if(u===40&&(l++,l>1)||u===41&&(l--,l<0))break;t++}return s===t||(o=$(e.src.slice(s,t)),!e.parser.validateLink(o))?!1:(e.linkContent=o,e.pos=t,!0)}function St(e,t){var u,l=t,o=e.posMax,s=e.src.charCodeAt(t);if(s!==34&&s!==39&&s!==40)return!1;for(t++,s===40&&(s=41);t<o;){if(u=e.src.charCodeAt(t),u===s)return e.pos=t+1,e.linkContent=$(e.src.slice(l+1,t)),!0;if(u===92&&t+1<o){t+=2;continue}t++}return!1}function Ft(e){return e.trim().replace(/\s+/g," ").toUpperCase()}function To(e,t,u,l){var o,s,f,h,m,b,y,_,F;if(e.charCodeAt(0)!==91||e.indexOf("]:")===-1||(o=new Ke(e,t,u,l,[]),s=gr(o,0),s<0||e.charCodeAt(s+1)!==58))return-1;for(h=o.posMax,f=s+2;f<h&&(m=o.src.charCodeAt(f),!(m!==32&&m!==10));f++);if(!Et(o,f))return-1;for(y=o.linkContent,f=o.pos,b=f,f=f+1;f<h&&(m=o.src.charCodeAt(f),!(m!==32&&m!==10));f++);for(f<h&&b!==f&&St(o,f)?(_=o.linkContent,f=o.pos):(_="",f=b);f<h&&o.src.charCodeAt(f)===32;)f++;return f<h&&o.src.charCodeAt(f)!==10?-1:(F=Ft(e.slice(1,s)),typeof l.references[F]>"u"&&(l.references[F]={title:_,href:y}),f)}function Mo(e){var t=e.tokens,u,l,o,s;if(e.env.references=e.env.references||{},!e.inlineMode){for(u=1,l=t.length-1;u<l;u++)if(t[u].type==="inline"&&t[u-1].type==="paragraph_open"&&t[u+1].type==="paragraph_close"){for(o=t[u].content;o.length&&(s=To(o,e.inline,e.options,e.env),!(s<0));)o=o.slice(s).trim();t[u].content=o,o.length||(t[u-1].tight=!0,t[u+1].tight=!0)}}}function Ro(e){var t=e.tokens,u,l,o;for(l=0,o=t.length;l<o;l++)u=t[l],u.type==="inline"&&e.inline.parse(u.content,e.options,e.env,u.children)}function Io(e){var t,u,l,o,s,f,h,m,b,y=0,_=!1,F={};if(e.env.footnotes&&(e.tokens=e.tokens.filter(function(B){return B.type==="footnote_reference_open"?(_=!0,m=[],b=B.label,!1):B.type==="footnote_reference_close"?(_=!1,F[":"+b]=m,!1):(_&&m.push(B),!_)}),!!e.env.footnotes.list)){for(f=e.env.footnotes.list,e.tokens.push({type:"footnote_block_open",level:y++}),t=0,u=f.length;t<u;t++){for(e.tokens.push({type:"footnote_open",id:t,level:y++}),f[t].tokens?(h=[],h.push({type:"paragraph_open",tight:!1,level:y++}),h.push({type:"inline",content:"",level:y,children:f[t].tokens}),h.push({type:"paragraph_close",tight:!1,level:--y})):f[t].label&&(h=F[":"+f[t].label]),e.tokens=e.tokens.concat(h),e.tokens[e.tokens.length-1].type==="paragraph_close"?s=e.tokens.pop():s=null,o=f[t].count>0?f[t].count:1,l=0;l<o;l++)e.tokens.push({type:"footnote_anchor",id:t,subId:l,level:y});s&&e.tokens.push(s),e.tokens.push({type:"footnote_close",level:--y})}e.tokens.push({type:"footnote_block_close",level:--y})}}var Bt=` 
()[]'".,!?-`;function bn(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}function No(e){var t,u,l,o,s,f,h,m,b,y,_,F,B=e.tokens;if(e.env.abbreviations){for(e.env.abbrRegExp||(F="(^|["+Bt.split("").map(bn).join("")+"])("+Object.keys(e.env.abbreviations).map(function(T){return T.substr(1)}).sort(function(T,N){return N.length-T.length}).map(bn).join("|")+")($|["+Bt.split("").map(bn).join("")+"])",e.env.abbrRegExp=new RegExp(F,"g")),y=e.env.abbrRegExp,u=0,l=B.length;u<l;u++)if(B[u].type==="inline"){for(o=B[u].children,t=o.length-1;t>=0;t--)if(s=o[t],s.type==="text"){for(m=0,f=s.content,y.lastIndex=0,b=s.level,h=[];_=y.exec(f);)y.lastIndex>m&&h.push({type:"text",content:f.slice(m,_.index+_[1].length),level:b}),h.push({type:"abbr_open",title:e.env.abbreviations[":"+_[2]],level:b++}),h.push({type:"text",content:_[2],level:b}),h.push({type:"abbr_close",level:--b}),m=y.lastIndex-_[3].length;h.length&&(m<f.length&&h.push({type:"text",content:f.slice(m),level:b}),B[u].children=o=[].concat(o.slice(0,t),h,o.slice(t+1)))}}}}var qo=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Oo=/\((c|tm|r|p)\)/ig,Lo={c:"©",r:"®",p:"§",tm:"™"};function Po(e){return e.indexOf("(")<0?e:e.replace(Oo,function(t,u){return Lo[u.toLowerCase()]})}function zo(e){var t,u,l,o,s;if(e.options.typographer){for(s=e.tokens.length-1;s>=0;s--)if(e.tokens[s].type==="inline")for(o=e.tokens[s].children,t=o.length-1;t>=0;t--)u=o[t],u.type==="text"&&(l=u.content,l=Po(l),qo.test(l)&&(l=l.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")),u.content=l)}}var $o=/['"]/,Tt=/['"]/g,Uo=/[-\s()\[\]]/,Mt="’";function Rt(e,t){return t<0||t>=e.length?!1:!Uo.test(e[t])}function tr(e,t,u){return e.substr(0,t)+u+e.substr(t+1)}function Ho(e){var t,u,l,o,s,f,h,m,b,y,_,F,B,T,N,V,Q;if(e.options.typographer){for(Q=[],N=e.tokens.length-1;N>=0;N--)if(e.tokens[N].type==="inline"){for(V=e.tokens[N].children,Q.length=0,t=0;t<V.length;t++)if(u=V[t],!(u.type!=="text"||$o.test(u.text))){for(h=V[t].level,B=Q.length-1;B>=0&&!(Q[B].level<=h);B--);Q.length=B+1,l=u.content,s=0,f=l.length;e:for(;s<f&&(Tt.lastIndex=s,o=Tt.exec(l),!!o);){if(m=!Rt(l,o.index-1),s=o.index+1,T=o[0]==="'",b=!Rt(l,s),!b&&!m){T&&(u.content=tr(u.content,o.index,Mt));continue}if(_=!b,F=!m,F){for(B=Q.length-1;B>=0&&(y=Q[B],!(Q[B].level<h));B--)if(y.single===T&&Q[B].level===h){y=Q[B],T?(V[y.token].content=tr(V[y.token].content,y.pos,e.options.quotes[2]),u.content=tr(u.content,o.index,e.options.quotes[3])):(V[y.token].content=tr(V[y.token].content,y.pos,e.options.quotes[0]),u.content=tr(u.content,o.index,e.options.quotes[1])),Q.length=B;continue e}}_?Q.push({token:t,pos:o.index,single:T,level:h}):F&&T&&(u.content=tr(u.content,o.index,Mt))}}}}}var wn=[["block",So],["abbr",Bo],["references",Mo],["inline",Ro],["footnote_tail",Io],["abbr2",No],["replacements",zo],["smartquotes",Ho]];function It(){this.options={},this.ruler=new Ce;for(var e=0;e<wn.length;e++)this.ruler.push(wn[e][0],wn[e][1])}It.prototype.process=function(e){var t,u,l;for(l=this.ruler.getRules(""),t=0,u=l.length;t<u;t++)l[t](e)};function We(e,t,u,l,o){var s,f,h,m,b,y,_;for(this.src=e,this.parser=t,this.options=u,this.env=l,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType="root",this.ddIndent=-1,this.level=0,this.result="",f=this.src,y=0,_=!1,h=m=y=0,b=f.length;m<b;m++){if(s=f.charCodeAt(m),!_)if(s===32){y++;continue}else _=!0;(s===10||m===b-1)&&(s!==10&&m++,this.bMarks.push(h),this.eMarks.push(m),this.tShift.push(y),_=!1,y=0,h=m+1)}this.bMarks.push(f.length),this.eMarks.push(f.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1}We.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},We.prototype.skipEmptyLines=function(t){for(var u=this.lineMax;t<u&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},We.prototype.skipSpaces=function(t){for(var u=this.src.length;t<u&&this.src.charCodeAt(t)===32;t++);return t},We.prototype.skipChars=function(t,u){for(var l=this.src.length;t<l&&this.src.charCodeAt(t)===u;t++);return t},We.prototype.skipCharsBack=function(t,u,l){if(t<=l)return t;for(;t>l;)if(u!==this.src.charCodeAt(--t))return t+1;return t},We.prototype.getLines=function(t,u,l,o){var s,f,h,m,b,y=t;if(t>=u)return"";if(y+1===u)return f=this.bMarks[y]+Math.min(this.tShift[y],l),h=o?this.eMarks[y]+1:this.eMarks[y],this.src.slice(f,h);for(m=new Array(u-t),s=0;y<u;y++,s++)b=this.tShift[y],b>l&&(b=l),b<0&&(b=0),f=this.bMarks[y]+b,y+1<u||o?h=this.eMarks[y]+1:h=this.eMarks[y],m[s]=this.src.slice(f,h);return m.join("")};function jo(e,t,u){var l,o;if(e.tShift[t]-e.blkIndent<4)return!1;for(o=l=t+1;l<u;){if(e.isEmpty(l)){l++;continue}if(e.tShift[l]-e.blkIndent>=4){l++,o=l;continue}break}return e.line=l,e.tokens.push({type:"code",content:e.getLines(t,o,4+e.blkIndent,!0),block:!0,lines:[t,e.line],level:e.level}),!0}function Vo(e,t,u,l){var o,s,f,h,m,b=!1,y=e.bMarks[t]+e.tShift[t],_=e.eMarks[t];if(y+3>_||(o=e.src.charCodeAt(y),o!==126&&o!==96)||(m=y,y=e.skipChars(y,o),s=y-m,s<3)||(f=e.src.slice(y,_).trim(),f.indexOf("`")>=0))return!1;if(l)return!0;for(h=t;h++,!(h>=u||(y=m=e.bMarks[h]+e.tShift[h],_=e.eMarks[h],y<_&&e.tShift[h]<e.blkIndent));)if(e.src.charCodeAt(y)===o&&!(e.tShift[h]-e.blkIndent>=4)&&(y=e.skipChars(y,o),!(y-m<s)&&(y=e.skipSpaces(y),!(y<_)))){b=!0;break}return s=e.tShift[t],e.line=h+(b?1:0),e.tokens.push({type:"fence",params:f,content:e.getLines(t+1,h,s,!0),lines:[t,e.line],level:e.level}),!0}function Go(e,t,u,l){var o,s,f,h,m,b,y,_,F,B,T,N=e.bMarks[t]+e.tShift[t],V=e.eMarks[t];if(N>V||e.src.charCodeAt(N++)!==62||e.level>=e.options.maxNesting)return!1;if(l)return!0;for(e.src.charCodeAt(N)===32&&N++,m=e.blkIndent,e.blkIndent=0,h=[e.bMarks[t]],e.bMarks[t]=N,N=N<V?e.skipSpaces(N):N,s=N>=V,f=[e.tShift[t]],e.tShift[t]=N-e.bMarks[t],_=e.parser.ruler.getRules("blockquote"),o=t+1;o<u&&(N=e.bMarks[o]+e.tShift[o],V=e.eMarks[o],!(N>=V));o++){if(e.src.charCodeAt(N++)===62){e.src.charCodeAt(N)===32&&N++,h.push(e.bMarks[o]),e.bMarks[o]=N,N=N<V?e.skipSpaces(N):N,s=N>=V,f.push(e.tShift[o]),e.tShift[o]=N-e.bMarks[o];continue}if(s)break;for(T=!1,F=0,B=_.length;F<B;F++)if(_[F](e,o,u,!0)){T=!0;break}if(T)break;h.push(e.bMarks[o]),f.push(e.tShift[o]),e.tShift[o]=-1337}for(b=e.parentType,e.parentType="blockquote",e.tokens.push({type:"blockquote_open",lines:y=[t,0],level:e.level++}),e.parser.tokenize(e,t,o),e.tokens.push({type:"blockquote_close",level:--e.level}),e.parentType=b,y[1]=e.line,F=0;F<f.length;F++)e.bMarks[F+t]=h[F],e.tShift[F+t]=f[F];return e.blkIndent=m,!0}function Yo(e,t,u,l){var o,s,f,h=e.bMarks[t],m=e.eMarks[t];if(h+=e.tShift[t],h>m||(o=e.src.charCodeAt(h++),o!==42&&o!==45&&o!==95))return!1;for(s=1;h<m;){if(f=e.src.charCodeAt(h++),f!==o&&f!==32)return!1;f===o&&s++}return s<3?!1:(l||(e.line=t+1,e.tokens.push({type:"hr",lines:[t,e.line],level:e.level})),!0)}function Nt(e,t){var u,l,o;return l=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],l>=o||(u=e.src.charCodeAt(l++),u!==42&&u!==45&&u!==43)||l<o&&e.src.charCodeAt(l)!==32?-1:l}function qt(e,t){var u,l=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(l+1>=o||(u=e.src.charCodeAt(l++),u<48||u>57))return-1;for(;;){if(l>=o)return-1;if(u=e.src.charCodeAt(l++),!(u>=48&&u<=57)){if(u===41||u===46)break;return-1}}return l<o&&e.src.charCodeAt(l)!==32?-1:l}function Xo(e,t){var u,l,o=e.level+2;for(u=t+2,l=e.tokens.length-2;u<l;u++)e.tokens[u].level===o&&e.tokens[u].type==="paragraph_open"&&(e.tokens[u+2].tight=!0,e.tokens[u].tight=!0,u+=2)}function Ko(e,t,u,l){var o,s,f,h,m,b,y,_,F,B,T,N,V,Q,ee,ye,Be,Yr,Ki=!0,Vn,Xr,Wi,Gn;if((_=qt(e,t))>=0)V=!0;else if((_=Nt(e,t))>=0)V=!1;else return!1;if(e.level>=e.options.maxNesting)return!1;if(N=e.src.charCodeAt(_-1),l)return!0;for(ee=e.tokens.length,V?(y=e.bMarks[t]+e.tShift[t],T=Number(e.src.substr(y,_-y-1)),e.tokens.push({type:"ordered_list_open",order:T,lines:Be=[t,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:Be=[t,0],level:e.level++}),o=t,ye=!1,Vn=e.parser.ruler.getRules("list");o<u&&(Q=e.skipSpaces(_),F=e.eMarks[o],Q>=F?B=1:B=Q-_,B>4&&(B=1),B<1&&(B=1),s=_-e.bMarks[o]+B,e.tokens.push({type:"list_item_open",lines:Yr=[t,0],level:e.level++}),h=e.blkIndent,m=e.tight,f=e.tShift[t],b=e.parentType,e.tShift[t]=Q-e.bMarks[t],e.blkIndent=s,e.tight=!0,e.parentType="list",e.parser.tokenize(e,t,u,!0),(!e.tight||ye)&&(Ki=!1),ye=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=h,e.tShift[t]=f,e.tight=m,e.parentType=b,e.tokens.push({type:"list_item_close",level:--e.level}),o=t=e.line,Yr[1]=o,Q=e.bMarks[t],!(o>=u||e.isEmpty(o)||e.tShift[o]<e.blkIndent));){for(Gn=!1,Xr=0,Wi=Vn.length;Xr<Wi;Xr++)if(Vn[Xr](e,o,u,!0)){Gn=!0;break}if(Gn)break;if(V){if(_=qt(e,o),_<0)break}else if(_=Nt(e,o),_<0)break;if(N!==e.src.charCodeAt(_-1))break}return e.tokens.push({type:V?"ordered_list_close":"bullet_list_close",level:--e.level}),Be[1]=o,e.line=o,Ki&&Xo(e,ee),!0}function Wo(e,t,u,l){var o,s,f,h,m,b=e.bMarks[t]+e.tShift[t],y=e.eMarks[t];if(b+4>y||e.src.charCodeAt(b)!==91||e.src.charCodeAt(b+1)!==94||e.level>=e.options.maxNesting)return!1;for(h=b+2;h<y;h++){if(e.src.charCodeAt(h)===32)return!1;if(e.src.charCodeAt(h)===93)break}return h===b+2||h+1>=y||e.src.charCodeAt(++h)!==58?!1:(l||(h++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),m=e.src.slice(b+2,h-2),e.env.footnotes.refs[":"+m]=-1,e.tokens.push({type:"footnote_reference_open",label:m,level:e.level++}),o=e.bMarks[t],s=e.tShift[t],f=e.parentType,e.tShift[t]=e.skipSpaces(h)-h,e.bMarks[t]=h,e.blkIndent+=4,e.parentType="footnote",e.tShift[t]<e.blkIndent&&(e.tShift[t]+=e.blkIndent,e.bMarks[t]-=e.blkIndent),e.parser.tokenize(e,t,u,!0),e.parentType=f,e.blkIndent-=4,e.tShift[t]=s,e.bMarks[t]=o,e.tokens.push({type:"footnote_reference_close",level:--e.level})),!0)}function Zo(e,t,u,l){var o,s,f,h=e.bMarks[t]+e.tShift[t],m=e.eMarks[t];if(h>=m||(o=e.src.charCodeAt(h),o!==35||h>=m))return!1;for(s=1,o=e.src.charCodeAt(++h);o===35&&h<m&&s<=6;)s++,o=e.src.charCodeAt(++h);return s>6||h<m&&o!==32?!1:(l||(m=e.skipCharsBack(m,32,h),f=e.skipCharsBack(m,35,h),f>h&&e.src.charCodeAt(f-1)===32&&(m=f),e.line=t+1,e.tokens.push({type:"heading_open",hLevel:s,lines:[t,e.line],level:e.level}),h<m&&e.tokens.push({type:"inline",content:e.src.slice(h,m).trim(),level:e.level+1,lines:[t,e.line],children:[]}),e.tokens.push({type:"heading_close",hLevel:s,level:e.level})),!0)}function Jo(e,t,u){var l,o,s,f=t+1;return f>=u||e.tShift[f]<e.blkIndent||e.tShift[f]-e.blkIndent>3||(o=e.bMarks[f]+e.tShift[f],s=e.eMarks[f],o>=s)||(l=e.src.charCodeAt(o),l!==45&&l!==61)||(o=e.skipChars(o,l),o=e.skipSpaces(o),o<s)?!1:(o=e.bMarks[t]+e.tShift[t],e.line=f+1,e.tokens.push({type:"heading_open",hLevel:l===61?1:2,lines:[t,e.line],level:e.level}),e.tokens.push({type:"inline",content:e.src.slice(o,e.eMarks[t]).trim(),level:e.level+1,lines:[t,e.line-1],children:[]}),e.tokens.push({type:"heading_close",hLevel:l===61?1:2,level:e.level}),!0)}var Ot={};["article","aside","button","blockquote","body","canvas","caption","col","colgroup","dd","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","iframe","li","map","object","ol","output","p","pre","progress","script","section","style","table","tbody","td","textarea","tfoot","th","tr","thead","ul","video"].forEach(function(e){Ot[e]=!0});var Qo=/^<([a-zA-Z]{1,15})[\s\/>]/,el=/^<\/([a-zA-Z]{1,15})[\s>]/;function rl(e){var t=e|32;return t>=97&&t<=122}function nl(e,t,u,l){var o,s,f,h=e.bMarks[t],m=e.eMarks[t],b=e.tShift[t];if(h+=b,!e.options.html||b>3||h+2>=m||e.src.charCodeAt(h)!==60)return!1;if(o=e.src.charCodeAt(h+1),o===33||o===63){if(l)return!0}else if(o===47||rl(o)){if(o===47){if(s=e.src.slice(h,m).match(el),!s)return!1}else if(s=e.src.slice(h,m).match(Qo),!s)return!1;if(Ot[s[1].toLowerCase()]!==!0)return!1;if(l)return!0}else return!1;for(f=t+1;f<e.lineMax&&!e.isEmpty(f);)f++;return e.line=f,e.tokens.push({type:"htmlblock",level:e.level,lines:[t,e.line],content:e.getLines(t,f,0,!0)}),!0}function _n(e,t){var u=e.bMarks[t]+e.blkIndent,l=e.eMarks[t];return e.src.substr(u,l-u)}function tl(e,t,u,l){var o,s,f,h,m,b,y,_,F,B,T;if(t+2>u||(m=t+1,e.tShift[m]<e.blkIndent)||(f=e.bMarks[m]+e.tShift[m],f>=e.eMarks[m])||(o=e.src.charCodeAt(f),o!==124&&o!==45&&o!==58)||(s=_n(e,t+1),!/^[-:| ]+$/.test(s))||(b=s.split("|"),b<=2))return!1;for(_=[],h=0;h<b.length;h++){if(F=b[h].trim(),!F){if(h===0||h===b.length-1)continue;return!1}if(!/^:?-+:?$/.test(F))return!1;F.charCodeAt(F.length-1)===58?_.push(F.charCodeAt(0)===58?"center":"right"):F.charCodeAt(0)===58?_.push("left"):_.push("")}if(s=_n(e,t).trim(),s.indexOf("|")===-1||(b=s.replace(/^\||\|$/g,"").split("|"),_.length!==b.length))return!1;if(l)return!0;for(e.tokens.push({type:"table_open",lines:B=[t,0],level:e.level++}),e.tokens.push({type:"thead_open",lines:[t,t+1],level:e.level++}),e.tokens.push({type:"tr_open",lines:[t,t+1],level:e.level++}),h=0;h<b.length;h++)e.tokens.push({type:"th_open",align:_[h],lines:[t,t+1],level:e.level++}),e.tokens.push({type:"inline",content:b[h].trim(),lines:[t,t+1],level:e.level,children:[]}),e.tokens.push({type:"th_close",level:--e.level});for(e.tokens.push({type:"tr_close",level:--e.level}),e.tokens.push({type:"thead_close",level:--e.level}),e.tokens.push({type:"tbody_open",lines:T=[t+2,0],level:e.level++}),m=t+2;m<u&&!(e.tShift[m]<e.blkIndent||(s=_n(e,m).trim(),s.indexOf("|")===-1));m++){for(b=s.replace(/^\||\|$/g,"").split("|"),e.tokens.push({type:"tr_open",level:e.level++}),h=0;h<b.length;h++)e.tokens.push({type:"td_open",align:_[h],level:e.level++}),y=b[h].substring(b[h].charCodeAt(0)===124?1:0,b[h].charCodeAt(b[h].length-1)===124?b[h].length-1:b[h].length).trim(),e.tokens.push({type:"inline",content:y,level:e.level,children:[]}),e.tokens.push({type:"td_close",level:--e.level});e.tokens.push({type:"tr_close",level:--e.level})}return e.tokens.push({type:"tbody_close",level:--e.level}),e.tokens.push({type:"table_close",level:--e.level}),B[1]=T[1]=m,e.line=m,!0}function Or(e,t){var u,l,o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];return o>=s||(l=e.src.charCodeAt(o++),l!==126&&l!==58)||(u=e.skipSpaces(o),o===u)||u>=s?-1:u}function il(e,t){var u,l,o=e.level+2;for(u=t+2,l=e.tokens.length-2;u<l;u++)e.tokens[u].level===o&&e.tokens[u].type==="paragraph_open"&&(e.tokens[u+2].tight=!0,e.tokens[u].tight=!0,u+=2)}function ul(e,t,u,l){var o,s,f,h,m,b,y,_,F,B,T,N,V,Q;if(l)return e.ddIndent<0?!1:Or(e,t)>=0;if(y=t+1,e.isEmpty(y)&&++y>u||e.tShift[y]<e.blkIndent||(o=Or(e,y),o<0)||e.level>=e.options.maxNesting)return!1;b=e.tokens.length,e.tokens.push({type:"dl_open",lines:m=[t,0],level:e.level++}),f=t,s=y;e:for(;;){for(Q=!0,V=!1,e.tokens.push({type:"dt_open",lines:[f,f],level:e.level++}),e.tokens.push({type:"inline",content:e.getLines(f,f+1,e.blkIndent,!1).trim(),level:e.level+1,lines:[f,f],children:[]}),e.tokens.push({type:"dt_close",level:--e.level});;){if(e.tokens.push({type:"dd_open",lines:h=[y,0],level:e.level++}),N=e.tight,F=e.ddIndent,_=e.blkIndent,T=e.tShift[s],B=e.parentType,e.blkIndent=e.ddIndent=e.tShift[s]+2,e.tShift[s]=o-e.bMarks[s],e.tight=!0,e.parentType="deflist",e.parser.tokenize(e,s,u,!0),(!e.tight||V)&&(Q=!1),V=e.line-s>1&&e.isEmpty(e.line-1),e.tShift[s]=T,e.tight=N,e.parentType=B,e.blkIndent=_,e.ddIndent=F,e.tokens.push({type:"dd_close",level:--e.level}),h[1]=y=e.line,y>=u||e.tShift[y]<e.blkIndent)break e;if(o=Or(e,y),o<0)break;s=y}if(y>=u||(f=y,e.isEmpty(f))||e.tShift[f]<e.blkIndent||(s=f+1,s>=u)||(e.isEmpty(s)&&s++,s>=u)||e.tShift[s]<e.blkIndent||(o=Or(e,s),o<0))break}return e.tokens.push({type:"dl_close",level:--e.level}),m[1]=y,e.line=y,Q&&il(e,b),!0}function ol(e,t){var u,l,o,s,f,h=t+1,m;if(u=e.lineMax,h<u&&!e.isEmpty(h)){for(m=e.parser.ruler.getRules("paragraph");h<u&&!e.isEmpty(h);h++)if(!(e.tShift[h]-e.blkIndent>3)){for(o=!1,s=0,f=m.length;s<f;s++)if(m[s](e,h,u,!0)){o=!0;break}if(o)break}}return l=e.getLines(t,h,e.blkIndent,!1).trim(),e.line=h,l.length&&(e.tokens.push({type:"paragraph_open",tight:!1,lines:[t,e.line],level:e.level}),e.tokens.push({type:"inline",content:l,level:e.level+1,lines:[t,e.line],children:[]}),e.tokens.push({type:"paragraph_close",tight:!1,level:e.level})),!0}var Lr=[["code",jo],["fences",Vo,["paragraph","blockquote","list"]],["blockquote",Go,["paragraph","blockquote","list"]],["hr",Yo,["paragraph","blockquote","list"]],["list",Ko,["paragraph","blockquote"]],["footnote",Wo,["paragraph"]],["heading",Zo,["paragraph","blockquote"]],["lheading",Jo],["htmlblock",nl,["paragraph","blockquote"]],["table",tl,["paragraph"]],["deflist",ul,["paragraph"]],["paragraph",ol]];function Cn(){this.ruler=new Ce;for(var e=0;e<Lr.length;e++)this.ruler.push(Lr[e][0],Lr[e][1],{alt:(Lr[e][2]||[]).slice()})}Cn.prototype.tokenize=function(e,t,u){for(var l=this.ruler.getRules(""),o=l.length,s=t,f=!1,h,m;s<u&&(e.line=s=e.skipEmptyLines(s),!(s>=u||e.tShift[s]<e.blkIndent));){for(m=0;m<o&&(h=l[m](e,s,u,!1),!h);m++);if(e.tight=!f,e.isEmpty(e.line-1)&&(f=!0),s=e.line,s<u&&e.isEmpty(s)){if(f=!0,s++,s<u&&e.parentType==="list"&&e.isEmpty(s))break;e.line=s}}};var ll=/[\n\t]/g,al=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,sl=/\u00a0/g;Cn.prototype.parse=function(e,t,u,l){var o,s=0,f=0;if(!e)return[];e=e.replace(sl," "),e=e.replace(al,`
`),e.indexOf("	")>=0&&(e=e.replace(ll,function(h,m){var b;return e.charCodeAt(m)===10?(s=m+1,f=0,h):(b="    ".slice((m-s-f)%4),f=m-s+1,b)})),o=new We(e,this,t,u,l),this.tokenize(o,o.line,o.lineMax)};function cl(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 fl(e,t){for(var u=e.pos;u<e.posMax&&!cl(e.src.charCodeAt(u));)u++;return u===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,u)),e.pos=u,!0)}function hl(e,t){var u,l,o=e.pos;if(e.src.charCodeAt(o)!==10)return!1;if(u=e.pending.length-1,l=e.posMax,!t)if(u>=0&&e.pending.charCodeAt(u)===32)if(u>=1&&e.pending.charCodeAt(u-1)===32){for(var s=u-2;s>=0;s--)if(e.pending.charCodeAt(s)!==32){e.pending=e.pending.substring(0,s+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(o++;o<l&&e.src.charCodeAt(o)===32;)o++;return e.pos=o,!0}for(var kn=[],Lt=0;Lt<256;Lt++)kn.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){kn[e.charCodeAt(0)]=1});function pl(e,t){var u,l=e.pos,o=e.posMax;if(e.src.charCodeAt(l)!==92)return!1;if(l++,l<o){if(u=e.src.charCodeAt(l),u<256&&kn[u]!==0)return t||(e.pending+=e.src[l]),e.pos+=2,!0;if(u===10){for(t||e.push({type:"hardbreak",level:e.level}),l++;l<o&&e.src.charCodeAt(l)===32;)l++;return e.pos=l,!0}}return t||(e.pending+="\\"),e.pos++,!0}function dl(e,t){var u,l,o,s,f,h=e.pos,m=e.src.charCodeAt(h);if(m!==96)return!1;for(u=h,h++,l=e.posMax;h<l&&e.src.charCodeAt(h)===96;)h++;for(o=e.src.slice(u,h),s=f=h;(s=e.src.indexOf("`",f))!==-1;){for(f=s+1;f<l&&e.src.charCodeAt(f)===96;)f++;if(f-s===o.length)return t||e.push({type:"code",content:e.src.slice(h,s).replace(/[ \n]+/g," ").trim(),block:!1,level:e.level}),e.pos=f,!0}return t||(e.pending+=o),e.pos+=o.length,!0}function gl(e,t){var u,l,o,s=e.posMax,f=e.pos,h,m;if(e.src.charCodeAt(f)!==126||t||f+4>=s||e.src.charCodeAt(f+1)!==126||e.level>=e.options.maxNesting||(h=f>0?e.src.charCodeAt(f-1):-1,m=e.src.charCodeAt(f+2),h===126)||m===126||m===32||m===10)return!1;for(l=f+2;l<s&&e.src.charCodeAt(l)===126;)l++;if(l>f+3)return e.pos+=l-f,t||(e.pending+=e.src.slice(f,l)),!0;for(e.pos=f+2,o=1;e.pos+1<s;){if(e.src.charCodeAt(e.pos)===126&&e.src.charCodeAt(e.pos+1)===126&&(h=e.src.charCodeAt(e.pos-1),m=e.pos+2<s?e.src.charCodeAt(e.pos+2):-1,m!==126&&h!==126&&(h!==32&&h!==10?o--:m!==32&&m!==10&&o++,o<=0))){u=!0;break}e.parser.skipToken(e)}return u?(e.posMax=e.pos,e.pos=f+2,t||(e.push({type:"del_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"del_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=s,!0):(e.pos=f,!1)}function ml(e,t){var u,l,o,s=e.posMax,f=e.pos,h,m;if(e.src.charCodeAt(f)!==43||t||f+4>=s||e.src.charCodeAt(f+1)!==43||e.level>=e.options.maxNesting||(h=f>0?e.src.charCodeAt(f-1):-1,m=e.src.charCodeAt(f+2),h===43)||m===43||m===32||m===10)return!1;for(l=f+2;l<s&&e.src.charCodeAt(l)===43;)l++;if(l!==f+2)return e.pos+=l-f,t||(e.pending+=e.src.slice(f,l)),!0;for(e.pos=f+2,o=1;e.pos+1<s;){if(e.src.charCodeAt(e.pos)===43&&e.src.charCodeAt(e.pos+1)===43&&(h=e.src.charCodeAt(e.pos-1),m=e.pos+2<s?e.src.charCodeAt(e.pos+2):-1,m!==43&&h!==43&&(h!==32&&h!==10?o--:m!==32&&m!==10&&o++,o<=0))){u=!0;break}e.parser.skipToken(e)}return u?(e.posMax=e.pos,e.pos=f+2,t||(e.push({type:"ins_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"ins_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=s,!0):(e.pos=f,!1)}function vl(e,t){var u,l,o,s=e.posMax,f=e.pos,h,m;if(e.src.charCodeAt(f)!==61||t||f+4>=s||e.src.charCodeAt(f+1)!==61||e.level>=e.options.maxNesting||(h=f>0?e.src.charCodeAt(f-1):-1,m=e.src.charCodeAt(f+2),h===61)||m===61||m===32||m===10)return!1;for(l=f+2;l<s&&e.src.charCodeAt(l)===61;)l++;if(l!==f+2)return e.pos+=l-f,t||(e.pending+=e.src.slice(f,l)),!0;for(e.pos=f+2,o=1;e.pos+1<s;){if(e.src.charCodeAt(e.pos)===61&&e.src.charCodeAt(e.pos+1)===61&&(h=e.src.charCodeAt(e.pos-1),m=e.pos+2<s?e.src.charCodeAt(e.pos+2):-1,m!==61&&h!==61&&(h!==32&&h!==10?o--:m!==32&&m!==10&&o++,o<=0))){u=!0;break}e.parser.skipToken(e)}return u?(e.posMax=e.pos,e.pos=f+2,t||(e.push({type:"mark_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"mark_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=s,!0):(e.pos=f,!1)}function Pt(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function zt(e,t){var u=t,l,o,s,f=!0,h=!0,m=e.posMax,b=e.src.charCodeAt(t);for(l=t>0?e.src.charCodeAt(t-1):-1;u<m&&e.src.charCodeAt(u)===b;)u++;return u>=m&&(f=!1),s=u-t,s>=4?f=h=!1:(o=u<m?e.src.charCodeAt(u):-1,(o===32||o===10)&&(f=!1),(l===32||l===10)&&(h=!1),b===95&&(Pt(l)&&(f=!1),Pt(o)&&(h=!1))),{can_open:f,can_close:h,delims:s}}function xl(e,t){var u,l,o,s,f,h,m,b=e.posMax,y=e.pos,_=e.src.charCodeAt(y);if(_!==95&&_!==42||t)return!1;if(m=zt(e,y),u=m.delims,!m.can_open)return e.pos+=u,t||(e.pending+=e.src.slice(y,e.pos)),!0;if(e.level>=e.options.maxNesting)return!1;for(e.pos=y+u,h=[u];e.pos<b;){if(e.src.charCodeAt(e.pos)===_){if(m=zt(e,e.pos),l=m.delims,m.can_close){for(s=h.pop(),f=l;s!==f;){if(f<s){h.push(s-f);break}if(f-=s,h.length===0)break;e.pos+=s,s=h.pop()}if(h.length===0){u=s,o=!0;break}e.pos+=l;continue}m.can_open&&h.push(l),e.pos+=l;continue}e.parser.skipToken(e)}return o?(e.posMax=e.pos,e.pos=y+u,t||((u===2||u===3)&&e.push({type:"strong_open",level:e.level++}),(u===1||u===3)&&e.push({type:"em_open",level:e.level++}),e.parser.tokenize(e),(u===1||u===3)&&e.push({type:"em_close",level:--e.level}),(u===2||u===3)&&e.push({type:"strong_close",level:--e.level})),e.pos=e.posMax+u,e.posMax=b,!0):(e.pos=y,!1)}var yl=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function Al(e,t){var u,l,o=e.posMax,s=e.pos;if(e.src.charCodeAt(s)!==126||t||s+2>=o||e.level>=e.options.maxNesting)return!1;for(e.pos=s+1;e.pos<o;){if(e.src.charCodeAt(e.pos)===126){u=!0;break}e.parser.skipToken(e)}return!u||s+1===e.pos||(l=e.src.slice(s+1,e.pos),l.match(/(^|[^\\])(\\\\)*\s/))?(e.pos=s,!1):(e.posMax=e.pos,e.pos=s+1,t||e.push({type:"sub",level:e.level,content:l.replace(yl,"$1")}),e.pos=e.posMax+1,e.posMax=o,!0)}var bl=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function wl(e,t){var u,l,o=e.posMax,s=e.pos;if(e.src.charCodeAt(s)!==94||t||s+2>=o||e.level>=e.options.maxNesting)return!1;for(e.pos=s+1;e.pos<o;){if(e.src.charCodeAt(e.pos)===94){u=!0;break}e.parser.skipToken(e)}return!u||s+1===e.pos||(l=e.src.slice(s+1,e.pos),l.match(/(^|[^\\])(\\\\)*\s/))?(e.pos=s,!1):(e.posMax=e.pos,e.pos=s+1,t||e.push({type:"sup",level:e.level,content:l.replace(bl,"$1")}),e.pos=e.posMax+1,e.posMax=o,!0)}function _l(e,t){var u,l,o,s,f,h,m,b,y=!1,_=e.pos,F=e.posMax,B=e.pos,T=e.src.charCodeAt(B);if(T===33&&(y=!0,T=e.src.charCodeAt(++B)),T!==91||e.level>=e.options.maxNesting||(u=B+1,l=gr(e,B),l<0))return!1;if(h=l+1,h<F&&e.src.charCodeAt(h)===40){for(h++;h<F&&(b=e.src.charCodeAt(h),!(b!==32&&b!==10));h++);if(h>=F)return!1;for(B=h,Et(e,h)?(s=e.linkContent,h=e.pos):s="",B=h;h<F&&(b=e.src.charCodeAt(h),!(b!==32&&b!==10));h++);if(h<F&&B!==h&&St(e,h))for(f=e.linkContent,h=e.pos;h<F&&(b=e.src.charCodeAt(h),!(b!==32&&b!==10));h++);else f="";if(h>=F||e.src.charCodeAt(h)!==41)return e.pos=_,!1;h++}else{if(e.linkLevel>0)return!1;for(;h<F&&(b=e.src.charCodeAt(h),!(b!==32&&b!==10));h++);if(h<F&&e.src.charCodeAt(h)===91&&(B=h+1,h=gr(e,h),h>=0?o=e.src.slice(B,h++):h=B-1),o||(typeof o>"u"&&(h=l+1),o=e.src.slice(u,l)),m=e.env.references[Ft(o)],!m)return e.pos=_,!1;s=m.href,f=m.title}return t||(e.pos=u,e.posMax=l,y?e.push({type:"image",src:s,title:f,alt:e.src.substr(u,l-u),level:e.level}):(e.push({type:"link_open",href:s,title:f,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:"link_close",level:--e.level}))),e.pos=h,e.posMax=F,!0}function Cl(e,t){var u,l,o,s,f=e.posMax,h=e.pos;return h+2>=f||e.src.charCodeAt(h)!==94||e.src.charCodeAt(h+1)!==91||e.level>=e.options.maxNesting||(u=h+2,l=gr(e,h+1),l<0)?!1:(t||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),o=e.env.footnotes.list.length,e.pos=u,e.posMax=l,e.push({type:"footnote_ref",id:o,level:e.level}),e.linkLevel++,s=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[o]={tokens:e.tokens.splice(s)},e.linkLevel--),e.pos=l+1,e.posMax=f,!0)}function kl(e,t){var u,l,o,s,f=e.posMax,h=e.pos;if(h+3>f||!e.env.footnotes||!e.env.footnotes.refs||e.src.charCodeAt(h)!==91||e.src.charCodeAt(h+1)!==94||e.level>=e.options.maxNesting)return!1;for(l=h+2;l<f;l++){if(e.src.charCodeAt(l)===32||e.src.charCodeAt(l)===10)return!1;if(e.src.charCodeAt(l)===93)break}return l===h+2||l>=f||(l++,u=e.src.slice(h+2,l-1),typeof e.env.footnotes.refs[":"+u]>"u")?!1:(t||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+u]<0?(o=e.env.footnotes.list.length,e.env.footnotes.list[o]={label:u,count:0},e.env.footnotes.refs[":"+u]=o):o=e.env.footnotes.refs[":"+u],s=e.env.footnotes.list[o].count,e.env.footnotes.list[o].count++,e.push({type:"footnote_ref",id:o,subId:s,level:e.level})),e.pos=l,e.posMax=f,!0)}var Dl=["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"],El=/^<([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])?)*)>/,Sl=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function Fl(e,t){var u,l,o,s,f,h=e.pos;return e.src.charCodeAt(h)!==60||(u=e.src.slice(h),u.indexOf(">")<0)?!1:(l=u.match(Sl),l?Dl.indexOf(l[1].toLowerCase())<0||(s=l[0].slice(1,-1),f=An(s),!e.parser.validateLink(s))?!1:(t||(e.push({type:"link_open",href:f,level:e.level}),e.push({type:"text",content:s,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=l[0].length,!0):(o=u.match(El),o?(s=o[0].slice(1,-1),f=An("mailto:"+s),e.parser.validateLink(f)?(t||(e.push({type:"link_open",href:f,level:e.level}),e.push({type:"text",content:s,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=o[0].length,!0):!1):!1))}function Pr(e,t){return e=e.source,t=t||"",function u(l,o){return l?(o=o.source||o,e=e.replace(l,o),u):new RegExp(e,t)}}var Bl=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,Tl=/[^"'=<>`\x00-\x20]+/,Ml=/'[^']*'/,Rl=/"[^"]*"/,Il=Pr(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",Tl)("single_quoted",Ml)("double_quoted",Rl)(),Nl=Pr(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",Bl)("attr_value",Il)(),ql=Pr(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",Nl)(),Ol=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,Ll=/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,Pl=/<[?].*?[?]>/,zl=/<![A-Z]+\s+[^>]*>/,$l=/<!\[CDATA\[[\s\S]*?\]\]>/,Ul=Pr(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",ql)("close_tag",Ol)("comment",Ll)("processing",Pl)("declaration",zl)("cdata",$l)();function Hl(e){var t=e|32;return t>=97&&t<=122}function jl(e,t){var u,l,o,s=e.pos;return!e.options.html||(o=e.posMax,e.src.charCodeAt(s)!==60||s+2>=o)||(u=e.src.charCodeAt(s+1),u!==33&&u!==63&&u!==47&&!Hl(u))||(l=e.src.slice(s).match(Ul),!l)?!1:(t||e.push({type:"htmltag",content:e.src.slice(s,s+l[0].length),level:e.level}),e.pos+=l[0].length,!0)}var Vl=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,Gl=/^&([a-z][a-z0-9]{1,31});/i;function Yl(e,t){var u,l,o,s=e.pos,f=e.posMax;if(e.src.charCodeAt(s)!==38)return!1;if(s+1<f){if(u=e.src.charCodeAt(s+1),u===35){if(o=e.src.slice(s).match(Vl),o)return t||(l=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),e.pending+=re(l)?le(l):le(65533)),e.pos+=o[0].length,!0}else if(o=e.src.slice(s).match(Gl),o){var h=M(o[1]);if(o[1]!==h)return t||(e.pending+=h),e.pos+=o[0].length,!0}}return t||(e.pending+="&"),e.pos++,!0}var Dn=[["text",fl],["newline",hl],["escape",pl],["backticks",dl],["del",gl],["ins",ml],["mark",vl],["emphasis",xl],["sub",Al],["sup",wl],["links",_l],["footnote_inline",Cl],["footnote_ref",kl],["autolink",Fl],["htmltag",jl],["entity",Yl]];function zr(){this.ruler=new Ce;for(var e=0;e<Dn.length;e++)this.ruler.push(Dn[e][0],Dn[e][1]);this.validateLink=Xl}zr.prototype.skipToken=function(e){var t=this.ruler.getRules(""),u=t.length,l=e.pos,o,s;if((s=e.cacheGet(l))>0){e.pos=s;return}for(o=0;o<u;o++)if(t[o](e,!0)){e.cacheSet(l,e.pos);return}e.pos++,e.cacheSet(l,e.pos)},zr.prototype.tokenize=function(e){for(var t=this.ruler.getRules(""),u=t.length,l=e.posMax,o,s;e.pos<l;){for(s=0;s<u&&(o=t[s](e,!1),!o);s++);if(o){if(e.pos>=l)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},zr.prototype.parse=function(e,t,u,l){var o=new Ke(e,this,t,u,l);this.tokenize(o)};function Xl(e){var t=["vbscript","javascript","file","data"],u=e.trim().toLowerCase();return u=G(u),!(u.indexOf(":")!==-1&&t.indexOf(u.split(":")[0])!==-1)}var Kl={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"]}}},Wl={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},Zl={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"]}}},Jl={default:Kl,full:Wl,commonmark:Zl};function $t(e,t,u){this.src=t,this.env=u,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 He(e,t){typeof e!="string"&&(t=e,e="default"),t&&t.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 zr,this.block=new Cn,this.core=new It,this.renderer=new Le,this.ruler=new Ce,this.options={},this.configure(Jl[e]),this.set(t||{})}He.prototype.set=function(e){X(this.options,e)},He.prototype.configure=function(e){var t=this;if(!e)throw new Error("Wrong `remarkable` preset, check name/content");e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(u){e.components[u].rules&&t[u].ruler.enable(e.components[u].rules,!0)})},He.prototype.use=function(e,t){return e(this,t),this},He.prototype.parse=function(e,t){var u=new $t(this,e,t);return this.core.process(u),u.tokens},He.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},He.prototype.parseInline=function(e,t){var u=new $t(this,e,t);return u.inlineMode=!0,this.core.process(u),u.tokens},He.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var Ql=(e,t)=>{const u="\\",l="$",s=(t||{}).delimiter||l;if(s.length!==1)throw new Error("invalid delimiter");const f=p,h=(y,_)=>f.renderToString(y,{displayMode:_,throwOnError:!1}),m=(y,_,F)=>{let B=!1,T=y.bMarks[_]+y.tShift[_],N=y.eMarks[_];if(T+1>N)return!1;const V=y.src.charAt(T);if(V!==s)return!1;let Q=T;T=y.skipChars(T,V);let ee=T-Q;if(ee!==2)return!1;let ye=_;for(;++ye,!(ye>=F||(T=Q=y.bMarks[ye]+y.tShift[ye],N=y.eMarks[ye],T<N&&y.tShift[ye]<y.blkIndent));)if(y.src.charAt(T)===s&&!(y.tShift[ye]-y.blkIndent>=4)&&(T=y.skipChars(T,V),!(T-Q<ee)&&(T=y.skipSpaces(T),!(T<N)))){B=!0;break}ee=y.tShift[_],y.line=ye+(B?1:0);const Be=y.getLines(_+1,ye,ee,!0).replace(/[ \n]+/g," ").trim();return y.tokens.push({type:"katex",params:null,content:Be,lines:[_,y.line],level:y.level,block:!0}),!0},b=(y,_)=>{const F=y.pos,B=y.posMax;let T=F;if(y.src.charAt(T)!==s)return!1;for(++T;T<B&&y.src.charAt(T)===s;)++T;const N=y.src.slice(F,T);if(N.length>2)return!1;const V=T;let Q=0;for(;T<B;){const ee=y.src.charAt(T);if(ee==="{"&&(T==0||y.src.charAt(T-1)!=u))Q+=1;else if(ee==="}"&&(T==0||y.src.charAt(T-1)!=u)){if(Q-=1,Q<0)return!1}else if(ee===s&&Q===0){const ye=T;let Be=T+1;for(;Be<B&&y.src.charAt(Be)===s;)++Be;if(Be-ye===N.length){if(!_){const Yr=y.src.slice(V,ye).replace(/[ \n]+/g," ").trim();y.push({type:"katex",content:Yr,block:N.length>1,level:y.level})}return y.pos=Be,!0}}T+=1}return _||(y.pending+=N),y.pos+=N.length,!0};e.inline.ruler.push("katex",b,t),e.block.ruler.push("katex",m,t),e.renderer.rules.katex=(y,_)=>h(y[_].content,y[_].block),e.renderer.rules.katex.delimiter=s},mr={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 Ut="https://cdn.jsdelivr.net/npm/";function ea(e,t,u){return e.map(l=>(typeof l=="string"&&(l.startsWith(`${t}/`)?l=`${Ut}${t}@${u}${l.slice(t.length)}`:l.startsWith(`${t}@`)&&(l=`${Ut}${l}`)),l))}function ra(){return{parser:new g,beforeParse:new g,afterParse:new g,htmltag:new g,retransform:new g}}function Ud(e){return e}let En;const na=()=>(En||(En=I(mr.preloadScripts)),En),Sn="katex";var ta={name:Sn,config:mr,transform(e){const t=(l,o)=>{const{katex:s}=window;return s?s.renderToString(l,{displayMode:o,throwOnError:!1}):(na().then(()=>{e.retransform.call()}),l)};let u=()=>{};return e.parser.tap(l=>{l.use(Ql),l.renderer.rules.katex=(o,s)=>(u(),t(o[s].content,o[s].block))}),e.beforeParse.tap((l,o)=>{u=()=>{o.features[Sn]=!0}}),e.afterParse.tap((l,o)=>{const{frontmatter:s}=o;s!=null&&s.markmap&&["extraJs","extraCss"].forEach(f=>{s.markmap[f]&&(s.markmap[f]=ea(s.markmap[f],Sn,mr.versions.katex))})}),{styles:mr.styles,scripts:mr.scripts}}},Fn={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 Bn;const ia=()=>(Bn||(Bn=I(Fn.preloadScripts)),Bn);function ua(e,t){ia().then(()=>{window.Prism.plugins.autoloader.loadLanguages([e],()=>{t.retransform.call()})})}const Ht="prism";var oa={name:Ht,config:Fn,transform(e){let t=()=>{};return e.parser.tap(u=>{u.set({highlight:(l,o)=>{var s;t();const{Prism:f}=window,h=f==null||(s=f.languages)==null?void 0:s[o];return h?f.highlight(l,h,o):(ua(o,e),"")}})}),e.beforeParse.tap((u,l)=>{t=()=>{l.features[Ht]=!0}}),{styles:Fn.styles}}};/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function jt(e){return typeof e>"u"||e===null}function la(e){return typeof e=="object"&&e!==null}function aa(e){return Array.isArray(e)?e:jt(e)?[]:[e]}function sa(e,t){var u,l,o,s;if(t)for(s=Object.keys(t),u=0,l=s.length;u<l;u+=1)o=s[u],e[o]=t[o];return e}function ca(e,t){var u="",l;for(l=0;l<t;l+=1)u+=e;return u}function fa(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var ha=jt,pa=la,da=aa,ga=ca,ma=fa,va=sa,de={isNothing:ha,isObject:pa,toArray:da,repeat:ga,isNegativeZero:ma,extend:va};function Vt(e,t){var u="",l=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(u+='in "'+e.mark.name+'" '),u+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(u+=`

`+e.mark.snippet),l+" "+u):l}function vr(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Vt(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}vr.prototype=Object.create(Error.prototype),vr.prototype.constructor=vr,vr.prototype.toString=function(t){return this.name+": "+Vt(this,t)};var Ae=vr;function Tn(e,t,u,l,o){var s="",f="",h=Math.floor(o/2)-1;return l-t>h&&(s=" ... ",t=l-h+s.length),u-l>h&&(f=" ...",u=l+h-f.length),{str:s+e.slice(t,u).replace(/\t/g,"→")+f,pos:l-t+s.length}}function Mn(e,t){return de.repeat(" ",t-e.length)+e}function xa(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var u=/\r?\n|\r|\0/g,l=[0],o=[],s,f=-1;s=u.exec(e.buffer);)o.push(s.index),l.push(s.index+s[0].length),e.position<=s.index&&f<0&&(f=l.length-2);f<0&&(f=l.length-1);var h="",m,b,y=Math.min(e.line+t.linesAfter,o.length).toString().length,_=t.maxLength-(t.indent+y+3);for(m=1;m<=t.linesBefore&&!(f-m<0);m++)b=Tn(e.buffer,l[f-m],o[f-m],e.position-(l[f]-l[f-m]),_),h=de.repeat(" ",t.indent)+Mn((e.line-m+1).toString(),y)+" | "+b.str+`
`+h;for(b=Tn(e.buffer,l[f],o[f],e.position,_),h+=de.repeat(" ",t.indent)+Mn((e.line+1).toString(),y)+" | "+b.str+`
`,h+=de.repeat("-",t.indent+y+3+b.pos)+`^
`,m=1;m<=t.linesAfter&&!(f+m>=o.length);m++)b=Tn(e.buffer,l[f+m],o[f+m],e.position-(l[f]-l[f+m]),_),h+=de.repeat(" ",t.indent)+Mn((e.line+m+1).toString(),y)+" | "+b.str+`
`;return h.replace(/\n$/,"")}var ya=xa,Aa=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ba=["scalar","sequence","mapping"];function wa(e){var t={};return e!==null&&Object.keys(e).forEach(function(u){e[u].forEach(function(l){t[String(l)]=u})}),t}function _a(e,t){if(t=t||{},Object.keys(t).forEach(function(u){if(Aa.indexOf(u)===-1)throw new Ae('Unknown option "'+u+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(u){return u},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=wa(t.styleAliases||null),ba.indexOf(this.kind)===-1)throw new Ae('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var ve=_a;function Gt(e,t){var u=[];return e[t].forEach(function(l){var o=u.length;u.forEach(function(s,f){s.tag===l.tag&&s.kind===l.kind&&s.multi===l.multi&&(o=f)}),u[o]=l}),u}function Ca(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,u;function l(o){o.multi?(e.multi[o.kind].push(o),e.multi.fallback.push(o)):e[o.kind][o.tag]=e.fallback[o.tag]=o}for(t=0,u=arguments.length;t<u;t+=1)arguments[t].forEach(l);return e}function Rn(e){return this.extend(e)}Rn.prototype.extend=function(t){var u=[],l=[];if(t instanceof ve)l.push(t);else if(Array.isArray(t))l=l.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(u=u.concat(t.implicit)),t.explicit&&(l=l.concat(t.explicit));else throw new Ae("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");u.forEach(function(s){if(!(s instanceof ve))throw new Ae("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Ae("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Ae("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),l.forEach(function(s){if(!(s instanceof ve))throw new Ae("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var o=Object.create(Rn.prototype);return o.implicit=(this.implicit||[]).concat(u),o.explicit=(this.explicit||[]).concat(l),o.compiledImplicit=Gt(o,"implicit"),o.compiledExplicit=Gt(o,"explicit"),o.compiledTypeMap=Ca(o.compiledImplicit,o.compiledExplicit),o};var Yt=Rn,Xt=new ve("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Kt=new ve("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Wt=new ve("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Zt=new Yt({explicit:[Xt,Kt,Wt]});function ka(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function Da(){return null}function Ea(e){return e===null}var Jt=new ve("tag:yaml.org,2002:null",{kind:"scalar",resolve:ka,construct:Da,predicate:Ea,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Sa(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function Fa(e){return e==="true"||e==="True"||e==="TRUE"}function Ba(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Qt=new ve("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Sa,construct:Fa,predicate:Ba,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Ta(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Ma(e){return 48<=e&&e<=55}function Ra(e){return 48<=e&&e<=57}function Ia(e){if(e===null)return!1;var t=e.length,u=0,l=!1,o;if(!t)return!1;if(o=e[u],(o==="-"||o==="+")&&(o=e[++u]),o==="0"){if(u+1===t)return!0;if(o=e[++u],o==="b"){for(u++;u<t;u++)if(o=e[u],o!=="_"){if(o!=="0"&&o!=="1")return!1;l=!0}return l&&o!=="_"}if(o==="x"){for(u++;u<t;u++)if(o=e[u],o!=="_"){if(!Ta(e.charCodeAt(u)))return!1;l=!0}return l&&o!=="_"}if(o==="o"){for(u++;u<t;u++)if(o=e[u],o!=="_"){if(!Ma(e.charCodeAt(u)))return!1;l=!0}return l&&o!=="_"}}if(o==="_")return!1;for(;u<t;u++)if(o=e[u],o!=="_"){if(!Ra(e.charCodeAt(u)))return!1;l=!0}return!(!l||o==="_")}function Na(e){var t=e,u=1,l;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),l=t[0],(l==="-"||l==="+")&&(l==="-"&&(u=-1),t=t.slice(1),l=t[0]),t==="0")return 0;if(l==="0"){if(t[1]==="b")return u*parseInt(t.slice(2),2);if(t[1]==="x")return u*parseInt(t.slice(2),16);if(t[1]==="o")return u*parseInt(t.slice(2),8)}return u*parseInt(t,10)}function qa(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!de.isNegativeZero(e)}var ei=new ve("tag:yaml.org,2002:int",{kind:"scalar",resolve:Ia,construct:Na,predicate:qa,represent:{binary:function(e){return e>=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"]}}),Oa=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function La(e){return!(e===null||!Oa.test(e)||e[e.length-1]==="_")}function Pa(e){var t,u;return t=e.replace(/_/g,"").toLowerCase(),u=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?u===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:u*parseFloat(t,10)}var za=/^[-+]?[0-9]+e/;function $a(e,t){var u;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(de.isNegativeZero(e))return"-0.0";return u=e.toString(10),za.test(u)?u.replace("e",".e"):u}function Ua(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||de.isNegativeZero(e))}var ri=new ve("tag:yaml.org,2002:float",{kind:"scalar",resolve:La,construct:Pa,predicate:Ua,represent:$a,defaultStyle:"lowercase"}),ni=Zt.extend({implicit:[Jt,Qt,ei,ri]}),ti=ni,ii=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ui=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 Ha(e){return e===null?!1:ii.exec(e)!==null||ui.exec(e)!==null}function ja(e){var t,u,l,o,s,f,h,m=0,b=null,y,_,F;if(t=ii.exec(e),t===null&&(t=ui.exec(e)),t===null)throw new Error("Date resolve error");if(u=+t[1],l=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(u,l,o));if(s=+t[4],f=+t[5],h=+t[6],t[7]){for(m=t[7].slice(0,3);m.length<3;)m+="0";m=+m}return t[9]&&(y=+t[10],_=+(t[11]||0),b=(y*60+_)*6e4,t[9]==="-"&&(b=-b)),F=new Date(Date.UTC(u,l,o,s,f,h,m)),b&&F.setTime(F.getTime()-b),F}function Va(e){return e.toISOString()}var oi=new ve("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Ha,construct:ja,instanceOf:Date,represent:Va});function Ga(e){return e==="<<"||e===null}var li=new ve("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Ga}),In=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function Ya(e){if(e===null)return!1;var t,u,l=0,o=e.length,s=In;for(u=0;u<o;u++)if(t=s.indexOf(e.charAt(u)),!(t>64)){if(t<0)return!1;l+=6}return l%8===0}function Xa(e){var t,u,l=e.replace(/[\r\n=]/g,""),o=l.length,s=In,f=0,h=[];for(t=0;t<o;t++)t%4===0&&t&&(h.push(f>>16&255),h.push(f>>8&255),h.push(f&255)),f=f<<6|s.indexOf(l.charAt(t));return u=o%4*6,u===0?(h.push(f>>16&255),h.push(f>>8&255),h.push(f&255)):u===18?(h.push(f>>10&255),h.push(f>>2&255)):u===12&&h.push(f>>4&255),new Uint8Array(h)}function Ka(e){var t="",u=0,l,o,s=e.length,f=In;for(l=0;l<s;l++)l%3===0&&l&&(t+=f[u>>18&63],t+=f[u>>12&63],t+=f[u>>6&63],t+=f[u&63]),u=(u<<8)+e[l];return o=s%3,o===0?(t+=f[u>>18&63],t+=f[u>>12&63],t+=f[u>>6&63],t+=f[u&63]):o===2?(t+=f[u>>10&63],t+=f[u>>4&63],t+=f[u<<2&63],t+=f[64]):o===1&&(t+=f[u>>2&63],t+=f[u<<4&63],t+=f[64],t+=f[64]),t}function Wa(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var ai=new ve("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Ya,construct:Xa,predicate:Wa,represent:Ka}),Za=Object.prototype.hasOwnProperty,Ja=Object.prototype.toString;function Qa(e){if(e===null)return!0;var t=[],u,l,o,s,f,h=e;for(u=0,l=h.length;u<l;u+=1){if(o=h[u],f=!1,Ja.call(o)!=="[object Object]")return!1;for(s in o)if(Za.call(o,s))if(!f)f=!0;else return!1;if(!f)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function es(e){return e!==null?e:[]}var si=new ve("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Qa,construct:es}),rs=Object.prototype.toString;function ns(e){if(e===null)return!0;var t,u,l,o,s,f=e;for(s=new Array(f.length),t=0,u=f.length;t<u;t+=1){if(l=f[t],rs.call(l)!=="[object Object]"||(o=Object.keys(l),o.length!==1))return!1;s[t]=[o[0],l[o[0]]]}return!0}function ts(e){if(e===null)return[];var t,u,l,o,s,f=e;for(s=new Array(f.length),t=0,u=f.length;t<u;t+=1)l=f[t],o=Object.keys(l),s[t]=[o[0],l[o[0]]];return s}var ci=new ve("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ns,construct:ts}),is=Object.prototype.hasOwnProperty;function us(e){if(e===null)return!0;var t,u=e;for(t in u)if(is.call(u,t)&&u[t]!==null)return!1;return!0}function os(e){return e!==null?e:{}}var fi=new ve("tag:yaml.org,2002:set",{kind:"mapping",resolve:us,construct:os}),Nn=ti.extend({implicit:[oi,li],explicit:[ai,si,ci,fi]}),je=Object.prototype.hasOwnProperty,$r=1,hi=2,pi=3,Ur=4,qn=1,ls=2,di=3,as=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ss=/[\x85\u2028\u2029]/,cs=/[,\[\]\{\}]/,gi=/^(?:!|!!|![a-z\-]+!)$/i,mi=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function vi(e){return Object.prototype.toString.call(e)}function Ie(e){return e===10||e===13}function Ze(e){return e===9||e===32}function be(e){return e===9||e===32||e===10||e===13}function ir(e){return e===44||e===91||e===93||e===123||e===125}function fs(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function hs(e){return e===120?2:e===117?4:e===85?8:0}function ps(e){return 48<=e&&e<=57?e-48:-1}function xi(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?"	":e===110?`
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function ds(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}for(var yi=new Array(256),Ai=new Array(256),ur=0;ur<256;ur++)yi[ur]=xi(ur)?1:0,Ai[ur]=xi(ur);function gs(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Nn,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.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 bi(e,t){var u={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return u.snippet=ya(u),new Ae(t,u)}function H(e,t){throw bi(e,t)}function Hr(e,t){e.onWarning&&e.onWarning.call(null,bi(e,t))}var wi={YAML:function(t,u,l){var o,s,f;t.version!==null&&H(t,"duplication of %YAML directive"),l.length!==1&&H(t,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(l[0]),o===null&&H(t,"ill-formed argument of the YAML directive"),s=parseInt(o[1],10),f=parseInt(o[2],10),s!==1&&H(t,"unacceptable YAML version of the document"),t.version=l[0],t.checkLineBreaks=f<2,f!==1&&f!==2&&Hr(t,"unsupported YAML version of the document")},TAG:function(t,u,l){var o,s;l.length!==2&&H(t,"TAG directive accepts exactly two arguments"),o=l[0],s=l[1],gi.test(o)||H(t,"ill-formed tag handle (first argument) of the TAG directive"),je.call(t.tagMap,o)&&H(t,'there is a previously declared suffix for "'+o+'" tag handle'),mi.test(s)||H(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{H(t,"tag prefix is malformed: "+s)}t.tagMap[o]=s}};function Ve(e,t,u,l){var o,s,f,h;if(t<u){if(h=e.input.slice(t,u),l)for(o=0,s=h.length;o<s;o+=1)f=h.charCodeAt(o),f===9||32<=f&&f<=1114111||H(e,"expected valid JSON character");else as.test(h)&&H(e,"the stream contains non-printable characters");e.result+=h}}function _i(e,t,u,l){var o,s,f,h;for(de.isObject(u)||H(e,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(u),f=0,h=o.length;f<h;f+=1)s=o[f],je.call(t,s)||(t[s]=u[s],l[s]=!0)}function or(e,t,u,l,o,s,f,h,m){var b,y;if(Array.isArray(o))for(o=Array.prototype.slice.call(o),b=0,y=o.length;b<y;b+=1)Array.isArray(o[b])&&H(e,"nested arrays are not supported inside keys"),typeof o=="object"&&vi(o[b])==="[object Object]"&&(o[b]="[object Object]");if(typeof o=="object"&&vi(o)==="[object Object]"&&(o="[object Object]"),o=String(o),t===null&&(t={}),l==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(b=0,y=s.length;b<y;b+=1)_i(e,t,s[b],u);else _i(e,t,s,u);else!e.json&&!je.call(u,o)&&je.call(t,o)&&(e.line=f||e.line,e.lineStart=h||e.lineStart,e.position=m||e.position,H(e,"duplicated mapping key")),o==="__proto__"?Object.defineProperty(t,o,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[o]=s,delete u[o];return t}function On(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):H(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function pe(e,t,u){for(var l=0,o=e.input.charCodeAt(e.position);o!==0;){for(;Ze(o);)o===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),o=e.input.charCodeAt(++e.position);if(t&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(Ie(o))for(On(e),o=e.input.charCodeAt(e.position),l++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return u!==-1&&l!==0&&e.lineIndent<u&&Hr(e,"deficient indentation"),l}function jr(e){var t=e.position,u;return u=e.input.charCodeAt(t),!!((u===45||u===46)&&u===e.input.charCodeAt(t+1)&&u===e.input.charCodeAt(t+2)&&(t+=3,u=e.input.charCodeAt(t),u===0||be(u)))}function Ln(e,t){t===1?e.result+=" ":t>1&&(e.result+=de.repeat(`
`,t-1))}function ms(e,t,u){var l,o,s,f,h,m,b,y,_=e.kind,F=e.result,B;if(B=e.input.charCodeAt(e.position),be(B)||ir(B)||B===35||B===38||B===42||B===33||B===124||B===62||B===39||B===34||B===37||B===64||B===96||(B===63||B===45)&&(o=e.input.charCodeAt(e.position+1),be(o)||u&&ir(o)))return!1;for(e.kind="scalar",e.result="",s=f=e.position,h=!1;B!==0;){if(B===58){if(o=e.input.charCodeAt(e.position+1),be(o)||u&&ir(o))break}else if(B===35){if(l=e.input.charCodeAt(e.position-1),be(l))break}else{if(e.position===e.lineStart&&jr(e)||u&&ir(B))break;if(Ie(B))if(m=e.line,b=e.lineStart,y=e.lineIndent,pe(e,!1,-1),e.lineIndent>=t){h=!0,B=e.input.charCodeAt(e.position);continue}else{e.position=f,e.line=m,e.lineStart=b,e.lineIndent=y;break}}h&&(Ve(e,s,f,!1),Ln(e,e.line-m),s=f=e.position,h=!1),Ze(B)||(f=e.position+1),B=e.input.charCodeAt(++e.position)}return Ve(e,s,f,!1),e.result?!0:(e.kind=_,e.result=F,!1)}function vs(e,t){var u,l,o;if(u=e.input.charCodeAt(e.position),u!==39)return!1;for(e.kind="scalar",e.result="",e.position++,l=o=e.position;(u=e.input.charCodeAt(e.position))!==0;)if(u===39)if(Ve(e,l,e.position,!0),u=e.input.charCodeAt(++e.position),u===39)l=e.position,e.position++,o=e.position;else return!0;else Ie(u)?(Ve(e,l,o,!0),Ln(e,pe(e,!1,t)),l=o=e.position):e.position===e.lineStart&&jr(e)?H(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);H(e,"unexpected end of the stream within a single quoted scalar")}function xs(e,t){var u,l,o,s,f,h;if(h=e.input.charCodeAt(e.position),h!==34)return!1;for(e.kind="scalar",e.result="",e.position++,u=l=e.position;(h=e.input.charCodeAt(e.position))!==0;){if(h===34)return Ve(e,u,e.position,!0),e.position++,!0;if(h===92){if(Ve(e,u,e.position,!0),h=e.input.charCodeAt(++e.position),Ie(h))pe(e,!1,t);else if(h<256&&yi[h])e.result+=Ai[h],e.position++;else if((f=hs(h))>0){for(o=f,s=0;o>0;o--)h=e.input.charCodeAt(++e.position),(f=fs(h))>=0?s=(s<<4)+f:H(e,"expected hexadecimal character");e.result+=ds(s),e.position++}else H(e,"unknown escape sequence");u=l=e.position}else Ie(h)?(Ve(e,u,l,!0),Ln(e,pe(e,!1,t)),u=l=e.position):e.position===e.lineStart&&jr(e)?H(e,"unexpected end of the document within a double quoted scalar"):(e.position++,l=e.position)}H(e,"unexpected end of the stream within a double quoted scalar")}function ys(e,t){var u=!0,l,o,s,f=e.tag,h,m=e.anchor,b,y,_,F,B,T=Object.create(null),N,V,Q,ee;if(ee=e.input.charCodeAt(e.position),ee===91)y=93,B=!1,h=[];else if(ee===123)y=125,B=!0,h={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),ee=e.input.charCodeAt(++e.position);ee!==0;){if(pe(e,!0,t),ee=e.input.charCodeAt(e.position),ee===y)return e.position++,e.tag=f,e.anchor=m,e.kind=B?"mapping":"sequence",e.result=h,!0;u?ee===44&&H(e,"expected the node content, but found ','"):H(e,"missed comma between flow collection entries"),V=N=Q=null,_=F=!1,ee===63&&(b=e.input.charCodeAt(e.position+1),be(b)&&(_=F=!0,e.position++,pe(e,!0,t))),l=e.line,o=e.lineStart,s=e.position,lr(e,t,$r,!1,!0),V=e.tag,N=e.result,pe(e,!0,t),ee=e.input.charCodeAt(e.position),(F||e.line===l)&&ee===58&&(_=!0,ee=e.input.charCodeAt(++e.position),pe(e,!0,t),lr(e,t,$r,!1,!0),Q=e.result),B?or(e,h,T,V,N,Q,l,o,s):_?h.push(or(e,null,T,V,N,Q,l,o,s)):h.push(N),pe(e,!0,t),ee=e.input.charCodeAt(e.position),ee===44?(u=!0,ee=e.input.charCodeAt(++e.position)):u=!1}H(e,"unexpected end of the stream within a flow collection")}function As(e,t){var u,l,o=qn,s=!1,f=!1,h=t,m=0,b=!1,y,_;if(_=e.input.charCodeAt(e.position),_===124)l=!1;else if(_===62)l=!0;else return!1;for(e.kind="scalar",e.result="";_!==0;)if(_=e.input.charCodeAt(++e.position),_===43||_===45)qn===o?o=_===43?di:ls:H(e,"repeat of a chomping mode identifier");else if((y=ps(_))>=0)y===0?H(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):f?H(e,"repeat of an indentation width identifier"):(h=t+y-1,f=!0);else break;if(Ze(_)){do _=e.input.charCodeAt(++e.position);while(Ze(_));if(_===35)do _=e.input.charCodeAt(++e.position);while(!Ie(_)&&_!==0)}for(;_!==0;){for(On(e),e.lineIndent=0,_=e.input.charCodeAt(e.position);(!f||e.lineIndent<h)&&_===32;)e.lineIndent++,_=e.input.charCodeAt(++e.position);if(!f&&e.lineIndent>h&&(h=e.lineIndent),Ie(_)){m++;continue}if(e.lineIndent<h){o===di?e.result+=de.repeat(`
`,s?1+m:m):o===qn&&s&&(e.result+=`
`);break}for(l?Ze(_)?(b=!0,e.result+=de.repeat(`
`,s?1+m:m)):b?(b=!1,e.result+=de.repeat(`
`,m+1)):m===0?s&&(e.result+=" "):e.result+=de.repeat(`
`,m):e.result+=de.repeat(`
`,s?1+m:m),s=!0,f=!0,m=0,u=e.position;!Ie(_)&&_!==0;)_=e.input.charCodeAt(++e.position);Ve(e,u,e.position,!1)}return!0}function Ci(e,t){var u,l=e.tag,o=e.anchor,s=[],f,h=!1,m;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),m=e.input.charCodeAt(e.position);m!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,H(e,"tab characters must not be used in indentation")),!(m!==45||(f=e.input.charCodeAt(e.position+1),!be(f))));){if(h=!0,e.position++,pe(e,!0,-1)&&e.lineIndent<=t){s.push(null),m=e.input.charCodeAt(e.position);continue}if(u=e.line,lr(e,t,pi,!1,!0),s.push(e.result),pe(e,!0,-1),m=e.input.charCodeAt(e.position),(e.line===u||e.lineIndent>t)&&m!==0)H(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return h?(e.tag=l,e.anchor=o,e.kind="sequence",e.result=s,!0):!1}function bs(e,t,u){var l,o,s,f,h,m,b=e.tag,y=e.anchor,_={},F=Object.create(null),B=null,T=null,N=null,V=!1,Q=!1,ee;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=_),ee=e.input.charCodeAt(e.position);ee!==0;){if(!V&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,H(e,"tab characters must not be used in indentation")),l=e.input.charCodeAt(e.position+1),s=e.line,(ee===63||ee===58)&&be(l))ee===63?(V&&(or(e,_,F,B,T,null,f,h,m),B=T=N=null),Q=!0,V=!0,o=!0):V?(V=!1,o=!0):H(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,ee=l;else{if(f=e.line,h=e.lineStart,m=e.position,!lr(e,u,hi,!1,!0))break;if(e.line===s){for(ee=e.input.charCodeAt(e.position);Ze(ee);)ee=e.input.charCodeAt(++e.position);if(ee===58)ee=e.input.charCodeAt(++e.position),be(ee)||H(e,"a whitespace character is expected after the key-value separator within a block mapping"),V&&(or(e,_,F,B,T,null,f,h,m),B=T=N=null),Q=!0,V=!1,o=!1,B=e.tag,T=e.result;else if(Q)H(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=b,e.anchor=y,!0}else if(Q)H(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=b,e.anchor=y,!0}if((e.line===s||e.lineIndent>t)&&(V&&(f=e.line,h=e.lineStart,m=e.position),lr(e,t,Ur,!0,o)&&(V?T=e.result:N=e.result),V||(or(e,_,F,B,T,N,f,h,m),B=T=N=null),pe(e,!0,-1),ee=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&ee!==0)H(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return V&&or(e,_,F,B,T,null,f,h,m),Q&&(e.tag=b,e.anchor=y,e.kind="mapping",e.result=_),Q}function ws(e){var t,u=!1,l=!1,o,s,f;if(f=e.input.charCodeAt(e.position),f!==33)return!1;if(e.tag!==null&&H(e,"duplication of a tag property"),f=e.input.charCodeAt(++e.position),f===60?(u=!0,f=e.input.charCodeAt(++e.position)):f===33?(l=!0,o="!!",f=e.input.charCodeAt(++e.position)):o="!",t=e.position,u){do f=e.input.charCodeAt(++e.position);while(f!==0&&f!==62);e.position<e.length?(s=e.input.slice(t,e.position),f=e.input.charCodeAt(++e.position)):H(e,"unexpected end of the stream within a verbatim tag")}else{for(;f!==0&&!be(f);)f===33&&(l?H(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(t-1,e.position+1),gi.test(o)||H(e,"named tag handle cannot contain such characters"),l=!0,t=e.position+1)),f=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),cs.test(s)&&H(e,"tag suffix cannot contain flow indicator characters")}s&&!mi.test(s)&&H(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{H(e,"tag name is malformed: "+s)}return u?e.tag=s:je.call(e.tagMap,o)?e.tag=e.tagMap[o]+s:o==="!"?e.tag="!"+s:o==="!!"?e.tag="tag:yaml.org,2002:"+s:H(e,'undeclared tag handle "'+o+'"'),!0}function _s(e){var t,u;if(u=e.input.charCodeAt(e.position),u!==38)return!1;for(e.anchor!==null&&H(e,"duplication of an anchor property"),u=e.input.charCodeAt(++e.position),t=e.position;u!==0&&!be(u)&&!ir(u);)u=e.input.charCodeAt(++e.position);return e.position===t&&H(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Cs(e){var t,u,l;if(l=e.input.charCodeAt(e.position),l!==42)return!1;for(l=e.input.charCodeAt(++e.position),t=e.position;l!==0&&!be(l)&&!ir(l);)l=e.input.charCodeAt(++e.position);return e.position===t&&H(e,"name of an alias node must contain at least one character"),u=e.input.slice(t,e.position),je.call(e.anchorMap,u)||H(e,'unidentified alias "'+u+'"'),e.result=e.anchorMap[u],pe(e,!0,-1),!0}function lr(e,t,u,l,o){var s,f,h,m=1,b=!1,y=!1,_,F,B,T,N,V;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=f=h=Ur===u||pi===u,l&&pe(e,!0,-1)&&(b=!0,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)),m===1)for(;ws(e)||_s(e);)pe(e,!0,-1)?(b=!0,h=s,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)):h=!1;if(h&&(h=b||o),(m===1||Ur===u)&&($r===u||hi===u?N=t:N=t+1,V=e.position-e.lineStart,m===1?h&&(Ci(e,V)||bs(e,V,N))||ys(e,N)?y=!0:(f&&As(e,N)||vs(e,N)||xs(e,N)?y=!0:Cs(e)?(y=!0,(e.tag!==null||e.anchor!==null)&&H(e,"alias node should not have any properties")):ms(e,N,$r===u)&&(y=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):m===0&&(y=h&&Ci(e,V))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&H(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),_=0,F=e.implicitTypes.length;_<F;_+=1)if(T=e.implicitTypes[_],T.resolve(e.result)){e.result=T.construct(e.result),e.tag=T.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(je.call(e.typeMap[e.kind||"fallback"],e.tag))T=e.typeMap[e.kind||"fallback"][e.tag];else for(T=null,B=e.typeMap.multi[e.kind||"fallback"],_=0,F=B.length;_<F;_+=1)if(e.tag.slice(0,B[_].tag.length)===B[_].tag){T=B[_];break}T||H(e,"unknown tag !<"+e.tag+">"),e.result!==null&&T.kind!==e.kind&&H(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+T.kind+'", not "'+e.kind+'"'),T.resolve(e.result,e.tag)?(e.result=T.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):H(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||y}function ks(e){var t=e.position,u,l,o,s=!1,f;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(f=e.input.charCodeAt(e.position))!==0&&(pe(e,!0,-1),f=e.input.charCodeAt(e.position),!(e.lineIndent>0||f!==37));){for(s=!0,f=e.input.charCodeAt(++e.position),u=e.position;f!==0&&!be(f);)f=e.input.charCodeAt(++e.position);for(l=e.input.slice(u,e.position),o=[],l.length<1&&H(e,"directive name must not be less than one character in length");f!==0;){for(;Ze(f);)f=e.input.charCodeAt(++e.position);if(f===35){do f=e.input.charCodeAt(++e.position);while(f!==0&&!Ie(f));break}if(Ie(f))break;for(u=e.position;f!==0&&!be(f);)f=e.input.charCodeAt(++e.position);o.push(e.input.slice(u,e.position))}f!==0&&On(e),je.call(wi,l)?wi[l](e,l,o):Hr(e,'unknown document directive "'+l+'"')}if(pe(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,pe(e,!0,-1)):s&&H(e,"directives end mark is expected"),lr(e,e.lineIndent-1,Ur,!1,!0),pe(e,!0,-1),e.checkLineBreaks&&ss.test(e.input.slice(t,e.position))&&Hr(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&jr(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,pe(e,!0,-1));return}if(e.position<e.length-1)H(e,"end of the stream or a document separator is expected");else return}function ki(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var u=new gs(e,t),l=e.indexOf("\0");for(l!==-1&&(u.position=l,H(u,"null byte is not allowed in input")),u.input+="\0";u.input.charCodeAt(u.position)===32;)u.lineIndent+=1,u.position+=1;for(;u.position<u.length-1;)ks(u);return u.documents}function Ds(e,t,u){t!==null&&typeof t=="object"&&typeof u>"u"&&(u=t,t=null);var l=ki(e,u);if(typeof t!="function")return l;for(var o=0,s=l.length;o<s;o+=1)t(l[o])}function Es(e,t){var u=ki(e,t);if(u.length!==0){if(u.length===1)return u[0];throw new Ae("expected a single document in the stream, but found more")}}var Ss=Ds,Fs=Es,Di={loadAll:Ss,load:Fs},Ei=Object.prototype.toString,Si=Object.prototype.hasOwnProperty,Pn=65279,Bs=9,xr=10,Ts=13,Ms=32,Rs=33,Is=34,zn=35,Ns=37,qs=38,Os=39,Ls=42,Fi=44,Ps=45,Vr=58,zs=61,$s=62,Us=63,Hs=64,Bi=91,Ti=93,js=96,Mi=123,Vs=124,Ri=125,xe={};xe[0]="\\0",xe[7]="\\a",xe[8]="\\b",xe[9]="\\t",xe[10]="\\n",xe[11]="\\v",xe[12]="\\f",xe[13]="\\r",xe[27]="\\e",xe[34]='\\"',xe[92]="\\\\",xe[133]="\\N",xe[160]="\\_",xe[8232]="\\L",xe[8233]="\\P";var Gs=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Ys=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Xs(e,t){var u,l,o,s,f,h,m;if(t===null)return{};for(u={},l=Object.keys(t),o=0,s=l.length;o<s;o+=1)f=l[o],h=String(t[f]),f.slice(0,2)==="!!"&&(f="tag:yaml.org,2002:"+f.slice(2)),m=e.compiledTypeMap.fallback[f],m&&Si.call(m.styleAliases,h)&&(h=m.styleAliases[h]),u[f]=h;return u}function Ks(e){var t,u,l;if(t=e.toString(16).toUpperCase(),e<=255)u="x",l=2;else if(e<=65535)u="u",l=4;else if(e<=4294967295)u="U",l=8;else throw new Ae("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+u+de.repeat("0",l-t.length)+t}var Ws=1,yr=2;function Zs(e){this.schema=e.schema||Nn,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=de.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Xs(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?yr:Ws,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Ii(e,t){for(var u=de.repeat(" ",t),l=0,o=-1,s="",f,h=e.length;l<h;)o=e.indexOf(`
`,l),o===-1?(f=e.slice(l),l=h):(f=e.slice(l,o+1),l=o+1),f.length&&f!==`
`&&(s+=u),s+=f;return s}function $n(e,t){return`
`+de.repeat(" ",e.indent*t)}function Js(e,t){var u,l,o;for(u=0,l=e.implicitTypes.length;u<l;u+=1)if(o=e.implicitTypes[u],o.resolve(t))return!0;return!1}function Gr(e){return e===Ms||e===Bs}function Ar(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Pn||65536<=e&&e<=1114111}function Ni(e){return Ar(e)&&e!==Pn&&e!==Ts&&e!==xr}function qi(e,t,u){var l=Ni(e),o=l&&!Gr(e);return(u?l:l&&e!==Fi&&e!==Bi&&e!==Ti&&e!==Mi&&e!==Ri)&&e!==zn&&!(t===Vr&&!o)||Ni(t)&&!Gr(t)&&e===zn||t===Vr&&o}function Qs(e){return Ar(e)&&e!==Pn&&!Gr(e)&&e!==Ps&&e!==Us&&e!==Vr&&e!==Fi&&e!==Bi&&e!==Ti&&e!==Mi&&e!==Ri&&e!==zn&&e!==qs&&e!==Ls&&e!==Rs&&e!==Vs&&e!==zs&&e!==$s&&e!==Os&&e!==Is&&e!==Ns&&e!==Hs&&e!==js}function ec(e){return!Gr(e)&&e!==Vr}function br(e,t){var u=e.charCodeAt(t),l;return u>=55296&&u<=56319&&t+1<e.length&&(l=e.charCodeAt(t+1),l>=56320&&l<=57343)?(u-55296)*1024+l-56320+65536:u}function Oi(e){var t=/^\n* /;return t.test(e)}var Li=1,Un=2,Pi=3,zi=4,ar=5;function rc(e,t,u,l,o,s,f,h){var m,b=0,y=null,_=!1,F=!1,B=l!==-1,T=-1,N=Qs(br(e,0))&&ec(br(e,e.length-1));if(t||f)for(m=0;m<e.length;b>=65536?m+=2:m++){if(b=br(e,m),!Ar(b))return ar;N=N&&qi(b,y,h),y=b}else{for(m=0;m<e.length;b>=65536?m+=2:m++){if(b=br(e,m),b===xr)_=!0,B&&(F=F||m-T-1>l&&e[T+1]!==" ",T=m);else if(!Ar(b))return ar;N=N&&qi(b,y,h),y=b}F=F||B&&m-T-1>l&&e[T+1]!==" "}return!_&&!F?N&&!f&&!o(e)?Li:s===yr?ar:Un:u>9&&Oi(e)?ar:f?s===yr?ar:Un:F?zi:Pi}function nc(e,t,u,l,o){e.dump=function(){if(t.length===0)return e.quotingType===yr?'""':"''";if(!e.noCompatMode&&(Gs.indexOf(t)!==-1||Ys.test(t)))return e.quotingType===yr?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,u),f=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),h=l||e.flowLevel>-1&&u>=e.flowLevel;function m(b){return Js(e,b)}switch(rc(t,h,e.indent,f,m,e.quotingType,e.forceQuotes&&!l,o)){case Li:return t;case Un:return"'"+t.replace(/'/g,"''")+"'";case Pi:return"|"+$i(t,e.indent)+Ui(Ii(t,s));case zi:return">"+$i(t,e.indent)+Ui(Ii(tc(t,f),s));case ar:return'"'+ic(t)+'"';default:throw new Ae("impossible error: invalid scalar style")}}()}function $i(e,t){var u=Oi(e)?String(t):"",l=e[e.length-1]===`
`,o=l&&(e[e.length-2]===`
`||e===`
`),s=o?"+":l?"":"-";return u+s+`
`}function Ui(e){return e[e.length-1]===`
`?e.slice(0,-1):e}function tc(e,t){for(var u=/(\n+)([^\n]*)/g,l=function(){var b=e.indexOf(`
`);return b=b!==-1?b:e.length,u.lastIndex=b,Hi(e.slice(0,b),t)}(),o=e[0]===`
`||e[0]===" ",s,f;f=u.exec(e);){var h=f[1],m=f[2];s=m[0]===" ",l+=h+(!o&&!s&&m!==""?`
`:"")+Hi(m,t),o=s}return l}function Hi(e,t){if(e===""||e[0]===" ")return e;for(var u=/ [^ ]/g,l,o=0,s,f=0,h=0,m="";l=u.exec(e);)h=l.index,h-o>t&&(s=f>o?f:h,m+=`
`+e.slice(o,s),o=s+1),f=h;return m+=`
`,e.length-o>t&&f>o?m+=e.slice(o,f)+`
`+e.slice(f+1):m+=e.slice(o),m.slice(1)}function ic(e){for(var t="",u=0,l,o=0;o<e.length;u>=65536?o+=2:o++)u=br(e,o),l=xe[u],!l&&Ar(u)?(t+=e[o],u>=65536&&(t+=e[o+1])):t+=l||Ks(u);return t}function uc(e,t,u){var l="",o=e.tag,s,f,h;for(s=0,f=u.length;s<f;s+=1)h=u[s],e.replacer&&(h=e.replacer.call(u,String(s),h)),(Pe(e,t,h,!1,!1)||typeof h>"u"&&Pe(e,t,null,!1,!1))&&(l!==""&&(l+=","+(e.condenseFlow?"":" ")),l+=e.dump);e.tag=o,e.dump="["+l+"]"}function ji(e,t,u,l){var o="",s=e.tag,f,h,m;for(f=0,h=u.length;f<h;f+=1)m=u[f],e.replacer&&(m=e.replacer.call(u,String(f),m)),(Pe(e,t+1,m,!0,!0,!1,!0)||typeof m>"u"&&Pe(e,t+1,null,!0,!0,!1,!0))&&((!l||o!=="")&&(o+=$n(e,t)),e.dump&&xr===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=s,e.dump=o||"[]"}function oc(e,t,u){var l="",o=e.tag,s=Object.keys(u),f,h,m,b,y;for(f=0,h=s.length;f<h;f+=1)y="",l!==""&&(y+=", "),e.condenseFlow&&(y+='"'),m=s[f],b=u[m],e.replacer&&(b=e.replacer.call(u,m,b)),Pe(e,t,m,!1,!1)&&(e.dump.length>1024&&(y+="? "),y+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Pe(e,t,b,!1,!1)&&(y+=e.dump,l+=y));e.tag=o,e.dump="{"+l+"}"}function lc(e,t,u,l){var o="",s=e.tag,f=Object.keys(u),h,m,b,y,_,F;if(e.sortKeys===!0)f.sort();else if(typeof e.sortKeys=="function")f.sort(e.sortKeys);else if(e.sortKeys)throw new Ae("sortKeys must be a boolean or a function");for(h=0,m=f.length;h<m;h+=1)F="",(!l||o!=="")&&(F+=$n(e,t)),b=f[h],y=u[b],e.replacer&&(y=e.replacer.call(u,b,y)),Pe(e,t+1,b,!0,!0,!0)&&(_=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,_&&(e.dump&&xr===e.dump.charCodeAt(0)?F+="?":F+="? "),F+=e.dump,_&&(F+=$n(e,t)),Pe(e,t+1,y,!0,_)&&(e.dump&&xr===e.dump.charCodeAt(0)?F+=":":F+=": ",F+=e.dump,o+=F));e.tag=s,e.dump=o||"{}"}function Vi(e,t,u){var l,o,s,f,h,m;for(o=u?e.explicitTypes:e.implicitTypes,s=0,f=o.length;s<f;s+=1)if(h=o[s],(h.instanceOf||h.predicate)&&(!h.instanceOf||typeof t=="object"&&t instanceof h.instanceOf)&&(!h.predicate||h.predicate(t))){if(u?h.multi&&h.representName?e.tag=h.representName(t):e.tag=h.tag:e.tag="?",h.represent){if(m=e.styleMap[h.tag]||h.defaultStyle,Ei.call(h.represent)==="[object Function]")l=h.represent(t,m);else if(Si.call(h.represent,m))l=h.represent[m](t,m);else throw new Ae("!<"+h.tag+'> tag resolver accepts not "'+m+'" style');e.dump=l}return!0}return!1}function Pe(e,t,u,l,o,s,f){e.tag=null,e.dump=u,Vi(e,u,!1)||Vi(e,u,!0);var h=Ei.call(e.dump),m=l,b;l&&(l=e.flowLevel<0||e.flowLevel>t);var y=h==="[object Object]"||h==="[object Array]",_,F;if(y&&(_=e.duplicates.indexOf(u),F=_!==-1),(e.tag!==null&&e.tag!=="?"||F||e.indent!==2&&t>0)&&(o=!1),F&&e.usedDuplicates[_])e.dump="*ref_"+_;else{if(y&&F&&!e.usedDuplicates[_]&&(e.usedDuplicates[_]=!0),h==="[object Object]")l&&Object.keys(e.dump).length!==0?(lc(e,t,e.dump,o),F&&(e.dump="&ref_"+_+e.dump)):(oc(e,t,e.dump),F&&(e.dump="&ref_"+_+" "+e.dump));else if(h==="[object Array]")l&&e.dump.length!==0?(e.noArrayIndent&&!f&&t>0?ji(e,t-1,e.dump,o):ji(e,t,e.dump,o),F&&(e.dump="&ref_"+_+e.dump)):(uc(e,t,e.dump),F&&(e.dump="&ref_"+_+" "+e.dump));else if(h==="[object String]")e.tag!=="?"&&nc(e,e.dump,t,s,m);else{if(h==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Ae("unacceptable kind of an object to dump "+h)}e.tag!==null&&e.tag!=="?"&&(b=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?b="!"+b:b.slice(0,18)==="tag:yaml.org,2002:"?b="!!"+b.slice(18):b="!<"+b+">",e.dump=b+" "+e.dump)}return!0}function ac(e,t){var u=[],l=[],o,s;for(Hn(e,u,l),o=0,s=l.length;o<s;o+=1)t.duplicates.push(u[l[o]]);t.usedDuplicates=new Array(s)}function Hn(e,t,u){var l,o,s;if(e!==null&&typeof e=="object")if(o=t.indexOf(e),o!==-1)u.indexOf(o)===-1&&u.push(o);else if(t.push(e),Array.isArray(e))for(o=0,s=e.length;o<s;o+=1)Hn(e[o],t,u);else for(l=Object.keys(e),o=0,s=l.length;o<s;o+=1)Hn(e[l[o]],t,u)}function sc(e,t){t=t||{};var u=new Zs(t);u.noRefs||ac(e,u);var l=e;return u.replacer&&(l=u.replacer.call({"":l},"",l)),Pe(u,0,l,!0,!0)?u.dump+`
`:""}var cc=sc,fc={dump:cc};function jn(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var hc=ve,pc=Yt,dc=Zt,gc=ni,mc=ti,vc=Nn,xc=Di.load,yc=Di.loadAll,Ac=fc.dump,bc=Ae,wc={binary:ai,float:ri,map:Wt,null:Jt,pairs:ci,set:fi,timestamp:oi,bool:Qt,int:ei,merge:li,omap:si,seq:Kt,str:Xt},_c=jn("safeLoad","load"),Cc=jn("safeLoadAll","loadAll"),kc=jn("safeDump","dump"),Dc={Type:hc,Schema:pc,FAILSAFE_SCHEMA:dc,JSON_SCHEMA:gc,CORE_SCHEMA:mc,DEFAULT_SCHEMA:vc,load:xc,loadAll:yc,dump:Ac,YAMLException:bc,types:wc,safeLoad:_c,safeLoadAll:Cc,safeDump:kc},Ec={name:"frontmatter",transform(e){return e.beforeParse.tap((t,u)=>{const l=t.parse;t.parse=ue(l,{before(o){const[s]=o.args;if(!s.startsWith(`---
`))return;const f=s.indexOf(`
---
`);if(f<0)return;const h=s.slice(4,f);let m;try{var b;m=Dc.load(h),(b=m)!=null&&b.markmap&&(m.markmap=Sc(m.markmap))}catch{return}u.frontmatter=m;const y=f+5;o.args[0]=s.slice(y)},after(){t.parse=l}})}),{}}};function Sc(e){if(e)return["color","extraJs","extraCss"].forEach(t=>{e[t]!=null&&(e[t]=Fc(e[t]))}),["duration","maxWidth","initialExpandLevel"].forEach(t=>{e[t]!=null&&(e[t]=Bc(e[t]))}),e}function Fc(e){var t;let u;return typeof e=="string"?u=[e]:Array.isArray(e)&&(u=e.filter(l=>l&&typeof l=="string")),(t=u)!=null&&t.length?u:void 0}function Bc(e){if(!isNaN(+e))return+e}const Gi=[Ec,ta,oa];function Yi(e){if(e.type==="heading")e.children=e.children.filter(o=>o.type!=="paragraph");else if(e.type==="list_item"){var t;e.children=e.children.filter(o=>["paragraph","fence"].includes(o.type)?(e.content||(e.content=o.content,e.payload=d({},e.payload,o.payload)),!1):!0),((t=e.payload)==null?void 0:t.index)!=null&&(e.content=`${e.payload.index}. ${e.content}`)}else if(e.type==="ordered_list"){var u,l;let o=(u=(l=e.payload)==null?void 0:l.startIndex)!=null?u:1;e.children.forEach(s=>{s.type==="list_item"&&(s.payload=d({},s.payload,{index:o}),o+=1)})}e.children.length===0?delete e.children:(e.children.forEach(o=>Yi(o)),e.children.length===1&&!e.children[0].content&&(e.children=e.children[0].children))}function Xi(e,t=0){var u;e.depth=t,(u=e.children)==null||u.forEach(l=>{Xi(l,t+1)})}class Tc{constructor(t=Gi){this.assetsMap={},this.plugins=t,this.hooks=ra();const u={};for(const{name:o,transform:s}of t)u[o]=s(this.hooks);this.assetsMap=u;const l=new He("full",{html:!0,breaks:!0,maxNesting:1/0});l.renderer.rules.htmltag=ue(l.renderer.rules.htmltag,{after:o=>{this.hooks.htmltag.call(o)}}),this.md=l,this.hooks.parser.call(l)}buildTree(t){const{md:u}=this,l={type:"root",depth:0,content:"",children:[],payload:{}},o=[l];let s=0;for(const m of t){let b=o[o.length-1];if(m.type.endsWith("_open")){const y=m.type.slice(0,-5),_={};if(m.lines&&(_.lines=m.lines),y==="heading")for(s=m.hLevel;((f=b)==null?void 0:f.depth)>=s;){var f;o.pop(),b=o[o.length-1]}else{var h;s=Math.max(s,((h=b)==null?void 0:h.depth)||0)+1,y==="ordered_list"&&(_.startIndex=m.order)}const F={type:y,depth:s,payload:_,content:"",children:[]};b.children.push(F),o.push(F)}else if(b){if(m.type===`${b.type}_close`)b.type==="heading"?s=b.depth:(o.pop(),s=0);else if(m.type==="inline"){const y=this.hooks.htmltag.tap(F=>{const B=F.result.match(/^<!--([\s\S]*?)-->$/),T=B==null?void 0:B[1].trim().split(" ");T[0]==="fold"&&(b.payload.fold=["all","recursively"].includes(T[1])?2:1,F.result="")}),_=u.renderer.render([m],u.options,{});y(),b.content=`${b.content||""}${_}`}else if(m.type==="fence"){let y=u.renderer.render([m],u.options,{});const _=y.match(/<code( class="[^"]*")>/);_&&(y=y.replace("<pre>",`<pre${_[1]}>`)),b.children.push({type:m.type,depth:s+1,content:y,children:[]})}}else continue}return l}transform(t){var u;const l={features:{}};this.hooks.beforeParse.call(this.md,l);const o=this.md.parse(t,{});this.hooks.afterParse.call(this.md,l);let s=this.buildTree(o);return Yi(s),((u=s.children)==null?void 0:u.length)===1&&(s=s.children[0]),Xi(s),d({},l,{root:s})}getAssets(t){var u;const l=[],o=[];(u=t)!=null||(t=this.plugins.map(s=>s.name));for(const s of t.map(f=>this.assetsMap[f]))s&&(s.styles&&l.push(...s.styles),s.scripts&&o.push(...s.scripts));return{styles:l,scripts:o}}getUsedAssets(t){const u=this.plugins.map(l=>l.name).filter(l=>t[l]);return this.getAssets(u)}}const Mc={"markmap-lib":"0.14.4",d3:"6.7.0"};i.Transformer=Tc,i.builtInPlugins=Gi,i.fillTemplate=ie,i.transformerVersions=Mc})})(nt,nt.exports);var Uc=nt.exports;/*! markmap-common v0.14.2 | MIT License */class Ru{constructor(){this.listeners=[]}tap(n){return this.listeners.push(n),()=>this.revoke(n)}revoke(n){const i=this.listeners.indexOf(n);i>=0&&this.listeners.splice(i,1)}revokeAll(){this.listeners.splice(0)}call(...n){for(const i of this.listeners)i(...n)}}const Hc=Math.random().toString(36).slice(2,8);let ru=0;function jc(){return ru+=1,`mm-${Hc}-${ru}`}function Xn(){}function tt(r,n,i="children"){const a=(c,p)=>n(c,()=>{var d;(d=c[i])==null||d.forEach(g=>{a(g,c)})},p);a(r)}function Iu(r){if(Array.from)return Array.from(r);const n=[];for(let i=0;i<r.length;i+=1)n.push(r[i]);return n}function Vc(r,...n){const i=(r||"").split(" ").filter(Boolean);return n.forEach(a=>{a&&i.indexOf(a)<0&&i.push(a)}),i.join(" ")}function cr(r){if(typeof r=="string"){const i=r;r=a=>a.tagName===i}const n=r;return function(){let a=Iu(this.childNodes);return n&&(a=a.filter(c=>n(c))),a}}function nu(r,n){let i;if(n===void 0)for(const a of r)a!=null&&(i<a||i===void 0&&a>=a)&&(i=a);else{let a=-1;for(let c of r)(c=n(c,++a,r))!=null&&(i<c||i===void 0&&c>=c)&&(i=c)}return i}function tu(r,n){let i;if(n===void 0)for(const a of r)a!=null&&(i>a||i===void 0&&a>=a)&&(i=a);else{let a=-1;for(let c of r)(c=n(c,++a,r))!=null&&(i>c||i===void 0&&c>=c)&&(i=c)}return i}function Gc(r,n){let i,a=-1,c=-1;if(n===void 0)for(const p of r)++c,p!=null&&(i>p||i===void 0&&p>=p)&&(i=p,a=c);else for(let p of r)(p=n(p,++c,r))!=null&&(i>p||i===void 0&&p>=p)&&(i=p,a=c);return a}var Yc={value:()=>{}};function vt(){for(var r=0,n=arguments.length,i={},a;r<n;++r){if(!(a=arguments[r]+"")||a in i||/[\s.]/.test(a))throw new Error("illegal type: "+a);i[a]=[]}return new en(i)}function en(r){this._=r}function Xc(r,n){return r.trim().split(/^|\s+/).map(function(i){var a="",c=i.indexOf(".");if(c>=0&&(a=i.slice(c+1),i=i.slice(0,c)),i&&!n.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:a}})}en.prototype=vt.prototype={constructor:en,on:function(r,n){var i=this._,a=Xc(r+"",i),c,p=-1,d=a.length;if(arguments.length<2){for(;++p<d;)if((c=(r=a[p]).type)&&(c=Kc(i[c],r.name)))return c;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++p<d;)if(c=(r=a[p]).type)i[c]=iu(i[c],r.name,n);else if(n==null)for(c in i)i[c]=iu(i[c],r.name,null);return this},copy:function(){var r={},n=this._;for(var i in n)r[i]=n[i].slice();return new en(r)},call:function(r,n){if((c=arguments.length-2)>0)for(var i=new Array(c),a=0,c,p;a<c;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(r))throw new Error("unknown type: "+r);for(p=this._[r],a=0,c=p.length;a<c;++a)p[a].value.apply(n,i)},apply:function(r,n,i){if(!this._.hasOwnProperty(r))throw new Error("unknown type: "+r);for(var a=this._[r],c=0,p=a.length;c<p;++c)a[c].value.apply(n,i)}};function Kc(r,n){for(var i=0,a=r.length,c;i<a;++i)if((c=r[i]).name===n)return c.value}function iu(r,n,i){for(var a=0,c=r.length;a<c;++a)if(r[a].name===n){r[a]=Yc,r=r.slice(0,a).concat(r.slice(a+1));break}return i!=null&&r.push({name:n,value:i}),r}var it="http://www.w3.org/1999/xhtml";const uu={svg:"http://www.w3.org/2000/svg",xhtml:it,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function gn(r){var n=r+="",i=n.indexOf(":");return i>=0&&(n=r.slice(0,i))!=="xmlns"&&(r=r.slice(i+1)),uu.hasOwnProperty(n)?{space:uu[n],local:r}:r}function Wc(r){return function(){var n=this.ownerDocument,i=this.namespaceURI;return i===it&&n.documentElement.namespaceURI===it?n.createElement(r):n.createElementNS(i,r)}}function Zc(r){return function(){return this.ownerDocument.createElementNS(r.space,r.local)}}function Nu(r){var n=gn(r);return(n.local?Zc:Wc)(n)}function Jc(){}function xt(r){return r==null?Jc:function(){return this.querySelector(r)}}function Qc(r){typeof r!="function"&&(r=xt(r));for(var n=this._groups,i=n.length,a=new Array(i),c=0;c<i;++c)for(var p=n[c],d=p.length,g=a[c]=new Array(d),v,A,x=0;x<d;++x)(v=p[x])&&(A=r.call(v,v.__data__,x,p))&&("__data__"in v&&(A.__data__=v.__data__),g[x]=A);return new _e(a,this._parents)}function qu(r){return typeof r=="object"&&"length"in r?r:Array.from(r)}function ef(){return[]}function Ou(r){return r==null?ef:function(){return this.querySelectorAll(r)}}function rf(r){return function(){var n=r.apply(this,arguments);return n==null?[]:qu(n)}}function nf(r){typeof r=="function"?r=rf(r):r=Ou(r);for(var n=this._groups,i=n.length,a=[],c=[],p=0;p<i;++p)for(var d=n[p],g=d.length,v,A=0;A<g;++A)(v=d[A])&&(a.push(r.call(v,v.__data__,A,d)),c.push(v));return new _e(a,c)}function Lu(r){return function(){return this.matches(r)}}function Pu(r){return function(n){return n.matches(r)}}var tf=Array.prototype.find;function uf(r){return function(){return tf.call(this.children,r)}}function of(){return this.firstElementChild}function lf(r){return this.select(r==null?of:uf(typeof r=="function"?r:Pu(r)))}var af=Array.prototype.filter;function sf(){return this.children}function cf(r){return function(){return af.call(this.children,r)}}function ff(r){return this.selectAll(r==null?sf:cf(typeof r=="function"?r:Pu(r)))}function hf(r){typeof r!="function"&&(r=Lu(r));for(var n=this._groups,i=n.length,a=new Array(i),c=0;c<i;++c)for(var p=n[c],d=p.length,g=a[c]=[],v,A=0;A<d;++A)(v=p[A])&&r.call(v,v.__data__,A,p)&&g.push(v);return new _e(a,this._parents)}function zu(r){return new Array(r.length)}function pf(){return new _e(this._enter||this._groups.map(zu),this._parents)}function ln(r,n){this.ownerDocument=r.ownerDocument,this.namespaceURI=r.namespaceURI,this._next=null,this._parent=r,this.__data__=n}ln.prototype={constructor:ln,appendChild:function(r){return this._parent.insertBefore(r,this._next)},insertBefore:function(r,n){return this._parent.insertBefore(r,n)},querySelector:function(r){return this._parent.querySelector(r)},querySelectorAll:function(r){return this._parent.querySelectorAll(r)}};function df(r){return function(){return r}}function gf(r,n,i,a,c,p){for(var d=0,g,v=n.length,A=p.length;d<A;++d)(g=n[d])?(g.__data__=p[d],a[d]=g):i[d]=new ln(r,p[d]);for(;d<v;++d)(g=n[d])&&(c[d]=g)}function mf(r,n,i,a,c,p,d){var g,v,A=new Map,x=n.length,k=p.length,D=new Array(x),E;for(g=0;g<x;++g)(v=n[g])&&(D[g]=E=d.call(v,v.__data__,g,n)+"",A.has(E)?c[g]=v:A.set(E,v));for(g=0;g<k;++g)E=d.call(r,p[g],g,p)+"",(v=A.get(E))?(a[g]=v,v.__data__=p[g],A.delete(E)):i[g]=new ln(r,p[g]);for(g=0;g<x;++g)(v=n[g])&&A.get(D[g])===v&&(c[g]=v)}function vf(r){return r.__data__}function xf(r,n){if(!arguments.length)return Array.from(this,vf);var i=n?mf:gf,a=this._parents,c=this._groups;typeof r!="function"&&(r=df(r));for(var p=c.length,d=new Array(p),g=new Array(p),v=new Array(p),A=0;A<p;++A){var x=a[A],k=c[A],D=k.length,E=qu(r.call(x,x&&x.__data__,A,a)),j=E.length,z=g[A]=new Array(j),Z=d[A]=new Array(j),q=v[A]=new Array(D);i(x,k,z,Z,q,E,n);for(var Y=0,ue=0,se,ce;Y<j;++Y)if(se=z[Y]){for(Y>=ue&&(ue=Y+1);!(ce=Z[ue])&&++ue<j;);se._next=ce||null}}return d=new _e(d,a),d._enter=g,d._exit=v,d}function yf(){return new _e(this._exit||this._groups.map(zu),this._parents)}function Af(r,n,i){var a=this.enter(),c=this,p=this.exit();return a=typeof r=="function"?r(a):a.append(r+""),n!=null&&(c=n(c)),i==null?p.remove():i(p),a&&c?a.merge(c).order():c}function bf(r){if(!(r instanceof _e))throw new Error("invalid merge");for(var n=this._groups,i=r._groups,a=n.length,c=i.length,p=Math.min(a,c),d=new Array(a),g=0;g<p;++g)for(var v=n[g],A=i[g],x=v.length,k=d[g]=new Array(x),D,E=0;E<x;++E)(D=v[E]||A[E])&&(k[E]=D);for(;g<a;++g)d[g]=n[g];return new _e(d,this._parents)}function wf(){for(var r=this._groups,n=-1,i=r.length;++n<i;)for(var a=r[n],c=a.length-1,p=a[c],d;--c>=0;)(d=a[c])&&(p&&d.compareDocumentPosition(p)^4&&p.parentNode.insertBefore(d,p),p=d);return this}function _f(r){r||(r=Cf);function n(k,D){return k&&D?r(k.__data__,D.__data__):!k-!D}for(var i=this._groups,a=i.length,c=new Array(a),p=0;p<a;++p){for(var d=i[p],g=d.length,v=c[p]=new Array(g),A,x=0;x<g;++x)(A=d[x])&&(v[x]=A);v.sort(n)}return new _e(c,this._parents).order()}function Cf(r,n){return r<n?-1:r>n?1:r>=n?0:NaN}function kf(){var r=arguments[0];return arguments[0]=this,r.apply(null,arguments),this}function Df(){return Array.from(this)}function Ef(){for(var r=this._groups,n=0,i=r.length;n<i;++n)for(var a=r[n],c=0,p=a.length;c<p;++c){var d=a[c];if(d)return d}return null}function Sf(){let r=0;for(const n of this)++r;return r}function Ff(){return!this.node()}function Bf(r){for(var n=this._groups,i=0,a=n.length;i<a;++i)for(var c=n[i],p=0,d=c.length,g;p<d;++p)(g=c[p])&&r.call(g,g.__data__,p,c);return this}function Tf(r){return function(){this.removeAttribute(r)}}function Mf(r){return function(){this.removeAttributeNS(r.space,r.local)}}function Rf(r,n){return function(){this.setAttribute(r,n)}}function If(r,n){return function(){this.setAttributeNS(r.space,r.local,n)}}function Nf(r,n){return function(){var i=n.apply(this,arguments);i==null?this.removeAttribute(r):this.setAttribute(r,i)}}function qf(r,n){return function(){var i=n.apply(this,arguments);i==null?this.removeAttributeNS(r.space,r.local):this.setAttributeNS(r.space,r.local,i)}}function Of(r,n){var i=gn(r);if(arguments.length<2){var a=this.node();return i.local?a.getAttributeNS(i.space,i.local):a.getAttribute(i)}return this.each((n==null?i.local?Mf:Tf:typeof n=="function"?i.local?qf:Nf:i.local?If:Rf)(i,n))}function $u(r){return r.ownerDocument&&r.ownerDocument.defaultView||r.document&&r||r.defaultView}function Lf(r){return function(){this.style.removeProperty(r)}}function Pf(r,n,i){return function(){this.style.setProperty(r,n,i)}}function zf(r,n,i){return function(){var a=n.apply(this,arguments);a==null?this.style.removeProperty(r):this.style.setProperty(r,a,i)}}function $f(r,n,i){return arguments.length>1?this.each((n==null?Lf:typeof n=="function"?zf:Pf)(r,n,i??"")):pr(this.node(),r)}function pr(r,n){return r.style.getPropertyValue(n)||$u(r).getComputedStyle(r,null).getPropertyValue(n)}function Uf(r){return function(){delete this[r]}}function Hf(r,n){return function(){this[r]=n}}function jf(r,n){return function(){var i=n.apply(this,arguments);i==null?delete this[r]:this[r]=i}}function Vf(r,n){return arguments.length>1?this.each((n==null?Uf:typeof n=="function"?jf:Hf)(r,n)):this.node()[r]}function Uu(r){return r.trim().split(/^|\s+/)}function yt(r){return r.classList||new Hu(r)}function Hu(r){this._node=r,this._names=Uu(r.getAttribute("class")||"")}Hu.prototype={add:function(r){var n=this._names.indexOf(r);n<0&&(this._names.push(r),this._node.setAttribute("class",this._names.join(" ")))},remove:function(r){var n=this._names.indexOf(r);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};function ju(r,n){for(var i=yt(r),a=-1,c=n.length;++a<c;)i.add(n[a])}function Vu(r,n){for(var i=yt(r),a=-1,c=n.length;++a<c;)i.remove(n[a])}function Gf(r){return function(){ju(this,r)}}function Yf(r){return function(){Vu(this,r)}}function Xf(r,n){return function(){(n.apply(this,arguments)?ju:Vu)(this,r)}}function Kf(r,n){var i=Uu(r+"");if(arguments.length<2){for(var a=yt(this.node()),c=-1,p=i.length;++c<p;)if(!a.contains(i[c]))return!1;return!0}return this.each((typeof n=="function"?Xf:n?Gf:Yf)(i,n))}function Wf(){this.textContent=""}function Zf(r){return function(){this.textContent=r}}function Jf(r){return function(){var n=r.apply(this,arguments);this.textContent=n??""}}function Qf(r){return arguments.length?this.each(r==null?Wf:(typeof r=="function"?Jf:Zf)(r)):this.node().textContent}function eh(){this.innerHTML=""}function rh(r){return function(){this.innerHTML=r}}function nh(r){return function(){var n=r.apply(this,arguments);this.innerHTML=n??""}}function th(r){return arguments.length?this.each(r==null?eh:(typeof r=="function"?nh:rh)(r)):this.node().innerHTML}function ih(){this.nextSibling&&this.parentNode.appendChild(this)}function uh(){return this.each(ih)}function oh(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function lh(){return this.each(oh)}function ah(r){var n=typeof r=="function"?r:Nu(r);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function sh(){return null}function ch(r,n){var i=typeof r=="function"?r:Nu(r),a=n==null?sh:typeof n=="function"?n:xt(n);return this.select(function(){return this.insertBefore(i.apply(this,arguments),a.apply(this,arguments)||null)})}function fh(){var r=this.parentNode;r&&r.removeChild(this)}function hh(){return this.each(fh)}function ph(){var r=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(r,this.nextSibling):r}function dh(){var r=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(r,this.nextSibling):r}function gh(r){return this.select(r?dh:ph)}function mh(r){return arguments.length?this.property("__data__",r):this.node().__data__}function vh(r){return function(n){r.call(this,n,this.__data__)}}function xh(r){return r.trim().split(/^|\s+/).map(function(n){var i="",a=n.indexOf(".");return a>=0&&(i=n.slice(a+1),n=n.slice(0,a)),{type:n,name:i}})}function yh(r){return function(){var n=this.__on;if(n){for(var i=0,a=-1,c=n.length,p;i<c;++i)p=n[i],(!r.type||p.type===r.type)&&p.name===r.name?this.removeEventListener(p.type,p.listener,p.options):n[++a]=p;++a?n.length=a:delete this.__on}}}function Ah(r,n,i){return function(){var a=this.__on,c,p=vh(n);if(a){for(var d=0,g=a.length;d<g;++d)if((c=a[d]).type===r.type&&c.name===r.name){this.removeEventListener(c.type,c.listener,c.options),this.addEventListener(c.type,c.listener=p,c.options=i),c.value=n;return}}this.addEventListener(r.type,p,i),c={type:r.type,name:r.name,value:n,listener:p,options:i},a?a.push(c):this.__on=[c]}}function bh(r,n,i){var a=xh(r+""),c,p=a.length,d;if(arguments.length<2){var g=this.node().__on;if(g){for(var v=0,A=g.length,x;v<A;++v)for(c=0,x=g[v];c<p;++c)if((d=a[c]).type===x.type&&d.name===x.name)return x.value}return}for(g=n?Ah:yh,c=0;c<p;++c)this.each(g(a[c],n,i));return this}function Gu(r,n,i){var a=$u(r),c=a.CustomEvent;typeof c=="function"?c=new c(n,i):(c=a.document.createEvent("Event"),i?(c.initEvent(n,i.bubbles,i.cancelable),c.detail=i.detail):c.initEvent(n,!1,!1)),r.dispatchEvent(c)}function wh(r,n){return function(){return Gu(this,r,n)}}function _h(r,n){return function(){return Gu(this,r,n.apply(this,arguments))}}function Ch(r,n){return this.each((typeof n=="function"?_h:wh)(r,n))}function*kh(){for(var r=this._groups,n=0,i=r.length;n<i;++n)for(var a=r[n],c=0,p=a.length,d;c<p;++c)(d=a[c])&&(yield d)}var Yu=[null];function _e(r,n){this._groups=r,this._parents=n}function Nr(){return new _e([[document.documentElement]],Yu)}function Dh(){return this}_e.prototype=Nr.prototype={constructor:_e,select:Qc,selectAll:nf,selectChild:lf,selectChildren:ff,filter:hf,data:xf,enter:pf,exit:yf,join:Af,merge:bf,selection:Dh,order:wf,sort:_f,call:kf,nodes:Df,node:Ef,size:Sf,empty:Ff,each:Bf,attr:Of,style:$f,property:Vf,classed:Kf,text:Qf,html:th,raise:uh,lower:lh,append:ah,insert:ch,remove:hh,clone:gh,datum:mh,on:bh,dispatch:Ch,[Symbol.iterator]:kh};function Xe(r){return typeof r=="string"?new _e([[document.querySelector(r)]],[document.documentElement]):new _e([[r]],Yu)}function Eh(r){let n;for(;n=r.sourceEvent;)r=n;return r}function Je(r,n){if(r=Eh(r),n===void 0&&(n=r.currentTarget),n){var i=n.ownerSVGElement||n;if(i.createSVGPoint){var a=i.createSVGPoint();return a.x=r.clientX,a.y=r.clientY,a=a.matrixTransform(n.getScreenCTM().inverse()),[a.x,a.y]}if(n.getBoundingClientRect){var c=n.getBoundingClientRect();return[r.clientX-c.left-n.clientLeft,r.clientY-c.top-n.clientTop]}}return[r.pageX,r.pageY]}function ut(r){r.preventDefault(),r.stopImmediatePropagation()}function Sh(r){var n=r.document.documentElement,i=Xe(r).on("dragstart.drag",ut,!0);"onselectstart"in n?i.on("selectstart.drag",ut,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function Fh(r,n){var i=r.document.documentElement,a=Xe(r).on("dragstart.drag",null);n&&(a.on("click.drag",ut,!0),setTimeout(function(){a.on("click.drag",null)},0)),"onselectstart"in i?a.on("selectstart.drag",null):(i.style.MozUserSelect=i.__noselect,delete i.__noselect)}function At(r,n,i){r.prototype=n.prototype=i,i.constructor=r}function Xu(r,n){var i=Object.create(r.prototype);for(var a in n)i[a]=n[a];return i}function qr(){}var Br=.7,an=1/Br,hr="\\s*([+-]?\\d+)\\s*",Tr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",qe="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Bh=/^#([0-9a-f]{3,8})$/,Th=new RegExp("^rgb\\("+[hr,hr,hr]+"\\)$"),Mh=new RegExp("^rgb\\("+[qe,qe,qe]+"\\)$"),Rh=new RegExp("^rgba\\("+[hr,hr,hr,Tr]+"\\)$"),Ih=new RegExp("^rgba\\("+[qe,qe,qe,Tr]+"\\)$"),Nh=new RegExp("^hsl\\("+[Tr,qe,qe]+"\\)$"),qh=new RegExp("^hsla\\("+[Tr,qe,qe,Tr]+"\\)$"),ou={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};At(qr,Mr,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:lu,formatHex:lu,formatHsl:Oh,formatRgb:au,toString:au});function lu(){return this.rgb().formatHex()}function Oh(){return Ku(this).formatHsl()}function au(){return this.rgb().formatRgb()}function Mr(r){var n,i;return r=(r+"").trim().toLowerCase(),(n=Bh.exec(r))?(i=n[1].length,n=parseInt(n[1],16),i===6?su(n):i===3?new Ee(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):i===8?Kr(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):i===4?Kr(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=Th.exec(r))?new Ee(n[1],n[2],n[3],1):(n=Mh.exec(r))?new Ee(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=Rh.exec(r))?Kr(n[1],n[2],n[3],n[4]):(n=Ih.exec(r))?Kr(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=Nh.exec(r))?hu(n[1],n[2]/100,n[3]/100,1):(n=qh.exec(r))?hu(n[1],n[2]/100,n[3]/100,n[4]):ou.hasOwnProperty(r)?su(ou[r]):r==="transparent"?new Ee(NaN,NaN,NaN,0):null}function su(r){return new Ee(r>>16&255,r>>8&255,r&255,1)}function Kr(r,n,i,a){return a<=0&&(r=n=i=NaN),new Ee(r,n,i,a)}function Lh(r){return r instanceof qr||(r=Mr(r)),r?(r=r.rgb(),new Ee(r.r,r.g,r.b,r.opacity)):new Ee}function ot(r,n,i,a){return arguments.length===1?Lh(r):new Ee(r,n,i,a??1)}function Ee(r,n,i,a){this.r=+r,this.g=+n,this.b=+i,this.opacity=+a}At(Ee,ot,Xu(qr,{brighter:function(r){return r=r==null?an:Math.pow(an,r),new Ee(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=r==null?Br:Math.pow(Br,r),new Ee(this.r*r,this.g*r,this.b*r,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:cu,formatHex:cu,formatRgb:fu,toString:fu}));function cu(){return"#"+Kn(this.r)+Kn(this.g)+Kn(this.b)}function fu(){var r=this.opacity;return r=isNaN(r)?1:Math.max(0,Math.min(1,r)),(r===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))+(r===1?")":", "+r+")")}function Kn(r){return r=Math.max(0,Math.min(255,Math.round(r)||0)),(r<16?"0":"")+r.toString(16)}function hu(r,n,i,a){return a<=0?r=n=i=NaN:i<=0||i>=1?r=n=NaN:n<=0&&(r=NaN),new Ne(r,n,i,a)}function Ku(r){if(r instanceof Ne)return new Ne(r.h,r.s,r.l,r.opacity);if(r instanceof qr||(r=Mr(r)),!r)return new Ne;if(r instanceof Ne)return r;r=r.rgb();var n=r.r/255,i=r.g/255,a=r.b/255,c=Math.min(n,i,a),p=Math.max(n,i,a),d=NaN,g=p-c,v=(p+c)/2;return g?(n===p?d=(i-a)/g+(i<a)*6:i===p?d=(a-n)/g+2:d=(n-i)/g+4,g/=v<.5?p+c:2-p-c,d*=60):g=v>0&&v<1?0:d,new Ne(d,g,v,r.opacity)}function Ph(r,n,i,a){return arguments.length===1?Ku(r):new Ne(r,n,i,a??1)}function Ne(r,n,i,a){this.h=+r,this.s=+n,this.l=+i,this.opacity=+a}At(Ne,Ph,Xu(qr,{brighter:function(r){return r=r==null?an:Math.pow(an,r),new Ne(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=r==null?Br:Math.pow(Br,r),new Ne(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+(this.h<0)*360,n=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<.5?i:1-i)*n,c=2*i-a;return new Ee(Wn(r>=240?r-240:r+120,c,a),Wn(r,c,a),Wn(r<120?r+240:r-120,c,a),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 r=this.opacity;return r=isNaN(r)?1:Math.max(0,Math.min(1,r)),(r===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(r===1?")":", "+r+")")}}));function Wn(r,n,i){return(r<60?n+(i-n)*r/60:r<180?i:r<240?n+(i-n)*(240-r)/60:n)*255}const Wu=r=>()=>r;function zh(r,n){return function(i){return r+i*n}}function $h(r,n,i){return r=Math.pow(r,i),n=Math.pow(n,i)-r,i=1/i,function(a){return Math.pow(r+a*n,i)}}function Uh(r){return(r=+r)==1?Zu:function(n,i){return i-n?$h(n,i,r):Wu(isNaN(n)?i:n)}}function Zu(r,n){var i=n-r;return i?zh(r,i):Wu(isNaN(r)?n:r)}const pu=function r(n){var i=Uh(n);function a(c,p){var d=i((c=ot(c)).r,(p=ot(p)).r),g=i(c.g,p.g),v=i(c.b,p.b),A=Zu(c.opacity,p.opacity);return function(x){return c.r=d(x),c.g=g(x),c.b=v(x),c.opacity=A(x),c+""}}return a.gamma=r,a}(1);function Ge(r,n){return r=+r,n=+n,function(i){return r*(1-i)+n*i}}var lt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zn=new RegExp(lt.source,"g");function Hh(r){return function(){return r}}function jh(r){return function(n){return r(n)+""}}function Vh(r,n){var i=lt.lastIndex=Zn.lastIndex=0,a,c,p,d=-1,g=[],v=[];for(r=r+"",n=n+"";(a=lt.exec(r))&&(c=Zn.exec(n));)(p=c.index)>i&&(p=n.slice(i,p),g[d]?g[d]+=p:g[++d]=p),(a=a[0])===(c=c[0])?g[d]?g[d]+=c:g[++d]=c:(g[++d]=null,v.push({i:d,x:Ge(a,c)})),i=Zn.lastIndex;return i<n.length&&(p=n.slice(i),g[d]?g[d]+=p:g[++d]=p),g.length<2?v[0]?jh(v[0].x):Hh(n):(n=v.length,function(A){for(var x=0,k;x<n;++x)g[(k=v[x]).i]=k.x(A);return g.join("")})}var du=180/Math.PI,at={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ju(r,n,i,a,c,p){var d,g,v;return(d=Math.sqrt(r*r+n*n))&&(r/=d,n/=d),(v=r*i+n*a)&&(i-=r*v,a-=n*v),(g=Math.sqrt(i*i+a*a))&&(i/=g,a/=g,v/=g),r*a<n*i&&(r=-r,n=-n,v=-v,d=-d),{translateX:c,translateY:p,rotate:Math.atan2(n,r)*du,skewX:Math.atan(v)*du,scaleX:d,scaleY:g}}var Wr;function Gh(r){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(r+"");return n.isIdentity?at:Ju(n.a,n.b,n.c,n.d,n.e,n.f)}function Yh(r){return r==null||(Wr||(Wr=document.createElementNS("http://www.w3.org/2000/svg","g")),Wr.setAttribute("transform",r),!(r=Wr.transform.baseVal.consolidate()))?at:(r=r.matrix,Ju(r.a,r.b,r.c,r.d,r.e,r.f))}function Qu(r,n,i,a){function c(A){return A.length?A.pop()+" ":""}function p(A,x,k,D,E,j){if(A!==k||x!==D){var z=E.push("translate(",null,n,null,i);j.push({i:z-4,x:Ge(A,k)},{i:z-2,x:Ge(x,D)})}else(k||D)&&E.push("translate("+k+n+D+i)}function d(A,x,k,D){A!==x?(A-x>180?x+=360:x-A>180&&(A+=360),D.push({i:k.push(c(k)+"rotate(",null,a)-2,x:Ge(A,x)})):x&&k.push(c(k)+"rotate("+x+a)}function g(A,x,k,D){A!==x?D.push({i:k.push(c(k)+"skewX(",null,a)-2,x:Ge(A,x)}):x&&k.push(c(k)+"skewX("+x+a)}function v(A,x,k,D,E,j){if(A!==k||x!==D){var z=E.push(c(E)+"scale(",null,",",null,")");j.push({i:z-4,x:Ge(A,k)},{i:z-2,x:Ge(x,D)})}else(k!==1||D!==1)&&E.push(c(E)+"scale("+k+","+D+")")}return function(A,x){var k=[],D=[];return A=r(A),x=r(x),p(A.translateX,A.translateY,x.translateX,x.translateY,k,D),d(A.rotate,x.rotate,k,D),g(A.skewX,x.skewX,k,D),v(A.scaleX,A.scaleY,x.scaleX,x.scaleY,k,D),A=x=null,function(E){for(var j=-1,z=D.length,Z;++j<z;)k[(Z=D[j]).i]=Z.x(E);return k.join("")}}}var Xh=Qu(Gh,"px, ","px)","deg)"),Kh=Qu(Yh,", ",")",")"),Wh=1e-12;function gu(r){return((r=Math.exp(r))+1/r)/2}function Zh(r){return((r=Math.exp(r))-1/r)/2}function Jh(r){return((r=Math.exp(2*r))-1)/(r+1)}const Qh=function r(n,i,a){function c(p,d){var g=p[0],v=p[1],A=p[2],x=d[0],k=d[1],D=d[2],E=x-g,j=k-v,z=E*E+j*j,Z,q;if(z<Wh)q=Math.log(D/A)/n,Z=function(R){return[g+R*E,v+R*j,A*Math.exp(n*R*q)]};else{var Y=Math.sqrt(z),ue=(D*D-A*A+a*z)/(2*A*i*Y),se=(D*D-A*A-a*z)/(2*D*i*Y),ce=Math.log(Math.sqrt(ue*ue+1)-ue),oe=Math.log(Math.sqrt(se*se+1)-se);q=(oe-ce)/n,Z=function(R){var I=R*q,U=gu(ce),W=A/(i*Y)*(U*Jh(n*I+ce)-Zh(ce));return[g+W*E,v+W*j,A*U/gu(n*I+ce)]}}return Z.duration=q*1e3*n/Math.SQRT2,Z}return c.rho=function(p){var d=Math.max(.001,+p),g=d*d,v=g*g;return r(d,g,v)},c}(Math.SQRT2,2,4);var dr=0,Er=0,kr=0,eo=1e3,sn,Sr,cn=0,nr=0,mn=0,Rr=typeof performance=="object"&&performance.now?performance:Date,ro=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(r){setTimeout(r,17)};function bt(){return nr||(ro(ep),nr=Rr.now()+mn)}function ep(){nr=0}function fn(){this._call=this._time=this._next=null}fn.prototype=no.prototype={constructor:fn,restart:function(r,n,i){if(typeof r!="function")throw new TypeError("callback is not a function");i=(i==null?bt():+i)+(n==null?0:+n),!this._next&&Sr!==this&&(Sr?Sr._next=this:sn=this,Sr=this),this._call=r,this._time=i,st()},stop:function(){this._call&&(this._call=null,this._time=1/0,st())}};function no(r,n,i){var a=new fn;return a.restart(r,n,i),a}function rp(){bt(),++dr;for(var r=sn,n;r;)(n=nr-r._time)>=0&&r._call.call(null,n),r=r._next;--dr}function mu(){nr=(cn=Rr.now())+mn,dr=Er=0;try{rp()}finally{dr=0,tp(),nr=0}}function np(){var r=Rr.now(),n=r-cn;n>eo&&(mn-=n,cn=r)}function tp(){for(var r,n=sn,i,a=1/0;n;)n._call?(a>n._time&&(a=n._time),r=n,n=n._next):(i=n._next,n._next=null,n=r?r._next=i:sn=i);Sr=r,st(a)}function st(r){if(!dr){Er&&(Er=clearTimeout(Er));var n=r-nr;n>24?(r<1/0&&(Er=setTimeout(mu,r-Rr.now()-mn)),kr&&(kr=clearInterval(kr))):(kr||(cn=Rr.now(),kr=setInterval(np,eo)),dr=1,ro(mu))}}function vu(r,n,i){var a=new fn;return n=n==null?0:+n,a.restart(c=>{a.stop(),r(c+n)},n,i),a}var ip=vt("start","end","cancel","interrupt"),up=[],to=0,xu=1,ct=2,rn=3,yu=4,ft=5,nn=6;function vn(r,n,i,a,c,p){var d=r.__transition;if(!d)r.__transition={};else if(i in d)return;op(r,i,{name:n,index:a,group:c,on:ip,tween:up,time:p.time,delay:p.delay,duration:p.duration,ease:p.ease,timer:null,state:to})}function wt(r,n){var i=Re(r,n);if(i.state>to)throw new Error("too late; already scheduled");return i}function Oe(r,n){var i=Re(r,n);if(i.state>rn)throw new Error("too late; already running");return i}function Re(r,n){var i=r.__transition;if(!i||!(i=i[n]))throw new Error("transition not found");return i}function op(r,n,i){var a=r.__transition,c;a[n]=i,i.timer=no(p,0,i.time);function p(A){i.state=xu,i.timer.restart(d,i.delay,i.time),i.delay<=A&&d(A-i.delay)}function d(A){var x,k,D,E;if(i.state!==xu)return v();for(x in a)if(E=a[x],E.name===i.name){if(E.state===rn)return vu(d);E.state===yu?(E.state=nn,E.timer.stop(),E.on.call("interrupt",r,r.__data__,E.index,E.group),delete a[x]):+x<n&&(E.state=nn,E.timer.stop(),E.on.call("cancel",r,r.__data__,E.index,E.group),delete a[x])}if(vu(function(){i.state===rn&&(i.state=yu,i.timer.restart(g,i.delay,i.time),g(A))}),i.state=ct,i.on.call("start",r,r.__data__,i.index,i.group),i.state===ct){for(i.state=rn,c=new Array(D=i.tween.length),x=0,k=-1;x<D;++x)(E=i.tween[x].value.call(r,r.__data__,i.index,i.group))&&(c[++k]=E);c.length=k+1}}function g(A){for(var x=A<i.duration?i.ease.call(null,A/i.duration):(i.timer.restart(v),i.state=ft,1),k=-1,D=c.length;++k<D;)c[k].call(r,x);i.state===ft&&(i.on.call("end",r,r.__data__,i.index,i.group),v())}function v(){i.state=nn,i.timer.stop(),delete a[n];for(var A in a)return;delete r.__transition}}function tn(r,n){var i=r.__transition,a,c,p=!0,d;if(i){n=n==null?null:n+"";for(d in i){if((a=i[d]).name!==n){p=!1;continue}c=a.state>ct&&a.state<ft,a.state=nn,a.timer.stop(),a.on.call(c?"interrupt":"cancel",r,r.__data__,a.index,a.group),delete i[d]}p&&delete r.__transition}}function lp(r){return this.each(function(){tn(this,r)})}function ap(r,n){var i,a;return function(){var c=Oe(this,r),p=c.tween;if(p!==i){a=i=p;for(var d=0,g=a.length;d<g;++d)if(a[d].name===n){a=a.slice(),a.splice(d,1);break}}c.tween=a}}function sp(r,n,i){var a,c;if(typeof i!="function")throw new Error;return function(){var p=Oe(this,r),d=p.tween;if(d!==a){c=(a=d).slice();for(var g={name:n,value:i},v=0,A=c.length;v<A;++v)if(c[v].name===n){c[v]=g;break}v===A&&c.push(g)}p.tween=c}}function cp(r,n){var i=this._id;if(r+="",arguments.length<2){for(var a=Re(this.node(),i).tween,c=0,p=a.length,d;c<p;++c)if((d=a[c]).name===r)return d.value;return null}return this.each((n==null?ap:sp)(i,r,n))}function _t(r,n,i){var a=r._id;return r.each(function(){var c=Oe(this,a);(c.value||(c.value={}))[n]=i.apply(this,arguments)}),function(c){return Re(c,a).value[n]}}function io(r,n){var i;return(typeof n=="number"?Ge:n instanceof Mr?pu:(i=Mr(n))?(n=i,pu):Vh)(r,n)}function fp(r){return function(){this.removeAttribute(r)}}function hp(r){return function(){this.removeAttributeNS(r.space,r.local)}}function pp(r,n,i){var a,c=i+"",p;return function(){var d=this.getAttribute(r);return d===c?null:d===a?p:p=n(a=d,i)}}function dp(r,n,i){var a,c=i+"",p;return function(){var d=this.getAttributeNS(r.space,r.local);return d===c?null:d===a?p:p=n(a=d,i)}}function gp(r,n,i){var a,c,p;return function(){var d,g=i(this),v;return g==null?void this.removeAttribute(r):(d=this.getAttribute(r),v=g+"",d===v?null:d===a&&v===c?p:(c=v,p=n(a=d,g)))}}function mp(r,n,i){var a,c,p;return function(){var d,g=i(this),v;return g==null?void this.removeAttributeNS(r.space,r.local):(d=this.getAttributeNS(r.space,r.local),v=g+"",d===v?null:d===a&&v===c?p:(c=v,p=n(a=d,g)))}}function vp(r,n){var i=gn(r),a=i==="transform"?Kh:io;return this.attrTween(r,typeof n=="function"?(i.local?mp:gp)(i,a,_t(this,"attr."+r,n)):n==null?(i.local?hp:fp)(i):(i.local?dp:pp)(i,a,n))}function xp(r,n){return function(i){this.setAttribute(r,n.call(this,i))}}function yp(r,n){return function(i){this.setAttributeNS(r.space,r.local,n.call(this,i))}}function Ap(r,n){var i,a;function c(){var p=n.apply(this,arguments);return p!==a&&(i=(a=p)&&yp(r,p)),i}return c._value=n,c}function bp(r,n){var i,a;function c(){var p=n.apply(this,arguments);return p!==a&&(i=(a=p)&&xp(r,p)),i}return c._value=n,c}function wp(r,n){var i="attr."+r;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(n==null)return this.tween(i,null);if(typeof n!="function")throw new Error;var a=gn(r);return this.tween(i,(a.local?Ap:bp)(a,n))}function _p(r,n){return function(){wt(this,r).delay=+n.apply(this,arguments)}}function Cp(r,n){return n=+n,function(){wt(this,r).delay=n}}function kp(r){var n=this._id;return arguments.length?this.each((typeof r=="function"?_p:Cp)(n,r)):Re(this.node(),n).delay}function Dp(r,n){return function(){Oe(this,r).duration=+n.apply(this,arguments)}}function Ep(r,n){return n=+n,function(){Oe(this,r).duration=n}}function Sp(r){var n=this._id;return arguments.length?this.each((typeof r=="function"?Dp:Ep)(n,r)):Re(this.node(),n).duration}function Fp(r,n){if(typeof n!="function")throw new Error;return function(){Oe(this,r).ease=n}}function Bp(r){var n=this._id;return arguments.length?this.each(Fp(n,r)):Re(this.node(),n).ease}function Tp(r,n){return function(){var i=n.apply(this,arguments);if(typeof i!="function")throw new Error;Oe(this,r).ease=i}}function Mp(r){if(typeof r!="function")throw new Error;return this.each(Tp(this._id,r))}function Rp(r){typeof r!="function"&&(r=Lu(r));for(var n=this._groups,i=n.length,a=new Array(i),c=0;c<i;++c)for(var p=n[c],d=p.length,g=a[c]=[],v,A=0;A<d;++A)(v=p[A])&&r.call(v,v.__data__,A,p)&&g.push(v);return new Ue(a,this._parents,this._name,this._id)}function Ip(r){if(r._id!==this._id)throw new Error;for(var n=this._groups,i=r._groups,a=n.length,c=i.length,p=Math.min(a,c),d=new Array(a),g=0;g<p;++g)for(var v=n[g],A=i[g],x=v.length,k=d[g]=new Array(x),D,E=0;E<x;++E)(D=v[E]||A[E])&&(k[E]=D);for(;g<a;++g)d[g]=n[g];return new Ue(d,this._parents,this._name,this._id)}function Np(r){return(r+"").trim().split(/^|\s+/).every(function(n){var i=n.indexOf(".");return i>=0&&(n=n.slice(0,i)),!n||n==="start"})}function qp(r,n,i){var a,c,p=Np(n)?wt:Oe;return function(){var d=p(this,r),g=d.on;g!==a&&(c=(a=g).copy()).on(n,i),d.on=c}}function Op(r,n){var i=this._id;return arguments.length<2?Re(this.node(),i).on.on(r):this.each(qp(i,r,n))}function Lp(r){return function(){var n=this.parentNode;for(var i in this.__transition)if(+i!==r)return;n&&n.removeChild(this)}}function Pp(){return this.on("end.remove",Lp(this._id))}function zp(r){var n=this._name,i=this._id;typeof r!="function"&&(r=xt(r));for(var a=this._groups,c=a.length,p=new Array(c),d=0;d<c;++d)for(var g=a[d],v=g.length,A=p[d]=new Array(v),x,k,D=0;D<v;++D)(x=g[D])&&(k=r.call(x,x.__data__,D,g))&&("__data__"in x&&(k.__data__=x.__data__),A[D]=k,vn(A[D],n,i,D,A,Re(x,i)));return new Ue(p,this._parents,n,i)}function $p(r){var n=this._name,i=this._id;typeof r!="function"&&(r=Ou(r));for(var a=this._groups,c=a.length,p=[],d=[],g=0;g<c;++g)for(var v=a[g],A=v.length,x,k=0;k<A;++k)if(x=v[k]){for(var D=r.call(x,x.__data__,k,v),E,j=Re(x,i),z=0,Z=D.length;z<Z;++z)(E=D[z])&&vn(E,n,i,z,D,j);p.push(D),d.push(x)}return new Ue(p,d,n,i)}var Up=Nr.prototype.constructor;function Hp(){return new Up(this._groups,this._parents)}function jp(r,n){var i,a,c;return function(){var p=pr(this,r),d=(this.style.removeProperty(r),pr(this,r));return p===d?null:p===i&&d===a?c:c=n(i=p,a=d)}}function uo(r){return function(){this.style.removeProperty(r)}}function Vp(r,n,i){var a,c=i+"",p;return function(){var d=pr(this,r);return d===c?null:d===a?p:p=n(a=d,i)}}function Gp(r,n,i){var a,c,p;return function(){var d=pr(this,r),g=i(this),v=g+"";return g==null&&(v=g=(this.style.removeProperty(r),pr(this,r))),d===v?null:d===a&&v===c?p:(c=v,p=n(a=d,g))}}function Yp(r,n){var i,a,c,p="style."+n,d="end."+p,g;return function(){var v=Oe(this,r),A=v.on,x=v.value[p]==null?g||(g=uo(n)):void 0;(A!==i||c!==x)&&(a=(i=A).copy()).on(d,c=x),v.on=a}}function Xp(r,n,i){var a=(r+="")=="transform"?Xh:io;return n==null?this.styleTween(r,jp(r,a)).on("end.style."+r,uo(r)):typeof n=="function"?this.styleTween(r,Gp(r,a,_t(this,"style."+r,n))).each(Yp(this._id,r)):this.styleTween(r,Vp(r,a,n),i).on("end.style."+r,null)}function Kp(r,n,i){return function(a){this.style.setProperty(r,n.call(this,a),i)}}function Wp(r,n,i){var a,c;function p(){var d=n.apply(this,arguments);return d!==c&&(a=(c=d)&&Kp(r,d,i)),a}return p._value=n,p}function Zp(r,n,i){var a="style."+(r+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(n==null)return this.tween(a,null);if(typeof n!="function")throw new Error;return this.tween(a,Wp(r,n,i??""))}function Jp(r){return function(){this.textContent=r}}function Qp(r){return function(){var n=r(this);this.textContent=n??""}}function e0(r){return this.tween("text",typeof r=="function"?Qp(_t(this,"text",r)):Jp(r==null?"":r+""))}function r0(r){return function(n){this.textContent=r.call(this,n)}}function n0(r){var n,i;function a(){var c=r.apply(this,arguments);return c!==i&&(n=(i=c)&&r0(c)),n}return a._value=r,a}function t0(r){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(r==null)return this.tween(n,null);if(typeof r!="function")throw new Error;return this.tween(n,n0(r))}function i0(){for(var r=this._name,n=this._id,i=oo(),a=this._groups,c=a.length,p=0;p<c;++p)for(var d=a[p],g=d.length,v,A=0;A<g;++A)if(v=d[A]){var x=Re(v,n);vn(v,r,i,A,d,{time:x.time+x.delay+x.duration,delay:0,duration:x.duration,ease:x.ease})}return new Ue(a,this._parents,r,i)}function u0(){var r,n,i=this,a=i._id,c=i.size();return new Promise(function(p,d){var g={value:d},v={value:function(){--c===0&&p()}};i.each(function(){var A=Oe(this,a),x=A.on;x!==r&&(n=(r=x).copy(),n._.cancel.push(g),n._.interrupt.push(g),n._.end.push(v)),A.on=n}),c===0&&p()})}var o0=0;function Ue(r,n,i,a){this._groups=r,this._parents=n,this._name=i,this._id=a}function oo(){return++o0}var Qe=Nr.prototype;Ue.prototype={constructor:Ue,select:zp,selectAll:$p,filter:Rp,merge:Ip,selection:Hp,transition:i0,call:Qe.call,nodes:Qe.nodes,node:Qe.node,size:Qe.size,empty:Qe.empty,each:Qe.each,on:Op,attr:vp,attrTween:wp,style:Xp,styleTween:Zp,text:e0,textTween:t0,remove:Pp,tween:cp,delay:kp,duration:Sp,ease:Bp,easeVarying:Mp,end:u0,[Symbol.iterator]:Qe[Symbol.iterator]};function l0(r){return((r*=2)<=1?r*r*r:(r-=2)*r*r+2)/2}var a0={time:null,delay:0,duration:250,ease:l0};function s0(r,n){for(var i;!(i=r.__transition)||!(i=i[n]);)if(!(r=r.parentNode))throw new Error(`transition ${n} not found`);return i}function c0(r){var n,i;r instanceof Ue?(n=r._id,r=r._name):(n=oo(),(i=a0).time=bt(),r=r==null?null:r+"");for(var a=this._groups,c=a.length,p=0;p<c;++p)for(var d=a[p],g=d.length,v,A=0;A<g;++A)(v=d[A])&&vn(v,r,n,A,d,i||s0(v,n));return new Ue(a,this._parents,r,n)}Nr.prototype.interrupt=lp;Nr.prototype.transition=c0;const ht=Math.PI,pt=2*ht,er=1e-6,f0=pt-er;function dt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function lo(){return new dt}dt.prototype=lo.prototype={constructor:dt,moveTo:function(r,n){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(r,n){this._+="L"+(this._x1=+r)+","+(this._y1=+n)},quadraticCurveTo:function(r,n,i,a){this._+="Q"+ +r+","+ +n+","+(this._x1=+i)+","+(this._y1=+a)},bezierCurveTo:function(r,n,i,a,c,p){this._+="C"+ +r+","+ +n+","+ +i+","+ +a+","+(this._x1=+c)+","+(this._y1=+p)},arcTo:function(r,n,i,a,c){r=+r,n=+n,i=+i,a=+a,c=+c;var p=this._x1,d=this._y1,g=i-r,v=a-n,A=p-r,x=d-n,k=A*A+x*x;if(c<0)throw new Error("negative radius: "+c);if(this._x1===null)this._+="M"+(this._x1=r)+","+(this._y1=n);else if(k>er)if(!(Math.abs(x*g-v*A)>er)||!c)this._+="L"+(this._x1=r)+","+(this._y1=n);else{var D=i-p,E=a-d,j=g*g+v*v,z=D*D+E*E,Z=Math.sqrt(j),q=Math.sqrt(k),Y=c*Math.tan((ht-Math.acos((j+k-z)/(2*Z*q)))/2),ue=Y/q,se=Y/Z;Math.abs(ue-1)>er&&(this._+="L"+(r+ue*A)+","+(n+ue*x)),this._+="A"+c+","+c+",0,0,"+ +(x*D>A*E)+","+(this._x1=r+se*g)+","+(this._y1=n+se*v)}},arc:function(r,n,i,a,c,p){r=+r,n=+n,i=+i,p=!!p;var d=i*Math.cos(a),g=i*Math.sin(a),v=r+d,A=n+g,x=1^p,k=p?a-c:c-a;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+v+","+A:(Math.abs(this._x1-v)>er||Math.abs(this._y1-A)>er)&&(this._+="L"+v+","+A),i&&(k<0&&(k=k%pt+pt),k>f0?this._+="A"+i+","+i+",0,1,"+x+","+(r-d)+","+(n-g)+"A"+i+","+i+",0,1,"+x+","+(this._x1=v)+","+(this._y1=A):k>er&&(this._+="A"+i+","+i+",0,"+ +(k>=ht)+","+x+","+(this._x1=r+i*Math.cos(c))+","+(this._y1=n+i*Math.sin(c))))},rect:function(r,n,i,a){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+n)+"h"+ +i+"v"+ +a+"h"+-i+"Z"},toString:function(){return this._}};function h0(r,n){switch(arguments.length){case 0:break;case 1:this.range(r);break;default:this.range(n).domain(r);break}return this}const Au=Symbol("implicit");function ao(){var r=new Map,n=[],i=[],a=Au;function c(p){var d=p+"",g=r.get(d);if(!g){if(a!==Au)return a;r.set(d,g=n.push(p))}return i[(g-1)%i.length]}return c.domain=function(p){if(!arguments.length)return n.slice();n=[],r=new Map;for(const d of p){const g=d+"";r.has(g)||r.set(g,n.push(d))}return c},c.range=function(p){return arguments.length?(i=Array.from(p),c):i.slice()},c.unknown=function(p){return arguments.length?(a=p,c):a},c.copy=function(){return ao(n,i).unknown(a)},h0.apply(c,arguments),c}function p0(r){for(var n=r.length/6|0,i=new Array(n),a=0;a<n;)i[a]="#"+r.slice(a*6,++a*6);return i}const d0=p0("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");function bu(r){return function(){return r}}var g0=Array.prototype.slice;function m0(r){return r[0]}function v0(r){return r[1]}function x0(r){return r.source}function y0(r){return r.target}function A0(r){var n=x0,i=y0,a=m0,c=v0,p=null;function d(){var g,v=g0.call(arguments),A=n.apply(this,v),x=i.apply(this,v);if(p||(p=g=lo()),r(p,+a.apply(this,(v[0]=A,v)),+c.apply(this,v),+a.apply(this,(v[0]=x,v)),+c.apply(this,v)),g)return p=null,g+""||null}return d.source=function(g){return arguments.length?(n=g,d):n},d.target=function(g){return arguments.length?(i=g,d):i},d.x=function(g){return arguments.length?(a=typeof g=="function"?g:bu(+g),d):a},d.y=function(g){return arguments.length?(c=typeof g=="function"?g:bu(+g),d):c},d.context=function(g){return arguments.length?(p=g??null,d):p},d}function b0(r,n,i,a,c){r.moveTo(n,i),r.bezierCurveTo(n=(n+a)/2,i,n,c,a,c)}function w0(){return A0(b0)}const Zr=r=>()=>r;function _0(r,{sourceEvent:n,target:i,transform:a,dispatch:c}){Object.defineProperties(this,{type:{value:r,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},transform:{value:a,enumerable:!0,configurable:!0},_:{value:c}})}function ze(r,n,i){this.k=r,this.x=n,this.y=i}ze.prototype={constructor:ze,scale:function(r){return r===1?this:new ze(this.k*r,this.x,this.y)},translate:function(r,n){return r===0&n===0?this:new ze(this.k,this.x+this.k*r,this.y+this.k*n)},apply:function(r){return[r[0]*this.k+this.x,r[1]*this.k+this.y]},applyX:function(r){return r*this.k+this.x},applyY:function(r){return r*this.k+this.y},invert:function(r){return[(r[0]-this.x)/this.k,(r[1]-this.y)/this.k]},invertX:function(r){return(r-this.x)/this.k},invertY:function(r){return(r-this.y)/this.k},rescaleX:function(r){return r.copy().domain(r.range().map(this.invertX,this).map(r.invert,r))},rescaleY:function(r){return r.copy().domain(r.range().map(this.invertY,this).map(r.invert,r))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var xn=new ze(1,0,0);un.prototype=ze.prototype;function un(r){for(;!r.__zoom;)if(!(r=r.parentNode))return xn;return r.__zoom}function Jn(r){r.stopImmediatePropagation()}function Dr(r){r.preventDefault(),r.stopImmediatePropagation()}function C0(r){return(!r.ctrlKey||r.type==="wheel")&&!r.button}function k0(){var r=this;return r instanceof SVGElement?(r=r.ownerSVGElement||r,r.hasAttribute("viewBox")?(r=r.viewBox.baseVal,[[r.x,r.y],[r.x+r.width,r.y+r.height]]):[[0,0],[r.width.baseVal.value,r.height.baseVal.value]]):[[0,0],[r.clientWidth,r.clientHeight]]}function wu(){return this.__zoom||xn}function D0(r){return-r.deltaY*(r.deltaMode===1?.05:r.deltaMode?1:.002)*(r.ctrlKey?10:1)}function E0(){return navigator.maxTouchPoints||"ontouchstart"in this}function S0(r,n,i){var a=r.invertX(n[0][0])-i[0][0],c=r.invertX(n[1][0])-i[1][0],p=r.invertY(n[0][1])-i[0][1],d=r.invertY(n[1][1])-i[1][1];return r.translate(c>a?(a+c)/2:Math.min(0,a)||Math.max(0,c),d>p?(p+d)/2:Math.min(0,p)||Math.max(0,d))}function F0(){var r=C0,n=k0,i=S0,a=D0,c=E0,p=[0,1/0],d=[[-1/0,-1/0],[1/0,1/0]],g=250,v=Qh,A=vt("start","zoom","end"),x,k,D,E=500,j=150,z=0,Z=10;function q(w){w.property("__zoom",wu).on("wheel.zoom",I).on("mousedown.zoom",U).on("dblclick.zoom",W).filter(c).on("touchstart.zoom",ie).on("touchmove.zoom",J).on("touchend.zoom touchcancel.zoom",C).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}q.transform=function(w,M,S,L){var X=w.selection?w.selection():w;X.property("__zoom",wu),w!==X?ce(w,M,S,L):X.interrupt().each(function(){oe(this,arguments).event(L).start().zoom(null,typeof M=="function"?M.apply(this,arguments):M).end()})},q.scaleBy=function(w,M,S,L){q.scaleTo(w,function(){var X=this.__zoom.k,K=typeof M=="function"?M.apply(this,arguments):M;return X*K},S,L)},q.scaleTo=function(w,M,S,L){q.transform(w,function(){var X=n.apply(this,arguments),K=this.__zoom,$=S==null?se(X):typeof S=="function"?S.apply(this,arguments):S,re=K.invert($),le=typeof M=="function"?M.apply(this,arguments):M;return i(ue(Y(K,le),$,re),X,d)},S,L)},q.translateBy=function(w,M,S,L){q.transform(w,function(){return i(this.__zoom.translate(typeof M=="function"?M.apply(this,arguments):M,typeof S=="function"?S.apply(this,arguments):S),n.apply(this,arguments),d)},null,L)},q.translateTo=function(w,M,S,L,X){q.transform(w,function(){var K=n.apply(this,arguments),$=this.__zoom,re=L==null?se(K):typeof L=="function"?L.apply(this,arguments):L;return i(xn.translate(re[0],re[1]).scale($.k).translate(typeof M=="function"?-M.apply(this,arguments):-M,typeof S=="function"?-S.apply(this,arguments):-S),K,d)},L,X)};function Y(w,M){return M=Math.max(p[0],Math.min(p[1],M)),M===w.k?w:new ze(M,w.x,w.y)}function ue(w,M,S){var L=M[0]-S[0]*w.k,X=M[1]-S[1]*w.k;return L===w.x&&X===w.y?w:new ze(w.k,L,X)}function se(w){return[(+w[0][0]+ +w[1][0])/2,(+w[0][1]+ +w[1][1])/2]}function ce(w,M,S,L){w.on("start.zoom",function(){oe(this,arguments).event(L).start()}).on("interrupt.zoom end.zoom",function(){oe(this,arguments).event(L).end()}).tween("zoom",function(){var X=this,K=arguments,$=oe(X,K).event(L),re=n.apply(X,K),le=S==null?se(re):typeof S=="function"?S.apply(X,K):S,fe=Math.max(re[1][0]-re[0][0],re[1][1]-re[0][1]),ae=X.__zoom,P=typeof M=="function"?M.apply(X,K):M,G=v(ae.invert(le).concat(fe/ae.k),P.invert(le).concat(fe/P.k));return function(te){if(te===1)te=P;else{var ne=G(te),he=fe/ne[2];te=new ze(he,le[0]-ne[0]*he,le[1]-ne[1]*he)}$.zoom(null,te)}})}function oe(w,M,S){return!S&&w.__zooming||new R(w,M)}function R(w,M){this.that=w,this.args=M,this.active=0,this.sourceEvent=null,this.extent=n.apply(w,M),this.taps=0}R.prototype={event:function(w){return w&&(this.sourceEvent=w),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(w,M){return this.mouse&&w!=="mouse"&&(this.mouse[1]=M.invert(this.mouse[0])),this.touch0&&w!=="touch"&&(this.touch0[1]=M.invert(this.touch0[0])),this.touch1&&w!=="touch"&&(this.touch1[1]=M.invert(this.touch1[0])),this.that.__zoom=M,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(w){var M=Xe(this.that).datum();A.call(w,this.that,new _0(w,{sourceEvent:this.sourceEvent,target:q,type:w,transform:this.that.__zoom,dispatch:A}),M)}};function I(w,...M){if(!r.apply(this,arguments))return;var S=oe(this,M).event(w),L=this.__zoom,X=Math.max(p[0],Math.min(p[1],L.k*Math.pow(2,a.apply(this,arguments)))),K=Je(w);if(S.wheel)(S.mouse[0][0]!==K[0]||S.mouse[0][1]!==K[1])&&(S.mouse[1]=L.invert(S.mouse[0]=K)),clearTimeout(S.wheel);else{if(L.k===X)return;S.mouse=[K,L.invert(K)],tn(this),S.start()}Dr(w),S.wheel=setTimeout($,j),S.zoom("mouse",i(ue(Y(L,X),S.mouse[0],S.mouse[1]),S.extent,d));function $(){S.wheel=null,S.end()}}function U(w,...M){if(D||!r.apply(this,arguments))return;var S=oe(this,M,!0).event(w),L=Xe(w.view).on("mousemove.zoom",le,!0).on("mouseup.zoom",fe,!0),X=Je(w,K),K=w.currentTarget,$=w.clientX,re=w.clientY;Sh(w.view),Jn(w),S.mouse=[X,this.__zoom.invert(X)],tn(this),S.start();function le(ae){if(Dr(ae),!S.moved){var P=ae.clientX-$,G=ae.clientY-re;S.moved=P*P+G*G>z}S.event(ae).zoom("mouse",i(ue(S.that.__zoom,S.mouse[0]=Je(ae,K),S.mouse[1]),S.extent,d))}function fe(ae){L.on("mousemove.zoom mouseup.zoom",null),Fh(ae.view,S.moved),Dr(ae),S.event(ae).end()}}function W(w,...M){if(r.apply(this,arguments)){var S=this.__zoom,L=Je(w.changedTouches?w.changedTouches[0]:w,this),X=S.invert(L),K=S.k*(w.shiftKey?.5:2),$=i(ue(Y(S,K),L,X),n.apply(this,M),d);Dr(w),g>0?Xe(this).transition().duration(g).call(ce,$,L,w):Xe(this).call(q.transform,$,L,w)}}function ie(w,...M){if(r.apply(this,arguments)){var S=w.touches,L=S.length,X=oe(this,M,w.changedTouches.length===L).event(w),K,$,re,le;for(Jn(w),$=0;$<L;++$)re=S[$],le=Je(re,this),le=[le,this.__zoom.invert(le),re.identifier],X.touch0?!X.touch1&&X.touch0[2]!==le[2]&&(X.touch1=le,X.taps=0):(X.touch0=le,K=!0,X.taps=1+!!x);x&&(x=clearTimeout(x)),K&&(X.taps<2&&(k=le[0],x=setTimeout(function(){x=null},E)),tn(this),X.start())}}function J(w,...M){if(this.__zooming){var S=oe(this,M).event(w),L=w.changedTouches,X=L.length,K,$,re,le;for(Dr(w),K=0;K<X;++K)$=L[K],re=Je($,this),S.touch0&&S.touch0[2]===$.identifier?S.touch0[0]=re:S.touch1&&S.touch1[2]===$.identifier&&(S.touch1[0]=re);if($=S.that.__zoom,S.touch1){var fe=S.touch0[0],ae=S.touch0[1],P=S.touch1[0],G=S.touch1[1],te=(te=P[0]-fe[0])*te+(te=P[1]-fe[1])*te,ne=(ne=G[0]-ae[0])*ne+(ne=G[1]-ae[1])*ne;$=Y($,Math.sqrt(te/ne)),re=[(fe[0]+P[0])/2,(fe[1]+P[1])/2],le=[(ae[0]+G[0])/2,(ae[1]+G[1])/2]}else if(S.touch0)re=S.touch0[0],le=S.touch0[1];else return;S.zoom("touch",i(ue($,re,le),S.extent,d))}}function C(w,...M){if(this.__zooming){var S=oe(this,M).event(w),L=w.changedTouches,X=L.length,K,$;for(Jn(w),D&&clearTimeout(D),D=setTimeout(function(){D=null},E),K=0;K<X;++K)$=L[K],S.touch0&&S.touch0[2]===$.identifier?delete S.touch0:S.touch1&&S.touch1[2]===$.identifier&&delete S.touch1;if(S.touch1&&!S.touch0&&(S.touch0=S.touch1,delete S.touch1),S.touch0)S.touch0[1]=this.__zoom.invert(S.touch0[0]);else if(S.end(),S.taps===2&&($=Je($,this),Math.hypot(k[0]-$[0],k[1]-$[1])<Z)){var re=Xe(this).on("dblclick.zoom");re&&re.apply(this,arguments)}}}return q.wheelDelta=function(w){return arguments.length?(a=typeof w=="function"?w:Zr(+w),q):a},q.filter=function(w){return arguments.length?(r=typeof w=="function"?w:Zr(!!w),q):r},q.touchable=function(w){return arguments.length?(c=typeof w=="function"?w:Zr(!!w),q):c},q.extent=function(w){return arguments.length?(n=typeof w=="function"?w:Zr([[+w[0][0],+w[0][1]],[+w[1][0],+w[1][1]]]),q):n},q.scaleExtent=function(w){return arguments.length?(p[0]=+w[0],p[1]=+w[1],q):[p[0],p[1]]},q.translateExtent=function(w){return arguments.length?(d[0][0]=+w[0][0],d[1][0]=+w[1][0],d[0][1]=+w[0][1],d[1][1]=+w[1][1],q):[[d[0][0],d[0][1]],[d[1][0],d[1][1]]]},q.constrain=function(w){return arguments.length?(i=w,q):i},q.duration=function(w){return arguments.length?(g=+w,q):g},q.interpolate=function(w){return arguments.length?(v=w,q):v},q.on=function(){var w=A.on.apply(A,arguments);return w===A?q:w},q.clickDistance=function(w){return arguments.length?(z=(w=+w)*w,q):Math.sqrt(z)},q.tapDistance=function(w){return arguments.length?(Z=+w,q):Z},q}/*! markmap-view v0.14.4 | MIT License */function Ye(){return Ye=Object.assign||function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])}return r},Ye.apply(this,arguments)}function B0(r){var n=0,i=r.children,a=i&&i.length;if(!a)n=1;else for(;--a>=0;)n+=i[a].value;r.value=n}function T0(){return this.eachAfter(B0)}function M0(r){var n=this,i,a=[n],c,p,d;do for(i=a.reverse(),a=[];n=i.pop();)if(r(n),c=n.children,c)for(p=0,d=c.length;p<d;++p)a.push(c[p]);while(a.length);return this}function R0(r){for(var n=this,i=[n],a,c;n=i.pop();)if(r(n),a=n.children,a)for(c=a.length-1;c>=0;--c)i.push(a[c]);return this}function I0(r){for(var n=this,i=[n],a=[],c,p,d;n=i.pop();)if(a.push(n),c=n.children,c)for(p=0,d=c.length;p<d;++p)i.push(c[p]);for(;n=a.pop();)r(n);return this}function N0(r){return this.eachAfter(function(n){for(var i=+r(n.data)||0,a=n.children,c=a&&a.length;--c>=0;)i+=a[c].value;n.value=i})}function q0(r){return this.eachBefore(function(n){n.children&&n.children.sort(r)})}function O0(r){for(var n=this,i=L0(n,r),a=[n];n!==i;)n=n.parent,a.push(n);for(var c=a.length;r!==i;)a.splice(c,0,r),r=r.parent;return a}function L0(r,n){if(r===n)return r;var i=r.ancestors(),a=n.ancestors(),c=null;for(r=i.pop(),n=a.pop();r===n;)c=r,r=i.pop(),n=a.pop();return c}function P0(){for(var r=this,n=[r];r=r.parent;)n.push(r);return n}function z0(){var r=[];return this.each(function(n){r.push(n)}),r}function $0(){var r=[];return this.eachBefore(function(n){n.children||r.push(n)}),r}function U0(){var r=this,n=[];return r.each(function(i){i!==r&&n.push({source:i.parent,target:i})}),n}function Ct(r,n){var i=new hn(r),a=+r.value&&(i.value=r.value),c,p=[i],d,g,v,A;for(n==null&&(n=j0);c=p.pop();)if(a&&(c.value=+c.data.value),(g=n(c.data))&&(A=g.length))for(c.children=new Array(A),v=A-1;v>=0;--v)p.push(d=c.children[v]=new hn(g[v])),d.parent=c,d.depth=c.depth+1;return i.eachBefore(G0)}function H0(){return Ct(this).eachBefore(V0)}function j0(r){return r.children}function V0(r){r.data=r.data.data}function G0(r){var n=0;do r.height=n;while((r=r.parent)&&r.height<++n)}function hn(r){this.data=r,this.depth=this.height=0,this.parent=null}hn.prototype=Ct.prototype={constructor:hn,count:T0,each:M0,eachAfter:I0,eachBefore:R0,sum:N0,sort:q0,path:O0,ancestors:P0,descendants:z0,leaves:$0,links:U0,copy:H0};var Y0="d3-flextree",X0="2.1.2",K0="build/d3-flextree.js",W0="index",Z0={name:"Chris Maloney",url:"http://chrismaloney.org"},J0="Flexible tree layout algorithm that allows for variable node sizes.",Q0=["d3","d3-module","layout","tree","hierarchy","d3-hierarchy","plugin","d3-plugin","infovis","visualization","2d"],e2="https://github.com/klortho/d3-flextree",r2="WTFPL",n2={type:"git",url:"https://github.com/klortho/d3-flextree.git"},t2={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"},i2={"d3-hierarchy":"^1.1.5"},u2={"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"},o2={name:Y0,version:X0,main:K0,module:W0,"jsnext:main":"index",author:Z0,description:J0,keywords:Q0,homepage:e2,license:r2,repository:n2,scripts:t2,dependencies:i2,devDependencies:u2};const{version:l2}=o2,a2=Object.freeze({children:r=>r.children,nodeSize:r=>r.data.size,spacing:0});function co(r){const n=Object.assign({},a2,r);function i(g){const v=n[g];return typeof v=="function"?v:()=>v}function a(g){const v=d(p(),g,A=>A.children);return v.update(),v.data}function c(){const g=i("nodeSize"),v=i("spacing");return class so extends Ct.prototype.constructor{constructor(x){super(x)}copy(){const x=d(this.constructor,this,k=>k.children);return x.each(k=>k.data=k.data.data),x}get size(){return g(this)}spacing(x){return v(this,x)}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 x=this.ancestors();return x[x.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((x,k)=>so.maxExtents(x,k.extents),this.nodeExtents)}get nodeExtents(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}static maxExtents(x,k){return{top:Math.min(x.top,k.top),bottom:Math.max(x.bottom,k.bottom),left:Math.min(x.left,k.left),right:Math.max(x.right,k.right)}}}}function p(){const g=c(),v=i("nodeSize"),A=i("spacing");return class extends g{constructor(x){super(x),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 v(this.data)}spacing(x){return A(this.data,x.data)}get x(){return this.data.x}set x(x){this.data.x=x}get y(){return this.data.y}set y(x){this.data.y=x}update(){return fo(this),ho(this),this}}}function d(g,v,A){const x=(k,D)=>{const E=new g(k);Object.assign(E,{parent:D,depth:D===null?0:D.depth+1,height:0,length:1});const j=A(k)||[];return E.children=j.length===0?null:j.map(z=>x(z,E)),E.children&&Object.assign(E,E.children.reduce((z,Z)=>({height:Math.max(z.height,Z.height+1),length:z.length+Z.length}),E)),E};return x(v,null)}return Object.assign(a,{nodeSize(g){return arguments.length?(n.nodeSize=g,a):n.nodeSize},spacing(g){return arguments.length?(n.spacing=g,a):n.spacing},children(g){return arguments.length?(n.children=g,a):n.children},hierarchy(g,v){const A=typeof v>"u"?n.children:v;return d(c(),g,A)},dump(g){const v=i("nodeSize"),A=x=>k=>{const D=x+"  ",E=x+"    ",{x:j,y:z}=k,Z=v(k),q=k.children||[],Y=q.length===0?" ":`,${D}children: [${E}${q.map(A(E)).join(E)}${D}],${x}`;return`{ size: [${Z.join(", ")}],${D}x: ${j}, y: ${z}${Y}},`};return A(`
`)(g)}}),a}co.version=l2;const fo=(r,n=0)=>(r.y=n,(r.children||[]).reduce((i,a)=>{const[c,p]=i;fo(a,r.y+r.ySize);const d=(c===0?a.lExt:a.rExt).bottom;c!==0&&c2(r,c,p);const g=x2(d,c,p);return[c+1,g]},[0,null]),s2(r),v2(r),r),ho=(r,n,i)=>{typeof n>"u"&&(n=-r.relX-r.prelim,i=0);const a=n+r.relX;return r.relX=a+r.prelim-i,r.prelim=0,r.x=i+r.relX,(r.children||[]).forEach(c=>ho(c,a,r.x)),r},s2=r=>{(r.children||[]).reduce((n,i)=>{const[a,c]=n,p=a+i.shift,d=c+p+i.change;return i.relX+=d,[p,d]},[0,0])},c2=(r,n,i)=>{const a=r.children[n-1],c=r.children[n];let p=a,d=a.relX,g=c,v=c.relX,A=!0;for(;p&&g;){p.bottom>i.lowY&&(i=i.next);const x=d+p.prelim-(v+g.prelim)+p.xSize/2+g.xSize/2+p.spacing(g);(x>0||x<0&&A)&&(v+=x,f2(c,x),h2(r,n,i.index,x)),A=!1;const k=p.bottom,D=g.bottom;k<=D&&(p=d2(p),p&&(d+=p.relX)),k>=D&&(g=p2(g),g&&(v+=g.relX))}!p&&g?g2(r,n,g,v):p&&!g&&m2(r,n,p,d)},f2=(r,n)=>{r.relX+=n,r.lExtRelX+=n,r.rExtRelX+=n},h2=(r,n,i,a)=>{const c=r.children[n],p=n-i;if(p>1){const d=a/p;r.children[i+1].shift+=d,c.shift-=d,c.change-=a-d}},p2=r=>r.hasChildren?r.firstChild:r.lThr,d2=r=>r.hasChildren?r.lastChild:r.rThr,g2=(r,n,i,a)=>{const c=r.firstChild,p=c.lExt,d=r.children[n];p.lThr=i;const g=a-i.relX-c.lExtRelX;p.relX+=g,p.prelim-=g,c.lExt=d.lExt,c.lExtRelX=d.lExtRelX},m2=(r,n,i,a)=>{const c=r.children[n],p=c.rExt,d=r.children[n-1];p.rThr=i;const g=a-i.relX-c.rExtRelX;p.relX+=g,p.prelim-=g,c.rExt=d.rExt,c.rExtRelX=d.rExtRelX},v2=r=>{if(r.hasChildren){const n=r.firstChild,i=r.lastChild,a=(n.prelim+n.relX-n.xSize/2+i.relX+i.prelim+i.xSize/2)/2;Object.assign(r,{prelim:a,lExt:n.lExt,lExtRelX:n.lExtRelX,rExt:i.rExt,rExtRelX:i.rExtRelX})}},x2=(r,n,i)=>{for(;i!==null&&r>=i.lowY;)i=i.next;return{lowY:r,index:n,next:i}};/*! @gera2ld/jsx-dom v2.1.1 | ISC License */var po=1,go=2,rr=1,mo=4,y2="http://www.w3.org/2000/svg",Qn="http://www.w3.org/1999/xlink",A2={show:Qn,actuate:Qn,href:Qn},b2=function(n){return typeof n=="string"||typeof n=="number"},w2=function(n){return(n==null?void 0:n.vtype)===po},_2=function(n){return(n==null?void 0:n.vtype)===go};function Jr(r,n){var i;if(typeof r=="string")i=po;else if(typeof r=="function")i=go;else throw new Error("Invalid VNode type");return{vtype:i,type:r,props:n}}function C2(r){return r.children}var k2={isSvg:!1};function gt(r,n){if(n.type===rr)n.node!=null&&r.append(n.node);else if(n.type===mo)n.children.forEach(function(i){gt(r,i)});else throw new Error("Unkown ref type "+JSON.stringify(n))}function D2(r,n,i){for(var a in n)a==="key"||a==="children"||a==="ref"||(a==="dangerouslySetInnerHTML"?r.innerHTML=n[a].__html:a==="innerHTML"||a==="textContent"||a==="innerText"?r[a]=n[a]:a.startsWith("on")?r[a.toLowerCase()]=n[a]:S2(r,a,n[a],i.isSvg))}var E2={className:"class",labelFor:"for"};function S2(r,n,i,a){if(n=E2[n]||n,i===!0)r.setAttribute(n,"");else if(i===!1)r.removeAttribute(n);else{var c=a?A2[n]:void 0;c!==void 0?r.setAttributeNS(c,n,i):r.setAttribute(n,i)}}function Fr(r,n){if(n===void 0&&(n=k2),r==null||typeof r=="boolean")return{type:rr,node:null};if(r instanceof Node)return{type:rr,node:r};if(_2(r)){var i=r,a=i.type,c=i.props;if(a===C2){var p=document.createDocumentFragment();if(c.children){var d=Fr(c.children,n);gt(p,d)}return{type:rr,node:p}}var g=a(c);return Fr(g,n)}if(b2(r))return{type:rr,node:document.createTextNode(""+r)};if(w2(r)){var v,A=r,x=A.type,k=A.props;!n.isSvg&&x==="svg"&&(n=Object.assign({},n,{isSvg:!0})),n.isSvg?v=document.createElementNS(y2,x):v=document.createElement(x),D2(v,k,n);var D;if(k.children){var E=n;n.isSvg&&x==="foreignObject"&&(E=Object.assign({},E,{isSvg:!1})),D=Fr(k.children,E)}D!=null&&gt(v,D);var j=k.ref;return typeof j=="function"&&j(v),{type:rr,node:v}}if(Array.isArray(r))return{type:mo,children:r.map(function(z){return Fr(z,n)})};throw new Error("mount: Invalid Vnode!")}function vo(r){for(var n=[],i=0;i<r.length;i+=1){var a=r[i];Array.isArray(a)?n=n.concat(vo(a)):a!=null&&n.push(a)}return n}function xo(r){return r.type===rr?r.node:r.children.map(xo)}function on(r){return Array.isArray(r)?vo(r.map(on)):xo(Fr(r))}var F2=".markmap{font:300 16px/20px sans-serif}.markmap-link{fill:none}.markmap-node>circle{cursor:pointer}.markmap-foreign{display:inline-block}.markmap-foreign a{color:#0097e6}.markmap-foreign a:hover{color:#00a8ff}.markmap-foreign code{background-color:#f0f0f0;border-radius:2px;color:#555;font-size:calc(1em - 2px)}.markmap-foreign :not(pre)>code{padding:.2em .4em}.markmap-foreign del{text-decoration:line-through}.markmap-foreign em{font-style:italic}.markmap-foreign strong{font-weight:bolder}.markmap-foreign mark{background:#ffeaa7}.markmap-foreign pre,.markmap-foreign pre[class*=language-]{margin:0;padding:.2em .4em}",B2=".markmap-container{height:0;left:-100px;overflow:hidden;position:absolute;top:-100px;width:0}.markmap-container>.markmap-foreign{display:inline-block}.markmap-container>.markmap-foreign>div:last-child{white-space:nowrap}";function _u(r){const n=r.data;return Math.max(4-2*n.depth,1.5)}function T2(r,n){tt(r,(i,a)=>{i.ySizeInner=i.ySize-n,i.y+=n,a()},"children")}function Cu(r,n){const i=Gc(r,n);return r[i]}function ku(r){r.stopPropagation()}function M2(){return{transformHtml:new Ru}}const R2=new Ru,I2=ao(d0),N2=typeof navigator<"u"&&navigator.userAgent.includes("Macintosh");class Ir{constructor(n,i){this.revokers=[],["handleZoom","handleClick","handlePan"].forEach(a=>{this[a]=this[a].bind(this)}),this.viewHooks=M2(),this.svg=n.datum?n:Xe(n),this.styleNode=this.svg.append("style"),this.zoom=F0().filter(a=>this.options.scrollForPan&&a.type==="wheel"?a.ctrlKey&&!a.button:(!a.ctrlKey||a.type==="wheel")&&!a.button).on("zoom",this.handleZoom),this.setOptions(i),this.state={id:this.options.id||this.svg.attr("id")||jc()},this.g=this.svg.append("g"),this.revokers.push(R2.tap(()=>{this.setData()}))}getStyleContent(){const{style:n}=this.options,{id:i}=this.state,a=typeof n=="function"?n(i):"";return[this.options.embedGlobalCSS&&F2,a].filter(Boolean).join(`
`)}updateStyle(){this.svg.attr("class",Vc(this.svg.attr("class"),"markmap",this.state.id));const n=this.getStyleContent();this.styleNode.text(n)}handleZoom(n){const{transform:i}=n;this.g.attr("transform",i)}handlePan(n){n.preventDefault();const i=un(this.svg.node()),a=i.translate(-n.deltaX/i.k,-n.deltaY/i.k);this.svg.call(this.zoom.transform,a)}handleClick(n,i){var a;const{data:c}=i;c.payload=Ye({},c.payload,{fold:(a=c.payload)!=null&&a.fold?0:1}),this.renderData(i.data)}initializeData(n){let i=0;const{color:a,nodeMinHeight:c,maxWidth:p,initialExpandLevel:d}=this.options,{id:g}=this.state,v=on(Jr("div",{className:`markmap-container markmap ${g}-g`})),A=on(Jr("style",{children:[this.getStyleContent(),B2].join(`
`)}));document.body.append(v,A);const x=p?`max-width: ${p}px`:"";let k=0;tt(n,(E,j,z)=>{var Z,q,Y;E.children=(Z=E.children)==null?void 0:Z.map(ce=>Ye({},ce)),i+=1;const ue=on(Jr("div",{className:"markmap-foreign",style:x,children:Jr("div",{dangerouslySetInnerHTML:{__html:E.content}})}));v.append(ue),E.state=Ye({},E.state,{id:i,el:ue.firstChild}),E.state.path=[z==null||(q=z.state)==null?void 0:q.path,E.state.id].filter(Boolean).join("."),a(E);const se=((Y=E.payload)==null?void 0:Y.fold)===2;se?k+=1:(k||d>=0&&E.depth>=d)&&(E.payload=Ye({},E.payload,{fold:1})),j(),se&&(k-=1)});const D=Iu(v.childNodes).map(E=>E.firstChild);this.viewHooks.transformHtml.call(this,D),D.forEach(E=>{E.parentNode.append(E.cloneNode(!0))}),tt(n,(E,j,z)=>{var Z;const q=E.state.el.getBoundingClientRect();E.content=E.state.el.innerHTML,E.state.size=[Math.ceil(q.width)+1,Math.max(Math.ceil(q.height),c)],E.state.key=[z==null||(Z=z.state)==null?void 0:Z.id,E.state.id].filter(Boolean).join(".")+E.content,j()}),v.remove(),A.remove()}setOptions(n){this.options=Ye({},Ir.defaultOptions,n),this.options.zoom?this.svg.call(this.zoom):this.svg.on(".zoom",null),this.svg.on("wheel",this.options.pan?this.handlePan:null)}setData(n,i){n&&(this.state.data=n),i&&this.setOptions(i),this.initializeData(this.state.data),this.updateStyle(),this.renderData()}renderData(n){var i,a;if(!this.state.data)return;const{spacingHorizontal:c,paddingX:p,spacingVertical:d,autoFit:g,color:v}=this.options,A=co().children(C=>{var w;return!((w=C.payload)!=null&&w.fold)&&C.children}).nodeSize(C=>{const[w,M]=C.data.state.size;return[M,w+(w?p*2:0)+c]}).spacing((C,w)=>C.parent===w.parent?d:d*2),x=A.hierarchy(this.state.data);A(x),T2(x,c);const k=x.descendants().reverse(),D=x.links(),E=w0(),j=tu(k,C=>C.x-C.xSize/2),z=nu(k,C=>C.x+C.xSize/2),Z=tu(k,C=>C.y),q=nu(k,C=>C.y+C.ySizeInner);Object.assign(this.state,{minX:j,maxX:z,minY:Z,maxY:q}),g&&this.fit();const Y=n&&k.find(C=>C.data===n)||x,ue=(i=Y.data.state.x0)!=null?i:Y.x,se=(a=Y.data.state.y0)!=null?a:Y.y,ce=this.g.selectAll(cr("g")).data(k,C=>C.data.state.key),oe=ce.enter().append("g").attr("data-depth",C=>C.data.depth).attr("data-path",C=>C.data.state.path).attr("transform",C=>`translate(${se+Y.ySizeInner-C.ySizeInner},${ue+Y.xSize/2-C.xSize})`),R=this.transition(ce.exit());R.select("line").attr("x1",C=>C.ySizeInner).attr("x2",C=>C.ySizeInner),R.select("foreignObject").style("opacity",0),R.attr("transform",C=>`translate(${Y.y+Y.ySizeInner-C.ySizeInner},${Y.x+Y.xSize/2-C.xSize})`).remove();const I=ce.merge(oe).attr("class",C=>{var w;return["markmap-node",((w=C.data.payload)==null?void 0:w.fold)&&"markmap-fold"].filter(Boolean).join(" ")});this.transition(I).attr("transform",C=>`translate(${C.y},${C.x-C.xSize/2})`);const U=I.selectAll(cr("line")).data(C=>[C],C=>C.data.state.key).join(C=>C.append("line").attr("x1",w=>w.ySizeInner).attr("x2",w=>w.ySizeInner),C=>C,C=>C.remove());this.transition(U).attr("x1",-1).attr("x2",C=>C.ySizeInner+2).attr("y1",C=>C.xSize).attr("y2",C=>C.xSize).attr("stroke",C=>v(C.data)).attr("stroke-width",_u);const W=I.selectAll(cr("circle")).data(C=>C.data.children?[C]:[],C=>C.data.state.key).join(C=>C.append("circle").attr("stroke-width","1.5").attr("cx",w=>w.ySizeInner).attr("cy",w=>w.xSize).attr("r",0).on("click",(w,M)=>this.handleClick(w,M)),C=>C,C=>C.remove());this.transition(W).attr("r",6).attr("cx",C=>C.ySizeInner).attr("cy",C=>C.xSize).attr("stroke",C=>v(C.data)).attr("fill",C=>{var w;return(w=C.data.payload)!=null&&w.fold&&C.data.children?v(C.data):"#fff"});const ie=I.selectAll(cr("foreignObject")).data(C=>[C],C=>C.data.state.key).join(C=>{const w=C.append("foreignObject").attr("class","markmap-foreign").attr("x",p).attr("y",0).style("opacity",0).on("mousedown",ku).on("dblclick",ku);return w.append("xhtml:div").select(function(S){const L=S.data.state.el.cloneNode(!0);return this.replaceWith(L),L}).attr("xmlns","http://www.w3.org/1999/xhtml"),w},C=>C,C=>C.remove()).attr("width",C=>Math.max(0,C.ySizeInner-p*2)).attr("height",C=>C.xSize);this.transition(ie).style("opacity",1);const J=this.g.selectAll(cr("path")).data(D,C=>C.target.data.state.key).join(C=>{const w=[se+Y.ySizeInner,ue+Y.xSize/2];return C.insert("path","g").attr("class","markmap-link").attr("data-depth",M=>M.target.data.depth).attr("data-path",M=>M.target.data.state.path).attr("d",E({source:w,target:w}))},C=>C,C=>{const w=[Y.y+Y.ySizeInner,Y.x+Y.xSize/2];return this.transition(C).attr("d",E({source:w,target:w})).remove()});this.transition(J).attr("stroke",C=>v(C.target.data)).attr("stroke-width",C=>_u(C.target)).attr("d",C=>{const w=[C.source.y+C.source.ySizeInner,C.source.x+C.source.xSize/2],M=[C.target.y,C.target.x+C.target.xSize/2];return E({source:w,target:M})}),k.forEach(C=>{C.data.state.x0=C.x,C.data.state.y0=C.y})}transition(n){const{duration:i}=this.options;return n.transition().duration(i)}async fit(){const n=this.svg.node(),{width:i,height:a}=n.getBoundingClientRect(),{fitRatio:c}=this.options,{minX:p,maxX:d,minY:g,maxY:v}=this.state,A=v-g,x=d-p,k=Math.min(i/A*c,a/x*c,2),D=xn.translate((i-A*k)/2-g*k,(a-x*k)/2-p*k).scale(k);return this.transition(this.svg).call(this.zoom.transform,D).end().catch(Xn)}async ensureView(n,i){let a,c;if(this.g.selectAll(cr("g")).each(function(Y){Y.data===n&&(a=this,c=Y)}),!a||!c)return;const p=this.svg.node(),d=p.getBoundingClientRect(),g=un(p),[v,A]=[c.y,c.y+c.ySizeInner+2].map(q=>q*g.k+g.x),[x,k]=[c.x-c.xSize/2,c.x+c.xSize/2].map(q=>q*g.k+g.y),D=Ye({left:0,right:0,top:0,bottom:0},i),E=[D.left-v,d.width-D.right-A],j=[D.top-x,d.height-D.bottom-k],z=E[0]*E[1]>0?Cu(E,Math.abs)/g.k:0,Z=j[0]*j[1]>0?Cu(j,Math.abs)/g.k:0;if(z||Z){const q=g.translate(z,Z);return this.transition(this.svg).call(this.zoom.transform,q).end().catch(Xn)}}async rescale(n){const i=this.svg.node(),{width:a,height:c}=i.getBoundingClientRect(),p=a/2,d=c/2,g=un(i),v=g.translate((p-g.x)*(1-n)/g.k,(d-g.y)*(1-n)/g.k).scale(n);return this.transition(this.svg).call(this.zoom.transform,v).end().catch(Xn)}destroy(){this.svg.on(".zoom",null),this.svg.html(null),this.revokers.forEach(n=>{n()})}static create(n,i,a){const c=new Ir(n,i);return a&&(c.setData(a),c.fit()),c}}Ir.defaultOptions={autoFit:!1,color:r=>I2(`${r.state.path}`),duration:500,embedGlobalCSS:!0,fitRatio:.95,maxWidth:0,nodeMinHeight:16,paddingX:8,scrollForPan:N2,spacingHorizontal:80,spacingVertical:5,initialExpandLevel:-1,zoom:!0,pan:!0};var yo={exports:{}};(function(r,n){(function(i,a){a()})(fr,function(){function i(A,x){return typeof x>"u"?x={autoBom:!1}:typeof x!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),x={autoBom:!x}),x.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(A.type)?new Blob(["\uFEFF",A],{type:A.type}):A}function a(A,x,k){var D=new XMLHttpRequest;D.open("GET",A),D.responseType="blob",D.onload=function(){v(D.response,x,k)},D.onerror=function(){console.error("could not download file")},D.send()}function c(A){var x=new XMLHttpRequest;x.open("HEAD",A,!1);try{x.send()}catch{}return 200<=x.status&&299>=x.status}function p(A){try{A.dispatchEvent(new MouseEvent("click"))}catch{var x=document.createEvent("MouseEvents");x.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),A.dispatchEvent(x)}}var d=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof fr=="object"&&fr.global===fr?fr:void 0,g=d.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),v=d.saveAs||(typeof window!="object"||window!==d?function(){}:"download"in HTMLAnchorElement.prototype&&!g?function(A,x,k){var D=d.URL||d.webkitURL,E=document.createElement("a");x=x||A.name||"download",E.download=x,E.rel="noopener",typeof A=="string"?(E.href=A,E.origin===location.origin?p(E):c(E.href)?a(A,x,k):p(E,E.target="_blank")):(E.href=D.createObjectURL(A),setTimeout(function(){D.revokeObjectURL(E.href)},4e4),setTimeout(function(){p(E)},0))}:"msSaveOrOpenBlob"in navigator?function(A,x,k){if(x=x||A.name||"download",typeof A!="string")navigator.msSaveOrOpenBlob(i(A,k),x);else if(c(A))a(A,x,k);else{var D=document.createElement("a");D.href=A,D.target="_blank",setTimeout(function(){p(D)})}}:function(A,x,k,D){if(D=D||open("","_blank"),D&&(D.document.title=D.document.body.innerText="downloading..."),typeof A=="string")return a(A,x,k);var E=A.type==="application/octet-stream",j=/constructor/i.test(d.HTMLElement)||d.safari,z=/CriOS\/[\d]+/.test(navigator.userAgent);if((z||E&&j||g)&&typeof FileReader<"u"){var Z=new FileReader;Z.onloadend=function(){var ue=Z.result;ue=z?ue:ue.replace(/^data:[^;]*;/,"data:attachment/file;"),D?D.location.href=ue:location=ue,D=null},Z.readAsDataURL(A)}else{var q=d.URL||d.webkitURL,Y=q.createObjectURL(A);D?D.location=Y:location.href=Y,D=null,setTimeout(function(){q.revokeObjectURL(Y)},4e4)}});d.saveAs=v.saveAs=v,r.exports=v})})(yo);var et=yo.exports;function q2(r,n){if(r.match(/^[a-z]+:\/\//i))return r;if(r.match(/^\/\//))return window.location.protocol+r;if(r.match(/^[a-z]+:/i))return r;const i=document.implementation.createHTMLDocument(),a=i.createElement("base"),c=i.createElement("a");return i.head.appendChild(a),i.body.appendChild(c),n&&(a.href=n),c.href=r,c.href}const O2=(()=>{let r=0;const n=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(r+=1,`u${n()}${r}`)})();function $e(r){const n=[];for(let i=0,a=r.length;i<a;i++)n.push(r[i]);return n}function pn(r,n){const a=(r.ownerDocument.defaultView||window).getComputedStyle(r).getPropertyValue(n);return a?parseFloat(a.replace("px","")):0}function L2(r){const n=pn(r,"border-left-width"),i=pn(r,"border-right-width");return r.clientWidth+n+i}function P2(r){const n=pn(r,"border-top-width"),i=pn(r,"border-bottom-width");return r.clientHeight+n+i}function Ao(r,n={}){const i=n.width||L2(r),a=n.height||P2(r);return{width:i,height:a}}function z2(){let r,n;try{n=process}catch{}const i=n&&n.env?n.env.devicePixelRatio:null;return i&&(r=parseInt(i,10),Number.isNaN(r)&&(r=1)),r||window.devicePixelRatio||1}const ke=16384;function $2(r){(r.width>ke||r.height>ke)&&(r.width>ke&&r.height>ke?r.width>r.height?(r.height*=ke/r.width,r.width=ke):(r.width*=ke/r.height,r.height=ke):r.width>ke?(r.height*=ke/r.width,r.width=ke):(r.width*=ke/r.height,r.height=ke))}function dn(r){return new Promise((n,i)=>{const a=new Image;a.decode=()=>n(a),a.onload=()=>n(a),a.onerror=i,a.crossOrigin="anonymous",a.decoding="async",a.src=r})}async function U2(r){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(r)).then(encodeURIComponent).then(n=>`data:image/svg+xml;charset=utf-8,${n}`)}async function H2(r,n,i){const a="http://www.w3.org/2000/svg",c=document.createElementNS(a,"svg"),p=document.createElementNS(a,"foreignObject");return c.setAttribute("width",`${n}`),c.setAttribute("height",`${i}`),c.setAttribute("viewBox",`0 0 ${n} ${i}`),p.setAttribute("width","100%"),p.setAttribute("height","100%"),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("externalResourcesRequired","true"),c.appendChild(p),p.appendChild(r),U2(c)}const we=(r,n)=>{if(r instanceof n)return!0;const i=Object.getPrototypeOf(r);return i===null?!1:i.constructor.name===n.name||we(i,n)};function j2(r){const n=r.getPropertyValue("content");return`${r.cssText} content: '${n.replace(/'|"/g,"")}';`}function V2(r){return $e(r).map(n=>{const i=r.getPropertyValue(n),a=r.getPropertyPriority(n);return`${n}: ${i}${a?" !important":""};`}).join(" ")}function G2(r,n,i){const a=`.${r}:${n}`,c=i.cssText?j2(i):V2(i);return document.createTextNode(`${a}{${c}}`)}function Du(r,n,i){const a=window.getComputedStyle(r,i),c=a.getPropertyValue("content");if(c===""||c==="none")return;const p=O2();try{n.className=`${n.className} ${p}`}catch{return}const d=document.createElement("style");d.appendChild(G2(p,i,a)),n.appendChild(d)}function Y2(r,n){Du(r,n,":before"),Du(r,n,":after")}const Eu="application/font-woff",Su="image/jpeg",X2={woff:Eu,woff2:Eu,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Su,jpeg:Su,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function K2(r){const n=/\.([^./]*?)$/g.exec(r);return n?n[1]:""}function kt(r){const n=K2(r).toLowerCase();return X2[n]||""}function W2(r){return r.split(/,/)[1]}function mt(r){return r.search(/^(data:)/)!==-1}function bo(r,n){return`data:${n};base64,${r}`}async function wo(r,n,i){const a=await fetch(r,n);if(a.status===404)throw new Error(`Resource "${a.url}" not found`);const c=await a.blob();return new Promise((p,d)=>{const g=new FileReader;g.onerror=d,g.onloadend=()=>{try{p(i({res:a,result:g.result}))}catch(v){d(v)}},g.readAsDataURL(c)})}const rt={};function Z2(r,n,i){let a=r.replace(/\?.*/,"");return i&&(a=r),/ttf|otf|eot|woff2?/i.test(a)&&(a=a.replace(/.*\//,"")),n?`[${n}]${a}`:a}async function Dt(r,n,i){const a=Z2(r,n,i.includeQueryParams);if(rt[a]!=null)return rt[a];i.cacheBust&&(r+=(/\?/.test(r)?"&":"?")+new Date().getTime());let c;try{const p=await wo(r,i.fetchRequestInit,({res:d,result:g})=>(n||(n=d.headers.get("Content-Type")||""),W2(g)));c=bo(p,n)}catch(p){c=i.imagePlaceholder||"";let d=`Failed to fetch resource: ${r}`;p&&(d=typeof p=="string"?p:p.message),d&&console.warn(d)}return rt[a]=c,c}async function J2(r){const n=r.toDataURL();return n==="data:,"?r.cloneNode(!1):dn(n)}async function Q2(r,n){if(r.currentSrc){const p=document.createElement("canvas"),d=p.getContext("2d");p.width=r.clientWidth,p.height=r.clientHeight,d==null||d.drawImage(r,0,0,p.width,p.height);const g=p.toDataURL();return dn(g)}const i=r.poster,a=kt(i),c=await Dt(i,a,n);return dn(c)}async function ed(r){var n;try{if(!((n=r==null?void 0:r.contentDocument)===null||n===void 0)&&n.body)return await yn(r.contentDocument.body,{},!0)}catch{}return r.cloneNode(!1)}async function rd(r,n){return we(r,HTMLCanvasElement)?J2(r):we(r,HTMLVideoElement)?Q2(r,n):we(r,HTMLIFrameElement)?ed(r):r.cloneNode(!1)}const nd=r=>r.tagName!=null&&r.tagName.toUpperCase()==="SLOT";async function td(r,n,i){var a,c;let p=[];return nd(r)&&r.assignedNodes?p=$e(r.assignedNodes()):we(r,HTMLIFrameElement)&&(!((a=r.contentDocument)===null||a===void 0)&&a.body)?p=$e(r.contentDocument.body.childNodes):p=$e(((c=r.shadowRoot)!==null&&c!==void 0?c:r).childNodes),p.length===0||we(r,HTMLVideoElement)||await p.reduce((d,g)=>d.then(()=>yn(g,i)).then(v=>{v&&n.appendChild(v)}),Promise.resolve()),n}function id(r,n){const i=n.style;if(!i)return;const a=window.getComputedStyle(r);a.cssText?(i.cssText=a.cssText,i.transformOrigin=a.transformOrigin):$e(a).forEach(c=>{let p=a.getPropertyValue(c);c==="font-size"&&p.endsWith("px")&&(p=`${Math.floor(parseFloat(p.substring(0,p.length-2)))-.1}px`),we(r,HTMLIFrameElement)&&c==="display"&&p==="inline"&&(p="block"),c==="d"&&n.getAttribute("d")&&(p=`path(${n.getAttribute("d")})`),i.setProperty(c,p,a.getPropertyPriority(c))})}function ud(r,n){we(r,HTMLTextAreaElement)&&(n.innerHTML=r.value),we(r,HTMLInputElement)&&n.setAttribute("value",r.value)}function od(r,n){if(we(r,HTMLSelectElement)){const i=n,a=Array.from(i.children).find(c=>r.value===c.getAttribute("value"));a&&a.setAttribute("selected","")}}function ld(r,n){return we(n,Element)&&(id(r,n),Y2(r,n),ud(r,n),od(r,n)),n}async function ad(r,n){const i=r.querySelectorAll?r.querySelectorAll("use"):[];if(i.length===0)return r;const a={};for(let p=0;p<i.length;p++){const g=i[p].getAttribute("xlink:href");if(g){const v=r.querySelector(g),A=document.querySelector(g);!v&&A&&!a[g]&&(a[g]=await yn(A,n,!0))}}const c=Object.values(a);if(c.length){const p="http://www.w3.org/1999/xhtml",d=document.createElementNS(p,"svg");d.setAttribute("xmlns",p),d.style.position="absolute",d.style.width="0",d.style.height="0",d.style.overflow="hidden",d.style.display="none";const g=document.createElementNS(p,"defs");d.appendChild(g);for(let v=0;v<c.length;v++)g.appendChild(c[v]);r.appendChild(d)}return r}async function yn(r,n,i){return!i&&n.filter&&!n.filter(r)?null:Promise.resolve(r).then(a=>rd(a,n)).then(a=>td(r,a,n)).then(a=>ld(r,a)).then(a=>ad(a,n))}const _o=/url\((['"]?)([^'"]+?)\1\)/g,sd=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,cd=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function fd(r){const n=r.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${n})(['"]?\\))`,"g")}function hd(r){const n=[];return r.replace(_o,(i,a,c)=>(n.push(c),i)),n.filter(i=>!mt(i))}async function pd(r,n,i,a,c){try{const p=i?q2(n,i):n,d=kt(n);let g;if(c){const v=await c(p);g=bo(v,d)}else g=await Dt(p,d,a);return r.replace(fd(n),`$1${g}$3`)}catch{}return r}function dd(r,{preferredFontFormat:n}){return n?r.replace(cd,i=>{for(;;){const[a,,c]=sd.exec(i)||[];if(!c)return"";if(c===n)return`src: ${a};`}}):r}function Co(r){return r.search(_o)!==-1}async function ko(r,n,i){if(!Co(r))return r;const a=dd(r,i);return hd(a).reduce((p,d)=>p.then(g=>pd(g,d,n,i)),Promise.resolve(a))}async function Qr(r,n,i){var a;const c=(a=n.style)===null||a===void 0?void 0:a.getPropertyValue(r);if(c){const p=await ko(c,null,i);return n.style.setProperty(r,p,n.style.getPropertyPriority(r)),!0}return!1}async function gd(r,n){await Qr("background",r,n)||await Qr("background-image",r,n),await Qr("mask",r,n)||await Qr("mask-image",r,n)}async function md(r,n){const i=we(r,HTMLImageElement);if(!(i&&!mt(r.src))&&!(we(r,SVGImageElement)&&!mt(r.href.baseVal)))return;const a=i?r.src:r.href.baseVal,c=await Dt(a,kt(a),n);await new Promise((p,d)=>{r.onload=p,r.onerror=d;const g=r;g.decode&&(g.decode=p),g.loading==="lazy"&&(g.loading="eager"),i?(r.srcset="",r.src=c):r.href.baseVal=c})}async function vd(r,n){const a=$e(r.childNodes).map(c=>Do(c,n));await Promise.all(a).then(()=>r)}async function Do(r,n){we(r,Element)&&(await gd(r,n),await md(r,n),await vd(r,n))}function xd(r,n){const{style:i}=r;n.backgroundColor&&(i.backgroundColor=n.backgroundColor),n.width&&(i.width=`${n.width}px`),n.height&&(i.height=`${n.height}px`);const a=n.style;return a!=null&&Object.keys(a).forEach(c=>{i[c]=a[c]}),r}const Fu={};async function Bu(r){let n=Fu[r];if(n!=null)return n;const a=await(await fetch(r)).text();return n={url:r,cssText:a},Fu[r]=n,n}async function Tu(r,n){let i=r.cssText;const a=/url\(["']?([^"')]+)["']?\)/g,p=(i.match(/url\([^)]+\)/g)||[]).map(async d=>{let g=d.replace(a,"$1");return g.startsWith("https://")||(g=new URL(g,r.url).href),wo(g,n.fetchRequestInit,({result:v})=>(i=i.replace(d,`url(${v})`),[d,v]))});return Promise.all(p).then(()=>i)}function Mu(r){if(r==null)return[];const n=[],i=/(\/\*[\s\S]*?\*\/)/gi;let a=r.replace(i,"");const c=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const v=c.exec(a);if(v===null)break;n.push(v[0])}a=a.replace(c,"");const p=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,d="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",g=new RegExp(d,"gi");for(;;){let v=p.exec(a);if(v===null){if(v=g.exec(a),v===null)break;p.lastIndex=g.lastIndex}else g.lastIndex=p.lastIndex;n.push(v[0])}return n}async function yd(r,n){const i=[],a=[];return r.forEach(c=>{if("cssRules"in c)try{$e(c.cssRules||[]).forEach((p,d)=>{if(p.type===CSSRule.IMPORT_RULE){let g=d+1;const v=p.href,A=Bu(v).then(x=>Tu(x,n)).then(x=>Mu(x).forEach(k=>{try{c.insertRule(k,k.startsWith("@import")?g+=1:c.cssRules.length)}catch(D){console.error("Error inserting rule from remote css",{rule:k,error:D})}})).catch(x=>{console.error("Error loading remote css",x.toString())});a.push(A)}})}catch(p){const d=r.find(g=>g.href==null)||document.styleSheets[0];c.href!=null&&a.push(Bu(c.href).then(g=>Tu(g,n)).then(g=>Mu(g).forEach(v=>{d.insertRule(v,c.cssRules.length)})).catch(g=>{console.error("Error loading remote stylesheet",g)})),console.error("Error inlining remote css file",p)}}),Promise.all(a).then(()=>(r.forEach(c=>{if("cssRules"in c)try{$e(c.cssRules||[]).forEach(p=>{i.push(p)})}catch(p){console.error(`Error while reading CSS rules from ${c.href}`,p)}}),i))}function Ad(r){return r.filter(n=>n.type===CSSRule.FONT_FACE_RULE).filter(n=>Co(n.style.getPropertyValue("src")))}async function bd(r,n){if(r.ownerDocument==null)throw new Error("Provided element is not within a Document");const i=$e(r.ownerDocument.styleSheets),a=await yd(i,n);return Ad(a)}async function wd(r,n){const i=await bd(r,n);return(await Promise.all(i.map(c=>{const p=c.parentStyleSheet?c.parentStyleSheet.href:null;return ko(c.cssText,p,n)}))).join(`
`)}async function _d(r,n){const i=n.fontEmbedCSS!=null?n.fontEmbedCSS:n.skipFonts?null:await wd(r,n);if(i){const a=document.createElement("style"),c=document.createTextNode(i);a.appendChild(c),r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a)}}async function Cd(r,n={}){const{width:i,height:a}=Ao(r,n),c=await yn(r,n,!0);return await _d(c,n),await Do(c,n),xd(c,n),await H2(c,i,a)}async function kd(r,n={}){const{width:i,height:a}=Ao(r,n),c=await Cd(r,n),p=await dn(c),d=document.createElement("canvas"),g=d.getContext("2d"),v=n.pixelRatio||z2(),A=n.canvasWidth||i,x=n.canvasHeight||a;return d.width=A*v,d.height=x*v,n.skipAutoScale||$2(d),d.style.width=`${A}`,d.style.height=`${x}`,n.backgroundColor&&(g.fillStyle=n.backgroundColor,g.fillRect(0,0,d.width,d.height)),g.drawImage(p,0,0,d.width,d.height),d}async function Dd(r,n={}){return(await kd(r,n)).toDataURL()}var Eo={exports:{}};(function(r){(function(n){var i=ue(),a=se(),c=ce(),p=oe(),d={imagePlaceholder:void 0,cacheBust:!1},g={toSvg:v,toPng:x,toJpeg:k,toBlob:D,toPixelData:A,impl:{fontFaces:c,images:p,util:i,inliner:a,options:{}}};r.exports=g;function v(R,I){return I=I||{},E(I),Promise.resolve(R).then(function(W){return z(W,I.filter,!0)}).then(Z).then(q).then(U).then(function(W){return Y(W,I.width||i.width(R),I.height||i.height(R))});function U(W){return I.bgcolor&&(W.style.backgroundColor=I.bgcolor),I.width&&(W.style.width=I.width+"px"),I.height&&(W.style.height=I.height+"px"),I.style&&Object.keys(I.style).forEach(function(ie){W.style[ie]=I.style[ie]}),W}}function A(R,I){return j(R,I||{}).then(function(U){return U.getContext("2d").getImageData(0,0,i.width(R),i.height(R)).data})}function x(R,I){return j(R,I||{}).then(function(U){return U.toDataURL()})}function k(R,I){return I=I||{},j(R,I).then(function(U){return U.toDataURL("image/jpeg",I.quality||1)})}function D(R,I){return j(R,I||{}).then(i.canvasToBlob)}function E(R){typeof R.imagePlaceholder>"u"?g.impl.options.imagePlaceholder=d.imagePlaceholder:g.impl.options.imagePlaceholder=R.imagePlaceholder,typeof R.cacheBust>"u"?g.impl.options.cacheBust=d.cacheBust:g.impl.options.cacheBust=R.cacheBust}function j(R,I){return v(R,I).then(i.makeImage).then(i.delay(100)).then(function(W){var ie=U(R);return ie.getContext("2d").drawImage(W,0,0),ie});function U(W){var ie=document.createElement("canvas");if(ie.width=I.width||i.width(W),ie.height=I.height||i.height(W),I.bgcolor){var J=ie.getContext("2d");J.fillStyle=I.bgcolor,J.fillRect(0,0,ie.width,ie.height)}return ie}}function z(R,I,U){if(!U&&I&&!I(R))return Promise.resolve();return Promise.resolve(R).then(W).then(function(C){return ie(R,C,I)}).then(function(C){return J(R,C)});function W(C){return C instanceof HTMLCanvasElement?i.makeImage(C.toDataURL()):C.cloneNode(!1)}function ie(C,w,M){var S=C.childNodes;if(S.length===0)return Promise.resolve(w);return L(w,i.asArray(S),M).then(function(){return w});function L(X,K,$){var re=Promise.resolve();return K.forEach(function(le){re=re.then(function(){return z(le,$)}).then(function(fe){fe&&X.appendChild(fe)})}),re}}function J(C,w){if(!(w instanceof Element))return w;return Promise.resolve().then(M).then(S).then(L).then(X).then(function(){return w});function M(){K(window.getComputedStyle(C),w.style);function K($,re){$.cssText?re.cssText=$.cssText:le($,re);function le(fe,ae){i.asArray(fe).forEach(function(P){ae.setProperty(P,fe.getPropertyValue(P),fe.getPropertyPriority(P))})}}}function S(){[":before",":after"].forEach(function($){K($)});function K($){var re=window.getComputedStyle(C,$),le=re.getPropertyValue("content");if(le===""||le==="none")return;var fe=i.uid();w.className=w.className+" "+fe;var ae=document.createElement("style");ae.appendChild(P(fe,$,re)),w.appendChild(ae);function P(G,te,ne){var he="."+G+":"+te,Se=ne.cssText?ge(ne):O(ne);return document.createTextNode(he+"{"+Se+"}");function ge(Fe){var me=Fe.getPropertyValue("content");return Fe.cssText+" content: "+me+";"}function O(Fe){return i.asArray(Fe).map(me).join("; ")+";";function me(Le){return Le+": "+Fe.getPropertyValue(Le)+(Fe.getPropertyPriority(Le)?" !important":"")}}}}}function L(){C instanceof HTMLTextAreaElement&&(w.innerHTML=C.value),C instanceof HTMLInputElement&&w.setAttribute("value",C.value)}function X(){w instanceof SVGElement&&(w.setAttribute("xmlns","http://www.w3.org/2000/svg"),w instanceof SVGRectElement&&["width","height"].forEach(function(K){var $=w.getAttribute(K);$&&w.style.setProperty(K,$)}))}}}function Z(R){return c.resolveAll().then(function(I){var U=document.createElement("style");return R.appendChild(U),U.appendChild(document.createTextNode(I)),R})}function q(R){return p.inlineAll(R).then(function(){return R})}function Y(R,I,U){return Promise.resolve(R).then(function(W){return W.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(W)}).then(i.escapeXhtml).then(function(W){return'<foreignObject x="0" y="0" width="100%" height="100%">'+W+"</foreignObject>"}).then(function(W){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+I+'" height="'+U+'">'+W+"</svg>"}).then(function(W){return"data:image/svg+xml;charset=utf-8,"+W})}function ue(){return{escape:X,parseExtension:I,mimeType:U,dataAsUrl:L,isDataUrl:W,canvasToBlob:J,resolveUrl:C,getAndEncode:S,uid:w(),delay:K,asArray:$,escapeXhtml:re,makeImage:M,width:le,height:fe};function R(){var P="application/font-woff",G="image/jpeg";return{woff:P,woff2:P,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:G,jpeg:G,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function I(P){var G=/\.([^\.\/]*?)$/g.exec(P);return G?G[1]:""}function U(P){var G=I(P).toLowerCase();return R()[G]||""}function W(P){return P.search(/^(data:)/)!==-1}function ie(P){return new Promise(function(G){for(var te=window.atob(P.toDataURL().split(",")[1]),ne=te.length,he=new Uint8Array(ne),Se=0;Se<ne;Se++)he[Se]=te.charCodeAt(Se);G(new Blob([he],{type:"image/png"}))})}function J(P){return P.toBlob?new Promise(function(G){P.toBlob(G)}):ie(P)}function C(P,G){var te=document.implementation.createHTMLDocument(),ne=te.createElement("base");te.head.appendChild(ne);var he=te.createElement("a");return te.body.appendChild(he),ne.href=G,he.href=P,he.href}function w(){var P=0;return function(){return"u"+G()+P++;function G(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function M(P){return new Promise(function(G,te){var ne=new Image;ne.onload=function(){G(ne)},ne.onerror=te,ne.src=P})}function S(P){var G=3e4;return g.impl.options.cacheBust&&(P+=(/\?/.test(P)?"&":"?")+new Date().getTime()),new Promise(function(te){var ne=new XMLHttpRequest;ne.onreadystatechange=ge,ne.ontimeout=O,ne.responseType="blob",ne.timeout=G,ne.open("GET",P,!0),ne.send();var he;if(g.impl.options.imagePlaceholder){var Se=g.impl.options.imagePlaceholder.split(/,/);Se&&Se[1]&&(he=Se[1])}function ge(){if(ne.readyState===4){if(ne.status!==200){he?te(he):Fe("cannot fetch resource: "+P+", status: "+ne.status);return}var me=new FileReader;me.onloadend=function(){var Le=me.result.split(/,/)[1];te(Le)},me.readAsDataURL(ne.response)}}function O(){he?te(he):Fe("timeout of "+G+"ms occured while fetching resource: "+P)}function Fe(me){console.error(me),te("")}})}function L(P,G){return"data:"+G+";base64,"+P}function X(P){return P.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function K(P){return function(G){return new Promise(function(te){setTimeout(function(){te(G)},P)})}}function $(P){for(var G=[],te=P.length,ne=0;ne<te;ne++)G.push(P[ne]);return G}function re(P){return P.replace(/#/g,"%23").replace(/\n/g,"%0A")}function le(P){var G=ae(P,"border-left-width"),te=ae(P,"border-right-width");return P.scrollWidth+G+te}function fe(P){var G=ae(P,"border-top-width"),te=ae(P,"border-bottom-width");return P.scrollHeight+G+te}function ae(P,G){var te=window.getComputedStyle(P).getPropertyValue(G);return parseFloat(te.replace("px",""))}}function se(){var R=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:ie,shouldProcess:I,impl:{readUrls:U,inline:W}};function I(J){return J.search(R)!==-1}function U(J){for(var C=[],w;(w=R.exec(J))!==null;)C.push(w[1]);return C.filter(function(M){return!i.isDataUrl(M)})}function W(J,C,w,M){return Promise.resolve(C).then(function(L){return w?i.resolveUrl(L,w):L}).then(M||i.getAndEncode).then(function(L){return i.dataAsUrl(L,i.mimeType(C))}).then(function(L){return J.replace(S(C),"$1"+L+"$3")});function S(L){return new RegExp(`(url\\(['"]?)(`+i.escape(L)+`)(['"]?\\))`,"g")}}function ie(J,C,w){if(M())return Promise.resolve(J);return Promise.resolve(J).then(U).then(function(S){var L=Promise.resolve(J);return S.forEach(function(X){L=L.then(function(K){return W(K,X,C,w)})}),L});function M(){return!I(J)}}}function ce(){return{resolveAll:R,impl:{readAll:I}};function R(){return I().then(function(U){return Promise.all(U.map(function(W){return W.resolve()}))}).then(function(U){return U.join(`
`)})}function I(){return Promise.resolve(i.asArray(document.styleSheets)).then(W).then(U).then(function(J){return J.map(ie)});function U(J){return J.filter(function(C){return C.type===CSSRule.FONT_FACE_RULE}).filter(function(C){return a.shouldProcess(C.style.getPropertyValue("src"))})}function W(J){var C=[];return J.forEach(function(w){try{i.asArray(w.cssRules||[]).forEach(C.push.bind(C))}catch(M){console.log("Error while reading CSS rules from "+w.href,M.toString())}}),C}function ie(J){return{resolve:function(){var w=(J.parentStyleSheet||{}).href;return a.inlineAll(J.cssText,w)},src:function(){return J.style.getPropertyValue("src")}}}}}function oe(){return{inlineAll:I,impl:{newImage:R}};function R(U){return{inline:W};function W(ie){return i.isDataUrl(U.src)?Promise.resolve():Promise.resolve(U.src).then(ie||i.getAndEncode).then(function(J){return i.dataAsUrl(J,i.mimeType(U.src))}).then(function(J){return new Promise(function(C,w){U.onload=C,U.onerror=w,U.src=J})})}}function I(U){if(!(U instanceof Element))return Promise.resolve(U);return W(U).then(function(){return U instanceof HTMLImageElement?R(U).inline():Promise.all(i.asArray(U.childNodes).map(function(ie){return I(ie)}))});function W(ie){var J=ie.style.getPropertyValue("background");return J?a.inlineAll(J).then(function(C){ie.style.setProperty("background",C,ie.style.getPropertyPriority("background"))}).then(function(){return ie}):Promise.resolve(ie)}}}})()})(Eo);var Ed=Eo.exports;const Sd=Rc(Ed),Fd={class:"flex grow flex-col sm:flex-row h-full"},Bd={class:"sm:pt-4 box-border bg-[#fafbfc] dark:bg-[#18181c] overflow-y-auto w-full sm:w-[20rem] shrink-0 border-r-2 border-[#ffffff17] flex flex-col"},Td={class:"flex-1 px-4 pb-2"},Md=De("h4",{class:"mb-2"}," 您的需求？ ",-1),Rd={class:"flex my-4"},Id={class:"flex justify-between mb-2"},Nd=De("h4",{class:"font-bold"}," 内容需求 ",-1),qd={class:"py-3 bottom-0 border-t-2 border-[#00000014] w-full flex flex-col justify-center items-center"},Od=De("div",{class:"items-start mb-2"}," 每次使用消耗基础积分： 1 ",-1),Ld={class:"h-full flex-1 overflow-y-auto overflow-hidden min-h-[80vh] flex flex-col"},Pd=De("header",{class:"flex items-center p-5"},[De("h2",{class:"font-bold text-2xl"},"思维导图")],-1),zd={class:"flex-1 w-full p-4"},Gd=Ic({__name:"index",setup(r){var ce;const n=Nc(),i=qc(),a=Oc(),c=(ce=n.globalConfig)==null?void 0:ce.mindDefaultData,p=wr(null),d=new Uc.Transformer,g=wr(!1),v=`
# 会议流程

## 开场白
- 欢迎词
- 自我介绍

## 议程安排
- 介绍会议议程
- 确认议程是否被所有人接受

## 上一次会议的总结
- 回顾上次会议的议题及结果
- 确认上次会议的行动项是否已经完成

## 主题讨论
- 提出本次会议的主题
- 介绍主题相关背景信息
- 提出问题并进行讨论
- 形成共识或决策

## 行动项
- 确定行动项及责任人
- 确定完成时间和目标

## 公告和其他事项
- 公告即将到来的活动或项目
- 公告公司的其他事项

## 结束语
- 感谢所有人的参与
- 总结会议内容
- 确认下一次会议的时间和议题
`,A=wr(""),x=`# NineAi
## 基础功能
- 支持AI聊天
- 支持GPT4
- 支持DLLAE2
- 支持Midjourney
- 更多功能等你探索......

## 更多内容
-  在上面输入您想要生成的内容
- 点击生成即可

`,k=wr(),D=wr("");function E(){D.value=c||x}Zi(()=>{setTimeout(()=>{E()},1e3)});let j;function z(){const oe=new XMLSerializer().serializeToString(k.value),R=new Blob([oe],{type:"image/svg+xml;charset=utf-8"});et.saveAs(R,"nineai-mind.svg")}async function Z(){const R=`
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Markmap Export</title>
</head>
<body>
  ${await Sd.toSvg(k.value)}
</body>
</html>`,I=new Blob([R],{type:"text/html;charset=utf-8"});et.saveAs(I,"nineai-mind.html")}async function q(){g.value=!0,D.value="";try{const oe="";let R="";const I=()=>(D.value=R,g.value?!0:(D.value=R,!1)),U=setInterval(()=>{I()||clearInterval(U)},1e3);await(async()=>{await Pc({prompt:A.value,onDownloadProgress:({event:ie})=>{const J=ie.target,{responseText:C}=J,w=C.lastIndexOf(`
`,C.length-2);let M=C;w!==-1&&(M=C.substring(w));try{const S=JSON.parse(M);R=oe+(S.text??"")}catch{}}}),g.value=!1})()}catch(oe){g.value=!1;const{code:R=500,message:I="好像出错了，请稍后再试！"}=oe;if(R===429&&I.includes("balance has been exhausted"))return a.error("当前系统Key余额耗尽、请联系管理员补充！");if(R===500){let U=(oe==null?void 0:oe.message)??"好像出错了，请稍后再试！";U==="Request failed with status code 401"&&(U="非法操作、请先登录后再进行问答使用！"),a.error(U);return}if(oe.code===402){a.error(oe.message,{duration:5e3}),i.updateGoodsDialog(!0);return}a.error("出了点小错误、请稍后试试吧！")}finally{g.value=!1}}async function Y(){const oe=await Dd(k.value);et.saveAs(oe,"markmap.png")}function ue(){D.value=v}const se=()=>{const{root:oe}=d.transform(D.value);j.setData(oe),j.fit()};return Zi(()=>{j=Ir.create(k.value),se()}),Lc(se),(oe,R)=>(Qi(),Ji("div",Fd,[De("div",Bd,[De("div",Td,[Md,Te(Me(eu),{ref_key:"inputRef",ref:p,value:A.value,"onUpdate:value":R[0]||(R[0]=I=>A.value=I),type:"textarea",disabled:g.value,autosize:{minRows:3},placeholder:"请输入您想要生成内容的简单描述、AI将为您输出一份完整的markdown内容及其思维导图!"},null,8,["value","disabled"]),De("div",Rd,[Te(Me(Cr),{type:"primary",size:"small",style:{width:"100%"},loading:g.value,onClick:q},{default:sr(()=>[_r(" 智能生成生成思维导图 ")]),_:1},8,["loading"])]),De("div",Id,[Nd,Te(Me(Cr),{text:"",onClick:ue},{default:sr(()=>[_r(" 试试示例 ")]),_:1})]),Te(Me(eu),{value:D.value,"onUpdate:value":R[1]||(R[1]=I=>D.value=I),type:"textarea",disabled:g.value,autosize:{minRows:8,maxRows:24},placeholder:"请用markdown语法输入您想要生成思维导图的内容或在上方使用描述让AI帮您完善！"},null,8,["value","disabled"])]),De("div",qd,[Od,De("div",null,[Te(Me(zc),{size:"small"},{default:sr(()=>[Te(Me(Cr),{type:"primary",onClick:Z},{default:sr(()=>[Te(Me(Yn),{icon:"ri:error-warning-line",class:"text-base"}),_r(" 导出HTML ")]),_:1}),Te(Me(Cr),{type:"primary",onClick:Y},{default:sr(()=>[Te(Me(Yn),{icon:"ri:error-warning-line",class:"text-base"}),_r(" 导出PNG ")]),_:1}),Te(Me(Cr),{type:"warning",onClick:z},{default:sr(()=>[Te(Me(Yn),{icon:"ri:error-warning-line",class:"text-base"}),_r(" 导出SVG ")]),_:1})]),_:1})])])]),De("div",Ld,[Pd,De("div",zd,[(Qi(),Ji("svg",{ref_key:"svgRef",ref:k,class:"box-border w-full h-full border rounded-md"},null,512))])])]))}});export{Gd as default};
