@jhuix/showdowns 0.6.7 → 0.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * showdowns.core.min.js v0.6.7
2
+ * showdowns.core.min.js v0.6.8
3
3
  * Copyright (c) 2019-present, Jhuix (Hui Jin) <jhuix0117@gmail.com>
4
4
  * Released under the MIT License.
5
5
  */
6
- "use strict";var t=require("showdown"),e=require("zlib");t.ConverterExtObj=function(e,n){let o=[],i=e;function r(e,n){if(n=n||null,t.helper.isString(e)&&(n=t.helper.stdExtName(e),e=t.asyncExtension(n),t.helper.isUndefined(e)))throw Error('Extension "'+n+'" could not be loaded. It was either not found or is not a valid aync extension.');if("function"==typeof e&&(e=e()),t.helper.isArray(e)||(e=[e]),t.validateExtension(e))for(var i=0;e.length>i;++i)if("output"===e[i].type)o.push(e[i])}n&&t.helper.forEach(n,r),this.addAsyncExtension=function(t,e){r(t,e=e||null)},this.removeAsyncExtension=function(e){t.helper.isArray(e)||(e=[e]);for(var n=0;e.length>n;++n){const t=e[n];for(var i=0;o.length>i;++i)o[i]===t&&o.splice(i,1)}},this.getAsyncExtensions=function(){return o},this.getCurrFlavor=function(){return i},this.setCurrFlavor=function(t){i=t}},t.Converter.prototype.initConvertExtObj=function(e,n){return this.extObj=new t.ConverterExtObj(e,n),this.resetOptions=function(e){e=e||{};const n=t.getOptions();let o=this.getOptions();for(var i in n)n.hasOwnProperty(i)&&(o[i]=n[i]);if("object"==typeof e)for(var r in e)e.hasOwnProperty(r)&&(o[r]=e[r])},this.setFlavor=function(e){let n=t.getFlavorOptions(e);if(t.helper.isUndefined(n))return;this.extObj.setCurrFlavor(e);let o=t.getDefaultOptions(!0);for(var i in o)o.hasOwnProperty(i)&&(this.getOptions()[i]=o[i]);for(var i in n)n.hasOwnProperty(i)&&(this.getOptions()[i]=n[i])},this.getFlavor=function(){return this.extObj.getCurrFlavor()},this.addAsyncExtension=function(t,e){this.extObj.addAsyncExtension(t,e)},this.removeAsyncExtension=function(t){this.extObj.removeAsyncExtension(t)},this.removeExtension=function(e){t.helper.isArray(e)||(e=[e]);const n=this.getAllExtensions();let o=n.language,i=n.output;for(var r=0;e.length>r;++r){const t=e[r];for(var a=0;o.length>a;++a)o[a]===t&&o.splice(a,1);for(var u=0;i.length>u;++u)i[u]===t&&i.splice(u,1)}},this.asyncMakeHtml=function(t,e){const n=this.makeHtml(t),o=this.extObj.getAsyncExtensions();if(!o.length)return Promise.resolve({html:n});var i={outputs:o,converter:this};const r=(new DOMParser).parseFromString(n,"text/html"),a=void 0!==r.body?r.body:r,u=this.getOptions();let s=Promise.resolve({wrapper:a,options:u,globals:i,scripts:[]});return o.forEach((function(t){s=s.then((e=>{const n=t.filter(e);return n||e}))})),s.then((t=>{if("function"==typeof e&&e){const n=e(t);if(n instanceof Promise)return n.then((t=>({html:t.wrapper.innerHTML,scripts:t.scripts})))}return{html:t.wrapper.innerHTML,scripts:t.scripts}}))},this},t.subParser("githubCodeBlocks",(function(e,n,o){return n.ghCodeBlocks?(e=o.converter._dispatch("githubCodeBlocks.before",e,n,o),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*?)(?:[ \t]*?)((?:\{[\S\t ]*\}|\[[\S\t ]*\])?)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,i,r,a,u){var s=n.omitExtraWLInCodeBlocks?"":"\n";return u=t.subParser("encodeCode")(u,n,o),u="<pre><code"+(r?' class="'+r+" language-"+r+'"':"")+(a?` data-lang='${a}'`:"")+">"+(u=(u=(u=t.subParser("detab")(u,n,o)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"</code></pre>",u=t.subParser("hashBlock")(u,n,o),"\n\n¨G"+(o.ghCodeBlocks.push({text:e,codeblock:u})-1)+"G\n\n"}))).replace(/¨0/,""),o.converter._dispatch("githubCodeBlocks.after",e,n,o)):e})),t.subParser("tables",(function(e,n,o){if(!n.tables)return e;function i(t){return/^:[ \t]*--*$/.test(t)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(t)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(t)?' style="text-align:center;"':""}function r(e,i,r,a,u){if(n.tablesMerge){var s=function(t,e,o,i){if(i){if(!n.tablesRowspan||"^^"!==i||!e)return;for(var r=e-1;r>=0;--r)if(t[r][o]){if("^^"!==t[r][o])return t[r][o]=t[r][o].replace(/rowspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,(function(t,n,o){return n+' rowspan="'+(e-r+1)+'"'+o})),i;if(0===r)return t[r][o]='<td rowspan="'+(e-r+1)+'"></td>\n',i}else for(var a=o-1;a>=0;-a){if(t[r+1][a]&&"^^"!==t[r+1][a])return;if(t[r][a]){if(!t[r+1][a])return;return t[r][a]=t[r][a].replace(/rowspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,(function(t,n,o){return n+' rowspan="'+(e-r+1)+'"'+o})),i}}}else if(o)for(a=o-1;a>=0;--a)if(t[e][a]){if("^^"!==t[e][a])return t[e][a]=t[e][a].replace(/colspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,(function(t,e,n){return e+' colspan="'+(o-a+1)+'"'+n})),i;for(r=e-1;r>=0;--r){if(t[r][a+1])return;if("^^"!==t[r][a])return t[r][a]=t[r][a].replace(/colspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,(function(t,e,n){return e+' colspan="'+(o-a+1)+'"'+n})),i}}else if(0===a)return t[e][a]='<td colspan="'+(o-a+1)+'"></td>\n',i}(e,i,r,a);if(!t.helper.isUndefined(s))return s}return a=a.trim(),"<td"+u+">"+t.subParser("spanGamut")(a,n,o)+"</td>\n"}function a(e,a){var u,s=e.split("\n");for(u=0;s.length>u;++u)/^ {0,3}\|/.test(s[u])&&(s[u]=s[u].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(s[u])&&(s[u]=s[u].replace(/\|[ \t]*$/,"")),s[u]=t.subParser("codeSpans")(s[u],n,o);var l,c,p,d=[],m=[],f=[],g=[],h=[];if(a)for(d=s[0].split("|").map((function(t){return t.trim()})),s.shift(),u=0;d.length>u;++u)g.push(i(d[u]));else{var y=s[0].split("|").map((function(t){return t.trim()}));if(d=s[1].split("|").map((function(t){return t.trim()})),s.shift(),s.shift(),d.length>y.length)return e;for(u=0;d.length>u;++u)g.push(i(d[u]));for(u=0;y.length>u;++u)t.helper.isUndefined(g[u])&&(g[u]=""),f.push((c=g[u],p=void 0,p="",l=(l=y[u]).trim(),(n.tablesHeaderId||n.tableHeaderId)&&(p=' id="'+l.replace(/ /g,"_").toLowerCase()+'"'),"<th"+p+c+">"+(l=t.subParser("spanGamut")(l,n,o))+"</th>\n"))}for(u=0;s.length>u;++u)""!==s[u].trim()&&m.push(s[u].split("|").map((function(t){var e=t.trim();return""===e&&t.length>0?t:e})));for(u=0;m.length>u;++u){var v=[];h.push(v);for(var w=0;g.length>w;++w)t.helper.isUndefined(m[u][w])&&(m[u][w]=""),v.push(r(h,u,w,m[u][w],g[w]))}return function(t,e,o){var i="<table>\n",r=e.length;if(t.length){i+="<thead>\n<tr>\n";for(var a=0;t.length>a;++a)i+=t[a];i+="</tr>\n</thead>\n"}for(i+="<tbody>\n",a=0;o.length>a;++a){i+="<tr>\n";for(var u=0;r>u;++u)n.tablesMerge&&"^^"===o[a][u]||(i+=o[a][u]);i+="</tr>\n"}return i+"</tbody>\n</table>\n"}(f,g,h)}function u(t){return a(t,!1)}function s(t){return a(t,!0)}return e=(e=(e=(e=o.converter._dispatch("tables.before",e,n,o)).replace(/\\(\|)/g,t.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,u)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,u),n.tablesHeaderless&&(e=(e=e.replace(/^ {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,s)).replace(/^ {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,s)),e=o.converter._dispatch("tables.after",e,n,o)}));let n="vanilla",o={github:{ghCompatibleHeaderId:!1,underline:!0,rawHeaderId:!0,tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0},ghost:{tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0},allOn:{tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0}},i={};t.asyncExtension=function(e,n){if(!t.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=t.helper.stdExtName(e),t.helper.isUndefined(n)){if(!i.hasOwnProperty(e))throw Error("Async Extension named "+e+" is not registered!");return i[e]}"function"==typeof n&&(n=n()),t.helper.isArray(n)||(n=[n]),t.validateExtension(n)&&(i[e]=n)},t.removeAsyncExtension=function(e){e=t.helper.stdExtName(e),delete i[e]},t.resetAsyncExtensions=function(){i={}},t.removeExtension=function(e){e=t.helper.stdExtName(e),delete t.getAllExtensions[e]};const r=t.setFlavor,a=t.getFlavorOptions;function u(t){return`${(new Date).Format("yyyy-MM-dd HH:mm:ss.S")} ${t}`}t.setFlavor=function(e){try{if(r(e),n=e,!o.hasOwnProperty(e))return}catch{if(!o.hasOwnProperty(e))return;t.resetOptions(),n=e}var i=o[e];for(var a in i)i.hasOwnProperty(a)&&(t.getOptions()[a]=i[a])},t.getFlavor=function(){return n},t.setFlavorOptions=function(t,e){e&&(o[t]=Object.assign(o[t]||{},e))},t.getFlavorOptions=function(e){const n=a(e);return t.helper.isUndefined(n)?o.hasOwnProperty(e)?o[e]:void 0:o.hasOwnProperty(e)?Object.assign(n,o[e]):n},Date.prototype.Format=function(t){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"H+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};t||(t="yyyy-MM-dd hh:mm:ss.S");const n=/(y+)/.exec(t);n&&(t=t.replace(n[1],(this.getFullYear()+"").substring(4-n[1].length)));for(const n in e){const o=RegExp("("+n+")").exec(t);if(o){let i=e[n];1==o[1].length?i=("000"+e[n]).substring((""+e[n]).length):2==o[1].length&&(i=("00"+e[n]).substring((""+e[n]).length)),t=t.replace(o[1],i)}}return t};let s="jsdelivr",l="file:"===document.location.protocol?"https://":document.location.protocol+"//",c="",p="";const d={local:{ABCJS:"../node_modules/abcjs/dist/abcjs-basic.js",ABCJSCSS:"../node_modules/abcjs/abcjs-audio.css",echarts:"../node_modules/echarts/dist/echarts.js",Viz:"../node_modules/@viz-js/viz/lib/viz-standalone.js",Raphael:"../node_modules/raphael/raphael.min.js",flowchart:"../dist/diagrams/flowchart/flowchart.min.js",mermaid:"../node_modules/mermaid/dist/mermaid.js",katex:"../node_modules/katex/dist/katex.min.js",katexCSS:"../node_modules/katex/dist/katex.min.css",renderMathInElement:"../node_modules/katex/dist/contrib/auto-render.js",railroad:"../node_modules/railroad-diagrams/railroad-diagrams.js",railroadCSS:"../node_modules/railroad-diagrams/railroad-diagrams.css",Snap:"../node_modules/snapsvg/dist/snap.svg-min.js",WebFont:"../node_modules/webfontloader/webfontloader.js",underscore:"../node_modules/underscore/underscore-min.js",sequence:"../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.js",sequenceCSS:"../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.css",WaveDrom:"../node_modules/wavedrom/wavedrom.min.js",WaveDromSkin:{default:"../node_modules/wavedrom/skins/default.js",lowkey:"../node_modules/wavedrom/skins/lowkey.js",narrow:"../node_modules/wavedrom/skins/narrow.js"},vega:"../node_modules/vega/build/vega.js",vegaLite:"../node_modules/vega-lite/build/vega-lite.js",vegaEmbed:"../node_modules/vega-embed/build/vega-embed.js"},cdnjs:{ABCJS:l+"cdnjs.cloudflare.com/ajax/libs/abcjs/6.4.1/abcjs-basic-min.js",ABCJSCSS:l+"cdnjs.cloudflare.com/ajax/libs/abcjs/abcjs-audio.css",echarts:l+"cdnjs.cloudflare.com/ajax/libs/echarts/5.5.0/echarts.min.js",Viz:l+"cdn.jsdelivr.net/npm/@viz-js/viz@3/lib/viz-standalone.js",Raphael:l+"cdnjs.cloudflare.com/ajax/libs/raphael/2.3.0/raphael.min.js",flowchart:l+"cdnjs.cloudflare.com/ajax/libs/flowchart/1.18.0/flowchart.min.js",mermaid:l+"cdnjs.cloudflare.com/ajax/libs/mermaid/10.9.1/mermaid.min.js",katex:l+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.11/katex.min.js",katexCSS:l+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.11/katex.min.css",renderMathInElement:l+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.11/contrib/auto-render.js",railroad:l+"cdnjs.cloudflare.com/ajax/libs/railroad-diagrams/1.0.0/railroad-diagrams.js",railroadCSS:l+"cdnjs.cloudflare.com/ajax/libs/railroad-diagrams/1.0.0/railroad-diagrams.css",Snap:l+"cdnjs.cloudflare.com/ajax/libs/snap.svg/0.5.1/snap.svg-min.js",WebFont:l+"cdnjs.cloudflare.com/ajax/libs/webfont/1.6.28/webfontloader.js",underscore:l+"cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.6/underscore-min.js",sequence:l+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.js",sequenceCSS:l+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.css",WaveDrom:l+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/wavedrom.min.js",WaveDromSkin:{default:l+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/default.js",lowkey:l+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/lowkey.js",narrow:l+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/narrow.js"},vega:l+"cdnjs.cloudflare.com/ajax/libs/vega/5.30.0/vega.min.js",vegaLite:l+"cdnjs.cloudflare.com/ajax/libs/vega-lite/5.19.0/vega-lite.min.js",vegaEmbed:l+"cdnjs.cloudflare.com/ajax/libs/vega-embed/6.26.0/vega-embed.min.js"},jsdelivr:{ABCJS:l+"cdn.jsdelivr.net/npm/abcjs@6/dist/abcjs-basic-min.js",ABCJSCSS:l+"cdn.jsdelivr.net/npm/abcjs@6/abcjs-audio.css",echarts:l+"cdn.jsdelivr.net/npm/echarts@5/dist/echarts.min.js",Viz:l+"cdn.jsdelivr.net/npm/@viz-js/viz@3/lib/viz-standalone.js",Raphael:l+"cdn.jsdelivr.net/npm/raphael@2/raphael.min.js",flowchart:l+"cdnjs.cloudflare.com/ajax/libs/flowchart/1.18.0/flowchart.min.js",mermaid:l+"cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.min.js",katex:l+"cdn.jsdelivr.net/npm/katex@0/dist/katex.min.js",katexCSS:l+"cdn.jsdelivr.net/npm/katex@0/dist/katex.min.css",renderMathInElement:l+"cdn.jsdelivr.net/npm/katex@0/dist/contrib/auto-render.js",railroad:l+"cdn.jsdelivr.net/npm/railroad-diagrams@1/railroad-diagrams.js",railroadCSS:l+"cdn.jsdelivr.net/npm/railroad-diagrams@1/railroad-diagrams.css",Snap:l+"cdn.jsdelivr.net/npm/snapsvg@0/dist/snap.svg-min.js",WebFont:l+"cdn.jsdelivr.net/npm/webfontloader@1/webfontloader.js",underscore:l+"cdn.jsdelivr.net/npm/underscore@1/underscore-min.js",sequence:l+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.js",sequenceCSS:l+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.css",WaveDrom:l+"cdn.jsdelivr.net/npm/wavedrom@3/wavedrom.min.js",WaveDromSkin:{default:l+"cdn.jsdelivr.net/npm/wavedrom@3/skins/default.js",lowkey:l+"cdn.jsdelivr.net/npm/wavedrom@3/skins/lowkey.js",narrow:l+"cdn.jsdelivr.net/npm/wavedrom@3/skins/narrow.js"},vega:l+"cdn.jsdelivr.net/npm/vega@5/build/vega.js",vegaLite:l+"cdn.jsdelivr.net/npm/vega-lite@5/build/vega-lite.js",vegaEmbed:l+"cdn.jsdelivr.net/npm/vega-embed@6/build/vega-embed.js"}};function m(){return s}function f(t){if("object"==typeof t){const e=Object.keys(t)[0],n=t[e];if("string"==typeof n)return e+"-"+n}return t}function g(t,e,n){if(void 0!==e&&e||(e=m()),d.hasOwnProperty(e)){const o=d[e];let i="";if("object"==typeof t){const e=Object.keys(t)[0],n=t[e];o[e]&&"string"==typeof n&&n&&o[e][n]&&(i=o[e][n])}else o[t]&&(i=o[t]);i&&(n=i.substring(0,l.length)===l?i:"../dist/"===i.substring(0,8)?p+i:c+i)}return n}const h={setCDN:function(t,e,n){t in d&&(s=t),"string"==typeof e&&e&&(c=e),"string"==typeof n&&n&&(p=n)},getCDN:m,getSrc:g,loadScript:function(t,e){return new Promise(((n,o)=>{t&&"undefined"!=typeof document||o("Args is invaild!"),void 0===e&&(e=""),(e=g(t,e))||o(t+" script source invaild!");const i="script-"+f(t).toLowerCase();let r=document.getElementById(i);if(r)return n(t);const a=document.head||document.getElementsByTagName("head")[0];r=document.createElement("script"),r.src=e,r.id=i,r.onload=()=>{n(t)},a.appendChild(r)}))},unloadScript:function(t){t=f(t);const e=document.getElementById("script-"+t.toLowerCase());if(e){(document.head||document.getElementsByTagName("head")[0]).removeChild(e)}},loadStyleSheet:function(t,e){if(!t||"undefined"==typeof document)return"";if(void 0===e&&(e=""),!(e=g(t,e)))return"";const n="css-"+f(t).toLowerCase();if(!document.getElementById(n)){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("link");i.rel="stylesheet",i.href=e,i.id=n,o.appendChild(i)}return"local"===s?"":e},unloadStyleSheet:function(t){t=f(t);const e=document.getElementById("css-"+t.toLowerCase());if(e){(document.head||document.getElementsByTagName("head")[0]).removeChild(e)}}};const y={interopDefault:function(t){return t&&"object"==typeof t&&"default"in t?t.default:t},loadStyle:function(t,e){if(!t||!e||"undefined"==typeof document)return!1;const n="css-"+t.toLowerCase();if(!document.getElementById(n)){const t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.id=n,o.type="text/css",o.innerText=e,t.appendChild(o)}return!0},loadScript:function(t,e,n){return new Promise(((o,i)=>{if(!t||!e||"undefined"==typeof document)return i("Args is invaild!");let r=document.getElementById(t);if(r)return o(!0);n?"string"==typeof n&&(n=document.querySelector(n)):n=document.body,r=document.createElement("script"),r.id=t,r.type="text/javascript",r.text=e,n.appendChild(r),o(!0)}))},renderCacheElement:function(t,e,n,o){"undefined"!=typeof window&&window.document&&(t=window.document);const i=t.createElement("div");if(i.id=e,i.className=n,i.style.display="none",t.body.appendChild(i),"function"==typeof o&&o){const e=o(i);if(e instanceof Promise)return e.then((e=>{t.body.removeChild(e),e.style.display=""})),i.outerHTML}return t.body.removeChild(i),i.style.display="",i.outerHTML},renderElement:function(t,e,n){"undefined"!=typeof window&&window.document&&(t=window.document);const o=t.createElement("div");return o.id=e,o.className=n,t.body.appendChild(o),o},createElementMeta:function(t,e,n){const o=e.dataset.lang,i=o?JSON.parse(o):null;let r="";if(i){if("boolean"==typeof i.codeblock&&i.codeblock||"string"==typeof i.codeblock&&"true"===i.codeblock.toLowerCase())return!1;i.align&&("center"===i.align?r="diagram-center":"right"===i.align&&(r="diagram-right")),i.width&&"string"!=typeof i.width&&(i.width=i.width+"px"),i.height&&"string"!=typeof i.height&&(i.height=i.height+"px")}let a=e.textContent.trim();n&&"function"==typeof n&&(a=n(a));const u=(e.classList.length>0?e.classList[0]:"")+(e.className&&r?" ":"")+r,s=t.toLowerCase()+"-"+Date.now()+"-"+Math.floor(1e4*Math.random());return e.id=s,{id:s,container:s+"-container",className:u,data:a,element:e,lang:i}}},v="abc",w="ABCJSCSS";if("undefined"==typeof window)throw Error("The showdown abcjs extension can only be used in browser environment!");if(void 0===x)var x=window.ABCJS||void 0;function b(){return!!x}let S=!1;const j='\nvar abcOptions = {\n add_classes: true,\n responsive: "resize"\n};\n\nfunction cursorControl(id) {\n const self = this;\n\n self.onReady = function() {\n };\n self.onStart = function() {\n const tag = "#"+ id + " svg";\n const svg = document.querySelector(tag);\n const cursor = document.createElementNS("http://www.w3.org/2000/svg", "line");\n cursor.setAttribute("class", "abcjs-cursor");\n cursor.setAttributeNS(null, \'x1\', 0);\n cursor.setAttributeNS(null, \'y1\', 0);\n cursor.setAttributeNS(null, \'x2\', 0);\n cursor.setAttributeNS(null, \'y2\', 0);\n svg.appendChild(cursor);\n };\n self.beatSubdivisions = 2;\n self.onBeat = function(beatNumber, totalBeats, totalTime) {\n };\n self.onEvent = function(ev) {\n if (ev.measureStart && ev.left === null)\n return; // this was the second part of a tie across a measure line. Just ignore it.\n\n const className = "#"+ id + " svg .highlight";\n const lastSelection = document.querySelectorAll(className);\n for (let k = 0; k < lastSelection.length; k++)\n lastSelection[k].classList.remove("highlight");\n\n for (let i = 0; i < ev.elements.length; i++ ) {\n const note = ev.elements[i];\n for (let j = 0; j < note.length; j++) {\n note[j].classList.add("highlight");\n }\n }\n\n const tag = "#"+ id + " svg .abcjs-cursor";\n const cursor = document.querySelector(tag);\n if (cursor) {\n cursor.setAttribute("x1", ev.left - 2);\n cursor.setAttribute("x2", ev.left - 2);\n cursor.setAttribute("y1", ev.top);\n cursor.setAttribute("y2", ev.top + ev.height);\n }\n };\n self.onFinished = function() {\n const className = "#"+ id + " svg .highlight";\n const els = document.querySelectorAll(className);\n for (let i = 0; i < els.length; i++ ) {\n els[i].classList.remove("highlight");\n }\n const tag = "#"+ id + " svg .abcjs-cursor";\n const cursor = document.querySelector(tag);\n if (cursor) {\n cursor.setAttribute("x1", 0);\n cursor.setAttribute("x2", 0);\n cursor.setAttribute("y1", 0);\n cursor.setAttribute("y2", 0);\n }\n };\n}\n\nfunction load(audio, render) {\n let synthControl;\n if (audio) {\n const id = "#" + audio;\n if (ABCJS.synth.supportsAudio()) {\n synthControl = new ABCJS.synth.SynthController();\n synthControl.load(id, new cursorControl(render.id), {displayLoop: true, displayRestart: true, displayPlay: true, displayProgress: true, displayWarp: true});\n } else {\n document.querySelector(id).innerHTML = "<div class=\'audio-error\'>Audio is not supported in this browser.</div>";\n }\n }\n setTune(render, false, synthControl);\n}\n\nfunction setTune(render, userAction, synthControl) {\n const id = render.id;\n const abc = render.data;\n if (!synthControl) {\n ABCJS.renderAbc(id, abc, abcOptions);\n return;\n }\n\n synthControl.disable(true);\n const visualObj = ABCJS.renderAbc(id, abc, abcOptions)[0];\n const midiBuffer = new ABCJS.synth.CreateSynth();\n midiBuffer.init({\n visualObj: visualObj,\n }).then(function (response) {\n // console.log(response);\n synthControl.setTune(visualObj, userAction).then(function (response) {\n console.log("Audio successfully loaded.");\n }).catch(function (error) {\n console.warn("Audio problem:", error);\n });\n }).catch(function (error) {\n console.warn("Audio problem:", error);\n });\n}\n';function E(t,e,n){if(b()){const o=n.id,i=n.className,r=n.container;let a="";n.lang&&(n.lang.width&&(a+=`width:${n.lang.width};`),n.lang.height&&(a+=`height:${n.lang.height};`));let u="";if(a?(u+=`<div id="${r}" class="${i}" style="${a}">`,u+=`<div id="${o}" style="width:100%;height:100%;display:inline-block"></div>`):(u+=`<div id="${r}" class="${i}">`,u+=`<div id="${o}"></div>`),!n.lang||!n.lang.audio){const e=n.data,i=n.element.ownerDocument;u+="</div>",n.element.parentNode.outerHTML=u;const r=i.getElementById(o);return x.renderAbc(r,e,{add_classes:!0,responsive:"resize"}),t(!0)}const s=n.cssLink,l=n.data,c=o+"-audio";u+=a?s?`<div id="${c}" style="width:100%;height:100%;display:inline-block" class="css-abc" data-css="${s}"></div>`:`<div id="${c}" style="width:100%;height:100%;display:inline-block"></div>`:s?`<div id="${c}" class="css-abc" data-css="${s}"></div>`:`<div id="${c}"></div>`,u+="</div>",n.element.parentNode.outerHTML=u;return e.push({id:r,code:`(function() {\n load('${c}', {\n id:'${o}',\n class:'${i}',\n data:\`${l}\`\n });\n })();`}),t(!0)}setTimeout((()=>{E(t,e,n)}),10)}function C(t,e){return new Promise((n=>{let o=y.createElementMeta(v,t);if(!o)return n(!1);o.cssLink=h.getSrc(w),E(n,e,o)}))}function A(t,e){const n={outer:[{name:"ABCJS",src:h.getSrc("ABCJS","jsdelivr")}],id:"abcjs-ext",code:j,inner:[]};return e.push(n),function(){const t=b();if("undefined"!=typeof window){if(S)return t;t||(S=!0,h.loadStyleSheet(w),y.loadStyle("abc-audio",".highlight{fill: #0a9ecc;} .abcjs-cursor{stroke: red;} .abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed{border: none;} .abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed svg path{fill: #6eaa49;}"),h.loadScript("ABCJS").then((t=>{x=y.interopDefault(window[t])})))}}(),new Promise((e=>{const o=[];t.forEach((t=>{o.push(C(t,n.inner))})),Promise.all(o).then((()=>{e(!0)}))}))}function O(){return[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll(`code.${v}.language-${v}`);return!!n.length&&(this.config={cssLink:h.getSrc(w)},A(n,t.scripts).then((()=>t)))}}]}function k(t,e,n,o){try{o&&(n=n.appendChild(t.ownerDocument.createElement("ul")));const i=n.appendChild(t.ownerDocument.createElement("li")).appendChild(t.ownerDocument.createElement("a"));e&&(i.appendChild(t.ownerDocument.createTextNode(e.textContent)),i.href="#"+e.id)}catch{}return n}function $(t,e,n,o){if(n.headingLevel>=o){let i=null;for(;n&&n.headingLevel>=o;)i=n,n=i.parentNode,i.parentNode=null,i.toc=null,i.headingLevel=null,i.preLevel=null;return n&&$(t,e,n,o),n}if(o>n.preLevel){for(n.preLevel++;o>n.preLevel;)n.toc=k(t,null,n.toc,!0),n.preLevel++;n.toc=k(t,e,n.toc,!0)}else{for(;n.preLevel>o;)n.toc=n.toc.parentNode,n.preLevel--;k(t,e,n.toc,!1)}return n.parentNode&&$(t,e,n.parentNode,o),n}function N(){const t=new DOMParser;return[{type:"output",filter:function(e){const n=t.parseFromString(e,"text/html"),o=void 0!==n.body?n.body:n;return function(t){let e=null,n=0,o=null,i=!1;const r=t.querySelectorAll("p,h1,h2,h3,h4,h5,h6");for(let a=0;r.length>a;a++)if(e=r[a],"[toc]"==e.textContent.trim().toLowerCase()){let r=t.ownerDocument.createElement("ul");r.className="showdown-toc",e.parentNode.replaceChild(r,e);let a={parentNode:null,toc:r,headingLevel:n,preLevel:0};if(o)if(n>o.headingLevel)a.parentNode=o;else{let t=o;for(;t.headingLevel>n;)t=t.parentNode;t&&(a.parentNode=n===t.headingLevel?t.parentNode:t)}o=a,i=!0}else if(e.tagName)switch(e.tagName){case"H1":case"H2":case"H3":case"H4":case"H5":case"H6":n=parseInt(e.tagName.substr(1)),o&&(o.preLevel||(o.preLevel=n),o=$(t,e,o,n))}for(;o;){let t=o;o=t.parentNode,t.parentNode=null,t.toc=null,t.headingLevel=null,t.preLevel=null}return i}(o)?o.innerHTML:e}}]}if("undefined"==typeof window)throw Error("The showdown viz extension can only be used in browser environment!");if(void 0===L)var L=window.Viz||void 0;const q=["circo","dot","neato","osage","twopi"];function P(){return!(void 0===L||!L||void 0===L.instance)}let D=!1;function T(t,e){if(P()){const n=e.id,o=e.className,i=e.data,r=e.element,a=e.element.dataset.lang;let u="dot";if(a){const t=JSON.parse(a);t&&t.engine&&-1!=q.indexOf(t.engine)&&(u=t.engine)}L.instance().then((e=>{const a=e.renderString(i,{format:"svg",engine:u});r.parentNode.outerHTML=`<div id="${n}" class="${o}">${a}</div>`,t(!0)}))}else setTimeout((()=>{T(t,e)}),10)}function M(t){return new Promise((e=>{const n=y.createElementMeta("viz",t);if(!n)return e(!1);T(e,n)}))}function B(t){return function(){const t=P();if("undefined"!=typeof window){if(D)return t;t||(D=!0,h.loadScript("Viz").then((t=>{L=y.interopDefault(window[t])})))}}(),new Promise((e=>{const n=[];t.forEach((t=>{n.push(M(t))})),Promise.all(n).then((()=>{e(!0)}))}))}function H(){return[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.dot.language-dot");return!!n.length&&B(n).then((()=>t))}}]}const _="vega";if("undefined"==typeof window)throw Error("The showdown vega extension can only be used in browser environment!");if(void 0===F)var F=window.vegaEmbed||void 0;function J(){return!(void 0===F||!F)}let z=!1;function R(t,e,n,o){const i=y.createElementMeta(_,t);if(!i)return Promise.resolve(!1);const r=JSON.stringify(e);JSON.stringify(JSON.parse(i.data));const a=i.container;let u=`(function() {\n let el = document.getElementById('${i.id}');\n if (el){\n `;if(i.lang&&i.lang.type&&"string"==typeof i.lang.type&&"javascript"==i.lang.type.toLowerCase())u+=" "+i.data;else{u+=` const option = JSON.parse(\`${JSON.stringify(JSON.parse(i.data))}\`);`}u+=`\n vegaEmbed(el, option, JSON.parse('${r}'));\n }\n })();`;return n.push({id:a,code:u}),new Promise((t=>{W(t,i)}))}function I(t,e,n,o){const i={outer:[{name:_,src:h.getSrc(_,"jsdelivr")},{name:"vegaLite",src:h.getSrc("vegaLite","jsdelivr")},{name:"vegaEmbed",src:h.getSrc("vegaEmbed","jsdelivr")}],inner:[]};return n.push(i),function(){const t=J();if("undefined"!=typeof window){if(z)return t;t||(z=!0,h.loadScript(_).then((()=>h.loadScript("vegaLite"))).then((()=>h.loadScript("vegaEmbed"))).then((t=>{F=y.interopDefault(window[t])})))}}(),new Promise((n=>{const r=[];t.forEach((t=>{r.push(R(t,o,i.inner))})),e.forEach((t=>{r.push(R(t,o,i.inner))})),Promise.all(r).then((()=>{n(!0)}))}))}function W(t,e){if(J()){return e.element.parentNode.outerHTML=`<div id="${e.container}" class="${e.className}"><div id="${e.id}"></div></div>`,t(!0)}setTimeout((()=>{W(t,e)}),10)}function V(t){const e=((t={})=>({actions:{editor:!1},theme:"vox",tooltip:!1,renderer:"svg",...t}))(t);return[{type:"output",config:e,filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.vega.language-vega"),o=e.querySelectorAll("code.vega-lite.language-vega-lite");return!(!n.length&&!o.length)&&I(n,o,t.scripts,this.config).then((()=>t))}}]}function G(){const t=new DOMParser;return[{type:"output",filter:function(e){const n=t.parseFromString(e,"text/html"),o=void 0!==n.body?n.body:n;return function(t){let e=null,n=null,o=!1;const i=t.querySelectorAll("p, li, h1, h2, h3, h4, h5, h6, div.paragraph");for(let t=0;i.length>t;t++)for(e=i[t],n=e.firstChild;n;){if(3===n.nodeType){let t=n.nodeValue.match(/^([\s\S]*?)([:-]-:)(?:[\s]?)([\s\S]*)$/);t&&(":-:"===t[2]?(n.nodeValue=t[3],e.className?e.className+=" align-center":e.className="align-center",o=!0):"--:"===t[2]&&(n.nodeValue=t[3],e.className?e.className+=" align-right":e.className="align-right",o=!0));break}n=n.nextSibling}return o}(o)?o.innerHTML:e}}]}var U={decimalsign:"."},K=0,X=1,Z=2,Q=3,Y=4,tt=5,et=6,nt=7,ot=8,it=9,rt=10,at={input:'"',tag:"mtext",output:"mbox",tex:null,ttype:rt},ut=[{input:"alpha",tag:"mi",output:"α",tex:null,ttype:K},{input:"beta",tag:"mi",output:"β",tex:null,ttype:K},{input:"chi",tag:"mi",output:"χ",tex:null,ttype:K},{input:"delta",tag:"mi",output:"δ",tex:null,ttype:K},{input:"Delta",tag:"mo",output:"Δ",tex:null,ttype:K},{input:"epsi",tag:"mi",output:"ε",tex:"epsilon",ttype:K},{input:"varepsilon",tag:"mi",output:"ɛ",tex:null,ttype:K},{input:"eta",tag:"mi",output:"η",tex:null,ttype:K},{input:"gamma",tag:"mi",output:"γ",tex:null,ttype:K},{input:"Gamma",tag:"mo",output:"Γ",tex:null,ttype:K},{input:"iota",tag:"mi",output:"ι",tex:null,ttype:K},{input:"kappa",tag:"mi",output:"κ",tex:null,ttype:K},{input:"lambda",tag:"mi",output:"λ",tex:null,ttype:K},{input:"Lambda",tag:"mo",output:"Λ",tex:null,ttype:K},{input:"lamda",tag:"mi",output:"lambda",tex:null,ttype:ot},{input:"Lamda",tag:"mi",output:"Lambda",tex:null,ttype:ot},{input:"mu",tag:"mi",output:"μ",tex:null,ttype:K},{input:"nu",tag:"mi",output:"ν",tex:null,ttype:K},{input:"omega",tag:"mi",output:"ω",tex:null,ttype:K},{input:"Omega",tag:"mo",output:"Ω",tex:null,ttype:K},{input:"phi",tag:"mi",output:"φ",tex:null,ttype:K},{input:"varphi",tag:"mi",output:"ϕ",tex:null,ttype:K},{input:"Phi",tag:"mo",output:"Φ",tex:null,ttype:K},{input:"pi",tag:"mi",output:"π",tex:null,ttype:K},{input:"Pi",tag:"mo",output:"Π",tex:null,ttype:K},{input:"psi",tag:"mi",output:"ψ",tex:null,ttype:K},{input:"Psi",tag:"mi",output:"Ψ",tex:null,ttype:K},{input:"rho",tag:"mi",output:"ρ",tex:null,ttype:K},{input:"sigma",tag:"mi",output:"σ",tex:null,ttype:K},{input:"Sigma",tag:"mo",output:"Σ",tex:null,ttype:K},{input:"tau",tag:"mi",output:"τ",tex:null,ttype:K},{input:"theta",tag:"mi",output:"θ",tex:null,ttype:K},{input:"vartheta",tag:"mi",output:"ϑ",tex:null,ttype:K},{input:"Theta",tag:"mo",output:"Θ",tex:null,ttype:K},{input:"upsilon",tag:"mi",output:"υ",tex:null,ttype:K},{input:"xi",tag:"mi",output:"ξ",tex:null,ttype:K},{input:"Xi",tag:"mo",output:"Ξ",tex:null,ttype:K},{input:"zeta",tag:"mi",output:"ζ",tex:null,ttype:K},{input:"*",tag:"mo",output:"⋅",tex:"cdot",ttype:K},{input:"**",tag:"mo",output:"∗",tex:"ast",ttype:K},{input:"***",tag:"mo",output:"⋆",tex:"star",ttype:K},{input:"//",tag:"mo",output:"/",tex:"/",ttype:K,val:!0,notexcopy:!0},{input:"\\\\",tag:"mo",output:"\\",tex:"backslash",ttype:K},{input:"setminus",tag:"mo",output:"\\",tex:null,ttype:K},{input:"xx",tag:"mo",output:"×",tex:"times",ttype:K},{input:"|><",tag:"mo",output:"⋉",tex:"ltimes",ttype:K},{input:"><|",tag:"mo",output:"⋊",tex:"rtimes",ttype:K},{input:"|><|",tag:"mo",output:"⋈",tex:"bowtie",ttype:K},{input:"-:",tag:"mo",output:"÷",tex:"div",ttype:K},{input:"divide",tag:"mo",output:"-:",tex:null,ttype:ot},{input:"@",tag:"mo",output:"∘",tex:"circ",ttype:K},{input:"o+",tag:"mo",output:"⊕",tex:"oplus",ttype:K},{input:"ox",tag:"mo",output:"⊗",tex:"otimes",ttype:K},{input:"o.",tag:"mo",output:"⊙",tex:"odot",ttype:K},{input:"sum",tag:"mo",output:"∑",tex:null,ttype:nt},{input:"prod",tag:"mo",output:"∏",tex:null,ttype:nt},{input:"^^",tag:"mo",output:"∧",tex:"wedge",ttype:K},{input:"^^^",tag:"mo",output:"⋀",tex:"bigwedge",ttype:nt},{input:"vv",tag:"mo",output:"∨",tex:"vee",ttype:K},{input:"vvv",tag:"mo",output:"⋁",tex:"bigvee",ttype:nt},{input:"nn",tag:"mo",output:"∩",tex:"cap",ttype:K},{input:"nnn",tag:"mo",output:"⋂",tex:"bigcap",ttype:nt},{input:"uu",tag:"mo",output:"∪",tex:"cup",ttype:K},{input:"uuu",tag:"mo",output:"⋃",tex:"bigcup",ttype:nt},{input:"overset",tag:"mover",output:"stackrel",tex:null,ttype:Z},{input:"underset",tag:"munder",output:"stackrel",tex:null,ttype:Z},{input:"!=",tag:"mo",output:"≠",tex:"ne",ttype:K},{input:":=",tag:"mo",output:":=",tex:null,ttype:K},{input:"lt",tag:"mo",output:"<",tex:null,ttype:K},{input:"gt",tag:"mo",output:">",tex:null,ttype:K},{input:"<=",tag:"mo",output:"≤",tex:"le",ttype:K},{input:"lt=",tag:"mo",output:"≤",tex:"leq",ttype:K},{input:"gt=",tag:"mo",output:"≥",tex:"geq",ttype:K},{input:">=",tag:"mo",output:"≥",tex:"ge",ttype:K},{input:"-<",tag:"mo",output:"≺",tex:"prec",ttype:K},{input:"-lt",tag:"mo",output:"≺",tex:null,ttype:K},{input:">-",tag:"mo",output:"≻",tex:"succ",ttype:K},{input:"-<=",tag:"mo",output:"⪯",tex:"preceq",ttype:K},{input:">-=",tag:"mo",output:"⪰",tex:"succeq",ttype:K},{input:"in",tag:"mo",output:"∈",tex:null,ttype:K},{input:"!in",tag:"mo",output:"∉",tex:"notin",ttype:K},{input:"sub",tag:"mo",output:"⊂",tex:"subset",ttype:K},{input:"sup",tag:"mo",output:"⊃",tex:"supset",ttype:K},{input:"sube",tag:"mo",output:"⊆",tex:"subseteq",ttype:K},{input:"supe",tag:"mo",output:"⊇",tex:"supseteq",ttype:K},{input:"-=",tag:"mo",output:"≡",tex:"equiv",ttype:K},{input:"~=",tag:"mo",output:"≅",tex:"stackrel{\\sim}{=}",notexcopy:!0,ttype:K},{input:"cong",tag:"mo",output:"~=",tex:null,ttype:ot},{input:"~~",tag:"mo",output:"≈",tex:"approx",ttype:K},{input:"prop",tag:"mo",output:"∝",tex:"propto",ttype:K},{input:"and",tag:"mtext",output:"and",tex:null,ttype:et},{input:"or",tag:"mtext",output:"or",tex:null,ttype:et},{input:"not",tag:"mo",output:"¬",tex:"neg",ttype:K},{input:"=>",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:K},{input:"implies",tag:"mo",output:"=>",tex:null,ttype:ot},{input:"if",tag:"mo",output:"if",tex:null,ttype:et},{input:"<=>",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:K},{input:"iff",tag:"mo",output:"<=>",tex:null,ttype:ot},{input:"AA",tag:"mo",output:"∀",tex:"forall",ttype:K},{input:"EE",tag:"mo",output:"∃",tex:"exists",ttype:K},{input:"_|_",tag:"mo",output:"⊥",tex:"bot",ttype:K},{input:"TT",tag:"mo",output:"⊤",tex:"top",ttype:K},{input:"|--",tag:"mo",output:"⊢",tex:"vdash",ttype:K},{input:"|==",tag:"mo",output:"⊨",tex:"models",ttype:K},{input:"(",tag:"mo",output:"(",tex:null,ttype:Y,val:!0},{input:")",tag:"mo",output:")",tex:null,ttype:tt,val:!0},{input:"[",tag:"mo",output:"[",tex:null,ttype:Y,val:!0},{input:"]",tag:"mo",output:"]",tex:null,ttype:tt,val:!0},{input:"left(",tag:"mo",output:"(",tex:"(",notexcopy:!0,ttype:Y,val:!0},{input:"right)",tag:"mo",output:")",tex:")",notexcopy:!0,ttype:tt,val:!0},{input:"left[",tag:"mo",output:"[",tex:"[",notexcopy:!0,ttype:Y,val:!0},{input:"right]",tag:"mo",output:"]",tex:"]",notexcopy:!0,ttype:tt,val:!0},{input:"{",tag:"mo",output:"{",tex:"lbrace",ttype:Y},{input:"}",tag:"mo",output:"}",tex:"rbrace",ttype:tt},{input:"|",tag:"mo",output:"|",tex:null,ttype:it,val:!0},{input:"|:",tag:"mo",output:"|",tex:"|",ttype:Y,notexcopy:!0,val:!0},{input:":|",tag:"mo",output:"|",tex:"|",ttype:tt,notexcopy:!0,val:!0},{input:":|:",tag:"mo",output:"|",tex:"|",ttype:K,notexcopy:!0,val:!0},{input:"(:",tag:"mo",output:"〈",tex:"langle",ttype:Y},{input:":)",tag:"mo",output:"〉",tex:"rangle",ttype:tt},{input:"<<",tag:"mo",output:"〈",tex:"langle",ttype:Y},{input:">>",tag:"mo",output:"〉",tex:"rangle",ttype:tt},{input:"{:",tag:"mo",output:"{:",tex:null,ttype:Y,invisible:!0},{input:":}",tag:"mo",output:":}",tex:null,ttype:tt,invisible:!0},{input:"int",tag:"mo",output:"∫",tex:null,ttype:K},{input:"dx",tag:"mi",output:"{:d x:}",tex:null,ttype:ot},{input:"dy",tag:"mi",output:"{:d y:}",tex:null,ttype:ot},{input:"dz",tag:"mi",output:"{:d z:}",tex:null,ttype:ot},{input:"dt",tag:"mi",output:"{:d t:}",tex:null,ttype:ot},{input:"oint",tag:"mo",output:"∮",tex:null,ttype:K},{input:"del",tag:"mo",output:"∂",tex:"partial",ttype:K},{input:"grad",tag:"mo",output:"∇",tex:"nabla",ttype:K},{input:"+-",tag:"mo",output:"±",tex:"pm",ttype:K},{input:"O/",tag:"mo",output:"∅",tex:"emptyset",ttype:K},{input:"oo",tag:"mo",output:"∞",tex:"infty",ttype:K},{input:"aleph",tag:"mo",output:"ℵ",tex:null,ttype:K},{input:"...",tag:"mo",output:"...",tex:"ldots",ttype:K},{input:":.",tag:"mo",output:"∴",tex:"therefore",ttype:K},{input:":'",tag:"mo",output:"∵",tex:"because",ttype:K},{input:"/_",tag:"mo",output:"∠",tex:"angle",ttype:K},{input:"/_\\",tag:"mo",output:"△",tex:"triangle",ttype:K},{input:"\\ ",tag:"mo",output:" ",tex:null,ttype:K,val:!0},{input:"frown",tag:"mo",output:"⌢",tex:null,ttype:K},{input:"%",tag:"mo",output:"%",tex:"%",ttype:K,notexcopy:!0},{input:"quad",tag:"mo",output:"  ",tex:null,ttype:K},{input:"qquad",tag:"mo",output:"    ",tex:null,ttype:K},{input:"cdots",tag:"mo",output:"⋯",tex:null,ttype:K},{input:"vdots",tag:"mo",output:"⋮",tex:null,ttype:K},{input:"ddots",tag:"mo",output:"⋱",tex:null,ttype:K},{input:"diamond",tag:"mo",output:"⋄",tex:null,ttype:K},{input:"square",tag:"mo",output:"□",tex:"boxempty",ttype:K},{input:"|__",tag:"mo",output:"⌊",tex:"lfloor",ttype:K},{input:"__|",tag:"mo",output:"⌋",tex:"rfloor",ttype:K},{input:"|~",tag:"mo",output:"⌈",tex:"lceil",ttype:K},{input:"lceiling",tag:"mo",output:"|~",tex:null,ttype:ot},{input:"~|",tag:"mo",output:"⌉",tex:"rceil",ttype:K},{input:"rceiling",tag:"mo",output:"~|",tex:null,ttype:ot},{input:"CC",tag:"mo",output:"ℂ",tex:"mathbb{C}",ttype:K,notexcopy:!0},{input:"NN",tag:"mo",output:"ℕ",tex:"mathbb{N}",ttype:K,notexcopy:!0},{input:"QQ",tag:"mo",output:"ℚ",tex:"mathbb{Q}",ttype:K,notexcopy:!0},{input:"RR",tag:"mo",output:"ℝ",tex:"mathbb{R}",ttype:K,notexcopy:!0},{input:"ZZ",tag:"mo",output:"ℤ",tex:"mathbb{Z}",ttype:K,notexcopy:!0},{input:"f",tag:"mi",output:"f",tex:null,ttype:X,func:!0,val:!0},{input:"g",tag:"mi",output:"g",tex:null,ttype:X,func:!0,val:!0},{input:"''",tag:"mo",output:"''",tex:null,val:!0},{input:"'''",tag:"mo",output:"'''",tex:null,val:!0},{input:"''''",tag:"mo",output:"''''",tex:null,val:!0},{input:"lim",tag:"mo",output:"lim",tex:null,ttype:nt},{input:"Lim",tag:"mo",output:"Lim",tex:null,ttype:nt},{input:"sin",tag:"mo",output:"sin",tex:null,ttype:X,func:!0},{input:"cos",tag:"mo",output:"cos",tex:null,ttype:X,func:!0},{input:"tan",tag:"mo",output:"tan",tex:null,ttype:X,func:!0},{input:"arcsin",tag:"mo",output:"arcsin",tex:null,ttype:X,func:!0},{input:"arccos",tag:"mo",output:"arccos",tex:null,ttype:X,func:!0},{input:"arctan",tag:"mo",output:"arctan",tex:null,ttype:X,func:!0},{input:"sinh",tag:"mo",output:"sinh",tex:null,ttype:X,func:!0},{input:"cosh",tag:"mo",output:"cosh",tex:null,ttype:X,func:!0},{input:"tanh",tag:"mo",output:"tanh",tex:null,ttype:X,func:!0},{input:"cot",tag:"mo",output:"cot",tex:null,ttype:X,func:!0},{input:"coth",tag:"mo",output:"coth",tex:null,ttype:X,func:!0},{input:"sech",tag:"mo",output:"sech",tex:null,ttype:X,func:!0},{input:"csch",tag:"mo",output:"csch",tex:null,ttype:X,func:!0},{input:"sec",tag:"mo",output:"sec",tex:null,ttype:X,func:!0},{input:"csc",tag:"mo",output:"csc",tex:null,ttype:X,func:!0},{input:"log",tag:"mo",output:"log",tex:null,ttype:X,func:!0},{input:"ln",tag:"mo",output:"ln",tex:null,ttype:X,func:!0},{input:"abs",tag:"mo",output:"abs",tex:null,ttype:X,notexcopy:!0,rewriteleftright:["|","|"]},{input:"norm",tag:"mo",output:"norm",tex:null,ttype:X,notexcopy:!0,rewriteleftright:["\\|","\\|"]},{input:"floor",tag:"mo",output:"floor",tex:null,ttype:X,notexcopy:!0,rewriteleftright:["\\lfloor","\\rfloor"]},{input:"ceil",tag:"mo",output:"ceil",tex:null,ttype:X,notexcopy:!0,rewriteleftright:["\\lceil","\\rceil"]},{input:"Sin",tag:"mo",output:"Sin",tex:null,ttype:X,func:!0},{input:"Cos",tag:"mo",output:"Cos",tex:null,ttype:X,func:!0},{input:"Tan",tag:"mo",output:"Tan",tex:null,ttype:X,func:!0},{input:"Arcsin",tag:"mo",output:"Arcsin",tex:null,ttype:X,func:!0},{input:"Arccos",tag:"mo",output:"Arccos",tex:null,ttype:X,func:!0},{input:"Arctan",tag:"mo",output:"Arctan",tex:null,ttype:X,func:!0},{input:"Sinh",tag:"mo",output:"Sinh",tex:null,ttype:X,func:!0},{input:"Cosh",tag:"mo",output:"Cosh",tex:null,ttype:X,func:!0},{input:"Tanh",tag:"mo",output:"Tanh",tex:null,ttype:X,func:!0},{input:"Cot",tag:"mo",output:"Cot",tex:null,ttype:X,func:!0},{input:"Sec",tag:"mo",output:"Sec",tex:null,ttype:X,func:!0},{input:"Csc",tag:"mo",output:"Csc",tex:null,ttype:X,func:!0},{input:"Log",tag:"mo",output:"Log",tex:null,ttype:X,func:!0},{input:"Ln",tag:"mo",output:"Ln",tex:null,ttype:X,func:!0},{input:"Abs",tag:"mo",output:"abs",tex:null,ttype:X,notexcopy:!0,rewriteleftright:["|","|"]},{input:"det",tag:"mo",output:"det",tex:null,ttype:X,func:!0},{input:"exp",tag:"mo",output:"exp",tex:null,ttype:X,func:!0},{input:"dim",tag:"mo",output:"dim",tex:null,ttype:K},{input:"mod",tag:"mo",output:"mod",tex:"text{mod}",ttype:K,notexcopy:!0},{input:"gcd",tag:"mo",output:"gcd",tex:null,ttype:X,func:!0},{input:"lcm",tag:"mo",output:"lcm",tex:"text{lcm}",ttype:X,func:!0,notexcopy:!0},{input:"lub",tag:"mo",output:"lub",tex:null,ttype:K},{input:"glb",tag:"mo",output:"glb",tex:null,ttype:K},{input:"min",tag:"mo",output:"min",tex:null,ttype:nt},{input:"max",tag:"mo",output:"max",tex:null,ttype:nt},{input:"uarr",tag:"mo",output:"↑",tex:"uparrow",ttype:K},{input:"darr",tag:"mo",output:"↓",tex:"downarrow",ttype:K},{input:"rarr",tag:"mo",output:"→",tex:"rightarrow",ttype:K},{input:"->",tag:"mo",output:"→",tex:"to",ttype:K},{input:">->",tag:"mo",output:"↣",tex:"rightarrowtail",ttype:K},{input:"->>",tag:"mo",output:"↠",tex:"twoheadrightarrow",ttype:K},{input:">->>",tag:"mo",output:"⤖",tex:"twoheadrightarrowtail",ttype:K},{input:"|->",tag:"mo",output:"↦",tex:"mapsto",ttype:K},{input:"larr",tag:"mo",output:"←",tex:"leftarrow",ttype:K},{input:"harr",tag:"mo",output:"↔",tex:"leftrightarrow",ttype:K},{input:"rArr",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:K},{input:"lArr",tag:"mo",output:"⇐",tex:"Leftarrow",ttype:K},{input:"hArr",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:K},{input:"sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:X},{input:"root",tag:"mroot",output:"root",tex:null,ttype:Z},{input:"frac",tag:"mfrac",output:"/",tex:null,ttype:Z},{input:"/",tag:"mfrac",output:"/",tex:null,ttype:Q},{input:"stackrel",tag:"mover",output:"stackrel",tex:null,ttype:Z},{input:"_",tag:"msub",output:"_",tex:null,ttype:Q},{input:"^",tag:"msup",output:"^",tex:null,ttype:Q},{input:"cancel",tag:"menclose",output:"cancel",tex:null,ttype:X},{input:"Sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:X},{input:"hat",tag:"mover",output:"^",tex:null,ttype:X,acc:!0},{input:"bar",tag:"mover",output:"¯",tex:"overline",ttype:X,acc:!0},{input:"vec",tag:"mover",output:"→",tex:null,ttype:X,acc:!0},{input:"tilde",tag:"mover",output:"~",tex:null,ttype:X,acc:!0},{input:"dot",tag:"mover",output:".",tex:null,ttype:X,acc:!0},{input:"ddot",tag:"mover",output:"..",tex:null,ttype:X,acc:!0},{input:"overarc",tag:"mover",output:"⏜",tex:"stackrel{\\frown}",notexcopy:!0,ttype:X,acc:!0},{input:"overparen",tag:"mover",output:"⏜",tex:"stackrel{\\frown}",notexcopy:!0,ttype:X,acc:!0},{input:"ul",tag:"munder",output:"̲",tex:"underline",ttype:X,acc:!0},{input:"ubrace",tag:"munder",output:"⏟",tex:"underbrace",ttype:X,acc:!0},{input:"obrace",tag:"mover",output:"⏞",tex:"overbrace",ttype:X,acc:!0},{input:"text",tag:"mtext",output:"text",tex:null,ttype:rt},{input:"mbox",tag:"mtext",output:"mbox",tex:null,ttype:rt},at,{input:"color",tag:"mstyle",ttype:Z},{input:"bb",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"bb",tex:"mathbf",ttype:X,notexcopy:!0},{input:"mathbf",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"mathbf",tex:null,ttype:X},{input:"sf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"sf",tex:"mathsf",ttype:X,notexcopy:!0},{input:"mathsf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"mathsf",tex:null,ttype:X},{input:"bbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"bbb",tex:"mathbb",ttype:X,notexcopy:!0},{input:"mathbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"mathbb",tex:null,ttype:X},{input:"cc",tag:"mstyle",atname:"mathvariant",atval:"script",output:"cc",tex:"mathcal",ttype:X,notexcopy:!0},{input:"mathcal",tag:"mstyle",atname:"mathvariant",atval:"script",output:"mathcal",tex:null,ttype:X},{input:"tt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"tt",tex:"mathtt",ttype:X,notexcopy:!0},{input:"mathtt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"mathtt",tex:null,ttype:X},{input:"fr",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"fr",tex:"mathfrak",ttype:X,notexcopy:!0},{input:"mathfrak",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"mathfrak",tex:null,ttype:X}];function st(t,e){return t.input>e.input?1:-1}var lt,ct,pt,dt=[];function mt(t,e){var n;n="\\"==t.charAt(e)&&"\\"!=t.charAt(e+1)&&" "!=t.charAt(e+1)?t.slice(e+1):t.slice(e);for(var o=0;n.length>o&&32>=n.charCodeAt(o);o+=1);return n.slice(o)}function ft(t,e,n){if(0==n){var o,i;for(n=-1,o=t.length;o>n+1;)e>t[i=n+o>>1]?n=i:o=i;return o}for(var r=n;t.length>r&&e>t[r];r++);return r}function gt(t){for(var e,n,o,i=0,r="",a=!0,u=1;t.length>=u&&a;u++)n=t.slice(0,u),i=ft(dt,n,i),dt.length>i&&t.slice(0,dt[i].length)==dt[i]&&(e=i,u=(r=dt[i]).length),a=dt.length>i&&t.slice(0,dt[i].length)>=dt[i];if(ct=pt,""!=r)return pt=ut[e].ttype,ut[e];pt=K,i=1,n=t.slice(0,1);for(var s=!0;n>="0"&&"9">=n&&t.length>=i;)n=t.slice(i,i+1),i++;if(n==U.decimalsign&&(n=t.slice(i,i+1))>="0"&&"9">=n)for(s=!1,i++;n>="0"&&"9">=n&&t.length>=i;)n=t.slice(i,i+1),i++;return s&&i>1||i>2?(n=t.slice(0,i-1),o="mn"):(i=2,o=("A">(n=t.slice(0,1))||n>"Z")&&("a">n||n>"z")?"mo":"mi"),"-"==n&&ct==Q?(pt=Q,{input:n,tag:o,output:n,ttype:X,func:!0,val:!0}):{input:n,tag:o,output:n,ttype:K,val:!0}}function ht(t){var e;if("{"==t.charAt(0)&&"}"==t.charAt(t.length-1)){var n=0;"\\left"==(e=t.substr(1,5))?"("==(e=t.charAt(6))||"["==e||"{"==e?n=7:"\\lbrace"==(e=t.substr(6,7))&&(n=13):"("!=(e=t.charAt(1))&&"["!=e||(n=2),n>0&&("\\right)}"==(e=t.substr(t.length-8))||"\\right]}"==e||"\\right.}"==e?t=(t="{"+t.substr(n)).substr(0,t.length-8)+"}":"\\rbrace}"==e&&(t=(t="{"+t.substr(n)).substr(0,t.length-14)+"}"))}return t}function yt(t){var e;return e="boolean"==typeof t.val&&t.val?"":"\\",null==t.tex?e+t.input:e+t.tex}function vt(t){var e,n,o,i,r="";if(null==(e=gt(t=mt(t,0)))||e.ttype==tt&&lt>0)return[null,t];switch(e.ttype==ot&&(e=gt(t=e.output+mt(t,e.input.length))),e.ttype){case nt:case K:t=mt(t,e.input.length);var a=yt(e);return"\\"==a.charAt(0)||"mo"==e.tag?[a,t]:["{"+a+"}",t];case Y:lt++,o=xt(t=mt(t,e.input.length),!0),lt--;var u=0;return"\\right"==o[0].substr(0,6)&&(")"==(l=o[0].charAt(6))||"]"==l||"}"==l?u=6:"."==l?u=7:"\\rbrace"==(l=o[0].substr(6,7))&&(u=13)),u>0?(o[0]=o[0].substr(u),n="boolean"==typeof e.invisible&&e.invisible?"{"+o[0]+"}":"{"+yt(e)+o[0]+"}"):n="boolean"==typeof e.invisible&&e.invisible?"{\\left."+o[0]+"}":"{\\left"+yt(e)+o[0]+"}",[n,o[1]];case rt:return e!=at&&(t=mt(t,e.input.length)),-1==(i="{"==t.charAt(0)?t.indexOf("}"):"("==t.charAt(0)?t.indexOf(")"):"["==t.charAt(0)?t.indexOf("]"):e==at?t.slice(1).indexOf('"')+1:0)&&(i=t.length)," "==(l=t.slice(1,i)).charAt(0)&&(r="\\ "),r+="\\text{"+l+"}"," "==l.charAt(l.length-1)&&(r+="\\ "),[r,t=mt(t,i+1)];case X:return null==(o=vt(t=mt(t,e.input.length)))[0]?["{"+yt(e)+"}",t]:"boolean"==typeof e.func&&e.func?"^"==(l=t.charAt(0))||"_"==l||"/"==l||"|"==l||","==l||1==e.input.length&&e.input.match(/\w/)&&"("!=l?["{"+yt(e)+"}",t]:[n="{"+yt(e)+"{"+o[0]+"}}",o[1]]:(o[0]=ht(o[0]),"sqrt"==e.input?["\\sqrt{"+o[0]+"}",o[1]]:"cancel"==e.input?["\\cancel{"+o[0]+"}",o[1]]:void 0!==e.rewriteleftright?["{\\left"+e.rewriteleftright[0]+o[0]+"\\right"+e.rewriteleftright[1]+"}",o[1]]:"boolean"==typeof e.acc&&e.acc?[yt(e)+"{"+o[0]+"}",o[1]]:["{"+yt(e)+"{"+o[0]+"}}",o[1]]);case Z:if(null==(o=vt(t=mt(t,e.input.length)))[0])return["{"+yt(e)+"}",t];o[0]=ht(o[0]);var s=vt(o[1]);return null==s[0]?["{"+yt(e)+"}",t]:(s[0]=ht(s[0]),[r="color"==e.input?"{\\color{"+o[0].replace(/[\{\}]/g,"")+"}"+s[0]+"}":"root"==e.input?"{\\sqrt["+o[0]+"]{"+s[0]+"}}":"{"+yt(e)+"{"+o[0]+"}{"+s[0]+"}}",s[1]]);case Q:return t=mt(t,e.input.length),[e.output,t];case et:return t=mt(t,e.input.length),["{\\quad\\text{"+e.input+"}\\quad}",t];case it:lt++,o=xt(t=mt(t,e.input.length),!1),lt--;var l="";return"|"==(l=o[0].charAt(o[0].length-1))&&","!==t.charAt(0)?[n="{\\left|"+o[0]+"}",o[1]]:[n="{\\mid}",t];default:return t=mt(t,e.input.length),["{"+yt(e)+"}",t]}}function wt(t){var e,n,o,i,r;if(n=gt(t=mt(t,0)),i=(r=vt(t))[0],(e=gt(t=r[1])).ttype==Q&&"/"!=e.input){if((r=vt(t=mt(t,e.input.length)))[0]=null==r[0]?"{}":ht(r[0]),t=r[1],"_"==e.input)if("^"==(o=gt(t)).input){var a=vt(t=mt(t,o.input.length));a[0]=ht(a[0]),t=a[1],i="{"+i,i+="_{"+r[0]+"}",i+="^{"+a[0]+"}",i+="}"}else i+="_{"+r[0]+"}";else i=i+"^{"+r[0]+"}";void 0!==n.func&&n.func&&((o=gt(t)).ttype==Q||o.ttype==tt||1>=n.input.length&&o.ttype!=Y||(i="{"+i+(r=wt(t))[0]+"}",t=r[1]))}return[i,t]}function xt(t,e){var n,o,i,r,a="",u=!1;do{o=(i=wt(t=mt(t,0)))[0],(n=gt(t=i[1])).ttype==Q&&"/"==n.input?((i=wt(t=mt(t,n.input.length)))[0]=null==i[0]?"{}":ht(i[0]),t=i[1],o="\\frac{"+(o=ht(o))+"}",a+=o+="{"+i[0]+"}",n=gt(t)):null!=o&&(a+=o)}while((n.ttype!=tt&&(n.ttype!=it||e)||0==lt)&&null!=n&&""!=n.output);if(n.ttype==tt||n.ttype==it){var s=a.length;if(s>2&&"{"==a.charAt(0)&&a.indexOf(",")>0){var l=a.charAt(s-2);if(")"==l||"]"==l){var c=a.charAt(6);if("("==c&&")"==l&&"}"!=n.output||"["==c&&"]"==l){var p="",d=[];d.push(0);var m=!0,f=0,g=[];g[0]=[0];var h=0,y=0,v="";for(r=1;s-1>r;r++)a.charAt(r)==c&&f++,a.charAt(r)==l&&0==--f&&","==a.charAt(r+2)&&"{"==a.charAt(r+3)&&(d.push(r+2),g[h=r+2]=[r+2]),"["!=a.charAt(r)&&"("!=a.charAt(r)&&"{"!=a.charAt(r)||y++,"]"!=a.charAt(r)&&")"!=a.charAt(r)&&"}"!=a.charAt(r)||y--,","==a.charAt(r)&&1==y&&g[h].push(r),0>y&&(h==r+1?r++:m=!1);d.push(s);var w=-1;if(0==f&&d.length>0&&m)for(r=0;d.length-1>r;r++){if(r>0&&(p+="\\\\"),0==r)if(1==g[d[r]].length)var x=[a.substr(d[r]+7,d[r+1]-d[r]-15)];else{x=[a.substring(d[r]+7,g[d[r]][1])];for(var b=2;g[d[r]].length>b;b++)x.push(a.substring(g[d[r]][b-1]+1,g[d[r]][b]));x.push(a.substring(g[d[r]][g[d[r]].length-1]+1,d[r+1]-8))}else if(1==g[d[r]].length)x=[a.substr(d[r]+8,d[r+1]-d[r]-16)];else{for(x=[a.substring(d[r]+8,g[d[r]][1])],b=2;g[d[r]].length>b;b++)x.push(a.substring(g[d[r]][b-1]+1,g[d[r]][b]));x.push(a.substring(g[d[r]][g[d[r]].length-1]+1,d[r+1]-8))}for(b=x.length-1;b>=0;b--)"{\\mid}"==x[b]?(0==r&&(v="|"+v),x.splice(b,1)):0==r&&(v="c"+v);w>0&&x.length!=w?m=!1:-1==w&&(w=x.length),p+=x.join("&")}p="\\begin{array}{"+v+"} "+p+"\\end{array}",m&&(a=p)}}}t=mt(t,n.input.length),"boolean"==typeof n.invisible&&n.invisible?(a+="\\right.",u=!0):(a+=o="\\right"+yt(n),u=!0)}return lt>0&&!u&&(a+="\\right."),[a,t]}function bt(t){return lt=0,null==(t=(t=(t=t.replace(/(&nbsp;|\u00a0|&#160;)/g,"")).replace(/&gt;/g,">")).replace(/&lt;/g,"<")).match(/\S/)?"":xt(t.replace(/^\s+/g,""),!1)[0]}if(function(){var t,e=ut.length;for(t=0;e>t;t++)!ut[t].tex||"boolean"==typeof ut[t].notexcopy&&ut[t].notexcopy||ut.push({input:ut[t].tex,tag:ut[t].tag,output:ut[t].output,ttype:ut[t].ttype,acc:ut[t].acc||!1});!function(){var t;for(ut.sort(st),t=0;ut.length>t;t++)dt[t]=ut[t].input}()}(),"undefined"==typeof window)throw Error("The showdown katex extension can only be used in browser environment!");if(void 0===St)var St=window.katex||void 0;if("undefined"==typeof renderMathInElement)var jt=window.renderMathInElement||void 0;let Et=0;function Ct(){return!(void 0===jt||!jt||void 0===St||!St)}let At=!1;const Ot="katexCSS";function kt(t){const e=Ct();if("undefined"!=typeof window){if(At)return e;if(!e)return At=!0,h.loadStyleSheet(Ot),h.loadScript("katex").then((t=>(St=y.interopDefault(window[t]),h.loadScript("renderMathInElement")))).then((e=>{jt=y.interopDefault(window[e]),"function"==typeof t&&t&&t(jt)})).catch((t=>{})),e}return"function"==typeof t&&t&&t(jt),e}function $t(t,e){if(Ct()){const n=e.className,o=e.input,i=e.data,r=e.cssLink,a=e.options,u=e.element.ownerDocument;let s="";if(i instanceof Array)i.forEach((t=>{if(""===t)s+="<br>";else{const e=St.renderToString(t,a);s+=r?`<div title="${o}" class="${n} css-katex" data-css="${r}">${e}</div>`:`<div title="${o}" class="${n}">${e}</div>`}}));else{const t=St.renderToString(i,a);s=r?`<div title="${o}" class="${n} css-katex" data-css="${r}">${t}</div>`:`<div title="${o}" class="${n}">${t}</div>`}e.element.parentNode.outerHTML=s,--Et,Et||jt(u.body,a),t(!0)}else setTimeout((()=>{$t(t,e)}),10)}function Nt(t,e,n){return new Promise((o=>{let i;const r=y.createElementMeta("katex",t,(t=>{let e;i=t;const o=t.split(/\n[ \f\r\t\v]*\n/);return o.length>1?(e=[],o.forEach((t=>{""!==(t=t.trim())&&(t=n?bt(t):t),e.push(t)}))):e=n?bt(i):i,e}));if(!r)return o(!1);r.cssLink=h.getSrc(Ot),r.input=i,r.options=e,$t(o,r)}))}function Lt(t){return t.replace(/[-[\]/{}()*+?.\\$^|]/g,"\\$&")}const qt=(t={})=>{let e={displayMode:!0,throwOnError:!1,errorColor:"#ff0000",delimiters:null,...t};function n(t,e){return!(!t||"object"!=typeof t||!t.hasOwnProperty(e))}function o(t,e,o){return!!(n(t,e)&&n(t[e],o)&&(i=t[e][o],Array.isArray(i)&&i.length))&&(t[e][o].forEach((t=>{t.display="inline"!==o,"asciimath"===e&&(t.asciimath=!0)})),t[e][o]);var i}return Array.isArray(e.delimiters)?e.delimiters.length||(e.delimiters=[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{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:!1},{left:"@@",right:"@@",display:!0,asciimath:!0},{left:"\\$",right:"\\$",display:!1,asciimath:!0}]):e.delimiters=[].concat(o(e.delimiters,"texmath","display")||[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{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}]).concat(o(e.delimiters,"texmath","inline")||[{left:"\\(",right:"\\)",display:!1}]).concat(o(e.delimiters,"asciimath","display")||[{left:"@@",right:"@@",display:!0,asciimath:!0}]).concat(o(e.delimiters,"asciimath","inline")||[{left:"\\$",right:"\\$",display:!1,asciimath:!0}]),e};function Pt(t){let e=0;const n=qt(t),o=n.delimiters.map((({left:t,right:n,display:o,asciimath:i})=>({test:RegExp(`${Lt(t)}(.+?)${Lt(n)}`,"g"),replacer:(t,n)=>(++e,i&&(n=bt(n)),o?`\\[${n}\\]`:`\\(${n}\\)`)})));return[{type:"output",config:n,filter:function(t){e=0;const i=t.wrapper;if(!i)return!1;o.length&&i.querySelectorAll(":not(code):not(pre)").forEach((t=>{[...t.childNodes].filter((t=>"#text"===t.nodeName&&t.nodeValue.trim())).forEach((t=>{const e=o.reduce(((t,{test:e,replacer:n})=>t.replace(e,n)),t.nodeValue);t.nodeValue=e}))}));const r=i.querySelectorAll("code.latex.language-latex"),a=i.querySelectorAll("code.asciimath.language-asciimath");if(!r.length&&!a.length){if(e>0){this.config.cssLink=h.getSrc(Ot);const u=this;function s(t,e){Ct()?(e(i.ownerDocument.body,u.config),t(!0)):setTimeout((()=>{s(t,e)}),10)}return new Promise((t=>{kt((e=>{s(t,e)}))})).then((()=>t))}return!1}return n.cssLink=h.getSrc(Ot),function(t,e,n){return Et=t.length+e.length,kt(),new Promise((o=>{const i=[];t.forEach((t=>{i.push(Nt(t,n,!1))})),e.forEach((t=>{i.push(Nt(t,n,!0))})),Promise.all(i).then((()=>{o(!0)}))}))}(r,a,this.config).then((()=>t))}}]}const Dt="echarts";if("undefined"==typeof window)throw Error(`The showdown ${Dt} extension can only be used in browser environment!`);if(void 0===Tt)var Tt=window.echarts||void 0;function Mt(){return!!Tt}let Bt=!1;function Ht(t,e){if(Mt()){const n=e.id,o=e.container,i=e.className,r=e.element.parentNode;e.lang?(e.lang.width||(e.lang.width="400px"),e.lang.height||(e.lang.height="300px")):e.lang={width:"400px",height:"300px"};return r.outerHTML=`<div id="${o}" class="${i}" style="${`width:${e.lang.width}; height:${e.lang.height};`}"><div id="${n}" style="width:100%;height:100%;display:inline-block"></div></div>`,t(!0)}setTimeout((()=>{Ht(t,e)}),20)}function _t(t,e,n){const o=y.createElementMeta(Dt,t);if(!o)return Promise.resolve(!1);n={...n,ssr:!1},n=JSON.stringify(n);let i=`(function() {\n let el = document.getElementById('${o.id}');\n if (el){\n let chart = echarts.getInstanceByDom(el);\n if (!chart) {\n el.innerHTML = '';\n }\n let config = JSON.parse('${n}');\n chart = echarts.init(el, null, config);\n `;if(o.lang&&o.lang.type&&"string"==typeof o.lang.type&&"javascript"==o.lang.type.toLowerCase())i+=" "+o.data;else{i+=` const option = JSON.parse(\`${JSON.stringify(JSON.parse(o.data))}\`);`}i+="\n chart.setOption(option);\n }\n })();";return e.push({id:o.container,code:i}),new Promise((t=>{Ht(t,o)}))}function Ft(t,e,n){const o={outer:[{name:Dt,src:h.getSrc(Dt,"jsdelivr")}],inner:[]};return e.push(o),function(){const t=Mt();if("undefined"!=typeof window){if(Bt)return t;t||(Bt=!0,h.loadScript(Dt).then((t=>{Tt=y.interopDefault(window[t])})))}}(),new Promise((e=>{const i=[];t.forEach((t=>{i.push(_t(t,o.inner,n))})),Promise.all(i).then((()=>{e(!0)}))}))}function Jt(t){return[{type:"output",config:((t={})=>({renderer:"svg",ssr:!1,tooltip:{show:!0},animation:!0,useDirtyRect:!1,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll(`code.${Dt}.language-${Dt}`);return!!n.length&&Ft(n,t.scripts,this.config).then((()=>t))}}]}const zt="mermaid";if("undefined"==typeof window)throw Error("The showdown mermaid extension can only be used in browser environment!");if(void 0===Rt)var Rt=window.mermaid||void 0;function It(){return!(void 0===Rt||!Rt)}let Wt=!1;function Vt(t,e){if(It()){const n=e.className,o=e.element.parentNode;Rt.render(e.id,e.data).then((e=>{o.outerHTML=`<div class="${n}">${e.svg}</div>`,t(!0)}))}else setTimeout((()=>{Vt(t,e)}),10)}function Gt(t){return new Promise((e=>{const n=y.createElementMeta(zt,t);if(!n)return e(!1);Vt(e,n)}))}function Ut(t,e){return function(t){const e=It();if("undefined"!=typeof window){if(Wt)return e;if(!e)return Wt=!0,h.loadScript(zt).then((e=>{(Rt=y.interopDefault(window[e])).initialize(t)})),e}Rt.initialize(t)}(e),new Promise((e=>{const n=[];t.forEach((t=>{n.push(Gt(t))})),Promise.all(n).then((()=>{e(!0)}))}))}function Kt(t){return[{type:"output",config:((t={})=>({theme:"forest",logLevel:4,startOnLoad:!1,arrowMarkerAbsolute:!1,flowchart:{curve:"basis"},gantt:{axisFormat:"%m/%d/%Y"},sequence:{actorMargin:50},...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.mermaid.language-mermaid");return!!n.length&&Ut(n,this.config).then((()=>t))}}]}function Xt(t,e,n){var o=(3&t)<<4|e>>4,i=(15&e)<<2|n>>6,r=63&n,a="";return a+=Zt(63&t>>2),a+=Zt(63&o),a+=Zt(63&i),a+=Zt(63&r)}function Zt(t){return 10>t?String.fromCharCode(48+t):26>(t-=10)?String.fromCharCode(65+t):26>(t-=26)?String.fromCharCode(97+t):0==(t-=26)?"-":1==t?"_":"?"}function Qt(t){var e=t.charCodeAt(0);return"_"===t?63:"-"===t?62:97>e?65>e?48>e?"?":e-48:e-55:e-61}function Yt(t){var e=Qt(t[0]),n=Qt(t[1]),o=Qt(t[2]);return[e<<2|n>>4&63,n<<4&240|o>>2&15,o<<6&192|63&Qt(t[3])]}function te(t){return function(t){for(var e="",n=0;t.length>n;n+=3)e+=n+2==t.length?Xt(t.charCodeAt(n),t.charCodeAt(n+1),0):n+1==t.length?Xt(t.charCodeAt(n),0,0):Xt(t.charCodeAt(n),t.charCodeAt(n+1),t.charCodeAt(n+2));return e}(e.deflateRawSync(t,{level:9}).toString("binary"))}function ee(t){return""+e.inflateRawSync(Buffer.from(function(t){var e="",n=0;for(n=0;t.length>n;n+=4){var o=Yt(t.substring(n,n+4));e+=String.fromCharCode(o[0]),e+=String.fromCharCode(o[1]),e+=String.fromCharCode(o[2])}return e}(t),"binary"))}const ne={encodeuml:function(t){const e="@startuml",n="@enduml";return te(`${e}${(t.split(e)[1]+"").split(n)[0]||""}${n}`)},decodeuml:function(t){return ee(t)}},oe="img";let ie=0;function re(t,e){return ie=t.length,new Promise((n=>{const o=[];t.forEach((t=>{o.push(function(t,e){return new Promise((n=>{const o=t.dataset.lang,i=o?JSON.parse(o):null;let r="";if(i){if("boolean"==typeof i.codeblock&&i.codeblock||"string"==typeof i.codeblock&&"true"===i.codeblock.toLowerCase())return n(!1);i.align&&("center"===i.align?r="diagram-center":"right"===i.align&&(r="diagram-right"))}const a=t.textContent.trim(),u=(t.classList.length>0?t.classList[0]:"")+(t.className&&r?" ":"")+r,s=e.imageFormat;if("svg"!==s){const o=window&&window.location.protocol,i=("http:"===o||"https:"===o?"//":"https://")+e.umlWebSite,r=s!==oe?"."+s:"",l=ne.encodeuml(a);return t.parentNode.outerHTML=`<div class="${u}"><img src='${i}/${s}/${l}${r}' alt=''></img></div>`,n(!0)}{const o="plantuml-"+Date.now()+"-"+Math.floor(1e4*Math.random());if("function"==typeof e.svgRender&&e.svgRender)e.svgRender(o,u,a,ie).then((e=>{t.parentNode.outerHTML=`<div id="${o}" class="${u}">${e}</div>`,n(!0)}));else if("undefined"!=typeof window&&window.fetch&&window.dispatchEvent){const i=window&&window.location.protocol,r=("http:"===i||"https:"===i?"//":"https://")+e.umlWebSite,l=s!==oe?"."+s:"",c=ne.encodeuml(a);window.fetch(`${r}/${s}/${c}${l}`).then((t=>{if(t.ok)return t.text()})).then((e=>{t.parentNode.outerHTML=`<div id="${o}" class="${u}">${e}</div>`,n(!0)}))}}}))}(t,e))})),Promise.all(o).then((()=>{n(!0)}))}))}function ae(t){return[{type:"output",config:((t={})=>({umlWebSite:"www.plantuml.com/plantuml",imageFormat:oe,svgRender:null,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.plantuml.language-plantuml");return!!n.length&&re(n,this.config).then((()=>t))}}]}const ue="railroad",se="railroadCSS";if("undefined"==typeof window)throw Error("The showdown railroad extension can only be used in browser environment!");let le=!1;function ce(){return le}let pe,de=!1;function me(t,e){if(ce()){const n=e.id,o=e.className,i=e.cssLink,r=window.eval(e.data).format(),a=e.element.ownerDocument;return e.element.parentNode.outerHTML=i?`<div id="${n}" class="${o} css-railroad" data-css="${i}"></div>`:`<div id="${n}" class="${o}"></div>`,r.addTo(a.getElementById(n)),t(!0)}setTimeout((()=>{me(t,e)}),10)}function fe(t){return new Promise((e=>{const n=y.createElementMeta(ue,t);if(!n)return e(!1);n.cssLink=h.getSrc(se),me(e,n)}))}function ge(t){return function(){const t=ce();if("undefined"!=typeof window){if(de)return t;t||(de=!0,h.loadStyleSheet(se),h.loadScript(ue).then((()=>{le=!0})))}}(),new Promise((e=>{const n=[];t.forEach((t=>{n.push(fe(t))})),Promise.all(n).then((()=>{e(!0)}))}))}function he(){return[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.railroad.language-railroad");return!!n.length&&(this.config={cssLink:h.getSrc(se)},ge(n).then((()=>t)))}}]}if("undefined"==typeof window)throw Error("The showdown sequence extension can only be used in browser environment!");if(void 0===ye)var ye=window.Raphael||void 0;if("undefined"!=typeof window&&window.Diagram&&(pe=window.Diagram,window.Diagram.Signal))var ve=window.Diagram;const we=["simple","hand"];if(void 0===ve&&"undefined"!=typeof window)ve=window.SequenceJS;function xe(){return!!ye}function be(){return xe()&&!!ve}let Se=!1;const je="sequenceCSS";function Ee(t){const e=t.dataset.lang,n=e?JSON.parse(e):null;let o="";if(n){if("boolean"==typeof n.codeblock&&n.codeblock||"string"==typeof n.codeblock&&"true"===n.codeblock.toLowerCase())return;n.align&&("center"===n.align?o="diagram-center":"right"===n.align&&(o="diagram-right"))}const i=function(){const t=be();if("undefined"!=typeof window){if(Se)return t;t||(Se=!0,h.loadStyleSheet(je),h.loadScript("WebFont").then((()=>xe()?"Raphael":h.loadScript("Raphael"))).then((t=>(ye=y.interopDefault(window[t]),h.loadScript("Snap")))).then((()=>h.loadScript("underscore"))).then((()=>(!pe&&window.Diagram&&(pe=window.Diagram),h.loadScript("sequence")))).then((()=>{ve=window.Diagram,window.SequenceJS=ve,pe&&(window.Diagram=pe)})))}return t}(),r=h.getSrc(je),a=t.textContent.trim(),u="js-sequence"+(o?" ":"")+o,s="sequence-"+Date.now()+"-"+Math.floor(1e4*Math.random());t.id=s,r&&(t.className=t.className+(t.className?" ":"")+"css-sequence",t.dataset.css=r),!i&&"undefined"!=typeof window&&window.dispatchEvent?Promise.resolve(s).then((t=>{window.dispatchEvent(new CustomEvent("sequence",{detail:{id:t,className:u,data:a,langattr:e,cssLink:r}}))})):"undefined"!=typeof window&&window.dispatchEvent&&window.dispatchEvent(new CustomEvent("sequence",{detail:{id:s,className:u,data:a,langattr:e,cssLink:r}}))}function Ce(t){if(be()){const e=t.id,n=t.className,o=t.data,i=t.cssLink;let r="hand";const a=t.langattr;if(a){const t=JSON.parse(a);t&&t.theme&&-1!=we.indexOf(t.theme)&&(r=t.theme)}let u=window.document.getElementById(e);if(u){u.parentNode.outerHTML=i?`<div id="${e}" class="${n} css-sequence" data-css="${i}"></div>`:`<div id="${e}" class="${n}"></div>`,u=window.document.getElementById(e);return void ve.parse(o).drawSVG(u||e,{theme:r})}}setTimeout((()=>{Ce(t)}),10)}function Ae(){let t=!1;const e=new DOMParser;return[{type:"output",filter:function(n){const o=e.parseFromString(n,"text/html"),i=void 0!==o.body?o.body:o,r=i.querySelectorAll("code.sequence.language-sequence");return r.length&&(t||"undefined"!=typeof window&&window.dispatchEvent&&(t=!0,window.addEventListener("sequence",(t=>{t.detail&&Ce(t.detail)}))),this.config={cssLink:h.getSrc(je)}),function(t){return!!t.length&&(t.forEach((t=>{Ee(t)})),!0)}(r)?i.innerHTML:n}}]}if("undefined"==typeof window)throw Error("The showdown wavedrom extension can only be used in browser environment!");if(void 0===Oe)var Oe=window.WaveDrom||void 0;let ke=0,$e=0;function Ne(){return!!Oe}let Le=!1;function qe(t,e){if(Ne()){const n=e.index,o=e.id,i=e.data;let r=e.element;return r.parentNode.outerHTML=y.renderCacheElement(r.ownerDocument,o+n,e.className,(t=>{const e=window.eval(`(${i})`);Oe.RenderWaveForm(n,e,o);const r=document.getElementById("WaveDrom_Display_"+n);if(t!=r)for(;r.childNodes.length;)t.appendChild(r.removeChild(r.childNodes[0]))})),t(!0)}setTimeout((()=>{qe(t,e)}),10)}function Pe(t){return new Promise((e=>{const n=t.dataset.lang,o=n?JSON.parse(n):null;let i="";if(o){if("boolean"==typeof o.codeblock&&o.codeblock||"string"==typeof o.codeblock&&"true"===o.codeblock.toLowerCase())return;o.align&&("center"===o.align?i="diagram-center":"right"===o.align&&(i="diagram-right"))}const r=t.textContent.trim(),a=(t.classList.length>0?t.classList[0]:"")+(t.className&&i?" ":"")+i,u=$e;++$e,--ke,ke||($e=0);const s="WaveDrom_Display_";t.id=s+u;qe(e,{element:t,index:u,id:s,className:a,data:r})}))}function De(t,e){return function(t){const e=Ne();Le||e||(Le=!0,"undefined"!=typeof window&&h.loadScript({WaveDromSkin:t}).then((()=>h.loadScript("WaveDrom"))).then((t=>{Oe=y.interopDefault(window[t])})))}(e),new Promise((e=>{const n=[];ke=t.length,t.forEach((t=>{n.push(Pe(t))})),Promise.all(n).then((()=>{e(!0)}))}))}function Te(t){return[{type:"output",config:((t={})=>({skin:"default",...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.wavedrom.language-wavedrom");return!!n.length&&(u("Begin render wavedrom elements."),De(n,this.config.skin).then((()=>(u("End render wavedrom elements."),t))))}}]}function Me(){return[{type:"lang",filter:(t,e)=>t.replace(/^\[\^([\d\w]+)\]:\s*((\n+(\s{2,4}|\t).+)+)$/gm,((t,n,o,i,r)=>`<div class="footnote" id="footnote-${n}"><a href="#footnote-${n}"><sup>[${n}]</sup></a>:${e.makeHtml(o.replace(RegExp("^"+r,"gm"),""))}</div>`))},{type:"lang",filter:t=>t.replace(/^\[\^([\d\w]+)\]:( |\n)((.+\n)*.+)$/gm,((t,e,n,o)=>`<small class="footnote" id="footnote-${e}"><a href="#footnote-${e}"><sup>[${e}]</sup></a>: ${o}</small>`))},{type:"lang",filter:t=>t.replace(/\[\^([\d\w]+)\]/m,((t,e)=>`<a href="#footnote-${e}"><sup>[${e}]</sup></a>`))}]}function Be(){return[{type:"lang",filter:(t,e)=>t.replace(/(?:^|\n)(?: {0,3})(:::+)(?: *)([\S]+)(?:[ \t]*)([^\s][\S\t ]*)?\n([\s\S]*?)\n(?: {0,3})\1(?:[ \t]*)\n/g,(function(t,n,o,i,r){if(o){let t=o.split("-");t.length>1?t.forEach((function(t,e,n){e>0&&(n[e]=n[e-1]+"-"+t)})):t.unshift("container"),o=t.join(" ")}return r&&(r=e.makeHtml(r)),`<div class="showdown-container ${o}">${i=i?`<p class="container-title">${i}</p>`:""}${r}</div>`}))}]}if("undefined"==typeof window)throw Error("The showdown flowchart extension can only be used in browser environment!");if(void 0===He)var He=window.Raphael||void 0;if(void 0===_e)var _e=window.flowchart||void 0;function Fe(){return!(void 0===He||!He||void 0===_e||!_e)}let Je=!1;function ze(){const t=Fe();if("undefined"!=typeof window){if(Je)return t;if(!t){if(Je=!0,!He)return h.loadScript("Raphael").then((t=>(He=y.interopDefault(window[t]),h.loadScript("flowchart")))).then((t=>{_e=y.interopDefault(window[t])})),t;h.loadScript("flowchart").then((t=>{_e=y.interopDefault(window[t])}))}}return t}function Re(t,e){if(Fe()){const n=e.data,o=e.options;return e.element.parentNode.outerHTML=y.renderCacheElement(e.element.ownerDocument,e.id,e.className,(t=>{_e.parse(n).drawSVG(t,o)})),void t(!0)}setTimeout((()=>{Re(t,e)}),10)}function Ie(t,e){return new Promise((n=>{const o=y.createElementMeta("flowchart",t);if(!o)return n(!1);o.options=e,Re(n,o)}))}function We(t){const e=((t={})=>({"line-width":3,maxWidth:3,"line-length":50,"text-margin":10,"font-size":14,font:"normal","font-family":"Helvetica","font-weight":"normal","font-color":"black","line-color":"black","element-color":"black",fill:"white","yes-text":"yes","no-text":"no","arrow-end":"block",scale:1,symbols:{start:{"font-color":"red","element-color":"green",fill:"yellow"},end:{class:"end-element"}},flowstate:{past:{fill:"#CCCCCC","font-size":12},current:{fill:"yellow","font-color":"red","font-weight":"bold"},future:{fill:"#FFFF99"},request:{fill:"blue"},invalid:{fill:"#444444"},approved:{fill:"#58C4A3","font-size":12,"yes-text":"APPROVED","no-text":"n/a"},rejected:{fill:"#C45879","font-size":12,"yes-text":"n/a","no-text":"REJECTED"}},...t}))(t);return[{type:"output",config:e,filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.flowchart.language-flowchart"),o=e.querySelectorAll("code.flow.language-flow");return!(!n.length&&!o.length)&&function(t,e,n){return ze(),new Promise((o=>{const i=[];t.forEach((t=>{i.push(Ie(t,n))})),e.forEach((t=>{i.push(Ie(t,n))})),Promise.all(i).then((()=>{o(!0)}))}))}(n,o,this.config).then((()=>t))}}]}const Ve=(t={})=>({flavor:"github",...t}),Ge=(t,e,n)=>{if(!t||!e||"undefined"==typeof document)return!1;let o=document.getElementById(t);o||(n?"string"==typeof n&&(n=document.querySelector(n)):n=document.body,o=n);const i="script-"+t;let r=document.querySelector(`${o.tagName} > #${i}`);return r||(r=document.createElement("script"),r.id=i,r.type="text/javascript",r.text=e,o.appendChild(r)),!0};function Ue(t,e){return new Promise(((n,o)=>{t&&e&&"undefined"!=typeof document||o("Args is invaild!");const i="script-"+t.toLowerCase();let r=document.getElementById(i);if(r)return n(t);const a=document.head||document.getElementsByTagName("head")[0];r=document.createElement("script"),r.src=e,r.id=i,r.onload=()=>{n(t)},a.appendChild(r)}))}const Ke=["github","ghost","vanilla","original","allon"],Xe=["default","forest","dark","neutral"],Ze=["excel","ggplot2","quartz","vox","dark"],Qe=["canvas","svg"],Ye=["svg","png","jpg"],tn={showdown:t,converter:null,defaultOptions:{showdown:Ve(),plantuml:{imageFormat:"svg"},mermaid:{theme:"default"},katex:{},vega:{theme:"vox"}},defaultExtensions:{},defaultAsyncExtensions:{},markdownDecodeFilter:function(t){return""},initDefaultOptions:function(){this.defaultOptions||(this.defaultOptions={showdown:{},plantuml:{},mermaid:{},katex:{},vega:{}})},setFlavor:function(t){this.showdown.setFlavor(t),this.converter&&this.converter.setFlavor(t)},addOptions:function(t){for(const e in t)"flavor"!==e&&(this.showdown.setOption(e,t[e]),this.converter&&this.converter.setOption(e,t[e]))},addExtension:function(e,n){if(this.removeExtension(e),"string"==typeof e)try{t.extension(e,n),this.converter&&this.converter.addExtension(e)}catch(t){}},removeExtension:function(e){if("string"==typeof e){if(this.converter){let n=null;try{n=t.extension(e)}catch(t){}if(!n)return;this.converter.removeExtension(n)}t.removeExtension(e)}},addAsyncExtension:function(e,n){if(this.removeAsyncExtension(e),"string"==typeof e)try{t.asyncExtension(e,n),this.converter&&this.converter.addAsyncExtension(e)}catch(t){}},removeAsyncExtension:function(e){if("string"==typeof e){if(this.converter){let n=null;try{n=t.asyncExtension(e)}catch(t){}if(!n)return;this.converter.removeAsyncExtension(n)}t.removeAsyncExtension(e)}},setCDN:function(t,e,n){"string"==typeof t&&t&&h.setCDN(t,e,n)},setShowdownFlavor:function(t){this.initDefaultOptions(),t&&(-1===Ke.indexOf(t)&&(t="github"),this.defaultOptions.showdown.flavor=t,this.setFlavor(t))},setShowdownOptions:function(t){return this.initDefaultOptions(),"object"==typeof t&&t||(t={}),this.defaultOptions.showdown=Object.assign(this.defaultOptions.showdown||{},t),this.setShowdownFlavor(this.defaultOptions.showdown.flavor),this.addOptions(this.defaultOptions.showdown),this.defaultOptions.showdown},setPlantumlOptions:function(t){this.initDefaultOptions(),"object"==typeof t&&t||(t={}),this.defaultOptions.plantuml=Object.assign(this.defaultOptions.plantuml||{},t);const e=this.defaultOptions.plantuml.imageFormat;return e&&-1===Ye.indexOf(e)&&(this.defaultOptions.plantuml.imageFormat="png"),this.converter&&this.addAsyncExtension("showdown-plantuml",ae(this.defaultOptions.plantuml)),this.defaultOptions.plantuml},setMermaidOptions:function(t){this.initDefaultOptions(),"object"==typeof t&&t||(t={}),this.defaultOptions.mermaid=Object.assign(this.defaultOptions.mermaid||{},t);const e=this.defaultOptions.mermaid.theme;return e&&-1===Xe.indexOf(e)&&(this.defaultOptions.mermaid.theme="default"),this.converter&&this.addAsyncExtension("showdown-mermaid",Kt(this.defaultOptions.mermaid)),this.defaultOptions.mermaid},setKatexOptions:function(t){return this.initDefaultOptions(),"object"==typeof t&&t||(t={}),this.defaultOptions.katex=Object.assign(this.defaultOptions.katex||{},t),this.converter&&this.addAsyncExtension("showdown-katex",Pt(this.defaultOptions.katex)),this.defaultOptions.katex},setVegaOptions:function(t){this.initDefaultOptions(),"object"==typeof t&&t||(t={}),this.defaultOptions.vega=Object.assign(this.defaultOptions.vega||{},t);const e=this.defaultOptions.vega.theme;e&&-1===Ze.indexOf(e)&&(this.defaultOptions.vega.theme="vox");const n=this.defaultOptions.vega.renderer;return n&&-1===Qe.indexOf(n)&&(this.defaultOptions.vega.renderer="canvas"),this.converter&&this.addAsyncExtension("showdown-vega",V(this.defaultOptions.vega)),this.defaultOptions.vega},init:function(e){if(this.converter){let t={};if(t="boolean"==typeof e&&e?{option:!0,extension:!0}:e,"object"==typeof t){if(t.hasOwnProperty("option")&&t.option){const t=Ve(this.defaultOptions&&this.defaultOptions.showdown||{});this.addOptions(t)}t.hasOwnProperty("extension")&&t.extension&&(this.addAsyncExtension("showdown-plantuml",ae(this.defaultOptions.plantuml)),this.addAsyncExtension("showdown-mermaid",Kt(this.defaultOptions.mermaid)),this.addAsyncExtension("showdown-vega",V(this.defaultOptions.vega)))}}else{const e=Ve(this.defaultOptions&&this.defaultOptions.showdown||{}),n=((e,n={})=>{const o={"showdown-toc":N,"showdown-align":G,"showdown-footnotes":Me,"showdown-container":Be,"showdown-sequence":Ae,...n};let i=[];for(let e in o)o.hasOwnProperty(e)&&(t.extension(e,o[e]),i.push(e));return i})(0,this.defaultExtensions),o=((e,n={})=>{const o=e&&e.mermaid||{},i=e&&e.katex||{},r=e&&e.vega||{},a={"showdown-plantuml":ae(e&&e.plantuml||{}),"showdown-mermaid":Kt(o),"showdown-katex":Pt(i),"showdown-flowchart":We,"showdown-viz":H,"showdown-vega":V(r),"showdown-wavedrom":Te,"showdown-railroad":he,"showdown-abc":O,"showdown-echarts":Jt,...n};let u=[];for(let e in a)a.hasOwnProperty(e)&&(t.asyncExtension(e,a[e]),u.push(e));return u})(this.defaultOptions,this.defaultAsyncExtensions);this.setFlavor(e.flavor),this.converter=new t.Converter({extensions:n}).initConvertExtObj(e.flavor,o),this.addOptions(e)}return this},makeHtml:function(e,n){let o="";if("object"==typeof e){if("string"==typeof e.content)if("string"==typeof e.type)if("zip"===e.type)o=this.zDecode(e.content);else o=this.markdownDecodeFilter(e)||e.content;else o=e.content}else o=e;if(this.converter&&o){function i(e,n,o){const i=e.querySelector(n);let r="";if(i)r=i.dataset.css;else{let e;try{e=t.extension(o)}catch{}if(!e)try{e=t.asyncExtension(o)}catch{}if(e)if(Array.isArray(e)){for(var a=0;e.length>a;++a)if(e[a].hasOwnProperty("config")&&e[a].config.hasOwnProperty("cssLink")){r=e[a].config.cssLink;break}}else"object"==typeof e&&e.hasOwnProperty("config")&&e.config.hasOwnProperty("cssLink")&&(r=e.config.cssLink)}return r}function r(t){const e=t.wrapper;return!!e&&new Promise((o=>{const r=i(e,".css-abc","showdown-abc"),a=i(e,".css-katex","showdown-katex"),u=i(e,".css-railroad","showdown-railroad"),s=i(e,".css-sequence","showdown-sequence");return t.cssTypes={hasAbc:!!r,hasKatex:!!a,hasRailroad:!!u,hasSequence:!!s,css:{abc:r,katex:a,railroad:u,sequence:s}},"function"==typeof n&&n&&n(t.cssTypes),o(t)}))}return this.converter.asyncMakeHtml(o,r).then((t=>(o=`<div class='showdowns'>${t.html}</div>`,{html:o,scripts:t.scripts})))}return Promise.reject(o?"Converter is invaild.":"Content is empty.")},completedHtml:function(e,n){t.helper.isArray(e)||(e=[e]);const o=function(e,n){if(!e.inner)return!e.code||Ge(e.id,e.code,n);if(t.helper.isArray(e.inner)||(e.inner=[e.inner]),e.code&&((t,e,n)=>{if(!t||!e||"undefined"==typeof document)return!1;let o=document.getElementById(t);o||(n?"string"==typeof n&&(n=document.querySelector(n)):n=document.body,o=n);const i="script-"+t;let r=document.querySelector(`${o.tagName} > #${i}`);r||(r=document.createElement("script"),r.id=i,r.type="text/javascript",r.text=e,o.insertBefore(r,o.children[0]))})(e.id,e.code,n),e.inner.length>0)for(let t=0;e.inner.length>t;++t){const o=e.inner[t];Ge(o.id,o.code,n)}return!0};return new Promise(((i,r)=>{"string"==typeof n&&(n=document.querySelector(n));for(let i=0;e.length>i;++i){const a=e[i];if(a.outer){t.helper.isArray(a.outer)||(a.outer=[a.outer]);let e=a.outer[0],i=Ue(e.name,e.src);for(let t=1;a.outer.length>t;++t)i=i.then((()=>(e=a.outer[t],Ue(e.name,e.src))));i.then((()=>{o(a,n)}))}else if(!o(a,n))return r("Args is invaild!")}i(!0)}))},zDecode:function(t){return""+e.inflateRawSync(Buffer.from(t,"base64"))},zEncode:function(t){return e.deflateRawSync(t,{level:9}).toString("base64")}};module.exports=tn;
6
+ "use strict";var t=require("showdown"),e=require("zlib");t.ConverterExtObj=function(e,n){let o=[],i=e;function r(e,n){if(n=n||null,t.helper.isString(e)&&(n=t.helper.stdExtName(e),e=t.asyncExtension(n),t.helper.isUndefined(e)))throw Error('Extension "'+n+'" could not be loaded. It was either not found or is not a valid aync extension.');if("function"==typeof e&&(e=e()),t.helper.isArray(e)||(e=[e]),t.validateExtension(e))for(var i=0;e.length>i;++i)if("output"===e[i].type)o.push(e[i])}n&&t.helper.forEach(n,r),this.addAsyncExtension=function(t,e){r(t,e=e||null)},this.removeAsyncExtension=function(e){t.helper.isArray(e)||(e=[e]);for(var n=0;e.length>n;++n){const t=e[n];for(var i=0;o.length>i;++i)o[i]===t&&o.splice(i,1)}},this.getAsyncExtensions=function(){return o},this.getCurrFlavor=function(){return i},this.setCurrFlavor=function(t){i=t}},t.Converter.prototype.initConvertExtObj=function(e,n){return this.extObj=new t.ConverterExtObj(e,n),this.resetOptions=function(e){e=e||{};const n=t.getOptions();let o=this.getOptions();for(var i in n)n.hasOwnProperty(i)&&(o[i]=n[i]);if("object"==typeof e)for(var r in e)e.hasOwnProperty(r)&&(o[r]=e[r])},this.setFlavor=function(e){let n=t.getFlavorOptions(e);if(t.helper.isUndefined(n))return;this.extObj.setCurrFlavor(e);let o=t.getDefaultOptions(!0);for(var i in o)o.hasOwnProperty(i)&&(this.getOptions()[i]=o[i]);for(var i in n)n.hasOwnProperty(i)&&(this.getOptions()[i]=n[i])},this.getFlavor=function(){return this.extObj.getCurrFlavor()},this.addAsyncExtension=function(t,e){this.extObj.addAsyncExtension(t,e)},this.removeAsyncExtension=function(t){this.extObj.removeAsyncExtension(t)},this.removeExtension=function(e){t.helper.isArray(e)||(e=[e]);const n=this.getAllExtensions();let o=n.language,i=n.output;for(var r=0;e.length>r;++r){const t=e[r];for(var a=0;o.length>a;++a)o[a]===t&&o.splice(a,1);for(var s=0;i.length>s;++s)i[s]===t&&i.splice(s,1)}},this.asyncMakeHtml=function(t,e){const n=this.makeHtml(t),o=this.extObj.getAsyncExtensions();if(!o.length)return Promise.resolve({html:n});var i={outputs:o,converter:this};const r=(new DOMParser).parseFromString(n,"text/html"),a=void 0!==r.body?r.body:r,s=this.getOptions();let u=Promise.resolve({wrapper:a,options:s,globals:i,scripts:[]});return o.forEach(function(t){u=u.then(e=>{const n=t.filter(e);return n||e})}),u.then(t=>{if("function"==typeof e&&e){const n=e(t);if(n instanceof Promise)return n.then(t=>({html:t.wrapper.innerHTML,extras:t.extras,scripts:t.scripts}))}return{html:t.wrapper.innerHTML,scripts:t.scripts}})},this},t.subParser("githubCodeBlocks",function(e,n,o){return n.ghCodeBlocks?(e=o.converter._dispatch("githubCodeBlocks.before",e,n,o),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*?)(?:[ \t]*?)((?:\{[\S\t ]*\}|\[[\S\t ]*\])?)\n([\s\S]*?)\n(?: {0,3})\1/g,function(e,i,r,a,s){var u=n.omitExtraWLInCodeBlocks?"":"\n";return s=t.subParser("encodeCode")(s,n,o),s="<pre><code"+(r?' class="'+r+" language-"+r+'"':"")+(a?` data-lang='${a}'`:"")+">"+(s=(s=(s=t.subParser("detab")(s,n,o)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+u+"</code></pre>",s=t.subParser("hashBlock")(s,n,o),"\n\n¨G"+(o.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"})).replace(/¨0/,""),o.converter._dispatch("githubCodeBlocks.after",e,n,o)):e}),t.subParser("tables",function(e,n,o){if(!n.tables)return e;function i(t){return/^:[ \t]*--*$/.test(t)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(t)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(t)?' style="text-align:center;"':""}function r(e,i){var r="";return e=e.trim(),(n.tablesHeaderId||n.tableHeaderId)&&(r=' id="'+e.replace(/ /g,"_").toLowerCase()+'"'),"<th"+r+i+">"+(e=t.subParser("spanGamut")(e,n,o))+"</th>\n"}function a(e,i,r,a,s){if(n.tablesMerge){var u=function(t,e,o,i){if(i){if(!n.tablesRowspan||"^^"!==i||!e)return;for(var r=e-1;r>=0;--r)if(t[r][o]){if("^^"!==t[r][o])return t[r][o]=t[r][o].replace(/rowspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(t,n,o){return n+' rowspan="'+(e-r+1)+'"'+o}),i;if(0===r)return t[r][o]='<td rowspan="'+(e-r+1)+'"></td>\n',i}else for(var a=o-1;a>=0;-a){if(t[r+1][a]&&"^^"!==t[r+1][a])return;if(t[r][a]){if(!t[r+1][a])return;return t[r][a]=t[r][a].replace(/rowspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(t,n,o){return n+' rowspan="'+(e-r+1)+'"'+o}),i}}}else if(o)for(a=o-1;a>=0;--a)if(t[e][a]){if("^^"!==t[e][a])return t[e][a]=t[e][a].replace(/colspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(t,e,n){return e+' colspan="'+(o-a+1)+'"'+n}),i;for(r=e-1;r>=0;--r){if(t[r][a+1])return;if("^^"!==t[r][a])return t[r][a]=t[r][a].replace(/colspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(t,e,n){return e+' colspan="'+(o-a+1)+'"'+n}),i}}else if(0===a)return t[e][a]='<td colspan="'+(o-a+1)+'"></td>\n',i}(e,i,r,a);if(!t.helper.isUndefined(u))return u}return a=a.trim(),"<td"+s+">"+t.subParser("spanGamut")(a,n,o)+"</td>\n"}function s(e,s){var u,l=e.split("\n");for(u=0;l.length>u;++u)/^ {0,3}\|/.test(l[u])&&(l[u]=l[u].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(l[u])&&(l[u]=l[u].replace(/\|[ \t]*$/,"")),l[u]=t.subParser("codeSpans")(l[u],n,o);var c=[],p=[],d=[],m=[],h=[];if(s)for(c=l[0].split("|").map(function(t){return t.trim()}),l.shift(),u=0;c.length>u;++u)m.push(i(c[u]));else{var f=l[0].split("|").map(function(t){return t.trim()});if(c=l[1].split("|").map(function(t){return t.trim()}),l.shift(),l.shift(),c.length>f.length)return e;for(u=0;c.length>u;++u)m.push(i(c[u]));for(u=0;f.length>u;++u)t.helper.isUndefined(m[u])&&(m[u]=""),d.push(r(f[u],m[u]))}for(u=0;l.length>u;++u)""!==l[u].trim()&&p.push(l[u].split("|").map(function(t){var e=t.trim();return""===e&&t.length>0?t:e}));for(u=0;p.length>u;++u){var g=[];h.push(g);for(var y=0;m.length>y;++y)t.helper.isUndefined(p[u][y])&&(p[u][y]=""),g.push(a(h,u,y,p[u][y],m[y]))}return function(t,e,o){var i="<table>\n",r=e.length;if(t.length){i+="<thead>\n<tr>\n";for(var a=0;t.length>a;++a)i+=t[a];i+="</tr>\n</thead>\n"}for(i+="<tbody>\n",a=0;o.length>a;++a){i+="<tr>\n";for(var s=0;r>s;++s)n.tablesMerge&&"^^"===o[a][s]||(i+=o[a][s]);i+="</tr>\n"}return i+"</tbody>\n</table>\n"}(d,m,h)}function u(t){return s(t,!1)}function l(t){return s(t,!0)}return e=(e=(e=(e=o.converter._dispatch("tables.before",e,n,o)).replace(/\\(\|)/g,t.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,u)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,u),n.tablesHeaderless&&(e=(e=e.replace(/^ {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,l)).replace(/^ {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,l)),e=o.converter._dispatch("tables.after",e,n,o)});let n="vanilla",o={github:{ghCompatibleHeaderId:!1,underline:!0,rawHeaderId:!0,tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0},ghost:{tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0},allOn:{tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0}},i={};t.asyncExtension=function(e,n){if(!t.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=t.helper.stdExtName(e),t.helper.isUndefined(n)){if(!i.hasOwnProperty(e))throw Error("Async Extension named "+e+" is not registered!");return i[e]}"function"==typeof n&&(n=n()),t.helper.isArray(n)||(n=[n]),t.validateExtension(n)&&(i[e]=n)},t.removeAsyncExtension=function(e){e=t.helper.stdExtName(e),delete i[e]},t.resetAsyncExtensions=function(){i={}},t.removeExtension=function(e){e=t.helper.stdExtName(e),delete t.getAllExtensions[e]};const r=t.setFlavor,a=t.getFlavorOptions;function s(t){return`${(new Date).Format("yyyy-MM-dd HH:mm:ss.S")} ${t}`}t.setFlavor=function(e){try{if(r(e),n=e,!o.hasOwnProperty(e))return}catch{if(!o.hasOwnProperty(e))return;t.resetOptions(),n=e}var i=o[e];for(var a in i)i.hasOwnProperty(a)&&(t.getOptions()[a]=i[a])},t.getFlavor=function(){return n},t.setFlavorOptions=function(t,e){e&&(o[t]=Object.assign(o[t]||{},e))},t.getFlavorOptions=function(e){const n=a(e);return t.helper.isUndefined(n)?o.hasOwnProperty(e)?o[e]:void 0:o.hasOwnProperty(e)?Object.assign(n,o[e]):n},Date.prototype.Format=function(t){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"H+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};t||(t="yyyy-MM-dd hh:mm:ss.S");const n=/(y+)/.exec(t);n&&(t=t.replace(n[1],(this.getFullYear()+"").substring(4-n[1].length)));for(const n in e){const o=RegExp("("+n+")").exec(t);if(o){let i=e[n];1==o[1].length?i=("000"+e[n]).substring((""+e[n]).length):2==o[1].length&&(i=("00"+e[n]).substring((""+e[n]).length)),t=t.replace(o[1],i)}}return t};let u="jsdelivr",l="file:"===document.location.protocol?"https://":document.location.protocol+"//",c="",p="";const d={local:{ABCJS:"../node_modules/abcjs/dist/abcjs-basic.js",ABCJSCSS:"../node_modules/abcjs/abcjs-audio.css",echarts:"../node_modules/echarts/dist/echarts.js",Viz:"../node_modules/@viz-js/viz/lib/viz-standalone.js",Raphael:"../node_modules/raphael/raphael.min.js",flowchart:"../dist/diagrams/flowchart/flowchart.min.js",mermaid:"../node_modules/mermaid/dist/mermaid.js",katex:"../node_modules/katex/dist/katex.min.js",katexCSS:"../node_modules/katex/dist/katex.min.css",renderMathInElement:"../node_modules/katex/dist/contrib/auto-render.js",railroad:"../node_modules/railroad-diagrams/railroad-diagrams.js",railroadCSS:"../node_modules/railroad-diagrams/railroad-diagrams.css",Snap:"../node_modules/snapsvg/dist/snap.svg-min.js",WebFont:"../node_modules/webfontloader/webfontloader.js",underscore:"../node_modules/underscore/underscore-min.js",sequence:"../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.js",sequenceCSS:"../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.css",WaveDrom:"../node_modules/wavedrom/wavedrom.min.js",WaveDromSkin:{default:"../node_modules/wavedrom/skins/default.js",lowkey:"../node_modules/wavedrom/skins/lowkey.js",narrow:"../node_modules/wavedrom/skins/narrow.js"},vega:"../node_modules/vega/build/vega.min.js",vegaLite:"../node_modules/vega-lite/build/vega-lite.min.js",vegaEmbed:"../node_modules/vega-embed/build/vega-embed.min.js"},cdnjs:{ABCJS:l+"cdnjs.cloudflare.com/ajax/libs/abcjs/6.5.1/abcjs-basic-min.js",ABCJSCSS:l+"cdn.jsdelivr.net/npm/abcjs@6/abcjs-audio.css",echarts:l+"cdnjs.cloudflare.com/ajax/libs/echarts/5.6.0/echarts.min.js",Viz:l+"cdn.jsdelivr.net/npm/@viz-js/viz@3/lib/viz-standalone.js",Raphael:l+"cdnjs.cloudflare.com/ajax/libs/raphael/2.3.0/raphael.min.js",flowchart:l+"cdnjs.cloudflare.com/ajax/libs/flowchart/1.18.0/flowchart.min.js",mermaid:l+"cdnjs.cloudflare.com/ajax/libs/mermaid/11.6.0/mermaid.min.js",katex:l+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.22/katex.min.js",katexCSS:l+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.22/katex.min.css",renderMathInElement:l+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.22/contrib/auto-render.js",railroad:l+"cdnjs.cloudflare.com/ajax/libs/railroad-diagrams/1.0.0/railroad-diagrams.js",railroadCSS:l+"cdnjs.cloudflare.com/ajax/libs/railroad-diagrams/1.0.0/railroad-diagrams.css",Snap:l+"cdnjs.cloudflare.com/ajax/libs/snap.svg/0.5.1/snap.svg-min.js",WebFont:l+"cdnjs.cloudflare.com/ajax/libs/webfont/1.6.28/webfontloader.js",underscore:l+"cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.7/underscore-min.js",sequence:l+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.js",sequenceCSS:l+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.css",WaveDrom:l+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/wavedrom.min.js",WaveDromSkin:{default:l+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/default.js",lowkey:l+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/lowkey.js",narrow:l+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/narrow.js"},vega:l+"cdnjs.cloudflare.com/ajax/libs/vega/6.1.2/vega.min.js",vegaLite:l+"cdnjs.cloudflare.com/ajax/libs/vega-lite/6.1.0/vega-lite.min.js",vegaEmbed:l+"cdnjs.cloudflare.com/ajax/libs/vega-embed/7.0.2/vega-embed.min.js"},jsdelivr:{ABCJS:l+"cdn.jsdelivr.net/npm/abcjs@6/dist/abcjs-basic-min.js",ABCJSCSS:l+"cdn.jsdelivr.net/npm/abcjs@6/abcjs-audio.css",echarts:l+"cdn.jsdelivr.net/npm/echarts@5/dist/echarts.min.js",Viz:l+"cdn.jsdelivr.net/npm/@viz-js/viz@3/lib/viz-standalone.js",Raphael:l+"cdn.jsdelivr.net/npm/raphael@2/raphael.min.js",flowchart:l+"cdnjs.cloudflare.com/ajax/libs/flowchart/1.18.0/flowchart.min.js",mermaid:l+"cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js",katex:l+"cdn.jsdelivr.net/npm/katex@0/dist/katex.min.js",katexCSS:l+"cdn.jsdelivr.net/npm/katex@0/dist/katex.min.css",renderMathInElement:l+"cdn.jsdelivr.net/npm/katex@0/dist/contrib/auto-render.js",railroad:l+"cdn.jsdelivr.net/npm/railroad-diagrams@1/railroad-diagrams.js",railroadCSS:l+"cdn.jsdelivr.net/npm/railroad-diagrams@1/railroad-diagrams.css",Snap:l+"cdn.jsdelivr.net/npm/snapsvg@0/dist/snap.svg-min.js",WebFont:l+"cdn.jsdelivr.net/npm/webfontloader@1/webfontloader.js",underscore:l+"cdn.jsdelivr.net/npm/underscore@1/underscore-min.js",sequence:l+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.js",sequenceCSS:l+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.css",WaveDrom:l+"cdn.jsdelivr.net/npm/wavedrom@3/wavedrom.min.js",WaveDromSkin:{default:l+"cdn.jsdelivr.net/npm/wavedrom@3/skins/default.js",lowkey:l+"cdn.jsdelivr.net/npm/wavedrom@3/skins/lowkey.js",narrow:l+"cdn.jsdelivr.net/npm/wavedrom@3/skins/narrow.js"},vega:l+"cdn.jsdelivr.net/npm/vega@6/build/vega.min.js",vegaLite:l+"cdn.jsdelivr.net/npm/vega-lite@6/build/vega-lite.min.js",vegaEmbed:l+"cdn.jsdelivr.net/npm/vega-embed@7/build/vega-embed.min.js"}};function m(){return u}function h(t){if("object"==typeof t){const e=Object.keys(t)[0],n=t[e];if("string"==typeof n)return e+"-"+n}return t}function f(t,e,n){if(void 0!==e&&e||(e=m()),d.hasOwnProperty(e)){const o=d[e];let i="";if("object"==typeof t){const e=Object.keys(t)[0],n=t[e];o[e]&&"string"==typeof n&&n&&o[e][n]&&(i=o[e][n])}else o[t]&&(i=o[t]);i&&(n=i.substring(0,l.length)===l?i:"../dist/"===i.substring(0,8)?p+i:c+i)}return n}const g={setCDN:function(t,e,n){t in d&&(u=t),"string"==typeof e&&e&&(c=e),"string"==typeof n&&n&&(p=n)},getCDN:m,getSrc:f,loadScript:function(t,e){return new Promise((n,o)=>{t&&"undefined"!=typeof document||o("Args is invaild!"),void 0===e&&(e=""),(e=f(t,e))||o(t+" script source invaild!");const i="script-"+h(t).toLowerCase();let r=document.getElementById(i);if(r)return n(t);const a=document.head||document.getElementsByTagName("head")[0];r=document.createElement("script"),r.src=e,r.id=i,r.onload=()=>{n(t)},a.appendChild(r)})},unloadScript:function(t){t=h(t);const e=document.getElementById("script-"+t.toLowerCase());if(e){(document.head||document.getElementsByTagName("head")[0]).removeChild(e)}},loadStyleSheet:function(t,e){if(!t||"undefined"==typeof document)return"";if(void 0===e&&(e=""),!(e=f(t,e)))return"";const n="css-"+h(t).toLowerCase();if(!document.getElementById(n)){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("link");i.rel="stylesheet",i.href=e,i.id=n,o.appendChild(i)}return"local"===u?"":e},unloadStyleSheet:function(t){t=h(t);const e=document.getElementById("css-"+t.toLowerCase());if(e){(document.head||document.getElementsByTagName("head")[0]).removeChild(e)}}};const y={interopDefault:function(t){return t&&"object"==typeof t&&"default"in t?t.default:t},loadStyle:function(t,e){if(!t||!e||"undefined"==typeof document)return!1;const n="css-"+t.toLowerCase();if(!document.getElementById(n)){const t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.id=n,o.type="text/css",o.innerText=e,t.appendChild(o)}return!0},loadScript:function(t,e,n){return new Promise((o,i)=>{if(!t||!e||"undefined"==typeof document)return i("Args is invaild!");let r=document.getElementById(t);if(r)return o(!0);n?"string"==typeof n&&(n=document.querySelector(n)):n=document.body,r=document.createElement("script"),r.id=t,r.type="text/javascript",r.text=e,n.appendChild(r),o(!0)})},renderCacheElement:function(t,e,n,o){"undefined"!=typeof window&&window.document&&(t=window.document);const i=t.createElement("div");if(i.id=e,i.className=n,i.style.display="none",t.body.appendChild(i),"function"==typeof o&&o){const e=o(i);if(e instanceof Promise)return e.then(e=>{t.body.removeChild(e),e.style.display=""}),i.outerHTML}return t.body.removeChild(i),i.style.display="",i.outerHTML},renderElement:function(t,e,n){"undefined"!=typeof window&&window.document&&(t=window.document);const o=t.createElement("div");return o.id=e,o.className=n,t.body.appendChild(o),o},createElementMeta:function(t,e,n){const o=e.dataset.lang,i=o?JSON.parse(o):null;let r="";if(i){if("boolean"==typeof i.codeblock&&i.codeblock||"string"==typeof i.codeblock&&"true"===i.codeblock.toLowerCase())return!1;i.align&&("center"===i.align?r="diagram-center":"right"===i.align&&(r="diagram-right")),i.width&&"string"!=typeof i.width&&(i.width=i.width+"px"),i.height&&"string"!=typeof i.height&&(i.height=i.height+"px")}let a=e.textContent.trim();n&&"function"==typeof n&&(a=n(a));const s=(e.classList.length>0?e.classList[0]:"")+(e.className&&r?" ":"")+r,u=t.toLowerCase()+"-"+Date.now()+"-"+Math.floor(1e4*Math.random());return e.id=u,{id:u,container:u+"-container",className:s,data:a,element:e,lang:i}}},v="abc",w="ABCJSCSS";if("undefined"==typeof window)throw Error("The showdown abcjs extension can only be used in browser environment!");if(void 0===x)var x=window.ABCJS||void 0;function b(){return!!x}let S=!1;function j(t,e,n){if(b()){const o=n.id,i=n.className,r=n.container;let a="";n.lang&&(n.lang.width&&(a+=`width:${n.lang.width};`),n.lang.height&&(a+=`height:${n.lang.height};`));let s="";if(a?(s+=`<div id="${r}" class="${i}" style="${a}">`,s+=`<div id="${o}" style="width:100%;height:100%;display:inline-block"></div>`):(s+=`<div id="${r}" class="${i}">`,s+=`<div id="${o}"></div>`),!n.lang||!n.lang.audio){const e=n.data,i=n.element.ownerDocument;s+="</div>",n.element.parentNode.outerHTML=s;const r=i.getElementById(o);return x.renderAbc(r,e,{add_classes:!0,responsive:"resize"}),t(!0)}const u=n.cssLink,l=n.data,c=o+"-audio";s+=a?u?`<div id="${c}" style="width:100%;height:100%;display:inline-block" class="css-abc" data-css="${u}"></div>`:`<div id="${c}" style="width:100%;height:100%;display:inline-block"></div>`:u?`<div id="${c}" class="css-abc" data-css="${u}"></div>`:`<div id="${c}"></div>`,s+="</div>",n.element.parentNode.outerHTML=s;return e.push({id:r,code:`(function() {\n load('${c}', {\n id:'${o}',\n class:'${i}',\n data:\`${l}\`\n });\n })();`}),t(!0)}setTimeout(()=>{j(t,e,n)},10)}function E(t,e){return new Promise(n=>{let o=y.createElementMeta(v,t);if(!o)return n(!1);o.cssLink=g.getSrc(w),j(n,e,o)})}function A(t,e){const n={outer:[{name:"ABCJS",src:g.getSrc("ABCJS","jsdelivr")}],id:"abcjs-ext",code:'\nvar abcOptions = {\n add_classes: true,\n responsive: "resize"\n};\n\nfunction cursorControl(id) {\n const self = this;\n\n self.onReady = function() {\n };\n self.onStart = function() {\n const tag = "#"+ id + " svg";\n const svg = document.querySelector(tag);\n const cursor = document.createElementNS("http://www.w3.org/2000/svg", "line");\n cursor.setAttribute("class", "abcjs-cursor");\n cursor.setAttributeNS(null, \'x1\', 0);\n cursor.setAttributeNS(null, \'y1\', 0);\n cursor.setAttributeNS(null, \'x2\', 0);\n cursor.setAttributeNS(null, \'y2\', 0);\n svg.appendChild(cursor);\n };\n self.beatSubdivisions = 2;\n self.onBeat = function(beatNumber, totalBeats, totalTime) {\n };\n self.onEvent = function(ev) {\n if (ev.measureStart && ev.left === null)\n return; // this was the second part of a tie across a measure line. Just ignore it.\n\n const className = "#"+ id + " svg .highlight";\n const lastSelection = document.querySelectorAll(className);\n for (let k = 0; k < lastSelection.length; k++)\n lastSelection[k].classList.remove("highlight");\n\n for (let i = 0; i < ev.elements.length; i++ ) {\n const note = ev.elements[i];\n for (let j = 0; j < note.length; j++) {\n note[j].classList.add("highlight");\n }\n }\n\n const tag = "#"+ id + " svg .abcjs-cursor";\n const cursor = document.querySelector(tag);\n if (cursor) {\n cursor.setAttribute("x1", ev.left - 2);\n cursor.setAttribute("x2", ev.left - 2);\n cursor.setAttribute("y1", ev.top);\n cursor.setAttribute("y2", ev.top + ev.height);\n }\n };\n self.onFinished = function() {\n const className = "#"+ id + " svg .highlight";\n const els = document.querySelectorAll(className);\n for (let i = 0; i < els.length; i++ ) {\n els[i].classList.remove("highlight");\n }\n const tag = "#"+ id + " svg .abcjs-cursor";\n const cursor = document.querySelector(tag);\n if (cursor) {\n cursor.setAttribute("x1", 0);\n cursor.setAttribute("x2", 0);\n cursor.setAttribute("y1", 0);\n cursor.setAttribute("y2", 0);\n }\n };\n}\n\nfunction load(audio, render) {\n let synthControl;\n if (audio) {\n const id = "#" + audio;\n if (ABCJS.synth.supportsAudio()) {\n synthControl = new ABCJS.synth.SynthController();\n synthControl.load(id, new cursorControl(render.id), {displayLoop: true, displayRestart: true, displayPlay: true, displayProgress: true, displayWarp: true});\n } else {\n document.querySelector(id).innerHTML = "<div class=\'audio-error\'>Audio is not supported in this browser.</div>";\n }\n }\n setTune(render, false, synthControl);\n}\n\nfunction setTune(render, userAction, synthControl) {\n const id = render.id;\n const abc = render.data;\n if (!synthControl) {\n ABCJS.renderAbc(id, abc, abcOptions);\n return;\n }\n\n synthControl.disable(true);\n const visualObj = ABCJS.renderAbc(id, abc, abcOptions)[0];\n const midiBuffer = new ABCJS.synth.CreateSynth();\n midiBuffer.init({\n visualObj: visualObj,\n }).then(function (response) {\n // console.log(response);\n synthControl.setTune(visualObj, userAction).then(function (response) {\n console.log("Audio successfully loaded.");\n }).catch(function (error) {\n console.warn("Audio problem:", error);\n });\n }).catch(function (error) {\n console.warn("Audio problem:", error);\n });\n}\n',inner:[]};return e.push(n),function(){const t=b();if("undefined"!=typeof window){if(S)return t;t||(S=!0,g.loadStyleSheet(w),y.loadStyle("abc-audio",".highlight{fill: #0a9ecc;} .abcjs-cursor{stroke: red;} .abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed{border: none;} .abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed svg path{fill: #6eaa49;}"),g.loadScript("ABCJS").then(t=>{x=y.interopDefault(window[t])}))}}(),new Promise(e=>{const o=[];t.forEach(t=>{o.push(E(t,n.inner))}),Promise.all(o).then(()=>{e(!0)})})}function C(){return[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll(`code.${v}.language-${v}`);return!!n.length&&(this.config={cssLink:g.getSrc(w)},A(n,t.scripts).then(()=>t))}}]}function k(t,e,n,o,i){try{if(i){if(o>1){const t=n.parentNode;t&&"UL"===t.tagName&&t.classList.add("toc-multi")}const e=n.querySelector("div");if(e){e.classList.remove("toc-title"),e.classList.add("toc-multi-title");const t=e.querySelector("i");t&&(t.classList.remove("toc-chapter"),t.classList.add("toc-multi-chapter"),t.innerHTML='<svg class="icon" aria-hidden="true"><use xlink:href="#icon-expand"></use></svg>')}(n=n.appendChild(t.ownerDocument.createElement("ul"))).classList.add(o>1?"toc-level-"+o:"toc-main")}if(n=n.appendChild(t.ownerDocument.createElement("li")),e){const i=n.appendChild(t.ownerDocument.createElement("div"));i.classList.add("toc-title-"+o,"toc-title");const r=i.appendChild(t.ownerDocument.createElement("i"));r.classList.add("iconfont","toc-chapter"),r.innerHTML='<svg class="icon" aria-hidden="true"><use xlink:href="#icon-chapter-l"></use></svg>';const a=i.appendChild(t.ownerDocument.createElement("a"));a.appendChild(t.ownerDocument.createTextNode(e.textContent)),a.href="#"+e.id}}catch{}return n}function O(t,e,n,o){if(n.headingLevel>=o){let i=null;for(;n&&n.headingLevel>=o;)i=n,n=i.parentNode,i.parentNode=null,i.toc=null,i.headingLevel=null,i.preLevel=null;return n&&O(t,e,n,o),n}if(o>n.preLevel){for(n.preLevel++;o>n.preLevel;)n.toc=k(t,null,n.toc,o,!0),n.preLevel++;n.toc=k(t,e,n.toc,o,!0)}else{for(;n.preLevel>o;)n.toc&&(n.toc=n.toc.parentNode),n.toc&&(n.toc=n.toc.parentNode),n.preLevel--;n.toc&&(n.toc=n.toc.parentNode),n.toc=k(t,e,n.toc,o,!1)}return n.parentNode&&O(t,e,n.parentNode,o),n}function L(){if(!document.querySelector("#total-showdown-toc"))return;const t=document.querySelector("#toc-fold-icon");t&&(t.onclick=e=>{const n=document.querySelectorAll(".total-toc ul"),o=document.querySelectorAll(".total-toc ul:not(.toc-main) .toc-multi-chapter use");if("toc-expand"===t.dataset.name)return n.forEach(t=>{t.classList.contains("toc-main")||t.classList.contains("toc-level-2")||t.classList.add("hidden")}),o.forEach(t=>{t.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-collapse")}),void(t.dataset.name="toc-fold");n.forEach(t=>{t.classList.remove("hidden")}),o.forEach(t=>{t.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-expand")}),t.dataset.name="toc-expand"});const e=document.querySelector("#toc-close-icon");e&&(e.onclick=t=>{const e=document.querySelector("#total-showdown-toc");e&&e.classList.add("hidden");const n=document.querySelector("#toc-switch-button");n&&n.classList.remove("hidden")});const n=document.querySelector("#toc-switch-button");n&&(n.onclick=t=>{t.currentTarget.classList.add("hidden");const e=document.querySelector("#total-showdown-toc");e&&e.classList.remove("hidden")});document.querySelectorAll(".total-toc .toc-multi-chapter").forEach(t=>{t.onclick=t=>{let e=t.currentTarget.parentNode;if(!e)return;if(e=e.parentNode,!e)return;const n=e.querySelectorAll("ul"),o=e.querySelectorAll(".toc-multi-chapter use"),i=t.currentTarget.querySelector("use");if(i){if("#icon-expand"===i.getAttributeNS("http://www.w3.org/1999/xlink","href"))return n.forEach(t=>{t.classList.add("hidden")}),void o.forEach(t=>{t.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-collapse")});n.forEach(t=>{t.classList.remove("hidden")}),o.forEach(t=>{t.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-expand")})}}})}function $(){return[{type:"output",filter:function(t){if("string"==typeof t){const e=(new DOMParser).parseFromString(t,"text/html"),n=void 0!==e.body?e.body:e;return function(t){let e=null,n=0,o=null,i=!1,r=!1;const a=t.ownerDocument.createElement("div");a.id="toc-svgs",a.classList.add("hidden"),a.innerHTML='<svg aria-hidden="true" style="position: absolute; width: 0px; height: 0px; overflow: hidden;"><symbol id="icon-chapter-s" viewBox="0 0 1024 1024"><path d="M725.108359 579.864261c11.519371-117.753568-94.714826-195.829303-165.110981-247.666471l-10.879406-7.679581-21.118846-15.359161c-40.317798-28.798427-81.915525-58.876784-95.994756-95.994756-15.999126-41.597728-13.439266-74.235945 7.67958-97.274686 26.878532-29.438392 90.235071-35.838042 120.313428-11.519371 26.238567 20.478881 26.878532 53.117098 24.958637 70.396154-2.55986 24.318672 14.719196 46.717448 39.037867 49.917274 24.318672 2.55986 46.717448-14.719196 49.917274-39.037868 7.039615-60.796679-14.079231-115.833673-58.236819-151.03175C547.838042-19.143018 432.644335-8.903578 373.127586 55.732892c-44.157588 47.997378-53.117098 115.193708-24.958637 189.429652 8.319546 23.038742 21.758811 42.877658 37.117973 60.156714-36.478007 34.558112-73.59598 78.075735-79.355665 138.872414C294.411886 561.94524 400.646083 640.020975 471.042237 691.858143l10.879406 7.679581 21.118846 15.359161c40.317798 28.798427 81.915525 58.876784 95.994757 95.994756 15.999126 41.597728 13.439266 74.235945-7.679581 97.274686-26.878532 29.438392-90.235071 35.838042-120.313428 11.519371-26.238567-20.478881-26.878532-53.117098-24.958636-70.396154 2.55986-24.318672-14.719196-46.717448-39.037868-49.917274s-46.717448 14.719196-49.917273 39.037868c-7.039615 60.796679 14.079231 115.833673 58.236819 151.03175 29.438392 23.038742 67.196329 34.558112 106.234197 34.558112 50.557238 0 102.394407-19.198951 135.672589-55.676959 44.157588-47.997378 53.117098-115.193708 24.958636-189.429652-8.319546-23.038742-21.758811-42.877658-37.117972-60.156714 36.478007-34.558112 74.235945-78.075735 79.99563-138.872414z m-201.588988 39.677833c-60.156714-44.157588-135.672589-99.834547-129.272939-166.390911 3.199825-33.278182 28.158462-60.156714 57.596854-87.675211 7.679581 5.759685 15.999126 11.519371 23.678707 17.279056 7.039615 5.11972 13.439266 9.599476 19.838916 14.719196l10.879406 8.319546c60.156714 44.157588 135.672589 99.834547 129.272938 166.39091-3.199825 33.278182-28.158462 60.156714-57.596854 87.675211-8.319546-5.759685-15.999126-11.519371-23.678706-17.279056-7.039615-5.11972-13.439266-9.599476-19.838917-14.719196l-10.879405-8.319545z"></path></symbol><symbol id="icon-chapter-l" viewBox="0 0 1024 1024"><path d="M791.272727 11.636364a81.454545 81.454545 0 0 1 81.175273 74.752L872.727273 93.090909v884.363636a34.909091 34.909091 0 0 1-51.060364 30.999273l-4.142545-2.606545-142.615273-101.888-142.615273 101.934545a34.909091 34.909091 0 0 1-30.813091 4.840727l-5.026909-2.048-4.747636-2.792727L349.090909 903.912727l-142.615273 101.934546a34.955636 34.955636 0 0 1-53.946181-18.944l-0.93091-4.654546L151.272727 977.454545V93.090909A81.454545 81.454545 0 0 1 226.024727 11.915636L232.727273 11.636364h558.545454z m-139.636363 605.090909H372.363636l-4.747636 0.325818A34.909091 34.909091 0 0 0 372.363636 686.545455h279.272728l4.747636-0.325819A34.909091 34.909091 0 0 0 651.636364 616.727273z m0-186.181818H372.363636l-4.747636 0.325818A34.909091 34.909091 0 0 0 372.363636 500.363636h279.272728l4.747636-0.325818A34.909091 34.909091 0 0 0 651.636364 430.545455z m0-186.181819H372.363636l-4.747636 0.325819A34.909091 34.909091 0 0 0 372.363636 314.181818h279.272728l4.747636-0.325818A34.909091 34.909091 0 0 0 651.636364 244.363636z"></path></symbol><symbol id="icon-toc" viewBox="0 0 1024 1024"><path d="M62.500473 512.163729l61.447491-40.958854 387.221112 202.039529L898.394281 471.204875l61.443397 40.958854-448.668603 244.728794L62.500473 512.163729zM62.500473 308.228013l448.668603-244.732887 448.668603 244.732887-448.668603 244.724701L62.500473 308.228013zM511.169075 877.18012l387.225205-202.035436 61.443397 40.958854L511.169075 960.836425 62.500473 716.104561l61.447491-40.958854L511.169075 877.18012z"></path></symbol><symbol id="icon-collapse" viewBox="0 0 1024 1024"><path d="M85.781832 219.399571h73.720856c20.35996 0 36.879928-16.359968 36.879928-36.559928s-16.519968-36.559929-36.879928-36.559929h-73.719856c-20.35996 0-36.860928 16.359968-36.860928 36.559929 0 20.199961 16.499968 36.559929 36.859928 36.559928zM50.462901 475.419071c0 20.199961 16.500968 36.579929 36.859928 36.579929h72.179859c20.35996 0 36.879928-16.379968 36.879928-36.579929s-16.519968-36.579929-36.879928-36.579928h-72.179859c-20.35996 0-36.859928 16.379968-36.859928 36.579928z m145.919715 292.577429c0-20.199961-16.519968-36.595929-36.879928-36.595929h-73.719856c-20.35996 0-36.860928 16.395968-36.860928 36.595929 0 20.180961 16.499968 36.562929 36.859928 36.562929h73.720856c20.35996 0 36.879928-16.381968 36.879928-36.562929z"></path><path d="M933.660176 38.839924l-73.718856-2.279995c0-20.198961-16.519968-36.559929-36.879928-36.559929h-661.998707c-20.35996 0-36.879928 16.359968-36.879928 36.559929v70.879861h36.879928s73.359857 6.840987 73.359857 73.140857c0 0 0.779998 73.279857-75.239853 73.279857l-34.999932 2.119996 0.759999 144.019719 34.399933-0.02s75.879852-0.02 75.879852 77.699848c0 0-7.057986 70.879862-76.179852 70.879862l-34.699932 0.019-0.619999 143.980718h36.740929s73.559856 2.279996 73.559856 75.437853c0 0-0.14 75.402853-76.179851 75.402853l-33.199935-2.279996-0.46 73.159857s42.239918 109.718786 106.759792 109.718786h705.018623s34.557933-6.877987 34.557932-34.298933V75.421853s-6.899987-36.580929-36.859928-36.580929zM306.9634 255.9795h479.238064v292.579429h-479.239064V255.9795zM897.939246 916.55821s1.159998 34.279933-37.999926 34.279933H233.243544s-38.019926-12.559975-38.019925-37.719926l627.838773-0.36c20.35996 0 36.879928-16.379968 36.879928-36.579928V69.719864l37.998926 12.559975v834.278371z"></path><path d="M694.042644 329.119357H399.14022c-10.19998 0-18.439964 8.199984-18.439964 18.319964 0 10.07998 8.239984 18.259964 18.439964 18.259965h294.901424c10.17898 0 18.418964-8.179984 18.418964-18.259965 0-10.11898-8.239984-18.319964-18.419964-18.319964z m0 109.719786H399.14022c-10.19998 0-18.439964 8.199984-18.439964 18.279964 0 10.11998 8.239984 18.299964 18.439964 18.299964h294.901424c10.17898 0 18.418964-8.179984 18.418964-18.299964 0-10.07998-8.239984-18.279964-18.419964-18.279964z"></path></symbol><symbol id="icon-chapter" viewBox="0 0 1024 1024"><path d="M832 128v768H256V128h576m64-64H192v896h704V64z" ></path><path d="M161.3 296.2v-0.2H320v-40H161.3c-35.5 0-64.3 28.7-64.3 64s28.8 64 64.3 64h90v-40h-90v-0.2c-13.3 0-24.1-10.7-24.1-23.8 0-13.1 10.8-23.8 24.1-23.8z m0 192v-0.2H320v-40H161.3c-35.5 0-64.3 28.7-64.3 64s28.8 64 64.3 64h90v-40h-90v-0.2c-13.3 0-24.1-10.7-24.1-23.8 0-13.1 10.8-23.8 24.1-23.8z m0 192v-0.2H320v-40H161.3c-35.5 0-64.3 28.7-64.3 64s28.8 64 64.3 64h90v-40h-90v-0.2c-13.3 0-24.1-10.7-24.1-23.8 0-13.1 10.8-23.8 24.1-23.8z" ></path><path d="M288 277a32 32 0 1 0 64 0 32 32 0 1 0-64 0zM288 469a32 32 0 1 0 64 0 32 32 0 1 0-64 0zM288 662a32 32 0 1 0 64 0 32 32 0 1 0-64 0zM384 256h385v40H384z m0 128h385v40H384z m0 128h385v40H384z m0 128h256v40H384z" ></path></symbol><symbol id="icon-expand" viewBox="0 0 1024 1024"><path d="M731.093333 128c82.346667 0 158.08 20.906667 218.88 56.32 6.4 3.626667 10.026667 10.88 10.026667 18.346667v667.306666c0 12.16-9.386667 20.906667-19.84 20.906667-2.986667 0-5.76-0.64-8.746667-2.133333-57.386667-29.226667-126.08-46.08-200.32-46.08s-141.866667 17.066667-199.04 45.653333c-2.986667 1.493333-5.973333 2.986667-8.96 4.693333-0.426667 0.213333-0.853333 0.64-1.493333 0.853334-5.973333 3.2-13.226667 3.2-19.2 0-3.413333-1.92-6.826667-3.626667-10.453333-5.546667-56.96-28.586667-125.44-45.653333-199.04-45.653333s-143.146667 16.853333-200.32 46.08c-2.773333 1.493333-5.76 2.133333-8.746667 2.133333-10.453333 0-19.84-8.746667-19.84-20.906667V202.453333c0-7.68 3.84-14.72 10.026667-18.346666C134.826667 148.693333 210.56 128 292.906667 128S451.2 149.333333 512 184.746667C572.8 149.333333 648.746667 128 731.093333 128zM701.866667 187.733333c-71.466667 0-137.386667 17.92-189.866667 47.786667-52.693333-29.866667-118.613333-47.786667-189.866667-47.786667s-136.96 17.493333-189.653333 47.36c-5.546667 3.2-8.746667 9.173333-8.746667 15.573334v563.626666c0 10.24 8.106667 17.493333 17.066667 17.493334 2.56 0 5.12-0.64 7.466667-1.92 49.706667-24.533333 109.44-38.826667 173.653333-38.826667s123.093333 14.293333 172.373333 38.4c3.2 1.493333 6.186667 2.986667 9.173334 4.693333 5.12 2.773333 11.52 2.773333 16.64 0 0.64-0.213333 0.853333-0.426667 1.493333-0.853333l7.68-3.84c49.493333-24.106667 108.8-38.4 172.373333-38.4s123.946667 14.293333 173.653334 38.826667c2.56 1.28 5.12 1.92 7.466666 1.92 8.96 0 17.066667-7.466667 17.066667-17.493334V250.666667c0-6.4-3.2-12.373333-8.746667-15.573334-52.693333-29.866667-118.186667-47.573333-189.653333-47.573333z" ></path><path d="M949.333333 771.84c-123.306667-71.68-260.266667-80.64-407.466666-26.666667V221.866667c0-16.426667-13.44-29.866667-29.866667-29.866667s-29.866667 13.44-29.866667 29.866667v529.066666c-120.533333-55.466667-253.226667-53.973333-395.093333 5.12-10.88 4.48-16 17.066667-11.52 27.946667 4.48 10.88 17.066667 16 27.946667 11.52 139.306667-58.026667 263.253333-57.173333 378.666666 2.773333v46.506667c0 16.426667 13.44 29.866667 29.866667 29.866667s29.866667-13.44 29.866667-29.866667v-53.973333c142.08-56.32 268.586667-50.56 386.133333 17.706666 3.413333 1.92 7.04 2.986667 10.666667 2.986667 7.253333 0 14.506667-3.84 18.56-10.666667a21.290667 21.290667 0 0 0-7.68-29.226666z" ></path></symbol></svg>',t.insertBefore(a,t.firstChild);const s=t.querySelectorAll("p,h1,h2,h3,h4,h5,h6");for(let a=0;s.length>a;a++){if(e=s[a],r||"h1"!=e.tagName.toLowerCase()||(r=!0),"[toc]"==e.textContent.trim().toLowerCase()){let a=t.ownerDocument.createElement("div");if(a.classList.add("showdown-toc"),!r){const n=t.ownerDocument.createElement("div");n.id="toc-switch-button",n.classList.add("toc-switch","hidden"),n.innerHTML='<svg class="icon" aria-hidden="true"><use xlink:href="#icon-chapter-l"></use></svg>',e.parentNode.insertBefore(n,e),a.id="total-showdown-toc",a.classList.add("total-toc","hidden"),a.innerHTML='<div class="toc-pin"><span class="toc-pin-text">目录</span><div class="toc-fold-wrap"><div id="toc-fold-icon" class="toc-fold toc-icon" data-name="toc-expand"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-toc"></use></svg></div><div id="toc-close-icon" class="toc-close toc-icon"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-chapter-s"></use></svg></div></div></div>'}let s=t.ownerDocument.createElement("div");s.className="toc-view",a.appendChild(s);let u={parentNode:null,toc:s,headingLevel:n,preLevel:n,standalone:!1};if(o)if(n>o.headingLevel)u.parentNode=o;else{let t=o;for(;t.headingLevel>n;)t=t.parentNode;t&&(u.parentNode=n===t.headingLevel?t.parentNode:t)}o=u,i=!0,o.standalone=!r,e.parentNode.replaceChild(a,e);continue}if(e.tagName)switch(e.tagName){case"H1":case"H2":case"H3":case"H4":case"H5":case"H6":n=parseInt(e.tagName.substr(1)),o&&(o=O(t,e,o,n))}}for(;o;){let t=o;o=t.parentNode,t.parentNode=null,t.toc=null,t.headingLevel=null,t.preLevel=null}return i}(n)?n.innerHTML:t}const e=t.wrapper;if(!e)return!1;let n=e.querySelector("#toc-svgs");if(!n)return!1;if(n.parentNode.removeChild(n),t.extras||(t.extras=[]),Array.isArray(t.extras)||(t.extras=[t.extras]),t.extras.push(n.outerHTML),n=e.querySelector("#total-showdown-toc"),!n)return t;n.parentNode.removeChild(n),n.classList.remove("hidden"),t.extras.push(n.outerHTML),n=e.querySelector("#toc-switch-button"),n&&(n.parentNode.removeChild(n),t.extras.push(n.outerHTML)),t.scripts&&(t.scripts=[]),Array.isArray(t.scripts)||(t.scripts=[t.scripts]);return t.scripts.push({inner:[{id:"showdown-toc",code:L,host:"#total-showdown-toc"}]}),t}}]}if("undefined"==typeof window)throw Error("The showdown viz extension can only be used in browser environment!");if(void 0===N)var N=window.Viz||void 0;const q=["circo","dot","neato","osage","twopi"];function M(){return!(void 0===N||!N||void 0===N.instance)}let D=!1;function P(t,e){if(M()){const n=e.id,o=e.className,i=e.data,r=e.element,a=e.element.dataset.lang;let s="dot";if(a){const t=JSON.parse(a);t&&t.engine&&-1!=q.indexOf(t.engine)&&(s=t.engine)}return void N.instance().then(e=>{const a=e.renderString(i,{format:"svg",engine:s});r.parentNode.outerHTML=`<div id="${n}" class="${o}">${a}</div>`,t(!0)})}setTimeout(()=>{P(t,e)},10)}function T(t){return new Promise(e=>{const n=y.createElementMeta("viz",t);if(!n)return e(!1);P(e,n)})}function H(t){return function(){const t=M();if("undefined"!=typeof window){if(D)return t;t||(D=!0,g.loadScript("Viz").then(t=>{N=y.interopDefault(window[t])}))}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(T(t))}),Promise.all(n).then(()=>{e(!0)})})}function z(){return[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.dot.language-dot");return!!n.length&&H(n).then(()=>t)}}]}const B="vega";if("undefined"==typeof window)throw Error("The showdown vega extension can only be used in browser environment!");if(void 0===_)var _=window.vegaEmbed||void 0;function F(){return!(void 0===_||!_)}let J=!1;function R(t,e,n,o){const i=y.createElementMeta(B,t);if(!i)return Promise.resolve(!1);const r=JSON.stringify(e);JSON.stringify(JSON.parse(i.data));const a=i.container;let s=`(function() {\n let el = document.getElementById('${i.id}');\n if (el){\n `;if(i.lang&&i.lang.type&&"string"==typeof i.lang.type&&"javascript"==i.lang.type.toLowerCase())s+=" "+i.data;else{s+=` const option = JSON.parse(\`${JSON.stringify(JSON.parse(i.data))}\`);`}s+=`\n vegaEmbed(el, option, JSON.parse('${r}'));\n }\n })();`;return n.push({id:a,code:s}),new Promise(t=>{V(t,i)})}function I(t,e,n,o){const i={outer:[{name:B,src:g.getSrc(B,"jsdelivr")},{name:"vegaLite",src:g.getSrc("vegaLite","jsdelivr")},{name:"vegaEmbed",src:g.getSrc("vegaEmbed","jsdelivr")}],inner:[]};return n.push(i),function(){const t=F();if("undefined"!=typeof window){if(J)return t;t||(J=!0,g.loadScript(B).then(()=>g.loadScript("vegaLite")).then(()=>g.loadScript("vegaEmbed")).then(t=>{_=y.interopDefault(window[t])}))}}(),new Promise(n=>{const r=[];t.forEach(t=>{r.push(R(t,o,i.inner))}),e.forEach(t=>{r.push(R(t,o,i.inner))}),Promise.all(r).then(()=>{n(!0)})})}function V(t,e){if(F()){return e.element.parentNode.outerHTML=`<div id="${e.container}" class="${e.className}"><div id="${e.id}"></div></div>`,t(!0)}setTimeout(()=>{V(t,e)},10)}function W(t){const e=((t={})=>({actions:{editor:!1},theme:"vox",tooltip:!1,renderer:"svg",...t}))(t);return[{type:"output",config:e,filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.vega.language-vega"),o=e.querySelectorAll("code.vega-lite.language-vega-lite");return!(!n.length&&!o.length)&&I(n,o,t.scripts,this.config).then(()=>t)}}]}function U(){const t=new DOMParser;return[{type:"output",filter:function(e){const n=t.parseFromString(e,"text/html"),o=void 0!==n.body?n.body:n;return function(t){let e=null,n=null,o=!1;const i=t.querySelectorAll("p, li, h1, h2, h3, h4, h5, h6, div.paragraph");for(let t=0;i.length>t;t++)for(e=i[t],n=e.firstChild;n;){if(3===n.nodeType){let t=n.nodeValue.match(/^([\s\S]*?)([:-]-:)(?:[\s]?)([\s\S]*)$/);t&&(":-:"===t[2]?(n.nodeValue=t[3],e.className?e.className+=" align-center":e.className="align-center",o=!0):"--:"===t[2]&&(n.nodeValue=t[3],e.className?e.className+=" align-right":e.className="align-right",o=!0));break}n=n.nextSibling}return o}(o)?o.innerHTML:e}}]}var G=".",K={input:'"',tag:"mtext",output:"mbox",tex:null,ttype:10},X=[{input:"alpha",tag:"mi",output:"α",tex:null,ttype:0},{input:"beta",tag:"mi",output:"β",tex:null,ttype:0},{input:"chi",tag:"mi",output:"χ",tex:null,ttype:0},{input:"delta",tag:"mi",output:"δ",tex:null,ttype:0},{input:"Delta",tag:"mo",output:"Δ",tex:null,ttype:0},{input:"epsi",tag:"mi",output:"ε",tex:"epsilon",ttype:0},{input:"varepsilon",tag:"mi",output:"ɛ",tex:null,ttype:0},{input:"eta",tag:"mi",output:"η",tex:null,ttype:0},{input:"gamma",tag:"mi",output:"γ",tex:null,ttype:0},{input:"Gamma",tag:"mo",output:"Γ",tex:null,ttype:0},{input:"iota",tag:"mi",output:"ι",tex:null,ttype:0},{input:"kappa",tag:"mi",output:"κ",tex:null,ttype:0},{input:"lambda",tag:"mi",output:"λ",tex:null,ttype:0},{input:"Lambda",tag:"mo",output:"Λ",tex:null,ttype:0},{input:"lamda",tag:"mi",output:"lambda",tex:null,ttype:8},{input:"Lamda",tag:"mi",output:"Lambda",tex:null,ttype:8},{input:"mu",tag:"mi",output:"μ",tex:null,ttype:0},{input:"nu",tag:"mi",output:"ν",tex:null,ttype:0},{input:"omega",tag:"mi",output:"ω",tex:null,ttype:0},{input:"Omega",tag:"mo",output:"Ω",tex:null,ttype:0},{input:"phi",tag:"mi",output:"φ",tex:null,ttype:0},{input:"varphi",tag:"mi",output:"ϕ",tex:null,ttype:0},{input:"Phi",tag:"mo",output:"Φ",tex:null,ttype:0},{input:"pi",tag:"mi",output:"π",tex:null,ttype:0},{input:"Pi",tag:"mo",output:"Π",tex:null,ttype:0},{input:"psi",tag:"mi",output:"ψ",tex:null,ttype:0},{input:"Psi",tag:"mi",output:"Ψ",tex:null,ttype:0},{input:"rho",tag:"mi",output:"ρ",tex:null,ttype:0},{input:"sigma",tag:"mi",output:"σ",tex:null,ttype:0},{input:"Sigma",tag:"mo",output:"Σ",tex:null,ttype:0},{input:"tau",tag:"mi",output:"τ",tex:null,ttype:0},{input:"theta",tag:"mi",output:"θ",tex:null,ttype:0},{input:"vartheta",tag:"mi",output:"ϑ",tex:null,ttype:0},{input:"Theta",tag:"mo",output:"Θ",tex:null,ttype:0},{input:"upsilon",tag:"mi",output:"υ",tex:null,ttype:0},{input:"xi",tag:"mi",output:"ξ",tex:null,ttype:0},{input:"Xi",tag:"mo",output:"Ξ",tex:null,ttype:0},{input:"zeta",tag:"mi",output:"ζ",tex:null,ttype:0},{input:"*",tag:"mo",output:"⋅",tex:"cdot",ttype:0},{input:"**",tag:"mo",output:"∗",tex:"ast",ttype:0},{input:"***",tag:"mo",output:"⋆",tex:"star",ttype:0},{input:"//",tag:"mo",output:"/",tex:"/",ttype:0,val:!0,notexcopy:!0},{input:"\\\\",tag:"mo",output:"\\",tex:"backslash",ttype:0},{input:"setminus",tag:"mo",output:"\\",tex:null,ttype:0},{input:"xx",tag:"mo",output:"×",tex:"times",ttype:0},{input:"|><",tag:"mo",output:"⋉",tex:"ltimes",ttype:0},{input:"><|",tag:"mo",output:"⋊",tex:"rtimes",ttype:0},{input:"|><|",tag:"mo",output:"⋈",tex:"bowtie",ttype:0},{input:"-:",tag:"mo",output:"÷",tex:"div",ttype:0},{input:"divide",tag:"mo",output:"-:",tex:null,ttype:8},{input:"@",tag:"mo",output:"∘",tex:"circ",ttype:0},{input:"o+",tag:"mo",output:"⊕",tex:"oplus",ttype:0},{input:"ox",tag:"mo",output:"⊗",tex:"otimes",ttype:0},{input:"o.",tag:"mo",output:"⊙",tex:"odot",ttype:0},{input:"sum",tag:"mo",output:"∑",tex:null,ttype:7},{input:"prod",tag:"mo",output:"∏",tex:null,ttype:7},{input:"^^",tag:"mo",output:"∧",tex:"wedge",ttype:0},{input:"^^^",tag:"mo",output:"⋀",tex:"bigwedge",ttype:7},{input:"vv",tag:"mo",output:"∨",tex:"vee",ttype:0},{input:"vvv",tag:"mo",output:"⋁",tex:"bigvee",ttype:7},{input:"nn",tag:"mo",output:"∩",tex:"cap",ttype:0},{input:"nnn",tag:"mo",output:"⋂",tex:"bigcap",ttype:7},{input:"uu",tag:"mo",output:"∪",tex:"cup",ttype:0},{input:"uuu",tag:"mo",output:"⋃",tex:"bigcup",ttype:7},{input:"overset",tag:"mover",output:"stackrel",tex:null,ttype:2},{input:"underset",tag:"munder",output:"stackrel",tex:null,ttype:2},{input:"!=",tag:"mo",output:"≠",tex:"ne",ttype:0},{input:":=",tag:"mo",output:":=",tex:null,ttype:0},{input:"lt",tag:"mo",output:"<",tex:null,ttype:0},{input:"gt",tag:"mo",output:">",tex:null,ttype:0},{input:"<=",tag:"mo",output:"≤",tex:"le",ttype:0},{input:"lt=",tag:"mo",output:"≤",tex:"leq",ttype:0},{input:"gt=",tag:"mo",output:"≥",tex:"geq",ttype:0},{input:">=",tag:"mo",output:"≥",tex:"ge",ttype:0},{input:"-<",tag:"mo",output:"≺",tex:"prec",ttype:0},{input:"-lt",tag:"mo",output:"≺",tex:null,ttype:0},{input:">-",tag:"mo",output:"≻",tex:"succ",ttype:0},{input:"-<=",tag:"mo",output:"⪯",tex:"preceq",ttype:0},{input:">-=",tag:"mo",output:"⪰",tex:"succeq",ttype:0},{input:"in",tag:"mo",output:"∈",tex:null,ttype:0},{input:"!in",tag:"mo",output:"∉",tex:"notin",ttype:0},{input:"sub",tag:"mo",output:"⊂",tex:"subset",ttype:0},{input:"sup",tag:"mo",output:"⊃",tex:"supset",ttype:0},{input:"sube",tag:"mo",output:"⊆",tex:"subseteq",ttype:0},{input:"supe",tag:"mo",output:"⊇",tex:"supseteq",ttype:0},{input:"-=",tag:"mo",output:"≡",tex:"equiv",ttype:0},{input:"~=",tag:"mo",output:"≅",tex:"stackrel{\\sim}{=}",notexcopy:!0,ttype:0},{input:"cong",tag:"mo",output:"~=",tex:null,ttype:8},{input:"~~",tag:"mo",output:"≈",tex:"approx",ttype:0},{input:"prop",tag:"mo",output:"∝",tex:"propto",ttype:0},{input:"and",tag:"mtext",output:"and",tex:null,ttype:6},{input:"or",tag:"mtext",output:"or",tex:null,ttype:6},{input:"not",tag:"mo",output:"¬",tex:"neg",ttype:0},{input:"=>",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:0},{input:"implies",tag:"mo",output:"=>",tex:null,ttype:8},{input:"if",tag:"mo",output:"if",tex:null,ttype:6},{input:"<=>",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:0},{input:"iff",tag:"mo",output:"<=>",tex:null,ttype:8},{input:"AA",tag:"mo",output:"∀",tex:"forall",ttype:0},{input:"EE",tag:"mo",output:"∃",tex:"exists",ttype:0},{input:"_|_",tag:"mo",output:"⊥",tex:"bot",ttype:0},{input:"TT",tag:"mo",output:"⊤",tex:"top",ttype:0},{input:"|--",tag:"mo",output:"⊢",tex:"vdash",ttype:0},{input:"|==",tag:"mo",output:"⊨",tex:"models",ttype:0},{input:"(",tag:"mo",output:"(",tex:null,ttype:4,val:!0},{input:")",tag:"mo",output:")",tex:null,ttype:5,val:!0},{input:"[",tag:"mo",output:"[",tex:null,ttype:4,val:!0},{input:"]",tag:"mo",output:"]",tex:null,ttype:5,val:!0},{input:"left(",tag:"mo",output:"(",tex:"(",notexcopy:!0,ttype:4,val:!0},{input:"right)",tag:"mo",output:")",tex:")",notexcopy:!0,ttype:5,val:!0},{input:"left[",tag:"mo",output:"[",tex:"[",notexcopy:!0,ttype:4,val:!0},{input:"right]",tag:"mo",output:"]",tex:"]",notexcopy:!0,ttype:5,val:!0},{input:"{",tag:"mo",output:"{",tex:"lbrace",ttype:4},{input:"}",tag:"mo",output:"}",tex:"rbrace",ttype:5},{input:"|",tag:"mo",output:"|",tex:null,ttype:9,val:!0},{input:"|:",tag:"mo",output:"|",tex:"|",ttype:4,notexcopy:!0,val:!0},{input:":|",tag:"mo",output:"|",tex:"|",ttype:5,notexcopy:!0,val:!0},{input:":|:",tag:"mo",output:"|",tex:"|",ttype:0,notexcopy:!0,val:!0},{input:"(:",tag:"mo",output:"〈",tex:"langle",ttype:4},{input:":)",tag:"mo",output:"〉",tex:"rangle",ttype:5},{input:"<<",tag:"mo",output:"〈",tex:"langle",ttype:4},{input:">>",tag:"mo",output:"〉",tex:"rangle",ttype:5},{input:"{:",tag:"mo",output:"{:",tex:null,ttype:4,invisible:!0},{input:":}",tag:"mo",output:":}",tex:null,ttype:5,invisible:!0},{input:"int",tag:"mo",output:"∫",tex:null,ttype:0},{input:"dx",tag:"mi",output:"{:d x:}",tex:null,ttype:8},{input:"dy",tag:"mi",output:"{:d y:}",tex:null,ttype:8},{input:"dz",tag:"mi",output:"{:d z:}",tex:null,ttype:8},{input:"dt",tag:"mi",output:"{:d t:}",tex:null,ttype:8},{input:"oint",tag:"mo",output:"∮",tex:null,ttype:0},{input:"del",tag:"mo",output:"∂",tex:"partial",ttype:0},{input:"grad",tag:"mo",output:"∇",tex:"nabla",ttype:0},{input:"+-",tag:"mo",output:"±",tex:"pm",ttype:0},{input:"O/",tag:"mo",output:"∅",tex:"emptyset",ttype:0},{input:"oo",tag:"mo",output:"∞",tex:"infty",ttype:0},{input:"aleph",tag:"mo",output:"ℵ",tex:null,ttype:0},{input:"...",tag:"mo",output:"...",tex:"ldots",ttype:0},{input:":.",tag:"mo",output:"∴",tex:"therefore",ttype:0},{input:":'",tag:"mo",output:"∵",tex:"because",ttype:0},{input:"/_",tag:"mo",output:"∠",tex:"angle",ttype:0},{input:"/_\\",tag:"mo",output:"△",tex:"triangle",ttype:0},{input:"\\ ",tag:"mo",output:" ",tex:null,ttype:0,val:!0},{input:"frown",tag:"mo",output:"⌢",tex:null,ttype:0},{input:"%",tag:"mo",output:"%",tex:"%",ttype:0,notexcopy:!0},{input:"quad",tag:"mo",output:"  ",tex:null,ttype:0},{input:"qquad",tag:"mo",output:"    ",tex:null,ttype:0},{input:"cdots",tag:"mo",output:"⋯",tex:null,ttype:0},{input:"vdots",tag:"mo",output:"⋮",tex:null,ttype:0},{input:"ddots",tag:"mo",output:"⋱",tex:null,ttype:0},{input:"diamond",tag:"mo",output:"⋄",tex:null,ttype:0},{input:"square",tag:"mo",output:"□",tex:"boxempty",ttype:0},{input:"|__",tag:"mo",output:"⌊",tex:"lfloor",ttype:0},{input:"__|",tag:"mo",output:"⌋",tex:"rfloor",ttype:0},{input:"|~",tag:"mo",output:"⌈",tex:"lceil",ttype:0},{input:"lceiling",tag:"mo",output:"|~",tex:null,ttype:8},{input:"~|",tag:"mo",output:"⌉",tex:"rceil",ttype:0},{input:"rceiling",tag:"mo",output:"~|",tex:null,ttype:8},{input:"CC",tag:"mo",output:"ℂ",tex:"mathbb{C}",ttype:0,notexcopy:!0},{input:"NN",tag:"mo",output:"ℕ",tex:"mathbb{N}",ttype:0,notexcopy:!0},{input:"QQ",tag:"mo",output:"ℚ",tex:"mathbb{Q}",ttype:0,notexcopy:!0},{input:"RR",tag:"mo",output:"ℝ",tex:"mathbb{R}",ttype:0,notexcopy:!0},{input:"ZZ",tag:"mo",output:"ℤ",tex:"mathbb{Z}",ttype:0,notexcopy:!0},{input:"f",tag:"mi",output:"f",tex:null,ttype:1,func:!0,val:!0},{input:"g",tag:"mi",output:"g",tex:null,ttype:1,func:!0,val:!0},{input:"''",tag:"mo",output:"''",tex:null,val:!0},{input:"'''",tag:"mo",output:"'''",tex:null,val:!0},{input:"''''",tag:"mo",output:"''''",tex:null,val:!0},{input:"lim",tag:"mo",output:"lim",tex:null,ttype:7},{input:"Lim",tag:"mo",output:"Lim",tex:null,ttype:7},{input:"sin",tag:"mo",output:"sin",tex:null,ttype:1,func:!0},{input:"cos",tag:"mo",output:"cos",tex:null,ttype:1,func:!0},{input:"tan",tag:"mo",output:"tan",tex:null,ttype:1,func:!0},{input:"arcsin",tag:"mo",output:"arcsin",tex:null,ttype:1,func:!0},{input:"arccos",tag:"mo",output:"arccos",tex:null,ttype:1,func:!0},{input:"arctan",tag:"mo",output:"arctan",tex:null,ttype:1,func:!0},{input:"sinh",tag:"mo",output:"sinh",tex:null,ttype:1,func:!0},{input:"cosh",tag:"mo",output:"cosh",tex:null,ttype:1,func:!0},{input:"tanh",tag:"mo",output:"tanh",tex:null,ttype:1,func:!0},{input:"cot",tag:"mo",output:"cot",tex:null,ttype:1,func:!0},{input:"coth",tag:"mo",output:"coth",tex:null,ttype:1,func:!0},{input:"sech",tag:"mo",output:"sech",tex:null,ttype:1,func:!0},{input:"csch",tag:"mo",output:"csch",tex:null,ttype:1,func:!0},{input:"sec",tag:"mo",output:"sec",tex:null,ttype:1,func:!0},{input:"csc",tag:"mo",output:"csc",tex:null,ttype:1,func:!0},{input:"log",tag:"mo",output:"log",tex:null,ttype:1,func:!0},{input:"ln",tag:"mo",output:"ln",tex:null,ttype:1,func:!0},{input:"abs",tag:"mo",output:"abs",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["|","|"]},{input:"norm",tag:"mo",output:"norm",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["\\|","\\|"]},{input:"floor",tag:"mo",output:"floor",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["\\lfloor","\\rfloor"]},{input:"ceil",tag:"mo",output:"ceil",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["\\lceil","\\rceil"]},{input:"Sin",tag:"mo",output:"Sin",tex:null,ttype:1,func:!0},{input:"Cos",tag:"mo",output:"Cos",tex:null,ttype:1,func:!0},{input:"Tan",tag:"mo",output:"Tan",tex:null,ttype:1,func:!0},{input:"Arcsin",tag:"mo",output:"Arcsin",tex:null,ttype:1,func:!0},{input:"Arccos",tag:"mo",output:"Arccos",tex:null,ttype:1,func:!0},{input:"Arctan",tag:"mo",output:"Arctan",tex:null,ttype:1,func:!0},{input:"Sinh",tag:"mo",output:"Sinh",tex:null,ttype:1,func:!0},{input:"Cosh",tag:"mo",output:"Cosh",tex:null,ttype:1,func:!0},{input:"Tanh",tag:"mo",output:"Tanh",tex:null,ttype:1,func:!0},{input:"Cot",tag:"mo",output:"Cot",tex:null,ttype:1,func:!0},{input:"Sec",tag:"mo",output:"Sec",tex:null,ttype:1,func:!0},{input:"Csc",tag:"mo",output:"Csc",tex:null,ttype:1,func:!0},{input:"Log",tag:"mo",output:"Log",tex:null,ttype:1,func:!0},{input:"Ln",tag:"mo",output:"Ln",tex:null,ttype:1,func:!0},{input:"Abs",tag:"mo",output:"abs",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["|","|"]},{input:"det",tag:"mo",output:"det",tex:null,ttype:1,func:!0},{input:"exp",tag:"mo",output:"exp",tex:null,ttype:1,func:!0},{input:"dim",tag:"mo",output:"dim",tex:null,ttype:0},{input:"mod",tag:"mo",output:"mod",tex:"text{mod}",ttype:0,notexcopy:!0},{input:"gcd",tag:"mo",output:"gcd",tex:null,ttype:1,func:!0},{input:"lcm",tag:"mo",output:"lcm",tex:"text{lcm}",ttype:1,func:!0,notexcopy:!0},{input:"lub",tag:"mo",output:"lub",tex:null,ttype:0},{input:"glb",tag:"mo",output:"glb",tex:null,ttype:0},{input:"min",tag:"mo",output:"min",tex:null,ttype:7},{input:"max",tag:"mo",output:"max",tex:null,ttype:7},{input:"uarr",tag:"mo",output:"↑",tex:"uparrow",ttype:0},{input:"darr",tag:"mo",output:"↓",tex:"downarrow",ttype:0},{input:"rarr",tag:"mo",output:"→",tex:"rightarrow",ttype:0},{input:"->",tag:"mo",output:"→",tex:"to",ttype:0},{input:">->",tag:"mo",output:"↣",tex:"rightarrowtail",ttype:0},{input:"->>",tag:"mo",output:"↠",tex:"twoheadrightarrow",ttype:0},{input:">->>",tag:"mo",output:"⤖",tex:"twoheadrightarrowtail",ttype:0},{input:"|->",tag:"mo",output:"↦",tex:"mapsto",ttype:0},{input:"larr",tag:"mo",output:"←",tex:"leftarrow",ttype:0},{input:"harr",tag:"mo",output:"↔",tex:"leftrightarrow",ttype:0},{input:"rArr",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:0},{input:"lArr",tag:"mo",output:"⇐",tex:"Leftarrow",ttype:0},{input:"hArr",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:0},{input:"sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:1},{input:"root",tag:"mroot",output:"root",tex:null,ttype:2},{input:"frac",tag:"mfrac",output:"/",tex:null,ttype:2},{input:"/",tag:"mfrac",output:"/",tex:null,ttype:3},{input:"stackrel",tag:"mover",output:"stackrel",tex:null,ttype:2},{input:"_",tag:"msub",output:"_",tex:null,ttype:3},{input:"^",tag:"msup",output:"^",tex:null,ttype:3},{input:"cancel",tag:"menclose",output:"cancel",tex:null,ttype:1},{input:"Sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:1},{input:"hat",tag:"mover",output:"^",tex:null,ttype:1,acc:!0},{input:"bar",tag:"mover",output:"¯",tex:"overline",ttype:1,acc:!0},{input:"vec",tag:"mover",output:"→",tex:null,ttype:1,acc:!0},{input:"tilde",tag:"mover",output:"~",tex:null,ttype:1,acc:!0},{input:"dot",tag:"mover",output:".",tex:null,ttype:1,acc:!0},{input:"ddot",tag:"mover",output:"..",tex:null,ttype:1,acc:!0},{input:"overarc",tag:"mover",output:"⏜",tex:"stackrel{\\frown}",notexcopy:!0,ttype:1,acc:!0},{input:"overparen",tag:"mover",output:"⏜",tex:"stackrel{\\frown}",notexcopy:!0,ttype:1,acc:!0},{input:"ul",tag:"munder",output:"̲",tex:"underline",ttype:1,acc:!0},{input:"ubrace",tag:"munder",output:"⏟",tex:"underbrace",ttype:1,acc:!0},{input:"obrace",tag:"mover",output:"⏞",tex:"overbrace",ttype:1,acc:!0},{input:"text",tag:"mtext",output:"text",tex:null,ttype:10},{input:"mbox",tag:"mtext",output:"mbox",tex:null,ttype:10},K,{input:"color",tag:"mstyle",ttype:2},{input:"bb",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"bb",tex:"mathbf",ttype:1,notexcopy:!0},{input:"mathbf",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"mathbf",tex:null,ttype:1},{input:"sf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"sf",tex:"mathsf",ttype:1,notexcopy:!0},{input:"mathsf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"mathsf",tex:null,ttype:1},{input:"bbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"bbb",tex:"mathbb",ttype:1,notexcopy:!0},{input:"mathbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"mathbb",tex:null,ttype:1},{input:"cc",tag:"mstyle",atname:"mathvariant",atval:"script",output:"cc",tex:"mathcal",ttype:1,notexcopy:!0},{input:"mathcal",tag:"mstyle",atname:"mathvariant",atval:"script",output:"mathcal",tex:null,ttype:1},{input:"tt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"tt",tex:"mathtt",ttype:1,notexcopy:!0},{input:"mathtt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"mathtt",tex:null,ttype:1},{input:"fr",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"fr",tex:"mathfrak",ttype:1,notexcopy:!0},{input:"mathfrak",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"mathfrak",tex:null,ttype:1}];function Z(t,e){return t.input>e.input?1:-1}var Q,Y,tt,et=[];function nt(t,e){var n;n="\\"==t.charAt(e)&&"\\"!=t.charAt(e+1)&&" "!=t.charAt(e+1)?t.slice(e+1):t.slice(e);for(var o=0;n.length>o&&32>=n.charCodeAt(o);o+=1);return n.slice(o)}function ot(t,e,n){if(0==n){var o,i;for(n=-1,o=t.length;o>n+1;)e>t[i=n+o>>1]?n=i:o=i;return o}for(var r=n;t.length>r&&e>t[r];r++);return r}function it(t){for(var e,n,o,i=0,r="",a=!0,s=1;t.length>=s&&a;s++)n=t.slice(0,s),i=ot(et,n,i),et.length>i&&t.slice(0,et[i].length)==et[i]&&(e=i,s=(r=et[i]).length),a=et.length>i&&t.slice(0,et[i].length)>=et[i];if(Y=tt,""!=r)return tt=X[e].ttype,X[e];tt=0,i=1,n=t.slice(0,1);for(var u=!0;n>="0"&&"9">=n&&t.length>=i;)n=t.slice(i,i+1),i++;if(n==G&&(n=t.slice(i,i+1))>="0"&&"9">=n)for(u=!1,i++;n>="0"&&"9">=n&&t.length>=i;)n=t.slice(i,i+1),i++;return u&&i>1||i>2?(n=t.slice(0,i-1),o="mn"):(i=2,o=("A">(n=t.slice(0,1))||n>"Z")&&("a">n||n>"z")?"mo":"mi"),"-"==n&&3==Y?(tt=3,{input:n,tag:o,output:n,ttype:1,func:!0,val:!0}):{input:n,tag:o,output:n,ttype:0,val:!0}}function rt(t){var e;if("{"==t.charAt(0)&&"}"==t.charAt(t.length-1)){var n=0;"\\left"==(e=t.substr(1,5))?"("==(e=t.charAt(6))||"["==e||"{"==e?n=7:"\\lbrace"==(e=t.substr(6,7))&&(n=13):"("!=(e=t.charAt(1))&&"["!=e||(n=2),n>0&&("\\right)}"==(e=t.substr(t.length-8))||"\\right]}"==e||"\\right.}"==e?t=(t="{"+t.substr(n)).substr(0,t.length-8)+"}":"\\rbrace}"==e&&(t=(t="{"+t.substr(n)).substr(0,t.length-14)+"}"))}return t}function at(t){var e;return e="boolean"==typeof t.val&&t.val?"":"\\",null==t.tex?e+t.input:e+t.tex}function st(t){var e,n,o,i,r="";if(null==(e=it(t=nt(t,0)))||5==e.ttype&&Q>0)return[null,t];switch(8==e.ttype&&(e=it(t=e.output+nt(t,e.input.length))),e.ttype){case 7:case 0:t=nt(t,e.input.length);var a=at(e);return"\\"==a.charAt(0)||"mo"==e.tag?[a,t]:["{"+a+"}",t];case 4:Q++,o=lt(t=nt(t,e.input.length),!0),Q--;var s=0;return"\\right"==o[0].substr(0,6)&&(")"==(l=o[0].charAt(6))||"]"==l||"}"==l?s=6:"."==l?s=7:"\\rbrace"==(l=o[0].substr(6,7))&&(s=13)),s>0?(o[0]=o[0].substr(s),n="boolean"==typeof e.invisible&&e.invisible?"{"+o[0]+"}":"{"+at(e)+o[0]+"}"):n="boolean"==typeof e.invisible&&e.invisible?"{\\left."+o[0]+"}":"{\\left"+at(e)+o[0]+"}",[n,o[1]];case 10:return e!=K&&(t=nt(t,e.input.length)),-1==(i="{"==t.charAt(0)?t.indexOf("}"):"("==t.charAt(0)?t.indexOf(")"):"["==t.charAt(0)?t.indexOf("]"):e==K?t.slice(1).indexOf('"')+1:0)&&(i=t.length)," "==(l=t.slice(1,i)).charAt(0)&&(r="\\ "),r+="\\text{"+l+"}"," "==l.charAt(l.length-1)&&(r+="\\ "),[r,t=nt(t,i+1)];case 1:return null==(o=st(t=nt(t,e.input.length)))[0]?["{"+at(e)+"}",t]:"boolean"==typeof e.func&&e.func?"^"==(l=t.charAt(0))||"_"==l||"/"==l||"|"==l||","==l||1==e.input.length&&e.input.match(/\w/)&&"("!=l?["{"+at(e)+"}",t]:[n="{"+at(e)+"{"+o[0]+"}}",o[1]]:(o[0]=rt(o[0]),"sqrt"==e.input?["\\sqrt{"+o[0]+"}",o[1]]:"cancel"==e.input?["\\cancel{"+o[0]+"}",o[1]]:void 0!==e.rewriteleftright?["{\\left"+e.rewriteleftright[0]+o[0]+"\\right"+e.rewriteleftright[1]+"}",o[1]]:"boolean"==typeof e.acc&&e.acc?[at(e)+"{"+o[0]+"}",o[1]]:["{"+at(e)+"{"+o[0]+"}}",o[1]]);case 2:if(null==(o=st(t=nt(t,e.input.length)))[0])return["{"+at(e)+"}",t];o[0]=rt(o[0]);var u=st(o[1]);return null==u[0]?["{"+at(e)+"}",t]:(u[0]=rt(u[0]),[r="color"==e.input?"{\\color{"+o[0].replace(/[\{\}]/g,"")+"}"+u[0]+"}":"root"==e.input?"{\\sqrt["+o[0]+"]{"+u[0]+"}}":"{"+at(e)+"{"+o[0]+"}{"+u[0]+"}}",u[1]]);case 3:return t=nt(t,e.input.length),[e.output,t];case 6:return t=nt(t,e.input.length),["{\\quad\\text{"+e.input+"}\\quad}",t];case 9:Q++,o=lt(t=nt(t,e.input.length),!1),Q--;var l="";return"|"==(l=o[0].charAt(o[0].length-1))&&","!==t.charAt(0)?[n="{\\left|"+o[0]+"}",o[1]]:[n="{\\mid}",t];default:return t=nt(t,e.input.length),["{"+at(e)+"}",t]}}function ut(t){var e,n,o,i,r;if(n=it(t=nt(t,0)),i=(r=st(t))[0],3==(e=it(t=r[1])).ttype&&"/"!=e.input){if((r=st(t=nt(t,e.input.length)))[0]=null==r[0]?"{}":rt(r[0]),t=r[1],"_"==e.input)if("^"==(o=it(t)).input){var a=st(t=nt(t,o.input.length));a[0]=rt(a[0]),t=a[1],i="{"+i,i+="_{"+r[0]+"}",i+="^{"+a[0]+"}",i+="}"}else i+="_{"+r[0]+"}";else i=i+"^{"+r[0]+"}";void 0!==n.func&&n.func&&(3==(o=it(t)).ttype||5==o.ttype||1>=n.input.length&&4!=o.ttype||(i="{"+i+(r=ut(t))[0]+"}",t=r[1]))}return[i,t]}function lt(t,e){var n,o,i,r,a="",s=!1;do{o=(i=ut(t=nt(t,0)))[0],3==(n=it(t=i[1])).ttype&&"/"==n.input?((i=ut(t=nt(t,n.input.length)))[0]=null==i[0]?"{}":rt(i[0]),t=i[1],o="\\frac{"+(o=rt(o))+"}",a+=o+="{"+i[0]+"}",n=it(t)):null!=o&&(a+=o)}while((5!=n.ttype&&(9!=n.ttype||e)||0==Q)&&null!=n&&""!=n.output);if(5==n.ttype||9==n.ttype){var u=a.length;if(u>2&&"{"==a.charAt(0)&&a.indexOf(",")>0){var l=a.charAt(u-2);if(")"==l||"]"==l){var c=a.charAt(6);if("("==c&&")"==l&&"}"!=n.output||"["==c&&"]"==l){var p="",d=[];d.push(0);var m=!0,h=0,f=[];f[0]=[0];var g=0,y=0,v="";for(r=1;u-1>r;r++)a.charAt(r)==c&&h++,a.charAt(r)==l&&0==--h&&","==a.charAt(r+2)&&"{"==a.charAt(r+3)&&(d.push(r+2),f[g=r+2]=[r+2]),"["!=a.charAt(r)&&"("!=a.charAt(r)&&"{"!=a.charAt(r)||y++,"]"!=a.charAt(r)&&")"!=a.charAt(r)&&"}"!=a.charAt(r)||y--,","==a.charAt(r)&&1==y&&f[g].push(r),0>y&&(g==r+1?r++:m=!1);d.push(u);var w=-1;if(0==h&&d.length>0&&m)for(r=0;d.length-1>r;r++){if(r>0&&(p+="\\\\"),0==r)if(1==f[d[r]].length)var x=[a.substr(d[r]+7,d[r+1]-d[r]-15)];else{x=[a.substring(d[r]+7,f[d[r]][1])];for(var b=2;f[d[r]].length>b;b++)x.push(a.substring(f[d[r]][b-1]+1,f[d[r]][b]));x.push(a.substring(f[d[r]][f[d[r]].length-1]+1,d[r+1]-8))}else if(1==f[d[r]].length)x=[a.substr(d[r]+8,d[r+1]-d[r]-16)];else{for(x=[a.substring(d[r]+8,f[d[r]][1])],b=2;f[d[r]].length>b;b++)x.push(a.substring(f[d[r]][b-1]+1,f[d[r]][b]));x.push(a.substring(f[d[r]][f[d[r]].length-1]+1,d[r+1]-8))}for(b=x.length-1;b>=0;b--)"{\\mid}"==x[b]?(0==r&&(v="|"+v),x.splice(b,1)):0==r&&(v="c"+v);w>0&&x.length!=w?m=!1:-1==w&&(w=x.length),p+=x.join("&")}p="\\begin{array}{"+v+"} "+p+"\\end{array}",m&&(a=p)}}}t=nt(t,n.input.length),"boolean"==typeof n.invisible&&n.invisible?(a+="\\right.",s=!0):(a+=o="\\right"+at(n),s=!0)}return Q>0&&!s&&(a+="\\right."),[a,t]}function ct(t){return Q=0,null==(t=(t=(t=t.replace(/(&nbsp;|\u00a0|&#160;)/g,"")).replace(/&gt;/g,">")).replace(/&lt;/g,"<")).match(/\S/)?"":lt(t.replace(/^\s+/g,""),!1)[0]}if(function(){var t,e=X.length;for(t=0;e>t;t++)!X[t].tex||"boolean"==typeof X[t].notexcopy&&X[t].notexcopy||X.push({input:X[t].tex,tag:X[t].tag,output:X[t].output,ttype:X[t].ttype,acc:X[t].acc||!1});!function(){var t;for(X.sort(Z),t=0;X.length>t;t++)et[t]=X[t].input}()}(),"undefined"==typeof window)throw Error("The showdown katex extension can only be used in browser environment!");if(void 0===pt)var pt=window.katex||void 0;if("undefined"==typeof renderMathInElement)var dt=window.renderMathInElement||void 0;let mt=0;function ht(){return!(void 0===dt||!dt||void 0===pt||!pt)}let ft=!1;const gt="katexCSS";function yt(t){const e=ht();if("undefined"!=typeof window){if(ft)return e;if(!e)return ft=!0,g.loadStyleSheet(gt),g.loadScript("katex").then(t=>(pt=y.interopDefault(window[t]),g.loadScript("renderMathInElement"))).then(e=>{dt=y.interopDefault(window[e]),"function"==typeof t&&t&&t(dt)}).catch(t=>{}),e}return"function"==typeof t&&t&&t(dt),e}function vt(t,e){if(ht()){const n=e.className,o=e.input,i=e.data,r=e.cssLink,a=e.options,s=e.element.ownerDocument;let u="";if(i instanceof Array)i.forEach(t=>{if(""===t)u+="<br>";else{const e=pt.renderToString(t,a);u+=r?`<div title="${o}" class="${n} css-katex" data-css="${r}">${e}</div>`:`<div title="${o}" class="${n}">${e}</div>`}});else{const t=pt.renderToString(i,a);u=r?`<div title="${o}" class="${n} css-katex" data-css="${r}">${t}</div>`:`<div title="${o}" class="${n}">${t}</div>`}e.element.parentNode.outerHTML=u,--mt,mt||dt(s.body,a),t(!0)}else setTimeout(()=>{vt(t,e)},10)}function wt(t,e,n){return new Promise(o=>{let i;const r=y.createElementMeta("katex",t,t=>{let e;i=t;const o=t.split(/\n[ \f\r\t\v]*\n/);return o.length>1?(e=[],o.forEach(t=>{""!==(t=t.trim())&&(t=n?ct(t):t),e.push(t)})):e=n?ct(i):i,e});if(!r)return o(!1);r.cssLink=g.getSrc(gt),r.input=i,r.options=e,vt(o,r)})}function xt(t){return t.replace(/[-[\]/{}()*+?.\\$^|]/g,"\\$&")}const bt=(t={})=>{let e={displayMode:!0,throwOnError:!1,errorColor:"#ff0000",delimiters:null,...t};function n(t,e){return!(!t||"object"!=typeof t||!t.hasOwnProperty(e))}function o(t,e,o){return!!(n(t,e)&&n(t[e],o)&&(i=t[e][o],Array.isArray(i)&&i.length))&&(t[e][o].forEach(t=>{t.display="inline"!==o,"asciimath"===e&&(t.asciimath=!0)}),t[e][o]);var i}return Array.isArray(e.delimiters)?e.delimiters.length||(e.delimiters=[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{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:!1},{left:"@@",right:"@@",display:!0,asciimath:!0},{left:"\\$",right:"\\$",display:!1,asciimath:!0}]):e.delimiters=[].concat(o(e.delimiters,"texmath","display")||[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{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}]).concat(o(e.delimiters,"texmath","inline")||[{left:"\\(",right:"\\)",display:!1}]).concat(o(e.delimiters,"asciimath","display")||[{left:"@@",right:"@@",display:!0,asciimath:!0}]).concat(o(e.delimiters,"asciimath","inline")||[{left:"\\$",right:"\\$",display:!1,asciimath:!0}]),e};function St(t){let e=0;const n=bt(t),o=n.delimiters.map(({left:t,right:n,display:o,asciimath:i})=>({test:RegExp(`${xt(t)}(.+?)${xt(n)}`,"g"),replacer:(t,n)=>(++e,i&&(n=ct(n)),o?`\\[${n}\\]`:`\\(${n}\\)`)}));return[{type:"output",config:n,filter:function(t){e=0;const i=t.wrapper;if(!i)return!1;o.length&&i.querySelectorAll(":not(code):not(pre)").forEach(t=>{[...t.childNodes].filter(t=>"#text"===t.nodeName&&t.nodeValue.trim()).forEach(t=>{const e=o.reduce((t,{test:e,replacer:n})=>t.replace(e,n),t.nodeValue);t.nodeValue=e})});const r=i.querySelectorAll("code.latex.language-latex"),a=i.querySelectorAll("code.asciimath.language-asciimath");if(!r.length&&!a.length){if(e>0){this.config.cssLink=g.getSrc(gt);const s=this;function u(t,e){ht()?(e(i.ownerDocument.body,s.config),t(!0)):setTimeout(()=>{u(t,e)},10)}return new Promise(t=>{yt(e=>{u(t,e)})}).then(()=>t)}return!1}return n.cssLink=g.getSrc(gt),function(t,e,n){return mt=t.length+e.length,yt(),new Promise(o=>{const i=[];t.forEach(t=>{i.push(wt(t,n,!1))}),e.forEach(t=>{i.push(wt(t,n,!0))}),Promise.all(i).then(()=>{o(!0)})})}(r,a,this.config).then(()=>t)}}]}const jt="echarts";if("undefined"==typeof window)throw Error(`The showdown ${jt} extension can only be used in browser environment!`);if(void 0===Et)var Et=window.echarts||void 0;function At(){return!!Et}let Ct=!1;function kt(t,e){if(At()){const n=e.id,o=e.container,i=e.className,r=e.element.parentNode;e.lang?(e.lang.width||(e.lang.width="400px"),e.lang.height||(e.lang.height="300px")):e.lang={width:"400px",height:"300px"};return r.outerHTML=`<div id="${o}" class="${i}" style="${`width:${e.lang.width}; height:${e.lang.height};`}"><div id="${n}" style="width:100%;height:100%;display:inline-block"></div></div>`,t(!0)}setTimeout(()=>{kt(t,e)},20)}function Ot(t,e,n){const o=y.createElementMeta(jt,t);if(!o)return Promise.resolve(!1);n={...n,ssr:!1},n=JSON.stringify(n);let i=`(function() {\n let el = document.getElementById('${o.id}');\n if (el){\n let chart = echarts.getInstanceByDom(el);\n if (!chart) {\n el.innerHTML = '';\n }\n let config = JSON.parse('${n}');\n chart = echarts.init(el, null, config);\n `;if(o.lang&&o.lang.type&&"string"==typeof o.lang.type&&"javascript"==o.lang.type.toLowerCase())i+=" "+o.data;else{i+=` const option = JSON.parse(\`${JSON.stringify(JSON.parse(o.data))}\`);`}i+="\n chart.setOption(option);\n }\n })();";return e.push({id:o.container,code:i}),new Promise(t=>{kt(t,o)})}function Lt(t,e,n){const o={outer:[{name:jt,src:g.getSrc(jt,"jsdelivr")}],inner:[]};return e.push(o),function(){const t=At();if("undefined"!=typeof window){if(Ct)return t;t||(Ct=!0,g.loadScript(jt).then(t=>{Et=y.interopDefault(window[t])}))}}(),new Promise(e=>{const i=[];t.forEach(t=>{i.push(Ot(t,o.inner,n))}),Promise.all(i).then(()=>{e(!0)})})}function $t(t){return[{type:"output",config:((t={})=>({renderer:"svg",ssr:!1,tooltip:{show:!0},animation:!0,useDirtyRect:!1,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll(`code.${jt}.language-${jt}`);return!!n.length&&Lt(n,t.scripts,this.config).then(()=>t)}}]}const Nt="mermaid";if("undefined"==typeof window)throw Error("The showdown mermaid extension can only be used in browser environment!");if(void 0===qt)var qt=window.mermaid||void 0;function Mt(){return!(void 0===qt||!qt)}let Dt=!1;function Pt(t,e){if(Mt()){const n=e.className,o=e.element.parentNode;return void qt.render(e.id,e.data).then(e=>{o.outerHTML=`<div class="${n}">${e.svg}</div>`,t(!0)})}setTimeout(()=>{Pt(t,e)},10)}function Tt(t){return new Promise(e=>{const n=y.createElementMeta(Nt,t);if(!n)return e(!1);Pt(e,n)})}function Ht(t,e){return function(t){const e=Mt();if("undefined"!=typeof window){if(Dt)return e;if(!e)return Dt=!0,g.loadScript(Nt).then(e=>{(qt=y.interopDefault(window[e])).initialize(t)}),e}qt.initialize(t)}(e),new Promise(e=>{const n=[];t.forEach(t=>{n.push(Tt(t))}),Promise.all(n).then(()=>{e(!0)})})}function zt(t){return[{type:"output",config:((t={})=>({theme:"forest",logLevel:4,startOnLoad:!1,arrowMarkerAbsolute:!1,flowchart:{curve:"basis"},gantt:{axisFormat:"%m/%d/%Y"},sequence:{actorMargin:50},...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.mermaid.language-mermaid");return!!n.length&&Ht(n,this.config).then(()=>t)}}]}function Bt(t,e,n){var o=(3&t)<<4|e>>4,i=(15&e)<<2|n>>6,r=63&n,a="";return a+=_t(63&t>>2),a+=_t(63&o),a+=_t(63&i),a+=_t(63&r)}function _t(t){return 10>t?String.fromCharCode(48+t):26>(t-=10)?String.fromCharCode(65+t):26>(t-=26)?String.fromCharCode(97+t):0==(t-=26)?"-":1==t?"_":"?"}function Ft(t){var e=t.charCodeAt(0);return"_"===t?63:"-"===t?62:97>e?65>e?48>e?"?":e-48:e-55:e-61}function Jt(t){var e=Ft(t[0]),n=Ft(t[1]),o=Ft(t[2]);return[e<<2|n>>4&63,n<<4&240|o>>2&15,o<<6&192|63&Ft(t[3])]}function Rt(t){return function(t){for(var e="",n=0;t.length>n;n+=3)e+=n+2==t.length?Bt(t.charCodeAt(n),t.charCodeAt(n+1),0):n+1==t.length?Bt(t.charCodeAt(n),0,0):Bt(t.charCodeAt(n),t.charCodeAt(n+1),t.charCodeAt(n+2));return e}(e.deflateRawSync(t,{level:9}).toString("binary"))}function It(t){return""+e.inflateRawSync(Buffer.from(function(t){var e="",n=0;for(n=0;t.length>n;n+=4){var o=Jt(t.substring(n,n+4));e+=String.fromCharCode(o[0]),e+=String.fromCharCode(o[1]),e+=String.fromCharCode(o[2])}return e}(t),"binary"))}const Vt={encodeuml:function(t){const e="@startuml",n="@enduml";return Rt(`${e}${(t.split(e)[1]+"").split(n)[0]||""}${n}`)},decodeuml:function(t){return It(t)}},Wt="img";let Ut=0;function Gt(t,e){return Ut=t.length,new Promise(n=>{const o=[];t.forEach(t=>{o.push(function(t,e){return new Promise(n=>{const o=t.dataset.lang,i=o?JSON.parse(o):null;let r="";if(i){if("boolean"==typeof i.codeblock&&i.codeblock||"string"==typeof i.codeblock&&"true"===i.codeblock.toLowerCase())return n(!1);i.align&&("center"===i.align?r="diagram-center":"right"===i.align&&(r="diagram-right"))}const a=t.textContent.trim(),s=(t.classList.length>0?t.classList[0]:"")+(t.className&&r?" ":"")+r,u=e.imageFormat;if("svg"!==u){const o=window&&window.location.protocol,i=("http:"===o||"https:"===o?"//":"https://")+e.umlWebSite,r=u!==Wt?"."+u:"",l=Vt.encodeuml(a);return t.parentNode.outerHTML=`<div class="${s}"><img src='${i}/${u}/${l}${r}' alt=''></img></div>`,n(!0)}{const o="plantuml-"+Date.now()+"-"+Math.floor(1e4*Math.random());if("function"==typeof e.svgRender&&e.svgRender)e.svgRender(o,s,a,Ut).then(e=>{t.parentNode.outerHTML=`<div id="${o}" class="${s}">${e}</div>`,n(!0)});else if("undefined"!=typeof window&&window.fetch&&window.dispatchEvent){const i=window&&window.location.protocol,r=("http:"===i||"https:"===i?"//":"https://")+e.umlWebSite,l=u!==Wt?"."+u:"",c=Vt.encodeuml(a);window.fetch(`${r}/${u}/${c}${l}`).then(t=>{if(t.ok)return t.text()}).then(e=>{t.parentNode.outerHTML=`<div id="${o}" class="${s}">${e}</div>`,n(!0)})}}})}(t,e))}),Promise.all(o).then(()=>{n(!0)})})}function Kt(t){return[{type:"output",config:((t={})=>({umlWebSite:"www.plantuml.com/plantuml",imageFormat:Wt,svgRender:null,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.plantuml.language-plantuml");return!!n.length&&Gt(n,this.config).then(()=>t)}}]}const Xt="railroad",Zt="railroadCSS";if("undefined"==typeof window)throw Error("The showdown railroad extension can only be used in browser environment!");let Qt=!1;function Yt(){return Qt}let te,ee=!1;function ne(t,e){if(Yt()){const n=e.id,o=e.className,i=e.cssLink,r=window.eval(e.data).format(),a=e.element.ownerDocument;return e.element.parentNode.outerHTML=i?`<div id="${n}" class="${o} css-railroad" data-css="${i}"></div>`:`<div id="${n}" class="${o}"></div>`,r.addTo(a.getElementById(n)),t(!0)}setTimeout(()=>{ne(t,e)},10)}function oe(t){return new Promise(e=>{const n=y.createElementMeta(Xt,t);if(!n)return e(!1);n.cssLink=g.getSrc(Zt),ne(e,n)})}function ie(t){return function(){const t=Yt();if("undefined"!=typeof window){if(ee)return t;t||(ee=!0,g.loadStyleSheet(Zt),g.loadScript(Xt).then(()=>{Qt=!0}))}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(oe(t))}),Promise.all(n).then(()=>{e(!0)})})}function re(){return[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.railroad.language-railroad");return!!n.length&&(this.config={cssLink:g.getSrc(Zt)},ie(n).then(()=>t))}}]}if("undefined"==typeof window)throw Error("The showdown sequence extension can only be used in browser environment!");if(void 0===ae)var ae=window.Raphael||void 0;if("undefined"!=typeof window&&window.Diagram&&(te=window.Diagram,window.Diagram.Signal))var se=window.Diagram;const ue=["simple","hand"];if(void 0===se&&"undefined"!=typeof window)se=window.SequenceJS;function le(){return!!ae}function ce(){return le()&&!!se}let pe=!1;const de="sequenceCSS";function me(t){const e=t.dataset.lang,n=e?JSON.parse(e):null;let o="";if(n){if("boolean"==typeof n.codeblock&&n.codeblock||"string"==typeof n.codeblock&&"true"===n.codeblock.toLowerCase())return;n.align&&("center"===n.align?o="diagram-center":"right"===n.align&&(o="diagram-right"))}const i=function(){const t=ce();if("undefined"!=typeof window){if(pe)return t;t||(pe=!0,g.loadStyleSheet(de),g.loadScript("WebFont").then(()=>le()?"Raphael":g.loadScript("Raphael")).then(t=>(ae=y.interopDefault(window[t]),g.loadScript("Snap"))).then(()=>g.loadScript("underscore")).then(()=>(!te&&window.Diagram&&(te=window.Diagram),g.loadScript("sequence"))).then(()=>{se=window.Diagram,window.SequenceJS=se,te&&(window.Diagram=te)}))}return t}(),r=g.getSrc(de),a=t.textContent.trim(),s="js-sequence"+(o?" ":"")+o,u="sequence-"+Date.now()+"-"+Math.floor(1e4*Math.random());t.id=u,r&&(t.className=t.className+(t.className?" ":"")+"css-sequence",t.dataset.css=r),!i&&"undefined"!=typeof window&&window.dispatchEvent?Promise.resolve(u).then(t=>{window.dispatchEvent(new CustomEvent("sequence",{detail:{id:t,className:s,data:a,langattr:e,cssLink:r}}))}):"undefined"!=typeof window&&window.dispatchEvent&&window.dispatchEvent(new CustomEvent("sequence",{detail:{id:u,className:s,data:a,langattr:e,cssLink:r}}))}function he(t){if(ce()){const e=t.id,n=t.className,o=t.data,i=t.cssLink;let r="hand";const a=t.langattr;if(a){const t=JSON.parse(a);t&&t.theme&&-1!=ue.indexOf(t.theme)&&(r=t.theme)}let s=window.document.getElementById(e);if(s){s.parentNode.outerHTML=i?`<div id="${e}" class="${n} css-sequence" data-css="${i}"></div>`:`<div id="${e}" class="${n}"></div>`,s=window.document.getElementById(e);return void se.parse(o).drawSVG(s||e,{theme:r})}}setTimeout(()=>{he(t)},10)}function fe(){let t=!1;const e=new DOMParser;return[{type:"output",filter:function(n){const o=e.parseFromString(n,"text/html"),i=void 0!==o.body?o.body:o,r=i.querySelectorAll("code.sequence.language-sequence");return r.length&&(t||"undefined"!=typeof window&&window.dispatchEvent&&(t=!0,window.addEventListener("sequence",t=>{t.detail&&he(t.detail)})),this.config={cssLink:g.getSrc(de)}),function(t){return!!t.length&&(t.forEach(t=>{me(t)}),!0)}(r)?i.innerHTML:n}}]}if("undefined"==typeof window)throw Error("The showdown wavedrom extension can only be used in browser environment!");if(void 0===ge)var ge=window.WaveDrom||void 0;let ye=0,ve=0;function we(){return!!ge}let xe=!1;function be(t,e){if(we()){const n=e.index,o=e.id,i=e.data;let r=e.element;return r.parentNode.outerHTML=y.renderCacheElement(r.ownerDocument,o+n,e.className,t=>{const e=window.eval(`(${i})`);ge.RenderWaveForm(n,e,o);const r=document.getElementById("WaveDrom_Display_"+n);if(t!=r)for(;r.childNodes.length;)t.appendChild(r.removeChild(r.childNodes[0]))}),t(!0)}setTimeout(()=>{be(t,e)},10)}function Se(t){return new Promise(e=>{const n=t.dataset.lang,o=n?JSON.parse(n):null;let i="";if(o){if("boolean"==typeof o.codeblock&&o.codeblock||"string"==typeof o.codeblock&&"true"===o.codeblock.toLowerCase())return;o.align&&("center"===o.align?i="diagram-center":"right"===o.align&&(i="diagram-right"))}const r=t.textContent.trim(),a=(t.classList.length>0?t.classList[0]:"")+(t.className&&i?" ":"")+i,s=ve;++ve,--ye,ye||(ve=0);const u="WaveDrom_Display_";t.id=u+s;be(e,{element:t,index:s,id:u,className:a,data:r})})}function je(t,e){return function(t){const e=we();xe||e||(xe=!0,"undefined"!=typeof window&&g.loadScript({WaveDromSkin:t}).then(()=>g.loadScript("WaveDrom")).then(t=>{ge=y.interopDefault(window[t])}))}(e),new Promise(e=>{const n=[];ye=t.length,t.forEach(t=>{n.push(Se(t))}),Promise.all(n).then(()=>{e(!0)})})}function Ee(t){return[{type:"output",config:((t={})=>({skin:"default",...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.wavedrom.language-wavedrom");return!!n.length&&(s("Begin render wavedrom elements."),je(n,this.config.skin).then(()=>(s("End render wavedrom elements."),t)))}}]}function Ae(){return[{type:"lang",filter:(t,e)=>t.replace(/^\[\^([\d\w]+)\]:\s*((\n+(\s{2,4}|\t).+)+)$/gm,(t,n,o,i,r)=>`<div class="footnote" id="footnote-${n}"><a href="#footnote-${n}"><sup>[${n}]</sup></a>:${e.makeHtml(o.replace(RegExp("^"+r,"gm"),""))}</div>`)},{type:"lang",filter:t=>t.replace(/^\[\^([\d\w]+)\]:( |\n)((.+\n)*.+)$/gm,(t,e,n,o)=>`<small class="footnote" id="footnote-${e}"><a href="#footnote-${e}"><sup>[${e}]</sup></a>: ${o}</small>`)},{type:"lang",filter:t=>t.replace(/\[\^([\d\w]+)\]/m,(t,e)=>`<a href="#footnote-${e}"><sup>[${e}]</sup></a>`)}]}function Ce(){return[{type:"lang",filter:(t,e)=>t.replace(/(?:^|\n)(?: {0,3})(:::+)(?: *)([\S]+)(?:[ \t]*)([^\s][\S\t ]*)?\n([\s\S]*?)\n(?: {0,3})\1(?:[ \t]*)\n/g,function(t,n,o,i,r){if(o){let t=o.split("-");t.length>1?t.forEach(function(t,e,n){e>0&&(n[e]=n[e-1]+"-"+t)}):t.unshift("container"),o=t.join(" ")}return r&&(r=e.makeHtml(r)),`<div class="showdown-container ${o}">${i=i?`<p class="container-title">${i}</p>`:""}${r}</div>`})}]}if("undefined"==typeof window)throw Error("The showdown flowchart extension can only be used in browser environment!");if(void 0===ke)var ke=window.Raphael||void 0;if(void 0===Oe)var Oe=window.flowchart||void 0;function Le(){return!(void 0===ke||!ke||void 0===Oe||!Oe)}let $e=!1;function Ne(){const t=Le();if("undefined"!=typeof window){if($e)return t;if(!t){if($e=!0,!ke)return g.loadScript("Raphael").then(t=>(ke=y.interopDefault(window[t]),g.loadScript("flowchart"))).then(t=>{Oe=y.interopDefault(window[t])}),t;g.loadScript("flowchart").then(t=>{Oe=y.interopDefault(window[t])})}}return t}function qe(t,e){if(Le()){const n=e.data,o=e.options;return e.element.parentNode.outerHTML=y.renderCacheElement(e.element.ownerDocument,e.id,e.className,t=>{Oe.parse(n).drawSVG(t,o)}),void t(!0)}setTimeout(()=>{qe(t,e)},10)}function Me(t,e){return new Promise(n=>{const o=y.createElementMeta("flowchart",t);if(!o)return n(!1);o.options=e,qe(n,o)})}function De(t){const e=((t={})=>({"line-width":3,maxWidth:3,"line-length":50,"text-margin":10,"font-size":14,font:"normal","font-family":"Helvetica","font-weight":"normal","font-color":"black","line-color":"black","element-color":"black",fill:"white","yes-text":"yes","no-text":"no","arrow-end":"block",scale:1,symbols:{start:{"font-color":"red","element-color":"green",fill:"yellow"},end:{class:"end-element"}},flowstate:{past:{fill:"#CCCCCC","font-size":12},current:{fill:"yellow","font-color":"red","font-weight":"bold"},future:{fill:"#FFFF99"},request:{fill:"blue"},invalid:{fill:"#444444"},approved:{fill:"#58C4A3","font-size":12,"yes-text":"APPROVED","no-text":"n/a"},rejected:{fill:"#C45879","font-size":12,"yes-text":"n/a","no-text":"REJECTED"}},...t}))(t);return[{type:"output",config:e,filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.flowchart.language-flowchart"),o=e.querySelectorAll("code.flow.language-flow");return!(!n.length&&!o.length)&&function(t,e,n){return Ne(),new Promise(o=>{const i=[];t.forEach(t=>{i.push(Me(t,n))}),e.forEach(t=>{i.push(Me(t,n))}),Promise.all(i).then(()=>{o(!0)})})}(n,o,this.config).then(()=>t)}}]}const Pe=(t={})=>({flavor:"github",...t}),Te=(t,e,n)=>{if(!t||!e||"undefined"==typeof document)return!1;let o=document.getElementById(t);o||(n?"string"==typeof n&&(n=document.querySelector(n)):n=document.body,o=n);const i="script-"+t;let r=document.querySelector(`${o.tagName} > #${i}`);return r||(r=document.createElement("script"),r.id=i,r.type="text/javascript",r.text=e,o.appendChild(r)),!0};function He(t,e){return new Promise((n,o)=>{t&&e&&"undefined"!=typeof document||o("Args is invaild!");const i="script-"+t.toLowerCase();let r=document.getElementById(i);if(r)return n(t);const a=document.head||document.getElementsByTagName("head")[0];r=document.createElement("script"),r.src=e,r.id=i,r.onload=()=>{n(t)},a.appendChild(r)})}const ze=["github","ghost","vanilla","original","allon"],Be=["default","forest","dark","neutral"],_e=["excel","ggplot2","quartz","vox","dark"],Fe=["canvas","svg"],Je=["svg","png","jpg"],Re={showdown:t,converter:null,defaultOptions:{showdown:Pe(),plantuml:{imageFormat:"svg"},mermaid:{theme:"default"},katex:{},vega:{theme:"vox"}},defaultExtensions:{},defaultAsyncExtensions:{},markdownDecodeFilter:function(t){return""},initDefaultOptions:function(){this.defaultOptions||(this.defaultOptions={showdown:{},plantuml:{},mermaid:{},katex:{},vega:{}})},setFlavor:function(t){this.showdown.setFlavor(t),this.converter&&this.converter.setFlavor(t)},addOptions:function(t){for(const e in t)"flavor"!==e&&(this.showdown.setOption(e,t[e]),this.converter&&this.converter.setOption(e,t[e]))},addExtension:function(e,n){if(this.removeExtension(e),"string"==typeof e)try{t.extension(e,n),this.converter&&this.converter.addExtension(e)}catch(t){}},removeExtension:function(e){if("string"==typeof e){if(this.converter){let n=null;try{n=t.extension(e)}catch(t){}if(!n)return;this.converter.removeExtension(n)}t.removeExtension(e)}},addAsyncExtension:function(e,n){if(this.removeAsyncExtension(e),"string"==typeof e)try{t.asyncExtension(e,n),this.converter&&this.converter.addAsyncExtension(e)}catch(t){}},removeAsyncExtension:function(e){if("string"==typeof e){if(this.converter){let n=null;try{n=t.asyncExtension(e)}catch(t){}if(!n)return;this.converter.removeAsyncExtension(n)}t.removeAsyncExtension(e)}},setCDN:function(t,e,n){"string"==typeof t&&t&&g.setCDN(t,e,n)},setShowdownFlavor:function(t){this.initDefaultOptions(),t&&(-1===ze.indexOf(t)&&(t="github"),this.defaultOptions.showdown.flavor=t,this.setFlavor(t))},setShowdownOptions:function(t){return this.initDefaultOptions(),"object"==typeof t&&t||(t={}),this.defaultOptions.showdown=Object.assign(this.defaultOptions.showdown||{},t),this.setShowdownFlavor(this.defaultOptions.showdown.flavor),this.addOptions(this.defaultOptions.showdown),this.defaultOptions.showdown},setPlantumlOptions:function(t){this.initDefaultOptions(),"object"==typeof t&&t||(t={}),this.defaultOptions.plantuml=Object.assign(this.defaultOptions.plantuml||{},t);const e=this.defaultOptions.plantuml.imageFormat;return e&&-1===Je.indexOf(e)&&(this.defaultOptions.plantuml.imageFormat="png"),this.converter&&this.addAsyncExtension("showdown-plantuml",Kt(this.defaultOptions.plantuml)),this.defaultOptions.plantuml},setMermaidOptions:function(t){this.initDefaultOptions(),"object"==typeof t&&t||(t={}),this.defaultOptions.mermaid=Object.assign(this.defaultOptions.mermaid||{},t);const e=this.defaultOptions.mermaid.theme;return e&&-1===Be.indexOf(e)&&(this.defaultOptions.mermaid.theme="default"),this.converter&&this.addAsyncExtension("showdown-mermaid",zt(this.defaultOptions.mermaid)),this.defaultOptions.mermaid},setKatexOptions:function(t){return this.initDefaultOptions(),"object"==typeof t&&t||(t={}),this.defaultOptions.katex=Object.assign(this.defaultOptions.katex||{},t),this.converter&&this.addAsyncExtension("showdown-katex",St(this.defaultOptions.katex)),this.defaultOptions.katex},setVegaOptions:function(t){this.initDefaultOptions(),"object"==typeof t&&t||(t={}),this.defaultOptions.vega=Object.assign(this.defaultOptions.vega||{},t);const e=this.defaultOptions.vega.theme;e&&-1===_e.indexOf(e)&&(this.defaultOptions.vega.theme="vox");const n=this.defaultOptions.vega.renderer;return n&&-1===Fe.indexOf(n)&&(this.defaultOptions.vega.renderer="canvas"),this.converter&&this.addAsyncExtension("showdown-vega",W(this.defaultOptions.vega)),this.defaultOptions.vega},init:function(e){if(this.converter){let t={};if(t="boolean"==typeof e&&e?{option:!0,extension:!0}:e,"object"==typeof t){if(t.hasOwnProperty("option")&&t.option){const t=Pe(this.defaultOptions&&this.defaultOptions.showdown||{});this.addOptions(t)}t.hasOwnProperty("extension")&&t.extension&&(this.addAsyncExtension("showdown-plantuml",Kt(this.defaultOptions.plantuml)),this.addAsyncExtension("showdown-mermaid",zt(this.defaultOptions.mermaid)),this.addAsyncExtension("showdown-vega",W(this.defaultOptions.vega)))}}else{const e=Pe(this.defaultOptions&&this.defaultOptions.showdown||{}),n=((e,n={})=>{const o={"showdown-toc":$,"showdown-align":U,"showdown-footnotes":Ae,"showdown-container":Ce,"showdown-sequence":fe,...n};let i=[];for(let e in o)o.hasOwnProperty(e)&&(t.extension(e,o[e]),i.push(e));return i})(0,this.defaultExtensions),o=((e,n={})=>{const o=e&&e.mermaid||{},i=e&&e.plantuml||{},r=e&&e.katex||{},a=e&&e.vega||{},s={"showdown-toc":$(),"showdown-plantuml":Kt(i),"showdown-mermaid":zt(o),"showdown-katex":St(r),"showdown-flowchart":De,"showdown-viz":z,"showdown-vega":W(a),"showdown-wavedrom":Ee,"showdown-railroad":re,"showdown-abc":C,"showdown-echarts":$t,...n};let u=[];for(let e in s)s.hasOwnProperty(e)&&(t.asyncExtension(e,s[e]),u.push(e));return u})(this.defaultOptions,this.defaultAsyncExtensions);this.setFlavor(e.flavor),this.converter=new t.Converter({extensions:n}).initConvertExtObj(e.flavor,o),this.addOptions(e)}return this},makeHtml:function(e,n){let o="";if("object"==typeof e){if("string"==typeof e.content)if("string"==typeof e.type)if("zip"===e.type)o=this.zDecode(e.content);else o=this.markdownDecodeFilter(e)||e.content;else o=e.content}else o=e;if(this.converter&&o){function i(e,n,o){const i=e.querySelector(n);let r="";if(i)r=i.dataset.css;else{let e;try{e=t.extension(o)}catch{}if(!e)try{e=t.asyncExtension(o)}catch{}if(e)if(Array.isArray(e)){for(var a=0;e.length>a;++a)if(e[a].hasOwnProperty("config")&&e[a].config.hasOwnProperty("cssLink")){r=e[a].config.cssLink;break}}else"object"==typeof e&&e.hasOwnProperty("config")&&e.config.hasOwnProperty("cssLink")&&(r=e.config.cssLink)}return r}function r(t){const e=t.wrapper;return!!e&&new Promise(o=>{const r=i(e,".css-abc","showdown-abc"),a=i(e,".css-katex","showdown-katex"),s=i(e,".css-railroad","showdown-railroad"),u=i(e,".css-sequence","showdown-sequence");return t.cssTypes={hasAbc:!!r,hasKatex:!!a,hasRailroad:!!s,hasSequence:!!u,css:{abc:r,katex:a,railroad:s,sequence:u}},"function"==typeof n&&n&&n(t.cssTypes),o(t)})}return this.converter.asyncMakeHtml(o,r).then(e=>{if(o=`<div class='showdowns'>${e.html}</div>`,e.extras){let n=e.extras;t.helper.isArray(n)||(n=[n]);for(let t=0;n.length>t;++t)"string"==typeof n[t]&&(o+=n[t])}return{html:o,scripts:e.scripts}})}return Promise.reject(o?"Converter is invaild.":"Content is empty.")},completedHtml:function(e,n){t.helper.isArray(e)||(e=[e]);const o=function(e,n){let o=n;if(e.host&&"string"==typeof e.host&&(o=document.querySelector(e.host)),!e.inner)return!e.code||("function"==typeof e.code?(e.code(),!0):Te(e.id,e.code,o));if(t.helper.isArray(e.inner)||(e.inner=[e.inner]),e.code&&("function"==typeof e.code?e.code():((t,e,n)=>{if(!t||!e||"undefined"==typeof document)return!1;let o=document.getElementById(t);o||(n?"string"==typeof n&&(n=document.querySelector(n)):n=document.body,o=n);const i="script-"+t;let r=document.querySelector(`${o.tagName} > #${i}`);r||(r=document.createElement("script"),r.id=i,r.type="text/javascript",r.text=e,o.insertBefore(r,o.children[0]))})(e.id,e.code,o)),e.inner.length>0)for(let t=0;e.inner.length>t;++t){const n=e.inner[t];if(!n.code)continue;if("function"==typeof n.code){n.code();continue}let i=o;n.host&&"string"==typeof n.host&&(i=document.querySelector(n.host)),Te(n.id,n.code,i)}return!0};return new Promise((i,r)=>{"string"==typeof n&&(n=document.querySelector(n));for(let i=0;e.length>i;++i){const a=e[i];if(a.outer){t.helper.isArray(a.outer)||(a.outer=[a.outer]);let e=a.outer[0],i=He(e.name,e.src);for(let t=1;a.outer.length>t;++t)i=i.then(()=>(e=a.outer[t],He(e.name,e.src)));i.then(()=>{o(a,n)});continue}if(!o(a,n))return r("Args is invaild!")}i(!0)})},zDecode:function(t){return""+e.inflateRawSync(Buffer.from(t,"base64"))},zEncode:function(t){return e.deflateRawSync(t,{level:9}).toString("base64")}};module.exports=Re;
7
7
  //# sourceMappingURL=showdowns.core.min.js.map