GET https://recette.arinao.fr/

Workflow

'+E+"");let It=T?T.createHTML(E):E;if(Mi===Mr)try{Z=new p().parseFromString(It,oo)}catch{}if(!Z||!Z.documentElement){Z=D.createDocument(Mi,"template",null);try{Z.documentElement.innerHTML=Xn?v:It}catch{}}let pe=Z.body||Z.documentElement;return E&&rt&&pe.insertBefore(r.createTextNode(rt),pe.childNodes[0]||null),Mi===Mr?P.call(Z,Et?"html":"body")[0]:Et?Z.documentElement:pe},"_initDocument"),Ot=n(function(E){return B.call(E.ownerDocument||E,E,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},"_createNodeIterator"),Lt=n(function(E){return E instanceof f&&(typeof E.nodeName!="string"||typeof E.textContent!="string"||typeof E.removeChild!="function"||!(E.attributes instanceof u)||typeof E.removeAttribute!="function"||typeof E.setAttribute!="function"||typeof E.namespaceURI!="string"||typeof E.insertBefore!="function"||typeof E.hasChildNodes!="function")},"_isClobbered"),Li=n(function(E){return typeof l=="function"&&E instanceof l},"_isNode");function Dt(nt,E,Z){Nc(nt,rt=>{rt.call(e,E,Z,Bi)})}n(Dt,"_executeHooks");let fa=n(function(E){let Z=null;if(Dt(N.beforeSanitizeElements,E,null),Lt(E))return Kt(E),!0;let rt=be(E.nodeName);if(Dt(N.uponSanitizeElement,E,{tagName:rt,allowedTags:lt}),Qt&&E.hasChildNodes()&&!Li(E.firstElementChild)&&Ze(/<[/\w!]/g,E.innerHTML)&&Ze(/<[/\w!]/g,E.textContent)||E.nodeType===Ta.progressingInstruction||Qt&&E.nodeType===Ta.comment&&Ze(/<[/\w]/g,E.data))return Kt(E),!0;if(!lt[rt]||Yt[rt]){if(!Yt[rt]&&Br(rt)&&(wt.tagNameCheck instanceof RegExp&&Ze(wt.tagNameCheck,rt)||wt.tagNameCheck instanceof Function&&wt.tagNameCheck(rt)))return!1;if(io&&!Ai[rt]){let It=k(E)||E.parentNode,pe=C(E)||E.childNodes;if(pe&&It){let de=pe.length;for(let se=de-1;se>=0;--se){let yr=x(pe[se],!0);yr.__removalCount=(E.__removalCount||0)+1,It.insertBefore(yr,b(E))}}}return Kt(E),!0}return E instanceof c&&!Nt(E)||(rt==="noscript"||rt==="noembed"||rt==="noframes")&&Ze(/<\/no(script|embed|frames)/i,E.innerHTML)?(Kt(E),!0):(X&&E.nodeType===Ta.text&&(Z=E.textContent,Nc([O,A,M],It=>{Z=Sa(Z,It," ")}),E.textContent!==Z&&(_a(e.removed,{element:E.cloneNode()}),E.textContent=Z)),Dt(N.afterSanitizeElements,E,null),!1)},"_sanitizeElements"),Vr=n(function(E,Z,rt){if(Ti&&(Z==="id"||Z==="name")&&(rt in r||rt in ha))return!1;if(!(et&&!Ht[Z]&&Ze(z,Z))){if(!(qt&&Ze(F,Z))){if(!ct[Z]||Ht[Z]){if(!(Br(E)&&(wt.tagNameCheck instanceof RegExp&&Ze(wt.tagNameCheck,E)||wt.tagNameCheck instanceof Function&&wt.tagNameCheck(E))&&(wt.attributeNameCheck instanceof RegExp&&Ze(wt.attributeNameCheck,Z)||wt.attributeNameCheck instanceof Function&&wt.attributeNameCheck(Z))||Z==="is"&&wt.allowCustomizedBuiltInElements&&(wt.tagNameCheck instanceof RegExp&&Ze(wt.tagNameCheck,rt)||wt.tagNameCheck instanceof Function&&wt.tagNameCheck(rt))))return!1}else if(!Yn[Z]){if(!Ze(Ct,Sa(rt,q,""))){if(!((Z==="src"||Z==="xlink:href"||Z==="href")&&E!=="script"&&c5(rt,"data:")===0&&aa[E])){if(!(xt&&!Ze(V,Sa(rt,q,"")))){if(rt)return!1}}}}}}return!0},"_isValidAttribute"),Br=n(function(E){return E!=="annotation-xml"&&Ny(E,Q)},"_isBasicCustomElement"),Lr=n(function(E){Dt(N.beforeSanitizeAttributes,E,null);let{attributes:Z}=E;if(!Z||Lt(E))return;let rt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ct,forceKeepAttr:void 0},It=Z.length;for(;It--;){let pe=Z[It],{name:de,namespaceURI:se,value:yr}=pe,an=be(de),ln=yr,ae=de==="value"?ln:h5(ln);if(rt.attrName=an,rt.attrValue=ae,rt.keepAttr=!0,rt.forceKeepAttr=void 0,Dt(N.uponSanitizeAttribute,E,rt),ae=rt.attrValue,na&&(an==="id"||an==="name")&&(fe(de,E),ae=dc+ae),Qt&&Ze(/((--!?|])>)|<\/(style|title)/i,ae)){fe(de,E);continue}if(rt.forceKeepAttr)continue;if(!rt.keepAttr){fe(de,E);continue}if(!kt&&Ze(/\/>/i,ae)){fe(de,E);continue}X&&Nc([O,A,M],bt=>{ae=Sa(ae,bt," ")});let mt=be(E.nodeName);if(!Vr(mt,an,ae)){fe(de,E);continue}if(T&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!se)switch(d.getAttributeType(mt,an)){case"TrustedHTML":{ae=T.createHTML(ae);break}case"TrustedScriptURL":{ae=T.createScriptURL(ae);break}}if(ae!==ln)try{se?E.setAttributeNS(se,de,ae):E.setAttribute(de,ae),Lt(E)?Kt(E):Oy(e.removed)}catch{fe(de,E)}}Dt(N.afterSanitizeAttributes,E,null)},"_sanitizeAttributes"),Ur=n(function nt(E){let Z=null,rt=Ot(E);for(Dt(N.beforeSanitizeShadowDOM,E,null);Z=rt.nextNode();)Dt(N.uponSanitizeShadowNode,Z,null),fa(Z),Lr(Z),Z.content instanceof s&&nt(Z.content);Dt(N.afterSanitizeShadowDOM,E,null)},"_sanitizeShadowDOM");return e.sanitize=function(nt){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Z=null,rt=null,It=null,pe=null;if(Xn=!nt,Xn&&(nt=""),typeof nt!="string"&&!Li(nt))if(typeof nt.toString=="function"){if(nt=nt.toString(),typeof nt!="string")throw ka("dirty is not a string, aborting")}else throw ka("toString is not a function");if(!e.isSupported)return nt;if(ce||Zn(E),e.removed=[],typeof nt=="string"&&(si=!1),si){if(nt.nodeName){let yr=be(nt.nodeName);if(!lt[yr]||Yt[yr])throw ka("root node is forbidden and cannot be sanitized in-place")}}else if(nt instanceof l)Z=Ft(""),rt=Z.ownerDocument.importNode(nt,!0),rt.nodeType===Ta.element&&rt.nodeName==="BODY"||rt.nodeName==="HTML"?Z=rt:Z.appendChild(rt);else{if(!Rt&&!X&&!Et&&nt.indexOf("<")===-1)return T&&en?T.createHTML(nt):nt;if(Z=Ft(nt),!Z)return Rt?null:en?v:""}Z&&ne&&Kt(Z.firstChild);let de=Ot(si?nt:Z);for(;It=de.nextNode();)fa(It),Lr(It),It.content instanceof s&&Ur(It.content);if(si)return nt;if(Rt){if(ye)for(pe=R.call(Z.ownerDocument);Z.firstChild;)pe.appendChild(Z.firstChild);else pe=Z;return(ct.shadowroot||ct.shadowrootmode)&&(pe=U.call(i,pe,!0)),pe}let se=Et?Z.outerHTML:Z.innerHTML;return Et&<["!doctype"]&&Z.ownerDocument&&Z.ownerDocument.doctype&&Z.ownerDocument.doctype.name&&Ze(qy,Z.ownerDocument.doctype.name)&&(se=" `+se),X&&Nc([O,A,M],yr=>{se=Sa(se,yr," ")}),T&&en?T.createHTML(se):se},e.setConfig=function(){let nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Zn(nt),ce=!0},e.clearConfig=function(){Bi=null,ce=!1},e.isValidAttribute=function(nt,E,Z){Bi||Zn({});let rt=be(nt),It=be(E);return Vr(rt,It,Z)},e.addHook=function(nt,E){typeof E=="function"&&_a(N[nt],E)},e.removeHook=function(nt,E){if(E!==void 0){let Z=a5(N[nt],E);return Z===-1?void 0:l5(N[nt],Z,1)[0]}return Oy(N[nt])},e.removeHooks=function(nt){N[nt]=[]},e.removeAllHooks=function(){N=jy()},e}var Gy,Fy,o5,n5,s5,Qe,Nr,Wy,Mp,Bp,Nc,a5,Oy,_a,l5,Rc,kp,Ny,Sa,c5,h5,Qr,Ze,ka,Iy,vp,Tp,p5,Ep,d5,Ry,Py,Ap,$y,Ic,m5,g5,x5,y5,b5,Hy,C5,w5,qy,_5,zy,Ta,S5,k5,jy,ho,Lp=m(()=>{"use strict";({entries:Gy,setPrototypeOf:Fy,isFrozen:o5,getPrototypeOf:n5,getOwnPropertyDescriptor:s5}=Object),{freeze:Qe,seal:Nr,create:Wy}=Object,{apply:Mp,construct:Bp}=typeof Reflect<"u"&&Reflect;Qe||(Qe=n(function(e){return e},"freeze"));Nr||(Nr=n(function(e){return e},"seal"));Mp||(Mp=n(function(e,r,i){return e.apply(r,i)},"apply"));Bp||(Bp=n(function(e,r){return new e(...r)},"construct"));Nc=Je(Array.prototype.forEach),a5=Je(Array.prototype.lastIndexOf),Oy=Je(Array.prototype.pop),_a=Je(Array.prototype.push),l5=Je(Array.prototype.splice),Rc=Je(String.prototype.toLowerCase),kp=Je(String.prototype.toString),Ny=Je(String.prototype.match),Sa=Je(String.prototype.replace),c5=Je(String.prototype.indexOf),h5=Je(String.prototype.trim),Qr=Je(Object.prototype.hasOwnProperty),Ze=Je(RegExp.prototype.test),ka=u5(TypeError);n(Je,"unapply");n(u5,"unconstruct");n(Bt,"addToSet");n(f5,"cleanArray");n(Ii,"clone");n(va,"lookupGetter");Iy=Qe(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),vp=Qe(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Tp=Qe(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),p5=Qe(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ep=Qe(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),d5=Qe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ry=Qe(["#text"]),Py=Qe(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Ap=Qe(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$y=Qe(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ic=Qe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),m5=Nr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),g5=Nr(/<%[\w\W]*|[\w\W]*%>/gm),x5=Nr(/\$\{[\w\W]*/gm),y5=Nr(/^data-[\-\w.\u00B7-\uFFFF]+$/),b5=Nr(/^aria-[\-\w]+$/),Hy=Nr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),C5=Nr(/^(?:\w+script|data):/i),w5=Nr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),qy=Nr(/^html$/i),_5=Nr(/^[a-z][.\w]*(-[.\w]+)+$/i),zy=Object.freeze({__proto__:null,ARIA_ATTR:b5,ATTR_WHITESPACE:w5,CUSTOM_ELEMENT:_5,DATA_ATTR:y5,DOCTYPE_NAME:qy,ERB_EXPR:g5,IS_ALLOWED_URI:Hy,IS_SCRIPT_OR_DATA:C5,MUSTACHE_EXPR:m5,TMPLIT_EXPR:x5}),Ta={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},S5=n(function(){return typeof window>"u"?null:window},"getGlobal"),k5=n(function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let i=null,o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(i=r.getAttribute(o));let s="dompurify"+(i?"#"+i:"");try{return e.createPolicy(s,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},"_createTrustedTypesPolicy"),jy=n(function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},"_createHooksMap");n(Vy,"createDOMPurify");ho=Vy()});function E5(){let t="data-temp-href-target";ho.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),ho.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"))})}var Pc,v5,T5,Yy,Uy,Oe,A5,M5,B5,L5,Xy,D5,Vt,F5,O5,Op,Dp,N5,I5,R5,Fp,uo,P5,$c,Ir,Ne=m(()=>{"use strict";Lp();Pc=//gi,v5=n(t=>t?Xy(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),T5=(()=>{let t=!1;return()=>{t||(E5(),t=!0)}})();n(E5,"setupDompurifyHooks");Yy=n(t=>(T5(),ho.sanitize(t)),"removeScript"),Uy=n((t,e)=>{if(e.flowchart?.htmlLabels!==!1){let r=e.securityLevel;r==="antiscript"||r==="strict"?t=Yy(t):r!=="loose"&&(t=Xy(t),t=t.replace(//g,">"),t=t.replace(/=/g,"="),t=L5(t))}return t},"sanitizeMore"),Oe=n((t,e)=>t&&(e.dompurifyConfig?t=ho.sanitize(Uy(t,e),e.dompurifyConfig).toString():t=ho.sanitize(Uy(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),A5=n((t,e)=>typeof t=="string"?Oe(t,e):t.flat().map(r=>Oe(r,e)),"sanitizeTextOrArray"),M5=n(t=>Pc.test(t),"hasBreaks"),B5=n(t=>t.split(Pc),"splitBreaks"),L5=n(t=>t.replace(/#br#/g,"
"),"placeholderToBreak"),Xy=n(t=>t.replace(Pc,"#br#"),"breakToPlaceholder"),D5=n(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e},"getUrl"),Vt=n(t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),F5=n(function(...t){let e=t.filter(r=>!isNaN(r));return Math.max(...e)},"getMax"),O5=n(function(...t){let e=t.filter(r=>!isNaN(r));return Math.min(...e)},"getMin"),Op=n(function(t){let e=t.split(/(,)/),r=[];for(let i=0;i0&&i+1Math.max(0,t.split(e).length-1),"countOccurrence"),N5=n((t,e)=>{let r=Dp(t,"~"),i=Dp(e,"~");return r===1&&i===1},"shouldCombineSets"),I5=n(t=>{let e=Dp(t,"~"),r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);let i=[...t],o=i.indexOf("~"),s=i.lastIndexOf("~");for(;o!==-1&&s!==-1&&o!==s;)i[o]="<",i[s]=">",o=i.indexOf("~"),s=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),R5=n(()=>window.MathMLElement!==void 0,"isMathMLSupported"),Fp=/\$\$(.*)\$\$/g,uo=n(t=>(t.match(Fp)?.length??0)>0,"hasKatex"),P5=n(async(t,e)=>uo(t)?R5()||e.legacyMathML||e.forceLegacyMathML?t.replace(Fp,"Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library."):t.replace(Fp,"MathML is unsupported in this environment."):t,"renderKatexUnsanitized"),$c=n(async(t,e)=>Oe(await P5(t,e),e),"renderKatexSanitized"),Ir={getRows:v5,sanitizeText:Oe,sanitizeTextOrArray:A5,hasBreaks:M5,splitBreaks:B5,lineBreakRegex:Pc,removeScript:Yy,getUrl:D5,evaluate:Vt,getMax:F5,getMin:O5}});var $5,Np,Ky,Zy,Qy,Jy,li,pn=m(()=>{"use strict";O1();Zr();Ne();vt();$5={body:'?',height:80,width:80},Np=new Map,Ky=new Map,Zy=n(t=>{for(let e of t){if(!e.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(S.debug("Registering icon pack:",e.name),"loader"in e)Ky.set(e.name,e.loader);else if("icons"in e)Np.set(e.name,e.icons);else throw S.error("Invalid icon loader:",e),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),Qy=n(async(t,e)=>{let r=Qf(t,!0,e!==void 0);if(!r)throw new Error(`Invalid icon name: ${t}`);let i=r.prefix||e;if(!i)throw new Error(`Icon name must contain a prefix: ${t}`);let o=Np.get(i);if(!o){let a=Ky.get(i);if(!a)throw new Error(`Icon set not found: ${r.prefix}`);try{o={...await a(),prefix:i},Np.set(i,o)}catch(l){throw S.error(l),new Error(`Failed to load icon set: ${r.prefix}`)}}let s=tp(o,r.name);if(!s)throw new Error(`Icon not found: ${t}`);return s},"getRegisteredIconData"),Jy=n(async t=>{try{return await Qy(t),!0}catch{return!1}},"isIconAvailable"),li=n(async(t,e,r)=>{let i;try{i=await Qy(t,e?.fallbackPrefix)}catch(a){S.error(a),i=$5}let o=rp(i,e),s=op(ip(o.body),{...o.attributes,...r});return Oe(s,ee())},"getIconSVG")});function zc(t){for(var e=[],r=1;r{"use strict";n(zc,"dedent")});var jc,dn,tb,Gc=m(()=>{"use strict";jc=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,dn=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,tb=/\s*%%.*\n/gm});var is,Rp=m(()=>{"use strict";is=class extends Error{static{n(this,"UnknownDiagramError")}constructor(e){super(e),this.name="UnknownDiagramError"}}});var Ri,os,eb,Pp,rb,ns=m(()=>{"use strict";vt();Gc();Rp();Ri={},os=n(function(t,e){t=t.replace(jc,"").replace(dn,"").replace(tb,` `);for(let[r,{detector:i}]of Object.entries(Ri))if(i(t,e))return r;throw new is(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),eb=n((...t)=>{for(let{id:e,detector:r,loader:i}of t)Pp(e,r,i)},"registerLazyLoadedDiagrams"),Pp=n((t,e,r)=>{Ri[t]&&S.warn(`Detector with key ${t} already exists. Overwriting.`),Ri[t]={detector:e,loader:r},S.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),rb=n(t=>Ri[t].loader,"getDiagramLoader")});var z5,j5,Ea,ib,Wc=m(()=>{"use strict";vt();z5=n(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),j5=n(function(t,e,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${e}px;`)):(i.set("height",t),i.set("width",e)),i},"calculateSvgSizeAttrs"),Ea=n(function(t,e,r,i){let o=j5(e,r,i);z5(t,o)},"configureSvgSize"),ib=n(function(t,e,r,i){let o=e.node().getBBox(),s=o.width,a=o.height;S.info(`SVG bounds: ${s}x${a}`,o);let l=0,c=0;S.info(`Graph bounds: ${l}x${c}`,t),l=s+r*2,c=a+r*2,S.info(`Calculated bounds: ${l}x${c}`),Ea(e,c,l,i);let h=`${o.x-r} ${o.y-r} ${o.width+2*r} ${o.height+2*r}`;e.attr("viewBox",h)},"setupGraphViewbox")});var Hc,G5,ob,nb,$p=m(()=>{"use strict";vt();Hc={},G5=n((t,e,r)=>{let i="";return t in Hc&&Hc[t]?i=Hc[t](r):S.warn(`No theme found for ${t}`),` & { font-family: ${r.fontFamily}; font-size: ${r.fontSize}; fill: ${r.textColor} } @keyframes edge-animation-frame { from { stroke-dashoffset: 0; } } @keyframes dash { to { stroke-dashoffset: 0; } } & .edge-animation-slow { stroke-dasharray: 9,5 !important; stroke-dashoffset: 900; animation: dash 50s linear infinite; stroke-linecap: round; } & .edge-animation-fast { stroke-dasharray: 9,5 !important; stroke-dashoffset: 900; animation: dash 20s linear infinite; stroke-linecap: round; } /* Classes common for multiple diagrams */ & .error-icon { fill: ${r.errorBkgColor}; } & .error-text { fill: ${r.errorTextColor}; stroke: ${r.errorTextColor}; } & .edge-thickness-normal { stroke-width: 1px; } & .edge-thickness-thick { stroke-width: 3.5px } & .edge-pattern-solid { stroke-dasharray: 0; } & .edge-thickness-invisible { stroke-width: 0; fill: none; } & .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}; } & p { margin: 0 } ${i} ${e} `},"getStyles"),ob=n((t,e)=>{e!==void 0&&(Hc[t]=e)},"addStylesForDiagram"),nb=G5});var Zp={};wc(Zp,{clear:()=>Hp,getAccDescription:()=>Yp,getAccTitle:()=>Vp,getDiagramTitle:()=>Kp,setAccDescription:()=>Up,setAccTitle:()=>qp,setDiagramTitle:()=>Xp});var zp,jp,Gp,Wp,Hp,qp,Vp,Up,Yp,Xp,Kp,Qp=m(()=>{"use strict";Ne();Zr();zp="",jp="",Gp="",Wp=n(t=>Oe(t,ee()),"sanitizeText"),Hp=n(()=>{zp="",Gp="",jp=""},"clear"),qp=n(t=>{zp=Wp(t).replace(/^\s+/g,"")},"setAccTitle"),Vp=n(()=>zp,"getAccTitle"),Up=n(t=>{Gp=Wp(t).replace(/\n\s+/g,` `)},"setAccDescription"),Yp=n(()=>Gp,"getAccDescription"),Xp=n(t=>{jp=Wp(t)},"setDiagramTitle"),Kp=n(()=>jp,"getDiagramTitle")});var sb,W5,_t,td,ab,Aa,H5,q5,qc,ss,Ma,Jp,Me=m(()=>{"use strict";ns();vt();Zr();Ne();Wc();$p();Qp();sb=S,W5=da,_t=ee,td=Oc,ab=co,Aa=n(t=>Oe(t,_t()),"sanitizeText"),H5=ib,q5=n(()=>Zp,"getCommonDb"),qc={},ss=n((t,e,r)=>{qc[t]&&sb.warn(`Diagram with id ${t} already registered. Overwriting.`),qc[t]=e,r&&Pp(t,r),ob(t,e.styles),e.injectUtils?.(sb,W5,_t,Aa,H5,q5(),()=>{})},"registerDiagram"),Ma=n(t=>{if(t in qc)return qc[t];throw new Jp(t)},"getDiagram"),Jp=class extends Error{static{n(this,"DiagramNotFoundError")}constructor(e){super(`Diagram ${e} not found.`)}}});var lb=m(()=>{"use strict"});var cb=m(()=>{"use strict"});function ub(){for(var t=0,e=arguments.length,r={},i;t=0&&(i=r.slice(o+1),r=r.slice(0,o)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}function Y5(t,e){for(var r=0,i=t.length,o;r{"use strict";V5={value:n(()=>{},"value")};n(ub,"dispatch");n(Vc,"Dispatch");n(U5,"parseTypenames");Vc.prototype=ub.prototype={constructor:Vc,on:n(function(t,e){var r=this._,i=U5(t+"",r),o,s=-1,a=i.length;if(arguments.length<2){for(;++s0)for(var r=new Array(o),i=0,o,s;i{"use strict";fb()});var Uc,id,od=m(()=>{"use strict";Uc="http://www.w3.org/1999/xhtml",id={svg:"http://www.w3.org/2000/svg",xhtml:Uc,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}});function ci(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),id.hasOwnProperty(e)?{space:id[e],local:t}:t}var Yc=m(()=>{"use strict";od();n(ci,"default")});function X5(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===Uc&&e.documentElement.namespaceURI===Uc?e.createElement(t):e.createElementNS(r,t)}}function K5(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ba(t){var e=ci(t);return(e.local?K5:X5)(e)}var nd=m(()=>{"use strict";Yc();od();n(X5,"creatorInherit");n(K5,"creatorFixed");n(Ba,"default")});function Z5(){}function fo(t){return t==null?Z5:function(){return this.querySelector(t)}}var Xc=m(()=>{"use strict";n(Z5,"none");n(fo,"default")});function sd(t){typeof t!="function"&&(t=fo(t));for(var e=this._groups,r=e.length,i=new Array(r),o=0;o{"use strict";Jr();Xc();n(sd,"default")});function ad(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}var db=m(()=>{"use strict";n(ad,"array")});function Q5(){return[]}function as(t){return t==null?Q5:function(){return this.querySelectorAll(t)}}var ld=m(()=>{"use strict";n(Q5,"empty");n(as,"default")});function J5(t){return function(){return ad(t.apply(this,arguments))}}function cd(t){typeof t=="function"?t=J5(t):t=as(t);for(var e=this._groups,r=e.length,i=[],o=[],s=0;s{"use strict";Jr();db();ld();n(J5,"arrayAll");n(cd,"default")});function ls(t){return function(){return this.matches(t)}}function Kc(t){return function(e){return e.matches(t)}}var La=m(()=>{"use strict";n(ls,"default");n(Kc,"childMatcher")});function eO(t){return function(){return tO.call(this.children,t)}}function rO(){return this.firstElementChild}function hd(t){return this.select(t==null?rO:eO(typeof t=="function"?t:Kc(t)))}var tO,gb=m(()=>{"use strict";La();tO=Array.prototype.find;n(eO,"childFind");n(rO,"childFirst");n(hd,"default")});function oO(){return Array.from(this.children)}function nO(t){return function(){return iO.call(this.children,t)}}function ud(t){return this.selectAll(t==null?oO:nO(typeof t=="function"?t:Kc(t)))}var iO,xb=m(()=>{"use strict";La();iO=Array.prototype.filter;n(oO,"children");n(nO,"childrenFilter");n(ud,"default")});function fd(t){typeof t!="function"&&(t=ls(t));for(var e=this._groups,r=e.length,i=new Array(r),o=0;o{"use strict";Jr();La();n(fd,"default")});function Da(t){return new Array(t.length)}var pd=m(()=>{"use strict";n(Da,"default")});function dd(){return new me(this._enter||this._groups.map(Da),this._parents)}function Fa(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}var md=m(()=>{"use strict";pd();Jr();n(dd,"default");n(Fa,"EnterNode");Fa.prototype={constructor:Fa,appendChild:n(function(t){return this._parent.insertBefore(t,this._next)},"appendChild"),insertBefore:n(function(t,e){return this._parent.insertBefore(t,e)},"insertBefore"),querySelector:n(function(t){return this._parent.querySelector(t)},"querySelector"),querySelectorAll:n(function(t){return this._parent.querySelectorAll(t)},"querySelectorAll")}});function gd(t){return function(){return t}}var bb=m(()=>{"use strict";n(gd,"default")});function sO(t,e,r,i,o,s){for(var a=0,l,c=e.length,h=s.length;a=k&&(k=C+1);!(v=y[k])&&++k{"use strict";Jr();md();bb();n(sO,"bindIndex");n(aO,"bindKey");n(lO,"datum");n(xd,"default");n(cO,"arraylike")});function yd(){return new me(this._exit||this._groups.map(Da),this._parents)}var wb=m(()=>{"use strict";pd();Jr();n(yd,"default")});function bd(t,e,r){var i=this.enter(),o=this,s=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(o=e(o),o&&(o=o.selection())),r==null?s.remove():r(s),i&&o?i.merge(o).order():o}var _b=m(()=>{"use strict";n(bd,"default")});function Cd(t){for(var e=t.selection?t.selection():t,r=this._groups,i=e._groups,o=r.length,s=i.length,a=Math.min(o,s),l=new Array(o),c=0;c{"use strict";Jr();n(Cd,"default")});function wd(){for(var t=this._groups,e=-1,r=t.length;++e=0;)(a=i[o])&&(s&&a.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(a,s),s=a);return this}var kb=m(()=>{"use strict";n(wd,"default")});function _d(t){t||(t=hO);function e(f,p){return f&&p?t(f.__data__,p.__data__):!f-!p}n(e,"compareNode");for(var r=this._groups,i=r.length,o=new Array(i),s=0;se?1:t>=e?0:NaN}var vb=m(()=>{"use strict";Jr();n(_d,"default");n(hO,"ascending")});function Sd(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}var Tb=m(()=>{"use strict";n(Sd,"default")});function kd(){return Array.from(this)}var Eb=m(()=>{"use strict";n(kd,"default")});function vd(){for(var t=this._groups,e=0,r=t.length;e{"use strict";n(vd,"default")});function Td(){let t=0;for(let e of this)++t;return t}var Mb=m(()=>{"use strict";n(Td,"default")});function Ed(){return!this.node()}var Bb=m(()=>{"use strict";n(Ed,"default")});function Ad(t){for(var e=this._groups,r=0,i=e.length;r{"use strict";n(Ad,"default")});function uO(t){return function(){this.removeAttribute(t)}}function fO(t){return function(){this.removeAttributeNS(t.space,t.local)}}function pO(t,e){return function(){this.setAttribute(t,e)}}function dO(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function mO(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function gO(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function Md(t,e){var r=ci(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((e==null?r.local?fO:uO:typeof e=="function"?r.local?gO:mO:r.local?dO:pO)(r,e))}var Db=m(()=>{"use strict";Yc();n(uO,"attrRemove");n(fO,"attrRemoveNS");n(pO,"attrConstant");n(dO,"attrConstantNS");n(mO,"attrFunction");n(gO,"attrFunctionNS");n(Md,"default")});function Oa(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}var Bd=m(()=>{"use strict";n(Oa,"default")});function xO(t){return function(){this.style.removeProperty(t)}}function yO(t,e,r){return function(){this.style.setProperty(t,e,r)}}function bO(t,e,r){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,r)}}function Ld(t,e,r){return arguments.length>1?this.each((e==null?xO:typeof e=="function"?bO:yO)(t,e,r??"")):po(this.node(),t)}function po(t,e){return t.style.getPropertyValue(e)||Oa(t).getComputedStyle(t,null).getPropertyValue(e)}var Dd=m(()=>{"use strict";Bd();n(xO,"styleRemove");n(yO,"styleConstant");n(bO,"styleFunction");n(Ld,"default");n(po,"styleValue")});function CO(t){return function(){delete this[t]}}function wO(t,e){return function(){this[t]=e}}function _O(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Fd(t,e){return arguments.length>1?this.each((e==null?CO:typeof e=="function"?_O:wO)(t,e)):this.node()[t]}var Fb=m(()=>{"use strict";n(CO,"propertyRemove");n(wO,"propertyConstant");n(_O,"propertyFunction");n(Fd,"default")});function Ob(t){return t.trim().split(/^|\s+/)}function Od(t){return t.classList||new Nb(t)}function Nb(t){this._node=t,this._names=Ob(t.getAttribute("class")||"")}function Ib(t,e){for(var r=Od(t),i=-1,o=e.length;++i{"use strict";n(Ob,"classArray");n(Od,"classList");n(Nb,"ClassList");Nb.prototype={add:n(function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},"add"),remove:n(function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},"remove"),contains:n(function(t){return this._names.indexOf(t)>=0},"contains")};n(Ib,"classedAdd");n(Rb,"classedRemove");n(SO,"classedTrue");n(kO,"classedFalse");n(vO,"classedFunction");n(Nd,"default")});function TO(){this.textContent=""}function EO(t){return function(){this.textContent=t}}function AO(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Id(t){return arguments.length?this.each(t==null?TO:(typeof t=="function"?AO:EO)(t)):this.node().textContent}var $b=m(()=>{"use strict";n(TO,"textRemove");n(EO,"textConstant");n(AO,"textFunction");n(Id,"default")});function MO(){this.innerHTML=""}function BO(t){return function(){this.innerHTML=t}}function LO(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Rd(t){return arguments.length?this.each(t==null?MO:(typeof t=="function"?LO:BO)(t)):this.node().innerHTML}var zb=m(()=>{"use strict";n(MO,"htmlRemove");n(BO,"htmlConstant");n(LO,"htmlFunction");n(Rd,"default")});function DO(){this.nextSibling&&this.parentNode.appendChild(this)}function Pd(){return this.each(DO)}var jb=m(()=>{"use strict";n(DO,"raise");n(Pd,"default")});function FO(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function $d(){return this.each(FO)}var Gb=m(()=>{"use strict";n(FO,"lower");n($d,"default")});function zd(t){var e=typeof t=="function"?t:Ba(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}var Wb=m(()=>{"use strict";nd();n(zd,"default")});function OO(){return null}function jd(t,e){var r=typeof t=="function"?t:Ba(t),i=e==null?OO:typeof e=="function"?e:fo(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}var Hb=m(()=>{"use strict";nd();Xc();n(OO,"constantNull");n(jd,"default")});function NO(){var t=this.parentNode;t&&t.removeChild(this)}function Gd(){return this.each(NO)}var qb=m(()=>{"use strict";n(NO,"remove");n(Gd,"default")});function IO(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function RO(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Wd(t){return this.select(t?RO:IO)}var Vb=m(()=>{"use strict";n(IO,"selection_cloneShallow");n(RO,"selection_cloneDeep");n(Wd,"default")});function Hd(t){return arguments.length?this.property("__data__",t):this.node().__data__}var Ub=m(()=>{"use strict";n(Hd,"default")});function PO(t){return function(e){t.call(this,e,this.__data__)}}function $O(t){return t.trim().split(/^|\s+/).map(function(e){var r="",i=e.indexOf(".");return i>=0&&(r=e.slice(i+1),e=e.slice(0,i)),{type:e,name:r}})}function zO(t){return function(){var e=this.__on;if(e){for(var r=0,i=-1,o=e.length,s;r{"use strict";n(PO,"contextListener");n($O,"parseTypenames");n(zO,"onRemove");n(jO,"onAdd");n(qd,"default")});function Xb(t,e,r){var i=Oa(t),o=i.CustomEvent;typeof o=="function"?o=new o(e,r):(o=i.document.createEvent("Event"),r?(o.initEvent(e,r.bubbles,r.cancelable),o.detail=r.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function GO(t,e){return function(){return Xb(this,t,e)}}function WO(t,e){return function(){return Xb(this,t,e.apply(this,arguments))}}function Vd(t,e){return this.each((typeof e=="function"?WO:GO)(t,e))}var Kb=m(()=>{"use strict";Bd();n(Xb,"dispatchEvent");n(GO,"dispatchConstant");n(WO,"dispatchFunction");n(Vd,"default")});function*Ud(){for(var t=this._groups,e=0,r=t.length;e{"use strict";n(Ud,"default")});function me(t,e){this._groups=t,this._parents=e}function Qb(){return new me([[document.documentElement]],Yd)}function HO(){return this}var Yd,Pi,Jr=m(()=>{"use strict";pb();mb();gb();xb();yb();Cb();md();wb();_b();Sb();kb();vb();Tb();Eb();Ab();Mb();Bb();Lb();Db();Dd();Fb();Pb();$b();zb();jb();Gb();Wb();Hb();qb();Vb();Ub();Yb();Kb();Zb();Yd=[null];n(me,"Selection");n(Qb,"selection");n(HO,"selection_selection");me.prototype=Qb.prototype={constructor:me,select:sd,selectAll:cd,selectChild:hd,selectChildren:ud,filter:fd,data:xd,enter:dd,exit:yd,join:bd,merge:Cd,selection:HO,order:wd,sort:_d,call:Sd,nodes:kd,node:vd,size:Td,empty:Ed,each:Ad,attr:Md,style:Ld,property:Fd,classed:Nd,text:Id,html:Rd,raise:Pd,lower:$d,append:zd,insert:jd,remove:Gd,clone:Wd,datum:Hd,on:qd,dispatch:Vd,[Symbol.iterator]:Ud};Pi=Qb});function ft(t){return typeof t=="string"?new me([[document.querySelector(t)]],[document.documentElement]):new me([[t]],Yd)}var Jb=m(()=>{"use strict";Jr();n(ft,"default")});var ti=m(()=>{"use strict";La();Yc();Jb();Jr();Xc();ld();Dd()});var t2=m(()=>{"use strict"});function Na(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Xd(t,e){var r=Object.create(t.prototype);for(var i in e)r[i]=e[i];return r}var e2=m(()=>{"use strict";n(Na,"default");n(Xd,"extend")});function Pa(){}function i2(){return this.rgb().formatHex()}function QO(){return this.rgb().formatHex8()}function JO(){return h2(this).formatHsl()}function o2(){return this.rgb().formatRgb()}function mo(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=qO.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?n2(e):r===3?new nr(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?Zc(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?Zc(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=VO.exec(t))?new nr(e[1],e[2],e[3],1):(e=UO.exec(t))?new nr(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=YO.exec(t))?Zc(e[1],e[2],e[3],e[4]):(e=XO.exec(t))?Zc(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=KO.exec(t))?l2(e[1],e[2]/100,e[3]/100,1):(e=ZO.exec(t))?l2(e[1],e[2]/100,e[3]/100,e[4]):r2.hasOwnProperty(t)?n2(r2[t]):t==="transparent"?new nr(NaN,NaN,NaN,0):null}function n2(t){return new nr(t>>16&255,t>>8&255,t&255,1)}function Zc(t,e,r,i){return i<=0&&(t=e=r=NaN),new nr(t,e,r,i)}function tN(t){return t instanceof Pa||(t=mo(t)),t?(t=t.rgb(),new nr(t.r,t.g,t.b,t.opacity)):new nr}function hs(t,e,r,i){return arguments.length===1?tN(t):new nr(t,e,r,i??1)}function nr(t,e,r,i){this.r=+t,this.g=+e,this.b=+r,this.opacity=+i}function s2(){return`#${mn(this.r)}${mn(this.g)}${mn(this.b)}`}function eN(){return`#${mn(this.r)}${mn(this.g)}${mn(this.b)}${mn((isNaN(this.opacity)?1:this.opacity)*255)}`}function a2(){let t=th(this.opacity);return`${t===1?"rgb(":"rgba("}${gn(this.r)}, ${gn(this.g)}, ${gn(this.b)}${t===1?")":`, ${t})`}`}function th(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function gn(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function mn(t){return t=gn(t),(t<16?"0":"")+t.toString(16)}function l2(t,e,r,i){return i<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new ei(t,e,r,i)}function h2(t){if(t instanceof ei)return new ei(t.h,t.s,t.l,t.opacity);if(t instanceof Pa||(t=mo(t)),!t)return new ei;if(t instanceof ei)return t;t=t.rgb();var e=t.r/255,r=t.g/255,i=t.b/255,o=Math.min(e,r,i),s=Math.max(e,r,i),a=NaN,l=s-o,c=(s+o)/2;return l?(e===s?a=(r-i)/l+(r0&&c<1?0:a,new ei(a,l,c,t.opacity)}function u2(t,e,r,i){return arguments.length===1?h2(t):new ei(t,e,r,i??1)}function ei(t,e,r,i){this.h=+t,this.s=+e,this.l=+r,this.opacity=+i}function c2(t){return t=(t||0)%360,t<0?t+360:t}function Qc(t){return Math.max(0,Math.min(1,t||0))}function Kd(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}var Ia,Jc,cs,Ra,hi,qO,VO,UO,YO,XO,KO,ZO,r2,f2=m(()=>{"use strict";e2();n(Pa,"Color");Ia=.7,Jc=1/Ia,cs="\\s*([+-]?\\d+)\\s*",Ra="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",hi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qO=/^#([0-9a-f]{3,8})$/,VO=new RegExp(`^rgb\\(${cs},${cs},${cs}\\)$`),UO=new RegExp(`^rgb\\(${hi},${hi},${hi}\\)$`),YO=new RegExp(`^rgba\\(${cs},${cs},${cs},${Ra}\\)$`),XO=new RegExp(`^rgba\\(${hi},${hi},${hi},${Ra}\\)$`),KO=new RegExp(`^hsl\\(${Ra},${hi},${hi}\\)$`),ZO=new RegExp(`^hsla\\(${Ra},${hi},${hi},${Ra}\\)$`),r2={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Na(Pa,mo,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:i2,formatHex:i2,formatHex8:QO,formatHsl:JO,formatRgb:o2,toString:o2});n(i2,"color_formatHex");n(QO,"color_formatHex8");n(JO,"color_formatHsl");n(o2,"color_formatRgb");n(mo,"color");n(n2,"rgbn");n(Zc,"rgba");n(tN,"rgbConvert");n(hs,"rgb");n(nr,"Rgb");Na(nr,hs,Xd(Pa,{brighter(t){return t=t==null?Jc:Math.pow(Jc,t),new nr(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ia:Math.pow(Ia,t),new nr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new nr(gn(this.r),gn(this.g),gn(this.b),th(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:s2,formatHex:s2,formatHex8:eN,formatRgb:a2,toString:a2}));n(s2,"rgb_formatHex");n(eN,"rgb_formatHex8");n(a2,"rgb_formatRgb");n(th,"clampa");n(gn,"clampi");n(mn,"hex");n(l2,"hsla");n(h2,"hslConvert");n(u2,"hsl");n(ei,"Hsl");Na(ei,u2,Xd(Pa,{brighter(t){return t=t==null?Jc:Math.pow(Jc,t),new ei(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ia:Math.pow(Ia,t),new ei(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*e,o=2*r-i;return new nr(Kd(t>=240?t-240:t+120,o,i),Kd(t,o,i),Kd(t<120?t+240:t-120,o,i),this.opacity)},clamp(){return new ei(c2(this.h),Qc(this.s),Qc(this.l),th(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=th(this.opacity);return`${t===1?"hsl(":"hsla("}${c2(this.h)}, ${Qc(this.s)*100}%, ${Qc(this.l)*100}%${t===1?")":`, ${t})`}`}}));n(c2,"clamph");n(Qc,"clampt");n(Kd,"hsl2rgb")});var eh=m(()=>{"use strict";f2()});function Zd(t,e,r,i,o){var s=t*t,a=s*t;return((1-3*t+3*s-a)*e+(4-6*s+3*a)*r+(1+3*t+3*s-3*a)*i+a*o)/6}function Qd(t){var e=t.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),o=t[i],s=t[i+1],a=i>0?t[i-1]:2*o-s,l=i{"use strict";n(Zd,"basis");n(Qd,"default")});function tm(t){var e=t.length;return function(r){var i=Math.floor(((r%=1)<0?++r:r)*e),o=t[(i+e-1)%e],s=t[i%e],a=t[(i+1)%e],l=t[(i+2)%e];return Zd((r-i/e)*e,o,s,a,l)}}var p2=m(()=>{"use strict";Jd();n(tm,"default")});var em,d2=m(()=>{"use strict";em=n(t=>()=>t,"default")});function rN(t,e){return function(r){return t+r*e}}function iN(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(i){return Math.pow(t+i*e,r)}}function m2(t){return(t=+t)==1?rh:function(e,r){return r-e?iN(e,r,t):em(isNaN(e)?r:e)}}function rh(t,e){var r=e-t;return r?rN(t,r):em(isNaN(t)?e:t)}var g2=m(()=>{"use strict";d2();n(rN,"linear");n(iN,"exponential");n(m2,"gamma");n(rh,"nogamma")});function x2(t){return function(e){var r=e.length,i=new Array(r),o=new Array(r),s=new Array(r),a,l;for(a=0;a{"use strict";eh();Jd();p2();g2();ih=n((function t(e){var r=m2(e);function i(o,s){var a=r((o=hs(o)).r,(s=hs(s)).r),l=r(o.g,s.g),c=r(o.b,s.b),h=rh(o.opacity,s.opacity);return function(u){return o.r=a(u),o.g=l(u),o.b=c(u),o.opacity=h(u),o+""}}return n(i,"rgb"),i.gamma=t,i}),"rgbGamma")(1);n(x2,"rgbSpline");oN=x2(Qd),nN=x2(tm)});function Cr(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var oh=m(()=>{"use strict";n(Cr,"default")});function sN(t){return function(){return t}}function aN(t){return function(e){return t(e)+""}}function nh(t,e){var r=im.lastIndex=rm.lastIndex=0,i,o,s,a=-1,l=[],c=[];for(t=t+"",e=e+"";(i=im.exec(t))&&(o=rm.exec(e));)(s=o.index)>r&&(s=e.slice(r,s),l[a]?l[a]+=s:l[++a]=s),(i=i[0])===(o=o[0])?l[a]?l[a]+=o:l[++a]=o:(l[++a]=null,c.push({i:a,x:Cr(i,o)})),r=rm.lastIndex;return r{"use strict";oh();im=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,rm=new RegExp(im.source,"g");n(sN,"zero");n(aN,"one");n(nh,"default")});function ah(t,e,r,i,o,s){var a,l,c;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(c=t*r+e*i)&&(r-=t*c,i-=e*c),(l=Math.sqrt(r*r+i*i))&&(r/=l,i/=l,c/=l),t*i{"use strict";C2=180/Math.PI,sh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};n(ah,"default")});function _2(t){let e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?sh:ah(e.a,e.b,e.c,e.d,e.e,e.f)}function S2(t){return t==null?sh:(lh||(lh=document.createElementNS("http://www.w3.org/2000/svg","g")),lh.setAttribute("transform",t),(t=lh.transform.baseVal.consolidate())?(t=t.matrix,ah(t.a,t.b,t.c,t.d,t.e,t.f)):sh)}var lh,k2=m(()=>{"use strict";w2();n(_2,"parseCss");n(S2,"parseSvg")});function v2(t,e,r,i){function o(h){return h.length?h.pop()+" ":""}n(o,"pop");function s(h,u,f,p,d,g){if(h!==f||u!==p){var x=d.push("translate(",null,e,null,r);g.push({i:x-4,x:Cr(h,f)},{i:x-2,x:Cr(u,p)})}else(f||p)&&d.push("translate("+f+e+p+r)}n(s,"translate");function a(h,u,f,p){h!==u?(h-u>180?u+=360:u-h>180&&(h+=360),p.push({i:f.push(o(f)+"rotate(",null,i)-2,x:Cr(h,u)})):u&&f.push(o(f)+"rotate("+u+i)}n(a,"rotate");function l(h,u,f,p){h!==u?p.push({i:f.push(o(f)+"skewX(",null,i)-2,x:Cr(h,u)}):u&&f.push(o(f)+"skewX("+u+i)}n(l,"skewX");function c(h,u,f,p,d,g){if(h!==f||u!==p){var x=d.push(o(d)+"scale(",null,",",null,")");g.push({i:x-4,x:Cr(h,f)},{i:x-2,x:Cr(u,p)})}else(f!==1||p!==1)&&d.push(o(d)+"scale("+f+","+p+")")}return n(c,"scale"),function(h,u){var f=[],p=[];return h=t(h),u=t(u),s(h.translateX,h.translateY,u.translateX,u.translateY,f,p),a(h.rotate,u.rotate,f,p),l(h.skewX,u.skewX,f,p),c(h.scaleX,h.scaleY,u.scaleX,u.scaleY,f,p),h=u=null,function(d){for(var g=-1,x=p.length,y;++g{"use strict";oh();k2();n(v2,"interpolateTransform");om=v2(_2,"px, ","px)","deg)"),nm=v2(S2,", ",")",")")});var $a=m(()=>{"use strict";oh();b2();T2();y2()});function qa(){return xn||(M2(lN),xn=Wa.now()+uh)}function lN(){xn=0}function Ha(){this._call=this._time=this._next=null}function fh(t,e,r){var i=new Ha;return i.restart(t,e,r),i}function B2(){qa(),++us;for(var t=ch,e;t;)(e=xn-t._time)>=0&&t._call.call(void 0,e),t=t._next;--us}function E2(){xn=(hh=Wa.now())+uh,us=ja=0;try{B2()}finally{us=0,hN(),xn=0}}function cN(){var t=Wa.now(),e=t-hh;e>A2&&(uh-=e,hh=t)}function hN(){for(var t,e=ch,r,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:ch=r);Ga=t,sm(i)}function sm(t){if(!us){ja&&(ja=clearTimeout(ja));var e=t-xn;e>24?(t<1/0&&(ja=setTimeout(E2,t-Wa.now()-uh)),za&&(za=clearInterval(za))):(za||(hh=Wa.now(),za=setInterval(cN,A2)),us=1,M2(E2))}}var us,ja,za,A2,ch,Ga,hh,xn,uh,Wa,M2,am=m(()=>{"use strict";us=0,ja=0,za=0,A2=1e3,hh=0,xn=0,uh=0,Wa=typeof performance=="object"&&performance.now?performance:Date,M2=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};n(qa,"now");n(lN,"clearNow");n(Ha,"Timer");Ha.prototype=fh.prototype={constructor:Ha,restart:n(function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?qa():+r)+(e==null?0:+e),!this._next&&Ga!==this&&(Ga?Ga._next=this:ch=this,Ga=this),this._call=t,this._time=r,sm()},"restart"),stop:n(function(){this._call&&(this._call=null,this._time=1/0,sm())},"stop")};n(fh,"timer");n(B2,"timerFlush");n(E2,"wake");n(cN,"poke");n(hN,"nap");n(sm,"sleep")});function Va(t,e,r){var i=new Ha;return e=e==null?0:+e,i.restart(o=>{i.stop(),t(o+e)},e,r),i}var L2=m(()=>{"use strict";am();n(Va,"default")});var ph=m(()=>{"use strict";am();L2()});function $i(t,e,r,i,o,s){var a=t.__transition;if(!a)t.__transition={};else if(r in a)return;pN(t,r,{name:e,index:i,group:o,on:uN,tween:fN,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:O2})}function Ya(t,e){var r=Be(t,e);if(r.state>O2)throw new Error("too late; already scheduled");return r}function ze(t,e){var r=Be(t,e);if(r.state>dh)throw new Error("too late; already running");return r}function Be(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function pN(t,e,r){var i=t.__transition,o;i[e]=r,r.timer=fh(s,0,r.time);function s(h){r.state=D2,r.timer.restart(a,r.delay,r.time),r.delay<=h&&a(h-r.delay)}n(s,"schedule");function a(h){var u,f,p,d;if(r.state!==D2)return c();for(u in i)if(d=i[u],d.name===r.name){if(d.state===dh)return Va(a);d.state===F2?(d.state=Ua,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[u]):+u{"use strict";rd();ph();uN=ed("start","end","cancel","interrupt"),fN=[],O2=0,D2=1,mh=2,dh=3,F2=4,gh=5,Ua=6;n($i,"default");n(Ya,"init");n(ze,"set");n(Be,"get");n(pN,"create")});function Xa(t,e){var r=t.__transition,i,o,s=!0,a;if(r){e=e==null?null:e+"";for(a in r){if((i=r[a]).name!==e){s=!1;continue}o=i.state>mh&&i.state{"use strict";sr();n(Xa,"default")});function lm(t){return this.each(function(){Xa(this,t)})}var I2=m(()=>{"use strict";N2();n(lm,"default")});function dN(t,e){var r,i;return function(){var o=ze(this,t),s=o.tween;if(s!==r){i=r=s;for(var a=0,l=i.length;a{"use strict";sr();n(dN,"tweenRemove");n(mN,"tweenFunction");n(cm,"default");n(fs,"tweenValue")});function Za(t,e){var r;return(typeof e=="number"?Cr:e instanceof mo?ih:(r=mo(e))?(e=r,ih):nh)(t,e)}var hm=m(()=>{"use strict";eh();$a();n(Za,"default")});function gN(t){return function(){this.removeAttribute(t)}}function xN(t){return function(){this.removeAttributeNS(t.space,t.local)}}function yN(t,e,r){var i,o=r+"",s;return function(){var a=this.getAttribute(t);return a===o?null:a===i?s:s=e(i=a,r)}}function bN(t,e,r){var i,o=r+"",s;return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===i?s:s=e(i=a,r)}}function CN(t,e,r){var i,o,s;return function(){var a,l=r(this),c;return l==null?void this.removeAttribute(t):(a=this.getAttribute(t),c=l+"",a===c?null:a===i&&c===o?s:(o=c,s=e(i=a,l)))}}function wN(t,e,r){var i,o,s;return function(){var a,l=r(this),c;return l==null?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),c=l+"",a===c?null:a===i&&c===o?s:(o=c,s=e(i=a,l)))}}function um(t,e){var r=ci(t),i=r==="transform"?nm:Za;return this.attrTween(t,typeof e=="function"?(r.local?wN:CN)(r,i,fs(this,"attr."+t,e)):e==null?(r.local?xN:gN)(r):(r.local?bN:yN)(r,i,e))}var R2=m(()=>{"use strict";$a();ti();Ka();hm();n(gN,"attrRemove");n(xN,"attrRemoveNS");n(yN,"attrConstant");n(bN,"attrConstantNS");n(CN,"attrFunction");n(wN,"attrFunctionNS");n(um,"default")});function _N(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function SN(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function kN(t,e){var r,i;function o(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&SN(t,s)),r}return n(o,"tween"),o._value=e,o}function vN(t,e){var r,i;function o(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&_N(t,s)),r}return n(o,"tween"),o._value=e,o}function fm(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var i=ci(t);return this.tween(r,(i.local?kN:vN)(i,e))}var P2=m(()=>{"use strict";ti();n(_N,"attrInterpolate");n(SN,"attrInterpolateNS");n(kN,"attrTweenNS");n(vN,"attrTween");n(fm,"default")});function TN(t,e){return function(){Ya(this,t).delay=+e.apply(this,arguments)}}function EN(t,e){return e=+e,function(){Ya(this,t).delay=e}}function pm(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?TN:EN)(e,t)):Be(this.node(),e).delay}var $2=m(()=>{"use strict";sr();n(TN,"delayFunction");n(EN,"delayConstant");n(pm,"default")});function AN(t,e){return function(){ze(this,t).duration=+e.apply(this,arguments)}}function MN(t,e){return e=+e,function(){ze(this,t).duration=e}}function dm(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?AN:MN)(e,t)):Be(this.node(),e).duration}var z2=m(()=>{"use strict";sr();n(AN,"durationFunction");n(MN,"durationConstant");n(dm,"default")});function BN(t,e){if(typeof e!="function")throw new Error;return function(){ze(this,t).ease=e}}function mm(t){var e=this._id;return arguments.length?this.each(BN(e,t)):Be(this.node(),e).ease}var j2=m(()=>{"use strict";sr();n(BN,"easeConstant");n(mm,"default")});function LN(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;ze(this,t).ease=r}}function gm(t){if(typeof t!="function")throw new Error;return this.each(LN(this._id,t))}var G2=m(()=>{"use strict";sr();n(LN,"easeVarying");n(gm,"default")});function xm(t){typeof t!="function"&&(t=ls(t));for(var e=this._groups,r=e.length,i=new Array(r),o=0;o{"use strict";ti();yn();n(xm,"default")});function ym(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,i=e.length,o=r.length,s=Math.min(i,o),a=new Array(i),l=0;l{"use strict";yn();n(ym,"default")});function DN(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||e==="start"})}function FN(t,e,r){var i,o,s=DN(e)?Ya:ze;return function(){var a=s(this,t),l=a.on;l!==i&&(o=(i=l).copy()).on(e,r),a.on=o}}function bm(t,e){var r=this._id;return arguments.length<2?Be(this.node(),r).on.on(t):this.each(FN(r,t,e))}var q2=m(()=>{"use strict";sr();n(DN,"start");n(FN,"onFunction");n(bm,"default")});function ON(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function Cm(){return this.on("end.remove",ON(this._id))}var V2=m(()=>{"use strict";n(ON,"removeFunction");n(Cm,"default")});function wm(t){var e=this._name,r=this._id;typeof t!="function"&&(t=fo(t));for(var i=this._groups,o=i.length,s=new Array(o),a=0;a{"use strict";ti();yn();sr();n(wm,"default")});function _m(t){var e=this._name,r=this._id;typeof t!="function"&&(t=as(t));for(var i=this._groups,o=i.length,s=[],a=[],l=0;l{"use strict";ti();yn();sr();n(_m,"default")});function Sm(){return new NN(this._groups,this._parents)}var NN,X2=m(()=>{"use strict";ti();NN=Pi.prototype.constructor;n(Sm,"default")});function IN(t,e){var r,i,o;return function(){var s=po(this,t),a=(this.style.removeProperty(t),po(this,t));return s===a?null:s===r&&a===i?o:o=e(r=s,i=a)}}function K2(t){return function(){this.style.removeProperty(t)}}function RN(t,e,r){var i,o=r+"",s;return function(){var a=po(this,t);return a===o?null:a===i?s:s=e(i=a,r)}}function PN(t,e,r){var i,o,s;return function(){var a=po(this,t),l=r(this),c=l+"";return l==null&&(c=l=(this.style.removeProperty(t),po(this,t))),a===c?null:a===i&&c===o?s:(o=c,s=e(i=a,l))}}function $N(t,e){var r,i,o,s="style."+e,a="end."+s,l;return function(){var c=ze(this,t),h=c.on,u=c.value[s]==null?l||(l=K2(e)):void 0;(h!==r||o!==u)&&(i=(r=h).copy()).on(a,o=u),c.on=i}}function km(t,e,r){var i=(t+="")=="transform"?om:Za;return e==null?this.styleTween(t,IN(t,i)).on("end.style."+t,K2(t)):typeof e=="function"?this.styleTween(t,PN(t,i,fs(this,"style."+t,e))).each($N(this._id,t)):this.styleTween(t,RN(t,i,e),r).on("end.style."+t,null)}var Z2=m(()=>{"use strict";$a();ti();sr();Ka();hm();n(IN,"styleNull");n(K2,"styleRemove");n(RN,"styleConstant");n(PN,"styleFunction");n($N,"styleMaybeRemove");n(km,"default")});function zN(t,e,r){return function(i){this.style.setProperty(t,e.call(this,i),r)}}function jN(t,e,r){var i,o;function s(){var a=e.apply(this,arguments);return a!==o&&(i=(o=a)&&zN(t,a,r)),i}return n(s,"tween"),s._value=e,s}function vm(t,e,r){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,jN(t,e,r??""))}var Q2=m(()=>{"use strict";n(zN,"styleInterpolate");n(jN,"styleTween");n(vm,"default")});function GN(t){return function(){this.textContent=t}}function WN(t){return function(){var e=t(this);this.textContent=e??""}}function Tm(t){return this.tween("text",typeof t=="function"?WN(fs(this,"text",t)):GN(t==null?"":t+""))}var J2=m(()=>{"use strict";Ka();n(GN,"textConstant");n(WN,"textFunction");n(Tm,"default")});function HN(t){return function(e){this.textContent=t.call(this,e)}}function qN(t){var e,r;function i(){var o=t.apply(this,arguments);return o!==r&&(e=(r=o)&&HN(o)),e}return n(i,"tween"),i._value=t,i}function Em(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,qN(t))}var tC=m(()=>{"use strict";n(HN,"textInterpolate");n(qN,"textTween");n(Em,"default")});function Am(){for(var t=this._name,e=this._id,r=xh(),i=this._groups,o=i.length,s=0;s{"use strict";yn();sr();n(Am,"default")});function Mm(){var t,e,r=this,i=r._id,o=r.size();return new Promise(function(s,a){var l={value:a},c={value:n(function(){--o===0&&s()},"value")};r.each(function(){var h=ze(this,i),u=h.on;u!==t&&(e=(t=u).copy(),e._.cancel.push(l),e._.interrupt.push(l),e._.end.push(c)),h.on=e}),o===0&&s()})}var rC=m(()=>{"use strict";sr();n(Mm,"default")});function tr(t,e,r,i){this._groups=t,this._parents=e,this._name=r,this._id=i}function iC(t){return Pi().transition(t)}function xh(){return++VN}var VN,zi,yn=m(()=>{"use strict";ti();R2();P2();$2();z2();j2();G2();W2();H2();q2();V2();U2();Y2();X2();Z2();Q2();J2();tC();eC();Ka();rC();VN=0;n(tr,"Transition");n(iC,"transition");n(xh,"newId");zi=Pi.prototype;tr.prototype=iC.prototype={constructor:tr,select:wm,selectAll:_m,selectChild:zi.selectChild,selectChildren:zi.selectChildren,filter:xm,merge:ym,selection:Sm,transition:Am,call:zi.call,nodes:zi.nodes,node:zi.node,size:zi.size,empty:zi.empty,each:zi.each,on:bm,attr:um,attrTween:fm,style:km,styleTween:vm,text:Tm,textTween:Em,remove:Cm,tween:cm,delay:pm,duration:dm,ease:mm,easeVarying:gm,end:Mm,[Symbol.iterator]:zi[Symbol.iterator]}});function yh(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var oC=m(()=>{"use strict";n(yh,"cubicInOut")});var Bm=m(()=>{"use strict";oC()});function YN(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function Lm(t){var e,r;t instanceof tr?(e=t._id,t=t._name):(e=xh(),(r=UN).time=qa(),t=t==null?null:t+"");for(var i=this._groups,o=i.length,s=0;s{"use strict";yn();sr();Bm();ph();UN={time:null,delay:0,duration:250,ease:yh};n(YN,"inherit");n(Lm,"default")});var sC=m(()=>{"use strict";ti();I2();nC();Pi.prototype.interrupt=lm;Pi.prototype.transition=Lm});var bh=m(()=>{"use strict";sC()});var aC=m(()=>{"use strict"});var lC=m(()=>{"use strict"});var cC=m(()=>{"use strict"});function hC(t){return[+t[0],+t[1]]}function XN(t){return[hC(t[0]),hC(t[1])]}function Dm(t){return{type:t}}var jnt,Gnt,Wnt,Hnt,qnt,Vnt,uC=m(()=>{"use strict";bh();aC();lC();cC();({abs:jnt,max:Gnt,min:Wnt}=Math);n(hC,"number1");n(XN,"number2");Hnt={name:"x",handles:["w","e"].map(Dm),input:n(function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},"input"),output:n(function(t){return t&&[t[0][0],t[1][0]]},"output")},qnt={name:"y",handles:["n","s"].map(Dm),input:n(function(t,e){return t==null?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},"input"),output:n(function(t){return t&&[t[0][1],t[1][1]]},"output")},Vnt={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Dm),input:n(function(t){return t==null?null:XN(t)},"input"),output:n(function(t){return t},"output")};n(Dm,"type")});var fC=m(()=>{"use strict";uC()});function pC(t){this._+=t[0];for(let e=1,r=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return pC;let r=10**e;return function(i){this._+=i[0];for(let o=1,s=i.length;o{"use strict";Fm=Math.PI,Om=2*Fm,bn=1e-6,KN=Om-bn;n(pC,"append");n(ZN,"appendRound");Cn=class{static{n(this,"Path")}constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?pC:ZN(e)}moveTo(e,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,r){this._append`L${this._x1=+e},${this._y1=+r}`}quadraticCurveTo(e,r,i,o){this._append`Q${+e},${+r},${this._x1=+i},${this._y1=+o}`}bezierCurveTo(e,r,i,o,s,a){this._append`C${+e},${+r},${+i},${+o},${this._x1=+s},${this._y1=+a}`}arcTo(e,r,i,o,s){if(e=+e,r=+r,i=+i,o=+o,s=+s,s<0)throw new Error(`negative radius: ${s}`);let a=this._x1,l=this._y1,c=i-e,h=o-r,u=a-e,f=l-r,p=u*u+f*f;if(this._x1===null)this._append`M${this._x1=e},${this._y1=r}`;else if(p>bn)if(!(Math.abs(f*c-h*u)>bn)||!s)this._append`L${this._x1=e},${this._y1=r}`;else{let d=i-a,g=o-l,x=c*c+h*h,y=d*d+g*g,b=Math.sqrt(x),C=Math.sqrt(p),k=s*Math.tan((Fm-Math.acos((x+p-y)/(2*b*C)))/2),T=k/C,v=k/b;Math.abs(T-1)>bn&&this._append`L${e+T*u},${r+T*f}`,this._append`A${s},${s},0,0,${+(f*d>u*g)},${this._x1=e+v*c},${this._y1=r+v*h}`}}arc(e,r,i,o,s,a){if(e=+e,r=+r,i=+i,a=!!a,i<0)throw new Error(`negative radius: ${i}`);let l=i*Math.cos(o),c=i*Math.sin(o),h=e+l,u=r+c,f=1^a,p=a?o-s:s-o;this._x1===null?this._append`M${h},${u}`:(Math.abs(this._x1-h)>bn||Math.abs(this._y1-u)>bn)&&this._append`L${h},${u}`,i&&(p<0&&(p=p%Om+Om),p>KN?this._append`A${i},${i},0,1,${f},${e-l},${r-c}A${i},${i},0,1,${f},${this._x1=h},${this._y1=u}`:p>bn&&this._append`A${i},${i},0,${+(p>=Fm)},${f},${this._x1=e+i*Math.cos(s)},${this._y1=r+i*Math.sin(s)}`)}rect(e,r,i,o){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${i=+i}v${+o}h${-i}Z`}toString(){return this._}};n(dC,"path");dC.prototype=Cn.prototype});var Nm=m(()=>{"use strict";mC()});var gC=m(()=>{"use strict"});var xC=m(()=>{"use strict"});var yC=m(()=>{"use strict"});var bC=m(()=>{"use strict"});var CC=m(()=>{"use strict"});var wC=m(()=>{"use strict"});var _C=m(()=>{"use strict"});function Im(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function wn(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,i=t.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+t.slice(r+1)]}var Qa=m(()=>{"use strict";n(Im,"default");n(wn,"formatDecimalParts")});function Rm(t){return t=wn(Math.abs(t)),t?t[1]:NaN}var SC=m(()=>{"use strict";Qa();n(Rm,"default")});function Pm(t,e){return function(r,i){for(var o=r.length,s=[],a=0,l=t[0],c=0;o>0&&l>0&&(c+l+1>i&&(l=Math.max(1,i-c)),s.push(r.substring(o-=l,o+l)),!((c+=l+1)>i));)l=t[a=(a+1)%t.length];return s.reverse().join(e)}}var kC=m(()=>{"use strict";n(Pm,"default")});function $m(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var vC=m(()=>{"use strict";n($m,"default")});function Ja(t){if(!(e=QN.exec(t)))throw new Error("invalid format: "+t);var e;return new zm({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function zm(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}var QN,TC=m(()=>{"use strict";QN=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;n(Ja,"formatSpecifier");Ja.prototype=zm.prototype;n(zm,"FormatSpecifier");zm.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type}});function jm(t){t:for(var e=t.length,r=1,i=-1,o;r0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(o+1):t}var EC=m(()=>{"use strict";n(jm,"default")});function Wm(t,e){var r=wn(t,e);if(!r)return t+"";var i=r[0],o=r[1],s=o-(Gm=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=i.length;return s===a?i:s>a?i+new Array(s-a+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+wn(t,Math.max(0,e+s-1))[0]}var Gm,Hm=m(()=>{"use strict";Qa();n(Wm,"default")});function Ch(t,e){var r=wn(t,e);if(!r)return t+"";var i=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}var AC=m(()=>{"use strict";Qa();n(Ch,"default")});var qm,MC=m(()=>{"use strict";Qa();Hm();AC();qm={"%":n((t,e)=>(t*100).toFixed(e),"%"),b:n(t=>Math.round(t).toString(2),"b"),c:n(t=>t+"","c"),d:Im,e:n((t,e)=>t.toExponential(e),"e"),f:n((t,e)=>t.toFixed(e),"f"),g:n((t,e)=>t.toPrecision(e),"g"),o:n(t=>Math.round(t).toString(8),"o"),p:n((t,e)=>Ch(t*100,e),"p"),r:Ch,s:Wm,X:n(t=>Math.round(t).toString(16).toUpperCase(),"X"),x:n(t=>Math.round(t).toString(16),"x")}});function wh(t){return t}var BC=m(()=>{"use strict";n(wh,"default")});function Vm(t){var e=t.grouping===void 0||t.thousands===void 0?wh:Pm(LC.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",i=t.currency===void 0?"":t.currency[1]+"",o=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?wh:$m(LC.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",l=t.minus===void 0?"\u2212":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function h(f){f=Ja(f);var p=f.fill,d=f.align,g=f.sign,x=f.symbol,y=f.zero,b=f.width,C=f.comma,k=f.precision,T=f.trim,v=f.type;v==="n"?(C=!0,v="g"):qm[v]||(k===void 0&&(k=12),T=!0,v="g"),(y||p==="0"&&d==="=")&&(y=!0,p="0",d="=");var D=x==="$"?r:x==="#"&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",B=x==="$"?i:/[%p]/.test(v)?a:"",R=qm[v],P=/[defgprs%]/.test(v);k=k===void 0?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,k)):Math.max(0,Math.min(20,k));function U(N){var O=D,A=B,M,z,F;if(v==="c")A=R(N)+A,N="";else{N=+N;var V=N<0||1/N<0;if(N=isNaN(N)?c:R(Math.abs(N),k),T&&(N=jm(N)),V&&+N==0&&g!=="+"&&(V=!1),O=(V?g==="("?g:l:g==="-"||g==="("?"":g)+O,A=(v==="s"?DC[8+Gm/3]:"")+A+(V&&g==="("?")":""),P){for(M=-1,z=N.length;++MF||F>57){A=(F===46?o+N.slice(M+1):N.slice(M))+A,N=N.slice(0,M);break}}}C&&!y&&(N=e(N,1/0));var q=O.length+N.length+A.length,Q=q>1)+O+N+A+Q.slice(q);break;default:N=Q+O+N+A;break}return s(N)}return n(U,"format"),U.toString=function(){return f+""},U}n(h,"newFormat");function u(f,p){var d=h((f=Ja(f),f.type="f",f)),g=Math.max(-8,Math.min(8,Math.floor(Rm(p)/3)))*3,x=Math.pow(10,-g),y=DC[8+g/3];return function(b){return d(x*b)+y}}return n(u,"formatPrefix"),{format:h,formatPrefix:u}}var LC,DC,FC=m(()=>{"use strict";SC();kC();vC();TC();EC();MC();Hm();BC();LC=Array.prototype.map,DC=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];n(Vm,"default")});function Um(t){return _h=Vm(t),OC=_h.format,NC=_h.formatPrefix,_h}var _h,OC,NC,IC=m(()=>{"use strict";FC();Um({thousands:",",grouping:[3],currency:["$",""]});n(Um,"defaultLocale")});var RC=m(()=>{"use strict";IC()});var PC=m(()=>{"use strict"});var $C=m(()=>{"use strict"});var zC=m(()=>{"use strict"});var jC=m(()=>{"use strict"});function wr(t,e,r,i){function o(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return n(o,"interval"),o.floor=s=>(t(s=new Date(+s)),s),o.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),o.round=s=>{let a=o(s),l=o.ceil(s);return s-a(e(s=new Date(+s),a==null?1:Math.floor(a)),s),o.range=(s,a,l)=>{let c=[];if(s=o.ceil(s),l=l==null?1:Math.floor(l),!(s0))return c;let h;do c.push(h=new Date(+s)),e(s,l),t(s);while(hwr(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,l)=>{if(a>=a)if(l<0)for(;++l<=0;)for(;e(a,-1),!s(a););else for(;--l>=0;)for(;e(a,1),!s(a););}),r&&(o.count=(s,a)=>(Ym.setTime(+s),Xm.setTime(+a),t(Ym),t(Xm),Math.floor(r(Ym,Xm))),o.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?o.filter(i?a=>i(a)%s===0:a=>o.count(0,a)%s===0):o)),o}var Ym,Xm,Sh=m(()=>{"use strict";Ym=new Date,Xm=new Date;n(wr,"timeInterval")});var tl,t4,el,e4,GC,r4,WC=m(()=>{"use strict";Sh();tl=wr(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1),t4=tl.range,el=wr(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),e4=el.range,GC=wr(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5)),r4=GC.range});function _n(t){return wr(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}function Sn(t){return wr(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/6048e5)}var rl,ps,HC,qC,go,VC,UC,YC,o4,n4,s4,a4,l4,c4,il,ds,XC,KC,xo,ZC,QC,JC,h4,u4,f4,p4,d4,m4,tw=m(()=>{"use strict";Sh();n(_n,"timeWeekday");rl=_n(0),ps=_n(1),HC=_n(2),qC=_n(3),go=_n(4),VC=_n(5),UC=_n(6),YC=rl.range,o4=ps.range,n4=HC.range,s4=qC.range,a4=go.range,l4=VC.range,c4=UC.range;n(Sn,"utcWeekday");il=Sn(0),ds=Sn(1),XC=Sn(2),KC=Sn(3),xo=Sn(4),ZC=Sn(5),QC=Sn(6),JC=il.range,h4=ds.range,u4=XC.range,f4=KC.range,p4=xo.range,d4=ZC.range,m4=QC.range});var ji,g4,Gi,x4,ew=m(()=>{"use strict";Sh();ji=wr(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());ji.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:wr(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});g4=ji.range,Gi=wr(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Gi.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:wr(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});x4=Gi.range});var Zm=m(()=>{"use strict";WC();tw();ew()});function Qm(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Jm(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ol(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function tg(t){var e=t.dateTime,r=t.date,i=t.time,o=t.periods,s=t.days,a=t.shortDays,l=t.months,c=t.shortMonths,h=nl(o),u=sl(o),f=nl(s),p=sl(s),d=nl(a),g=sl(a),x=nl(l),y=sl(l),b=nl(c),C=sl(c),k={a:V,A:q,b:Q,B:Ct,c:null,d:aw,e:aw,f:z4,g:K4,G:Q4,H:R4,I:P4,j:$4,L:fw,m:j4,M:G4,p:lt,q:ut,Q:hw,s:uw,S:W4,u:H4,U:q4,V:V4,w:U4,W:Y4,x:null,X:null,y:X4,Y:Z4,Z:J4,"%":cw},T={a:ct,A:Wt,b:wt,B:Yt,c:null,d:lw,e:lw,f:i6,g:p6,G:m6,H:t6,I:e6,j:r6,L:dw,m:o6,M:n6,p:Ht,q:qt,Q:hw,s:uw,S:s6,u:a6,U:l6,V:c6,w:h6,W:u6,x:null,X:null,y:f6,Y:d6,Z:g6,"%":cw},v={a:U,A:N,b:O,B:A,c:M,d:nw,e:nw,f:F4,g:ow,G:iw,H:sw,I:sw,j:M4,L:D4,m:A4,M:B4,p:P,q:E4,Q:N4,s:I4,S:L4,u:_4,U:S4,V:k4,w:w4,W:v4,x:z,X:F,y:ow,Y:iw,Z:T4,"%":O4};k.x=D(r,k),k.X=D(i,k),k.c=D(e,k),T.x=D(r,T),T.X=D(i,T),T.c=D(e,T);function D(et,xt){return function(kt){var X=[],Qt=-1,Et=0,ce=et.length,ne,Rt,ye;for(kt instanceof Date||(kt=new Date(+kt));++Qt53)return null;"w"in X||(X.w=1),"Z"in X?(Et=Jm(ol(X.y,0,1)),ce=Et.getUTCDay(),Et=ce>4||ce===0?ds.ceil(Et):ds(Et),Et=el.offset(Et,(X.V-1)*7),X.y=Et.getUTCFullYear(),X.m=Et.getUTCMonth(),X.d=Et.getUTCDate()+(X.w+6)%7):(Et=Qm(ol(X.y,0,1)),ce=Et.getDay(),Et=ce>4||ce===0?ps.ceil(Et):ps(Et),Et=tl.offset(Et,(X.V-1)*7),X.y=Et.getFullYear(),X.m=Et.getMonth(),X.d=Et.getDate()+(X.w+6)%7)}else("W"in X||"U"in X)&&("w"in X||(X.w="u"in X?X.u%7:"W"in X?1:0),ce="Z"in X?Jm(ol(X.y,0,1)).getUTCDay():Qm(ol(X.y,0,1)).getDay(),X.m=0,X.d="W"in X?(X.w+6)%7+X.W*7-(ce+5)%7:X.w+X.U*7-(ce+6)%7);return"Z"in X?(X.H+=X.Z/100|0,X.M+=X.Z%100,Jm(X)):Qm(X)}}n(B,"newParse");function R(et,xt,kt,X){for(var Qt=0,Et=xt.length,ce=kt.length,ne,Rt;Qt=ce)return-1;if(ne=xt.charCodeAt(Qt++),ne===37){if(ne=xt.charAt(Qt++),Rt=v[ne in rw?xt.charAt(Qt++):ne],!Rt||(X=Rt(et,kt,X))<0)return-1}else if(ne!=kt.charCodeAt(X++))return-1}return X}n(R,"parseSpecifier");function P(et,xt,kt){var X=h.exec(xt.slice(kt));return X?(et.p=u.get(X[0].toLowerCase()),kt+X[0].length):-1}n(P,"parsePeriod");function U(et,xt,kt){var X=d.exec(xt.slice(kt));return X?(et.w=g.get(X[0].toLowerCase()),kt+X[0].length):-1}n(U,"parseShortWeekday");function N(et,xt,kt){var X=f.exec(xt.slice(kt));return X?(et.w=p.get(X[0].toLowerCase()),kt+X[0].length):-1}n(N,"parseWeekday");function O(et,xt,kt){var X=b.exec(xt.slice(kt));return X?(et.m=C.get(X[0].toLowerCase()),kt+X[0].length):-1}n(O,"parseShortMonth");function A(et,xt,kt){var X=x.exec(xt.slice(kt));return X?(et.m=y.get(X[0].toLowerCase()),kt+X[0].length):-1}n(A,"parseMonth");function M(et,xt,kt){return R(et,e,xt,kt)}n(M,"parseLocaleDateTime");function z(et,xt,kt){return R(et,r,xt,kt)}n(z,"parseLocaleDate");function F(et,xt,kt){return R(et,i,xt,kt)}n(F,"parseLocaleTime");function V(et){return a[et.getDay()]}n(V,"formatShortWeekday");function q(et){return s[et.getDay()]}n(q,"formatWeekday");function Q(et){return c[et.getMonth()]}n(Q,"formatShortMonth");function Ct(et){return l[et.getMonth()]}n(Ct,"formatMonth");function lt(et){return o[+(et.getHours()>=12)]}n(lt,"formatPeriod");function ut(et){return 1+~~(et.getMonth()/3)}n(ut,"formatQuarter");function ct(et){return a[et.getUTCDay()]}n(ct,"formatUTCShortWeekday");function Wt(et){return s[et.getUTCDay()]}n(Wt,"formatUTCWeekday");function wt(et){return c[et.getUTCMonth()]}n(wt,"formatUTCShortMonth");function Yt(et){return l[et.getUTCMonth()]}n(Yt,"formatUTCMonth");function Ht(et){return o[+(et.getUTCHours()>=12)]}n(Ht,"formatUTCPeriod");function qt(et){return 1+~~(et.getUTCMonth()/3)}return n(qt,"formatUTCQuarter"),{format:n(function(et){var xt=D(et+="",k);return xt.toString=function(){return et},xt},"format"),parse:n(function(et){var xt=B(et+="",!1);return xt.toString=function(){return et},xt},"parse"),utcFormat:n(function(et){var xt=D(et+="",T);return xt.toString=function(){return et},xt},"utcFormat"),utcParse:n(function(et){var xt=B(et+="",!0);return xt.toString=function(){return et},xt},"utcParse")}}function Pt(t,e,r){var i=t<0?"-":"",o=(i?-t:t)+"",s=o.length;return i+(s[e.toLowerCase(),r]))}function w4(t,e,r){var i=Ie.exec(e.slice(r,r+1));return i?(t.w=+i[0],r+i[0].length):-1}function _4(t,e,r){var i=Ie.exec(e.slice(r,r+1));return i?(t.u=+i[0],r+i[0].length):-1}function S4(t,e,r){var i=Ie.exec(e.slice(r,r+2));return i?(t.U=+i[0],r+i[0].length):-1}function k4(t,e,r){var i=Ie.exec(e.slice(r,r+2));return i?(t.V=+i[0],r+i[0].length):-1}function v4(t,e,r){var i=Ie.exec(e.slice(r,r+2));return i?(t.W=+i[0],r+i[0].length):-1}function iw(t,e,r){var i=Ie.exec(e.slice(r,r+4));return i?(t.y=+i[0],r+i[0].length):-1}function ow(t,e,r){var i=Ie.exec(e.slice(r,r+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function T4(t,e,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function E4(t,e,r){var i=Ie.exec(e.slice(r,r+1));return i?(t.q=i[0]*3-3,r+i[0].length):-1}function A4(t,e,r){var i=Ie.exec(e.slice(r,r+2));return i?(t.m=i[0]-1,r+i[0].length):-1}function nw(t,e,r){var i=Ie.exec(e.slice(r,r+2));return i?(t.d=+i[0],r+i[0].length):-1}function M4(t,e,r){var i=Ie.exec(e.slice(r,r+3));return i?(t.m=0,t.d=+i[0],r+i[0].length):-1}function sw(t,e,r){var i=Ie.exec(e.slice(r,r+2));return i?(t.H=+i[0],r+i[0].length):-1}function B4(t,e,r){var i=Ie.exec(e.slice(r,r+2));return i?(t.M=+i[0],r+i[0].length):-1}function L4(t,e,r){var i=Ie.exec(e.slice(r,r+2));return i?(t.S=+i[0],r+i[0].length):-1}function D4(t,e,r){var i=Ie.exec(e.slice(r,r+3));return i?(t.L=+i[0],r+i[0].length):-1}function F4(t,e,r){var i=Ie.exec(e.slice(r,r+6));return i?(t.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function O4(t,e,r){var i=y4.exec(e.slice(r,r+1));return i?r+i[0].length:-1}function N4(t,e,r){var i=Ie.exec(e.slice(r));return i?(t.Q=+i[0],r+i[0].length):-1}function I4(t,e,r){var i=Ie.exec(e.slice(r));return i?(t.s=+i[0],r+i[0].length):-1}function aw(t,e){return Pt(t.getDate(),e,2)}function R4(t,e){return Pt(t.getHours(),e,2)}function P4(t,e){return Pt(t.getHours()%12||12,e,2)}function $4(t,e){return Pt(1+tl.count(ji(t),t),e,3)}function fw(t,e){return Pt(t.getMilliseconds(),e,3)}function z4(t,e){return fw(t,e)+"000"}function j4(t,e){return Pt(t.getMonth()+1,e,2)}function G4(t,e){return Pt(t.getMinutes(),e,2)}function W4(t,e){return Pt(t.getSeconds(),e,2)}function H4(t){var e=t.getDay();return e===0?7:e}function q4(t,e){return Pt(rl.count(ji(t)-1,t),e,2)}function pw(t){var e=t.getDay();return e>=4||e===0?go(t):go.ceil(t)}function V4(t,e){return t=pw(t),Pt(go.count(ji(t),t)+(ji(t).getDay()===4),e,2)}function U4(t){return t.getDay()}function Y4(t,e){return Pt(ps.count(ji(t)-1,t),e,2)}function X4(t,e){return Pt(t.getFullYear()%100,e,2)}function K4(t,e){return t=pw(t),Pt(t.getFullYear()%100,e,2)}function Z4(t,e){return Pt(t.getFullYear()%1e4,e,4)}function Q4(t,e){var r=t.getDay();return t=r>=4||r===0?go(t):go.ceil(t),Pt(t.getFullYear()%1e4,e,4)}function J4(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Pt(e/60|0,"0",2)+Pt(e%60,"0",2)}function lw(t,e){return Pt(t.getUTCDate(),e,2)}function t6(t,e){return Pt(t.getUTCHours(),e,2)}function e6(t,e){return Pt(t.getUTCHours()%12||12,e,2)}function r6(t,e){return Pt(1+el.count(Gi(t),t),e,3)}function dw(t,e){return Pt(t.getUTCMilliseconds(),e,3)}function i6(t,e){return dw(t,e)+"000"}function o6(t,e){return Pt(t.getUTCMonth()+1,e,2)}function n6(t,e){return Pt(t.getUTCMinutes(),e,2)}function s6(t,e){return Pt(t.getUTCSeconds(),e,2)}function a6(t){var e=t.getUTCDay();return e===0?7:e}function l6(t,e){return Pt(il.count(Gi(t)-1,t),e,2)}function mw(t){var e=t.getUTCDay();return e>=4||e===0?xo(t):xo.ceil(t)}function c6(t,e){return t=mw(t),Pt(xo.count(Gi(t),t)+(Gi(t).getUTCDay()===4),e,2)}function h6(t){return t.getUTCDay()}function u6(t,e){return Pt(ds.count(Gi(t)-1,t),e,2)}function f6(t,e){return Pt(t.getUTCFullYear()%100,e,2)}function p6(t,e){return t=mw(t),Pt(t.getUTCFullYear()%100,e,2)}function d6(t,e){return Pt(t.getUTCFullYear()%1e4,e,4)}function m6(t,e){var r=t.getUTCDay();return t=r>=4||r===0?xo(t):xo.ceil(t),Pt(t.getUTCFullYear()%1e4,e,4)}function g6(){return"+0000"}function cw(){return"%"}function hw(t){return+t}function uw(t){return Math.floor(+t/1e3)}var rw,Ie,y4,b4,gw=m(()=>{"use strict";Zm();n(Qm,"localDate");n(Jm,"utcDate");n(ol,"newDate");n(tg,"formatLocale");rw={"-":"",_:" ",0:"0"},Ie=/^\s*\d+/,y4=/^%/,b4=/[\\^$*+?|[\]().{}]/g;n(Pt,"pad");n(C4,"requote");n(nl,"formatRe");n(sl,"formatLookup");n(w4,"parseWeekdayNumberSunday");n(_4,"parseWeekdayNumberMonday");n(S4,"parseWeekNumberSunday");n(k4,"parseWeekNumberISO");n(v4,"parseWeekNumberMonday");n(iw,"parseFullYear");n(ow,"parseYear");n(T4,"parseZone");n(E4,"parseQuarter");n(A4,"parseMonthNumber");n(nw,"parseDayOfMonth");n(M4,"parseDayOfYear");n(sw,"parseHour24");n(B4,"parseMinutes");n(L4,"parseSeconds");n(D4,"parseMilliseconds");n(F4,"parseMicroseconds");n(O4,"parseLiteralPercent");n(N4,"parseUnixTimestamp");n(I4,"parseUnixTimestampSeconds");n(aw,"formatDayOfMonth");n(R4,"formatHour24");n(P4,"formatHour12");n($4,"formatDayOfYear");n(fw,"formatMilliseconds");n(z4,"formatMicroseconds");n(j4,"formatMonthNumber");n(G4,"formatMinutes");n(W4,"formatSeconds");n(H4,"formatWeekdayNumberMonday");n(q4,"formatWeekNumberSunday");n(pw,"dISO");n(V4,"formatWeekNumberISO");n(U4,"formatWeekdayNumberSunday");n(Y4,"formatWeekNumberMonday");n(X4,"formatYear");n(K4,"formatYearISO");n(Z4,"formatFullYear");n(Q4,"formatFullYearISO");n(J4,"formatZone");n(lw,"formatUTCDayOfMonth");n(t6,"formatUTCHour24");n(e6,"formatUTCHour12");n(r6,"formatUTCDayOfYear");n(dw,"formatUTCMilliseconds");n(i6,"formatUTCMicroseconds");n(o6,"formatUTCMonthNumber");n(n6,"formatUTCMinutes");n(s6,"formatUTCSeconds");n(a6,"formatUTCWeekdayNumberMonday");n(l6,"formatUTCWeekNumberSunday");n(mw,"UTCdISO");n(c6,"formatUTCWeekNumberISO");n(h6,"formatUTCWeekdayNumberSunday");n(u6,"formatUTCWeekNumberMonday");n(f6,"formatUTCYear");n(p6,"formatUTCYearISO");n(d6,"formatUTCFullYear");n(m6,"formatUTCFullYearISO");n(g6,"formatUTCZone");n(cw,"formatLiteralPercent");n(hw,"formatUnixTimestamp");n(uw,"formatUnixTimestampSeconds")});function eg(t){return ms=tg(t),xw=ms.format,yw=ms.parse,bw=ms.utcFormat,Cw=ms.utcParse,ms}var ms,xw,yw,bw,Cw,ww=m(()=>{"use strict";gw();eg({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});n(eg,"defaultLocale")});var _w=m(()=>{"use strict";ww()});var Sw=m(()=>{"use strict"});var kw=m(()=>{"use strict"});function yo(t){return n(function(){return t},"constant")}var vw=m(()=>{"use strict";n(yo,"default")});var rg,Tw,Mat,Bat,Ew=m(()=>{"use strict";rg=1e-12,Tw=Math.PI,Mat=Tw/2,Bat=2*Tw});function Aw(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{let i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);e=i}return t},()=>new Cn(e)}var Mw=m(()=>{"use strict";Nm();n(Aw,"withPath")});function ig(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}var Iat,Bw=m(()=>{"use strict";Iat=Array.prototype.slice;n(ig,"default")});function Lw(t){this._context=t}function Wi(t){return new Lw(t)}var og=m(()=>{"use strict";n(Lw,"Linear");Lw.prototype={areaStart:n(function(){this._line=0},"areaStart"),areaEnd:n(function(){this._line=NaN},"areaEnd"),lineStart:n(function(){this._point=0},"lineStart"),lineEnd:n(function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:n(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}},"point")};n(Wi,"default")});function Dw(t){return t[0]}function Fw(t){return t[1]}var Ow=m(()=>{"use strict";n(Dw,"x");n(Fw,"y")});function kh(t,e){var r=yo(!0),i=null,o=Wi,s=null,a=Aw(l);t=typeof t=="function"?t:t===void 0?Dw:yo(t),e=typeof e=="function"?e:e===void 0?Fw:yo(e);function l(c){var h,u=(c=ig(c)).length,f,p=!1,d;for(i==null&&(s=o(d=a())),h=0;h<=u;++h)!(h{"use strict";Bw();vw();og();Mw();Ow();n(kh,"default")});function al(t){return new vh(t,!0)}function ll(t){return new vh(t,!1)}var vh,Iw=m(()=>{"use strict";vh=class{static{n(this,"Bump")}constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}};n(al,"bumpX");n(ll,"bumpY")});function _r(){}var cl=m(()=>{"use strict";n(_r,"default")});function gs(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function hl(t){this._context=t}function bo(t){return new hl(t)}var ul=m(()=>{"use strict";n(gs,"point");n(hl,"Basis");hl.prototype={areaStart:n(function(){this._line=0},"areaStart"),areaEnd:n(function(){this._line=NaN},"areaEnd"),lineStart:n(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:n(function(){switch(this._point){case 3:gs(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:n(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:gs(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")};n(bo,"default")});function Rw(t){this._context=t}function Th(t){return new Rw(t)}var Pw=m(()=>{"use strict";cl();ul();n(Rw,"BasisClosed");Rw.prototype={areaStart:_r,areaEnd:_r,lineStart:n(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},"lineStart"),lineEnd:n(function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},"lineEnd"),point:n(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:gs(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")};n(Th,"default")});function $w(t){this._context=t}function Eh(t){return new $w(t)}var zw=m(()=>{"use strict";ul();n($w,"BasisOpen");$w.prototype={areaStart:n(function(){this._line=0},"areaStart"),areaEnd:n(function(){this._line=NaN},"areaEnd"),lineStart:n(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:n(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:n(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:gs(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")};n(Eh,"default")});function jw(t,e){this._basis=new hl(t),this._beta=e}var ng,Gw=m(()=>{"use strict";ul();n(jw,"Bundle");jw.prototype={lineStart:n(function(){this._x=[],this._y=[],this._basis.lineStart()},"lineStart"),lineEnd:n(function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var i=t[0],o=e[0],s=t[r]-i,a=e[r]-o,l=-1,c;++l<=r;)c=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+c*s),this._beta*e[l]+(1-this._beta)*(o+c*a));this._x=this._y=null,this._basis.lineEnd()},"lineEnd"),point:n(function(t,e){this._x.push(+t),this._y.push(+e)},"point")};ng=n((function t(e){function r(i){return e===1?new hl(i):new jw(i,e)}return n(r,"bundle"),r.beta=function(i){return t(+i)},r}),"custom")(.85)});function xs(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function Ah(t,e){this._context=t,this._k=(1-e)/6}var fl,pl=m(()=>{"use strict";n(xs,"point");n(Ah,"Cardinal");Ah.prototype={areaStart:n(function(){this._line=0},"areaStart"),areaEnd:n(function(){this._line=NaN},"areaEnd"),lineStart:n(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:n(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:xs(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:n(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:xs(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};fl=n((function t(e){function r(i){return new Ah(i,e)}return n(r,"cardinal"),r.tension=function(i){return t(+i)},r}),"custom")(0)});function Mh(t,e){this._context=t,this._k=(1-e)/6}var sg,ag=m(()=>{"use strict";cl();pl();n(Mh,"CardinalClosed");Mh.prototype={areaStart:_r,areaEnd:_r,lineStart:n(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},"lineStart"),lineEnd:n(function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},"lineEnd"),point:n(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:xs(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};sg=n((function t(e){function r(i){return new Mh(i,e)}return n(r,"cardinal"),r.tension=function(i){return t(+i)},r}),"custom")(0)});function Bh(t,e){this._context=t,this._k=(1-e)/6}var lg,cg=m(()=>{"use strict";pl();n(Bh,"CardinalOpen");Bh.prototype={areaStart:n(function(){this._line=0},"areaStart"),areaEnd:n(function(){this._line=NaN},"areaEnd"),lineStart:n(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:n(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:n(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:xs(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};lg=n((function t(e){function r(i){return new Bh(i,e)}return n(r,"cardinal"),r.tension=function(i){return t(+i)},r}),"custom")(0)});function dl(t,e,r){var i=t._x1,o=t._y1,s=t._x2,a=t._y2;if(t._l01_a>rg){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,o=(o*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>rg){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*h+t._x1*t._l23_2a-e*t._l12_2a)/u,a=(a*h+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(i,o,s,a,t._x2,t._y2)}function Ww(t,e){this._context=t,this._alpha=e}var ml,Lh=m(()=>{"use strict";Ew();pl();n(dl,"point");n(Ww,"CatmullRom");Ww.prototype={areaStart:n(function(){this._line=0},"areaStart"),areaEnd:n(function(){this._line=NaN},"areaEnd"),lineStart:n(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:n(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:n(function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:dl(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};ml=n((function t(e){function r(i){return e?new Ww(i,e):new Ah(i,0)}return n(r,"catmullRom"),r.alpha=function(i){return t(+i)},r}),"custom")(.5)});function Hw(t,e){this._context=t,this._alpha=e}var hg,qw=m(()=>{"use strict";ag();cl();Lh();n(Hw,"CatmullRomClosed");Hw.prototype={areaStart:_r,areaEnd:_r,lineStart:n(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:n(function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},"lineEnd"),point:n(function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:dl(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};hg=n((function t(e){function r(i){return e?new Hw(i,e):new Mh(i,0)}return n(r,"catmullRom"),r.alpha=function(i){return t(+i)},r}),"custom")(.5)});function Vw(t,e){this._context=t,this._alpha=e}var ug,Uw=m(()=>{"use strict";cg();Lh();n(Vw,"CatmullRomOpen");Vw.prototype={areaStart:n(function(){this._line=0},"areaStart"),areaEnd:n(function(){this._line=NaN},"areaEnd"),lineStart:n(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:n(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:n(function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:dl(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};ug=n((function t(e){function r(i){return e?new Vw(i,e):new Bh(i,0)}return n(r,"catmullRom"),r.alpha=function(i){return t(+i)},r}),"custom")(.5)});function Yw(t){this._context=t}function Dh(t){return new Yw(t)}var Xw=m(()=>{"use strict";cl();n(Yw,"LinearClosed");Yw.prototype={areaStart:_r,areaEnd:_r,lineStart:n(function(){this._point=0},"lineStart"),lineEnd:n(function(){this._point&&this._context.closePath()},"lineEnd"),point:n(function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))},"point")};n(Dh,"default")});function Kw(t){return t<0?-1:1}function Zw(t,e,r){var i=t._x1-t._x0,o=e-t._x1,s=(t._y1-t._y0)/(i||o<0&&-0),a=(r-t._y1)/(o||i<0&&-0),l=(s*o+a*i)/(i+o);return(Kw(s)+Kw(a))*Math.min(Math.abs(s),Math.abs(a),.5*Math.abs(l))||0}function Qw(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function fg(t,e,r){var i=t._x0,o=t._y0,s=t._x1,a=t._y1,l=(s-i)/3;t._context.bezierCurveTo(i+l,o+l*e,s-l,a-l*r,s,a)}function Fh(t){this._context=t}function Jw(t){this._context=new t_(t)}function t_(t){this._context=t}function gl(t){return new Fh(t)}function xl(t){return new Jw(t)}var e_=m(()=>{"use strict";n(Kw,"sign");n(Zw,"slope3");n(Qw,"slope2");n(fg,"point");n(Fh,"MonotoneX");Fh.prototype={areaStart:n(function(){this._line=0},"areaStart"),areaEnd:n(function(){this._line=NaN},"areaEnd"),lineStart:n(function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},"lineStart"),lineEnd:n(function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:fg(this,this._t0,Qw(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:n(function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,fg(this,Qw(this,r=Zw(this,t,e)),r);break;default:fg(this,this._t0,r=Zw(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}},"point")};n(Jw,"MonotoneY");(Jw.prototype=Object.create(Fh.prototype)).point=function(t,e){Fh.prototype.point.call(this,e,t)};n(t_,"ReflectContext");t_.prototype={moveTo:n(function(t,e){this._context.moveTo(e,t)},"moveTo"),closePath:n(function(){this._context.closePath()},"closePath"),lineTo:n(function(t,e){this._context.lineTo(e,t)},"lineTo"),bezierCurveTo:n(function(t,e,r,i,o,s){this._context.bezierCurveTo(e,t,i,r,s,o)},"bezierCurveTo")};n(gl,"monotoneX");n(xl,"monotoneY")});function i_(t){this._context=t}function r_(t){var e,r=t.length-1,i,o=new Array(r),s=new Array(r),a=new Array(r);for(o[0]=0,s[0]=2,a[0]=t[0]+2*t[1],e=1;e=0;--e)o[e]=(a[e]-o[e+1])/s[e];for(s[r-1]=(t[r]+o[r-1])/2,e=0;e{"use strict";n(i_,"Natural");i_.prototype={areaStart:n(function(){this._line=0},"areaStart"),areaEnd:n(function(){this._line=NaN},"areaEnd"),lineStart:n(function(){this._x=[],this._y=[]},"lineStart"),lineEnd:n(function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var i=r_(t),o=r_(e),s=0,a=1;a{"use strict";n(Oh,"Step");Oh.prototype={areaStart:n(function(){this._line=0},"areaStart"),areaEnd:n(function(){this._line=NaN},"areaEnd"),lineStart:n(function(){this._x=this._y=NaN,this._point=0},"lineStart"),lineEnd:n(function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},"lineEnd"),point:n(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e},"point")};n(bs,"default");n(yl,"stepBefore");n(bl,"stepAfter")});var s_=m(()=>{"use strict";Nw();Pw();zw();ul();Iw();Gw();ag();cg();pl();qw();Uw();Lh();Xw();og();e_();o_();n_()});var a_=m(()=>{"use strict"});var l_=m(()=>{"use strict"});function Co(t,e,r){this.k=t,this.x=e,this.y=r}function dg(t){for(;!t.__zoom;)if(!(t=t.parentNode))return pg;return t.__zoom}var pg,mg=m(()=>{"use strict";n(Co,"Transform");Co.prototype={constructor:Co,scale:n(function(t){return t===1?this:new Co(this.k*t,this.x,this.y)},"scale"),translate:n(function(t,e){return t===0&e===0?this:new Co(this.k,this.x+this.k*t,this.y+this.k*e)},"translate"),apply:n(function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},"apply"),applyX:n(function(t){return t*this.k+this.x},"applyX"),applyY:n(function(t){return t*this.k+this.y},"applyY"),invert:n(function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},"invert"),invertX:n(function(t){return(t-this.x)/this.k},"invertX"),invertY:n(function(t){return(t-this.y)/this.k},"invertY"),rescaleX:n(function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},"rescaleX"),rescaleY:n(function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},"rescaleY"),toString:n(function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"},"toString")};pg=new Co(1,0,0);dg.prototype=Co.prototype;n(dg,"transform")});var c_=m(()=>{"use strict"});var h_=m(()=>{"use strict";bh();a_();l_();mg();c_()});var u_=m(()=>{"use strict";h_();mg()});var je=m(()=>{"use strict";lb();cb();fC();gC();eh();xC();yC();rd();t2();bC();Bm();CC();_C();RC();PC();$C();$a();Nm();zC();wC();jC();Sw();kw();ti();s_();Zm();_w();ph();bh();u_()});function E_(t){return typeof t>"u"||t===null}function x6(t){return typeof t=="object"&&t!==null}function y6(t){return Array.isArray(t)?t:E_(t)?[]:[t]}function b6(t,e){var r,i,o,s;if(e)for(s=Object.keys(e),r=0,i=s.length;rl&&(s=" ... ",e=i-l+s.length),r-i>l&&(a=" ...",r=i+l-a.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+a,pos:i-e+s.length}}function xg(t,e){return Le.repeat(" ",e-t.length)+t}function A6(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,i=[0],o=[],s,a=-1;s=r.exec(t.buffer);)o.push(s.index),i.push(s.index+s[0].length),t.position<=s.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var l="",c,h,u=Math.min(t.line+e.linesAfter,o.length).toString().length,f=e.maxLength-(e.indent+u+3);for(c=1;c<=e.linesBefore&&!(a-c<0);c++)h=gg(t.buffer,i[a-c],o[a-c],t.position-(i[a]-i[a-c]),f),l=Le.repeat(" ",e.indent)+xg((t.line-c+1).toString(),u)+" | "+h.str+` `+l;for(h=gg(t.buffer,i[a],o[a],t.position,f),l+=Le.repeat(" ",e.indent)+xg((t.line+1).toString(),u)+" | "+h.str+` `,l+=Le.repeat("-",e.indent+u+3+h.pos)+`^ `,c=1;c<=e.linesAfter&&!(a+c>=o.length);c++)h=gg(t.buffer,i[a+c],o[a+c],t.position-(i[a]-i[a+c]),f),l+=Le.repeat(" ",e.indent)+xg((t.line+c+1).toString(),u)+" | "+h.str+` `;return l.replace(/\n$/,"")}function D6(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function F6(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(B6.indexOf(r)===-1)throw new ar('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=D6(e.styleAliases||null),L6.indexOf(this.kind)===-1)throw new ar('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}function f_(t,e){var r=[];return t[e].forEach(function(i){var o=r.length;r.forEach(function(s,a){s.tag===i.tag&&s.kind===i.kind&&s.multi===i.multi&&(o=a)}),r[o]=i}),r}function O6(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(o){o.multi?(t.multi[o.kind].push(o),t.multi.fallback.push(o)):t[o.kind][o.tag]=t.fallback[o.tag]=o}for(n(i,"collectType"),e=0,r=arguments.length;e=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}function nI(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Le.isNegativeZero(t))return"-0.0";return r=t.toString(10),oI.test(r)?r.replace("e",".e"):r}function sI(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Le.isNegativeZero(t))}function cI(t){return t===null?!1:B_.exec(t)!==null||L_.exec(t)!==null}function hI(t){var e,r,i,o,s,a,l,c=0,h=null,u,f,p;if(e=B_.exec(t),e===null&&(e=L_.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,o=+e[3],!e[4])return new Date(Date.UTC(r,i,o));if(s=+e[4],a=+e[5],l=+e[6],e[7]){for(c=e[7].slice(0,3);c.length<3;)c+="0";c=+c}return e[9]&&(u=+e[10],f=+(e[11]||0),h=(u*60+f)*6e4,e[9]==="-"&&(h=-h)),p=new Date(Date.UTC(r,i,o,s,a,l,c)),h&&p.setTime(p.getTime()-h),p}function uI(t){return t.toISOString()}function pI(t){return t==="<<"||t===null}function mI(t){if(t===null)return!1;var e,r,i=0,o=t.length,s=kg;for(r=0;r64)){if(e<0)return!1;i+=6}return i%8===0}function gI(t){var e,r,i=t.replace(/[\r\n=]/g,""),o=i.length,s=kg,a=0,l=[];for(e=0;e>16&255),l.push(a>>8&255),l.push(a&255)),a=a<<6|s.indexOf(i.charAt(e));return r=o%4*6,r===0?(l.push(a>>16&255),l.push(a>>8&255),l.push(a&255)):r===18?(l.push(a>>10&255),l.push(a>>2&255)):r===12&&l.push(a>>4&255),new Uint8Array(l)}function xI(t){var e="",r=0,i,o,s=t.length,a=kg;for(i=0;i>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]),r=(r<<8)+t[i];return o=s%3,o===0?(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]):o===2?(e+=a[r>>10&63],e+=a[r>>4&63],e+=a[r<<2&63],e+=a[64]):o===1&&(e+=a[r>>2&63],e+=a[r<<4&63],e+=a[64],e+=a[64]),e}function yI(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}function _I(t){if(t===null)return!0;var e=[],r,i,o,s,a,l=t;for(r=0,i=l.length;r>10)+55296,(t-65536&1023)+56320)}function jI(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||D_,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 $_(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=M6(r),new ar(e,r)}function yt(t,e){throw $_(t,e)}function Rh(t,e){t.onWarning&&t.onWarning.call(null,$_(t,e))}function wo(t,e,r,i){var o,s,a,l;if(e1&&(t.result+=Le.repeat(` `,e-1))}function GI(t,e,r){var i,o,s,a,l,c,h,u,f=t.kind,p=t.result,d;if(d=t.input.charCodeAt(t.position),lr(d)||ws(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(o=t.input.charCodeAt(t.position+1),lr(o)||r&&ws(o)))return!1;for(t.kind="scalar",t.result="",s=a=t.position,l=!1;d!==0;){if(d===58){if(o=t.input.charCodeAt(t.position+1),lr(o)||r&&ws(o))break}else if(d===35){if(i=t.input.charCodeAt(t.position-1),lr(i))break}else{if(t.position===t.lineStart&&zh(t)||r&&ws(d))break;if(ui(d))if(c=t.line,h=t.lineStart,u=t.lineIndent,ke(t,!1,-1),t.lineIndent>=e){l=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=a,t.line=c,t.lineStart=h,t.lineIndent=u;break}}l&&(wo(t,s,a,!1),Tg(t,t.line-c),s=a=t.position,l=!1),vn(d)||(a=t.position+1),d=t.input.charCodeAt(++t.position)}return wo(t,s,a,!1),t.result?!0:(t.kind=f,t.result=p,!1)}function WI(t,e){var r,i,o;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=o=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(wo(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,o=t.position;else return!0;else ui(r)?(wo(t,i,o,!0),Tg(t,ke(t,!1,e)),i=o=t.position):t.position===t.lineStart&&zh(t)?yt(t,"unexpected end of the document within a single quoted scalar"):(t.position++,o=t.position);yt(t,"unexpected end of the stream within a single quoted scalar")}function HI(t,e){var r,i,o,s,a,l;if(l=t.input.charCodeAt(t.position),l!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(l=t.input.charCodeAt(t.position))!==0;){if(l===34)return wo(t,r,t.position,!0),t.position++,!0;if(l===92){if(wo(t,r,t.position,!0),l=t.input.charCodeAt(++t.position),ui(l))ke(t,!1,e);else if(l<256&&R_[l])t.result+=P_[l],t.position++;else if((a=PI(l))>0){for(o=a,s=0;o>0;o--)l=t.input.charCodeAt(++t.position),(a=RI(l))>=0?s=(s<<4)+a:yt(t,"expected hexadecimal character");t.result+=zI(s),t.position++}else yt(t,"unknown escape sequence");r=i=t.position}else ui(l)?(wo(t,r,i,!0),Tg(t,ke(t,!1,e)),r=i=t.position):t.position===t.lineStart&&zh(t)?yt(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}yt(t,"unexpected end of the stream within a double quoted scalar")}function qI(t,e){var r=!0,i,o,s,a=t.tag,l,c=t.anchor,h,u,f,p,d,g=Object.create(null),x,y,b,C;if(C=t.input.charCodeAt(t.position),C===91)u=93,d=!1,l=[];else if(C===123)u=125,d=!0,l={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=l),C=t.input.charCodeAt(++t.position);C!==0;){if(ke(t,!0,e),C=t.input.charCodeAt(t.position),C===u)return t.position++,t.tag=a,t.anchor=c,t.kind=d?"mapping":"sequence",t.result=l,!0;r?C===44&&yt(t,"expected the node content, but found ','"):yt(t,"missed comma between flow collection entries"),y=x=b=null,f=p=!1,C===63&&(h=t.input.charCodeAt(t.position+1),lr(h)&&(f=p=!0,t.position++,ke(t,!0,e))),i=t.line,o=t.lineStart,s=t.position,Ss(t,e,Nh,!1,!0),y=t.tag,x=t.result,ke(t,!0,e),C=t.input.charCodeAt(t.position),(p||t.line===i)&&C===58&&(f=!0,C=t.input.charCodeAt(++t.position),ke(t,!0,e),Ss(t,e,Nh,!1,!0),b=t.result),d?_s(t,l,g,y,x,b,i,o,s):f?l.push(_s(t,null,g,y,x,b,i,o,s)):l.push(x),ke(t,!0,e),C=t.input.charCodeAt(t.position),C===44?(r=!0,C=t.input.charCodeAt(++t.position)):r=!1}yt(t,"unexpected end of the stream within a flow collection")}function VI(t,e){var r,i,o=yg,s=!1,a=!1,l=e,c=0,h=!1,u,f;if(f=t.input.charCodeAt(t.position),f===124)i=!1;else if(f===62)i=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)yg===o?o=f===43?p_:FI:yt(t,"repeat of a chomping mode identifier");else if((u=$I(f))>=0)u===0?yt(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?yt(t,"repeat of an indentation width identifier"):(l=e+u-1,a=!0);else break;if(vn(f)){do f=t.input.charCodeAt(++t.position);while(vn(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!ui(f)&&f!==0)}for(;f!==0;){for(vg(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!a||t.lineIndentl&&(l=t.lineIndent),ui(f)){c++;continue}if(t.lineIndente)&&c!==0)yt(t,"bad indentation of a sequence entry");else if(t.lineIndente)&&(y&&(a=t.line,l=t.lineStart,c=t.position),Ss(t,e,Ih,!0,o)&&(y?g=t.result:x=t.result),y||(_s(t,f,p,d,g,x,a,l,c),d=g=x=null),ke(t,!0,-1),C=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&C!==0)yt(t,"bad indentation of a mapping entry");else if(t.lineIndente?c=1:t.lineIndent===e?c=0:t.lineIndente?c=1:t.lineIndent===e?c=0:t.lineIndent tag; it should be "scalar", not "'+t.kind+'"'),f=0,p=t.implicitTypes.length;f"),t.result!==null&&g.kind!==t.kind&&yt(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):yt(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}function ZI(t){var e=t.position,r,i,o,s=!1,a;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(a=t.input.charCodeAt(t.position))!==0&&(ke(t,!0,-1),a=t.input.charCodeAt(t.position),!(t.lineIndent>0||a!==37));){for(s=!0,a=t.input.charCodeAt(++t.position),r=t.position;a!==0&&!lr(a);)a=t.input.charCodeAt(++t.position);for(i=t.input.slice(r,t.position),o=[],i.length<1&&yt(t,"directive name must not be less than one character in length");a!==0;){for(;vn(a);)a=t.input.charCodeAt(++t.position);if(a===35){do a=t.input.charCodeAt(++t.position);while(a!==0&&!ui(a));break}if(ui(a))break;for(r=t.position;a!==0&&!lr(a);)a=t.input.charCodeAt(++t.position);o.push(t.input.slice(r,t.position))}a!==0&&vg(t),_o.call(g_,i)?g_[i](t,i,o):Rh(t,'unknown document directive "'+i+'"')}if(ke(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,ke(t,!0,-1)):s&&yt(t,"directives end mark is expected"),Ss(t,t.lineIndent-1,Ih,!1,!0),ke(t,!0,-1),t.checkLineBreaks&&NI.test(t.input.slice(e,t.position))&&Rh(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&zh(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,ke(t,!0,-1));return}if(t.position"u"&&(r=e,e=null);var i=z_(t,r);if(typeof e!="function")return i;for(var o=0,s=i.length;o=55296&&r<=56319&&e+1=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function X_(t){var e=/^\n* /;return e.test(t)}function ER(t,e,r,i,o,s,a,l){var c,h=0,u=null,f=!1,p=!1,d=i!==-1,g=-1,x=vR(Cl(t,0))&&TR(Cl(t,t.length-1));if(e||a)for(c=0;c=65536?c+=2:c++){if(h=Cl(t,c),!kl(h))return Cs;x=x&&w_(h,u,l),u=h}else{for(c=0;c=65536?c+=2:c++){if(h=Cl(t,c),h===_l)f=!0,d&&(p=p||c-g-1>i&&t[g+1]!==" ",g=c);else if(!kl(h))return Cs;x=x&&w_(h,u,l),u=h}p=p||d&&c-g-1>i&&t[g+1]!==" "}return!f&&!p?x&&!a&&!o(t)?K_:s===Sl?Cs:_g:r>9&&X_(t)?Cs:a?s===Sl?Cs:_g:p?Q_:Z_}function AR(t,e,r,i,o){t.dump=(function(){if(e.length===0)return t.quotingType===Sl?'""':"''";if(!t.noCompatMode&&(yR.indexOf(e)!==-1||bR.test(e)))return t.quotingType===Sl?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),a=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),l=i||t.flowLevel>-1&&r>=t.flowLevel;function c(h){return kR(t,h)}switch(n(c,"testAmbiguity"),ER(e,l,t.indent,a,c,t.quotingType,t.forceQuotes&&!i,o)){case K_:return e;case _g:return"'"+e.replace(/'/g,"''")+"'";case Z_:return"|"+__(e,t.indent)+S_(b_(e,s));case Q_:return">"+__(e,t.indent)+S_(b_(MR(e,a),s));case Cs:return'"'+BR(e)+'"';default:throw new ar("impossible error: invalid scalar style")}})()}function __(t,e){var r=X_(t)?String(e):"",i=t[t.length-1]===` `,o=i&&(t[t.length-2]===` `||t===` `),s=o?"+":i?"":"-";return r+s+` `}function S_(t){return t[t.length-1]===` `?t.slice(0,-1):t}function MR(t,e){for(var r=/(\n+)([^\n]*)/g,i=(function(){var h=t.indexOf(` `);return h=h!==-1?h:t.length,r.lastIndex=h,k_(t.slice(0,h),e)})(),o=t[0]===` `||t[0]===" ",s,a;a=r.exec(t);){var l=a[1],c=a[2];s=c[0]===" ",i+=l+(!o&&!s&&c!==""?` `:"")+k_(c,e),o=s}return i}function k_(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,o=0,s,a=0,l=0,c="";i=r.exec(t);)l=i.index,l-o>e&&(s=a>o?a:l,c+=` `+t.slice(o,s),o=s+1),a=l;return c+=` `,t.length-o>e&&a>o?c+=t.slice(o,a)+` `+t.slice(a+1):c+=t.slice(o),c.slice(1)}function BR(t){for(var e="",r=0,i,o=0;o=65536?o+=2:o++)r=Cl(t,o),i=Ve[r],!i&&kl(r)?(e+=t[o],r>=65536&&(e+=t[o+1])):e+=i||wR(r);return e}function LR(t,e,r){var i="",o=t.tag,s,a,l;for(s=0,a=r.length;s"u"&&Hi(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=o,t.dump="["+i+"]"}function v_(t,e,r,i){var o="",s=t.tag,a,l,c;for(a=0,l=r.length;a"u"&&Hi(t,e+1,null,!0,!0,!1,!0))&&((!i||o!=="")&&(o+=wg(t,e)),t.dump&&_l===t.dump.charCodeAt(0)?o+="-":o+="- ",o+=t.dump);t.tag=s,t.dump=o||"[]"}function DR(t,e,r){var i="",o=t.tag,s=Object.keys(r),a,l,c,h,u;for(a=0,l=s.length;a1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Hi(t,e,h,!1,!1)&&(u+=t.dump,i+=u));t.tag=o,t.dump="{"+i+"}"}function FR(t,e,r,i){var o="",s=t.tag,a=Object.keys(r),l,c,h,u,f,p;if(t.sortKeys===!0)a.sort();else if(typeof t.sortKeys=="function")a.sort(t.sortKeys);else if(t.sortKeys)throw new ar("sortKeys must be a boolean or a function");for(l=0,c=a.length;l1024,f&&(t.dump&&_l===t.dump.charCodeAt(0)?p+="?":p+="? "),p+=t.dump,f&&(p+=wg(t,e)),Hi(t,e+1,u,!0,f)&&(t.dump&&_l===t.dump.charCodeAt(0)?p+=":":p+=": ",p+=t.dump,o+=p));t.tag=s,t.dump=o||"{}"}function T_(t,e,r){var i,o,s,a,l,c;for(o=r?t.explicitTypes:t.implicitTypes,s=0,a=o.length;s tag resolver accepts not "'+c+'" style');t.dump=i}return!0}return!1}function Hi(t,e,r,i,o,s,a){t.tag=null,t.dump=r,T_(t,r,!1)||T_(t,r,!0);var l=G_.call(t.dump),c=i,h;i&&(i=t.flowLevel<0||t.flowLevel>e);var u=l==="[object Object]"||l==="[object Array]",f,p;if(u&&(f=t.duplicates.indexOf(r),p=f!==-1),(t.tag!==null&&t.tag!=="?"||p||t.indent!==2&&e>0)&&(o=!1),p&&t.usedDuplicates[f])t.dump="*ref_"+f;else{if(u&&p&&!t.usedDuplicates[f]&&(t.usedDuplicates[f]=!0),l==="[object Object]")i&&Object.keys(t.dump).length!==0?(FR(t,e,t.dump,o),p&&(t.dump="&ref_"+f+t.dump)):(DR(t,e,t.dump),p&&(t.dump="&ref_"+f+" "+t.dump));else if(l==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!a&&e>0?v_(t,e-1,t.dump,o):v_(t,e,t.dump,o),p&&(t.dump="&ref_"+f+t.dump)):(LR(t,e,t.dump),p&&(t.dump="&ref_"+f+" "+t.dump));else if(l==="[object String]")t.tag!=="?"&&AR(t,t.dump,e,s,c);else{if(l==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new ar("unacceptable kind of an object to dump "+l)}t.tag!==null&&t.tag!=="?"&&(h=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?h="!"+h:h.slice(0,18)==="tag:yaml.org,2002:"?h="!!"+h.slice(18):h="!<"+h+">",t.dump=h+" "+t.dump)}return!0}function OR(t,e){var r=[],i=[],o,s;for(Sg(t,r,i),o=0,s=i.length;o{"use strict";n(E_,"isNothing");n(x6,"isObject");n(y6,"toArray");n(b6,"extend");n(C6,"repeat");n(w6,"isNegativeZero");_6=E_,S6=x6,k6=y6,v6=C6,T6=w6,E6=b6,Le={isNothing:_6,isObject:S6,toArray:k6,repeat:v6,isNegativeZero:T6,extend:E6};n(A_,"formatError");n(wl,"YAMLException$1");wl.prototype=Object.create(Error.prototype);wl.prototype.constructor=wl;wl.prototype.toString=n(function(e){return this.name+": "+A_(this,e)},"toString");ar=wl;n(gg,"getLine");n(xg,"padStart");n(A6,"makeSnippet");M6=A6,B6=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],L6=["scalar","sequence","mapping"];n(D6,"compileStyleAliases");n(F6,"Type$1");qe=F6;n(f_,"compileList");n(O6,"compileMap");n(bg,"Schema$1");bg.prototype.extend=n(function(e){var r=[],i=[];if(e instanceof qe)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new ar("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof qe))throw new ar("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new ar("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new ar("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof qe))throw new ar("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var o=Object.create(bg.prototype);return o.implicit=(this.implicit||[]).concat(r),o.explicit=(this.explicit||[]).concat(i),o.compiledImplicit=f_(o,"implicit"),o.compiledExplicit=f_(o,"explicit"),o.compiledTypeMap=O6(o.compiledImplicit,o.compiledExplicit),o},"extend");N6=bg,I6=new qe("tag:yaml.org,2002:str",{kind:"scalar",construct:n(function(t){return t!==null?t:""},"construct")}),R6=new qe("tag:yaml.org,2002:seq",{kind:"sequence",construct:n(function(t){return t!==null?t:[]},"construct")}),P6=new qe("tag:yaml.org,2002:map",{kind:"mapping",construct:n(function(t){return t!==null?t:{}},"construct")}),$6=new N6({explicit:[I6,R6,P6]});n(z6,"resolveYamlNull");n(j6,"constructYamlNull");n(G6,"isNull");W6=new qe("tag:yaml.org,2002:null",{kind:"scalar",resolve:z6,construct:j6,predicate:G6,represent:{canonical:n(function(){return"~"},"canonical"),lowercase:n(function(){return"null"},"lowercase"),uppercase:n(function(){return"NULL"},"uppercase"),camelcase:n(function(){return"Null"},"camelcase"),empty:n(function(){return""},"empty")},defaultStyle:"lowercase"});n(H6,"resolveYamlBoolean");n(q6,"constructYamlBoolean");n(V6,"isBoolean");U6=new qe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:H6,construct:q6,predicate:V6,represent:{lowercase:n(function(t){return t?"true":"false"},"lowercase"),uppercase:n(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:n(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"});n(Y6,"isHexCode");n(X6,"isOctCode");n(K6,"isDecCode");n(Z6,"resolveYamlInteger");n(Q6,"constructYamlInteger");n(J6,"isInteger");tI=new qe("tag:yaml.org,2002:int",{kind:"scalar",resolve:Z6,construct:Q6,predicate:J6,represent:{binary:n(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:n(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:n(function(t){return t.toString(10)},"decimal"),hexadecimal:n(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),eI=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");n(rI,"resolveYamlFloat");n(iI,"constructYamlFloat");oI=/^[-+]?[0-9]+e/;n(nI,"representYamlFloat");n(sI,"isFloat");aI=new qe("tag:yaml.org,2002:float",{kind:"scalar",resolve:rI,construct:iI,predicate:sI,represent:nI,defaultStyle:"lowercase"}),M_=$6.extend({implicit:[W6,U6,tI,aI]}),lI=M_,B_=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),L_=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");n(cI,"resolveYamlTimestamp");n(hI,"constructYamlTimestamp");n(uI,"representYamlTimestamp");fI=new qe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:cI,construct:hI,instanceOf:Date,represent:uI});n(pI,"resolveYamlMerge");dI=new qe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:pI}),kg=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`;n(mI,"resolveYamlBinary");n(gI,"constructYamlBinary");n(xI,"representYamlBinary");n(yI,"isBinary");bI=new qe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:mI,construct:gI,predicate:yI,represent:xI}),CI=Object.prototype.hasOwnProperty,wI=Object.prototype.toString;n(_I,"resolveYamlOmap");n(SI,"constructYamlOmap");kI=new qe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:_I,construct:SI}),vI=Object.prototype.toString;n(TI,"resolveYamlPairs");n(EI,"constructYamlPairs");AI=new qe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:TI,construct:EI}),MI=Object.prototype.hasOwnProperty;n(BI,"resolveYamlSet");n(LI,"constructYamlSet");DI=new qe("tag:yaml.org,2002:set",{kind:"mapping",resolve:BI,construct:LI}),D_=lI.extend({implicit:[fI,dI],explicit:[bI,kI,AI,DI]}),_o=Object.prototype.hasOwnProperty,Nh=1,F_=2,O_=3,Ih=4,yg=1,FI=2,p_=3,OI=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,NI=/[\x85\u2028\u2029]/,II=/[,\[\]\{\}]/,N_=/^(?:!|!!|![a-z\-]+!)$/i,I_=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;n(d_,"_class");n(ui,"is_EOL");n(vn,"is_WHITE_SPACE");n(lr,"is_WS_OR_EOL");n(ws,"is_FLOW_INDICATOR");n(RI,"fromHexCode");n(PI,"escapedHexLen");n($I,"fromDecimalCode");n(m_,"simpleEscapeSequence");n(zI,"charFromCodepoint");R_=new Array(256),P_=new Array(256);for(kn=0;kn<256;kn++)R_[kn]=m_(kn)?1:0,P_[kn]=m_(kn);n(jI,"State$1");n($_,"generateError");n(yt,"throwError");n(Rh,"throwWarning");g_={YAML:n(function(e,r,i){var o,s,a;e.version!==null&&yt(e,"duplication of %YAML directive"),i.length!==1&&yt(e,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),o===null&&yt(e,"ill-formed argument of the YAML directive"),s=parseInt(o[1],10),a=parseInt(o[2],10),s!==1&&yt(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&Rh(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:n(function(e,r,i){var o,s;i.length!==2&&yt(e,"TAG directive accepts exactly two arguments"),o=i[0],s=i[1],N_.test(o)||yt(e,"ill-formed tag handle (first argument) of the TAG directive"),_o.call(e.tagMap,o)&&yt(e,'there is a previously declared suffix for "'+o+'" tag handle'),I_.test(s)||yt(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{yt(e,"tag prefix is malformed: "+s)}e.tagMap[o]=s},"handleTagDirective")};n(wo,"captureSegment");n(x_,"mergeMappings");n(_s,"storeMappingPair");n(vg,"readLineBreak");n(ke,"skipSeparationSpace");n(zh,"testDocumentSeparator");n(Tg,"writeFoldedLines");n(GI,"readPlainScalar");n(WI,"readSingleQuotedScalar");n(HI,"readDoubleQuotedScalar");n(qI,"readFlowCollection");n(VI,"readBlockScalar");n(y_,"readBlockSequence");n(UI,"readBlockMapping");n(YI,"readTagProperty");n(XI,"readAnchorProperty");n(KI,"readAlias");n(Ss,"composeNode");n(ZI,"readDocument");n(z_,"loadDocuments");n(QI,"loadAll$1");n(JI,"load$1");tR=QI,eR=JI,j_={loadAll:tR,load:eR},G_=Object.prototype.toString,W_=Object.prototype.hasOwnProperty,Eg=65279,rR=9,_l=10,iR=13,oR=32,nR=33,sR=34,Cg=35,aR=37,lR=38,cR=39,hR=42,H_=44,uR=45,Ph=58,fR=61,pR=62,dR=63,mR=64,q_=91,V_=93,gR=96,U_=123,xR=124,Y_=125,Ve={};Ve[0]="\\0";Ve[7]="\\a";Ve[8]="\\b";Ve[9]="\\t";Ve[10]="\\n";Ve[11]="\\v";Ve[12]="\\f";Ve[13]="\\r";Ve[27]="\\e";Ve[34]='\\"';Ve[92]="\\\\";Ve[133]="\\N";Ve[160]="\\_";Ve[8232]="\\L";Ve[8233]="\\P";yR=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],bR=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;n(CR,"compileStyleMap");n(wR,"encodeHex");_R=1,Sl=2;n(SR,"State");n(b_,"indentString");n(wg,"generateNextLine");n(kR,"testImplicitResolving");n($h,"isWhitespace");n(kl,"isPrintable");n(C_,"isNsCharOrWhitespace");n(w_,"isPlainSafe");n(vR,"isPlainSafeFirst");n(TR,"isPlainSafeLast");n(Cl,"codePointAt");n(X_,"needIndentIndicator");K_=1,_g=2,Z_=3,Q_=4,Cs=5;n(ER,"chooseScalarStyle");n(AR,"writeScalar");n(__,"blockHeader");n(S_,"dropEndingNewline");n(MR,"foldString");n(k_,"foldLine");n(BR,"escapeString");n(LR,"writeFlowSequence");n(v_,"writeBlockSequence");n(DR,"writeFlowMapping");n(FR,"writeBlockMapping");n(T_,"detectType");n(Hi,"writeNode");n(OR,"getDuplicateReferences");n(Sg,"inspectNode");n(NR,"dump$1");IR=NR,RR={dump:IR};n(Ag,"renamed");jh=M_,Gh=j_.load,aht=j_.loadAll,lht=RR.dump,cht=Ag("safeLoad","load"),hht=Ag("safeLoadAll","loadAll"),uht=Ag("safeDump","dump")});function Fg(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function nS(t){En=t}function jt(t,e=""){let r=typeof t=="string"?t:t.source,i={replace:n((o,s)=>{let a=typeof s=="string"?s:s.source;return a=a.replace(er.caret,"$1"),r=r.replace(o,a),i},"replace"),getRegex:n(()=>new RegExp(r,e),"getRegex")};return i}function fi(t,e){if(e){if(er.escapeTest.test(t))return t.replace(er.escapeReplace,eS)}else if(er.escapeTestNoEncode.test(t))return t.replace(er.escapeReplaceNoEncode,eS);return t}function rS(t){try{t=encodeURI(t).replace(er.percentDecode,"%")}catch{return null}return t}function iS(t,e){let r=t.replace(er.findPipe,(s,a,l)=>{let c=!1,h=a;for(;--h>=0&&l[h]==="\\";)c=!c;return c?"|":" |"}),i=r.split(er.splitPipe),o=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length0?-2:-1}function oS(t,e,r,i,o){let s=e.href,a=e.title||null,l=t[1].replace(o.other.outputLinkReplace,"$1");i.state.inLink=!0;let c={type:t[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:a,text:l,tokens:i.inlineTokens(l)};return i.state.inLink=!1,c}function yP(t,e,r){let i=t.match(r.other.indentCodeCompensation);if(i===null)return e;let o=i[1];return e.split(` `).map(s=>{let a=s.match(r.other.beginningSpace);if(a===null)return s;let[l]=a;return l.length>=o.length?s.slice(o.length):s}).join(` `)}function zt(t,e){return Tn.parse(t,e)}var En,Al,er,PR,$R,zR,Ml,jR,Og,sS,aS,GR,Ng,WR,Ig,HR,qR,Uh,Rg,VR,lS,UR,Pg,tS,YR,XR,KR,ZR,cS,QR,Yh,$g,hS,JR,uS,tP,eP,rP,fS,iP,oP,pS,nP,sP,aP,lP,cP,hP,uP,Hh,fP,dS,mS,pP,zg,dP,Bg,mP,Wh,vl,gP,eS,qh,qi,Vh,jg,Vi,El,bP,Tn,pht,dht,mht,ght,xht,yht,bht,gS=m(()=>{"use strict";n(Fg,"L");En=Fg();n(nS,"G");Al={exec:n(()=>null,"exec")};n(jt,"h");er={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:n(t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:n(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:n(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:n(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:n(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),"headingBeginRegex"),htmlBeginRegex:n(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex")},PR=/^(?:[ \t]*(?:\n|$))+/,$R=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,zR=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ml=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,jR=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Og=/(?:[*+-]|\d{1,9}[.)])/,sS=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,aS=jt(sS).replace(/bull/g,Og).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),GR=jt(sS).replace(/bull/g,Og).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ng=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,WR=/^[^\n]+/,Ig=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,HR=jt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ig).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),qR=jt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Og).getRegex(),Uh="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Rg=/|$))/,VR=jt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Rg).replace("tag",Uh).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),lS=jt(Ng).replace("hr",Ml).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Uh).getRegex(),UR=jt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",lS).getRegex(),Pg={blockquote:UR,code:$R,def:HR,fences:zR,heading:jR,hr:Ml,html:VR,lheading:aS,list:qR,newline:PR,paragraph:lS,table:Al,text:WR},tS=jt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ml).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Uh).getRegex(),YR={...Pg,lheading:GR,table:tS,paragraph:jt(Ng).replace("hr",Ml).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",tS).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Uh).getRegex()},XR={...Pg,html:jt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Rg).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Al,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:jt(Ng).replace("hr",Ml).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",aS).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},KR=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ZR=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,cS=/^( {2,}|\\)\n(?!\s*$)/,QR=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,fS=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,iP=jt(fS,"u").replace(/punct/g,Yh).getRegex(),oP=jt(fS,"u").replace(/punct/g,uS).getRegex(),pS="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",nP=jt(pS,"gu").replace(/notPunctSpace/g,hS).replace(/punctSpace/g,$g).replace(/punct/g,Yh).getRegex(),sP=jt(pS,"gu").replace(/notPunctSpace/g,eP).replace(/punctSpace/g,tP).replace(/punct/g,uS).getRegex(),aP=jt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,hS).replace(/punctSpace/g,$g).replace(/punct/g,Yh).getRegex(),lP=jt(/\\(punct)/,"gu").replace(/punct/g,Yh).getRegex(),cP=jt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),hP=jt(Rg).replace("(?:-->|$)","-->").getRegex(),uP=jt("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",hP).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Hh=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,fP=jt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Hh).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),dS=jt(/^!?\[(label)\]\[(ref)\]/).replace("label",Hh).replace("ref",Ig).getRegex(),mS=jt(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ig).getRegex(),pP=jt("reflink|nolink(?!\\()","g").replace("reflink",dS).replace("nolink",mS).getRegex(),zg={_backpedal:Al,anyPunctuation:lP,autolink:cP,blockSkip:rP,br:cS,code:ZR,del:Al,emStrongLDelim:iP,emStrongRDelimAst:nP,emStrongRDelimUnd:aP,escape:KR,link:fP,nolink:mS,punctuation:JR,reflink:dS,reflinkSearch:pP,tag:uP,text:QR,url:Al},dP={...zg,link:jt(/^!?\[(label)\]\((.*?)\)/).replace("label",Hh).getRegex(),reflink:jt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Hh).getRegex()},Bg={...zg,emStrongRDelimAst:sP,emStrongLDelim:oP,url:jt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},eS=n(t=>gP[t],"ke");n(fi,"w");n(rS,"J");n(iS,"V");n(Tl,"z");n(xP,"ge");n(oS,"fe");n(yP,"Je");qh=class{static{n(this,"y")}options;rules;lexer;constructor(t){this.options=t||En}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let r=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Tl(r,` `)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let r=e[0],i=yP(r,e[3]||"",this.rules);return{type:"code",raw:r,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:i}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let r=e[2].trim();if(this.rules.other.endingHash.test(r)){let i=Tl(r,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(r=i.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:Tl(e[0],` `)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let r=Tl(e[0],` `).split(` `),i="",o="",s=[];for(;r.length>0;){let a=!1,l=[],c;for(c=0;c1,o={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");let s=this.rules.other.listItemRegex(r),a=!1;for(;t;){let c=!1,h="",u="";if(!(e=s.exec(t))||this.rules.block.hr.test(t))break;h=e[0],t=t.substring(h.length);let f=e[2].split(` `,1)[0].replace(this.rules.other.listReplaceTabs,b=>" ".repeat(3*b.length)),p=t.split(` `,1)[0],d=!f.trim(),g=0;if(this.options.pedantic?(g=2,u=f.trimStart()):d?g=e[1].length+1:(g=e[2].search(this.rules.other.nonSpaceChar),g=g>4?1:g,u=f.slice(g),g+=e[1].length),d&&this.rules.other.blankLine.test(p)&&(h+=p+` `,t=t.substring(p.length+1),c=!0),!c){let b=this.rules.other.nextBulletRegex(g),C=this.rules.other.hrRegex(g),k=this.rules.other.fencesBeginRegex(g),T=this.rules.other.headingBeginRegex(g),v=this.rules.other.htmlBeginRegex(g);for(;t;){let D=t.split(` `,1)[0],B;if(p=D,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),B=p):B=p.replace(this.rules.other.tabCharGlobal," "),k.test(p)||T.test(p)||v.test(p)||b.test(p)||C.test(p))break;if(B.search(this.rules.other.nonSpaceChar)>=g||!p.trim())u+=` `+B.slice(g);else{if(d||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(f)||T.test(f)||C.test(f))break;u+=` `+p}!d&&!p.trim()&&(d=!0),h+=D+` `,t=t.substring(D.length+1),f=B.slice(g)}}o.loose||(a?o.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(a=!0));let x=null,y;this.options.gfm&&(x=this.rules.other.listIsTask.exec(u),x&&(y=x[0]!=="[ ] ",u=u.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:h,task:!!x,checked:y,loose:!1,text:u,tokens:[]}),o.raw+=h}let l=o.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let c=0;cf.type==="space"),u=h.length>0&&h.some(f=>this.rules.other.anyLine.test(f.raw));o.loose=u}if(o.loose)for(let c=0;c({text:l,tokens:this.lexer.inline(l),header:!1,align:s.align[c]})));return s}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let r=e[1].charAt(e[1].length-1)===` `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:r,tokens:this.lexer.inline(r)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let r=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let s=Tl(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{let s=xP(e[2],"()");if(s===-2)return;if(s>-1){let a=(e[0].indexOf("!")===0?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,a).trim(),e[3]=""}}let i=e[2],o="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(i);s&&(i=s[1],o=s[3])}else o=e[3]?e[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i=i.slice(1):i=i.slice(1,-1)),oS(e,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let i=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=e[i.toLowerCase()];if(!o){let s=r[0].charAt(0);return{type:"text",raw:s,text:s}}return oS(r,o,r[0],this.lexer,this.rules)}}emStrong(t,e,r=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!(!i||i[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[2])||!r||this.rules.inline.punctuation.exec(r))){let o=[...i[0]].length-1,s,a,l=o,c=0,h=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,e=e.slice(-1*t.length+o);(i=h.exec(e))!=null;){if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!s)continue;if(a=[...s].length,i[3]||i[4]){l+=a;continue}else if((i[5]||i[6])&&o%3&&!((o+a)%3)){c+=a;continue}if(l-=a,l>0)continue;a=Math.min(a,a+l+c);let u=[...i[0]][0].length,f=t.slice(0,o+i.index+u+a);if(Math.min(o,a)%2){let d=f.slice(1,-1);return{type:"em",raw:f,text:d,tokens:this.lexer.inlineTokens(d)}}let p=f.slice(2,-2);return{type:"strong",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let r=e[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(r),o=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return i&&o&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:e[0],text:r}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){let e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let r,i;return e[2]==="@"?(r=e[1],i="mailto:"+r):(r=e[1],i=r),{type:"link",raw:e[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let r,i;if(e[2]==="@")r=e[0],i="mailto:"+r;else{let o;do o=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(o!==e[0]);r=e[0],e[1]==="www."?i="http://"+e[0]:i=e[0]}return{type:"link",raw:e[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let r=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:r}}}},qi=class Lg{static{n(this,"l")}tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||En,this.options.tokenizer=this.options.tokenizer||new qh,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:er,block:Wh.normal,inline:vl.normal};this.options.pedantic?(r.block=Wh.pedantic,r.inline=vl.pedantic):this.options.gfm&&(r.block=Wh.gfm,this.options.breaks?r.inline=vl.breaks:r.inline=vl.gfm),this.tokenizer.rules=r}static get rules(){return{block:Wh,inline:vl}}static lex(e,r){return new Lg(r).lex(e)}static lexInline(e,r){return new Lg(r).inlineTokens(e)}lex(e){e=e.replace(er.carriageReturn,` `),this.blockTokens(e,this.tokens);for(let r=0;r(o=a.call({lexer:this},e,r))?(e=e.substring(o.raw.length),r.push(o),!0):!1))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let a=r.at(-1);o.raw.length===1&&a!==void 0?a.raw+=` `:r.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let a=r.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(` `)?"":` `)+o.raw,a.text+=` `+o.text,this.inlineQueue.at(-1).src=a.text):r.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let a=r.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(` `)?"":` `)+o.raw,a.text+=` `+o.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},r.push(o));continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),r.push(o);continue}let s=e;if(this.options.extensions?.startBlock){let a=1/0,l=e.slice(1),c;this.options.extensions.startBlock.forEach(h=>{c=h.call({lexer:this},l),typeof c=="number"&&c>=0&&(a=Math.min(a,c))}),a<1/0&&a>=0&&(s=e.substring(0,a+1))}if(this.state.top&&(o=this.tokenizer.paragraph(s))){let a=r.at(-1);i&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(` `)?"":` `)+o.raw,a.text+=` `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):r.push(o),i=s.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let a=r.at(-1);a?.type==="text"?(a.raw+=(a.raw.endsWith(` `)?"":` `)+o.raw,a.text+=` `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):r.push(o);continue}if(e){let a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){let i=e,o=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)l.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,o.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(o=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let s=!1,a="";for(;e;){s||(a=""),s=!1;let l;if(this.options.extensions?.inline?.some(h=>(l=h.call({lexer:this},e,r))?(e=e.substring(l.raw.length),r.push(l),!0):!1))continue;if(l=this.tokenizer.escape(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.tag(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.link(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(l.raw.length);let h=r.at(-1);l.type==="text"&&h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):r.push(l);continue}if(l=this.tokenizer.emStrong(e,i,a)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.codespan(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.br(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.del(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.autolink(e)){e=e.substring(l.raw.length),r.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(e))){e=e.substring(l.raw.length),r.push(l);continue}let c=e;if(this.options.extensions?.startInline){let h=1/0,u=e.slice(1),f;this.options.extensions.startInline.forEach(p=>{f=p.call({lexer:this},u),typeof f=="number"&&f>=0&&(h=Math.min(h,f))}),h<1/0&&h>=0&&(c=e.substring(0,h+1))}if(l=this.tokenizer.inlineText(c)){e=e.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(a=l.raw.slice(-1)),s=!0;let h=r.at(-1);h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):r.push(l);continue}if(e){let h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return r}},Vh=class{static{n(this,"P")}options;parser;constructor(t){this.options=t||En}space(t){return""}code({text:t,lang:e,escaped:r}){let i=(e||"").match(er.notSpaceStart)?.[0],o=t.replace(er.endingNewline,"")+` `;return i?'
'+(r?o:fi(o,!0))+`
`:"
"+(r?o:fi(o,!0))+`
`}blockquote({tokens:t}){return`
${this.parser.parse(t)}
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`${this.parser.parseInline(t)} `}hr(t){return`
`}list(t){let e=t.ordered,r=t.start,i="";for(let a=0;a `+i+" `}listitem(t){let e="";if(t.task){let r=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=r+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=r+" "+fi(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):e+=r+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`
  • ${e}
  • `}checkbox({checked:t}){return"'}paragraph({tokens:t}){return`

    ${this.parser.parseInline(t)}

    `}table(t){let e="",r="";for(let o=0;o${i}`),` `+e+` `+i+`
    `}tablerow({text:t}){return` ${t} `}tablecell(t){let e=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+` `}strong({tokens:t}){return`${this.parser.parseInline(t)}`}em({tokens:t}){return`${this.parser.parseInline(t)}`}codespan({text:t}){return`${fi(t,!0)}`}br(t){return"
    "}del({tokens:t}){return`${this.parser.parseInline(t)}`}link({href:t,title:e,tokens:r}){let i=this.parser.parseInline(r),o=rS(t);if(o===null)return i;t=o;let s='
    ",s}image({href:t,title:e,text:r,tokens:i}){i&&(r=this.parser.parseInline(i,this.parser.textRenderer));let o=rS(t);if(o===null)return fi(r);t=o;let s=`${r}{let a=o[s].flat(1/0);r=r.concat(this.walkTokens(a,e))}):o.tokens&&(r=r.concat(this.walkTokens(o.tokens,e)))}}return r}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{let i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let s=e.renderers[o.name];s?e.renderers[o.name]=function(...a){let l=o.renderer.apply(this,a);return l===!1&&(l=s.apply(this,a)),l}:e.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=e[o.level];s?s.unshift(o.tokenizer):e[o.level]=[o.tokenizer],o.start&&(o.level==="block"?e.startBlock?e.startBlock.push(o.start):e.startBlock=[o.start]:o.level==="inline"&&(e.startInline?e.startInline.push(o.start):e.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(e.childTokens[o.name]=o.childTokens)}),i.extensions=e),r.renderer){let o=this.defaults.renderer||new Vh(this.defaults);for(let s in r.renderer){if(!(s in o))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let a=s,l=r.renderer[a],c=o[a];o[a]=(...h)=>{let u=l.apply(o,h);return u===!1&&(u=c.apply(o,h)),u||""}}i.renderer=o}if(r.tokenizer){let o=this.defaults.tokenizer||new qh(this.defaults);for(let s in r.tokenizer){if(!(s in o))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let a=s,l=r.tokenizer[a],c=o[a];o[a]=(...h)=>{let u=l.apply(o,h);return u===!1&&(u=c.apply(o,h)),u}}i.tokenizer=o}if(r.hooks){let o=this.defaults.hooks||new El;for(let s in r.hooks){if(!(s in o))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let a=s,l=r.hooks[a],c=o[a];El.passThroughHooks.has(s)?o[a]=h=>{if(this.defaults.async&&El.passThroughHooksRespectAsync.has(s))return Promise.resolve(l.call(o,h)).then(f=>c.call(o,f));let u=l.call(o,h);return c.call(o,u)}:o[a]=(...h)=>{let u=l.apply(o,h);return u===!1&&(u=c.apply(o,h)),u}}i.hooks=o}if(r.walkTokens){let o=this.defaults.walkTokens,s=r.walkTokens;i.walkTokens=function(a){let l=[];return l.push(s.call(this,a)),o&&(l=l.concat(o.call(this,a))),l}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return qi.lex(t,e??this.defaults)}parser(t,e){return Vi.parse(t,e??this.defaults)}parseMarkdown(t){return(e,r)=>{let i={...r},o={...this.defaults,...i},s=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&i.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=t);let a=o.hooks?o.hooks.provideLexer():t?qi.lex:qi.lexInline,l=o.hooks?o.hooks.provideParser():t?Vi.parse:Vi.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(e):e).then(c=>a(c,o)).then(c=>o.hooks?o.hooks.processAllTokens(c):c).then(c=>o.walkTokens?Promise.all(this.walkTokens(c,o.walkTokens)).then(()=>c):c).then(c=>l(c,o)).then(c=>o.hooks?o.hooks.postprocess(c):c).catch(s);try{o.hooks&&(e=o.hooks.preprocess(e));let c=a(e,o);o.hooks&&(c=o.hooks.processAllTokens(c)),o.walkTokens&&this.walkTokens(c,o.walkTokens);let h=l(c,o);return o.hooks&&(h=o.hooks.postprocess(h)),h}catch(c){return s(c)}}}onError(t,e){return r=>{if(r.message+=` Please report this to https://github.com/markedjs/marked.`,t){let i="

    An error occurred:

    "+fi(r.message+"",!0)+"
    ";return e?Promise.resolve(i):i}if(e)return Promise.reject(r);throw r}}},Tn=new bP;n(zt,"d");zt.options=zt.setOptions=function(t){return Tn.setOptions(t),zt.defaults=Tn.defaults,nS(zt.defaults),zt};zt.getDefaults=Fg;zt.defaults=En;zt.use=function(...t){return Tn.use(...t),zt.defaults=Tn.defaults,nS(zt.defaults),zt};zt.walkTokens=function(t,e){return Tn.walkTokens(t,e)};zt.parseInline=Tn.parseInline;zt.Parser=Vi;zt.parser=Vi.parse;zt.Renderer=Vh;zt.TextRenderer=jg;zt.Lexer=qi;zt.lexer=qi.lex;zt.Tokenizer=qh;zt.Hooks=El;zt.parse=zt;pht=zt.options,dht=zt.setOptions,mht=zt.use,ght=zt.walkTokens,xht=zt.parseInline,yht=Vi.parse,bht=qi.lex});function CP(t,{markdownAutoWrap:e}){let i=t.replace(//g,` `).replace(/\n{2,}/g,` `),o=zc(i);return e===!1?o.replace(/ /g," "):o}function xS(t,e={}){let r=CP(t,e),i=zt.lexer(r),o=[[]],s=0;function a(l,c="normal"){l.type==="text"?l.text.split(` `).forEach((u,f)=>{f!==0&&(s++,o.push([])),u.split(" ").forEach(p=>{p=p.replace(/'/g,"'"),p&&o[s].push({content:p,type:c})})}):l.type==="strong"||l.type==="em"?l.tokens.forEach(h=>{a(h,l.type)}):l.type==="html"&&o[s].push({content:l.text,type:"normal"})}return n(a,"processNode"),i.forEach(l=>{l.type==="paragraph"?l.tokens?.forEach(c=>{a(c)}):l.type==="html"?o[s].push({content:l.text,type:"normal"}):o[s].push({content:l.raw,type:"normal"})}),o}function yS(t,{markdownAutoWrap:e}={}){let r=zt.lexer(t);function i(o){return o.type==="text"?e===!1?o.text.replace(/\n */g,"
    ").replace(/ /g," "):o.text.replace(/\n */g,"
    "):o.type==="strong"?`${o.tokens?.map(i).join("")}`:o.type==="em"?`${o.tokens?.map(i).join("")}`:o.type==="paragraph"?`

    ${o.tokens?.map(i).join("")}

    `:o.type==="space"?"":o.type==="html"?`${o.text}`:o.type==="escape"?o.text:(S.warn(`Unsupported markdown: ${o.type}`),o.raw)}return n(i,"output"),r.map(i).join("")}var bS=m(()=>{"use strict";gS();Ip();vt();n(CP,"preprocessMarkdown");n(xS,"markdownToLines");n(yS,"markdownToHTML")});var CS=Kf(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.BLANK_URL=Re.relativeFirstCharacters=Re.whitespaceEscapeCharsRegex=Re.urlSchemeRegex=Re.ctrlCharactersRegex=Re.htmlCtrlEntityRegex=Re.htmlEntitiesRegex=Re.invalidProtocolRegex=void 0;Re.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;Re.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;Re.htmlCtrlEntityRegex=/&(newline|tab);/gi;Re.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;Re.urlSchemeRegex=/^.+(:|:)/gim;Re.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;Re.relativeFirstCharacters=[".","/"];Re.BLANK_URL="about:blank"});var _S=Kf(Xh=>{"use strict";Object.defineProperty(Xh,"__esModule",{value:!0});Xh.sanitizeUrl=void 0;var Ue=CS();function wP(t){return Ue.relativeFirstCharacters.indexOf(t[0])>-1}n(wP,"isRelativeUrlWithoutProtocol");function _P(t){var e=t.replace(Ue.ctrlCharactersRegex,"");return e.replace(Ue.htmlEntitiesRegex,function(r,i){return String.fromCharCode(i)})}n(_P,"decodeHtmlCharacters");function SP(t){return URL.canParse(t)}n(SP,"isValidUrl");function wS(t){try{return decodeURIComponent(t)}catch{return t}}n(wS,"decodeURI");function kP(t){if(!t)return Ue.BLANK_URL;var e,r=wS(t.trim());do r=_P(r).replace(Ue.htmlCtrlEntityRegex,"").replace(Ue.ctrlCharactersRegex,"").replace(Ue.whitespaceEscapeCharsRegex,"").trim(),r=wS(r),e=r.match(Ue.ctrlCharactersRegex)||r.match(Ue.htmlEntitiesRegex)||r.match(Ue.htmlCtrlEntityRegex)||r.match(Ue.whitespaceEscapeCharsRegex);while(e&&e.length>0);var i=r;if(!i)return Ue.BLANK_URL;if(wP(i))return i;var o=i.trimStart(),s=o.match(Ue.urlSchemeRegex);if(!s)return i;var a=s[0].toLowerCase().trim();if(Ue.invalidProtocolRegex.test(a))return Ue.BLANK_URL;var l=o.replace(/\\/g,"/");if(a==="mailto:"||a.includes("://"))return l;if(a==="http:"||a==="https:"){if(!SP(l))return Ue.BLANK_URL;var c=new URL(l);return c.protocol=c.protocol.toLowerCase(),c.hostname=c.hostname.toLowerCase(),c.toString()}return l}n(kP,"sanitizeUrl");Xh.sanitizeUrl=kP});var vP,Kh,Gg=m(()=>{"use strict";vP=typeof global=="object"&&global&&global.Object===Object&&global,Kh=vP});var TP,EP,ge,Rr=m(()=>{"use strict";Gg();TP=typeof self=="object"&&self&&self.Object===Object&&self,EP=Kh||TP||Function("return this")(),ge=EP});var AP,Pe,An=m(()=>{"use strict";Rr();AP=ge.Symbol,Pe=AP});function LP(t){var e=MP.call(t,Bl),r=t[Bl];try{t[Bl]=void 0;var i=!0}catch{}var o=BP.call(t);return i&&(e?t[Bl]=r:delete t[Bl]),o}var SS,MP,BP,Bl,kS,vS=m(()=>{"use strict";An();SS=Object.prototype,MP=SS.hasOwnProperty,BP=SS.toString,Bl=Pe?Pe.toStringTag:void 0;n(LP,"getRawTag");kS=LP});function OP(t){return FP.call(t)}var DP,FP,TS,ES=m(()=>{"use strict";DP=Object.prototype,FP=DP.toString;n(OP,"objectToString");TS=OP});function RP(t){return t==null?t===void 0?IP:NP:AS&&AS in Object(t)?kS(t):TS(t)}var NP,IP,AS,rr,So=m(()=>{"use strict";An();vS();ES();NP="[object Null]",IP="[object Undefined]",AS=Pe?Pe.toStringTag:void 0;n(RP,"baseGetTag");rr=RP});function PP(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var he,Pr=m(()=>{"use strict";n(PP,"isObject");he=PP});function WP(t){if(!he(t))return!1;var e=rr(t);return e==zP||e==jP||e==$P||e==GP}var $P,zP,jP,GP,pi,Ll=m(()=>{"use strict";So();Pr();$P="[object AsyncFunction]",zP="[object Function]",jP="[object GeneratorFunction]",GP="[object Proxy]";n(WP,"isFunction");pi=WP});var HP,Zh,MS=m(()=>{"use strict";Rr();HP=ge["__core-js_shared__"],Zh=HP});function qP(t){return!!BS&&BS in t}var BS,LS,DS=m(()=>{"use strict";MS();BS=(function(){var t=/[^.]+$/.exec(Zh&&Zh.keys&&Zh.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();n(qP,"isMasked");LS=qP});function YP(t){if(t!=null){try{return UP.call(t)}catch{}try{return t+""}catch{}}return""}var VP,UP,Ui,Wg=m(()=>{"use strict";VP=Function.prototype,UP=VP.toString;n(YP,"toSource");Ui=YP});function r9(t){if(!he(t)||LS(t))return!1;var e=pi(t)?e9:KP;return e.test(Ui(t))}var XP,KP,ZP,QP,JP,t9,e9,FS,OS=m(()=>{"use strict";Ll();DS();Pr();Wg();XP=/[\\^$.*+?()[\]{}|]/g,KP=/^\[object .+?Constructor\]$/,ZP=Function.prototype,QP=Object.prototype,JP=ZP.toString,t9=QP.hasOwnProperty,e9=RegExp("^"+JP.call(t9).replace(XP,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");n(r9,"baseIsNative");FS=r9});function i9(t,e){return t?.[e]}var NS,IS=m(()=>{"use strict";n(i9,"getValue");NS=i9});function o9(t,e){var r=NS(t,e);return FS(r)?r:void 0}var cr,ko=m(()=>{"use strict";OS();IS();n(o9,"getNative");cr=o9});var n9,Yi,Dl=m(()=>{"use strict";ko();n9=cr(Object,"create"),Yi=n9});function s9(){this.__data__=Yi?Yi(null):{},this.size=0}var RS,PS=m(()=>{"use strict";Dl();n(s9,"hashClear");RS=s9});function a9(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var $S,zS=m(()=>{"use strict";n(a9,"hashDelete");$S=a9});function u9(t){var e=this.__data__;if(Yi){var r=e[t];return r===l9?void 0:r}return h9.call(e,t)?e[t]:void 0}var l9,c9,h9,jS,GS=m(()=>{"use strict";Dl();l9="__lodash_hash_undefined__",c9=Object.prototype,h9=c9.hasOwnProperty;n(u9,"hashGet");jS=u9});function d9(t){var e=this.__data__;return Yi?e[t]!==void 0:p9.call(e,t)}var f9,p9,WS,HS=m(()=>{"use strict";Dl();f9=Object.prototype,p9=f9.hasOwnProperty;n(d9,"hashHas");WS=d9});function g9(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Yi&&e===void 0?m9:e,this}var m9,qS,VS=m(()=>{"use strict";Dl();m9="__lodash_hash_undefined__";n(g9,"hashSet");qS=g9});function ks(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e{"use strict";PS();zS();GS();HS();VS();n(ks,"Hash");ks.prototype.clear=RS;ks.prototype.delete=$S;ks.prototype.get=jS;ks.prototype.has=WS;ks.prototype.set=qS;Hg=ks});function x9(){this.__data__=[],this.size=0}var YS,XS=m(()=>{"use strict";n(x9,"listCacheClear");YS=x9});function y9(t,e){return t===e||t!==t&&e!==e}var $r,Mn=m(()=>{"use strict";n(y9,"eq");$r=y9});function b9(t,e){for(var r=t.length;r--;)if($r(t[r][0],e))return r;return-1}var vo,Fl=m(()=>{"use strict";Mn();n(b9,"assocIndexOf");vo=b9});function _9(t){var e=this.__data__,r=vo(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():w9.call(e,r,1),--this.size,!0}var C9,w9,KS,ZS=m(()=>{"use strict";Fl();C9=Array.prototype,w9=C9.splice;n(_9,"listCacheDelete");KS=_9});function S9(t){var e=this.__data__,r=vo(e,t);return r<0?void 0:e[r][1]}var QS,JS=m(()=>{"use strict";Fl();n(S9,"listCacheGet");QS=S9});function k9(t){return vo(this.__data__,t)>-1}var tk,ek=m(()=>{"use strict";Fl();n(k9,"listCacheHas");tk=k9});function v9(t,e){var r=this.__data__,i=vo(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}var rk,ik=m(()=>{"use strict";Fl();n(v9,"listCacheSet");rk=v9});function vs(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e{"use strict";XS();ZS();JS();ek();ik();n(vs,"ListCache");vs.prototype.clear=YS;vs.prototype.delete=KS;vs.prototype.get=QS;vs.prototype.has=tk;vs.prototype.set=rk;To=vs});var T9,Eo,Qh=m(()=>{"use strict";ko();Rr();T9=cr(ge,"Map"),Eo=T9});function E9(){this.size=0,this.__data__={hash:new Hg,map:new(Eo||To),string:new Hg}}var ok,nk=m(()=>{"use strict";US();Ol();Qh();n(E9,"mapCacheClear");ok=E9});function A9(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var sk,ak=m(()=>{"use strict";n(A9,"isKeyable");sk=A9});function M9(t,e){var r=t.__data__;return sk(e)?r[typeof e=="string"?"string":"hash"]:r.map}var Ao,Nl=m(()=>{"use strict";ak();n(M9,"getMapData");Ao=M9});function B9(t){var e=Ao(this,t).delete(t);return this.size-=e?1:0,e}var lk,ck=m(()=>{"use strict";Nl();n(B9,"mapCacheDelete");lk=B9});function L9(t){return Ao(this,t).get(t)}var hk,uk=m(()=>{"use strict";Nl();n(L9,"mapCacheGet");hk=L9});function D9(t){return Ao(this,t).has(t)}var fk,pk=m(()=>{"use strict";Nl();n(D9,"mapCacheHas");fk=D9});function F9(t,e){var r=Ao(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}var dk,mk=m(()=>{"use strict";Nl();n(F9,"mapCacheSet");dk=F9});function Ts(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e{"use strict";nk();ck();uk();pk();mk();n(Ts,"MapCache");Ts.prototype.clear=ok;Ts.prototype.delete=lk;Ts.prototype.get=hk;Ts.prototype.has=fk;Ts.prototype.set=dk;Bn=Ts});function qg(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(O9);var r=n(function(){var i=arguments,o=e?e.apply(this,i):i[0],s=r.cache;if(s.has(o))return s.get(o);var a=t.apply(this,i);return r.cache=s.set(o,a)||s,a},"memoized");return r.cache=new(qg.Cache||Bn),r}var O9,Es,Vg=m(()=>{"use strict";Jh();O9="Expected a function";n(qg,"memoize");qg.Cache=Bn;Es=qg});function N9(){this.__data__=new To,this.size=0}var gk,xk=m(()=>{"use strict";Ol();n(N9,"stackClear");gk=N9});function I9(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var yk,bk=m(()=>{"use strict";n(I9,"stackDelete");yk=I9});function R9(t){return this.__data__.get(t)}var Ck,wk=m(()=>{"use strict";n(R9,"stackGet");Ck=R9});function P9(t){return this.__data__.has(t)}var _k,Sk=m(()=>{"use strict";n(P9,"stackHas");_k=P9});function z9(t,e){var r=this.__data__;if(r instanceof To){var i=r.__data__;if(!Eo||i.length<$9-1)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new Bn(i)}return r.set(t,e),this.size=r.size,this}var $9,kk,vk=m(()=>{"use strict";Ol();Qh();Jh();$9=200;n(z9,"stackSet");kk=z9});function As(t){var e=this.__data__=new To(t);this.size=e.size}var di,Il=m(()=>{"use strict";Ol();xk();bk();wk();Sk();vk();n(As,"Stack");As.prototype.clear=gk;As.prototype.delete=yk;As.prototype.get=Ck;As.prototype.has=_k;As.prototype.set=kk;di=As});var j9,Ms,Ug=m(()=>{"use strict";ko();j9=(function(){try{var t=cr(Object,"defineProperty");return t({},"",{}),t}catch{}})(),Ms=j9});function G9(t,e,r){e=="__proto__"&&Ms?Ms(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var Mo,Rl=m(()=>{"use strict";Ug();n(G9,"baseAssignValue");Mo=G9});function W9(t,e,r){(r!==void 0&&!$r(t[e],r)||r===void 0&&!(e in t))&&Mo(t,e,r)}var Pl,Yg=m(()=>{"use strict";Rl();Mn();n(W9,"assignMergeValue");Pl=W9});function H9(t){return function(e,r,i){for(var o=-1,s=Object(e),a=i(e),l=a.length;l--;){var c=a[t?l:++o];if(r(s[c],c,s)===!1)break}return e}}var Tk,Ek=m(()=>{"use strict";n(H9,"createBaseFor");Tk=H9});var q9,Bs,tu=m(()=>{"use strict";Ek();q9=Tk(),Bs=q9});function U9(t,e){if(e)return t.slice();var r=t.length,i=Bk?Bk(r):new t.constructor(r);return t.copy(i),i}var Lk,Ak,V9,Mk,Bk,eu,Xg=m(()=>{"use strict";Rr();Lk=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ak=Lk&&typeof module=="object"&&module&&!module.nodeType&&module,V9=Ak&&Ak.exports===Lk,Mk=V9?ge.Buffer:void 0,Bk=Mk?Mk.allocUnsafe:void 0;n(U9,"cloneBuffer");eu=U9});var Y9,Ls,Kg=m(()=>{"use strict";Rr();Y9=ge.Uint8Array,Ls=Y9});function X9(t){var e=new t.constructor(t.byteLength);return new Ls(e).set(new Ls(t)),e}var Ds,ru=m(()=>{"use strict";Kg();n(X9,"cloneArrayBuffer");Ds=X9});function K9(t,e){var r=e?Ds(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var iu,Zg=m(()=>{"use strict";ru();n(K9,"cloneTypedArray");iu=K9});function Z9(t,e){var r=-1,i=t.length;for(e||(e=Array(i));++r{"use strict";n(Z9,"copyArray");ou=Z9});var Dk,Q9,Fk,Ok=m(()=>{"use strict";Pr();Dk=Object.create,Q9=(function(){function t(){}return n(t,"object"),function(e){if(!he(e))return{};if(Dk)return Dk(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}})(),Fk=Q9});function J9(t,e){return function(r){return t(e(r))}}var nu,Jg=m(()=>{"use strict";n(J9,"overArg");nu=J9});var t7,Fs,su=m(()=>{"use strict";Jg();t7=nu(Object.getPrototypeOf,Object),Fs=t7});function r7(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||e7;return t===r}var e7,Bo,$l=m(()=>{"use strict";e7=Object.prototype;n(r7,"isPrototype");Bo=r7});function i7(t){return typeof t.constructor=="function"&&!Bo(t)?Fk(Fs(t)):{}}var au,t0=m(()=>{"use strict";Ok();su();$l();n(i7,"initCloneObject");au=i7});function o7(t){return t!=null&&typeof t=="object"}var Ce,ri=m(()=>{"use strict";n(o7,"isObjectLike");Ce=o7});function s7(t){return Ce(t)&&rr(t)==n7}var n7,e0,Nk=m(()=>{"use strict";So();ri();n7="[object Arguments]";n(s7,"baseIsArguments");e0=s7});var Ik,a7,l7,c7,ii,Os=m(()=>{"use strict";Nk();ri();Ik=Object.prototype,a7=Ik.hasOwnProperty,l7=Ik.propertyIsEnumerable,c7=e0((function(){return arguments})())?e0:function(t){return Ce(t)&&a7.call(t,"callee")&&!l7.call(t,"callee")},ii=c7});var h7,At,ve=m(()=>{"use strict";h7=Array.isArray,At=h7});function f7(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=u7}var u7,Ns,lu=m(()=>{"use strict";u7=9007199254740991;n(f7,"isLength");Ns=f7});function p7(t){return t!=null&&Ns(t.length)&&!pi(t)}var $e,mi=m(()=>{"use strict";Ll();lu();n(p7,"isArrayLike");$e=p7});function d7(t){return Ce(t)&&$e(t)}var cu,r0=m(()=>{"use strict";mi();ri();n(d7,"isArrayLikeObject");cu=d7});function m7(){return!1}var Rk,Pk=m(()=>{"use strict";n(m7,"stubFalse");Rk=m7});var jk,$k,g7,zk,x7,y7,oi,Is=m(()=>{"use strict";Rr();Pk();jk=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$k=jk&&typeof module=="object"&&module&&!module.nodeType&&module,g7=$k&&$k.exports===jk,zk=g7?ge.Buffer:void 0,x7=zk?zk.isBuffer:void 0,y7=x7||Rk,oi=y7});function k7(t){if(!Ce(t)||rr(t)!=b7)return!1;var e=Fs(t);if(e===null)return!0;var r=_7.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Gk.call(r)==S7}var b7,C7,w7,Gk,_7,S7,Wk,Hk=m(()=>{"use strict";So();su();ri();b7="[object Object]",C7=Function.prototype,w7=Object.prototype,Gk=C7.toString,_7=w7.hasOwnProperty,S7=Gk.call(Object);n(k7,"isPlainObject");Wk=k7});function X7(t){return Ce(t)&&Ns(t.length)&&!!le[rr(t)]}var v7,T7,E7,A7,M7,B7,L7,D7,F7,O7,N7,I7,R7,P7,$7,z7,j7,G7,W7,H7,q7,V7,U7,Y7,le,qk,Vk=m(()=>{"use strict";So();lu();ri();v7="[object Arguments]",T7="[object Array]",E7="[object Boolean]",A7="[object Date]",M7="[object Error]",B7="[object Function]",L7="[object Map]",D7="[object Number]",F7="[object Object]",O7="[object RegExp]",N7="[object Set]",I7="[object String]",R7="[object WeakMap]",P7="[object ArrayBuffer]",$7="[object DataView]",z7="[object Float32Array]",j7="[object Float64Array]",G7="[object Int8Array]",W7="[object Int16Array]",H7="[object Int32Array]",q7="[object Uint8Array]",V7="[object Uint8ClampedArray]",U7="[object Uint16Array]",Y7="[object Uint32Array]",le={};le[z7]=le[j7]=le[G7]=le[W7]=le[H7]=le[q7]=le[V7]=le[U7]=le[Y7]=!0;le[v7]=le[T7]=le[P7]=le[E7]=le[$7]=le[A7]=le[M7]=le[B7]=le[L7]=le[D7]=le[F7]=le[O7]=le[N7]=le[I7]=le[R7]=!1;n(X7,"baseIsTypedArray");qk=X7});function K7(t){return function(e){return t(e)}}var Lo,zl=m(()=>{"use strict";n(K7,"baseUnary");Lo=K7});var Uk,jl,Z7,i0,Q7,Xi,hu=m(()=>{"use strict";Gg();Uk=typeof exports=="object"&&exports&&!exports.nodeType&&exports,jl=Uk&&typeof module=="object"&&module&&!module.nodeType&&module,Z7=jl&&jl.exports===Uk,i0=Z7&&Kh.process,Q7=(function(){try{var t=jl&&jl.require&&jl.require("util").types;return t||i0&&i0.binding&&i0.binding("util")}catch{}})(),Xi=Q7});var Yk,J7,Do,Gl=m(()=>{"use strict";Vk();zl();hu();Yk=Xi&&Xi.isTypedArray,J7=Yk?Lo(Yk):qk,Do=J7});function t$(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var Wl,o0=m(()=>{"use strict";n(t$,"safeGet");Wl=t$});function i$(t,e,r){var i=t[e];(!(r$.call(t,e)&&$r(i,r))||r===void 0&&!(e in t))&&Mo(t,e,r)}var e$,r$,Fo,Hl=m(()=>{"use strict";Rl();Mn();e$=Object.prototype,r$=e$.hasOwnProperty;n(i$,"assignValue");Fo=i$});function o$(t,e,r,i){var o=!r;r||(r={});for(var s=-1,a=e.length;++s{"use strict";Hl();Rl();n(o$,"copyObject");gi=o$});function n$(t,e){for(var r=-1,i=Array(t);++r{"use strict";n(n$,"baseTimes");Xk=n$});function l$(t,e){var r=typeof t;return e=e??s$,!!e&&(r=="number"||r!="symbol"&&a$.test(t))&&t>-1&&t%1==0&&t{"use strict";s$=9007199254740991,a$=/^(?:0|[1-9]\d*)$/;n(l$,"isIndex");Oo=l$});function u$(t,e){var r=At(t),i=!r&&ii(t),o=!r&&!i&&oi(t),s=!r&&!i&&!o&&Do(t),a=r||i||o||s,l=a?Xk(t.length,String):[],c=l.length;for(var h in t)(e||h$.call(t,h))&&!(a&&(h=="length"||o&&(h=="offset"||h=="parent")||s&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Oo(h,c)))&&l.push(h);return l}var c$,h$,uu,n0=m(()=>{"use strict";Kk();Os();ve();Is();ql();Gl();c$=Object.prototype,h$=c$.hasOwnProperty;n(u$,"arrayLikeKeys");uu=u$});function f$(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var Zk,Qk=m(()=>{"use strict";n(f$,"nativeKeysIn");Zk=f$});function m$(t){if(!he(t))return Zk(t);var e=Bo(t),r=[];for(var i in t)i=="constructor"&&(e||!d$.call(t,i))||r.push(i);return r}var p$,d$,Jk,tv=m(()=>{"use strict";Pr();$l();Qk();p$=Object.prototype,d$=p$.hasOwnProperty;n(m$,"baseKeysIn");Jk=m$});function g$(t){return $e(t)?uu(t,!0):Jk(t)}var hr,No=m(()=>{"use strict";n0();tv();mi();n(g$,"keysIn");hr=g$});function x$(t){return gi(t,hr(t))}var ev,rv=m(()=>{"use strict";Rs();No();n(x$,"toPlainObject");ev=x$});function y$(t,e,r,i,o,s,a){var l=Wl(t,r),c=Wl(e,r),h=a.get(c);if(h){Pl(t,r,h);return}var u=s?s(l,c,r+"",t,e,a):void 0,f=u===void 0;if(f){var p=At(c),d=!p&&oi(c),g=!p&&!d&&Do(c);u=c,p||d||g?At(l)?u=l:cu(l)?u=ou(l):d?(f=!1,u=eu(c,!0)):g?(f=!1,u=iu(c,!0)):u=[]:Wk(c)||ii(c)?(u=l,ii(l)?u=ev(l):(!he(l)||pi(l))&&(u=au(c))):f=!1}f&&(a.set(c,u),o(u,c,i,s,a),a.delete(c)),Pl(t,r,u)}var iv,ov=m(()=>{"use strict";Yg();Xg();Zg();Qg();t0();Os();ve();r0();Is();Ll();Pr();Hk();Gl();o0();rv();n(y$,"baseMergeDeep");iv=y$});function nv(t,e,r,i,o){t!==e&&Bs(e,function(s,a){if(o||(o=new di),he(s))iv(t,e,a,r,nv,i,o);else{var l=i?i(Wl(t,a),s,a+"",t,e,o):void 0;l===void 0&&(l=s),Pl(t,a,l)}},hr)}var sv,av=m(()=>{"use strict";Il();Yg();tu();ov();Pr();No();o0();n(nv,"baseMerge");sv=nv});function b$(t){return t}var ur,Io=m(()=>{"use strict";n(b$,"identity");ur=b$});function C$(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var lv,cv=m(()=>{"use strict";n(C$,"apply");lv=C$});function w$(t,e,r){return e=hv(e===void 0?t.length-1:e,0),function(){for(var i=arguments,o=-1,s=hv(i.length-e,0),a=Array(s);++o{"use strict";cv();hv=Math.max;n(w$,"overRest");fu=w$});function _$(t){return function(){return t}}var fr,a0=m(()=>{"use strict";n(_$,"constant");fr=_$});var S$,uv,fv=m(()=>{"use strict";a0();Ug();Io();S$=Ms?function(t,e){return Ms(t,"toString",{configurable:!0,enumerable:!1,value:fr(e),writable:!0})}:ur,uv=S$});function E$(t){var e=0,r=0;return function(){var i=T$(),o=v$-(i-r);if(r=i,o>0){if(++e>=k$)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var k$,v$,T$,pv,dv=m(()=>{"use strict";k$=800,v$=16,T$=Date.now;n(E$,"shortOut");pv=E$});var A$,pu,l0=m(()=>{"use strict";fv();dv();A$=pv(uv),pu=A$});function M$(t,e){return pu(fu(t,e,ur),t+"")}var Ro,Vl=m(()=>{"use strict";Io();s0();l0();n(M$,"baseRest");Ro=M$});function B$(t,e,r){if(!he(r))return!1;var i=typeof e;return(i=="number"?$e(r)&&Oo(e,r.length):i=="string"&&e in r)?$r(r[e],t):!1}var Ki,Ul=m(()=>{"use strict";Mn();mi();ql();Pr();n(B$,"isIterateeCall");Ki=B$});function L$(t){return Ro(function(e,r){var i=-1,o=r.length,s=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(s=t.length>3&&typeof s=="function"?(o--,s):void 0,a&&Ki(r[0],r[1],a)&&(s=o<3?void 0:s,o=1),e=Object(e);++i{"use strict";Vl();Ul();n(L$,"createAssigner");mv=L$});var D$,Po,c0=m(()=>{"use strict";av();gv();D$=mv(function(t,e,r){sv(t,e,r)}),Po=D$});function u0(t,e){if(!t)return e;let r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return O$[r]??e}function P$(t,e){let r=t.trim();if(r)return e.securityLevel!=="loose"?(0,bv.sanitizeUrl)(r):r}function _v(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function z$(t){let e,r=0;t.forEach(o=>{r+=_v(o,e),e=o});let i=r/2;return f0(t,i)}function j$(t){return t.length===1?t[0]:z$(t)}function W$(t,e,r){let i=structuredClone(r);S.info("our points",i),e!=="start_left"&&e!=="start_right"&&i.reverse();let o=25+t,s=f0(i,o),a=10+t*.5,l=Math.atan2(i[0].y-s.y,i[0].x-s.x),c={x:0,y:0};return e==="start_left"?(c.x=Math.sin(l+Math.PI)*a+(i[0].x+s.x)/2,c.y=-Math.cos(l+Math.PI)*a+(i[0].y+s.y)/2):e==="end_right"?(c.x=Math.sin(l-Math.PI)*a+(i[0].x+s.x)/2-5,c.y=-Math.cos(l-Math.PI)*a+(i[0].y+s.y)/2-5):e==="end_left"?(c.x=Math.sin(l)*a+(i[0].x+s.x)/2-5,c.y=-Math.cos(l)*a+(i[0].y+s.y)/2-5):(c.x=Math.sin(l)*a+(i[0].x+s.x)/2,c.y=-Math.cos(l)*a+(i[0].y+s.y)/2),c}function H$(t){let e="",r="";for(let i of t)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":e=e+i+";");return{style:e,labelStyle:r}}function V$(t){let e="",r="0123456789abcdef",i=r.length;for(let o=0;oMath.round(parseFloat(s)).toString());return o.includes(r.toString())||o.includes(i.toString())}var bv,F$,O$,N$,I$,Cv,wv,R$,$$,xv,f0,G$,yv,q$,U$,Y$,X$,K$,Z$,p0,h0,du,J$,tz,Yl,De,Sv,Sr,mu,re=m(()=>{"use strict";bv=g1(_S(),1);je();Ne();wp();vt();ns();kc();Vg();c0();Gc();F$="\u200B",O$={curveBasis:bo,curveBasisClosed:Th,curveBasisOpen:Eh,curveBumpX:al,curveBumpY:ll,curveBundle:ng,curveCardinalClosed:sg,curveCardinalOpen:lg,curveCardinal:fl,curveCatmullRomClosed:hg,curveCatmullRomOpen:ug,curveCatmullRom:ml,curveLinear:Wi,curveLinearClosed:Dh,curveMonotoneX:gl,curveMonotoneY:xl,curveNatural:ys,curveStep:bs,curveStepAfter:bl,curveStepBefore:yl},N$=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,I$=n(function(t,e){let r=Cv(t,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(r)){let a=r.map(l=>l.args);es(a),i=_e(i,[...a])}else i=r.args;if(!i)return;let o=os(t,e),s="config";return i[s]!==void 0&&(o==="flowchart-v2"&&(o="flowchart"),i[o]=i[s],delete i[s]),i},"detectInit"),Cv=n(function(t,e=null){try{let r=new RegExp(`[%]{2}(?![{]${N$.source})(?=[}][%]{2}).* `,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),S.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let i,o=[];for(;(i=dn.exec(t))!==null;)if(i.index===dn.lastIndex&&dn.lastIndex++,i&&!e||e&&i[1]?.match(e)||e&&i[2]?.match(e)){let s=i[1]?i[1]:i[2],a=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;o.push({type:s,args:a})}return o.length===0?{type:t,args:null}:o.length===1?o[0]:o}catch(r){return S.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),wv=n(function(t){return t.replace(dn,"")},"removeDirectives"),R$=n(function(t,e){for(let[r,i]of e.entries())if(i.match(t))return r;return-1},"isSubstringInArray");n(u0,"interpolateToCurve");n(P$,"formatUrl");$$=n((t,...e)=>{let r=t.split("."),i=r.length-1,o=r[i],s=window;for(let a=0;a{let r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),f0=n((t,e)=>{let r,i=e;for(let o of t){if(r){let s=_v(o,r);if(s===0)return r;if(s=1)return{x:o.x,y:o.y};if(a>0&&a<1)return{x:xv((1-a)*r.x+a*o.x,5),y:xv((1-a)*r.y+a*o.y,5)}}}r=o}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),G$=n((t,e,r)=>{S.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());let o=f0(e,25),s=t?10:5,a=Math.atan2(e[0].y-o.y,e[0].x-o.x),l={x:0,y:0};return l.x=Math.sin(a)*s+(e[0].x+o.x)/2,l.y=-Math.cos(a)*s+(e[0].y+o.y)/2,l},"calcCardinalityPosition");n(W$,"calcTerminalLabelPosition");n(H$,"getStylesFromArray");yv=0,q$=n(()=>(yv++,"id-"+Math.random().toString(36).substr(2,12)+"-"+yv),"generateId");n(V$,"makeRandomHex");U$=n(t=>V$(t.length),"random"),Y$=n(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:""}},"getTextObj"),X$=n(function(t,e){let r=e.text.replace(Ir.lineBreakRegex," "),[,i]=Yl(e.fontSize),o=t.append("text");o.attr("x",e.x),o.attr("y",e.y),o.style("text-anchor",e.anchor),o.style("font-family",e.fontFamily),o.style("font-size",i),o.style("font-weight",e.fontWeight),o.attr("fill",e.fill),e.class!==void 0&&o.attr("class",e.class);let s=o.append("tspan");return s.attr("x",e.x+e.textMargin*2),s.attr("fill",e.fill),s.text(r),o},"drawSimpleText"),K$=Es((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
    "},r),Ir.lineBreakRegex.test(t)))return t;let i=t.split(" ").filter(Boolean),o=[],s="";return i.forEach((a,l)=>{let c=ni(`${a} `,r),h=ni(s,r);if(c>e){let{hyphenatedStrings:p,remainingWord:d}=Z$(a,e,"-",r);o.push(s,...p),s=d}else h+c>=e?(o.push(s),s=a):s=[s,a].filter(Boolean).join(" ");l+1===i.length&&o.push(s)}),o.filter(a=>a!=="").join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),Z$=Es((t,e,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);let o=[...t],s=[],a="";return o.forEach((l,c)=>{let h=`${a}${l}`;if(ni(h,i)>=e){let f=c+1,p=o.length===f,d=`${h}${r}`;s.push(p?h:d),a=""}else a=h}),{hyphenatedStrings:s,remainingWord:a}},(t,e,r="-",i)=>`${t}${e}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);n(Q$,"calculateTextHeight");n(ni,"calculateTextWidth");p0=Es((t,e)=>{let{fontSize:r=12,fontFamily:i="Arial",fontWeight:o=400}=e;if(!t)return{width:0,height:0};let[,s]=Yl(r),a=["sans-serif",i],l=t.split(Ir.lineBreakRegex),c=[],h=ft("body");if(!h.remove)return{width:0,height:0,lineHeight:0};let u=h.append("svg");for(let p of a){let d=0,g={width:0,height:0,lineHeight:0};for(let x of l){let y=Y$();y.text=x||F$;let b=X$(u,y).style("font-size",s).style("font-weight",o).style("font-family",p),C=(b._groups||b)[0][0].getBBox();if(C.width===0&&C.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,C.width)),d=Math.round(C.height),g.height+=d,g.lineHeight=Math.round(Math.max(g.lineHeight,d))}c.push(g)}u.remove();let f=isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1;return c[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),h0=class{constructor(e=!1,r){this.count=0;this.count=r?r.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{n(this,"InitIDGenerator")}},J$=n(function(t){return du=du||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),du.innerHTML=t,unescape(du.textContent)},"entityDecode");n(d0,"isDetailedError");tz=n((t,e,r,i)=>{if(!i)return;let o=t.node()?.getBBox();o&&t.append("text").text(i).attr("text-anchor","middle").attr("x",o.x+o.width/2).attr("y",-r).attr("class",e)},"insertTitle"),Yl=n(t=>{if(typeof t=="number")return[t,t+"px"];let e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");n(m0,"cleanAndMerge");De={assignWithDepth:_e,wrapLabel:K$,calculateTextHeight:Q$,calculateTextWidth:ni,calculateTextDimensions:p0,cleanAndMerge:m0,detectInit:I$,detectDirective:Cv,isSubstringInArray:R$,interpolateToCurve:u0,calcLabelPosition:j$,calcCardinalityPosition:G$,calcTerminalLabelPosition:W$,formatUrl:P$,getStylesFromArray:H$,generateId:q$,random:U$,runFunc:$$,entityDecode:J$,insertTitle:tz,isLabelCoordinateInPath:ez,parseFontSize:Yl,InitIDGenerator:h0},Sv=n(function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/#\w+;/g,function(r){let i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"\uFB02\xB0\xB0"+i+"\xB6\xDF":"\uFB02\xB0"+i+"\xB6\xDF"}),e},"encodeEntities"),Sr=n(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),mu=n((t,e,{counter:r=0,prefix:i,suffix:o},s)=>s||`${i?`${i}_`:""}${t}_${e}_${r}${o?`_${o}`:""}`,"getEdgeId");n(Zt,"handleUndefinedAttr");n(ez,"isLabelCoordinateInPath")});function rz(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(e=>e.segment):[...t]}function iz(t,e){let r=rz(e.content);return kv(t,[],r,e.type)}function kv(t,e,r,i){if(r.length===0)return[{content:e.join(""),type:i},{content:"",type:i}];let[o,...s]=r,a=[...e,o];return t([{content:a.join(""),type:i}])?kv(t,a,s,i):(e.length===0&&o&&(e.push(o),r.shift()),[{content:e.join(""),type:i},{content:r.join(""),type:i}])}function vv(t,e){if(t.some(({content:r})=>r.includes(` `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return g0(t,e)}function g0(t,e,r=[],i=[]){if(t.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let o="";t[0].content===" "&&(o=" ",t.shift());let s=t.shift()??{content:" ",type:"normal"},a=[...i];if(o!==""&&a.push({content:o,type:"normal"}),a.push(s),e(a))return g0(t,e,r,a);if(i.length>0)r.push(i),t.unshift(s);else if(s.content){let[l,c]=iz(e,s);r.push([l]),c.content&&t.unshift(c)}return g0(t,e,r)}var Tv=m(()=>{"use strict";n(rz,"splitTextToChars");n(iz,"splitWordToFitWidth");n(kv,"splitWordToFitWidthRecursion");n(vv,"splitLineToFitWidth");n(g0,"splitLineToFitWidthRecursion")});function Ev(t,e){e&&t.attr("style",e)}async function oz(t,e,r,i,o=!1,s=ee()){let a=t.append("foreignObject");a.attr("width",`${10*r}px`),a.attr("height",`${10*r}px`);let l=a.append("xhtml:div"),c=uo(e.label)?await $c(e.label.replace(Ir.lineBreakRegex,` `),s):Oe(e.label,s),h=e.isNode?"nodeLabel":"edgeLabel",u=l.append("span");u.html(c),Ev(u,e.labelStyle),u.attr("class",`${h} ${i}`),Ev(l,e.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),l.style("max-width",r+"px"),l.style("text-align","center"),l.attr("xmlns","http://www.w3.org/1999/xhtml"),o&&l.attr("class","labelBkg");let f=l.node().getBoundingClientRect();return f.width===r&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",r+"px"),f=l.node().getBoundingClientRect()),a.node()}function Av(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 nz(t,e,r){let i=t.append("text"),o=Av(i,1,e);Mv(o,r);let s=o.node().getComputedTextLength();return i.remove(),s}function sz(t,e,r,i=!1){let s=e.append("g"),a=s.insert("rect").attr("class","background").attr("style","stroke: none"),l=s.append("text").attr("y","-10.1"),c=0;for(let h of r){let u=n(p=>nz(s,1.1,p)<=t,"checkWidth"),f=u(h)?[h]:vv(h,u);for(let p of f){let d=Av(l,c,1.1);Mv(d,p),c++}}if(i){let h=l.node().getBBox(),u=2;return a.attr("x",h.x-u).attr("y",h.y-u).attr("width",h.width+2*u).attr("height",h.height+2*u),s.node()}else return l.node()}function Mv(t,e){t.text(""),e.forEach((r,i)=>{let o=t.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");i===0?o.text(r.content):o.text(" "+r.content)})}async function az(t,e={}){let r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(o,s,a)=>(r.push((async()=>{let l=`${s}:${a}`;return await Jy(l)?await li(l,void 0,{class:"label-icon"}):``})()),o));let i=await Promise.all(r);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}var pr,Ln=m(()=>{"use strict";je();Ne();vt();bS();re();pn();Tv();Zr();n(Ev,"applyStyle");n(oz,"addHtmlSpan");n(Av,"createTspan");n(nz,"computeWidthOfText");n(sz,"createFormattedText");n(Mv,"updateTextContentAndStyles");n(az,"replaceIconSubstring");pr=n(async(t,e="",{style:r="",isTitle:i=!1,classes:o="",useHtmlLabels:s=!0,isNode:a=!0,width:l=200,addSvgBackground:c=!1}={},h)=>{if(S.debug("XYZ createText",e,r,i,o,s,a,"addSvgBackground: ",c),s){let u=yS(e,h),f=await az(Sr(u),h),p=e.replace(/\\\\/g,"\\"),d={isNode:a,label:uo(e)?p:f,labelStyle:r.replace("fill:","color:")};return await oz(t,d,l,o,c,h)}else{let u=e.replace(//g,"
    "),f=xS(u.replace("
    ","
    "),h),p=sz(l,t,f,e?c:!1);if(a){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));let d=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");ft(p).attr("style",d)}else{let d=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");ft(p).select("rect").attr("style",d.replace(/background:/g,"fill:"));let g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");ft(p).select("text").attr("style",g)}return p}},"createText")});function st(t){let e=t.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return e.push("Z"),e.join(" ")}function zr(t,e,r,i,o,s){let a=[],c=r-t,h=i-e,u=c/s,f=2*Math.PI/u,p=e+h/2;for(let d=0;d<=50;d++){let g=d/50,x=t+g*c,y=p+o*Math.sin(f*(x-t));a.push({x,y})}return a}function Dn(t,e,r,i,o,s){let a=[],l=o*Math.PI/180,u=(s*Math.PI/180-l)/(i-1);for(let f=0;f{"use strict";Ln();Me();je();Dc();Ne();re();K=n(async(t,e,r)=>{let i,o=e.useHtmlLabels||Vt(_t()?.htmlLabels);r?i=r:i="node default";let s=t.insert("g").attr("class",i).attr("id",e.domId||e.id),a=s.insert("g").attr("class","label").attr("style",Zt(e.labelStyle)),l;e.label===void 0?l="":l=typeof e.label=="string"?e.label:e.label[0];let c=await pr(a,Oe(Sr(l),_t()),{useHtmlLabels:o,width:e.width||_t().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:e.labelStyle,addSvgBackground:!!e.icon||!!e.img}),h=c.getBBox(),u=(e?.padding??0)/2;if(o){let f=c.children[0],p=ft(c),d=f.getElementsByTagName("img");if(d){let g=l.replace(/]*>/g,"").trim()==="";await Promise.all([...d].map(x=>new Promise(y=>{function b(){if(x.style.display="flex",x.style.flexDirection="column",g){let C=_t().fontSize?_t().fontSize:window.getComputedStyle(document.body).fontSize,k=5,[T=Lc.fontSize]=Yl(C),v=T*k+"px";x.style.minWidth=v,x.style.maxWidth=v}else x.style.width="100%";y(x)}n(b,"setupImage"),setTimeout(()=>{x.complete&&b()}),x.addEventListener("error",b),x.addEventListener("load",b)})))}h=f.getBoundingClientRect(),p.attr("width",h.width),p.attr("height",h.height)}return o?a.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):a.attr("transform","translate(0, "+-h.height/2+")"),e.centerLabel&&a.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),a.insert("rect",":first-child"),{shapeSvg:s,bbox:h,halfPadding:u,label:a}},"labelHelper"),gu=n(async(t,e,r)=>{let i=r.useHtmlLabels||Vt(_t()?.flowchart?.htmlLabels),o=t.insert("g").attr("class","label").attr("style",r.labelStyle||""),s=await pr(o,Oe(Sr(e),_t()),{useHtmlLabels:i,width:r.width||_t()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img}),a=s.getBBox(),l=r.padding/2;if(Vt(_t()?.flowchart?.htmlLabels)){let c=s.children[0],h=ft(s);a=c.getBoundingClientRect(),h.attr("width",a.width),h.attr("height",a.height)}return i?o.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"):o.attr("transform","translate(0, "+-a.height/2+")"),r.centerLabel&&o.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:t,bbox:a,halfPadding:l,label:o}},"insertLabel"),j=n((t,e)=>{let r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds"),Y=n((t,e)=>(t.look==="handDrawn"?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");n(st,"createPathFromPoints");n(zr,"generateFullSineWavePoints");n(Dn,"generateCirclePoints")});function lz(t,e){return t.intersect(e)}var Bv,Lv=m(()=>{"use strict";n(lz,"intersectNode");Bv=lz});function cz(t,e,r,i){var o=t.x,s=t.y,a=o-i.x,l=s-i.y,c=Math.sqrt(e*e*l*l+r*r*a*a),h=Math.abs(e*r*a/c);i.x{"use strict";n(cz,"intersectEllipse");xu=cz});function hz(t,e,r){return xu(t,e,e,r)}var Dv,Fv=m(()=>{"use strict";x0();n(hz,"intersectCircle");Dv=hz});function uz(t,e,r,i){{let o=e.y-t.y,s=t.x-e.x,a=e.x*t.y-t.x*e.y,l=o*r.x+s*r.y+a,c=o*i.x+s*i.y+a,h=1e-6;if(l!==0&&c!==0&&Ov(l,c))return;let u=i.y-r.y,f=r.x-i.x,p=i.x*r.y-r.x*i.y,d=u*t.x+f*t.y+p,g=u*e.x+f*e.y+p;if(Math.abs(d)0}var Nv,Iv=m(()=>{"use strict";n(uz,"intersectLine");n(Ov,"sameSign");Nv=uz});function fz(t,e,r){let i=t.x,o=t.y,s=[],a=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(u){a=Math.min(a,u.x),l=Math.min(l,u.y)}):(a=Math.min(a,e.x),l=Math.min(l,e.y));let c=i-t.width/2-a,h=o-t.height/2-l;for(let u=0;u1&&s.sort(function(u,f){let p=u.x-r.x,d=u.y-r.y,g=Math.sqrt(p*p+d*d),x=f.x-r.x,y=f.y-r.y,b=Math.sqrt(x*x+y*y);return g{"use strict";Iv();n(fz,"intersectPolygon");Rv=fz});var pz,$o,y0=m(()=>{"use strict";pz=n((t,e)=>{var r=t.x,i=t.y,o=e.x-r,s=e.y-i,a=t.width/2,l=t.height/2,c,h;return Math.abs(s)*a>Math.abs(o)*l?(s<0&&(l=-l),c=s===0?0:l*o/s,h=l):(o<0&&(a=-a),c=a,h=o===0?0:a*s/o),{x:r+c,y:i+h}},"intersectRect"),$o=pz});var $,ht=m(()=>{"use strict";Lv();Fv();x0();Pv();y0();$={node:Bv,circle:Dv,ellipse:xu,polygon:Rv,rect:$o}});var $v,xi,dz,b0,G,H,mz,at=m(()=>{"use strict";Me();$v=n(t=>{let{handDrawnSeed:e}=_t();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),xi=n(t=>{let e=dz([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),dz=n(t=>{let e=new Map;return t.forEach(r=>{let[i,o]=r.split(":");e.set(i.trim(),o?.trim())}),e},"styles2Map"),b0=n(t=>t==="color"||t==="font-size"||t==="font-family"||t==="font-weight"||t==="font-style"||t==="text-decoration"||t==="text-align"||t==="text-transform"||t==="line-height"||t==="letter-spacing"||t==="word-spacing"||t==="text-shadow"||t==="text-overflow"||t==="white-space"||t==="word-wrap"||t==="word-break"||t==="overflow-wrap"||t==="hyphens","isLabelStyle"),G=n(t=>{let{stylesArray:e}=xi(t),r=[],i=[],o=[],s=[];return e.forEach(a=>{let l=a[0];b0(l)?r.push(a.join(":")+" !important"):(i.push(a.join(":")+" !important"),l.includes("stroke")&&o.push(a.join(":")+" !important"),l==="fill"&&s.push(a.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:e,borderStyles:o,backgroundStyles:s}},"styles2String"),H=n((t,e)=>{let{themeVariables:r,handDrawnSeed:i}=_t(),{nodeBorder:o,mainBkg:s}=r,{stylesMap:a}=xi(t);return Object.assign({roughness:.7,fill:a.get("fill")||s,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:a.get("stroke")||o,seed:i,strokeWidth:a.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:mz(a.get("stroke-dasharray"))},e)},"userNodeOverrides"),mz=n(t=>{if(!t)return[0,0];let e=t.trim().split(/\s+/).map(Number);if(e.length===1){let o=isNaN(e[0])?0:e[0];return[o,o]}let r=isNaN(e[0])?0:e[0],i=isNaN(e[1])?0:e[1];return[r,i]},"getStrokeDashArray")});function C0(t,e,r){if(t&&t.length){let[i,o]=e,s=Math.PI/180*r,a=Math.cos(s),l=Math.sin(s);for(let c of t){let[h,u]=c;c[0]=(h-i)*a-(u-o)*l+i,c[1]=(h-i)*l+(u-o)*a+o}}}function gz(t,e){return t[0]===e[0]&&t[1]===e[1]}function xz(t,e,r,i=1){let o=r,s=Math.max(e,.1),a=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,l=[0,0];if(o)for(let h of a)C0(h,l,o);let c=(function(h,u,f){let p=[];for(let C of h){let k=[...C];gz(k[0],k[k.length-1])||k.push([k[0][0],k[0][1]]),k.length>2&&p.push(k)}let d=[];u=Math.max(u,.1);let g=[];for(let C of p)for(let k=0;kC.ymink.ymin?1:C.xk.x?1:C.ymax===k.ymax?0:(C.ymax-k.ymax)/Math.abs(C.ymax-k.ymax))),!g.length)return d;let x=[],y=g[0].ymin,b=0;for(;x.length||g.length;){if(g.length){let C=-1;for(let k=0;ky);k++)C=k;g.splice(0,C+1).forEach((k=>{x.push({s:y,edge:k})}))}if(x=x.filter((C=>!(C.edge.ymax<=y))),x.sort(((C,k)=>C.edge.x===k.edge.x?0:(C.edge.x-k.edge.x)/Math.abs(C.edge.x-k.edge.x))),(f!==1||b%u==0)&&x.length>1)for(let C=0;C=x.length)break;let T=x[C].edge,v=x[k].edge;d.push([[Math.round(T.x),y],[Math.round(v.x),y]])}y+=f,x.forEach((C=>{C.edge.x=C.edge.x+f*C.edge.islope})),b++}return d})(a,s,i);if(o){for(let h of a)C0(h,l,-o);(function(h,u,f){let p=[];h.forEach((d=>p.push(...d))),C0(p,u,f)})(c,l,-o)}return c}function Ql(t,e){var r;let i=e.hachureAngle+90,o=e.hachureGap;o<0&&(o=4*e.strokeWidth),o=Math.round(Math.max(o,.1));let s=1;return e.roughness>=1&&(((r=e.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(s=o),xz(t,o,i,s||1)}function Tu(t){let e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}function _0(t,e){return t.type===e}function I0(t){let e=[],r=(function(a){let l=new Array;for(;a!=="";)if(a.match(/^([ \t\r\n,]+)/))a=a.substr(RegExp.$1.length);else if(a.match(/^([aAcChHlLmMqQsStTvVzZ])/))l[l.length]={type:yz,text:RegExp.$1},a=a.substr(RegExp.$1.length);else{if(!a.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];l[l.length]={type:w0,text:`${parseFloat(RegExp.$1)}`},a=a.substr(RegExp.$1.length)}return l[l.length]={type:zv,text:""},l})(t),i="BOD",o=0,s=r[o];for(;!_0(s,zv);){let a=0,l=[];if(i==="BOD"){if(s.text!=="M"&&s.text!=="m")return I0("M0,0"+t);o++,a=yu[s.text],i=s.text}else _0(s,w0)?a=yu[i]:(o++,a=yu[s.text],i=s.text);if(!(o+au%2?h+r:h+e));s.push({key:"C",data:c}),e=c[4],r=c[5];break}case"Q":s.push({key:"Q",data:[...l]}),e=l[2],r=l[3];break;case"q":{let c=l.map(((h,u)=>u%2?h+r:h+e));s.push({key:"Q",data:c}),e=c[2],r=c[3];break}case"A":s.push({key:"A",data:[...l]}),e=l[5],r=l[6];break;case"a":e+=l[5],r+=l[6],s.push({key:"A",data:[l[0],l[1],l[2],l[3],l[4],e,r]});break;case"H":s.push({key:"H",data:[...l]}),e=l[0];break;case"h":e+=l[0],s.push({key:"H",data:[e]});break;case"V":s.push({key:"V",data:[...l]}),r=l[0];break;case"v":r+=l[0],s.push({key:"V",data:[r]});break;case"S":s.push({key:"S",data:[...l]}),e=l[2],r=l[3];break;case"s":{let c=l.map(((h,u)=>u%2?h+r:h+e));s.push({key:"S",data:c}),e=c[2],r=c[3];break}case"T":s.push({key:"T",data:[...l]}),e=l[0],r=l[1];break;case"t":e+=l[0],r+=l[1],s.push({key:"T",data:[e,r]});break;case"Z":case"z":s.push({key:"Z",data:[]}),e=i,r=o}return s}function Xv(t){let e=[],r="",i=0,o=0,s=0,a=0,l=0,c=0;for(let{key:h,data:u}of t){switch(h){case"M":e.push({key:"M",data:[...u]}),[i,o]=u,[s,a]=u;break;case"C":e.push({key:"C",data:[...u]}),i=u[4],o=u[5],l=u[2],c=u[3];break;case"L":e.push({key:"L",data:[...u]}),[i,o]=u;break;case"H":i=u[0],e.push({key:"L",data:[i,o]});break;case"V":o=u[0],e.push({key:"L",data:[i,o]});break;case"S":{let f=0,p=0;r==="C"||r==="S"?(f=i+(i-l),p=o+(o-c)):(f=i,p=o),e.push({key:"C",data:[f,p,...u]}),l=u[0],c=u[1],i=u[2],o=u[3];break}case"T":{let[f,p]=u,d=0,g=0;r==="Q"||r==="T"?(d=i+(i-l),g=o+(o-c)):(d=i,g=o);let x=i+2*(d-i)/3,y=o+2*(g-o)/3,b=f+2*(d-f)/3,C=p+2*(g-p)/3;e.push({key:"C",data:[x,y,b,C,f,p]}),l=d,c=g,i=f,o=p;break}case"Q":{let[f,p,d,g]=u,x=i+2*(f-i)/3,y=o+2*(p-o)/3,b=d+2*(f-d)/3,C=g+2*(p-g)/3;e.push({key:"C",data:[x,y,b,C,d,g]}),l=f,c=p,i=d,o=g;break}case"A":{let f=Math.abs(u[0]),p=Math.abs(u[1]),d=u[2],g=u[3],x=u[4],y=u[5],b=u[6];f===0||p===0?(e.push({key:"C",data:[i,o,y,b,y,b]}),i=y,o=b):(i!==y||o!==b)&&(Kv(i,o,y,b,f,p,d,g,x).forEach((function(C){e.push({key:"C",data:C})})),i=y,o=b);break}case"Z":e.push({key:"Z",data:[]}),i=s,o=a}r=h}return e}function Xl(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}function Kv(t,e,r,i,o,s,a,l,c,h){let u=(f=a,Math.PI*f/180);var f;let p=[],d=0,g=0,x=0,y=0;if(h)[d,g,x,y]=h;else{[t,e]=Xl(t,e,-u),[r,i]=Xl(r,i,-u);let A=(t-r)/2,M=(e-i)/2,z=A*A/(o*o)+M*M/(s*s);z>1&&(z=Math.sqrt(z),o*=z,s*=z);let F=o*o,V=s*s,q=F*V-F*M*M-V*A*A,Q=F*M*M+V*A*A,Ct=(l===c?-1:1)*Math.sqrt(Math.abs(q/Q));x=Ct*o*M/s+(t+r)/2,y=Ct*-s*A/o+(e+i)/2,d=Math.asin(parseFloat(((e-y)/s).toFixed(9))),g=Math.asin(parseFloat(((i-y)/s).toFixed(9))),tg&&(d-=2*Math.PI),!c&&g>d&&(g-=2*Math.PI)}let b=g-d;if(Math.abs(b)>120*Math.PI/180){let A=g,M=r,z=i;g=c&&g>d?d+120*Math.PI/180*1:d+120*Math.PI/180*-1,p=Kv(r=x+o*Math.cos(g),i=y+s*Math.sin(g),M,z,o,s,a,0,c,[g,A,x,y])}b=g-d;let C=Math.cos(d),k=Math.sin(d),T=Math.cos(g),v=Math.sin(g),D=Math.tan(b/4),B=4/3*o*D,R=4/3*s*D,P=[t,e],U=[t+B*k,e-R*C],N=[r+B*v,i-R*T],O=[r,i];if(U[0]=2*P[0]-U[0],U[1]=2*P[1]-U[1],h)return[U,N,O].concat(p);{p=[U,N,O].concat(p);let A=[];for(let M=0;M2){let o=[];for(let s=0;s2*Math.PI&&(d=0,g=2*Math.PI);let x=2*Math.PI/c.curveStepCount,y=Math.min(x/2,(g-d)/2),b=Vv(y,h,u,f,p,d,g,1,c);if(!c.disableMultiStroke){let C=Vv(y,h,u,f,p,d,g,1.5,c);b.push(...C)}return a&&(l?b.push(...zo(h,u,h+f*Math.cos(d),u+p*Math.sin(d),c),...zo(h,u,h+f*Math.cos(g),u+p*Math.sin(g),c)):b.push({op:"lineTo",data:[h,u]},{op:"lineTo",data:[h+f*Math.cos(d),u+p*Math.sin(d)]})),{type:"path",ops:b}}function Wv(t,e){let r=Xv(Yv(I0(t))),i=[],o=[0,0],s=[0,0];for(let{key:a,data:l}of r)switch(a){case"M":s=[l[0],l[1]],o=[l[0],l[1]];break;case"L":i.push(...zo(s[0],s[1],l[0],l[1],e)),s=[l[0],l[1]];break;case"C":{let[c,h,u,f,p,d]=l;i.push(...wz(c,h,u,f,p,d,s,e)),s=[p,d];break}case"Z":i.push(...zo(s[0],s[1],o[0],o[1],e)),s=[o[0],o[1]]}return{type:"path",ops:i}}function S0(t,e){let r=[];for(let i of t)if(i.length){let o=e.maxRandomnessOffset||0,s=i.length;if(s>2){r.push({op:"move",data:[i[0][0]+St(o,e),i[0][1]+St(o,e)]});for(let a=1;a500?.4:-.0016668*c+1.233334;let u=o.maxRandomnessOffset||0;u*u*100>l&&(u=c/10);let f=u/2,p=.2+.2*Jv(o),d=o.bowing*o.maxRandomnessOffset*(i-e)/200,g=o.bowing*o.maxRandomnessOffset*(t-r)/200;d=St(d,o,h),g=St(g,o,h);let x=[],y=n(()=>St(f,o,h),"M"),b=n(()=>St(u,o,h),"k"),C=o.preserveVertices;return s&&(a?x.push({op:"move",data:[t+(C?0:y()),e+(C?0:y())]}):x.push({op:"move",data:[t+(C?0:St(u,o,h)),e+(C?0:St(u,o,h))]})),a?x.push({op:"bcurveTo",data:[d+t+(r-t)*p+y(),g+e+(i-e)*p+y(),d+t+2*(r-t)*p+y(),g+e+2*(i-e)*p+y(),r+(C?0:y()),i+(C?0:y())]}):x.push({op:"bcurveTo",data:[d+t+(r-t)*p+b(),g+e+(i-e)*p+b(),d+t+2*(r-t)*p+b(),g+e+2*(i-e)*p+b(),r+(C?0:b()),i+(C?0:b())]}),x}function bu(t,e,r){if(!t.length)return[];let i=[];i.push([t[0][0]+St(e,r),t[0][1]+St(e,r)]),i.push([t[0][0]+St(e,r),t[0][1]+St(e,r)]);for(let o=1;o3){let s=[],a=1-r.curveTightness;o.push({op:"move",data:[t[1][0],t[1][1]]});for(let l=1;l+21&&o.push(l)):o.push(l),o.push(t[e+3])}else{let c=t[e+0],h=t[e+1],u=t[e+2],f=t[e+3],p=Fn(c,h,.5),d=Fn(h,u,.5),g=Fn(u,f,.5),x=Fn(p,d,.5),y=Fn(d,g,.5),b=Fn(x,y,.5);F0([c,p,x,b],0,r,o),F0([b,y,g,f],0,r,o)}var s,a;return o}function Sz(t,e){return vu(t,0,t.length,e)}function vu(t,e,r,i,o){let s=o||[],a=t[e],l=t[r-1],c=0,h=1;for(let u=e+1;uc&&(c=f,h=u)}return Math.sqrt(c)>i?(vu(t,e,h+1,i,s),vu(t,h,r,i,s)):(s.length||s.push(a),s.push(l)),s}function k0(t,e=.15,r){let i=[],o=(t.length-1)/3;for(let s=0;s0?vu(i,0,i.length,r):i}var Zl,v0,T0,E0,A0,M0,dr,B0,yz,w0,zv,yu,bz,kr,$s,O0,Cu,N0,W,pt=m(()=>{"use strict";n(C0,"t");n(gz,"e");n(xz,"s");n(Ql,"n");Zl=class{static{n(this,"o")}constructor(e){this.helper=e}fillPolygons(e,r){return this._fillPolygons(e,r)}_fillPolygons(e,r){let i=Ql(e,r);return{type:"fillSketch",ops:this.renderLines(i,r)}}renderLines(e,r){let i=[];for(let o of e)i.push(...this.helper.doubleLineOps(o[0][0],o[0][1],o[1][0],o[1][1],r));return i}};n(Tu,"a");v0=class extends Zl{static{n(this,"h")}fillPolygons(e,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);let o=Ql(e,Object.assign({},r,{hachureGap:i})),s=Math.PI/180*r.hachureAngle,a=[],l=.5*i*Math.cos(s),c=.5*i*Math.sin(s);for(let[h,u]of o)Tu([h,u])&&a.push([[h[0]-l,h[1]+c],[...u]],[[h[0]+l,h[1]-c],[...u]]);return{type:"fillSketch",ops:this.renderLines(a,r)}}},T0=class extends Zl{static{n(this,"r")}fillPolygons(e,r){let i=this._fillPolygons(e,r),o=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),s=this._fillPolygons(e,o);return i.ops=i.ops.concat(s.ops),i}},E0=class{static{n(this,"i")}constructor(e){this.helper=e}fillPolygons(e,r){let i=Ql(e,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(e,r){let i=[],o=r.hachureGap;o<0&&(o=4*r.strokeWidth),o=Math.max(o,.1);let s=r.fillWeight;s<0&&(s=r.strokeWidth/2);let a=o/4;for(let l of e){let c=Tu(l),h=c/o,u=Math.ceil(h)-1,f=c-u*o,p=(l[0][0]+l[1][0])/2-o/4,d=Math.min(l[0][1],l[1][1]);for(let g=0;g{let l=Tu(a),c=Math.floor(l/(i+o)),h=(l+o-c*(i+o))/2,u=a[0],f=a[1];u[0]>f[0]&&(u=a[1],f=a[0]);let p=Math.atan((f[1]-u[1])/(f[0]-u[0]));for(let d=0;d{let a=Tu(s),l=Math.round(a/(2*r)),c=s[0],h=s[1];c[0]>h[0]&&(c=s[1],h=s[0]);let u=Math.atan((h[1]-c[1])/(h[0]-c[0]));for(let f=0;f2*Math.PI&&(B=0,R=2*Math.PI);let P=(R-B)/C.curveStepCount,U=[];for(let N=B;N<=R;N+=P)U.push([k+v*Math.cos(N),T+D*Math.sin(N)]);return U.push([k+v*Math.cos(R),T+D*Math.sin(R)]),U.push([k,T]),Ps([U],C)})(e,r,i,o,s,a,h));return h.stroke!==kr&&u.push(f),this._d("arc",u,h)}curve(e,r){let i=this._o(r),o=[],s=jv(e,i);if(i.fill&&i.fill!==kr)if(i.fillStyle==="solid"){let a=jv(e,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));o.push({type:"fillPath",ops:this._mergedShape(a.ops)})}else{let a=[],l=e;if(l.length){let c=typeof l[0][0]=="number"?[l]:l;for(let h of c)h.length<3?a.push(...h):h.length===3?a.push(...k0(Uv([h[0],h[0],h[1],h[2]]),10,(1+i.roughness)/2)):a.push(...k0(Uv(h),10,(1+i.roughness)/2))}a.length&&o.push(Ps([a],i))}return i.stroke!==kr&&o.push(s),this._d("curve",o,i)}polygon(e,r){let i=this._o(r),o=[],s=wu(e,!0,i);return i.fill&&(i.fillStyle==="solid"?o.push(S0([e],i)):o.push(Ps([e],i))),i.stroke!==kr&&o.push(s),this._d("polygon",o,i)}path(e,r){let i=this._o(r),o=[];if(!e)return this._d("path",o,i);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let s=i.fill&&i.fill!=="transparent"&&i.fill!==kr,a=i.stroke!==kr,l=!!(i.simplification&&i.simplification<1),c=(function(u,f,p){let d=Xv(Yv(I0(u))),g=[],x=[],y=[0,0],b=[],C=n(()=>{b.length>=4&&x.push(...k0(b,f)),b=[]},"i"),k=n(()=>{C(),x.length&&(g.push(x),x=[])},"c");for(let{key:v,data:D}of d)switch(v){case"M":k(),y=[D[0],D[1]],x.push(y);break;case"L":C(),x.push([D[0],D[1]]);break;case"C":if(!b.length){let B=x.length?x[x.length-1]:y;b.push([B[0],B[1]])}b.push([D[0],D[1]]),b.push([D[2],D[3]]),b.push([D[4],D[5]]);break;case"Z":C(),x.push([y[0],y[1]])}if(k(),!p)return g;let T=[];for(let v of g){let D=Sz(v,p);D.length&&T.push(D)}return T})(e,1,l?4-4*(i.simplification||1):(1+i.roughness)/2),h=Wv(e,i);if(s)if(i.fillStyle==="solid")if(c.length===1){let u=Wv(e,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));o.push({type:"fillPath",ops:this._mergedShape(u.ops)})}else o.push(S0(c,i));else o.push(Ps(c,i));return a&&(l?c.forEach((u=>{o.push(wu(u,!1,i))})):o.push(h)),this._d("path",o,i)}opsToPath(e,r){let i="";for(let o of e.ops){let s=typeof r=="number"&&r>=0?o.data.map((a=>+a.toFixed(r))):o.data;switch(o.op){case"move":i+=`M${s[0]} ${s[1]} `;break;case"bcurveTo":i+=`C${s[0]} ${s[1]}, ${s[2]} ${s[3]}, ${s[4]} ${s[5]} `;break;case"lineTo":i+=`L${s[0]} ${s[1]} `}}return i.trim()}toPaths(e){let r=e.sets||[],i=e.options||this.defaultOptions,o=[];for(let s of r){let a=null;switch(s.type){case"path":a={d:this.opsToPath(s),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:kr};break;case"fillPath":a={d:this.opsToPath(s),stroke:kr,strokeWidth:0,fill:i.fill||kr};break;case"fillSketch":a=this.fillSketch(s,i)}a&&o.push(a)}return o}fillSketch(e,r){let i=r.fillWeight;return i<0&&(i=r.strokeWidth/2),{d:this.opsToPath(e),stroke:r.fill||kr,strokeWidth:i,fill:kr}}_mergedShape(e){return e.filter(((r,i)=>i===0||r.op!=="move"))}},O0=class{static{n(this,"st")}constructor(e,r){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new $s(r)}draw(e){let r=e.sets||[],i=e.options||this.getDefaultOptions(),o=this.ctx,s=e.options.fixedDecimalPlaceDigits;for(let a of r)switch(a.type){case"path":o.save(),o.strokeStyle=i.stroke==="none"?"transparent":i.stroke,o.lineWidth=i.strokeWidth,i.strokeLineDash&&o.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(o.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(o,a,s),o.restore();break;case"fillPath":{o.save(),o.fillStyle=i.fill||"";let l=e.shape==="curve"||e.shape==="polygon"||e.shape==="path"?"evenodd":"nonzero";this._drawToContext(o,a,s,l),o.restore();break}case"fillSketch":this.fillSketch(o,a,i)}}fillSketch(e,r,i){let o=i.fillWeight;o<0&&(o=i.strokeWidth/2),e.save(),i.fillLineDash&&e.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(e.lineDashOffset=i.fillLineDashOffset),e.strokeStyle=i.fill||"",e.lineWidth=o,this._drawToContext(e,r,i.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,r,i,o="nonzero"){e.beginPath();for(let s of r.ops){let a=typeof i=="number"&&i>=0?s.data.map((l=>+l.toFixed(i))):s.data;switch(s.op){case"move":e.moveTo(a[0],a[1]);break;case"bcurveTo":e.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case"lineTo":e.lineTo(a[0],a[1])}}r.type==="fillPath"?e.fill(o):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,r,i,o,s){let a=this.gen.line(e,r,i,o,s);return this.draw(a),a}rectangle(e,r,i,o,s){let a=this.gen.rectangle(e,r,i,o,s);return this.draw(a),a}ellipse(e,r,i,o,s){let a=this.gen.ellipse(e,r,i,o,s);return this.draw(a),a}circle(e,r,i,o){let s=this.gen.circle(e,r,i,o);return this.draw(s),s}linearPath(e,r){let i=this.gen.linearPath(e,r);return this.draw(i),i}polygon(e,r){let i=this.gen.polygon(e,r);return this.draw(i),i}arc(e,r,i,o,s,a,l=!1,c){let h=this.gen.arc(e,r,i,o,s,a,l,c);return this.draw(h),h}curve(e,r){let i=this.gen.curve(e,r);return this.draw(i),i}path(e,r){let i=this.gen.path(e,r);return this.draw(i),i}},Cu="http://www.w3.org/2000/svg",N0=class{static{n(this,"ot")}constructor(e,r){this.svg=e,this.gen=new $s(r)}draw(e){let r=e.sets||[],i=e.options||this.getDefaultOptions(),o=this.svg.ownerDocument||window.document,s=o.createElementNS(Cu,"g"),a=e.options.fixedDecimalPlaceDigits;for(let l of r){let c=null;switch(l.type){case"path":c=o.createElementNS(Cu,"path"),c.setAttribute("d",this.opsToPath(l,a)),c.setAttribute("stroke",i.stroke),c.setAttribute("stroke-width",i.strokeWidth+""),c.setAttribute("fill","none"),i.strokeLineDash&&c.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&c.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":c=o.createElementNS(Cu,"path"),c.setAttribute("d",this.opsToPath(l,a)),c.setAttribute("stroke","none"),c.setAttribute("stroke-width","0"),c.setAttribute("fill",i.fill||""),e.shape!=="curve"&&e.shape!=="polygon"||c.setAttribute("fill-rule","evenodd");break;case"fillSketch":c=this.fillSketch(o,l,i)}c&&s.appendChild(c)}return s}fillSketch(e,r,i){let o=i.fillWeight;o<0&&(o=i.strokeWidth/2);let s=e.createElementNS(Cu,"path");return s.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),s.setAttribute("stroke",i.fill||""),s.setAttribute("stroke-width",o+""),s.setAttribute("fill","none"),i.fillLineDash&&s.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&s.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),s}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,r){return this.gen.opsToPath(e,r)}line(e,r,i,o,s){let a=this.gen.line(e,r,i,o,s);return this.draw(a)}rectangle(e,r,i,o,s){let a=this.gen.rectangle(e,r,i,o,s);return this.draw(a)}ellipse(e,r,i,o,s){let a=this.gen.ellipse(e,r,i,o,s);return this.draw(a)}circle(e,r,i,o){let s=this.gen.circle(e,r,i,o);return this.draw(s)}linearPath(e,r){let i=this.gen.linearPath(e,r);return this.draw(i)}polygon(e,r){let i=this.gen.polygon(e,r);return this.draw(i)}arc(e,r,i,o,s,a,l=!1,c){let h=this.gen.arc(e,r,i,o,s,a,l,c);return this.draw(h)}curve(e,r){let i=this.gen.curve(e,r);return this.draw(i)}path(e,r){let i=this.gen.path(e,r);return this.draw(i)}},W={canvas:n((t,e)=>new O0(t,e),"canvas"),svg:n((t,e)=>new N0(t,e),"svg"),generator:n(t=>new $s(t),"generator"),newSeed:n(()=>$s.newSeed(),"newSeed")}});function tT(t,e){let{labelStyles:r}=G(e);e.labelStyle=r;let i=Y(e),o=i;i||(o="anchor");let s=t.insert("g").attr("class",o).attr("id",e.domId||e.id),a=1,{cssStyles:l}=e,c=W.svg(s),h=H(e,{fill:"black",stroke:"none",fillStyle:"solid"});e.look!=="handDrawn"&&(h.roughness=0);let u=c.circle(0,0,a*2,h),f=s.insert(()=>u,":first-child");return f.attr("class","anchor").attr("style",Zt(l)),j(e,f),e.intersect=function(p){return S.info("Circle intersect",e,a,p),$.circle(e,a,p)},s}var eT=m(()=>{"use strict";vt();ot();ht();at();pt();re();n(tT,"anchor")});function rT(t,e,r,i,o,s,a){let c=(t+r)/2,h=(e+i)/2,u=Math.atan2(i-e,r-t),f=(r-t)/2,p=(i-e)/2,d=f/o,g=p/s,x=Math.sqrt(d**2+g**2);if(x>1)throw new Error("The given radii are too small to create an arc between the points.");let y=Math.sqrt(1-x**2),b=c+y*s*Math.sin(u)*(a?-1:1),C=h-y*o*Math.cos(u)*(a?-1:1),k=Math.atan2((e-C)/s,(t-b)/o),v=Math.atan2((i-C)/s,(r-b)/o)-k;a&&v<0&&(v+=2*Math.PI),!a&&v>0&&(v-=2*Math.PI);let D=[];for(let B=0;B<20;B++){let R=B/19,P=k+R*v,U=b+o*Math.cos(P),N=C+s*Math.sin(P);D.push({x:U,y:N})}return D}async function iT(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s}=await K(t,e,Y(e)),a=s.width+e.padding+20,l=s.height+e.padding,c=l/2,h=c/(2.5+l/50),{cssStyles:u}=e,f=[{x:a/2,y:-l/2},{x:-a/2,y:-l/2},...rT(-a/2,-l/2,-a/2,l/2,h,c,!1),{x:a/2,y:l/2},...rT(a/2,l/2,a/2,-l/2,h,c,!0)],p=W.svg(o),d=H(e,{});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let g=st(f),x=p.path(g,d),y=o.insert(()=>x,":first-child");return y.attr("class","basic label-container"),u&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",u),i&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",i),y.attr("transform",`translate(${h/2}, 0)`),j(e,y),e.intersect=function(b){return $.polygon(e,f,b)},o}var oT=m(()=>{"use strict";ot();ht();at();pt();n(rT,"generateArcPoints");n(iT,"bowTieRect")});function mr(t,e,r,i){return t.insert("polygon",":first-child").attr("points",i.map(function(o){return o.x+","+o.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}var jo=m(()=>{"use strict";n(mr,"insertPolygonShape")});async function nT(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s}=await K(t,e,Y(e)),a=s.height+e.padding,l=12,c=s.width+e.padding+l,h=0,u=c,f=-a,p=0,d=[{x:h+l,y:f},{x:u,y:f},{x:u,y:p},{x:h,y:p},{x:h,y:f+l},{x:h+l,y:f}],g,{cssStyles:x}=e;if(e.look==="handDrawn"){let y=W.svg(o),b=H(e,{}),C=st(d),k=y.path(C,b);g=o.insert(()=>k,":first-child").attr("transform",`translate(${-c/2}, ${a/2})`),x&&g.attr("style",x)}else g=mr(o,c,a,d);return i&&g.attr("style",i),j(e,g),e.intersect=function(y){return $.polygon(e,d,y)},o}var sT=m(()=>{"use strict";ot();ht();at();pt();jo();ot();n(nT,"card")});function aT(t,e){let{nodeStyles:r}=G(e);e.label="";let i=t.insert("g").attr("class",Y(e)).attr("id",e.domId??e.id),{cssStyles:o}=e,s=Math.max(28,e.width??0),a=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}],l=W.svg(i),c=H(e,{});e.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");let h=st(a),u=l.path(h,c),f=i.insert(()=>u,":first-child");return o&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",o),r&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",r),e.width=28,e.height=28,e.intersect=function(p){return $.polygon(e,a,p)},i}var lT=m(()=>{"use strict";ht();pt();at();ot();n(aT,"choice")});async function Eu(t,e,r){let{labelStyles:i,nodeStyles:o}=G(e);e.labelStyle=i;let{shapeSvg:s,bbox:a,halfPadding:l}=await K(t,e,Y(e)),c=r?.padding??l,h=a.width/2+c,u,{cssStyles:f}=e;if(e.look==="handDrawn"){let p=W.svg(s),d=H(e,{}),g=p.circle(0,0,h*2,d);u=s.insert(()=>g,":first-child"),u.attr("class","basic label-container").attr("style",Zt(f))}else u=s.insert("circle",":first-child").attr("class","basic label-container").attr("style",o).attr("r",h).attr("cx",0).attr("cy",0);return j(e,u),e.calcIntersect=function(p,d){let g=p.width/2;return $.circle(p,g,d)},e.intersect=function(p){return S.info("Circle intersect",e,h,p),$.circle(e,h,p)},s}var R0=m(()=>{"use strict";pt();vt();re();ht();at();ot();n(Eu,"circle")});function kz(t){let e=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=t*2,o={x:i/2*e,y:i/2*r},s={x:-(i/2)*e,y:i/2*r},a={x:-(i/2)*e,y:-(i/2)*r},l={x:i/2*e,y:-(i/2)*r};return`M ${s.x},${s.y} L ${l.x},${l.y} M ${o.x},${o.y} L ${a.x},${a.y}`}function cT(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r,e.label="";let o=t.insert("g").attr("class",Y(e)).attr("id",e.domId??e.id),s=Math.max(30,e?.width??0),{cssStyles:a}=e,l=W.svg(o),c=H(e,{});e.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");let h=l.circle(0,0,s*2,c),u=kz(s),f=l.path(u,c),p=o.insert(()=>h,":first-child");return p.insert(()=>f),a&&e.look!=="handDrawn"&&p.selectAll("path").attr("style",a),i&&e.look!=="handDrawn"&&p.selectAll("path").attr("style",i),j(e,p),e.intersect=function(d){return S.info("crossedCircle intersect",e,{radius:s,point:d}),$.circle(e,s,d)},o}var hT=m(()=>{"use strict";vt();ot();at();pt();ht();n(kz,"createLine");n(cT,"crossedCircle")});function Go(t,e,r,i=100,o=0,s=180){let a=[],l=o*Math.PI/180,u=(s*Math.PI/180-l)/(i-1);for(let f=0;fk,":first-child").attr("stroke-opacity",0),T.insert(()=>b,":first-child"),T.attr("class","text"),u&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",u),i&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",i),T.attr("transform",`translate(${h}, 0)`),a.attr("transform",`translate(${-l/2+h-(s.x-(s.left??0))},${-c/2+(e.padding??0)/2-(s.y-(s.top??0))})`),j(e,T),e.intersect=function(v){return $.polygon(e,p,v)},o}var fT=m(()=>{"use strict";ot();ht();at();pt();n(Go,"generateCirclePoints");n(uT,"curlyBraceLeft")});function Wo(t,e,r,i=100,o=0,s=180){let a=[],l=o*Math.PI/180,u=(s*Math.PI/180-l)/(i-1);for(let f=0;fk,":first-child").attr("stroke-opacity",0),T.insert(()=>b,":first-child"),T.attr("class","text"),u&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",u),i&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",i),T.attr("transform",`translate(${-h}, 0)`),a.attr("transform",`translate(${-l/2+(e.padding??0)/2-(s.x-(s.left??0))},${-c/2+(e.padding??0)/2-(s.y-(s.top??0))})`),j(e,T),e.intersect=function(v){return $.polygon(e,p,v)},o}var dT=m(()=>{"use strict";ot();ht();at();pt();n(Wo,"generateCirclePoints");n(pT,"curlyBraceRight")});function Ye(t,e,r,i=100,o=0,s=180){let a=[],l=o*Math.PI/180,u=(s*Math.PI/180-l)/(i-1);for(let f=0;fB,":first-child").attr("stroke-opacity",0),R.insert(()=>C,":first-child"),R.insert(()=>v,":first-child"),R.attr("class","text"),u&&e.look!=="handDrawn"&&R.selectAll("path").attr("style",u),i&&e.look!=="handDrawn"&&R.selectAll("path").attr("style",i),R.attr("transform",`translate(${h-h/4}, 0)`),a.attr("transform",`translate(${-l/2+(e.padding??0)/2-(s.x-(s.left??0))},${-c/2+(e.padding??0)/2-(s.y-(s.top??0))})`),j(e,R),e.intersect=function(P){return $.polygon(e,d,P)},o}var gT=m(()=>{"use strict";ot();ht();at();pt();n(Ye,"generateCirclePoints");n(mT,"curlyBraces")});async function xT(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s}=await K(t,e,Y(e)),a=80,l=20,c=Math.max(a,(s.width+(e.padding??0)*2)*1.25,e?.width??0),h=Math.max(l,s.height+(e.padding??0)*2,e?.height??0),u=h/2,{cssStyles:f}=e,p=W.svg(o),d=H(e,{});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let g=c,x=h,y=g-u,b=x/4,C=[{x:y,y:0},{x:b,y:0},{x:0,y:x/2},{x:b,y:x},{x:y,y:x},...Dn(-y,-x/2,u,50,270,90)],k=st(C),T=p.path(k,d),v=o.insert(()=>T,":first-child");return v.attr("class","basic label-container"),f&&e.look!=="handDrawn"&&v.selectChildren("path").attr("style",f),i&&e.look!=="handDrawn"&&v.selectChildren("path").attr("style",i),v.attr("transform",`translate(${-c/2}, ${-h/2})`),j(e,v),e.intersect=function(D){return $.polygon(e,C,D)},o}var yT=m(()=>{"use strict";ot();ht();at();pt();n(xT,"curvedTrapezoid")});async function bT(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s,label:a}=await K(t,e,Y(e)),l=Math.max(s.width+e.padding,e.width??0),c=l/2,h=c/(2.5+l/50),u=Math.max(s.height+h+e.padding,e.height??0),f,{cssStyles:p}=e;if(e.look==="handDrawn"){let d=W.svg(o),g=Tz(0,0,l,u,c,h),x=Ez(0,h,l,u,c,h),y=d.path(g,H(e,{})),b=d.path(x,H(e,{fill:"none"}));f=o.insert(()=>b,":first-child"),f=o.insert(()=>y,":first-child"),f.attr("class","basic label-container"),p&&f.attr("style",p)}else{let d=vz(0,0,l,u,c,h);f=o.insert("path",":first-child").attr("d",d).attr("class","basic label-container").attr("style",Zt(p)).attr("style",i)}return f.attr("label-offset-y",h),f.attr("transform",`translate(${-l/2}, ${-(u/2+h)})`),j(e,f),a.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${-(s.height/2)+(e.padding??0)/1.5-(s.y-(s.top??0))})`),e.intersect=function(d){let g=$.rect(e,d),x=g.x-(e.x??0);if(c!=0&&(Math.abs(x)<(e.width??0)/2||Math.abs(x)==(e.width??0)/2&&Math.abs(g.y-(e.y??0))>(e.height??0)/2-h)){let y=h*h*(1-x*x/(c*c));y>0&&(y=Math.sqrt(y)),y=h-y,d.y-(e.y??0)>0&&(y=-y),g.y+=y}return g},o}var vz,Tz,Ez,CT=m(()=>{"use strict";ot();ht();at();pt();re();vz=n((t,e,r,i,o,s)=>[`M${t},${e+s}`,`a${o},${s} 0,0,0 ${r},0`,`a${o},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${o},${s} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),Tz=n((t,e,r,i,o,s)=>[`M${t},${e+s}`,`M${t+r},${e+s}`,`a${o},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${o},${s} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),Ez=n((t,e,r,i,o,s)=>[`M${t-r/2},${-i/2}`,`a${o},${s} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");n(bT,"cylinder")});async function wT(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s,label:a}=await K(t,e,Y(e)),l=s.width+e.padding,c=s.height+e.padding,h=c*.2,u=-l/2,f=-c/2-h/2,{cssStyles:p}=e,d=W.svg(o),g=H(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let x=[{x:u,y:f+h},{x:-u,y:f+h},{x:-u,y:-f},{x:u,y:-f},{x:u,y:f},{x:-u,y:f},{x:-u,y:f+h}],y=d.polygon(x.map(C=>[C.x,C.y]),g),b=o.insert(()=>y,":first-child");return b.attr("class","basic label-container"),p&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",p),i&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",i),a.attr("transform",`translate(${u+(e.padding??0)/2-(s.x-(s.left??0))}, ${f+h+(e.padding??0)/2-(s.y-(s.top??0))})`),j(e,b),e.intersect=function(C){return $.rect(e,C)},o}var _T=m(()=>{"use strict";ot();ht();at();pt();n(wT,"dividedRectangle")});async function ST(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s,halfPadding:a}=await K(t,e,Y(e)),c=s.width/2+a+5,h=s.width/2+a,u,{cssStyles:f}=e;if(e.look==="handDrawn"){let p=W.svg(o),d=H(e,{roughness:.2,strokeWidth:2.5}),g=H(e,{roughness:.2,strokeWidth:1.5}),x=p.circle(0,0,c*2,d),y=p.circle(0,0,h*2,g);u=o.insert("g",":first-child"),u.attr("class",Zt(e.cssClasses)).attr("style",Zt(f)),u.node()?.appendChild(x),u.node()?.appendChild(y)}else{u=o.insert("g",":first-child");let p=u.insert("circle",":first-child"),d=u.insert("circle");u.attr("class","basic label-container").attr("style",i),p.attr("class","outer-circle").attr("style",i).attr("r",c).attr("cx",0).attr("cy",0),d.attr("class","inner-circle").attr("style",i).attr("r",h).attr("cx",0).attr("cy",0)}return j(e,u),e.intersect=function(p){return S.info("DoubleCircle intersect",e,c,p),$.circle(e,c,p)},o}var kT=m(()=>{"use strict";vt();ot();ht();at();pt();re();n(ST,"doublecircle")});function vT(t,e,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:o}=G(e);e.label="",e.labelStyle=i;let s=t.insert("g").attr("class",Y(e)).attr("id",e.domId??e.id),a=7,{cssStyles:l}=e,c=W.svg(s),{nodeBorder:h}=r,u=H(e,{fillStyle:"solid"});e.look!=="handDrawn"&&(u.roughness=0);let f=c.circle(0,0,a*2,u),p=s.insert(()=>f,":first-child");return p.selectAll("path").attr("style",`fill: ${h} !important;`),l&&l.length>0&&e.look!=="handDrawn"&&p.selectAll("path").attr("style",l),o&&e.look!=="handDrawn"&&p.selectAll("path").attr("style",o),j(e,p),e.intersect=function(d){return S.info("filledCircle intersect",e,{radius:a,point:d}),$.circle(e,a,d)},s}var TT=m(()=>{"use strict";pt();vt();ht();at();ot();n(vT,"filledCircle")});async function ET(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s,label:a}=await K(t,e,Y(e)),l=s.width+(e.padding??0),c=l+s.height,h=l+s.height,u=[{x:0,y:-c},{x:h,y:-c},{x:h/2,y:0}],{cssStyles:f}=e,p=W.svg(o),d=H(e,{});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let g=st(u),x=p.path(g,d),y=o.insert(()=>x,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`);return f&&e.look!=="handDrawn"&&y.selectChildren("path").attr("style",f),i&&e.look!=="handDrawn"&&y.selectChildren("path").attr("style",i),e.width=l,e.height=c,j(e,y),a.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-c/2+(e.padding??0)/2+(s.y-(s.top??0))})`),e.intersect=function(b){return S.info("Triangle intersect",e,u,b),$.polygon(e,u,b)},o}var AT=m(()=>{"use strict";vt();ot();ht();at();pt();ot();n(ET,"flippedTriangle")});function MT(t,e,{dir:r,config:{state:i,themeVariables:o}}){let{nodeStyles:s}=G(e);e.label="";let a=t.insert("g").attr("class",Y(e)).attr("id",e.domId??e.id),{cssStyles:l}=e,c=Math.max(70,e?.width??0),h=Math.max(10,e?.height??0);r==="LR"&&(c=Math.max(10,e?.width??0),h=Math.max(70,e?.height??0));let u=-1*c/2,f=-1*h/2,p=W.svg(a),d=H(e,{stroke:o.lineColor,fill:o.lineColor});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let g=p.rectangle(u,f,c,h,d),x=a.insert(()=>g,":first-child");l&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",l),s&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",s),j(e,x);let y=i?.padding??0;return e.width&&e.height&&(e.width+=y/2||0,e.height+=y/2||0),e.intersect=function(b){return $.rect(e,b)},a}var BT=m(()=>{"use strict";pt();ht();at();ot();n(MT,"forkJoin")});async function LT(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let o=80,s=50,{shapeSvg:a,bbox:l}=await K(t,e,Y(e)),c=Math.max(o,l.width+(e.padding??0)*2,e?.width??0),h=Math.max(s,l.height+(e.padding??0)*2,e?.height??0),u=h/2,{cssStyles:f}=e,p=W.svg(a),d=H(e,{});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let g=[{x:-c/2,y:-h/2},{x:c/2-u,y:-h/2},...Dn(-c/2+u,0,u,50,90,270),{x:c/2-u,y:h/2},{x:-c/2,y:h/2}],x=st(g),y=p.path(x,d),b=a.insert(()=>y,":first-child");return b.attr("class","basic label-container"),f&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",f),i&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",i),j(e,b),e.intersect=function(C){return S.info("Pill intersect",e,{radius:u,point:C}),$.polygon(e,g,C)},a}var DT=m(()=>{"use strict";vt();ot();ht();at();pt();n(LT,"halfRoundedRectangle")});async function FT(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s}=await K(t,e,Y(e)),a=s.height+(e.padding??0),l=s.width+(e.padding??0)*2.5,{cssStyles:c}=e,h=W.svg(o),u=H(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let f=l/2,p=f/6;f=f+p;let d=a/2,g=d/2,x=f-g,y=[{x:-x,y:-d},{x:0,y:-d},{x,y:-d},{x:f,y:0},{x,y:d},{x:0,y:d},{x:-x,y:d},{x:-f,y:0}],b=st(y),C=h.path(b,u),k=o.insert(()=>C,":first-child");return k.attr("class","basic label-container"),c&&e.look!=="handDrawn"&&k.selectChildren("path").attr("style",c),i&&e.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),e.width=l,e.height=a,j(e,k),e.intersect=function(T){return $.polygon(e,y,T)},o}var OT=m(()=>{"use strict";ot();ht();at();pt();n(FT,"hexagon")});async function NT(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.label="",e.labelStyle=r;let{shapeSvg:o}=await K(t,e,Y(e)),s=Math.max(30,e?.width??0),a=Math.max(30,e?.height??0),{cssStyles:l}=e,c=W.svg(o),h=H(e,{});e.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");let u=[{x:0,y:0},{x:s,y:0},{x:0,y:a},{x:s,y:a}],f=st(u),p=c.path(f,h),d=o.insert(()=>p,":first-child");return d.attr("class","basic label-container"),l&&e.look!=="handDrawn"&&d.selectChildren("path").attr("style",l),i&&e.look!=="handDrawn"&&d.selectChildren("path").attr("style",i),d.attr("transform",`translate(${-s/2}, ${-a/2})`),j(e,d),e.intersect=function(g){return S.info("Pill intersect",e,{points:u}),$.polygon(e,u,g)},o}var IT=m(()=>{"use strict";vt();ot();ht();at();pt();n(NT,"hourglass")});async function RT(t,e,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:o}=G(e);e.labelStyle=o;let s=e.assetHeight??48,a=e.assetWidth??48,l=Math.max(s,a),c=i?.wrappingWidth;e.width=Math.max(l,c??0);let{shapeSvg:h,bbox:u,label:f}=await K(t,e,"icon-shape default"),p=e.pos==="t",d=l,g=l,{nodeBorder:x}=r,{stylesMap:y}=xi(e),b=-g/2,C=-d/2,k=e.label?8:0,T=W.svg(h),v=H(e,{stroke:"none",fill:"none"});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");let D=T.rectangle(b,C,g,d,v),B=Math.max(g,u.width),R=d+u.height+k,P=T.rectangle(-B/2,-R/2,B,R,{...v,fill:"transparent",stroke:"none"}),U=h.insert(()=>D,":first-child"),N=h.insert(()=>P);if(e.icon){let O=h.append("g");O.html(`${await li(e.icon,{height:l,width:l,fallbackPrefix:""})}`);let A=O.node().getBBox(),M=A.width,z=A.height,F=A.x,V=A.y;O.attr("transform",`translate(${-M/2-F},${p?u.height/2+k/2-z/2-V:-u.height/2-k/2-z/2-V})`),O.attr("style",`color: ${y.get("stroke")??x};`)}return f.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${p?-R/2:R/2-u.height})`),U.attr("transform",`translate(0,${p?u.height/2+k/2:-u.height/2-k/2})`),j(e,N),e.intersect=function(O){if(S.info("iconSquare intersect",e,O),!e.label)return $.rect(e,O);let A=e.x??0,M=e.y??0,z=e.height??0,F=[];return p?F=[{x:A-u.width/2,y:M-z/2},{x:A+u.width/2,y:M-z/2},{x:A+u.width/2,y:M-z/2+u.height+k},{x:A+g/2,y:M-z/2+u.height+k},{x:A+g/2,y:M+z/2},{x:A-g/2,y:M+z/2},{x:A-g/2,y:M-z/2+u.height+k},{x:A-u.width/2,y:M-z/2+u.height+k}]:F=[{x:A-g/2,y:M-z/2},{x:A+g/2,y:M-z/2},{x:A+g/2,y:M-z/2+d},{x:A+u.width/2,y:M-z/2+d},{x:A+u.width/2/2,y:M+z/2},{x:A-u.width/2,y:M+z/2},{x:A-u.width/2,y:M-z/2+d},{x:A-g/2,y:M-z/2+d}],$.polygon(e,F,O)},h}var PT=m(()=>{"use strict";pt();vt();pn();ht();at();ot();n(RT,"icon")});async function $T(t,e,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:o}=G(e);e.labelStyle=o;let s=e.assetHeight??48,a=e.assetWidth??48,l=Math.max(s,a),c=i?.wrappingWidth;e.width=Math.max(l,c??0);let{shapeSvg:h,bbox:u,label:f}=await K(t,e,"icon-shape default"),p=20,d=e.label?8:0,g=e.pos==="t",{nodeBorder:x,mainBkg:y}=r,{stylesMap:b}=xi(e),C=W.svg(h),k=H(e,{});e.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");let T=b.get("fill");k.stroke=T??y;let v=h.append("g");e.icon&&v.html(`${await li(e.icon,{height:l,width:l,fallbackPrefix:""})}`);let D=v.node().getBBox(),B=D.width,R=D.height,P=D.x,U=D.y,N=Math.max(B,R)*Math.SQRT2+p*2,O=C.circle(0,0,N,k),A=Math.max(N,u.width),M=N+u.height+d,z=C.rectangle(-A/2,-M/2,A,M,{...k,fill:"transparent",stroke:"none"}),F=h.insert(()=>O,":first-child"),V=h.insert(()=>z);return v.attr("transform",`translate(${-B/2-P},${g?u.height/2+d/2-R/2-U:-u.height/2-d/2-R/2-U})`),v.attr("style",`color: ${b.get("stroke")??x};`),f.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${g?-M/2:M/2-u.height})`),F.attr("transform",`translate(0,${g?u.height/2+d/2:-u.height/2-d/2})`),j(e,V),e.intersect=function(q){return S.info("iconSquare intersect",e,q),$.rect(e,q)},h}var zT=m(()=>{"use strict";pt();vt();pn();ht();at();ot();n($T,"iconCircle")});var gr,On=m(()=>{"use strict";gr=n((t,e,r,i,o)=>["M",t+o,e,"H",t+r-o,"A",o,o,0,0,1,t+r,e+o,"V",e+i-o,"A",o,o,0,0,1,t+r-o,e+i,"H",t+o,"A",o,o,0,0,1,t,e+i-o,"V",e+o,"A",o,o,0,0,1,t+o,e,"Z"].join(" "),"createRoundedRectPathD")});async function jT(t,e,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:o}=G(e);e.labelStyle=o;let s=e.assetHeight??48,a=e.assetWidth??48,l=Math.max(s,a),c=i?.wrappingWidth;e.width=Math.max(l,c??0);let{shapeSvg:h,bbox:u,halfPadding:f,label:p}=await K(t,e,"icon-shape default"),d=e.pos==="t",g=l+f*2,x=l+f*2,{nodeBorder:y,mainBkg:b}=r,{stylesMap:C}=xi(e),k=-x/2,T=-g/2,v=e.label?8:0,D=W.svg(h),B=H(e,{});e.look!=="handDrawn"&&(B.roughness=0,B.fillStyle="solid");let R=C.get("fill");B.stroke=R??b;let P=D.path(gr(k,T,x,g,5),B),U=Math.max(x,u.width),N=g+u.height+v,O=D.rectangle(-U/2,-N/2,U,N,{...B,fill:"transparent",stroke:"none"}),A=h.insert(()=>P,":first-child").attr("class","icon-shape2"),M=h.insert(()=>O);if(e.icon){let z=h.append("g");z.html(`${await li(e.icon,{height:l,width:l,fallbackPrefix:""})}`);let F=z.node().getBBox(),V=F.width,q=F.height,Q=F.x,Ct=F.y;z.attr("transform",`translate(${-V/2-Q},${d?u.height/2+v/2-q/2-Ct:-u.height/2-v/2-q/2-Ct})`),z.attr("style",`color: ${C.get("stroke")??y};`)}return p.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${d?-N/2:N/2-u.height})`),A.attr("transform",`translate(0,${d?u.height/2+v/2:-u.height/2-v/2})`),j(e,M),e.intersect=function(z){if(S.info("iconSquare intersect",e,z),!e.label)return $.rect(e,z);let F=e.x??0,V=e.y??0,q=e.height??0,Q=[];return d?Q=[{x:F-u.width/2,y:V-q/2},{x:F+u.width/2,y:V-q/2},{x:F+u.width/2,y:V-q/2+u.height+v},{x:F+x/2,y:V-q/2+u.height+v},{x:F+x/2,y:V+q/2},{x:F-x/2,y:V+q/2},{x:F-x/2,y:V-q/2+u.height+v},{x:F-u.width/2,y:V-q/2+u.height+v}]:Q=[{x:F-x/2,y:V-q/2},{x:F+x/2,y:V-q/2},{x:F+x/2,y:V-q/2+g},{x:F+u.width/2,y:V-q/2+g},{x:F+u.width/2/2,y:V+q/2},{x:F-u.width/2,y:V+q/2},{x:F-u.width/2,y:V-q/2+g},{x:F-x/2,y:V-q/2+g}],$.polygon(e,Q,z)},h}var GT=m(()=>{"use strict";pt();vt();pn();ht();at();On();ot();n(jT,"iconRounded")});async function WT(t,e,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:o}=G(e);e.labelStyle=o;let s=e.assetHeight??48,a=e.assetWidth??48,l=Math.max(s,a),c=i?.wrappingWidth;e.width=Math.max(l,c??0);let{shapeSvg:h,bbox:u,halfPadding:f,label:p}=await K(t,e,"icon-shape default"),d=e.pos==="t",g=l+f*2,x=l+f*2,{nodeBorder:y,mainBkg:b}=r,{stylesMap:C}=xi(e),k=-x/2,T=-g/2,v=e.label?8:0,D=W.svg(h),B=H(e,{});e.look!=="handDrawn"&&(B.roughness=0,B.fillStyle="solid");let R=C.get("fill");B.stroke=R??b;let P=D.path(gr(k,T,x,g,.1),B),U=Math.max(x,u.width),N=g+u.height+v,O=D.rectangle(-U/2,-N/2,U,N,{...B,fill:"transparent",stroke:"none"}),A=h.insert(()=>P,":first-child"),M=h.insert(()=>O);if(e.icon){let z=h.append("g");z.html(`${await li(e.icon,{height:l,width:l,fallbackPrefix:""})}`);let F=z.node().getBBox(),V=F.width,q=F.height,Q=F.x,Ct=F.y;z.attr("transform",`translate(${-V/2-Q},${d?u.height/2+v/2-q/2-Ct:-u.height/2-v/2-q/2-Ct})`),z.attr("style",`color: ${C.get("stroke")??y};`)}return p.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${d?-N/2:N/2-u.height})`),A.attr("transform",`translate(0,${d?u.height/2+v/2:-u.height/2-v/2})`),j(e,M),e.intersect=function(z){if(S.info("iconSquare intersect",e,z),!e.label)return $.rect(e,z);let F=e.x??0,V=e.y??0,q=e.height??0,Q=[];return d?Q=[{x:F-u.width/2,y:V-q/2},{x:F+u.width/2,y:V-q/2},{x:F+u.width/2,y:V-q/2+u.height+v},{x:F+x/2,y:V-q/2+u.height+v},{x:F+x/2,y:V+q/2},{x:F-x/2,y:V+q/2},{x:F-x/2,y:V-q/2+u.height+v},{x:F-u.width/2,y:V-q/2+u.height+v}]:Q=[{x:F-x/2,y:V-q/2},{x:F+x/2,y:V-q/2},{x:F+x/2,y:V-q/2+g},{x:F+u.width/2,y:V-q/2+g},{x:F+u.width/2/2,y:V+q/2},{x:F-u.width/2,y:V+q/2},{x:F-u.width/2,y:V-q/2+g},{x:F-x/2,y:V-q/2+g}],$.polygon(e,Q,z)},h}var HT=m(()=>{"use strict";pt();vt();pn();ht();On();at();ot();n(WT,"iconSquare")});async function qT(t,e,{config:{flowchart:r}}){let i=new Image;i.src=e?.img??"",await i.decode();let o=Number(i.naturalWidth.toString().replace("px","")),s=Number(i.naturalHeight.toString().replace("px",""));e.imageAspectRatio=o/s;let{labelStyles:a}=G(e);e.labelStyle=a;let l=r?.wrappingWidth;e.defaultWidth=r?.wrappingWidth;let c=Math.max(e.label?l??0:0,e?.assetWidth??o),h=e.constraint==="on"&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:c,u=e.constraint==="on"?h/e.imageAspectRatio:e?.assetHeight??s;e.width=Math.max(h,l??0);let{shapeSvg:f,bbox:p,label:d}=await K(t,e,"image-shape default"),g=e.pos==="t",x=-h/2,y=-u/2,b=e.label?8:0,C=W.svg(f),k=H(e,{});e.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");let T=C.rectangle(x,y,h,u,k),v=Math.max(h,p.width),D=u+p.height+b,B=C.rectangle(-v/2,-D/2,v,D,{...k,fill:"none",stroke:"none"}),R=f.insert(()=>T,":first-child"),P=f.insert(()=>B);if(e.img){let U=f.append("image");U.attr("href",e.img),U.attr("width",h),U.attr("height",u),U.attr("preserveAspectRatio","none"),U.attr("transform",`translate(${-h/2},${g?D/2-u:-D/2})`)}return d.attr("transform",`translate(${-p.width/2-(p.x-(p.left??0))},${g?-u/2-p.height/2-b/2:u/2-p.height/2+b/2})`),R.attr("transform",`translate(0,${g?p.height/2+b/2:-p.height/2-b/2})`),j(e,P),e.intersect=function(U){if(S.info("iconSquare intersect",e,U),!e.label)return $.rect(e,U);let N=e.x??0,O=e.y??0,A=e.height??0,M=[];return g?M=[{x:N-p.width/2,y:O-A/2},{x:N+p.width/2,y:O-A/2},{x:N+p.width/2,y:O-A/2+p.height+b},{x:N+h/2,y:O-A/2+p.height+b},{x:N+h/2,y:O+A/2},{x:N-h/2,y:O+A/2},{x:N-h/2,y:O-A/2+p.height+b},{x:N-p.width/2,y:O-A/2+p.height+b}]:M=[{x:N-h/2,y:O-A/2},{x:N+h/2,y:O-A/2},{x:N+h/2,y:O-A/2+u},{x:N+p.width/2,y:O-A/2+u},{x:N+p.width/2/2,y:O+A/2},{x:N-p.width/2,y:O+A/2},{x:N-p.width/2,y:O-A/2+u},{x:N-h/2,y:O-A/2+u}],$.polygon(e,M,U)},f}var VT=m(()=>{"use strict";pt();vt();ht();at();ot();n(qT,"imageSquare")});async function UT(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s}=await K(t,e,Y(e)),a=Math.max(s.width+(e.padding??0)*2,e?.width??0),l=Math.max(s.height+(e.padding??0)*2,e?.height??0),c=[{x:0,y:0},{x:a,y:0},{x:a+3*l/6,y:-l},{x:-3*l/6,y:-l}],h,{cssStyles:u}=e;if(e.look==="handDrawn"){let f=W.svg(o),p=H(e,{}),d=st(c),g=f.path(d,p);h=o.insert(()=>g,":first-child").attr("transform",`translate(${-a/2}, ${l/2})`),u&&h.attr("style",u)}else h=mr(o,a,l,c);return i&&h.attr("style",i),e.width=a,e.height=l,j(e,h),e.intersect=function(f){return $.polygon(e,c,f)},o}var YT=m(()=>{"use strict";ot();ht();at();pt();jo();n(UT,"inv_trapezoid")});async function Nn(t,e,r){let{labelStyles:i,nodeStyles:o}=G(e);e.labelStyle=i;let{shapeSvg:s,bbox:a}=await K(t,e,Y(e)),l=Math.max(a.width+r.labelPaddingX*2,e?.width||0),c=Math.max(a.height+r.labelPaddingY*2,e?.height||0),h=-l/2,u=-c/2,f,{rx:p,ry:d}=e,{cssStyles:g}=e;if(r?.rx&&r.ry&&(p=r.rx,d=r.ry),e.look==="handDrawn"){let x=W.svg(s),y=H(e,{}),b=p||d?x.path(gr(h,u,l,c,p||0),y):x.rectangle(h,u,l,c,y);f=s.insert(()=>b,":first-child"),f.attr("class","basic label-container").attr("style",Zt(g))}else f=s.insert("rect",":first-child"),f.attr("class","basic label-container").attr("style",o).attr("rx",Zt(p)).attr("ry",Zt(d)).attr("x",h).attr("y",u).attr("width",l).attr("height",c);return j(e,f),e.calcIntersect=function(x,y){return $.rect(x,y)},e.intersect=function(x){return $.rect(e,x)},s}var Jl=m(()=>{"use strict";ot();ht();On();at();pt();re();n(Nn,"drawRect")});async function XT(t,e){let{shapeSvg:r,bbox:i,label:o}=await K(t,e,"label"),s=r.insert("rect",":first-child");return s.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),o.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),j(e,s),e.intersect=function(c){return $.rect(e,c)},r}var KT=m(()=>{"use strict";Jl();ot();ht();n(XT,"labelRect")});async function ZT(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s}=await K(t,e,Y(e)),a=Math.max(s.width+(e.padding??0),e?.width??0),l=Math.max(s.height+(e.padding??0),e?.height??0),c=[{x:0,y:0},{x:a+3*l/6,y:0},{x:a,y:-l},{x:-(3*l)/6,y:-l}],h,{cssStyles:u}=e;if(e.look==="handDrawn"){let f=W.svg(o),p=H(e,{}),d=st(c),g=f.path(d,p);h=o.insert(()=>g,":first-child").attr("transform",`translate(${-a/2}, ${l/2})`),u&&h.attr("style",u)}else h=mr(o,a,l,c);return i&&h.attr("style",i),e.width=a,e.height=l,j(e,h),e.intersect=function(f){return $.polygon(e,c,f)},o}var QT=m(()=>{"use strict";ot();ht();at();pt();jo();n(ZT,"lean_left")});async function JT(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s}=await K(t,e,Y(e)),a=Math.max(s.width+(e.padding??0),e?.width??0),l=Math.max(s.height+(e.padding??0),e?.height??0),c=[{x:-3*l/6,y:0},{x:a,y:0},{x:a+3*l/6,y:-l},{x:0,y:-l}],h,{cssStyles:u}=e;if(e.look==="handDrawn"){let f=W.svg(o),p=H(e,{}),d=st(c),g=f.path(d,p);h=o.insert(()=>g,":first-child").attr("transform",`translate(${-a/2}, ${l/2})`),u&&h.attr("style",u)}else h=mr(o,a,l,c);return i&&h.attr("style",i),e.width=a,e.height=l,j(e,h),e.intersect=function(f){return $.polygon(e,c,f)},o}var tE=m(()=>{"use strict";ot();ht();at();pt();jo();n(JT,"lean_right")});function eE(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.label="",e.labelStyle=r;let o=t.insert("g").attr("class",Y(e)).attr("id",e.domId??e.id),{cssStyles:s}=e,a=Math.max(35,e?.width??0),l=Math.max(35,e?.height??0),c=7,h=[{x:a,y:0},{x:0,y:l+c/2},{x:a-2*c,y:l+c/2},{x:0,y:2*l},{x:a,y:l-c/2},{x:2*c,y:l-c/2}],u=W.svg(o),f=H(e,{});e.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");let p=st(h),d=u.path(p,f),g=o.insert(()=>d,":first-child");return s&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",s),i&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",i),g.attr("transform",`translate(-${a/2},${-l})`),j(e,g),e.intersect=function(x){return S.info("lightningBolt intersect",e,x),$.polygon(e,h,x)},o}var rE=m(()=>{"use strict";vt();ot();at();pt();ht();ot();n(eE,"lightningBolt")});async function iE(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s,label:a}=await K(t,e,Y(e)),l=Math.max(s.width+(e.padding??0),e.width??0),c=l/2,h=c/(2.5+l/50),u=Math.max(s.height+h+(e.padding??0),e.height??0),f=u*.1,p,{cssStyles:d}=e;if(e.look==="handDrawn"){let g=W.svg(o),x=Mz(0,0,l,u,c,h,f),y=Bz(0,h,l,u,c,h),b=H(e,{}),C=g.path(x,b),k=g.path(y,b);o.insert(()=>k,":first-child").attr("class","line"),p=o.insert(()=>C,":first-child"),p.attr("class","basic label-container"),d&&p.attr("style",d)}else{let g=Az(0,0,l,u,c,h,f);p=o.insert("path",":first-child").attr("d",g).attr("class","basic label-container").attr("style",Zt(d)).attr("style",i)}return p.attr("label-offset-y",h),p.attr("transform",`translate(${-l/2}, ${-(u/2+h)})`),j(e,p),a.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${-(s.height/2)+h-(s.y-(s.top??0))})`),e.intersect=function(g){let x=$.rect(e,g),y=x.x-(e.x??0);if(c!=0&&(Math.abs(y)<(e.width??0)/2||Math.abs(y)==(e.width??0)/2&&Math.abs(x.y-(e.y??0))>(e.height??0)/2-h)){let b=h*h*(1-y*y/(c*c));b>0&&(b=Math.sqrt(b)),b=h-b,g.y-(e.y??0)>0&&(b=-b),x.y+=b}return x},o}var Az,Mz,Bz,oE=m(()=>{"use strict";ot();ht();at();pt();re();Az=n((t,e,r,i,o,s,a)=>[`M${t},${e+s}`,`a${o},${s} 0,0,0 ${r},0`,`a${o},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${o},${s} 0,0,0 ${r},0`,`l0,${-i}`,`M${t},${e+s+a}`,`a${o},${s} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),Mz=n((t,e,r,i,o,s,a)=>[`M${t},${e+s}`,`M${t+r},${e+s}`,`a${o},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${o},${s} 0,0,0 ${r},0`,`l0,${-i}`,`M${t},${e+s+a}`,`a${o},${s} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),Bz=n((t,e,r,i,o,s)=>[`M${t-r/2},${-i/2}`,`a${o},${s} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");n(iE,"linedCylinder")});async function nE(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s,label:a}=await K(t,e,Y(e)),l=Math.max(s.width+(e.padding??0)*2,e?.width??0),c=Math.max(s.height+(e.padding??0)*2,e?.height??0),h=c/4,u=c+h,{cssStyles:f}=e,p=W.svg(o),d=H(e,{});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let g=[{x:-l/2-l/2*.1,y:-u/2},{x:-l/2-l/2*.1,y:u/2},...zr(-l/2-l/2*.1,u/2,l/2+l/2*.1,u/2,h,.8),{x:l/2+l/2*.1,y:-u/2},{x:-l/2-l/2*.1,y:-u/2},{x:-l/2,y:-u/2},{x:-l/2,y:u/2*1.1},{x:-l/2,y:-u/2}],x=p.polygon(g.map(b=>[b.x,b.y]),d),y=o.insert(()=>x,":first-child");return y.attr("class","basic label-container"),f&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",f),i&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",i),y.attr("transform",`translate(0,${-h/2})`),a.attr("transform",`translate(${-l/2+(e.padding??0)+l/2*.1/2-(s.x-(s.left??0))},${-c/2+(e.padding??0)-h/2-(s.y-(s.top??0))})`),j(e,y),e.intersect=function(b){return $.polygon(e,g,b)},o}var sE=m(()=>{"use strict";ot();ht();pt();at();n(nE,"linedWaveEdgedRect")});async function aE(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s,label:a}=await K(t,e,Y(e)),l=Math.max(s.width+(e.padding??0)*2,e?.width??0),c=Math.max(s.height+(e.padding??0)*2,e?.height??0),h=5,u=-l/2,f=-c/2,{cssStyles:p}=e,d=W.svg(o),g=H(e,{}),x=[{x:u-h,y:f+h},{x:u-h,y:f+c+h},{x:u+l-h,y:f+c+h},{x:u+l-h,y:f+c},{x:u+l,y:f+c},{x:u+l,y:f+c-h},{x:u+l+h,y:f+c-h},{x:u+l+h,y:f-h},{x:u+h,y:f-h},{x:u+h,y:f},{x:u,y:f},{x:u,y:f+h}],y=[{x:u,y:f+h},{x:u+l-h,y:f+h},{x:u+l-h,y:f+c},{x:u+l,y:f+c},{x:u+l,y:f},{x:u,y:f}];e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let b=st(x),C=d.path(b,g),k=st(y),T=d.path(k,{...g,fill:"none"}),v=o.insert(()=>T,":first-child");return v.insert(()=>C,":first-child"),v.attr("class","basic label-container"),p&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",p),i&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",i),a.attr("transform",`translate(${-(s.width/2)-h-(s.x-(s.left??0))}, ${-(s.height/2)+h-(s.y-(s.top??0))})`),j(e,v),e.intersect=function(D){return $.polygon(e,x,D)},o}var lE=m(()=>{"use strict";ot();at();pt();ht();n(aE,"multiRect")});async function cE(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s,label:a}=await K(t,e,Y(e)),l=Math.max(s.width+(e.padding??0)*2,e?.width??0),c=Math.max(s.height+(e.padding??0)*2,e?.height??0),h=c/4,u=c+h,f=-l/2,p=-u/2,d=5,{cssStyles:g}=e,x=zr(f-d,p+u+d,f+l-d,p+u+d,h,.8),y=x?.[x.length-1],b=[{x:f-d,y:p+d},{x:f-d,y:p+u+d},...x,{x:f+l-d,y:y.y-d},{x:f+l,y:y.y-d},{x:f+l,y:y.y-2*d},{x:f+l+d,y:y.y-2*d},{x:f+l+d,y:p-d},{x:f+d,y:p-d},{x:f+d,y:p},{x:f,y:p},{x:f,y:p+d}],C=[{x:f,y:p+d},{x:f+l-d,y:p+d},{x:f+l-d,y:y.y-d},{x:f+l,y:y.y-d},{x:f+l,y:p},{x:f,y:p}],k=W.svg(o),T=H(e,{});e.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");let v=st(b),D=k.path(v,T),B=st(C),R=k.path(B,T),P=o.insert(()=>D,":first-child");return P.insert(()=>R),P.attr("class","basic label-container"),g&&e.look!=="handDrawn"&&P.selectAll("path").attr("style",g),i&&e.look!=="handDrawn"&&P.selectAll("path").attr("style",i),P.attr("transform",`translate(0,${-h/2})`),a.attr("transform",`translate(${-(s.width/2)-d-(s.x-(s.left??0))}, ${-(s.height/2)+d-h/2-(s.y-(s.top??0))})`),j(e,P),e.intersect=function(U){return $.polygon(e,b,U)},o}var hE=m(()=>{"use strict";ot();ht();pt();at();n(cE,"multiWaveEdgedRectangle")});async function uE(t,e,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:o}=G(e);e.labelStyle=i,e.useHtmlLabels||ee().flowchart?.htmlLabels!==!1||(e.centerLabel=!0);let{shapeSvg:a,bbox:l,label:c}=await K(t,e,Y(e)),h=Math.max(l.width+(e.padding??0)*2,e?.width??0),u=Math.max(l.height+(e.padding??0)*2,e?.height??0),f=-h/2,p=-u/2,{cssStyles:d}=e,g=W.svg(a),x=H(e,{fill:r.noteBkgColor,stroke:r.noteBorderColor});e.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let y=g.rectangle(f,p,h,u,x),b=a.insert(()=>y,":first-child");return b.attr("class","basic label-container"),d&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",d),o&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",o),c.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),j(e,b),e.intersect=function(C){return $.rect(e,C)},a}var fE=m(()=>{"use strict";pt();ht();at();ot();Zr();n(uE,"note")});async function pE(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s}=await K(t,e,Y(e)),a=s.width+e.padding,l=s.height+e.padding,c=a+l,h=.5,u=[{x:c/2,y:0},{x:c,y:-c/2},{x:c/2,y:-c},{x:0,y:-c/2}],f,{cssStyles:p}=e;if(e.look==="handDrawn"){let d=W.svg(o),g=H(e,{}),x=Lz(0,0,c),y=d.path(x,g);f=o.insert(()=>y,":first-child").attr("transform",`translate(${-c/2+h}, ${c/2})`),p&&f.attr("style",p)}else f=mr(o,c,c,u),f.attr("transform",`translate(${-c/2+h}, ${c/2})`);return i&&f.attr("style",i),j(e,f),e.calcIntersect=function(d,g){let x=d.width,y=[{x:x/2,y:0},{x,y:-x/2},{x:x/2,y:-x},{x:0,y:-x/2}],b=$.polygon(d,y,g);return{x:b.x-.5,y:b.y-.5}},e.intersect=function(d){return this.calcIntersect(e,d)},o}var Lz,dE=m(()=>{"use strict";ot();ht();at();pt();jo();Lz=n((t,e,r)=>[`M${t+r/2},${e}`,`L${t+r},${e-r/2}`,`L${t+r/2},${e-r}`,`L${t},${e-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");n(pE,"question")});async function mE(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s,label:a}=await K(t,e,Y(e)),l=Math.max(s.width+(e.padding??0),e?.width??0),c=Math.max(s.height+(e.padding??0),e?.height??0),h=-l/2,u=-c/2,f=u/2,p=[{x:h+f,y:u},{x:h,y:0},{x:h+f,y:-u},{x:-h,y:-u},{x:-h,y:u}],{cssStyles:d}=e,g=W.svg(o),x=H(e,{});e.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let y=st(p),b=g.path(y,x),C=o.insert(()=>b,":first-child");return C.attr("class","basic label-container"),d&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",d),i&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",i),C.attr("transform",`translate(${-f/2},0)`),a.attr("transform",`translate(${-f/2-s.width/2-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),j(e,C),e.intersect=function(k){return $.polygon(e,p,k)},o}var gE=m(()=>{"use strict";ot();ht();at();pt();n(mE,"rect_left_inv_arrow")});function Dz(t,e){e&&t.attr("style",e)}async function Fz(t){let e=ft(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=e.append("xhtml:div"),i=_t(),o=t.label;t.label&&uo(t.label)&&(o=await $c(t.label.replace(Ir.lineBreakRegex,` `),i));let a='"+o+"";return r.html(Oe(a,i)),Dz(r,t.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}var Oz,yi,Au=m(()=>{"use strict";je();Me();Ne();vt();re();n(Dz,"applyStyle");n(Fz,"addHtmlLabel");Oz=n(async(t,e,r,i)=>{let o=t||"";if(typeof o=="object"&&(o=o[0]),Vt(_t().flowchart.htmlLabels)){o=o.replace(/\\n|\n/g,"
    "),S.info("vertexText"+o);let s={isNode:i,label:Sr(o).replace(/fa[blrs]?:fa-[\w-]+/g,l=>``),labelStyle:e&&e.replace("fill:","color:")};return await Fz(s)}else{let s=document.createElementNS("http://www.w3.org/2000/svg","text");s.setAttribute("style",e.replace("color:","fill:"));let a=[];typeof o=="string"?a=o.split(/\\n|\n|/gi):Array.isArray(o)?a=o:a=[];for(let l of a){let c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),r?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=l.trim(),s.appendChild(c)}return s}},"createLabel"),yi=Oz});async function xE(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let o;e.cssClasses?o="node "+e.cssClasses:o="node default";let s=t.insert("g").attr("class",o).attr("id",e.domId||e.id),a=s.insert("g"),l=s.insert("g").attr("class","label").attr("style",i),c=e.description,h=e.label,u=l.node().appendChild(await yi(h,e.labelStyle,!0,!0)),f={width:0,height:0};if(Vt(_t()?.flowchart?.htmlLabels)){let R=u.children[0],P=ft(u);f=R.getBoundingClientRect(),P.attr("width",f.width),P.attr("height",f.height)}S.info("Text 2",c);let p=c||[],d=u.getBBox(),g=l.node().appendChild(await yi(p.join?p.join("
    "):p,e.labelStyle,!0,!0)),x=g.children[0],y=ft(g);f=x.getBoundingClientRect(),y.attr("width",f.width),y.attr("height",f.height);let b=(e.padding||0)/2;ft(g).attr("transform","translate( "+(f.width>d.width?0:(d.width-f.width)/2)+", "+(d.height+b+5)+")"),ft(u).attr("transform","translate( "+(f.width(S.debug("Rough node insert CXC",U),N),":first-child"),D=s.insert(()=>(S.debug("Rough node insert CXC",U),U),":first-child")}else D=a.insert("rect",":first-child"),B=a.insert("line"),D.attr("class","outer title-state").attr("style",i).attr("x",-f.width/2-b).attr("y",-f.height/2-b).attr("width",f.width+(e.padding||0)).attr("height",f.height+(e.padding||0)),B.attr("class","divider").attr("x1",-f.width/2-b).attr("x2",f.width/2+b).attr("y1",-f.height/2-b+d.height+b).attr("y2",-f.height/2-b+d.height+b);return j(e,D),e.intersect=function(R){return $.rect(e,R)},s}var yE=m(()=>{"use strict";je();Ne();ot();Au();ht();at();pt();Me();On();vt();n(xE,"rectWithTitle")});function Mu(t,e,r,i,o,s,a){let c=(t+r)/2,h=(e+i)/2,u=Math.atan2(i-e,r-t),f=(r-t)/2,p=(i-e)/2,d=f/o,g=p/s,x=Math.sqrt(d**2+g**2);if(x>1)throw new Error("The given radii are too small to create an arc between the points.");let y=Math.sqrt(1-x**2),b=c+y*s*Math.sin(u)*(a?-1:1),C=h-y*o*Math.cos(u)*(a?-1:1),k=Math.atan2((e-C)/s,(t-b)/o),v=Math.atan2((i-C)/s,(r-b)/o)-k;a&&v<0&&(v+=2*Math.PI),!a&&v>0&&(v-=2*Math.PI);let D=[];for(let B=0;B<20;B++){let R=B/19,P=k+R*v,U=b+o*Math.cos(P),N=C+s*Math.sin(P);D.push({x:U,y:N})}return D}async function bE(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s}=await K(t,e,Y(e)),a=e?.padding??0,l=e?.padding??0,c=(e?.width?e?.width:s.width)+a*2,h=(e?.height?e?.height:s.height)+l*2,u=e.radius||5,f=e.taper||5,{cssStyles:p}=e,d=W.svg(o),g=H(e,{});e.stroke&&(g.stroke=e.stroke),e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let x=[{x:-c/2+f,y:-h/2},{x:c/2-f,y:-h/2},...Mu(c/2-f,-h/2,c/2,-h/2+f,u,u,!0),{x:c/2,y:-h/2+f},{x:c/2,y:h/2-f},...Mu(c/2,h/2-f,c/2-f,h/2,u,u,!0),{x:c/2-f,y:h/2},{x:-c/2+f,y:h/2},...Mu(-c/2+f,h/2,-c/2,h/2-f,u,u,!0),{x:-c/2,y:h/2-f},{x:-c/2,y:-h/2+f},...Mu(-c/2,-h/2+f,-c/2+f,-h/2,u,u,!0)],y=st(x),b=d.path(y,g),C=o.insert(()=>b,":first-child");return C.attr("class","basic label-container outer-path"),p&&e.look!=="handDrawn"&&C.selectChildren("path").attr("style",p),i&&e.look!=="handDrawn"&&C.selectChildren("path").attr("style",i),j(e,C),e.intersect=function(k){return $.polygon(e,x,k)},o}var CE=m(()=>{"use strict";ot();ht();at();pt();n(Mu,"generateArcPoints");n(bE,"roundedRect")});async function wE(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s,label:a}=await K(t,e,Y(e)),l=e?.padding??0,c=Math.max(s.width+(e.padding??0)*2,e?.width??0),h=Math.max(s.height+(e.padding??0)*2,e?.height??0),u=-s.width/2-l,f=-s.height/2-l,{cssStyles:p}=e,d=W.svg(o),g=H(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let x=[{x:u,y:f},{x:u+c+8,y:f},{x:u+c+8,y:f+h},{x:u-8,y:f+h},{x:u-8,y:f},{x:u,y:f},{x:u,y:f+h}],y=d.polygon(x.map(C=>[C.x,C.y]),g),b=o.insert(()=>y,":first-child");return b.attr("class","basic label-container").attr("style",Zt(p)),i&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",i),p&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",i),a.attr("transform",`translate(${-c/2+4+(e.padding??0)-(s.x-(s.left??0))},${-h/2+(e.padding??0)-(s.y-(s.top??0))})`),j(e,b),e.intersect=function(C){return $.rect(e,C)},o}var _E=m(()=>{"use strict";ot();ht();at();pt();re();n(wE,"shadedProcess")});async function SE(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s,label:a}=await K(t,e,Y(e)),l=Math.max(s.width+(e.padding??0)*2,e?.width??0),c=Math.max(s.height+(e.padding??0)*2,e?.height??0),h=-l/2,u=-c/2,{cssStyles:f}=e,p=W.svg(o),d=H(e,{});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let g=[{x:h,y:u},{x:h,y:u+c},{x:h+l,y:u+c},{x:h+l,y:u-c/2}],x=st(g),y=p.path(x,d),b=o.insert(()=>y,":first-child");return b.attr("class","basic label-container"),f&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",f),i&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",i),b.attr("transform",`translate(0, ${c/4})`),a.attr("transform",`translate(${-l/2+(e.padding??0)-(s.x-(s.left??0))}, ${-c/4+(e.padding??0)-(s.y-(s.top??0))})`),j(e,b),e.intersect=function(C){return $.polygon(e,g,C)},o}var kE=m(()=>{"use strict";ot();ht();at();pt();n(SE,"slopedRect")});async function vE(t,e){let r={rx:0,ry:0,classes:"",labelPaddingX:e.labelPaddingX??(e?.padding||0)*2,labelPaddingY:(e?.padding||0)*1};return Nn(t,e,r)}var TE=m(()=>{"use strict";Jl();n(vE,"squareRect")});async function EE(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s}=await K(t,e,Y(e)),a=s.height+e.padding,l=s.width+a/4+e.padding,c=a/2,{cssStyles:h}=e,u=W.svg(o),f=H(e,{});e.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");let p=[{x:-l/2+c,y:-a/2},{x:l/2-c,y:-a/2},...Dn(-l/2+c,0,c,50,90,270),{x:l/2-c,y:a/2},...Dn(l/2-c,0,c,50,270,450)],d=st(p),g=u.path(d,f),x=o.insert(()=>g,":first-child");return x.attr("class","basic label-container outer-path"),h&&e.look!=="handDrawn"&&x.selectChildren("path").attr("style",h),i&&e.look!=="handDrawn"&&x.selectChildren("path").attr("style",i),j(e,x),e.intersect=function(y){return $.polygon(e,p,y)},o}var AE=m(()=>{"use strict";ot();ht();at();pt();n(EE,"stadium")});async function ME(t,e){return Nn(t,e,{rx:5,ry:5,classes:"flowchart-node"})}var BE=m(()=>{"use strict";Jl();n(ME,"state")});function LE(t,e,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:o}=G(e);e.labelStyle=i;let{cssStyles:s}=e,{lineColor:a,stateBorder:l,nodeBorder:c}=r,h=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),u=W.svg(h),f=H(e,{});e.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");let p=u.circle(0,0,14,{...f,stroke:a,strokeWidth:2}),d=l??c,g=u.circle(0,0,5,{...f,fill:d,stroke:d,strokeWidth:2,fillStyle:"solid"}),x=h.insert(()=>p,":first-child");return x.insert(()=>g),s&&x.selectAll("path").attr("style",s),o&&x.selectAll("path").attr("style",o),j(e,x),e.intersect=function(y){return $.circle(e,7,y)},h}var DE=m(()=>{"use strict";pt();ht();at();ot();n(LE,"stateEnd")});function FE(t,e,{config:{themeVariables:r}}){let{lineColor:i}=r,o=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),s;if(e.look==="handDrawn"){let l=W.svg(o).circle(0,0,14,$v(i));s=o.insert(()=>l),s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else s=o.insert("circle",":first-child"),s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return j(e,s),e.intersect=function(a){return $.circle(e,7,a)},o}var OE=m(()=>{"use strict";pt();ht();at();ot();n(FE,"stateStart")});async function NE(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s}=await K(t,e,Y(e)),a=(e?.padding||0)/2,l=s.width+e.padding,c=s.height+e.padding,h=-s.width/2-a,u=-s.height/2-a,f=[{x:0,y:0},{x:l,y:0},{x:l,y:-c},{x:0,y:-c},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-c},{x:-8,y:-c},{x:-8,y:0}];if(e.look==="handDrawn"){let p=W.svg(o),d=H(e,{}),g=p.rectangle(h-8,u,l+16,c,d),x=p.line(h,u,h,u+c,d),y=p.line(h+l,u,h+l,u+c,d);o.insert(()=>x,":first-child"),o.insert(()=>y,":first-child");let b=o.insert(()=>g,":first-child"),{cssStyles:C}=e;b.attr("class","basic label-container").attr("style",Zt(C)),j(e,b)}else{let p=mr(o,l,c,f);i&&p.attr("style",i),j(e,p)}return e.intersect=function(p){return $.polygon(e,f,p)},o}var IE=m(()=>{"use strict";ot();ht();at();pt();jo();re();n(NE,"subroutine")});async function RE(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s}=await K(t,e,Y(e)),a=Math.max(s.width+(e.padding??0)*2,e?.width??0),l=Math.max(s.height+(e.padding??0)*2,e?.height??0),c=-a/2,h=-l/2,u=.2*l,f=.2*l,{cssStyles:p}=e,d=W.svg(o),g=H(e,{}),x=[{x:c-u/2,y:h},{x:c+a+u/2,y:h},{x:c+a+u/2,y:h+l},{x:c-u/2,y:h+l}],y=[{x:c+a-u/2,y:h+l},{x:c+a+u/2,y:h+l},{x:c+a+u/2,y:h+l-f}];e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let b=st(x),C=d.path(b,g),k=st(y),T=d.path(k,{...g,fillStyle:"solid"}),v=o.insert(()=>T,":first-child");return v.insert(()=>C,":first-child"),v.attr("class","basic label-container"),p&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",p),i&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",i),j(e,v),e.intersect=function(D){return $.polygon(e,x,D)},o}var PE=m(()=>{"use strict";ot();at();pt();ht();n(RE,"taggedRect")});async function $E(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s,label:a}=await K(t,e,Y(e)),l=Math.max(s.width+(e.padding??0)*2,e?.width??0),c=Math.max(s.height+(e.padding??0)*2,e?.height??0),h=c/4,u=.2*l,f=.2*c,p=c+h,{cssStyles:d}=e,g=W.svg(o),x=H(e,{});e.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let y=[{x:-l/2-l/2*.1,y:p/2},...zr(-l/2-l/2*.1,p/2,l/2+l/2*.1,p/2,h,.8),{x:l/2+l/2*.1,y:-p/2},{x:-l/2-l/2*.1,y:-p/2}],b=-l/2+l/2*.1,C=-p/2-f*.4,k=[{x:b+l-u,y:(C+c)*1.4},{x:b+l,y:C+c-f},{x:b+l,y:(C+c)*.9},...zr(b+l,(C+c)*1.3,b+l-u,(C+c)*1.5,-c*.03,.5)],T=st(y),v=g.path(T,x),D=st(k),B=g.path(D,{...x,fillStyle:"solid"}),R=o.insert(()=>B,":first-child");return R.insert(()=>v,":first-child"),R.attr("class","basic label-container"),d&&e.look!=="handDrawn"&&R.selectAll("path").attr("style",d),i&&e.look!=="handDrawn"&&R.selectAll("path").attr("style",i),R.attr("transform",`translate(0,${-h/2})`),a.attr("transform",`translate(${-l/2+(e.padding??0)-(s.x-(s.left??0))},${-c/2+(e.padding??0)-h/2-(s.y-(s.top??0))})`),j(e,R),e.intersect=function(P){return $.polygon(e,y,P)},o}var zE=m(()=>{"use strict";ot();ht();pt();at();n($E,"taggedWaveEdgedRectangle")});async function jE(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s}=await K(t,e,Y(e)),a=Math.max(s.width+e.padding,e?.width||0),l=Math.max(s.height+e.padding,e?.height||0),c=-a/2,h=-l/2,u=o.insert("rect",":first-child");return u.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",c).attr("y",h).attr("width",a).attr("height",l),j(e,u),e.intersect=function(f){return $.rect(e,f)},o}var GE=m(()=>{"use strict";ot();ht();at();n(jE,"text")});async function WE(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s,label:a,halfPadding:l}=await K(t,e,Y(e)),c=e.look==="neo"?l*2:l,h=s.height+c,u=h/2,f=u/(2.5+h/50),p=s.width+f+c,{cssStyles:d}=e,g;if(e.look==="handDrawn"){let x=W.svg(o),y=Iz(0,0,p,h,f,u),b=Rz(0,0,p,h,f,u),C=x.path(y,H(e,{})),k=x.path(b,H(e,{fill:"none"}));g=o.insert(()=>k,":first-child"),g=o.insert(()=>C,":first-child"),g.attr("class","basic label-container"),d&&g.attr("style",d)}else{let x=Nz(0,0,p,h,f,u);g=o.insert("path",":first-child").attr("d",x).attr("class","basic label-container").attr("style",Zt(d)).attr("style",i),g.attr("class","basic label-container"),d&&g.selectAll("path").attr("style",d),i&&g.selectAll("path").attr("style",i)}return g.attr("label-offset-x",f),g.attr("transform",`translate(${-p/2}, ${h/2} )`),a.attr("transform",`translate(${-(s.width/2)-f-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),j(e,g),e.intersect=function(x){let y=$.rect(e,x),b=y.y-(e.y??0);if(u!=0&&(Math.abs(b)<(e.height??0)/2||Math.abs(b)==(e.height??0)/2&&Math.abs(y.x-(e.x??0))>(e.width??0)/2-f)){let C=f*f*(1-b*b/(u*u));C!=0&&(C=Math.sqrt(Math.abs(C))),C=f-C,x.x-(e.x??0)>0&&(C=-C),y.x+=C}return y},o}var Nz,Iz,Rz,HE=m(()=>{"use strict";ot();at();pt();ht();re();Nz=n((t,e,r,i,o,s)=>`M${t},${e} a${o},${s} 0,0,1 0,${-i} l${r},0 a${o},${s} 0,0,1 0,${i} M${r},${-i} a${o},${s} 0,0,0 0,${i} l${-r},0`,"createCylinderPathD"),Iz=n((t,e,r,i,o,s)=>[`M${t},${e}`,`M${t+r},${e}`,`a${o},${s} 0,0,0 0,${-i}`,`l${-r},0`,`a${o},${s} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),Rz=n((t,e,r,i,o,s)=>[`M${t+r/2},${-i/2}`,`a${o},${s} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD");n(WE,"tiltedCylinder")});async function qE(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s}=await K(t,e,Y(e)),a=s.width+e.padding,l=s.height+e.padding,c=[{x:-3*l/6,y:0},{x:a+3*l/6,y:0},{x:a,y:-l},{x:0,y:-l}],h,{cssStyles:u}=e;if(e.look==="handDrawn"){let f=W.svg(o),p=H(e,{}),d=st(c),g=f.path(d,p);h=o.insert(()=>g,":first-child").attr("transform",`translate(${-a/2}, ${l/2})`),u&&h.attr("style",u)}else h=mr(o,a,l,c);return i&&h.attr("style",i),e.width=a,e.height=l,j(e,h),e.intersect=function(f){return $.polygon(e,c,f)},o}var VE=m(()=>{"use strict";ot();ht();at();pt();jo();n(qE,"trapezoid")});async function UE(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s}=await K(t,e,Y(e)),a=60,l=20,c=Math.max(a,s.width+(e.padding??0)*2,e?.width??0),h=Math.max(l,s.height+(e.padding??0)*2,e?.height??0),{cssStyles:u}=e,f=W.svg(o),p=H(e,{});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let d=[{x:-c/2*.8,y:-h/2},{x:c/2*.8,y:-h/2},{x:c/2,y:-h/2*.6},{x:c/2,y:h/2},{x:-c/2,y:h/2},{x:-c/2,y:-h/2*.6}],g=st(d),x=f.path(g,p),y=o.insert(()=>x,":first-child");return y.attr("class","basic label-container"),u&&e.look!=="handDrawn"&&y.selectChildren("path").attr("style",u),i&&e.look!=="handDrawn"&&y.selectChildren("path").attr("style",i),j(e,y),e.intersect=function(b){return $.polygon(e,d,b)},o}var YE=m(()=>{"use strict";ot();ht();at();pt();n(UE,"trapezoidalPentagon")});async function XE(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s,label:a}=await K(t,e,Y(e)),l=Vt(_t().flowchart?.htmlLabels),c=s.width+(e.padding??0),h=c+s.height,u=c+s.height,f=[{x:0,y:0},{x:u,y:0},{x:u/2,y:-h}],{cssStyles:p}=e,d=W.svg(o),g=H(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let x=st(f),y=d.path(x,g),b=o.insert(()=>y,":first-child").attr("transform",`translate(${-h/2}, ${h/2})`);return p&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",p),i&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",i),e.width=c,e.height=h,j(e,b),a.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${h/2-(s.height+(e.padding??0)/(l?2:1)-(s.y-(s.top??0)))})`),e.intersect=function(C){return S.info("Triangle intersect",e,f,C),$.polygon(e,f,C)},o}var KE=m(()=>{"use strict";vt();ot();ht();at();pt();ot();Ne();Me();n(XE,"triangle")});async function ZE(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s,label:a}=await K(t,e,Y(e)),l=Math.max(s.width+(e.padding??0)*2,e?.width??0),c=Math.max(s.height+(e.padding??0)*2,e?.height??0),h=c/8,u=c+h,{cssStyles:f}=e,d=70-l,g=d>0?d/2:0,x=W.svg(o),y=H(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let b=[{x:-l/2-g,y:u/2},...zr(-l/2-g,u/2,l/2+g,u/2,h,.8),{x:l/2+g,y:-u/2},{x:-l/2-g,y:-u/2}],C=st(b),k=x.path(C,y),T=o.insert(()=>k,":first-child");return T.attr("class","basic label-container"),f&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",f),i&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",i),T.attr("transform",`translate(0,${-h/2})`),a.attr("transform",`translate(${-l/2+(e.padding??0)-(s.x-(s.left??0))},${-c/2+(e.padding??0)-h-(s.y-(s.top??0))})`),j(e,T),e.intersect=function(v){return $.polygon(e,b,v)},o}var QE=m(()=>{"use strict";ot();ht();pt();at();n(ZE,"waveEdgedRectangle")});async function JE(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s}=await K(t,e,Y(e)),a=100,l=50,c=Math.max(s.width+(e.padding??0)*2,e?.width??0),h=Math.max(s.height+(e.padding??0)*2,e?.height??0),u=c/h,f=c,p=h;f>p*u?p=f/u:f=p*u,f=Math.max(f,a),p=Math.max(p,l);let d=Math.min(p*.2,p/4),g=p+d*2,{cssStyles:x}=e,y=W.svg(o),b=H(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");let C=[{x:-f/2,y:g/2},...zr(-f/2,g/2,f/2,g/2,d,1),{x:f/2,y:-g/2},...zr(f/2,-g/2,-f/2,-g/2,d,-1)],k=st(C),T=y.path(k,b),v=o.insert(()=>T,":first-child");return v.attr("class","basic label-container"),x&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",x),i&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",i),j(e,v),e.intersect=function(D){return $.polygon(e,C,D)},o}var tA=m(()=>{"use strict";ot();ht();at();pt();n(JE,"waveRectangle")});async function eA(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s,label:a}=await K(t,e,Y(e)),l=Math.max(s.width+(e.padding??0)*2,e?.width??0),c=Math.max(s.height+(e.padding??0)*2,e?.height??0),h=5,u=-l/2,f=-c/2,{cssStyles:p}=e,d=W.svg(o),g=H(e,{}),x=[{x:u-h,y:f-h},{x:u-h,y:f+c},{x:u+l,y:f+c},{x:u+l,y:f-h}],y=`M${u-h},${f-h} L${u+l},${f-h} L${u+l},${f+c} L${u-h},${f+c} L${u-h},${f-h} M${u-h},${f} L${u+l},${f} M${u},${f-h} L${u},${f+c}`;e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let b=d.path(y,g),C=o.insert(()=>b,":first-child");return C.attr("transform",`translate(${h/2}, ${h/2})`),C.attr("class","basic label-container"),p&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",p),i&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",i),a.attr("transform",`translate(${-(s.width/2)+h/2-(s.x-(s.left??0))}, ${-(s.height/2)+h/2-(s.y-(s.top??0))})`),j(e,C),e.intersect=function(k){return $.polygon(e,x,k)},o}var rA=m(()=>{"use strict";ot();at();pt();ht();n(eA,"windowPane")});async function P0(t,e){let r=e;if(r.alias&&(e.label=r.alias),e.look==="handDrawn"){let{themeVariables:ut}=ee(),{background:ct}=ut,Wt={...e,id:e.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${ct}`]};await P0(t,Wt)}let i=ee();e.useHtmlLabels=i.htmlLabels;let o=i.er?.diagramPadding??10,s=i.er?.entityPadding??6,{cssStyles:a}=e,{labelStyles:l,nodeStyles:c}=G(e);if(r.attributes.length===0&&e.label){let ut={rx:0,ry:0,labelPaddingX:o,labelPaddingY:o*1.5,classes:""};ni(e.label,i)+ut.labelPaddingX*20){let ut=f.width+o*2-(x+y+b+C);x+=ut/v,y+=ut/v,b>0&&(b+=ut/v),C>0&&(C+=ut/v)}let B=x+y+b+C,R=W.svg(u),P=H(e,{});e.look!=="handDrawn"&&(P.roughness=0,P.fillStyle="solid");let U=0;g.length>0&&(U=g.reduce((ut,ct)=>ut+(ct?.rowHeight??0),0));let N=Math.max(D.width+o*2,e?.width||0,B),O=Math.max((U??0)+f.height,e?.height||0),A=-N/2,M=-O/2;u.selectAll("g:not(:first-child)").each((ut,ct,Wt)=>{let wt=ft(Wt[ct]),Yt=wt.attr("transform"),Ht=0,qt=0;if(Yt){let xt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Yt);xt&&(Ht=parseFloat(xt[1]),qt=parseFloat(xt[2]),wt.attr("class").includes("attribute-name")?Ht+=x:wt.attr("class").includes("attribute-keys")?Ht+=x+y:wt.attr("class").includes("attribute-comment")&&(Ht+=x+y+b))}wt.attr("transform",`translate(${A+o/2+Ht}, ${qt+M+f.height+s/2})`)}),u.select(".name").attr("transform","translate("+-f.width/2+", "+(M+s/2)+")");let z=R.rectangle(A,M,N,O,P),F=u.insert(()=>z,":first-child").attr("style",a.join("")),{themeVariables:V}=ee(),{rowEven:q,rowOdd:Q,nodeBorder:Ct}=V;d.push(0);for(let[ut,ct]of g.entries()){let wt=(ut+1)%2===0&&ct.yOffset!==0,Yt=R.rectangle(A,f.height+M+ct?.yOffset,N,ct?.rowHeight,{...P,fill:wt?q:Q,stroke:Ct});u.insert(()=>Yt,"g.label").attr("style",a.join("")).attr("class",`row-rect-${wt?"even":"odd"}`)}let lt=R.line(A,f.height+M,N+A,f.height+M,P);u.insert(()=>lt).attr("class","divider"),lt=R.line(x+A,f.height+M,x+A,O+M,P),u.insert(()=>lt).attr("class","divider"),k&&(lt=R.line(x+y+A,f.height+M,x+y+A,O+M,P),u.insert(()=>lt).attr("class","divider")),T&&(lt=R.line(x+y+b+A,f.height+M,x+y+b+A,O+M,P),u.insert(()=>lt).attr("class","divider"));for(let ut of d)lt=R.line(A,f.height+M+ut,N+A,f.height+M+ut,P),u.insert(()=>lt).attr("class","divider");if(j(e,F),c&&e.look!=="handDrawn"){let ct=c.split(";")?.filter(Wt=>Wt.includes("stroke"))?.map(Wt=>`${Wt}`).join("; ");u.selectAll("path").attr("style",ct??""),u.selectAll(".row-rect-even path").attr("style",c)}return e.intersect=function(ut){return $.rect(e,ut)},u}async function tc(t,e,r,i=0,o=0,s=[],a=""){let l=t.insert("g").attr("class",`label ${s.join(" ")}`).attr("transform",`translate(${i}, ${o})`).attr("style",a);e!==Op(e)&&(e=Op(e),e=e.replaceAll("<","<").replaceAll(">",">"));let c=l.node().appendChild(await pr(l,e,{width:ni(e,r)+100,style:a,useHtmlLabels:r.htmlLabels},r));if(e.includes("<")||e.includes(">")){let u=c.children[0];for(u.textContent=u.textContent.replaceAll("<","<").replaceAll(">",">");u.childNodes[0];)u=u.childNodes[0],u.textContent=u.textContent.replaceAll("<","<").replaceAll(">",">")}let h=c.getBBox();if(Vt(r.htmlLabels)){let u=c.children[0];u.style.textAlign="start";let f=ft(c);h=u.getBoundingClientRect(),f.attr("width",h.width),f.attr("height",h.height)}return h}var iA=m(()=>{"use strict";ot();ht();at();pt();Jl();Zr();Ln();Ne();je();re();n(P0,"erBox");n(tc,"addText")});async function oA(t,e,r,i,o=r.class.padding??12){let s=i?0:3,a=t.insert("g").attr("class",Y(e)).attr("id",e.domId||e.id),l=null,c=null,h=null,u=null,f=0,p=0,d=0;if(l=a.insert("g").attr("class","annotation-group text"),e.annotations.length>0){let C=e.annotations[0];await Bu(l,{text:`\xAB${C}\xBB`},0),f=l.node().getBBox().height}c=a.insert("g").attr("class","label-group text"),await Bu(c,e,0,["font-weight: bolder"]);let g=c.node().getBBox();p=g.height,h=a.insert("g").attr("class","members-group text");let x=0;for(let C of e.members){let k=await Bu(h,C,x,[C.parseClassifier()]);x+=k+s}d=h.node().getBBox().height,d<=0&&(d=o/2),u=a.insert("g").attr("class","methods-group text");let y=0;for(let C of e.methods){let k=await Bu(u,C,y,[C.parseClassifier()]);y+=k+s}let b=a.node().getBBox();if(l!==null){let C=l.node().getBBox();l.attr("transform",`translate(${-C.width/2})`)}return c.attr("transform",`translate(${-g.width/2}, ${f})`),b=a.node().getBBox(),h.attr("transform",`translate(0, ${f+p+o*2})`),b=a.node().getBBox(),u.attr("transform",`translate(0, ${f+p+(d?d+o*4:o*2)})`),b=a.node().getBBox(),{shapeSvg:a,bbox:b}}async function Bu(t,e,r,i=[]){let o=t.insert("g").attr("class","label").attr("style",i.join("; ")),s=ee(),a="useHtmlLabels"in e?e.useHtmlLabels:Vt(s.htmlLabels)??!0,l="";"text"in e?l=e.text:l=e.label,!a&&l.startsWith("\\")&&(l=l.substring(1)),uo(l)&&(a=!0);let c=await pr(o,Aa(Sr(l)),{width:ni(l,s)+50,classes:"markdown-node-label",useHtmlLabels:a},s),h,u=1;if(a){let f=c.children[0],p=ft(c);u=f.innerHTML.split("
    ").length,f.innerHTML.includes("")&&(u+=f.innerHTML.split("").length-1);let d=f.getElementsByTagName("img");if(d){let g=l.replace(/]*>/g,"").trim()==="";await Promise.all([...d].map(x=>new Promise(y=>{function b(){if(x.style.display="flex",x.style.flexDirection="column",g){let C=s.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,T=parseInt(C,10)*5+"px";x.style.minWidth=T,x.style.maxWidth=T}else x.style.width="100%";y(x)}n(b,"setupImage"),setTimeout(()=>{x.complete&&b()}),x.addEventListener("error",b),x.addEventListener("load",b)})))}h=f.getBoundingClientRect(),p.attr("width",h.width),p.attr("height",h.height)}else{i.includes("font-weight: bolder")&&ft(c).selectAll("tspan").attr("font-weight",""),u=c.children.length;let f=c.children[0];(c.textContent===""||c.textContent.includes(">"))&&(f.textContent=l[0]+l.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),l[1]===" "&&(f.textContent=f.textContent[0]+" "+f.textContent.substring(1))),f.textContent==="undefined"&&(f.textContent=""),h=c.getBBox()}return o.attr("transform","translate(0,"+(-h.height/(2*u)+r)+")"),h.height}var nA=m(()=>{"use strict";je();Zr();ot();re();Me();Ln();Ne();n(oA,"textHelper");n(Bu,"addText")});async function sA(t,e){let r=_t(),i=r.class.padding??12,o=i,s=e.useHtmlLabels??Vt(r.htmlLabels)??!0,a=e;a.annotations=a.annotations??[],a.members=a.members??[],a.methods=a.methods??[];let{shapeSvg:l,bbox:c}=await oA(t,e,r,s,o),{labelStyles:h,nodeStyles:u}=G(e);e.labelStyle=h,e.cssStyles=a.styles||"";let f=a.styles?.join(";")||u||"";e.cssStyles||(e.cssStyles=f.replaceAll("!important","").split(";"));let p=a.members.length===0&&a.methods.length===0&&!r.class?.hideEmptyMembersBox,d=W.svg(l),g=H(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let x=c.width,y=c.height;a.members.length===0&&a.methods.length===0?y+=o:a.members.length>0&&a.methods.length===0&&(y+=o*2);let b=-x/2,C=-y/2,k=d.rectangle(b-i,C-i-(p?i:a.members.length===0&&a.methods.length===0?-i/2:0),x+2*i,y+2*i+(p?i*2:a.members.length===0&&a.methods.length===0?-i:0),g),T=l.insert(()=>k,":first-child");T.attr("class","basic label-container");let v=T.node().getBBox();l.selectAll(".text").each((P,U,N)=>{let O=ft(N[U]),A=O.attr("transform"),M=0;if(A){let q=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(A);q&&(M=parseFloat(q[2]))}let z=M+C+i-(p?i:a.members.length===0&&a.methods.length===0?-i/2:0);s||(z-=4);let F=b;(O.attr("class").includes("label-group")||O.attr("class").includes("annotation-group"))&&(F=-O.node()?.getBBox().width/2||0,l.selectAll("text").each(function(V,q,Q){window.getComputedStyle(Q[q]).textAnchor==="middle"&&(F=0)})),O.attr("transform",`translate(${F}, ${z})`)});let D=l.select(".annotation-group").node().getBBox().height-(p?i/2:0)||0,B=l.select(".label-group").node().getBBox().height-(p?i/2:0)||0,R=l.select(".members-group").node().getBBox().height-(p?i/2:0)||0;if(a.members.length>0||a.methods.length>0||p){let P=d.line(v.x,D+B+C+i,v.x+v.width,D+B+C+i,g);l.insert(()=>P).attr("class","divider").attr("style",f)}if(p||a.members.length>0||a.methods.length>0){let P=d.line(v.x,D+B+R+C+o*2+i,v.x+v.width,D+B+R+C+i+o*2,g);l.insert(()=>P).attr("class","divider").attr("style",f)}if(a.look!=="handDrawn"&&l.selectAll("path").attr("style",f),T.select(":nth-child(2)").attr("style",f),l.selectAll(".divider").select("path").attr("style",f),e.labelStyle?l.selectAll("span").attr("style",e.labelStyle):l.selectAll("span").attr("style",f),!s){let P=RegExp(/color\s*:\s*([^;]*)/),U=P.exec(f);if(U){let N=U[0].replace("color","fill");l.selectAll("tspan").attr("style",N)}else if(h){let N=P.exec(h);if(N){let O=N[0].replace("color","fill");l.selectAll("tspan").attr("style",O)}}}return j(e,T),e.intersect=function(P){return $.rect(e,P)},l}var aA=m(()=>{"use strict";ot();Me();je();pt();at();ht();nA();Ne();n(sA,"classBox")});async function lA(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let o=e,s=e,a=20,l=20,c="verifyMethod"in e,h=Y(e),u=t.insert("g").attr("class",h).attr("id",e.domId??e.id),f;c?f=await Zi(u,`<<${o.type}>>`,0,e.labelStyle):f=await Zi(u,"<<Element>>",0,e.labelStyle);let p=f,d=await Zi(u,o.name,p,e.labelStyle+"; font-weight: bold;");if(p+=d+l,c){let D=await Zi(u,`${o.requirementId?`ID: ${o.requirementId}`:""}`,p,e.labelStyle);p+=D;let B=await Zi(u,`${o.text?`Text: ${o.text}`:""}`,p,e.labelStyle);p+=B;let R=await Zi(u,`${o.risk?`Risk: ${o.risk}`:""}`,p,e.labelStyle);p+=R,await Zi(u,`${o.verifyMethod?`Verification: ${o.verifyMethod}`:""}`,p,e.labelStyle)}else{let D=await Zi(u,`${s.type?`Type: ${s.type}`:""}`,p,e.labelStyle);p+=D,await Zi(u,`${s.docRef?`Doc Ref: ${s.docRef}`:""}`,p,e.labelStyle)}let g=(u.node()?.getBBox().width??200)+a,x=(u.node()?.getBBox().height??200)+a,y=-g/2,b=-x/2,C=W.svg(u),k=H(e,{});e.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");let T=C.rectangle(y,b,g,x,k),v=u.insert(()=>T,":first-child");if(v.attr("class","basic label-container").attr("style",i),u.selectAll(".label").each((D,B,R)=>{let P=ft(R[B]),U=P.attr("transform"),N=0,O=0;if(U){let F=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(U);F&&(N=parseFloat(F[1]),O=parseFloat(F[2]))}let A=O-x/2,M=y+a/2;(B===0||B===1)&&(M=N),P.attr("transform",`translate(${M}, ${A+a})`)}),p>f+d+l){let D=C.line(y,b+f+d+l,y+g,b+f+d+l,k);u.insert(()=>D).attr("style",i)}return j(e,v),e.intersect=function(D){return $.rect(e,D)},u}async function Zi(t,e,r,i=""){if(e==="")return 0;let o=t.insert("g").attr("class","label").attr("style",i),s=_t(),a=s.htmlLabels??!0,l=await pr(o,Aa(Sr(e)),{width:ni(e,s)+50,classes:"markdown-node-label",useHtmlLabels:a,style:i},s),c;if(a){let h=l.children[0],u=ft(l);c=h.getBoundingClientRect(),u.attr("width",c.width),u.attr("height",c.height)}else{let h=l.children[0];for(let u of h.children)u.textContent=u.textContent.replaceAll(">",">").replaceAll("<","<"),i&&u.setAttribute("style",i);c=l.getBBox(),c.height+=6}return o.attr("transform",`translate(${-c.width/2},${-c.height/2+r})`),c.height}var cA=m(()=>{"use strict";ot();ht();at();pt();re();Me();Ln();je();n(lA,"requirementBox");n(Zi,"addText")});async function hA(t,e,{config:r}){let{labelStyles:i,nodeStyles:o}=G(e);e.labelStyle=i||"";let s=10,a=e.width;e.width=(e.width??200)-10;let{shapeSvg:l,bbox:c,label:h}=await K(t,e,Y(e)),u=e.padding||10,f="",p;"ticket"in e&&e.ticket&&r?.kanban?.ticketBaseUrl&&(f=r?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),p=l.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",f).attr("target","_blank"));let d={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1},g,x;p?{label:g,bbox:x}=await gu(p,"ticket"in e&&e.ticket||"",d):{label:g,bbox:x}=await gu(l,"ticket"in e&&e.ticket||"",d);let{label:y,bbox:b}=await gu(l,"assigned"in e&&e.assigned||"",d);e.width=a;let C=10,k=e?.width||0,T=Math.max(x.height,b.height)/2,v=Math.max(c.height+C*2,e?.height||0)+T,D=-k/2,B=-v/2;h.attr("transform","translate("+(u-k/2)+", "+(-T-c.height/2)+")"),g.attr("transform","translate("+(u-k/2)+", "+(-T+c.height/2)+")"),y.attr("transform","translate("+(u+k/2-b.width-2*s)+", "+(-T+c.height/2)+")");let R,{rx:P,ry:U}=e,{cssStyles:N}=e;if(e.look==="handDrawn"){let O=W.svg(l),A=H(e,{}),M=P||U?O.path(gr(D,B,k,v,P||0),A):O.rectangle(D,B,k,v,A);R=l.insert(()=>M,":first-child"),R.attr("class","basic label-container").attr("style",N||null)}else{R=l.insert("rect",":first-child"),R.attr("class","basic label-container __APA__").attr("style",o).attr("rx",P??5).attr("ry",U??5).attr("x",D).attr("y",B).attr("width",k).attr("height",v);let O="priority"in e&&e.priority;if(O){let A=l.append("line"),M=D+2,z=B+Math.floor((P??0)/2),F=B+v-Math.floor((P??0)/2);A.attr("x1",M).attr("y1",z).attr("x2",M).attr("y2",F).attr("stroke-width","4").attr("stroke",Pz(O))}}return j(e,R),e.height=v,e.intersect=function(O){return $.rect(e,O)},l}var Pz,uA=m(()=>{"use strict";ot();ht();On();at();pt();Pz=n(t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");n(hA,"kanbanItem")});async function fA(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s,halfPadding:a,label:l}=await K(t,e,Y(e)),c=s.width+10*a,h=s.height+8*a,u=.15*c,{cssStyles:f}=e,p=s.width+20,d=s.height+20,g=Math.max(c,p),x=Math.max(h,d);l.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`);let y,b=`M0 0 a${u},${u} 1 0,0 ${g*.25},${-1*x*.1} a${u},${u} 1 0,0 ${g*.25},0 a${u},${u} 1 0,0 ${g*.25},0 a${u},${u} 1 0,0 ${g*.25},${x*.1} a${u},${u} 1 0,0 ${g*.15},${x*.33} a${u*.8},${u*.8} 1 0,0 0,${x*.34} a${u},${u} 1 0,0 ${-1*g*.15},${x*.33} a${u},${u} 1 0,0 ${-1*g*.25},${x*.15} a${u},${u} 1 0,0 ${-1*g*.25},0 a${u},${u} 1 0,0 ${-1*g*.25},0 a${u},${u} 1 0,0 ${-1*g*.25},${-1*x*.15} a${u},${u} 1 0,0 ${-1*g*.1},${-1*x*.33} a${u*.8},${u*.8} 1 0,0 0,${-1*x*.34} a${u},${u} 1 0,0 ${g*.1},${-1*x*.33} H0 V0 Z`;if(e.look==="handDrawn"){let C=W.svg(o),k=H(e,{}),T=C.path(b,k);y=o.insert(()=>T,":first-child"),y.attr("class","basic label-container").attr("style",Zt(f))}else y=o.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",b);return y.attr("transform",`translate(${-g/2}, ${-x/2})`),j(e,y),e.calcIntersect=function(C,k){return $.rect(C,k)},e.intersect=function(C){return S.info("Bang intersect",e,C),$.rect(e,C)},o}var pA=m(()=>{"use strict";vt();ot();ht();at();pt();re();n(fA,"bang")});async function dA(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s,halfPadding:a,label:l}=await K(t,e,Y(e)),c=s.width+2*a,h=s.height+2*a,u=.15*c,f=.25*c,p=.35*c,d=.2*c,{cssStyles:g}=e,x,y=`M0 0 a${u},${u} 0 0,1 ${c*.25},${-1*c*.1} a${p},${p} 1 0,1 ${c*.4},${-1*c*.1} a${f},${f} 1 0,1 ${c*.35},${c*.2} a${u},${u} 1 0,1 ${c*.15},${h*.35} a${d},${d} 1 0,1 ${-1*c*.15},${h*.65} a${f},${u} 1 0,1 ${-1*c*.25},${c*.15} a${p},${p} 1 0,1 ${-1*c*.5},0 a${u},${u} 1 0,1 ${-1*c*.25},${-1*c*.15} a${u},${u} 1 0,1 ${-1*c*.1},${-1*h*.35} a${d},${d} 1 0,1 ${c*.1},${-1*h*.65} H0 V0 Z`;if(e.look==="handDrawn"){let b=W.svg(o),C=H(e,{}),k=b.path(y,C);x=o.insert(()=>k,":first-child"),x.attr("class","basic label-container").attr("style",Zt(g))}else x=o.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",y);return l.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`),x.attr("transform",`translate(${-c/2}, ${-h/2})`),j(e,x),e.calcIntersect=function(b,C){return $.rect(b,C)},e.intersect=function(b){return S.info("Cloud intersect",e,b),$.rect(e,b)},o}var mA=m(()=>{"use strict";pt();vt();re();ht();at();ot();n(dA,"cloud")});async function gA(t,e){let{labelStyles:r,nodeStyles:i}=G(e);e.labelStyle=r;let{shapeSvg:o,bbox:s,halfPadding:a,label:l}=await K(t,e,Y(e)),c=s.width+8*a,h=s.height+2*a,u=5,f=` M${-c/2} ${h/2-u} v${-h+2*u} q0,-${u} ${u},-${u} h${c-2*u} q${u},0 ${u},${u} v${h-2*u} q0,${u} -${u},${u} h${-c+2*u} q-${u},0 -${u},-${u} Z `,p=o.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+e.type).attr("style",i).attr("d",f);return o.append("line").attr("class","node-line-").attr("x1",-c/2).attr("y1",h/2).attr("x2",c/2).attr("y2",h/2),l.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`),o.append(()=>l.node()),j(e,p),e.calcIntersect=function(d,g){return $.rect(d,g)},e.intersect=function(d){return $.rect(e,d)},o}var xA=m(()=>{"use strict";ht();at();ot();n(gA,"defaultMindmapNode")});async function yA(t,e){let r={padding:e.padding??0};return Eu(t,e,r)}var bA=m(()=>{"use strict";R0();n(yA,"mindmapCircle")});function CA(t){return t in $0}var $z,zz,$0,z0=m(()=>{"use strict";eT();oT();sT();lT();R0();hT();fT();dT();gT();yT();CT();_T();kT();TT();AT();BT();DT();OT();IT();PT();zT();GT();HT();VT();YT();KT();QT();tE();rE();oE();sE();lE();hE();fE();dE();gE();yE();CE();_E();kE();TE();AE();BE();DE();OE();IE();PE();zE();GE();HE();VE();YE();KE();QE();tA();rA();iA();aA();cA();uA();pA();mA();xA();bA();$z=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:vE},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:bE},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:EE},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:NE},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:bT},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:Eu},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:fA},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:dA},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:pE},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:FT},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:JT},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:ZT},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:qE},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:UT},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:ST},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:jE},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:nT},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:wE},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:FE},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:LE},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:MT},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:NT},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:uT},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:pT},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:mT},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:eE},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:ZE},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:LT},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:WE},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:iE},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:xT},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:wT},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:XE},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:eA},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:vT},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:UE},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:ET},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:SE},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:cE},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:aE},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:iT},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:cT},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:$E},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:RE},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:JE},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:mE},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:nE}],zz=n(()=>{let e=[...Object.entries({state:ME,choice:aT,note:uE,rectWithTitle:xE,labelRect:XT,iconSquare:WT,iconCircle:$T,icon:RT,iconRounded:jT,imageSquare:qT,anchor:tT,kanbanItem:hA,mindmapCircle:yA,defaultMindmapNode:gA,classBox:sA,erBox:P0,requirementBox:lA}),...$z.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(o=>[o,r.handler]))];return Object.fromEntries(e)},"generateShapeMap"),$0=zz();n(CA,"isValidShape")});var jz,Lu,wA=m(()=>{"use strict";je();Mg();Me();vt();z0();re();Ne();Qp();jz="flowchart-",Lu=class{constructor(){this.vertexCounter=0;this.config=_t();this.vertices=new Map;this.edges=[];this.classes=new Map;this.subGraphs=[];this.subGraphLookup=new Map;this.tooltips=new Map;this.subCount=0;this.firstGraphFlag=!0;this.secCount=-1;this.posCrossRef=[];this.funs=[];this.setAccTitle=qp;this.setAccDescription=Up;this.setDiagramTitle=Xp;this.getAccTitle=Vp;this.getAccDescription=Yp;this.getDiagramTitle=Kp;this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{n(this,"FlowDB")}sanitizeText(e){return Ir.sanitizeText(e,this.config)}lookUpDomId(e){for(let r of this.vertices.values())if(r.id===e)return r.domId;return e}addVertex(e,r,i,o,s,a,l={},c){if(!e||e.trim().length===0)return;let h;if(c!==void 0){let d;c.includes(` `)?d=c+` `:d=`{ `+c+` }`,h=Gh(d,{schema:jh})}let u=this.edges.find(d=>d.id===e);if(u){let d=h;d?.animate!==void 0&&(u.animate=d.animate),d?.animation!==void 0&&(u.animation=d.animation),d?.curve!==void 0&&(u.interpolate=d.curve);return}let f,p=this.vertices.get(e);if(p===void 0&&(p={id:e,labelType:"text",domId:jz+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,p)),this.vertexCounter++,r!==void 0?(this.config=_t(),f=this.sanitizeText(r.text.trim()),p.labelType=r.type,f.startsWith('"')&&f.endsWith('"')&&(f=f.substring(1,f.length-1)),p.text=f):p.text===void 0&&(p.text=e),i!==void 0&&(p.type=i),o?.forEach(d=>{p.styles.push(d)}),s?.forEach(d=>{p.classes.push(d)}),a!==void 0&&(p.dir=a),p.props===void 0?p.props=l:l!==void 0&&Object.assign(p.props,l),h!==void 0){if(h.shape){if(h.shape!==h.shape.toLowerCase()||h.shape.includes("_"))throw new Error(`No such shape: ${h.shape}. Shape names should be lowercase.`);if(!CA(h.shape))throw new Error(`No such shape: ${h.shape}.`);p.type=h?.shape}h?.label&&(p.text=h?.label),h?.icon&&(p.icon=h?.icon,!h.label?.trim()&&p.text===e&&(p.text="")),h?.form&&(p.form=h?.form),h?.pos&&(p.pos=h?.pos),h?.img&&(p.img=h?.img,!h.label?.trim()&&p.text===e&&(p.text="")),h?.constraint&&(p.constraint=h.constraint),h.w&&(p.assetWidth=Number(h.w)),h.h&&(p.assetHeight=Number(h.h))}}addSingleLink(e,r,i,o){let l={start:e,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};S.info("abc78 Got edge...",l);let c=i.text;if(c!==void 0&&(l.text=this.sanitizeText(c.text.trim()),l.text.startsWith('"')&&l.text.endsWith('"')&&(l.text=l.text.substring(1,l.text.length-1)),l.labelType=c.type),i!==void 0&&(l.type=i.type,l.stroke=i.stroke,l.length=i.length>10?10:i.length),o&&!this.edges.some(h=>h.id===o))l.id=o,l.isUserDefinedId=!0;else{let h=this.edges.filter(u=>u.start===l.start&&u.end===l.end);h.length===0?l.id=mu(l.start,l.end,{counter:0,prefix:"L"}):l.id=mu(l.start,l.end,{counter:h.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))S.info("Pushing edge..."),this.edges.push(l);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.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.`)}isLinkData(e){return e!==null&&typeof e=="object"&&"id"in e&&typeof e.id=="string"}addLink(e,r,i){let o=this.isLinkData(i)?i.id.replace("@",""):void 0;S.info("addLink",e,r,o);for(let s of e)for(let a of r){let l=s===e[e.length-1],c=a===r[0];l&&c?this.addSingleLink(s,a,i,o):this.addSingleLink(s,a,i,void 0)}}updateLinkInterpolate(e,r){e.forEach(i=>{i==="default"?this.edges.defaultInterpolate=r:this.edges[i].interpolate=r})}updateLink(e,r){e.forEach(i=>{if(typeof i=="number"&&i>=this.edges.length)throw new Error(`The index ${i} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);i==="default"?this.edges.defaultStyle=r:(this.edges[i].style=r,(this.edges[i]?.style?.length??0)>0&&!this.edges[i]?.style?.some(o=>o?.startsWith("fill"))&&this.edges[i]?.style?.push("fill:none"))})}addClass(e,r){let i=r.join().replace(/\\,/g,"\xA7\xA7\xA7").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach(o=>{let s=this.classes.get(o);s===void 0&&(s={id:o,styles:[],textStyles:[]},this.classes.set(o,s)),i?.forEach(a=>{if(/color/.exec(a)){let l=a.replace("fill","bgFill");s.textStyles.push(l)}s.styles.push(a)})})}setDirection(e){this.direction=e.trim(),/.*/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(e,r){for(let i of e.split(",")){let o=this.vertices.get(i);o&&o.classes.push(r);let s=this.edges.find(l=>l.id===i);s&&s.classes.push(r);let a=this.subGraphLookup.get(i);a&&a.classes.push(r)}}setTooltip(e,r){if(r!==void 0){r=this.sanitizeText(r);for(let i of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(i):i,r)}}setClickFun(e,r,i){let o=this.lookUpDomId(e);if(_t().securityLevel!=="loose"||r===void 0)return;let s=[];if(typeof i=="string"){s=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let l=0;l{let l=document.querySelector(`[id="${o}"]`);l!==null&&l.addEventListener("click",()=>{De.runFunc(r,...s)},!1)}))}setLink(e,r,i){e.split(",").forEach(o=>{let s=this.vertices.get(o);s!==void 0&&(s.link=De.formatUrl(r,this.config),s.linkTarget=i)}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,r,i){e.split(",").forEach(o=>{this.setClickFun(o,r,i)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach(r=>{r(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let r=ft(".mermaidTooltip");(r._groups||r)[0][0]===null&&(r=ft("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),ft(e).select("svg").selectAll("g.node").on("mouseover",s=>{let a=ft(s.currentTarget);if(a.attr("title")===null)return;let c=s.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(a.attr("title")).style("left",window.scrollX+c.left+(c.right-c.left)/2+"px").style("top",window.scrollY+c.bottom+"px"),r.html(r.html().replace(/<br\/>/g,"
    ")),a.classed("hover",!0)}).on("mouseout",s=>{r.transition().duration(500).style("opacity",0),ft(s.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=_t(),Hp()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,r,i){let o=e.text.trim(),s=i.text;e===i&&/\s/.exec(i.text)&&(o=void 0);let l=n(p=>{let d={boolean:{},number:{},string:{}},g=[],x;return{nodeList:p.filter(function(b){let C=typeof b;return b.stmt&&b.stmt==="dir"?(x=b.value,!1):b.trim()===""?!1:C in d?d[C].hasOwnProperty(b)?!1:d[C][b]=!0:g.includes(b)?!1:g.push(b)}),dir:x}},"uniq")(r.flat()),c=l.nodeList,h=l.dir,u=_t().flowchart??{};if(h=h??(u.inheritDir?this.getDirection()??_t().direction??void 0:void 0),this.version==="gen-1")for(let p=0;p2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===e)return{result:!0,count:0};let o=0,s=1;for(;o=0){let l=this.indexNodes2(e,a);if(l.result)return{result:!0,count:s+l.count};s=s+l.count}o=o+1}return{result:!1,count:s}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(e){let r=e.trim(),i="arrow_open";switch(r[0]){case"<":i="arrow_point",r=r.slice(1);break;case"x":i="arrow_cross",r=r.slice(1);break;case"o":i="arrow_circle",r=r.slice(1);break}let o="normal";return r.includes("=")&&(o="thick"),r.includes(".")&&(o="dotted"),{type:i,stroke:o}}countChar(e,r){let i=r.length,o=0;for(let s=0;s":o="arrow_point",r.startsWith("<")&&(o="double_"+o,i=i.slice(1));break;case"o":o="arrow_circle",r.startsWith("o")&&(o="double_"+o,i=i.slice(1));break}let s="normal",a=i.length-1;i.startsWith("=")&&(s="thick"),i.startsWith("~")&&(s="invisible");let l=this.countChar(".",i);return l&&(s="dotted",a=l),{type:o,stroke:s,length:a}}destructLink(e,r){let i=this.destructEndLink(e),o;if(r){if(o=this.destructStartLink(r),o.stroke!==i.stroke)return{type:"INVALID",stroke:"INVALID"};if(o.type==="arrow_open")o.type=i.type;else{if(o.type!==i.type)return{type:"INVALID",stroke:"INVALID"};o.type="double_"+o.type}return o.type==="double_arrow"&&(o.type="double_arrow_point"),o.length=i.length,o}return i}exists(e,r){for(let i of e)if(i.nodes.includes(r))return!0;return!1}makeUniq(e,r){let i=[];return e.nodes.forEach((o,s)=>{this.exists(r,o)||i.push(e.nodes[s])}),{nodes:i}}getTypeFromVertex(e){if(e.img)return"imageSquare";if(e.icon)return e.form==="circle"?"iconCircle":e.form==="square"?"iconSquare":e.form==="rounded"?"iconRounded":"icon";switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,r){return e.find(i=>i.id===r)}destructEdgeType(e){let r="none",i="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":i=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=e.replace("double_",""),i=r;break}return{arrowTypeStart:r,arrowTypeEnd:i}}addNodeFromVertex(e,r,i,o,s,a){let l=i.get(e.id),c=o.get(e.id)??!1,h=this.findNode(r,e.id);if(h)h.cssStyles=e.styles,h.cssCompiledStyles=this.getCompiledStyles(e.classes),h.cssClasses=e.classes.join(" ");else{let u={id:e.id,label:e.text,labelStyle:"",parentId:l,padding:s.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:a,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};c?r.push({...u,isGroup:!0,shape:"rect"}):r.push({...u,isGroup:!1,shape:this.getTypeFromVertex(e)})}}getCompiledStyles(e){let r=[];for(let i of e){let o=this.classes.get(i);o?.styles&&(r=[...r,...o.styles??[]].map(s=>s.trim())),o?.textStyles&&(r=[...r,...o.textStyles??[]].map(s=>s.trim()))}return r}getData(){let e=_t(),r=[],i=[],o=this.getSubGraphs(),s=new Map,a=new Map;for(let h=o.length-1;h>=0;h--){let u=o[h];u.nodes.length>0&&a.set(u.id,!0);for(let f of u.nodes)s.set(f,u.id)}for(let h=o.length-1;h>=0;h--){let u=o[h];r.push({id:u.id,label:u.title,labelStyle:"",parentId:s.get(u.id),padding:8,cssCompiledStyles:this.getCompiledStyles(u.classes),cssClasses:u.classes.join(" "),shape:"rect",dir:u.dir,isGroup:!0,look:e.look})}this.getVertices().forEach(h=>{this.addNodeFromVertex(h,r,s,a,e,e.look||"classic")});let c=this.getEdges();return c.forEach((h,u)=>{let{arrowTypeStart:f,arrowTypeEnd:p}=this.destructEdgeType(h.type),d=[...c.defaultStyle??[]];h.style&&d.push(...h.style);let g={id:mu(h.start,h.end,{counter:u,prefix:"L"},h.id),isUserDefinedId:h.isUserDefinedId,start:h.start,end:h.end,type:h.type??"normal",label:h.text,labelpos:"c",thickness:h.stroke,minlen:h.length,classes:h?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:h?.stroke==="invisible"||h?.type==="arrow_open"?"none":f,arrowTypeEnd:h?.stroke==="invisible"||h?.type==="arrow_open"?"none":p,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(h.classes),labelStyle:d,style:d,pattern:h.stroke,look:e.look,animate:h.animate,animation:h.animation,curve:h.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};i.push(g)}),{nodes:r,edges:i,other:{},config:e}}defaultConfig(){return ab.flowchart}}});var _A,SA=m(()=>{"use strict";je();_A=n((t,e)=>{let r;return e==="sandbox"&&(r=ft("#i"+t)),(e==="sandbox"?ft(r.nodes()[0].contentDocument.body):ft("body")).select(`[id="${t}"]`)},"getDiagramElement")});var In,Du=m(()=>{"use strict";In=n(({flowchart:t})=>{let e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0,i=e+r;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins")});var kA,Gz,Wz,Hz,qz,Vz,Uz,vA,Fu,TA,j0=m(()=>{"use strict";Me();Ne();vt();Du();je();pt();Ln();y0();Au();On();at();kA=n(async(t,e)=>{S.info("Creating subgraph rect for ",e.id,e);let r=_t(),{themeVariables:i,handDrawnSeed:o}=r,{clusterBkg:s,clusterBorder:a}=i,{labelStyles:l,nodeStyles:c,borderStyles:h,backgroundStyles:u}=G(e),f=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),p=Vt(r.flowchart.htmlLabels),d=f.insert("g").attr("class","cluster-label "),g=await pr(d,e.label,{style:e.labelStyle,useHtmlLabels:p,isNode:!0}),x=g.getBBox();if(Vt(r.flowchart.htmlLabels)){let B=g.children[0],R=ft(g);x=B.getBoundingClientRect(),R.attr("width",x.width),R.attr("height",x.height)}let y=e.width<=x.width+e.padding?x.width+e.padding:e.width;e.width<=x.width+e.padding?e.diff=(y-e.width)/2-e.padding:e.diff=-e.padding;let b=e.height,C=e.x-y/2,k=e.y-b/2;S.trace("Data ",e,JSON.stringify(e));let T;if(e.look==="handDrawn"){let B=W.svg(f),R=H(e,{roughness:.7,fill:s,stroke:a,fillWeight:3,seed:o}),P=B.path(gr(C,k,y,b,0),R);T=f.insert(()=>(S.debug("Rough node insert CXC",P),P),":first-child"),T.select("path:nth-child(2)").attr("style",h.join(";")),T.select("path").attr("style",u.join(";").replace("fill","stroke"))}else T=f.insert("rect",":first-child"),T.attr("style",c).attr("rx",e.rx).attr("ry",e.ry).attr("x",C).attr("y",k).attr("width",y).attr("height",b);let{subGraphTitleTopMargin:v}=In(r);if(d.attr("transform",`translate(${e.x-x.width/2}, ${e.y-e.height/2+v})`),l){let B=d.select("span");B&&B.attr("style",l)}let D=T.node().getBBox();return e.offsetX=0,e.width=D.width,e.height=D.height,e.offsetY=x.height-e.padding/2,e.intersect=function(B){return $o(e,B)},{cluster:f,labelBBox:x}},"rect"),Gz=n((t,e)=>{let r=t.insert("g").attr("class","note-cluster").attr("id",e.id),i=r.insert("rect",":first-child"),o=0*e.padding,s=o/2;i.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-s).attr("y",e.y-e.height/2-s).attr("width",e.width+o).attr("height",e.height+o).attr("fill","none");let a=i.node().getBBox();return e.width=a.width,e.height=a.height,e.intersect=function(l){return $o(e,l)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),Wz=n(async(t,e)=>{let r=_t(),{themeVariables:i,handDrawnSeed:o}=r,{altBackground:s,compositeBackground:a,compositeTitleBackground:l,nodeBorder:c}=i,h=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-id",e.id).attr("data-look",e.look),u=h.insert("g",":first-child"),f=h.insert("g").attr("class","cluster-label"),p=h.append("rect"),d=f.node().appendChild(await yi(e.label,e.labelStyle,void 0,!0)),g=d.getBBox();if(Vt(r.flowchart.htmlLabels)){let P=d.children[0],U=ft(d);g=P.getBoundingClientRect(),U.attr("width",g.width),U.attr("height",g.height)}let x=0*e.padding,y=x/2,b=(e.width<=g.width+e.padding?g.width+e.padding:e.width)+x;e.width<=g.width+e.padding?e.diff=(b-e.width)/2-e.padding:e.diff=-e.padding;let C=e.height+x,k=e.height+x-g.height-6,T=e.x-b/2,v=e.y-C/2;e.width=b;let D=e.y-e.height/2-y+g.height+2,B;if(e.look==="handDrawn"){let P=e.cssClasses.includes("statediagram-cluster-alt"),U=W.svg(h),N=e.rx||e.ry?U.path(gr(T,v,b,C,10),{roughness:.7,fill:l,fillStyle:"solid",stroke:c,seed:o}):U.rectangle(T,v,b,C,{seed:o});B=h.insert(()=>N,":first-child");let O=U.rectangle(T,D,b,k,{fill:P?s:a,fillStyle:P?"hachure":"solid",stroke:c,seed:o});B=h.insert(()=>N,":first-child"),p=h.insert(()=>O)}else B=u.insert("rect",":first-child"),B.attr("class","outer").attr("x",T).attr("y",v).attr("width",b).attr("height",C).attr("data-look",e.look),p.attr("class","inner").attr("x",T).attr("y",D).attr("width",b).attr("height",k);f.attr("transform",`translate(${e.x-g.width/2}, ${v+1-(Vt(r.flowchart.htmlLabels)?0:3)})`);let R=B.node().getBBox();return e.height=R.height,e.offsetX=0,e.offsetY=g.height-e.padding/2,e.labelBBox=g,e.intersect=function(P){return $o(e,P)},{cluster:h,labelBBox:g}},"roundedWithTitle"),Hz=n(async(t,e)=>{S.info("Creating subgraph rect for ",e.id,e);let r=_t(),{themeVariables:i,handDrawnSeed:o}=r,{clusterBkg:s,clusterBorder:a}=i,{labelStyles:l,nodeStyles:c,borderStyles:h,backgroundStyles:u}=G(e),f=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),p=Vt(r.flowchart.htmlLabels),d=f.insert("g").attr("class","cluster-label "),g=await pr(d,e.label,{style:e.labelStyle,useHtmlLabels:p,isNode:!0,width:e.width}),x=g.getBBox();if(Vt(r.flowchart.htmlLabels)){let B=g.children[0],R=ft(g);x=B.getBoundingClientRect(),R.attr("width",x.width),R.attr("height",x.height)}let y=e.width<=x.width+e.padding?x.width+e.padding:e.width;e.width<=x.width+e.padding?e.diff=(y-e.width)/2-e.padding:e.diff=-e.padding;let b=e.height,C=e.x-y/2,k=e.y-b/2;S.trace("Data ",e,JSON.stringify(e));let T;if(e.look==="handDrawn"){let B=W.svg(f),R=H(e,{roughness:.7,fill:s,stroke:a,fillWeight:4,seed:o}),P=B.path(gr(C,k,y,b,e.rx),R);T=f.insert(()=>(S.debug("Rough node insert CXC",P),P),":first-child"),T.select("path:nth-child(2)").attr("style",h.join(";")),T.select("path").attr("style",u.join(";").replace("fill","stroke"))}else T=f.insert("rect",":first-child"),T.attr("style",c).attr("rx",e.rx).attr("ry",e.ry).attr("x",C).attr("y",k).attr("width",y).attr("height",b);let{subGraphTitleTopMargin:v}=In(r);if(d.attr("transform",`translate(${e.x-x.width/2}, ${e.y-e.height/2+v})`),l){let B=d.select("span");B&&B.attr("style",l)}let D=T.node().getBBox();return e.offsetX=0,e.width=D.width,e.height=D.height,e.offsetY=x.height-e.padding/2,e.intersect=function(B){return $o(e,B)},{cluster:f,labelBBox:x}},"kanbanSection"),qz=n((t,e)=>{let r=_t(),{themeVariables:i,handDrawnSeed:o}=r,{nodeBorder:s}=i,a=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-look",e.look),l=a.insert("g",":first-child"),c=0*e.padding,h=e.width+c;e.diff=-e.padding;let u=e.height+c,f=e.x-h/2,p=e.y-u/2;e.width=h;let d;if(e.look==="handDrawn"){let y=W.svg(a).rectangle(f,p,h,u,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:s,seed:o});d=a.insert(()=>y,":first-child")}else d=l.insert("rect",":first-child"),d.attr("class","divider").attr("x",f).attr("y",p).attr("width",h).attr("height",u).attr("data-look",e.look);let g=d.node().getBBox();return e.height=g.height,e.offsetX=0,e.offsetY=0,e.intersect=function(x){return $o(e,x)},{cluster:a,labelBBox:{}}},"divider"),Vz=kA,Uz={rect:kA,squareRect:Vz,roundedWithTitle:Wz,noteGroup:Gz,divider:qz,kanbanSection:Hz},vA=new Map,Fu=n(async(t,e)=>{let r=e.shape||"rect",i=await Uz[r](t,e);return vA.set(e.id,i),i},"insertCluster"),TA=n(()=>{vA=new Map},"clear")});function Ou(t,e){if(t===void 0||e===void 0)return{angle:0,deltaX:0,deltaY:0};t=ue(t),e=ue(e);let[r,i]=[t.x,t.y],[o,s]=[e.x,e.y],a=o-r,l=s-i;return{angle:Math.atan(l/a),deltaX:a,deltaY:l}}var Ge,G0,ue,EA,AA=m(()=>{"use strict";Ge={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4},G0={arrow_point:9,arrow_cross:12.5,arrow_circle:12.5};n(Ou,"calculateDeltaAndAngle");ue=n(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),EA=n(t=>({x:n(function(e,r,i){let o=0,s=ue(i[0]).x=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(Ge,t.arrowTypeEnd)){let{angle:d,deltaX:g}=Ou(i[i.length-1],i[i.length-2]);o=Ge[t.arrowTypeEnd]*Math.cos(d)*(g>=0?1:-1)}let a=Math.abs(ue(e).x-ue(i[i.length-1]).x),l=Math.abs(ue(e).y-ue(i[i.length-1]).y),c=Math.abs(ue(e).x-ue(i[0]).x),h=Math.abs(ue(e).y-ue(i[0]).y),u=Ge[t.arrowTypeStart],f=Ge[t.arrowTypeEnd],p=1;if(a0&&l0&&h=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(Ge,t.arrowTypeEnd)){let{angle:d,deltaY:g}=Ou(i[i.length-1],i[i.length-2]);o=Ge[t.arrowTypeEnd]*Math.abs(Math.sin(d))*(g>=0?1:-1)}let a=Math.abs(ue(e).y-ue(i[i.length-1]).y),l=Math.abs(ue(e).x-ue(i[i.length-1]).x),c=Math.abs(ue(e).y-ue(i[0]).y),h=Math.abs(ue(e).x-ue(i[0]).x),u=Ge[t.arrowTypeStart],f=Ge[t.arrowTypeEnd],p=1;if(a0&&l0&&h{"use strict";vt();BA=n((t,e,r,i,o,s)=>{e.arrowTypeStart&&MA(t,"start",e.arrowTypeStart,r,i,o,s),e.arrowTypeEnd&&MA(t,"end",e.arrowTypeEnd,r,i,o,s)},"addEdgeMarkers"),Yz={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},MA=n((t,e,r,i,o,s,a)=>{let l=Yz[r];if(!l){S.warn(`Unknown arrow type: ${r}`);return}let c=l.type,u=`${o}_${s}-${c}${e==="start"?"Start":"End"}`;if(a&&a.trim()!==""){let f=a.replace(/[^\dA-Za-z]/g,"_"),p=`${u}_${f}`;if(!document.getElementById(p)){let d=document.getElementById(u);if(d){let g=d.cloneNode(!0);g.id=p,g.querySelectorAll("path, circle, line").forEach(y=>{y.setAttribute("stroke",a),l.fill&&y.setAttribute("fill",a)}),d.parentNode?.appendChild(g)}}t.attr(`marker-${e}`,`url(${i}#${p})`)}else t.attr(`marker-${e}`,`url(${i}#${u})`)},"addEdgeMarker")});function Iu(t,e){_t().flowchart.htmlLabels&&t&&(t.style.width=e.length*9+"px",t.style.height="12px")}function Zz(t){let e=[],r=[];for(let i=1;i5&&Math.abs(s.y-o.y)>5||o.y===s.y&&s.x===a.x&&Math.abs(s.x-o.x)>5&&Math.abs(s.y-a.y)>5)&&(e.push(s),r.push(i))}return{cornerPoints:e,cornerPointPositions:r}}function tj(t,e){if(t.length<2)return"";let r="",i=t.length,o=1e-5;for(let s=0;s({...o}));if(t.length>=2&&Ge[e.arrowTypeStart]){let o=Ge[e.arrowTypeStart],s=t[0],a=t[1],{angle:l}=OA(s,a),c=o*Math.cos(l),h=o*Math.sin(l);r[0].x=s.x+c,r[0].y=s.y+h}let i=t.length;if(i>=2&&Ge[e.arrowTypeEnd]){let o=Ge[e.arrowTypeEnd],s=t[i-1],a=t[i-2],{angle:l}=OA(a,s),c=o*Math.cos(l),h=o*Math.sin(l);r[i-1].x=s.x-c,r[i-1].y=s.y-h}return r}var Ru,We,NA,Nu,Pu,$u,Xz,Kz,DA,FA,Qz,Jz,zu,W0=m(()=>{"use strict";Me();Ne();vt();Ln();re();AA();Du();je();pt();Au();LA();at();Ru=new Map,We=new Map,NA=n(()=>{Ru.clear(),We.clear()},"clear"),Nu=n(t=>t?t.reduce((r,i)=>r+";"+i,""):"","getLabelStyles"),Pu=n(async(t,e)=>{let r=Vt(_t().flowchart.htmlLabels),{labelStyles:i}=G(e);e.labelStyle=i;let o=await pr(t,e.label,{style:e.labelStyle,useHtmlLabels:r,addSvgBackground:!0,isNode:!1});S.info("abc82",e,e.labelType);let s=t.insert("g").attr("class","edgeLabel"),a=s.insert("g").attr("class","label").attr("data-id",e.id);a.node().appendChild(o);let l=o.getBBox();if(r){let h=o.children[0],u=ft(o);l=h.getBoundingClientRect(),u.attr("width",l.width),u.attr("height",l.height)}a.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),Ru.set(e.id,s),e.width=l.width,e.height=l.height;let c;if(e.startLabelLeft){let h=await yi(e.startLabelLeft,Nu(e.labelStyle)),u=t.insert("g").attr("class","edgeTerminals"),f=u.insert("g").attr("class","inner");c=f.node().appendChild(h);let p=h.getBBox();f.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),We.get(e.id)||We.set(e.id,{}),We.get(e.id).startLeft=u,Iu(c,e.startLabelLeft)}if(e.startLabelRight){let h=await yi(e.startLabelRight,Nu(e.labelStyle)),u=t.insert("g").attr("class","edgeTerminals"),f=u.insert("g").attr("class","inner");c=u.node().appendChild(h),f.node().appendChild(h);let p=h.getBBox();f.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),We.get(e.id)||We.set(e.id,{}),We.get(e.id).startRight=u,Iu(c,e.startLabelRight)}if(e.endLabelLeft){let h=await yi(e.endLabelLeft,Nu(e.labelStyle)),u=t.insert("g").attr("class","edgeTerminals"),f=u.insert("g").attr("class","inner");c=f.node().appendChild(h);let p=h.getBBox();f.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),u.node().appendChild(h),We.get(e.id)||We.set(e.id,{}),We.get(e.id).endLeft=u,Iu(c,e.endLabelLeft)}if(e.endLabelRight){let h=await yi(e.endLabelRight,Nu(e.labelStyle)),u=t.insert("g").attr("class","edgeTerminals"),f=u.insert("g").attr("class","inner");c=f.node().appendChild(h);let p=h.getBBox();f.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),u.node().appendChild(h),We.get(e.id)||We.set(e.id,{}),We.get(e.id).endRight=u,Iu(c,e.endLabelRight)}return o},"insertEdgeLabel");n(Iu,"setTerminalWidth");$u=n((t,e)=>{S.debug("Moving label abc88 ",t.id,t.label,Ru.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath,i=_t(),{subGraphTitleTotalMargin:o}=In(i);if(t.label){let s=Ru.get(t.id),a=t.x,l=t.y;if(r){let c=De.calcLabelPosition(r);S.debug("Moving label "+t.label+" from (",a,",",l,") to (",c.x,",",c.y,") abc88"),e.updatedPath&&(a=c.x,l=c.y)}s.attr("transform",`translate(${a}, ${l+o/2})`)}if(t.startLabelLeft){let s=We.get(t.id).startLeft,a=t.x,l=t.y;if(r){let c=De.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);a=c.x,l=c.y}s.attr("transform",`translate(${a}, ${l})`)}if(t.startLabelRight){let s=We.get(t.id).startRight,a=t.x,l=t.y;if(r){let c=De.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);a=c.x,l=c.y}s.attr("transform",`translate(${a}, ${l})`)}if(t.endLabelLeft){let s=We.get(t.id).endLeft,a=t.x,l=t.y;if(r){let c=De.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);a=c.x,l=c.y}s.attr("transform",`translate(${a}, ${l})`)}if(t.endLabelRight){let s=We.get(t.id).endRight,a=t.x,l=t.y;if(r){let c=De.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);a=c.x,l=c.y}s.attr("transform",`translate(${a}, ${l})`)}},"positionEdgeLabel"),Xz=n((t,e)=>{let r=t.x,i=t.y,o=Math.abs(e.x-r),s=Math.abs(e.y-i),a=t.width/2,l=t.height/2;return o>=a||s>=l},"outsideNode"),Kz=n((t,e,r)=>{S.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(e)} insidePoint : ${JSON.stringify(r)} node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);let i=t.x,o=t.y,s=Math.abs(i-r.x),a=t.width/2,l=r.xMath.abs(i-e.x)*c){let f=r.y{S.warn("abc88 cutPathAtIntersect",t,e);let r=[],i=t[0],o=!1;return t.forEach(s=>{if(S.info("abc88 checking point",s,e),!Xz(e,s)&&!o){let a=Kz(e,i,s);S.debug("abc88 inside",s,i,a),S.debug("abc88 intersection",a,e);let l=!1;r.forEach(c=>{l=l||c.x===a.x&&c.y===a.y}),r.some(c=>c.x===a.x&&c.y===a.y)?S.warn("abc88 no intersect",a,r):r.push(a),o=!0}else S.warn("abc88 outside",s,i),i=s,o||r.push(s)}),S.debug("returning points",r),r},"cutPathAtIntersect");n(Zz,"extractCornerPoints");FA=n(function(t,e,r){let i=e.x-t.x,o=e.y-t.y,s=Math.sqrt(i*i+o*o),a=r/s;return{x:e.x-a*i,y:e.y-a*o}},"findAdjacentPoint"),Qz=n(function(t){let{cornerPointPositions:e}=Zz(t),r=[];for(let i=0;i10&&Math.abs(s.y-o.y)>=10){S.debug("Corner point fixing",Math.abs(s.x-o.x),Math.abs(s.y-o.y));let d=5;a.x===l.x?p={x:h<0?l.x-d+f:l.x+d-f,y:u<0?l.y-f:l.y+f}:p={x:h<0?l.x-f:l.x+f,y:u<0?l.y-d+f:l.y+d-f}}else S.debug("Corner point skipping fixing",Math.abs(s.x-o.x),Math.abs(s.y-o.y));r.push(p,c)}else r.push(t[i]);return r},"fixCorners"),Jz=n((t,e,r)=>{let i=t-e-r,o=2,s=2,a=o+s,l=Math.floor(i/a),c=Array(l).fill(`${o} ${s}`).join(" ");return`0 ${e} ${c} ${r}`},"generateDashArray"),zu=n(function(t,e,r,i,o,s,a,l=!1){let{handDrawnSeed:c}=_t(),h=e.points,u=!1,f=o;var p=s;let d=[];for(let M in e.cssCompiledStyles)b0(M)||d.push(e.cssCompiledStyles[M]);S.debug("UIO intersect check",e.points,p.x,f.x),p.intersect&&f.intersect&&!l&&(h=h.slice(1,e.points.length-1),h.unshift(f.intersect(h[0])),S.debug("Last point UIO",e.start,"-->",e.end,h[h.length-1],p,p.intersect(h[h.length-1])),h.push(p.intersect(h[h.length-1])));let g=btoa(JSON.stringify(h));e.toCluster&&(S.info("to cluster abc88",r.get(e.toCluster)),h=DA(e.points,r.get(e.toCluster).node),u=!0),e.fromCluster&&(S.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(h,null,2)),h=DA(h.reverse(),r.get(e.fromCluster).node).reverse(),u=!0);let x=h.filter(M=>!Number.isNaN(M.y));x=Qz(x);let y=bo;switch(y=Wi,e.curve){case"linear":y=Wi;break;case"basis":y=bo;break;case"cardinal":y=fl;break;case"bumpX":y=al;break;case"bumpY":y=ll;break;case"catmullRom":y=ml;break;case"monotoneX":y=gl;break;case"monotoneY":y=xl;break;case"natural":y=ys;break;case"step":y=bs;break;case"stepAfter":y=bl;break;case"stepBefore":y=yl;break;default:y=bo}let{x:b,y:C}=EA(e),k=kh().x(b).y(C).curve(y),T;switch(e.thickness){case"normal":T="edge-thickness-normal";break;case"thick":T="edge-thickness-thick";break;case"invisible":T="edge-thickness-invisible";break;default:T="edge-thickness-normal"}switch(e.pattern){case"solid":T+=" edge-pattern-solid";break;case"dotted":T+=" edge-pattern-dotted";break;case"dashed":T+=" edge-pattern-dashed";break;default:T+=" edge-pattern-solid"}let v,D=e.curve==="rounded"?tj(ej(x,e),5):k(x),B=Array.isArray(e.style)?e.style:[e.style],R=B.find(M=>M?.startsWith("stroke:")),P=!1;if(e.look==="handDrawn"){let M=W.svg(t);Object.assign([],x);let z=M.path(D,{roughness:.3,seed:c});T+=" transition",v=ft(z).select("path").attr("id",e.id).attr("class"," "+T+(e.classes?" "+e.classes:"")).attr("style",B?B.reduce((V,q)=>V+";"+q,""):"");let F=v.attr("d");v.attr("d",F),t.node().appendChild(v.node())}else{let M=d.join(";"),z=B?B.reduce((ut,ct)=>ut+ct+";",""):"",F="";e.animate&&(F=" edge-animation-fast"),e.animation&&(F=" edge-animation-"+e.animation);let V=(M?M+";"+z+";":z)+";"+(B?B.reduce((ut,ct)=>ut+";"+ct,""):"");v=t.append("path").attr("d",D).attr("id",e.id).attr("class"," "+T+(e.classes?" "+e.classes:"")+(F??"")).attr("style",V),R=V.match(/stroke:([^;]+)/)?.[1],P=e.animate===!0||!!e.animation||M.includes("animation");let q=v.node(),Q=typeof q.getTotalLength=="function"?q.getTotalLength():0,Ct=G0[e.arrowTypeStart]||0,lt=G0[e.arrowTypeEnd]||0;if(e.look==="neo"&&!P){let ct=`stroke-dasharray: ${e.pattern==="dotted"||e.pattern==="dashed"?Jz(Q,Ct,lt):`0 ${Ct} ${Q-Ct-lt} ${lt}`}; stroke-dashoffset: 0;`;v.attr("style",ct+v.attr("style"))}}v.attr("data-edge",!0),v.attr("data-et","edge"),v.attr("data-id",e.id),v.attr("data-points",g),e.showPoints&&x.forEach(M=>{t.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",M.x).attr("cy",M.y)});let U="";(_t().flowchart.arrowMarkerAbsolute||_t().state.arrowMarkerAbsolute)&&(U=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,U=U.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),S.info("arrowTypeStart",e.arrowTypeStart),S.info("arrowTypeEnd",e.arrowTypeEnd),BA(v,e,U,a,i,R);let N=Math.floor(h.length/2),O=h[N];De.isLabelCoordinateInPath(O,v.attr("d"))||(u=!0);let A={};return u&&(A.updatedPath=h),A.originalPath=e.points,A},"insertEdge");n(tj,"generateRoundedPath");n(OA,"calculateDeltaAndAngle");n(ej,"applyMarkerOffsetsToPoints")});var rj,ij,oj,nj,sj,aj,lj,cj,hj,uj,fj,pj,dj,mj,gj,xj,yj,ju,H0=m(()=>{"use strict";vt();rj=n((t,e,r,i)=>{e.forEach(o=>{yj[o](t,r,i)})},"insertMarkers"),ij=n((t,e,r)=>{S.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),oj=n((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),nj=n((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),sj=n((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),aj=n((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),lj=n((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),cj=n((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),hj=n((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),uj=n((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),fj=n((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),pj=n((t,e,r)=>{let i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");let o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),o.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),dj=n((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),mj=n((t,e,r)=>{let i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),o.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),gj=n((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0 L20,10 M20,10 L0,20`)},"requirement_arrow"),xj=n((t,e,r)=>{let i=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),yj={extension:ij,composition:oj,aggregation:nj,dependency:sj,lollipop:aj,point:lj,circle:cj,cross:hj,barb:uj,only_one:fj,zero_or_one:pj,one_or_more:dj,zero_or_more:mj,requirement_arrow:gj,requirement_contains:xj},ju=rj});async function Wu(t,e,r){let i,o;e.shape==="rect"&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");let s=e.shape?$0[e.shape]:void 0;if(!s)throw new Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let a;r.config.securityLevel==="sandbox"?a="_top":e.linkTarget&&(a=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",a??null),o=await s(i,e,r)}else o=await s(t,e,r),i=o;return e.tooltip&&o.attr("title",e.tooltip),Gu.set(e.id,i),e.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}var Gu,IA,RA,q0,V0=m(()=>{"use strict";vt();z0();Gu=new Map;n(Wu,"insertNode");IA=n((t,e)=>{Gu.set(e.id,t)},"setNodeElem"),RA=n(()=>{Gu.clear()},"clear"),q0=n(t=>{let e=Gu.get(t.id);S.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let r=8,i=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+i-t.width/2)+", "+(t.y-t.height/2-r)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),i},"positionNode")});var PA,$A=m(()=>{"use strict";Zr();Ne();vt();j0();W0();H0();V0();ot();re();PA={common:Ir,getConfig:ee,insertCluster:Fu,insertEdge:zu,insertEdgeLabel:Pu,insertMarkers:ju,insertNode:Wu,interpolateToCurve:u0,labelHelper:K,log:S,positionEdgeLabel:$u}});function Cj(t){return typeof t=="symbol"||Ce(t)&&rr(t)==bj}var bj,vr,Rn=m(()=>{"use strict";So();ri();bj="[object Symbol]";n(Cj,"isSymbol");vr=Cj});function wj(t,e){for(var r=-1,i=t==null?0:t.length,o=Array(i);++r{"use strict";n(wj,"arrayMap");bi=wj});function GA(t){if(typeof t=="string")return t;if(At(t))return bi(t,GA)+"";if(vr(t))return jA?jA.call(t):"";var e=t+"";return e=="0"&&1/t==-_j?"-0":e}var _j,zA,jA,WA,HA=m(()=>{"use strict";An();ec();ve();Rn();_j=1/0,zA=Pe?Pe.prototype:void 0,jA=zA?zA.toString:void 0;n(GA,"baseToString");WA=GA});function kj(t){for(var e=t.length;e--&&Sj.test(t.charAt(e)););return e}var Sj,qA,VA=m(()=>{"use strict";Sj=/\s/;n(kj,"trimmedEndIndex");qA=kj});function Tj(t){return t&&t.slice(0,qA(t)+1).replace(vj,"")}var vj,UA,YA=m(()=>{"use strict";VA();vj=/^\s+/;n(Tj,"baseTrim");UA=Tj});function Lj(t){if(typeof t=="number")return t;if(vr(t))return XA;if(he(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=he(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=UA(t);var r=Aj.test(t);return r||Mj.test(t)?Bj(t.slice(2),r?2:8):Ej.test(t)?XA:+t}var XA,Ej,Aj,Mj,Bj,KA,ZA=m(()=>{"use strict";YA();Pr();Rn();XA=NaN,Ej=/^[-+]0x[0-9a-f]+$/i,Aj=/^0b[01]+$/i,Mj=/^0o[0-7]+$/i,Bj=parseInt;n(Lj,"toNumber");KA=Lj});function Fj(t){if(!t)return t===0?t:0;if(t=KA(t),t===QA||t===-QA){var e=t<0?-1:1;return e*Dj}return t===t?t:0}var QA,Dj,zs,U0=m(()=>{"use strict";ZA();QA=1/0,Dj=17976931348623157e292;n(Fj,"toFinite");zs=Fj});function Oj(t){var e=zs(t),r=e%1;return e===e?r?e-r:e:0}var JA,tM=m(()=>{"use strict";U0();n(Oj,"toInteger");JA=Oj});var Nj,Hu,eM=m(()=>{"use strict";ko();Rr();Nj=cr(ge,"WeakMap"),Hu=Nj});function Ij(){}var rM,iM=m(()=>{"use strict";n(Ij,"noop");rM=Ij});function Rj(t,e){for(var r=-1,i=t==null?0:t.length;++r{"use strict";n(Rj,"arrayEach");qu=Rj});function Pj(t,e,r,i){for(var o=t.length,s=r+(i?1:-1);i?s--:++s{"use strict";n(Pj,"baseFindIndex");Vu=Pj});function $j(t){return t!==t}var oM,nM=m(()=>{"use strict";n($j,"baseIsNaN");oM=$j});function zj(t,e,r){for(var i=r-1,o=t.length;++i{"use strict";n(zj,"strictIndexOf");sM=zj});function jj(t,e,r){return e===e?sM(t,e,r):Vu(t,oM,r)}var lM,cM=m(()=>{"use strict";X0();nM();aM();n(jj,"baseIndexOf");lM=jj});function Gj(t,e){var r=t==null?0:t.length;return!!r&&lM(t,e,0)>-1}var hM,uM=m(()=>{"use strict";cM();n(Gj,"arrayIncludes");hM=Gj});var Wj,fM,pM=m(()=>{"use strict";Jg();Wj=nu(Object.keys,Object),fM=Wj});function Vj(t){if(!Bo(t))return fM(t);var e=[];for(var r in Object(t))qj.call(t,r)&&r!="constructor"&&e.push(r);return e}var Hj,qj,js,Uu=m(()=>{"use strict";$l();pM();Hj=Object.prototype,qj=Hj.hasOwnProperty;n(Vj,"baseKeys");js=Vj});function Uj(t){return $e(t)?uu(t):js(t)}var xe,Qi=m(()=>{"use strict";n0();Uu();mi();n(Uj,"keys");xe=Uj});function Kj(t,e){if(At(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||vr(t)?!0:Xj.test(t)||!Yj.test(t)||e!=null&&t in Object(e)}var Yj,Xj,Gs,Yu=m(()=>{"use strict";ve();Rn();Yj=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xj=/^\w*$/;n(Kj,"isKey");Gs=Kj});function Qj(t){var e=Es(t,function(i){return r.size===Zj&&r.clear(),i}),r=e.cache;return e}var Zj,dM,mM=m(()=>{"use strict";Vg();Zj=500;n(Qj,"memoizeCapped");dM=Qj});var Jj,tG,eG,gM,xM=m(()=>{"use strict";mM();Jj=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tG=/\\(\\)?/g,eG=dM(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(Jj,function(r,i,o,s){e.push(o?s.replace(tG,"$1"):i||r)}),e}),gM=eG});function rG(t){return t==null?"":WA(t)}var Xu,K0=m(()=>{"use strict";HA();n(rG,"toString");Xu=rG});function iG(t,e){return At(t)?t:Gs(t,e)?[t]:gM(Xu(t))}var Ho,rc=m(()=>{"use strict";ve();Yu();xM();K0();n(iG,"castPath");Ho=iG});function nG(t){if(typeof t=="string"||vr(t))return t;var e=t+"";return e=="0"&&1/t==-oG?"-0":e}var oG,Ci,Ws=m(()=>{"use strict";Rn();oG=1/0;n(nG,"toKey");Ci=nG});function sG(t,e){e=Ho(e,t);for(var r=0,i=e.length;t!=null&&r{"use strict";rc();Ws();n(sG,"baseGet");qo=sG});function aG(t,e,r){var i=t==null?void 0:qo(t,e);return i===void 0?r:i}var yM,bM=m(()=>{"use strict";ic();n(aG,"get");yM=aG});function lG(t,e){for(var r=-1,i=e.length,o=t.length;++r{"use strict";n(lG,"arrayPush");Hs=lG});function cG(t){return At(t)||ii(t)||!!(CM&&t&&t[CM])}var CM,wM,_M=m(()=>{"use strict";An();Os();ve();CM=Pe?Pe.isConcatSpreadable:void 0;n(cG,"isFlattenable");wM=cG});function SM(t,e,r,i,o){var s=-1,a=t.length;for(r||(r=wM),o||(o=[]);++s0&&r(l)?e>1?SM(l,e-1,r,i,o):Hs(o,l):i||(o[o.length]=l)}return o}var qs,Zu=m(()=>{"use strict";Ku();_M();n(SM,"baseFlatten");qs=SM});function hG(t){var e=t==null?0:t.length;return e?qs(t,1):[]}var jr,Z0=m(()=>{"use strict";Zu();n(hG,"flatten");jr=hG});function uG(t){return pu(fu(t,void 0,jr),t+"")}var kM,vM=m(()=>{"use strict";Z0();s0();l0();n(uG,"flatRest");kM=uG});function CG(t){return bG.test(t)}var fG,pG,dG,mG,gG,xG,yG,bG,TM,EM=m(()=>{"use strict";fG="\\ud800-\\udfff",pG="\\u0300-\\u036f",dG="\\ufe20-\\ufe2f",mG="\\u20d0-\\u20ff",gG=pG+dG+mG,xG="\\ufe0e\\ufe0f",yG="\\u200d",bG=RegExp("["+yG+fG+gG+xG+"]");n(CG,"hasUnicode");TM=CG});function wG(t,e,r,i){var o=-1,s=t==null?0:t.length;for(i&&s&&(r=t[++o]);++o{"use strict";n(wG,"arrayReduce");AM=wG});function _G(t,e){return t&&gi(e,xe(e),t)}var BM,LM=m(()=>{"use strict";Rs();Qi();n(_G,"baseAssign");BM=_G});function SG(t,e){return t&&gi(e,hr(e),t)}var DM,FM=m(()=>{"use strict";Rs();No();n(SG,"baseAssignIn");DM=SG});function kG(t,e){for(var r=-1,i=t==null?0:t.length,o=0,s=[];++r{"use strict";n(kG,"arrayFilter");Qu=kG});function vG(){return[]}var Ju,J0=m(()=>{"use strict";n(vG,"stubArray");Ju=vG});var TG,EG,OM,AG,Vs,tf=m(()=>{"use strict";Q0();J0();TG=Object.prototype,EG=TG.propertyIsEnumerable,OM=Object.getOwnPropertySymbols,AG=OM?function(t){return t==null?[]:(t=Object(t),Qu(OM(t),function(e){return EG.call(t,e)}))}:Ju,Vs=AG});function MG(t,e){return gi(t,Vs(t),e)}var NM,IM=m(()=>{"use strict";Rs();tf();n(MG,"copySymbols");NM=MG});var BG,LG,ef,tx=m(()=>{"use strict";Ku();su();tf();J0();BG=Object.getOwnPropertySymbols,LG=BG?function(t){for(var e=[];t;)Hs(e,Vs(t)),t=Fs(t);return e}:Ju,ef=LG});function DG(t,e){return gi(t,ef(t),e)}var RM,PM=m(()=>{"use strict";Rs();tx();n(DG,"copySymbolsIn");RM=DG});function FG(t,e,r){var i=e(t);return At(t)?i:Hs(i,r(t))}var rf,ex=m(()=>{"use strict";Ku();ve();n(FG,"baseGetAllKeys");rf=FG});function OG(t){return rf(t,xe,Vs)}var oc,rx=m(()=>{"use strict";ex();tf();Qi();n(OG,"getAllKeys");oc=OG});function NG(t){return rf(t,hr,ef)}var $M,zM=m(()=>{"use strict";ex();tx();No();n(NG,"getAllKeysIn");$M=NG});var IG,of,jM=m(()=>{"use strict";ko();Rr();IG=cr(ge,"DataView"),of=IG});var RG,nf,GM=m(()=>{"use strict";ko();Rr();RG=cr(ge,"Promise"),nf=RG});var PG,Vo,ix=m(()=>{"use strict";ko();Rr();PG=cr(ge,"Set"),Vo=PG});var WM,$G,HM,qM,VM,UM,zG,jG,GG,WG,HG,Pn,Tr,$n=m(()=>{"use strict";jM();Qh();GM();ix();eM();So();Wg();WM="[object Map]",$G="[object Object]",HM="[object Promise]",qM="[object Set]",VM="[object WeakMap]",UM="[object DataView]",zG=Ui(of),jG=Ui(Eo),GG=Ui(nf),WG=Ui(Vo),HG=Ui(Hu),Pn=rr;(of&&Pn(new of(new ArrayBuffer(1)))!=UM||Eo&&Pn(new Eo)!=WM||nf&&Pn(nf.resolve())!=HM||Vo&&Pn(new Vo)!=qM||Hu&&Pn(new Hu)!=VM)&&(Pn=n(function(t){var e=rr(t),r=e==$G?t.constructor:void 0,i=r?Ui(r):"";if(i)switch(i){case zG:return UM;case jG:return WM;case GG:return HM;case WG:return qM;case HG:return VM}return e},"getTag"));Tr=Pn});function UG(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&VG.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var qG,VG,YM,XM=m(()=>{"use strict";qG=Object.prototype,VG=qG.hasOwnProperty;n(UG,"initCloneArray");YM=UG});function YG(t,e){var r=e?Ds(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var KM,ZM=m(()=>{"use strict";ru();n(YG,"cloneDataView");KM=YG});function KG(t){var e=new t.constructor(t.source,XG.exec(t));return e.lastIndex=t.lastIndex,e}var XG,QM,JM=m(()=>{"use strict";XG=/\w*$/;n(KG,"cloneRegExp");QM=KG});function ZG(t){return eB?Object(eB.call(t)):{}}var tB,eB,rB,iB=m(()=>{"use strict";An();tB=Pe?Pe.prototype:void 0,eB=tB?tB.valueOf:void 0;n(ZG,"cloneSymbol");rB=ZG});function xW(t,e,r){var i=t.constructor;switch(e){case sW:return Ds(t);case QG:case JG:return new i(+t);case aW:return KM(t,r);case lW:case cW:case hW:case uW:case fW:case pW:case dW:case mW:case gW:return iu(t,r);case tW:return new i;case eW:case oW:return new i(t);case rW:return QM(t);case iW:return new i;case nW:return rB(t)}}var QG,JG,tW,eW,rW,iW,oW,nW,sW,aW,lW,cW,hW,uW,fW,pW,dW,mW,gW,oB,nB=m(()=>{"use strict";ru();ZM();JM();iB();Zg();QG="[object Boolean]",JG="[object Date]",tW="[object Map]",eW="[object Number]",rW="[object RegExp]",iW="[object Set]",oW="[object String]",nW="[object Symbol]",sW="[object ArrayBuffer]",aW="[object DataView]",lW="[object Float32Array]",cW="[object Float64Array]",hW="[object Int8Array]",uW="[object Int16Array]",fW="[object Int32Array]",pW="[object Uint8Array]",dW="[object Uint8ClampedArray]",mW="[object Uint16Array]",gW="[object Uint32Array]";n(xW,"initCloneByTag");oB=xW});function bW(t){return Ce(t)&&Tr(t)==yW}var yW,sB,aB=m(()=>{"use strict";$n();ri();yW="[object Map]";n(bW,"baseIsMap");sB=bW});var lB,CW,cB,hB=m(()=>{"use strict";aB();zl();hu();lB=Xi&&Xi.isMap,CW=lB?Lo(lB):sB,cB=CW});function _W(t){return Ce(t)&&Tr(t)==wW}var wW,uB,fB=m(()=>{"use strict";$n();ri();wW="[object Set]";n(_W,"baseIsSet");uB=_W});var pB,SW,dB,mB=m(()=>{"use strict";fB();zl();hu();pB=Xi&&Xi.isSet,SW=pB?Lo(pB):uB,dB=SW});function sf(t,e,r,i,o,s){var a,l=e&kW,c=e&vW,h=e&TW;if(r&&(a=o?r(t,i,o,s):r(t)),a!==void 0)return a;if(!he(t))return t;var u=At(t);if(u){if(a=YM(t),!l)return ou(t,a)}else{var f=Tr(t),p=f==xB||f==LW;if(oi(t))return eu(t,l);if(f==yB||f==gB||p&&!o){if(a=c||p?{}:au(t),!l)return c?RM(t,DM(a,t)):NM(t,BM(a,t))}else{if(!ie[f])return o?t:{};a=oB(t,f,l)}}s||(s=new di);var d=s.get(t);if(d)return d;s.set(t,a),dB(t)?t.forEach(function(y){a.add(sf(y,e,r,y,t,s))}):cB(t)&&t.forEach(function(y,b){a.set(b,sf(y,e,r,b,t,s))});var g=h?c?$M:oc:c?hr:xe,x=u?void 0:g(t);return qu(x||t,function(y,b){x&&(b=y,y=t[b]),Fo(a,b,sf(y,e,r,b,t,s))}),a}var kW,vW,TW,gB,EW,AW,MW,BW,xB,LW,DW,FW,yB,OW,NW,IW,RW,PW,$W,zW,jW,GW,WW,HW,qW,VW,UW,YW,XW,ie,af,ox=m(()=>{"use strict";Il();Y0();Hl();LM();FM();Xg();Qg();IM();PM();rx();zM();$n();XM();nB();t0();ve();Is();hB();Pr();mB();Qi();No();kW=1,vW=2,TW=4,gB="[object Arguments]",EW="[object Array]",AW="[object Boolean]",MW="[object Date]",BW="[object Error]",xB="[object Function]",LW="[object GeneratorFunction]",DW="[object Map]",FW="[object Number]",yB="[object Object]",OW="[object RegExp]",NW="[object Set]",IW="[object String]",RW="[object Symbol]",PW="[object WeakMap]",$W="[object ArrayBuffer]",zW="[object DataView]",jW="[object Float32Array]",GW="[object Float64Array]",WW="[object Int8Array]",HW="[object Int16Array]",qW="[object Int32Array]",VW="[object Uint8Array]",UW="[object Uint8ClampedArray]",YW="[object Uint16Array]",XW="[object Uint32Array]",ie={};ie[gB]=ie[EW]=ie[$W]=ie[zW]=ie[AW]=ie[MW]=ie[jW]=ie[GW]=ie[WW]=ie[HW]=ie[qW]=ie[DW]=ie[FW]=ie[yB]=ie[OW]=ie[NW]=ie[IW]=ie[RW]=ie[VW]=ie[UW]=ie[YW]=ie[XW]=!0;ie[BW]=ie[xB]=ie[PW]=!1;n(sf,"baseClone");af=sf});function ZW(t){return af(t,KW)}var KW,nx,bB=m(()=>{"use strict";ox();KW=4;n(ZW,"clone");nx=ZW});function tH(t){return af(t,QW|JW)}var QW,JW,sx,CB=m(()=>{"use strict";ox();QW=1,JW=4;n(tH,"cloneDeep");sx=tH});function rH(t){return this.__data__.set(t,eH),this}var eH,wB,_B=m(()=>{"use strict";eH="__lodash_hash_undefined__";n(rH,"setCacheAdd");wB=rH});function iH(t){return this.__data__.has(t)}var SB,kB=m(()=>{"use strict";n(iH,"setCacheHas");SB=iH});function lf(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new Bn;++e{"use strict";Jh();_B();kB();n(lf,"SetCache");lf.prototype.add=lf.prototype.push=wB;lf.prototype.has=SB;cf=lf});function oH(t,e){for(var r=-1,i=t==null?0:t.length;++r{"use strict";n(oH,"arraySome");vB=oH});function nH(t,e){return t.has(e)}var hf,lx=m(()=>{"use strict";n(nH,"cacheHas");hf=nH});function lH(t,e,r,i,o,s){var a=r&sH,l=t.length,c=e.length;if(l!=c&&!(a&&c>l))return!1;var h=s.get(t),u=s.get(e);if(h&&u)return h==e&&u==t;var f=-1,p=!0,d=r&aH?new cf:void 0;for(s.set(t,e),s.set(e,t);++f{"use strict";ax();TB();lx();sH=1,aH=2;n(lH,"equalArrays");uf=lH});function cH(t){var e=-1,r=Array(t.size);return t.forEach(function(i,o){r[++e]=[o,i]}),r}var EB,AB=m(()=>{"use strict";n(cH,"mapToArray");EB=cH});function hH(t){var e=-1,r=Array(t.size);return t.forEach(function(i){r[++e]=i}),r}var Us,ff=m(()=>{"use strict";n(hH,"setToArray");Us=hH});function kH(t,e,r,i,o,s,a){switch(r){case SH:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case _H:return!(t.byteLength!=e.byteLength||!s(new Ls(t),new Ls(e)));case pH:case dH:case xH:return $r(+t,+e);case mH:return t.name==e.name&&t.message==e.message;case yH:case CH:return t==e+"";case gH:var l=EB;case bH:var c=i&uH;if(l||(l=Us),t.size!=e.size&&!c)return!1;var h=a.get(t);if(h)return h==e;i|=fH,a.set(t,e);var u=uf(l(t),l(e),i,o,s,a);return a.delete(t),u;case wH:if(hx)return hx.call(t)==hx.call(e)}return!1}var uH,fH,pH,dH,mH,gH,xH,yH,bH,CH,wH,_H,SH,MB,hx,BB,LB=m(()=>{"use strict";An();Kg();Mn();cx();AB();ff();uH=1,fH=2,pH="[object Boolean]",dH="[object Date]",mH="[object Error]",gH="[object Map]",xH="[object Number]",yH="[object RegExp]",bH="[object Set]",CH="[object String]",wH="[object Symbol]",_H="[object ArrayBuffer]",SH="[object DataView]",MB=Pe?Pe.prototype:void 0,hx=MB?MB.valueOf:void 0;n(kH,"equalByTag");BB=kH});function AH(t,e,r,i,o,s){var a=r&vH,l=oc(t),c=l.length,h=oc(e),u=h.length;if(c!=u&&!a)return!1;for(var f=c;f--;){var p=l[f];if(!(a?p in e:EH.call(e,p)))return!1}var d=s.get(t),g=s.get(e);if(d&&g)return d==e&&g==t;var x=!0;s.set(t,e),s.set(e,t);for(var y=a;++f{"use strict";rx();vH=1,TH=Object.prototype,EH=TH.hasOwnProperty;n(AH,"equalObjects");DB=AH});function LH(t,e,r,i,o,s){var a=At(t),l=At(e),c=a?NB:Tr(t),h=l?NB:Tr(e);c=c==OB?pf:c,h=h==OB?pf:h;var u=c==pf,f=h==pf,p=c==h;if(p&&oi(t)){if(!oi(e))return!1;a=!0,u=!1}if(p&&!u)return s||(s=new di),a||Do(t)?uf(t,e,r,i,o,s):BB(t,e,c,r,i,o,s);if(!(r&MH)){var d=u&&IB.call(t,"__wrapped__"),g=f&&IB.call(e,"__wrapped__");if(d||g){var x=d?t.value():t,y=g?e.value():e;return s||(s=new di),o(x,y,r,i,s)}}return p?(s||(s=new di),DB(t,e,r,i,o,s)):!1}var MH,OB,NB,pf,BH,IB,RB,PB=m(()=>{"use strict";Il();cx();LB();FB();$n();ve();Is();Gl();MH=1,OB="[object Arguments]",NB="[object Array]",pf="[object Object]",BH=Object.prototype,IB=BH.hasOwnProperty;n(LH,"baseIsEqualDeep");RB=LH});function $B(t,e,r,i,o){return t===e?!0:t==null||e==null||!Ce(t)&&!Ce(e)?t!==t&&e!==e:RB(t,e,r,i,$B,o)}var df,ux=m(()=>{"use strict";PB();ri();n($B,"baseIsEqual");df=$B});function OH(t,e,r,i){var o=r.length,s=o,a=!i;if(t==null)return!s;for(t=Object(t);o--;){var l=r[o];if(a&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++o{"use strict";Il();ux();DH=1,FH=2;n(OH,"baseIsMatch");zB=OH});function NH(t){return t===t&&!he(t)}var mf,fx=m(()=>{"use strict";Pr();n(NH,"isStrictComparable");mf=NH});function IH(t){for(var e=xe(t),r=e.length;r--;){var i=e[r],o=t[i];e[r]=[i,o,mf(o)]}return e}var GB,WB=m(()=>{"use strict";fx();Qi();n(IH,"getMatchData");GB=IH});function RH(t,e){return function(r){return r==null?!1:r[t]===e&&(e!==void 0||t in Object(r))}}var gf,px=m(()=>{"use strict";n(RH,"matchesStrictComparable");gf=RH});function PH(t){var e=GB(t);return e.length==1&&e[0][2]?gf(e[0][0],e[0][1]):function(r){return r===t||zB(r,t,e)}}var HB,qB=m(()=>{"use strict";jB();WB();px();n(PH,"baseMatches");HB=PH});function $H(t,e){return t!=null&&e in Object(t)}var VB,UB=m(()=>{"use strict";n($H,"baseHasIn");VB=$H});function zH(t,e,r){e=Ho(e,t);for(var i=-1,o=e.length,s=!1;++i{"use strict";rc();Os();ve();ql();lu();Ws();n(zH,"hasPath");xf=zH});function jH(t,e){return t!=null&&xf(t,e,VB)}var yf,mx=m(()=>{"use strict";UB();dx();n(jH,"hasIn");yf=jH});function HH(t,e){return Gs(t)&&mf(e)?gf(Ci(t),e):function(r){var i=yM(r,t);return i===void 0&&i===e?yf(r,t):df(e,i,GH|WH)}}var GH,WH,YB,XB=m(()=>{"use strict";ux();bM();mx();Yu();fx();px();Ws();GH=1,WH=2;n(HH,"baseMatchesProperty");YB=HH});function qH(t){return function(e){return e?.[t]}}var bf,gx=m(()=>{"use strict";n(qH,"baseProperty");bf=qH});function VH(t){return function(e){return qo(e,t)}}var KB,ZB=m(()=>{"use strict";ic();n(VH,"basePropertyDeep");KB=VH});function UH(t){return Gs(t)?bf(Ci(t)):KB(t)}var QB,JB=m(()=>{"use strict";gx();ZB();Yu();Ws();n(UH,"property");QB=UH});function YH(t){return typeof t=="function"?t:t==null?ur:typeof t=="object"?At(t)?YB(t[0],t[1]):HB(t):QB(t)}var Xe,Ji=m(()=>{"use strict";qB();XB();Io();ve();JB();n(YH,"baseIteratee");Xe=YH});function XH(t,e){return t&&Bs(t,e,xe)}var Ys,Cf=m(()=>{"use strict";tu();Qi();n(XH,"baseForOwn");Ys=XH});function KH(t,e){return function(r,i){if(r==null)return r;if(!$e(r))return t(r,i);for(var o=r.length,s=e?o:-1,a=Object(r);(e?s--:++s{"use strict";mi();n(KH,"createBaseEach");tL=KH});var ZH,Uo,nc=m(()=>{"use strict";Cf();eL();ZH=tL(Ys),Uo=ZH});var QH,wf,rL=m(()=>{"use strict";Rr();QH=n(function(){return ge.Date.now()},"now"),wf=QH});var iL,JH,tq,xx,oL=m(()=>{"use strict";Vl();Mn();Ul();No();iL=Object.prototype,JH=iL.hasOwnProperty,tq=Ro(function(t,e){t=Object(t);var r=-1,i=e.length,o=i>2?e[2]:void 0;for(o&&Ki(e[0],e[1],o)&&(i=1);++r{"use strict";n(eq,"arrayIncludesWith");nL=eq});function rq(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var Yo,aL=m(()=>{"use strict";n(rq,"last");Yo=rq});function iq(t){return typeof t=="function"?t:ur}var Xs,_f=m(()=>{"use strict";Io();n(iq,"castFunction");Xs=iq});function oq(t,e){var r=At(t)?qu:Uo;return r(t,Xs(e))}var I,yx=m(()=>{"use strict";Y0();nc();_f();ve();n(oq,"forEach");I=oq});var lL=m(()=>{"use strict";yx()});function nq(t,e){var r=[];return Uo(t,function(i,o,s){e(i,o,s)&&r.push(i)}),r}var cL,hL=m(()=>{"use strict";nc();n(nq,"baseFilter");cL=nq});function sq(t,e){var r=At(t)?Qu:cL;return r(t,Xe(e,3))}var ir,uL=m(()=>{"use strict";Q0();hL();Ji();ve();n(sq,"filter");ir=sq});function aq(t){return function(e,r,i){var o=Object(e);if(!$e(e)){var s=Xe(r,3);e=xe(e),r=n(function(l){return s(o[l],l,o)},"predicate")}var a=t(e,r,i);return a>-1?o[s?e[a]:a]:void 0}}var fL,pL=m(()=>{"use strict";Ji();mi();Qi();n(aq,"createFind");fL=aq});function cq(t,e,r){var i=t==null?0:t.length;if(!i)return-1;var o=r==null?0:JA(r);return o<0&&(o=lq(i+o,0)),Vu(t,Xe(e,3),o)}var lq,dL,mL=m(()=>{"use strict";X0();Ji();tM();lq=Math.max;n(cq,"findIndex");dL=cq});var hq,Ks,gL=m(()=>{"use strict";pL();mL();hq=fL(dL),Ks=hq});function uq(t,e){var r=-1,i=$e(t)?Array(t.length):[];return Uo(t,function(o,s,a){i[++r]=e(o,s,a)}),i}var Sf,bx=m(()=>{"use strict";nc();mi();n(uq,"baseMap");Sf=uq});function fq(t,e){var r=At(t)?bi:Sf;return r(t,Xe(e,3))}var $t,xL=m(()=>{"use strict";ec();Ji();bx();ve();n(fq,"map");$t=fq});function pq(t,e){return t==null?t:Bs(t,Xs(e),hr)}var Cx,yL=m(()=>{"use strict";tu();_f();No();n(pq,"forIn");Cx=pq});function dq(t,e){return t&&Ys(t,Xs(e))}var wx,bL=m(()=>{"use strict";Cf();_f();n(dq,"forOwn");wx=dq});function mq(t,e){return t>e}var CL,wL=m(()=>{"use strict";n(mq,"baseGt");CL=mq});function yq(t,e){return t!=null&&xq.call(t,e)}var gq,xq,_L,SL=m(()=>{"use strict";gq=Object.prototype,xq=gq.hasOwnProperty;n(yq,"baseHas");_L=yq});function bq(t,e){return t!=null&&xf(t,e,_L)}var sc,kL=m(()=>{"use strict";SL();dx();n(bq,"has");sc=bq});function wq(t){return typeof t=="string"||!At(t)&&Ce(t)&&rr(t)==Cq}var Cq,vL,TL=m(()=>{"use strict";So();ve();ri();Cq="[object String]";n(wq,"isString");vL=wq});function _q(t,e){return bi(e,function(r){return t[r]})}var EL,AL=m(()=>{"use strict";ec();n(_q,"baseValues");EL=_q});function Sq(t){return t==null?[]:EL(t,xe(t))}var Er,ML=m(()=>{"use strict";AL();Qi();n(Sq,"values");Er=Sq});function Aq(t){if(t==null)return!0;if($e(t)&&(At(t)||typeof t=="string"||typeof t.splice=="function"||oi(t)||Do(t)||ii(t)))return!t.length;var e=Tr(t);if(e==kq||e==vq)return!t.size;if(Bo(t))return!js(t).length;for(var r in t)if(Eq.call(t,r))return!1;return!0}var kq,vq,Tq,Eq,zn,_x=m(()=>{"use strict";Uu();$n();Os();ve();mi();Is();$l();Gl();kq="[object Map]",vq="[object Set]",Tq=Object.prototype,Eq=Tq.hasOwnProperty;n(Aq,"isEmpty");zn=Aq});function Mq(t){return t===void 0}var Xt,BL=m(()=>{"use strict";n(Mq,"isUndefined");Xt=Mq});function Bq(t,e){return t{"use strict";n(Bq,"baseLt");kf=Bq});function Lq(t,e){var r={};return e=Xe(e,3),Ys(t,function(i,o,s){Mo(r,o,e(i,o,s))}),r}var jn,LL=m(()=>{"use strict";Rl();Cf();Ji();n(Lq,"mapValues");jn=Lq});function Dq(t,e,r){for(var i=-1,o=t.length;++i{"use strict";Rn();n(Dq,"baseExtremum");Zs=Dq});function Fq(t){return t&&t.length?Zs(t,ur,CL):void 0}var xr,DL=m(()=>{"use strict";vf();wL();Io();n(Fq,"max");xr=Fq});function Oq(t){return t&&t.length?Zs(t,ur,kf):void 0}var to,FL=m(()=>{"use strict";vf();Sx();Io();n(Oq,"min");to=Oq});function Nq(t,e){return t&&t.length?Zs(t,Xe(e,2),kf):void 0}var Gn,OL=m(()=>{"use strict";vf();Ji();Sx();n(Nq,"minBy");Gn=Nq});function Iq(t,e,r,i){if(!he(t))return t;e=Ho(e,t);for(var o=-1,s=e.length,a=s-1,l=t;l!=null&&++o{"use strict";Hl();rc();ql();Pr();Ws();n(Iq,"baseSet");NL=Iq});function Rq(t,e,r){for(var i=-1,o=e.length,s={};++i{"use strict";ic();IL();rc();n(Rq,"basePickBy");RL=Rq});function Pq(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}var $L,zL=m(()=>{"use strict";n(Pq,"baseSortBy");$L=Pq});function $q(t,e){if(t!==e){var r=t!==void 0,i=t===null,o=t===t,s=vr(t),a=e!==void 0,l=e===null,c=e===e,h=vr(e);if(!l&&!h&&!s&&t>e||s&&a&&c&&!l&&!h||i&&a&&c||!r&&c||!o)return 1;if(!i&&!s&&!h&&t{"use strict";Rn();n($q,"compareAscending");jL=$q});function zq(t,e,r){for(var i=-1,o=t.criteria,s=e.criteria,a=o.length,l=r.length;++i=l)return c;var h=r[i];return c*(h=="desc"?-1:1)}}return t.index-e.index}var WL,HL=m(()=>{"use strict";GL();n(zq,"compareMultiple");WL=zq});function jq(t,e,r){e.length?e=bi(e,function(s){return At(s)?function(a){return qo(a,s.length===1?s[0]:s)}:s}):e=[ur];var i=-1;e=bi(e,Lo(Xe));var o=Sf(t,function(s,a,l){var c=bi(e,function(h){return h(s)});return{criteria:c,index:++i,value:s}});return $L(o,function(s,a){return WL(s,a,r)})}var qL,VL=m(()=>{"use strict";ec();ic();Ji();bx();zL();zl();HL();Io();ve();n(jq,"baseOrderBy");qL=jq});var Gq,UL,YL=m(()=>{"use strict";gx();Gq=bf("length"),UL=Gq});function tV(t){for(var e=XL.lastIndex=0;XL.test(t);)++e;return e}var KL,Wq,Hq,qq,Vq,Uq,Yq,kx,vx,Xq,ZL,QL,JL,Kq,t3,e3,Zq,Qq,Jq,XL,r3,i3=m(()=>{"use strict";KL="\\ud800-\\udfff",Wq="\\u0300-\\u036f",Hq="\\ufe20-\\ufe2f",qq="\\u20d0-\\u20ff",Vq=Wq+Hq+qq,Uq="\\ufe0e\\ufe0f",Yq="["+KL+"]",kx="["+Vq+"]",vx="\\ud83c[\\udffb-\\udfff]",Xq="(?:"+kx+"|"+vx+")",ZL="[^"+KL+"]",QL="(?:\\ud83c[\\udde6-\\uddff]){2}",JL="[\\ud800-\\udbff][\\udc00-\\udfff]",Kq="\\u200d",t3=Xq+"?",e3="["+Uq+"]?",Zq="(?:"+Kq+"(?:"+[ZL,QL,JL].join("|")+")"+e3+t3+")*",Qq=e3+t3+Zq,Jq="(?:"+[ZL+kx+"?",kx,QL,JL,Yq].join("|")+")",XL=RegExp(vx+"(?="+vx+")|"+Jq+Qq,"g");n(tV,"unicodeSize");r3=tV});function eV(t){return TM(t)?r3(t):UL(t)}var o3,n3=m(()=>{"use strict";YL();EM();i3();n(eV,"stringSize");o3=eV});function rV(t,e){return RL(t,e,function(r,i){return yf(t,i)})}var s3,a3=m(()=>{"use strict";PL();mx();n(rV,"basePick");s3=rV});var iV,Wn,l3=m(()=>{"use strict";a3();vM();iV=kM(function(t,e){return t==null?{}:s3(t,e)}),Wn=iV});function sV(t,e,r,i){for(var o=-1,s=nV(oV((e-t)/(r||1)),0),a=Array(s);s--;)a[i?s:++o]=t,t+=r;return a}var oV,nV,c3,h3=m(()=>{"use strict";oV=Math.ceil,nV=Math.max;n(sV,"baseRange");c3=sV});function aV(t){return function(e,r,i){return i&&typeof i!="number"&&Ki(e,r,i)&&(r=i=void 0),e=zs(e),r===void 0?(r=e,e=0):r=zs(r),i=i===void 0?e{"use strict";h3();Ul();U0();n(aV,"createRange");u3=aV});var lV,Gr,p3=m(()=>{"use strict";f3();lV=u3(),Gr=lV});function cV(t,e,r,i,o){return o(t,function(s,a,l){r=i?(i=!1,s):e(r,s,a,l)}),r}var d3,m3=m(()=>{"use strict";n(cV,"baseReduce");d3=cV});function hV(t,e,r){var i=At(t)?AM:d3,o=arguments.length<3;return i(t,Xe(e,4),r,o,Uo)}var wi,g3=m(()=>{"use strict";MM();nc();Ji();m3();ve();n(hV,"reduce");wi=hV});function pV(t){if(t==null)return 0;if($e(t))return vL(t)?o3(t):t.length;var e=Tr(t);return e==uV||e==fV?t.size:js(t).length}var uV,fV,Tx,x3=m(()=>{"use strict";Uu();$n();mi();TL();n3();uV="[object Map]",fV="[object Set]";n(pV,"size");Tx=pV});var dV,_i,y3=m(()=>{"use strict";Zu();VL();Vl();Ul();dV=Ro(function(t,e){if(t==null)return[];var r=e.length;return r>1&&Ki(t,e[0],e[1])?e=[]:r>2&&Ki(e[0],e[1],e[2])&&(e=[e[0]]),qL(t,qs(e,1),[])}),_i=dV});var mV,gV,b3,C3=m(()=>{"use strict";ix();iM();ff();mV=1/0,gV=Vo&&1/Us(new Vo([,-0]))[1]==mV?function(t){return new Vo(t)}:rM,b3=gV});function yV(t,e,r){var i=-1,o=hM,s=t.length,a=!0,l=[],c=l;if(r)a=!1,o=nL;else if(s>=xV){var h=e?null:b3(t);if(h)return Us(h);a=!1,o=hf,c=new cf}else c=e?[]:l;t:for(;++i{"use strict";ax();uM();sL();lx();C3();ff();xV=200;n(yV,"baseUniq");w3=yV});var bV,Ex,S3=m(()=>{"use strict";Zu();Vl();_3();r0();bV=Ro(function(t){return w3(qs(t,1,cu,!0))}),Ex=bV});function wV(t){var e=++CV;return Xu(t)+e}var CV,Hn,k3=m(()=>{"use strict";K0();CV=0;n(wV,"uniqueId");Hn=wV});function _V(t,e,r){for(var i=-1,o=t.length,s=e.length,a={};++i{"use strict";n(_V,"baseZipObject");v3=_V});function SV(t,e){return v3(t||[],e||[],Fo)}var Tf,E3=m(()=>{"use strict";Hl();T3();n(SV,"zipObject");Tf=SV});var Gt=m(()=>{"use strict";bB();CB();a0();oL();lL();uL();gL();Z0();yx();yL();bL();kL();ve();_x();Ll();BL();Qi();aL();xL();LL();DL();c0();FL();OL();rL();l3();p3();g3();x3();y3();S3();k3();ML();E3();});function M3(t,e){t[e]?t[e]++:t[e]=1}function B3(t,e){--t[e]||delete t[e]}function ac(t,e,r,i){var o=""+e,s=""+r;if(!t&&o>s){var a=o;o=s,s=a}return o+A3+s+A3+(Xt(i)?kV:i)}function vV(t,e,r,i){var o=""+e,s=""+r;if(!t&&o>s){var a=o;o=s,s=a}var l={v:o,w:s};return i&&(l.name=i),l}function Ax(t,e){return ac(t,e.v,e.w,e.name)}var kV,qn,A3,oe,Ef=m(()=>{"use strict";Gt();kV="\0",qn="\0",A3="",oe=class{static{n(this,"Graph")}constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=fr(void 0),this._defaultEdgeLabelFn=fr(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[qn]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return pi(e)||(e=fr(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return xe(this._nodes)}sources(){var e=this;return ir(this.nodes(),function(r){return zn(e._in[r])})}sinks(){var e=this;return ir(this.nodes(),function(r){return zn(e._out[r])})}setNodes(e,r){var i=arguments,o=this;return I(e,function(s){i.length>1?o.setNode(s,r):o.setNode(s)}),this}setNode(e,r){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=r),this):(this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=qn,this._children[e]={},this._children[qn][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var r=n(i=>this.removeEdge(this._edgeObjs[i]),"removeEdge");delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],I(this.children(e),i=>{this.setParent(i)}),delete this._children[e]),I(xe(this._in[e]),r),delete this._in[e],delete this._preds[e],I(xe(this._out[e]),r),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(Xt(r))r=qn;else{r+="";for(var i=r;!Xt(i);i=this.parent(i))if(i===e)throw new Error("Setting "+r+" as parent of "+e+" would create a cycle");this.setNode(r)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=r,this._children[r][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var r=this._parent[e];if(r!==qn)return r}}children(e){if(Xt(e)&&(e=qn),this._isCompound){var r=this._children[e];if(r)return xe(r)}else{if(e===qn)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var r=this._preds[e];if(r)return xe(r)}successors(e){var r=this._sucs[e];if(r)return xe(r)}neighbors(e){var r=this.predecessors(e);if(r)return Ex(r,this.successors(e))}isLeaf(e){var r;return this.isDirected()?r=this.successors(e):r=this.neighbors(e),r.length===0}filterNodes(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var i=this;I(this._nodes,function(a,l){e(l)&&r.setNode(l,a)}),I(this._edgeObjs,function(a){r.hasNode(a.v)&&r.hasNode(a.w)&&r.setEdge(a,i.edge(a))});var o={};function s(a){var l=i.parent(a);return l===void 0||r.hasNode(l)?(o[a]=l,l):l in o?o[l]:s(l)}return n(s,"findParent"),this._isCompound&&I(r.nodes(),function(a){r.setParent(a,s(a))}),r}setDefaultEdgeLabel(e){return pi(e)||(e=fr(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return Er(this._edgeObjs)}setPath(e,r){var i=this,o=arguments;return wi(e,function(s,a){return o.length>1?i.setEdge(s,a,r):i.setEdge(s,a),a}),this}setEdge(){var e,r,i,o,s=!1,a=arguments[0];typeof a=="object"&&a!==null&&"v"in a?(e=a.v,r=a.w,i=a.name,arguments.length===2&&(o=arguments[1],s=!0)):(e=a,r=arguments[1],i=arguments[3],arguments.length>2&&(o=arguments[2],s=!0)),e=""+e,r=""+r,Xt(i)||(i=""+i);var l=ac(this._isDirected,e,r,i);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,l))return s&&(this._edgeLabels[l]=o),this;if(!Xt(i)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[l]=s?o:this._defaultEdgeLabelFn(e,r,i);var c=vV(this._isDirected,e,r,i);return e=c.v,r=c.w,Object.freeze(c),this._edgeObjs[l]=c,M3(this._preds[r],e),M3(this._sucs[e],r),this._in[r][l]=c,this._out[e][l]=c,this._edgeCount++,this}edge(e,r,i){var o=arguments.length===1?Ax(this._isDirected,arguments[0]):ac(this._isDirected,e,r,i);return this._edgeLabels[o]}hasEdge(e,r,i){var o=arguments.length===1?Ax(this._isDirected,arguments[0]):ac(this._isDirected,e,r,i);return Object.prototype.hasOwnProperty.call(this._edgeLabels,o)}removeEdge(e,r,i){var o=arguments.length===1?Ax(this._isDirected,arguments[0]):ac(this._isDirected,e,r,i),s=this._edgeObjs[o];return s&&(e=s.v,r=s.w,delete this._edgeLabels[o],delete this._edgeObjs[o],B3(this._preds[r],e),B3(this._sucs[e],r),delete this._in[r][o],delete this._out[e][o],this._edgeCount--),this}inEdges(e,r){var i=this._in[e];if(i){var o=Er(i);return r?ir(o,function(s){return s.v===r}):o}}outEdges(e,r){var i=this._out[e];if(i){var o=Er(i);return r?ir(o,function(s){return s.w===r}):o}}nodeEdges(e,r){var i=this.inEdges(e,r);if(i)return i.concat(this.outEdges(e,r))}};oe.prototype._nodeCount=0;oe.prototype._edgeCount=0;n(M3,"incrementOrInitEntry");n(B3,"decrementOrRemoveEntry");n(ac,"edgeArgsToId");n(vV,"edgeArgsToObj");n(Ax,"edgeObjToId")});var Si=m(()=>{"use strict";Ef()});function D3(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function TV(t,e){if(t!=="_next"&&t!=="_prev")return e}var Af,F3=m(()=>{"use strict";Af=class{static{n(this,"List")}constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return D3(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&D3(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r}toString(){for(var e=[],r=this._sentinel,i=r._prev;i!==r;)e.push(JSON.stringify(i,TV)),i=i._prev;return"["+e.join(", ")+"]"}};n(D3,"unlink");n(TV,"filterOutLinks")});function O3(t,e){if(t.nodeCount()<=1)return[];var r=MV(t,e||EV),i=AV(r.graph,r.buckets,r.zeroIdx);return jr($t(i,function(o){return t.outEdges(o.v,o.w)}))}function AV(t,e,r){for(var i=[],o=e[e.length-1],s=e[0],a;t.nodeCount();){for(;a=s.dequeue();)Mx(t,e,r,a);for(;a=o.dequeue();)Mx(t,e,r,a);if(t.nodeCount()){for(var l=e.length-2;l>0;--l)if(a=e[l].dequeue(),a){i=i.concat(Mx(t,e,r,a,!0));break}}}return i}function Mx(t,e,r,i,o){var s=o?[]:void 0;return I(t.inEdges(i.v),function(a){var l=t.edge(a),c=t.node(a.v);o&&s.push({v:a.v,w:a.w}),c.out-=l,Bx(e,r,c)}),I(t.outEdges(i.v),function(a){var l=t.edge(a),c=a.w,h=t.node(c);h.in-=l,Bx(e,r,h)}),t.removeNode(i.v),s}function MV(t,e){var r=new oe,i=0,o=0;I(t.nodes(),function(l){r.setNode(l,{v:l,in:0,out:0})}),I(t.edges(),function(l){var c=r.edge(l.v,l.w)||0,h=e(l),u=c+h;r.setEdge(l.v,l.w,u),o=Math.max(o,r.node(l.v).out+=h),i=Math.max(i,r.node(l.w).in+=h)});var s=Gr(o+i+3).map(function(){return new Af}),a=i+1;return I(r.nodes(),function(l){Bx(s,a,r.node(l))}),{graph:r,buckets:s,zeroIdx:a}}function Bx(t,e,r){r.out?r.in?t[r.out-r.in+e].enqueue(r):t[t.length-1].enqueue(r):t[0].enqueue(r)}var EV,N3=m(()=>{"use strict";Gt();Si();F3();EV=fr(1);n(O3,"greedyFAS");n(AV,"doGreedyFAS");n(Mx,"removeNode");n(MV,"buildState");n(Bx,"assignBucket")});function I3(t){var e=t.graph().acyclicer==="greedy"?O3(t,r(t)):BV(t);I(e,function(i){var o=t.edge(i);t.removeEdge(i),o.forwardName=i.name,o.reversed=!0,t.setEdge(i.w,i.v,o,Hn("rev"))});function r(i){return function(o){return i.edge(o).weight}}n(r,"weightFn")}function BV(t){var e=[],r={},i={};function o(s){Object.prototype.hasOwnProperty.call(i,s)||(i[s]=!0,r[s]=!0,I(t.outEdges(s),function(a){Object.prototype.hasOwnProperty.call(r,a.w)?e.push(a):o(a.w)}),delete r[s])}return n(o,"dfs"),I(t.nodes(),o),e}function R3(t){I(t.edges(),function(e){var r=t.edge(e);if(r.reversed){t.removeEdge(e);var i=r.forwardName;delete r.reversed,delete r.forwardName,t.setEdge(e.w,e.v,r,i)}})}var Lx=m(()=>{"use strict";Gt();N3();n(I3,"run");n(BV,"dfsFAS");n(R3,"undo")});function ki(t,e,r,i){var o;do o=Hn(i);while(t.hasNode(o));return r.dummy=e,t.setNode(o,r),o}function $3(t){var e=new oe().setGraph(t.graph());return I(t.nodes(),function(r){e.setNode(r,t.node(r))}),I(t.edges(),function(r){var i=e.edge(r.v,r.w)||{weight:0,minlen:1},o=t.edge(r);e.setEdge(r.v,r.w,{weight:i.weight+o.weight,minlen:Math.max(i.minlen,o.minlen)})}),e}function Mf(t){var e=new oe({multigraph:t.isMultigraph()}).setGraph(t.graph());return I(t.nodes(),function(r){t.children(r).length||e.setNode(r,t.node(r))}),I(t.edges(),function(r){e.setEdge(r,t.edge(r))}),e}function Dx(t,e){var r=t.x,i=t.y,o=e.x-r,s=e.y-i,a=t.width/2,l=t.height/2;if(!o&&!s)throw new Error("Not possible to find intersection inside of the rectangle");var c,h;return Math.abs(s)*a>Math.abs(o)*l?(s<0&&(l=-l),c=l*o/s,h=l):(o<0&&(a=-a),c=a,h=a*s/o),{x:r+c,y:i+h}}function Xo(t){var e=$t(Gr(Ox(t)+1),function(){return[]});return I(t.nodes(),function(r){var i=t.node(r),o=i.rank;Xt(o)||(e[o][i.order]=r)}),e}function z3(t){var e=to($t(t.nodes(),function(r){return t.node(r).rank}));I(t.nodes(),function(r){var i=t.node(r);sc(i,"rank")&&(i.rank-=e)})}function j3(t){var e=to($t(t.nodes(),function(s){return t.node(s).rank})),r=[];I(t.nodes(),function(s){var a=t.node(s).rank-e;r[a]||(r[a]=[]),r[a].push(s)});var i=0,o=t.graph().nodeRankFactor;I(r,function(s,a){Xt(s)&&a%o!==0?--i:i&&I(s,function(l){t.node(l).rank+=i})})}function Fx(t,e,r,i){var o={width:0,height:0};return arguments.length>=4&&(o.rank=r,o.order=i),ki(t,"border",o,e)}function Ox(t){return xr($t(t.nodes(),function(e){var r=t.node(e).rank;if(!Xt(r))return r}))}function G3(t,e){var r={lhs:[],rhs:[]};return I(t,function(i){e(i)?r.lhs.push(i):r.rhs.push(i)}),r}function W3(t,e){var r=wf();try{return e()}finally{console.log(t+" time: "+(wf()-r)+"ms")}}function H3(t,e){return e()}var vi=m(()=>{"use strict";Gt();Si();n(ki,"addDummyNode");n($3,"simplify");n(Mf,"asNonCompoundGraph");n(Dx,"intersectRect");n(Xo,"buildLayerMatrix");n(z3,"normalizeRanks");n(j3,"removeEmptyRanks");n(Fx,"addBorderNode");n(Ox,"maxRank");n(G3,"partition");n(W3,"time");n(H3,"notime")});function V3(t){function e(r){var i=t.children(r),o=t.node(r);if(i.length&&I(i,e),Object.prototype.hasOwnProperty.call(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var s=o.minRank,a=o.maxRank+1;s{"use strict";Gt();vi();n(V3,"addBorderSegments");n(q3,"addBorderNode")});function X3(t){var e=t.graph().rankdir.toLowerCase();(e==="lr"||e==="rl")&&Z3(t)}function K3(t){var e=t.graph().rankdir.toLowerCase();(e==="bt"||e==="rl")&&LV(t),(e==="lr"||e==="rl")&&(DV(t),Z3(t))}function Z3(t){I(t.nodes(),function(e){Y3(t.node(e))}),I(t.edges(),function(e){Y3(t.edge(e))})}function Y3(t){var e=t.width;t.width=t.height,t.height=e}function LV(t){I(t.nodes(),function(e){Nx(t.node(e))}),I(t.edges(),function(e){var r=t.edge(e);I(r.points,Nx),Object.prototype.hasOwnProperty.call(r,"y")&&Nx(r)})}function Nx(t){t.y=-t.y}function DV(t){I(t.nodes(),function(e){Ix(t.node(e))}),I(t.edges(),function(e){var r=t.edge(e);I(r.points,Ix),Object.prototype.hasOwnProperty.call(r,"x")&&Ix(r)})}function Ix(t){var e=t.x;t.x=t.y,t.y=e}var Q3=m(()=>{"use strict";Gt();n(X3,"adjust");n(K3,"undo");n(Z3,"swapWidthHeight");n(Y3,"swapWidthHeightOne");n(LV,"reverseY");n(Nx,"reverseYOne");n(DV,"swapXY");n(Ix,"swapXYOne")});function J3(t){t.graph().dummyChains=[],I(t.edges(),function(e){OV(t,e)})}function OV(t,e){var r=e.v,i=t.node(r).rank,o=e.w,s=t.node(o).rank,a=e.name,l=t.edge(e),c=l.labelRank;if(s!==i+1){t.removeEdge(e);var h=void 0,u,f;for(f=0,++i;i{"use strict";Gt();vi();n(J3,"run");n(OV,"normalizeEdge");n(tD,"undo")});function lc(t){var e={};function r(i){var o=t.node(i);if(Object.prototype.hasOwnProperty.call(e,i))return o.rank;e[i]=!0;var s=to($t(t.outEdges(i),function(a){return r(a.w)-t.edge(a).minlen}));return(s===Number.POSITIVE_INFINITY||s===void 0||s===null)&&(s=0),o.rank=s}n(r,"dfs"),I(t.sources(),r)}function Vn(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}var Bf=m(()=>{"use strict";Gt();n(lc,"longestPath");n(Vn,"slack")});function Lf(t){var e=new oe({directed:!1}),r=t.nodes()[0],i=t.nodeCount();e.setNode(r,{});for(var o,s;NV(e,t){"use strict";Gt();Si();Bf();n(Lf,"feasibleTree");n(NV,"tightTree");n(IV,"findMinSlackEdge");n(RV,"shiftRanks")});var rD=m(()=>{"use strict"});var $x=m(()=>{"use strict"});var FOt,zx=m(()=>{"use strict";Gt();$x();FOt=fr(1)});var iD=m(()=>{"use strict";zx()});var jx=m(()=>{"use strict"});var oD=m(()=>{"use strict";jx()});var HOt,nD=m(()=>{"use strict";Gt();HOt=fr(1)});function Gx(t){var e={},r={},i=[];function o(s){if(Object.prototype.hasOwnProperty.call(r,s))throw new cc;Object.prototype.hasOwnProperty.call(e,s)||(r[s]=!0,e[s]=!0,I(t.predecessors(s),o),delete r[s],i.push(s))}if(n(o,"visit"),I(t.sinks(),o),Tx(e)!==t.nodeCount())throw new cc;return i}function cc(){}var Wx=m(()=>{"use strict";Gt();Gx.CycleException=cc;n(Gx,"topsort");n(cc,"CycleException");cc.prototype=new Error});var sD=m(()=>{"use strict";Wx()});function Df(t,e,r){At(e)||(e=[e]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t),o=[],s={};return I(e,function(a){if(!t.hasNode(a))throw new Error("Graph does not have node: "+a);aD(t,a,r==="post",s,i,o)}),o}function aD(t,e,r,i,o,s){Object.prototype.hasOwnProperty.call(i,e)||(i[e]=!0,r||s.push(e),I(o(e),function(a){aD(t,a,r,i,o,s)}),r&&s.push(e))}var Hx=m(()=>{"use strict";Gt();n(Df,"dfs");n(aD,"doDfs")});function qx(t,e){return Df(t,e,"post")}var lD=m(()=>{"use strict";Hx();n(qx,"postorder")});function Vx(t,e){return Df(t,e,"pre")}var cD=m(()=>{"use strict";Hx();n(Vx,"preorder")});var hD=m(()=>{"use strict";$x();Ef()});var uD=m(()=>{"use strict";rD();zx();iD();oD();nD();sD();lD();cD();hD();jx();Wx()});function Zo(t){t=$3(t),lc(t);var e=Lf(t);Yx(e),Ux(e,t);for(var r,i;r=mD(e);)i=gD(e,t,r),xD(e,t,r,i)}function Ux(t,e){var r=qx(t,t.nodes());r=r.slice(0,r.length-1),I(r,function(i){GV(t,e,i)})}function GV(t,e,r){var i=t.node(r),o=i.parent;t.edge(r,o).cutvalue=pD(t,e,r)}function pD(t,e,r){var i=t.node(r),o=i.parent,s=!0,a=e.edge(r,o),l=0;return a||(s=!1,a=e.edge(o,r)),l=a.weight,I(e.nodeEdges(r),function(c){var h=c.v===r,u=h?c.w:c.v;if(u!==o){var f=h===s,p=e.edge(c).weight;if(l+=f?p:-p,HV(t,r,u)){var d=t.edge(r,u).cutvalue;l+=f?-d:d}}}),l}function Yx(t,e){arguments.length<2&&(e=t.nodes()[0]),dD(t,{},1,e)}function dD(t,e,r,i,o){var s=r,a=t.node(i);return e[i]=!0,I(t.neighbors(i),function(l){Object.prototype.hasOwnProperty.call(e,l)||(r=dD(t,e,r,l,i))}),a.low=s,a.lim=r++,o?a.parent=o:delete a.parent,r}function mD(t){return Ks(t.edges(),function(e){return t.edge(e).cutvalue<0})}function gD(t,e,r){var i=r.v,o=r.w;e.hasEdge(i,o)||(i=r.w,o=r.v);var s=t.node(i),a=t.node(o),l=s,c=!1;s.lim>a.lim&&(l=a,c=!0);var h=ir(e.edges(),function(u){return c===fD(t,t.node(u.v),l)&&c!==fD(t,t.node(u.w),l)});return Gn(h,function(u){return Vn(e,u)})}function xD(t,e,r,i){var o=r.v,s=r.w;t.removeEdge(o,s),t.setEdge(i.v,i.w,{}),Yx(t),Ux(t,e),WV(t,e)}function WV(t,e){var r=Ks(t.nodes(),function(o){return!e.node(o).parent}),i=Vx(t,r);i=i.slice(1),I(i,function(o){var s=t.node(o).parent,a=e.edge(o,s),l=!1;a||(a=e.edge(s,o),l=!0),e.node(o).rank=e.node(s).rank+(l?a.minlen:-a.minlen)})}function HV(t,e,r){return t.hasEdge(e,r)}function fD(t,e,r){return r.low<=e.lim&&e.lim<=r.lim}var yD=m(()=>{"use strict";Gt();uD();vi();Px();Bf();Zo.initLowLimValues=Yx;Zo.initCutValues=Ux;Zo.calcCutValue=pD;Zo.leaveEdge=mD;Zo.enterEdge=gD;Zo.exchangeEdges=xD;n(Zo,"networkSimplex");n(Ux,"initCutValues");n(GV,"assignCutValue");n(pD,"calcCutValue");n(Yx,"initLowLimValues");n(dD,"dfsAssignLowLim");n(mD,"leaveEdge");n(gD,"enterEdge");n(xD,"exchangeEdges");n(WV,"updateRanks");n(HV,"isTreeEdge");n(fD,"isDescendant")});function Xx(t){switch(t.graph().ranker){case"network-simplex":bD(t);break;case"tight-tree":VV(t);break;case"longest-path":qV(t);break;default:bD(t)}}function VV(t){lc(t),Lf(t)}function bD(t){Zo(t)}var qV,Kx=m(()=>{"use strict";Px();yD();Bf();n(Xx,"rank");qV=lc;n(VV,"tightTreeRanker");n(bD,"networkSimplexRanker")});function CD(t){var e=ki(t,"root",{},"_root"),r=UV(t),i=xr(Er(r))-1,o=2*i+1;t.graph().nestingRoot=e,I(t.edges(),function(a){t.edge(a).minlen*=o});var s=YV(t)+1;I(t.children(),function(a){wD(t,e,o,s,i,r,a)}),t.graph().nodeRankFactor=o}function wD(t,e,r,i,o,s,a){var l=t.children(a);if(!l.length){a!==e&&t.setEdge(e,a,{weight:0,minlen:r});return}var c=Fx(t,"_bt"),h=Fx(t,"_bb"),u=t.node(a);t.setParent(c,a),u.borderTop=c,t.setParent(h,a),u.borderBottom=h,I(l,function(f){wD(t,e,r,i,o,s,f);var p=t.node(f),d=p.borderTop?p.borderTop:f,g=p.borderBottom?p.borderBottom:f,x=p.borderTop?i:2*i,y=d!==g?1:o-s[a]+1;t.setEdge(c,d,{weight:x,minlen:y,nestingEdge:!0}),t.setEdge(g,h,{weight:x,minlen:y,nestingEdge:!0})}),t.parent(a)||t.setEdge(e,c,{weight:0,minlen:o+s[a]})}function UV(t){var e={};function r(i,o){var s=t.children(i);s&&s.length&&I(s,function(a){r(a,o+1)}),e[i]=o}return n(r,"dfs"),I(t.children(),function(i){r(i,1)}),e}function YV(t){return wi(t.edges(),function(e,r){return e+t.edge(r).weight},0)}function _D(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,I(t.edges(),function(r){var i=t.edge(r);i.nestingEdge&&t.removeEdge(r)})}var SD=m(()=>{"use strict";Gt();vi();n(CD,"run");n(wD,"dfs");n(UV,"treeDepths");n(YV,"sumWeights");n(_D,"cleanup")});function kD(t,e,r){var i={},o;I(r,function(s){for(var a=t.parent(s),l,c;a;){if(l=t.parent(a),l?(c=i[l],i[l]=a):(c=o,o=a),c&&c!==a){e.setEdge(c,a);return}a=l}})}var vD=m(()=>{"use strict";Gt();n(kD,"addSubgraphConstraints")});function TD(t,e,r){var i=KV(t),o=new oe({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(function(s){return t.node(s)});return I(t.nodes(),function(s){var a=t.node(s),l=t.parent(s);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(o.setNode(s),o.setParent(s,l||i),I(t[r](s),function(c){var h=c.v===s?c.w:c.v,u=o.edge(h,s),f=Xt(u)?0:u.weight;o.setEdge(h,s,{weight:t.edge(c).weight+f})}),Object.prototype.hasOwnProperty.call(a,"minRank")&&o.setNode(s,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),o}function KV(t){for(var e;t.hasNode(e=Hn("_root")););return e}var ED=m(()=>{"use strict";Gt();Si();n(TD,"buildLayerGraph");n(KV,"createRootNode")});function AD(t,e){for(var r=0,i=1;i0;)u%2&&(f+=l[u+1]),u=u-1>>1,l[u]+=h.weight;c+=h.weight*f})),c}var MD=m(()=>{"use strict";Gt();n(AD,"crossCount");n(ZV,"twoLayerCrossCount")});function BD(t){var e={},r=ir(t.nodes(),function(l){return!t.children(l).length}),i=xr($t(r,function(l){return t.node(l).rank})),o=$t(Gr(i+1),function(){return[]});function s(l){if(!sc(e,l)){e[l]=!0;var c=t.node(l);o[c.rank].push(l),I(t.successors(l),s)}}n(s,"dfs");var a=_i(r,function(l){return t.node(l).rank});return I(a,s),o}var LD=m(()=>{"use strict";Gt();n(BD,"initOrder")});function DD(t,e){return $t(e,function(r){var i=t.inEdges(r);if(i.length){var o=wi(i,function(s,a){var l=t.edge(a),c=t.node(a.v);return{sum:s.sum+l.weight*c.order,weight:s.weight+l.weight}},{sum:0,weight:0});return{v:r,barycenter:o.sum/o.weight,weight:o.weight}}else return{v:r}})}var FD=m(()=>{"use strict";Gt();n(DD,"barycenter")});function OD(t,e){var r={};I(t,function(o,s){var a=r[o.v]={indegree:0,in:[],out:[],vs:[o.v],i:s};Xt(o.barycenter)||(a.barycenter=o.barycenter,a.weight=o.weight)}),I(e.edges(),function(o){var s=r[o.v],a=r[o.w];!Xt(s)&&!Xt(a)&&(a.indegree++,s.out.push(r[o.w]))});var i=ir(r,function(o){return!o.indegree});return QV(i)}function QV(t){var e=[];function r(s){return function(a){a.merged||(Xt(a.barycenter)||Xt(s.barycenter)||a.barycenter>=s.barycenter)&&JV(s,a)}}n(r,"handleIn");function i(s){return function(a){a.in.push(s),--a.indegree===0&&t.push(a)}}for(n(i,"handleOut");t.length;){var o=t.pop();e.push(o),I(o.in.reverse(),r(o)),I(o.out,i(o))}return $t(ir(e,function(s){return!s.merged}),function(s){return Wn(s,["vs","i","barycenter","weight"])})}function JV(t,e){var r=0,i=0;t.weight&&(r+=t.barycenter*t.weight,i+=t.weight),e.weight&&(r+=e.barycenter*e.weight,i+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=r/i,t.weight=i,t.i=Math.min(e.i,t.i),e.merged=!0}var ND=m(()=>{"use strict";Gt();n(OD,"resolveConflicts");n(QV,"doResolveConflicts");n(JV,"mergeEntries")});function RD(t,e){var r=G3(t,function(u){return Object.prototype.hasOwnProperty.call(u,"barycenter")}),i=r.lhs,o=_i(r.rhs,function(u){return-u.i}),s=[],a=0,l=0,c=0;i.sort(tU(!!e)),c=ID(s,o,c),I(i,function(u){c+=u.vs.length,s.push(u.vs),a+=u.barycenter*u.weight,l+=u.weight,c=ID(s,o,c)});var h={vs:jr(s)};return l&&(h.barycenter=a/l,h.weight=l),h}function ID(t,e,r){for(var i;e.length&&(i=Yo(e)).i<=r;)e.pop(),t.push(i.vs),r++;return r}function tU(t){return function(e,r){return e.barycenterr.barycenter?1:t?r.i-e.i:e.i-r.i}}var PD=m(()=>{"use strict";Gt();vi();n(RD,"sort");n(ID,"consumeUnsortable");n(tU,"compareWithBias")});function Zx(t,e,r,i){var o=t.children(e),s=t.node(e),a=s?s.borderLeft:void 0,l=s?s.borderRight:void 0,c={};a&&(o=ir(o,function(g){return g!==a&&g!==l}));var h=DD(t,o);I(h,function(g){if(t.children(g.v).length){var x=Zx(t,g.v,r,i);c[g.v]=x,Object.prototype.hasOwnProperty.call(x,"barycenter")&&rU(g,x)}});var u=OD(h,r);eU(u,c);var f=RD(u,i);if(a&&(f.vs=jr([a,f.vs,l]),t.predecessors(a).length)){var p=t.node(t.predecessors(a)[0]),d=t.node(t.predecessors(l)[0]);Object.prototype.hasOwnProperty.call(f,"barycenter")||(f.barycenter=0,f.weight=0),f.barycenter=(f.barycenter*f.weight+p.order+d.order)/(f.weight+2),f.weight+=2}return f}function eU(t,e){I(t,function(r){r.vs=jr(r.vs.map(function(i){return e[i]?e[i].vs:i}))})}function rU(t,e){Xt(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}var $D=m(()=>{"use strict";Gt();FD();ND();PD();n(Zx,"sortSubgraph");n(eU,"expandSubgraphs");n(rU,"mergeBarycenters")});function GD(t){var e=Ox(t),r=zD(t,Gr(1,e+1),"inEdges"),i=zD(t,Gr(e-1,-1,-1),"outEdges"),o=BD(t);jD(t,o);for(var s=Number.POSITIVE_INFINITY,a,l=0,c=0;c<4;++l,++c){iU(l%2?r:i,l%4>=2),o=Xo(t);var h=AD(t,o);h{"use strict";Gt();Si();vi();vD();ED();MD();LD();$D();n(GD,"order");n(zD,"buildLayerGraphs");n(iU,"sweepLayerGraphs");n(jD,"assignOrder")});function HD(t){var e=nU(t);I(t.graph().dummyChains,function(r){for(var i=t.node(r),o=i.edgeObj,s=oU(t,e,o.v,o.w),a=s.path,l=s.lca,c=0,h=a[c],u=!0;r!==o.w;){if(i=t.node(r),u){for(;(h=a[c])!==l&&t.node(h).maxRanka||l>e[c].lim));for(h=c,c=i;(c=t.parent(c))!==h;)s.push(c);return{path:o.concat(s.reverse()),lca:h}}function nU(t){var e={},r=0;function i(o){var s=r;I(t.children(o),i),e[o]={low:s,lim:r++}}return n(i,"dfs"),I(t.children(),i),e}var qD=m(()=>{"use strict";Gt();n(HD,"parentDummyChains");n(oU,"findPath");n(nU,"postorder")});function sU(t,e){var r={};function i(o,s){var a=0,l=0,c=o.length,h=Yo(s);return I(s,function(u,f){var p=lU(t,u),d=p?t.node(p).order:c;(p||u===h)&&(I(s.slice(l,f+1),function(g){I(t.predecessors(g),function(x){var y=t.node(x),b=y.order;(bh)&&VD(r,p,u)})})}n(i,"scan");function o(s,a){var l=-1,c,h=0;return I(a,function(u,f){if(t.node(u).dummy==="border"){var p=t.predecessors(u);p.length&&(c=t.node(p[0]).order,i(a,h,f,l,c),h=f,l=c)}i(a,h,a.length,c,s.length)}),a}return n(o,"visitLayer"),wi(e,o),r}function lU(t,e){if(t.node(e).dummy)return Ks(t.predecessors(e),function(r){return t.node(r).dummy})}function VD(t,e,r){if(e>r){var i=e;e=r,r=i}var o=t[e];o||(t[e]=o={}),o[r]=!0}function cU(t,e,r){if(e>r){var i=e;e=r,r=i}return!!t[e]&&Object.prototype.hasOwnProperty.call(t[e],r)}function hU(t,e,r,i){var o={},s={},a={};return I(e,function(l){I(l,function(c,h){o[c]=c,s[c]=c,a[c]=h})}),I(e,function(l){var c=-1;I(l,function(h){var u=i(h);if(u.length){u=_i(u,function(x){return a[x]});for(var f=(u.length-1)/2,p=Math.floor(f),d=Math.ceil(f);p<=d;++p){var g=u[p];s[h]===h&&c{"use strict";Gt();Si();vi();n(sU,"findType1Conflicts");n(aU,"findType2Conflicts");n(lU,"findOtherInnerSegmentNode");n(VD,"addConflict");n(cU,"hasConflict");n(hU,"verticalAlignment");n(uU,"horizontalCompaction");n(fU,"buildBlockGraph");n(pU,"findSmallestWidthAlignment");n(dU,"alignCoordinates");n(mU,"balance");n(UD,"positionX");n(gU,"sep");n(xU,"width")});function XD(t){t=Mf(t),yU(t),wx(UD(t),function(e,r){t.node(r).x=e})}function yU(t){var e=Xo(t),r=t.graph().ranksep,i=0;I(e,function(o){var s=xr($t(o,function(a){return t.node(a).height}));I(o,function(a){t.node(a).y=i+s/2}),i+=s+r})}var KD=m(()=>{"use strict";Gt();vi();YD();n(XD,"position");n(yU,"positionY")});function t1(t,e){var r=e&&e.debugTiming?W3:H3;r("layout",()=>{var i=r(" buildLayoutGraph",()=>MU(t));r(" runLayout",()=>bU(i,r)),r(" updateInputGraph",()=>CU(t,i))})}function bU(t,e){e(" makeSpaceForEdgeLabels",()=>BU(t)),e(" removeSelfEdges",()=>$U(t)),e(" acyclic",()=>I3(t)),e(" nestingGraph.run",()=>CD(t)),e(" rank",()=>Xx(Mf(t))),e(" injectEdgeLabelProxies",()=>LU(t)),e(" removeEmptyRanks",()=>j3(t)),e(" nestingGraph.cleanup",()=>_D(t)),e(" normalizeRanks",()=>z3(t)),e(" assignRankMinMax",()=>DU(t)),e(" removeEdgeLabelProxies",()=>FU(t)),e(" normalize.run",()=>J3(t)),e(" parentDummyChains",()=>HD(t)),e(" addBorderSegments",()=>V3(t)),e(" order",()=>GD(t)),e(" insertSelfEdges",()=>zU(t)),e(" adjustCoordinateSystem",()=>X3(t)),e(" position",()=>XD(t)),e(" positionSelfEdges",()=>jU(t)),e(" removeBorderNodes",()=>PU(t)),e(" normalize.undo",()=>tD(t)),e(" fixupEdgeLabelCoords",()=>IU(t)),e(" undoCoordinateSystem",()=>K3(t)),e(" translateGraph",()=>OU(t)),e(" assignNodeIntersects",()=>NU(t)),e(" reversePoints",()=>RU(t)),e(" acyclic.undo",()=>R3(t))}function CU(t,e){I(t.nodes(),function(r){var i=t.node(r),o=e.node(r);i&&(i.x=o.x,i.y=o.y,e.children(r).length&&(i.width=o.width,i.height=o.height))}),I(t.edges(),function(r){var i=t.edge(r),o=e.edge(r);i.points=o.points,Object.prototype.hasOwnProperty.call(o,"x")&&(i.x=o.x,i.y=o.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}function MU(t){var e=new oe({multigraph:!0,compound:!0}),r=Jx(t.graph());return e.setGraph(Po({},_U,Qx(r,wU),Wn(r,SU))),I(t.nodes(),function(i){var o=Jx(t.node(i));e.setNode(i,xx(Qx(o,kU),vU)),e.setParent(i,t.parent(i))}),I(t.edges(),function(i){var o=Jx(t.edge(i));e.setEdge(i,Po({},EU,Qx(o,TU),Wn(o,AU)))}),e}function BU(t){var e=t.graph();e.ranksep/=2,I(t.edges(),function(r){var i=t.edge(r);i.minlen*=2,i.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?i.width+=i.labeloffset:i.height+=i.labeloffset)})}function LU(t){I(t.edges(),function(e){var r=t.edge(e);if(r.width&&r.height){var i=t.node(e.v),o=t.node(e.w),s={rank:(o.rank-i.rank)/2+i.rank,e};ki(t,"edge-proxy",s,"_ep")}})}function DU(t){var e=0;I(t.nodes(),function(r){var i=t.node(r);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=xr(e,i.maxRank))}),t.graph().maxRank=e}function FU(t){I(t.nodes(),function(e){var r=t.node(e);r.dummy==="edge-proxy"&&(t.edge(r.e).labelRank=r.rank,t.removeNode(e))})}function OU(t){var e=Number.POSITIVE_INFINITY,r=0,i=Number.POSITIVE_INFINITY,o=0,s=t.graph(),a=s.marginx||0,l=s.marginy||0;function c(h){var u=h.x,f=h.y,p=h.width,d=h.height;e=Math.min(e,u-p/2),r=Math.max(r,u+p/2),i=Math.min(i,f-d/2),o=Math.max(o,f+d/2)}n(c,"getExtremes"),I(t.nodes(),function(h){c(t.node(h))}),I(t.edges(),function(h){var u=t.edge(h);Object.prototype.hasOwnProperty.call(u,"x")&&c(u)}),e-=a,i-=l,I(t.nodes(),function(h){var u=t.node(h);u.x-=e,u.y-=i}),I(t.edges(),function(h){var u=t.edge(h);I(u.points,function(f){f.x-=e,f.y-=i}),Object.prototype.hasOwnProperty.call(u,"x")&&(u.x-=e),Object.prototype.hasOwnProperty.call(u,"y")&&(u.y-=i)}),s.width=r-e+a,s.height=o-i+l}function NU(t){I(t.edges(),function(e){var r=t.edge(e),i=t.node(e.v),o=t.node(e.w),s,a;r.points?(s=r.points[0],a=r.points[r.points.length-1]):(r.points=[],s=o,a=i),r.points.unshift(Dx(i,s)),r.points.push(Dx(o,a))})}function IU(t){I(t.edges(),function(e){var r=t.edge(e);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function RU(t){I(t.edges(),function(e){var r=t.edge(e);r.reversed&&r.points.reverse()})}function PU(t){I(t.nodes(),function(e){if(t.children(e).length){var r=t.node(e),i=t.node(r.borderTop),o=t.node(r.borderBottom),s=t.node(Yo(r.borderLeft)),a=t.node(Yo(r.borderRight));r.width=Math.abs(a.x-s.x),r.height=Math.abs(o.y-i.y),r.x=s.x+r.width/2,r.y=i.y+r.height/2}}),I(t.nodes(),function(e){t.node(e).dummy==="border"&&t.removeNode(e)})}function $U(t){I(t.edges(),function(e){if(e.v===e.w){var r=t.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e,label:t.edge(e)}),t.removeEdge(e)}})}function zU(t){var e=Xo(t);I(e,function(r){var i=0;I(r,function(o,s){var a=t.node(o);a.order=s+i,I(a.selfEdges,function(l){ki(t,"selfedge",{width:l.label.width,height:l.label.height,rank:a.rank,order:s+ ++i,e:l.e,label:l.label},"_se")}),delete a.selfEdges})})}function jU(t){I(t.nodes(),function(e){var r=t.node(e);if(r.dummy==="selfedge"){var i=t.node(r.e.v),o=i.x+i.width/2,s=i.y,a=r.x-o,l=i.height/2;t.setEdge(r.e,r.label),t.removeNode(e),r.label.points=[{x:o+2*a/3,y:s-l},{x:o+5*a/6,y:s-l},{x:o+a,y:s},{x:o+5*a/6,y:s+l},{x:o+2*a/3,y:s+l}],r.label.x=r.x,r.label.y=r.y}})}function Qx(t,e){return jn(Wn(t,e),Number)}function Jx(t){var e={};return I(t,function(r,i){e[i.toLowerCase()]=r}),e}var wU,_U,SU,kU,vU,TU,EU,AU,ZD=m(()=>{"use strict";Gt();Si();U3();Q3();Lx();Rx();Kx();SD();WD();qD();KD();vi();n(t1,"layout");n(bU,"runLayout");n(CU,"updateInputGraph");wU=["nodesep","edgesep","ranksep","marginx","marginy"],_U={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},SU=["acyclicer","ranker","rankdir","align"],kU=["width","height"],vU={width:0,height:0},TU=["minlen","weight","width","height","labeloffset"],EU={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},AU=["labelpos"];n(MU,"buildLayoutGraph");n(BU,"makeSpaceForEdgeLabels");n(LU,"injectEdgeLabelProxies");n(DU,"assignRankMinMax");n(FU,"removeEdgeLabelProxies");n(OU,"translateGraph");n(NU,"assignNodeIntersects");n(IU,"fixupEdgeLabelCoords");n(RU,"reversePointsForReversedEdges");n(PU,"removeBorderNodes");n($U,"removeSelfEdges");n(zU,"insertSelfEdges");n(jU,"positionSelfEdges");n(Qx,"selectNumberAttrs");n(Jx,"canonicalize")});var QD=m(()=>{"use strict";Lx();ZD();Rx();Kx()});function Wr(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:GU(t),edges:WU(t)};return Xt(t.graph())||(e.value=nx(t.graph())),e}function GU(t){return $t(t.nodes(),function(e){var r=t.node(e),i=t.parent(e),o={v:e};return Xt(r)||(o.value=r),Xt(i)||(o.parent=i),o})}function WU(t){return $t(t.edges(),function(e){var r=t.edge(e),i={v:e.v,w:e.w};return Xt(e.name)||(i.name=e.name),Xt(r)||(i.value=r),i})}var e1=m(()=>{"use strict";Gt();Ef();n(Wr,"write");n(GU,"writeNodes");n(WU,"writeEdges")});var Mt,Un,eF,rF,Ff,HU,iF,oF,qU,Qs,tF,nF,sF,aF,lF,cF=m(()=>{"use strict";vt();Si();e1();Mt=new Map,Un=new Map,eF=new Map,rF=n(()=>{Un.clear(),eF.clear(),Mt.clear()},"clear"),Ff=n((t,e)=>{let r=Un.get(e)||[];return S.trace("In isDescendant",e," ",t," = ",r.includes(t)),r.includes(t)},"isDescendant"),HU=n((t,e)=>{let r=Un.get(e)||[];return S.info("Descendants of ",e," is ",r),S.info("Edge is ",t),t.v===e||t.w===e?!1:r?r.includes(t.v)||Ff(t.v,e)||Ff(t.w,e)||r.includes(t.w):(S.debug("Tilt, ",e,",not in descendants"),!1)},"edgeInCluster"),iF=n((t,e,r,i)=>{S.warn("Copying children of ",t,"root",i,"data",e.node(t),i);let o=e.children(t)||[];t!==i&&o.push(t),S.warn("Copying (nodes) clusterId",t,"nodes",o),o.forEach(s=>{if(e.children(s).length>0)iF(s,e,r,i);else{let a=e.node(s);S.info("cp ",s," to ",i," with parent ",t),r.setNode(s,a),i!==e.parent(s)&&(S.warn("Setting parent",s,e.parent(s)),r.setParent(s,e.parent(s))),t!==i&&s!==t?(S.debug("Setting parent",s,t),r.setParent(s,t)):(S.info("In copy ",t,"root",i,"data",e.node(t),i),S.debug("Not Setting parent for node=",s,"cluster!==rootId",t!==i,"node!==clusterId",s!==t));let l=e.edges(s);S.debug("Copying Edges",l),l.forEach(c=>{S.info("Edge",c);let h=e.edge(c.v,c.w,c.name);S.info("Edge data",h,i);try{HU(c,i)?(S.info("Copying as ",c.v,c.w,h,c.name),r.setEdge(c.v,c.w,h,c.name),S.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):S.info("Skipping copy of edge ",c.v,"-->",c.w," rootId: ",i," clusterId:",t)}catch(u){S.error(u)}})}S.debug("Removing node",s),e.removeNode(s)})},"copy"),oF=n((t,e)=>{let r=e.children(t),i=[...r];for(let o of r)eF.set(o,t),i=[...i,...oF(o,e)];return i},"extractDescendants"),qU=n((t,e,r)=>{let i=t.edges().filter(c=>c.v===e||c.w===e),o=t.edges().filter(c=>c.v===r||c.w===r),s=i.map(c=>({v:c.v===e?r:c.v,w:c.w===e?e:c.w})),a=o.map(c=>({v:c.v,w:c.w}));return s.filter(c=>a.some(h=>c.v===h.v&&c.w===h.w))},"findCommonEdges"),Qs=n((t,e,r)=>{let i=e.children(t);if(S.trace("Searching children of id ",t,i),i.length<1)return t;let o;for(let s of i){let a=Qs(s,e,r),l=qU(e,r,a);if(a)if(l.length>0)o=a;else return a}return o},"findNonClusterChild"),tF=n(t=>!Mt.has(t)||!Mt.get(t).externalConnections?t:Mt.has(t)?Mt.get(t).id:t,"getAnchorId"),nF=n((t,e)=>{if(!t||e>10){S.debug("Opting out, no graph ");return}else S.debug("Opting in, graph ");t.nodes().forEach(function(r){t.children(r).length>0&&(S.warn("Cluster identified",r," Replacement id in edges: ",Qs(r,t,r)),Un.set(r,oF(r,t)),Mt.set(r,{id:Qs(r,t,r),clusterData:t.node(r)}))}),t.nodes().forEach(function(r){let i=t.children(r),o=t.edges();i.length>0?(S.debug("Cluster identified",r,Un),o.forEach(s=>{let a=Ff(s.v,r),l=Ff(s.w,r);a^l&&(S.warn("Edge: ",s," leaves cluster ",r),S.warn("Descendants of XXX ",r,": ",Un.get(r)),Mt.get(r).externalConnections=!0)})):S.debug("Not a cluster ",r,Un)});for(let r of Mt.keys()){let i=Mt.get(r).id,o=t.parent(i);o!==r&&Mt.has(o)&&!Mt.get(o).externalConnections&&(Mt.get(r).id=o)}t.edges().forEach(function(r){let i=t.edge(r);S.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),S.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(t.edge(r)));let o=r.v,s=r.w;if(S.warn("Fix XXX",Mt,"ids:",r.v,r.w,"Translating: ",Mt.get(r.v)," --- ",Mt.get(r.w)),Mt.get(r.v)||Mt.get(r.w)){if(S.warn("Fixing and trying - removing XXX",r.v,r.w,r.name),o=tF(r.v),s=tF(r.w),t.removeEdge(r.v,r.w,r.name),o!==r.v){let a=t.parent(o);Mt.get(a).externalConnections=!0,i.fromCluster=r.v}if(s!==r.w){let a=t.parent(s);Mt.get(a).externalConnections=!0,i.toCluster=r.w}S.warn("Fix Replacing with XXX",o,s,r.name),t.setEdge(o,s,i,r.name)}}),S.warn("Adjusted Graph",Wr(t)),sF(t,0),S.trace(Mt)},"adjustClustersAndEdges"),sF=n((t,e)=>{if(S.warn("extractor - ",e,Wr(t),t.children("D")),e>10){S.error("Bailing out");return}let r=t.nodes(),i=!1;for(let o of r){let s=t.children(o);i=i||s.length>0}if(!i){S.debug("Done, no node has children",t.nodes());return}S.debug("Nodes = ",r,e);for(let o of r)if(S.debug("Extracting node",o,Mt,Mt.has(o)&&!Mt.get(o).externalConnections,!t.parent(o),t.node(o),t.children("D")," Depth ",e),!Mt.has(o))S.debug("Not a cluster",o,e);else if(!Mt.get(o).externalConnections&&t.children(o)&&t.children(o).length>0){S.warn("Cluster without external connections, without a parent and with children",o,e);let a=t.graph().rankdir==="TB"?"LR":"TB";Mt.get(o)?.clusterData?.dir&&(a=Mt.get(o).clusterData.dir,S.warn("Fixing dir",Mt.get(o).clusterData.dir,a));let l=new oe({multigraph:!0,compound:!0}).setGraph({rankdir:a,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});S.warn("Old graph before copy",Wr(t)),iF(o,t,l,o),t.setNode(o,{clusterNode:!0,id:o,clusterData:Mt.get(o).clusterData,label:Mt.get(o).label,graph:l}),S.warn("New graph after copy node: (",o,")",Wr(l)),S.debug("Old graph after copy",Wr(t))}else S.warn("Cluster ** ",o," **not meeting the criteria !externalConnections:",!Mt.get(o).externalConnections," no parent: ",!t.parent(o)," children ",t.children(o)&&t.children(o).length>0,t.children("D"),e),S.debug(Mt);r=t.nodes(),S.warn("New list of nodes",r);for(let o of r){let s=t.node(o);S.warn(" Now next level",o,s),s?.clusterNode&&sF(s.graph,e+1)}},"extractor"),aF=n((t,e)=>{if(e.length===0)return[];let r=Object.assign([],e);return e.forEach(i=>{let o=t.children(i),s=aF(t,o);r=[...r,...s]}),r},"sorter"),lF=n(t=>aF(t,t.children()),"sortNodesByHierarchy")});var uF={};wc(uF,{render:()=>VU});var hF,VU,fF=m(()=>{"use strict";QD();e1();Si();H0();ot();cF();V0();j0();W0();vt();Du();Me();hF=n(async(t,e,r,i,o,s)=>{S.warn("Graph in recursive render:XAX",Wr(e),o);let a=e.graph().rankdir;S.trace("Dir in recursive render - dir:",a);let l=t.insert("g").attr("class","root");e.nodes()?S.info("Recursive render XXX",e.nodes()):S.info("No nodes found for",e),e.edges().length>0&&S.info("Recursive edges",e.edge(e.edges()[0]));let c=l.insert("g").attr("class","clusters"),h=l.insert("g").attr("class","edgePaths"),u=l.insert("g").attr("class","edgeLabels"),f=l.insert("g").attr("class","nodes");await Promise.all(e.nodes().map(async function(x){let y=e.node(x);if(o!==void 0){let b=JSON.parse(JSON.stringify(o.clusterData));S.trace(`Setting data for parent cluster XXX Node.id = `,x,` data=`,b.height,` Parent cluster`,o.height),e.setNode(o.id,b),e.parent(x)||(S.trace("Setting parent",x,o.id),e.setParent(x,o.id,b))}if(S.info("(Insert) Node XXX"+x+": "+JSON.stringify(e.node(x))),y?.clusterNode){S.info("Cluster identified XBX",x,y.width,e.node(x));let{ranksep:b,nodesep:C}=e.graph();y.graph.setGraph({...y.graph.graph(),ranksep:b+25,nodesep:C});let k=await hF(f,y.graph,r,i,e.node(x),s),T=k.elem;j(y,T),y.diff=k.diff||0,S.info("New compound node after recursive render XAX",x,"width",y.width,"height",y.height),IA(T,y)}else e.children(x).length>0?(S.trace("Cluster - the non recursive path XBX",x,y.id,y,y.width,"Graph:",e),S.trace(Qs(y.id,e)),Mt.set(y.id,{id:Qs(y.id,e),node:y})):(S.trace("Node - the non recursive path XAX",x,f,e.node(x),a),await Wu(f,e.node(x),{config:s,dir:a}))})),await n(async()=>{let x=e.edges().map(async function(y){let b=e.edge(y.v,y.w,y.name);S.info("Edge "+y.v+" -> "+y.w+": "+JSON.stringify(y)),S.info("Edge "+y.v+" -> "+y.w+": ",y," ",JSON.stringify(e.edge(y))),S.info("Fix",Mt,"ids:",y.v,y.w,"Translating: ",Mt.get(y.v),Mt.get(y.w)),await Pu(u,b)});await Promise.all(x)},"processEdges")(),S.info("Graph before layout:",JSON.stringify(Wr(e))),S.info("############################################# XXX"),S.info("### Layout ### XXX"),S.info("############################################# XXX"),t1(e),S.info("Graph after layout:",JSON.stringify(Wr(e)));let d=0,{subGraphTitleTotalMargin:g}=In(s);return await Promise.all(lF(e).map(async function(x){let y=e.node(x);if(S.info("Position XBX => "+x+": ("+y.x,","+y.y,") width: ",y.width," height: ",y.height),y?.clusterNode)y.y+=g,S.info("A tainted cluster node XBX1",x,y.id,y.width,y.height,y.x,y.y,e.parent(x)),Mt.get(y.id).node=y,q0(y);else if(e.children(x).length>0){S.info("A pure cluster node XBX1",x,y.id,y.x,y.y,y.width,y.height,e.parent(x)),y.height+=g,e.node(y.parentId);let b=y?.padding/2||0,C=y?.labelBBox?.height||0,k=C-b||0;S.debug("OffsetY",k,"labelHeight",C,"halfPadding",b),await Fu(c,y),Mt.get(y.id).node=y}else{let b=e.node(y.parentId);y.y+=g/2,S.info("A regular node XBX1 - using the padding",y.id,"parent",y.parentId,y.width,y.height,y.x,y.y,"offsetY",y.offsetY,"parent",b,b?.offsetY,y),q0(y)}})),e.edges().forEach(function(x){let y=e.edge(x);S.info("Edge "+x.v+" -> "+x.w+": "+JSON.stringify(y),y),y.points.forEach(T=>T.y+=g/2);let b=e.node(x.v);var C=e.node(x.w);let k=zu(h,y,Mt,r,b,C,i);$u(y,k)}),e.nodes().forEach(function(x){let y=e.node(x);S.info(x,y.type,y.diff),y.isGroup&&(d=y.diff)}),S.warn("Returning from recursive render XAX",l,d),{elem:l,diff:d}},"recursiveRender"),VU=n(async(t,e)=>{let r=new oe({multigraph:!0,compound:!0}).setGraph({rankdir:t.direction,nodesep:t.config?.nodeSpacing||t.config?.flowchart?.nodeSpacing||t.nodeSpacing,ranksep:t.config?.rankSpacing||t.config?.flowchart?.rankSpacing||t.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),i=e.select("g");ju(i,t.markers,t.type,t.diagramId),RA(),NA(),TA(),rF(),t.nodes.forEach(s=>{r.setNode(s.id,{...s}),s.parentId&&r.setParent(s.id,s.parentId)}),S.debug("Edges:",t.edges),t.edges.forEach(s=>{if(s.start===s.end){let a=s.start,l=a+"---"+a+"---1",c=a+"---"+a+"---2",h=r.node(a);r.setNode(l,{domId:l,id:l,parentId:h.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),r.setParent(l,h.parentId),r.setNode(c,{domId:c,id:c,parentId:h.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),r.setParent(c,h.parentId);let u=structuredClone(s),f=structuredClone(s),p=structuredClone(s);u.label="",u.arrowTypeEnd="none",u.id=a+"-cyclic-special-1",f.arrowTypeStart="none",f.arrowTypeEnd="none",f.id=a+"-cyclic-special-mid",p.label="",h.isGroup&&(u.fromCluster=a,p.toCluster=a),p.id=a+"-cyclic-special-2",p.arrowTypeStart="none",r.setEdge(a,l,u,a+"-cyclic-special-0"),r.setEdge(l,c,f,a+"-cyclic-special-1"),r.setEdge(c,a,p,a+"-cyc{"use strict";$A();vt();hc={},r1=n(t=>{for(let e of t)hc[e.name]=e},"registerLayoutLoaders"),UU=n(()=>{r1([{name:"dagre",loader:n(async()=>await Promise.resolve().then(()=>(fF(),uF)),"loader")}])},"registerDefaultLayoutLoaders");UU();pF=n(async(t,e)=>{if(!(t.layoutAlgorithm in hc))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);let r=hc[t.layoutAlgorithm];return(await r.loader()).render(t,e,PA,{algorithm:r.algorithm})},"render"),dF=n((t="",{fallback:e="dagre"}={})=>{if(t in hc)return t;if(e in hc)return S.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm")});var mF,YU,XU,gF=m(()=>{"use strict";Wc();vt();mF=n((t,e,r,i)=>{t.attr("class",r);let{width:o,height:s,x:a,y:l}=YU(t,e);Ea(t,s,o,i);let c=XU(a,l,o,s,e);t.attr("viewBox",c),S.debug(`viewBox configured: ${c} with padding: ${e}`)},"setupViewPortForSVG"),YU=n((t,e)=>{let r=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:r.width+e*2,height:r.height+e*2,x:r.x,y:r.y}},"calculateDimensionsWithPadding"),XU=n((t,e,r,i,o)=>`${t-o} ${e-o} ${r} ${i}`,"createViewBox")});var KU,ZU,xF,yF=m(()=>{"use strict";je();Me();vt();SA();i1();gF();re();KU=n(function(t,e){return e.db.getClasses()},"getClasses"),ZU=n(async function(t,e,r,i){S.info("REF0:"),S.info("Drawing state diagram (v2)",e);let{securityLevel:o,flowchart:s,layout:a}=_t(),l;o==="sandbox"&&(l=ft("#i"+e));let c=o==="sandbox"?l.nodes()[0].contentDocument:document;S.debug("Before getData: ");let h=i.db.getData();S.debug("Data: ",h);let u=_A(e,o),f=i.db.getDirection();h.type=i.type,h.layoutAlgorithm=dF(a),h.layoutAlgorithm==="dagre"&&a==="elk"&&S.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),h.direction=f,h.nodeSpacing=s?.nodeSpacing||50,h.rankSpacing=s?.rankSpacing||50,h.markers=["point","circle","cross"],h.diagramId=e,S.debug("REF1:",h),await pF(h,u);let p=h.config.flowchart?.diagramPadding??8;De.insertTitle(u,"flowchartTitleText",s?.titleTopMargin||0,i.db.getDiagramTitle()),mF(u,p,"flowchart",s?.useMaxWidth||!1);for(let d of h.nodes){let g=ft(`#${e} [id="${d.id}"]`);if(!g||!d.link)continue;let x=c.createElementNS("http://www.w3.org/2000/svg","a");x.setAttributeNS("http://www.w3.org/2000/svg","class",d.cssClasses),x.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),o==="sandbox"?x.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):d.linkTarget&&x.setAttributeNS("http://www.w3.org/2000/svg","target",d.linkTarget);let y=g.insert(function(){return x},":first-child"),b=g.select(".label-container");b&&y.append(function(){return b.node()});let C=g.select(".label");C&&y.append(function(){return C.node()})}},"draw"),xF={getClasses:KU,draw:ZU}});var o1,n1,bF=m(()=>{"use strict";o1=(function(){var t=n(function(ae,mt,bt,Tt){for(bt=bt||{},Tt=ae.length;Tt--;bt[ae[Tt]]=mt);return bt},"o"),e=[1,4],r=[1,3],i=[1,5],o=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],s=[2,2],a=[1,13],l=[1,14],c=[1,15],h=[1,16],u=[1,23],f=[1,25],p=[1,26],d=[1,27],g=[1,49],x=[1,48],y=[1,29],b=[1,30],C=[1,31],k=[1,32],T=[1,33],v=[1,44],D=[1,46],B=[1,42],R=[1,47],P=[1,43],U=[1,50],N=[1,45],O=[1,51],A=[1,52],M=[1,34],z=[1,35],F=[1,36],V=[1,37],q=[1,57],Q=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],Ct=[1,61],lt=[1,60],ut=[1,62],ct=[8,9,11,75,77,78],Wt=[1,78],wt=[1,91],Yt=[1,96],Ht=[1,95],qt=[1,92],et=[1,88],xt=[1,94],kt=[1,90],X=[1,97],Qt=[1,93],Et=[1,98],ce=[1,89],ne=[8,9,10,11,40,75,77,78],Rt=[8,9,10,11,40,46,75,77,78],ye=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],en=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],Ti=[44,60,89,102,105,106,109,111,114,115,116],na=[1,121],dc=[1,122],io=[1,124],si=[1,123],Ei=[44,60,62,74,89,102,105,106,109,111,114,115,116],Ai=[1,133],sa=[1,147],aa=[1,148],la=[1,149],Yn=[1,150],ca=[1,135],rn=[1,137],on=[1,141],Mr=[1,142],Mi=[1,143],Xn=[1,144],Kn=[1,145],mc=[1,146],nn=[1,151],sn=[1,152],gc=[1,131],oo=[1,132],xc=[1,139],yc=[1,134],be=[1,138],Bi=[1,136],ha=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],ua=[1,154],Zn=[1,156],Jt=[8,9,11],He=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],Nt=[1,176],Kt=[1,172],fe=[1,173],Ft=[1,177],Ot=[1,174],Lt=[1,175],Li=[77,116,119],Dt=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],fa=[10,106],Vr=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],Br=[1,247],Lr=[1,245],Ur=[1,249],nt=[1,243],E=[1,244],Z=[1,246],rt=[1,248],It=[1,250],pe=[1,268],de=[8,9,11,106],se=[8,9,10,11,60,84,105,106,109,110,111,112],yr={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1]],performAction:n(function(mt,bt,Tt,J,te,w,cn){var _=w.length-1;switch(te){case 2:this.$=[];break;case 3:(!Array.isArray(w[_])||w[_].length>0)&&w[_-1].push(w[_]),this.$=w[_-1];break;case 4:case 183:this.$=w[_];break;case 11:J.setDirection("TB"),this.$="TB";break;case 12:J.setDirection(w[_-1]),this.$=w[_-1];break;case 27:this.$=w[_-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=J.addSubGraph(w[_-6],w[_-1],w[_-4]);break;case 34:this.$=J.addSubGraph(w[_-3],w[_-1],w[_-3]);break;case 35:this.$=J.addSubGraph(void 0,w[_-1],void 0);break;case 37:this.$=w[_].trim(),J.setAccTitle(this.$);break;case 38:case 39:this.$=w[_].trim(),J.setAccDescription(this.$);break;case 43:this.$=w[_-1]+w[_];break;case 44:this.$=w[_];break;case 45:J.addVertex(w[_-1][w[_-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,w[_]),J.addLink(w[_-3].stmt,w[_-1],w[_-2]),this.$={stmt:w[_-1],nodes:w[_-1].concat(w[_-3].nodes)};break;case 46:J.addLink(w[_-2].stmt,w[_],w[_-1]),this.$={stmt:w[_],nodes:w[_].concat(w[_-2].nodes)};break;case 47:J.addLink(w[_-3].stmt,w[_-1],w[_-2]),this.$={stmt:w[_-1],nodes:w[_-1].concat(w[_-3].nodes)};break;case 48:this.$={stmt:w[_-1],nodes:w[_-1]};break;case 49:J.addVertex(w[_-1][w[_-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,w[_]),this.$={stmt:w[_-1],nodes:w[_-1],shapeData:w[_]};break;case 50:this.$={stmt:w[_],nodes:w[_]};break;case 51:this.$=[w[_]];break;case 52:J.addVertex(w[_-5][w[_-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,w[_-4]),this.$=w[_-5].concat(w[_]);break;case 53:this.$=w[_-4].concat(w[_]);break;case 54:this.$=w[_];break;case 55:this.$=w[_-2],J.setClass(w[_-2],w[_]);break;case 56:this.$=w[_-3],J.addVertex(w[_-3],w[_-1],"square");break;case 57:this.$=w[_-3],J.addVertex(w[_-3],w[_-1],"doublecircle");break;case 58:this.$=w[_-5],J.addVertex(w[_-5],w[_-2],"circle");break;case 59:this.$=w[_-3],J.addVertex(w[_-3],w[_-1],"ellipse");break;case 60:this.$=w[_-3],J.addVertex(w[_-3],w[_-1],"stadium");break;case 61:this.$=w[_-3],J.addVertex(w[_-3],w[_-1],"subroutine");break;case 62:this.$=w[_-7],J.addVertex(w[_-7],w[_-1],"rect",void 0,void 0,void 0,Object.fromEntries([[w[_-5],w[_-3]]]));break;case 63:this.$=w[_-3],J.addVertex(w[_-3],w[_-1],"cylinder");break;case 64:this.$=w[_-3],J.addVertex(w[_-3],w[_-1],"round");break;case 65:this.$=w[_-3],J.addVertex(w[_-3],w[_-1],"diamond");break;case 66:this.$=w[_-5],J.addVertex(w[_-5],w[_-2],"hexagon");break;case 67:this.$=w[_-3],J.addVertex(w[_-3],w[_-1],"odd");break;case 68:this.$=w[_-3],J.addVertex(w[_-3],w[_-1],"trapezoid");break;case 69:this.$=w[_-3],J.addVertex(w[_-3],w[_-1],"inv_trapezoid");break;case 70:this.$=w[_-3],J.addVertex(w[_-3],w[_-1],"lean_right");break;case 71:this.$=w[_-3],J.addVertex(w[_-3],w[_-1],"lean_left");break;case 72:this.$=w[_],J.addVertex(w[_]);break;case 73:w[_-1].text=w[_],this.$=w[_-1];break;case 74:case 75:w[_-2].text=w[_-1],this.$=w[_-2];break;case 76:this.$=w[_];break;case 77:var we=J.destructLink(w[_],w[_-2]);this.$={type:we.type,stroke:we.stroke,length:we.length,text:w[_-1]};break;case 78:var we=J.destructLink(w[_],w[_-2]);this.$={type:we.type,stroke:we.stroke,length:we.length,text:w[_-1],id:w[_-3]};break;case 79:this.$={text:w[_],type:"text"};break;case 80:this.$={text:w[_-1].text+""+w[_],type:w[_-1].type};break;case 81:this.$={text:w[_],type:"string"};break;case 82:this.$={text:w[_],type:"markdown"};break;case 83:var we=J.destructLink(w[_]);this.$={type:we.type,stroke:we.stroke,length:we.length};break;case 84:var we=J.destructLink(w[_]);this.$={type:we.type,stroke:we.stroke,length:we.length,id:w[_-1]};break;case 85:this.$=w[_-1];break;case 86:this.$={text:w[_],type:"text"};break;case 87:this.$={text:w[_-1].text+""+w[_],type:w[_-1].type};break;case 88:this.$={text:w[_],type:"string"};break;case 89:case 104:this.$={text:w[_],type:"markdown"};break;case 101:this.$={text:w[_],type:"text"};break;case 102:this.$={text:w[_-1].text+""+w[_],type:w[_-1].type};break;case 103:this.$={text:w[_],type:"text"};break;case 105:this.$=w[_-4],J.addClass(w[_-2],w[_]);break;case 106:this.$=w[_-4],J.setClass(w[_-2],w[_]);break;case 107:case 115:this.$=w[_-1],J.setClickEvent(w[_-1],w[_]);break;case 108:case 116:this.$=w[_-3],J.setClickEvent(w[_-3],w[_-2]),J.setTooltip(w[_-3],w[_]);break;case 109:this.$=w[_-2],J.setClickEvent(w[_-2],w[_-1],w[_]);break;case 110:this.$=w[_-4],J.setClickEvent(w[_-4],w[_-3],w[_-2]),J.setTooltip(w[_-4],w[_]);break;case 111:this.$=w[_-2],J.setLink(w[_-2],w[_]);break;case 112:this.$=w[_-4],J.setLink(w[_-4],w[_-2]),J.setTooltip(w[_-4],w[_]);break;case 113:this.$=w[_-4],J.setLink(w[_-4],w[_-2],w[_]);break;case 114:this.$=w[_-6],J.setLink(w[_-6],w[_-4],w[_]),J.setTooltip(w[_-6],w[_-2]);break;case 117:this.$=w[_-1],J.setLink(w[_-1],w[_]);break;case 118:this.$=w[_-3],J.setLink(w[_-3],w[_-2]),J.setTooltip(w[_-3],w[_]);break;case 119:this.$=w[_-3],J.setLink(w[_-3],w[_-2],w[_]);break;case 120:this.$=w[_-5],J.setLink(w[_-5],w[_-4],w[_]),J.setTooltip(w[_-5],w[_-2]);break;case 121:this.$=w[_-4],J.addVertex(w[_-2],void 0,void 0,w[_]);break;case 122:this.$=w[_-4],J.updateLink([w[_-2]],w[_]);break;case 123:this.$=w[_-4],J.updateLink(w[_-2],w[_]);break;case 124:this.$=w[_-8],J.updateLinkInterpolate([w[_-6]],w[_-2]),J.updateLink([w[_-6]],w[_]);break;case 125:this.$=w[_-8],J.updateLinkInterpolate(w[_-6],w[_-2]),J.updateLink(w[_-6],w[_]);break;case 126:this.$=w[_-6],J.updateLinkInterpolate([w[_-4]],w[_]);break;case 127:this.$=w[_-6],J.updateLinkInterpolate(w[_-4],w[_]);break;case 128:case 130:this.$=[w[_]];break;case 129:case 131:w[_-2].push(w[_]),this.$=w[_-2];break;case 133:this.$=w[_-1]+w[_];break;case 181:this.$=w[_];break;case 182:this.$=w[_-1]+""+w[_];break;case 184:this.$=w[_-1]+""+w[_];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break}},"anonymous"),table:[{3:1,4:2,9:e,10:r,12:i},{1:[3]},t(o,s,{5:6}),{4:7,9:e,10:r,12:i},{4:8,9:e,10:r,12:i},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:a,9:l,10:c,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:u,33:24,34:f,36:p,38:d,42:28,43:38,44:g,45:39,47:40,60:x,84:y,85:b,86:C,87:k,88:T,89:v,102:D,105:B,106:R,109:P,111:U,113:41,114:N,115:O,116:A,121:M,122:z,123:F,124:V},t(o,[2,9]),t(o,[2,10]),t(o,[2,11]),{8:[1,54],9:[1,55],10:q,15:53,18:56},t(Q,[2,3]),t(Q,[2,4]),t(Q,[2,5]),t(Q,[2,6]),t(Q,[2,7]),t(Q,[2,8]),{8:Ct,9:lt,11:ut,21:58,41:59,72:63,75:[1,64],77:[1,66],78:[1,65]},{8:Ct,9:lt,11:ut,21:67},{8:Ct,9:lt,11:ut,21:68},{8:Ct,9:lt,11:ut,21:69},{8:Ct,9:lt,11:ut,21:70},{8:Ct,9:lt,11:ut,21:71},{8:Ct,9:lt,10:[1,72],11:ut,21:73},t(Q,[2,36]),{35:[1,74]},{37:[1,75]},t(Q,[2,39]),t(ct,[2,50],{18:76,39:77,10:q,40:Wt}),{10:[1,79]},{10:[1,80]},{10:[1,81]},{10:[1,82]},{14:wt,44:Yt,60:Ht,80:[1,86],89:qt,95:[1,83],97:[1,84],101:85,105:et,106:xt,109:kt,111:X,114:Qt,115:Et,116:ce,120:87},t(Q,[2,185]),t(Q,[2,186]),t(Q,[2,187]),t(Q,[2,188]),t(ne,[2,51]),t(ne,[2,54],{46:[1,99]}),t(Rt,[2,72],{113:112,29:[1,100],44:g,48:[1,101],50:[1,102],52:[1,103],54:[1,104],56:[1,105],58:[1,106],60:x,63:[1,107],65:[1,108],67:[1,109],68:[1,110],70:[1,111],89:v,102:D,105:B,106:R,109:P,111:U,114:N,115:O,116:A}),t(ye,[2,181]),t(ye,[2,142]),t(ye,[2,143]),t(ye,[2,144]),t(ye,[2,145]),t(ye,[2,146]),t(ye,[2,147]),t(ye,[2,148]),t(ye,[2,149]),t(ye,[2,150]),t(ye,[2,151]),t(ye,[2,152]),t(o,[2,12]),t(o,[2,18]),t(o,[2,19]),{9:[1,113]},t(en,[2,26],{18:114,10:q}),t(Q,[2,27]),{42:115,43:38,44:g,45:39,47:40,60:x,89:v,102:D,105:B,106:R,109:P,111:U,113:41,114:N,115:O,116:A},t(Q,[2,40]),t(Q,[2,41]),t(Q,[2,42]),t(Ti,[2,76],{73:116,62:[1,118],74:[1,117]}),{76:119,79:120,80:na,81:dc,116:io,119:si},{75:[1,125],77:[1,126]},t(Ei,[2,83]),t(Q,[2,28]),t(Q,[2,29]),t(Q,[2,30]),t(Q,[2,31]),t(Q,[2,32]),{10:Ai,12:sa,14:aa,27:la,28:127,32:Yn,44:ca,60:rn,75:on,80:[1,129],81:[1,130],83:140,84:Mr,85:Mi,86:Xn,87:Kn,88:mc,89:nn,90:sn,91:128,105:gc,109:oo,111:xc,114:yc,115:be,116:Bi},t(ha,s,{5:153}),t(Q,[2,37]),t(Q,[2,38]),t(ct,[2,48],{44:ua}),t(ct,[2,49],{18:155,10:q,40:Zn}),t(ne,[2,44]),{44:g,47:157,60:x,89:v,102:D,105:B,106:R,109:P,111:U,113:41,114:N,115:O,116:A},{102:[1,158],103:159,105:[1,160]},{44:g,47:161,60:x,89:v,102:D,105:B,106:R,109:P,111:U,113:41,114:N,115:O,116:A},{44:g,47:162,60:x,89:v,102:D,105:B,106:R,109:P,111:U,113:41,114:N,115:O,116:A},t(Jt,[2,107],{10:[1,163],96:[1,164]}),{80:[1,165]},t(Jt,[2,115],{120:167,10:[1,166],14:wt,44:Yt,60:Ht,89:qt,105:et,106:xt,109:kt,111:X,114:Qt,115:Et,116:ce}),t(Jt,[2,117],{10:[1,168]}),t(He,[2,183]),t(He,[2,170]),t(He,[2,171]),t(He,[2,172]),t(He,[2,173]),t(He,[2,174]),t(He,[2,175]),t(He,[2,176]),t(He,[2,177]),t(He,[2,178]),t(He,[2,179]),t(He,[2,180]),{44:g,47:169,60:x,89:v,102:D,105:B,106:R,109:P,111:U,113:41,114:N,115:O,116:A},{30:170,67:Nt,80:Kt,81:fe,82:171,116:Ft,117:Ot,118:Lt},{30:178,67:Nt,80:Kt,81:fe,82:171,116:Ft,117:Ot,118:Lt},{30:180,50:[1,179],67:Nt,80:Kt,81:fe,82:171,116:Ft,117:Ot,118:Lt},{30:181,67:Nt,80:Kt,81:fe,82:171,116:Ft,117:Ot,118:Lt},{30:182,67:Nt,80:Kt,81:fe,82:171,116:Ft,117:Ot,118:Lt},{30:183,67:Nt,80:Kt,81:fe,82:171,116:Ft,117:Ot,118:Lt},{109:[1,184]},{30:185,67:Nt,80:Kt,81:fe,82:171,116:Ft,117:Ot,118:Lt},{30:186,65:[1,187],67:Nt,80:Kt,81:fe,82:171,116:Ft,117:Ot,118:Lt},{30:188,67:Nt,80:Kt,81:fe,82:171,116:Ft,117:Ot,118:Lt},{30:189,67:Nt,80:Kt,81:fe,82:171,116:Ft,117:Ot,118:Lt},{30:190,67:Nt,80:Kt,81:fe,82:171,116:Ft,117:Ot,118:Lt},t(ye,[2,182]),t(o,[2,20]),t(en,[2,25]),t(ct,[2,46],{39:191,18:192,10:q,40:Wt}),t(Ti,[2,73],{10:[1,193]}),{10:[1,194]},{30:195,67:Nt,80:Kt,81:fe,82:171,116:Ft,117:Ot,118:Lt},{77:[1,196],79:197,116:io,119:si},t(Li,[2,79]),t(Li,[2,81]),t(Li,[2,82]),t(Li,[2,168]),t(Li,[2,169]),{76:198,79:120,80:na,81:dc,116:io,119:si},t(Ei,[2,84]),{8:Ct,9:lt,10:Ai,11:ut,12:sa,14:aa,21:200,27:la,29:[1,199],32:Yn,44:ca,60:rn,75:on,83:140,84:Mr,85:Mi,86:Xn,87:Kn,88:mc,89:nn,90:sn,91:201,105:gc,109:oo,111:xc,114:yc,115:be,116:Bi},t(Dt,[2,101]),t(Dt,[2,103]),t(Dt,[2,104]),t(Dt,[2,157]),t(Dt,[2,158]),t(Dt,[2,159]),t(Dt,[2,160]),t(Dt,[2,161]),t(Dt,[2,162]),t(Dt,[2,163]),t(Dt,[2,164]),t(Dt,[2,165]),t(Dt,[2,166]),t(Dt,[2,167]),t(Dt,[2,90]),t(Dt,[2,91]),t(Dt,[2,92]),t(Dt,[2,93]),t(Dt,[2,94]),t(Dt,[2,95]),t(Dt,[2,96]),t(Dt,[2,97]),t(Dt,[2,98]),t(Dt,[2,99]),t(Dt,[2,100]),{6:11,7:12,8:a,9:l,10:c,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:u,32:[1,202],33:24,34:f,36:p,38:d,42:28,43:38,44:g,45:39,47:40,60:x,84:y,85:b,86:C,87:k,88:T,89:v,102:D,105:B,106:R,109:P,111:U,113:41,114:N,115:O,116:A,121:M,122:z,123:F,124:V},{10:q,18:203},{44:[1,204]},t(ne,[2,43]),{10:[1,205],44:g,60:x,89:v,102:D,105:B,106:R,109:P,111:U,113:112,114:N,115:O,116:A},{10:[1,206]},{10:[1,207],106:[1,208]},t(fa,[2,128]),{10:[1,209],44:g,60:x,89:v,102:D,105:B,106:R,109:P,111:U,113:112,114:N,115:O,116:A},{10:[1,210],44:g,60:x,89:v,102:D,105:B,106:R,109:P,111:U,113:112,114:N,115:O,116:A},{80:[1,211]},t(Jt,[2,109],{10:[1,212]}),t(Jt,[2,111],{10:[1,213]}),{80:[1,214]},t(He,[2,184]),{80:[1,215],98:[1,216]},t(ne,[2,55],{113:112,44:g,60:x,89:v,102:D,105:B,106:R,109:P,111:U,114:N,115:O,116:A}),{31:[1,217],67:Nt,82:218,116:Ft,117:Ot,118:Lt},t(Vr,[2,86]),t(Vr,[2,88]),t(Vr,[2,89]),t(Vr,[2,153]),t(Vr,[2,154]),t(Vr,[2,155]),t(Vr,[2,156]),{49:[1,219],67:Nt,82:218,116:Ft,117:Ot,118:Lt},{30:220,67:Nt,80:Kt,81:fe,82:171,116:Ft,117:Ot,118:Lt},{51:[1,221],67:Nt,82:218,116:Ft,117:Ot,118:Lt},{53:[1,222],67:Nt,82:218,116:Ft,117:Ot,118:Lt},{55:[1,223],67:Nt,82:218,116:Ft,117:Ot,118:Lt},{57:[1,224],67:Nt,82:218,116:Ft,117:Ot,118:Lt},{60:[1,225]},{64:[1,226],67:Nt,82:218,116:Ft,117:Ot,118:Lt},{66:[1,227],67:Nt,82:218,116:Ft,117:Ot,118:Lt},{30:228,67:Nt,80:Kt,81:fe,82:171,116:Ft,117:Ot,118:Lt},{31:[1,229],67:Nt,82:218,116:Ft,117:Ot,118:Lt},{67:Nt,69:[1,230],71:[1,231],82:218,116:Ft,117:Ot,118:Lt},{67:Nt,69:[1,233],71:[1,232],82:218,116:Ft,117:Ot,118:Lt},t(ct,[2,45],{18:155,10:q,40:Zn}),t(ct,[2,47],{44:ua}),t(Ti,[2,75]),t(Ti,[2,74]),{62:[1,234],67:Nt,82:218,116:Ft,117:Ot,118:Lt},t(Ti,[2,77]),t(Li,[2,80]),{77:[1,235],79:197,116:io,119:si},{30:236,67:Nt,80:Kt,81:fe,82:171,116:Ft,117:Ot,118:Lt},t(ha,s,{5:237}),t(Dt,[2,102]),t(Q,[2,35]),{43:238,44:g,45:39,47:40,60:x,89:v,102:D,105:B,106:R,109:P,111:U,113:41,114:N,115:O,116:A},{10:q,18:239},{10:Br,60:Lr,84:Ur,92:240,105:nt,107:241,108:242,109:E,110:Z,111:rt,112:It},{10:Br,60:Lr,84:Ur,92:251,104:[1,252],105:nt,107:241,108:242,109:E,110:Z,111:rt,112:It},{10:Br,60:Lr,84:Ur,92:253,104:[1,254],105:nt,107:241,108:242,109:E,110:Z,111:rt,112:It},{105:[1,255]},{10:Br,60:Lr,84:Ur,92:256,105:nt,107:241,108:242,109:E,110:Z,111:rt,112:It},{44:g,47:257,60:x,89:v,102:D,105:B,106:R,109:P,111:U,113:41,114:N,115:O,116:A},t(Jt,[2,108]),{80:[1,258]},{80:[1,259],98:[1,260]},t(Jt,[2,116]),t(Jt,[2,118],{10:[1,261]}),t(Jt,[2,119]),t(Rt,[2,56]),t(Vr,[2,87]),t(Rt,[2,57]),{51:[1,262],67:Nt,82:218,116:Ft,117:Ot,118:Lt},t(Rt,[2,64]),t(Rt,[2,59]),t(Rt,[2,60]),t(Rt,[2,61]),{109:[1,263]},t(Rt,[2,63]),t(Rt,[2,65]),{66:[1,264],67:Nt,82:218,116:Ft,117:Ot,118:Lt},t(Rt,[2,67]),t(Rt,[2,68]),t(Rt,[2,70]),t(Rt,[2,69]),t(Rt,[2,71]),t([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),t(Ti,[2,78]),{31:[1,265],67:Nt,82:218,116:Ft,117:Ot,118:Lt},{6:11,7:12,8:a,9:l,10:c,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:u,32:[1,266],33:24,34:f,36:p,38:d,42:28,43:38,44:g,45:39,47:40,60:x,84:y,85:b,86:C,87:k,88:T,89:v,102:D,105:B,106:R,109:P,111:U,113:41,114:N,115:O,116:A,121:M,122:z,123:F,124:V},t(ne,[2,53]),{43:267,44:g,45:39,47:40,60:x,89:v,102:D,105:B,106:R,109:P,111:U,113:41,114:N,115:O,116:A},t(Jt,[2,121],{106:pe}),t(de,[2,130],{108:269,10:Br,60:Lr,84:Ur,105:nt,109:E,110:Z,111:rt,112:It}),t(se,[2,132]),t(se,[2,134]),t(se,[2,135]),t(se,[2,136]),t(se,[2,137]),t(se,[2,138]),t(se,[2,139]),t(se,[2,140]),t(se,[2,141]),t(Jt,[2,122],{106:pe}),{10:[1,270]},t(Jt,[2,123],{106:pe}),{10:[1,271]},t(fa,[2,129]),t(Jt,[2,105],{106:pe}),t(Jt,[2,106],{113:112,44:g,60:x,89:v,102:D,105:B,106:R,109:P,111:U,114:N,115:O,116:A}),t(Jt,[2,110]),t(Jt,[2,112],{10:[1,272]}),t(Jt,[2,113]),{98:[1,273]},{51:[1,274]},{62:[1,275]},{66:[1,276]},{8:Ct,9:lt,11:ut,21:277},t(Q,[2,34]),t(ne,[2,52]),{10:Br,60:Lr,84:Ur,105:nt,107:278,108:242,109:E,110:Z,111:rt,112:It},t(se,[2,133]),{14:wt,44:Yt,60:Ht,89:qt,101:279,105:et,106:xt,109:kt,111:X,114:Qt,115:Et,116:ce,120:87},{14:wt,44:Yt,60:Ht,89:qt,101:280,105:et,106:xt,109:kt,111:X,114:Qt,115:Et,116:ce,120:87},{98:[1,281]},t(Jt,[2,120]),t(Rt,[2,58]),{30:282,67:Nt,80:Kt,81:fe,82:171,116:Ft,117:Ot,118:Lt},t(Rt,[2,66]),t(ha,s,{5:283}),t(de,[2,131],{108:269,10:Br,60:Lr,84:Ur,105:nt,109:E,110:Z,111:rt,112:It}),t(Jt,[2,126],{120:167,10:[1,284],14:wt,44:Yt,60:Ht,89:qt,105:et,106:xt,109:kt,111:X,114:Qt,115:Et,116:ce}),t(Jt,[2,127],{120:167,10:[1,285],14:wt,44:Yt,60:Ht,89:qt,105:et,106:xt,109:kt,111:X,114:Qt,115:Et,116:ce}),t(Jt,[2,114]),{31:[1,286],67:Nt,82:218,116:Ft,117:Ot,118:Lt},{6:11,7:12,8:a,9:l,10:c,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:u,32:[1,287],33:24,34:f,36:p,38:d,42:28,43:38,44:g,45:39,47:40,60:x,84:y,85:b,86:C,87:k,88:T,89:v,102:D,105:B,106:R,109:P,111:U,113:41,114:N,115:O,116:A,121:M,122:z,123:F,124:V},{10:Br,60:Lr,84:Ur,92:288,105:nt,107:241,108:242,109:E,110:Z,111:rt,112:It},{10:Br,60:Lr,84:Ur,92:289,105:nt,107:241,108:242,109:E,110:Z,111:rt,112:It},t(Rt,[2,62]),t(Q,[2,33]),t(Jt,[2,124],{106:pe}),t(Jt,[2,125],{106:pe})],defaultActions:{},parseError:n(function(mt,bt){if(bt.recoverable)this.trace(mt);else{var Tt=new Error(mt);throw Tt.hash=bt,Tt}},"parseError"),parse:n(function(mt){var bt=this,Tt=[0],J=[],te=[null],w=[],cn=this.table,_="",we=0,u1=0,f1=0,x8=2,p1=1,y8=w.slice.call(arguments,1),Fe=Object.create(this.lexer),hn={yy:{}};for(var qf in this.yy)Object.prototype.hasOwnProperty.call(this.yy,qf)&&(hn.yy[qf]=this.yy[qf]);Fe.setInput(mt,hn.yy),hn.yy.lexer=Fe,hn.yy.parser=this,typeof Fe.yylloc>"u"&&(Fe.yylloc={});var Vf=Fe.yylloc;w.push(Vf);var b8=Fe.options&&Fe.options.ranges;typeof hn.yy.parseError=="function"?this.parseError=hn.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function qY(br){Tt.length=Tt.length-2*br,te.length=te.length-br,w.length=w.length-br}n(qY,"popStack");function C8(){var br;return br=J.pop()||Fe.lex()||p1,typeof br!="number"&&(br instanceof Array&&(J=br,br=J.pop()),br=bt.symbols_[br]||br),br}n(C8,"lex");for(var Ke,Uf,un,Dr,VY,Yf,Qn={},bc,Di,d1,Cc;;){if(un=Tt[Tt.length-1],this.defaultActions[un]?Dr=this.defaultActions[un]:((Ke===null||typeof Ke>"u")&&(Ke=C8()),Dr=cn[un]&&cn[un][Ke]),typeof Dr>"u"||!Dr.length||!Dr[0]){var Xf="";Cc=[];for(bc in cn[un])this.terminals_[bc]&&bc>x8&&Cc.push("'"+this.terminals_[bc]+"'");Fe.showPosition?Xf="Parse error on line "+(we+1)+`: `+Fe.showPosition()+` Expecting `+Cc.join(", ")+", got '"+(this.terminals_[Ke]||Ke)+"'":Xf="Parse error on line "+(we+1)+": Unexpected "+(Ke==p1?"end of input":"'"+(this.terminals_[Ke]||Ke)+"'"),this.parseError(Xf,{text:Fe.match,token:this.terminals_[Ke]||Ke,line:Fe.yylineno,loc:Vf,expected:Cc})}if(Dr[0]instanceof Array&&Dr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+un+", token: "+Ke);switch(Dr[0]){case 1:Tt.push(Ke),te.push(Fe.yytext),w.push(Fe.yylloc),Tt.push(Dr[1]),Ke=null,Uf?(Ke=Uf,Uf=null):(u1=Fe.yyleng,_=Fe.yytext,we=Fe.yylineno,Vf=Fe.yylloc,f1>0&&f1--);break;case 2:if(Di=this.productions_[Dr[1]][1],Qn.$=te[te.length-Di],Qn._$={first_line:w[w.length-(Di||1)].first_line,last_line:w[w.length-1].last_line,first_column:w[w.length-(Di||1)].first_column,last_column:w[w.length-1].last_column},b8&&(Qn._$.range=[w[w.length-(Di||1)].range[0],w[w.length-1].range[1]]),Yf=this.performAction.apply(Qn,[_,u1,we,hn.yy,Dr[1],te,w].concat(y8)),typeof Yf<"u")return Yf;Di&&(Tt=Tt.slice(0,-1*Di*2),te=te.slice(0,-1*Di),w=w.slice(0,-1*Di)),Tt.push(this.productions_[Dr[1]][0]),te.push(Qn.$),w.push(Qn._$),d1=cn[Tt[Tt.length-2]][Tt[Tt.length-1]],Tt.push(d1);break;case 3:return!0}}return!0},"parse")},an=(function(){var ae={EOF:1,parseError:n(function(bt,Tt){if(this.yy.parser)this.yy.parser.parseError(bt,Tt);else throw new Error(bt)},"parseError"),setInput:n(function(mt,bt){return this.yy=bt||this.yy||{},this._input=mt,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},"setInput"),input:n(function(){var mt=this._input[0];this.yytext+=mt,this.yyleng++,this.offset++,this.match+=mt,this.matched+=mt;var bt=mt.match(/(?:\r\n?|\n).*/g);return bt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),mt},"input"),unput:n(function(mt){var bt=mt.length,Tt=mt.split(/(?:\r\n?|\n)/g);this._input=mt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-bt),this.offset-=bt;var J=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),Tt.length-1&&(this.yylineno-=Tt.length-1);var te=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:Tt?(Tt.length===J.length?this.yylloc.first_column:0)+J[J.length-Tt.length].length-Tt[0].length:this.yylloc.first_column-bt},this.options.ranges&&(this.yylloc.range=[te[0],te[0]+this.yyleng-bt]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(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},"reject"),less:n(function(mt){this.unput(this.match.slice(mt))},"less"),pastInput:n(function(){var mt=this.matched.substr(0,this.matched.length-this.match.length);return(mt.length>20?"...":"")+mt.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var mt=this.match;return mt.length<20&&(mt+=this._input.substr(0,20-mt.length)),(mt.substr(0,20)+(mt.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var mt=this.pastInput(),bt=new Array(mt.length+1).join("-");return mt+this.upcomingInput()+` `+bt+"^"},"showPosition"),test_match:n(function(mt,bt){var Tt,J,te;if(this.options.backtrack_lexer&&(te={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&&(te.yylloc.range=this.yylloc.range.slice(0))),J=mt[0].match(/(?:\r\n?|\n).*/g),J&&(this.yylineno+=J.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:J?J[J.length-1].length-J[J.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+mt[0].length},this.yytext+=mt[0],this.match+=mt[0],this.matches=mt,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(mt[0].length),this.matched+=mt[0],Tt=this.performAction.call(this,this.yy,this,bt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Tt)return Tt;if(this._backtrack){for(var w in te)this[w]=te[w];return!1}return!1},"test_match"),next:n(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var mt,bt,Tt,J;this._more||(this.yytext="",this.match="");for(var te=this._currentRules(),w=0;wbt[0].length)){if(bt=Tt,J=w,this.options.backtrack_lexer){if(mt=this.test_match(Tt,te[w]),mt!==!1)return mt;if(this._backtrack){bt=!1;continue}else return!1}else if(!this.options.flex)break}return bt?(mt=this.test_match(bt,te[J]),mt!==!1?mt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:n(function(){var bt=this.next();return bt||this.lex()},"lex"),begin:n(function(bt){this.conditionStack.push(bt)},"begin"),popState:n(function(){var bt=this.conditionStack.length-1;return bt>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:n(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:n(function(bt){return bt=this.conditionStack.length-1-Math.abs(bt||0),bt>=0?this.conditionStack[bt]:"INITIAL"},"topState"),pushState:n(function(bt){this.begin(bt)},"pushState"),stateStackSize:n(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:n(function(bt,Tt,J,te){var w=te;switch(J){case 0:return this.begin("acc_title"),34;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),36;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),Tt.yytext="",40;break;case 8:return this.pushState("shapeDataStr"),40;break;case 9:return this.popState(),40;break;case 10:let cn=/\n\s*/g;return Tt.yytext=Tt.yytext.replace(cn,"
    "),40;break;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:return bt.lex.firstGraph()&&this.begin("dir"),12;break;case 36:return bt.lex.firstGraph()&&this.begin("dir"),12;break;case 37:return bt.lex.firstGraph()&&this.begin("dir"),12;break;case 38:return 27;case 39:return 32;case 40:return 98;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return this.popState(),13;break;case 45:return this.popState(),14;break;case 46:return this.popState(),14;break;case 47:return this.popState(),14;break;case 48:return this.popState(),14;break;case 49:return this.popState(),14;break;case 50:return this.popState(),14;break;case 51:return this.popState(),14;break;case 52:return this.popState(),14;break;case 53:return this.popState(),14;break;case 54:return this.popState(),14;break;case 55:return 121;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 78;case 60:return 105;case 61:return 111;case 62:return 46;case 63:return 60;case 64:return 44;case 65:return 8;case 66:return 106;case 67:return 115;case 68:return this.popState(),77;break;case 69:return this.pushState("edgeText"),75;break;case 70:return 119;case 71:return this.popState(),77;break;case 72:return this.pushState("thickEdgeText"),75;break;case 73:return 119;case 74:return this.popState(),77;break;case 75:return this.pushState("dottedEdgeText"),75;break;case 76:return 119;case 77:return 77;case 78:return this.popState(),53;break;case 79:return"TEXT";case 80:return this.pushState("ellipseText"),52;break;case 81:return this.popState(),55;break;case 82:return this.pushState("text"),54;break;case 83:return this.popState(),57;break;case 84:return this.pushState("text"),56;break;case 85:return 58;case 86:return this.pushState("text"),67;break;case 87:return this.popState(),64;break;case 88:return this.pushState("text"),63;break;case 89:return this.popState(),49;break;case 90:return this.pushState("text"),48;break;case 91:return this.popState(),69;break;case 92:return this.popState(),71;break;case 93:return 117;case 94:return this.pushState("trapText"),68;break;case 95:return this.pushState("trapText"),70;break;case 96:return 118;case 97:return 67;case 98:return 90;case 99:return"SEP";case 100:return 89;case 101:return 115;case 102:return 111;case 103:return 44;case 104:return 109;case 105:return 114;case 106:return 116;case 107:return this.popState(),62;break;case 108:return this.pushState("text"),62;break;case 109:return this.popState(),51;break;case 110:return this.pushState("text"),50;break;case 111:return this.popState(),31;break;case 112:return this.pushState("text"),29;break;case 113:return this.popState(),66;break;case 114:return this.pushState("text"),65;break;case 115:return"TEXT";case 116:return"QUOTE";case 117:return 9;case 118:return 10;case 119:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},shapeData:{rules:[8,11,12,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},callbackargs:{rules:[17,18,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},callbackname:{rules:[14,15,16,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},href:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},click:{rules:[21,24,33,34,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},dottedEdgeText:{rules:[21,24,74,76,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},thickEdgeText:{rules:[21,24,71,73,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},edgeText:{rules:[21,24,68,70,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},trapText:{rules:[21,24,77,80,82,84,88,90,91,92,93,94,95,108,110,112,114],inclusive:!1},ellipseText:{rules:[21,24,77,78,79,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},text:{rules:[21,24,77,80,81,82,83,84,87,88,89,90,94,95,107,108,109,110,111,112,113,114,115],inclusive:!1},vertex:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},acc_descr:{rules:[3,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},acc_title:{rules:[1,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},md_string:{rules:[19,20,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},string:{rules:[21,22,23,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,71,72,74,75,77,80,82,84,85,86,88,90,94,95,96,97,98,99,100,101,102,103,104,105,106,108,110,112,114,116,117,118,119],inclusive:!0}}};return ae})();yr.lexer=an;function ln(){this.yy={}}return n(ln,"Parser"),ln.prototype=yr,yr.Parser=ln,new ln})();o1.parser=o1;n1=o1});var CF,wF,_F=m(()=>{"use strict";bF();CF=Object.assign({},n1);CF.parse=t=>{let e=t.replace(/}\s*\n/g,`} `);return n1.parse(e)};wF=CF});var SF,kF=m(()=>{"use strict";SF=n(()=>` /* Font Awesome icon styling - consolidated */ .label-icon { display: inline-block; height: 1em; overflow: visible; vertical-align: -0.125em; } .node .label-icon path { fill: currentColor; stroke: revert; stroke-width: revert; } `,"getIconStyles")});var QU,JU,vF,TF=m(()=>{"use strict";so();kF();QU=n((t,e)=>{let r=dp,i=r(t,"r"),o=r(t,"g"),s=r(t,"b");return Yr(i,o,s,e)},"fade"),JU=n(t=>`.label { font-family: ${t.fontFamily}; color: ${t.nodeTextColor||t.textColor}; } .cluster-label text { fill: ${t.titleColor}; } .cluster-label span { color: ${t.titleColor}; } .cluster-label span p { background-color: transparent; } .label text,span { 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; } .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label { 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; } .rough-node .label,.node .label, .image-shape .label, .icon-shape .label { text-align: center; } .node.clickable { cursor: pointer; } .root .anchor path { fill: ${t.lineColor} !important; stroke-width: 0; stroke: ${t.lineColor}; } .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}; p { 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: ${QU(t.edgeLabelBackground,.5)}; // background-color: } .cluster rect { fill: ${t.clusterBkg}; stroke: ${t.clusterBorder}; stroke-width: 1px; } .cluster text { fill: ${t.titleColor}; } .cluster span { 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}; } rect.text { fill: none; stroke-width: 0; } .icon-shape, .image-shape { background-color: ${t.edgeLabelBackground}; p { background-color: ${t.edgeLabelBackground}; padding: 2px; } rect { opacity: 0.5; background-color: ${t.edgeLabelBackground}; fill: ${t.edgeLabelBackground}; } text-align: center; } ${SF()} `,"getStyles"),vF=JU});var EF={};wc(EF,{diagram:()=>tY});var tY,AF=m(()=>{"use strict";Me();wA();yF();_F();TF();tY={parser:wF,get db(){return new Lu},renderer:xF,styles:vF,init:n(t=>{t.flowchart||(t.flowchart={}),t.layout&&td({layout:t.layout}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,td({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}})},"init")}});var HY={};wc(HY,{default:()=>WY});pn();Ip();ns();var MF="flowchart-v2",eY=n((t,e)=>e?.flowchart?.defaultRenderer==="dagre-d3"?!1:(e?.flowchart?.defaultRenderer==="elk"&&(e.layout="elk"),/^\s*graph/.test(t)&&e?.flowchart?.defaultRenderer==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)),"detector"),rY=n(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(AF(),EF));return{id:MF,diagram:t}},"loader"),iY={id:MF,detector:eY,loader:rY},BF=iY;Me();var LF=!1,Js=n(async()=>{if(LF)return;LF=!0;let{id:t,diagram:e}=await BF.loader();ss(t,e,()=>!0)},"addDiagrams");vt();ns();Me();var DF=n(async()=>{S.debug("Loading registered diagrams");let e=(await Promise.allSettled(Object.entries(Ri).map(async([r,{detector:i,loader:o}])=>{if(o)try{Ma(r)}catch{try{let{diagram:s,id:a}=await o();ss(a,s,i)}catch(s){throw S.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Ri[r],s}}}))).filter(r=>r.status==="rejected");if(e.length>0){S.error(`Failed to load ${e.length} external diagrams`);for(let r of e)S.error(r);throw new Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams");vt();je();var Of="comm",Nf="rule",If="decl";var FF="@import";var OF="@namespace",NF="@keyframes";var IF="@layer";var s1=Math.abs,uc=String.fromCharCode;function Rf(t){return t.trim()}n(Rf,"trim");function fc(t,e,r){return t.replace(e,r)}n(fc,"replace");function RF(t,e,r){return t.indexOf(e,r)}n(RF,"indexof");function Qo(t,e){return t.charCodeAt(e)|0}n(Qo,"charat");function Jo(t,e,r){return t.slice(e,r)}n(Jo,"substr");function Ar(t){return t.length}n(Ar,"strlen");function PF(t){return t.length}n(PF,"sizeof");function ta(t,e){return e.push(t),t}n(ta,"append");var Pf=1,ea=1,$F=0,Hr=0,Te=0,ia="";function $f(t,e,r,i,o,s,a,l){return{value:t,root:e,parent:r,type:i,props:o,children:s,line:Pf,column:ea,length:a,return:"",siblings:l}}n($f,"node");function zF(){return Te}n(zF,"char");function jF(){return Te=Hr>0?Qo(ia,--Hr):0,ea--,Te===10&&(ea=1,Pf--),Te}n(jF,"prev");function qr(){return Te=Hr<$F?Qo(ia,Hr++):0,ea++,Te===10&&(ea=1,Pf++),Te}n(qr,"next");function eo(){return Qo(ia,Hr)}n(eo,"peek");function pc(){return Hr}n(pc,"caret");function zf(t,e){return Jo(ia,t,e)}n(zf,"slice");function ra(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}n(ra,"token");function GF(t){return Pf=ea=1,$F=Ar(ia=t),Hr=0,[]}n(GF,"alloc");function WF(t){return ia="",t}n(WF,"dealloc");function jf(t){return Rf(zf(Hr-1,a1(t===91?t+2:t===40?t+1:t)))}n(jf,"delimit");function HF(t){for(;(Te=eo())&&Te<33;)qr();return ra(t)>2||ra(Te)>3?"":" "}n(HF,"whitespace");function qF(t,e){for(;--e&&qr()&&!(Te<48||Te>102||Te>57&&Te<65||Te>70&&Te<97););return zf(t,pc()+(e<6&&eo()==32&&qr()==32))}n(qF,"escaping");function a1(t){for(;qr();)switch(Te){case t:return Hr;case 34:case 39:t!==34&&t!==39&&a1(Te);break;case 40:t===41&&a1(t);break;case 92:qr();break}return Hr}n(a1,"delimiter");function VF(t,e){for(;qr()&&t+Te!==57;)if(t+Te===84&&eo()===47)break;return"/*"+zf(e,Hr-1)+"*"+uc(t===47?t:qr())}n(VF,"commenter");function UF(t){for(;!ra(eo());)qr();return zf(t,Hr)}n(UF,"identifier");function KF(t){return WF(Gf("",null,null,null,[""],t=GF(t),0,[0],t))}n(KF,"compile");function Gf(t,e,r,i,o,s,a,l,c){for(var h=0,u=0,f=a,p=0,d=0,g=0,x=1,y=1,b=1,C=0,k="",T=o,v=s,D=i,B=k;y;)switch(g=C,C=qr()){case 40:if(g!=108&&Qo(B,f-1)==58){RF(B+=fc(jf(C),"&","&\f"),"&\f",s1(h?l[h-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:B+=jf(C);break;case 9:case 10:case 13:case 32:B+=HF(g);break;case 92:B+=qF(pc()-1,7);continue;case 47:switch(eo()){case 42:case 47:ta(oY(VF(qr(),pc()),e,r,c),c),(ra(g||1)==5||ra(eo()||1)==5)&&Ar(B)&&Jo(B,-1,void 0)!==" "&&(B+=" ");break;default:B+="/"}break;case 123*x:l[h++]=Ar(B)*b;case 125*x:case 59:case 0:switch(C){case 0:case 125:y=0;case 59+u:b==-1&&(B=fc(B,/\f/g,"")),d>0&&(Ar(B)-f||x===0&&g===47)&&ta(d>32?XF(B+";",i,r,f-1,c):XF(fc(B," ","")+";",i,r,f-2,c),c);break;case 59:B+=";";default:if(ta(D=YF(B,e,r,h,u,o,l,k,T=[],v=[],f,s),s),C===123)if(u===0)Gf(B,e,D,D,T,s,f,l,v);else{switch(p){case 99:if(Qo(B,3)===110)break;case 108:if(Qo(B,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Gf(t,D,D,i&&ta(YF(t,D,D,0,0,o,l,k,o,T=[],f,v),v),o,v,f,l,i?T:v):Gf(B,D,D,D,[""],v,0,l,v)}}h=u=d=0,x=b=1,k=B="",f=a;break;case 58:f=1+Ar(B),d=g;default:if(x<1){if(C==123)--x;else if(C==125&&x++==0&&jF()==125)continue}switch(B+=uc(C),C*x){case 38:b=u>0?1:(B+="\f",-1);break;case 44:l[h++]=(Ar(B)-1)*b,b=1;break;case 64:eo()===45&&(B+=jf(qr())),p=eo(),u=f=Ar(k=B+=UF(pc())),C++;break;case 45:g===45&&Ar(B)==2&&(x=0)}}return s}n(Gf,"parse");function YF(t,e,r,i,o,s,a,l,c,h,u,f){for(var p=o-1,d=o===0?s:[""],g=PF(d),x=0,y=0,b=0;x0?d[C]+" "+k:fc(k,/&\f/g,d[C])))&&(c[b++]=T);return $f(t,e,r,o===0?Nf:l,c,h,u,f)}n(YF,"ruleset");function oY(t,e,r,i){return $f(t,e,r,Of,uc(zF()),Jo(t,2,-2),0,i)}n(oY,"comment");function XF(t,e,r,i,o){return $f(t,e,r,If,Jo(t,0,i),Jo(t,i+1,-1),i,o)}n(XF,"declaration");function Wf(t,e){for(var r="",i=0;i{let{securityLevel:e}=_t(),r=ft("body");if(e==="sandbox"){let s=ft(`#i${t}`).node()?.contentDocument??document;r=ft(s.body)}return r.select(`#${t}`)},"selectSvgElement");Wc();var aY=n((t,e,r)=>{S.debug(`rendering svg for syntax error `);let i=t8(e),o=i.append("g");i.attr("viewBox","0 0 2412 512"),Ea(i,100,512,!0),o.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"),o.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"),o.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"),o.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"),o.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"),o.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"),o.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"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),lY={draw:aY},e8=lY;var r8=[];var i8=n(()=>{r8.forEach(t=>{t()}),r8=[]},"attachFunctions");vt();var o8=n(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");Gc();Mg();function n8(t){let e=t.match(jc);if(!e)return{text:t,metadata:{}};let r=Gh(e[1],{schema:jh})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};let i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:t.slice(e[0].length),metadata:i}}n(n8,"extractFrontMatter");re();var cY=n(t=>t.replace(/\r\n?/g,` `).replace(/<(\w+)([^>]*)>/g,(e,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),hY=n(t=>{let{text:e,metadata:r}=n8(t),{displayMode:i,title:o,config:s={}}=r;return i&&(s.gantt||(s.gantt={}),s.gantt.displayMode=i),{title:o,config:s,text:e}},"processFrontmatter"),uY=n(t=>{let e=De.detectInit(t)??{},r=De.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:i})=>i==="wrap"):r?.type==="wrap"&&(e.wrap=!0),{text:wv(t),directive:e}},"processDirectives");function c1(t){let e=cY(t),r=hY(e),i=uY(r.text),o=m0(r.config,i.directive);return t=o8(i.text),{code:t,title:r.title,config:o}}n(c1,"preprocessDiagram");$p();Bc();re();function s8(t){let e=new TextEncoder().encode(t),r=Array.from(e,i=>String.fromCodePoint(i)).join("");return btoa(r)}n(s8,"toBase64");var fY=5e4,pY="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",dY="sandbox",mY="loose",gY="http://www.w3.org/2000/svg",xY="http://www.w3.org/1999/xlink",yY="http://www.w3.org/1999/xhtml",bY="100%",CY="100%",wY="border:0;margin:0;",_Y="margin:0",SY="allow-top-navigation-by-user-activation allow-popups",kY='The "iframe" tag is not supported by your browser.',vY=["foreignobject"],TY=["dominant-baseline"];function h8(t){let e=c1(t);return wa(),By(e.config??{}),e}n(h8,"processAndSetConfigs");async function EY(t,e){Js();try{let{code:r,config:i}=h8(t);return{diagramType:(await u8(r)).type,config:i}}catch(r){if(e?.suppressErrors)return!1;throw r}}n(EY,"parse");var a8=n((t,e,r=[])=>` .${t} ${e} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),AY=n((t,e=new Map)=>{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}}`),e instanceof Map){let a=t.htmlLabels??t.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(l=>{zn(l.styles)||a.forEach(c=>{r+=a8(l.id,c,l.styles)}),zn(l.textStyles)||(r+=a8(l.id,"tspan",(l?.textStyles||[]).map(c=>c.replace("color","fill"))))})}return r},"createCssStyles"),MY=n((t,e,r,i)=>{let o=AY(t,r),s=nb(e,o,t.themeVariables);return Wf(KF(`${i}{${s}}`),ZF)},"createUserStyles"),BY=n((t="",e,r)=>{let i=t;return!r&&!e&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=Sr(i),i=i.replace(/
    /g,"
    "),i},"cleanUpSvgCode"),LY=n((t="",e)=>{let r=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":CY,i=s8(`${t}`);return``},"putIntoIFrame"),l8=n((t,e,r,i,o)=>{let s=t.append("div");s.attr("id",r),i&&s.attr("style",i);let a=s.append("svg").attr("id",e).attr("width","100%").attr("xmlns",gY);return o&&a.attr("xmlns:xlink",o),a.append("g"),t},"appendDivSvgG");function c8(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}n(c8,"sandboxedIframe");var DY=n((t,e,r,i)=>{t.getElementById(e)?.remove(),t.getElementById(r)?.remove(),t.getElementById(i)?.remove()},"removeExistingElements"),FY=n(async function(t,e,r){Js();let i=h8(e);e=i.code;let o=ee();S.debug(o),e.length>(o?.maxTextSize??fY)&&(e=pY);let s="#"+t,a="i"+t,l="#"+a,c="d"+t,h="#"+c,u=n(()=>{let A=ft(p?l:h).node();A&&"remove"in A&&A.remove()},"removeTempElements"),f=ft("body"),p=o.securityLevel===dY,d=o.securityLevel===mY,g=o.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),p){let O=c8(ft(r),a);f=ft(O.nodes()[0].contentDocument.body),f.node().style.margin=0}else f=ft(r);l8(f,t,c,`font-family: ${g}`,xY)}else{if(DY(document,t,c,a),p){let O=c8(ft("body"),a);f=ft(O.nodes()[0].contentDocument.body),f.node().style.margin=0}else f=ft("body");l8(f,t,c)}let x,y;try{x=await oa.fromText(e,{title:i.title})}catch(O){if(o.suppressErrorRendering)throw u(),O;x=await oa.fromText("error"),y=O}let b=f.select(h).node(),C=x.type,k=b.firstChild,T=k.firstChild,v=x.renderer.getClasses?.(e,x),D=MY(o,C,v,s),B=document.createElement("style");B.innerHTML=D,k.insertBefore(B,T);try{await x.renderer.draw(e,t,l1.version,x)}catch(O){throw o.suppressErrorRendering?u():e8.draw(e,t,l1.version),O}let R=f.select(`${h} svg`),P=x.db.getAccTitle?.(),U=x.db.getAccDescription?.();NY(C,R,P,U),f.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",yY);let N=f.select(h).node().innerHTML;if(S.debug("config.arrowMarkerAbsolute",o.arrowMarkerAbsolute),N=BY(N,p,Vt(o.arrowMarkerAbsolute)),p){let O=f.select(h+" svg").node();N=LY(N,O)}else d||(N=ho.sanitize(N,{ADD_TAGS:vY,ADD_ATTR:TY,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(i8(),y)throw y;return u(),{diagramType:C,svg:N,bindFunctions:x.db.bindFunctions}},"render");function OY(t={}){let e=_e({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),Ey(e),e?.theme&&e.theme in Or?e.themeVariables=Or[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=Or.default.getThemeVariables(e.themeVariables));let r=typeof e=="object"?_p(e):Sp();da(r.logLevel),Js()}n(OY,"initialize");var u8=n((t,e={})=>{let{code:r}=c1(t);return oa.fromText(r,e)},"getDiagramFromText");function NY(t,e,r,i){QF(e,t),JF(e,r,i,e.attr("id"))}n(NY,"addA11yInfo");var tn=Object.freeze({render:FY,parse:EY,getDiagramFromText:u8,initialize:OY,getConfig:ee,setConfig:Oc,getSiteConfig:Sp,updateSiteConfig:Ay,reset:n(()=>{wa()},"reset"),globalReset:n(()=>{wa(co)},"globalReset"),defaultConfig:co});da(ee().logLevel);wa(ee());i1();re();var IY=n((t,e,r)=>{S.warn(t),d0(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}))},"handleError"),f8=n(async function(t={querySelector:".mermaid"}){try{await RY(t)}catch(e){if(d0(e)&&S.error(e.str),ro.parseError&&ro.parseError(e),!t.suppressErrors)throw S.error("Use the suppressErrors option to suppress these errors"),e}},"run"),RY=n(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){let i=tn.getConfig();S.debug(`${t?"":"No "}Callback function found`);let o;if(r)o=r;else if(e)o=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");S.debug(`Found ${o.length} diagrams`),i?.startOnLoad!==void 0&&(S.debug("Start On Load: "+i?.startOnLoad),tn.updateSiteConfig({startOnLoad:i?.startOnLoad}));let s=new De.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed),a,l=[];for(let c of Array.from(o)){S.info("Rendering diagram: "+c.id);if(c.getAttribute("data-processed"))continue;c.setAttribute("data-processed","true");let h=`mermaid-${s.next()}`;a=c.innerHTML,a=zc(De.entityDecode(a)).trim().replace(//gi,"
    ");let u=De.detectInit(a);u&&S.debug("Detected early reinit: ",u);try{let{svg:f,bindFunctions:p}=await g8(h,a,c);c.innerHTML=f,t&&await t(h),p&&p(c)}catch(f){IY(f,l,ro.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),p8=n(function(t){tn.initialize(t)},"initialize"),PY=n(async function(t,e,r){S.warn("mermaid.init is deprecated. Please use run instead."),t&&p8(t);let i={postRenderCallback:r,querySelector:".mermaid"};typeof e=="string"?i.querySelector=e:e&&(e instanceof HTMLElement?i.nodes=[e]:i.nodes=e),await f8(i)},"init"),$Y=n(async(t,{lazyLoad:e=!0}={})=>{Js(),eb(...t),e===!1&&await DF()},"registerExternalDiagrams"),d8=n(function(){if(ro.startOnLoad){let{startOnLoad:t}=tn.getConfig();t&&ro.run().catch(e=>S.error("Mermaid failed to initialize",e))}},"contentLoaded");if(typeof document<"u"){window.addEventListener("load",d8,!1)}var zY=n(function(t){ro.parseError=t},"setParseErrorHandler"),Hf=[],h1=!1,m8=n(async()=>{if(!h1){for(h1=!0;Hf.length>0;){let t=Hf.shift();if(t)try{await t()}catch(e){S.error("Error executing queue",e)}}h1=!1}},"executeQueue"),jY=n(async(t,e)=>new Promise((r,i)=>{let o=n(()=>new Promise((s,a)=>{tn.parse(t,e).then(l=>{s(l),r(l)},l=>{S.error("Error parsing",l),ro.parseError?.(l),a(l),i(l)})}),"performCall");Hf.push(o),m8().catch(i)}),"parse"),g8=n((t,e,r)=>new Promise((i,o)=>{let s=n(()=>new Promise((a,l)=>{tn.render(t,e,r).then(c=>{a(c),i(c)},c=>{S.error("Error parsing",c),ro.parseError?.(c),l(c),o(c)})}),"performCall");Hf.push(s),m8().catch(o)}),"render"),GY=n(()=>Object.keys(Ri).map(t=>({id:t})),"getRegisteredDiagramsMetadata"),ro={startOnLoad:!0,mermaidAPI:tn,parse:jY,render:g8,init:PY,run:f8,registerExternalDiagrams:$Y,registerLayoutLoaders:r1,initialize:p8,parseError:void 0,contentLoaded:d8,setParseErrorHandler:zY,detectType:os,registerIconPacks:Zy,getRegisteredDiagramsMetadata:GY},WY=ro;return T8(HY);})(); /*! Check if previously processed */ /*! * Wait for document loaded before starting the execution */ /*! Bundled license information: dompurify/dist/purify.es.mjs: (*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE *) js-yaml/dist/js-yaml.mjs: (*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *) lodash-es/lodash.js: (** * @license * Lodash (Custom Build) * Build: `lodash modularize exports="es" -o ./` * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors *) */ globalThis["mermaid"] = globalThis.__esbuild_esm_mermaid_nm["mermaid"].default; const isDarkMode = document.querySelector('body').classList.contains('theme-dark'); mermaid.initialize({ flowchart: { useMaxWidth: true, }, securityLevel: 'loose', theme: 'base', themeVariables: { darkMode: isDarkMode, fontFamily: 'var(--font-family-system)', fontSize: 'var(--font-size-body)', // the properties below don't support CSS variables primaryColor: isDarkMode ? 'lightsteelblue' : 'aliceblue', primaryTextColor: isDarkMode ? '#000' : '#000', primaryBorderColor: isDarkMode ? 'steelblue' : 'lightsteelblue', lineColor: isDarkMode ? '#939393' : '#d4d4d4', secondaryColor: isDarkMode ? 'lightyellow' : 'lightyellow', tertiaryColor: isDarkMode ? 'lightSalmon' : 'lightSalmon', } }); window.showNodeDetailsa3f785e9224a64d74b13c61c32978e0b = function (node) { const map = {"place0":{"workflow.validation_user.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.validation_user.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place1":{"workflow.validation_user.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.validation_user.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place2":{"workflow.validation_user.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.validation_user.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place3":{"workflow.validation_user.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.validation_user.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"transition0":{"workflow.validation_user.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition1":{"workflow.validation_user.guard.to_refuse":[{"title":"Symfony\\Component\\Workflow\\EventListener\\GuardListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/GuardListener.php#L38","guardExpressions":["is_granted('ROLE_ADMIN')"]}],"workflow.validation_user.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition2":{"workflow.validation_user.guard.to_valide":[{"title":"Symfony\\Component\\Workflow\\EventListener\\GuardListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/GuardListener.php#L38","guardExpressions":["is_granted('ROLE_ADMIN')"]}],"workflow.validation_user.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition3":{"workflow.validation_user.guard.to_encours":[{"title":"Symfony\\Component\\Workflow\\EventListener\\GuardListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/GuardListener.php#L38","guardExpressions":["is_granted('ROLE_ADMIN')"]}],"workflow.validation_user.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]}}; showNodeDetails(node, map); }; window.showNodeDetails050703e39013dc41627123aef1f1254a = function (node) { const map = {"place0":{"workflow.logarchive.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.logarchive.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place1":{"workflow.logarchive.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.logarchive.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"transition0":{"workflow.logarchive.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition1":{"workflow.logarchive.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]}}; showNodeDetails(node, map); }; window.showNodeDetailsdbd4e7e80efae3771e2dbae054dbaa73 = function (node) { const map = {"place0":{"workflow.proposition.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.proposition.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place1":{"workflow.proposition.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.proposition.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place2":{"workflow.proposition.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.proposition.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place3":{"workflow.proposition.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.proposition.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"transition0":{"workflow.proposition.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition1":{"workflow.proposition.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition2":{"workflow.proposition.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition3":{"workflow.proposition.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition4":{"workflow.proposition.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]}}; showNodeDetails(node, map); }; window.showNodeDetails330d711ba3f6fff1c45e5372c50f0385 = function (node) { const map = {"place0":{"workflow.payes.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.payes.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place1":{"workflow.payes.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.payes.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place2":{"workflow.payes.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.payes.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place3":{"workflow.payes.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.payes.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place4":{"workflow.payes.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.payes.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"transition0":{"workflow.payes.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition1":{"workflow.payes.guard.valider":[{"title":"Symfony\\Component\\Workflow\\EventListener\\GuardListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/GuardListener.php#L38","guardExpressions":["is_granted('ROLE_ADMIN')"]}],"workflow.payes.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition2":{"workflow.payes.guard.signer":[{"title":"Symfony\\Component\\Workflow\\EventListener\\GuardListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/GuardListener.php#L38","guardExpressions":["is_granted('ROLE_ADMIN')"]}],"workflow.payes.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition3":{"workflow.payes.guard.payer avec signature":[{"title":"Symfony\\Component\\Workflow\\EventListener\\GuardListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/GuardListener.php#L38","guardExpressions":["is_granted('ROLE_ADMIN')"]}],"workflow.payes.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition4":{"workflow.payes.guard.payer sans signature":[{"title":"Symfony\\Component\\Workflow\\EventListener\\GuardListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/GuardListener.php#L38","guardExpressions":["is_granted('ROLE_ADMIN')"]}],"workflow.payes.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition5":{"workflow.payes.guard.Remettre \u00e0 zero":[{"title":"Symfony\\Component\\Workflow\\EventListener\\GuardListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/GuardListener.php#L38","guardExpressions":["is_granted('ROLE_ADMIN')"]}],"workflow.payes.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition6":{"workflow.payes.guard.Remettre \u00e0 editable":[{"title":"Symfony\\Component\\Workflow\\EventListener\\GuardListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/GuardListener.php#L38","guardExpressions":["is_granted('ROLE_ADMIN')"]}],"workflow.payes.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition7":{"workflow.payes.guard.Remettre \u00e0 soumis":[{"title":"Symfony\\Component\\Workflow\\EventListener\\GuardListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/GuardListener.php#L38","guardExpressions":["is_granted('ROLE_ADMIN')"]}],"workflow.payes.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]}}; showNodeDetails(node, map); }; window.showNodeDetails12ab665d7b5b3a8d43184188c1564c8a = function (node) { const map = {"place0":{"workflow.contrat.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.contrat.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place1":{"workflow.contrat.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.contrat.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place2":{"workflow.contrat.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.contrat.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place3":{"workflow.contrat.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.contrat.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place4":{"workflow.contrat.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.contrat.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place5":{"workflow.contrat.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.contrat.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place6":{"workflow.contrat.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.contrat.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place7":{"workflow.contrat.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.contrat.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"transition0":{"workflow.contrat.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition1":{"workflow.contrat.guard.Valider pour devis":[{"title":"Symfony\\Component\\Workflow\\EventListener\\GuardListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/GuardListener.php#L38","guardExpressions":["is_granted('ROLE_ADMIN')"]}],"workflow.contrat.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition2":{"workflow.contrat.guard.Valider pour signature":[{"title":"Symfony\\Component\\Workflow\\EventListener\\GuardListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/GuardListener.php#L38","guardExpressions":["is_granted('ROLE_ADMIN')"]}],"workflow.contrat.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition3":{"workflow.contrat.guard.Refuser":[{"title":"Symfony\\Component\\Workflow\\EventListener\\GuardListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/GuardListener.php#L38","guardExpressions":["is_granted('ROLE_ADMIN')"]}],"workflow.contrat.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition4":{"workflow.contrat.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition5":{"workflow.contrat.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition6":{"workflow.contrat.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition7":{"workflow.contrat.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition8":{"workflow.contrat.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition9":{"workflow.contrat.guard.Archiver contrat":[{"title":"Symfony\\Component\\Workflow\\EventListener\\GuardListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/GuardListener.php#L38","guardExpressions":["is_granted('ROLE_ADMIN')"]}],"workflow.contrat.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition10":{"workflow.contrat.guard.G\u00e9n\u00e9rer un avenant":[{"title":"Symfony\\Component\\Workflow\\EventListener\\GuardListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/GuardListener.php#L38","guardExpressions":["is_granted('ROLE_ADMIN')"]}],"workflow.contrat.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition11":{"workflow.contrat.guard.Valider pour avenant":[{"title":"Symfony\\Component\\Workflow\\EventListener\\GuardListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/GuardListener.php#L38","guardExpressions":["is_granted('ROLE_ADMIN')"]}],"workflow.contrat.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition12":{"workflow.contrat.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition13":{"workflow.contrat.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]}}; showNodeDetails(node, map); }; window.showNodeDetails208ad78ac76d66273b55c0d47aadc930 = function (node) { const map = {"place0":{"workflow.frais.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.frais.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place1":{"workflow.frais.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.frais.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place2":{"workflow.frais.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.frais.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place3":{"workflow.frais.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.frais.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place4":{"workflow.frais.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.frais.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place5":{"workflow.frais.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.frais.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"transition0":{"workflow.frais.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition1":{"workflow.frais.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition2":{"workflow.frais.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition3":{"workflow.frais.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition4":{"workflow.frais.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition5":{"workflow.frais.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]}}; showNodeDetails(node, map); }; window.showNodeDetailsde5940cab2a75726d8c7d596ba932469 = function (node) { const map = {"place0":{"workflow.facture.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.facture.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place1":{"workflow.facture.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.facture.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place2":{"workflow.facture.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.facture.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place3":{"workflow.facture.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.facture.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place4":{"workflow.facture.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.facture.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place5":{"workflow.facture.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.facture.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"place6":{"workflow.facture.leave":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onLeave()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L28"}],"workflow.facture.enter":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onEnter()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L40"}]},"transition0":{"workflow.facture.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition1":{"workflow.facture.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition2":{"workflow.facture.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition3":{"workflow.facture.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition4":{"workflow.facture.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition5":{"workflow.facture.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition6":{"workflow.facture.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]},"transition7":{"workflow.facture.transition":[{"title":"Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener::onTransition()","file":"file:\/\/\/var\/www\/vhosts\/arinao.fr\/recette.arinao.fr\/vendor\/symfony\/workflow\/EventListener\/AuditTrailListener.php#L35"}]}}; showNodeDetails(node, map); }; const showNodeDetails = function (node, map) { const dialog = document.getElementById('detailsDialog'); dialog.querySelector('tbody').innerHTML = ''; for (const [eventName, listeners] of Object.entries(map[node])) { listeners.forEach(listener => { const row = document.createElement('tr'); const eventNameCode = document.createElement('code'); eventNameCode.textContent = eventName; const eventNameCell = document.createElement('td'); eventNameCell.appendChild(eventNameCode); row.appendChild(eventNameCell); const listenerDetailsCell = document.createElement('td'); row.appendChild(listenerDetailsCell); let listenerDetails; const listenerDetailsCode = document.createElement('code'); listenerDetailsCode.textContent = listener.title; if (listener.file) { const link = document.createElement('a'); link.href = listener.file; link.appendChild(listenerDetailsCode); listenerDetails = link; } else { listenerDetails = listenerDetailsCode; } listenerDetailsCell.appendChild(listenerDetails); if (typeof listener.guardExpressions === 'object') { listenerDetailsCell.appendChild(document.createElement('br')); const guardExpressionsWrapper = document.createElement('span'); guardExpressionsWrapper.appendChild(document.createTextNode('guard expressions: ')); listener.guardExpressions.forEach((expression, index) => { if (index > 0) { guardExpressionsWrapper.appendChild(document.createTextNode(', ')); } const expressionCode = document.createElement('code'); expressionCode.textContent = expression; guardExpressionsWrapper.appendChild(expressionCode); }); listenerDetailsCell.appendChild(guardExpressionsWrapper); } dialog.querySelector('tbody').appendChild(row); }); }; if (dialog.dataset.processed) { dialog.showModal(); return; } dialog.addEventListener('click', (e) => { const rect = dialog.getBoundingClientRect(); const inDialog = rect.top <= e.clientY && e.clientY <= rect.top + rect.height && rect.left <= e.clientX && e.clientX <= rect.left + rect.width; !inDialog && dialog.close(); }); dialog.querySelectorAll('.cancel').forEach(elt => { elt.addEventListener('click', () => dialog.close()); }); dialog.showModal(); dialog.dataset.processed = true; }; // We do not load all mermaid diagrams at once, but only when the tab is opened // This is because mermaid diagrams are in a tab, and cannot be renderer with a // "good size" if they are not visible document.addEventListener('DOMContentLoaded', () => { document.querySelectorAll('.tab').forEach((el) => { const observer = new MutationObserver(() => { if (!el.classList.contains('block')) { return; } const mEl = el.querySelector('.sf-mermaid'); if (mEl.dataset.processed) { return; } mermaid.run({ nodes: [mEl], }); }); observer.observe(el, { attributeFilter: ['class'] }); }); });

    logarchive

    Definition

                                graph LR
    place0(["new"])
    place1(("archive"))
    transition0["to_archive"]
    place0-->transition0
    transition0-->place1
    transition1["to_new"]
    place1-->transition1
    transition1-->place0
                                                                click place0 showNodeDetails050703e39013dc41627123aef1f1254a
                                                                click place1 showNodeDetails050703e39013dc41627123aef1f1254a
                                                                click transition0 showNodeDetails050703e39013dc41627123aef1f1254a
                                                                click transition1 showNodeDetails050703e39013dc41627123aef1f1254a
                                                        
    View on mermaid.live

    Calls

    # Call Args Return Exception Duration

    proposition

    Definition

                                graph LR
    place0(["nouveau"])
    place1(("attente_de_reponse"))
    place2(("valide"))
    place3(("refuse"))
    transition0["attente de reponse"]
    place0-->transition0
    transition0-->place1
    transition1["validé"]
    place1-->transition1
    transition1-->place2
    transition2["refuse"]
    place1-->transition2
    transition2-->place3
    transition3["refus vers nouveau"]
    place3-->transition3
    transition3-->place0
    transition4["remettre en nouveau"]
    place2-->transition4
    transition4-->place0
                                                                click place0 showNodeDetailsdbd4e7e80efae3771e2dbae054dbaa73
                                                                click place1 showNodeDetailsdbd4e7e80efae3771e2dbae054dbaa73
                                                                click place2 showNodeDetailsdbd4e7e80efae3771e2dbae054dbaa73
                                                                click place3 showNodeDetailsdbd4e7e80efae3771e2dbae054dbaa73
                                                                click transition0 showNodeDetailsdbd4e7e80efae3771e2dbae054dbaa73
                                                                click transition1 showNodeDetailsdbd4e7e80efae3771e2dbae054dbaa73
                                                                click transition2 showNodeDetailsdbd4e7e80efae3771e2dbae054dbaa73
                                                                click transition3 showNodeDetailsdbd4e7e80efae3771e2dbae054dbaa73
                                                                click transition4 showNodeDetailsdbd4e7e80efae3771e2dbae054dbaa73
                                                        
    View on mermaid.live

    Calls

    # Call Args Return Exception Duration

    payes

    Definition

                                graph LR
    place0(["editable"])
    place1(("soumis"))
    place2(("validé"))
    place3(("signé"))
    place4(("payé"))
    transition0["soumettre"]
    place0-->transition0
    transition0-->place1
    transition1["valider"]
    place1-->transition1
    transition1-->place2
    transition2["signer"]
    place2-->transition2
    transition2-->place3
    transition3["payer avec signature"]
    place3-->transition3
    transition3-->place4
    transition4["payer sans signature"]
    place2-->transition4
    transition4-->place4
    transition5["Remettre à zero"]
    place4-->transition5
    transition5-->place0
    transition6["Remettre à editable"]
    place1-->transition6
    transition6-->place0
    transition7["Remettre à soumis"]
    place2-->transition7
    transition7-->place1
                                                                click place0 showNodeDetails330d711ba3f6fff1c45e5372c50f0385
                                                                click place1 showNodeDetails330d711ba3f6fff1c45e5372c50f0385
                                                                click place2 showNodeDetails330d711ba3f6fff1c45e5372c50f0385
                                                                click place3 showNodeDetails330d711ba3f6fff1c45e5372c50f0385
                                                                click place4 showNodeDetails330d711ba3f6fff1c45e5372c50f0385
                                                                click transition0 showNodeDetails330d711ba3f6fff1c45e5372c50f0385
                                                                click transition1 showNodeDetails330d711ba3f6fff1c45e5372c50f0385
                                                                click transition2 showNodeDetails330d711ba3f6fff1c45e5372c50f0385
                                                                click transition3 showNodeDetails330d711ba3f6fff1c45e5372c50f0385
                                                                click transition4 showNodeDetails330d711ba3f6fff1c45e5372c50f0385
                                                                click transition5 showNodeDetails330d711ba3f6fff1c45e5372c50f0385
                                                                click transition6 showNodeDetails330d711ba3f6fff1c45e5372c50f0385
                                                                click transition7 showNodeDetails330d711ba3f6fff1c45e5372c50f0385
                                                        
    View on mermaid.live

    Calls

    # Call Args Return Exception Duration

    contrat

    Definition

                                graph LR
    place0(["conception"])
    place1(("en cours de validation"))
    place2(("en attente acceptation du devis"))
    place3(("en attente signature du contrat"))
    place4(("signé"))
    place5(("archivé"))
    place6(("avenant"))
    place7(("en attente signature avenant"))
    transition0["Demander la validation"]
    place0-->transition0
    transition0-->place1
    transition1["Valider pour devis"]
    place1-->transition1
    transition1-->place2
    transition2["Valider pour signature"]
    place1-->transition2
    transition2-->place3
    transition3["Refuser"]
    place1-->transition3
    transition3-->place0
    transition4["Valider devis"]
    place2-->transition4
    transition4-->place0
    transition5["Refuser devis"]
    place2-->transition5
    transition5-->place0
    transition6["Signer contrat"]
    place3-->transition6
    transition6-->place4
    transition7["Refuser contrat"]
    place3-->transition7
    transition7-->place0
    transition8["Annuler contrat"]
    place4-->transition8
    transition8-->place0
    transition9["Archiver contrat"]
    place4-->transition9
    transition9-->place5
    transition10["Générer un avenant"]
    place4-->transition10
    transition10-->place6
    transition11["Valider pour avenant"]
    place6-->transition11
    transition11-->place7
    transition12["Signer avenant"]
    place7-->transition12
    transition12-->place4
    transition13["Refuser avenant"]
    place7-->transition13
    transition13-->place6
                                                                click place0 showNodeDetails12ab665d7b5b3a8d43184188c1564c8a
                                                                click place1 showNodeDetails12ab665d7b5b3a8d43184188c1564c8a
                                                                click place2 showNodeDetails12ab665d7b5b3a8d43184188c1564c8a
                                                                click place3 showNodeDetails12ab665d7b5b3a8d43184188c1564c8a
                                                                click place4 showNodeDetails12ab665d7b5b3a8d43184188c1564c8a
                                                                click place5 showNodeDetails12ab665d7b5b3a8d43184188c1564c8a
                                                                click place6 showNodeDetails12ab665d7b5b3a8d43184188c1564c8a
                                                                click place7 showNodeDetails12ab665d7b5b3a8d43184188c1564c8a
                                                                click transition0 showNodeDetails12ab665d7b5b3a8d43184188c1564c8a
                                                                click transition1 showNodeDetails12ab665d7b5b3a8d43184188c1564c8a
                                                                click transition2 showNodeDetails12ab665d7b5b3a8d43184188c1564c8a
                                                                click transition3 showNodeDetails12ab665d7b5b3a8d43184188c1564c8a
                                                                click transition4 showNodeDetails12ab665d7b5b3a8d43184188c1564c8a
                                                                click transition5 showNodeDetails12ab665d7b5b3a8d43184188c1564c8a
                                                                click transition6 showNodeDetails12ab665d7b5b3a8d43184188c1564c8a
                                                                click transition7 showNodeDetails12ab665d7b5b3a8d43184188c1564c8a
                                                                click transition8 showNodeDetails12ab665d7b5b3a8d43184188c1564c8a
                                                                click transition9 showNodeDetails12ab665d7b5b3a8d43184188c1564c8a
                                                                click transition10 showNodeDetails12ab665d7b5b3a8d43184188c1564c8a
                                                                click transition11 showNodeDetails12ab665d7b5b3a8d43184188c1564c8a
                                                                click transition12 showNodeDetails12ab665d7b5b3a8d43184188c1564c8a
                                                                click transition13 showNodeDetails12ab665d7b5b3a8d43184188c1564c8a
                                                        
    View on mermaid.live

    Calls

    # Call Args Return Exception Duration

    frais

    Definition

                                graph LR
    place0(["brouillon"])
    place1(("à traiter"))
    place2(("à commander"))
    place3(("traitement en cours"))
    place4(("à payer"))
    place5(("payé"))
    transition0["Demander le traitement"]
    place0-->transition0
    transition0-->place1
    transition1["Refuser le traitement"]
    place1-->transition1
    transition1-->place0
    transition2["Accepter le traitement"]
    place1-->transition2
    transition2-->place2
    transition3["Correction"]
    place3-->transition3
    transition3-->place2
    transition4["Passer la commande"]
    place2-->transition4
    transition4-->place4
    transition5["Valider le paiement"]
    place4-->transition5
    transition5-->place5
                                                                click place0 showNodeDetails208ad78ac76d66273b55c0d47aadc930
                                                                click place1 showNodeDetails208ad78ac76d66273b55c0d47aadc930
                                                                click place2 showNodeDetails208ad78ac76d66273b55c0d47aadc930
                                                                click place3 showNodeDetails208ad78ac76d66273b55c0d47aadc930
                                                                click place4 showNodeDetails208ad78ac76d66273b55c0d47aadc930
                                                                click place5 showNodeDetails208ad78ac76d66273b55c0d47aadc930
                                                                click transition0 showNodeDetails208ad78ac76d66273b55c0d47aadc930
                                                                click transition1 showNodeDetails208ad78ac76d66273b55c0d47aadc930
                                                                click transition2 showNodeDetails208ad78ac76d66273b55c0d47aadc930
                                                                click transition3 showNodeDetails208ad78ac76d66273b55c0d47aadc930
                                                                click transition4 showNodeDetails208ad78ac76d66273b55c0d47aadc930
                                                                click transition5 showNodeDetails208ad78ac76d66273b55c0d47aadc930
                                                        
    View on mermaid.live

    Calls

    # Call Args Return Exception Duration

    facture

    Definition

                                graph LR
    place0(["initial"])
    place1(("previsionnel"))
    place2(("transforme"))
    place3(("brouillon"))
    place4(("traitement_en_cours"))
    place5(("paye"))
    place6(("cloture"))
    transition0["Prérarer les modalites"]
    place0-->transition0
    transition0-->place1
    transition1["Transformer les modalites"]
    place1-->transition1
    transition1-->place2
    transition2["Préparer la facture"]
    place0-->transition2
    transition2-->place3
    transition3["Générer la facture"]
    place3-->transition3
    transition3-->place4
    transition4["Valider la facture"]
    place4-->transition4
    transition4-->place5
    transition5["Cloturer facture"]
    place4-->transition5
    transition5-->place6
    transition6["Cloturer avoir"]
    place0-->transition6
    transition6-->place6
    transition7["Payer avoir"]
    place0-->transition7
    transition7-->place5
                                                                click place0 showNodeDetailsde5940cab2a75726d8c7d596ba932469
                                                                click place1 showNodeDetailsde5940cab2a75726d8c7d596ba932469
                                                                click place2 showNodeDetailsde5940cab2a75726d8c7d596ba932469
                                                                click place3 showNodeDetailsde5940cab2a75726d8c7d596ba932469
                                                                click place4 showNodeDetailsde5940cab2a75726d8c7d596ba932469
                                                                click place5 showNodeDetailsde5940cab2a75726d8c7d596ba932469
                                                                click place6 showNodeDetailsde5940cab2a75726d8c7d596ba932469
                                                                click transition0 showNodeDetailsde5940cab2a75726d8c7d596ba932469
                                                                click transition1 showNodeDetailsde5940cab2a75726d8c7d596ba932469
                                                                click transition2 showNodeDetailsde5940cab2a75726d8c7d596ba932469
                                                                click transition3 showNodeDetailsde5940cab2a75726d8c7d596ba932469
                                                                click transition4 showNodeDetailsde5940cab2a75726d8c7d596ba932469
                                                                click transition5 showNodeDetailsde5940cab2a75726d8c7d596ba932469
                                                                click transition6 showNodeDetailsde5940cab2a75726d8c7d596ba932469
                                                                click transition7 showNodeDetailsde5940cab2a75726d8c7d596ba932469
                                                        
    View on mermaid.live

    Calls

    # Call Args Return Exception Duration

    Event listeners ×

    event listener
    esc