@jhuix/showdowns 0.7.1 → 0.7.3

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.7.1
2
+ * showdowns.core.min.js v0.7.3
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 s(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,s),this.addAsyncExtension=function(t,e){s(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 s in e)e.hasOwnProperty(s)&&(o[s]=e[s])},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 s=0;e.length>s;++s){const t=e[s];for(var r=0;o.length>r;++r)o[r]===t&&o.splice(r,1);for(var a=0;i.length>a;++a)i[a]===t&&i.splice(a,1)}},this.asyncMakeHtml=function(t,e){const n=`<div class='showdowns'>${this.makeHtml(t)}</div>`,o=this.extObj.getAsyncExtensions();if(!o.length)return Promise.resolve({html:n});var i={outputs:o,converter:this};const s=(new DOMParser).parseFromString(n,"text/html"),r=void 0!==s.body?s.body:s,a=r.firstChild,l=this.getOptions();let u=Promise.resolve({wrapper:a,options:l,globals:i,scripts:[],extras:[],symbols:[],cssLinks:[]});return o.forEach(function(t){u=u.then(e=>{const n=t.filter(e);return n||e})}),u.then(t=>{if(t.symbols.length>0){const e=`<div id="global-showdowns-svgs" class="none hidden"><svg xmlns="http://www.w3.org/2000/svg">${t.symbols.join("")}</svg></div>`;t.extras.unshift(e)}if("function"==typeof e&&e){const n=e(t);if(n instanceof Promise)return n.then(t=>(r.replaceChildren(),{html:t.wrapper,extras:t.extras,scripts:t.scripts,cssLinks:t.cssLinks}))}return r.replaceChildren(),{html:t.wrapper,extras:t.extras,scripts:t.scripts,cssLinks:t.cssLinks}})},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,s,r,a){var l=n.omitExtraWLInCodeBlocks?"":"\n";return a=t.subParser("encodeCode")(a,n,o),a="<pre><code"+(s?' class="'+s+" language-"+s+'"':"")+(r?` data-lang='${r}'`:"")+">"+(a=(a=(a=t.subParser("detab")(a,n,o)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+l+"</code></pre>",a=t.subParser("hashBlock")(a,n,o),"\n\n¨G"+(o.ghCodeBlocks.push({text:e,codeblock:a})-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 s(e,i){var s="";return e=e.trim(),(n.tablesHeaderId||n.tableHeaderId)&&(s=' id="'+e.replace(/ /g,"_").toLowerCase()+'"'),"<th"+s+i+">"+(e=t.subParser("spanGamut")(e,n,o))+"</th>\n"}function r(e,i,s,r,a){if(n.tablesMerge){var l=function(t,e,o,i){if(i){if(!n.tablesRowspan||"^^"!==i||!e)return;for(var s=e-1;s>=0;--s)if(t[s][o]){if("^^"!==t[s][o])return t[s][o]=t[s][o].replace(/rowspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(t,n,o){return n+' rowspan="'+(e-s+1)+'"'+o}),i;if(0===s)return t[s][o]='<td rowspan="'+(e-s+1)+'"></td>\n',i}else for(var r=o-1;r>=0;-r){if(t[s+1][r]&&"^^"!==t[s+1][r])return;if(t[s][r]){if(!t[s+1][r])return;return t[s][r]=t[s][r].replace(/rowspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(t,n,o){return n+' rowspan="'+(e-s+1)+'"'+o}),i}}}else if(o)for(r=o-1;r>=0;--r)if(t[e][r]){if("^^"!==t[e][r])return t[e][r]=t[e][r].replace(/colspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(t,e,n){return e+' colspan="'+(o-r+1)+'"'+n}),i;for(s=e-1;s>=0;--s){if(t[s][r+1])return;if("^^"!==t[s][r])return t[s][r]=t[s][r].replace(/colspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(t,e,n){return e+' colspan="'+(o-r+1)+'"'+n}),i}}else if(0===r)return t[e][r]='<td colspan="'+(o-r+1)+'"></td>\n',i}(e,i,s,r);if(!t.helper.isUndefined(l))return l}return r=r.trim(),"<td"+a+">"+t.subParser("spanGamut")(r,n,o)+"</td>\n"}function a(e,a){var l,u=e.split("\n");for(l=0;u.length>l;++l)/^ {0,3}\|/.test(u[l])&&(u[l]=u[l].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(u[l])&&(u[l]=u[l].replace(/\|[ \t]*$/,"")),u[l]=t.subParser("codeSpans")(u[l],n,o);var c=[],d=[],p=[],h=[],m=[];if(a)for(c=u[0].split("|").map(function(t){return t.trim()}),u.shift(),l=0;c.length>l;++l)h.push(i(c[l]));else{var f=u[0].split("|").map(function(t){return t.trim()});if(c=u[1].split("|").map(function(t){return t.trim()}),u.shift(),u.shift(),c.length>f.length)return e;for(l=0;c.length>l;++l)h.push(i(c[l]));for(l=0;f.length>l;++l)t.helper.isUndefined(h[l])&&(h[l]=""),p.push(s(f[l],h[l]))}for(l=0;u.length>l;++l)""!==u[l].trim()&&d.push(u[l].split("|").map(function(t){var e=t.trim();return""===e&&t.length>0?t:e}));for(l=0;d.length>l;++l){var g=[];m.push(g);for(var y=0;h.length>y;++y)t.helper.isUndefined(d[l][y])&&(d[l][y]=""),g.push(r(m,l,y,d[l][y],h[y]))}return function(t,e,o){var i="<table>\n",s=e.length;if(t.length){i+="<thead>\n<tr>\n";for(var r=0;t.length>r;++r)i+=t[r];i+="</tr>\n</thead>\n"}for(i+="<tbody>\n",r=0;o.length>r;++r){i+="<tr>\n";for(var a=0;s>a;++a)n.tablesMerge&&"^^"===o[r][a]||(i+=o[r][a]);i+="</tr>\n"}return i+"</tbody>\n</table>\n"}(p,h,m)}function l(t){return a(t,!1)}function u(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,l)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,l),n.tablesHeaderless&&(e=(e=e.replace(/^ {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,u)).replace(/^ {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,u)),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 s=t.setFlavor,r=t.getFlavorOptions;function a(t){return`${(new Date).Format("yyyy-MM-dd HH:mm:ss.S")} ${t}`}t.setFlavor=function(e){try{if(s(e),n=e,!o.hasOwnProperty(e))return}catch{if(!o.hasOwnProperty(e))return;t.resetOptions(),n=e}var i=o[e];for(var r in i)i.hasOwnProperty(r)&&(t.getOptions()[r]=i[r])},t.getFlavor=function(){return n},t.setFlavorOptions=function(t,e){e&&(o[t]=Object.assign(o[t]||{},e))},t.getFlavorOptions=function(e){const n=r(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 l="jsdelivr",u="file:"===document.location.protocol?"https://":document.location.protocol+"//",c="",d="",p="";const h={local:{ABCJS:{src:"../node_modules/abcjs/dist/abcjs-basic.js",css:"../node_modules/abcjs/abcjs-audio.css"},echarts:"../node_modules/echarts/dist/echarts.js",Viz:"../node_modules/@viz-js/viz/dist/viz-global.js",Raphael:"../node_modules/raphael/raphael.min.js",flowchart:"../dist/diagrams/flowchart/flowchart.min.js",mermaid:{src:"../node_modules/mermaid/dist/mermaid.js",plugins:{"mermaid-zenuml":"../node_modules/@mermaid-js/mermaid-zenuml/dist/mermaid-zenuml.min.js","mermaid-mindmap":"../node_modules/@mermaid-js/mermaid-mindmap/dist/mermaid-mindmap.min.js","mermaid-layout-elk":{type:"module",module:"../node_modules/@mermaid-js/layout-elk/dist/mermaid-layout-elk.esm.min.mjs"}}},katex:{src:"../node_modules/katex/dist/katex.min.js",css:"../node_modules/katex/dist/katex.min.css"},renderMathInElement:"../node_modules/katex/dist/contrib/auto-render.js",MathJax:"../node_modules/mathjax/tex-mml-svg.js",railroad:{src:"../node_modules/railroad-diagrams/railroad-diagrams.js",css:"../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:{src:"../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.js",css:"../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.css"},WaveDrom:{src:"../node_modules/wavedrom/wavedrom.min.js",skin:{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",Plotly:"../node_modules/plotly.js-dist-min/plotly.min.js",Shiki:{type:"module",src:"../node_modules/@jhuix/shiki-loader/dist/index.js"},AntVInfographic:"../node_modules/@antv/infographic/dist/infographic.min.js",zenuml:"../node_modules/@zenuml/core/dist/zenuml.js"},unpkg:{ABCJS:{src:"https://unpkg.com/abcjs/dist/abcjs-basic-min.js",css:"https://unpkg.com/abcjs/dist/abcjs-audio.css"},echarts:"https://unpkg.com/echarts/dist/echarts.min.js",Viz:"https://unpkg.com/@viz-js/viz/dist/viz-global.js",Raphael:"https://unpkg.com/raphael/raphael.min.js",flowchart:"../dist/diagrams/flowchart/flowchart.min.js",mermaid:{src:"https://unpkg.com/mermaid/dist/mermaid.min.js",plugins:{"mermaid-layout-elk":{type:"module",module:"https://unpkg.com/@mermaid-js/layout-elk/dist/mermaid-layout-elk.esm.min.mjs"},"mermaid-zenuml":"https://unpkg.com/@mermaid-js/mermaid-zenuml/dist/mermaid-zenuml.min.js","mermaid-mindmap":"https://unpkg.com/@mermaid-js/mermaid-mindmap/dist/mermaid-mindmap.min.js"}},katex:{src:"https://unpkg.com/KaTeX/dist/katex.min.js",css:"https://unpkg.com/KaTeX/dist/katex.min.css"},renderMathInElement:"https://unpkg.com/KaTeX/dist/contrib/auto-render.js",MathJax:"https://unpkg.com/mathjax/tex-mml-svg.js",railroad:{src:"https://unpkg.com/railroad-diagrams/railroad-diagrams.js",css:"https://unpkg.com/railroad-diagrams/railroad-diagrams.css"},Snap:"https://unpkg.com/snapsvg/dist/snap.svg-min.js",WebFont:"https://unpkg.com/webfontloader/webfontloader.js",underscore:"https://unpkg.com/underscore/underscore-min.js",sequence:{src:"https://unpkg.com/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.js",css:"https://unpkg.com/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.css"},WaveDrom:{src:"https://unpkg.com/wavedrom/wavedrom.min.js",skin:{default:"https://unpkg.com/wavedrom/skins/default.js",lowkey:"https://unpkg.com/wavedrom/skins/lowkey.js",narrow:"https://unpkg.com/wavedrom/skins/narrow.js"}},vega:"https://unpkg.com/vega/build/vega.min.js",vegaLite:"https://unpkg.com/vega-lite/build/vega-lite.min.js",vegaEmbed:"https://unpkg.com/vega-embed/build/vega-embed.min.js",Plotly:"https://unpkg.com/plotly.js/dist/plotly.min.js",Shiki:{type:"module",module:"https://esm.sh/shiki"},AntVInfographic:"https://unpkg.com/@antv/infographic/dist/infographic.min.js",zenuml:"https://unpkg.com/@zenuml/core/dist/zenuml.js"},jsdelivr:{ABCJS:{src:"https://cdn.jsdelivr.net/npm/abcjs/dist/abcjs-basic-min.js",css:"https://cdn.jsdelivr.net/npm/abcjs/abcjs-audio.css"},echarts:"https://cdn.jsdelivr.net/npm/echarts/dist/echarts.min.js",Viz:"https://cdn.jsdelivr.net/npm/@viz-js/viz/dist/viz-global.js",Raphael:"https://cdn.jsdelivr.net/npm/raphael/raphael.min.js",flowchart:"../dist/diagrams/flowchart/flowchart.min.js",mermaid:{type:"module",module:"https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.esm.min.mjs",plugins:{"mermaid-layout-elk":"https://cdn.jsdelivr.net/npm/@mermaid-js/layout-elk/dist/mermaid-layout-elk.esm.min.mjs","mermaid-zenuml":"https://cdn.jsdelivr.net/npm/@mermaid-js/mermaid-zenuml/dist/mermaid-zenuml.esm.min.mjs","mermaid-mindmap":"https://cdn.jsdelivr.net/npm/@mermaid-js/mermaid-mindmap/dist/mermaid-mindmap.esm.min.mjs"}},katex:{src:"https://cdn.jsdelivr.net/npm/katex/dist/katex.min.js",css:"https://cdn.jsdelivr.net/npm/katex/dist/katex.min.css"},renderMathInElement:"https://cdn.jsdelivr.net/npm/katex/dist/contrib/auto-render.js",MathJax:"https://cdn.jsdelivr.net/npm/mathjax/tex-mml-svg.js",railroad:{src:"https://cdn.jsdelivr.net/npm/railroad-diagrams/railroad-diagrams.min.js",css:"https://cdn.jsdelivr.net/npm/railroad-diagrams/railroad-diagrams.css"},Snap:"https://cdn.jsdelivr.net/npm/snapsvg/dist/snap.svg-min.js",WebFont:"https://cdn.jsdelivr.net/npm/webfontloader/webfontloader.js",underscore:"https://cdn.jsdelivr.net/npm/underscore/underscore-min.js",sequence:{src:"https://cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.js",css:"https://cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.css"},WaveDrom:{src:"https://cdn.jsdelivr.net/npm/wavedrom/wavedrom.min.js",skin:{default:"https://cdn.jsdelivr.net/npm/wavedrom/skins/default.js",lowkey:"https://cdn.jsdelivr.net/npm/wavedrom/skins/lowkey.js",narrow:"https://cdn.jsdelivr.net/npm/wavedrom/skins/narrow.js"}},vega:"https://cdn.jsdelivr.net/npm/vega/build/vega.min.js",vegaLite:"https://cdn.jsdelivr.net/npm/vega-lite/build/vega-lite.min.js",vegaEmbed:"https://cdn.jsdelivr.net/npm/vega-embed/build/vega-embed.min.js",Plotly:"https://cdn.jsdelivr.net/npm/plotly.js-dist-min/plotly.min.js",Shiki:{type:"module",module:"https://cdn.jsdelivr.net/npm/shiki/+esm"},AntVInfographic:"https://cdn.jsdelivr.net/npm/@antv/infographic/dist/infographic.min.js",zenuml:"https://cdn.jsdelivr.net/npm/@zenuml/core/dist/zenuml.min.js"}};function m(){return l}function f(t,e){return t||e.startsWith("http://")||e.startsWith("https://")||e.startsWith(u)?e:e.startsWith("../dist/")?d+e:c+e}function g(t,e,n){if(void 0!==n&&n&&"default"!==n||(n=m()),h.hasOwnProperty(n)){const o=h[n][e];if(o){if("string"==typeof o)return{src:f(t,o)};if(o.src&&(o.src=f(t,o.src)),o.module&&(o.module=f(t,o.module)),o.css)if("string"==typeof o.css)o.css=f(t,o.css);else for(const[e,n]of Object.entries(o.css))o.css[e]=f(t,n);if(o.skin)if("string"==typeof o.skin)o.skin=f(t,o.skin);else for(const[e,n]of Object.entries(o.skin))o.skin[e]=f(t,n);if(o.plugins)for(const[e,n]of Object.entries(o.plugins))"string"!=typeof n?(n.src&&(o.plugins[e].src=f(t,n.src)),n.module&&(o.plugins[e].module=f(t,n.module))):o.plugins[e]=f(t,n);if(o.src||o.module)return o}}}function y(t,e){const n="css-"+t.toLowerCase();let o=document.getElementById(n);var i=document.head||document.getElementsByTagName("head")[0];o&&o.remove(),o=document.createElement("link"),o.id=n,o.rel="stylesheet",o.href=e,i.appendChild(o)}function w(t,e){return new Promise(n=>{const o=t.toLowerCase(),i="script-"+o;if(!document.getElementById(i)){var s=document.head||document.getElementsByTagName("head")[0],r=document.createElement("script");if(r.id=i,"string"==typeof e)r.src=e;else{if(e.type&&(r.type=e.type,"module"===e.type&&e.module)){const n=o.replaceAll(/[-@+.]/g,"");r.textContent=`\nimport * as ${n} from '${e.module}';\nif (!('${t}' in window)) {\n if ('default' in ${n} && ${n}['default']) {\n window['${t}'] = ${n}['default']\n } else {\n window['${t}'] = ${n};\n }\n}\nconst s = document.querySelector('#${i}');\nif (s && s.onload) {\n s.onload();\n}\n`}e.src&&(r.src=e.src)}return r.onload=()=>{n(t)},void s.appendChild(r)}n(t)})}function v(t,e,n){const o=t.toLowerCase(),i="script-"+o;let s=document.getElementById(i);if(s)return n(t);const r=document.head||document.getElementsByTagName("head")[0];s=document.createElement("script"),s.id=i;let a=!1;if(e.type&&(s.type=e.type,"module"===e.type&&e.module)){a=!0;let r="",l="";if(s.onloaded=e=>{n(e||t)},e.plugins){const n=[];for(const[t,o]of Object.entries(e.plugins)){n.push(`'${t}'`);const e=t.toLowerCase().replaceAll(/[-@+.]/g,"");r+=`import * as ${e} from '${o}';\nif (!('${t}' in window)) {\n if ('default' in ${e} && ${e}['default']) {\n window['${t}'] = ${e}['default']\n } else {\n window['${t}'] = ${e};\n }\n}\n`}n.length>0&&(l=`['${t}',${n.join(",")}]`)}const u=o.replaceAll(/[-@+.]/g,"");s.textContent=`\nimport * as ${u} from '${e.module}';\nif (!('${t}' in window)) {\n if ('default' in ${u} && ${u}['default']) {\n window['${t}'] = ${u}['default']\n } else {\n window['${t}'] = ${u};\n }\n}\n${r}\nconst s = document.querySelector('#${i}');\nif (s && s.onloaded) {\n s.onloaded(${l});\n}\n`}e.src&&(s.src=e.src),e.defer&&(s.defer=!0),a||(s.onload=e.plugins?()=>{const o=[];o.push(new Promise(e=>{e(t)}));for(const[t,n]of Object.entries(e.plugins))o.push(w(t,n));Promise.all(o).then(t=>{n(t)})}:()=>{n(t)}),r.appendChild(s)}function x(t){const e=document.getElementById("css-"+t.toLowerCase());e&&e.remove()}const b={setCDN:function(t,e,n,o){t in h&&(l=t),"string"==typeof e&&e&&(c=e),"string"==typeof n&&n&&(d=n),"string"==typeof o&&o&&("/"!==p.at(p.length-1)&&(o+="/"),p=o)},getCDN:m,getCSS:function(t,e,n,o){const i=g(t,e,n);if(i)return i.css},getSrc:function(t,e,n){const o=g(t,e,n);if(o)return o.src},getUrl:function(t){try{const e=new URL(t);if("dist:"===e.protocol)return t="../dist/"===(t=t.substring(e.protocol.length+2)).substring(0,8)?d+t:c+t;if("file:"===e.protocol&&p){return t=new URL(p).origin+"/"+t.substring(8)}}catch{if(p){const e="./";t.substring(0,e.length)===e&&(t=t.substring(e.length)),t=p+t}}return t},getModule:g,loadScript:function(t,e,n,o){return new Promise((i,s)=>{if(!t||"undefined"==typeof document)return s("Args is invaild!");e||(e="");const r=g(!1,t,e);if(!r)return s(t+" script source invaild!");if(r.css&&("string"==typeof r.css?y(t,r.css):n&&n.length>0&&n in r.css&&y(t,r.css[n])),r.skin){let e="";if("string"==typeof r.skin?(e=r.skin,o="skin"):o&&o.length>0&&o in r.skin&&(e=r.skin[o]),e.length>0)return void w(t+"-"+o,e).then(()=>{v(t,r,i)})}v(t,r,i)})},unloadScript:function(t,e){const n=document.querySelectorAll(`[id^="script-${t.toLowerCase()}"]`);n&&n.forEach(t=>{t.remove()}),e&&e.length||(e="skin");const o=document.getElementById("script-"+t.toLowerCase()+"-"+e.toLowerCase());o&&o.remove(),x(t)},loadStyleSheet:function(t,e,n){if(!t||"undefined"==typeof document)return"";const o=g(!1,t,e);if(!o||!o.css)return"";let i="";return"string"==typeof o.css?i=o.css:n&&n in o.css&&(i=o.css[n]),i.length>0&&y(t,o.css[n]),"local"===e?"":i},unloadStyleSheet:x};function k(t){if(!t||"string"!=typeof t)return null;try{return JSON.parse(t)}catch(e){let n=null;return t.replace(/^\{(.*)\}$/,"$1").split(",").forEach(t=>{const e=t.split("=");if(2===e.length){n||(n={});const t=e[0].trim().replace(" ","-");let o=e[1].trim();o="true"===o.toLowerCase()||"false"!==o.toLowerCase()&&(isNaN(o)?o.replace(/^"(.*)"$/,"$1"):Number(o)),n[t]=o}}),n}}function E(t){let e=0;for(let n=0;t.length>n;n++){const o=t.charCodeAt(n);e=Math.imul(31,e)+o|0}return e>>>0}function S(t){return t&&"function"!=typeof t&&"object"==typeof t&&!Array.isArray(t)}function L(t,...e){for(const n of e)for(const[e,o]of Object.entries(n))S(o)&&S(t[e])?L(t[e],o):Object.assign(t,{[e]:o});return t}const $={parseAttribute:k,interopDefault:function(t){return t&&"object"==typeof t&&"default"in t&&t.default?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},loadStylesheet:function(t,e){if(!t||"undefined"==typeof document)return!1;let n=null;if(e&&(n=document.getElementById(e)),!n){const n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("link");o.rel="stylesheet",o.href=t,e&&(o.id=e),n.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 s=document.getElementById(t);if(s)return o(!0);n?"string"==typeof n&&(n=document.querySelector(n)):n=document.body,s=document.createElement("script"),s.id=t,s.type="text/javascript",s.text=e,n.appendChild(s),o(!0)})},removeAllStylesheet:function(t){if(!t)return;const e=document.head||document.getElementsByTagName("head")[0];e.querySelectorAll("link").forEach(n=>{n.id&&n.id.substring(0,t.length)===t&&e.removeChild(n)})},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,o){const i=k(e.dataset.lang);let s="diagram-left";if(i){const t=i.codeblock||i.code_block;if("boolean"==typeof t&&t||"string"==typeof t&&"true"===t.toLowerCase())return!1;i.align&&("center"===i.align?s="diagram-center":"right"===i.align&&(s="diagram-right")),i.width&&("string"!=typeof i.width&&(i.width=i.width+"px"),e.style.width=i.width),i.height&&("string"!=typeof i.height&&(i.height=i.height+"px"),e.style.height=i.height)}let r=e.textContent.trim();o&&"function"==typeof o&&(r=o(r));const a=(e.classList.length>0?e.classList[0]:"")+(e.className&&s?" ":"")+s;let l;"string"==typeof n?n.length>0&&(n="-"+n):"boolean"==typeof n&&n?(l=E(e.dataset.lang+r),n="-"+l):n="-"+Math.floor(1e4*Math.random());const u=t.toLowerCase()+"-"+Date.now()+n;return e.id=u,e.className=a,{id:u,container:u+"-container",className:a,data:r,hash:l,element:e,lang:i}},addCssLink:function(t,e,n){return t.cssLinks?Array.isArray(t.cssLinks)||(t.cssLinks=[t.cssLinks]):t.cssLinks=[],t.cssLinks.push({id:n,link:e}),t},addScript:function(t,e){return t.scripts?Array.isArray(t.scripts)||(t.scripts=[t.scripts]):t.scripts=[],t.scripts.push(e),t},addExtra:function(t,e){return t.extras?Array.isArray(t.extras)||(t.extras=[t.extras]):t.extras=[],t.extras.push(e),t},hashString:E,deepMerge:L},j="ABCJS",C="abc";if("undefined"==typeof window)throw Error("The showdown abcjs extension can only be used in browser environment!");if(void 0===A)var A=window.ABCJS||void 0;function N(){return!!A}let M=!1;function T(){if(void 0===t)var t=window.ABCJS||void 0;function e(t){const e=this;e.onReady=function(){},e.onStart=function(){const e=document.querySelector("#"+t+" svg"),n=document.createElementNS("http://www.w3.org/2000/svg","line");n.setAttribute("class","abcjs-cursor"),n.setAttributeNS(null,"x1",0),n.setAttributeNS(null,"y1",0),n.setAttributeNS(null,"x2",0),n.setAttributeNS(null,"y2",0),e.appendChild(n)},e.beatSubdivisions=2,e.onBeat=function(t,e,n){},e.onEvent=function(e){if(e.measureStart&&null===e.left)return;const n=document.querySelectorAll("#"+t+" svg .highlight");for(let t=0;n.length>t;t++)n[t].classList.remove("highlight");for(let t=0;e.elements.length>t;t++){const n=e.elements[t];for(let t=0;n.length>t;t++)n[t].classList.add("highlight")}const o=document.querySelector("#"+t+" svg .abcjs-cursor");o&&(o.setAttribute("x1",e.left-2),o.setAttribute("x2",e.left-2),o.setAttribute("y1",e.top),o.setAttribute("y2",e.top+e.height))},e.onFinished=function(){const e=document.querySelectorAll("#"+t+" svg .highlight");for(let t=0;e.length>t;t++)e[t].classList.remove("highlight");const n=document.querySelector("#"+t+" svg .abcjs-cursor");n&&(n.setAttribute("x1",0),n.setAttribute("x2",0),n.setAttribute("y1",0),n.setAttribute("y2",0))}}window.abcEnv={abcOptions:{add_classes:!0,responsive:"resize"},setTune(e,n,o){const i=e.id,s=e.data;if(!o)return void t.renderAbc(i,s,this.abcOptions);o.disable(!0);const r=t.renderAbc(i,s,this.abcOptions)[0];(new t.synth.CreateSynth).init({visualObj:r}).then(function(t){o.setTune(r,n).then(function(t){}).catch(function(t){})}).catch(function(t){})},load(n,o){let i;if(n){const s="#"+n;t.synth.supportsAudio()?(i=new t.synth.SynthController,i.load(s,new e(o.id),{displayLoop:!0,displayRestart:!0,displayPlay:!0,displayProgress:!0,displayWarp:!0})):document.querySelector(s).innerHTML="<div class='audio-error'>Audio is not supported in this browser.</div>"}this.setTune(o,!1,i)}}}function q(t,e){const n=function(){window.abcEnv.load(t,e)};return n.toString=function(){return`function(){\n const audio = '${t}';\n const render = ${JSON.stringify(e)};\n window.abcEnv.load(audio, render);\n }`},n}function O(t,e,n){if(N()){const o=n.id,i=n.className,s=n.container;let r="";n.lang&&(n.lang.width&&(r+=`width:${n.lang.width};`),n.lang.height&&(r+=`height:${n.lang.height};`));let a="";if(r?(a+=`<div id="${s}" class="${i}" style="${r}">`,a+=`<div id="${o}" style="width:100%;height:100%;display:inline-block"></div>`):(a+=`<div id="${s}" class="${i}">`,a+=`<div id="${o}"></div>`),!n.lang||!n.lang.audio){const e=n.data,i=n.element.ownerDocument;a+="</div>",n.element.parentNode.outerHTML=a;const s=i.getElementById(o);return A.renderAbc(s,e,{add_classes:!0,responsive:"resize"}),t(!0)}const l=n.data,u=o+"-audio";a+=r?`<div id="${u}" style="width:100%;height:100%;display:inline-block"></div>`:`<div id="${u}"></div>`,a+="</div>",n.element.parentNode.outerHTML=a;const c={id:s,code:q(u,{id:o,class:i,data:l}),host:"#"+s};return e.push(c),t(!0)}setTimeout(()=>{O(t,e,n)},10)}function P(t,e){return new Promise(n=>{let o=$.createElementMeta(C,t);if(!o||!o.data)return n(!1);O(n,e,o)})}function z(t,e){const n={outer:[{name:"ABCJS",src:b.getSrc(!1,"ABCJS","jsdelivr")}],id:"abcjs-ext",code:T,inner:[]};return e.push(n),function(){const t=N();if("undefined"!=typeof window){if(M)return t;t||(M=!0,$.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;}"),b.loadScript(j).then(t=>{A=$.interopDefault(window[t])}).catch(t=>{}))}}(),new Promise(e=>{const o=[];t.forEach(t=>{o.push(P(t,n.inner))}),Promise.all(o).then(()=>{e(!0)})})}let D="en";!function(){let t=document?.children[0].lang??"en";t=t.toLowerCase(),D="zh-cn"===t||"zh-hans"===t?"zh-cn":"en"}();const H={en:{"code-copy":"Copy Code","code-theme-prefix":"Theme:","code-lang-prefix":"Lang:",toc:"Table Of Contents","toc-show-title-prefix":"Show ","toc-hide-title-prefix":"Hide ","toc-toggle-prefix":"Toggle ","msg-copy-success":"Copy success!","msg-copy-failed":"Copy failed!"},"zh-cn":{"code-copy":"复制代码","code-theme-prefix":"主题:","code-lang-prefix":"语言:",toc:"目录","toc-show-title-prefix":"显示","toc-hide-title-prefix":"隐藏","toc-toggle-prefix":"切换","msg-copy-success":"复制成功!","msg-copy-failed":"复制失败!",note:"备注",alert:"注意",info:"信息",tip:"提示",warning:"警告",error:"错误",success:"成功",danger:"危险",summary:"概要",tldr:"摘要",abstract:"抽象",todo:"待办",hint:"小窍门",check:"检测",done:"完成",help:"帮助",question:"问题",faq:"问答",attention:"关注",caution:"提醒",failure:"故障",fail:"失败",missing:"缺失",bug:"缺陷",example:"示例",snippet:"片段",quote:"引用",cite:"引文",important:"重点",key:"要点"}};const B={getLangString:function(t,e){return H[D]?.[t]??e}},R=["H1","H2","H3","H4","H5","H6"];function _(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"><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 s=i.appendChild(t.ownerDocument.createElement("i"));s.classList.add("iconfont","toc-chapter"),s.innerHTML='<svg class="icon"><use xlink:href="#icon-chapter-l"></use></svg>';const r=i.appendChild(t.ownerDocument.createElement("a"));r.appendChild(t.ownerDocument.createTextNode(e.textContent)),r.href="#"+e.id}}catch{}return n}function I(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&&I(t,e,n,o),n}if(o>n.preLevel){for(n.preLevel++;o>n.preLevel;)n.toc=_(t,null,n.toc,o,!0),n.preLevel++;n.toc=_(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=_(t,e,n.toc,o,!1)}return n.parentNode&&I(t,e,n.parentNode,o),n}const F=['<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>'];function W(){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 J(t){return[{type:"output",config:((t={})=>({chapterNumber:!0,title:"",toc:/^((?:[\[【](?:Table[ -]Of[ -]Contents|目录|TOC)[\]】])|(?:(?:\{\{|\[\[|【)[_]?TOC[_]?(?:\}\}|\]\]|】)))$/i,...t}))(t),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,e){let n=null,o=0,i=null,s=!1,r=!1,a=null;const l=e.toc instanceof RegExp?e.toc:RegExp(`^(${e.toc})$`,"i");let u=1;const c=[0,0,0,0,0,0],d=t.querySelectorAll(R.join(",")+",p");for(let p=0;d.length>p;p++){if(n=d[p],l.test(n.textContent.trim())){let l=null;if(r)l=t.ownerDocument.createElement("div"),l.classList.add("showdown-toc");else{if(a){n.parentNode.removeChild(n);continue}l=t.ownerDocument.createElement("div"),l.classList.add("showdown-toc"),a=l;let o=B.getLangString("toc"),i=B.getLangString("toc-show-title-prefix"),s=B.getLangString("toc-hide-title-prefix"),r=B.getLangString("toc-toggle-prefix");e.title?.length>0&&(o=e.title);const u=t.ownerDocument.createElement("div");u.id="toc-switch-button",u.classList.add("toc-switch","hidden"),u.title=i+o,u.innerHTML='<svg class="icon"><use xlink:href="#icon-chapter-l"></use></svg>',n.parentNode.insertBefore(u,n),l.id="total-showdown-toc",l.classList.add("total-toc"),l.innerHTML=`<div class="toc-pin"><span class="toc-pin-text">${o}</span><div class="toc-fold-wrap"><div id="toc-fold-icon" class="toc-fold toc-icon" data-name="toc-expand" title="${r+o}"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-toc"></use></svg></div><div id="toc-close-icon" class="toc-close toc-icon" title="${s+o}"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-chapter-s"></use></svg></div></div></div>`}let u=t.ownerDocument.createElement("div");u.classList.add("toc-view"),l.appendChild(u);let c={parentNode:null,toc:u,headingLevel:o,preLevel:o,standalone:!1};if(i)if(o>i.headingLevel)c.parentNode=i;else{let t=i;for(;t.headingLevel>o;)t=t.parentNode;t&&(c.parentNode=o===t.headingLevel?t.parentNode:t)}i=c,s=!0,i.standalone=!r,r?n.parentNode.replaceChild(l,n):n.parentNode.removeChild(n);continue}if(R.includes(n.tagName)){if(r||(r=!0),o=parseInt(n.tagName.substr(1)),e.chapterNumber)if(o>1){if(u!==o){u=o;let t=u;for(;c.length>t;)c[t]=0,t++}let t="",e=1;for(c[u-1]++;o>e;)t+=c[e]+".",e++;n.textContent=t+" "+n.textContent}else{let t=0;for(;c.length>t;)c[t]=0,t++}i&&(i=I(t,n,i,o))}}for(r&&(i&&(e.symbols=F),a&&(e.extras||(e.extras=[]),e.extras.push(a.outerHTML)));i;){let t=i;i=t.parentNode,t.parentNode=null,t.toc=null,t.headingLevel=null,t.preLevel=null}return s}(n,this.config)?n.innerHTML:t}if(!("object"==typeof t&&t&&this.config.extras&&Array.isArray(this.config.extras)&&this.config.extras.length))return!1;const e=t;this.config.extras.forEach(t=>{$.addExtra(e,t)}),this.config.symbols?.length>0&&e.symbols.push(...this.config.symbols);return $.addScript(e,{inner:[{id:"showdown-toc",code:W,host:"#total-showdown-toc"}]}),e}}]}if("undefined"==typeof window)throw Error("The showdown viz extension can only be used in browser environment!");if(void 0===V)var V=window.Viz||void 0;const U=["circo","dot","neato","osage","twopi"];function G(){return!(void 0===V||!V||void 0===V.instance)}let K=!1;function X(t,e){if(G()){const n=e.id,o=e.className,i=e.data;if(!i||0===i.length)return t(!1);const s=e.element,r=e.lang;let a="dot";r&&r.engine&&-1!=U.indexOf(r.engine)&&(a=r.engine);let l=s.style.cssText;return l.length>0&&(l=` style="${l}"`),void V.instance().then(e=>{const r=e.renderString(i,{format:"svg",engine:a});s.parentNode.outerHTML=`<div id="${n}" class="${o}"${l}>${r}</div>`,t(!0)}).catch(e=>{t(!1)})}setTimeout(()=>{X(t,e)},10)}function Z(t){return new Promise(e=>{const n=$.createElementMeta("viz",t);if(!n||!n.data)return e(!1);X(e,n)})}function Q(t){return function(){const t=G();if("undefined"!=typeof window){if(K)return t;t||(K=!0,b.loadScript("Viz").then(t=>{V=$.interopDefault(window[t])}).catch(t=>{}))}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(Z(t))}),Promise.all(n).then(()=>{e(!0)})})}const Y={},tt={},et=["pdflatex","xelatex","lualatex"];function nt(t,e){t.forEach(t=>{!function(t,e){const n=$.createElementMeta("Tex",t,!0);if(!n||!n.data)return;const o=tt[n.hash];if(o)return void t.parentNode.replaceWith(o);let i=e.config.buildType??"pdflatex";n.lang?.engine&&et.includes(n.lang.engine.toLowerCase())&&(i=n.lang.engine.toLowerCase()),e.elements=e.elements??[];const s={type:i,id:n.id};n.lang&&(s.lang=n.lang),e.elements.push(s)}(t,e)})}function ot(){if(!window||!("Tex"in window))return;const t=window.Tex;if(!t.elements||!Array.isArray(t.elements)||0===t.elements.length)return;const e="https://"+(t.config.serverUrl??"tex.io");t.elements.forEach(({type:n,id:o,lang:i})=>{const s=document.querySelector("#"+o);if(!s)return;const r=s.dataset.lang,a=s.textContent.trim(),l=$.hashString(r+a),u=tt[l];if(u)return void s.parentNode.replaceWith(u);if("function"==typeof t.svgRender&&t.svgRender){const e={build:n};i&&(i.width?.length>0&&(e.width=i.width),i.height?.length>0&&(e.height=i.height),i.zoom&&i.zoom>0&&(e.zoom=i.zoom));try{t.svgRender(s.id,a,e).then(t=>{const e=document.createElement("div");e.id=s.id,e.className=s.className,s.style.cssText.length>0&&(e.style=s.style.cssText),e.innerHTML=t,s.parentNode.replaceWith(e),tt[l]=e}).catch(t=>{})}catch(t){}return}if(!window||!window.fetch)return;const c=[];i&&(i.width?.length>0&&c.push("width="+i.width),i.height?.length>0&&c.push("height="+i.height),i.zoom&&i.zoom>0&&c.push("zoom="+i.zoom));const d=`${e}/${n}/svg`+(c.length>0?"?"+c.join("&"):"");try{window.fetch(d,{method:"POST",body:a,headers:{Accept:"*/*","Content-Type":"text/plain; charset=utf-8"}}).then(t=>{if("string"==typeof t)return t;if(t.ok)return t.text();throw Error("RequestError: "+t.status)}).then(t=>{if(t){const e=document.createElement("div");e.id=s.id,e.className=s.className,s.style.cssText.length>0&&(e.style=s.style.cssText),e.innerHTML=t,s.parentNode.replaceWith(e),tt[l]=e}}).catch(t=>{})}catch(t){}}),delete t.elements}function it(t){return[{type:"output",config:((t={})=>({serverUrl:"tex.io",buildType:"pdflatex",svgRender:null,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.tex.language-tex,code.latex.language-latex");return!!n.length&&(window&&(window.Tex=Y),Y.config={serverUrl:this.config.serverUrl,buildType:this.config.buildType},Y.svgRender=this.config.svgRender,t.scripts.push({id:"showdown-tex",code:ot,once:!0}),nt(n,Y),Y.elements?.length>0&&(o=e,Object.keys(tt).forEach(t=>{o.querySelector(`[id*="-${t}"]`)||delete tt[t]})),t);var o}}]}const st="vega";if("undefined"==typeof window)throw Error("The showdown vega extension can only be used in browser environment!");if(void 0===rt)var rt=window.vegaEmbed||void 0;function at(){return!(void 0===rt||!rt)}let lt=!1;function ut(t,e,n,o){const i=$.createElementMeta(st,t);if(!i||!i.data)return Promise.resolve(!1);const s=i.container,r={id:s,code:((t,e)=>{const n=()=>{const n=window.eval;let o=document.getElementById(t.id);if(o)if(t.lang&&t.lang.type&&"string"==typeof t.lang.type&&"javascript"==t.lang.type.toLowerCase()){const i=n(`(function(){${t.data}; return option;})();`);rt(o,i,e)}else{const n=JSON.parse(t.data);rt(o,n,e)}};return n.toString=()=>t.lang&&t.lang.type&&"string"==typeof t.lang.type&&"javascript"==t.lang.type.toLowerCase()?`function(){\n let el = document.getElementById('${t.id}');\n if (el) {\n ${t.data};\n const config = ${JSON.stringify(e)};\n vegaEmbed(el, option, config);\n }\n }`:`function(){\n let el = document.getElementById('${t.id}');\n if (el) {\n const option = ${t.data};\n const config = ${JSON.stringify(e)};\n vegaEmbed(el, option, config);\n }\n }`,n})(i,e),host:"#"+s};return n.push(r),new Promise(t=>{dt(t,i)})}function ct(t,e,n,o){const i={outer:[{name:st,src:b.getSrc(!1,st,"jsdelivr")},{name:"vegaLite",src:b.getSrc(!1,"vegaLite","jsdelivr")},{name:"vegaEmbed",src:b.getSrc(!1,"vegaEmbed","jsdelivr")}],inner:[]};return n.push(i),function(){const t=at();if("undefined"!=typeof window){if(lt)return t;t||(lt=!0,b.loadScript(st).then(()=>b.loadScript("vegaLite")).then(()=>b.loadScript("vegaEmbed")).then(t=>{rt=$.interopDefault(window[t])}).catch(t=>{}))}}(),new Promise(n=>{const s=[];t.forEach(t=>{s.push(ut(t,o,i.inner))}),e.forEach(t=>{s.push(ut(t,o,i.inner))}),Promise.all(s).then(()=>{n(!0)})})}function dt(t,e){if(at()){let n=e.element.style.cssText;return n.length>0&&(n=` style="${n}"`),e.element.parentNode.outerHTML=`<div id="${e.container}" class="${e.className}"${n}><div id="${e.id}"></div></div>`,t(!0)}setTimeout(()=>{dt(t,e)},10)}function pt(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)&&ct(n,o,t.scripts,this.config).then(()=>t)}}]}if("undefined"==typeof window)throw Error("The showdown antv extension can only be used in browser environment!");if(void 0===ht)var ht=window.AntVInfographic||void 0;function mt(){return!(void 0===ht||!ht)}let ft=!1;function gt(t,e){if(mt()){const n=e.id,o=e.className,i=e.data,s=e.element.parentNode,r=e.element,a=e.lang?.options??{},l=r.ownerDocument.createElement("div");l.id=n,r.style.cssText.length>0&&(l.style.cssText=r.style.cssText),l.className=o,a.container=l,e.lang&&(e.lang.width&&(a.width=e.lang.width),e.lang.height&&(a.height=e.lang.height));return new ht.Infographic(a).render(i),s.replaceWith(l),void t(!0)}setTimeout(()=>{gt(t,e)},10)}function yt(t){return new Promise(e=>{const n=$.createElementMeta("infographic",t);if(!n||!n.data)return e(!1);gt(e,n)})}function wt(t){return function(){const t=mt();if("undefined"!=typeof window){if(ft)return t;if(!t)return ft=!0,b.loadScript("AntVInfographic").then(t=>{ht=$.interopDefault(window[t])}).catch(t=>{}),t}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(yt(t))}),Promise.all(n).then(()=>{e(!0)})})}function vt(){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 xt=".",bt={input:'"',tag:"mtext",output:"mbox",tex:null,ttype:10},kt=[{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},bt,{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 Et(t,e){return t.input>e.input?1:-1}var St,Lt,$t,jt=[];function Ct(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 At(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 s=n;t.length>s&&e>t[s];s++);return s}function Nt(t){for(var e,n,o,i=0,s="",r=!0,a=1;t.length>=a&&r;a++)n=t.slice(0,a),i=At(jt,n,i),jt.length>i&&t.slice(0,jt[i].length)==jt[i]&&(e=i,a=(s=jt[i]).length),r=jt.length>i&&t.slice(0,jt[i].length)>=jt[i];if(Lt=$t,""!=s)return $t=kt[e].ttype,kt[e];$t=0,i=1,n=t.slice(0,1);for(var l=!0;n>="0"&&"9">=n&&t.length>=i;)n=t.slice(i,i+1),i++;if(n==xt&&(n=t.slice(i,i+1))>="0"&&"9">=n)for(l=!1,i++;n>="0"&&"9">=n&&t.length>=i;)n=t.slice(i,i+1),i++;return l&&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==Lt?($t=3,{input:n,tag:o,output:n,ttype:1,func:!0,val:!0}):{input:n,tag:o,output:n,ttype:0,val:!0}}function Mt(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 Tt(t){var e;return e="boolean"==typeof t.val&&t.val?"":"\\",null==t.tex?e+t.input:e+t.tex}function qt(t){var e,n,o,i,s="";if(null==(e=Nt(t=Ct(t,0)))||5==e.ttype&&St>0)return[null,t];switch(8==e.ttype&&(e=Nt(t=e.output+Ct(t,e.input.length))),e.ttype){case 7:case 0:t=Ct(t,e.input.length);var r=Tt(e);return"\\"==r.charAt(0)||"mo"==e.tag?[r,t]:["{"+r+"}",t];case 4:St++,o=Pt(t=Ct(t,e.input.length),!0),St--;var a=0;return"\\right"==o[0].substr(0,6)&&(")"==(u=o[0].charAt(6))||"]"==u||"}"==u?a=6:"."==u?a=7:"\\rbrace"==(u=o[0].substr(6,7))&&(a=13)),a>0?(o[0]=o[0].substr(a),n="boolean"==typeof e.invisible&&e.invisible?"{"+o[0]+"}":"{"+Tt(e)+o[0]+"}"):n="boolean"==typeof e.invisible&&e.invisible?"{\\left."+o[0]+"}":"{\\left"+Tt(e)+o[0]+"}",[n,o[1]];case 10:return e!=bt&&(t=Ct(t,e.input.length)),-1==(i="{"==t.charAt(0)?t.indexOf("}"):"("==t.charAt(0)?t.indexOf(")"):"["==t.charAt(0)?t.indexOf("]"):e==bt?t.slice(1).indexOf('"')+1:0)&&(i=t.length)," "==(u=t.slice(1,i)).charAt(0)&&(s="\\ "),s+="\\text{"+u+"}"," "==u.charAt(u.length-1)&&(s+="\\ "),[s,t=Ct(t,i+1)];case 1:return null==(o=qt(t=Ct(t,e.input.length)))[0]?["{"+Tt(e)+"}",t]:"boolean"==typeof e.func&&e.func?"^"==(u=t.charAt(0))||"_"==u||"/"==u||"|"==u||","==u||1==e.input.length&&e.input.match(/\w/)&&"("!=u?["{"+Tt(e)+"}",t]:[n="{"+Tt(e)+"{"+o[0]+"}}",o[1]]:(o[0]=Mt(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?[Tt(e)+"{"+o[0]+"}",o[1]]:["{"+Tt(e)+"{"+o[0]+"}}",o[1]]);case 2:if(null==(o=qt(t=Ct(t,e.input.length)))[0])return["{"+Tt(e)+"}",t];o[0]=Mt(o[0]);var l=qt(o[1]);return null==l[0]?["{"+Tt(e)+"}",t]:(l[0]=Mt(l[0]),[s="color"==e.input?"{\\color{"+o[0].replace(/[\{\}]/g,"")+"}"+l[0]+"}":"root"==e.input?"{\\sqrt["+o[0]+"]{"+l[0]+"}}":"{"+Tt(e)+"{"+o[0]+"}{"+l[0]+"}}",l[1]]);case 3:return t=Ct(t,e.input.length),[e.output,t];case 6:return t=Ct(t,e.input.length),["{\\quad\\text{"+e.input+"}\\quad}",t];case 9:St++,o=Pt(t=Ct(t,e.input.length),!1),St--;var u="";return"|"==(u=o[0].charAt(o[0].length-1))&&","!==t.charAt(0)?[n="{\\left|"+o[0]+"}",o[1]]:[n="{\\mid}",t];default:return t=Ct(t,e.input.length),["{"+Tt(e)+"}",t]}}function Ot(t){var e,n,o,i,s;if(n=Nt(t=Ct(t,0)),i=(s=qt(t))[0],3==(e=Nt(t=s[1])).ttype&&"/"!=e.input){if((s=qt(t=Ct(t,e.input.length)))[0]=null==s[0]?"{}":Mt(s[0]),t=s[1],"_"==e.input)if("^"==(o=Nt(t)).input){var r=qt(t=Ct(t,o.input.length));r[0]=Mt(r[0]),t=r[1],i="{"+i,i+="_{"+s[0]+"}",i+="^{"+r[0]+"}",i+="}"}else i+="_{"+s[0]+"}";else i=i+"^{"+s[0]+"}";void 0!==n.func&&n.func&&(3==(o=Nt(t)).ttype||5==o.ttype||1>=n.input.length&&4!=o.ttype||(i="{"+i+(s=Ot(t))[0]+"}",t=s[1]))}return[i,t]}function Pt(t,e){var n,o,i,s,r="",a=!1;do{o=(i=Ot(t=Ct(t,0)))[0],3==(n=Nt(t=i[1])).ttype&&"/"==n.input?((i=Ot(t=Ct(t,n.input.length)))[0]=null==i[0]?"{}":Mt(i[0]),t=i[1],o="\\frac{"+(o=Mt(o))+"}",r+=o+="{"+i[0]+"}",n=Nt(t)):null!=o&&(r+=o)}while((5!=n.ttype&&(9!=n.ttype||e)||0==St)&&null!=n&&""!=n.output);if(5==n.ttype||9==n.ttype){var l=r.length;if(l>2&&"{"==r.charAt(0)&&r.indexOf(",")>0){var u=r.charAt(l-2);if(")"==u||"]"==u){var c=r.charAt(6);if("("==c&&")"==u&&"}"!=n.output||"["==c&&"]"==u){var d="",p=[];p.push(0);var h=!0,m=0,f=[];f[0]=[0];var g=0,y=0,w="";for(s=1;l-1>s;s++)r.charAt(s)==c&&m++,r.charAt(s)==u&&0==--m&&","==r.charAt(s+2)&&"{"==r.charAt(s+3)&&(p.push(s+2),f[g=s+2]=[s+2]),"["!=r.charAt(s)&&"("!=r.charAt(s)&&"{"!=r.charAt(s)||y++,"]"!=r.charAt(s)&&")"!=r.charAt(s)&&"}"!=r.charAt(s)||y--,","==r.charAt(s)&&1==y&&f[g].push(s),0>y&&(g==s+1?s++:h=!1);p.push(l);var v=-1;if(0==m&&p.length>0&&h)for(s=0;p.length-1>s;s++){if(s>0&&(d+="\\\\"),0==s)if(1==f[p[s]].length)var x=[r.substr(p[s]+7,p[s+1]-p[s]-15)];else{x=[r.substring(p[s]+7,f[p[s]][1])];for(var b=2;f[p[s]].length>b;b++)x.push(r.substring(f[p[s]][b-1]+1,f[p[s]][b]));x.push(r.substring(f[p[s]][f[p[s]].length-1]+1,p[s+1]-8))}else if(1==f[p[s]].length)x=[r.substr(p[s]+8,p[s+1]-p[s]-16)];else{for(x=[r.substring(p[s]+8,f[p[s]][1])],b=2;f[p[s]].length>b;b++)x.push(r.substring(f[p[s]][b-1]+1,f[p[s]][b]));x.push(r.substring(f[p[s]][f[p[s]].length-1]+1,p[s+1]-8))}for(b=x.length-1;b>=0;b--)"{\\mid}"==x[b]?(0==s&&(w="|"+w),x.splice(b,1)):0==s&&(w="c"+w);v>0&&x.length!=v?h=!1:-1==v&&(v=x.length),d+=x.join("&")}d="\\begin{array}{"+w+"} "+d+"\\end{array}",h&&(r=d)}}}t=Ct(t,n.input.length),"boolean"==typeof n.invisible&&n.invisible?(r+="\\right.",a=!0):(r+=o="\\right"+Tt(n),a=!0)}return St>0&&!a&&(r+="\\right."),[r,t]}function zt(t){return St=0,null==(t=(t=(t=t.replace(/(&nbsp;|\u00a0|&#160;)/g,"")).replace(/&gt;/g,">")).replace(/&lt;/g,"<")).match(/\S/)?"":Pt(t.replace(/^\s+/g,""),!1)[0]}if(function(){var t,e=kt.length;for(t=0;e>t;t++)!kt[t].tex||"boolean"==typeof kt[t].notexcopy&&kt[t].notexcopy||kt.push({input:kt[t].tex,tag:kt[t].tag,output:kt[t].output,ttype:kt[t].ttype,acc:kt[t].acc||!1});!function(){var t;for(kt.sort(Et),t=0;kt.length>t;t++)jt[t]=kt[t].input}()}(),"undefined"==typeof window)throw Error("The showdown katex extension can only be used in browser environment!");if(void 0===Dt)var Dt=window.katex||void 0;if("undefined"==typeof renderMathInElement)var Ht=window.renderMathInElement||void 0;let Bt=0;function Rt(){return!(void 0===Dt||!Dt)}let _t=!1;function It(t,e){const n=Rt();if("undefined"!=typeof window){if(_t)return n;if(!n)return _t=!0,b.loadScript("katex").then(e=>{if(Dt=$.interopDefault(window[e]),"katex"===t)return b.loadScript("renderMathInElement")}).then(t=>{Ht=$.interopDefault(window[t]),"function"==typeof e&&e&&e(Ht)}).catch(t=>{}),n}return"function"==typeof e&&e&&e(Ht),n}function Ft(t,e){if(Rt()){const n=e.className,o=e.input,i=e.data,s=e.options,r=e.element.ownerDocument;let a="";if(i instanceof Array)i.forEach(t=>{if(""===t)a+="<br>";else{const e=Dt.renderToString(t,s);a+=`<div title="${o}" class="${n}">${e}</div>`}});else{const t=Dt.renderToString(i,s);a=`<div title="${o}" class="${n}">${t}</div>`}return e.element.parentNode.outerHTML=a,--Bt,!Bt&&Ht&&Ht(r.body,s),void t(!0)}setTimeout(()=>{Ft(t,e)},10)}function Wt(t,e,n){return new Promise(o=>{let i;const s=$.createElementMeta("katex",t,!1,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?zt(t):t),e.push(t)})):e=n?zt(i):i,e});if(!s)return o(!1);s.input=i,s.options=e,Ft(o,s)})}function Jt(t){return t.replace(/[-[\]/{}()*+?.\\$^|]/g,"\\$&")}const Vt=(t={})=>{let e={engine:"katex",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 Ut(t){let e=0;const n=Vt(t),o=n.delimiters.map(({left:t,right:n,display:o,asciimath:i})=>({test:RegExp(`${Jt(t)}([\\s\\S]+?)${Jt(n)}`,"g"),replacer:(t,n)=>(++e,i&&(n=zt(n)),o?`\\[${n}\\]`:`\\(${n}\\)`)}));return[{type:"output",config:n,filter:function(t){e=0;const n=t.wrapper;if(!n)return!1;"katex"===this.config.engine&&o.length&&n.querySelectorAll(":not(code):not(pre)").forEach(t=>{const e=t.textContent;if(e.length>0){const n=o.reduce((t,{test:e,replacer:n})=>t.replace(e,n),e);t.textContent=n}});let i=n.querySelectorAll("code.katex.language-katex");const s=n.querySelectorAll("code.asciimath.language-asciimath");if(!i.length&&!s.length){if(e>0){this.config.cssLink=b.getCSS(!0,"katex");const r=this;function a(t,e){Rt()?(e(n.ownerDocument.body,r.config),t(!0)):setTimeout(()=>{a(t,e)},10)}return new Promise(t=>{It(this.config.engine,e=>{a(t,e)})}).then(()=>t)}return!1}return this.config.cssLink=b.getCSS(!0,"katex"),$.addCssLink(t,this.config.cssLink,"css-katex"),function(t,e,n){return Bt=t.length+e.length,It(n.engine),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)})})}(i,s,this.config).then(()=>t)}}]}const Gt={},Kt={};function Xt(t,e){t.forEach(t=>{!function(t,e){const n=$.createElementMeta("Tex",t,!0);if(!n||!n.data)return;const o=Gt[n.hash];if(o)return void t.parentNode.replaceWith(o);let i="";if(t.classList.length>0){const e=t.classList[0].split("-");e.length>1&&(i=e[e.length-1])}i.length>0&&window&&window.fetch&&e&&(e.elements=e.elements??[],e.elements.push({type:i,id:n.id}))}(t,e)})}function Zt(){if(!window||!("Kroki"in window))return;const t=window.Kroki;if(!t.elements||!Array.isArray(t.elements)||0===t.elements.length)return;const e=t.config.imageFormat??"svg";t.elements.forEach(({type:n,id:o})=>{const i=document.querySelector("#"+o);if(!i)return;const s=i.dataset.lang,r=i.textContent.trim(),a=$.hashString(s+r),l=Gt[a];if(l)return void i.parentNode.replaceWith(l);if("function"==typeof t.svgRender&&t.svgRender){const o={diagramType:n,imageFormat:e};try{t.svgRender(i.id,r,o).then(t=>{const e=document.createElement("div");e.id=i.id,e.className=i.className,i.style.cssText.length>0&&(e.style=i.style.cssText),e.innerHTML=t,i.parentNode.replaceWith(e),Gt[a]=e}).catch(t=>{})}catch(t){}return}const u=`${"https://"+(t.config.serverUrl??"kroki.io")}/${n}/${e}`;try{window.fetch(u,{method:"POST",body:r,headers:{Accept:"*/*","Content-Type":"text/plain; charset=utf-8"}}).then(t=>{if("string"==typeof t)return t;if(t.ok)return t.text();throw Error("RequestError: "+t.status)}).then(t=>{if(t){const e=document.createElement("div");e.id=i.id,e.className=i.className,i.style.cssText.length>0&&(e.style=i.style.cssText),e.innerHTML=t,i.parentNode.replaceWith(e),Gt[a]=e}}).catch(t=>{})}catch(t){}}),delete t.elements}function Qt(t){return[{type:"output",config:((t={})=>({serverUrl:"kroki.io",imageFormat:"svg",svgRender:null,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll('code[class*="language-kroki-"]');return!!n.length&&(window&&(window.Kroki=Kt),Kt.config={serverUrl:this.config.serverUrl,imageFormat:this.config.imageFormat},Kt.svgRender=this.config.svgRender,t.scripts.push({id:"showdown-kroki",code:Zt,once:!0}),Xt(n,Kt),Kt.elements?.length>0&&(o=e,Object.keys(Gt).forEach(t=>{o.querySelector(`[id*="-${t}"]`)||delete Gt[t]})),t);var o}}]}if(void 0===Yt)var Yt=window.Shiki||void 0;function te(){return!(void 0===(Yt=window.Shiki)||!Yt)}let ee,ne=!1;function oe(){function t(){let t;function e(t,e){t.content&&(t.content.textContent=e),t.root&&t.root.classList.remove("hidden"),t.timer&&(clearTimeout(t.timer),t.timer=null),t.timer=setTimeout(()=>{t.content&&(t.content.textContent=""),t.root&&t.root.classList.add("hidden"),t.timer=null,t.content=null,t.root=null},5e3)}const n=document.querySelectorAll(".codeblock-container");if(n?.length){!function(e){if(t)return t;const n=e.createElement("div");n.classList.add("select-items","select-theme-items");const o=[];window.Shiki.bundledThemesInfo.forEach(i=>{const s=function(n,o,i){const s=e.createElement("div");s.classList.add("options-item"),s.dataset.theme=o,s.dataset.name=i,s.title=i;const r=e.createElement("span");return r.classList.add("select-item-content"),r.textContent=i,s.appendChild(r),s.addEventListener("click",function(e){const o=e.currentTarget;if(o.classList.add("selected-item"),Array.from(n.children).forEach(function(t){t!==o&&t.classList.remove("selected-item")}),t&&t.container){const e=t.container,n=t.themer,i=t.tools;if(e.dataset.theme=o.dataset.theme,e.dataset.themeName=o.dataset.name,n){const t=B.getLangString("code-theme-prefix");n.dataset.title=t+o.dataset.name}const s=e.dataset.language,r=o.dataset.theme,a=e.querySelector("pre code");if(a){const t=a?.textContent;window.Shiki.codeToHtml(t,{lang:s,theme:r}).then(t=>{a.parentNode.outerHTML=t})}i&&i.classList.remove("show-theme-options"),t.container=null,t.themer=null,t.tools=null}n.style="",n.remove(),e.stopPropagation()}),{option:s,content:r}}(n,i.id,i.displayName);n.appendChild(s.option),o.push(s)});const i=[];window.Shiki.bundledLanguagesInfo.forEach(t=>{i.push(t.id),t.aliases&&t.aliases.forEach(t=>{i.push(t)})}),t={options:n,items:o,langs:i}}(document);for(let o=0;n.length>o;o++){const i=n[o],s=i.querySelector(".codeblock-tools"),r=i.querySelector(".tools-button-copy");r&&r.addEventListener("click",function(){const t=i.querySelector("pre code"),n={root:i.querySelector(".tools-message"),content:i.querySelector(".tools-message-content")},o=t?.textContent;navigator.clipboard.writeText(o).then(function(){e(n,B.getLangString("msg-copy-success"))},function(t){e(n,B.getLangString("msg-copy-failed"))})});const a=i.querySelector(".tools-button-theme");a&&a.addEventListener("click",function(e){if(t){let n;t.container&&t.options&&t.options.remove(),t.container=i,t.themer=a,t.tools=s,t.tools&&t.tools.classList.add("show-theme-options"),t.items.forEach(function(t){i.dataset.theme===t.option.dataset.theme?(n=t.option,t.option.classList.add("selected-item")):t.option.classList.remove("selected-item")});const o=a.getBoundingClientRect(),r=t.container.getBoundingClientRect();t.options.style.top=o.bottom-r.top-1+"px",t.options.style.right=0,t.container.appendChild(t.options),t.options.classList.remove("hidden"),n&&n.scrollIntoView({container:"nearest"}),e.stopPropagation()}})}document.addEventListener("click",function(){t?.options?.parentNode&&(t.options.style="",t.options.remove(),t.tools&&t.tools.classList.remove("show-theme-options"),t.container=null,t.themer=null,t.tools=null)},!1)}}window&&"Shiki"in window?t():import("https://esm.sh/shiki@3.21.0").then(e=>{window.Shiki="default"in e&&e.default?e.default:e,t()})}function ie(t,e,n){if(te()){const o=e.classList[0];let i="";for(let t=0;Yt.bundledLanguagesInfo.length>t;t++){const e=Yt.bundledLanguagesInfo[t];if(e.id===o){i=e.name;break}if(e.aliases&&e.aliases.includes(o)){i=e.name;break}}if(!i)return void t(!1);let s=u;for(let t=0;Yt.bundledThemesInfo.length>t;t++)if(Yt.bundledThemesInfo[t].id===s){s=Yt.bundledThemesInfo[t].displayName;break}const r=e.textContent.trim(),a=e.ownerDocument,l=$.parseAttribute(e.dataset.lang),u=l?.theme?l.theme:n.theme;return void Yt.codeToHtml(r,{lang:o,theme:u}).then(n=>{const r=a.createElement("div");r.classList.add("codeblock-container"),r.dataset.theme=u,r.dataset.themeName=s,r.dataset.language=o,r.dataset.langName=i;const l=function(t,e,n){const o=B.getLangString("code-copy"),i=B.getLangString("code-theme-prefix"),s=B.getLangString("code-lang-prefix"),r=t.createElement("div");return r.classList.add("codeblock-tools","toolbar-hover"),r.innerHTML=`<div class="tools-message hidden">\n <div class="tools-icon tools-message-icon">\n <svg xmlns="http://www.w3.org/2000/svg">\n <use xlink:href="#svg-icon-info"/>\n </svg>\n </div>\n <span class="tools-message-content"></span>\n </div>\n <div class="tools-icon tools-button-lang" rel="tooltip" data-title="${s}${e}">\n <svg xmlns="http://www.w3.org/2000/svg">\n <use xlink:href="#svg-icon-language"/>\n </svg>\n </div>\n <div class="tools-icon tools-button-theme" rel="tooltip" data-title="${i}${n}">\n <svg xmlns="http://www.w3.org/2000/svg">\n <use xlink:href="#svg-icon-theme"/>\n </svg>\n </div>\n <div class="tools-icon tools-button-copy" rel="tooltip" data-title="${o}">\n <svg xmlns="http://www.w3.org/2000/svg">\n <use xlink:href="#svg-icon-copy"/>\n </svg>\n </div>`,r}(a,i,s);r.appendChild(l);const c=function(t){return ee||(ee=t.createElement("div"),ee)}(a);c.innerHTML=n;const d=c.children[0];d.remove(),r.appendChild(d),e.parentNode.replaceWith(r),t(!0)}).catch(e=>{t(!1)})}setTimeout(()=>{ie(t,e,n)},100)}function se(t,e){return function(){const t=te();if("undefined"!=typeof window){if(ne)return t;t||(ne=!0,b.loadScript("Shiki").then(t=>{Yt=$.interopDefault(window[t])}).catch(t=>{}))}}(),new Promise(n=>{const o=[];t.forEach(t=>{o.push(function(t,e){return new Promise(n=>{ie(n,t,e)})}(t,e))}),Promise.all(o).then(()=>{n(!0)})})}const re=['<symbol id="svg-icon-info" viewBox="64 64 896 896" fill="currentColor"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"></path></symbol>','<symbol id="svg-icon-language" viewBox="0 0 1024 1024"><path d="M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512z m0-938.666667C276.352 85.333333 85.333333 276.352 85.333333 512s191.018667 426.666667 426.666667 426.666667 426.666667-191.018667 426.666667-426.666667A426.666667 426.666667 0 0 0 512 85.333333z m0 682.666667a42.666667 42.666667 0 0 1-42.368-42.666667v-255.573333a42.368 42.368 0 1 1 84.693333 0V725.333333A42.410667 42.410667 0 0 1 512 768z m0-426.666667a42.325333 42.325333 0 1 1-0.085333-84.650666A42.325333 42.325333 0 0 1 512 341.333333z m42.325333-42.666666v0z" fill="currentColor"></path></symbol>','<symbol id="svg-icon-theme" viewBox="0 0 1024 1024"><path fill="currentColor" d="M42.666667 512C42.666667 251.733333 251.733333 42.666667 512 42.666667s469.333333 187.733333 469.333333 422.4c0 72.533333-29.866667 145.066667-81.066666 200.533333-51.2 51.2-123.733333 81.066667-200.533334 81.066667h-85.333333c-12.8 0-25.6 12.8-29.866667 25.6 0 8.533333 4.266667 17.066667 8.533334 21.333333 21.333333 21.333333 29.866667 46.933333 29.866666 76.8 0 64-51.2 110.933333-115.2 115.2C251.733333 981.333333 42.666667 772.266667 42.666667 512z m85.333333 0c0 213.333333 170.666667 384 384 384 17.066667 0 29.866667-12.8 29.866667-29.866667 0-4.266667 0-8.533333-4.266667-12.8l-4.266667-4.266666c-17.066667-21.333333-25.6-46.933333-29.866666-76.8 0-64 51.2-110.933333 115.2-110.933334h85.333333c51.2 0 102.4-21.333333 136.533333-55.466666 38.4-38.4 55.466667-85.333333 55.466667-136.533334 0-187.733333-170.666667-341.333333-384-341.333333s-384 170.666667-384 384z m593.066667 21.333333c-21.333333-21.333333-25.6-51.2-17.066667-76.8 12.8-25.6 38.4-42.666667 64-42.666666 38.4 0 68.266667 34.133333 72.533333 72.533333 0 29.866667-17.066667 55.466667-42.666666 64-8.533333 4.266667-17.066667 4.266667-25.6 4.266667-17.066667 0-38.4-8.533333-51.2-21.333334z m-520.533334 0c-21.333333-21.333333-25.6-51.2-17.066666-76.8 12.8-25.6 38.4-42.666667 64-42.666666 38.4 0 68.266667 34.133333 72.533333 72.533333 0 29.866667-17.066667 55.466667-42.666667 64-8.533333 4.266667-17.066667 4.266667-25.6 4.266667-21.333333 0-38.4-8.533333-51.2-21.333334z m379.733334-187.733333c-21.333333-21.333333-25.6-51.2-17.066667-76.8 12.8-25.6 38.4-42.666667 64-42.666667 38.4 0 68.266667 34.133333 72.533333 72.533334 0 29.866667-17.066667 55.466667-42.666666 64-8.533333 4.266667-17.066667 4.266667-25.6 4.266666-21.333333 0-38.4-8.533333-51.2-21.333333zM341.333333 345.6c-17.066667-21.333333-25.6-51.2-12.8-76.8 12.8-25.6 38.4-42.666667 64-42.666667 38.4 0 68.266667 34.133333 72.533334 72.533334 0 29.866667-17.066667 55.466667-42.666667 64l-29.866667 4.266666c-17.066667 0-34.133333-8.533333-51.2-21.333333z"></path></symbol>','<symbol id="svg-icon-copy" viewBox="0 0 16 16"><path d="M7 5h2a3 3 0 0 0 3-3 2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2 3 3 0 0 0 3 3zM6 2a2 2 0 1 1 4 0 1 1 0 0 1-1 1H7a1 1 0 0 1-1-1z" fill-rule="evenodd"></path></symbol>'];function ae(t){return[{type:"output",config:((t={})=>({theme:"ayu-dark",...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll('code[class*="language-"]');if(!n.length)return!1;return t.scripts.push({id:"shiki-ext",code:oe,module:!0}),t.symbols.push(...re),se(n,this.config).then(()=>t)}}]}if("undefined"==typeof window)throw Error("The showdown zenuml extension can only be used in browser environment!");const le="zenuml";if(void 0===ue)var ue=window.zenuml||void 0;function ce(){return!(void 0===ue||!ue)}let de=!1;function pe(t,e){if(ce()){const n=e.id,o=e.className,i=e.data,s=e.element.parentNode,r=e.element,a=e.lang?.options??{},l=r.ownerDocument.createElement("div");l.id=n,r.style.cssText.length>0&&(l.style.cssText=r.style.cssText),l.className=o,l.classList.remove("zenuml"),a.theme||(a.theme="theme-blue");return new ue(l).render(i,a),s.replaceWith(l),void t(!0)}setTimeout(()=>{pe(t,e)},10)}function he(t){return new Promise(e=>{const n=$.createElementMeta(le,t);if(!n||!n.data)return e(!1);pe(e,n)})}function me(t,e){return function(){const t=ce();if("undefined"!=typeof window){if(de)return t;if(!t)return de=!0,b.loadScript(le).then(t=>{ue=$.interopDefault(window[t])}).catch(t=>{}),t}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(he(t))}),Promise.all(n).then(()=>{e(!0)})})}if("undefined"==typeof window)throw Error("The showdown plotly extension can only be used in browser environment!");const fe="Plotly";if(void 0===ge)var ge=window.Plotly||void 0;function ye(){return!(void 0===ge||!ge)}let we=!1;function ve(t,e,n){if(ye()){const o=e.id,i=e.className,s=e.data,r=e.element.parentNode,a=e.element,l=a.ownerDocument.createElement("div");return l.id=o,a.style.cssText.length>0&&(l.style.cssText=a.style.cssText),l.className=i,r.replaceWith(l),n.push({id:o,code:`(function(){\n try {\n const it = document.querySelector('#${o}');\n if (!it) return;\n ${s}\n }catch(e){\n console.error('plotly script run failed: ', e.toString());\n }\n})();`,host:l}),void t(!0)}setTimeout(()=>{ve(t,e,n)},10)}function xe(t,e){return new Promise(n=>{const o=$.createElementMeta(fe,t);if(!o||!o.data)return n(!1);ve(n,o,e)})}function be(t,e){!function(){const t=ye();if("undefined"!=typeof window){if(we)return t;if(!t)return we=!0,b.loadScript(fe).then(t=>{ge=$.interopDefault(window[t])}).catch(t=>{}),t}}();const n={inner:[]};return e.push(n),new Promise(e=>{const o=[];t.forEach(t=>{o.push(xe(t,n.inner))}),Promise.all(o).then(()=>{e(!0)})})}const ke={},Ee={};function Se(t,e){t.forEach(t=>{!function(t,e){const n=$.createElementMeta("Gnuplot",t,!0);if(!n||!n.data)return;const o=Ee[n.hash];if(o)return void t.parentNode.replaceWith(o);e.elements=e.elements??[];const i={id:n.id};n.lang&&(i.lang=n.lang),n.hash&&(i.hash=n.hash),e.elements.push(i)}(t,e)})}function Le(){if(!window||!("Gnuplot"in window))return;const t=window.Gnuplot;t.elements&&Array.isArray(t.elements)&&0!==t.elements.length&&"function"==typeof t.svgRender&&t.svgRender&&(t.elements.forEach(({id:e,hash:n})=>{const o=document.querySelector("#"+e);if(!o)return;let i=Ee[n];if(i)o.parentNode.replaceWith(i);else try{const e=`set terminal svg\n${o.textContent.trim()}\n`;t.svgRender(o.id,e).then(t=>{i=document.createElement("div"),i.id=o.id,i.className=o.className,o.style.cssText.length>0&&(i.style=o.style.cssText),i.innerHTML=t,o.parentNode.replaceWith(i),Ee[n]=i}).catch(t=>{})}catch(t){}}),delete t.elements)}function $e(t){return[{type:"output",config:((t={})=>({svgRender:null,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.gnuplot.language-gnuplot");return!!n.length&&(window&&(window.Gnuplot=ke),ke.svgRender=this.config.svgRender,t.scripts.push({id:"showdown-gnuplot",code:Le,once:!0}),Se(n,ke),ke.elements?.length>0&&(o=e,Object.keys(Ee).forEach(t=>{o.querySelector(`[id*="-${t}"]`)||delete Ee[t]})),t);var o}}]}if("undefined"==typeof window)throw Error("The showdown MathJax extension can only be used in browser environment!");if(void 0===je)var je=window.MathJax||void 0;let Ce=0;function Ae(){return!(void 0===je||!je)}let Ne=!1;function Me(t){const e=Ae();if("undefined"!=typeof window){if(Ne)return e;e||(Ne=!0,window.MathJax={tex:{inlineMath:{"[+]":[["\\$","\\$"]]},displayMath:{"[+]":[["@@","@@"]]}},svg:{fontCache:"global"},startup:{pageReady:()=>window.MathJax.startup.defaultPageReady().then(()=>{})}},t?$.deepMerge(window.MathJax,t):window.MathJaxConfig&&$.deepMerge(window.MathJax,window.MathJaxConfig),b.loadScript("MathJax").then(t=>{je=$.interopDefault(window[t])}).catch(t=>{}))}return e}function Te(t,e){if(Ae()){const n=e.id,o=e.className,i=e.cssLink??"",s=i.length>0?" css-mathjax":"",r=e.element,a=r.ownerDocument;return void je.tex2svgPromise(e.data,e.options).then(e=>{const l=a.createElement("div");l.id=n,l.className=`${o}${s}`,i.length>0&&(l.dataset.css=i),r.style.cssText.length>0&&(l.style=r.style.cssText),l.appendChild(e),r.parentNode.replaceWith(l),--Ce,Ce||je.startup.document.clear(),t(!0)}).catch(e=>{--Ce,Ce||je.startup.document.clear(),t(!1)})}setTimeout(()=>{Te(t,e)},10)}function qe(t,e){return new Promise(n=>{const o=$.createElementMeta("MathJax",t);if(!o||!o.data)return n(!1);o.options=Object.assign(e??{},o.options??{}),Te(n,o)})}const Oe=(t={})=>{let e={engine:"mathjax",delimiters:[],mathJax:{},conversion:{},...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,t.asciimath=!0}),t[e][o]);var i}return Array.isArray(e.delimiters)?e.delimiters.length||(e.delimiters=[{left:"@@",right:"@@",display:!0,asciimath:!0},{left:"\\$",right:"\\$",display:!1,asciimath:!0}]):e.delimiters=[].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 Pe(t){if(!Ae())return void setTimeout(()=>{Pe(t)},10);const e=document.querySelector(".showdowns");e&&(window.MathJax.startup.document&&window.MathJax.startup.document.clearMathItemsWithin([e]),window.MathJax.texReset(),window.MathJax.typesetPromise().then(()=>{window.MathJax.startup.document.clear(),"function"==typeof t&&t&&t(window.MathJax)}).catch(t=>{}))}function ze(t){const e=Oe(t);return[{type:"output",config:e,filter:function(t){const n=t.wrapper;if(!n)return!1;this.config.mathJax=this.config.mathJax??{};const o=this.config.mathJax;if(e.delimiters?.length>0){const t={inlineMath:{},displayMath:{}};e.delimiters.forEach(e=>{e.display?t.displayMath["[+]"]=(t.displayMath["[+]"]??[]).concat([[e.left,e.right]]):t.inlineMath["[+]"]=(t.inlineMath["[+]"]??[]).concat([[e.left,e.right]])}),o.tex||(o.tex={inlineMath:{},displayMath:{}}),o.tex.inlineMath=o.tex.inlineMath??{},o.tex.displayMath=o.tex.displayMath??{},0==(o.tex.inlineMath["[+]"]??[]).length&&(o.tex.inlineMath["[+]"]=t.inlineMath["[+]"]),0==(o.tex.displayMath["[+]"]??[]).length&&(o.tex.displayMath["[+]"]=t.displayMath["[+]"])}let i=!1;if("mathjax"===this.config.engine){const e=n.querySelectorAll(":not(code):not(pre)");if(e.length>0)for(let n=0;e.length>n;n++){if(e[n].textContent.match(/(?:@@|\$\$|\\\$|\\\(|\\\[|\\begin\{.*?})/)){t.scripts.push({id:"showdown-mathjax",code:Pe,once:!0}),Me(this.config.mathJax),i=!0;break}}}const s=n.querySelectorAll("code.mathjax.language-mathjax,code.math.language-math");return s.length?function(t,e){return Ce=t.length,Me(e.mathJax),new Promise(n=>{const o=[];t.forEach(t=>{o.push(qe(t,e.conversion))}),Promise.all(o).then(()=>{n(!0)})})}(s,this.config).then(()=>t):!!i&&t}}]}const De="echarts";if("undefined"==typeof window)throw Error(`The showdown ${De} extension can only be used in browser environment!`);if(void 0===He)var He=window.echarts||void 0;function Be(){return!!He}let Re=!1;function _e(t,e){if(Be()){const n=e.id,o=e.container,i=e.className,s=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 s.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(()=>{_e(t,e)},20)}function Ie(t,e,n){const o=$.createElementMeta(De,t);if(!o||!o.data)return Promise.resolve(!1);n={...n,ssr:!1,width:o.lang.width,height:o.lang.height};const i={id:o.container,code:((t,e)=>{const n=()=>{const n=window.eval;let o=document.getElementById(t.id);if(o){let i=He.getInstanceByDom(o);if(i||(o.innerHTML=""),i=He.init(o,null,e),t.lang&&t.lang.type&&"string"==typeof t.lang.type&&"javascript"==t.lang.type.toLowerCase()){const e=n(`(function(){${t.data}; return option;})();`);i.setOption(e)}else{const e=JSON.parse(t.data);i.setOption(e)}}};return n.toString=()=>t.lang&&t.lang.type&&"string"==typeof t.lang.type&&"javascript"==t.lang.type.toLowerCase()?`function(){\n const config = ${JSON.stringify(e)};\n let el = document.getElementById('${t.id}');\n if (el) {\n let chart = echarts.getInstanceByDom(el);\n if (!chart) {\n el.innerHTML = '';\n }\n chart = echarts.init(el, null, config);\n ${t.data}\n chart.setOption(option);\n }\n }`:`function(){\n const config = ${JSON.stringify(e)};\n let el = document.getElementById('${t.id}');\n if (el) {\n let chart = echarts.getInstanceByDom(el);\n if (!chart) {\n el.innerHTML = '';\n }\n chart = echarts.init(el, null, config);\n const option = ${t.data};\n chart.setOption(option);\n }\n }`,n})(o,n),host:"#"+o.container};return e.push(i),new Promise(t=>{_e(t,o)})}function Fe(t,e,n){const o={outer:[{name:De,src:b.getSrc(!1,De,"jsdelivr")}],inner:[]};return e.push(o),function(){const t=Be();if("undefined"!=typeof window){if(Re)return t;t||(Re=!0,b.loadScript(De).then(t=>{He=$.interopDefault(window[t])}).catch(t=>{}))}}(),new Promise(e=>{const i=[];t.forEach(t=>{i.push(Ie(t,o.inner,n))}),Promise.all(i).then(()=>{e(!0)})})}function We(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.${De}.language-${De}`);return!!n.length&&Fe(n,t.scripts,this.config).then(()=>t)}}]}const Je="mermaid";if("undefined"==typeof window)throw Error("The showdown mermaid extension can only be used in browser environment!");if(void 0===Ve)var Ve=window.mermaid||void 0;function Ue(){return!(void 0===Ve||!Ve)}let Ge=!1;function Ke(t,e){if(Ue()){const n=e.className,o=e.element.parentNode,i=e.element;return void Ve.render(e.id,e.data).then(e=>{let s=i.style.cssText;s.length>0&&(s=` style="${s}"`),o.outerHTML=`<div class="${n}"${s}>${e.svg}</div>`,t(!0)}).catch(e=>{t(!1)})}setTimeout(()=>{Ke(t,e)},10)}function Xe(t){return new Promise(e=>{const n=$.createElementMeta(Je,t);if(!n||!n.data)return e(!1);Ke(e,n)})}function Ze(t,e){return function(t){const e=Ue();if("undefined"!=typeof window){if(Ge)return e;if(!e)return Ge=!0,b.loadScript(Je).then(e=>{if("string"==typeof e)(Ve=$.interopDefault(window[e])).initialize(t);else if(Array.isArray(e)&&e.length>0){const n=[],o=[];e.forEach(t=>{const e=$.interopDefault(window[t]);Array.isArray(e)?o.push(...e):n.push(e)});const i=n[0];n.shift(),o.length>0&&i.registerLayoutLoaders(o),n.length>0?i.registerExternalDiagrams(n).then(()=>{(Ve=i).initialize(t)}):(Ve=i).initialize(t)}}),e}Ve.initialize(t)}(e),new Promise(e=>{const n=[];t.forEach(t=>{n.push(Xe(t))}),Promise.all(n).then(()=>{e(!0)})})}function Qe(t,e,n){var o=(3&t)<<4|e>>4,i=(15&e)<<2|n>>6,s=63&n,r="";return r+=Ye(63&t>>2),r+=Ye(63&o),r+=Ye(63&i),r+=Ye(63&s)}function Ye(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 tn(t){var e=t.charCodeAt(0);return"_"===t?63:"-"===t?62:97>e?65>e?48>e?"?":e-48:e-55:e-61}function en(t){var e=tn(t[0]),n=tn(t[1]),o=tn(t[2]);return[e<<2|n>>4&63,n<<4&240|o>>2&15,o<<6&192|63&tn(t[3])]}function nn(t){return function(t){for(var e="",n=0;t.length>n;n+=3)e+=n+2==t.length?Qe(t.charCodeAt(n),t.charCodeAt(n+1),0):n+1==t.length?Qe(t.charCodeAt(n),0,0):Qe(t.charCodeAt(n),t.charCodeAt(n+1),t.charCodeAt(n+2));return e}(e.deflateRawSync(t,{level:9}).toString("binary"))}function on(t){return""+e.inflateRawSync(Buffer.from(function(t){var e="",n=0;for(n=0;t.length>n;n+=4){var o=en(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 sn={encodeuml:function(t){const e="@startuml",n="@enduml";return nn(`${e}${(t.split(e)[1]+"").split(n)[0]||""}${n}`)},decodeuml:function(t){return on(t)}},rn="svg",an={};let ln=0;function un(t,e){return new Promise(n=>{const o=[],i=[];t.forEach(t=>{const n=function(t,e){const n=$.createElementMeta("PlantUML",t,!0);if(!n||!n.data)return;const o=an[n.hash];if(!o)return o=>{const i=e.imageFormat;if("svg"===i){if("function"==typeof e.svgRender&&e.svgRender){try{e.svgRender(n.id,n.data,{count:ln}).then(e=>{const i=document.createElement("div");i.id=n.id,i.className=n.className,t.style.cssText.length>0&&(i.style=t.style.cssText),i.innerHTML=e,t.parentNode.replaceWith(i),an[n.hash]=i,o(!0)})}catch(t){o(!1)}return}if(window&&window.fetch){const s=window.location&&window.location.protocol,r=i!==rn?"."+i:"",a=`${("http:"===s||"https:"===s?"//":"https://")+e.umlWebSite}/${i}/${sn.encodeuml(n.data)}${r}`;try{window.fetch(a).then(t=>{if("string"==typeof t)return t;if(t.ok)return t.text();throw Error("RequestError: "+t.status)}).then(e=>{const i=document.createElement("div");i.id=n.id,i.className=n.className,t.style.cssText.length>0&&(i.style=t.style.cssText),i.innerHTML=e,t.parentNode.replaceWith(i),an[n.hash]=i,o(!0)}).catch(t=>{o(!1)})}catch(t){o(!1)}return}return void o(!1)}let s=t.style.cssText;s.length>0&&(s=` style="${s}"`);const r=window&&window.location.protocol,a=("http:"===r||"https:"===r?"//":"https://")+e.umlWebSite,l=i!==rn?"."+i:"",u=sn.encodeuml(code);return t.parentNode.outerHTML=`<div id="${n.id}" class="${n.className}"${s}><img src='${a}/${i}/${u}${l}' alt=''></img></div>`,o(!0)};t.parentNode.replaceWith(o)}(t,e);n&&i.push(n)}),ln=i.length,i.forEach(t=>{o.push(new Promise(t))}),Promise.all(o).then(()=>{n(!0)})})}function cn(t){return[{type:"output",config:((t={})=>({umlWebSite:"www.plantuml.com/plantuml",imageFormat:rn,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&&un(n,this.config).then(()=>{var n;return n=e,Object.keys(an).forEach(t=>{n.querySelector(`[id*="-${t}"]`)||delete an[t]}),t})}}]}const dn="railroad";if("undefined"==typeof window)throw Error("The showdown railroad extension can only be used in browser environment!");let pn=!1;function hn(){return pn}let mn,fn=!1;function gn(t,e){if(hn()){const n=e.id,o=e.className,i=window.eval(e.data).format(),s=e.element.ownerDocument;let r=e.element.style.cssText;return r.length>0&&(r=` style="${r}"`),e.element.parentNode.outerHTML=`<div id="${n}" class="${o}"${r}></div>`,i.addTo(s.getElementById(n)),t(!0)}setTimeout(()=>{gn(t,e)},10)}function yn(t){return new Promise(e=>{const n=$.createElementMeta(dn,t);if(!n||!n.data)return e(!1);gn(e,n)})}function wn(t){return function(){const t=hn();if("undefined"!=typeof window){if(fn)return t;t||(fn=!0,b.loadScript(dn).then(()=>{pn=!0}).catch(t=>{}))}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(yn(t))}),Promise.all(n).then(()=>{e(!0)})})}if("undefined"==typeof window)throw Error("The showdown sequence extension can only be used in browser environment!");if(void 0===vn)var vn=window.Raphael||void 0;if("undefined"!=typeof window&&window.Diagram&&(mn=window.Diagram,window.Diagram.Signal))var xn=window.Diagram;const bn=["simple","hand"];if(void 0===xn&&"undefined"!=typeof window)xn=window.SequenceJS;function kn(){return!!vn}function En(){return kn()&&!!xn}let Sn=!1;function Ln(t){const e=$.createElementMeta("sequence",t);if(!e||!e.data)return;const n=function(){const t=En();if("undefined"!=typeof window){if(Sn)return t;t||(Sn=!0,b.loadScript("WebFont").then(()=>kn()?"Raphael":b.loadScript("Raphael")).then(t=>(vn=$.interopDefault(window[t]),b.loadScript("Snap"))).then(()=>b.loadScript("underscore")).then(()=>(!mn&&window.Diagram&&(mn=window.Diagram),b.loadScript("sequence"))).then(()=>{xn=window.Diagram,window.SequenceJS=xn,mn&&(window.Diagram=mn)}).catch(t=>{}))}return t}(),o=e.data;t.classList.replace("sequence","js-sequence"),!n&&"undefined"!=typeof window&&window.dispatchEvent?Promise.resolve(e.id).then(n=>{window.dispatchEvent(new CustomEvent("sequence",{detail:{id:t.id,className:t.className,data:o,lang:e.lang}}))}):"undefined"!=typeof window&&window.dispatchEvent&&window.dispatchEvent(new CustomEvent("sequence",{detail:{id:t.id,className:t.className,data:o,lang:e.lang}}))}function $n(t){if(En()){const e=t.id,n=t.className,o=t.data,i=t.lang;if(!o||0===o.length)return;let s="hand";i&&i.theme&&-1!=bn.indexOf(i.theme)&&(s=i.theme);let r=window.document.getElementById(e);if(r){r.parentNode.outerHTML=`<div id="${e}" class="${n}"></div>`,r=window.document.getElementById(e);return void xn.parse(o).drawSVG(r||e,{theme:s})}}setTimeout(()=>{$n(t)},10)}function jn(){let t=!1;return[{type:"output",filter:function(e){if("string"==typeof e){const n=(new DOMParser).parseFromString(e,"text/html"),o=void 0!==n.body?n.body:n,i=o.querySelectorAll("code.sequence.language-sequence");return i.length&&(t||"undefined"!=typeof window&&window.dispatchEvent&&(t=!0,window.addEventListener("sequence",t=>{t.detail&&$n(t.detail)})),this.config={cssLink:b.getCSS(!0,"sequence")}),function(t){return!!t.length&&(t.forEach(t=>{Ln(t)}),!0)}(i)?o.innerHTML:e}if(!e||!e.wrapper)return!1;const n=e;return n.wrapper.querySelectorAll("code.sequence.language-sequence").length>0&&$.addCssLink(n,b.getCSS(!0,"sequence"),"css-sequence"),n}}]}if("undefined"==typeof window)throw Error("The showdown wavedrom extension can only be used in browser environment!");if(void 0===Cn)var Cn=window.WaveDrom||void 0;let An=0,Nn=0;function Mn(){return!!Cn}let Tn=!1;function qn(t,e){if(Mn()){const n=e.index,o=e.id,i=e.className,s=e.data;if(!s||0===s.length)return t(!1);let r=e.element;return r.parentNode.outerHTML=$.renderCacheElement(r.ownerDocument,o+n,i,t=>{const e=window.eval(`(${s})`);Cn.RenderWaveForm(n,e,o);const i=document.getElementById("WaveDrom_Display_"+n);if(t!=i)for(;i.childNodes.length;)t.appendChild(i.removeChild(i.childNodes[0]))}),t(!0)}setTimeout(()=>{qn(t,e)},10)}function On(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 e(!1);o.align&&("center"===o.align?i="diagram-center":"right"===o.align&&(i="diagram-right"))}const s=t.textContent.trim();if(0===s.length)return e(!1);const r=(t.classList.length>0?t.classList[0]:"")+(t.className&&i?" ":"")+i,a=Nn;++Nn,--An,An||(Nn=0);const l="WaveDrom_Display_";t.id=l+a;qn(e,{element:t,index:a,id:l,className:r,data:s})})}function Pn(t,e){return function(t){const e=Mn();Tn||e||(Tn=!0,"undefined"!=typeof window&&b.loadScript("WaveDrom","default","",t).then(t=>{Cn=$.interopDefault(window[t])}).catch(t=>{}))}(e),new Promise(e=>{const n=[];An=t.length,t.forEach(t=>{n.push(On(t))}),Promise.all(n).then(()=>{e(!0)})})}if("undefined"==typeof window)throw Error("The showdown flowchart extension can only be used in browser environment!");if(void 0===zn)var zn=window.Raphael||void 0;if(void 0===Dn)var Dn=window.flowchart||void 0;function Hn(){return!(void 0===zn||!zn||void 0===Dn||!Dn)}let Bn=!1;function Rn(){const t=Hn();if("undefined"!=typeof window){if(Bn)return t;if(!t){if(Bn=!0,!zn)return b.loadScript("Raphael").then(t=>(zn=$.interopDefault(window[t]),b.loadScript("flowchart"))).then(t=>{Dn=$.interopDefault(window[t])}).catch(t=>{}),t;b.loadScript("flowchart").then(t=>{Dn=$.interopDefault(window[t])}).catch(t=>{})}}return t}function _n(t,e){if(Hn()){const n=e.id,o=e.className,i=e.data;if(!i||0===i.length)return t(!1);const s=e.options;return e.element.parentNode.outerHTML=$.renderCacheElement(e.element.ownerDocument,n,o,t=>{Dn.parse(i).drawSVG(t,s)}),void t(!0)}setTimeout(()=>{_n(t,e)},10)}function In(t,e){return new Promise(n=>{const o=$.createElementMeta("flowchart",t);if(!o||!o.data)return n(!1);o.options=e,_n(n,o)})}function Fn(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 Rn(),new Promise(o=>{const i=[];t.forEach(t=>{i.push(In(t,n))}),e.forEach(t=>{i.push(In(t,n))}),Promise.all(i).then(()=>{o(!0)})})}(n,o,this.config).then(()=>t)}}]}const Wn=new class{events={};on(t,e){this.events[t]||(this.events[t]=new Set),this.events[t].add(e)}off(t,e){this.events[t]?.delete(e)}emit(t,...e){let n=0;const o=this.events[t];return o&&o.forEach(t=>{t(...e),n++}),n}};function Jn(t){switch(t){case"success":case"成功":return"success";case"tip":case"提示":return"tip";case"info":case"信息":return"info";case"warning":case"警告":return"warning";case"error":case"错误":return"error";case"danger":case"危险":return"danger";case"summary":case"概要":return"summary";case"tldr":case"摘要":return"tldr";case"abstract":case"抽象":return"abstract";case"todo":case"待办":return"todo";case"hint":case"小窍门":return"hint";case"check":case"检测":return"check";case"done":case"完成":return"done";case"help":case"帮助":return"help";case"question":case"问题":return"question";case"faq":case"问答":return"faq";case"attention":case"关注":return"attention";case"caution":case"提醒":return"caution";case"failure":case"故障":return"failure";case"fail":case"失败":return"fail";case"missing":case"缺失":return"missing";case"bug":case"缺陷":return"bug";case"example":case"示例":return"example";case"snippet":case"片段":return"snippet";case"quote":case"引用":return"quote";case"cite":case"引文":return"cite";case"important":case"重点":return"important";case"key":case"要点":return"key";case"container":case"容器":return"container";case"row":case"行":return"row";case"col":case"列":return"col";default:return t}}function Vn(t,e,n){if(!t)return;const o=t.match(/(?:[^\s"']+|"[^"]*"|'[^']*')+/g).map(t=>t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'")?t.slice(1,-1):t);let i=e??{};return o.forEach(t=>{if(t)if("#"===t[0]||"."===t[0]){const e=t.split(".");"#"===e[0][0]&&(i.id=e[0].substring(1),e.shift()),e.length>0&&(i.classList||(i.classList=[]),e.forEach(n&&0!==n.length?t=>{if(t){if(!i.style){const e=Jn(t);e&&(i.style=e)}n.includes(t)||i.classList.includes(t)||i.classList.push(t)}}:t=>{t&&!i.classList.includes(t)&&i.classList.push(t)}))}else{const e=t.split("=");i.attribute||(i.attribute={});const n=e[0].toLowerCase();if(e.length>1){if("id"!==n&&"class"!==n){let t=e[1];t="true"===t.toLowerCase()||"false"!==t.toLowerCase()&&(isNaN(t)?t.replace(/^(['"]{0,1})(.*)\1$/,"$2"):Number(t)),i.attribute[n]=t}}else i.attribute[n]=void 0}}),i}function Un(t){if(!t)return"";let e="";for(const[n,o]of Object.entries(t))switch(e+=" "+n,typeof o){case"boolean":e+="true";break;case"number":e+="="+o;break;case"undefined":break;default:e+=`="${o}"`}return e}const Gn="resetImagePath";function Kn(t){return new Promise(e=>{const n=[];t.forEach(t=>{n.push(function(t){return new Promise(e=>{const n=t.dataset.src;if(!n)return e(!1);const o="image-"+Date.now()+Math.floor(1e4*Math.random()),i=o=>{o||(o=n),t.src=o,delete t.dataset.src,e(!0)};Wn.emit(Gn,o,n,i)||i(n)})}(t))}),Promise.all(n).then(()=>{e(!0)})})}const Xn={};Xn[Gn]=Gn;const Zn=(t={})=>({flavor:"github",metadata:!0,mathEngine:"mathjax",...t}),Qn=(e,n)=>{let o=null;try{o=t.extension(e)}catch{}return o||n},Yn=(e,n={})=>{const o=e&&e.mermaid||{},i=e&&e.plantuml||{},s=e&&e.mathjax||{},r=e&&e.tex||{},l=e&&e.katex||{},u=e&&e.kroki||{},c=e&&e.vega||{},d=e&&e.shiki||{},p=e&&e.gnuplot||{},h={"showdown-toc":Qn("showdown-toc",J),"showdown-image":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("img.inline-image");return!!n.length&&Kn(n).then(()=>t)}}],"showdown-mermaid":(f=o,[{type:"output",config:((t={})=>({theme:"forest",logLevel:4,startOnLoad:!1,arrowMarkerAbsolute:!1,flowchart:{curve:"basis"},gantt:{axisFormat:"%m/%d/%Y"},sequence:{actorMargin:50},...t}))(f),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.mermaid.language-mermaid");return!!n.length&&Ze(n,this.config).then(()=>t)}}]),"showdown-mathjax":ze(s),"showdown-katex":Ut(l),"showdown-flowchart":Fn(),"showdown-viz":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.dot.language-dot");return!!n.length&&Q(n).then(()=>t)}}],"showdown-vega":pt(c),"showdown-wavedrom":[{type:"output",config:((t={})=>({skin:"default",...t}))(m),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.wavedrom.language-wavedrom");return!!n.length&&(a("Begin render wavedrom elements."),Pn(n,this.config.skin).then(()=>(a("End render wavedrom elements."),t)))}}],"showdown-railroad":[{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:b.getCSS(!0,dn)},$.addCssLink(t,this.config.cssLink,"css-railroad"),wn(n).then(()=>t))}}],"showdown-abc":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll(`code.${C}.language-${C}`);return!!n.length&&(this.config={cssLink:b.getCSS(!0,j)},$.addCssLink(t,this.config.cssLink,"css-abc"),z(n,t.scripts).then(()=>t))}}],"showdown-echarts":We(),"showdown-plotly":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.plotly.language-plotly");return!!n.length&&be(n,t.scripts).then(()=>t)}}],"showdown-antv":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.infographic.language-infographic");return!!n.length&&wt(n).then(()=>t)}}],"showdown-zenuml":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.zenuml.language-zenuml");return!!n.length&&me(n).then(()=>t)}}],"showdown-sequence":Qn("showdown-sequence",jn),"showdown-plantuml":cn(i),"showdown-kroki":Qt(u),"showdown-tex":it(r),"showdown-gnuplot":$e(p),...n,"showdown-shiki":ae(d),"showdow-css":[{type:"output",filter:function(t){const e="css-ex-";$.removeAllStylesheet(e);const n=t.wrapper;if(!n)return!1;const o=n.querySelectorAll("a");return!!o.length&&(o.forEach(n=>{try{if(n.href&&"string"==typeof n.href&&"css:"===n.href.substr(0,4)){let o=n.href.substr(4).trim();const i=""+$.hashString(o);$.addCssLink(t,o,e+i),n.parentNode&&"P"===n.parentNode.tagName&&n.parentNode.parentNode?n.parentNode.parentNode.removeChild(n.parentNode):n.parentNode.removeChild(n),o=b.getUrl(o),$.loadStylesheet(o,e+i)}}catch{}}),t)}}]};var m,f;let g=[];for(let e in h)h.hasOwnProperty(e)&&(t.asyncExtension(e,h[e]),g.push(e));return g},to=(t,e,n,o)=>{if(!e||!n||"undefined"==typeof document)return!1;t&&"string"==typeof t&&(t=document.querySelector(t)),t||(t=document.getElementById(e))||(t=document.body);const i="script-"+e;let s=document.querySelector(`${t.tagName} > #${i}`);return s||(s=document.createElement("script"),s.id=i,s.type=o?"module":"text/javascript",s.text=n,t.appendChild(s)),!0},eo=(t,e,n,o)=>{if(!e||!n||"undefined"==typeof document)return!1;t&&"string"==typeof t&&(t=document.querySelector(t)),t||(t=document.getElementById(e))||(t=document.body);const i="script-"+e;let s=document.querySelector(`${t.tagName} > #${i}`);return s||(s=document.createElement("script"),s.id=i,s.type=o?"module":"text/javascript",s.text=n,t.insertBefore(s,t.children[0])),!0};function no(t,e,n){return new Promise((o,i)=>{t&&e&&"undefined"!=typeof document||i("Args is invaild!");const s=t.toLowerCase(),r="script-"+s;let a=document.getElementById(r);if(a)return o(t);const l=document.head||document.getElementsByTagName("head")[0];if(a=document.createElement("script"),a.id=r,n&&(a.type="module","string"==typeof n&&"import"===n))return a.textContent=`import * as ${s} from '${e}';\nif (!('${nativeName}' in window)) {\n if ('default' in ${s} && ${s}['default']) {\n window['${nativeName}'] = ${s}['default']\n } else {\n window['${nativeName}'] = ${s};\n }\n}`,l.appendChild(a),o(t);a.src=e,a.onload=()=>{o(t)},l.appendChild(a)})}const oo=function(e,n,o){let i=n;if(e.host&&(i="string"==typeof e.host?document.querySelector(e.host):e.host),!e.inner){if(!e.code)return!1;if("function"==typeof e.code){const t=e.code;return o?(o.then(()=>{t()}),!0):(t(),!0)}return o?(o.then(()=>{to(i,e.id,e.code,e.module)}),!0):to(i,e.id,e.code,e.module)}if(t.helper.isArray(e.inner)||(e.inner=[e.inner]),e.code)if("function"==typeof e.code){const t=e.code;o?o.then(()=>{t()}):t()}else o?o.then(()=>{eo(i,e.id,e.code,e.module)}):eo(i,e.id,e.code,e.module);if(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){const t=n.code;o?o.then(()=>{t()}):t();continue}let s=i;n.host&&(s="string"==typeof n.host?document.querySelector(n.host):n.host),o?o.then(()=>{to(s,n.id,n.code,n.module)}):to(s,n.id,n.code,n.module)}return!0},io=["github","ghost","vanilla","original","allon"],so=["mathjax","katex"],ro={showdown:t,converter:null,eventBus:Wn,defaultOptions:{showdown:Zn(),toc:{},plantuml:{imageFormat:"svg"},mermaid:{theme:"default"},mathjax:{},katex:{},kroki:{},vega:{theme:"vox"},shiki:{}},defaultExtensions:{},defaultAsyncExtensions:{},markdownDecodeFilter:function(t){return""},initDefaultOptions:function(){this.defaultOptions||(this.defaultOptions={showdown:{},toc:{},plantuml:{},mermaid:{},mathjax:{},katex:{},kroki:{},vega:{},shiki:{}})},onEvent:(t,e)=>{Xn[t]&&Wn.on(Xn[t],e)},setFlavor:function(t){this.showdown.setFlavor(t),this.converter&&this.converter.setFlavor(t)},getMetaData:function(t){if(!this.converter)return null;const e=this.converter.getMetadata(!1);return e.raw=this.converter.getMetadata(!0),e.format=this.converter.getMetadataFormat(),e},addOptions:function(t){for(const e in t)"flavor"!==e&&"mathEngine"!==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,o){"string"==typeof t&&t&&b.setCDN(t,e,n,o)},setShowdownFlavor:function(t){this.initDefaultOptions(),t&&(-1===io.indexOf(t)&&(t="github"),this.defaultOptions.showdown.flavor=t,this.setFlavor(t))},setMathEngine:function(t){this.initDefaultOptions(),t&&(-1===so.indexOf(t)&&(t="mathjax"),this.defaultOptions.showdown.mathEngine=t,this.setExtensionOptions("katex",{engine:t}),this.setExtensionOptions("mathjax",{engine:t}))},setLanuageTheme:function(t){this.initDefaultOptions(),t&&(this.defaultOptions.shiki.theme=t,this.setExtensionOptions("shiki",{theme: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.setMathEngine(this.defaultOptions.showdown.mathEngine),this.addOptions(this.defaultOptions.showdown),this.defaultOptions.showdown},setExtensionOptions:function(e,n){if(!n||"object"!=typeof n)return!1;let o=((e,n)=>{let o=null;try{o=t.asyncExtension(e)}catch{}return o||n})(e="showdown-"+e);if(!o&&(o=Qn(e),!o))return!1;if(!o.length)return!1;for(let t=0;o.length>t;t++){const e=o[t];if(e&&"output"===e.type&&e.config)return L(e.config,n),!0}return!1},setPlantumlOptions:function(t){return this.setExtensionOptions("plantuml",t)},setMermaidOptions:function(t){return this.setExtensionOptions("mermaid",t)},setKatexOptions:function(t){return this.setExtensionOptions("katex",t)},setKrokiOptions:function(t){return this.setExtensionOptions("kroki",t)},setVegaOptions:function(t){return this.setExtensionOptions("vega",t)},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=Zn(this.defaultOptions&&this.defaultOptions.showdown||{});this.setFlavor(t.flavor),this.setMathEngine(t.mathEngine),this.addOptions(t)}if(t.hasOwnProperty("extension")&&t.extension)for(let[t,e]in this.defaultOptions)"showdown"!==t&&this.setExtensionOptions(t,e)}}else{const e=Zn(this.defaultOptions&&this.defaultOptions.showdown||{}),n=((e,n={})=>{const o={"showdown-toc":J(e.toc),"showdown-image":[{type:"listener",listeners:{"images.after":(t,e)=>e.replace(/!\[\[([^\[\]]*)\]\](?:\{([^\{\}]*)\})?/gm,(t,e,n)=>(n||(n=""),`<img class="inline-image" data-src="${e}" ${n}/>`))}}],"showdown-align":vt(),"showdown-footnotes":[{type:"lang",filter:(t,e)=>t.replace(/^\[\^([\d\w]+)\]:\s*((\n+(\s{2,4}|\t).+)+)$/gm,(t,n,o,i,s)=>`<div class="footnote" id="footnote-${n}"><a href="#footnote-${n}"><sup>[${n}]</sup></a>:${e.makeHtml(o.replace(RegExp("^"+s,"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]+)\]/gm,(t,e,n)=>`${e}<a href="#footnote-${n}"><sup>[${n}]</sup></a>`)},{type:"lang",filter:t=>t.replace(/\\\[\^([\d\w]+)\]/gm,(t,e)=>`[^${e}]`)}],"showdown-directive":[{type:"listener",listeners:{"blockGamut.before":(e,n,o,i,s)=>(n=o._dispatch("directive.before",n,i,s),n=(n=(n=(n=(n=(n+="¨0").replace(/^ {0,3}((?::::+)|(?:!!!+))[ \t]*([-\w]*)[ \t]*(?:([^\f\v\r\n\[\]\{\}]*)|(?:\[([^\[\]]*)\])?[ \t]*(?:\{([^\{\}]*)\})?)[: \t]*\n([\s\S]*?)\n {0,3}\1[: \t]*/gm,function(e,n,o,r,a,l,u){(o=o.toLowerCase())||(o="container");const c={classList:[]};let d="",p="",h="";if(r||!a&&!l){const t=o.split("-");o=t[0],t.forEach((t,e)=>{if(e>0&&t){if(!c.style){const e=Jn(t);e&&(c.style=e)}c.classList.includes(t)||c.classList.push(t)}}),a=r}let m=!1;switch(o){case"note":case"备注":m=!0,c.type="admonition",h=B.getLangString("note","note"),c.classList.unshift("admonition","note"),Vn(l,c,["alert","container","row","col"]);break;case"alert":case"注意":m=!0,c.type="admonition",h=B.getLangString("alert","alert"),c.classList.unshift("admonition","alert"),Vn(l,c,["note","container","row","col"]);break;case"container":case"容器":c.type="container",Vn(l,c),c.classList.unshift("container");break;case"row":case"行":c.type="row",Vn(l,c),c.classList.unshift("row");break;case"col":case"列":c.type="col",Vn(l,c),c.classList.unshift("col");break;default:m=!0,c.type="admonition",c.style=Jn(o),Vn(l,c,["container","row","col"]),c.classList.includes("alert")||c.classList.includes("note")?c.classList.unshift("admonition"):c.classList.unshift("admonition","note")}m&&(c.style||(c.style="default"),c.classList.includes(c.style)||c.classList.push(c.style)),a?(a=t.subParser("spanGamut")(a,i,s),a=`<div class="${c.type}-title">${a}</div>`):m&&(h=(h||!c.style)??B.getLangString(c.style,c.style),a=`<div class="admonition-title">${h}</div>`),u?(u=t.subParser("githubCodeBlocks")(u,i,s),u=t.subParser("blockGamut")(u,i,s),u=`<div class="${c.type}-content">${u}</div>`):u="",c.id&&(d=`id="${c.id}" `),c.attribute&&(p=Un(c.attribute));const f=`<div ${d}class="${c.classList.join(" ")}"${p}>${a}${u}</div>`;return t.subParser("hashBlock")(f,i,s)})).replace(/^!!! ((?:[^"\n]+[ \t]+)*)(?:"([^"\n]+)")?[ \t]*\n((?:(?: |\t)[^\r\n]*(?:\n|$)|\n)*)/gm,function(e,n,o,r){const a={classList:["admonition"]},l=(n=n.toLowerCase()).split(" ");if(l.includes("alert")||l.includes("note")||a.classList.push("note"),l.forEach((t,e)=>{if(t){if(!a.style){const e=Jn(t);e&&(a.style=e)}a.classList.includes(t)||a.classList.push(t)}}),a.style||(a.style="default"),a.classList.includes(a.style)||a.classList.push(a.style),o=o?`<div class="admonition-title">${o=t.subParser("spanGamut")(o,i,s)}</div>`:`<div class="admonition-title">${a.style?B.getLangString(a.style,a.style):B.getLangString("note","note")}</div>`,r){const e=r.split("\n");e.forEach((t,n)=>{t&&(e[n]=t.substring("\t"===t[0]?1:4))}),r=t.subParser("githubCodeBlocks")(e.join("\n"),i,s),r=`<div class="admonition-content">${r=t.subParser("blockGamut")(r,i,s)}</div>`}else r="";const u=`<div class="${a.classList.join(" ")}">${o}${r}</div>`;return t.subParser("hashBlock")(u,i,s)})).replace(/^ {0,3}(?<!:)::[ \t]*([-\w]+)[ \t]*(?:\[([^\[\]]*)\])?[ \t]*\{([^\{\}]*)\}[ \t]*$/gm,function(e,n,o,r){const a={};if(Vn(r,a),"media"===n||"媒体"===n){let e="",n="",r="";o=o?`<div class="media-title">${o=t.subParser("spanGamut")(o,i,s)}</div>`:"",a.id&&(e=`id="${a.id}"`),a.attribute&&(n=Un(a.attribute)),a.classList&&(r=` class="${a.classList.join(" ")}"`);const l=`<iframe ${e}${r}${n}>${o}}</iframe>`;return t.subParser("hashBlock")(l,i,s)}if("css-link"===n){let e="",n="";a.id&&(e=`id="${a.id}"`),a.attribute&&(n=Un(a.attribute));const o=`<link ${e}${n}>`;return t.subParser("hashBlock")(o,i,s)}if("css"===n&&o){let e="",n="";a.id&&(e=`id="${a.id}"`),o||(o=""),a.attribute&&(n=Un(a.attribute));const r=`<style ${e}${n}>${o}</style>`;return t.subParser("hashBlock")(r,i,s)}let l="";if(Wn.emit("leafDirective",n,o,a,t=>{l=t})&&l)return t.subParser("hashBlock")(l,i,s)})).replace(/(?<!:):([-\w]+)\[([^\[\]]*)\]\{([^\{\}]*)\}/g,function(e,n,o,r){const a={};Vn(r,a);let l="",u="";a.id&&(l=`id="${a.id}"`),a.attribute&&(u=Un(a.attribute));let c="";a.classList&&(c=` class="${a.classList.join(" ")}"`),o=o?t.subParser("spanGamut")(o,i,s):"";let d="";return Wn.emit("textDirective",n,o,a,t=>{d=t})||(d=`<${n} ${l}${c}${u}>${o}</${n}>`),t.subParser("hashBlock")(d,i,s)})).replace(/¨0/,""),o._dispatch("directive.after",n,i,s))}}],"showdown-sequence":jn(),...n};let i=[];for(let e in o)o.hasOwnProperty(e)&&(t.extension(e,o[e]),i.push(e));return i})(this.defaultOptions,this.defaultExtensions),o=Yn(this.defaultOptions,this.defaultAsyncExtensions);this.setFlavor(e.flavor),this.setMathEngine(e.mathEngine),this.converter=new t.Converter({extensions:n}).initConvertExtObj(e.flavor,o),this.addOptions(e)}return this},makeHtml:function(e,n){let o="",i="html";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;"dom"===e.output&&(i="dom")}else o=e;return this.converter&&o?this.converter.asyncMakeHtml(o).then(e=>{if("string"!=typeof e.html){if("undefined"!=typeof document&&"dom"===i){let n=[e.html];if(e.extras){let o="",i=e.extras;t.helper.isArray(i)||(i=[i]);for(let t=0;i.length>t;++t)"string"==typeof i[t]?o+=i[t]:n.push(i[t]);if(o.length>0){const t=document.createElement("div");t.innerHTML=o,n.push(...t.childNodes),t.replaceChildren()}}return{html:n,scripts:e.scripts,cssLinks:e.cssLinks}}o=e.html.outerHTML}else o=e.html;if(e.extras){let n=e.extras;t.helper.isArray(n)||(n=[n]);for(let t=0;n.length>t;++t)o+="string"==typeof n[t]?n[t]:n.outerHTML}return{html:o,scripts:e.scripts,cssLinks:e.cssLinks}}):Promise.reject(o?"Converter is invaild.":"Content is empty.")},completedHtml:function(e,n){return t.helper.isArray(e)||(e=[e]),new Promise((o,i)=>{"string"==typeof n&&(n=document.querySelector(n));for(let o=0;e.length>o;++o){const s=e[o];if(s.outer){t.helper.isArray(s.outer)||(s.outer=[s.outer]);let e=s.outer[0],o=no(e.name,e.src,e.module);for(let t=1;s.outer.length>t;++t)e=s.outer[t],o=o.then(()=>no(e.name,e.src,e.module));oo(s,n,o);continue}if(!oo(s,n))return i("Args is invaild!")}o(!0)})},zDecode:function(t){return""+e.inflateRawSync(Buffer.from(t,"base64"))},zEncode:function(t){return e.deflateRawSync(t,{level:9}).toString("base64")}};module.exports=ro;
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 s=0;o.length>s;++s)o[s]===t&&o.splice(s,1);for(var a=0;i.length>a;++a)i[a]===t&&i.splice(a,1)}},this.asyncMakeHtml=function(t,e){const n=`<div class='showdowns'>${this.makeHtml(t)}</div>`,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"),s=void 0!==r.body?r.body:r,a=s.firstChild,l=this.getOptions();let c=Promise.resolve({wrapper:a,options:l,globals:i,scripts:[],extras:[],symbols:[],cssLinks:[]});return o.forEach(function(t){c=c.then(e=>{const n=t.filter(e);return n||e})}),c.then(t=>{if(t.symbols.length>0){const e=`<div id="global-showdowns-svgs" class="none hidden"><svg xmlns="http://www.w3.org/2000/svg">${t.symbols.join("")}</svg></div>`;t.extras.unshift(e)}if("function"==typeof e&&e){const n=e(t);if(n instanceof Promise)return n.then(t=>(s.replaceChildren(),{html:t.wrapper,extras:t.extras,scripts:t.scripts,cssLinks:t.cssLinks}))}return s.replaceChildren(),{html:t.wrapper,extras:t.extras,scripts:t.scripts,cssLinks:t.cssLinks}})},this},t.subParser("githubCodeBlocks",function(e,n,o){if(!n.ghCodeBlocks)return e;e=o.converter._dispatch("githubCodeBlocks.before",e,n,o);const i=function(e,i,r,s,a){var l=n.omitExtraWLInCodeBlocks?"":"\n";return a=t.subParser("encodeCode")(a,n,o),a="<pre><code"+(r?' class="'+r+" language-"+r+'"':"")+(s?` data-lang='${s}'`:"")+">"+(a=(a=(a=t.subParser("detab")(a,n,o)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+l+"</code></pre>",a=t.subParser("hashBlock")(a,n,o),"\n\n¨G"+(o.ghCodeBlocks.push({text:e,codeblock:a})-1)+"G\n\n"};return e=(e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*?)(?:[ \t]*?)((?:\{[\S\t ]*\}|\[[\S\t ]*\])?)\n([\s\S]*?)\n(?: {0,3})\1/g,i)).replace(/(?:^|\n)(?: {0,3})(:::+)(?: *)(mermaid)(?:[ \t]*?)((?:\{[\S\t ]*\}|\[[\S\t ]*\])?)\n([\s\S]*?)\n(?: {0,3})\1/g,i)).replace(/¨0/,""),o.converter._dispatch("githubCodeBlocks.after",e,n,o)}),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 s(e,i,r,s,a){if(n.tablesMerge){var l=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 s=o-1;s>=0;-s){if(t[r+1][s]&&"^^"!==t[r+1][s])return;if(t[r][s]){if(!t[r+1][s])return;return t[r][s]=t[r][s].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(s=o-1;s>=0;--s)if(t[e][s]){if("^^"!==t[e][s])return t[e][s]=t[e][s].replace(/colspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(t,e,n){return e+' colspan="'+(o-s+1)+'"'+n}),i;for(r=e-1;r>=0;--r){if(t[r][s+1])return;if("^^"!==t[r][s])return t[r][s]=t[r][s].replace(/colspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(t,e,n){return e+' colspan="'+(o-s+1)+'"'+n}),i}}else if(0===s)return t[e][s]='<td colspan="'+(o-s+1)+'"></td>\n',i}(e,i,r,s);if(!t.helper.isUndefined(l))return l}return s=s.trim(),"<td"+a+">"+t.subParser("spanGamut")(s,n,o)+"</td>\n"}function a(e,a){var l,c=e.split("\n");for(l=0;c.length>l;++l)/^ {0,3}\|/.test(c[l])&&(c[l]=c[l].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(c[l])&&(c[l]=c[l].replace(/\|[ \t]*$/,"")),c[l]=t.subParser("codeSpans")(c[l],n,o);var u=[],d=[],p=[],h=[],m=[];if(a)for(u=c[0].split("|").map(function(t){return t.trim()}),c.shift(),l=0;u.length>l;++l)h.push(i(u[l]));else{var f=c[0].split("|").map(function(t){return t.trim()});if(u=c[1].split("|").map(function(t){return t.trim()}),c.shift(),c.shift(),u.length>f.length)return e;for(l=0;u.length>l;++l)h.push(i(u[l]));for(l=0;f.length>l;++l)t.helper.isUndefined(h[l])&&(h[l]=""),p.push(r(f[l],h[l]))}for(l=0;c.length>l;++l)""!==c[l].trim()&&d.push(c[l].split("|").map(function(t){var e=t.trim();return""===e&&t.length>0?t:e}));for(l=0;d.length>l;++l){var g=[];m.push(g);for(var y=0;h.length>y;++y)t.helper.isUndefined(d[l][y])&&(d[l][y]=""),g.push(s(m,l,y,d[l][y],h[y]))}return function(t,e,o){var i="<table>\n",r=e.length;if(t.length){i+="<thead>\n<tr>\n";for(var s=0;t.length>s;++s)i+=t[s];i+="</tr>\n</thead>\n"}for(i+="<tbody>\n",s=0;o.length>s;++s){i+="<tr>\n";for(var a=0;r>a;++a)n.tablesMerge&&"^^"===o[s][a]||(i+=o[s][a]);i+="</tr>\n"}return i+"</tbody>\n</table>\n"}(p,h,m)}function l(t){return a(t,!1)}function c(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,l)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,l),n.tablesHeaderless&&(e=(e=e.replace(/^ {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,c)).replace(/^ {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,c)),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,s=t.getFlavorOptions;function a(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 s in i)i.hasOwnProperty(s)&&(t.getOptions()[s]=i[s])},t.getFlavor=function(){return n},t.setFlavorOptions=function(t,e){e&&(o[t]=Object.assign(o[t]||{},e))},t.getFlavorOptions=function(e){const n=s(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 l="jsdelivr",c="file:"===document.location.protocol?"https://":document.location.protocol+"//",u="",d="",p="";const h={local:{ABCJS:{src:"../node_modules/abcjs/dist/abcjs-basic.js",css:"../node_modules/abcjs/abcjs-audio.css"},echarts:"../node_modules/echarts/dist/echarts.js",Viz:"../node_modules/@viz-js/viz/dist/viz-global.js",Raphael:"../node_modules/raphael/raphael.min.js",flowchart:"../dist/diagrams/flowchart/flowchart.min.js",mermaid:{src:"../node_modules/mermaid/dist/mermaid.js",plugins:{"mermaid-zenuml":"../node_modules/@mermaid-js/mermaid-zenuml/dist/mermaid-zenuml.min.js","mermaid-mindmap":"../node_modules/@mermaid-js/mermaid-mindmap/dist/mermaid-mindmap.min.js","mermaid-layout-elk":{type:"module",module:"../node_modules/@mermaid-js/layout-elk/dist/mermaid-layout-elk.esm.min.mjs"}}},katex:{src:"../node_modules/katex/dist/katex.min.js",css:"../node_modules/katex/dist/katex.min.css"},renderMathInElement:"../node_modules/katex/dist/contrib/auto-render.js",MathJax:"../node_modules/mathjax/tex-mml-svg.js",railroad:{src:"../node_modules/railroad-diagrams/railroad-diagrams.js",css:"../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:{src:"../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.js",css:"../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.css"},WaveDrom:{src:"../node_modules/wavedrom/wavedrom.min.js",skin:{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",Plotly:"../node_modules/plotly.js-dist-min/plotly.min.js",Shiki:{type:"module",src:"../node_modules/@jhuix/shiki-loader/dist/index.js"},AntVInfographic:"../node_modules/@antv/infographic/dist/infographic.min.js",zenuml:"../node_modules/@zenuml/core/dist/zenuml.js"},unpkg:{ABCJS:{src:"https://unpkg.com/abcjs/dist/abcjs-basic-min.js",css:"https://unpkg.com/abcjs/dist/abcjs-audio.css"},echarts:"https://unpkg.com/echarts/dist/echarts.min.js",Viz:"https://unpkg.com/@viz-js/viz/dist/viz-global.js",Raphael:"https://unpkg.com/raphael/raphael.min.js",flowchart:"../dist/diagrams/flowchart/flowchart.min.js",mermaid:{src:"https://unpkg.com/mermaid/dist/mermaid.min.js",plugins:{"mermaid-layout-elk":{type:"module",module:"https://unpkg.com/@mermaid-js/layout-elk/dist/mermaid-layout-elk.esm.min.mjs"},"mermaid-zenuml":"https://unpkg.com/@mermaid-js/mermaid-zenuml/dist/mermaid-zenuml.min.js","mermaid-mindmap":"https://unpkg.com/@mermaid-js/mermaid-mindmap/dist/mermaid-mindmap.min.js"}},katex:{src:"https://unpkg.com/KaTeX/dist/katex.min.js",css:"https://unpkg.com/KaTeX/dist/katex.min.css"},renderMathInElement:"https://unpkg.com/KaTeX/dist/contrib/auto-render.js",MathJax:"https://unpkg.com/mathjax/tex-mml-svg.js",railroad:{src:"https://unpkg.com/railroad-diagrams/railroad-diagrams.js",css:"https://unpkg.com/railroad-diagrams/railroad-diagrams.css"},Snap:"https://unpkg.com/snapsvg/dist/snap.svg-min.js",WebFont:"https://unpkg.com/webfontloader/webfontloader.js",underscore:"https://unpkg.com/underscore/underscore-min.js",sequence:{src:"https://unpkg.com/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.js",css:"https://unpkg.com/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.css"},WaveDrom:{src:"https://unpkg.com/wavedrom/wavedrom.min.js",skin:{default:"https://unpkg.com/wavedrom/skins/default.js",lowkey:"https://unpkg.com/wavedrom/skins/lowkey.js",narrow:"https://unpkg.com/wavedrom/skins/narrow.js"}},vega:"https://unpkg.com/vega/build/vega.min.js",vegaLite:"https://unpkg.com/vega-lite/build/vega-lite.min.js",vegaEmbed:"https://unpkg.com/vega-embed/build/vega-embed.min.js",Plotly:"https://unpkg.com/plotly.js/dist/plotly.min.js",Shiki:{type:"module",module:"https://esm.sh/shiki"},AntVInfographic:"https://unpkg.com/@antv/infographic/dist/infographic.min.js",zenuml:"https://unpkg.com/@zenuml/core/dist/zenuml.js"},jsdelivr:{ABCJS:{src:"https://cdn.jsdelivr.net/npm/abcjs/dist/abcjs-basic-min.js",css:"https://cdn.jsdelivr.net/npm/abcjs/abcjs-audio.css"},echarts:"https://cdn.jsdelivr.net/npm/echarts/dist/echarts.min.js",Viz:"https://cdn.jsdelivr.net/npm/@viz-js/viz/dist/viz-global.js",Raphael:"https://cdn.jsdelivr.net/npm/raphael/raphael.min.js",flowchart:"../dist/diagrams/flowchart/flowchart.min.js",mermaid:{type:"module",module:"https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.esm.min.mjs",plugins:{"mermaid-layout-elk":"https://cdn.jsdelivr.net/npm/@mermaid-js/layout-elk/dist/mermaid-layout-elk.esm.min.mjs","mermaid-zenuml":"https://cdn.jsdelivr.net/npm/@mermaid-js/mermaid-zenuml/dist/mermaid-zenuml.esm.min.mjs","mermaid-mindmap":"https://cdn.jsdelivr.net/npm/@mermaid-js/mermaid-mindmap/dist/mermaid-mindmap.esm.min.mjs"}},katex:{src:"https://cdn.jsdelivr.net/npm/katex/dist/katex.min.js",css:"https://cdn.jsdelivr.net/npm/katex/dist/katex.min.css"},renderMathInElement:"https://cdn.jsdelivr.net/npm/katex/dist/contrib/auto-render.js",MathJax:"https://cdn.jsdelivr.net/npm/mathjax/tex-mml-svg.js",railroad:{src:"https://cdn.jsdelivr.net/npm/railroad-diagrams/railroad-diagrams.min.js",css:"https://cdn.jsdelivr.net/npm/railroad-diagrams/railroad-diagrams.css"},Snap:"https://cdn.jsdelivr.net/npm/snapsvg/dist/snap.svg-min.js",WebFont:"https://cdn.jsdelivr.net/npm/webfontloader/webfontloader.js",underscore:"https://cdn.jsdelivr.net/npm/underscore/underscore-min.js",sequence:{src:"https://cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.js",css:"https://cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.css"},WaveDrom:{src:"https://cdn.jsdelivr.net/npm/wavedrom/wavedrom.min.js",skin:{default:"https://cdn.jsdelivr.net/npm/wavedrom/skins/default.js",lowkey:"https://cdn.jsdelivr.net/npm/wavedrom/skins/lowkey.js",narrow:"https://cdn.jsdelivr.net/npm/wavedrom/skins/narrow.js"}},vega:"https://cdn.jsdelivr.net/npm/vega/build/vega.min.js",vegaLite:"https://cdn.jsdelivr.net/npm/vega-lite/build/vega-lite.min.js",vegaEmbed:"https://cdn.jsdelivr.net/npm/vega-embed/build/vega-embed.min.js",Plotly:"https://cdn.jsdelivr.net/npm/plotly.js-dist-min/plotly.min.js",Shiki:{type:"module",module:"https://cdn.jsdelivr.net/npm/shiki/+esm"},AntVInfographic:"https://cdn.jsdelivr.net/npm/@antv/infographic/dist/infographic.min.js",zenuml:"https://cdn.jsdelivr.net/npm/@zenuml/core/dist/zenuml.min.js"}};function m(){return l}function f(t,e){return t||e.startsWith("http://")||e.startsWith("https://")||e.startsWith(c)?e:e.startsWith("../dist/")?d+e:u+e}function g(t,e,n){if(void 0!==n&&n&&"default"!==n||(n=m()),h.hasOwnProperty(n)){const o=h[n][e];if(o){if("string"==typeof o)return{src:f(t,o)};if(o.src&&(o.src=f(t,o.src)),o.module&&(o.module=f(t,o.module)),o.css)if("string"==typeof o.css)o.css=f(t,o.css);else for(const[e,n]of Object.entries(o.css))o.css[e]=f(t,n);if(o.skin)if("string"==typeof o.skin)o.skin=f(t,o.skin);else for(const[e,n]of Object.entries(o.skin))o.skin[e]=f(t,n);if(o.plugins)for(const[e,n]of Object.entries(o.plugins))"string"!=typeof n?(n.src&&(o.plugins[e].src=f(t,n.src)),n.module&&(o.plugins[e].module=f(t,n.module))):o.plugins[e]=f(t,n);if(o.src||o.module)return o}}}function y(t,e){const n="css-"+t.toLowerCase();let o=document.getElementById(n);var i=document.head||document.getElementsByTagName("head")[0];o&&o.remove(),o=document.createElement("link"),o.id=n,o.rel="stylesheet",o.href=e,i.appendChild(o)}function w(t,e){return new Promise(n=>{const o=t.toLowerCase(),i="script-"+o;if(!document.getElementById(i)){var r=document.head||document.getElementsByTagName("head")[0],s=document.createElement("script");if(s.id=i,"string"==typeof e)s.src=e;else{if(e.type&&(s.type=e.type,"module"===e.type&&e.module)){const n=o.replaceAll(/[-@+.]/g,"");s.textContent=`\nimport * as ${n} from '${e.module}';\nif (!('${t}' in window)) {\n if ('default' in ${n} && ${n}['default']) {\n window['${t}'] = ${n}['default']\n } else {\n window['${t}'] = ${n};\n }\n}\nconst s = document.querySelector('#${i}');\nif (s && s.onload) {\n s.onload();\n}\n`}e.src&&(s.src=e.src)}return s.onload=()=>{n(t)},void r.appendChild(s)}n(t)})}function v(t,e,n){const o=t.toLowerCase(),i="script-"+o;let r=document.getElementById(i);if(r)return n(t);const s=document.head||document.getElementsByTagName("head")[0];r=document.createElement("script"),r.id=i;let a=!1;if(e.type&&(r.type=e.type,"module"===e.type&&e.module)){a=!0;let s="",l="";if(r.onloaded=e=>{n(e||t)},e.plugins){const n=[];for(const[t,o]of Object.entries(e.plugins)){n.push(`'${t}'`);const e=t.toLowerCase().replaceAll(/[-@+.]/g,"");s+=`import * as ${e} from '${o}';\nif (!('${t}' in window)) {\n if ('default' in ${e} && ${e}['default']) {\n window['${t}'] = ${e}['default']\n } else {\n window['${t}'] = ${e};\n }\n}\n`}n.length>0&&(l=`['${t}',${n.join(",")}]`)}const c=o.replaceAll(/[-@+.]/g,"");r.textContent=`\nimport * as ${c} from '${e.module}';\nif (!('${t}' in window)) {\n if ('default' in ${c} && ${c}['default']) {\n window['${t}'] = ${c}['default']\n } else {\n window['${t}'] = ${c};\n }\n}\n${s}\nconst s = document.querySelector('#${i}');\nif (s && s.onloaded) {\n s.onloaded(${l});\n}\n`}e.src&&(r.src=e.src),e.defer&&(r.defer=!0),a||(r.onload=e.plugins?()=>{const o=[];o.push(new Promise(e=>{e(t)}));for(const[t,n]of Object.entries(e.plugins))o.push(w(t,n));Promise.all(o).then(t=>{n(t)})}:()=>{n(t)}),s.appendChild(r)}function x(t){const e=document.getElementById("css-"+t.toLowerCase());e&&e.remove()}const b={setCDN:function(t,e,n,o){t in h&&(l=t),"string"==typeof e&&e&&(u=e),"string"==typeof n&&n&&(d=n),"string"==typeof o&&o&&("/"!==p.at(p.length-1)&&(o+="/"),p=o)},getCDN:m,getCSS:function(t,e,n,o){const i=g(t,e,n);if(i)return i.css},getSrc:function(t,e,n){const o=g(t,e,n);if(o)return o.src},getUrl:function(t){try{const e=new URL(t);if("dist:"===e.protocol)return t="../dist/"===(t=t.substring(e.protocol.length+2)).substring(0,8)?d+t:u+t;if("file:"===e.protocol&&p){return t=new URL(p).origin+"/"+t.substring(8)}}catch{if(p){const e="./";t.substring(0,e.length)===e&&(t=t.substring(e.length)),t=p+t}}return t},getModule:g,loadScript:function(t,e,n,o){return new Promise((i,r)=>{if(!t||"undefined"==typeof document)return r("Args is invaild!");e||(e="");const s=g(!1,t,e);if(!s)return r(t+" script source invaild!");if(s.css&&("string"==typeof s.css?y(t,s.css):n&&n.length>0&&n in s.css&&y(t,s.css[n])),s.skin){let e="";if("string"==typeof s.skin?(e=s.skin,o="skin"):o&&o.length>0&&o in s.skin&&(e=s.skin[o]),e.length>0)return void w(t+"-"+o,e).then(()=>{v(t,s,i)})}v(t,s,i)})},unloadScript:function(t,e){const n=document.querySelectorAll(`[id^="script-${t.toLowerCase()}"]`);n&&n.forEach(t=>{t.remove()}),e&&e.length||(e="skin");const o=document.getElementById("script-"+t.toLowerCase()+"-"+e.toLowerCase());o&&o.remove(),x(t)},loadStyleSheet:function(t,e,n){if(!t||"undefined"==typeof document)return"";const o=g(!1,t,e);if(!o||!o.css)return"";let i="";return"string"==typeof o.css?i=o.css:n&&n in o.css&&(i=o.css[n]),i.length>0&&y(t,o.css[n]),"local"===e?"":i},unloadStyleSheet:x};function k(t){if(!t||"string"!=typeof t)return null;try{return JSON.parse(t)}catch(e){let n=null;return t.replace(/^\{(.*)\}$/,"$1").split(",").forEach(t=>{const e=t.split("=");if(2===e.length){n||(n={});const t=e[0].trim().replace(" ","-");let o=e[1].trim();o="true"===o.toLowerCase()||"false"!==o.toLowerCase()&&(isNaN(o)?o.replace(/^"(.*)"$/,"$1"):Number(o)),n[t]=o}}),n}}function E(t){let e=0;for(let n=0;t.length>n;n++){const o=t.charCodeAt(n);e=Math.imul(31,e)+o|0}return e>>>0}function S(t){return t&&"function"!=typeof t&&"object"==typeof t&&!Array.isArray(t)}function L(t,...e){for(const n of e)for(const[e,o]of Object.entries(n))S(o)&&S(t[e])?L(t[e],o):Object.assign(t,{[e]:o});return t}const $={parseAttribute:k,interopDefault:function(t){return t&&"object"==typeof t&&"default"in t&&t.default?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},loadStylesheet:function(t,e){if(!t||"undefined"==typeof document)return!1;let n=null;if(e&&(n=document.getElementById(e)),!n){const n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("link");o.rel="stylesheet",o.href=t,e&&(o.id=e),n.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)})},removeAllStylesheet:function(t){if(!t)return;const e=document.head||document.getElementsByTagName("head")[0];e.querySelectorAll("link").forEach(n=>{n.id&&n.id.substring(0,t.length)===t&&e.removeChild(n)})},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,o){const i=k(e.dataset.lang);let r="diagram-left";if(i){const t=i.codeblock||i.code_block;if("boolean"==typeof t&&t||"string"==typeof t&&"true"===t.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"),e.style.width=i.width),i.height&&("string"!=typeof i.height&&(i.height=i.height+"px"),e.style.height=i.height)}let s=e.textContent.trim();o&&"function"==typeof o&&(s=o(s));const a=(e.classList.length>0?e.classList[0]:"")+(e.className&&r?" ":"")+r;let l;"string"==typeof n?n.length>0&&(n="-"+n):"boolean"==typeof n&&n?(l=E(e.dataset.lang+s),n="-"+l):n="-"+Math.floor(1e4*Math.random());const c=t.toLowerCase()+"-"+Date.now()+n;return e.id=c,e.className=a,{id:c,container:c+"-container",className:a,data:s,hash:l,element:e,lang:i}},addCssLink:function(t,e,n){return t.cssLinks?Array.isArray(t.cssLinks)||(t.cssLinks=[t.cssLinks]):t.cssLinks=[],t.cssLinks.push({id:n,link:e}),t},addScript:function(t,e){return t.scripts?Array.isArray(t.scripts)||(t.scripts=[t.scripts]):t.scripts=[],t.scripts.push(e),t},addExtra:function(t,e){return t.extras?Array.isArray(t.extras)||(t.extras=[t.extras]):t.extras=[],t.extras.push(e),t},hashString:E,deepMerge:L},C="ABCJS",j="abc";if("undefined"==typeof window)throw Error("The showdown abcjs extension can only be used in browser environment!");if(void 0===A)var A=window.ABCJS||void 0;function N(){return!!A}let T=!1;function M(){if(void 0===t)var t=window.ABCJS||void 0;function e(t){const e=this;e.onReady=function(){},e.onStart=function(){const e=document.querySelector("#"+t+" svg"),n=document.createElementNS("http://www.w3.org/2000/svg","line");n.setAttribute("class","abcjs-cursor"),n.setAttributeNS(null,"x1",0),n.setAttributeNS(null,"y1",0),n.setAttributeNS(null,"x2",0),n.setAttributeNS(null,"y2",0),e.appendChild(n)},e.beatSubdivisions=2,e.onBeat=function(t,e,n){},e.onEvent=function(e){if(e.measureStart&&null===e.left)return;const n=document.querySelectorAll("#"+t+" svg .highlight");for(let t=0;n.length>t;t++)n[t].classList.remove("highlight");for(let t=0;e.elements.length>t;t++){const n=e.elements[t];for(let t=0;n.length>t;t++)n[t].classList.add("highlight")}const o=document.querySelector("#"+t+" svg .abcjs-cursor");o&&(o.setAttribute("x1",e.left-2),o.setAttribute("x2",e.left-2),o.setAttribute("y1",e.top),o.setAttribute("y2",e.top+e.height))},e.onFinished=function(){const e=document.querySelectorAll("#"+t+" svg .highlight");for(let t=0;e.length>t;t++)e[t].classList.remove("highlight");const n=document.querySelector("#"+t+" svg .abcjs-cursor");n&&(n.setAttribute("x1",0),n.setAttribute("x2",0),n.setAttribute("y1",0),n.setAttribute("y2",0))}}window.abcEnv={abcOptions:{add_classes:!0,responsive:"resize"},setTune(e,n,o){const i=e.id,r=e.data;if(!o)return void t.renderAbc(i,r,this.abcOptions);o.disable(!0);const s=t.renderAbc(i,r,this.abcOptions)[0];(new t.synth.CreateSynth).init({visualObj:s}).then(function(t){o.setTune(s,n).then(function(t){}).catch(function(t){})}).catch(function(t){})},load(n,o){let i;if(n){const r="#"+n;t.synth.supportsAudio()?(i=new t.synth.SynthController,i.load(r,new e(o.id),{displayLoop:!0,displayRestart:!0,displayPlay:!0,displayProgress:!0,displayWarp:!0})):document.querySelector(r).innerHTML="<div class='audio-error'>Audio is not supported in this browser.</div>"}this.setTune(o,!1,i)}}}function q(t,e){const n=function(){window.abcEnv.load(t,e)};return n.toString=function(){return`function(){\n const audio = '${t}';\n const render = ${JSON.stringify(e)};\n window.abcEnv.load(audio, render);\n }`},n}function O(t,e,n){if(N()){const o=n.id,i=n.className,r=n.container;let s="";n.lang&&(n.lang.width&&(s+=`width:${n.lang.width};`),n.lang.height&&(s+=`height:${n.lang.height};`));let a="";if(s?(a+=`<div id="${r}" class="${i}" style="${s}">`,a+=`<div id="${o}" style="width:100%;height:100%;display:inline-block"></div>`):(a+=`<div id="${r}" class="${i}">`,a+=`<div id="${o}"></div>`),!n.lang||!n.lang.audio){const e=n.data,i=n.element.ownerDocument;a+="</div>",n.element.parentNode.outerHTML=a;const r=i.getElementById(o);return A.renderAbc(r,e,{add_classes:!0,responsive:"resize"}),t(!0)}const l=n.data,c=o+"-audio";a+=s?`<div id="${c}" style="width:100%;height:100%;display:inline-block"></div>`:`<div id="${c}"></div>`,a+="</div>",n.element.parentNode.outerHTML=a;const u={id:r,code:q(c,{id:o,class:i,data:l}),host:"#"+r};return e.push(u),t(!0)}setTimeout(()=>{O(t,e,n)},10)}function P(t,e){return new Promise(n=>{let o=$.createElementMeta(j,t);if(!o||!o.data)return n(!1);O(n,e,o)})}function z(t,e){const n={outer:[{name:"ABCJS",src:b.getSrc(!1,"ABCJS","jsdelivr")}],id:"abcjs-ext",code:M,inner:[]};return e.push(n),function(){const t=N();if("undefined"!=typeof window){if(T)return t;t||(T=!0,$.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;}"),b.loadScript(C).then(t=>{A=$.interopDefault(window[t])}).catch(t=>{}))}}(),new Promise(e=>{const o=[];t.forEach(t=>{o.push(P(t,n.inner))}),Promise.all(o).then(()=>{e(!0)})})}let D="en";!function(){let t=document?.children[0].lang??"en";t=t.toLowerCase(),D="zh-cn"===t||"zh-hans"===t?"zh-cn":"en"}();const B={en:{"code-copy":"Copy Code","code-theme-prefix":"Theme:","code-lang-prefix":"Lang:",toc:"Table Of Contents","toc-show-title-prefix":"Show ","toc-hide-title-prefix":"Hide ","toc-toggle-prefix":"Toggle ","msg-copy-success":"Copy success!","msg-copy-failed":"Copy failed!","export-actions-title":"Click to view actions","export-svg-action":"Save as SVG","export-png-action":"Save as PNG"},"zh-cn":{"code-copy":"复制代码","code-theme-prefix":"主题:","code-lang-prefix":"语言:",toc:"目录","toc-show-title-prefix":"显示","toc-hide-title-prefix":"隐藏","toc-toggle-prefix":"切换","msg-copy-success":"复制成功!","msg-copy-failed":"复制失败!","export-actions-title":"点击查看操作","export-svg-action":"保存为 SVG","export-png-action":"保存为 PNG",note:"备注",alert:"注意",simple:"简洁",info:"信息",tip:"提示",warning:"警告",error:"错误",success:"成功",danger:"危险",summary:"概要",tldr:"摘要",abstract:"抽象",todo:"待办",hint:"小窍门",check:"检测",done:"完成",help:"帮助",question:"问题",faq:"问答",attention:"关注",caution:"提醒",failure:"故障",fail:"失败",missing:"缺失",bug:"缺陷",example:"示例",snippet:"片段",quote:"引用",cite:"引文",important:"重点",key:"要点"}};const H={getLangString:function(t,e){return B[D]?.[t]??e}},R=["H1","H2","H3","H4","H5","H6"];function I(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"><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"><use xlink:href="#icon-chapter-l"></use></svg>';const s=i.appendChild(t.ownerDocument.createElement("a"));s.appendChild(t.ownerDocument.createTextNode(e.textContent)),s.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=I(t,null,n.toc,o,!0),n.preLevel++;n.toc=I(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=I(t,e,n.toc,o,!1)}return n.parentNode&&_(t,e,n.parentNode,o),n}const F=['<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>'],W=/^((?:\[(?:Table[ -]Of[ -]Contents|目录|TOC)\])|(?:【(?:Table[ -]Of[ -]Contents|目录|TOC|_TOC_)】)|(?:\{\{([_]?)TOC\2\}\})|(?:\[\[([_]?)TOC\3\]\]))$/i;function J(){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 V(t){return[{type:"output",config:((t={})=>({chapterNumber:!0,compatible:!1,expand:!1,title:"",toc:W,...t}))(t),filter:function(t){if("string"==typeof t){const e=(new DOMParser).parseFromString(t,"text/html"),n=void 0!==e.body?e.body:e;return this.config.toc||(this.config.toc=W),function(t,e){let n=null,o=0,i=null,r=!1,s=!1,a=null;const l=e.toc instanceof RegExp?e.toc:RegExp(`^(${e.toc})$`,"i");let c=1;const u=[0,0,0,0,0,0],d=t.querySelectorAll(R.join(",")+(e.compatible?",p":""));for(let p=0;d.length>p;p++){if(n=d[p],l.test(n.textContent.trim())){let l=null;if(s)l=t.ownerDocument.createElement("div"),l.classList.add("showdown-toc");else{if(a){n.parentNode.removeChild(n);continue}l=t.ownerDocument.createElement("div"),l.classList.add("showdown-toc"),a=l;let o=H.getLangString("toc"),i=H.getLangString("toc-show-title-prefix"),r=H.getLangString("toc-hide-title-prefix"),s=H.getLangString("toc-toggle-prefix");e.title?.length>0&&(o=e.title);const c=t.ownerDocument.createElement("div");c.id="toc-switch-button",c.classList.add("toc-switch"),c.title=i+o,c.innerHTML='<svg class="icon"><use xlink:href="#icon-chapter-l"></use></svg>',n.parentNode.insertBefore(c,n),l.id="total-showdown-toc",l.classList.add("total-toc"),l.innerHTML=`<div class="toc-pin"><span class="toc-pin-text">${o}</span><div class="toc-fold-wrap"><div id="toc-fold-icon" class="toc-fold toc-icon" data-name="toc-expand" title="${s+o}"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-toc"></use></svg></div><div id="toc-close-icon" class="toc-close toc-icon" title="${r+o}"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-chapter-s"></use></svg></div></div></div>`,e.expand?c.classList.add("hidden"):l.classList.add("hidden")}let c=t.ownerDocument.createElement("div");c.classList.add("toc-view"),l.appendChild(c);let u={parentNode:null,toc:c,headingLevel:o,preLevel:o,standalone:!1};if(i)if(o>i.headingLevel)u.parentNode=i;else{let t=i;for(;t.headingLevel>o;)t=t.parentNode;t&&(u.parentNode=o===t.headingLevel?t.parentNode:t)}i=u,r=!0,i.standalone=!s,s?n.parentNode.replaceChild(l,n):n.parentNode.removeChild(n);continue}if(R.includes(n.tagName)){if(s||(s=!0),o=parseInt(n.tagName.substr(1)),e.chapterNumber)if(o>1){if(c!==o){c=o;let t=c;for(;u.length>t;)u[t]=0,t++}let t="",e=1;for(u[c-1]++;o>e;)t+=u[e]+".",e++;n.textContent=t+" "+n.textContent}else{let t=0;for(;u.length>t;)u[t]=0,t++}i&&(i=_(t,n,i,o))}}for(s&&(i&&(e.symbols=F),a&&(e.extras||(e.extras=[]),e.extras.push(a.outerHTML)));i;){let t=i;i=t.parentNode,t.parentNode=null,t.toc=null,t.headingLevel=null,t.preLevel=null}return r}(n,this.config)?n.innerHTML:t}if(!("object"==typeof t&&t&&this.config.extras&&Array.isArray(this.config.extras)&&this.config.extras.length))return!1;const e=t;this.config.extras.forEach(t=>{$.addExtra(e,t)}),this.config.symbols?.length>0&&e.symbols.push(...this.config.symbols);return $.addScript(e,{inner:[{id:"showdown-toc",code:J,host:"#total-showdown-toc"}]}),e}}]}if("undefined"==typeof window)throw Error("The showdown viz extension can only be used in browser environment!");if(void 0===G)var G=window.Viz||void 0;const U=["circo","dot","neato","osage","twopi"];function K(){return!(void 0===G||!G||void 0===G.instance)}let X=!1;function Y(t,e){if(K()){const n=e.id,o=e.className,i=e.data;if(!i||0===i.length)return t(!1);const r=e.element,s=e.lang;let a="dot";s&&s.engine&&-1!=U.indexOf(s.engine)&&(a=s.engine);let l=r.style.cssText;return l.length>0&&(l=` style="${l}"`),void G.instance().then(e=>{const s=e.renderString(i,{format:"svg",engine:a});r.parentNode.outerHTML=`<div id="${n}" class="${o}"${l}>${s}</div>`,t(!0)}).catch(e=>{t(!1)})}setTimeout(()=>{Y(t,e)},10)}function Z(t){return new Promise(e=>{const n=$.createElementMeta("viz",t);if(!n||!n.data)return e(!1);Y(e,n)})}function Q(t){return function(){const t=K();if("undefined"!=typeof window){if(X)return t;t||(X=!0,b.loadScript("Viz").then(t=>{G=$.interopDefault(window[t])}).catch(t=>{}))}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(Z(t))}),Promise.all(n).then(()=>{e(!0)})})}const tt={},et={},nt=["pdflatex","xelatex","lualatex"];function ot(t,e){t.forEach(t=>{!function(t,e){const n=$.createElementMeta("Tex",t,!0);if(!n||!n.data)return;const o=et[n.hash];if(o)return void t.parentNode.replaceWith(o);let i=e.config.buildType??"pdflatex";n.lang?.engine&&nt.includes(n.lang.engine.toLowerCase())&&(i=n.lang.engine.toLowerCase()),e.elements=e.elements??[];const r={type:i,id:n.id};n.lang&&(r.lang=n.lang),e.elements.push(r)}(t,e)})}function it(){if(!window||!("Tex"in window))return;const t=window.Tex;if(!t.elements||!Array.isArray(t.elements)||0===t.elements.length)return;const e="https://"+(t.config.serverUrl??"tex.io");t.elements.forEach(({type:n,id:o,lang:i})=>{const r=document.querySelector("#"+o);if(!r)return;const s=r.dataset.lang,a=r.textContent.trim(),l=$.hashString(s+a),c=et[l];if(c)return void r.parentNode.replaceWith(c);if("function"==typeof t.svgRender&&t.svgRender){const e={build:n};i&&(i.width?.length>0&&(e.width=i.width),i.height?.length>0&&(e.height=i.height),i.zoom&&i.zoom>0&&(e.zoom=i.zoom));try{t.svgRender(r.id,a,e).then(t=>{const e=document.createElement("div");e.id=r.id,e.className=r.className,r.style.cssText.length>0&&(e.style=r.style.cssText),e.innerHTML=t,r.parentNode.replaceWith(e),et[l]=e}).catch(t=>{})}catch(t){}return}if(!window||!window.fetch)return;const u=[];i&&(i.width?.length>0&&u.push("width="+i.width),i.height?.length>0&&u.push("height="+i.height),i.zoom&&i.zoom>0&&u.push("zoom="+i.zoom));const d=`${e}/${n}/svg`+(u.length>0?"?"+u.join("&"):"");try{window.fetch(d,{method:"POST",body:a,headers:{Accept:"*/*","Content-Type":"text/plain; charset=utf-8"}}).then(t=>{if("string"==typeof t)return t;if(t.ok)return t.text();throw Error("RequestError: "+t.status)}).then(t=>{if(t){const e=document.createElement("div");e.id=r.id,e.className=r.className,r.style.cssText.length>0&&(e.style=r.style.cssText),e.innerHTML=t,r.parentNode.replaceWith(e),et[l]=e}}).catch(t=>{})}catch(t){}}),delete t.elements}function rt(t){return[{type:"output",config:((t={})=>({serverUrl:"tex.io",buildType:"pdflatex",svgRender:null,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.tex.language-tex,code.latex.language-latex");return!!n.length&&(window&&(window.Tex=tt),tt.config={serverUrl:this.config.serverUrl,buildType:this.config.buildType},tt.svgRender=this.config.svgRender,t.scripts.push({id:"showdown-tex",code:it,once:!0}),ot(n,tt),tt.elements?.length>0&&(o=e,Object.keys(et).forEach(t=>{o.querySelector(`[id*="-${t}"]`)||delete et[t]})),t);var o}}]}const st="vega";if("undefined"==typeof window)throw Error("The showdown vega extension can only be used in browser environment!");if(void 0===at)var at=window.vegaEmbed||void 0;function lt(){return!(void 0===at||!at)}let ct=!1;function ut(t,e,n,o){const i=$.createElementMeta(st,t);if(!i||!i.data)return Promise.resolve(!1);const r=i.container,s={id:r,code:((t,e)=>{const n=()=>{const n=window.eval;let o=document.getElementById(t.id);if(o)if(t.lang&&t.lang.type&&"string"==typeof t.lang.type&&"javascript"==t.lang.type.toLowerCase()){const i=n(`(function(){${t.data}; return option;})();`);at(o,i,e)}else{const n=JSON.parse(t.data);at(o,n,e)}};return n.toString=()=>t.lang&&t.lang.type&&"string"==typeof t.lang.type&&"javascript"==t.lang.type.toLowerCase()?`function(){\n let el = document.getElementById('${t.id}');\n if (el) {\n ${t.data};\n const config = ${JSON.stringify(e)};\n vegaEmbed(el, option, config);\n }\n }`:`function(){\n let el = document.getElementById('${t.id}');\n if (el) {\n const option = ${t.data};\n const config = ${JSON.stringify(e)};\n vegaEmbed(el, option, config);\n }\n }`,n})(i,e),host:"#"+r};return n.push(s),new Promise(t=>{pt(t,i)})}function dt(t,e,n,o){const i={outer:[{name:st,src:b.getSrc(!1,st,"jsdelivr")},{name:"vegaLite",src:b.getSrc(!1,"vegaLite","jsdelivr")},{name:"vegaEmbed",src:b.getSrc(!1,"vegaEmbed","jsdelivr")}],inner:[]};return n.push(i),function(){const t=lt();if("undefined"!=typeof window){if(ct)return t;t||(ct=!0,b.loadScript(st).then(()=>b.loadScript("vegaLite")).then(()=>b.loadScript("vegaEmbed")).then(t=>{at=$.interopDefault(window[t])}).catch(t=>{}))}}(),new Promise(n=>{const r=[];t.forEach(t=>{r.push(ut(t,o,i.inner))}),e.forEach(t=>{r.push(ut(t,o,i.inner))}),Promise.all(r).then(()=>{n(!0)})})}function pt(t,e){if(lt()){let n=e.element.style.cssText;return n.length>0&&(n=` style="${n}"`),e.element.parentNode.outerHTML=`<div id="${e.container}" class="${e.className}"${n}><div id="${e.id}"></div></div>`,t(!0)}setTimeout(()=>{pt(t,e)},10)}function ht(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)&&dt(n,o,t.scripts,this.config).then(()=>t)}}]}if("undefined"==typeof window)throw Error("The showdown antv extension can only be used in browser environment!");if(void 0===mt)var mt=window.AntVInfographic||void 0;function ft(){return!(void 0===mt||!mt)}let gt=!1;function yt(t,e){if(ft()){const n=e.id,o=e.className,i=e.data,r=e.element.parentNode,s=e.element,a=e.lang?.options??{},l=s.ownerDocument.createElement("div");l.id=n,s.style.cssText.length>0&&(l.style.cssText=s.style.cssText),l.className=o,a.container=l,e.lang&&(e.lang.width&&(a.width=e.lang.width),e.lang.height&&(a.height=e.lang.height));return new mt.Infographic(a).render(i),r.replaceWith(l),void t(!0)}setTimeout(()=>{yt(t,e)},10)}function wt(t){return new Promise(e=>{const n=$.createElementMeta("infographic",t);if(!n||!n.data)return e(!1);yt(e,n)})}function vt(t){return function(){const t=ft();if("undefined"!=typeof window){if(gt)return t;if(!t)return gt=!0,b.loadScript("AntVInfographic").then(t=>{mt=$.interopDefault(window[t])}).catch(t=>{}),t}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(wt(t))}),Promise.all(n).then(()=>{e(!0)})})}function xt(){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 bt=".",kt={input:'"',tag:"mtext",output:"mbox",tex:null,ttype:10},Et=[{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},kt,{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 St(t,e){return t.input>e.input?1:-1}var Lt,$t,Ct,jt=[];function At(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 Nt(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 Tt(t){for(var e,n,o,i=0,r="",s=!0,a=1;t.length>=a&&s;a++)n=t.slice(0,a),i=Nt(jt,n,i),jt.length>i&&t.slice(0,jt[i].length)==jt[i]&&(e=i,a=(r=jt[i]).length),s=jt.length>i&&t.slice(0,jt[i].length)>=jt[i];if($t=Ct,""!=r)return Ct=Et[e].ttype,Et[e];Ct=0,i=1,n=t.slice(0,1);for(var l=!0;n>="0"&&"9">=n&&t.length>=i;)n=t.slice(i,i+1),i++;if(n==bt&&(n=t.slice(i,i+1))>="0"&&"9">=n)for(l=!1,i++;n>="0"&&"9">=n&&t.length>=i;)n=t.slice(i,i+1),i++;return l&&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==$t?(Ct=3,{input:n,tag:o,output:n,ttype:1,func:!0,val:!0}):{input:n,tag:o,output:n,ttype:0,val:!0}}function Mt(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 qt(t){var e;return e="boolean"==typeof t.val&&t.val?"":"\\",null==t.tex?e+t.input:e+t.tex}function Ot(t){var e,n,o,i,r="";if(null==(e=Tt(t=At(t,0)))||5==e.ttype&&Lt>0)return[null,t];switch(8==e.ttype&&(e=Tt(t=e.output+At(t,e.input.length))),e.ttype){case 7:case 0:t=At(t,e.input.length);var s=qt(e);return"\\"==s.charAt(0)||"mo"==e.tag?[s,t]:["{"+s+"}",t];case 4:Lt++,o=zt(t=At(t,e.input.length),!0),Lt--;var a=0;return"\\right"==o[0].substr(0,6)&&(")"==(c=o[0].charAt(6))||"]"==c||"}"==c?a=6:"."==c?a=7:"\\rbrace"==(c=o[0].substr(6,7))&&(a=13)),a>0?(o[0]=o[0].substr(a),n="boolean"==typeof e.invisible&&e.invisible?"{"+o[0]+"}":"{"+qt(e)+o[0]+"}"):n="boolean"==typeof e.invisible&&e.invisible?"{\\left."+o[0]+"}":"{\\left"+qt(e)+o[0]+"}",[n,o[1]];case 10:return e!=kt&&(t=At(t,e.input.length)),-1==(i="{"==t.charAt(0)?t.indexOf("}"):"("==t.charAt(0)?t.indexOf(")"):"["==t.charAt(0)?t.indexOf("]"):e==kt?t.slice(1).indexOf('"')+1:0)&&(i=t.length)," "==(c=t.slice(1,i)).charAt(0)&&(r="\\ "),r+="\\text{"+c+"}"," "==c.charAt(c.length-1)&&(r+="\\ "),[r,t=At(t,i+1)];case 1:return null==(o=Ot(t=At(t,e.input.length)))[0]?["{"+qt(e)+"}",t]:"boolean"==typeof e.func&&e.func?"^"==(c=t.charAt(0))||"_"==c||"/"==c||"|"==c||","==c||1==e.input.length&&e.input.match(/\w/)&&"("!=c?["{"+qt(e)+"}",t]:[n="{"+qt(e)+"{"+o[0]+"}}",o[1]]:(o[0]=Mt(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?[qt(e)+"{"+o[0]+"}",o[1]]:["{"+qt(e)+"{"+o[0]+"}}",o[1]]);case 2:if(null==(o=Ot(t=At(t,e.input.length)))[0])return["{"+qt(e)+"}",t];o[0]=Mt(o[0]);var l=Ot(o[1]);return null==l[0]?["{"+qt(e)+"}",t]:(l[0]=Mt(l[0]),[r="color"==e.input?"{\\color{"+o[0].replace(/[\{\}]/g,"")+"}"+l[0]+"}":"root"==e.input?"{\\sqrt["+o[0]+"]{"+l[0]+"}}":"{"+qt(e)+"{"+o[0]+"}{"+l[0]+"}}",l[1]]);case 3:return t=At(t,e.input.length),[e.output,t];case 6:return t=At(t,e.input.length),["{\\quad\\text{"+e.input+"}\\quad}",t];case 9:Lt++,o=zt(t=At(t,e.input.length),!1),Lt--;var c="";return"|"==(c=o[0].charAt(o[0].length-1))&&","!==t.charAt(0)?[n="{\\left|"+o[0]+"}",o[1]]:[n="{\\mid}",t];default:return t=At(t,e.input.length),["{"+qt(e)+"}",t]}}function Pt(t){var e,n,o,i,r;if(n=Tt(t=At(t,0)),i=(r=Ot(t))[0],3==(e=Tt(t=r[1])).ttype&&"/"!=e.input){if((r=Ot(t=At(t,e.input.length)))[0]=null==r[0]?"{}":Mt(r[0]),t=r[1],"_"==e.input)if("^"==(o=Tt(t)).input){var s=Ot(t=At(t,o.input.length));s[0]=Mt(s[0]),t=s[1],i="{"+i,i+="_{"+r[0]+"}",i+="^{"+s[0]+"}",i+="}"}else i+="_{"+r[0]+"}";else i=i+"^{"+r[0]+"}";void 0!==n.func&&n.func&&(3==(o=Tt(t)).ttype||5==o.ttype||1>=n.input.length&&4!=o.ttype||(i="{"+i+(r=Pt(t))[0]+"}",t=r[1]))}return[i,t]}function zt(t,e){var n,o,i,r,s="",a=!1;do{o=(i=Pt(t=At(t,0)))[0],3==(n=Tt(t=i[1])).ttype&&"/"==n.input?((i=Pt(t=At(t,n.input.length)))[0]=null==i[0]?"{}":Mt(i[0]),t=i[1],o="\\frac{"+(o=Mt(o))+"}",s+=o+="{"+i[0]+"}",n=Tt(t)):null!=o&&(s+=o)}while((5!=n.ttype&&(9!=n.ttype||e)||0==Lt)&&null!=n&&""!=n.output);if(5==n.ttype||9==n.ttype){var l=s.length;if(l>2&&"{"==s.charAt(0)&&s.indexOf(",")>0){var c=s.charAt(l-2);if(")"==c||"]"==c){var u=s.charAt(6);if("("==u&&")"==c&&"}"!=n.output||"["==u&&"]"==c){var d="",p=[];p.push(0);var h=!0,m=0,f=[];f[0]=[0];var g=0,y=0,w="";for(r=1;l-1>r;r++)s.charAt(r)==u&&m++,s.charAt(r)==c&&0==--m&&","==s.charAt(r+2)&&"{"==s.charAt(r+3)&&(p.push(r+2),f[g=r+2]=[r+2]),"["!=s.charAt(r)&&"("!=s.charAt(r)&&"{"!=s.charAt(r)||y++,"]"!=s.charAt(r)&&")"!=s.charAt(r)&&"}"!=s.charAt(r)||y--,","==s.charAt(r)&&1==y&&f[g].push(r),0>y&&(g==r+1?r++:h=!1);p.push(l);var v=-1;if(0==m&&p.length>0&&h)for(r=0;p.length-1>r;r++){if(r>0&&(d+="\\\\"),0==r)if(1==f[p[r]].length)var x=[s.substr(p[r]+7,p[r+1]-p[r]-15)];else{x=[s.substring(p[r]+7,f[p[r]][1])];for(var b=2;f[p[r]].length>b;b++)x.push(s.substring(f[p[r]][b-1]+1,f[p[r]][b]));x.push(s.substring(f[p[r]][f[p[r]].length-1]+1,p[r+1]-8))}else if(1==f[p[r]].length)x=[s.substr(p[r]+8,p[r+1]-p[r]-16)];else{for(x=[s.substring(p[r]+8,f[p[r]][1])],b=2;f[p[r]].length>b;b++)x.push(s.substring(f[p[r]][b-1]+1,f[p[r]][b]));x.push(s.substring(f[p[r]][f[p[r]].length-1]+1,p[r+1]-8))}for(b=x.length-1;b>=0;b--)"{\\mid}"==x[b]?(0==r&&(w="|"+w),x.splice(b,1)):0==r&&(w="c"+w);v>0&&x.length!=v?h=!1:-1==v&&(v=x.length),d+=x.join("&")}d="\\begin{array}{"+w+"} "+d+"\\end{array}",h&&(s=d)}}}t=At(t,n.input.length),"boolean"==typeof n.invisible&&n.invisible?(s+="\\right.",a=!0):(s+=o="\\right"+qt(n),a=!0)}return Lt>0&&!a&&(s+="\\right."),[s,t]}function Dt(t){return Lt=0,null==(t=(t=(t=t.replace(/(&nbsp;|\u00a0|&#160;)/g,"")).replace(/&gt;/g,">")).replace(/&lt;/g,"<")).match(/\S/)?"":zt(t.replace(/^\s+/g,""),!1)[0]}if(function(){var t,e=Et.length;for(t=0;e>t;t++)!Et[t].tex||"boolean"==typeof Et[t].notexcopy&&Et[t].notexcopy||Et.push({input:Et[t].tex,tag:Et[t].tag,output:Et[t].output,ttype:Et[t].ttype,acc:Et[t].acc||!1});!function(){var t;for(Et.sort(St),t=0;Et.length>t;t++)jt[t]=Et[t].input}()}(),"undefined"==typeof window)throw Error("The showdown katex extension can only be used in browser environment!");if(void 0===Bt)var Bt=window.katex||void 0;if("undefined"==typeof renderMathInElement)var Ht=window.renderMathInElement||void 0;let Rt=0;function It(){return!(void 0===Bt||!Bt)}let _t=!1;function Ft(t,e){const n=It();if("undefined"!=typeof window){if(_t)return n;if(!n)return _t=!0,b.loadScript("katex").then(e=>{if(Bt=$.interopDefault(window[e]),"katex"===t)return b.loadScript("renderMathInElement")}).then(t=>{Ht=$.interopDefault(window[t]),"function"==typeof e&&e&&e(Ht)}).catch(t=>{}),n}return"function"==typeof e&&e&&e(Ht),n}function Wt(t,e){if(It()){const n=e.className,o=e.input,i=e.data,r=e.options,s=e.element.ownerDocument;let a="";if(i instanceof Array)i.forEach(t=>{if(""===t)a+="<br>";else{const e=Bt.renderToString(t,r);a+=`<div title="${o}" class="${n}">${e}</div>`}});else{const t=Bt.renderToString(i,r);a=`<div title="${o}" class="${n}">${t}</div>`}return e.element.parentNode.outerHTML=a,--Rt,!Rt&&Ht&&Ht(s.body,r),void t(!0)}setTimeout(()=>{Wt(t,e)},10)}function Jt(t,e,n){return new Promise(o=>{let i;const r=$.createElementMeta("katex",t,!1,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?Dt(t):t),e.push(t)})):e=n?Dt(i):i,e});if(!r)return o(!1);r.input=i,r.options=e,Wt(o,r)})}function Vt(t){return t.replace(/[-[\]/{}()*+?.\\$^|]/g,"\\$&")}const Gt=(t={})=>{let e={engine:"katex",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 Ut(t){let e=0;const n=Gt(t),o=n.delimiters.map(({left:t,right:n,display:o,asciimath:i})=>({test:RegExp(`${Vt(t)}([\\s\\S]+?)${Vt(n)}`,"g"),replacer:(t,n)=>(++e,i&&(n=Dt(n)),o?`\\[${n}\\]`:`\\(${n}\\)`)}));return[{type:"output",config:n,filter:function(t){e=0;const n=t.wrapper;if(!n)return!1;"katex"===this.config.engine&&o.length&&n.querySelectorAll(":not(code):not(pre)").forEach(t=>{const e=t.textContent;if(e.length>0){const n=o.reduce((t,{test:e,replacer:n})=>t.replace(e,n),e);t.textContent=n}});let i=n.querySelectorAll("code.katex.language-katex");const r=n.querySelectorAll("code.asciimath.language-asciimath");if(!i.length&&!r.length){if(e>0){this.config.cssLink=b.getCSS(!0,"katex");const s=this;function a(t,e){It()?(e(n.ownerDocument.body,s.config),t(!0)):setTimeout(()=>{a(t,e)},10)}return new Promise(t=>{Ft(this.config.engine,e=>{a(t,e)})}).then(()=>t)}return!1}return this.config.cssLink=b.getCSS(!0,"katex"),$.addCssLink(t,this.config.cssLink,"css-katex"),function(t,e,n){return Rt=t.length+e.length,Ft(n.engine),new Promise(o=>{const i=[];t.forEach(t=>{i.push(Jt(t,n,!1))}),e.forEach(t=>{i.push(Jt(t,n,!0))}),Promise.all(i).then(()=>{o(!0)})})}(i,r,this.config).then(()=>t)}}]}const Kt={},Xt={};function Yt(t,e){t.forEach(t=>{!function(t,e){const n=$.createElementMeta("Tex",t,!0);if(!n||!n.data)return;const o=Kt[n.hash];if(o)return void t.parentNode.replaceWith(o);let i="";if(t.classList.length>0){const e=t.classList[0].split("-");e.length>1&&(i=e[e.length-1])}i.length>0&&window&&window.fetch&&e&&(e.elements=e.elements??[],e.elements.push({type:i,id:n.id}))}(t,e)})}function Zt(){if(!window||!("Kroki"in window))return;const t=window.Kroki;if(!t.elements||!Array.isArray(t.elements)||0===t.elements.length)return;const e=t.config.imageFormat??"svg";t.elements.forEach(({type:n,id:o})=>{const i=document.querySelector("#"+o);if(!i)return;const r=i.dataset.lang,s=i.textContent.trim(),a=$.hashString(r+s),l=Kt[a];if(l)return void i.parentNode.replaceWith(l);if("function"==typeof t.svgRender&&t.svgRender){const o={diagramType:n,imageFormat:e};try{t.svgRender(i.id,s,o).then(t=>{const e=document.createElement("div");e.id=i.id,e.className=i.className,i.style.cssText.length>0&&(e.style=i.style.cssText),e.innerHTML=t,i.parentNode.replaceWith(e),Kt[a]=e}).catch(t=>{})}catch(t){}return}const c=`${"https://"+(t.config.serverUrl??"kroki.io")}/${n}/${e}`;try{window.fetch(c,{method:"POST",body:s,headers:{Accept:"*/*","Content-Type":"text/plain; charset=utf-8"}}).then(t=>{if("string"==typeof t)return t;if(t.ok)return t.text();throw Error("RequestError: "+t.status)}).then(t=>{if(t){const e=document.createElement("div");e.id=i.id,e.className=i.className,i.style.cssText.length>0&&(e.style=i.style.cssText),e.innerHTML=t,i.parentNode.replaceWith(e),Kt[a]=e}}).catch(t=>{})}catch(t){}}),delete t.elements}function Qt(t){return[{type:"output",config:((t={})=>({serverUrl:"kroki.io",imageFormat:"svg",svgRender:null,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll('code[class*="language-kroki-"]');return!!n.length&&(window&&(window.Kroki=Xt),Xt.config={serverUrl:this.config.serverUrl,imageFormat:this.config.imageFormat},Xt.svgRender=this.config.svgRender,t.scripts.push({id:"showdown-kroki",code:Zt,once:!0}),Yt(n,Xt),Xt.elements?.length>0&&(o=e,Object.keys(Kt).forEach(t=>{o.querySelector(`[id*="-${t}"]`)||delete Kt[t]})),t);var o}}]}if(void 0===te)var te=window.Shiki||void 0;function ee(){return!(void 0===(te=window.Shiki)||!te)}let ne,oe=!1;function ie(){function t(){let t;function e(t,e){t.content&&(t.content.textContent=e),t.root&&t.root.classList.remove("hidden"),t.timer&&(clearTimeout(t.timer),t.timer=null),t.timer=setTimeout(()=>{t.content&&(t.content.textContent=""),t.root&&t.root.classList.add("hidden"),t.timer=null,t.content=null,t.root=null},5e3)}const n=document.querySelectorAll(".codeblock-container");if(n?.length){!function(e){if(t)return t;const n=e.createElement("div");n.classList.add("select-items","select-theme-items");const o=[];window.Shiki.bundledThemesInfo.forEach(i=>{const r=function(n,o,i){const r=e.createElement("div");r.classList.add("options-item"),r.dataset.theme=o,r.dataset.name=i,r.title=i;const s=e.createElement("span");return s.classList.add("select-item-content"),s.textContent=i,r.appendChild(s),r.addEventListener("click",function(e){const o=e.currentTarget;if(o.classList.add("selected-item"),Array.from(n.children).forEach(function(t){t!==o&&t.classList.remove("selected-item")}),t&&t.container){const e=t.container,n=t.themer,i=t.tools;if(e.dataset.theme=o.dataset.theme,e.dataset.themeName=o.dataset.name,n){const t=H.getLangString("code-theme-prefix");n.dataset.title=t+o.dataset.name}const r=e.dataset.language,s=o.dataset.theme,a=e.querySelector("pre code");if(a){const t=a?.textContent;window.Shiki.codeToHtml(t,{lang:r,theme:s}).then(t=>{a.parentNode.outerHTML=t})}i&&i.classList.remove("show-theme-options"),t.container=null,t.themer=null,t.tools=null}n.style="",n.remove(),e.stopPropagation()}),{option:r,content:s}}(n,i.id,i.displayName);n.appendChild(r.option),o.push(r)});const i=[];window.Shiki.bundledLanguagesInfo.forEach(t=>{i.push(t.id),t.aliases&&t.aliases.forEach(t=>{i.push(t)})}),t={options:n,items:o,langs:i}}(document);for(let o=0;n.length>o;o++){const i=n[o],r=i.querySelector(".codeblock-tools"),s=i.querySelector(".tools-button-copy");s&&s.addEventListener("click",function(){const t=i.querySelector("pre code"),n={root:i.querySelector(".tools-message"),content:i.querySelector(".tools-message-content")},o=t?.textContent;navigator.clipboard.writeText(o).then(function(){e(n,H.getLangString("msg-copy-success"))},function(t){e(n,H.getLangString("msg-copy-failed"))})});const a=i.querySelector(".tools-button-theme");a&&a.addEventListener("click",function(e){if(t){let n;t.container&&t.options&&t.options.remove(),t.container=i,t.themer=a,t.tools=r,t.tools&&t.tools.classList.add("show-theme-options"),t.items.forEach(function(t){i.dataset.theme===t.option.dataset.theme?(n=t.option,t.option.classList.add("selected-item")):t.option.classList.remove("selected-item")});const o=a.getBoundingClientRect(),s=t.container.getBoundingClientRect();t.options.style.top=o.bottom-s.top-1+"px",t.options.style.right=0,t.container.appendChild(t.options),t.options.classList.remove("hidden"),n&&n.scrollIntoView({container:"nearest"}),e.stopPropagation()}})}document.addEventListener("click",function(){t?.options?.parentNode&&(t.options.style="",t.options.remove(),t.tools&&t.tools.classList.remove("show-theme-options"),t.container=null,t.themer=null,t.tools=null)},!1)}}window&&"Shiki"in window?t():import("https://esm.sh/shiki@3.21.0").then(e=>{window.Shiki="default"in e&&e.default?e.default:e,t()})}function re(t,e,n){if(ee()){const o=e.classList[0];let i="";for(let t=0;te.bundledLanguagesInfo.length>t;t++){const e=te.bundledLanguagesInfo[t];if(e.id===o){i=e.name;break}if(e.aliases&&e.aliases.includes(o)){i=e.name;break}}if(!i)return void t(!1);let r=c;for(let t=0;te.bundledThemesInfo.length>t;t++)if(te.bundledThemesInfo[t].id===r){r=te.bundledThemesInfo[t].displayName;break}const s=e.textContent.trim(),a=e.ownerDocument,l=$.parseAttribute(e.dataset.lang),c=l?.theme?l.theme:n.theme;return void te.codeToHtml(s,{lang:o,theme:c}).then(n=>{const s=a.createElement("div");s.classList.add("codeblock-container"),s.dataset.theme=c,s.dataset.themeName=r,s.dataset.language=o,s.dataset.langName=i;const l=function(t,e,n){const o=H.getLangString("code-copy"),i=H.getLangString("code-theme-prefix"),r=H.getLangString("code-lang-prefix"),s=t.createElement("div");return s.classList.add("codeblock-tools","toolbar-hover"),s.innerHTML=`<div class="tools-message hidden">\n <div class="tools-icon tools-message-icon">\n <svg xmlns="http://www.w3.org/2000/svg">\n <use xlink:href="#svg-icon-info"/>\n </svg>\n </div>\n <span class="tools-message-content"></span>\n </div>\n <div class="tools-icon tools-button-lang" rel="tooltip" data-title="${r}${e}">\n <svg xmlns="http://www.w3.org/2000/svg">\n <use xlink:href="#svg-icon-language"/>\n </svg>\n </div>\n <div class="tools-icon tools-button-theme" rel="tooltip" data-title="${i}${n}">\n <svg xmlns="http://www.w3.org/2000/svg">\n <use xlink:href="#svg-icon-theme"/>\n </svg>\n </div>\n <div class="tools-icon tools-button-copy" rel="tooltip" data-title="${o}">\n <svg xmlns="http://www.w3.org/2000/svg">\n <use xlink:href="#svg-icon-copy"/>\n </svg>\n </div>`,s}(a,i,r);s.appendChild(l);const u=function(t){return ne||(ne=t.createElement("div"),ne)}(a);u.innerHTML=n;const d=u.children[0];d.remove(),s.appendChild(d),e.parentNode.replaceWith(s),t(!0)}).catch(e=>{t(!1)})}setTimeout(()=>{re(t,e,n)},100)}function se(t,e){return function(){const t=ee();if("undefined"!=typeof window){if(oe)return t;t||(oe=!0,b.loadScript("Shiki").then(t=>{te=$.interopDefault(window[t])}).catch(t=>{}))}}(),new Promise(n=>{const o=[];t.forEach(t=>{o.push(function(t,e){return new Promise(n=>{re(n,t,e)})}(t,e))}),Promise.all(o).then(()=>{n(!0)})})}const ae=['<symbol id="svg-icon-info" viewBox="64 64 896 896" fill="currentColor"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"></path></symbol>','<symbol id="svg-icon-language" viewBox="0 0 1024 1024" fill="currentColor"><path d="M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512z m0-938.666667C276.352 85.333333 85.333333 276.352 85.333333 512s191.018667 426.666667 426.666667 426.666667 426.666667-191.018667 426.666667-426.666667A426.666667 426.666667 0 0 0 512 85.333333z m0 682.666667a42.666667 42.666667 0 0 1-42.368-42.666667v-255.573333a42.368 42.368 0 1 1 84.693333 0V725.333333A42.410667 42.410667 0 0 1 512 768z m0-426.666667a42.325333 42.325333 0 1 1-0.085333-84.650666A42.325333 42.325333 0 0 1 512 341.333333z m42.325333-42.666666v0z"></path></symbol>','<symbol id="svg-icon-theme" viewBox="0 0 1024 1024" fill="currentColor"><path d="M42.666667 512C42.666667 251.733333 251.733333 42.666667 512 42.666667s469.333333 187.733333 469.333333 422.4c0 72.533333-29.866667 145.066667-81.066666 200.533333-51.2 51.2-123.733333 81.066667-200.533334 81.066667h-85.333333c-12.8 0-25.6 12.8-29.866667 25.6 0 8.533333 4.266667 17.066667 8.533334 21.333333 21.333333 21.333333 29.866667 46.933333 29.866666 76.8 0 64-51.2 110.933333-115.2 115.2C251.733333 981.333333 42.666667 772.266667 42.666667 512z m85.333333 0c0 213.333333 170.666667 384 384 384 17.066667 0 29.866667-12.8 29.866667-29.866667 0-4.266667 0-8.533333-4.266667-12.8l-4.266667-4.266666c-17.066667-21.333333-25.6-46.933333-29.866666-76.8 0-64 51.2-110.933333 115.2-110.933334h85.333333c51.2 0 102.4-21.333333 136.533333-55.466666 38.4-38.4 55.466667-85.333333 55.466667-136.533334 0-187.733333-170.666667-341.333333-384-341.333333s-384 170.666667-384 384z m593.066667 21.333333c-21.333333-21.333333-25.6-51.2-17.066667-76.8 12.8-25.6 38.4-42.666667 64-42.666666 38.4 0 68.266667 34.133333 72.533333 72.533333 0 29.866667-17.066667 55.466667-42.666666 64-8.533333 4.266667-17.066667 4.266667-25.6 4.266667-17.066667 0-38.4-8.533333-51.2-21.333334z m-520.533334 0c-21.333333-21.333333-25.6-51.2-17.066666-76.8 12.8-25.6 38.4-42.666667 64-42.666666 38.4 0 68.266667 34.133333 72.533333 72.533333 0 29.866667-17.066667 55.466667-42.666667 64-8.533333 4.266667-17.066667 4.266667-25.6 4.266667-21.333333 0-38.4-8.533333-51.2-21.333334z m379.733334-187.733333c-21.333333-21.333333-25.6-51.2-17.066667-76.8 12.8-25.6 38.4-42.666667 64-42.666667 38.4 0 68.266667 34.133333 72.533333 72.533334 0 29.866667-17.066667 55.466667-42.666666 64-8.533333 4.266667-17.066667 4.266667-25.6 4.266666-21.333333 0-38.4-8.533333-51.2-21.333333zM341.333333 345.6c-17.066667-21.333333-25.6-51.2-12.8-76.8 12.8-25.6 38.4-42.666667 64-42.666667 38.4 0 68.266667 34.133333 72.533334 72.533334 0 29.866667-17.066667 55.466667-42.666667 64l-29.866667 4.266666c-17.066667 0-34.133333-8.533333-51.2-21.333333z"></path></symbol>','<symbol id="svg-icon-copy" viewBox="0 0 16 16" fill="currentColor"><path d="M7 5h2a3 3 0 0 0 3-3 2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2 3 3 0 0 0 3 3zM6 2a2 2 0 1 1 4 0 1 1 0 0 1-1 1H7a1 1 0 0 1-1-1z"></path></symbol>'];function le(t){return[{type:"output",config:((t={})=>({theme:"ayu-dark",...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll('code[class*="language-"]');if(!n.length)return!1;return t.scripts.push({id:"shiki-ext",code:ie,module:!0}),t.symbols.push(...ae),se(n,this.config).then(()=>t)}}]}if("undefined"==typeof window)throw Error("The showdown zenuml extension can only be used in browser environment!");const ce="zenuml";if(void 0===ue)var ue=window.zenuml||void 0;function de(){return!(void 0===ue||!ue)}let pe=!1;function he(t,e){if(de()){const n=e.id,o=e.className,i=e.data,r=e.element.parentNode,s=e.element,a=e.lang?.options??{},l=s.ownerDocument.createElement("div");l.id=n,s.style.cssText.length>0&&(l.style.cssText=s.style.cssText),l.className=o,l.classList.remove("zenuml"),a.theme||(a.theme="theme-blue");return new ue(l).render(i,a),r.replaceWith(l),void t(!0)}setTimeout(()=>{he(t,e)},10)}function me(t){return new Promise(e=>{const n=$.createElementMeta(ce,t);if(!n||!n.data)return e(!1);he(e,n)})}function fe(t,e){return function(){const t=de();if("undefined"!=typeof window){if(pe)return t;if(!t)return pe=!0,b.loadScript(ce).then(t=>{ue=$.interopDefault(window[t])}).catch(t=>{}),t}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(me(t))}),Promise.all(n).then(()=>{e(!0)})})}if("undefined"==typeof window)throw Error("The showdown plotly extension can only be used in browser environment!");const ge="Plotly";if(void 0===ye)var ye=window.Plotly||void 0;function we(){return!(void 0===ye||!ye)}let ve=!1;function xe(t,e,n){if(we()){const o=e.id,i=e.className,r=e.data,s=e.element.parentNode,a=e.element,l=a.ownerDocument.createElement("div");return l.id=o,a.style.cssText.length>0&&(l.style.cssText=a.style.cssText),l.className=i,s.replaceWith(l),n.push({id:o,code:`(function(){\n try {\n const it = document.querySelector('#${o}');\n if (!it) return;\n ${r}\n }catch(e){\n console.error('plotly script run failed: ', e.toString());\n }\n})();`,host:l}),void t(!0)}setTimeout(()=>{xe(t,e,n)},10)}function be(t,e){return new Promise(n=>{const o=$.createElementMeta(ge,t);if(!o||!o.data)return n(!1);xe(n,o,e)})}function ke(t,e){!function(){const t=we();if("undefined"!=typeof window){if(ve)return t;if(!t)return ve=!0,b.loadScript(ge).then(t=>{ye=$.interopDefault(window[t])}).catch(t=>{}),t}}();const n={inner:[]};return e.push(n),new Promise(e=>{const o=[];t.forEach(t=>{o.push(be(t,n.inner))}),Promise.all(o).then(()=>{e(!0)})})}const Ee={},Se={};function Le(t,e){t.forEach(t=>{!function(t,e){const n=$.createElementMeta("Gnuplot",t,!0);if(!n||!n.data)return;const o=Se[n.hash];if(o)return void t.parentNode.replaceWith(o);e.elements=e.elements??[];const i={id:n.id};n.lang&&(i.lang=n.lang),n.hash&&(i.hash=n.hash),e.elements.push(i)}(t,e)})}function $e(){if(!window||!("Gnuplot"in window))return;const t=window.Gnuplot;t.elements&&Array.isArray(t.elements)&&0!==t.elements.length&&"function"==typeof t.svgRender&&t.svgRender&&(t.elements.forEach(({id:e,hash:n})=>{const o=document.querySelector("#"+e);if(!o)return;let i=Se[n];if(i)o.parentNode.replaceWith(i);else try{const e=`set terminal svg\n${o.textContent.trim()}\n`;t.svgRender(o.id,e).then(t=>{i=document.createElement("div"),i.id=o.id,i.className=o.className,o.style.cssText.length>0&&(i.style=o.style.cssText),i.innerHTML=t,o.parentNode.replaceWith(i),Se[n]=i}).catch(t=>{})}catch(t){}}),delete t.elements)}function Ce(t){return[{type:"output",config:((t={})=>({svgRender:null,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.gnuplot.language-gnuplot");return!!n.length&&(window&&(window.Gnuplot=Ee),Ee.svgRender=this.config.svgRender,t.scripts.push({id:"showdown-gnuplot",code:$e,once:!0}),Le(n,Ee),Ee.elements?.length>0&&(o=e,Object.keys(Se).forEach(t=>{o.querySelector(`[id*="-${t}"]`)||delete Se[t]})),t);var o}}]}if("undefined"==typeof window)throw Error("The showdown MathJax extension can only be used in browser environment!");if(void 0===je)var je=window.MathJax||void 0;let Ae=0;function Ne(){return!(void 0===je||!je)}let Te=!1;function Me(t){const e=Ne();if("undefined"!=typeof window){if(Te)return e;e||(Te=!0,window.MathJax={tex:{inlineMath:{"[+]":[["\\$","\\$"]]},displayMath:{"[+]":[["@@","@@"]]}},svg:{fontCache:"global"},options:{menuOptions:{settings:{enrich:!0,collapsible:!1,speech:!1,braille:!1,assistiveMml:!1}}},startup:{pageReady:()=>window.MathJax.startup.defaultPageReady().then(()=>{})}},t?$.deepMerge(window.MathJax,t):window.MathJaxConfig&&$.deepMerge(window.MathJax,window.MathJaxConfig),b.loadScript("MathJax").then(t=>{je=$.interopDefault(window[t])}).catch(t=>{}))}return e}function qe(t,e){if(Ne()){const n=e.id,o=e.className,i=e.cssLink??"",r=i.length>0?" css-mathjax":"",s=e.element,a=s.ownerDocument;return void je.tex2svgPromise(e.data,e.options).then(e=>{const l=a.createElement("div");l.id=n,l.className=`${o}${r}`,i.length>0&&(l.dataset.css=i),s.style.cssText.length>0&&(l.style=s.style.cssText),l.appendChild(e),s.parentNode.replaceWith(l),--Ae,Ae||je.startup.document.clear(),t(!0)}).catch(e=>{--Ae,Ae||je.startup.document.clear(),t(!1)})}setTimeout(()=>{qe(t,e)},10)}function Oe(t,e){return new Promise(n=>{const o=$.createElementMeta("MathJax",t);if(!o||!o.data)return n(!1);o.options=Object.assign(e??{},o.options??{}),qe(n,o)})}const Pe=(t={})=>{let e={engine:"mathjax",delimiters:[],mathJax:{},conversion:{},...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,t.asciimath=!0}),t[e][o]);var i}return Array.isArray(e.delimiters)?e.delimiters.length||(e.delimiters=[{left:"@@",right:"@@",display:!0,asciimath:!0},{left:"\\$",right:"\\$",display:!1,asciimath:!0}]):e.delimiters=[].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 ze(t){if(!Ne())return void setTimeout(()=>{ze(t)},10);const e=document.querySelector(".showdowns");e&&(window.MathJax.startup.document&&window.MathJax.startup.document.clearMathItemsWithin([e]),window.MathJax.texReset(),window.MathJax.typesetPromise().then(()=>{window.MathJax.startup.document.clear(),"function"==typeof t&&t&&t(window.MathJax)}).catch(t=>{}))}function De(t){const e=Pe(t);return[{type:"output",config:e,filter:function(t){const n=t.wrapper;if(!n)return!1;this.config.mathJax=this.config.mathJax??{};const o=this.config.mathJax;if(e.delimiters?.length>0){const t={inlineMath:{},displayMath:{}};e.delimiters.forEach(e=>{e.display?t.displayMath["[+]"]=(t.displayMath["[+]"]??[]).concat([[e.left,e.right]]):t.inlineMath["[+]"]=(t.inlineMath["[+]"]??[]).concat([[e.left,e.right]])}),o.tex||(o.tex={inlineMath:{},displayMath:{}}),o.tex.inlineMath=o.tex.inlineMath??{},o.tex.displayMath=o.tex.displayMath??{},0==(o.tex.inlineMath["[+]"]??[]).length&&(o.tex.inlineMath["[+]"]=t.inlineMath["[+]"]),0==(o.tex.displayMath["[+]"]??[]).length&&(o.tex.displayMath["[+]"]=t.displayMath["[+]"])}let i=!1;if("mathjax"===this.config.engine){const e=n.querySelectorAll(":not(code):not(pre)");if(e.length>0)for(let n=0;e.length>n;n++){if(e[n].textContent.match(/(?:@@|\$\$|\\\$|\\\(|\\\[|\\begin\{.*?})/)){t.scripts.push({id:"showdown-mathjax",code:ze,once:!0}),Me(this.config.mathJax),i=!0;break}}}const r=n.querySelectorAll("code.mathjax.language-mathjax,code.math.language-math");return r.length?function(t,e){return Ae=t.length,Me(e.mathJax),new Promise(n=>{const o=[];t.forEach(t=>{o.push(Oe(t,e.conversion))}),Promise.all(o).then(()=>{n(!0)})})}(r,this.config).then(()=>t):!!i&&t}}]}const Be="echarts";if("undefined"==typeof window)throw Error(`The showdown ${Be} extension can only be used in browser environment!`);if(void 0===He)var He=window.echarts||void 0;function Re(){return!!He}let Ie=!1;function _e(t,e){if(Re()){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(()=>{_e(t,e)},20)}function Fe(t,e,n){const o=$.createElementMeta(Be,t);if(!o||!o.data)return Promise.resolve(!1);n={...n,ssr:!1,width:o.lang.width,height:o.lang.height};const i={id:o.container,code:((t,e)=>{const n=()=>{const n=window.eval;let o=document.getElementById(t.id);if(o){let i=He.getInstanceByDom(o);if(i||(o.innerHTML=""),i=He.init(o,null,e),t.lang&&t.lang.type&&"string"==typeof t.lang.type&&"javascript"==t.lang.type.toLowerCase()){const e=n(`(function(){${t.data}; return option;})();`);i.setOption(e)}else{const e=JSON.parse(t.data);i.setOption(e)}}};return n.toString=()=>t.lang&&t.lang.type&&"string"==typeof t.lang.type&&"javascript"==t.lang.type.toLowerCase()?`function(){\n const config = ${JSON.stringify(e)};\n let el = document.getElementById('${t.id}');\n if (el) {\n let chart = echarts.getInstanceByDom(el);\n if (!chart) {\n el.innerHTML = '';\n }\n chart = echarts.init(el, null, config);\n ${t.data}\n chart.setOption(option);\n }\n }`:`function(){\n const config = ${JSON.stringify(e)};\n let el = document.getElementById('${t.id}');\n if (el) {\n let chart = echarts.getInstanceByDom(el);\n if (!chart) {\n el.innerHTML = '';\n }\n chart = echarts.init(el, null, config);\n const option = ${t.data};\n chart.setOption(option);\n }\n }`,n})(o,n),host:"#"+o.container};return e.push(i),new Promise(t=>{_e(t,o)})}function We(t,e,n){const o={outer:[{name:Be,src:b.getSrc(!1,Be,"jsdelivr")}],inner:[]};return e.push(o),function(){const t=Re();if("undefined"!=typeof window){if(Ie)return t;t||(Ie=!0,b.loadScript(Be).then(t=>{He=$.interopDefault(window[t])}).catch(t=>{}))}}(),new Promise(e=>{const i=[];t.forEach(t=>{i.push(Fe(t,o.inner,n))}),Promise.all(i).then(()=>{e(!0)})})}function Je(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.${Be}.language-${Be}`);return!!n.length&&We(n,t.scripts,this.config).then(()=>t)}}]}var Ve="http://www.w3.org/2000/xmlns/",Ge="http://www.w3.org/2000/svg",Ue=/url\(["']?(.+?)["']?\)/,Ke={woff2:"font/woff2",woff:"font/woff",otf:"application/x-font-opentype",ttf:"application/x-font-ttf",eot:"application/vnd.ms-fontobject",sfnt:"application/font-sfnt",svg:"image/svg+xml"},Xe=function(t){if(!((e=t)instanceof HTMLElement||e instanceof SVGElement))throw Error("an HTMLElement or SVGElement is required; got "+t);var e},Ye=function(t,e,n){var o=t.viewBox&&t.viewBox.baseVal&&t.viewBox.baseVal[n]||null!==e.getAttribute(n)&&!e.getAttribute(n).match(/%$/)&&parseInt(e.getAttribute(n))||t.getBoundingClientRect()[n]||parseInt(e.style[n])||parseInt(window.getComputedStyle(t).getPropertyValue(n));return null==o||isNaN(parseFloat(o))?0:o},Ze=function(t){return Promise.all(Array.from(t.querySelectorAll("image")).map(function(t){var e,n=t.getAttributeNS("http://www.w3.org/1999/xlink","href")||t.getAttribute("href");return n?((e=n)&&0===e.lastIndexOf("http",0)&&-1===e.lastIndexOf(window.location.host)&&(n+=(-1===n.indexOf("?")?"?":"&")+"t="+(new Date).valueOf()),new Promise(function(e,o){var i=document.createElement("canvas"),r=new Image;r.crossOrigin="anonymous",r.src=n,r.onerror=function(){return o(Error("Could not load "+n))},r.onload=function(){i.width=r.width,i.height=r.height,i.getContext("2d").drawImage(r,0,0),t.setAttributeNS("http://www.w3.org/1999/xlink","href",i.toDataURL("image/png")),e(!0)}})):Promise.resolve(null)}))},Qe={},tn=function(t){return Promise.all(t.map(function(t){return new Promise(function(e,n){if(Qe[t.url])return e(Qe[t.url]);var o=new XMLHttpRequest;o.addEventListener("load",function(){var n=function(t){for(var e="",n=new Uint8Array(t),o=0;n.byteLength>o;o++)e+=String.fromCharCode(n[o]);return window.btoa(e)}(o.response),i=t.text.replace(Ue,'url("data:'+t.format+";base64,"+n+'")')+"\n";Qe[t.url]=i,e(i)}),o.addEventListener("error",function(n){Qe[t.url]=null,e(null)}),o.addEventListener("abort",function(t){e(null)}),o.open("GET",t.url),o.responseType="arraybuffer",o.send()})})).then(function(t){return t.filter(function(t){return t}).join("")})},en=null,nn=function(){return en||(en=Array.from(document.styleSheets).map(function(t){try{return{rules:t.cssRules,href:t.href}}catch(t){return{}}}))};const on=function(t){const e=nn().find(function(e){if("rules"in e)for(let n=0;e.rules.length>n;n++){const o=e.rules[n];if(o.selectorText&&o.selectorText.indexOf(t)>=0)return!0}return!1});return e?Array.from(e.rules).map(function(t){return t.cssText}).join(""):""};var rn=function(t,e){var n=e||{},o=n.selectorRemap,i=n.modifyStyle,r=n.fonts,s=n.excludeUnusedCss,a=n.modifyCss||function(t,e){return(o?o(t):t)+"{"+(i?i(e):e)+"}\n"},l=[],c=void 0===r,u=r||[];return nn().forEach(function(e){var n=e.rules,o=e.href;n&&Array.from(n).forEach(function(e){if(void 0!==e.style)if(function(t,e){if(e)try{return t.querySelector(e)||t.parentNode&&t.parentNode.querySelector(e)}catch(t){}}(t,e.selectorText))l.push(a(e.selectorText,e.style.cssText));else if(c&&e.cssText.match(/^@font-face/)){var n=function(t,e){var n=t.cssText.match(Ue),o=n&&n[1]||"";if(o&&!o.match(/^data:/)&&"about:blank"!==o){var i,r,s=o.startsWith("../")?e+"/../"+o:o.startsWith("./")?e+"/."+o:o;return{text:t.cssText,format:(i=s,r=Object.keys(Ke).filter(function(t){return i.indexOf("."+t)>0}).map(function(t){return Ke[t]}),r?r[0]:"application/octet-stream"),url:s}}}(e,o);n&&u.push(n)}else s||l.push(e.cssText)})}),tn(u).then(function(t){return l.join("\n")+t})};let sn=function(t,e){var n=document.createElement("style");n.setAttribute("type","text/css"),n.innerHTML="<![CDATA[\n"+e+"\n]]>";var o=document.createElementNS("http://www.w3.org/2000/svg","defs");o.appendChild(n),t.insertBefore(o,t.firstChild);var i=document.createElement("div");return i.appendChild(t),i.innerHTML.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href')};const an=function(t,e,n){Xe(t);var o=e||{},i=o.left,r=void 0===i?0:i,s=o.top,a=void 0===s?0:s,l=o.width,c=o.height,u=o.scale,d=void 0===u?1:u,p=o.responsive,h=void 0!==p&&p,m=o.excludeCss,f=void 0!==m&&m,g=o.autosize,y="string"==typeof o.includeCss&&o.includeCss.length>0&&o.includeCss;return Ze(t).then(function(){var o=t.cloneNode(!0);o.style.backgroundColor=(e||{}).backgroundColor||t.style.backgroundColor;var i=function(t,e,n,o){if("svg"===t.tagName)return{width:n||Ye(t,e,"width"),height:o||Ye(t,e,"height")};if(t.getBBox){var i=t.getBBox();return{width:i.x+i.width,height:i.y+i.height}}}(t,o,l,c),s=i.width,u=i.height;if("svg"!==t.tagName){if(!t.getBBox)return;null!=o.getAttribute("transform")&&o.setAttribute("transform",o.getAttribute("transform").replace(/translate\(.*?\)/,""));var p=document.createElementNS("http://www.w3.org/2000/svg","svg");p.appendChild(o),o=p}if(o.setAttribute("version","1.1"),o.setAttribute("viewBox",[r,a,s,u].join(" ")),o.getAttribute("xmlns")||o.setAttributeNS(Ve,"xmlns",Ge),o.getAttribute("xmlns:xlink")||o.setAttributeNS(Ve,"xmlns:xlink","http://www.w3.org/1999/xlink"),h?(o.removeAttribute("width"),o.removeAttribute("height"),o.setAttribute("preserveAspectRatio","xMinYMin meet")):(o.setAttribute("width",g?"100%":s*d),o.setAttribute("height",u*d)),Array.from(o.querySelectorAll("foreignObject > *")).forEach(function(t){t.getAttribute("xmlns")||t.setAttributeNS(Ve,"xmlns","svg"===t.tagName?Ge:"http://www.w3.org/1999/xhtml")}),f){var m=document.createElement("div");m.appendChild(o);var w=m.innerHTML;if("function"!=typeof n)return{src:w,width:s,height:u};n(w,s,u)}else{if(!y)return rn(t,e).then(function(t){const e=sn(o,t);if("function"!=typeof n)return{src:e,width:s,height:u};n(e,s,u)});{const t=sn(o,y);if("function"!=typeof n)return{src:t,width:s,height:u};n(t,s,u)}}})},ln=function(t,e,n){return Xe(t),an(t,e).then(function(t){var e=t.width,o=t.height,i="data:image/svg+xml;base64,"+window.btoa(decodeURIComponent(encodeURIComponent('<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [<!ENTITY nbsp "&#160;">]>'+t.src).replace(/%([0-9A-F]{2})/g,function(t,e){var n=String.fromCharCode("0x"+e);return"%"===n?"%25":n})));return"function"==typeof n&&n(i,e,o),i})},cn=function(t,e,n){Xe(t);var o=e||{},i=o.encoderType,r=void 0===i?"image/png":i,s=o.encoderOptions,a=void 0===s?.8:s,l=o.canvg,c=function(t){var e=t.src,o=t.width,i=t.height,s=document.createElement("canvas"),c=s.getContext("2d"),u=window.devicePixelRatio||1;s.width=o*u,s.height=i*u,s.style.width=s.width+"px",s.style.height=s.height+"px",c.setTransform(u,0,0,u,0,0),l?l(s,e):c.drawImage(e,0,0);var d=void 0;try{d=s.toDataURL(r,a)}catch(t){if("undefined"!=typeof SecurityError&&t instanceof SecurityError||"SecurityError"===t.name)return;throw t}return"function"==typeof n&&n(d,s.width,s.height),Promise.resolve(d)};return l?an(t,e).then(c):ln(t,e).then(function(t){return new Promise(function(e,n){var o=new Image;o.onload=function(){return e(c({src:o,width:o.width,height:o.height}))},o.onerror=function(){n("There was an error loading the data URI as an image on the following SVG\n"+window.atob(t.slice(26))+"Open the following link to see browser's diagnosis\n"+t)},o.src=t})})},un="mermaid";if("undefined"==typeof window)throw Error("The showdown mermaid extension can only be used in browser environment!");if(void 0===dn)var dn=window.mermaid||void 0;function pn(){return!(void 0===dn||!dn)}let hn=!1;function mn(t,e){if(pn()){const n=e.id,o=e.className,i=e.element.parentNode,r=e.element,s=r.ownerDocument;return void dn.render(n,e.data).then(e=>{let a=r.style.cssText;const l=s.createElement("div");l.classList.add("diagram-container","has-actions");const c=s.createElement("div");o&&(c.className=o),c.classList.add("diagram-wrapper"),a.length>0&&c.setAttribute("style",a),c.innerHTML=e.svg,l.appendChild(c),function(t,e,n){const o=t.ownerDocument,i=o.createElement("details");i.setAttribute("title",H.getLangString("export-actions-title"));const r=o.createElement("summary");r.innerHTML='<svg viewBox="0 0 16 16" fill="currentColor" stroke="none" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">\n <circle r="2" cy="8" cx="2"></circle>\n <circle r="2" cy="8" cx="8"></circle>\n <circle r="2" cy="8" cx="14"></circle>\n</svg>',i.append(r),document.addEventListener("click",t=>{i.contains(t.target)||i.removeAttribute("open")});const s=o.createElement("div");s.classList.add("diagram-actions");const a=!!t.querySelector(".zenuml");for(const t of["svg","png"]){const o=H.getLangString(`export-${t}-action`,"Save as "+t.toUpperCase()),i=document.createElement("a");i.text=o,i.href="#",i.target="_blank",i.download=`${n}.${t}`,i.addEventListener("mousedown",async function(n){n.preventDefault();let o="",r="";try{a&&(r=on("zenuml")),o="svg"===t?await ln(e,{autosize:!0,encoderOptions:1,excludeCss:!r,fonts:!1,includeCss:r}):await cn(e,{encoderOptions:1,excludeCss:!r,backgroundColor:"#fff",fonts:!1,includeCss:r})}catch(t){return}i.href=o}),s.append(i)}i.append(s),t.appendChild(i)}(l,c.querySelector("svg"),n),i.replaceWith(l),t(!0)}).catch(e=>{t(!1)})}setTimeout(()=>{mn(t,e)},10)}function fn(t,e){return function(t){const e=pn();if("undefined"!=typeof window){if(hn)return e;if(!e)return hn=!0,b.loadScript(un).then(e=>{if("string"==typeof e)(dn=$.interopDefault(window[e])).initialize(t);else if(Array.isArray(e)&&e.length>0){const n=[],o=[];e.forEach(t=>{const e=$.interopDefault(window[t]);Array.isArray(e)?o.push(...e):n.push(e)});const i=n[0];n.shift(),o.length>0&&i.registerLayoutLoaders(o),n.length>0?i.registerExternalDiagrams(n).then(()=>{(dn=i).initialize(t)}):(dn=i).initialize(t)}}),e}dn.initialize(t)}(e),new Promise(e=>{const n=[];t.forEach(t=>{n.push(function(t){return new Promise(e=>{const n=$.createElementMeta(un,t);if(!n||!n.data)return e(!1);mn(e,n)})}(t))}),Promise.all(n).then(()=>{e(!0)})})}function gn(t,e,n){var o=(3&t)<<4|e>>4,i=(15&e)<<2|n>>6,r=63&n,s="";return s+=yn(63&t>>2),s+=yn(63&o),s+=yn(63&i),s+=yn(63&r)}function yn(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 wn(t){var e=t.charCodeAt(0);return"_"===t?63:"-"===t?62:97>e?65>e?48>e?"?":e-48:e-55:e-61}function vn(t){var e=wn(t[0]),n=wn(t[1]),o=wn(t[2]);return[e<<2|n>>4&63,n<<4&240|o>>2&15,o<<6&192|63&wn(t[3])]}function xn(t){return function(t){for(var e="",n=0;t.length>n;n+=3)e+=n+2==t.length?gn(t.charCodeAt(n),t.charCodeAt(n+1),0):n+1==t.length?gn(t.charCodeAt(n),0,0):gn(t.charCodeAt(n),t.charCodeAt(n+1),t.charCodeAt(n+2));return e}(e.deflateRawSync(t,{level:9}).toString("binary"))}function bn(t){return""+e.inflateRawSync(Buffer.from(function(t){var e="",n=0;for(n=0;t.length>n;n+=4){var o=vn(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 kn={encodeuml:function(t){const e="@startuml",n="@enduml";return xn(`${e}${(t.split(e)[1]+"").split(n)[0]||""}${n}`)},decodeuml:function(t){return bn(t)}},En="svg",Sn={};let Ln=0;function $n(t,e){return new Promise(n=>{const o=[],i=[];t.forEach(t=>{const n=function(t,e){const n=$.createElementMeta("PlantUML",t,!0);if(!n||!n.data)return;const o=Sn[n.hash];if(!o)return o=>{const i=e.imageFormat;if("svg"===i){if("function"==typeof e.svgRender&&e.svgRender){try{e.svgRender(n.id,n.data,{count:Ln}).then(e=>{const i=document.createElement("div");i.id=n.id,i.className=n.className,t.style.cssText.length>0&&(i.style=t.style.cssText),i.innerHTML=e,t.parentNode.replaceWith(i),Sn[n.hash]=i,o(!0)})}catch(t){o(!1)}return}if(window&&window.fetch){const r=window.location&&window.location.protocol,s=i!==En?"."+i:"",a=`${("http:"===r||"https:"===r?"//":"https://")+e.umlWebSite}/${i}/${kn.encodeuml(n.data)}${s}`;try{window.fetch(a).then(t=>{if("string"==typeof t)return t;if(t.ok)return t.text();throw Error("RequestError: "+t.status)}).then(e=>{const i=document.createElement("div");i.id=n.id,i.className=n.className,t.style.cssText.length>0&&(i.style=t.style.cssText),i.innerHTML=e,t.parentNode.replaceWith(i),Sn[n.hash]=i,o(!0)}).catch(t=>{o(!1)})}catch(t){o(!1)}return}return void o(!1)}let r=t.style.cssText;r.length>0&&(r=` style="${r}"`);const s=window&&window.location.protocol,a=("http:"===s||"https:"===s?"//":"https://")+e.umlWebSite,l=i!==En?"."+i:"",c=kn.encodeuml(code);return t.parentNode.outerHTML=`<div id="${n.id}" class="${n.className}"${r}><img src='${a}/${i}/${c}${l}' alt=''></img></div>`,o(!0)};t.parentNode.replaceWith(o)}(t,e);n&&i.push(n)}),Ln=i.length,i.forEach(t=>{o.push(new Promise(t))}),Promise.all(o).then(()=>{n(!0)})})}function Cn(t){return[{type:"output",config:((t={})=>({umlWebSite:"www.plantuml.com/plantuml",imageFormat:En,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&&$n(n,this.config).then(()=>{var n;return n=e,Object.keys(Sn).forEach(t=>{n.querySelector(`[id*="-${t}"]`)||delete Sn[t]}),t})}}]}const jn="railroad";if("undefined"==typeof window)throw Error("The showdown railroad extension can only be used in browser environment!");let An=!1;function Nn(){return An}let Tn,Mn=!1;function qn(t,e){if(Nn()){const n=e.id,o=e.className,i=window.eval(e.data).format(),r=e.element.ownerDocument;let s=e.element.style.cssText;return s.length>0&&(s=` style="${s}"`),e.element.parentNode.outerHTML=`<div id="${n}" class="${o}"${s}></div>`,i.addTo(r.getElementById(n)),t(!0)}setTimeout(()=>{qn(t,e)},10)}function On(t){return new Promise(e=>{const n=$.createElementMeta(jn,t);if(!n||!n.data)return e(!1);qn(e,n)})}function Pn(t){return function(){const t=Nn();if("undefined"!=typeof window){if(Mn)return t;t||(Mn=!0,b.loadScript(jn).then(()=>{An=!0}).catch(t=>{}))}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(On(t))}),Promise.all(n).then(()=>{e(!0)})})}if("undefined"==typeof window)throw Error("The showdown sequence extension can only be used in browser environment!");if(void 0===zn)var zn=window.Raphael||void 0;if("undefined"!=typeof window&&window.Diagram&&(Tn=window.Diagram,window.Diagram.Signal))var Dn=window.Diagram;const Bn=["simple","hand"];if(void 0===Dn&&"undefined"!=typeof window)Dn=window.SequenceJS;function Hn(){return!!zn}function Rn(){return Hn()&&!!Dn}let In=!1;function _n(t){const e=$.createElementMeta("sequence",t);if(!e||!e.data)return;const n=function(){const t=Rn();if("undefined"!=typeof window){if(In)return t;t||(In=!0,b.loadScript("WebFont").then(()=>Hn()?"Raphael":b.loadScript("Raphael")).then(t=>(zn=$.interopDefault(window[t]),b.loadScript("Snap"))).then(()=>b.loadScript("underscore")).then(()=>(!Tn&&window.Diagram&&(Tn=window.Diagram),b.loadScript("sequence"))).then(()=>{Dn=window.Diagram,window.SequenceJS=Dn,Tn&&(window.Diagram=Tn)}).catch(t=>{}))}return t}(),o=e.data;t.classList.replace("sequence","js-sequence"),!n&&"undefined"!=typeof window&&window.dispatchEvent?Promise.resolve(e.id).then(n=>{window.dispatchEvent(new CustomEvent("sequence",{detail:{id:t.id,className:t.className,data:o,lang:e.lang}}))}):"undefined"!=typeof window&&window.dispatchEvent&&window.dispatchEvent(new CustomEvent("sequence",{detail:{id:t.id,className:t.className,data:o,lang:e.lang}}))}function Fn(t){if(Rn()){const e=t.id,n=t.className,o=t.data,i=t.lang;if(!o||0===o.length)return;let r="hand";i&&i.theme&&-1!=Bn.indexOf(i.theme)&&(r=i.theme);let s=window.document.getElementById(e);if(s){s.parentNode.outerHTML=`<div id="${e}" class="${n}"></div>`,s=window.document.getElementById(e);return void Dn.parse(o).drawSVG(s||e,{theme:r})}}setTimeout(()=>{Fn(t)},10)}function Wn(){let t=!1;return[{type:"output",filter:function(e){if("string"==typeof e){const n=(new DOMParser).parseFromString(e,"text/html"),o=void 0!==n.body?n.body:n,i=o.querySelectorAll("code.sequence.language-sequence");return i.length&&(t||"undefined"!=typeof window&&window.dispatchEvent&&(t=!0,window.addEventListener("sequence",t=>{t.detail&&Fn(t.detail)})),this.config={cssLink:b.getCSS(!0,"sequence")}),function(t){return!!t.length&&(t.forEach(t=>{_n(t)}),!0)}(i)?o.innerHTML:e}if(!e||!e.wrapper)return!1;const n=e;return n.wrapper.querySelectorAll("code.sequence.language-sequence").length>0&&$.addCssLink(n,b.getCSS(!0,"sequence"),"css-sequence"),n}}]}if("undefined"==typeof window)throw Error("The showdown wavedrom extension can only be used in browser environment!");if(void 0===Jn)var Jn=window.WaveDrom||void 0;let Vn=0,Gn=0;function Un(){return!!Jn}let Kn=!1;function Xn(t,e){if(Un()){const n=e.index,o=e.id,i=e.className,r=e.data;if(!r||0===r.length)return t(!1);let s=e.element;return s.parentNode.outerHTML=$.renderCacheElement(s.ownerDocument,o+n,i,t=>{const e=window.eval(`(${r})`);Jn.RenderWaveForm(n,e,o);const i=document.getElementById("WaveDrom_Display_"+n);if(t!=i)for(;i.childNodes.length;)t.appendChild(i.removeChild(i.childNodes[0]))}),t(!0)}setTimeout(()=>{Xn(t,e)},10)}function Yn(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 e(!1);o.align&&("center"===o.align?i="diagram-center":"right"===o.align&&(i="diagram-right"))}const r=t.textContent.trim();if(0===r.length)return e(!1);const s=(t.classList.length>0?t.classList[0]:"")+(t.className&&i?" ":"")+i,a=Gn;++Gn,--Vn,Vn||(Gn=0);const l="WaveDrom_Display_";t.id=l+a;Xn(e,{element:t,index:a,id:l,className:s,data:r})})}function Zn(t,e){return function(t){const e=Un();Kn||e||(Kn=!0,"undefined"!=typeof window&&b.loadScript("WaveDrom","default","",t).then(t=>{Jn=$.interopDefault(window[t])}).catch(t=>{}))}(e),new Promise(e=>{const n=[];Vn=t.length,t.forEach(t=>{n.push(Yn(t))}),Promise.all(n).then(()=>{e(!0)})})}if("undefined"==typeof window)throw Error("The showdown flowchart extension can only be used in browser environment!");if(void 0===Qn)var Qn=window.Raphael||void 0;if(void 0===to)var to=window.flowchart||void 0;function eo(){return!(void 0===Qn||!Qn||void 0===to||!to)}let no=!1;function oo(){const t=eo();if("undefined"!=typeof window){if(no)return t;if(!t){if(no=!0,!Qn)return b.loadScript("Raphael").then(t=>(Qn=$.interopDefault(window[t]),b.loadScript("flowchart"))).then(t=>{to=$.interopDefault(window[t])}).catch(t=>{}),t;b.loadScript("flowchart").then(t=>{to=$.interopDefault(window[t])}).catch(t=>{})}}return t}function io(t,e){if(eo()){const n=e.id,o=e.className,i=e.data;if(!i||0===i.length)return t(!1);const r=e.options;return e.element.parentNode.outerHTML=$.renderCacheElement(e.element.ownerDocument,n,o,t=>{to.parse(i).drawSVG(t,r)}),void t(!0)}setTimeout(()=>{io(t,e)},10)}function ro(t,e){return new Promise(n=>{const o=$.createElementMeta("flowchart",t);if(!o||!o.data)return n(!1);o.options=e,io(n,o)})}function so(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 oo(),new Promise(o=>{const i=[];t.forEach(t=>{i.push(ro(t,n))}),e.forEach(t=>{i.push(ro(t,n))}),Promise.all(i).then(()=>{o(!0)})})}(n,o,this.config).then(()=>t)}}]}const ao=new class{events={};on(t,e){this.events[t]||(this.events[t]=new Set),this.events[t].add(e)}off(t,e){this.events[t]?.delete(e)}emit(t,...e){let n=0;const o=this.events[t];return o&&o.forEach(t=>{t(...e),n++}),n}};function lo(t){switch(t){case"tip":case"提示":return"tip";case"info":case"信息":return"info";case"warning":case"警告":return"warning";case"error":case"错误":return"error";case"danger":case"危险":return"danger";case"summary":case"概要":return"summary";case"tldr":case"摘要":return"tldr";case"abstract":case"抽象":return"abstract";case"todo":case"待办":return"todo";case"hint":case"小窍门":return"hint";case"success":case"成功":return"success";case"check":case"检测":return"check";case"done":case"完成":return"done";case"help":case"帮助":return"help";case"question":case"问题":return"question";case"faq":case"问答":return"faq";case"attention":case"关注":return"attention";case"caution":case"提醒":return"caution";case"failure":case"故障":return"failure";case"fail":case"失败":return"fail";case"missing":case"缺失":return"missing";case"bug":case"缺陷":return"bug";case"example":case"示例":return"example";case"snippet":case"片段":return"snippet";case"quote":case"引用":return"quote";case"cite":case"引文":return"cite";case"important":case"重点":return"important";case"key":case"要点":return"key";case"container":case"容器":return"container";case"row":case"行":return"row";case"col":case"列":return"col";default:return t}}function co(t,e,n){if(!t)return e;const o=t.match(/(?:[^\s"']+|"[^"]*"|'[^']*')+/g).map(t=>t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'")?t.slice(1,-1):t);let i=e??{};return o.forEach(t=>{if(t)if("#"===t[0]||"."===t[0]){const e=t.split(".");"#"===e[0][0]&&(i.id=e[0].substring(1),e.shift()),e.length>0&&(i.classList||(i.classList=[]),e.forEach(n&&0!==n.length?t=>{if(t){if(!i.style){const e=lo(t);e&&(i.style=e)}n.includes(t)||i.classList.includes(t)||i.classList.push(t)}}:t=>{t&&!i.classList.includes(t)&&i.classList.push(t)}))}else{const e=t.split("=");i.attribute||(i.attribute={});const n=e[0].toLowerCase();if(e.length>1){if("id"!==n&&"class"!==n){let t=e[1];t="true"===t.toLowerCase()||"false"!==t.toLowerCase()&&(isNaN(t)?t.replace(/^(['"]{0,1})(.*)\1$/,"$2"):Number(t)),i.attribute[n]=t}}else i.attribute[n]=void 0}}),i}function uo(t){if(!t)return"";let e="";for(const[n,o]of Object.entries(t))switch(e+=" "+n,typeof o){case"boolean":e+="true";break;case"number":e+="="+o;break;case"undefined":break;default:e+=`="${o}"`}return e}const po=["details","详情","details+","详情+","details-","详情-"];const ho="resetImagePath";function mo(t){return new Promise(e=>{const n=[];t.forEach(t=>{n.push(function(t){return new Promise(e=>{const n=t.dataset.src;if(!n)return e(!1);const o="image-"+Date.now()+Math.floor(1e4*Math.random()),i=o=>{o||(o=n),t.src=o,delete t.dataset.src,e(!0)};ao.emit(ho,o,n,i)||i(n)})}(t))}),Promise.all(n).then(()=>{e(!0)})})}const fo={};fo[ho]=ho;const go=(t={})=>({flavor:"github",metadata:!0,underline:!1,mathEngine:"mathjax",...t}),yo=(e,n)=>{let o=null;try{o=t.extension(e)}catch{}return o||n},wo=(e,n={})=>{const o=e&&e.mermaid||{},i=e&&e.plantuml||{},r=e&&e.mathjax||{},s=e&&e.tex||{},l=e&&e.katex||{},c=e&&e.kroki||{},u=e&&e.vega||{},d=e&&e.shiki||{},p=e&&e.gnuplot||{},h={"showdown-toc":yo("showdown-toc",V),"showdown-image":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("img.inline-image");return!!n.length&&mo(n).then(()=>t)}}],"showdown-mermaid":(f=o,[{type:"output",config:((t={})=>({theme:"forest",logLevel:4,startOnLoad:!1,arrowMarkerAbsolute:!1,flowchart:{curve:"basis"},gantt:{axisFormat:"%m/%d/%Y"},sequence:{actorMargin:50},...t}))(f),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.mermaid.language-mermaid");return!!n.length&&fn(n,this.config).then(()=>t)}}]),"showdown-mathjax":De(r),"showdown-katex":Ut(l),"showdown-flowchart":so(),"showdown-viz":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.dot.language-dot");return!!n.length&&Q(n).then(()=>t)}}],"showdown-vega":ht(u),"showdown-wavedrom":[{type:"output",config:((t={})=>({skin:"default",...t}))(m),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.wavedrom.language-wavedrom");return!!n.length&&(a("Begin render wavedrom elements."),Zn(n,this.config.skin).then(()=>(a("End render wavedrom elements."),t)))}}],"showdown-railroad":[{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:b.getCSS(!0,jn)},$.addCssLink(t,this.config.cssLink,"css-railroad"),Pn(n).then(()=>t))}}],"showdown-abc":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll(`code.${j}.language-${j}`);return!!n.length&&(this.config={cssLink:b.getCSS(!0,C)},$.addCssLink(t,this.config.cssLink,"css-abc"),z(n,t.scripts).then(()=>t))}}],"showdown-echarts":Je(),"showdown-plotly":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.plotly.language-plotly");return!!n.length&&ke(n,t.scripts).then(()=>t)}}],"showdown-antv":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.infographic.language-infographic");return!!n.length&&vt(n).then(()=>t)}}],"showdown-zenuml":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.zenuml.language-zenuml");return!!n.length&&fe(n).then(()=>t)}}],"showdown-sequence":yo("showdown-sequence",Wn),"showdown-plantuml":Cn(i),"showdown-kroki":Qt(c),"showdown-tex":rt(s),"showdown-gnuplot":Ce(p),...n,"showdown-shiki":le(d),"showdow-css":[{type:"output",filter:function(t){const e="css-ex-";$.removeAllStylesheet(e);const n=t.wrapper;if(!n)return!1;const o=n.querySelectorAll("a");return!!o.length&&(o.forEach(n=>{try{if(n.href&&"string"==typeof n.href&&"css:"===n.href.substr(0,4)){let o=n.href.substr(4).trim();const i=""+$.hashString(o);$.addCssLink(t,o,e+i),n.parentNode&&"P"===n.parentNode.tagName&&n.parentNode.parentNode?n.parentNode.parentNode.removeChild(n.parentNode):n.parentNode.removeChild(n),o=b.getUrl(o),$.loadStylesheet(o,e+i)}}catch{}}),t)}}]};var m,f;let g=[];for(let e in h)h.hasOwnProperty(e)&&(t.asyncExtension(e,h[e]),g.push(e));return g},vo=(t,e,n,o)=>{if(!e||!n||"undefined"==typeof document)return!1;t&&"string"==typeof t&&(t=document.querySelector(t)),t||(t=document.getElementById(e))||(t=document.body);const i="script-"+e;let r=document.querySelector(`${t.tagName} > #${i}`);return r||(r=document.createElement("script"),r.id=i,r.type=o?"module":"text/javascript",r.text=n,t.appendChild(r)),!0},xo=(t,e,n,o)=>{if(!e||!n||"undefined"==typeof document)return!1;t&&"string"==typeof t&&(t=document.querySelector(t)),t||(t=document.getElementById(e))||(t=document.body);const i="script-"+e;let r=document.querySelector(`${t.tagName} > #${i}`);return r||(r=document.createElement("script"),r.id=i,r.type=o?"module":"text/javascript",r.text=n,t.insertBefore(r,t.children[0])),!0};function bo(t,e,n){return new Promise((o,i)=>{t&&e&&"undefined"!=typeof document||i("Args is invaild!");const r=t.toLowerCase(),s="script-"+r;let a=document.getElementById(s);if(a)return o(t);const l=document.head||document.getElementsByTagName("head")[0];if(a=document.createElement("script"),a.id=s,n&&(a.type="module","string"==typeof n&&"import"===n))return a.textContent=`import * as ${r} from '${e}';\nif (!('${nativeName}' in window)) {\n if ('default' in ${r} && ${r}['default']) {\n window['${nativeName}'] = ${r}['default']\n } else {\n window['${nativeName}'] = ${r};\n }\n}`,l.appendChild(a),o(t);a.src=e,a.onload=()=>{o(t)},l.appendChild(a)})}const ko=function(e,n,o){let i=n;if(e.host&&(i="string"==typeof e.host?document.querySelector(e.host):e.host),!e.inner){if(!e.code)return!1;if("function"==typeof e.code){const t=e.code;return o?(o.then(()=>{t()}),!0):(t(),!0)}return o?(o.then(()=>{vo(i,e.id,e.code,e.module)}),!0):vo(i,e.id,e.code,e.module)}if(t.helper.isArray(e.inner)||(e.inner=[e.inner]),e.code)if("function"==typeof e.code){const t=e.code;o?o.then(()=>{t()}):t()}else o?o.then(()=>{xo(i,e.id,e.code,e.module)}):xo(i,e.id,e.code,e.module);if(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){const t=n.code;o?o.then(()=>{t()}):t();continue}let r=i;n.host&&(r="string"==typeof n.host?document.querySelector(n.host):n.host),o?o.then(()=>{vo(r,n.id,n.code,n.module)}):vo(r,n.id,n.code,n.module)}return!0},Eo=["github","ghost","vanilla","original","allon"],So=["mathjax","katex"],Lo={showdown:t,converter:null,eventBus:ao,defaultOptions:{showdown:go(),toc:{},plantuml:{imageFormat:"svg"},mermaid:{theme:"default"},mathjax:{},katex:{},kroki:{},vega:{theme:"vox"},shiki:{}},defaultExtensions:{},defaultAsyncExtensions:{},markdownDecodeFilter:function(t){return""},initDefaultOptions:function(){this.defaultOptions||(this.defaultOptions={showdown:{},toc:{},plantuml:{},mermaid:{},mathjax:{},katex:{},kroki:{},vega:{},shiki:{}})},onEvent:(t,e)=>{fo[t]&&ao.on(fo[t],e)},setFlavor:function(t){this.showdown.setFlavor(t),this.converter&&this.converter.setFlavor(t)},getMetaData:function(){if(!this.converter)return null;const t=this.converter.getMetadata(!1);return t.raw=this.converter.getMetadata(!0),t.format=this.converter.getMetadataFormat(),t},addOptions:function(t){for(const e in t)"flavor"!==e&&"mathEngine"!==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,o){"string"==typeof t&&t&&b.setCDN(t,e,n,o)},setShowdownFlavor:function(t){this.initDefaultOptions(),t&&(-1===Eo.indexOf(t)&&(t="github"),this.defaultOptions.showdown.flavor=t,this.setFlavor(t))},setMathEngine:function(t){this.initDefaultOptions(),t&&(-1===So.indexOf(t)&&(t="mathjax"),this.defaultOptions.showdown.mathEngine=t,this.setExtensionOptions("katex",{engine:t}),this.setExtensionOptions("mathjax",{engine:t}))},setLanuageTheme:function(t){this.initDefaultOptions(),t&&(this.defaultOptions.shiki.theme=t,this.setExtensionOptions("shiki",{theme: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.setMathEngine(this.defaultOptions.showdown.mathEngine),this.addOptions(this.defaultOptions.showdown),this.defaultOptions.showdown},setExtensionOptions:function(e,n){if(!n||"object"!=typeof n)return!1;let o=((e,n)=>{let o=null;try{o=t.asyncExtension(e)}catch{}return o||n})(e="showdown-"+e);if(!o&&(o=yo(e),!o))return!1;if(!o.length)return!1;for(let t=0;o.length>t;t++){const e=o[t];if(e&&"output"===e.type&&e.config)return L(e.config,n),!0}return!1},setPlantumlOptions:function(t){return this.setExtensionOptions("plantuml",t)},setMermaidOptions:function(t){return this.setExtensionOptions("mermaid",t)},setKatexOptions:function(t){return this.setExtensionOptions("katex",t)},setKrokiOptions:function(t){return this.setExtensionOptions("kroki",t)},setVegaOptions:function(t){return this.setExtensionOptions("vega",t)},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=go(this.defaultOptions&&this.defaultOptions.showdown||{});this.setFlavor(t.flavor),this.setMathEngine(t.mathEngine),this.addOptions(t)}if(t.hasOwnProperty("extension")&&t.extension)for(let[t,e]in this.defaultOptions)"showdown"!==t&&this.setExtensionOptions(t,e)}}else{const e=go(this.defaultOptions&&this.defaultOptions.showdown||{}),n=((e,n={})=>{const o={"showdown-toc":V(e.toc),"showdown-image":[{type:"listener",listeners:{"images.after":(t,e)=>e.replace(/!\[\[([^\[\]]*)\]\](?:\{([^\{\}]*)\})?/gm,(t,e,n)=>(n||(n=""),`<img class="inline-image" data-src="${e}" ${n}/>`))}}],"showdown-align":xt(),"showdown-footnotes":[{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]+)\]/gm,(t,e,n)=>`${e}<a href="#footnote-${n}"><sup>[${n}]</sup></a>`)},{type:"lang",filter:t=>t.replace(/\\\[\^([\d\w]+)\]/gm,(t,e)=>`[^${e}]`)}],"showdown-directive":[{type:"listener",listeners:{"blockGamut.before":(e,n,o,i,r)=>(n=o._dispatch("directive.before",n,i,r),n=(n=(n=(n=(n=(n=(n+="¨0").replace(/^ {0,3}>[ \t]*\[\!([^\f\v\r\n\[\]\{\}]+)\]([\+-]?)[ \t]+([^\r\n]*)[ \t]*\n((?: {0,3}>(?:[^\r\n]*(?:\n|$)))*)/gm,function(e,n,o,s,a){const l={classList:["callout","note"]};if(n=n.toLowerCase(),l.style=lo(n),l.classList.push(l.style),o){s=s?`<summary class="callout-title">${s=t.subParser("spanGamut")(s,i,r)}</summary>`:`<summary class="callout-title">${l.style?H.getLangString(l.style,l.style):H.getLangString("note","note")}</summary>`,a?(a=(a=(a=a.replace(/^ {0,3}>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),a=t.subParser("githubCodeBlocks")(a,i,r),a=`<div class="callout-content">${a=t.subParser("blockGamut")(a,i,r)}</div>`):a="";const e="+"===o?" open":"",n=`<details class="${l.classList.join(" ")}"${e}>${s}${a}</details>`;return t.subParser("hashBlock")(n,i,r)}s=s?`<div class="callout-title">${s=t.subParser("spanGamut")(s,i,r)}</div>`:`<div class="callout-title">${l.style?H.getLangString(l.style,l.style):H.getLangString("note","note")}</div>`,a?(a=(a=(a=a.replace(/^ {0,3}>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),a=t.subParser("githubCodeBlocks")(a,i,r),a=`<div class="callout-content">${a=t.subParser("blockGamut")(a,i,r)}</div>`):a="";const c=`<div class="${l.classList.join(" ")}">${s}${a}</div>`;return t.subParser("hashBlock")(c,i,r)})).replace(/^(!!!|\?\?\?[\+]?) ((?:[^"\f\v\r\n]+[ \t]*)+)(?:"([^"\r\n]*)")?[ \t]*\n((?:(?: |\t)[^\r\n]*(?:\n|$)|\n(?![\S]))*)/gm,function(e,n,o,s,a){const l={classList:["admonition"]},c=(o=o.toLowerCase()).split(" ");if(c.includes("alert")||c.includes("note")||c.includes("simple")||l.classList.push("simple"),c.forEach((t,e)=>{if(t){if(!l.style){const e=lo(t);e&&(l.style=e)}l.classList.includes(t)||l.classList.push(t)}}),l.style||(l.style="default"),l.classList.includes(l.style)||l.classList.push(l.style),n.startsWith("???")){if(s=s?`<summary class="admonition-title">${s=t.subParser("spanGamut")(s,i,r)}</summary>`:`<summary class="admonition-title">${l.style?H.getLangString(l.style,l.style):H.getLangString("note","note")}</summary>`,a){const e=a.split("\n");e.forEach((t,n)=>{t&&(e[n]=t.substring("\t"===t[0]?1:4))}),a=t.subParser("githubCodeBlocks")(e.join("\n"),i,r),a=`<div class="admonition-content">${a=t.subParser("blockGamut")(a,i,r)}</div>`}else a="";const e=n.length>3&&"+"===n[3]?" open":"",o=`<details class="${l.classList.join(" ")}"${e}>${s}${a}</details>`;return t.subParser("hashBlock")(o,i,r)}if(s=s?`<div class="admonition-title">${s=t.subParser("spanGamut")(s,i,r)}</div>`:`<div class="admonition-title">${l.style?H.getLangString(l.style,l.style):H.getLangString("note","note")}</div>`,a){const e=a.split("\n");e.forEach((t,n)=>{t&&(e[n]=t.substring("\t"===t[0]?1:4))}),a=t.subParser("githubCodeBlocks")(e.join("\n"),i,r),a=`<div class="admonition-content">${a=t.subParser("blockGamut")(a,i,r)}</div>`}else a="";const u=`<div class="${l.classList.join(" ")}">${s}${a}</div>`;return t.subParser("hashBlock")(u,i,r)})).replace(/^ {0,3}((?::::+)|(?:!!!+))[ \t]*([^\f\v\r\n\[\]\{\}]*)[ \t]*(?:([^\f\v\r\n\[\]\{\}]*)|(?:\[([^\[\]]*)\])?[ \t]*(?:\{([^\{\}]*)\})?)[: \t]*\n([\s\S]*?)\n {0,3}\1[:! \t]*(?:¨0)?$/gm,function(e,n,o,s,a,l,c){if(o=o.toLowerCase(),po.includes(o)){(s||!a&&!l)&&(a=s||"");const e=co(l,{});a&&(a=t.subParser("spanGamut")(a,i,r)),a=`<summary class="details-title">${a}</summary>`,c&&(c=t.subParser("githubCodeBlocks")(c,i,r),c=`<div class="details-content">${c=t.subParser("blockGamut")(c,i,r)}</div>`);const n=e.id?`id="${e.id}" `:"",u=e.attribute?uo(e.attribute):"";let d="",p="";const h=o[o.length-1];"+"!==h&&"-"!==h||(d=" folder","+"===h&&(p=" open"));const m=`<details ${n}class="details${d}"${u}${p}>${a}${c}</details>`;return t.subParser("hashBlock")(m,i,r)}o||(o="container");const u={classList:[]};let d="",p="",h="";if(s||!a&&!l){const t=o.split("-");o=t[0],t.forEach((t,e)=>{if(e>0&&t){if(!u.style){const e=lo(t);e&&(u.style=e)}u.classList.includes(t)||u.classList.push(t)}}),a=s||""}let m=!1;switch(o){case"note":case"备注":m=!0,u.type="admonition",h=H.getLangString("note","note"),u.classList.unshift("admonition","note"),co(l,u,["simple","alert","container","row","col"]);break;case"alert":case"注意":m=!0,u.type="admonition",h=H.getLangString("alert","alert"),u.classList.unshift("admonition","alert"),co(l,u,["simple","note","container","row","col"]);break;case"simple":case"简单":m=!0,u.type="admonition",h=H.getLangString("simple","simple"),u.classList.unshift("admonition","simple"),co(l,u,["note","alert","container","row","col"]);break;case"container":case"容器":u.type="container",co(l,u),u.classList.unshift("container");break;case"row":case"行":u.type="row",co(l,u),u.classList.unshift("row");break;case"col":case"列":u.type="col",co(l,u),u.classList.unshift("col");break;default:m=!0,u.type="admonition",u.style=lo(o),co(l,u,["container","row","col"]),u.classList.includes("alert")||u.classList.includes("note")||u.classList.includes("simple")?u.classList.unshift("admonition"):u.classList.unshift("admonition","note")}m&&(u.style||(u.style="default"),u.classList.includes(u.style)||u.classList.push(u.style)),a?(a=t.subParser("spanGamut")(a,i,r),a=`<div class="${u.type}-title">${a}</div>`):m&&(h=(h||!u.style)??H.getLangString(u.style,u.style),a=`<div class="admonition-title">${h}</div>`),c?(c=t.subParser("githubCodeBlocks")(c,i,r),c=t.subParser("blockGamut")(c,i,r),c=`<div class="${u.type}-content">${c}</div>`):c="",u.id&&(d=`id="${u.id}" `),u.attribute&&(p=uo(u.attribute));const f=`<div ${d}class="${u.classList.join(" ")}"${p}>${a}${c}</div>`;return t.subParser("hashBlock")(f,i,r)})).replace(/^ {0,3}(?<!:)::[ \t]*([^\f\v\r\n\[\]\{\}]+)[ \t]*(?:\[([^\[\]]*)\])?[ \t]*(?:\{([^\{\}]*)\})?[ \t]*(?:¨0)?$/gm,function(e,n,o,s){const a={};if(co(s,a),"media"===n||"video"===n||"媒体"===n||"音视频"===n){if(!a.attribute||!a.attribute.src)return;let e="",n="",s="";o=o?`<div class="media-title">${o=t.subParser("spanGamut")(o,i,r)}</div>`:"",a.id&&(e=`id="${a.id}"`),a.attribute&&(n=uo(a.attribute)),a.classList&&(s=` class="${a.classList.join(" ")}"`);const l=`<iframe ${e}${s}${n}>${o}}</iframe>`;return t.subParser("hashBlock")(l,i,r)}if("css-link"===n){if(!a.attribute||!a.attribute.href)return;let e="",n="";a.id&&(e=`id="${a.id}"`),n=uo(a.attribute);const o=`<link ${e}${n}>`;return t.subParser("hashBlock")(o,i,r)}if("css"===n){if(!o)return;let e="",n="";const s=o;a.id&&(e=`id="${a.id}"`),a.attribute&&(n=uo(a.attribute));const l=`<style ${e}${n}>${s}</style>`;return t.subParser("hashBlock")(l,i,r)}let l="";if(ao.emit("leafDirective",n,o,a,t=>{l=t})&&l)return t.subParser("hashBlock")(l,i,r)})).replace(/(?<!:):([-\w]+)\[([^\[\]]*)\](?:\{([^\{\}]*)\})?/g,function(e,n,o,s){const a={};co(s,a);let l="",c="";a.id&&(l=`id="${a.id}"`),a.attribute&&(c=uo(a.attribute));let u="";return a.classList&&(u=` class="${a.classList.join(" ")}"`),o=o?t.subParser("spanGamut")(o,i,r):"",ao.emit("textDirective",n,o,a,t=>{o=t})||(o=`<${n} ${l}${u}${c}>${o}</${n}>`),t.subParser("hashBlock")(o,i,r)})).replace(/¨0/,""),o._dispatch("directive.after",n,i,r))}}],"showdown-sequence":Wn(),...n};let i=[];for(let e in o)o.hasOwnProperty(e)&&(t.extension(e,o[e]),i.push(e));return i})(this.defaultOptions,this.defaultExtensions),o=wo(this.defaultOptions,this.defaultAsyncExtensions);this.setFlavor(e.flavor),this.setMathEngine(e.mathEngine),this.converter=new t.Converter({extensions:n}).initConvertExtObj(e.flavor,o),this.addOptions(e)}return this},makeHtml:function(e,n){let o="",i="html";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;"dom"===e.output&&(i="dom")}else o=e;return this.converter&&o?this.converter.asyncMakeHtml(o).then(e=>{if("string"!=typeof e.html){if("undefined"!=typeof document&&"dom"===i){let n=[e.html];if(e.extras){let o="",i=e.extras;t.helper.isArray(i)||(i=[i]);for(let t=0;i.length>t;++t)"string"==typeof i[t]?o+=i[t]:n.push(i[t]);if(o.length>0){const t=document.createElement("div");t.innerHTML=o,n.push(...t.childNodes),t.replaceChildren()}}return{html:n,scripts:e.scripts,cssLinks:e.cssLinks}}o=e.html.outerHTML}else o=e.html;if(e.extras){let n=e.extras;t.helper.isArray(n)||(n=[n]);for(let t=0;n.length>t;++t)o+="string"==typeof n[t]?n[t]:n.outerHTML}return{html:o,scripts:e.scripts,cssLinks:e.cssLinks}}):Promise.reject(o?"Converter is invaild.":"Content is empty.")},completedHtml:function(e,n){return t.helper.isArray(e)||(e=[e]),new Promise((o,i)=>{"string"==typeof n&&(n=document.querySelector(n));for(let o=0;e.length>o;++o){const r=e[o];if(r.outer){t.helper.isArray(r.outer)||(r.outer=[r.outer]);let e=r.outer[0],o=bo(e.name,e.src,e.module);for(let t=1;r.outer.length>t;++t)e=r.outer[t],o=o.then(()=>bo(e.name,e.src,e.module));ko(r,n,o);continue}if(!ko(r,n))return i("Args is invaild!")}o(!0)})},zDecode:function(t){return""+e.inflateRawSync(Buffer.from(t,"base64"))},zEncode:function(t){return e.deflateRawSync(t,{level:9}).toString("base64")}};module.exports=Lo;
7
7
  //# sourceMappingURL=showdowns.core.min.js.map