(self.webpackChunk=self.webpackChunk||[]).push([["mermaid"],{"./node_modules/@braintree/sanitize-url/dist/index.js":function(mt,D){"use strict";var f;f={value:!0},D.Jf=D.dz=void 0;var B=/^([^\w]*)(javascript|data|vbscript)/im,E=/&#(\w+)(^\w|;)?/g,P=/&(newline|tab);/gi,A=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,M=/^.+(:|:)/gim,$=[".","/"];D.dz="about:blank";function W(k){return $.indexOf(k[0])>-1}function q(k){var I=k.replace(A,"");return I.replace(E,function(et,J){return String.fromCharCode(J)})}function m(k){if(!k)return D.dz;var I=q(k).replace(P,"").replace(A,"").trim();if(!I)return D.dz;if(W(I))return I;var et=I.match(M);if(!et)return I;var J=et[0];return B.test(J)?D.dz:I}D.Jf=m},"./node_modules/dompurify/dist/purify.js":function(mt){(function(D,f){mt.exports=f()})(this,function(){"use strict";const{entries:D,setPrototypeOf:f,isFrozen:B,getPrototypeOf:E,getOwnPropertyDescriptor:P}=Object;let{freeze:A,seal:M,create:$}=Object,{apply:W,construct:q}=typeof Reflect<"u"&&Reflect;A||(A=function(Tt){return Tt}),M||(M=function(Tt){return Tt}),W||(W=function(Tt,Wt,zt){return Tt.apply(Wt,zt)}),q||(q=function(Tt,Wt){return new Tt(...Wt)});const m=St(Array.prototype.forEach),k=St(Array.prototype.pop),I=St(Array.prototype.push),et=St(String.prototype.toLowerCase),J=St(String.prototype.toString),b=St(String.prototype.match),j=St(String.prototype.replace),R=St(String.prototype.indexOf),at=St(String.prototype.trim),dt=St(Object.prototype.hasOwnProperty),gt=St(RegExp.prototype.test),Ct=me(TypeError);function St(Yt){return function(Tt){for(var Wt=arguments.length,zt=new Array(Wt>1?Wt-1:0),_e=1;_e2&&arguments[2]!==void 0?arguments[2]:et;f&&f(Yt,null);let zt=Tt.length;for(;zt--;){let _e=Tt[zt];if(typeof _e=="string"){const We=Wt(_e);We!==_e&&(B(Tt)||(Tt[zt]=We),_e=We)}Yt[_e]=!0}return Yt}function Kt(Yt){for(let Tt=0;Tt/gm),_t=M(/\${[\w\W]*}/gm),Bt=M(/^data-[\-\w.\u00B7-\uFFFF]/),Ut=M(/^aria-[\-\w]+$/),se=M(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Sr=M(/^(?:\w+script|data):/i),je=M(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qe=M(/^html$/i),wr=M(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ne=Object.freeze({__proto__:null,MUSTACHE_EXPR:pe,ERB_EXPR:we,TMPLIT_EXPR:_t,DATA_ATTR:Bt,ARIA_ATTR:Ut,IS_ALLOWED_URI:se,IS_SCRIPT_OR_DATA:Sr,ATTR_WHITESPACE:je,DOCTYPE_NAME:Qe,CUSTOM_ELEMENT:wr});const Ei=function(){return typeof window>"u"?null:window},_i=function(Tt,Wt){if(typeof Tt!="object"||typeof Tt.createPolicy!="function")return null;let zt=null;const _e="data-tt-policy-suffix";Wt&&Wt.hasAttribute(_e)&&(zt=Wt.getAttribute(_e));const We="dompurify"+(zt?"#"+zt:"");try{return Tt.createPolicy(We,{createHTML(yi){return yi},createScriptURL(yi){return yi}})}catch{return console.warn("TrustedTypes policy "+We+" could not be created."),null}};function Kn(){let Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ei();const Tt=bt=>Kn(bt);if(Tt.version="3.1.0",Tt.removed=[],!Yt||!Yt.document||Yt.document.nodeType!==9)return Tt.isSupported=!1,Tt;let{document:Wt}=Yt;const zt=Wt,_e=zt.currentScript,{DocumentFragment:We,HTMLTemplateElement:yi,Node:Fe,Element:Qt,NodeFilter:oi,NamedNodeMap:qr=Yt.NamedNodeMap||Yt.MozNamedAttrMap,HTMLFormElement:Oo,DOMParser:Is,trustedTypes:Gr}=Yt,Vr=Qt.prototype,Xe=Ve(Vr,"cloneNode"),Li=Ve(Vr,"nextSibling"),Kr=Ve(Vr,"childNodes"),or=Ve(Vr,"parentNode");if(typeof yi=="function"){const bt=Wt.createElement("template");bt.content&&bt.content.ownerDocument&&(Wt=bt.content.ownerDocument)}let be,sr="";const{implementation:Ci,createNodeIterator:Xr,createDocumentFragment:Ps,getElementsByTagName:Do}=Wt,{importNode:Io}=zt;let ti={};Tt.isSupported=typeof D=="function"&&typeof or=="function"&&Ci&&Ci.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:$i,ERB_EXPR:Zr,TMPLIT_EXPR:Br,DATA_ATTR:Xn,ARIA_ATTR:Jr,IS_SCRIPT_OR_DATA:Zn,ATTR_WHITESPACE:Jn,CUSTOM_ELEMENT:Qn}=Ne;let{IS_ALLOWED_URI:Qr}=Ne,ie=null;const At=ct({},[...Ke,...$t,...Ue,...Si,...wi]);let ue=null;const He=ct({},[...Bi,...qt,...Gt,...Jt]);let re=Object.seal($(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Er=null,vn=null,to=!0,tn=!0,Tn=!1,zi=!0,ar=!1,eo=!0,Mi=!1,An=!1,en=!1,lr=!1,cr=!1,rn=!1,io=!0,ro=!1;const kn="user-content-";let Sn=!0,Lr=!1,Ui={},Fi=null;const nn=ct({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let no=null;const on=ct({},["audio","video","img","source","image","track"]);let hr=null;const Oe=ct({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Wi="http://www.w3.org/1998/Math/MathML",Hi="http://www.w3.org/2000/svg",ei="http://www.w3.org/1999/xhtml";let de=ei,sn=!1,wn=null;const Mr=ct({},[Wi,Hi,ei],J);let ur=null;const oo=["application/xhtml+xml","text/html"],an="text/html";let xe=null,Fr=null;const si=Wt.createElement("form"),ai=function(v){return v instanceof RegExp||v instanceof Function},bi=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Fr&&Fr===v)){if((!v||typeof v!="object")&&(v={}),v=ge(v),ur=oo.indexOf(v.PARSER_MEDIA_TYPE)===-1?an:v.PARSER_MEDIA_TYPE,xe=ur==="application/xhtml+xml"?J:et,ie=dt(v,"ALLOWED_TAGS")?ct({},v.ALLOWED_TAGS,xe):At,ue=dt(v,"ALLOWED_ATTR")?ct({},v.ALLOWED_ATTR,xe):He,wn=dt(v,"ALLOWED_NAMESPACES")?ct({},v.ALLOWED_NAMESPACES,J):Mr,hr=dt(v,"ADD_URI_SAFE_ATTR")?ct(ge(Oe),v.ADD_URI_SAFE_ATTR,xe):Oe,no=dt(v,"ADD_DATA_URI_TAGS")?ct(ge(on),v.ADD_DATA_URI_TAGS,xe):on,Fi=dt(v,"FORBID_CONTENTS")?ct({},v.FORBID_CONTENTS,xe):nn,Er=dt(v,"FORBID_TAGS")?ct({},v.FORBID_TAGS,xe):{},vn=dt(v,"FORBID_ATTR")?ct({},v.FORBID_ATTR,xe):{},Ui=dt(v,"USE_PROFILES")?v.USE_PROFILES:!1,to=v.ALLOW_ARIA_ATTR!==!1,tn=v.ALLOW_DATA_ATTR!==!1,Tn=v.ALLOW_UNKNOWN_PROTOCOLS||!1,zi=v.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ar=v.SAFE_FOR_TEMPLATES||!1,eo=v.SAFE_FOR_XML!==!1,Mi=v.WHOLE_DOCUMENT||!1,lr=v.RETURN_DOM||!1,cr=v.RETURN_DOM_FRAGMENT||!1,rn=v.RETURN_TRUSTED_TYPE||!1,en=v.FORCE_BODY||!1,io=v.SANITIZE_DOM!==!1,ro=v.SANITIZE_NAMED_PROPS||!1,Sn=v.KEEP_CONTENT!==!1,Lr=v.IN_PLACE||!1,Qr=v.ALLOWED_URI_REGEXP||se,de=v.NAMESPACE||ei,re=v.CUSTOM_ELEMENT_HANDLING||{},v.CUSTOM_ELEMENT_HANDLING&&ai(v.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(re.tagNameCheck=v.CUSTOM_ELEMENT_HANDLING.tagNameCheck),v.CUSTOM_ELEMENT_HANDLING&&ai(v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(re.attributeNameCheck=v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),v.CUSTOM_ELEMENT_HANDLING&&typeof v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(re.allowCustomizedBuiltInElements=v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ar&&(tn=!1),cr&&(lr=!0),Ui&&(ie=ct({},wi),ue=[],Ui.html===!0&&(ct(ie,Ke),ct(ue,Bi)),Ui.svg===!0&&(ct(ie,$t),ct(ue,qt),ct(ue,Jt)),Ui.svgFilters===!0&&(ct(ie,Ue),ct(ue,qt),ct(ue,Jt)),Ui.mathMl===!0&&(ct(ie,Si),ct(ue,Gt),ct(ue,Jt))),v.ADD_TAGS&&(ie===At&&(ie=ge(ie)),ct(ie,v.ADD_TAGS,xe)),v.ADD_ATTR&&(ue===He&&(ue=ge(ue)),ct(ue,v.ADD_ATTR,xe)),v.ADD_URI_SAFE_ATTR&&ct(hr,v.ADD_URI_SAFE_ATTR,xe),v.FORBID_CONTENTS&&(Fi===nn&&(Fi=ge(Fi)),ct(Fi,v.FORBID_CONTENTS,xe)),Sn&&(ie["#text"]=!0),Mi&&ct(ie,["html","head","body"]),ie.table&&(ct(ie,["tbody"]),delete Er.tbody),v.TRUSTED_TYPES_POLICY){if(typeof v.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ct('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof v.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ct('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');be=v.TRUSTED_TYPES_POLICY,sr=be.createHTML("")}else be===void 0&&(be=_i(Gr,_e)),be!==null&&typeof sr=="string"&&(sr=be.createHTML(""));A&&A(v),Fr=v}},Yi=ct({},["mi","mo","mn","ms","mtext"]),dr=ct({},["foreignobject","desc","title","annotation-xml"]),Bn=ct({},["title","style","font","a","script"]),Oi=ct({},[...$t,...Ue,...nr]),fr=ct({},[...Si,...Ri]),Or=function(v){let X=or(v);(!X||!X.tagName)&&(X={namespaceURI:de,tagName:"template"});const pt=et(v.tagName),te=et(X.tagName);return wn[v.namespaceURI]?v.namespaceURI===Hi?X.namespaceURI===ei?pt==="svg":X.namespaceURI===Wi?pt==="svg"&&(te==="annotation-xml"||Yi[te]):!!Oi[pt]:v.namespaceURI===Wi?X.namespaceURI===ei?pt==="math":X.namespaceURI===Hi?pt==="math"&&dr[te]:!!fr[pt]:v.namespaceURI===ei?X.namespaceURI===Hi&&!dr[te]||X.namespaceURI===Wi&&!Yi[te]?!1:!fr[pt]&&(Bn[pt]||!Oi[pt]):!!(ur==="application/xhtml+xml"&&wn[v.namespaceURI]):!1},ye=function(v){I(Tt.removed,{element:v});try{v.parentNode.removeChild(v)}catch{v.remove()}},mr=function(v,X){try{I(Tt.removed,{attribute:X.getAttributeNode(v),from:X})}catch{I(Tt.removed,{attribute:null,from:X})}if(X.removeAttribute(v),v==="is"&&!ue[v])if(lr||cr)try{ye(X)}catch{}else try{X.setAttribute(v,"")}catch{}},qi=function(v){let X=null,pt=null;if(en)v=""+v;else{const Te=b(v,/^[\r\n\t ]+/);pt=Te&&Te[0]}ur==="application/xhtml+xml"&&de===ei&&(v=''+v+"");const te=be?be.createHTML(v):v;if(de===ei)try{X=new Is().parseFromString(te,ur)}catch{}if(!X||!X.documentElement){X=Ci.createDocument(de,"template",null);try{X.documentElement.innerHTML=sn?sr:te}catch{}}const ve=X.body||X.documentElement;return v&&pt&&ve.insertBefore(Wt.createTextNode(pt),ve.childNodes[0]||null),de===ei?Do.call(X,Mi?"html":"body")[0]:Mi?X.documentElement:ve},Di=function(v){return Xr.call(v.ownerDocument||v,v,oi.SHOW_ELEMENT|oi.SHOW_COMMENT|oi.SHOW_TEXT|oi.SHOW_PROCESSING_INSTRUCTION|oi.SHOW_CDATA_SECTION,null)},gr=function(v){return v instanceof Oo&&(typeof v.nodeName!="string"||typeof v.textContent!="string"||typeof v.removeChild!="function"||!(v.attributes instanceof qr)||typeof v.removeAttribute!="function"||typeof v.setAttribute!="function"||typeof v.namespaceURI!="string"||typeof v.insertBefore!="function"||typeof v.hasChildNodes!="function")},En=function(v){return typeof Fe=="function"&&v instanceof Fe},Ye=function(v,X,pt){ti[v]&&m(ti[v],te=>{te.call(Tt,X,pt,Fr)})},Ln=function(v){let X=null;if(Ye("beforeSanitizeElements",v,null),gr(v))return ye(v),!0;const pt=xe(v.nodeName);if(Ye("uponSanitizeElement",v,{tagName:pt,allowedTags:ie}),v.hasChildNodes()&&!En(v.firstElementChild)&>(/<[/\w]/g,v.innerHTML)&>(/<[/\w]/g,v.textContent)||v.nodeType===7||eo&&v.nodeType===8&>(/<[/\w]/g,v.data))return ye(v),!0;if(!ie[pt]||Er[pt]){if(!Er[pt]&&Ce(pt)&&(re.tagNameCheck instanceof RegExp&>(re.tagNameCheck,pt)||re.tagNameCheck instanceof Function&&re.tagNameCheck(pt)))return!1;if(Sn&&!Fi[pt]){const te=or(v)||v.parentNode,ve=Kr(v)||v.childNodes;if(ve&&te){const Te=ve.length;for(let Be=Te-1;Be>=0;--Be)te.insertBefore(Xe(ve[Be],!0),Li(v))}}return ye(v),!0}return v instanceof Qt&&!Or(v)||(pt==="noscript"||pt==="noembed"||pt==="noframes")&>(/<\/no(script|embed|frames)/i,v.innerHTML)?(ye(v),!0):(ar&&v.nodeType===3&&(X=v.textContent,m([$i,Zr,Br],te=>{X=j(X,te," ")}),v.textContent!==X&&(I(Tt.removed,{element:v.cloneNode()}),v.textContent=X)),Ye("afterSanitizeElements",v,null),!1)},ln=function(v,X,pt){if(io&&(X==="id"||X==="name")&&(pt in Wt||pt in si))return!1;if(!(tn&&!vn[X]&>(Xn,X))){if(!(to&>(Jr,X))){if(!ue[X]||vn[X]){if(!(Ce(v)&&(re.tagNameCheck instanceof RegExp&>(re.tagNameCheck,v)||re.tagNameCheck instanceof Function&&re.tagNameCheck(v))&&(re.attributeNameCheck instanceof RegExp&>(re.attributeNameCheck,X)||re.attributeNameCheck instanceof Function&&re.attributeNameCheck(X))||X==="is"&&re.allowCustomizedBuiltInElements&&(re.tagNameCheck instanceof RegExp&>(re.tagNameCheck,pt)||re.tagNameCheck instanceof Function&&re.tagNameCheck(pt))))return!1}else if(!hr[X]){if(!gt(Qr,j(pt,Jn,""))){if(!((X==="src"||X==="xlink:href"||X==="href")&&v!=="script"&&R(pt,"data:")===0&&no[v])){if(!(Tn&&!gt(Zn,j(pt,Jn,"")))){if(pt)return!1}}}}}}return!0},Ce=function(v){return v!=="annotation-xml"&&b(v,Qn)},Mn=function(v){Ye("beforeSanitizeAttributes",v,null);const{attributes:X}=v;if(!X)return;const pt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ue};let te=X.length;for(;te--;){const ve=X[te],{name:Te,namespaceURI:Be,value:xi}=ve,Gi=xe(Te);let Ee=Te==="value"?xi:at(xi);if(pt.attrName=Gi,pt.attrValue=Ee,pt.keepAttr=!0,pt.forceKeepAttr=void 0,Ye("uponSanitizeAttribute",v,pt),Ee=pt.attrValue,pt.forceKeepAttr||(mr(Te,v),!pt.keepAttr))continue;if(!zi&>(/\/>/i,Ee)){mr(Te,v);continue}ar&&m([$i,Zr,Br],_r=>{Ee=j(Ee,_r," ")});const pr=xe(v.nodeName);if(ln(pr,Gi,Ee)){if(ro&&(Gi==="id"||Gi==="name")&&(mr(Te,v),Ee=kn+Ee),be&&typeof Gr=="object"&&typeof Gr.getAttributeType=="function"&&!Be)switch(Gr.getAttributeType(pr,Gi)){case"TrustedHTML":{Ee=be.createHTML(Ee);break}case"TrustedScriptURL":{Ee=be.createScriptURL(Ee);break}}try{Be?v.setAttributeNS(Be,Te,Ee):v.setAttribute(Te,Ee),k(Tt.removed)}catch{}}}Ye("afterSanitizeAttributes",v,null)},Po=function bt(v){let X=null;const pt=Di(v);for(Ye("beforeSanitizeShadowDOM",v,null);X=pt.nextNode();)Ye("uponSanitizeShadowNode",X,null),!Ln(X)&&(X.content instanceof We&&bt(X.content),Mn(X));Ye("afterSanitizeShadowDOM",v,null)};return Tt.sanitize=function(bt){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,pt=null,te=null,ve=null;if(sn=!bt,sn&&(bt=""),typeof bt!="string"&&!En(bt))if(typeof bt.toString=="function"){if(bt=bt.toString(),typeof bt!="string")throw Ct("dirty is not a string, aborting")}else throw Ct("toString is not a function");if(!Tt.isSupported)return bt;if(An||bi(v),Tt.removed=[],typeof bt=="string"&&(Lr=!1),Lr){if(bt.nodeName){const xi=xe(bt.nodeName);if(!ie[xi]||Er[xi])throw Ct("root node is forbidden and cannot be sanitized in-place")}}else if(bt instanceof Fe)X=qi(""),pt=X.ownerDocument.importNode(bt,!0),pt.nodeType===1&&pt.nodeName==="BODY"||pt.nodeName==="HTML"?X=pt:X.appendChild(pt);else{if(!lr&&!ar&&!Mi&&bt.indexOf("<")===-1)return be&&rn?be.createHTML(bt):bt;if(X=qi(bt),!X)return lr?null:rn?sr:""}X&&en&&ye(X.firstChild);const Te=Di(Lr?bt:X);for(;te=Te.nextNode();)Ln(te)||(te.content instanceof We&&Po(te.content),Mn(te));if(Lr)return bt;if(lr){if(cr)for(ve=Ps.call(X.ownerDocument);X.firstChild;)ve.appendChild(X.firstChild);else ve=X;return(ue.shadowroot||ue.shadowrootmode)&&(ve=Io.call(zt,ve,!0)),ve}let Be=Mi?X.outerHTML:X.innerHTML;return Mi&&ie["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&>(Qe,X.ownerDocument.doctype.name)&&(Be=" `+Be),ar&&m([$i,Zr,Br],xi=>{Be=j(Be,xi," ")}),be&&rn?be.createHTML(Be):Be},Tt.setConfig=function(){let bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};bi(bt),An=!0},Tt.clearConfig=function(){Fr=null,An=!1},Tt.isValidAttribute=function(bt,v,X){Fr||bi({});const pt=xe(bt),te=xe(v);return ln(pt,te,X)},Tt.addHook=function(bt,v){typeof v=="function"&&(ti[bt]=ti[bt]||[],I(ti[bt],v))},Tt.removeHook=function(bt){if(ti[bt])return k(ti[bt])},Tt.removeHooks=function(bt){ti[bt]&&(ti[bt]=[])},Tt.removeAllHooks=function(){ti={}},Tt}var Yr=Kn();return Yr})},"./node_modules/ts-dedent/esm/index.js":function(mt,D,f){"use strict";f.d(D,{T:function(){return B}});function B(P){for(var A=[],M=1;M=o)&&(r=o);else{let o=-1;for(let a of t)(a=i(a,++o,t))!=null&&(r=a)&&(r=a)}return r}function E(t,i){let r;if(i===void 0)for(const o of t)o!=null&&(r>o||r===void 0&&o>=o)&&(r=o);else{let o=-1;for(let a of t)(a=i(a,++o,t))!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}return r}function P(t){return t}var A=1,M=2,$=3,W=4,q=1e-6;function m(t){return"translate("+t+",0)"}function k(t){return"translate(0,"+t+")"}function I(t){return i=>+t(i)}function et(t,i){return i=Math.max(0,t.bandwidth()-i*2)/2,t.round()&&(i=Math.round(i)),r=>+t(r)+i}function J(){return!this.__axis}function b(t,i){var r=[],o=null,a=null,c=6,h=6,d=3,g=typeof window<"u"&&window.devicePixelRatio>1?0:.5,p=t===A||t===W?-1:1,C=t===W||t===M?"x":"y",L=t===A||t===$?m:k;function x(O){var nt=o??(i.ticks?i.ticks.apply(i,r):i.domain()),xt=a??(i.tickFormat?i.tickFormat.apply(i,r):P),U=Math.max(c,0)+d,N=i.range(),it=+N[0]+g,G=+N[N.length-1]+g,ot=(i.bandwidth?et:I)(i.copy(),g),lt=O.selection?O.selection():O,Z=lt.selectAll(".domain").data([null]),Mt=lt.selectAll(".tick").data(nt,i).order(),Nt=Mt.exit(),ee=Mt.enter().append("g").attr("class","tick"),jt=Mt.select("line"),ht=Mt.select("text");Z=Z.merge(Z.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Mt=Mt.merge(ee),jt=jt.merge(ee.append("line").attr("stroke","currentColor").attr(C+"2",p*c)),ht=ht.merge(ee.append("text").attr("fill","currentColor").attr(C,p*U).attr("dy",t===A?"0em":t===$?"0.71em":"0.32em")),O!==lt&&(Z=Z.transition(O),Mt=Mt.transition(O),jt=jt.transition(O),ht=ht.transition(O),Nt=Nt.transition(O).attr("opacity",q).attr("transform",function(Rt){return isFinite(Rt=ot(Rt))?L(Rt+g):this.getAttribute("transform")}),ee.attr("opacity",q).attr("transform",function(Rt){var rt=this.parentNode.__axis;return L((rt&&isFinite(rt=rt(Rt))?rt:ot(Rt))+g)})),Nt.remove(),Z.attr("d",t===W||t===M?h?"M"+p*h+","+it+"H"+g+"V"+G+"H"+p*h:"M"+g+","+it+"V"+G:h?"M"+it+","+p*h+"V"+g+"H"+G+"V"+p*h:"M"+it+","+g+"H"+G),Mt.attr("opacity",1).attr("transform",function(Rt){return L(ot(Rt)+g)}),jt.attr(C+"2",p*c),ht.attr(C,p*U).text(xt),lt.filter(J).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===M?"start":t===W?"end":"middle"),lt.each(function(){this.__axis=ot})}return x.scale=function(O){return arguments.length?(i=O,x):i},x.ticks=function(){return r=Array.from(arguments),x},x.tickArguments=function(O){return arguments.length?(r=O==null?[]:Array.from(O),x):r.slice()},x.tickValues=function(O){return arguments.length?(o=O==null?null:Array.from(O),x):o&&o.slice()},x.tickFormat=function(O){return arguments.length?(a=O,x):a},x.tickSize=function(O){return arguments.length?(c=h=+O,x):c},x.tickSizeInner=function(O){return arguments.length?(c=+O,x):c},x.tickSizeOuter=function(O){return arguments.length?(h=+O,x):h},x.tickPadding=function(O){return arguments.length?(d=+O,x):d},x.offset=function(O){return arguments.length?(g=+O,x):g},x}function j(t){return b(A,t)}function R(t){return b(M,t)}function at(t){return b($,t)}function dt(t){return b(W,t)}function gt(){}function Ct(t){return t==null?gt:function(){return this.querySelector(t)}}function St(t){typeof t!="function"&&(t=Ct(t));for(var i=this._groups,r=i.length,o=new Array(r),a=0;a=G&&(G=it+1);!(lt=U[G])&&++G=0;)(h=o[a])&&(c&&h.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(h,c),c=h);return this}function Kn(t){t||(t=Yr);function i(L,x){return L&&x?t(L.__data__,x.__data__):!L-!x}for(var r=this._groups,o=r.length,a=new Array(o),c=0;ci?1:t>=i?0:NaN}function Yt(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Tt(){return Array.from(this)}function Wt(){for(var t=this._groups,i=0,r=t.length;i=0&&(i=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Fe.hasOwnProperty(i)?{space:Fe[i],local:t}:t}function oi(t){return function(){this.removeAttribute(t)}}function qr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Oo(t,i){return function(){this.setAttribute(t,i)}}function Is(t,i){return function(){this.setAttributeNS(t.space,t.local,i)}}function Gr(t,i){return function(){var r=i.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Vr(t,i){return function(){var r=i.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function Xe(t,i){var r=Qt(t);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((i==null?r.local?qr:oi:typeof i=="function"?r.local?Vr:Gr:r.local?Is:Oo)(r,i))}function Li(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Kr(t){return function(){this.style.removeProperty(t)}}function or(t,i,r){return function(){this.style.setProperty(t,i,r)}}function be(t,i,r){return function(){var o=i.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function sr(t,i,r){return arguments.length>1?this.each((i==null?Kr:typeof i=="function"?be:or)(t,i,r??"")):Ci(this.node(),t)}function Ci(t,i){return t.style.getPropertyValue(i)||Li(t).getComputedStyle(t,null).getPropertyValue(i)}function Xr(t){return function(){delete this[t]}}function Ps(t,i){return function(){this[t]=i}}function Do(t,i){return function(){var r=i.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Io(t,i){return arguments.length>1?this.each((i==null?Xr:typeof i=="function"?Do:Ps)(t,i)):this.node()[t]}function ti(t){return t.trim().split(/^|\s+/)}function $i(t){return t.classList||new Zr(t)}function Zr(t){this._node=t,this._names=ti(t.getAttribute("class")||"")}Zr.prototype={add:function(t){var i=this._names.indexOf(t);i<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var i=this._names.indexOf(t);i>=0&&(this._names.splice(i,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Br(t,i){for(var r=$i(t),o=-1,a=i.length;++o=0&&(r=i.slice(o+1),i=i.slice(0,o)),{type:i,name:r}})}function Fi(t){return function(){var i=this.__on;if(i){for(var r=0,o=-1,a=i.length,c;r{}};function oo(){for(var t=0,i=arguments.length,r={},o;t=0&&(o=r.slice(a+1),r=r.slice(0,a)),r&&!i.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}an.prototype=oo.prototype={constructor:an,on:function(t,i){var r=this._,o=xe(t+"",r),a,c=-1,h=o.length;if(arguments.length<2){for(;++c0)for(var r=new Array(a),o=0,a,c;o=0&&t._call.call(void 0,i),t=t._next;--bi}function Ce(){ye=(Or=qi.now())+mr,bi=Yi=0;try{ln()}finally{bi=0,Po(),ye=0}}function Mn(){var t=qi.now(),i=t-Or;i>Bn&&(mr-=i,Or=t)}function Po(){for(var t,i=Oi,r,o=1/0;i;)i._call?(o>i._time&&(o=i._time),t=i,i=i._next):(r=i._next,i._next=null,i=t?t._next=r:Oi=r);fr=t,bt(o)}function bt(t){if(!bi){Yi&&(Yi=clearTimeout(Yi));var i=t-ye;i>24?(t<1/0&&(Yi=setTimeout(Ce,t-qi.now()-mr)),dr&&(dr=clearInterval(dr))):(dr||(Or=qi.now(),dr=setInterval(Mn,Bn)),bi=1,Di(Ce))}}function v(t,i,r){var o=new Ye;return i=i==null?0:+i,o.restart(a=>{o.stop(),t(a+i)},i,r),o}var X=ai("start","end","cancel","interrupt"),pt=[],te=0,ve=1,Te=2,Be=3,xi=4,Gi=5,Ee=6;function pr(t,i,r,o,a,c){var h=t.__transition;if(!h)t.__transition={};else if(r in h)return;js(t,r,{name:i,index:o,group:a,on:X,tween:pt,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:te})}function _r(t,i){var r=vi(t,i);if(r.state>te)throw new Error("too late; already scheduled");return r}function Ii(t,i){var r=vi(t,i);if(r.state>Be)throw new Error("too late; already running");return r}function vi(t,i){var r=t.__transition;if(!r||!(r=r[i]))throw new Error("transition not found");return r}function js(t,i,r){var o=t.__transition,a;o[i]=r,r.timer=Ln(c,0,r.time);function c(p){r.state=ve,r.timer.restart(h,r.delay,r.time),r.delay<=p&&h(p-r.delay)}function h(p){var C,L,x,O;if(r.state!==ve)return g();for(C in o)if(O=o[C],O.name===r.name){if(O.state===Be)return v(h);O.state===xi?(O.state=Ee,O.timer.stop(),O.on.call("interrupt",t,t.__data__,O.index,O.group),delete o[C]):+CTe&&o.state180?C+=360:C-p>180&&(p+=360),x.push({i:L.push(a(L)+"rotate(",null,o)-2,x:Ti(p,C)})):C&&L.push(a(L)+"rotate("+C+o)}function d(p,C,L,x){p!==C?x.push({i:L.push(a(L)+"skewX(",null,o)-2,x:Ti(p,C)}):C&&L.push(a(L)+"skewX("+C+o)}function g(p,C,L,x,O,nt){if(p!==L||C!==x){var xt=O.push(a(O)+"scale(",null,",",null,")");nt.push({i:xt-4,x:Ti(p,L)},{i:xt-2,x:Ti(C,x)})}else(L!==1||x!==1)&&O.push(a(O)+"scale("+L+","+x+")")}return function(p,C){var L=[],x=[];return p=t(p),C=t(C),c(p.translateX,p.translateY,C.translateX,C.translateY,L,x),h(p.rotate,C.rotate,L,x),d(p.skewX,C.skewX,L,x),g(p.scaleX,p.scaleY,C.scaleX,C.scaleY,L,x),p=C=null,function(O){for(var nt=-1,xt=x.length,U;++nt>8&15|i>>4&240,i>>4&15|i&240,(i&15)<<4|i&15,1):r===8?Pn(i>>24&255,i>>16&255,i>>8&255,(i&255)/255):r===4?Pn(i>>12&15|i>>8&240,i>>8&15|i>>4&240,i>>4&15|i&240,((i&15)<<4|i&15)/255):null):(i=un.exec(t))?new Re(i[1],i[2],i[3],1):(i=In.exec(t))?new Re(i[1]*255/100,i[2]*255/100,i[3]*255/100,1):(i=ao.exec(t))?Pn(i[1],i[2],i[3],i[4]):(i=Al.exec(t))?Pn(i[1]*255/100,i[2]*255/100,i[3]*255/100,i[4]):(i=kl.exec(t))?El(i[1],i[2]/100,i[3]/100,1):(i=Sl.exec(t))?El(i[1],i[2]/100,i[3]/100,i[4]):zo.hasOwnProperty(t)?qs(zo[t]):t==="transparent"?new Re(NaN,NaN,NaN,0):null}function qs(t){return new Re(t>>16&255,t>>8&255,t&255,1)}function Pn(t,i,r,o){return o<=0&&(t=i=r=NaN),new Re(t,i,r,o)}function Gs(t){return t instanceof li||(t=ji(t)),t?(t=t.rgb(),new Re(t.r,t.g,t.b,t.opacity)):new Re}function jn(t,i,r,o){return arguments.length===1?Gs(t):new Re(t,i,r,o??1)}function Re(t,i,r,o){this.r=+t,this.g=+i,this.b=+r,this.opacity=+o}yr(Re,jn,hn(li,{brighter(t){return t=t==null?Dn:Math.pow(Dn,t),new Re(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?On:Math.pow(On,t),new Re(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Re(Cr(this.r),Cr(this.g),Cr(this.b),lo(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:wl,formatHex:wl,formatHex8:Th,formatRgb:Bl,toString:Bl}));function wl(){return`#${dn(this.r)}${dn(this.g)}${dn(this.b)}`}function Th(){return`#${dn(this.r)}${dn(this.g)}${dn(this.b)}${dn((isNaN(this.opacity)?1:this.opacity)*255)}`}function Bl(){const t=lo(this.opacity);return`${t===1?"rgb(":"rgba("}${Cr(this.r)}, ${Cr(this.g)}, ${Cr(this.b)}${t===1?")":`, ${t})`}`}function lo(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Cr(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function dn(t){return t=Cr(t),(t<16?"0":"")+t.toString(16)}function El(t,i,r,o){return o<=0?t=i=r=NaN:r<=0||r>=1?t=i=NaN:i<=0&&(t=NaN),new ci(t,i,r,o)}function Ll(t){if(t instanceof ci)return new ci(t.h,t.s,t.l,t.opacity);if(t instanceof li||(t=ji(t)),!t)return new ci;if(t instanceof ci)return t;t=t.rgb();var i=t.r/255,r=t.g/255,o=t.b/255,a=Math.min(i,r,o),c=Math.max(i,r,o),h=NaN,d=c-a,g=(c+a)/2;return d?(i===c?h=(r-o)/d+(r0&&g<1?0:h,new ci(h,d,g,t.opacity)}function Ml(t,i,r,o){return arguments.length===1?Ll(t):new ci(t,i,r,o??1)}function ci(t,i,r,o){this.h=+t,this.s=+i,this.l=+r,this.opacity=+o}yr(ci,Ml,hn(li,{brighter(t){return t=t==null?Dn:Math.pow(Dn,t),new ci(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?On:Math.pow(On,t),new ci(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,i=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*i,a=2*r-o;return new Re(Vs(t>=240?t-240:t+120,a,o),Vs(t,a,o),Vs(t<120?t+240:t-120,a,o),this.opacity)},clamp(){return new ci(Fl(this.h),Wo(this.s),Wo(this.l),lo(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(){const t=lo(this.opacity);return`${t===1?"hsl(":"hsla("}${Fl(this.h)}, ${Wo(this.s)*100}%, ${Wo(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Fl(t){return t=(t||0)%360,t<0?t+360:t}function Wo(t){return Math.max(0,Math.min(1,t||0))}function Vs(t,i,r){return(t<60?i+(r-i)*t/60:t<180?r:t<240?i+(r-i)*(240-t)/60:i)*255}function Ks(t,i,r,o,a){var c=t*t,h=c*t;return((1-3*t+3*c-h)*i+(4-6*c+3*h)*r+(1+3*t+3*c-3*h)*o+h*a)/6}function Xs(t){var i=t.length-1;return function(r){var o=r<=0?r=0:r>=1?(r=1,i-1):Math.floor(r*i),a=t[o],c=t[o+1],h=o>0?t[o-1]:2*a-c,d=o()=>t;function Ol(t,i){return function(r){return t+r*i}}function Dl(t,i,r){return t=Math.pow(t,r),i=Math.pow(i,r)-t,r=1/r,function(o){return Math.pow(t+o*i,r)}}function Zs(t,i){var r=i-t;return r?Ol(t,r>180||r<-180?r-360*Math.round(r/360):r):Ho(isNaN(t)?i:t)}function kh(t){return(t=+t)==1?Nn:function(i,r){return r-i?Dl(i,r,t):Ho(isNaN(i)?r:i)}}function Nn(t,i){var r=i-t;return r?Ol(t,r):Ho(isNaN(t)?i:t)}var Yo=function t(i){var r=kh(i);function o(a,c){var h=r((a=jn(a)).r,(c=jn(c)).r),d=r(a.g,c.g),g=r(a.b,c.b),p=Nn(a.opacity,c.opacity);return function(C){return a.r=h(C),a.g=d(C),a.b=g(C),a.opacity=p(C),a+""}}return o.gamma=t,o}(1);function Js(t){return function(i){var r=i.length,o=new Array(r),a=new Array(r),c=new Array(r),h,d;for(h=0;hr&&(c=i.slice(r,c),d[h]?d[h]+=c:d[++h]=c),(o=o[0])===(a=a[0])?d[h]?d[h]+=a:d[++h]=a:(d[++h]=null,g.push({i:h,x:Ti(o,a)})),r=ta.lastIndex;return r=0&&(i=i.slice(0,r)),!i||i==="start"})}function aa(t,i,r){var o,a,c=Hl(i)?_r:Ii;return function(){var h=c(this,t),d=h.on;d!==o&&(a=(o=d).copy()).on(i,r),h.on=a}}function $h(t,i){var r=this._id;return arguments.length<2?vi(this.node(),r).on.on(t):this.each(aa(r,t,i))}function zh(t){return function(){var i=this.parentNode;for(var r in this.__transition)if(+r!==t)return;i&&i.removeChild(this)}}function Uh(){return this.on("end.remove",zh(this._id))}function Yl(t){var i=this._name,r=this._id;typeof t!="function"&&(t=Ct(t));for(var o=this._groups,a=o.length,c=new Array(a),h=0;h{const Se=Ft.identifier;return Ft=pointer(Ft,N),Ft.point0=Ft.slice(),Ft.identifier=Se,Ft});interrupt(N);var Me=C(N,arguments,!0).beforestart();if(it==="overlay"){Nt&&(Ie=!0);const Ft=[Zt[0],Zt[1]||Zt[0]];Z.selection=Nt=[[jt=t===mo?ee:ze(Ft[0][0],Ft[1][0]),rt=t===fo?Rt:ze(Ft[0][1],Ft[1][1])],[z=t===mo?st:$e(Ft[0][0],Ft[1][0]),ft=t===fo?yt:$e(Ft[0][1],Ft[1][1])]],Zt.length>1&&ke(U)}else jt=Nt[0][0],rt=Nt[0][1],z=Nt[1][0],ft=Nt[1][1];ht=jt,T=rt,tt=z,vt=ft;var ut=select(N).attr("pointer-events","none"),Pt=ut.selectAll(".overlay").attr("cursor",Ki[it]);if(U.touches)Me.moved=K,Me.ended=oe;else{var Ht=select(U.view).on("mousemove.brush",K,!0).on("mouseup.brush",oe,!0);a&&Ht.on("keydown.brush",ri,!0).on("keyup.brush",ni,!0),dragDisable(U.view)}p.call(N),Me.start(U,G.name);function K(Ft){for(const Se of Ft.changedTouches||[Ft])for(const Ds of Zt)Ds.identifier===Se.identifier&&(Ds.cur=pointer(Se,N));if(le&&!ce&&!Pe&&Zt.length===1){const Se=Zt[0];Zo(Se.cur[0]-Se[0])>Zo(Se.cur[1]-Se[1])?Pe=!0:ce=!0}for(const Se of Zt)Se.cur&&(Se[0]=Se.cur[0],Se[1]=Se.cur[1]);Ie=!0,noevent(Ft),ke(Ft)}function ke(Ft){const Se=Zt[0],Ds=Se.point0;var xn;switch(Et=Se[0]-Ds[0],It=Se[1]-Ds[1],G){case ho:case co:{ot&&(Et=$e(ee-jt,ze(st-z,Et)),ht=jt+Et,tt=z+Et),lt&&(It=$e(Rt-rt,ze(yt-ft,It)),T=rt+It,vt=ft+It);break}case Ir:{Zt[1]?(ot&&(ht=$e(ee,ze(st,Zt[0][0])),tt=$e(ee,ze(st,Zt[1][0])),ot=1),lt&&(T=$e(Rt,ze(yt,Zt[0][1])),vt=$e(Rt,ze(yt,Zt[1][1])),lt=1)):(ot<0?(Et=$e(ee-jt,ze(st-jt,Et)),ht=jt+Et,tt=z):ot>0&&(Et=$e(ee-z,ze(st-z,Et)),ht=jt,tt=z+Et),lt<0?(It=$e(Rt-rt,ze(yt-rt,It)),T=rt+It,vt=ft):lt>0&&(It=$e(Rt-ft,ze(yt-ft,It)),T=rt,vt=ft+It));break}case Pr:{ot&&(ht=$e(ee,ze(st,jt-Et*ot)),tt=$e(ee,ze(st,z+Et*ot))),lt&&(T=$e(Rt,ze(yt,rt-It*lt)),vt=$e(Rt,ze(yt,ft+It*lt)));break}}tt0&&(jt=ht-Et),lt<0?ft=vt-It:lt>0&&(rt=T-It),G=ho,Pt.attr("cursor",Ki.selection),ke(Ft));break}default:return}noevent(Ft)}function ni(Ft){switch(Ft.keyCode){case 16:{le&&(ce=Pe=le=!1,ke(Ft));break}case 18:{G===Pr&&(ot<0?z=tt:ot>0&&(jt=ht),lt<0?ft=vt:lt>0&&(rt=T),G=Ir,ke(Ft));break}case 32:{G===ho&&(Ft.altKey?(ot&&(z=tt-Et*ot,jt=ht+Et*ot),lt&&(ft=vt-It*lt,rt=T+It*lt),G=Pr):(ot<0?z=tt:ot>0&&(jt=ht),lt<0?ft=vt:lt>0&&(rt=T),G=Ir),Pt.attr("cursor",Ki[it]),ke(Ft));break}default:return}noevent(Ft)}}function O(U){C(this,arguments).moved(U)}function nt(U){C(this,arguments).ended(U)}function xt(){var U=this.__brush||{selection:null};return U.extent=uo(i.apply(this,arguments)),U.dim=t,U}return g.extent=function(U){return arguments.length?(i=typeof U=="function"?U:constant(uo(U)),g):i},g.filter=function(U){return arguments.length?(r=typeof U=="function"?U:constant(!!U),g):r},g.touchable=function(U){return arguments.length?(o=typeof U=="function"?U:constant(!!U),g):o},g.handleSize=function(U){return arguments.length?(h=+U,g):h},g.keyModifiers=function(U){return arguments.length?(a=!!U,g):a},g.on=function(){var U=c.on.apply(c,arguments);return U===c?g:U},g}function su(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function au(t,i){return fetch(t,i).then(su)}function pa(t){return(i,r)=>au(i,r).then(o=>new DOMParser().parseFromString(o,t))}var lu=pa("application/xml"),tc=pa("text/html"),cu=pa("image/svg+xml");const hu=Math.PI/180,uu=180/Math.PI,Co=18,ts=.96422,ec=1,ic=.82521,rc=4/29,fn=6/29,es=3*fn*fn,du=fn*fn*fn;function nc(t){if(t instanceof ui)return new ui(t.l,t.a,t.b,t.opacity);if(t instanceof Ni)return ns(t);t instanceof Re||(t=Gs(t));var i=is(t.r),r=is(t.g),o=is(t.b),a=_a((.2225045*i+.7168786*r+.0606169*o)/ec),c,h;return i===r&&r===o?c=h=a:(c=_a((.4360747*i+.3850649*r+.1430804*o)/ts),h=_a((.0139322*i+.0971045*r+.7141733*o)/ic)),new ui(116*a-16,500*(c-a),200*(a-h),t.opacity)}function nd(t,i){return new ui(t,0,0,i??1)}function oc(t,i,r,o){return arguments.length===1?nc(t):new ui(t,i,r,o??1)}function ui(t,i,r,o){this.l=+t,this.a=+i,this.b=+r,this.opacity=+o}yr(ui,oc,hn(li,{brighter(t){return new ui(this.l+Co*(t??1),this.a,this.b,this.opacity)},darker(t){return new ui(this.l-Co*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,i=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return i=ts*ya(i),t=ec*ya(t),r=ic*ya(r),new Re(Ca(3.1338561*i-1.6168667*t-.4906146*r),Ca(-.9787684*i+1.9161415*t+.033454*r),Ca(.0719453*i-.2289914*t+1.4052427*r),this.opacity)}}));function _a(t){return t>du?Math.pow(t,1/3):t/es+rc}function ya(t){return t>fn?t*t*t:es*(t-rc)}function Ca(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function is(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function rs(t){if(t instanceof Ni)return new Ni(t.h,t.c,t.l,t.opacity);if(t instanceof ui||(t=nc(t)),t.a===0&&t.b===0)return new Ni(NaN,0=qe?10:c>=Ba?5:c>=Rn?2:1;let d,g,p;return a<0?(p=Math.pow(10,-a)/h,d=Math.round(t*p),g=Math.round(i*p),d/pi&&--g,p=-p):(p=Math.pow(10,a)*h,d=Math.round(t/p),g=Math.round(i/p),d*pi&&--g),g0))return[];if(t===i)return[t];const o=i=a))return[];const d=c-a+1,g=new Array(d);if(o)if(h<0)for(let p=0;pi?1:t>=i?0:NaN}function cc(t,i){return t==null||i==null?NaN:it?1:i>=t?0:NaN}function hs(t){let i,r,o;t.length!==2?(i=vo,r=(d,g)=>vo(t(d),g),o=(d,g)=>t(d)-g):(i=t===vo||t===cc?t:hc,r=t,o=t);function a(d,g,p=0,C=d.length){if(p>>1;r(d[L],g)<0?p=L+1:C=L}while(p>>1;r(d[L],g)<=0?p=L+1:C=L}while(pp&&o(d[L-1],g)>-o(d[L],g)?L-1:L}return{left:a,center:h,right:c}}function hc(){return 0}function uc(t){return t===null?NaN:+t}function*Ge(t,i){if(i===void 0)for(let r of t)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let o of t)(o=i(o,++r,t))!=null&&(o=+o)>=o&&(yield o)}}const us=hs(vo),dc=us.right,Ea=us.left,pu=hs(uc).center;var fc=dc;function _u(t,i){return(isNumberArray(i)?numberArray:La)(t,i)}function La(t,i){var r=i?i.length:0,o=t?Math.min(r,t.length):0,a=new Array(o),c=new Array(r),h;for(h=0;hi&&(r=t,t=i,i=r),function(o){return Math.max(t,Math.min(i,o))}}function vc(t,i,r){var o=t[0],a=t[1],c=i[0],h=i[1];return a2?Tc:vc,g=p=null,L}function L(x){return x==null||isNaN(x=+x)?c:(g||(g=d(t.map(o),i,r)))(o(h(x)))}return L.invert=function(x){return h(a((p||(p=d(i,t.map(o),Ti)))(x)))},L.domain=function(x){return arguments.length?(t=Array.from(x,bc),C()):t.slice()},L.range=function(x){return arguments.length?(i=Array.from(x),C()):i.slice()},L.rangeRound=function(x){return i=Array.from(x),r=yc,C()},L.clamp=function(x){return arguments.length?(h=x?!0:mn,C()):h!==mn},L.interpolate=function(x){return arguments.length?(r=x,C()):r},L.unknown=function(x){return arguments.length?(c=x,L):c},function(x,O){return o=x,a=O,C()}}function Oa(){return Ac()(mn,mn)}var kc=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function To(t){if(!(i=kc.exec(t)))throw new Error("invalid format: "+t);var i;return new ms({fill:i[1],align:i[2],sign:i[3],symbol:i[4],zero:i[5],width:i[6],comma:i[7],precision:i[8]&&i[8].slice(1),trim:i[9],type:i[10]})}To.prototype=ms.prototype;function ms(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+""}ms.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 Sc(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Ao(t,i){if((r=(t=i?t.toExponential(i-1):t.toExponential()).indexOf("e"))<0)return null;var r,o=t.slice(0,r);return[o.length>1?o[0]+o.slice(2):o,+t.slice(r+1)]}function gn(t){return t=Ao(Math.abs(t)),t?t[1]:NaN}function Da(t,i){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(gn(i)/3)))*3-gn(Math.abs(t)))}function wc(t,i){return function(r,o){for(var a=r.length,c=[],h=0,d=t[0],g=0;a>0&&d>0&&(g+d+1>o&&(d=Math.max(1,o-g)),c.push(r.substring(a-=d,a+d)),!((g+=d+1)>o));)d=t[h=(h+1)%t.length];return c.reverse().join(i)}}function Ia(t){return function(i){return i.replace(/[0-9]/g,function(r){return t[+r]})}}function Pa(t){t:for(var i=t.length,r=1,o=-1,a;r0&&(o=0);break}return o>0?t.slice(0,o)+t.slice(a+1):t}var ja;function Bc(t,i){var r=Ao(t,i);if(!r)return t+"";var o=r[0],a=r[1],c=a-(ja=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,h=o.length;return c===h?o:c>h?o+new Array(c-h+1).join("0"):c>0?o.slice(0,c)+"."+o.slice(c):"0."+new Array(1-c).join("0")+Ao(t,Math.max(0,i+c-1))[0]}function Na(t,i){var r=Ao(t,i);if(!r)return t+"";var o=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+o:o.length>a+1?o.slice(0,a+1)+"."+o.slice(a+1):o+new Array(a-o.length+2).join("0")}var Ra={"%":(t,i)=>(t*100).toFixed(i),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Sc,e:(t,i)=>t.toExponential(i),f:(t,i)=>t.toFixed(i),g:(t,i)=>t.toPrecision(i),o:t=>Math.round(t).toString(8),p:(t,i)=>Na(t*100,i),r:Na,s:Bc,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function $a(t){return t}var za=Array.prototype.map,ko=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Ec(t){var i=t.grouping===void 0||t.thousands===void 0?$a:wc(za.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",o=t.currency===void 0?"":t.currency[1]+"",a=t.decimal===void 0?".":t.decimal+"",c=t.numerals===void 0?$a:Ia(za.call(t.numerals,String)),h=t.percent===void 0?"%":t.percent+"",d=t.minus===void 0?"\u2212":t.minus+"",g=t.nan===void 0?"NaN":t.nan+"";function p(L){L=To(L);var x=L.fill,O=L.align,nt=L.sign,xt=L.symbol,U=L.zero,N=L.width,it=L.comma,G=L.precision,ot=L.trim,lt=L.type;lt==="n"?(it=!0,lt="g"):Ra[lt]||(G===void 0&&(G=12),ot=!0,lt="g"),(U||x==="0"&&O==="=")&&(U=!0,x="0",O="=");var Z=xt==="$"?r:xt==="#"&&/[boxX]/.test(lt)?"0"+lt.toLowerCase():"",Mt=xt==="$"?o:/[%p]/.test(lt)?h:"",Nt=Ra[lt],ee=/[defgprs%]/.test(lt);G=G===void 0?6:/[gprs]/.test(lt)?Math.max(1,Math.min(21,G)):Math.max(0,Math.min(20,G));function jt(ht){var Rt=Z,rt=Mt,T,st,z;if(lt==="c")rt=Nt(ht)+rt,ht="";else{ht=+ht;var tt=ht<0||1/ht<0;if(ht=isNaN(ht)?g:Nt(Math.abs(ht),G),ot&&(ht=Pa(ht)),tt&&+ht==0&&nt!=="+"&&(tt=!1),Rt=(tt?nt==="("?nt:d:nt==="-"||nt==="("?"":nt)+Rt,rt=(lt==="s"?ko[8+ja/3]:"")+rt+(tt&&nt==="("?")":""),ee){for(T=-1,st=ht.length;++Tz||z>57){rt=(z===46?a+ht.slice(T+1):ht.slice(T))+rt,ht=ht.slice(0,T);break}}}it&&!U&&(ht=i(ht,1/0));var yt=Rt.length+ht.length+rt.length,ft=yt>1)+Rt+ht+rt+ft.slice(yt);break;default:ht=ft+Rt+ht+rt;break}return c(ht)}return jt.toString=function(){return L+""},jt}function C(L,x){var O=p((L=To(L),L.type="f",L)),nt=Math.max(-8,Math.min(8,Math.floor(gn(x)/3)))*3,xt=Math.pow(10,-nt),U=ko[8+nt/3];return function(N){return O(xt*N)+U}}return{format:p,formatPrefix:C}}var So,Ua,Wa;Lc({thousands:",",grouping:[3],currency:["$",""]});function Lc(t){return So=Ec(t),Ua=So.format,Wa=So.formatPrefix,So}function Mc(t,i){return t=Math.abs(t),i=Math.abs(i)-t,Math.max(0,gn(i)-gn(t))+1}function Fc(t){return Math.max(0,-gn(Math.abs(t)))}function Oc(t,i,r,o){var a=cs(t,i,r),c;switch(o=To(o??",f"),o.type){case"s":{var h=Math.max(Math.abs(t),Math.abs(i));return o.precision==null&&!isNaN(c=Da(a,h))&&(o.precision=c),Wa(o,h)}case"":case"e":case"g":case"p":case"r":{o.precision==null&&!isNaN(c=Mc(a,Math.max(Math.abs(t),Math.abs(i))))&&(o.precision=c-(o.type==="e"));break}case"f":case"%":{o.precision==null&&!isNaN(c=Fc(a))&&(o.precision=c-(o.type==="%")*2);break}}return Ua(o)}function Dc(t){var i=t.domain;return t.ticks=function(r){var o=i();return ls(o[0],o[o.length-1],r??10)},t.tickFormat=function(r,o){var a=i();return Oc(a[0],a[a.length-1],r??10,o)},t.nice=function(r){r==null&&(r=10);var o=i(),a=0,c=o.length-1,h=o[a],d=o[c],g,p,C=10;for(d0;){if(p=$n(h,d,r),p===g)return o[a]=h,o[c]=d,i(o);if(p>0)h=Math.floor(h/p)*p,d=Math.ceil(d/p)*p;else if(p<0)h=Math.ceil(h*p)/p,d=Math.floor(d*p)/p;else break;g=p}return t},t}function Ha(){var t=Oa();return t.copy=function(){return Fa(t,Ha())},xo.apply(t,arguments),Dc(t)}const Xi=1e3,fi=Xi*60,Zi=fi*60,Ji=Zi*24,gs=Ji*7,Ya=Ji*30,ps=Ji*365,_s=new Date,ys=new Date;function ae(t,i,r,o){function a(c){return t(c=arguments.length===0?new Date:new Date(+c)),c}return a.floor=c=>(t(c=new Date(+c)),c),a.ceil=c=>(t(c=new Date(c-1)),i(c,1),t(c),c),a.round=c=>{const h=a(c),d=a.ceil(c);return c-h(i(c=new Date(+c),h==null?1:Math.floor(h)),c),a.range=(c,h,d)=>{const g=[];if(c=a.ceil(c),d=d==null?1:Math.floor(d),!(c0))return g;let p;do g.push(p=new Date(+c)),i(c,d),t(c);while(pae(h=>{if(h>=h)for(;t(h),!c(h);)h.setTime(h-1)},(h,d)=>{if(h>=h)if(d<0)for(;++d<=0;)for(;i(h,-1),!c(h););else for(;--d>=0;)for(;i(h,1),!c(h););}),r&&(a.count=(c,h)=>(_s.setTime(+c),ys.setTime(+h),t(_s),t(ys),Math.floor(r(_s,ys))),a.every=c=>(c=Math.floor(c),!isFinite(c)||!(c>0)?null:c>1?a.filter(o?h=>o(h)%c===0:h=>a.count(0,h)%c===0):a)),a}const xr=ae(()=>{},(t,i)=>{t.setTime(+t+i)},(t,i)=>i-t);xr.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?ae(i=>{i.setTime(Math.floor(i/t)*t)},(i,r)=>{i.setTime(+i+r*t)},(i,r)=>(r-i)/t):xr);const Ic=xr.range,vr=ae(t=>{t.setTime(t-t.getMilliseconds())},(t,i)=>{t.setTime(+t+i*Xi)},(t,i)=>(i-t)/Xi,t=>t.getUTCSeconds()),Cs=vr.range,pn=ae(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Xi)},(t,i)=>{t.setTime(+t+i*fi)},(t,i)=>(i-t)/fi,t=>t.getMinutes()),yu=pn.range,bs=ae(t=>{t.setUTCSeconds(0,0)},(t,i)=>{t.setTime(+t+i*fi)},(t,i)=>(i-t)/fi,t=>t.getUTCMinutes()),Cu=bs.range,wo=ae(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Xi-t.getMinutes()*fi)},(t,i)=>{t.setTime(+t+i*Zi)},(t,i)=>(i-t)/Zi,t=>t.getHours()),bu=wo.range,xs=ae(t=>{t.setUTCMinutes(0,0,0)},(t,i)=>{t.setTime(+t+i*Zi)},(t,i)=>(i-t)/Zi,t=>t.getUTCHours()),Pc=xs.range,jr=ae(t=>t.setHours(0,0,0,0),(t,i)=>t.setDate(t.getDate()+i),(t,i)=>(i-t-(i.getTimezoneOffset()-t.getTimezoneOffset())*fi)/Ji,t=>t.getDate()-1),Qi=jr.range,tr=ae(t=>{t.setUTCHours(0,0,0,0)},(t,i)=>{t.setUTCDate(t.getUTCDate()+i)},(t,i)=>(i-t)/Ji,t=>t.getUTCDate()-1),ii=tr.range,Nr=ae(t=>{t.setUTCHours(0,0,0,0)},(t,i)=>{t.setUTCDate(t.getUTCDate()+i)},(t,i)=>(i-t)/Ji,t=>Math.floor(t/Ji)),xu=Nr.range;function Rr(t){return ae(i=>{i.setDate(i.getDate()-(i.getDay()+7-t)%7),i.setHours(0,0,0,0)},(i,r)=>{i.setDate(i.getDate()+r*7)},(i,r)=>(r-i-(r.getTimezoneOffset()-i.getTimezoneOffset())*fi)/gs)}const zn=Rr(0),_n=Rr(1),qa=Rr(2),vs=Rr(3),Tr=Rr(4),$r=Rr(5),Ga=Rr(6),jc=zn.range,wt=_n.range,Ts=qa.range,Nc=vs.range,zr=Tr.range,Rc=$r.range,Un=Ga.range;function er(t){return ae(i=>{i.setUTCDate(i.getUTCDate()-(i.getUTCDay()+7-t)%7),i.setUTCHours(0,0,0,0)},(i,r)=>{i.setUTCDate(i.getUTCDate()+r*7)},(i,r)=>(r-i)/gs)}const fe=er(0),Ur=er(1),As=er(2),$c=er(3),yn=er(4),zc=er(5),Uc=er(6),vu=fe.range,Wc=Ur.range,Tu=As.range,Au=$c.range,ku=yn.range,Su=zc.range,Wn=Uc.range,Bo=ae(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,i)=>{t.setMonth(t.getMonth()+i)},(t,i)=>i.getMonth()-t.getMonth()+(i.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),Hc=Bo.range,Va=ae(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,i)=>{t.setUTCMonth(t.getUTCMonth()+i)},(t,i)=>i.getUTCMonth()-t.getUTCMonth()+(i.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),wu=Va.range,ir=ae(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,i)=>{t.setFullYear(t.getFullYear()+i)},(t,i)=>i.getFullYear()-t.getFullYear(),t=>t.getFullYear());ir.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:ae(i=>{i.setFullYear(Math.floor(i.getFullYear()/t)*t),i.setMonth(0,1),i.setHours(0,0,0,0)},(i,r)=>{i.setFullYear(i.getFullYear()+r*t)});const Bu=ir.range,Ar=ae(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,i)=>{t.setUTCFullYear(t.getUTCFullYear()+i)},(t,i)=>i.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Ar.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:ae(i=>{i.setUTCFullYear(Math.floor(i.getUTCFullYear()/t)*t),i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},(i,r)=>{i.setUTCFullYear(i.getUTCFullYear()+r*t)});const Eu=Ar.range;function Ka(t,i,r,o,a,c){const h=[[vr,1,Xi],[vr,5,5*Xi],[vr,15,15*Xi],[vr,30,30*Xi],[c,1,fi],[c,5,5*fi],[c,15,15*fi],[c,30,30*fi],[a,1,Zi],[a,3,3*Zi],[a,6,6*Zi],[a,12,12*Zi],[o,1,Ji],[o,2,2*Ji],[r,1,gs],[i,1,Ya],[i,3,3*Ya],[t,1,ps]];function d(p,C,L){const x=CU).right(h,x);if(O===h.length)return t.every(cs(p/ps,C/ps,L));if(O===0)return xr.every(Math.max(cs(p,C,L),1));const[nt,xt]=h[x/h[O-1][2]53)return null;"w"in K||(K.w=1),"Z"in K?(oe=ks(Hn(K.y,0,1)),ri=oe.getUTCDay(),oe=ri>4||ri===0?Ur.ceil(oe):Ur(oe),oe=tr.offset(oe,(K.V-1)*7),K.y=oe.getUTCFullYear(),K.m=oe.getUTCMonth(),K.d=oe.getUTCDate()+(K.w+6)%7):(oe=Eo(Hn(K.y,0,1)),ri=oe.getDay(),oe=ri>4||ri===0?_n.ceil(oe):_n(oe),oe=jr.offset(oe,(K.V-1)*7),K.y=oe.getFullYear(),K.m=oe.getMonth(),K.d=oe.getDate()+(K.w+6)%7)}else("W"in K||"U"in K)&&("w"in K||(K.w="u"in K?K.u%7:"W"in K?1:0),ri="Z"in K?ks(Hn(K.y,0,1)).getUTCDay():Eo(Hn(K.y,0,1)).getDay(),K.m=0,K.d="W"in K?(K.w+6)%7+K.W*7-(ri+5)%7:K.w+K.U*7-(ri+6)%7);return"Z"in K?(K.H+=K.Z/100|0,K.M+=K.Z%100,ks(K)):Eo(K)}}function Nt(ut,Pt,Ht,K){for(var ke=0,oe=Pt.length,ri=Ht.length,ni,Ft;ke=ri)return-1;if(ni=Pt.charCodeAt(ke++),ni===37){if(ni=Pt.charAt(ke++),Ft=lt[ni in Xa?Pt.charAt(ke++):ni],!Ft||(K=Ft(ut,Ht,K))<0)return-1}else if(ni!=Ht.charCodeAt(K++))return-1}return K}function ee(ut,Pt,Ht){var K=p.exec(Pt.slice(Ht));return K?(ut.p=C.get(K[0].toLowerCase()),Ht+K[0].length):-1}function jt(ut,Pt,Ht){var K=O.exec(Pt.slice(Ht));return K?(ut.w=nt.get(K[0].toLowerCase()),Ht+K[0].length):-1}function ht(ut,Pt,Ht){var K=L.exec(Pt.slice(Ht));return K?(ut.w=x.get(K[0].toLowerCase()),Ht+K[0].length):-1}function Rt(ut,Pt,Ht){var K=N.exec(Pt.slice(Ht));return K?(ut.m=it.get(K[0].toLowerCase()),Ht+K[0].length):-1}function rt(ut,Pt,Ht){var K=xt.exec(Pt.slice(Ht));return K?(ut.m=U.get(K[0].toLowerCase()),Ht+K[0].length):-1}function T(ut,Pt,Ht){return Nt(ut,i,Pt,Ht)}function st(ut,Pt,Ht){return Nt(ut,r,Pt,Ht)}function z(ut,Pt,Ht){return Nt(ut,o,Pt,Ht)}function tt(ut){return h[ut.getDay()]}function yt(ut){return c[ut.getDay()]}function ft(ut){return g[ut.getMonth()]}function vt(ut){return d[ut.getMonth()]}function Et(ut){return a[+(ut.getHours()>=12)]}function It(ut){return 1+~~(ut.getMonth()/3)}function Ie(ut){return h[ut.getUTCDay()]}function le(ut){return c[ut.getUTCDay()]}function ce(ut){return g[ut.getUTCMonth()]}function Pe(ut){return d[ut.getUTCMonth()]}function Zt(ut){return a[+(ut.getUTCHours()>=12)]}function Me(ut){return 1+~~(ut.getUTCMonth()/3)}return{format:function(ut){var Pt=Z(ut+="",G);return Pt.toString=function(){return ut},Pt},parse:function(ut){var Pt=Mt(ut+="",!1);return Pt.toString=function(){return ut},Pt},utcFormat:function(ut){var Pt=Z(ut+="",ot);return Pt.toString=function(){return ut},Pt},utcParse:function(ut){var Pt=Mt(ut+="",!0);return Pt.toString=function(){return ut},Pt}}}var Xa={"-":"",_:" ",0:"0"},De=/^\s*\d+/,Vc=/^%/,Kc=/[\\^$*+?|[\]().{}]/g;function Xt(t,i,r){var o=t<0?"-":"",a=(o?-t:t)+"",c=a.length;return o+(c[i.toLowerCase(),r]))}function Zc(t,i,r){var o=De.exec(i.slice(r,r+1));return o?(t.w=+o[0],r+o[0].length):-1}function Jc(t,i,r){var o=De.exec(i.slice(r,r+1));return o?(t.u=+o[0],r+o[0].length):-1}function Qc(t,i,r){var o=De.exec(i.slice(r,r+2));return o?(t.U=+o[0],r+o[0].length):-1}function th(t,i,r){var o=De.exec(i.slice(r,r+2));return o?(t.V=+o[0],r+o[0].length):-1}function Za(t,i,r){var o=De.exec(i.slice(r,r+2));return o?(t.W=+o[0],r+o[0].length):-1}function Ja(t,i,r){var o=De.exec(i.slice(r,r+4));return o?(t.y=+o[0],r+o[0].length):-1}function Ss(t,i,r){var o=De.exec(i.slice(r,r+2));return o?(t.y=+o[0]+(+o[0]>68?1900:2e3),r+o[0].length):-1}function eh(t,i,r){var o=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(i.slice(r,r+6));return o?(t.Z=o[1]?0:-(o[2]+(o[3]||"00")),r+o[0].length):-1}function ih(t,i,r){var o=De.exec(i.slice(r,r+1));return o?(t.q=o[0]*3-3,r+o[0].length):-1}function rh(t,i,r){var o=De.exec(i.slice(r,r+2));return o?(t.m=o[0]-1,r+o[0].length):-1}function Qa(t,i,r){var o=De.exec(i.slice(r,r+2));return o?(t.d=+o[0],r+o[0].length):-1}function tl(t,i,r){var o=De.exec(i.slice(r,r+3));return o?(t.m=0,t.d=+o[0],r+o[0].length):-1}function ws(t,i,r){var o=De.exec(i.slice(r,r+2));return o?(t.H=+o[0],r+o[0].length):-1}function nh(t,i,r){var o=De.exec(i.slice(r,r+2));return o?(t.M=+o[0],r+o[0].length):-1}function oh(t,i,r){var o=De.exec(i.slice(r,r+2));return o?(t.S=+o[0],r+o[0].length):-1}function sh(t,i,r){var o=De.exec(i.slice(r,r+3));return o?(t.L=+o[0],r+o[0].length):-1}function Bs(t,i,r){var o=De.exec(i.slice(r,r+6));return o?(t.L=Math.floor(o[0]/1e3),r+o[0].length):-1}function ah(t,i,r){var o=Vc.exec(i.slice(r,r+1));return o?r+o[0].length:-1}function Wr(t,i,r){var o=De.exec(i.slice(r));return o?(t.Q=+o[0],r+o[0].length):-1}function lh(t,i,r){var o=De.exec(i.slice(r));return o?(t.s=+o[0],r+o[0].length):-1}function el(t,i){return Xt(t.getDate(),i,2)}function il(t,i){return Xt(t.getHours(),i,2)}function ch(t,i){return Xt(t.getHours()%12||12,i,2)}function rl(t,i){return Xt(1+jr.count(ir(t),t),i,3)}function nl(t,i){return Xt(t.getMilliseconds(),i,3)}function hh(t,i){return nl(t,i)+"000"}function ol(t,i){return Xt(t.getMonth()+1,i,2)}function uh(t,i){return Xt(t.getMinutes(),i,2)}function Lo(t,i){return Xt(t.getSeconds(),i,2)}function Es(t){var i=t.getDay();return i===0?7:i}function sl(t,i){return Xt(zn.count(ir(t)-1,t),i,2)}function al(t){var i=t.getDay();return i>=4||i===0?Tr(t):Tr.ceil(t)}function ll(t,i){return t=al(t),Xt(Tr.count(ir(t),t)+(ir(t).getDay()===4),i,2)}function ki(t){return t.getDay()}function e(t,i){return Xt(_n.count(ir(t)-1,t),i,2)}function n(t,i){return Xt(t.getFullYear()%100,i,2)}function s(t,i){return t=al(t),Xt(t.getFullYear()%100,i,2)}function l(t,i){return Xt(t.getFullYear()%1e4,i,4)}function u(t,i){var r=t.getDay();return t=r>=4||r===0?Tr(t):Tr.ceil(t),Xt(t.getFullYear()%1e4,i,4)}function _(t){var i=t.getTimezoneOffset();return(i>0?"-":(i*=-1,"+"))+Xt(i/60|0,"0",2)+Xt(i%60,"0",2)}function y(t,i){return Xt(t.getUTCDate(),i,2)}function w(t,i){return Xt(t.getUTCHours(),i,2)}function F(t,i){return Xt(t.getUTCHours()%12||12,i,2)}function V(t,i){return Xt(1+tr.count(Ar(t),t),i,3)}function Q(t,i){return Xt(t.getUTCMilliseconds(),i,3)}function Y(t,i){return Q(t,i)+"000"}function S(t,i){return Xt(t.getUTCMonth()+1,i,2)}function H(t,i){return Xt(t.getUTCMinutes(),i,2)}function Ot(t,i){return Xt(t.getUTCSeconds(),i,2)}function Dt(t){var i=t.getUTCDay();return i===0?7:i}function Lt(t,i){return Xt(fe.count(Ar(t)-1,t),i,2)}function Vt(t){var i=t.getUTCDay();return i>=4||i===0?yn(t):yn.ceil(t)}function kt(t,i){return t=Vt(t),Xt(yn.count(Ar(t),t)+(Ar(t).getUTCDay()===4),i,2)}function mi(t){return t.getUTCDay()}function Ae(t,i){return Xt(Ur.count(Ar(t)-1,t),i,2)}function gi(t,i){return Xt(t.getUTCFullYear()%100,i,2)}function pi(t,i){return t=Vt(t),Xt(t.getUTCFullYear()%100,i,2)}function ne(t,i){return Xt(t.getUTCFullYear()%1e4,i,4)}function cl(t,i){var r=t.getUTCDay();return t=r>=4||r===0?yn(t):yn.ceil(t),Xt(t.getUTCFullYear()%1e4,i,4)}function dh(){return"+0000"}function hl(){return"%"}function ul(t){return+t}function Ls(t){return Math.floor(+t/1e3)}var Cn,Ms,fh,Hr,mh;Fs({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"]});function Fs(t){return Cn=Gc(t),Ms=Cn.format,fh=Cn.parse,Hr=Cn.utcFormat,mh=Cn.utcParse,Cn}function rr(t,i){t=t.slice();var r=0,o=t.length-1,a=t[r],c=t[o],h;return c1?0:t<-1?Os:Math.acos(t)}function Du(t){return t>=1?dl:t<=-1?-dl:Math.asin(t)}const ph=Math.PI,_h=2*ph,Vn=1e-6,md=_h-Vn;function Iu(t){this._+=t[0];for(let i=1,r=t.length;i=0))throw new Error(`invalid digits: ${t}`);if(i>15)return Iu;const r=10**i;return function(o){this._+=o[0];for(let a=1,c=o.length;aVn)if(!(Math.abs(L*g-p*C)>Vn)||!c)this._append`L${this._x1=i},${this._y1=r}`;else{let O=o-h,nt=a-d,xt=g*g+p*p,U=O*O+nt*nt,N=Math.sqrt(xt),it=Math.sqrt(x),G=c*Math.tan((ph-Math.acos((xt+x-U)/(2*N*it)))/2),ot=G/it,lt=G/N;Math.abs(ot-1)>Vn&&this._append`L${i+ot*C},${r+ot*L}`,this._append`A${c},${c},0,0,${+(L*O>C*nt)},${this._x1=i+lt*g},${this._y1=r+lt*p}`}}arc(i,r,o,a,c,h){if(i=+i,r=+r,o=+o,h=!!h,o<0)throw new Error(`negative radius: ${o}`);let d=o*Math.cos(a),g=o*Math.sin(a),p=i+d,C=r+g,L=1^h,x=h?a-c:c-a;this._x1===null?this._append`M${p},${C}`:(Math.abs(this._x1-p)>Vn||Math.abs(this._y1-C)>Vn)&&this._append`L${p},${C}`,o&&(x<0&&(x=x%_h+_h),x>md?this._append`A${o},${o},0,1,${L},${i-d},${r-g}A${o},${o},0,1,${L},${this._x1=p},${this._y1=C}`:x>Vn&&this._append`A${o},${o},0,${+(x>=ph)},${L},${this._x1=i+o*Math.cos(c)},${this._y1=r+o*Math.sin(c)}`)}rect(i,r,o,a){this._append`M${this._x0=this._x1=+i},${this._y0=this._y1=+r}h${o=+o}v${+a}h${-o}Z`}toString(){return this._}}function pd(){return new ml}pd.prototype=ml.prototype;function nf(t=3){return new ml(+t)}function Pu(t){let i=3;return t.digits=function(r){if(!arguments.length)return i;if(r==null)i=null;else{const o=Math.floor(r);if(!(o>=0))throw new RangeError(`invalid digits: ${r}`);i=o}return t},()=>new ml(i)}function _d(t){return t.innerRadius}function yd(t){return t.outerRadius}function Cd(t){return t.startAngle}function bd(t){return t.endAngle}function xd(t){return t&&t.padAngle}function vd(t,i,r,o,a,c,h,d){var g=r-t,p=o-i,C=h-a,L=d-c,x=L*g-C*p;if(!(x*xT*T+st*st&&(Nt=jt,ee=ht),{cx:Nt,cy:ee,x01:-C,y01:-L,x11:Nt*(a/lt-1),y11:ee*(a/lt-1)}}function Td(){var t=_d,i=yd,r=Le(0),o=null,a=Cd,c=bd,h=xd,d=null,g=Pu(p);function p(){var C,L,x=+t.apply(this,arguments),O=+i.apply(this,arguments),nt=a.apply(this,arguments)-dl,xt=c.apply(this,arguments)-dl,U=Ou(xt-nt),N=xt>nt;if(d||(d=C=g()),OJe))d.moveTo(0,0);else if(U>fl-Je)d.moveTo(O*Gn(nt),O*kr(nt)),d.arc(0,0,O,nt,xt,!N),x>Je&&(d.moveTo(x*Gn(xt),x*kr(xt)),d.arc(0,0,x,xt,nt,N));else{var it=nt,G=xt,ot=nt,lt=xt,Z=U,Mt=U,Nt=h.apply(this,arguments)/2,ee=Nt>Je&&(o?+o.apply(this,arguments):Mo(x*x+O*O)),jt=gh(Ou(O-x)/2,+r.apply(this,arguments)),ht=jt,Rt=jt,rt,T;if(ee>Je){var st=Du(ee/x*kr(Nt)),z=Du(ee/O*kr(Nt));(Z-=st*2)>Je?(st*=N?1:-1,ot+=st,lt-=st):(Z=0,ot=lt=(nt+xt)/2),(Mt-=z*2)>Je?(z*=N?1:-1,it+=z,G-=z):(Mt=0,it=G=(nt+xt)/2)}var tt=O*Gn(it),yt=O*kr(it),ft=x*Gn(lt),vt=x*kr(lt);if(jt>Je){var Et=O*Gn(G),It=O*kr(G),Ie=x*Gn(ot),le=x*kr(ot),ce;if(UJe?Rt>Je?(rt=gl(Ie,le,tt,yt,O,Rt,N),T=gl(Et,It,ft,vt,O,Rt,N),d.moveTo(rt.cx+rt.x01,rt.cy+rt.y01),RtJe)||!(Z>Je)?d.lineTo(ft,vt):ht>Je?(rt=gl(ft,vt,Et,It,x,-ht,N),T=gl(tt,yt,Ie,le,x,-ht,N),d.lineTo(rt.cx+rt.x01,rt.cy+rt.y01),htt?1:i>=t?0:NaN}function Bd(t){return t}function Ed(){var t=Bd,i=wd,r=null,o=Le(0),a=Le(fl),c=Le(0);function h(d){var g,p=(d=ju(d)).length,C,L,x=0,O=new Array(p),nt=new Array(p),xt=+o.apply(this,arguments),U=Math.min(fl,Math.max(-fl,a.apply(this,arguments)-xt)),N,it=Math.min(Math.abs(U)/p,c.apply(this,arguments)),G=it*(U<0?-1:1),ot;for(g=0;g0&&(x+=ot);for(i!=null?O.sort(function(lt,Z){return i(nt[lt],nt[Z])}):r!=null&&O.sort(function(lt,Z){return r(d[lt],d[Z])}),g=0,L=x?(U-p*G)/x:0;g0?ot*L:0)+G,nt[C]={data:d[C],index:g,value:ot,startAngle:xt,endAngle:N,padAngle:it};return nt}return h.value=function(d){return arguments.length?(t=typeof d=="function"?d:Le(+d),h):t},h.sortValues=function(d){return arguments.length?(i=d,r=null,h):i},h.sort=function(d){return arguments.length?(r=d,i=null,h):r},h.startAngle=function(d){return arguments.length?(o=typeof d=="function"?d:Le(+d),h):o},h.endAngle=function(d){return arguments.length?(a=typeof d=="function"?d:Le(+d),h):a},h.padAngle=function(d){return arguments.length?(c=typeof d=="function"?d:Le(+d),h):c},h}function bn(){}function pl(t,i,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+i)/6,(t._y0+4*t._y1+r)/6)}function _l(t){this._context=t}_l.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:pl(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},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);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:pl(this,t,i);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};function Ld(t){return new _l(t)}function $u(t){this._context=t}$u.prototype={areaStart:bn,areaEnd:bn,lineStart: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},lineEnd: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}}},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x2=t,this._y2=i;break;case 1:this._point=2,this._x3=t,this._y3=i;break;case 2:this._point=3,this._x4=t,this._y4=i,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+i)/6);break;default:pl(this,t,i);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};function Md(t){return new $u(t)}function zu(t){this._context=t}zu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,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,o=(this._y0+4*this._y1+i)/6;this._line?this._context.lineTo(r,o):this._context.moveTo(r,o);break;case 3:this._point=4;default:pl(this,t,i);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};function Fd(t){return new zu(t)}class Uu{constructor(i,r){this._context=i,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(i,r){switch(i=+i,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+i)/2,this._y0,this._x0,r,i,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,i,this._y0,i,r);break}}this._x0=i,this._y0=r}}class Od{constructor(i){this._context=i}lineStart(){this._point=0}lineEnd(){}point(i,r){if(i=+i,r=+r,this._point===0)this._point=1;else{const o=pointRadial(this._x0,this._y0),a=pointRadial(this._x0,this._y0=(this._y0+r)/2),c=pointRadial(i,this._y0),h=pointRadial(i,r);this._context.moveTo(...o),this._context.bezierCurveTo(...a,...c,...h)}this._x0=i,this._y0=r}}function Dd(t){return new Uu(t,!0)}function Id(t){return new Uu(t,!1)}function sf(t){return new Od(t)}function Wu(t,i){this._basis=new _l(t),this._beta=i}Wu.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,i=this._y,r=t.length-1;if(r>0)for(var o=t[0],a=i[0],c=t[r]-o,h=i[r]-a,d=-1,g;++d<=r;)g=d/r,this._basis.point(this._beta*t[d]+(1-this._beta)*(o+g*c),this._beta*i[d]+(1-this._beta)*(a+g*h));this._x=this._y=null,this._basis.lineEnd()},point:function(t,i){this._x.push(+t),this._y.push(+i)}};var Pd=function t(i){function r(o){return i===1?new _l(o):new Wu(o,i)}return r.beta=function(o){return t(+o)},r}(.85);function yl(t,i,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-i),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function yh(t,i){this._context=t,this._k=(1-i)/6}yh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:yl(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2,this._x1=t,this._y1=i;break;case 2:this._point=3;default:yl(this,t,i);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};var jd=function t(i){function r(o){return new yh(o,i)}return r.tension=function(o){return t(+o)},r}(0);function Ch(t,i){this._context=t,this._k=(1-i)/6}Ch.prototype={areaStart:bn,areaEnd:bn,lineStart: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},lineEnd: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}}},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:yl(this,t,i);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};var Nd=function t(i){function r(o){return new Ch(o,i)}return r.tension=function(o){return t(+o)},r}(0);function bh(t,i){this._context=t,this._k=(1-i)/6}bh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,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:yl(this,t,i);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};var Rd=function t(i){function r(o){return new bh(o,i)}return r.tension=function(o){return t(+o)},r}(0);function xh(t,i,r){var o=t._x1,a=t._y1,c=t._x2,h=t._y2;if(t._l01_a>Je){var d=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,g=3*t._l01_a*(t._l01_a+t._l12_a);o=(o*d-t._x0*t._l12_2a+t._x2*t._l01_2a)/g,a=(a*d-t._y0*t._l12_2a+t._y2*t._l01_2a)/g}if(t._l23_a>Je){var p=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,C=3*t._l23_a*(t._l23_a+t._l12_a);c=(c*p+t._x1*t._l23_2a-i*t._l12_2a)/C,h=(h*p+t._y1*t._l23_2a-r*t._l12_2a)/C}t._context.bezierCurveTo(o,a,c,h,t._x2,t._y2)}function Hu(t,i){this._context=t,this._alpha=i}Hu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart: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},lineEnd: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},point:function(t,i){if(t=+t,i=+i,this._point){var r=this._x2-t,o=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3;default:xh(this,t,i);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=i}};var $d=function t(i){function r(o){return i?new Hu(o,i):new yh(o,0)}return r.alpha=function(o){return t(+o)},r}(.5);function Yu(t,i){this._context=t,this._alpha=i}Yu.prototype={areaStart:bn,areaEnd:bn,lineStart: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},lineEnd: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}}},point:function(t,i){if(t=+t,i=+i,this._point){var r=this._x2-t,o=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:xh(this,t,i);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=i}};var zd=function t(i){function r(o){return i?new Yu(o,i):new Ch(o,0)}return r.alpha=function(o){return t(+o)},r}(.5);function qu(t,i){this._context=t,this._alpha=i}qu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart: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},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){if(t=+t,i=+i,this._point){var r=this._x2-t,o=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+o*o,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:xh(this,t,i);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=i}};var Ud=function t(i){function r(o){return i?new qu(o,i):new bh(o,0)}return r.alpha=function(o){return t(+o)},r}(.5);function Gu(t){this._context=t}Gu.prototype={areaStart:bn,areaEnd:bn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,i){t=+t,i=+i,this._point?this._context.lineTo(t,i):(this._point=1,this._context.moveTo(t,i))}};function Wd(t){return new Gu(t)}function Vu(t){return t<0?-1:1}function Ku(t,i,r){var o=t._x1-t._x0,a=i-t._x1,c=(t._y1-t._y0)/(o||a<0&&-0),h=(r-t._y1)/(a||o<0&&-0),d=(c*a+h*o)/(o+a);return(Vu(c)+Vu(h))*Math.min(Math.abs(c),Math.abs(h),.5*Math.abs(d))||0}function Xu(t,i){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-i)/2:i}function vh(t,i,r){var o=t._x0,a=t._y0,c=t._x1,h=t._y1,d=(c-o)/3;t._context.bezierCurveTo(o+d,a+d*i,c-d,h-d*r,c,h)}function Cl(t){this._context=t}Cl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:vh(this,this._t0,Xu(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){var r=NaN;if(t=+t,i=+i,!(t===this._x1&&i===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3,vh(this,Xu(this,r=Ku(this,t,i)),r);break;default:vh(this,this._t0,r=Ku(this,t,i));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i,this._t0=r}}};function Zu(t){this._context=new Ju(t)}(Zu.prototype=Object.create(Cl.prototype)).point=function(t,i){Cl.prototype.point.call(this,i,t)};function Ju(t){this._context=t}Ju.prototype={moveTo:function(t,i){this._context.moveTo(i,t)},closePath:function(){this._context.closePath()},lineTo:function(t,i){this._context.lineTo(i,t)},bezierCurveTo:function(t,i,r,o,a,c){this._context.bezierCurveTo(i,t,o,r,c,a)}};function Hd(t){return new Cl(t)}function Yd(t){return new Zu(t)}function Qu(t){this._context=t}Qu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,i=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],i[0]):this._context.moveTo(t[0],i[0]),r===2)this._context.lineTo(t[1],i[1]);else for(var o=td(t),a=td(i),c=0,h=1;h=0;--i)a[i]=(h[i]-a[i+1])/c[i];for(c[r-1]=(t[r]+a[r-1])/2,i=0;i=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,i),this._context.lineTo(t,i);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,i)}break}}this._x=t,this._y=i}};function Gd(t){return new bl(t,.5)}function Vd(t){return new bl(t,0)}function Kd(t){return new bl(t,1)}function Fo(t,i,r){this.k=t,this.x=i,this.y=r}Fo.prototype={constructor:Fo,scale:function(t){return t===1?this:new Fo(this.k*t,this.x,this.y)},translate:function(t,i){return t===0&i===0?this:new Fo(this.k,this.x+this.k*t,this.y+this.k*i)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Xd=new Fo(1,0,0);Zd.prototype=Fo.prototype;function Zd(t){for(;!t.__zoom;)if(!(t=t.parentNode))return Xd;return t.__zoom}function Jd(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Qd(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function ed(){return this.__zoom||identity}function tf(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function ef(){return navigator.maxTouchPoints||"ontouchstart"in this}function rf(t,i,r){var o=t.invertX(i[0][0])-r[0][0],a=t.invertX(i[1][0])-r[1][0],c=t.invertY(i[0][1])-r[0][1],h=t.invertY(i[1][1])-r[1][1];return t.translate(a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a),h>c?(c+h)/2:Math.min(0,c)||Math.max(0,h))}function af(){var t=Jd,i=Qd,r=rf,o=tf,a=ef,c=[0,1/0],h=[[-1/0,-1/0],[1/0,1/0]],d=250,g=interpolateZoom,p=dispatch("start","zoom","end"),C,L,x,O=500,nt=150,xt=0,U=10;function N(T){T.property("__zoom",ed).on("wheel.zoom",Nt,{passive:!1}).on("mousedown.zoom",ee).on("dblclick.zoom",jt).filter(a).on("touchstart.zoom",ht).on("touchmove.zoom",Rt).on("touchend.zoom touchcancel.zoom",rt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}N.transform=function(T,st,z,tt){var yt=T.selection?T.selection():T;yt.property("__zoom",ed),T!==yt?lt(T,st,z,tt):yt.interrupt().each(function(){Z(this,arguments).event(tt).start().zoom(null,typeof st=="function"?st.apply(this,arguments):st).end()})},N.scaleBy=function(T,st,z,tt){N.scaleTo(T,function(){var yt=this.__zoom.k,ft=typeof st=="function"?st.apply(this,arguments):st;return yt*ft},z,tt)},N.scaleTo=function(T,st,z,tt){N.transform(T,function(){var yt=i.apply(this,arguments),ft=this.__zoom,vt=z==null?ot(yt):typeof z=="function"?z.apply(this,arguments):z,Et=ft.invert(vt),It=typeof st=="function"?st.apply(this,arguments):st;return r(G(it(ft,It),vt,Et),yt,h)},z,tt)},N.translateBy=function(T,st,z,tt){N.transform(T,function(){return r(this.__zoom.translate(typeof st=="function"?st.apply(this,arguments):st,typeof z=="function"?z.apply(this,arguments):z),i.apply(this,arguments),h)},null,tt)},N.translateTo=function(T,st,z,tt,yt){N.transform(T,function(){var ft=i.apply(this,arguments),vt=this.__zoom,Et=tt==null?ot(ft):typeof tt=="function"?tt.apply(this,arguments):tt;return r(identity.translate(Et[0],Et[1]).scale(vt.k).translate(typeof st=="function"?-st.apply(this,arguments):-st,typeof z=="function"?-z.apply(this,arguments):-z),ft,h)},tt,yt)};function it(T,st){return st=Math.max(c[0],Math.min(c[1],st)),st===T.k?T:new Transform(st,T.x,T.y)}function G(T,st,z){var tt=st[0]-z[0]*T.k,yt=st[1]-z[1]*T.k;return tt===T.x&&yt===T.y?T:new Transform(T.k,tt,yt)}function ot(T){return[(+T[0][0]+ +T[1][0])/2,(+T[0][1]+ +T[1][1])/2]}function lt(T,st,z,tt){T.on("start.zoom",function(){Z(this,arguments).event(tt).start()}).on("interrupt.zoom end.zoom",function(){Z(this,arguments).event(tt).end()}).tween("zoom",function(){var yt=this,ft=arguments,vt=Z(yt,ft).event(tt),Et=i.apply(yt,ft),It=z==null?ot(Et):typeof z=="function"?z.apply(yt,ft):z,Ie=Math.max(Et[1][0]-Et[0][0],Et[1][1]-Et[0][1]),le=yt.__zoom,ce=typeof st=="function"?st.apply(yt,ft):st,Pe=g(le.invert(It).concat(Ie/le.k),ce.invert(It).concat(Ie/ce.k));return function(Zt){if(Zt===1)Zt=ce;else{var Me=Pe(Zt),ut=Ie/Me[2];Zt=new Transform(ut,It[0]-Me[0]*ut,It[1]-Me[1]*ut)}vt.zoom(null,Zt)}})}function Z(T,st,z){return!z&&T.__zooming||new Mt(T,st)}function Mt(T,st){this.that=T,this.args=st,this.active=0,this.sourceEvent=null,this.extent=i.apply(T,st),this.taps=0}Mt.prototype={event:function(T){return T&&(this.sourceEvent=T),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(T,st){return this.mouse&&T!=="mouse"&&(this.mouse[1]=st.invert(this.mouse[0])),this.touch0&&T!=="touch"&&(this.touch0[1]=st.invert(this.touch0[0])),this.touch1&&T!=="touch"&&(this.touch1[1]=st.invert(this.touch1[0])),this.that.__zoom=st,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(T){var st=select(this.that).datum();p.call(T,this.that,new ZoomEvent(T,{sourceEvent:this.sourceEvent,target:N,type:T,transform:this.that.__zoom,dispatch:p}),st)}};function Nt(T,...st){if(!t.apply(this,arguments))return;var z=Z(this,st).event(T),tt=this.__zoom,yt=Math.max(c[0],Math.min(c[1],tt.k*Math.pow(2,o.apply(this,arguments)))),ft=pointer(T);if(z.wheel)(z.mouse[0][0]!==ft[0]||z.mouse[0][1]!==ft[1])&&(z.mouse[1]=tt.invert(z.mouse[0]=ft)),clearTimeout(z.wheel);else{if(tt.k===yt)return;z.mouse=[ft,tt.invert(ft)],interrupt(this),z.start()}noevent(T),z.wheel=setTimeout(vt,nt),z.zoom("mouse",r(G(it(tt,yt),z.mouse[0],z.mouse[1]),z.extent,h));function vt(){z.wheel=null,z.end()}}function ee(T,...st){if(x||!t.apply(this,arguments))return;var z=T.currentTarget,tt=Z(this,st,!0).event(T),yt=select(T.view).on("mousemove.zoom",It,!0).on("mouseup.zoom",Ie,!0),ft=pointer(T,z),vt=T.clientX,Et=T.clientY;dragDisable(T.view),nopropagation(T),tt.mouse=[ft,this.__zoom.invert(ft)],interrupt(this),tt.start();function It(le){if(noevent(le),!tt.moved){var ce=le.clientX-vt,Pe=le.clientY-Et;tt.moved=ce*ce+Pe*Pe>xt}tt.event(le).zoom("mouse",r(G(tt.that.__zoom,tt.mouse[0]=pointer(le,z),tt.mouse[1]),tt.extent,h))}function Ie(le){yt.on("mousemove.zoom mouseup.zoom",null),dragEnable(le.view,tt.moved),noevent(le),tt.event(le).end()}}function jt(T,...st){if(t.apply(this,arguments)){var z=this.__zoom,tt=pointer(T.changedTouches?T.changedTouches[0]:T,this),yt=z.invert(tt),ft=z.k*(T.shiftKey?.5:2),vt=r(G(it(z,ft),tt,yt),i.apply(this,st),h);noevent(T),d>0?select(this).transition().duration(d).call(lt,vt,tt,T):select(this).call(N.transform,vt,tt,T)}}function ht(T,...st){if(t.apply(this,arguments)){var z=T.touches,tt=z.length,yt=Z(this,st,T.changedTouches.length===tt).event(T),ft,vt,Et,It;for(nopropagation(T),vt=0;vt{if(b.charCodeAt(0)!==35)return;const j=b.match(P.re);if(!j)return;const R=j[1],at=parseInt(R,16),dt=R.length,gt=dt%4===0,Ct=dt>4,St=Ct?1:17,me=Ct?8:4,ct=gt?0:-1,Kt=Ct?255:15;return B.A.set({r:(at>>me*(ct+3)&Kt)*St,g:(at>>me*(ct+2)&Kt)*St,b:(at>>me*(ct+1)&Kt)*St,a:gt?(at&Kt)*St/255:1},b)},stringify:b=>{const{r:j,g:R,b:at,a:dt}=b;return dt<1?`#${E.Y[Math.round(j)]}${E.Y[Math.round(R)]}${E.Y[Math.round(at)]}${E.Y[Math.round(dt*255)]}`:`#${E.Y[Math.round(j)]}${E.Y[Math.round(R)]}${E.Y[Math.round(at)]}`}};var A=P,M=f("./node_modules/khroma/dist/utils/index.js");const $={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:b=>{const j=b.match($.hueRe);if(j){const[,R,at]=j;switch(at){case"grad":return M.A.channel.clamp.h(parseFloat(R)*.9);case"rad":return M.A.channel.clamp.h(parseFloat(R)*180/Math.PI);case"turn":return M.A.channel.clamp.h(parseFloat(R)*360)}}return M.A.channel.clamp.h(parseFloat(b))},parse:b=>{const j=b.charCodeAt(0);if(j!==104&&j!==72)return;const R=b.match($.re);if(!R)return;const[,at,dt,gt,Ct,St]=R;return B.A.set({h:$._hue2deg(at),s:M.A.channel.clamp.s(parseFloat(dt)),l:M.A.channel.clamp.l(parseFloat(gt)),a:Ct?M.A.channel.clamp.a(St?parseFloat(Ct)/100:parseFloat(Ct)):1},b)},stringify:b=>{const{h:j,s:R,l:at,a:dt}=b;return dt<1?`hsla(${M.A.lang.round(j)}, ${M.A.lang.round(R)}%, ${M.A.lang.round(at)}%, ${dt})`:`hsl(${M.A.lang.round(j)}, ${M.A.lang.round(R)}%, ${M.A.lang.round(at)}%)`}};var W=$;const q={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:b=>{b=b.toLowerCase();const j=q.colors[b];if(j)return A.parse(j)},stringify:b=>{const j=A.stringify(b);for(const R in q.colors)if(q.colors[R]===j)return R}};var m=q;const k={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:b=>{const j=b.charCodeAt(0);if(j!==114&&j!==82)return;const R=b.match(k.re);if(!R)return;const[,at,dt,gt,Ct,St,me,ct,Kt]=R;return B.A.set({r:M.A.channel.clamp.r(dt?parseFloat(at)*2.55:parseFloat(at)),g:M.A.channel.clamp.g(Ct?parseFloat(gt)*2.55:parseFloat(gt)),b:M.A.channel.clamp.b(me?parseFloat(St)*2.55:parseFloat(St)),a:ct?M.A.channel.clamp.a(Kt?parseFloat(ct)/100:parseFloat(ct)):1},b)},stringify:b=>{const{r:j,g:R,b:at,a:dt}=b;return dt<1?`rgba(${M.A.lang.round(j)}, ${M.A.lang.round(R)}, ${M.A.lang.round(at)}, ${M.A.lang.round(dt)})`:`rgb(${M.A.lang.round(j)}, ${M.A.lang.round(R)}, ${M.A.lang.round(at)})`}};var I=k,J={format:{keyword:m,hex:A,rgb:I,rgba:I,hsl:W,hsla:W},parse:b=>{if(typeof b!="string")return b;const j=A.parse(b)||I.parse(b)||W.parse(b)||m.parse(b);if(j)return j;throw new Error(`Unsupported color format: "${b}"`)},stringify:b=>!b.changed&&b.color?b.color:b.type.is(E.Z.HSL)||b.data.r===void 0?W.stringify(b):b.a<1||!Number.isInteger(b.r)||!Number.isInteger(b.g)||!Number.isInteger(b.b)?I.stringify(b):A.stringify(b)}},"./node_modules/khroma/dist/constants.js":function(mt,D,f){"use strict";f.d(D,{Y:function(){return E},Z:function(){return P}});var B=f("./node_modules/khroma/dist/utils/index.js");const E={};for(let A=0;A<=255;A++)E[A]=B.A.unit.dec2hex(A);const P={ALL:0,RGB:1,HSL:2}},"./node_modules/khroma/dist/methods/adjust_channel.js":function(mt,D,f){"use strict";var B=f("./node_modules/khroma/dist/utils/index.js"),E=f("./node_modules/khroma/dist/color/index.js");const P=(A,M,$)=>{const W=E.A.parse(A),q=W[M],m=B.A.channel.clamp[M](q+$);return q!==m&&(W[M]=m),E.A.stringify(W)};D.A=P},"./node_modules/khroma/dist/methods/change.js":function(mt,D,f){"use strict";var B=f("./node_modules/khroma/dist/utils/index.js"),E=f("./node_modules/khroma/dist/color/index.js");const P=(A,M)=>{const $=E.A.parse(A);for(const W in M)$[W]=B.A.channel.clamp[W](M[W]);return E.A.stringify($)};D.A=P},"./node_modules/khroma/dist/methods/darken.js":function(mt,D,f){"use strict";var B=f("./node_modules/khroma/dist/methods/adjust_channel.js");const E=(P,A)=>(0,B.A)(P,"l",-A);D.A=E},"./node_modules/khroma/dist/methods/is_dark.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return q}});var B=f("./node_modules/khroma/dist/utils/index.js"),E=f("./node_modules/khroma/dist/color/index.js"),A=m=>{const{r:k,g:I,b:et}=E.A.parse(m),J=.2126*B.A.channel.toLinear(k)+.7152*B.A.channel.toLinear(I)+.0722*B.A.channel.toLinear(et);return B.A.lang.round(J)},$=m=>A(m)>=.5,q=m=>!$(m)},"./node_modules/khroma/dist/methods/lighten.js":function(mt,D,f){"use strict";var B=f("./node_modules/khroma/dist/methods/adjust_channel.js");const E=(P,A)=>(0,B.A)(P,"l",A);D.A=E},"./node_modules/khroma/dist/methods/rgba.js":function(mt,D,f){"use strict";var B=f("./node_modules/khroma/dist/utils/index.js"),E=f("./node_modules/khroma/dist/channels/reusable.js"),P=f("./node_modules/khroma/dist/color/index.js"),A=f("./node_modules/khroma/dist/methods/change.js");const M=($,W,q=0,m=1)=>{if(typeof $!="number")return(0,A.A)($,{a:W});const k=E.A.set({r:B.A.channel.clamp.r($),g:B.A.channel.clamp.g(W),b:B.A.channel.clamp.b(q),a:B.A.channel.clamp.a(m)});return P.A.stringify(k)};D.A=M},"./node_modules/khroma/dist/utils/index.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return q}});const B={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:m=>m>=255?255:m<0?0:m,g:m=>m>=255?255:m<0?0:m,b:m=>m>=255?255:m<0?0:m,h:m=>m%360,s:m=>m>=100?100:m<0?0:m,l:m=>m>=100?100:m<0?0:m,a:m=>m>=1?1:m<0?0:m},toLinear:m=>{const k=m/255;return m>.03928?Math.pow((k+.055)/1.055,2.4):k/12.92},hue2rgb:(m,k,I)=>(I<0&&(I+=1),I>1&&(I-=1),I<1/6?m+(k-m)*6*I:I<1/2?k:I<2/3?m+(k-m)*(2/3-I)*6:m),hsl2rgb:({h:m,s:k,l:I},et)=>{if(!k)return I*2.55;m/=360,k/=100,I/=100;const J=I<.5?I*(1+k):I+k-I*k,b=2*I-J;switch(et){case"r":return B.hue2rgb(b,J,m+1/3)*255;case"g":return B.hue2rgb(b,J,m)*255;case"b":return B.hue2rgb(b,J,m-1/3)*255}},rgb2hsl:({r:m,g:k,b:I},et)=>{m/=255,k/=255,I/=255;const J=Math.max(m,k,I),b=Math.min(m,k,I),j=(J+b)/2;if(et==="l")return j*100;if(J===b)return 0;const R=J-b,at=j>.5?R/(2-J-b):R/(J+b);if(et==="s")return at*100;switch(J){case m:return((k-I)/R+(kk>I?Math.min(k,Math.max(I,m)):Math.min(I,Math.max(k,m)),round:m=>Math.round(m*1e10)/1e10},$={dec2hex:m=>{const k=Math.round(m).toString(16);return k.length>1?k:`0${k}`}},q={channel:E,lang:A,unit:$}},"./node_modules/lodash-es/_ListCache.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return at}});function B(){this.__data__=[],this.size=0}var E=B,P=f("./node_modules/lodash-es/eq.js");function A(dt,gt){for(var Ct=dt.length;Ct--;)if((0,P.A)(dt[Ct][0],gt))return Ct;return-1}var M=A,$=Array.prototype,W=$.splice;function q(dt){var gt=this.__data__,Ct=M(gt,dt);if(Ct<0)return!1;var St=gt.length-1;return Ct==St?gt.pop():W.call(gt,Ct,1),--this.size,!0}var m=q;function k(dt){var gt=this.__data__,Ct=M(gt,dt);return Ct<0?void 0:gt[Ct][1]}var I=k;function et(dt){return M(this.__data__,dt)>-1}var J=et;function b(dt,gt){var Ct=this.__data__,St=M(Ct,dt);return St<0?(++this.size,Ct.push([dt,gt])):Ct[St][1]=gt,this}var j=b;function R(dt){var gt=-1,Ct=dt==null?0:dt.length;for(this.clear();++gt-1&&P%1==0&&P0){if(++b>=$)return arguments[0]}else b=0;return J.apply(void 0,arguments)}}var k=m,I=k(M),et=I},"./node_modules/lodash-es/_toSource.js":function(mt,D){"use strict";var f=Function.prototype,B=f.toString;function E(P){if(P!=null){try{return B.call(P)}catch{}try{return P+""}catch{}}return""}D.A=E},"./node_modules/lodash-es/constant.js":function(mt,D){"use strict";function f(B){return function(){return B}}D.A=f},"./node_modules/lodash-es/eq.js":function(mt,D){"use strict";function f(B,E){return B===E||B!==B&&E!==E}D.A=f},"./node_modules/lodash-es/identity.js":function(mt,D){"use strict";function f(B){return B}D.A=f},"./node_modules/lodash-es/isArguments.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return k}});var B=f("./node_modules/lodash-es/_baseGetTag.js"),E=f("./node_modules/lodash-es/isObjectLike.js"),P="[object Arguments]";function A(I){return(0,E.A)(I)&&(0,B.A)(I)==P}var M=A,$=Object.prototype,W=$.hasOwnProperty,q=$.propertyIsEnumerable,m=M(function(){return arguments}())?M:function(I){return(0,E.A)(I)&&W.call(I,"callee")&&!q.call(I,"callee")},k=m},"./node_modules/lodash-es/isArray.js":function(mt,D){"use strict";var f=Array.isArray;D.A=f},"./node_modules/lodash-es/isArrayLike.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/isFunction.js"),E=f("./node_modules/lodash-es/isLength.js");function P(A){return A!=null&&(0,E.A)(A.length)&&!(0,B.A)(A)}D.A=P},"./node_modules/lodash-es/isArrayLikeObject.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/isArrayLike.js"),E=f("./node_modules/lodash-es/isObjectLike.js");function P(A){return(0,E.A)(A)&&(0,B.A)(A)}D.A=P},"./node_modules/lodash-es/isBuffer.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return k}});var B=f("./node_modules/lodash-es/_root.js");function E(){return!1}var P=E,A=typeof exports=="object"&&exports&&!exports.nodeType&&exports,M=A&&typeof module=="object"&&module&&!module.nodeType&&module,$=M&&M.exports===A,W=$?B.A.Buffer:void 0,q=W?W.isBuffer:void 0,m=q||P,k=m},"./node_modules/lodash-es/isEmpty.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/_baseKeys.js"),E=f("./node_modules/lodash-es/_getTag.js"),P=f("./node_modules/lodash-es/isArguments.js"),A=f("./node_modules/lodash-es/isArray.js"),M=f("./node_modules/lodash-es/isArrayLike.js"),$=f("./node_modules/lodash-es/isBuffer.js"),W=f("./node_modules/lodash-es/_isPrototype.js"),q=f("./node_modules/lodash-es/isTypedArray.js"),m="[object Map]",k="[object Set]",I=Object.prototype,et=I.hasOwnProperty;function J(b){if(b==null)return!0;if((0,M.A)(b)&&((0,A.A)(b)||typeof b=="string"||typeof b.splice=="function"||(0,$.A)(b)||(0,q.A)(b)||(0,P.A)(b)))return!b.length;var j=(0,E.A)(b);if(j==m||j==k)return!b.size;if((0,W.A)(b))return!(0,B.A)(b).length;for(var R in b)if(et.call(b,R))return!1;return!0}D.A=J},"./node_modules/lodash-es/isFunction.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/_baseGetTag.js"),E=f("./node_modules/lodash-es/isObject.js"),P="[object AsyncFunction]",A="[object Function]",M="[object GeneratorFunction]",$="[object Proxy]";function W(q){if(!(0,E.A)(q))return!1;var m=(0,B.A)(q);return m==A||m==M||m==P||m==$}D.A=W},"./node_modules/lodash-es/isLength.js":function(mt,D){"use strict";var f=9007199254740991;function B(E){return typeof E=="number"&&E>-1&&E%1==0&&E<=f}D.A=B},"./node_modules/lodash-es/isObject.js":function(mt,D){"use strict";function f(B){var E=typeof B;return B!=null&&(E=="object"||E=="function")}D.A=f},"./node_modules/lodash-es/isObjectLike.js":function(mt,D){"use strict";function f(B){return B!=null&&typeof B=="object"}D.A=f},"./node_modules/lodash-es/isPlainObject.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/_baseGetTag.js"),E=f("./node_modules/lodash-es/_getPrototype.js"),P=f("./node_modules/lodash-es/isObjectLike.js"),A="[object Object]",M=Function.prototype,$=Object.prototype,W=M.toString,q=$.hasOwnProperty,m=W.call(Object);function k(I){if(!(0,P.A)(I)||(0,B.A)(I)!=A)return!1;var et=(0,E.A)(I);if(et===null)return!0;var J=q.call(et,"constructor")&&et.constructor;return typeof J=="function"&&J instanceof J&&W.call(J)==m}D.A=k},"./node_modules/lodash-es/isTypedArray.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return qt}});var B=f("./node_modules/lodash-es/_baseGetTag.js"),E=f("./node_modules/lodash-es/isLength.js"),P=f("./node_modules/lodash-es/isObjectLike.js"),A="[object Arguments]",M="[object Array]",$="[object Boolean]",W="[object Date]",q="[object Error]",m="[object Function]",k="[object Map]",I="[object Number]",et="[object Object]",J="[object RegExp]",b="[object Set]",j="[object String]",R="[object WeakMap]",at="[object ArrayBuffer]",dt="[object DataView]",gt="[object Float32Array]",Ct="[object Float64Array]",St="[object Int8Array]",me="[object Int16Array]",ct="[object Int32Array]",Kt="[object Uint8Array]",ge="[object Uint8ClampedArray]",Ve="[object Uint16Array]",Ke="[object Uint32Array]",$t={};$t[gt]=$t[Ct]=$t[St]=$t[me]=$t[ct]=$t[Kt]=$t[ge]=$t[Ve]=$t[Ke]=!0,$t[A]=$t[M]=$t[at]=$t[$]=$t[dt]=$t[W]=$t[q]=$t[m]=$t[k]=$t[I]=$t[et]=$t[J]=$t[b]=$t[j]=$t[R]=!1;function Ue(Gt){return(0,P.A)(Gt)&&(0,E.A)(Gt.length)&&!!$t[(0,B.A)(Gt)]}var nr=Ue,Si=f("./node_modules/lodash-es/_baseUnary.js"),Ri=f("./node_modules/lodash-es/_nodeUtil.js"),wi=Ri.A&&Ri.A.isTypedArray,Bi=wi?(0,Si.A)(wi):nr,qt=Bi},"./node_modules/lodash-es/keysIn.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return et}});var B=f("./node_modules/lodash-es/_arrayLikeKeys.js"),E=f("./node_modules/lodash-es/isObject.js"),P=f("./node_modules/lodash-es/_isPrototype.js");function A(J){var b=[];if(J!=null)for(var j in Object(J))b.push(j);return b}var M=A,$=Object.prototype,W=$.hasOwnProperty;function q(J){if(!(0,E.A)(J))return M(J);var b=(0,P.A)(J),j=[];for(var R in J)R=="constructor"&&(b||!W.call(J,R))||j.push(R);return j}var m=q,k=f("./node_modules/lodash-es/isArrayLike.js");function I(J){return(0,k.A)(J)?(0,B.A)(J,!0):m(J)}var et=I},"./node_modules/lodash-es/memoize.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/_MapCache.js"),E="Expected a function";function P(A,M){if(typeof A!="function"||M!=null&&typeof M!="function")throw new TypeError(E);var $=function(){var W=arguments,q=M?M.apply(this,W):W[0],m=$.cache;if(m.has(q))return m.get(q);var k=A.apply(this,W);return $.cache=m.set(q,k)||m,k};return $.cache=new(P.Cache||B.A),$}P.Cache=B.A,D.A=P},"./node_modules/lodash-es/merge.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return Bi}});var B=f("./node_modules/lodash-es/_Stack.js"),E=f("./node_modules/lodash-es/_baseAssignValue.js"),P=f("./node_modules/lodash-es/eq.js");function A(qt,Gt,Jt){(Jt!==void 0&&!(0,P.A)(qt[Gt],Jt)||Jt===void 0&&!(Gt in qt))&&(0,E.A)(qt,Gt,Jt)}var M=A,$=f("./node_modules/lodash-es/_baseFor.js"),W=f("./node_modules/lodash-es/_cloneBuffer.js"),q=f("./node_modules/lodash-es/_cloneTypedArray.js"),m=f("./node_modules/lodash-es/_copyArray.js"),k=f("./node_modules/lodash-es/_initCloneObject.js"),I=f("./node_modules/lodash-es/isArguments.js"),et=f("./node_modules/lodash-es/isArray.js"),J=f("./node_modules/lodash-es/isArrayLikeObject.js"),b=f("./node_modules/lodash-es/isBuffer.js"),j=f("./node_modules/lodash-es/isFunction.js"),R=f("./node_modules/lodash-es/isObject.js"),at=f("./node_modules/lodash-es/isPlainObject.js"),dt=f("./node_modules/lodash-es/isTypedArray.js");function gt(qt,Gt){if(!(Gt==="constructor"&&typeof qt[Gt]=="function")&&Gt!="__proto__")return qt[Gt]}var Ct=gt,St=f("./node_modules/lodash-es/_copyObject.js"),me=f("./node_modules/lodash-es/keysIn.js");function ct(qt){return(0,St.A)(qt,(0,me.A)(qt))}var Kt=ct;function ge(qt,Gt,Jt,pe,we,_t,Bt){var Ut=Ct(qt,Jt),se=Ct(Gt,Jt),Sr=Bt.get(se);if(Sr){M(qt,Jt,Sr);return}var je=_t?_t(Ut,se,Jt+"",qt,Gt,Bt):void 0,Qe=je===void 0;if(Qe){var wr=(0,et.A)(se),Ne=!wr&&(0,b.A)(se),Ei=!wr&&!Ne&&(0,dt.A)(se);je=se,wr||Ne||Ei?(0,et.A)(Ut)?je=Ut:(0,J.A)(Ut)?je=(0,m.A)(Ut):Ne?(Qe=!1,je=(0,W.A)(se,!0)):Ei?(Qe=!1,je=(0,q.A)(se,!0)):je=[]:(0,at.A)(se)||(0,I.A)(se)?(je=Ut,(0,I.A)(Ut)?je=Kt(Ut):(!(0,R.A)(Ut)||(0,j.A)(Ut))&&(je=(0,k.A)(se))):Qe=!1}Qe&&(Bt.set(se,je),we(je,se,pe,_t,Bt),Bt.delete(se)),M(qt,Jt,je)}var Ve=ge;function Ke(qt,Gt,Jt,pe,we){qt!==Gt&&(0,$.A)(Gt,function(_t,Bt){if(we||(we=new B.A),(0,R.A)(_t))Ve(qt,Gt,Bt,Jt,Ke,pe,we);else{var Ut=pe?pe(Ct(qt,Bt),_t,Bt+"",qt,Gt,we):void 0;Ut===void 0&&(Ut=_t),M(qt,Bt,Ut)}},me.A)}var $t=Ke,Ue=f("./node_modules/lodash-es/_baseRest.js"),nr=f("./node_modules/lodash-es/_isIterateeCall.js");function Si(qt){return(0,Ue.A)(function(Gt,Jt){var pe=-1,we=Jt.length,_t=we>1?Jt[we-1]:void 0,Bt=we>2?Jt[2]:void 0;for(_t=qt.length>3&&typeof _t=="function"?(we--,_t):void 0,Bt&&(0,nr.A)(Jt[0],Jt[1],Bt)&&(_t=we<3?void 0:_t,we=1),Gt=Object(Gt);++pe{const s=$.A.parse(e),l={};for(const u in n)n[u]&&(l[u]=s[u]+n[u]);return(0,W.A)(e,l)},k=f("./node_modules/khroma/dist/methods/rgba.js"),et=(e,n,s=50)=>{const{r:l,g:u,b:_,a:y}=$.A.parse(e),{r:w,g:F,b:V,a:Q}=$.A.parse(n),Y=s/100,S=Y*2-1,H=y-Q,Dt=((S*H===-1?S:(S+H)/(1+S*H))+1)/2,Lt=1-Dt,Vt=l*Dt+w*Lt,kt=u*Dt+F*Lt,mi=_*Dt+V*Lt,Ae=y*Y+Q*(1-Y);return(0,k.A)(Vt,kt,mi,Ae)},b=(e,n=100)=>{const s=$.A.parse(e);return s.r=255-s.r,s.g=255-s.g,s.b=255-s.b,et(s,e,n)},j=f("./node_modules/khroma/dist/methods/darken.js"),R=f("./node_modules/khroma/dist/methods/lighten.js"),at=f("./node_modules/khroma/dist/methods/is_dark.js"),dt=f("./node_modules/lodash-es/memoize.js"),gt=f("./node_modules/lodash-es/merge.js"),Ct="-ms-",St="-moz-",me="-webkit-",ct="comm",Kt="rule",ge="decl",Ve="@page",Ke="@media",$t="@import",Ue="@charset",nr="@viewport",Si="@supports",Ri="@document",wi="@namespace",Bi="@keyframes",qt="@font-face",Gt="@counter-style",Jt="@font-feature-values",pe="@layer",we="@scope",_t=Math.abs,Bt=String.fromCharCode,Ut=Object.assign;function se(e,n){return Ne(e,0)^45?(((n<<2^Ne(e,0))<<2^Ne(e,1))<<2^Ne(e,2))<<2^Ne(e,3):0}function Sr(e){return e.trim()}function je(e,n){return(e=n.exec(e))?e[0]:e}function Qe(e,n,s){return e.replace(n,s)}function wr(e,n,s){return e.indexOf(n,s)}function Ne(e,n){return e.charCodeAt(n)|0}function Ei(e,n,s){return e.slice(n,s)}function _i(e){return e.length}function Kn(e){return e.length}function Yr(e,n){return n.push(e),e}function Yt(e,n){return e.map(n).join("")}function Tt(e,n){return e.filter(function(s){return!je(s,n)})}function Wt(e,n){for(var s="",l=0;l0?Ne(oi,--Fe):0,We--,Qt===10&&(We=1,_e--),Qt}function Xe(){return Qt=Fe2||be(Qt)>3?"":" "}function Io(e){for(;Xe();)switch(be(Qt)){case 0:append(Br(Fe-1),e);break;case 2:append(Xr(Qt),e);break;default:append(from(Qt),e)}return e}function ti(e,n){for(;--n&&Xe()&&!(Qt<48||Qt>102||Qt>57&&Qt<65||Qt>70&&Qt<97););return or(e,Kr()+(n<6&&Li()==32&&Xe()==32))}function $i(e){for(;Xe();)switch(Qt){case e:return Fe;case 34:case 39:e!==34&&e!==39&&$i(Qt);break;case 40:e===41&&$i(e);break;case 92:Xe();break}return Fe}function Zr(e,n){for(;Xe()&&e+Qt!==57;)if(e+Qt===84&&Li()===47)break;return"/*"+or(n,Fe-1)+"*"+Bt(e===47?e:Xe())}function Br(e){for(;!be(Li());)Xe();return or(e,Fe)}function Xn(e){return Ci(Jr("",null,null,null,[""],e=sr(e),0,[0],e))}function Jr(e,n,s,l,u,_,y,w,F){for(var V=0,Q=0,Y=y,S=0,H=0,Ot=0,Dt=1,Lt=1,Vt=1,kt=0,mi="",Ae=u,gi=_,pi=l,ne=mi;Lt;)switch(Ot=kt,kt=Xe()){case 40:if(Ot!=108&&Ne(ne,Y-1)==58){wr(ne+=Qe(Xr(kt),"&","&\f"),"&\f",_t(V?w[V-1]:0))!=-1&&(Vt=-1);break}case 34:case 39:case 91:ne+=Xr(kt);break;case 9:case 10:case 13:case 32:ne+=Do(Ot);break;case 92:ne+=ti(Kr()-1,7);continue;case 47:switch(Li()){case 42:case 47:Yr(Jn(Zr(Xe(),Kr()),n,s,F),F);break;default:ne+="/"}break;case 123*Dt:w[V++]=_i(ne)*Vt;case 125*Dt:case 59:case 0:switch(kt){case 0:case 125:Lt=0;case 59+Q:Vt==-1&&(ne=Qe(ne,/\f/g,"")),H>0&&_i(ne)-Y&&Yr(H>32?Qn(ne+";",l,s,Y-1,F):Qn(Qe(ne," ","")+";",l,s,Y-2,F),F);break;case 59:ne+=";";default:if(Yr(pi=Zn(ne,n,s,V,Q,u,w,mi,Ae=[],gi=[],Y,_),_),kt===123)if(Q===0)Jr(ne,n,pi,pi,Ae,_,Y,w,gi);else switch(S===99&&Ne(ne,3)===110?100:S){case 100:case 108:case 109:case 115:Jr(e,pi,pi,l&&Yr(Zn(e,pi,pi,0,0,u,w,mi,u,Ae=[],Y,gi),gi),u,gi,Y,w,l?Ae:gi);break;default:Jr(ne,pi,pi,pi,[""],gi,0,w,gi)}}V=Q=H=0,Dt=Vt=1,mi=ne="",Y=y;break;case 58:Y=1+_i(ne),H=Ot;default:if(Dt<1){if(kt==123)--Dt;else if(kt==125&&Dt++==0&&Vr()==125)continue}switch(ne+=Bt(kt),kt*Dt){case 38:Vt=Q>0?1:(ne+="\f",-1);break;case 44:w[V++]=(_i(ne)-1)*Vt,Vt=1;break;case 64:Li()===45&&(ne+=Xr(Xe())),S=Li(),Q=Y=_i(mi=ne+=Br(Kr())),kt++;break;case 45:Ot===45&&_i(ne)==2&&(Dt=0)}}return _}function Zn(e,n,s,l,u,_,y,w,F,V,Q,Y){for(var S=u-1,H=u===0?_:[""],Ot=Kn(H),Dt=0,Lt=0,Vt=0;Dt0?H[kt]+" "+mi:Qe(mi,/&\f/g,H[kt])))&&(F[Vt++]=Ae);return qr(e,n,s,u===0?Kt:w,F,V,Q,Y)}function Jn(e,n,s,l){return qr(e,n,s,ct,Bt(Gr()),Ei(e,2,-2),0,l)}function Qn(e,n,s,l,u){return qr(e,n,s,ge,Ei(e,0,l),Ei(e,l+1,-1),l,u)}var Qr=f("./node_modules/lodash-es/isEmpty.js");const ie={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},At={trace:(...e)=>{},debug:(...e)=>{},info:(...e)=>{},warn:(...e)=>{},error:(...e)=>{},fatal:(...e)=>{}},ue=function(e="fatal"){let n=ie.fatal;typeof e=="string"?(e=e.toLowerCase(),e in ie&&(n=ie[e])):typeof e=="number"&&(n=e),At.trace=()=>{},At.debug=()=>{},At.info=()=>{},At.warn=()=>{},At.error=()=>{},At.fatal=()=>{},n<=ie.fatal&&(At.fatal=console.error?console.error.bind(console,He("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",He("FATAL"))),n<=ie.error&&(At.error=console.error?console.error.bind(console,He("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",He("ERROR"))),n<=ie.warn&&(At.warn=console.warn?console.warn.bind(console,He("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",He("WARN"))),n<=ie.info&&(At.info=console.info?console.info.bind(console,He("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",He("INFO"))),n<=ie.debug&&(At.debug=console.debug?console.debug.bind(console,He("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",He("DEBUG"))),n<=ie.trace&&(At.trace=console.debug?console.debug.bind(console,He("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",He("TRACE")))},He=e=>`%c${E().format("ss.SSS")} : ${e} : `,re=//gi,Er=e=>e?en(e).replace(/\\n/g,"#br#").split("#br#"):[""],vn=(()=>{let e=!1;return()=>{e||(to(),e=!0)}})();function to(){const e="data-temp-href-target";M.addHook("beforeSanitizeAttributes",n=>{n.tagName==="A"&&n.hasAttribute("target")&&n.setAttribute(e,n.getAttribute("target")||"")}),M.addHook("afterSanitizeAttributes",n=>{n.tagName==="A"&&n.hasAttribute(e)&&(n.setAttribute("target",n.getAttribute(e)||""),n.removeAttribute(e),n.getAttribute("target")==="_blank"&&n.setAttribute("rel","noopener"))})}const tn=e=>(vn(),M.sanitize(e)),Tn=(e,n)=>{var s;if(((s=n.flowchart)==null?void 0:s.htmlLabels)!==!1){const l=n.securityLevel;l==="antiscript"||l==="strict"?e=tn(e):l!=="loose"&&(e=en(e),e=e.replace(//g,">"),e=e.replace(/=/g,"="),e=An(e))}return e},zi=(e,n)=>e&&(n.dompurifyConfig?e=M.sanitize(Tn(e,n),n.dompurifyConfig).toString():e=M.sanitize(Tn(e,n),{FORBID_TAGS:["style"]}).toString(),e),ar=(e,n)=>typeof e=="string"?zi(e,n):e.flat().map(s=>zi(s,n)),eo=e=>re.test(e),Mi=e=>e.split(re),An=e=>e.replace(/#br#/g,"
"),en=e=>e.replace(re,"#br#"),lr=e=>{let n="";return e&&(n=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,n=n.replaceAll(/\(/g,"\\("),n=n.replaceAll(/\)/g,"\\)")),n},cr=e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),rn=function(...e){const n=e.filter(s=>!isNaN(s));return Math.max(...n)},io=function(...e){const n=e.filter(s=>!isNaN(s));return Math.min(...n)},ro=function(e){const n=e.split(/(,)/),s=[];for(let l=0;l0&&l+1Math.max(0,e.split(n).length-1),Sn=(e,n)=>{const s=kn(e,"~"),l=kn(n,"~");return s===1&&l===1},Lr=e=>{const n=kn(e,"~");let s=!1;if(n<=1)return e;n%2!==0&&e.startsWith("~")&&(e=e.substring(1),s=!0);const l=[...e];let u=l.indexOf("~"),_=l.lastIndexOf("~");for(;u!==-1&&_!==-1&&u!==_;)l[u]="<",l[_]=">",u=l.indexOf("~"),_=l.lastIndexOf("~");return s&&l.unshift("~"),l.join("")},Ui=()=>window.MathMLElement!==void 0,Fi=/\$\$(.*)\$\$/g,nn=e=>{var n;return(((n=e.match(Fi))==null?void 0:n.length)??0)>0},no=async(e,n)=>{e=await on(e,n);const s=document.createElement("div");s.innerHTML=e,s.id="katex-temp",s.style.visibility="hidden",s.style.position="absolute",s.style.top="0";const l=document.querySelector("body");l?.insertAdjacentElement("beforeend",s);const u={width:s.clientWidth,height:s.clientHeight};return s.remove(),u},on=async(e,n)=>{if(!nn(e))return e;if(!Ui()&&!n.legacyMathML)return e.replace(Fi,"MathML is unsupported in this environment.");const{default:s}=await f.e("katex-").then(f.bind(f,"./node_modules/katex/dist/katex.mjs"));return e.split(re).map(l=>nn(l)?`
${l}
`:`
${l}
`).join("").replace(Fi,(l,u)=>s.renderToString(u,{throwOnError:!0,displayMode:!0,output:Ui()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(//g,""))},hr={getRows:Er,sanitizeText:zi,sanitizeTextOrArray:ar,hasBreaks:eo,splitBreaks:Mi,lineBreakRegex:re,removeScript:tn,getUrl:lr,evaluate:cr,getMax:rn,getMin:io},Oe=(e,n)=>n?m(e,{s:-40,l:10}):m(e,{s:-40,l:-10}),Wi="#ffffff",Hi="#f2f2f2";let ei=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var n,s,l,u,_,y,w,F,V,Q,Y;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||m(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||m(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Oe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Oe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Oe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Oe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||b(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||b(this.tertiaryColor),this.lineColor=this.lineColor||b(this.background),this.arrowheadColor=this.arrowheadColor||b(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,j.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,j.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||b(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,R.A)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||m(this.primaryColor,{h:30}),this.cScale4=this.cScale4||m(this.primaryColor,{h:60}),this.cScale5=this.cScale5||m(this.primaryColor,{h:90}),this.cScale6=this.cScale6||m(this.primaryColor,{h:120}),this.cScale7=this.cScale7||m(this.primaryColor,{h:150}),this.cScale8=this.cScale8||m(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||m(this.primaryColor,{h:270}),this.cScale10=this.cScale10||m(this.primaryColor,{h:300}),this.cScale11=this.cScale11||m(this.primaryColor,{h:330}),this.darkMode)for(let H=0;H{this[l]=n[l]}),this.updateColors(),s.forEach(l=>{this[l]=n[l]})}};const de=e=>{const n=new ei;return n.calculate(e),n};let sn=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,R.A)(this.primaryColor,16),this.tertiaryColor=m(this.primaryColor,{h:-160}),this.primaryBorderColor=b(this.background),this.secondaryBorderColor=Oe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Oe(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.tertiaryColor),this.lineColor=b(this.background),this.textColor=b(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,R.A)(b("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=(0,k.A)(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=(0,j.A)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=(0,j.A)(this.sectionBkgColor,10),this.taskBorderColor=(0,k.A)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,k.A)(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var n,s,l,u,_,y,w,F,V,Q,Y;this.secondBkg=(0,R.A)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,R.A)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,R.A)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=m(this.primaryColor,{h:64}),this.fillType3=m(this.secondaryColor,{h:64}),this.fillType4=m(this.primaryColor,{h:-64}),this.fillType5=m(this.secondaryColor,{h:-64}),this.fillType6=m(this.primaryColor,{h:128}),this.fillType7=m(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||m(this.primaryColor,{h:30}),this.cScale4=this.cScale4||m(this.primaryColor,{h:60}),this.cScale5=this.cScale5||m(this.primaryColor,{h:90}),this.cScale6=this.cScale6||m(this.primaryColor,{h:120}),this.cScale7=this.cScale7||m(this.primaryColor,{h:150}),this.cScale8=this.cScale8||m(this.primaryColor,{h:210}),this.cScale9=this.cScale9||m(this.primaryColor,{h:270}),this.cScale10=this.cScale10||m(this.primaryColor,{h:300}),this.cScale11=this.cScale11||m(this.primaryColor,{h:330});for(let S=0;S{this[l]=n[l]}),this.updateColors(),s.forEach(l=>{this[l]=n[l]})}};const wn=e=>{const n=new sn;return n.calculate(e),n};let Mr=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=m(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=m(this.primaryColor,{h:-160}),this.primaryBorderColor=Oe(this.primaryColor,this.darkMode),this.secondaryBorderColor=Oe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Oe(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.tertiaryColor),this.lineColor=b(this.background),this.textColor=b(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=(0,k.A)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var n,s,l,u,_,y,w,F,V,Q,Y;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||m(this.primaryColor,{h:30}),this.cScale4=this.cScale4||m(this.primaryColor,{h:60}),this.cScale5=this.cScale5||m(this.primaryColor,{h:90}),this.cScale6=this.cScale6||m(this.primaryColor,{h:120}),this.cScale7=this.cScale7||m(this.primaryColor,{h:150}),this.cScale8=this.cScale8||m(this.primaryColor,{h:210}),this.cScale9=this.cScale9||m(this.primaryColor,{h:270}),this.cScale10=this.cScale10||m(this.primaryColor,{h:300}),this.cScale11=this.cScale11||m(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,j.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,j.A)(this.tertiaryColor,40);for(let S=0;S{this[l]=n[l]}),this.updateColors(),s.forEach(l=>{this[l]=n[l]})}};const ur=e=>{const n=new Mr;return n.calculate(e),n};let oo=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=(0,R.A)("#cde498",10),this.primaryBorderColor=Oe(this.primaryColor,this.darkMode),this.secondaryBorderColor=Oe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Oe(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.primaryColor),this.lineColor=b(this.background),this.textColor=b(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var n,s,l,u,_,y,w,F,V,Q,Y;this.actorBorder=(0,j.A)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||m(this.primaryColor,{h:30}),this.cScale4=this.cScale4||m(this.primaryColor,{h:60}),this.cScale5=this.cScale5||m(this.primaryColor,{h:90}),this.cScale6=this.cScale6||m(this.primaryColor,{h:120}),this.cScale7=this.cScale7||m(this.primaryColor,{h:150}),this.cScale8=this.cScale8||m(this.primaryColor,{h:210}),this.cScale9=this.cScale9||m(this.primaryColor,{h:270}),this.cScale10=this.cScale10||m(this.primaryColor,{h:300}),this.cScale11=this.cScale11||m(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,j.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,j.A)(this.tertiaryColor,40);for(let S=0;S{this[l]=n[l]}),this.updateColors(),s.forEach(l=>{this[l]=n[l]})}};const an=e=>{const n=new oo;return n.calculate(e),n};class xe{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,R.A)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=m(this.primaryColor,{h:-160}),this.primaryBorderColor=Oe(this.primaryColor,this.darkMode),this.secondaryBorderColor=Oe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Oe(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.tertiaryColor),this.lineColor=b(this.background),this.textColor=b(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var n,s,l,u,_,y,w,F,V,Q,Y;this.secondBkg=(0,R.A)(this.contrast,55),this.border2=this.contrast,this.actorBorder=(0,R.A)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let S=0;S{this[l]=n[l]}),this.updateColors(),s.forEach(l=>{this[l]=n[l]})}}const si={base:{getThemeVariables:de},dark:{getThemeVariables:wn},default:{getThemeVariables:ur},forest:{getThemeVariables:an},neutral:{getThemeVariables:e=>{const n=new xe;return n.calculate(e),n}}},ai={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},bi={...ai,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:si.default.getThemeVariables(),sequence:{...ai.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...ai.gantt,tickInterval:void 0,useWidth:void 0},c4:{...ai.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...ai.pie,useWidth:984},xyChart:{...ai.xyChart,useWidth:void 0},requirement:{...ai.requirement,useWidth:void 0},gitGraph:{...ai.gitGraph,useMaxWidth:!1},sankey:{...ai.sankey,useMaxWidth:!1}},Yi=(e,n="")=>Object.keys(e).reduce((s,l)=>Array.isArray(e[l])?s:typeof e[l]=="object"&&e[l]!==null?[...s,n+l,...Yi(e[l],"")]:[...s,n+l],[]),dr=new Set(Yi(bi,"")),Bn=bi,Oi=e=>{if(At.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(n=>Oi(n));return}for(const n of Object.keys(e)){if(At.debug("Checking key",n),n.startsWith("__")||n.includes("proto")||n.includes("constr")||!dr.has(n)||e[n]==null){At.debug("sanitize deleting key: ",n),delete e[n];continue}if(typeof e[n]=="object"){At.debug("sanitizing object",n),Oi(e[n]);continue}const s=["themeCSS","fontFamily","altFontFamily"];for(const l of s)n.includes(l)&&(At.debug("sanitizing css option",n),e[n]=fr(e[n]))}if(e.themeVariables)for(const n of Object.keys(e.themeVariables)){const s=e.themeVariables[n];s?.match&&!s.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[n]="")}At.debug("After sanitization",e)}},fr=e=>{let n=0,s=0;for(const l of e){if(n{for(const{id:n,detector:s,loader:l}of e)Ye(n,s,l)},Ye=(e,n,s)=>{Di[e]?At.error(`Detector with key ${e} already exists`):Di[e]={detector:n,loader:s},At.debug(`Detector with key ${e} added${s?" with loader":""}`)},Ln=e=>Di[e].loader,ln=(e,n,{depth:s=2,clobber:l=!1}={})=>{const u={depth:s,clobber:l};return Array.isArray(n)&&!Array.isArray(e)?(n.forEach(_=>ln(e,_,u)),e):Array.isArray(n)&&Array.isArray(e)?(n.forEach(_=>{e.includes(_)||e.push(_)}),e):e===void 0||s<=0?e!=null&&typeof e=="object"&&typeof n=="object"?Object.assign(e,n):n:(n!==void 0&&typeof e=="object"&&typeof n=="object"&&Object.keys(n).forEach(_=>{typeof n[_]=="object"&&(e[_]===void 0||typeof e[_]=="object")?(e[_]===void 0&&(e[_]=Array.isArray(n[_])?[]:{}),e[_]=ln(e[_],n[_],{depth:s-1,clobber:l})):(l||typeof e[_]!="object"&&typeof n[_]!="object")&&(e[_]=n[_])}),e)},Ce=ln,Mn="\u200B",Po={curveBasis:A.qrM,curveBasisClosed:A.Yu4,curveBasisOpen:A.IA3,curveBumpX:A.Wi0,curveBumpY:A.PGM,curveBundle:A.OEq,curveCardinalClosed:A.olC,curveCardinalOpen:A.IrU,curveCardinal:A.y8u,curveCatmullRomClosed:A.Q7f,curveCatmullRomOpen:A.cVp,curveCatmullRom:A.oDi,curveLinear:A.lUB,curveLinearClosed:A.Lx9,curveMonotoneX:A.nVG,curveMonotoneY:A.uxU,curveNatural:A.Xf2,curveStep:A.GZz,curveStepAfter:A.UPb,curveStepBefore:A.dyv},bt=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,v=function(e,n){const s=X(e,/(?:init\b)|(?:initialize\b)/);let l={};if(Array.isArray(s)){const y=s.map(w=>w.args);Oi(y),l=Ce(l,[...y])}else l=s.args;if(!l)return;let u=gr(e,n);const _="config";return l[_]!==void 0&&(u==="flowchart-v2"&&(u="flowchart"),l[u]=l[_],delete l[_]),l},X=function(e,n=null){try{const s=new RegExp(`[%]{2}(?![{]${bt.source})(?=[}][%]{2}).* `,"ig");e=e.trim().replace(s,"").replace(/'/gm,'"'),At.debug(`Detecting diagram directive${n!==null?" type:"+n:""} based on the text:${e}`);let l;const u=[];for(;(l=ye.exec(e))!==null;)if(l.index===ye.lastIndex&&ye.lastIndex++,l&&!n||n&&l[1]&&l[1].match(n)||n&&l[2]&&l[2].match(n)){const _=l[1]?l[1]:l[2],y=l[3]?l[3].trim():l[4]?JSON.parse(l[4].trim()):null;u.push({type:_,args:y})}return u.length===0?{type:e,args:null}:u.length===1?u[0]:u}catch(s){return At.error(`ERROR: ${s.message} - Unable to parse directive type: '${n}' based on the text: '${e}'`),{type:void 0,args:null}}},pt=function(e){return e.replace(ye,"")},te=function(e,n){for(const[s,l]of n.entries())if(l.match(e))return s;return-1};function ve(e,n){if(!e)return n;const s=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return Po[s]??n}function Te(e,n){const s=e.trim();if(s)return n.securityLevel!=="loose"?(0,P.Jf)(s):s}const Be=(e,...n)=>{const s=e.split("."),l=s.length-1,u=s[l];let _=window;for(let y=0;y{s+=xi(u,n),n=u});const l=s/2;return _r(e,l)}function Ee(e){return e.length===1?e[0]:Gi(e)}const pr=(e,n=2)=>{const s=Math.pow(10,n);return Math.round(e*s)/s},_r=(e,n)=>{let s,l=n;for(const u of e){if(s){const _=xi(u,s);if(_=1)return{x:u.x,y:u.y};if(y>0&&y<1)return{x:pr((1-y)*s.x+y*u.x,5),y:pr((1-y)*s.y+y*u.y,5)}}}s=u}throw new Error("Could not find a suitable point for the given distance")},Ii=(e,n,s)=>{At.info(`our points ${JSON.stringify(n)}`),n[0]!==s&&(n=n.reverse());const u=_r(n,25),_=e?10:5,y=Math.atan2(n[0].y-u.y,n[0].x-u.x),w={x:0,y:0};return w.x=Math.sin(y)*_+(n[0].x+u.x)/2,w.y=-Math.cos(y)*_+(n[0].y+u.y)/2,w};function vi(e,n,s){const l=structuredClone(s);At.info("our points",l),n!=="start_left"&&n!=="start_right"&&l.reverse();const u=25+e,_=_r(l,u),y=10+e*.5,w=Math.atan2(l[0].y-_.y,l[0].x-_.x),F={x:0,y:0};return n==="start_left"?(F.x=Math.sin(w+Math.PI)*y+(l[0].x+_.x)/2,F.y=-Math.cos(w+Math.PI)*y+(l[0].y+_.y)/2):n==="end_right"?(F.x=Math.sin(w-Math.PI)*y+(l[0].x+_.x)/2-5,F.y=-Math.cos(w-Math.PI)*y+(l[0].y+_.y)/2-5):n==="end_left"?(F.x=Math.sin(w)*y+(l[0].x+_.x)/2-5,F.y=-Math.cos(w)*y+(l[0].y+_.y)/2-5):(F.x=Math.sin(w)*y+(l[0].x+_.x)/2,F.y=-Math.cos(w)*y+(l[0].y+_.y)/2),F}function js(e){let n="",s="";for(const l of e)l!==void 0&&(l.startsWith("color:")||l.startsWith("text-align:")?s=s+l+";":n=n+l+";");return{style:n,labelStyle:s}}let Ns=0;const Rs=()=>(Ns++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Ns);function Ti(e){let n="";const s="0123456789abcdef",l=s.length;for(let u=0;uTi(e.length),No=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:""}},$s=function(e,n){const s=n.text.replace(hr.lineBreakRegex," "),[,l]=yr(n.fontSize),u=e.append("text");u.attr("x",n.x),u.attr("y",n.y),u.style("text-anchor",n.anchor),u.style("font-family",n.fontFamily),u.style("font-size",l),u.style("font-weight",n.fontWeight),u.attr("fill",n.fill),n.class!==void 0&&u.attr("class",n.class);const _=u.append("tspan");return _.attr("x",n.x+n.textMargin*2),_.attr("fill",n.fill),_.text(s),u},Fn=(0,dt.A)((e,n,s)=>{if(!e||(s=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},s),hr.lineBreakRegex.test(e)))return e;const l=e.split(" "),u=[];let _="";return l.forEach((y,w)=>{const F=cn(`${y} `,s),V=cn(_,s);if(F>n){const{hyphenatedStrings:S,remainingWord:H}=xl(y,n,"-",s);u.push(_,...S),_=H}else V+F>=n?(u.push(_),_=y):_=[_,y].filter(Boolean).join(" ");w+1===l.length&&u.push(_)}),u.filter(y=>y!=="").join(s.joinWith)},(e,n,s)=>`${e}${n}${s.fontSize}${s.fontWeight}${s.fontFamily}${s.joinWith}`),xl=(0,dt.A)((e,n,s="-",l)=>{l=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},l);const u=[...e],_=[];let y="";return u.forEach((w,F)=>{const V=`${y}${w}`;if(cn(V,l)>=n){const Y=F+1,S=u.length===Y,H=`${V}${s}`;_.push(S?V:H),y=""}else y=V}),{hyphenatedStrings:_,remainingWord:y}},(e,n,s="-",l)=>`${e}${n}${s}${l.fontSize}${l.fontWeight}${l.fontFamily}`);function zs(e,n){return Ro(e,n).height}function cn(e,n){return Ro(e,n).width}const Ro=(0,dt.A)((e,n)=>{const{fontSize:s=12,fontFamily:l="Arial",fontWeight:u=400}=n;if(!e)return{width:0,height:0};const[,_]=yr(s),y=["sans-serif",l],w=e.split(hr.lineBreakRegex),F=[],V=(0,A.Ltv)("body");if(!V.remove)return{width:0,height:0,lineHeight:0};const Q=V.append("svg");for(const S of y){let H=0;const Ot={width:0,height:0,lineHeight:0};for(const Dt of w){const Lt=No();Lt.text=Dt||Mn;const Vt=$s(Q,Lt).style("font-size",_).style("font-weight",u).style("font-family",S),kt=(Vt._groups||Vt)[0][0].getBBox();if(kt.width===0&&kt.height===0)throw new Error("svg element not in render tree");Ot.width=Math.round(Math.max(Ot.width,kt.width)),H=Math.round(kt.height),Ot.height+=H,Ot.lineHeight=Math.round(Math.max(Ot.lineHeight,H))}F.push(Ot)}Q.remove();const Y=isNaN(F[1].height)||isNaN(F[1].width)||isNaN(F[1].lineHeight)||F[0].height>F[1].height&&F[0].width>F[1].width&&F[0].lineHeight>F[1].lineHeight?0:1;return F[Y]},(e,n)=>`${e}${n.fontSize}${n.fontWeight}${n.fontFamily}`);class vl{constructor(n=!1,s){this.count=0,this.count=s?s.length:0,this.next=n?()=>this.count++:()=>Date.now()}}let so;const Tl=function(e){return so=so||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),so.innerHTML=e,unescape(so.textContent)};function Us(e){return"str"in e}const $o=(e,n,s,l)=>{var u;if(!l)return;const _=(u=e.node())==null?void 0:u.getBBox();_&&e.append("text").text(l).attr("x",_.x+_.width/2).attr("y",-s).attr("class",n)},yr=e=>{if(typeof e=="number")return[e,e+"px"];const n=parseInt(e??"",10);return Number.isNaN(n)?[void 0,void 0]:e===String(n)?[n,e+"px"]:[n,e]};function hn(e,n){return(0,gt.A)({},e,n)}const li={assignWithDepth:Ce,wrapLabel:Fn,calculateTextHeight:zs,calculateTextWidth:cn,calculateTextDimensions:Ro,cleanAndMerge:hn,detectInit:v,detectDirective:X,isSubstringInArray:te,interpolateToCurve:ve,calcLabelPosition:Ee,calcCardinalityPosition:Ii,calcTerminalLabelPosition:vi,formatUrl:Te,getStylesFromArray:js,generateId:Rs,random:jo,runFunc:Be,entityDecode:Tl,insertTitle:$o,parseFontSize:yr,InitIDGenerator:vl},On=function(e){let n=e;return n=n.replace(/style.*:\S*#.*;/g,function(s){return s.substring(0,s.length-1)}),n=n.replace(/classDef.*:\S*#.*;/g,function(s){return s.substring(0,s.length-1)}),n=n.replace(/#\w+;/g,function(s){const l=s.substring(1,s.length-1);return/^\+?\d+$/.test(l)?"\uFB02\xB0\xB0"+l+"\xB6\xDF":"\uFB02\xB0"+l+"\xB6\xDF"}),n},Dn=function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},Dr="10.9.0",Pi=Object.freeze(Bn);let he=Ce({},Pi),Ws,un=[],In=Ce({},Pi);const ao=(e,n)=>{let s=Ce({},e),l={};for(const u of n)Hs(u),l=Ce(l,u);if(s=Ce(s,l),l.theme&&l.theme in si){const u=Ce({},Ws),_=Ce(u.themeVariables||{},l.themeVariables);s.theme&&s.theme in si&&(s.themeVariables=si[s.theme].getThemeVariables(_))}return In=s,jn(In),In},Al=e=>(he=Ce({},Pi),he=Ce(he,e),e.theme&&si[e.theme]&&(he.themeVariables=si[e.theme].getThemeVariables(e.themeVariables)),ao(he,un),he),kl=e=>{Ws=Ce({},e)},Sl=e=>(he=Ce(he,e),ao(he,un),he),zo=()=>Ce({},he),Uo=e=>(jn(e),Ce(In,e),Ai()),Ai=()=>Ce({},In),Hs=e=>{e&&(["secure",...he.secure??[]].forEach(n=>{Object.hasOwn(e,n)&&(At.debug(`Denied attempt to modify a secure key ${n}`,e[n]),delete e[n])}),Object.keys(e).forEach(n=>{n.startsWith("__")&&delete e[n]}),Object.keys(e).forEach(n=>{typeof e[n]=="string"&&(e[n].includes("<")||e[n].includes(">")||e[n].includes("url(data:"))&&delete e[n],typeof e[n]=="object"&&Hs(e[n])}))},Ys=e=>{Oi(e),e.fontFamily&&(!e.themeVariables||!e.themeVariables.fontFamily)&&(e.themeVariables={fontFamily:e.fontFamily}),un.push(e),ao(he,un)},ji=(e=he)=>{un=[],ao(e,un)},qs={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Pn={},Gs=e=>{Pn[e]||(At.warn(qs[e]),Pn[e]=!0)},jn=e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&Gs("LAZY_LOAD_DEPRECATED")},Re="c4",lo={id:Re,detector:e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),loader:async()=>{const{diagram:e}=await f.e("vendors-node_modules_mermaid_dist_c4Diagram-b2a90758_js").then(f.bind(f,"./node_modules/mermaid/dist/c4Diagram-b2a90758.js"));return{id:Re,diagram:e}}},Cr="flowchart",Ml={id:Cr,detector:(e,n)=>{var s,l;return((s=n?.flowchart)==null?void 0:s.defaultRenderer)==="dagre-wrapper"||((l=n?.flowchart)==null?void 0:l.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},loader:async()=>{const{diagram:e}=await Promise.all([f.e("-------"),f.e("-"),f.e("vendors-node_modules_mermaid_dist_flowDiagram-5540d9b9_js")]).then(f.bind(f,"./node_modules/mermaid/dist/flowDiagram-5540d9b9.js"));return{id:Cr,diagram:e}}},ci="flowchart-v2",Ks={id:ci,detector:(e,n)=>{var s,l,u;return((s=n?.flowchart)==null?void 0:s.defaultRenderer)==="dagre-d3"||((l=n?.flowchart)==null?void 0:l.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)&&((u=n?.flowchart)==null?void 0:u.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)},loader:async()=>{const{diagram:e}=await Promise.all([f.e("-------"),f.e("-"),f.e("node_modules_mermaid_dist_flowDiagram-v2-3b53844e_js")]).then(f.bind(f,"./node_modules/mermaid/dist/flowDiagram-v2-3b53844e.js"));return{id:ci,diagram:e}}},Xs="er",Dl={id:Xs,detector:e=>/^\s*erDiagram/.test(e),loader:async()=>{const{diagram:e}=await Promise.all([f.e("-------"),f.e("vendors-node_modules_mermaid_dist_erDiagram-47591fe2_js")]).then(f.bind(f,"./node_modules/mermaid/dist/erDiagram-47591fe2.js"));return{id:Xs,diagram:e}}},Zs="gitGraph",Js={id:Zs,detector:e=>/^\s*gitGraph/.test(e),loader:async()=>{const{diagram:e}=await f.e("vendors-node_modules_mermaid_dist_gitGraphDiagram-96e6b4ee_js").then(f.bind(f,"./node_modules/mermaid/dist/gitGraphDiagram-96e6b4ee.js"));return{id:Zs,diagram:e}}},Il="gantt",Pl={id:Il,detector:e=>/^\s*gantt/.test(e),loader:async()=>{const{diagram:e}=await f.e("vendors-node_modules_mermaid_dist_ganttDiagram-9a3bba1f_js").then(f.bind(f,"./node_modules/mermaid/dist/ganttDiagram-9a3bba1f.js"));return{id:Il,diagram:e}}},ea="info",Rl={id:ea,detector:e=>/^\s*info/.test(e),loader:async()=>{const{diagram:e}=await f.e("node_modules_mermaid_dist_infoDiagram-bcd20f53_js").then(f.bind(f,"./node_modules/mermaid/dist/infoDiagram-bcd20f53.js"));return{id:ea,diagram:e}}},ia="pie",$l={id:ia,detector:e=>/^\s*pie/.test(e),loader:async()=>{const{diagram:e}=await f.e("vendors-node_modules_mermaid_dist_pieDiagram-79897490_js").then(f.bind(f,"./node_modules/mermaid/dist/pieDiagram-79897490.js"));return{id:ia,diagram:e}}},ra="quadrantChart",zl={id:ra,detector:e=>/^\s*quadrantChart/.test(e),loader:async()=>{const{diagram:e}=await f.e("vendors-node_modules_mermaid_dist_quadrantDiagram-62f64e94_js").then(f.bind(f,"./node_modules/mermaid/dist/quadrantDiagram-62f64e94.js"));return{id:ra,diagram:e}}},na="xychart",Ul={id:na,detector:e=>/^\s*xychart-beta/.test(e),loader:async()=>{const{diagram:e}=await Promise.all([f.e("-------"),f.e("vendors-node_modules_mermaid_dist_xychartDiagram-ab372869_js")]).then(f.bind(f,"./node_modules/mermaid/dist/xychartDiagram-ab372869.js"));return{id:na,diagram:e}}},oa="requirement",Wl={id:oa,detector:e=>/^\s*requirement(Diagram)?/.test(e),loader:async()=>{const{diagram:e}=await Promise.all([f.e("-------"),f.e("vendors-node_modules_mermaid_dist_requirementDiagram-05bf5f74_js")]).then(f.bind(f,"./node_modules/mermaid/dist/requirementDiagram-05bf5f74.js"));return{id:oa,diagram:e}}},sa="sequence",Hl={id:sa,detector:e=>/^\s*sequenceDiagram/.test(e),loader:async()=>{const{diagram:e}=await f.e("vendors-node_modules_mermaid_dist_sequenceDiagram-acc0e65c_js").then(f.bind(f,"./node_modules/mermaid/dist/sequenceDiagram-acc0e65c.js"));return{id:sa,diagram:e}}},aa="class",Yl={id:aa,detector:(e,n)=>{var s;return((s=n?.class)==null?void 0:s.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},loader:async()=>{const{diagram:e}=await Promise.all([f.e("-------"),f.e("-"),f.e("node_modules_mermaid_dist_classDiagram-30eddba6_js")]).then(f.bind(f,"./node_modules/mermaid/dist/classDiagram-30eddba6.js"));return{id:aa,diagram:e}}},la="classDiagram",ca={id:la,detector:(e,n)=>{var s;return/^\s*classDiagram/.test(e)&&((s=n?.class)==null?void 0:s.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},loader:async()=>{const{diagram:e}=await Promise.all([f.e("-------"),f.e("-"),f.e("node_modules_mermaid_dist_classDiagram-v2-f2df5561_js")]).then(f.bind(f,"./node_modules/mermaid/dist/classDiagram-v2-f2df5561.js"));return{id:la,diagram:e}}},ha="state",ql={id:ha,detector:(e,n)=>{var s;return((s=n?.state)==null?void 0:s.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},loader:async()=>{const{diagram:e}=await Promise.all([f.e("-------"),f.e("-"),f.e("node_modules_mermaid_dist_stateDiagram-0ff1cf1a_js")]).then(f.bind(f,"./node_modules/mermaid/dist/stateDiagram-0ff1cf1a.js"));return{id:ha,diagram:e}}},ua="stateDiagram",Gl={id:ua,detector:(e,n)=>{var s;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((s=n?.state)==null?void 0:s.defaultRenderer)==="dagre-wrapper")},loader:async()=>{const{diagram:e}=await Promise.all([f.e("-------"),f.e("-"),f.e("node_modules_mermaid_dist_stateDiagram-v2-9a9d610d_js")]).then(f.bind(f,"./node_modules/mermaid/dist/stateDiagram-v2-9a9d610d.js"));return{id:ua,diagram:e}}},da="journey",Vl={id:da,detector:e=>/^\s*journey/.test(e),loader:async()=>{const{diagram:e}=await f.e("vendors-node_modules_mermaid_dist_journeyDiagram-4fe6b3dc_js").then(f.bind(f,"./node_modules/mermaid/dist/journeyDiagram-4fe6b3dc.js"));return{id:da,diagram:e}}},Kl=function(e,n){for(let s of n)e.attr(s[0],s[1])},Vi=function(e,n,s){let l=new Map;return s?(l.set("width","100%"),l.set("style",`max-width: ${n}px;`)):(l.set("height",e),l.set("width",n)),l},qo=function(e,n,s,l){const u=Vi(n,s,l);Kl(e,u)},Go=function(e,n,s,l){const u=n.node().getBBox(),_=u.width,y=u.height;At.info(`SVG bounds: ${_}x${y}`,u);let w=0,F=0;At.info(`Graph bounds: ${w}x${F}`,e),w=_+s*2,F=y+s*2,At.info(`Calculated bounds: ${w}x${F}`),qo(n,F,w,l);const V=`${u.x-s} ${u.y-s} ${u.width+2*s} ${u.height+2*s}`;n.attr("viewBox",V)},hi={},eu=(e,n,s)=>{let l="";return e in hi&&hi[e]?l=hi[e](s):At.warn(`No theme found for ${e}`),` & { font-family: ${s.fontFamily}; font-size: ${s.fontSize}; fill: ${s.textColor} } /* Classes common for multiple diagrams */ & .error-icon { fill: ${s.errorBkgColor}; } & .error-text { fill: ${s.errorTextColor}; stroke: ${s.errorTextColor}; } & .edge-thickness-normal { stroke-width: 2px; } & .edge-thickness-thick { stroke-width: 3.5px } & .edge-pattern-solid { stroke-dasharray: 0; } & .edge-pattern-dashed{ stroke-dasharray: 3; } .edge-pattern-dotted { stroke-dasharray: 2; } & .marker { fill: ${s.lineColor}; stroke: ${s.lineColor}; } & .marker.cross { stroke: ${s.lineColor}; } & svg { font-family: ${s.fontFamily}; font-size: ${s.fontSize}; } ${l} ${n} `},iu=(e,n)=>{n!==void 0&&(hi[e]=n)},Xl=eu;let Vo="",Ko="",Xo="";const co=e=>zi(e,Ai()),ho=()=>{Vo="",Xo="",Ko=""},Ir=e=>{Vo=co(e).replace(/^\s+/g,"")},Pr=()=>Vo,Zo=e=>{Xo=co(e).replace(/\n\s+/g,` `)},$e=()=>Xo,ze=e=>{Ko=co(e)},Jo=()=>Ko,uo=Object.freeze(Object.defineProperty({__proto__:null,clear:ho,getAccDescription:$e,getAccTitle:Pr,getDiagramTitle:Jo,setAccDescription:Zo,setAccTitle:Ir,setDiagramTitle:ze},Symbol.toStringTag,{value:"Module"})),fo=At,mo=ue,go=Ai,Ki=Uo,fa=Pi,ma=e=>zi(e,go()),ga=Go,Zl=()=>uo,br={},po=(e,n,s)=>{var l;if(br[e])throw new Error(`Diagram ${e} already registered.`);br[e]=n,s&&Ye(e,s),iu(e,n.styles),(l=n.injectUtils)==null||l.call(n,fo,mo,go,ma,ga,Zl(),()=>{})},Qo=e=>{if(e in br)return br[e];throw new Jl(e)};class Jl extends Error{constructor(n){super(`Diagram ${n} not found.`)}}const _o=e=>{var n;const{securityLevel:s}=go();let l=(0,A.Ltv)("body");if(s==="sandbox"){const y=((n=(0,A.Ltv)(`#i${e}`).node())==null?void 0:n.contentDocument)??document;l=(0,A.Ltv)(y.body)}return l.select(`#${e}`)},Ql={draw:(e,n,s)=>{At.debug(`rendering svg for syntax error `);const l=_o(n),u=l.append("g");l.attr("viewBox","0 0 2412 512"),qo(l,100,512,!0),u.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"),u.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"),u.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"),u.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"),u.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"),u.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"),u.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"),u.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${s}`)}},nu=Ql,ou={db:{},renderer:Ql,parser:{parser:{yy:{}},parse:()=>{}}},yo="flowchart-elk",lu={id:yo,detector:(e,n)=>{var s;return!!(/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&((s=n?.flowchart)==null?void 0:s.defaultRenderer)==="elk")},loader:async()=>{const{diagram:e}=await Promise.all([f.e("-------"),f.e("vendors-node_modules_mermaid_dist_flowchart-elk-definition-5fe447d6_js")]).then(f.bind(f,"./node_modules/mermaid/dist/flowchart-elk-definition-5fe447d6.js"));return{id:yo,diagram:e}}},tc="timeline",Co={id:tc,detector:e=>/^\s*timeline/.test(e),loader:async()=>{const{diagram:e}=await f.e("vendors-node_modules_mermaid_dist_timeline-definition-fea2a41d_js").then(f.bind(f,"./node_modules/mermaid/dist/timeline-definition-fea2a41d.js"));return{id:tc,diagram:e}}},ts="mindmap",fn={id:ts,detector:e=>/^\s*mindmap/.test(e),loader:async()=>{const{diagram:e}=await Promise.all([f.e("-------"),f.e("vendors-node_modules_mermaid_dist_mindmap-definition-f354de21_js")]).then(f.bind(f,"./node_modules/mermaid/dist/mindmap-definition-f354de21.js"));return{id:ts,diagram:e}}},es="sankey",oc={id:es,detector:e=>/^\s*sankey-beta/.test(e),loader:async()=>{const{diagram:e}=await f.e("vendors-node_modules_mermaid_dist_sankeyDiagram-97764748_js").then(f.bind(f,"./node_modules/mermaid/dist/sankeyDiagram-97764748.js"));return{id:es,diagram:e}}},ui="block",is={id:ui,detector:e=>/^\s*block-beta/.test(e),loader:async()=>{const{diagram:e}=await Promise.all([f.e("-------"),f.e("vendors-node_modules_mermaid_dist_blockDiagram-91b80b7a_js")]).then(f.bind(f,"./node_modules/mermaid/dist/blockDiagram-91b80b7a.js"));return{id:ui,diagram:e}}};let rs=!1;const ba=()=>{rs||(rs=!0,po("error",ou,e=>e.toLowerCase().trim()==="error"),po("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},e=>e.toLowerCase().trimStart().startsWith("---")),En(lo,ca,Yl,Dl,Pl,Rl,$l,Wl,Hl,lu,Ks,Ml,fn,Co,Js,Gl,ql,Vl,zl,oc,Ul,is))};class bo{constructor(n,s={}){this.text=n,this.metadata=s,this.type="graph",this.text=On(n),this.text+=` `;const l=Ai();try{this.type=gr(n,l)}catch(_){this.type="error",this.detectError=_}const u=Qo(this.type);At.debug("Type "+this.type),this.db=u.db,this.renderer=u.renderer,this.parser=u.parser,this.parser.parser.yy=this.db,this.init=u.init,this.parse()}parse(){var n,s,l,u,_;if(this.detectError)throw this.detectError;(s=(n=this.db).clear)==null||s.call(n);const y=Ai();(l=this.init)==null||l.call(this,y),this.metadata.title&&((_=(u=this.db).setDiagramTitle)==null||_.call(u,this.metadata.title)),this.parser.parse(this.text)}async render(n,s){await this.renderer.draw(this.text,n,s,this)}getParser(){return this.parser}getType(){return this.type}}const Ni=async(e,n={})=>{const s=gr(e,Ai());try{Qo(s)}catch{const u=Ln(s);if(!u)throw new qi(`Diagram ${s} not found.`);const{id:_,diagram:y}=await u();po(_,y)}return new bo(e,n)};let ns=[];const xa=()=>{ns.forEach(e=>{e()}),ns=[]},sc="graphics-document document";function fu(e,n){e.attr("role",sc),n!==""&&e.attr("aria-roledescription",n)}function ac(e,n,s,l){if(e.insert!==void 0){if(s){const u=`chart-desc-${l}`;e.attr("aria-describedby",u),e.insert("desc",":first-child").attr("id",u).text(s)}if(n){const u=`chart-title-${l}`;e.attr("aria-labelledby",u),e.insert("title",":first-child").attr("id",u).text(n)}}}const xo=e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();function lc(e){return typeof e>"u"||e===null}function va(e){return typeof e=="object"&&e!==null}function mu(e){return Array.isArray(e)?e:lc(e)?[]:[e]}function os(e,n){var s,l,u,_;if(n)for(_=Object.keys(n),s=0,l=_.length;sw&&(_=" ... ",n=l-w+_.length),s-l>w&&(y=" ...",s=l+w-y.length),{str:_+e.slice(n,s).replace(/\t/g,"\u2192")+y,pos:l-n+_.length}}function $n(e,n){return qe.repeat(" ",n-e.length)+e}function cs(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var s=/\r?\n|\r|\0/g,l=[0],u=[],_,y=-1;_=s.exec(e.buffer);)u.push(_.index),l.push(_.index+_[0].length),e.position<=_.index&&y<0&&(y=l.length-2);y<0&&(y=l.length-1);var w="",F,V,Q=Math.min(e.line+n.linesAfter,u.length).toString().length,Y=n.maxLength-(n.indent+Q+3);for(F=1;F<=n.linesBefore&&!(y-F<0);F++)V=ls(e.buffer,l[y-F],u[y-F],e.position-(l[y]-l[y-F]),Y),w=qe.repeat(" ",n.indent)+$n((e.line-F+1).toString(),Q)+" | "+V.str+` `+w;for(V=ls(e.buffer,l[y],u[y],e.position,Y),w+=qe.repeat(" ",n.indent)+$n((e.line+1).toString(),Q)+" | "+V.str+` `,w+=qe.repeat("-",n.indent+Q+3+V.pos)+`^ `,F=1;F<=n.linesAfter&&!(y+F>=u.length);F++)V=ls(e.buffer,l[y+F],u[y+F],e.position-(l[y]-l[y+F]),Y),w+=qe.repeat(" ",n.indent)+$n((e.line+F+1).toString(),Q)+" | "+V.str+` `;return w.replace(/\n$/,"")}var vo=cs,cc=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],hs=["scalar","sequence","mapping"];function hc(e){var n={};return e!==null&&Object.keys(e).forEach(function(s){e[s].forEach(function(l){n[String(l)]=s})}),n}function uc(e,n){if(n=n||{},Object.keys(n).forEach(function(s){if(cc.indexOf(s)===-1)throw new di('Unknown option "'+s+'" is met in definition of "'+e+'" YAML type.')}),this.options=n,this.tag=e,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(s){return s},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=hc(n.styleAliases||null),hs.indexOf(this.kind)===-1)throw new di('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Ge=uc;function us(e,n){var s=[];return e[n].forEach(function(l){var u=s.length;s.forEach(function(_,y){_.tag===l.tag&&_.kind===l.kind&&_.multi===l.multi&&(u=y)}),s[u]=l}),s}function dc(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,s;function l(u){u.multi?(e.multi[u.kind].push(u),e.multi.fallback.push(u)):e[u.kind][u.tag]=e.fallback[u.tag]=u}for(n=0,s=arguments.length;n=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Oa=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function kc(e){return!(e===null||!Oa.test(e)||e[e.length-1]==="_")}function To(e){var n,s;return n=e.replace(/_/g,"").toLowerCase(),s=n[0]==="-"?-1:1,"+-".indexOf(n[0])>=0&&(n=n.slice(1)),n===".inf"?s===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:n===".nan"?NaN:s*parseFloat(n,10)}var ms=/^[-+]?[0-9]+e/;function Sc(e,n){var s;if(isNaN(e))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(qe.isNegativeZero(e))return"-0.0";return s=e.toString(10),ms.test(s)?s.replace("e",".e"):s}function Ao(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||qe.isNegativeZero(e))}var gn=new Ge("tag:yaml.org,2002:float",{kind:"scalar",resolve:kc,construct:To,predicate:Ao,represent:Sc,defaultStyle:"lowercase"}),Da=mc.extend({implicit:[ds,Ma,Ac,gn]}),wc=Da,Ia=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Pa=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]))?))?$");function ja(e){return e===null?!1:Ia.exec(e)!==null||Pa.exec(e)!==null}function Bc(e){var n,s,l,u,_,y,w,F=0,V=null,Q,Y,S;if(n=Ia.exec(e),n===null&&(n=Pa.exec(e)),n===null)throw new Error("Date resolve error");if(s=+n[1],l=+n[2]-1,u=+n[3],!n[4])return new Date(Date.UTC(s,l,u));if(_=+n[4],y=+n[5],w=+n[6],n[7]){for(F=n[7].slice(0,3);F.length<3;)F+="0";F=+F}return n[9]&&(Q=+n[10],Y=+(n[11]||0),V=(Q*60+Y)*6e4,n[9]==="-"&&(V=-V)),S=new Date(Date.UTC(s,l,u,_,y,w,F)),V&&S.setTime(S.getTime()-V),S}function Na(e){return e.toISOString()}var Ra=new Ge("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:ja,construct:Bc,instanceOf:Date,represent:Na});function $a(e){return e==="<<"||e===null}var za=new Ge("tag:yaml.org,2002:merge",{kind:"scalar",resolve:$a}),ko=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`;function Ec(e){if(e===null)return!1;var n,s,l=0,u=e.length,_=ko;for(s=0;s64)){if(n<0)return!1;l+=6}return l%8===0}function So(e){var n,s,l=e.replace(/[\r\n=]/g,""),u=l.length,_=ko,y=0,w=[];for(n=0;n>16&255),w.push(y>>8&255),w.push(y&255)),y=y<<6|_.indexOf(l.charAt(n));return s=u%4*6,s===0?(w.push(y>>16&255),w.push(y>>8&255),w.push(y&255)):s===18?(w.push(y>>10&255),w.push(y>>2&255)):s===12&&w.push(y>>4&255),new Uint8Array(w)}function Ua(e){var n="",s=0,l,u,_=e.length,y=ko;for(l=0;l<_;l++)l%3===0&&l&&(n+=y[s>>18&63],n+=y[s>>12&63],n+=y[s>>6&63],n+=y[s&63]),s=(s<<8)+e[l];return u=_%3,u===0?(n+=y[s>>18&63],n+=y[s>>12&63],n+=y[s>>6&63],n+=y[s&63]):u===2?(n+=y[s>>10&63],n+=y[s>>4&63],n+=y[s<<2&63],n+=y[64]):u===1&&(n+=y[s>>2&63],n+=y[s<<4&63],n+=y[64],n+=y[64]),n}function Wa(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Lc=new Ge("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Ec,construct:So,predicate:Wa,represent:Ua}),Mc=Object.prototype.hasOwnProperty,Fc=Object.prototype.toString;function Oc(e){if(e===null)return!0;var n=[],s,l,u,_,y,w=e;for(s=0,l=w.length;s>10)+55296,(e-65536&1023)+56320)}for(var vs=new Array(256),Tr=new Array(256),$r=0;$r<256;$r++)vs[$r]=_n($r)?1:0,Tr[$r]=_n($r);function Ga(e,n){this.input=e,this.filename=n.filename||null,this.schema=n.schema||ys,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.json=n.json||!1,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function jc(e,n){var s={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return s.snippet=vo(s),new di(n,s)}function wt(e,n){throw jc(e,n)}function Ts(e,n){e.onWarning&&e.onWarning.call(null,jc(e,n))}var Nc={YAML:function(n,s,l){var u,_,y;n.version!==null&&wt(n,"duplication of %YAML directive"),l.length!==1&&wt(n,"YAML directive accepts exactly one argument"),u=/^([0-9]+)\.([0-9]+)$/.exec(l[0]),u===null&&wt(n,"ill-formed argument of the YAML directive"),_=parseInt(u[1],10),y=parseInt(u[2],10),_!==1&&wt(n,"unacceptable YAML version of the document"),n.version=l[0],n.checkLineBreaks=y<2,y!==1&&y!==2&&Ts(n,"unsupported YAML version of the document")},TAG:function(n,s,l){var u,_;l.length!==2&&wt(n,"TAG directive accepts exactly two arguments"),u=l[0],_=l[1],xs.test(u)||wt(n,"ill-formed tag handle (first argument) of the TAG directive"),ae.call(n.tagMap,u)&&wt(n,'there is a previously declared suffix for "'+u+'" tag handle'),Pc.test(_)||wt(n,"ill-formed tag prefix (second argument) of the TAG directive");try{_=decodeURIComponent(_)}catch{wt(n,"tag prefix is malformed: "+_)}n.tagMap[u]=_}};function zr(e,n,s,l){var u,_,y,w;if(n1&&(e.result+=qe.repeat(` `,n-1))}function $c(e,n,s){var l,u,_,y,w,F,V,Q,Y=e.kind,S=e.result,H;if(H=e.input.charCodeAt(e.position),ii(H)||Nr(H)||H===35||H===38||H===42||H===33||H===124||H===62||H===39||H===34||H===37||H===64||H===96||(H===63||H===45)&&(u=e.input.charCodeAt(e.position+1),ii(u)||s&&Nr(u)))return!1;for(e.kind="scalar",e.result="",_=y=e.position,w=!1;H!==0;){if(H===58){if(u=e.input.charCodeAt(e.position+1),ii(u)||s&&Nr(u))break}else if(H===35){if(l=e.input.charCodeAt(e.position-1),ii(l))break}else{if(e.position===e.lineStart&&Ur(e)||s&&Nr(H))break;if(Qi(H))if(F=e.line,V=e.lineStart,Q=e.lineIndent,fe(e,!1,-1),e.lineIndent>=n){w=!0,H=e.input.charCodeAt(e.position);continue}else{e.position=y,e.line=F,e.lineStart=V,e.lineIndent=Q;break}}w&&(zr(e,_,y,!1),As(e,e.line-F),_=y=e.position,w=!1),tr(H)||(y=e.position+1),H=e.input.charCodeAt(++e.position)}return zr(e,_,y,!1),e.result?!0:(e.kind=Y,e.result=S,!1)}function yn(e,n){var s,l,u;if(s=e.input.charCodeAt(e.position),s!==39)return!1;for(e.kind="scalar",e.result="",e.position++,l=u=e.position;(s=e.input.charCodeAt(e.position))!==0;)if(s===39)if(zr(e,l,e.position,!0),s=e.input.charCodeAt(++e.position),s===39)l=e.position,e.position++,u=e.position;else return!0;else Qi(s)?(zr(e,l,u,!0),As(e,fe(e,!1,n)),l=u=e.position):e.position===e.lineStart&&Ur(e)?wt(e,"unexpected end of the document within a single quoted scalar"):(e.position++,u=e.position);wt(e,"unexpected end of the stream within a single quoted scalar")}function zc(e,n){var s,l,u,_,y,w;if(w=e.input.charCodeAt(e.position),w!==34)return!1;for(e.kind="scalar",e.result="",e.position++,s=l=e.position;(w=e.input.charCodeAt(e.position))!==0;){if(w===34)return zr(e,s,e.position,!0),e.position++,!0;if(w===92){if(zr(e,s,e.position,!0),w=e.input.charCodeAt(++e.position),Qi(w))fe(e,!1,n);else if(w<256&&vs[w])e.result+=Tr[w],e.position++;else if((y=Rr(w))>0){for(u=y,_=0;u>0;u--)w=e.input.charCodeAt(++e.position),(y=xu(w))>=0?_=(_<<4)+y:wt(e,"expected hexadecimal character");e.result+=qa(_),e.position++}else wt(e,"unknown escape sequence");s=l=e.position}else Qi(w)?(zr(e,s,l,!0),As(e,fe(e,!1,n)),s=l=e.position):e.position===e.lineStart&&Ur(e)?wt(e,"unexpected end of the document within a double quoted scalar"):(e.position++,l=e.position)}wt(e,"unexpected end of the stream within a double quoted scalar")}function Uc(e,n){var s=!0,l,u,_,y=e.tag,w,F=e.anchor,V,Q,Y,S,H,Ot=Object.create(null),Dt,Lt,Vt,kt;if(kt=e.input.charCodeAt(e.position),kt===91)Q=93,H=!1,w=[];else if(kt===123)Q=125,H=!0,w={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=w),kt=e.input.charCodeAt(++e.position);kt!==0;){if(fe(e,!0,n),kt=e.input.charCodeAt(e.position),kt===Q)return e.position++,e.tag=y,e.anchor=F,e.kind=H?"mapping":"sequence",e.result=w,!0;s?kt===44&&wt(e,"expected the node content, but found ','"):wt(e,"missed comma between flow collection entries"),Lt=Dt=Vt=null,Y=S=!1,kt===63&&(V=e.input.charCodeAt(e.position+1),ii(V)&&(Y=S=!0,e.position++,fe(e,!0,n))),l=e.line,u=e.lineStart,_=e.position,Wn(e,n,xr,!1,!0),Lt=e.tag,Dt=e.result,fe(e,!0,n),kt=e.input.charCodeAt(e.position),(S||e.line===l)&&kt===58&&(Y=!0,kt=e.input.charCodeAt(++e.position),fe(e,!0,n),Wn(e,n,xr,!1,!0),Vt=e.result),H?Un(e,w,Ot,Lt,Dt,Vt,l,u,_):Y?w.push(Un(e,null,Ot,Lt,Dt,Vt,l,u,_)):w.push(Dt),fe(e,!0,n),kt=e.input.charCodeAt(e.position),kt===44?(s=!0,kt=e.input.charCodeAt(++e.position)):s=!1}wt(e,"unexpected end of the stream within a flow collection")}function vu(e,n){var s,l,u=pn,_=!1,y=!1,w=n,F=0,V=!1,Q,Y;if(Y=e.input.charCodeAt(e.position),Y===124)l=!1;else if(Y===62)l=!0;else return!1;for(e.kind="scalar",e.result="";Y!==0;)if(Y=e.input.charCodeAt(++e.position),Y===43||Y===45)pn===u?u=Y===43?bs:yu:wt(e,"repeat of a chomping mode identifier");else if((Q=zn(Y))>=0)Q===0?wt(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):y?wt(e,"repeat of an indentation width identifier"):(w=n+Q-1,y=!0);else break;if(tr(Y)){do Y=e.input.charCodeAt(++e.position);while(tr(Y));if(Y===35)do Y=e.input.charCodeAt(++e.position);while(!Qi(Y)&&Y!==0)}for(;Y!==0;){for(er(e),e.lineIndent=0,Y=e.input.charCodeAt(e.position);(!y||e.lineIndentw&&(w=e.lineIndent),Qi(Y)){F++;continue}if(e.lineIndentn)&&F!==0)wt(e,"bad indentation of a sequence entry");else if(e.lineIndentn)&&(Lt&&(y=e.line,w=e.lineStart,F=e.position),Wn(e,n,Cs,!0,u)&&(Lt?Ot=e.result:Dt=e.result),Lt||(Un(e,Y,S,H,Ot,Dt,y,w,F),H=Ot=Dt=null),fe(e,!0,-1),kt=e.input.charCodeAt(e.position)),(e.line===_||e.lineIndent>n)&&kt!==0)wt(e,"bad indentation of a mapping entry");else if(e.lineIndentn?F=1:e.lineIndent===n?F=0:e.lineIndentn?F=1:e.lineIndent===n?F=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),Y=0,S=e.implicitTypes.length;Y"),e.result!==null&&Ot.kind!==e.kind&&wt(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+Ot.kind+'", not "'+e.kind+'"'),Ot.resolve(e.result,e.tag)?(e.result=Ot.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):wt(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||Q}function Bo(e){var n=e.position,s,l,u,_=!1,y;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(y=e.input.charCodeAt(e.position))!==0&&(fe(e,!0,-1),y=e.input.charCodeAt(e.position),!(e.lineIndent>0||y!==37));){for(_=!0,y=e.input.charCodeAt(++e.position),s=e.position;y!==0&&!ii(y);)y=e.input.charCodeAt(++e.position);for(l=e.input.slice(s,e.position),u=[],l.length<1&&wt(e,"directive name must not be less than one character in length");y!==0;){for(;tr(y);)y=e.input.charCodeAt(++e.position);if(y===35){do y=e.input.charCodeAt(++e.position);while(y!==0&&!Qi(y));break}if(Qi(y))break;for(s=e.position;y!==0&&!ii(y);)y=e.input.charCodeAt(++e.position);u.push(e.input.slice(s,e.position))}y!==0&&er(e),ae.call(Nc,l)?Nc[l](e,l,u):Ts(e,'unknown document directive "'+l+'"')}if(fe(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,fe(e,!0,-1)):_&&wt(e,"directives end mark is expected"),Wn(e,e.lineIndent-1,Cs,!1,!0),fe(e,!0,-1),e.checkLineBreaks&&wo.test(e.input.slice(n,e.position))&&Ts(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ur(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,fe(e,!0,-1));return}if(e.position"u"&&(s=n,n=null);var l=Hc(e,s);if(typeof n!="function")return l;for(var u=0,_=l.length;u<_;u+=1)n(l[u])}function wu(e,n){var s=Hc(e,n);if(s.length!==0){if(s.length===1)return s[0];throw new di("expected a single document in the stream, but found more")}}var ir=Va,Bu=wu,Ar={loadAll:ir,load:Bu},Eu=Da,Ka=Ar.load;function Lu(e){const n=e.match(Or);if(!n)return{text:e,metadata:{}};let s=Ka(n[1],{schema:Eu})??{};s=typeof s=="object"&&!Array.isArray(s)?s:{};const l={};return s.displayMode&&(l.displayMode=s.displayMode.toString()),s.title&&(l.title=s.title.toString()),s.config&&(l.config=s.config),{text:e.slice(n[0].length),metadata:l}}const Mu=e=>e.replace(/\r\n?/g,` `).replace(/<(\w+)([^>]*)>/g,(n,s,l)=>"<"+s+l.replace(/="([^"]*)"/g,"='$1'")+">"),Yc=e=>{const{text:n,metadata:s}=Lu(e),{displayMode:l,title:u,config:_={}}=s;return l&&(_.gantt||(_.gantt={}),_.gantt.displayMode=l),{title:u,config:_,text:n}},qc=e=>{const n=li.detectInit(e)??{},s=li.detectDirective(e,"wrap");return Array.isArray(s)?n.wrap=s.some(({type:l})=>{}):s?.type==="wrap"&&(n.wrap=!0),{text:pt(e),directive:n}};function Eo(e){const n=Mu(e),s=Yc(n),l=qc(s.text),u=hn(s.config,l.directive);return e=xo(l.text),{code:e,title:s.title,config:u}}const ks=5e4,Hn="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Gc="sandbox",Xa="loose",De="http://www.w3.org/2000/svg",Vc="http://www.w3.org/1999/xlink",Kc="http://www.w3.org/1999/xhtml",Xt="100%",Xc="100%",Yn="border:0;margin:0;",qn="margin:0",Zc="allow-top-navigation-by-user-activation allow-popups",Jc='The "iframe" tag is not supported by your browser.',Qc=["foreignobject"],th=["dominant-baseline"];function Za(e){const n=Eo(e);return ji(),Ys(n.config??{}),n}async function Ja(e,n){ba(),e=Za(e).code;try{await Bs(e)}catch(s){if(n?.suppressErrors)return!1;throw s}return!0}const Ss=(e,n,s=[])=>` .${e} ${n} { ${s.join(" !important; ")} !important; }`,eh=(e,n={})=>{var s;let l="";if(e.themeCSS!==void 0&&(l+=` ${e.themeCSS}`),e.fontFamily!==void 0&&(l+=` :root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(l+=` :root { --mermaid-alt-font-family: ${e.altFontFamily}}`),!(0,Qr.A)(n)){const w=e.htmlLabels||((s=e.flowchart)==null?void 0:s.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const F in n){const V=n[F];(0,Qr.A)(V.styles)||w.forEach(Q=>{l+=Ss(V.id,Q,V.styles)}),(0,Qr.A)(V.textStyles)||(l+=Ss(V.id,"tspan",V.textStyles))}}return l},ih=(e,n,s,l)=>{const u=eh(e,s),_=Xl(n,u,e.themeVariables);return Wt(Xn(`${l}{${_}}`),zt)},rh=(e="",n,s)=>{let l=e;return!s&&!n&&(l=l.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),l=Dn(l),l=l.replace(/
/g,"
"),l},Qa=(e="",n)=>{var s,l;const u=(l=(s=n?.viewBox)==null?void 0:s.baseVal)!=null&&l.height?n.viewBox.baseVal.height+"px":Xc,_=btoa(''+e+"");return``},tl=(e,n,s,l,u)=>{const _=e.append("div");_.attr("id",s),l&&_.attr("style",l);const y=_.append("svg").attr("id",n).attr("width","100%").attr("xmlns",De);return u&&y.attr("xmlns:xlink",u),y.append("g"),e};function ws(e,n){return e.append("iframe").attr("id",n).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const nh=(e,n,s,l)=>{var u,_,y;(u=e.getElementById(n))==null||u.remove(),(_=e.getElementById(s))==null||_.remove(),(y=e.getElementById(l))==null||y.remove()},oh=async function(e,n,s){var l,u,_,y,w,F;ba();const V=Za(n);n=V.code;const Q=Ai();At.debug(Q),n.length>(Q?.maxTextSize??ks)&&(n=Hn);const Y="#"+e,S="i"+e,H="#"+S,Ot="d"+e,Dt="#"+Ot;let Lt=(0,A.Ltv)("body");const Vt=Q.securityLevel===Gc,kt=Q.securityLevel===Xa,mi=Q.fontFamily;if(s!==void 0){if(s&&(s.innerHTML=""),Vt){const rr=ws((0,A.Ltv)(s),S);Lt=(0,A.Ltv)(rr.nodes()[0].contentDocument.body),Lt.node().style.margin=0}else Lt=(0,A.Ltv)(s);tl(Lt,e,Ot,`font-family: ${mi}`,Vc)}else{if(nh(document,e,Ot,S),Vt){const rr=ws((0,A.Ltv)("body"),S);Lt=(0,A.Ltv)(rr.nodes()[0].contentDocument.body),Lt.node().style.margin=0}else Lt=(0,A.Ltv)("body");tl(Lt,e,Ot)}let Ae,gi;try{Ae=await Bs(n,{title:V.title})}catch(rr){Ae=new bo("error"),gi=rr}const pi=Lt.select(Dt).node(),ne=Ae.type,cl=pi.firstChild,dh=cl.firstChild,hl=(u=(l=Ae.renderer).getClasses)==null?void 0:u.call(l,n,Ae),ul=ih(Q,ne,hl,Y),Ls=document.createElement("style");Ls.innerHTML=ul,cl.insertBefore(Ls,dh);try{await Ae.renderer.draw(n,e,Dr,Ae)}catch(rr){throw nu.draw(n,e,Dr),rr}const Cn=Lt.select(`${Dt} svg`),Ms=(y=(_=Ae.db).getAccTitle)==null?void 0:y.call(_),fh=(F=(w=Ae.db).getAccDescription)==null?void 0:F.call(w);ah(ne,Cn,Ms,fh),Lt.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",Kc);let Hr=Lt.select(Dt).node().innerHTML;if(At.debug("config.arrowMarkerAbsolute",Q.arrowMarkerAbsolute),Hr=rh(Hr,Vt,cr(Q.arrowMarkerAbsolute)),Vt){const rr=Lt.select(Dt+" svg").node();Hr=Qa(Hr,rr)}else kt||(Hr=M.sanitize(Hr,{ADD_TAGS:Qc,ADD_ATTR:th}));if(xa(),gi)throw gi;const mh=Vt?H:Dt,Fs=(0,A.Ltv)(mh).node();return Fs&&"remove"in Fs&&Fs.remove(),{svg:Hr,bindFunctions:Ae.db.bindFunctions}};function sh(e={}){var n;e?.fontFamily&&!((n=e.themeVariables)!=null&&n.fontFamily)&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),kl(e),e?.theme&&e.theme in si?e.themeVariables=si[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=si.default.getThemeVariables(e.themeVariables));const s=typeof e=="object"?Al(e):zo();ue(s.logLevel),ba()}const Bs=(e,n={})=>{const{code:s}=Eo(e);return Ni(s,n)};function ah(e,n,s,l){fu(n,e),ac(n,s,l,n.attr("id"))}const Wr=Object.freeze({render:oh,parse:Ja,getDiagramFromText:Bs,initialize:sh,getConfig:Ai,setConfig:Uo,getSiteConfig:zo,updateSiteConfig:Sl,reset:()=>{ji()},globalReset:()=>{ji(Pi)},defaultConfig:Pi});ue(Ai().logLevel),ji(Ai());const lh=async()=>{At.debug("Loading registered diagrams");const n=(await Promise.allSettled(Object.entries(Di).map(async([s,{detector:l,loader:u}])=>{if(u)try{Qo(s)}catch{try{const{diagram:y,id:w}=await u();po(w,y,l)}catch(y){throw At.error(`Failed to load external diagram with key ${s}. Removing from detectors.`),delete Di[s],y}}}))).filter(s=>s.status==="rejected");if(n.length>0){At.error(`Failed to load ${n.length} external diagrams`);for(const s of n)At.error(s);throw new Error(`Failed to load ${n.length} external diagrams`)}},el=(e,n,s)=>{At.warn(e),Us(e)?(s&&s(e.str,e.hash),n.push({...e,message:e.str,error:e})):(s&&s(e),e instanceof Error&&n.push({str:e.message,message:e.message,hash:e.name,error:e}))},il=async function(e={querySelector:".mermaid"}){try{await ch(e)}catch(n){if(Us(n)&&At.error(n.str),ki.parseError&&ki.parseError(n),!e.suppressErrors)throw At.error("Use the suppressErrors option to suppress these errors"),n}},ch=async function({postRenderCallback:e,querySelector:n,nodes:s}={querySelector:".mermaid"}){const l=Wr.getConfig();At.debug(`${e?"":"No "}Callback function found`);let u;if(s)u=s;else if(n)u=document.querySelectorAll(n);else throw new Error("Nodes and querySelector are both undefined");At.debug(`Found ${u.length} diagrams`),l?.startOnLoad!==void 0&&(At.debug("Start On Load: "+l?.startOnLoad),Wr.updateSiteConfig({startOnLoad:l?.startOnLoad}));const _=new li.InitIDGenerator(l.deterministicIds,l.deterministicIDSeed);let y;const w=[];for(const F of Array.from(u)){At.info("Rendering diagram: "+F.id);if(F.getAttribute("data-processed"))continue;F.setAttribute("data-processed","true");const V=`mermaid-${_.next()}`;y=F.innerHTML,y=(0,B.T)(li.entityDecode(y)).trim().replace(//gi,"
");const Q=li.detectInit(y);Q&&At.debug("Detected early reinit: ",Q);try{const{svg:Y,bindFunctions:S}=await ll(V,y,F);F.innerHTML=Y,e&&await e(V),S&&S(F)}catch(Y){el(Y,w,ki.parseError)}}if(w.length>0)throw w[0]},rl=function(e){Wr.initialize(e)},nl=async function(e,n,s){At.warn("mermaid.init is deprecated. Please use run instead."),e&&rl(e);const l={postRenderCallback:s,querySelector:".mermaid"};typeof n=="string"?l.querySelector=n:n&&(n instanceof HTMLElement?l.nodes=[n]:l.nodes=n),await il(l)},hh=async(e,{lazyLoad:n=!0}={})=>{En(...e),n===!1&&await lh()},ol=function(){if(ki.startOnLoad){const{startOnLoad:e}=Wr.getConfig();e&&ki.run().catch(n=>At.error("Mermaid failed to initialize",n))}};if(typeof document<"u"){window.addEventListener("load",ol,!1)}const uh=function(e){ki.parseError=e},Lo=[];let Es=!1;const sl=async()=>{if(!Es){for(Es=!0;Lo.length>0;){const e=Lo.shift();if(e)try{await e()}catch(n){At.error("Error executing queue",n)}}Es=!1}},al=async(e,n)=>new Promise((s,l)=>{const u=()=>new Promise((_,y)=>{Wr.parse(e,n).then(w=>{_(w),s(w)},w=>{var F;At.error("Error parsing",w),(F=ki.parseError)==null||F.call(ki,w),y(w),l(w)})});Lo.push(u),sl().catch(l)}),ll=(e,n,s)=>new Promise((l,u)=>{const _=()=>new Promise((y,w)=>{Wr.render(e,n,s).then(F=>{y(F),l(F)},F=>{var V;At.error("Error parsing",F),(V=ki.parseError)==null||V.call(ki,F),w(F),u(F)})});Lo.push(_),sl().catch(u)}),ki={startOnLoad:!0,mermaidAPI:Wr,parse:al,render:ll,init:nl,run:il,registerExternalDiagrams:hh,initialize:rl,parseError:void 0,contentLoaded:ol,setParseErrorHandler:uh,detectType:gr}},"./node_modules/mermaid/dist/mermaid.core.mjs":function(mt,D,f){"use strict";f.d(D,{default:function(){return B.N}});var B=f("./node_modules/mermaid/dist/mermaid-f47111a7.js"),E=f("./node_modules/dayjs/dayjs.min.js"),P=f("./node_modules/@braintree/sanitize-url/dist/index.js"),A=f("./node_modules/d3/src/index.js"),M=f("./node_modules/dompurify/dist/purify.js")}}]);