(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,374533,(e,t,r)=>{"use strict";var a=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,o=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,m=/^\s+|\s+$/g;function h(e){return e?e.replace(m,""):""}t.exports=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,m=1;function d(e){var t=e.match(n);t&&(r+=t.length);var a=e.lastIndexOf("\n");m=~a?e.length-a:m+e.length}function u(){var e={line:r,column:m};return function(t){return t.position=new p(e),g(o),t}}function p(e){this.start=e,this.end={line:r,column:m},this.source=t.source}function f(a){var n=Error(t.source+":"+r+":"+m+": "+a);if(n.reason=a,n.filename=t.source,n.line=r,n.column=m,n.source=e,t.silent);else throw n}function g(t){var r=t.exec(e);if(r){var a=r[0];return d(a),e=e.slice(a.length),r}}function b(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var t=u();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;""!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,""===e.charAt(r-1))return f("End of comment missing");var a=e.slice(2,r-2);return m+=2,d(a),e=e.slice(r),m+=2,t({type:"comment",comment:a})}}p.prototype.content=e,g(o);var y,x=[];for(b(x);y=function(){var e=u(),t=g(i);if(t){if(v(),!g(s))return f("property missing ':'");var r=g(l),n=e({type:"declaration",property:h(t[0].replace(a,"")),value:r?h(r[0].replace(a,"")):""});return g(c),n}}();)!1!==y&&(x.push(y),b(x));return x}},784126,(e,t,r)=>{"use strict";var a=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){let r=null;if(!e||"string"!=typeof e)return r;let a=(0,n.default)(e),o="function"==typeof t;return a.forEach(e=>{if("declaration"!==e.type)return;let{property:a,value:n}=e;o?t(a,n,e):n&&((r=r||{})[a]=n)}),r};let n=a(e.r(374533))},138032,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.camelCase=void 0;var a=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},c=function(e,t){return"".concat(t,"-")};r.camelCase=function(e,t){var r;return(void 0===t&&(t={}),!(r=e)||o.test(r)||a.test(r))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,c):e.replace(i,c)).replace(n,l))}},646642,(e,t,r)=>{"use strict";var a=(e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(e.r(784126)),n=e.r(138032);function o(e,t){var r={};return e&&"string"==typeof e&&(0,a.default)(e,function(e,a){e&&a&&(r[(0,n.camelCase)(e,t)]=a)}),r}o.default=o,t.exports=o},977079,e=>{"use strict";e.s(["a",()=>iE,"b",()=>iO,"c",()=>s_,"e",()=>sL,"g",()=>sV,"i",()=>sG],977079);var t,r,a,n=e.i(271645),o=e.i(733644),i=e.i(784801);let s={indicator:"indicator",textOnly:"text-only",remove:"remove"};function l(e,t){if("string"!=typeof e)return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{}return null}}let c=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),m=new Set(["javascript:","data:","file:","vbscript:"]);function h(e,t,r,a=!1,n=!1,o=[]){if(!e)return null;if("string"==typeof e&&e.startsWith("#")&&!n)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if("string"==typeof e&&e.startsWith("data:"))return n&&a&&e.startsWith("data:image/")?e:null;if("string"==typeof e&&e.startsWith("blob:")){try{let t=new URL(e);if("blob:"===t.protocol&&e.length>5){let t=e.substring(5);if(t&&t.length>0&&"invalid"!==t)return e}}catch{}return null}let i=l(e,r);if(!i||m.has(i.protocol)||!(c.has(i.protocol)||o.includes(i.protocol)||o.includes("*")))return null;if("mailto:"===i.protocol||!i.protocol.match(/^https?:$/))return i.href;let s="string"==typeof e&&(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"));return i&&t.some(e=>{let t=l(e,r);return!!t&&t.origin===i.origin&&i.href.startsWith(t.href)})?s?i.pathname+i.search+i.hash:i.href:t.includes("*")?"https:"!==i.protocol&&"http:"!==i.protocol?null:s?i.pathname+i.search+i.hash:i.href:null}let d=Symbol("node-seen");var u=e.i(157871),p=e.i(76696),f=e.i(458663),g=e.i(640553),b=e.i(864012),v=e.i(359091);let y={}.hasOwnProperty;function x(e,t,r){let a=r&&function(e){let t={},r=-1;for(;++r15?"…"+i.slice(n-15,n):i.slice(0,n))+s+(o+15":">","<":"<",'"':""","'":"'"},Y=/[&><"']/g,X=function e(t){if("ordgroup"===t.type||"color"===t.type)if(1===t.body.length)return e(t.body[0]);else return t;return"font"===t.type?e(t.body):t},Z=function(e){if(!e)throw Error("Expected non-null, but got "+String(e));return e},K={contains:function(e,t){return -1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(Y,e=>W[e])},hyphenate:function(e){return e.replace(_,"-$1").toLowerCase()},getBaseElem:X,isCharacterBox:function(e){var t=X(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?":"===t[2]&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?t[1].toLowerCase():null:"_relative"}},J={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};class Q{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},J)if(J.hasOwnProperty(t)){var r=J[t];this[t]=void 0!==e[t]?r.processor?r.processor(e[t]):e[t]:function(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if("string"!=typeof r)return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}(r)}}reportNonstrict(e,t,r){var a=this.strict;if("function"==typeof a&&(a=a(e,t,r)),a&&"ignore"!==a){if(!0===a||"error"===a)throw new U("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" [")+e+"]",r);"warn"===a?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" [")+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+t+" [")+e+"]")}}useStrictBehavior(e,t,r){var a=this.strict;if("function"==typeof a)try{a=a(e,t,r)}catch(e){a="error"}return!!a&&"ignore"!==a&&(!0===a||"error"===a||("warn"===a?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" [")+e+"]"),!1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+t+" [")+e+"]"),!1)))}isTrusted(e){if(e.url&&!e.protocol){var t=K.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}return!!("function"==typeof this.trust?this.trust(e):this.trust)}}class ee{constructor(e,t,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=r}sup(){return et[er[this.id]]}sub(){return et[ea[this.id]]}fracNum(){return et[en[this.id]]}fracDen(){return et[eo[this.id]]}cramp(){return et[ei[this.id]]}text(){return et[es[this.id]]}isTight(){return this.size>=2}}var et=[new ee(0,0,!1),new ee(1,0,!0),new ee(2,1,!1),new ee(3,1,!0),new ee(4,2,!1),new ee(5,2,!0),new ee(6,3,!1),new ee(7,3,!0)],er=[4,5,4,5,6,7,6,7],ea=[5,5,5,5,7,7,7,7],en=[2,3,4,5,6,7,6,7],eo=[3,3,5,5,7,7,7,7],ei=[1,1,3,3,5,5,7,7],es=[0,1,2,3,2,3,2,3],el={DISPLAY:et[0],TEXT:et[2],SCRIPT:et[4],SCRIPTSCRIPT:et[6]},ec=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],em=[];function eh(e){for(var t=0;t=em[t]&&e<=em[t+1])return!0;return!1}ec.forEach(e=>e.blocks.forEach(e=>em.push(...e)));var ed=function(e,t,r){t*=1e3;var a,n,o,i,s,l,c="";switch(e){case"sqrtMain":c="M95,"+(622+(a=t)+80)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+a/2.075+" -"+a+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+a)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+a)+" 80h400000v"+(40+a)+"h-400000z";break;case"sqrtSize1":c="M263,"+(601+(n=t)+80)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+n/2.084+" -"+n+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+n)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+n)+" 80h400000v"+(40+n)+"h-400000z";break;case"sqrtSize2":c="M983 "+(10+(o=t)+80)+"\nl"+o/3.13+" -"+o+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+o)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+o)+" 80h400000v"+(40+o)+"h-400000z";break;case"sqrtSize3":c="M424,"+(2398+(i=t)+80)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+i/4.223+" -"+i+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+i)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+i)+" 80\nh400000v"+(40+i)+"h-400000z";break;case"sqrtSize4":c="M473,"+(2713+(s=t)+80)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+s/5.298+" -"+s+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+s)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+s)+" 80h400000v"+(40+s)+"H1017.7z";break;case"sqrtTall":c="M702 "+((l=t)+80)+"H400000"+(40+l)+"\nH742v"+(r-54-80-l)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 80H400000v"+(40+l)+"H742z"}return c},eu=function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z"+("M367 0 H410 V"+t+" H367z M367 0 H410 V")+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257z"+("M478 0 H521 V"+t+" H478z M478 0 H521 V")+t+" H478z";default:return""}},ep={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},ef=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw Error("Unknown stretchy delimiter.")}};class eg{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return K.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;te.toText()).join("")}}var eb={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ev={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},ey={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function ex(e,t,r){if(!eb[t])throw Error("Font metrics not found for font: "+t+".");var a=e.charCodeAt(0),n=eb[t][a];if(!n&&e[0]in ey&&(a=ey[e[0]].charCodeAt(0),n=eb[t][a]),!n&&"text"===r&&eh(a)&&(n=eb[t][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var ew={},ek=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],eS=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],eM=function(e,t){return t.size<2?e:ek[e-1][t.size-1]};class ez{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||ez.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=eS[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return new ez(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:eM(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:eS[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=eM(ez.BASESIZE,e);return this.size===t&&this.textSize===ez.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==ez.BASESIZE?["sizing","reset-size"+this.size,"size"+ez.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!ew[t=e>=5?0:e>=3?1:2]){var r=ew[t]={cssEmPerMu:ev.quad[t]/18};for(var a in ev)ev.hasOwnProperty(a)&&(r[a]=ev[a][t])}return ew[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}ez.BASESIZE=6;var eA={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},eT={ex:!0,em:!0,mu:!0},eN=function(e){return"string"!=typeof e&&(e=e.unit),e in eA||e in eT||"ex"===e},eC=function(e,t){var r,a;if(e.unit in eA)r=eA[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)r=t.fontMetrics().cssEmPerMu;else{if(a=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)r=a.fontMetrics().xHeight;else if("em"===e.unit)r=a.fontMetrics().quad;else throw new U("Invalid unit: '"+e.unit+"'");a!==t&&(r*=a.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},eq=function(e){return+e.toFixed(4)+"em"},eB=function(e){return e.filter(e=>e).join(" ")},ej=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");var a=t.getColor();a&&(this.style.color=a)}},eE=function(e){var t=document.createElement(e);for(var r in t.className=eB(this.classes),this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);for(var a in this.attributes)this.attributes.hasOwnProperty(a)&&t.setAttribute(a,this.attributes[a]);for(var n=0;n/=\x00-\x1f]/,eO=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+K.escape(eB(this.classes))+'"');var r="";for(var a in this.style)this.style.hasOwnProperty(a)&&(r+=K.hyphenate(a)+":"+this.style[a]+";");for(var n in r&&(t+=' style="'+K.escape(r)+'"'),this.attributes)if(this.attributes.hasOwnProperty(n)){if(eI.test(n))throw new U("Invalid attribute name '"+n+"'");t+=" "+n+'="'+K.escape(this.attributes[n])+'"'}t+=">";for(var o=0;o")};class eR{constructor(e,t,r,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,ej.call(this,e,r,a),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return K.contains(this.classes,e)}toNode(){return eE.call(this,"span")}toMarkup(){return eO.call(this,"span")}}class eL{constructor(e,t,r,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,ej.call(this,t,a),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return K.contains(this.classes,e)}toNode(){return eE.call(this,"a")}toMarkup(){return eO.call(this,"a")}}class eH{constructor(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=r}hasClass(e){return K.contains(this.classes,e)}toNode(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e=''+K.escape(this.alt)+'=n[0]&&e<=n[1])return r.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=eP[this.text])}hasClass(e){return K.contains(this.classes,e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var r in this.italic>0&&((t=document.createElement("span")).style.marginRight=eq(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=eB(this.classes)),this.style)this.style.hasOwnProperty(r)&&((t=t||document.createElement("span")).style[r]=this.style[r]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="0&&(r+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(a)&&(r+=K.hyphenate(a)+":"+this.style[a]+";");r&&(e=!0,t+=' style="'+K.escape(r)+'"');var n=K.escape(this.text);return e?(t+=">",t+=n,t+=""):n}}class eV{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var r=0;r"}}class eF{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",ep[this.pathName]),e}toMarkup(){return this.alternate?'':''}}class e${constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=""}}function eG(e){if(e instanceof eD)return e;throw Error("Expected symbolNode but got "+String(e)+".")}var eU={bin:1,close:1,inner:1,open:1,punct:1,rel:1},e_={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},eW={math:{},text:{}};function eY(e,t,r,a,n,o){eW[e][n]={font:t,group:r,replace:a},o&&a&&(eW[e][a]=eW[e][n])}var eX="math",eZ="text",eK="main",eJ="accent-token",eQ="close",e0="inner",e1="mathord",e4="op-token",e5="open",e6="punct",e7="spacing",e3="textord";eY(eX,eK,"rel","≡","\\equiv",!0),eY(eX,eK,"rel","≺","\\prec",!0),eY(eX,eK,"rel","≻","\\succ",!0),eY(eX,eK,"rel","∼","\\sim",!0),eY(eX,eK,"rel","⊥","\\perp"),eY(eX,eK,"rel","⪯","\\preceq",!0),eY(eX,eK,"rel","⪰","\\succeq",!0),eY(eX,eK,"rel","≃","\\simeq",!0),eY(eX,eK,"rel","∣","\\mid",!0),eY(eX,eK,"rel","≪","\\ll",!0),eY(eX,eK,"rel","≫","\\gg",!0),eY(eX,eK,"rel","≍","\\asymp",!0),eY(eX,eK,"rel","∥","\\parallel"),eY(eX,eK,"rel","⋈","\\bowtie",!0),eY(eX,eK,"rel","⌣","\\smile",!0),eY(eX,eK,"rel","⊑","\\sqsubseteq",!0),eY(eX,eK,"rel","⊒","\\sqsupseteq",!0),eY(eX,eK,"rel","≐","\\doteq",!0),eY(eX,eK,"rel","⌢","\\frown",!0),eY(eX,eK,"rel","∋","\\ni",!0),eY(eX,eK,"rel","∝","\\propto",!0),eY(eX,eK,"rel","⊢","\\vdash",!0),eY(eX,eK,"rel","⊣","\\dashv",!0),eY(eX,eK,"rel","∋","\\owns"),eY(eX,eK,e6,".","\\ldotp"),eY(eX,eK,e6,"⋅","\\cdotp"),eY(eX,eK,e3,"#","\\#"),eY(eZ,eK,e3,"#","\\#"),eY(eX,eK,e3,"&","\\&"),eY(eZ,eK,e3,"&","\\&"),eY(eX,eK,e3,"ℵ","\\aleph",!0),eY(eX,eK,e3,"∀","\\forall",!0),eY(eX,eK,e3,"ℏ","\\hbar",!0),eY(eX,eK,e3,"∃","\\exists",!0),eY(eX,eK,e3,"∇","\\nabla",!0),eY(eX,eK,e3,"♭","\\flat",!0),eY(eX,eK,e3,"ℓ","\\ell",!0),eY(eX,eK,e3,"♮","\\natural",!0),eY(eX,eK,e3,"♣","\\clubsuit",!0),eY(eX,eK,e3,"℘","\\wp",!0),eY(eX,eK,e3,"♯","\\sharp",!0),eY(eX,eK,e3,"♢","\\diamondsuit",!0),eY(eX,eK,e3,"ℜ","\\Re",!0),eY(eX,eK,e3,"♡","\\heartsuit",!0),eY(eX,eK,e3,"ℑ","\\Im",!0),eY(eX,eK,e3,"♠","\\spadesuit",!0),eY(eX,eK,e3,"§","\\S",!0),eY(eZ,eK,e3,"§","\\S"),eY(eX,eK,e3,"¶","\\P",!0),eY(eZ,eK,e3,"¶","\\P"),eY(eX,eK,e3,"†","\\dag"),eY(eZ,eK,e3,"†","\\dag"),eY(eZ,eK,e3,"†","\\textdagger"),eY(eX,eK,e3,"‡","\\ddag"),eY(eZ,eK,e3,"‡","\\ddag"),eY(eZ,eK,e3,"‡","\\textdaggerdbl"),eY(eX,eK,eQ,"⎱","\\rmoustache",!0),eY(eX,eK,e5,"⎰","\\lmoustache",!0),eY(eX,eK,eQ,"⟯","\\rgroup",!0),eY(eX,eK,e5,"⟮","\\lgroup",!0),eY(eX,eK,"bin","∓","\\mp",!0),eY(eX,eK,"bin","⊖","\\ominus",!0),eY(eX,eK,"bin","⊎","\\uplus",!0),eY(eX,eK,"bin","⊓","\\sqcap",!0),eY(eX,eK,"bin","∗","\\ast"),eY(eX,eK,"bin","⊔","\\sqcup",!0),eY(eX,eK,"bin","◯","\\bigcirc",!0),eY(eX,eK,"bin","∙","\\bullet",!0),eY(eX,eK,"bin","‡","\\ddagger"),eY(eX,eK,"bin","≀","\\wr",!0),eY(eX,eK,"bin","⨿","\\amalg"),eY(eX,eK,"bin","&","\\And"),eY(eX,eK,"rel","⟵","\\longleftarrow",!0),eY(eX,eK,"rel","⇐","\\Leftarrow",!0),eY(eX,eK,"rel","⟸","\\Longleftarrow",!0),eY(eX,eK,"rel","⟶","\\longrightarrow",!0),eY(eX,eK,"rel","⇒","\\Rightarrow",!0),eY(eX,eK,"rel","⟹","\\Longrightarrow",!0),eY(eX,eK,"rel","↔","\\leftrightarrow",!0),eY(eX,eK,"rel","⟷","\\longleftrightarrow",!0),eY(eX,eK,"rel","⇔","\\Leftrightarrow",!0),eY(eX,eK,"rel","⟺","\\Longleftrightarrow",!0),eY(eX,eK,"rel","↦","\\mapsto",!0),eY(eX,eK,"rel","⟼","\\longmapsto",!0),eY(eX,eK,"rel","↗","\\nearrow",!0),eY(eX,eK,"rel","↩","\\hookleftarrow",!0),eY(eX,eK,"rel","↪","\\hookrightarrow",!0),eY(eX,eK,"rel","↘","\\searrow",!0),eY(eX,eK,"rel","↼","\\leftharpoonup",!0),eY(eX,eK,"rel","⇀","\\rightharpoonup",!0),eY(eX,eK,"rel","↙","\\swarrow",!0),eY(eX,eK,"rel","↽","\\leftharpoondown",!0),eY(eX,eK,"rel","⇁","\\rightharpoondown",!0),eY(eX,eK,"rel","↖","\\nwarrow",!0),eY(eX,eK,"rel","⇌","\\rightleftharpoons",!0),eY(eX,"ams","rel","≮","\\nless",!0),eY(eX,"ams","rel","","\\@nleqslant"),eY(eX,"ams","rel","","\\@nleqq"),eY(eX,"ams","rel","⪇","\\lneq",!0),eY(eX,"ams","rel","≨","\\lneqq",!0),eY(eX,"ams","rel","","\\@lvertneqq"),eY(eX,"ams","rel","⋦","\\lnsim",!0),eY(eX,"ams","rel","⪉","\\lnapprox",!0),eY(eX,"ams","rel","⊀","\\nprec",!0),eY(eX,"ams","rel","⋠","\\npreceq",!0),eY(eX,"ams","rel","⋨","\\precnsim",!0),eY(eX,"ams","rel","⪹","\\precnapprox",!0),eY(eX,"ams","rel","≁","\\nsim",!0),eY(eX,"ams","rel","","\\@nshortmid"),eY(eX,"ams","rel","∤","\\nmid",!0),eY(eX,"ams","rel","⊬","\\nvdash",!0),eY(eX,"ams","rel","⊭","\\nvDash",!0),eY(eX,"ams","rel","⋪","\\ntriangleleft"),eY(eX,"ams","rel","⋬","\\ntrianglelefteq",!0),eY(eX,"ams","rel","⊊","\\subsetneq",!0),eY(eX,"ams","rel","","\\@varsubsetneq"),eY(eX,"ams","rel","⫋","\\subsetneqq",!0),eY(eX,"ams","rel","","\\@varsubsetneqq"),eY(eX,"ams","rel","≯","\\ngtr",!0),eY(eX,"ams","rel","","\\@ngeqslant"),eY(eX,"ams","rel","","\\@ngeqq"),eY(eX,"ams","rel","⪈","\\gneq",!0),eY(eX,"ams","rel","≩","\\gneqq",!0),eY(eX,"ams","rel","","\\@gvertneqq"),eY(eX,"ams","rel","⋧","\\gnsim",!0),eY(eX,"ams","rel","⪊","\\gnapprox",!0),eY(eX,"ams","rel","⊁","\\nsucc",!0),eY(eX,"ams","rel","⋡","\\nsucceq",!0),eY(eX,"ams","rel","⋩","\\succnsim",!0),eY(eX,"ams","rel","⪺","\\succnapprox",!0),eY(eX,"ams","rel","≆","\\ncong",!0),eY(eX,"ams","rel","","\\@nshortparallel"),eY(eX,"ams","rel","∦","\\nparallel",!0),eY(eX,"ams","rel","⊯","\\nVDash",!0),eY(eX,"ams","rel","⋫","\\ntriangleright"),eY(eX,"ams","rel","⋭","\\ntrianglerighteq",!0),eY(eX,"ams","rel","","\\@nsupseteqq"),eY(eX,"ams","rel","⊋","\\supsetneq",!0),eY(eX,"ams","rel","","\\@varsupsetneq"),eY(eX,"ams","rel","⫌","\\supsetneqq",!0),eY(eX,"ams","rel","","\\@varsupsetneqq"),eY(eX,"ams","rel","⊮","\\nVdash",!0),eY(eX,"ams","rel","⪵","\\precneqq",!0),eY(eX,"ams","rel","⪶","\\succneqq",!0),eY(eX,"ams","rel","","\\@nsubseteqq"),eY(eX,"ams","bin","⊴","\\unlhd"),eY(eX,"ams","bin","⊵","\\unrhd"),eY(eX,"ams","rel","↚","\\nleftarrow",!0),eY(eX,"ams","rel","↛","\\nrightarrow",!0),eY(eX,"ams","rel","⇍","\\nLeftarrow",!0),eY(eX,"ams","rel","⇏","\\nRightarrow",!0),eY(eX,"ams","rel","↮","\\nleftrightarrow",!0),eY(eX,"ams","rel","⇎","\\nLeftrightarrow",!0),eY(eX,"ams","rel","△","\\vartriangle"),eY(eX,"ams",e3,"ℏ","\\hslash"),eY(eX,"ams",e3,"▽","\\triangledown"),eY(eX,"ams",e3,"◊","\\lozenge"),eY(eX,"ams",e3,"Ⓢ","\\circledS"),eY(eX,"ams",e3,"®","\\circledR"),eY(eZ,"ams",e3,"®","\\circledR"),eY(eX,"ams",e3,"∡","\\measuredangle",!0),eY(eX,"ams",e3,"∄","\\nexists"),eY(eX,"ams",e3,"℧","\\mho"),eY(eX,"ams",e3,"Ⅎ","\\Finv",!0),eY(eX,"ams",e3,"⅁","\\Game",!0),eY(eX,"ams",e3,"‵","\\backprime"),eY(eX,"ams",e3,"▲","\\blacktriangle"),eY(eX,"ams",e3,"▼","\\blacktriangledown"),eY(eX,"ams",e3,"■","\\blacksquare"),eY(eX,"ams",e3,"⧫","\\blacklozenge"),eY(eX,"ams",e3,"★","\\bigstar"),eY(eX,"ams",e3,"∢","\\sphericalangle",!0),eY(eX,"ams",e3,"∁","\\complement",!0),eY(eX,"ams",e3,"ð","\\eth",!0),eY(eZ,eK,e3,"ð","ð"),eY(eX,"ams",e3,"╱","\\diagup"),eY(eX,"ams",e3,"╲","\\diagdown"),eY(eX,"ams",e3,"□","\\square"),eY(eX,"ams",e3,"□","\\Box"),eY(eX,"ams",e3,"◊","\\Diamond"),eY(eX,"ams",e3,"¥","\\yen",!0),eY(eZ,"ams",e3,"¥","\\yen",!0),eY(eX,"ams",e3,"✓","\\checkmark",!0),eY(eZ,"ams",e3,"✓","\\checkmark"),eY(eX,"ams",e3,"ℶ","\\beth",!0),eY(eX,"ams",e3,"ℸ","\\daleth",!0),eY(eX,"ams",e3,"ℷ","\\gimel",!0),eY(eX,"ams",e3,"ϝ","\\digamma",!0),eY(eX,"ams",e3,"ϰ","\\varkappa"),eY(eX,"ams",e5,"┌","\\@ulcorner",!0),eY(eX,"ams",eQ,"┐","\\@urcorner",!0),eY(eX,"ams",e5,"└","\\@llcorner",!0),eY(eX,"ams",eQ,"┘","\\@lrcorner",!0),eY(eX,"ams","rel","≦","\\leqq",!0),eY(eX,"ams","rel","⩽","\\leqslant",!0),eY(eX,"ams","rel","⪕","\\eqslantless",!0),eY(eX,"ams","rel","≲","\\lesssim",!0),eY(eX,"ams","rel","⪅","\\lessapprox",!0),eY(eX,"ams","rel","≊","\\approxeq",!0),eY(eX,"ams","bin","⋖","\\lessdot"),eY(eX,"ams","rel","⋘","\\lll",!0),eY(eX,"ams","rel","≶","\\lessgtr",!0),eY(eX,"ams","rel","⋚","\\lesseqgtr",!0),eY(eX,"ams","rel","⪋","\\lesseqqgtr",!0),eY(eX,"ams","rel","≑","\\doteqdot"),eY(eX,"ams","rel","≓","\\risingdotseq",!0),eY(eX,"ams","rel","≒","\\fallingdotseq",!0),eY(eX,"ams","rel","∽","\\backsim",!0),eY(eX,"ams","rel","⋍","\\backsimeq",!0),eY(eX,"ams","rel","⫅","\\subseteqq",!0),eY(eX,"ams","rel","⋐","\\Subset",!0),eY(eX,"ams","rel","⊏","\\sqsubset",!0),eY(eX,"ams","rel","≼","\\preccurlyeq",!0),eY(eX,"ams","rel","⋞","\\curlyeqprec",!0),eY(eX,"ams","rel","≾","\\precsim",!0),eY(eX,"ams","rel","⪷","\\precapprox",!0),eY(eX,"ams","rel","⊲","\\vartriangleleft"),eY(eX,"ams","rel","⊴","\\trianglelefteq"),eY(eX,"ams","rel","⊨","\\vDash",!0),eY(eX,"ams","rel","⊪","\\Vvdash",!0),eY(eX,"ams","rel","⌣","\\smallsmile"),eY(eX,"ams","rel","⌢","\\smallfrown"),eY(eX,"ams","rel","≏","\\bumpeq",!0),eY(eX,"ams","rel","≎","\\Bumpeq",!0),eY(eX,"ams","rel","≧","\\geqq",!0),eY(eX,"ams","rel","⩾","\\geqslant",!0),eY(eX,"ams","rel","⪖","\\eqslantgtr",!0),eY(eX,"ams","rel","≳","\\gtrsim",!0),eY(eX,"ams","rel","⪆","\\gtrapprox",!0),eY(eX,"ams","bin","⋗","\\gtrdot"),eY(eX,"ams","rel","⋙","\\ggg",!0),eY(eX,"ams","rel","≷","\\gtrless",!0),eY(eX,"ams","rel","⋛","\\gtreqless",!0),eY(eX,"ams","rel","⪌","\\gtreqqless",!0),eY(eX,"ams","rel","≖","\\eqcirc",!0),eY(eX,"ams","rel","≗","\\circeq",!0),eY(eX,"ams","rel","≜","\\triangleq",!0),eY(eX,"ams","rel","∼","\\thicksim"),eY(eX,"ams","rel","≈","\\thickapprox"),eY(eX,"ams","rel","⫆","\\supseteqq",!0),eY(eX,"ams","rel","⋑","\\Supset",!0),eY(eX,"ams","rel","⊐","\\sqsupset",!0),eY(eX,"ams","rel","≽","\\succcurlyeq",!0),eY(eX,"ams","rel","⋟","\\curlyeqsucc",!0),eY(eX,"ams","rel","≿","\\succsim",!0),eY(eX,"ams","rel","⪸","\\succapprox",!0),eY(eX,"ams","rel","⊳","\\vartriangleright"),eY(eX,"ams","rel","⊵","\\trianglerighteq"),eY(eX,"ams","rel","⊩","\\Vdash",!0),eY(eX,"ams","rel","∣","\\shortmid"),eY(eX,"ams","rel","∥","\\shortparallel"),eY(eX,"ams","rel","≬","\\between",!0),eY(eX,"ams","rel","⋔","\\pitchfork",!0),eY(eX,"ams","rel","∝","\\varpropto"),eY(eX,"ams","rel","◀","\\blacktriangleleft"),eY(eX,"ams","rel","∴","\\therefore",!0),eY(eX,"ams","rel","∍","\\backepsilon"),eY(eX,"ams","rel","▶","\\blacktriangleright"),eY(eX,"ams","rel","∵","\\because",!0),eY(eX,"ams","rel","⋘","\\llless"),eY(eX,"ams","rel","⋙","\\gggtr"),eY(eX,"ams","bin","⊲","\\lhd"),eY(eX,"ams","bin","⊳","\\rhd"),eY(eX,"ams","rel","≂","\\eqsim",!0),eY(eX,eK,"rel","⋈","\\Join"),eY(eX,"ams","rel","≑","\\Doteq",!0),eY(eX,"ams","bin","∔","\\dotplus",!0),eY(eX,"ams","bin","∖","\\smallsetminus"),eY(eX,"ams","bin","⋒","\\Cap",!0),eY(eX,"ams","bin","⋓","\\Cup",!0),eY(eX,"ams","bin","⩞","\\doublebarwedge",!0),eY(eX,"ams","bin","⊟","\\boxminus",!0),eY(eX,"ams","bin","⊞","\\boxplus",!0),eY(eX,"ams","bin","⋇","\\divideontimes",!0),eY(eX,"ams","bin","⋉","\\ltimes",!0),eY(eX,"ams","bin","⋊","\\rtimes",!0),eY(eX,"ams","bin","⋋","\\leftthreetimes",!0),eY(eX,"ams","bin","⋌","\\rightthreetimes",!0),eY(eX,"ams","bin","⋏","\\curlywedge",!0),eY(eX,"ams","bin","⋎","\\curlyvee",!0),eY(eX,"ams","bin","⊝","\\circleddash",!0),eY(eX,"ams","bin","⊛","\\circledast",!0),eY(eX,"ams","bin","⋅","\\centerdot"),eY(eX,"ams","bin","⊺","\\intercal",!0),eY(eX,"ams","bin","⋒","\\doublecap"),eY(eX,"ams","bin","⋓","\\doublecup"),eY(eX,"ams","bin","⊠","\\boxtimes",!0),eY(eX,"ams","rel","⇢","\\dashrightarrow",!0),eY(eX,"ams","rel","⇠","\\dashleftarrow",!0),eY(eX,"ams","rel","⇇","\\leftleftarrows",!0),eY(eX,"ams","rel","⇆","\\leftrightarrows",!0),eY(eX,"ams","rel","⇚","\\Lleftarrow",!0),eY(eX,"ams","rel","↞","\\twoheadleftarrow",!0),eY(eX,"ams","rel","↢","\\leftarrowtail",!0),eY(eX,"ams","rel","↫","\\looparrowleft",!0),eY(eX,"ams","rel","⇋","\\leftrightharpoons",!0),eY(eX,"ams","rel","↶","\\curvearrowleft",!0),eY(eX,"ams","rel","↺","\\circlearrowleft",!0),eY(eX,"ams","rel","↰","\\Lsh",!0),eY(eX,"ams","rel","⇈","\\upuparrows",!0),eY(eX,"ams","rel","↿","\\upharpoonleft",!0),eY(eX,"ams","rel","⇃","\\downharpoonleft",!0),eY(eX,eK,"rel","⊶","\\origof",!0),eY(eX,eK,"rel","⊷","\\imageof",!0),eY(eX,"ams","rel","⊸","\\multimap",!0),eY(eX,"ams","rel","↭","\\leftrightsquigarrow",!0),eY(eX,"ams","rel","⇉","\\rightrightarrows",!0),eY(eX,"ams","rel","⇄","\\rightleftarrows",!0),eY(eX,"ams","rel","↠","\\twoheadrightarrow",!0),eY(eX,"ams","rel","↣","\\rightarrowtail",!0),eY(eX,"ams","rel","↬","\\looparrowright",!0),eY(eX,"ams","rel","↷","\\curvearrowright",!0),eY(eX,"ams","rel","↻","\\circlearrowright",!0),eY(eX,"ams","rel","↱","\\Rsh",!0),eY(eX,"ams","rel","⇊","\\downdownarrows",!0),eY(eX,"ams","rel","↾","\\upharpoonright",!0),eY(eX,"ams","rel","⇂","\\downharpoonright",!0),eY(eX,"ams","rel","⇝","\\rightsquigarrow",!0),eY(eX,"ams","rel","⇝","\\leadsto"),eY(eX,"ams","rel","⇛","\\Rrightarrow",!0),eY(eX,"ams","rel","↾","\\restriction"),eY(eX,eK,e3,"‘","`"),eY(eX,eK,e3,"$","\\$"),eY(eZ,eK,e3,"$","\\$"),eY(eZ,eK,e3,"$","\\textdollar"),eY(eX,eK,e3,"%","\\%"),eY(eZ,eK,e3,"%","\\%"),eY(eX,eK,e3,"_","\\_"),eY(eZ,eK,e3,"_","\\_"),eY(eZ,eK,e3,"_","\\textunderscore"),eY(eX,eK,e3,"∠","\\angle",!0),eY(eX,eK,e3,"∞","\\infty",!0),eY(eX,eK,e3,"′","\\prime"),eY(eX,eK,e3,"△","\\triangle"),eY(eX,eK,e3,"Γ","\\Gamma",!0),eY(eX,eK,e3,"Δ","\\Delta",!0),eY(eX,eK,e3,"Θ","\\Theta",!0),eY(eX,eK,e3,"Λ","\\Lambda",!0),eY(eX,eK,e3,"Ξ","\\Xi",!0),eY(eX,eK,e3,"Π","\\Pi",!0),eY(eX,eK,e3,"Σ","\\Sigma",!0),eY(eX,eK,e3,"Υ","\\Upsilon",!0),eY(eX,eK,e3,"Φ","\\Phi",!0),eY(eX,eK,e3,"Ψ","\\Psi",!0),eY(eX,eK,e3,"Ω","\\Omega",!0),eY(eX,eK,e3,"A","Α"),eY(eX,eK,e3,"B","Β"),eY(eX,eK,e3,"E","Ε"),eY(eX,eK,e3,"Z","Ζ"),eY(eX,eK,e3,"H","Η"),eY(eX,eK,e3,"I","Ι"),eY(eX,eK,e3,"K","Κ"),eY(eX,eK,e3,"M","Μ"),eY(eX,eK,e3,"N","Ν"),eY(eX,eK,e3,"O","Ο"),eY(eX,eK,e3,"P","Ρ"),eY(eX,eK,e3,"T","Τ"),eY(eX,eK,e3,"X","Χ"),eY(eX,eK,e3,"¬","\\neg",!0),eY(eX,eK,e3,"¬","\\lnot"),eY(eX,eK,e3,"⊤","\\top"),eY(eX,eK,e3,"⊥","\\bot"),eY(eX,eK,e3,"∅","\\emptyset"),eY(eX,"ams",e3,"∅","\\varnothing"),eY(eX,eK,e1,"α","\\alpha",!0),eY(eX,eK,e1,"β","\\beta",!0),eY(eX,eK,e1,"γ","\\gamma",!0),eY(eX,eK,e1,"δ","\\delta",!0),eY(eX,eK,e1,"ϵ","\\epsilon",!0),eY(eX,eK,e1,"ζ","\\zeta",!0),eY(eX,eK,e1,"η","\\eta",!0),eY(eX,eK,e1,"θ","\\theta",!0),eY(eX,eK,e1,"ι","\\iota",!0),eY(eX,eK,e1,"κ","\\kappa",!0),eY(eX,eK,e1,"λ","\\lambda",!0),eY(eX,eK,e1,"μ","\\mu",!0),eY(eX,eK,e1,"ν","\\nu",!0),eY(eX,eK,e1,"ξ","\\xi",!0),eY(eX,eK,e1,"ο","\\omicron",!0),eY(eX,eK,e1,"π","\\pi",!0),eY(eX,eK,e1,"ρ","\\rho",!0),eY(eX,eK,e1,"σ","\\sigma",!0),eY(eX,eK,e1,"τ","\\tau",!0),eY(eX,eK,e1,"υ","\\upsilon",!0),eY(eX,eK,e1,"ϕ","\\phi",!0),eY(eX,eK,e1,"χ","\\chi",!0),eY(eX,eK,e1,"ψ","\\psi",!0),eY(eX,eK,e1,"ω","\\omega",!0),eY(eX,eK,e1,"ε","\\varepsilon",!0),eY(eX,eK,e1,"ϑ","\\vartheta",!0),eY(eX,eK,e1,"ϖ","\\varpi",!0),eY(eX,eK,e1,"ϱ","\\varrho",!0),eY(eX,eK,e1,"ς","\\varsigma",!0),eY(eX,eK,e1,"φ","\\varphi",!0),eY(eX,eK,"bin","∗","*",!0),eY(eX,eK,"bin","+","+"),eY(eX,eK,"bin","−","-",!0),eY(eX,eK,"bin","⋅","\\cdot",!0),eY(eX,eK,"bin","∘","\\circ",!0),eY(eX,eK,"bin","÷","\\div",!0),eY(eX,eK,"bin","±","\\pm",!0),eY(eX,eK,"bin","×","\\times",!0),eY(eX,eK,"bin","∩","\\cap",!0),eY(eX,eK,"bin","∪","\\cup",!0),eY(eX,eK,"bin","∖","\\setminus",!0),eY(eX,eK,"bin","∧","\\land"),eY(eX,eK,"bin","∨","\\lor"),eY(eX,eK,"bin","∧","\\wedge",!0),eY(eX,eK,"bin","∨","\\vee",!0),eY(eX,eK,e3,"√","\\surd"),eY(eX,eK,e5,"⟨","\\langle",!0),eY(eX,eK,e5,"∣","\\lvert"),eY(eX,eK,e5,"∥","\\lVert"),eY(eX,eK,eQ,"?","?"),eY(eX,eK,eQ,"!","!"),eY(eX,eK,eQ,"⟩","\\rangle",!0),eY(eX,eK,eQ,"∣","\\rvert"),eY(eX,eK,eQ,"∥","\\rVert"),eY(eX,eK,"rel","=","="),eY(eX,eK,"rel",":",":"),eY(eX,eK,"rel","≈","\\approx",!0),eY(eX,eK,"rel","≅","\\cong",!0),eY(eX,eK,"rel","≥","\\ge"),eY(eX,eK,"rel","≥","\\geq",!0),eY(eX,eK,"rel","←","\\gets"),eY(eX,eK,"rel",">","\\gt",!0),eY(eX,eK,"rel","∈","\\in",!0),eY(eX,eK,"rel","","\\@not"),eY(eX,eK,"rel","⊂","\\subset",!0),eY(eX,eK,"rel","⊃","\\supset",!0),eY(eX,eK,"rel","⊆","\\subseteq",!0),eY(eX,eK,"rel","⊇","\\supseteq",!0),eY(eX,"ams","rel","⊈","\\nsubseteq",!0),eY(eX,"ams","rel","⊉","\\nsupseteq",!0),eY(eX,eK,"rel","⊨","\\models"),eY(eX,eK,"rel","←","\\leftarrow",!0),eY(eX,eK,"rel","≤","\\le"),eY(eX,eK,"rel","≤","\\leq",!0),eY(eX,eK,"rel","<","\\lt",!0),eY(eX,eK,"rel","→","\\rightarrow",!0),eY(eX,eK,"rel","→","\\to"),eY(eX,"ams","rel","≱","\\ngeq",!0),eY(eX,"ams","rel","≰","\\nleq",!0),eY(eX,eK,e7," ","\\ "),eY(eX,eK,e7," ","\\space"),eY(eX,eK,e7," ","\\nobreakspace"),eY(eZ,eK,e7," ","\\ "),eY(eZ,eK,e7," "," "),eY(eZ,eK,e7," ","\\space"),eY(eZ,eK,e7," ","\\nobreakspace"),eY(eX,eK,e7,null,"\\nobreak"),eY(eX,eK,e7,null,"\\allowbreak"),eY(eX,eK,e6,",",","),eY(eX,eK,e6,";",";"),eY(eX,"ams","bin","⊼","\\barwedge",!0),eY(eX,"ams","bin","⊻","\\veebar",!0),eY(eX,eK,"bin","⊙","\\odot",!0),eY(eX,eK,"bin","⊕","\\oplus",!0),eY(eX,eK,"bin","⊗","\\otimes",!0),eY(eX,eK,e3,"∂","\\partial",!0),eY(eX,eK,"bin","⊘","\\oslash",!0),eY(eX,"ams","bin","⊚","\\circledcirc",!0),eY(eX,"ams","bin","⊡","\\boxdot",!0),eY(eX,eK,"bin","△","\\bigtriangleup"),eY(eX,eK,"bin","▽","\\bigtriangledown"),eY(eX,eK,"bin","†","\\dagger"),eY(eX,eK,"bin","⋄","\\diamond"),eY(eX,eK,"bin","⋆","\\star"),eY(eX,eK,"bin","◃","\\triangleleft"),eY(eX,eK,"bin","▹","\\triangleright"),eY(eX,eK,e5,"{","\\{"),eY(eZ,eK,e3,"{","\\{"),eY(eZ,eK,e3,"{","\\textbraceleft"),eY(eX,eK,eQ,"}","\\}"),eY(eZ,eK,e3,"}","\\}"),eY(eZ,eK,e3,"}","\\textbraceright"),eY(eX,eK,e5,"{","\\lbrace"),eY(eX,eK,eQ,"}","\\rbrace"),eY(eX,eK,e5,"[","\\lbrack",!0),eY(eZ,eK,e3,"[","\\lbrack",!0),eY(eX,eK,eQ,"]","\\rbrack",!0),eY(eZ,eK,e3,"]","\\rbrack",!0),eY(eX,eK,e5,"(","\\lparen",!0),eY(eX,eK,eQ,")","\\rparen",!0),eY(eZ,eK,e3,"<","\\textless",!0),eY(eZ,eK,e3,">","\\textgreater",!0),eY(eX,eK,e5,"⌊","\\lfloor",!0),eY(eX,eK,eQ,"⌋","\\rfloor",!0),eY(eX,eK,e5,"⌈","\\lceil",!0),eY(eX,eK,eQ,"⌉","\\rceil",!0),eY(eX,eK,e3,"\\","\\backslash"),eY(eX,eK,e3,"∣","|"),eY(eX,eK,e3,"∣","\\vert"),eY(eZ,eK,e3,"|","\\textbar",!0),eY(eX,eK,e3,"∥","\\|"),eY(eX,eK,e3,"∥","\\Vert"),eY(eZ,eK,e3,"∥","\\textbardbl"),eY(eZ,eK,e3,"~","\\textasciitilde"),eY(eZ,eK,e3,"\\","\\textbackslash"),eY(eZ,eK,e3,"^","\\textasciicircum"),eY(eX,eK,"rel","↑","\\uparrow",!0),eY(eX,eK,"rel","⇑","\\Uparrow",!0),eY(eX,eK,"rel","↓","\\downarrow",!0),eY(eX,eK,"rel","⇓","\\Downarrow",!0),eY(eX,eK,"rel","↕","\\updownarrow",!0),eY(eX,eK,"rel","⇕","\\Updownarrow",!0),eY(eX,eK,e4,"∐","\\coprod"),eY(eX,eK,e4,"⋁","\\bigvee"),eY(eX,eK,e4,"⋀","\\bigwedge"),eY(eX,eK,e4,"⨄","\\biguplus"),eY(eX,eK,e4,"⋂","\\bigcap"),eY(eX,eK,e4,"⋃","\\bigcup"),eY(eX,eK,e4,"∫","\\int"),eY(eX,eK,e4,"∫","\\intop"),eY(eX,eK,e4,"∬","\\iint"),eY(eX,eK,e4,"∭","\\iiint"),eY(eX,eK,e4,"∏","\\prod"),eY(eX,eK,e4,"∑","\\sum"),eY(eX,eK,e4,"⨂","\\bigotimes"),eY(eX,eK,e4,"⨁","\\bigoplus"),eY(eX,eK,e4,"⨀","\\bigodot"),eY(eX,eK,e4,"∮","\\oint"),eY(eX,eK,e4,"∯","\\oiint"),eY(eX,eK,e4,"∰","\\oiiint"),eY(eX,eK,e4,"⨆","\\bigsqcup"),eY(eX,eK,e4,"∫","\\smallint"),eY(eZ,eK,e0,"…","\\textellipsis"),eY(eX,eK,e0,"…","\\mathellipsis"),eY(eZ,eK,e0,"…","\\ldots",!0),eY(eX,eK,e0,"…","\\ldots",!0),eY(eX,eK,e0,"⋯","\\@cdots",!0),eY(eX,eK,e0,"⋱","\\ddots",!0),eY(eX,eK,e3,"⋮","\\varvdots"),eY(eZ,eK,e3,"⋮","\\varvdots"),eY(eX,eK,eJ,"ˊ","\\acute"),eY(eX,eK,eJ,"ˋ","\\grave"),eY(eX,eK,eJ,"¨","\\ddot"),eY(eX,eK,eJ,"~","\\tilde"),eY(eX,eK,eJ,"ˉ","\\bar"),eY(eX,eK,eJ,"˘","\\breve"),eY(eX,eK,eJ,"ˇ","\\check"),eY(eX,eK,eJ,"^","\\hat"),eY(eX,eK,eJ,"⃗","\\vec"),eY(eX,eK,eJ,"˙","\\dot"),eY(eX,eK,eJ,"˚","\\mathring"),eY(eX,eK,e1,"","\\@imath"),eY(eX,eK,e1,"","\\@jmath"),eY(eX,eK,e3,"ı","ı"),eY(eX,eK,e3,"ȷ","ȷ"),eY(eZ,eK,e3,"ı","\\i",!0),eY(eZ,eK,e3,"ȷ","\\j",!0),eY(eZ,eK,e3,"ß","\\ss",!0),eY(eZ,eK,e3,"æ","\\ae",!0),eY(eZ,eK,e3,"œ","\\oe",!0),eY(eZ,eK,e3,"ø","\\o",!0),eY(eZ,eK,e3,"Æ","\\AE",!0),eY(eZ,eK,e3,"Œ","\\OE",!0),eY(eZ,eK,e3,"Ø","\\O",!0),eY(eZ,eK,eJ,"ˊ","\\'"),eY(eZ,eK,eJ,"ˋ","\\`"),eY(eZ,eK,eJ,"ˆ","\\^"),eY(eZ,eK,eJ,"˜","\\~"),eY(eZ,eK,eJ,"ˉ","\\="),eY(eZ,eK,eJ,"˘","\\u"),eY(eZ,eK,eJ,"˙","\\."),eY(eZ,eK,eJ,"¸","\\c"),eY(eZ,eK,eJ,"˚","\\r"),eY(eZ,eK,eJ,"ˇ","\\v"),eY(eZ,eK,eJ,"¨",'\\"'),eY(eZ,eK,eJ,"˝","\\H"),eY(eZ,eK,eJ,"◯","\\textcircled");var e8={"--":!0,"---":!0,"``":!0,"''":!0};eY(eZ,eK,e3,"–","--",!0),eY(eZ,eK,e3,"–","\\textendash"),eY(eZ,eK,e3,"—","---",!0),eY(eZ,eK,e3,"—","\\textemdash"),eY(eZ,eK,e3,"‘","`",!0),eY(eZ,eK,e3,"‘","\\textquoteleft"),eY(eZ,eK,e3,"’","'",!0),eY(eZ,eK,e3,"’","\\textquoteright"),eY(eZ,eK,e3,"“","``",!0),eY(eZ,eK,e3,"“","\\textquotedblleft"),eY(eZ,eK,e3,"”","''",!0),eY(eZ,eK,e3,"”","\\textquotedblright"),eY(eX,eK,e3,"°","\\degree",!0),eY(eZ,eK,e3,"°","\\degree"),eY(eZ,eK,e3,"°","\\textdegree",!0),eY(eX,eK,e3,"£","\\pounds"),eY(eX,eK,e3,"£","\\mathsterling",!0),eY(eZ,eK,e3,"£","\\pounds"),eY(eZ,eK,e3,"£","\\textsterling",!0),eY(eX,"ams",e3,"✠","\\maltese"),eY(eZ,"ams",e3,"✠","\\maltese");for(var e2='0123456789/@."',e9=0;e9{if(eB(e.classes)!==eB(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var r=e.classes[0];if("mbin"===r||"mord"===r)return!1}for(var a in e.style)if(e.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;for(var n in t.style)if(t.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;return!0},tw=function(e){for(var t=0,r=0,a=0,n=0;nt&&(t=o.height),o.depth>r&&(r=o.depth),o.maxFontSize>a&&(a=o.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=a},tk=function(e,t,r,a){var n=new eR(e,t,r,a);return tw(n),n},tS=(e,t,r,a)=>new eR(e,t,r,a),tM=function(e){var t=new eg(e);return tw(t),t},tz=function(e){if("individualShift"===e.positionType){for(var t,r=e.children,a=[r[0]],n=-r[0].shift-r[0].elem.depth,o=n,i=1;i0)return ty(n,l,a,t,o.concat(c));if(s){if("boldsymbol"===s){var m,h,d="textord"!==r&&tv(n,"Math-BoldItalic",a).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"};m=d.fontName,h=[d.fontClass]}else i?(m=tT[s].fontName,h=[s]):(m=tA(s,t.fontWeight,t.fontShape),h=[s,t.fontWeight,t.fontShape]);if(tv(n,m,a).metrics)return ty(n,m,a,t,o.concat(h));if(e8.hasOwnProperty(n)&&"Typewriter"===m.slice(0,10)){for(var u=[],p=0;p{var r=tk(["mspace"],[],t),a=eC(e,t);return r.style.marginRight=eq(a),r},staticSvg:function(e,t){var[r,a,n]=tN[e],o=tS(["overlay"],[new eV([new eF(r)],{width:eq(a),height:eq(n),style:"width:"+eq(a),viewBox:"0 0 "+1e3*a+" "+1e3*n,preserveAspectRatio:"xMinYMin"})],t);return o.height=n,o.style.height=eq(n),o.style.width=eq(a),o},svgData:tN,tryCombineChars:e=>{for(var t=0;t{var r=t.classes[0],a=e.classes[0];"mbin"===r&&K.contains(tG,a)?t.classes[0]="mord":"mbin"===a&&K.contains(t$,r)&&(e.classes[0]="mord")},{node:m},h,d),tY(n,(e,t)=>{var r=tK(t),a=tK(e),n=r&&a?e.hasClass("mtight")?tI[r][a]:tE[r][a]:null;if(n)return tC.makeGlue(n,l)},{node:m},h,d),n},tY=function e(t,r,a,n,o){n&&t.push(n);for(var i=0;i{t.splice(n+1,0,e),i++}}n&&t.pop()},tX=function(e){return e instanceof eg||e instanceof eL||e instanceof eR&&e.hasClass("enclosing")?e:null},tZ=function e(t,r){var a=tX(t);if(a){var n=a.children;if(n.length){if("right"===r)return e(n[n.length-1],"right");else if("left"===r)return e(n[0],"left")}}return t},tK=function(e,t){return e?(t&&(e=tZ(e,t)),t_[e.classes[0]]||null):null},tJ=function(e,t){var r=["nulldelimiter"].concat(e.baseSizingClasses());return tF(t.concat(r))},tQ=function(e,t,r){if(!e)return tF();if(tR[e.type]){var a=tR[e.type](e,t);if(r&&t.size!==r.size){a=tF(t.sizingClasses(r),[a],t);var n=t.sizeMultiplier/r.sizeMultiplier;a.height*=n,a.depth*=n}return a}throw new U("Got group of unknown type: '"+e.type+"'")};function t0(e,t){var r=tF(["base"],e,t),a=tF(["strut"]);return a.style.height=eq(r.height+r.depth),r.depth&&(a.style.verticalAlign=eq(-r.depth)),r.children.unshift(a),r}function t1(e,t){var r,a,n=null;1===e.length&&"tag"===e[0].type&&(n=e[0].tag,e=e[0].body);var o=tW(e,t,"root");2===o.length&&o[1].hasClass("tag")&&(r=o.pop());for(var i=[],s=[],l=0;l0&&(i.push(t0(s,t)),s=[]),i.push(o[l]));s.length>0&&i.push(t0(s,t)),n?((a=t0(tW(n,t,!0))).classes=["tag"],i.push(a)):r&&i.push(r);var m=tF(["katex-html"],i);if(m.setAttribute("aria-hidden","true"),a){var h=a.children[0];h.style.height=eq(m.height+m.depth),m.depth&&(h.style.verticalAlign=eq(-m.depth))}return m}function t4(e){return new eg(e)}class t5{constructor(e,t,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=r||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=eB(this.classes));for(var r=0;r0&&(e+=' class ="'+K.escape(eB(this.classes))+'"'),e+=">";for(var r=0;r")}toText(){return this.children.map(e=>e.toText()).join("")}}class t6{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return K.escape(this.toText())}toText(){return this.text}}var t7={MathNode:t5,TextNode:t6,SpaceNode:class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character="  ":e>=-.05556&&e<=-.05555?this.character=" ⁣":e>=-.1667&&e<=-.1666?this.character=" ⁣":e>=-.2223&&e<=-.2222?this.character=" ⁣":e>=-.2778&&e<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",eq(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}},newDocumentFragment:t4},t3=function(e,t,r){return eW[t][e]&&eW[t][e].replace&&55349!==e.charCodeAt(0)&&!(e8.hasOwnProperty(e)&&r&&(r.fontFamily&&"tt"===r.fontFamily.slice(4,6)||r.font&&"tt"===r.font.slice(4,6)))&&(e=eW[t][e].replace),new t7.TextNode(e)},t8=function(e){return 1===e.length?e[0]:new t7.MathNode("mrow",e)},t2=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"sans-serif-bold-italic";else if("textit"===t.fontShape)return"sans-serif-italic";else if("textbf"===t.fontWeight)return"bold-sans-serif";else return"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var r=t.font;if(!r||"mathnormal"===r)return null;var a=e.mode;if("mathit"===r)return"italic";if("boldsymbol"===r)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===r)return"bold";if("mathbb"===r)return"double-struck";if("mathsfit"===r)return"sans-serif-italic";else if("mathfrak"===r)return"fraktur";else if("mathscr"===r||"mathcal"===r)return"script";else if("mathsf"===r)return"sans-serif";else if("mathtt"===r)return"monospace";var n=e.text;return K.contains(["\\imath","\\jmath"],n)?null:(eW[a][n]&&eW[a][n].replace&&(n=eW[a][n].replace),ex(n,tC.fontMap[r].fontName,a))?tC.fontMap[r].variant:null};function t9(e){if(!e)return!1;if("mi"===e.type&&1===e.children.length){var t=e.children[0];return t instanceof t6&&"."===t.text}if("mo"!==e.type||1!==e.children.length||"true"!==e.getAttribute("separator")||"0em"!==e.getAttribute("lspace")||"0em"!==e.getAttribute("rspace"))return!1;var r=e.children[0];return r instanceof t6&&","===r.text}var re=function(e,t,r){if(1===e.length){var a,n=rr(e[0],t);return r&&n instanceof t5&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var o=[],i=0;i=1&&("mn"===a.type||t9(a))){var l=s.children[0];l instanceof t5&&"mn"===l.type&&(l.children=[...a.children,...l.children],o.pop())}else if("mi"===a.type&&1===a.children.length){var c=a.children[0];if(c instanceof t6&&"̸"===c.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var m=s.children[0];m instanceof t6&&m.text.length>0&&(m.text=m.text.slice(0,1)+"̸"+m.text.slice(1),o.pop())}}}o.push(s),a=s}return o},rt=function(e,t,r){return t8(re(e,t,r))},rr=function(e,t){if(!e)return new t7.MathNode("mrow");if(tL[e.type])return tL[e.type](e,t);throw new U("Got group of unknown type: '"+e.type+"'")};function ra(e,t,r,a,n){var o,i=re(e,r);o=1===i.length&&i[0]instanceof t5&&K.contains(["mrow","mtable"],i[0].type)?i[0]:new t7.MathNode("mrow",i);var s=new t7.MathNode("annotation",[new t7.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var l=new t7.MathNode("semantics",[o,s]),c=new t7.MathNode("math",[l]);return c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&c.setAttribute("display","block"),tC.makeSpan([n?"katex":"katex-mathml"],[c])}var rn=function(e){return new ez({style:e.displayMode?el.DISPLAY:el.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},ro=function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=tC.makeSpan(r,[e])}return e},ri=function(e,t,r){var a,n=rn(r);if("mathml"===r.output)return ra(e,t,n,r.displayMode,!0);if("html"===r.output){var o=t1(e,n);a=tC.makeSpan(["katex"],[o])}else{var i=ra(e,t,n,r.displayMode,!1),s=t1(e,n);a=tC.makeSpan(["katex"],[i,s])}return ro(a,r)},rs={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},rl={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},rc={encloseSpan:function(e,t,r,a,n){var o,i=e.height+e.depth+r+a;if(/fbox|color|angl/.test(t)){if(o=tC.makeSpan(["stretchy",t],[],n),"fbox"===t){var s=n.color&&n.getColor();s&&(o.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new e$({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new e$({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new eV(l,{width:"100%",height:eq(i)});o=tC.makeSvgSpan([],[c],n)}return o.height=i,o.style.height=eq(i),o},mathMLnode:function(e){var t=new t7.MathNode("mo",[new t7.TextNode(rs[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},svgSpan:function(e,t){var{span:r,minWidth:a,height:n}=function(){var r=4e5,a=e.label.slice(1);if(K.contains(["widehat","widecheck","widetilde","utilde"],a)){var n,o,i,s,l="ordgroup"===(s=e.base).type?s.body.length:1;if(l>5)"widehat"===a||"widecheck"===a?(n=420,r=2364,i=.42,o=a+"4"):(n=312,r=2340,i=.34,o="tilde4");else{var c=[1,1,2,2,3,3][l];"widehat"===a||"widecheck"===a?(r=[0,1062,2364,2364,2364][c],n=[0,239,300,360,420][c],i=[0,.24,.3,.3,.36,.42][c],o=a+c):(r=[0,600,1033,2339,2340][c],n=[0,260,286,306,312][c],i=[0,.26,.286,.3,.306,.34][c],o="tilde"+c)}var m=new eV([new eF(o)],{width:"100%",height:eq(i),viewBox:"0 0 "+r+" "+n,preserveAspectRatio:"none"});return{span:tC.makeSvgSpan([],[m],t),minWidth:0,height:i}}var h,d,u=[],p=rl[a],[f,g,b]=p,v=b/1e3,y=f.length;if(1===y)h=["hide-tail"],d=[p[3]];else if(2===y)h=["halfarrow-left","halfarrow-right"],d=["xMinYMin","xMaxYMin"];else if(3===y)h=["brace-left","brace-center","brace-right"],d=["xMinYMin","xMidYMin","xMaxYMin"];else throw Error("Correct katexImagesData or update code here to support\n "+y+" children.");for(var x=0;x0&&(r.style.minWidth=eq(a)),r}};function rm(e,t){if(!e||e.type!==t)throw Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function rh(e){var t=rd(e);if(!t)throw Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function rd(e){return e&&("atom"===e.type||e_.hasOwnProperty(e.type))?e:null}var ru=(e,t)=>{e&&"supsub"===e.type?(s=(l=rm(e.base,"accent")).base,e.base=s,c=function(e){if(e instanceof eR)return e;throw Error("Expected span but got "+String(e)+".")}(tQ(e,t)),e.base=l):s=(l=rm(e,"accent")).base;var r=tQ(s,t.havingCrampedStyle()),a=l.isShifty&&K.isCharacterBox(s),n=0;a&&(n=eG(tQ(K.getBaseElem(s),t.havingCrampedStyle())).skew);var o="\\c"===l.label,i=o?r.height+r.depth:Math.min(r.height,t.fontMetrics().xHeight);if(l.isStretchy)d=rc.svgSpan(l,t),d=tC.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"elem",elem:d,wrapperClasses:["svg-align"],wrapperStyle:n>0?{width:"calc(100% - "+eq(2*n)+")",marginLeft:eq(2*n)}:void 0}]},t);else{"\\vec"===l.label?(m=tC.staticSvg("vec",t),h=tC.svgData.vec[1]):((m=eG(m=tC.makeOrd({mode:l.mode,text:l.label},t,"textord"))).italic=0,h=m.width,o&&(i+=m.depth));var s,l,c,m,h,d=tC.makeSpan(["accent-body"],[m]),u="\\textcircled"===l.label;u&&(d.classes.push("accent-full"),i=r.height);var p=n;u||(p-=h/2),d.style.left=eq(p),"\\textcircled"===l.label&&(d.style.top=".2em"),d=tC.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:-i},{type:"elem",elem:d}]},t)}var f=tC.makeSpan(["mord","accent"],[d],t);return c?(c.children[0]=f,c.height=Math.max(f.height,c.height),c.classes[0]="mord",c):f},rp=(e,t)=>{var r=e.isStretchy?rc.mathMLnode(e.label):new t7.MathNode("mo",[t3(e.label,e.mode)]),a=new t7.MathNode("mover",[rr(e.base,t),r]);return a.setAttribute("accent","true"),a},rf=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));tH({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=tD(t[0]),a=!rf.test(e.funcName),n=!a||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:a,isShifty:n,base:r}},htmlBuilder:ru,mathmlBuilder:rp}),tH({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],a=e.parser.mode;return"math"===a&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:ru,mathmlBuilder:rp}),tH({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0];return{type:"accentUnder",mode:r.mode,label:a,base:n}},htmlBuilder:(e,t)=>{var r=tQ(e.base,t),a=rc.svgSpan(e,t),n=.12*("\\utilde"===e.label),o=tC.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:r}]},t);return tC.makeSpan(["mord","accentunder"],[o],t)},mathmlBuilder:(e,t)=>{var r=rc.mathMLnode(e.label),a=new t7.MathNode("munder",[rr(e.base,t),r]);return a.setAttribute("accentunder","true"),a}});var rg=e=>{var t=new t7.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};tH({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a,funcName:n}=e;return{type:"xArrow",mode:a.mode,label:n,body:t[0],below:r[0]}},htmlBuilder(e,t){var r,a,n=t.style,o=t.havingStyle(n.sup()),i=tC.wrapFragment(tQ(e.body,o,t),t),s="\\x"===e.label.slice(0,2)?"x":"cd";i.classes.push(s+"-arrow-pad"),e.below&&(o=t.havingStyle(n.sub()),(r=tC.wrapFragment(tQ(e.below,o,t),t)).classes.push(s+"-arrow-pad"));var l=rc.svgSpan(e,t),c=-t.fontMetrics().axisHeight+.5*l.height,m=-t.fontMetrics().axisHeight-.5*l.height-.111;if((i.depth>.25||"\\xleftequilibrium"===e.label)&&(m-=i.depth),r){var h=-t.fontMetrics().axisHeight+r.height+.5*l.height+.111;a=tC.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:m},{type:"elem",elem:l,shift:c},{type:"elem",elem:r,shift:h}]},t)}else a=tC.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:m},{type:"elem",elem:l,shift:c}]},t);return a.children[0].children[0].children[1].classes.push("svg-align"),tC.makeSpan(["mrel","x-arrow"],[a],t)},mathmlBuilder(e,t){var r,a=rc.mathMLnode(e.label);if(a.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var n=rg(rr(e.body,t));if(e.below){var o=rg(rr(e.below,t));r=new t7.MathNode("munderover",[a,o,n])}else r=new t7.MathNode("mover",[a,n])}else if(e.below){var i=rg(rr(e.below,t));r=new t7.MathNode("munder",[a,i])}else r=rg(),r=new t7.MathNode("mover",[a,r]);return r}});var rb=tC.makeSpan;function rv(e,t){var r=tW(e.body,t,!0);return rb([e.mclass],r,t)}function ry(e,t){var r,a=re(e.body,t);return"minner"===e.mclass?r=new t7.MathNode("mpadded",a):"mord"===e.mclass?e.isCharacterBox?(r=a[0]).type="mi":r=new t7.MathNode("mi",a):(e.isCharacterBox?(r=a[0]).type="mo":r=new t7.MathNode("mo",a),"mbin"===e.mclass?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):"mpunct"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0em"):"minner"===e.mclass&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}tH({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+a.slice(5),body:tV(n),isCharacterBox:K.isCharacterBox(n)}},htmlBuilder:rv,mathmlBuilder:ry});var rx=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"===t.type&&("bin"===t.family||"rel"===t.family)?"m"+t.family:"mord"};tH({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:rx(t[0]),body:tV(t[1]),isCharacterBox:K.isCharacterBox(t[1])}}}),tH({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var r,{parser:a,funcName:n}=e,o=t[1],i=t[0];r="\\stackrel"!==n?rx(o):"mrel";var s={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==n,body:tV(o)},l={type:"supsub",mode:i.mode,base:s,sup:"\\underset"===n?null:i,sub:"\\underset"===n?i:null};return{type:"mclass",mode:a.mode,mclass:r,body:[l],isCharacterBox:K.isCharacterBox(l)}},htmlBuilder:rv,mathmlBuilder:ry}),tH({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:rx(t[0]),body:tV(t[0])}},htmlBuilder(e,t){var r=tW(e.body,t,!0),a=tC.makeSpan([e.mclass],r,t);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(e,t){var r=re(e.body,t),a=new t7.MathNode("mstyle",r);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var rw={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},rk=()=>({type:"styling",body:[],mode:"math",style:"display"}),rS=e=>"textord"===e.type&&"@"===e.text,rM=(e,t)=>("mathord"===e.type||"atom"===e.type)&&e.text===t;tH({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"cdlabel",mode:r.mode,side:a.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),a=tC.wrapFragment(tQ(e.label,r,t),t);return a.classes.push("cd-label-"+e.side),a.style.bottom=eq(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(e,t){var r=new t7.MathNode("mrow",[rr(e.label,t)]);return(r=new t7.MathNode("mpadded",[r])).setAttribute("width","0"),"left"===e.side&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),(r=new t7.MathNode("mstyle",[r])).setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),tH({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=tC.wrapFragment(tQ(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder:(e,t)=>new t7.MathNode("mrow",[rr(e.fragment,t)])}),tH({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var r,{parser:a}=e,n=rm(t[0],"ordgroup").body,o="",i=0;i=1114111)throw new U("\\@char with invalid code point "+o);return s<=65535?r=String.fromCharCode(s):(s-=65536,r=String.fromCharCode((s>>10)+55296,(1023&s)+56320)),{type:"textord",mode:a.mode,text:r}}});var rz=(e,t)=>{var r=tW(e.body,t.withColor(e.color),!1);return tC.makeFragment(r)},rA=(e,t)=>{var r=re(e.body,t.withColor(e.color)),a=new t7.MathNode("mstyle",r);return a.setAttribute("mathcolor",e.color),a};tH({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,a=rm(t[0],"color-token").color,n=t[1];return{type:"color",mode:r.mode,color:a,body:tV(n)}},htmlBuilder:rz,mathmlBuilder:rA}),tH({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:a}=e,n=rm(t[0],"color-token").color;r.gullet.macros.set("\\current@color",n);var o=r.parseExpression(!0,a);return{type:"color",mode:r.mode,color:n,body:o}},htmlBuilder:rz,mathmlBuilder:rA}),tH({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:a}=e,n="["===a.gullet.future().text?a.parseSizeGroup(!0):null,o=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:o,size:n&&rm(n,"size").value}},htmlBuilder(e,t){var r=tC.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=eq(eC(e.size,t)))),r},mathmlBuilder(e,t){var r=new t7.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",eq(eC(e.size,t)))),r}});var rT={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},rN=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new U("Expected a control sequence",e);return t},rC=(e,t,r,a)=>{var n=e.gullet.macros.get(r.text);null==n&&(r.noexpand=!0,n={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,n,a)};tH({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var a=t.fetch();if(rT[a.text])return("\\global"===r||"\\\\globallong"===r)&&(a.text=rT[a.text]),rm(t.parseFunction(),"internal");throw new U("Invalid token after macro prefix",a)}}),tH({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var t,{parser:r,funcName:a}=e,n=r.gullet.popToken(),o=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(o))throw new U("Expected a control sequence",n);for(var i=0,s=[[]];"{"!==r.gullet.future().text;)if("#"===(n=r.gullet.popToken()).text){if("{"===r.gullet.future().text){t=r.gullet.future(),s[i].push("{");break}if(n=r.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new U('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==i+1)throw new U('Argument number "'+n.text+'" out of order');i++,s.push([])}else if("EOF"===n.text)throw new U("Expected a macro definition");else s[i].push(n.text);var{tokens:l}=r.gullet.consumeArg();return t&&l.unshift(t),("\\edef"===a||"\\xdef"===a)&&(l=r.gullet.expandTokens(l)).reverse(),r.gullet.macros.set(o,{tokens:l,numArgs:i,delimiters:s},a===rT[a]),{type:"internal",mode:r.mode}}}),tH({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var t,{parser:r,funcName:a}=e,n=rN(r.gullet.popToken());r.gullet.consumeSpaces();var o=("="===(t=r.gullet.popToken()).text&&" "===(t=r.gullet.popToken()).text&&(t=r.gullet.popToken()),t);return rC(r,n,o,"\\\\globallet"===a),{type:"internal",mode:r.mode}}}),tH({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=rN(t.gullet.popToken()),n=t.gullet.popToken(),o=t.gullet.popToken();return rC(t,a,o,"\\\\globalfuture"===r),t.gullet.pushToken(o),t.gullet.pushToken(n),{type:"internal",mode:t.mode}}});var rq=function(e,t,r){var a=ex(eW.math[e]&&eW.math[e].replace||e,t,r);if(!a)throw Error("Unsupported symbol "+e+" and font size "+t+".");return a},rB=function(e,t,r,a){var n=r.havingBaseStyle(t),o=tC.makeSpan(a.concat(n.sizingClasses(r)),[e],r),i=n.sizeMultiplier/r.sizeMultiplier;return o.height*=i,o.depth*=i,o.maxFontSize=n.sizeMultiplier,o},rj=function(e,t,r){var a=t.havingBaseStyle(r),n=(1-t.sizeMultiplier/a.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=eq(n),e.height-=n,e.depth+=n},rE=function(e,t,r,a,n,o){var i=rB(tC.makeSymbol(e,"Main-Regular",n,a),t,a,o);return r&&rj(i,a,t),i},rI=function(e,t,r,a,n,o){var i=tC.makeSymbol(e,"Size"+t+"-Regular",n,a),s=rB(tC.makeSpan(["delimsizing","size"+t],[i],a),el.TEXT,a,o);return r&&rj(s,a,el.TEXT),s},rO=function(e,t,r){return{type:"elem",elem:tC.makeSpan(["delimsizinginner","Size1-Regular"===t?"delim-size1":"delim-size4"],[tC.makeSpan([],[tC.makeSymbol(e,t,r)])])}},rR=function(e,t,r){var a=eb["Size4-Regular"][e.charCodeAt(0)]?eb["Size4-Regular"][e.charCodeAt(0)][4]:eb["Size1-Regular"][e.charCodeAt(0)][4],n=new eV([new eF("inner",eu(e,Math.round(1e3*t)))],{width:eq(a),height:eq(t),style:"width:"+eq(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),o=tC.makeSvgSpan([],[n],r);return o.height=t,o.style.height=eq(t),o.style.width=eq(a),{type:"elem",elem:o}},rL={type:"kern",size:-.008},rH=["|","\\lvert","\\rvert","\\vert"],rP=["\\|","\\lVert","\\rVert","\\Vert"],rD=function(e,t,r,a,n,o){var i,s,l,c,m="",h=0;i=l=c=e,s=null;var d="Size1-Regular";"\\uparrow"===e?l=c="⏐":"\\Uparrow"===e?l=c="‖":"\\downarrow"===e?i=l="⏐":"\\Downarrow"===e?i=l="‖":"\\updownarrow"===e?(i="\\uparrow",l="⏐",c="\\downarrow"):"\\Updownarrow"===e?(i="\\Uparrow",l="‖",c="\\Downarrow"):K.contains(rH,e)?(l="∣",m="vert",h=333):K.contains(rP,e)?(l="∥",m="doublevert",h=556):"["===e||"\\lbrack"===e?(i="⎡",l="⎢",c="⎣",d="Size4-Regular",m="lbrack",h=667):"]"===e||"\\rbrack"===e?(i="⎤",l="⎥",c="⎦",d="Size4-Regular",m="rbrack",h=667):"\\lfloor"===e||"⌊"===e?(l=i="⎢",c="⎣",d="Size4-Regular",m="lfloor",h=667):"\\lceil"===e||"⌈"===e?(i="⎡",l=c="⎢",d="Size4-Regular",m="lceil",h=667):"\\rfloor"===e||"⌋"===e?(l=i="⎥",c="⎦",d="Size4-Regular",m="rfloor",h=667):"\\rceil"===e||"⌉"===e?(i="⎤",l=c="⎥",d="Size4-Regular",m="rceil",h=667):"("===e||"\\lparen"===e?(i="⎛",l="⎜",c="⎝",d="Size4-Regular",m="lparen",h=875):")"===e||"\\rparen"===e?(i="⎞",l="⎟",c="⎠",d="Size4-Regular",m="rparen",h=875):"\\{"===e||"\\lbrace"===e?(i="⎧",s="⎨",c="⎩",l="⎪",d="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(i="⎫",s="⎬",c="⎭",l="⎪",d="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(i="⎧",c="⎩",l="⎪",d="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(i="⎫",c="⎭",l="⎪",d="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(i="⎧",c="⎭",l="⎪",d="Size4-Regular"):("\\rmoustache"===e||"⎱"===e)&&(i="⎫",c="⎩",l="⎪",d="Size4-Regular");var u=rq(i,d,n),p=u.height+u.depth,f=rq(l,d,n),g=f.height+f.depth,b=rq(c,d,n),v=b.height+b.depth,y=0,x=1;if(null!==s){var w=rq(s,d,n);y=w.height+w.depth,x=2}var k=p+v+y,S=Math.max(0,Math.ceil((t-k)/(x*g))),M=k+S*x*g,z=a.fontMetrics().axisHeight;r&&(z*=a.sizeMultiplier);var A=M/2-z,T=[];if(m.length>0){var N=Math.round(1e3*M),C=ef(m,Math.round(1e3*(M-p-v))),q=new eF(m,C),B=(h/1e3).toFixed(3)+"em",j=(N/1e3).toFixed(3)+"em",E=new eV([q],{width:B,height:j,viewBox:"0 0 "+h+" "+N}),I=tC.makeSvgSpan([],[E],a);I.height=N/1e3,I.style.width=B,I.style.height=j,T.push({type:"elem",elem:I})}else{if(T.push(rO(c,d,n)),T.push(rL),null===s)T.push(rR(l,M-p-v+.016,a));else{var O=(M-p-v-y)/2+.016;T.push(rR(l,O,a)),T.push(rL),T.push(rO(s,d,n)),T.push(rL),T.push(rR(l,O,a))}T.push(rL),T.push(rO(i,d,n))}var R=a.havingBaseStyle(el.TEXT),L=tC.makeVList({positionType:"bottom",positionData:A,children:T},R);return rB(tC.makeSpan(["delimsizing","mult"],[L],R),el.TEXT,a,o)},rV=function(e,t,r,a,n){var o=ed(e,a,r),i=new eV([new eF(e,o)],{width:"400em",height:eq(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return tC.makeSvgSpan(["hide-tail"],[i],n)},rF=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],r$=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],rG=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],rU=[0,1.2,1.8,2.4,3],r_=[{type:"small",style:el.SCRIPTSCRIPT},{type:"small",style:el.SCRIPT},{type:"small",style:el.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],rW=[{type:"small",style:el.SCRIPTSCRIPT},{type:"small",style:el.SCRIPT},{type:"small",style:el.TEXT},{type:"stack"}],rY=[{type:"small",style:el.SCRIPTSCRIPT},{type:"small",style:el.SCRIPT},{type:"small",style:el.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],rX=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw Error("Add support for delim type '"+e.type+"' here.")},rZ=function(e,t,r,a){for(var n=Math.min(2,3-a.style.size),o=n;ot)return r[o]}return r[r.length-1]},rK=function(e,t,r,a,n,o){"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":(">"===e||"\\gt"===e||"⟩"===e)&&(e="\\rangle");var i=K.contains(rG,e)?r_:K.contains(rF,e)?rY:rW,s=rZ(e,t,i,a);return"small"===s.type?rE(e,s.style,r,a,n,o):"large"===s.type?rI(e,s.size,r,a,n,o):rD(e,t,r,a,n,o)},rJ={sqrtImage:function(e,t){var r,a,n=t.havingBaseSizing(),o=rZ("\\surd",e*n.sizeMultiplier,rY,n),i=n.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,c=0,m=0;return"small"===o.type?(m=1e3+1e3*s+80,e<1?i=1:e<1.4&&(i=.7),l=(1+s+.08)/i,c=(1+s)/i,(r=rV("sqrtMain",l,m,s,t)).style.minWidth="0.853em",a=.833/i):"large"===o.type?(m=1080*rU[o.size],c=(rU[o.size]+s)/i,l=(rU[o.size]+s+.08)/i,(r=rV("sqrtSize"+o.size,l,m,s,t)).style.minWidth="1.02em",a=1/i):(l=e+s+.08,c=e+s,(r=rV("sqrtTall",l,m=Math.floor(1e3*e+s)+80,s,t)).style.minWidth="0.742em",a=1.056),r.height=c,r.style.height=eq(l),{span:r,advanceWidth:a,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*i}},sizedDelim:function(e,t,r,a,n){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":(">"===e||"\\gt"===e||"⟩"===e)&&(e="\\rangle"),K.contains(rF,e)||K.contains(rG,e))return rI(e,t,!1,r,a,n);if(K.contains(r$,e))return rD(e,rU[t],!1,r,a,n);throw new U("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:rU,customSizedDelim:rK,leftRightDelim:function(e,t,r,a,n,o){var i=a.fontMetrics().axisHeight*a.sizeMultiplier,s=5/a.fontMetrics().ptPerEm,l=Math.max(t-i,r+i);return rK(e,Math.max(l/500*901,2*l-s),!0,a,n,o)}},rQ={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},r0=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function r1(e,t){var r=rd(e);if(r&&K.contains(r0,r.text))return r;if(r)throw new U("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e);throw new U("Invalid delimiter type '"+e.type+"'",e)}function r4(e){if(!e.body)throw Error("Bug: The leftright ParseNode wasn't fully parsed.")}tH({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=r1(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:rQ[e.funcName].size,mclass:rQ[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>"."===e.delim?tC.makeSpan([e.mclass]):rJ.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(t3(e.delim,e.mode));var r=new t7.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var a=eq(rJ.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",a),r.setAttribute("maxsize",a),r}}),tH({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&"string"!=typeof r)throw new U("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:r1(t[0],e).text,color:r}}}),tH({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=r1(t[0],e),a=e.parser;++a.leftrightDepth;var n=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var o=rm(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:n,left:r.text,right:o.delim,rightColor:o.color}},htmlBuilder:(e,t)=>{r4(e);for(var r,a,n=tW(e.body,t,!0,["mopen","mclose"]),o=0,i=0,s=!1,l=0;l{r4(e);var r=re(e.body,t);if("."!==e.left){var a=new t7.MathNode("mo",[t3(e.left,e.mode)]);a.setAttribute("fence","true"),r.unshift(a)}if("."!==e.right){var n=new t7.MathNode("mo",[t3(e.right,e.mode)]);n.setAttribute("fence","true"),e.rightColor&&n.setAttribute("mathcolor",e.rightColor),r.push(n)}return t8(r)}}),tH({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=r1(t[0],e);if(!e.parser.leftrightDepth)throw new U("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if("."===e.delim)r=tJ(t,[]);else{r=rJ.sizedDelim(e.delim,1,t,e.mode,[]);var a={delim:e.delim,options:t};r.isMiddle=a}return r},mathmlBuilder:(e,t)=>{var r="\\vert"===e.delim||"|"===e.delim?t3("|","text"):t3(e.delim,e.mode),a=new t7.MathNode("mo",[r]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var r5=(e,t)=>{var r,a,n=tC.wrapFragment(tQ(e.body,t),t),o=e.label.slice(1),i=t.sizeMultiplier,s=0,l=K.isCharacterBox(e.body);if("sout"===o)(r=tC.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if("phase"===o){var c=eC({number:.6,unit:"pt"},t),m=eC({number:.35,unit:"ex"},t);i/=t.havingBaseSizing().sizeMultiplier;var h=n.height+n.depth+c+m;n.style.paddingLeft=eq(h/2+c);var d=Math.floor(1e3*h*i),u=new eV([new eF("phase","M400000 "+d+" H0 L"+d/2+" 0 l65 45 L145 "+(d-80)+" H400000z")],{width:"400em",height:eq(d/1e3),viewBox:"0 0 400000 "+d,preserveAspectRatio:"xMinYMin slice"});(r=tC.makeSvgSpan(["hide-tail"],[u],t)).style.height=eq(h),s=n.depth+c+m}else{/cancel/.test(o)?l||n.classes.push("cancel-pad"):"angl"===o?n.classes.push("anglpad"):n.classes.push("boxpad");var p=0,f=0,g=0;/box/.test(o)?(g=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),f=p=t.fontMetrics().fboxsep+("colorbox"===o?0:g)):"angl"===o?(p=4*(g=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),f=Math.max(0,.25-n.depth)):f=p=.2*!!l,r=rc.encloseSpan(n,o,p,f,t),/fbox|boxed|fcolorbox/.test(o)?(r.style.borderStyle="solid",r.style.borderWidth=eq(g)):"angl"===o&&.049!==g&&(r.style.borderTopWidth=eq(g),r.style.borderRightWidth=eq(g)),s=n.depth+f,e.backgroundColor&&(r.style.backgroundColor=e.backgroundColor,e.borderColor&&(r.style.borderColor=e.borderColor))}if(e.backgroundColor)a=tC.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:s},{type:"elem",elem:n,shift:0}]},t);else{var b=/cancel|phase/.test(o)?["svg-align"]:[];a=tC.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:r,shift:s,wrapperClasses:b}]},t)}return(/cancel/.test(o)&&(a.height=n.height,a.depth=n.depth),/cancel/.test(o)&&!l)?tC.makeSpan(["mord","cancel-lap"],[a],t):tC.makeSpan(["mord"],[a],t)},r6=(e,t)=>{var r=0,a=new t7.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[rr(e.body,t)]);switch(e.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*r+"pt"),a.setAttribute("height","+"+2*r+"pt"),a.setAttribute("lspace",r+"pt"),a.setAttribute("voffset",r+"pt"),"\\fcolorbox"===e.label){var n=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);a.setAttribute("style","border: "+n+"em solid "+String(e.borderColor))}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&a.setAttribute("mathbackground",e.backgroundColor),a};tH({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:a,funcName:n}=e,o=rm(t[0],"color-token").color,i=t[1];return{type:"enclose",mode:a.mode,label:n,backgroundColor:o,body:i}},htmlBuilder:r5,mathmlBuilder:r6}),tH({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:a,funcName:n}=e,o=rm(t[0],"color-token").color,i=rm(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:a.mode,label:n,backgroundColor:i,borderColor:o,body:s}},htmlBuilder:r5,mathmlBuilder:r6}),tH({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}}),tH({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"enclose",mode:r.mode,label:a,body:n}},htmlBuilder:r5,mathmlBuilder:r6}),tH({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var r7={};function r3(e){for(var{type:t,names:r,props:a,handler:n,htmlBuilder:o,mathmlBuilder:i}=e,s={type:t,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},l=0;l{if(!e.parser.settings.displayMode)throw new U("{"+e.envName+"} can be used only in display mode.")};function ae(e){if(-1===e.indexOf("ed"))return -1===e.indexOf("*")}function at(e,t,r){var{hskipBeforeAndAfter:a,addJot:n,cols:o,arraystretch:i,colSeparationType:s,autoTag:l,singleRow:c,emptySingleRow:m,maxNumCols:h,leqno:d}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!i){var u=e.gullet.expandMacroAsText("\\arraystretch");if(null==u)i=1;else if(!(i=parseFloat(u))||i<0)throw new U("Invalid \\arraystretch: "+u)}e.gullet.beginGroup();var p=[],f=[p],g=[],b=[],v=null!=l?[]:void 0;function y(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function x(){v&&(e.gullet.macros.get("\\df@tag")?(v.push(e.subparse([new G("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):v.push(!!l&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(y(),b.push(r2(e));;){var w=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),w={type:"ordgroup",mode:e.mode,body:w},r&&(w={type:"styling",mode:e.mode,style:r,body:[w]}),p.push(w);var k=e.fetch().text;if("&"===k){if(h&&p.length===h)if(c||s)throw new U("Too many tab characters: &",e.nextToken);else e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.");e.consume()}else if("\\end"===k){x(),1===p.length&&"styling"===w.type&&0===w.body[0].body.length&&(f.length>1||!m)&&f.pop(),b.length0&&(y+=.25),m.push({pos:y,isDashed:e[t]})}for(x(s[0]),r=0;r0&&(S<(T+=v)&&(S=T),T=0),e.addJot&&(S+=f),M.height=k,M.depth=S,M.pos=y+=k,y+=S+T,c[r]=M,x(s[r+1])}var N=y/2+t.fontMetrics().axisHeight,C=e.cols||[],q=[],B=[];if(e.tags&&e.tags.some(e=>e))for(r=0;r=l)){var V=void 0;(a>0||e.hskipBeforeAndAfter)&&0!==(V=K.deflt(R.pregap,u))&&((n=tC.makeSpan(["arraycolsep"],[])).style.width=eq(V),q.push(n));var F=[];for(r=0;r0){for(var W=tC.makeLineSpan("hline",t,h),Y=tC.makeLineSpan("hdashline",t,h),X=[{type:"elem",elem:c,shift:0}];m.length>0;){var Z=m.pop(),J=Z.pos-N;Z.isDashed?X.push({type:"elem",elem:Y,shift:J}):X.push({type:"elem",elem:W,shift:J})}c=tC.makeVList({positionType:"individualShift",children:X},t)}if(0===B.length)return tC.makeSpan(["mord"],[c],t);var Q=tC.makeVList({positionType:"individualShift",children:B},t);return Q=tC.makeSpan(["tag"],[Q],t),tC.makeFragment([c,Q])},an={c:"center ",l:"left ",r:"right "},ao=function(e,t){for(var r=[],a=new t7.MathNode("mtd",[],["mtr-glue"]),n=new t7.MathNode("mtd",[],["mml-eqn-num"]),o=0;o0){var u=e.cols,p="",f=!1,g=0,b=u.length;"separator"===u[0].type&&(h+="top ",g=1),"separator"===u[u.length-1].type&&(h+="bottom ",b-=1);for(var v=g;v0?"left ":"")+(S[S.length-1].length>0?"right ":"");for(var M=1;M-1?"alignat":"align",o="split"===e.envName,i=at(e.parser,{cols:a,addJot:!0,autoTag:o?void 0:ae(e.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:o?2:void 0,leqno:e.parser.settings.leqno},"display"),s=0,l={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var c="",m=0;m0&&h&&(p=1),a[d]={type:"align",align:u,pregap:p,postgap:0}}return i.colSeparationType=h?"align":"alignat",i};r3({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=(rd(t[0])?[t[0]]:rm(t[0],"ordgroup").body).map(function(e){var t=rh(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new U("Unknown column alignment: "+t,e)}),a={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return at(e.parser,a,ar(e.envName))},htmlBuilder:aa,mathmlBuilder:ao}),r3({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if("*"===e.envName.charAt(e.envName.length-1)){var n=e.parser;if(n.consumeSpaces(),"["===n.fetch().text){if(n.consume(),n.consumeSpaces(),r=n.fetch().text,-1==="lcr".indexOf(r))throw new U("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),a.cols=[{type:"align",align:r}]}}var o=at(e.parser,a,ar(e.envName)),i=Math.max(0,...o.body.map(e=>e.length));return o.cols=Array(i).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[o],left:t[0],right:t[1],rightColor:void 0}:o},htmlBuilder:aa,mathmlBuilder:ao}),r3({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=at(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:aa,mathmlBuilder:ao}),r3({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=(rd(t[0])?[t[0]]:rm(t[0],"ordgroup").body).map(function(e){var t=rh(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new U("Unknown column alignment: "+t,e)});if(r.length>1)throw new U("{subarray} can contain only one column");var a={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5};if((a=at(e.parser,a,"script")).body.length>0&&a.body[0].length>1)throw new U("{subarray} can contain only one column");return a},htmlBuilder:aa,mathmlBuilder:ao}),r3({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=at(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},ar(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:aa,mathmlBuilder:ao}),r3({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:ai,htmlBuilder:aa,mathmlBuilder:ao}),r3({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){K.contains(["gather","gather*"],e.envName)&&r9(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:ae(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return at(e.parser,t,"display")},htmlBuilder:aa,mathmlBuilder:ao}),r3({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:ai,htmlBuilder:aa,mathmlBuilder:ao}),r3({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){r9(e);var t={autoTag:ae(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return at(e.parser,t,"display")},htmlBuilder:aa,mathmlBuilder:ao}),r3({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(r9(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if("&"===r||"\\\\"===r)e.consume();else if("\\end"===r){0===t[t.length-1].length&&t.pop();break}else throw new U("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var a=[],n=[a],o=0;o-1);else if("<>AV".indexOf(c)>-1)for(var h=0;h<2;h++){for(var d=!0,u=l+1;uAV=|." after @',i[l]);var p={type:"styling",body:[function(e,t,r){var a=rw[e];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(a,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var n=r.callFunction("\\\\cdleft",[t[0]],[]),o=r.callFunction("\\Big",[{type:"atom",text:a,mode:"math",family:"rel"}],[]),i=r.callFunction("\\\\cdright",[t[1]],[]);return r.callFunction("\\\\cdparent",[{type:"ordgroup",mode:"math",body:[n,o,i]}],[]);case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return r.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}(c,m,e)],mode:"math",style:"display"};a.push(p),s=rk()}else s.body.push(i[l]);o%2==0?a.push(s):a.shift(),a=[],n.push(a)}e.gullet.endGroup(),e.gullet.endGroup();var f=Array(n[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:n,arraystretch:1,addJot:!0,rowGaps:[null],cols:f,colSeparationType:"CD",hLinesBeforeRow:Array(n.length+1).fill([])}}(e.parser)),htmlBuilder:aa,mathmlBuilder:ao}),r8["\\nonumber"]="\\gdef\\@eqnsw{0}",r8["\\notag"]="\\nonumber",tH({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new U(e.funcName+" valid only within array environment")}}),tH({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];if("ordgroup"!==n.type)throw new U("Invalid environment name",n);for(var o="",i=0;i{var r=e.font,a=t.withFont(r);return tQ(e.body,a)},al=(e,t)=>{var r=e.font,a=t.withFont(r);return rr(e.body,a)},ac={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};tH({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=tD(t[0]),o=a;return o in ac&&(o=ac[o]),{type:"font",mode:r.mode,font:o.slice(1),body:n}},htmlBuilder:as,mathmlBuilder:al}),tH({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,a=t[0],n=K.isCharacterBox(a);return{type:"mclass",mode:r.mode,mclass:rx(a),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:a}],isCharacterBox:n}}}),tH({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a,breakOnTokenText:n}=e,{mode:o}=r,i=r.parseExpression(!0,n);return{type:"font",mode:o,font:"math"+a.slice(1),body:{type:"ordgroup",mode:r.mode,body:i}}},htmlBuilder:as,mathmlBuilder:al});var am=(e,t)=>{var r=t;return"display"===e?r=r.id>=el.SCRIPT.id?r.text():el.DISPLAY:"text"===e&&r.size===el.DISPLAY.size?r=el.TEXT:"script"===e?r=el.SCRIPT:"scriptscript"===e&&(r=el.SCRIPTSCRIPT),r},ah=(e,t)=>{var r,a,n,o,i,s,l,c,m,h,d,u=am(e.size,t.style),p=u.fracNum(),f=u.fracDen();r=t.havingStyle(p);var g=tQ(e.numer,r,t);if(e.continued){var b=8.5/t.fontMetrics().ptPerEm,v=3.5/t.fontMetrics().ptPerEm;g.height=g.height0?3*o:7*o,l=t.fontMetrics().denom1):(n>0?(i=t.fontMetrics().num2,s=o):(i=t.fontMetrics().num3,s=3*o),l=t.fontMetrics().denom2),a){var x=t.fontMetrics().axisHeight;i-g.depth-(x+.5*n){var r=new t7.MathNode("mfrac",[rr(e.numer,t),rr(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var a=eC(e.barSize,t);r.setAttribute("linethickness",eq(a))}}else r.setAttribute("linethickness","0px");var n=am(e.size,t.style);if(n.size!==t.style.size){r=new t7.MathNode("mstyle",[r]);var o=n.size===el.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",o),r.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var i=[];if(null!=e.leftDelim){var s=new t7.MathNode("mo",[new t7.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),i.push(s)}if(i.push(r),null!=e.rightDelim){var l=new t7.MathNode("mo",[new t7.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),i.push(l)}return t8(i)}return r};tH({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var r,{parser:a,funcName:n}=e,o=t[0],i=t[1],s=null,l=null,c="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":r=!0;break;case"\\\\atopfrac":r=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":r=!1,s="(",l=")";break;case"\\\\bracefrac":r=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":r=!1,s="[",l="]";break;default:throw Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text"}return{type:"genfrac",mode:a.mode,continued:!1,numer:o,denom:i,hasBarLine:r,leftDelim:s,rightDelim:l,size:c,barSize:null}},htmlBuilder:ah,mathmlBuilder:ad}),tH({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0],o=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:n,denom:o,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),tH({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:r,funcName:a,token:n}=e;switch(a){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:t,token:n}}});var au=["display","text","script","scriptscript"],ap=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};tH({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var r,{parser:a}=e,n=t[4],o=t[5],i=tD(t[0]),s="atom"===i.type&&"open"===i.family?ap(i.text):null,l=tD(t[1]),c="atom"===l.type&&"close"===l.family?ap(l.text):null,m=rm(t[2],"size"),h=null;r=!!m.isBlank||(h=m.value).number>0;var d="auto",u=t[3];return"ordgroup"===u.type?u.body.length>0&&(d=au[Number(rm(u.body[0],"textord").text)]):d=au[Number((u=rm(u,"textord")).text)],{type:"genfrac",mode:a.mode,numer:n,denom:o,continued:!1,hasBarLine:r,barSize:h,leftDelim:s,rightDelim:c,size:d}},htmlBuilder:ah,mathmlBuilder:ad}),tH({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:a,token:n}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:rm(t[0],"size").value,token:n}}}),tH({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0],o=Z(rm(t[1],"infix").size),i=t[2],s=o.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:s,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:ah,mathmlBuilder:ad});var af=(e,t)=>{var r,a,n,o=t.style;"supsub"===e.type?(r=e.sup?tQ(e.sup,t.havingStyle(o.sup()),t):tQ(e.sub,t.havingStyle(o.sub()),t),a=rm(e.base,"horizBrace")):a=rm(e,"horizBrace");var i=tQ(a.base,t.havingBaseStyle(el.DISPLAY)),s=rc.svgSpan(a,t);if(a.isOver?(n=tC.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(n=tC.makeVList({positionType:"bottom",positionData:i.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:i}]},t)).children[0].children[0].children[0].classes.push("svg-align"),r){var l=tC.makeSpan(["mord",a.isOver?"mover":"munder"],[n],t);n=a.isOver?tC.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):tC.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return tC.makeSpan(["mord",a.isOver?"mover":"munder"],[n],t)};tH({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"horizBrace",mode:r.mode,label:a,isOver:/^\\over/.test(a),base:t[0]}},htmlBuilder:af,mathmlBuilder:(e,t)=>{var r=rc.mathMLnode(e.label);return new t7.MathNode(e.isOver?"mover":"munder",[rr(e.base,t),r])}}),tH({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[1],n=rm(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:r.mode,href:n,body:tV(a)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=tW(e.body,t,!1);return tC.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=rt(e.body,t);return r instanceof t5||(r=new t5("mrow",[r])),r.setAttribute("href",e.href),r}}),tH({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=rm(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:a}))return r.formatUnsupportedCmd("\\url");for(var n=[],o=0;onew t7.MathNode("mrow",re(e.body,t))}),tH({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var r,{parser:a,funcName:n,token:o}=e,i=rm(t[0],"raw").string,s=t[1];a.settings.strict&&a.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l={};switch(n){case"\\htmlClass":l.class=i,r={command:"\\htmlClass",class:i};break;case"\\htmlId":l.id=i,r={command:"\\htmlId",id:i};break;case"\\htmlStyle":l.style=i,r={command:"\\htmlStyle",style:i};break;case"\\htmlData":for(var c=i.split(","),m=0;m{var r=tW(e.body,t,!1),a=["enclosing"];e.attributes.class&&a.push(...e.attributes.class.trim().split(/\s+/));var n=tC.makeSpan(a,r,t);for(var o in e.attributes)"class"!==o&&e.attributes.hasOwnProperty(o)&&n.setAttribute(o,e.attributes[o]);return n},mathmlBuilder:(e,t)=>rt(e.body,t)}),tH({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:tV(t[0]),mathml:tV(t[1])}},htmlBuilder:(e,t)=>{var r=tW(e.html,t,!1);return tC.makeFragment(r)},mathmlBuilder:(e,t)=>rt(e.mathml,t)});var ag=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new U("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(t[1]+t[2]),unit:t[3]};if(!eN(r))throw new U("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};tH({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:a}=e,n={number:0,unit:"em"},o={number:.9,unit:"em"},i={number:0,unit:"em"},s="";if(r[0])for(var l=rm(r[0],"raw").string.split(","),c=0;c{var r=eC(e.height,t),a=0;e.totalheight.number>0&&(a=eC(e.totalheight,t)-r);var n=0;e.width.number>0&&(n=eC(e.width,t));var o={height:eq(r+a)};n>0&&(o.width=eq(n)),a>0&&(o.verticalAlign=eq(-a));var i=new eH(e.src,e.alt,o);return i.height=r,i.depth=a,i},mathmlBuilder:(e,t)=>{var r=new t7.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var a=eC(e.height,t),n=0;if(e.totalheight.number>0&&(n=eC(e.totalheight,t)-a,r.setAttribute("valign",eq(-n))),r.setAttribute("height",eq(a+n)),e.width.number>0){var o=eC(e.width,t);r.setAttribute("width",eq(o))}return r.setAttribute("src",e.src),r}}),tH({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e,n=rm(t[0],"size");if(r.settings.strict){var o="m"===a[1],i="mu"===n.value.unit;o?(i||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, not "+n.value.unit+" units"),"math"!==r.mode&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):i&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:n.value}},htmlBuilder:(e,t)=>tC.makeGlue(e.dimension,t),mathmlBuilder(e,t){var r=eC(e.dimension,t);return new t7.SpaceNode(r)}}),tH({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0];return{type:"lap",mode:r.mode,alignment:a.slice(5),body:n}},htmlBuilder:(e,t)=>{"clap"===e.alignment?(r=tC.makeSpan([],[tQ(e.body,t)]),r=tC.makeSpan(["inner"],[r],t)):r=tC.makeSpan(["inner"],[tQ(e.body,t)]);var r,a=tC.makeSpan(["fix"],[]),n=tC.makeSpan([e.alignment],[r,a],t),o=tC.makeSpan(["strut"]);return o.style.height=eq(n.height+n.depth),n.depth&&(o.style.verticalAlign=eq(-n.depth)),n.children.unshift(o),n=tC.makeSpan(["thinbox"],[n],t),tC.makeSpan(["mord","vbox"],[n],t)},mathmlBuilder:(e,t)=>{var r=new t7.MathNode("mpadded",[rr(e.body,t)]);if("rlap"!==e.alignment){var a="llap"===e.alignment?"-1":"-0.5";r.setAttribute("lspace",a+"width")}return r.setAttribute("width","0px"),r}}),tH({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:a}=e,n=a.mode;a.switchMode("math");var o="\\("===r?"\\)":"$",i=a.parseExpression(!1,o);return a.expect(o),a.switchMode(n),{type:"styling",mode:a.mode,style:"text",body:i}}}),tH({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new U("Mismatched "+e.funcName)}});var ab=(e,t)=>{switch(t.style.size){case el.DISPLAY.size:return e.display;case el.TEXT.size:return e.text;case el.SCRIPT.size:return e.script;case el.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};tH({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:tV(t[0]),text:tV(t[1]),script:tV(t[2]),scriptscript:tV(t[3])}},htmlBuilder:(e,t)=>{var r=tW(ab(e,t),t,!1);return tC.makeFragment(r)},mathmlBuilder:(e,t)=>rt(ab(e,t),t)});var av=(e,t,r,a,n,o,i)=>{e=tC.makeSpan([],[e]);var s,l,c,m=r&&K.isCharacterBox(r);if(t){var h=tQ(t,a.havingStyle(n.sup()),a);l={elem:h,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-h.depth)}}if(r){var d=tQ(r,a.havingStyle(n.sub()),a);s={elem:d,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-d.height)}}if(l&&s){var u=a.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+i;c=tC.makeVList({positionType:"bottom",positionData:u,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:eq(-o)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:eq(o)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(s){var p=e.height-i;c=tC.makeVList({positionType:"top",positionData:p,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:eq(-o)},{type:"kern",size:s.kern},{type:"elem",elem:e}]},a)}else{if(!l)return e;var f=e.depth+i;c=tC.makeVList({positionType:"bottom",positionData:f,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:eq(o)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}var g=[c];if(s&&0!==o&&!m){var b=tC.makeSpan(["mspace"],[],a);b.style.marginRight=eq(o),g.unshift(b)}return tC.makeSpan(["mop","op-limits"],g,a)},ay=["\\smallint"],ax=(e,t)=>{var r,a,n,o,i=!1;"supsub"===e.type?(r=e.sup,a=e.sub,n=rm(e.base,"op"),i=!0):n=rm(e,"op");var s=t.style,l=!1;if(s.size===el.DISPLAY.size&&n.symbol&&!K.contains(ay,n.name)&&(l=!0),n.symbol){var c=l?"Size2-Regular":"Size1-Regular",m="";if(("\\oiint"===n.name||"\\oiiint"===n.name)&&(m=n.name.slice(1),n.name="oiint"===m?"\\iint":"\\iiint"),o=tC.makeSymbol(n.name,c,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),m.length>0){var h=o.italic,d=tC.staticSvg(m+"Size"+(l?"2":"1"),t);o=tC.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:d,shift:.08*!!l}]},t),n.name="\\"+m,o.classes.unshift("mop"),o.italic=h}}else if(n.body){var u=tW(n.body,t,!0);1===u.length&&u[0]instanceof eD?(o=u[0]).classes[0]="mop":o=tC.makeSpan(["mop"],u,t)}else{for(var p=[],f=1;f{var r;if(e.symbol)r=new t5("mo",[t3(e.name,e.mode)]),K.contains(ay,e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new t5("mo",re(e.body,t));else{r=new t5("mi",[new t6(e.name.slice(1))]);var a=new t5("mo",[t3("⁡","text")]);r=e.parentIsSupSub?new t5("mrow",[r,a]):t4([r,a])}return r},ak={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};tH({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=a;return 1===n.length&&(n=ak[n]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:ax,mathmlBuilder:aw}),tH({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:tV(a)}},htmlBuilder:ax,mathmlBuilder:aw});var aS={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};tH({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:ax,mathmlBuilder:aw}),tH({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:ax,mathmlBuilder:aw}),tH({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e,a=r;return 1===a.length&&(a=aS[a]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:ax,mathmlBuilder:aw});var aM=(e,t)=>{var r,a,n,o,i=!1;if("supsub"===e.type?(r=e.sup,a=e.sub,n=rm(e.base,"operatorname"),i=!0):n=rm(e,"operatorname"),n.body.length>0){for(var s=tW(n.body.map(e=>{var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),t.withFont("mathrm"),!0),l=0;l{var{parser:r,funcName:a}=e,n=t[0];return{type:"operatorname",mode:r.mode,body:tV(n),alwaysHandleSupSub:"\\operatornamewithlimits"===a,limits:!1,parentIsSupSub:!1}},htmlBuilder:aM,mathmlBuilder:(e,t)=>{for(var r=re(e.body,t.withFont("mathrm")),a=!0,n=0;ne.toText()).join("");r=[new t7.TextNode(s)]}var l=new t7.MathNode("mi",r);l.setAttribute("mathvariant","normal");var c=new t7.MathNode("mo",[t3("⁡","text")]);return e.parentIsSupSub?new t7.MathNode("mrow",[l,c]):t7.newDocumentFragment([l,c])}}),r8["\\operatorname"]="\\@ifstar\\operatornamewithlimits\\operatorname@",tP({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?tC.makeFragment(tW(e.body,t,!1)):tC.makeSpan(["mord"],tW(e.body,t,!0),t),mathmlBuilder:(e,t)=>rt(e.body,t,!0)}),tH({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,a=t[0];return{type:"overline",mode:r.mode,body:a}},htmlBuilder(e,t){var r=tQ(e.body,t.havingCrampedStyle()),a=tC.makeLineSpan("overline-line",t),n=t.fontMetrics().defaultRuleThickness,o=tC.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*n},{type:"elem",elem:a},{type:"kern",size:n}]},t);return tC.makeSpan(["mord","overline"],[o],t)},mathmlBuilder(e,t){var r=new t7.MathNode("mo",[new t7.TextNode("‾")]);r.setAttribute("stretchy","true");var a=new t7.MathNode("mover",[rr(e.body,t),r]);return a.setAttribute("accent","true"),a}}),tH({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"phantom",mode:r.mode,body:tV(a)}},htmlBuilder:(e,t)=>{var r=tW(e.body,t.withPhantom(),!1);return tC.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=re(e.body,t);return new t7.MathNode("mphantom",r)}}),tH({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"hphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=tC.makeSpan([],[tQ(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var a=0;a{var r=re(tV(e.body),t),a=new t7.MathNode("mphantom",r),n=new t7.MathNode("mpadded",[a]);return n.setAttribute("height","0px"),n.setAttribute("depth","0px"),n}}),tH({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"vphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=tC.makeSpan(["inner"],[tQ(e.body,t.withPhantom())]),a=tC.makeSpan(["fix"],[]);return tC.makeSpan(["mord","rlap"],[r,a],t)},mathmlBuilder:(e,t)=>{var r=re(tV(e.body),t),a=new t7.MathNode("mphantom",r),n=new t7.MathNode("mpadded",[a]);return n.setAttribute("width","0px"),n}}),tH({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,a=rm(t[0],"size").value,n=t[1];return{type:"raisebox",mode:r.mode,dy:a,body:n}},htmlBuilder(e,t){var r=tQ(e.body,t),a=eC(e.dy,t);return tC.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new t7.MathNode("mpadded",[rr(e.body,t)]),a=e.dy.number+e.dy.unit;return r.setAttribute("voffset",a),r}}),tH({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),tH({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:a}=e,n=r[0],o=rm(t[0],"size"),i=rm(t[1],"size");return{type:"rule",mode:a.mode,shift:n&&rm(n,"size").value,width:o.value,height:i.value}},htmlBuilder(e,t){var r=tC.makeSpan(["mord","rule"],[],t),a=eC(e.width,t),n=eC(e.height,t),o=e.shift?eC(e.shift,t):0;return r.style.borderRightWidth=eq(a),r.style.borderTopWidth=eq(n),r.style.bottom=eq(o),r.width=a,r.height=n+o,r.depth=-o,r.maxFontSize=1.125*n*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=eC(e.width,t),a=eC(e.height,t),n=e.shift?eC(e.shift,t):0,o=t.color&&t.getColor()||"black",i=new t7.MathNode("mspace");i.setAttribute("mathbackground",o),i.setAttribute("width",eq(r)),i.setAttribute("height",eq(a));var s=new t7.MathNode("mpadded",[i]);return n>=0?s.setAttribute("height",eq(n)):(s.setAttribute("height",eq(n)),s.setAttribute("depth",eq(-n))),s.setAttribute("voffset",eq(n)),s}});var aA=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];tH({type:"sizing",names:aA,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:a,parser:n}=e,o=n.parseExpression(!1,r);return{type:"sizing",mode:n.mode,size:aA.indexOf(a)+1,body:o}},htmlBuilder:(e,t)=>{var r=t.havingSize(e.size);return az(e.body,r,t)},mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),a=re(e.body,r),n=new t7.MathNode("mstyle",a);return n.setAttribute("mathsize",eq(r.sizeMultiplier)),n}}),tH({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:a}=e,n=!1,o=!1,i=r[0]&&rm(r[0],"ordgroup");if(i)for(var s="",l=0;l{var r=tC.makeSpan([],[tQ(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var a=0;a{var r=new t7.MathNode("mpadded",[rr(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),tH({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a}=e,n=r[0],o=t[0];return{type:"sqrt",mode:a.mode,body:o,index:n}},htmlBuilder(e,t){var r=tQ(e.body,t.havingCrampedStyle());0===r.height&&(r.height=t.fontMetrics().xHeight),r=tC.wrapFragment(r,t);var a=t.fontMetrics().defaultRuleThickness,n=a;t.style.idr.height+r.depth+o&&(o=(o+m-r.height-r.depth)/2);var h=s.height-r.height-o-l;r.style.paddingLeft=eq(c);var d=tC.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+h)},{type:"elem",elem:s},{type:"kern",size:l}]},t);if(!e.index)return tC.makeSpan(["mord","sqrt"],[d],t);var u=t.havingStyle(el.SCRIPTSCRIPT),p=tQ(e.index,u,t),f=.6*(d.height-d.depth),g=tC.makeVList({positionType:"shift",positionData:-f,children:[{type:"elem",elem:p}]},t),b=tC.makeSpan(["root"],[g]);return tC.makeSpan(["mord","sqrt"],[b,d],t)},mathmlBuilder(e,t){var{body:r,index:a}=e;return a?new t7.MathNode("mroot",[rr(r,t),rr(a,t)]):new t7.MathNode("msqrt",[rr(r,t)])}});var aT={display:el.DISPLAY,text:el.TEXT,script:el.SCRIPT,scriptscript:el.SCRIPTSCRIPT};tH({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:a,parser:n}=e,o=n.parseExpression(!0,r),i=a.slice(1,a.length-5);return{type:"styling",mode:n.mode,style:i,body:o}},htmlBuilder(e,t){var r=aT[e.style],a=t.havingStyle(r).withFont("");return az(e.body,a,t)},mathmlBuilder(e,t){var r=aT[e.style],a=t.havingStyle(r),n=re(e.body,a),o=new t7.MathNode("mstyle",n),i={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return o.setAttribute("scriptlevel",i[0]),o.setAttribute("displaystyle",i[1]),o}});var aN=function(e,t){var r=e.base;if(!r)return null;if("op"===r.type)return r.limits&&(t.style.size===el.DISPLAY.size||r.alwaysHandleSupSub)?ax:null;if("operatorname"===r.type)return r.alwaysHandleSupSub&&(t.style.size===el.DISPLAY.size||r.limits)?aM:null;if("accent"===r.type)return K.isCharacterBox(r.base)?ru:null;if("horizBrace"===r.type)return!e.sub===r.isOver?af:null;else return null};tP({type:"supsub",htmlBuilder(e,t){var r,a,n,o,i=aN(e,t);if(i)return i(e,t);var{base:s,sup:l,sub:c}=e,m=tQ(s,t),h=t.fontMetrics(),d=0,u=0,p=s&&K.isCharacterBox(s);if(l){var f=t.havingStyle(t.style.sup());r=tQ(l,f,t),p||(d=m.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(c){var g=t.havingStyle(t.style.sub());a=tQ(c,g,t),p||(u=m.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}n=t.style===el.DISPLAY?h.sup1:t.style.cramped?h.sup3:h.sup2;var b=t.sizeMultiplier,v=eq(.5/h.ptPerEm/b),y=null;if(a){var x=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(m instanceof eD||x)&&(y=eq(-m.italic))}if(r&&a){d=Math.max(d,n,r.depth+.25*h.xHeight),u=Math.max(u,h.sub2);var w=4*h.defaultRuleThickness;if(d-r.depth-(a.height-u)0&&(d+=k,u-=k)}var S=[{type:"elem",elem:a,shift:u,marginRight:v,marginLeft:y},{type:"elem",elem:r,shift:-d,marginRight:v}];o=tC.makeVList({positionType:"individualShift",children:S},t)}else if(a){u=Math.max(u,h.sub1,a.height-.8*h.xHeight);var M=[{type:"elem",elem:a,marginLeft:y,marginRight:v}];o=tC.makeVList({positionType:"shift",positionData:u,children:M},t)}else if(r)d=Math.max(d,n,r.depth+.25*h.xHeight),o=tC.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:r,marginRight:v}]},t);else throw Error("supsub must have either sup or sub.");var z=tK(m,"right")||"mord";return tC.makeSpan([z],[m,tC.makeSpan(["msupsub"],[o])],t)},mathmlBuilder(e,t){var r,a,n=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(n=!0,r=e.base.isOver),e.base&&("op"===e.base.type||"operatorname"===e.base.type)&&(e.base.parentIsSupSub=!0);var o=[rr(e.base,t)];if(e.sub&&o.push(rr(e.sub,t)),e.sup&&o.push(rr(e.sup,t)),n)a=r?"mover":"munder";else if(e.sub)if(e.sup){var i=e.base;a=i&&"op"===i.type&&i.limits&&t.style===el.DISPLAY||i&&"operatorname"===i.type&&i.alwaysHandleSupSub&&(t.style===el.DISPLAY||i.limits)?"munderover":"msubsup"}else{var s=e.base;a=s&&"op"===s.type&&s.limits&&(t.style===el.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===el.DISPLAY)?"munder":"msub"}else{var l=e.base;a=l&&"op"===l.type&&l.limits&&(t.style===el.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===el.DISPLAY)?"mover":"msup"}return new t7.MathNode(a,o)}}),tP({type:"atom",htmlBuilder:(e,t)=>tC.mathsym(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var r=new t7.MathNode("mo",[t3(e.text,e.mode)]);if("bin"===e.family){var a=t2(e,t);"bold-italic"===a&&r.setAttribute("mathvariant",a)}else"punct"===e.family?r.setAttribute("separator","true"):("open"===e.family||"close"===e.family)&&r.setAttribute("stretchy","false");return r}});var aC={mi:"italic",mn:"normal",mtext:"normal"};tP({type:"mathord",htmlBuilder:(e,t)=>tC.makeOrd(e,t,"mathord"),mathmlBuilder(e,t){var r=new t7.MathNode("mi",[t3(e.text,e.mode,t)]),a=t2(e,t)||"italic";return a!==aC[r.type]&&r.setAttribute("mathvariant",a),r}}),tP({type:"textord",htmlBuilder:(e,t)=>tC.makeOrd(e,t,"textord"),mathmlBuilder(e,t){var r,a=t3(e.text,e.mode,t),n=t2(e,t)||"normal";return n!==aC[(r="text"===e.mode?new t7.MathNode("mtext",[a]):/[0-9]/.test(e.text)?new t7.MathNode("mn",[a]):"\\prime"===e.text?new t7.MathNode("mo",[a]):new t7.MathNode("mi",[a])).type]&&r.setAttribute("mathvariant",n),r}});var aq={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},aB={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};tP({type:"spacing",htmlBuilder(e,t){if(aB.hasOwnProperty(e.text)){var r=aB[e.text].className||"";if("text"!==e.mode)return tC.makeSpan(["mspace",r],[tC.mathsym(e.text,e.mode,t)],t);var a=tC.makeOrd(e,t,"textord");return a.classes.push(r),a}if(aq.hasOwnProperty(e.text))return tC.makeSpan(["mspace",aq[e.text]],[],t);throw new U('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){var r;if(aB.hasOwnProperty(e.text))r=new t7.MathNode("mtext",[new t7.TextNode(" ")]);else if(aq.hasOwnProperty(e.text))return new t7.MathNode("mspace");else throw new U('Unknown type of space "'+e.text+'"');return r}});var aj=()=>{var e=new t7.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};tP({type:"tag",mathmlBuilder(e,t){var r=new t7.MathNode("mtable",[new t7.MathNode("mtr",[aj(),new t7.MathNode("mtd",[rt(e.body,t)]),aj(),new t7.MathNode("mtd",[rt(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var aE={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},aI={"\\textbf":"textbf","\\textmd":"textmd"},aO={"\\textit":"textit","\\textup":"textup"},aR=(e,t)=>{var r=e.font;return r?aE[r]?t.withTextFontFamily(aE[r]):aI[r]?t.withTextFontWeight(aI[r]):"\\emph"===r?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(aO[r]):t};tH({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"text",mode:r.mode,body:tV(n),font:a}},htmlBuilder(e,t){var r=aR(e,t),a=tW(e.body,r,!0);return tC.makeSpan(["mord","text"],a,r)},mathmlBuilder(e,t){var r=aR(e,t);return rt(e.body,r)}}),tH({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=tQ(e.body,t),a=tC.makeLineSpan("underline-line",t),n=t.fontMetrics().defaultRuleThickness,o=tC.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:n},{type:"elem",elem:a},{type:"kern",size:3*n},{type:"elem",elem:r}]},t);return tC.makeSpan(["mord","underline"],[o],t)},mathmlBuilder(e,t){var r=new t7.MathNode("mo",[new t7.TextNode("‾")]);r.setAttribute("stretchy","true");var a=new t7.MathNode("munder",[rr(e.body,t),r]);return a.setAttribute("accentunder","true"),a}}),tH({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=tQ(e.body,t),a=t.fontMetrics().axisHeight,n=.5*(r.height-a-(r.depth+a));return tC.makeVList({positionType:"shift",positionData:n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder:(e,t)=>new t7.MathNode("mpadded",[rr(e.body,t)],["vcenter"])}),tH({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new U("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=aL(e),a=[],n=t.havingStyle(t.style.text()),o=0;oe.body.replace(/ /g,e.star?"␣":" "),aH="[ \r\n ]",aP="[̀-ͯ]",aD=RegExp(aP+"+$"),aV="("+aH+"+)|\\\\(\n|[ \r ]+\n?)[ \r ]*|([!-\\[\\]-‧‪-퟿豈-￿]"+aP+"*|[\uD800-\uDBFF][\uDC00-\uDFFF]"+aP+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)"+aH+"*|\\\\[^\uD800-\uDFFF])";class aF{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=RegExp(aV,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new G("EOF",new $(this,t,t));var r=this.tokenRegex.exec(e);if(null===r||r.index!==t)throw new U("Unexpected character: '"+e[t]+"'",new G(e[t],new $(this,t,t+1)));var a=r[6]||r[3]||(r[2]?"\\ ":" ");if(14===this.catcodes[a]){var n=e.indexOf("\n",this.tokenRegex.lastIndex);return -1===n?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=n+1,this.lex()}return new G(a,new $(this,t,this.tokenRegex.lastIndex))}}class a${constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new U("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,r){if(void 0===r&&(r=!1),r){for(var a=0;a0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var n=this.undefStack[this.undefStack.length-1];n&&!n.hasOwnProperty(e)&&(n[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}r8["\\noexpand"]=function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}},r8["\\expandafter"]=function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}},r8["\\@firstoftwo"]=function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}},r8["\\@secondoftwo"]=function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}},r8["\\@ifnextchar"]=function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return 1===t[0].length&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}},r8["\\@ifstar"]="\\@ifnextchar *{\\@firstoftwo{#1}}",r8["\\TextOrMath"]=function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}};var aG={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};r8["\\char"]=function(e){var t,r,a=e.popToken(),n="";if("'"===a.text)t=8,a=e.popToken();else if('"'===a.text)t=16,a=e.popToken();else if("`"===a.text)if("\\"===(a=e.popToken()).text[0])n=a.text.charCodeAt(1);else if("EOF"===a.text)throw new U("\\char` missing argument");else n=a.text.charCodeAt(0);else t=10;if(t){if(null==(n=aG[a.text])||n>=t)throw new U("Invalid base-"+t+" digit "+a.text);for(;null!=(r=aG[e.future().text])&&r{var n=e.consumeArg().tokens;if(1!==n.length)throw new U("\\newcommand's first argument must be a macro name");var o=n[0].text,i=e.isDefined(o);if(i&&!t)throw new U("\\newcommand{"+o+"} attempting to redefine "+o+"; use \\renewcommand");if(!i&&!r)throw new U("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var s=0;if(1===(n=e.consumeArg().tokens).length&&"["===n[0].text){for(var l="",c=e.expandNextToken();"]"!==c.text&&"EOF"!==c.text;)l+=c.text,c=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new U("Invalid number of arguments: "+l);s=parseInt(l),n=e.consumeArg().tokens}return i&&a||e.macros.set(o,{tokens:n,numArgs:s}),""};r8["\\newcommand"]=e=>aU(e,!1,!0,!1),r8["\\renewcommand"]=e=>aU(e,!0,!1,!1),r8["\\providecommand"]=e=>aU(e,!0,!0,!0),r8["\\message"]=e=>(console.log(e.consumeArgs(1)[0].reverse().map(e=>e.text).join("")),""),r8["\\errmessage"]=e=>(console.error(e.consumeArgs(1)[0].reverse().map(e=>e.text).join("")),""),r8["\\show"]=e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),tO[r],eW.math[r],eW.text[r]),""},r8["\\bgroup"]="{",r8["\\egroup"]="}",r8["~"]="\\nobreakspace",r8["\\lq"]="`",r8["\\rq"]="'",r8["\\aa"]="\\r a",r8["\\AA"]="\\r A",r8["\\textcopyright"]="\\html@mathml{\\textcircled{c}}{\\char`©}",r8["\\copyright"]="\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}",r8["\\textregistered"]="\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}",r8["ℬ"]="\\mathscr{B}",r8["ℰ"]="\\mathscr{E}",r8["ℱ"]="\\mathscr{F}",r8["ℋ"]="\\mathscr{H}",r8["ℐ"]="\\mathscr{I}",r8["ℒ"]="\\mathscr{L}",r8["ℳ"]="\\mathscr{M}",r8["ℛ"]="\\mathscr{R}",r8["ℭ"]="\\mathfrak{C}",r8["ℌ"]="\\mathfrak{H}",r8["ℨ"]="\\mathfrak{Z}",r8["\\Bbbk"]="\\Bbb{k}",r8["·"]="\\cdotp",r8["\\llap"]="\\mathllap{\\textrm{#1}}",r8["\\rlap"]="\\mathrlap{\\textrm{#1}}",r8["\\clap"]="\\mathclap{\\textrm{#1}}",r8["\\mathstrut"]="\\vphantom{(}",r8["\\underbar"]="\\underline{\\text{#1}}",r8["\\not"]='\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}',r8["\\neq"]="\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}",r8["\\ne"]="\\neq",r8["≠"]="\\neq",r8["\\notin"]="\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}",r8["∉"]="\\notin",r8["≘"]="\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}",r8["≙"]="\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}",r8["≚"]="\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}",r8["≛"]="\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}",r8["≝"]="\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}",r8["≞"]="\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}",r8["≟"]="\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}",r8["⟂"]="\\perp",r8["‼"]="\\mathclose{!\\mkern-0.8mu!}",r8["∌"]="\\notni",r8["⌜"]="\\ulcorner",r8["⌝"]="\\urcorner",r8["⌞"]="\\llcorner",r8["⌟"]="\\lrcorner",r8["©"]="\\copyright",r8["®"]="\\textregistered",r8["️"]="\\textregistered",r8["\\ulcorner"]='\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}',r8["\\urcorner"]='\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}',r8["\\llcorner"]='\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}',r8["\\lrcorner"]='\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}',r8["\\vdots"]="{\\varvdots\\rule{0pt}{15pt}}",r8["⋮"]="\\vdots",r8["\\varGamma"]="\\mathit{\\Gamma}",r8["\\varDelta"]="\\mathit{\\Delta}",r8["\\varTheta"]="\\mathit{\\Theta}",r8["\\varLambda"]="\\mathit{\\Lambda}",r8["\\varXi"]="\\mathit{\\Xi}",r8["\\varPi"]="\\mathit{\\Pi}",r8["\\varSigma"]="\\mathit{\\Sigma}",r8["\\varUpsilon"]="\\mathit{\\Upsilon}",r8["\\varPhi"]="\\mathit{\\Phi}",r8["\\varPsi"]="\\mathit{\\Psi}",r8["\\varOmega"]="\\mathit{\\Omega}",r8["\\substack"]="\\begin{subarray}{c}#1\\end{subarray}",r8["\\colon"]="\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax",r8["\\boxed"]="\\fbox{$\\displaystyle{#1}$}",r8["\\iff"]="\\DOTSB\\;\\Longleftrightarrow\\;",r8["\\implies"]="\\DOTSB\\;\\Longrightarrow\\;",r8["\\impliedby"]="\\DOTSB\\;\\Longleftarrow\\;",r8["\\dddot"]="{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}",r8["\\ddddot"]="{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}";var a_={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};r8["\\dots"]=function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in a_?t=a_[r]:"\\not"===r.slice(0,4)?t="\\dotsb":r in eW.math&&K.contains(["bin","rel"],eW.math[r].group)&&(t="\\dotsb"),t};var aW={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};r8["\\dotso"]=function(e){return e.future().text in aW?"\\ldots\\,":"\\ldots"},r8["\\dotsc"]=function(e){var t=e.future().text;return t in aW&&","!==t?"\\ldots\\,":"\\ldots"},r8["\\cdots"]=function(e){return e.future().text in aW?"\\@cdots\\,":"\\@cdots"},r8["\\dotsb"]="\\cdots",r8["\\dotsm"]="\\cdots",r8["\\dotsi"]="\\!\\cdots",r8["\\dotsx"]="\\ldots\\,",r8["\\DOTSI"]="\\relax",r8["\\DOTSB"]="\\relax",r8["\\DOTSX"]="\\relax",r8["\\tmspace"]="\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax",r8["\\,"]="\\tmspace+{3mu}{.1667em}",r8["\\thinspace"]="\\,",r8["\\>"]="\\mskip{4mu}",r8["\\:"]="\\tmspace+{4mu}{.2222em}",r8["\\medspace"]="\\:",r8["\\;"]="\\tmspace+{5mu}{.2777em}",r8["\\thickspace"]="\\;",r8["\\!"]="\\tmspace-{3mu}{.1667em}",r8["\\negthinspace"]="\\!",r8["\\negmedspace"]="\\tmspace-{4mu}{.2222em}",r8["\\negthickspace"]="\\tmspace-{5mu}{.277em}",r8["\\enspace"]="\\kern.5em ",r8["\\enskip"]="\\hskip.5em\\relax",r8["\\quad"]="\\hskip1em\\relax",r8["\\qquad"]="\\hskip2em\\relax",r8["\\tag"]="\\@ifstar\\tag@literal\\tag@paren",r8["\\tag@paren"]="\\tag@literal{({#1})}",r8["\\tag@literal"]=e=>{if(e.macros.get("\\df@tag"))throw new U("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"},r8["\\bmod"]="\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}",r8["\\pod"]="\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)",r8["\\pmod"]="\\pod{{\\rm mod}\\mkern6mu#1}",r8["\\mod"]="\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1",r8["\\newline"]="\\\\\\relax",r8["\\TeX"]="\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}";var aY=eq(eb["Main-Regular"][84][1]-.7*eb["Main-Regular"][65][1]);r8["\\LaTeX"]="\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+aY+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}",r8["\\KaTeX"]="\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+aY+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}",r8["\\hspace"]="\\@ifstar\\@hspacer\\@hspace",r8["\\@hspace"]="\\hskip #1\\relax",r8["\\@hspacer"]="\\rule{0pt}{0pt}\\hskip #1\\relax",r8["\\ordinarycolon"]=":",r8["\\vcentcolon"]="\\mathrel{\\mathop\\ordinarycolon}",r8["\\dblcolon"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}',r8["\\coloneqq"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}',r8["\\Coloneqq"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}',r8["\\coloneq"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}',r8["\\Coloneq"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}',r8["\\eqqcolon"]='\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}',r8["\\Eqqcolon"]='\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}',r8["\\eqcolon"]='\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}',r8["\\Eqcolon"]='\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}',r8["\\colonapprox"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}',r8["\\Colonapprox"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}',r8["\\colonsim"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}',r8["\\Colonsim"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}',r8["∷"]="\\dblcolon",r8["∹"]="\\eqcolon",r8["≔"]="\\coloneqq",r8["≕"]="\\eqqcolon",r8["⩴"]="\\Coloneqq",r8["\\ratio"]="\\vcentcolon",r8["\\coloncolon"]="\\dblcolon",r8["\\colonequals"]="\\coloneqq",r8["\\coloncolonequals"]="\\Coloneqq",r8["\\equalscolon"]="\\eqqcolon",r8["\\equalscoloncolon"]="\\Eqqcolon",r8["\\colonminus"]="\\coloneq",r8["\\coloncolonminus"]="\\Coloneq",r8["\\minuscolon"]="\\eqcolon",r8["\\minuscoloncolon"]="\\Eqcolon",r8["\\coloncolonapprox"]="\\Colonapprox",r8["\\coloncolonsim"]="\\Colonsim",r8["\\simcolon"]="\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}",r8["\\simcoloncolon"]="\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",r8["\\approxcolon"]="\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}",r8["\\approxcoloncolon"]="\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",r8["\\notni"]="\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}",r8["\\limsup"]="\\DOTSB\\operatorname*{lim\\,sup}",r8["\\liminf"]="\\DOTSB\\operatorname*{lim\\,inf}",r8["\\injlim"]="\\DOTSB\\operatorname*{inj\\,lim}",r8["\\projlim"]="\\DOTSB\\operatorname*{proj\\,lim}",r8["\\varlimsup"]="\\DOTSB\\operatorname*{\\overline{lim}}",r8["\\varliminf"]="\\DOTSB\\operatorname*{\\underline{lim}}",r8["\\varinjlim"]="\\DOTSB\\operatorname*{\\underrightarrow{lim}}",r8["\\varprojlim"]="\\DOTSB\\operatorname*{\\underleftarrow{lim}}",r8["\\gvertneqq"]="\\html@mathml{\\@gvertneqq}{≩}",r8["\\lvertneqq"]="\\html@mathml{\\@lvertneqq}{≨}",r8["\\ngeqq"]="\\html@mathml{\\@ngeqq}{≱}",r8["\\ngeqslant"]="\\html@mathml{\\@ngeqslant}{≱}",r8["\\nleqq"]="\\html@mathml{\\@nleqq}{≰}",r8["\\nleqslant"]="\\html@mathml{\\@nleqslant}{≰}",r8["\\nshortmid"]="\\html@mathml{\\@nshortmid}{∤}",r8["\\nshortparallel"]="\\html@mathml{\\@nshortparallel}{∦}",r8["\\nsubseteqq"]="\\html@mathml{\\@nsubseteqq}{⊈}",r8["\\nsupseteqq"]="\\html@mathml{\\@nsupseteqq}{⊉}",r8["\\varsubsetneq"]="\\html@mathml{\\@varsubsetneq}{⊊}",r8["\\varsubsetneqq"]="\\html@mathml{\\@varsubsetneqq}{⫋}",r8["\\varsupsetneq"]="\\html@mathml{\\@varsupsetneq}{⊋}",r8["\\varsupsetneqq"]="\\html@mathml{\\@varsupsetneqq}{⫌}",r8["\\imath"]="\\html@mathml{\\@imath}{ı}",r8["\\jmath"]="\\html@mathml{\\@jmath}{ȷ}",r8["\\llbracket"]="\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}",r8["\\rrbracket"]="\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}",r8["⟦"]="\\llbracket",r8["⟧"]="\\rrbracket",r8["\\lBrace"]="\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}",r8["\\rBrace"]="\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}",r8["⦃"]="\\lBrace",r8["⦄"]="\\rBrace",r8["\\minuso"]="\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}",r8["⦵"]="\\minuso",r8["\\darr"]="\\downarrow",r8["\\dArr"]="\\Downarrow",r8["\\Darr"]="\\Downarrow",r8["\\lang"]="\\langle",r8["\\rang"]="\\rangle",r8["\\uarr"]="\\uparrow",r8["\\uArr"]="\\Uparrow",r8["\\Uarr"]="\\Uparrow",r8["\\N"]="\\mathbb{N}",r8["\\R"]="\\mathbb{R}",r8["\\Z"]="\\mathbb{Z}",r8["\\alef"]="\\aleph",r8["\\alefsym"]="\\aleph",r8["\\Alpha"]="\\mathrm{A}",r8["\\Beta"]="\\mathrm{B}",r8["\\bull"]="\\bullet",r8["\\Chi"]="\\mathrm{X}",r8["\\clubs"]="\\clubsuit",r8["\\cnums"]="\\mathbb{C}",r8["\\Complex"]="\\mathbb{C}",r8["\\Dagger"]="\\ddagger",r8["\\diamonds"]="\\diamondsuit",r8["\\empty"]="\\emptyset",r8["\\Epsilon"]="\\mathrm{E}",r8["\\Eta"]="\\mathrm{H}",r8["\\exist"]="\\exists",r8["\\harr"]="\\leftrightarrow",r8["\\hArr"]="\\Leftrightarrow",r8["\\Harr"]="\\Leftrightarrow",r8["\\hearts"]="\\heartsuit",r8["\\image"]="\\Im",r8["\\infin"]="\\infty",r8["\\Iota"]="\\mathrm{I}",r8["\\isin"]="\\in",r8["\\Kappa"]="\\mathrm{K}",r8["\\larr"]="\\leftarrow",r8["\\lArr"]="\\Leftarrow",r8["\\Larr"]="\\Leftarrow",r8["\\lrarr"]="\\leftrightarrow",r8["\\lrArr"]="\\Leftrightarrow",r8["\\Lrarr"]="\\Leftrightarrow",r8["\\Mu"]="\\mathrm{M}",r8["\\natnums"]="\\mathbb{N}",r8["\\Nu"]="\\mathrm{N}",r8["\\Omicron"]="\\mathrm{O}",r8["\\plusmn"]="\\pm",r8["\\rarr"]="\\rightarrow",r8["\\rArr"]="\\Rightarrow",r8["\\Rarr"]="\\Rightarrow",r8["\\real"]="\\Re",r8["\\reals"]="\\mathbb{R}",r8["\\Reals"]="\\mathbb{R}",r8["\\Rho"]="\\mathrm{P}",r8["\\sdot"]="\\cdot",r8["\\sect"]="\\S",r8["\\spades"]="\\spadesuit",r8["\\sub"]="\\subset",r8["\\sube"]="\\subseteq",r8["\\supe"]="\\supseteq",r8["\\Tau"]="\\mathrm{T}",r8["\\thetasym"]="\\vartheta",r8["\\weierp"]="\\wp",r8["\\Zeta"]="\\mathrm{Z}",r8["\\argmin"]="\\DOTSB\\operatorname*{arg\\,min}",r8["\\argmax"]="\\DOTSB\\operatorname*{arg\\,max}",r8["\\plim"]="\\DOTSB\\mathop{\\operatorname{plim}}\\limits",r8["\\bra"]="\\mathinner{\\langle{#1}|}",r8["\\ket"]="\\mathinner{|{#1}\\rangle}",r8["\\braket"]="\\mathinner{\\langle{#1}\\rangle}",r8["\\Bra"]="\\left\\langle#1\\right|",r8["\\Ket"]="\\left|#1\\right\\rangle";var aX=e=>t=>{var r=t.consumeArg().tokens,a=t.consumeArg().tokens,n=t.consumeArg().tokens,o=t.consumeArg().tokens,i=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=t=>r=>{e&&(r.macros.set("|",i),n.length&&r.macros.set("\\|",s));var o=t;return!t&&n.length&&"|"===r.future().text&&(r.popToken(),o=!0),{tokens:o?n:a,numArgs:0}};t.macros.set("|",l(!1)),n.length&&t.macros.set("\\|",l(!0));var c=t.consumeArg().tokens,m=t.expandTokens([...o,...c,...r]);return t.macros.endGroup(),{tokens:m.reverse(),numArgs:0}};t=aX(!1),r8["\\bra@ket"]=t,r=aX(!0),r8["\\bra@set"]=r,r8["\\Braket"]="\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}",r8["\\Set"]="\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}",r8["\\set"]="\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}",r8["\\angln"]="{\\angl n}",r8["\\blue"]="\\textcolor{##6495ed}{#1}",r8["\\orange"]="\\textcolor{##ffa500}{#1}",r8["\\pink"]="\\textcolor{##ff00af}{#1}",r8["\\red"]="\\textcolor{##df0030}{#1}",r8["\\green"]="\\textcolor{##28ae7b}{#1}",r8["\\gray"]="\\textcolor{gray}{#1}",r8["\\purple"]="\\textcolor{##9d38bd}{#1}",r8["\\blueA"]="\\textcolor{##ccfaff}{#1}",r8["\\blueB"]="\\textcolor{##80f6ff}{#1}",r8["\\blueC"]="\\textcolor{##63d9ea}{#1}",r8["\\blueD"]="\\textcolor{##11accd}{#1}",r8["\\blueE"]="\\textcolor{##0c7f99}{#1}",r8["\\tealA"]="\\textcolor{##94fff5}{#1}",r8["\\tealB"]="\\textcolor{##26edd5}{#1}",r8["\\tealC"]="\\textcolor{##01d1c1}{#1}",r8["\\tealD"]="\\textcolor{##01a995}{#1}",r8["\\tealE"]="\\textcolor{##208170}{#1}",r8["\\greenA"]="\\textcolor{##b6ffb0}{#1}",r8["\\greenB"]="\\textcolor{##8af281}{#1}",r8["\\greenC"]="\\textcolor{##74cf70}{#1}",r8["\\greenD"]="\\textcolor{##1fab54}{#1}",r8["\\greenE"]="\\textcolor{##0d923f}{#1}",r8["\\goldA"]="\\textcolor{##ffd0a9}{#1}",r8["\\goldB"]="\\textcolor{##ffbb71}{#1}",r8["\\goldC"]="\\textcolor{##ff9c39}{#1}",r8["\\goldD"]="\\textcolor{##e07d10}{#1}",r8["\\goldE"]="\\textcolor{##a75a05}{#1}",r8["\\redA"]="\\textcolor{##fca9a9}{#1}",r8["\\redB"]="\\textcolor{##ff8482}{#1}",r8["\\redC"]="\\textcolor{##f9685d}{#1}",r8["\\redD"]="\\textcolor{##e84d39}{#1}",r8["\\redE"]="\\textcolor{##bc2612}{#1}",r8["\\maroonA"]="\\textcolor{##ffbde0}{#1}",r8["\\maroonB"]="\\textcolor{##ff92c6}{#1}",r8["\\maroonC"]="\\textcolor{##ed5fa6}{#1}",r8["\\maroonD"]="\\textcolor{##ca337c}{#1}",r8["\\maroonE"]="\\textcolor{##9e034e}{#1}",r8["\\purpleA"]="\\textcolor{##ddd7ff}{#1}",r8["\\purpleB"]="\\textcolor{##c6b9fc}{#1}",r8["\\purpleC"]="\\textcolor{##aa87ff}{#1}",r8["\\purpleD"]="\\textcolor{##7854ab}{#1}",r8["\\purpleE"]="\\textcolor{##543b78}{#1}",r8["\\mintA"]="\\textcolor{##f5f9e8}{#1}",r8["\\mintB"]="\\textcolor{##edf2df}{#1}",r8["\\mintC"]="\\textcolor{##e0e5cc}{#1}",r8["\\grayA"]="\\textcolor{##f6f7f7}{#1}",r8["\\grayB"]="\\textcolor{##f0f1f2}{#1}",r8["\\grayC"]="\\textcolor{##e3e5e6}{#1}",r8["\\grayD"]="\\textcolor{##d6d8da}{#1}",r8["\\grayE"]="\\textcolor{##babec2}{#1}",r8["\\grayF"]="\\textcolor{##888d93}{#1}",r8["\\grayG"]="\\textcolor{##626569}{#1}",r8["\\grayH"]="\\textcolor{##3b3e40}{#1}",r8["\\grayI"]="\\textcolor{##21242c}{#1}",r8["\\kaBlue"]="\\textcolor{##314453}{#1}",r8["\\kaGreen"]="\\textcolor{##71B307}{#1}";var aZ={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class aK{constructor(e,t,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new a$(r8,t.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new aF(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,r,a;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),{tokens:a,end:r}=this.consumeArg(["]"])}else({tokens:a,start:t,end:r}=this.consumeArg());return this.pushToken(new G("EOF",r.loc)),this.pushTokens(a),t.range(r,"")}consumeSpaces(){for(;;)if(" "===this.future().text)this.stack.pop();else break}consumeArg(e){var t,r=[],a=e&&e.length>0;a||this.consumeSpaces();var n=this.future(),o=0,i=0;do{if(t=this.popToken(),r.push(t),"{"===t.text)++o;else if("}"===t.text){if(-1==--o)throw new U("Extra }",t)}else if("EOF"===t.text)throw new U("Unexpected end of input in a macro argument, expected '"+(e&&a?e[i]:"}")+"'",t);if(e&&a)if((0===o||1===o&&"{"===e[i])&&t.text===e[i]){if(++i===e.length){r.splice(-i,i);break}}else i=0}while(0!==o||a)return"{"===n.text&&"}"===r[r.length-1].text&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:n,end:t}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new U("The length of delimiters doesn't match the number of args!");for(var r=t[0],a=0;athis.settings.maxExpand)throw new U("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),r=t.text,a=t.noexpand?null:this._getExpansion(r);if(null==a||e&&a.unexpandable){if(e&&null==a&&"\\"===r[0]&&!this.isDefined(r))throw new U("Undefined control sequence: "+r);return this.pushToken(t),!1}this.countExpansion(1);var n=a.tokens,o=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){n=n.slice();for(var i=n.length-1;i>=0;--i){var s=n[i];if("#"===s.text){if(0===i)throw new U("Incomplete placeholder at end of macro body",s);if("#"===(s=n[--i]).text)n.splice(i+1,1);else if(/^[1-9]$/.test(s.text))n.splice(i,2,...o[s.text-1]);else throw new U("Not a valid argument number",s)}}}return this.pushTokens(n),n.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw Error()}expandMacro(e){return this.macros.has(e)?this.expandTokens([new G(e)]):void 0}expandTokens(e){var t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(!1===this.expandOnce(!0)){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),t.push(a)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t?t.map(e=>e.text).join(""):t}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var r=this.lexer.catcodes[e];if(null!=r&&13!==r)return}var a="function"==typeof t?t(this):t;if("string"==typeof a){var n=0;if(-1!==a.indexOf("#"))for(var o=a.replace(/##/g,"");-1!==o.indexOf("#"+(n+1));)++n;for(var i=new aF(a,this.settings),s=[],l=i.lex();"EOF"!==l.text;)s.push(l),l=i.lex();return s.reverse(),{tokens:s,numArgs:n}}return a}isDefined(e){return this.macros.has(e)||tO.hasOwnProperty(e)||eW.math.hasOwnProperty(e)||eW.text.hasOwnProperty(e)||aZ.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:tO.hasOwnProperty(e)&&!tO[e].primitive}}var aJ=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,aQ=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9",ₐ:"a",ₑ:"e",ₕ:"h",ᵢ:"i",ⱼ:"j",ₖ:"k",ₗ:"l",ₘ:"m",ₙ:"n",ₒ:"o",ₚ:"p",ᵣ:"r",ₛ:"s",ₜ:"t",ᵤ:"u",ᵥ:"v",ₓ:"x",ᵦ:"β",ᵧ:"γ",ᵨ:"ρ",ᵩ:"ϕ",ᵪ:"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9",ᴬ:"A",ᴮ:"B",ᴰ:"D",ᴱ:"E",ᴳ:"G",ᴴ:"H",ᴵ:"I",ᴶ:"J",ᴷ:"K",ᴸ:"L",ᴹ:"M",ᴺ:"N",ᴼ:"O",ᴾ:"P",ᴿ:"R",ᵀ:"T",ᵁ:"U",ⱽ:"V",ᵂ:"W",ᵃ:"a",ᵇ:"b",ᶜ:"c",ᵈ:"d",ᵉ:"e",ᶠ:"f",ᵍ:"g",ʰ:"h",ⁱ:"i",ʲ:"j",ᵏ:"k",ˡ:"l",ᵐ:"m",ⁿ:"n",ᵒ:"o",ᵖ:"p",ʳ:"r",ˢ:"s",ᵗ:"t",ᵘ:"u",ᵛ:"v",ʷ:"w",ˣ:"x",ʸ:"y",ᶻ:"z",ᵝ:"β",ᵞ:"γ",ᵟ:"δ",ᵠ:"ϕ",ᵡ:"χ",ᶿ:"θ"}),a0={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},a1={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class a4{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new aK(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new U("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new G("}")),this.gullet.pushTokens(e);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,r}parseExpression(e,t){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var a=this.fetch();if(-1!==a4.endOfExpression.indexOf(a.text)||t&&a.text===t||e&&tO[a.text]&&tO[a.text].infix)break;var n=this.parseAtom(t);if(n){if("internal"===n.type)continue}else break;r.push(n)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,r=0;r=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var o,i=eW[this.mode][t].group,s=$.range(e);o=eU.hasOwnProperty(i)?{type:"atom",mode:this.mode,family:i,loc:s,text:t}:{type:i,mode:this.mode,loc:s,text:t}}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(eh(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),o={type:"textord",mode:"text",loc:$.range(e),text:t}}if(this.consume(),n)for(var l=0;lr&&(r=e):e&&(void 0!==r&&r>-1&&l.push("\n".repeat(r)||" "),r=-1,l.push(e))}return l.join("")}(d,{whitespace:"pre"});try{n=a3.renderToString(u,{...t,displayMode:m,throwOnError:!0})}catch(i){let o=i.name.toLowerCase();r.message("Could not render math with KaTeX",{ancestors:[...a,e],cause:i,place:e.position,ruleId:o,source:"rehype-katex"});try{n=a3.renderToString(u,{...t,displayMode:m,strict:"ignore",throwOnError:!1})}catch{n=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(i)},children:[{type:"text",value:u}]}]}}if("string"==typeof n){var p,f;n=(p=n,f={fragment:!0},z(f?.fragment?function(e){let t=document.createElement("template");return t.innerHTML=e,t.content}(p):T.parseFromString(p,"text/html"),{})||{type:"root",children:[]}).children}let g=h.children.indexOf(d);return h.children.splice(g,1,...n),o.SKIP})}}var ne=e.i(130562),nt=e.i(907033);let nr={asterisk:42,underscore:95};var na=e.i(420061);let nn={characterGroupPunctuation:2,characterGroupWhitespace:1};function no(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}no(/[A-Za-z]/),no(/[\dA-Za-z]/),no(/[#-'*+\--9=?A-Z^-~]/),no(/\d/),no(/[\dA-Fa-f]/),no(/[!-/:-@[-`{-~]/),no(/\p{P}|\p{S}/u),no(/\s/);let ni={eof:null};var ns=Object.defineProperty,nl=nm(/\p{P}|\p{S}/u),nc=nm(/\s/);function nm(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCodePoint(t))}}function nh(e){if(e===ni.eof||null!==e&&(e<0||32===e)||nc(e))return nn.characterGroupWhitespace;let t=0;if(e>=4352){if(null!==e&&e>=65024&&e<=65038)return a.nonEmojiGeneralUseVS;switch(function(e){if(!e||e<4352)return!1;switch(function(e){if(!Number.isSafeInteger(e))throw TypeError(`Expected a code point, got \`${typeof e}\`.`);return 161===e||164===e||167===e||168===e||170===e||173===e||174===e||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||198===e||208===e||215===e||216===e||e>=222&&e<=225||230===e||e>=232&&e<=234||236===e||237===e||240===e||242===e||243===e||e>=247&&e<=250||252===e||254===e||257===e||273===e||275===e||283===e||294===e||295===e||299===e||e>=305&&e<=307||312===e||e>=319&&e<=322||324===e||e>=328&&e<=331||333===e||338===e||339===e||358===e||359===e||363===e||462===e||464===e||466===e||468===e||470===e||472===e||474===e||476===e||593===e||609===e||708===e||711===e||e>=713&&e<=715||717===e||720===e||e>=728&&e<=731||733===e||735===e||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||1025===e||e>=1040&&e<=1103||1105===e||8208===e||e>=8211&&e<=8214||8216===e||8217===e||8220===e||8221===e||e>=8224&&e<=8226||e>=8228&&e<=8231||8240===e||8242===e||8243===e||8245===e||8251===e||8254===e||8308===e||8319===e||e>=8321&&e<=8324||8364===e||8451===e||8453===e||8457===e||8467===e||8470===e||8481===e||8482===e||8486===e||8491===e||8531===e||8532===e||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||8585===e||e>=8592&&e<=8601||8632===e||8633===e||8658===e||8660===e||8679===e||8704===e||8706===e||8707===e||8711===e||8712===e||8715===e||8719===e||8721===e||8725===e||8730===e||e>=8733&&e<=8736||8739===e||8741===e||e>=8743&&e<=8748||8750===e||e>=8756&&e<=8759||8764===e||8765===e||8776===e||8780===e||8786===e||8800===e||8801===e||e>=8804&&e<=8807||8810===e||8811===e||8814===e||8815===e||8834===e||8835===e||8838===e||8839===e||8853===e||8857===e||8869===e||8895===e||8978===e||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||9632===e||9633===e||e>=9635&&e<=9641||9650===e||9651===e||9654===e||9655===e||9660===e||9661===e||9664===e||9665===e||e>=9670&&e<=9672||9675===e||e>=9678&&e<=9681||e>=9698&&e<=9701||9711===e||9733===e||9734===e||9737===e||9742===e||9743===e||9756===e||9758===e||9792===e||9794===e||9824===e||9825===e||e>=9827&&e<=9829||e>=9831&&e<=9834||9836===e||9837===e||9839===e||9886===e||9887===e||9919===e||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||9955===e||9960===e||9961===e||e>=9963&&e<=9969||9972===e||e>=9974&&e<=9977||9979===e||9980===e||9982===e||9983===e||10045===e||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||65533===e||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||127375===e||127376===e||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109?"ambiguous":12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510?"fullwidth":8361===e||e>=65377&&e<=65470||e>=65474&&e<=65479||e>=65482&&e<=65487||e>=65490&&e<=65495||e>=65498&&e<=65500||e>=65512&&e<=65518?"halfwidth":e>=32&&e<=126||162===e||163===e||165===e||166===e||172===e||175===e||e>=10214&&e<=10221||10629===e||10630===e?"narrow":e>=4352&&e<=4447||8986===e||8987===e||9001===e||9002===e||e>=9193&&e<=9196||9200===e||9203===e||9725===e||9726===e||9748===e||9749===e||e>=9776&&e<=9783||e>=9800&&e<=9811||9855===e||e>=9866&&e<=9871||9875===e||9889===e||9898===e||9899===e||9917===e||9918===e||9924===e||9925===e||9934===e||9940===e||9962===e||9970===e||9971===e||9973===e||9978===e||9981===e||9989===e||9994===e||9995===e||10024===e||10060===e||10062===e||e>=10067&&e<=10069||10071===e||e>=10133&&e<=10135||10160===e||10175===e||11035===e||11036===e||11088===e||11093===e||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||110589===e||110590===e||e>=110592&&e<=110882||110898===e||e>=110928&&e<=110930||110933===e||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||126980===e||127183===e||127374===e||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||127568===e||127569===e||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||127988===e||e>=127992&&e<=128062||128064===e||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||128378===e||128405===e||128406===e||128420===e||e>=128507&&e<=128591||e>=128640&&e<=128709||128716===e||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||128747===e||128748===e||e>=128756&&e<=128764||e>=128992&&e<=129003||129008===e||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||129736===e||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141?"wide":"neutral"}(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(e));case"narrow":return!1;case"ambiguous":return 917760<=e&&e<=917999&&null;case"neutral":return/^\p{sc=Hangul}/u.test(String.fromCodePoint(e))}}(e)){case null:return a.ivs;case!0:t|=a.cjk}}return nl(e)&&(t|=nn.characterGroupPunctuation),t}function nd(e,t,r){if(e!==a.nonEmojiGeneralUseVS)return e;let n=t(),o=nh(n);return!n||nu(o)?e:65025===r&&n&&!(n<8216)&&(8216===n||8217===n||8220===n||8221===n)?a.cjkPunctuation:o&~a.ivs}function nu(e){return!!(e&nn.characterGroupWhitespace)}function np(e){return(e&a.cjkPunctuation)===nn.characterGroupPunctuation}function nf(e){return!!(e&a.cjk)}function ng(e){return!!(e&a.spaceOrPunctuation)}function nb(e){return!!(e&&e>=55296&&e<=56319)}function nv(e){return!!(e&&e>=56320&&e<=57343)}function ny(e,t,r){if(t._bufferIndex<2)return e;let a=r({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return a&&a>=65536?a:e}(e=>{e.spaceOrPunctuation=3,e.cjk=4096,e.cjkPunctuation=4098,e.ivs=8192,e.cjkOrIvs=12288,e.nonEmojiGeneralUseVS=16384,e.variationSelector=24576,e.ivsToCjkRightShift=1})(a||(a={}));var nx=class{constructor(e,t,r){this.previousCode=e,this.nowPoint=t,this.sliceSerialize=r,((e,t,r)=>((e,t,r)=>t in e?ns(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r))(this,"cachedValue")}value(){return void 0===this.cachedValue&&(this.cachedValue=function(e,t,r){let a=e>=65536?2:1;if(t._bufferIndex<1+a)return null;let n=t._bufferIndex-a-2,o=r({start:{...t,_bufferIndex:n>=0?n:0},end:{...t,_bufferIndex:t._bufferIndex-a}}),i=o.charCodeAt(o.length-1);if(Number.isNaN(i))return null;if(o.length<2||i<56320||57343=65536?s:i}(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function nw(e,t,r){let a=r({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return a&&a>=65536?a:e}function nk(e,t,r,a){let n,o=e.length,i=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,r=r>0?r:0,a.length<1e4)(n=Array.from(a)).unshift(t,r),e.splice(...n);else for(r&&e.splice(t,r);i0?(nk(e,e.length,0,t),e):t}let nM={emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",strong:"strong",strongSequence:"strongSequence",strongText:"strongText"};var nz={name:"attention",resolveAll:function(e,t){let r,a,n,o,i,s,l,c,m=-1;for(;++m1&&e[m][1].end.offset-e[m][1].start.offset>1?2:1;let h={...e[r][1].end},d={...e[m][1].start};nA(h,-s),nA(d,s),o={type:s>1?nM.strongSequence:nM.emphasisSequence,start:h,end:{...e[r][1].end}},i={type:s>1?nM.strongSequence:nM.emphasisSequence,start:{...e[m][1].start},end:d},n={type:s>1?nM.strongText:nM.emphasisText,start:{...e[r][1].end},end:{...e[m][1].start}},a={type:s>1?nM.strong:nM.emphasis,start:{...o.start},end:{...i.end}},e[r][1].end={...o.start},e[m][1].start={...i.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=nS(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=nS(l,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",n,t]]),(0,na.ok)(t.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),l=nS(l,function(e,t,r){let a=[],n=-1;for(;++no?0:o+t:t>o?o:t,r=r>0?r:0,a.length<1e4)(n=Array.from(a)).unshift(t,r),e.splice(...n);else for(r&&e.splice(t,r);i{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||95===t||nG.test(e)},nY=e=>{let t=(e.match(/```/g)||[]).length;return t>0&&t%2==0&&e.includes(` `)},nX=(e,t)=>{let r=!1,a=!1;for(let n=0;n!!("\\"===r||"*"===r||"*"===a||r&&a&&nW(r)&&nW(a)||((e,t,r)=>{if(" "!==r&&" "!==r)return!1;let a=0;for(let r=t-1;r>=0;r-=1)if(e[r]===` `){a=r+1;break}for(let r=a;r!!("\\"===r||e.includes("$")&&nX(e,t)||"_"===r||"_"===a||r&&a&&nW(r)&&nW(a)),nJ=(e,t)=>{let r=!1,a=!1;for(let n=0;n{let r="```"===e.substring(t,t+3),a=t>0&&"```"===e.substring(t-1,t+2),n=t>1&&"```"===e.substring(t-2,t+1);return r||a||n},n0=(e,t)=>{let r=t>0&&"!"===e[t-1];if(!e.substring(t+1).includes("]")||-1===((e,t)=>{let r=1;for(let a=t+1;a{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},n4=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var n5={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let n6=(0,n.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:o="",children:i,iconNode:s,...l},c)=>(0,n.createElement)("svg",{ref:c,...n5,width:t,height:t,stroke:e,strokeWidth:a?24*Number(r)/Number(t):r,className:n4("lucide",o),...!i&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(l)&&{"aria-hidden":"true"},...l},[...s.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(i)?i:[i]])),n7=(e,t)=>{let r=(0,n.forwardRef)(({className:r,...a},o)=>(0,n.createElement)(n6,{ref:o,iconNode:t,className:n4(`lucide-${n1(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...a}));return r.displayName=n1(e),r},n3=n7("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),n8=n7("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),n2=n7("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),n9=n7("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]),oe=n7("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ot=n7("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),or=n7("zoom-in",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),oa=n7("zoom-out",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),on=n7("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),oo=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),oi=[],os=(e,t,r)=>{if(0==e.length-t)return r.classGroupId;let a=e[t],n=r.nextPart.get(a);if(n){let r=os(e,t+1,n);if(r)return r}let o=r.validators;if(null===o)return;let i=0===t?e.join("-"):e.slice(t).join("-"),s=o.length;for(let e=0;e{let r=oo();for(let a in e)oc(e[a],r,a,t);return r},oc=(e,t,r,a)=>{let n=e.length;for(let o=0;o"string"==typeof e?void oh(e,t,r):"function"==typeof e?void od(e,t,r,a):void ou(e,t,r,a),oh=(e,t,r)=>{(""===e?t:op(t,e)).classGroupId=r},od=(e,t,r,a)=>{if(of(e))return void oc(e(a),t,r,a);null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:r,validator:e})},ou=(e,t,r,a)=>{let n=Object.entries(e),o=n.length;for(let e=0;e{let r=e,a=t.split("-"),n=a.length;for(let e=0;e"isThemeGetter"in e&&!0===e.isThemeGetter,og=[],ob=(e,t,r,a,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:a,isExternal:n}),ov=/\s+/,oy=e=>{let t;if("string"==typeof e)return e;let r="";for(let a=0;a{let t=t=>t[e]||ox;return t.isThemeGetter=!0,t},ok=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,oS=/^\((?:(\w[\w-]*):)?(.+)\)$/i,oM=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,oz=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oA=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,oT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,oN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,oC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,oq=e=>oM.test(e),oB=e=>!!e&&!Number.isNaN(Number(e)),oj=e=>!!e&&Number.isInteger(Number(e)),oE=e=>e.endsWith("%")&&oB(e.slice(0,-1)),oI=e=>oz.test(e),oO=()=>!0,oR=e=>oA.test(e)&&!oT.test(e),oL=()=>!1,oH=e=>oN.test(e),oP=e=>oC.test(e),oD=e=>!o$(e)&&!oK(e),oV=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),oF=e=>o7(e,o9,oL),o$=e=>ok.test(e),oG=e=>o7(e,ie,oR),oU=e=>o7(e,it,oB),o_=e=>o7(e,ia,oO),oW=e=>o7(e,ir,oL),oY=e=>o7(e,o8,oL),oX=e=>o7(e,o2,oP),oZ=e=>o7(e,io,oH),oK=e=>oS.test(e),oJ=e=>o3(e,ie),oQ=e=>o3(e,ir),o0=e=>o3(e,o8),o1=e=>o3(e,o9),o4=e=>o3(e,o2),o5=e=>o3(e,io,!0),o6=e=>o3(e,ia,!0),o7=(e,t,r)=>{let a=ok.exec(e);return!!a&&(a[1]?t(a[1]):r(a[2]))},o3=(e,t,r=!1)=>{let a=oS.exec(e);return!!a&&(a[1]?t(a[1]):r)},o8=e=>"position"===e||"percentage"===e,o2=e=>"image"===e||"url"===e,o9=e=>"length"===e||"size"===e||"bg-size"===e,ie=e=>"length"===e,it=e=>"number"===e,ir=e=>"family-name"===e,ia=e=>"number"===e||"weight"===e,io=e=>"shadow"===e;Symbol.toStringTag;let ii=((e,...t)=>{let r,a,n,o,i=e=>{let t=a(e);if(t)return t;let o=((e,t)=>{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:n,sortModifiers:o,postfixLookupClassGroupIds:i}=t,s=[],l=e.trim().split(ov),c="";for(let e=l.length-1;e>=0;e-=1){let t,m=l[e],{isExternal:h,modifiers:d,hasImportantModifier:u,baseClassName:p,maybePostfixModifierPosition:f}=r(m);if(h){c=m+(c.length>0?" "+c:c);continue}let g=!!f;if(g){let e=(t=a(p.substring(0,f)))&&i[t]?a(p):void 0;e&&e!==t&&(t=e,g=!1)}else t=a(p);if(!t){if(!g||!(t=a(p))){c=m+(c.length>0?" "+c:c);continue}g=!1}let b=0===d.length?"":1===d.length?d[0]:o(d).join(":"),v=u?b+"!":b,y=v+t;if(s.indexOf(y)>-1)continue;s.push(y);let x=n(t,g);for(let e=0;e0?" "+c:c)}return c})(e,r);return n(e,o),o};return o=s=>(a=(r=(e=>({cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=Object.create(null),a=Object.create(null),n=(n,o)=>{r[n]=o,++t>e&&(t=0,a=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=a[e])?(n(e,t),t):void 0},set(e,t){e in r?r[e]=t:n(e,t)}}})(e.cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:r}=e,a=e=>{let t,r=[],a=0,n=0,o=0,i=e.length;for(let s=0;so?t-o:void 0)};if(t){let e=t+":",r=a;a=t=>t.startsWith(e)?r(t.slice(e.length)):ob(og,!1,t,void 0,!0)}if(r){let e=a;a=t=>r({className:t,parseClassName:e})}return a})(e),sortModifiers:(e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{let r=[],a=[];for(let n=0;n0&&(a.sort(),r.push(...a),a=[]),r.push(o)):a.push(o)}return a.length>0&&(a.sort(),r.push(...a)),r}})(e),postfixLookupClassGroupIds:(e=>{let t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let e=0;e{let t=(e=>{let{theme:t,classGroups:r}=e;return ol(r,t)})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return(e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{let t=e.slice(1,-1),r=t.indexOf(":"),a=t.slice(0,r);return a?"arbitrary.."+a:void 0})())(e);let r=e.split("-"),a=+(""===r[0]&&r.length>1);return os(r,a,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=a[e],n=r[e];return t?n?((e,t)=>{let r=Array(e.length+t.length);for(let t=0;tt(e),e()))).cache.get,n=r.cache.set,o=i,i(s)),(...e)=>o(((...e)=>{let t,r,a=0,n="";for(;a{let e=ow("color"),t=ow("font"),r=ow("text"),a=ow("font-weight"),n=ow("tracking"),o=ow("leading"),i=ow("breakpoint"),s=ow("container"),l=ow("spacing"),c=ow("radius"),m=ow("shadow"),h=ow("inset-shadow"),d=ow("text-shadow"),u=ow("drop-shadow"),p=ow("blur"),f=ow("perspective"),g=ow("aspect"),b=ow("ease"),v=ow("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...x(),oK,o$],k=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],M=()=>[oK,o$,l],z=()=>[oq,"full","auto",...M()],A=()=>[oj,"none","subgrid",oK,o$],T=()=>["auto",{span:["full",oj,oK,o$]},oj,oK,o$],N=()=>[oj,"auto",oK,o$],C=()=>["auto","min","max","fr",oK,o$],q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],B=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...M()],E=()=>[oq,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],I=()=>[oq,"screen","full","dvw","lvw","svw","min","max","fit",...M()],O=()=>[oq,"screen","full","lh","dvh","lvh","svh","min","max","fit",...M()],R=()=>[e,oK,o$],L=()=>[...x(),o0,oY,{position:[oK,o$]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],P=()=>["auto","cover","contain",o1,oF,{size:[oK,o$]}],D=()=>[oE,oJ,oG],V=()=>["","none","full",c,oK,o$],F=()=>["",oB,oJ,oG],$=()=>["solid","dashed","dotted","double"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>[oB,oE,o0,oY],_=()=>["","none",p,oK,o$],W=()=>["none",oB,oK,o$],Y=()=>["none",oB,oK,o$],X=()=>[oB,oK,o$],Z=()=>[oq,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[oI],breakpoint:[oI],color:[oO],container:[oI],"drop-shadow":[oI],ease:["in","out","in-out"],font:[oD],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[oI],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[oI],shadow:[oI],spacing:["px",oB],text:[oI],"text-shadow":[oI],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",oq,o$,oK,g]}],container:["container"],"container-type":[{"@container":["","normal","size",oK,o$]}],"container-named":[oV],columns:[{columns:[oB,o$,oK,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[oj,"auto",oK,o$]}],basis:[{basis:[oq,"full","auto",s,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[oB,oq,"auto","initial","none",o$]}],grow:[{grow:["",oB,oK,o$]}],shrink:[{shrink:["",oB,oK,o$]}],order:[{order:[oj,"first","last","none",oK,o$]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...q(),"normal"]}],"justify-items":[{"justify-items":[...B(),"normal"]}],"justify-self":[{"justify-self":["auto",...B()]}],"align-content":[{content:["normal",...q()]}],"align-items":[{items:[...B(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...B(),{baseline:["","last"]}]}],"place-content":[{"place-content":q()}],"place-items":[{"place-items":[...B(),"baseline"]}],"place-self":[{"place-self":["auto",...B()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pbs:[{pbs:M()}],pbe:[{pbe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:E()}],"inline-size":[{inline:["auto",...I()]}],"min-inline-size":[{"min-inline":["auto",...I()]}],"max-inline-size":[{"max-inline":["none",...I()]}],"block-size":[{block:["auto",...O()]}],"min-block-size":[{"min-block":["auto",...O()]}],"max-block-size":[{"max-block":["none",...O()]}],w:[{w:[s,"screen",...E()]}],"min-w":[{"min-w":[s,"screen","none",...E()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...E()]}],h:[{h:["screen","lh",...E()]}],"min-h":[{"min-h":["screen","lh","none",...E()]}],"max-h":[{"max-h":["screen","lh",...E()]}],"font-size":[{text:["base",r,oJ,oG]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,o6,o_]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",oE,o$]}],"font-family":[{font:[oQ,oW,t]}],"font-features":[{"font-features":[o$]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,oK,o$]}],"line-clamp":[{"line-clamp":[oB,"none",oK,oU]}],leading:[{leading:[o,...M()]}],"list-image":[{"list-image":["none",oK,o$]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",oK,o$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:[oB,"from-font","auto",oK,oG]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[oB,"auto",oK,o$]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"tab-size":[{tab:[oj,oK,o$]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",oK,o$]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",oK,o$]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},oj,oK,o$],radial:["",oK,o$],conic:[oj,oK,o$]},o4,oX]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:V()}],"rounded-s":[{"rounded-s":V()}],"rounded-e":[{"rounded-e":V()}],"rounded-t":[{"rounded-t":V()}],"rounded-r":[{"rounded-r":V()}],"rounded-b":[{"rounded-b":V()}],"rounded-l":[{"rounded-l":V()}],"rounded-ss":[{"rounded-ss":V()}],"rounded-se":[{"rounded-se":V()}],"rounded-ee":[{"rounded-ee":V()}],"rounded-es":[{"rounded-es":V()}],"rounded-tl":[{"rounded-tl":V()}],"rounded-tr":[{"rounded-tr":V()}],"rounded-br":[{"rounded-br":V()}],"rounded-bl":[{"rounded-bl":V()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-bs":[{"border-bs":F()}],"border-w-be":[{"border-be":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":F()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...$(),"hidden","none"]}],"divide-style":[{divide:[...$(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-bs":[{"border-bs":R()}],"border-color-be":[{"border-be":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...$(),"none","hidden"]}],"outline-offset":[{"outline-offset":[oB,oK,o$]}],"outline-w":[{outline:["",oB,oJ,oG]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",m,o5,oZ]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",h,o5,oZ]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[oB,oG]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",d,o5,oZ]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[oB,oK,o$]}],"mix-blend":[{"mix-blend":[...G(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":G()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[oB]}],"mask-image-linear-from-pos":[{"mask-linear-from":U()}],"mask-image-linear-to-pos":[{"mask-linear-to":U()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":U()}],"mask-image-t-to-pos":[{"mask-t-to":U()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":U()}],"mask-image-r-to-pos":[{"mask-r-to":U()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":U()}],"mask-image-b-to-pos":[{"mask-b-to":U()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":U()}],"mask-image-l-to-pos":[{"mask-l-to":U()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":U()}],"mask-image-x-to-pos":[{"mask-x-to":U()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":U()}],"mask-image-y-to-pos":[{"mask-y-to":U()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[oK,o$]}],"mask-image-radial-from-pos":[{"mask-radial-from":U()}],"mask-image-radial-to-pos":[{"mask-radial-to":U()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":x()}],"mask-image-conic-pos":[{"mask-conic":[oB]}],"mask-image-conic-from-pos":[{"mask-conic-from":U()}],"mask-image-conic-to-pos":[{"mask-conic-to":U()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",oK,o$]}],filter:[{filter:["","none",oK,o$]}],blur:[{blur:_()}],brightness:[{brightness:[oB,oK,o$]}],contrast:[{contrast:[oB,oK,o$]}],"drop-shadow":[{"drop-shadow":["","none",u,o5,oZ]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",oB,oK,o$]}],"hue-rotate":[{"hue-rotate":[oB,oK,o$]}],invert:[{invert:["",oB,oK,o$]}],saturate:[{saturate:[oB,oK,o$]}],sepia:[{sepia:["",oB,oK,o$]}],"backdrop-filter":[{"backdrop-filter":["","none",oK,o$]}],"backdrop-blur":[{"backdrop-blur":_()}],"backdrop-brightness":[{"backdrop-brightness":[oB,oK,o$]}],"backdrop-contrast":[{"backdrop-contrast":[oB,oK,o$]}],"backdrop-grayscale":[{"backdrop-grayscale":["",oB,oK,o$]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[oB,oK,o$]}],"backdrop-invert":[{"backdrop-invert":["",oB,oK,o$]}],"backdrop-opacity":[{"backdrop-opacity":[oB,oK,o$]}],"backdrop-saturate":[{"backdrop-saturate":[oB,oK,o$]}],"backdrop-sepia":[{"backdrop-sepia":["",oB,oK,o$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",oK,o$]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[oB,"initial",oK,o$]}],ease:[{ease:["linear","initial",b,oK,o$]}],delay:[{delay:[oB,oK,o$]}],animate:[{animate:["none",v,oK,o$]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,oK,o$]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:W()}],"rotate-x":[{"rotate-x":W()}],"rotate-y":[{"rotate-y":W()}],"rotate-z":[{"rotate-z":W()}],scale:[{scale:Y()}],"scale-x":[{"scale-x":Y()}],"scale-y":[{"scale-y":Y()}],"scale-z":[{"scale-z":Y()}],"scale-3d":["scale-3d"],skew:[{skew:X()}],"skew-x":[{"skew-x":X()}],"skew-y":[{"skew-y":X()}],transform:[{transform:[oK,o$,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":["translate-none"],zoom:[{zoom:[oj,oK,o$]}],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",oK,o$]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":R()}],"scrollbar-track-color":[{"scrollbar-track":R()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mbs":[{"scroll-mbs":M()}],"scroll-mbe":[{"scroll-mbe":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pbs":[{"scroll-pbs":M()}],"scroll-pbe":[{"scroll-pbe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",oK,o$]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[oB,oJ,oG,oU]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});var is=e.i(843476),il=e.i(913896),ic=e.i(124963),im=e.i(995356),ih=e.i(646642),id=e.i(329422),iu=e.i(660787);let ip={}.hasOwnProperty,ig=new Map,ib=/[A-Z]/g,iv=new Set(["table","tbody","thead","tfoot","tr"]),iy=new Set(["td","th"]),ix="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function iw(e,t,r){return"element"===t.type?function(e,t,r){let a=e.schema;"svg"===t.tagName.toLowerCase()&&"html"===a.space&&(e.schema=u.svg),e.ancestors.push(t);let n=iz(e,t.tagName,!1),o=function(e,t){let r,a,n={};for(a in t.properties)if("children"!==a&&ip.call(t.properties,a)){let o=function(e,t,r){let a=(0,g.find)(e.schema,t);if(!(null==r||"number"==typeof r&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?(0,p.stringify)(r):(0,v.stringify)(r)),"style"===a.property){let t="object"==typeof r?r:function(e,t){try{return(0,ih.default)(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};let t=new iu.VFileMessage("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=ix+"#cannot-parse-style-attribute",t}}(e,String(r));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,r={};for(t in e)ip.call(e,t)&&(r[function(e){let t=e.replace(ib,iT);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return r}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&a.space?im.hastToReact[a.property]||a.property:a.attribute,r]}}(e,a,t.properties[a]);if(o){let[a,i]=o;e.tableCellAlignToStyle&&"align"===a&&"string"==typeof i&&iy.has(t.tagName)?r=i:n[a]=i}}return r&&((n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r),n}(e,t),i=iM(e,t);return iv.has(t.tagName)&&(i=i.filter(function(e){return"string"!=typeof e||!(0,ic.whitespace)(e)})),ik(e,o,n,t),iS(o,i),e.ancestors.pop(),e.schema=a,e.create(t,n,o,r)}(e,t,r):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let r=t.data.estree.body[0];return(0,na.ok)("ExpressionStatement"===r.type),e.evaluater.evaluateExpression(r.expression)}iA(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,r){let a=e.schema;"svg"===t.name&&"html"===a.space&&(e.schema=u.svg),e.ancestors.push(t);let n=null===t.name?e.Fragment:iz(e,t.name,!0),o=function(e,t){let r={};for(let a of t.attributes)if("mdxJsxExpressionAttribute"===a.type)if(a.data&&a.data.estree&&e.evaluater){let t=a.data.estree.body[0];(0,na.ok)("ExpressionStatement"===t.type);let n=t.expression;(0,na.ok)("ObjectExpression"===n.type);let o=n.properties[0];(0,na.ok)("SpreadElement"===o.type),Object.assign(r,e.evaluater.evaluateExpression(o.argument))}else iA(e,t.position);else{let n,o=a.name;if(a.value&&"object"==typeof a.value)if(a.value.data&&a.value.data.estree&&e.evaluater){let t=a.value.data.estree.body[0];(0,na.ok)("ExpressionStatement"===t.type),n=e.evaluater.evaluateExpression(t.expression)}else iA(e,t.position);else n=null===a.value||a.value;r[o]=n}return r}(e,t),i=iM(e,t);return ik(e,o,n,t),iS(o,i),e.ancestors.pop(),e.schema=a,e.create(t,n,o,r)}(e,t,r):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);iA(e,t.position)}(e,t):"root"===t.type?function(e,t,r){let a={};return iS(a,iM(e,t)),e.create(t,e.Fragment,a,r)}(e,t,r):"text"===t.type?t.value:void 0}function ik(e,t,r,a){"string"!=typeof r&&r!==e.Fragment&&e.passNode&&(t.node=a)}function iS(e,t){if(t.length>0){let r=t.length>1?t:t[0];r&&(e.children=r)}}function iM(e,t){let r=[],a=-1,n=e.passKeys?new Map:ig;for(;++aii(function(){for(var e,t,r=0,a="",n=arguments.length;r{let a="string"==typeof t?new Blob([t],{type:r}):t,n=URL.createObjectURL(a),o=document.createElement("a");o.href=n,o.download=e,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(n)},iO=(0,n.createContext)({code:""}),iR=()=>(0,n.useContext)(iO),iL=({onCopy:e,onError:t,timeout:r=2e3,children:a,className:o,code:i,...s})=>{let[l,c]=(0,n.useState)(!1),m=(0,n.useRef)(0),{code:h}=iR(),{isAnimating:d}=(0,n.useContext)(sV),u=null!=i?i:h,p=async()=>{var a;if("undefined"==typeof window||!(null!=(a=null==navigator?void 0:navigator.clipboard)&&a.writeText)){null==t||t(Error("Clipboard API not available"));return}try{l||(await navigator.clipboard.writeText(u),c(!0),null==e||e(),m.current=window.setTimeout(()=>c(!1),r))}catch(e){null==t||t(e)}};return(0,n.useEffect)(()=>()=>{window.clearTimeout(m.current)},[]),(0,is.jsx)("button",{className:iE("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",o),"data-streamdown":"code-block-copy-button",disabled:d,onClick:p,title:"Copy Code",type:"button",...s,children:null!=a?a:(0,is.jsx)(l?n8:n2,{size:14})})},iH={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},iP=({onDownload:e,onError:t,language:r,children:a,className:o,code:i,...s})=>{let{code:l}=iR(),{isAnimating:c}=(0,n.useContext)(sV),m=null!=i?i:l,h=`file.${r&&r in iH?iH[r]:"txt"}`;return(0,is.jsx)("button",{className:iE("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",o),"data-streamdown":"code-block-download-button",disabled:c,onClick:()=>{try{iI(h,m,"text/plain"),null==e||e()}catch(e){null==t||t(e)}},title:"Download file",type:"button",...s,children:null!=a?a:(0,is.jsx)(n3,{size:14})})},iD=()=>(0,is.jsxs)("div",{className:"w-full divide-y divide-border overflow-hidden rounded-xl border border-border",children:[(0,is.jsx)("div",{className:"h-[46px] w-full bg-muted/80"}),(0,is.jsx)("div",{className:"flex w-full items-center justify-center p-4",children:(0,is.jsx)(ot,{className:"size-4 animate-spin"})})]}),iV=/\.[^/.]+$/,iF=async t=>{let r={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0,...t},a=(await e.A(510034)).default;return a.initialize(r),a},i$=({chart:e,children:t,className:r,onDownload:a,config:o,onError:i})=>{let[s,l]=(0,n.useState)(!1),c=(0,n.useRef)(null),{isAnimating:m}=(0,n.useContext)(sV),h=async t=>{try{if("mmd"===t){iI("diagram.mmd",e,"text/plain"),l(!1),null==a||a(t);return}let n=await iF(o),s=e.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),c=`mermaid-${Math.abs(s)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:m}=await n.render(c,e);if(!m){null==i||i(Error("SVG not found. Please wait for the diagram to render."));return}if("svg"===t){iI("diagram.svg",m,"image/svg+xml"),l(!1),null==a||a(t);return}if("png"===t){var r;let e=await (r=m,new Promise((e,t)=>{let a="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(r))),n=new Image;n.crossOrigin="anonymous",n.onload=()=>{let r=document.createElement("canvas"),a=5*n.width,o=5*n.height;r.width=a,r.height=o;let i=r.getContext("2d");if(!i)return void t(Error("Failed to create 2D canvas context for PNG export"));i.drawImage(n,0,0,a,o),r.toBlob(r=>{if(!r)return void t(Error("Failed to create PNG blob"));e(r)},"image/png")},n.onerror=()=>t(Error("Failed to load SVG image")),n.src=a}));iI("diagram.png",e,"image/png"),null==a||a(t),l(!1);return}}catch(e){null==i||i(e)}};return(0,n.useEffect)(()=>{let e=e=>{c.current&&!c.current.contains(e.target)&&l(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,is.jsxs)("div",{className:"relative",ref:c,children:[(0,is.jsx)("button",{className:iE("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",r),disabled:m,onClick:()=>l(!s),title:"Download diagram",type:"button",children:null!=t?t:(0,is.jsx)(n3,{size:14})}),s&&(0,is.jsxs)("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[(0,is.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>h("svg"),title:"Download diagram as SVG",type:"button",children:"SVG"}),(0,is.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>h("png"),title:"Download diagram as PNG",type:"button",children:"PNG"}),(0,is.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>h("mmd"),title:"Download diagram as MMD",type:"button",children:"MMD"})]})]})},iG=0,iU=({chart:e,config:t,onFullscreen:r,onExit:a,className:o,...i})=>{let[s,l]=(0,n.useState)(!1),{isAnimating:c,controls:m}=(0,n.useContext)(sV),h=(()=>{if("boolean"==typeof m)return m;let e=m.mermaid;return!1!==e&&(!0===e||void 0===e||!1!==e.panZoom)})(),d=()=>{l(!s)};return(0,n.useEffect)(()=>{if(s){1===(iG+=1)&&(document.body.style.overflow="hidden");let e=e=>{"Escape"===e.key&&l(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),0===(iG=Math.max(0,iG-1))&&(document.body.style.overflow="")}}},[s]),(0,n.useEffect)(()=>{s?null==r||r():a&&a()},[s,r,a]),(0,is.jsxs)(is.Fragment,{children:[(0,is.jsx)("button",{className:iE("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",o),disabled:c,onClick:d,title:"View fullscreen",type:"button",...i,children:(0,is.jsx)(n9,{size:14})}),s&&(0,is.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm",onClick:d,onKeyDown:e=>{"Escape"===e.key&&d()},role:"button",tabIndex:0,children:[(0,is.jsx)("button",{className:"absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground",onClick:d,title:"Exit fullscreen",type:"button",children:(0,is.jsx)(oe,{size:20})}),(0,is.jsx)("div",{className:"flex h-full w-full items-center justify-center p-4",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"presentation",children:(0,is.jsx)(s_,{chart:e,className:"h-full w-full [&>div]:h-full [&>div]:overflow-hidden [&_svg]:h-auto [&_svg]:w-auto",config:t,fullscreen:!0,showControls:h})})]})]})},i_=e=>{var t,r;let a=[],n=[];for(let r of e.querySelectorAll("thead th"))a.push((null==(t=r.textContent)?void 0:t.trim())||"");for(let t of e.querySelectorAll("tbody tr")){let e=[];for(let a of t.querySelectorAll("td"))e.push((null==(r=a.textContent)?void 0:r.trim())||"");n.push(e)}return{headers:a,rows:n}},iW=e=>{let{headers:t,rows:r}=e,a=e=>{let t=!1,r=!1;for(let a=0;a0?r.length+1:r.length),o=0;for(let e of(t.length>0&&(n[o]=t.map(a).join(","),o+=1),r))n[o]=e.map(a).join(","),o+=1;return n.join(` `)},iY=e=>{let t=!1;for(let r=0;r{let[i,s]=(0,n.useState)(!1),[l,c]=(0,n.useState)(!1),m=(0,n.useRef)(null),h=(0,n.useRef)(0),{isAnimating:d}=(0,n.useContext)(sV),u=async e=>{var t,n;if("undefined"==typeof window||!(null!=(t=null==navigator?void 0:navigator.clipboard)&&t.write)){null==a||a(Error("Clipboard API not available"));return}try{let t=null==(n=m.current)?void 0:n.closest('[data-streamdown="table-wrapper"]'),i=null==t?void 0:t.querySelector("table");if(!i){null==a||a(Error("Table not found"));return}let l=i_(i),d="csv"===e?iW(l):(e=>{let{headers:t,rows:r}=e,a=e=>{let t=!1;for(let r=0;r0?r.length+1:r.length),o=0;for(let e of(t.length>0&&(n[o]=t.map(a).join(" "),o+=1),r))n[o]=e.map(a).join(" "),o+=1;return n.join(` `)})(l),u=new ClipboardItem({"text/plain":new Blob([d],{type:"text/plain"}),"text/html":new Blob([i.outerHTML],{type:"text/html"})});await navigator.clipboard.write([u]),c(!0),s(!1),null==r||r(e),h.current=window.setTimeout(()=>c(!1),o)}catch(e){null==a||a(e)}};return(0,n.useEffect)(()=>{let e=e=>{m.current&&!m.current.contains(e.target)&&s(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e),window.clearTimeout(h.current)}},[]),(0,is.jsxs)("div",{className:"relative",ref:m,children:[(0,is.jsx)("button",{className:iE("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:d,onClick:()=>s(!i),title:"Copy table",type:"button",children:null!=e?e:(0,is.jsx)(l?n8:n2,{size:14})}),i&&(0,is.jsxs)("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[(0,is.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>u("csv"),title:"Copy table as CSV",type:"button",children:"CSV"}),(0,is.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>u("tsv"),title:"Copy table as TSV",type:"button",children:"TSV"})]})]})},iZ=({children:e,className:t,onDownload:r,onError:a})=>{let[o,i]=(0,n.useState)(!1),s=(0,n.useRef)(null),{isAnimating:l}=(0,n.useContext)(sV),c=e=>{var t;try{let n=null==(t=s.current)?void 0:t.closest('[data-streamdown="table-wrapper"]'),o=null==n?void 0:n.querySelector("table");if(!o){null==a||a(Error("Table not found"));return}let l=i_(o),c="csv"===e?iW(l):(e=>{let{headers:t,rows:r}=e;if(0===t.length)return"";let a=Array(r.length+2),n=0,o=t.map(e=>iY(e));a[n]=`| ${o.join(" | ")} |`,n+=1;let i=Array(t.length);for(let e=0;eiY(e));a[n]=`| ${t.join(" | ")} |`,n+=1}return a.join(` `)})(l);iI(`table.${"csv"===e?"csv":"md"}`,c,"csv"===e?"text/csv":"text/markdown"),i(!1),null==r||r(e)}catch(e){null==a||a(e)}};return(0,n.useEffect)(()=>{let e=e=>{s.current&&!s.current.contains(e.target)&&i(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,is.jsxs)("div",{className:"relative",ref:s,children:[(0,is.jsx)("button",{className:iE("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:l,onClick:()=>i(!o),title:"Download table",type:"button",children:null!=e?e:(0,is.jsx)(n3,{size:14})}),o&&(0,is.jsxs)("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[(0,is.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>c("csv"),title:"Download table as CSV",type:"button",children:"CSV"}),(0,is.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>c("markdown"),title:"Download table as Markdown",type:"button",children:"Markdown"})]})]})},iK=({children:e,className:t,showControls:r,...a})=>(0,is.jsxs)("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[r&&(0,is.jsxs)("div",{className:"flex items-center justify-end gap-1",children:[(0,is.jsx)(iX,{}),(0,is.jsx)(iZ,{})]}),(0,is.jsx)("div",{className:"overflow-x-auto",children:(0,is.jsx)("table",{className:iE("w-full border-collapse border border-border",t),"data-streamdown":"table",...a,children:e})})]}),iJ=(0,n.lazy)(()=>e.A(372757).then(e=>({default:e.CodeBlock}))),iQ=(0,n.lazy)(()=>e.A(894375).then(e=>({default:e.Mermaid}))),i0=/language-([^\s]+)/;function i1(e,t){if(!(null!=e&&e.position||null!=t&&t.position))return!0;if(!(null!=e&&e.position&&null!=t&&t.position))return!1;let r=e.position.start,a=t.position.start,n=e.position.end,o=t.position.end;return(null==r?void 0:r.line)===(null==a?void 0:a.line)&&(null==r?void 0:r.column)===(null==a?void 0:a.column)&&(null==n?void 0:n.line)===(null==o?void 0:o.line)&&(null==n?void 0:n.column)===(null==o?void 0:o.column)}function i4(e,t){return e.className===t.className&&i1(e.node,t.node)}var i5=(e,t)=>"boolean"==typeof e?e:!1!==e[t],i6=(e,t)=>{if("boolean"==typeof e)return e;let r=e.mermaid;return!1!==r&&(!0===r||void 0===r||!1!==r[t])},i7=(0,n.memo)(({children:e,className:t,node:r,...a})=>(0,is.jsx)("ol",{className:iE("list-inside list-decimal whitespace-normal",t),"data-streamdown":"ordered-list",...a,children:e}),(e,t)=>i4(e,t));i7.displayName="MarkdownOl";var i3=(0,n.memo)(({children:e,className:t,node:r,...a})=>(0,is.jsx)("li",{className:iE("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...a,children:e}),(e,t)=>e.className===t.className&&i1(e.node,t.node));i3.displayName="MarkdownLi";var i8=(0,n.memo)(({children:e,className:t,node:r,...a})=>(0,is.jsx)("ul",{className:iE("list-inside list-disc whitespace-normal",t),"data-streamdown":"unordered-list",...a,children:e}),(e,t)=>i4(e,t));i8.displayName="MarkdownUl";var i2=(0,n.memo)(({className:e,node:t,...r})=>(0,is.jsx)("hr",{className:iE("my-6 border-border",e),"data-streamdown":"horizontal-rule",...r}),(e,t)=>i4(e,t));i2.displayName="MarkdownHr";var i9=(0,n.memo)(({children:e,className:t,node:r,...a})=>(0,is.jsx)("span",{className:iE("font-semibold",t),"data-streamdown":"strong",...a,children:e}),(e,t)=>i4(e,t));i9.displayName="MarkdownStrong";var se=(0,n.memo)(({children:e,className:t,href:r,node:a,...n})=>(0,is.jsx)("a",{className:iE("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":"streamdown:incomplete-link"===r,"data-streamdown":"link",href:r,rel:"noreferrer",target:"_blank",...n,children:e}),(e,t)=>i4(e,t)&&e.href===t.href);se.displayName="MarkdownA";var st=(0,n.memo)(({children:e,className:t,node:r,...a})=>(0,is.jsx)("h1",{className:iE("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...a,children:e}),(e,t)=>i4(e,t));st.displayName="MarkdownH1";var sr=(0,n.memo)(({children:e,className:t,node:r,...a})=>(0,is.jsx)("h2",{className:iE("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...a,children:e}),(e,t)=>i4(e,t));sr.displayName="MarkdownH2";var sa=(0,n.memo)(({children:e,className:t,node:r,...a})=>(0,is.jsx)("h3",{className:iE("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...a,children:e}),(e,t)=>i4(e,t));sa.displayName="MarkdownH3";var sn=(0,n.memo)(({children:e,className:t,node:r,...a})=>(0,is.jsx)("h4",{className:iE("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...a,children:e}),(e,t)=>i4(e,t));sn.displayName="MarkdownH4";var so=(0,n.memo)(({children:e,className:t,node:r,...a})=>(0,is.jsx)("h5",{className:iE("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...a,children:e}),(e,t)=>i4(e,t));so.displayName="MarkdownH5";var si=(0,n.memo)(({children:e,className:t,node:r,...a})=>(0,is.jsx)("h6",{className:iE("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...a,children:e}),(e,t)=>i4(e,t));si.displayName="MarkdownH6";var ss=(0,n.memo)(({children:e,className:t,node:r,...a})=>{let{controls:o}=(0,n.useContext)(sV),i=i5(o,"table");return(0,is.jsx)(iK,{className:t,"data-streamdown":"table-wrapper",showControls:i,...a,children:e})},(e,t)=>i4(e,t));ss.displayName="MarkdownTable";var sl=(0,n.memo)(({children:e,className:t,node:r,...a})=>(0,is.jsx)("thead",{className:iE("bg-muted/80",t),"data-streamdown":"table-header",...a,children:e}),(e,t)=>i4(e,t));sl.displayName="MarkdownThead";var sc=(0,n.memo)(({children:e,className:t,node:r,...a})=>(0,is.jsx)("tbody",{className:iE("divide-y divide-border bg-muted/40",t),"data-streamdown":"table-body",...a,children:e}),(e,t)=>i4(e,t));sc.displayName="MarkdownTbody";var sm=(0,n.memo)(({children:e,className:t,node:r,...a})=>(0,is.jsx)("tr",{className:iE("border-border border-b",t),"data-streamdown":"table-row",...a,children:e}),(e,t)=>i4(e,t));sm.displayName="MarkdownTr";var sh=(0,n.memo)(({children:e,className:t,node:r,...a})=>(0,is.jsx)("th",{className:iE("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...a,children:e}),(e,t)=>i4(e,t));sh.displayName="MarkdownTh";var sd=(0,n.memo)(({children:e,className:t,node:r,...a})=>(0,is.jsx)("td",{className:iE("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...a,children:e}),(e,t)=>i4(e,t));sd.displayName="MarkdownTd";var su=(0,n.memo)(({children:e,className:t,node:r,...a})=>(0,is.jsx)("blockquote",{className:iE("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...a,children:e}),(e,t)=>i4(e,t));su.displayName="MarkdownBlockquote";var sp=(0,n.memo)(({children:e,className:t,node:r,...a})=>(0,is.jsx)("sup",{className:iE("text-sm",t),"data-streamdown":"superscript",...a,children:e}),(e,t)=>i4(e,t));sp.displayName="MarkdownSup";var sf=(0,n.memo)(({children:e,className:t,node:r,...a})=>(0,is.jsx)("sub",{className:iE("text-sm",t),"data-streamdown":"subscript",...a,children:e}),(e,t)=>i4(e,t));sf.displayName="MarkdownSub";var sg=(0,n.memo)(({children:e,className:t,node:r,...a})=>{if("data-footnotes"in a){let r=Array.isArray(e)?e.map(e=>{if(!(0,n.isValidElement)(e))return e;if(e.type===i7){let t=(Array.isArray(e.props.children)?e.props.children:[e.props.children]).filter(e=>!(e=>{var t,r;if(!(0,n.isValidElement)(e))return!1;let a=Array.isArray(e.props.children)?e.props.children:[e.props.children],o=!1,i=!1;for(let e of a)if(e){if("string"==typeof e)""!==e.trim()&&(o=!0);else if((0,n.isValidElement)(e)){if((null==(t=e.props)?void 0:t["data-footnote-backref"])!==void 0)i=!0;else for(let t of Array.isArray(e.props.children)?e.props.children:[e.props.children])if("string"==typeof t&&""!==t.trim()||(0,n.isValidElement)(t)&&(null==(r=t.props)?void 0:r["data-footnote-backref"])===void 0){o=!0;break}}}return i&&!o})(e));return 0===t.length?null:{...e,props:{...e.props,children:t}}}return e}):e;return(Array.isArray(r)?r.some(e=>null!==e):null!==r)?(0,is.jsx)("section",{className:t,...a,children:r}):null}return(0,is.jsx)("section",{className:t,...a,children:e})},(e,t)=>i4(e,t));sg.displayName="MarkdownSection";var sb=(0,n.memo)(({node:e,className:t,children:r,...a})=>{var o,i,s;let l=(null==(o=null==e?void 0:e.position)?void 0:o.start.line)===(null==(i=null==e?void 0:e.position)?void 0:i.end.line),{mermaid:c,controls:m}=(0,n.useContext)(sV);if(l)return(0,is.jsx)("code",{className:iE("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...a,children:r});let h=null==t?void 0:t.match(i0),d=null!=(s=null==h?void 0:h.at(1))?s:"",u="";if((0,n.isValidElement)(r)&&r.props&&"object"==typeof r.props&&"children"in r.props&&"string"==typeof r.props.children?u=r.props.children:"string"==typeof r&&(u=r),"mermaid"===d){let e=i5(m,"mermaid"),r=i6(m,"download"),a=i6(m,"copy"),o=i6(m,"fullscreen"),i=i6(m,"panZoom");return(0,is.jsx)(n.Suspense,{fallback:(0,is.jsx)(iD,{}),children:(0,is.jsxs)("div",{className:iE("group relative my-4 h-auto rounded-xl border p-4",t),"data-streamdown":"mermaid-block",children:[e&&(r||a||o)&&(0,is.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[r&&(0,is.jsx)(i$,{chart:u,config:null==c?void 0:c.config}),a&&(0,is.jsx)(iL,{code:u}),o&&(0,is.jsx)(iU,{chart:u,config:null==c?void 0:c.config})]}),(0,is.jsx)(iQ,{chart:u,config:null==c?void 0:c.config,showControls:i})]})})}let p=i5(m,"code");return(0,is.jsx)(n.Suspense,{fallback:(0,is.jsx)(iD,{}),children:(0,is.jsx)(iJ,{className:iE("overflow-x-auto border-border border-t",t),code:u,language:d,children:p&&(0,is.jsxs)(is.Fragment,{children:[(0,is.jsx)(iP,{code:u,language:d}),(0,is.jsx)(iL,{})]})})})},(e,t)=>e.className===t.className&&i1(e.node,t.node));sb.displayName="MarkdownCode";var sv=(0,n.memo)(({node:e,className:t,src:r,alt:a,...n})=>{let o=async()=>{if(r)try{let e=await (await fetch(r)).blob(),t=new URL(r,window.location.origin).pathname.split("/").pop()||"",n=t.split(".").pop(),o=t.includes(".")&&void 0!==n&&n.length<=4,i="";if(o)i=t;else{let r=e.type,n="png";r.includes("jpeg")||r.includes("jpg")?n="jpg":r.includes("png")?n="png":r.includes("svg")?n="svg":r.includes("gif")?n="gif":r.includes("webp")&&(n="webp"),i=`${(a||t||"image").replace(iV,"")}.${n}`}iI(i,e,e.type)}catch(e){console.error("Failed to download image:",e)}};return r?(0,is.jsxs)("div",{className:"group relative my-4 inline-block","data-streamdown":"image-wrapper",children:[(0,is.jsx)("img",{alt:a,className:iE("max-w-full rounded-lg",t),"data-streamdown":"image",src:r,...n}),(0,is.jsx)("div",{className:"pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"}),(0,is.jsx)("button",{className:iE("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:o,title:"Download image",type:"button",children:(0,is.jsx)(n3,{size:14})})]}):null},(e,t)=>e.className===t.className&&i1(e.node,t.node));sv.displayName="MarkdownImg";var sy=(0,n.memo)(({children:e,className:t,node:r,...a})=>{var o;let i=(Array.isArray(e)?e:[e]).filter(e=>null!=e&&""!==e);return 1===i.length&&(0,n.isValidElement)(i[0])&&(null==(o=i[0].props.node)?void 0:o.tagName)==="img"?(0,is.jsx)(is.Fragment,{children:e}):(0,is.jsx)("p",{className:t,...a,children:e})},(e,t)=>i4(e,t));sy.displayName="MarkdownParagraph";var sx={ol:i7,li:i3,ul:i8,hr:i2,strong:i9,a:se,h1:st,h2:sr,h3:sa,h4:sn,h5:so,h6:si,table:ss,thead:sl,tbody:sc,tr:sm,th:sh,td:sd,blockquote:su,code:sb,img:sv,pre:({children:e})=>e,sup:sp,sub:sf,p:sy,section:sg},sw=[],sk={allowDangerousHtml:!0},sS=new WeakMap,sM=new class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let r=e.rehypePlugins,a=e.remarkPlugins,n=e.remarkRehypeOptions;if(!(r||a||n)){let t="default";return this.keyCache.set(e,t),t}let o=e=>{if(!e||0===e.length)return"";let t="";for(let r=0;r0&&(t+=","),Array.isArray(a)){let[e,r]=a;if("function"==typeof e){let r=sS.get(e);r||(r=e.name,sS.set(e,r)),t+=r}else t+=String(e);t+=":",t+=JSON.stringify(r)}else if("function"==typeof a){let e=sS.get(a);e||(e=a.name,sS.set(a,e)),t+=e}else t+=String(a)}return t},i=o(r),s=o(a),l=n?JSON.stringify(n):"",c=`${s}::${i}::${l}`;return this.keyCache.set(e,c),c}get(e){let t=this.generateCacheKey(e),r=this.cache.get(t);return r&&(this.cache.delete(t),this.cache.set(t,r)),r}set(e,t){let r=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let e=this.cache.keys().next().value;e&&this.cache.delete(e)}this.cache.set(r,t)}clear(){this.cache.clear()}},sz=e=>{let t=sA(e),r=e.children||"";return sN(t.runSync(t.parse(r),r),e)},sA=e=>{let t=sM.get(e);if(t)return t;let r=sT(e);return sM.set(e,r),r},sT=e=>{let t=e.rehypePlugins||sw,r=e.remarkPlugins||sw,a=e.remarkRehypeOptions?{...sk,...e.remarkRehypeOptions}:sk;return(0,iB.unified)().use(iN.default).use(r).use(iq,a).use(t)},sN=(e,t)=>(function(e,t){var r,a,n,o,i;let s;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let l=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=l,a=t.jsxDEV,s=function(e,t,n,o){let i=Array.isArray(n.children),s=(0,id.pointStart)(e);return a(t,n,o,i,{columnNumber:s?s.column-1:void 0,fileName:r,lineNumber:s?s.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");n=0,o=t.jsx,i=t.jsxs,s=function(e,t,r,a){let n=Array.isArray(r.children)?i:o;return a?n(t,r,a):n(t,r)}}let c={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:s,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?u.svg:u.html,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},m=iw(c,e,void 0);return m&&"string"!=typeof m?m:c.create(e,c.Fragment,{children:m||void 0},void 0)})(e,{Fragment:is.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:is.jsx,jsxs:is.jsxs,passKeys:!0,passNode:!0}),sC=/\[\^[^\]\s]{1,200}\](?!:)/,sq=/\[\^[^\]\s]{1,200}\]:/,sB=/<\/(\w+)>/,sj=/<(\w+)[\s>]/,sE=e=>{let t=0;for(;t{let t=e.length-1;for(;t>=0&&(" "===e[t]||" "===e[t]||e[t]===` `||"\r"===e[t]);)t-=1;return t>=1&&"$"===e[t]&&"$"===e[t-1]},sO=e=>{let t=0;for(let r=0;r{let t=sC.test(e),r=sq.test(e);if(t||r)return[e];let a=ij.Lexer.lex(e,{gfm:!0}),n=[],o=[];for(let e of a){let t=e.raw,r=n.length;if(o.length>0){if(n[r-1]+=t,"html"===e.type){let e=t.match(sB);if(e){let t=e[1];o.at(-1)===t&&o.pop()}}continue}if("html"===e.type&&e.block){let e=t.match(sj);if(e){let r=e[1];t.includes(``)||o.push(r)}}if("$$"===t.trim()&&r>0){let e=n[r-1],a=sE(e),o=sO(e);if(a&&o%2==1){n[r-1]=e+t;continue}}if(r>0&&sI(t)){let e=n[r-1],a=sE(e),o=sO(e),i=sO(t);if(a&&o%2==1&&!sE(t)&&1===i){n[r-1]=e+t;continue}}n.push(t)}return n},sL={raw:ne.default,katex:[a9,{errorColor:"var(--color-muted-foreground)"}],sanitize:[nt.default,{}],harden:[function({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:r=[],allowDataImages:a=!1,allowedProtocols:n=[],blockedImageClass:l="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:c="text-gray-500",linkBlockPolicy:m=s.indicator,imageBlockPolicy:u=s.indicator}){let p=t.length&&!t.every(e=>"*"===e),f=r.length&&!r.every(e=>"*"===e);if(!e&&(p||f))throw Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return p=>{let f=((e,t,r,a,n,l,c,m,u)=>{let p=(f,g,b)=>{if("element"!==f.type||f[d])return o.CONTINUE;if("a"===f.tagName){let r=h(f.properties.href,t,e,!1,!1,n);if(null!==r)return f.properties.href=r,f.properties.target="_blank",f.properties.rel="noopener noreferrer",o.CONTINUE;if(f[d]=!0,(0,i.visit)(f,p),b&&"number"==typeof g){let e=function(e,t,r){return t===s.remove?{type:"remove"}:t===s.textOnly?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...e.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(e.properties.href),class:r},children:[...e.children,{type:"text",value:" [blocked]"}]}}}(f,m,c);if("remove"===e.type)return b.children.splice(g,1),[o.SKIP,g];b.children[g]=e.element}return o.SKIP}if("img"===f.tagName){let t=h(f.properties.src,r,e,a,!0,n);if(null===t){if(f[d]=!0,(0,i.visit)(f,p),b&&"number"==typeof g){let e=function(e,t,r){if(t===s.remove)return{type:"remove"};if(t===s.textOnly){let t=String(e.properties.alt||"");return t?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:t}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:r},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}(f,u,l);if("remove"===e.type)return b.children.splice(g,1),[o.SKIP,g];b.children[g]=e.element}return o.SKIP}f.properties.src=t}return o.CONTINUE};return p})(e,t,r,a,n,l,c,m,u);(function e(t){if("children"in t&&Array.isArray(t.children))for(let r of(t.children=t.children.filter(e=>null!=e),t.children))e(r)})(p),(0,i.visit)(p,f)}},{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},sH={gfm:[function(e){let t=e||nE,r=this.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),n=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push((0,nj.gfm)(t)),n.push((0,nB.gfmFromMarkdown)()),o.push((0,nB.gfmToMarkdown)(t))},{}],math:[nI.default,{singleDollarTextMath:!1}],cjkFriendly:[function(){let e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push({text:{[nr.asterisk]:nz,[nr.underscore]:nz},insideSpan:{null:[nz]}})},{}],cjkFriendlyGfmStrikethrough:[function(e){let t=this.data();(t.micromarkExtensions||(t.micromarkExtensions=[])).push(function(e){let t=(e||{}).singleTilde,r={name:"strikethrough",tokenize:function(e,r,n){let{now:o,sliceSerialize:i,previous:s}=this,l=nv(s)?ny(s,o(),i):s,c=nh(l),m=new nx(l,o(),i),h=nd(c,m.value.bind(m),l),d=this.events,u=0;return function(s){return((0,na.ok)(s===nN.tilde,"expected `~`"),l===nN.tilde&&d[d.length-1][1].type!==nq.characterEscape)?n(s):(e.enter("strikethroughSequenceTemporary"),function s(c){let m=nh(l);if(c===nN.tilde)return u>1?n(c):(e.consume(c),u++,s);if(u<2&&!t)return n(c);let d=e.exit("strikethroughSequenceTemporary"),p=nh(nb(c)?nw(c,o(),i):c),f=np(h)||nu(h),g=np(p)||nu(p),b=nf(h)||m===a.ivs;return d._open=!g||p===nC.attentionSideAfter&&(f||b),d._close=!f||m===nC.attentionSideAfter&&(g||nf(p)),r(c)}(s))}},resolveAll:function(e,t){let r=-1;for(;++r{let a=(0,n.useMemo)(()=>"string"==typeof e&&t?(e=>{if(!e||"string"!=typeof e)return e;let t=e,r=(e=>{let t=e.lastIndexOf("](");if(-1!==t&&!nJ(e,t)){let r=((e,t)=>{if(e.substring(t+2).includes(")"))return null;let r=((e,t)=>{let r=1;for(let a=t-1;a>=0;a-=1)if("]"===e[a])r+=1;else if("["===e[a]&&0==(r-=1))return a;return -1})(e,t);if(-1===r||nJ(e,r))return null;let a=r>0&&"!"===e[r-1],n=e.substring(0,a?r-1:r);if(a)return n;let o=e.substring(r+1,t);return`${n}[${o}](streamdown:incomplete-link)`})(e,t);if(null!==r)return r}for(let t=e.length-1;t>=0;t-=1)if("["===e[t]&&!nJ(e,t)){let r=n0(e,t);if(null!==r)return r}return e})(t);return r.endsWith("](streamdown:incomplete-link)")?r:t=(e=>{if((e.match(/\$\$/g)||[]).length%2==0)return e;let t=e.indexOf("$$");return -1===t||-1===e.indexOf(` `,t)||e.endsWith(` `)?`${e}$$`:`${e} $$`})(t=(e=>{let t=e.match(nV);if(t){let r=t[2];if(!r||nF.test(r))return e;if((e.match(/~~/g)||[]).length%2==1)return`${e}~~`}return e})(t=(e=>{let t=(e=>!e.match(nU)||e.includes(` `)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e)(e);if(null!==t)return t;if((e=>{let t=(e.match(/```/g)||[]).length;return!!(t>0&&t%2==0&&e.includes(` `)||(e.endsWith("```\n")||e.endsWith("```"))&&t%2==0)})(e))return e;let r=e.match(nD);if(r&&(e.match(/```/g)||[]).length%2!=1){let t=r[2];if(!t||nF.test(t))return e;if((e=>{let t=0;for(let r=0;r{if(nY(e)||!e.match(nP))return e;let t=(e=>{for(let t=0;t0?e[t-1]:"",a=t{let t=0,r=e.length;for(let a=0;a0?e[a-1]:"",o=a{let t=e.length;for(;t>0&&e[t-1]===` `;)t-=1;if(t{if(nY(e)||!e.match(nH))return e;let t=(e=>{for(let t=0;t0?e[t-1]:"",a=t{let t=0,r=e.length;for(let a=0;a0?e[a-1]:"",o=a{let t=e.match(nR);if(t){let r=t[2];if(!r||nF.test(r))return e;let a=e.lastIndexOf(t[1]),n=e.substring(0,a).lastIndexOf(` `),o=e.substring(-1===n?0:n+1,a);if(n$.test(o)&&r.includes(` `))return e;if((e.match(/__/g)||[]).length%2==1)return`${e}__`}return e})(t=(e=>{if(nY(e))return e;let t=e.match(nO);if(t){let r=t[2];if(!r||nF.test(r))return e;let a=e.lastIndexOf(t[1]),n=e.substring(0,a).lastIndexOf(` `),o=e.substring(-1===n?0:n+1,a);if(n$.test(o)&&r.includes(` `))return e;if((e.match(/\*\*/g)||[]).length%2==1)return`${e}**`}return e})(t=(e=>{if(nY(e)||n_.test(e))return e;let t=e.match(nL);if(t){let r=t[2];if(!r||nF.test(r))return e;if((e=>{let t=0,r=0;for(let a=0;a=3&&(t+=Math.floor(r/3)),r=0);return r>=3&&(t+=Math.floor(r/3)),t})(e)%2==1)return`${e}***`}return e})(t=r))))))))})(e.trim()):e,[e,t]);return(0,is.jsx)(sz,{...r,children:a})},(e,t)=>{if(e.content!==t.content||e.shouldParseIncompleteMarkdown!==t.shouldParseIncompleteMarkdown||e.index!==t.index)return!1;if(e.components!==t.components){let r=Object.keys(e.components||{}),a=Object.keys(t.components||{});if(r.length!==a.length||r.some(r=>{var a,n;return(null==(a=e.components)?void 0:a[r])!==(null==(n=t.components)?void 0:n[r])}))return!1}return e.rehypePlugins===t.rehypePlugins&&e.remarkPlugins===t.remarkPlugins});sF.displayName="Block";var s$=["github-light","github-dark"],sG=(0,n.memo)(({children:t,mode:r="streaming",parseIncompleteMarkdown:a=!0,components:o,rehypePlugins:i=sP,remarkPlugins:s=sD,className:l,shikiTheme:c=s$,mermaid:m,controls:h=!0,isAnimating:d=!1,BlockComponent:u=sF,parseMarkdownIntoBlocksFn:p=sR,...f})=>{let g=(0,n.useId)(),[b,v]=(0,n.useTransition)(),[y,x]=(0,n.useState)([]),w=(0,n.useMemo)(()=>p("string"==typeof t?t:""),[t,p]);(0,n.useEffect)(()=>{"streaming"===r?v(()=>{x(w)}):x(w)},[w,r]);let k="streaming"===r?y:w,S=(0,n.useMemo)(()=>k.map((e,t)=>`${g}-${t}`),[k.length,g]),M=(0,n.useMemo)(()=>({shikiTheme:c,controls:h,isAnimating:d,mode:r,mermaid:m}),[c,h,d,r,m]),z=(0,n.useMemo)(()=>({...sx,...o}),[o]);return(0,n.useEffect)(()=>{if(!(Array.isArray(i)&&i.some(e=>Array.isArray(e)?e[0]===a9:e===a9)))return;let r=!1;if(Array.isArray(s)){let e=s.find(e=>Array.isArray(e)?e[0]===nI.default:e===nI.default);e&&Array.isArray(e)&&e[1]&&(r=!0===e[1].singleDollarTextMath)}let a="string"==typeof t?t:"",n=a.includes("$$"),o=r&&(/[^$]\$[^$]/.test(a)||/^\$[^$]/.test(a)||/[^$]\$$/.test(a));(n||o)&&e.A(683825)},[i,s,t]),"static"===r?(0,is.jsx)(sV.Provider,{value:M,children:(0,is.jsx)("div",{className:iE("space-y-4 whitespace-normal",l),children:(0,is.jsx)(sz,{components:z,rehypePlugins:i,remarkPlugins:s,...f,children:t})})}):(0,is.jsx)(sV.Provider,{value:M,children:(0,is.jsx)("div",{className:iE("space-y-4 whitespace-normal",l),children:k.map((e,t)=>(0,is.jsx)(u,{components:z,content:e,index:t,rehypePlugins:i,remarkPlugins:s,shouldParseIncompleteMarkdown:a,...f},S[t]))})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.mode===t.mode);sG.displayName="Streamdown";var sU=({children:e,className:t,minZoom:r=.5,maxZoom:a=3,zoomStep:o=.1,showControls:i=!0,initialZoom:s=1,fullscreen:l=!1})=>{let c=(0,n.useRef)(null),m=(0,n.useRef)(null),[h,d]=(0,n.useState)(s),[u,p]=(0,n.useState)({x:0,y:0}),[f,g]=(0,n.useState)(!1),[b,v]=(0,n.useState)({x:0,y:0}),[y,x]=(0,n.useState)({x:0,y:0}),w=(0,n.useCallback)(e=>{d(t=>Math.max(r,Math.min(a,t+e)))},[r,a]),k=(0,n.useCallback)(()=>{w(o)},[w,o]),S=(0,n.useCallback)(()=>{w(-o)},[w,o]),M=(0,n.useCallback)(()=>{d(s),p({x:0,y:0})},[s]),z=(0,n.useCallback)(e=>{e.preventDefault(),w(e.deltaY>0?-o:o)},[w,o]),A=(0,n.useCallback)(e=>{if(0!==e.button||!1===e.isPrimary)return;g(!0),v({x:e.clientX,y:e.clientY}),x(u);let t=e.currentTarget;t instanceof HTMLElement&&t.setPointerCapture(e.pointerId)},[u]),T=(0,n.useCallback)(e=>{if(!f)return;e.preventDefault();let t=e.clientX-b.x,r=e.clientY-b.y;p({x:y.x+t,y:y.y+r})},[f,b,y]),N=(0,n.useCallback)(e=>{g(!1);let t=e.currentTarget;t instanceof HTMLElement&&t.releasePointerCapture(e.pointerId)},[]);return(0,n.useEffect)(()=>{let e=c.current;if(e)return e.addEventListener("wheel",z,{passive:!1}),()=>{e.removeEventListener("wheel",z)}},[z]),(0,n.useEffect)(()=>{let e=m.current;if(e&&f)return document.body.style.userSelect="none",e.addEventListener("pointermove",T,{passive:!1}),e.addEventListener("pointerup",N),e.addEventListener("pointercancel",N),()=>{document.body.style.userSelect="",e.removeEventListener("pointermove",T),e.removeEventListener("pointerup",N),e.removeEventListener("pointercancel",N)}},[f,T,N]),(0,is.jsxs)("div",{className:iE("relative",l?"h-full w-full":"w-full",t),ref:c,style:{cursor:f?"grabbing":"grab"},children:[i&&(0,is.jsxs)("div",{className:iE("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/90 p-1 shadow-sm backdrop-blur-sm",l?"bottom-4 left-4":"bottom-2 left-2"),children:[(0,is.jsx)("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:h>=a,onClick:k,title:"Zoom in",type:"button",children:(0,is.jsx)(or,{size:16})}),(0,is.jsx)("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:h<=r,onClick:S,title:"Zoom out",type:"button",children:(0,is.jsx)(oa,{size:16})}),(0,is.jsx)("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",onClick:M,title:"Reset zoom and pan",type:"button",children:(0,is.jsx)(on,{size:16})})]}),(0,is.jsx)("div",{className:iE("origin-center transition-transform duration-150 ease-out",l&&"flex w-full items-center justify-center"),onPointerDown:A,ref:m,role:"application",style:{transform:`translate(${u.x}px, ${u.y}px) scale(${h})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},s_=({chart:e,className:t,config:r,fullscreen:a=!1,showControls:o=!0})=>{let[i,s]=(0,n.useState)(null),[l,c]=(0,n.useState)(!0),[m,h]=(0,n.useState)(""),[d,u]=(0,n.useState)(""),[p,f]=(0,n.useState)(0),{mermaid:g}=(0,n.useContext)(sV),b=null==g?void 0:g.errorComponent;return((0,n.useEffect)(()=>{(async()=>{try{s(null),c(!0);let t=await iF(r),a=e.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),n=`mermaid-${Math.abs(a)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:o}=await t.render(n,e);h(o),u(o)}catch(e){d||m||s(e instanceof Error?e.message:"Failed to render Mermaid chart")}finally{c(!1)}})()},[e,r,p]),!l||m||d)?!i||m||d?(0,is.jsx)(sU,{className:iE(a?"h-full w-full overflow-hidden":"my-4 overflow-hidden",t),fullscreen:a,maxZoom:3,minZoom:.5,showControls:o,zoomStep:.1,children:(0,is.jsx)("div",{"aria-label":"Mermaid chart",className:iE("flex justify-center",a&&"h-full w-full items-center"),dangerouslySetInnerHTML:{__html:m||d},role:"img"})}):b?(0,is.jsx)(b,{chart:e,error:i,retry:()=>f(e=>e+1)}):(0,is.jsxs)("div",{className:iE("rounded-lg border border-red-200 bg-red-50 p-4",t),children:[(0,is.jsxs)("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",i]}),(0,is.jsxs)("details",{className:"mt-2",children:[(0,is.jsx)("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),(0,is.jsx)("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:e})]})]}):(0,is.jsx)("div",{className:iE("my-4 flex justify-center p-4",t),children:(0,is.jsxs)("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[(0,is.jsx)("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),(0,is.jsx)("span",{className:"text-sm",children:"Loading diagram..."})]})})}}]);