livebook/static/assets/chunk-KR7JTV7U.js
2024-01-24 15:02:24 +00:00

96 lines
281 KiB
JavaScript

import{a as ce,b as ue,f as za,h as qa}from"./chunk-3V74GZ4F.js";var vc=za((Wa,Ua)=>{(function(t,e){typeof Wa=="object"&&typeof Ua!="undefined"?Ua.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis!="undefined"?globalThis:t||self).dayjs=e()})(Wa,function(){"use strict";var t=1e3,e=6e4,r=36e5,i="millisecond",n="second",o="minute",a="hour",s="day",l="week",c="month",u="quarter",h="year",f="date",p="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(C){var _=["th","st","nd","rd"],g=C%100;return"["+C+(_[(g-20)%10]||_[g]||_[0])+"]"}},B=function(C,_,g){var k=String(C);return!k||k.length>=_?C:""+Array(_+1-k.length).join(g)+C},T={s:B,z:function(C){var _=-C.utcOffset(),g=Math.abs(_),k=Math.floor(g/60),A=g%60;return(_<=0?"+":"-")+B(k,2,"0")+":"+B(A,2,"0")},m:function C(_,g){if(_.date()<g.date())return-C(g,_);var k=12*(g.year()-_.year())+(g.month()-_.month()),A=_.clone().add(k,c),D=g-A<0,P=_.clone().add(k+(D?-1:1),c);return+(-(k+(g-A)/(D?A-P:P-A))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:c,y:h,w:l,d:s,D:f,h:a,m:o,s:n,ms:i,Q:u}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},M="en",E={};E[M]=v;var I=function(C){return C instanceof et},F=function C(_,g,k){var A;if(!_)return M;if(typeof _=="string"){var D=_.toLowerCase();E[D]&&(A=D),g&&(E[D]=g,A=D);var P=_.split("-");if(!A&&P.length>1)return C(P[0])}else{var j=_.name;E[j]=_,A=j}return!k&&A&&(M=A),A||!k&&M},y=function(C,_){if(I(C))return C.clone();var g=typeof _=="object"?_:{};return g.date=C,g.args=arguments,new et(g)},$=T;$.l=F,$.i=I,$.w=function(C,_){return y(C,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var et=function(){function C(g){this.$L=F(g.locale,null,!0),this.parse(g)}var _=C.prototype;return _.parse=function(g){this.$d=function(k){var A=k.date,D=k.utc;if(A===null)return new Date(NaN);if($.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var P=A.match(x);if(P){var j=P[2]-1||0,X=(P[7]||"0").substring(0,3);return D?new Date(Date.UTC(P[1],j,P[3]||1,P[4]||0,P[5]||0,P[6]||0,X)):new Date(P[1],j,P[3]||1,P[4]||0,P[5]||0,P[6]||0,X)}}return new Date(A)}(g),this.$x=g.x||{},this.init()},_.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},_.$utils=function(){return $},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(g,k){var A=y(g);return this.startOf(k)<=A&&A<=this.endOf(k)},_.isAfter=function(g,k){return y(g)<this.startOf(k)},_.isBefore=function(g,k){return this.endOf(k)<y(g)},_.$g=function(g,k,A){return $.u(g)?this[k]:this.set(A,g)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(g,k){var A=this,D=!!$.u(k)||k,P=$.p(g),j=function(Nt,ut){var Lt=$.w(A.$u?Date.UTC(A.$y,ut,Nt):new Date(A.$y,ut,Nt),A);return D?Lt:Lt.endOf(s)},X=function(Nt,ut){return $.w(A.toDate()[Nt].apply(A.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(ut)),A)},V=this.$W,at=this.$M,St=this.$D,kt="set"+(this.$u?"UTC":"");switch(P){case h:return D?j(1,0):j(31,11);case c:return D?j(1,at):j(0,at+1);case l:var Xt=this.$locale().weekStart||0,mt=(V<Xt?V+7:V)-Xt;return j(D?St-mt:St+(6-mt),at);case s:case f:return X(kt+"Hours",0);case a:return X(kt+"Minutes",1);case o:return X(kt+"Seconds",2);case n:return X(kt+"Milliseconds",3);default:return this.clone()}},_.endOf=function(g){return this.startOf(g,!1)},_.$set=function(g,k){var A,D=$.p(g),P="set"+(this.$u?"UTC":""),j=(A={},A[s]=P+"Date",A[f]=P+"Date",A[c]=P+"Month",A[h]=P+"FullYear",A[a]=P+"Hours",A[o]=P+"Minutes",A[n]=P+"Seconds",A[i]=P+"Milliseconds",A)[D],X=D===s?this.$D+(k-this.$W):k;if(D===c||D===h){var V=this.clone().set(f,1);V.$d[j](X),V.init(),this.$d=V.set(f,Math.min(this.$D,V.daysInMonth())).$d}else j&&this.$d[j](X);return this.init(),this},_.set=function(g,k){return this.clone().$set(g,k)},_.get=function(g){return this[$.p(g)]()},_.add=function(g,k){var A,D=this;g=Number(g);var P=$.p(k),j=function(at){var St=y(D);return $.w(St.date(St.date()+Math.round(at*g)),D)};if(P===c)return this.set(c,this.$M+g);if(P===h)return this.set(h,this.$y+g);if(P===s)return j(1);if(P===l)return j(7);var X=(A={},A[o]=e,A[a]=r,A[n]=t,A)[P]||1,V=this.$d.getTime()+g*X;return $.w(V,this)},_.subtract=function(g,k){return this.add(-1*g,k)},_.format=function(g){var k=this,A=this.$locale();if(!this.isValid())return A.invalidDate||p;var D=g||"YYYY-MM-DDTHH:mm:ssZ",P=$.z(this),j=this.$H,X=this.$m,V=this.$M,at=A.weekdays,St=A.months,kt=function(ut,Lt,O,G){return ut&&(ut[Lt]||ut(k,D))||O[Lt].slice(0,G)},Xt=function(ut){return $.s(j%12||12,ut,"0")},mt=A.meridiem||function(ut,Lt,O){var G=ut<12?"AM":"PM";return O?G.toLowerCase():G},Nt={YY:String(this.$y).slice(-2),YYYY:this.$y,M:V+1,MM:$.s(V+1,2,"0"),MMM:kt(A.monthsShort,V,St,3),MMMM:kt(St,V),D:this.$D,DD:$.s(this.$D,2,"0"),d:String(this.$W),dd:kt(A.weekdaysMin,this.$W,at,2),ddd:kt(A.weekdaysShort,this.$W,at,3),dddd:at[this.$W],H:String(j),HH:$.s(j,2,"0"),h:Xt(1),hh:Xt(2),a:mt(j,X,!0),A:mt(j,X,!1),m:String(X),mm:$.s(X,2,"0"),s:String(this.$s),ss:$.s(this.$s,2,"0"),SSS:$.s(this.$ms,3,"0"),Z:P};return D.replace(b,function(ut,Lt){return Lt||Nt[ut]||P.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(g,k,A){var D,P=$.p(k),j=y(g),X=(j.utcOffset()-this.utcOffset())*e,V=this-j,at=$.m(this,j);return at=(D={},D[h]=at/12,D[c]=at,D[u]=at/3,D[l]=(V-X)/6048e5,D[s]=(V-X)/864e5,D[a]=V/r,D[o]=V/e,D[n]=V/t,D)[P]||V,A?at:$.a(at)},_.daysInMonth=function(){return this.endOf(c).$D},_.$locale=function(){return E[this.$L]},_.locale=function(g,k){if(!g)return this.$L;var A=this.clone(),D=F(g,k,!0);return D&&(A.$L=D),A},_.clone=function(){return $.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},C}(),rt=et.prototype;return y.prototype=rt,[["$ms",i],["$s",n],["$m",o],["$H",a],["$W",s],["$M",c],["$y",h],["$D",f]].forEach(function(C){rt[C[1]]=function(_){return this.$g(_,C[0],C[1])}}),y.extend=function(C,_){return C.$i||(C(_,et,y),C.$i=!0),y},y.locale=F,y.isDayjs=I,y.unix=function(C){return y(1e3*C)},y.en=E[M],y.Ls=E,y.p={},y})});var Sc=za(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.sanitizeUrl=void 0;var Hg=/^([^\w]*)(javascript|data|vbscript)/im,Yg=/&#(\w+)(^\w|;)?/g,jg=/&(newline|tab);/gi,Gg=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,Vg=/^.+(:|&colon;)/gim,Xg=[".","/"];function Kg(t){return Xg.indexOf(t[0])>-1}function Zg(t){return t.replace(Yg,function(e,r){return String.fromCharCode(r)})}function Qg(t){var e=Zg(t||"").replace(jg,"").replace(Gg,"").trim();if(!e)return"about:blank";if(Kg(e))return e;var r=e.match(Vg);if(!r)return e;var i=r[0];return Hg.test(i)?"about:blank":e}An.sanitizeUrl=Qg});var Kf=za((hl,fl)=>{(function(t,e){typeof hl=="object"&&typeof fl!="undefined"?fl.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis!="undefined"?globalThis:t||self,t.DOMPurify=e())})(hl,function(){"use strict";let{entries:t,setPrototypeOf:e,isFrozen:r,getPrototypeOf:i,getOwnPropertyDescriptor:n}=Object,{freeze:o,seal:a,create:s}=Object,{apply:l,construct:c}=typeof Reflect!="undefined"&&Reflect;o||(o=function(N){return N}),a||(a=function(N){return N}),l||(l=function(N,Q,J){return N.apply(Q,J)}),c||(c=function(N,Q){return new N(...Q)});let u=I(Array.prototype.forEach),h=I(Array.prototype.pop),f=I(Array.prototype.push),p=I(String.prototype.toLowerCase),x=I(String.prototype.toString),b=I(String.prototype.match),v=I(String.prototype.replace),B=I(String.prototype.indexOf),T=I(String.prototype.trim),M=I(RegExp.prototype.test),E=F(TypeError);function I(K){return function(N){for(var Q=arguments.length,J=new Array(Q>1?Q-1:0),Rt=1;Rt<Q;Rt++)J[Rt-1]=arguments[Rt];return l(K,N,J)}}function F(K){return function(){for(var N=arguments.length,Q=new Array(N),J=0;J<N;J++)Q[J]=arguments[J];return c(K,Q)}}function y(K,N){let Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p;e&&e(K,null);let J=N.length;for(;J--;){let Rt=N[J];if(typeof Rt=="string"){let _e=Q(Rt);_e!==Rt&&(r(N)||(N[J]=_e),Rt=_e)}K[Rt]=!0}return K}function $(K){let N=s(null);for(let[Q,J]of t(K))n(K,Q)!==void 0&&(N[Q]=J);return N}function et(K,N){for(;K!==null;){let J=n(K,N);if(J){if(J.get)return I(J.get);if(typeof J.value=="function")return I(J.value)}K=i(K)}function Q(J){return console.warn("fallback value for",J),null}return Q}let rt=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),C=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),_=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),g=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),k=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),A=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),D=o(["#text"]),P=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),j=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),X=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),V=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),at=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),St=a(/<%[\w\W]*|[\w\W]*%>/gm),kt=a(/\${[\w\W]*}/gm),Xt=a(/^data-[\-\w.\u00B7-\uFFFF]/),mt=a(/^aria-[\-\w]+$/),Nt=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ut=a(/^(?:\w+script|data):/i),Lt=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),O=a(/^html$/i);var G=Object.freeze({__proto__:null,MUSTACHE_EXPR:at,ERB_EXPR:St,TMPLIT_EXPR:kt,DATA_ATTR:Xt,ARIA_ATTR:mt,IS_ALLOWED_URI:Nt,IS_SCRIPT_OR_DATA:ut,ATTR_WHITESPACE:Lt,DOCTYPE_NAME:O});let Z=function(){return typeof window=="undefined"?null:window},S=function(N,Q){if(typeof N!="object"||typeof N.createPolicy!="function")return null;let J=null,Rt="data-tt-policy-suffix";Q&&Q.hasAttribute(Rt)&&(J=Q.getAttribute(Rt));let _e="dompurify"+(J?"#"+J:"");try{return N.createPolicy(_e,{createHTML(Dr){return Dr},createScriptURL(Dr){return Dr}})}catch(Dr){return console.warn("TrustedTypes policy "+_e+" could not be created."),null}};function wt(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Z(),N=W=>wt(W);if(N.version="3.0.6",N.removed=[],!K||!K.document||K.document.nodeType!==9)return N.isSupported=!1,N;let{document:Q}=K,J=Q,Rt=J.currentScript,{DocumentFragment:_e,HTMLTemplateElement:Dr,Node:Ta,Element:Kl,NodeFilter:va,NamedNodeMap:Tg=K.NamedNodeMap||K.MozNamedAttrMap,HTMLFormElement:vg,DOMParser:Sg,trustedTypes:Tn}=K,vn=Kl.prototype,kg=et(vn,"cloneNode"),wg=et(vn,"nextSibling"),Bg=et(vn,"childNodes"),Sa=et(vn,"parentNode");if(typeof Dr=="function"){let W=Q.createElement("template");W.content&&W.content.ownerDocument&&(Q=W.content.ownerDocument)}let Pt,Bi="",{implementation:ka,createNodeIterator:Fg,createDocumentFragment:Ag,getElementsByTagName:Mg}=Q,{importNode:Lg}=J,le={};N.isSupported=typeof t=="function"&&typeof Sa=="function"&&ka&&ka.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:wa,ERB_EXPR:Ba,TMPLIT_EXPR:Fa,DATA_ATTR:Eg,ARIA_ATTR:Og,IS_SCRIPT_OR_DATA:Ig,ATTR_WHITESPACE:Zl}=G,{IS_ALLOWED_URI:Ql}=G,_t=null,Jl=y({},[...rt,...C,..._,...k,...D]),bt=null,tc=y({},[...P,...j,...X,...V]),ht=Object.seal(s(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}})),Fi=null,Aa=null,ec=!0,Ma=!0,rc=!1,ic=!0,Nr=!1,rr=!1,La=!1,Ea=!1,Rr=!1,Sn=!1,kn=!1,nc=!0,oc=!1,Dg="user-content-",Oa=!0,Ai=!1,Pr={},$r=null,ac=y({},["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"]),sc=null,lc=y({},["audio","video","img","source","image","track"]),Ia=null,cc=y({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),wn="http://www.w3.org/1998/Math/MathML",Bn="http://www.w3.org/2000/svg",be="http://www.w3.org/1999/xhtml",zr=be,Da=!1,Na=null,Ng=y({},[wn,Bn,be],x),ir=null,Rg=["application/xhtml+xml","text/html"],Pg="text/html",Ct=null,qr=null,$g=Q.createElement("form"),uc=function(d){return d instanceof RegExp||d instanceof Function},Ra=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(qr&&qr===d)){if((!d||typeof d!="object")&&(d={}),d=$(d),ir=Rg.indexOf(d.PARSER_MEDIA_TYPE)===-1?ir=Pg:ir=d.PARSER_MEDIA_TYPE,Ct=ir==="application/xhtml+xml"?x:p,_t="ALLOWED_TAGS"in d?y({},d.ALLOWED_TAGS,Ct):Jl,bt="ALLOWED_ATTR"in d?y({},d.ALLOWED_ATTR,Ct):tc,Na="ALLOWED_NAMESPACES"in d?y({},d.ALLOWED_NAMESPACES,x):Ng,Ia="ADD_URI_SAFE_ATTR"in d?y($(cc),d.ADD_URI_SAFE_ATTR,Ct):cc,sc="ADD_DATA_URI_TAGS"in d?y($(lc),d.ADD_DATA_URI_TAGS,Ct):lc,$r="FORBID_CONTENTS"in d?y({},d.FORBID_CONTENTS,Ct):ac,Fi="FORBID_TAGS"in d?y({},d.FORBID_TAGS,Ct):{},Aa="FORBID_ATTR"in d?y({},d.FORBID_ATTR,Ct):{},Pr="USE_PROFILES"in d?d.USE_PROFILES:!1,ec=d.ALLOW_ARIA_ATTR!==!1,Ma=d.ALLOW_DATA_ATTR!==!1,rc=d.ALLOW_UNKNOWN_PROTOCOLS||!1,ic=d.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Nr=d.SAFE_FOR_TEMPLATES||!1,rr=d.WHOLE_DOCUMENT||!1,Rr=d.RETURN_DOM||!1,Sn=d.RETURN_DOM_FRAGMENT||!1,kn=d.RETURN_TRUSTED_TYPE||!1,Ea=d.FORCE_BODY||!1,nc=d.SANITIZE_DOM!==!1,oc=d.SANITIZE_NAMED_PROPS||!1,Oa=d.KEEP_CONTENT!==!1,Ai=d.IN_PLACE||!1,Ql=d.ALLOWED_URI_REGEXP||Nt,zr=d.NAMESPACE||be,ht=d.CUSTOM_ELEMENT_HANDLING||{},d.CUSTOM_ELEMENT_HANDLING&&uc(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ht.tagNameCheck=d.CUSTOM_ELEMENT_HANDLING.tagNameCheck),d.CUSTOM_ELEMENT_HANDLING&&uc(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ht.attributeNameCheck=d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),d.CUSTOM_ELEMENT_HANDLING&&typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ht.allowCustomizedBuiltInElements=d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Nr&&(Ma=!1),Sn&&(Rr=!0),Pr&&(_t=y({},[...D]),bt=[],Pr.html===!0&&(y(_t,rt),y(bt,P)),Pr.svg===!0&&(y(_t,C),y(bt,j),y(bt,V)),Pr.svgFilters===!0&&(y(_t,_),y(bt,j),y(bt,V)),Pr.mathMl===!0&&(y(_t,k),y(bt,X),y(bt,V))),d.ADD_TAGS&&(_t===Jl&&(_t=$(_t)),y(_t,d.ADD_TAGS,Ct)),d.ADD_ATTR&&(bt===tc&&(bt=$(bt)),y(bt,d.ADD_ATTR,Ct)),d.ADD_URI_SAFE_ATTR&&y(Ia,d.ADD_URI_SAFE_ATTR,Ct),d.FORBID_CONTENTS&&($r===ac&&($r=$($r)),y($r,d.FORBID_CONTENTS,Ct)),Oa&&(_t["#text"]=!0),rr&&y(_t,["html","head","body"]),_t.table&&(y(_t,["tbody"]),delete Fi.tbody),d.TRUSTED_TYPES_POLICY){if(typeof d.TRUSTED_TYPES_POLICY.createHTML!="function")throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof d.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Pt=d.TRUSTED_TYPES_POLICY,Bi=Pt.createHTML("")}else Pt===void 0&&(Pt=S(Tn,Rt)),Pt!==null&&typeof Bi=="string"&&(Bi=Pt.createHTML(""));o&&o(d),qr=d}},hc=y({},["mi","mo","mn","ms","mtext"]),fc=y({},["foreignobject","desc","title","annotation-xml"]),zg=y({},["title","style","font","a","script"]),Fn=y({},C);y(Fn,_),y(Fn,g);let Pa=y({},k);y(Pa,A);let qg=function(d){let w=Sa(d);(!w||!w.tagName)&&(w={namespaceURI:zr,tagName:"template"});let R=p(d.tagName),ot=p(w.tagName);return Na[d.namespaceURI]?d.namespaceURI===Bn?w.namespaceURI===be?R==="svg":w.namespaceURI===wn?R==="svg"&&(ot==="annotation-xml"||hc[ot]):!!Fn[R]:d.namespaceURI===wn?w.namespaceURI===be?R==="math":w.namespaceURI===Bn?R==="math"&&fc[ot]:!!Pa[R]:d.namespaceURI===be?w.namespaceURI===Bn&&!fc[ot]||w.namespaceURI===wn&&!hc[ot]?!1:!Pa[R]&&(zg[R]||!Fn[R]):!!(ir==="application/xhtml+xml"&&Na[d.namespaceURI]):!1},nr=function(d){f(N.removed,{element:d});try{d.parentNode.removeChild(d)}catch(w){d.remove()}},$a=function(d,w){try{f(N.removed,{attribute:w.getAttributeNode(d),from:w})}catch(R){f(N.removed,{attribute:null,from:w})}if(w.removeAttribute(d),d==="is"&&!bt[d])if(Rr||Sn)try{nr(w)}catch(R){}else try{w.setAttribute(d,"")}catch(R){}},pc=function(d){let w=null,R=null;if(Ea)d="<remove></remove>"+d;else{let Ot=b(d,/^[\r\n\t ]+/);R=Ot&&Ot[0]}ir==="application/xhtml+xml"&&zr===be&&(d='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+d+"</body></html>");let ot=Pt?Pt.createHTML(d):d;if(zr===be)try{w=new Sg().parseFromString(ot,ir)}catch(Ot){}if(!w||!w.documentElement){w=ka.createDocument(zr,"template",null);try{w.documentElement.innerHTML=Da?Bi:ot}catch(Ot){}}let Et=w.body||w.documentElement;return d&&R&&Et.insertBefore(Q.createTextNode(R),Et.childNodes[0]||null),zr===be?Mg.call(w,rr?"html":"body")[0]:rr?w.documentElement:Et},dc=function(d){return Fg.call(d.ownerDocument||d,d,va.SHOW_ELEMENT|va.SHOW_COMMENT|va.SHOW_TEXT,null)},Wg=function(d){return d instanceof vg&&(typeof d.nodeName!="string"||typeof d.textContent!="string"||typeof d.removeChild!="function"||!(d.attributes instanceof Tg)||typeof d.removeAttribute!="function"||typeof d.setAttribute!="function"||typeof d.namespaceURI!="string"||typeof d.insertBefore!="function"||typeof d.hasChildNodes!="function")},mc=function(d){return typeof Ta=="function"&&d instanceof Ta},Ce=function(d,w,R){le[d]&&u(le[d],ot=>{ot.call(N,w,R,qr)})},gc=function(d){let w=null;if(Ce("beforeSanitizeElements",d,null),Wg(d))return nr(d),!0;let R=Ct(d.nodeName);if(Ce("uponSanitizeElement",d,{tagName:R,allowedTags:_t}),d.hasChildNodes()&&!mc(d.firstElementChild)&&M(/<[/\w]/g,d.innerHTML)&&M(/<[/\w]/g,d.textContent))return nr(d),!0;if(!_t[R]||Fi[R]){if(!Fi[R]&&yc(R)&&(ht.tagNameCheck instanceof RegExp&&M(ht.tagNameCheck,R)||ht.tagNameCheck instanceof Function&&ht.tagNameCheck(R)))return!1;if(Oa&&!$r[R]){let ot=Sa(d)||d.parentNode,Et=Bg(d)||d.childNodes;if(Et&&ot){let Ot=Et.length;for(let Wt=Ot-1;Wt>=0;--Wt)ot.insertBefore(kg(Et[Wt],!0),wg(d))}}return nr(d),!0}return d instanceof Kl&&!qg(d)||(R==="noscript"||R==="noembed"||R==="noframes")&&M(/<\/no(script|embed|frames)/i,d.innerHTML)?(nr(d),!0):(Nr&&d.nodeType===3&&(w=d.textContent,u([wa,Ba,Fa],ot=>{w=v(w,ot," ")}),d.textContent!==w&&(f(N.removed,{element:d.cloneNode()}),d.textContent=w)),Ce("afterSanitizeElements",d,null),!1)},xc=function(d,w,R){if(nc&&(w==="id"||w==="name")&&(R in Q||R in $g))return!1;if(!(Ma&&!Aa[w]&&M(Eg,w))){if(!(ec&&M(Og,w))){if(!bt[w]||Aa[w]){if(!(yc(d)&&(ht.tagNameCheck instanceof RegExp&&M(ht.tagNameCheck,d)||ht.tagNameCheck instanceof Function&&ht.tagNameCheck(d))&&(ht.attributeNameCheck instanceof RegExp&&M(ht.attributeNameCheck,w)||ht.attributeNameCheck instanceof Function&&ht.attributeNameCheck(w))||w==="is"&&ht.allowCustomizedBuiltInElements&&(ht.tagNameCheck instanceof RegExp&&M(ht.tagNameCheck,R)||ht.tagNameCheck instanceof Function&&ht.tagNameCheck(R))))return!1}else if(!Ia[w]){if(!M(Ql,v(R,Zl,""))){if(!((w==="src"||w==="xlink:href"||w==="href")&&d!=="script"&&B(R,"data:")===0&&sc[d])){if(!(rc&&!M(Ig,v(R,Zl,"")))){if(R)return!1}}}}}}return!0},yc=function(d){return d.indexOf("-")>0},_c=function(d){Ce("beforeSanitizeAttributes",d,null);let{attributes:w}=d;if(!w)return;let R={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:bt},ot=w.length;for(;ot--;){let Et=w[ot],{name:Ot,namespaceURI:Wt,value:or}=Et,Mi=Ct(Ot),Ut=Ot==="value"?or:T(or);if(R.attrName=Mi,R.attrValue=Ut,R.keepAttr=!0,R.forceKeepAttr=void 0,Ce("uponSanitizeAttribute",d,R),Ut=R.attrValue,R.forceKeepAttr||($a(Ot,d),!R.keepAttr))continue;if(!ic&&M(/\/>/i,Ut)){$a(Ot,d);continue}Nr&&u([wa,Ba,Fa],Cc=>{Ut=v(Ut,Cc," ")});let bc=Ct(d.nodeName);if(xc(bc,Mi,Ut)){if(oc&&(Mi==="id"||Mi==="name")&&($a(Ot,d),Ut=Dg+Ut),Pt&&typeof Tn=="object"&&typeof Tn.getAttributeType=="function"&&!Wt)switch(Tn.getAttributeType(bc,Mi)){case"TrustedHTML":{Ut=Pt.createHTML(Ut);break}case"TrustedScriptURL":{Ut=Pt.createScriptURL(Ut);break}}try{Wt?d.setAttributeNS(Wt,Ot,Ut):d.setAttribute(Ot,Ut),h(N.removed)}catch(Cc){}}}Ce("afterSanitizeAttributes",d,null)},Ug=function W(d){let w=null,R=dc(d);for(Ce("beforeSanitizeShadowDOM",d,null);w=R.nextNode();)Ce("uponSanitizeShadowNode",w,null),!gc(w)&&(w.content instanceof _e&&W(w.content),_c(w));Ce("afterSanitizeShadowDOM",d,null)};return N.sanitize=function(W){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=null,R=null,ot=null,Et=null;if(Da=!W,Da&&(W="<!-->"),typeof W!="string"&&!mc(W))if(typeof W.toString=="function"){if(W=W.toString(),typeof W!="string")throw E("dirty is not a string, aborting")}else throw E("toString is not a function");if(!N.isSupported)return W;if(La||Ra(d),N.removed=[],typeof W=="string"&&(Ai=!1),Ai){if(W.nodeName){let or=Ct(W.nodeName);if(!_t[or]||Fi[or])throw E("root node is forbidden and cannot be sanitized in-place")}}else if(W instanceof Ta)w=pc("<!---->"),R=w.ownerDocument.importNode(W,!0),R.nodeType===1&&R.nodeName==="BODY"||R.nodeName==="HTML"?w=R:w.appendChild(R);else{if(!Rr&&!Nr&&!rr&&W.indexOf("<")===-1)return Pt&&kn?Pt.createHTML(W):W;if(w=pc(W),!w)return Rr?null:kn?Bi:""}w&&Ea&&nr(w.firstChild);let Ot=dc(Ai?W:w);for(;ot=Ot.nextNode();)gc(ot)||(ot.content instanceof _e&&Ug(ot.content),_c(ot));if(Ai)return W;if(Rr){if(Sn)for(Et=Ag.call(w.ownerDocument);w.firstChild;)Et.appendChild(w.firstChild);else Et=w;return(bt.shadowroot||bt.shadowrootmode)&&(Et=Lg.call(J,Et,!0)),Et}let Wt=rr?w.outerHTML:w.innerHTML;return rr&&_t["!doctype"]&&w.ownerDocument&&w.ownerDocument.doctype&&w.ownerDocument.doctype.name&&M(O,w.ownerDocument.doctype.name)&&(Wt="<!DOCTYPE "+w.ownerDocument.doctype.name+`>
`+Wt),Nr&&u([wa,Ba,Fa],or=>{Wt=v(Wt,or," ")}),Pt&&kn?Pt.createHTML(Wt):Wt},N.setConfig=function(){let W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ra(W),La=!0},N.clearConfig=function(){qr=null,La=!1},N.isValidAttribute=function(W,d,w){qr||Ra({});let R=Ct(W),ot=Ct(d);return xc(R,ot,w)},N.addHook=function(W,d){typeof d=="function"&&(le[W]=le[W]||[],f(le[W],d))},N.removeHook=function(W){if(le[W])return h(le[W])},N.removeHooks=function(W){le[W]&&(le[W]=[])},N.removeAllHooks=function(){le={}},N}var it=wt();return it})});function Tc(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=Array.from(typeof t=="string"?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var n=i.reduce(function(s,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?s.concat(c.map(function(u){var h,f;return(f=(h=u.match(/[\t ]/g))===null||h===void 0?void 0:h.length)!==null&&f!==void 0?f:0})):s},[]);if(n.length){var o=new RegExp(`
[ ]{`+Math.min.apply(Math,n)+"}","g");i=i.map(function(s){return s.replace(o,`
`)})}i[0]=i[0].replace(/^\r?\n/,"");var a=i[0];return e.forEach(function(s,l){var c=a.match(/(?:^|\n)( *)$/),u=c?c[1]:"",h=s;typeof s=="string"&&s.includes(`
`)&&(h=String(s).split(`
`).map(function(f,p){return p===0?f:""+u+f}).join(`
`)),a+=h+i[l+1]}),a}function kc(t,e){let r;if(e===void 0)for(let i of t)i!=null&&(r<i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(r<n||r===void 0&&n>=n)&&(r=n)}return r}function wc(t,e){let r;if(e===void 0)for(let i of t)i!=null&&(r>i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(r>n||r===void 0&&n>=n)&&(r=n)}return r}function ar(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ha(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function sr(t){let e,r,i;t.length!==2?(e=ar,r=(s,l)=>ar(t(s),l),i=(s,l)=>t(s)-l):(e=t===ar||t===Ha?t:Jg,r=t,i=t);function n(s,l,c=0,u=s.length){if(c<u){if(e(l,l)!==0)return u;do{let h=c+u>>>1;r(s[h],l)<0?c=h+1:u=h}while(c<u)}return c}function o(s,l,c=0,u=s.length){if(c<u){if(e(l,l)!==0)return u;do{let h=c+u>>>1;r(s[h],l)<=0?c=h+1:u=h}while(c<u)}return c}function a(s,l,c=0,u=s.length){let h=n(s,l,c,u-1);return h>c&&i(s[h-1],l)>-i(s[h],l)?h-1:h}return{left:n,center:a,right:o}}function Jg(){return 0}function Ya(t){return t===null?NaN:+t}var Bc=sr(ar),Fc=Bc.right,t0=Bc.left,e0=sr(Ya).center,ja=Fc;var Wr=class extends Map{constructor(e,r=n0){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(let[i,n]of e)this.set(i,n)}get(e){return super.get(Ac(this,e))}has(e){return super.has(Ac(this,e))}set(e,r){return super.set(r0(this,e),r)}delete(e){return super.delete(i0(this,e))}};function Ac({_intern:t,_key:e},r){let i=e(r);return t.has(i)?t.get(i):r}function r0({_intern:t,_key:e},r){let i=e(r);return t.has(i)?t.get(i):(t.set(i,r),r)}function i0({_intern:t,_key:e},r){let i=e(r);return t.has(i)&&(r=t.get(i),t.delete(i)),r}function n0(t){return t!==null&&typeof t=="object"?t.valueOf():t}var o0=Math.sqrt(50),a0=Math.sqrt(10),s0=Math.sqrt(2);function Mn(t,e,r){let i=(e-t)/Math.max(0,r),n=Math.floor(Math.log10(i)),o=i/Math.pow(10,n),a=o>=o0?10:o>=a0?5:o>=s0?2:1,s,l,c;return n<0?(c=Math.pow(10,-n)/a,s=Math.round(t*c),l=Math.round(e*c),s/c<t&&++s,l/c>e&&--l,c=-c):(c=Math.pow(10,n)*a,s=Math.round(t/c),l=Math.round(e/c),s*c<t&&++s,l*c>e&&--l),l<s&&.5<=r&&r<2?Mn(t,e,r*2):[s,l,c]}function Ln(t,e,r){if(e=+e,t=+t,r=+r,!(r>0))return[];if(t===e)return[t];let i=e<t,[n,o,a]=i?Mn(e,t,r):Mn(t,e,r);if(!(o>=n))return[];let s=o-n+1,l=new Array(s);if(i)if(a<0)for(let c=0;c<s;++c)l[c]=(o-c)/-a;else for(let c=0;c<s;++c)l[c]=(o-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(n+c)/-a;else for(let c=0;c<s;++c)l[c]=(n+c)*a;return l}function Li(t,e,r){return e=+e,t=+t,r=+r,Mn(t,e,r)[2]}function Ur(t,e,r){e=+e,t=+t,r=+r;let i=e<t,n=i?Li(e,t,r):Li(t,e,r);return(i?-1:1)*(n<0?1/-n:n)}function Mc(t){return t}var On=1,Ga=2,Va=3,En=4,Lc=1e-6;function l0(t){return"translate("+t+",0)"}function c0(t){return"translate(0,"+t+")"}function u0(t){return e=>+t(e)}function h0(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function f0(){return!this.__axis}function Ec(t,e){var r=[],i=null,n=null,o=6,a=6,s=3,l=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,c=t===On||t===En?-1:1,u=t===En||t===Ga?"x":"y",h=t===On||t===Va?l0:c0;function f(p){var x=i==null?e.ticks?e.ticks.apply(e,r):e.domain():i,b=n==null?e.tickFormat?e.tickFormat.apply(e,r):Mc:n,v=Math.max(o,0)+s,B=e.range(),T=+B[0]+l,M=+B[B.length-1]+l,E=(e.bandwidth?h0:u0)(e.copy(),l),I=p.selection?p.selection():p,F=I.selectAll(".domain").data([null]),y=I.selectAll(".tick").data(x,e).order(),$=y.exit(),et=y.enter().append("g").attr("class","tick"),rt=y.select("line"),C=y.select("text");F=F.merge(F.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),y=y.merge(et),rt=rt.merge(et.append("line").attr("stroke","currentColor").attr(u+"2",c*o)),C=C.merge(et.append("text").attr("fill","currentColor").attr(u,c*v).attr("dy",t===On?"0em":t===Va?"0.71em":"0.32em")),p!==I&&(F=F.transition(p),y=y.transition(p),rt=rt.transition(p),C=C.transition(p),$=$.transition(p).attr("opacity",Lc).attr("transform",function(_){return isFinite(_=E(_))?h(_+l):this.getAttribute("transform")}),et.attr("opacity",Lc).attr("transform",function(_){var g=this.parentNode.__axis;return h((g&&isFinite(g=g(_))?g:E(_))+l)})),$.remove(),F.attr("d",t===En||t===Ga?a?"M"+c*a+","+T+"H"+l+"V"+M+"H"+c*a:"M"+l+","+T+"V"+M:a?"M"+T+","+c*a+"V"+l+"H"+M+"V"+c*a:"M"+T+","+l+"H"+M),y.attr("opacity",1).attr("transform",function(_){return h(E(_)+l)}),rt.attr(u+"2",c*o),C.attr(u,c*v).text(b),I.filter(f0).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Ga?"start":t===En?"end":"middle"),I.each(function(){this.__axis=E})}return f.scale=function(p){return arguments.length?(e=p,f):e},f.ticks=function(){return r=Array.from(arguments),f},f.tickArguments=function(p){return arguments.length?(r=p==null?[]:Array.from(p),f):r.slice()},f.tickValues=function(p){return arguments.length?(i=p==null?null:Array.from(p),f):i&&i.slice()},f.tickFormat=function(p){return arguments.length?(n=p,f):n},f.tickSize=function(p){return arguments.length?(o=a=+p,f):o},f.tickSizeInner=function(p){return arguments.length?(o=+p,f):o},f.tickSizeOuter=function(p){return arguments.length?(a=+p,f):a},f.tickPadding=function(p){return arguments.length?(s=+p,f):s},f.offset=function(p){return arguments.length?(l=+p,f):l},f}function p0(t){return Ec(On,t)}function d0(t){return Ec(Va,t)}function m0(){}function lr(t){return t==null?m0:function(){return this.querySelector(t)}}function Oc(t){typeof t!="function"&&(t=lr(t));for(var e=this._groups,r=e.length,i=new Array(r),n=0;n<r;++n)for(var o=e[n],a=o.length,s=i[n]=new Array(a),l,c,u=0;u<a;++u)(l=o[u])&&(c=t.call(l,l.__data__,u,o))&&("__data__"in l&&(c.__data__=l.__data__),s[u]=c);return new st(i,this._parents)}function Ei(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function g0(){return[]}function Oi(t){return t==null?g0:function(){return this.querySelectorAll(t)}}function x0(t){return function(){return Ei(t.apply(this,arguments))}}function Ic(t){typeof t=="function"?t=x0(t):t=Oi(t);for(var e=this._groups,r=e.length,i=[],n=[],o=0;o<r;++o)for(var a=e[o],s=a.length,l,c=0;c<s;++c)(l=a[c])&&(i.push(t.call(l,l.__data__,c,a)),n.push(l));return new st(i,n)}function Ii(t){return function(){return this.matches(t)}}function In(t){return function(e){return e.matches(t)}}var y0=Array.prototype.find;function _0(t){return function(){return y0.call(this.children,t)}}function b0(){return this.firstElementChild}function Dc(t){return this.select(t==null?b0:_0(typeof t=="function"?t:In(t)))}var C0=Array.prototype.filter;function T0(){return Array.from(this.children)}function v0(t){return function(){return C0.call(this.children,t)}}function Nc(t){return this.selectAll(t==null?T0:v0(typeof t=="function"?t:In(t)))}function Rc(t){typeof t!="function"&&(t=Ii(t));for(var e=this._groups,r=e.length,i=new Array(r),n=0;n<r;++n)for(var o=e[n],a=o.length,s=i[n]=[],l,c=0;c<a;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&s.push(l);return new st(i,this._parents)}function Dn(t){return new Array(t.length)}function Pc(){return new st(this._enter||this._groups.map(Dn),this._parents)}function Di(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Di.prototype={constructor:Di,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function $c(t){return function(){return t}}function S0(t,e,r,i,n,o){for(var a=0,s,l=e.length,c=o.length;a<c;++a)(s=e[a])?(s.__data__=o[a],i[a]=s):r[a]=new Di(t,o[a]);for(;a<l;++a)(s=e[a])&&(n[a]=s)}function k0(t,e,r,i,n,o,a){var s,l,c=new Map,u=e.length,h=o.length,f=new Array(u),p;for(s=0;s<u;++s)(l=e[s])&&(f[s]=p=a.call(l,l.__data__,s,e)+"",c.has(p)?n[s]=l:c.set(p,l));for(s=0;s<h;++s)p=a.call(t,o[s],s,o)+"",(l=c.get(p))?(i[s]=l,l.__data__=o[s],c.delete(p)):r[s]=new Di(t,o[s]);for(s=0;s<u;++s)(l=e[s])&&c.get(f[s])===l&&(n[s]=l)}function w0(t){return t.__data__}function zc(t,e){if(!arguments.length)return Array.from(this,w0);var r=e?k0:S0,i=this._parents,n=this._groups;typeof t!="function"&&(t=$c(t));for(var o=n.length,a=new Array(o),s=new Array(o),l=new Array(o),c=0;c<o;++c){var u=i[c],h=n[c],f=h.length,p=B0(t.call(u,u&&u.__data__,c,i)),x=p.length,b=s[c]=new Array(x),v=a[c]=new Array(x),B=l[c]=new Array(f);r(u,h,b,v,B,p,e);for(var T=0,M=0,E,I;T<x;++T)if(E=b[T]){for(T>=M&&(M=T+1);!(I=v[M])&&++M<x;);E._next=I||null}}return a=new st(a,i),a._enter=s,a._exit=l,a}function B0(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function qc(){return new st(this._exit||this._groups.map(Dn),this._parents)}function Wc(t,e,r){var i=this.enter(),n=this,o=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(n=e(n),n&&(n=n.selection())),r==null?o.remove():r(o),i&&n?i.merge(n).order():n}function Uc(t){for(var e=t.selection?t.selection():t,r=this._groups,i=e._groups,n=r.length,o=i.length,a=Math.min(n,o),s=new Array(n),l=0;l<a;++l)for(var c=r[l],u=i[l],h=c.length,f=s[l]=new Array(h),p,x=0;x<h;++x)(p=c[x]||u[x])&&(f[x]=p);for(;l<n;++l)s[l]=r[l];return new st(s,this._parents)}function Hc(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var i=t[e],n=i.length-1,o=i[n],a;--n>=0;)(a=i[n])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function Yc(t){t||(t=F0);function e(h,f){return h&&f?t(h.__data__,f.__data__):!h-!f}for(var r=this._groups,i=r.length,n=new Array(i),o=0;o<i;++o){for(var a=r[o],s=a.length,l=n[o]=new Array(s),c,u=0;u<s;++u)(c=a[u])&&(l[u]=c);l.sort(e)}return new st(n,this._parents).order()}function F0(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function jc(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Gc(){return Array.from(this)}function Vc(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var i=t[e],n=0,o=i.length;n<o;++n){var a=i[n];if(a)return a}return null}function Xc(){let t=0;for(let e of this)++t;return t}function Kc(){return!this.node()}function Zc(t){for(var e=this._groups,r=0,i=e.length;r<i;++r)for(var n=e[r],o=0,a=n.length,s;o<a;++o)(s=n[o])&&t.call(s,s.__data__,o,n);return this}var Nn="http://www.w3.org/1999/xhtml",Xa={svg:"http://www.w3.org/2000/svg",xhtml:Nn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Te(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Xa.hasOwnProperty(e)?{space:Xa[e],local:t}:t}function A0(t){return function(){this.removeAttribute(t)}}function M0(t){return function(){this.removeAttributeNS(t.space,t.local)}}function L0(t,e){return function(){this.setAttribute(t,e)}}function E0(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function O0(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function I0(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function Qc(t,e){var r=Te(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((e==null?r.local?M0:A0:typeof e=="function"?r.local?I0:O0:r.local?E0:L0)(r,e))}function Rn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function D0(t){return function(){this.style.removeProperty(t)}}function N0(t,e,r){return function(){this.style.setProperty(t,e,r)}}function R0(t,e,r){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,r)}}function Jc(t,e,r){return arguments.length>1?this.each((e==null?D0:typeof e=="function"?R0:N0)(t,e,r==null?"":r)):De(this.node(),t)}function De(t,e){return t.style.getPropertyValue(e)||Rn(t).getComputedStyle(t,null).getPropertyValue(e)}function P0(t){return function(){delete this[t]}}function $0(t,e){return function(){this[t]=e}}function z0(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function tu(t,e){return arguments.length>1?this.each((e==null?P0:typeof e=="function"?z0:$0)(t,e)):this.node()[t]}function eu(t){return t.trim().split(/^|\s+/)}function Ka(t){return t.classList||new ru(t)}function ru(t){this._node=t,this._names=eu(t.getAttribute("class")||"")}ru.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function iu(t,e){for(var r=Ka(t),i=-1,n=e.length;++i<n;)r.add(e[i])}function nu(t,e){for(var r=Ka(t),i=-1,n=e.length;++i<n;)r.remove(e[i])}function q0(t){return function(){iu(this,t)}}function W0(t){return function(){nu(this,t)}}function U0(t,e){return function(){(e.apply(this,arguments)?iu:nu)(this,t)}}function ou(t,e){var r=eu(t+"");if(arguments.length<2){for(var i=Ka(this.node()),n=-1,o=r.length;++n<o;)if(!i.contains(r[n]))return!1;return!0}return this.each((typeof e=="function"?U0:e?q0:W0)(r,e))}function H0(){this.textContent=""}function Y0(t){return function(){this.textContent=t}}function j0(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function au(t){return arguments.length?this.each(t==null?H0:(typeof t=="function"?j0:Y0)(t)):this.node().textContent}function G0(){this.innerHTML=""}function V0(t){return function(){this.innerHTML=t}}function X0(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function su(t){return arguments.length?this.each(t==null?G0:(typeof t=="function"?X0:V0)(t)):this.node().innerHTML}function K0(){this.nextSibling&&this.parentNode.appendChild(this)}function lu(){return this.each(K0)}function Z0(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function cu(){return this.each(Z0)}function Q0(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===Nn&&e.documentElement.namespaceURI===Nn?e.createElement(t):e.createElementNS(r,t)}}function J0(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Pn(t){var e=Te(t);return(e.local?J0:Q0)(e)}function uu(t){var e=typeof t=="function"?t:Pn(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function tx(){return null}function hu(t,e){var r=typeof t=="function"?t:Pn(t),i=e==null?tx:typeof e=="function"?e:lr(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function ex(){var t=this.parentNode;t&&t.removeChild(this)}function fu(){return this.each(ex)}function rx(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ix(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function pu(t){return this.select(t?ix:rx)}function du(t){return arguments.length?this.property("__data__",t):this.node().__data__}function nx(t){return function(e){t.call(this,e,this.__data__)}}function ox(t){return t.trim().split(/^|\s+/).map(function(e){var r="",i=e.indexOf(".");return i>=0&&(r=e.slice(i+1),e=e.slice(0,i)),{type:e,name:r}})}function ax(t){return function(){var e=this.__on;if(e){for(var r=0,i=-1,n=e.length,o;r<n;++r)o=e[r],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++i]=o;++i?e.length=i:delete this.__on}}}function sx(t,e,r){return function(){var i=this.__on,n,o=nx(e);if(i){for(var a=0,s=i.length;a<s;++a)if((n=i[a]).type===t.type&&n.name===t.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=o,n.options=r),n.value=e;return}}this.addEventListener(t.type,o,r),n={type:t.type,name:t.name,value:e,listener:o,options:r},i?i.push(n):this.__on=[n]}}function mu(t,e,r){var i=ox(t+""),n,o=i.length,a;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,c=s.length,u;l<c;++l)for(n=0,u=s[l];n<o;++n)if((a=i[n]).type===u.type&&a.name===u.name)return u.value}return}for(s=e?sx:ax,n=0;n<o;++n)this.each(s(i[n],e,r));return this}function gu(t,e,r){var i=Rn(t),n=i.CustomEvent;typeof n=="function"?n=new n(e,r):(n=i.document.createEvent("Event"),r?(n.initEvent(e,r.bubbles,r.cancelable),n.detail=r.detail):n.initEvent(e,!1,!1)),t.dispatchEvent(n)}function lx(t,e){return function(){return gu(this,t,e)}}function cx(t,e){return function(){return gu(this,t,e.apply(this,arguments))}}function xu(t,e){return this.each((typeof e=="function"?cx:lx)(t,e))}function*yu(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var i=t[e],n=0,o=i.length,a;n<o;++n)(a=i[n])&&(yield a)}var Ni=[null];function st(t,e){this._groups=t,this._parents=e}function _u(){return new st([[document.documentElement]],Ni)}function ux(){return this}st.prototype=_u.prototype={constructor:st,select:Oc,selectAll:Ic,selectChild:Dc,selectChildren:Nc,filter:Rc,data:zc,enter:Pc,exit:qc,join:Wc,merge:Uc,selection:ux,order:Hc,sort:Yc,call:jc,nodes:Gc,node:Vc,size:Xc,empty:Kc,each:Zc,attr:Qc,style:Jc,property:tu,classed:ou,text:au,html:su,raise:lu,lower:cu,append:uu,insert:hu,remove:fu,clone:pu,datum:du,on:mu,dispatch:xu,[Symbol.iterator]:yu};var ve=_u;function Ht(t){return typeof t=="string"?new st([[document.querySelector(t)]],[document.documentElement]):new st([[t]],Ni)}function hx(t){return typeof t=="string"?new st([document.querySelectorAll(t)],[document.documentElement]):new st([Ei(t)],Ni)}function cr(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Hr(t,e){var r=Object.create(t.prototype);for(var i in e)r[i]=e[i];return r}function Ne(){}var Ri=.7,qn=1/Ri,Yr="\\s*([+-]?\\d+)\\s*",Pi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",he="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",fx=/^#([0-9a-f]{3,8})$/,px=new RegExp(`^rgb\\(${Yr},${Yr},${Yr}\\)$`),dx=new RegExp(`^rgb\\(${he},${he},${he}\\)$`),mx=new RegExp(`^rgba\\(${Yr},${Yr},${Yr},${Pi}\\)$`),gx=new RegExp(`^rgba\\(${he},${he},${he},${Pi}\\)$`),xx=new RegExp(`^hsl\\(${Pi},${he},${he}\\)$`),yx=new RegExp(`^hsla\\(${Pi},${he},${he},${Pi}\\)$`),bu={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};cr(Ne,re,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Cu,formatHex:Cu,formatHex8:_x,formatHsl:bx,formatRgb:Tu,toString:Tu});function Cu(){return this.rgb().formatHex()}function _x(){return this.rgb().formatHex8()}function bx(){return Fu(this).formatHsl()}function Tu(){return this.rgb().formatRgb()}function re(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=fx.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?vu(e):r===3?new Bt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?$n(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?$n(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=px.exec(t))?new Bt(e[1],e[2],e[3],1):(e=dx.exec(t))?new Bt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=mx.exec(t))?$n(e[1],e[2],e[3],e[4]):(e=gx.exec(t))?$n(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=xx.exec(t))?wu(e[1],e[2]/100,e[3]/100,1):(e=yx.exec(t))?wu(e[1],e[2]/100,e[3]/100,e[4]):bu.hasOwnProperty(t)?vu(bu[t]):t==="transparent"?new Bt(NaN,NaN,NaN,0):null}function vu(t){return new Bt(t>>16&255,t>>8&255,t&255,1)}function $n(t,e,r,i){return i<=0&&(t=e=r=NaN),new Bt(t,e,r,i)}function Qa(t){return t instanceof Ne||(t=re(t)),t?(t=t.rgb(),new Bt(t.r,t.g,t.b,t.opacity)):new Bt}function jr(t,e,r,i){return arguments.length===1?Qa(t):new Bt(t,e,r,i==null?1:i)}function Bt(t,e,r,i){this.r=+t,this.g=+e,this.b=+r,this.opacity=+i}cr(Bt,jr,Hr(Ne,{brighter(t){return t=t==null?qn:Math.pow(qn,t),new Bt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ri:Math.pow(Ri,t),new Bt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Bt(hr(this.r),hr(this.g),hr(this.b),Wn(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:Su,formatHex:Su,formatHex8:Cx,formatRgb:ku,toString:ku}));function Su(){return`#${ur(this.r)}${ur(this.g)}${ur(this.b)}`}function Cx(){return`#${ur(this.r)}${ur(this.g)}${ur(this.b)}${ur((isNaN(this.opacity)?1:this.opacity)*255)}`}function ku(){let t=Wn(this.opacity);return`${t===1?"rgb(":"rgba("}${hr(this.r)}, ${hr(this.g)}, ${hr(this.b)}${t===1?")":`, ${t})`}`}function Wn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function hr(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ur(t){return t=hr(t),(t<16?"0":"")+t.toString(16)}function wu(t,e,r,i){return i<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new ee(t,e,r,i)}function Fu(t){if(t instanceof ee)return new ee(t.h,t.s,t.l,t.opacity);if(t instanceof Ne||(t=re(t)),!t)return new ee;if(t instanceof ee)return t;t=t.rgb();var e=t.r/255,r=t.g/255,i=t.b/255,n=Math.min(e,r,i),o=Math.max(e,r,i),a=NaN,s=o-n,l=(o+n)/2;return s?(e===o?a=(r-i)/s+(r<i)*6:r===o?a=(i-e)/s+2:a=(e-r)/s+4,s/=l<.5?o+n:2-o-n,a*=60):s=l>0&&l<1?0:a,new ee(a,s,l,t.opacity)}function Au(t,e,r,i){return arguments.length===1?Fu(t):new ee(t,e,r,i==null?1:i)}function ee(t,e,r,i){this.h=+t,this.s=+e,this.l=+r,this.opacity=+i}cr(ee,Au,Hr(Ne,{brighter(t){return t=t==null?qn:Math.pow(qn,t),new ee(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ri:Math.pow(Ri,t),new ee(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*e,n=2*r-i;return new Bt(Za(t>=240?t-240:t+120,n,i),Za(t,n,i),Za(t<120?t+240:t-120,n,i),this.opacity)},clamp(){return new ee(Bu(this.h),zn(this.s),zn(this.l),Wn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=Wn(this.opacity);return`${t===1?"hsl(":"hsla("}${Bu(this.h)}, ${zn(this.s)*100}%, ${zn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Bu(t){return t=(t||0)%360,t<0?t+360:t}function zn(t){return Math.max(0,Math.min(1,t||0))}function Za(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}var Mu=Math.PI/180,Lu=180/Math.PI;var Un=18,Eu=.96422,Ou=1,Iu=.82521,Du=4/29,Gr=6/29,Nu=3*Gr*Gr,Tx=Gr*Gr*Gr;function Ru(t){if(t instanceof fe)return new fe(t.l,t.a,t.b,t.opacity);if(t instanceof Se)return Pu(t);t instanceof Bt||(t=Qa(t));var e=rs(t.r),r=rs(t.g),i=rs(t.b),n=Ja((.2225045*e+.7168786*r+.0606169*i)/Ou),o,a;return e===r&&r===i?o=a=n:(o=Ja((.4360747*e+.3850649*r+.1430804*i)/Eu),a=Ja((.0139322*e+.0971045*r+.7141733*i)/Iu)),new fe(116*n-16,500*(o-n),200*(n-a),t.opacity)}function is(t,e,r,i){return arguments.length===1?Ru(t):new fe(t,e,r,i==null?1:i)}function fe(t,e,r,i){this.l=+t,this.a=+e,this.b=+r,this.opacity=+i}cr(fe,is,Hr(Ne,{brighter(t){return new fe(this.l+Un*(t==null?1:t),this.a,this.b,this.opacity)},darker(t){return new fe(this.l-Un*(t==null?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=Eu*ts(e),t=Ou*ts(t),r=Iu*ts(r),new Bt(es(3.1338561*e-1.6168667*t-.4906146*r),es(-.9787684*e+1.9161415*t+.033454*r),es(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));function Ja(t){return t>Tx?Math.pow(t,1/3):t/Nu+Du}function ts(t){return t>Gr?t*t*t:Nu*(t-Du)}function es(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function rs(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function vx(t){if(t instanceof Se)return new Se(t.h,t.c,t.l,t.opacity);if(t instanceof fe||(t=Ru(t)),t.a===0&&t.b===0)return new Se(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Lu;return new Se(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function $i(t,e,r,i){return arguments.length===1?vx(t):new Se(t,e,r,i==null?1:i)}function Se(t,e,r,i){this.h=+t,this.c=+e,this.l=+r,this.opacity=+i}function Pu(t){if(isNaN(t.h))return new fe(t.l,0,0,t.opacity);var e=t.h*Mu;return new fe(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}cr(Se,$i,Hr(Ne,{brighter(t){return new Se(this.h,this.c,this.l+Un*(t==null?1:t),this.opacity)},darker(t){return new Se(this.h,this.c,this.l-Un*(t==null?1:t),this.opacity)},rgb(){return Pu(this).rgb()}}));var Vr=t=>()=>t;function $u(t,e){return function(r){return t+r*e}}function Sx(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(i){return Math.pow(t+i*e,r)}}function zu(t,e){var r=e-t;return r?$u(t,r>180||r<-180?r-360*Math.round(r/360):r):Vr(isNaN(t)?e:t)}function qu(t){return(t=+t)==1?ke:function(e,r){return r-e?Sx(e,r,t):Vr(isNaN(e)?r:e)}}function ke(t,e){var r=e-t;return r?$u(t,r):Vr(isNaN(t)?e:t)}function Wu(t){return function(e,r){var i=t((e=$i(e)).h,(r=$i(r)).h),n=ke(e.c,r.c),o=ke(e.l,r.l),a=ke(e.opacity,r.opacity);return function(s){return e.h=i(s),e.c=n(s),e.l=o(s),e.opacity=a(s),e+""}}}var kx=Wu(zu),wx=Wu(ke);function ns(t,e,r,i,n){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*r+(1+3*t+3*o-3*a)*i+a*n)/6}function Uu(t){var e=t.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),n=t[i],o=t[i+1],a=i>0?t[i-1]:2*n-o,s=i<e-1?t[i+2]:2*o-n;return ns((r-i/e)*e,a,n,o,s)}}function Hu(t){var e=t.length;return function(r){var i=Math.floor(((r%=1)<0?++r:r)*e),n=t[(i+e-1)%e],o=t[i%e],a=t[(i+1)%e],s=t[(i+2)%e];return ns((r-i/e)*e,n,o,a,s)}}var fr=function t(e){var r=qu(e);function i(n,o){var a=r((n=jr(n)).r,(o=jr(o)).r),s=r(n.g,o.g),l=r(n.b,o.b),c=ke(n.opacity,o.opacity);return function(u){return n.r=a(u),n.g=s(u),n.b=l(u),n.opacity=c(u),n+""}}return i.gamma=t,i}(1);function Yu(t){return function(e){var r=e.length,i=new Array(r),n=new Array(r),o=new Array(r),a,s;for(a=0;a<r;++a)s=jr(e[a]),i[a]=s.r||0,n[a]=s.g||0,o[a]=s.b||0;return i=t(i),n=t(n),o=t(o),s.opacity=1,function(l){return s.r=i(l),s.g=n(l),s.b=o(l),s+""}}}var Bx=Yu(Uu),Fx=Yu(Hu);function ju(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,i=e.slice(),n;return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function Gu(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Vu(t,e){var r=e?e.length:0,i=t?Math.min(r,t.length):0,n=new Array(i),o=new Array(r),a;for(a=0;a<i;++a)n[a]=pr(t[a],e[a]);for(;a<r;++a)o[a]=e[a];return function(s){for(a=0;a<i;++a)o[a]=n[a](s);return o}}function Xu(t,e){var r=new Date;return t=+t,e=+e,function(i){return r.setTime(t*(1-i)+e*i),r}}function Ft(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Ku(t,e){var r={},i={},n;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(n in e)n in t?r[n]=pr(t[n],e[n]):i[n]=e[n];return function(o){for(n in r)i[n]=r[n](o);return i}}var as=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,os=new RegExp(as.source,"g");function Ax(t){return function(){return t}}function Mx(t){return function(e){return t(e)+""}}function zi(t,e){var r=as.lastIndex=os.lastIndex=0,i,n,o,a=-1,s=[],l=[];for(t=t+"",e=e+"";(i=as.exec(t))&&(n=os.exec(e));)(o=n.index)>r&&(o=e.slice(r,o),s[a]?s[a]+=o:s[++a]=o),(i=i[0])===(n=n[0])?s[a]?s[a]+=n:s[++a]=n:(s[++a]=null,l.push({i:a,x:Ft(i,n)})),r=os.lastIndex;return r<e.length&&(o=e.slice(r),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?Mx(l[0].x):Ax(e):(e=l.length,function(c){for(var u=0,h;u<e;++u)s[(h=l[u]).i]=h.x(c);return s.join("")})}function pr(t,e){var r=typeof e,i;return e==null||r==="boolean"?Vr(e):(r==="number"?Ft:r==="string"?(i=re(e))?(e=i,fr):zi:e instanceof re?fr:e instanceof Date?Xu:Gu(e)?ju:Array.isArray(e)?Vu:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Ku:Ft)(t,e)}function ss(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}var Zu=180/Math.PI,Hn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ls(t,e,r,i,n,o){var a,s,l;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(l=t*r+e*i)&&(r-=t*l,i-=e*l),(s=Math.sqrt(r*r+i*i))&&(r/=s,i/=s,l/=s),t*i<e*r&&(t=-t,e=-e,l=-l,a=-a),{translateX:n,translateY:o,rotate:Math.atan2(e,t)*Zu,skewX:Math.atan(l)*Zu,scaleX:a,scaleY:s}}var Yn;function Qu(t){let e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Hn:ls(e.a,e.b,e.c,e.d,e.e,e.f)}function Ju(t){return t==null?Hn:(Yn||(Yn=document.createElementNS("http://www.w3.org/2000/svg","g")),Yn.setAttribute("transform",t),(t=Yn.transform.baseVal.consolidate())?(t=t.matrix,ls(t.a,t.b,t.c,t.d,t.e,t.f)):Hn)}function th(t,e,r,i){function n(c){return c.length?c.pop()+" ":""}function o(c,u,h,f,p,x){if(c!==h||u!==f){var b=p.push("translate(",null,e,null,r);x.push({i:b-4,x:Ft(c,h)},{i:b-2,x:Ft(u,f)})}else(h||f)&&p.push("translate("+h+e+f+r)}function a(c,u,h,f){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),f.push({i:h.push(n(h)+"rotate(",null,i)-2,x:Ft(c,u)})):u&&h.push(n(h)+"rotate("+u+i)}function s(c,u,h,f){c!==u?f.push({i:h.push(n(h)+"skewX(",null,i)-2,x:Ft(c,u)}):u&&h.push(n(h)+"skewX("+u+i)}function l(c,u,h,f,p,x){if(c!==h||u!==f){var b=p.push(n(p)+"scale(",null,",",null,")");x.push({i:b-4,x:Ft(c,h)},{i:b-2,x:Ft(u,f)})}else(h!==1||f!==1)&&p.push(n(p)+"scale("+h+","+f+")")}return function(c,u){var h=[],f=[];return c=t(c),u=t(u),o(c.translateX,c.translateY,u.translateX,u.translateY,h,f),a(c.rotate,u.rotate,h,f),s(c.skewX,u.skewX,h,f),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,h,f),c=u=null,function(p){for(var x=-1,b=f.length,v;++x<b;)h[(v=f[x]).i]=v.x(p);return h.join("")}}}var cs=th(Qu,"px, ","px)","deg)"),us=th(Ju,", ",")",")");function Xr(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}var hs=Symbol("implicit");function fs(){var t=new Wr,e=[],r=[],i=hs;function n(o){let a=t.get(o);if(a===void 0){if(i!==hs)return i;t.set(o,a=e.push(o)-1)}return r[a%r.length]}return n.domain=function(o){if(!arguments.length)return e.slice();e=[],t=new Wr;for(let a of o)t.has(a)||t.set(a,e.push(a)-1);return n},n.range=function(o){return arguments.length?(r=Array.from(o),n):r.slice()},n.unknown=function(o){return arguments.length?(i=o,n):i},n.copy=function(){return fs(e,r).unknown(i)},Xr.apply(n,arguments),n}function ps(t){return function(){return t}}function ds(t){return+t}var eh=[0,1];function Kr(t){return t}function ms(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:ps(isNaN(e)?NaN:.5)}function Lx(t,e){var r;return t>e&&(r=t,t=e,e=r),function(i){return Math.max(t,Math.min(e,i))}}function Ex(t,e,r){var i=t[0],n=t[1],o=e[0],a=e[1];return n<i?(i=ms(n,i),o=r(a,o)):(i=ms(i,n),o=r(o,a)),function(s){return o(i(s))}}function Ox(t,e,r){var i=Math.min(t.length,e.length)-1,n=new Array(i),o=new Array(i),a=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<i;)n[a]=ms(t[a],t[a+1]),o[a]=r(e[a],e[a+1]);return function(s){var l=ja(t,s,1,i)-1;return o[l](n[l](s))}}function jn(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Ix(){var t=eh,e=eh,r=pr,i,n,o,a=Kr,s,l,c;function u(){var f=Math.min(t.length,e.length);return a!==Kr&&(a=Lx(t[0],t[f-1])),s=f>2?Ox:Ex,l=c=null,h}function h(f){return f==null||isNaN(f=+f)?o:(l||(l=s(t.map(i),e,r)))(i(a(f)))}return h.invert=function(f){return a(n((c||(c=s(e,t.map(i),Ft)))(f)))},h.domain=function(f){return arguments.length?(t=Array.from(f,ds),u()):t.slice()},h.range=function(f){return arguments.length?(e=Array.from(f),u()):e.slice()},h.rangeRound=function(f){return e=Array.from(f),r=ss,u()},h.clamp=function(f){return arguments.length?(a=f?!0:Kr,u()):a!==Kr},h.interpolate=function(f){return arguments.length?(r=f,u()):r},h.unknown=function(f){return arguments.length?(o=f,h):o},function(f,p){return i=f,n=p,u()}}function qi(){return Ix()(Kr,Kr)}function rh(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function dr(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,i=t.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+t.slice(r+1)]}function pe(t){return t=dr(Math.abs(t)),t?t[1]:NaN}function ih(t,e){return function(r,i){for(var n=r.length,o=[],a=0,s=t[0],l=0;n>0&&s>0&&(l+s+1>i&&(s=Math.max(1,i-l)),o.push(r.substring(n-=s,n+s)),!((l+=s+1)>i));)s=t[a=(a+1)%t.length];return o.reverse().join(e)}}function nh(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var Dx=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Re(t){if(!(e=Dx.exec(t)))throw new Error("invalid format: "+t);var e;return new Gn({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Re.prototype=Gn.prototype;function Gn(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+""}Gn.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 oh(t){t:for(var e=t.length,r=1,i=-1,n;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":i===0&&(i=r),n=r;break;default:if(!+t[r])break t;i>0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(n+1):t}var gs;function ah(t,e){var r=dr(t,e);if(!r)return t+"";var i=r[0],n=r[1],o=n-(gs=Math.max(-8,Math.min(8,Math.floor(n/3)))*3)+1,a=i.length;return o===a?i:o>a?i+new Array(o-a+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+dr(t,Math.max(0,e+o-1))[0]}function xs(t,e){var r=dr(t,e);if(!r)return t+"";var i=r[0],n=r[1];return n<0?"0."+new Array(-n).join("0")+i:i.length>n+1?i.slice(0,n+1)+"."+i.slice(n+1):i+new Array(n-i.length+2).join("0")}var ys={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:rh,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>xs(t*100,e),r:xs,s:ah,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function _s(t){return t}var sh=Array.prototype.map,lh=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function ch(t){var e=t.grouping===void 0||t.thousands===void 0?_s:ih(sh.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",i=t.currency===void 0?"":t.currency[1]+"",n=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?_s:nh(sh.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"\u2212":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function c(h){h=Re(h);var f=h.fill,p=h.align,x=h.sign,b=h.symbol,v=h.zero,B=h.width,T=h.comma,M=h.precision,E=h.trim,I=h.type;I==="n"?(T=!0,I="g"):ys[I]||(M===void 0&&(M=12),E=!0,I="g"),(v||f==="0"&&p==="=")&&(v=!0,f="0",p="=");var F=b==="$"?r:b==="#"&&/[boxX]/.test(I)?"0"+I.toLowerCase():"",y=b==="$"?i:/[%p]/.test(I)?a:"",$=ys[I],et=/[defgprs%]/.test(I);M=M===void 0?6:/[gprs]/.test(I)?Math.max(1,Math.min(21,M)):Math.max(0,Math.min(20,M));function rt(C){var _=F,g=y,k,A,D;if(I==="c")g=$(C)+g,C="";else{C=+C;var P=C<0||1/C<0;if(C=isNaN(C)?l:$(Math.abs(C),M),E&&(C=oh(C)),P&&+C==0&&x!=="+"&&(P=!1),_=(P?x==="("?x:s:x==="-"||x==="("?"":x)+_,g=(I==="s"?lh[8+gs/3]:"")+g+(P&&x==="("?")":""),et){for(k=-1,A=C.length;++k<A;)if(D=C.charCodeAt(k),48>D||D>57){g=(D===46?n+C.slice(k+1):C.slice(k))+g,C=C.slice(0,k);break}}}T&&!v&&(C=e(C,1/0));var j=_.length+C.length+g.length,X=j<B?new Array(B-j+1).join(f):"";switch(T&&v&&(C=e(X+C,X.length?B-g.length:1/0),X=""),p){case"<":C=_+C+g+X;break;case"=":C=_+X+C+g;break;case"^":C=X.slice(0,j=X.length>>1)+_+C+g+X.slice(j);break;default:C=X+_+C+g;break}return o(C)}return rt.toString=function(){return h+""},rt}function u(h,f){var p=c((h=Re(h),h.type="f",h)),x=Math.max(-8,Math.min(8,Math.floor(pe(f)/3)))*3,b=Math.pow(10,-x),v=lh[8+x/3];return function(B){return p(b*B)+v}}return{format:c,formatPrefix:u}}var Vn,Xn,Kn;bs({thousands:",",grouping:[3],currency:["$",""]});function bs(t){return Vn=ch(t),Xn=Vn.format,Kn=Vn.formatPrefix,Vn}function Cs(t){return Math.max(0,-pe(Math.abs(t)))}function Ts(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(pe(e)/3)))*3-pe(Math.abs(t)))}function vs(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,pe(e)-pe(t))+1}function Ss(t,e,r,i){var n=Ur(t,e,r),o;switch(i=Re(i==null?",f":i),i.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return i.precision==null&&!isNaN(o=Ts(n,a))&&(i.precision=o),Kn(i,a)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(o=vs(n,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=o-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(o=Cs(n))&&(i.precision=o-(i.type==="%")*2);break}}return Xn(i)}function Nx(t){var e=t.domain;return t.ticks=function(r){var i=e();return Ln(i[0],i[i.length-1],r==null?10:r)},t.tickFormat=function(r,i){var n=e();return Ss(n[0],n[n.length-1],r==null?10:r,i)},t.nice=function(r){r==null&&(r=10);var i=e(),n=0,o=i.length-1,a=i[n],s=i[o],l,c,u=10;for(s<a&&(c=a,a=s,s=c,c=n,n=o,o=c);u-- >0;){if(c=Li(a,s,r),c===l)return i[n]=a,i[o]=s,e(i);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return t},t}function ks(){var t=qi();return t.copy=function(){return jn(t,ks())},Xr.apply(t,arguments),Nx(t)}var ws=new Date,Bs=new Date;function nt(t,e,r,i){function n(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}return n.floor=o=>(t(o=new Date(+o)),o),n.ceil=o=>(t(o=new Date(o-1)),e(o,1),t(o),o),n.round=o=>{let a=n(o),s=n.ceil(o);return o-a<s-o?a:s},n.offset=(o,a)=>(e(o=new Date(+o),a==null?1:Math.floor(a)),o),n.range=(o,a,s)=>{let l=[];if(o=n.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;let c;do l.push(c=new Date(+o)),e(o,s),t(o);while(c<o&&o<a);return l},n.filter=o=>nt(a=>{if(a>=a)for(;t(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;e(a,-1),!o(a););else for(;--s>=0;)for(;e(a,1),!o(a););}),r&&(n.count=(o,a)=>(ws.setTime(+o),Bs.setTime(+a),t(ws),t(Bs),Math.floor(r(ws,Bs))),n.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?n.filter(i?a=>i(a)%o===0:a=>n.count(0,a)%o===0):n)),n}var mr=nt(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);mr.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?nt(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):mr);var uh=mr.range;var de=nt(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*1e3)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),hh=de.range;var Zr=nt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getMinutes()),Rx=Zr.range,Zn=nt(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),Px=Zn.range;var Qr=nt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3-t.getMinutes()*6e4)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getHours()),$x=Qr.range,Qn=nt(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours()),zx=Qn.range;var we=nt(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1),qx=we.range,Ui=nt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),Wx=Ui.range,Jn=nt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5)),Ux=Jn.range;function yr(t){return nt(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}var Be=yr(0),Jr=yr(1),ph=yr(2),dh=yr(3),Pe=yr(4),mh=yr(5),gh=yr(6),xh=Be.range,Hx=Jr.range,Yx=ph.range,jx=dh.range,Gx=Pe.range,Vx=mh.range,Xx=gh.range;function _r(t){return nt(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/6048e5)}var br=_r(0),ti=_r(1),yh=_r(2),_h=_r(3),$e=_r(4),bh=_r(5),Ch=_r(6),Th=br.range,Kx=ti.range,Zx=yh.range,Qx=_h.range,Jx=$e.range,ty=bh.range,ey=Ch.range;var ei=nt(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),ry=ei.range,to=nt(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),iy=to.range;var Kt=nt(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Kt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:nt(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});var ny=Kt.range,ie=nt(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());ie.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:nt(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});var oy=ie.range;function Sh(t,e,r,i,n,o){let a=[[de,1,1e3],[de,5,5*1e3],[de,15,15*1e3],[de,30,30*1e3],[o,1,6e4],[o,5,5*6e4],[o,15,15*6e4],[o,30,30*6e4],[n,1,36e5],[n,3,3*36e5],[n,6,6*36e5],[n,12,12*36e5],[i,1,864e5],[i,2,2*864e5],[r,1,6048e5],[e,1,2592e6],[e,3,3*2592e6],[t,1,31536e6]];function s(c,u,h){let f=u<c;f&&([c,u]=[u,c]);let p=h&&typeof h.range=="function"?h:l(c,u,h),x=p?p.range(c,+u+1):[];return f?x.reverse():x}function l(c,u,h){let f=Math.abs(u-c)/h,p=sr(([,,v])=>v).right(a,f);if(p===a.length)return t.every(Ur(c/31536e6,u/31536e6,h));if(p===0)return mr.every(Math.max(Ur(c,u,h),1));let[x,b]=a[f/a[p-1][2]<a[p][2]/f?p-1:p];return x.every(b)}return[s,l]}var[sy,ly]=Sh(ie,to,br,Jn,Qn,Zn),[Fs,As]=Sh(Kt,ei,Be,we,Qr,Zr);function Ms(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Ls(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Hi(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function Es(t){var e=t.dateTime,r=t.date,i=t.time,n=t.periods,o=t.days,a=t.shortDays,s=t.months,l=t.shortMonths,c=Yi(n),u=ji(n),h=Yi(o),f=ji(o),p=Yi(a),x=ji(a),b=Yi(s),v=ji(s),B=Yi(l),T=ji(l),M={a:P,A:j,b:X,B:V,c:null,d:Mh,e:Mh,f:Ly,g:qy,G:Uy,H:Fy,I:Ay,j:My,L:Dh,m:Ey,M:Oy,p:at,q:St,Q:Oh,s:Ih,S:Iy,u:Dy,U:Ny,V:Ry,w:Py,W:$y,x:null,X:null,y:zy,Y:Wy,Z:Hy,"%":Eh},E={a:kt,A:Xt,b:mt,B:Nt,c:null,d:Lh,e:Lh,f:Vy,g:n_,G:a_,H:Yy,I:jy,j:Gy,L:Rh,m:Xy,M:Ky,p:ut,q:Lt,Q:Oh,s:Ih,S:Zy,u:Qy,U:Jy,V:t_,w:e_,W:r_,x:null,X:null,y:i_,Y:o_,Z:s_,"%":Eh},I={a:rt,A:C,b:_,B:g,c:k,d:Fh,e:Fh,f:Sy,g:Bh,G:wh,H:Ah,I:Ah,j:by,L:vy,m:_y,M:Cy,p:et,q:yy,Q:wy,s:By,S:Ty,u:py,U:dy,V:my,w:fy,W:gy,x:A,X:D,y:Bh,Y:wh,Z:xy,"%":ky};M.x=F(r,M),M.X=F(i,M),M.c=F(e,M),E.x=F(r,E),E.X=F(i,E),E.c=F(e,E);function F(O,G){return function(Z){var S=[],wt=-1,it=0,K=O.length,N,Q,J;for(Z instanceof Date||(Z=new Date(+Z));++wt<K;)O.charCodeAt(wt)===37&&(S.push(O.slice(it,wt)),(Q=kh[N=O.charAt(++wt)])!=null?N=O.charAt(++wt):Q=N==="e"?" ":"0",(J=G[N])&&(N=J(Z,Q)),S.push(N),it=wt+1);return S.push(O.slice(it,wt)),S.join("")}}function y(O,G){return function(Z){var S=Hi(1900,void 0,1),wt=$(S,O,Z+="",0),it,K;if(wt!=Z.length)return null;if("Q"in S)return new Date(S.Q);if("s"in S)return new Date(S.s*1e3+("L"in S?S.L:0));if(G&&!("Z"in S)&&(S.Z=0),"p"in S&&(S.H=S.H%12+S.p*12),S.m===void 0&&(S.m="q"in S?S.q:0),"V"in S){if(S.V<1||S.V>53)return null;"w"in S||(S.w=1),"Z"in S?(it=Ls(Hi(S.y,0,1)),K=it.getUTCDay(),it=K>4||K===0?ti.ceil(it):ti(it),it=Ui.offset(it,(S.V-1)*7),S.y=it.getUTCFullYear(),S.m=it.getUTCMonth(),S.d=it.getUTCDate()+(S.w+6)%7):(it=Ms(Hi(S.y,0,1)),K=it.getDay(),it=K>4||K===0?Jr.ceil(it):Jr(it),it=we.offset(it,(S.V-1)*7),S.y=it.getFullYear(),S.m=it.getMonth(),S.d=it.getDate()+(S.w+6)%7)}else("W"in S||"U"in S)&&("w"in S||(S.w="u"in S?S.u%7:"W"in S?1:0),K="Z"in S?Ls(Hi(S.y,0,1)).getUTCDay():Ms(Hi(S.y,0,1)).getDay(),S.m=0,S.d="W"in S?(S.w+6)%7+S.W*7-(K+5)%7:S.w+S.U*7-(K+6)%7);return"Z"in S?(S.H+=S.Z/100|0,S.M+=S.Z%100,Ls(S)):Ms(S)}}function $(O,G,Z,S){for(var wt=0,it=G.length,K=Z.length,N,Q;wt<it;){if(S>=K)return-1;if(N=G.charCodeAt(wt++),N===37){if(N=G.charAt(wt++),Q=I[N in kh?G.charAt(wt++):N],!Q||(S=Q(O,Z,S))<0)return-1}else if(N!=Z.charCodeAt(S++))return-1}return S}function et(O,G,Z){var S=c.exec(G.slice(Z));return S?(O.p=u.get(S[0].toLowerCase()),Z+S[0].length):-1}function rt(O,G,Z){var S=p.exec(G.slice(Z));return S?(O.w=x.get(S[0].toLowerCase()),Z+S[0].length):-1}function C(O,G,Z){var S=h.exec(G.slice(Z));return S?(O.w=f.get(S[0].toLowerCase()),Z+S[0].length):-1}function _(O,G,Z){var S=B.exec(G.slice(Z));return S?(O.m=T.get(S[0].toLowerCase()),Z+S[0].length):-1}function g(O,G,Z){var S=b.exec(G.slice(Z));return S?(O.m=v.get(S[0].toLowerCase()),Z+S[0].length):-1}function k(O,G,Z){return $(O,e,G,Z)}function A(O,G,Z){return $(O,r,G,Z)}function D(O,G,Z){return $(O,i,G,Z)}function P(O){return a[O.getDay()]}function j(O){return o[O.getDay()]}function X(O){return l[O.getMonth()]}function V(O){return s[O.getMonth()]}function at(O){return n[+(O.getHours()>=12)]}function St(O){return 1+~~(O.getMonth()/3)}function kt(O){return a[O.getUTCDay()]}function Xt(O){return o[O.getUTCDay()]}function mt(O){return l[O.getUTCMonth()]}function Nt(O){return s[O.getUTCMonth()]}function ut(O){return n[+(O.getUTCHours()>=12)]}function Lt(O){return 1+~~(O.getUTCMonth()/3)}return{format:function(O){var G=F(O+="",M);return G.toString=function(){return O},G},parse:function(O){var G=y(O+="",!1);return G.toString=function(){return O},G},utcFormat:function(O){var G=F(O+="",E);return G.toString=function(){return O},G},utcParse:function(O){var G=y(O+="",!0);return G.toString=function(){return O},G}}}var kh={"-":"",_:" ",0:"0"},Tt=/^\s*\d+/,cy=/^%/,uy=/[\\^$*+?|[\]().{}]/g;function tt(t,e,r){var i=t<0?"-":"",n=(i?-t:t)+"",o=n.length;return i+(o<r?new Array(r-o+1).join(e)+n:n)}function hy(t){return t.replace(uy,"\\$&")}function Yi(t){return new RegExp("^(?:"+t.map(hy).join("|")+")","i")}function ji(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function fy(t,e,r){var i=Tt.exec(e.slice(r,r+1));return i?(t.w=+i[0],r+i[0].length):-1}function py(t,e,r){var i=Tt.exec(e.slice(r,r+1));return i?(t.u=+i[0],r+i[0].length):-1}function dy(t,e,r){var i=Tt.exec(e.slice(r,r+2));return i?(t.U=+i[0],r+i[0].length):-1}function my(t,e,r){var i=Tt.exec(e.slice(r,r+2));return i?(t.V=+i[0],r+i[0].length):-1}function gy(t,e,r){var i=Tt.exec(e.slice(r,r+2));return i?(t.W=+i[0],r+i[0].length):-1}function wh(t,e,r){var i=Tt.exec(e.slice(r,r+4));return i?(t.y=+i[0],r+i[0].length):-1}function Bh(t,e,r){var i=Tt.exec(e.slice(r,r+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function xy(t,e,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function yy(t,e,r){var i=Tt.exec(e.slice(r,r+1));return i?(t.q=i[0]*3-3,r+i[0].length):-1}function _y(t,e,r){var i=Tt.exec(e.slice(r,r+2));return i?(t.m=i[0]-1,r+i[0].length):-1}function Fh(t,e,r){var i=Tt.exec(e.slice(r,r+2));return i?(t.d=+i[0],r+i[0].length):-1}function by(t,e,r){var i=Tt.exec(e.slice(r,r+3));return i?(t.m=0,t.d=+i[0],r+i[0].length):-1}function Ah(t,e,r){var i=Tt.exec(e.slice(r,r+2));return i?(t.H=+i[0],r+i[0].length):-1}function Cy(t,e,r){var i=Tt.exec(e.slice(r,r+2));return i?(t.M=+i[0],r+i[0].length):-1}function Ty(t,e,r){var i=Tt.exec(e.slice(r,r+2));return i?(t.S=+i[0],r+i[0].length):-1}function vy(t,e,r){var i=Tt.exec(e.slice(r,r+3));return i?(t.L=+i[0],r+i[0].length):-1}function Sy(t,e,r){var i=Tt.exec(e.slice(r,r+6));return i?(t.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function ky(t,e,r){var i=cy.exec(e.slice(r,r+1));return i?r+i[0].length:-1}function wy(t,e,r){var i=Tt.exec(e.slice(r));return i?(t.Q=+i[0],r+i[0].length):-1}function By(t,e,r){var i=Tt.exec(e.slice(r));return i?(t.s=+i[0],r+i[0].length):-1}function Mh(t,e){return tt(t.getDate(),e,2)}function Fy(t,e){return tt(t.getHours(),e,2)}function Ay(t,e){return tt(t.getHours()%12||12,e,2)}function My(t,e){return tt(1+we.count(Kt(t),t),e,3)}function Dh(t,e){return tt(t.getMilliseconds(),e,3)}function Ly(t,e){return Dh(t,e)+"000"}function Ey(t,e){return tt(t.getMonth()+1,e,2)}function Oy(t,e){return tt(t.getMinutes(),e,2)}function Iy(t,e){return tt(t.getSeconds(),e,2)}function Dy(t){var e=t.getDay();return e===0?7:e}function Ny(t,e){return tt(Be.count(Kt(t)-1,t),e,2)}function Nh(t){var e=t.getDay();return e>=4||e===0?Pe(t):Pe.ceil(t)}function Ry(t,e){return t=Nh(t),tt(Pe.count(Kt(t),t)+(Kt(t).getDay()===4),e,2)}function Py(t){return t.getDay()}function $y(t,e){return tt(Jr.count(Kt(t)-1,t),e,2)}function zy(t,e){return tt(t.getFullYear()%100,e,2)}function qy(t,e){return t=Nh(t),tt(t.getFullYear()%100,e,2)}function Wy(t,e){return tt(t.getFullYear()%1e4,e,4)}function Uy(t,e){var r=t.getDay();return t=r>=4||r===0?Pe(t):Pe.ceil(t),tt(t.getFullYear()%1e4,e,4)}function Hy(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+tt(e/60|0,"0",2)+tt(e%60,"0",2)}function Lh(t,e){return tt(t.getUTCDate(),e,2)}function Yy(t,e){return tt(t.getUTCHours(),e,2)}function jy(t,e){return tt(t.getUTCHours()%12||12,e,2)}function Gy(t,e){return tt(1+Ui.count(ie(t),t),e,3)}function Rh(t,e){return tt(t.getUTCMilliseconds(),e,3)}function Vy(t,e){return Rh(t,e)+"000"}function Xy(t,e){return tt(t.getUTCMonth()+1,e,2)}function Ky(t,e){return tt(t.getUTCMinutes(),e,2)}function Zy(t,e){return tt(t.getUTCSeconds(),e,2)}function Qy(t){var e=t.getUTCDay();return e===0?7:e}function Jy(t,e){return tt(br.count(ie(t)-1,t),e,2)}function Ph(t){var e=t.getUTCDay();return e>=4||e===0?$e(t):$e.ceil(t)}function t_(t,e){return t=Ph(t),tt($e.count(ie(t),t)+(ie(t).getUTCDay()===4),e,2)}function e_(t){return t.getUTCDay()}function r_(t,e){return tt(ti.count(ie(t)-1,t),e,2)}function i_(t,e){return tt(t.getUTCFullYear()%100,e,2)}function n_(t,e){return t=Ph(t),tt(t.getUTCFullYear()%100,e,2)}function o_(t,e){return tt(t.getUTCFullYear()%1e4,e,4)}function a_(t,e){var r=t.getUTCDay();return t=r>=4||r===0?$e(t):$e.ceil(t),tt(t.getUTCFullYear()%1e4,e,4)}function s_(){return"+0000"}function Eh(){return"%"}function Oh(t){return+t}function Ih(t){return Math.floor(+t/1e3)}var ri,eo,$h,zh,qh;Os({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 Os(t){return ri=Es(t),eo=ri.format,$h=ri.parse,zh=ri.utcFormat,qh=ri.utcParse,ri}function Is(t,e){t=t.slice();var r=0,i=t.length-1,n=t[r],o=t[i],a;return o<n&&(a=r,r=i,i=a,a=n,n=o,o=a),t[r]=e.floor(n),t[i]=e.ceil(o),t}function l_(t){return new Date(t)}function c_(t){return t instanceof Date?+t:+new Date(+t)}function Wh(t,e,r,i,n,o,a,s,l,c){var u=qi(),h=u.invert,f=u.domain,p=c(".%L"),x=c(":%S"),b=c("%I:%M"),v=c("%I %p"),B=c("%a %d"),T=c("%b %d"),M=c("%B"),E=c("%Y");function I(F){return(l(F)<F?p:s(F)<F?x:a(F)<F?b:o(F)<F?v:i(F)<F?n(F)<F?B:T:r(F)<F?M:E)(F)}return u.invert=function(F){return new Date(h(F))},u.domain=function(F){return arguments.length?f(Array.from(F,c_)):f().map(l_)},u.ticks=function(F){var y=f();return t(y[0],y[y.length-1],F==null?10:F)},u.tickFormat=function(F,y){return y==null?I:c(y)},u.nice=function(F){var y=f();return(!F||typeof F.range!="function")&&(F=e(y[0],y[y.length-1],F==null?10:F)),F?f(Is(y,F)):u},u.copy=function(){return jn(u,Wh(t,e,r,i,n,o,a,s,l,c))},u}function Uh(){return Xr.apply(Wh(Fs,As,Kt,ei,Be,we,Qr,Zr,de,eo).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Hh(t){for(var e=t.length/6|0,r=new Array(e),i=0;i<e;)r[i]="#"+t.slice(i*6,++i*6);return r}var u_=Hh("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function ct(t){return function(){return t}}var Ds=Math.abs,At=Math.atan2,ze=Math.cos,Yh=Math.max,ro=Math.min,ne=Math.sin,Cr=Math.sqrt,vt=1e-12,ii=Math.PI,Gi=ii/2,ni=2*ii;function jh(t){return t>1?0:t<-1?ii:Math.acos(t)}function Ns(t){return t>=1?Gi:t<=-1?-Gi:Math.asin(t)}var Rs=Math.PI,Ps=2*Rs,Tr=1e-6,h_=Ps-Tr;function Gh(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}function f_(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Gh;let r=10**e;return function(i){this._+=i[0];for(let n=1,o=i.length;n<o;++n)this._+=Math.round(arguments[n]*r)/r+i[n]}}var vr=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?Gh:f_(e)}moveTo(e,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,r){this._append`L${this._x1=+e},${this._y1=+r}`}quadraticCurveTo(e,r,i,n){this._append`Q${+e},${+r},${this._x1=+i},${this._y1=+n}`}bezierCurveTo(e,r,i,n,o,a){this._append`C${+e},${+r},${+i},${+n},${this._x1=+o},${this._y1=+a}`}arcTo(e,r,i,n,o){if(e=+e,r=+r,i=+i,n=+n,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=i-e,c=n-r,u=a-e,h=s-r,f=u*u+h*h;if(this._x1===null)this._append`M${this._x1=e},${this._y1=r}`;else if(f>Tr)if(!(Math.abs(h*l-c*u)>Tr)||!o)this._append`L${this._x1=e},${this._y1=r}`;else{let p=i-a,x=n-s,b=l*l+c*c,v=p*p+x*x,B=Math.sqrt(b),T=Math.sqrt(f),M=o*Math.tan((Rs-Math.acos((b+f-v)/(2*B*T)))/2),E=M/T,I=M/B;Math.abs(E-1)>Tr&&this._append`L${e+E*u},${r+E*h}`,this._append`A${o},${o},0,0,${+(h*p>u*x)},${this._x1=e+I*l},${this._y1=r+I*c}`}}arc(e,r,i,n,o,a){if(e=+e,r=+r,i=+i,a=!!a,i<0)throw new Error(`negative radius: ${i}`);let s=i*Math.cos(n),l=i*Math.sin(n),c=e+s,u=r+l,h=1^a,f=a?n-o:o-n;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Tr||Math.abs(this._y1-u)>Tr)&&this._append`L${c},${u}`,i&&(f<0&&(f=f%Ps+Ps),f>h_?this._append`A${i},${i},0,1,${h},${e-s},${r-l}A${i},${i},0,1,${h},${this._x1=c},${this._y1=u}`:f>Tr&&this._append`A${i},${i},0,${+(f>=Rs)},${h},${this._x1=e+i*Math.cos(o)},${this._y1=r+i*Math.sin(o)}`)}rect(e,r,i,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${i=+i}v${+n}h${-i}Z`}toString(){return this._}};function Vh(){return new vr}Vh.prototype=vr.prototype;function io(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{let i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);e=i}return t},()=>new vr(e)}function p_(t){return t.innerRadius}function d_(t){return t.outerRadius}function m_(t){return t.startAngle}function g_(t){return t.endAngle}function x_(t){return t&&t.padAngle}function y_(t,e,r,i,n,o,a,s){var l=r-t,c=i-e,u=a-n,h=s-o,f=h*l-u*c;if(!(f*f<vt))return f=(u*(e-o)-h*(t-n))/f,[t+f*l,e+f*c]}function no(t,e,r,i,n,o,a){var s=t-r,l=e-i,c=(a?o:-o)/Cr(s*s+l*l),u=c*l,h=-c*s,f=t+u,p=e+h,x=r+u,b=i+h,v=(f+x)/2,B=(p+b)/2,T=x-f,M=b-p,E=T*T+M*M,I=n-o,F=f*b-x*p,y=(M<0?-1:1)*Cr(Yh(0,I*I*E-F*F)),$=(F*M-T*y)/E,et=(-F*T-M*y)/E,rt=(F*M+T*y)/E,C=(-F*T+M*y)/E,_=$-v,g=et-B,k=rt-v,A=C-B;return _*_+g*g>k*k+A*A&&($=rt,et=C),{cx:$,cy:et,x01:-u,y01:-h,x11:$*(n/I-1),y11:et*(n/I-1)}}function __(){var t=p_,e=d_,r=ct(0),i=null,n=m_,o=g_,a=x_,s=null,l=io(c);function c(){var u,h,f=+t.apply(this,arguments),p=+e.apply(this,arguments),x=n.apply(this,arguments)-Gi,b=o.apply(this,arguments)-Gi,v=Ds(b-x),B=b>x;if(s||(s=u=l()),p<f&&(h=p,p=f,f=h),!(p>vt))s.moveTo(0,0);else if(v>ni-vt)s.moveTo(p*ze(x),p*ne(x)),s.arc(0,0,p,x,b,!B),f>vt&&(s.moveTo(f*ze(b),f*ne(b)),s.arc(0,0,f,b,x,B));else{var T=x,M=b,E=x,I=b,F=v,y=v,$=a.apply(this,arguments)/2,et=$>vt&&(i?+i.apply(this,arguments):Cr(f*f+p*p)),rt=ro(Ds(p-f)/2,+r.apply(this,arguments)),C=rt,_=rt,g,k;if(et>vt){var A=Ns(et/f*ne($)),D=Ns(et/p*ne($));(F-=A*2)>vt?(A*=B?1:-1,E+=A,I-=A):(F=0,E=I=(x+b)/2),(y-=D*2)>vt?(D*=B?1:-1,T+=D,M-=D):(y=0,T=M=(x+b)/2)}var P=p*ze(T),j=p*ne(T),X=f*ze(I),V=f*ne(I);if(rt>vt){var at=p*ze(M),St=p*ne(M),kt=f*ze(E),Xt=f*ne(E),mt;if(v<ii)if(mt=y_(P,j,kt,Xt,at,St,X,V)){var Nt=P-mt[0],ut=j-mt[1],Lt=at-mt[0],O=St-mt[1],G=1/ne(jh((Nt*Lt+ut*O)/(Cr(Nt*Nt+ut*ut)*Cr(Lt*Lt+O*O)))/2),Z=Cr(mt[0]*mt[0]+mt[1]*mt[1]);C=ro(rt,(f-Z)/(G-1)),_=ro(rt,(p-Z)/(G+1))}else C=_=0}y>vt?_>vt?(g=no(kt,Xt,P,j,p,_,B),k=no(at,St,X,V,p,_,B),s.moveTo(g.cx+g.x01,g.cy+g.y01),_<rt?s.arc(g.cx,g.cy,_,At(g.y01,g.x01),At(k.y01,k.x01),!B):(s.arc(g.cx,g.cy,_,At(g.y01,g.x01),At(g.y11,g.x11),!B),s.arc(0,0,p,At(g.cy+g.y11,g.cx+g.x11),At(k.cy+k.y11,k.cx+k.x11),!B),s.arc(k.cx,k.cy,_,At(k.y11,k.x11),At(k.y01,k.x01),!B))):(s.moveTo(P,j),s.arc(0,0,p,T,M,!B)):s.moveTo(P,j),!(f>vt)||!(F>vt)?s.lineTo(X,V):C>vt?(g=no(X,V,at,St,f,-C,B),k=no(P,j,kt,Xt,f,-C,B),s.lineTo(g.cx+g.x01,g.cy+g.y01),C<rt?s.arc(g.cx,g.cy,C,At(g.y01,g.x01),At(k.y01,k.x01),!B):(s.arc(g.cx,g.cy,C,At(g.y01,g.x01),At(g.y11,g.x11),!B),s.arc(0,0,f,At(g.cy+g.y11,g.cx+g.x11),At(k.cy+k.y11,k.cx+k.x11),B),s.arc(k.cx,k.cy,C,At(k.y11,k.x11),At(k.y01,k.x01),!B))):s.arc(0,0,f,I,E,B)}if(s.closePath(),u)return s=null,u+""||null}return c.centroid=function(){var u=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,h=(+n.apply(this,arguments)+ +o.apply(this,arguments))/2-ii/2;return[ze(h)*u,ne(h)*u]},c.innerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:ct(+u),c):t},c.outerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:ct(+u),c):e},c.cornerRadius=function(u){return arguments.length?(r=typeof u=="function"?u:ct(+u),c):r},c.padRadius=function(u){return arguments.length?(i=u==null?null:typeof u=="function"?u:ct(+u),c):i},c.startAngle=function(u){return arguments.length?(n=typeof u=="function"?u:ct(+u),c):n},c.endAngle=function(u){return arguments.length?(o=typeof u=="function"?u:ct(+u),c):o},c.padAngle=function(u){return arguments.length?(a=typeof u=="function"?u:ct(+u),c):a},c.context=function(u){return arguments.length?(s=u==null?null:u,c):s},c}function Xh(t){this._context=t}Xh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Vi(t){return new Xh(t)}var t3=Array.prototype.slice;function oo(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Kh(t){return t[0]}function Zh(t){return t[1]}function b_(t,e){var r=ct(!0),i=null,n=Vi,o=null,a=io(s);t=typeof t=="function"?t:t===void 0?Kh:ct(t),e=typeof e=="function"?e:e===void 0?Zh:ct(e);function s(l){var c,u=(l=oo(l)).length,h,f=!1,p;for(i==null&&(o=n(p=a())),c=0;c<=u;++c)!(c<u&&r(h=l[c],c,l))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+t(h,c,l),+e(h,c,l));if(p)return o=null,p+""||null}return s.x=function(l){return arguments.length?(t=typeof l=="function"?l:ct(+l),s):t},s.y=function(l){return arguments.length?(e=typeof l=="function"?l:ct(+l),s):e},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:ct(!!l),s):r},s.curve=function(l){return arguments.length?(n=l,i!=null&&(o=n(i)),s):n},s.context=function(l){return arguments.length?(l==null?i=o=null:o=n(i=l),s):i},s}function Qh(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Jh(t){return t}function C_(){var t=Jh,e=Qh,r=null,i=ct(0),n=ct(ni),o=ct(0);function a(s){var l,c=(s=oo(s)).length,u,h,f=0,p=new Array(c),x=new Array(c),b=+i.apply(this,arguments),v=Math.min(ni,Math.max(-ni,n.apply(this,arguments)-b)),B,T=Math.min(Math.abs(v)/c,o.apply(this,arguments)),M=T*(v<0?-1:1),E;for(l=0;l<c;++l)(E=x[p[l]=l]=+t(s[l],l,s))>0&&(f+=E);for(e!=null?p.sort(function(I,F){return e(x[I],x[F])}):r!=null&&p.sort(function(I,F){return r(s[I],s[F])}),l=0,h=f?(v-c*M)/f:0;l<c;++l,b=B)u=p[l],E=x[u],B=b+(E>0?E*h:0)+M,x[u]={data:s[u],index:l,value:E,startAngle:b,endAngle:B,padAngle:T};return x}return a.value=function(s){return arguments.length?(t=typeof s=="function"?s:ct(+s),a):t},a.sortValues=function(s){return arguments.length?(e=s,r=null,a):e},a.sort=function(s){return arguments.length?(r=s,e=null,a):r},a.startAngle=function(s){return arguments.length?(i=typeof s=="function"?s:ct(+s),a):i},a.endAngle=function(s){return arguments.length?(n=typeof s=="function"?s:ct(+s),a):n},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:ct(+s),a):o},a}function oi(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function Xi(t){this._context=t}Xi.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:oi(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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:oi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function $s(t){return new Xi(t)}var ao=class{constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}};function zs(t){return new ao(t,!0)}function qs(t){return new ao(t,!1)}function Zt(){}function tf(t){this._context=t}tf.prototype={areaStart:Zt,areaEnd:Zt,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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:oi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Ws(t){return new tf(t)}function ef(t){this._context=t}ef.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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:oi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Us(t){return new ef(t)}function rf(t,e){this._basis=new Xi(t),this._beta=e}rf.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var i=t[0],n=e[0],o=t[r]-i,a=e[r]-n,s=-1,l;++s<=r;)l=s/r,this._basis.point(this._beta*t[s]+(1-this._beta)*(i+l*o),this._beta*e[s]+(1-this._beta)*(n+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Hs=function t(e){function r(i){return e===1?new Xi(i):new rf(i,e)}return r.beta=function(i){return t(+i)},r}(.85);function ai(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function so(t,e){this._context=t,this._k=(1-e)/6}so.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:ai(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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:ai(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ys=function t(e){function r(i){return new so(i,e)}return r.tension=function(i){return t(+i)},r}(0);function lo(t,e){this._context=t,this._k=(1-e)/6}lo.prototype={areaStart:Zt,areaEnd:Zt,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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ai(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var js=function t(e){function r(i){return new lo(i,e)}return r.tension=function(i){return t(+i)},r}(0);function co(t,e){this._context=t,this._k=(1-e)/6}co.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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ai(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Gs=function t(e){function r(i){return new co(i,e)}return r.tension=function(i){return t(+i)},r}(0);function Ki(t,e,r){var i=t._x1,n=t._y1,o=t._x2,a=t._y2;if(t._l01_a>vt){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,n=(n*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>vt){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/u,a=(a*c+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(i,n,o,a,t._x2,t._y2)}function nf(t,e){this._context=t,this._alpha=e}nf.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,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Ki(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Vs=function t(e){function r(i){return e?new nf(i,e):new so(i,0)}return r.alpha=function(i){return t(+i)},r}(.5);function of(t,e){this._context=t,this._alpha=e}of.prototype={areaStart:Zt,areaEnd:Zt,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,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ki(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Xs=function t(e){function r(i){return e?new of(i,e):new lo(i,0)}return r.alpha=function(i){return t(+i)},r}(.5);function af(t,e){this._context=t,this._alpha=e}af.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,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ki(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ks=function t(e){function r(i){return e?new af(i,e):new co(i,0)}return r.alpha=function(i){return t(+i)},r}(.5);function sf(t){this._context=t}sf.prototype={areaStart:Zt,areaEnd:Zt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Zs(t){return new sf(t)}function lf(t){return t<0?-1:1}function cf(t,e,r){var i=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(i||n<0&&-0),a=(r-t._y1)/(n||i<0&&-0),s=(o*n+a*i)/(i+n);return(lf(o)+lf(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function uf(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Qs(t,e,r){var i=t._x0,n=t._y0,o=t._x1,a=t._y1,s=(o-i)/3;t._context.bezierCurveTo(i+s,n+s*e,o-s,a-s*r,o,a)}function uo(t){this._context=t}uo.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:Qs(this,this._t0,uf(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Qs(this,uf(this,r=cf(this,t,e)),r);break;default:Qs(this,this._t0,r=cf(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function hf(t){this._context=new ff(t)}(hf.prototype=Object.create(uo.prototype)).point=function(t,e){uo.prototype.point.call(this,e,t)};function ff(t){this._context=t}ff.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,i,n,o){this._context.bezierCurveTo(e,t,i,r,o,n)}};function Js(t){return new uo(t)}function tl(t){return new hf(t)}function df(t){this._context=t}df.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var i=pf(t),n=pf(e),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(i[0][o],n[0][o],i[1][o],n[1][o],t[a],e[a]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function pf(t){var e,r=t.length-1,i,n=new Array(r),o=new Array(r),a=new Array(r);for(n[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)n[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(n[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)i=n[e]/o[e-1],o[e]-=i,a[e]-=i*a[e-1];for(n[r-1]=a[r-1]/o[r-1],e=r-2;e>=0;--e)n[e]=(a[e]-n[e+1])/o[e];for(o[r-1]=(t[r]+n[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-n[e+1];return[n,o]}function el(t){return new df(t)}function ho(t,e){this._context=t,this._t=e}ho.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e}};function rl(t){return new ho(t,.5)}function il(t){return new ho(t,0)}function nl(t){return new ho(t,1)}var T_={value:()=>{}};function gf(){for(var t=0,e=arguments.length,r={},i;t<e;++t){if(!(i=arguments[t]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new fo(r)}function fo(t){this._=t}function v_(t,e){return t.trim().split(/^|\s+/).map(function(r){var i="",n=r.indexOf(".");if(n>=0&&(i=r.slice(n+1),r=r.slice(0,n)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}fo.prototype=gf.prototype={constructor:fo,on:function(t,e){var r=this._,i=v_(t+"",r),n,o=-1,a=i.length;if(arguments.length<2){for(;++o<a;)if((n=(t=i[o]).type)&&(n=S_(r[n],t.name)))return n;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<a;)if(n=(t=i[o]).type)r[n]=mf(r[n],t.name,e);else if(e==null)for(n in r)r[n]=mf(r[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new fo(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var r=new Array(n),i=0,n,o;i<n;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],i=0,n=o.length;i<n;++i)o[i].value.apply(e,r)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],n=0,o=i.length;n<o;++n)i[n].value.apply(e,r)}};function S_(t,e){for(var r=0,i=t.length,n;r<i;++r)if((n=t[r]).name===e)return n.value}function mf(t,e,r){for(var i=0,n=t.length;i<n;++i)if(t[i].name===e){t[i]=T_,t=t.slice(0,i).concat(t.slice(i+1));break}return r!=null&&t.push({name:e,value:r}),t}var ol=gf;var si=0,Qi=0,Zi=0,yf=1e3,po,Ji,mo=0,Sr=0,go=0,tn=typeof performance=="object"&&performance.now?performance:Date,_f=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function rn(){return Sr||(_f(k_),Sr=tn.now()+go)}function k_(){Sr=0}function en(){this._call=this._time=this._next=null}en.prototype=xo.prototype={constructor:en,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?rn():+r)+(e==null?0:+e),!this._next&&Ji!==this&&(Ji?Ji._next=this:po=this,Ji=this),this._call=t,this._time=r,al()},stop:function(){this._call&&(this._call=null,this._time=1/0,al())}};function xo(t,e,r){var i=new en;return i.restart(t,e,r),i}function bf(){rn(),++si;for(var t=po,e;t;)(e=Sr-t._time)>=0&&t._call.call(void 0,e),t=t._next;--si}function xf(){Sr=(mo=tn.now())+go,si=Qi=0;try{bf()}finally{si=0,B_(),Sr=0}}function w_(){var t=tn.now(),e=t-mo;e>yf&&(go-=e,mo=t)}function B_(){for(var t,e=po,r,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:po=r);Ji=t,al(i)}function al(t){if(!si){Qi&&(Qi=clearTimeout(Qi));var e=t-Sr;e>24?(t<1/0&&(Qi=setTimeout(xf,t-tn.now()-go)),Zi&&(Zi=clearInterval(Zi))):(Zi||(mo=tn.now(),Zi=setInterval(w_,yf)),si=1,_f(xf))}}function yo(t,e,r){var i=new en;return e=e==null?0:+e,i.restart(n=>{i.stop(),t(n+e)},e,r),i}var F_=ol("start","end","cancel","interrupt"),A_=[],vf=0,Cf=1,bo=2,_o=3,Tf=4,Co=5,nn=6;function qe(t,e,r,i,n,o){var a=t.__transition;if(!a)t.__transition={};else if(r in a)return;M_(t,r,{name:e,index:i,group:n,on:F_,tween:A_,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:vf})}function on(t,e){var r=gt(t,e);if(r.state>vf)throw new Error("too late; already scheduled");return r}function Mt(t,e){var r=gt(t,e);if(r.state>_o)throw new Error("too late; already running");return r}function gt(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function M_(t,e,r){var i=t.__transition,n;i[e]=r,r.timer=xo(o,0,r.time);function o(c){r.state=Cf,r.timer.restart(a,r.delay,r.time),r.delay<=c&&a(c-r.delay)}function a(c){var u,h,f,p;if(r.state!==Cf)return l();for(u in i)if(p=i[u],p.name===r.name){if(p.state===_o)return yo(a);p.state===Tf?(p.state=nn,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete i[u]):+u<e&&(p.state=nn,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete i[u])}if(yo(function(){r.state===_o&&(r.state=Tf,r.timer.restart(s,r.delay,r.time),s(c))}),r.state=bo,r.on.call("start",t,t.__data__,r.index,r.group),r.state===bo){for(r.state=_o,n=new Array(f=r.tween.length),u=0,h=-1;u<f;++u)(p=r.tween[u].value.call(t,t.__data__,r.index,r.group))&&(n[++h]=p);n.length=h+1}}function s(c){for(var u=c<r.duration?r.ease.call(null,c/r.duration):(r.timer.restart(l),r.state=Co,1),h=-1,f=n.length;++h<f;)n[h].call(t,u);r.state===Co&&(r.on.call("end",t,t.__data__,r.index,r.group),l())}function l(){r.state=nn,r.timer.stop(),delete i[e];for(var c in i)return;delete t.__transition}}function To(t,e){var r=t.__transition,i,n,o=!0,a;if(r){e=e==null?null:e+"";for(a in r){if((i=r[a]).name!==e){o=!1;continue}n=i.state>bo&&i.state<Co,i.state=nn,i.timer.stop(),i.on.call(n?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete r[a]}o&&delete t.__transition}}function Sf(t){return this.each(function(){To(this,t)})}function L_(t,e){var r,i;return function(){var n=Mt(this,t),o=n.tween;if(o!==r){i=r=o;for(var a=0,s=i.length;a<s;++a)if(i[a].name===e){i=i.slice(),i.splice(a,1);break}}n.tween=i}}function E_(t,e,r){var i,n;if(typeof r!="function")throw new Error;return function(){var o=Mt(this,t),a=o.tween;if(a!==i){n=(i=a).slice();for(var s={name:e,value:r},l=0,c=n.length;l<c;++l)if(n[l].name===e){n[l]=s;break}l===c&&n.push(s)}o.tween=n}}function kf(t,e){var r=this._id;if(t+="",arguments.length<2){for(var i=gt(this.node(),r).tween,n=0,o=i.length,a;n<o;++n)if((a=i[n]).name===t)return a.value;return null}return this.each((e==null?L_:E_)(r,t,e))}function li(t,e,r){var i=t._id;return t.each(function(){var n=Mt(this,i);(n.value||(n.value={}))[e]=r.apply(this,arguments)}),function(n){return gt(n,i).value[e]}}function vo(t,e){var r;return(typeof e=="number"?Ft:e instanceof re?fr:(r=re(e))?(e=r,fr):zi)(t,e)}function O_(t){return function(){this.removeAttribute(t)}}function I_(t){return function(){this.removeAttributeNS(t.space,t.local)}}function D_(t,e,r){var i,n=r+"",o;return function(){var a=this.getAttribute(t);return a===n?null:a===i?o:o=e(i=a,r)}}function N_(t,e,r){var i,n=r+"",o;return function(){var a=this.getAttributeNS(t.space,t.local);return a===n?null:a===i?o:o=e(i=a,r)}}function R_(t,e,r){var i,n,o;return function(){var a,s=r(this),l;return s==null?void this.removeAttribute(t):(a=this.getAttribute(t),l=s+"",a===l?null:a===i&&l===n?o:(n=l,o=e(i=a,s)))}}function P_(t,e,r){var i,n,o;return function(){var a,s=r(this),l;return s==null?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),l=s+"",a===l?null:a===i&&l===n?o:(n=l,o=e(i=a,s)))}}function wf(t,e){var r=Te(t),i=r==="transform"?us:vo;return this.attrTween(t,typeof e=="function"?(r.local?P_:R_)(r,i,li(this,"attr."+t,e)):e==null?(r.local?I_:O_)(r):(r.local?N_:D_)(r,i,e))}function $_(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function z_(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function q_(t,e){var r,i;function n(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&z_(t,o)),r}return n._value=e,n}function W_(t,e){var r,i;function n(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&$_(t,o)),r}return n._value=e,n}function Bf(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var i=Te(t);return this.tween(r,(i.local?q_:W_)(i,e))}function U_(t,e){return function(){on(this,t).delay=+e.apply(this,arguments)}}function H_(t,e){return e=+e,function(){on(this,t).delay=e}}function Ff(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?U_:H_)(e,t)):gt(this.node(),e).delay}function Y_(t,e){return function(){Mt(this,t).duration=+e.apply(this,arguments)}}function j_(t,e){return e=+e,function(){Mt(this,t).duration=e}}function Af(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Y_:j_)(e,t)):gt(this.node(),e).duration}function G_(t,e){if(typeof e!="function")throw new Error;return function(){Mt(this,t).ease=e}}function Mf(t){var e=this._id;return arguments.length?this.each(G_(e,t)):gt(this.node(),e).ease}function V_(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;Mt(this,t).ease=r}}function Lf(t){if(typeof t!="function")throw new Error;return this.each(V_(this._id,t))}function Ef(t){typeof t!="function"&&(t=Ii(t));for(var e=this._groups,r=e.length,i=new Array(r),n=0;n<r;++n)for(var o=e[n],a=o.length,s=i[n]=[],l,c=0;c<a;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&s.push(l);return new $t(i,this._parents,this._name,this._id)}function Of(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,i=e.length,n=r.length,o=Math.min(i,n),a=new Array(i),s=0;s<o;++s)for(var l=e[s],c=r[s],u=l.length,h=a[s]=new Array(u),f,p=0;p<u;++p)(f=l[p]||c[p])&&(h[p]=f);for(;s<i;++s)a[s]=e[s];return new $t(a,this._parents,this._name,this._id)}function X_(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||e==="start"})}function K_(t,e,r){var i,n,o=X_(e)?on:Mt;return function(){var a=o(this,t),s=a.on;s!==i&&(n=(i=s).copy()).on(e,r),a.on=n}}function If(t,e){var r=this._id;return arguments.length<2?gt(this.node(),r).on.on(t):this.each(K_(r,t,e))}function Z_(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function Df(){return this.on("end.remove",Z_(this._id))}function Nf(t){var e=this._name,r=this._id;typeof t!="function"&&(t=lr(t));for(var i=this._groups,n=i.length,o=new Array(n),a=0;a<n;++a)for(var s=i[a],l=s.length,c=o[a]=new Array(l),u,h,f=0;f<l;++f)(u=s[f])&&(h=t.call(u,u.__data__,f,s))&&("__data__"in u&&(h.__data__=u.__data__),c[f]=h,qe(c[f],e,r,f,c,gt(u,r)));return new $t(o,this._parents,e,r)}function Rf(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Oi(t));for(var i=this._groups,n=i.length,o=[],a=[],s=0;s<n;++s)for(var l=i[s],c=l.length,u,h=0;h<c;++h)if(u=l[h]){for(var f=t.call(u,u.__data__,h,l),p,x=gt(u,r),b=0,v=f.length;b<v;++b)(p=f[b])&&qe(p,e,r,b,f,x);o.push(f),a.push(u)}return new $t(o,a,e,r)}var Q_=ve.prototype.constructor;function Pf(){return new Q_(this._groups,this._parents)}function J_(t,e){var r,i,n;return function(){var o=De(this,t),a=(this.style.removeProperty(t),De(this,t));return o===a?null:o===r&&a===i?n:n=e(r=o,i=a)}}function $f(t){return function(){this.style.removeProperty(t)}}function t1(t,e,r){var i,n=r+"",o;return function(){var a=De(this,t);return a===n?null:a===i?o:o=e(i=a,r)}}function e1(t,e,r){var i,n,o;return function(){var a=De(this,t),s=r(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(t),De(this,t))),a===l?null:a===i&&l===n?o:(n=l,o=e(i=a,s))}}function r1(t,e){var r,i,n,o="style."+e,a="end."+o,s;return function(){var l=Mt(this,t),c=l.on,u=l.value[o]==null?s||(s=$f(e)):void 0;(c!==r||n!==u)&&(i=(r=c).copy()).on(a,n=u),l.on=i}}function zf(t,e,r){var i=(t+="")=="transform"?cs:vo;return e==null?this.styleTween(t,J_(t,i)).on("end.style."+t,$f(t)):typeof e=="function"?this.styleTween(t,e1(t,i,li(this,"style."+t,e))).each(r1(this._id,t)):this.styleTween(t,t1(t,i,e),r).on("end.style."+t,null)}function i1(t,e,r){return function(i){this.style.setProperty(t,e.call(this,i),r)}}function n1(t,e,r){var i,n;function o(){var a=e.apply(this,arguments);return a!==n&&(i=(n=a)&&i1(t,a,r)),i}return o._value=e,o}function qf(t,e,r){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,n1(t,e,r==null?"":r))}function o1(t){return function(){this.textContent=t}}function a1(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function Wf(t){return this.tween("text",typeof t=="function"?a1(li(this,"text",t)):o1(t==null?"":t+""))}function s1(t){return function(e){this.textContent=t.call(this,e)}}function l1(t){var e,r;function i(){var n=t.apply(this,arguments);return n!==r&&(e=(r=n)&&s1(n)),e}return i._value=t,i}function Uf(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,l1(t))}function Hf(){for(var t=this._name,e=this._id,r=So(),i=this._groups,n=i.length,o=0;o<n;++o)for(var a=i[o],s=a.length,l,c=0;c<s;++c)if(l=a[c]){var u=gt(l,e);qe(l,t,r,c,a,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new $t(i,this._parents,t,r)}function Yf(){var t,e,r=this,i=r._id,n=r.size();return new Promise(function(o,a){var s={value:a},l={value:function(){--n===0&&o()}};r.each(function(){var c=Mt(this,i),u=c.on;u!==t&&(e=(t=u).copy(),e._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),c.on=e}),n===0&&o()})}var c1=0;function $t(t,e,r,i){this._groups=t,this._parents=e,this._name=r,this._id=i}function jf(t){return ve().transition(t)}function So(){return++c1}var Fe=ve.prototype;$t.prototype=jf.prototype={constructor:$t,select:Nf,selectAll:Rf,selectChild:Fe.selectChild,selectChildren:Fe.selectChildren,filter:Ef,merge:Of,selection:Pf,transition:Hf,call:Fe.call,nodes:Fe.nodes,node:Fe.node,size:Fe.size,empty:Fe.empty,each:Fe.each,on:If,attr:wf,attrTween:Bf,style:zf,styleTween:qf,text:Wf,textTween:Uf,remove:Df,tween:kf,delay:Ff,duration:Af,ease:Mf,easeVarying:Lf,end:Yf,[Symbol.iterator]:Fe[Symbol.iterator]};function ko(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var u1={time:null,delay:0,duration:250,ease:ko};function h1(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function Gf(t){var e,r;t instanceof $t?(e=t._id,t=t._name):(e=So(),(r=u1).time=rn(),t=t==null?null:t+"");for(var i=this._groups,n=i.length,o=0;o<n;++o)for(var a=i[o],s=a.length,l,c=0;c<s;++c)(l=a[c])&&qe(l,t,e,c,a,r||h1(l,e));return new $t(i,this._parents,t,e)}ve.prototype.interrupt=Sf;ve.prototype.transition=Gf;var{abs:v6,max:S6,min:k6}=Math;function Vf(t){return[+t[0],+t[1]]}function f1(t){return[Vf(t[0]),Vf(t[1])]}var w6={name:"x",handles:["w","e"].map(sl),input:function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},B6={name:"y",handles:["n","s"].map(sl),input:function(t,e){return t==null?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},F6={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(sl),input:function(t){return t==null?null:f1(t)},output:function(t){return t}};function sl(t){return{type:t}}function p1(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function Xf(t,e){return fetch(t,e).then(p1)}function ll(t){return(e,r)=>Xf(e,r).then(i=>new DOMParser().parseFromString(i,t))}var d1=ll("application/xml"),m1=ll("text/html"),g1=ll("image/svg+xml");function We(t,e,r){this.k=t,this.x=e,this.y=r}We.prototype={constructor:We,scale:function(t){return t===1?this:new We(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new We(this.k,this.x+this.k*t,this.y+this.k*e)},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 cl=new We(1,0,0);ul.prototype=We.prototype;function ul(t){for(;!t.__zoom;)if(!(t=t.parentNode))return cl;return t.__zoom}var wo={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<.16666666666666666?t+(e-t)*6*r:r<.5?e:r<.6666666666666666?t+(e-t)*(.6666666666666666-r)*6:t),hsl2rgb:({h:t,s:e,l:r},i)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;let n=r<.5?r*(1+e):r+e-r*e,o=2*r-n;switch(i){case"r":return wo.hue2rgb(o,n,t+.3333333333333333)*255;case"g":return wo.hue2rgb(o,n,t)*255;case"b":return wo.hue2rgb(o,n,t-.3333333333333333)*255}},rgb2hsl:({r:t,g:e,b:r},i)=>{t/=255,e/=255,r/=255;let n=Math.max(t,e,r),o=Math.min(t,e,r),a=(n+o)/2;if(i==="l")return a*100;if(n===o)return 0;let s=n-o,l=a>.5?s/(2-n-o):s/(n+o);if(i==="s")return l*100;switch(n){case t:return((e-r)/s+(e<r?6:0))*60;case e:return((r-t)/s+2)*60;case r:return((t-e)/s+4)*60;default:return-1}}},Zf=wo;var x1={clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},Qf=x1;var y1={dec2hex:t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},Jf=y1;var _1={channel:Zf,lang:Qf,unit:Jf},q=_1;var Ae={};for(let t=0;t<=255;t++)Ae[t]=q.unit.dec2hex(t);var xt={ALL:0,RGB:1,HSL:2};var pl=class{constructor(){this.type=xt.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=xt.ALL}is(e){return this.type===e}},tp=pl;var dl=class{constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new tp}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=xt.ALL,this}_ensureHSL(){let e=this.data,{h:r,s:i,l:n}=e;r===void 0&&(e.h=q.channel.rgb2hsl(e,"h")),i===void 0&&(e.s=q.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=q.channel.rgb2hsl(e,"l"))}_ensureRGB(){let e=this.data,{r,g:i,b:n}=e;r===void 0&&(e.r=q.channel.hsl2rgb(e,"r")),i===void 0&&(e.g=q.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=q.channel.hsl2rgb(e,"b"))}get r(){let e=this.data,r=e.r;return!this.type.is(xt.HSL)&&r!==void 0?r:(this._ensureHSL(),q.channel.hsl2rgb(e,"r"))}get g(){let e=this.data,r=e.g;return!this.type.is(xt.HSL)&&r!==void 0?r:(this._ensureHSL(),q.channel.hsl2rgb(e,"g"))}get b(){let e=this.data,r=e.b;return!this.type.is(xt.HSL)&&r!==void 0?r:(this._ensureHSL(),q.channel.hsl2rgb(e,"b"))}get h(){let e=this.data,r=e.h;return!this.type.is(xt.RGB)&&r!==void 0?r:(this._ensureRGB(),q.channel.rgb2hsl(e,"h"))}get s(){let e=this.data,r=e.s;return!this.type.is(xt.RGB)&&r!==void 0?r:(this._ensureRGB(),q.channel.rgb2hsl(e,"s"))}get l(){let e=this.data,r=e.l;return!this.type.is(xt.RGB)&&r!==void 0?r:(this._ensureRGB(),q.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(xt.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(xt.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(xt.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(xt.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(xt.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(xt.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}},ep=dl;var b1=new ep({r:0,g:0,b:0,a:0},"transparent"),Ue=b1;var rp={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;let e=t.match(rp.re);if(!e)return;let r=e[1],i=parseInt(r,16),n=r.length,o=n%4===0,a=n>4,s=a?1:17,l=a?8:4,c=o?0:-1,u=a?255:15;return Ue.set({r:(i>>l*(c+3)&u)*s,g:(i>>l*(c+2)&u)*s,b:(i>>l*(c+1)&u)*s,a:o?(i&u)*s/255:1},t)},stringify:t=>{let{r:e,g:r,b:i,a:n}=t;return n<1?`#${Ae[Math.round(e)]}${Ae[Math.round(r)]}${Ae[Math.round(i)]}${Ae[Math.round(n*255)]}`:`#${Ae[Math.round(e)]}${Ae[Math.round(r)]}${Ae[Math.round(i)]}`}},kr=rp;var Bo={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:t=>{let e=t.match(Bo.hueRe);if(e){let[,r,i]=e;switch(i){case"grad":return q.channel.clamp.h(parseFloat(r)*.9);case"rad":return q.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return q.channel.clamp.h(parseFloat(r)*360)}}return q.channel.clamp.h(parseFloat(t))},parse:t=>{let e=t.charCodeAt(0);if(e!==104&&e!==72)return;let r=t.match(Bo.re);if(!r)return;let[,i,n,o,a,s]=r;return Ue.set({h:Bo._hue2deg(i),s:q.channel.clamp.s(parseFloat(n)),l:q.channel.clamp.l(parseFloat(o)),a:a?q.channel.clamp.a(s?parseFloat(a)/100:parseFloat(a)):1},t)},stringify:t=>{let{h:e,s:r,l:i,a:n}=t;return n<1?`hsla(${q.lang.round(e)}, ${q.lang.round(r)}%, ${q.lang.round(i)}%, ${n})`:`hsl(${q.lang.round(e)}, ${q.lang.round(r)}%, ${q.lang.round(i)}%)`}},an=Bo;var Fo={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:t=>{t=t.toLowerCase();let e=Fo.colors[t];if(e)return kr.parse(e)},stringify:t=>{let e=kr.stringify(t);for(let r in Fo.colors)if(Fo.colors[r]===e)return r}},ml=Fo;var ip={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:t=>{let e=t.charCodeAt(0);if(e!==114&&e!==82)return;let r=t.match(ip.re);if(!r)return;let[,i,n,o,a,s,l,c,u]=r;return Ue.set({r:q.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:q.channel.clamp.g(a?parseFloat(o)*2.55:parseFloat(o)),b:q.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:c?q.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{let{r:e,g:r,b:i,a:n}=t;return n<1?`rgba(${q.lang.round(e)}, ${q.lang.round(r)}, ${q.lang.round(i)}, ${q.lang.round(n)})`:`rgb(${q.lang.round(e)}, ${q.lang.round(r)}, ${q.lang.round(i)})`}},sn=ip;var C1={format:{keyword:ml,hex:kr,rgb:sn,rgba:sn,hsl:an,hsla:an},parse:t=>{if(typeof t!="string")return t;let e=kr.parse(t)||sn.parse(t)||an.parse(t)||ml.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(xt.HSL)||t.data.r===void 0?an.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?sn.stringify(t):kr.stringify(t)},yt=C1;var T1=t=>{let{r:e,g:r,b:i}=yt.parse(t),n=.2126*q.channel.toLinear(e)+.7152*q.channel.toLinear(r)+.0722*q.channel.toLinear(i);return q.lang.round(n)},np=T1;var v1=t=>np(t)>=.5,op=v1;var S1=t=>!op(t),wr=S1;var k1=(t,e,r)=>{let i=yt.parse(t),n=i[e],o=q.channel.clamp[e](n+r);return n!==o&&(i[e]=o),yt.stringify(i)},Ao=k1;var w1=(t,e)=>Ao(t,"l",e),z=w1;var B1=(t,e)=>Ao(t,"l",-e),H=B1;var F1=(t,e)=>{let r=yt.parse(t);for(let i in e)r[i]=q.channel.clamp[i](e[i]);return yt.stringify(r)},Mo=F1;var A1=(t,e,r=0,i=1)=>{if(typeof t!="number")return Mo(t,{a:e});let n=Ue.set({r:q.channel.clamp.r(t),g:q.channel.clamp.g(e),b:q.channel.clamp.b(r),a:q.channel.clamp.a(i)});return yt.stringify(n)},He=A1;var M1=(t,e)=>q.lang.round(yt.parse(t)[e]),L1=M1;var E1=(t,e)=>{let r=yt.parse(t),i={};for(let n in e)e[n]&&(i[n]=r[n]+e[n]);return Mo(t,i)},m=E1;var O1=(t,e,r=50)=>{let{r:i,g:n,b:o,a}=yt.parse(t),{r:s,g:l,b:c,a:u}=yt.parse(e),h=r/100,f=h*2-1,p=a-u,b=((f*p===-1?f:(f+p)/(1+f*p))+1)/2,v=1-b,B=i*b+s*v,T=n*b+l*v,M=o*b+c*v,E=a*h+u*(1-h);return He(B,T,M,E)},ap=O1;var I1=(t,e=100)=>{let r=yt.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,ap(r,t,e)},L=I1;var D1=typeof global=="object"&&global&&global.Object===Object&&global,Lo=D1;var N1=typeof self=="object"&&self&&self.Object===Object&&self,R1=Lo||N1||Function("return this")(),ft=R1;var P1=ft.Symbol,ci=P1;var sp=Object.prototype,$1=sp.hasOwnProperty,z1=sp.toString,ln=ci?ci.toStringTag:void 0;function q1(t){var e=$1.call(t,ln),r=t[ln];try{t[ln]=void 0;var i=!0}catch(o){}var n=z1.call(t);return i&&(e?t[ln]=r:delete t[ln]),n}var lp=q1;var W1=Object.prototype,U1=W1.toString;function H1(t){return U1.call(t)}var cp=H1;var Y1="[object Null]",j1="[object Undefined]",up=ci?ci.toStringTag:void 0;function G1(t){return t==null?t===void 0?j1:Y1:up&&up in Object(t)?lp(t):cp(t)}var oe=G1;function V1(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Yt=V1;var X1="[object AsyncFunction]",K1="[object Function]",Z1="[object GeneratorFunction]",Q1="[object Proxy]";function J1(t){if(!Yt(t))return!1;var e=oe(t);return e==K1||e==Z1||e==X1||e==Q1}var ui=J1;var tb=ft["__core-js_shared__"],Eo=tb;var hp=function(){var t=/[^.]+$/.exec(Eo&&Eo.keys&&Eo.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function eb(t){return!!hp&&hp in t}var fp=eb;var rb=Function.prototype,ib=rb.toString;function nb(t){if(t!=null){try{return ib.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Me=nb;var ob=/[\\^$.*+?()[\]{}|]/g,ab=/^\[object .+?Constructor\]$/,sb=Function.prototype,lb=Object.prototype,cb=sb.toString,ub=lb.hasOwnProperty,hb=RegExp("^"+cb.call(ub).replace(ob,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fb(t){if(!Yt(t)||fp(t))return!1;var e=ui(t)?hb:ab;return e.test(Me(t))}var pp=fb;function pb(t,e){return t==null?void 0:t[e]}var dp=pb;function db(t,e){var r=dp(t,e);return pp(r)?r:void 0}var jt=db;var mb=jt(Object,"create"),Le=mb;function gb(){this.__data__=Le?Le(null):{},this.size=0}var mp=gb;function xb(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var gp=xb;var yb="__lodash_hash_undefined__",_b=Object.prototype,bb=_b.hasOwnProperty;function Cb(t){var e=this.__data__;if(Le){var r=e[t];return r===yb?void 0:r}return bb.call(e,t)?e[t]:void 0}var xp=Cb;var Tb=Object.prototype,vb=Tb.hasOwnProperty;function Sb(t){var e=this.__data__;return Le?e[t]!==void 0:vb.call(e,t)}var yp=Sb;var kb="__lodash_hash_undefined__";function wb(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Le&&e===void 0?kb:e,this}var _p=wb;function hi(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}hi.prototype.clear=mp;hi.prototype.delete=gp;hi.prototype.get=xp;hi.prototype.has=yp;hi.prototype.set=_p;var gl=hi;function Bb(){this.__data__=[],this.size=0}var bp=Bb;function Fb(t,e){return t===e||t!==t&&e!==e}var Ye=Fb;function Ab(t,e){for(var r=t.length;r--;)if(Ye(t[r][0],e))return r;return-1}var je=Ab;var Mb=Array.prototype,Lb=Mb.splice;function Eb(t){var e=this.__data__,r=je(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():Lb.call(e,r,1),--this.size,!0}var Cp=Eb;function Ob(t){var e=this.__data__,r=je(e,t);return r<0?void 0:e[r][1]}var Tp=Ob;function Ib(t){return je(this.__data__,t)>-1}var vp=Ib;function Db(t,e){var r=this.__data__,i=je(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}var Sp=Db;function fi(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}fi.prototype.clear=bp;fi.prototype.delete=Cp;fi.prototype.get=Tp;fi.prototype.has=vp;fi.prototype.set=Sp;var Ge=fi;var Nb=jt(ft,"Map"),Ve=Nb;function Rb(){this.size=0,this.__data__={hash:new gl,map:new(Ve||Ge),string:new gl}}var kp=Rb;function Pb(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var wp=Pb;function $b(t,e){var r=t.__data__;return wp(e)?r[typeof e=="string"?"string":"hash"]:r.map}var Xe=$b;function zb(t){var e=Xe(this,t).delete(t);return this.size-=e?1:0,e}var Bp=zb;function qb(t){return Xe(this,t).get(t)}var Fp=qb;function Wb(t){return Xe(this,t).has(t)}var Ap=Wb;function Ub(t,e){var r=Xe(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}var Mp=Ub;function pi(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}pi.prototype.clear=kp;pi.prototype.delete=Bp;pi.prototype.get=Fp;pi.prototype.has=Ap;pi.prototype.set=Mp;var cn=pi;var Hb="Expected a function";function xl(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Hb);var r=function(){var i=arguments,n=e?e.apply(this,i):i[0],o=r.cache;if(o.has(n))return o.get(n);var a=t.apply(this,i);return r.cache=o.set(n,a)||o,a};return r.cache=new(xl.Cache||cn),r}xl.Cache=cn;var Oo=xl;function Yb(){this.__data__=new Ge,this.size=0}var Lp=Yb;function jb(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var Ep=jb;function Gb(t){return this.__data__.get(t)}var Op=Gb;function Vb(t){return this.__data__.has(t)}var Ip=Vb;var Xb=200;function Kb(t,e){var r=this.__data__;if(r instanceof Ge){var i=r.__data__;if(!Ve||i.length<Xb-1)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new cn(i)}return r.set(t,e),this.size=r.size,this}var Dp=Kb;function di(t){var e=this.__data__=new Ge(t);this.size=e.size}di.prototype.clear=Lp;di.prototype.delete=Ep;di.prototype.get=Op;di.prototype.has=Ip;di.prototype.set=Dp;var Np=di;var Zb=function(){try{var t=jt(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),mi=Zb;function Qb(t,e,r){e=="__proto__"&&mi?mi(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var gi=Qb;function Jb(t,e,r){(r!==void 0&&!Ye(t[e],r)||r===void 0&&!(e in t))&&gi(t,e,r)}var un=Jb;function tC(t){return function(e,r,i){for(var n=-1,o=Object(e),a=i(e),s=a.length;s--;){var l=a[t?s:++n];if(r(o[l],l,o)===!1)break}return e}}var Rp=tC;var eC=Rp(),Pp=eC;var Wp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$p=Wp&&typeof module=="object"&&module&&!module.nodeType&&module,rC=$p&&$p.exports===Wp,zp=rC?ft.Buffer:void 0,qp=zp?zp.allocUnsafe:void 0;function iC(t,e){if(e)return t.slice();var r=t.length,i=qp?qp(r):new t.constructor(r);return t.copy(i),i}var Up=iC;var nC=ft.Uint8Array,yl=nC;function oC(t){var e=new t.constructor(t.byteLength);return new yl(e).set(new yl(t)),e}var Hp=oC;function aC(t,e){var r=e?Hp(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var Yp=aC;function sC(t,e){var r=-1,i=t.length;for(e||(e=Array(i));++r<i;)e[r]=t[r];return e}var jp=sC;var Gp=Object.create,lC=function(){function t(){}return function(e){if(!Yt(e))return{};if(Gp)return Gp(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),Vp=lC;function cC(t,e){return function(r){return t(e(r))}}var Io=cC;var uC=Io(Object.getPrototypeOf,Object),Do=uC;var hC=Object.prototype;function fC(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||hC;return t===r}var Ke=fC;function pC(t){return typeof t.constructor=="function"&&!Ke(t)?Vp(Do(t)):{}}var Xp=pC;function dC(t){return t!=null&&typeof t=="object"}var ge=dC;var mC="[object Arguments]";function gC(t){return ge(t)&&oe(t)==mC}var _l=gC;var Kp=Object.prototype,xC=Kp.hasOwnProperty,yC=Kp.propertyIsEnumerable,_C=_l(function(){return arguments}())?_l:function(t){return ge(t)&&xC.call(t,"callee")&&!yC.call(t,"callee")},Br=_C;var bC=Array.isArray,Fr=bC;var CC=9007199254740991;function TC(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=CC}var No=TC;function vC(t){return t!=null&&No(t.length)&&!ui(t)}var Ze=vC;function SC(t){return ge(t)&&Ze(t)}var Zp=SC;function kC(){return!1}var Qp=kC;var ed=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Jp=ed&&typeof module=="object"&&module&&!module.nodeType&&module,wC=Jp&&Jp.exports===ed,td=wC?ft.Buffer:void 0,BC=td?td.isBuffer:void 0,FC=BC||Qp,xi=FC;var AC="[object Object]",MC=Function.prototype,LC=Object.prototype,rd=MC.toString,EC=LC.hasOwnProperty,OC=rd.call(Object);function IC(t){if(!ge(t)||oe(t)!=AC)return!1;var e=Do(t);if(e===null)return!0;var r=EC.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&rd.call(r)==OC}var id=IC;var DC="[object Arguments]",NC="[object Array]",RC="[object Boolean]",PC="[object Date]",$C="[object Error]",zC="[object Function]",qC="[object Map]",WC="[object Number]",UC="[object Object]",HC="[object RegExp]",YC="[object Set]",jC="[object String]",GC="[object WeakMap]",VC="[object ArrayBuffer]",XC="[object DataView]",KC="[object Float32Array]",ZC="[object Float64Array]",QC="[object Int8Array]",JC="[object Int16Array]",tT="[object Int32Array]",eT="[object Uint8Array]",rT="[object Uint8ClampedArray]",iT="[object Uint16Array]",nT="[object Uint32Array]",lt={};lt[KC]=lt[ZC]=lt[QC]=lt[JC]=lt[tT]=lt[eT]=lt[rT]=lt[iT]=lt[nT]=!0;lt[DC]=lt[NC]=lt[VC]=lt[RC]=lt[XC]=lt[PC]=lt[$C]=lt[zC]=lt[qC]=lt[WC]=lt[UC]=lt[HC]=lt[YC]=lt[jC]=lt[GC]=!1;function oT(t){return ge(t)&&No(t.length)&&!!lt[oe(t)]}var nd=oT;function aT(t){return function(e){return t(e)}}var od=aT;var ad=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hn=ad&&typeof module=="object"&&module&&!module.nodeType&&module,sT=hn&&hn.exports===ad,bl=sT&&Lo.process,lT=function(){try{var t=hn&&hn.require&&hn.require("util").types;return t||bl&&bl.binding&&bl.binding("util")}catch(e){}}(),Cl=lT;var sd=Cl&&Cl.isTypedArray,cT=sd?od(sd):nd,yi=cT;function uT(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var fn=uT;var hT=Object.prototype,fT=hT.hasOwnProperty;function pT(t,e,r){var i=t[e];(!(fT.call(t,e)&&Ye(i,r))||r===void 0&&!(e in t))&&gi(t,e,r)}var ld=pT;function dT(t,e,r,i){var n=!r;r||(r={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=i?i(r[s],t[s],s,r,t):void 0;l===void 0&&(l=t[s]),n?gi(r,s,l):ld(r,s,l)}return r}var cd=dT;function mT(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}var ud=mT;var gT=9007199254740991,xT=/^(?:0|[1-9]\d*)$/;function yT(t,e){var r=typeof t;return e=e==null?gT:e,!!e&&(r=="number"||r!="symbol"&&xT.test(t))&&t>-1&&t%1==0&&t<e}var Ro=yT;var _T=Object.prototype,bT=_T.hasOwnProperty;function CT(t,e){var r=Fr(t),i=!r&&Br(t),n=!r&&!i&&xi(t),o=!r&&!i&&!n&&yi(t),a=r||i||n||o,s=a?ud(t.length,String):[],l=s.length;for(var c in t)(e||bT.call(t,c))&&!(a&&(c=="length"||n&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Ro(c,l)))&&s.push(c);return s}var hd=CT;function TT(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var fd=TT;var vT=Object.prototype,ST=vT.hasOwnProperty;function kT(t){if(!Yt(t))return fd(t);var e=Ke(t),r=[];for(var i in t)i=="constructor"&&(e||!ST.call(t,i))||r.push(i);return r}var pd=kT;function wT(t){return Ze(t)?hd(t,!0):pd(t)}var Po=wT;function BT(t){return cd(t,Po(t))}var dd=BT;function FT(t,e,r,i,n,o,a){var s=fn(t,r),l=fn(e,r),c=a.get(l);if(c){un(t,r,c);return}var u=o?o(s,l,r+"",t,e,a):void 0,h=u===void 0;if(h){var f=Fr(l),p=!f&&xi(l),x=!f&&!p&&yi(l);u=l,f||p||x?Fr(s)?u=s:Zp(s)?u=jp(s):p?(h=!1,u=Up(l,!0)):x?(h=!1,u=Yp(l,!0)):u=[]:id(l)||Br(l)?(u=s,Br(s)?u=dd(s):(!Yt(s)||ui(s))&&(u=Xp(l))):h=!1}h&&(a.set(l,u),n(u,l,i,o,a),a.delete(l)),un(t,r,u)}var md=FT;function gd(t,e,r,i,n){t!==e&&Pp(e,function(o,a){if(n||(n=new Np),Yt(o))md(t,e,a,r,gd,i,n);else{var s=i?i(fn(t,a),o,a+"",t,e,n):void 0;s===void 0&&(s=o),un(t,a,s)}},Po)}var xd=gd;function AT(t){return t}var $o=AT;function MT(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var yd=MT;var _d=Math.max;function LT(t,e,r){return e=_d(e===void 0?t.length-1:e,0),function(){for(var i=arguments,n=-1,o=_d(i.length-e,0),a=Array(o);++n<o;)a[n]=i[e+n];n=-1;for(var s=Array(e+1);++n<e;)s[n]=i[n];return s[e]=r(a),yd(t,this,s)}}var bd=LT;function ET(t){return function(){return t}}var Cd=ET;var OT=mi?function(t,e){return mi(t,"toString",{configurable:!0,enumerable:!1,value:Cd(e),writable:!0})}:$o,Td=OT;var IT=800,DT=16,NT=Date.now;function RT(t){var e=0,r=0;return function(){var i=NT(),n=DT-(i-r);if(r=i,n>0){if(++e>=IT)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var vd=RT;var PT=vd(Td),Sd=PT;function $T(t,e){return Sd(bd(t,e,$o),t+"")}var kd=$T;function zT(t,e,r){if(!Yt(r))return!1;var i=typeof e;return(i=="number"?Ze(r)&&Ro(e,r.length):i=="string"&&e in r)?Ye(r[e],t):!1}var wd=zT;function qT(t){return kd(function(e,r){var i=-1,n=r.length,o=n>1?r[n-1]:void 0,a=n>2?r[2]:void 0;for(o=t.length>3&&typeof o=="function"?(n--,o):void 0,a&&wd(r[0],r[1],a)&&(o=n<3?void 0:o,n=1),e=Object(e);++i<n;){var s=r[i];s&&t(e,s,i,o)}return e})}var Bd=qT;var WT=Bd(function(t,e,r){xd(t,e,r)}),Fd=WT;var UT=Io(Object.keys,Object),Ad=UT;var HT=Object.prototype,YT=HT.hasOwnProperty;function jT(t){if(!Ke(t))return Ad(t);var e=[];for(var r in Object(t))YT.call(t,r)&&r!="constructor"&&e.push(r);return e}var Md=jT;var GT=jt(ft,"DataView"),zo=GT;var VT=jt(ft,"Promise"),qo=VT;var XT=jt(ft,"Set"),Wo=XT;var KT=jt(ft,"WeakMap"),Uo=KT;var Ld="[object Map]",ZT="[object Object]",Ed="[object Promise]",Od="[object Set]",Id="[object WeakMap]",Dd="[object DataView]",QT=Me(zo),JT=Me(Ve),tv=Me(qo),ev=Me(Wo),rv=Me(Uo),Ar=oe;(zo&&Ar(new zo(new ArrayBuffer(1)))!=Dd||Ve&&Ar(new Ve)!=Ld||qo&&Ar(qo.resolve())!=Ed||Wo&&Ar(new Wo)!=Od||Uo&&Ar(new Uo)!=Id)&&(Ar=function(t){var e=oe(t),r=e==ZT?t.constructor:void 0,i=r?Me(r):"";if(i)switch(i){case QT:return Dd;case JT:return Ld;case tv:return Ed;case ev:return Od;case rv:return Id}return e});var Nd=Ar;var iv="[object Map]",nv="[object Set]",ov=Object.prototype,av=ov.hasOwnProperty;function sv(t){if(t==null)return!0;if(Ze(t)&&(Fr(t)||typeof t=="string"||typeof t.splice=="function"||xi(t)||yi(t)||Br(t)))return!t.length;var e=Nd(t);if(e==iv||e==nv)return!t.size;if(Ke(t))return!Md(t).length;for(var r in t)if(av.call(t,r))return!1;return!0}var Ho=sv;var gm=qa(vc(),1),xm=qa(Sc(),1);var yn=qa(Kf(),1);var Yo="comm",jo="rule",Go="decl";var Rd="@import";var Pd="@keyframes";var $d=Math.abs,pn=String.fromCharCode;function Vo(t){return t.trim()}function Xo(t,e,r){return t.replace(e,r)}function zd(t,e){return t.indexOf(e)}function Mr(t,e){return t.charCodeAt(e)|0}function Lr(t,e,r){return t.slice(e,r)}function ae(t){return t.length}function Ko(t){return t.length}function _i(t,e){return e.push(t),t}var Zo=1,bi=1,qd=0,Qt=0,pt=0,Ci="";function Qo(t,e,r,i,n,o,a){return{value:t,root:e,parent:r,type:i,props:n,children:o,line:Zo,column:bi,length:a,return:""}}function Wd(){return pt}function Ud(){return pt=Qt>0?Mr(Ci,--Qt):0,bi--,pt===10&&(bi=1,Zo--),pt}function Jt(){return pt=Qt<qd?Mr(Ci,Qt++):0,bi++,pt===10&&(bi=1,Zo++),pt}function Qe(){return Mr(Ci,Qt)}function dn(){return Qt}function Jo(t,e){return Lr(Ci,t,e)}function Tl(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Hd(t){return Zo=bi=1,qd=ae(Ci=t),Qt=0,[]}function Yd(t){return Ci="",t}function ta(t){return Vo(Jo(Qt-1,vl(t===91?t+2:t===40?t+1:t)))}function jd(t){for(;(pt=Qe())&&pt<33;)Jt();return Tl(t)>2||Tl(pt)>3?"":" "}function Gd(t,e){for(;--e&&Jt()&&!(pt<48||pt>102||pt>57&&pt<65||pt>70&&pt<97););return Jo(t,dn()+(e<6&&Qe()==32&&Jt()==32))}function vl(t){for(;Jt();)switch(pt){case t:return Qt;case 34:case 39:t!==34&&t!==39&&vl(pt);break;case 40:t===41&&vl(t);break;case 92:Jt();break}return Qt}function Vd(t,e){for(;Jt()&&t+pt!==47+10;)if(t+pt===42+42&&Qe()===47)break;return"/*"+Jo(e,Qt-1)+"*"+pn(t===47?t:Jt())}function Xd(t){for(;!Tl(Qe());)Jt();return Jo(t,Qt)}function Qd(t){return Yd(ea("",null,null,null,[""],t=Hd(t),0,[0],t))}function ea(t,e,r,i,n,o,a,s,l){for(var c=0,u=0,h=a,f=0,p=0,x=0,b=1,v=1,B=1,T=0,M="",E=n,I=o,F=i,y=M;v;)switch(x=T,T=Jt()){case 40:if(x!=108&&Mr(y,h-1)==58){zd(y+=Xo(ta(T),"&","&\f"),"&\f")!=-1&&(B=-1);break}case 34:case 39:case 91:y+=ta(T);break;case 9:case 10:case 13:case 32:y+=jd(x);break;case 92:y+=Gd(dn()-1,7);continue;case 47:switch(Qe()){case 42:case 47:_i(lv(Vd(Jt(),dn()),e,r),l);break;default:y+="/"}break;case 123*b:s[c++]=ae(y)*B;case 125*b:case 59:case 0:switch(T){case 0:case 125:v=0;case 59+u:p>0&&ae(y)-h&&_i(p>32?Zd(y+";",i,r,h-1):Zd(Xo(y," ","")+";",i,r,h-2),l);break;case 59:y+=";";default:if(_i(F=Kd(y,e,r,c,u,n,s,M,E=[],I=[],h),o),T===123)if(u===0)ea(y,e,F,F,E,o,h,s,I);else switch(f===99&&Mr(y,3)===110?100:f){case 100:case 109:case 115:ea(t,F,F,i&&_i(Kd(t,F,F,0,0,n,s,M,n,E=[],h),I),n,I,h,s,i?E:I);break;default:ea(y,F,F,F,[""],I,0,s,I)}}c=u=p=0,b=B=1,M=y="",h=a;break;case 58:h=1+ae(y),p=x;default:if(b<1){if(T==123)--b;else if(T==125&&b++==0&&Ud()==125)continue}switch(y+=pn(T),T*b){case 38:B=u>0?1:(y+="\f",-1);break;case 44:s[c++]=(ae(y)-1)*B,B=1;break;case 64:Qe()===45&&(y+=ta(Jt())),f=Qe(),u=h=ae(M=y+=Xd(dn())),T++;break;case 45:x===45&&ae(y)==2&&(b=0)}}return o}function Kd(t,e,r,i,n,o,a,s,l,c,u){for(var h=n-1,f=n===0?o:[""],p=Ko(f),x=0,b=0,v=0;x<i;++x)for(var B=0,T=Lr(t,h+1,h=$d(b=a[x])),M=t;B<p;++B)(M=Vo(b>0?f[B]+" "+T:Xo(T,/&\f/g,f[B])))&&(l[v++]=M);return Qo(t,e,r,n===0?jo:s,l,c,u)}function lv(t,e,r){return Qo(t,e,r,Yo,pn(Wd()),Lr(t,2,-2),0)}function Zd(t,e,r,i){return Qo(t,e,r,Go,Lr(t,0,i),Lr(t,i+1,-1),i)}function ra(t,e){for(var r="",i=Ko(t),n=0;n<i;n++)r+=e(t[n],n,t,e)||"";return r}function Jd(t,e,r,i){switch(t.type){case Rd:case Go:return t.return=t.return||t.value;case Yo:return"";case Pd:return t.return=t.value+"{"+ra(t.children,i)+"}";case jo:t.value=t.props.join(",")}return ae(r=ra(t.children,i))?t.return=t.value+"{"+r+"}":""}var Ee={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},Y={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},Dl=function(t="fatal"){let e=Ee.fatal;typeof t=="string"?(t=t.toLowerCase(),t in Ee&&(e=Ee[t])):typeof t=="number"&&(e=t),Y.trace=()=>{},Y.debug=()=>{},Y.info=()=>{},Y.warn=()=>{},Y.error=()=>{},Y.fatal=()=>{},e<=Ee.fatal&&(Y.fatal=console.error?console.error.bind(console,te("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",te("FATAL"))),e<=Ee.error&&(Y.error=console.error?console.error.bind(console,te("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",te("ERROR"))),e<=Ee.warn&&(Y.warn=console.warn?console.warn.bind(console,te("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",te("WARN"))),e<=Ee.info&&(Y.info=console.info?console.info.bind(console,te("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",te("INFO"))),e<=Ee.debug&&(Y.debug=console.debug?console.debug.bind(console,te("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",te("DEBUG"))),e<=Ee.trace&&(Y.trace=console.debug?console.debug.bind(console,te("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",te("TRACE")))},te=t=>`%c${(0,gm.default)().format("ss.SSS")} : ${t} : `,ga=/<br\s*\/?>/gi,cv=t=>t?_m(t).replace(/\\n/g,"#br#").split("#br#"):[""],ym=t=>yn.default.sanitize(t),tm=(t,e)=>{var r;if(((r=e.flowchart)==null?void 0:r.htmlLabels)!==!1){let i=e.securityLevel;i==="antiscript"||i==="strict"?t=ym(t):i!=="loose"&&(t=_m(t),t=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"),t=t.replace(/=/g,"&equals;"),t=pv(t))}return t},_n=(t,e)=>t&&(e.dompurifyConfig?t=yn.default.sanitize(tm(t,e),e.dompurifyConfig).toString():t=yn.default.sanitize(tm(t,e),{FORBID_TAGS:["style"]}).toString(),t),uv=(t,e)=>typeof t=="string"?_n(t,e):t.flat().map(r=>_n(r,e)),hv=t=>ga.test(t),fv=t=>t.split(ga),pv=t=>t.replace(/#br#/g,"<br/>"),_m=t=>t.replace(ga,"#br#"),dv=t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},bm=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),mv=function(...t){let e=t.filter(r=>!isNaN(r));return Math.max(...e)},gv=function(...t){let e=t.filter(r=>!isNaN(r));return Math.min(...e)},Rz=function(t){let e=t.split(/(,)/),r=[];for(let i=0;i<e.length;i++){let n=e[i];if(n===","&&i>0&&i+1<e.length){let o=e[i-1],a=e[i+1];xv(o,a)&&(n=o+","+a,i++,r.pop())}r.push(yv(n))}return r.join("")},Fl=(t,e)=>Math.max(0,t.split(e).length-1),xv=(t,e)=>{let r=Fl(t,"~"),i=Fl(e,"~");return r===1&&i===1},yv=t=>{let e=Fl(t,"~"),r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);let i=[...t],n=i.indexOf("~"),o=i.lastIndexOf("~");for(;n!==-1&&o!==-1&&n!==o;)i[n]="<",i[o]=">",n=i.indexOf("~"),o=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},Nl={getRows:cv,sanitizeText:_n,sanitizeTextOrArray:uv,hasBreaks:hv,splitBreaks:fv,lineBreakRegex:ga,removeScript:ym,getUrl:dv,evaluate:bm,getMax:mv,getMin:gv},qt=(t,e)=>e?m(t,{s:-40,l:10}):m(t,{s:-40,l:-10}),xa="#ffffff",ya="#f2f2f2",_v=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(){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||qt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||qt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||qt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||qt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||L(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||L(this.tertiaryColor),this.lineColor=this.lineColor||L(this.background),this.arrowheadColor=this.arrowheadColor||L(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?H(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||H(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||L(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||z(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 r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=H(this["cScale"+r],75);else for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=H(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||L(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||z(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||H(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;let e=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||m(this.mainBkg,{h:180,s:-15,l:e*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||m(this.mainBkg,{h:180,s:-15,l:e*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||m(this.primaryColor,{h:64}),this.fillType3=this.fillType3||m(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||m(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||m(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||m(this.primaryColor,{h:128}),this.fillType7=this.fillType7||m(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||m(this.primaryColor,{l:-10}),this.pie5=this.pie5||m(this.secondaryColor,{l:-10}),this.pie6=this.pie6||m(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||m(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||m(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||m(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||m(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||m(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||m(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||m(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||m(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||m(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||m(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||m(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||m(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||wr(this.quadrant1Fill)?z(this.quadrant1Fill):H(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?H(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||m(this.primaryColor,{h:-30}),this.git4=this.git4||m(this.primaryColor,{h:-60}),this.git5=this.git5||m(this.primaryColor,{h:-90}),this.git6=this.git6||m(this.primaryColor,{h:60}),this.git7=this.git7||m(this.primaryColor,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=H(this.git0,25),this.git1=H(this.git1,25),this.git2=H(this.git2,25),this.git3=H(this.git3,25),this.git4=H(this.git4,25),this.git5=H(this.git5,25),this.git6=H(this.git6,25),this.git7=H(this.git7,25)),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||xa,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ya}calculate(e){if(typeof e!="object"){this.updateColors();return}let r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},bv=t=>{let e=new _v;return e.calculate(t),e},Cv=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=z(this.primaryColor,16),this.tertiaryColor=m(this.primaryColor,{h:-160}),this.primaryBorderColor=L(this.background),this.secondaryBorderColor=qt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=qt(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.tertiaryColor),this.lineColor=L(this.background),this.textColor=L(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=z(L("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=He(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=H("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=H(this.sectionBkgColor,10),this.taskBorderColor=He(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=He(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(){this.secondBkg=z(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=z(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=z(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 e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||L(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScalePeer"+e]=this["cScalePeer"+e]||z(this["cScale"+e],10);for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||m(this.mainBkg,{h:30,s:-30,l:-(-10+e*4)}),this["surfacePeer"+e]=this["surfacePeer"+e]||m(this.mainBkg,{h:30,s:-30,l:-(-7+e*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["pie"+e]=this["cScale"+e];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||m(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||m(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||m(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||m(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||m(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||m(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||wr(this.quadrant1Fill)?z(this.quadrant1Fill):H(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?H(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=z(this.secondaryColor,20),this.git1=z(this.pie2||this.secondaryColor,20),this.git2=z(this.pie3||this.tertiaryColor,20),this.git3=z(this.pie4||m(this.primaryColor,{h:-30}),20),this.git4=z(this.pie5||m(this.primaryColor,{h:-60}),20),this.git5=z(this.pie6||m(this.primaryColor,{h:-90}),10),this.git6=z(this.pie7||m(this.primaryColor,{h:60}),10),this.git7=z(this.pie8||m(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||L(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||L(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||z(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||z(this.background,2)}calculate(e){if(typeof e!="object"){this.updateColors();return}let r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},Tv=t=>{let e=new Cv;return e.calculate(t),e},vv=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=qt(this.primaryColor,this.darkMode),this.secondaryBorderColor=qt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=qt(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.tertiaryColor),this.lineColor=L(this.background),this.textColor=L(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=He(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(){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||H(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||H(this.tertiaryColor,40);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=H(this["cScale"+e],10),this["cScalePeer"+e]=this["cScalePeer"+e]||H(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||m(this["cScale"+e],{h:180});for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||m(this.mainBkg,{h:30,l:-(5+e*5)}),this["surfacePeer"+e]=this["surfacePeer"+e]||m(this.mainBkg,{h:30,l:-(7+e*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||L(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||L(this.labelTextColor);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=z(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,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||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,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.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||m(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||m(this.primaryColor,{l:-10}),this.pie5=this.pie5||m(this.secondaryColor,{l:-30}),this.pie6=this.pie6||m(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||m(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||m(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||m(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||m(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||m(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||m(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||m(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||m(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||m(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||m(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||m(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||m(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||wr(this.quadrant1Fill)?z(this.quadrant1Fill):H(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||m(this.primaryColor,{h:-30}),this.git4=this.git4||m(this.primaryColor,{h:-60}),this.git5=this.git5||m(this.primaryColor,{h:-90}),this.git6=this.git6||m(this.primaryColor,{h:60}),this.git7=this.git7||m(this.primaryColor,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=H(this.git0,25),this.git1=H(this.git1,25),this.git2=H(this.git2,25),this.git3=H(this.git3,25),this.git4=H(this.git4,25),this.git5=H(this.git5,25),this.git6=H(this.git6,25),this.git7=H(this.git7,25)),this.gitInv0=this.gitInv0||H(L(this.git0),25),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||L(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||L(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||xa,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ya}calculate(e){if(typeof e!="object"){this.updateColors();return}let r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},Sv=t=>{let e=new vv;return e.calculate(t),e},kv=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=z("#cde498",10),this.primaryBorderColor=qt(this.primaryColor,this.darkMode),this.secondaryBorderColor=qt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=qt(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.primaryColor),this.lineColor=L(this.background),this.textColor=L(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(){this.actorBorder=H(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||H(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||H(this.tertiaryColor,40);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=H(this["cScale"+e],10),this["cScalePeer"+e]=this["cScalePeer"+e]||H(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||m(this["cScale"+e],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||m(this.mainBkg,{h:30,s:-30,l:-(5+e*5)}),this["surfacePeer"+e]=this["surfacePeer"+e]||m(this.mainBkg,{h:30,s:-30,l:-(8+e*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=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||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,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.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||m(this.primaryColor,{l:-30}),this.pie5=this.pie5||m(this.secondaryColor,{l:-30}),this.pie6=this.pie6||m(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||m(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||m(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||m(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||m(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||m(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||m(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||m(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||m(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||m(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||m(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||m(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||m(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||wr(this.quadrant1Fill)?z(this.quadrant1Fill):H(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||m(this.primaryColor,{h:-30}),this.git4=this.git4||m(this.primaryColor,{h:-60}),this.git5=this.git5||m(this.primaryColor,{h:-90}),this.git6=this.git6||m(this.primaryColor,{h:60}),this.git7=this.git7||m(this.primaryColor,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=H(this.git0,25),this.git1=H(this.git1,25),this.git2=H(this.git2,25),this.git3=H(this.git3,25),this.git4=H(this.git4,25),this.git5=H(this.git5,25),this.git6=H(this.git6,25),this.git7=H(this.git7,25)),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||L(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||L(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||xa,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ya}calculate(e){if(typeof e!="object"){this.updateColors();return}let r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},wv=t=>{let e=new kv;return e.calculate(t),e},Al=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=z(this.contrast,55),this.background="#ffffff",this.tertiaryColor=m(this.primaryColor,{h:-160}),this.primaryBorderColor=qt(this.primaryColor,this.darkMode),this.secondaryBorderColor=qt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=qt(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.tertiaryColor),this.lineColor=L(this.background),this.textColor=L(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(){this.secondBkg=z(this.contrast,55),this.border2=this.contrast,this.actorBorder=z(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 e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||L(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this.darkMode?this["cScalePeer"+e]=this["cScalePeer"+e]||z(this["cScale"+e],10):this["cScalePeer"+e]=this["cScalePeer"+e]||H(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||m(this.mainBkg,{l:-(5+e*5)}),this["surfacePeer"+e]=this["surfacePeer"+e]||m(this.mainBkg,{l:-(8+e*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=z(this.contrast,30),this.sectionBkgColor2=z(this.contrast,30),this.taskBorderColor=H(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=z(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=H(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",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||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,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});for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["pie"+e]=this["cScale"+e];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||m(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||m(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||m(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||m(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||m(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||m(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||wr(this.quadrant1Fill)?z(this.quadrant1Fill):H(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=H(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||m(this.primaryColor,{h:-30}),this.git4=this.pie5||m(this.primaryColor,{h:-60}),this.git5=this.pie6||m(this.primaryColor,{h:-90}),this.git6=this.pie7||m(this.primaryColor,{h:60}),this.git7=this.pie8||m(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||xa,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ya}calculate(e){if(typeof e!="object"){this.updateColors();return}let r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},Bv=t=>{let e=new Al;return e.calculate(t),e},Ie={base:{getThemeVariables:bv},dark:{getThemeVariables:Tv},default:{getThemeVariables:Sv},forest:{getThemeVariables:wv},neutral:{getThemeVariables:Bv}},Je={flowchart:{useMaxWidth:!0,titleTopMargin:25,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},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,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:""},theme:"default",maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,fontSize:16},Cm=ue(ce({},Je),{deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:Ie.default.getThemeVariables(),sequence:ue(ce({},Je.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:ue(ce({},Je.gantt),{tickInterval:void 0,useWidth:void 0}),c4:ue(ce({},Je.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:ue(ce({},Je.pie),{useWidth:984}),requirement:ue(ce({},Je.requirement),{useWidth:void 0}),gitGraph:ue(ce({},Je.gitGraph),{useMaxWidth:!1}),sankey:ue(ce({},Je.sankey),{useMaxWidth:!1})}),Tm=(t,e="")=>Object.keys(t).reduce((r,i)=>Array.isArray(t[i])?r:typeof t[i]=="object"&&t[i]!==null?[...r,e+i,...Tm(t[i],"")]:[...r,e+i],[]),Fv=new Set(Tm(Cm,"")),Av=Cm,oa=t=>{if(Y.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>oa(e));return}for(let e of Object.keys(t)){if(Y.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Fv.has(e)||t[e]==null){Y.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){Y.debug("sanitizing object",e),oa(t[e]);continue}let r=["themeCSS","fontFamily","altFontFamily"];for(let i of r)e.includes(i)&&(Y.debug("sanitizing css option",e),t[e]=Mv(t[e]))}if(t.themeVariables)for(let e of Object.keys(t.themeVariables)){let r=t.themeVariables[e];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}Y.debug("After sanitization",t)}},Mv=t=>{let e=0,r=0;for(let i of t){if(e<r)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?e++:i==="}"&&r++}return e!==r?"{ /* ERROR: Unbalanced CSS */ }":t},vm=new RegExp("^-{3}\\s*[\\n\\r](.*?)[\\n\\r]-{3}\\s*[\\n\\r]+","s"),mn=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Lv=/\s*%%.*\n/gm,aa=class extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}},Si={},_a=function(t,e){t=t.replace(vm,"").replace(mn,"").replace(Lv,`
`);for(let[r,{detector:i}]of Object.entries(Si))if(i(t,e))return r;throw new aa(`No diagram type detected matching given configuration for text: ${t}`)},Sm=(...t)=>{for(let{id:e,detector:r,loader:i}of t)km(e,r,i)},km=(t,e,r)=>{Si[t]?Y.error(`Detector with key ${t} already exists`):Si[t]={detector:e,loader:r},Y.debug(`Detector with key ${t} added${r?" with loader":""}`)},Ev=t=>Si[t].loader,Ml=(t,e,{depth:r=2,clobber:i=!1}={})=>{let n={depth:r,clobber:i};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(o=>Ml(t,o,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(o=>{t.includes(o)||t.push(o)}),t):t===void 0||r<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(o=>{typeof e[o]=="object"&&(t[o]===void 0||typeof t[o]=="object")?(t[o]===void 0&&(t[o]=Array.isArray(e[o])?[]:{}),t[o]=Ml(t[o],e[o],{depth:r-1,clobber:i})):(i||typeof t[o]!="object"&&typeof e[o]!="object")&&(t[o]=e[o])}),t)},It=Ml,Ov="\u200B",Iv={curveBasis:$s,curveBasisClosed:Ws,curveBasisOpen:Us,curveBumpX:zs,curveBumpY:qs,curveBundle:Hs,curveCardinalClosed:js,curveCardinalOpen:Gs,curveCardinal:Ys,curveCatmullRomClosed:Xs,curveCatmullRomOpen:Ks,curveCatmullRom:Vs,curveLinear:Vi,curveLinearClosed:Zs,curveMonotoneX:Js,curveMonotoneY:tl,curveNatural:el,curveStep:rl,curveStepAfter:nl,curveStepBefore:il},Dv=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Nv=function(t,e){let r=wm(t,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(r)){let a=r.map(s=>s.args);oa(a),i=It(i,[...a])}else i=r.args;if(!i)return;let n=_a(t,e),o="config";return i[o]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),i[n]=i[o],delete i[o]),i},wm=function(t,e=null){try{let r=new RegExp(`[%]{2}(?![{]${Dv.source})(?=[}][%]{2}).*
`,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),Y.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let i,n=[];for(;(i=mn.exec(t))!==null;)if(i.index===mn.lastIndex&&mn.lastIndex++,i&&!e||e&&i[1]&&i[1].match(e)||e&&i[2]&&i[2].match(e)){let o=i[1]?i[1]:i[2],a=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;n.push({type:o,args:a})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(r){return Y.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},Rv=function(t){return t.replace(mn,"")},Pv=function(t,e){for(let[r,i]of e.entries())if(i.match(t))return r;return-1};function $v(t,e){var i;if(!t)return e;let r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return(i=Iv[r])!=null?i:e}function zv(t,e){let r=t.trim();if(r)return e.securityLevel!=="loose"?(0,xm.sanitizeUrl)(r):r}var qv=(t,...e)=>{let r=t.split("."),i=r.length-1,n=r[i],o=window;for(let a=0;a<i;a++)if(o=o[r[a]],!o){Y.error(`Function name: ${t} not found in window`);return}o[n](...e)};function Bm(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Wv(t){let e,r=0;t.forEach(n=>{r+=Bm(n,e),e=n});let i=r/2;return Rl(t,i)}function Uv(t){return t.length===1?t[0]:Wv(t)}var em=(t,e=2)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},Rl=(t,e)=>{let r,i=e;for(let n of t){if(r){let o=Bm(n,r);if(o<i)i-=o;else{let a=i/o;if(a<=0)return r;if(a>=1)return{x:n.x,y:n.y};if(a>0&&a<1)return{x:em((1-a)*r.x+a*n.x,5),y:em((1-a)*r.y+a*n.y,5)}}}r=n}throw new Error("Could not find a suitable point for the given distance")},Hv=(t,e,r)=>{Y.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());let n=Rl(e,25),o=t?10:5,a=Math.atan2(e[0].y-n.y,e[0].x-n.x),s={x:0,y:0};return s.x=Math.sin(a)*o+(e[0].x+n.x)/2,s.y=-Math.cos(a)*o+(e[0].y+n.y)/2,s};function Yv(t,e,r){let i=structuredClone(r);Y.info("our points",i),e!=="start_left"&&e!=="start_right"&&i.reverse();let n=25+t,o=Rl(i,n),a=10+t*.5,s=Math.atan2(i[0].y-o.y,i[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(s+Math.PI)*a+(i[0].x+o.x)/2,l.y=-Math.cos(s+Math.PI)*a+(i[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(s-Math.PI)*a+(i[0].x+o.x)/2-5,l.y=-Math.cos(s-Math.PI)*a+(i[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(s)*a+(i[0].x+o.x)/2-5,l.y=-Math.cos(s)*a+(i[0].y+o.y)/2-5):(l.x=Math.sin(s)*a+(i[0].x+o.x)/2,l.y=-Math.cos(s)*a+(i[0].y+o.y)/2),l}function jv(t){let e="",r="";for(let i of t)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":e=e+i+";");return{style:e,labelStyle:r}}var rm=0,Gv=()=>(rm++,"id-"+Math.random().toString(36).substr(2,12)+"-"+rm);function Vv(t){let e="",r="0123456789abcdef",i=r.length;for(let n=0;n<t;n++)e+=r.charAt(Math.floor(Math.random()*i));return e}var Xv=t=>Vv(t.length),Kv=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:""}},Zv=function(t,e){let r=e.text.replace(Nl.lineBreakRegex," "),[,i]=$l(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",i),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);let o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(r),n},Qv=Oo((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Nl.lineBreakRegex.test(t)))return t;let i=t.split(" "),n=[],o="";return i.forEach((a,s)=>{let l=sa(`${a} `,r),c=sa(o,r);if(l>e){let{hyphenatedStrings:f,remainingWord:p}=Jv(a,e,"-",r);n.push(o,...f),o=p}else c+l>=e?(n.push(o),o=a):o=[o,a].filter(Boolean).join(" ");s+1===i.length&&n.push(o)}),n.filter(a=>a!=="").join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),Jv=Oo((t,e,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);let n=[...t],o=[],a="";return n.forEach((s,l)=>{let c=`${a}${s}`;if(sa(c,i)>=e){let h=l+1,f=n.length===h,p=`${c}${r}`;o.push(f?c:p),a=""}else a=c}),{hyphenatedStrings:o,remainingWord:a}},(t,e,r="-",i)=>`${t}${e}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function tS(t,e){return Pl(t,e).height}function sa(t,e){return Pl(t,e).width}var Pl=Oo((t,e)=>{let{fontSize:r=12,fontFamily:i="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};let[,o]=$l(r),a=["sans-serif",i],s=t.split(Nl.lineBreakRegex),l=[],c=Ht("body");if(!c.remove)return{width:0,height:0,lineHeight:0};let u=c.append("svg");for(let f of a){let p=0,x={width:0,height:0,lineHeight:0};for(let b of s){let v=Kv();v.text=b||Ov;let B=Zv(u,v).style("font-size",o).style("font-weight",n).style("font-family",f),T=(B._groups||B)[0][0].getBBox();if(T.width===0&&T.height===0)throw new Error("svg element not in render tree");x.width=Math.round(Math.max(x.width,T.width)),p=Math.round(T.height),x.height+=p,x.lineHeight=Math.round(Math.max(x.lineHeight,p))}l.push(x)}u.remove();let h=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[h]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),Ll=class{constructor(e=!1,r){this.count=0,this.count=r?r.length:0,this.next=e?()=>this.count++:()=>Date.now()}},ia,eS=function(t){return ia=ia||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ia.innerHTML=t,unescape(ia.textContent)};function Fm(t){return"str"in t}var rS=(t,e,r,i)=>{var n;if(!i)return;let o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(i).attr("x",o.x+o.width/2).attr("y",-r).attr("class",e)},$l=t=>{if(typeof t=="number")return[t,t+"px"];let e=parseInt(t!=null?t:"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function Am(t,e){return Fd({},t,e)}var gn={assignWithDepth:It,wrapLabel:Qv,calculateTextHeight:tS,calculateTextWidth:sa,calculateTextDimensions:Pl,cleanAndMerge:Am,detectInit:Nv,detectDirective:wm,isSubstringInArray:Pv,interpolateToCurve:$v,calcLabelPosition:Uv,calcCardinalityPosition:Hv,calcTerminalLabelPosition:Yv,formatUrl:zv,getStylesFromArray:jv,generateId:Gv,random:Xv,runFunc:qv,entityDecode:eS,insertTitle:rS,parseFontSize:$l,InitIDGenerator:Ll},im="10.5.0",bn=Object.freeze(Av),Gt=It({},bn),Mm,ki=[],xn=It({},bn),ba=(t,e)=>{let r=It({},t),i={};for(let n of e)Em(n),i=It(i,n);if(r=It(r,i),i.theme&&i.theme in Ie){let n=It({},Mm),o=It(n.themeVariables||{},i.themeVariables);r.theme&&r.theme in Ie&&(r.themeVariables=Ie[r.theme].getThemeVariables(o))}return xn=r,Om(xn),xn},iS=t=>(Gt=It({},bn),Gt=It(Gt,t),t.theme&&Ie[t.theme]&&(Gt.themeVariables=Ie[t.theme].getThemeVariables(t.themeVariables)),ba(Gt,ki),Gt),nS=t=>{Mm=It({},t)},oS=t=>(Gt=It(Gt,t),ba(Gt,ki),Gt),Lm=()=>It({},Gt),aS=t=>(Om(t),It(xn,t),se()),se=()=>It({},xn),Em=t=>{var e;t&&(["secure",...(e=Gt.secure)!=null?e:[]].forEach(r=>{Object.hasOwn(t,r)&&(Y.debug(`Denied attempt to modify a secure key ${r}`,t[r]),delete t[r])}),Object.keys(t).forEach(r=>{r.startsWith("__")&&delete t[r]}),Object.keys(t).forEach(r=>{typeof t[r]=="string"&&(t[r].includes("<")||t[r].includes(">")||t[r].includes("url(data:"))&&delete t[r],typeof t[r]=="object"&&Em(t[r])}))},sS=t=>{oa(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),ki.push(t),ba(Gt,ki)},la=(t=Gt)=>{ki=[],ba(t,ki)},lS={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},nm={},cS=t=>{nm[t]||(Y.warn(lS[t]),nm[t]=!0)},Om=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&cS("LAZY_LOAD_DEPRECATED")},Im="c4",uS=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),hS=async()=>{let{diagram:t}=await import("./c4Diagram-7ff6304f-DXFT4OXL.js");return{id:Im,diagram:t}},fS={id:Im,detector:uS,loader:hS},pS=fS,Dm="flowchart",dS=(t,e)=>{var r,i;return((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},mS=async()=>{let{diagram:t}=await import("./flowDiagram-f303bdd6-BU7YYJFJ.js");return{id:Dm,diagram:t}},gS={id:Dm,detector:dS,loader:mS},xS=gS,Nm="flowchart-v2",yS=(t,e)=>{var r,i,n;return((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"||((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},_S=async()=>{let{diagram:t}=await import("./flowDiagram-v2-34644886-ALB5BB3J.js");return{id:Nm,diagram:t}},bS={id:Nm,detector:yS,loader:_S},CS=bS,Rm="er",TS=t=>/^\s*erDiagram/.test(t),vS=async()=>{let{diagram:t}=await import("./erDiagram-a995d1fe-5CKJMVMH.js");return{id:Rm,diagram:t}},SS={id:Rm,detector:TS,loader:vS},kS=SS,Pm="gitGraph",wS=t=>/^\s*gitGraph/.test(t),BS=async()=>{let{diagram:t}=await import("./gitGraphDiagram-2139c8c6-D556HLLR.js");return{id:Pm,diagram:t}},FS={id:Pm,detector:wS,loader:BS},AS=FS,$m="gantt",MS=t=>/^\s*gantt/.test(t),LS=async()=>{let{diagram:t}=await import("./ganttDiagram-6a1a118f-B76IBCTX.js");return{id:$m,diagram:t}},ES={id:$m,detector:MS,loader:LS},OS=ES,zm="info",IS=t=>/^\s*info/.test(t),DS=async()=>{let{diagram:t}=await import("./infoDiagram-2064d999-636CUJ76.js");return{id:zm,diagram:t}},NS={id:zm,detector:IS,loader:DS},qm="pie",RS=t=>/^\s*pie/.test(t),PS=async()=>{let{diagram:t}=await import("./pieDiagram-ed51bc52-4N6AASKC.js");return{id:qm,diagram:t}},$S={id:qm,detector:RS,loader:PS},Wm="quadrantChart",zS=t=>/^\s*quadrantChart/.test(t),qS=async()=>{let{diagram:t}=await import("./quadrantDiagram-3a393d1c-A7SFVAOR.js");return{id:Wm,diagram:t}},WS={id:Wm,detector:zS,loader:qS},US=WS,Um="requirement",HS=t=>/^\s*requirement(Diagram)?/.test(t),YS=async()=>{let{diagram:t}=await import("./requirementDiagram-e12f1d97-YZ4WO3SH.js");return{id:Um,diagram:t}},jS={id:Um,detector:HS,loader:YS},GS=jS,Hm="sequence",VS=t=>/^\s*sequenceDiagram/.test(t),XS=async()=>{let{diagram:t}=await import("./sequenceDiagram-d89d0f25-2VRYIUM3.js");return{id:Hm,diagram:t}},KS={id:Hm,detector:VS,loader:XS},ZS=KS,Ym="class",QS=(t,e)=>{var r;return((r=e==null?void 0:e.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},JS=async()=>{let{diagram:t}=await import("./classDiagram-04f04946-RPH32K2L.js");return{id:Ym,diagram:t}},tk={id:Ym,detector:QS,loader:JS},ek=tk,jm="classDiagram",rk=(t,e)=>{var r;return/^\s*classDiagram/.test(t)&&((r=e==null?void 0:e.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},ik=async()=>{let{diagram:t}=await import("./classDiagram-v2-d4efdcc3-NAMGACT7.js");return{id:jm,diagram:t}},nk={id:jm,detector:rk,loader:ik},ok=nk,Gm="state",ak=(t,e)=>{var r;return((r=e==null?void 0:e.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},sk=async()=>{let{diagram:t}=await import("./stateDiagram-0d589c85-OPBD3MWQ.js");return{id:Gm,diagram:t}},lk={id:Gm,detector:ak,loader:sk},ck=lk,Vm="stateDiagram",uk=(t,e)=>{var r;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((r=e==null?void 0:e.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},hk=async()=>{let{diagram:t}=await import("./stateDiagram-v2-8bb05ecb-ZZTL3IZY.js");return{id:Vm,diagram:t}},fk={id:Vm,detector:uk,loader:hk},pk=fk,Xm="journey",dk=t=>/^\s*journey/.test(t),mk=async()=>{let{diagram:t}=await import("./journeyDiagram-6df70039-SF3X5V4A.js");return{id:Xm,diagram:t}},gk={id:Xm,detector:dk,loader:mk},xk=gk,yk=t=>{var o;var e;let{securityLevel:r}=se(),i=Ht("body");if(r==="sandbox"){let s=(o=(e=Ht(`#i${t}`).node())==null?void 0:e.contentDocument)!=null?o:document;i=Ht(s.body)}return i.select(`#${t}`)},_k=function(t,e){for(let r of e)t.attr(r[0],r[1])},bk=function(t,e,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${e}px;`)):(i.set("height",t),i.set("width",e)),i},Km=function(t,e,r,i){let n=bk(e,r,i);_k(t,n)},Ck=function(t,e,r,i){let n=e.node().getBBox(),o=n.width,a=n.height;Y.info(`SVG bounds: ${o}x${a}`,n);let s=0,l=0;Y.info(`Graph bounds: ${s}x${l}`,t),s=o+r*2,l=a+r*2,Y.info(`Calculated bounds: ${s}x${l}`),Km(e,l,s,i);let c=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;e.attr("viewBox",c)},Tk=(t,e,r)=>{Y.debug(`renering svg for syntax error
`);let i=yk(e);i.attr("viewBox","0 0 2412 512"),Km(i,100,512,!0);let n=i.append("g");n.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"),n.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"),n.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"),n.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"),n.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"),n.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"),n.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"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},Zm={draw:Tk},vk=Zm,Sk={db:{},renderer:Zm,parser:{parser:{yy:{}},parse:()=>{}}},kk=Sk,Qm="flowchart-elk",wk=(t,e)=>{var r;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk")},Bk=async()=>{let{diagram:t}=await import("./flowchart-elk-definition-b487ab79-QAHGXK5J.js");return{id:Qm,diagram:t}},Fk={id:Qm,detector:wk,loader:Bk},Ak=Fk,Jm="timeline",Mk=t=>/^\s*timeline/.test(t),Lk=async()=>{let{diagram:t}=await import("./timeline-definition-8b56e66a-FV2BPLWY.js");return{id:Jm,diagram:t}},Ek={id:Jm,detector:Mk,loader:Lk},Ok=Ek,tg="mindmap",Ik=t=>/^\s*mindmap/.test(t),Dk=async()=>{let{diagram:t}=await import("./mindmap-definition-7f612c4b-3BUWGJC3.js");return{id:tg,diagram:t}},Nk={id:tg,detector:Ik,loader:Dk},Rk=Nk,eg="sankey",Pk=t=>/^\s*sankey-beta/.test(t),$k=async()=>{let{diagram:t}=await import("./sankeyDiagram-6de1f9fe-FNA5MT2Z.js");return{id:eg,diagram:t}},zk={id:eg,detector:Pk,loader:$k},qk=zk,na={},Wk=(t,e,r)=>{let i="";return t in na&&na[t]?i=na[t](r):Y.warn(`No theme found for ${t}`),` & {
font-family: ${r.fontFamily};
font-size: ${r.fontSize};
fill: ${r.textColor}
}
/* Classes common for multiple diagrams */
& .error-icon {
fill: ${r.errorBkgColor};
}
& .error-text {
fill: ${r.errorTextColor};
stroke: ${r.errorTextColor};
}
& .edge-thickness-normal {
stroke-width: 2px;
}
& .edge-thickness-thick {
stroke-width: 3.5px
}
& .edge-pattern-solid {
stroke-dasharray: 0;
}
& .edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
}
& .marker {
fill: ${r.lineColor};
stroke: ${r.lineColor};
}
& .marker.cross {
stroke: ${r.lineColor};
}
& svg {
font-family: ${r.fontFamily};
font-size: ${r.fontSize};
}
${i}
${e}
`},Uk=(t,e)=>{e!==void 0&&(na[t]=e)},Hk=Wk,zl="",ql="",Wl="",Ul=t=>_n(t,se()),Yk=()=>{zl="",Wl="",ql=""},jk=t=>{zl=Ul(t).replace(/^\s+/g,"")},Gk=()=>zl,Vk=t=>{Wl=Ul(t).replace(/\n\s+/g,`
`)},Xk=()=>Wl,Kk=t=>{ql=Ul(t)},Zk=()=>ql,Qk=Object.freeze(Object.defineProperty({__proto__:null,clear:Yk,getAccDescription:Xk,getAccTitle:Gk,getDiagramTitle:Zk,setAccDescription:Vk,setAccTitle:jk,setDiagramTitle:Kk},Symbol.toStringTag,{value:"Module"})),Jk=Y,tw=Dl,rg=se,ew=t=>_n(t,rg()),rw=Ck,iw=()=>Qk,ca={},ua=(t,e,r)=>{var i;if(ca[t])throw new Error(`Diagram ${t} already registered.`);ca[t]=e,r&&km(t,r),Uk(t,e.styles),(i=e.injectUtils)==null||i.call(e,Jk,tw,rg,ew,rw,iw(),()=>{})},Hl=t=>{if(t in ca)return ca[t];throw new El(t)},El=class extends Error{constructor(e){super(`Diagram ${e} not found.`)}},om=!1,Yl=()=>{om||(om=!0,ua("error",kk,t=>t.toLowerCase().trim()==="error"),ua("---",{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},t=>t.toLowerCase().trimStart().startsWith("---")),Sm(pS,ok,ek,kS,OS,NS,$S,GS,ZS,Ak,CS,xS,Rk,Ok,AS,pk,ck,xk,US,qk))},ha=class{constructor(e,r={}){this.text=e,this.metadata=r,this.type="graph",this.text+=`
`;let i=se();try{this.type=_a(e,i)}catch(o){this.type="error",this.detectError=o}let n=Hl(this.type);Y.debug("Type "+this.type),this.db=n.db,this.renderer=n.renderer,this.parser=n.parser,this.parser.parser.yy=this.db,this.init=n.init,this.parse()}parse(){var e,r,i,n,o;if(this.detectError)throw this.detectError;(r=(e=this.db).clear)==null||r.call(e);let a=se();(i=this.init)==null||i.call(this,a),this.metadata.title&&((o=(n=this.db).setDiagramTitle)==null||o.call(n,this.metadata.title)),this.parser.parse(this.text)}async render(e,r){await this.renderer.draw(this.text,e,r,this)}getParser(){return this.parser}getType(){return this.type}},jl=async(t,e={})=>{let r=_a(t,se());try{Hl(r)}catch(i){let n=Ev(r);if(!n)throw new aa(`Diagram ${r} not found.`);let{id:o,diagram:a}=await n();ua(o,a)}return new ha(t,e)},Ol=[],Wz=t=>{Ol.push(t)},nw=()=>{Ol.forEach(t=>{t()}),Ol=[]},ow="graphics-document document";function aw(t,e){t.attr("role",ow),e!==""&&t.attr("aria-roledescription",e)}function sw(t,e,r,i){if(t.insert!==void 0){if(r){let n=`chart-desc-${i}`;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(r)}if(e){let n=`chart-title-${i}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}var lw=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();function ig(t){return typeof t=="undefined"||t===null}function cw(t){return typeof t=="object"&&t!==null}function uw(t){return Array.isArray(t)?t:ig(t)?[]:[t]}function hw(t,e){var r,i,n,o;if(e)for(o=Object.keys(e),r=0,i=o.length;r<i;r+=1)n=o[r],t[n]=e[n];return t}function fw(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function pw(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var dw=ig,mw=cw,gw=uw,xw=fw,yw=pw,_w=hw,zt={isNothing:dw,isObject:mw,toArray:gw,repeat:xw,isNegativeZero:yw,extend:_w};function ng(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
`+t.mark.snippet),i+" "+r):i}function Cn(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=ng(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Cn.prototype=Object.create(Error.prototype);Cn.prototype.constructor=Cn;Cn.prototype.toString=function(e){return this.name+": "+ng(this,e)};var Oe=Cn;function Sl(t,e,r,i,n){var o="",a="",s=Math.floor(n/2)-1;return i-e>s&&(o=" ... ",e=i-s+o.length),r-i>s&&(a=" ...",r=i+s-a.length),{str:o+t.slice(e,r).replace(/\t/g,"\u2192")+a,pos:i-e+o.length}}function kl(t,e){return zt.repeat(" ",e-t.length)+t}function bw(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],o,a=-1;o=r.exec(t.buffer);)n.push(o.index),i.push(o.index+o[0].length),t.position<=o.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var s="",l,c,u=Math.min(t.line+e.linesAfter,n.length).toString().length,h=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(a-l<0);l++)c=Sl(t.buffer,i[a-l],n[a-l],t.position-(i[a]-i[a-l]),h),s=zt.repeat(" ",e.indent)+kl((t.line-l+1).toString(),u)+" | "+c.str+`
`+s;for(c=Sl(t.buffer,i[a],n[a],t.position,h),s+=zt.repeat(" ",e.indent)+kl((t.line+1).toString(),u)+" | "+c.str+`
`,s+=zt.repeat("-",e.indent+u+3+c.pos)+`^
`,l=1;l<=e.linesAfter&&!(a+l>=n.length);l++)c=Sl(t.buffer,i[a+l],n[a+l],t.position-(i[a]-i[a+l]),h),s+=zt.repeat(" ",e.indent)+kl((t.line+l+1).toString(),u)+" | "+c.str+`
`;return s.replace(/\n$/,"")}var Cw=bw,Tw=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],vw=["scalar","sequence","mapping"];function Sw(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function kw(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(Tw.indexOf(r)===-1)throw new Oe('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=Sw(e.styleAliases||null),vw.indexOf(this.kind)===-1)throw new Oe('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Dt=kw;function am(t,e){var r=[];return t[e].forEach(function(i){var n=r.length;r.forEach(function(o,a){o.tag===i.tag&&o.kind===i.kind&&o.multi===i.multi&&(n=a)}),r[n]=i}),r}function ww(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}function Il(t){return this.extend(t)}Il.prototype.extend=function(e){var r=[],i=[];if(e instanceof Dt)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new Oe("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(o){if(!(o instanceof Dt))throw new Oe("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Oe("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new Oe("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(o){if(!(o instanceof Dt))throw new Oe("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Il.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=am(n,"implicit"),n.compiledExplicit=am(n,"explicit"),n.compiledTypeMap=ww(n.compiledImplicit,n.compiledExplicit),n};var Bw=Il,Fw=new Dt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Aw=new Dt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Mw=new Dt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Lw=new Bw({explicit:[Fw,Aw,Mw]});function Ew(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Ow(){return null}function Iw(t){return t===null}var Dw=new Dt("tag:yaml.org,2002:null",{kind:"scalar",resolve:Ew,construct:Ow,predicate:Iw,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Nw(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function Rw(t){return t==="true"||t==="True"||t==="TRUE"}function Pw(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var $w=new Dt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Nw,construct:Rw,predicate:Pw,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function zw(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function qw(t){return 48<=t&&t<=55}function Ww(t){return 48<=t&&t<=57}function Uw(t){if(t===null)return!1;var e=t.length,r=0,i=!1,n;if(!e)return!1;if(n=t[r],(n==="-"||n==="+")&&(n=t[++r]),n==="0"){if(r+1===e)return!0;if(n=t[++r],n==="b"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!zw(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!qw(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!Ww(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function Hw(t){var e=t,r=1,i;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),i=e[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),e=e.slice(1),i=e[0]),e==="0")return 0;if(i==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function Yw(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!zt.isNegativeZero(t)}var jw=new Dt("tag:yaml.org,2002:int",{kind:"scalar",resolve:Uw,construct:Hw,predicate:Yw,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Gw=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Vw(t){return!(t===null||!Gw.test(t)||t[t.length-1]==="_")}function Xw(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var Kw=/^[-+]?[0-9]+e/;function Zw(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(zt.isNegativeZero(t))return"-0.0";return r=t.toString(10),Kw.test(r)?r.replace("e",".e"):r}function Qw(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||zt.isNegativeZero(t))}var Jw=new Dt("tag:yaml.org,2002:float",{kind:"scalar",resolve:Vw,construct:Xw,predicate:Qw,represent:Zw,defaultStyle:"lowercase"}),og=Lw.extend({implicit:[Dw,$w,jw,Jw]}),tB=og,ag=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),sg=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 eB(t){return t===null?!1:ag.exec(t)!==null||sg.exec(t)!==null}function rB(t){var e,r,i,n,o,a,s,l=0,c=null,u,h,f;if(e=ag.exec(t),e===null&&(e=sg.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(r,i,n));if(o=+e[4],a=+e[5],s=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],h=+(e[11]||0),c=(u*60+h)*6e4,e[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,i,n,o,a,s,l)),c&&f.setTime(f.getTime()-c),f}function iB(t){return t.toISOString()}var nB=new Dt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:eB,construct:rB,instanceOf:Date,represent:iB});function oB(t){return t==="<<"||t===null}var aB=new Dt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:oB}),Gl=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function sB(t){if(t===null)return!1;var e,r,i=0,n=t.length,o=Gl;for(r=0;r<n;r++)if(e=o.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function lB(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,o=Gl,a=0,s=[];for(e=0;e<n;e++)e%4===0&&e&&(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)),a=a<<6|o.indexOf(i.charAt(e));return r=n%4*6,r===0?(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)):r===18?(s.push(a>>10&255),s.push(a>>2&255)):r===12&&s.push(a>>4&255),new Uint8Array(s)}function cB(t){var e="",r=0,i,n,o=t.length,a=Gl;for(i=0;i<o;i++)i%3===0&&i&&(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]),r=(r<<8)+t[i];return n=o%3,n===0?(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]):n===2?(e+=a[r>>10&63],e+=a[r>>4&63],e+=a[r<<2&63],e+=a[64]):n===1&&(e+=a[r>>2&63],e+=a[r<<4&63],e+=a[64],e+=a[64]),e}function uB(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var hB=new Dt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:sB,construct:lB,predicate:uB,represent:cB}),fB=Object.prototype.hasOwnProperty,pB=Object.prototype.toString;function dB(t){if(t===null)return!0;var e=[],r,i,n,o,a,s=t;for(r=0,i=s.length;r<i;r+=1){if(n=s[r],a=!1,pB.call(n)!=="[object Object]")return!1;for(o in n)if(fB.call(n,o))if(!a)a=!0;else return!1;if(!a)return!1;if(e.indexOf(o)===-1)e.push(o);else return!1}return!0}function mB(t){return t!==null?t:[]}var gB=new Dt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:dB,construct:mB}),xB=Object.prototype.toString;function yB(t){if(t===null)return!0;var e,r,i,n,o,a=t;for(o=new Array(a.length),e=0,r=a.length;e<r;e+=1){if(i=a[e],xB.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;o[e]=[n[0],i[n[0]]]}return!0}function _B(t){if(t===null)return[];var e,r,i,n,o,a=t;for(o=new Array(a.length),e=0,r=a.length;e<r;e+=1)i=a[e],n=Object.keys(i),o[e]=[n[0],i[n[0]]];return o}var bB=new Dt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:yB,construct:_B}),CB=Object.prototype.hasOwnProperty;function TB(t){if(t===null)return!0;var e,r=t;for(e in r)if(CB.call(r,e)&&r[e]!==null)return!1;return!0}function vB(t){return t!==null?t:{}}var SB=new Dt("tag:yaml.org,2002:set",{kind:"mapping",resolve:TB,construct:vB}),kB=tB.extend({implicit:[nB,aB],explicit:[hB,gB,bB,SB]}),er=Object.prototype.hasOwnProperty,fa=1,lg=2,cg=3,pa=4,wl=1,wB=2,sm=3,BB=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,FB=/[\x85\u2028\u2029]/,AB=/[,\[\]\{\}]/,ug=/^(?:!|!!|![a-z\-]+!)$/i,hg=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function lm(t){return Object.prototype.toString.call(t)}function xe(t){return t===10||t===13}function Or(t){return t===9||t===32}function Vt(t){return t===9||t===32||t===10||t===13}function Ti(t){return t===44||t===91||t===93||t===123||t===125}function MB(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function LB(t){return t===120?2:t===117?4:t===85?8:0}function EB(t){return 48<=t&&t<=57?t-48:-1}function cm(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function OB(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var fg=new Array(256),pg=new Array(256);for(Er=0;Er<256;Er++)fg[Er]=cm(Er)?1:0,pg[Er]=cm(Er);var Er;function IB(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||kB,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function dg(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=Cw(r),new Oe(e,r)}function U(t,e){throw dg(t,e)}function da(t,e){t.onWarning&&t.onWarning.call(null,dg(t,e))}var um={YAML:function(e,r,i){var n,o,a;e.version!==null&&U(e,"duplication of %YAML directive"),i.length!==1&&U(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&U(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),a=parseInt(n[2],10),o!==1&&U(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&da(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var n,o;i.length!==2&&U(e,"TAG directive accepts exactly two arguments"),n=i[0],o=i[1],ug.test(n)||U(e,"ill-formed tag handle (first argument) of the TAG directive"),er.call(e.tagMap,n)&&U(e,'there is a previously declared suffix for "'+n+'" tag handle'),hg.test(o)||U(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch(a){U(e,"tag prefix is malformed: "+o)}e.tagMap[n]=o}};function tr(t,e,r,i){var n,o,a,s;if(e<r){if(s=t.input.slice(e,r),i)for(n=0,o=s.length;n<o;n+=1)a=s.charCodeAt(n),a===9||32<=a&&a<=1114111||U(t,"expected valid JSON character");else BB.test(s)&&U(t,"the stream contains non-printable characters");t.result+=s}}function hm(t,e,r,i){var n,o,a,s;for(zt.isObject(r)||U(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),a=0,s=n.length;a<s;a+=1)o=n[a],er.call(e,o)||(e[o]=r[o],i[o]=!0)}function vi(t,e,r,i,n,o,a,s,l){var c,u;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,u=n.length;c<u;c+=1)Array.isArray(n[c])&&U(t,"nested arrays are not supported inside keys"),typeof n=="object"&&lm(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&lm(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,u=o.length;c<u;c+=1)hm(t,e,o[c],r);else hm(t,e,o,r);else!t.json&&!er.call(r,n)&&er.call(e,n)&&(t.line=a||t.line,t.lineStart=s||t.lineStart,t.position=l||t.position,U(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:o}):e[n]=o,delete r[n];return e}function Vl(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):U(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function dt(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;Or(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(xe(n))for(Vl(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&da(t,"deficient indentation"),i}function Ca(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||Vt(r)))}function Xl(t,e){e===1?t.result+=" ":e>1&&(t.result+=zt.repeat(`
`,e-1))}function DB(t,e,r){var i,n,o,a,s,l,c,u,h=t.kind,f=t.result,p;if(p=t.input.charCodeAt(t.position),Vt(p)||Ti(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(n=t.input.charCodeAt(t.position+1),Vt(n)||r&&Ti(n)))return!1;for(t.kind="scalar",t.result="",o=a=t.position,s=!1;p!==0;){if(p===58){if(n=t.input.charCodeAt(t.position+1),Vt(n)||r&&Ti(n))break}else if(p===35){if(i=t.input.charCodeAt(t.position-1),Vt(i))break}else{if(t.position===t.lineStart&&Ca(t)||r&&Ti(p))break;if(xe(p))if(l=t.line,c=t.lineStart,u=t.lineIndent,dt(t,!1,-1),t.lineIndent>=e){s=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=a,t.line=l,t.lineStart=c,t.lineIndent=u;break}}s&&(tr(t,o,a,!1),Xl(t,t.line-l),o=a=t.position,s=!1),Or(p)||(a=t.position+1),p=t.input.charCodeAt(++t.position)}return tr(t,o,a,!1),t.result?!0:(t.kind=h,t.result=f,!1)}function NB(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(tr(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else xe(r)?(tr(t,i,n,!0),Xl(t,dt(t,!1,e)),i=n=t.position):t.position===t.lineStart&&Ca(t)?U(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);U(t,"unexpected end of the stream within a single quoted scalar")}function RB(t,e){var r,i,n,o,a,s;if(s=t.input.charCodeAt(t.position),s!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(s=t.input.charCodeAt(t.position))!==0;){if(s===34)return tr(t,r,t.position,!0),t.position++,!0;if(s===92){if(tr(t,r,t.position,!0),s=t.input.charCodeAt(++t.position),xe(s))dt(t,!1,e);else if(s<256&&fg[s])t.result+=pg[s],t.position++;else if((a=LB(s))>0){for(n=a,o=0;n>0;n--)s=t.input.charCodeAt(++t.position),(a=MB(s))>=0?o=(o<<4)+a:U(t,"expected hexadecimal character");t.result+=OB(o),t.position++}else U(t,"unknown escape sequence");r=i=t.position}else xe(s)?(tr(t,r,i,!0),Xl(t,dt(t,!1,e)),r=i=t.position):t.position===t.lineStart&&Ca(t)?U(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}U(t,"unexpected end of the stream within a double quoted scalar")}function PB(t,e){var r=!0,i,n,o,a=t.tag,s,l=t.anchor,c,u,h,f,p,x=Object.create(null),b,v,B,T;if(T=t.input.charCodeAt(t.position),T===91)u=93,p=!1,s=[];else if(T===123)u=125,p=!0,s={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),T=t.input.charCodeAt(++t.position);T!==0;){if(dt(t,!0,e),T=t.input.charCodeAt(t.position),T===u)return t.position++,t.tag=a,t.anchor=l,t.kind=p?"mapping":"sequence",t.result=s,!0;r?T===44&&U(t,"expected the node content, but found ','"):U(t,"missed comma between flow collection entries"),v=b=B=null,h=f=!1,T===63&&(c=t.input.charCodeAt(t.position+1),Vt(c)&&(h=f=!0,t.position++,dt(t,!0,e))),i=t.line,n=t.lineStart,o=t.position,wi(t,e,fa,!1,!0),v=t.tag,b=t.result,dt(t,!0,e),T=t.input.charCodeAt(t.position),(f||t.line===i)&&T===58&&(h=!0,T=t.input.charCodeAt(++t.position),dt(t,!0,e),wi(t,e,fa,!1,!0),B=t.result),p?vi(t,s,x,v,b,B,i,n,o):h?s.push(vi(t,null,x,v,b,B,i,n,o)):s.push(b),dt(t,!0,e),T=t.input.charCodeAt(t.position),T===44?(r=!0,T=t.input.charCodeAt(++t.position)):r=!1}U(t,"unexpected end of the stream within a flow collection")}function $B(t,e){var r,i,n=wl,o=!1,a=!1,s=e,l=0,c=!1,u,h;if(h=t.input.charCodeAt(t.position),h===124)i=!1;else if(h===62)i=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)wl===n?n=h===43?sm:wB:U(t,"repeat of a chomping mode identifier");else if((u=EB(h))>=0)u===0?U(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?U(t,"repeat of an indentation width identifier"):(s=e+u-1,a=!0);else break;if(Or(h)){do h=t.input.charCodeAt(++t.position);while(Or(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!xe(h)&&h!==0)}for(;h!==0;){for(Vl(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!a||t.lineIndent<s)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!a&&t.lineIndent>s&&(s=t.lineIndent),xe(h)){l++;continue}if(t.lineIndent<s){n===sm?t.result+=zt.repeat(`
`,o?1+l:l):n===wl&&o&&(t.result+=`
`);break}for(i?Or(h)?(c=!0,t.result+=zt.repeat(`
`,o?1+l:l)):c?(c=!1,t.result+=zt.repeat(`
`,l+1)):l===0?o&&(t.result+=" "):t.result+=zt.repeat(`
`,l):t.result+=zt.repeat(`
`,o?1+l:l),o=!0,a=!0,l=0,r=t.position;!xe(h)&&h!==0;)h=t.input.charCodeAt(++t.position);tr(t,r,t.position,!1)}return!0}function fm(t,e){var r,i=t.tag,n=t.anchor,o=[],a,s=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,U(t,"tab characters must not be used in indentation")),!(l!==45||(a=t.input.charCodeAt(t.position+1),!Vt(a))));){if(s=!0,t.position++,dt(t,!0,-1)&&t.lineIndent<=e){o.push(null),l=t.input.charCodeAt(t.position);continue}if(r=t.line,wi(t,e,cg,!1,!0),o.push(t.result),dt(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&l!==0)U(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return s?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=o,!0):!1}function zB(t,e,r){var i,n,o,a,s,l,c=t.tag,u=t.anchor,h={},f=Object.create(null),p=null,x=null,b=null,v=!1,B=!1,T;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),T=t.input.charCodeAt(t.position);T!==0;){if(!v&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,U(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),o=t.line,(T===63||T===58)&&Vt(i))T===63?(v&&(vi(t,h,f,p,x,null,a,s,l),p=x=b=null),B=!0,v=!0,n=!0):v?(v=!1,n=!0):U(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,T=i;else{if(a=t.line,s=t.lineStart,l=t.position,!wi(t,r,lg,!1,!0))break;if(t.line===o){for(T=t.input.charCodeAt(t.position);Or(T);)T=t.input.charCodeAt(++t.position);if(T===58)T=t.input.charCodeAt(++t.position),Vt(T)||U(t,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(vi(t,h,f,p,x,null,a,s,l),p=x=b=null),B=!0,v=!1,n=!1,p=t.tag,x=t.result;else if(B)U(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=u,!0}else if(B)U(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=u,!0}if((t.line===o||t.lineIndent>e)&&(v&&(a=t.line,s=t.lineStart,l=t.position),wi(t,e,pa,!0,n)&&(v?x=t.result:b=t.result),v||(vi(t,h,f,p,x,b,a,s,l),p=x=b=null),dt(t,!0,-1),T=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&T!==0)U(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return v&&vi(t,h,f,p,x,null,a,s,l),B&&(t.tag=c,t.anchor=u,t.kind="mapping",t.result=h),B}function qB(t){var e,r=!1,i=!1,n,o,a;if(a=t.input.charCodeAt(t.position),a!==33)return!1;if(t.tag!==null&&U(t,"duplication of a tag property"),a=t.input.charCodeAt(++t.position),a===60?(r=!0,a=t.input.charCodeAt(++t.position)):a===33?(i=!0,n="!!",a=t.input.charCodeAt(++t.position)):n="!",e=t.position,r){do a=t.input.charCodeAt(++t.position);while(a!==0&&a!==62);t.position<t.length?(o=t.input.slice(e,t.position),a=t.input.charCodeAt(++t.position)):U(t,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Vt(a);)a===33&&(i?U(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),ug.test(n)||U(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),a=t.input.charCodeAt(++t.position);o=t.input.slice(e,t.position),AB.test(o)&&U(t,"tag suffix cannot contain flow indicator characters")}o&&!hg.test(o)&&U(t,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch(s){U(t,"tag name is malformed: "+o)}return r?t.tag=o:er.call(t.tagMap,n)?t.tag=t.tagMap[n]+o:n==="!"?t.tag="!"+o:n==="!!"?t.tag="tag:yaml.org,2002:"+o:U(t,'undeclared tag handle "'+n+'"'),!0}function WB(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&U(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Vt(r)&&!Ti(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&U(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function UB(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!Vt(i)&&!Ti(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&U(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),er.call(t.anchorMap,r)||U(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],dt(t,!0,-1),!0}function wi(t,e,r,i,n){var o,a,s,l=1,c=!1,u=!1,h,f,p,x,b,v;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=a=s=pa===r||cg===r,i&&dt(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;qB(t)||WB(t);)dt(t,!0,-1)?(c=!0,s=o,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):s=!1;if(s&&(s=c||n),(l===1||pa===r)&&(fa===r||lg===r?b=e:b=e+1,v=t.position-t.lineStart,l===1?s&&(fm(t,v)||zB(t,v,b))||PB(t,b)?u=!0:(a&&$B(t,b)||NB(t,b)||RB(t,b)?u=!0:UB(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&U(t,"alias node should not have any properties")):DB(t,b,fa===r)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(u=s&&fm(t,v))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&U(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,f=t.implicitTypes.length;h<f;h+=1)if(x=t.implicitTypes[h],x.resolve(t.result)){t.result=x.construct(t.result),t.tag=x.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(er.call(t.typeMap[t.kind||"fallback"],t.tag))x=t.typeMap[t.kind||"fallback"][t.tag];else for(x=null,p=t.typeMap.multi[t.kind||"fallback"],h=0,f=p.length;h<f;h+=1)if(t.tag.slice(0,p[h].tag.length)===p[h].tag){x=p[h];break}x||U(t,"unknown tag !<"+t.tag+">"),t.result!==null&&x.kind!==t.kind&&U(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+x.kind+'", not "'+t.kind+'"'),x.resolve(t.result,t.tag)?(t.result=x.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):U(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}function HB(t){var e=t.position,r,i,n,o=!1,a;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(a=t.input.charCodeAt(t.position))!==0&&(dt(t,!0,-1),a=t.input.charCodeAt(t.position),!(t.lineIndent>0||a!==37));){for(o=!0,a=t.input.charCodeAt(++t.position),r=t.position;a!==0&&!Vt(a);)a=t.input.charCodeAt(++t.position);for(i=t.input.slice(r,t.position),n=[],i.length<1&&U(t,"directive name must not be less than one character in length");a!==0;){for(;Or(a);)a=t.input.charCodeAt(++t.position);if(a===35){do a=t.input.charCodeAt(++t.position);while(a!==0&&!xe(a));break}if(xe(a))break;for(r=t.position;a!==0&&!Vt(a);)a=t.input.charCodeAt(++t.position);n.push(t.input.slice(r,t.position))}a!==0&&Vl(t),er.call(um,i)?um[i](t,i,n):da(t,'unknown document directive "'+i+'"')}if(dt(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,dt(t,!0,-1)):o&&U(t,"directives end mark is expected"),wi(t,t.lineIndent-1,pa,!1,!0),dt(t,!0,-1),t.checkLineBreaks&&FB.test(t.input.slice(e,t.position))&&da(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Ca(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,dt(t,!0,-1));return}if(t.position<t.length-1)U(t,"end of the stream or a document separator is expected");else return}function mg(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new IB(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,U(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)HB(r);return r.documents}function YB(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=mg(t,r);if(typeof e!="function")return i;for(var n=0,o=i.length;n<o;n+=1)e(i[n])}function jB(t,e){var r=mg(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Oe("expected a single document in the stream, but found more")}}var GB=YB,VB=jB,XB={loadAll:GB,load:VB},KB=og,ZB=XB.load;function QB(t){var n;let e=t.match(vm);if(!e)return{text:t,metadata:{}};let r=(n=ZB(e[1],{schema:KB}))!=null?n:{};r=typeof r=="object"&&!Array.isArray(r)?r:{};let i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:t.slice(e[0].length),metadata:i}}var JB=t=>t.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(e,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),tF=t=>{let{text:e,metadata:r}=QB(t),{displayMode:i,title:n,config:o={}}=r;return i&&(o.gantt||(o.gantt={}),o.gantt.displayMode=i),{title:n,config:o,text:e}},eF=t=>{var i;let e=(i=gn.detectInit(t))!=null?i:{},r=gn.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:n})=>{}):(r==null?void 0:r.type)==="wrap"&&(e.wrap=!0),{text:Rv(t),directive:e}};function rF(t){let e=JB(t),r=tF(e),i=eF(r.text),n=Am(r.config,i.directive);return t=lw(i.text),{code:t,title:r.title,config:n}}var iF=5e4,nF="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",oF="sandbox",aF="loose",sF="http://www.w3.org/2000/svg",lF="http://www.w3.org/1999/xlink",cF="http://www.w3.org/1999/xhtml",uF="100%",hF="100%",fF="border:0;margin:0;",pF="margin:0",dF="allow-top-navigation-by-user-activation allow-popups",mF='The "iframe" tag is not supported by your browser.',gF=["foreignobject"],xF=["dominant-baseline"];function gg(t){var r;let e=rF(t);return la(),sS((r=e.config)!=null?r:{}),e}async function yF(t,e){Yl(),t=gg(t).code;try{await jl(t)}catch(r){if(e!=null&&e.suppressErrors)return!1;throw r}return!0}var _F=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/#\w+;/g,function(r){let i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"\uFB02\xB0\xB0"+i+"\xB6\xDF":"\uFB02\xB0"+i+"\xB6\xDF"}),e},bF=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},pm=(t,e,r=[])=>`
.${t} ${e} { ${r.join(" !important; ")} !important; }`,CF=(t,e={})=>{var r;let i="";if(t.themeCSS!==void 0&&(i+=`
${t.themeCSS}`),t.fontFamily!==void 0&&(i+=`
:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(i+=`
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!Ho(e)){let s=t.htmlLabels||((r=t.flowchart)==null?void 0:r.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(let l in e){let c=e[l];Ho(c.styles)||s.forEach(u=>{i+=pm(c.id,u,c.styles)}),Ho(c.textStyles)||(i+=pm(c.id,"tspan",c.textStyles))}}return i},TF=(t,e,r,i)=>{let n=CF(t,r),o=Hk(e,n,t.themeVariables);return ra(Qd(`${i}{${o}}`),Jd)},vF=(t="",e,r)=>{let i=t;return!r&&!e&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=bF(i),i=i.replace(/<br>/g,"<br/>"),i},SF=(t="",e)=>{var r,i;let n=(i=(r=e==null?void 0:e.viewBox)==null?void 0:r.baseVal)!=null&&i.height?e.viewBox.baseVal.height+"px":hF,o=btoa('<body style="'+pF+'">'+t+"</body>");return`<iframe style="width:${uF};height:${n};${fF}" src="data:text/html;base64,${o}" sandbox="${dF}">
${mF}
</iframe>`},dm=(t,e,r,i,n)=>{let o=t.append("div");o.attr("id",r),i&&o.attr("style",i);let a=o.append("svg").attr("id",e).attr("width","100%").attr("xmlns",sF);return n&&a.attr("xmlns:xlink",n),a.append("g"),t};function mm(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}var kF=(t,e,r,i)=>{var n,o,a;(n=t.getElementById(e))==null||n.remove(),(o=t.getElementById(r))==null||o.remove(),(a=t.getElementById(i))==null||a.remove()},wF=async function(t,e,r){var X;var i,n,o,a,s,l;Yl();let c=gg(e);e=c.code;let u=se();Y.debug(u),e.length>((X=u==null?void 0:u.maxTextSize)!=null?X:iF)&&(e=nF);let h="#"+t,f="i"+t,p="#"+f,x="d"+t,b="#"+x,v=Ht("body"),B=u.securityLevel===oF,T=u.securityLevel===aF,M=u.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),B){let V=mm(Ht(r),f);v=Ht(V.nodes()[0].contentDocument.body),v.node().style.margin=0}else v=Ht(r);dm(v,t,x,`font-family: ${M}`,lF)}else{if(kF(document,t,x,f),B){let V=mm(Ht("body"),f);v=Ht(V.nodes()[0].contentDocument.body),v.node().style.margin=0}else v=Ht("body");dm(v,t,x)}e=_F(e);let E,I;try{E=await jl(e,{title:c.title})}catch(V){E=new ha("error"),I=V}let F=v.select(b).node(),y=E.type,$=F.firstChild,et=$.firstChild,rt=(n=(i=E.renderer).getClasses)==null?void 0:n.call(i,e,E),C=TF(u,y,rt,h),_=document.createElement("style");_.innerHTML=C,$.insertBefore(_,et);try{await E.renderer.draw(e,t,im,E)}catch(V){throw vk.draw(e,t,im),V}let g=v.select(`${b} svg`),k=(a=(o=E.db).getAccTitle)==null?void 0:a.call(o),A=(l=(s=E.db).getAccDescription)==null?void 0:l.call(s);FF(y,g,k,A),v.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",cF);let D=v.select(b).node().innerHTML;if(Y.debug("config.arrowMarkerAbsolute",u.arrowMarkerAbsolute),D=vF(D,B,bm(u.arrowMarkerAbsolute)),B){let V=v.select(b+" svg").node();D=SF(D,V)}else T||(D=yn.default.sanitize(D,{ADD_TAGS:gF,ADD_ATTR:xF}));if(nw(),I)throw I;let j=Ht(B?p:b).node();return j&&"remove"in j&&j.remove(),{svg:D,bindFunctions:E.db.bindFunctions}};function BF(t={}){var e;t!=null&&t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),nS(t),t!=null&&t.theme&&t.theme in Ie?t.themeVariables=Ie[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Ie.default.getThemeVariables(t.themeVariables));let r=typeof t=="object"?iS(t):Lm();Dl(r.logLevel),Yl()}function FF(t,e,r,i){aw(e,t),sw(e,r,i,e.attr("id"))}var Ir=Object.freeze({render:wF,parse:yF,getDiagramFromText:jl,initialize:BF,getConfig:se,setConfig:aS,getSiteConfig:Lm,updateSiteConfig:oS,reset:()=>{la()},globalReset:()=>{la(bn)},defaultConfig:bn});Dl(se().logLevel);la(se());var AF=async()=>{Y.debug("Loading registered diagrams");let e=(await Promise.allSettled(Object.entries(Si).map(async([r,{detector:i,loader:n}])=>{if(n)try{Hl(r)}catch(o){try{let{diagram:a,id:s}=await n();ua(s,a,i)}catch(a){throw Y.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Si[r],a}}}))).filter(r=>r.status==="rejected");if(e.length>0){Y.error(`Failed to load ${e.length} external diagrams`);for(let r of e)Y.error(r);throw new Error(`Failed to load ${e.length} external diagrams`)}},MF=(t,e,r)=>{Y.warn(t),Fm(t)?(r&&r(t.str,t.hash),e.push(ue(ce({},t),{message:t.str,error:t}))):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},xg=async function(t={querySelector:".mermaid"}){try{await LF(t)}catch(e){if(Fm(e)&&Y.error(e.str),ye.parseError&&ye.parseError(e),!t.suppressErrors)throw Y.error("Use the suppressErrors option to suppress these errors"),e}},LF=async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){let i=Ir.getConfig();Y.debug(`${t?"":"No "}Callback function found`);let n;if(r)n=r;else if(e)n=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");Y.debug(`Found ${n.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(Y.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),Ir.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));let o=new gn.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed),a,s=[];for(let l of Array.from(n)){Y.info("Rendering diagram: "+l.id);if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");let c=`mermaid-${o.next()}`;a=l.innerHTML,a=Tc(gn.entityDecode(a)).trim().replace(/<br\s*\/?>/gi,"<br/>");let u=gn.detectInit(a);u&&Y.debug("Detected early reinit: ",u);try{let{svg:h,bindFunctions:f}=await Cg(c,a,l);l.innerHTML=h,t&&await t(c),f&&f(l)}catch(h){MF(h,s,ye.parseError)}}if(s.length>0)throw s[0]},yg=function(t){Ir.initialize(t)},EF=async function(t,e,r){Y.warn("mermaid.init is deprecated. Please use run instead."),t&&yg(t);let i={postRenderCallback:r,querySelector:".mermaid"};typeof e=="string"?i.querySelector=e:e&&(e instanceof HTMLElement?i.nodes=[e]:i.nodes=e),await xg(i)},OF=async(t,{lazyLoad:e=!0}={})=>{Sm(...t),e===!1&&await AF()},_g=function(){if(ye.startOnLoad){let{startOnLoad:t}=Ir.getConfig();t&&ye.run().catch(e=>Y.error("Mermaid failed to initialize",e))}};if(typeof document!="undefined"){window.addEventListener("load",_g,!1)}var IF=function(t){ye.parseError=t},ma=[],Bl=!1,bg=async()=>{if(!Bl){for(Bl=!0;ma.length>0;){let t=ma.shift();if(t)try{await t()}catch(e){Y.error("Error executing queue",e)}}Bl=!1}},DF=async(t,e)=>new Promise((r,i)=>{let n=()=>new Promise((o,a)=>{Ir.parse(t,e).then(s=>{o(s),r(s)},s=>{var l;Y.error("Error parsing",s),(l=ye.parseError)==null||l.call(ye,s),a(s),i(s)})});ma.push(n),bg().catch(i)}),Cg=(t,e,r)=>new Promise((i,n)=>{let o=()=>new Promise((a,s)=>{Ir.render(t,e,r).then(l=>{a(l),i(l)},l=>{var c;Y.error("Error parsing",l),(c=ye.parseError)==null||c.call(ye,l),s(l),n(l)})});ma.push(o),bg().catch(n)}),ye={startOnLoad:!0,mermaidAPI:Ir,parse:DF,render:Cg,init:EF,run:xg,registerExternalDiagrams:OF,initialize:yg,parseError:void 0,contentLoaded:_g,setParseErrorHandler:IF,detectType:_a};export{Tc as a,vc as b,Sc as c,kc as d,wc as e,p0 as f,d0 as g,Ht as h,hx as i,kx as j,g1 as k,fs as l,ks as m,mr as n,de as o,Zr as p,Qr as q,we as r,Be as s,Jr as t,ph as u,dh as v,Pe as w,mh as x,gh as y,ei as z,eo as A,Uh as B,u_ as C,__ as D,Vi as E,b_ as F,C_ as G,$s as H,Kf as I,He as J,L1 as K,wr as L,z as M,H as N,ft as O,ci as P,oe as Q,Yt as R,ui as S,Ye as T,cn as U,Oo as V,Np as W,gi as X,Pp as Y,Up as Z,yl as _,Hp as $,Yp as aa,jp as ba,Do as ca,Xp as da,ge as ea,Br as fa,Fr as ga,No as ha,Ze as ia,Zp as ja,xi as ka,id as la,od as ma,Cl as na,yi as oa,ld as pa,cd as qa,Ro as ra,hd as sa,Po as ta,$o as ua,bd as va,Cd as wa,Sd as xa,kd as ya,wd as za,Fd as Aa,Md as Ba,Wo as Ca,Nd as Da,Ho as Ea,Y as Fa,ga as Ga,_n as Ha,bm as Ia,Rz as Ja,Nl as Ka,Sv as La,Av as Ma,It as Na,Ov as Oa,$v as Pa,jv as Qa,Gv as Ra,Xv as Sa,Qv as Ta,tS as Ua,sa as Va,$l as Wa,Am as Xa,gn as Ya,bn as Za,aS as _a,se as $a,yk as ab,Km as bb,Ck as cb,Yk as db,jk as eb,Gk as fb,Vk as gb,Xk as hb,Kk as ib,Zk as jb,Qk as kb,rg as lb,rw as mb,Wz as nb,bF as ob,ye as pb};
/*! Bundled license information:
dompurify/dist/purify.js:
(*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE *)
mermaid/dist/mermaid-0d192ec3.js:
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
(*! Check if previously processed *)
(*!
* Wait for document loaded before starting the execution
*)
*/