From b0fa5e66898db00300a48a0a78c560b60ec8f18d Mon Sep 17 00:00:00 2001 From: tdurieux Date: Fri, 26 Apr 2024 12:40:56 +0100 Subject: [PATCH] fix: hot fix, replace repoID by repoId --- public/script/app.js | 4 ++-- public/script/bundle.min.js | 2 +- src/core/Repository.ts | 2 +- src/core/storage/FileSystem.ts | 6 ++---- src/core/storage/S3.ts | 2 +- 5 files changed, 7 insertions(+), 9 deletions(-) diff --git a/public/script/app.js b/public/script/app.js index 7e756e8..f08b8a7 100644 --- a/public/script/app.js +++ b/public/script/app.js @@ -331,11 +331,11 @@ angular current = current[0].child; } name = test; - if (size > 0) { + if (size >= 0) { dir = false; } } - if (size) { + if (size != null) { size = `Size: ${humanFileSize(size || 0)}`; } else { size = ""; diff --git a/public/script/bundle.min.js b/public/script/bundle.min.js index 1cdab9c..e6662f8 100644 --- a/public/script/bundle.min.js +++ b/public/script/bundle.min.js @@ -6,4 +6,4 @@ ${e} `}table(e,t){return"\n\n"+e+"\n"+(t=t&&`${t}`)+"
\n"}tablerow(e){return` ${e} `}tablecell(e,t){var i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+e+` -`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return"
"}del(e){return`${e}`}link(e,t,i){var n=c(e);if(null===n)return i;let s='"}image(e,t,i){var n=c(e);if(null===n)return i;let s=`${i}"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""));continue}case"code":{const n=r;o+=this.renderer.code(n.text,n.lang,!!n.escaped);continue}case"table":{const n=r;let e="",t="";for(let e=0;e{e=t[e].flat(1/0);n=n.concat(this.walkTokens(e,i))}):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,i)))}}return n}use(...e){const d=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{const t={...e};if(t.async=this.defaults.async||t.async||!1,e.extensions&&(e.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const n=d.renderers[i.name];d.renderers[i.name]=n?function(...e){let t=i.renderer.apply(this,e);return t=!1===t?n.apply(this,e):t}:i.renderer}if("tokenizer"in i){if(!i.level||"block"!==i.level&&"inline"!==i.level)throw new Error("extension level must be 'block' or 'inline'");var e=d[i.level];e?e.unshift(i.tokenizer):d[i.level]=[i.tokenizer],i.start&&("block"===i.level?d.startBlock?d.startBlock.push(i.start):d.startBlock=[i.start]:"inline"===i.level&&(d.startInline?d.startInline.push(i.start):d.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(d.childTokens[i.name]=i.childTokens)}),t.extensions=d),e.renderer){const d=this.defaults.renderer||new E(this.defaults);for(const t in e.renderer){if(!(t in d))throw new Error(`renderer '${t}' does not exist`);if("options"!==t){const i=t,n=e.renderer[i],s=d[i];d[i]=(...e)=>{let t=n.apply(d,e);return(t=!1===t?s.apply(d,e):t)||""}}}t.renderer=d}if(e.tokenizer){const d=this.defaults.tokenizer||new g(this.defaults);for(const t in e.tokenizer){if(!(t in d))throw new Error(`tokenizer '${t}' does not exist`);if(!["options","rules","lexer"].includes(t)){const o=t,r=e.tokenizer[o],a=d[o];d[o]=(...e)=>{let t=r.apply(d,e);return t=!1===t?a.apply(d,e):t}}}t.tokenizer=d}if(e.hooks){const d=this.defaults.hooks||new L;for(const t in e.hooks){if(!(t in d))throw new Error(`hook '${t}' does not exist`);if("options"!==t){const c=t,l=e.hooks[c],u=d[c];L.passThroughHooks.has(t)?d[c]=e=>{return this.defaults.async?Promise.resolve(l.call(d,e)).then(e=>u.call(d,e)):(e=l.call(d,e),u.call(d,e))}:d[c]=(...e)=>{let t=l.apply(d,e);return t=!1===t?u.apply(d,e):t}}}t.hooks=d}if(e.walkTokens){const d=this.defaults.walkTokens,h=e.walkTokens;t.walkTokens=function(e){let t=[];return t.push(h.call(this,e)),t=d?t.concat(d.call(this,e)):t}}this.defaults={...this.defaults,...t}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return j.lex(e,t??this.defaults)}parser(e,t){return M.parse(e,t??this.defaults)}#e(s,o){return(i,t)=>{const e={...t},n={...this.defaults,...e};!0===this.defaults.async&&!1===e.async&&(n.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),n.async=!0);t=this.#t(!!n.silent,!!n.async);if(null==i)return t(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof i)return t(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(n.hooks&&(n.hooks.options=n),n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(i):i).then(e=>s(e,n)).then(e=>n.hooks?n.hooks.processAllTokens(e):e).then(e=>n.walkTokens?Promise.all(this.walkTokens(e,n.walkTokens)).then(()=>e):e).then(e=>o(e,n)).then(e=>n.hooks?n.hooks.postprocess(e):e).catch(t);try{n.hooks&&(i=n.hooks.preprocess(i));let e=s(i,n),t=(n.hooks&&(e=n.hooks.processAllTokens(e)),n.walkTokens&&this.walkTokens(e,n.walkTokens),o(e,n));return t=n.hooks?n.hooks.postprocess(t):t}catch(e){return t(e)}}}#t(t,i){return e=>{if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t){const t="

An error occurred:

"+r(e.message+"",!0)+"
";return i?Promise.resolve(t):t}if(i)return Promise.reject(e);throw e}}}const O=new ce;function D(e,t){return O.parse(e,t)}D.options=D.setOptions=function(e){return O.setOptions(e),i(D.defaults=O.defaults),D},D.getDefaults=e,D.defaults=t.defaults,D.use=function(...e){return O.use(...e),i(D.defaults=O.defaults),D},D.walkTokens=function(e,t){return O.walkTokens(e,t)},D.parseInline=O.parseInline,D.Parser=M,D.parser=M.parse,D.Renderer=E,D.TextRenderer=R,D.Lexer=j,D.lexer=j.lex,D.Tokenizer=g,D.Hooks=L;var l=(D.parse=D).options,le=D.setOptions,ue=D.use,he=D.walkTokens,de=D.parseInline,ge=D,pe=M.parse,me=j.lex;t.Hooks=L,t.Lexer=j,t.Marked=ce,t.Parser=M,t.Renderer=E,t.TextRenderer=R,t.Tokenizer=g,t.getDefaults=e,t.lexer=me,t.marked=D,t.options=l,t.parse=ge,t.parseInline=de,t.parser=pe,t.setOptions=le,t.use=ue,t.walkTokens=he}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).DOMPurify=t()}(this,function(){"use strict";function Ce(){for(var e=arguments.length,t=Array(e),i=0;i/gm),it=e(/^data-[\-\w.\u00B7-\uFFFF]/),nt=e(/^aria-[\-\w]+$/),st=e(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ot=e(/^(?:\w+script|data):/i),rt=e(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Xe(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t"+e:n=(s=Le(e,/^[\r\n\t ]+/))&&s[0],h?h.createHTML(e):e);try{i=(new B).parseFromString(s,"text/html")}catch(e){}return i&&i.documentElement||((t=(i=r.createHTMLDocument("")).body).parentNode.removeChild(t.parentNode.firstElementChild),t.outerHTML=s),e&&n&&i.body.insertBefore(o.createTextNode(n),i.body.childNodes[0]||null),K.call(i,w?"html":"body")[0]},xe=function(e){return G.call(e.ownerDocument||e,e,t.SHOW_ELEMENT|t.SHOW_COMMENT|t.SHOW_TEXT,function(){return t.FILTER_ACCEPT},!1)},L=function(e){return"object"===(void 0===l?"undefined":Ye(l))?e instanceof l:e&&"object"===(void 0===e?"undefined":Ye(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},O=function(e,t,i){s[e]&&je(s[e],function(e){e.call(u,t,i,E)})},ke=function(e){if(O("beforeSanitizeElements",e,null),((r=e)instanceof F||r instanceof z||"string"==typeof r.nodeName&&"string"==typeof r.textContent&&"function"==typeof r.removeChild&&r.attributes instanceof P&&"function"==typeof r.removeAttribute&&"function"==typeof r.setAttribute&&"string"==typeof r.namespaceURI&&"function"==typeof r.insertBefore)&&!Le(e.nodeName,/[\u0080-\uFFFF]/)){var t,i,n,s,o,r=Me(e.nodeName);if(O("uponSanitizeElement",e,{tagName:r,allowedTags:m}),L(e.firstElementChild)||L(e.content)&&L(e.content.firstElementChild)||!Ie(/<[/\w]/g,e.innerHTML)||!Ie(/<[/\w]/g,e.textContent)){if(m[r]&&!b[r])return(!(e instanceof N)||((n=V(t=e))&&n.tagName||(n={namespaceURI:M,tagName:"template"}),s=Me(t.tagName),o=Me(n.tagName),t.namespaceURI===ve?n.namespaceURI===M?"svg"===s:n.namespaceURI===be?"svg"===s&&("annotation-xml"===o||pe[o]):Boolean(R[s]):t.namespaceURI===be?n.namespaceURI===M?"math"===s:n.namespaceURI===ve?"math"===s&&me[o]:Boolean(fe[s]):t.namespaceURI===M&&!(n.namespaceURI===ve&&!me[o]||n.namespaceURI===be&&!pe[o]||(i=Ne({},["title","style","font","a","script"]),fe[s]))&&(i[s]||!R[s])))&&("noscript"!==r&&"noembed"!==r||!Ie(/<\/no(script|embed)/i,e.innerHTML))?(y&&3===e.nodeType&&(t=e.textContent,t=Oe(t,d," "),t=Oe(t,g," "),e.textContent!==t)&&(Re(u.removed,{element:e.cloneNode()}),e.textContent=t),O("afterSanitizeElements",e,null),!1):(ye(e),!0);if(_&&!ce[r])for(var a=V(e),c=W(e),l=c.length-1;0<=l;--l)a.insertBefore(H(c[l],!0),q(e))}}return ye(e),!0},Ae=function(e,t,i){if(ae&&("id"===t||"name"===t)&&(i in o||i in de))return!1;if(!(v&&Ie(Q,t)||se&&Ie(J,t))){if(!f[t]||ne[t])return!1;if(!j[t]&&!Ie(p,Oe(i,ee,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==De(i,"data:")||!le[e])&&(!oe||Ie(Z,Oe(i,ee,"")))&&i)return!1}return!0},Se=function(e){var t=void 0,i=void 0,n=(O("beforeSanitizeAttributes",e,null),e.attributes);if(n){for(var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:f},i=n.length;i--;){a=n[i];var o=a.name,r=a.namespaceURI,t=Qe(a.value),a=Me(o);if(s.attrName=a,s.attrValue=t,s.keepAttr=!0,s.forceKeepAttr=void 0,O("uponSanitizeAttribute",e,s),t=s.attrValue,!s.forceKeepAttr&&(we(o,e),s.keepAttr))if(Ie(/\/>/i,t))we(o,e);else{y&&(t=Oe(t,d," "),t=Oe(t,g," "));var c=e.nodeName.toLowerCase();if(Ae(c,a,t))try{r?e.setAttributeNS(r,o,t):e.setAttribute(o,t),Ee(u.removed)}catch(e){}}}O("afterSanitizeAttributes",e,null)}},_e=function e(t){var i,n=xe(t);for(O("beforeSanitizeShadowDOM",t,null);i=n.nextNode();)O("uponSanitizeShadowNode",i,null),ke(i)||(i.content instanceof I&&e(i.content),Se(i));O("afterSanitizeShadowDOM",t,null)};u.sanitize=function(e,t){var i,n=void 0,s=void 0,o=void 0;if("string"!=typeof(e=e||"\x3c!--\x3e")&&!L(e)){if("function"!=typeof e.toString)throw Ce("toString is not a function");if("string"!=typeof(e=e.toString()))throw Ce("dirty is not a string, aborting")}if(!u.isSupported){if("object"===Ye(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(L(e))return a.toStaticHTML(e.outerHTML)}return e}if($||ge(t),u.removed=[],!(C="string"==typeof e?!1:C))if(e instanceof l)1===(t=(n=$e("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===t.nodeName||"HTML"===t.nodeName?n=t:n.appendChild(t);else{if(!k&&!y&&!w&&-1===e.indexOf("<"))return h&&S?h.createHTML(e):e;if(!(n=$e(e)))return k?null:U}n&&x&&ye(n.firstChild);for(var r=xe(C?e:n);i=r.nextNode();)3===i.nodeType&&i===s||ke(i)||(i.content instanceof I&&_e(i.content),Se(i),s=i);if(s=null,C)return e;if(k){if(A)for(o=Y.call(n.ownerDocument);n.firstChild;)o.appendChild(n.firstChild);else o=n;return o=re?X.call(c,o,!0):o}t=w?n.outerHTML:n.innerHTML;return y&&(t=Oe(t,d," "),t=Oe(t,g," ")),h&&S?h.createHTML(t):t},u.setConfig=function(e){ge(e),$=!0},u.clearConfig=function(){E=null,$=!1},u.isValidAttribute=function(e,t,i){E||ge({});e=Me(e),t=Me(t);return Ae(e,t,i)},u.addHook=function(e,t){"function"==typeof t&&(s[e]=s[e]||[],Re(s[e],t))},u.removeHook=function(e){s[e]&&Ee(s[e])},u.removeHooks=function(e){s[e]&&(s[e]=[])},u.removeAllHooks=function(){s={}}}else u.isSupported=!1;return u}()}),function(){function i(){this.fg=this.bg=null,this.bright=0}var e,t="undefined"!=typeof module,r=[[{color:"0, 0, 0",class:"ansi-black"},{color:"187, 0, 0",class:"ansi-red"},{color:"0, 187, 0",class:"ansi-green"},{color:"187, 187, 0",class:"ansi-yellow"},{color:"0, 0, 187",class:"ansi-blue"},{color:"187, 0, 187",class:"ansi-magenta"},{color:"0, 187, 187",class:"ansi-cyan"},{color:"255,255,255",class:"ansi-white"}],[{color:"85, 85, 85",class:"ansi-bright-black"},{color:"255, 85, 85",class:"ansi-bright-red"},{color:"0, 255, 0",class:"ansi-bright-green"},{color:"255, 255, 85",class:"ansi-bright-yellow"},{color:"85, 85, 255",class:"ansi-bright-blue"},{color:"255, 85, 255",class:"ansi-bright-magenta"},{color:"85, 255, 255",class:"ansi-bright-cyan"},{color:"255, 255, 255",class:"ansi-bright-white"}]];i.prototype.escape_for_html=function(e){return e.replace(/[&<>]/gm,function(e){return"&"==e?"&":"<"==e?"<":">"==e?">":void 0})},i.prototype.linkify=function(e){return e.replace(/(https?:\/\/[^\s]+)/gm,function(e){return'
'+e+""})},i.prototype.ansi_to_html=function(e,t){var e=e.split(/\033\[/),i=e.shift(),n=this,e=e.map(function(e){return n.process_chunk(e,t)});return e.unshift(i),e.reduce(function(e,t){return Array.isArray(t)?e.concat(t):(e.push(t),e)},[]).join("")},i.prototype.process_chunk=function(e,t){var i,n,t=void 0!==(t=void 0===t?{}:t).use_classes&&t.use_classes,s=t?"class":"color",o=e.match(/([\d;]*)m([^]*)/m);return o?(i=o[2],o=o[1].split(";"),n=this,o.map(function(e){e=parseInt(e);isNaN(e)||0===e?(n.fg=n.bg=null,n.bright=0):1===e?n.bright=1:30<=e&&e<38?n.fg=r[n.bright][e%10][s]:40<=e&&e<48&&(n.bg=r[0][e%10][s])}),null===n.fg&&null===n.bg?i:(o=classes=[],n.fg&&(t?classes.push(n.fg+"-fg"):o.push("color:rgb("+n.fg+")")),n.bg&&(t?classes.push(n.bg+"-bg"):o.push("background-color:rgb("+n.bg+")")),t?['',i,""]:['',i,""])):e},e={escape_for_html:function(e){return(new i).escape_for_html(e)},linkify:function(e){return(new i).linkify(e)},ansi_to_html:function(e,t){return(new i).ansi_to_html(e,t)},ansi_to_html_obj:function(){return new i}},t&&(module.exports=e),"undefined"!=typeof window&&"undefined"==typeof ender&&(window.ansi_up=e),"function"==typeof define&&define.amd&&define("ansi_up",[],function(){return e})}(Date);var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(c){var e,t,l=/\blang(?:uage)?-([\w-]+)\b/i,i=0,D={manual:c.Prism&&c.Prism.manual,disableWorkerMessageHandler:c.Prism&&c.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof I?new I(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=r.reach);y+=v.value.length,v=v.next){var w=v.value;if(i.length>t.length)return;if(!(w instanceof I)){var $=1;if(p&&v!=i.tail.prev){if(b.lastIndex=y,!(_=b.exec(t)))break;var x=_.index+(g&&_[1]?_[1].length:0),k=_.index+_[0].length,A=y;for(A+=v.value.length;A<=x;)A+=(v=v.next).value.length;if(y=A-=v.value.length,v.value instanceof I)continue;for(var S=v;S!==i.tail&&(Ar.reach&&(r.reach=w),v.prev),R=(T&&(E=N(i,E,T),y+=T.length),O=L=M=T=R=void 0,i),T=E,M=$,L=T.next,O=0;O"+o.content+""},c.document)?((e=D.util.currentScript())&&(D.filename=e.src,e.hasAttribute("data-manual"))&&(D.manual=!0),D.manual||("loading"===(t=document.readyState)||"interactive"===t&&e&&e.defer?document.addEventListener("DOMContentLoaded",n):window.requestAnimationFrame?window.requestAnimationFrame(n):window.setTimeout(n,16))):c.addEventListener&&!D.disableWorkerMessageHandler&&c.addEventListener("message",function(e){var e=JSON.parse(e.data),t=e.language,i=e.code,e=e.immediateClose;c.postMessage(D.highlight(i,D.languages[t],t)),e&&c.close()},!1),D;function n(){D.manual||D.highlightAll()}}(_self),Org=("undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism),Prism.languages.markup={comment://,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/,name:/[^\s<>'"]+/}},cdata://i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var i={},i=(i["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[t]},i.cdata=/^$/i,{"included-cdata":{pattern://i,inside:i}}),t=(i["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]},{});t[e]={pattern:RegExp("(<__[^]*?>)(?:))*\\]\\]>|(?!)".replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:i},Prism.languages.insertBefore("markup","cdata",t)}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|(?:get|set)(?=\s*[\[$\w\xA0-\uFFFF])|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-flags":/[a-z]+$/,"regex-delimiter":/^\/|\/$/}},"function-variable":{pattern:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}}}),Prism.languages.markup&&Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.js=Prism.languages.javascript,Prism.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|\w*"(?:\\.|[^"\\\r\n])*"|(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'|`(?:[^\\`\r\n]|\\.)*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:true|false)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*\.?(?:\d+(?:_\d+)*)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:NaN|Inf)(?:16|32|64)?|im|pi|e|catalan|eulergamma|golden)\b|[πℯγφ]/},Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:{{)*){(?!{)(?:[^{}]|{(?!{)(?:[^{}]|{(?!{)(?:[^{}])+})+})+}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^\s*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,Prism.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:TRUE|FALSE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:NaN|Inf)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+\.?\d*|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:if|else|repeat|while|function|for|in|next|break|NULL|NA|NA_integer_|NA_real_|NA_complex_|NA_character_)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/},!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.katex=t():e.katex=t()}("undefined"!=typeof self?self:this,function(){"use strict";var I={d:function(e,t){for(var i in t)I.o(t,i)&&!I.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};I.d(t,{default:function(){return Sn}});class N{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;let i,n,s="KaTeX parse error: "+e;var o=t&&t.loc;if(o&&o.start<=o.end){const e=o.lexer.input,t=(i=o.start,n=o.end,i===e.length?s+=" at end of input: ":s+=" at position "+(i+1)+": ",e.slice(i,n).replace(/[^]/g,"$&̲"));var o=15":">","<":"<",'"':""","'":"'"},B=/[&><"']/g;var _={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(B,e=>z[e])},hyphenate:function(e){return e.replace(F,"-$1").toLowerCase()},getBaseElem:P,isCharacterBox:function(e){e=P(e);return"mathord"===e.type||"textord"===e.type||"atom"===e.type},protocolFromUrl:function(e){e=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return e?":"===e[2]&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?e[1].toLowerCase():null:"_relative"}};const H={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){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||{};for(const i in H){var t;H.hasOwnProperty(i)&&(t=H[i],this[i]=void 0!==e[i]?t.processor?t.processor(e[i]):e[i]:function(e){if(e.default)return e.default;if(e=e.type,"string"!=typeof(e=Array.isArray(e)?e[0]:e))return e.enum[0];switch(e){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}(t))}}reportNonstrict(e,t,i){let n=this.strict;if((n="function"==typeof n?n(e,t,i):n)&&"ignore"!==n){if(!0===n||"error"===n)throw new S("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",i);"warn"===n?"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 '"+n+"': "+t+" ["+e+"]")}}useStrictBehavior(e,t,i){let n=this.strict;if("function"==typeof n)try{n=n(e,t,i)}catch(e){n="error"}return!(!n||"ignore"===n||!0!==n&&"error"!==n&&("warn"===n?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]"),1))}isTrusted(e){if(e.url&&!e.protocol){const t=_.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}const t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)}}class W{constructor(e,t,i){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=i}sup(){return V[U[this.id]]}sub(){return V[G[this.id]]}fracNum(){return V[K[this.id]]}fracDen(){return V[Y[this.id]]}cramp(){return V[X[this.id]]}text(){return V[Q[this.id]]}isTight(){return 2<=this.size}}const V=[new W(0,0,!1),new W(1,0,!0),new W(2,1,!1),new W(3,1,!0),new W(4,2,!1),new W(5,2,!0),new W(6,3,!1),new W(7,3,!0)],U=[4,5,4,5,6,7,6,7],G=[5,5,5,5,7,7,7,7],K=[2,3,4,5,6,7,6,7],Y=[3,3,5,5,7,7,7,7],X=[1,1,3,3,5,5,7,7],Q=[0,1,2,3,2,3,2,3];var C={DISPLAY:V[0],TEXT:V[2],SCRIPT:V[4],SCRIPTSCRIPT:V[6]};const J=[{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]]}],Z=[];function ee(t){for(let e=0;e=Z[e]&&t<=Z[e+1])return 1}J.forEach(e=>e.blocks.forEach(e=>Z.push(...e)));const te={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"};class ie{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 _.contains(this.classes,e)}toNode(){var t=document.createDocumentFragment();for(let e=0;ee.toText()).join("")}}var ne={"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]}};const se={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]},oe={"Å":"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 re(e,t,i){if(!ne[t])throw new Error("Font metrics not found for font: "+t+".");let n=e.charCodeAt(0),s=ne[t][n];if(!s&&e[0]in oe&&(n=oe[e[0]].charCodeAt(0),s=ne[t][n]),s||"text"!==i||ee(n)&&(s=ne[t][77]),s)return{depth:s[0],height:s[1],italic:s[2],skew:s[3],width:s[4]}}function ae(e,t){return t.size<2?e:le[e-1][t.size-1]}const ce={},le=[[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]],ue=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488];class he{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||he.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=ue[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(const i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return new he(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:ae(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:ue[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=ae(he.BASESIZE,e);return this.size===t&&this.textSize===he.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){let 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!==he.BASESIZE?["sizing","reset-size"+this.size,"size"+he.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t=5<=e?0:3<=e?1:2;if(!ce[t]){const e=ce[t]={cssEmPerMu:se.quad[t]/18};for(const i in se)se.hasOwnProperty(i)&&(e[i]=se[i][t])}return ce[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}he.BASESIZE=6;var de=he;function ge(e){return(e="string"!=typeof e?e.unit:e)in ve||e in ye||"ex"===e}function T(e,t){let i;if(e.unit in ve)i=ve[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)i=t.fontMetrics().cssEmPerMu;else{var n=t.style.isTight()?t.havingStyle(t.style.text()):t;if("ex"===e.unit)i=n.fontMetrics().xHeight;else{if("em"!==e.unit)throw new S("Invalid unit: '"+e.unit+"'");i=n.fontMetrics().quad}n!==t&&(i*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*i,t.maxSize)}function pe(e){return e.filter(e=>e).join(" ")}function me(e,t,i){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=i||{},t){t.style.isTight()&&this.classes.push("mtight");const e=t.getColor();e&&(this.style.color=e)}}function fe(e){var t=document.createElement(e);t.className=pe(this.classes);for(const e in this.style)this.style.hasOwnProperty(e)&&(t.style[e]=this.style[e]);for(const e in this.attributes)this.attributes.hasOwnProperty(e)&&t.setAttribute(e,this.attributes[e]);for(let e=0;e"}const ve={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},ye={ex:!0,em:!0,mu:!0},j=function(e){return+e.toFixed(4)+"em"};class we{constructor(e,t,i,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,me.call(this,e,i,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return _.contains(this.classes,e)}toNode(){return fe.call(this,"span")}toMarkup(){return be.call(this,"span")}}class $e{constructor(e,t,i,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,me.call(this,t,n),this.children=i||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return _.contains(this.classes,e)}toNode(){return fe.call(this,"a")}toMarkup(){return be.call(this,"a")}}class xe{constructor(e,t,i){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=i}hasClass(e){return _.contains(this.classes,e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(const t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){let e=''+_.escape(this.alt)+'=n[0]&&t<=n[1])return i.name}}return null}(this.text.charCodeAt(0));e&&this.classes.push(e+"_fallback"),/[\xee\xef\xed\xec]/.test(this.text)&&(this.text=ke[this.text])}hasClass(e){return _.contains(this.classes,e)}toNode(){const e=document.createTextNode(this.text);let t=null;0")+n+"":n}}class Ae{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");for(const e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);for(let e=0;e':''}}class _e{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){let e="","\\gt",!0),i(n,o,g,"∈","\\in",!0),i(n,o,g,"","\\@not"),i(n,o,g,"⊂","\\subset",!0),i(n,o,g,"⊃","\\supset",!0),i(n,o,g,"⊆","\\subseteq",!0),i(n,o,g,"⊇","\\supseteq",!0),i(n,e,g,"⊈","\\nsubseteq",!0),i(n,e,g,"⊉","\\nsupseteq",!0),i(n,o,g,"⊨","\\models"),i(n,o,g,"←","\\leftarrow",!0),i(n,o,g,"≤","\\le"),i(n,o,g,"≤","\\leq",!0),i(n,o,g,"<","\\lt",!0),i(n,o,g,"→","\\rightarrow",!0),i(n,o,g,"→","\\to"),i(n,e,g,"≱","\\ngeq",!0),i(n,e,g,"≰","\\nleq",!0),i(n,o,m," ","\\ "),i(n,o,m," ","\\space"),i(n,o,m," ","\\nobreakspace"),i(s,o,m," ","\\ "),i(s,o,m," "," "),i(s,o,m," ","\\space"),i(s,o,m," ","\\nobreakspace"),i(n,o,m,null,"\\nobreak"),i(n,o,m,null,"\\allowbreak"),i(n,o,Me,",",","),i(n,o,Me,";",";"),i(n,e,a,"⊼","\\barwedge",!0),i(n,e,a,"⊻","\\veebar",!0),i(n,o,a,"⊙","\\odot",!0),i(n,o,a,"⊕","\\oplus",!0),i(n,o,a,"⊗","\\otimes",!0),i(n,o,f,"∂","\\partial",!0),i(n,o,a,"⊘","\\oslash",!0),i(n,e,a,"⊚","\\circledcirc",!0),i(n,e,a,"⊡","\\boxdot",!0),i(n,o,a,"△","\\bigtriangleup"),i(n,o,a,"▽","\\bigtriangledown"),i(n,o,a,"†","\\dagger"),i(n,o,a,"⋄","\\diamond"),i(n,o,a,"⋆","\\star"),i(n,o,a,"◃","\\triangleleft"),i(n,o,a,"▹","\\triangleright"),i(n,o,d,"{","\\{"),i(s,o,f,"{","\\{"),i(s,o,f,"{","\\textbraceleft"),i(n,o,c,"}","\\}"),i(s,o,f,"}","\\}"),i(s,o,f,"}","\\textbraceright"),i(n,o,d,"{","\\lbrace"),i(n,o,c,"}","\\rbrace"),i(n,o,d,"[","\\lbrack",!0),i(s,o,f,"[","\\lbrack",!0),i(n,o,c,"]","\\rbrack",!0),i(s,o,f,"]","\\rbrack",!0),i(n,o,d,"(","\\lparen",!0),i(n,o,c,")","\\rparen",!0),i(s,o,f,"<","\\textless",!0),i(s,o,f,">","\\textgreater",!0),i(n,o,d,"⌊","\\lfloor",!0),i(n,o,c,"⌋","\\rfloor",!0),i(n,o,d,"⌈","\\lceil",!0),i(n,o,c,"⌉","\\rceil",!0),i(n,o,f,"\\","\\backslash"),i(n,o,f,"∣","|"),i(n,o,f,"∣","\\vert"),i(s,o,f,"|","\\textbar",!0),i(n,o,f,"∥","\\|"),i(n,o,f,"∥","\\Vert"),i(s,o,f,"∥","\\textbardbl"),i(s,o,f,"~","\\textasciitilde"),i(s,o,f,"\\","\\textbackslash"),i(s,o,f,"^","\\textasciicircum"),i(n,o,g,"↑","\\uparrow",!0),i(n,o,g,"⇑","\\Uparrow",!0),i(n,o,g,"↓","\\downarrow",!0),i(n,o,g,"⇓","\\Downarrow",!0),i(n,o,g,"↕","\\updownarrow",!0),i(n,o,g,"⇕","\\Updownarrow",!0),i(n,o,u,"∐","\\coprod"),i(n,o,u,"⋁","\\bigvee"),i(n,o,u,"⋀","\\bigwedge"),i(n,o,u,"⨄","\\biguplus"),i(n,o,u,"⋂","\\bigcap"),i(n,o,u,"⋃","\\bigcup"),i(n,o,u,"∫","\\int"),i(n,o,u,"∫","\\intop"),i(n,o,u,"∬","\\iint"),i(n,o,u,"∭","\\iiint"),i(n,o,u,"∏","\\prod"),i(n,o,u,"∑","\\sum"),i(n,o,u,"⨂","\\bigotimes"),i(n,o,u,"⨁","\\bigoplus"),i(n,o,u,"⨀","\\bigodot"),i(n,o,u,"∮","\\oint"),i(n,o,u,"∯","\\oiint"),i(n,o,u,"∰","\\oiiint"),i(n,o,u,"⨆","\\bigsqcup"),i(n,o,u,"∫","\\smallint"),i(s,o,Re,"…","\\textellipsis"),i(n,o,Re,"…","\\mathellipsis"),i(s,o,Re,"…","\\ldots",!0),i(n,o,Re,"…","\\ldots",!0),i(n,o,Re,"⋯","\\@cdots",!0),i(n,o,Re,"⋱","\\ddots",!0),i(n,o,f,"⋮","\\varvdots"),i(n,o,r,"ˊ","\\acute"),i(n,o,r,"ˋ","\\grave"),i(n,o,r,"¨","\\ddot"),i(n,o,r,"~","\\tilde"),i(n,o,r,"ˉ","\\bar"),i(n,o,r,"˘","\\breve"),i(n,o,r,"ˇ","\\check"),i(n,o,r,"^","\\hat"),i(n,o,r,"⃗","\\vec"),i(n,o,r,"˙","\\dot"),i(n,o,r,"˚","\\mathring"),i(n,o,l,"","\\@imath"),i(n,o,l,"","\\@jmath"),i(n,o,f,"ı","ı"),i(n,o,f,"ȷ","ȷ"),i(s,o,f,"ı","\\i",!0),i(s,o,f,"ȷ","\\j",!0),i(s,o,f,"ß","\\ss",!0),i(s,o,f,"æ","\\ae",!0),i(s,o,f,"œ","\\oe",!0),i(s,o,f,"ø","\\o",!0),i(s,o,f,"Æ","\\AE",!0),i(s,o,f,"Œ","\\OE",!0),i(s,o,f,"Ø","\\O",!0),i(s,o,r,"ˊ","\\'"),i(s,o,r,"ˋ","\\`"),i(s,o,r,"ˆ","\\^"),i(s,o,r,"˜","\\~"),i(s,o,r,"ˉ","\\="),i(s,o,r,"˘","\\u"),i(s,o,r,"˙","\\."),i(s,o,r,"¸","\\c"),i(s,o,r,"˚","\\r"),i(s,o,r,"ˇ","\\v"),i(s,o,r,"¨",'\\"'),i(s,o,r,"˝","\\H"),i(s,o,r,"◯","\\textcircled");const Le={"--":!0,"---":!0,"``":!0,"''":!0};i(s,o,f,"–","--",!0),i(s,o,f,"–","\\textendash"),i(s,o,f,"—","---",!0),i(s,o,f,"—","\\textemdash"),i(s,o,f,"‘","`",!0),i(s,o,f,"‘","\\textquoteleft"),i(s,o,f,"’","'",!0),i(s,o,f,"’","\\textquoteright"),i(s,o,f,"“","``",!0),i(s,o,f,"“","\\textquotedblleft"),i(s,o,f,"”","''",!0),i(s,o,f,"”","\\textquotedblright"),i(n,o,f,"°","\\degree",!0),i(s,o,f,"°","\\degree"),i(s,o,f,"°","\\textdegree",!0),i(n,o,f,"£","\\pounds"),i(n,o,f,"£","\\mathsterling",!0),i(s,o,f,"£","\\pounds"),i(s,o,f,"£","\\textsterling",!0),i(n,e,f,"✠","\\maltese"),i(s,e,f,"✠","\\maltese");var Oe='0123456789/@."';for(let e=0;ei&&(i=o.height),o.depth>n&&(n=o.depth),o.maxFontSize>s&&(s=o.maxFontSize)}t.height=i,t.depth=n,t.maxFontSize=s}function v(e,t,i,n){return e=new we(e,t,i,n),Fe(e),e}function ze(e){return e=new ie(e),Fe(e),e}function Be(e,t,i){let n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}return n+"-"+("textbf"===t&&"textit"===i?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")}const He=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],qe=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],We=(e,t,i,n)=>new we(e,t,i,n),Ve={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Ue={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]};var E={fontMap:Ve,makeSymbol:Pe,mathsym:function(e,t,i,n){return void 0===n&&(n=[]),"boldsymbol"===i.font&&Ne(e,"Main-Bold",t).metrics?Pe(e,"Main-Bold",t,i,n.concat(["mathbf"])):"\\"===e||"main"===h[t][e].font?Pe(e,"Main-Regular",t,i,n):Pe(e,"AMS-Regular",t,i,n.concat(["amsrm"]))},makeSpan:v,makeSvgSpan:We,makeLineSpan:function(e,t,i){e=v([e],[],t);return e.height=Math.max(i||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),e.style.borderBottomWidth=j(e.height),e.maxFontSize=1,e},makeAnchor:function(e,t,i,n){e=new $e(e,t,i,n);return Fe(e),e},makeFragment:ze,wrapFragment:function(e,t){return e instanceof ie?v([],[e],t):e},makeVList:function(t,i){const{children:n,depth:s}=function(i){if("individualShift"===i.positionType){const o=i.children,a=[o[0]],c=-o[0].shift-o[0].elem.depth;let t=c;for(let e=1;e{var i=v(["mspace"],[],t),e=T(e,t);return i.style.marginRight=j(e),i},staticSvg:function(e,t){var[e,i,n]=Ue[e],e=new Se(e),e=new Ae([e],{width:j(i),height:j(n),style:"width:"+j(i),viewBox:"0 0 "+1e3*i+" "+1e3*n,preserveAspectRatio:"xMinYMin"}),e=We(["overlay"],[e],t);return e.height=n,e.style.height=j(n),e.style.width=j(i),e},svgData:Ue,tryCombineChars:t=>{for(let e=0;e{if(pe(e.classes)!==pe(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){const t=e.classes[0];if("mbin"===t||"mord"===t)return!1}for(const i in e.style)if(e.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;for(const n in t.style)if(t.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;return!0})(i,n)&&(i.text+=n.text,i.height=Math.max(i.height,n.height),i.depth=Math.max(i.depth,n.depth),i.italic=n.italic,t.splice(e+1,1),e--)}return t}};const y={number:3,unit:"mu"},Ge={number:4,unit:"mu"},Ke={number:5,unit:"mu"},Ye={mord:{mop:y,mbin:Ge,mrel:Ke,minner:y},mop:{mord:y,mop:y,mrel:Ke,minner:y},mbin:{mord:Ge,mop:Ge,mopen:Ge,minner:Ge},mrel:{mord:Ke,mop:Ke,mopen:Ke,minner:Ke},mopen:{},mclose:{mop:y,mbin:Ge,mrel:Ke,minner:y},mpunct:{mord:y,mop:y,mrel:Ke,mopen:y,mclose:y,mpunct:y,minner:y},minner:{mord:y,mop:y,mbin:Ge,mrel:Ke,mopen:y,mpunct:y,minner:y}},Xe={mord:{mop:y},mop:{mord:y,mop:y},mbin:{},mrel:{},mopen:{},mclose:{mop:y},mpunct:{},minner:{mop:y}},Qe={},Je={},Ze={};function w(e){var{type:e,names:t,props:i,handler:n,htmlBuilder:s,mathmlBuilder:o}=e,r={type:e,numArgs:i.numArgs,argTypes:i.argTypes,allowedInArgument:!!i.allowedInArgument,allowedInText:!!i.allowedInText,allowedInMath:void 0===i.allowedInMath||i.allowedInMath,numOptionalArgs:i.numOptionalArgs||0,infix:!!i.infix,primitive:!!i.primitive,handler:n};for(let e=0;e{var i=t.classes[0],n=e.classes[0];"mbin"===i&&_.contains(ot,n)?t.classes[0]="mord":"mbin"===n&&_.contains(st,i)&&(e.classes[0]="mord")},{node:r},s,e),ct(o,(e,t)=>{var t=ht(t),i=ht(e),e=t&&i?(e.hasClass("mtight")?Xe:Ye)[t][i]:null;if(e)return E.makeGlue(e,n)},{node:r},s,e)}return o}function it(e,t){return e=["nulldelimiter"].concat(e.baseSizingClasses()),nt(t.concat(e))}const nt=E.makeSpan,st=["leftmost","mbin","mopen","mrel","mop","mpunct"],ot=["rightmost","mrel","mclose","mpunct"],rt={display:C.DISPLAY,text:C.TEXT,script:C.SCRIPT,scriptscript:C.SCRIPTSCRIPT},at={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},ct=function(i,e,t,n,s){n&&i.push(n);let o=0;for(;oe=>{i.splice(t+1,0,e),o++})(o)}}n&&i.pop()},lt=function(e){return e instanceof ie||e instanceof $e||e instanceof we&&e.hasClass("enclosing")?e:null},ut=function(e,t){var i=lt(e);if(i){const e=i.children;if(e.length){if("right"===t)return ut(e[e.length-1],"right");if("left"===t)return ut(e[0],"left")}}return e},ht=function(e,t){return e&&(t&&(e=ut(e,t)),at[e.classes[0]])||null},M=function(t,i,n){if(!t)return nt();if(Je[t.type]){let e=Je[t.type](t,i);if(n&&i.size!==n.size){e=nt(i.sizingClasses(n),[e],i);const t=i.sizeMultiplier/n.sizeMultiplier;e.height*=t,e.depth*=t}return e}throw new S("Got group of unknown type: '"+t.type+"'")};function dt(e,t){e=nt(["base"],e,t),t=nt(["strut"]);return t.style.height=j(e.height+e.depth),e.depth&&(t.style.verticalAlign=j(-e.depth)),e.children.unshift(t),e}function gt(e,i){let t=null;1===e.length&&"tag"===e[0].type&&(t=e[0].tag,e=e[0].body);var n=R(e,i,"root");let s;2===n.length&&n[1].hasClass("tag")&&(s=n.pop());var o=[];let r,a=[];for(let t=0;t"}toText(){return this.children.map(e=>e.toText()).join("")}}class mt{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return _.escape(this.toText())}toText(){return this.text}}var k={MathNode:x,TextNode:mt,SpaceNode:class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=.05555<=e&&e<=.05556?" ":.1666<=e&&e<=.1667?" ":.2222<=e&&e<=.2223?" ":.2777<=e&&e<=.2778?"  ":-.05556<=e&&e<=-.05555?" ⁣":-.1667<=e&&e<=-.1666?" ⁣":-.2223<=e&&e<=-.2222?" ⁣":-.2778<=e&&e<=-.2777?" ⁣":null}toNode(){var e;return this.character?document.createTextNode(this.character):((e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace")).setAttribute("width",j(this.width)),e)}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character||" "}},newDocumentFragment:pt};function ft(e,t,i){return!h[t][e]||!h[t][e].replace||55349===e.charCodeAt(0)||Le.hasOwnProperty(e)&&i&&(i.fontFamily&&"tt"===i.fontFamily.slice(4,6)||i.font&&"tt"===i.font.slice(4,6))||(e=h[t][e].replace),new k.TextNode(e)}function bt(e){return 1===e.length?e[0]:new k.MathNode("mrow",e)}function vt(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";if(!(t=t.font)||"mathnormal"===t)return null;var i=e.mode;if("mathit"===t)return"italic";if("boldsymbol"===t)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===t)return"bold";if("mathbb"===t)return"double-struck";if("mathfrak"===t)return"fraktur";if("mathscr"===t||"mathcal"===t)return"script";if("mathsf"===t)return"sans-serif";if("mathtt"===t)return"monospace";let n=e.text;return!_.contains(["\\imath","\\jmath"],n)&&re(n=h[i][n]&&h[i][n].replace?h[i][n].replace:n,E.fontMap[t].fontName,i)?E.fontMap[t].variant:null}function A(t,i,e){if(1===t.length){const n=L(t[0],i);return e&&n instanceof x&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}const n=[];let s;for(let e=0;e{let e,o,r;n&&"supsub"===n.type?(o=O(n.base,"accent"),e=o.base,n.base=e,r=function(e){if(e instanceof we)return e;throw new Error("Expected span but got "+String(e)+".")}(M(n,s)),n.base=o):(o=O(n,"accent"),e=o.base);n=M(e,s.havingCrampedStyle());let a=0;if(o.isShifty&&_.isCharacterBox(e)){const n=_.getBaseElem(e);a=Ce(M(n,s.havingCrampedStyle())).skew}var c="\\c"===o.label;let l,u=c?n.height+n.depth:Math.min(n.height,s.fontMetrics().xHeight);if(o.isStretchy)l=_t(o,s),l=E.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"elem",elem:l,wrapperClasses:["svg-align"],wrapperStyle:0{var i=e.isStretchy?St(e.label):new k.MathNode("mo",[ft(e.label,e.mode)]),e=new k.MathNode("mover",[L(e.base,t),i]);return e.setAttribute("accent","true"),e},Rt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|")),Mt=(w({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 t=tt(t[0]),i=!Rt.test(e.funcName),n=!i||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:i,isShifty:n,base:t}},htmlBuilder:jt,mathmlBuilder:Et}),w({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{t=t[0];let i=e.parser.mode;return"math"===i&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),i="text"),{type:"accent",mode:i,label:e.funcName,isStretchy:!1,isShifty:!0,base:t}},htmlBuilder:jt,mathmlBuilder:Et}),w({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:e,funcName:i}=e,t=t[0];return{type:"accentUnder",mode:e.mode,label:i,base:t}},htmlBuilder:(e,t)=>{var i=M(e.base,t),n=_t(e,t),e="\\utilde"===e.label?.12:0,n=E.makeVList({positionType:"top",positionData:i.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:e},{type:"elem",elem:i}]},t);return E.makeSpan(["mord","accentunder"],[n],t)},mathmlBuilder:(e,t)=>{var i=St(e.label),e=new k.MathNode("munder",[L(e.base,t),i]);return e.setAttribute("accentunder","true"),e}}),e=>{e=new k.MathNode("mpadded",e?[e]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e}),Lt=(w({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,i){var{parser:e,funcName:n}=e;return{type:"xArrow",mode:e.mode,label:n,body:t[0],below:i[0]}},htmlBuilder(e,t){var i=t.style,n=t.havingStyle(i.sup()),s=E.wrapFragment(M(e.body,n,t),t),o="\\x"===e.label.slice(0,2)?"x":"cd";let r;s.classes.push(o+"-arrow-pad"),e.below&&(n=t.havingStyle(i.sub()),(r=E.wrapFragment(M(e.below,n,t),t)).classes.push(o+"-arrow-pad"));i=_t(e,t),n=-t.fontMetrics().axisHeight+.5*i.height;let a,c=-t.fontMetrics().axisHeight-.5*i.height-.111;if((.25{e="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==e.type||"bin"!==e.family&&"rel"!==e.family?"mord":"m"+e.family},Nt=(w({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){e=e.parser;return{type:"mclass",mode:e.mode,mclass:It(t[0]),body:$(t[1]),isCharacterBox:_.isCharacterBox(t[1])}}}),w({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:e,funcName:i}=e,n=t[1],t=t[0],s="\\stackrel"!==i?It(n):"mrel",n={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==i,body:$(n)},n={type:"supsub",mode:t.mode,base:n,sup:"\\underset"===i?null:t,sub:"\\underset"===i?t:null};return{type:"mclass",mode:e.mode,mclass:s,body:[n],isCharacterBox:_.isCharacterBox(n)}},htmlBuilder:Ot,mathmlBuilder:Dt}),w({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){e=e.parser;return{type:"pmb",mode:e.mode,mclass:It(t[0]),body:$(t[0])}},htmlBuilder(e,t){var i=R(e.body,t,!0),e=E.makeSpan([e.mclass],i,t);return e.style.textShadow="0.02em 0.01em 0.04px",e},mathmlBuilder(e,t){e=A(e.body,t),t=new k.MathNode("mstyle",e);return t.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),t}}),{">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"}),Pt=e=>"textord"===e.type&&"@"===e.text;w({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:e,funcName:i}=e;return{type:"cdlabel",mode:e.mode,side:i.slice(4),label:t[0]}},htmlBuilder(e,t){var i=t.havingStyle(t.style.sup()),i=E.wrapFragment(M(e.label,i,t),t);return i.classes.push("cd-label-"+e.side),i.style.bottom=j(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(e,t){let i=new k.MathNode("mrow",[L(e.label,t)]);return(i=new k.MathNode("mpadded",[i])).setAttribute("width","0"),"left"===e.side&&i.setAttribute("lspace","-1width"),i.setAttribute("voffset","0.7em"),(i=new k.MathNode("mstyle",[i])).setAttribute("displaystyle","false"),i.setAttribute("scriptlevel","1"),i}}),w({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){e=e.parser;return{type:"cdlabelparent",mode:e.mode,fragment:t[0]}},htmlBuilder(e,t){e=E.wrapFragment(M(e.fragment,t),t);return e.classes.push("cd-vert-arrow"),e},mathmlBuilder(e,t){return new k.MathNode("mrow",[L(e.fragment,t)])}}),w({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){var e=e["parser"],i=O(t[0],"ordgroup").body;let n="";for(let e=0;e>10),56320+(1023&o))),{type:"textord",mode:e.mode,text:s}}});m=(e,t)=>{t=R(e.body,t.withColor(e.color),!1);return E.makeFragment(t)},Me=(e,t)=>{t=A(e.body,t.withColor(e.color)),t=new k.MathNode("mstyle",t);return t.setAttribute("mathcolor",e.color),t};w({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var e=e["parser"],i=O(t[0],"color-token").color,t=t[1];return{type:"color",mode:e.mode,color:i,body:$(t)}},htmlBuilder:m,mathmlBuilder:Me}),w({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:e,breakOnTokenText:i}=e,t=O(t[0],"color-token").color,i=(e.gullet.macros.set("\\current@color",t),e.parseExpression(!0,i));return{type:"color",mode:e.mode,color:t,body:i}},htmlBuilder:m,mathmlBuilder:Me}),w({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,i){var e=e["parser"],n="["===e.gullet.future().text?e.parseSizeGroup(!0):null,s=!e.settings.displayMode||!e.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:e.mode,newLine:s,size:n&&O(n,"size").value}},htmlBuilder(e,t){var i=E.makeSpan(["mspace"],[],t);return e.newLine&&(i.classes.push("newline"),e.size)&&(i.style.marginTop=j(T(e.size,t))),i},mathmlBuilder(e,t){var i=new k.MathNode("mspace");return e.newLine&&(i.setAttribute("linebreak","newline"),e.size)&&i.setAttribute("height",j(T(e.size,t))),i}});function Ft(e,t,i){if(i=re(h.math[e]&&h.math[e].replace||e,t,i))return i;throw new Error("Unsupported symbol "+e+" and font size "+t+".")}function zt(e,t,i,n){return t=i.havingBaseStyle(t),n=E.makeSpan(n.concat(t.sizingClasses(i)),[e],i),e=t.sizeMultiplier/i.sizeMultiplier,n.height*=e,n.depth*=e,n.maxFontSize=t.sizeMultiplier,n}function Bt(e,t,i){i=t.havingBaseStyle(i),i=(1-t.sizeMultiplier/i.sizeMultiplier)*t.fontMetrics().axisHeight,e.classes.push("delimcenter"),e.style.top=j(i),e.height-=i,e.depth+=i}function Ht(e,t,i,n,s,o){return e=E.makeSymbol(e,"Size"+t+"-Regular",s,n),s=zt(E.makeSpan(["delimsizing","size"+t],[e],n),C.TEXT,n,o),i&&Bt(s,n,C.TEXT),s}function qt(e,t,i){return{type:"elem",elem:E.makeSpan(["delimsizinginner","Size1-Regular"===t?"delim-size1":"delim-size4"],[E.makeSpan([],[E.makeSymbol(e,t,i)])])}}function Wt(e,t,i){var n=(ne["Size4-Regular"][e.charCodeAt(0)]?ne["Size4-Regular"]:ne["Size1-Regular"])[e.charCodeAt(0)][4],e=new Se("inner",function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),e=new Ae([e],{width:j(n),height:j(t),style:"width:"+j(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"});return(e=E.makeSvgSpan([],[e],i)).height=t,e.style.height=j(t),e.style.width=j(n),{type:"elem",elem:e}}function Vt(e,t,i,n,s,o){let r,a,c,l,u="",h=0,d=(r=c=l=e,a=null,"Size1-Regular");"\\uparrow"===e?c=l="⏐":"\\Uparrow"===e?c=l="‖":"\\downarrow"===e?r=c="⏐":"\\Downarrow"===e?r=c="‖":"\\updownarrow"===e?(r="\\uparrow",c="⏐",l="\\downarrow"):"\\Updownarrow"===e?(r="\\Uparrow",c="‖",l="\\Downarrow"):_.contains(Zt,e)?(c="∣",u="vert",h=333):_.contains(ei,e)?(c="∥",u="doublevert",h=556):"["===e||"\\lbrack"===e?(r="⎡",c="⎢",l="⎣",d="Size4-Regular",u="lbrack",h=667):"]"===e||"\\rbrack"===e?(r="⎤",c="⎥",l="⎦",d="Size4-Regular",u="rbrack",h=667):"\\lfloor"===e||"⌊"===e?(c=r="⎢",l="⎣",d="Size4-Regular",u="lfloor",h=667):"\\lceil"===e||"⌈"===e?(r="⎡",c=l="⎢",d="Size4-Regular",u="lceil",h=667):"\\rfloor"===e||"⌋"===e?(c=r="⎥",l="⎦",d="Size4-Regular",u="rfloor",h=667):"\\rceil"===e||"⌉"===e?(r="⎤",c=l="⎥",d="Size4-Regular",u="rceil",h=667):"("===e||"\\lparen"===e?(r="⎛",c="⎜",l="⎝",d="Size4-Regular",u="lparen",h=875):")"===e||"\\rparen"===e?(r="⎞",c="⎟",l="⎠",d="Size4-Regular",u="rparen",h=875):"\\{"===e||"\\lbrace"===e?(r="⎧",a="⎨",l="⎩",c="⎪",d="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(r="⎫",a="⎬",l="⎭",c="⎪",d="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(r="⎧",l="⎩",c="⎪",d="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(r="⎫",l="⎭",c="⎪",d="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(r="⎧",l="⎭",c="⎪",d="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(r="⎫",l="⎩",c="⎪",d="Size4-Regular");var e=Ft(r,d,s),g=e.height+e.depth,e=Ft(c,d,s),e=e.height+e.depth,p=(p=Ft(l,d,s)).height+p.depth;let m=0,f=1;if(null!==a){const e=Ft(a,d,s);m=e.height+e.depth,f=2}var b=(b=g+p+m)+Math.max(0,Math.ceil((t-b)/(f*e)))*f*e;let v=n.fontMetrics().axisHeight;i&&(v*=n.sizeMultiplier);var t=b/2-v,y=[];if(0n)return s[t]}return s[s.length-1]}function Kt(e,t,i,n,s,o){"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),h=_.contains(ni,e)?oi:_.contains(ti,e)?ai:ri;var r,a,c,l,u,h=Gt(e,t,h,n);return"small"===h.type?(r=e,a=h.style,c=i,l=n,u=o,r=E.makeSymbol(r,"Main-Regular",s,l),r=zt(r,a,l,u),c&&Bt(r,l,a),r):"large"===h.type?Ht(e,h.size,i,n,s,o):Vt(e,t,i,n,s,o)}const Yt={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Xt=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new S("Expected a control sequence",e);return t},Qt=(e,t,i,n)=>{let s=e.gullet.macros.get(i.text);null==s&&(i.noexpand=!0,s={tokens:[i],numArgs:0,unexpandable:!e.gullet.isExpandable(i.text)}),e.gullet.macros.set(t,s,n)},Jt=(w({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:e,funcName:t}=e,i=(e.consumeSpaces(),e.fetch());if(Yt[i.text])return"\\global"!==t&&"\\\\globallong"!==t||(i.text=Yt[i.text]),O(e.parseFunction(),"internal");throw new S("Invalid token after macro prefix",i)}}),w({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){let{parser:t,funcName:i}=e,n=t.gullet.popToken();e=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new S("Expected a control sequence",n);let s,o=0;for(var r=[[]];"{"!==t.gullet.future().text;)if("#"===(n=t.gullet.popToken()).text){if("{"===t.gullet.future().text){s=t.gullet.future(),r[o].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new S('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==o+1)throw new S('Argument number "'+n.text+'" out of order');o++,r.push([])}else{if("EOF"===n.text)throw new S("Expected a macro definition");r[o].push(n.text)}let a=t.gullet.consumeArg()["tokens"];return s&&a.unshift(s),"\\edef"!==i&&"\\xdef"!==i||(a=t.gullet.expandTokens(a)).reverse(),t.gullet.macros.set(e,{tokens:a,numArgs:o,delimiters:r},i===Yt[i]),{type:"internal",mode:t.mode}}}),w({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:e,funcName:t}=e,i=Xt(e.gullet.popToken()),n=(e.gullet.consumeSpaces(),(e=>{let t=e.gullet.popToken();return t="="===t.text&&" "===(t=e.gullet.popToken()).text?e.gullet.popToken():t})(e));return Qt(e,i,n,"\\\\globallet"===t),{type:"internal",mode:e.mode}}}),w({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:e,funcName:t}=e,i=Xt(e.gullet.popToken()),n=e.gullet.popToken(),s=e.gullet.popToken();return Qt(e,i,s,"\\\\globalfuture"===t),e.gullet.pushToken(s),e.gullet.pushToken(n),{type:"internal",mode:e.mode}}}),{type:"kern",size:-.008}),Zt=["|","\\lvert","\\rvert","\\vert"],ei=["\\|","\\lVert","\\rVert","\\Vert"],ti=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],ii=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],ni=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],si=[0,1.2,1.8,2.4,3],oi=[{type:"small",style:C.SCRIPTSCRIPT},{type:"small",style:C.SCRIPT},{type:"small",style:C.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],ri=[{type:"small",style:C.SCRIPTSCRIPT},{type:"small",style:C.SCRIPT},{type:"small",style:C.TEXT},{type:"stack"}],ai=[{type:"small",style:C.SCRIPTSCRIPT},{type:"small",style:C.SCRIPT},{type:"small",style:C.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}];var ci={sqrtImage:function(e,t){var i=t.havingBaseSizing(),n=Gt("\\surd",e*i.sizeMultiplier,ai,i);let s=i.sizeMultiplier;i=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness);let o,r,a=0,c=0,l=0;return r="small"===n.type?(l=1e3+1e3*i+80,e<1?s=1:e<1.4&&(s=.7),a=(1+i+.08)/s,c=(1+i)/s,(o=Ut("sqrtMain",a,l,i,t)).style.minWidth="0.853em",.833/s):"large"===n.type?(l=1080*si[n.size],c=(si[n.size]+i)/s,a=(si[n.size]+i+.08)/s,(o=Ut("sqrtSize"+n.size,a,l,i,t)).style.minWidth="1.02em",1/s):(a=e+i+.08,c=e+i,l=Math.floor(1e3*e+i)+80,(o=Ut("sqrtTall",a,l,i,t)).style.minWidth="0.742em",1.056),o.height=c,o.style.height=j(a),{span:o,advanceWidth:r,ruleWidth:(t.fontMetrics().sqrtRuleThickness+i)*s}},sizedDelim:function(e,t,i,n,s){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),_.contains(ti,e)||_.contains(ni,e))return Ht(e,t,!1,i,n,s);if(_.contains(ii,e))return Vt(e,si[t],!1,i,n,s);throw new S("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:si,customSizedDelim:Kt,leftRightDelim:function(e,t,i,n,s,o){var r=n.fontMetrics().axisHeight*n.sizeMultiplier,a=5/n.fontMetrics().ptPerEm,t=Math.max(t-r,i+r),i=Math.max(t/500*901,2*t-a);return Kt(e,i,!0,n,s,o)}};const li={"\\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}},ui=["(","\\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 hi(e,t){var i=Tt(e);if(i&&_.contains(ui,i.text))return i;throw new S(i?"Invalid delimiter '"+i.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function di(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}w({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)=>{t=hi(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:li[e.funcName].size,mclass:li[e.funcName].mclass,delim:t.text}},htmlBuilder:(e,t)=>"."===e.delim?E.makeSpan([e.mclass]):ci.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[],t=("."!==e.delim&&t.push(ft(e.delim,e.mode)),new k.MathNode("mo",t)),e=("mopen"===e.mclass||"mclose"===e.mclass?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true"),j(ci.sizeToMaxHeight[e.size]));return t.setAttribute("minsize",e),t.setAttribute("maxsize",e),t}}),w({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var i=e.parser.gullet.macros.get("\\current@color");if(i&&"string"!=typeof i)throw new S("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:hi(t[0],e).text,color:i}}}),w({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var t=hi(t[0],e),e=e.parser,i=(++e.leftrightDepth,e.parseExpression(!1)),n=(--e.leftrightDepth,e.expect("\\right",!1),O(e.parseFunction(),"leftright-right"));return{type:"leftright",mode:e.mode,body:i,left:t.text,right:n.delim,rightColor:n.color}},htmlBuilder:(t,e)=>{di(t);const i=R(t.body,e,!0,["mopen","mclose"]);let n,s,o=0,r=0,a=!1;for(let e=0;e{di(e);var i=A(e.body,t);if("."!==e.left){const t=new k.MathNode("mo",[ft(e.left,e.mode)]);t.setAttribute("fence","true"),i.unshift(t)}if("."!==e.right){const t=new k.MathNode("mo",[ft(e.right,e.mode)]);t.setAttribute("fence","true"),e.rightColor&&t.setAttribute("mathcolor",e.rightColor),i.push(t)}return bt(i)}}),w({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{t=hi(t[0],e);if(e.parser.leftrightDepth)return{type:"middle",mode:e.parser.mode,delim:t.text};throw new S("\\middle without preceding \\left",t)},htmlBuilder:(e,t)=>{let i;return"."===e.delim?i=it(t,[]):(i=ci.sizedDelim(e.delim,1,t,e.mode,[]),e={delim:e.delim,options:t},i.isMiddle=e),i},mathmlBuilder:(e,t)=>{e="\\vert"===e.delim||"|"===e.delim?ft("|","text"):ft(e.delim,e.mode),e=new k.MathNode("mo",[e]);return e.setAttribute("fence","true"),e.setAttribute("lspace","0.05em"),e.setAttribute("rspace","0.05em"),e}});a=(n,s)=>{const o=E.wrapFragment(M(n.body,s),s),r=n.label.slice(1);let a,e=s.sizeMultiplier,c=0;const l=_.isCharacterBox(n.body);if("sout"===r)(a=E.makeSpan(["stretchy","sout"])).height=s.fontMetrics().defaultRuleThickness/e,c=-.5*s.fontMetrics().xHeight;else if("phase"===r){const n=T({number:.6,unit:"pt"},s),r=T({number:.35,unit:"ex"},s),l=(e/=s.havingBaseSizing().sizeMultiplier,o.height+o.depth+n+r),_=(o.style.paddingLeft=j(l/2+n),Math.floor(1e3*l*e)),t="M400000 "+_+" H0 L"+_/2+" 0 l65 45 L145 "+(_-80)+" H400000z",i=new Ae([new Se("phase",t)],{width:"400em",height:j(_/1e3),viewBox:"0 0 400000 "+_,preserveAspectRatio:"xMinYMin slice"});(a=E.makeSvgSpan(["hide-tail"],[i],s)).style.height=j(l),c=o.depth+n+r}else{/cancel/.test(r)?l||o.classes.push("cancel-pad"):"angl"===r?o.classes.push("anglpad"):o.classes.push("boxpad");let e=0,t=0,i=0;t=/box/.test(r)?(i=Math.max(s.fontMetrics().fboxrule,s.minRuleThickness),e=s.fontMetrics().fboxsep+("colorbox"===r?0:i)):"angl"===r?(i=Math.max(s.fontMetrics().defaultRuleThickness,s.minRuleThickness),e=4*i,Math.max(0,.25-o.depth)):e=l?.2:0,a=function(e,t,i,n,s){let o;n=e.height+e.depth+i+n;if(/fbox|color|angl/.test(t)){if(o=E.makeSpan(["stretchy",t],[],s),"fbox"===t){const e=s.color&&s.getColor();e&&(o.style.borderColor=e)}}else{const e=[],i=(/^[bx]cancel$/.test(t)&&e.push(new _e({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&e.push(new _e({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"})),new Ae(e,{width:"100%",height:j(n)}));o=E.makeSvgSpan([],[i],s)}return o.height=n,o.style.height=j(n),o}(o,r,e,t,s),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=j(i)):"angl"===r&&.049!==i&&(a.style.borderTopWidth=j(i),a.style.borderRightWidth=j(i)),c=o.depth+t,n.backgroundColor&&(a.style.backgroundColor=n.backgroundColor,n.borderColor)&&(a.style.borderColor=n.borderColor)}let t;if(n.backgroundColor)t=E.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:c},{type:"elem",elem:o,shift:0}]},s);else{const n=/cancel|phase/.test(r)?["svg-align"]:[];t=E.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:a,shift:c,wrapperClasses:n}]},s)}return/cancel/.test(r)&&(t.height=o.height,t.depth=o.depth),/cancel/.test(r)&&!l?E.makeSpan(["mord","cancel-lap"],[t],s):E.makeSpan(["mord"],[t],s)},d=(e,t)=>{let i=0;var n=new k.MathNode(-1{if(!e.parser.settings.displayMode)throw new S("{"+e.envName+"} can be used only in display mode.")};function wi(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function $i(t,e,i){let{hskipBeforeAndAfter:n,addJot:s,cols:o,arraystretch:r,colSeparationType:a,autoTag:c,singleRow:l,emptySingleRow:u,maxNumCols:h,leqno:d}=e;if(t.gullet.beginGroup(),l||t.gullet.macros.set("\\cr","\\\\\\relax"),!r){const e=t.gullet.expandMacroAsText("\\arraystretch");if(null==e)r=1;else if(!(r=parseFloat(e))||r<0)throw new S("Invalid \\arraystretch: "+e)}t.gullet.beginGroup();let g=[];const p=[g],m=[],f=[],b=null!=c?[]:void 0;function v(){c&&t.gullet.macros.set("\\@eqnsw","1",!0)}function y(){b&&(t.gullet.macros.get("\\df@tag")?(b.push(t.subparse([new bi("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):b.push(Boolean(c)&&"1"===t.gullet.macros.get("\\@eqnsw")))}for(v(),f.push(vi(t));;){let e=t.parseExpression(!1,l?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup(),e={type:"ordgroup",mode:t.mode,body:e},i&&(e={type:"styling",mode:t.mode,style:i,body:[e]}),g.push(e);const n=t.fetch().text;if("&"===n){if(h&&g.length===h){if(l||a)throw new S("Too many tab characters: &",t.nextToken);t.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}t.consume()}else{if("\\end"===n){y(),1===g.length&&"styling"===e.type&&0===e.body[0].body.length&&(1e))for(o=0;o=l)){(0e.length));return n.cols=new Array(s).fill({type:"align",align:i}),t?{type:"leftright",mode:e.mode,body:[n],left:t[0],right:t[1],rightColor:void 0}:n},htmlBuilder:ki,mathmlBuilder:Ai}),pi({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){e=$i(e.parser,{arraystretch:.5},"script");return e.colSeparationType="small",e},htmlBuilder:ki,mathmlBuilder:Ai}),pi({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){t=(Tt(t[0])?[t[0]]:O(t[0],"ordgroup").body).map(function(e){var t=Ct(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new S("Unknown column alignment: "+t,e)});if(1AV".indexOf(l)))throw new S('Expected one of "<>AV=|." after @',a[n]);for(let i=0;i<2;i++){let t=!0;for(let e=n+1;e{var i=e.font,t=t.withFont(i);return M(e.body,t)},Ri=(e,t)=>{var i=e.font,t=t.withFont(i);return L(e.body,t)},Mi={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"},Li=(w({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:e,funcName:i}=e,t=tt(t[0]);let n=i;return n in Mi&&(n=Mi[n]),{type:"font",mode:e.mode,font:n.slice(1),body:t}},htmlBuilder:Ei,mathmlBuilder:Ri}),w({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var e=e["parser"],t=t[0],i=_.isCharacterBox(t);return{type:"mclass",mode:e.mode,mclass:It(t),body:[{type:"font",mode:e.mode,font:"boldsymbol",body:t}],isCharacterBox:i}}}),w({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:e,funcName:i,breakOnTokenText:n}=e,s=e["mode"],n=e.parseExpression(!0,n);return{type:"font",mode:s,font:"math"+i.slice(1),body:{type:"ordgroup",mode:e.mode,body:n}}},htmlBuilder:Ei,mathmlBuilder:Ri}),(e,t)=>{let i=t;return"display"===e?i=i.id>=C.SCRIPT.id?i.text():C.DISPLAY:"text"===e&&i.size===C.DISPLAY.size?i=C.TEXT:"script"===e?i=C.SCRIPT:"scriptscript"===e&&(i=C.SCRIPTSCRIPT),i}),Oi=(e,t)=>{const i=Li(e.size,t.style),n=i.fracNum(),s=i.fracDen();var o=t.havingStyle(n),r=M(e.numer,o,t);if(e.continued){const e=8.5/t.fontMetrics().ptPerEm,i=3.5/t.fontMetrics().ptPerEm;r.height=r.height{let i=new k.MathNode("mfrac",[L(e.numer,t),L(e.denom,t)]);if(e.hasBarLine){if(e.barSize){const n=T(e.barSize,t);i.setAttribute("linethickness",j(n))}}else i.setAttribute("linethickness","0px");const n=Li(e.size,t.style);if(n.size!==t.style.size){i=new k.MathNode("mstyle",[i]);const e=n.size===C.DISPLAY.size?"true":"false";i.setAttribute("displaystyle",e),i.setAttribute("scriptlevel","0")}if(null==e.leftDelim&&null==e.rightDelim)return i;{const t=[];if(null!=e.leftDelim){const i=new k.MathNode("mo",[new k.TextNode(e.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),t.push(i)}if(t.push(i),null!=e.rightDelim){const i=new k.MathNode("mo",[new k.TextNode(e.rightDelim.replace("\\",""))]);i.setAttribute("fence","true"),t.push(i)}return bt(t)}},Ii=(w({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:e,funcName:i}=e,n=t[0],t=t[1];let s,o=null,r=null,a="auto";switch(i){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",r=")";break;case"\\\\bracefrac":s=!1,o="\\{",r="\\}";break;case"\\\\brackfrac":s=!1,o="[",r="]";break;default:throw new Error("Unrecognized genfrac command")}switch(i){case"\\dfrac":case"\\dbinom":a="display";break;case"\\tfrac":case"\\tbinom":a="text"}return{type:"genfrac",mode:e.mode,continued:!1,numer:n,denom:t,hasBarLine:s,leftDelim:o,rightDelim:r,size:a,barSize:null}},htmlBuilder:Oi,mathmlBuilder:Di}),w({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var e=e["parser"],i=t[0],t=t[1];return{type:"genfrac",mode:e.mode,continued:!0,numer:i,denom:t,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),w({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){let t,{parser:i,funcName:n,token:s}=e;switch(n){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 new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:i.mode,replaceWith:t,token:s}}}),["display","text","script","scriptscript"]),Ni=(w({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var e=e["parser"],i=t[4],n=t[5],s=tt(t[0]),s="atom"===s.type&&"open"===s.family?Ti(s.text):null,o=tt(t[1]),o="atom"===o.type&&"close"===o.family?Ti(o.text):null,r=O(t[2],"size");let a,c=null,l=(a=!!r.isBlank||0<(c=r.value).number,"auto"),u=t[3];if("ordgroup"===u.type){if(0{var e=e["parser"],i=t[0],n=function(e){if(e)return e;throw new Error("Expected non-null, but got "+String(e))}(O(t[1],"infix").size),t=t[2],s=0{var i=t.style;let n,s;s="supsub"===e.type?(n=e.sup?M(e.sup,t.havingStyle(i.sup()),t):M(e.sub,t.havingStyle(i.sub()),t),O(e.base,"horizBrace")):O(e,"horizBrace");i=M(s.base,t.havingBaseStyle(C.DISPLAY)),e=_t(s,t);let o;if((s.isOver?(o=E.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:e}]},t)).children[0].children[0].children[1]:(o=E.makeVList({positionType:"bottom",positionData:i.depth+.1+e.height,children:[{type:"elem",elem:e},{type:"kern",size:.1},{type:"elem",elem:i}]},t)).children[0].children[0].children[0]).classes.push("svg-align"),n){const e=E.makeSpan(["mord",s.isOver?"mover":"munder"],[o],t);o=s.isOver?E.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"kern",size:.2},{type:"elem",elem:n}]},t):E.makeVList({positionType:"bottom",positionData:e.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:e}]},t)}return E.makeSpan(["mord",s.isOver?"mover":"munder"],[o],t)}),Pi=(w({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:e,funcName:i}=e;return{type:"horizBrace",mode:e.mode,label:i,isOver:/^\\over/.test(i),base:t[0]}},htmlBuilder:Ni,mathmlBuilder:(e,t)=>{var i=St(e.label);return new k.MathNode(e.isOver?"mover":"munder",[L(e.base,t),i])}}),w({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var e=e["parser"],i=t[1],t=O(t[0],"url").url;return e.settings.isTrusted({command:"\\href",url:t})?{type:"href",mode:e.mode,href:t,body:$(i)}:e.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var i=R(e.body,t,!1);return E.makeAnchor(e.href,[],i,t)},mathmlBuilder:(e,t)=>{let i=yt(e.body,t);return(i=i instanceof x?i:new x("mrow",[i])).setAttribute("href",e.href),i}}),w({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var e=e["parser"],i=O(t[0],"url").url;if(!e.settings.isTrusted({command:"\\url",url:i}))return e.formatUnsupportedCmd("\\url");var n=[];for(let t=0;t{let{parser:i,funcName:n}=t;var s=O(e[0],"raw").string,t=e[1];let o;i.settings.strict&&i.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var r={};switch(n){case"\\htmlClass":r.class=s,o={command:"\\htmlClass",class:s};break;case"\\htmlId":r.id=s,o={command:"\\htmlId",id:s};break;case"\\htmlStyle":r.style=s,o={command:"\\htmlStyle",style:s};break;case"\\htmlData":{const t=s.split(",");for(let e=0;e{var i=R(e.body,t,!1),n=["enclosing"],s=(e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/)),E.makeSpan(n,i,t));for(const t in e.attributes)"class"!==t&&e.attributes.hasOwnProperty(t)&&s.setAttribute(t,e.attributes[t]);return s},mathmlBuilder:(e,t)=>yt(e.body,t)}),w({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{e=e.parser;return{type:"htmlmathml",mode:e.mode,html:$(t[0]),mathml:$(t[1])}},htmlBuilder:(e,t)=>{e=R(e.html,t,!1);return E.makeFragment(e)},mathmlBuilder:(e,t)=>yt(e.mathml,t)}),w({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,i)=>{let n=t["parser"],s={number:0,unit:"em"},o={number:.9,unit:"em"},r={number:0,unit:"em"},a="";if(i[0]){const t=O(i[0],"raw").string.split(",");for(let e=0;e{var i=T(e.height,t);let n=0,s=(0{var i=new k.MathNode("mglyph",[]);i.setAttribute("alt",e.alt);const n=T(e.height,t);let s=0;if(0{var{parser:e,funcName:i}=e,t=t[0];return{type:"lap",mode:e.mode,alignment:i.slice(5),body:t}},htmlBuilder:(e,t)=>{let i;i="clap"===e.alignment?(i=E.makeSpan([],[M(e.body,t)]),E.makeSpan(["inner"],[i],t)):E.makeSpan(["inner"],[M(e.body,t)]);var n=E.makeSpan(["fix"],[]);let s=E.makeSpan([e.alignment],[i,n],t);e=E.makeSpan(["strut"]);return e.style.height=j(s.height+s.depth),s.depth&&(e.style.verticalAlign=j(-s.depth)),s.children.unshift(e),s=E.makeSpan(["thinbox"],[s],t),E.makeSpan(["mord","vbox"],[s],t)},mathmlBuilder:(e,t)=>{var i=new k.MathNode("mpadded",[L(e.body,t)]);if("rlap"!==e.alignment){const t="llap"===e.alignment?"-1":"-0.5";i.setAttribute("lspace",t+"width")}return i.setAttribute("width","0px"),i}}),w({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:e,parser:i}=e,n=i.mode,e=(i.switchMode("math"),"\\("===e?"\\)":"$"),s=i.parseExpression(!1,e);return i.expect(e),i.switchMode(n),{type:"styling",mode:i.mode,style:"text",body:s}}}),w({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new S("Mismatched "+e.funcName)}}),(e,t)=>{switch(t.style.size){case C.DISPLAY.size:return e.display;case C.TEXT.size:return e.text;case C.SCRIPT.size:return e.script;case C.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}}),Fi=(w({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{e=e.parser;return{type:"mathchoice",mode:e.mode,display:$(t[0]),text:$(t[1]),script:$(t[2]),scriptscript:$(t[3])}},htmlBuilder:(e,t)=>{e=Pi(e,t),e=R(e,t,!1);return E.makeFragment(e)},mathmlBuilder:(e,t)=>{e=Pi(e,t);return yt(e,t)}}),(e,t,i,n,s,o,r)=>{e=E.makeSpan([],[e]);var a=i&&_.isCharacterBox(i);let c,l,u;if(t){const e=M(t,n.havingStyle(s.sup()),n);l={elem:e,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-e.depth)}}if(i){const e=M(i,n.havingStyle(s.sub()),n);c={elem:e,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-e.height)}}if(l&&c){const t=n.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+r;u=E.makeVList({positionType:"bottom",positionData:t,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:j(-o)},{type:"kern",size:c.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:j(o)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(c){const t=e.height-r;u=E.makeVList({positionType:"top",positionData:t,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:j(-o)},{type:"kern",size:c.kern},{type:"elem",elem:e}]},n)}else{if(!l)return e;{const t=e.depth+r;u=E.makeVList({positionType:"bottom",positionData:t,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:j(o)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}}t=[u];if(c&&0!==o&&!a){const e=E.makeSpan(["mspace"],[],n);e.style.marginRight=j(o),t.unshift(e)}return E.makeSpan(["mop","op-limits"],t,n)}),zi=["\\smallint"],Bi=(t,i)=>{let e,n,s,o=!1;"supsub"===t.type?(e=t.sup,n=t.sub,s=O(t.base,"op"),o=!0):s=O(t,"op");t=i.style;let r,a=!1;if(t.size===C.DISPLAY.size&&s.symbol&&!_.contains(zi,s.name)&&(a=!0),s.symbol){const t=a?"Size2-Regular":"Size1-Regular";let e="";if("\\oiint"!==s.name&&"\\oiiint"!==s.name||(e=s.name.slice(1),s.name="oiint"===e?"\\iint":"\\iiint"),r=E.makeSymbol(s.name,t,"math",i,["mop","op-symbol",a?"large-op":"small-op"]),0{let i;if(e.symbol)i=new x("mo",[ft(e.name,e.mode)]),_.contains(zi,e.name)&&i.setAttribute("largeop","false");else if(e.body)i=new x("mo",A(e.body,t));else{i=new x("mi",[new mt(e.name.slice(1))]);const t=new x("mo",[ft("⁡","text")]);i=e.parentIsSupSub?new x("mrow",[i,t]):pt([i,t])}return i},qi={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"},Wi=(w({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{let{parser:i,funcName:n}=e,s=n;return 1===s.length&&(s=qi[s]),{type:"op",mode:i.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:s}},htmlBuilder:Bi,mathmlBuilder:Hi}),w({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{e=e.parser,t=t[0];return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:$(t)}},htmlBuilder:Bi,mathmlBuilder:Hi}),{"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"}),Vi=(w({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:e,funcName:t}=e;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:Bi,mathmlBuilder:Hi}),w({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:e,funcName:t}=e;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:Bi,mathmlBuilder:Hi}),w({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){let{parser:t,funcName:i}=e,n=i;return 1===n.length&&(n=Wi[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Bi,mathmlBuilder:Hi}),(e,t)=>{let i,n,s,o,r=!1;if("supsub"===e.type?(i=e.sup,n=e.sub,s=O(e.base,"operatorname"),r=!0):s=O(e,"operatorname"),0{var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),i=R(e,t.withFont("mathrm"),!0);for(let e=0;e{var{parser:e,funcName:i}=e,t=t[0];return{type:"operatorname",mode:e.mode,body:$(t),alwaysHandleSupSub:"\\operatornamewithlimits"===i,limits:!1,parentIsSupSub:!1}},htmlBuilder:Vi,mathmlBuilder:(t,i)=>{let n=A(t.body,i.withFont("mathrm")),s=!0;for(let e=0;ee.toText()).join("");n=[new k.TextNode(t)]}var i=new k.MathNode("mi",n),e=(i.setAttribute("mathvariant","normal"),new k.MathNode("mo",[ft("⁡","text")]));return t.parentIsSupSub?new k.MathNode("mrow",[i,e]):k.newDocumentFragment([i,e])}}),D("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),et({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?E.makeFragment(R(e.body,t,!1)):E.makeSpan(["mord"],R(e.body,t,!0),t)},mathmlBuilder(e,t){return yt(e.body,t,!0)}}),w({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){e=e.parser,t=t[0];return{type:"overline",mode:e.mode,body:t}},htmlBuilder(e,t){var e=M(e.body,t.havingCrampedStyle()),i=E.makeLineSpan("overline-line",t),n=t.fontMetrics().defaultRuleThickness,e=E.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"kern",size:3*n},{type:"elem",elem:i},{type:"kern",size:n}]},t);return E.makeSpan(["mord","overline"],[e],t)},mathmlBuilder(e,t){var i=new k.MathNode("mo",[new k.TextNode("‾")]),e=(i.setAttribute("stretchy","true"),new k.MathNode("mover",[L(e.body,t),i]));return e.setAttribute("accent","true"),e}}),w({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{e=e.parser,t=t[0];return{type:"phantom",mode:e.mode,body:$(t)}},htmlBuilder:(e,t)=>{e=R(e.body,t.withPhantom(),!1);return E.makeFragment(e)},mathmlBuilder:(e,t)=>{e=A(e.body,t);return new k.MathNode("mphantom",e)}}),w({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{e=e.parser,t=t[0];return{type:"hphantom",mode:e.mode,body:t}},htmlBuilder:(e,t)=>{let i=E.makeSpan([],[M(e.body,t.withPhantom())]);if(i.height=0,i.depth=0,i.children)for(let e=0;e{e=A($(e.body),t),t=new k.MathNode("mphantom",e),e=new k.MathNode("mpadded",[t]);return e.setAttribute("height","0px"),e.setAttribute("depth","0px"),e}}),w({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{e=e.parser,t=t[0];return{type:"vphantom",mode:e.mode,body:t}},htmlBuilder:(e,t)=>{var e=E.makeSpan(["inner"],[M(e.body,t.withPhantom())]),i=E.makeSpan(["fix"],[]);return E.makeSpan(["mord","rlap"],[e,i],t)},mathmlBuilder:(e,t)=>{e=A($(e.body),t),t=new k.MathNode("mphantom",e),e=new k.MathNode("mpadded",[t]);return e.setAttribute("width","0px"),e}}),w({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var e=e["parser"],i=O(t[0],"size").value,t=t[1];return{type:"raisebox",mode:e.mode,dy:i,body:t}},htmlBuilder(e,t){var i=M(e.body,t),e=T(e.dy,t);return E.makeVList({positionType:"shift",positionData:-e,children:[{type:"elem",elem:i}]},t)},mathmlBuilder(e,t){t=new k.MathNode("mpadded",[L(e.body,t)]),e=e.dy.number+e.dy.unit;return t.setAttribute("voffset",e),t}}),w({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){e=e.parser;return{type:"internal",mode:e.mode}}}),w({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,i){var e=e["parser"],i=i[0],n=O(t[0],"size"),t=O(t[1],"size");return{type:"rule",mode:e.mode,shift:i&&O(i,"size").value,width:n.value,height:t.value}},htmlBuilder(e,t){var i=E.makeSpan(["mord","rule"],[],t),n=T(e.width,t),s=T(e.height,t),e=e.shift?T(e.shift,t):0;return i.style.borderRightWidth=j(n),i.style.borderTopWidth=j(s),i.style.bottom=j(e),i.width=n,i.height=s+e,i.depth=-e,i.maxFontSize=1.125*s*t.sizeMultiplier,i},mathmlBuilder(e,t){var i=T(e.width,t),n=T(e.height,t),e=e.shift?T(e.shift,t):0,t=t.color&&t.getColor()||"black",s=new k.MathNode("mspace"),t=(s.setAttribute("mathbackground",t),s.setAttribute("width",j(i)),s.setAttribute("height",j(n)),new k.MathNode("mpadded",[s]));return 0<=e?t.setAttribute("height",j(e)):(t.setAttribute("height",j(e)),t.setAttribute("depth",j(-e))),t.setAttribute("voffset",j(e)),t}});const Gi=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Ki=(w({type:"sizing",names:Gi,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:e,funcName:i,parser:n}=e,e=n.parseExpression(!1,e);return{type:"sizing",mode:n.mode,size:Gi.indexOf(i)+1,body:e}},htmlBuilder:(e,t)=>{var i=t.havingSize(e.size);return Ui(e.body,i,t)},mathmlBuilder:(e,t)=>{t=t.havingSize(e.size),e=A(e.body,t),e=new k.MathNode("mstyle",e);return e.setAttribute("mathsize",j(t.sizeMultiplier)),e}}),w({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,i)=>{let n=e["parser"],s=!1,o=!1;var r=i[0]&&O(i[0],"ordgroup");if(r){var a;for(let e=0;e{var i=E.makeSpan([],[M(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return i;if(e.smashHeight&&(i.height=0,i.children))for(let e=0;e{t=new k.MathNode("mpadded",[L(e.body,t)]);return e.smashHeight&&t.setAttribute("height","0px"),e.smashDepth&&t.setAttribute("depth","0px"),t}}),w({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,i){e=e.parser,i=i[0],t=t[0];return{type:"sqrt",mode:e.mode,body:t,index:i}},htmlBuilder(e,t){let i=M(e.body,t.havingCrampedStyle());0===i.height&&(i.height=t.fontMetrics().xHeight),i=E.wrapFragment(i,t);const n=t.fontMetrics().defaultRuleThickness;let s=n,o=(t.style.idi.height+i.depth+o&&(o=(o+u-i.height-i.depth)/2);var h=a.height-i.height-o-c,h=(i.style.paddingLeft=j(l),E.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:-(i.height+h)},{type:"elem",elem:a},{type:"kern",size:c}]},t));if(e.index){const i=t.havingStyle(C.SCRIPTSCRIPT),n=M(e.index,i,t),s=.6*(h.height-h.depth),o=E.makeVList({positionType:"shift",positionData:-s,children:[{type:"elem",elem:n}]},t),r=E.makeSpan(["root"],[o]);return E.makeSpan(["mord","sqrt"],[r,h],t)}return E.makeSpan(["mord","sqrt"],[h],t)},mathmlBuilder(e,t){var{body:e,index:i}=e;return i?new k.MathNode("mroot",[L(e,t),L(i,t)]):new k.MathNode("msqrt",[L(e,t)])}}),{display:C.DISPLAY,text:C.TEXT,script:C.SCRIPT,scriptscript:C.SCRIPTSCRIPT}),Yi=(w({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:e,funcName:i,parser:n}=e,e=n.parseExpression(!0,e),i=i.slice(1,i.length-5);return{type:"styling",mode:n.mode,style:i,body:e}},htmlBuilder(e,t){var i=Ki[e.style],i=t.havingStyle(i).withFont("");return Ui(e.body,i,t)},mathmlBuilder(e,t){var i=Ki[e.style],t=t.havingStyle(i),i=A(e.body,t),t=new k.MathNode("mstyle",i),i={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return t.setAttribute("scriptlevel",i[0]),t.setAttribute("displaystyle",i[1]),t}}),et({type:"supsub",htmlBuilder(e,t){n=t;const i=(o=(s=e).base)?"op"===o.type?o.limits&&(n.style.size===C.DISPLAY.size||o.alwaysHandleSupSub)?Bi:null:"operatorname"===o.type?o.alwaysHandleSupSub&&(n.style.size===C.DISPLAY.size||o.limits)?Vi:null:"accent"===o.type?_.isCharacterBox(o.base)?jt:null:"horizBrace"===o.type&&!s.sub===o.isOver?Ni:null:null;if(i)return i(e,t);var{base:n,sup:s,sub:o}=e,r=M(n,t);let a,c;var l=t.fontMetrics();let u=0,h=0;n=n&&_.isCharacterBox(n);if(s){const e=t.havingStyle(t.style.sup());a=M(s,e,t),n||(u=r.height-e.fontMetrics().supDrop*e.sizeMultiplier/t.sizeMultiplier)}if(o){const e=t.havingStyle(t.style.sub());c=M(o,e,t),n||(h=r.depth+e.fontMetrics().subDrop*e.sizeMultiplier/t.sizeMultiplier)}s=t.style===C.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2,o=t.sizeMultiplier,n=j(.5/l.ptPerEm/o);let d,g=null;if(c){const t=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(r instanceof p||t)&&(g=j(-r.italic))}if(a&&c){u=Math.max(u,s,a.depth+.25*l.xHeight),h=Math.max(h,l.sub2);const e=4*l.defaultRuleThickness;if(u-a.depth-(c.height-h){var e=new k.MathNode("mtd",[]);return e.setAttribute("width","50%"),e}),Zi=(et({type:"tag",mathmlBuilder(e,t){e=new k.MathNode("mtable",[new k.MathNode("mtr",[Ji(),new k.MathNode("mtd",[yt(e.body,t)]),Ji(),new k.MathNode("mtd",[yt(e.tag,t)])])]);return e.setAttribute("width","100%"),e}}),{"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"}),en={"\\textbf":"textbf","\\textmd":"textmd"},tn={"\\textit":"textit","\\textup":"textup"},nn=(e,t)=>{e=e.font;return e?Zi[e]?t.withTextFontFamily(Zi[e]):en[e]?t.withTextFontWeight(en[e]):t.withTextFontShape(tn[e]):t},sn=(w({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:e,funcName:i}=e,t=t[0];return{type:"text",mode:e.mode,body:$(t),font:i}},htmlBuilder(e,t){t=nn(e,t),e=R(e.body,t,!0);return E.makeSpan(["mord","text"],e,t)},mathmlBuilder(e,t){t=nn(e,t);return yt(e.body,t)}}),w({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){e=e.parser;return{type:"underline",mode:e.mode,body:t[0]}},htmlBuilder(e,t){var e=M(e.body,t),i=E.makeLineSpan("underline-line",t),n=t.fontMetrics().defaultRuleThickness,i=E.makeVList({positionType:"top",positionData:e.height,children:[{type:"kern",size:n},{type:"elem",elem:i},{type:"kern",size:3*n},{type:"elem",elem:e}]},t);return E.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var i=new k.MathNode("mo",[new k.TextNode("‾")]),e=(i.setAttribute("stretchy","true"),new k.MathNode("munder",[L(e.body,t),i]));return e.setAttribute("accentunder","true"),e}}),w({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){e=e.parser;return{type:"vcenter",mode:e.mode,body:t[0]}},htmlBuilder(e,t){var e=M(e.body,t),i=t.fontMetrics().axisHeight,i=.5*(e.height-i-(e.depth+i));return E.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:e}]},t)},mathmlBuilder(e,t){return new k.MathNode("mpadded",[L(e.body,t)],["vcenter"])}}),w({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,i){throw new S("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(i,e){var n=sn(i),s=[],o=e.havingStyle(e.style.text());for(let t=0;te.body.replace(/ /g,e.star?"␣":" "));var on=Qe;const rn=new RegExp("[̀-ͯ]+$");class an{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=new RegExp("([ \r\n\t]+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-‧‪-퟿豈-￿][̀-ͯ]*|[\ud800-\udbff][\udc00-\udfff][̀-ͯ]*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)[ \r\n\t]*|\\\\[^\ud800-\udfff])","g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){const e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new bi("EOF",new fi(this,t,t));var i=this.tokenRegex.exec(e);if(null===i||i.index!==t)throw new S("Unexpected character: '"+e[t]+"'",new bi(e[t],new fi(this,t,t+1)));i=i[6]||i[3]||(i[2]?"\\ ":" ");if(14!==this.catcodes[i])return new bi(i,new fi(this,t,this.tokenRegex.lastIndex));{const t=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===t?(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=t+1,this.lex()}}}class cn{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 S("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(const t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;0=t)throw new S("Invalid base-"+t+" digit "+i.text);for(var s;null!=(s=un[e.future().text])&&s{let n=i.consumeArg().tokens;if(1!==n.length)throw new S("\\newcommand's first argument must be a macro name");var s=n[0].text,o=i.isDefined(s);if(o&&!e)throw new S("\\newcommand{"+s+"} attempting to redefine "+s+"; use \\renewcommand");if(!o&&!t)throw new S("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");let r=0;if(1===(n=i.consumeArg().tokens).length&&"["===n[0].text){let e="",t=i.expandNextToken();for(;"]"!==t.text&&"EOF"!==t.text;)e+=t.text,t=i.expandNextToken();if(!e.match(/^\s*[0-9]+\s*$/))throw new S("Invalid number of arguments: "+e);r=parseInt(e),n=i.consumeArg().tokens}return i.macros.set(s,{tokens:n,numArgs:r}),""}),dn=(D("\\newcommand",e=>hn(e,!1,!0)),D("\\renewcommand",e=>hn(e,!0,!1)),D("\\providecommand",e=>hn(e,!0,!0)),D("\\message",e=>{e=e.consumeArgs(1)[0];return console.log(e.reverse().map(e=>e.text).join("")),""}),D("\\errmessage",e=>{e=e.consumeArgs(1)[0];return console.error(e.reverse().map(e=>e.text).join("")),""}),D("\\show",e=>{var t=e.popToken(),i=t.text;return console.log(t,e.macros.get(i),on[i],h.math[i],h.text[i]),""}),D("\\bgroup","{"),D("\\egroup","}"),D("~","\\nobreakspace"),D("\\lq","`"),D("\\rq","'"),D("\\aa","\\r a"),D("\\AA","\\r A"),D("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),D("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),D("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),D("ℬ","\\mathscr{B}"),D("ℰ","\\mathscr{E}"),D("ℱ","\\mathscr{F}"),D("ℋ","\\mathscr{H}"),D("ℐ","\\mathscr{I}"),D("ℒ","\\mathscr{L}"),D("ℳ","\\mathscr{M}"),D("ℛ","\\mathscr{R}"),D("ℭ","\\mathfrak{C}"),D("ℌ","\\mathfrak{H}"),D("ℨ","\\mathfrak{Z}"),D("\\Bbbk","\\Bbb{k}"),D("·","\\cdotp"),D("\\llap","\\mathllap{\\textrm{#1}}"),D("\\rlap","\\mathrlap{\\textrm{#1}}"),D("\\clap","\\mathclap{\\textrm{#1}}"),D("\\mathstrut","\\vphantom{(}"),D("\\underbar","\\underline{\\text{#1}}"),D("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),D("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),D("\\ne","\\neq"),D("≠","\\neq"),D("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),D("∉","\\notin"),D("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),D("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),D("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),D("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),D("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),D("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),D("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),D("⟂","\\perp"),D("‼","\\mathclose{!\\mkern-0.8mu!}"),D("∌","\\notni"),D("⌜","\\ulcorner"),D("⌝","\\urcorner"),D("⌞","\\llcorner"),D("⌟","\\lrcorner"),D("©","\\copyright"),D("®","\\textregistered"),D("️","\\textregistered"),D("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),D("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),D("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),D("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),D("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),D("⋮","\\vdots"),D("\\varGamma","\\mathit{\\Gamma}"),D("\\varDelta","\\mathit{\\Delta}"),D("\\varTheta","\\mathit{\\Theta}"),D("\\varLambda","\\mathit{\\Lambda}"),D("\\varXi","\\mathit{\\Xi}"),D("\\varPi","\\mathit{\\Pi}"),D("\\varSigma","\\mathit{\\Sigma}"),D("\\varUpsilon","\\mathit{\\Upsilon}"),D("\\varPhi","\\mathit{\\Phi}"),D("\\varPsi","\\mathit{\\Psi}"),D("\\varOmega","\\mathit{\\Omega}"),D("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),D("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),D("\\boxed","\\fbox{$\\displaystyle{#1}$}"),D("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),D("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),D("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),{",":"\\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"}),gn=(D("\\dots",function(e){let t="\\dotso";e=e.expandAfterFuture().text;return e in dn?t=dn[e]:("\\not"===e.slice(0,4)||e in h.math&&_.contains(["bin","rel"],h.math[e].group))&&(t="\\dotsb"),t}),{")":!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});D("\\dotso",function(e){return e.future().text in gn?"\\ldots\\,":"\\ldots"}),D("\\dotsc",function(e){e=e.future().text;return e in gn&&","!==e?"\\ldots\\,":"\\ldots"}),D("\\cdots",function(e){return e.future().text in gn?"\\@cdots\\,":"\\@cdots"}),D("\\dotsb","\\cdots"),D("\\dotsm","\\cdots"),D("\\dotsi","\\!\\cdots"),D("\\dotsx","\\ldots\\,"),D("\\DOTSI","\\relax"),D("\\DOTSB","\\relax"),D("\\DOTSX","\\relax"),D("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),D("\\,","\\tmspace+{3mu}{.1667em}"),D("\\thinspace","\\,"),D("\\>","\\mskip{4mu}"),D("\\:","\\tmspace+{4mu}{.2222em}"),D("\\medspace","\\:"),D("\\;","\\tmspace+{5mu}{.2777em}"),D("\\thickspace","\\;"),D("\\!","\\tmspace-{3mu}{.1667em}"),D("\\negthinspace","\\!"),D("\\negmedspace","\\tmspace-{4mu}{.2222em}"),D("\\negthickspace","\\tmspace-{5mu}{.277em}"),D("\\enspace","\\kern.5em "),D("\\enskip","\\hskip.5em\\relax"),D("\\quad","\\hskip1em\\relax"),D("\\qquad","\\hskip2em\\relax"),D("\\tag","\\@ifstar\\tag@literal\\tag@paren"),D("\\tag@paren","\\tag@literal{({#1})}"),D("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new S("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),D("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),D("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),D("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),D("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),D("\\newline","\\\\\\relax"),D("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");c=j(ne["Main-Regular"]["T".charCodeAt(0)][1]-.7*ne["Main-Regular"]["A".charCodeAt(0)][1]),D("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+c+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),D("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+c+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),D("\\hspace","\\@ifstar\\@hspacer\\@hspace"),D("\\@hspace","\\hskip #1\\relax"),D("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),D("\\ordinarycolon",":"),D("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),D("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),D("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),D("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),D("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),D("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),D("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),D("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),D("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),D("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),D("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),D("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),D("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),D("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),D("∷","\\dblcolon"),D("∹","\\eqcolon"),D("≔","\\coloneqq"),D("≕","\\eqqcolon"),D("⩴","\\Coloneqq"),D("\\ratio","\\vcentcolon"),D("\\coloncolon","\\dblcolon"),D("\\colonequals","\\coloneqq"),D("\\coloncolonequals","\\Coloneqq"),D("\\equalscolon","\\eqqcolon"),D("\\equalscoloncolon","\\Eqqcolon"),D("\\colonminus","\\coloneq"),D("\\coloncolonminus","\\Coloneq"),D("\\minuscolon","\\eqcolon"),D("\\minuscoloncolon","\\Eqcolon"),D("\\coloncolonapprox","\\Colonapprox"),D("\\coloncolonsim","\\Colonsim"),D("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),D("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),D("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),D("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),D("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),D("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),D("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),D("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),D("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),D("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),D("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),D("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),D("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),D("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),D("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),D("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),D("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),D("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),D("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),D("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),D("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),D("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),D("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),D("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),D("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),D("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),D("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),D("\\imath","\\html@mathml{\\@imath}{ı}"),D("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),D("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),D("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),D("⟦","\\llbracket"),D("⟧","\\rrbracket"),D("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),D("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),D("⦃","\\lBrace"),D("⦄","\\rBrace"),D("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),D("⦵","\\minuso"),D("\\darr","\\downarrow"),D("\\dArr","\\Downarrow"),D("\\Darr","\\Downarrow"),D("\\lang","\\langle"),D("\\rang","\\rangle"),D("\\uarr","\\uparrow"),D("\\uArr","\\Uparrow"),D("\\Uarr","\\Uparrow"),D("\\N","\\mathbb{N}"),D("\\R","\\mathbb{R}"),D("\\Z","\\mathbb{Z}"),D("\\alef","\\aleph"),D("\\alefsym","\\aleph"),D("\\Alpha","\\mathrm{A}"),D("\\Beta","\\mathrm{B}"),D("\\bull","\\bullet"),D("\\Chi","\\mathrm{X}"),D("\\clubs","\\clubsuit"),D("\\cnums","\\mathbb{C}"),D("\\Complex","\\mathbb{C}"),D("\\Dagger","\\ddagger"),D("\\diamonds","\\diamondsuit"),D("\\empty","\\emptyset"),D("\\Epsilon","\\mathrm{E}"),D("\\Eta","\\mathrm{H}"),D("\\exist","\\exists"),D("\\harr","\\leftrightarrow"),D("\\hArr","\\Leftrightarrow"),D("\\Harr","\\Leftrightarrow"),D("\\hearts","\\heartsuit"),D("\\image","\\Im"),D("\\infin","\\infty"),D("\\Iota","\\mathrm{I}"),D("\\isin","\\in"),D("\\Kappa","\\mathrm{K}"),D("\\larr","\\leftarrow"),D("\\lArr","\\Leftarrow"),D("\\Larr","\\Leftarrow"),D("\\lrarr","\\leftrightarrow"),D("\\lrArr","\\Leftrightarrow"),D("\\Lrarr","\\Leftrightarrow"),D("\\Mu","\\mathrm{M}"),D("\\natnums","\\mathbb{N}"),D("\\Nu","\\mathrm{N}"),D("\\Omicron","\\mathrm{O}"),D("\\plusmn","\\pm"),D("\\rarr","\\rightarrow"),D("\\rArr","\\Rightarrow"),D("\\Rarr","\\Rightarrow"),D("\\real","\\Re"),D("\\reals","\\mathbb{R}"),D("\\Reals","\\mathbb{R}"),D("\\Rho","\\mathrm{P}"),D("\\sdot","\\cdot"),D("\\sect","\\S"),D("\\spades","\\spadesuit"),D("\\sub","\\subset"),D("\\sube","\\subseteq"),D("\\supe","\\supseteq"),D("\\Tau","\\mathrm{T}"),D("\\thetasym","\\vartheta"),D("\\weierp","\\wp"),D("\\Zeta","\\mathrm{Z}"),D("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),D("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),D("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),D("\\bra","\\mathinner{\\langle{#1}|}"),D("\\ket","\\mathinner{|{#1}\\rangle}"),D("\\braket","\\mathinner{\\langle{#1}\\rangle}"),D("\\Bra","\\left\\langle#1\\right|"),D("\\Ket","\\left|#1\\right\\rangle"),g=c=>e=>{const t=e.consumeArg().tokens,n=e.consumeArg().tokens,s=e.consumeArg().tokens,i=e.consumeArg().tokens,o=e.macros.get("|"),r=e.macros.get("\\|");e.macros.beginGroup();var a=i=>e=>{c&&(e.macros.set("|",o),s.length)&&e.macros.set("\\|",r);let t=i;return!i&&s.length&&"|"===e.future().text&&(e.popToken(),t=!0),{tokens:t?s:n,numArgs:0}},a=(e.macros.set("|",a(!1)),s.length&&e.macros.set("\\|",a(!0)),e.consumeArg().tokens),a=e.expandTokens([...i,...a,...t]);return e.macros.endGroup(),{tokens:a.reverse(),numArgs:0}};D("\\bra@ket",g(!1)),D("\\bra@set",g(!0)),D("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),D("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),D("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),D("\\angln","{\\angl n}"),D("\\blue","\\textcolor{##6495ed}{#1}"),D("\\orange","\\textcolor{##ffa500}{#1}"),D("\\pink","\\textcolor{##ff00af}{#1}"),D("\\red","\\textcolor{##df0030}{#1}"),D("\\green","\\textcolor{##28ae7b}{#1}"),D("\\gray","\\textcolor{gray}{#1}"),D("\\purple","\\textcolor{##9d38bd}{#1}"),D("\\blueA","\\textcolor{##ccfaff}{#1}"),D("\\blueB","\\textcolor{##80f6ff}{#1}"),D("\\blueC","\\textcolor{##63d9ea}{#1}"),D("\\blueD","\\textcolor{##11accd}{#1}"),D("\\blueE","\\textcolor{##0c7f99}{#1}"),D("\\tealA","\\textcolor{##94fff5}{#1}"),D("\\tealB","\\textcolor{##26edd5}{#1}"),D("\\tealC","\\textcolor{##01d1c1}{#1}"),D("\\tealD","\\textcolor{##01a995}{#1}"),D("\\tealE","\\textcolor{##208170}{#1}"),D("\\greenA","\\textcolor{##b6ffb0}{#1}"),D("\\greenB","\\textcolor{##8af281}{#1}"),D("\\greenC","\\textcolor{##74cf70}{#1}"),D("\\greenD","\\textcolor{##1fab54}{#1}"),D("\\greenE","\\textcolor{##0d923f}{#1}"),D("\\goldA","\\textcolor{##ffd0a9}{#1}"),D("\\goldB","\\textcolor{##ffbb71}{#1}"),D("\\goldC","\\textcolor{##ff9c39}{#1}"),D("\\goldD","\\textcolor{##e07d10}{#1}"),D("\\goldE","\\textcolor{##a75a05}{#1}"),D("\\redA","\\textcolor{##fca9a9}{#1}"),D("\\redB","\\textcolor{##ff8482}{#1}"),D("\\redC","\\textcolor{##f9685d}{#1}"),D("\\redD","\\textcolor{##e84d39}{#1}"),D("\\redE","\\textcolor{##bc2612}{#1}"),D("\\maroonA","\\textcolor{##ffbde0}{#1}"),D("\\maroonB","\\textcolor{##ff92c6}{#1}"),D("\\maroonC","\\textcolor{##ed5fa6}{#1}"),D("\\maroonD","\\textcolor{##ca337c}{#1}"),D("\\maroonE","\\textcolor{##9e034e}{#1}"),D("\\purpleA","\\textcolor{##ddd7ff}{#1}"),D("\\purpleB","\\textcolor{##c6b9fc}{#1}"),D("\\purpleC","\\textcolor{##aa87ff}{#1}"),D("\\purpleD","\\textcolor{##7854ab}{#1}"),D("\\purpleE","\\textcolor{##543b78}{#1}"),D("\\mintA","\\textcolor{##f5f9e8}{#1}"),D("\\mintB","\\textcolor{##edf2df}{#1}"),D("\\mintC","\\textcolor{##e0e5cc}{#1}"),D("\\grayA","\\textcolor{##f6f7f7}{#1}"),D("\\grayB","\\textcolor{##f0f1f2}{#1}"),D("\\grayC","\\textcolor{##e3e5e6}{#1}"),D("\\grayD","\\textcolor{##d6d8da}{#1}"),D("\\grayE","\\textcolor{##babec2}{#1}"),D("\\grayF","\\textcolor{##888d93}{#1}"),D("\\grayG","\\textcolor{##626569}{#1}"),D("\\grayH","\\textcolor{##3b3e40}{#1}"),D("\\grayI","\\textcolor{##21242c}{#1}"),D("\\kaBlue","\\textcolor{##314453}{#1}"),D("\\kaGreen","\\textcolor{##71B307}{#1}");const pn={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class mn{constructor(e,t,i){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 cn(ln,t.macros),this.mode=i,this.stack=[]}feed(e){this.lexer=new an(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){let t,i,n;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),{tokens:n,end:i}=this.consumeArg(["]"])}else({tokens:n,start:t,end:i}=this.consumeArg());return this.pushToken(new bi("EOF",i.loc)),this.pushTokens(n),t.range(i,"")}consumeSpaces(){for(;" "===this.future().text;)this.stack.pop()}consumeArg(e){var t=[],i=e&&0this.settings.maxExpand)throw new S("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),i=t.text,n=t.noexpand?null:this._getExpansion(i);if(null==n||e&&n.unexpandable){if(e&&null==n&&"\\"===i[0]&&!this.isDefined(i))throw new S("Undefined control sequence: "+i);return this.pushToken(t),!1}this.countExpansion(1);let s=n.tokens;var o=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs)for(let e=(s=s.slice()).length-1;0<=e;--e){var r=s[e];if("#"===r.text){if(0===e)throw new S("Incomplete placeholder at end of macro body",r);if("#"===(r=s[--e]).text)s.splice(e+1,1);else{if(!/^[1-9]$/.test(r.text))throw new S("Not a valid argument number",r);s.splice(e,2,...o[+r.text-1])}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;){var e;if(!1===this.expandOnce())return(e=this.stack.pop()).treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new bi(e)]):void 0}expandTokens(e){var t=[],i=this.stack.length;for(this.pushTokens(e);this.stack.length>i;)if(!1===this.expandOnce(!0)){const e=this.stack.pop();e.treatAsRelax&&(e.noexpand=!1,e.treatAsRelax=!1),t.push(e)}return this.countExpansion(t.length),t}expandMacroAsText(e){e=this.expandMacro(e);return e&&e.map(e=>e.text).join("")}_getExpansion(i){const n=this.macros.get(i);if(null==n)return n;if(1===i.length){const n=this.lexer.catcodes[i];if(null!=n&&13!==n)return}i="function"==typeof n?n(this):n;if("string"!=typeof i)return i;{let e=0;if(-1!==i.indexOf("#")){const n=i.replace(/##/g,"");for(;-1!==n.indexOf("#"+(e+1));)++e}const n=new an(i,this.settings),s=[];let t=n.lex();for(;"EOF"!==t.text;)s.push(t),t=n.lex();return s.reverse(),{tokens:s,numArgs:e}}}isDefined(e){return this.macros.has(e)||on.hasOwnProperty(e)||h.math.hasOwnProperty(e)||h.text.hasOwnProperty(e)||pn.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:on.hasOwnProperty(e)&&!on[e].primitive}}const fn=/^[\u208a\u208b\u208c\u208d\u208e\u2080\u2081\u2082\u2083\u2084\u2085\u2086\u2087\u2088\u2089\u2090\u2091\u2095\u1d62\u2c7c\u2096\u2097\u2098\u2099\u2092\u209a\u1d63\u209b\u209c\u1d64\u1d65\u2093\u1d66\u1d67\u1d68\u1d69\u1d6a]/,bn=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),vn={"́":{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"}},yn={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};class wn{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 mn(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 S("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,e=(this.consume(),this.gullet.pushToken(new bi("}")),this.gullet.pushTokens(e),this.parseExpression(!1));return this.expect("}"),this.nextToken=t,e}parseExpression(e,t){for(var i=[];;){"math"===this.mode&&this.consumeSpaces();var n=this.fetch();if(-1!==wn.endOfExpression.indexOf(n.text))break;if(t&&n.text===t)break;if(e&&on[n.text]&&on[n.text].infix)break;n=this.parseAtom(t);if(!n)break;"internal"!==n.type&&i.push(n)}return"text"===this.mode&&this.formLigatures(i),this.handleInfixNodes(i)}handleInfixNodes(t){let i,n=-1;for(let e=0;ee.left.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")).join("|")+")");for(;-1!==(i=t.search(s));){0t.startsWith(e.left));if(-1===(i=function(e,t,i){let n=i,s=0;for(var o=e.length;n-1===s.indexOf(" "+e+" "))&&l(r,o)}}};var o=function(e,t){if(!e)throw new Error("No element provided to render");var i={};for(const e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);i.delimiters=i.delimiters||[{left:"$$",right:"$$",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}],i.ignoredTags=i.ignoredTags||["script","noscript","style","textarea","pre","code","option"],i.ignoredClasses=i.ignoredClasses||[],i.errorCallback=i.errorCallback||console.error,i.macros=i.macros||{},l(e,i)}}return e.default}()}),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("katex")):"function"==typeof define&&define.amd?define(["katex"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).markedKatex=t(e.katex)}(this,function(n){"use strict";const s=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1(?=[\s?!\.,:?!。,:]|$)/,i=/^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;function t(t,i){return e=>n.renderToString(e.text,{...t,displayMode:e.displayMode})+(i?"\n":"")}return function(e={}){return{extensions:[{name:"inlineKatex",level:"inline",start(e){let t,i=e;for(;i;){if(-1===(t=i.indexOf("$")))return;if((0===t||" "===i.charAt(t-1))&&i.substring(t).match(s))return t;i=i.substring(t+1).replace(/^\$+/,"")}},tokenizer(e,t){e=e.match(s);if(e)return{type:"inlineKatex",raw:e[0],text:e[2].trim(),displayMode:2===e[1].length}},renderer:t(e,!1)},{name:"blockKatex",level:"block",tokenizer(e,t){e=e.match(i);if(e)return{type:"blockKatex",raw:e[0],text:e[2].trim(),displayMode:2===e[1].length}},renderer:t(e,!0)}]}}}),!function(){function e(e){return e}function t(i){return function(e){var t=l("img",["image-output"]);return t.src="data:image/"+i+";base64,"+h(e).replace(/\n/g,""),t}}function i(){var t=this,e=d.display_priority.filter(function(e){return(t.raw.data||t.raw)[e]})[0];return e&&d.display[e]?d.display[e](t.raw[e]||t.raw.data[e]):l("div",["empty-output"])}function n(){var e=l("pre",["pyerr"]),t=this.raw.traceback.join("\n");return e.innerHTML=d.highlighter(d.ansi(u(t)),e),e}var s,o,r,a=this,c=void 0!==a.window,l=(o=(c?a:(s=new(require("jsdom").JSDOM)).window).document,function(e,t){e=o.createElement(e);return e.className=(t||[]).map(function(e){return d.prefix+e}).join(" "),e}),u=function(e){return e.replace(//g,">")},h=function(e){return e.join?e.map(h).join(""):e},d={prefix:"nb-",markdown:(r=a.marked||"function"==typeof require&&require("marked"))&&r.parse||e,ansi:(r=a.ansi_up||"function"==typeof require&&require("ansi_up"))&&r.ansi_to_html||e,sanitizer:(r=a.DOMPurify||"function"==typeof require&&require("dompurify"),(c?r&&r.sanitize:r(s.window).sanitize)||e),highlighter:e,VERSION:"0.7.0",Input:function(e,t){this.raw=e,this.cell=t}},g=(d.Input.prototype.render=function(){var e,t,i,n;return this.raw.length?(e=l("div",["input"]),"number"==typeof(n=this.cell).number&&e.setAttribute("data-prompt-number",this.cell.number),t=l("pre"),i=l("code"),n=n.worksheet.notebook.metadata,n=this.cell.raw.language||n.language||n.kernelspec&&n.kernelspec.language||n.language_info&&n.language_info.name,i.setAttribute("data-language",n),i.className="lang-"+n,i.innerHTML=d.highlighter(u(h(this.raw)),t,i,n),t.appendChild(i),e.appendChild(t),this.el=e):l("div")},d.display={},d.display.text=function(e){var t=l("pre",["text-output"]);return t.innerHTML=d.highlighter(d.ansi(h(e)),t),t},d.display["text/plain"]=d.display.text,d.display.html=function(e){var t=l("div",["html-output"]);return t.innerHTML=d.sanitizer(h(e)),t},d.display["text/html"]=d.display.html,d.display.marked=function(e){return d.display.html(d.markdown(h(e)))},d.display["text/markdown"]=d.display.marked,d.display.svg=function(e){var t=l("div",["svg-output"]);return t.innerHTML=h(e),t},d.display["text/svg+xml"]=d.display.svg,d.display["image/svg+xml"]=d.display.svg,d.display.latex=function(e){var t=l("div",["latex-output"]);return t.innerHTML=h(e),t},d.display["text/latex"]=d.display.latex,d.display.javascript=function(e){var t=l("script");return t.innerHTML=h(e),t},d.display["application/javascript"]=d.display.javascript,d.display.png=t("png"),d.display["image/png"]=d.display.png,d.display.jpeg=t("jpeg"),d.display["image/jpeg"]=d.display.jpeg,d.display_priority=["png","image/png","jpeg","image/jpeg","svg","image/svg+xml","text/svg+xml","html","text/html","text/markdown","latex","text/latex","javascript","application/javascript","text","text/plain"],d.Output=function(e,t){this.raw=e,this.cell=t,this.type=e.output_type},d.Output.prototype.renderers={display_data:i,execute_result:i,pyout:i,pyerr:n,error:n,stream:function(){var e=l("pre",[this.raw.stream||this.raw.name]),t=h(this.raw.text);return e.innerHTML=d.highlighter(d.ansi(u(t)),e),e}},d.Output.prototype.render=function(){var e=l("div",["output"]),t=("number"==typeof this.cell.number&&e.setAttribute("data-prompt-number",this.cell.number),this.renderers[this.type].call(this));return e.appendChild(t),this.el=e},d.coalesceStreams=function(e){var t,i;return e.length?(t=e[0],i=[t],e.slice(1).forEach(function(e){"stream"===e.raw.output_type&&"stream"===t.raw.output_type&&e.raw.stream===t.raw.stream&&e.raw.name===t.raw.name?t.raw.text=t.raw.text.concat(e.raw.text):(i.push(e),t=e)}),i):e},[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\(",right:"\\)",display:!(d.Cell=function(e,t){var i=this;i.raw=e,i.worksheet=t,i.type=e.cell_type,"code"===i.type&&(i.number=-1")))):e.innerHTML=d.sanitizer(d.markdown(t)),e},heading:function(){var e=l("h"+this.raw.level,["cell","heading-cell"]);return e.innerHTML=d.sanitizer(h(this.raw.source)),e},raw:function(){var e=l("div",["cell","raw-cell"]);return e.innerHTML=u(h(this.raw.source)),e},code:function(){var t=l("div",["cell","code-cell"]);t.appendChild(this.input.render()),this.outputs.forEach(function(e){t.appendChild(e.render())});return t}},d.Cell.prototype.render=function(){var e=this.renderers[this.type].call(this);return this.el=e},d.Worksheet=function(e,t){var i=this;this.raw=e,this.notebook=t,this.cells=e.cells.map(function(e){return new d.Cell(e,i)}),this.render=function(){var t=l("div",["worksheet"]);return i.cells.forEach(function(e){t.appendChild(e.render())}),this.el=t}},d.Notebook=function(e,t){var i=this,t=(this.raw=e,this.config=t,this.metadata=e.metadata||{}),t=(this.title=t.title||t.name,e.worksheets||[{cells:e.cells}]);this.worksheets=t.map(function(e){return new d.Worksheet(e,i)}),this.sheet=this.worksheets[0]},d.Notebook.prototype.render=function(){var t=l("div",["notebook"]);return this.worksheets.forEach(function(e){t.appendChild(e.render())}),this.el=t},d.parse=function(e,t){return new d.Notebook(e,t)},"function"==typeof define&&define.amd&&define(function(){return d}),"undefined"!=typeof exports?(exports="undefined"!=typeof module&&module.exports?module.exports=d:exports).nb=d:a.nb=d}.call(this),function(){var e={},n={rules:{},define:function(t,e){this.rules[t]=e,this["is"+t.substring(0,1).toUpperCase()+t.substring(1)]=function(e){return this.rules[t].exec(e)}}};function s(){}function o(e){this.stream=e,this.tokenStack=[]}function r(e,t){if(this.type=e,this.children=[],t)for(var i=0,n=t.length;i";return void 0!==this.value?e+=" "+this.value:this.children&&(e+="\n"+this.children.map(function(e,t){return"#"+t+" "+e.toString()}).join("\n").split("\n").map(function(e){return" "+e}).join("\n")),e}};var d={types:{},define:function(i,n){var e="create"+(this.types[i]=i).substring(0,1).toUpperCase()+i.substring(1),s="function"==typeof n;this[e]=function(e,t){e=new r(i,e);return s&&n(e,t||{}),e}}};function a(e){this.sequences=e.split(/\r?\n/),this.totalLines=this.sequences.length,this.lineNumber=0}function c(){this.inlineParser=new t}function t(){this.preEmphasis=" \t\\('\"",this.postEmphasis="- \t.,:!?;'\"\\)",this.borderForbidden=" \t\r\n,\"'",this.bodyRegexp="[\\s\\S]*?",this.markers="*/_=~+",this.emphasisPattern=this.buildEmphasisPattern(),this.linkPattern=/\[\[([^\]]*)\](?:\[([^\]]*)\])?\]/g}function i(){}function l(e,t){this.initialize(e,t),this.result=this.convert()}return d.define("text",function(e,t){e.value=t.value}),d.define("header",function(e,t){e.level=t.level}),d.define("orderedList"),d.define("unorderedList"),d.define("definitionList"),d.define("listElement"),d.define("paragraph"),d.define("preformatted"),d.define("table"),d.define("tableRow"),d.define("tableCell"),d.define("horizontalRule"),d.define("directive"),d.define("inlineContainer"),d.define("bold"),d.define("italic"),d.define("underline"),d.define("code"),d.define("verbatim"),d.define("dashed"),d.define("link",function(e,t){e.src=t.src}),void 0!==e&&(e.Node=d),a.prototype.peekNextLine=function(){return this.hasNext()?this.sequences[this.lineNumber]:null},a.prototype.getNextLine=function(){return this.hasNext()?this.sequences[this.lineNumber++]:null},a.prototype.hasNext=function(){return this.lineNumbere)){if(0<(c=o.level-i))for(var r,a=0;a]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’])/i,linkURL:function(e){var t=this;return e.replace(this.urlPattern,function(e){return e.indexOf("://")<0&&(e="http://"+e),t.makeLink(e)})},makeLink:function(e){throw"Implement makeLink"},makeSubscripts:function(e){return"{}"===this.documentOptions["^"]?e.replace(/\b([^_ \t]*)_{([^}]*)}/g,this.makeSubscript):this.documentOptions["^"]?e.replace(/\b([^_ \t]*)_([^_]*)\b/g,this.makeSubscript):e},makeSubscript:function(e,t,i){throw"Implement makeSubscript"},imageExtensionPattern:new RegExp("("+["bmp","png","jpeg","jpg","gif","tiff","tif","xbm","xpm","pbm","pgm","ppm"].join("|")+")$","i")},void 0!==e&&(e.Converter=i),l.prototype={__proto__:i.prototype,convert:function(){var e=this.orgDocument.title?this.convertNode(this.orgDocument.title):this.untitled,t=this.tag("h1",e),i=this.convertNodes(this.orgDocument.nodes,!0),n=this.computeToc(this.documentOptions.toc),s=this.tocToHTML(n);return{title:e,titleHTML:t,contentHTML:i,tocHTML:s,toc:n,toString:function(){return t+s+"\n"+i}}},tocToHTML:function(e){function a(e){for(var t="",i=0;i":[">",null],'"':[""",null],"'":["'",null],"->":["➔",function(e,t){return this.exportOptions.translateSymbolArrow&&!t}]},replaceRegexp:null,escapeSpecialChars:function(i,n){this.replaceRegexp||(this.replaceRegexp=new RegExp(Object.keys(this.replaceMap).join("|"),"g"));var s=this.replaceMap,o=this;return i.replace(this.replaceRegexp,function(e){var t;if(s[e])return"function"!=typeof(t=s[e][1])||t.call(o,i,n)?s[e][0]:e;throw"escapeSpecialChars: Invalid match"})},postProcess:function(e,t,i){return t=this.exportOptions.exportFromLineNumber&&"number"==typeof e.fromLineNumber?this.inlineTag("div",t,{"data-line-number":e.fromLineNumber}):t},makeLink:function(e){return''+decodeURIComponent(e)+""},makeSubscript:function(e,t,i){return''+t+''+i+""},attributesObjectToString:function(e){var t,i="";for(t in e)e.hasOwnProperty(t)&&(i+=" "+t+'="'+e[t]+'"');return i},inlineTag:function(e,t,i,n){var s="<"+e;return n&&(s+=" "+n),s+=this.attributesObjectToString(i=i||{}),null===t?s+"/>":s+">"+t+""},tag:function(e,t,i,n){return this.inlineTag(e,t,i,n)+"\n"}},void 0!==e&&(e.ConverterHTML=l),e}());function humanFileSize(e,t=!1,i=1){var n=t?1e3:1024;if(e/=8,Math.abs(e)=n&&o/g,"%3E")}return e}!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)}("undefined"!=typeof window?window:this,function(x,I){"use strict";function v(e){return"function"==typeof e&&"number"!=typeof e.nodeType}function m(e){return null!=e&&e===e.window}var e=[],k=x.document,N=Object.getPrototypeOf,a=e.slice,P=e.concat,F=e.push,z=e.indexOf,B={},H=B.toString,q=B.hasOwnProperty,W=q.toString,V=W.call(Object),f={},U={type:!0,src:!0,nonce:!0,noModule:!0};function G(e,t,i){var n,s,o=(i=i||k).createElement("script");if(o.text=e,t)for(n in U)(s=t[n]||t.getAttribute&&t.getAttribute(n))&&o.setAttribute(n,s);i.head.appendChild(o).parentNode.removeChild(o)}function p(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?B[H.call(e)]||"object":typeof e}var A=function(e,t){return new A.fn.init(e,t)},K=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function Y(e){var t=!!e&&"length"in e&&e.length,i=p(e);return!v(e)&&!m(e)&&("array"===i||0===t||"number"==typeof t&&0>10|55296,1023&n|56320)}function N(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}function P(){x()}var e,d,w,o,F,g,z,B,$,c,l,x,k,i,A,p,n,s,m,S="sizzle"+ +new Date,f=I.document,_=0,H=0,q=R(),W=R(),V=R(),b=R(),U=function(e,t){return e===t&&(l=!0),0},G={}.hasOwnProperty,t=[],K=t.pop,Y=t.push,C=t.push,X=t.slice,v=function(e,t){for(var i=0,n=e.length;i+~]|"+r+")"+r+"*"),ne=new RegExp(r+"|>"),se=new RegExp(Z),oe=new RegExp("^"+a+"$"),T={ID:new RegExp("^#("+a+")"),CLASS:new RegExp("^\\.("+a+")"),TAG:new RegExp("^("+a+"|[*])"),ATTR:new RegExp("^"+J),PSEUDO:new RegExp("^"+Z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+Q+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},re=/HTML$/i,ae=/^(?:input|select|textarea|button)$/i,ce=/^h\d$/i,u=/^[^{]+\{\s*\[native \w/,le=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ue=/[+~]/,j=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),he=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,de=ve(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{C.apply(t=X.call(f.childNodes),f.childNodes),t[f.childNodes.length].nodeType}catch(e){C={apply:t.length?function(e,t){Y.apply(e,X.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function E(e,t,i,n){var s,o,r,a,c,l,u=t&&t.ownerDocument,h=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return i;if(!n&&((t?t.ownerDocument||t:f)!==k&&x(t),t=t||k,A)){if(11!==h&&(a=le.exec(e)))if(s=a[1]){if(9===h){if(!(l=t.getElementById(s)))return i;if(l.id===s)return i.push(l),i}else if(u&&(l=u.getElementById(s))&&m(t,l)&&l.id===s)return i.push(l),i}else{if(a[2])return C.apply(i,t.getElementsByTagName(e)),i;if((s=a[3])&&d.getElementsByClassName&&t.getElementsByClassName)return C.apply(i,t.getElementsByClassName(s)),i}if(d.qsa&&!b[e+" "]&&(!p||!p.test(e))&&(1!==h||"object"!==t.nodeName.toLowerCase())){if(l=e,u=t,1===h&&ne.test(e)){for((r=t.getAttribute("id"))?r=r.replace(he,N):t.setAttribute("id",r=S),o=(c=g(e)).length;o--;)c[o]="#"+r+" "+D(c[o]);l=c.join(","),u=ue.test(e)&&fe(t.parentNode)||t}try{return C.apply(i,u.querySelectorAll(l)),i}catch(t){b(e,!0)}finally{r===S&&t.removeAttribute("id")}}}return B(e.replace(y,"$1"),t,i,n)}function R(){var n=[];return function e(t,i){return n.push(t+" ")>w.cacheLength&&delete e[n.shift()],e[t+" "]=i}}function M(e){return e[S]=!0,e}function L(e){var t=k.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function ge(e,t){for(var i=e.split("|"),n=i.length;n--;)w.attrHandle[i[n]]=t}function pe(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function me(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&de(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function O(r){return M(function(o){return o=+o,M(function(e,t){for(var i,n=r([],e.length,o),s=n.length;s--;)e[i=n[s]]&&(e[i]=!(t[i]=e[i]))})})}function fe(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in d=E.support={},F=E.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!re.test(t||e&&e.nodeName||"HTML")},x=E.setDocument=function(e){var e=e?e.ownerDocument||e:f;return e!==k&&9===e.nodeType&&e.documentElement&&(i=(k=e).documentElement,A=!F(k),f!==k&&(e=k.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",P,!1):e.attachEvent&&e.attachEvent("onunload",P)),d.attributes=L(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=L(function(e){return e.appendChild(k.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=u.test(k.getElementsByClassName),d.getById=L(function(e){return i.appendChild(e).id=S,!k.getElementsByName||!k.getElementsByName(S).length}),d.getById?(w.filter.ID=function(e){var t=e.replace(j,h);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&A)return(t=t.getElementById(e))?[t]:[]}):(w.filter.ID=function(e){var t=e.replace(j,h);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&A){var i,n,s,o=t.getElementById(e);if(o){if((i=o.getAttributeNode("id"))&&i.value===e)return[o];for(s=t.getElementsByName(e),n=0;o=s[n++];)if((i=o.getAttributeNode("id"))&&i.value===e)return[o]}return[]}}),w.find.TAG=d.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],s=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;i=o[s++];)1===i.nodeType&&n.push(i);return n},w.find.CLASS=d.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&A)return t.getElementsByClassName(e)},n=[],p=[],(d.qsa=u.test(k.querySelectorAll))&&(L(function(e){i.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&p.push("[*^$]="+r+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||p.push("\\["+r+"*(?:value|"+Q+")"),e.querySelectorAll("[id~="+S+"-]").length||p.push("~="),e.querySelectorAll(":checked").length||p.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||p.push(".#.+[+~]")}),L(function(e){e.innerHTML="";var t=k.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&p.push("name"+r+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&p.push(":enabled",":disabled"),i.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),p.push(",.*:")})),(d.matchesSelector=u.test(s=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector||i.msMatchesSelector))&&L(function(e){d.disconnectedMatch=s.call(e,"*"),s.call(e,"[s!='']:x"),n.push("!=",Z)}),p=p.length&&new RegExp(p.join("|")),n=n.length&&new RegExp(n.join("|")),e=u.test(i.compareDocumentPosition),m=e||u.test(i.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(i.contains?i.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},U=e?function(e,t){var i;return e===t?(l=!0,0):!e.compareDocumentPosition-!t.compareDocumentPosition||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===i?e===k||e.ownerDocument===f&&m(f,e)?-1:t===k||t.ownerDocument===f&&m(f,t)?1:c?v(c,e)-v(c,t):0:4&i?-1:1)}:function(e,t){if(e===t)return l=!0,0;var i,n=0,s=e.parentNode,o=t.parentNode,r=[e],a=[t];if(!s||!o)return e===k?-1:t===k?1:s?-1:o?1:c?v(c,e)-v(c,t):0;if(s===o)return pe(e,t);for(i=e;i=i.parentNode;)r.unshift(i);for(i=t;i=i.parentNode;)a.unshift(i);for(;r[n]===a[n];)n++;return n?pe(r[n],a[n]):r[n]===f?-1:a[n]===f?1:0}),k},E.matches=function(e,t){return E(e,null,null,t)},E.matchesSelector=function(e,t){if((e.ownerDocument||e)!==k&&x(e),d.matchesSelector&&A&&!b[t+" "]&&(!n||!n.test(t))&&(!p||!p.test(t)))try{var i=s.call(e,t);if(i||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){b(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(j,h),e[3]=(e[3]||e[4]||e[5]||"").replace(j,h),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||E.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&E.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return T.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&se.test(i)&&(t=(t=g(i,!0))&&i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(j,h).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=q[e+" "];return t||(t=new RegExp("(^|"+r+")"+e+"("+r+"|$)"))&&q(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(e){e=E.attr(e,t);return null==e?"!="===i:!i||(e+="","="===i?e===n:"!="===i?e!==n:"^="===i?n&&0===e.indexOf(n):"*="===i?n&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Z(e,i,n){return v(i)?A.grep(e,function(e,t){return!!i.call(e,t,e)!==n}):i.nodeType?A.grep(e,function(e){return e===i!==n}):"string"!=typeof i?A.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/,ie=((A.fn.init=function(e,t,i){if(e){if(i=i||ee,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==i.ready?i.ready(e):e(A):A.makeArray(e,this);if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:te.exec(e))||!n[1]&&t)return(!t||t.jquery?t||i:this.constructor(t)).find(e);if(n[1]){if(t=t instanceof A?t[0]:t,A.merge(this,A.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:k,!0)),J.test(n[1])&&A.isPlainObject(t))for(var n in t)v(this[n])?this[n](t[n]):this.attr(n,t[n])}else(i=k.getElementById(n[2]))&&(this[0]=i,this.length=1)}return this}).prototype=A.fn,ee=A(k),/^(?:parents|prev(?:Until|All))/),ne={children:!0,contents:!0,next:!0,prev:!0};function se(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}A.fn.extend({has:function(e){var t=A(e,this),i=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,Ae=/^$|^module$|\/(?:java|ecma)script/i,C={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function T(e,t){var i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&c(e,t)?A.merge([e],i):i}function Se(e,t){for(var i=0,n=e.length;ix",f.noCloneChecked=!!M.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,je=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function i(){return!0}function j(){return!1}function Re(e,t){return e===function(){try{return k.activeElement}catch(e){}}()==("focus"===t)}function Me(e,t,i,n,s,o){var r,a;if("object"==typeof t){for(a in"string"!=typeof i&&(n=n||i,i=void 0),t)Me(e,a,i,n,t[a],o);return e}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=j;else if(!s)return e;return 1===o&&(r=s,(s=function(e){return A().off(e),r.apply(this,arguments)}).guid=r.guid||(r.guid=A.guid++)),e.each(function(){A.event.add(this,t,s,n,i)})}function Le(e,s,o){o?(b.set(e,s,!1),A.event.add(e,s,{namespace:!1,handler:function(e){var t,i,n=b.get(this,s);if(1&e.isTrigger&&this[s]){if(n.length)(A.event.special[s]||{}).delegateType&&e.stopPropagation();else if(n=a.call(arguments),b.set(this,s,n),t=o(this,s),this[s](),n!==(i=b.get(this,s))||t?b.set(this,s,!1):i={},n!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else n.length&&(b.set(this,s,{value:A.event.trigger(A.extend(n[0],A.Event.prototype),n.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===b.get(e,s)&&A.event.add(e,s,i)}A.event={global:{},add:function(t,e,i,n,s){var o,r,a,c,l,u,h,d,g,p=b.get(t);if(p)for(i.handler&&(i=(o=i).handler,s=o.selector),s&&A.find.matchesSelector(w,s),i.guid||(i.guid=A.guid++),a=(a=p.events)||(p.events={}),r=(r=p.handle)||(p.handle=function(e){return void 0!==A&&A.event.triggered!==e.type?A.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(S)||[""]).length;c--;)h=g=(d=Ee.exec(e[c])||[])[1],d=(d[2]||"").split(".").sort(),h&&(l=A.event.special[h]||{},h=(s?l.delegateType:l.bindType)||h,l=A.event.special[h]||{},g=A.extend({type:h,origType:g,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&A.expr.match.needsContext.test(s),namespace:d.join(".")},o),(u=a[h])||((u=a[h]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(t,n,d,r))||t.addEventListener&&t.addEventListener(h,r),l.add&&(l.add.call(t,g),g.handler.guid||(g.handler.guid=i.guid)),s?u.splice(u.delegateCount++,0,g):u.push(g),A.event.global[h]=!0)},remove:function(e,t,i,n,s){var o,r,a,c,l,u,h,d,g,p,m,f=b.hasData(e)&&b.get(e);if(f&&(c=f.events)){for(l=(t=(t||"").match(S)||[""]).length;l--;)if(g=m=(a=Ee.exec(t[l])||[])[1],p=(a[2]||"").split(".").sort(),g){for(h=A.event.special[g]||{},d=c[g=(n?h.delegateType:h.bindType)||g]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=d.length;o--;)u=d[o],!s&&m!==u.origType||i&&i.guid!==u.guid||a&&!a.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(d.splice(o,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(e,u));r&&!d.length&&(h.teardown&&!1!==h.teardown.call(e,p,f.handle)||A.removeEvent(e,g,f.handle),delete c[g])}else for(g in c)A.event.remove(e,g+t[l],i,n,!0);A.isEmptyObject(c)&&b.remove(e,"handle events")}},dispatch:function(e){var t,i,n,s,o,r=A.event.fix(e),a=new Array(arguments.length),e=(b.get(this,"events")||{})[r.type]||[],c=A.event.special[r.type]||{};for(a[0]=r,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,De=/\s*$/g;function Pe(e,t){return c(e,"table")&&c(11!==t.nodeType?t:t.firstChild,"tr")&&A(e).children("tbody")[0]||e}function Fe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ze(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Be(e,t){var i,n,s,o,r,a;if(1===t.nodeType){if(b.hasData(e)&&(o=b.access(e),r=b.set(t,o),a=o.events))for(s in delete r.handle,r.events={},a)for(i=0,n=a[s].length;i")},clone:function(e,t,i){var n,s,o,r,a,c,l,u=e.cloneNode(!0),h=$(e);if(!(f.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||A.isXMLDoc(e)))for(r=T(u),n=0,s=(o=T(e)).length;n").attr(i.scriptAttrs||{}).prop({charset:i.scriptCharset,src:i.url}).on("load error",s=function(e){n.remove(),s=null,e&&t("error"===e.type?404:200,e.type)}),k.head.appendChild(n[0])},abort:function(){s&&s()}}});var Xt=[],Qt=/(=)\?(?=&|$)|\?\?/,Jt=(A.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||A.expando+"_"+jt++;return this[e]=!0,e}}),A.ajaxPrefilter("json jsonp",function(e,t,i){var n,s,o,r=!1!==e.jsonp&&(Qt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Qt.test(e.data)&&"data");if(r||"jsonp"===e.dataTypes[0])return n=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,r?e[r]=e[r].replace(Qt,"$1"+n):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+n),e.converters["script json"]=function(){return o||A.error(n+" was not called"),o[0]},e.dataTypes[0]="json",s=x[n],x[n]=function(){o=arguments},i.always(function(){void 0===s?A(x).removeProp(n):x[n]=s,e[n]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(n)),o&&v(s)&&s(o[0]),o=s=void 0}),"script"}),f.createHTMLDocument=((e=k.implementation.createHTMLDocument("").body).innerHTML="
",2===e.childNodes.length),A.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(f.createHTMLDocument?((n=(t=k.implementation.createHTMLDocument("")).createElement("base")).href=k.location.href,t.head.appendChild(n)):t=k),n=!i&&[],(i=J.exec(e))?[t.createElement(i[1])]:(i=Ce([e],t,n),n&&n.length&&A(n).remove(),A.merge([],i.childNodes)));var n},A.fn.load=function(e,t,i){var n,s,o,r=this,a=e.indexOf(" ");return-1").append(A.parseHTML(e)).find(n):e)}).always(i&&function(e,t){r.each(function(){i.apply(this,o||[e.responseText,t,e])})}),this},A.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){A.fn[t]=function(e){return this.on(t,e)}}),A.expr.pseudos.animated=function(t){return A.grep(A.timers,function(e){return t===e.elem}).length},A.offset={setOffset:function(e,t,i){var n,s,o,r,a=A.css(e,"position"),c=A(e),l={};"static"===a&&(e.style.position="relative"),o=c.offset(),n=A.css(e,"top"),r=A.css(e,"left"),a=("absolute"===a||"fixed"===a)&&-1<(n+r).indexOf("auto")?(s=(a=c.position()).top,a.left):(s=parseFloat(n)||0,parseFloat(r)||0),null!=(t=v(t)?t.call(e,i,A.extend({},o)):t).top&&(l.top=t.top-o.top+s),null!=t.left&&(l.left=t.left-o.left+a),"using"in t?t.using.call(e,l):c.css(l)}},A.fn.extend({offset:function(t){var e,i;return arguments.length?void 0===t?this:this.each(function(e){A.offset.setOffset(this,t,e)}):(i=this[0])?i.getClientRects().length?(e=i.getBoundingClientRect(),i=i.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,n=this[0],s={top:0,left:0};if("fixed"===A.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),i=n.ownerDocument,e=n.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===A.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((s=A(e).offset()).top+=A.css(e,"borderTopWidth",!0),s.left+=A.css(e,"borderLeftWidth",!0))}return{top:t.top-s.top-A.css(n,"marginTop",!0),left:t.left-s.left-A.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===A.css(e,"position");)e=e.offsetParent;return e||w})}}),A.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,s){var o="pageYOffset"===s;A.fn[t]=function(e){return h(this,function(e,t,i){var n;if(m(e)?n=e:9===e.nodeType&&(n=e.defaultView),void 0===i)return n?n[s]:e[t];n?n.scrollTo(o?n.pageXOffset:i,o?i:n.pageYOffset):e[t]=i},t,e,arguments.length)}}),A.each(["top","left"],function(e,i){A.cssHooks[i]=Ze(f.pixelPosition,function(e,t){if(t)return t=Je(e,i),Xe.test(t)?A(e).position()[i]+"px":t})}),A.each({Height:"height",Width:"width"},function(r,a){A.each({padding:"inner"+r,content:a,"":"outer"+r},function(n,o){A.fn[o]=function(e,t){var i=arguments.length&&(n||"boolean"!=typeof e),s=n||(!0===e||!0===t?"margin":"border");return h(this,function(e,t,i){var n;return m(e)?0===o.indexOf("outer")?e["inner"+r]:e.document.documentElement["client"+r]:9===e.nodeType?(n=e.documentElement,Math.max(e.body["scroll"+r],n["scroll"+r],e.body["offset"+r],n["offset"+r],n["client"+r])):void 0===i?A.css(e,t,s):A.style(e,t,i,s)},a,i?e:void 0,i)}})}),A.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,i){A.fn[i]=function(e,t){return 0=i.clientWidth&&e>=i.clientHeight})).length?s:o)[0].key+((t=e.split("-")[1])?"-"+t:""))}function x(e,t,i,n){n=3c[e]&&!n.escapeWithReference&&(i=W(l[t],c[e]-("right"===e?l.width:l.height))),R({},t,i)}};return t.forEach(function(e){var t=-1===["left","top"].indexOf(e)?"secondary":"primary";l=O({},l,u[t](e))}),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,i=t.popper,t=t.reference,n=e.placement.split("-")[0],s=M,n=-1!==["top","bottom"].indexOf(n),o=n?"right":"bottom",r=n?"left":"top",n=n?"width":"height";return i[o]s(t[o])&&(e.offsets.popper[r]=s(t[o])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){if(B(e.instance.modifiers,"arrow","keepTogether")){t=t.element;if("string"==typeof t){if(!(t=e.instance.popper.querySelector(t)))return e}else if(!e.instance.popper.contains(t))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],n=e.offsets,s=n.popper,n=n.reference,i=-1!==["left","right"].indexOf(i),o=i?"height":"width",r=i?"Top":"Left",a=r.toLowerCase(),c=i?"left":"top",i=i?"bottom":"right",l=k(t)[o],i=(n[i]-ls[i]&&(e.offsets.popper[a]+=n[a]+l-s[i]),e.offsets.popper=b(e.offsets.popper),n[a]+n[o]/2-l/2),n=h(e.instance.popper),u=parseFloat(n["margin"+r],10),n=parseFloat(n["border"+r+"Width"],10),r=i-e.offsets.popper[a]-u-n,r=L(W(s[o]-l,r),0);e.arrowElement=t,e.offsets.arrow=(R(i={},a,V(r)),R(i,c,""),i)}return e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(l,u){if(!(t(l.instance.modifiers,"inner")||l.flipped&&l.placement===l.originalPlacement)){var h=$(l.instance.popper,l.instance.reference,u.padding,u.boundariesElement,l.positionFixed),d=l.placement.split("-")[0],g=A(d),p=l.placement.split("-")[1]||"",m=[];switch(u.behavior){case J:m=[d,g];break;case Z:m=H(d);break;case ee:m=H(d,!0);break;default:m=u.behavior}m.forEach(function(e,t){if(d!==e||m.length===t+1)return l;d=l.placement.split("-")[0],g=A(d);var e=l.offsets.popper,i=l.offsets.reference,n=M,i="left"===d&&n(e.right)>n(i.left)||"right"===d&&n(e.left)n(i.top)||"bottom"===d&&n(e.top)n(h.right),r=n(e.top)n(h.bottom),n="left"===d&&s||"right"===d&&o||"top"===d&&r||"bottom"===d&&e,a=-1!==["top","bottom"].indexOf(d),c=!!u.flipVariations&&(a&&"start"===p&&s||a&&"end"===p&&o||!a&&"start"===p&&r||!a&&"end"===p&&e),o=!!u.flipVariationsByContent&&(a&&"start"===p&&o||a&&"end"===p&&s||!a&&"start"===p&&e||!a&&"end"===p&&r),s=c||o;(i||n||s)&&(l.flipped=!0,(i||n)&&(d=m[t+1]),s&&(p="end"===(e=p)?"start":"start"===e?"end":e),l.placement=d+(p?"-"+p:""),l.offsets.popper=O({},l.offsets.popper,S(l.instance.popper,l.offsets.reference,l.placement)),l=C(l.instance.modifiers,l,"flip"))})}return l},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,i=t.split("-")[0],n=e.offsets,s=n.popper,n=n.reference,o=-1!==["left","right"].indexOf(i),r=-1===["top","left"].indexOf(i);return s[o?"left":"top"]=n[i]-(r?s[o?"width":"height"]:0),e.placement=A(t),e.offsets.popper=b(s),e}},hide:{order:800,enabled:!0,fn:function(e){if(B(e.instance.modifiers,"hide","preventOverflow")){var t=e.offsets.reference,i=_(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomi.right||t.top>i.bottom||t.rightthis._items.length-1||e<0||(this._isSliding?u(this._element).one(p.SLID,function(){return t.to(e)}):i===e?(this.pause(),this.cycle()):this._slide(idocument.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},i._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},i._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},Ve="show",Ue={HIDE:"hide"+M,HIDDEN:"hidden"+M,SHOW:"show"+M,SHOWN:"shown"+M,INSERTED:"inserted"+M,CLICK:"click"+M,FOCUSIN:"focusin"+M,FOCUSOUT:"focusout"+M,MOUSEENTER:"mouseenter"+M,MOUSELEAVE:"mouseleave"+M},Ge="fade",Ke="show",Ye="hover",L=((a=Xe.prototype).enable=function(){this._isEnabled=!0},a.disable=function(){this._isEnabled=!1},a.toggleEnabled=function(){this._isEnabled=!this._isEnabled},a.toggle=function(e){var t,i;this._isEnabled&&(e?(t=this.constructor.DATA_KEY,(i=u(e.currentTarget).data(t))||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),u(e.currentTarget).data(t,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)):u(this.getTipElement()).hasClass(Ke)?this._leave(null,this):this._enter(null,this))},a.dispose=function(){clearTimeout(this._timeout),u.removeData(this.element,this.constructor.DATA_KEY),u(this.element).off(this.constructor.EVENT_KEY),u(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&u(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},a.show=function(){var t=this;if("none"===u(this.element).css("display"))throw new Error("Please use show on visible elements");var e,i,n=u.Event(this.constructor.Event.SHOW);this.isWithContent()&&this._isEnabled&&(u(this.element).trigger(n),i=h.findShadowRoot(this.element),i=u.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element),!n.isDefaultPrevented())&&i&&(n=this.getTipElement(),i=h.getUID(this.constructor.NAME),n.setAttribute("id",i),this.element.setAttribute("aria-describedby",i),this.setContent(),this.config.animation&&u(n).addClass(Ge),i="function"==typeof this.config.placement?this.config.placement.call(this,n,this.element):this.config.placement,i=this._getAttachment(i),this.addAttachmentClass(i),e=this._getContainer(),u(n).data(this.constructor.DATA_KEY,this),u.contains(this.element.ownerDocument.documentElement,this.tip)||u(n).appendTo(e),u(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new s(this.element,n,this._getPopperConfig(i)),u(n).addClass(Ke),"ontouchstart"in document.documentElement&&u(document.body).children().on("mouseover",null,u.noop),e=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,u(t.element).trigger(t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)},u(this.tip).hasClass(Ge)?(i=h.getTransitionDurationFromElement(this.tip),u(this.tip).one(h.TRANSITION_END,e).emulateTransitionEnd(i)):e())},a.hide=function(e){function t(){i._hoverState!==Ve&&n.parentNode&&n.parentNode.removeChild(n),i._cleanTipClass(),i.element.removeAttribute("aria-describedby"),u(i.element).trigger(i.constructor.Event.HIDDEN),null!==i._popper&&i._popper.destroy(),e&&e()}var i=this,n=this.getTipElement(),s=u.Event(this.constructor.Event.HIDE);u(this.element).trigger(s),s.isDefaultPrevented()||(u(n).removeClass(Ke),"ontouchstart"in document.documentElement&&u(document.body).children().off("mouseover",null,u.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger[Ye]=!1,u(this.tip).hasClass(Ge)?(s=h.getTransitionDurationFromElement(n),u(n).one(h.TRANSITION_END,t).emulateTransitionEnd(s)):t(),this._hoverState="")},a.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},a.isWithContent=function(){return Boolean(this.getTitle())},a.addAttachmentClass=function(e){u(this.getTipElement()).addClass(Fe+"-"+e)},a.getTipElement=function(){return this.tip=this.tip||u(this.config.template)[0],this.tip},a.setContent=function(){var e=this.getTipElement();this.setElementContent(u(e.querySelectorAll(".tooltip-inner")),this.getTitle()),u(e).removeClass("fade show")},a.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=Ie(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?u(t).parent().is(e)||e.empty().append(t):e.text(u(t).text())},a.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},a._getPopperConfig=function(e){var t=this;return o({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},{},this.config.popperConfig)},a._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=o({},e.offsets,{},t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},a._getContainer=function(){return!1===this.config.container?document.body:h.isElement(this.config.container)?u(this.config.container):u(document).find(this.config.container)},a._getAttachment=function(e){return qe[e.toUpperCase()]},a._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(e){var t;"click"===e?u(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(e){return i.toggle(e)}):"manual"!==e&&(t=e===Ye?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,e=e===Ye?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT,u(i.element).on(t,i.config.selector,function(e){return i._enter(e)}).on(e,i.config.selector,function(e){return i._leave(e)}))}),this._hideModalHandler=function(){i.element&&i.hide()},u(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=o({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},a._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==e||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},a._enter=function(e,t){var i=this.constructor.DATA_KEY;(t=t||u(e.currentTarget).data(i))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),u(e.currentTarget).data(i,t)),e&&(t._activeTrigger["focusin"===e.type?"focus":Ye]=!0),u(t.getTipElement()).hasClass(Ke)||t._hoverState===Ve?t._hoverState=Ve:(clearTimeout(t._timeout),t._hoverState=Ve,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===Ve&&t.show()},t.config.delay.show):t.show())},a._leave=function(e,t){var i=this.constructor.DATA_KEY;(t=t||u(e.currentTarget).data(i))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),u(e.currentTarget).data(i,t)),e&&(t._activeTrigger["focusout"===e.type?"focus":Ye]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState="out",t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){"out"===t._hoverState&&t.hide()},t.config.delay.hide):t.hide())},a._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},a._getConfig=function(e){var t=u(this.element).data();return Object.keys(t).forEach(function(e){-1!==Be.indexOf(e)&&delete t[e]}),"number"==typeof(e=o({},this.constructor.Default,{},t,{},"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),h.typeCheckConfig(R,e,this.constructor.DefaultType),e.sanitize&&(e.template=Ie(e.template,e.whiteList,e.sanitizeFn)),e},a._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},a._cleanTipClass=function(){var e=u(this.getTipElement()),t=e.attr("class").match(ze);null!==t&&t.length&&e.removeClass(t.join(""))},a._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},a._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(u(e).removeClass(Ge),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},Xe._jQueryInterface=function(i){return this.each(function(){var e=u(this).data(Ne),t="object"==typeof i&&i;if((e||!/dispose|hide/.test(i))&&(e||(e=new Xe(this,t),u(this).data(Ne,e)),"string"==typeof i)){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i]()}})},t(Xe,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return We}},{key:"NAME",get:function(){return R}},{key:"DATA_KEY",get:function(){return Ne}},{key:"Event",get:function(){return Ue}},{key:"EVENT_KEY",get:function(){return M}},{key:"DefaultType",get:function(){return He}}]),Xe);function Xe(e,t){if(void 0===s)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}u.fn[R]=L._jQueryInterface,u.fn[R].Constructor=L,u.fn[R].noConflict=function(){return u.fn[R]=Pe,L._jQueryInterface};var Qe,Je="popover",Ze="bs.popover",O="."+Ze,et=u.fn[Je],tt="bs-popover",it=new RegExp("(^|\\s)"+tt+"\\S+","g"),nt=o({},L.Default,{placement:"right",trigger:"click",content:"",template:''}),st=o({},L.DefaultType,{content:"(string|element|function)"}),ot={HIDE:"hide"+O,HIDDEN:"hidden"+O,SHOW:"show"+O,SHOWN:"shown"+O,INSERTED:"inserted"+O,CLICK:"click"+O,FOCUSIN:"focusin"+O,FOCUSOUT:"focusout"+O,MOUSEENTER:"mouseenter"+O,MOUSELEAVE:"mouseleave"+O},rt=(l=Qe=L,(i=at).prototype=Object.create(l.prototype),(i.prototype.constructor=i).__proto__=l,(i=at.prototype).isWithContent=function(){return this.getTitle()||this._getContent()},i.addAttachmentClass=function(e){u(this.getTipElement()).addClass(tt+"-"+e)},i.getTipElement=function(){return this.tip=this.tip||u(this.config.template)[0],this.tip},i.setContent=function(){var e=u(this.getTipElement()),t=(this.setElementContent(e.find(".popover-header"),this.getTitle()),this._getContent());"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(".popover-body"),t),e.removeClass("fade show")},i._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},i._cleanTipClass=function(){var e=u(this.getTipElement()),t=e.attr("class").match(it);null!==t&&0=this._offsets[n]&&(void 0===this._offsets[n+1]||e li > .active",St=((i=_t.prototype).show=function(){var e,t,i,n,s,o,r=this;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&u(this._element).hasClass(kt)||u(this._element).hasClass("disabled")||(t=u(this._element).closest(".nav, .list-group")[0],i=h.getSelectorFromElement(this._element),t&&(s="UL"===t.nodeName||"OL"===t.nodeName?At:".active",n=(n=u.makeArray(u(t).find(s)))[n.length-1]),s=u.Event(xt.HIDE,{relatedTarget:this._element}),o=u.Event(xt.SHOW,{relatedTarget:n}),n&&u(n).trigger(s),u(this._element).trigger(o),o.isDefaultPrevented())||s.isDefaultPrevented()||(i&&(e=document.querySelector(i)),this._activate(this._element,t),o=function(){var e=u.Event(xt.HIDDEN,{relatedTarget:r._element}),t=u.Event(xt.SHOWN,{relatedTarget:n});u(n).trigger(e),u(r._element).trigger(t)},e?this._activate(e,e.parentNode,o):o())},i.dispose=function(){u.removeData(this._element,wt),this._element=null},i._activate=function(e,t,i){function n(){return s._transitionComplete(e,o,i)}var s=this,o=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?u(t).children(".active"):u(t).find(At))[0],t=i&&o&&u(o).hasClass("fade");o&&t?(t=h.getTransitionDurationFromElement(o),u(o).removeClass("show").one(h.TRANSITION_END,n).emulateTransitionEnd(t)):n()},i._transitionComplete=function(e,t,i){var n;t&&(u(t).removeClass(kt),(n=u(t.parentNode).find("> .dropdown-menu .active")[0])&&u(n).removeClass(kt),"tab"===t.getAttribute("role"))&&t.setAttribute("aria-selected",!1),u(e).addClass(kt),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),h.reflow(e),e.classList.contains("fade")&&e.classList.add("show"),e.parentNode&&u(e.parentNode).hasClass("dropdown-menu")&&((n=u(e).closest(".dropdown")[0])&&(t=[].slice.call(n.querySelectorAll(".dropdown-toggle")),u(t).addClass(kt)),e.setAttribute("aria-expanded",!0)),i&&i()},_t._jQueryInterface=function(i){return this.each(function(){var e=u(this),t=e.data(wt);if(t||(t=new _t(this),e.data(wt,t)),"string"==typeof i){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i]()}})},t(_t,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),_t);function _t(e){this._element=e}u(document).on(xt.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(e){e.preventDefault(),St._jQueryInterface.call(u(this),"show")}),u.fn.tab=St._jQueryInterface,u.fn.tab.Constructor=St,u.fn.tab.noConflict=function(){return u.fn.tab=$t,St._jQueryInterface};var Ct="toast",Tt="bs.toast",a="."+Tt,jt=u.fn[Ct],Et={CLICK_DISMISS:"click.dismiss"+a,HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a},Rt="show",Mt={animation:"boolean",autohide:"boolean",delay:"number"},Lt={animation:!0,autohide:!0,delay:500},Ot=((l=Dt.prototype).show=function(){var e,t=this,i=u.Event(Et.SHOW);u(this._element).trigger(i),i.isDefaultPrevented()||(this._config.animation&&this._element.classList.add("fade"),i=function(){t._element.classList.remove("showing"),t._element.classList.add(Rt),u(t._element).trigger(Et.SHOWN),t._config.autohide&&(t._timeout=setTimeout(function(){t.hide()},t._config.delay))},this._element.classList.remove("hide"),h.reflow(this._element),this._element.classList.add("showing"),this._config.animation?(e=h.getTransitionDurationFromElement(this._element),u(this._element).one(h.TRANSITION_END,i).emulateTransitionEnd(e)):i())},l.hide=function(){var e;this._element.classList.contains(Rt)&&(e=u.Event(Et.HIDE),u(this._element).trigger(e),e.isDefaultPrevented()||this._close())},l.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Rt)&&this._element.classList.remove(Rt),u(this._element).off(Et.CLICK_DISMISS),u.removeData(this._element,Tt),this._element=null,this._config=null},l._getConfig=function(e){return e=o({},Lt,{},u(this._element).data(),{},"object"==typeof e&&e?e:{}),h.typeCheckConfig(Ct,e,this.constructor.DefaultType),e},l._setListeners=function(){var e=this;u(this._element).on(Et.CLICK_DISMISS,'[data-dismiss="toast"]',function(){return e.hide()})},l._close=function(){function e(){i._element.classList.add("hide"),u(i._element).trigger(Et.HIDDEN)}var t,i=this;this._element.classList.remove(Rt),this._config.animation?(t=h.getTransitionDurationFromElement(this._element),u(this._element).one(h.TRANSITION_END,e).emulateTransitionEnd(t)):e()},Dt._jQueryInterface=function(i){return this.each(function(){var e=u(this),t=e.data(Tt);if(t||(t=new Dt(this,"object"==typeof i&&i),e.data(Tt,t)),"string"==typeof i){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i](this)}})},t(Dt,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"DefaultType",get:function(){return Mt}},{key:"Default",get:function(){return Lt}}]),Dt);function Dt(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}u.fn[Ct]=Ot._jQueryInterface,u.fn[Ct].Constructor=Ot,u.fn[Ct].noConflict=function(){return u.fn[Ct]=jt,Ot._jQueryInterface},e.Alert=n,e.Button=G,e.Carousel=f,e.Collapse=he,e.Dropdown=_,e.Modal=Re,e.Popover=rt,e.Scrollspy=vt,e.Tab=St,e.Toast=Ot,e.Tooltip=L,e.Util=h,Object.defineProperty(e,"__esModule",{value:!0})}),function(){function c(e,i){var t,n;return i=r(e,i),(e=s.modules[i])||("function"==typeof(e=s.payloads[i])&&(t={id:i,uri:"",exports:n={},packaged:!0},n=e(function(e,t){return o(i,e,t)},n,t)||t.exports,s.modules[i]=n,delete s.payloads[i]),e=s.modules[i]=n||e),e}var e,t,i=function(){return this}(),s=(i||"undefined"==typeof window||(i=window),function(e,t,i){"string"!=typeof e?s.original?s.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace()):(2==arguments.length&&(i=t),s.modules[e]||(s.payloads[e]=i,s.modules[e]=null))}),o=(s.modules={},s.payloads={},function(e,t,i){if("string"==typeof t){var n=c(e,t);if(null!=n)return i&&i(),n}else if("[object Array]"===Object.prototype.toString.call(t)){for(var s=[],o=0,r=t.length;o ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t=e.end,e=e.start,t=this.compare(t.row,t.column);return 1==t?1==(t=this.compare(e.row,e.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(e.row,e.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){e=this.compareRange(e);return-1==e||0==e||1==e},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)&&!this.isStart(e,t)},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?ethis.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row!==e||t<=this.end.column?0:1:tthis.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){var i,n;return this.end.row>t?i={row:t+1,column:0}:this.end.rowt?n={row:t+1,column:0}:this.start.row>=1)&&(e+=e);return i};var n=/^\s\s*/,s=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(n,"")},t.stringTrimRight=function(e){return e.replace(s,"")},t.copyObject=function(e){var t,i={};for(t in e)i[t]=e[t];return i},t.copyArray=function(e){for(var t=[],i=0,n=e.length;iDate.now()-50)||(n=!1)},cancel:function(){n=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(e,t,i){"use strict";var P=e("../lib/event"),F=e("../lib/useragent"),z=e("../lib/dom"),B=e("../lib/lang"),H=e("../clipboard"),q=F.isChrome<18,W=F.isIE,V=63e+1?t.length:n,n+=s.length+1,s=s+"\n"+t):X&&0=f.length&&e.value===f&&f&&e.selectionEnd!==v}),$=null,x=(this.setInputHandler=function(e){$=e},!(this.getInputHandler=function(){return $})),k=function(e,t){if(x=x&&!1,g)return w(),e&&h.onPaste(e),g=!1,"";for(var i=d.selectionStart,n=d.selectionEnd,s=b,o=f.length-v,r=e,a=e.length-i,c=e.length-n,l=0;0b-1&&f[f.length-l]==e[e.length-l];)l++,o--;a-=l-1,c-=l-1;var u=r.length-l+1;return u<0&&(s=-u,u=0),r=r.slice(0,u),t||r||a||s||o||c?(u=!(p=!0),F.isAndroid&&". "==r&&(r=" ",u=!0),r&&!s&&!o&&!a&&!c||m?h.onTextInput(r):h.onTextInput(r,{extendLeft:s,extendRight:o,restoreStart:a,restoreEnd:c}),p=!1,f=e,b=i,v=n,y=c,u?"\n":r):""},A=function(e){if(r)return C();if(e&&e.inputType){if("historyUndo"==e.inputType)return h.execCommand("undo");if("historyRedo"==e.inputType)return h.execCommand("redo")}var e=d.value,t=k(e,!0);(500this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var e=e.getDocumentPosition(),t=this.editor,i=t.session.getBracketRange(e);i?(i.isEmpty()&&(i.start.column--,i.end.column++),this.setState("select")):(i=t.selection.getWordRange(e.row,e.column),this.setState("selectByWords")),this.$clickSelection=i,this.select()},this.onTripleClick=function(e){var e=e.getDocumentPosition(),t=this.editor,i=(this.setState("selectByLines"),t.getSelectionRange());i.isMultiLine()&&i.contains(e.row,e.column)?(this.$clickSelection=t.selection.getLineRange(i.start.row),this.$clickSelection.end=t.selection.getLineRange(i.end.row).end):this.$clickSelection=t.selection.getLineRange(e.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){var t,i,n,s,o,r,a;if(!e.getAccelKey())return e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0),t=this.editor,this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0}),i=this.$lastScroll,s=(a=(n=e.domEvent.timeStamp)-i.t)?e.wheelX/a:i.vx,o=a?e.wheelY/a:i.vy,a<550&&(s=(s+i.vx)/2,o=(o+i.vy)/2),a=!1,1<=(r=Math.abs(s/o))&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(a=!0),(a=r<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)?!0:a)?i.allowed=n:n-i.allowed<550&&(Math.abs(s)<=1.5*Math.abs(i.vx)&&Math.abs(o)<=1.5*Math.abs(i.vy)?(a=!0,i.allowed=n):i.allowed=0),i.t=n,i.vx=s,i.vy=o,a?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}}).call(n.prototype),t.DefaultHandlers=n}),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],function(e,t,i){"use strict";function n(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}e("./lib/oop");var s=e("./lib/dom");(function(){this.$init=function(){return this.$element=s.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){this.getElement().textContent=e},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){s.addCssClass(this.getElement(),e)},this.show=function(e,t,i){null!=e&&this.setText(e),null!=t&&null!=i&&this.setPosition(t,i),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(n.prototype),t.Tooltip=n}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],function(e,t,i){"use strict";function h(e){r.call(this,e)}var d=e("../lib/dom"),n=e("../lib/oop"),g=e("../lib/event"),r=e("../tooltip").Tooltip;n.inherits(h,r),function(){this.setPosition=function(e,t){var i=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,s=this.getWidth(),o=this.getHeight();i<(e+=15)+s&&(e-=e+s-i),n<(t+=15)+o&&(t-=20+o),r.prototype.setPosition.call(this,e,t)}}.call(h.prototype),t.GutterHandler=function(n){function s(){i=i&&clearTimeout(i),a&&(u.hide(),a=null,c._signal("hideGutterTooltip",u),c.off("mousewheel",s))}function o(e){u.setPosition(e.x,e.y)}var i,r,a,c=n.editor,l=c.renderer.$gutterLayer,u=new h(c.container);n.editor.setDefaultHandler("guttermousedown",function(e){if(c.isFocused()&&0==e.getButton()){var t=l.getRegion(e);if("foldWidgets"!=t){var t=e.getDocumentPosition().row,i=c.session.selection;if(e.getShiftKey())i.selectTo(t,0);else{if(2==e.domEvent.detail)return c.selectAll(),e.preventDefault();n.$clickSelection=c.selection.getLineRange(t)}return n.setState("selectByLines"),n.captureMouse(e),e.preventDefault()}}}),n.editor.setDefaultHandler("guttermousemove",function(e){var t=e.domEvent.target||e.domEvent.srcElement;if(d.hasCssClass(t,"ace_fold-widget"))return s();a&&n.$tooltipFollowsMouse&&o(e),r=e,i=i||setTimeout(function(){i=null,(r&&!n.isMousePressed?function(){var e=r.getDocumentPosition().row,t=l.$annotations[e];if(!t)return s();if(e==c.session.getLength()){var e=c.renderer.pixelToScreenCoordinates(0,r.y).row,i=r.$pos;if(e>c.session.documentToScreenRow(i.row,i.column))return s()}a!=t&&(a=t.text.join("
"),u.setHtml(a),u.show(),c._signal("showGutterTooltip",u),c.on("mousewheel",s),n.$tooltipFollowsMouse?o(r):(e=r.domEvent.target.getBoundingClientRect(),(i=u.getElement().style).left=e.right+"px",i.top=e.bottom+"px"))}:s)()},50)}),g.addListener(c.renderer.$gutter,"mouseout",function(e){r=null,a&&(i=i||setTimeout(function(){i=null,s()},50))},c),c.on("changeSession",s)}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t,i){"use strict";var n=e("../lib/event"),s=e("../lib/useragent"),e=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};!function(){this.stopPropagation=function(){n.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){n.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){var e,t;return null===this.$inSelection&&((e=this.editor.getSelectionRange()).isEmpty()?this.$inSelection=!1:(t=this.getDocumentPosition(),this.$inSelection=e.contains(t.row,t.column))),this.$inSelection},this.getButton=function(){return n.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=s.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}.call(e.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,t,i){"use strict";function n(t){function e(){var e,t,i,n,s,o,r,a,c=d;d=v.renderer.screenToTextCoordinates(l,u),s=d,o=c,r=Date.now(),a=!o||s.row!=o.row,o=!o||s.column!=o.column,!f||a||o?(v.moveCursorToPosition(s),f=r,b={x:l,y:u}):5this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,t=(e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging"),_.isWin?"default":"move");e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;_.isIE&&"dragReady"==this.state&&3i&&(p=-1),d=e.clientX=r,g=e.clientY=o,x=k=0,new A(e,u));if(b=r.getDocumentPosition(),s-p<500&&1==t.length&&!w)$++,e.preventDefault(),e.button=0,f=null,clearTimeout(f),u.selection.moveToPosition(b),(o=2<=$?u.selection.getLineRange(b.row):u.session.getBracketRange(b))&&!o.isEmpty()?u.selection.setRange(o):u.selection.selectWord(),y="wait";else{$=0;var r=u.selection.cursor,t=u.selection.isEmpty()?r:u.selection.anchor,o=u.renderer.$cursorLayer.getPixelPosition(r,!0),r=u.renderer.$cursorLayer.getPixelPosition(t,!0),t=u.renderer.scroller.getBoundingClientRect(),a=u.renderer.layerConfig.offset,c=u.renderer.scrollLeft,l=function(e,t){return(e/=n)*e+(t=t/i-.75)*t};if(e.clientX=t.length||(s=i[n-1])!=A&&s!=S||(c=t[n+1])!=A&&c!=S?_:(c=b?S:c)==s?c:_;case M:return(s=0=e){for(n=c+1;n=e;)n++;for(s=c,o=n-1;s>8;return 0==i?191j&&t[a]t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?a.fromPoints(t,t):this.isBackwards()?a.fromPoints(t,e):a.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,t){var i=t?e.end:e.start,t=t?e.start:e.end;this.$setSelection(i.row,i.column,t.row,t.column)},this.$setSelection=function(e,t,i,n){var s,o;!this.$silent&&(s=this.$isEmpty,o=this.inMultiSelectMode,this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(i,n),this.$isEmpty=!a.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),this.$cursorChanged||this.$anchorChanged||s!=this.$isEmpty||o)&&this._emit("changeSelection")},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection(function(){this.moveCursorTo(e,t)})},this.selectToPosition=function(e){this.$moveSelection(function(){this.moveCursorToPosition(e)})},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){var i;return void 0===t&&(e=(i=e||this.lead).row,t=i.column),this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),e=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(e)},this.getLineRange=function(e,t){var e="number"==typeof e?e:this.lead.row,i=this.session.getFoldLine(e),i=i?(e=i.start.row,i.end.row):e;return!0===t?new a(e,0,i,this.session.getLine(i).length):new a(e,0,i+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,i){var n=e.column,s=e.column+t;return i<0&&(n=e.column-t,s=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(n,s).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();(e=this.session.getFoldAt(t.row,t.column,-1))?this.moveCursorTo(e.start.row,e.start.column):0===t.column?0=i.length?(this.moveCursorTo(e,i.length),this.moveCursorRight(),el&&(d=e.substring(l,f-m.length),h.type==g?h.value+=d:(h.type&&c.push(h),h={type:g,value:d}));for(var b=0;bv){for(u>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});l=this.$rowTokens.length;){if(this.$row+=1,e=e||this.$session.getLength(),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,i=e[t].start;if(void 0===i)for(i=0;0e.length&&(w=e.length)}),c==1/0&&(c=w,a=r=!1),u&&c%l!=0&&(c=Math.floor(c/l)*l),t(a?h:g)},this.toggleBlockComment=function(e,t,i,n){var s=this.blockComment;if(s){!s.start&&s[0]&&(s=s[0]);var o,r,a=(d=new m(t,n.row,n.column)).getCurrentToken(),c=(t.selection,t.selection.toOrientedRange());if(a&&/comment/.test(a.type)){for(;a&&/comment/.test(a.type);){if(-1!=(g=a.value.indexOf(s.start))){var l=d.getCurrentTokenRow(),u=d.getCurrentTokenColumn()+g,h=new f(l,u,l,u+s.start.length);break}a=d.stepBackward()}for(var d,g,a=(d=new m(t,n.row,n.column)).getCurrentToken();a&&/comment/.test(a.type);){if(-1!=(g=a.value.indexOf(s.end))){var l=d.getCurrentTokenRow(),u=d.getCurrentTokenColumn()+g,p=new f(l,u,l,u+s.end.length);break}a=d.stepForward()}p&&t.remove(p),h&&(t.remove(h),o=h.start.row,r=-s.start.length)}else r=s.start.length,o=i.start.row,t.insert(i.end,s.end),t.insert(i.start,s.start);c.start.row==o&&(c.start.column+=r),c.end.row==o&&(c.end.column+=r),t.selection.fromOrientedRange(c)}},this.getNextLineIndent=function(e,t,i){return this.$getIndent(t)},this.checkOutdent=function(e,t,i){return!1},this.autoOutdent=function(e,t,i){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var n in this.$embeds=[],this.$modes={},e){var t,i,s;e[n]&&(i=(t=e[n]).prototype.$id,(s=r.$modes[i])||(r.$modes[i]=s=new t),r.$modes[n]||(r.$modes[n]=s),this.$embeds.push(n),this.$modes[n]=s)}for(var o=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],n=0;nthis.row||(e=e,t={row:this.row,column:this.column},i=this.$insertRight,n=((r="insert"==e.action)?1:-1)*(e.end.row-e.start.row),s=(r?1:-1)*(e.end.column-e.start.column),o=e.start,r=r?o:e.end,e=a(t,o,i)?{row:t.row,column:t.column}:a(r,t,!i)?{row:t.row+n,column:t.column+(t.row==r.row?s:0)}:{row:o.row,column:o.column},this.setPosition(e.row,e.column,!0))},this.setPosition=function(e,t,i){i=i?{row:e,column:t}:this.$clipPositionToDocument(e,t);this.row==i.row&&this.column==i.column||(e={row:this.row,column:this.column},this.row=i.row,this.column=i.column,this._signal("change",{old:e,value:i}))},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var i={};return e>=this.document.getLength()?(i.row=Math.max(0,this.document.getLength()-1),i.column=this.document.getLine(i.row).length):e<0?(i.row=0,i.column=0):(i.row=e,i.column=Math.min(this.document.getLine(i.row).length,Math.max(0,t))),t<0&&(i.column=0),i}}.call(e.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t,i){"use strict";function n(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)}var s=e("./lib/oop"),o=e("./apply_delta").applyDelta,r=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,c=e("./anchor").Anchor;(function(){s.implement(this,r),this.setValue=function(e){var t=this.getLength()-1;this.remove(new a(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new c(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){e=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=e?e[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t,i;return e.start.row===e.end.row?t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)]:((t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column),i=t.length-1,e.end.row-e.start.row==i&&(t[i]=t[i].substring(0,e.end.column))),t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var i=this.clippedPos(e.row,e.column),e=this.pos(e.row,e.column+t.length);return this.applyDelta({start:i,end:e,action:"insert",lines:[t]},!0),this.clonePos(e)},this.clippedPos=function(e,t){var i=this.getLength(),i=(void 0===e?e=i:e<0?e=0:i<=e&&(e=i-1,t=void 0),this.getLine(e));return null==t&&(t=i.length),{row:e,column:t=Math.min(Math.max(t,0),i.length)}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){var i=0,i=(e=Math.min(Math.max(e,0),this.getLength()))e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=t.tokens}}).call(n.prototype),t.BackgroundTokenizer=n}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,i){"use strict";function n(e,t,i){this.setRegexp(e),this.clazz=t,this.type=i||"text"}var l=e("./lib/lang"),u=(e("./lib/oop"),e("./range").Range);(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,i,n){if(this.regExp)for(var s=n.firstRow,o=n.lastRow,r=s;r<=o;r++){var a=this.cache[r];null==a&&(a=(a=(a=l.getMatchOffsets(i.getLine(r),this.regExp)).length>this.MAX_RANGES?a.slice(0,this.MAX_RANGES):a).map(function(e){return new u(r,e.offset,r,e.offset+e.length)}),this.cache[r]=a.length?a:"");for(var c=a.length;c--;)t.drawSingleLineMarker(e,a[c].toScreenRange(i),this.clazz,n)}}}).call(n.prototype),t.SearchHighlight=n}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,t,i){"use strict";function s(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];e=t[t.length-1];this.range=new n(t[0].start.row,t[0].start.column,e.end.row,e.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(e){e.setFoldLine(this)},this)}var n=e("../range").Range;(function(){this.shiftRow=function(t){this.start.row+=t,this.end.row+=t,this.folds.forEach(function(e){e.start.row+=t,e.end.row+=t})},this.addFold=function(e){if(e.sameRow){if(e.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort(function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)}),0=this.start.row&&e<=this.end.row},this.walk=function(e,t,i){var n,s,o=0,r=this.folds,a=!0;null==t&&(t=this.end.row,i=this.end.column);for(var c=0;ct||i[i.length-1].start.row=n);r++);if("insert"==e.action)for(var c=s-n,l=-t.column+i.column;rn)break;u.start.row==n&&u.start.column>=t.column&&(u.start.column==t.column&&this.$bias<=0||(u.start.column+=l,u.start.row+=c)),u.end.row==n&&u.end.column>=t.column&&(u.end.column==t.column&&this.$bias<0||(u.end.column==t.column&&0u.start.column&&u.end.column==o[r+1].start.column&&(u.end.column-=l),u.end.column+=l,u.end.row+=c))}else for(var u,c=n-s,l=t.column-i.column;rs)break;u.end.rowt.column)&&(u.end.column=t.column,u.end.row=t.row):(u.end.column+=l,u.end.row+=c):u.end.row>s&&(u.end.row+=c),u.start.rowt.column)&&(u.start.column=t.column,u.start.row=t.row):(u.start.column+=l,u.start.row+=c):u.start.row>s&&(u.start.row+=c)}if(0!=c&&r=e)return s;if(s.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var i=this.$foldData,n=0;for(-1==(n=t?i.indexOf(t):n)&&(n=0);n=e)return s}return null},this.getFoldedRowCount=function(e,t){for(var i=this.$foldData,n=t-e+1,s=0;sa)break}while(s&&r.test(s.type));s=n.stepBackward()}else s=n.getCurrentToken();return o.end.row=n.getCurrentTokenRow(),o.end.column=n.getCurrentTokenColumn()+s.value.length-2,o}},this.foldAll=function(e,t,i,n){null==i&&(i=1e5);var s=this.foldWidgets;if(s){t=t||this.getLength();for(var o,r=e=e||0;r=e&&(r=o.end.row,o.collapseChildren=i,this.addFold("...",o))}},this.foldToLevel=function(e){for(this.foldAll();0=e)break}n--}return{range:-1!==n&&o,firstRange:r}},this.onFoldWidgetClick=function(e,t){var i={children:(t=t.domEvent).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};this.$toggleFoldWidget(e,i)||(e=t.target||t.srcElement)&&/ace_fold-widget/.test(e.className)&&(e.className+=" ace_invalid")},this.$toggleFoldWidget=function(e,t){var i,n,s,o;if(this.getFoldWidget)return i=this.getFoldWidget(e),n=this.getLine(e),(n=this.getFoldAt(e,-1==(i="end"===i?-1:1)?0:n.length,i))?(t.children||t.all?this.removeFold(n):this.expandFold(n),n):(i=this.getFoldWidgetRange(e,!0))&&!i.isMultiLine()&&(n=this.getFoldAt(i.start.row,i.start.column,1))&&i.isEqual(n.range)?(this.removeFold(n),n):(t.siblings?((n=this.getParentFoldRangeData(e)).range&&(s=n.range.start.row+1,o=n.range.end.row),this.foldAll(s,o,t.all?1e4:0)):t.children?(o=i?i.end.row:this.getLength(),this.foldAll(e+1,o,t.all?1e4:0)):i&&(t.all&&(i.collapseChildren=1e4),this.addFold("...",i)),i)},this.toggleFoldWidget=function(e){var t,i=this.selection.getCursor().row;i=this.getRowFoldStart(i),!this.$toggleFoldWidget(i,{})&&(t=(t=this.getParentFoldRangeData(i,!0)).range||t.firstRange)&&(i=t.start.row,(i=this.getFoldAt(i,this.getLine(i).length,1))?this.removeFold(i):this.addFold("...",t))},this.updateFoldWidgets=function(e){var t=e.start.row,i=e.end.row-t;0==i?this.foldWidgets[t]=null:"remove"==e.action?this.foldWidgets.splice(t,1+i,null):((e=Array(1+i)).unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,e))},this.tokenizerUpdateFoldWidgets=function(e){e=e.data;e.first!=e.last&&this.foldWidgets.length>e.first&&this.foldWidgets.splice(e.first,this.foldWidgets.length)}}}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,t,i){"use strict";var h=e("../token_iterator").TokenIterator,a=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){return 0!=e.column&&""!=(t=t||this.getLine(e.row).charAt(e.column-1))&&(t=t.match(/([\(\[\{])|([\)\]\}])/))?t[1]?this.$findClosingBracket(t[1],e):this.$findOpeningBracket(t[2],e):null},this.getBracketRange=function(e){var t,i,n=this.getLine(e.row),s=!0,o=n.charAt(e.column-1),r=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(r||(o=n.charAt(e.column),e={row:e.row,column:e.column+1},r=o&&o.match(/([\(\[\{])|([\)\]\}])/),s=!1),!r)return null;if(r[1]){if(!(i=this.$findClosingBracket(r[1],e)))return null;t=a.fromPoints(e,i),s||(t.end.column++,t.start.column--),t.cursor=t.end}else{if(!(i=this.$findOpeningBracket(r[2],e)))return null;t=a.fromPoints(i,e),s||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e){var t=this.getLine(e.row),i=t.charAt(e.column-1),n=i&&i.match(/([\(\[\{])|([\)\]\}])/);return n||(i=t.charAt(e.column),e={row:e.row,column:e.column+1},n=i&&i.match(/([\(\[\{])|([\)\]\}])/)),n?(t=new a(e.row,e.column-1,e.row,e.column),(i=n[1]?this.$findClosingBracket(n[1],e):this.$findOpeningBracket(n[2],e))?[t,new a(i.row,i.column,i.row,i.column+1)]:[t]):null},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,i){var n=this.$brackets[e],s=1,o=new h(this,t.row,t.column),r=o.getCurrentToken();if(r=r||o.stepForward()){i=i||new RegExp("(\\.?"+r.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+");for(var a=t.column-o.getCurrentTokenColumn()-2,c=r.value;;){for(;0<=a;){var l=c.charAt(a);if(l==n){if(0==--s)return{row:o.getCurrentTokenRow(),column:a+o.getCurrentTokenColumn()}}else l==e&&(s+=1);--a}for(;(r=o.stepBackward())&&!i.test(r.type););if(null==r)break;a=(c=r.value).length-1}return null}},this.$findClosingBracket=function(e,t,i){var n=this.$brackets[e],s=1,o=new h(this,t.row,t.column),r=o.getCurrentToken();if(r=r||o.stepForward()){i=i||new RegExp("(\\.?"+r.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+");for(var a=t.column-o.getCurrentTokenColumn();;){for(var c=r.value,l=c.length;a>1,o=e[s];if(ot&&(t=e.screenWidth)}),this.lineWidgetWidth=t)},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),i=this.$rowLengthCache,n=0,s=0,o=this.$foldData[s],r=o?o.start.row:1/0,a=t.length,c=0;cn&&(n=i[c])}this.screenWidth=n}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var i=e.length-1;-1!=i;i--){var n=e[i];"insert"==n.action||"remove"==n.action?this.doc.revertDelta(n):n.folds&&this.addFolds(n.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var i=0;ie.end.column&&(t.start.column+=o),t.end.row==e.end.row)&&t.end.column>e.end.column&&(t.end.column+=o),s&&t.start.row>=e.end.row&&(t.start.row+=s,t.end.row+=s)),t.end=this.insert(t.start,r),a.length&&(n=e.start,i=t.start,s=i.row-n.row,o=i.column-n.column,this.addFolds(a.map(function(e){return(e=e.clone()).start.row==n.row&&(e.start.column+=o),e.end.row==n.row&&(e.end.column+=o),e.start.row+=s,e.end.row+=s,e}))),t},this.indentRows=function(e,t,i){i=i.replace(/\t/g,this.getTabString());for(var n=e;n<=t;n++)this.doc.insertInLine({row:n,column:0},i)},this.outdentRows=function(e){for(var t=e.collapseRows(),i=new h(0,0,0,0),n=this.getTabSize(),s=t.start.row;s<=t.end.row;++s){var o=this.getLine(s);i.start.row=s,i.end.row=s;for(var r=0;rthis.doc.getLength()-1)return 0;n=s-t}else{e=this.$clipRowToDocument(e);n=(t=this.$clipRowToDocument(t))-e+1}var s=new h(e,0,t,Number.MAX_VALUE),s=this.getFoldsInRange(s).map(function(e){return(e=e.clone()).start.row+=n,e.end.row+=n,e}),i=0==i?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+n,i),s.length&&this.addFolds(s),n},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){var i;return t=Math.max(0,t),t=e<0?e=0:(i=this.doc.getLength())<=e?this.doc.getLine(e=i-1).length:Math.min(this.doc.getLine(e).length,t),{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){e!=this.$useWrapMode&&(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e&&(e=this.getLength(),this.$wrapData=Array(e),this.$updateWrapData(0,e-1)),this._signal("changeWrapMode"))},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var i=this.$wrapLimitRange,t=(i.max<0&&(i={min:t,max:t}),this.$constrainWrapLimit(e,i.min,i.max));return t!=this.$wrapLimit&&1=s.row&&g.shiftRow(-a);r=o}else{var h=Array(a),d=(h.unshift(o,0),t?this.$wrapData:this.$rowLengthCache),l=(d.splice.apply(d,h),this.$foldData),u=0;for((g=this.getFoldLine(o))&&(0==(d=g.range.compareInside(n.row,n.column))?(g=g.split(n.row,n.column))&&(g.shiftRow(a),g.addRemoveChars(r,0,s.column-n.column)):-1==d&&(g.addRemoveChars(o,0,s.column-n.column),g.shiftRow(a)),u=l.indexOf(g)+1);u=o&&g.shiftRow(a)}else{var g,a=Math.abs(e.start.column-e.end.column);"remove"===i&&(c=this.getFoldsInRange(e),this.removeFolds(c),a=-a),(g=this.getFoldLine(o))&&g.addRemoveChars(o,n.column,a)}return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(o,r):this.$updateRowLengthCache(o,r),c},this.$updateRowLengthCache=function(e,t,i){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(e,t){var r,i,a=this.doc.getAllLines(),n=this.getTabSize(),s=this.$wrapData,o=this.$wrapLimit,c=e;for(t=Math.min(t,a.length-1);c<=t;)(i=this.getFoldLine(c,i))?(r=[],i.walk(function(e,t,i,n){var s;if(null!=e){(s=this.$getDisplayTokens(e,r.length))[0]=p;for(var o=1;o>2)),a-1);gu[d-1]):!d,this.getLength()-1),p=this.getNextFoldLine(r),m=p?p.start.row:1/0;c<=e&&!(ea[l-1]):!l,this.getNextFoldLine(r)),h=u?u.start.row:1/0;r=g[p];)n++,p++;d=d.substring(g[p-1]||0,d.length),c=0h||(s.push(r=new y(l,h,l+a-1,d)),2b&&s[u].end.row==i.end.row;)u--;for(s=s.slice(g,u+1),g=0,u=s.length;g=s.length)break;h.lastIndex=a+=1}if(n.index+r>t)break;o.push(n.index,r)}for(var c=o.length-1;0<=c;c-=2){var l=o[c-1];if(i(e,l,e,l+(r=o[c])))return!0}}:function(e,t,i){var n=u.getLine(e);for(h.lastIndex=t;s=h.exec(n);){var s,o=s[0].length;if(i(e,s=s.index,e,s+o))return!0;if(!o&&(h.lastIndex=s+=1,s>=n.length))return!1}},{forEach:a?function(e){var t=n.row;if(!r(t,n.column,e)){for(t--;s<=t;t--)if(r(t,Number.MAX_VALUE,e))return;if(0!=i.wrap)for(t=o,s=n.row;s<=t;t--)if(r(t,Number.MAX_VALUE,e))return}}:function(e){var t=n.row;if(!r(t,n.column,e)){for(t+=1;t<=o;t++)if(r(t,0,e))return;if(0!=i.wrap)for(t=s,o=n.row;t<=o;t++)if(r(t,0,e))return}}})}}).call(n.prototype),t.Search=n}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,i){"use strict";function n(e,t){this.platform=t||(o.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function s(e,t){n.call(this,e,t),this.$singleCommand=!1}var a=e("../lib/keys"),o=e("../lib/useragent"),c=a.KEY_MODS;s.prototype=n.prototype,function(){function r(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),(this.commands[e.name]=e).bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var i,n=e&&("string"==typeof e?e:e.name),s=(e=this.commands[n],t||delete this.commands[n],this.commandKeyBinding);for(i in s){var o,r=s[i];r==e?delete s[i]:Array.isArray(r)&&-1!=(o=r.indexOf(e))&&(r.splice(o,1),1==r.length)&&(s[i]=r[0])}},this.bindKey=function(e,n,s){if("object"==typeof e&&e&&(null==s&&(s=e.position),e=e[this.platform]),e)return"function"==typeof n?this.addCommand({exec:n,bindKey:e,name:n.name||e}):void e.split("|").forEach(function(e){var t="",i=(-1!=e.indexOf(" ")&&(e=(i=e.split(/\s+/)).pop(),i.forEach(function(e){e=this.parseKeys(e),e=c[e.hashId]+e.key;t+=(t?" ":"")+e,this._addCommandToBinding(t,"chainKeys")},this),t+=" "),this.parseKeys(e)),e=c[i.hashId]+i.key;this._addCommandToBinding(t+e,n,s)},this)},this._addCommandToBinding=function(e,t,i){var n=this.commandKeyBinding;if(t)if(!n[e]||this.$singleCommand)n[e]=t;else{Array.isArray(n[e])?-1!=(o=n[e].indexOf(t))&&n[e].splice(o,1):n[e]=[n[e]],"number"!=typeof i&&(i=r(t));for(var s=n[e],o=0;ot?t+1:t,e.selection.moveCursorTo(i.row,t))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:n(null,null),exec:function(e){var t=e.session.doc.getLength()-1,i=e.session.doc.getLine(t).length,n=e.selection.rangeList.ranges,s=[];n.length<1&&(n=[e.selection.getRange()]);for(var o=0;o=n.lastRow||i.end.row<=n.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==t&&this.renderer.animateScrolling(this.curOp.scrollTop)}e=this.selection.toJSON();this.curOp.selectionAfter=e,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(e),this.prevOp=this.curOp,this.curOp=null}}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){var t,i,n,s;this.$mergeUndoDeltas&&(t=this.prevOp,i=this.$mergeableCommands,n=t.command&&e.command.name==t.command.name,"insertstring"==e.command.name?(s=e.args,void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),n=n&&this.mergeNextCommand&&(!/\s/.test(s)||/\s/.test(t.args)),this.mergeNextCommand=!0):n=n&&-1!==i.indexOf(e.command.name),(n="always"!=this.$mergeUndoDeltas&&2e3"===n.value&&a--),n&&0<=a;);else{do{if(n=c,c=i.stepBackward(),n)if(-1!==n.type.indexOf("tag-name"))o===n.value&&("<"===c.value?a++:""===n.value){for(var l=0,u=c;u;){if(-1!==u.type.indexOf("tag-name")&&u.value===o){a--;break}if("<"===u.value)break;u=i.stepBackward(),l++}for(var h=0;ha.search(/\S|$/)&&(t=a.substr(o.column).search(/\S|$/),n.doc.removeInLine(o.row,o.column,o.column+t))),this.clearSelection(),o.column),t=n.getState(o.row),a=n.getLine(o.row),c=s.checkOutdent(t,a,e);n.insert(o,e),i&&i.selection&&(2==i.selection.length?this.selection.setSelectionRange(new f(o.row,r+i.selection[0],o.row,r+i.selection[1])):this.selection.setSelectionRange(new f(o.row+i.selection[0],i.selection[1],o.row+i.selection[2],i.selection[3]))),this.$enableAutoIndent&&(n.getDocument().isNewLine(e)&&(r=s.getNextLineIndent(t,a.slice(0,o.column),n.getTabString()),n.insert({row:o.row+1,column:0},r)),c)&&s.autoOutdent(t,n,o.row)},this.autoIndent=function(){for(var e,t,i,n,s,o=this.session,r=o.getMode(),a=(i=this.selection.isEmpty()?(t=0,o.doc.getLength()-1):(t=(e=this.getSelectionRange()).start.row,e.end.row),""),c="",l=o.getTabString(),u=t;u<=i;u++)0t.toLowerCase()?1:0});for(var s=new f(0,0,0,0),n=e.first;n<=e.last;n++){var o=t.getLine(n);s.start.row=n,s.end.row=n,s.end.column=o.length,t.replace(s,i[n-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),i=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,i,e)},this.getNumberAt=function(e,t){for(var i=/[\-]?[0-9]+(?:\.[0-9]+)?/g,n=(i.lastIndex=0,this.session.getLine(e));i.lastIndex=t)return{value:s[0],start:s.index,end:s.index+s[0].length}}return null},this.modifyNumber=function(e){var t,i,n,s=this.selection.getCursor().row,o=this.selection.getCursor().column,r=new f(s,o-1,s,o),r=this.session.getTextRange(r);!isNaN(parseFloat(r))&&isFinite(r)?(r=this.getNumberAt(s,o))&&(n=0<=r.value.indexOf(".")?r.start+r.value.indexOf(".")+1:r.end,t=r.start+r.value.length-n,i=parseFloat(r.value),i*=Math.pow(10,t),n!==r.end&&og+1)break;g=p.last}for(u--,a=this.session.$moveLines(d,g,t?0:e),t&&-1==e&&(h=u+1);h<=u;)r[h].moveBy(a,0),h++;c+=a=t?a:0}i.fromOrientedRange(i.ranges[0]),i.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(e)},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var i=this.renderer,n=this.renderer.layerConfig,s=e*Math.floor(n.height/n.lineHeight),e=(!0===t?this.selection.$moveSelection(function(){this.moveCursorBy(s,0)}):!1===t&&(this.selection.moveCursorBy(s,0),this.selection.clearSelection()),i.scrollTop);i.scrollBy(0,s*n.lineHeight),null!=t&&i.scrollCursorIntoView(null,.5),i.animateScrolling(e)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,i,n){this.renderer.scrollToLine(e,t,i,n)},this.centerSelection=function(){var e=this.getSelectionRange(),e={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(e,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var i=this.getCursorPosition(),n=new y(this.session,i.row,i.column),s=n.getCurrentToken(),o=s||n.stepForward();if(o){var r,a,c,l=!1,u={},h=i.column-o.start,d={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(o.value.match(/[{}()\[\]]/g)){for(;hwindow.innerHeight)&&null)&&(r.style.top=i+"px",r.style.left=e.left+"px",r.style.height=t.lineHeight+"px",r.scrollIntoView(o)),o=n=null)}),this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",t),this.renderer.off("afterRender",a),this.renderer.off("beforeRender",i))})},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,n.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},this.prompt=function(t,i,n){var s=this;v.loadModule("./ext/prompt",function(e){e.prompt(s,t,i,n)})}}.call(s.prototype),v.defineOptions(s.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?$.attach(this):$.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?$.attach(this):$.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||this.getValue());e&&this.renderer.placeholderNode?(this.renderer.off("afterRender",this.$updatePlaceholder),n.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null):e||this.renderer.placeholderNode?!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||""):(this.renderer.on("afterRender",this.$updatePlaceholder),n.addCssClass(this.container,"ace_hasPlaceholder"),(e=n.createElement("div")).className="ace_placeholder",e.textContent=this.$placeholder||"",this.renderer.placeholderNode=e,this.renderer.content.appendChild(this.renderer.placeholderNode))}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),{getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"·":""))+""},getWidth:function(e,t,i){return Math.max(t.toString().length,(i.lastRow+1).toString().length,2)*i.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}});t.Editor=s}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(e,t,i){"use strict";function s(e,t){for(var i=t;i--;){var n=e[i];if(n&&!n[0].ignore){for(;i"+e.end.row+":"+e.end.column}function r(e,t){var i="insert"==e.action,n="insert"==t.action;if(i&&n)if(0<=p(t.start,e.end))c(t,e,-1);else{if(!(p(t.start,e.start)<=0))return;c(e,t,1)}else if(i&&!n)if(0<=p(t.start,e.end))c(t,e,-1);else{if(!(p(t.end,e.start)<=0))return;c(e,t,-1)}else if(!i&&n)if(0<=p(t.start,e.start))c(t,e,1);else{if(!(p(t.start,e.start)<=0))return;c(e,t,1)}else if(!i&&!n)if(0<=p(t.start,e.start))c(t,e,1);else{if(!(p(t.end,e.start)<=0))return;c(e,t,-1)}return 1}function c(e,t,i){l(e.start,t.start,t.end,i),l(e.end,t.start,t.end,i)}function l(e,t,i,n){e.row==(1==n?t:i).row&&(e.column+=n*(i.column-t.column)),e.row+=n*(i.row-t.row)}function u(e,t){var i=e.lines,n=e.end,s=(e.end=a(t),e.end.row-e.start.row),o=i.splice(s,i.length),s=s?t.column:t.column-e.start.column;return i.push(o[0].substring(0,s)),o[0]=o[0].substr(s),{start:a(t),end:n,lines:o,action:e.action}}function h(e,t){var i;t={start:a((i=t).start),end:a(i.end),action:i.action,lines:i.lines.slice()};for(var n=e.length;n--;){for(var s=e[n],o=0;oa+1;)this.$lines.pop();break}(r=this.$lines.get(++a))?r.row=c:(r=this.$lines.createCell(c,e,this.session,l),this.$lines.push(r)),this.$renderCell(r,e,s,c),c++}this._signal("afterRender"),this.$updateGutterWidth(e)},this.$updateGutterWidth=function(e){var t=this.session,i=t.gutterRenderer||this.$renderer,n=t.$firstLineNumber,s=this.$lines.last()?this.$lines.last().text:"",n=((this.$fixedWidth||t.$useWrapMode)&&(s=t.getLength()+n-1),i?i.getWidth(t,s,e):s.toString().length*e.characterWidth),i=this.$padding||this.$computePadding();(n+=i.left+i.right)===this.gutterWidth||isNaN(n)||(this.gutterWidth=n,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",n))},this.$updateCursorRow=function(){var e;this.$highlightGutterLine&&(e=this.session.selection.getCursor(),this.$cursorRow!==e.row)&&(this.$cursorRow=e.row)},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var i=0;i=this.$cursorRow){if(n.row>this.$cursorRow){var s=this.session.getFoldLine(this.$cursorRow);if(!(0i.right-t.right?"foldWidgets":void 0}}).call(n.prototype),t.Gutter=n}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,t,i){"use strict";function n(e){this.element=s.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)}var g=e("../range").Range,s=e("../lib/dom");(function(){this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.elt=function(e,t){var i=-1!=this.i&&this.element.childNodes[this.i];i?this.i++:(i=document.createElement("div"),this.element.appendChild(i),this.i=-1),i.style.cssText=t,i.className=e},this.update=function(e){if(e){var t,i;for(i in this.config=e,this.i=0,this.markers){var n,s,o,r=this.markers[i];r.range?(o=r.range.clipRows(e.firstRow,e.lastRow)).isEmpty()||(o=o.toScreenRange(this.session),r.renderer?(n=this.$getTop(o.start.row,e),s=this.$padding+o.start.column*e.characterWidth,r.renderer(t,o,s,n,e)):"fullLine"==r.type?this.drawFullLineMarker(t,o,r.clazz,e):"screenLine"==r.type?this.drawScreenLineMarker(t,o,r.clazz,e):o.isMultiLine()?"text"==r.type?this.drawTextMarker(t,o,r.clazz,e):this.drawMultiLineMarker(t,o,r.clazz,e):this.drawSingleLineMarker(t,o,r.clazz+" ace_start ace_br15",e)):r.update(t,this,this.session,e)}if(-1!=this.i)for(;this.ie.lastRow)for(s=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);0t.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow))},this.$renderLinesFragment=function(e,t,i){for(var n=[],s=t,o=this.session.getNextFoldLine(s),r=o?o.start.row:1/0;r=o;)r=this.$renderToken(a,r,l,u.substring(0,o-n)),u=u.substring(o-n),n=o,a=this.$createLineElement(),e.appendChild(a),a.appendChild(this.dom.createTextNode(b.stringRepeat(" ",i.indent),this.element)),r=0,o=i[++s]||Number.MAX_VALUE;0!=u.length&&(n+=u.length,r=this.$renderToken(a,r,l,u))}}i[i.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(a,r,null,"",!0)},this.$renderSimpleLine=function(e,t){var i=0,n=t[0],s=n.value;(s=this.displayIndentGuides?this.renderIndentGuide(e,s):s)&&(i=this.$renderToken(e,i,n,s));for(var o=1;othis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,i,n,s);i=this.$renderToken(e,i,n,s)}},this.$renderOverflowMessage=function(e,t,i,n,s){i&&this.$renderToken(e,t,i,n.slice(0,this.MAX_LINE_LENGTH-t));i=this.dom.createElement("span");i.className="ace_inline_button ace_keyword ace_toggle_wrap",i.textContent=s?"":"",e.appendChild(i)},this.$renderLine=function(e,t,i){var n,s,o=e;(n=(i=i||0==i?i:this.session.getFoldLine(t))?this.$getFoldLineTokens(t,i):this.session.getTokens(t)).length?(s=this.session.getRowSplitData(t))&&s.length?(this.$renderWrappedLine(e,n,s),o=e.lastChild):(o=e,this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o)),this.$renderSimpleLine(o,n)):this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o)),this.showEOL&&o&&(i&&(t=i.end.row),(s=this.dom.createElement("span")).className="ace_invisible ace_invisible_eol",s.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,o.appendChild(s))},this.$getFoldLineTokens=function(e,t){var h=this.session,d=[],g=h.getTokens(e);return t.walk(function(e,t,i,n,s){if(null!=e)d.push({type:"fold",value:e});else if((g=s?h.getTokens(t):g).length){for(var o,r=g,a=n,c=i,l=0,u=0;u+r[l].value.lengthc-a&&(o=o.substring(0,c-a)),d.push({type:r[l].type,value:o}),u=a+o.length,l+=1);uc?d.push({type:r[l].type,value:o.substring(0,c-u)}):d.push(r[l]),u+=o.length,l+=1}},t.end.row,this.session.getLine(t.end.row).length),d},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(n.prototype),t.Text=n}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";function n(e){this.element=l.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),l.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}var l=e("../lib/dom");(function(){this.$updateOpacity=function(e){for(var t=this.cursors,i=t.length;i--;)l.setStyle(t[i].style,"opacity",e?"":"0")},this.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";setTimeout(function(){l.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){l.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,l.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var e=l.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){var e;if(1e.height+e.offset||a.top<0)&&1n;)this.removeCursor();var c=this.session.getOverwrite();this.$setOverwrite(c),this.$pixelPos=a,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&((this.overwrite=e)?l.addCssClass(this.element,"ace_overwrite-cursors"):l.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(n.prototype),t.Cursor=n}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,t,i){"use strict";function n(e){this.element=a.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=a.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,c.addListener(this.element,"scroll",this.onScroll.bind(this)),c.addListener(this.element,"mousedown",c.preventDefault)}function s(e,t){n.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=a.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0}function o(e,t){n.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"}var r=e("./lib/oop"),a=e("./lib/dom"),c=e("./lib/event"),l=e("./lib/event_emitter").EventEmitter;!function(){r.implement(this,l),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}.call(n.prototype),r.inherits(s,n),function(){this.classSuffix="-v",this.onScroll=function(){var e;this.skipEvent||(this.scrollTop=this.element.scrollTop,1!=this.coeff&&(e=this.element.clientHeight/this.scrollHeight,this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)),this._emit("scroll",{data:this.scrollTop})),this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){32768<(this.scrollHeight=e)?(this.coeff=32768/e,e=32768):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(s.prototype);r.inherits(o,n),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(o.prototype),t.ScrollBar=s,t.ScrollBarV=s,t.ScrollBarH=o,t.VScrollBar=s,t.HScrollBar=o}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,t,i){"use strict";function n(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var i=this;this._flush=function(e){i.pending=!1;var t=i.changes;t&&(s.blockIdle(100),i.changes=0,i.onRender(t)),i.changes?i.$recursionLimit--<0||i.schedule():i.$recursionLimit=2}}var s=e("./lib/event");(function(){this.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(s.nextFrame(this._flush),this.pending=!0)},this.clear=function(e){var t=this.changes;return this.changes=0,t}}).call(n.prototype),t.RenderLoop=n}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(e,t,i){var n=e("../lib/oop"),s=e("../lib/dom"),o=e("../lib/lang"),r=e("../lib/event"),a=e("../lib/useragent"),c=e("../lib/event_emitter").EventEmitter,l="function"==typeof ResizeObserver,e=t.FontMetrics=function(e){this.el=s.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=s.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=s.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=o.stringRepeat("X",256),this.$characterSize={width:0,height:0},l?this.$addObserver():this.checkForSizeChanges()};!function(){n.implement(this,c),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",a.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(e){var t;!(e=void 0===e?this.$measureSizes():e)||this.$characterSize.width===e.width&&this.$characterSize.height===e.height||(this.$measureNode.style.fontWeight="bold",t=this.$measureSizes(),this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e}))},this.$addObserver=function(){var t=this;this.$observer=new window.ResizeObserver(function(e){t.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){var t;return this.$pollSizeChangesTimer||this.$observer?this.$pollSizeChangesTimer:(t=this).$pollSizeChangesTimer=r.onIdle(function e(){t.checkForSizeChanges(),r.onIdle(e,500)},500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(e){e={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/256};return 0===e.width||0===e.height?null:e},this.$measureCharWidth=function(e){return this.$main.textContent=o.stringRepeat(e,256),this.$main.getBoundingClientRect().width/256},this.getCharacterWidth=function(e){var t=this.charSizes[e];return t=void 0===t?this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width:t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function e(t){return t&&t.parentElement?(window.getComputedStyle(t).zoom||1)*e(t.parentElement):1},this.$initTransformMeasureNodes=function(){function e(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]}this.els=s.buildDom([e(0,0),e(200,0),e(0,200),e(200,200)],this.el)},this.transformCoordinates=function(e,t){function i(e,t,i){var n=e[1]*t[0]-e[0]*t[1];return[(-t[1]*i[0]+t[0]*i[1])/n,(+e[1]*i[0]-e[0]*i[1])/n]}function n(e,t){return[e[0]-t[0],e[1]-t[1]]}function s(e,t){return[e[0]+t[0],e[1]+t[1]]}function o(e,t){return[e*t[0],e*t[1]]}function r(e){e=e.getBoundingClientRect();return[e.left,e.top]}e=e&&o(1/this.$getZoom(this.el),e),this.els||this.$initTransformMeasureNodes();var a,c=r(this.els[0]),l=r(this.els[1]),u=r(this.els[2]),h=r(this.els[3]),h=i(n(h,l),n(h,u),n(s(l,u),s(h,c))),l=o(1+h[0],n(l,c)),u=o(1+h[1],n(u,c));return t?(a=h[0]*t[0]/200+h[1]*t[1]/200+1,t=s(o(t[0],l),o(t[1],u)),s(o(1/a/200,t),c)):(a=n(e,c),t=i(n(l,o(h[0],a)),n(u,o(h[1],a)),a),o(200,t))}}.call(e.prototype)}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],function(e,t,i){"use strict";function n(e,t){var i=this,e=(this.container=e||a.createElement("div"),a.addCssClass(this.container,"ace_editor"),a.HI_DPI&&a.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),this.$gutter=a.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=a.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=a.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new r(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new c(this.content),this.$textLayer=new l(this.content));this.canvas=e.element,this.$markerFront=new c(this.content),this.$cursorLayer=new u(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new d(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.on("scroll",function(e){i.$scrollAnimation||i.session.setScrollTop(e.data-i.scrollMargin.top)}),this.scrollBarH.on("scroll",function(e){i.$scrollAnimation||i.session.setScrollLeft(e.data-i.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new p(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(e){i.updateCharacterSize(),i.onResize(!0,i.gutterWidth,i.$size.width,i.$size.height),i._signal("changeCharacterSize",e)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!b.isIOS,this.$loop=new g(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),o.resetOptions(this),o._signal("renderer",this)}var s=e("./lib/oop"),a=e("./lib/dom"),o=e("./config"),r=e("./layer/gutter").Gutter,c=e("./layer/marker").Marker,l=e("./layer/text").Text,u=e("./layer/cursor").Cursor,h=e("./scrollbar").HScrollBar,d=e("./scrollbar").VScrollBar,g=e("./renderloop").RenderLoop,p=e("./layer/font_metrics").FontMetrics,m=e("./lib/event_emitter").EventEmitter,f='.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}',b=e("./lib/useragent"),v=b.isIE;a.importCssString(f,"ace_editor.css");(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,s.implement(this,m),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),a.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),(this.session=e)&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,i){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,i,n){if(!(2r.height-n?a.translate(this.textarea,0,0):(r=1,s=this.$size.height-n,o?o.useTextareaForIME?(o=this.textarea.value,r=this.characterWidth*this.session.$getStringScreenWidth(o)[0]):t+=this.lineHeight+2:t+=this.lineHeight,(i-=this.scrollLeft)>this.$size.scrollerWidth-r&&(i=this.$size.scrollerWidth-r),i+=this.gutterWidth+this.margin.left,a.setStyle(e,"height",n+"px"),a.setStyle(e,"width",r+"px"),a.translate(this.textarea,Math.min(i,this.$size.scrollerWidth-r),Math.min(t,s)))):a.translate(this.textarea,-100,0))},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,i,n){var s=this.scrollMargin;s.top=0|e,s.bottom=0|t,s.right=0|n,s.left=0|i,s.v=s.top+s.bottom,s.h=s.left+s.right,s.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-s.top),this.updateFull()},this.setMargin=function(e,t,i,n){var s=this.margin;s.top=0|e,s.bottom=0|t,s.right=0|n,s.left=0|i,s.v=s.top+s.bottom,s.h=s.left+s.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t)&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var i,n,t=this.layerConfig;(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL)&&(e|=this.$computeLayerConfig()|this.$loop.clear(),t.firstRow!=this.layerConfig.firstRow&&t.firstRowScreen==this.layerConfig.firstRowScreen&&0<(i=this.scrollTop+(t.firstRow-this.layerConfig.firstRow)*this.lineHeight)&&(this.scrollTop=i,e=(e|=this.CHANGE_SCROLL)|(this.$computeLayerConfig()|this.$loop.clear())),t=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),a.translate(this.content,-this.scrollLeft,-t.offset),i=t.width+2*this.$padding+"px",n=t.minHeight+"px",a.setStyle(this.content.style,"width",i),a.setStyle(this.content.style,"height",n)),e&this.CHANGE_H_SCROLL&&(a.translate(this.content,-this.scrollLeft,-t.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL?(this.$changedLines=null,this.$textLayer.update(t),this.$showGutter&&this.$gutterLayer.update(t),this.$markerBack.update(t),this.$markerFront.update(t),this.$cursorLayer.update(t),this.$moveTextAreaToCursor()):e&this.CHANGE_SCROLL?(this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(t):this.$textLayer.scrollLines(t),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(t):this.$gutterLayer.scrollLines(t)),this.$markerBack.update(t),this.$markerFront.update(t),this.$cursorLayer.update(t),this.$moveTextAreaToCursor()):(e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(t),this.$showGutter&&this.$gutterLayer.update(t)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(t):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(t):e&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(t),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(t),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(t),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(t)),this._signal("afterRender",e)}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,i=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(i+=this.scrollBarH.getHeight());t=!((i=this.$maxPixelHeight&&i>this.$maxPixelHeight?this.$maxPixelHeight:i)<=2*this.lineHeight)&&tu.top)),l=r!==n,u=(l&&(this.$vScroll=n,this.scrollBarV.setVisible(n)),this.scrollTop%this.lineHeight),r=Math.ceil(c/this.lineHeight)-1,r=(n=Math.max(0,Math.round((this.scrollTop-u)/this.lineHeight)))+r,h=this.lineHeight,n=t.screenToDocumentRow(n,0),d=t.getFoldLine(n),t=(d&&(n=d.start.row),d=t.documentToScreenRow(n,0),e=t.getRowLength(n)*h,r=Math.min(t.screenToDocumentRow(r,0),t.getLength()-1),c=i.scrollerHeight+t.getRowLength(r)*h+e,u=this.scrollTop-d*h,0);return this.layerConfig.width==o&&!a||(t=this.CHANGE_H_SCROLL),(a||l)&&(t|=this.$updateCachedSize(!0,this.gutterWidth,i.width,i.height),this._signal("scrollbarVisibilityChanged"),l)&&(o=this.$getLongestLine()),this.layerConfig={width:o,padding:this.$padding,firstRow:n,firstRowScreen:d,lastRow:r,lineHeight:h,characterWidth:this.characterWidth,minHeight:c,maxHeight:s,offset:u,gutterOffset:h?Math.max(0,Math.ceil((u+i.height-i.scrollerHeight)/h)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(o-this.$padding),t},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow,i=(this.$changedLines=null,this.layerConfig);if(!(e>i.lastRow+1||tthis.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,i){this.scrollCursorIntoView(e,i),this.scrollCursorIntoView(t,i)},this.scrollCursorIntoView=function(e,t,i){var n,s,o;0!==this.$size.scrollerHeight&&(n=(e=this.$cursorLayer.getPixelPosition(e)).left,e=e.top,o=i&&i.top||0,i=i&&i.bottom||0,e<(s=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop)+o?(t&&s+o>e+this.lineHeight&&(e-=t*this.$size.scrollerHeight),0===e&&(e=-this.scrollMargin.top),this.session.setScrollTop(e)):s+this.$size.scrollerHeight-i=1-this.scrollMargin.top||0=1-this.scrollMargin.left||0this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(l.prototype);e.UIWorkerClient=function(e,t,i){var n=null,s=!1,o=Object.create(u),r=[],a=new l({messageBuffer:r,terminate:function(){},postMessage:function(e){r.push(e),n&&(s?setTimeout(c):c())}}),c=(a.setEmitSync=function(e){s=e},function(){var e=r.shift();e.command?n[e.command].apply(n,e.args):e.event&&o._signal(e.event,e.data)});return o.postMessage=function(e){a.onMessage({data:e})},o.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},o.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},h.loadModule(["worker",t],function(e){for(n=new e[i](o);r.length;)c()}),a},e.WorkerClient=l,e.createWorker=c}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,t,i){"use strict";function n(e,t,i,n,s,o){var r=this,t=(this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=s,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=n,this.$onCursorChange=function(){setTimeout(function(){r.onCursorChange()})},this.$pos=i,e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1});this.$undoStackDepth=t.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)}var c=e("./range").Range,s=e("./lib/event_emitter").EventEmitter,o=e("./lib/oop");(function(){o.implement(this,s),this.setup=function(){var t=this,i=this.doc,e=this.session,n=(this.selectionBefore=e.selection.toJSON(),e.selection.inMultiSelectMode&&e.selection.toSingleRange(),this.pos=i.createAnchor(this.$pos.row,this.$pos.column),this.pos);n.$insertRight=!0,n.detach(),n.markerId=e.addMarker(new c(n.row,n.column,n.row,n.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(e){e=i.createAnchor(e.row,e.column);e.$insertRight=!0,e.detach(),t.others.push(e)}),e.setUndoSelect(!1)},this.showOtherMarkers=function(){var t,i;this.othersActive||(t=this.session,(i=this).othersActive=!0,this.others.forEach(function(e){e.markerId=t.addMarker(new c(e.row,e.column,e.row,e.column+i.length),i.othersClass,null,!1)}))},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e=this.pos.column&&t.start.column<=this.pos.column+this.length+1,s=t.start.column-this.pos.column;if(this.updateAnchors(e),n&&(this.length+=i),n&&!this.session.$fromUndo)if("insert"===e.action)for(var o=this.others.length-1;0<=o;o--){var r={row:(a=this.others[o]).row,column:a.column+s};this.doc.insertMergedLines(r,e.lines)}else if("remove"===e.action)for(o=this.others.length-1;0<=o;o--){var a,r={row:(a=this.others[o]).row,column:a.column+s};this.doc.remove(new c(r.row,r.column,r.row,r.column-i))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var i=this,n=this.session,e=function(e,t){n.removeMarker(e.markerId),e.markerId=n.addMarker(new c(e.row,e.column,e.row,e.column+i.length),t,null,!1)};e(this.pos,this.mainClass);for(var t=this.others.length;t--;)e(this.others[t],this.othersClass)}},this.onCursorChange=function(e){var t;!this.$updating&&this.session&&((t=this.session.selection.getCursor()).row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e)))},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,i=0;io&&(o=e.column),(t=-1==t?0:t)t[1].length&&(s=t[1].length),ot[3].length&&(r=t[3].length)),t):[e]}).map(t?n:a?c?function(e){return e[2]?i(s+o-e[2].length)+e[2]+i(r)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:n:function(e){return e[2]?i(s)+e[2]+i(r)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]})}}).call(l.prototype),s.onSessionChange=function(e){var t=e.session,e=(t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect,e.oldSession);e&&(e.multiSelect.off("addRange",this.$onAddRange),e.multiSelect.off("removeRange",this.$onRemoveRange),e.multiSelect.off("multiSelect",this.$onMultiSelect),e.multiSelect.off("singleSelect",this.$onSingleSelect),e.multiSelect.lead.off("change",this.$checkMultiselectChange),e.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},s.MultiSelect=i,e("./config").defineOptions(l.prototype,"editor",{enableMultiselect:{set:function(e){i(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",o)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",o))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,t,i){"use strict";var u=e("../../range").Range,e=t.FoldMode=function(){};!function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,i){e=e.getLine(i);return this.foldingStartMarker.test(e)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(e)?"end":""},this.getFoldWidgetRange=function(e,t,i){return null},this.indentationBlock=function(e,t,i){var n=/\S/,s=e.getLine(t),o=s.search(n);if(-1!=o){for(var r,i=i||s.length,a=e.getLength(),s=t,c=t;++ti.row&&(n.row--,n.column=e.getLine(n.row).length),u.fromPoints(i,n)},this.closingBracketBlock=function(e,t,i,n,s){i={row:i,column:n},n=e.$findOpeningBracket(t,i);if(n)return n.column++,i.column--,u.fromPoints(n,i)}}.call(e.prototype)}),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',t.$id="ace/theme/textmate",e("../lib/dom").importCssString(t.cssText,t.cssClass)}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";function n(e){this.session=e,(this.session.widgetManager=this).session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}var s=e("./lib/dom");(function(){this.getRowLength=function(e){var t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var t=0;return this.lineWidgets.forEach(function(e){e&&e.rowCount&&!e.hidden&&(t+=e.rowCount)}),t},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e)&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets))},this.detach=function(e){var t=this.editor;t&&(this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets),t=this.session.lineWidgets)&&t.forEach(function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))})},this.updateOnFold=function(e,t){var i=t.lineWidgets;if(i&&e.action){for(var t=e.data,n=t.start.row,s=t.end.row,o="add"==e.action,r=n+1;rs[t].column&&t++,n.unshift(t,0),s.splice.apply(s,n)),this.$updateRows())},this.$updateRows=function(){var i,e=this.session.lineWidgets;e&&(i=!0,e.forEach(function(e,t){if(e)for(i=!1,e.row=t;e.$oldWidget;)e.$oldWidget.row=t,e=e.$oldWidget}),i)&&(this.session.lineWidgets=null)},this.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t).el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1),this.session.lineWidgets[e.row]=e},this.addLineWidget=function(e){var t,i,n;return this.$registerLineWidget(e),e.session=this.session,this.editor&&(t=this.editor.renderer,e.html&&!e.el&&(e.el=s.createElement("div"),e.el.innerHTML=e.html),e.el&&(s.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight)&&(e.pixelHeight=e.el.offsetHeight),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight),i=this.session.getFoldAt(e.row,0),(e.$fold=i)&&(n=this.session.lineWidgets,e.row!=i.end.row||n[i.start.row]?e.hidden=!0:n[i.start.row]=e),this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e)),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,i=t&&t[e],n=[];i;)n.push(i),i=i.$oldWidget;return n},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var i=this.session._changedWidgets,n=t.layerConfig;if(i&&i.length){for(var s=1/0,o=0;o>1,r=i(t,e[o]);if(0=n.length?s=0"),o.appendChild(h.createElement("div"));c.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(a),n.widgetManager.removeLineWidget(c),e.off("changeSelection",c.destroy),e.off("changeSession",c.destroy),e.off("mouseup",c.destroy),e.off("change",c.destroy))},e.keyBinding.addKeyboardHandler(a),e.on("changeSelection",c.destroy),e.on("changeSession",c.destroy),e.on("mouseup",c.destroy),e.on("change",c.destroy),e.session.widgetManager.addLineWidget(c),c.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:c.el.offsetHeight})},h.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")}),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(e,o,t){"use strict";e("./lib/fixoldbrowsers");var r=e("./lib/dom"),a=e("./lib/event"),i=e("./range").Range,c=e("./editor").Editor,n=e("./edit_session").EditSession,s=e("./undomanager").UndoManager,l=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),o.config=e("./config"),o.require=e,"function"==typeof define&&(o.define=define),o.edit=function(e,t){if("string"==typeof e){var i=e;if(!(e=document.getElementById(i)))throw new Error("ace.edit can't find div #"+i)}var n,s;return e&&e.env&&e.env.editor instanceof c?e.env.editor:(i="",e&&/input|textarea/i.test(e.tagName)?(i=(n=e).value,e=r.createElement("pre"),n.parentNode.replaceChild(e,n)):e&&(i=e.textContent,e.innerHTML=""),i=o.createEditSession(i),e=new c(new l(e),i,t),s={document:i,editor:e,onResize:e.resize.bind(e,null)},n&&(s.textarea=n),a.addListener(window,"resize",s.onResize),e.on("destroy",function(){a.removeListener(window,"resize",s.onResize),s.editor.container.env=null}),e.container.env=e.env=s,e)},o.createEditSession=function(e,t){e=new n(e,t);return e.setUndoManager(new s),e},o.Range=i,o.Editor=c,o.EditSession=n,o.UndoManager=s,o.VirtualRenderer=l,o.version=o.config.version}),ace.require(["ace/ace"],function(e){for(var t in e&&(e.config.init(!0),e.define=ace.define),window.ace||(window.ace=e),e)e.hasOwnProperty(t)&&(window.ace[t]=e[t]);window.ace.default=window.ace,"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=window.ace)}),angular.module("ui.ace",[]).constant("uiAceConfig",{}).directive("uiAce",["uiAceConfig",function(i){if(angular.isUndefined(window.ace))throw new Error("ui-ace need ace to work... (o rly?)");return{restrict:"EA",require:"?ngModel",link:function(r,e,a,n){function s(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);angular.isDefined(e)&&r.$evalAsync(function(){if(!angular.isFunction(e))throw new Error("ui-ace use a function as callback.");e(t)})}function t(e,t){if(e!==t){(h=angular.extend({},u,r.$eval(a.uiAce))).callbacks=[h.onLoad],h.onLoad!==u.onLoad&&h.callbacks.unshift(u.onLoad),g.removeListener("change",c),c=p(h.onChange),g.on("change",c),d.removeListener("blur",l),l=m(h.onBlur),d.on("blur",l);var i,n,s=d,e=g,o=h;if(angular.isDefined(o.workerPath)&&window.ace.require("ace/config").set("workerPath",o.workerPath),angular.isDefined(o.require)&&o.require.forEach(function(e){window.ace.require(e)}),angular.isDefined(o.showGutter)&&s.renderer.setShowGutter(o.showGutter),angular.isDefined(o.useWrapMode)&&e.setUseWrapMode(o.useWrapMode),angular.isDefined(o.showInvisibles)&&s.renderer.setShowInvisibles(o.showInvisibles),angular.isDefined(o.showIndentGuides)&&s.renderer.setDisplayIndentGuides(o.showIndentGuides),angular.isDefined(o.useSoftTabs)&&e.setUseSoftTabs(o.useSoftTabs),angular.isDefined(o.showPrintMargin)&&s.setShowPrintMargin(o.showPrintMargin),angular.isDefined(o.disableSearch)&&o.disableSearch&&s.commands.addCommands([{name:"unfind",bindKey:{win:"Ctrl-F",mac:"Command-F"},exec:function(){return!1},readOnly:!0}]),angular.isString(o.theme)&&s.setTheme("ace/theme/"+o.theme),angular.isString(o.mode)&&e.setMode("ace/mode/"+o.mode),angular.isDefined(o.firstLineNumber)&&(angular.isNumber(o.firstLineNumber)?e.setOption("firstLineNumber",o.firstLineNumber):angular.isFunction(o.firstLineNumber)&&e.setOption("firstLineNumber",o.firstLineNumber())),angular.isDefined(o.advanced))for(i in o.advanced)n={name:i,value:o.advanced[i]},s.setOption(n.name,n.value);if(angular.isDefined(o.rendererOptions))for(i in o.rendererOptions)n={name:i,value:o.rendererOptions[i]},s.renderer.setOption(n.name,n.value);angular.forEach(o.callbacks,function(e){angular.isFunction(e)&&e(s)})}}var c,l,u=i.ace||{},h=angular.extend({},u,r.$eval(a.uiAce)),d=window.ace.edit(e[0]),g=d.getSession(),p=function(i){return function(e){var t=g.getValue();!n||t===n.$viewValue||r.$$phase||r.$root.$$phase||r.$evalAsync(function(){n.$setViewValue(t)}),s(i,e,d)}},m=function(e){return function(){s(e,d)}};a.$observe("readonly",function(e){d.setReadOnly(!!e||""===e)}),n&&(n.$formatters.push(function(e){if(angular.isUndefined(e)||null===e)return"";if(angular.isObject(e)||angular.isArray(e))throw new Error("ui-ace cannot use an object or an array as a model");return e}),n.$render=function(){g.setValue(n.$viewValue)});r.$watch(a.uiAce,t,!0),t(u),e.on("$destroy",function(){d.session.$stopWorker(),d.destroy()}),r.$watch(function(){return[e[0].offsetWidth,e[0].offsetHeight]},function(){d.resize(),d.renderer.updateFull()},!0)}}}]);const charactersAttributes="[^-a-z0-9:._]",allTagCharacters="(?:[^>\"']*(?:\"[^\"]*\"|'[^']*'))*?[^>]*";function by(s){return(e,t,i,n)=>t+urlRel2abs(i,s)+n}function cr(e,t,i,n){"string"==typeof t&&(t=new RegExp(t,"gi")),i=charactersAttributes+i;var s="\\s*=\\s*",o=new RegExp("("+i+s+'")([^"]+)()',"gi"),r=new RegExp("("+i+s+"')([^']+)()","gi"),a=new RegExp("("+i+s+")([^\"'][^\\s>]*)()","gi");return e=e.replace(t,function(e){return e.replace(o,by(n)).replace(r,by(n)).replace(a,by(n))})}function contentAbs2Relative(e,t){return e&&(e=cr(e,"<"+allTagCharacters+charactersAttributes+"href\\s*="+allTagCharacters+">","href",t),e=cr(e,"<"+allTagCharacters+charactersAttributes+"src\\s*="+allTagCharacters+">","src",t)),e}function generateRandomId(t){var i="ABCDEF0123456789";let n="";for(let e=0;e[\w-\._]+)\/(?[\w-\._]+)(\/pull\/(?[0-9]+))?/);if(e&&e.groups.owner&&e.groups.repo)return{owner:e.groups.owner,repo:e.groups.repo,pullRequestId:e.groups.PR}}throw"Invalid url"}function renderMD(e,t){marked.use(markedEmoji({emojis:githubEmojis,unicode:!1})),e=contentAbs2Relative(e,t);var i=new marked.Renderer;const n=i.link;return i.link=function(e,t,i){return e.match(/\.mp4$|\.mov$/)?`
`:n.call(this,e,t,i)},marked.setOptions({renderer:i,pedantic:!1,gfm:!0,breaks:!1,sanitize:!1,smartLists:!0,smartypants:!1,xhtml:!1,headerIds:!1,katex:katex}),t&&marked.use(baseUrl(t)),marked.use(markedKatex({throwOnError:!1})),marked.parse(e,{renderer:i})}angular.module("ngPDFViewer",[]).factory("RecursionHelper",["$compile",function(o){return{compile:function(e,i){angular.isFunction(i)&&(i={post:i});var n,s=e.contents().remove();return{pre:i&&i.pre?i.pre:null,post:function(e,t){(n=n||o(s))(e,function(e){t.append(e)}),i&&i.post&&i.post.apply(null,arguments)}}}}}]).directive("pdfpageviewer",[function(){return{restrict:"E",template:"",scope:{onPageLoad:"=",page:"=",pdfDoc:"="},controller:["$scope","$element",function(n,s){n.scale=1;const o=s.find("canvas")[0];n.$watch("pdfDoc",e=>{e&&n.renderPage(n.page)}),n.renderPage=async function(e){var e=await n.pdfDoc.getPage(e),t=s[0].clientWidth/e.getViewport(1).width,t=e.getViewport(t),i=(o.height=t.height,o.width=t.width,o.getContext("2d"));return await e.render({canvasContext:i,viewport:t}),n.onPageLoad&&n.$apply(function(){n.onPageLoad({page:n.page,total:n.pdfDoc.numPages})}),!0}}]}}]).directive("pdfviewer",["RecursionHelper",function(t){return{restrict:"E",template:"",scope:{onPageLoad:"&",loadProgress:"&",src:"@",id:"="},compile:function(e){return t.compile(e)},controller:["$scope",function(n){n.pdfDoc=null,n.scale=1,n.documentProgress=function(e){n.loadProgress&&n.loadProgress({state:"loading",loaded:e.loaded,total:e.total})},n.loadPDF=function(e){PDFJS.getDocument(e,null,null,n.documentProgress).then(function(e){n.$apply(()=>{n.pdfDoc=e}),n.loadProgress&&n.loadProgress({state:"finished",loaded:0,total:0})},function(e,t){console.log("PDF load error: "+e),n.loadProgress&&n.loadProgress({state:"error",loaded:0,total:0})})},n.$on("pdfviewer.nextPage",function(e,t){null===t&&n.pageNum{n.loadPDF(n.src)})}]}}]).service("PDFViewerService",["$rootScope",function(i){var e={nextPage:function(){i.$broadcast("pdfviewer.nextPage")},prevPage:function(){i.$broadcast("pdfviewer.prevPage")},Instance:function(e){var t=e;return{prevPage:function(){i.$broadcast("pdfviewer.prevPage",t)},nextPage:function(){i.$broadcast("pdfviewer.nextPage",t)},gotoPage:function(e){i.$broadcast("pdfviewer.gotoPage",t,e)}}}};return e}]),angular.module("anonymous-github",["ngRoute","ngSanitize","ui.ace","ngPDFViewer","pascalprecht.translate","admin"]).config(["$routeProvider","$locationProvider","$translateProvider",function(e,t,i){i.useStaticFilesLoader({prefix:"/i18n/locale-",suffix:".json"}),i.preferredLanguage("en"),e.when("/",{templateUrl:"/partials/home.htm",controller:"homeController",title:"Anonymous GitHub"}).when("/dashboard",{templateUrl:"/partials/dashboard.htm",controller:"dashboardController",title:"Dashboard - Anonymous GitHub"}).when("/pr-dashboard",{templateUrl:"/partials/pr-dashboard.htm",controller:"prDashboardController",title:"Pull Request Dashboard - Anonymous GitHub"}).when("/anonymize/:repoId?",{templateUrl:"/partials/anonymize.htm",controller:"anonymizeController",title:"Anonymize - Anonymous GitHub"}).when("/pull-request-anonymize/:pullRequestId?",{templateUrl:"/partials/anonymizePullRequest.htm",controller:"anonymizePullRequestController",title:"Anonymize - Anonymous GitHub"}).when("/status/:repoId",{templateUrl:"/partials/status.htm",controller:"statusController",title:"Repository status - Anonymous GitHub"}).when("/conferences",{templateUrl:"/partials/conferences.htm",controller:"conferencesController",title:"Conferences - Anonymous GitHub"}).when("/conference/new",{templateUrl:"/partials/newConference.htm",controller:"newConferenceController",title:"Add a conference - Anonymous GitHub"}).when("/conference/:conferenceId/edit",{templateUrl:"/partials/newConference.htm",controller:"newConferenceController",title:"Edit conference - Anonymous GitHub"}).when("/conference/:conferenceId",{templateUrl:"/partials/conference.htm",controller:"conferenceController",title:"Conference - Anonymous GitHub"}).when("/faq",{templateUrl:"/partials/faq.htm",controller:"faqController",title:"FAQ - Anonymous GitHub"}).when("/profile",{templateUrl:"/partials/profile.htm",controller:"profileController",title:"Profile - Anonymous GitHub"}).when("/claim",{templateUrl:"/partials/claim.htm",controller:"claimController",title:"Claim repository - Anonymous GitHub"}).when("/pr/:pullRequestId",{templateUrl:"/partials/pullRequest.htm",controller:"pullRequestController",title:"Anonymized Pull Request - Anonymous GitHub",reloadOnUrl:!1}).when("/r/:repoId/:path*?",{templateUrl:"/partials/explorer.htm",controller:"exploreController",title:"Anonymized Repository - Anonymous GitHub",reloadOnUrl:!1}).when("/repository/:repoId/:path*?",{templateUrl:"/partials/explorer.htm",controller:"exploreController",title:"Anonymized Repository - Anonymous GitHub",reloadOnUrl:!1}).when("/admin/",{templateUrl:"/partials/admin/repositories.htm",controller:"repositoriesAdminController",title:"Repositories Admin - Anonymous GitHub"}).when("/admin/users",{templateUrl:"/partials/admin/users.htm",controller:"usersAdminController",title:"Users Admin - Anonymous GitHub"}).when("/admin/users/:username",{templateUrl:"/partials/admin/user.htm",controller:"userAdminController",title:"User Admin - Anonymous GitHub"}).when("/admin/conferences",{templateUrl:"/partials/admin/conferences.htm",controller:"conferencesAdminController",title:"Conferences Admin - Anonymous GitHub"}).when("/admin/queues",{templateUrl:"/partials/admin/queues.htm",controller:"queuesAdminController",title:"Queues Admin - Anonymous GitHub"}).when("/404",{templateUrl:"/partials/404.htm",title:"Page not found - Anonymous GitHub"}).otherwise({templateUrl:"/partials/404.htm",title:"Page not found - Anonymous GitHub"}),t.html5Mode(!0)}]).filter("humanFileSize",function(){return humanFileSize}).filter("humanTime",function(){return function(e){if(!e)return"never";var t,i=(e="string"!=typeof(e=e instanceof Date?Math.round((Date.now()-e)/1e3):e)&&"number"!=typeof e?e:Math.round((Date.now()-new Date(e))/1e3))<0?"from now":"ago";if(172800/g,">"),t[e].startsWith("+++")||t[e].startsWith("---")?i.push(`${t[e]}`):t[e].startsWith("@@")?i.push(`${t[e]}`):t[e].startsWith("index")?i.push(`${t[e]}`):t[e].startsWith("+")?i.push(`${t[e]}`):t[e].startsWith("-")?i.push(`${t[e]}`):i.push(`${t[e]}`);return n.trustAsHtml(i.join("\n"))}}]).directive("markdown",["$location",function(s){return{restrict:"E",scope:{terms:"=",options:"=",content:"="},link:function(e,t,i){function n(){t.html(renderMD(e.content,s.url()+"/../"))}e.$watch(i.terms,n),e.$watch("terms",n),e.$watch("options",n),e.$watch("content",n)}}}]).directive("tree",[function(){return{restrict:"E",scope:{file:"=",parent:"@"},controller:["$element","$scope","$routeParams","$compile",function(t,u,i,n){if(u.repoId=document.location.pathname.split("/")[2],u.opens={},i.path){let t="";i.path.split("/").forEach(e=>{u.opens[t+"/"+e]=!0,t=t+"/"+e})}const h=(e,t)=>{var i=!!e.child,n=!!t.child;return i&&n?e.name-t.name:i?-1:n?1:e.name-t.name};function s(){t.html("");var e=function e(s,o){if(!s)return"";var r;let a="
    ";for(r of s=s.sort(h)){let t=!!r.child,i=r.name,n=r.size||0;if(t){let e=i;for(s=r.child;s&&1==s.length;)e+="/"+s[0].name,n=s[0].size,s=s[0].child;i=e,0`,t?a+=`${i}`:a+=`${i}`,u.opens[c]&&r.child&&1"}(function(e){var t,i=[],n={"":{child:i}};for(t of e){var s,o=n[t.path].child;let e=t.path+"/"+t.name;e.startsWith("/")&&(e=e.substring(1)),null!=t.size?o.push({name:t.name,size:t.size,sha:t.sha}):(s={name:t.name,child:[]},n[e]=s,o.push(s))}return i}(u.file).sort(h),"");n(e)(u,e=>{t.append(e)})}u.$watch("file",e=>{if(null!=e)return 0==e.length?t.html("Empty repository"):void s()},!0),u.isActive=function(e){return i.path==e.substring(1)},u.openFolder=async function(e,t){u.opens[e]=!u.opens[e],null==t.srcElement.nextSibling&&(await u.$parent.getFiles(e.substring(1)),s())}}]}}]).directive("notebook",[function(){return{restrict:"E",scope:{file:"="},controller:["$element","$scope","$http",function(t,e,i){function n(e){e=nb.parse(e);try{t.html(""),t.append(e.render()),Prism.highlightAll()}catch(e){t.html("Unable to render the notebook.")}}function s(){if(e.$parent.content)try{n(JSON.parse(e.$parent.content))}catch(e){t.html("Unable to render the notebook invalid notebook format.")}else e.file&&i.get(e.file.download_url).then(e=>n(e.data))}e.$watch("file",e=>{s()}),s()}]}}]).directive("loc",[function(){return{restrict:"E",scope:{stats:"="},template:"
    ",controller:["$scope",function(i){function t(){for(var e in i.elements=[],i.total=0,i.stats){var t=i.stats[e].code;t&&(i.total+=t,i.elements.push({lang:e,loc:t,color:langColors[e]}))}setTimeout(()=>{$('[data-toggle="tooltip"]').tooltip()},100)}i.$watch("stats",e=>{t()}),t()}]}}]).controller("mainController",["$scope","$http","$location",function(s,e,i){function t(e,t){t&&(s.title=t.title),s.path=i.url(),s.paths=i.path().substring(1).split("/")}s.title="Main",s.user={status:"connection"},s.site_options,s.toasts=[],s.removeToast=function(e){e=s.toasts.indexOf(e);s.toasts.splice(e,1)},s.path=i.url(),s.paths=i.path().substring(1).split("/"),s.darkMode=function(e){localStorage.setItem("darkMode",e);var t,i="/css/prism-okaidia.css",n="/css/prism.css";((s.isDarkMode=e)?($("body").addClass("dark-mode"),(t=document.createElement("link")).href=i,t.rel="stylesheet",document.head.append(t),$(`link[href='${n}']`)):($("body").removeClass("dark-mode"),(t=document.createElement("link")).href=n,t.rel="stylesheet",document.head.append(t),$(`link[href='${i}']`))).remove(),s.$broadcast("dark-mode",e)},s.darkMode("true"==localStorage.getItem("darkMode")),e.get("/api/user").then(e=>{e&&(s.user=e.data)},()=>{s.user=null}),e.get("/api/options").then(e=>{e&&(s.site_options=e.data)},()=>{s.site_options=null}),e.get("/api/message").then(e=>{e&&(s.generalMessage=e.data)},()=>{s.generalMessage=null}),s.$on("$routeChangeSuccess",t),s.$on("$routeUpdate",t)}]).controller("faqController",["$scope","$http",function(t,e){e.get("/api/supportedTypes").then(e=>{t.supportedFileTypes=e.data})}]).controller("profileController",["$scope","$http",function(t,i){function n(){i.get("/api/user/default").then(e=>{e=e.data;e.terms&&(t.terms=e.terms.join("\n")),t.option=Object.assign({},t.option,e.options)})}t.terms="",t.options={expirationMode:"remove",update:!1,image:!0,pdf:!0,notebook:!0,loc:!0,link:!0},n(),t.saveDefault=()=>{var e={terms:t.terms.trim().split("\n"),options:t.options};i.post("/api/user/default",e).then(()=>{n(),t.message="Saved"},e=>{$translate("ERRORS."+e.data.error).then(e=>{t.error=e},console.error)})}}]).controller("claimController",["$scope","$http","$location",function(t,e,i){t.repoId=null,t.repoUrl=null,t.claim=()=>{e.post("/api/repo/claim",{repoId:t.repoId,repoUrl:t.repoUrl}).then(e=>{i.url("/dashboard")},e=>{t.error=e.data,t.claimForm.repoUrl.$setValidity("not_found",!1),t.claimForm.repoId.$setValidity("not_found",!1)})}}]).controller("homeController",["$scope","$http","$location",function(t,e,i){t.user&&!t.user.status&&i.url("/dashboard"),t.$watch("user.status",()=>{t.user&&!t.user.status&&i.url("/dashboard")}),e.get("/api/stat/").then(e=>{t.stat=e.data})}]).controller("dashboardController",["$scope","$http","$location",function(s,e,t){function n(){e.get("/api/user/anonymized_repositories").then(e=>{s.repositories=e.data;for(var t of s.repositories)t.pageView||(t.pageView=0),t.lastView||(t.lastView=""),t.options.terms=t.options.terms.filter(e=>e)},e=>{console.error(e)})}function o(i,n){e.get("/api/repo/"+i).then(e=>{for(const t of s.repositories)if(t.repoId==i){t.status=e.data.status;break}"ready"==e.data.status||"error"==e.data.status||"removed"==e.data.status||"expired"==e.data.status?n(e.data):setTimeout(()=>o(i,n),2500)})}s.$on("$routeChangeStart",function(){$('[data-toggle="tooltip"]').tooltip("dispose")}),s.$watch("user.status",()=>{null==s.user&&t.url("/")}),null==s.user&&t.url("/"),setTimeout(()=>{$('[data-toggle="tooltip"]').tooltip()},250),s.repositories=[],s.search="",s.filters={status:{ready:!0,expired:!0,removed:!1}},s.orderBy="-anonymizeDate",e.get("/api/user/quota").then(e=>{s.quota=e.data,s.quota.storage.percent=s.quota.storage.total?100*s.quota.storage.used/s.quota.storage.total:100,s.quota.file.percent=s.quota.file.total?100*s.quota.file.used/s.quota.file.total:100,s.quota.repository.percent=s.quota.repository.total?100*s.quota.repository.used/s.quota.repository.total:100},console.error),n(),s.removeRepository=t=>{if(confirm(`Are you sure that you want to remove the repository ${t.repoId}?`)){const i={title:`Removing ${t.repoId}...`,date:new Date,body:`The repository ${t.repoId} is going to be removed.`};s.toasts.push(i),e.delete("/api/repo/"+t.repoId).then(()=>{o(t.repoId,()=>{i.title=t.repoId+" is removed.",i.body=`The repository ${t.repoId} is removed.`,s.$apply()})},e=>{i.title=`Error during the removal of ${t.repoId}.`,i.body=e.body,n()})}},s.updateRepository=t=>{const i={title:`Refreshing ${t.repoId}...`,date:new Date,body:`The repository ${t.repoId} is going to be refreshed.`};s.toasts.push(i),e.post(`/api/repo/${t.repoId}/refresh`).then(()=>{o(t.repoId,()=>{i.title=t.repoId+" is refreshed.",i.body=`The repository ${t.repoId} is refreshed.`,s.$apply()})},e=>{i.title=`Error during the refresh of ${t.repoId}.`,i.body=e.body,n()})},s.repoFiler=e=>0!=s.filters.status[e.status]&&(0==s.search.trim().length||-1{n.pullRequests=e.data;for(const t of n.pullRequests)t.pageView||(t.pageView=0),t.lastView||(t.lastView=""),t.options.terms=t.options.terms.filter(e=>e)},e=>{console.error(e)})}n.$on("$routeChangeStart",function(){$('[data-toggle="tooltip"]').tooltip("dispose")}),n.$watch("user.status",()=>{null==n.user&&t.url("/")}),null==n.user&&t.url("/"),setTimeout(()=>{$('[data-toggle="tooltip"]').tooltip()},250),n.pullRequests=[],n.search="",n.filters={status:{ready:!0,expired:!0,removed:!1}},n.orderBy="-anonymizeDate",s(),n.removePullRequest=t=>{if(confirm(`Are you sure that you want to remove the pull request ${t.pullRequestId}?`)){const i={title:`Removing ${t.pullRequestId}...`,date:new Date,body:`The pull request ${t.pullRequestId} is going to be removed.`};n.toasts.push(i),e.delete("/api/pr/"+t.pullRequestId).then(()=>{i.title=t.pullRequestId+" is removed.",i.body=`The pull request ${t.pullRequestId} is removed.`,s()},e=>{i.title=`Error during the removal of ${t.pullRequestId}.`,i.body=e.body,s()})}},n.updatePullRequest=t=>{const i={title:`Refreshing ${t.pullRequestId}...`,date:new Date,body:`The pull request ${t.pullRequestId} is going to be refreshed.`};n.toasts.push(i),e.post(`/api/pr/${t.pullRequestId}/refresh`).then(()=>{i.title=t.pullRequestId+" is refreshed.",i.body=`The pull request ${t.pullRequestId} is refreshed.`,s()},e=>{i.title=`Error during the refresh of ${t.pullRequestId}.`,i.body=e.body,s()})},n.pullRequestFilter=e=>0!=n.filters.status[e.status]&&(0==n.search.trim().length||-1<(e.source.pullRequestId+"").indexOf(n.search)||-1{e.get("/api/repo/"+t.repoId,{repoId:t.repoId,repoUrl:t.repoUrl}).then(e=>{t.repo=e.data,"ready"==t.repo.status?t.progress=100:"queue"==t.repo.status?t.progress=10:"downloaded"==t.repo.status?t.progress=50:"download"==t.repo.status||"preparing"==t.repo.status?t.progress=25:"anonymizing"==t.repo.status&&(t.progress=75),"ready"!=t.repo.status&&"error"!=t.repo.status&&setTimeout(t.getStatus,2e3)},e=>{t.error=e.data.error})},t.getStatus()}]).controller("anonymizeController",["$scope","$http","$sce","$routeParams","$location","$translate",function(o,n,i,e,t,s){var r;async function a(){const i=parseGithubUrl(o.repoUrl);try{u();var t=await n.get(`/api/repo/${i.owner}/${i.repo}/`,{params:{repositoryID:o.repositoryID}});o.details=t.data,o.repoId||(o.repoId=o.details.repo+"-"+generateRandomId(4)),await o.getBranches()}catch(e){throw console.log(e),e.data?(s("ERRORS."+e.data.error).then(e=>{var t={title:"Error when getting repository information",date:new Date,body:`${i.owner}/${i.repo} produice the following error: `+e};o.toasts.push(t),o.error=e},console.error),h(e.data.error)):(t={title:"Error when getting repository information",date:new Date,body:`${i.owner}/${i.repo} produice the following error: `+e.message},o.toasts.push(t)),o.anonymize.repoUrl.$setValidity("missing",!1),e}}async function c(t){if(o.readme&&!t)return o.readme;var i=parseGithubUrl(o.repoUrl);try{var e=await n.get(`/api/repo/${i.owner}/${i.repo}/readme`,{params:{force:!0===t?"1":"0",branch:o.source.branch,repositoryID:o.repositoryID}});o.readme=e.data}catch(e){o.readme="";t={title:"README not available...",date:new Date,body:`The README of ${i.owner}/${i.repo} was not found.`};o.toasts.push(t)}}function l(){o.anonymize.terms.$setValidity("regex",!0),o.terms&&o.terms.match(/[-[\]{}()*+?.,\\^$|#]/g)&&o.anonymize.terms.$setValidity("regex",!1);var e=/?/g;let n=o.readme;o.options.image||(n=n.replace(/!\[[^\]]*\]\((?.*?)(?=\"|\))(?\".*\")?\)/g,"")),o.options.link||(n=n.replace(e,o.site_options.ANONYMIZATION_MASK));var t=document.location.protocol+"//"+document.location.host,s=(n=(n=(n=n.replace(new RegExp(`\\b${o.repoUrl}/blob/${o.source.branch}\\b`,"gi"),t+"/r/"+o.repoId)).replace(new RegExp(`\\b${o.repoUrl}/tree/${o.source.branch}\\b`,"gi"),t+"/r/"+o.repoId)).replace(new RegExp("\\b"+o.repoUrl,"gi"),t+"/r/"+o.repoId),o.terms.split("\n"));for(let i=0;inew RegExp(`\\b${t}\\b`,"gi").test(e)?o.site_options.ANONYMIZATION_MASK+"-"+(i+1):e)).replace(new RegExp(`\\b${t}\\b`,"gi"),o.site_options.ANONYMIZATION_MASK+"-"+(i+1)))}o.anonymize_readme=n;t=parseGithubUrl(o.repoUrl),t=renderMD(o.anonymize_readme,`https://github.com/${t.owner}/${t.repo}/raw/${o.source.branch}/`);o.html_readme=i.trustAsHtml(t),setTimeout(Prism.highlightAll,150)}function u(){o.anonymize.repoId.$setValidity("used",!0),o.anonymize.repoId.$setValidity("format",!0),o.anonymize.repoUrl.$setValidity("used",!0),o.anonymize.repoUrl.$setValidity("missing",!0),o.anonymize.repoUrl.$setValidity("access",!0),o.anonymize.conference.$setValidity("activated",!0),o.anonymize.terms.$setValidity("format",!0),o.anonymize.terms.$setValidity("regex",!0)}function h(e){switch(e){case"repoId_already_used":o.anonymize.repoId.$setValidity("used",!1);break;case"invalid_repoId":case"options_not_provided":o.anonymize.repoId.$setValidity("format",!1);break;case"repo_already_anonymized":o.anonymize.repoUrl.$setValidity("used",!1);break;case"invalid_terms_format":case"invalid_terms_format":o.anonymize.terms.$setValidity("format",!1);break;case"repo_not_found":o.anonymize.repoUrl.$setValidity("missing",!1);break;case"repo_not_accessible":o.anonymize.repoUrl.$setValidity("access",!1);break;case"conf_not_activated":o.anonymize.conference.$setValidity("activated",!1);break;default:o.anonymize.$setValidity("error",!1)}}async function d(e){u();t=parseGithubUrl(o.repoUrl),o.options.pageSource=o.details.pageSource;var t={repoId:o.repoId,terms:o.terms.trim().split("\n").filter(e=>e),fullName:t.owner+"/"+t.repo,repository:o.repoUrl,options:o.options,source:o.source,conference:o.conference};try{await n.post(e,t,{headers:{"Content-Type":"application/json"}}),window.location.href="/status/"+o.repoId}catch(e){e.data?(s("ERRORS."+e.data.error).then(e=>{o.error=e},console.error),h(e.data.error)):console.error(e)}}o.repoUrl="",o.repoId="",o.terms="",o.defaultTerms="",o.branches=[],o.source={branch:"",commit:""},o.options={expirationMode:"remove",expirationDate:new Date,update:!1,image:!0,pdf:!0,notebook:!0,link:!0},o.options.expirationDate.setDate(o.options.expirationDate.getDate()+90),o.anonymize_readme="",o.readme="",o.html_readme="",o.isUpdate=!1,r=()=>{e.repoId&&""!=e.repoId&&(o.isUpdate=!0,o.repoId=e.repoId,n.get("/api/repo/"+o.repoId).then(async e=>{o.repoUrl="https://github.com/"+e.data.source.fullName,o.terms=e.data.options.terms.filter(e=>e).join("\n"),o.source=e.data.source,o.options=e.data.options,o.conference=e.data.conference,o.repositoryID=e.data.source.repositoryID,e.data.options.expirationDate?o.options.expirationDate=new Date(e.data.options.expirationDate):(o.options.expirationDate=new Date,o.options.expirationDate.setDate(o.options.expirationDate.getDate()+90)),await Promise.all([a(),c()]),l(),o.$apply()},e=>{t.url("/404")}),o.$watch("anonymize",()=>{o.anonymize.repoId.$$element[0].disabled=!0,o.anonymize.repoUrl.$$element[0].disabled=!0}))},n.get("/api/user/default").then(e=>{e=e.data;e.terms&&(o.defaultTerms=e.terms.join("\n")),o.options=Object.assign({},o.options,e.options),o.options.expirationDate=new Date(o.options.expirationDate),o.options.expirationDate.setDate(o.options.expirationDate.getDate()+90),r&&r()}),o.repoSelected=async()=>{o.terms=o.defaultTerms,o.repoId="",o.source={type:"GitHubStream",branch:"",commit:""},o.anonymize_readme="",o.readme="",o.html_readme="",o.details=null,o.branches=[];try{parseGithubUrl(o.repoUrl),o.anonymize.repoUrl.$setValidity("github",!0)}catch(e){return void o.anonymize.repoUrl.$setValidity("github",!1)}try{await Promise.all([a(),c()]),l()}catch(e){}o.$apply(),$('[data-toggle="tooltip"]').tooltip()},$('[data-toggle="tooltip"]').tooltip(),o.$watch("options.update",e=>{o.anonymize.commit.$$element[0].disabled=!!e}),o.$watch("source.branch",async()=>{var e=o.branches.filter(e=>e.name==o.source.branch)[0];o.details&&o.details.hasPage&&(o.anonymize.page.$$element[0].disabled=!1,o.details.pageSource.branch!=o.source.branch)&&(o.anonymize.page.$$element[0].disabled=!0),e&&(o.source.commit=e.commit,o.readme=e.readme,await c(),l(),o.$apply())}),o.getBranches=async e=>{var t=parseGithubUrl(o.repoUrl),t=await n.get(`/api/repo/${t.owner}/${t.repo}/branches`,{params:{force:!0===e?"1":"0",repositoryID:o.repositoryID}}),t=(o.branches=t.data,o.source.branch||(o.source.branch=o.details.defaultBranch),o.branches.filter(e=>e.name==o.source.branch));0{e.target.disabled=!0,d("/api/repo/").finally(()=>{e.target.disabled=!1,o.$apply()})},o.updateRepo=async e=>{e.target.disabled=!0,d("/api/repo/"+o.repoId).finally(()=>{e.target.disabled=!1,o.$apply()})},o.$watch("conference",async e=>{o.conference&&n.get("/api/conferences/"+o.conference).then(e=>{o.conference_data=e.data,o.conference_data.startDate=new Date(o.conference_data.startDate),o.conference_data.endDate=new Date(o.conference_data.endDate),o.options.expirationDate=new Date(o.conference_data.endDate),o.options.expirationMode="remove",o.options.update=o.conference_data.options.update,o.options.image=o.conference_data.options.image,o.options.pdf=o.conference_data.options.pdf,o.options.notebook=o.conference_data.options.notebook,o.options.link=o.conference_data.options.link},e=>{o.conference_data=null})}),o.$watch("source.branch",async e=>{var t=o.branches.filter(e=>e.name==o.source.branch)[0];o.details&&o.details.hasPage&&(o.anonymize.page.$$element[0].disabled=!1,o.details.pageSource.branch!=o.source.branch)&&(o.anonymize.page.$$element[0].disabled=!0),t&&(o.source.commit=t.commit,o.readme=t.readme,await c(),l(),o.$apply())}),o.$watch("terms",l),o.$watch("options.image",l),o.$watch("options.link",l)}]).controller("exploreController",["$scope","$http","$location","$routeParams","$sce","PDFViewerService",function(o,r,a,i,c,l){o.files=[];const u={yml:"yaml",txt:"text",py:"python",js:"javascript",ts:"typescript"},h=["license","txt"],d=["png","jpg","jpeg","gif","svg","ico","bmp","tiff","tif","webp","avif","heif","heic"],g=["wav","mp3","ogg","mp4","avi","webm","mov","mpg","wma"];function s(){o.content="",o.file=o.files.filter(e=>e.name==o.paths[o.paths.length-1]&&e.path==o.paths.slice(0,o.paths.length-1).join("/"))[0];let e="0",t=(o.file&&o.file.sha&&(e=o.file.sha),o.url=`/api/repo/${o.repoId}/file/${o.filePath}?v=`+e,o.filePath.toLowerCase());var i=t.lastIndexOf("."),i=(-1{i.scrollToLine(e,!0,!0,function(){})},100)}i.setFontSize(o.aceOption.fontSize),i.setReadOnly(o.aceOption.readOnly),i.setKeyboardHandler(o.aceOption.keyBinding),i.setSelectionStyle(o.aceOption.fullLineSelection?"line":"text"),i.setOption("displayIndentGuides",!0),i.setHighlightActiveLine(o.aceOption.highlightActiveLine),"hide"==o.aceOption.cursor&&(i.renderer.$cursorLayer.element.style.display="none"),i.setHighlightGutterLine(o.aceOption.highlightGutterLine),i.setShowInvisibles(o.aceOption.showInvisibles),i.setDisplayIndentGuides(o.aceOption.showIndentGuides),i.renderer.setShowPrintMargin(o.aceOption.showPrintMargin),i.setHighlightSelectedWord(o.aceOption.highlightSelectedWord),i.session.setUseSoftTabs(o.aceOption.useSoftTab),i.session.setTabSize(o.aceOption.tabSize),i.setBehavioursEnabled(o.aceOption.enableBehaviours),i.setFadeFoldWidgets(o.aceOption.fadeFoldWidgets)}},o.$on("dark-mode",(e,t)=>{o.aceOption.theme=t?"nord_dark":"chrome"}),o.isDarkMode&&(o.aceOption.theme="nord_dark"),o.type="pdf"==(i=t)?(o.instance=l.Instance("viewer"),"pdf"):"md"==i?"md":"org"==i?"org":"ipynb"==i?"IPython":-1e}).then(e=>{o.type=s,o.content=e.data,""==o.content&&(o.content=null),"md"==o.type&&(o.content=c.trustAsHtml(renderMD(e.data,a.url()+"/../")),o.type="html"),"org"==o.type&&(e=contentAbs2Relative(e.data),e=(new Org.Parser).parse(e).convert(Org.ConverterHTML,{headerOffset:1,exportFromLineNumber:!1,suppressSubScriptHandling:!0,suppressAutoLink:!1}),o.content=c.trustAsHtml(e.toString()),o.type="html"),setTimeout(()=>{Prism.highlightAll()},50)},t=>{o.type="error",o.content="unknown_error";try{t.data=JSON.parse(t.data),t.data.error?o.content=t.data.error:o.content=t.data}catch(e){console.log(t),-1==t.status?o.content="request_error":502==t.status&&(o.content="unreachable")}})}else o.type="error",o.content="no_file_selected"}function n(){var t;o.repoId=i.repoId,o.type="loading",o.filePath=i.path||"",o.paths=o.filePath.split("/"),t=async e=>{for(let e=0;e{if(""==o.paths[0]){var i={};for(const e of o.files)-1{o.options=e.data,o.options.url?window.location=o.options.url:t&&t(e.data)},e=>{o.type="error",o.content=e.data.error})}o.$on("$routeUpdate",function(e,t){if((i.path||"")!=o.filePath){if(o.filePath=i.path||"",o.paths=o.filePath.split("/").filter(e=>e&&0e),source:{repositoryFullName:i.owner+"/"+i.repo,pullRequestId:i.pullRequestId},options:o.options,conference:o.conference};await n.post(e,t,{headers:{"Content-Type":"application/json"}}),window.location.href="/pr/"+o.pullRequestId}catch(e){e.data?(s("ERRORS."+e.data.error).then(e=>{o.error=e},console.error),c(e.data.error)):console.error(e)}var i}o.pullRequestUrl="",o.pullRequestId="",o.terms="",o.defaultTerms="",o.options={expirationMode:"remove",expirationDate:new Date,update:!1,image:!0,link:!0,body:!0,title:!0,origin:!1,diff:!0,comments:!0,username:!0,date:!0},o.options.expirationDate.setMonth(o.options.expirationDate.getMonth()+4),o.isUpdate=!1,r=()=>{t.pullRequestId&&""!=t.pullRequestId&&(o.isUpdate=!0,o.pullRequestId=t.pullRequestId,n.get("/api/pr/"+o.pullRequestId).then(async e=>{o.pullRequestUrl="https://github.com/"+e.data.source.repositoryFullName+"/pull/"+e.data.source.pullRequestId,o.terms=e.data.options.terms.filter(e=>e).join("\n"),o.source=e.data.source,o.options=e.data.options,o.conference=e.data.conference,e.data.options.expirationDate?o.options.expirationDate=new Date(e.data.options.expirationDate):(o.options.expirationDate=new Date,o.options.expirationDate.setDate(o.options.expirationDate.getDate()+90)),o.details=(await n.get(`/api/pr/${e.data.source.repositoryFullName}/`+e.data.source.pullRequestId)).data,o.$apply()},e=>{i.url("/404")}),o.$watch("anonymize",()=>{o.anonymizeForm.pullRequestId.$$element[0].disabled=!0,o.anonymizeForm.pullRequestUrl.$$element[0].disabled=!0}))},n.get("/api/user/default").then(e=>{e=e.data;e.terms&&(o.defaultTerms=e.terms.join("\n")),o.options=Object.assign({},o.options,e.options),o.options.expirationDate=new Date(o.options.expirationDate),o.options.expirationDate.setDate(o.options.expirationDate.getDate()+90),r&&r()}),o.pullRequestSelected=async()=>{o.terms=o.defaultTerms,o.pullRequestId="",o.source={};try{if(!parseGithubUrl(o.pullRequestUrl).pullRequestId)return void o.anonymizeForm.pullRequestUrl.$setValidity("github",!1);o.anonymizeForm.pullRequestUrl.$setValidity("github",!0)}catch(e){return void o.anonymizeForm.pullRequestUrl.$setValidity("github",!1)}try{var e=parseGithubUrl(o.pullRequestUrl);try{a();var t=await n.get(`/api/pr/${e.owner}/${e.repo}/`+e.pullRequestId);o.details=t.data,o.options.origin?o.pullRequestId=e.repo+"-"+generateRandomId(4):o.pullRequestId=generateRandomId(4)}catch(e){throw e.data&&(s("ERRORS."+e.data.error).then(e=>{o.error=e},console.error),c(e.data.error)),o.anonymizeForm.pullRequestUrl.$setValidity("missing",!1),e}await 0}catch(e){}o.$apply(),$('[data-toggle="tooltip"]').tooltip()},$('[data-toggle="tooltip"]').tooltip(),o.$watch("options.update",e=>{}),o.anonymize=function(e){var i=/?/g,n=(o.options.image||(e=e.replace(/!\[[^\]]*\]\((?.*?)(?=\"|\))(?\".*\")?\)/g,"")),o.options.link||(e=e.replace(i,o.site_options.ANONYMIZATION_MASK)),o.terms.split("\n"));for(let t=0;tnew RegExp(`\\b${s}\\b`,"gi").test(e)?o.site_options.ANONYMIZATION_MASK+"-"+(t+1):e)).replace(new RegExp(`\\b${s}\\b`,"gi"),o.site_options.ANONYMIZATION_MASK+"-"+(t+1)))}return e},o.anonymizePullRequest=e=>{e.target.disabled=!0,l("/api/pr/").finally(()=>{e.target.disabled=!1,o.$apply()})},o.updatePullRequest=async e=>{e.target.disabled=!0,l("/api/pr/"+o.pullRequestId).finally(()=>{e.target.disabled=!1,o.$apply()})},o.$watch("conference",async e=>{o.conference&&n.get("/api/conferences/"+o.conference).then(e=>{o.conference_data=e.data,o.conference_data.startDate=new Date(o.conference_data.startDate),o.conference_data.endDate=new Date(o.conference_data.endDate),o.options.expirationDate=new Date(o.conference_data.endDate),o.options.expirationMode="remove",o.options.update=o.conference_data.options.update,o.options.image=o.conference_data.options.image,o.options.pdf=o.conference_data.options.pdf,o.options.notebook=o.conference_data.options.notebook,o.options.link=o.conference_data.options.link},e=>{o.conference_data=null})})}]).controller("pullRequestController",["$scope","$http","$location","$routeParams","$sce",function(i,n,e,t,s){i.pullRequestId=t.pullRequestId,i.type="loading",async function(t){n.get(`/api/pr/${i.pullRequestId}/options`).then(e=>{i.options=e.data,i.options.url?window.location=i.options.url:t&&t(e.data)},e=>{i.type="error",i.content=e.data.error})}(e=>{!async function(t){n.get(`/api/pr/${i.pullRequestId}/content`).then(e=>{i.details=e.data,t&&t(e.data)},e=>{i.type="error",i.content=e.data.error})}()})}]).controller("conferencesController",["$scope","$http","$location",function(i,n,e){function s(){n.get("/api/conferences/").then(e=>{i.conferences=e.data||[]},e=>{console.error(e)})}i.$watch("user.status",()=>{null==i.user&&e.url("/")}),null==i.user&&e.url("/"),i.conferences=[],i.search="",i.filters={status:{ready:!0,expired:!1,removed:!1}},i.orderBy="name",i.removeConference=function(e){if(confirm(`Are you sure that you want to remove the conference ${e.name}? All the repositories linked to this conference will expire.`)){const t={title:`Removing ${e.name}...`,date:new Date,body:`The conference ${e.name} is going to be removed.`};i.toasts.push(t),n.delete("/api/conferences/"+e.conferenceID).then(()=>{t.title=e.name+" is removed.",t.body=`The conference ${e.name} is removed.`,s()})}},s(),i.conferenceFilter=e=>0!=i.filters.status[e.status]&&(0==i.search.trim().length||-1{null==i.user&&n.url("/")}),null==i.user&&n.url("/"),i.plans=[],i.editionMode=!1,t.conferenceId&&(i.editionMode=!0,e.get("/api/conferences/"+t.conferenceId).then(e=>{i.options=e.data,i.options.startDate=new Date(i.options.startDate),i.options.endDate=new Date(i.options.endDate)})),e.get("/api/conferences/plans").then(e=>{i.plans=e.data,i.plan=i.plans.filter(e=>e.id==i.options.plan.planID)[0]});var t=new Date,s=(t.setDate(1),t.setMonth(t.getMonth()+1),new Date);s.setMonth(t.getMonth()+7,0),i.options={startDate:t,endDate:s,plan:{planID:"free_conference"},options:{link:!0,image:!0,pdf:!0,notebook:!0,update:!0,page:!0}},i.plan=null,i.$watch("options.plan.planID",()=>{i.plan=i.plans.filter(e=>e.id==i.options.plan.planID)[0]}),i.submit=function(){const t={title:`Creating ${i.options.name}...`,date:new Date,body:`The conference ${i.options.conferenceID} is in creation.`};i.editionMode&&(t.title=`Updating ${i.options.name}...`,t.body=`The conference '${i.options.conferenceID}' is updating.`),i.toasts.push(t),i.conference.name.$setValidity("required",!0),i.conference.conferenceID.$setValidity("pattern",!0),i.conference.conferenceID.$setValidity("required",!0),i.conference.conferenceID.$setValidity("used",!0),i.conference.startDate.$setValidity("required",!0),i.conference.startDate.$setValidity("invalid",!0),i.conference.endDate.$setValidity("required",!0),i.conference.endDate.$setValidity("invalid",!0),i.conference.$setValidity("error",!0),e.post("/api/conferences/"+(i.editionMode?i.options.conferenceID:""),i.options).then(()=>{i.editionMode?(t.title=i.options.name+" updated",t.body=`The conference '${i.options.conferenceID}' is updated.`):(t.title=i.options.name+" created",t.body=`The conference '${i.options.conferenceID}' is created.`),n.url("/conference/"+i.options.conferenceID)},e=>{switch(e.data.error){case"conf_name_missing":i.conference.name.$setValidity("required",!1);break;case"conf_id_missing":i.conference.conferenceID.$setValidity("required",!1);break;case"conf_id_format":i.conference.conferenceID.$setValidity("pattern",!1);break;case"conf_id_used":i.conference.conferenceID.$setValidity("used",!1);break;case"conf_start_date_missing":i.conference.startDate.$setValidity("required",!1);break;case"conf_end_date_missing":i.conference.endDate.$setValidity("required",!1);break;case"conf_start_date_invalid":i.conference.startDate.$setValidity("invalid",!1);break;case"conf_end_date_invalid":i.conference.endDate.$setValidity("invalid",!1);break;default:i.conference.$setValidity("error",!1)}i.removeToast(t)})}}]).controller("conferenceController",["$scope","$http","$location","$routeParams",function(t,e,i,n){t.$watch("user.status",()=>{null==t.user&&i.url("/")}),null==t.user&&i.url("/"),t.conference=null,t.search="",t.filters={status:{ready:!0,expired:!1,removed:!1}},t.orderBy="-anonymizeDate",t.repoFiler=e=>0!=t.filters.status[e.status]&&(0==t.search.trim().length||-1{t.conference=e.data})}]),angular.module("admin",[]).controller("repositoriesAdminController",["$scope","$http","$location",function(n,s,e){function t(){s.get("/api/admin/repos",{params:n.query}).then(e=>{n.total=e.data.total,n.totalPage=Math.ceil(e.data.total/n.query.limit),n.repositories=e.data.results},e=>{console.error(e)})}n.$watch("user.status",()=>{null==n.user&&e.url("/")}),null==n.user&&e.url("/"),n.repositories=[],n.total=-1,n.totalPage=0,n.query={page:1,limit:25,sort:"lastView",search:"",ready:!1,expired:!1,removed:!1,error:!0,preparing:!0},n.removeCache=e=>{s.delete("/api/admin/repos/"+e.repoId).then(e=>{n.$apply()},e=>{console.error(e)})},n.updateRepository=t=>{const i={title:`Refreshing ${t.repoId}...`,date:new Date,body:`The repository ${t.repoId} is going to be refreshed.`};n.toasts.push(i),t.s,s.post(`/api/repo/${t.repoId}/refresh`).then(e=>{"ready"==e.data.status?i.title=t.repoId+" is refreshed.":i.title=`Refreshing of ${t.repoId}.`},e=>{i.title=`Error during the refresh of ${t.repoId}.`,i.body=e.body})},t();let i=null;n.$watch("query",()=>{clearTimeout(i),i=setTimeout(t,500)},!0)}]).controller("usersAdminController",["$scope","$http","$location",function(t,e,i){function n(){e.get("/api/admin/users",{params:t.query}).then(e=>{t.total=e.data.total,t.totalPage=Math.ceil(e.data.total/t.query.limit),t.users=e.data.results,t.$apply()},e=>{console.error(e)})}t.$watch("user.status",()=>{null==t.user&&i.url("/")}),null==t.user&&i.url("/"),t.users=[],t.total=-1,t.totalPage=0,t.query={page:1,limit:25,sort:"username",search:""},n();let s=null;t.$watch("query",()=>{clearTimeout(s),s=setTimeout(n,500)},!0)}]).controller("userAdminController",["$scope","$http","$location","$routeParams",function(n,s,e,t){function i(e){s.get("/api/admin/users/"+e+"/repos",{}).then(e=>{n.repositories=e.data},e=>{console.error(e)})}var o;n.$watch("user.status",()=>{null==n.user&&e.url("/")}),null==n.user&&e.url("/"),n.userInfo,n.repositories=[],n.search="",n.filters={status:{ready:!0,expired:!1,removed:!1}},n.orderBy="-anonymizeDate",n.repoFiler=e=>0!=n.filters.status[e.status]&&(0==n.search.trim().length||-1{n.userInfo=e.data},e=>{console.error(e)}),i(t.username),n.removeCache=e=>{s.delete("/api/admin/repos/"+e.repoId).then(e=>{n.$apply()},e=>{console.error(e)})},n.updateRepository=t=>{const i={title:`Refreshing ${t.repoId}...`,date:new Date,body:`The repository ${t.repoId} is going to be refreshed.`};n.toasts.push(i),t.s,s.post(`/api/repo/${t.repoId}/refresh`).then(e=>{"ready"==e.data.status?i.title=t.repoId+" is refreshed.":i.title=`Refreshing of ${t.repoId}.`},e=>{i.title=`Error during the refresh of ${t.repoId}.`,i.body=e.body})},n.getGitHubRepositories=e=>{s.get(`/api/user/${n.userInfo.username}/all_repositories`,{params:{force:"1"}}).then(e=>{n.userInfo.repositories=e.data})};let r=null;n.$watch("query",()=>{clearTimeout(r),r=setTimeout(()=>{i(t.username)},500)},!0)}]).controller("conferencesAdminController",["$scope","$http","$location",function(t,e,i){function n(){e.get("/api/admin/conferences",{params:t.query}).then(e=>{t.total=e.data.total,t.totalPage=Math.ceil(e.data.total/t.query.limit),t.conferences=e.data.results,t.$apply()},e=>{console.error(e)})}t.$watch("user.status",()=>{null==t.user&&i.url("/")}),null==t.user&&i.url("/"),t.conferences=[],t.total=-1,t.totalPage=0,t.query={page:1,limit:25,sort:"name",search:""},n();let s=null;t.$watch("query",()=>{clearTimeout(s),s=setTimeout(n,500)},!0)}]).controller("queuesAdminController",["$scope","$http","$location",function(i,n,e){function s(){n.get("/api/admin/queues",{params:i.query}).then(e=>{i.downloadJobs=e.data.downloadQueue,i.removeJobs=e.data.removeQueue,i.removeCaches=e.data.cacheQueue},e=>{console.error(e)})}i.$watch("user.status",()=>{null==i.user&&e.url("/")}),null==i.user&&e.url("/"),i.downloadJobs=[],i.removeJobs=[],s(),i.removeJob=function(e,t){n.delete(`/api/admin/queue/${e}/`+t.id,{params:i.query}).then(e=>{s()},e=>{console.error(e)})},i.retryJob=function(e,t){n.post(`/api/admin/queue/${e}/`+t.id,{params:i.query}).then(e=>{s()},e=>{console.error(e)})}}]); \ No newline at end of file +`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return"
    "}del(e){return`${e}`}link(e,t,i){var n=c(e);if(null===n)return i;let s='"}image(e,t,i){var n=c(e);if(null===n)return i;let s=`${i}"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""));continue}case"code":{const n=r;o+=this.renderer.code(n.text,n.lang,!!n.escaped);continue}case"table":{const n=r;let e="",t="";for(let e=0;e{e=t[e].flat(1/0);n=n.concat(this.walkTokens(e,i))}):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,i)))}}return n}use(...e){const d=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{const t={...e};if(t.async=this.defaults.async||t.async||!1,e.extensions&&(e.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const n=d.renderers[i.name];d.renderers[i.name]=n?function(...e){let t=i.renderer.apply(this,e);return t=!1===t?n.apply(this,e):t}:i.renderer}if("tokenizer"in i){if(!i.level||"block"!==i.level&&"inline"!==i.level)throw new Error("extension level must be 'block' or 'inline'");var e=d[i.level];e?e.unshift(i.tokenizer):d[i.level]=[i.tokenizer],i.start&&("block"===i.level?d.startBlock?d.startBlock.push(i.start):d.startBlock=[i.start]:"inline"===i.level&&(d.startInline?d.startInline.push(i.start):d.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(d.childTokens[i.name]=i.childTokens)}),t.extensions=d),e.renderer){const d=this.defaults.renderer||new E(this.defaults);for(const t in e.renderer){if(!(t in d))throw new Error(`renderer '${t}' does not exist`);if("options"!==t){const i=t,n=e.renderer[i],s=d[i];d[i]=(...e)=>{let t=n.apply(d,e);return(t=!1===t?s.apply(d,e):t)||""}}}t.renderer=d}if(e.tokenizer){const d=this.defaults.tokenizer||new g(this.defaults);for(const t in e.tokenizer){if(!(t in d))throw new Error(`tokenizer '${t}' does not exist`);if(!["options","rules","lexer"].includes(t)){const o=t,r=e.tokenizer[o],a=d[o];d[o]=(...e)=>{let t=r.apply(d,e);return t=!1===t?a.apply(d,e):t}}}t.tokenizer=d}if(e.hooks){const d=this.defaults.hooks||new L;for(const t in e.hooks){if(!(t in d))throw new Error(`hook '${t}' does not exist`);if("options"!==t){const c=t,l=e.hooks[c],u=d[c];L.passThroughHooks.has(t)?d[c]=e=>{return this.defaults.async?Promise.resolve(l.call(d,e)).then(e=>u.call(d,e)):(e=l.call(d,e),u.call(d,e))}:d[c]=(...e)=>{let t=l.apply(d,e);return t=!1===t?u.apply(d,e):t}}}t.hooks=d}if(e.walkTokens){const d=this.defaults.walkTokens,h=e.walkTokens;t.walkTokens=function(e){let t=[];return t.push(h.call(this,e)),t=d?t.concat(d.call(this,e)):t}}this.defaults={...this.defaults,...t}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return j.lex(e,t??this.defaults)}parser(e,t){return M.parse(e,t??this.defaults)}#e(s,o){return(i,t)=>{const e={...t},n={...this.defaults,...e};!0===this.defaults.async&&!1===e.async&&(n.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),n.async=!0);t=this.#t(!!n.silent,!!n.async);if(null==i)return t(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof i)return t(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(n.hooks&&(n.hooks.options=n),n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(i):i).then(e=>s(e,n)).then(e=>n.hooks?n.hooks.processAllTokens(e):e).then(e=>n.walkTokens?Promise.all(this.walkTokens(e,n.walkTokens)).then(()=>e):e).then(e=>o(e,n)).then(e=>n.hooks?n.hooks.postprocess(e):e).catch(t);try{n.hooks&&(i=n.hooks.preprocess(i));let e=s(i,n),t=(n.hooks&&(e=n.hooks.processAllTokens(e)),n.walkTokens&&this.walkTokens(e,n.walkTokens),o(e,n));return t=n.hooks?n.hooks.postprocess(t):t}catch(e){return t(e)}}}#t(t,i){return e=>{if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t){const t="

    An error occurred:

    "+r(e.message+"",!0)+"
    ";return i?Promise.resolve(t):t}if(i)return Promise.reject(e);throw e}}}const O=new ce;function D(e,t){return O.parse(e,t)}D.options=D.setOptions=function(e){return O.setOptions(e),i(D.defaults=O.defaults),D},D.getDefaults=e,D.defaults=t.defaults,D.use=function(...e){return O.use(...e),i(D.defaults=O.defaults),D},D.walkTokens=function(e,t){return O.walkTokens(e,t)},D.parseInline=O.parseInline,D.Parser=M,D.parser=M.parse,D.Renderer=E,D.TextRenderer=R,D.Lexer=j,D.lexer=j.lex,D.Tokenizer=g,D.Hooks=L;var l=(D.parse=D).options,le=D.setOptions,ue=D.use,he=D.walkTokens,de=D.parseInline,ge=D,pe=M.parse,me=j.lex;t.Hooks=L,t.Lexer=j,t.Marked=ce,t.Parser=M,t.Renderer=E,t.TextRenderer=R,t.Tokenizer=g,t.getDefaults=e,t.lexer=me,t.marked=D,t.options=l,t.parse=ge,t.parseInline=de,t.parser=pe,t.setOptions=le,t.use=ue,t.walkTokens=he}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).DOMPurify=t()}(this,function(){"use strict";function Ce(){for(var e=arguments.length,t=Array(e),i=0;i/gm),it=e(/^data-[\-\w.\u00B7-\uFFFF]/),nt=e(/^aria-[\-\w]+$/),st=e(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ot=e(/^(?:\w+script|data):/i),rt=e(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Xe(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t"+e:n=(s=Le(e,/^[\r\n\t ]+/))&&s[0],h?h.createHTML(e):e);try{i=(new B).parseFromString(s,"text/html")}catch(e){}return i&&i.documentElement||((t=(i=r.createHTMLDocument("")).body).parentNode.removeChild(t.parentNode.firstElementChild),t.outerHTML=s),e&&n&&i.body.insertBefore(o.createTextNode(n),i.body.childNodes[0]||null),K.call(i,w?"html":"body")[0]},xe=function(e){return G.call(e.ownerDocument||e,e,t.SHOW_ELEMENT|t.SHOW_COMMENT|t.SHOW_TEXT,function(){return t.FILTER_ACCEPT},!1)},L=function(e){return"object"===(void 0===l?"undefined":Ye(l))?e instanceof l:e&&"object"===(void 0===e?"undefined":Ye(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},O=function(e,t,i){s[e]&&je(s[e],function(e){e.call(u,t,i,E)})},ke=function(e){if(O("beforeSanitizeElements",e,null),((r=e)instanceof F||r instanceof z||"string"==typeof r.nodeName&&"string"==typeof r.textContent&&"function"==typeof r.removeChild&&r.attributes instanceof P&&"function"==typeof r.removeAttribute&&"function"==typeof r.setAttribute&&"string"==typeof r.namespaceURI&&"function"==typeof r.insertBefore)&&!Le(e.nodeName,/[\u0080-\uFFFF]/)){var t,i,n,s,o,r=Me(e.nodeName);if(O("uponSanitizeElement",e,{tagName:r,allowedTags:m}),L(e.firstElementChild)||L(e.content)&&L(e.content.firstElementChild)||!Ie(/<[/\w]/g,e.innerHTML)||!Ie(/<[/\w]/g,e.textContent)){if(m[r]&&!b[r])return(!(e instanceof N)||((n=V(t=e))&&n.tagName||(n={namespaceURI:M,tagName:"template"}),s=Me(t.tagName),o=Me(n.tagName),t.namespaceURI===ve?n.namespaceURI===M?"svg"===s:n.namespaceURI===be?"svg"===s&&("annotation-xml"===o||pe[o]):Boolean(R[s]):t.namespaceURI===be?n.namespaceURI===M?"math"===s:n.namespaceURI===ve?"math"===s&&me[o]:Boolean(fe[s]):t.namespaceURI===M&&!(n.namespaceURI===ve&&!me[o]||n.namespaceURI===be&&!pe[o]||(i=Ne({},["title","style","font","a","script"]),fe[s]))&&(i[s]||!R[s])))&&("noscript"!==r&&"noembed"!==r||!Ie(/<\/no(script|embed)/i,e.innerHTML))?(y&&3===e.nodeType&&(t=e.textContent,t=Oe(t,d," "),t=Oe(t,g," "),e.textContent!==t)&&(Re(u.removed,{element:e.cloneNode()}),e.textContent=t),O("afterSanitizeElements",e,null),!1):(ye(e),!0);if(_&&!ce[r])for(var a=V(e),c=W(e),l=c.length-1;0<=l;--l)a.insertBefore(H(c[l],!0),q(e))}}return ye(e),!0},Ae=function(e,t,i){if(ae&&("id"===t||"name"===t)&&(i in o||i in de))return!1;if(!(v&&Ie(Q,t)||se&&Ie(J,t))){if(!f[t]||ne[t])return!1;if(!j[t]&&!Ie(p,Oe(i,ee,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==De(i,"data:")||!le[e])&&(!oe||Ie(Z,Oe(i,ee,"")))&&i)return!1}return!0},Se=function(e){var t=void 0,i=void 0,n=(O("beforeSanitizeAttributes",e,null),e.attributes);if(n){for(var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:f},i=n.length;i--;){a=n[i];var o=a.name,r=a.namespaceURI,t=Qe(a.value),a=Me(o);if(s.attrName=a,s.attrValue=t,s.keepAttr=!0,s.forceKeepAttr=void 0,O("uponSanitizeAttribute",e,s),t=s.attrValue,!s.forceKeepAttr&&(we(o,e),s.keepAttr))if(Ie(/\/>/i,t))we(o,e);else{y&&(t=Oe(t,d," "),t=Oe(t,g," "));var c=e.nodeName.toLowerCase();if(Ae(c,a,t))try{r?e.setAttributeNS(r,o,t):e.setAttribute(o,t),Ee(u.removed)}catch(e){}}}O("afterSanitizeAttributes",e,null)}},_e=function e(t){var i,n=xe(t);for(O("beforeSanitizeShadowDOM",t,null);i=n.nextNode();)O("uponSanitizeShadowNode",i,null),ke(i)||(i.content instanceof I&&e(i.content),Se(i));O("afterSanitizeShadowDOM",t,null)};u.sanitize=function(e,t){var i,n=void 0,s=void 0,o=void 0;if("string"!=typeof(e=e||"\x3c!--\x3e")&&!L(e)){if("function"!=typeof e.toString)throw Ce("toString is not a function");if("string"!=typeof(e=e.toString()))throw Ce("dirty is not a string, aborting")}if(!u.isSupported){if("object"===Ye(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(L(e))return a.toStaticHTML(e.outerHTML)}return e}if($||ge(t),u.removed=[],!(C="string"==typeof e?!1:C))if(e instanceof l)1===(t=(n=$e("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===t.nodeName||"HTML"===t.nodeName?n=t:n.appendChild(t);else{if(!k&&!y&&!w&&-1===e.indexOf("<"))return h&&S?h.createHTML(e):e;if(!(n=$e(e)))return k?null:U}n&&x&&ye(n.firstChild);for(var r=xe(C?e:n);i=r.nextNode();)3===i.nodeType&&i===s||ke(i)||(i.content instanceof I&&_e(i.content),Se(i),s=i);if(s=null,C)return e;if(k){if(A)for(o=Y.call(n.ownerDocument);n.firstChild;)o.appendChild(n.firstChild);else o=n;return o=re?X.call(c,o,!0):o}t=w?n.outerHTML:n.innerHTML;return y&&(t=Oe(t,d," "),t=Oe(t,g," ")),h&&S?h.createHTML(t):t},u.setConfig=function(e){ge(e),$=!0},u.clearConfig=function(){E=null,$=!1},u.isValidAttribute=function(e,t,i){E||ge({});e=Me(e),t=Me(t);return Ae(e,t,i)},u.addHook=function(e,t){"function"==typeof t&&(s[e]=s[e]||[],Re(s[e],t))},u.removeHook=function(e){s[e]&&Ee(s[e])},u.removeHooks=function(e){s[e]&&(s[e]=[])},u.removeAllHooks=function(){s={}}}else u.isSupported=!1;return u}()}),function(){function i(){this.fg=this.bg=null,this.bright=0}var e,t="undefined"!=typeof module,r=[[{color:"0, 0, 0",class:"ansi-black"},{color:"187, 0, 0",class:"ansi-red"},{color:"0, 187, 0",class:"ansi-green"},{color:"187, 187, 0",class:"ansi-yellow"},{color:"0, 0, 187",class:"ansi-blue"},{color:"187, 0, 187",class:"ansi-magenta"},{color:"0, 187, 187",class:"ansi-cyan"},{color:"255,255,255",class:"ansi-white"}],[{color:"85, 85, 85",class:"ansi-bright-black"},{color:"255, 85, 85",class:"ansi-bright-red"},{color:"0, 255, 0",class:"ansi-bright-green"},{color:"255, 255, 85",class:"ansi-bright-yellow"},{color:"85, 85, 255",class:"ansi-bright-blue"},{color:"255, 85, 255",class:"ansi-bright-magenta"},{color:"85, 255, 255",class:"ansi-bright-cyan"},{color:"255, 255, 255",class:"ansi-bright-white"}]];i.prototype.escape_for_html=function(e){return e.replace(/[&<>]/gm,function(e){return"&"==e?"&":"<"==e?"<":">"==e?">":void 0})},i.prototype.linkify=function(e){return e.replace(/(https?:\/\/[^\s]+)/gm,function(e){return'
    '+e+""})},i.prototype.ansi_to_html=function(e,t){var e=e.split(/\033\[/),i=e.shift(),n=this,e=e.map(function(e){return n.process_chunk(e,t)});return e.unshift(i),e.reduce(function(e,t){return Array.isArray(t)?e.concat(t):(e.push(t),e)},[]).join("")},i.prototype.process_chunk=function(e,t){var i,n,t=void 0!==(t=void 0===t?{}:t).use_classes&&t.use_classes,s=t?"class":"color",o=e.match(/([\d;]*)m([^]*)/m);return o?(i=o[2],o=o[1].split(";"),n=this,o.map(function(e){e=parseInt(e);isNaN(e)||0===e?(n.fg=n.bg=null,n.bright=0):1===e?n.bright=1:30<=e&&e<38?n.fg=r[n.bright][e%10][s]:40<=e&&e<48&&(n.bg=r[0][e%10][s])}),null===n.fg&&null===n.bg?i:(o=classes=[],n.fg&&(t?classes.push(n.fg+"-fg"):o.push("color:rgb("+n.fg+")")),n.bg&&(t?classes.push(n.bg+"-bg"):o.push("background-color:rgb("+n.bg+")")),t?['',i,""]:['',i,""])):e},e={escape_for_html:function(e){return(new i).escape_for_html(e)},linkify:function(e){return(new i).linkify(e)},ansi_to_html:function(e,t){return(new i).ansi_to_html(e,t)},ansi_to_html_obj:function(){return new i}},t&&(module.exports=e),"undefined"!=typeof window&&"undefined"==typeof ender&&(window.ansi_up=e),"function"==typeof define&&define.amd&&define("ansi_up",[],function(){return e})}(Date);var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(c){var e,t,l=/\blang(?:uage)?-([\w-]+)\b/i,i=0,D={manual:c.Prism&&c.Prism.manual,disableWorkerMessageHandler:c.Prism&&c.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof I?new I(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=r.reach);y+=v.value.length,v=v.next){var w=v.value;if(i.length>t.length)return;if(!(w instanceof I)){var $=1;if(p&&v!=i.tail.prev){if(b.lastIndex=y,!(_=b.exec(t)))break;var x=_.index+(g&&_[1]?_[1].length:0),k=_.index+_[0].length,A=y;for(A+=v.value.length;A<=x;)A+=(v=v.next).value.length;if(y=A-=v.value.length,v.value instanceof I)continue;for(var S=v;S!==i.tail&&(Ar.reach&&(r.reach=w),v.prev),R=(T&&(E=N(i,E,T),y+=T.length),O=L=M=T=R=void 0,i),T=E,M=$,L=T.next,O=0;O"+o.content+""},c.document)?((e=D.util.currentScript())&&(D.filename=e.src,e.hasAttribute("data-manual"))&&(D.manual=!0),D.manual||("loading"===(t=document.readyState)||"interactive"===t&&e&&e.defer?document.addEventListener("DOMContentLoaded",n):window.requestAnimationFrame?window.requestAnimationFrame(n):window.setTimeout(n,16))):c.addEventListener&&!D.disableWorkerMessageHandler&&c.addEventListener("message",function(e){var e=JSON.parse(e.data),t=e.language,i=e.code,e=e.immediateClose;c.postMessage(D.highlight(i,D.languages[t],t)),e&&c.close()},!1),D;function n(){D.manual||D.highlightAll()}}(_self),Org=("undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism),Prism.languages.markup={comment://,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/,name:/[^\s<>'"]+/}},cdata://i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var i={},i=(i["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[t]},i.cdata=/^$/i,{"included-cdata":{pattern://i,inside:i}}),t=(i["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]},{});t[e]={pattern:RegExp("(<__[^]*?>)(?:))*\\]\\]>|(?!)".replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:i},Prism.languages.insertBefore("markup","cdata",t)}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|(?:get|set)(?=\s*[\[$\w\xA0-\uFFFF])|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-flags":/[a-z]+$/,"regex-delimiter":/^\/|\/$/}},"function-variable":{pattern:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}}}),Prism.languages.markup&&Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.js=Prism.languages.javascript,Prism.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|\w*"(?:\\.|[^"\\\r\n])*"|(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'|`(?:[^\\`\r\n]|\\.)*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:true|false)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*\.?(?:\d+(?:_\d+)*)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:NaN|Inf)(?:16|32|64)?|im|pi|e|catalan|eulergamma|golden)\b|[πℯγφ]/},Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:{{)*){(?!{)(?:[^{}]|{(?!{)(?:[^{}]|{(?!{)(?:[^{}])+})+})+}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^\s*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,Prism.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:TRUE|FALSE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:NaN|Inf)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+\.?\d*|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:if|else|repeat|while|function|for|in|next|break|NULL|NA|NA_integer_|NA_real_|NA_complex_|NA_character_)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/},!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.katex=t():e.katex=t()}("undefined"!=typeof self?self:this,function(){"use strict";var I={d:function(e,t){for(var i in t)I.o(t,i)&&!I.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};I.d(t,{default:function(){return Sn}});class N{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;let i,n,s="KaTeX parse error: "+e;var o=t&&t.loc;if(o&&o.start<=o.end){const e=o.lexer.input,t=(i=o.start,n=o.end,i===e.length?s+=" at end of input: ":s+=" at position "+(i+1)+": ",e.slice(i,n).replace(/[^]/g,"$&̲"));var o=15":">","<":"<",'"':""","'":"'"},B=/[&><"']/g;var _={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(B,e=>z[e])},hyphenate:function(e){return e.replace(F,"-$1").toLowerCase()},getBaseElem:P,isCharacterBox:function(e){e=P(e);return"mathord"===e.type||"textord"===e.type||"atom"===e.type},protocolFromUrl:function(e){e=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return e?":"===e[2]&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?e[1].toLowerCase():null:"_relative"}};const H={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){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||{};for(const i in H){var t;H.hasOwnProperty(i)&&(t=H[i],this[i]=void 0!==e[i]?t.processor?t.processor(e[i]):e[i]:function(e){if(e.default)return e.default;if(e=e.type,"string"!=typeof(e=Array.isArray(e)?e[0]:e))return e.enum[0];switch(e){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}(t))}}reportNonstrict(e,t,i){let n=this.strict;if((n="function"==typeof n?n(e,t,i):n)&&"ignore"!==n){if(!0===n||"error"===n)throw new S("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",i);"warn"===n?"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 '"+n+"': "+t+" ["+e+"]")}}useStrictBehavior(e,t,i){let n=this.strict;if("function"==typeof n)try{n=n(e,t,i)}catch(e){n="error"}return!(!n||"ignore"===n||!0!==n&&"error"!==n&&("warn"===n?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]"),1))}isTrusted(e){if(e.url&&!e.protocol){const t=_.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}const t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)}}class W{constructor(e,t,i){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=i}sup(){return V[U[this.id]]}sub(){return V[G[this.id]]}fracNum(){return V[K[this.id]]}fracDen(){return V[Y[this.id]]}cramp(){return V[X[this.id]]}text(){return V[Q[this.id]]}isTight(){return 2<=this.size}}const V=[new W(0,0,!1),new W(1,0,!0),new W(2,1,!1),new W(3,1,!0),new W(4,2,!1),new W(5,2,!0),new W(6,3,!1),new W(7,3,!0)],U=[4,5,4,5,6,7,6,7],G=[5,5,5,5,7,7,7,7],K=[2,3,4,5,6,7,6,7],Y=[3,3,5,5,7,7,7,7],X=[1,1,3,3,5,5,7,7],Q=[0,1,2,3,2,3,2,3];var C={DISPLAY:V[0],TEXT:V[2],SCRIPT:V[4],SCRIPTSCRIPT:V[6]};const J=[{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]]}],Z=[];function ee(t){for(let e=0;e=Z[e]&&t<=Z[e+1])return 1}J.forEach(e=>e.blocks.forEach(e=>Z.push(...e)));const te={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"};class ie{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 _.contains(this.classes,e)}toNode(){var t=document.createDocumentFragment();for(let e=0;ee.toText()).join("")}}var ne={"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]}};const se={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]},oe={"Å":"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 re(e,t,i){if(!ne[t])throw new Error("Font metrics not found for font: "+t+".");let n=e.charCodeAt(0),s=ne[t][n];if(!s&&e[0]in oe&&(n=oe[e[0]].charCodeAt(0),s=ne[t][n]),s||"text"!==i||ee(n)&&(s=ne[t][77]),s)return{depth:s[0],height:s[1],italic:s[2],skew:s[3],width:s[4]}}function ae(e,t){return t.size<2?e:le[e-1][t.size-1]}const ce={},le=[[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]],ue=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488];class he{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||he.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=ue[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(const i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return new he(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:ae(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:ue[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=ae(he.BASESIZE,e);return this.size===t&&this.textSize===he.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){let 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!==he.BASESIZE?["sizing","reset-size"+this.size,"size"+he.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t=5<=e?0:3<=e?1:2;if(!ce[t]){const e=ce[t]={cssEmPerMu:se.quad[t]/18};for(const i in se)se.hasOwnProperty(i)&&(e[i]=se[i][t])}return ce[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}he.BASESIZE=6;var de=he;function ge(e){return(e="string"!=typeof e?e.unit:e)in ve||e in ye||"ex"===e}function T(e,t){let i;if(e.unit in ve)i=ve[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)i=t.fontMetrics().cssEmPerMu;else{var n=t.style.isTight()?t.havingStyle(t.style.text()):t;if("ex"===e.unit)i=n.fontMetrics().xHeight;else{if("em"!==e.unit)throw new S("Invalid unit: '"+e.unit+"'");i=n.fontMetrics().quad}n!==t&&(i*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*i,t.maxSize)}function pe(e){return e.filter(e=>e).join(" ")}function me(e,t,i){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=i||{},t){t.style.isTight()&&this.classes.push("mtight");const e=t.getColor();e&&(this.style.color=e)}}function fe(e){var t=document.createElement(e);t.className=pe(this.classes);for(const e in this.style)this.style.hasOwnProperty(e)&&(t.style[e]=this.style[e]);for(const e in this.attributes)this.attributes.hasOwnProperty(e)&&t.setAttribute(e,this.attributes[e]);for(let e=0;e"}const ve={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},ye={ex:!0,em:!0,mu:!0},j=function(e){return+e.toFixed(4)+"em"};class we{constructor(e,t,i,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,me.call(this,e,i,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return _.contains(this.classes,e)}toNode(){return fe.call(this,"span")}toMarkup(){return be.call(this,"span")}}class $e{constructor(e,t,i,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,me.call(this,t,n),this.children=i||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return _.contains(this.classes,e)}toNode(){return fe.call(this,"a")}toMarkup(){return be.call(this,"a")}}class xe{constructor(e,t,i){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=i}hasClass(e){return _.contains(this.classes,e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(const t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){let e=''+_.escape(this.alt)+'=n[0]&&t<=n[1])return i.name}}return null}(this.text.charCodeAt(0));e&&this.classes.push(e+"_fallback"),/[\xee\xef\xed\xec]/.test(this.text)&&(this.text=ke[this.text])}hasClass(e){return _.contains(this.classes,e)}toNode(){const e=document.createTextNode(this.text);let t=null;0")+n+"":n}}class Ae{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");for(const e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);for(let e=0;e':''}}class _e{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){let e="","\\gt",!0),i(n,o,g,"∈","\\in",!0),i(n,o,g,"","\\@not"),i(n,o,g,"⊂","\\subset",!0),i(n,o,g,"⊃","\\supset",!0),i(n,o,g,"⊆","\\subseteq",!0),i(n,o,g,"⊇","\\supseteq",!0),i(n,e,g,"⊈","\\nsubseteq",!0),i(n,e,g,"⊉","\\nsupseteq",!0),i(n,o,g,"⊨","\\models"),i(n,o,g,"←","\\leftarrow",!0),i(n,o,g,"≤","\\le"),i(n,o,g,"≤","\\leq",!0),i(n,o,g,"<","\\lt",!0),i(n,o,g,"→","\\rightarrow",!0),i(n,o,g,"→","\\to"),i(n,e,g,"≱","\\ngeq",!0),i(n,e,g,"≰","\\nleq",!0),i(n,o,m," ","\\ "),i(n,o,m," ","\\space"),i(n,o,m," ","\\nobreakspace"),i(s,o,m," ","\\ "),i(s,o,m," "," "),i(s,o,m," ","\\space"),i(s,o,m," ","\\nobreakspace"),i(n,o,m,null,"\\nobreak"),i(n,o,m,null,"\\allowbreak"),i(n,o,Me,",",","),i(n,o,Me,";",";"),i(n,e,a,"⊼","\\barwedge",!0),i(n,e,a,"⊻","\\veebar",!0),i(n,o,a,"⊙","\\odot",!0),i(n,o,a,"⊕","\\oplus",!0),i(n,o,a,"⊗","\\otimes",!0),i(n,o,f,"∂","\\partial",!0),i(n,o,a,"⊘","\\oslash",!0),i(n,e,a,"⊚","\\circledcirc",!0),i(n,e,a,"⊡","\\boxdot",!0),i(n,o,a,"△","\\bigtriangleup"),i(n,o,a,"▽","\\bigtriangledown"),i(n,o,a,"†","\\dagger"),i(n,o,a,"⋄","\\diamond"),i(n,o,a,"⋆","\\star"),i(n,o,a,"◃","\\triangleleft"),i(n,o,a,"▹","\\triangleright"),i(n,o,d,"{","\\{"),i(s,o,f,"{","\\{"),i(s,o,f,"{","\\textbraceleft"),i(n,o,c,"}","\\}"),i(s,o,f,"}","\\}"),i(s,o,f,"}","\\textbraceright"),i(n,o,d,"{","\\lbrace"),i(n,o,c,"}","\\rbrace"),i(n,o,d,"[","\\lbrack",!0),i(s,o,f,"[","\\lbrack",!0),i(n,o,c,"]","\\rbrack",!0),i(s,o,f,"]","\\rbrack",!0),i(n,o,d,"(","\\lparen",!0),i(n,o,c,")","\\rparen",!0),i(s,o,f,"<","\\textless",!0),i(s,o,f,">","\\textgreater",!0),i(n,o,d,"⌊","\\lfloor",!0),i(n,o,c,"⌋","\\rfloor",!0),i(n,o,d,"⌈","\\lceil",!0),i(n,o,c,"⌉","\\rceil",!0),i(n,o,f,"\\","\\backslash"),i(n,o,f,"∣","|"),i(n,o,f,"∣","\\vert"),i(s,o,f,"|","\\textbar",!0),i(n,o,f,"∥","\\|"),i(n,o,f,"∥","\\Vert"),i(s,o,f,"∥","\\textbardbl"),i(s,o,f,"~","\\textasciitilde"),i(s,o,f,"\\","\\textbackslash"),i(s,o,f,"^","\\textasciicircum"),i(n,o,g,"↑","\\uparrow",!0),i(n,o,g,"⇑","\\Uparrow",!0),i(n,o,g,"↓","\\downarrow",!0),i(n,o,g,"⇓","\\Downarrow",!0),i(n,o,g,"↕","\\updownarrow",!0),i(n,o,g,"⇕","\\Updownarrow",!0),i(n,o,u,"∐","\\coprod"),i(n,o,u,"⋁","\\bigvee"),i(n,o,u,"⋀","\\bigwedge"),i(n,o,u,"⨄","\\biguplus"),i(n,o,u,"⋂","\\bigcap"),i(n,o,u,"⋃","\\bigcup"),i(n,o,u,"∫","\\int"),i(n,o,u,"∫","\\intop"),i(n,o,u,"∬","\\iint"),i(n,o,u,"∭","\\iiint"),i(n,o,u,"∏","\\prod"),i(n,o,u,"∑","\\sum"),i(n,o,u,"⨂","\\bigotimes"),i(n,o,u,"⨁","\\bigoplus"),i(n,o,u,"⨀","\\bigodot"),i(n,o,u,"∮","\\oint"),i(n,o,u,"∯","\\oiint"),i(n,o,u,"∰","\\oiiint"),i(n,o,u,"⨆","\\bigsqcup"),i(n,o,u,"∫","\\smallint"),i(s,o,Re,"…","\\textellipsis"),i(n,o,Re,"…","\\mathellipsis"),i(s,o,Re,"…","\\ldots",!0),i(n,o,Re,"…","\\ldots",!0),i(n,o,Re,"⋯","\\@cdots",!0),i(n,o,Re,"⋱","\\ddots",!0),i(n,o,f,"⋮","\\varvdots"),i(n,o,r,"ˊ","\\acute"),i(n,o,r,"ˋ","\\grave"),i(n,o,r,"¨","\\ddot"),i(n,o,r,"~","\\tilde"),i(n,o,r,"ˉ","\\bar"),i(n,o,r,"˘","\\breve"),i(n,o,r,"ˇ","\\check"),i(n,o,r,"^","\\hat"),i(n,o,r,"⃗","\\vec"),i(n,o,r,"˙","\\dot"),i(n,o,r,"˚","\\mathring"),i(n,o,l,"","\\@imath"),i(n,o,l,"","\\@jmath"),i(n,o,f,"ı","ı"),i(n,o,f,"ȷ","ȷ"),i(s,o,f,"ı","\\i",!0),i(s,o,f,"ȷ","\\j",!0),i(s,o,f,"ß","\\ss",!0),i(s,o,f,"æ","\\ae",!0),i(s,o,f,"œ","\\oe",!0),i(s,o,f,"ø","\\o",!0),i(s,o,f,"Æ","\\AE",!0),i(s,o,f,"Œ","\\OE",!0),i(s,o,f,"Ø","\\O",!0),i(s,o,r,"ˊ","\\'"),i(s,o,r,"ˋ","\\`"),i(s,o,r,"ˆ","\\^"),i(s,o,r,"˜","\\~"),i(s,o,r,"ˉ","\\="),i(s,o,r,"˘","\\u"),i(s,o,r,"˙","\\."),i(s,o,r,"¸","\\c"),i(s,o,r,"˚","\\r"),i(s,o,r,"ˇ","\\v"),i(s,o,r,"¨",'\\"'),i(s,o,r,"˝","\\H"),i(s,o,r,"◯","\\textcircled");const Le={"--":!0,"---":!0,"``":!0,"''":!0};i(s,o,f,"–","--",!0),i(s,o,f,"–","\\textendash"),i(s,o,f,"—","---",!0),i(s,o,f,"—","\\textemdash"),i(s,o,f,"‘","`",!0),i(s,o,f,"‘","\\textquoteleft"),i(s,o,f,"’","'",!0),i(s,o,f,"’","\\textquoteright"),i(s,o,f,"“","``",!0),i(s,o,f,"“","\\textquotedblleft"),i(s,o,f,"”","''",!0),i(s,o,f,"”","\\textquotedblright"),i(n,o,f,"°","\\degree",!0),i(s,o,f,"°","\\degree"),i(s,o,f,"°","\\textdegree",!0),i(n,o,f,"£","\\pounds"),i(n,o,f,"£","\\mathsterling",!0),i(s,o,f,"£","\\pounds"),i(s,o,f,"£","\\textsterling",!0),i(n,e,f,"✠","\\maltese"),i(s,e,f,"✠","\\maltese");var Oe='0123456789/@."';for(let e=0;ei&&(i=o.height),o.depth>n&&(n=o.depth),o.maxFontSize>s&&(s=o.maxFontSize)}t.height=i,t.depth=n,t.maxFontSize=s}function v(e,t,i,n){return e=new we(e,t,i,n),Fe(e),e}function ze(e){return e=new ie(e),Fe(e),e}function Be(e,t,i){let n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}return n+"-"+("textbf"===t&&"textit"===i?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")}const He=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],qe=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],We=(e,t,i,n)=>new we(e,t,i,n),Ve={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Ue={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]};var E={fontMap:Ve,makeSymbol:Pe,mathsym:function(e,t,i,n){return void 0===n&&(n=[]),"boldsymbol"===i.font&&Ne(e,"Main-Bold",t).metrics?Pe(e,"Main-Bold",t,i,n.concat(["mathbf"])):"\\"===e||"main"===h[t][e].font?Pe(e,"Main-Regular",t,i,n):Pe(e,"AMS-Regular",t,i,n.concat(["amsrm"]))},makeSpan:v,makeSvgSpan:We,makeLineSpan:function(e,t,i){e=v([e],[],t);return e.height=Math.max(i||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),e.style.borderBottomWidth=j(e.height),e.maxFontSize=1,e},makeAnchor:function(e,t,i,n){e=new $e(e,t,i,n);return Fe(e),e},makeFragment:ze,wrapFragment:function(e,t){return e instanceof ie?v([],[e],t):e},makeVList:function(t,i){const{children:n,depth:s}=function(i){if("individualShift"===i.positionType){const o=i.children,a=[o[0]],c=-o[0].shift-o[0].elem.depth;let t=c;for(let e=1;e{var i=v(["mspace"],[],t),e=T(e,t);return i.style.marginRight=j(e),i},staticSvg:function(e,t){var[e,i,n]=Ue[e],e=new Se(e),e=new Ae([e],{width:j(i),height:j(n),style:"width:"+j(i),viewBox:"0 0 "+1e3*i+" "+1e3*n,preserveAspectRatio:"xMinYMin"}),e=We(["overlay"],[e],t);return e.height=n,e.style.height=j(n),e.style.width=j(i),e},svgData:Ue,tryCombineChars:t=>{for(let e=0;e{if(pe(e.classes)!==pe(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){const t=e.classes[0];if("mbin"===t||"mord"===t)return!1}for(const i in e.style)if(e.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;for(const n in t.style)if(t.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;return!0})(i,n)&&(i.text+=n.text,i.height=Math.max(i.height,n.height),i.depth=Math.max(i.depth,n.depth),i.italic=n.italic,t.splice(e+1,1),e--)}return t}};const y={number:3,unit:"mu"},Ge={number:4,unit:"mu"},Ke={number:5,unit:"mu"},Ye={mord:{mop:y,mbin:Ge,mrel:Ke,minner:y},mop:{mord:y,mop:y,mrel:Ke,minner:y},mbin:{mord:Ge,mop:Ge,mopen:Ge,minner:Ge},mrel:{mord:Ke,mop:Ke,mopen:Ke,minner:Ke},mopen:{},mclose:{mop:y,mbin:Ge,mrel:Ke,minner:y},mpunct:{mord:y,mop:y,mrel:Ke,mopen:y,mclose:y,mpunct:y,minner:y},minner:{mord:y,mop:y,mbin:Ge,mrel:Ke,mopen:y,mpunct:y,minner:y}},Xe={mord:{mop:y},mop:{mord:y,mop:y},mbin:{},mrel:{},mopen:{},mclose:{mop:y},mpunct:{},minner:{mop:y}},Qe={},Je={},Ze={};function w(e){var{type:e,names:t,props:i,handler:n,htmlBuilder:s,mathmlBuilder:o}=e,r={type:e,numArgs:i.numArgs,argTypes:i.argTypes,allowedInArgument:!!i.allowedInArgument,allowedInText:!!i.allowedInText,allowedInMath:void 0===i.allowedInMath||i.allowedInMath,numOptionalArgs:i.numOptionalArgs||0,infix:!!i.infix,primitive:!!i.primitive,handler:n};for(let e=0;e{var i=t.classes[0],n=e.classes[0];"mbin"===i&&_.contains(ot,n)?t.classes[0]="mord":"mbin"===n&&_.contains(st,i)&&(e.classes[0]="mord")},{node:r},s,e),ct(o,(e,t)=>{var t=ht(t),i=ht(e),e=t&&i?(e.hasClass("mtight")?Xe:Ye)[t][i]:null;if(e)return E.makeGlue(e,n)},{node:r},s,e)}return o}function it(e,t){return e=["nulldelimiter"].concat(e.baseSizingClasses()),nt(t.concat(e))}const nt=E.makeSpan,st=["leftmost","mbin","mopen","mrel","mop","mpunct"],ot=["rightmost","mrel","mclose","mpunct"],rt={display:C.DISPLAY,text:C.TEXT,script:C.SCRIPT,scriptscript:C.SCRIPTSCRIPT},at={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},ct=function(i,e,t,n,s){n&&i.push(n);let o=0;for(;oe=>{i.splice(t+1,0,e),o++})(o)}}n&&i.pop()},lt=function(e){return e instanceof ie||e instanceof $e||e instanceof we&&e.hasClass("enclosing")?e:null},ut=function(e,t){var i=lt(e);if(i){const e=i.children;if(e.length){if("right"===t)return ut(e[e.length-1],"right");if("left"===t)return ut(e[0],"left")}}return e},ht=function(e,t){return e&&(t&&(e=ut(e,t)),at[e.classes[0]])||null},M=function(t,i,n){if(!t)return nt();if(Je[t.type]){let e=Je[t.type](t,i);if(n&&i.size!==n.size){e=nt(i.sizingClasses(n),[e],i);const t=i.sizeMultiplier/n.sizeMultiplier;e.height*=t,e.depth*=t}return e}throw new S("Got group of unknown type: '"+t.type+"'")};function dt(e,t){e=nt(["base"],e,t),t=nt(["strut"]);return t.style.height=j(e.height+e.depth),e.depth&&(t.style.verticalAlign=j(-e.depth)),e.children.unshift(t),e}function gt(e,i){let t=null;1===e.length&&"tag"===e[0].type&&(t=e[0].tag,e=e[0].body);var n=R(e,i,"root");let s;2===n.length&&n[1].hasClass("tag")&&(s=n.pop());var o=[];let r,a=[];for(let t=0;t"}toText(){return this.children.map(e=>e.toText()).join("")}}class mt{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return _.escape(this.toText())}toText(){return this.text}}var k={MathNode:x,TextNode:mt,SpaceNode:class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=.05555<=e&&e<=.05556?" ":.1666<=e&&e<=.1667?" ":.2222<=e&&e<=.2223?" ":.2777<=e&&e<=.2778?"  ":-.05556<=e&&e<=-.05555?" ⁣":-.1667<=e&&e<=-.1666?" ⁣":-.2223<=e&&e<=-.2222?" ⁣":-.2778<=e&&e<=-.2777?" ⁣":null}toNode(){var e;return this.character?document.createTextNode(this.character):((e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace")).setAttribute("width",j(this.width)),e)}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character||" "}},newDocumentFragment:pt};function ft(e,t,i){return!h[t][e]||!h[t][e].replace||55349===e.charCodeAt(0)||Le.hasOwnProperty(e)&&i&&(i.fontFamily&&"tt"===i.fontFamily.slice(4,6)||i.font&&"tt"===i.font.slice(4,6))||(e=h[t][e].replace),new k.TextNode(e)}function bt(e){return 1===e.length?e[0]:new k.MathNode("mrow",e)}function vt(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";if(!(t=t.font)||"mathnormal"===t)return null;var i=e.mode;if("mathit"===t)return"italic";if("boldsymbol"===t)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===t)return"bold";if("mathbb"===t)return"double-struck";if("mathfrak"===t)return"fraktur";if("mathscr"===t||"mathcal"===t)return"script";if("mathsf"===t)return"sans-serif";if("mathtt"===t)return"monospace";let n=e.text;return!_.contains(["\\imath","\\jmath"],n)&&re(n=h[i][n]&&h[i][n].replace?h[i][n].replace:n,E.fontMap[t].fontName,i)?E.fontMap[t].variant:null}function A(t,i,e){if(1===t.length){const n=L(t[0],i);return e&&n instanceof x&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}const n=[];let s;for(let e=0;e{let e,o,r;n&&"supsub"===n.type?(o=O(n.base,"accent"),e=o.base,n.base=e,r=function(e){if(e instanceof we)return e;throw new Error("Expected span but got "+String(e)+".")}(M(n,s)),n.base=o):(o=O(n,"accent"),e=o.base);n=M(e,s.havingCrampedStyle());let a=0;if(o.isShifty&&_.isCharacterBox(e)){const n=_.getBaseElem(e);a=Ce(M(n,s.havingCrampedStyle())).skew}var c="\\c"===o.label;let l,u=c?n.height+n.depth:Math.min(n.height,s.fontMetrics().xHeight);if(o.isStretchy)l=_t(o,s),l=E.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"elem",elem:l,wrapperClasses:["svg-align"],wrapperStyle:0{var i=e.isStretchy?St(e.label):new k.MathNode("mo",[ft(e.label,e.mode)]),e=new k.MathNode("mover",[L(e.base,t),i]);return e.setAttribute("accent","true"),e},Rt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|")),Mt=(w({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 t=tt(t[0]),i=!Rt.test(e.funcName),n=!i||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:i,isShifty:n,base:t}},htmlBuilder:jt,mathmlBuilder:Et}),w({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{t=t[0];let i=e.parser.mode;return"math"===i&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),i="text"),{type:"accent",mode:i,label:e.funcName,isStretchy:!1,isShifty:!0,base:t}},htmlBuilder:jt,mathmlBuilder:Et}),w({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:e,funcName:i}=e,t=t[0];return{type:"accentUnder",mode:e.mode,label:i,base:t}},htmlBuilder:(e,t)=>{var i=M(e.base,t),n=_t(e,t),e="\\utilde"===e.label?.12:0,n=E.makeVList({positionType:"top",positionData:i.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:e},{type:"elem",elem:i}]},t);return E.makeSpan(["mord","accentunder"],[n],t)},mathmlBuilder:(e,t)=>{var i=St(e.label),e=new k.MathNode("munder",[L(e.base,t),i]);return e.setAttribute("accentunder","true"),e}}),e=>{e=new k.MathNode("mpadded",e?[e]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e}),Lt=(w({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,i){var{parser:e,funcName:n}=e;return{type:"xArrow",mode:e.mode,label:n,body:t[0],below:i[0]}},htmlBuilder(e,t){var i=t.style,n=t.havingStyle(i.sup()),s=E.wrapFragment(M(e.body,n,t),t),o="\\x"===e.label.slice(0,2)?"x":"cd";let r;s.classes.push(o+"-arrow-pad"),e.below&&(n=t.havingStyle(i.sub()),(r=E.wrapFragment(M(e.below,n,t),t)).classes.push(o+"-arrow-pad"));i=_t(e,t),n=-t.fontMetrics().axisHeight+.5*i.height;let a,c=-t.fontMetrics().axisHeight-.5*i.height-.111;if((.25{e="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==e.type||"bin"!==e.family&&"rel"!==e.family?"mord":"m"+e.family},Nt=(w({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){e=e.parser;return{type:"mclass",mode:e.mode,mclass:It(t[0]),body:$(t[1]),isCharacterBox:_.isCharacterBox(t[1])}}}),w({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:e,funcName:i}=e,n=t[1],t=t[0],s="\\stackrel"!==i?It(n):"mrel",n={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==i,body:$(n)},n={type:"supsub",mode:t.mode,base:n,sup:"\\underset"===i?null:t,sub:"\\underset"===i?t:null};return{type:"mclass",mode:e.mode,mclass:s,body:[n],isCharacterBox:_.isCharacterBox(n)}},htmlBuilder:Ot,mathmlBuilder:Dt}),w({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){e=e.parser;return{type:"pmb",mode:e.mode,mclass:It(t[0]),body:$(t[0])}},htmlBuilder(e,t){var i=R(e.body,t,!0),e=E.makeSpan([e.mclass],i,t);return e.style.textShadow="0.02em 0.01em 0.04px",e},mathmlBuilder(e,t){e=A(e.body,t),t=new k.MathNode("mstyle",e);return t.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),t}}),{">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"}),Pt=e=>"textord"===e.type&&"@"===e.text;w({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:e,funcName:i}=e;return{type:"cdlabel",mode:e.mode,side:i.slice(4),label:t[0]}},htmlBuilder(e,t){var i=t.havingStyle(t.style.sup()),i=E.wrapFragment(M(e.label,i,t),t);return i.classes.push("cd-label-"+e.side),i.style.bottom=j(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(e,t){let i=new k.MathNode("mrow",[L(e.label,t)]);return(i=new k.MathNode("mpadded",[i])).setAttribute("width","0"),"left"===e.side&&i.setAttribute("lspace","-1width"),i.setAttribute("voffset","0.7em"),(i=new k.MathNode("mstyle",[i])).setAttribute("displaystyle","false"),i.setAttribute("scriptlevel","1"),i}}),w({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){e=e.parser;return{type:"cdlabelparent",mode:e.mode,fragment:t[0]}},htmlBuilder(e,t){e=E.wrapFragment(M(e.fragment,t),t);return e.classes.push("cd-vert-arrow"),e},mathmlBuilder(e,t){return new k.MathNode("mrow",[L(e.fragment,t)])}}),w({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){var e=e["parser"],i=O(t[0],"ordgroup").body;let n="";for(let e=0;e>10),56320+(1023&o))),{type:"textord",mode:e.mode,text:s}}});m=(e,t)=>{t=R(e.body,t.withColor(e.color),!1);return E.makeFragment(t)},Me=(e,t)=>{t=A(e.body,t.withColor(e.color)),t=new k.MathNode("mstyle",t);return t.setAttribute("mathcolor",e.color),t};w({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var e=e["parser"],i=O(t[0],"color-token").color,t=t[1];return{type:"color",mode:e.mode,color:i,body:$(t)}},htmlBuilder:m,mathmlBuilder:Me}),w({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:e,breakOnTokenText:i}=e,t=O(t[0],"color-token").color,i=(e.gullet.macros.set("\\current@color",t),e.parseExpression(!0,i));return{type:"color",mode:e.mode,color:t,body:i}},htmlBuilder:m,mathmlBuilder:Me}),w({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,i){var e=e["parser"],n="["===e.gullet.future().text?e.parseSizeGroup(!0):null,s=!e.settings.displayMode||!e.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:e.mode,newLine:s,size:n&&O(n,"size").value}},htmlBuilder(e,t){var i=E.makeSpan(["mspace"],[],t);return e.newLine&&(i.classes.push("newline"),e.size)&&(i.style.marginTop=j(T(e.size,t))),i},mathmlBuilder(e,t){var i=new k.MathNode("mspace");return e.newLine&&(i.setAttribute("linebreak","newline"),e.size)&&i.setAttribute("height",j(T(e.size,t))),i}});function Ft(e,t,i){if(i=re(h.math[e]&&h.math[e].replace||e,t,i))return i;throw new Error("Unsupported symbol "+e+" and font size "+t+".")}function zt(e,t,i,n){return t=i.havingBaseStyle(t),n=E.makeSpan(n.concat(t.sizingClasses(i)),[e],i),e=t.sizeMultiplier/i.sizeMultiplier,n.height*=e,n.depth*=e,n.maxFontSize=t.sizeMultiplier,n}function Bt(e,t,i){i=t.havingBaseStyle(i),i=(1-t.sizeMultiplier/i.sizeMultiplier)*t.fontMetrics().axisHeight,e.classes.push("delimcenter"),e.style.top=j(i),e.height-=i,e.depth+=i}function Ht(e,t,i,n,s,o){return e=E.makeSymbol(e,"Size"+t+"-Regular",s,n),s=zt(E.makeSpan(["delimsizing","size"+t],[e],n),C.TEXT,n,o),i&&Bt(s,n,C.TEXT),s}function qt(e,t,i){return{type:"elem",elem:E.makeSpan(["delimsizinginner","Size1-Regular"===t?"delim-size1":"delim-size4"],[E.makeSpan([],[E.makeSymbol(e,t,i)])])}}function Wt(e,t,i){var n=(ne["Size4-Regular"][e.charCodeAt(0)]?ne["Size4-Regular"]:ne["Size1-Regular"])[e.charCodeAt(0)][4],e=new Se("inner",function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),e=new Ae([e],{width:j(n),height:j(t),style:"width:"+j(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"});return(e=E.makeSvgSpan([],[e],i)).height=t,e.style.height=j(t),e.style.width=j(n),{type:"elem",elem:e}}function Vt(e,t,i,n,s,o){let r,a,c,l,u="",h=0,d=(r=c=l=e,a=null,"Size1-Regular");"\\uparrow"===e?c=l="⏐":"\\Uparrow"===e?c=l="‖":"\\downarrow"===e?r=c="⏐":"\\Downarrow"===e?r=c="‖":"\\updownarrow"===e?(r="\\uparrow",c="⏐",l="\\downarrow"):"\\Updownarrow"===e?(r="\\Uparrow",c="‖",l="\\Downarrow"):_.contains(Zt,e)?(c="∣",u="vert",h=333):_.contains(ei,e)?(c="∥",u="doublevert",h=556):"["===e||"\\lbrack"===e?(r="⎡",c="⎢",l="⎣",d="Size4-Regular",u="lbrack",h=667):"]"===e||"\\rbrack"===e?(r="⎤",c="⎥",l="⎦",d="Size4-Regular",u="rbrack",h=667):"\\lfloor"===e||"⌊"===e?(c=r="⎢",l="⎣",d="Size4-Regular",u="lfloor",h=667):"\\lceil"===e||"⌈"===e?(r="⎡",c=l="⎢",d="Size4-Regular",u="lceil",h=667):"\\rfloor"===e||"⌋"===e?(c=r="⎥",l="⎦",d="Size4-Regular",u="rfloor",h=667):"\\rceil"===e||"⌉"===e?(r="⎤",c=l="⎥",d="Size4-Regular",u="rceil",h=667):"("===e||"\\lparen"===e?(r="⎛",c="⎜",l="⎝",d="Size4-Regular",u="lparen",h=875):")"===e||"\\rparen"===e?(r="⎞",c="⎟",l="⎠",d="Size4-Regular",u="rparen",h=875):"\\{"===e||"\\lbrace"===e?(r="⎧",a="⎨",l="⎩",c="⎪",d="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(r="⎫",a="⎬",l="⎭",c="⎪",d="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(r="⎧",l="⎩",c="⎪",d="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(r="⎫",l="⎭",c="⎪",d="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(r="⎧",l="⎭",c="⎪",d="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(r="⎫",l="⎩",c="⎪",d="Size4-Regular");var e=Ft(r,d,s),g=e.height+e.depth,e=Ft(c,d,s),e=e.height+e.depth,p=(p=Ft(l,d,s)).height+p.depth;let m=0,f=1;if(null!==a){const e=Ft(a,d,s);m=e.height+e.depth,f=2}var b=(b=g+p+m)+Math.max(0,Math.ceil((t-b)/(f*e)))*f*e;let v=n.fontMetrics().axisHeight;i&&(v*=n.sizeMultiplier);var t=b/2-v,y=[];if(0n)return s[t]}return s[s.length-1]}function Kt(e,t,i,n,s,o){"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),h=_.contains(ni,e)?oi:_.contains(ti,e)?ai:ri;var r,a,c,l,u,h=Gt(e,t,h,n);return"small"===h.type?(r=e,a=h.style,c=i,l=n,u=o,r=E.makeSymbol(r,"Main-Regular",s,l),r=zt(r,a,l,u),c&&Bt(r,l,a),r):"large"===h.type?Ht(e,h.size,i,n,s,o):Vt(e,t,i,n,s,o)}const Yt={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Xt=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new S("Expected a control sequence",e);return t},Qt=(e,t,i,n)=>{let s=e.gullet.macros.get(i.text);null==s&&(i.noexpand=!0,s={tokens:[i],numArgs:0,unexpandable:!e.gullet.isExpandable(i.text)}),e.gullet.macros.set(t,s,n)},Jt=(w({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:e,funcName:t}=e,i=(e.consumeSpaces(),e.fetch());if(Yt[i.text])return"\\global"!==t&&"\\\\globallong"!==t||(i.text=Yt[i.text]),O(e.parseFunction(),"internal");throw new S("Invalid token after macro prefix",i)}}),w({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){let{parser:t,funcName:i}=e,n=t.gullet.popToken();e=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new S("Expected a control sequence",n);let s,o=0;for(var r=[[]];"{"!==t.gullet.future().text;)if("#"===(n=t.gullet.popToken()).text){if("{"===t.gullet.future().text){s=t.gullet.future(),r[o].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new S('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==o+1)throw new S('Argument number "'+n.text+'" out of order');o++,r.push([])}else{if("EOF"===n.text)throw new S("Expected a macro definition");r[o].push(n.text)}let a=t.gullet.consumeArg()["tokens"];return s&&a.unshift(s),"\\edef"!==i&&"\\xdef"!==i||(a=t.gullet.expandTokens(a)).reverse(),t.gullet.macros.set(e,{tokens:a,numArgs:o,delimiters:r},i===Yt[i]),{type:"internal",mode:t.mode}}}),w({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:e,funcName:t}=e,i=Xt(e.gullet.popToken()),n=(e.gullet.consumeSpaces(),(e=>{let t=e.gullet.popToken();return t="="===t.text&&" "===(t=e.gullet.popToken()).text?e.gullet.popToken():t})(e));return Qt(e,i,n,"\\\\globallet"===t),{type:"internal",mode:e.mode}}}),w({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:e,funcName:t}=e,i=Xt(e.gullet.popToken()),n=e.gullet.popToken(),s=e.gullet.popToken();return Qt(e,i,s,"\\\\globalfuture"===t),e.gullet.pushToken(s),e.gullet.pushToken(n),{type:"internal",mode:e.mode}}}),{type:"kern",size:-.008}),Zt=["|","\\lvert","\\rvert","\\vert"],ei=["\\|","\\lVert","\\rVert","\\Vert"],ti=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],ii=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],ni=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],si=[0,1.2,1.8,2.4,3],oi=[{type:"small",style:C.SCRIPTSCRIPT},{type:"small",style:C.SCRIPT},{type:"small",style:C.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],ri=[{type:"small",style:C.SCRIPTSCRIPT},{type:"small",style:C.SCRIPT},{type:"small",style:C.TEXT},{type:"stack"}],ai=[{type:"small",style:C.SCRIPTSCRIPT},{type:"small",style:C.SCRIPT},{type:"small",style:C.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}];var ci={sqrtImage:function(e,t){var i=t.havingBaseSizing(),n=Gt("\\surd",e*i.sizeMultiplier,ai,i);let s=i.sizeMultiplier;i=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness);let o,r,a=0,c=0,l=0;return r="small"===n.type?(l=1e3+1e3*i+80,e<1?s=1:e<1.4&&(s=.7),a=(1+i+.08)/s,c=(1+i)/s,(o=Ut("sqrtMain",a,l,i,t)).style.minWidth="0.853em",.833/s):"large"===n.type?(l=1080*si[n.size],c=(si[n.size]+i)/s,a=(si[n.size]+i+.08)/s,(o=Ut("sqrtSize"+n.size,a,l,i,t)).style.minWidth="1.02em",1/s):(a=e+i+.08,c=e+i,l=Math.floor(1e3*e+i)+80,(o=Ut("sqrtTall",a,l,i,t)).style.minWidth="0.742em",1.056),o.height=c,o.style.height=j(a),{span:o,advanceWidth:r,ruleWidth:(t.fontMetrics().sqrtRuleThickness+i)*s}},sizedDelim:function(e,t,i,n,s){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),_.contains(ti,e)||_.contains(ni,e))return Ht(e,t,!1,i,n,s);if(_.contains(ii,e))return Vt(e,si[t],!1,i,n,s);throw new S("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:si,customSizedDelim:Kt,leftRightDelim:function(e,t,i,n,s,o){var r=n.fontMetrics().axisHeight*n.sizeMultiplier,a=5/n.fontMetrics().ptPerEm,t=Math.max(t-r,i+r),i=Math.max(t/500*901,2*t-a);return Kt(e,i,!0,n,s,o)}};const li={"\\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}},ui=["(","\\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 hi(e,t){var i=Tt(e);if(i&&_.contains(ui,i.text))return i;throw new S(i?"Invalid delimiter '"+i.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function di(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}w({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)=>{t=hi(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:li[e.funcName].size,mclass:li[e.funcName].mclass,delim:t.text}},htmlBuilder:(e,t)=>"."===e.delim?E.makeSpan([e.mclass]):ci.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[],t=("."!==e.delim&&t.push(ft(e.delim,e.mode)),new k.MathNode("mo",t)),e=("mopen"===e.mclass||"mclose"===e.mclass?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true"),j(ci.sizeToMaxHeight[e.size]));return t.setAttribute("minsize",e),t.setAttribute("maxsize",e),t}}),w({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var i=e.parser.gullet.macros.get("\\current@color");if(i&&"string"!=typeof i)throw new S("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:hi(t[0],e).text,color:i}}}),w({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var t=hi(t[0],e),e=e.parser,i=(++e.leftrightDepth,e.parseExpression(!1)),n=(--e.leftrightDepth,e.expect("\\right",!1),O(e.parseFunction(),"leftright-right"));return{type:"leftright",mode:e.mode,body:i,left:t.text,right:n.delim,rightColor:n.color}},htmlBuilder:(t,e)=>{di(t);const i=R(t.body,e,!0,["mopen","mclose"]);let n,s,o=0,r=0,a=!1;for(let e=0;e{di(e);var i=A(e.body,t);if("."!==e.left){const t=new k.MathNode("mo",[ft(e.left,e.mode)]);t.setAttribute("fence","true"),i.unshift(t)}if("."!==e.right){const t=new k.MathNode("mo",[ft(e.right,e.mode)]);t.setAttribute("fence","true"),e.rightColor&&t.setAttribute("mathcolor",e.rightColor),i.push(t)}return bt(i)}}),w({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{t=hi(t[0],e);if(e.parser.leftrightDepth)return{type:"middle",mode:e.parser.mode,delim:t.text};throw new S("\\middle without preceding \\left",t)},htmlBuilder:(e,t)=>{let i;return"."===e.delim?i=it(t,[]):(i=ci.sizedDelim(e.delim,1,t,e.mode,[]),e={delim:e.delim,options:t},i.isMiddle=e),i},mathmlBuilder:(e,t)=>{e="\\vert"===e.delim||"|"===e.delim?ft("|","text"):ft(e.delim,e.mode),e=new k.MathNode("mo",[e]);return e.setAttribute("fence","true"),e.setAttribute("lspace","0.05em"),e.setAttribute("rspace","0.05em"),e}});a=(n,s)=>{const o=E.wrapFragment(M(n.body,s),s),r=n.label.slice(1);let a,e=s.sizeMultiplier,c=0;const l=_.isCharacterBox(n.body);if("sout"===r)(a=E.makeSpan(["stretchy","sout"])).height=s.fontMetrics().defaultRuleThickness/e,c=-.5*s.fontMetrics().xHeight;else if("phase"===r){const n=T({number:.6,unit:"pt"},s),r=T({number:.35,unit:"ex"},s),l=(e/=s.havingBaseSizing().sizeMultiplier,o.height+o.depth+n+r),_=(o.style.paddingLeft=j(l/2+n),Math.floor(1e3*l*e)),t="M400000 "+_+" H0 L"+_/2+" 0 l65 45 L145 "+(_-80)+" H400000z",i=new Ae([new Se("phase",t)],{width:"400em",height:j(_/1e3),viewBox:"0 0 400000 "+_,preserveAspectRatio:"xMinYMin slice"});(a=E.makeSvgSpan(["hide-tail"],[i],s)).style.height=j(l),c=o.depth+n+r}else{/cancel/.test(r)?l||o.classes.push("cancel-pad"):"angl"===r?o.classes.push("anglpad"):o.classes.push("boxpad");let e=0,t=0,i=0;t=/box/.test(r)?(i=Math.max(s.fontMetrics().fboxrule,s.minRuleThickness),e=s.fontMetrics().fboxsep+("colorbox"===r?0:i)):"angl"===r?(i=Math.max(s.fontMetrics().defaultRuleThickness,s.minRuleThickness),e=4*i,Math.max(0,.25-o.depth)):e=l?.2:0,a=function(e,t,i,n,s){let o;n=e.height+e.depth+i+n;if(/fbox|color|angl/.test(t)){if(o=E.makeSpan(["stretchy",t],[],s),"fbox"===t){const e=s.color&&s.getColor();e&&(o.style.borderColor=e)}}else{const e=[],i=(/^[bx]cancel$/.test(t)&&e.push(new _e({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&e.push(new _e({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"})),new Ae(e,{width:"100%",height:j(n)}));o=E.makeSvgSpan([],[i],s)}return o.height=n,o.style.height=j(n),o}(o,r,e,t,s),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=j(i)):"angl"===r&&.049!==i&&(a.style.borderTopWidth=j(i),a.style.borderRightWidth=j(i)),c=o.depth+t,n.backgroundColor&&(a.style.backgroundColor=n.backgroundColor,n.borderColor)&&(a.style.borderColor=n.borderColor)}let t;if(n.backgroundColor)t=E.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:c},{type:"elem",elem:o,shift:0}]},s);else{const n=/cancel|phase/.test(r)?["svg-align"]:[];t=E.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:a,shift:c,wrapperClasses:n}]},s)}return/cancel/.test(r)&&(t.height=o.height,t.depth=o.depth),/cancel/.test(r)&&!l?E.makeSpan(["mord","cancel-lap"],[t],s):E.makeSpan(["mord"],[t],s)},d=(e,t)=>{let i=0;var n=new k.MathNode(-1{if(!e.parser.settings.displayMode)throw new S("{"+e.envName+"} can be used only in display mode.")};function wi(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function $i(t,e,i){let{hskipBeforeAndAfter:n,addJot:s,cols:o,arraystretch:r,colSeparationType:a,autoTag:c,singleRow:l,emptySingleRow:u,maxNumCols:h,leqno:d}=e;if(t.gullet.beginGroup(),l||t.gullet.macros.set("\\cr","\\\\\\relax"),!r){const e=t.gullet.expandMacroAsText("\\arraystretch");if(null==e)r=1;else if(!(r=parseFloat(e))||r<0)throw new S("Invalid \\arraystretch: "+e)}t.gullet.beginGroup();let g=[];const p=[g],m=[],f=[],b=null!=c?[]:void 0;function v(){c&&t.gullet.macros.set("\\@eqnsw","1",!0)}function y(){b&&(t.gullet.macros.get("\\df@tag")?(b.push(t.subparse([new bi("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):b.push(Boolean(c)&&"1"===t.gullet.macros.get("\\@eqnsw")))}for(v(),f.push(vi(t));;){let e=t.parseExpression(!1,l?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup(),e={type:"ordgroup",mode:t.mode,body:e},i&&(e={type:"styling",mode:t.mode,style:i,body:[e]}),g.push(e);const n=t.fetch().text;if("&"===n){if(h&&g.length===h){if(l||a)throw new S("Too many tab characters: &",t.nextToken);t.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}t.consume()}else{if("\\end"===n){y(),1===g.length&&"styling"===e.type&&0===e.body[0].body.length&&(1e))for(o=0;o=l)){(0e.length));return n.cols=new Array(s).fill({type:"align",align:i}),t?{type:"leftright",mode:e.mode,body:[n],left:t[0],right:t[1],rightColor:void 0}:n},htmlBuilder:ki,mathmlBuilder:Ai}),pi({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){e=$i(e.parser,{arraystretch:.5},"script");return e.colSeparationType="small",e},htmlBuilder:ki,mathmlBuilder:Ai}),pi({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){t=(Tt(t[0])?[t[0]]:O(t[0],"ordgroup").body).map(function(e){var t=Ct(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new S("Unknown column alignment: "+t,e)});if(1AV".indexOf(l)))throw new S('Expected one of "<>AV=|." after @',a[n]);for(let i=0;i<2;i++){let t=!0;for(let e=n+1;e{var i=e.font,t=t.withFont(i);return M(e.body,t)},Ri=(e,t)=>{var i=e.font,t=t.withFont(i);return L(e.body,t)},Mi={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"},Li=(w({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:e,funcName:i}=e,t=tt(t[0]);let n=i;return n in Mi&&(n=Mi[n]),{type:"font",mode:e.mode,font:n.slice(1),body:t}},htmlBuilder:Ei,mathmlBuilder:Ri}),w({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var e=e["parser"],t=t[0],i=_.isCharacterBox(t);return{type:"mclass",mode:e.mode,mclass:It(t),body:[{type:"font",mode:e.mode,font:"boldsymbol",body:t}],isCharacterBox:i}}}),w({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:e,funcName:i,breakOnTokenText:n}=e,s=e["mode"],n=e.parseExpression(!0,n);return{type:"font",mode:s,font:"math"+i.slice(1),body:{type:"ordgroup",mode:e.mode,body:n}}},htmlBuilder:Ei,mathmlBuilder:Ri}),(e,t)=>{let i=t;return"display"===e?i=i.id>=C.SCRIPT.id?i.text():C.DISPLAY:"text"===e&&i.size===C.DISPLAY.size?i=C.TEXT:"script"===e?i=C.SCRIPT:"scriptscript"===e&&(i=C.SCRIPTSCRIPT),i}),Oi=(e,t)=>{const i=Li(e.size,t.style),n=i.fracNum(),s=i.fracDen();var o=t.havingStyle(n),r=M(e.numer,o,t);if(e.continued){const e=8.5/t.fontMetrics().ptPerEm,i=3.5/t.fontMetrics().ptPerEm;r.height=r.height{let i=new k.MathNode("mfrac",[L(e.numer,t),L(e.denom,t)]);if(e.hasBarLine){if(e.barSize){const n=T(e.barSize,t);i.setAttribute("linethickness",j(n))}}else i.setAttribute("linethickness","0px");const n=Li(e.size,t.style);if(n.size!==t.style.size){i=new k.MathNode("mstyle",[i]);const e=n.size===C.DISPLAY.size?"true":"false";i.setAttribute("displaystyle",e),i.setAttribute("scriptlevel","0")}if(null==e.leftDelim&&null==e.rightDelim)return i;{const t=[];if(null!=e.leftDelim){const i=new k.MathNode("mo",[new k.TextNode(e.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),t.push(i)}if(t.push(i),null!=e.rightDelim){const i=new k.MathNode("mo",[new k.TextNode(e.rightDelim.replace("\\",""))]);i.setAttribute("fence","true"),t.push(i)}return bt(t)}},Ii=(w({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:e,funcName:i}=e,n=t[0],t=t[1];let s,o=null,r=null,a="auto";switch(i){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",r=")";break;case"\\\\bracefrac":s=!1,o="\\{",r="\\}";break;case"\\\\brackfrac":s=!1,o="[",r="]";break;default:throw new Error("Unrecognized genfrac command")}switch(i){case"\\dfrac":case"\\dbinom":a="display";break;case"\\tfrac":case"\\tbinom":a="text"}return{type:"genfrac",mode:e.mode,continued:!1,numer:n,denom:t,hasBarLine:s,leftDelim:o,rightDelim:r,size:a,barSize:null}},htmlBuilder:Oi,mathmlBuilder:Di}),w({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var e=e["parser"],i=t[0],t=t[1];return{type:"genfrac",mode:e.mode,continued:!0,numer:i,denom:t,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),w({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){let t,{parser:i,funcName:n,token:s}=e;switch(n){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 new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:i.mode,replaceWith:t,token:s}}}),["display","text","script","scriptscript"]),Ni=(w({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var e=e["parser"],i=t[4],n=t[5],s=tt(t[0]),s="atom"===s.type&&"open"===s.family?Ti(s.text):null,o=tt(t[1]),o="atom"===o.type&&"close"===o.family?Ti(o.text):null,r=O(t[2],"size");let a,c=null,l=(a=!!r.isBlank||0<(c=r.value).number,"auto"),u=t[3];if("ordgroup"===u.type){if(0{var e=e["parser"],i=t[0],n=function(e){if(e)return e;throw new Error("Expected non-null, but got "+String(e))}(O(t[1],"infix").size),t=t[2],s=0{var i=t.style;let n,s;s="supsub"===e.type?(n=e.sup?M(e.sup,t.havingStyle(i.sup()),t):M(e.sub,t.havingStyle(i.sub()),t),O(e.base,"horizBrace")):O(e,"horizBrace");i=M(s.base,t.havingBaseStyle(C.DISPLAY)),e=_t(s,t);let o;if((s.isOver?(o=E.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:e}]},t)).children[0].children[0].children[1]:(o=E.makeVList({positionType:"bottom",positionData:i.depth+.1+e.height,children:[{type:"elem",elem:e},{type:"kern",size:.1},{type:"elem",elem:i}]},t)).children[0].children[0].children[0]).classes.push("svg-align"),n){const e=E.makeSpan(["mord",s.isOver?"mover":"munder"],[o],t);o=s.isOver?E.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"kern",size:.2},{type:"elem",elem:n}]},t):E.makeVList({positionType:"bottom",positionData:e.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:e}]},t)}return E.makeSpan(["mord",s.isOver?"mover":"munder"],[o],t)}),Pi=(w({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:e,funcName:i}=e;return{type:"horizBrace",mode:e.mode,label:i,isOver:/^\\over/.test(i),base:t[0]}},htmlBuilder:Ni,mathmlBuilder:(e,t)=>{var i=St(e.label);return new k.MathNode(e.isOver?"mover":"munder",[L(e.base,t),i])}}),w({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var e=e["parser"],i=t[1],t=O(t[0],"url").url;return e.settings.isTrusted({command:"\\href",url:t})?{type:"href",mode:e.mode,href:t,body:$(i)}:e.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var i=R(e.body,t,!1);return E.makeAnchor(e.href,[],i,t)},mathmlBuilder:(e,t)=>{let i=yt(e.body,t);return(i=i instanceof x?i:new x("mrow",[i])).setAttribute("href",e.href),i}}),w({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var e=e["parser"],i=O(t[0],"url").url;if(!e.settings.isTrusted({command:"\\url",url:i}))return e.formatUnsupportedCmd("\\url");var n=[];for(let t=0;t{let{parser:i,funcName:n}=t;var s=O(e[0],"raw").string,t=e[1];let o;i.settings.strict&&i.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var r={};switch(n){case"\\htmlClass":r.class=s,o={command:"\\htmlClass",class:s};break;case"\\htmlId":r.id=s,o={command:"\\htmlId",id:s};break;case"\\htmlStyle":r.style=s,o={command:"\\htmlStyle",style:s};break;case"\\htmlData":{const t=s.split(",");for(let e=0;e{var i=R(e.body,t,!1),n=["enclosing"],s=(e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/)),E.makeSpan(n,i,t));for(const t in e.attributes)"class"!==t&&e.attributes.hasOwnProperty(t)&&s.setAttribute(t,e.attributes[t]);return s},mathmlBuilder:(e,t)=>yt(e.body,t)}),w({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{e=e.parser;return{type:"htmlmathml",mode:e.mode,html:$(t[0]),mathml:$(t[1])}},htmlBuilder:(e,t)=>{e=R(e.html,t,!1);return E.makeFragment(e)},mathmlBuilder:(e,t)=>yt(e.mathml,t)}),w({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,i)=>{let n=t["parser"],s={number:0,unit:"em"},o={number:.9,unit:"em"},r={number:0,unit:"em"},a="";if(i[0]){const t=O(i[0],"raw").string.split(",");for(let e=0;e{var i=T(e.height,t);let n=0,s=(0{var i=new k.MathNode("mglyph",[]);i.setAttribute("alt",e.alt);const n=T(e.height,t);let s=0;if(0{var{parser:e,funcName:i}=e,t=t[0];return{type:"lap",mode:e.mode,alignment:i.slice(5),body:t}},htmlBuilder:(e,t)=>{let i;i="clap"===e.alignment?(i=E.makeSpan([],[M(e.body,t)]),E.makeSpan(["inner"],[i],t)):E.makeSpan(["inner"],[M(e.body,t)]);var n=E.makeSpan(["fix"],[]);let s=E.makeSpan([e.alignment],[i,n],t);e=E.makeSpan(["strut"]);return e.style.height=j(s.height+s.depth),s.depth&&(e.style.verticalAlign=j(-s.depth)),s.children.unshift(e),s=E.makeSpan(["thinbox"],[s],t),E.makeSpan(["mord","vbox"],[s],t)},mathmlBuilder:(e,t)=>{var i=new k.MathNode("mpadded",[L(e.body,t)]);if("rlap"!==e.alignment){const t="llap"===e.alignment?"-1":"-0.5";i.setAttribute("lspace",t+"width")}return i.setAttribute("width","0px"),i}}),w({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:e,parser:i}=e,n=i.mode,e=(i.switchMode("math"),"\\("===e?"\\)":"$"),s=i.parseExpression(!1,e);return i.expect(e),i.switchMode(n),{type:"styling",mode:i.mode,style:"text",body:s}}}),w({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new S("Mismatched "+e.funcName)}}),(e,t)=>{switch(t.style.size){case C.DISPLAY.size:return e.display;case C.TEXT.size:return e.text;case C.SCRIPT.size:return e.script;case C.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}}),Fi=(w({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{e=e.parser;return{type:"mathchoice",mode:e.mode,display:$(t[0]),text:$(t[1]),script:$(t[2]),scriptscript:$(t[3])}},htmlBuilder:(e,t)=>{e=Pi(e,t),e=R(e,t,!1);return E.makeFragment(e)},mathmlBuilder:(e,t)=>{e=Pi(e,t);return yt(e,t)}}),(e,t,i,n,s,o,r)=>{e=E.makeSpan([],[e]);var a=i&&_.isCharacterBox(i);let c,l,u;if(t){const e=M(t,n.havingStyle(s.sup()),n);l={elem:e,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-e.depth)}}if(i){const e=M(i,n.havingStyle(s.sub()),n);c={elem:e,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-e.height)}}if(l&&c){const t=n.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+r;u=E.makeVList({positionType:"bottom",positionData:t,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:j(-o)},{type:"kern",size:c.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:j(o)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(c){const t=e.height-r;u=E.makeVList({positionType:"top",positionData:t,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:j(-o)},{type:"kern",size:c.kern},{type:"elem",elem:e}]},n)}else{if(!l)return e;{const t=e.depth+r;u=E.makeVList({positionType:"bottom",positionData:t,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:j(o)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}}t=[u];if(c&&0!==o&&!a){const e=E.makeSpan(["mspace"],[],n);e.style.marginRight=j(o),t.unshift(e)}return E.makeSpan(["mop","op-limits"],t,n)}),zi=["\\smallint"],Bi=(t,i)=>{let e,n,s,o=!1;"supsub"===t.type?(e=t.sup,n=t.sub,s=O(t.base,"op"),o=!0):s=O(t,"op");t=i.style;let r,a=!1;if(t.size===C.DISPLAY.size&&s.symbol&&!_.contains(zi,s.name)&&(a=!0),s.symbol){const t=a?"Size2-Regular":"Size1-Regular";let e="";if("\\oiint"!==s.name&&"\\oiiint"!==s.name||(e=s.name.slice(1),s.name="oiint"===e?"\\iint":"\\iiint"),r=E.makeSymbol(s.name,t,"math",i,["mop","op-symbol",a?"large-op":"small-op"]),0{let i;if(e.symbol)i=new x("mo",[ft(e.name,e.mode)]),_.contains(zi,e.name)&&i.setAttribute("largeop","false");else if(e.body)i=new x("mo",A(e.body,t));else{i=new x("mi",[new mt(e.name.slice(1))]);const t=new x("mo",[ft("⁡","text")]);i=e.parentIsSupSub?new x("mrow",[i,t]):pt([i,t])}return i},qi={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"},Wi=(w({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{let{parser:i,funcName:n}=e,s=n;return 1===s.length&&(s=qi[s]),{type:"op",mode:i.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:s}},htmlBuilder:Bi,mathmlBuilder:Hi}),w({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{e=e.parser,t=t[0];return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:$(t)}},htmlBuilder:Bi,mathmlBuilder:Hi}),{"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"}),Vi=(w({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:e,funcName:t}=e;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:Bi,mathmlBuilder:Hi}),w({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:e,funcName:t}=e;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:Bi,mathmlBuilder:Hi}),w({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){let{parser:t,funcName:i}=e,n=i;return 1===n.length&&(n=Wi[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Bi,mathmlBuilder:Hi}),(e,t)=>{let i,n,s,o,r=!1;if("supsub"===e.type?(i=e.sup,n=e.sub,s=O(e.base,"operatorname"),r=!0):s=O(e,"operatorname"),0{var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),i=R(e,t.withFont("mathrm"),!0);for(let e=0;e{var{parser:e,funcName:i}=e,t=t[0];return{type:"operatorname",mode:e.mode,body:$(t),alwaysHandleSupSub:"\\operatornamewithlimits"===i,limits:!1,parentIsSupSub:!1}},htmlBuilder:Vi,mathmlBuilder:(t,i)=>{let n=A(t.body,i.withFont("mathrm")),s=!0;for(let e=0;ee.toText()).join("");n=[new k.TextNode(t)]}var i=new k.MathNode("mi",n),e=(i.setAttribute("mathvariant","normal"),new k.MathNode("mo",[ft("⁡","text")]));return t.parentIsSupSub?new k.MathNode("mrow",[i,e]):k.newDocumentFragment([i,e])}}),D("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),et({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?E.makeFragment(R(e.body,t,!1)):E.makeSpan(["mord"],R(e.body,t,!0),t)},mathmlBuilder(e,t){return yt(e.body,t,!0)}}),w({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){e=e.parser,t=t[0];return{type:"overline",mode:e.mode,body:t}},htmlBuilder(e,t){var e=M(e.body,t.havingCrampedStyle()),i=E.makeLineSpan("overline-line",t),n=t.fontMetrics().defaultRuleThickness,e=E.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"kern",size:3*n},{type:"elem",elem:i},{type:"kern",size:n}]},t);return E.makeSpan(["mord","overline"],[e],t)},mathmlBuilder(e,t){var i=new k.MathNode("mo",[new k.TextNode("‾")]),e=(i.setAttribute("stretchy","true"),new k.MathNode("mover",[L(e.body,t),i]));return e.setAttribute("accent","true"),e}}),w({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{e=e.parser,t=t[0];return{type:"phantom",mode:e.mode,body:$(t)}},htmlBuilder:(e,t)=>{e=R(e.body,t.withPhantom(),!1);return E.makeFragment(e)},mathmlBuilder:(e,t)=>{e=A(e.body,t);return new k.MathNode("mphantom",e)}}),w({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{e=e.parser,t=t[0];return{type:"hphantom",mode:e.mode,body:t}},htmlBuilder:(e,t)=>{let i=E.makeSpan([],[M(e.body,t.withPhantom())]);if(i.height=0,i.depth=0,i.children)for(let e=0;e{e=A($(e.body),t),t=new k.MathNode("mphantom",e),e=new k.MathNode("mpadded",[t]);return e.setAttribute("height","0px"),e.setAttribute("depth","0px"),e}}),w({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{e=e.parser,t=t[0];return{type:"vphantom",mode:e.mode,body:t}},htmlBuilder:(e,t)=>{var e=E.makeSpan(["inner"],[M(e.body,t.withPhantom())]),i=E.makeSpan(["fix"],[]);return E.makeSpan(["mord","rlap"],[e,i],t)},mathmlBuilder:(e,t)=>{e=A($(e.body),t),t=new k.MathNode("mphantom",e),e=new k.MathNode("mpadded",[t]);return e.setAttribute("width","0px"),e}}),w({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var e=e["parser"],i=O(t[0],"size").value,t=t[1];return{type:"raisebox",mode:e.mode,dy:i,body:t}},htmlBuilder(e,t){var i=M(e.body,t),e=T(e.dy,t);return E.makeVList({positionType:"shift",positionData:-e,children:[{type:"elem",elem:i}]},t)},mathmlBuilder(e,t){t=new k.MathNode("mpadded",[L(e.body,t)]),e=e.dy.number+e.dy.unit;return t.setAttribute("voffset",e),t}}),w({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){e=e.parser;return{type:"internal",mode:e.mode}}}),w({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,i){var e=e["parser"],i=i[0],n=O(t[0],"size"),t=O(t[1],"size");return{type:"rule",mode:e.mode,shift:i&&O(i,"size").value,width:n.value,height:t.value}},htmlBuilder(e,t){var i=E.makeSpan(["mord","rule"],[],t),n=T(e.width,t),s=T(e.height,t),e=e.shift?T(e.shift,t):0;return i.style.borderRightWidth=j(n),i.style.borderTopWidth=j(s),i.style.bottom=j(e),i.width=n,i.height=s+e,i.depth=-e,i.maxFontSize=1.125*s*t.sizeMultiplier,i},mathmlBuilder(e,t){var i=T(e.width,t),n=T(e.height,t),e=e.shift?T(e.shift,t):0,t=t.color&&t.getColor()||"black",s=new k.MathNode("mspace"),t=(s.setAttribute("mathbackground",t),s.setAttribute("width",j(i)),s.setAttribute("height",j(n)),new k.MathNode("mpadded",[s]));return 0<=e?t.setAttribute("height",j(e)):(t.setAttribute("height",j(e)),t.setAttribute("depth",j(-e))),t.setAttribute("voffset",j(e)),t}});const Gi=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Ki=(w({type:"sizing",names:Gi,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:e,funcName:i,parser:n}=e,e=n.parseExpression(!1,e);return{type:"sizing",mode:n.mode,size:Gi.indexOf(i)+1,body:e}},htmlBuilder:(e,t)=>{var i=t.havingSize(e.size);return Ui(e.body,i,t)},mathmlBuilder:(e,t)=>{t=t.havingSize(e.size),e=A(e.body,t),e=new k.MathNode("mstyle",e);return e.setAttribute("mathsize",j(t.sizeMultiplier)),e}}),w({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,i)=>{let n=e["parser"],s=!1,o=!1;var r=i[0]&&O(i[0],"ordgroup");if(r){var a;for(let e=0;e{var i=E.makeSpan([],[M(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return i;if(e.smashHeight&&(i.height=0,i.children))for(let e=0;e{t=new k.MathNode("mpadded",[L(e.body,t)]);return e.smashHeight&&t.setAttribute("height","0px"),e.smashDepth&&t.setAttribute("depth","0px"),t}}),w({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,i){e=e.parser,i=i[0],t=t[0];return{type:"sqrt",mode:e.mode,body:t,index:i}},htmlBuilder(e,t){let i=M(e.body,t.havingCrampedStyle());0===i.height&&(i.height=t.fontMetrics().xHeight),i=E.wrapFragment(i,t);const n=t.fontMetrics().defaultRuleThickness;let s=n,o=(t.style.idi.height+i.depth+o&&(o=(o+u-i.height-i.depth)/2);var h=a.height-i.height-o-c,h=(i.style.paddingLeft=j(l),E.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:-(i.height+h)},{type:"elem",elem:a},{type:"kern",size:c}]},t));if(e.index){const i=t.havingStyle(C.SCRIPTSCRIPT),n=M(e.index,i,t),s=.6*(h.height-h.depth),o=E.makeVList({positionType:"shift",positionData:-s,children:[{type:"elem",elem:n}]},t),r=E.makeSpan(["root"],[o]);return E.makeSpan(["mord","sqrt"],[r,h],t)}return E.makeSpan(["mord","sqrt"],[h],t)},mathmlBuilder(e,t){var{body:e,index:i}=e;return i?new k.MathNode("mroot",[L(e,t),L(i,t)]):new k.MathNode("msqrt",[L(e,t)])}}),{display:C.DISPLAY,text:C.TEXT,script:C.SCRIPT,scriptscript:C.SCRIPTSCRIPT}),Yi=(w({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:e,funcName:i,parser:n}=e,e=n.parseExpression(!0,e),i=i.slice(1,i.length-5);return{type:"styling",mode:n.mode,style:i,body:e}},htmlBuilder(e,t){var i=Ki[e.style],i=t.havingStyle(i).withFont("");return Ui(e.body,i,t)},mathmlBuilder(e,t){var i=Ki[e.style],t=t.havingStyle(i),i=A(e.body,t),t=new k.MathNode("mstyle",i),i={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return t.setAttribute("scriptlevel",i[0]),t.setAttribute("displaystyle",i[1]),t}}),et({type:"supsub",htmlBuilder(e,t){n=t;const i=(o=(s=e).base)?"op"===o.type?o.limits&&(n.style.size===C.DISPLAY.size||o.alwaysHandleSupSub)?Bi:null:"operatorname"===o.type?o.alwaysHandleSupSub&&(n.style.size===C.DISPLAY.size||o.limits)?Vi:null:"accent"===o.type?_.isCharacterBox(o.base)?jt:null:"horizBrace"===o.type&&!s.sub===o.isOver?Ni:null:null;if(i)return i(e,t);var{base:n,sup:s,sub:o}=e,r=M(n,t);let a,c;var l=t.fontMetrics();let u=0,h=0;n=n&&_.isCharacterBox(n);if(s){const e=t.havingStyle(t.style.sup());a=M(s,e,t),n||(u=r.height-e.fontMetrics().supDrop*e.sizeMultiplier/t.sizeMultiplier)}if(o){const e=t.havingStyle(t.style.sub());c=M(o,e,t),n||(h=r.depth+e.fontMetrics().subDrop*e.sizeMultiplier/t.sizeMultiplier)}s=t.style===C.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2,o=t.sizeMultiplier,n=j(.5/l.ptPerEm/o);let d,g=null;if(c){const t=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(r instanceof p||t)&&(g=j(-r.italic))}if(a&&c){u=Math.max(u,s,a.depth+.25*l.xHeight),h=Math.max(h,l.sub2);const e=4*l.defaultRuleThickness;if(u-a.depth-(c.height-h){var e=new k.MathNode("mtd",[]);return e.setAttribute("width","50%"),e}),Zi=(et({type:"tag",mathmlBuilder(e,t){e=new k.MathNode("mtable",[new k.MathNode("mtr",[Ji(),new k.MathNode("mtd",[yt(e.body,t)]),Ji(),new k.MathNode("mtd",[yt(e.tag,t)])])]);return e.setAttribute("width","100%"),e}}),{"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"}),en={"\\textbf":"textbf","\\textmd":"textmd"},tn={"\\textit":"textit","\\textup":"textup"},nn=(e,t)=>{e=e.font;return e?Zi[e]?t.withTextFontFamily(Zi[e]):en[e]?t.withTextFontWeight(en[e]):t.withTextFontShape(tn[e]):t},sn=(w({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:e,funcName:i}=e,t=t[0];return{type:"text",mode:e.mode,body:$(t),font:i}},htmlBuilder(e,t){t=nn(e,t),e=R(e.body,t,!0);return E.makeSpan(["mord","text"],e,t)},mathmlBuilder(e,t){t=nn(e,t);return yt(e.body,t)}}),w({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){e=e.parser;return{type:"underline",mode:e.mode,body:t[0]}},htmlBuilder(e,t){var e=M(e.body,t),i=E.makeLineSpan("underline-line",t),n=t.fontMetrics().defaultRuleThickness,i=E.makeVList({positionType:"top",positionData:e.height,children:[{type:"kern",size:n},{type:"elem",elem:i},{type:"kern",size:3*n},{type:"elem",elem:e}]},t);return E.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var i=new k.MathNode("mo",[new k.TextNode("‾")]),e=(i.setAttribute("stretchy","true"),new k.MathNode("munder",[L(e.body,t),i]));return e.setAttribute("accentunder","true"),e}}),w({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){e=e.parser;return{type:"vcenter",mode:e.mode,body:t[0]}},htmlBuilder(e,t){var e=M(e.body,t),i=t.fontMetrics().axisHeight,i=.5*(e.height-i-(e.depth+i));return E.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:e}]},t)},mathmlBuilder(e,t){return new k.MathNode("mpadded",[L(e.body,t)],["vcenter"])}}),w({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,i){throw new S("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(i,e){var n=sn(i),s=[],o=e.havingStyle(e.style.text());for(let t=0;te.body.replace(/ /g,e.star?"␣":" "));var on=Qe;const rn=new RegExp("[̀-ͯ]+$");class an{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=new RegExp("([ \r\n\t]+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-‧‪-퟿豈-￿][̀-ͯ]*|[\ud800-\udbff][\udc00-\udfff][̀-ͯ]*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)[ \r\n\t]*|\\\\[^\ud800-\udfff])","g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){const e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new bi("EOF",new fi(this,t,t));var i=this.tokenRegex.exec(e);if(null===i||i.index!==t)throw new S("Unexpected character: '"+e[t]+"'",new bi(e[t],new fi(this,t,t+1)));i=i[6]||i[3]||(i[2]?"\\ ":" ");if(14!==this.catcodes[i])return new bi(i,new fi(this,t,this.tokenRegex.lastIndex));{const t=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===t?(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=t+1,this.lex()}}}class cn{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 S("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(const t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;0=t)throw new S("Invalid base-"+t+" digit "+i.text);for(var s;null!=(s=un[e.future().text])&&s{let n=i.consumeArg().tokens;if(1!==n.length)throw new S("\\newcommand's first argument must be a macro name");var s=n[0].text,o=i.isDefined(s);if(o&&!e)throw new S("\\newcommand{"+s+"} attempting to redefine "+s+"; use \\renewcommand");if(!o&&!t)throw new S("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");let r=0;if(1===(n=i.consumeArg().tokens).length&&"["===n[0].text){let e="",t=i.expandNextToken();for(;"]"!==t.text&&"EOF"!==t.text;)e+=t.text,t=i.expandNextToken();if(!e.match(/^\s*[0-9]+\s*$/))throw new S("Invalid number of arguments: "+e);r=parseInt(e),n=i.consumeArg().tokens}return i.macros.set(s,{tokens:n,numArgs:r}),""}),dn=(D("\\newcommand",e=>hn(e,!1,!0)),D("\\renewcommand",e=>hn(e,!0,!1)),D("\\providecommand",e=>hn(e,!0,!0)),D("\\message",e=>{e=e.consumeArgs(1)[0];return console.log(e.reverse().map(e=>e.text).join("")),""}),D("\\errmessage",e=>{e=e.consumeArgs(1)[0];return console.error(e.reverse().map(e=>e.text).join("")),""}),D("\\show",e=>{var t=e.popToken(),i=t.text;return console.log(t,e.macros.get(i),on[i],h.math[i],h.text[i]),""}),D("\\bgroup","{"),D("\\egroup","}"),D("~","\\nobreakspace"),D("\\lq","`"),D("\\rq","'"),D("\\aa","\\r a"),D("\\AA","\\r A"),D("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),D("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),D("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),D("ℬ","\\mathscr{B}"),D("ℰ","\\mathscr{E}"),D("ℱ","\\mathscr{F}"),D("ℋ","\\mathscr{H}"),D("ℐ","\\mathscr{I}"),D("ℒ","\\mathscr{L}"),D("ℳ","\\mathscr{M}"),D("ℛ","\\mathscr{R}"),D("ℭ","\\mathfrak{C}"),D("ℌ","\\mathfrak{H}"),D("ℨ","\\mathfrak{Z}"),D("\\Bbbk","\\Bbb{k}"),D("·","\\cdotp"),D("\\llap","\\mathllap{\\textrm{#1}}"),D("\\rlap","\\mathrlap{\\textrm{#1}}"),D("\\clap","\\mathclap{\\textrm{#1}}"),D("\\mathstrut","\\vphantom{(}"),D("\\underbar","\\underline{\\text{#1}}"),D("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),D("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),D("\\ne","\\neq"),D("≠","\\neq"),D("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),D("∉","\\notin"),D("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),D("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),D("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),D("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),D("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),D("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),D("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),D("⟂","\\perp"),D("‼","\\mathclose{!\\mkern-0.8mu!}"),D("∌","\\notni"),D("⌜","\\ulcorner"),D("⌝","\\urcorner"),D("⌞","\\llcorner"),D("⌟","\\lrcorner"),D("©","\\copyright"),D("®","\\textregistered"),D("️","\\textregistered"),D("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),D("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),D("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),D("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),D("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),D("⋮","\\vdots"),D("\\varGamma","\\mathit{\\Gamma}"),D("\\varDelta","\\mathit{\\Delta}"),D("\\varTheta","\\mathit{\\Theta}"),D("\\varLambda","\\mathit{\\Lambda}"),D("\\varXi","\\mathit{\\Xi}"),D("\\varPi","\\mathit{\\Pi}"),D("\\varSigma","\\mathit{\\Sigma}"),D("\\varUpsilon","\\mathit{\\Upsilon}"),D("\\varPhi","\\mathit{\\Phi}"),D("\\varPsi","\\mathit{\\Psi}"),D("\\varOmega","\\mathit{\\Omega}"),D("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),D("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),D("\\boxed","\\fbox{$\\displaystyle{#1}$}"),D("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),D("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),D("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),{",":"\\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"}),gn=(D("\\dots",function(e){let t="\\dotso";e=e.expandAfterFuture().text;return e in dn?t=dn[e]:("\\not"===e.slice(0,4)||e in h.math&&_.contains(["bin","rel"],h.math[e].group))&&(t="\\dotsb"),t}),{")":!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});D("\\dotso",function(e){return e.future().text in gn?"\\ldots\\,":"\\ldots"}),D("\\dotsc",function(e){e=e.future().text;return e in gn&&","!==e?"\\ldots\\,":"\\ldots"}),D("\\cdots",function(e){return e.future().text in gn?"\\@cdots\\,":"\\@cdots"}),D("\\dotsb","\\cdots"),D("\\dotsm","\\cdots"),D("\\dotsi","\\!\\cdots"),D("\\dotsx","\\ldots\\,"),D("\\DOTSI","\\relax"),D("\\DOTSB","\\relax"),D("\\DOTSX","\\relax"),D("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),D("\\,","\\tmspace+{3mu}{.1667em}"),D("\\thinspace","\\,"),D("\\>","\\mskip{4mu}"),D("\\:","\\tmspace+{4mu}{.2222em}"),D("\\medspace","\\:"),D("\\;","\\tmspace+{5mu}{.2777em}"),D("\\thickspace","\\;"),D("\\!","\\tmspace-{3mu}{.1667em}"),D("\\negthinspace","\\!"),D("\\negmedspace","\\tmspace-{4mu}{.2222em}"),D("\\negthickspace","\\tmspace-{5mu}{.277em}"),D("\\enspace","\\kern.5em "),D("\\enskip","\\hskip.5em\\relax"),D("\\quad","\\hskip1em\\relax"),D("\\qquad","\\hskip2em\\relax"),D("\\tag","\\@ifstar\\tag@literal\\tag@paren"),D("\\tag@paren","\\tag@literal{({#1})}"),D("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new S("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),D("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),D("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),D("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),D("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),D("\\newline","\\\\\\relax"),D("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");c=j(ne["Main-Regular"]["T".charCodeAt(0)][1]-.7*ne["Main-Regular"]["A".charCodeAt(0)][1]),D("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+c+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),D("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+c+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),D("\\hspace","\\@ifstar\\@hspacer\\@hspace"),D("\\@hspace","\\hskip #1\\relax"),D("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),D("\\ordinarycolon",":"),D("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),D("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),D("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),D("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),D("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),D("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),D("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),D("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),D("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),D("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),D("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),D("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),D("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),D("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),D("∷","\\dblcolon"),D("∹","\\eqcolon"),D("≔","\\coloneqq"),D("≕","\\eqqcolon"),D("⩴","\\Coloneqq"),D("\\ratio","\\vcentcolon"),D("\\coloncolon","\\dblcolon"),D("\\colonequals","\\coloneqq"),D("\\coloncolonequals","\\Coloneqq"),D("\\equalscolon","\\eqqcolon"),D("\\equalscoloncolon","\\Eqqcolon"),D("\\colonminus","\\coloneq"),D("\\coloncolonminus","\\Coloneq"),D("\\minuscolon","\\eqcolon"),D("\\minuscoloncolon","\\Eqcolon"),D("\\coloncolonapprox","\\Colonapprox"),D("\\coloncolonsim","\\Colonsim"),D("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),D("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),D("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),D("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),D("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),D("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),D("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),D("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),D("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),D("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),D("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),D("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),D("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),D("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),D("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),D("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),D("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),D("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),D("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),D("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),D("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),D("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),D("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),D("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),D("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),D("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),D("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),D("\\imath","\\html@mathml{\\@imath}{ı}"),D("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),D("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),D("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),D("⟦","\\llbracket"),D("⟧","\\rrbracket"),D("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),D("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),D("⦃","\\lBrace"),D("⦄","\\rBrace"),D("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),D("⦵","\\minuso"),D("\\darr","\\downarrow"),D("\\dArr","\\Downarrow"),D("\\Darr","\\Downarrow"),D("\\lang","\\langle"),D("\\rang","\\rangle"),D("\\uarr","\\uparrow"),D("\\uArr","\\Uparrow"),D("\\Uarr","\\Uparrow"),D("\\N","\\mathbb{N}"),D("\\R","\\mathbb{R}"),D("\\Z","\\mathbb{Z}"),D("\\alef","\\aleph"),D("\\alefsym","\\aleph"),D("\\Alpha","\\mathrm{A}"),D("\\Beta","\\mathrm{B}"),D("\\bull","\\bullet"),D("\\Chi","\\mathrm{X}"),D("\\clubs","\\clubsuit"),D("\\cnums","\\mathbb{C}"),D("\\Complex","\\mathbb{C}"),D("\\Dagger","\\ddagger"),D("\\diamonds","\\diamondsuit"),D("\\empty","\\emptyset"),D("\\Epsilon","\\mathrm{E}"),D("\\Eta","\\mathrm{H}"),D("\\exist","\\exists"),D("\\harr","\\leftrightarrow"),D("\\hArr","\\Leftrightarrow"),D("\\Harr","\\Leftrightarrow"),D("\\hearts","\\heartsuit"),D("\\image","\\Im"),D("\\infin","\\infty"),D("\\Iota","\\mathrm{I}"),D("\\isin","\\in"),D("\\Kappa","\\mathrm{K}"),D("\\larr","\\leftarrow"),D("\\lArr","\\Leftarrow"),D("\\Larr","\\Leftarrow"),D("\\lrarr","\\leftrightarrow"),D("\\lrArr","\\Leftrightarrow"),D("\\Lrarr","\\Leftrightarrow"),D("\\Mu","\\mathrm{M}"),D("\\natnums","\\mathbb{N}"),D("\\Nu","\\mathrm{N}"),D("\\Omicron","\\mathrm{O}"),D("\\plusmn","\\pm"),D("\\rarr","\\rightarrow"),D("\\rArr","\\Rightarrow"),D("\\Rarr","\\Rightarrow"),D("\\real","\\Re"),D("\\reals","\\mathbb{R}"),D("\\Reals","\\mathbb{R}"),D("\\Rho","\\mathrm{P}"),D("\\sdot","\\cdot"),D("\\sect","\\S"),D("\\spades","\\spadesuit"),D("\\sub","\\subset"),D("\\sube","\\subseteq"),D("\\supe","\\supseteq"),D("\\Tau","\\mathrm{T}"),D("\\thetasym","\\vartheta"),D("\\weierp","\\wp"),D("\\Zeta","\\mathrm{Z}"),D("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),D("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),D("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),D("\\bra","\\mathinner{\\langle{#1}|}"),D("\\ket","\\mathinner{|{#1}\\rangle}"),D("\\braket","\\mathinner{\\langle{#1}\\rangle}"),D("\\Bra","\\left\\langle#1\\right|"),D("\\Ket","\\left|#1\\right\\rangle"),g=c=>e=>{const t=e.consumeArg().tokens,n=e.consumeArg().tokens,s=e.consumeArg().tokens,i=e.consumeArg().tokens,o=e.macros.get("|"),r=e.macros.get("\\|");e.macros.beginGroup();var a=i=>e=>{c&&(e.macros.set("|",o),s.length)&&e.macros.set("\\|",r);let t=i;return!i&&s.length&&"|"===e.future().text&&(e.popToken(),t=!0),{tokens:t?s:n,numArgs:0}},a=(e.macros.set("|",a(!1)),s.length&&e.macros.set("\\|",a(!0)),e.consumeArg().tokens),a=e.expandTokens([...i,...a,...t]);return e.macros.endGroup(),{tokens:a.reverse(),numArgs:0}};D("\\bra@ket",g(!1)),D("\\bra@set",g(!0)),D("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),D("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),D("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),D("\\angln","{\\angl n}"),D("\\blue","\\textcolor{##6495ed}{#1}"),D("\\orange","\\textcolor{##ffa500}{#1}"),D("\\pink","\\textcolor{##ff00af}{#1}"),D("\\red","\\textcolor{##df0030}{#1}"),D("\\green","\\textcolor{##28ae7b}{#1}"),D("\\gray","\\textcolor{gray}{#1}"),D("\\purple","\\textcolor{##9d38bd}{#1}"),D("\\blueA","\\textcolor{##ccfaff}{#1}"),D("\\blueB","\\textcolor{##80f6ff}{#1}"),D("\\blueC","\\textcolor{##63d9ea}{#1}"),D("\\blueD","\\textcolor{##11accd}{#1}"),D("\\blueE","\\textcolor{##0c7f99}{#1}"),D("\\tealA","\\textcolor{##94fff5}{#1}"),D("\\tealB","\\textcolor{##26edd5}{#1}"),D("\\tealC","\\textcolor{##01d1c1}{#1}"),D("\\tealD","\\textcolor{##01a995}{#1}"),D("\\tealE","\\textcolor{##208170}{#1}"),D("\\greenA","\\textcolor{##b6ffb0}{#1}"),D("\\greenB","\\textcolor{##8af281}{#1}"),D("\\greenC","\\textcolor{##74cf70}{#1}"),D("\\greenD","\\textcolor{##1fab54}{#1}"),D("\\greenE","\\textcolor{##0d923f}{#1}"),D("\\goldA","\\textcolor{##ffd0a9}{#1}"),D("\\goldB","\\textcolor{##ffbb71}{#1}"),D("\\goldC","\\textcolor{##ff9c39}{#1}"),D("\\goldD","\\textcolor{##e07d10}{#1}"),D("\\goldE","\\textcolor{##a75a05}{#1}"),D("\\redA","\\textcolor{##fca9a9}{#1}"),D("\\redB","\\textcolor{##ff8482}{#1}"),D("\\redC","\\textcolor{##f9685d}{#1}"),D("\\redD","\\textcolor{##e84d39}{#1}"),D("\\redE","\\textcolor{##bc2612}{#1}"),D("\\maroonA","\\textcolor{##ffbde0}{#1}"),D("\\maroonB","\\textcolor{##ff92c6}{#1}"),D("\\maroonC","\\textcolor{##ed5fa6}{#1}"),D("\\maroonD","\\textcolor{##ca337c}{#1}"),D("\\maroonE","\\textcolor{##9e034e}{#1}"),D("\\purpleA","\\textcolor{##ddd7ff}{#1}"),D("\\purpleB","\\textcolor{##c6b9fc}{#1}"),D("\\purpleC","\\textcolor{##aa87ff}{#1}"),D("\\purpleD","\\textcolor{##7854ab}{#1}"),D("\\purpleE","\\textcolor{##543b78}{#1}"),D("\\mintA","\\textcolor{##f5f9e8}{#1}"),D("\\mintB","\\textcolor{##edf2df}{#1}"),D("\\mintC","\\textcolor{##e0e5cc}{#1}"),D("\\grayA","\\textcolor{##f6f7f7}{#1}"),D("\\grayB","\\textcolor{##f0f1f2}{#1}"),D("\\grayC","\\textcolor{##e3e5e6}{#1}"),D("\\grayD","\\textcolor{##d6d8da}{#1}"),D("\\grayE","\\textcolor{##babec2}{#1}"),D("\\grayF","\\textcolor{##888d93}{#1}"),D("\\grayG","\\textcolor{##626569}{#1}"),D("\\grayH","\\textcolor{##3b3e40}{#1}"),D("\\grayI","\\textcolor{##21242c}{#1}"),D("\\kaBlue","\\textcolor{##314453}{#1}"),D("\\kaGreen","\\textcolor{##71B307}{#1}");const pn={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class mn{constructor(e,t,i){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 cn(ln,t.macros),this.mode=i,this.stack=[]}feed(e){this.lexer=new an(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){let t,i,n;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),{tokens:n,end:i}=this.consumeArg(["]"])}else({tokens:n,start:t,end:i}=this.consumeArg());return this.pushToken(new bi("EOF",i.loc)),this.pushTokens(n),t.range(i,"")}consumeSpaces(){for(;" "===this.future().text;)this.stack.pop()}consumeArg(e){var t=[],i=e&&0this.settings.maxExpand)throw new S("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),i=t.text,n=t.noexpand?null:this._getExpansion(i);if(null==n||e&&n.unexpandable){if(e&&null==n&&"\\"===i[0]&&!this.isDefined(i))throw new S("Undefined control sequence: "+i);return this.pushToken(t),!1}this.countExpansion(1);let s=n.tokens;var o=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs)for(let e=(s=s.slice()).length-1;0<=e;--e){var r=s[e];if("#"===r.text){if(0===e)throw new S("Incomplete placeholder at end of macro body",r);if("#"===(r=s[--e]).text)s.splice(e+1,1);else{if(!/^[1-9]$/.test(r.text))throw new S("Not a valid argument number",r);s.splice(e,2,...o[+r.text-1])}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;){var e;if(!1===this.expandOnce())return(e=this.stack.pop()).treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new bi(e)]):void 0}expandTokens(e){var t=[],i=this.stack.length;for(this.pushTokens(e);this.stack.length>i;)if(!1===this.expandOnce(!0)){const e=this.stack.pop();e.treatAsRelax&&(e.noexpand=!1,e.treatAsRelax=!1),t.push(e)}return this.countExpansion(t.length),t}expandMacroAsText(e){e=this.expandMacro(e);return e&&e.map(e=>e.text).join("")}_getExpansion(i){const n=this.macros.get(i);if(null==n)return n;if(1===i.length){const n=this.lexer.catcodes[i];if(null!=n&&13!==n)return}i="function"==typeof n?n(this):n;if("string"!=typeof i)return i;{let e=0;if(-1!==i.indexOf("#")){const n=i.replace(/##/g,"");for(;-1!==n.indexOf("#"+(e+1));)++e}const n=new an(i,this.settings),s=[];let t=n.lex();for(;"EOF"!==t.text;)s.push(t),t=n.lex();return s.reverse(),{tokens:s,numArgs:e}}}isDefined(e){return this.macros.has(e)||on.hasOwnProperty(e)||h.math.hasOwnProperty(e)||h.text.hasOwnProperty(e)||pn.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:on.hasOwnProperty(e)&&!on[e].primitive}}const fn=/^[\u208a\u208b\u208c\u208d\u208e\u2080\u2081\u2082\u2083\u2084\u2085\u2086\u2087\u2088\u2089\u2090\u2091\u2095\u1d62\u2c7c\u2096\u2097\u2098\u2099\u2092\u209a\u1d63\u209b\u209c\u1d64\u1d65\u2093\u1d66\u1d67\u1d68\u1d69\u1d6a]/,bn=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),vn={"́":{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"}},yn={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};class wn{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 mn(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 S("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,e=(this.consume(),this.gullet.pushToken(new bi("}")),this.gullet.pushTokens(e),this.parseExpression(!1));return this.expect("}"),this.nextToken=t,e}parseExpression(e,t){for(var i=[];;){"math"===this.mode&&this.consumeSpaces();var n=this.fetch();if(-1!==wn.endOfExpression.indexOf(n.text))break;if(t&&n.text===t)break;if(e&&on[n.text]&&on[n.text].infix)break;n=this.parseAtom(t);if(!n)break;"internal"!==n.type&&i.push(n)}return"text"===this.mode&&this.formLigatures(i),this.handleInfixNodes(i)}handleInfixNodes(t){let i,n=-1;for(let e=0;ee.left.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")).join("|")+")");for(;-1!==(i=t.search(s));){0t.startsWith(e.left));if(-1===(i=function(e,t,i){let n=i,s=0;for(var o=e.length;n-1===s.indexOf(" "+e+" "))&&l(r,o)}}};var o=function(e,t){if(!e)throw new Error("No element provided to render");var i={};for(const e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);i.delimiters=i.delimiters||[{left:"$$",right:"$$",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}],i.ignoredTags=i.ignoredTags||["script","noscript","style","textarea","pre","code","option"],i.ignoredClasses=i.ignoredClasses||[],i.errorCallback=i.errorCallback||console.error,i.macros=i.macros||{},l(e,i)}}return e.default}()}),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("katex")):"function"==typeof define&&define.amd?define(["katex"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).markedKatex=t(e.katex)}(this,function(n){"use strict";const s=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1(?=[\s?!\.,:?!。,:]|$)/,i=/^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;function t(t,i){return e=>n.renderToString(e.text,{...t,displayMode:e.displayMode})+(i?"\n":"")}return function(e={}){return{extensions:[{name:"inlineKatex",level:"inline",start(e){let t,i=e;for(;i;){if(-1===(t=i.indexOf("$")))return;if((0===t||" "===i.charAt(t-1))&&i.substring(t).match(s))return t;i=i.substring(t+1).replace(/^\$+/,"")}},tokenizer(e,t){e=e.match(s);if(e)return{type:"inlineKatex",raw:e[0],text:e[2].trim(),displayMode:2===e[1].length}},renderer:t(e,!1)},{name:"blockKatex",level:"block",tokenizer(e,t){e=e.match(i);if(e)return{type:"blockKatex",raw:e[0],text:e[2].trim(),displayMode:2===e[1].length}},renderer:t(e,!0)}]}}}),!function(){function e(e){return e}function t(i){return function(e){var t=l("img",["image-output"]);return t.src="data:image/"+i+";base64,"+h(e).replace(/\n/g,""),t}}function i(){var t=this,e=d.display_priority.filter(function(e){return(t.raw.data||t.raw)[e]})[0];return e&&d.display[e]?d.display[e](t.raw[e]||t.raw.data[e]):l("div",["empty-output"])}function n(){var e=l("pre",["pyerr"]),t=this.raw.traceback.join("\n");return e.innerHTML=d.highlighter(d.ansi(u(t)),e),e}var s,o,r,a=this,c=void 0!==a.window,l=(o=(c?a:(s=new(require("jsdom").JSDOM)).window).document,function(e,t){e=o.createElement(e);return e.className=(t||[]).map(function(e){return d.prefix+e}).join(" "),e}),u=function(e){return e.replace(//g,">")},h=function(e){return e.join?e.map(h).join(""):e},d={prefix:"nb-",markdown:(r=a.marked||"function"==typeof require&&require("marked"))&&r.parse||e,ansi:(r=a.ansi_up||"function"==typeof require&&require("ansi_up"))&&r.ansi_to_html||e,sanitizer:(r=a.DOMPurify||"function"==typeof require&&require("dompurify"),(c?r&&r.sanitize:r(s.window).sanitize)||e),highlighter:e,VERSION:"0.7.0",Input:function(e,t){this.raw=e,this.cell=t}},g=(d.Input.prototype.render=function(){var e,t,i,n;return this.raw.length?(e=l("div",["input"]),"number"==typeof(n=this.cell).number&&e.setAttribute("data-prompt-number",this.cell.number),t=l("pre"),i=l("code"),n=n.worksheet.notebook.metadata,n=this.cell.raw.language||n.language||n.kernelspec&&n.kernelspec.language||n.language_info&&n.language_info.name,i.setAttribute("data-language",n),i.className="lang-"+n,i.innerHTML=d.highlighter(u(h(this.raw)),t,i,n),t.appendChild(i),e.appendChild(t),this.el=e):l("div")},d.display={},d.display.text=function(e){var t=l("pre",["text-output"]);return t.innerHTML=d.highlighter(d.ansi(h(e)),t),t},d.display["text/plain"]=d.display.text,d.display.html=function(e){var t=l("div",["html-output"]);return t.innerHTML=d.sanitizer(h(e)),t},d.display["text/html"]=d.display.html,d.display.marked=function(e){return d.display.html(d.markdown(h(e)))},d.display["text/markdown"]=d.display.marked,d.display.svg=function(e){var t=l("div",["svg-output"]);return t.innerHTML=h(e),t},d.display["text/svg+xml"]=d.display.svg,d.display["image/svg+xml"]=d.display.svg,d.display.latex=function(e){var t=l("div",["latex-output"]);return t.innerHTML=h(e),t},d.display["text/latex"]=d.display.latex,d.display.javascript=function(e){var t=l("script");return t.innerHTML=h(e),t},d.display["application/javascript"]=d.display.javascript,d.display.png=t("png"),d.display["image/png"]=d.display.png,d.display.jpeg=t("jpeg"),d.display["image/jpeg"]=d.display.jpeg,d.display_priority=["png","image/png","jpeg","image/jpeg","svg","image/svg+xml","text/svg+xml","html","text/html","text/markdown","latex","text/latex","javascript","application/javascript","text","text/plain"],d.Output=function(e,t){this.raw=e,this.cell=t,this.type=e.output_type},d.Output.prototype.renderers={display_data:i,execute_result:i,pyout:i,pyerr:n,error:n,stream:function(){var e=l("pre",[this.raw.stream||this.raw.name]),t=h(this.raw.text);return e.innerHTML=d.highlighter(d.ansi(u(t)),e),e}},d.Output.prototype.render=function(){var e=l("div",["output"]),t=("number"==typeof this.cell.number&&e.setAttribute("data-prompt-number",this.cell.number),this.renderers[this.type].call(this));return e.appendChild(t),this.el=e},d.coalesceStreams=function(e){var t,i;return e.length?(t=e[0],i=[t],e.slice(1).forEach(function(e){"stream"===e.raw.output_type&&"stream"===t.raw.output_type&&e.raw.stream===t.raw.stream&&e.raw.name===t.raw.name?t.raw.text=t.raw.text.concat(e.raw.text):(i.push(e),t=e)}),i):e},[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\(",right:"\\)",display:!(d.Cell=function(e,t){var i=this;i.raw=e,i.worksheet=t,i.type=e.cell_type,"code"===i.type&&(i.number=-1")))):e.innerHTML=d.sanitizer(d.markdown(t)),e},heading:function(){var e=l("h"+this.raw.level,["cell","heading-cell"]);return e.innerHTML=d.sanitizer(h(this.raw.source)),e},raw:function(){var e=l("div",["cell","raw-cell"]);return e.innerHTML=u(h(this.raw.source)),e},code:function(){var t=l("div",["cell","code-cell"]);t.appendChild(this.input.render()),this.outputs.forEach(function(e){t.appendChild(e.render())});return t}},d.Cell.prototype.render=function(){var e=this.renderers[this.type].call(this);return this.el=e},d.Worksheet=function(e,t){var i=this;this.raw=e,this.notebook=t,this.cells=e.cells.map(function(e){return new d.Cell(e,i)}),this.render=function(){var t=l("div",["worksheet"]);return i.cells.forEach(function(e){t.appendChild(e.render())}),this.el=t}},d.Notebook=function(e,t){var i=this,t=(this.raw=e,this.config=t,this.metadata=e.metadata||{}),t=(this.title=t.title||t.name,e.worksheets||[{cells:e.cells}]);this.worksheets=t.map(function(e){return new d.Worksheet(e,i)}),this.sheet=this.worksheets[0]},d.Notebook.prototype.render=function(){var t=l("div",["notebook"]);return this.worksheets.forEach(function(e){t.appendChild(e.render())}),this.el=t},d.parse=function(e,t){return new d.Notebook(e,t)},"function"==typeof define&&define.amd&&define(function(){return d}),"undefined"!=typeof exports?(exports="undefined"!=typeof module&&module.exports?module.exports=d:exports).nb=d:a.nb=d}.call(this),function(){var e={},n={rules:{},define:function(t,e){this.rules[t]=e,this["is"+t.substring(0,1).toUpperCase()+t.substring(1)]=function(e){return this.rules[t].exec(e)}}};function s(){}function o(e){this.stream=e,this.tokenStack=[]}function r(e,t){if(this.type=e,this.children=[],t)for(var i=0,n=t.length;i";return void 0!==this.value?e+=" "+this.value:this.children&&(e+="\n"+this.children.map(function(e,t){return"#"+t+" "+e.toString()}).join("\n").split("\n").map(function(e){return" "+e}).join("\n")),e}};var d={types:{},define:function(i,n){var e="create"+(this.types[i]=i).substring(0,1).toUpperCase()+i.substring(1),s="function"==typeof n;this[e]=function(e,t){e=new r(i,e);return s&&n(e,t||{}),e}}};function a(e){this.sequences=e.split(/\r?\n/),this.totalLines=this.sequences.length,this.lineNumber=0}function c(){this.inlineParser=new t}function t(){this.preEmphasis=" \t\\('\"",this.postEmphasis="- \t.,:!?;'\"\\)",this.borderForbidden=" \t\r\n,\"'",this.bodyRegexp="[\\s\\S]*?",this.markers="*/_=~+",this.emphasisPattern=this.buildEmphasisPattern(),this.linkPattern=/\[\[([^\]]*)\](?:\[([^\]]*)\])?\]/g}function i(){}function l(e,t){this.initialize(e,t),this.result=this.convert()}return d.define("text",function(e,t){e.value=t.value}),d.define("header",function(e,t){e.level=t.level}),d.define("orderedList"),d.define("unorderedList"),d.define("definitionList"),d.define("listElement"),d.define("paragraph"),d.define("preformatted"),d.define("table"),d.define("tableRow"),d.define("tableCell"),d.define("horizontalRule"),d.define("directive"),d.define("inlineContainer"),d.define("bold"),d.define("italic"),d.define("underline"),d.define("code"),d.define("verbatim"),d.define("dashed"),d.define("link",function(e,t){e.src=t.src}),void 0!==e&&(e.Node=d),a.prototype.peekNextLine=function(){return this.hasNext()?this.sequences[this.lineNumber]:null},a.prototype.getNextLine=function(){return this.hasNext()?this.sequences[this.lineNumber++]:null},a.prototype.hasNext=function(){return this.lineNumbere)){if(0<(c=o.level-i))for(var r,a=0;a]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’])/i,linkURL:function(e){var t=this;return e.replace(this.urlPattern,function(e){return e.indexOf("://")<0&&(e="http://"+e),t.makeLink(e)})},makeLink:function(e){throw"Implement makeLink"},makeSubscripts:function(e){return"{}"===this.documentOptions["^"]?e.replace(/\b([^_ \t]*)_{([^}]*)}/g,this.makeSubscript):this.documentOptions["^"]?e.replace(/\b([^_ \t]*)_([^_]*)\b/g,this.makeSubscript):e},makeSubscript:function(e,t,i){throw"Implement makeSubscript"},imageExtensionPattern:new RegExp("("+["bmp","png","jpeg","jpg","gif","tiff","tif","xbm","xpm","pbm","pgm","ppm"].join("|")+")$","i")},void 0!==e&&(e.Converter=i),l.prototype={__proto__:i.prototype,convert:function(){var e=this.orgDocument.title?this.convertNode(this.orgDocument.title):this.untitled,t=this.tag("h1",e),i=this.convertNodes(this.orgDocument.nodes,!0),n=this.computeToc(this.documentOptions.toc),s=this.tocToHTML(n);return{title:e,titleHTML:t,contentHTML:i,tocHTML:s,toc:n,toString:function(){return t+s+"\n"+i}}},tocToHTML:function(e){function a(e){for(var t="",i=0;i":[">",null],'"':[""",null],"'":["'",null],"->":["➔",function(e,t){return this.exportOptions.translateSymbolArrow&&!t}]},replaceRegexp:null,escapeSpecialChars:function(i,n){this.replaceRegexp||(this.replaceRegexp=new RegExp(Object.keys(this.replaceMap).join("|"),"g"));var s=this.replaceMap,o=this;return i.replace(this.replaceRegexp,function(e){var t;if(s[e])return"function"!=typeof(t=s[e][1])||t.call(o,i,n)?s[e][0]:e;throw"escapeSpecialChars: Invalid match"})},postProcess:function(e,t,i){return t=this.exportOptions.exportFromLineNumber&&"number"==typeof e.fromLineNumber?this.inlineTag("div",t,{"data-line-number":e.fromLineNumber}):t},makeLink:function(e){return''+decodeURIComponent(e)+""},makeSubscript:function(e,t,i){return''+t+''+i+""},attributesObjectToString:function(e){var t,i="";for(t in e)e.hasOwnProperty(t)&&(i+=" "+t+'="'+e[t]+'"');return i},inlineTag:function(e,t,i,n){var s="<"+e;return n&&(s+=" "+n),s+=this.attributesObjectToString(i=i||{}),null===t?s+"/>":s+">"+t+""},tag:function(e,t,i,n){return this.inlineTag(e,t,i,n)+"\n"}},void 0!==e&&(e.ConverterHTML=l),e}());function humanFileSize(e,t=!1,i=1){var n=t?1e3:1024;if(e/=8,Math.abs(e)=n&&o/g,"%3E")}return e}!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)}("undefined"!=typeof window?window:this,function(x,I){"use strict";function v(e){return"function"==typeof e&&"number"!=typeof e.nodeType}function m(e){return null!=e&&e===e.window}var e=[],k=x.document,N=Object.getPrototypeOf,a=e.slice,P=e.concat,F=e.push,z=e.indexOf,B={},H=B.toString,q=B.hasOwnProperty,W=q.toString,V=W.call(Object),f={},U={type:!0,src:!0,nonce:!0,noModule:!0};function G(e,t,i){var n,s,o=(i=i||k).createElement("script");if(o.text=e,t)for(n in U)(s=t[n]||t.getAttribute&&t.getAttribute(n))&&o.setAttribute(n,s);i.head.appendChild(o).parentNode.removeChild(o)}function p(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?B[H.call(e)]||"object":typeof e}var A=function(e,t){return new A.fn.init(e,t)},K=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function Y(e){var t=!!e&&"length"in e&&e.length,i=p(e);return!v(e)&&!m(e)&&("array"===i||0===t||"number"==typeof t&&0>10|55296,1023&n|56320)}function N(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}function P(){x()}var e,d,w,o,F,g,z,B,$,c,l,x,k,i,A,p,n,s,m,S="sizzle"+ +new Date,f=I.document,_=0,H=0,q=R(),W=R(),V=R(),b=R(),U=function(e,t){return e===t&&(l=!0),0},G={}.hasOwnProperty,t=[],K=t.pop,Y=t.push,C=t.push,X=t.slice,v=function(e,t){for(var i=0,n=e.length;i+~]|"+r+")"+r+"*"),ne=new RegExp(r+"|>"),se=new RegExp(Z),oe=new RegExp("^"+a+"$"),T={ID:new RegExp("^#("+a+")"),CLASS:new RegExp("^\\.("+a+")"),TAG:new RegExp("^("+a+"|[*])"),ATTR:new RegExp("^"+J),PSEUDO:new RegExp("^"+Z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+Q+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},re=/HTML$/i,ae=/^(?:input|select|textarea|button)$/i,ce=/^h\d$/i,u=/^[^{]+\{\s*\[native \w/,le=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ue=/[+~]/,j=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),he=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,de=ve(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{C.apply(t=X.call(f.childNodes),f.childNodes),t[f.childNodes.length].nodeType}catch(e){C={apply:t.length?function(e,t){Y.apply(e,X.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function E(e,t,i,n){var s,o,r,a,c,l,u=t&&t.ownerDocument,h=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return i;if(!n&&((t?t.ownerDocument||t:f)!==k&&x(t),t=t||k,A)){if(11!==h&&(a=le.exec(e)))if(s=a[1]){if(9===h){if(!(l=t.getElementById(s)))return i;if(l.id===s)return i.push(l),i}else if(u&&(l=u.getElementById(s))&&m(t,l)&&l.id===s)return i.push(l),i}else{if(a[2])return C.apply(i,t.getElementsByTagName(e)),i;if((s=a[3])&&d.getElementsByClassName&&t.getElementsByClassName)return C.apply(i,t.getElementsByClassName(s)),i}if(d.qsa&&!b[e+" "]&&(!p||!p.test(e))&&(1!==h||"object"!==t.nodeName.toLowerCase())){if(l=e,u=t,1===h&&ne.test(e)){for((r=t.getAttribute("id"))?r=r.replace(he,N):t.setAttribute("id",r=S),o=(c=g(e)).length;o--;)c[o]="#"+r+" "+D(c[o]);l=c.join(","),u=ue.test(e)&&fe(t.parentNode)||t}try{return C.apply(i,u.querySelectorAll(l)),i}catch(t){b(e,!0)}finally{r===S&&t.removeAttribute("id")}}}return B(e.replace(y,"$1"),t,i,n)}function R(){var n=[];return function e(t,i){return n.push(t+" ")>w.cacheLength&&delete e[n.shift()],e[t+" "]=i}}function M(e){return e[S]=!0,e}function L(e){var t=k.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function ge(e,t){for(var i=e.split("|"),n=i.length;n--;)w.attrHandle[i[n]]=t}function pe(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function me(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&de(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function O(r){return M(function(o){return o=+o,M(function(e,t){for(var i,n=r([],e.length,o),s=n.length;s--;)e[i=n[s]]&&(e[i]=!(t[i]=e[i]))})})}function fe(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in d=E.support={},F=E.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!re.test(t||e&&e.nodeName||"HTML")},x=E.setDocument=function(e){var e=e?e.ownerDocument||e:f;return e!==k&&9===e.nodeType&&e.documentElement&&(i=(k=e).documentElement,A=!F(k),f!==k&&(e=k.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",P,!1):e.attachEvent&&e.attachEvent("onunload",P)),d.attributes=L(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=L(function(e){return e.appendChild(k.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=u.test(k.getElementsByClassName),d.getById=L(function(e){return i.appendChild(e).id=S,!k.getElementsByName||!k.getElementsByName(S).length}),d.getById?(w.filter.ID=function(e){var t=e.replace(j,h);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&A)return(t=t.getElementById(e))?[t]:[]}):(w.filter.ID=function(e){var t=e.replace(j,h);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&A){var i,n,s,o=t.getElementById(e);if(o){if((i=o.getAttributeNode("id"))&&i.value===e)return[o];for(s=t.getElementsByName(e),n=0;o=s[n++];)if((i=o.getAttributeNode("id"))&&i.value===e)return[o]}return[]}}),w.find.TAG=d.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],s=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;i=o[s++];)1===i.nodeType&&n.push(i);return n},w.find.CLASS=d.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&A)return t.getElementsByClassName(e)},n=[],p=[],(d.qsa=u.test(k.querySelectorAll))&&(L(function(e){i.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&p.push("[*^$]="+r+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||p.push("\\["+r+"*(?:value|"+Q+")"),e.querySelectorAll("[id~="+S+"-]").length||p.push("~="),e.querySelectorAll(":checked").length||p.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||p.push(".#.+[+~]")}),L(function(e){e.innerHTML="";var t=k.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&p.push("name"+r+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&p.push(":enabled",":disabled"),i.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),p.push(",.*:")})),(d.matchesSelector=u.test(s=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector||i.msMatchesSelector))&&L(function(e){d.disconnectedMatch=s.call(e,"*"),s.call(e,"[s!='']:x"),n.push("!=",Z)}),p=p.length&&new RegExp(p.join("|")),n=n.length&&new RegExp(n.join("|")),e=u.test(i.compareDocumentPosition),m=e||u.test(i.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(i.contains?i.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},U=e?function(e,t){var i;return e===t?(l=!0,0):!e.compareDocumentPosition-!t.compareDocumentPosition||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===i?e===k||e.ownerDocument===f&&m(f,e)?-1:t===k||t.ownerDocument===f&&m(f,t)?1:c?v(c,e)-v(c,t):0:4&i?-1:1)}:function(e,t){if(e===t)return l=!0,0;var i,n=0,s=e.parentNode,o=t.parentNode,r=[e],a=[t];if(!s||!o)return e===k?-1:t===k?1:s?-1:o?1:c?v(c,e)-v(c,t):0;if(s===o)return pe(e,t);for(i=e;i=i.parentNode;)r.unshift(i);for(i=t;i=i.parentNode;)a.unshift(i);for(;r[n]===a[n];)n++;return n?pe(r[n],a[n]):r[n]===f?-1:a[n]===f?1:0}),k},E.matches=function(e,t){return E(e,null,null,t)},E.matchesSelector=function(e,t){if((e.ownerDocument||e)!==k&&x(e),d.matchesSelector&&A&&!b[t+" "]&&(!n||!n.test(t))&&(!p||!p.test(t)))try{var i=s.call(e,t);if(i||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){b(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(j,h),e[3]=(e[3]||e[4]||e[5]||"").replace(j,h),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||E.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&E.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return T.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&se.test(i)&&(t=(t=g(i,!0))&&i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(j,h).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=q[e+" "];return t||(t=new RegExp("(^|"+r+")"+e+"("+r+"|$)"))&&q(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(e){e=E.attr(e,t);return null==e?"!="===i:!i||(e+="","="===i?e===n:"!="===i?e!==n:"^="===i?n&&0===e.indexOf(n):"*="===i?n&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Z(e,i,n){return v(i)?A.grep(e,function(e,t){return!!i.call(e,t,e)!==n}):i.nodeType?A.grep(e,function(e){return e===i!==n}):"string"!=typeof i?A.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/,ie=((A.fn.init=function(e,t,i){if(e){if(i=i||ee,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==i.ready?i.ready(e):e(A):A.makeArray(e,this);if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:te.exec(e))||!n[1]&&t)return(!t||t.jquery?t||i:this.constructor(t)).find(e);if(n[1]){if(t=t instanceof A?t[0]:t,A.merge(this,A.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:k,!0)),J.test(n[1])&&A.isPlainObject(t))for(var n in t)v(this[n])?this[n](t[n]):this.attr(n,t[n])}else(i=k.getElementById(n[2]))&&(this[0]=i,this.length=1)}return this}).prototype=A.fn,ee=A(k),/^(?:parents|prev(?:Until|All))/),ne={children:!0,contents:!0,next:!0,prev:!0};function se(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}A.fn.extend({has:function(e){var t=A(e,this),i=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,Ae=/^$|^module$|\/(?:java|ecma)script/i,C={option:[1,""],thead:[1,"","
    "],col:[2,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],_default:[0,"",""]};function T(e,t){var i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&c(e,t)?A.merge([e],i):i}function Se(e,t){for(var i=0,n=e.length;ix",f.noCloneChecked=!!M.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,je=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function i(){return!0}function j(){return!1}function Re(e,t){return e===function(){try{return k.activeElement}catch(e){}}()==("focus"===t)}function Me(e,t,i,n,s,o){var r,a;if("object"==typeof t){for(a in"string"!=typeof i&&(n=n||i,i=void 0),t)Me(e,a,i,n,t[a],o);return e}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=j;else if(!s)return e;return 1===o&&(r=s,(s=function(e){return A().off(e),r.apply(this,arguments)}).guid=r.guid||(r.guid=A.guid++)),e.each(function(){A.event.add(this,t,s,n,i)})}function Le(e,s,o){o?(b.set(e,s,!1),A.event.add(e,s,{namespace:!1,handler:function(e){var t,i,n=b.get(this,s);if(1&e.isTrigger&&this[s]){if(n.length)(A.event.special[s]||{}).delegateType&&e.stopPropagation();else if(n=a.call(arguments),b.set(this,s,n),t=o(this,s),this[s](),n!==(i=b.get(this,s))||t?b.set(this,s,!1):i={},n!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else n.length&&(b.set(this,s,{value:A.event.trigger(A.extend(n[0],A.Event.prototype),n.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===b.get(e,s)&&A.event.add(e,s,i)}A.event={global:{},add:function(t,e,i,n,s){var o,r,a,c,l,u,h,d,g,p=b.get(t);if(p)for(i.handler&&(i=(o=i).handler,s=o.selector),s&&A.find.matchesSelector(w,s),i.guid||(i.guid=A.guid++),a=(a=p.events)||(p.events={}),r=(r=p.handle)||(p.handle=function(e){return void 0!==A&&A.event.triggered!==e.type?A.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(S)||[""]).length;c--;)h=g=(d=Ee.exec(e[c])||[])[1],d=(d[2]||"").split(".").sort(),h&&(l=A.event.special[h]||{},h=(s?l.delegateType:l.bindType)||h,l=A.event.special[h]||{},g=A.extend({type:h,origType:g,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&A.expr.match.needsContext.test(s),namespace:d.join(".")},o),(u=a[h])||((u=a[h]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(t,n,d,r))||t.addEventListener&&t.addEventListener(h,r),l.add&&(l.add.call(t,g),g.handler.guid||(g.handler.guid=i.guid)),s?u.splice(u.delegateCount++,0,g):u.push(g),A.event.global[h]=!0)},remove:function(e,t,i,n,s){var o,r,a,c,l,u,h,d,g,p,m,f=b.hasData(e)&&b.get(e);if(f&&(c=f.events)){for(l=(t=(t||"").match(S)||[""]).length;l--;)if(g=m=(a=Ee.exec(t[l])||[])[1],p=(a[2]||"").split(".").sort(),g){for(h=A.event.special[g]||{},d=c[g=(n?h.delegateType:h.bindType)||g]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=d.length;o--;)u=d[o],!s&&m!==u.origType||i&&i.guid!==u.guid||a&&!a.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(d.splice(o,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(e,u));r&&!d.length&&(h.teardown&&!1!==h.teardown.call(e,p,f.handle)||A.removeEvent(e,g,f.handle),delete c[g])}else for(g in c)A.event.remove(e,g+t[l],i,n,!0);A.isEmptyObject(c)&&b.remove(e,"handle events")}},dispatch:function(e){var t,i,n,s,o,r=A.event.fix(e),a=new Array(arguments.length),e=(b.get(this,"events")||{})[r.type]||[],c=A.event.special[r.type]||{};for(a[0]=r,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,De=/\s*$/g;function Pe(e,t){return c(e,"table")&&c(11!==t.nodeType?t:t.firstChild,"tr")&&A(e).children("tbody")[0]||e}function Fe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ze(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Be(e,t){var i,n,s,o,r,a;if(1===t.nodeType){if(b.hasData(e)&&(o=b.access(e),r=b.set(t,o),a=o.events))for(s in delete r.handle,r.events={},a)for(i=0,n=a[s].length;i")},clone:function(e,t,i){var n,s,o,r,a,c,l,u=e.cloneNode(!0),h=$(e);if(!(f.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||A.isXMLDoc(e)))for(r=T(u),n=0,s=(o=T(e)).length;n").attr(i.scriptAttrs||{}).prop({charset:i.scriptCharset,src:i.url}).on("load error",s=function(e){n.remove(),s=null,e&&t("error"===e.type?404:200,e.type)}),k.head.appendChild(n[0])},abort:function(){s&&s()}}});var Xt=[],Qt=/(=)\?(?=&|$)|\?\?/,Jt=(A.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||A.expando+"_"+jt++;return this[e]=!0,e}}),A.ajaxPrefilter("json jsonp",function(e,t,i){var n,s,o,r=!1!==e.jsonp&&(Qt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Qt.test(e.data)&&"data");if(r||"jsonp"===e.dataTypes[0])return n=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,r?e[r]=e[r].replace(Qt,"$1"+n):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+n),e.converters["script json"]=function(){return o||A.error(n+" was not called"),o[0]},e.dataTypes[0]="json",s=x[n],x[n]=function(){o=arguments},i.always(function(){void 0===s?A(x).removeProp(n):x[n]=s,e[n]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(n)),o&&v(s)&&s(o[0]),o=s=void 0}),"script"}),f.createHTMLDocument=((e=k.implementation.createHTMLDocument("").body).innerHTML="
    ",2===e.childNodes.length),A.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(f.createHTMLDocument?((n=(t=k.implementation.createHTMLDocument("")).createElement("base")).href=k.location.href,t.head.appendChild(n)):t=k),n=!i&&[],(i=J.exec(e))?[t.createElement(i[1])]:(i=Ce([e],t,n),n&&n.length&&A(n).remove(),A.merge([],i.childNodes)));var n},A.fn.load=function(e,t,i){var n,s,o,r=this,a=e.indexOf(" ");return-1").append(A.parseHTML(e)).find(n):e)}).always(i&&function(e,t){r.each(function(){i.apply(this,o||[e.responseText,t,e])})}),this},A.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){A.fn[t]=function(e){return this.on(t,e)}}),A.expr.pseudos.animated=function(t){return A.grep(A.timers,function(e){return t===e.elem}).length},A.offset={setOffset:function(e,t,i){var n,s,o,r,a=A.css(e,"position"),c=A(e),l={};"static"===a&&(e.style.position="relative"),o=c.offset(),n=A.css(e,"top"),r=A.css(e,"left"),a=("absolute"===a||"fixed"===a)&&-1<(n+r).indexOf("auto")?(s=(a=c.position()).top,a.left):(s=parseFloat(n)||0,parseFloat(r)||0),null!=(t=v(t)?t.call(e,i,A.extend({},o)):t).top&&(l.top=t.top-o.top+s),null!=t.left&&(l.left=t.left-o.left+a),"using"in t?t.using.call(e,l):c.css(l)}},A.fn.extend({offset:function(t){var e,i;return arguments.length?void 0===t?this:this.each(function(e){A.offset.setOffset(this,t,e)}):(i=this[0])?i.getClientRects().length?(e=i.getBoundingClientRect(),i=i.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,n=this[0],s={top:0,left:0};if("fixed"===A.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),i=n.ownerDocument,e=n.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===A.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((s=A(e).offset()).top+=A.css(e,"borderTopWidth",!0),s.left+=A.css(e,"borderLeftWidth",!0))}return{top:t.top-s.top-A.css(n,"marginTop",!0),left:t.left-s.left-A.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===A.css(e,"position");)e=e.offsetParent;return e||w})}}),A.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,s){var o="pageYOffset"===s;A.fn[t]=function(e){return h(this,function(e,t,i){var n;if(m(e)?n=e:9===e.nodeType&&(n=e.defaultView),void 0===i)return n?n[s]:e[t];n?n.scrollTo(o?n.pageXOffset:i,o?i:n.pageYOffset):e[t]=i},t,e,arguments.length)}}),A.each(["top","left"],function(e,i){A.cssHooks[i]=Ze(f.pixelPosition,function(e,t){if(t)return t=Je(e,i),Xe.test(t)?A(e).position()[i]+"px":t})}),A.each({Height:"height",Width:"width"},function(r,a){A.each({padding:"inner"+r,content:a,"":"outer"+r},function(n,o){A.fn[o]=function(e,t){var i=arguments.length&&(n||"boolean"!=typeof e),s=n||(!0===e||!0===t?"margin":"border");return h(this,function(e,t,i){var n;return m(e)?0===o.indexOf("outer")?e["inner"+r]:e.document.documentElement["client"+r]:9===e.nodeType?(n=e.documentElement,Math.max(e.body["scroll"+r],n["scroll"+r],e.body["offset"+r],n["offset"+r],n["client"+r])):void 0===i?A.css(e,t,s):A.style(e,t,i,s)},a,i?e:void 0,i)}})}),A.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,i){A.fn[i]=function(e,t){return 0=i.clientWidth&&e>=i.clientHeight})).length?s:o)[0].key+((t=e.split("-")[1])?"-"+t:""))}function x(e,t,i,n){n=3c[e]&&!n.escapeWithReference&&(i=W(l[t],c[e]-("right"===e?l.width:l.height))),R({},t,i)}};return t.forEach(function(e){var t=-1===["left","top"].indexOf(e)?"secondary":"primary";l=O({},l,u[t](e))}),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,i=t.popper,t=t.reference,n=e.placement.split("-")[0],s=M,n=-1!==["top","bottom"].indexOf(n),o=n?"right":"bottom",r=n?"left":"top",n=n?"width":"height";return i[o]s(t[o])&&(e.offsets.popper[r]=s(t[o])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){if(B(e.instance.modifiers,"arrow","keepTogether")){t=t.element;if("string"==typeof t){if(!(t=e.instance.popper.querySelector(t)))return e}else if(!e.instance.popper.contains(t))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],n=e.offsets,s=n.popper,n=n.reference,i=-1!==["left","right"].indexOf(i),o=i?"height":"width",r=i?"Top":"Left",a=r.toLowerCase(),c=i?"left":"top",i=i?"bottom":"right",l=k(t)[o],i=(n[i]-ls[i]&&(e.offsets.popper[a]+=n[a]+l-s[i]),e.offsets.popper=b(e.offsets.popper),n[a]+n[o]/2-l/2),n=h(e.instance.popper),u=parseFloat(n["margin"+r],10),n=parseFloat(n["border"+r+"Width"],10),r=i-e.offsets.popper[a]-u-n,r=L(W(s[o]-l,r),0);e.arrowElement=t,e.offsets.arrow=(R(i={},a,V(r)),R(i,c,""),i)}return e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(l,u){if(!(t(l.instance.modifiers,"inner")||l.flipped&&l.placement===l.originalPlacement)){var h=$(l.instance.popper,l.instance.reference,u.padding,u.boundariesElement,l.positionFixed),d=l.placement.split("-")[0],g=A(d),p=l.placement.split("-")[1]||"",m=[];switch(u.behavior){case J:m=[d,g];break;case Z:m=H(d);break;case ee:m=H(d,!0);break;default:m=u.behavior}m.forEach(function(e,t){if(d!==e||m.length===t+1)return l;d=l.placement.split("-")[0],g=A(d);var e=l.offsets.popper,i=l.offsets.reference,n=M,i="left"===d&&n(e.right)>n(i.left)||"right"===d&&n(e.left)n(i.top)||"bottom"===d&&n(e.top)n(h.right),r=n(e.top)n(h.bottom),n="left"===d&&s||"right"===d&&o||"top"===d&&r||"bottom"===d&&e,a=-1!==["top","bottom"].indexOf(d),c=!!u.flipVariations&&(a&&"start"===p&&s||a&&"end"===p&&o||!a&&"start"===p&&r||!a&&"end"===p&&e),o=!!u.flipVariationsByContent&&(a&&"start"===p&&o||a&&"end"===p&&s||!a&&"start"===p&&e||!a&&"end"===p&&r),s=c||o;(i||n||s)&&(l.flipped=!0,(i||n)&&(d=m[t+1]),s&&(p="end"===(e=p)?"start":"start"===e?"end":e),l.placement=d+(p?"-"+p:""),l.offsets.popper=O({},l.offsets.popper,S(l.instance.popper,l.offsets.reference,l.placement)),l=C(l.instance.modifiers,l,"flip"))})}return l},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,i=t.split("-")[0],n=e.offsets,s=n.popper,n=n.reference,o=-1!==["left","right"].indexOf(i),r=-1===["top","left"].indexOf(i);return s[o?"left":"top"]=n[i]-(r?s[o?"width":"height"]:0),e.placement=A(t),e.offsets.popper=b(s),e}},hide:{order:800,enabled:!0,fn:function(e){if(B(e.instance.modifiers,"hide","preventOverflow")){var t=e.offsets.reference,i=_(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomi.right||t.top>i.bottom||t.rightthis._items.length-1||e<0||(this._isSliding?u(this._element).one(p.SLID,function(){return t.to(e)}):i===e?(this.pause(),this.cycle()):this._slide(idocument.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},i._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},i._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right
    ',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},Ve="show",Ue={HIDE:"hide"+M,HIDDEN:"hidden"+M,SHOW:"show"+M,SHOWN:"shown"+M,INSERTED:"inserted"+M,CLICK:"click"+M,FOCUSIN:"focusin"+M,FOCUSOUT:"focusout"+M,MOUSEENTER:"mouseenter"+M,MOUSELEAVE:"mouseleave"+M},Ge="fade",Ke="show",Ye="hover",L=((a=Xe.prototype).enable=function(){this._isEnabled=!0},a.disable=function(){this._isEnabled=!1},a.toggleEnabled=function(){this._isEnabled=!this._isEnabled},a.toggle=function(e){var t,i;this._isEnabled&&(e?(t=this.constructor.DATA_KEY,(i=u(e.currentTarget).data(t))||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),u(e.currentTarget).data(t,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)):u(this.getTipElement()).hasClass(Ke)?this._leave(null,this):this._enter(null,this))},a.dispose=function(){clearTimeout(this._timeout),u.removeData(this.element,this.constructor.DATA_KEY),u(this.element).off(this.constructor.EVENT_KEY),u(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&u(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},a.show=function(){var t=this;if("none"===u(this.element).css("display"))throw new Error("Please use show on visible elements");var e,i,n=u.Event(this.constructor.Event.SHOW);this.isWithContent()&&this._isEnabled&&(u(this.element).trigger(n),i=h.findShadowRoot(this.element),i=u.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element),!n.isDefaultPrevented())&&i&&(n=this.getTipElement(),i=h.getUID(this.constructor.NAME),n.setAttribute("id",i),this.element.setAttribute("aria-describedby",i),this.setContent(),this.config.animation&&u(n).addClass(Ge),i="function"==typeof this.config.placement?this.config.placement.call(this,n,this.element):this.config.placement,i=this._getAttachment(i),this.addAttachmentClass(i),e=this._getContainer(),u(n).data(this.constructor.DATA_KEY,this),u.contains(this.element.ownerDocument.documentElement,this.tip)||u(n).appendTo(e),u(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new s(this.element,n,this._getPopperConfig(i)),u(n).addClass(Ke),"ontouchstart"in document.documentElement&&u(document.body).children().on("mouseover",null,u.noop),e=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,u(t.element).trigger(t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)},u(this.tip).hasClass(Ge)?(i=h.getTransitionDurationFromElement(this.tip),u(this.tip).one(h.TRANSITION_END,e).emulateTransitionEnd(i)):e())},a.hide=function(e){function t(){i._hoverState!==Ve&&n.parentNode&&n.parentNode.removeChild(n),i._cleanTipClass(),i.element.removeAttribute("aria-describedby"),u(i.element).trigger(i.constructor.Event.HIDDEN),null!==i._popper&&i._popper.destroy(),e&&e()}var i=this,n=this.getTipElement(),s=u.Event(this.constructor.Event.HIDE);u(this.element).trigger(s),s.isDefaultPrevented()||(u(n).removeClass(Ke),"ontouchstart"in document.documentElement&&u(document.body).children().off("mouseover",null,u.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger[Ye]=!1,u(this.tip).hasClass(Ge)?(s=h.getTransitionDurationFromElement(n),u(n).one(h.TRANSITION_END,t).emulateTransitionEnd(s)):t(),this._hoverState="")},a.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},a.isWithContent=function(){return Boolean(this.getTitle())},a.addAttachmentClass=function(e){u(this.getTipElement()).addClass(Fe+"-"+e)},a.getTipElement=function(){return this.tip=this.tip||u(this.config.template)[0],this.tip},a.setContent=function(){var e=this.getTipElement();this.setElementContent(u(e.querySelectorAll(".tooltip-inner")),this.getTitle()),u(e).removeClass("fade show")},a.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=Ie(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?u(t).parent().is(e)||e.empty().append(t):e.text(u(t).text())},a.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},a._getPopperConfig=function(e){var t=this;return o({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},{},this.config.popperConfig)},a._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=o({},e.offsets,{},t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},a._getContainer=function(){return!1===this.config.container?document.body:h.isElement(this.config.container)?u(this.config.container):u(document).find(this.config.container)},a._getAttachment=function(e){return qe[e.toUpperCase()]},a._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(e){var t;"click"===e?u(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(e){return i.toggle(e)}):"manual"!==e&&(t=e===Ye?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,e=e===Ye?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT,u(i.element).on(t,i.config.selector,function(e){return i._enter(e)}).on(e,i.config.selector,function(e){return i._leave(e)}))}),this._hideModalHandler=function(){i.element&&i.hide()},u(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=o({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},a._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==e||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},a._enter=function(e,t){var i=this.constructor.DATA_KEY;(t=t||u(e.currentTarget).data(i))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),u(e.currentTarget).data(i,t)),e&&(t._activeTrigger["focusin"===e.type?"focus":Ye]=!0),u(t.getTipElement()).hasClass(Ke)||t._hoverState===Ve?t._hoverState=Ve:(clearTimeout(t._timeout),t._hoverState=Ve,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===Ve&&t.show()},t.config.delay.show):t.show())},a._leave=function(e,t){var i=this.constructor.DATA_KEY;(t=t||u(e.currentTarget).data(i))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),u(e.currentTarget).data(i,t)),e&&(t._activeTrigger["focusout"===e.type?"focus":Ye]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState="out",t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){"out"===t._hoverState&&t.hide()},t.config.delay.hide):t.hide())},a._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},a._getConfig=function(e){var t=u(this.element).data();return Object.keys(t).forEach(function(e){-1!==Be.indexOf(e)&&delete t[e]}),"number"==typeof(e=o({},this.constructor.Default,{},t,{},"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),h.typeCheckConfig(R,e,this.constructor.DefaultType),e.sanitize&&(e.template=Ie(e.template,e.whiteList,e.sanitizeFn)),e},a._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},a._cleanTipClass=function(){var e=u(this.getTipElement()),t=e.attr("class").match(ze);null!==t&&t.length&&e.removeClass(t.join(""))},a._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},a._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(u(e).removeClass(Ge),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},Xe._jQueryInterface=function(i){return this.each(function(){var e=u(this).data(Ne),t="object"==typeof i&&i;if((e||!/dispose|hide/.test(i))&&(e||(e=new Xe(this,t),u(this).data(Ne,e)),"string"==typeof i)){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i]()}})},t(Xe,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return We}},{key:"NAME",get:function(){return R}},{key:"DATA_KEY",get:function(){return Ne}},{key:"Event",get:function(){return Ue}},{key:"EVENT_KEY",get:function(){return M}},{key:"DefaultType",get:function(){return He}}]),Xe);function Xe(e,t){if(void 0===s)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}u.fn[R]=L._jQueryInterface,u.fn[R].Constructor=L,u.fn[R].noConflict=function(){return u.fn[R]=Pe,L._jQueryInterface};var Qe,Je="popover",Ze="bs.popover",O="."+Ze,et=u.fn[Je],tt="bs-popover",it=new RegExp("(^|\\s)"+tt+"\\S+","g"),nt=o({},L.Default,{placement:"right",trigger:"click",content:"",template:''}),st=o({},L.DefaultType,{content:"(string|element|function)"}),ot={HIDE:"hide"+O,HIDDEN:"hidden"+O,SHOW:"show"+O,SHOWN:"shown"+O,INSERTED:"inserted"+O,CLICK:"click"+O,FOCUSIN:"focusin"+O,FOCUSOUT:"focusout"+O,MOUSEENTER:"mouseenter"+O,MOUSELEAVE:"mouseleave"+O},rt=(l=Qe=L,(i=at).prototype=Object.create(l.prototype),(i.prototype.constructor=i).__proto__=l,(i=at.prototype).isWithContent=function(){return this.getTitle()||this._getContent()},i.addAttachmentClass=function(e){u(this.getTipElement()).addClass(tt+"-"+e)},i.getTipElement=function(){return this.tip=this.tip||u(this.config.template)[0],this.tip},i.setContent=function(){var e=u(this.getTipElement()),t=(this.setElementContent(e.find(".popover-header"),this.getTitle()),this._getContent());"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(".popover-body"),t),e.removeClass("fade show")},i._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},i._cleanTipClass=function(){var e=u(this.getTipElement()),t=e.attr("class").match(it);null!==t&&0=this._offsets[n]&&(void 0===this._offsets[n+1]||e li > .active",St=((i=_t.prototype).show=function(){var e,t,i,n,s,o,r=this;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&u(this._element).hasClass(kt)||u(this._element).hasClass("disabled")||(t=u(this._element).closest(".nav, .list-group")[0],i=h.getSelectorFromElement(this._element),t&&(s="UL"===t.nodeName||"OL"===t.nodeName?At:".active",n=(n=u.makeArray(u(t).find(s)))[n.length-1]),s=u.Event(xt.HIDE,{relatedTarget:this._element}),o=u.Event(xt.SHOW,{relatedTarget:n}),n&&u(n).trigger(s),u(this._element).trigger(o),o.isDefaultPrevented())||s.isDefaultPrevented()||(i&&(e=document.querySelector(i)),this._activate(this._element,t),o=function(){var e=u.Event(xt.HIDDEN,{relatedTarget:r._element}),t=u.Event(xt.SHOWN,{relatedTarget:n});u(n).trigger(e),u(r._element).trigger(t)},e?this._activate(e,e.parentNode,o):o())},i.dispose=function(){u.removeData(this._element,wt),this._element=null},i._activate=function(e,t,i){function n(){return s._transitionComplete(e,o,i)}var s=this,o=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?u(t).children(".active"):u(t).find(At))[0],t=i&&o&&u(o).hasClass("fade");o&&t?(t=h.getTransitionDurationFromElement(o),u(o).removeClass("show").one(h.TRANSITION_END,n).emulateTransitionEnd(t)):n()},i._transitionComplete=function(e,t,i){var n;t&&(u(t).removeClass(kt),(n=u(t.parentNode).find("> .dropdown-menu .active")[0])&&u(n).removeClass(kt),"tab"===t.getAttribute("role"))&&t.setAttribute("aria-selected",!1),u(e).addClass(kt),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),h.reflow(e),e.classList.contains("fade")&&e.classList.add("show"),e.parentNode&&u(e.parentNode).hasClass("dropdown-menu")&&((n=u(e).closest(".dropdown")[0])&&(t=[].slice.call(n.querySelectorAll(".dropdown-toggle")),u(t).addClass(kt)),e.setAttribute("aria-expanded",!0)),i&&i()},_t._jQueryInterface=function(i){return this.each(function(){var e=u(this),t=e.data(wt);if(t||(t=new _t(this),e.data(wt,t)),"string"==typeof i){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i]()}})},t(_t,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),_t);function _t(e){this._element=e}u(document).on(xt.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(e){e.preventDefault(),St._jQueryInterface.call(u(this),"show")}),u.fn.tab=St._jQueryInterface,u.fn.tab.Constructor=St,u.fn.tab.noConflict=function(){return u.fn.tab=$t,St._jQueryInterface};var Ct="toast",Tt="bs.toast",a="."+Tt,jt=u.fn[Ct],Et={CLICK_DISMISS:"click.dismiss"+a,HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a},Rt="show",Mt={animation:"boolean",autohide:"boolean",delay:"number"},Lt={animation:!0,autohide:!0,delay:500},Ot=((l=Dt.prototype).show=function(){var e,t=this,i=u.Event(Et.SHOW);u(this._element).trigger(i),i.isDefaultPrevented()||(this._config.animation&&this._element.classList.add("fade"),i=function(){t._element.classList.remove("showing"),t._element.classList.add(Rt),u(t._element).trigger(Et.SHOWN),t._config.autohide&&(t._timeout=setTimeout(function(){t.hide()},t._config.delay))},this._element.classList.remove("hide"),h.reflow(this._element),this._element.classList.add("showing"),this._config.animation?(e=h.getTransitionDurationFromElement(this._element),u(this._element).one(h.TRANSITION_END,i).emulateTransitionEnd(e)):i())},l.hide=function(){var e;this._element.classList.contains(Rt)&&(e=u.Event(Et.HIDE),u(this._element).trigger(e),e.isDefaultPrevented()||this._close())},l.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Rt)&&this._element.classList.remove(Rt),u(this._element).off(Et.CLICK_DISMISS),u.removeData(this._element,Tt),this._element=null,this._config=null},l._getConfig=function(e){return e=o({},Lt,{},u(this._element).data(),{},"object"==typeof e&&e?e:{}),h.typeCheckConfig(Ct,e,this.constructor.DefaultType),e},l._setListeners=function(){var e=this;u(this._element).on(Et.CLICK_DISMISS,'[data-dismiss="toast"]',function(){return e.hide()})},l._close=function(){function e(){i._element.classList.add("hide"),u(i._element).trigger(Et.HIDDEN)}var t,i=this;this._element.classList.remove(Rt),this._config.animation?(t=h.getTransitionDurationFromElement(this._element),u(this._element).one(h.TRANSITION_END,e).emulateTransitionEnd(t)):e()},Dt._jQueryInterface=function(i){return this.each(function(){var e=u(this),t=e.data(Tt);if(t||(t=new Dt(this,"object"==typeof i&&i),e.data(Tt,t)),"string"==typeof i){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i](this)}})},t(Dt,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"DefaultType",get:function(){return Mt}},{key:"Default",get:function(){return Lt}}]),Dt);function Dt(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}u.fn[Ct]=Ot._jQueryInterface,u.fn[Ct].Constructor=Ot,u.fn[Ct].noConflict=function(){return u.fn[Ct]=jt,Ot._jQueryInterface},e.Alert=n,e.Button=G,e.Carousel=f,e.Collapse=he,e.Dropdown=_,e.Modal=Re,e.Popover=rt,e.Scrollspy=vt,e.Tab=St,e.Toast=Ot,e.Tooltip=L,e.Util=h,Object.defineProperty(e,"__esModule",{value:!0})}),function(){function c(e,i){var t,n;return i=r(e,i),(e=s.modules[i])||("function"==typeof(e=s.payloads[i])&&(t={id:i,uri:"",exports:n={},packaged:!0},n=e(function(e,t){return o(i,e,t)},n,t)||t.exports,s.modules[i]=n,delete s.payloads[i]),e=s.modules[i]=n||e),e}var e,t,i=function(){return this}(),s=(i||"undefined"==typeof window||(i=window),function(e,t,i){"string"!=typeof e?s.original?s.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace()):(2==arguments.length&&(i=t),s.modules[e]||(s.payloads[e]=i,s.modules[e]=null))}),o=(s.modules={},s.payloads={},function(e,t,i){if("string"==typeof t){var n=c(e,t);if(null!=n)return i&&i(),n}else if("[object Array]"===Object.prototype.toString.call(t)){for(var s=[],o=0,r=t.length;o ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t=e.end,e=e.start,t=this.compare(t.row,t.column);return 1==t?1==(t=this.compare(e.row,e.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(e.row,e.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){e=this.compareRange(e);return-1==e||0==e||1==e},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)&&!this.isStart(e,t)},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?ethis.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row!==e||t<=this.end.column?0:1:tthis.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){var i,n;return this.end.row>t?i={row:t+1,column:0}:this.end.rowt?n={row:t+1,column:0}:this.start.row>=1)&&(e+=e);return i};var n=/^\s\s*/,s=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(n,"")},t.stringTrimRight=function(e){return e.replace(s,"")},t.copyObject=function(e){var t,i={};for(t in e)i[t]=e[t];return i},t.copyArray=function(e){for(var t=[],i=0,n=e.length;iDate.now()-50)||(n=!1)},cancel:function(){n=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(e,t,i){"use strict";var P=e("../lib/event"),F=e("../lib/useragent"),z=e("../lib/dom"),B=e("../lib/lang"),H=e("../clipboard"),q=F.isChrome<18,W=F.isIE,V=63e+1?t.length:n,n+=s.length+1,s=s+"\n"+t):X&&0=f.length&&e.value===f&&f&&e.selectionEnd!==v}),$=null,x=(this.setInputHandler=function(e){$=e},!(this.getInputHandler=function(){return $})),k=function(e,t){if(x=x&&!1,g)return w(),e&&h.onPaste(e),g=!1,"";for(var i=d.selectionStart,n=d.selectionEnd,s=b,o=f.length-v,r=e,a=e.length-i,c=e.length-n,l=0;0b-1&&f[f.length-l]==e[e.length-l];)l++,o--;a-=l-1,c-=l-1;var u=r.length-l+1;return u<0&&(s=-u,u=0),r=r.slice(0,u),t||r||a||s||o||c?(u=!(p=!0),F.isAndroid&&". "==r&&(r=" ",u=!0),r&&!s&&!o&&!a&&!c||m?h.onTextInput(r):h.onTextInput(r,{extendLeft:s,extendRight:o,restoreStart:a,restoreEnd:c}),p=!1,f=e,b=i,v=n,y=c,u?"\n":r):""},A=function(e){if(r)return C();if(e&&e.inputType){if("historyUndo"==e.inputType)return h.execCommand("undo");if("historyRedo"==e.inputType)return h.execCommand("redo")}var e=d.value,t=k(e,!0);(500this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var e=e.getDocumentPosition(),t=this.editor,i=t.session.getBracketRange(e);i?(i.isEmpty()&&(i.start.column--,i.end.column++),this.setState("select")):(i=t.selection.getWordRange(e.row,e.column),this.setState("selectByWords")),this.$clickSelection=i,this.select()},this.onTripleClick=function(e){var e=e.getDocumentPosition(),t=this.editor,i=(this.setState("selectByLines"),t.getSelectionRange());i.isMultiLine()&&i.contains(e.row,e.column)?(this.$clickSelection=t.selection.getLineRange(i.start.row),this.$clickSelection.end=t.selection.getLineRange(i.end.row).end):this.$clickSelection=t.selection.getLineRange(e.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){var t,i,n,s,o,r,a;if(!e.getAccelKey())return e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0),t=this.editor,this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0}),i=this.$lastScroll,s=(a=(n=e.domEvent.timeStamp)-i.t)?e.wheelX/a:i.vx,o=a?e.wheelY/a:i.vy,a<550&&(s=(s+i.vx)/2,o=(o+i.vy)/2),a=!1,1<=(r=Math.abs(s/o))&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(a=!0),(a=r<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)?!0:a)?i.allowed=n:n-i.allowed<550&&(Math.abs(s)<=1.5*Math.abs(i.vx)&&Math.abs(o)<=1.5*Math.abs(i.vy)?(a=!0,i.allowed=n):i.allowed=0),i.t=n,i.vx=s,i.vy=o,a?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}}).call(n.prototype),t.DefaultHandlers=n}),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],function(e,t,i){"use strict";function n(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}e("./lib/oop");var s=e("./lib/dom");(function(){this.$init=function(){return this.$element=s.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){this.getElement().textContent=e},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){s.addCssClass(this.getElement(),e)},this.show=function(e,t,i){null!=e&&this.setText(e),null!=t&&null!=i&&this.setPosition(t,i),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(n.prototype),t.Tooltip=n}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],function(e,t,i){"use strict";function h(e){r.call(this,e)}var d=e("../lib/dom"),n=e("../lib/oop"),g=e("../lib/event"),r=e("../tooltip").Tooltip;n.inherits(h,r),function(){this.setPosition=function(e,t){var i=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,s=this.getWidth(),o=this.getHeight();i<(e+=15)+s&&(e-=e+s-i),n<(t+=15)+o&&(t-=20+o),r.prototype.setPosition.call(this,e,t)}}.call(h.prototype),t.GutterHandler=function(n){function s(){i=i&&clearTimeout(i),a&&(u.hide(),a=null,c._signal("hideGutterTooltip",u),c.off("mousewheel",s))}function o(e){u.setPosition(e.x,e.y)}var i,r,a,c=n.editor,l=c.renderer.$gutterLayer,u=new h(c.container);n.editor.setDefaultHandler("guttermousedown",function(e){if(c.isFocused()&&0==e.getButton()){var t=l.getRegion(e);if("foldWidgets"!=t){var t=e.getDocumentPosition().row,i=c.session.selection;if(e.getShiftKey())i.selectTo(t,0);else{if(2==e.domEvent.detail)return c.selectAll(),e.preventDefault();n.$clickSelection=c.selection.getLineRange(t)}return n.setState("selectByLines"),n.captureMouse(e),e.preventDefault()}}}),n.editor.setDefaultHandler("guttermousemove",function(e){var t=e.domEvent.target||e.domEvent.srcElement;if(d.hasCssClass(t,"ace_fold-widget"))return s();a&&n.$tooltipFollowsMouse&&o(e),r=e,i=i||setTimeout(function(){i=null,(r&&!n.isMousePressed?function(){var e=r.getDocumentPosition().row,t=l.$annotations[e];if(!t)return s();if(e==c.session.getLength()){var e=c.renderer.pixelToScreenCoordinates(0,r.y).row,i=r.$pos;if(e>c.session.documentToScreenRow(i.row,i.column))return s()}a!=t&&(a=t.text.join("
    "),u.setHtml(a),u.show(),c._signal("showGutterTooltip",u),c.on("mousewheel",s),n.$tooltipFollowsMouse?o(r):(e=r.domEvent.target.getBoundingClientRect(),(i=u.getElement().style).left=e.right+"px",i.top=e.bottom+"px"))}:s)()},50)}),g.addListener(c.renderer.$gutter,"mouseout",function(e){r=null,a&&(i=i||setTimeout(function(){i=null,s()},50))},c),c.on("changeSession",s)}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t,i){"use strict";var n=e("../lib/event"),s=e("../lib/useragent"),e=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};!function(){this.stopPropagation=function(){n.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){n.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){var e,t;return null===this.$inSelection&&((e=this.editor.getSelectionRange()).isEmpty()?this.$inSelection=!1:(t=this.getDocumentPosition(),this.$inSelection=e.contains(t.row,t.column))),this.$inSelection},this.getButton=function(){return n.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=s.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}.call(e.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,t,i){"use strict";function n(t){function e(){var e,t,i,n,s,o,r,a,c=d;d=v.renderer.screenToTextCoordinates(l,u),s=d,o=c,r=Date.now(),a=!o||s.row!=o.row,o=!o||s.column!=o.column,!f||a||o?(v.moveCursorToPosition(s),f=r,b={x:l,y:u}):5this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,t=(e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging"),_.isWin?"default":"move");e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;_.isIE&&"dragReady"==this.state&&3i&&(p=-1),d=e.clientX=r,g=e.clientY=o,x=k=0,new A(e,u));if(b=r.getDocumentPosition(),s-p<500&&1==t.length&&!w)$++,e.preventDefault(),e.button=0,f=null,clearTimeout(f),u.selection.moveToPosition(b),(o=2<=$?u.selection.getLineRange(b.row):u.session.getBracketRange(b))&&!o.isEmpty()?u.selection.setRange(o):u.selection.selectWord(),y="wait";else{$=0;var r=u.selection.cursor,t=u.selection.isEmpty()?r:u.selection.anchor,o=u.renderer.$cursorLayer.getPixelPosition(r,!0),r=u.renderer.$cursorLayer.getPixelPosition(t,!0),t=u.renderer.scroller.getBoundingClientRect(),a=u.renderer.layerConfig.offset,c=u.renderer.scrollLeft,l=function(e,t){return(e/=n)*e+(t=t/i-.75)*t};if(e.clientX=t.length||(s=i[n-1])!=A&&s!=S||(c=t[n+1])!=A&&c!=S?_:(c=b?S:c)==s?c:_;case M:return(s=0=e){for(n=c+1;n=e;)n++;for(s=c,o=n-1;s>8;return 0==i?191j&&t[a]t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?a.fromPoints(t,t):this.isBackwards()?a.fromPoints(t,e):a.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,t){var i=t?e.end:e.start,t=t?e.start:e.end;this.$setSelection(i.row,i.column,t.row,t.column)},this.$setSelection=function(e,t,i,n){var s,o;!this.$silent&&(s=this.$isEmpty,o=this.inMultiSelectMode,this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(i,n),this.$isEmpty=!a.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),this.$cursorChanged||this.$anchorChanged||s!=this.$isEmpty||o)&&this._emit("changeSelection")},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection(function(){this.moveCursorTo(e,t)})},this.selectToPosition=function(e){this.$moveSelection(function(){this.moveCursorToPosition(e)})},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){var i;return void 0===t&&(e=(i=e||this.lead).row,t=i.column),this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),e=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(e)},this.getLineRange=function(e,t){var e="number"==typeof e?e:this.lead.row,i=this.session.getFoldLine(e),i=i?(e=i.start.row,i.end.row):e;return!0===t?new a(e,0,i,this.session.getLine(i).length):new a(e,0,i+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,i){var n=e.column,s=e.column+t;return i<0&&(n=e.column-t,s=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(n,s).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();(e=this.session.getFoldAt(t.row,t.column,-1))?this.moveCursorTo(e.start.row,e.start.column):0===t.column?0=i.length?(this.moveCursorTo(e,i.length),this.moveCursorRight(),el&&(d=e.substring(l,f-m.length),h.type==g?h.value+=d:(h.type&&c.push(h),h={type:g,value:d}));for(var b=0;bv){for(u>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});l=this.$rowTokens.length;){if(this.$row+=1,e=e||this.$session.getLength(),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,i=e[t].start;if(void 0===i)for(i=0;0e.length&&(w=e.length)}),c==1/0&&(c=w,a=r=!1),u&&c%l!=0&&(c=Math.floor(c/l)*l),t(a?h:g)},this.toggleBlockComment=function(e,t,i,n){var s=this.blockComment;if(s){!s.start&&s[0]&&(s=s[0]);var o,r,a=(d=new m(t,n.row,n.column)).getCurrentToken(),c=(t.selection,t.selection.toOrientedRange());if(a&&/comment/.test(a.type)){for(;a&&/comment/.test(a.type);){if(-1!=(g=a.value.indexOf(s.start))){var l=d.getCurrentTokenRow(),u=d.getCurrentTokenColumn()+g,h=new f(l,u,l,u+s.start.length);break}a=d.stepBackward()}for(var d,g,a=(d=new m(t,n.row,n.column)).getCurrentToken();a&&/comment/.test(a.type);){if(-1!=(g=a.value.indexOf(s.end))){var l=d.getCurrentTokenRow(),u=d.getCurrentTokenColumn()+g,p=new f(l,u,l,u+s.end.length);break}a=d.stepForward()}p&&t.remove(p),h&&(t.remove(h),o=h.start.row,r=-s.start.length)}else r=s.start.length,o=i.start.row,t.insert(i.end,s.end),t.insert(i.start,s.start);c.start.row==o&&(c.start.column+=r),c.end.row==o&&(c.end.column+=r),t.selection.fromOrientedRange(c)}},this.getNextLineIndent=function(e,t,i){return this.$getIndent(t)},this.checkOutdent=function(e,t,i){return!1},this.autoOutdent=function(e,t,i){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var n in this.$embeds=[],this.$modes={},e){var t,i,s;e[n]&&(i=(t=e[n]).prototype.$id,(s=r.$modes[i])||(r.$modes[i]=s=new t),r.$modes[n]||(r.$modes[n]=s),this.$embeds.push(n),this.$modes[n]=s)}for(var o=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],n=0;nthis.row||(e=e,t={row:this.row,column:this.column},i=this.$insertRight,n=((r="insert"==e.action)?1:-1)*(e.end.row-e.start.row),s=(r?1:-1)*(e.end.column-e.start.column),o=e.start,r=r?o:e.end,e=a(t,o,i)?{row:t.row,column:t.column}:a(r,t,!i)?{row:t.row+n,column:t.column+(t.row==r.row?s:0)}:{row:o.row,column:o.column},this.setPosition(e.row,e.column,!0))},this.setPosition=function(e,t,i){i=i?{row:e,column:t}:this.$clipPositionToDocument(e,t);this.row==i.row&&this.column==i.column||(e={row:this.row,column:this.column},this.row=i.row,this.column=i.column,this._signal("change",{old:e,value:i}))},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var i={};return e>=this.document.getLength()?(i.row=Math.max(0,this.document.getLength()-1),i.column=this.document.getLine(i.row).length):e<0?(i.row=0,i.column=0):(i.row=e,i.column=Math.min(this.document.getLine(i.row).length,Math.max(0,t))),t<0&&(i.column=0),i}}.call(e.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t,i){"use strict";function n(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)}var s=e("./lib/oop"),o=e("./apply_delta").applyDelta,r=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,c=e("./anchor").Anchor;(function(){s.implement(this,r),this.setValue=function(e){var t=this.getLength()-1;this.remove(new a(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new c(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){e=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=e?e[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t,i;return e.start.row===e.end.row?t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)]:((t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column),i=t.length-1,e.end.row-e.start.row==i&&(t[i]=t[i].substring(0,e.end.column))),t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var i=this.clippedPos(e.row,e.column),e=this.pos(e.row,e.column+t.length);return this.applyDelta({start:i,end:e,action:"insert",lines:[t]},!0),this.clonePos(e)},this.clippedPos=function(e,t){var i=this.getLength(),i=(void 0===e?e=i:e<0?e=0:i<=e&&(e=i-1,t=void 0),this.getLine(e));return null==t&&(t=i.length),{row:e,column:t=Math.min(Math.max(t,0),i.length)}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){var i=0,i=(e=Math.min(Math.max(e,0),this.getLength()))e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=t.tokens}}).call(n.prototype),t.BackgroundTokenizer=n}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,i){"use strict";function n(e,t,i){this.setRegexp(e),this.clazz=t,this.type=i||"text"}var l=e("./lib/lang"),u=(e("./lib/oop"),e("./range").Range);(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,i,n){if(this.regExp)for(var s=n.firstRow,o=n.lastRow,r=s;r<=o;r++){var a=this.cache[r];null==a&&(a=(a=(a=l.getMatchOffsets(i.getLine(r),this.regExp)).length>this.MAX_RANGES?a.slice(0,this.MAX_RANGES):a).map(function(e){return new u(r,e.offset,r,e.offset+e.length)}),this.cache[r]=a.length?a:"");for(var c=a.length;c--;)t.drawSingleLineMarker(e,a[c].toScreenRange(i),this.clazz,n)}}}).call(n.prototype),t.SearchHighlight=n}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,t,i){"use strict";function s(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];e=t[t.length-1];this.range=new n(t[0].start.row,t[0].start.column,e.end.row,e.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(e){e.setFoldLine(this)},this)}var n=e("../range").Range;(function(){this.shiftRow=function(t){this.start.row+=t,this.end.row+=t,this.folds.forEach(function(e){e.start.row+=t,e.end.row+=t})},this.addFold=function(e){if(e.sameRow){if(e.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort(function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)}),0=this.start.row&&e<=this.end.row},this.walk=function(e,t,i){var n,s,o=0,r=this.folds,a=!0;null==t&&(t=this.end.row,i=this.end.column);for(var c=0;ct||i[i.length-1].start.row=n);r++);if("insert"==e.action)for(var c=s-n,l=-t.column+i.column;rn)break;u.start.row==n&&u.start.column>=t.column&&(u.start.column==t.column&&this.$bias<=0||(u.start.column+=l,u.start.row+=c)),u.end.row==n&&u.end.column>=t.column&&(u.end.column==t.column&&this.$bias<0||(u.end.column==t.column&&0u.start.column&&u.end.column==o[r+1].start.column&&(u.end.column-=l),u.end.column+=l,u.end.row+=c))}else for(var u,c=n-s,l=t.column-i.column;rs)break;u.end.rowt.column)&&(u.end.column=t.column,u.end.row=t.row):(u.end.column+=l,u.end.row+=c):u.end.row>s&&(u.end.row+=c),u.start.rowt.column)&&(u.start.column=t.column,u.start.row=t.row):(u.start.column+=l,u.start.row+=c):u.start.row>s&&(u.start.row+=c)}if(0!=c&&r=e)return s;if(s.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var i=this.$foldData,n=0;for(-1==(n=t?i.indexOf(t):n)&&(n=0);n=e)return s}return null},this.getFoldedRowCount=function(e,t){for(var i=this.$foldData,n=t-e+1,s=0;sa)break}while(s&&r.test(s.type));s=n.stepBackward()}else s=n.getCurrentToken();return o.end.row=n.getCurrentTokenRow(),o.end.column=n.getCurrentTokenColumn()+s.value.length-2,o}},this.foldAll=function(e,t,i,n){null==i&&(i=1e5);var s=this.foldWidgets;if(s){t=t||this.getLength();for(var o,r=e=e||0;r=e&&(r=o.end.row,o.collapseChildren=i,this.addFold("...",o))}},this.foldToLevel=function(e){for(this.foldAll();0=e)break}n--}return{range:-1!==n&&o,firstRange:r}},this.onFoldWidgetClick=function(e,t){var i={children:(t=t.domEvent).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};this.$toggleFoldWidget(e,i)||(e=t.target||t.srcElement)&&/ace_fold-widget/.test(e.className)&&(e.className+=" ace_invalid")},this.$toggleFoldWidget=function(e,t){var i,n,s,o;if(this.getFoldWidget)return i=this.getFoldWidget(e),n=this.getLine(e),(n=this.getFoldAt(e,-1==(i="end"===i?-1:1)?0:n.length,i))?(t.children||t.all?this.removeFold(n):this.expandFold(n),n):(i=this.getFoldWidgetRange(e,!0))&&!i.isMultiLine()&&(n=this.getFoldAt(i.start.row,i.start.column,1))&&i.isEqual(n.range)?(this.removeFold(n),n):(t.siblings?((n=this.getParentFoldRangeData(e)).range&&(s=n.range.start.row+1,o=n.range.end.row),this.foldAll(s,o,t.all?1e4:0)):t.children?(o=i?i.end.row:this.getLength(),this.foldAll(e+1,o,t.all?1e4:0)):i&&(t.all&&(i.collapseChildren=1e4),this.addFold("...",i)),i)},this.toggleFoldWidget=function(e){var t,i=this.selection.getCursor().row;i=this.getRowFoldStart(i),!this.$toggleFoldWidget(i,{})&&(t=(t=this.getParentFoldRangeData(i,!0)).range||t.firstRange)&&(i=t.start.row,(i=this.getFoldAt(i,this.getLine(i).length,1))?this.removeFold(i):this.addFold("...",t))},this.updateFoldWidgets=function(e){var t=e.start.row,i=e.end.row-t;0==i?this.foldWidgets[t]=null:"remove"==e.action?this.foldWidgets.splice(t,1+i,null):((e=Array(1+i)).unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,e))},this.tokenizerUpdateFoldWidgets=function(e){e=e.data;e.first!=e.last&&this.foldWidgets.length>e.first&&this.foldWidgets.splice(e.first,this.foldWidgets.length)}}}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,t,i){"use strict";var h=e("../token_iterator").TokenIterator,a=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){return 0!=e.column&&""!=(t=t||this.getLine(e.row).charAt(e.column-1))&&(t=t.match(/([\(\[\{])|([\)\]\}])/))?t[1]?this.$findClosingBracket(t[1],e):this.$findOpeningBracket(t[2],e):null},this.getBracketRange=function(e){var t,i,n=this.getLine(e.row),s=!0,o=n.charAt(e.column-1),r=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(r||(o=n.charAt(e.column),e={row:e.row,column:e.column+1},r=o&&o.match(/([\(\[\{])|([\)\]\}])/),s=!1),!r)return null;if(r[1]){if(!(i=this.$findClosingBracket(r[1],e)))return null;t=a.fromPoints(e,i),s||(t.end.column++,t.start.column--),t.cursor=t.end}else{if(!(i=this.$findOpeningBracket(r[2],e)))return null;t=a.fromPoints(i,e),s||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e){var t=this.getLine(e.row),i=t.charAt(e.column-1),n=i&&i.match(/([\(\[\{])|([\)\]\}])/);return n||(i=t.charAt(e.column),e={row:e.row,column:e.column+1},n=i&&i.match(/([\(\[\{])|([\)\]\}])/)),n?(t=new a(e.row,e.column-1,e.row,e.column),(i=n[1]?this.$findClosingBracket(n[1],e):this.$findOpeningBracket(n[2],e))?[t,new a(i.row,i.column,i.row,i.column+1)]:[t]):null},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,i){var n=this.$brackets[e],s=1,o=new h(this,t.row,t.column),r=o.getCurrentToken();if(r=r||o.stepForward()){i=i||new RegExp("(\\.?"+r.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+");for(var a=t.column-o.getCurrentTokenColumn()-2,c=r.value;;){for(;0<=a;){var l=c.charAt(a);if(l==n){if(0==--s)return{row:o.getCurrentTokenRow(),column:a+o.getCurrentTokenColumn()}}else l==e&&(s+=1);--a}for(;(r=o.stepBackward())&&!i.test(r.type););if(null==r)break;a=(c=r.value).length-1}return null}},this.$findClosingBracket=function(e,t,i){var n=this.$brackets[e],s=1,o=new h(this,t.row,t.column),r=o.getCurrentToken();if(r=r||o.stepForward()){i=i||new RegExp("(\\.?"+r.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+");for(var a=t.column-o.getCurrentTokenColumn();;){for(var c=r.value,l=c.length;a>1,o=e[s];if(ot&&(t=e.screenWidth)}),this.lineWidgetWidth=t)},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),i=this.$rowLengthCache,n=0,s=0,o=this.$foldData[s],r=o?o.start.row:1/0,a=t.length,c=0;cn&&(n=i[c])}this.screenWidth=n}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var i=e.length-1;-1!=i;i--){var n=e[i];"insert"==n.action||"remove"==n.action?this.doc.revertDelta(n):n.folds&&this.addFolds(n.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var i=0;ie.end.column&&(t.start.column+=o),t.end.row==e.end.row)&&t.end.column>e.end.column&&(t.end.column+=o),s&&t.start.row>=e.end.row&&(t.start.row+=s,t.end.row+=s)),t.end=this.insert(t.start,r),a.length&&(n=e.start,i=t.start,s=i.row-n.row,o=i.column-n.column,this.addFolds(a.map(function(e){return(e=e.clone()).start.row==n.row&&(e.start.column+=o),e.end.row==n.row&&(e.end.column+=o),e.start.row+=s,e.end.row+=s,e}))),t},this.indentRows=function(e,t,i){i=i.replace(/\t/g,this.getTabString());for(var n=e;n<=t;n++)this.doc.insertInLine({row:n,column:0},i)},this.outdentRows=function(e){for(var t=e.collapseRows(),i=new h(0,0,0,0),n=this.getTabSize(),s=t.start.row;s<=t.end.row;++s){var o=this.getLine(s);i.start.row=s,i.end.row=s;for(var r=0;rthis.doc.getLength()-1)return 0;n=s-t}else{e=this.$clipRowToDocument(e);n=(t=this.$clipRowToDocument(t))-e+1}var s=new h(e,0,t,Number.MAX_VALUE),s=this.getFoldsInRange(s).map(function(e){return(e=e.clone()).start.row+=n,e.end.row+=n,e}),i=0==i?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+n,i),s.length&&this.addFolds(s),n},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){var i;return t=Math.max(0,t),t=e<0?e=0:(i=this.doc.getLength())<=e?this.doc.getLine(e=i-1).length:Math.min(this.doc.getLine(e).length,t),{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){e!=this.$useWrapMode&&(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e&&(e=this.getLength(),this.$wrapData=Array(e),this.$updateWrapData(0,e-1)),this._signal("changeWrapMode"))},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var i=this.$wrapLimitRange,t=(i.max<0&&(i={min:t,max:t}),this.$constrainWrapLimit(e,i.min,i.max));return t!=this.$wrapLimit&&1=s.row&&g.shiftRow(-a);r=o}else{var h=Array(a),d=(h.unshift(o,0),t?this.$wrapData:this.$rowLengthCache),l=(d.splice.apply(d,h),this.$foldData),u=0;for((g=this.getFoldLine(o))&&(0==(d=g.range.compareInside(n.row,n.column))?(g=g.split(n.row,n.column))&&(g.shiftRow(a),g.addRemoveChars(r,0,s.column-n.column)):-1==d&&(g.addRemoveChars(o,0,s.column-n.column),g.shiftRow(a)),u=l.indexOf(g)+1);u=o&&g.shiftRow(a)}else{var g,a=Math.abs(e.start.column-e.end.column);"remove"===i&&(c=this.getFoldsInRange(e),this.removeFolds(c),a=-a),(g=this.getFoldLine(o))&&g.addRemoveChars(o,n.column,a)}return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(o,r):this.$updateRowLengthCache(o,r),c},this.$updateRowLengthCache=function(e,t,i){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(e,t){var r,i,a=this.doc.getAllLines(),n=this.getTabSize(),s=this.$wrapData,o=this.$wrapLimit,c=e;for(t=Math.min(t,a.length-1);c<=t;)(i=this.getFoldLine(c,i))?(r=[],i.walk(function(e,t,i,n){var s;if(null!=e){(s=this.$getDisplayTokens(e,r.length))[0]=p;for(var o=1;o>2)),a-1);gu[d-1]):!d,this.getLength()-1),p=this.getNextFoldLine(r),m=p?p.start.row:1/0;c<=e&&!(ea[l-1]):!l,this.getNextFoldLine(r)),h=u?u.start.row:1/0;r=g[p];)n++,p++;d=d.substring(g[p-1]||0,d.length),c=0h||(s.push(r=new y(l,h,l+a-1,d)),2b&&s[u].end.row==i.end.row;)u--;for(s=s.slice(g,u+1),g=0,u=s.length;g=s.length)break;h.lastIndex=a+=1}if(n.index+r>t)break;o.push(n.index,r)}for(var c=o.length-1;0<=c;c-=2){var l=o[c-1];if(i(e,l,e,l+(r=o[c])))return!0}}:function(e,t,i){var n=u.getLine(e);for(h.lastIndex=t;s=h.exec(n);){var s,o=s[0].length;if(i(e,s=s.index,e,s+o))return!0;if(!o&&(h.lastIndex=s+=1,s>=n.length))return!1}},{forEach:a?function(e){var t=n.row;if(!r(t,n.column,e)){for(t--;s<=t;t--)if(r(t,Number.MAX_VALUE,e))return;if(0!=i.wrap)for(t=o,s=n.row;s<=t;t--)if(r(t,Number.MAX_VALUE,e))return}}:function(e){var t=n.row;if(!r(t,n.column,e)){for(t+=1;t<=o;t++)if(r(t,0,e))return;if(0!=i.wrap)for(t=s,o=n.row;t<=o;t++)if(r(t,0,e))return}}})}}).call(n.prototype),t.Search=n}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,i){"use strict";function n(e,t){this.platform=t||(o.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function s(e,t){n.call(this,e,t),this.$singleCommand=!1}var a=e("../lib/keys"),o=e("../lib/useragent"),c=a.KEY_MODS;s.prototype=n.prototype,function(){function r(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),(this.commands[e.name]=e).bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var i,n=e&&("string"==typeof e?e:e.name),s=(e=this.commands[n],t||delete this.commands[n],this.commandKeyBinding);for(i in s){var o,r=s[i];r==e?delete s[i]:Array.isArray(r)&&-1!=(o=r.indexOf(e))&&(r.splice(o,1),1==r.length)&&(s[i]=r[0])}},this.bindKey=function(e,n,s){if("object"==typeof e&&e&&(null==s&&(s=e.position),e=e[this.platform]),e)return"function"==typeof n?this.addCommand({exec:n,bindKey:e,name:n.name||e}):void e.split("|").forEach(function(e){var t="",i=(-1!=e.indexOf(" ")&&(e=(i=e.split(/\s+/)).pop(),i.forEach(function(e){e=this.parseKeys(e),e=c[e.hashId]+e.key;t+=(t?" ":"")+e,this._addCommandToBinding(t,"chainKeys")},this),t+=" "),this.parseKeys(e)),e=c[i.hashId]+i.key;this._addCommandToBinding(t+e,n,s)},this)},this._addCommandToBinding=function(e,t,i){var n=this.commandKeyBinding;if(t)if(!n[e]||this.$singleCommand)n[e]=t;else{Array.isArray(n[e])?-1!=(o=n[e].indexOf(t))&&n[e].splice(o,1):n[e]=[n[e]],"number"!=typeof i&&(i=r(t));for(var s=n[e],o=0;ot?t+1:t,e.selection.moveCursorTo(i.row,t))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:n(null,null),exec:function(e){var t=e.session.doc.getLength()-1,i=e.session.doc.getLine(t).length,n=e.selection.rangeList.ranges,s=[];n.length<1&&(n=[e.selection.getRange()]);for(var o=0;o=n.lastRow||i.end.row<=n.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==t&&this.renderer.animateScrolling(this.curOp.scrollTop)}e=this.selection.toJSON();this.curOp.selectionAfter=e,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(e),this.prevOp=this.curOp,this.curOp=null}}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){var t,i,n,s;this.$mergeUndoDeltas&&(t=this.prevOp,i=this.$mergeableCommands,n=t.command&&e.command.name==t.command.name,"insertstring"==e.command.name?(s=e.args,void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),n=n&&this.mergeNextCommand&&(!/\s/.test(s)||/\s/.test(t.args)),this.mergeNextCommand=!0):n=n&&-1!==i.indexOf(e.command.name),(n="always"!=this.$mergeUndoDeltas&&2e3"===n.value&&a--),n&&0<=a;);else{do{if(n=c,c=i.stepBackward(),n)if(-1!==n.type.indexOf("tag-name"))o===n.value&&("<"===c.value?a++:""===n.value){for(var l=0,u=c;u;){if(-1!==u.type.indexOf("tag-name")&&u.value===o){a--;break}if("<"===u.value)break;u=i.stepBackward(),l++}for(var h=0;ha.search(/\S|$/)&&(t=a.substr(o.column).search(/\S|$/),n.doc.removeInLine(o.row,o.column,o.column+t))),this.clearSelection(),o.column),t=n.getState(o.row),a=n.getLine(o.row),c=s.checkOutdent(t,a,e);n.insert(o,e),i&&i.selection&&(2==i.selection.length?this.selection.setSelectionRange(new f(o.row,r+i.selection[0],o.row,r+i.selection[1])):this.selection.setSelectionRange(new f(o.row+i.selection[0],i.selection[1],o.row+i.selection[2],i.selection[3]))),this.$enableAutoIndent&&(n.getDocument().isNewLine(e)&&(r=s.getNextLineIndent(t,a.slice(0,o.column),n.getTabString()),n.insert({row:o.row+1,column:0},r)),c)&&s.autoOutdent(t,n,o.row)},this.autoIndent=function(){for(var e,t,i,n,s,o=this.session,r=o.getMode(),a=(i=this.selection.isEmpty()?(t=0,o.doc.getLength()-1):(t=(e=this.getSelectionRange()).start.row,e.end.row),""),c="",l=o.getTabString(),u=t;u<=i;u++)0t.toLowerCase()?1:0});for(var s=new f(0,0,0,0),n=e.first;n<=e.last;n++){var o=t.getLine(n);s.start.row=n,s.end.row=n,s.end.column=o.length,t.replace(s,i[n-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),i=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,i,e)},this.getNumberAt=function(e,t){for(var i=/[\-]?[0-9]+(?:\.[0-9]+)?/g,n=(i.lastIndex=0,this.session.getLine(e));i.lastIndex=t)return{value:s[0],start:s.index,end:s.index+s[0].length}}return null},this.modifyNumber=function(e){var t,i,n,s=this.selection.getCursor().row,o=this.selection.getCursor().column,r=new f(s,o-1,s,o),r=this.session.getTextRange(r);!isNaN(parseFloat(r))&&isFinite(r)?(r=this.getNumberAt(s,o))&&(n=0<=r.value.indexOf(".")?r.start+r.value.indexOf(".")+1:r.end,t=r.start+r.value.length-n,i=parseFloat(r.value),i*=Math.pow(10,t),n!==r.end&&og+1)break;g=p.last}for(u--,a=this.session.$moveLines(d,g,t?0:e),t&&-1==e&&(h=u+1);h<=u;)r[h].moveBy(a,0),h++;c+=a=t?a:0}i.fromOrientedRange(i.ranges[0]),i.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(e)},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var i=this.renderer,n=this.renderer.layerConfig,s=e*Math.floor(n.height/n.lineHeight),e=(!0===t?this.selection.$moveSelection(function(){this.moveCursorBy(s,0)}):!1===t&&(this.selection.moveCursorBy(s,0),this.selection.clearSelection()),i.scrollTop);i.scrollBy(0,s*n.lineHeight),null!=t&&i.scrollCursorIntoView(null,.5),i.animateScrolling(e)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,i,n){this.renderer.scrollToLine(e,t,i,n)},this.centerSelection=function(){var e=this.getSelectionRange(),e={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(e,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var i=this.getCursorPosition(),n=new y(this.session,i.row,i.column),s=n.getCurrentToken(),o=s||n.stepForward();if(o){var r,a,c,l=!1,u={},h=i.column-o.start,d={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(o.value.match(/[{}()\[\]]/g)){for(;hwindow.innerHeight)&&null)&&(r.style.top=i+"px",r.style.left=e.left+"px",r.style.height=t.lineHeight+"px",r.scrollIntoView(o)),o=n=null)}),this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",t),this.renderer.off("afterRender",a),this.renderer.off("beforeRender",i))})},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,n.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},this.prompt=function(t,i,n){var s=this;v.loadModule("./ext/prompt",function(e){e.prompt(s,t,i,n)})}}.call(s.prototype),v.defineOptions(s.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?$.attach(this):$.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?$.attach(this):$.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||this.getValue());e&&this.renderer.placeholderNode?(this.renderer.off("afterRender",this.$updatePlaceholder),n.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null):e||this.renderer.placeholderNode?!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||""):(this.renderer.on("afterRender",this.$updatePlaceholder),n.addCssClass(this.container,"ace_hasPlaceholder"),(e=n.createElement("div")).className="ace_placeholder",e.textContent=this.$placeholder||"",this.renderer.placeholderNode=e,this.renderer.content.appendChild(this.renderer.placeholderNode))}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),{getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"·":""))+""},getWidth:function(e,t,i){return Math.max(t.toString().length,(i.lastRow+1).toString().length,2)*i.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}});t.Editor=s}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(e,t,i){"use strict";function s(e,t){for(var i=t;i--;){var n=e[i];if(n&&!n[0].ignore){for(;i"+e.end.row+":"+e.end.column}function r(e,t){var i="insert"==e.action,n="insert"==t.action;if(i&&n)if(0<=p(t.start,e.end))c(t,e,-1);else{if(!(p(t.start,e.start)<=0))return;c(e,t,1)}else if(i&&!n)if(0<=p(t.start,e.end))c(t,e,-1);else{if(!(p(t.end,e.start)<=0))return;c(e,t,-1)}else if(!i&&n)if(0<=p(t.start,e.start))c(t,e,1);else{if(!(p(t.start,e.start)<=0))return;c(e,t,1)}else if(!i&&!n)if(0<=p(t.start,e.start))c(t,e,1);else{if(!(p(t.end,e.start)<=0))return;c(e,t,-1)}return 1}function c(e,t,i){l(e.start,t.start,t.end,i),l(e.end,t.start,t.end,i)}function l(e,t,i,n){e.row==(1==n?t:i).row&&(e.column+=n*(i.column-t.column)),e.row+=n*(i.row-t.row)}function u(e,t){var i=e.lines,n=e.end,s=(e.end=a(t),e.end.row-e.start.row),o=i.splice(s,i.length),s=s?t.column:t.column-e.start.column;return i.push(o[0].substring(0,s)),o[0]=o[0].substr(s),{start:a(t),end:n,lines:o,action:e.action}}function h(e,t){var i;t={start:a((i=t).start),end:a(i.end),action:i.action,lines:i.lines.slice()};for(var n=e.length;n--;){for(var s=e[n],o=0;oa+1;)this.$lines.pop();break}(r=this.$lines.get(++a))?r.row=c:(r=this.$lines.createCell(c,e,this.session,l),this.$lines.push(r)),this.$renderCell(r,e,s,c),c++}this._signal("afterRender"),this.$updateGutterWidth(e)},this.$updateGutterWidth=function(e){var t=this.session,i=t.gutterRenderer||this.$renderer,n=t.$firstLineNumber,s=this.$lines.last()?this.$lines.last().text:"",n=((this.$fixedWidth||t.$useWrapMode)&&(s=t.getLength()+n-1),i?i.getWidth(t,s,e):s.toString().length*e.characterWidth),i=this.$padding||this.$computePadding();(n+=i.left+i.right)===this.gutterWidth||isNaN(n)||(this.gutterWidth=n,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",n))},this.$updateCursorRow=function(){var e;this.$highlightGutterLine&&(e=this.session.selection.getCursor(),this.$cursorRow!==e.row)&&(this.$cursorRow=e.row)},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var i=0;i=this.$cursorRow){if(n.row>this.$cursorRow){var s=this.session.getFoldLine(this.$cursorRow);if(!(0i.right-t.right?"foldWidgets":void 0}}).call(n.prototype),t.Gutter=n}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,t,i){"use strict";function n(e){this.element=s.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)}var g=e("../range").Range,s=e("../lib/dom");(function(){this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.elt=function(e,t){var i=-1!=this.i&&this.element.childNodes[this.i];i?this.i++:(i=document.createElement("div"),this.element.appendChild(i),this.i=-1),i.style.cssText=t,i.className=e},this.update=function(e){if(e){var t,i;for(i in this.config=e,this.i=0,this.markers){var n,s,o,r=this.markers[i];r.range?(o=r.range.clipRows(e.firstRow,e.lastRow)).isEmpty()||(o=o.toScreenRange(this.session),r.renderer?(n=this.$getTop(o.start.row,e),s=this.$padding+o.start.column*e.characterWidth,r.renderer(t,o,s,n,e)):"fullLine"==r.type?this.drawFullLineMarker(t,o,r.clazz,e):"screenLine"==r.type?this.drawScreenLineMarker(t,o,r.clazz,e):o.isMultiLine()?"text"==r.type?this.drawTextMarker(t,o,r.clazz,e):this.drawMultiLineMarker(t,o,r.clazz,e):this.drawSingleLineMarker(t,o,r.clazz+" ace_start ace_br15",e)):r.update(t,this,this.session,e)}if(-1!=this.i)for(;this.ie.lastRow)for(s=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);0t.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow))},this.$renderLinesFragment=function(e,t,i){for(var n=[],s=t,o=this.session.getNextFoldLine(s),r=o?o.start.row:1/0;r=o;)r=this.$renderToken(a,r,l,u.substring(0,o-n)),u=u.substring(o-n),n=o,a=this.$createLineElement(),e.appendChild(a),a.appendChild(this.dom.createTextNode(b.stringRepeat(" ",i.indent),this.element)),r=0,o=i[++s]||Number.MAX_VALUE;0!=u.length&&(n+=u.length,r=this.$renderToken(a,r,l,u))}}i[i.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(a,r,null,"",!0)},this.$renderSimpleLine=function(e,t){var i=0,n=t[0],s=n.value;(s=this.displayIndentGuides?this.renderIndentGuide(e,s):s)&&(i=this.$renderToken(e,i,n,s));for(var o=1;othis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,i,n,s);i=this.$renderToken(e,i,n,s)}},this.$renderOverflowMessage=function(e,t,i,n,s){i&&this.$renderToken(e,t,i,n.slice(0,this.MAX_LINE_LENGTH-t));i=this.dom.createElement("span");i.className="ace_inline_button ace_keyword ace_toggle_wrap",i.textContent=s?"":"",e.appendChild(i)},this.$renderLine=function(e,t,i){var n,s,o=e;(n=(i=i||0==i?i:this.session.getFoldLine(t))?this.$getFoldLineTokens(t,i):this.session.getTokens(t)).length?(s=this.session.getRowSplitData(t))&&s.length?(this.$renderWrappedLine(e,n,s),o=e.lastChild):(o=e,this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o)),this.$renderSimpleLine(o,n)):this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o)),this.showEOL&&o&&(i&&(t=i.end.row),(s=this.dom.createElement("span")).className="ace_invisible ace_invisible_eol",s.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,o.appendChild(s))},this.$getFoldLineTokens=function(e,t){var h=this.session,d=[],g=h.getTokens(e);return t.walk(function(e,t,i,n,s){if(null!=e)d.push({type:"fold",value:e});else if((g=s?h.getTokens(t):g).length){for(var o,r=g,a=n,c=i,l=0,u=0;u+r[l].value.lengthc-a&&(o=o.substring(0,c-a)),d.push({type:r[l].type,value:o}),u=a+o.length,l+=1);uc?d.push({type:r[l].type,value:o.substring(0,c-u)}):d.push(r[l]),u+=o.length,l+=1}},t.end.row,this.session.getLine(t.end.row).length),d},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(n.prototype),t.Text=n}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";function n(e){this.element=l.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),l.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}var l=e("../lib/dom");(function(){this.$updateOpacity=function(e){for(var t=this.cursors,i=t.length;i--;)l.setStyle(t[i].style,"opacity",e?"":"0")},this.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";setTimeout(function(){l.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){l.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,l.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var e=l.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){var e;if(1e.height+e.offset||a.top<0)&&1n;)this.removeCursor();var c=this.session.getOverwrite();this.$setOverwrite(c),this.$pixelPos=a,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&((this.overwrite=e)?l.addCssClass(this.element,"ace_overwrite-cursors"):l.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(n.prototype),t.Cursor=n}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,t,i){"use strict";function n(e){this.element=a.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=a.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,c.addListener(this.element,"scroll",this.onScroll.bind(this)),c.addListener(this.element,"mousedown",c.preventDefault)}function s(e,t){n.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=a.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0}function o(e,t){n.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"}var r=e("./lib/oop"),a=e("./lib/dom"),c=e("./lib/event"),l=e("./lib/event_emitter").EventEmitter;!function(){r.implement(this,l),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}.call(n.prototype),r.inherits(s,n),function(){this.classSuffix="-v",this.onScroll=function(){var e;this.skipEvent||(this.scrollTop=this.element.scrollTop,1!=this.coeff&&(e=this.element.clientHeight/this.scrollHeight,this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)),this._emit("scroll",{data:this.scrollTop})),this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){32768<(this.scrollHeight=e)?(this.coeff=32768/e,e=32768):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(s.prototype);r.inherits(o,n),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(o.prototype),t.ScrollBar=s,t.ScrollBarV=s,t.ScrollBarH=o,t.VScrollBar=s,t.HScrollBar=o}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,t,i){"use strict";function n(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var i=this;this._flush=function(e){i.pending=!1;var t=i.changes;t&&(s.blockIdle(100),i.changes=0,i.onRender(t)),i.changes?i.$recursionLimit--<0||i.schedule():i.$recursionLimit=2}}var s=e("./lib/event");(function(){this.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(s.nextFrame(this._flush),this.pending=!0)},this.clear=function(e){var t=this.changes;return this.changes=0,t}}).call(n.prototype),t.RenderLoop=n}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(e,t,i){var n=e("../lib/oop"),s=e("../lib/dom"),o=e("../lib/lang"),r=e("../lib/event"),a=e("../lib/useragent"),c=e("../lib/event_emitter").EventEmitter,l="function"==typeof ResizeObserver,e=t.FontMetrics=function(e){this.el=s.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=s.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=s.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=o.stringRepeat("X",256),this.$characterSize={width:0,height:0},l?this.$addObserver():this.checkForSizeChanges()};!function(){n.implement(this,c),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",a.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(e){var t;!(e=void 0===e?this.$measureSizes():e)||this.$characterSize.width===e.width&&this.$characterSize.height===e.height||(this.$measureNode.style.fontWeight="bold",t=this.$measureSizes(),this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e}))},this.$addObserver=function(){var t=this;this.$observer=new window.ResizeObserver(function(e){t.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){var t;return this.$pollSizeChangesTimer||this.$observer?this.$pollSizeChangesTimer:(t=this).$pollSizeChangesTimer=r.onIdle(function e(){t.checkForSizeChanges(),r.onIdle(e,500)},500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(e){e={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/256};return 0===e.width||0===e.height?null:e},this.$measureCharWidth=function(e){return this.$main.textContent=o.stringRepeat(e,256),this.$main.getBoundingClientRect().width/256},this.getCharacterWidth=function(e){var t=this.charSizes[e];return t=void 0===t?this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width:t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function e(t){return t&&t.parentElement?(window.getComputedStyle(t).zoom||1)*e(t.parentElement):1},this.$initTransformMeasureNodes=function(){function e(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]}this.els=s.buildDom([e(0,0),e(200,0),e(0,200),e(200,200)],this.el)},this.transformCoordinates=function(e,t){function i(e,t,i){var n=e[1]*t[0]-e[0]*t[1];return[(-t[1]*i[0]+t[0]*i[1])/n,(+e[1]*i[0]-e[0]*i[1])/n]}function n(e,t){return[e[0]-t[0],e[1]-t[1]]}function s(e,t){return[e[0]+t[0],e[1]+t[1]]}function o(e,t){return[e*t[0],e*t[1]]}function r(e){e=e.getBoundingClientRect();return[e.left,e.top]}e=e&&o(1/this.$getZoom(this.el),e),this.els||this.$initTransformMeasureNodes();var a,c=r(this.els[0]),l=r(this.els[1]),u=r(this.els[2]),h=r(this.els[3]),h=i(n(h,l),n(h,u),n(s(l,u),s(h,c))),l=o(1+h[0],n(l,c)),u=o(1+h[1],n(u,c));return t?(a=h[0]*t[0]/200+h[1]*t[1]/200+1,t=s(o(t[0],l),o(t[1],u)),s(o(1/a/200,t),c)):(a=n(e,c),t=i(n(l,o(h[0],a)),n(u,o(h[1],a)),a),o(200,t))}}.call(e.prototype)}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],function(e,t,i){"use strict";function n(e,t){var i=this,e=(this.container=e||a.createElement("div"),a.addCssClass(this.container,"ace_editor"),a.HI_DPI&&a.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),this.$gutter=a.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=a.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=a.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new r(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new c(this.content),this.$textLayer=new l(this.content));this.canvas=e.element,this.$markerFront=new c(this.content),this.$cursorLayer=new u(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new d(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.on("scroll",function(e){i.$scrollAnimation||i.session.setScrollTop(e.data-i.scrollMargin.top)}),this.scrollBarH.on("scroll",function(e){i.$scrollAnimation||i.session.setScrollLeft(e.data-i.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new p(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(e){i.updateCharacterSize(),i.onResize(!0,i.gutterWidth,i.$size.width,i.$size.height),i._signal("changeCharacterSize",e)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!b.isIOS,this.$loop=new g(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),o.resetOptions(this),o._signal("renderer",this)}var s=e("./lib/oop"),a=e("./lib/dom"),o=e("./config"),r=e("./layer/gutter").Gutter,c=e("./layer/marker").Marker,l=e("./layer/text").Text,u=e("./layer/cursor").Cursor,h=e("./scrollbar").HScrollBar,d=e("./scrollbar").VScrollBar,g=e("./renderloop").RenderLoop,p=e("./layer/font_metrics").FontMetrics,m=e("./lib/event_emitter").EventEmitter,f='.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}',b=e("./lib/useragent"),v=b.isIE;a.importCssString(f,"ace_editor.css");(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,s.implement(this,m),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),a.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),(this.session=e)&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,i){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,i,n){if(!(2r.height-n?a.translate(this.textarea,0,0):(r=1,s=this.$size.height-n,o?o.useTextareaForIME?(o=this.textarea.value,r=this.characterWidth*this.session.$getStringScreenWidth(o)[0]):t+=this.lineHeight+2:t+=this.lineHeight,(i-=this.scrollLeft)>this.$size.scrollerWidth-r&&(i=this.$size.scrollerWidth-r),i+=this.gutterWidth+this.margin.left,a.setStyle(e,"height",n+"px"),a.setStyle(e,"width",r+"px"),a.translate(this.textarea,Math.min(i,this.$size.scrollerWidth-r),Math.min(t,s)))):a.translate(this.textarea,-100,0))},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,i,n){var s=this.scrollMargin;s.top=0|e,s.bottom=0|t,s.right=0|n,s.left=0|i,s.v=s.top+s.bottom,s.h=s.left+s.right,s.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-s.top),this.updateFull()},this.setMargin=function(e,t,i,n){var s=this.margin;s.top=0|e,s.bottom=0|t,s.right=0|n,s.left=0|i,s.v=s.top+s.bottom,s.h=s.left+s.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t)&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var i,n,t=this.layerConfig;(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL)&&(e|=this.$computeLayerConfig()|this.$loop.clear(),t.firstRow!=this.layerConfig.firstRow&&t.firstRowScreen==this.layerConfig.firstRowScreen&&0<(i=this.scrollTop+(t.firstRow-this.layerConfig.firstRow)*this.lineHeight)&&(this.scrollTop=i,e=(e|=this.CHANGE_SCROLL)|(this.$computeLayerConfig()|this.$loop.clear())),t=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),a.translate(this.content,-this.scrollLeft,-t.offset),i=t.width+2*this.$padding+"px",n=t.minHeight+"px",a.setStyle(this.content.style,"width",i),a.setStyle(this.content.style,"height",n)),e&this.CHANGE_H_SCROLL&&(a.translate(this.content,-this.scrollLeft,-t.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL?(this.$changedLines=null,this.$textLayer.update(t),this.$showGutter&&this.$gutterLayer.update(t),this.$markerBack.update(t),this.$markerFront.update(t),this.$cursorLayer.update(t),this.$moveTextAreaToCursor()):e&this.CHANGE_SCROLL?(this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(t):this.$textLayer.scrollLines(t),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(t):this.$gutterLayer.scrollLines(t)),this.$markerBack.update(t),this.$markerFront.update(t),this.$cursorLayer.update(t),this.$moveTextAreaToCursor()):(e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(t),this.$showGutter&&this.$gutterLayer.update(t)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(t):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(t):e&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(t),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(t),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(t),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(t)),this._signal("afterRender",e)}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,i=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(i+=this.scrollBarH.getHeight());t=!((i=this.$maxPixelHeight&&i>this.$maxPixelHeight?this.$maxPixelHeight:i)<=2*this.lineHeight)&&tu.top)),l=r!==n,u=(l&&(this.$vScroll=n,this.scrollBarV.setVisible(n)),this.scrollTop%this.lineHeight),r=Math.ceil(c/this.lineHeight)-1,r=(n=Math.max(0,Math.round((this.scrollTop-u)/this.lineHeight)))+r,h=this.lineHeight,n=t.screenToDocumentRow(n,0),d=t.getFoldLine(n),t=(d&&(n=d.start.row),d=t.documentToScreenRow(n,0),e=t.getRowLength(n)*h,r=Math.min(t.screenToDocumentRow(r,0),t.getLength()-1),c=i.scrollerHeight+t.getRowLength(r)*h+e,u=this.scrollTop-d*h,0);return this.layerConfig.width==o&&!a||(t=this.CHANGE_H_SCROLL),(a||l)&&(t|=this.$updateCachedSize(!0,this.gutterWidth,i.width,i.height),this._signal("scrollbarVisibilityChanged"),l)&&(o=this.$getLongestLine()),this.layerConfig={width:o,padding:this.$padding,firstRow:n,firstRowScreen:d,lastRow:r,lineHeight:h,characterWidth:this.characterWidth,minHeight:c,maxHeight:s,offset:u,gutterOffset:h?Math.max(0,Math.ceil((u+i.height-i.scrollerHeight)/h)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(o-this.$padding),t},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow,i=(this.$changedLines=null,this.layerConfig);if(!(e>i.lastRow+1||tthis.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,i){this.scrollCursorIntoView(e,i),this.scrollCursorIntoView(t,i)},this.scrollCursorIntoView=function(e,t,i){var n,s,o;0!==this.$size.scrollerHeight&&(n=(e=this.$cursorLayer.getPixelPosition(e)).left,e=e.top,o=i&&i.top||0,i=i&&i.bottom||0,e<(s=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop)+o?(t&&s+o>e+this.lineHeight&&(e-=t*this.$size.scrollerHeight),0===e&&(e=-this.scrollMargin.top),this.session.setScrollTop(e)):s+this.$size.scrollerHeight-i=1-this.scrollMargin.top||0=1-this.scrollMargin.left||0this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(l.prototype);e.UIWorkerClient=function(e,t,i){var n=null,s=!1,o=Object.create(u),r=[],a=new l({messageBuffer:r,terminate:function(){},postMessage:function(e){r.push(e),n&&(s?setTimeout(c):c())}}),c=(a.setEmitSync=function(e){s=e},function(){var e=r.shift();e.command?n[e.command].apply(n,e.args):e.event&&o._signal(e.event,e.data)});return o.postMessage=function(e){a.onMessage({data:e})},o.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},o.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},h.loadModule(["worker",t],function(e){for(n=new e[i](o);r.length;)c()}),a},e.WorkerClient=l,e.createWorker=c}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,t,i){"use strict";function n(e,t,i,n,s,o){var r=this,t=(this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=s,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=n,this.$onCursorChange=function(){setTimeout(function(){r.onCursorChange()})},this.$pos=i,e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1});this.$undoStackDepth=t.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)}var c=e("./range").Range,s=e("./lib/event_emitter").EventEmitter,o=e("./lib/oop");(function(){o.implement(this,s),this.setup=function(){var t=this,i=this.doc,e=this.session,n=(this.selectionBefore=e.selection.toJSON(),e.selection.inMultiSelectMode&&e.selection.toSingleRange(),this.pos=i.createAnchor(this.$pos.row,this.$pos.column),this.pos);n.$insertRight=!0,n.detach(),n.markerId=e.addMarker(new c(n.row,n.column,n.row,n.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(e){e=i.createAnchor(e.row,e.column);e.$insertRight=!0,e.detach(),t.others.push(e)}),e.setUndoSelect(!1)},this.showOtherMarkers=function(){var t,i;this.othersActive||(t=this.session,(i=this).othersActive=!0,this.others.forEach(function(e){e.markerId=t.addMarker(new c(e.row,e.column,e.row,e.column+i.length),i.othersClass,null,!1)}))},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e=this.pos.column&&t.start.column<=this.pos.column+this.length+1,s=t.start.column-this.pos.column;if(this.updateAnchors(e),n&&(this.length+=i),n&&!this.session.$fromUndo)if("insert"===e.action)for(var o=this.others.length-1;0<=o;o--){var r={row:(a=this.others[o]).row,column:a.column+s};this.doc.insertMergedLines(r,e.lines)}else if("remove"===e.action)for(o=this.others.length-1;0<=o;o--){var a,r={row:(a=this.others[o]).row,column:a.column+s};this.doc.remove(new c(r.row,r.column,r.row,r.column-i))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var i=this,n=this.session,e=function(e,t){n.removeMarker(e.markerId),e.markerId=n.addMarker(new c(e.row,e.column,e.row,e.column+i.length),t,null,!1)};e(this.pos,this.mainClass);for(var t=this.others.length;t--;)e(this.others[t],this.othersClass)}},this.onCursorChange=function(e){var t;!this.$updating&&this.session&&((t=this.session.selection.getCursor()).row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e)))},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,i=0;io&&(o=e.column),(t=-1==t?0:t)t[1].length&&(s=t[1].length),ot[3].length&&(r=t[3].length)),t):[e]}).map(t?n:a?c?function(e){return e[2]?i(s+o-e[2].length)+e[2]+i(r)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:n:function(e){return e[2]?i(s)+e[2]+i(r)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]})}}).call(l.prototype),s.onSessionChange=function(e){var t=e.session,e=(t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect,e.oldSession);e&&(e.multiSelect.off("addRange",this.$onAddRange),e.multiSelect.off("removeRange",this.$onRemoveRange),e.multiSelect.off("multiSelect",this.$onMultiSelect),e.multiSelect.off("singleSelect",this.$onSingleSelect),e.multiSelect.lead.off("change",this.$checkMultiselectChange),e.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},s.MultiSelect=i,e("./config").defineOptions(l.prototype,"editor",{enableMultiselect:{set:function(e){i(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",o)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",o))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,t,i){"use strict";var u=e("../../range").Range,e=t.FoldMode=function(){};!function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,i){e=e.getLine(i);return this.foldingStartMarker.test(e)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(e)?"end":""},this.getFoldWidgetRange=function(e,t,i){return null},this.indentationBlock=function(e,t,i){var n=/\S/,s=e.getLine(t),o=s.search(n);if(-1!=o){for(var r,i=i||s.length,a=e.getLength(),s=t,c=t;++ti.row&&(n.row--,n.column=e.getLine(n.row).length),u.fromPoints(i,n)},this.closingBracketBlock=function(e,t,i,n,s){i={row:i,column:n},n=e.$findOpeningBracket(t,i);if(n)return n.column++,i.column--,u.fromPoints(n,i)}}.call(e.prototype)}),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',t.$id="ace/theme/textmate",e("../lib/dom").importCssString(t.cssText,t.cssClass)}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";function n(e){this.session=e,(this.session.widgetManager=this).session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}var s=e("./lib/dom");(function(){this.getRowLength=function(e){var t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var t=0;return this.lineWidgets.forEach(function(e){e&&e.rowCount&&!e.hidden&&(t+=e.rowCount)}),t},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e)&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets))},this.detach=function(e){var t=this.editor;t&&(this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets),t=this.session.lineWidgets)&&t.forEach(function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))})},this.updateOnFold=function(e,t){var i=t.lineWidgets;if(i&&e.action){for(var t=e.data,n=t.start.row,s=t.end.row,o="add"==e.action,r=n+1;rs[t].column&&t++,n.unshift(t,0),s.splice.apply(s,n)),this.$updateRows())},this.$updateRows=function(){var i,e=this.session.lineWidgets;e&&(i=!0,e.forEach(function(e,t){if(e)for(i=!1,e.row=t;e.$oldWidget;)e.$oldWidget.row=t,e=e.$oldWidget}),i)&&(this.session.lineWidgets=null)},this.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t).el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1),this.session.lineWidgets[e.row]=e},this.addLineWidget=function(e){var t,i,n;return this.$registerLineWidget(e),e.session=this.session,this.editor&&(t=this.editor.renderer,e.html&&!e.el&&(e.el=s.createElement("div"),e.el.innerHTML=e.html),e.el&&(s.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight)&&(e.pixelHeight=e.el.offsetHeight),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight),i=this.session.getFoldAt(e.row,0),(e.$fold=i)&&(n=this.session.lineWidgets,e.row!=i.end.row||n[i.start.row]?e.hidden=!0:n[i.start.row]=e),this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e)),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,i=t&&t[e],n=[];i;)n.push(i),i=i.$oldWidget;return n},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var i=this.session._changedWidgets,n=t.layerConfig;if(i&&i.length){for(var s=1/0,o=0;o>1,r=i(t,e[o]);if(0=n.length?s=0"),o.appendChild(h.createElement("div"));c.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(a),n.widgetManager.removeLineWidget(c),e.off("changeSelection",c.destroy),e.off("changeSession",c.destroy),e.off("mouseup",c.destroy),e.off("change",c.destroy))},e.keyBinding.addKeyboardHandler(a),e.on("changeSelection",c.destroy),e.on("changeSession",c.destroy),e.on("mouseup",c.destroy),e.on("change",c.destroy),e.session.widgetManager.addLineWidget(c),c.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:c.el.offsetHeight})},h.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")}),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(e,o,t){"use strict";e("./lib/fixoldbrowsers");var r=e("./lib/dom"),a=e("./lib/event"),i=e("./range").Range,c=e("./editor").Editor,n=e("./edit_session").EditSession,s=e("./undomanager").UndoManager,l=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),o.config=e("./config"),o.require=e,"function"==typeof define&&(o.define=define),o.edit=function(e,t){if("string"==typeof e){var i=e;if(!(e=document.getElementById(i)))throw new Error("ace.edit can't find div #"+i)}var n,s;return e&&e.env&&e.env.editor instanceof c?e.env.editor:(i="",e&&/input|textarea/i.test(e.tagName)?(i=(n=e).value,e=r.createElement("pre"),n.parentNode.replaceChild(e,n)):e&&(i=e.textContent,e.innerHTML=""),i=o.createEditSession(i),e=new c(new l(e),i,t),s={document:i,editor:e,onResize:e.resize.bind(e,null)},n&&(s.textarea=n),a.addListener(window,"resize",s.onResize),e.on("destroy",function(){a.removeListener(window,"resize",s.onResize),s.editor.container.env=null}),e.container.env=e.env=s,e)},o.createEditSession=function(e,t){e=new n(e,t);return e.setUndoManager(new s),e},o.Range=i,o.Editor=c,o.EditSession=n,o.UndoManager=s,o.VirtualRenderer=l,o.version=o.config.version}),ace.require(["ace/ace"],function(e){for(var t in e&&(e.config.init(!0),e.define=ace.define),window.ace||(window.ace=e),e)e.hasOwnProperty(t)&&(window.ace[t]=e[t]);window.ace.default=window.ace,"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=window.ace)}),angular.module("ui.ace",[]).constant("uiAceConfig",{}).directive("uiAce",["uiAceConfig",function(i){if(angular.isUndefined(window.ace))throw new Error("ui-ace need ace to work... (o rly?)");return{restrict:"EA",require:"?ngModel",link:function(r,e,a,n){function s(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);angular.isDefined(e)&&r.$evalAsync(function(){if(!angular.isFunction(e))throw new Error("ui-ace use a function as callback.");e(t)})}function t(e,t){if(e!==t){(h=angular.extend({},u,r.$eval(a.uiAce))).callbacks=[h.onLoad],h.onLoad!==u.onLoad&&h.callbacks.unshift(u.onLoad),g.removeListener("change",c),c=p(h.onChange),g.on("change",c),d.removeListener("blur",l),l=m(h.onBlur),d.on("blur",l);var i,n,s=d,e=g,o=h;if(angular.isDefined(o.workerPath)&&window.ace.require("ace/config").set("workerPath",o.workerPath),angular.isDefined(o.require)&&o.require.forEach(function(e){window.ace.require(e)}),angular.isDefined(o.showGutter)&&s.renderer.setShowGutter(o.showGutter),angular.isDefined(o.useWrapMode)&&e.setUseWrapMode(o.useWrapMode),angular.isDefined(o.showInvisibles)&&s.renderer.setShowInvisibles(o.showInvisibles),angular.isDefined(o.showIndentGuides)&&s.renderer.setDisplayIndentGuides(o.showIndentGuides),angular.isDefined(o.useSoftTabs)&&e.setUseSoftTabs(o.useSoftTabs),angular.isDefined(o.showPrintMargin)&&s.setShowPrintMargin(o.showPrintMargin),angular.isDefined(o.disableSearch)&&o.disableSearch&&s.commands.addCommands([{name:"unfind",bindKey:{win:"Ctrl-F",mac:"Command-F"},exec:function(){return!1},readOnly:!0}]),angular.isString(o.theme)&&s.setTheme("ace/theme/"+o.theme),angular.isString(o.mode)&&e.setMode("ace/mode/"+o.mode),angular.isDefined(o.firstLineNumber)&&(angular.isNumber(o.firstLineNumber)?e.setOption("firstLineNumber",o.firstLineNumber):angular.isFunction(o.firstLineNumber)&&e.setOption("firstLineNumber",o.firstLineNumber())),angular.isDefined(o.advanced))for(i in o.advanced)n={name:i,value:o.advanced[i]},s.setOption(n.name,n.value);if(angular.isDefined(o.rendererOptions))for(i in o.rendererOptions)n={name:i,value:o.rendererOptions[i]},s.renderer.setOption(n.name,n.value);angular.forEach(o.callbacks,function(e){angular.isFunction(e)&&e(s)})}}var c,l,u=i.ace||{},h=angular.extend({},u,r.$eval(a.uiAce)),d=window.ace.edit(e[0]),g=d.getSession(),p=function(i){return function(e){var t=g.getValue();!n||t===n.$viewValue||r.$$phase||r.$root.$$phase||r.$evalAsync(function(){n.$setViewValue(t)}),s(i,e,d)}},m=function(e){return function(){s(e,d)}};a.$observe("readonly",function(e){d.setReadOnly(!!e||""===e)}),n&&(n.$formatters.push(function(e){if(angular.isUndefined(e)||null===e)return"";if(angular.isObject(e)||angular.isArray(e))throw new Error("ui-ace cannot use an object or an array as a model");return e}),n.$render=function(){g.setValue(n.$viewValue)});r.$watch(a.uiAce,t,!0),t(u),e.on("$destroy",function(){d.session.$stopWorker(),d.destroy()}),r.$watch(function(){return[e[0].offsetWidth,e[0].offsetHeight]},function(){d.resize(),d.renderer.updateFull()},!0)}}}]);const charactersAttributes="[^-a-z0-9:._]",allTagCharacters="(?:[^>\"']*(?:\"[^\"]*\"|'[^']*'))*?[^>]*";function by(s){return(e,t,i,n)=>t+urlRel2abs(i,s)+n}function cr(e,t,i,n){"string"==typeof t&&(t=new RegExp(t,"gi")),i=charactersAttributes+i;var s="\\s*=\\s*",o=new RegExp("("+i+s+'")([^"]+)()',"gi"),r=new RegExp("("+i+s+"')([^']+)()","gi"),a=new RegExp("("+i+s+")([^\"'][^\\s>]*)()","gi");return e=e.replace(t,function(e){return e.replace(o,by(n)).replace(r,by(n)).replace(a,by(n))})}function contentAbs2Relative(e,t){return e&&(e=cr(e,"<"+allTagCharacters+charactersAttributes+"href\\s*="+allTagCharacters+">","href",t),e=cr(e,"<"+allTagCharacters+charactersAttributes+"src\\s*="+allTagCharacters+">","src",t)),e}function generateRandomId(t){var i="ABCDEF0123456789";let n="";for(let e=0;e[\w-\._]+)\/(?[\w-\._]+)(\/pull\/(?[0-9]+))?/);if(e&&e.groups.owner&&e.groups.repo)return{owner:e.groups.owner,repo:e.groups.repo,pullRequestId:e.groups.PR}}throw"Invalid url"}function renderMD(e,t){marked.use(markedEmoji({emojis:githubEmojis,unicode:!1})),e=contentAbs2Relative(e,t);var i=new marked.Renderer;const n=i.link;return i.link=function(e,t,i){return e.match(/\.mp4$|\.mov$/)?`
    `:n.call(this,e,t,i)},marked.setOptions({renderer:i,pedantic:!1,gfm:!0,breaks:!1,sanitize:!1,smartLists:!0,smartypants:!1,xhtml:!1,headerIds:!1,katex:katex}),t&&marked.use(baseUrl(t)),marked.use(markedKatex({throwOnError:!1})),marked.parse(e,{renderer:i})}angular.module("ngPDFViewer",[]).factory("RecursionHelper",["$compile",function(o){return{compile:function(e,i){angular.isFunction(i)&&(i={post:i});var n,s=e.contents().remove();return{pre:i&&i.pre?i.pre:null,post:function(e,t){(n=n||o(s))(e,function(e){t.append(e)}),i&&i.post&&i.post.apply(null,arguments)}}}}}]).directive("pdfpageviewer",[function(){return{restrict:"E",template:"",scope:{onPageLoad:"=",page:"=",pdfDoc:"="},controller:["$scope","$element",function(n,s){n.scale=1;const o=s.find("canvas")[0];n.$watch("pdfDoc",e=>{e&&n.renderPage(n.page)}),n.renderPage=async function(e){var e=await n.pdfDoc.getPage(e),t=s[0].clientWidth/e.getViewport(1).width,t=e.getViewport(t),i=(o.height=t.height,o.width=t.width,o.getContext("2d"));return await e.render({canvasContext:i,viewport:t}),n.onPageLoad&&n.$apply(function(){n.onPageLoad({page:n.page,total:n.pdfDoc.numPages})}),!0}}]}}]).directive("pdfviewer",["RecursionHelper",function(t){return{restrict:"E",template:"",scope:{onPageLoad:"&",loadProgress:"&",src:"@",id:"="},compile:function(e){return t.compile(e)},controller:["$scope",function(n){n.pdfDoc=null,n.scale=1,n.documentProgress=function(e){n.loadProgress&&n.loadProgress({state:"loading",loaded:e.loaded,total:e.total})},n.loadPDF=function(e){PDFJS.getDocument(e,null,null,n.documentProgress).then(function(e){n.$apply(()=>{n.pdfDoc=e}),n.loadProgress&&n.loadProgress({state:"finished",loaded:0,total:0})},function(e,t){console.log("PDF load error: "+e),n.loadProgress&&n.loadProgress({state:"error",loaded:0,total:0})})},n.$on("pdfviewer.nextPage",function(e,t){null===t&&n.pageNum{n.loadPDF(n.src)})}]}}]).service("PDFViewerService",["$rootScope",function(i){var e={nextPage:function(){i.$broadcast("pdfviewer.nextPage")},prevPage:function(){i.$broadcast("pdfviewer.prevPage")},Instance:function(e){var t=e;return{prevPage:function(){i.$broadcast("pdfviewer.prevPage",t)},nextPage:function(){i.$broadcast("pdfviewer.nextPage",t)},gotoPage:function(e){i.$broadcast("pdfviewer.gotoPage",t,e)}}}};return e}]),angular.module("anonymous-github",["ngRoute","ngSanitize","ui.ace","ngPDFViewer","pascalprecht.translate","admin"]).config(["$routeProvider","$locationProvider","$translateProvider",function(e,t,i){i.useStaticFilesLoader({prefix:"/i18n/locale-",suffix:".json"}),i.preferredLanguage("en"),e.when("/",{templateUrl:"/partials/home.htm",controller:"homeController",title:"Anonymous GitHub"}).when("/dashboard",{templateUrl:"/partials/dashboard.htm",controller:"dashboardController",title:"Dashboard - Anonymous GitHub"}).when("/pr-dashboard",{templateUrl:"/partials/pr-dashboard.htm",controller:"prDashboardController",title:"Pull Request Dashboard - Anonymous GitHub"}).when("/anonymize/:repoId?",{templateUrl:"/partials/anonymize.htm",controller:"anonymizeController",title:"Anonymize - Anonymous GitHub"}).when("/pull-request-anonymize/:pullRequestId?",{templateUrl:"/partials/anonymizePullRequest.htm",controller:"anonymizePullRequestController",title:"Anonymize - Anonymous GitHub"}).when("/status/:repoId",{templateUrl:"/partials/status.htm",controller:"statusController",title:"Repository status - Anonymous GitHub"}).when("/conferences",{templateUrl:"/partials/conferences.htm",controller:"conferencesController",title:"Conferences - Anonymous GitHub"}).when("/conference/new",{templateUrl:"/partials/newConference.htm",controller:"newConferenceController",title:"Add a conference - Anonymous GitHub"}).when("/conference/:conferenceId/edit",{templateUrl:"/partials/newConference.htm",controller:"newConferenceController",title:"Edit conference - Anonymous GitHub"}).when("/conference/:conferenceId",{templateUrl:"/partials/conference.htm",controller:"conferenceController",title:"Conference - Anonymous GitHub"}).when("/faq",{templateUrl:"/partials/faq.htm",controller:"faqController",title:"FAQ - Anonymous GitHub"}).when("/profile",{templateUrl:"/partials/profile.htm",controller:"profileController",title:"Profile - Anonymous GitHub"}).when("/claim",{templateUrl:"/partials/claim.htm",controller:"claimController",title:"Claim repository - Anonymous GitHub"}).when("/pr/:pullRequestId",{templateUrl:"/partials/pullRequest.htm",controller:"pullRequestController",title:"Anonymized Pull Request - Anonymous GitHub",reloadOnUrl:!1}).when("/r/:repoId/:path*?",{templateUrl:"/partials/explorer.htm",controller:"exploreController",title:"Anonymized Repository - Anonymous GitHub",reloadOnUrl:!1}).when("/repository/:repoId/:path*?",{templateUrl:"/partials/explorer.htm",controller:"exploreController",title:"Anonymized Repository - Anonymous GitHub",reloadOnUrl:!1}).when("/admin/",{templateUrl:"/partials/admin/repositories.htm",controller:"repositoriesAdminController",title:"Repositories Admin - Anonymous GitHub"}).when("/admin/users",{templateUrl:"/partials/admin/users.htm",controller:"usersAdminController",title:"Users Admin - Anonymous GitHub"}).when("/admin/users/:username",{templateUrl:"/partials/admin/user.htm",controller:"userAdminController",title:"User Admin - Anonymous GitHub"}).when("/admin/conferences",{templateUrl:"/partials/admin/conferences.htm",controller:"conferencesAdminController",title:"Conferences Admin - Anonymous GitHub"}).when("/admin/queues",{templateUrl:"/partials/admin/queues.htm",controller:"queuesAdminController",title:"Queues Admin - Anonymous GitHub"}).when("/404",{templateUrl:"/partials/404.htm",title:"Page not found - Anonymous GitHub"}).otherwise({templateUrl:"/partials/404.htm",title:"Page not found - Anonymous GitHub"}),t.html5Mode(!0)}]).filter("humanFileSize",function(){return humanFileSize}).filter("humanTime",function(){return function(e){if(!e)return"never";var t,i=(e="string"!=typeof(e=e instanceof Date?Math.round((Date.now()-e)/1e3):e)&&"number"!=typeof e?e:Math.round((Date.now()-new Date(e))/1e3))<0?"from now":"ago";if(172800/g,">"),t[e].startsWith("+++")||t[e].startsWith("---")?i.push(`${t[e]}`):t[e].startsWith("@@")?i.push(`${t[e]}`):t[e].startsWith("index")?i.push(`${t[e]}`):t[e].startsWith("+")?i.push(`${t[e]}`):t[e].startsWith("-")?i.push(`${t[e]}`):i.push(`${t[e]}`);return n.trustAsHtml(i.join("\n"))}}]).directive("markdown",["$location",function(s){return{restrict:"E",scope:{terms:"=",options:"=",content:"="},link:function(e,t,i){function n(){t.html(renderMD(e.content,s.url()+"/../"))}e.$watch(i.terms,n),e.$watch("terms",n),e.$watch("options",n),e.$watch("content",n)}}}]).directive("tree",[function(){return{restrict:"E",scope:{file:"=",parent:"@"},controller:["$element","$scope","$routeParams","$compile",function(t,u,i,n){if(u.repoId=document.location.pathname.split("/")[2],u.opens={},i.path){let t="";i.path.split("/").forEach(e=>{u.opens[t+"/"+e]=!0,t=t+"/"+e})}const h=(e,t)=>{var i=!!e.child,n=!!t.child;return i&&n?e.name-t.name:i?-1:n?1:e.name-t.name};function s(){t.html("");var e=function e(s,o){if(!s)return"";var r;let a="
      ";for(r of s=s.sort(h)){let t=!!r.child,i=r.name,n=r.size||0;if(t){let e=i;for(s=r.child;s&&1==s.length;)e+="/"+s[0].name,n=s[0].size,s=s[0].child;i=e,0<=n&&(t=!1)}n=null!=n?"Size: "+humanFileSize(n||0):"";var c=o+"/"+i,l=["file"];t&&l.push("folder"),u.opens[c]&&l.push("open"),u.isActive(c)&&l.push("active"),a+=`
    • `,t?a+=`${i}`:a+=`${i}`,u.opens[c]&&r.child&&1"}(function(e){var t,i=[],n={"":{child:i}};for(t of e){var s,o=n[t.path].child;let e=t.path+"/"+t.name;e.startsWith("/")&&(e=e.substring(1)),null!=t.size?o.push({name:t.name,size:t.size,sha:t.sha}):(s={name:t.name,child:[]},n[e]=s,o.push(s))}return i}(u.file).sort(h),"");n(e)(u,e=>{t.append(e)})}u.$watch("file",e=>{if(null!=e)return 0==e.length?t.html("Empty repository"):void s()},!0),u.isActive=function(e){return i.path==e.substring(1)},u.openFolder=async function(e,t){u.opens[e]=!u.opens[e],null==t.srcElement.nextSibling&&(await u.$parent.getFiles(e.substring(1)),s())}}]}}]).directive("notebook",[function(){return{restrict:"E",scope:{file:"="},controller:["$element","$scope","$http",function(t,e,i){function n(e){e=nb.parse(e);try{t.html(""),t.append(e.render()),Prism.highlightAll()}catch(e){t.html("Unable to render the notebook.")}}function s(){if(e.$parent.content)try{n(JSON.parse(e.$parent.content))}catch(e){t.html("Unable to render the notebook invalid notebook format.")}else e.file&&i.get(e.file.download_url).then(e=>n(e.data))}e.$watch("file",e=>{s()}),s()}]}}]).directive("loc",[function(){return{restrict:"E",scope:{stats:"="},template:"
      ",controller:["$scope",function(i){function t(){for(var e in i.elements=[],i.total=0,i.stats){var t=i.stats[e].code;t&&(i.total+=t,i.elements.push({lang:e,loc:t,color:langColors[e]}))}setTimeout(()=>{$('[data-toggle="tooltip"]').tooltip()},100)}i.$watch("stats",e=>{t()}),t()}]}}]).controller("mainController",["$scope","$http","$location",function(s,e,i){function t(e,t){t&&(s.title=t.title),s.path=i.url(),s.paths=i.path().substring(1).split("/")}s.title="Main",s.user={status:"connection"},s.site_options,s.toasts=[],s.removeToast=function(e){e=s.toasts.indexOf(e);s.toasts.splice(e,1)},s.path=i.url(),s.paths=i.path().substring(1).split("/"),s.darkMode=function(e){localStorage.setItem("darkMode",e);var t,i="/css/prism-okaidia.css",n="/css/prism.css";((s.isDarkMode=e)?($("body").addClass("dark-mode"),(t=document.createElement("link")).href=i,t.rel="stylesheet",document.head.append(t),$(`link[href='${n}']`)):($("body").removeClass("dark-mode"),(t=document.createElement("link")).href=n,t.rel="stylesheet",document.head.append(t),$(`link[href='${i}']`))).remove(),s.$broadcast("dark-mode",e)},s.darkMode("true"==localStorage.getItem("darkMode")),e.get("/api/user").then(e=>{e&&(s.user=e.data)},()=>{s.user=null}),e.get("/api/options").then(e=>{e&&(s.site_options=e.data)},()=>{s.site_options=null}),e.get("/api/message").then(e=>{e&&(s.generalMessage=e.data)},()=>{s.generalMessage=null}),s.$on("$routeChangeSuccess",t),s.$on("$routeUpdate",t)}]).controller("faqController",["$scope","$http",function(t,e){e.get("/api/supportedTypes").then(e=>{t.supportedFileTypes=e.data})}]).controller("profileController",["$scope","$http",function(t,i){function n(){i.get("/api/user/default").then(e=>{e=e.data;e.terms&&(t.terms=e.terms.join("\n")),t.option=Object.assign({},t.option,e.options)})}t.terms="",t.options={expirationMode:"remove",update:!1,image:!0,pdf:!0,notebook:!0,loc:!0,link:!0},n(),t.saveDefault=()=>{var e={terms:t.terms.trim().split("\n"),options:t.options};i.post("/api/user/default",e).then(()=>{n(),t.message="Saved"},e=>{$translate("ERRORS."+e.data.error).then(e=>{t.error=e},console.error)})}}]).controller("claimController",["$scope","$http","$location",function(t,e,i){t.repoId=null,t.repoUrl=null,t.claim=()=>{e.post("/api/repo/claim",{repoId:t.repoId,repoUrl:t.repoUrl}).then(e=>{i.url("/dashboard")},e=>{t.error=e.data,t.claimForm.repoUrl.$setValidity("not_found",!1),t.claimForm.repoId.$setValidity("not_found",!1)})}}]).controller("homeController",["$scope","$http","$location",function(t,e,i){t.user&&!t.user.status&&i.url("/dashboard"),t.$watch("user.status",()=>{t.user&&!t.user.status&&i.url("/dashboard")}),e.get("/api/stat/").then(e=>{t.stat=e.data})}]).controller("dashboardController",["$scope","$http","$location",function(s,e,t){function n(){e.get("/api/user/anonymized_repositories").then(e=>{s.repositories=e.data;for(var t of s.repositories)t.pageView||(t.pageView=0),t.lastView||(t.lastView=""),t.options.terms=t.options.terms.filter(e=>e)},e=>{console.error(e)})}function o(i,n){e.get("/api/repo/"+i).then(e=>{for(const t of s.repositories)if(t.repoId==i){t.status=e.data.status;break}"ready"==e.data.status||"error"==e.data.status||"removed"==e.data.status||"expired"==e.data.status?n(e.data):setTimeout(()=>o(i,n),2500)})}s.$on("$routeChangeStart",function(){$('[data-toggle="tooltip"]').tooltip("dispose")}),s.$watch("user.status",()=>{null==s.user&&t.url("/")}),null==s.user&&t.url("/"),setTimeout(()=>{$('[data-toggle="tooltip"]').tooltip()},250),s.repositories=[],s.search="",s.filters={status:{ready:!0,expired:!0,removed:!1}},s.orderBy="-anonymizeDate",e.get("/api/user/quota").then(e=>{s.quota=e.data,s.quota.storage.percent=s.quota.storage.total?100*s.quota.storage.used/s.quota.storage.total:100,s.quota.file.percent=s.quota.file.total?100*s.quota.file.used/s.quota.file.total:100,s.quota.repository.percent=s.quota.repository.total?100*s.quota.repository.used/s.quota.repository.total:100},console.error),n(),s.removeRepository=t=>{if(confirm(`Are you sure that you want to remove the repository ${t.repoId}?`)){const i={title:`Removing ${t.repoId}...`,date:new Date,body:`The repository ${t.repoId} is going to be removed.`};s.toasts.push(i),e.delete("/api/repo/"+t.repoId).then(()=>{o(t.repoId,()=>{i.title=t.repoId+" is removed.",i.body=`The repository ${t.repoId} is removed.`,s.$apply()})},e=>{i.title=`Error during the removal of ${t.repoId}.`,i.body=e.body,n()})}},s.updateRepository=t=>{const i={title:`Refreshing ${t.repoId}...`,date:new Date,body:`The repository ${t.repoId} is going to be refreshed.`};s.toasts.push(i),e.post(`/api/repo/${t.repoId}/refresh`).then(()=>{o(t.repoId,()=>{i.title=t.repoId+" is refreshed.",i.body=`The repository ${t.repoId} is refreshed.`,s.$apply()})},e=>{i.title=`Error during the refresh of ${t.repoId}.`,i.body=e.body,n()})},s.repoFiler=e=>0!=s.filters.status[e.status]&&(0==s.search.trim().length||-1{n.pullRequests=e.data;for(const t of n.pullRequests)t.pageView||(t.pageView=0),t.lastView||(t.lastView=""),t.options.terms=t.options.terms.filter(e=>e)},e=>{console.error(e)})}n.$on("$routeChangeStart",function(){$('[data-toggle="tooltip"]').tooltip("dispose")}),n.$watch("user.status",()=>{null==n.user&&t.url("/")}),null==n.user&&t.url("/"),setTimeout(()=>{$('[data-toggle="tooltip"]').tooltip()},250),n.pullRequests=[],n.search="",n.filters={status:{ready:!0,expired:!0,removed:!1}},n.orderBy="-anonymizeDate",s(),n.removePullRequest=t=>{if(confirm(`Are you sure that you want to remove the pull request ${t.pullRequestId}?`)){const i={title:`Removing ${t.pullRequestId}...`,date:new Date,body:`The pull request ${t.pullRequestId} is going to be removed.`};n.toasts.push(i),e.delete("/api/pr/"+t.pullRequestId).then(()=>{i.title=t.pullRequestId+" is removed.",i.body=`The pull request ${t.pullRequestId} is removed.`,s()},e=>{i.title=`Error during the removal of ${t.pullRequestId}.`,i.body=e.body,s()})}},n.updatePullRequest=t=>{const i={title:`Refreshing ${t.pullRequestId}...`,date:new Date,body:`The pull request ${t.pullRequestId} is going to be refreshed.`};n.toasts.push(i),e.post(`/api/pr/${t.pullRequestId}/refresh`).then(()=>{i.title=t.pullRequestId+" is refreshed.",i.body=`The pull request ${t.pullRequestId} is refreshed.`,s()},e=>{i.title=`Error during the refresh of ${t.pullRequestId}.`,i.body=e.body,s()})},n.pullRequestFilter=e=>0!=n.filters.status[e.status]&&(0==n.search.trim().length||-1<(e.source.pullRequestId+"").indexOf(n.search)||-1{e.get("/api/repo/"+t.repoId,{repoId:t.repoId,repoUrl:t.repoUrl}).then(e=>{t.repo=e.data,"ready"==t.repo.status?t.progress=100:"queue"==t.repo.status?t.progress=10:"downloaded"==t.repo.status?t.progress=50:"download"==t.repo.status||"preparing"==t.repo.status?t.progress=25:"anonymizing"==t.repo.status&&(t.progress=75),"ready"!=t.repo.status&&"error"!=t.repo.status&&setTimeout(t.getStatus,2e3)},e=>{t.error=e.data.error})},t.getStatus()}]).controller("anonymizeController",["$scope","$http","$sce","$routeParams","$location","$translate",function(o,n,i,e,t,s){var r;async function a(){const i=parseGithubUrl(o.repoUrl);try{u();var t=await n.get(`/api/repo/${i.owner}/${i.repo}/`,{params:{repositoryID:o.repositoryID}});o.details=t.data,o.repoId||(o.repoId=o.details.repo+"-"+generateRandomId(4)),await o.getBranches()}catch(e){throw console.log(e),e.data?(s("ERRORS."+e.data.error).then(e=>{var t={title:"Error when getting repository information",date:new Date,body:`${i.owner}/${i.repo} produice the following error: `+e};o.toasts.push(t),o.error=e},console.error),h(e.data.error)):(t={title:"Error when getting repository information",date:new Date,body:`${i.owner}/${i.repo} produice the following error: `+e.message},o.toasts.push(t)),o.anonymize.repoUrl.$setValidity("missing",!1),e}}async function c(t){if(o.readme&&!t)return o.readme;var i=parseGithubUrl(o.repoUrl);try{var e=await n.get(`/api/repo/${i.owner}/${i.repo}/readme`,{params:{force:!0===t?"1":"0",branch:o.source.branch,repositoryID:o.repositoryID}});o.readme=e.data}catch(e){o.readme="";t={title:"README not available...",date:new Date,body:`The README of ${i.owner}/${i.repo} was not found.`};o.toasts.push(t)}}function l(){o.anonymize.terms.$setValidity("regex",!0),o.terms&&o.terms.match(/[-[\]{}()*+?.,\\^$|#]/g)&&o.anonymize.terms.$setValidity("regex",!1);var e=/?/g;let n=o.readme;o.options.image||(n=n.replace(/!\[[^\]]*\]\((?.*?)(?=\"|\))(?\".*\")?\)/g,"")),o.options.link||(n=n.replace(e,o.site_options.ANONYMIZATION_MASK));var t=document.location.protocol+"//"+document.location.host,s=(n=(n=(n=n.replace(new RegExp(`\\b${o.repoUrl}/blob/${o.source.branch}\\b`,"gi"),t+"/r/"+o.repoId)).replace(new RegExp(`\\b${o.repoUrl}/tree/${o.source.branch}\\b`,"gi"),t+"/r/"+o.repoId)).replace(new RegExp("\\b"+o.repoUrl,"gi"),t+"/r/"+o.repoId),o.terms.split("\n"));for(let i=0;inew RegExp(`\\b${t}\\b`,"gi").test(e)?o.site_options.ANONYMIZATION_MASK+"-"+(i+1):e)).replace(new RegExp(`\\b${t}\\b`,"gi"),o.site_options.ANONYMIZATION_MASK+"-"+(i+1)))}o.anonymize_readme=n;t=parseGithubUrl(o.repoUrl),t=renderMD(o.anonymize_readme,`https://github.com/${t.owner}/${t.repo}/raw/${o.source.branch}/`);o.html_readme=i.trustAsHtml(t),setTimeout(Prism.highlightAll,150)}function u(){o.anonymize.repoId.$setValidity("used",!0),o.anonymize.repoId.$setValidity("format",!0),o.anonymize.repoUrl.$setValidity("used",!0),o.anonymize.repoUrl.$setValidity("missing",!0),o.anonymize.repoUrl.$setValidity("access",!0),o.anonymize.conference.$setValidity("activated",!0),o.anonymize.terms.$setValidity("format",!0),o.anonymize.terms.$setValidity("regex",!0)}function h(e){switch(e){case"repoId_already_used":o.anonymize.repoId.$setValidity("used",!1);break;case"invalid_repoId":case"options_not_provided":o.anonymize.repoId.$setValidity("format",!1);break;case"repo_already_anonymized":o.anonymize.repoUrl.$setValidity("used",!1);break;case"invalid_terms_format":case"invalid_terms_format":o.anonymize.terms.$setValidity("format",!1);break;case"repo_not_found":o.anonymize.repoUrl.$setValidity("missing",!1);break;case"repo_not_accessible":o.anonymize.repoUrl.$setValidity("access",!1);break;case"conf_not_activated":o.anonymize.conference.$setValidity("activated",!1);break;default:o.anonymize.$setValidity("error",!1)}}async function d(e){u();t=parseGithubUrl(o.repoUrl),o.options.pageSource=o.details.pageSource;var t={repoId:o.repoId,terms:o.terms.trim().split("\n").filter(e=>e),fullName:t.owner+"/"+t.repo,repository:o.repoUrl,options:o.options,source:o.source,conference:o.conference};try{await n.post(e,t,{headers:{"Content-Type":"application/json"}}),window.location.href="/status/"+o.repoId}catch(e){e.data?(s("ERRORS."+e.data.error).then(e=>{o.error=e},console.error),h(e.data.error)):console.error(e)}}o.repoUrl="",o.repoId="",o.terms="",o.defaultTerms="",o.branches=[],o.source={branch:"",commit:""},o.options={expirationMode:"remove",expirationDate:new Date,update:!1,image:!0,pdf:!0,notebook:!0,link:!0},o.options.expirationDate.setDate(o.options.expirationDate.getDate()+90),o.anonymize_readme="",o.readme="",o.html_readme="",o.isUpdate=!1,r=()=>{e.repoId&&""!=e.repoId&&(o.isUpdate=!0,o.repoId=e.repoId,n.get("/api/repo/"+o.repoId).then(async e=>{o.repoUrl="https://github.com/"+e.data.source.fullName,o.terms=e.data.options.terms.filter(e=>e).join("\n"),o.source=e.data.source,o.options=e.data.options,o.conference=e.data.conference,o.repositoryID=e.data.source.repositoryID,e.data.options.expirationDate?o.options.expirationDate=new Date(e.data.options.expirationDate):(o.options.expirationDate=new Date,o.options.expirationDate.setDate(o.options.expirationDate.getDate()+90)),await Promise.all([a(),c()]),l(),o.$apply()},e=>{t.url("/404")}),o.$watch("anonymize",()=>{o.anonymize.repoId.$$element[0].disabled=!0,o.anonymize.repoUrl.$$element[0].disabled=!0}))},n.get("/api/user/default").then(e=>{e=e.data;e.terms&&(o.defaultTerms=e.terms.join("\n")),o.options=Object.assign({},o.options,e.options),o.options.expirationDate=new Date(o.options.expirationDate),o.options.expirationDate.setDate(o.options.expirationDate.getDate()+90),r&&r()}),o.repoSelected=async()=>{o.terms=o.defaultTerms,o.repoId="",o.source={type:"GitHubStream",branch:"",commit:""},o.anonymize_readme="",o.readme="",o.html_readme="",o.details=null,o.branches=[];try{parseGithubUrl(o.repoUrl),o.anonymize.repoUrl.$setValidity("github",!0)}catch(e){return void o.anonymize.repoUrl.$setValidity("github",!1)}try{await Promise.all([a(),c()]),l()}catch(e){}o.$apply(),$('[data-toggle="tooltip"]').tooltip()},$('[data-toggle="tooltip"]').tooltip(),o.$watch("options.update",e=>{o.anonymize.commit.$$element[0].disabled=!!e}),o.$watch("source.branch",async()=>{var e=o.branches.filter(e=>e.name==o.source.branch)[0];o.details&&o.details.hasPage&&(o.anonymize.page.$$element[0].disabled=!1,o.details.pageSource.branch!=o.source.branch)&&(o.anonymize.page.$$element[0].disabled=!0),e&&(o.source.commit=e.commit,o.readme=e.readme,await c(),l(),o.$apply())}),o.getBranches=async e=>{var t=parseGithubUrl(o.repoUrl),t=await n.get(`/api/repo/${t.owner}/${t.repo}/branches`,{params:{force:!0===e?"1":"0",repositoryID:o.repositoryID}}),t=(o.branches=t.data,o.source.branch||(o.source.branch=o.details.defaultBranch),o.branches.filter(e=>e.name==o.source.branch));0{e.target.disabled=!0,d("/api/repo/").finally(()=>{e.target.disabled=!1,o.$apply()})},o.updateRepo=async e=>{e.target.disabled=!0,d("/api/repo/"+o.repoId).finally(()=>{e.target.disabled=!1,o.$apply()})},o.$watch("conference",async e=>{o.conference&&n.get("/api/conferences/"+o.conference).then(e=>{o.conference_data=e.data,o.conference_data.startDate=new Date(o.conference_data.startDate),o.conference_data.endDate=new Date(o.conference_data.endDate),o.options.expirationDate=new Date(o.conference_data.endDate),o.options.expirationMode="remove",o.options.update=o.conference_data.options.update,o.options.image=o.conference_data.options.image,o.options.pdf=o.conference_data.options.pdf,o.options.notebook=o.conference_data.options.notebook,o.options.link=o.conference_data.options.link},e=>{o.conference_data=null})}),o.$watch("source.branch",async e=>{var t=o.branches.filter(e=>e.name==o.source.branch)[0];o.details&&o.details.hasPage&&(o.anonymize.page.$$element[0].disabled=!1,o.details.pageSource.branch!=o.source.branch)&&(o.anonymize.page.$$element[0].disabled=!0),t&&(o.source.commit=t.commit,o.readme=t.readme,await c(),l(),o.$apply())}),o.$watch("terms",l),o.$watch("options.image",l),o.$watch("options.link",l)}]).controller("exploreController",["$scope","$http","$location","$routeParams","$sce","PDFViewerService",function(o,r,a,i,c,l){o.files=[];const u={yml:"yaml",txt:"text",py:"python",js:"javascript",ts:"typescript"},h=["license","txt"],d=["png","jpg","jpeg","gif","svg","ico","bmp","tiff","tif","webp","avif","heif","heic"],g=["wav","mp3","ogg","mp4","avi","webm","mov","mpg","wma"];function s(){o.content="",o.file=o.files.filter(e=>e.name==o.paths[o.paths.length-1]&&e.path==o.paths.slice(0,o.paths.length-1).join("/"))[0];let e="0",t=(o.file&&o.file.sha&&(e=o.file.sha),o.url=`/api/repo/${o.repoId}/file/${o.filePath}?v=`+e,o.filePath.toLowerCase());var i=t.lastIndexOf("."),i=(-1{i.scrollToLine(e,!0,!0,function(){})},100)}i.setFontSize(o.aceOption.fontSize),i.setReadOnly(o.aceOption.readOnly),i.setKeyboardHandler(o.aceOption.keyBinding),i.setSelectionStyle(o.aceOption.fullLineSelection?"line":"text"),i.setOption("displayIndentGuides",!0),i.setHighlightActiveLine(o.aceOption.highlightActiveLine),"hide"==o.aceOption.cursor&&(i.renderer.$cursorLayer.element.style.display="none"),i.setHighlightGutterLine(o.aceOption.highlightGutterLine),i.setShowInvisibles(o.aceOption.showInvisibles),i.setDisplayIndentGuides(o.aceOption.showIndentGuides),i.renderer.setShowPrintMargin(o.aceOption.showPrintMargin),i.setHighlightSelectedWord(o.aceOption.highlightSelectedWord),i.session.setUseSoftTabs(o.aceOption.useSoftTab),i.session.setTabSize(o.aceOption.tabSize),i.setBehavioursEnabled(o.aceOption.enableBehaviours),i.setFadeFoldWidgets(o.aceOption.fadeFoldWidgets)}},o.$on("dark-mode",(e,t)=>{o.aceOption.theme=t?"nord_dark":"chrome"}),o.isDarkMode&&(o.aceOption.theme="nord_dark"),o.type="pdf"==(i=t)?(o.instance=l.Instance("viewer"),"pdf"):"md"==i?"md":"org"==i?"org":"ipynb"==i?"IPython":-1e}).then(e=>{o.type=s,o.content=e.data,""==o.content&&(o.content=null),"md"==o.type&&(o.content=c.trustAsHtml(renderMD(e.data,a.url()+"/../")),o.type="html"),"org"==o.type&&(e=contentAbs2Relative(e.data),e=(new Org.Parser).parse(e).convert(Org.ConverterHTML,{headerOffset:1,exportFromLineNumber:!1,suppressSubScriptHandling:!0,suppressAutoLink:!1}),o.content=c.trustAsHtml(e.toString()),o.type="html"),setTimeout(()=>{Prism.highlightAll()},50)},t=>{o.type="error",o.content="unknown_error";try{t.data=JSON.parse(t.data),t.data.error?o.content=t.data.error:o.content=t.data}catch(e){console.log(t),-1==t.status?o.content="request_error":502==t.status&&(o.content="unreachable")}})}else o.type="error",o.content="no_file_selected"}function n(){var t;o.repoId=i.repoId,o.type="loading",o.filePath=i.path||"",o.paths=o.filePath.split("/"),t=async e=>{for(let e=0;e{if(""==o.paths[0]){var i={};for(const e of o.files)-1{o.options=e.data,o.options.url?window.location=o.options.url:t&&t(e.data)},e=>{o.type="error",o.content=e.data.error})}o.$on("$routeUpdate",function(e,t){if((i.path||"")!=o.filePath){if(o.filePath=i.path||"",o.paths=o.filePath.split("/").filter(e=>e&&0e),source:{repositoryFullName:i.owner+"/"+i.repo,pullRequestId:i.pullRequestId},options:o.options,conference:o.conference};await n.post(e,t,{headers:{"Content-Type":"application/json"}}),window.location.href="/pr/"+o.pullRequestId}catch(e){e.data?(s("ERRORS."+e.data.error).then(e=>{o.error=e},console.error),c(e.data.error)):console.error(e)}var i}o.pullRequestUrl="",o.pullRequestId="",o.terms="",o.defaultTerms="",o.options={expirationMode:"remove",expirationDate:new Date,update:!1,image:!0,link:!0,body:!0,title:!0,origin:!1,diff:!0,comments:!0,username:!0,date:!0},o.options.expirationDate.setMonth(o.options.expirationDate.getMonth()+4),o.isUpdate=!1,r=()=>{t.pullRequestId&&""!=t.pullRequestId&&(o.isUpdate=!0,o.pullRequestId=t.pullRequestId,n.get("/api/pr/"+o.pullRequestId).then(async e=>{o.pullRequestUrl="https://github.com/"+e.data.source.repositoryFullName+"/pull/"+e.data.source.pullRequestId,o.terms=e.data.options.terms.filter(e=>e).join("\n"),o.source=e.data.source,o.options=e.data.options,o.conference=e.data.conference,e.data.options.expirationDate?o.options.expirationDate=new Date(e.data.options.expirationDate):(o.options.expirationDate=new Date,o.options.expirationDate.setDate(o.options.expirationDate.getDate()+90)),o.details=(await n.get(`/api/pr/${e.data.source.repositoryFullName}/`+e.data.source.pullRequestId)).data,o.$apply()},e=>{i.url("/404")}),o.$watch("anonymize",()=>{o.anonymizeForm.pullRequestId.$$element[0].disabled=!0,o.anonymizeForm.pullRequestUrl.$$element[0].disabled=!0}))},n.get("/api/user/default").then(e=>{e=e.data;e.terms&&(o.defaultTerms=e.terms.join("\n")),o.options=Object.assign({},o.options,e.options),o.options.expirationDate=new Date(o.options.expirationDate),o.options.expirationDate.setDate(o.options.expirationDate.getDate()+90),r&&r()}),o.pullRequestSelected=async()=>{o.terms=o.defaultTerms,o.pullRequestId="",o.source={};try{if(!parseGithubUrl(o.pullRequestUrl).pullRequestId)return void o.anonymizeForm.pullRequestUrl.$setValidity("github",!1);o.anonymizeForm.pullRequestUrl.$setValidity("github",!0)}catch(e){return void o.anonymizeForm.pullRequestUrl.$setValidity("github",!1)}try{var e=parseGithubUrl(o.pullRequestUrl);try{a();var t=await n.get(`/api/pr/${e.owner}/${e.repo}/`+e.pullRequestId);o.details=t.data,o.options.origin?o.pullRequestId=e.repo+"-"+generateRandomId(4):o.pullRequestId=generateRandomId(4)}catch(e){throw e.data&&(s("ERRORS."+e.data.error).then(e=>{o.error=e},console.error),c(e.data.error)),o.anonymizeForm.pullRequestUrl.$setValidity("missing",!1),e}await 0}catch(e){}o.$apply(),$('[data-toggle="tooltip"]').tooltip()},$('[data-toggle="tooltip"]').tooltip(),o.$watch("options.update",e=>{}),o.anonymize=function(e){var i=/?/g,n=(o.options.image||(e=e.replace(/!\[[^\]]*\]\((?.*?)(?=\"|\))(?\".*\")?\)/g,"")),o.options.link||(e=e.replace(i,o.site_options.ANONYMIZATION_MASK)),o.terms.split("\n"));for(let t=0;tnew RegExp(`\\b${s}\\b`,"gi").test(e)?o.site_options.ANONYMIZATION_MASK+"-"+(t+1):e)).replace(new RegExp(`\\b${s}\\b`,"gi"),o.site_options.ANONYMIZATION_MASK+"-"+(t+1)))}return e},o.anonymizePullRequest=e=>{e.target.disabled=!0,l("/api/pr/").finally(()=>{e.target.disabled=!1,o.$apply()})},o.updatePullRequest=async e=>{e.target.disabled=!0,l("/api/pr/"+o.pullRequestId).finally(()=>{e.target.disabled=!1,o.$apply()})},o.$watch("conference",async e=>{o.conference&&n.get("/api/conferences/"+o.conference).then(e=>{o.conference_data=e.data,o.conference_data.startDate=new Date(o.conference_data.startDate),o.conference_data.endDate=new Date(o.conference_data.endDate),o.options.expirationDate=new Date(o.conference_data.endDate),o.options.expirationMode="remove",o.options.update=o.conference_data.options.update,o.options.image=o.conference_data.options.image,o.options.pdf=o.conference_data.options.pdf,o.options.notebook=o.conference_data.options.notebook,o.options.link=o.conference_data.options.link},e=>{o.conference_data=null})})}]).controller("pullRequestController",["$scope","$http","$location","$routeParams","$sce",function(i,n,e,t,s){i.pullRequestId=t.pullRequestId,i.type="loading",async function(t){n.get(`/api/pr/${i.pullRequestId}/options`).then(e=>{i.options=e.data,i.options.url?window.location=i.options.url:t&&t(e.data)},e=>{i.type="error",i.content=e.data.error})}(e=>{!async function(t){n.get(`/api/pr/${i.pullRequestId}/content`).then(e=>{i.details=e.data,t&&t(e.data)},e=>{i.type="error",i.content=e.data.error})}()})}]).controller("conferencesController",["$scope","$http","$location",function(i,n,e){function s(){n.get("/api/conferences/").then(e=>{i.conferences=e.data||[]},e=>{console.error(e)})}i.$watch("user.status",()=>{null==i.user&&e.url("/")}),null==i.user&&e.url("/"),i.conferences=[],i.search="",i.filters={status:{ready:!0,expired:!1,removed:!1}},i.orderBy="name",i.removeConference=function(e){if(confirm(`Are you sure that you want to remove the conference ${e.name}? All the repositories linked to this conference will expire.`)){const t={title:`Removing ${e.name}...`,date:new Date,body:`The conference ${e.name} is going to be removed.`};i.toasts.push(t),n.delete("/api/conferences/"+e.conferenceID).then(()=>{t.title=e.name+" is removed.",t.body=`The conference ${e.name} is removed.`,s()})}},s(),i.conferenceFilter=e=>0!=i.filters.status[e.status]&&(0==i.search.trim().length||-1{null==i.user&&n.url("/")}),null==i.user&&n.url("/"),i.plans=[],i.editionMode=!1,t.conferenceId&&(i.editionMode=!0,e.get("/api/conferences/"+t.conferenceId).then(e=>{i.options=e.data,i.options.startDate=new Date(i.options.startDate),i.options.endDate=new Date(i.options.endDate)})),e.get("/api/conferences/plans").then(e=>{i.plans=e.data,i.plan=i.plans.filter(e=>e.id==i.options.plan.planID)[0]});var t=new Date,s=(t.setDate(1),t.setMonth(t.getMonth()+1),new Date);s.setMonth(t.getMonth()+7,0),i.options={startDate:t,endDate:s,plan:{planID:"free_conference"},options:{link:!0,image:!0,pdf:!0,notebook:!0,update:!0,page:!0}},i.plan=null,i.$watch("options.plan.planID",()=>{i.plan=i.plans.filter(e=>e.id==i.options.plan.planID)[0]}),i.submit=function(){const t={title:`Creating ${i.options.name}...`,date:new Date,body:`The conference ${i.options.conferenceID} is in creation.`};i.editionMode&&(t.title=`Updating ${i.options.name}...`,t.body=`The conference '${i.options.conferenceID}' is updating.`),i.toasts.push(t),i.conference.name.$setValidity("required",!0),i.conference.conferenceID.$setValidity("pattern",!0),i.conference.conferenceID.$setValidity("required",!0),i.conference.conferenceID.$setValidity("used",!0),i.conference.startDate.$setValidity("required",!0),i.conference.startDate.$setValidity("invalid",!0),i.conference.endDate.$setValidity("required",!0),i.conference.endDate.$setValidity("invalid",!0),i.conference.$setValidity("error",!0),e.post("/api/conferences/"+(i.editionMode?i.options.conferenceID:""),i.options).then(()=>{i.editionMode?(t.title=i.options.name+" updated",t.body=`The conference '${i.options.conferenceID}' is updated.`):(t.title=i.options.name+" created",t.body=`The conference '${i.options.conferenceID}' is created.`),n.url("/conference/"+i.options.conferenceID)},e=>{switch(e.data.error){case"conf_name_missing":i.conference.name.$setValidity("required",!1);break;case"conf_id_missing":i.conference.conferenceID.$setValidity("required",!1);break;case"conf_id_format":i.conference.conferenceID.$setValidity("pattern",!1);break;case"conf_id_used":i.conference.conferenceID.$setValidity("used",!1);break;case"conf_start_date_missing":i.conference.startDate.$setValidity("required",!1);break;case"conf_end_date_missing":i.conference.endDate.$setValidity("required",!1);break;case"conf_start_date_invalid":i.conference.startDate.$setValidity("invalid",!1);break;case"conf_end_date_invalid":i.conference.endDate.$setValidity("invalid",!1);break;default:i.conference.$setValidity("error",!1)}i.removeToast(t)})}}]).controller("conferenceController",["$scope","$http","$location","$routeParams",function(t,e,i,n){t.$watch("user.status",()=>{null==t.user&&i.url("/")}),null==t.user&&i.url("/"),t.conference=null,t.search="",t.filters={status:{ready:!0,expired:!1,removed:!1}},t.orderBy="-anonymizeDate",t.repoFiler=e=>0!=t.filters.status[e.status]&&(0==t.search.trim().length||-1{t.conference=e.data})}]),angular.module("admin",[]).controller("repositoriesAdminController",["$scope","$http","$location",function(n,s,e){function t(){s.get("/api/admin/repos",{params:n.query}).then(e=>{n.total=e.data.total,n.totalPage=Math.ceil(e.data.total/n.query.limit),n.repositories=e.data.results},e=>{console.error(e)})}n.$watch("user.status",()=>{null==n.user&&e.url("/")}),null==n.user&&e.url("/"),n.repositories=[],n.total=-1,n.totalPage=0,n.query={page:1,limit:25,sort:"lastView",search:"",ready:!1,expired:!1,removed:!1,error:!0,preparing:!0},n.removeCache=e=>{s.delete("/api/admin/repos/"+e.repoId).then(e=>{n.$apply()},e=>{console.error(e)})},n.updateRepository=t=>{const i={title:`Refreshing ${t.repoId}...`,date:new Date,body:`The repository ${t.repoId} is going to be refreshed.`};n.toasts.push(i),t.s,s.post(`/api/repo/${t.repoId}/refresh`).then(e=>{"ready"==e.data.status?i.title=t.repoId+" is refreshed.":i.title=`Refreshing of ${t.repoId}.`},e=>{i.title=`Error during the refresh of ${t.repoId}.`,i.body=e.body})},t();let i=null;n.$watch("query",()=>{clearTimeout(i),i=setTimeout(t,500)},!0)}]).controller("usersAdminController",["$scope","$http","$location",function(t,e,i){function n(){e.get("/api/admin/users",{params:t.query}).then(e=>{t.total=e.data.total,t.totalPage=Math.ceil(e.data.total/t.query.limit),t.users=e.data.results,t.$apply()},e=>{console.error(e)})}t.$watch("user.status",()=>{null==t.user&&i.url("/")}),null==t.user&&i.url("/"),t.users=[],t.total=-1,t.totalPage=0,t.query={page:1,limit:25,sort:"username",search:""},n();let s=null;t.$watch("query",()=>{clearTimeout(s),s=setTimeout(n,500)},!0)}]).controller("userAdminController",["$scope","$http","$location","$routeParams",function(n,s,e,t){function i(e){s.get("/api/admin/users/"+e+"/repos",{}).then(e=>{n.repositories=e.data},e=>{console.error(e)})}var o;n.$watch("user.status",()=>{null==n.user&&e.url("/")}),null==n.user&&e.url("/"),n.userInfo,n.repositories=[],n.search="",n.filters={status:{ready:!0,expired:!1,removed:!1}},n.orderBy="-anonymizeDate",n.repoFiler=e=>0!=n.filters.status[e.status]&&(0==n.search.trim().length||-1{n.userInfo=e.data},e=>{console.error(e)}),i(t.username),n.removeCache=e=>{s.delete("/api/admin/repos/"+e.repoId).then(e=>{n.$apply()},e=>{console.error(e)})},n.updateRepository=t=>{const i={title:`Refreshing ${t.repoId}...`,date:new Date,body:`The repository ${t.repoId} is going to be refreshed.`};n.toasts.push(i),t.s,s.post(`/api/repo/${t.repoId}/refresh`).then(e=>{"ready"==e.data.status?i.title=t.repoId+" is refreshed.":i.title=`Refreshing of ${t.repoId}.`},e=>{i.title=`Error during the refresh of ${t.repoId}.`,i.body=e.body})},n.getGitHubRepositories=e=>{s.get(`/api/user/${n.userInfo.username}/all_repositories`,{params:{force:"1"}}).then(e=>{n.userInfo.repositories=e.data})};let r=null;n.$watch("query",()=>{clearTimeout(r),r=setTimeout(()=>{i(t.username)},500)},!0)}]).controller("conferencesAdminController",["$scope","$http","$location",function(t,e,i){function n(){e.get("/api/admin/conferences",{params:t.query}).then(e=>{t.total=e.data.total,t.totalPage=Math.ceil(e.data.total/t.query.limit),t.conferences=e.data.results,t.$apply()},e=>{console.error(e)})}t.$watch("user.status",()=>{null==t.user&&i.url("/")}),null==t.user&&i.url("/"),t.conferences=[],t.total=-1,t.totalPage=0,t.query={page:1,limit:25,sort:"name",search:""},n();let s=null;t.$watch("query",()=>{clearTimeout(s),s=setTimeout(n,500)},!0)}]).controller("queuesAdminController",["$scope","$http","$location",function(i,n,e){function s(){n.get("/api/admin/queues",{params:i.query}).then(e=>{i.downloadJobs=e.data.downloadQueue,i.removeJobs=e.data.removeQueue,i.removeCaches=e.data.cacheQueue},e=>{console.error(e)})}i.$watch("user.status",()=>{null==i.user&&e.url("/")}),null==i.user&&e.url("/"),i.downloadJobs=[],i.removeJobs=[],s(),i.removeJob=function(e,t){n.delete(`/api/admin/queue/${e}/`+t.id,{params:i.query}).then(e=>{s()},e=>{console.error(e)})},i.retryJob=function(e,t){n.post(`/api/admin/queue/${e}/`+t.id,{params:i.query}).then(e=>{s()},e=>{console.error(e)})}}]); \ No newline at end of file diff --git a/src/core/Repository.ts b/src/core/Repository.ts index 5c1fd10..ab42c4e 100644 --- a/src/core/Repository.ts +++ b/src/core/Repository.ts @@ -485,7 +485,7 @@ export default class Repository { } // remove cache await Promise.all([ - FileModel.deleteMany({ repoID: this.repoId }).exec(), + FileModel.deleteMany({ repoId: this.repoId }).exec(), this.removeCache(), ]); console.log(`[RESET] ${this._model.repoId} has been reset`); diff --git a/src/core/storage/FileSystem.ts b/src/core/storage/FileSystem.ts index 06e7f47..8c8a1fa 100644 --- a/src/core/storage/FileSystem.ts +++ b/src/core/storage/FileSystem.ts @@ -152,9 +152,7 @@ export default class FileSystem extends StorageBase { try { const stats = await fs.promises.stat(filePath); if (stats.isDirectory()) { - output2.push( - new FileModel({ name: file, path: dir, repoID: repoId }) - ); + output2.push(new FileModel({ name: file, path: dir, repoId })); output2.push( ...(await this.listFiles(repoId, join(dir, file), opt)) ); @@ -169,7 +167,7 @@ export default class FileSystem extends StorageBase { new FileModel({ name: file, path: dir, - repoID: repoId, + repoId: repoId, size: stats.size, sha: stats.ino.toString(), }) diff --git a/src/core/storage/S3.ts b/src/core/storage/S3.ts index e7bce58..c401f77 100644 --- a/src/core/storage/S3.ts +++ b/src/core/storage/S3.ts @@ -272,7 +272,7 @@ export default class S3Storage extends StorageBase { new FileModel({ name: basename(f.Key), path: dirname(f.Key), - repoID: repoId, + repoId, size: f.Size, sha: f.ETag, })