484 lines
706 KiB
JavaScript
484 lines
706 KiB
JavaScript
|
(function(Mi,ya){typeof exports=="object"&&typeof module<"u"?module.exports=ya():typeof define=="function"&&define.amd?define(ya):(Mi=typeof globalThis<"u"?globalThis:Mi||self,Mi.mermaid=ya())})(this,function(){"use strict";function Mi(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=Array.from(typeof t=="string"?[t]:t);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var i=n.reduce(function(o,l){var u=l.match(/\n([\t ]+|(?!\s).)/g);return u?o.concat(u.map(function(c){var h,f;return(f=(h=c.match(/[\t ]/g))===null||h===void 0?void 0:h.length)!==null&&f!==void 0?f:0})):o},[]);if(i.length){var a=new RegExp(`
|
|||
|
[ ]{`+Math.min.apply(Math,i)+"}","g");n=n.map(function(o){return o.replace(a,`
|
|||
|
`)})}n[0]=n[0].replace(/^\r?\n/,"");var s=n[0];return e.forEach(function(o,l){var u=s.match(/(?:^|\n)( *)$/),c=u?u[1]:"",h=o;typeof o=="string"&&o.includes(`
|
|||
|
`)&&(h=String(o).split(`
|
|||
|
`).map(function(f,p){return p===0?f:""+c+f}).join(`
|
|||
|
`)),s+=h+n[l+1]}),s}var ya=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var kc={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(ya,function(){var r=1e3,n=6e4,i=36e5,a="millisecond",s="second",o="minute",l="hour",u="day",c="week",h="month",f="quarter",p="year",y="date",b="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(X){var $=["th","st","nd","rd"],U=X%100;return"["+X+($[(U-20)%10]||$[U]||$[0])+"]"}},I=function(X,$,U){var et=String(X);return!et||et.length>=$?X:""+Array($+1-et.length).join(U)+X},V={s:I,z:function(X){var $=-X.utcOffset(),U=Math.abs($),et=Math.floor(U/60),K=U%60;return($<=0?"+":"-")+I(et,2,"0")+":"+I(K,2,"0")},m:function X($,U){if($.date()<U.date())return-X(U,$);var et=12*(U.year()-$.year())+(U.month()-$.month()),K=$.clone().add(et,h),W=U-K<0,v=$.clone().add(et+(W?-1:1),h);return+(-(et+(U-K)/(W?K-v:v-K))||0)},a:function(X){return X<0?Math.ceil(X)||0:Math.floor(X)},p:function(X){return{M:h,y:p,w:c,d:u,D:y,h:l,m:o,s,ms:a,Q:f}[X]||String(X||"").toLowerCase().replace(/s$/,"")},u:function(X){return X===void 0}},N="en",L={};L[N]=M;var q="$isDayjsObject",G=function(X){return X instanceof P||!(!X||!X[q])},Y=function X($,U,et){var K;if(!$)return N;if(typeof $=="string"){var W=$.toLowerCase();L[W]&&(K=W),U&&(L[W]=U,K=W);var v=$.split("-");if(!K&&v.length>1)return X(v[0])}else{var st=$.name;L[st]=$,K=st}return!et&&K&&(N=K),K||!et&&N},J=function(X,$){if(G(X))return X.clone();var U=typeof $=="object"?$:{};return U.date=X,U.args=arguments,new P(U)},O=V;O.l=Y,O.i=G,O.w=function(X,$){return J(X,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var P=function(){function X(U){this.$L=Y(U.locale,null,!0),this.parse(U),this.$x=this.$x||U.x||{},this[q]=!0}var $=X.prototype;return $.parse=function(U){this.$d=function(et){var K=et.date,W=et.utc;if(K===null)return new Date(NaN);if(O.u(K))return new Date;if(K instanceof Date)return new Date(K);if(typeof K=="string"&&!/Z$/i.test(K)){var v=K.match(A);if(v){var st=v[2]-1||0,dt=(v[7]||"0").substring(0,3);return W?new Date(Date.UTC(v[1],st,v[3]||1,v[4]||0,v[5]||0,v[6]||0,dt)):new Date(v[1],st,v[3]||1,v[4]||0,v[5]||0,v[6]||0,dt)}}return new Date(K)}(U),this.init()},$.init=function(){var U=this.$d;this.$y=U.getFullYear(),this.$M=U.getMonth(),this.$D=U.getDate(),this.$W=U.getDay(),this.$H=U.getHours(),this.$m=U.getMinutes(),this.$s=U.getSeconds(),this.$ms=U.getMilliseconds()},$.$utils=function(){return O},$.isValid=function(){return this.$d.toString()!==b},$.isSame=function(U,et){var K=J(U);return this.startOf(et)<=K&&K<=this.endOf(et)},$.isAfter=function(U,et){return J(U)<this.startOf(et)},$.isBefore=function(U,et){return this.endOf(et)<J(U)},$.$g=function(U,et,K){return O.u(U)?this[et]:this.set(K,U)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(U,et){var K=this,W=!!O.u(et)||et,v=O.p(U),st=function(jt,Ft){var Yt=O.w(K.$u?Date.UTC(K.$y,Ft,jt):new Date(K.$y,Ft,jt),K);return W?Yt:Yt.endOf(u)},dt=function(jt,Ft){return O.w(K.toDate()[jt].apply(K.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(Ft)),K)},w=this.$W,St=this.$M,zt=this.$D,Ot="set"+(this.$u?"UTC":"");switch(v){case p:return W?st(1,0):st(31,11);case h:return W?st(1,St):st(0,St+1);case c:var Ht=this.$locale().weekStart||0,Wt=(w<Ht?w+7:w)-Ht;return st(W?zt-Wt:zt+(6-Wt),St);case u:case y:return dt(Ot+"Hours",0);case l:return dt(Ot+"Minutes",1);case o:return dt(Ot+"Seconds",2);case s:return dt(Ot+"Milliseconds",3);default:return this.clone()}},$.endOf=function(U){return this.startOf(U,!1)},$.$set=function(U,et){var K,W=O.p(U),v="set"+
|
|||
|
`+Pe),Ft&&qs([O,P,ft],Kr=>{Pe=Fa(Pe,Kr," ")}),I&&Kt?I.createHTML(Pe):Pe},e.setConfig=function(){let ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ei(ht),ye=!0},e.clearConfig=function(){zn=null,ye=!1},e.isValidAttribute=function(ht,F,Q){zn||Ei({});const ct=Ut(ht),Xt=Ut(F);return Er(ct,Xt,Q)},e.addHook=function(ht,F){typeof F=="function"&&(J[ht]=J[ht]||[],Ea(J[ht],F))},e.removeHook=function(ht){if(J[ht])return zh(J[ht])},e.removeHooks=function(ht){J[ht]&&(J[ht]=[])},e.removeAllHooks=function(){J={}},e}var Ni=Vh();const Ma=/<br\s*\/?>/gi,Yg=t=>t?Gh(t).replace(/\\n/g,"#br#").split("#br#"):[""],Xg=(()=>{let t=!1;return()=>{t||(Kg(),t=!0)}})();function Kg(){const t="data-temp-href-target";Ni.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")||"")}),Ni.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)||""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}const Wh=t=>(Xg(),Ni.sanitize(t)),Uh=(t,e)=>{var r;if(((r=e.flowchart)==null?void 0:r.htmlLabels)!==!1){const n=e.securityLevel;n==="antiscript"||n==="strict"?t=Wh(t):n!=="loose"&&(t=Gh(t),t=t.replace(/</g,"<").replace(/>/g,">"),t=t.replace(/=/g,"="),t=t6(t))}return t},li=(t,e)=>t&&(e.dompurifyConfig?t=Ni.sanitize(Uh(t,e),e.dompurifyConfig).toString():t=Ni.sanitize(Uh(t,e),{FORBID_TAGS:["style"]}).toString(),t),Zg=(t,e)=>typeof t=="string"?li(t,e):t.flat().map(r=>li(r,e)),Qg=t=>Ma.test(t),Jg=t=>t.split(Ma),t6=t=>t.replace(/#br#/g,"<br/>"),Gh=t=>t.replace(Ma,"#br#"),e6=t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},De=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),r6=function(...t){const e=t.filter(r=>!isNaN(r));return Math.max(...e)},n6=function(...t){const e=t.filter(r=>!isNaN(r));return Math.min(...e)},jh=()=>window.MathMLElement!==void 0,ol=/\$\$(.*)\$\$/g,Yh=t=>{var e;return(((e=t.match(ol))==null?void 0:e.length)??0)>0},Xh=async(t,e)=>{if(!Yh(t))return t;if(!jh()&&!e.legacyMathML)return t.replace(ol,"MathML is unsupported in this environment.");const{default:r}=await Promise.resolve().then(()=>cL);return t.split(Ma).map(n=>Yh(n)?`
|
|||
|
<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">
|
|||
|
${n}
|
|||
|
</div>
|
|||
|
`:`<div>${n}</div>`).join("").replace(ol,(n,i)=>r.renderToString(i,{throwOnError:!0,displayMode:!0,output:jh()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},Ri={getRows:Yg,sanitizeText:li,sanitizeTextOrArray:Zg,hasBreaks:Qg,splitBreaks:Jg,lineBreakRegex:Ma,removeScript:Wh,getUrl:e6,evaluate:De,getMax:r6,getMin:n6},Ws={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t),hsl2rgb:({h:t,s:e,l:r},n)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;const i=r<.5?r*(1+e):r+e-r*e,a=2*r-i;switch(n){case"r":return Ws.hue2rgb(a,i,t+1/3)*255;case"g":return Ws.hue2rgb(a,i,t)*255;case"b":return Ws.hue2rgb(a,i,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:r},n)=>{t/=255,e/=255,r/=255;const i=Math.max(t,e,r),a=Math.min(t,e,r),s=(i+a)/2;if(n==="l")return s*100;if(i===a)return 0;const o=i-a,l=s>.5?o/(2-i-a):o/(i+a);if(n==="s")return l*100;switch(i){case t:return((e-r)/o+(e<r?6:0))*60;case e:return((r-t)/o+2)*60;case r:return((t-e)/o+4)*60;default:return-1}}},wt={channel:Ws,lang:{clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},unit:{dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}},$n={};for(let t=0;t<=255;t++)$n[t]=wt.unit.dec2hex(t);const ze={ALL:0,RGB:1,HSL:2};class i6{constructor(){this.type=ze.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=ze.ALL}is(e){return this.type===e}}const a6=i6;class s6{constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new a6}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=ze.ALL,this}_ensureHSL(){const e=this.data,{h:r,s:n,l:i}=e;r===void 0&&(e.h=wt.channel.rgb2hsl(e,"h")),n===void 0&&(e.s=wt.channel.rgb2hsl(e,"s")),i===void 0&&(e.l=wt.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r,g:n,b:i}=e;r===void 0&&(e.r=wt.channel.hsl2rgb(e,"r")),n===void 0&&(e.g=wt.channel.hsl2rgb(e,"g")),i===void 0&&(e.b=wt.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,r=e.r;return!this.type.is(ze.HSL)&&r!==void 0?r:(this._ensureHSL(),wt.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,r=e.g;return!this.type.is(ze.HSL)&&r!==void 0?r:(this._ensureHSL(),wt.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,r=e.b;return!this.type.is(ze.HSL)&&r!==void 0?r:(this._ensureHSL(),wt.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,r=e.h;return!this.type.is(ze.RGB)&&r!==void 0?r:(this._ensureRGB(),wt.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,r=e.s;return!this.type.is(ze.RGB)&&r!==void 0?r:(this._ensureRGB(),wt.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,r=e.l;return!this.type.is(ze.RGB)&&r!==void 0?r:(this._ensureRGB(),wt.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(ze.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(ze.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(ze.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(ze.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(ze.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(ze.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const o6=s6,Us=new o6({r:0,g:0,b:0,a:0},"transparent"),Kh={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(Kh.re);if(!e)return;const r=e[1],n=parseInt(r,16),i=r.length,a=i%4===0,s=i>4,o=s?1:17,l=s?8:4,u=a?0:-1,c=s?255:15;return Us.set({r:(n>>l*(u+3)&c)*o,g:(n>>l*(u+2)&c)*o,b:(n>>l*(u+1)&c)*o,a:a?(n&c)*o/255:1},t)},stringify:t=>{const{r:e,g:r,b:n,a:i}=t;return i<1?`#${$n[Math.round(e)]}${$n[Math.round(r)]}${$n[Math.round(n)]}${$n[Math.round(i*255)]}`:`#${$n[Math.round(
|
|||
|
`);for(const[r,{detector:n}]of Object.entries(qi))if(n(t,e))return r;throw new i1(`No diagram type detected matching given configuration for text: ${t}`)},S6=(...t)=>{for(const{id:e,detector:r,loader:n}of t)a1(e,r,n)},a1=(t,e,r)=>{qi[t]?E.error(`Detector with key ${t} already exists`):qi[t]={detector:e,loader:r},E.debug(`Detector with key ${t} added${r?" with loader":""}`)},T6=t=>qi[t].loader,ll=(t,e,{depth:r=2,clobber:n=!1}={})=>{const i={depth:r,clobber:n};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(a=>ll(t,a,i)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(a=>{t.includes(a)||t.push(a)}),t):t===void 0||r<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(a=>{typeof e[a]=="object"&&(t[a]===void 0||typeof t[a]=="object")?(t[a]===void 0&&(t[a]=Array.isArray(e[a])?[]:{}),t[a]=ll(t[a],e[a],{depth:r-1,clobber:n})):(n||typeof t[a]!="object"&&typeof e[a]!="object")&&(t[a]=e[a])}),t)},Oe=ll;var A6=typeof global=="object"&&global&&global.Object===Object&&global;const s1=A6;var B6=typeof self=="object"&&self&&self.Object===Object&&self,E6=s1||B6||Function("return this")();const Pr=E6;var F6=Pr.Symbol;const xr=F6;var o1=Object.prototype,L6=o1.hasOwnProperty,M6=o1.toString,Oa=xr?xr.toStringTag:void 0;function D6(t){var e=L6.call(t,Oa),r=t[Oa];try{t[Oa]=void 0;var n=!0}catch{}var i=M6.call(t);return n&&(e?t[Oa]=r:delete t[Oa]),i}var I6=Object.prototype,z6=I6.toString;function O6(t){return z6.call(t)}var N6="[object Null]",R6="[object Undefined]",l1=xr?xr.toStringTag:void 0;function ui(t){return t==null?t===void 0?R6:N6:l1&&l1 in Object(t)?D6(t):O6(t)}function hr(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var P6="[object AsyncFunction]",q6="[object Function]",$6="[object GeneratorFunction]",H6="[object Proxy]";function Na(t){if(!hr(t))return!1;var e=ui(t);return e==q6||e==$6||e==P6||e==H6}var V6=Pr["__core-js_shared__"];const ul=V6;var u1=function(){var t=/[^.]+$/.exec(ul&&ul.keys&&ul.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function W6(t){return!!u1&&u1 in t}var U6=Function.prototype,G6=U6.toString;function ci(t){if(t!=null){try{return G6.call(t)}catch{}try{return t+""}catch{}}return""}var j6=/[\\^$.*+?()[\]{}|]/g,Y6=/^\[object .+?Constructor\]$/,X6=Function.prototype,K6=Object.prototype,Z6=X6.toString,Q6=K6.hasOwnProperty,J6=RegExp("^"+Z6.call(Q6).replace(j6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function t7(t){if(!hr(t)||W6(t))return!1;var e=Na(t)?J6:Y6;return e.test(ci(t))}function e7(t,e){return t==null?void 0:t[e]}function hi(t,e){var r=e7(t,e);return t7(r)?r:void 0}var r7=hi(Object,"create");const Ra=r7;function n7(){this.__data__=Ra?Ra(null):{},this.size=0}function i7(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var a7="__lodash_hash_undefined__",s7=Object.prototype,o7=s7.hasOwnProperty;function l7(t){var e=this.__data__;if(Ra){var r=e[t];return r===a7?void 0:r}return o7.call(e,t)?e[t]:void 0}var u7=Object.prototype,c7=u7.hasOwnProperty;function h7(t){var e=this.__data__;return Ra?e[t]!==void 0:c7.call(e,t)}var f7="__lodash_hash_undefined__";function d7(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Ra&&e===void 0?f7:e,this}function fi(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}fi.prototype.clear=n7,fi.prototype.delete=i7,fi.prototype.get=l7,fi.prototype.has=h7,fi.prototype.set=d7;function p7(){this.__data__=[],this.size=0}function $i(t,e){return t===e||t!==t&&e!==e}function t0(t,e){for(var r=t.length;r--;)if($i(t[r][0],e))return r;return-1}var m7=Array.prototype,g7=m7.splice;function y7(t){var e=this.__data__,r=t0(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():g7.call(e,r,1),--this.size,!0}function b7(t){var e=this.__data__,r=t0(e,t);return r<0?void 0:e[r][1]}function x7(t){return t0(this.__data__,t)>-1}function v7(t,e){var r=this.__data__,n=t0(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function bn(t){var e=-1,r=t==null?
|
|||
|
`,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),E.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let n;const i=[];for(;(n=za.exec(t))!==null;)if(n.index===za.lastIndex&&za.lastIndex++,n&&!e||e&&n[1]&&n[1].match(e)||e&&n[2]&&n[2].match(e)){const a=n[1]?n[1]:n[2],s=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;i.push({type:a,args:s})}return i.length===0?{type:t,args:null}:i.length===1?i[0]:i}catch(r){return E.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},oy=function(t){return t.replace(za,"")},ly=function(t,e){for(const[r,n]of e.entries())if(n.match(t))return r;return-1};function f0(t,e){if(!t)return e;const r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return iy[r]??e}function uy(t,e){const r=t.trim();if(r)return e.securityLevel!=="loose"?_c.sanitizeUrl(r):r}const cy=(t,...e)=>{const r=t.split("."),n=r.length-1,i=r[n];let a=window;for(let s=0;s<n;s++)if(a=a[r[s]],!a){E.error(`Function name: ${t} not found in window`);return}a[i](...e)};function z1(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function hy(t){let e,r=0;t.forEach(i=>{r+=z1(i,e),e=i});const n=r/2;return yl(t,n)}function fy(t){return t.length===1?t[0]:hy(t)}const O1=(t,e=2)=>{const r=Math.pow(10,e);return Math.round(t*r)/r},yl=(t,e)=>{let r,n=e;for(const i of t){if(r){const a=z1(i,r);if(a<n)n-=a;else{const s=n/a;if(s<=0)return r;if(s>=1)return{x:i.x,y:i.y};if(s>0&&s<1)return{x:O1((1-s)*r.x+s*i.x,5),y:O1((1-s)*r.y+s*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")},dy=(t,e,r)=>{E.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());const i=yl(e,25),a=t?10:5,s=Math.atan2(e[0].y-i.y,e[0].x-i.x),o={x:0,y:0};return o.x=Math.sin(s)*a+(e[0].x+i.x)/2,o.y=-Math.cos(s)*a+(e[0].y+i.y)/2,o};function py(t,e,r){const n=structuredClone(r);E.info("our points",n),e!=="start_left"&&e!=="start_right"&&n.reverse();const i=25+t,a=yl(n,i),s=10+t*.5,o=Math.atan2(n[0].y-a.y,n[0].x-a.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(o+Math.PI)*s+(n[0].x+a.x)/2,l.y=-Math.cos(o+Math.PI)*s+(n[0].y+a.y)/2):e==="end_right"?(l.x=Math.sin(o-Math.PI)*s+(n[0].x+a.x)/2-5,l.y=-Math.cos(o-Math.PI)*s+(n[0].y+a.y)/2-5):e==="end_left"?(l.x=Math.sin(o)*s+(n[0].x+a.x)/2-5,l.y=-Math.cos(o)*s+(n[0].y+a.y)/2-5):(l.x=Math.sin(o)*s+(n[0].x+a.x)/2,l.y=-Math.cos(o)*s+(n[0].y+a.y)/2),l}function d0(t){let e="",r="";for(const n of t)n!==void 0&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":e=e+n+";");return{style:e,labelStyle:r}}let N1=0;const my=()=>(N1++,"id-"+Math.random().toString(36).substr(2,12)+"-"+N1);function gy(t){let e="";const r="0123456789abcdef",n=r.length;for(let i=0;i<t;i++)e+=r.charAt(Math.floor(Math.random()*n));return e}const yy=t=>gy(t.length),by=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},xy=function(t,e){const r=e.text.replace(Ri.lineBreakRegex," "),[,n]=xl(e.fontSize),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.style("text-anchor",e.anchor),i.style("font-family",e.fontFamily),i.style("font-size",n),i.style("font-weight",e.fontWeight),i.attr("fill",e.fill),e.class!==void 0&&i.attr("class",e.class);const a=i.append("tspan");return a.attr("x",e.x+e.textMargin*2),a.attr("fill",e.fill),a.text(r),i},vy=Hi((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Ri.lineBreakRegex.test(t)))return t;const n=t.split(" "),i=[];let a="";return n.forEach((s,o)=>{const l=p0(`${s} `,r),u=p0(a,r);if(l>e){const{hyphenatedStrings:f,remainingWord:p}=wy(s,e,"-",r);i.push(a,...f),a=p}else u+l>=e?(i.push(a),a=s):a=[a,s].filter(Boolean).join(" ");o+1===n.length&&i.push(a)}),i.filter(s=>s!=="").join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),wy=Hi((t,e,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);const i=[...t],a=[];let s="";return i.forEach((o,l)=>{const u=`${s}${
|
|||
|
`+Me.showPosition()+`
|
|||
|
Expecting `+Eo.join(", ")+", got '"+(this.terminals_[lr]||lr)+"'":Cc="Parse error on line "+(Mr+1)+": Unexpected "+(lr==Nm?"end of input":"'"+(this.terminals_[lr]||lr)+"'"),this.parseError(Cc,{text:Me.match,token:this.terminals_[lr]||lr,line:Me.yylineno,loc:vc,expected:Eo})}if(Dr[0]instanceof Array&&Dr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Li+", token: "+lr);switch(Dr[0]){case 1:At.push(lr),de.push(Me.yytext),C.push(Me.yylloc),At.push(Dr[1]),lr=null,Om=Me.yyleng,T=Me.yytext,Mr=Me.yylineno,vc=Me.yylloc;break;case 2:if(Nn=this.productions_[Dr[1]][1],ga.$=de[de.length-Nn],ga._$={first_line:C[C.length-(Nn||1)].first_line,last_line:C[C.length-1].last_line,first_column:C[C.length-(Nn||1)].first_column,last_column:C[C.length-1].last_column},dL&&(ga._$.range=[C[C.length-(Nn||1)].range[0],C[C.length-1].range[1]]),wc=this.performAction.apply(ga,[T,Om,Mr,Fi.yy,Dr[1],de,C].concat(fL)),typeof wc<"u")return wc;Nn&&(At=At.slice(0,-1*Nn*2),de=de.slice(0,-1*Nn),C=C.slice(0,-1*Nn)),At.push(this.productions_[Dr[1]][0]),de.push(ga.$),C.push(ga._$),Rm=xs[At[At.length-2]][At[At.length-1]],At.push(Rm);break;case 3:return!0}}return!0}},Pe=function(){var or={EOF:1,parseError:function(yt,At){if(this.yy.parser)this.yy.parser.parseError(yt,At);else throw new Error(yt)},setInput:function(lt,yt){return this.yy=yt||this.yy||{},this._input=lt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var lt=this._input[0];this.yytext+=lt,this.yyleng++,this.offset++,this.match+=lt,this.matched+=lt;var yt=lt.match(/(?:\r\n?|\n).*/g);return yt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),lt},unput:function(lt){var yt=lt.length,At=lt.split(/(?:\r\n?|\n)/g);this._input=lt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-yt),this.offset-=yt;var it=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),At.length-1&&(this.yylineno-=At.length-1);var de=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:At?(At.length===it.length?this.yylloc.first_column:0)+it[it.length-At.length].length-At[0].length:this.yylloc.first_column-yt},this.options.ranges&&(this.yylloc.range=[de[0],de[0]+this.yyleng-yt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(lt){this.unput(this.match.slice(lt))},pastInput:function(){var lt=this.matched.substr(0,this.matched.length-this.match.length);return(lt.length>20?"...":"")+lt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var lt=this.match;return lt.length<20&&(lt+=this._input.substr(0,20-lt.length)),(lt.substr(0,20)+(lt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var lt=this.pastInput(),yt=new Array(lt.length+1).join("-");return lt+this.upcomingInput()+`
|
|||
|
`+yt+"^"},test_match:function(lt,yt){var At,it,de;if(this.options.backtrack_lexer&&(de={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(de.yylloc.range=this.yylloc.range.slice(0))),it=lt[0].match(/(?:\r\n?|\n).*/g),it&&(this.yylineno+=it.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:it?it[it.length-1].length-it[it.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+lt[0].length},this.yytext+=lt[0],this.match+=lt[0],this.matches=lt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(lt[0].length),this.matched+=lt[0],At=this.performAction.call(this,this.yy,this,yt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),At)return At;if(this._backtrack){for(var C in de)this[C]=de[C];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var lt,yt,At,it;this._more||(this.yytext="",this.match="");for(var de=this._currentRules(),C=0;C<de.length;C++)if(At=this._input.match(this.rules[de[C]]),At&&(!yt||At[0].length>yt[0].length)){if(yt=At,it=C,this.options.backtrack_lexer){if(lt=this.test_match(At,de[C]),lt!==!1)return lt;if(this._backtrack){yt=!1;continue}else return!1}else if(!this.options.flex)break}return yt?(lt=this.test_match(yt,de[it]),lt!==!1?lt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var yt=this.next();return yt||this.lex()},begin:function(yt){this.conditionStack.push(yt)},popState:function(){var yt=this.conditionStack.length-1;return yt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(yt){return yt=this.conditionStack.length-1-Math.abs(yt||0),yt>=0?this.conditionStack[yt]:"INITIAL"},pushState:function(yt){this.begin(yt)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(yt,At,it,de){switch(it){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:this.begin("callbackname");break;case 8:this.popState();break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 92;case 11:this.popState();break;case 12:return 93;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("md_string");break;case 16:return"STR";case 17:this.popState();break;case 18:this.pushState("string");break;case 19:return 81;case 20:return 99;case 21:return 82;case 22:return 101;case 23:return 83;case 24:return 84;case 25:return 94;case 26:this.begin("click");break;case 27:this.popState();break;case 28:return 85;case 29:return yt.lex.firstGraph()&&this.begin("dir"),12;case 30:return yt.lex.firstGraph()&&this.begin("dir"),12;case 31:return yt.lex.firstGraph()&&this.begin("dir"),12;case 32:return 27;case 33:return 32;case 34:return 95;case 35:return 95;case 36:return 95;case 37:return 95;case 38:return this.popState(),13;case 39:return this.popState(),14;case 40:return this.popState(),14;case 41:return this.popState(),14;case 42:return this.popState(),14;case 43:return this.popState(),14;case 44:return this.popState(),14;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return 118;case 50:return 119;case 51:return 120;case 52:return 121;case 53:return 102;case 54:return 108;case 55:return 44;case 56:return 58;case 57:return 42;case 58:return 8;case 59:return 103;case 60:return 112;case 61:return this.popState(),75;case 62:return this.pushState("edgeText"),73;case 63:return 116;case 64:return this.popState(),75;case 65:return this.pushState("thickEdgeText"),73;case 66:return 116;case 67:return this.popState(),75;case 68:return this.pushState("dottedEdgeText"),73;case 69:return 116;case 70:return 75;case 71:return this.popState(),51;case 72:return"TEXT";case 73:return this.pushState("ellipseText"),50;case 74:return this.popState(),53;case 75:return this.pushState("text"),52;case 76:return this.popState(),55;case 77:return this.pushState("text"),54;case 78:return 56;case 79:return this.pushState("text"),65;case 80:return this.popState(),62;case 81:return this.pushState("text"),61;case 82:return this.popState(),47;case 83:return this.pushState("text"),46;case 84:return this.popState(),67;case 85:return this.popState(),69;case 86:return 114;case 87:return this.pushState("trapText"),66;case 88:return this.pushState("trapText"),68;case 89:return 115;case 90:return 65;case 91:return 87;case 92:return"SEP";case 93:return 86;case 94:return 112;case 95:return 108;case 96:return 42;case 97:return 106;case 98:return 111;case 99:return 113;case 100:return this.popState(),60;case 101:return this.pushState("text"),60;case 102:return this.popState(),49;case 103:return this.pushState("text"),48;case 104:return this.popState(),31;case 105:return this.pushState("text"),29;case 106:return this.popState(),64;case 107:return this.pushState("text"),63;case 108:return"TEXT";case 109:return"QUOTE";case 110:return 9;case 111:return 10;case 112
|
|||
|
font-family: ${r.fontFamily};
|
|||
|
font-size: ${r.fontSize};
|
|||
|
fill: ${r.textColor}
|
|||
|
}
|
|||
|
|
|||
|
/* Classes common for multiple diagrams */
|
|||
|
|
|||
|
& .error-icon {
|
|||
|
fill: ${r.errorBkgColor};
|
|||
|
}
|
|||
|
& .error-text {
|
|||
|
fill: ${r.errorTextColor};
|
|||
|
stroke: ${r.errorTextColor};
|
|||
|
}
|
|||
|
|
|||
|
& .edge-thickness-normal {
|
|||
|
stroke-width: 2px;
|
|||
|
}
|
|||
|
& .edge-thickness-thick {
|
|||
|
stroke-width: 3.5px
|
|||
|
}
|
|||
|
& .edge-pattern-solid {
|
|||
|
stroke-dasharray: 0;
|
|||
|
}
|
|||
|
|
|||
|
& .edge-pattern-dashed{
|
|||
|
stroke-dasharray: 3;
|
|||
|
}
|
|||
|
.edge-pattern-dotted {
|
|||
|
stroke-dasharray: 2;
|
|||
|
}
|
|||
|
|
|||
|
& .marker {
|
|||
|
fill: ${r.lineColor};
|
|||
|
stroke: ${r.lineColor};
|
|||
|
}
|
|||
|
& .marker.cross {
|
|||
|
stroke: ${r.lineColor};
|
|||
|
}
|
|||
|
|
|||
|
& svg {
|
|||
|
font-family: ${r.fontFamily};
|
|||
|
font-size: ${r.fontSize};
|
|||
|
}
|
|||
|
|
|||
|
${n}
|
|||
|
|
|||
|
${e}
|
|||
|
`},Jy=(t,e)=>{e!==void 0&&(_0[t]=e)},tb=Qy;let Al="",Bl="",El="";const Fl=t=>li(t,tn()),nf=()=>{Al="",El="",Bl=""},af=t=>{Al=Fl(t).replace(/^\s+/g,"")},sf=()=>Al,of=t=>{El=Fl(t).replace(/\n\s+/g,`
|
|||
|
`)},lf=()=>El,uf=t=>{Bl=Fl(t)},cf=()=>Bl,eb=Object.freeze(Object.defineProperty({__proto__:null,clear:nf,getAccDescription:lf,getAccTitle:sf,getDiagramTitle:cf,setAccDescription:of,setAccTitle:af,setDiagramTitle:uf},Symbol.toStringTag,{value:"Module"})),rb=E,nb=Fo,Et=tn,ib=Z1,ab=Xi,sb=t=>li(t,Et()),ob=rf,lb=()=>eb,S0={},Ll=(t,e,r)=>{var n;if(S0[t])throw new Error(`Diagram ${t} already registered.`);S0[t]=e,r&&a1(t,r),Jy(t,e.styles),(n=e.injectUtils)==null||n.call(e,rb,nb,Et,sb,ob,lb(),()=>{})},Ml=t=>{if(t in S0)return S0[t];throw new ub(t)};class ub extends Error{constructor(e){super(`Diagram ${e} not found.`)}}const cb="flowchart-";let hf=0,Zi=Et(),se={},Hr=[],Qi={},wn=[],T0={},A0={},B0=0,Dl=!0,wr,E0,F0=[];const L0=t=>Ri.sanitizeText(t,Zi),M0=function(t){const e=Object.keys(se);for(const r of e)if(se[r].id===t)return se[r].domId;return t},hb=function(t,e,r,n,i,a,s={}){let o,l=t;l!==void 0&&l.trim().length!==0&&(se[l]===void 0&&(se[l]={id:l,labelType:"text",domId:cb+l+"-"+hf,styles:[],classes:[]}),hf++,e!==void 0?(Zi=Et(),o=L0(e.text.trim()),se[l].labelType=e.type,o[0]==='"'&&o[o.length-1]==='"'&&(o=o.substring(1,o.length-1)),se[l].text=o):se[l].text===void 0&&(se[l].text=t),r!==void 0&&(se[l].type=r),n!=null&&n.forEach(function(u){se[l].styles.push(u)}),i!=null&&i.forEach(function(u){se[l].classes.push(u)}),a!==void 0&&(se[l].dir=a),se[l].props===void 0?se[l].props=s:s!==void 0&&Object.assign(se[l].props,s))},fb=function(t,e,r){const a={start:t,end:e,type:void 0,text:"",labelType:"text"};E.info("abc78 Got edge...",a);const s=r.text;if(s!==void 0&&(a.text=L0(s.text.trim()),a.text[0]==='"'&&a.text[a.text.length-1]==='"'&&(a.text=a.text.substring(1,a.text.length-1)),a.labelType=s.type),r!==void 0&&(a.type=r.type,a.stroke=r.stroke,a.length=r.length),(a==null?void 0:a.length)>10&&(a.length=10),Hr.length<(Zi.maxEdges??500))E.info("abc78 pushing edge..."),Hr.push(a);else throw new Error(`Edge limit exceeded. ${Hr.length} edges found, but the limit is ${Zi.maxEdges}.
|
|||
|
|
|||
|
Initialize mermaid with maxEdges set to a higher number to allow more edges.
|
|||
|
You cannot set this config via configuration inside the diagram as it is a secure config.
|
|||
|
You have to call mermaid.initialize.`)},db=function(t,e,r){E.info("addLink (abc78)",t,e,r);let n,i;for(n=0;n<t.length;n++)for(i=0;i<e.length;i++)fb(t[n],e[i],r)},pb=function(t,e){t.forEach(function(r){r==="default"?Hr.defaultInterpolate=e:Hr[r].interpolate=e})},mb=function(t,e){t.forEach(function(r){if(r>=Hr.length)throw new Error(`The index ${r} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${Hr.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);r==="default"?Hr.defaultStyle=e:(Ke.isSubstringInArray("fill",e)===-1&&e.push("fill:none"),Hr[r].style=e)})},gb=function(t,e){t.split(",").forEach(function(r){Qi[r]===void 0&&(Qi[r]={id:r,styles:[],textStyles:[]}),e!=null&&e.forEach(function(n){if(n.match("color")){const i=n.replace("fill","bgFill").replace("color","fill");Qi[r].textStyles.push(i)}Qi[r].styles.push(n)})})},yb=function(t){wr=t,wr.match(/.*</)&&(wr="RL"),wr.match(/.*\^/)&&(wr="BT"),wr.match(/.*>/)&&(wr="LR"),wr.match(/.*v/)&&(wr="TB"),wr==="TD"&&(wr="TB")},Il=function(t,e){t.split(",").forEach(function(r){let n=r;se[n]!==void 0&&se[n].classes.push(e),T0[n]!==void 0&&T0[n].classes.push(e)})},bb=function(t,e){t.split(",").forEach(function(r){e!==void 0&&(A0[E0==="gen-1"?M0(r):r]=L0(e))})},xb=function(t,e,r){let n=M0(t);if(Et().securityLevel!=="loose"||e===void 0)return;let i=[];if(typeof r=="string"){i=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let a=0;a<i.length;a++){let s=i[a].trim();s.charAt(0)==='"'&&s.charAt(s.length-1)==='"'&&(s=s.substr(1,s.length-2)),i[a]=s}}i.length===0&&i.push(t),se[t]!==void 0&&(se[t].haveCallback=!0,F0.push(function(){const a=document.querySelector(`[id="${n}"]`);a!==null&&a.addEventListener("click",function(){Ke.runFunc(e,...i)},!1)}))},vb=function(t,e,r){t.split(",").forEach(function(n){se[n]!==void 0&&(se[n].link=Ke.formatUrl(e,Zi),se[n].linkTarget=r)}),Il(t,"clickable")},wb=function(t){if(A0.hasOwnProperty(t))return A0[t]},Cb=function(t,e,r){t.split(",").forEach(function(n){xb(n,e,r)}),Il(t,"clickable")},kb=function(t){F0.forEach(function(e){e(t)})},_b=function(){return wr.trim()},Sb=function(){return se},Tb=function(){return Hr},Ab=function(){return Qi},ff=function(t){let e=Dt(".mermaidTooltip");(e._groups||e)[0][0]===null&&(e=Dt("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Dt(t).select("svg").selectAll("g.node").on("mouseover",function(){const i=Dt(this);if(i.attr("title")===null)return;const s=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(i.attr("title")).style("left",window.scrollX+s.left+(s.right-s.left)/2+"px").style("top",window.scrollY+s.bottom+"px"),e.html(e.html().replace(/<br\/>/g,"<br/>")),i.classed("hover",!0)}).on("mouseout",function(){e.transition().duration(500).style("opacity",0),Dt(this).classed("hover",!1)})};F0.push(ff);const Bb=function(t="gen-1"){se={},Qi={},Hr=[],F0=[ff],wn=[],T0={},B0=0,A0={},Dl=!0,E0=t,Zi=Et(),nf()},Eb=t=>{E0=t||"gen-2"},Fb=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},Lb=function(t,e,r){let n=t.text.trim(),i=r.text;t===r&&r.text.match(/\s/)&&(n=void 0);function a(c){const h={boolean:{},number:{},string:{}},f=[];let p;return{nodeList:c.filter(function(b){const A=typeof b;return b.stmt&&b.stmt==="dir"?(p=b.value,!1):b.trim()===""?!1:A in h?h[A].hasOwnProperty(b)?!1:h[A][b]=!0:f.includes(b)?!1:f.push(b)}),dir:p}}let s=[];const{nodeList:o,dir:l}=a(s.concat.apply(s,e));if(s=o,E0==="gen-1")for(let c=0;c<s.length;c++)s[c]=M0(s[c]);n=n||"subGraph"+B0,i=i||"",i=L0(i),B0=B0+1;const u={id:n,nodes:s,title:i.trim(),classes:[],dir:l,labelType:r.type};return E.info("Adding",u.id,u.nodes,u.dir),u.nodes=gf(u,wn).nodes,wn.push(u),T0[n]=u,n},Mb=function(t){for(const[e,r]of wn.entries())if(r.id===t)return e;return-1};let ja=-1;const df=[],pf=function(t,e){const r=wn[e].nodes;if(ja=ja+1,ja>2e3)return;if(df[ja]=e,wn[e].id===t)return{result:!0,count:0};let n=0,i=1;for(;n<r.length;){const a=Mb(r[n]);if(a>=0){const s=pf(t,a);if(s.result)return{result:!0,count:i+s.c
|
|||
|
`;break}case-3:{s=`\r
|
|||
|
`;break}case-2:{s=e?" ":" ";break}case-1:{if(!e&&i)continue;s=" ";break}default:s=String.fromCharCode(a)}i=a===-2,n.push(s)}return n.join("")}const bS=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:v_},disable:{null:[]},document:{42:tr,43:tr,45:tr,48:tr,49:tr,50:tr,51:tr,52:tr,53:tr,54:tr,55:tr,56:tr,57:tr,62:Nd},flow:{35:T_,42:W0,45:[Yd,W0],60:F_,61:Yd,95:W0,96:Hd,126:Hd},flowInitial:{[-2]:du,[-1]:du,32:du},insideSpan:{null:[hu,hS]},string:{38:qd,92:Rd},text:{[-5]:mu,[-4]:mu,[-3]:mu,33:Y_,38:qd,42:hu,60:[Zk,N_],91:K_,92:[__,Rd],93:pu,95:hu,96:c_}},Symbol.toStringTag,{value:"Module"}));function xS(t){const r=zk([bS,...(t||{}).extensions||[]]),n={defined:[],lazy:{},constructs:r,content:i(Wk),document:i(Gk),flow:i(uS),string:i(fS),text:i(dS)};return n;function i(a){return s;function s(o){return mS(n,a,o)}}}const Zd=/[\0\t\n\r]/g;function vS(){let t=1,e="",r=!0,n;return i;function i(a,s,o){const l=[];let u,c,h,f,p;for(a=e+a.toString(s),h=0,e="",r&&(a.charCodeAt(0)===65279&&h++,r=void 0);h<a.length;){if(Zd.lastIndex=h,u=Zd.exec(a),f=u&&u.index!==void 0?u.index:a.length,p=a.charCodeAt(f),!u){e=a.slice(h);break}if(p===10&&h===f&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),h<f&&(l.push(a.slice(h,f)),t+=f-h),p){case 0:{l.push(65533),t++;break}case 9:{for(c=Math.ceil(t/4)*4,l.push(-2);t++<c;)l.push(-1);break}case 10:{l.push(-4),t=1;break}default:n=!0,t=1}h=f+1}return o&&(n&&l.push(-5),e&&l.push(e),l.push(null)),l}}function wS(t){for(;!Vd(t););return t}function Qd(t,e){const r=Number.parseInt(t,e);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"<22>":String.fromCharCode(r)}const CS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function kS(t){return t.replace(CS,_S)}function _S(t,e,r){if(e)return e;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),a=i===120||i===88;return Qd(r.slice(a?2:1),a?16:10)}return fu(r)||t}function U0(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Jd(t.position):"start"in t||"end"in t?Jd(t):"line"in t||"column"in t?gu(t):""}function gu(t){return t2(t&&t.line)+":"+t2(t&&t.column)}function Jd(t){return gu(t&&t.start)+"-"+gu(t&&t.end)}function t2(t){return t&&typeof t=="number"?t:1}const e2={}.hasOwnProperty,r2=function(t,e,r){return typeof e!="string"&&(r=e,e=void 0),SS(r)(wS(xS(r).document().write(vS()(t,e,!0))))};function SS(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(In),autolinkProtocol:O,autolinkEmail:O,atxHeading:o(Kt),blockQuote:o(Yt),characterEscape:O,characterReference:O,codeFenced:o(ye),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(ye,l),codeText:o(Te,l),codeTextData:O,data:O,codeFlowValue:O,definition:o(Ae),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(ir),hardBreakEscape:o(fe),hardBreakTrailing:o(fe),htmlFlow:o(yr,l),htmlFlowData:O,htmlText:o(yr,l),htmlTextData:O,image:o(ar),label:l,link:o(In),listItem:o(jr),listItemValue:y,listOrdered:o(Gr,p),listUnordered:o(Gr),paragraph:o(Yr),reference:zt,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(Kt),strong:o(Ti),thematicBreak:o(Bi)},exit:{atxHeading:c(),atxHeadingSequence:q,autolink:c(),autolinkEmail:Ft,autolinkProtocol:jt,blockQuote:c(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:Ht,characterReferenceMarkerNumeric:Ht,characterReferenceValue:Wt,codeFenced:c(M),codeFencedFence:_,codeFencedFenceInfo:b,codeFencedFenceMeta:A,codeFlowValue:P,codeIndented:c(I),codeText:c(et),codeTextData:P,data:P,definition:c(),definitionDestinationString:L,definitionLabelString:V,definitionTitleString:N,emphasis:c(),hardBreakEscape:c(X),hardBreakTrailing:c(X),htmlFlow:c($),htmlFlowData:P,htmlText:c(U),htmlTextData:P,image:c(W),label:st,labelText:v,lineEnding:ft,link:c(K),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:Ot,resourceDestinationString:dt,resourceTitleString:w,resource:St,sete
|
|||
|
`);return Mi(e)}function BS(t){const e=AS(t),{children:r}=r2(e),n=[[]];let i=0;function a(s,o="normal"){s.type==="text"?s.value.split(`
|
|||
|
`).forEach((u,c)=>{c!==0&&(i++,n.push([])),u.split(" ").forEach(h=>{h&&n[i].push({content:h,type:o})})}):(s.type==="strong"||s.type==="emphasis")&&s.children.forEach(l=>{a(l,s.type)})}return r.forEach(s=>{s.type==="paragraph"&&s.children.forEach(o=>{a(o)})}),n}function ES(t){const{children:e}=r2(t);function r(n){return n.type==="text"?n.value.replace(/\n/g,"<br/>"):n.type==="strong"?`<strong>${n.children.map(r).join("")}</strong>`:n.type==="emphasis"?`<em>${n.children.map(r).join("")}</em>`:n.type==="paragraph"?`<p>${n.children.map(r).join("")}</p>`:`Unsupported markdown: ${n.type}`}return e.map(r).join("")}function FS(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(e=>e.segment):[...t]}function LS(t,e){const r=FS(e.content);return a2(t,[],r,e.type)}function a2(t,e,r,n){if(r.length===0)return[{content:e.join(""),type:n},{content:"",type:n}];const[i,...a]=r,s=[...e,i];return t([{content:s.join(""),type:n}])?a2(t,s,a,n):(e.length===0&&i&&(e.push(i),r.shift()),[{content:e.join(""),type:n},{content:r.join(""),type:n}])}function MS(t,e){if(t.some(({content:r})=>r.includes(`
|
|||
|
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return yu(t,e)}function yu(t,e,r=[],n=[]){if(t.length===0)return n.length>0&&r.push(n),r.length>0?r:[];let i="";t[0].content===" "&&(i=" ",t.shift());const a=t.shift()??{content:" ",type:"normal"},s=[...n];if(i!==""&&s.push({content:i,type:"normal"}),s.push(a),e(s))return yu(t,e,r,s);if(n.length>0)r.push(n),t.unshift(a);else if(a.content){const[o,l]=LS(e,a);r.push([o]),l.content&&t.unshift(l)}return yu(t,e,r)}function DS(t,e){e&&t.attr("style",e)}function IS(t,e,r,n,i=!1){const a=t.append("foreignObject"),s=a.append("xhtml:div"),o=e.label,l=e.isNode?"nodeLabel":"edgeLabel";s.html(`
|
|||
|
<span class="${l} ${n}" `+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+o+"</span>"),DS(s,e.labelStyle),s.style("display","table-cell"),s.style("white-space","nowrap"),s.style("max-width",r+"px"),s.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&s.attr("class","labelBkg");let u=s.node().getBoundingClientRect();return u.width===r&&(s.style("display","table"),s.style("white-space","break-spaces"),s.style("width",r+"px"),u=s.node().getBoundingClientRect()),a.style("width",u.width),a.style("height",u.height),a.node()}function s2(t,e,r){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em")}function zS(t,e,r){const n=t.append("text"),i=s2(n,1,e);o2(i,r);const a=i.node().getComputedTextLength();return n.remove(),a}function OS(t,e,r,n=!1){const a=e.append("g"),s=a.insert("rect").attr("class","background"),o=a.append("text").attr("y","-10.1");let l=0;for(const u of r){const c=f=>zS(a,1.1,f)<=t,h=c(u)?[u]:MS(u,c);for(const f of h){const p=s2(o,l,1.1);o2(p,f),l++}}if(n){const u=o.node().getBBox(),c=2;return s.attr("x",-c).attr("y",-c).attr("width",u.width+2*c).attr("height",u.height+2*c),a.node()}else return o.node()}function o2(t,e){t.text(""),e.forEach((r,n)=>{const i=t.append("tspan").attr("font-style",r.type==="emphasis"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");n===0?i.text(r.content):i.text(" "+r.content)})}const bu=(t,e="",{style:r="",isTitle:n=!1,classes:i="",useHtmlLabels:a=!0,isNode:s=!0,width:o=200,addSvgBackground:l=!1}={})=>{if(E.info("createText",e,r,n,i,a,s,l),a){const u=ES(e),c={isNode:s,label:Va(u).replace(/fa[blrs]?:fa-[\w-]+/g,f=>`<i class='${f.replace(":"," ")}'></i>`),labelStyle:r.replace("fill:","color:")};return IS(t,c,o,i,l)}else{const u=BS(e);return OS(o,t,u,l)}},Ee=async(t,e,r,n)=>{let i;const a=e.useHtmlLabels||De(Et().flowchart.htmlLabels);r?i=r:i="node default";const s=t.insert("g").attr("class",i).attr("id",e.domId||e.id),o=s.insert("g").attr("class","label").attr("style",e.labelStyle);let l;e.labelText===void 0?l="":l=typeof e.labelText=="string"?e.labelText:e.labelText[0];const u=o.node();let c;e.labelType==="markdown"?c=bu(o,li(Va(l),Et()),{useHtmlLabels:a,width:e.width||Et().flowchart.wrappingWidth,classes:"markdown-node-label"}):c=u.appendChild(Qe(li(Va(l),Et()),e.labelStyle,!1,n));let h=c.getBBox();const f=e.padding/2;if(De(Et().flowchart.htmlLabels)){const p=c.children[0],y=Dt(c),b=p.getElementsByTagName("img");if(b){const A=l.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...b].map(_=>new Promise(M=>{function I(){if(_.style.display="flex",_.style.flexDirection="column",A){const V=Et().fontSize?Et().fontSize:window.getComputedStyle(document.body).fontSize,N=5,L=parseInt(V,10)*N+"px";_.style.minWidth=L,_.style.maxWidth=L}else _.style.width="100%";M(_)}setTimeout(()=>{_.complete&&I()}),_.addEventListener("error",I),_.addEventListener("load",I)})))}h=p.getBoundingClientRect(),y.attr("width",h.width),y.attr("height",h.height)}return a?o.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):o.attr("transform","translate(0, "+-h.height/2+")"),e.centerLabel&&o.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:s,bbox:h,halfPadding:f,label:o}},ue=(t,e)=>{const r=e.node().getBBox();t.width=r.width,t.height=r.height};function nn(t,e,r,n){return t.insert("polygon",":first-child").attr("points",n.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}let Tt={},Wr={},l2={};const NS=()=>{Wr={},l2={},Tt={}},G0=(t,e)=>(E.trace("In isDescendant",e," ",t," = ",Wr[e].includes(t)),!!Wr[e].includes(t)),RS=(t,e)=>(E.info("Descendants of ",e," is ",Wr[e]),E.info("Edge is ",t),t.v===e||t.w===e?!1:Wr[e]?Wr[e].includes(t.v)||G0(t.v,e)||G0(t.w,e)||Wr[e].includes(t.w):(E.debug("Tilt, ",e,",not in descendants"),!1)),u2=(t,e,r,n)=>{E.warn("Copying children of ",t,"root",n,"data",e.node(t),n);const i=e.children(t)||[];t!==n&&i.push(t),E.warn("Copying (nodes
|
|||
|
outsidePoint: ${JSON.stringify(e)}
|
|||
|
insidePoint : ${JSON.stringify(r)}
|
|||
|
node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const n=t.x,i=t.y,a=Math.abs(n-r.x),s=t.width/2;let o=r.x<e.x?s-a:s+a;const l=t.height/2,u=Math.abs(e.y-r.y),c=Math.abs(e.x-r.x);if(Math.abs(i-e.y)*s>Math.abs(n-e.x)*l){let h=r.y<e.y?e.y-l-i:i-l-e.y;o=c*h/u;const f={x:r.x<e.x?r.x+o:r.x-c+o,y:r.y<e.y?r.y+u-h:r.y-u+h};return o===0&&(f.x=e.x,f.y=e.y),c===0&&(f.x=e.x),u===0&&(f.y=e.y),E.debug(`abc89 topp/bott calc, Q ${u}, q ${h}, R ${c}, r ${o}`,f),f}else{r.x<e.x?o=e.x-s-n:o=n-s-e.x;let h=u*o/c,f=r.x<e.x?r.x+c-o:r.x-c+o,p=r.y<e.y?r.y+h:r.y-h;return E.debug(`sides calc abc89, Q ${u}, q ${h}, R ${c}, r ${o}`,{_x:f,_y:p}),o===0&&(f=e.x,p=e.y),c===0&&(f=e.x),u===0&&(p=e.y),{x:f,y:p}}},C2=(t,e)=>{E.debug("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],i=!1;return t.forEach(a=>{if(!ST(e,a)&&!i){const s=TT(e,n,a);let o=!1;r.forEach(l=>{o=o||l.x===s.x&&l.y===s.y}),r.some(l=>l.x===s.x&&l.y===s.y)||r.push(s),i=!0}else n=a,i||r.push(a)}),r},AT=function(t,e,r,n,i,a,s){let o=r.points;E.debug("abc88 InsertEdge: edge=",r,"e=",e);let l=!1;const u=a.node(e.v);var c=a.node(e.w);c!=null&&c.intersect&&(u!=null&&u.intersect)&&(o=o.slice(1,r.points.length-1),o.unshift(u.intersect(o[0])),o.push(c.intersect(o[o.length-1]))),r.toCluster&&(E.debug("to cluster abc88",n[r.toCluster]),o=C2(r.points,n[r.toCluster].node),l=!0),r.fromCluster&&(E.debug("from cluster abc88",n[r.fromCluster]),o=C2(o.reverse(),n[r.fromCluster].node).reverse(),l=!0);const h=o.filter(V=>!Number.isNaN(V.y));let f=yh;r.curve&&(i==="graph"||i==="flowchart")&&(f=r.curve);const{x:p,y}=xT(r),b=cg().x(p).y(y).curve(f);let A;switch(r.thickness){case"normal":A="edge-thickness-normal";break;case"thick":A="edge-thickness-thick";break;case"invisible":A="edge-thickness-thick";break;default:A=""}switch(r.pattern){case"solid":A+=" edge-pattern-solid";break;case"dotted":A+=" edge-pattern-dotted";break;case"dashed":A+=" edge-pattern-dashed";break}const _=t.append("path").attr("d",b(h)).attr("id",r.id).attr("class"," "+A+(r.classes?" "+r.classes:"")).attr("style",r.style);let M="";(Et().flowchart.arrowMarkerAbsolute||Et().state.arrowMarkerAbsolute)&&(M=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,M=M.replace(/\(/g,"\\("),M=M.replace(/\)/g,"\\)")),vT(_,r,M,s,i);let I={};return l&&(I.updatedPath=o),I.originalPath=r.points,I},k2=async(t,e,r,n,i,a)=>{E.info("Graph in recursive render: XXX",_n(e),i);const s=e.graph().rankdir;E.trace("Dir in recursive render - dir:",s);const o=t.insert("g").attr("class","root");e.nodes()?E.info("Recursive render XXX",e.nodes()):E.info("No nodes found for",e),e.edges().length>0&&E.trace("Recursive edges",e.edge(e.edges()[0]));const l=o.insert("g").attr("class","clusters"),u=o.insert("g").attr("class","edgePaths"),c=o.insert("g").attr("class","edgeLabels"),h=o.insert("g").attr("class","nodes");await Promise.all(e.nodes().map(async function(y){const b=e.node(y);if(i!==void 0){const A=JSON.parse(JSON.stringify(i.clusterData));E.info("Setting data for cluster XXX (",y,") ",A,i),e.setNode(i.id,A),e.parent(y)||(E.trace("Setting parent",y,i.id),e.setParent(y,i.id,A))}if(E.info("(Insert) Node XXX"+y+": "+JSON.stringify(e.node(y))),b&&b.clusterNode){E.info("Cluster identified",y,b.width,e.node(y));const A=await k2(h,b.graph,r,n,e.node(y),a),_=A.elem;ue(b,_),b.diff=A.diff||0,E.info("Node bounds (abc123)",y,b,b.width,b.x,b.y),pT(_,b),E.warn("Recursive render complete ",_,b)}else e.children(y).length>0?(E.info("Cluster - the non recursive path XXX",y,b.id,b,e),E.info(is(b.id,e)),Tt[b.id]={id:is(b.id,e),node:b}):(E.info("Node - the non recursive path",y,b.id,b),await dT(h,e.node(y),s))})),e.edges().forEach(function(y){const b=e.edge(y.v,y.w,y.name);E.info("Edge "+y.v+" -> "+y.w+": "+JSON.stringify(y)),E.info("Edge "+y.v+" -> "+y.w+": ",y," ",JSON.stringify(e.edge(y))),E.info("Fix",Tt,"ids:",y.v,y.w,"Translating: ",Tt[y.v],Tt[y.w]),kT(c,b)}),e.edges().forEach(function(y){E.info("Edge "+y.v+" -> "+y.w+": "+JSON.stringify(y))}),E.info("#############################################"),E.info("### Layout
|
|||
|
`),Et()),o.style===void 0&&(f.style=f.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),f.labelStyle=f.labelStyle.replace("color:","fill:"),f.id=u,f.classes="flowchart-link "+c+" "+h,e.setEdge(o.start,o.end,f,n)}},A2={setConf:LT,addVertices:S2,addEdges:T2,getClasses:function(t,e){return e.db.getClasses()},draw:async function(t,e,r,n){E.info("Drawing flowchart");let i=n.db.getDirection();i===void 0&&(i="TD");const{securityLevel:a,flowchart:s}=Et(),o=s.nodeSpacing||50,l=s.rankSpacing||50;let u;a==="sandbox"&&(u=Dt("#i"+e));const c=Dt(a==="sandbox"?u.nodes()[0].contentDocument.body:"body"),h=a==="sandbox"?u.nodes()[0].contentDocument:document,f=new Cr({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:o,ranksep:l,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let p;const y=n.db.getSubGraphs();E.info("Subgraphs - ",y);for(let N=y.length-1;N>=0;N--)p=y[N],E.info("Subgraph - ",p),n.db.addVertex(p.id,{text:p.title,type:p.labelType},"group",void 0,p.classes,p.dir);const b=n.db.getVertices(),A=n.db.getEdges();E.info("Edges",A);let _=0;for(_=y.length-1;_>=0;_--){p=y[_],C3("cluster").append("text");for(let N=0;N<p.nodes.length;N++)E.info("Setting up subgraphs",p.nodes[N],p.id),f.setParent(p.nodes[N],p.id)}await S2(b,f,e,c,h,n),await T2(A,f);const M=c.select(`[id="${e}"]`),I=c.select("#"+e+" g");if(await BT(I,f,["point","circle","cross"],"flowchart",e),Ke.insertTitle(M,"flowchartTitleText",s.titleTopMargin,n.db.getDiagramTitle()),rf(f,M,s.diagramPadding,s.useMaxWidth),n.db.indexNodes("subGraph"+_),!s.htmlLabels){const N=h.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const L of N){const q=L.getBBox(),G=h.createElementNS("http://www.w3.org/2000/svg","rect");G.setAttribute("rx",0),G.setAttribute("ry",0),G.setAttribute("width",q.width),G.setAttribute("height",q.height),L.insertBefore(G,L.firstChild)}}Object.keys(b).forEach(function(N){const L=b[N];if(L.link){const q=Dt("#"+e+' [id="'+N+'"]');if(q){const G=h.createElementNS("http://www.w3.org/2000/svg","a");G.setAttributeNS("http://www.w3.org/2000/svg","class",L.classes.join(" ")),G.setAttributeNS("http://www.w3.org/2000/svg","href",L.link),G.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),a==="sandbox"?G.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):L.linkTarget&&G.setAttributeNS("http://www.w3.org/2000/svg","target",L.linkTarget);const Y=q.insert(function(){return G},":first-child"),J=q.select(".label-container");J&&Y.append(function(){return J.node()});const O=q.select(".label");O&&Y.append(function(){return O.node()})}}})}},MT=(t,e)=>{const r=l6,n=r(t,"r"),i=r(t,"g"),a=r(t,"b");return Pi(n,i,a,e)},DT={parser:Xy,db:zl,renderer:A2,styles:t=>`.label {
|
|||
|
font-family: ${t.fontFamily};
|
|||
|
color: ${t.nodeTextColor||t.textColor};
|
|||
|
}
|
|||
|
.cluster-label text {
|
|||
|
fill: ${t.titleColor};
|
|||
|
}
|
|||
|
.cluster-label span,p {
|
|||
|
color: ${t.titleColor};
|
|||
|
}
|
|||
|
|
|||
|
.label text,span,p {
|
|||
|
fill: ${t.nodeTextColor||t.textColor};
|
|||
|
color: ${t.nodeTextColor||t.textColor};
|
|||
|
}
|
|||
|
|
|||
|
.node rect,
|
|||
|
.node circle,
|
|||
|
.node ellipse,
|
|||
|
.node polygon,
|
|||
|
.node path {
|
|||
|
fill: ${t.mainBkg};
|
|||
|
stroke: ${t.nodeBorder};
|
|||
|
stroke-width: 1px;
|
|||
|
}
|
|||
|
.flowchart-label text {
|
|||
|
text-anchor: middle;
|
|||
|
}
|
|||
|
// .flowchart-label .text-outer-tspan {
|
|||
|
// text-anchor: middle;
|
|||
|
// }
|
|||
|
// .flowchart-label .text-inner-tspan {
|
|||
|
// text-anchor: start;
|
|||
|
// }
|
|||
|
|
|||
|
.node .katex path {
|
|||
|
fill: #000;
|
|||
|
stroke: #000;
|
|||
|
stroke-width: 1px;
|
|||
|
}
|
|||
|
|
|||
|
.node .label {
|
|||
|
text-align: center;
|
|||
|
}
|
|||
|
.node.clickable {
|
|||
|
cursor: pointer;
|
|||
|
}
|
|||
|
|
|||
|
.arrowheadPath {
|
|||
|
fill: ${t.arrowheadColor};
|
|||
|
}
|
|||
|
|
|||
|
.edgePath .path {
|
|||
|
stroke: ${t.lineColor};
|
|||
|
stroke-width: 2.0px;
|
|||
|
}
|
|||
|
|
|||
|
.flowchart-link {
|
|||
|
stroke: ${t.lineColor};
|
|||
|
fill: none;
|
|||
|
}
|
|||
|
|
|||
|
.edgeLabel {
|
|||
|
background-color: ${t.edgeLabelBackground};
|
|||
|
rect {
|
|||
|
opacity: 0.5;
|
|||
|
background-color: ${t.edgeLabelBackground};
|
|||
|
fill: ${t.edgeLabelBackground};
|
|||
|
}
|
|||
|
text-align: center;
|
|||
|
}
|
|||
|
|
|||
|
/* For html labels only */
|
|||
|
.labelBkg {
|
|||
|
background-color: ${MT(t.edgeLabelBackground,.5)};
|
|||
|
// background-color:
|
|||
|
}
|
|||
|
|
|||
|
.cluster rect {
|
|||
|
fill: ${t.clusterBkg};
|
|||
|
stroke: ${t.clusterBorder};
|
|||
|
stroke-width: 1px;
|
|||
|
}
|
|||
|
|
|||
|
.cluster text {
|
|||
|
fill: ${t.titleColor};
|
|||
|
}
|
|||
|
|
|||
|
.cluster span,p {
|
|||
|
color: ${t.titleColor};
|
|||
|
}
|
|||
|
/* .cluster div {
|
|||
|
color: ${t.titleColor};
|
|||
|
} */
|
|||
|
|
|||
|
div.mermaidTooltip {
|
|||
|
position: absolute;
|
|||
|
text-align: center;
|
|||
|
max-width: 200px;
|
|||
|
padding: 2px;
|
|||
|
font-family: ${t.fontFamily};
|
|||
|
font-size: 12px;
|
|||
|
background: ${t.tertiaryColor};
|
|||
|
border: 1px solid ${t.border2};
|
|||
|
border-radius: 2px;
|
|||
|
pointer-events: none;
|
|||
|
z-index: 100;
|
|||
|
}
|
|||
|
|
|||
|
.flowchartTitleText {
|
|||
|
text-anchor: middle;
|
|||
|
font-size: 18px;
|
|||
|
fill: ${t.textColor};
|
|||
|
}
|
|||
|
`,init:t=>{t.flowchart||(t.flowchart={}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,ib({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}}),A2.setConf(t.flowchart),zl.clear(),zl.setGen("gen-2")}};let B2=!1;const vu=()=>{B2||(B2=!0,Ll("flowchart-v2",DT,()=>!0))};class E2{constructor(e,r={}){this.text=e,this.metadata=r,this.type="graph",this.text=Ty(e),this.text+=`
|
|||
|
`;const n=tn();try{this.type=Js(e,n)}catch(a){this.type="error",this.detectError=a}const i=Ml(this.type);E.debug("Type "+this.type),this.db=i.db,this.renderer=i.renderer,this.parser=i.parser,this.parser.parser.yy=this.db,this.init=i.init,this.parse()}parse(){var r,n,i,a,s;if(this.detectError)throw this.detectError;(n=(r=this.db).clear)==null||n.call(r);const e=tn();(i=this.init)==null||i.call(this,e),this.metadata.title&&((s=(a=this.db).setDiagramTitle)==null||s.call(a,this.metadata.title)),this.parser.parse(this.text)}async render(e,r){await this.renderer.draw(this.text,e,r,this)}getParser(){return this.parser}getType(){return this.type}}const IT=async(t,e={})=>{const r=Js(t,tn());try{Ml(r)}catch{const i=T6(r);if(!i)throw new i1(`Diagram ${r} not found.`);const{id:a,diagram:s}=await i();Ll(a,s)}return new E2(t,e)},zT=t=>{var i;const{securityLevel:e}=Et();let r=Dt("body");if(e==="sandbox"){const s=((i=Dt(`#i${t}`).node())==null?void 0:i.contentDocument)??document;r=Dt(s.body)}return r.select(`#${t}`)},OT={draw:(t,e,r)=>{E.debug(`rendering svg for syntax error
|
|||
|
`);const n=zT(e),i=n.append("g");n.attr("viewBox","0 0 2412 512"),ef(n,100,512,!0),i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)}};let F2=[];const NT=()=>{F2.forEach(t=>{t()}),F2=[]},RT="graphics-document document";function PT(t,e){t.attr("role",RT),e!==""&&t.attr("aria-roledescription",e)}function qT(t,e,r,n){if(t.insert!==void 0){if(r){const i=`chart-desc-${n}`;t.attr("aria-describedby",i),t.insert("desc",":first-child").attr("id",i).text(r)}if(e){const i=`chart-title-${n}`;t.attr("aria-labelledby",i),t.insert("title",":first-child").attr("id",i).text(e)}}}const $T=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function L2(t){return typeof t>"u"||t===null}function HT(t){return typeof t=="object"&&t!==null}function VT(t){return Array.isArray(t)?t:L2(t)?[]:[t]}function WT(t,e){var r,n,i,a;if(e)for(a=Object.keys(e),r=0,n=a.length;r<n;r+=1)i=a[r],t[i]=e[i];return t}function UT(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}function GT(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var jT=L2,YT=HT,XT=VT,KT=UT,ZT=GT,QT=WT,Ve={isNothing:jT,isObject:YT,toArray:XT,repeat:KT,isNegativeZero:ZT,extend:QT};function M2(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
|||
|
|
|||
|
`+t.mark.snippet),n+" "+r):n}function ss(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=M2(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ss.prototype=Object.create(Error.prototype),ss.prototype.constructor=ss,ss.prototype.toString=function(e){return this.name+": "+M2(this,e)};var Sn=ss;function wu(t,e,r,n,i){var a="",s="",o=Math.floor(i/2)-1;return n-e>o&&(a=" ... ",e=n-o+a.length),r-n>o&&(s=" ...",r=n+o-s.length),{str:a+t.slice(e,r).replace(/\t/g,"→")+s,pos:n-e+a.length}}function Cu(t,e){return Ve.repeat(" ",e-t.length)+t}function JT(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],a,s=-1;a=r.exec(t.buffer);)i.push(a.index),n.push(a.index+a[0].length),t.position<=a.index&&s<0&&(s=n.length-2);s<0&&(s=n.length-1);var o="",l,u,c=Math.min(t.line+e.linesAfter,i.length).toString().length,h=e.maxLength-(e.indent+c+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)u=wu(t.buffer,n[s-l],i[s-l],t.position-(n[s]-n[s-l]),h),o=Ve.repeat(" ",e.indent)+Cu((t.line-l+1).toString(),c)+" | "+u.str+`
|
|||
|
`+o;for(u=wu(t.buffer,n[s],i[s],t.position,h),o+=Ve.repeat(" ",e.indent)+Cu((t.line+1).toString(),c)+" | "+u.str+`
|
|||
|
`,o+=Ve.repeat("-",e.indent+c+3+u.pos)+`^
|
|||
|
`,l=1;l<=e.linesAfter&&!(s+l>=i.length);l++)u=wu(t.buffer,n[s+l],i[s+l],t.position-(n[s]-n[s+l]),h),o+=Ve.repeat(" ",e.indent)+Cu((t.line+l+1).toString(),c)+" | "+u.str+`
|
|||
|
`;return o.replace(/\n$/,"")}var tA=JT,eA=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],rA=["scalar","sequence","mapping"];function nA(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}function iA(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(eA.indexOf(r)===-1)throw new Sn('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=nA(e.styleAliases||null),rA.indexOf(this.kind)===-1)throw new Sn('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Ne=iA;function D2(t,e){var r=[];return t[e].forEach(function(n){var i=r.length;r.forEach(function(a,s){a.tag===n.tag&&a.kind===n.kind&&a.multi===n.multi&&(i=s)}),r[i]=n}),r}function aA(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(n);return t}function ku(t){return this.extend(t)}ku.prototype.extend=function(e){var r=[],n=[];if(e instanceof Ne)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new Sn("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(a){if(!(a instanceof Ne))throw new Sn("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new Sn("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new Sn("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(a){if(!(a instanceof Ne))throw new Sn("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(ku.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=D2(i,"implicit"),i.compiledExplicit=D2(i,"explicit"),i.compiledTypeMap=aA(i.compiledImplicit,i.compiledExplicit),i};var sA=ku,oA=new Ne("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),lA=new Ne("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),uA=new Ne("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),cA=new sA({explicit:[oA,lA,uA]});function hA(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function fA(){return null}function dA(t){return t===null}var pA=new Ne("tag:yaml.org,2002:null",{kind:"scalar",resolve:hA,construct:fA,predicate:dA,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function mA(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function gA(t){return t==="true"||t==="True"||t==="TRUE"}function yA(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var bA=new Ne("tag:yaml.org,2002:bool",{kind:"scalar",resolve:mA,construct:gA,predicate:yA,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});functio
|
|||
|
\r`;function qA(t){if(t===null)return!1;var e,r,n=0,i=t.length,a=_u;for(r=0;r<i;r++)if(e=a.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;n+=6}return n%8===0}function $A(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,a=_u,s=0,o=[];for(e=0;e<i;e++)e%4===0&&e&&(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|a.indexOf(n.charAt(e));return r=i%4*6,r===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):r===18?(o.push(s>>10&255),o.push(s>>2&255)):r===12&&o.push(s>>4&255),new Uint8Array(o)}function HA(t){var e="",r=0,n,i,a=t.length,s=_u;for(n=0;n<a;n++)n%3===0&&n&&(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]),r=(r<<8)+t[n];return i=a%3,i===0?(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]):i===2?(e+=s[r>>10&63],e+=s[r>>4&63],e+=s[r<<2&63],e+=s[64]):i===1&&(e+=s[r>>2&63],e+=s[r<<4&63],e+=s[64],e+=s[64]),e}function VA(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var WA=new Ne("tag:yaml.org,2002:binary",{kind:"scalar",resolve:qA,construct:$A,predicate:VA,represent:HA}),UA=Object.prototype.hasOwnProperty,GA=Object.prototype.toString;function jA(t){if(t===null)return!0;var e=[],r,n,i,a,s,o=t;for(r=0,n=o.length;r<n;r+=1){if(i=o[r],s=!1,GA.call(i)!=="[object Object]")return!1;for(a in i)if(UA.call(i,a))if(!s)s=!0;else return!1;if(!s)return!1;if(e.indexOf(a)===-1)e.push(a);else return!1}return!0}function YA(t){return t!==null?t:[]}var XA=new Ne("tag:yaml.org,2002:omap",{kind:"sequence",resolve:jA,construct:YA}),KA=Object.prototype.toString;function ZA(t){if(t===null)return!0;var e,r,n,i,a,s=t;for(a=new Array(s.length),e=0,r=s.length;e<r;e+=1){if(n=s[e],KA.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;a[e]=[i[0],n[i[0]]]}return!0}function QA(t){if(t===null)return[];var e,r,n,i,a,s=t;for(a=new Array(s.length),e=0,r=s.length;e<r;e+=1)n=s[e],i=Object.keys(n),a[e]=[i[0],n[i[0]]];return a}var JA=new Ne("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ZA,construct:QA}),tB=Object.prototype.hasOwnProperty;function eB(t){if(t===null)return!0;var e,r=t;for(e in r)if(tB.call(r,e)&&r[e]!==null)return!1;return!0}function rB(t){return t!==null?t:{}}var nB=new Ne("tag:yaml.org,2002:set",{kind:"mapping",resolve:eB,construct:rB}),iB=DA.extend({implicit:[NA,PA],explicit:[WA,XA,JA,nB]}),jn=Object.prototype.hasOwnProperty,J0=1,N2=2,R2=3,to=4,Su=1,aB=2,P2=3,sB=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,oB=/[\x85\u2028\u2029]/,lB=/[,\[\]\{\}]/,q2=/^(?:!|!!|![a-z\-]+!)$/i,$2=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function H2(t){return Object.prototype.toString.call(t)}function an(t){return t===10||t===13}function wi(t){return t===9||t===32}function er(t){return t===9||t===32||t===10||t===13}function oa(t){return t===44||t===91||t===93||t===123||t===125}function uB(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function cB(t){return t===120?2:t===117?4:t===85?8:0}function hB(t){return 48<=t&&t<=57?t-48:-1}function V2(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
|
|||
|
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"
":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function fB(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}for(var W2=new Array(256),U2=new Array(256),la=0;la<256;la++)W2[la]=V2(la)?1:0,U2[la]=V2(la);function dB(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||iB,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function G2(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=tA(r),new Sn(e,r)}function mt(t,e){throw G2(t,e)}function eo(t,e){t.onWarning&&t.onWarning.call(null,G2(t,e))}var j2={YAML:function(e,r,n){var i,a,s;e.version!==null&&mt(e,"duplication of %YAML directive"),n.length!==1&&mt(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&mt(e,"ill-formed argument of the YAML directive"),a=parseInt(i[1],10),s=parseInt(i[2],10),a!==1&&mt(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&eo(e,"unsupported YAML version of the document")},TAG:function(e,r,n){var i,a;n.length!==2&&mt(e,"TAG directive accepts exactly two arguments"),i=n[0],a=n[1],q2.test(i)||mt(e,"ill-formed tag handle (first argument) of the TAG directive"),jn.call(e.tagMap,i)&&mt(e,'there is a previously declared suffix for "'+i+'" tag handle'),$2.test(a)||mt(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{mt(e,"tag prefix is malformed: "+a)}e.tagMap[i]=a}};function Yn(t,e,r,n){var i,a,s,o;if(e<r){if(o=t.input.slice(e,r),n)for(i=0,a=o.length;i<a;i+=1)s=o.charCodeAt(i),s===9||32<=s&&s<=1114111||mt(t,"expected valid JSON character");else sB.test(o)&&mt(t,"the stream contains non-printable characters");t.result+=o}}function Y2(t,e,r,n){var i,a,s,o;for(Ve.isObject(r)||mt(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),s=0,o=i.length;s<o;s+=1)a=i[s],jn.call(e,a)||(e[a]=r[a],n[a]=!0)}function ua(t,e,r,n,i,a,s,o,l){var u,c;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,c=i.length;u<c;u+=1)Array.isArray(i[u])&&mt(t,"nested arrays are not supported inside keys"),typeof i=="object"&&H2(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&H2(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(u=0,c=a.length;u<c;u+=1)Y2(t,e,a[u],r);else Y2(t,e,a,r);else!t.json&&!jn.call(r,i)&&jn.call(e,i)&&(t.line=s||t.line,t.lineStart=o||t.lineStart,t.position=l||t.position,mt(t,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:a}):e[i]=a,delete r[i];return e}function Tu(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):mt(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Ce(t,e,r){for(var n=0,i=t.input.charCodeAt(t.position);i!==0;){for(;wi(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(an(i))for(Tu(t),i=t.input.charCodeAt(t.position),n++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return r!==-1&&n!==0&&t.lineIndent<r&&eo(t,"deficient indentation"),n}function ro(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||er(r)))}function Au(t,e){e===1?t.result+=" ":e>1&&(t.result+=V
|
|||
|
`,e-1))}function pB(t,e,r){var n,i,a,s,o,l,u,c,h=t.kind,f=t.result,p;if(p=t.input.charCodeAt(t.position),er(p)||oa(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=t.input.charCodeAt(t.position+1),er(i)||r&&oa(i)))return!1;for(t.kind="scalar",t.result="",a=s=t.position,o=!1;p!==0;){if(p===58){if(i=t.input.charCodeAt(t.position+1),er(i)||r&&oa(i))break}else if(p===35){if(n=t.input.charCodeAt(t.position-1),er(n))break}else{if(t.position===t.lineStart&&ro(t)||r&&oa(p))break;if(an(p))if(l=t.line,u=t.lineStart,c=t.lineIndent,Ce(t,!1,-1),t.lineIndent>=e){o=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=l,t.lineStart=u,t.lineIndent=c;break}}o&&(Yn(t,a,s,!1),Au(t,t.line-l),a=s=t.position,o=!1),wi(p)||(s=t.position+1),p=t.input.charCodeAt(++t.position)}return Yn(t,a,s,!1),t.result?!0:(t.kind=h,t.result=f,!1)}function mB(t,e){var r,n,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Yn(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,i=t.position;else return!0;else an(r)?(Yn(t,n,i,!0),Au(t,Ce(t,!1,e)),n=i=t.position):t.position===t.lineStart&&ro(t)?mt(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);mt(t,"unexpected end of the stream within a single quoted scalar")}function gB(t,e){var r,n,i,a,s,o;if(o=t.input.charCodeAt(t.position),o!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(o=t.input.charCodeAt(t.position))!==0;){if(o===34)return Yn(t,r,t.position,!0),t.position++,!0;if(o===92){if(Yn(t,r,t.position,!0),o=t.input.charCodeAt(++t.position),an(o))Ce(t,!1,e);else if(o<256&&W2[o])t.result+=U2[o],t.position++;else if((s=cB(o))>0){for(i=s,a=0;i>0;i--)o=t.input.charCodeAt(++t.position),(s=uB(o))>=0?a=(a<<4)+s:mt(t,"expected hexadecimal character");t.result+=fB(a),t.position++}else mt(t,"unknown escape sequence");r=n=t.position}else an(o)?(Yn(t,r,n,!0),Au(t,Ce(t,!1,e)),r=n=t.position):t.position===t.lineStart&&ro(t)?mt(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}mt(t,"unexpected end of the stream within a double quoted scalar")}function yB(t,e){var r=!0,n,i,a,s=t.tag,o,l=t.anchor,u,c,h,f,p,y=Object.create(null),b,A,_,M;if(M=t.input.charCodeAt(t.position),M===91)c=93,p=!1,o=[];else if(M===123)c=125,p=!0,o={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),M=t.input.charCodeAt(++t.position);M!==0;){if(Ce(t,!0,e),M=t.input.charCodeAt(t.position),M===c)return t.position++,t.tag=s,t.anchor=l,t.kind=p?"mapping":"sequence",t.result=o,!0;r?M===44&&mt(t,"expected the node content, but found ','"):mt(t,"missed comma between flow collection entries"),A=b=_=null,h=f=!1,M===63&&(u=t.input.charCodeAt(t.position+1),er(u)&&(h=f=!0,t.position++,Ce(t,!0,e))),n=t.line,i=t.lineStart,a=t.position,ca(t,e,J0,!1,!0),A=t.tag,b=t.result,Ce(t,!0,e),M=t.input.charCodeAt(t.position),(f||t.line===n)&&M===58&&(h=!0,M=t.input.charCodeAt(++t.position),Ce(t,!0,e),ca(t,e,J0,!1,!0),_=t.result),p?ua(t,o,y,A,b,_,n,i,a):h?o.push(ua(t,null,y,A,b,_,n,i,a)):o.push(b),Ce(t,!0,e),M=t.input.charCodeAt(t.position),M===44?(r=!0,M=t.input.charCodeAt(++t.position)):r=!1}mt(t,"unexpected end of the stream within a flow collection")}function bB(t,e){var r,n,i=Su,a=!1,s=!1,o=e,l=0,u=!1,c,h;if(h=t.input.charCodeAt(t.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)Su===i?i=h===43?P2:aB:mt(t,"repeat of a chomping mode identifier");else if((c=hB(h))>=0)c===0?mt(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?mt(t,"repeat of an indentation width identifier"):(o=e+c-1,s=!0);else break;if(wi(h)){do h=t.input.charCodeAt(++t.position);while(wi(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!an(h)&&h!==0)}for(;h!==0;){for(Tu(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(
|
|||
|
`,a?1+l:l):i===Su&&a&&(t.result+=`
|
|||
|
`);break}for(n?wi(h)?(u=!0,t.result+=Ve.repeat(`
|
|||
|
`,a?1+l:l)):u?(u=!1,t.result+=Ve.repeat(`
|
|||
|
`,l+1)):l===0?a&&(t.result+=" "):t.result+=Ve.repeat(`
|
|||
|
`,l):t.result+=Ve.repeat(`
|
|||
|
`,a?1+l:l),a=!0,s=!0,l=0,r=t.position;!an(h)&&h!==0;)h=t.input.charCodeAt(++t.position);Yn(t,r,t.position,!1)}return!0}function X2(t,e){var r,n=t.tag,i=t.anchor,a=[],s,o=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,mt(t,"tab characters must not be used in indentation")),!(l!==45||(s=t.input.charCodeAt(t.position+1),!er(s))));){if(o=!0,t.position++,Ce(t,!0,-1)&&t.lineIndent<=e){a.push(null),l=t.input.charCodeAt(t.position);continue}if(r=t.line,ca(t,e,R2,!1,!0),a.push(t.result),Ce(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&l!==0)mt(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return o?(t.tag=n,t.anchor=i,t.kind="sequence",t.result=a,!0):!1}function xB(t,e,r){var n,i,a,s,o,l,u=t.tag,c=t.anchor,h={},f=Object.create(null),p=null,y=null,b=null,A=!1,_=!1,M;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),M=t.input.charCodeAt(t.position);M!==0;){if(!A&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,mt(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),a=t.line,(M===63||M===58)&&er(n))M===63?(A&&(ua(t,h,f,p,y,null,s,o,l),p=y=b=null),_=!0,A=!0,i=!0):A?(A=!1,i=!0):mt(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,M=n;else{if(s=t.line,o=t.lineStart,l=t.position,!ca(t,r,N2,!1,!0))break;if(t.line===a){for(M=t.input.charCodeAt(t.position);wi(M);)M=t.input.charCodeAt(++t.position);if(M===58)M=t.input.charCodeAt(++t.position),er(M)||mt(t,"a whitespace character is expected after the key-value separator within a block mapping"),A&&(ua(t,h,f,p,y,null,s,o,l),p=y=b=null),_=!0,A=!1,i=!1,p=t.tag,y=t.result;else if(_)mt(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=u,t.anchor=c,!0}else if(_)mt(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=u,t.anchor=c,!0}if((t.line===a||t.lineIndent>e)&&(A&&(s=t.line,o=t.lineStart,l=t.position),ca(t,e,to,!0,i)&&(A?y=t.result:b=t.result),A||(ua(t,h,f,p,y,b,s,o,l),p=y=b=null),Ce(t,!0,-1),M=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&M!==0)mt(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return A&&ua(t,h,f,p,y,null,s,o,l),_&&(t.tag=u,t.anchor=c,t.kind="mapping",t.result=h),_}function vB(t){var e,r=!1,n=!1,i,a,s;if(s=t.input.charCodeAt(t.position),s!==33)return!1;if(t.tag!==null&&mt(t,"duplication of a tag property"),s=t.input.charCodeAt(++t.position),s===60?(r=!0,s=t.input.charCodeAt(++t.position)):s===33?(n=!0,i="!!",s=t.input.charCodeAt(++t.position)):i="!",e=t.position,r){do s=t.input.charCodeAt(++t.position);while(s!==0&&s!==62);t.position<t.length?(a=t.input.slice(e,t.position),s=t.input.charCodeAt(++t.position)):mt(t,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!er(s);)s===33&&(n?mt(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),q2.test(i)||mt(t,"named tag handle cannot contain such characters"),n=!0,e=t.position+1)),s=t.input.charCodeAt(++t.position);a=t.input.slice(e,t.position),lB.test(a)&&mt(t,"tag suffix cannot contain flow indicator characters")}a&&!$2.test(a)&&mt(t,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{mt(t,"tag name is malformed: "+a)}return r?t.tag=a:jn.call(t.tagMap,i)?t.tag=t.tagMap[i]+a:i==="!"?t.tag="!"+a:i==="!!"?t.tag="tag:yaml.org,2002:"+a:mt(t,'undeclared tag handle "'+i+'"'),!0}function wB(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&mt(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!er(r)&&!oa(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&mt(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function CB(t){var e,r,n;if(n=t.input.charCodeAt(t.position),n!==42)return!1;for(n=t.inp
|
|||
|
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new dB(t,e),n=t.indexOf("\0");for(n!==-1&&(r.position=n,mt(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)kB(r);return r.documents}function _B(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var n=K2(t,r);if(typeof e!="function")return n;for(var i=0,a=n.length;i<a;i+=1)e(n[i])}function SB(t,e){var r=K2(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Sn("expected a single document in the stream, but found more")}}var TB=_B,AB=SB,BB={loadAll:TB,load:AB},EB=I2,FB=BB.load;function LB(t){const e=t.match(n1);if(!e)return{text:t,metadata:{}};let r=FB(e[1],{schema:EB})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const n={};return r.displayMode&&(n.displayMode=r.displayMode.toString()),r.title&&(n.title=r.title.toString()),r.config&&(n.config=r.config),{text:t.slice(e[0].length),metadata:n}}const MB=t=>t.replace(/\r\n?/g,`
|
|||
|
`).replace(/<(\w+)([^>]*)>/g,(e,r,n)=>"<"+r+n.replace(/="([^"]*)"/g,"='$1'")+">"),DB=t=>{const{text:e,metadata:r}=LB(t),{displayMode:n,title:i,config:a={}}=r;return n&&(a.gantt||(a.gantt={}),a.gantt.displayMode=n),{title:i,config:a,text:e}},IB=t=>{const e=Ke.detectInit(t)??{},r=Ke.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:n})=>{}):(r==null?void 0:r.type)==="wrap"&&(e.wrap=!0),{text:oy(t),directive:e}};function Z2(t){const e=MB(t),r=DB(e),n=IB(r.text),i=P1(r.config,n.directive);return t=$T(n.text),{code:t,title:r.title,config:i}}const zB=5e4,OB="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",NB="sandbox",RB="loose",PB="http://www.w3.org/2000/svg",qB="http://www.w3.org/1999/xlink",$B="http://www.w3.org/1999/xhtml",HB="100%",VB="100%",WB="border:0;margin:0;",UB="margin:0",GB="allow-top-navigation-by-user-activation allow-popups",jB='The "iframe" tag is not supported by your browser.',YB=["foreignobject"],XB=["dominant-baseline"];function Q2(t){const e=Z2(t);return k0(),Gy(e.config??{}),e}async function KB(t,e){vu(),t=Q2(t).code;try{await Bu(t)}catch(r){if(e!=null&&e.suppressErrors)return!1;throw r}return!0}const J2=(t,e,r=[])=>`
|
|||
|
.${t} ${e} { ${r.join(" !important; ")} !important; }`,ZB=(t,e={})=>{var n;let r="";if(t.themeCSS!==void 0&&(r+=`
|
|||
|
${t.themeCSS}`),t.fontFamily!==void 0&&(r+=`
|
|||
|
:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(r+=`
|
|||
|
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!Za(e)){const o=t.htmlLabels||((n=t.flowchart)==null?void 0:n.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const l in e){const u=e[l];Za(u.styles)||o.forEach(c=>{r+=J2(u.id,c,u.styles)}),Za(u.textStyles)||(r+=J2(u.id,"tspan",u.textStyles))}}return r},QB=(t,e,r,n)=>{const i=ZB(t,r),a=tb(e,i,t.themeVariables);return Sl(qy(`${n}{${a}}`),Hy)},JB=(t="",e,r)=>{let n=t;return!r&&!e&&(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=Va(n),n=n.replace(/<br>/g,"<br/>"),n},tE=(t="",e)=>{var i,a;const r=(a=(i=e==null?void 0:e.viewBox)==null?void 0:i.baseVal)!=null&&a.height?e.viewBox.baseVal.height+"px":VB,n=btoa('<body style="'+UB+'">'+t+"</body>");return`<iframe style="width:${HB};height:${r};${WB}" src="data:text/html;base64,${n}" sandbox="${GB}">
|
|||
|
${jB}
|
|||
|
</iframe>`},tp=(t,e,r,n,i)=>{const a=t.append("div");a.attr("id",r),n&&a.attr("style",n);const s=a.append("svg").attr("id",e).attr("width","100%").attr("xmlns",PB);return i&&s.attr("xmlns:xlink",i),s.append("g"),t};function ep(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const eE=(t,e,r,n)=>{var i,a,s;(i=t.getElementById(e))==null||i.remove(),(a=t.getElementById(r))==null||a.remove(),(s=t.getElementById(n))==null||s.remove()},rE=async function(t,e,r){var ft,X,$,U,et,K;vu();const n=Q2(e);e=n.code;const i=tn();E.debug(i),e.length>((i==null?void 0:i.maxTextSize)??zB)&&(e=OB);const a="#"+t,s="i"+t,o="#"+s,l="d"+t,u="#"+l;let c=Dt("body");const h=i.securityLevel===NB,f=i.securityLevel===RB,p=i.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),h){const W=ep(Dt(r),s);c=Dt(W.nodes()[0].contentDocument.body),c.node().style.margin=0}else c=Dt(r);tp(c,t,l,`font-family: ${p}`,qB)}else{if(eE(document,t,l,s),h){const W=ep(Dt("body"),s);c=Dt(W.nodes()[0].contentDocument.body),c.node().style.margin=0}else c=Dt("body");tp(c,t,l)}let y,b;try{y=await Bu(e,{title:n.title})}catch(W){y=new E2("error"),b=W}const A=c.select(u).node(),_=y.type,M=A.firstChild,I=M.firstChild,V=(X=(ft=y.renderer).getClasses)==null?void 0:X.call(ft,e,y),N=QB(i,_,V,a),L=document.createElement("style");L.innerHTML=N,M.insertBefore(L,I);try{await y.renderer.draw(e,t,Y1,y)}catch(W){throw OT.draw(e,t,Y1),W}const q=c.select(`${u} svg`),G=(U=($=y.db).getAccTitle)==null?void 0:U.call($),Y=(K=(et=y.db).getAccDescription)==null?void 0:K.call(et);iE(_,q,G,Y),c.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",$B);let J=c.select(u).node().innerHTML;if(E.debug("config.arrowMarkerAbsolute",i.arrowMarkerAbsolute),J=JB(J,h,De(i.arrowMarkerAbsolute)),h){const W=c.select(u+" svg").node();J=tE(J,W)}else f||(J=Ni.sanitize(J,{ADD_TAGS:YB,ADD_ATTR:XB}));if(NT(),b)throw b;const P=Dt(h?o:u).node();return P&&"remove"in P&&P.remove(),{svg:J,bindFunctions:y.db.bindFunctions}};function nE(t={}){var r;t!=null&&t.fontFamily&&!((r=t.themeVariables)!=null&&r.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),Wy(t),t!=null&&t.theme&&t.theme in gn?t.themeVariables=gn[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=gn.default.getThemeVariables(t.themeVariables));const e=typeof t=="object"?Vy(t):K1();Fo(e.logLevel),vu()}const Bu=(t,e={})=>{const{code:r}=Z2(t);return IT(r,e)};function iE(t,e,r,n){PT(e,t),qT(e,r,n,e.attr("id"))}const Ci=Object.freeze({render:rE,parse:KB,getDiagramFromText:Bu,initialize:nE,getConfig:tn,setConfig:Z1,getSiteConfig:K1,updateSiteConfig:Uy,reset:()=>{k0()},globalReset:()=>{k0(Xi)},defaultConfig:Xi});Fo(tn().logLevel),k0(tn());const aE=async()=>{E.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(qi).map(async([r,{detector:n,loader:i}])=>{if(i)try{Ml(r)}catch{try{const{diagram:s,id:o}=await i();Ll(o,s,n)}catch(s){throw E.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete qi[r],s}}}))).filter(r=>r.status==="rejected");if(e.length>0){E.error(`Failed to load ${e.length} external diagrams`);for(const r of e)E.error(r);throw new Error(`Failed to load ${e.length} external diagrams`)}},sE=(t,e,r)=>{E.warn(t),R1(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},rp=async function(t={querySelector:".mermaid"}){try{await oE(t)}catch(e){if(R1(e)&&E.error(e.str),pr.parseError&&pr.parseError(e),!t.suppressErrors)throw E.error("Use the suppressErrors option to suppress these errors"),e}},oE=async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){const n=Ci.getConfig();E.debug(`${t?"":"No "}Callback function found`);let i;if(r)i=r;else if(e)i=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");E.debug(`Found ${i.length} diagrams`),(n==null?void 0:n.startOnLoad)!==void 0&&(E.debug("Start On Load: "+(n==nul
|
|||
|
* Wait for document loaded before starting the execution
|
|||
|
*/window.addEventListener("load",ip,!1)}const cE=function(t){pr.parseError=t},no=[];let Eu=!1;const ap=async()=>{if(!Eu){for(Eu=!0;no.length>0;){const t=no.shift();if(t)try{await t()}catch(e){E.error("Error executing queue",e)}}Eu=!1}},hE=async(t,e)=>new Promise((r,n)=>{const i=()=>new Promise((a,s)=>{Ci.parse(t,e).then(o=>{a(o),r(o)},o=>{var l;E.error("Error parsing",o),(l=pr.parseError)==null||l.call(pr,o),s(o),n(o)})});no.push(i),ap().catch(n)}),sp=(t,e,r)=>new Promise((n,i)=>{const a=()=>new Promise((s,o)=>{Ci.render(t,e,r).then(l=>{s(l),n(l)},l=>{var u;E.error("Error parsing",l),(u=pr.parseError)==null||u.call(pr,l),o(l),i(l)})});no.push(a),ap().catch(i)}),pr={startOnLoad:!0,mermaidAPI:Ci,parse:hE,render:sp,init:lE,run:rp,registerExternalDiagrams:uE,initialize:np,parseError:void 0,contentLoaded:ip,setParseErrorHandler:cE,detectType:Js};class mr{constructor(e,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=r,this.end=n}static range(e,r){return r?!e||!e.loc||!r.loc||e.loc.lexer!==r.loc.lexer?null:new mr(e.loc.lexer,e.loc.start,r.loc.end):e&&e.loc}}class sn{constructor(e,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=r}range(e,r){return new sn(r,mr.range(this,e))}}class tt{constructor(e,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+e,i,a,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var l=o.slice(i,a).replace(/[^]/g,"$&̲"),u;i>15?u="…"+o.slice(i-15,i):u=o.slice(0,i);var c;a+15<o.length?c=o.slice(a,a+15)+"…":c=o.slice(a),n+=u+l+c}var h=new Error(n);return h.name="ParseError",h.__proto__=tt.prototype,h.position=i,i!=null&&a!=null&&(h.length=a-i),h.rawMessage=e,h}}tt.prototype.__proto__=Error.prototype;var fE=function(e,r){return e.indexOf(r)!==-1},dE=function(e,r){return e===void 0?r:e},pE=/([A-Z])/g,mE=function(e){return e.replace(pE,"-$1").toLowerCase()},gE={"&":"&",">":">","<":"<",'"':""","'":"'"},yE=/[&><"']/g;function bE(t){return String(t).replace(yE,e=>gE[e])}var op=function t(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?t(e.body[0]):e:e.type==="font"?t(e.body):e},xE=function(e){var r=op(e);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},vE=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},wE=function(e){var r=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return r!=null?r[1]:"_relative"},Ct={contains:fE,deflt:dE,escape:bE,hyphenate:mE,getBaseElem:op,isCharacterBox:xE,protocolFromUrl:wE},io={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:t=>"#"+t},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and
|
|||
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|||
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|||
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|||
|
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|||
|
c69,-144,104.5,-217.7,106.5,-221
|
|||
|
l`+e/2.075+" -"+e+`
|
|||
|
c5.3,-9.3,12,-14,20,-14
|
|||
|
H400000v`+(40+e)+`H845.2724
|
|||
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|||
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|||
|
M`+(834+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},LE=function(e,r){return"M263,"+(601+e+r)+`c0.7,0,18,39.7,52,119
|
|||
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|||
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|||
|
l`+e/2.084+" -"+e+`
|
|||
|
c4.7,-7.3,11,-11,19,-11
|
|||
|
H40000v`+(40+e)+`H1012.3
|
|||
|
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|||
|
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|||
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|||
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|||
|
M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},ME=function(e,r){return"M983 "+(10+e+r)+`
|
|||
|
l`+e/3.13+" -"+e+`
|
|||
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
|
|||
|
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|||
|
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|||
|
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|||
|
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|||
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|||
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|||
|
M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},DE=function(e,r){return"M424,"+(2398+e+r)+`
|
|||
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|||
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|||
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|||
|
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|||
|
l`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000
|
|||
|
v`+(40+e)+`H1014.6
|
|||
|
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|||
|
c-2,6,-10,9,-24,9
|
|||
|
c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+r+`
|
|||
|
h400000v`+(40+e)+"h-400000z"},IE=function(e,r){return"M473,"+(2713+e+r)+`
|
|||
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+`
|
|||
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
|
|||
|
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|||
|
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|||
|
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|||
|
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|||
|
606zM`+(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},zE=function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},OE=function(e,r,n){var i=n-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+`
|
|||
|
H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|||
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|||
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|||
|
219 661 l218 661zM702 `+r+"H400000v"+(40+e)+"H742z"},NE=function(e,r,n){r=1e3*r;var i="";switch(e){case"sqrtMain":i=FE(r,da);break;case"sqrtSize1":i=LE(r,da);break;case"sqrtSize2":i=ME(r,da);break;case"sqrtSize3":i=DE(r,da);break;case"sqrtSize4":i=IE(r,da);break;case"sqrtTall":i=OE(r,da,n)}return i},RE=function(e,r){switch(e){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},up={doubleleftarrow:`M262 157
|
|||
|
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|||
|
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|||
|
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|||
|
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|||
|
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|||
|
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|||
|
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|||
|
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|||
|
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|||
|
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|||
|
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|||
|
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|||
|
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|||
|
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|||
|
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|||
|
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|||
|
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|||
|
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|||
|
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|||
|
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|||
|
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|||
|
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|||
|
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|||
|
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|||
|
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|||
|
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|||
|
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|||
|
435 0h399565z`,leftgroupunder:`M400000 262
|
|||
|
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|||
|
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|||
|
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|||
|
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|||
|
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|||
|
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|||
|
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|||
|
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|||
|
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|||
|
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|||
|
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|||
|
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|||
|
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|||
|
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|||
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|||
|
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|||
|
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|||
|
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|||
|
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|||
|
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|||
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|||
|
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|||
|
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|||
|
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|||
|
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|||
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|||
|
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|||
|
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|||
|
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|||
|
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|||
|
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|||
|
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|||
|
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|||
|
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|||
|
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|||
|
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|||
|
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|||
|
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|||
|
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|||
|
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|||
|
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|||
|
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|||
|
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|||
|
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|||
|
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|||
|
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|||
|
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|||
|
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|||
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|||
|
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|||
|
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|||
|
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|||
|
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|||
|
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|||
|
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|||
|
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|||
|
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|||
|
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|||
|
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|||
|
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|||
|
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|||
|
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|||
|
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|||
|
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|||
|
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|||
|
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|||
|
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|||
|
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|||
|
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|||
|
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|||
|
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|||
|
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|||
|
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|||
|
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|||
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|||
|
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|||
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|||
|
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|||
|
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|||
|
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|||
|
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|||
|
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|||
|
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|||
|
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|||
|
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|||
|
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|||
|
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|||
|
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|||
|
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|||
|
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|||
|
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|||
|
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|||
|
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|||
|
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|||
|
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|||
|
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|||
|
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|||
|
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|||
|
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|||
|
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|||
|
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|||
|
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|||
|
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|||
|
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|||
|
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|||
|
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|||
|
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|||
|
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|||
|
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|||
|
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|||
|
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|||
|
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|||
|
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|||
|
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|||
|
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|||
|
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|||
|
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|||
|
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|||
|
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|||
|
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|||
|
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|||
|
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|||
|
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|||
|
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|||
|
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|||
|
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|||
|
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|||
|
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|||
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|||
|
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|||
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|||
|
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|||
|
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|||
|
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|||
|
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|||
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|||
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|||
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|||
|
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|||
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|||
|
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|||
|
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|||
|
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|||
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|||
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|||
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|||
|
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},PE=function(e,r){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84
|
|||
|
H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
|
|||
|
M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
|
|||
|
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|||
|
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
|
|||
|
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|||
|
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
|
|||
|
M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
|
|||
|
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|||
|
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
|
|||
|
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
|
|||
|
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
|
|||
|
M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
|
|||
|
M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|||
|
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|||
|
-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|||
|
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|||
|
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|||
|
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|||
|
l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|||
|
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|||
|
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|||
|
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
|
|||
|
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|||
|
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
|||
|
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|||
|
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|||
|
l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|||
|
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class ls{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return Ct.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){for(var e="",r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e}toText(){var e=r=>r.toText();return this.children.map(e).join("")}}var ln={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.755
|
|||
|
`+q+" children.");for(var O=0;O<q;O++){var P=new Zn(I[O]),ft=new Bn([P],{width:"400em",height:nt(L),viewBox:"0 0 "+o+" "+N,preserveAspectRatio:Y[O]+" slice"}),X=z.makeSvgSpan([G[O]],[ft],r);if(q===1)return{span:X,minWidth:V,height:L};X.style.height=nt(L),_.push(X)}return{span:z.makeSpan(["stretchy"],_,r),minWidth:V,height:L}}}var{span:i,minWidth:a,height:s}=n();return i.height=s,i.style.height=nt(s),a>0&&(i.style.minWidth=nt(a)),i},kF=function(e,r,n,i,a){var s,o=e.height+e.depth+n+i;if(/fbox|color|angl/.test(r)){if(s=z.makeSpan(["stretchy",r],[],a),r==="fbox"){var l=a.color&&a.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new Nu({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new Nu({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new Bn(u,{width:"100%",height:nt(o)});s=z.makeSvgSpan([],[c],a)}return s.height=o,s.style.height=nt(o),s},Mn={encloseSpan:kF,mathMLnode:xF,svgSpan:CF};function Bt(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function Yu(t){var e=vo(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function vo(t){return t&&(t.type==="atom"||YE.hasOwnProperty(t.type))?t:null}var Xu=(t,e)=>{var r,n,i;t&&t.type==="supsub"?(n=Bt(t.base,"accent"),r=n.base,t.base=r,i=GE($t(t,e)),t.base=n):(n=Bt(t,"accent"),r=n.base);var a=$t(r,e.havingCrampedStyle()),s=n.isShifty&&Ct.isCharacterBox(r),o=0;if(s){var l=Ct.getBaseElem(r),u=$t(l,e.havingCrampedStyle());o=yp(u).skew}var c=n.label==="\\c",h=c?a.height+a.depth:Math.min(a.height,e.fontMetrics().xHeight),f;if(n.isStretchy)f=Mn.svgSpan(n,e),f=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+nt(2*o)+")",marginLeft:nt(2*o)}:void 0}]},e);else{var p,y;n.label==="\\vec"?(p=z.staticSvg("vec",e),y=z.svgData.vec[1]):(p=z.makeOrd({mode:n.mode,text:n.label},e,"textord"),p=yp(p),p.italic=0,y=p.width,c&&(h+=p.depth)),f=z.makeSpan(["accent-body"],[p]);var b=n.label==="\\textcircled";b&&(f.classes.push("accent-full"),h=a.height);var A=o;b||(A-=y/2),f.style.left=nt(A),n.label==="\\textcircled"&&(f.style.top=".2em"),f=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-h},{type:"elem",elem:f}]},e)}var _=z.makeSpan(["mord","accent"],[f],e);return i?(i.children[0]=_,i.height=Math.max(_.height,i.height),i.classes[0]="mord",i):_},zp=(t,e)=>{var r=t.isStretchy?Mn.mathMLnode(t.label):new Z.MathNode("mo",[Ar(t.label,t.mode)]),n=new Z.MathNode("mover",[Qt(t.base,e),r]);return n.setAttribute("accent","true"),n},_F=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));ot({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(t,e)=>{var r=bo(e[0]),n=!_F.test(t.funcName),i=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:Xu,mathmlBuilder:zp}),ot({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(t,e)=>{var r=e[0],n=t.parser.mode;return n==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Xu,mathmlBuilder:zp}),ot({type:"accentUnder",names:["\\underleftarrow","\\underrightarr
|
|||
|
]`,ZF="\\\\[a-zA-Z@]+",QF="\\\\[^\uD800-\uDFFF]",JF="("+ZF+")"+Sm+"*",tL=`\\\\(
|
|||
|
|[ \r ]+
|
|||
|
?)[ \r ]*`,dc="[̀-ͯ]",eL=new RegExp(dc+"+$"),rL="("+Sm+"+)|"+(tL+"|")+"([!-\\[\\]-‧-豈-]"+(dc+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(dc+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+JF)+("|"+QF+")");class Tm{constructor(e,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=r,this.tokenRegex=new RegExp(rL,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){var e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new sn("EOF",new mr(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new tt("Unexpected character: '"+e[r]+"'",new sn(e[r],new mr(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=e.indexOf(`
|
|||
|
`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new sn(i,new mr(this,r,this.tokenRegex.lastIndex))}}class nL{constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new tt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r in e)e.hasOwnProperty(r)&&(e[r]==null?delete this.current[r]:this.current[r]=e[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(e)&&(a[e]=this.current[e])}r==null?delete this.current[e]:this.current[e]=r}}var iL=em;x("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}}),x("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}}),x("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}}),x("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}}),x("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}}),x("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),x("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var Am={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};x("\\char",function(t){var e=t.popToken(),r,n="";if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new tt("\\char` missing argument");n=e.text.charCodeAt(0)}else r=10;if(r){if(n=Am[e.text],n==null||n>=r)throw new tt("Invalid base-"+r+" digit "+e.text);for(var i;(i=Am[t.future().text])!=null&&i<r;)n*=r,n+=i,t.popToken()}return"\\@char{"+n+"}"});var pc=(t,e,r)=>{var n=t.consumeArg().tokens;if(n.length!==1)throw new tt("\\newcommand's first argument must be a macro name");var i=n[0].text,a=t.isDefined(i);if(a&&!e)throw new tt("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!r)throw new tt("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(n=t.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var o="",l=t.expandNextToken();l.text!=="]"&&l.text!=="EOF";)o+=l.text,l=t.expandNextToken();if(!o.match(/^\s*[0-9]+\s*$/))throw new tt("Invalid number of arguments: "+o);s=parseInt(o),n=t.consumeArg().tokens}return t.macros.set(i,{tokens:n,numArgs:s}),""};x("\\newcommand",t=>pc(t,!1,!0)),x("\\renewcommand",t=>pc(t,!0,!1)),x("\\providecommand",t=>pc(t,!0,!0)),x("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""}),x("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""}),x("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),ei[r],re.math[r],re.text[r]),""}),x("\\bgroup","{"),x("\\egroup","}"),x("~","\\nobreakspace"),x("\\lq","`"),x("\\rq","'"),x("\\aa","\\r a"),x("\\AA","\\r A"),x("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),x("\\copyright","\\TextOrMath{\\textcopyright}{
|
|||
|
please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:i}}Dm.hasOwnProperty(r[0])&&!re[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',e),r=Dm[r[0]]+r.slice(1));var a=eL.exec(r);a&&(r=r.substring(0,a.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var s;if(re[this.mode][r]){this.settings.strict&&this.mode==="math"&&$u.indexOf(r)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',e);var o=re[this.mode][r].group,l=mr.range(e),u;if(jE.hasOwnProperty(o)){var c=o;u={type:"atom",mode:this.mode,family:c,loc:l,text:r}}else u={type:o,mode:this.mode,loc:l,text:r};s=u}else if(r.charCodeAt(0)>=128)this.settings.strict&&(lp(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),e)),s={type:"textord",mode:"text",loc:mr.range(e),text:r};else return null;if(this.consume(),a)for(var h=0;h<a[0].length;h++){var f=a[0][h];if(!gc[f])throw new tt("Unknown accent ' "+f+"'",e);var p=gc[f][this.mode]||gc[f].text;if(!p)throw new tt("Accent "+f+" unsupported in "+this.mode+" mode",e);s={type:"accent",mode:this.mode,loc:mr.range(e),label:p,isStretchy:!1,isShifty:!0,base:s}}return s}}ms.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var yc=function(e,r){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new ms(e,r);delete n.gullet.macros.current["\\df@tag"];var i=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new tt("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new sn("\\df@tag")])}]}return i},Im=function(e,r,n){r.textContent="";var i=bc(e,n).toNode();r.appendChild(i)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Im=function(){throw new tt("KaTeX doesn't work in quirks mode.")});var sL=function(e,r){var n=bc(e,r).toMarkup();return n},oL=function(e,r){var n=new Fu(r);return yc(e,n)},zm=function(e,r,n){if(n.throwOnError||!(e instanceof tt))throw e;var i=z.makeSpan(["katex-error"],[new Sr(r)]);return i.setAttribute("title",e.toString()),i.setAttribute("style","color:"+n.errorColor),i},bc=function(e,r){var n=new Fu(r);try{var i=yc(e,n);return gF(i,e,n)}catch(a){return zm(a,e,n)}},lL=function(e,r){var n=new Fu(r);try{var i=yc(e,n);return yF(i,e,n)}catch(a){return zm(a,e,n)}},uL={version:"0.16.9",render:Im,renderToString:sL,ParseError:tt,SETTINGS_SCHEMA:io,__parse:oL,__renderToDomTree:bc,__renderToHTMLTree:lL,__setFontMetrics:qE,__defineSymbol:d,__defineFunction:ot,__defineMacro:x,__domTree:{Span:us,Anchor:Ou,SymbolNode:Sr,SvgNode:Bn,PathNode:Zn,LineNode:Nu}};const cL=Object.freeze(Object.defineProperty({__proto__:null,default:uL},Symbol.toStringTag,{value:"Module"}));return pr});
|