mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-03 12:17:20 +02:00
58 lines
No EOL
279 KiB
JavaScript
58 lines
No EOL
279 KiB
JavaScript
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[17367],{31546:(t,e)=>{"use strict";e.Jf=e.dz=void 0;var i=/^([^\w]*)(javascript|data|vbscript)/im,r=/&#(\w+)(^\w|;)?/g,n=/&(newline|tab);/gi,o=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,a=/^.+(:|:)/gim,s=[".","/"];e.dz="about:blank",e.Jf=function(t){if(!t)return e.dz;var l=t.replace(o,"").replace(r,function(t,e){return String.fromCharCode(e)}).replace(n,"").replace(o,"").trim();if(!l)return e.dz;if(s.indexOf(l[0])>-1)return l;var h=l.match(a);if(!h)return l;var c=h[0];return i.test(c)?e.dz:l}},95285:function(t){var e;e=function(){"use strict";var t="millisecond",e="second",i="minute",r="hour",n="week",o="month",a="quarter",s="year",l="date",h="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,u=/\[([^\]]+)]|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,d=function(t,e,i){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(i)+t},f="en",p={};p[f]={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(t){var e=["th","st","nd","rd"],i=t%100;return"["+t+(e[(i-20)%10]||e[i]||"th")+"]"}};var g="$isDayjsObject",m=function(t){return t instanceof C||!(!t||!t[g])},y=function t(e,i,r){var n;if(!e)return f;if("string"==typeof e){var o=e.toLowerCase();p[o]&&(n=o),i&&(p[o]=i,n=o);var a=e.split("-");if(!n&&a.length>1)return t(a[0])}else{var s=e.name;p[s]=e,n=s}return!r&&n&&(f=n),n||!r&&f},_=function(t,e){if(m(t))return t.clone();var i="object"==typeof e?e:{};return i.date=t,i.args=arguments,new C(i)},b={s:d,z:function(t){var e=-t.utcOffset(),i=Math.abs(e);return(e<=0?"+":"-")+d(Math.floor(i/60),2,"0")+":"+d(i%60,2,"0")},m:function t(e,i){if(e.date()<i.date())return-t(i,e);var r=12*(i.year()-e.year())+(i.month()-e.month()),n=e.clone().add(r,o),a=i-n<0,s=e.clone().add(r+(a?-1:1),o);return+(-(r+(i-n)/(a?n-s:s-n))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(h){return({M:o,y:s,w:n,d:"day",D:l,h:r,m:i,s:e,ms:t,Q:a})[h]||String(h||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};b.l=y,b.i=m,b.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var C=function(){function d(t){this.$L=y(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[g]=!0}var f=d.prototype;return f.parse=function(t){this.$d=function(t){var e=t.date,i=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(c);if(r){var n=r[2]-1||0,o=(r[7]||"0").substring(0,3);return i?new Date(Date.UTC(r[1],n,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],n,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.init()},f.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},f.$utils=function(){return b},f.isValid=function(){return this.$d.toString()!==h},f.isSame=function(t,e){var i=_(t);return this.startOf(e)<=i&&i<=this.endOf(e)},f.isAfter=function(t,e){return _(t)<this.startOf(e)},f.isBefore=function(t,e){return this.endOf(e)<_(t)},f.$g=function(t,e,i){return b.u(t)?this[e]:this.set(i,t)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(t,a){var h=this,c=!!b.u(a)||a,u=b.p(t),d=function(t,e){var i=b.w(h.$u?Date.UTC(h.$y,e,t):new Date(h.$y,e,t),h);return c?i:i.endOf("day")},f=function(t,e){return b.w(h.toDate()[t].apply(h.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),h)},p=this.$W,g=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case s:return c?d(1,0):d(31,11);case o:return c?d(1,g):d(0,g+1);case n:var _=this.$locale().weekStart||0,C=(p<_?p+7:p)-_;return d(c?m-C:m+(6-C),g);case"day":case l:return f(y+"Hours",0);case r:return f(y+"Minutes",1);case i:return f(y+"Seconds",2);case e:return f(y+"Milliseconds",3);default:return this.clone()}},f.endOf=function(t){return this.startOf(t,!1)},f.$set=function(n,a){var h,c=b.p(n),u="set"+(this.$u?"UTC":""),d=((h={}).day=u+"Date",h[l]=u+"Date",h[o]=u+"Month",h[s]=u+"FullYear",h[r]=u+"Hours",h[i]=u+"Minutes",h[e]=u+"Seconds",h[t]=u+"Milliseconds",h)[c],f="day"===c?this.$D+(a-this.$W):a;if(c===o||c===s){var p=this.clone().set(l,1);p.$d[d](f),p.init(),this.$d=p.set(l,Math.min(this.$D,p.daysInMonth())).$d}else d&&this.$d[d](f);return this.init(),this},f.set=function(t,e){return this.clone().$set(t,e)},f.get=function(t){return this[b.p(t)]()},f.add=function(t,a){var l,h=this;t=Number(t);var c=b.p(a),u=function(e){var i=_(h);return b.w(i.date(i.date()+Math.round(e*t)),h)};if(c===o)return this.set(o,this.$M+t);if(c===s)return this.set(s,this.$y+t);if("day"===c)return u(1);if(c===n)return u(7);var d=((l={})[i]=6e4,l[r]=36e5,l[e]=1e3,l)[c]||1,f=this.$d.getTime()+t*d;return b.w(f,this)},f.subtract=function(t,e){return this.add(-1*t,e)},f.format=function(t){var e=this,i=this.$locale();if(!this.isValid())return i.invalidDate||h;var r=t||"YYYY-MM-DDTHH:mm:ssZ",n=b.z(this),o=this.$H,a=this.$m,s=this.$M,l=i.weekdays,c=i.months,d=i.meridiem,f=function(t,i,n,o){return t&&(t[i]||t(e,r))||n[i].slice(0,o)},p=function(t){return b.s(o%12||12,t,"0")},g=d||function(t,e,i){var r=t<12?"AM":"PM";return i?r.toLowerCase():r};return r.replace(u,function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return b.s(e.$y,4,"0");case"M":return s+1;case"MM":return b.s(s+1,2,"0");case"MMM":return f(i.monthsShort,s,c,3);case"MMMM":return f(c,s);case"D":return e.$D;case"DD":return b.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return f(i.weekdaysMin,e.$W,l,2);case"ddd":return f(i.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(o);case"HH":return b.s(o,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(o,a,!0);case"A":return g(o,a,!1);case"m":return String(a);case"mm":return b.s(a,2,"0");case"s":return String(e.$s);case"ss":return b.s(e.$s,2,"0");case"SSS":return b.s(e.$ms,3,"0");case"Z":return n}return null}(t)||n.replace(":","")})},f.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},f.diff=function(t,l,h){var c,u=this,d=b.p(l),f=_(t),p=(f.utcOffset()-this.utcOffset())*6e4,g=this-f,m=function(){return b.m(u,f)};switch(d){case s:c=m()/12;break;case o:c=m();break;case a:c=m()/3;break;case n:c=(g-p)/6048e5;break;case"day":c=(g-p)/864e5;break;case r:c=g/36e5;break;case i:c=g/6e4;break;case e:c=g/1e3;break;default:c=g}return h?c:b.a(c)},f.daysInMonth=function(){return this.endOf(o).$D},f.$locale=function(){return p[this.$L]},f.locale=function(t,e){if(!t)return this.$L;var i=this.clone(),r=y(t,e,!0);return r&&(i.$L=r),i},f.clone=function(){return b.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},d}(),x=C.prototype;return _.prototype=x,[["$ms",t],["$s",e],["$m",i],["$H",r],["$W","day"],["$M",o],["$y",s],["$D",l]].forEach(function(t){x[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),_.extend=function(t,e){return t.$i||(t(e,C,_),t.$i=!0),_},_.locale=y,_.isDayjs=m,_.unix=function(t){return _(1e3*t)},_.en=p[f],_.Ls=p,_.p={},_},t.exports=e()},31234:function(t){var e;e=function(){"use strict";let{entries:t,setPrototypeOf:e,isFrozen:i,getPrototypeOf:r,getOwnPropertyDescriptor:n}=Object,{freeze:o,seal:a,create:s}=Object,{apply:l,construct:h}="undefined"!=typeof Reflect&&Reflect;o||(o=function(t){return t}),a||(a=function(t){return t}),l||(l=function(t,e,i){return t.apply(e,i)}),h||(h=function(t,e){return new t(...e)});let c=v(Array.prototype.forEach),u=v(Array.prototype.pop),d=v(Array.prototype.push),f=v(String.prototype.toLowerCase),p=v(String.prototype.toString),g=v(String.prototype.match),m=v(String.prototype.replace),y=v(String.prototype.indexOf),_=v(String.prototype.trim),b=v(Object.prototype.hasOwnProperty),C=v(RegExp.prototype.test),x=(Y=TypeError,function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return h(Y,e)});function v(t){return function(e){for(var i=arguments.length,r=Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return l(t,e,r)}}function k(t,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;e&&e(t,null);let o=r.length;for(;o--;){let e=r[o];if("string"==typeof e){let t=n(e);t!==e&&(i(r)||(r[o]=t),e=t)}t[e]=!0}return t}function T(e){let i=s(null);for(let[r,n]of t(e))b(e,r)&&(Array.isArray(n)?i[r]=function(t){for(let e=0;e<t.length;e++)b(t,e)||(t[e]=null);return t}(n):n&&"object"==typeof n&&n.constructor===Object?i[r]=T(n):i[r]=n);return i}function A(t,e){for(;null!==t;){let i=n(t,e);if(i){if(i.get)return v(i.get);if("function"==typeof i.value)return v(i.value)}t=r(t)}return function(){return null}}let S=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"]),w=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"]),B=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"]),F=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"]),L=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"]),M=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),E=o(["#text"]),O=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","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),I=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"]),q=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"]),N=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),D=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$=a(/<%[\w\W]*|[\w\W]*%>/gm),z=a(/\${[\w\W]*}/gm),j=a(/^data-[\-\w.\u00B7-\uFFFF]/),P=a(/^aria-[\-\w]+$/),R=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W=a(/^(?:\w+script|data):/i),U=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),H=a(/^html$/i);var Y,V=Object.freeze({__proto__:null,MUSTACHE_EXPR:D,ERB_EXPR:$,TMPLIT_EXPR:z,DATA_ATTR:j,ARIA_ATTR:P,IS_ALLOWED_URI:R,IS_SCRIPT_OR_DATA:W,ATTR_WHITESPACE:U,DOCTYPE_NAME:H,CUSTOM_ELEMENT:a(/^[a-z][.\w]*(-[.\w]+)+$/i)});let G={element:1,text:3,progressingInstruction:7,comment:8,document:9},X=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let i=null,r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(i=e.getAttribute(r));let n="dompurify"+(i?"#"+i:"");try{return t.createPolicy(n,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+n+" could not be created."),null}};return function e(){let i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,n=t=>e(t);if(n.version="3.1.6",n.removed=[],!r||!r.document||r.document.nodeType!==G.document)return n.isSupported=!1,n;let{document:a}=r,l=a,h=l.currentScript,{DocumentFragment:v,HTMLTemplateElement:D,Node:$,Element:z,NodeFilter:j,NamedNodeMap:P=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:W,DOMParser:U,trustedTypes:Y}=r,Z=z.prototype,J=A(Z,"cloneNode"),Q=A(Z,"remove"),K=A(Z,"nextSibling"),tt=A(Z,"childNodes"),te=A(Z,"parentNode");if("function"==typeof D){let t=a.createElement("template");t.content&&t.content.ownerDocument&&(a=t.content.ownerDocument)}let ti="",{implementation:tr,createNodeIterator:tn,createDocumentFragment:to,getElementsByTagName:ta}=a,{importNode:ts}=l,tl={};n.isSupported="function"==typeof t&&"function"==typeof te&&tr&&void 0!==tr.createHTMLDocument;let{MUSTACHE_EXPR:th,ERB_EXPR:tc,TMPLIT_EXPR:tu,DATA_ATTR:td,ARIA_ATTR:tf,IS_SCRIPT_OR_DATA:tp,ATTR_WHITESPACE:tg,CUSTOM_ELEMENT:tm}=V,{IS_ALLOWED_URI:ty}=V,t_=null,tb=k({},[...S,...w,...B,...L,...E]),tC=null,tx=k({},[...O,...I,...q,...N]),tv=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}})),tk=null,tT=null,tA=!0,tS=!0,tw=!1,tB=!0,tF=!1,tL=!0,tM=!1,tE=!1,tO=!1,tI=!1,tq=!1,tN=!1,tD=!0,t$=!1,tz=!0,tj=!1,tP={},tR=null,tW=k({},["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"]),tU=null,tH=k({},["audio","video","img","source","image","track"]),tY=null,tV=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tG="http://www.w3.org/1998/Math/MathML",tX="http://www.w3.org/2000/svg",tZ="http://www.w3.org/1999/xhtml",tJ=tZ,tQ=!1,tK=null,t0=k({},[tG,tX,tZ],p),t1=null,t2=["application/xhtml+xml","text/html"],t5=null,t3=null,t6=a.createElement("form"),t4=function(t){return t instanceof RegExp||t instanceof Function},t8=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!t3||t3!==t){if(t&&"object"==typeof t||(t={}),t=T(t),t5="application/xhtml+xml"===(t1=-1===t2.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE)?p:f,t_=b(t,"ALLOWED_TAGS")?k({},t.ALLOWED_TAGS,t5):tb,tC=b(t,"ALLOWED_ATTR")?k({},t.ALLOWED_ATTR,t5):tx,tK=b(t,"ALLOWED_NAMESPACES")?k({},t.ALLOWED_NAMESPACES,p):t0,tY=b(t,"ADD_URI_SAFE_ATTR")?k(T(tV),t.ADD_URI_SAFE_ATTR,t5):tV,tU=b(t,"ADD_DATA_URI_TAGS")?k(T(tH),t.ADD_DATA_URI_TAGS,t5):tH,tR=b(t,"FORBID_CONTENTS")?k({},t.FORBID_CONTENTS,t5):tW,tk=b(t,"FORBID_TAGS")?k({},t.FORBID_TAGS,t5):{},tT=b(t,"FORBID_ATTR")?k({},t.FORBID_ATTR,t5):{},tP=!!b(t,"USE_PROFILES")&&t.USE_PROFILES,tA=!1!==t.ALLOW_ARIA_ATTR,tS=!1!==t.ALLOW_DATA_ATTR,tw=t.ALLOW_UNKNOWN_PROTOCOLS||!1,tB=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,tF=t.SAFE_FOR_TEMPLATES||!1,tL=!1!==t.SAFE_FOR_XML,tM=t.WHOLE_DOCUMENT||!1,tI=t.RETURN_DOM||!1,tq=t.RETURN_DOM_FRAGMENT||!1,tN=t.RETURN_TRUSTED_TYPE||!1,tO=t.FORCE_BODY||!1,tD=!1!==t.SANITIZE_DOM,t$=t.SANITIZE_NAMED_PROPS||!1,tz=!1!==t.KEEP_CONTENT,tj=t.IN_PLACE||!1,ty=t.ALLOWED_URI_REGEXP||R,tJ=t.NAMESPACE||tZ,tv=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&t4(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(tv.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&t4(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(tv.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(tv.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),tF&&(tS=!1),tq&&(tI=!0),tP&&(t_=k({},E),tC=[],!0===tP.html&&(k(t_,S),k(tC,O)),!0===tP.svg&&(k(t_,w),k(tC,I),k(tC,N)),!0===tP.svgFilters&&(k(t_,B),k(tC,I),k(tC,N)),!0===tP.mathMl&&(k(t_,L),k(tC,q),k(tC,N))),t.ADD_TAGS&&(t_===tb&&(t_=T(t_)),k(t_,t.ADD_TAGS,t5)),t.ADD_ATTR&&(tC===tx&&(tC=T(tC)),k(tC,t.ADD_ATTR,t5)),t.ADD_URI_SAFE_ATTR&&k(tY,t.ADD_URI_SAFE_ATTR,t5),t.FORBID_CONTENTS&&(tR===tW&&(tR=T(tR)),k(tR,t.FORBID_CONTENTS,t5)),tz&&(t_["#text"]=!0),tM&&k(t_,["html","head","body"]),t_.table&&(k(t_,["tbody"]),delete tk.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ti=(i=t.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===i&&(i=X(Y,h)),null!==i&&"string"==typeof ti&&(ti=i.createHTML(""));o&&o(t),t3=t}},t7=k({},["mi","mo","mn","ms","mtext"]),t9=k({},["foreignobject","annotation-xml"]),et=k({},["title","style","font","a","script"]),ee=k({},[...w,...B,...F]),ei=k({},[...L,...M]),er=function(t){let e=te(t);e&&e.tagName||(e={namespaceURI:tJ,tagName:"template"});let i=f(t.tagName),r=f(e.tagName);return!!tK[t.namespaceURI]&&(t.namespaceURI===tX?e.namespaceURI===tZ?"svg"===i:e.namespaceURI===tG?"svg"===i&&("annotation-xml"===r||t7[r]):!!ee[i]:t.namespaceURI===tG?e.namespaceURI===tZ?"math"===i:e.namespaceURI===tX?"math"===i&&t9[r]:!!ei[i]:t.namespaceURI===tZ?(e.namespaceURI!==tX||!!t9[r])&&(e.namespaceURI!==tG||!!t7[r])&&!ei[i]&&(et[i]||!ee[i]):"application/xhtml+xml"===t1&&!!tK[t.namespaceURI])},en=function(t){d(n.removed,{element:t});try{te(t).removeChild(t)}catch(e){Q(t)}},eo=function(t,e){try{d(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){d(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!tC[t]){if(tI||tq)try{en(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}}},ea=function(t){let e=null,r=null;if(tO)t="<remove></remove>"+t;else{let e=g(t,/^[\r\n\t ]+/);r=e&&e[0]}"application/xhtml+xml"===t1&&tJ===tZ&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");let n=i?i.createHTML(t):t;if(tJ===tZ)try{e=new U().parseFromString(n,t1)}catch(t){}if(!e||!e.documentElement){e=tr.createDocument(tJ,"template",null);try{e.documentElement.innerHTML=tQ?ti:n}catch(t){}}let o=e.body||e.documentElement;return(t&&r&&o.insertBefore(a.createTextNode(r),o.childNodes[0]||null),tJ===tZ)?ta.call(e,tM?"html":"body")[0]:tM?e.documentElement:o},es=function(t){return tn.call(t.ownerDocument||t,t,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT|j.SHOW_PROCESSING_INSTRUCTION|j.SHOW_CDATA_SECTION,null)},el=function(t){return t instanceof W&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof P)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},eh=function(t){return"function"==typeof $&&t instanceof $},ec=function(t,e,i){tl[t]&&c(tl[t],t=>{t.call(n,e,i,t3)})},eu=function(t){let e=null;if(ec("beforeSanitizeElements",t,null),el(t))return en(t),!0;let i=t5(t.nodeName);if(ec("uponSanitizeElement",t,{tagName:i,allowedTags:t_}),t.hasChildNodes()&&!eh(t.firstElementChild)&&C(/<[/\w]/g,t.innerHTML)&&C(/<[/\w]/g,t.textContent)||t.nodeType===G.progressingInstruction||tL&&t.nodeType===G.comment&&C(/<[/\w]/g,t.data))return en(t),!0;if(!t_[i]||tk[i]){if(!tk[i]&&ef(i)&&(tv.tagNameCheck instanceof RegExp&&C(tv.tagNameCheck,i)||tv.tagNameCheck instanceof Function&&tv.tagNameCheck(i)))return!1;if(tz&&!tR[i]){let e=te(t)||t.parentNode,i=tt(t)||t.childNodes;if(i&&e){let r=i.length;for(let n=r-1;n>=0;--n){let r=J(i[n],!0);r.__removalCount=(t.__removalCount||0)+1,e.insertBefore(r,K(t))}}}return en(t),!0}return t instanceof z&&!er(t)||("noscript"===i||"noembed"===i||"noframes"===i)&&C(/<\/no(script|embed|frames)/i,t.innerHTML)?(en(t),!0):(tF&&t.nodeType===G.text&&(e=t.textContent,c([th,tc,tu],t=>{e=m(e,t," ")}),t.textContent!==e&&(d(n.removed,{element:t.cloneNode()}),t.textContent=e)),ec("afterSanitizeElements",t,null),!1)},ed=function(t,e,i){if(tD&&("id"===e||"name"===e)&&(i in a||i in t6))return!1;if(tS&&!tT[e]&&C(td,e));else if(tA&&C(tf,e));else if(!tC[e]||tT[e]){if(!(ef(t)&&(tv.tagNameCheck instanceof RegExp&&C(tv.tagNameCheck,t)||tv.tagNameCheck instanceof Function&&tv.tagNameCheck(t))&&(tv.attributeNameCheck instanceof RegExp&&C(tv.attributeNameCheck,e)||tv.attributeNameCheck instanceof Function&&tv.attributeNameCheck(e))||"is"===e&&tv.allowCustomizedBuiltInElements&&(tv.tagNameCheck instanceof RegExp&&C(tv.tagNameCheck,i)||tv.tagNameCheck instanceof Function&&tv.tagNameCheck(i))))return!1}else if(tY[e]);else if(C(ty,m(i,tg,"")));else if(("src"===e||"xlink:href"===e||"href"===e)&&"script"!==t&&0===y(i,"data:")&&tU[t]);else if(tw&&!C(tp,m(i,tg,"")));else if(i)return!1;return!0},ef=function(t){return"annotation-xml"!==t&&g(t,tm)},ep=function(t){ec("beforeSanitizeAttributes",t,null);let{attributes:e}=t;if(!e)return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:tC},o=e.length;for(;o--;){let{name:a,namespaceURI:s,value:l}=e[o],h=t5(a),d="value"===a?l:_(l);if(r.attrName=h,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,ec("uponSanitizeAttribute",t,r),d=r.attrValue,tL&&C(/((--!?|])>)|<\/(style|title)/i,d)){eo(a,t);continue}if(r.forceKeepAttr||(eo(a,t),!r.keepAttr))continue;if(!tB&&C(/\/>/i,d)){eo(a,t);continue}tF&&c([th,tc,tu],t=>{d=m(d,t," ")});let f=t5(t.nodeName);if(ed(f,h,d)){if(t$&&("id"===h||"name"===h)&&(eo(a,t),d="user-content-"+d),i&&"object"==typeof Y&&"function"==typeof Y.getAttributeType){if(s);else switch(Y.getAttributeType(f,h)){case"TrustedHTML":d=i.createHTML(d);break;case"TrustedScriptURL":d=i.createScriptURL(d)}}try{s?t.setAttributeNS(s,a,d):t.setAttribute(a,d),el(t)?en(t):u(n.removed)}catch(t){}}}ec("afterSanitizeAttributes",t,null)},eg=function t(e){let i=null,r=es(e);for(ec("beforeSanitizeShadowDOM",e,null);i=r.nextNode();)ec("uponSanitizeShadowNode",i,null),eu(i)||(i.content instanceof v&&t(i.content),ep(i));ec("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,a=null,s=null;if((tQ=!t)&&(t="<!-->"),"string"!=typeof t&&!eh(t)){if("function"==typeof t.toString){if("string"!=typeof(t=t.toString()))throw x("dirty is not a string, aborting")}else throw x("toString is not a function")}if(!n.isSupported)return t;if(tE||t8(e),n.removed=[],"string"==typeof t&&(tj=!1),tj){if(t.nodeName){let e=t5(t.nodeName);if(!t_[e]||tk[e])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof $)(o=(r=ea("<!---->")).ownerDocument.importNode(t,!0)).nodeType===G.element&&"BODY"===o.nodeName?r=o:"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!tI&&!tF&&!tM&&-1===t.indexOf("<"))return i&&tN?i.createHTML(t):t;if(!(r=ea(t)))return tI?null:tN?ti:""}r&&tO&&en(r.firstChild);let h=es(tj?t:r);for(;a=h.nextNode();)eu(a)||(a.content instanceof v&&eg(a.content),ep(a));if(tj)return t;if(tI){if(tq)for(s=to.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(tC.shadowroot||tC.shadowrootmode)&&(s=ts.call(l,s,!0)),s}let u=tM?r.outerHTML:r.innerHTML;return tM&&t_["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&C(H,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),tF&&c([th,tc,tu],t=>{u=m(u,t," ")}),i&&tN?i.createHTML(u):u},n.setConfig=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t8(t),tE=!0},n.clearConfig=function(){t3=null,tE=!1},n.isValidAttribute=function(t,e,i){return t3||t8({}),ed(t5(t),t5(e),i)},n.addHook=function(t,e){"function"==typeof e&&(tl[t]=tl[t]||[],d(tl[t],e))},n.removeHook=function(t){if(tl[t])return u(tl[t])},n.removeHooks=function(t){tl[t]&&(tl[t]=[])},n.removeAllHooks=function(){tl={}},n}()},t.exports=e()},97597:(t,e,i)=>{"use strict";function r(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var r=Array.from("string"==typeof t?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var n=r.reduce(function(t,e){var i=e.match(/\n([\t ]+|(?!\s).)/g);return i?t.concat(i.map(function(t){var e,i;return null!==(i=null===(e=t.match(/[\t ]/g))||void 0===e?void 0:e.length)&&void 0!==i?i:0})):t},[]);if(n.length){var o=RegExp("\n[ ]{"+Math.min.apply(Math,n)+"}","g");r=r.map(function(t){return t.replace(o,"\n")})}r[0]=r[0].replace(/^\r?\n/,"");var a=r[0];return e.forEach(function(t,e){var i=a.match(/(?:^|\n)( *)$/),n=i?i[1]:"",o=t;"string"==typeof t&&t.includes("\n")&&(o=String(t).split("\n").map(function(t,e){return 0===e?t:""+n+t}).join("\n")),a+=o+r[e+1]}),a}i.d(e,{T:()=>r})},93126:(t,e,i)=>{"use strict";function r(t,e){let i;if(void 0===e)for(let e of t)null!=e&&(i<e||void 0===i&&e>=e)&&(i=e);else{let r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(i<n||void 0===i&&n>=n)&&(i=n)}return i}function n(t,e){let i;if(void 0===e)for(let e of t)null!=e&&(i>e||void 0===i&&e>=e)&&(i=e);else{let r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(i>n||void 0===i&&n>=n)&&(i=n)}return i}function o(t){return t}function a(t){return"translate("+t+",0)"}function s(t){return"translate(0,"+t+")"}function l(){return!this.__axis}function h(t,e){var i=[],r=null,n=null,h=6,c=6,u=3,d="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,f=1===t||4===t?-1:1,p=4===t||2===t?"x":"y",g=1===t||3===t?a:s;function m(a){var s=null==r?e.ticks?e.ticks.apply(e,i):e.domain():r,m=null==n?e.tickFormat?e.tickFormat.apply(e,i):o:n,y=Math.max(h,0)+u,_=e.range(),b=+_[0]+d,C=+_[_.length-1]+d,x=(e.bandwidth?function(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),i=>+t(i)+e}:function(t){return e=>+t(e)})(e.copy(),d),v=a.selection?a.selection():a,k=v.selectAll(".domain").data([null]),T=v.selectAll(".tick").data(s,e).order(),A=T.exit(),S=T.enter().append("g").attr("class","tick"),w=T.select("line"),B=T.select("text");k=k.merge(k.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),T=T.merge(S),w=w.merge(S.append("line").attr("stroke","currentColor").attr(p+"2",f*h)),B=B.merge(S.append("text").attr("fill","currentColor").attr(p,f*y).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),a!==v&&(k=k.transition(a),T=T.transition(a),w=w.transition(a),B=B.transition(a),A=A.transition(a).attr("opacity",1e-6).attr("transform",function(t){return isFinite(t=x(t))?g(t+d):this.getAttribute("transform")}),S.attr("opacity",1e-6).attr("transform",function(t){var e=this.parentNode.__axis;return g((e&&isFinite(e=e(t))?e:x(t))+d)})),A.remove(),k.attr("d",4===t||2===t?c?"M"+f*c+","+b+"H"+d+"V"+C+"H"+f*c:"M"+d+","+b+"V"+C:c?"M"+b+","+f*c+"V"+d+"H"+C+"V"+f*c:"M"+b+","+d+"H"+C),T.attr("opacity",1).attr("transform",function(t){return g(x(t)+d)}),w.attr(p+"2",f*h),B.attr(p,f*y).text(m),v.filter(l).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),v.each(function(){this.__axis=x})}return m.scale=function(t){return arguments.length?(e=t,m):e},m.ticks=function(){return i=Array.from(arguments),m},m.tickArguments=function(t){return arguments.length?(i=null==t?[]:Array.from(t),m):i.slice()},m.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),m):r&&r.slice()},m.tickFormat=function(t){return arguments.length?(n=t,m):n},m.tickSize=function(t){return arguments.length?(h=c=+t,m):h},m.tickSizeInner=function(t){return arguments.length?(h=+t,m):h},m.tickSizeOuter=function(t){return arguments.length?(c=+t,m):c},m.tickPadding=function(t){return arguments.length?(u=+t,m):u},m.offset=function(t){return arguments.length?(d=+t,m):d},m}function c(t){return h(1,t)}function u(t){return h(3,t)}function d(){}function f(t){return null==t?d:function(){return this.querySelector(t)}}function p(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function g(){return[]}function m(t){return null==t?g:function(){return this.querySelectorAll(t)}}function y(t){return function(){return this.matches(t)}}function _(t){return function(e){return e.matches(t)}}i.d(e,{JLW:()=>nz,l78:()=>u,tlR:()=>c,qrM:()=>nQ,Yu4:()=>n0,IA3:()=>n2,Wi0:()=>n3,PGM:()=>n6,OEq:()=>n8,y8u:()=>ot,olC:()=>oi,IrU:()=>on,oDi:()=>os,Q7f:()=>oh,cVp:()=>ou,lUB:()=>nR,Lx9:()=>of,nVG:()=>oC,uxU:()=>ox,Xf2:()=>oT,GZz:()=>oS,UPb:()=>oB,dyv:()=>ow,bEH:()=>eJ,n8j:()=>nH,T9B:()=>r,jkA:()=>n,rLf:()=>nG,m4Y:()=>function t(){var e,i=ih();return i.copy=function(){return il(i,t())},ic.apply(i,arguments),e=i.domain,i.ticks=function(t){var i=e();return function(t,e,i){if(e=+e,t=+t,!((i=+i)>0))return[];if(t===e)return[t];let r=e<t,[n,o,a]=r?e1(e,t,i):e1(t,e,i);if(!(o>=n))return[];let s=o-n+1,l=Array(s);if(r){if(a<0)for(let t=0;t<s;++t)l[t]=-((o-t)/a);else for(let t=0;t<s;++t)l[t]=(o-t)*a}else if(a<0)for(let t=0;t<s;++t)l[t]=-((n+t)/a);else for(let t=0;t<s;++t)l[t]=(n+t)*a;return l}(i[0],i[i.length-1],null==t?10:t)},i.tickFormat=function(t,i){var r=e();return function(t,e,i,r){var n,o,a=e5(t,e,i);switch((r=id(null==r?",f":r)).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(o=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(im(s)/3)))-im(Math.abs(a))))||(r.precision=o),tl(r,s);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=Math.max(0,im(Math.abs(Math.max(Math.abs(t),Math.abs(e)))-(n=Math.abs(n=a)))-im(n))+1)||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=Math.max(0,-im(Math.abs(a))))||(r.precision=o-("%"===r.type)*2)}return ts(r)}(r[0],r[r.length-1],null==t?10:t,i)},i.nice=function(t){null==t&&(t=10);var r,n,o=e(),a=0,s=o.length-1,l=o[a],h=o[s],c=10;for(h<l&&(n=l,l=h,h=n,n=a,a=s,s=n);c-- >0;){if((n=e2(l,h,t))===r)return o[a]=l,o[s]=h,e(o);if(n>0)l=Math.floor(l/n)*n,h=Math.ceil(h/n)*n;else if(n<0)l=Math.ceil(l*n)/n,h=Math.floor(h*n)/n;else break;r=n}return i},i},UMr:()=>function t(){var e=new iv,i=[],r=[],n=iA;function o(t){let o=e.get(t);if(void 0===o){if(n!==iA)return n;e.set(t,o=i.push(t)-1)}return r[o%r.length]}return o.domain=function(t){if(!arguments.length)return i.slice();for(let r of(i=[],e=new iv,t))e.has(r)||e.set(r,i.push(r)-1);return o},o.range=function(t){return arguments.length?(r=Array.from(t),o):r.slice()},o.unknown=function(t){return arguments.length?(n=t,o):n},o.copy=function(){return t(i,r).unknown(n)},ic.apply(o,arguments),o},w7C:()=>nu,zt:()=>nd,Ltv:()=>nf,Ubm:()=>np,JWy:()=>eI,UAC:()=>iq,DCK:()=>tc,TUC:()=>iU,Agd:()=>iO,wXd:()=>iM,ABi:()=>ij,Ui6:()=>i0,rGn:()=>iH,YPH:()=>iz,Mol:()=>iW,PGu:()=>iP,GuW:()=>iR});var b=Array.prototype.find;function C(){return this.firstElementChild}var x=Array.prototype.filter;function v(){return Array.from(this.children)}function k(t){return Array(t.length)}function T(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function A(t,e,i,r,n,o){for(var a,s=0,l=e.length,h=o.length;s<h;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):i[s]=new T(t,o[s]);for(;s<l;++s)(a=e[s])&&(n[s]=a)}function S(t,e,i,r,n,o,a){var s,l,h,c=new Map,u=e.length,d=o.length,f=Array(u);for(s=0;s<u;++s)(l=e[s])&&(f[s]=h=a.call(l,l.__data__,s,e)+"",c.has(h)?n[s]=l:c.set(h,l));for(s=0;s<d;++s)h=a.call(t,o[s],s,o)+"",(l=c.get(h))?(r[s]=l,l.__data__=o[s],c.delete(h)):i[s]=new T(t,o[s]);for(s=0;s<u;++s)(l=e[s])&&c.get(f[s])===l&&(n[s]=l)}function w(t){return t.__data__}function B(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}T.prototype={constructor:T,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)}};var F="http://www.w3.org/1999/xhtml";let L={svg:"http://www.w3.org/2000/svg",xhtml:F,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function M(t){var e=t+="",i=e.indexOf(":");return i>=0&&"xmlns"!==(e=t.slice(0,i))&&(t=t.slice(i+1)),L.hasOwnProperty(e)?{space:L[e],local:t}:t}function E(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function O(t,e){return t.style.getPropertyValue(e)||E(t).getComputedStyle(t,null).getPropertyValue(e)}function I(t){return t.trim().split(/^|\s+/)}function q(t){return t.classList||new N(t)}function N(t){this._node=t,this._names=I(t.getAttribute("class")||"")}function D(t,e){for(var i=q(t),r=-1,n=e.length;++r<n;)i.add(e[r])}function $(t,e){for(var i=q(t),r=-1,n=e.length;++r<n;)i.remove(e[r])}function z(){this.textContent=""}function j(){this.innerHTML=""}function P(){this.nextSibling&&this.parentNode.appendChild(this)}function R(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function W(t){var e=M(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===F&&e.documentElement.namespaceURI===F?e.createElement(t):e.createElementNS(i,t)}})(e)}function U(){return null}function H(){var t=this.parentNode;t&&t.removeChild(this)}function Y(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function V(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function G(t){return function(){var e=this.__on;if(e){for(var i,r=0,n=-1,o=e.length;r<o;++r)(i=e[r],t.type&&i.type!==t.type||i.name!==t.name)?e[++n]=i:this.removeEventListener(i.type,i.listener,i.options);++n?e.length=n:delete this.__on}}}function X(t,e,i){return function(){var r,n=this.__on,o=function(t){e.call(this,t,this.__data__)};if(n){for(var a=0,s=n.length;a<s;++a)if((r=n[a]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=i),r.value=e;return}}this.addEventListener(t.type,o,i),r={type:t.type,name:t.name,value:e,listener:o,options:i},n?n.push(r):this.__on=[r]}}function Z(t,e,i){var r=E(t),n=r.CustomEvent;"function"==typeof n?n=new n(e,i):(n=r.document.createEvent("Event"),i?(n.initEvent(e,i.bubbles,i.cancelable),n.detail=i.detail):n.initEvent(e,!1,!1)),t.dispatchEvent(n)}N.prototype={add:function(t){0>this._names.indexOf(t)&&(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}};var J=[null];function Q(t,e){this._groups=t,this._parents=e}function K(){return new Q([[document.documentElement]],J)}Q.prototype=K.prototype={constructor:Q,select:function(t){"function"!=typeof t&&(t=f(t));for(var e=this._groups,i=e.length,r=Array(i),n=0;n<i;++n)for(var o,a,s=e[n],l=s.length,h=r[n]=Array(l),c=0;c<l;++c)(o=s[c])&&(a=t.call(o,o.__data__,c,s))&&("__data__"in o&&(a.__data__=o.__data__),h[c]=a);return new Q(r,this._parents)},selectAll:function(t){if("function"==typeof t){var e;e=t,t=function(){return p(e.apply(this,arguments))}}else t=m(t);for(var i=this._groups,r=i.length,n=[],o=[],a=0;a<r;++a)for(var s,l=i[a],h=l.length,c=0;c<h;++c)(s=l[c])&&(n.push(t.call(s,s.__data__,c,l)),o.push(s));return new Q(n,o)},selectChild:function(t){var e;return this.select(null==t?C:(e="function"==typeof t?t:_(t),function(){return b.call(this.children,e)}))},selectChildren:function(t){var e;return this.selectAll(null==t?v:(e="function"==typeof t?t:_(t),function(){return x.call(this.children,e)}))},filter:function(t){"function"!=typeof t&&(t=y(t));for(var e=this._groups,i=e.length,r=Array(i),n=0;n<i;++n)for(var o,a=e[n],s=a.length,l=r[n]=[],h=0;h<s;++h)(o=a[h])&&t.call(o,o.__data__,h,a)&&l.push(o);return new Q(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,w);var i=e?S:A,r=this._parents,n=this._groups;"function"!=typeof t&&(_=t,t=function(){return _});for(var o=n.length,a=Array(o),s=Array(o),l=Array(o),h=0;h<o;++h){var c=r[h],u=n[h],d=u.length,f="object"==typeof(y=t.call(c,c&&c.__data__,h,r))&&"length"in y?y:Array.from(y),p=f.length,g=s[h]=Array(p),m=a[h]=Array(p);i(c,u,g,m,l[h]=Array(d),f,e);for(var y,_,b,C,x=0,v=0;x<p;++x)if(b=g[x]){for(x>=v&&(v=x+1);!(C=m[v])&&++v<p;);b._next=C||null}}return(a=new Q(a,r))._enter=s,a._exit=l,a},enter:function(){return new Q(this._enter||this._groups.map(k),this._parents)},exit:function(){return new Q(this._exit||this._groups.map(k),this._parents)},join:function(t,e,i){var r=this.enter(),n=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(n=e(n))&&(n=n.selection()),null==i?o.remove():i(o),r&&n?r.merge(n).order():n},merge:function(t){for(var e=t.selection?t.selection():t,i=this._groups,r=e._groups,n=i.length,o=r.length,a=Math.min(n,o),s=Array(n),l=0;l<a;++l)for(var h,c=i[l],u=r[l],d=c.length,f=s[l]=Array(d),p=0;p<d;++p)(h=c[p]||u[p])&&(f[p]=h);for(;l<n;++l)s[l]=i[l];return new Q(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var r,n=t[e],o=n.length-1,a=n[o];--o>=0;)(r=n[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,i){return e&&i?t(e.__data__,i.__data__):!e-!i}t||(t=B);for(var i=this._groups,r=i.length,n=Array(r),o=0;o<r;++o){for(var a,s=i[o],l=s.length,h=n[o]=Array(l),c=0;c<l;++c)(a=s[c])&&(h[c]=a);h.sort(e)}return new Q(n,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,o=r.length;n<o;++n){var a=r[n];if(a)return a}return null},size:function(){let t=0;for(let e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,i=0,r=e.length;i<r;++i)for(var n,o=e[i],a=0,s=o.length;a<s;++a)(n=o[a])&&t.call(n,n.__data__,a,o);return this},attr:function(t,e){var i=M(t);if(arguments.length<2){var r=this.node();return i.local?r.getAttributeNS(i.space,i.local):r.getAttribute(i)}return this.each((null==e?i.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?i.local?function(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}:function(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}:i.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(i,e))},style:function(t,e,i){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,i){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,i)}}:function(t,e,i){return function(){this.style.setProperty(t,e,i)}})(t,e,null==i?"":i)):O(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var i=e.apply(this,arguments);null==i?delete this[t]:this[t]=i}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var i=I(t+"");if(arguments.length<2){for(var r=q(this.node()),n=-1,o=i.length;++n<o;)if(!r.contains(i[n]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?D:$)(this,t)}}:e?function(t){return function(){D(this,t)}}:function(t){return function(){$(this,t)}})(i,e))},text:function(t){return arguments.length?this.each(null==t?z:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?j:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(P)},lower:function(){return this.each(R)},append:function(t){var e="function"==typeof t?t:W(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var i="function"==typeof t?t:W(t),r=null==e?U:"function"==typeof e?e:f(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(H)},clone:function(t){return this.select(t?V:Y)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,i){var r,n,o=(t+"").trim().split(/^|\s+/).map(function(t){var e="",i=t.indexOf(".");return i>=0&&(e=t.slice(i+1),t=t.slice(0,i)),{type:t,name:e}}),a=o.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var l,h=0,c=s.length;h<c;++h)for(r=0,l=s[h];r<a;++r)if((n=o[r]).type===l.type&&n.name===l.name)return l.value}return}for(r=0,s=e?X:G;r<a;++r)this.each(s(o[r],e,i));return this},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return Z(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return Z(this,t,e)}})(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r,n=t[e],o=0,a=n.length;o<a;++o)(r=n[o])&&(yield r)}};var tt={value:()=>{}};function te(){for(var t,e=0,i=arguments.length,r={};e<i;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw Error("illegal type: "+t);r[t]=[]}return new ti(r)}function ti(t){this._=t}function tr(t,e,i){for(var r=0,n=t.length;r<n;++r)if(t[r].name===e){t[r]=tt,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=i&&t.push({name:e,value:i}),t}ti.prototype=te.prototype={constructor:ti,on:function(t,e){var i,r=this._,n=(t+"").trim().split(/^|\s+/).map(function(t){var e="",i=t.indexOf(".");if(i>=0&&(e=t.slice(i+1),t=t.slice(0,i)),t&&!r.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:e}}),o=-1,a=n.length;if(arguments.length<2){for(;++o<a;)if((i=(t=n[o]).type)&&(i=function(t,e){for(var i,r=0,n=t.length;r<n;++r)if((i=t[r]).name===e)return i.value}(r[i],t.name)))return i;return}if(null!=e&&"function"!=typeof e)throw Error("invalid callback: "+e);for(;++o<a;)if(i=(t=n[o]).type)r[i]=tr(r[i],t.name,e);else if(null==e)for(i in r)r[i]=tr(r[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new ti(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var i,r,n=Array(i),o=0;o<i;++o)n[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(r=this._[t],o=0,i=r.length;o<i;++o)r[o].value.apply(e,n)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(var r=this._[t],n=0,o=r.length;n<o;++n)r[n].value.apply(e,i)}};var tn,to,ta,ts,tl,th,tc,tu,td,tf=0,tp=0,tg=0,tm=0,ty=0,t_=0,tb="object"==typeof performance&&performance.now?performance:Date,tC="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function tx(){return ty||(tC(tv),ty=tb.now()+t_)}function tv(){ty=0}function tk(){this._call=this._time=this._next=null}function tT(t,e,i){var r=new tk;return r.restart(t,e,i),r}function tA(){ty=(tm=tb.now())+t_,tf=tp=0;try{!function(){tx(),++tf;for(var t,e=tu;e;)(t=ty-e._time)>=0&&e._call.call(void 0,t),e=e._next;--tf}()}finally{tf=0,function(){for(var t,e,i=tu,r=1/0;i;)i._call?(r>i._time&&(r=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:tu=e);td=t,tw(r)}(),ty=0}}function tS(){var t=tb.now(),e=t-tm;e>1e3&&(t_-=e,tm=t)}function tw(t){!tf&&(tp&&(tp=clearTimeout(tp)),t-ty>24?(t<1/0&&(tp=setTimeout(tA,t-tb.now()-t_)),tg&&(tg=clearInterval(tg))):(tg||(tm=tb.now(),tg=setInterval(tS,1e3)),tf=1,tC(tA)))}function tB(t,e,i){var r=new tk;return e=null==e?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,i),r}tk.prototype=tT.prototype={constructor:tk,restart:function(t,e,i){if("function"!=typeof t)throw TypeError("callback is not a function");i=(null==i?tx():+i)+(null==e?0:+e),this._next||td===this||(td?td._next=this:tu=this,td=this),this._call=t,this._time=i,tw()},stop:function(){this._call&&(this._call=null,this._time=1/0,tw())}};var tF=te("start","end","cancel","interrupt"),tL=[];function tM(t,e,i,r,n,o){var a=t.__transition;if(a){if(i in a)return}else t.__transition={};!function(t,e,i){var r,n=t.__transition;function o(l){var h,c,u,d;if(1!==i.state)return s();for(h in n)if((d=n[h]).name===i.name){if(3===d.state)return tB(o);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete n[h]):+h<e&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete n[h])}if(tB(function(){3===i.state&&(i.state=4,i.timer.restart(a,i.delay,i.time),a(l))}),i.state=2,i.on.call("start",t,t.__data__,i.index,i.group),2===i.state){for(h=0,i.state=3,r=Array(u=i.tween.length),c=-1;h<u;++h)(d=i.tween[h].value.call(t,t.__data__,i.index,i.group))&&(r[++c]=d);r.length=c+1}}function a(e){for(var n=e<i.duration?i.ease.call(null,e/i.duration):(i.timer.restart(s),i.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(t,n);5===i.state&&(i.on.call("end",t,t.__data__,i.index,i.group),s())}function s(){for(var r in i.state=6,i.timer.stop(),delete n[e],n)return;delete t.__transition}n[e]=i,i.timer=tT(function(t){i.state=1,i.timer.restart(o,i.delay,i.time),i.delay<=t&&o(t-i.delay)},0,i.time)}(t,i,{name:e,index:r,group:n,on:tF,tween:tL,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function tE(t,e){var i=tI(t,e);if(i.state>0)throw Error("too late; already scheduled");return i}function tO(t,e){var i=tI(t,e);if(i.state>3)throw Error("too late; already running");return i}function tI(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw Error("transition not found");return i}function tq(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var tN=180/Math.PI,tD={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function t$(t,e,i,r,n,o){var a,s,l;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(l=t*i+e*r)&&(i-=t*l,r-=e*l),(s=Math.sqrt(i*i+r*r))&&(i/=s,r/=s,l/=s),t*r<e*i&&(t=-t,e=-e,l=-l,a=-a),{translateX:n,translateY:o,rotate:Math.atan2(e,t)*tN,skewX:Math.atan(l)*tN,scaleX:a,scaleY:s}}function tz(t,e,i,r){function n(t){return t.length?t.pop()+" ":""}return function(o,a){var s,l,h,c,u=[],d=[];return o=t(o),a=t(a),!function(t,r,n,o,a,s){if(t!==n||r!==o){var l=a.push("translate(",null,e,null,i);s.push({i:l-4,x:tq(t,n)},{i:l-2,x:tq(r,o)})}else(n||o)&&a.push("translate("+n+e+o+i)}(o.translateX,o.translateY,a.translateX,a.translateY,u,d),(s=o.rotate)!==(l=a.rotate)?(s-l>180?l+=360:l-s>180&&(s+=360),d.push({i:u.push(n(u)+"rotate(",null,r)-2,x:tq(s,l)})):l&&u.push(n(u)+"rotate("+l+r),(h=o.skewX)!==(c=a.skewX)?d.push({i:u.push(n(u)+"skewX(",null,r)-2,x:tq(h,c)}):c&&u.push(n(u)+"skewX("+c+r),!function(t,e,i,r,o,a){if(t!==i||e!==r){var s=o.push(n(o)+"scale(",null,",",null,")");a.push({i:s-4,x:tq(t,i)},{i:s-2,x:tq(e,r)})}else(1!==i||1!==r)&&o.push(n(o)+"scale("+i+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,d),o=a=null,function(t){for(var e,i=-1,r=d.length;++i<r;)u[(e=d[i]).i]=e.x(t);return u.join("")}}}var tj=tz(function(t){let e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?tD:t$(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),tP=tz(function(t){return null==t?tD:(tn||(tn=document.createElementNS("http://www.w3.org/2000/svg","g")),tn.setAttribute("transform",t),t=tn.transform.baseVal.consolidate())?t$((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):tD},", ",")",")");function tR(t,e,i){var r=t._id;return t.each(function(){var t=tO(this,r);(t.value||(t.value={}))[e]=i.apply(this,arguments)}),function(t){return tI(t,r).value[e]}}function tW(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function tU(t,e){var i=Object.create(t.prototype);for(var r in e)i[r]=e[r];return i}function tH(){}var tY="\\s*([+-]?\\d+)\\s*",tV="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tG="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tX=/^#([0-9a-f]{3,8})$/,tZ=RegExp(`^rgb\\(${tY},${tY},${tY}\\)$`),tJ=RegExp(`^rgb\\(${tG},${tG},${tG}\\)$`),tQ=RegExp(`^rgba\\(${tY},${tY},${tY},${tV}\\)$`),tK=RegExp(`^rgba\\(${tG},${tG},${tG},${tV}\\)$`),t0=RegExp(`^hsl\\(${tV},${tG},${tG}\\)$`),t1=RegExp(`^hsla\\(${tV},${tG},${tG},${tV}\\)$`),t2={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};function t5(){return this.rgb().formatHex()}function t3(){return this.rgb().formatRgb()}function t6(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=tX.exec(t))?(i=e[1].length,e=parseInt(e[1],16),6===i?t4(e):3===i?new et(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?t8(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?t8(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=tZ.exec(t))?new et(e[1],e[2],e[3],1):(e=tJ.exec(t))?new et(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=tQ.exec(t))?t8(e[1],e[2],e[3],e[4]):(e=tK.exec(t))?t8(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=t0.exec(t))?ea(e[1],e[2]/100,e[3]/100,1):(e=t1.exec(t))?ea(e[1],e[2]/100,e[3]/100,e[4]):t2.hasOwnProperty(t)?t4(t2[t]):"transparent"===t?new et(NaN,NaN,NaN,0):null}function t4(t){return new et(t>>16&255,t>>8&255,255&t,1)}function t8(t,e,i,r){return r<=0&&(t=e=i=NaN),new et(t,e,i,r)}function t7(t){return(t instanceof tH||(t=t6(t)),t)?new et((t=t.rgb()).r,t.g,t.b,t.opacity):new et}function t9(t,e,i,r){return 1==arguments.length?t7(t):new et(t,e,i,null==r?1:r)}function et(t,e,i,r){this.r=+t,this.g=+e,this.b=+i,this.opacity=+r}function ee(){return`#${eo(this.r)}${eo(this.g)}${eo(this.b)}`}function ei(){let t=er(this.opacity);return`${1===t?"rgb(":"rgba("}${en(this.r)}, ${en(this.g)}, ${en(this.b)}${1===t?")":`, ${t})`}`}function er(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function en(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function eo(t){return((t=en(t))<16?"0":"")+t.toString(16)}function ea(t,e,i,r){return r<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new el(t,e,i,r)}function es(t){if(t instanceof el)return new el(t.h,t.s,t.l,t.opacity);if(t instanceof tH||(t=t6(t)),!t)return new el;if(t instanceof el)return t;var e=(t=t.rgb()).r/255,i=t.g/255,r=t.b/255,n=Math.min(e,i,r),o=Math.max(e,i,r),a=NaN,s=o-n,l=(o+n)/2;return s?(a=e===o?(i-r)/s+(i<r)*6:i===o?(r-e)/s+2:(e-i)/s+4,s/=l<.5?o+n:2-o-n,a*=60):s=l>0&&l<1?0:a,new el(a,s,l,t.opacity)}function el(t,e,i,r){this.h=+t,this.s=+e,this.l=+i,this.opacity=+r}function eh(t){return(t=(t||0)%360)<0?t+360:t}function ec(t){return Math.max(0,Math.min(1,t||0))}function eu(t,e,i){return(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)*255}function ed(t,e,i,r,n){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*i+(1+3*t+3*o-3*a)*r+a*n)/6}tW(tH,t6,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:t5,formatHex:t5,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return es(this).formatHsl()},formatRgb:t3,toString:t3}),tW(et,t9,tU(tH,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new et(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new et(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new et(en(this.r),en(this.g),en(this.b),er(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:ee,formatHex:ee,formatHex8:function(){return`#${eo(this.r)}${eo(this.g)}${eo(this.b)}${eo((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:ei,toString:ei})),tW(el,function(t,e,i,r){return 1==arguments.length?es(t):new el(t,e,i,null==r?1:r)},tU(tH,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new el(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new el(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,i=this.l,r=i+(i<.5?i:1-i)*e,n=2*i-r;return new et(eu(t>=240?t-240:t+120,n,r),eu(t,n,r),eu(t<120?t+240:t-120,n,r),this.opacity)},clamp(){return new el(eh(this.h),ec(this.s),ec(this.l),er(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=er(this.opacity);return`${1===t?"hsl(":"hsla("}${eh(this.h)}, ${100*ec(this.s)}%, ${100*ec(this.l)}%${1===t?")":`, ${t})`}`}}));let ef=t=>()=>t;function ep(t,e){return function(i){return t+i*e}}function eg(t,e){var i=e-t;return i?ep(t,i):ef(isNaN(t)?e:t)}let em=function t(e){var i,r=1==(i=+(i=e))?eg:function(t,e){var r,n,o;return e-t?(r=t,n=e,r=Math.pow(r,o=i),n=Math.pow(n,o)-r,o=1/o,function(t){return Math.pow(r+t*n,o)}):ef(isNaN(t)?e:t)};function n(t,e){var i=r((t=t9(t)).r,(e=t9(e)).r),n=r(t.g,e.g),o=r(t.b,e.b),a=eg(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=n(e),t.b=o(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function ey(t){return function(e){var i,r,n=e.length,o=Array(n),a=Array(n),s=Array(n);for(i=0;i<n;++i)r=t9(e[i]),o[i]=r.r||0,a[i]=r.g||0,s[i]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}ey(function(t){var e=t.length-1;return function(i){var r=i<=0?i=0:i>=1?(i=1,e-1):Math.floor(i*e),n=t[r],o=t[r+1],a=r>0?t[r-1]:2*n-o,s=r<e-1?t[r+2]:2*o-n;return ed((i-r/e)*e,a,n,o,s)}}),ey(function(t){var e=t.length;return function(i){var r=Math.floor(((i%=1)<0?++i:i)*e),n=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return ed((i-r/e)*e,n,o,a,s)}});var e_=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eb=RegExp(e_.source,"g");function eC(t,e){var i,r,n,o,a,s=e_.lastIndex=eb.lastIndex=0,l=-1,h=[],c=[];for(t+="",e+="";(n=e_.exec(t))&&(o=eb.exec(e));)(a=o.index)>s&&(a=e.slice(s,a),h[l]?h[l]+=a:h[++l]=a),(n=n[0])===(o=o[0])?h[l]?h[l]+=o:h[++l]=o:(h[++l]=null,c.push({i:l,x:tq(n,o)})),s=eb.lastIndex;return s<e.length&&(a=e.slice(s),h[l]?h[l]+=a:h[++l]=a),h.length<2?c[0]?(i=c[0].x,function(t){return i(t)+""}):(r=e,function(){return r}):(e=c.length,function(t){for(var i,r=0;r<e;++r)h[(i=c[r]).i]=i.x(t);return h.join("")})}function ex(t,e){var i;return("number"==typeof e?tq:e instanceof t6?em:(i=t6(e))?(e=i,em):eC)(t,e)}var ev=K.prototype.constructor;function ek(t){return function(){this.style.removeProperty(t)}}var eT=0;function eA(t,e,i,r){this._groups=t,this._parents=e,this._name=i,this._id=r}var eS=K.prototype;eA.prototype=(function(t){return K().transition(t)}).prototype={constructor:eA,select:function(t){var e=this._name,i=this._id;"function"!=typeof t&&(t=f(t));for(var r=this._groups,n=r.length,o=Array(n),a=0;a<n;++a)for(var s,l,h=r[a],c=h.length,u=o[a]=Array(c),d=0;d<c;++d)(s=h[d])&&(l=t.call(s,s.__data__,d,h))&&("__data__"in s&&(l.__data__=s.__data__),u[d]=l,tM(u[d],e,i,d,u,tI(s,i)));return new eA(o,this._parents,e,i)},selectAll:function(t){var e=this._name,i=this._id;"function"!=typeof t&&(t=m(t));for(var r=this._groups,n=r.length,o=[],a=[],s=0;s<n;++s)for(var l,h=r[s],c=h.length,u=0;u<c;++u)if(l=h[u]){for(var d,f=t.call(l,l.__data__,u,h),p=tI(l,i),g=0,y=f.length;g<y;++g)(d=f[g])&&tM(d,e,i,g,f,p);o.push(f),a.push(l)}return new eA(o,a,e,i)},selectChild:eS.selectChild,selectChildren:eS.selectChildren,filter:function(t){"function"!=typeof t&&(t=y(t));for(var e=this._groups,i=e.length,r=Array(i),n=0;n<i;++n)for(var o,a=e[n],s=a.length,l=r[n]=[],h=0;h<s;++h)(o=a[h])&&t.call(o,o.__data__,h,a)&&l.push(o);return new eA(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw Error();for(var e=this._groups,i=t._groups,r=e.length,n=i.length,o=Math.min(r,n),a=Array(r),s=0;s<o;++s)for(var l,h=e[s],c=i[s],u=h.length,d=a[s]=Array(u),f=0;f<u;++f)(l=h[f]||c[f])&&(d[f]=l);for(;s<r;++s)a[s]=e[s];return new eA(a,this._parents,this._name,this._id)},selection:function(){return new ev(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,i=++eT,r=this._groups,n=r.length,o=0;o<n;++o)for(var a,s=r[o],l=s.length,h=0;h<l;++h)if(a=s[h]){var c=tI(a,e);tM(a,t,i,h,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new eA(r,this._parents,t,i)},call:eS.call,nodes:eS.nodes,node:eS.node,size:eS.size,empty:eS.empty,each:eS.each,on:function(t,e){var i,r,n,o=this._id;return arguments.length<2?tI(this.node(),o).on.on(t):this.each((n=(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})?tE:tO,function(){var a=n(this,o),s=a.on;s!==i&&(r=(i=s).copy()).on(t,e),a.on=r}))},attr:function(t,e){var i=M(t),r="transform"===i?tP:ex;return this.attrTween(t,"function"==typeof e?(i.local?function(t,e,i){var r,n,o;return function(){var a,s,l=i(this);return null==l?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local))===(s=l+"")?null:a===r&&s===n?o:(n=s,o=e(r=a,l))}}:function(t,e,i){var r,n,o;return function(){var a,s,l=i(this);return null==l?void this.removeAttribute(t):(a=this.getAttribute(t))===(s=l+"")?null:a===r&&s===n?o:(n=s,o=e(r=a,l))}})(i,r,tR(this,"attr."+t,e)):null==e?(i.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(i):(i.local?function(t,e,i){var r,n,o=i+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?n:n=e(r=a,i)}}:function(t,e,i){var r,n,o=i+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?n:n=e(r=a,i)}})(i,r,e))},attrTween:function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw Error();var r=M(t);return this.tween(i,(r.local?function(t,e){var i,r;function n(){var n=e.apply(this,arguments);return n!==r&&(i=(r=n)&&function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}),i}return n._value=e,n}:function(t,e){var i,r;function n(){var n=e.apply(this,arguments);return n!==r&&(i=(r=n)&&function(e){this.setAttribute(t,n.call(this,e))}),i}return n._value=e,n})(r,e))},style:function(t,e,i){var r,n,o,a,s,l,h,c,u,d,f,p,g,m,y,_,b,C,x,v,k,T="transform"==(t+="")?tj:ex;return null==e?this.styleTween(t,(r=t,function(){var t=O(this,r),e=(this.style.removeProperty(r),O(this,r));return t===e?null:t===n&&e===o?a:a=T(n=t,o=e)})).on("end.style."+t,ek(t)):"function"==typeof e?this.styleTween(t,(s=t,l=tR(this,"style."+t,e),function(){var t=O(this,s),e=l(this),i=e+"";return null==e&&(this.style.removeProperty(s),i=e=O(this,s)),t===i?null:t===h&&i===c?u:(c=i,u=T(h=t,e))})).each((d=this._id,b="end."+(_="style."+(f=t)),function(){var t=tO(this,d),e=t.on,i=null==t.value[_]?y||(y=ek(f)):void 0;(e!==p||m!==i)&&(g=(p=e).copy()).on(b,m=i),t.on=g})):this.styleTween(t,(C=t,k=e+"",function(){var t=O(this,C);return t===k?null:t===x?v:v=T(x=t,e)}),i).on("end.style."+t,null)},styleTween:function(t,e,i){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw Error();return this.tween(r,function(t,e,i){var r,n;function o(){var o=e.apply(this,arguments);return o!==n&&(r=(n=o)&&function(e){this.style.setProperty(t,o.call(this,e),i)}),r}return o._value=e,o}(t,e,null==i?"":i))},text:function(t){var e,i;return this.tween("text","function"==typeof t?(e=tR(this,"text",t),function(){var t=e(this);this.textContent=null==t?"":t}):(i=null==t?"":t+"",function(){this.textContent=i}))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw Error();return this.tween(e,function(t){var e,i;function r(){var r=t.apply(this,arguments);return r!==i&&(e=(i=r)&&function(t){this.textContent=r.call(this,t)}),e}return r._value=t,r}(t))},remove:function(){var t;return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}))},tween:function(t,e){var i=this._id;if(t+="",arguments.length<2){for(var r,n=tI(this.node(),i).tween,o=0,a=n.length;o<a;++o)if((r=n[o]).name===t)return r.value;return null}return this.each((null==e?function(t,e){var i,r;return function(){var n=tO(this,t),o=n.tween;if(o!==i){r=i=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}}n.tween=r}}:function(t,e,i){var r,n;if("function"!=typeof i)throw Error();return function(){var o=tO(this,t),a=o.tween;if(a!==r){n=(r=a).slice();for(var s={name:e,value:i},l=0,h=n.length;l<h;++l)if(n[l].name===e){n[l]=s;break}l===h&&n.push(s)}o.tween=n}})(i,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tE(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){tE(this,t).delay=e}})(e,t)):tI(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tO(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){tO(this,t).duration=e}})(e,t)):tI(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw Error();return function(){tO(this,t).ease=e}}(e,t)):tI(this.node(),e).ease},easeVarying:function(t){var e;if("function"!=typeof t)throw Error();return this.each((e=this._id,function(){var i=t.apply(this,arguments);if("function"!=typeof i)throw Error();tO(this,e).ease=i}))},end:function(){var t,e,i=this,r=i._id,n=i.size();return new Promise(function(o,a){var s={value:a},l={value:function(){0==--n&&o()}};i.each(function(){var i=tO(this,r),n=i.on;n!==t&&((e=(t=n).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),i.on=e}),0===n&&o()})},[Symbol.iterator]:eS[Symbol.iterator]};var ew={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};K.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var i,r,n,o=t.__transition,a=!0;if(o){for(n in e=null==e?null:e+"",o){if((i=o[n]).name!==e){a=!1;continue}r=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(r?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete o[n]}a&&delete t.__transition}}(this,t)})},K.prototype.transition=function(t){var e,i;t instanceof eA?(e=t._id,t=t._name):(e=++eT,(i=ew).time=tx(),t=null==t?null:t+"");for(var r=this._groups,n=r.length,o=0;o<n;++o)for(var a,s=r[o],l=s.length,h=0;h<l;++h)(a=s[h])&&tM(a,t,e,h,s,i||function(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw Error(`transition ${e} not found`);return i}(a,e));return new eA(r,this._parents,t,e)};let{abs:eB,max:eF,min:eL}=Math;function eM(t){return{type:t}}function eE(t){if(!t.ok)throw Error(t.status+" "+t.statusText);return t.text()}function eO(t){return(e,i)=>fetch(e,i).then(eE).then(e=>(new DOMParser).parseFromString(e,t))}["w","e"].map(eM),["n","s"].map(eM),["n","w","e","s","nw","ne","sw","se"].map(eM),eO("application/xml"),eO("text/html");var eI=eO("image/svg+xml");let eq=Math.PI/180,eN=180/Math.PI,eD=4/29,e$=6/29,ez=6/29*3*(6/29),ej=6/29*(6/29)*(6/29);function eP(t){if(t instanceof eR)return new eR(t.l,t.a,t.b,t.opacity);if(t instanceof eG)return eX(t);t instanceof et||(t=t7(t));var e,i,r=eY(t.r),n=eY(t.g),o=eY(t.b),a=eW((.2225045*r+.7168786*n+.0606169*o)/1);return r===n&&n===o?e=i=a:(e=eW((.4360747*r+.3850649*n+.1430804*o)/.96422),i=eW((.0139322*r+.0971045*n+.7141733*o)/.82521)),new eR(116*a-16,500*(e-a),200*(a-i),t.opacity)}function eR(t,e,i,r){this.l=+t,this.a=+e,this.b=+i,this.opacity=+r}function eW(t){return t>ej?Math.pow(t,1/3):t/ez+eD}function eU(t){return t>e$?t*t*t:ez*(t-eD)}function eH(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function eY(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function eV(t,e,i,r){return 1==arguments.length?function(t){if(t instanceof eG)return new eG(t.h,t.c,t.l,t.opacity);if(t instanceof eR||(t=eP(t)),0===t.a&&0===t.b)return new eG(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*eN;return new eG(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new eG(t,e,i,null==r?1:r)}function eG(t,e,i,r){this.h=+t,this.c=+e,this.l=+i,this.opacity=+r}function eX(t){if(isNaN(t.h))return new eR(t.l,0,0,t.opacity);var e=t.h*eq;return new eR(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}function eZ(t){return function(e,i){var r=t((e=eV(e)).h,(i=eV(i)).h),n=eg(e.c,i.c),o=eg(e.l,i.l),a=eg(e.opacity,i.opacity);return function(t){return e.h=r(t),e.c=n(t),e.l=o(t),e.opacity=a(t),e+""}}}tW(eR,function(t,e,i,r){return 1==arguments.length?eP(t):new eR(t,e,i,null==r?1:r)},tU(tH,{brighter(t){return new eR(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new eR(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,i=isNaN(this.b)?t:t-this.b/200;return new et(eH(3.1338561*(e=.96422*eU(e))-1.6168667*(t=1*eU(t))-.4906146*(i=.82521*eU(i))),eH(-.9787684*e+1.9161415*t+.033454*i),eH(.0719453*e-.2289914*t+1.4052427*i),this.opacity)}})),tW(eG,eV,tU(tH,{brighter(t){return new eG(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new eG(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return eX(this).rgb()}}));let eJ=eZ(function(t,e){var i=e-t;return i?ep(t,i>180||i<-180?i-360*Math.round(i/360):i):ef(isNaN(t)?e:t)});eZ(eg);let eQ=Math.sqrt(50),eK=Math.sqrt(10),e0=Math.sqrt(2);function e1(t,e,i){let r,n,o;let a=(e-t)/Math.max(0,i),s=Math.floor(Math.log10(a)),l=a/Math.pow(10,s),h=l>=eQ?10:l>=eK?5:l>=e0?2:1;return(s<0?(r=Math.round(t*(o=Math.pow(10,-s)/h)),n=Math.round(e*o),r/o<t&&++r,n/o>e&&--n,o=-o):(r=Math.round(t/(o=Math.pow(10,s)*h)),n=Math.round(e/o),r*o<t&&++r,n*o>e&&--n),n<r&&.5<=i&&i<2)?e1(t,e,2*i):[r,n,o]}function e2(t,e,i){return e1(t=+t,e=+e,i=+i)[2]}function e5(t,e,i){e=+e,t=+t,i=+i;let r=e<t,n=r?e2(e,t,i):e2(t,e,i);return(r?-1:1)*(n<0?-(1/n):n)}function e3(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function e6(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function e4(t){let e,i,r;function n(t,r,o=0,a=t.length){if(o<a){if(0!==e(r,r))return a;do{let e=o+a>>>1;0>i(t[e],r)?o=e+1:a=e}while(o<a)}return o}return 2!==t.length?(e=e3,i=(e,i)=>e3(t(e),i),r=(e,i)=>t(e)-i):(e=t===e3||t===e6?t:e8,i=t,r=t),{left:n,center:function(t,e,i=0,o=t.length){let a=n(t,e,i,o-1);return a>i&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r,n=0,o=t.length){if(n<o){if(0!==e(r,r))return o;do{let e=n+o>>>1;0>=i(t[e],r)?n=e+1:o=e}while(n<o)}return n}}}function e8(){return 0}let e7=e4(e3),e9=e7.right;function it(t,e){return t=+t,e=+e,function(i){return Math.round(t*(1-i)+e*i)}}function ie(t){return+t}e7.left,e4(function(t){return null===t?NaN:+t}).center;var ii=[0,1];function ir(t){return t}function io(t,e){var i;return(e-=t=+t)?function(i){return(i-t)/e}:(i=isNaN(e)?NaN:.5,function(){return i})}function ia(t,e,i){var r=t[0],n=t[1],o=e[0],a=e[1];return n<r?(r=io(n,r),o=i(a,o)):(r=io(r,n),o=i(o,a)),function(t){return o(r(t))}}function is(t,e,i){var r=Math.min(t.length,e.length)-1,n=Array(r),o=Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)n[a]=io(t[a],t[a+1]),o[a]=i(e[a],e[a+1]);return function(e){var i=e9(t,e,1,r)-1;return o[i](n[i](e))}}function il(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ih(){return(function(){var t,e,i,r,n,o,a=ii,s=ii,l=function t(e,i){var r,n,o=typeof i;return null==i||"boolean"===o?ef(i):("number"===o?tq:"string"===o?(n=t6(i))?(i=n,em):eC:i instanceof t6?em:i instanceof Date?function(t,e){var i=new Date;return t=+t,e=+e,function(r){return i.setTime(t*(1-r)+e*r),i}}:!ArrayBuffer.isView(r=i)||r instanceof DataView?Array.isArray(i)?function(e,i){var r,n=i?i.length:0,o=e?Math.min(n,e.length):0,a=Array(o),s=Array(n);for(r=0;r<o;++r)a[r]=t(e[r],i[r]);for(;r<n;++r)s[r]=i[r];return function(t){for(r=0;r<o;++r)s[r]=a[r](t);return s}}:"function"!=typeof i.valueOf&&"function"!=typeof i.toString||isNaN(i)?function(e,i){var r,n={},o={};for(r in(null===e||"object"!=typeof e)&&(e={}),(null===i||"object"!=typeof i)&&(i={}),i)r in e?n[r]=t(e[r],i[r]):o[r]=i[r];return function(t){for(r in n)o[r]=n[r](t);return o}}:tq:function(t,e){e||(e=[]);var i,r=t?Math.min(e.length,t.length):0,n=e.slice();return function(o){for(i=0;i<r;++i)n[i]=t[i]*(1-o)+e[i]*o;return n}})(e,i)},h=ir;function c(){var t,e,i,l=Math.min(a.length,s.length);return h!==ir&&(t=a[0],e=a[l-1],t>e&&(i=t,t=e,e=i),h=function(i){return Math.max(t,Math.min(e,i))}),r=l>2?is:ia,n=o=null,u}function u(e){return null==e||isNaN(e=+e)?i:(n||(n=r(a.map(t),s,l)))(t(h(e)))}return u.invert=function(i){return h(e((o||(o=r(s,a.map(t),tq)))(i)))},u.domain=function(t){return arguments.length?(a=Array.from(t,ie),c()):a.slice()},u.range=function(t){return arguments.length?(s=Array.from(t),c()):s.slice()},u.rangeRound=function(t){return s=Array.from(t),l=it,c()},u.clamp=function(t){return arguments.length?(h=!!t||ir,c()):h!==ir},u.interpolate=function(t){return arguments.length?(l=t,c()):l},u.unknown=function(t){return arguments.length?(i=t,u):i},function(i,r){return t=i,e=r,c()}})()(ir,ir)}function ic(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var iu=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function id(t){var e;if(!(e=iu.exec(t)))throw Error("invalid format: "+t);return new ip({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function ip(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function ig(t,e){if((i=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var i,r=t.slice(0,i);return[r.length>1?r[0]+r.slice(2):r,+t.slice(i+1)]}function im(t){return(t=ig(Math.abs(t)))?t[1]:NaN}function iy(t,e){var i=ig(t,e);if(!i)return t+"";var r=i[0],n=i[1];return n<0?"0."+Array(-n).join("0")+r:r.length>n+1?r.slice(0,n+1)+"."+r.slice(n+1):r+Array(n-r.length+2).join("0")}id.prototype=ip.prototype,ip.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let i_={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},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)=>iy(100*t,e),r:iy,s:function(t,e){var i=ig(t,e);if(!i)return t+"";var r=i[0],n=i[1],o=n-(to=3*Math.max(-8,Math.min(8,Math.floor(n/3))))+1,a=r.length;return o===a?r:o>a?r+Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+Array(1-o).join("0")+ig(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function ib(t){return t}var iC=Array.prototype.map,ix=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];ts=(ta=function(t){var e,i,r,n=void 0===t.grouping||void 0===t.thousands?ib:(e=iC.call(t.grouping,Number),i=t.thousands+"",function(t,r){for(var n=t.length,o=[],a=0,s=e[0],l=0;n>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(t.substring(n-=s,n+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(i)}),o=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?ib:(r=iC.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return r[+t]})}),h=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"\u2212":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function d(t){var e=(t=id(t)).fill,i=t.align,r=t.sign,d=t.symbol,f=t.zero,p=t.width,g=t.comma,m=t.precision,y=t.trim,_=t.type;"n"===_?(g=!0,_="g"):i_[_]||(void 0===m&&(m=12),y=!0,_="g"),(f||"0"===e&&"="===i)&&(f=!0,e="0",i="=");var b="$"===d?o:"#"===d&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",C="$"===d?a:/[%p]/.test(_)?h:"",x=i_[_],v=/[defgprs%]/.test(_);function k(t){var o,a,h,d=b,k=C;if("c"===_)k=x(t)+k,t="";else{var T=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:x(Math.abs(t),m),y&&(t=function(t){t:for(var e,i=t.length,r=1,n=-1;r<i;++r)switch(t[r]){case".":n=e=r;break;case"0":0===n&&(n=r),e=r;break;default:if(!+t[r])break t;n>0&&(n=0)}return n>0?t.slice(0,n)+t.slice(e+1):t}(t)),T&&0==+t&&"+"!==r&&(T=!1),d=(T?"("===r?r:c:"-"===r||"("===r?"":r)+d,k=("s"===_?ix[8+to/3]:"")+k+(T&&"("===r?")":""),v){for(o=-1,a=t.length;++o<a;)if(48>(h=t.charCodeAt(o))||h>57){k=(46===h?s+t.slice(o+1):t.slice(o))+k,t=t.slice(0,o);break}}}g&&!f&&(t=n(t,1/0));var A=d.length+t.length+k.length,S=A<p?Array(p-A+1).join(e):"";switch(g&&f&&(t=n(S+t,S.length?p-k.length:1/0),S=""),i){case"<":t=d+t+k+S;break;case"=":t=d+S+t+k;break;case"^":t=S.slice(0,A=S.length>>1)+d+t+k+S.slice(A);break;default:t=S+d+t+k}return l(t)}return m=void 0===m?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),k.toString=function(){return t+""},k}return{format:d,formatPrefix:function(t,e){var i=d(((t=id(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(im(e)/3))),n=Math.pow(10,-r),o=ix[8+r/3];return function(t){return i(n*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,tl=ta.formatPrefix;class iv extends Map{constructor(t,e=iT){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(let[e,i]of t)this.set(e,i)}get(t){return super.get(ik(this,t))}has(t){return super.has(ik(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},i){let r=e(i);return t.has(r)?t.get(r):(t.set(r,i),i)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},i){let r=e(i);return t.has(r)&&(i=t.get(r),t.delete(r)),i}(this,t))}}function ik({_intern:t,_key:e},i){let r=e(i);return t.has(r)?t.get(r):i}function iT(t){return null!==t&&"object"==typeof t?t.valueOf():t}let iA=Symbol("implicit"),iS=new Date,iw=new Date;function iB(t,e,i,r){function n(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return n.floor=e=>(t(e=new Date(+e)),e),n.ceil=i=>(t(i=new Date(i-1)),e(i,1),t(i),i),n.round=t=>{let e=n(t),i=n.ceil(t);return t-e<i-t?e:i},n.offset=(t,i)=>(e(t=new Date(+t),null==i?1:Math.floor(i)),t),n.range=(i,r,o)=>{let a;let s=[];if(i=n.ceil(i),o=null==o?1:Math.floor(o),!(i<r)||!(o>0))return s;do s.push(a=new Date(+i)),e(i,o),t(i);while(a<i&&i<r)return s},n.filter=i=>iB(e=>{if(e>=e)for(;t(e),!i(e);)e.setTime(e-1)},(t,r)=>{if(t>=t){if(r<0)for(;++r<=0;)for(;e(t,-1),!i(t););else for(;--r>=0;)for(;e(t,1),!i(t););}}),i&&(n.count=(e,r)=>(iS.setTime(+e),iw.setTime(+r),t(iS),t(iw),Math.floor(i(iS,iw))),n.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?n.filter(r?e=>r(e)%t==0:e=>n.count(0,e)%t==0):n:null),n}let iF=iB(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);iF.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?iB(e=>{e.setTime(Math.floor(e/t)*t)},(e,i)=>{e.setTime(+e+i*t)},(e,i)=>(i-e)/t):iF:null,iF.range;let iL=iB(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds());iL.range;let iM=iB(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes());iM.range;let iE=iB(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes());iE.range;let iO=iB(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getHours());iO.range;let iI=iB(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours());iI.range;let iq=iB(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);iq.range;let iN=iB(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1);iN.range;let iD=iB(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5));function i$(t){return iB(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}iD.range;let iz=i$(0),ij=i$(1),iP=i$(2),iR=i$(3),iW=i$(4),iU=i$(5),iH=i$(6);function iY(t){return iB(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/6048e5)}iz.range,ij.range,iP.range,iR.range,iW.range,iU.range,iH.range;let iV=iY(0),iG=iY(1),iX=iY(2),iZ=iY(3),iJ=iY(4),iQ=iY(5),iK=iY(6);iV.range,iG.range,iX.range,iZ.range,iJ.range,iQ.range,iK.range;let i0=iB(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());i0.range;let i1=iB(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());i1.range;let i2=iB(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());i2.every=t=>isFinite(t=Math.floor(t))&&t>0?iB(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,i)=>{e.setFullYear(e.getFullYear()+i*t)}):null,i2.range;let i5=iB(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());function i3(t,e,i,r,n,o){let a=[[iL,1,1e3],[iL,5,5e3],[iL,15,15e3],[iL,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[n,1,36e5],[n,3,108e5],[n,6,216e5],[n,12,432e5],[r,1,864e5],[r,2,1728e5],[i,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function s(e,i,r){let n=Math.abs(i-e)/r,o=e4(([,,t])=>t).right(a,n);if(o===a.length)return t.every(e5(e/31536e6,i/31536e6,r));if(0===o)return iF.every(Math.max(e5(e,i,r),1));let[s,l]=a[n/a[o-1][2]<a[o][2]/n?o-1:o];return s.every(l)}return[function(t,e,i){let r=e<t;r&&([t,e]=[e,t]);let n=i&&"function"==typeof i.range?i:s(t,e,i),o=n?n.range(t,+e+1):[];return r?o.reverse():o},s]}i5.every=t=>isFinite(t=Math.floor(t))&&t>0?iB(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,i)=>{e.setUTCFullYear(e.getUTCFullYear()+i*t)}):null,i5.range;let[i6,i4]=i3(i5,i1,iV,iD,iI,iE),[i8,i7]=i3(i2,i0,iz,iq,iO,iM);function i9(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 rt(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 re(t,e,i){return{y:t,m:e,d:i,H:0,M:0,S:0,L:0}}var ri={"-":"",_:" ",0:"0"},rr=/^\s*\d+/,rn=/^%/,ro=/[\\^$*+?|[\]().{}]/g;function ra(t,e,i){var r=t<0?"-":"",n=(r?-t:t)+"",o=n.length;return r+(o<i?Array(i-o+1).join(e)+n:n)}function rs(t){return t.replace(ro,"\\$&")}function rl(t){return RegExp("^(?:"+t.map(rs).join("|")+")","i")}function rh(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function rc(t,e,i){var r=rr.exec(e.slice(i,i+1));return r?(t.w=+r[0],i+r[0].length):-1}function ru(t,e,i){var r=rr.exec(e.slice(i,i+1));return r?(t.u=+r[0],i+r[0].length):-1}function rd(t,e,i){var r=rr.exec(e.slice(i,i+2));return r?(t.U=+r[0],i+r[0].length):-1}function rf(t,e,i){var r=rr.exec(e.slice(i,i+2));return r?(t.V=+r[0],i+r[0].length):-1}function rp(t,e,i){var r=rr.exec(e.slice(i,i+2));return r?(t.W=+r[0],i+r[0].length):-1}function rg(t,e,i){var r=rr.exec(e.slice(i,i+4));return r?(t.y=+r[0],i+r[0].length):-1}function rm(t,e,i){var r=rr.exec(e.slice(i,i+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),i+r[0].length):-1}function ry(t,e,i){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(i,i+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),i+r[0].length):-1}function r_(t,e,i){var r=rr.exec(e.slice(i,i+1));return r?(t.q=3*r[0]-3,i+r[0].length):-1}function rb(t,e,i){var r=rr.exec(e.slice(i,i+2));return r?(t.m=r[0]-1,i+r[0].length):-1}function rC(t,e,i){var r=rr.exec(e.slice(i,i+2));return r?(t.d=+r[0],i+r[0].length):-1}function rx(t,e,i){var r=rr.exec(e.slice(i,i+3));return r?(t.m=0,t.d=+r[0],i+r[0].length):-1}function rv(t,e,i){var r=rr.exec(e.slice(i,i+2));return r?(t.H=+r[0],i+r[0].length):-1}function rk(t,e,i){var r=rr.exec(e.slice(i,i+2));return r?(t.M=+r[0],i+r[0].length):-1}function rT(t,e,i){var r=rr.exec(e.slice(i,i+2));return r?(t.S=+r[0],i+r[0].length):-1}function rA(t,e,i){var r=rr.exec(e.slice(i,i+3));return r?(t.L=+r[0],i+r[0].length):-1}function rS(t,e,i){var r=rr.exec(e.slice(i,i+6));return r?(t.L=Math.floor(r[0]/1e3),i+r[0].length):-1}function rw(t,e,i){var r=rn.exec(e.slice(i,i+1));return r?i+r[0].length:-1}function rB(t,e,i){var r=rr.exec(e.slice(i));return r?(t.Q=+r[0],i+r[0].length):-1}function rF(t,e,i){var r=rr.exec(e.slice(i));return r?(t.s=+r[0],i+r[0].length):-1}function rL(t,e){return ra(t.getDate(),e,2)}function rM(t,e){return ra(t.getHours(),e,2)}function rE(t,e){return ra(t.getHours()%12||12,e,2)}function rO(t,e){return ra(1+iq.count(i2(t),t),e,3)}function rI(t,e){return ra(t.getMilliseconds(),e,3)}function rq(t,e){return rI(t,e)+"000"}function rN(t,e){return ra(t.getMonth()+1,e,2)}function rD(t,e){return ra(t.getMinutes(),e,2)}function r$(t,e){return ra(t.getSeconds(),e,2)}function rz(t){var e=t.getDay();return 0===e?7:e}function rj(t,e){return ra(iz.count(i2(t)-1,t),e,2)}function rP(t){var e=t.getDay();return e>=4||0===e?iW(t):iW.ceil(t)}function rR(t,e){return t=rP(t),ra(iW.count(i2(t),t)+(4===i2(t).getDay()),e,2)}function rW(t){return t.getDay()}function rU(t,e){return ra(ij.count(i2(t)-1,t),e,2)}function rH(t,e){return ra(t.getFullYear()%100,e,2)}function rY(t,e){return ra((t=rP(t)).getFullYear()%100,e,2)}function rV(t,e){return ra(t.getFullYear()%1e4,e,4)}function rG(t,e){var i=t.getDay();return ra((t=i>=4||0===i?iW(t):iW.ceil(t)).getFullYear()%1e4,e,4)}function rX(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+ra(e/60|0,"0",2)+ra(e%60,"0",2)}function rZ(t,e){return ra(t.getUTCDate(),e,2)}function rJ(t,e){return ra(t.getUTCHours(),e,2)}function rQ(t,e){return ra(t.getUTCHours()%12||12,e,2)}function rK(t,e){return ra(1+iN.count(i5(t),t),e,3)}function r0(t,e){return ra(t.getUTCMilliseconds(),e,3)}function r1(t,e){return r0(t,e)+"000"}function r2(t,e){return ra(t.getUTCMonth()+1,e,2)}function r5(t,e){return ra(t.getUTCMinutes(),e,2)}function r3(t,e){return ra(t.getUTCSeconds(),e,2)}function r6(t){var e=t.getUTCDay();return 0===e?7:e}function r4(t,e){return ra(iV.count(i5(t)-1,t),e,2)}function r8(t){var e=t.getUTCDay();return e>=4||0===e?iJ(t):iJ.ceil(t)}function r7(t,e){return t=r8(t),ra(iJ.count(i5(t),t)+(4===i5(t).getUTCDay()),e,2)}function r9(t){return t.getUTCDay()}function nt(t,e){return ra(iG.count(i5(t)-1,t),e,2)}function ne(t,e){return ra(t.getUTCFullYear()%100,e,2)}function ni(t,e){return ra((t=r8(t)).getUTCFullYear()%100,e,2)}function nr(t,e){return ra(t.getUTCFullYear()%1e4,e,4)}function nn(t,e){var i=t.getUTCDay();return ra((t=i>=4||0===i?iJ(t):iJ.ceil(t)).getUTCFullYear()%1e4,e,4)}function no(){return"+0000"}function na(){return"%"}function ns(t){return+t}function nl(t){return Math.floor(+t/1e3)}function nh(t){return new Date(t)}function nc(t){return t instanceof Date?+t:+new Date(+t)}function nu(){return ic.apply((function t(e,i,r,n,o,a,s,l,h,c){var u=ih(),d=u.invert,f=u.domain,p=c(".%L"),g=c(":%S"),m=c("%I:%M"),y=c("%I %p"),_=c("%a %d"),b=c("%b %d"),C=c("%B"),x=c("%Y");function v(t){return(h(t)<t?p:l(t)<t?g:s(t)<t?m:a(t)<t?y:n(t)<t?o(t)<t?_:b:r(t)<t?C:x)(t)}return u.invert=function(t){return new Date(d(t))},u.domain=function(t){return arguments.length?f(Array.from(t,nc)):f().map(nh)},u.ticks=function(t){var i=f();return e(i[0],i[i.length-1],null==t?10:t)},u.tickFormat=function(t,e){return null==e?v:c(e)},u.nice=function(t){var e,r,n,o,a,s,l,h=f();return t&&"function"==typeof t.range||(t=i(h[0],h[h.length-1],null==t?10:t)),t?f((e=h,r=t,e=e.slice(),o=0,a=e.length-1,s=e[o],(l=e[a])<s&&(n=o,o=a,a=n,n=s,s=l,l=n),e[o]=r.floor(s),e[a]=r.ceil(l),e)):u},u.copy=function(){return il(u,t(e,i,r,n,o,a,s,l,h,c))},u})(i8,i7,i2,i0,iz,iq,iO,iM,iL,tc).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}tc=(th=function(t){var e=t.dateTime,i=t.date,r=t.time,n=t.periods,o=t.days,a=t.shortDays,s=t.months,l=t.shortMonths,h=rl(n),c=rh(n),u=rl(o),d=rh(o),f=rl(a),p=rh(a),g=rl(s),m=rh(s),y=rl(l),_=rh(l),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:rL,e:rL,f:rq,g:rY,G:rG,H:rM,I:rE,j:rO,L:rI,m:rN,M:rD,p:function(t){return n[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ns,s:nl,S:r$,u:rz,U:rj,V:rR,w:rW,W:rU,x:null,X:null,y:rH,Y:rV,Z:rX,"%":na},C={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:rZ,e:rZ,f:r1,g:ni,G:nn,H:rJ,I:rQ,j:rK,L:r0,m:r2,M:r5,p:function(t){return n[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ns,s:nl,S:r3,u:r6,U:r4,V:r7,w:r9,W:nt,x:null,X:null,y:ne,Y:nr,Z:no,"%":na},x={a:function(t,e,i){var r=f.exec(e.slice(i));return r?(t.w=p.get(r[0].toLowerCase()),i+r[0].length):-1},A:function(t,e,i){var r=u.exec(e.slice(i));return r?(t.w=d.get(r[0].toLowerCase()),i+r[0].length):-1},b:function(t,e,i){var r=y.exec(e.slice(i));return r?(t.m=_.get(r[0].toLowerCase()),i+r[0].length):-1},B:function(t,e,i){var r=g.exec(e.slice(i));return r?(t.m=m.get(r[0].toLowerCase()),i+r[0].length):-1},c:function(t,i,r){return T(t,e,i,r)},d:rC,e:rC,f:rS,g:rm,G:rg,H:rv,I:rv,j:rx,L:rA,m:rb,M:rk,p:function(t,e,i){var r=h.exec(e.slice(i));return r?(t.p=c.get(r[0].toLowerCase()),i+r[0].length):-1},q:r_,Q:rB,s:rF,S:rT,u:ru,U:rd,V:rf,w:rc,W:rp,x:function(t,e,r){return T(t,i,e,r)},X:function(t,e,i){return T(t,r,e,i)},y:rm,Y:rg,Z:ry,"%":rw};function v(t,e){return function(i){var r,n,o,a=[],s=-1,l=0,h=t.length;for(i instanceof Date||(i=new Date(+i));++s<h;)37===t.charCodeAt(s)&&(a.push(t.slice(l,s)),null!=(n=ri[r=t.charAt(++s)])?r=t.charAt(++s):n="e"===r?" ":"0",(o=e[r])&&(r=o(i,n)),a.push(r),l=s+1);return a.push(t.slice(l,s)),a.join("")}}function k(t,e){return function(i){var r,n,o=re(1900,void 0,1);if(T(o,t,i+="",0)!=i.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(!e||"Z"in o||(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(n=(r=rt(re(o.y,0,1))).getUTCDay())>4||0===n?iG.ceil(r):iG(r),r=iN.offset(r,(o.V-1)*7),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(n=(r=i9(re(o.y,0,1))).getDay())>4||0===n?ij.ceil(r):ij(r),r=iq.offset(r,(o.V-1)*7),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),n="Z"in o?rt(re(o.y,0,1)).getUTCDay():i9(re(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(n+5)%7:o.w+7*o.U-(n+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,rt(o)):i9(o)}}function T(t,e,i,r){for(var n,o,a=0,s=e.length,l=i.length;a<s;){if(r>=l)return -1;if(37===(n=e.charCodeAt(a++))){if(!(o=x[(n=e.charAt(a++))in ri?e.charAt(a++):n])||(r=o(t,i,r))<0)return -1}else if(n!=i.charCodeAt(r++))return -1}return r}return b.x=v(i,b),b.X=v(r,b),b.c=v(e,b),C.x=v(i,C),C.X=v(r,C),C.c=v(e,C),{format:function(t){var e=v(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=v(t+="",C);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}}}({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"]})).format,th.parse,th.utcFormat,th.utcParse;let nd=function(t){for(var e=t.length/6|0,i=Array(e),r=0;r<e;)i[r]="#"+t.slice(6*r,6*++r);return i}("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function nf(t){return"string"==typeof t?new Q([[document.querySelector(t)]],[document.documentElement]):new Q([[t]],J)}function np(t){return"string"==typeof t?new Q([document.querySelectorAll(t)],[document.documentElement]):new Q([p(t)],J)}function ng(t){return function(){return t}}let nm=Math.abs,ny=Math.atan2,n_=Math.cos,nb=Math.max,nC=Math.min,nx=Math.sin,nv=Math.sqrt,nk=Math.PI,nT=nk/2,nA=2*nk;function nS(t){return t>=1?nT:t<=-1?-nT:Math.asin(t)}let nw=Math.PI,nB=2*nw,nF=nB-1e-6;function nL(t){this._+=t[0];for(let e=1,i=t.length;e<i;++e)this._+=arguments[e]+t[e]}class nM{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?nL:function(t){let e=Math.floor(t);if(!(e>=0))throw Error(`invalid digits: ${t}`);if(e>15)return nL;let i=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*i)/i+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,i,r){this._append`Q${+t},${+e},${this._x1=+i},${this._y1=+r}`}bezierCurveTo(t,e,i,r,n,o){this._append`C${+t},${+e},${+i},${+r},${this._x1=+n},${this._y1=+o}`}arcTo(t,e,i,r,n){if(t=+t,e=+e,i=+i,r=+r,(n=+n)<0)throw Error(`negative radius: ${n}`);let o=this._x1,a=this._y1,s=i-t,l=r-e,h=o-t,c=a-e,u=h*h+c*c;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(u>1e-6){if(Math.abs(c*s-l*h)>1e-6&&n){let d=i-o,f=r-a,p=s*s+l*l,g=Math.sqrt(p),m=Math.sqrt(u),y=n*Math.tan((nw-Math.acos((p+u-(d*d+f*f))/(2*g*m)))/2),_=y/m,b=y/g;Math.abs(_-1)>1e-6&&this._append`L${t+_*h},${e+_*c}`,this._append`A${n},${n},0,0,${+(c*d>h*f)},${this._x1=t+b*s},${this._y1=e+b*l}`}else this._append`L${this._x1=t},${this._y1=e}`}}arc(t,e,i,r,n,o){if(t=+t,e=+e,o=!!o,(i=+i)<0)throw Error(`negative radius: ${i}`);let a=i*Math.cos(r),s=i*Math.sin(r),l=t+a,h=e+s,c=1^o,u=o?r-n:n-r;null===this._x1?this._append`M${l},${h}`:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-h)>1e-6)&&this._append`L${l},${h}`,i&&(u<0&&(u=u%nB+nB),u>nF?this._append`A${i},${i},0,1,${c},${t-a},${e-s}A${i},${i},0,1,${c},${this._x1=l},${this._y1=h}`:u>1e-6&&this._append`A${i},${i},0,${+(u>=nw)},${c},${this._x1=t+i*Math.cos(n)},${this._y1=e+i*Math.sin(n)}`)}rect(t,e,i,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${i=+i}v${+r}h${-i}Z`}toString(){return this._}}function nE(t){let e=3;return t.digits=function(i){if(!arguments.length)return e;if(null==i)e=null;else{let t=Math.floor(i);if(!(t>=0))throw RangeError(`invalid digits: ${i}`);e=t}return t},()=>new nM(e)}function nO(t){return t.innerRadius}function nI(t){return t.outerRadius}function nq(t){return t.startAngle}function nN(t){return t.endAngle}function nD(t){return t&&t.padAngle}function n$(t,e,i,r,n,o,a){var s=t-i,l=e-r,h=(a?o:-o)/nv(s*s+l*l),c=h*l,u=-h*s,d=t+c,f=e+u,p=i+c,g=r+u,m=(d+p)/2,y=(f+g)/2,_=p-d,b=g-f,C=_*_+b*b,x=n-o,v=d*g-p*f,k=(b<0?-1:1)*nv(nb(0,x*x*C-v*v)),T=(v*b-_*k)/C,A=(-v*_-b*k)/C,S=(v*b+_*k)/C,w=(-v*_+b*k)/C,B=T-m,F=A-y,L=S-m,M=w-y;return B*B+F*F>L*L+M*M&&(T=S,A=w),{cx:T,cy:A,x01:-c,y01:-u,x11:T*(n/x-1),y11:A*(n/x-1)}}function nz(){var t=nO,e=nI,i=ng(0),r=null,n=nq,o=nN,a=nD,s=null,l=nE(h);function h(){var h,c,u=+t.apply(this,arguments),d=+e.apply(this,arguments),f=n.apply(this,arguments)-nT,p=o.apply(this,arguments)-nT,g=nm(p-f),m=p>f;if(s||(s=h=l()),d<u&&(c=d,d=u,u=c),d>1e-12){if(g>nA-1e-12)s.moveTo(d*n_(f),d*nx(f)),s.arc(0,0,d,f,p,!m),u>1e-12&&(s.moveTo(u*n_(p),u*nx(p)),s.arc(0,0,u,p,f,m));else{var y,_,b=f,C=p,x=f,v=p,k=g,T=g,A=a.apply(this,arguments)/2,S=A>1e-12&&(r?+r.apply(this,arguments):nv(u*u+d*d)),w=nC(nm(d-u)/2,+i.apply(this,arguments)),B=w,F=w;if(S>1e-12){var L=nS(S/u*nx(A)),M=nS(S/d*nx(A));(k-=2*L)>1e-12?(L*=m?1:-1,x+=L,v-=L):(k=0,x=v=(f+p)/2),(T-=2*M)>1e-12?(M*=m?1:-1,b+=M,C-=M):(T=0,b=C=(f+p)/2)}var E=d*n_(b),O=d*nx(b),I=u*n_(v),q=u*nx(v);if(w>1e-12){var N,D=d*n_(C),$=d*nx(C),z=u*n_(x),j=u*nx(x);if(g<nk){if(N=function(t,e,i,r,n,o,a,s){var l=i-t,h=r-e,c=a-n,u=s-o,d=u*l-c*h;if(!(d*d<1e-12))return d=(c*(e-o)-u*(t-n))/d,[t+d*l,e+d*h]}(E,O,z,j,D,$,I,q)){var P,R=E-N[0],W=O-N[1],U=D-N[0],H=$-N[1],Y=1/nx(((P=(R*U+W*H)/(nv(R*R+W*W)*nv(U*U+H*H)))>1?0:P<-1?nk:Math.acos(P))/2),V=nv(N[0]*N[0]+N[1]*N[1]);B=nC(w,(u-V)/(Y-1)),F=nC(w,(d-V)/(Y+1))}else B=F=0}}T>1e-12?F>1e-12?(y=n$(z,j,E,O,d,F,m),_=n$(D,$,I,q,d,F,m),s.moveTo(y.cx+y.x01,y.cy+y.y01),F<w?s.arc(y.cx,y.cy,F,ny(y.y01,y.x01),ny(_.y01,_.x01),!m):(s.arc(y.cx,y.cy,F,ny(y.y01,y.x01),ny(y.y11,y.x11),!m),s.arc(0,0,d,ny(y.cy+y.y11,y.cx+y.x11),ny(_.cy+_.y11,_.cx+_.x11),!m),s.arc(_.cx,_.cy,F,ny(_.y11,_.x11),ny(_.y01,_.x01),!m))):(s.moveTo(E,O),s.arc(0,0,d,b,C,!m)):s.moveTo(E,O),u>1e-12&&k>1e-12?B>1e-12?(y=n$(I,q,D,$,u,-B,m),_=n$(E,O,z,j,u,-B,m),s.lineTo(y.cx+y.x01,y.cy+y.y01),B<w?s.arc(y.cx,y.cy,B,ny(y.y01,y.x01),ny(_.y01,_.x01),!m):(s.arc(y.cx,y.cy,B,ny(y.y01,y.x01),ny(y.y11,y.x11),!m),s.arc(0,0,u,ny(y.cy+y.y11,y.cx+y.x11),ny(_.cy+_.y11,_.cx+_.x11),m),s.arc(_.cx,_.cy,B,ny(_.y11,_.x11),ny(_.y01,_.x01),!m))):s.arc(0,0,u,v,x,m):s.lineTo(I,q)}}else s.moveTo(0,0);if(s.closePath(),h)return s=null,h+""||null}return h.centroid=function(){var i=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+n.apply(this,arguments)+ +o.apply(this,arguments))/2-nk/2;return[n_(r)*i,nx(r)*i]},h.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:ng(+e),h):t},h.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:ng(+t),h):e},h.cornerRadius=function(t){return arguments.length?(i="function"==typeof t?t:ng(+t),h):i},h.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:ng(+t),h):r},h.startAngle=function(t){return arguments.length?(n="function"==typeof t?t:ng(+t),h):n},h.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:ng(+t),h):o},h.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:ng(+t),h):a},h.context=function(t){return arguments.length?(s=null==t?null:t,h):s},h}function nj(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function nP(t){this._context=t}function nR(t){return new nP(t)}function nW(t){return t[0]}function nU(t){return t[1]}function nH(t,e){var i=ng(!0),r=null,n=nR,o=null,a=nE(s);function s(s){var l,h,c,u=(s=nj(s)).length,d=!1;for(null==r&&(o=n(c=a())),l=0;l<=u;++l)!(l<u&&i(h=s[l],l,s))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+t(h,l,s),+e(h,l,s));if(c)return o=null,c+""||null}return t="function"==typeof t?t:void 0===t?nW:ng(t),e="function"==typeof e?e:void 0===e?nU:ng(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:ng(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:ng(+t),s):e},s.defined=function(t){return arguments.length?(i="function"==typeof t?t:ng(!!t),s):i},s.curve=function(t){return arguments.length?(n=t,null!=r&&(o=n(r)),s):n},s.context=function(t){return arguments.length?(null==t?r=o=null:o=n(r=t),s):r},s}function nY(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function nV(t){return t}function nG(){var t=nV,e=nY,i=null,r=ng(0),n=ng(nA),o=ng(0);function a(a){var s,l,h,c,u,d=(a=nj(a)).length,f=0,p=Array(d),g=Array(d),m=+r.apply(this,arguments),y=Math.min(nA,Math.max(-nA,n.apply(this,arguments)-m)),_=Math.min(Math.abs(y)/d,o.apply(this,arguments)),b=_*(y<0?-1:1);for(s=0;s<d;++s)(u=g[p[s]=s]=+t(a[s],s,a))>0&&(f+=u);for(null!=e?p.sort(function(t,i){return e(g[t],g[i])}):null!=i&&p.sort(function(t,e){return i(a[t],a[e])}),s=0,h=f?(y-d*b)/f:0;s<d;++s,m=c)c=m+((u=g[l=p[s]])>0?u*h:0)+b,g[l]={data:a[l],index:s,value:u,startAngle:m,endAngle:c,padAngle:_};return g}return a.value=function(e){return arguments.length?(t="function"==typeof e?e:ng(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,i=null,a):e},a.sort=function(t){return arguments.length?(i=t,e=null,a):i},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:ng(+t),a):r},a.endAngle=function(t){return arguments.length?(n="function"==typeof t?t:ng(+t),a):n},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:ng(+t),a):o},a}function nX(){}function nZ(t,e,i){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+i)/6)}function nJ(t){this._context=t}function nQ(t){return new nJ(t)}function nK(t){this._context=t}function n0(t){return new nK(t)}function n1(t){this._context=t}function n2(t){return new n1(t)}nM.prototype,Array.prototype.slice,nP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&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)}}},nJ.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:nZ(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&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:nZ(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},nK.prototype={areaStart:nX,areaEnd:nX,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)}},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:nZ(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},n1.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||0!==this._line&&3===this._point)&&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 i=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break;case 3:this._point=4;default:nZ(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class n5{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(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._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function n3(t){return new n5(t,!0)}function n6(t){return new n5(t,!1)}function n4(t,e){this._basis=new nJ(t),this._beta=e}n4.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var r,n=t[0],o=e[0],a=t[i]-n,s=e[i]-o,l=-1;++l<=i;)r=l/i,this._basis.point(this._beta*t[l]+(1-this._beta)*(n+r*a),this._beta*e[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};let n8=function t(e){function i(t){return 1===e?new nJ(t):new n4(t,e)}return i.beta=function(e){return t(+e)},i}(.85);function n7(t,e,i){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-i),t._x2,t._y2)}function n9(t,e){this._context=t,this._k=(1-e)/6}n9.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:n7(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&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:n7(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let ot=function t(e){function i(t){return new n9(t,e)}return i.tension=function(e){return t(+e)},i}(0);function oe(t,e){this._context=t,this._k=(1-e)/6}oe.prototype={areaStart:nX,areaEnd:nX,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)}},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:n7(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let oi=function t(e){function i(t){return new oe(t,e)}return i.tension=function(e){return t(+e)},i}(0);function or(t,e){this._context=t,this._k=(1-e)/6}or.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||0!==this._line&&3===this._point)&&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:n7(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let on=function t(e){function i(t){return new or(t,e)}return i.tension=function(e){return t(+e)},i}(0);function oo(t,e,i){var r=t._x1,n=t._y1,o=t._x2,a=t._y2;if(t._l01_a>1e-12){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);r=(r*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>1e-12){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*h+t._x1*t._l23_2a-e*t._l12_2a)/c,a=(a*h+t._y1*t._l23_2a-i*t._l12_2a)/c}t._context.bezierCurveTo(r,n,o,a,t._x2,t._y2)}function oa(t,e){this._context=t,this._alpha=e}oa.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)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,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:oo(this,t,e)}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}};let os=function t(e){function i(t){return e?new oa(t,e):new n9(t,0)}return i.alpha=function(e){return t(+e)},i}(.5);function ol(t,e){this._context=t,this._alpha=e}ol.prototype={areaStart:nX,areaEnd:nX,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)}},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,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:oo(this,t,e)}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}};let oh=function t(e){function i(t){return e?new ol(t,e):new oe(t,0)}return i.alpha=function(e){return t(+e)},i}(.5);function oc(t,e){this._context=t,this._alpha=e}oc.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,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:oo(this,t,e)}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}};let ou=function t(e){function i(t){return e?new oc(t,e):new or(t,0)}return i.alpha=function(e){return t(+e)},i}(.5);function od(t){this._context=t}function of(t){return new od(t)}function op(t,e,i){var r=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(r||n<0&&-0),a=(i-t._y1)/(n||r<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*n+a*r)/(r+n)))||0}function og(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function om(t,e,i){var r=t._x0,n=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,n+s*e,o-s,a-s*i,o,a)}function oy(t){this._context=t}function o_(t){this._context=new ob(t)}function ob(t){this._context=t}function oC(t){return new oy(t)}function ox(t){return new o_(t)}function ov(t){this._context=t}function ok(t){var e,i,r=t.length-1,n=Array(r),o=Array(r),a=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(e=0,o[r-1]=(t[r]+n[r-1])/2;e<r-1;++e)o[e]=2*t[e+1]-n[e+1];return[n,o]}function oT(t){return new ov(t)}function oA(t,e){this._context=t,this._t=e}function oS(t){return new oA(t,.5)}function ow(t){return new oA(t,0)}function oB(t){return new oA(t,1)}function oF(t,e,i){this.k=t,this.x=e,this.y=i}od.prototype={areaStart:nX,areaEnd:nX,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))}},oy.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:om(this,this._t0,og(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(e=+e,(t=+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,om(this,og(this,i=op(this,t,e)),i);break;default:om(this,this._t0,i=op(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}},(o_.prototype=Object.create(oy.prototype)).point=function(t,e){oy.prototype.point.call(this,e,t)},ob.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,i,r,n,o){this._context.bezierCurveTo(e,t,r,i,o,n)}},ov.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,i=t.length;if(i){if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===i)this._context.lineTo(t[1],e[1]);else for(var r=ok(t),n=ok(e),o=0,a=1;a<i;++o,++a)this._context.bezierCurveTo(r[0][o],n[0][o],r[1][o],n[1][o],t[a],e[a])}(this._line||0!==this._line&&1===i)&&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)}},oA.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&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&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 i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}}this._x=t,this._y=e}},oF.prototype={constructor:oF,scale:function(t){return 1===t?this:new oF(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new oF(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+")"}},new oF(1,0,0),oF.prototype},50373:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var r=i(81283),n=i(70688);let o=class{constructor(){this.type=n.Z.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=n.Z.ALL}is(t){return this.type===t}},a=new class{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new o}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=n.Z.ALL,this}_ensureHSL(){let t=this.data,{h:e,s:i,l:n}=t;void 0===e&&(t.h=r.A.channel.rgb2hsl(t,"h")),void 0===i&&(t.s=r.A.channel.rgb2hsl(t,"s")),void 0===n&&(t.l=r.A.channel.rgb2hsl(t,"l"))}_ensureRGB(){let t=this.data,{r:e,g:i,b:n}=t;void 0===e&&(t.r=r.A.channel.hsl2rgb(t,"r")),void 0===i&&(t.g=r.A.channel.hsl2rgb(t,"g")),void 0===n&&(t.b=r.A.channel.hsl2rgb(t,"b"))}get r(){let t=this.data,e=t.r;return this.type.is(n.Z.HSL)||void 0===e?(this._ensureHSL(),r.A.channel.hsl2rgb(t,"r")):e}get g(){let t=this.data,e=t.g;return this.type.is(n.Z.HSL)||void 0===e?(this._ensureHSL(),r.A.channel.hsl2rgb(t,"g")):e}get b(){let t=this.data,e=t.b;return this.type.is(n.Z.HSL)||void 0===e?(this._ensureHSL(),r.A.channel.hsl2rgb(t,"b")):e}get h(){let t=this.data,e=t.h;return this.type.is(n.Z.RGB)||void 0===e?(this._ensureRGB(),r.A.channel.rgb2hsl(t,"h")):e}get s(){let t=this.data,e=t.s;return this.type.is(n.Z.RGB)||void 0===e?(this._ensureRGB(),r.A.channel.rgb2hsl(t,"s")):e}get l(){let t=this.data,e=t.l;return this.type.is(n.Z.RGB)||void 0===e?(this._ensureRGB(),r.A.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(n.Z.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(n.Z.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(n.Z.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(n.Z.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(n.Z.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(n.Z.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}({r:0,g:0,b:0,a:0},"transparent")},112:(t,e,i)=>{"use strict";i.d(e,{A:()=>c});var r=i(50373),n=i(70688);let o={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;let e=t.match(o.re);if(!e)return;let i=e[1],n=parseInt(i,16),a=i.length,s=a%4==0,l=a>4,h=l?1:17,c=l?8:4,u=s?0:-1,d=l?255:15;return r.A.set({r:(n>>c*(u+3)&d)*h,g:(n>>c*(u+2)&d)*h,b:(n>>c*(u+1)&d)*h,a:s?(n&d)*h/255:1},t)},stringify:t=>{let{r:e,g:i,b:r,a:o}=t;return o<1?`#${n.Y[Math.round(e)]}${n.Y[Math.round(i)]}${n.Y[Math.round(r)]}${n.Y[Math.round(255*o)]}`:`#${n.Y[Math.round(e)]}${n.Y[Math.round(i)]}${n.Y[Math.round(r)]}`}};var a=i(81283);let s={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(s.hueRe);if(e){let[,t,i]=e;switch(i){case"grad":return a.A.channel.clamp.h(.9*parseFloat(t));case"rad":return a.A.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return a.A.channel.clamp.h(360*parseFloat(t))}}return a.A.channel.clamp.h(parseFloat(t))},parse:t=>{let e=t.charCodeAt(0);if(104!==e&&72!==e)return;let i=t.match(s.re);if(!i)return;let[,n,o,l,h,c]=i;return r.A.set({h:s._hue2deg(n),s:a.A.channel.clamp.s(parseFloat(o)),l:a.A.channel.clamp.l(parseFloat(l)),a:h?a.A.channel.clamp.a(c?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{let{h:e,s:i,l:r,a:n}=t;return n<1?`hsla(${a.A.lang.round(e)}, ${a.A.lang.round(i)}%, ${a.A.lang.round(r)}%, ${n})`:`hsl(${a.A.lang.round(e)}, ${a.A.lang.round(i)}%, ${a.A.lang.round(r)}%)`}},l={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=l.colors[t];if(e)return o.parse(e)},stringify:t=>{let e=o.stringify(t);for(let t in l.colors)if(l.colors[t]===e)return t}},h={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(114!==e&&82!==e)return;let i=t.match(h.re);if(!i)return;let[,n,o,s,l,c,u,d,f]=i;return r.A.set({r:a.A.channel.clamp.r(o?2.55*parseFloat(n):parseFloat(n)),g:a.A.channel.clamp.g(l?2.55*parseFloat(s):parseFloat(s)),b:a.A.channel.clamp.b(u?2.55*parseFloat(c):parseFloat(c)),a:d?a.A.channel.clamp.a(f?parseFloat(d)/100:parseFloat(d)):1},t)},stringify:t=>{let{r:e,g:i,b:r,a:n}=t;return n<1?`rgba(${a.A.lang.round(e)}, ${a.A.lang.round(i)}, ${a.A.lang.round(r)}, ${a.A.lang.round(n)})`:`rgb(${a.A.lang.round(e)}, ${a.A.lang.round(i)}, ${a.A.lang.round(r)})`}},c={format:{keyword:l,hex:o,rgb:h,rgba:h,hsl:s,hsla:s},parse:t=>{if("string"!=typeof t)return t;let e=o.parse(t)||h.parse(t)||s.parse(t)||l.parse(t);if(e)return e;throw Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(n.Z.HSL)||void 0===t.data.r?s.stringify(t):!(t.a<1)&&Number.isInteger(t.r)&&Number.isInteger(t.g)&&Number.isInteger(t.b)?o.stringify(t):h.stringify(t)}},70688:(t,e,i)=>{"use strict";i.d(e,{Y:()=>n,Z:()=>o});var r=i(81283);let n={};for(let t=0;t<=255;t++)n[t]=r.A.unit.dec2hex(t);let o={ALL:0,RGB:1,HSL:2}},95433:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var r=i(81283),n=i(112);let o=(t,e,i)=>{let o=n.A.parse(t),a=o[e],s=r.A.channel.clamp[e](a+i);return a!==s&&(o[e]=s),n.A.stringify(o)}},91946:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var r=i(81283),n=i(112);let o=(t,e)=>{let i=n.A.parse(t);for(let t in e)i[t]=r.A.channel.clamp[t](e[t]);return n.A.stringify(i)}},57721:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var r=i(95433);let n=(t,e)=>(0,r.A)(t,"l",-e)},71725:(t,e,i)=>{"use strict";i.d(e,{A:()=>s});var r=i(81283),n=i(112);let o=t=>{let{r:e,g:i,b:o}=n.A.parse(t),a=.2126*r.A.channel.toLinear(e)+.7152*r.A.channel.toLinear(i)+.0722*r.A.channel.toLinear(o);return r.A.lang.round(a)},a=t=>o(t)>=.5,s=t=>!a(t)},68459:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var r=i(95433);let n=(t,e)=>(0,r.A)(t,"l",e)},18448:(t,e,i)=>{"use strict";i.d(e,{A:()=>s});var r=i(81283),n=i(50373),o=i(112),a=i(91946);let s=(t,e,i=0,s=1)=>{if("number"!=typeof t)return(0,a.A)(t,{a:e});let l=n.A.set({r:r.A.channel.clamp.r(t),g:r.A.channel.clamp.g(e),b:r.A.channel.clamp.b(i),a:r.A.channel.clamp.a(s)});return o.A.stringify(l)}},81283:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});let r={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,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t,hsl2rgb:({h:t,s:e,l:i},n)=>{if(!e)return 2.55*i;t/=360,e/=100;let o=(i/=100)<.5?i*(1+e):i+e-i*e,a=2*i-o;switch(n){case"r":return 255*r.hue2rgb(a,o,t+1/3);case"g":return 255*r.hue2rgb(a,o,t);case"b":return 255*r.hue2rgb(a,o,t-1/3)}},rgb2hsl:({r:t,g:e,b:i},r)=>{let n=Math.max(t/=255,e/=255,i/=255),o=Math.min(t,e,i),a=(n+o)/2;if("l"===r)return 100*a;if(n===o)return 0;let s=n-o;if("s"===r)return 100*(a>.5?s/(2-n-o):s/(n+o));switch(n){case t:return((e-i)/s+(e<i?6:0))*60;case e:return((i-t)/s+2)*60;case i:return((t-e)/s+4)*60;default:return -1}}},n={channel:r,lang:{clamp:(t,e,i)=>e>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}}},36821:(t,e,i)=>{"use strict";i.d(e,{A:()=>s});var r=i(65866);let n=function(t,e){for(var i=t.length;i--;)if((0,r.A)(t[i][0],e))return i;return -1};var o=Array.prototype.splice;function a(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}a.prototype.clear=function(){this.__data__=[],this.size=0},a.prototype.delete=function(t){var e=this.__data__,i=n(e,t);return!(i<0)&&(i==e.length-1?e.pop():o.call(e,i,1),--this.size,!0)},a.prototype.get=function(t){var e=this.__data__,i=n(e,t);return i<0?void 0:e[i][1]},a.prototype.has=function(t){return n(this.__data__,t)>-1},a.prototype.set=function(t,e){var i=this.__data__,r=n(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this};let s=a},40029:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var r=i(69954),n=i(29283);let o=(0,r.A)(n.A,"Map")},63713:(t,e,i)=>{"use strict";i.d(e,{A:()=>d});var r=(0,i(69954).A)(Object,"create"),n=Object.prototype.hasOwnProperty,o=Object.prototype.hasOwnProperty;function a(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}a.prototype.clear=function(){this.__data__=r?r(null):{},this.size=0},a.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},a.prototype.get=function(t){var e=this.__data__;if(r){var i=e[t];return"__lodash_hash_undefined__"===i?void 0:i}return n.call(e,t)?e[t]:void 0},a.prototype.has=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)},a.prototype.set=function(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this};var s=i(36821),l=i(40029);let h=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t},c=function(t,e){var i=t.__data__;return h(e)?i["string"==typeof e?"string":"hash"]:i.map};function u(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=function(){this.size=0,this.__data__={hash:new a,map:new(l.A||s.A),string:new a}},u.prototype.delete=function(t){var e=c(this,t).delete(t);return this.size-=e?1:0,e},u.prototype.get=function(t){return c(this,t).get(t)},u.prototype.has=function(t){return c(this,t).has(t)},u.prototype.set=function(t,e){var i=c(this,t),r=i.size;return i.set(t,e),this.size+=i.size==r?0:1,this};let d=u},38779:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var r=i(69954),n=i(29283);let o=(0,r.A)(n.A,"Set")},72872:(t,e,i)=>{"use strict";i.d(e,{A:()=>s});var r=i(36821),n=i(40029),o=i(63713);function a(t){var e=this.__data__=new r.A(t);this.size=e.size}a.prototype.clear=function(){this.__data__=new r.A,this.size=0},a.prototype.delete=function(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i},a.prototype.get=function(t){return this.__data__.get(t)},a.prototype.has=function(t){return this.__data__.has(t)},a.prototype.set=function(t,e){var i=this.__data__;if(i instanceof r.A){var a=i.__data__;if(!n.A||a.length<199)return a.push([t,e]),this.size=++i.size,this;i=this.__data__=new o.A(a)}return i.set(t,e),this.size=i.size,this};let s=a},70807:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});let r=i(29283).A.Symbol},12066:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});let r=i(29283).A.Uint8Array},78373:(t,e,i)=>{"use strict";i.d(e,{A:()=>c});let r=function(t,e){for(var i=-1,r=Array(t);++i<t;)r[i]=e(i);return r};var n=i(42908),o=i(28675),a=i(38990),s=i(49031),l=i(75216),h=Object.prototype.hasOwnProperty;let c=function(t,e){var i=(0,o.A)(t),c=!i&&(0,n.A)(t),u=!i&&!c&&(0,a.A)(t),d=!i&&!c&&!u&&(0,l.A)(t),f=i||c||u||d,p=f?r(t.length,String):[],g=p.length;for(var m in t)(e||h.call(t,m))&&!(f&&("length"==m||u&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||(0,s.A)(m,g)))&&p.push(m);return p}},84805:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var r=i(46402),n=i(65866),o=Object.prototype.hasOwnProperty;let a=function(t,e,i){var a=t[e];o.call(t,e)&&(0,n.A)(a,i)&&(void 0!==i||e in t)||(0,r.A)(t,e,i)}},46402:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var r=i(6977);let n=function(t,e,i){"__proto__"==e&&r.A?(0,r.A)(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}},33240:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});let r=function(t,e,i){for(var r=-1,n=Object(t),o=i(t),a=o.length;a--;){var s=o[++r];if(!1===e(n[s],s,n))break}return t}},36798:(t,e,i)=>{"use strict";i.d(e,{A:()=>u});var r=i(70807),n=Object.prototype,o=n.hasOwnProperty,a=n.toString,s=r.A?r.A.toStringTag:void 0;let l=function(t){var e=o.call(t,s),i=t[s];try{t[s]=void 0;var r=!0}catch(t){}var n=a.call(t);return r&&(e?t[s]=i:delete t[s]),n};var h=Object.prototype.toString,c=r.A?r.A.toStringTag:void 0;let u=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?l(t):h.call(t)}},88601:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var r=i(85797),n=(0,i(7865).A)(Object.keys,Object),o=Object.prototype.hasOwnProperty;let a=function(t){if(!(0,r.A)(t))return n(t);var e=[];for(var i in Object(t))o.call(t,i)&&"constructor"!=i&&e.push(i);return e}},48496:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var r=i(83910),n=i(20453),o=i(1207);let a=function(t,e){return(0,o.A)((0,n.A)(t,e,r.A),t+"")}},39131:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});let r=function(t){return function(e){return t(e)}}},29427:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var r=i(12066);let n=function(t){var e=new t.constructor(t.byteLength);return new r.A(e).set(new r.A(t)),e}},35012:(t,e,i)=>{"use strict";i.d(e,{A:()=>l});var r=i(29283),n="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=n&&"object"==typeof module&&module&&!module.nodeType&&module,a=o&&o.exports===n?r.A.Buffer:void 0,s=a?a.allocUnsafe:void 0;let l=function(t,e){if(e)return t.slice();var i=t.length,r=s?s(i):new t.constructor(i);return t.copy(r),r}},33379:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var r=i(29427);let n=function(t,e){var i=e?(0,r.A)(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}},61733:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});let r=function(t,e){var i=-1,r=t.length;for(e||(e=Array(r));++i<r;)e[i]=t[i];return e}},68785:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var r=i(84805),n=i(46402);let o=function(t,e,i,o){var a=!i;i||(i={});for(var s=-1,l=e.length;++s<l;){var h=e[s],c=o?o(i[h],t[h],h,i,t):void 0;void 0===c&&(c=t[h]),a?(0,n.A)(i,h,c):(0,r.A)(i,h,c)}return i}},6977:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var r=i(69954);let n=function(){try{var t=(0,r.A)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},67054:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});let r="object"==typeof global&&global&&global.Object===Object&&global},69954:(t,e,i)=>{"use strict";i.d(e,{A:()=>p});var r,n=i(42036),o=i(29283).A["__core-js_shared__"],a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",s=i(17731),l=i(63095),h=/^\[object .+?Constructor\]$/,c=Object.prototype,u=Function.prototype.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let p=function(t,e){var i,r=null==t?void 0:t[e];return(i=r,(0,s.A)(i)&&(!a||!(a in i))&&((0,n.A)(i)?f:h).test((0,l.A)(i)))?r:void 0}},30481:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});let r=(0,i(7865).A)(Object.getPrototypeOf,Object)},86073:(t,e,i)=>{"use strict";i.d(e,{A:()=>k});var r=i(69954),n=i(29283),o=(0,r.A)(n.A,"DataView"),a=i(40029),s=(0,r.A)(n.A,"Promise"),l=i(38779),h=(0,r.A)(n.A,"WeakMap"),c=i(36798),u=i(63095),d="[object Map]",f="[object Promise]",p="[object Set]",g="[object WeakMap]",m="[object DataView]",y=(0,u.A)(o),_=(0,u.A)(a.A),b=(0,u.A)(s),C=(0,u.A)(l.A),x=(0,u.A)(h),v=c.A;(o&&v(new o(new ArrayBuffer(1)))!=m||a.A&&v(new a.A)!=d||s&&v(s.resolve())!=f||l.A&&v(new l.A)!=p||h&&v(new h)!=g)&&(v=function(t){var e=(0,c.A)(t),i="[object Object]"==e?t.constructor:void 0,r=i?(0,u.A)(i):"";if(r)switch(r){case y:return m;case _:return d;case b:return f;case C:return p;case x:return g}return e});let k=v},49364:(t,e,i)=>{"use strict";i.d(e,{A:()=>l});var r=i(17731),n=Object.create,o=function(){function t(){}return function(e){if(!(0,r.A)(e))return{};if(n)return n(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}(),a=i(30481),s=i(85797);let l=function(t){return"function"!=typeof t.constructor||(0,s.A)(t)?{}:o((0,a.A)(t))}},49031:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var r=/^(?:0|[1-9]\d*)$/;let n=function(t,e){var i=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==i||"symbol"!=i&&r.test(t))&&t>-1&&t%1==0&&t<e}},50174:(t,e,i)=>{"use strict";i.d(e,{A:()=>s});var r=i(65866),n=i(8860),o=i(49031),a=i(17731);let s=function(t,e,i){if(!(0,a.A)(i))return!1;var s=typeof e;return("number"==s?!!((0,n.A)(i)&&(0,o.A)(e,i.length)):"string"==s&&e in i)&&(0,r.A)(i[e],t)}},85797:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var r=Object.prototype;let n=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},60027:(t,e,i)=>{"use strict";i.d(e,{A:()=>s});var r=i(67054),n="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=n&&"object"==typeof module&&module&&!module.nodeType&&module,a=o&&o.exports===n&&r.A.process;let s=function(){try{var t=o&&o.require&&o.require("util").types;if(t)return t;return a&&a.binding&&a.binding("util")}catch(t){}}()},7865:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});let r=function(t,e){return function(i){return t(e(i))}}},20453:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});let r=function(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)};var n=Math.max;let o=function(t,e,i){return e=n(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=n(o.length-e,0),l=Array(s);++a<s;)l[a]=o[e+a];a=-1;for(var h=Array(e+1);++a<e;)h[a]=o[a];return h[e]=i(l),r(t,this,h)}}},29283:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var r=i(67054),n="object"==typeof self&&self&&self.Object===Object&&self;let o=r.A||n||Function("return this")()},1207:(t,e,i)=>{"use strict";i.d(e,{A:()=>c});var r,n,o=i(39260),a=i(6977),s=i(83910),l=a.A?function(t,e){return(0,a.A)(t,"toString",{configurable:!0,enumerable:!1,value:(0,o.A)(e),writable:!0})}:s.A,h=Date.now;let c=(r=0,n=0,function(){var t=h(),e=16-(t-n);if(n=t,e>0){if(++r>=800)return arguments[0]}else r=0;return l.apply(void 0,arguments)})},63095:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var r=Function.prototype.toString;let n=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},39260:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});let r=function(t){return function(){return t}}},65866:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});let r=function(t,e){return t===e||t!=t&&e!=e}},83910:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});let r=function(t){return t}},42908:(t,e,i)=>{"use strict";i.d(e,{A:()=>h});var r=i(36798),n=i(19196);let o=function(t){return(0,n.A)(t)&&"[object Arguments]"==(0,r.A)(t)};var a=Object.prototype,s=a.hasOwnProperty,l=a.propertyIsEnumerable;let h=o(function(){return arguments}())?o:function(t){return(0,n.A)(t)&&s.call(t,"callee")&&!l.call(t,"callee")}},28675:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});let r=Array.isArray},8860:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var r=i(42036),n=i(13884);let o=function(t){return null!=t&&(0,n.A)(t.length)&&!(0,r.A)(t)}},11755:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var r=i(8860),n=i(19196);let o=function(t){return(0,n.A)(t)&&(0,r.A)(t)}},38990:(t,e,i)=>{"use strict";i.d(e,{A:()=>s});var r=i(29283),n="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=n&&"object"==typeof module&&module&&!module.nodeType&&module,a=o&&o.exports===n?r.A.Buffer:void 0;let s=(a?a.isBuffer:void 0)||function(){return!1}},77083:(t,e,i)=>{"use strict";i.d(e,{A:()=>d});var r=i(88601),n=i(86073),o=i(42908),a=i(28675),s=i(8860),l=i(38990),h=i(85797),c=i(75216),u=Object.prototype.hasOwnProperty;let d=function(t){if(null==t)return!0;if((0,s.A)(t)&&((0,a.A)(t)||"string"==typeof t||"function"==typeof t.splice||(0,l.A)(t)||(0,c.A)(t)||(0,o.A)(t)))return!t.length;var e=(0,n.A)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,h.A)(t))return!(0,r.A)(t).length;for(var i in t)if(u.call(t,i))return!1;return!0}},42036:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var r=i(36798),n=i(17731);let o=function(t){if(!(0,n.A)(t))return!1;var e=(0,r.A)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},13884:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});let r=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},17731:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});let r=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},19196:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});let r=function(t){return null!=t&&"object"==typeof t}},69113:(t,e,i)=>{"use strict";i.d(e,{A:()=>c});var r=i(36798),n=i(30481),o=i(19196),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,h=s.call(Object);let c=function(t){if(!(0,o.A)(t)||"[object Object]"!=(0,r.A)(t))return!1;var e=(0,n.A)(t);if(null===e)return!0;var i=l.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&s.call(i)==h}},75216:(t,e,i)=>{"use strict";i.d(e,{A:()=>c});var r=i(36798),n=i(13884),o=i(19196),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var s=i(39131),l=i(60027),h=l.A&&l.A.isTypedArray;let c=h?(0,s.A)(h):function(t){return(0,o.A)(t)&&(0,n.A)(t.length)&&!!a[(0,r.A)(t)]}},97937:(t,e,i)=>{"use strict";i.d(e,{A:()=>c});var r=i(78373),n=i(17731),o=i(85797);let a=function(t){var e=[];if(null!=t)for(var i in Object(t))e.push(i);return e};var s=Object.prototype.hasOwnProperty;let l=function(t){if(!(0,n.A)(t))return a(t);var e=(0,o.A)(t),i=[];for(var r in t)"constructor"==r&&(e||!s.call(t,r))||i.push(r);return i};var h=i(8860);let c=function(t){return(0,h.A)(t)?(0,r.A)(t,!0):l(t)}},12854:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var r=i(63713);function n(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var a=t.apply(this,r);return i.cache=o.set(n,a)||o,a};return i.cache=new(n.Cache||r.A),i}n.Cache=r.A;let o=n},14397:(t,e,i)=>{"use strict";i.d(e,{A:()=>B});var r,n=i(72872),o=i(46402),a=i(65866);let s=function(t,e,i){(void 0===i||(0,a.A)(t[e],i))&&(void 0!==i||e in t)||(0,o.A)(t,e,i)};var l=i(33240),h=i(35012),c=i(33379),u=i(61733),d=i(49364),f=i(42908),p=i(28675),g=i(11755),m=i(38990),y=i(42036),_=i(17731),b=i(69113),C=i(75216);let x=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};var v=i(68785),k=i(97937);let T=function(t,e,i,r,n,o,a){var l=x(t,i),T=x(e,i),A=a.get(T);if(A){s(t,i,A);return}var S=o?o(l,T,i+"",t,e,a):void 0,w=void 0===S;if(w){var B=(0,p.A)(T),F=!B&&(0,m.A)(T),L=!B&&!F&&(0,C.A)(T);(S=T,B||F||L)?(0,p.A)(l)?S=l:(0,g.A)(l)?S=(0,u.A)(l):F?(w=!1,S=(0,h.A)(T,!0)):L?(w=!1,S=(0,c.A)(T,!0)):S=[]:(0,b.A)(T)||(0,f.A)(T)?(S=l,(0,f.A)(l))?S=(0,v.A)(l,(0,k.A)(l)):(!(0,_.A)(l)||(0,y.A)(l))&&(S=(0,d.A)(T)):w=!1}w&&(a.set(T,S),n(S,T,r,o,a),a.delete(T)),s(t,i,S)},A=function t(e,i,r,o,a){e!==i&&(0,l.A)(i,function(l,h){if(a||(a=new n.A),(0,_.A)(l))T(e,i,h,r,t,o,a);else{var c=o?o(x(e,h),l,h+"",e,i,a):void 0;void 0===c&&(c=l),s(e,h,c)}},k.A)};var S=i(48496),w=i(50174);let B=(r=function(t,e,i){A(t,e,i)},(0,S.A)(function(t,e){var i=-1,n=e.length,o=n>1?e[n-1]:void 0,a=n>2?e[2]:void 0;for(o=r.length>3&&"function"==typeof o?(n--,o):void 0,a&&(0,w.A)(e[0],e[1],a)&&(o=n<3?void 0:o,n=1),t=Object(t);++i<n;){var s=e[i];s&&r(t,s,i,o)}return t}))},17367:(t,e,i)=>{"use strict";let r,n;i.d(e,{A:()=>iw,B:()=>eZ,C:()=>tC,D:()=>ik,E:()=>tQ,F:()=>tJ,G:()=>td,H:()=>rj,I:()=>tj,J:()=>J,K:()=>t1,L:()=>rY,M:()=>ix,N:()=>no,Z:()=>tE,a:()=>i_,b:()=>iy,c:()=>et,d:()=>tt,e:()=>to,f:()=>tM,g:()=>im,h:()=>tY,i:()=>eK,j:()=>tH,k:()=>t$,l:()=>G,m:()=>r1,n:()=>tr,o:()=>tN,p:()=>e0,q:()=>t9,r:()=>ib,s:()=>ig,t:()=>iC,u:()=>tK,v:()=>ip,w:()=>tW,x:()=>tn,y:()=>tP,z:()=>iA});var o=i(97597),a=i(95285),s=i(31546),l=i(93126),h=i(31234),c=i(112),u=i(91946);let d=(t,e)=>{let i=c.A.parse(t),r={};for(let t in e)e[t]&&(r[t]=i[t]+e[t]);return(0,u.A)(t,r)};var f=i(18448);let p=(t,e,i=50)=>{let{r:r,g:n,b:o,a:a}=c.A.parse(t),{r:s,g:l,b:h,a:u}=c.A.parse(e),d=i/100,p=2*d-1,g=a-u,m=((p*g==-1?p:(p+g)/(1+p*g))+1)/2,y=1-m;return(0,f.A)(r*m+s*y,n*m+l*y,o*m+h*y,a*d+u*(1-d))},g=(t,e=100)=>{let i=c.A.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,p(i,t,e)};var m=i(57721),y=i(68459),_=i(71725),b=i(12854),C=i(14397),x="comm",v="rule",k="decl",T=Math.abs,A=String.fromCharCode;function S(t,e,i){return t.replace(e,i)}function w(t,e){return 0|t.charCodeAt(e)}function B(t,e,i){return t.slice(e,i)}function F(t){return t.length}function L(t,e){return e.push(t),t}function M(t,e){for(var i="",r=0;r<t.length;r++)i+=e(t[r],r,t,e)||"";return i}function E(t,e,i,r){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case k:return t.return=t.return||t.value;case x:return"";case"@keyframes":return t.return=t.value+"{"+M(t.children,r)+"}";case v:if(!F(t.value=t.props.join(",")))return""}return F(i=M(t.children,r))?t.return=t.value+"{"+i+"}":""}var O=1,I=1,q=0,N=0,D=0,$="";function z(t,e,i,r,n,o,a,s){return{value:t,root:e,parent:i,type:r,props:n,children:o,line:O,column:I,length:a,return:"",siblings:s}}function j(){return D=N<q?w($,N++):0,I++,10===D&&(I=1,O++),D}function P(){return w($,N)}function R(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 W(t){var e,i;return(e=N-1,i=function t(e){for(;j();)switch(D){case e:return N;case 34:case 39:34!==e&&39!==e&&t(D);break;case 40:41===e&&t(e);break;case 92:j()}return N}(91===t?t+2:40===t?t+1:t),B($,e,i)).trim()}function U(t,e,i,r,n,o,a,s,l,h,c,u){for(var d=n-1,f=0===n?o:[""],p=f.length,g=0,m=0,y=0;g<r;++g)for(var _=0,b=B(t,d+1,d=T(m=a[g])),C=t;_<p;++_)(C=(m>0?f[_]+" "+b:S(b,/&\f/g,f[_])).trim())&&(l[y++]=C);return z(t,e,i,0===n?v:s,l,h,c,u)}function H(t,e,i,r,n){return z(t,e,i,k,B(t,0,r),B(t,r+1,-1),r,n)}var Y=i(77083);let V={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},G={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},X=function(t="fatal"){let e=V.fatal;"string"==typeof t?(t=t.toLowerCase())in V&&(e=V[t]):"number"==typeof t&&(e=t),G.trace=()=>{},G.debug=()=>{},G.info=()=>{},G.warn=()=>{},G.error=()=>{},G.fatal=()=>{},e<=V.fatal&&(G.fatal=console.error?console.error.bind(console,Z("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",Z("FATAL"))),e<=V.error&&(G.error=console.error?console.error.bind(console,Z("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",Z("ERROR"))),e<=V.warn&&(G.warn=console.warn?console.warn.bind(console,Z("WARN"),"color: orange"):console.log.bind(console,`\x1b[33m`,Z("WARN"))),e<=V.info&&(G.info=console.info?console.info.bind(console,Z("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",Z("INFO"))),e<=V.debug&&(G.debug=console.debug?console.debug.bind(console,Z("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",Z("DEBUG"))),e<=V.trace&&(G.trace=console.debug?console.debug.bind(console,Z("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",Z("TRACE")))},Z=t=>{let e=a().format("ss.SSS");return`%c${e} : ${t} : `},J=/<br\s*\/?>/gi,Q=t=>h.sanitize(t),K=(t,e)=>{var i;if((null==(i=e.flowchart)?void 0:i.htmlLabels)!==!1){let i=e.securityLevel;"antiscript"===i||"strict"===i?t=Q(t):"loose"!==i&&(t=te(t=(t=(t=ti(t)).replace(/</g,"<").replace(/>/g,">")).replace(/=/g,"=")))}return t},tt=(t,e)=>t?t=e.dompurifyConfig?h.sanitize(K(t,e),e.dompurifyConfig).toString():h.sanitize(K(t,e),{FORBID_TAGS:["style"]}).toString():t,te=t=>t.replace(/#br#/g,"<br/>"),ti=t=>t.replace(J,"#br#"),tr=t=>!(!1===t||["false","null","0"].includes(String(t).trim().toLowerCase())),tn=function(t){let e=t;if(!(t.split("~").length-1>=2))return e;{let t=e;do t=(e=t).replace(/~([^\s,:;]+)~/,"<$1>");while(t!=e)return tn(t)}},to={getRows:t=>t?ti(t).replace(/\\n/g,"#br#").split("#br#"):[""],sanitizeText:tt,sanitizeTextOrArray:(t,e)=>"string"==typeof t?tt(t,e):t.flat().map(t=>tt(t,e)),hasBreaks:t=>J.test(t),splitBreaks:t=>t.split(J),lineBreakRegex:J,removeScript:Q,getUrl:t=>{let e="";return t&&(e=(e=(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replaceAll(/\(/g,"\\(")).replaceAll(/\)/g,"\\)")),e},evaluate:tr,getMax:function(...t){return Math.max(...t.filter(t=>!isNaN(t)))},getMin:function(...t){return Math.min(...t.filter(t=>!isNaN(t)))}},ta=(t,e)=>e?d(t,{s:-40,l:10}):d(t,{s:-40,l:-10}),ts="#ffffff",tl="#f2f2f2",th=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||d(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||d(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ta(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ta(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ta(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ta(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||g(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||g(this.tertiaryColor),this.lineColor=this.lineColor||g(this.background),this.arrowheadColor=this.arrowheadColor||g(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,m.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,m.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||g(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,y.A)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||d(this.primaryColor,{h:30}),this.cScale4=this.cScale4||d(this.primaryColor,{h:60}),this.cScale5=this.cScale5||d(this.primaryColor,{h:90}),this.cScale6=this.cScale6||d(this.primaryColor,{h:120}),this.cScale7=this.cScale7||d(this.primaryColor,{h:150}),this.cScale8=this.cScale8||d(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||d(this.primaryColor,{h:270}),this.cScale10=this.cScale10||d(this.primaryColor,{h:300}),this.cScale11=this.cScale11||d(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,m.A)(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,m.A)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||g(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,y.A)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,m.A)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;let t=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||d(this.mainBkg,{h:180,s:-15,l:t*(5+3*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||d(this.mainBkg,{h:180,s:-15,l:t*(8+3*e)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||d(this.primaryColor,{h:64}),this.fillType3=this.fillType3||d(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||d(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||d(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||d(this.primaryColor,{h:128}),this.fillType7=this.fillType7||d(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||d(this.primaryColor,{l:-10}),this.pie5=this.pie5||d(this.secondaryColor,{l:-10}),this.pie6=this.pie6||d(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||d(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||d(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||d(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||d(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||d(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||d(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||d(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||d(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||d(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||d(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||d(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||d(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,_.A)(this.quadrant1Fill)?(0,y.A)(this.quadrant1Fill):(0,m.A)(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?(0,m.A)(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||d(this.primaryColor,{h:-30}),this.git4=this.git4||d(this.primaryColor,{h:-60}),this.git5=this.git5||d(this.primaryColor,{h:-90}),this.git6=this.git6||d(this.primaryColor,{h:60}),this.git7=this.git7||d(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,y.A)(this.git0,25),this.git1=(0,y.A)(this.git1,25),this.git2=(0,y.A)(this.git2,25),this.git3=(0,y.A)(this.git3,25),this.git4=(0,y.A)(this.git4,25),this.git5=(0,y.A)(this.git5,25),this.git6=(0,y.A)(this.git6,25),this.git7=(0,y.A)(this.git7,25)):(this.git0=(0,m.A)(this.git0,25),this.git1=(0,m.A)(this.git1,25),this.git2=(0,m.A)(this.git2,25),this.git3=(0,m.A)(this.git3,25),this.git4=(0,m.A)(this.git4,25),this.git5=(0,m.A)(this.git5,25),this.git6=(0,m.A)(this.git6,25),this.git7=(0,m.A)(this.git7,25)),this.gitInv0=this.gitInv0||g(this.git0),this.gitInv1=this.gitInv1||g(this.git1),this.gitInv2=this.gitInv2||g(this.git2),this.gitInv3=this.gitInv3||g(this.git3),this.gitInv4=this.gitInv4||g(this.git4),this.gitInv5=this.gitInv5||g(this.git5),this.gitInv6=this.gitInv6||g(this.git6),this.gitInv7=this.gitInv7||g(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||ts,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||tl}calculate(t){if("object"!=typeof t){this.updateColors();return}let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},tc=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,y.A)(this.primaryColor,16),this.tertiaryColor=d(this.primaryColor,{h:-160}),this.primaryBorderColor=g(this.background),this.secondaryBorderColor=ta(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ta(this.tertiaryColor,this.darkMode),this.primaryTextColor=g(this.primaryColor),this.secondaryTextColor=g(this.secondaryColor),this.tertiaryTextColor=g(this.tertiaryColor),this.lineColor=g(this.background),this.textColor=g(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,y.A)(g("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=(0,f.A)(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=(0,m.A)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=(0,m.A)(this.sectionBkgColor,10),this.taskBorderColor=(0,f.A)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,f.A)(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=(0,y.A)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,y.A)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,y.A)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=d(this.primaryColor,{h:64}),this.fillType3=d(this.secondaryColor,{h:64}),this.fillType4=d(this.primaryColor,{h:-64}),this.fillType5=d(this.secondaryColor,{h:-64}),this.fillType6=d(this.primaryColor,{h:128}),this.fillType7=d(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||d(this.primaryColor,{h:30}),this.cScale4=this.cScale4||d(this.primaryColor,{h:60}),this.cScale5=this.cScale5||d(this.primaryColor,{h:90}),this.cScale6=this.cScale6||d(this.primaryColor,{h:120}),this.cScale7=this.cScale7||d(this.primaryColor,{h:150}),this.cScale8=this.cScale8||d(this.primaryColor,{h:210}),this.cScale9=this.cScale9||d(this.primaryColor,{h:270}),this.cScale10=this.cScale10||d(this.primaryColor,{h:300}),this.cScale11=this.cScale11||d(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||g(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||(0,y.A)(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||d(this.mainBkg,{h:30,s:-30,l:-(-10+4*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||d(this.mainBkg,{h:30,s:-30,l:-(-7+4*t)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];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||d(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||d(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||d(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||d(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||d(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||d(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,_.A)(this.quadrant1Fill)?(0,y.A)(this.quadrant1Fill):(0,m.A)(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?(0,m.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,y.A)(this.secondaryColor,20),this.git1=(0,y.A)(this.pie2||this.secondaryColor,20),this.git2=(0,y.A)(this.pie3||this.tertiaryColor,20),this.git3=(0,y.A)(this.pie4||d(this.primaryColor,{h:-30}),20),this.git4=(0,y.A)(this.pie5||d(this.primaryColor,{h:-60}),20),this.git5=(0,y.A)(this.pie6||d(this.primaryColor,{h:-90}),10),this.git6=(0,y.A)(this.pie7||d(this.primaryColor,{h:60}),10),this.git7=(0,y.A)(this.pie8||d(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||g(this.git0),this.gitInv1=this.gitInv1||g(this.git1),this.gitInv2=this.gitInv2||g(this.git2),this.gitInv3=this.gitInv3||g(this.git3),this.gitInv4=this.gitInv4||g(this.git4),this.gitInv5=this.gitInv5||g(this.git5),this.gitInv6=this.gitInv6||g(this.git6),this.gitInv7=this.gitInv7||g(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||g(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||g(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||(0,y.A)(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||(0,y.A)(this.background,2)}calculate(t){if("object"!=typeof t){this.updateColors();return}let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},tu=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=d(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=d(this.primaryColor,{h:-160}),this.primaryBorderColor=ta(this.primaryColor,this.darkMode),this.secondaryBorderColor=ta(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ta(this.tertiaryColor,this.darkMode),this.primaryTextColor=g(this.primaryColor),this.secondaryTextColor=g(this.secondaryColor),this.tertiaryTextColor=g(this.tertiaryColor),this.lineColor=g(this.background),this.textColor=g(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=(0,f.A)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||d(this.primaryColor,{h:30}),this.cScale4=this.cScale4||d(this.primaryColor,{h:60}),this.cScale5=this.cScale5||d(this.primaryColor,{h:90}),this.cScale6=this.cScale6||d(this.primaryColor,{h:120}),this.cScale7=this.cScale7||d(this.primaryColor,{h:150}),this.cScale8=this.cScale8||d(this.primaryColor,{h:210}),this.cScale9=this.cScale9||d(this.primaryColor,{h:270}),this.cScale10=this.cScale10||d(this.primaryColor,{h:300}),this.cScale11=this.cScale11||d(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,m.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,m.A)(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,m.A)(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||(0,m.A)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||d(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||d(this.mainBkg,{h:30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||d(this.mainBkg,{h:30,l:-(7+5*t)});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||g(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||g(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||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=(0,y.A)(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=d(this.primaryColor,{h:64}),this.fillType3=d(this.secondaryColor,{h:64}),this.fillType4=d(this.primaryColor,{h:-64}),this.fillType5=d(this.secondaryColor,{h:-64}),this.fillType6=d(this.primaryColor,{h:128}),this.fillType7=d(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||d(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||d(this.primaryColor,{l:-10}),this.pie5=this.pie5||d(this.secondaryColor,{l:-30}),this.pie6=this.pie6||d(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||d(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||d(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||d(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||d(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||d(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||d(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||d(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||d(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||d(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||d(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||d(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||d(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,_.A)(this.quadrant1Fill)?(0,y.A)(this.quadrant1Fill):(0,m.A)(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||d(this.primaryColor,{h:-30}),this.git4=this.git4||d(this.primaryColor,{h:-60}),this.git5=this.git5||d(this.primaryColor,{h:-90}),this.git6=this.git6||d(this.primaryColor,{h:60}),this.git7=this.git7||d(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,y.A)(this.git0,25),this.git1=(0,y.A)(this.git1,25),this.git2=(0,y.A)(this.git2,25),this.git3=(0,y.A)(this.git3,25),this.git4=(0,y.A)(this.git4,25),this.git5=(0,y.A)(this.git5,25),this.git6=(0,y.A)(this.git6,25),this.git7=(0,y.A)(this.git7,25)):(this.git0=(0,m.A)(this.git0,25),this.git1=(0,m.A)(this.git1,25),this.git2=(0,m.A)(this.git2,25),this.git3=(0,m.A)(this.git3,25),this.git4=(0,m.A)(this.git4,25),this.git5=(0,m.A)(this.git5,25),this.git6=(0,m.A)(this.git6,25),this.git7=(0,m.A)(this.git7,25)),this.gitInv0=this.gitInv0||(0,m.A)(g(this.git0),25),this.gitInv1=this.gitInv1||g(this.git1),this.gitInv2=this.gitInv2||g(this.git2),this.gitInv3=this.gitInv3||g(this.git3),this.gitInv4=this.gitInv4||g(this.git4),this.gitInv5=this.gitInv5||g(this.git5),this.gitInv6=this.gitInv6||g(this.git6),this.gitInv7=this.gitInv7||g(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||g(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||g(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||ts,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||tl}calculate(t){if("object"!=typeof t){this.updateColors();return}let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},td=t=>{let e=new tu;return e.calculate(t),e},tf=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=(0,y.A)("#cde498",10),this.primaryBorderColor=ta(this.primaryColor,this.darkMode),this.secondaryBorderColor=ta(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ta(this.tertiaryColor,this.darkMode),this.primaryTextColor=g(this.primaryColor),this.secondaryTextColor=g(this.secondaryColor),this.tertiaryTextColor=g(this.primaryColor),this.lineColor=g(this.background),this.textColor=g(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=(0,m.A)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||d(this.primaryColor,{h:30}),this.cScale4=this.cScale4||d(this.primaryColor,{h:60}),this.cScale5=this.cScale5||d(this.primaryColor,{h:90}),this.cScale6=this.cScale6||d(this.primaryColor,{h:120}),this.cScale7=this.cScale7||d(this.primaryColor,{h:150}),this.cScale8=this.cScale8||d(this.primaryColor,{h:210}),this.cScale9=this.cScale9||d(this.primaryColor,{h:270}),this.cScale10=this.cScale10||d(this.primaryColor,{h:300}),this.cScale11=this.cScale11||d(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,m.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,m.A)(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,m.A)(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||(0,m.A)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||d(this["cScale"+t],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||d(this.mainBkg,{h:30,s:-30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||d(this.mainBkg,{h:30,s:-30,l:-(8+5*t)});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=d(this.primaryColor,{h:64}),this.fillType3=d(this.secondaryColor,{h:64}),this.fillType4=d(this.primaryColor,{h:-64}),this.fillType5=d(this.secondaryColor,{h:-64}),this.fillType6=d(this.primaryColor,{h:128}),this.fillType7=d(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||d(this.primaryColor,{l:-30}),this.pie5=this.pie5||d(this.secondaryColor,{l:-30}),this.pie6=this.pie6||d(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||d(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||d(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||d(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||d(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||d(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||d(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||d(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||d(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||d(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||d(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||d(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||d(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,_.A)(this.quadrant1Fill)?(0,y.A)(this.quadrant1Fill):(0,m.A)(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||d(this.primaryColor,{h:-30}),this.git4=this.git4||d(this.primaryColor,{h:-60}),this.git5=this.git5||d(this.primaryColor,{h:-90}),this.git6=this.git6||d(this.primaryColor,{h:60}),this.git7=this.git7||d(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,y.A)(this.git0,25),this.git1=(0,y.A)(this.git1,25),this.git2=(0,y.A)(this.git2,25),this.git3=(0,y.A)(this.git3,25),this.git4=(0,y.A)(this.git4,25),this.git5=(0,y.A)(this.git5,25),this.git6=(0,y.A)(this.git6,25),this.git7=(0,y.A)(this.git7,25)):(this.git0=(0,m.A)(this.git0,25),this.git1=(0,m.A)(this.git1,25),this.git2=(0,m.A)(this.git2,25),this.git3=(0,m.A)(this.git3,25),this.git4=(0,m.A)(this.git4,25),this.git5=(0,m.A)(this.git5,25),this.git6=(0,m.A)(this.git6,25),this.git7=(0,m.A)(this.git7,25)),this.gitInv0=this.gitInv0||g(this.git0),this.gitInv1=this.gitInv1||g(this.git1),this.gitInv2=this.gitInv2||g(this.git2),this.gitInv3=this.gitInv3||g(this.git3),this.gitInv4=this.gitInv4||g(this.git4),this.gitInv5=this.gitInv5||g(this.git5),this.gitInv6=this.gitInv6||g(this.git6),this.gitInv7=this.gitInv7||g(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||g(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||g(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||ts,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||tl}calculate(t){if("object"!=typeof t){this.updateColors();return}let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}};class tp{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,y.A)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=d(this.primaryColor,{h:-160}),this.primaryBorderColor=ta(this.primaryColor,this.darkMode),this.secondaryBorderColor=ta(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ta(this.tertiaryColor,this.darkMode),this.primaryTextColor=g(this.primaryColor),this.secondaryTextColor=g(this.secondaryColor),this.tertiaryTextColor=g(this.tertiaryColor),this.lineColor=g(this.background),this.textColor=g(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=(0,y.A)(this.contrast,55),this.border2=this.contrast,this.actorBorder=(0,y.A)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||g(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,y.A)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,m.A)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||d(this.mainBkg,{l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||d(this.mainBkg,{l:-(8+5*t)});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=(0,y.A)(this.contrast,30),this.sectionBkgColor2=(0,y.A)(this.contrast,30),this.taskBorderColor=(0,m.A)(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=(0,y.A)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=(0,m.A)(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=d(this.primaryColor,{h:64}),this.fillType3=d(this.secondaryColor,{h:64}),this.fillType4=d(this.primaryColor,{h:-64}),this.fillType5=d(this.secondaryColor,{h:-64}),this.fillType6=d(this.primaryColor,{h:128}),this.fillType7=d(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];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||d(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||d(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||d(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||d(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||d(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||d(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,_.A)(this.quadrant1Fill)?(0,y.A)(this.quadrant1Fill):(0,m.A)(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=(0,m.A)(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||d(this.primaryColor,{h:-30}),this.git4=this.pie5||d(this.primaryColor,{h:-60}),this.git5=this.pie6||d(this.primaryColor,{h:-90}),this.git6=this.pie7||d(this.primaryColor,{h:60}),this.git7=this.pie8||d(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||g(this.git0),this.gitInv1=this.gitInv1||g(this.git1),this.gitInv2=this.gitInv2||g(this.git2),this.gitInv3=this.gitInv3||g(this.git3),this.gitInv4=this.gitInv4||g(this.git4),this.gitInv5=this.gitInv5||g(this.git5),this.gitInv6=this.gitInv6||g(this.git6),this.gitInv7=this.gitInv7||g(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||ts,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||tl}calculate(t){if("object"!=typeof t){this.updateColors();return}let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}}let tg={base:{getThemeVariables:t=>{let e=new th;return e.calculate(t),e}},dark:{getThemeVariables:t=>{let e=new tc;return e.calculate(t),e}},default:{getThemeVariables:td},forest:{getThemeVariables:t=>{let e=new tf;return e.calculate(t),e}},neutral:{getThemeVariables:t=>{let e=new tp;return e.calculate(t),e}}},tm={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},ty={...tm,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:tg.default.getThemeVariables(),sequence:{...tm.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:{...tm.gantt,tickInterval:void 0,useWidth:void 0},c4:{...tm.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:{...tm.pie,useWidth:984},requirement:{...tm.requirement,useWidth:void 0},gitGraph:{...tm.gitGraph,useMaxWidth:!1},sankey:{...tm.sankey,useMaxWidth:!1}},t_=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:"object"==typeof t[r]&&null!==t[r]?[...i,e+r,...t_(t[r],"")]:[...i,e+r],[]),tb=new Set(t_(ty,"")),tC=ty,tx=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,tv=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,tk=/\s*%%.*\n/gm;class tT extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}}let tA={},tS=function(t,e){for(let[i,{detector:r}]of(t=t.replace(tx,"").replace(tv,"").replace(tk,"\n"),Object.entries(tA)))if(r(t,e))return i;throw new tT(`No diagram type detected matching given configuration for text: ${t}`)},tw=(...t)=>{for(let{id:e,detector:i,loader:r}of t)tB(e,i,r)},tB=(t,e,i)=>{tA[t]?G.error(`Detector with key ${t} already exists`):tA[t]={detector:e,loader:i},G.debug(`Detector with key ${t} added${i?" with loader":""}`)},tF=t=>tA[t].loader,tL=(t,e,{depth:i=2,clobber:r=!1}={})=>{let n={depth:i,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(e=>tL(t,e,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(e=>{t.includes(e)||t.push(e)}),t):void 0===t||i<=0?null!=t&&"object"==typeof t&&"object"==typeof e?Object.assign(t,e):e:(void 0!==e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).forEach(n=>{"object"==typeof e[n]&&(void 0===t[n]||"object"==typeof t[n])?(void 0===t[n]&&(t[n]=Array.isArray(e[n])?[]:{}),t[n]=tL(t[n],e[n],{depth:i-1,clobber:r})):(r||"object"!=typeof t[n]&&"object"!=typeof e[n])&&(t[n]=e[n])}),t)},tM=tL,tE="\u200B",tO={curveBasis:l.qrM,curveBasisClosed:l.Yu4,curveBasisOpen:l.IA3,curveBumpX:l.Wi0,curveBumpY:l.PGM,curveBundle:l.OEq,curveCardinalClosed:l.olC,curveCardinalOpen:l.IrU,curveCardinal:l.y8u,curveCatmullRomClosed:l.Q7f,curveCatmullRomOpen:l.cVp,curveCatmullRom:l.oDi,curveLinear:l.lUB,curveLinearClosed:l.Lx9,curveMonotoneX:l.nVG,curveMonotoneY:l.uxU,curveNatural:l.Xf2,curveStep:l.GZz,curveStepAfter:l.UPb,curveStepBefore:l.dyv},tI=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,tq=function(t,e=null){try{let i;let r=RegExp(`[%]{2}(?![{]${tI.source})(?=[}][%]{2}).*
|
|
`,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),G.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);let n=[];for(;null!==(i=tv.exec(t));)if(i.index===tv.lastIndex&&tv.lastIndex++,i&&!e||e&&i[1]&&i[1].match(e)||e&&i[2]&&i[2].match(e)){let t=i[1]?i[1]:i[2],e=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;n.push({type:t,args:e})}return 0===n.length&&n.push({type:t,args:null}),1===n.length?n[0]:n}catch(i){return G.error(`ERROR: ${i.message} - Unable to parse directive
|
|
${null!==e?" type:"+e:""} based on the text:${t}`),{type:null,args:null}}};function tN(t,e){return t&&tO[`curve${t.charAt(0).toUpperCase()+t.slice(1)}`]||e}function tD(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function t$(t){let e="",i="";for(let r of t)void 0!==r&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let tz=0,tj=()=>(tz++,"id-"+Math.random().toString(36).substr(2,12)+"-"+tz),tP=t=>(function(t){let e="",i="0123456789abcdef",r=i.length;for(let n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*r));return e})(t.length),tR=function(t,e){let i=e.text.replace(to.lineBreakRegex," "),[,r]=tJ(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",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),void 0!==e.class&&n.attr("class",e.class);let o=n.append("tspan");return o.attr("x",e.x+2*e.textMargin),o.attr("fill",e.fill),o.text(i),n},tW=(0,b.A)((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),to.lineBreakRegex.test(t)))return t;let r=t.split(" "),n=[],o="";return r.forEach((t,a)=>{let s=tY(`${t} `,i),l=tY(o,i);if(s>e){let{hyphenatedStrings:r,remainingWord:a}=tU(t,e,"-",i);n.push(o,...r),o=a}else l+s>=e?(n.push(o),o=t):o=[o,t].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(t=>""!==t).join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),tU=(0,b.A)((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);let n=[...t],o=[],a="";return n.forEach((t,s)=>{let l=`${a}${t}`;if(tY(l,r)>=e){let t=n.length===s+1,e=`${l}${i}`;o.push(t?l:e),a=""}else a=l}),{hyphenatedStrings:o,remainingWord:a}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function tH(t,e){return tV(t,e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e)).height}function tY(t,e){return tV(t,e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e)).width}let tV=(0,b.A)((t,e)=>{let{fontSize:i,fontFamily:r,fontWeight:n}=e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e);if(!t)return{width:0,height:0};let[,o]=tJ(i),a=t.split(to.lineBreakRegex),s=[],h=(0,l.Ltv)("body");if(!h.remove)return{width:0,height:0,lineHeight:0};let c=h.append("svg");for(let t of["sans-serif",r]){let e=0,i={width:0,height:0,lineHeight:0};for(let r of a){let a={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};a.text=r||tE;let s=tR(c,a).style("font-size",o).style("font-weight",n).style("font-family",t),l=(s._groups||s)[0][0].getBBox();if(0===l.width&&0===l.height)throw Error("svg element not in render tree");i.width=Math.round(Math.max(i.width,l.width)),e=Math.round(l.height),i.height+=e,i.lineHeight=Math.round(Math.max(i.lineHeight,e))}s.push(i)}c.remove();let u=isNaN(s[1].height)||isNaN(s[1].width)||isNaN(s[1].lineHeight)||s[0].height>s[1].height&&s[0].width>s[1].width&&s[0].lineHeight>s[1].lineHeight?0:1;return s[u]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),tG=class{constructor(t,e){this.deterministic=t,this.seed=e,this.count=e?e.length:0}next(){return this.deterministic?this.count++:Date.now()}},tX=t=>{if(G.debug("sanitizeDirective called with",t),"object"==typeof t&&null!=t){if(Array.isArray(t)){t.forEach(t=>tX(t));return}for(let e of Object.keys(t)){if(G.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!tb.has(e)||null==t[e]){G.debug("sanitize deleting key: ",e),delete t[e];continue}if("object"==typeof t[e]){G.debug("sanitizing object",e),tX(t[e]);continue}for(let i of["themeCSS","fontFamily","altFontFamily"])e.includes(i)&&(G.debug("sanitizing css option",e),t[e]=tZ(t[e]))}if(t.themeVariables)for(let e of Object.keys(t.themeVariables)){let i=t.themeVariables[e];(null==i?void 0:i.match)&&!i.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}G.debug("After sanitization",t)}},tZ=t=>{let e=0,i=0;for(let r of t){if(e<i)return"{ /* ERROR: Unbalanced CSS */ }";"{"===r?e++:"}"===r&&i++}return e!==i?"{ /* ERROR: Unbalanced CSS */ }":t},tJ=t=>{if("number"==typeof t)return[t,t+"px"];let e=parseInt(t,10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function tQ(t,e){return(0,C.A)({},t,e)}let tK={assignWithDepth:tM,wrapLabel:tW,calculateTextHeight:tH,calculateTextWidth:tY,calculateTextDimensions:tV,cleanAndMerge:tQ,detectInit:function(t,e){let i=tq(t,/(?:init\b)|(?:initialize\b)/),r={};if(Array.isArray(i)){let t=i.map(t=>t.args);tX(t),r=tM(r,[...t])}else r=i.args;if(!r)return;let n=tS(t,e);return["config"].forEach(t=>{void 0!==r[t]&&("flowchart-v2"===n&&(n="flowchart"),r[n]=r[t],delete r[t])}),r},detectDirective:tq,isSubstringInArray:function(t,e){for(let[i,r]of e.entries())if(r.match(t))return i;return -1},interpolateToCurve:tN,calcLabelPosition:function(t){return 1===t.length?t[0]:function(t){let e,i;let r=0;t.forEach(t=>{r+=tD(t,e),e=t});let n=r/2;return e=void 0,t.forEach(t=>{if(e&&!i){let r=tD(t,e);if(r<n)n-=r;else{let o=n/r;o<=0&&(i=e),o>=1&&(i={x:t.x,y:t.y}),o>0&&o<1&&(i={x:(1-o)*e.x+o*t.x,y:(1-o)*e.y+o*t.y})}}e=t}),i}(t)},calcCardinalityPosition:(t,e,i)=>{let r,n;G.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());let o=25;r=void 0,e.forEach(t=>{if(r&&!n){let e=tD(t,r);if(e<o)o-=e;else{let i=o/e;i<=0&&(n=r),i>=1&&(n={x:t.x,y:t.y}),i>0&&i<1&&(n={x:(1-i)*r.x+i*t.x,y:(1-i)*r.y+i*t.y})}}r=t});let a=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),l={x:0,y:0};return l.x=Math.sin(s)*a+(e[0].x+n.x)/2,l.y=-Math.cos(s)*a+(e[0].y+n.y)/2,l},calcTerminalLabelPosition:function(t,e,i){let r,n,o=JSON.parse(JSON.stringify(i));G.info("our points",o),"start_left"!==e&&"start_right"!==e&&(o=o.reverse()),o.forEach(t=>{r=t});let a=25+t;r=void 0,o.forEach(t=>{if(r&&!n){let e=tD(t,r);if(e<a)a-=e;else{let i=a/e;i<=0&&(n=r),i>=1&&(n={x:t.x,y:t.y}),i>0&&i<1&&(n={x:(1-i)*r.x+i*t.x,y:(1-i)*r.y+i*t.y})}}r=t});let s=10+.5*t,l=Math.atan2(o[0].y-n.y,o[0].x-n.x),h={x:0,y:0};return h.x=Math.sin(l)*s+(o[0].x+n.x)/2,h.y=-Math.cos(l)*s+(o[0].y+n.y)/2,"start_left"===e&&(h.x=Math.sin(l+Math.PI)*s+(o[0].x+n.x)/2,h.y=-Math.cos(l+Math.PI)*s+(o[0].y+n.y)/2),"end_right"===e&&(h.x=Math.sin(l-Math.PI)*s+(o[0].x+n.x)/2-5,h.y=-Math.cos(l-Math.PI)*s+(o[0].y+n.y)/2-5),"end_left"===e&&(h.x=Math.sin(l)*s+(o[0].x+n.x)/2-5,h.y=-Math.cos(l)*s+(o[0].y+n.y)/2-5),h},formatUrl:function(t,e){let i=t.trim();if(i)return"loose"!==e.securityLevel?(0,s.Jf)(i):i},getStylesFromArray:t$,generateId:tj,random:tP,runFunc:(t,...e)=>{let i=t.split("."),r=i.length-1,n=i[r],o=window;for(let t=0;t<r;t++)if(!(o=o[i[t]]))return;o[n](...e)},entityDecode:function(t){return r=r||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),r.innerHTML=t,unescape(r.textContent)},initIdGenerator:tG,sanitizeDirective:tX,sanitizeCss:tZ,insertTitle:(t,e,i,r)=>{if(!r)return;let n=t.node().getBBox();t.append("text").text(r).attr("x",n.x+n.width/2).attr("y",-i).attr("class",e)},parseFontSize:tJ},t0="10.4.0",t1=Object.freeze(tC),t2=tM({},t1),t5=[],t3=tM({},t1),t6=(t,e)=>{let i=tM({},t),r={};for(let t of e)ee(t),r=tM(r,t);if(i=tM(i,r),r.theme&&r.theme in tg){let t=tM({},n),e=tM(t.themeVariables||{},r.themeVariables);i.theme&&i.theme in tg&&(i.themeVariables=tg[i.theme].getThemeVariables(e))}return es(t3=i),t3},t4=t=>(t2=tM({},t1),t2=tM(t2,t),t.theme&&tg[t.theme]&&(t2.themeVariables=tg[t.theme].getThemeVariables(t.themeVariables)),t6(t2,t5),t2),t8=t=>{n=tM({},t)},t7=()=>tM({},t2),t9=t=>(es(t),tM(t3,t),et()),et=()=>tM({},t3),ee=t=>{t&&(["secure",...t2.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(G.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{"string"==typeof t[e]&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],"object"==typeof t[e]&&ee(t[e])}))},ei=t=>{tX(t),!t.fontFamily||t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily}),t5.push(t),t6(t2,t5)},er=(t=t2)=>{t6(t,t5=[])},en={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},eo={},ea=t=>{eo[t]||(G.warn(en[t]),eo[t]=!0)},es=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&ea("LAZY_LOAD_DEPRECATED")},el={id:"c4",detector:t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),loader:async()=>{let{diagram:t}=await i.e(7720).then(i.bind(i,7720));return{id:"c4",diagram:t}}},eh="flowchart",ec=async()=>{let{diagram:t}=await Promise.all([i.e(51822),i.e(11336),i.e(24053),i.e(97027),i.e(60972),i.e(1678)]).then(i.bind(i,1678));return{id:eh,diagram:t}},eu={id:eh,detector:(t,e)=>{var i,r;return(null==(i=null==e?void 0:e.flowchart)?void 0:i.defaultRenderer)!=="dagre-wrapper"&&(null==(r=null==e?void 0:e.flowchart)?void 0:r.defaultRenderer)!=="elk"&&/^\s*graph/.test(t)},loader:ec},ed="flowchart-v2",ef=async()=>{let{diagram:t}=await Promise.all([i.e(51822),i.e(11336),i.e(24053),i.e(97027),i.e(60972),i.e(93901)]).then(i.bind(i,93901));return{id:ed,diagram:t}},ep={id:ed,detector:(t,e)=>{var i,r,n;return(null==(i=null==e?void 0:e.flowchart)?void 0:i.defaultRenderer)!=="dagre-d3"&&(null==(r=null==e?void 0:e.flowchart)?void 0:r.defaultRenderer)!=="elk"&&(!!/^\s*graph/.test(t)&&(null==(n=null==e?void 0:e.flowchart)?void 0:n.defaultRenderer)==="dagre-wrapper"||/^\s*flowchart/.test(t))},loader:ef},eg={id:"er",detector:t=>/^\s*erDiagram/.test(t),loader:async()=>{let{diagram:t}=await Promise.all([i.e(51822),i.e(76654)]).then(i.bind(i,76654));return{id:"er",diagram:t}}},em="gitGraph",ey=async()=>{let{diagram:t}=await i.e(49711).then(i.bind(i,49711));return{id:em,diagram:t}},e_={id:em,detector:t=>/^\s*gitGraph/.test(t),loader:ey},eb="gantt",eC=async()=>{let{diagram:t}=await i.e(81379).then(i.bind(i,81379));return{id:eb,diagram:t}},ex={id:eb,detector:t=>/^\s*gantt/.test(t),loader:eC},ev="info",ek=async()=>{let{diagram:t}=await i.e(42062).then(i.bind(i,42062));return{id:ev,diagram:t}},eT={id:ev,detector:t=>/^\s*info/.test(t),loader:ek},eA={id:"pie",detector:t=>/^\s*pie/.test(t),loader:async()=>{let{diagram:t}=await i.e(39391).then(i.bind(i,39391));return{id:"pie",diagram:t}}},eS="quadrantChart",ew=async()=>{let{diagram:t}=await i.e(25631).then(i.bind(i,25631));return{id:eS,diagram:t}},eB={id:eS,detector:t=>/^\s*quadrantChart/.test(t),loader:ew},eF="requirement",eL=async()=>{let{diagram:t}=await Promise.all([i.e(51822),i.e(55263)]).then(i.bind(i,55263));return{id:eF,diagram:t}},eM={id:eF,detector:t=>/^\s*requirement(Diagram)?/.test(t),loader:eL},eE="sequence",eO=async()=>{let{diagram:t}=await i.e(51508).then(i.bind(i,51508));return{id:eE,diagram:t}},eI={id:eE,detector:t=>/^\s*sequenceDiagram/.test(t),loader:eO},eq="class",eN=async()=>{let{diagram:t}=await Promise.all([i.e(51822),i.e(73445),i.e(99595)]).then(i.bind(i,99595));return{id:eq,diagram:t}},eD={id:eq,detector:(t,e)=>{var i;return(null==(i=null==e?void 0:e.class)?void 0:i.defaultRenderer)!=="dagre-wrapper"&&/^\s*classDiagram/.test(t)},loader:eN},e$="classDiagram",ez=async()=>{let{diagram:t}=await Promise.all([i.e(51822),i.e(11336),i.e(24053),i.e(97027),i.e(73445),i.e(91291)]).then(i.bind(i,91291));return{id:e$,diagram:t}},ej={id:e$,detector:(t,e)=>{var i;return!!/^\s*classDiagram/.test(t)&&(null==(i=null==e?void 0:e.class)?void 0:i.defaultRenderer)==="dagre-wrapper"||/^\s*classDiagram-v2/.test(t)},loader:ez},eP="state",eR=async()=>{let{diagram:t}=await Promise.all([i.e(51822),i.e(1475),i.e(58072)]).then(i.bind(i,58072));return{id:eP,diagram:t}},eW={id:eP,detector:(t,e)=>{var i;return(null==(i=null==e?void 0:e.state)?void 0:i.defaultRenderer)!=="dagre-wrapper"&&/^\s*stateDiagram/.test(t)},loader:eR},eU="stateDiagram",eH=async()=>{let{diagram:t}=await Promise.all([i.e(51822),i.e(11336),i.e(24053),i.e(97027),i.e(1475),i.e(50084)]).then(i.bind(i,50084));return{id:eU,diagram:t}},eY={id:eU,detector:(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&(null==(i=null==e?void 0:e.state)?void 0:i.defaultRenderer)==="dagre-wrapper")},loader:eH},eV="journey",eG=async()=>{let{diagram:t}=await i.e(71152).then(i.bind(i,71152));return{id:eV,diagram:t}},eX={id:eV,detector:t=>/^\s*journey/.test(t),loader:eG},eZ=t=>{var e;let{securityLevel:i}=et(),r=(0,l.Ltv)("body");if("sandbox"===i){let i=(null==(e=(0,l.Ltv)(`#i${t}`).node())?void 0:e.contentDocument)??document;r=(0,l.Ltv)(i.body)}return r.select(`#${t}`)},eJ=function(t,e){for(let i of e)t.attr(i[0],i[1])},eQ=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},eK=function(t,e,i,r){eJ(t,eQ(e,i,r))},e0=function(t,e,i,r){let n=e.node().getBBox(),o=n.width,a=n.height;G.info(`SVG bounds: ${o}x${a}`,n);let s=0,l=0;G.info(`Graph bounds: ${s}x${l}`,t),s=o+2*i,l=a+2*i,G.info(`Calculated bounds: ${s}x${l}`),eK(e,l,s,r);let h=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",h)},e1={draw:(t,e,i)=>{G.debug("renering svg for syntax error\n");let r=eZ(e);r.attr("viewBox","0 0 2412 512"),eK(r,100,512,!0);let n=r.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 ${i}`)}},e2={db:{},renderer:e1,parser:{parser:{yy:{}},parse:()=>{}}},e5="flowchart-elk",e3=async()=>{let{diagram:t}=await Promise.all([i.e(11336),i.e(24053),i.e(60972),i.e(88882)]).then(i.bind(i,88882));return{id:e5,diagram:t}},e6={id:e5,detector:(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&(null==(i=null==e?void 0:e.flowchart)?void 0:i.defaultRenderer)==="elk")},loader:e3},e4="timeline",e8=async()=>{let{diagram:t}=await i.e(49312).then(i.bind(i,49312));return{id:e4,diagram:t}},e7={id:e4,detector:t=>/^\s*timeline/.test(t),loader:e8},e9="mindmap",it=async()=>{let{diagram:t}=await Promise.all([i.e(11336),i.e(47773)]).then(i.bind(i,47773));return{id:e9,diagram:t}},ie={id:e9,detector:t=>/^\s*mindmap/.test(t),loader:it},ii="sankey",ir=async()=>{let{diagram:t}=await i.e(68353).then(i.bind(i,68353));return{id:ii,diagram:t}},io={id:ii,detector:t=>/^\s*sankey-beta/.test(t),loader:ir},ia={},is=(t,e)=>{void 0!==e&&(ia[t]=e)},il=(t,e,i)=>{let r="";return t in ia&&ia[t]?r=ia[t](i):G.warn(`No theme found for ${t}`),` & {
|
|
font-family: ${i.fontFamily};
|
|
font-size: ${i.fontSize};
|
|
fill: ${i.textColor}
|
|
}
|
|
|
|
/* Classes common for multiple diagrams */
|
|
|
|
& .error-icon {
|
|
fill: ${i.errorBkgColor};
|
|
}
|
|
& .error-text {
|
|
fill: ${i.errorTextColor};
|
|
stroke: ${i.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: ${i.lineColor};
|
|
stroke: ${i.lineColor};
|
|
}
|
|
& .marker.cross {
|
|
stroke: ${i.lineColor};
|
|
}
|
|
|
|
& svg {
|
|
font-family: ${i.fontFamily};
|
|
font-size: ${i.fontSize};
|
|
}
|
|
|
|
${r}
|
|
|
|
${e}
|
|
`},ih="",ic="",iu="",id=t=>tt(t,et()),ip=function(){ih="",iu="",ic=""},ig=function(t){ih=id(t).replace(/^\s+/g,"")},im=function(){return ih||ic},iy=function(t){iu=id(t).replace(/\n\s+/g,"\n")},i_=function(){return iu},ib=function(t){ic=id(t)},iC=function(){return ic},ix=Object.freeze(Object.defineProperty({__proto__:null,clear:ip,default:{getAccTitle:im,setAccTitle:ig,getDiagramTitle:iC,setDiagramTitle:ib,getAccDescription:i_,setAccDescription:iy,clear:ip},getAccDescription:i_,getAccTitle:im,getDiagramTitle:iC,setAccDescription:iy,setAccTitle:ig,setDiagramTitle:ib},Symbol.toStringTag,{value:"Module"})),iv={},ik=function(t,e,i,r){G.debug("parseDirective is being called",e,i,r);try{if(void 0!==e)switch(e=e.trim(),i){case"open_directive":iv={};break;case"type_directive":if(!iv)throw Error("currentDirective is undefined");iv.type=e.toLowerCase();break;case"arg_directive":if(!iv)throw Error("currentDirective is undefined");iv.args=JSON.parse(e);break;case"close_directive":iT(t,iv,r),iv=void 0}}catch(t){G.error(`Error while rendering sequenceDiagram directive: ${e} jison context: ${i}`),G.error(t.message)}},iT=function(t,e,i){switch(G.info(`Directive type=${e.type} with args:`,e.args),e.type){case"init":case"initialize":["config"].forEach(t=>{void 0!==e.args[t]&&("flowchart-v2"===i&&(i="flowchart"),e.args[i]=e.args[t],delete e.args[t])}),ei(e.args);break;case"wrap":case"nowrap":t&&t.setWrap&&t.setWrap("wrap"===e.type);break;case"themeCss":G.warn("themeCss encountered");break;default:G.warn(`Unhandled directive: source: '%%{${e.type}: ${JSON.stringify(e.args?e.args:{})}}%%`,e)}},iA=et,iS=t=>tt(t,iA()),iw=e0,iB=()=>ix,iF=(t,e,i,r)=>ik(t,e,i,r),iL={},iM=(t,e,i)=>{if(iL[t])throw Error(`Diagram ${t} already registered.`);iL[t]=e,i&&tB(t,i),is(t,e.styles),e.injectUtils&&e.injectUtils(G,X,iA,iS,iw,iB(),iF)},iE=t=>{if(t in iL)return iL[t];throw new iO(t)};class iO extends Error{constructor(t){super(`Diagram ${t} not found.`)}}let iI=!1,iq=()=>{iI||(iI=!0,iM("error",e2,t=>"error"===t.toLowerCase().trim()),iM("---",{db:{clear:()=>{}},styles:{},renderer:{},parser:{parser:{yy:{}},parse:()=>{throw 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("---")),tw(el,ej,eD,eg,ex,eT,eA,eM,eI,e6,ep,eu,ie,e7,e_,eY,eW,eX,eB,io))};var iN={isObject:function(t){return"object"==typeof t&&null!==t},repeat:function(t,e){var i,r="";for(i=0;i<e;i+=1)r+=t;return r},isNegativeZero:function(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t}};function iD(t,e){var i="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(i+='in "'+t.mark.name+'" '),i+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(i+="\n\n"+t.mark.snippet),r+" "+i):r}function i$(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=iD(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}function iz(t,e,i,r,n){var o="",a="",s=Math.floor(n/2)-1;return r-e>s&&(e=r-s+(o=" ... ").length),i-r>s&&(i=r+s-(a=" ...").length),{str:o+t.slice(e,i).replace(/\t/g,"\u2192")+a,pos:r-e+o.length}}function ij(t,e){return iN.repeat(" ",e-t.length)+t}i$.prototype=Object.create(Error.prototype),i$.prototype.constructor=i$,i$.prototype.toString=function(t){return this.name+": "+iD(this,t)};var iP=function(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],n=[],o=-1;a=i.exec(t.buffer);)n.push(a.index),r.push(a.index+a[0].length),t.position<=a.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var a,s,l,h="",c=Math.min(t.line+e.linesAfter,n.length).toString().length,u=e.maxLength-(e.indent+c+3);for(s=1;s<=e.linesBefore&&!(o-s<0);s++)l=iz(t.buffer,r[o-s],n[o-s],t.position-(r[o]-r[o-s]),u),h=iN.repeat(" ",e.indent)+ij((t.line-s+1).toString(),c)+" | "+l.str+"\n"+h;for(l=iz(t.buffer,r[o],n[o],t.position,u),h+=iN.repeat(" ",e.indent)+ij((t.line+1).toString(),c)+" | "+l.str+"\n"+iN.repeat("-",e.indent+c+3+l.pos)+"^\n",s=1;s<=e.linesAfter&&!(o+s>=n.length);s++)l=iz(t.buffer,r[o+s],n[o+s],t.position-(r[o]-r[o+s]),u),h+=iN.repeat(" ",e.indent)+ij((t.line+s+1).toString(),c)+" | "+l.str+"\n";return h.replace(/\n$/,"")},iR=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],iW=["scalar","sequence","mapping"],iU=function(t,e){var i,r;if(Object.keys(e=e||{}).forEach(function(e){if(-1===iR.indexOf(e))throw new i$('Unknown option "'+e+'" 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(t){return t},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=(i=e.styleAliases||null,r={},null!==i&&Object.keys(i).forEach(function(t){i[t].forEach(function(e){r[String(e)]=t})}),r),-1===iW.indexOf(this.kind))throw new i$('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')};function iH(t,e){var i=[];return t[e].forEach(function(t){var e=i.length;i.forEach(function(i,r){i.tag===t.tag&&i.kind===t.kind&&i.multi===t.multi&&(e=r)}),i[e]=t}),i}function iY(t){return this.extend(t)}iY.prototype.extend=function(t){var e=[],i=[];if(t instanceof iU)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new i$("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.forEach(function(t){if(!(t instanceof iU))throw new i$("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new i$("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new i$("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(t){if(!(t instanceof iU))throw new i$("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(iY.prototype);return r.implicit=(this.implicit||[]).concat(e),r.explicit=(this.explicit||[]).concat(i),r.compiledImplicit=iH(r,"implicit"),r.compiledExplicit=iH(r,"explicit"),r.compiledTypeMap=function(){var t,e,i={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(t){t.multi?(i.multi[t.kind].push(t),i.multi.fallback.push(t)):i[t.kind][t.tag]=i.fallback[t.tag]=t}for(t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(r);return i}(r.compiledImplicit,r.compiledExplicit),r};var iV=new iY({explicit:[new iU("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return null!==t?t:""}}),new iU("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return null!==t?t:[]}}),new iU("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}})]}),iG=new iU("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)},construct:function(){return null},predicate:function(t){return null===t},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),iX=new iU("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)},construct:function(t){return"true"===t||"True"===t||"TRUE"===t},predicate:function(t){return"[object Boolean]"===Object.prototype.toString.call(t)},represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"}),iZ=new iU("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,i,r,n,o=t.length,a=0,s=!1;if(!o)return!1;if(("-"===(n=t[a])||"+"===n)&&(n=t[++a]),"0"===n){if(a+1===o)return!0;if("b"===(n=t[++a])){for(a++;a<o;a++)if("_"!==(n=t[a])){if("0"!==n&&"1"!==n)return!1;s=!0}return s&&"_"!==n}if("x"===n){for(a++;a<o;a++)if("_"!==(n=t[a])){if(!(48<=(e=t.charCodeAt(a))&&e<=57||65<=e&&e<=70||97<=e&&e<=102))return!1;s=!0}return s&&"_"!==n}if("o"===n){for(a++;a<o;a++)if("_"!==(n=t[a])){if(!(48<=(i=t.charCodeAt(a))&&i<=55))return!1;s=!0}return s&&"_"!==n}}if("_"===n)return!1;for(;a<o;a++)if("_"!==(n=t[a])){if(!(48<=(r=t.charCodeAt(a))&&r<=57))return!1;s=!0}return!!s&&"_"!==n},construct:function(t){var e,i=t,r=1;if(-1!==i.indexOf("_")&&(i=i.replace(/_/g,"")),("-"===(e=i[0])||"+"===e)&&("-"===e&&(r=-1),e=(i=i.slice(1))[0]),"0"===i)return 0;if("0"===e){if("b"===i[1])return r*parseInt(i.slice(2),2);if("x"===i[1])return r*parseInt(i.slice(2),16);if("o"===i[1])return r*parseInt(i.slice(2),8)}return r*parseInt(i,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!iN.isNegativeZero(t)},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"]}}),iJ=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),iQ=/^[-+]?[0-9]+e/,iK=new iU("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(t){return!!(null!==t&&iJ.test(t)&&"_"!==t[t.length-1])},construct:function(t){var e,i;return(i="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e)?1===i?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:i*parseFloat(e,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||iN.isNegativeZero(t))},represent:function(t,e){var i;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(iN.isNegativeZero(t))return"-0.0";return i=t.toString(10),iQ.test(i)?i.replace("e",".e"):i},defaultStyle:"lowercase"}),i0=iV.extend({implicit:[iG,iX,iZ,iK]}),i1=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),i2=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]))?))?$"),i5=new iU("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(t){return null!==t&&(null!==i1.exec(t)||null!==i2.exec(t))},construct:function(t){var e,i,r,n,o,a,s,l,h=0,c=null;if(null===(e=i1.exec(t))&&(e=i2.exec(t)),null===e)throw Error("Date resolve error");if(i=+e[1],r=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(i,r,n));if(o=+e[4],a=+e[5],s=+e[6],e[7]){for(h=e[7].slice(0,3);h.length<3;)h+="0";h=+h}return e[9]&&(c=(60*+e[10]+ +(e[11]||0))*6e4,"-"===e[9]&&(c=-c)),l=new Date(Date.UTC(i,r,n,o,a,s,h)),c&&l.setTime(l.getTime()-c),l},instanceOf:Date,represent:function(t){return t.toISOString()}}),i3=new iU("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(t){return"<<"===t||null===t}}),i6="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",i4=new iU("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,i,r=0,n=t.length;for(i=0;i<n;i++)if(!((e=i6.indexOf(t.charAt(i)))>64)){if(e<0)return!1;r+=6}return r%8==0},construct:function(t){var e,i,r=t.replace(/[\r\n=]/g,""),n=r.length,o=0,a=[];for(e=0;e<n;e++)e%4==0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|i6.indexOf(r.charAt(e));return 0==(i=n%4*6)?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===i?(a.push(o>>10&255),a.push(o>>2&255)):12===i&&a.push(o>>4&255),new Uint8Array(a)},predicate:function(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)},represent:function(t){var e,i,r="",n=0,o=t.length;for(e=0;e<o;e++)e%3==0&&e&&(r+=i6[n>>18&63]+i6[n>>12&63]+i6[n>>6&63]+i6[63&n]),n=(n<<8)+t[e];return 0==(i=o%3)?r+=i6[n>>18&63]+i6[n>>12&63]+i6[n>>6&63]+i6[63&n]:2===i?r+=i6[n>>10&63]+i6[n>>4&63]+i6[n<<2&63]+i6[64]:1===i&&(r+=i6[n>>2&63]+i6[n<<4&63]+i6[64]+i6[64]),r}}),i8=Object.prototype.hasOwnProperty,i7=Object.prototype.toString,i9=new iU("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,i,r,n,o,a=[];for(e=0,i=t.length;e<i;e+=1){if(r=t[e],o=!1,"[object Object]"!==i7.call(r))return!1;for(n in r)if(i8.call(r,n)){if(o)return!1;o=!0}if(!o||-1!==a.indexOf(n))return!1;a.push(n)}return!0},construct:function(t){return null!==t?t:[]}}),rt=Object.prototype.toString,re=new iU("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(t){var e,i,r,n,o;if(null===t)return!0;for(e=0,o=Array(t.length),i=t.length;e<i;e+=1){if(r=t[e],"[object Object]"!==rt.call(r)||1!==(n=Object.keys(r)).length)return!1;o[e]=[n[0],r[n[0]]]}return!0},construct:function(t){var e,i,r,n,o;if(null===t)return[];for(e=0,o=Array(t.length),i=t.length;e<i;e+=1)n=Object.keys(r=t[e]),o[e]=[n[0],r[n[0]]];return o}}),ri=Object.prototype.hasOwnProperty,rr=new iU("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(t){var e;if(null===t)return!0;for(e in t)if(ri.call(t,e)&&null!==t[e])return!1;return!0},construct:function(t){return null!==t?t:{}}}),rn=i0.extend({implicit:[i5,i3],explicit:[i4,i9,re,rr]}),ro=Object.prototype.hasOwnProperty,ra=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,rs=/[\x85\u2028\u2029]/,rl=/[,\[\]\{\}]/,rh=/^(?:!|!!|![a-z\-]+!)$/i,rc=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ru(t){return Object.prototype.toString.call(t)}function rd(t){return 10===t||13===t}function rf(t){return 9===t||32===t}function rp(t){return 9===t||32===t||10===t||13===t}function rg(t){return 44===t||91===t||93===t||123===t||125===t}function rm(t){return 48===t?"\0":97===t?"\x07":98===t?"\b":116===t?" ":9===t?" ":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"\x1b":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"\x85":95===t?"\xa0":76===t?"\u2028":80===t?"\u2029":""}for(var ry=Array(256),r_=Array(256),rb=0;rb<256;rb++)ry[rb]=rm(rb)?1:0,r_[rb]=rm(rb);function rC(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||rn,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 rx(t,e){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=iP(i),new i$(e,i)}function rv(t,e){throw rx(t,e)}function rk(t,e){t.onWarning&&t.onWarning.call(null,rx(t,e))}var rT={YAML:function(t,e,i){var r,n,o;null!==t.version&&rv(t,"duplication of %YAML directive"),1!==i.length&&rv(t,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(i[0]))&&rv(t,"ill-formed argument of the YAML directive"),n=parseInt(r[1],10),o=parseInt(r[2],10),1!==n&&rv(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=o<2,1!==o&&2!==o&&rk(t,"unsupported YAML version of the document")},TAG:function(t,e,i){var r,n;2!==i.length&&rv(t,"TAG directive accepts exactly two arguments"),r=i[0],n=i[1],rh.test(r)||rv(t,"ill-formed tag handle (first argument) of the TAG directive"),ro.call(t.tagMap,r)&&rv(t,'there is a previously declared suffix for "'+r+'" tag handle'),rc.test(n)||rv(t,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch(e){rv(t,"tag prefix is malformed: "+n)}t.tagMap[r]=n}};function rA(t,e,i,r){var n,o,a,s;if(e<i){if(s=t.input.slice(e,i),r)for(n=0,o=s.length;n<o;n+=1)9===(a=s.charCodeAt(n))||32<=a&&a<=1114111||rv(t,"expected valid JSON character");else ra.test(s)&&rv(t,"the stream contains non-printable characters");t.result+=s}}function rS(t,e,i,r){var n,o,a,s;for(iN.isObject(i)||rv(t,"cannot merge mappings; the provided source object is unacceptable"),a=0,s=(n=Object.keys(i)).length;a<s;a+=1)o=n[a],ro.call(e,o)||(e[o]=i[o],r[o]=!0)}function rw(t,e,i,r,n,o,a,s,l){var h,c;if(Array.isArray(n))for(h=0,c=(n=Array.prototype.slice.call(n)).length;h<c;h+=1)Array.isArray(n[h])&&rv(t,"nested arrays are not supported inside keys"),"object"==typeof n&&"[object Object]"===ru(n[h])&&(n[h]="[object Object]");if("object"==typeof n&&"[object Object]"===ru(n)&&(n="[object Object]"),n=String(n),null===e&&(e={}),"tag:yaml.org,2002:merge"===r){if(Array.isArray(o))for(h=0,c=o.length;h<c;h+=1)rS(t,e,o[h],i);else rS(t,e,o,i)}else!t.json&&!ro.call(i,n)&&ro.call(e,n)&&(t.line=a||t.line,t.lineStart=s||t.lineStart,t.position=l||t.position,rv(t,"duplicated mapping key")),"__proto__"===n?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:o}):e[n]=o,delete i[n];return e}function rB(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):rv(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function rF(t,e,i){for(var r=0,n=t.input.charCodeAt(t.position);0!==n;){for(;rf(n);)9===n&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&35===n)do n=t.input.charCodeAt(++t.position);while(10!==n&&13!==n&&0!==n)if(rd(n))for(rB(t),n=t.input.charCodeAt(t.position),r++,t.lineIndent=0;32===n;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return -1!==i&&0!==r&&t.lineIndent<i&&rk(t,"deficient indentation"),r}function rL(t){var e,i=t.position;return!!((45===(e=t.input.charCodeAt(i))||46===e)&&e===t.input.charCodeAt(i+1)&&e===t.input.charCodeAt(i+2)&&(i+=3,0===(e=t.input.charCodeAt(i))||rp(e)))}function rM(t,e){1===e?t.result+=" ":e>1&&(t.result+=iN.repeat("\n",e-1))}function rE(t,e){var i,r,n=t.tag,o=t.anchor,a=[],s=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),r=t.input.charCodeAt(t.position);0!==r&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,rv(t,"tab characters must not be used in indentation")),45===r&&rp(t.input.charCodeAt(t.position+1)));){if(s=!0,t.position++,rF(t,!0,-1)&&t.lineIndent<=e){a.push(null),r=t.input.charCodeAt(t.position);continue}if(i=t.line,rO(t,e,3,!1,!0),a.push(t.result),rF(t,!0,-1),r=t.input.charCodeAt(t.position),(t.line===i||t.lineIndent>e)&&0!==r)rv(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return!!s&&(t.tag=n,t.anchor=o,t.kind="sequence",t.result=a,!0)}function rO(t,e,i,r,n){var o,a,s,l,h,c,u,d,f,p=1,g=!1,m=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=a=s=4===i||3===i,r&&rF(t,!0,-1)&&(g=!0,t.lineIndent>e?p=1:t.lineIndent===e?p=0:t.lineIndent<e&&(p=-1)),1===p)for(;function(t){var e,i,r,n,o=!1,a=!1;if(33!==(n=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&rv(t,"duplication of a tag property"),60===(n=t.input.charCodeAt(++t.position))?(o=!0,n=t.input.charCodeAt(++t.position)):33===n?(a=!0,i="!!",n=t.input.charCodeAt(++t.position)):i="!",e=t.position,o){do n=t.input.charCodeAt(++t.position);while(0!==n&&62!==n)t.position<t.length?(r=t.input.slice(e,t.position),n=t.input.charCodeAt(++t.position)):rv(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==n&&!rp(n);)33===n&&(a?rv(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),rh.test(i)||rv(t,"named tag handle cannot contain such characters"),a=!0,e=t.position+1)),n=t.input.charCodeAt(++t.position);r=t.input.slice(e,t.position),rl.test(r)&&rv(t,"tag suffix cannot contain flow indicator characters")}r&&!rc.test(r)&&rv(t,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(e){rv(t,"tag name is malformed: "+r)}return o?t.tag=r:ro.call(t.tagMap,i)?t.tag=t.tagMap[i]+r:"!"===i?t.tag="!"+r:"!!"===i?t.tag="tag:yaml.org,2002:"+r:rv(t,'undeclared tag handle "'+i+'"'),!0}(t)||function(t){var e,i;if(38!==(i=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&rv(t,"duplication of an anchor property"),i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!rp(i)&&!rg(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&rv(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}(t);)rF(t,!0,-1)?(g=!0,s=o,t.lineIndent>e?p=1:t.lineIndent===e?p=0:t.lineIndent<e&&(p=-1)):s=!1;if(s&&(s=g||n),(1===p||4===i)&&(d=1===i||2===i?e:e+1,f=t.position-t.lineStart,1===p?s&&(rE(t,f)||function(t,e,i){var r,n,o,a,s,l,h,c=t.tag,u=t.anchor,d={},f=Object.create(null),p=null,g=null,m=null,y=!1,_=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=d),h=t.input.charCodeAt(t.position);0!==h;){if(y||-1===t.firstTabInLine||(t.position=t.firstTabInLine,rv(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),o=t.line,(63===h||58===h)&&rp(r))63===h?(y&&(rw(t,d,f,p,g,null,a,s,l),p=g=m=null),_=!0,y=!0,n=!0):y?(y=!1,n=!0):rv(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,h=r;else{if(a=t.line,s=t.lineStart,l=t.position,!rO(t,i,2,!1,!0))break;if(t.line===o){for(h=t.input.charCodeAt(t.position);rf(h);)h=t.input.charCodeAt(++t.position);if(58===h)rp(h=t.input.charCodeAt(++t.position))||rv(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(rw(t,d,f,p,g,null,a,s,l),p=g=m=null),_=!0,y=!1,n=!1,p=t.tag,g=t.result;else{if(!_)return t.tag=c,t.anchor=u,!0;rv(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!_)return t.tag=c,t.anchor=u,!0;rv(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((t.line===o||t.lineIndent>e)&&(y&&(a=t.line,s=t.lineStart,l=t.position),rO(t,e,4,!0,n)&&(y?g=t.result:m=t.result),y||(rw(t,d,f,p,g,m,a,s,l),p=g=m=null),rF(t,!0,-1),h=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&0!==h)rv(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&rw(t,d,f,p,g,null,a,s,l),_&&(t.tag=c,t.anchor=u,t.kind="mapping",t.result=d),_}(t,f,d))||function(t,e){var i,r,n,o,a,s,l,h,c,u,d,f,p=!0,g=t.tag,m=t.anchor,y=Object.create(null);if(91===(f=t.input.charCodeAt(t.position)))a=93,h=!1,o=[];else{if(123!==f)return!1;a=125,h=!0,o={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=o),f=t.input.charCodeAt(++t.position);0!==f;){if(rF(t,!0,e),(f=t.input.charCodeAt(t.position))===a)return t.position++,t.tag=g,t.anchor=m,t.kind=h?"mapping":"sequence",t.result=o,!0;p?44===f&&rv(t,"expected the node content, but found ','"):rv(t,"missed comma between flow collection entries"),u=c=d=null,s=l=!1,63===f&&rp(t.input.charCodeAt(t.position+1))&&(s=l=!0,t.position++,rF(t,!0,e)),i=t.line,r=t.lineStart,n=t.position,rO(t,e,1,!1,!0),u=t.tag,c=t.result,rF(t,!0,e),f=t.input.charCodeAt(t.position),(l||t.line===i)&&58===f&&(s=!0,f=t.input.charCodeAt(++t.position),rF(t,!0,e),rO(t,e,1,!1,!0),d=t.result),h?rw(t,o,y,u,c,d,i,r,n):s?o.push(rw(t,null,y,u,c,d,i,r,n)):o.push(c),rF(t,!0,e),44===(f=t.input.charCodeAt(t.position))?(p=!0,f=t.input.charCodeAt(++t.position)):p=!1}rv(t,"unexpected end of the stream within a flow collection")}(t,d)?m=!0:(a&&function(t,e){var i,r,n,o,a,s=1,l=!1,h=!1,c=e,u=0,d=!1;if(124===(a=t.input.charCodeAt(t.position)))n=!1;else{if(62!==a)return!1;n=!0}for(t.kind="scalar",t.result="";0!==a;)if(43===(a=t.input.charCodeAt(++t.position))||45===a)1===s?s=43===a?3:2:rv(t,"repeat of a chomping mode identifier");else if((o=48<=(i=a)&&i<=57?i-48:-1)>=0)0===o?rv(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):h?rv(t,"repeat of an indentation width identifier"):(c=e+o-1,h=!0);else break;if(rf(a)){do a=t.input.charCodeAt(++t.position);while(rf(a))if(35===a)do a=t.input.charCodeAt(++t.position);while(!rd(a)&&0!==a)}for(;0!==a;){for(rB(t),t.lineIndent=0,a=t.input.charCodeAt(t.position);(!h||t.lineIndent<c)&&32===a;)t.lineIndent++,a=t.input.charCodeAt(++t.position);if(!h&&t.lineIndent>c&&(c=t.lineIndent),rd(a)){u++;continue}if(t.lineIndent<c){3===s?t.result+=iN.repeat("\n",l?1+u:u):1===s&&l&&(t.result+="\n");break}for(n?rf(a)?(d=!0,t.result+=iN.repeat("\n",l?1+u:u)):d?(d=!1,t.result+=iN.repeat("\n",u+1)):0===u?l&&(t.result+=" "):t.result+=iN.repeat("\n",u):t.result+=iN.repeat("\n",l?1+u:u),l=!0,h=!0,u=0,r=t.position;!rd(a)&&0!==a;)a=t.input.charCodeAt(++t.position);rA(t,r,t.position,!1)}return!0}(t,d)||function(t,e){var i,r,n;if(39!==(i=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;0!==(i=t.input.charCodeAt(t.position));)if(39===i){if(rA(t,r,t.position,!0),39!==(i=t.input.charCodeAt(++t.position)))return!0;r=t.position,t.position++,n=t.position}else rd(i)?(rA(t,r,n,!0),rM(t,rF(t,!1,e)),r=n=t.position):t.position===t.lineStart&&rL(t)?rv(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);rv(t,"unexpected end of the stream within a single quoted scalar")}(t,d)||function(t,e){var i,r,n,o,a,s,l,h;if(34!==(s=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;0!==(s=t.input.charCodeAt(t.position));){if(34===s)return rA(t,i,t.position,!0),t.position++,!0;if(92===s){if(rA(t,i,t.position,!0),rd(s=t.input.charCodeAt(++t.position)))rF(t,!1,e);else if(s<256&&ry[s])t.result+=r_[s],t.position++;else if((a=120===(l=s)?2:117===l?4:85===l?8:0)>0){for(n=a,o=0;n>0;n--)(a=function(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}(s=t.input.charCodeAt(++t.position)))>=0?o=(o<<4)+a:rv(t,"expected hexadecimal character");t.result+=(h=o)<=65535?String.fromCharCode(h):String.fromCharCode((h-65536>>10)+55296,(h-65536&1023)+56320),t.position++}else rv(t,"unknown escape sequence");i=r=t.position}else rd(s)?(rA(t,i,r,!0),rM(t,rF(t,!1,e)),i=r=t.position):t.position===t.lineStart&&rL(t)?rv(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}rv(t,"unexpected end of the stream within a double quoted scalar")}(t,d)?m=!0:function(t){var e,i,r;if(42!==(r=t.input.charCodeAt(t.position)))return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!rp(r)&&!rg(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&rv(t,"name of an alias node must contain at least one character"),i=t.input.slice(e,t.position),ro.call(t.anchorMap,i)||rv(t,'unidentified alias "'+i+'"'),t.result=t.anchorMap[i],rF(t,!0,-1),!0}(t)?(m=!0,(null!==t.tag||null!==t.anchor)&&rv(t,"alias node should not have any properties")):function(t,e,i){var r,n,o,a,s,l,h,c,u=t.kind,d=t.result;if(rp(c=t.input.charCodeAt(t.position))||rg(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c||(63===c||45===c)&&(rp(r=t.input.charCodeAt(t.position+1))||i&&rg(r)))return!1;for(t.kind="scalar",t.result="",n=o=t.position,a=!1;0!==c;){if(58===c){if(rp(r=t.input.charCodeAt(t.position+1))||i&&rg(r))break}else if(35===c){if(rp(t.input.charCodeAt(t.position-1)))break}else if(t.position===t.lineStart&&rL(t)||i&&rg(c))break;else if(rd(c)){if(s=t.line,l=t.lineStart,h=t.lineIndent,rF(t,!1,-1),t.lineIndent>=e){a=!0,c=t.input.charCodeAt(t.position);continue}t.position=o,t.line=s,t.lineStart=l,t.lineIndent=h;break}a&&(rA(t,n,o,!1),rM(t,t.line-s),n=o=t.position,a=!1),rf(c)||(o=t.position+1),c=t.input.charCodeAt(++t.position)}return rA(t,n,o,!1),!!t.result||(t.kind=u,t.result=d,!1)}(t,d,1===i)&&(m=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===p&&(m=s&&rE(t,f))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&rv(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),l=0,h=t.implicitTypes.length;l<h;l+=1)if((u=t.implicitTypes[l]).resolve(t.result)){t.result=u.construct(t.result),t.tag=u.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(ro.call(t.typeMap[t.kind||"fallback"],t.tag))u=t.typeMap[t.kind||"fallback"][t.tag];else for(l=0,u=null,h=(c=t.typeMap.multi[t.kind||"fallback"]).length;l<h;l+=1)if(t.tag.slice(0,c[l].tag.length)===c[l].tag){u=c[l];break}u||rv(t,"unknown tag !<"+t.tag+">"),null!==t.result&&u.kind!==t.kind&&rv(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+u.kind+'", not "'+t.kind+'"'),u.resolve(t.result,t.tag)?(t.result=u.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):rv(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||m}var rI=function(t,e){var i=function(t,e){t=String(t),e=e||{},0!==t.length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var i=new rC(t,e),r=t.indexOf("\0");for(-1!==r&&(i.position=r,rv(i,"null byte is not allowed in input")),i.input+="\0";32===i.input.charCodeAt(i.position);)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)!function(t){var e,i,r,n,o=t.position,a=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(n=t.input.charCodeAt(t.position))&&(rF(t,!0,-1),n=t.input.charCodeAt(t.position),!(t.lineIndent>0)&&37===n);){for(a=!0,n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!rp(n);)n=t.input.charCodeAt(++t.position);for(i=t.input.slice(e,t.position),r=[],i.length<1&&rv(t,"directive name must not be less than one character in length");0!==n;){for(;rf(n);)n=t.input.charCodeAt(++t.position);if(35===n){do n=t.input.charCodeAt(++t.position);while(0!==n&&!rd(n))break}if(rd(n))break;for(e=t.position;0!==n&&!rp(n);)n=t.input.charCodeAt(++t.position);r.push(t.input.slice(e,t.position))}0!==n&&rB(t),ro.call(rT,i)?rT[i](t,i,r):rk(t,'unknown document directive "'+i+'"')}if(rF(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,rF(t,!0,-1)):a&&rv(t,"directives end mark is expected"),rO(t,t.lineIndent-1,4,!1,!0),rF(t,!0,-1),t.checkLineBreaks&&rs.test(t.input.slice(o,t.position))&&rk(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&rL(t)){46===t.input.charCodeAt(t.position)&&(t.position+=3,rF(t,!0,-1));return}t.position<t.length-1&&rv(t,"end of the stream or a document separator is expected")}(i);return i.documents}(t,e);if(0!==i.length){if(1===i.length)return i[0];throw new i$("expected a single document in the stream, but found more")}};function rq(t,e,i){var r,n;let o=t.match(tx);if(!o)return t;let a=rI(o[1],{schema:i0});return(null==a?void 0:a.title)&&(null==(r=e.setDiagramTitle)||r.call(e,a.title.toString())),(null==a?void 0:a.displayMode)&&(null==(n=e.setDisplayMode)||n.call(e,a.displayMode.toString())),(null==a?void 0:a.config)&&(null==i||i(a.config)),t.slice(o[0].length)}let rN=t=>t.trimStart().replace(/^\s*%%(?!{)[^\n]+\n?/gm,"");class rD{constructor(t){this.text=t,this.type="graph",this.text+="\n";let e=et();try{this.type=tS(t,e)}catch(t){this.type="error",this.detectError=t}let i=iE(this.type);G.debug("Type "+this.type),this.db=i.db,this.renderer=i.renderer,this.parser=i.parser;let r=this.parser.parse.bind(this.parser);this.parser.parse=t=>r(rN(rq(t,this.db,ei))),this.parser.parser.yy=this.db,this.init=i.init,this.parse()}parse(){var t,e,i;if(this.detectError)throw this.detectError;null==(e=(t=this.db).clear)||e.call(t),null==(i=this.init)||i.call(this,et()),this.parser.parse(this.text)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}}let r$=async t=>{let e=tS(t,et());try{iE(e)}catch(n){let t=tF(e);if(!t)throw new tT(`Diagram ${e} not found.`);let{id:i,diagram:r}=await t();iM(i,r)}return new rD(t)},rz=[],rj=t=>{rz.push(t)},rP=()=>{rz.forEach(t=>{t()}),rz=[]},rR=["graph","flowchart","flowchart-v2","flowchart-elk","stateDiagram","stateDiagram-v2"],rW=["foreignobject"],rU=["dominant-baseline"],rH=function(t){let e=t;return(e=(e=e.replace(/style.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/classDef.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/#\w+;/g,function(t){let e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"\uFB02\xb0\xb0"+e+"\xb6\xdf":"\uFB02\xb0"+e+"\xb6\xdf"})},rY=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},rV=(t,e,i=[])=>`
|
|
.${t} ${e} { ${i.join(" !important; ")} !important; }`,rG=(t,e,i={})=>{var r;let n="";if(void 0!==t.themeCSS&&(n+=`
|
|
${t.themeCSS}`),void 0!==t.fontFamily&&(n+=`
|
|
:root { --mermaid-font-family: ${t.fontFamily}}`),void 0!==t.altFontFamily&&(n+=`
|
|
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!(0,Y.A)(i)&&rR.includes(e)){let e=t.htmlLabels||(null==(r=t.flowchart)?void 0:r.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(let t in i){let r=i[t];(0,Y.A)(r.styles)||e.forEach(t=>{n+=rV(r.id,t,r.styles)}),(0,Y.A)(r.textStyles)||(n+=rV(r.id,"tspan",r.textStyles))}}return n},rX=(t,e,i,r)=>{var n,o,a;let s=rG(t,e,i),l=il(e,s,t.themeVariables);return M((a=function t(e,i,r,n,o,a,s,l,h){for(var c,u=0,d=0,f=s,p=0,g=0,m=0,y=1,_=1,b=1,C=0,v="",k=o,T=a,M=n,E=v;_;)switch(m=C,C=j()){case 40:if(108!=m&&58==w(E,f-1)){-1!=(E+=S(W(C),"&","&\f")).indexOf("&\f")&&(b=-1);break}case 34:case 39:case 91:E+=W(C);break;case 9:case 10:case 13:case 32:E+=function(t){for(;D=P();)if(D<33)j();else break;return R(t)>2||R(D)>3?"":" "}(m);break;case 92:E+=function(t,e){for(var i;--e&&j()&&!(D<48)&&!(D>102)&&(!(D>57)||!(D<65))&&(!(D>70)||!(D<97)););return i=N+(e<6&&32==P()&&32==j()),B($,t,i)}(N-1,7);continue;case 47:switch(P()){case 42:case 47:L(z(c=function(t,e){for(;j();)if(t+D===57)break;else if(t+D===84&&47===P())break;return"/*"+B($,e,N-1)+"*"+A(47===t?t:j())}(j(),N),i,r,x,A(D),B(c,2,-2),0,h),h);break;default:E+="/"}break;case 123*y:l[u++]=F(E)*b;case 125*y:case 59:case 0:switch(C){case 0:case 125:_=0;case 59+d:-1==b&&(E=S(E,/\f/g,"")),g>0&&F(E)-f&&L(g>32?H(E+";",n,r,f-1,h):H(S(E," ","")+";",n,r,f-2,h),h);break;case 59:E+=";";default:if(L(M=U(E,i,r,u,d,o,l,v,k=[],T=[],f,a),a),123===C){if(0===d)t(E,i,M,M,k,a,f,l,T);else switch(99===p&&110===w(E,3)?100:p){case 100:case 108:case 109:case 115:t(e,M,M,n&&L(U(e,M,M,0,0,o,l,v,o,k=[],f,T),T),o,T,f,l,n?k:T);break;default:t(E,M,M,M,[""],T,0,l,T)}}}u=d=g=0,y=b=1,v=E="",f=s;break;case 58:f=1+F(E),g=m;default:if(y<1){if(123==C)--y;else if(125==C&&0==y++&&125==(D=N>0?w($,--N):0,I--,10===D&&(I=1,O--),D))continue}switch(E+=A(C),C*y){case 38:b=d>0?1:(E+="\f",-1);break;case 44:l[u++]=(F(E)-1)*b,b=1;break;case 64:45===P()&&(E+=W(j())),p=P(),d=f=F(v=E+=function(t){for(;!R(P());)j();return B($,t,N)}(N)),C++;break;case 45:45===m&&2==F(E)&&(y=0)}}return a}("",null,null,null,[""],(o=n=`${r}{${l}}`,O=I=1,q=F($=o),N=0,n=[]),0,[0],n),$="",a),E)},rZ=(t="",e,i)=>{let r=t;return i||e||(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=(r=rY(r)).replace(/<br>/g,"<br/>")},rJ=(t="",e)=>{var i,r;let n=(null==(r=null==(i=null==e?void 0:e.viewBox)?void 0:i.baseVal)?void 0:r.height)?e.viewBox.baseVal.height+"px":"100%",o=btoa('<body style="margin:0">'+t+"</body>");return`<iframe style="width:100%;height:${n};border:0;margin:0;" src="data:text/html;base64,${o}" sandbox="allow-top-navigation-by-user-activation allow-popups">
|
|
The "iframe" tag is not supported by your browser.
|
|
</iframe>`},rQ=(t,e,i,r,n)=>{let o=t.append("div");o.attr("id",i),r&&o.attr("style",r);let a=o.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return n&&a.attr("xmlns:xlink",n),a.append("g"),t};function rK(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}let r0=(t,e,i,r)=>{var n,o,a;null==(n=t.getElementById(e))||n.remove(),null==(o=t.getElementById(i))||o.remove(),null==(a=t.getElementById(r))||a.remove()},r1=Object.freeze({render:async function(t,e,i){var r,n,o,a,s,c,u,d;let f,p;iq(),er(),rq(e,{},ei);let g=tK.detectInit(e);g&&ei(g);let m=et();G.debug(m),e.length>((null==m?void 0:m.maxTextSize)??5e4)&&(e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa"),e=(e=e.replace(/\r\n?/g,"\n")).replace(/<(\w+)([^>]*)>/g,(t,e,i)=>"<"+e+i.replace(/="([^"]*)"/g,"='$1'")+">");let y="#"+t,_="i"+t,b="d"+t,C="#"+b,x=(0,l.Ltv)("body"),v="sandbox"===m.securityLevel,k="loose"===m.securityLevel,T=m.fontFamily;if(void 0!==i){if(i&&(i.innerHTML=""),v){let t=rK((0,l.Ltv)(i),_);(x=(0,l.Ltv)(t.nodes()[0].contentDocument.body)).node().style.margin=0}else x=(0,l.Ltv)(i);rQ(x,t,b,`font-family: ${T}`,"http://www.w3.org/1999/xlink")}else{if(r0(document,t,b,_),v){let t=rK((0,l.Ltv)("body"),_);(x=(0,l.Ltv)(t.nodes()[0].contentDocument.body)).node().style.margin=0}else x=(0,l.Ltv)("body");rQ(x,t,b)}e=rH(e);try{f=await r$(e)}catch(t){f=new rD("error"),p=t}let A=x.select(C).node(),S=f.type,w=A.firstChild,B=w.firstChild,F=rR.includes(S)?f.renderer.getClasses(e,f):{},L=rX(m,S,F,y),M=document.createElement("style");M.innerHTML=L,w.insertBefore(M,B);try{await f.renderer.draw(e,t,t0,f)}catch(i){throw e1.draw(e,t,t0),i}let E=x.select(`${C} svg`);s=S,c=E,u=null==(n=(r=f.db).getAccTitle)?void 0:n.call(r),d=null==(a=(o=f.db).getAccDescription)?void 0:a.call(o),c.attr("role","graphics-document document"),""!==s&&c.attr("aria-roledescription",s),function(t,e,i,r){if(void 0!==t.insert){if(i){let e=`chart-desc-${r}`;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(i)}if(e){let i=`chart-title-${r}`;t.attr("aria-labelledby",i),t.insert("title",":first-child").attr("id",i).text(e)}}}(c,u,d,c.attr("id")),x.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let O=x.select(C).node().innerHTML;if(G.debug("config.arrowMarkerAbsolute",m.arrowMarkerAbsolute),O=rZ(O,v,tr(m.arrowMarkerAbsolute)),v?O=rJ(O,x.select(C+" svg").node()):k||(O=h.sanitize(O,{ADD_TAGS:rW,ADD_ATTR:rU})),rP(),p)throw p;let I=v?"#"+_:C,q=(0,l.Ltv)(I).node();return q&&"remove"in q&&q.remove(),{svg:O,bindFunctions:f.db.bindFunctions}},parse:async function(t,e){iq();try{await r$(t)}catch(t){if(null==e?void 0:e.suppressErrors)return!1;throw t}return!0},parseDirective:ik,getDiagramFromText:r$,initialize:function(t={}){var e;(null==t?void 0:t.fontFamily)&&!(null==(e=t.themeVariables)?void 0:e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),t8(t),(null==t?void 0:t.theme)&&t.theme in tg?t.themeVariables=tg[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=tg.default.getThemeVariables(t.themeVariables)),X(("object"==typeof t?t4(t):t7()).logLevel),iq()},getConfig:et,setConfig:t9,getSiteConfig:t7,updateSiteConfig:t=>(t2=tM(t2,t),t6(t2,t5),t2),reset:()=>{er()},globalReset:()=>{er(t1)},defaultConfig:t1});X(et().logLevel),er(et());let r2=async()=>{G.debug("Loading registered diagrams");let t=(await Promise.allSettled(Object.entries(tA).map(async([t,{detector:e,loader:i}])=>{if(i)try{iE(t)}catch(r){try{let{diagram:t,id:r}=await i();iM(r,t,e)}catch(e){throw G.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete tA[t],e}}}))).filter(t=>"rejected"===t.status);if(t.length>0){for(let e of(G.error(`Failed to load ${t.length} external diagrams`),t))G.error(e);throw Error(`Failed to load ${t.length} external diagrams`)}},r5=(t,e,i)=>{(G.warn(t),"str"in t)?(i&&i(t.str,t.hash),e.push({...t,message:t.str,error:t})):(i&&i(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},r3=async function(t={querySelector:".mermaid"}){try{await r6(t)}catch(e){if("str"in e&&G.error(e.str),no.parseError&&no.parseError(e),!t.suppressErrors)throw G.error("Use the suppressErrors option to suppress these errors"),e}},r6=async function({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){let r,n;let a=r1.getConfig();if(G.debug(`${t?"":"No "}Callback function found`),i)r=i;else if(e)r=document.querySelectorAll(e);else throw Error("Nodes and querySelector are both undefined");G.debug(`Found ${r.length} diagrams`),(null==a?void 0:a.startOnLoad)!==void 0&&(G.debug("Start On Load: "+(null==a?void 0:a.startOnLoad)),r1.updateSiteConfig({startOnLoad:null==a?void 0:a.startOnLoad}));let s=new tK.initIdGenerator(a.deterministicIds,a.deterministicIDSeed),l=[];for(let e of Array.from(r)){if(G.info("Rendering diagram: "+e.id),e.getAttribute("data-processed"))continue;e.setAttribute("data-processed","true");let i=`mermaid-${s.next()}`;n=e.innerHTML,n=(0,o.T)(tK.entityDecode(n)).trim().replace(/<br\s*\/?>/gi,"<br/>");let r=tK.detectInit(n);r&&G.debug("Detected early reinit: ",r);try{let{svg:r,bindFunctions:o}=await nn(i,n,e);e.innerHTML=r,t&&await t(i),o&&o(e)}catch(t){r5(t,l,no.parseError)}}if(l.length>0)throw l[0]},r4=function(t){r1.initialize(t)},r8=async function(t,e,i){G.warn("mermaid.init is deprecated. Please use run instead."),t&&r4(t);let r={postRenderCallback:i,querySelector:".mermaid"};"string"==typeof e?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await r3(r)},r7=async(t,{lazyLoad:e=!0}={})=>{tw(...t),!1===e&&await r2()},r9=function(){if(no.startOnLoad){let{startOnLoad:t}=r1.getConfig();t&&no.run().catch(t=>G.error("Mermaid failed to initialize",t))}};"undefined"!=typeof document&&window.addEventListener("load",r9,!1);let nt=[],ne=!1,ni=async()=>{if(!ne){for(ne=!0;nt.length>0;){let t=nt.shift();if(t)try{await t()}catch(t){G.error("Error executing queue",t)}}ne=!1}},nr=async(t,e)=>new Promise((i,r)=>{nt.push(()=>new Promise((n,o)=>{r1.parse(t,e).then(t=>{n(t),i(t)},t=>{var e;G.error("Error parsing",t),null==(e=no.parseError)||e.call(no,t),o(t),r(t)})})),ni().catch(r)}),nn=(t,e,i)=>new Promise((r,n)=>{nt.push(()=>new Promise((o,a)=>{r1.render(t,e,i).then(t=>{o(t),r(t)},t=>{var e;G.error("Error parsing",t),null==(e=no.parseError)||e.call(no,t),a(t),n(t)})})),ni().catch(n)}),no={startOnLoad:!0,mermaidAPI:r1,parse:nr,render:nn,init:r8,run:r3,registerExternalDiagrams:r7,initialize:r4,parseError:void 0,contentLoaded:r9,setParseErrorHandler:function(t){no.parseError=t},detectType:tS}}}]); |