import{a as Zt,b as oe,f as Vc,i as Xc}from"./chunk-MGYUK2XN.js";var Ba=Vc((No,Ro)=>{(function(t,e){typeof No=="object"&&typeof Ro!="undefined"?Ro.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis!="undefined"?globalThis:t||self).dayjs=e()})(No,function(){"use strict";var t=1e3,e=6e4,r=36e5,i="millisecond",o="second",n="minute",a="hour",s="day",c="week",h="month",u="quarter",m="year",l="date",f="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|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,$={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(k){var g=["th","st","nd","rd"],x=k%100;return"["+k+(g[(x-20)%10]||g[x]||g[0])+"]"}},z=function(k,g,x){var L=String(k);return!L||L.length>=g?k:""+Array(g+1-L.length).join(x)+k},G={s:z,z:function(k){var g=-k.utcOffset(),x=Math.abs(g),L=Math.floor(x/60),S=x%60;return(g<=0?"+":"-")+z(L,2,"0")+":"+z(S,2,"0")},m:function k(g,x){if(g.date()1)return k(O[0])}else{var U=g.name;F[U]=g,S=U}return!L&&S&&(E=S),S||!L&&E},j=function(k,g){if(w(k))return k.clone();var x=typeof g=="object"?g:{};return x.date=k,x.args=arguments,new rt(x)},W=G;W.l=X,W.i=w,W.w=function(k,g){return j(k,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var rt=function(){function k(x){this.$L=X(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[P]=!0}var g=k.prototype;return g.parse=function(x){this.$d=function(L){var S=L.date,N=L.utc;if(S===null)return new Date(NaN);if(W.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var O=S.match(T);if(O){var U=O[2]-1||0,et=(O[7]||"0").substring(0,3);return N?new Date(Date.UTC(O[1],U,O[3]||1,O[4]||0,O[5]||0,O[6]||0,et)):new Date(O[1],U,O[3]||1,O[4]||0,O[5]||0,O[6]||0,et)}}return new Date(S)}(x),this.init()},g.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},g.$utils=function(){return W},g.isValid=function(){return this.$d.toString()!==f},g.isSame=function(x,L){var S=j(x);return this.startOf(L)<=S&&S<=this.endOf(L)},g.isAfter=function(x,L){return j(x)t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<.16666666666666666?t+(e-t)*6*r:r<.5?e:r<.6666666666666666?t+(e-t)*(.6666666666666666-r)*6:t),hsl2rgb:({h:t,s:e,l:r},i)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;let o=r<.5?r*(1+e):r+e-r*e,n=2*r-o;switch(i){case"r":return Ci.hue2rgb(n,o,t+.3333333333333333)*255;case"g":return Ci.hue2rgb(n,o,t)*255;case"b":return Ci.hue2rgb(n,o,t-.3333333333333333)*255}},rgb2hsl:({r:t,g:e,b:r},i)=>{t/=255,e/=255,r/=255;let o=Math.max(t,e,r),n=Math.min(t,e,r),a=(o+n)/2;if(i==="l")return a*100;if(o===n)return 0;let s=o-n,c=a>.5?s/(2-o-n):s/(o+n);if(i==="s")return c*100;switch(o){case t:return((e-r)/s+(ee>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},La=jc;var Zc={dec2hex:t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},Ma=Zc;var Kc={channel:Fa,lang:La,unit:Ma},R=Kc;var ne={};for(let t=0;t<=255;t++)ne[t]=R.unit.dec2hex(t);var ct={ALL:0,RGB:1,HSL:2};var zo=class{constructor(){this.type=ct.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=ct.ALL}is(e){return this.type===e}},Aa=zo;var qo=class{constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new Aa}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=ct.ALL,this}_ensureHSL(){let e=this.data,{h:r,s:i,l:o}=e;r===void 0&&(e.h=R.channel.rgb2hsl(e,"h")),i===void 0&&(e.s=R.channel.rgb2hsl(e,"s")),o===void 0&&(e.l=R.channel.rgb2hsl(e,"l"))}_ensureRGB(){let e=this.data,{r,g:i,b:o}=e;r===void 0&&(e.r=R.channel.hsl2rgb(e,"r")),i===void 0&&(e.g=R.channel.hsl2rgb(e,"g")),o===void 0&&(e.b=R.channel.hsl2rgb(e,"b"))}get r(){let e=this.data,r=e.r;return!this.type.is(ct.HSL)&&r!==void 0?r:(this._ensureHSL(),R.channel.hsl2rgb(e,"r"))}get g(){let e=this.data,r=e.g;return!this.type.is(ct.HSL)&&r!==void 0?r:(this._ensureHSL(),R.channel.hsl2rgb(e,"g"))}get b(){let e=this.data,r=e.b;return!this.type.is(ct.HSL)&&r!==void 0?r:(this._ensureHSL(),R.channel.hsl2rgb(e,"b"))}get h(){let e=this.data,r=e.h;return!this.type.is(ct.RGB)&&r!==void 0?r:(this._ensureRGB(),R.channel.rgb2hsl(e,"h"))}get s(){let e=this.data,r=e.s;return!this.type.is(ct.RGB)&&r!==void 0?r:(this._ensureRGB(),R.channel.rgb2hsl(e,"s"))}get l(){let e=this.data,r=e.l;return!this.type.is(ct.RGB)&&r!==void 0?r:(this._ensureRGB(),R.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(ct.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(ct.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(ct.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(ct.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(ct.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(ct.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}},Ea=qo;var Qc=new Ea({r:0,g:0,b:0,a:0},"transparent"),pe=Qc;var Da={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;let e=t.match(Da.re);if(!e)return;let r=e[1],i=parseInt(r,16),o=r.length,n=o%4===0,a=o>4,s=a?1:17,c=a?8:4,h=n?0:-1,u=a?255:15;return pe.set({r:(i>>c*(h+3)&u)*s,g:(i>>c*(h+2)&u)*s,b:(i>>c*(h+1)&u)*s,a:n?(i&u)*s/255:1},t)},stringify:t=>{let{r:e,g:r,b:i,a:o}=t;return o<1?`#${ne[Math.round(e)]}${ne[Math.round(r)]}${ne[Math.round(i)]}${ne[Math.round(o*255)]}`:`#${ne[Math.round(e)]}${ne[Math.round(r)]}${ne[Math.round(i)]}`}},Be=Da;var _i={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(_i.hueRe);if(e){let[,r,i]=e;switch(i){case"grad":return R.channel.clamp.h(parseFloat(r)*.9);case"rad":return R.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return R.channel.clamp.h(parseFloat(r)*360)}}return R.channel.clamp.h(parseFloat(t))},parse:t=>{let e=t.charCodeAt(0);if(e!==104&&e!==72)return;let r=t.match(_i.re);if(!r)return;let[,i,o,n,a,s]=r;return pe.set({h:_i._hue2deg(i),s:R.channel.clamp.s(parseFloat(o)),l:R.channel.clamp.l(parseFloat(n)),a:a?R.channel.clamp.a(s?parseFloat(a)/100:parseFloat(a)):1},t)},stringify:t=>{let{h:e,s:r,l:i,a:o}=t;return o<1?`hsla(${R.lang.round(e)}, ${R.lang.round(r)}%, ${R.lang.round(i)}%, ${o})`:`hsl(${R.lang.round(e)}, ${R.lang.round(r)}%, ${R.lang.round(i)}%)`}},Ar=_i;var bi={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=bi.colors[t];if(e)return Be.parse(e)},stringify:t=>{let e=Be.stringify(t);for(let r in bi.colors)if(bi.colors[r]===e)return r}},Po=bi;var Oa={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{let e=t.charCodeAt(0);if(e!==114&&e!==82)return;let r=t.match(Oa.re);if(!r)return;let[,i,o,n,a,s,c,h,u]=r;return pe.set({r:R.channel.clamp.r(o?parseFloat(i)*2.55:parseFloat(i)),g:R.channel.clamp.g(a?parseFloat(n)*2.55:parseFloat(n)),b:R.channel.clamp.b(c?parseFloat(s)*2.55:parseFloat(s)),a:h?R.channel.clamp.a(u?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{let{r:e,g:r,b:i,a:o}=t;return o<1?`rgba(${R.lang.round(e)}, ${R.lang.round(r)}, ${R.lang.round(i)}, ${R.lang.round(o)})`:`rgb(${R.lang.round(e)}, ${R.lang.round(r)}, ${R.lang.round(i)})`}},Er=Oa;var Jc={format:{keyword:Po,hex:Be,rgb:Er,rgba:Er,hsl:Ar,hsla:Ar},parse:t=>{if(typeof t!="string")return t;let e=Be.parse(t)||Er.parse(t)||Ar.parse(t)||Po.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(ct.HSL)||t.data.r===void 0?Ar.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Er.stringify(t):Be.stringify(t)},ut=Jc;var tu=(t,e)=>{let r=ut.parse(t);for(let i in e)r[i]=R.channel.clamp[i](e[i]);return ut.stringify(r)},Ti=tu;var eu=(t,e,r=0,i=1)=>{if(typeof t!="number")return Ti(t,{a:e});let o=pe.set({r:R.channel.clamp.r(t),g:R.channel.clamp.g(e),b:R.channel.clamp.b(r),a:R.channel.clamp.a(i)});return ut.stringify(o)},ae=eu;var ru=(t,e)=>R.lang.round(ut.parse(t)[e]),iu=ru;var ou=t=>{let{r:e,g:r,b:i}=ut.parse(t),o=.2126*R.channel.toLinear(e)+.7152*R.channel.toLinear(r)+.0722*R.channel.toLinear(i);return R.lang.round(o)},Ia=ou;var nu=t=>Ia(t)>=.5,Na=nu;var au=t=>!Na(t),Wt=au;var su=(t,e,r)=>{let i=ut.parse(t),o=i[e],n=R.channel.clamp[e](o+r);return o!==n&&(i[e]=n),ut.stringify(i)},ki=su;var lu=(t,e)=>ki(t,"l",e),A=lu;var hu=(t,e)=>ki(t,"l",-e),I=hu;var cu=(t,e)=>{let r=ut.parse(t),i={};for(let o in e)e[o]&&(i[o]=r[o]+e[o]);return Ti(t,i)},p=cu;var uu=(t,e,r=50)=>{let{r:i,g:o,b:n,a}=ut.parse(t),{r:s,g:c,b:h,a:u}=ut.parse(e),m=r/100,l=m*2-1,f=a-u,M=((l*f===-1?l:(l+f)/(1+l*f))+1)/2,$=1-M,z=i*M+s*$,G=o*M+c*$,E=n*M+h*$,F=a*m+u*(1-m);return ae(z,G,E,F)},Ra=uu;var fu=(t,e=100)=>{let r=ut.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,Ra(r,t,e)},b=fu;var{entries:Va,setPrototypeOf:za,isFrozen:mu,getPrototypeOf:du,getOwnPropertyDescriptor:pu}=Object,{freeze:Mt,seal:qt,create:Xa}=Object,{apply:Go,construct:Vo}=typeof Reflect!="undefined"&&Reflect;Mt||(Mt=function(e){return e});qt||(qt=function(e){return e});Go||(Go=function(e,r,i){return e.apply(r,i)});Vo||(Vo=function(e,r){return new e(...r)});var Si=Rt(Array.prototype.forEach),qa=Rt(Array.prototype.pop),Dr=Rt(Array.prototype.push),wi=Rt(String.prototype.toLowerCase),$o=Rt(String.prototype.toString),Pa=Rt(String.prototype.match),Or=Rt(String.prototype.replace),gu=Rt(String.prototype.indexOf),xu=Rt(String.prototype.trim),Ht=Rt(Object.prototype.hasOwnProperty),Lt=Rt(RegExp.prototype.test),Ir=yu(TypeError);function Rt(t){return function(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:wi;za&&za(t,null);let i=e.length;for(;i--;){let o=e[i];if(typeof o=="string"){let n=r(o);n!==o&&(mu(e)||(e[i]=n),o=n)}t[o]=!0}return t}function Cu(t){for(let e=0;e/gm),Su=qt(/\${[\w\W]*}/gm),vu=qt(/^data-[\-\w.\u00B7-\uFFFF]/),wu=qt(/^aria-[\-\w]+$/),ja=qt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Bu=qt(/^(?:\w+script|data):/i),Fu=qt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Za=qt(/^html$/i),Lu=qt(/^[a-z][.\w]*(-[.\w]+)+$/i),Ya=Object.freeze({__proto__:null,ARIA_ATTR:wu,ATTR_WHITESPACE:Fu,CUSTOM_ELEMENT:Lu,DATA_ATTR:vu,DOCTYPE_NAME:Za,ERB_EXPR:ku,IS_ALLOWED_URI:ja,IS_SCRIPT_OR_DATA:Bu,MUSTACHE_EXPR:Tu,TMPLIT_EXPR:Su}),Rr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Mu=function(){return typeof window=="undefined"?null:window},Au=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let i=null,o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(i=r.getAttribute(o));let n="dompurify"+(i?"#"+i:"");try{return e.createPolicy(n,{createHTML(a){return a},createScriptURL(a){return a}})}catch(a){return console.warn("TrustedTypes policy "+n+" could not be created."),null}},Ga=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ka(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mu(),e=q=>Ka(q);if(e.version="3.2.2",e.removed=[],!t||!t.document||t.document.nodeType!==Rr.document)return e.isSupported=!1,e;let{document:r}=t,i=r,o=i.currentScript,{DocumentFragment:n,HTMLTemplateElement:a,Node:s,Element:c,NodeFilter:h,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:m,DOMParser:l,trustedTypes:f}=t,T=c.prototype,M=Nr(T,"cloneNode"),$=Nr(T,"remove"),z=Nr(T,"nextSibling"),G=Nr(T,"childNodes"),E=Nr(T,"parentNode");if(typeof a=="function"){let q=r.createElement("template");q.content&&q.content.ownerDocument&&(r=q.content.ownerDocument)}let F,P="",{implementation:w,createNodeIterator:X,createDocumentFragment:j,getElementsByTagName:W}=r,{importNode:rt}=i,B=Ga();e.isSupported=typeof Va=="function"&&typeof E=="function"&&w&&w.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:k,ERB_EXPR:g,TMPLIT_EXPR:x,DATA_ATTR:L,ARIA_ATTR:S,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:O,CUSTOM_ELEMENT:U}=Ya,{IS_ALLOWED_URI:et}=Ya,Y=null,nt=K({},[...$a,...Wo,...Ho,...Uo,...Wa]),Q=null,Bt=K({},[...Ha,...Yo,...Ua,...vi]),Z=Object.seal(Xa(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}})),xt=null,yt=null,lt=!0,v=!0,H=!1,V=!0,C=!1,mt=!0,J=!1,Ct=!1,_t=!1,Dt=!1,we=!1,mi=!1,la=!0,ha=!1,qc="user-content-",Ao=!0,Fr=!1,Xe={},je=null,ca=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"]),ua=null,fa=K({},["audio","video","img","source","image","track"]),Eo=null,ma=K({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),di="http://www.w3.org/1998/Math/MathML",pi="http://www.w3.org/2000/svg",re="http://www.w3.org/1999/xhtml",Ze=re,Do=!1,Oo=null,Pc=K({},[di,pi,re],$o),gi=K({},["mi","mo","mn","ms","mtext"]),xi=K({},["annotation-xml"]),$c=K({},["title","style","font","a","script"]),Lr=null,Wc=["application/xhtml+xml","text/html"],Hc="text/html",dt=null,Ke=null,Uc=r.createElement("form"),da=function(d){return d instanceof RegExp||d instanceof Function},Io=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ke&&Ke===d)){if((!d||typeof d!="object")&&(d={}),d=Fe(d),Lr=Wc.indexOf(d.PARSER_MEDIA_TYPE)===-1?Hc:d.PARSER_MEDIA_TYPE,dt=Lr==="application/xhtml+xml"?$o:wi,Y=Ht(d,"ALLOWED_TAGS")?K({},d.ALLOWED_TAGS,dt):nt,Q=Ht(d,"ALLOWED_ATTR")?K({},d.ALLOWED_ATTR,dt):Bt,Oo=Ht(d,"ALLOWED_NAMESPACES")?K({},d.ALLOWED_NAMESPACES,$o):Pc,Eo=Ht(d,"ADD_URI_SAFE_ATTR")?K(Fe(ma),d.ADD_URI_SAFE_ATTR,dt):ma,ua=Ht(d,"ADD_DATA_URI_TAGS")?K(Fe(fa),d.ADD_DATA_URI_TAGS,dt):fa,je=Ht(d,"FORBID_CONTENTS")?K({},d.FORBID_CONTENTS,dt):ca,xt=Ht(d,"FORBID_TAGS")?K({},d.FORBID_TAGS,dt):{},yt=Ht(d,"FORBID_ATTR")?K({},d.FORBID_ATTR,dt):{},Xe=Ht(d,"USE_PROFILES")?d.USE_PROFILES:!1,lt=d.ALLOW_ARIA_ATTR!==!1,v=d.ALLOW_DATA_ATTR!==!1,H=d.ALLOW_UNKNOWN_PROTOCOLS||!1,V=d.ALLOW_SELF_CLOSE_IN_ATTR!==!1,C=d.SAFE_FOR_TEMPLATES||!1,mt=d.SAFE_FOR_XML!==!1,J=d.WHOLE_DOCUMENT||!1,Dt=d.RETURN_DOM||!1,we=d.RETURN_DOM_FRAGMENT||!1,mi=d.RETURN_TRUSTED_TYPE||!1,_t=d.FORCE_BODY||!1,la=d.SANITIZE_DOM!==!1,ha=d.SANITIZE_NAMED_PROPS||!1,Ao=d.KEEP_CONTENT!==!1,Fr=d.IN_PLACE||!1,et=d.ALLOWED_URI_REGEXP||ja,Ze=d.NAMESPACE||re,gi=d.MATHML_TEXT_INTEGRATION_POINTS||gi,xi=d.HTML_INTEGRATION_POINTS||xi,Z=d.CUSTOM_ELEMENT_HANDLING||{},d.CUSTOM_ELEMENT_HANDLING&&da(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Z.tagNameCheck=d.CUSTOM_ELEMENT_HANDLING.tagNameCheck),d.CUSTOM_ELEMENT_HANDLING&&da(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Z.attributeNameCheck=d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),d.CUSTOM_ELEMENT_HANDLING&&typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Z.allowCustomizedBuiltInElements=d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),C&&(v=!1),we&&(Dt=!0),Xe&&(Y=K({},Wa),Q=[],Xe.html===!0&&(K(Y,$a),K(Q,Ha)),Xe.svg===!0&&(K(Y,Wo),K(Q,Yo),K(Q,vi)),Xe.svgFilters===!0&&(K(Y,Ho),K(Q,Yo),K(Q,vi)),Xe.mathMl===!0&&(K(Y,Uo),K(Q,Ua),K(Q,vi))),d.ADD_TAGS&&(Y===nt&&(Y=Fe(Y)),K(Y,d.ADD_TAGS,dt)),d.ADD_ATTR&&(Q===Bt&&(Q=Fe(Q)),K(Q,d.ADD_ATTR,dt)),d.ADD_URI_SAFE_ATTR&&K(Eo,d.ADD_URI_SAFE_ATTR,dt),d.FORBID_CONTENTS&&(je===ca&&(je=Fe(je)),K(je,d.FORBID_CONTENTS,dt)),Ao&&(Y["#text"]=!0),J&&K(Y,["html","head","body"]),Y.table&&(K(Y,["tbody"]),delete xt.tbody),d.TRUSTED_TYPES_POLICY){if(typeof d.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ir('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof d.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ir('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');F=d.TRUSTED_TYPES_POLICY,P=F.createHTML("")}else F===void 0&&(F=Au(f,o)),F!==null&&typeof P=="string"&&(P=F.createHTML(""));Mt&&Mt(d),Ke=d}},pa=K({},[...Wo,...Ho,..._u]),ga=K({},[...Uo,...bu]),Yc=function(d){let _=E(d);(!_||!_.tagName)&&(_={namespaceURI:Ze,tagName:"template"});let D=wi(d.tagName),at=wi(_.tagName);return Oo[d.namespaceURI]?d.namespaceURI===pi?_.namespaceURI===re?D==="svg":_.namespaceURI===di?D==="svg"&&(at==="annotation-xml"||gi[at]):!!pa[D]:d.namespaceURI===di?_.namespaceURI===re?D==="math":_.namespaceURI===pi?D==="math"&&xi[at]:!!ga[D]:d.namespaceURI===re?_.namespaceURI===pi&&!xi[at]||_.namespaceURI===di&&!gi[at]?!1:!ga[D]&&($c[D]||!pa[D]):!!(Lr==="application/xhtml+xml"&&Oo[d.namespaceURI]):!1},Xt=function(d){Dr(e.removed,{element:d});try{E(d).removeChild(d)}catch(_){$(d)}},yi=function(d,_){try{Dr(e.removed,{attribute:_.getAttributeNode(d),from:_})}catch(D){Dr(e.removed,{attribute:null,from:_})}if(_.removeAttribute(d),d==="is")if(Dt||we)try{Xt(_)}catch(D){}else try{_.setAttribute(d,"")}catch(D){}},xa=function(d){let _=null,D=null;if(_t)d=""+d;else{let bt=Pa(d,/^[\r\n\t ]+/);D=bt&&bt[0]}Lr==="application/xhtml+xml"&&Ze===re&&(d=''+d+"");let at=F?F.createHTML(d):d;if(Ze===re)try{_=new l().parseFromString(at,Lr)}catch(bt){}if(!_||!_.documentElement){_=w.createDocument(Ze,"template",null);try{_.documentElement.innerHTML=Do?P:at}catch(bt){}}let wt=_.body||_.documentElement;return d&&D&&wt.insertBefore(r.createTextNode(D),wt.childNodes[0]||null),Ze===re?W.call(_,J?"html":"body")[0]:J?_.documentElement:wt},ya=function(d){return X.call(d.ownerDocument||d,d,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},Ca=function(d){return d instanceof m&&(typeof d.nodeName!="string"||typeof d.textContent!="string"||typeof d.removeChild!="function"||!(d.attributes instanceof u)||typeof d.removeAttribute!="function"||typeof d.setAttribute!="function"||typeof d.namespaceURI!="string"||typeof d.insertBefore!="function"||typeof d.hasChildNodes!="function")},_a=function(d){return typeof s=="function"&&d instanceof s};function ie(q,d,_){Si(q,D=>{D.call(e,d,_,Ke)})}let ba=function(d){let _=null;if(ie(B.beforeSanitizeElements,d,null),Ca(d))return Xt(d),!0;let D=dt(d.nodeName);if(ie(B.uponSanitizeElement,d,{tagName:D,allowedTags:Y}),d.hasChildNodes()&&!_a(d.firstElementChild)&&Lt(/<[/\w]/g,d.innerHTML)&&Lt(/<[/\w]/g,d.textContent)||d.nodeType===Rr.progressingInstruction||mt&&d.nodeType===Rr.comment&&Lt(/<[/\w]/g,d.data))return Xt(d),!0;if(!Y[D]||xt[D]){if(!xt[D]&&ka(D)&&(Z.tagNameCheck instanceof RegExp&&Lt(Z.tagNameCheck,D)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(D)))return!1;if(Ao&&!je[D]){let at=E(d)||d.parentNode,wt=G(d)||d.childNodes;if(wt&&at){let bt=wt.length;for(let Ot=bt-1;Ot>=0;--Ot){let jt=M(wt[Ot],!0);jt.__removalCount=(d.__removalCount||0)+1,at.insertBefore(jt,z(d))}}}return Xt(d),!0}return d instanceof c&&!Yc(d)||(D==="noscript"||D==="noembed"||D==="noframes")&&Lt(/<\/no(script|embed|frames)/i,d.innerHTML)?(Xt(d),!0):(C&&d.nodeType===Rr.text&&(_=d.textContent,Si([k,g,x],at=>{_=Or(_,at," ")}),d.textContent!==_&&(Dr(e.removed,{element:d.cloneNode()}),d.textContent=_)),ie(B.afterSanitizeElements,d,null),!1)},Ta=function(d,_,D){if(la&&(_==="id"||_==="name")&&(D in r||D in Uc))return!1;if(!(v&&!yt[_]&&Lt(L,_))){if(!(lt&&Lt(S,_))){if(!Q[_]||yt[_]){if(!(ka(d)&&(Z.tagNameCheck instanceof RegExp&&Lt(Z.tagNameCheck,d)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(d))&&(Z.attributeNameCheck instanceof RegExp&&Lt(Z.attributeNameCheck,_)||Z.attributeNameCheck instanceof Function&&Z.attributeNameCheck(_))||_==="is"&&Z.allowCustomizedBuiltInElements&&(Z.tagNameCheck instanceof RegExp&&Lt(Z.tagNameCheck,D)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(D))))return!1}else if(!Eo[_]){if(!Lt(et,Or(D,O,""))){if(!((_==="src"||_==="xlink:href"||_==="href")&&d!=="script"&&gu(D,"data:")===0&&ua[d])){if(!(H&&!Lt(N,Or(D,O,"")))){if(D)return!1}}}}}}return!0},ka=function(d){return d!=="annotation-xml"&&Pa(d,U)},Sa=function(d){ie(B.beforeSanitizeAttributes,d,null);let{attributes:_}=d;if(!_)return;let D={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Q,forceKeepAttr:void 0},at=_.length;for(;at--;){let wt=_[at],{name:bt,namespaceURI:Ot,value:jt}=wt,Mr=dt(bt),Ft=bt==="value"?jt:xu(jt);if(D.attrName=Mr,D.attrValue=Ft,D.keepAttr=!0,D.forceKeepAttr=void 0,ie(B.uponSanitizeAttribute,d,D),Ft=D.attrValue,ha&&(Mr==="id"||Mr==="name")&&(yi(bt,d),Ft=qc+Ft),mt&&Lt(/((--!?|])>)|<\/(style|title)/i,Ft)){yi(bt,d);continue}if(D.forceKeepAttr||(yi(bt,d),!D.keepAttr))continue;if(!V&&Lt(/\/>/i,Ft)){yi(bt,d);continue}C&&Si([k,g,x],wa=>{Ft=Or(Ft,wa," ")});let va=dt(d.nodeName);if(Ta(va,Mr,Ft)){if(F&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Ot)switch(f.getAttributeType(va,Mr)){case"TrustedHTML":{Ft=F.createHTML(Ft);break}case"TrustedScriptURL":{Ft=F.createScriptURL(Ft);break}}try{Ot?d.setAttributeNS(Ot,bt,Ft):d.setAttribute(bt,Ft),Ca(d)?Xt(d):qa(e.removed)}catch(wa){}}}ie(B.afterSanitizeAttributes,d,null)},Gc=function q(d){let _=null,D=ya(d);for(ie(B.beforeSanitizeShadowDOM,d,null);_=D.nextNode();)ie(B.uponSanitizeShadowNode,_,null),!ba(_)&&(_.content instanceof n&&q(_.content),Sa(_));ie(B.afterSanitizeShadowDOM,d,null)};return e.sanitize=function(q){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=null,D=null,at=null,wt=null;if(Do=!q,Do&&(q=""),typeof q!="string"&&!_a(q))if(typeof q.toString=="function"){if(q=q.toString(),typeof q!="string")throw Ir("dirty is not a string, aborting")}else throw Ir("toString is not a function");if(!e.isSupported)return q;if(Ct||Io(d),e.removed=[],typeof q=="string"&&(Fr=!1),Fr){if(q.nodeName){let jt=dt(q.nodeName);if(!Y[jt]||xt[jt])throw Ir("root node is forbidden and cannot be sanitized in-place")}}else if(q instanceof s)_=xa(""),D=_.ownerDocument.importNode(q,!0),D.nodeType===Rr.element&&D.nodeName==="BODY"||D.nodeName==="HTML"?_=D:_.appendChild(D);else{if(!Dt&&!C&&!J&&q.indexOf("<")===-1)return F&&mi?F.createHTML(q):q;if(_=xa(q),!_)return Dt?null:mi?P:""}_&&_t&&Xt(_.firstChild);let bt=ya(Fr?q:_);for(;at=bt.nextNode();)ba(at)||(at.content instanceof n&&Gc(at.content),Sa(at));if(Fr)return q;if(Dt){if(we)for(wt=j.call(_.ownerDocument);_.firstChild;)wt.appendChild(_.firstChild);else wt=_;return(Q.shadowroot||Q.shadowrootmode)&&(wt=rt.call(i,wt,!0)),wt}let Ot=J?_.outerHTML:_.innerHTML;return J&&Y["!doctype"]&&_.ownerDocument&&_.ownerDocument.doctype&&_.ownerDocument.doctype.name&&Lt(Za,_.ownerDocument.doctype.name)&&(Ot=" `+Ot),C&&Si([k,g,x],jt=>{Ot=Or(Ot,jt," ")}),F&&mi?F.createHTML(Ot):Ot},e.setConfig=function(){let q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Io(q),Ct=!0},e.clearConfig=function(){Ke=null,Ct=!1},e.isValidAttribute=function(q,d,_){Ke||Io({});let D=dt(q),at=dt(d);return Ta(D,at,_)},e.addHook=function(q,d){typeof d=="function"&&Dr(B[q],d)},e.removeHook=function(q){return qa(B[q])},e.removeHooks=function(q){B[q]=[]},e.removeAllHooks=function(){B=Ga()},e}var Qe=Ka();var os=Xc(Ba(),1);var is=Object.defineProperty,y=(t,e)=>is(t,"name",{value:e,configurable:!0}),Eu=(t,e)=>{for(var r in e)is(t,r,{get:e[r],enumerable:!0})},se={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},it={trace:y((...t)=>{},"trace"),debug:y((...t)=>{},"debug"),info:y((...t)=>{},"info"),warn:y((...t)=>{},"warn"),error:y((...t)=>{},"error"),fatal:y((...t)=>{},"fatal")},Du=y(function(t="fatal"){let e=se.fatal;typeof t=="string"?t.toLowerCase()in se&&(e=se[t]):typeof t=="number"&&(e=t),it.trace=()=>{},it.debug=()=>{},it.info=()=>{},it.warn=()=>{},it.error=()=>{},it.fatal=()=>{},e<=se.fatal&&(it.fatal=console.error?console.error.bind(console,Pt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Pt("FATAL"))),e<=se.error&&(it.error=console.error?console.error.bind(console,Pt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Pt("ERROR"))),e<=se.warn&&(it.warn=console.warn?console.warn.bind(console,Pt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Pt("WARN"))),e<=se.info&&(it.info=console.info?console.info.bind(console,Pt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Pt("INFO"))),e<=se.debug&&(it.debug=console.debug?console.debug.bind(console,Pt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Pt("DEBUG"))),e<=se.trace&&(it.trace=console.debug?console.debug.bind(console,Pt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Pt("TRACE")))},"setLogLevel"),Pt=y(t=>`%c${(0,os.default)().format("ss.SSS")} : ${t} : `,"format"),Ou=new RegExp("^-{3}\\s*[\\n\\r](.*?)[\\n\\r]-{3}\\s*[\\n\\r]+","s"),Iu=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Nu=/\s*%%.*\n/gm,tr,Ru=(tr=class extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}},y(tr,"UnknownDiagramError"),tr),Fi={},O0=y(function(t,e){t=t.replace(Ou,"").replace(Iu,"").replace(Nu,` `);for(let[r,{detector:i}]of Object.entries(Fi))if(i(t,e))return r;throw new Ru(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),I0=y((...t)=>{for(let{id:e,detector:r,loader:i}of t)ns(e,r,i)},"registerLazyLoadedDiagrams"),ns=y((t,e,r)=>{Fi[t]&&it.warn(`Detector with key ${t} already exists. Overwriting.`),Fi[t]={detector:e,loader:r},it.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),N0=y(t=>Fi[t].loader,"getDiagramLoader"),Xo=y((t,e,{depth:r=2,clobber:i=!1}={})=>{let o={depth:r,clobber:i};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(n=>Xo(t,n,o)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(n=>{t.includes(n)||t.push(n)}),t):t===void 0||r<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(n=>{typeof e[n]=="object"&&(t[n]===void 0||typeof t[n]=="object")?(t[n]===void 0&&(t[n]=Array.isArray(e[n])?[]:{}),t[n]=Xo(t[n],e[n],{depth:r-1,clobber:i})):(i||typeof t[n]!="object"&&typeof e[n]!="object")&&(t[n]=e[n])}),t)},"assignWithDepth"),Nt=Xo,Mi="#ffffff",Ai="#f2f2f2",At=y((t,e)=>e?p(t,{s:-40,l:10}):p(t,{s:-40,l:-10}),"mkBorder"),er,zu=(er=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var r,i,o,n,a,s,c,h,u,m,l;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||p(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||p(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||At(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||At(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||At(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||At(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||b(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||b(this.tertiaryColor),this.lineColor=this.lineColor||b(this.background),this.arrowheadColor=this.arrowheadColor||b(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?I(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||this.actorBorder,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||I(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||b(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||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||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.darkMode)for(let f=0;f{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},y(er,"Theme"),er),qu=y(t=>{let e=new zu;return e.calculate(t),e},"getThemeVariables"),rr,Pu=(rr=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=A(this.primaryColor,16),this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=b(this.background),this.secondaryBorderColor=At(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=At(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.tertiaryColor),this.lineColor=b(this.background),this.textColor=b(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=A(b("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=ae(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=I("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=I(this.sectionBkgColor,10),this.taskBorderColor=ae(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=ae(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.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,r,i,o,n,a,s,c,h,u,m;this.secondBkg=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=A(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,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=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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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=p(this.primaryColor,{h:64}),this.fillType3=p(this.secondaryColor,{h:64}),this.fillType4=p(this.primaryColor,{h:-64}),this.fillType5=p(this.secondaryColor,{h:-64}),this.fillType6=p(this.primaryColor,{h:128}),this.fillType7=p(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||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330});for(let l=0;l{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},y(rr,"Theme"),rr),$u=y(t=>{let e=new Pu;return e.calculate(t),e},"getThemeVariables"),ir,Wu=(ir=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=p(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=At(this.primaryColor,this.darkMode),this.secondaryBorderColor=At(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=At(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.tertiaryColor),this.lineColor=b(this.background),this.textColor=b(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",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="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="#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=ae(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.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,r,i,o,n,a,s,c,h,u,m;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||I(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||I(this.tertiaryColor,40);for(let l=0;l{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},y(ir,"Theme"),ir),Hu=y(t=>{let e=new Wu;return e.calculate(t),e},"getThemeVariables"),or,Uu=(or=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=A("#cde498",10),this.primaryBorderColor=At(this.primaryColor,this.darkMode),this.secondaryBorderColor=At(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=At(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.primaryColor),this.lineColor=b(this.background),this.textColor=b(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",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.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,r,i,o,n,a,s,c,h,u,m;this.actorBorder=I(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.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||I(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||I(this.tertiaryColor,40);for(let l=0;l{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},y(or,"Theme"),or),Yu=y(t=>{let e=new Uu;return e.calculate(t),e},"getThemeVariables"),nr,Gu=(nr=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=A(this.contrast,55),this.background="#ffffff",this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=At(this.primaryColor,this.darkMode),this.secondaryBorderColor=At(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=At(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.tertiaryColor),this.lineColor=b(this.background),this.textColor=b(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,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.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,r,i,o,n,a,s,c,h,u,m;this.secondBkg=A(this.contrast,55),this.border2=this.contrast,this.actorBorder=A(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,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 l=0;l{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},y(nr,"Theme"),nr),Vu=y(t=>{let e=new Gu;return e.calculate(t),e},"getThemeVariables"),Je={base:{getThemeVariables:qu},dark:{getThemeVariables:$u},default:{getThemeVariables:Hu},forest:{getThemeVariables:Yu},neutral:{getThemeVariables:Vu}},ge={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},as=oe(Zt({},ge),{deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:Je.default.getThemeVariables(),sequence:oe(Zt({},ge.sequence),{messageFont:y(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:y(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:y(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")}),class:{hideEmptyMembersBox:!1},gantt:oe(Zt({},ge.gantt),{tickInterval:void 0,useWidth:void 0}),c4:oe(Zt({},ge.c4),{useWidth:void 0,personFont:y(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),external_personFont:y(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:y(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:y(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:y(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:y(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:y(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:y(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:y(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:y(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:y(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:y(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:y(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:y(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:y(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:y(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:y(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:y(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:y(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:y(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:y(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:y(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")}),pie:oe(Zt({},ge.pie),{useWidth:984}),xyChart:oe(Zt({},ge.xyChart),{useWidth:void 0}),requirement:oe(Zt({},ge.requirement),{useWidth:void 0}),packet:Zt({},ge.packet)}),ss=y((t,e="")=>Object.keys(t).reduce((r,i)=>Array.isArray(t[i])?r:typeof t[i]=="object"&&t[i]!==null?[...r,e+i,...ss(t[i],"")]:[...r,e+i],[]),"keyify"),Xu=new Set(ss(as,"")),ju=as,jo=y(t=>{if(it.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>jo(e));return}for(let e of Object.keys(t)){if(it.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Xu.has(e)||t[e]==null){it.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){it.debug("sanitizing object",e),jo(t[e]);continue}let r=["themeCSS","fontFamily","altFontFamily"];for(let i of r)e.includes(i)&&(it.debug("sanitizing css option",e),t[e]=Zu(t[e]))}if(t.themeVariables)for(let e of Object.keys(t.themeVariables)){let r=t.themeVariables[e];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}it.debug("After sanitization",t)}},"sanitizeDirective"),Zu=y(t=>{let e=0,r=0;for(let i of t){if(e{let r=Nt({},t),i={};for(let o of e)hs(o),i=Nt(i,o);if(r=Nt(r,i),i.theme&&i.theme in Je){let o=Nt({},ls),n=Nt(o.themeVariables||{},i.themeVariables);r.theme&&r.theme in Je&&(r.themeVariables=Je[r.theme].getThemeVariables(n))}return zr=r,cs(zr),zr},"updateCurrentConfig"),H0=y(t=>(It=Nt({},Ei),It=Nt(It,t),t.theme&&Je[t.theme]&&(It.themeVariables=Je[t.theme].getThemeVariables(t.themeVariables)),Di(It,sr),It),"setSiteConfig"),U0=y(t=>{ls=Nt({},t)},"saveConfigFromInitialize"),Y0=y(t=>(It=Nt(It,t),Di(It,sr),It),"updateSiteConfig"),G0=y(()=>Nt({},It),"getSiteConfig"),Ku=y(t=>(cs(t),Nt(zr,t),Qo()),"setConfig"),Qo=y(()=>Nt({},zr),"getConfig"),hs=y(t=>{var e;t&&(["secure",...(e=It.secure)!=null?e:[]].forEach(r=>{Object.hasOwn(t,r)&&(it.debug(`Denied attempt to modify a secure key ${r}`,t[r]),delete t[r])}),Object.keys(t).forEach(r=>{r.startsWith("__")&&delete t[r]}),Object.keys(t).forEach(r=>{typeof t[r]=="string"&&(t[r].includes("<")||t[r].includes(">")||t[r].includes("url(data:"))&&delete t[r],typeof t[r]=="object"&&hs(t[r])}))},"sanitize"),V0=y(t=>{var e;jo(t),t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables=oe(Zt({},t.themeVariables),{fontFamily:t.fontFamily})),sr.push(t),Di(It,sr)},"addDirective"),X0=y((t=It)=>{sr=[],Di(t,sr)},"reset"),Qu={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Qa={},Ju=y(t=>{Qa[t]||(it.warn(Qu[t]),Qa[t]=!0)},"issueWarning"),cs=y(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Ju("LAZY_LOAD_DEPRECATED")},"checkConfig"),Pr=//gi,tf=y(t=>t?ms(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),ef=(()=>{let t=!1;return()=>{t||(us(),t=!0)}})();function us(){let t="data-temp-href-target";Qe.addHook("beforeSanitizeAttributes",e=>{var r;e instanceof Element&&e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,(r=e.getAttribute("target"))!=null?r:"")}),Qe.addHook("afterSanitizeAttributes",e=>{var r;e instanceof Element&&e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",(r=e.getAttribute(t))!=null?r:""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}y(us,"setupDompurifyHooks");var fs=y(t=>(ef(),Qe.sanitize(t)),"removeScript"),Ja=y((t,e)=>{var r;if(((r=e.flowchart)==null?void 0:r.htmlLabels)!==!1){let i=e.securityLevel;i==="antiscript"||i==="strict"?t=fs(t):i!=="loose"&&(t=ms(t),t=t.replace(//g,">"),t=t.replace(/=/g,"="),t=af(t))}return t},"sanitizeMore"),qr=y((t,e)=>t&&(e.dompurifyConfig?t=Qe.sanitize(Ja(t,e),e.dompurifyConfig).toString():t=Qe.sanitize(Ja(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),rf=y((t,e)=>typeof t=="string"?qr(t,e):t.flat().map(r=>qr(r,e)),"sanitizeTextOrArray"),of=y(t=>Pr.test(t),"hasBreaks"),nf=y(t=>t.split(Pr),"splitBreaks"),af=y(t=>t.replace(/#br#/g,"
"),"placeholderToBreak"),ms=y(t=>t.replace(Pr,"#br#"),"breakToPlaceholder"),sf=y(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},"getUrl"),lf=y(t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),hf=y(function(...t){let e=t.filter(r=>!isNaN(r));return Math.max(...e)},"getMax"),cf=y(function(...t){let e=t.filter(r=>!isNaN(r));return Math.min(...e)},"getMin"),Z0=y(function(t){let e=t.split(/(,)/),r=[];for(let i=0;i0&&i+1Math.max(0,t.split(e).length-1),"countOccurrence"),uf=y((t,e)=>{let r=Zo(t,"~"),i=Zo(e,"~");return r===1&&i===1},"shouldCombineSets"),ff=y(t=>{let e=Zo(t,"~"),r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);let i=[...t],o=i.indexOf("~"),n=i.lastIndexOf("~");for(;o!==-1&&n!==-1&&o!==n;)i[o]="<",i[n]=">",o=i.indexOf("~"),n=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),ts=y(()=>window.MathMLElement!==void 0,"isMathMLSupported"),Ko=/\$\$(.*)\$\$/g,es=y(t=>{var e,r;return((r=(e=t.match(Ko))==null?void 0:e.length)!=null?r:0)>0},"hasKatex"),K0=y(async(t,e)=>{t=await mf(t,e);let r=document.createElement("div");r.innerHTML=t,r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";let i=document.querySelector("body");i==null||i.insertAdjacentElement("beforeend",r);let o={width:r.clientWidth,height:r.clientHeight};return r.remove(),o},"calculateMathMLDimensions"),mf=y(async(t,e)=>{if(!es(t))return t;if(!(ts()||e.legacyMathML||e.forceLegacyMathML))return t.replace(Ko,"MathML is unsupported in this environment.");let{default:r}=await import("./katex-R4V72ZOM.js"),i=e.forceLegacyMathML||!ts()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(Pr).map(o=>es(o)?`
${o}
`:`
${o}
`).join("").replace(Ko,(o,n)=>r.renderToString(n,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(//g,""))},"renderKatex"),Q0={getRows:tf,sanitizeText:qr,sanitizeTextOrArray:rf,hasBreaks:of,splitBreaks:nf,lineBreakRegex:Pr,removeScript:fs,getUrl:sf,evaluate:lf,getMax:hf,getMin:cf},df=y(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),pf=y(function(t,e,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${e}px;`)):(i.set("height",t),i.set("width",e)),i},"calculateSvgSizeAttrs"),gf=y(function(t,e,r,i){let o=pf(e,r,i);df(t,o)},"configureSvgSize"),xf=y(function(t,e,r,i){let o=e.node().getBBox(),n=o.width,a=o.height;it.info(`SVG bounds: ${n}x${a}`,o);let s=0,c=0;it.info(`Graph bounds: ${s}x${c}`,t),s=n+r*2,c=a+r*2,it.info(`Calculated bounds: ${s}x${c}`),gf(e,c,s,i);let h=`${o.x-r} ${o.y-r} ${o.width+2*r} ${o.height+2*r}`;e.attr("viewBox",h)},"setupGraphViewbox"),Bi={},yf=y((t,e,r)=>{let i="";return t in Bi&&Bi[t]?i=Bi[t](r):it.warn(`No theme found for ${t}`),` & { font-family: ${r.fontFamily}; font-size: ${r.fontSize}; fill: ${r.textColor} } /* Classes common for multiple diagrams */ & .error-icon { fill: ${r.errorBkgColor}; } & .error-text { fill: ${r.errorTextColor}; stroke: ${r.errorTextColor}; } & .edge-thickness-normal { stroke-width: 1px; } & .edge-thickness-thick { stroke-width: 3.5px } & .edge-pattern-solid { stroke-dasharray: 0; } & .edge-thickness-invisible { stroke-width: 0; fill: none; } & .edge-pattern-dashed{ stroke-dasharray: 3; } .edge-pattern-dotted { stroke-dasharray: 2; } & .marker { fill: ${r.lineColor}; stroke: ${r.lineColor}; } & .marker.cross { stroke: ${r.lineColor}; } & svg { font-family: ${r.fontFamily}; font-size: ${r.fontSize}; } & p { margin: 0 } ${i} ${e} `},"getStyles"),Cf=y((t,e)=>{e!==void 0&&(Bi[t]=e)},"addStylesForDiagram"),J0=yf,ds={};Eu(ds,{clear:()=>_f,getAccDescription:()=>Sf,getAccTitle:()=>Tf,getDiagramTitle:()=>wf,setAccDescription:()=>kf,setAccTitle:()=>bf,setDiagramTitle:()=>vf});var Jo="",tn="",en="",rn=y(t=>qr(t,Qo()),"sanitizeText"),_f=y(()=>{Jo="",en="",tn=""},"clear"),bf=y(t=>{Jo=rn(t).replace(/^\s+/g,"")},"setAccTitle"),Tf=y(()=>Jo,"getAccTitle"),kf=y(t=>{en=rn(t).replace(/\n\s+/g,` `)},"setAccDescription"),Sf=y(()=>en,"getAccDescription"),vf=y(t=>{tn=rn(t)},"setDiagramTitle"),wf=y(()=>tn,"getDiagramTitle"),rs=it,Bf=Du,ps=Qo,ty=Ku,ey=Ei,Ff=y(t=>qr(t,ps()),"sanitizeText"),Lf=xf,Mf=y(()=>ds,"getCommonDb"),Li={},ry=y((t,e,r)=>{var i;Li[t]&&rs.warn(`Diagram with id ${t} already registered. Overwriting.`),Li[t]=e,r&&ns(t,r),Cf(t,e.styles),(i=e.injectUtils)==null||i.call(e,rs,Bf,ps,Ff,Lf,Mf(),()=>{})},"registerDiagram"),iy=y(t=>{if(t in Li)return Li[t];throw new Af(t)},"getDiagram"),ar,Af=(ar=class extends Error{constructor(e){super(`Diagram ${e} not found.`)}},y(ar,"DiagramNotFoundError"),ar);function gs(t,e){let r;if(e===void 0)for(let i of t)i!=null&&(r=i)&&(r=i);else{let i=-1;for(let o of t)(o=e(o,++i,t))!=null&&(r=o)&&(r=o)}return r}function xs(t,e){let r;if(e===void 0)for(let i of t)i!=null&&(r>i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let o of t)(o=e(o,++i,t))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function Le(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function on(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function Me(t){let e,r,i;t.length!==2?(e=Le,r=(s,c)=>Le(t(s),c),i=(s,c)=>t(s)-c):(e=t===Le||t===on?t:Ef,r=t,i=t);function o(s,c,h=0,u=s.length){if(h>>1;r(s[m],c)<0?h=m+1:u=m}while(h>>1;r(s[m],c)<=0?h=m+1:u=m}while(hh&&i(s[m-1],c)>-i(s[m],c)?m-1:m}return{left:o,center:a,right:n}}function Ef(){return 0}function nn(t){return t===null?NaN:+t}var ys=Me(Le),Cs=ys.right,Df=ys.left,Of=Me(nn).center,an=Cs;var lr=class extends Map{constructor(e,r=Rf){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(let[i,o]of e)this.set(i,o)}get(e){return super.get(_s(this,e))}has(e){return super.has(_s(this,e))}set(e,r){return super.set(If(this,e),r)}delete(e){return super.delete(Nf(this,e))}};function _s({_intern:t,_key:e},r){let i=e(r);return t.has(i)?t.get(i):r}function If({_intern:t,_key:e},r){let i=e(r);return t.has(i)?t.get(i):(t.set(i,r),r)}function Nf({_intern:t,_key:e},r){let i=e(r);return t.has(i)&&(r=t.get(i),t.delete(i)),r}function Rf(t){return t!==null&&typeof t=="object"?t.valueOf():t}var zf=Math.sqrt(50),qf=Math.sqrt(10),Pf=Math.sqrt(2);function Oi(t,e,r){let i=(e-t)/Math.max(0,r),o=Math.floor(Math.log10(i)),n=i/Math.pow(10,o),a=n>=zf?10:n>=qf?5:n>=Pf?2:1,s,c,h;return o<0?(h=Math.pow(10,-o)/a,s=Math.round(t*h),c=Math.round(e*h),s/he&&--c,h=-h):(h=Math.pow(10,o)*a,s=Math.round(t/h),c=Math.round(e/h),s*he&&--c),c0))return[];if(t===e)return[t];let i=e=o))return[];let s=n-o+1,c=new Array(s);if(i)if(a<0)for(let h=0;h+t(e)}function Uf(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function Yf(){return!this.__axis}function ks(t,e){var r=[],i=null,o=null,n=6,a=6,s=3,c=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,h=t===zi||t===Ri?-1:1,u=t===Ri||t===sn?"x":"y",m=t===zi||t===ln?$f:Wf;function l(f){var T=i==null?e.ticks?e.ticks.apply(e,r):e.domain():i,M=o==null?e.tickFormat?e.tickFormat.apply(e,r):bs:o,$=Math.max(n,0)+s,z=e.range(),G=+z[0]+c,E=+z[z.length-1]+c,F=(e.bandwidth?Uf:Hf)(e.copy(),c),P=f.selection?f.selection():f,w=P.selectAll(".domain").data([null]),X=P.selectAll(".tick").data(T,e).order(),j=X.exit(),W=X.enter().append("g").attr("class","tick"),rt=X.select("line"),B=X.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),X=X.merge(W),rt=rt.merge(W.append("line").attr("stroke","currentColor").attr(u+"2",h*n)),B=B.merge(W.append("text").attr("fill","currentColor").attr(u,h*$).attr("dy",t===zi?"0em":t===ln?"0.71em":"0.32em")),f!==P&&(w=w.transition(f),X=X.transition(f),rt=rt.transition(f),B=B.transition(f),j=j.transition(f).attr("opacity",Ts).attr("transform",function(k){return isFinite(k=F(k))?m(k+c):this.getAttribute("transform")}),W.attr("opacity",Ts).attr("transform",function(k){var g=this.parentNode.__axis;return m((g&&isFinite(g=g(k))?g:F(k))+c)})),j.remove(),w.attr("d",t===Ri||t===sn?a?"M"+h*a+","+G+"H"+c+"V"+E+"H"+h*a:"M"+c+","+G+"V"+E:a?"M"+G+","+h*a+"V"+c+"H"+E+"V"+h*a:"M"+G+","+c+"H"+E),X.attr("opacity",1).attr("transform",function(k){return m(F(k)+c)}),rt.attr(u+"2",h*n),B.attr(u,h*$).text(M),P.filter(Yf).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===sn?"start":t===Ri?"end":"middle"),P.each(function(){this.__axis=F})}return l.scale=function(f){return arguments.length?(e=f,l):e},l.ticks=function(){return r=Array.from(arguments),l},l.tickArguments=function(f){return arguments.length?(r=f==null?[]:Array.from(f),l):r.slice()},l.tickValues=function(f){return arguments.length?(i=f==null?null:Array.from(f),l):i&&i.slice()},l.tickFormat=function(f){return arguments.length?(o=f,l):o},l.tickSize=function(f){return arguments.length?(n=a=+f,l):n},l.tickSizeInner=function(f){return arguments.length?(n=+f,l):n},l.tickSizeOuter=function(f){return arguments.length?(a=+f,l):a},l.tickPadding=function(f){return arguments.length?(s=+f,l):s},l.offset=function(f){return arguments.length?(c=+f,l):c},l}function Gf(t){return ks(zi,t)}function Vf(t){return ks(ln,t)}function Xf(){}function Ae(t){return t==null?Xf:function(){return this.querySelector(t)}}function Ss(t){typeof t!="function"&&(t=Ae(t));for(var e=this._groups,r=e.length,i=new Array(r),o=0;o=E&&(E=G+1);!(P=$[E])&&++E=0;)(a=i[o])&&(n&&a.compareDocumentPosition(n)^4&&n.parentNode.insertBefore(a,n),n=a);return this}function Ns(t){t||(t=sm);function e(m,l){return m&&l?t(m.__data__,l.__data__):!m-!l}for(var r=this._groups,i=r.length,o=new Array(i),n=0;ne?1:t>=e?0:NaN}function Rs(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function zs(){return Array.from(this)}function qs(){for(var t=this._groups,e=0,r=t.length;e=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),cn.hasOwnProperty(e)?{space:cn[e],local:t}:t}function lm(t){return function(){this.removeAttribute(t)}}function hm(t){return function(){this.removeAttributeNS(t.space,t.local)}}function cm(t,e){return function(){this.setAttribute(t,e)}}function um(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function fm(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function mm(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function Hs(t,e){var r=le(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((e==null?r.local?hm:lm:typeof e=="function"?r.local?mm:fm:r.local?um:cm)(r,e))}function Wi(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function dm(t){return function(){this.style.removeProperty(t)}}function pm(t,e,r){return function(){this.style.setProperty(t,e,r)}}function gm(t,e,r){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,r)}}function Us(t,e,r){return arguments.length>1?this.each((e==null?dm:typeof e=="function"?gm:pm)(t,e,r==null?"":r)):xe(this.node(),t)}function xe(t,e){return t.style.getPropertyValue(e)||Wi(t).getComputedStyle(t,null).getPropertyValue(e)}function xm(t){return function(){delete this[t]}}function ym(t,e){return function(){this[t]=e}}function Cm(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Ys(t,e){return arguments.length>1?this.each((e==null?xm:typeof e=="function"?Cm:ym)(t,e)):this.node()[t]}function Gs(t){return t.trim().split(/^|\s+/)}function un(t){return t.classList||new Vs(t)}function Vs(t){this._node=t,this._names=Gs(t.getAttribute("class")||"")}Vs.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Xs(t,e){for(var r=un(t),i=-1,o=e.length;++i=0&&(r=e.slice(i+1),e=e.slice(0,i)),{type:e,name:r}})}function qm(t){return function(){var e=this.__on;if(e){for(var r=0,i=-1,o=e.length,n;r>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?Ui(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?Ui(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Gm.exec(t))?new Tt(e[1],e[2],e[3],1):(e=Vm.exec(t))?new Tt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Xm.exec(t))?Ui(e[1],e[2],e[3],e[4]):(e=jm.exec(t))?Ui(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Zm.exec(t))?xl(e[1],e[2]/100,e[3]/100,1):(e=Km.exec(t))?xl(e[1],e[2]/100,e[3]/100,e[4]):ul.hasOwnProperty(t)?dl(ul[t]):t==="transparent"?new Tt(NaN,NaN,NaN,0):null}function dl(t){return new Tt(t>>16&255,t>>8&255,t&255,1)}function Ui(t,e,r,i){return i<=0&&(t=e=r=NaN),new Tt(t,e,r,i)}function dn(t){return t instanceof ye||(t=Yt(t)),t?(t=t.rgb(),new Tt(t.r,t.g,t.b,t.opacity)):new Tt}function fr(t,e,r,i){return arguments.length===1?dn(t):new Tt(t,e,r,i==null?1:i)}function Tt(t,e,r,i){this.r=+t,this.g=+e,this.b=+r,this.opacity=+i}Ee(Tt,fr,cr(ye,{brighter(t){return t=t==null?Gi:Math.pow(Gi,t),new Tt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Yr:Math.pow(Yr,t),new Tt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Tt(Oe(this.r),Oe(this.g),Oe(this.b),Vi(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:pl,formatHex:pl,formatHex8:td,formatRgb:gl,toString:gl}));function pl(){return`#${De(this.r)}${De(this.g)}${De(this.b)}`}function td(){return`#${De(this.r)}${De(this.g)}${De(this.b)}${De((isNaN(this.opacity)?1:this.opacity)*255)}`}function gl(){let t=Vi(this.opacity);return`${t===1?"rgb(":"rgba("}${Oe(this.r)}, ${Oe(this.g)}, ${Oe(this.b)}${t===1?")":`, ${t})`}`}function Vi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Oe(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function De(t){return t=Oe(t),(t<16?"0":"")+t.toString(16)}function xl(t,e,r,i){return i<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Ut(t,e,r,i)}function Cl(t){if(t instanceof Ut)return new Ut(t.h,t.s,t.l,t.opacity);if(t instanceof ye||(t=Yt(t)),!t)return new Ut;if(t instanceof Ut)return t;t=t.rgb();var e=t.r/255,r=t.g/255,i=t.b/255,o=Math.min(e,r,i),n=Math.max(e,r,i),a=NaN,s=n-o,c=(n+o)/2;return s?(e===n?a=(r-i)/s+(r0&&c<1?0:a,new Ut(a,s,c,t.opacity)}function _l(t,e,r,i){return arguments.length===1?Cl(t):new Ut(t,e,r,i==null?1:i)}function Ut(t,e,r,i){this.h=+t,this.s=+e,this.l=+r,this.opacity=+i}Ee(Ut,_l,cr(ye,{brighter(t){return t=t==null?Gi:Math.pow(Gi,t),new Ut(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Yr:Math.pow(Yr,t),new Ut(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*e,o=2*r-i;return new Tt(mn(t>=240?t-240:t+120,o,i),mn(t,o,i),mn(t<120?t+240:t-120,o,i),this.opacity)},clamp(){return new Ut(yl(this.h),Yi(this.s),Yi(this.l),Vi(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=Vi(this.opacity);return`${t===1?"hsl(":"hsla("}${yl(this.h)}, ${Yi(this.s)*100}%, ${Yi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function yl(t){return t=(t||0)%360,t<0?t+360:t}function Yi(t){return Math.max(0,Math.min(1,t||0))}function mn(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}var bl=Math.PI/180,Tl=180/Math.PI;var Xi=18,kl=.96422,Sl=1,vl=.82521,wl=4/29,mr=6/29,Bl=3*mr*mr,ed=mr*mr*mr;function Fl(t){if(t instanceof Qt)return new Qt(t.l,t.a,t.b,t.opacity);if(t instanceof ce)return Ll(t);t instanceof Tt||(t=dn(t));var e=yn(t.r),r=yn(t.g),i=yn(t.b),o=pn((.2225045*e+.7168786*r+.0606169*i)/Sl),n,a;return e===r&&r===i?n=a=o:(n=pn((.4360747*e+.3850649*r+.1430804*i)/kl),a=pn((.0139322*e+.0971045*r+.7141733*i)/vl)),new Qt(116*o-16,500*(n-o),200*(o-a),t.opacity)}function Cn(t,e,r,i){return arguments.length===1?Fl(t):new Qt(t,e,r,i==null?1:i)}function Qt(t,e,r,i){this.l=+t,this.a=+e,this.b=+r,this.opacity=+i}Ee(Qt,Cn,cr(ye,{brighter(t){return new Qt(this.l+Xi*(t==null?1:t),this.a,this.b,this.opacity)},darker(t){return new Qt(this.l-Xi*(t==null?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=kl*gn(e),t=Sl*gn(t),r=vl*gn(r),new Tt(xn(3.1338561*e-1.6168667*t-.4906146*r),xn(-.9787684*e+1.9161415*t+.033454*r),xn(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));function pn(t){return t>ed?Math.pow(t,1/3):t/Bl+wl}function gn(t){return t>mr?t*t*t:Bl*(t-wl)}function xn(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function yn(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function rd(t){if(t instanceof ce)return new ce(t.h,t.c,t.l,t.opacity);if(t instanceof Qt||(t=Fl(t)),t.a===0&&t.b===0)return new ce(NaN,0()=>t;function Ml(t,e){return function(r){return t+r*e}}function id(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(i){return Math.pow(t+i*e,r)}}function Al(t,e){var r=e-t;return r?Ml(t,r>180||r<-180?r-360*Math.round(r/360):r):dr(isNaN(t)?e:t)}function El(t){return(t=+t)==1?ue:function(e,r){return r-e?id(e,r,t):dr(isNaN(e)?r:e)}}function ue(t,e){var r=e-t;return r?Ml(t,r):dr(isNaN(t)?e:t)}function Dl(t){return function(e,r){var i=t((e=Vr(e)).h,(r=Vr(r)).h),o=ue(e.c,r.c),n=ue(e.l,r.l),a=ue(e.opacity,r.opacity);return function(s){return e.h=i(s),e.c=o(s),e.l=n(s),e.opacity=a(s),e+""}}}var od=Dl(Al),nd=Dl(ue);function _n(t,e,r,i,o){var n=t*t,a=n*t;return((1-3*t+3*n-a)*e+(4-6*n+3*a)*r+(1+3*t+3*n-3*a)*i+a*o)/6}function Ol(t){var e=t.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),o=t[i],n=t[i+1],a=i>0?t[i-1]:2*o-n,s=ir&&(n=e.slice(r,n),s[a]?s[a]+=n:s[++a]=n),(i=i[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,c.push({i:a,x:kt(i,o)})),r=bn.lastIndex;return r180?u+=360:u-h>180&&(h+=360),l.push({i:m.push(o(m)+"rotate(",null,i)-2,x:kt(h,u)})):u&&m.push(o(m)+"rotate("+u+i)}function s(h,u,m,l){h!==u?l.push({i:m.push(o(m)+"skewX(",null,i)-2,x:kt(h,u)}):u&&m.push(o(m)+"skewX("+u+i)}function c(h,u,m,l,f,T){if(h!==m||u!==l){var M=f.push(o(f)+"scale(",null,",",null,")");T.push({i:M-4,x:kt(h,m)},{i:M-2,x:kt(u,l)})}else(m!==1||l!==1)&&f.push(o(f)+"scale("+m+","+l+")")}return function(h,u){var m=[],l=[];return h=t(h),u=t(u),n(h.translateX,h.translateY,u.translateX,u.translateY,m,l),a(h.rotate,u.rotate,m,l),s(h.skewX,u.skewX,m,l),c(h.scaleX,h.scaleY,u.scaleX,u.scaleY,m,l),h=u=null,function(f){for(var T=-1,M=l.length,$;++Te&&(r=t,t=e,e=r),function(i){return Math.max(t,Math.min(e,i))}}function ud(t,e,r){var i=t[0],o=t[1],n=e[0],a=e[1];return o2?fd:ud,c=h=null,m}function m(l){return l==null||isNaN(l=+l)?n:(c||(c=s(t.map(i),e,r)))(i(a(l)))}return m.invert=function(l){return a(o((h||(h=s(e,t.map(i),kt)))(l)))},m.domain=function(l){return arguments.length?(t=Array.from(l,Mn),u()):t.slice()},m.range=function(l){return arguments.length?(e=Array.from(l),u()):e.slice()},m.rangeRound=function(l){return e=Array.from(l),r=kn,u()},m.clamp=function(l){return arguments.length?(a=l?!0:pr,u()):a!==pr},m.interpolate=function(l){return arguments.length?(r=l,u()):r},m.unknown=function(l){return arguments.length?(n=l,m):n},function(l,f){return i=l,o=f,u()}}function Zr(){return md()(pr,pr)}function Vl(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Re(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,i=t.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+t.slice(r+1)]}function Jt(t){return t=Re(Math.abs(t)),t?t[1]:NaN}function Xl(t,e){return function(r,i){for(var o=r.length,n=[],a=0,s=t[0],c=0;o>0&&s>0&&(c+s+1>i&&(s=Math.max(1,i-c)),n.push(r.substring(o-=s,o+s)),!((c+=s+1)>i));)s=t[a=(a+1)%t.length];return n.reverse().join(e)}}function jl(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var dd=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function _e(t){if(!(e=dd.exec(t)))throw new Error("invalid format: "+t);var e;return new Qi({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]})}_e.prototype=Qi.prototype;function Qi(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Qi.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Zl(t){t:for(var e=t.length,r=1,i=-1,o;r0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(o+1):t}var En;function Kl(t,e){var r=Re(t,e);if(!r)return t+"";var i=r[0],o=r[1],n=o-(En=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=i.length;return n===a?i:n>a?i+new Array(n-a+1).join("0"):n>0?i.slice(0,n)+"."+i.slice(n):"0."+new Array(1-n).join("0")+Re(t,Math.max(0,e+n-1))[0]}function Dn(t,e){var r=Re(t,e);if(!r)return t+"";var i=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}var On={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Vl,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)=>Dn(t*100,e),r:Dn,s:Kl,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function In(t){return t}var Ql=Array.prototype.map,Jl=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function th(t){var e=t.grouping===void 0||t.thousands===void 0?In:Xl(Ql.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",i=t.currency===void 0?"":t.currency[1]+"",o=t.decimal===void 0?".":t.decimal+"",n=t.numerals===void 0?In:jl(Ql.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"\u2212":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function h(m){m=_e(m);var l=m.fill,f=m.align,T=m.sign,M=m.symbol,$=m.zero,z=m.width,G=m.comma,E=m.precision,F=m.trim,P=m.type;P==="n"?(G=!0,P="g"):On[P]||(E===void 0&&(E=12),F=!0,P="g"),($||l==="0"&&f==="=")&&($=!0,l="0",f="=");var w=M==="$"?r:M==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",X=M==="$"?i:/[%p]/.test(P)?a:"",j=On[P],W=/[defgprs%]/.test(P);E=E===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function rt(B){var k=w,g=X,x,L,S;if(P==="c")g=j(B)+g,B="";else{B=+B;var N=B<0||1/B<0;if(B=isNaN(B)?c:j(Math.abs(B),E),F&&(B=Zl(B)),N&&+B==0&&T!=="+"&&(N=!1),k=(N?T==="("?T:s:T==="-"||T==="("?"":T)+k,g=(P==="s"?Jl[8+En/3]:"")+g+(N&&T==="("?")":""),W){for(x=-1,L=B.length;++xS||S>57){g=(S===46?o+B.slice(x+1):B.slice(x))+g,B=B.slice(0,x);break}}}G&&!$&&(B=e(B,1/0));var O=k.length+B.length+g.length,U=O>1)+k+B+g+U.slice(O);break;default:B=U+k+B+g;break}return n(B)}return rt.toString=function(){return m+""},rt}function u(m,l){var f=h((m=_e(m),m.type="f",m)),T=Math.max(-8,Math.min(8,Math.floor(Jt(l)/3)))*3,M=Math.pow(10,-T),$=Jl[8+T/3];return function(z){return f(M*z)+$}}return{format:h,formatPrefix:u}}var Ji,to,eo;Nn({thousands:",",grouping:[3],currency:["$",""]});function Nn(t){return Ji=th(t),to=Ji.format,eo=Ji.formatPrefix,Ji}function Rn(t){return Math.max(0,-Jt(Math.abs(t)))}function zn(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Jt(e)/3)))*3-Jt(Math.abs(t)))}function qn(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Jt(e)-Jt(t))+1}function Pn(t,e,r,i){var o=hr(t,e,r),n;switch(i=_e(i==null?",f":i),i.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return i.precision==null&&!isNaN(n=zn(o,a))&&(i.precision=n),eo(i,a)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(n=qn(o,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=n-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(n=Rn(o))&&(i.precision=n-(i.type==="%")*2);break}}return to(i)}function pd(t){var e=t.domain;return t.ticks=function(r){var i=e();return Ii(i[0],i[i.length-1],r==null?10:r)},t.tickFormat=function(r,i){var o=e();return Pn(o[0],o[o.length-1],r==null?10:r,i)},t.nice=function(r){r==null&&(r=10);var i=e(),o=0,n=i.length-1,a=i[o],s=i[n],c,h,u=10;for(s0;){if(h=$r(a,s,r),h===c)return i[o]=a,i[n]=s,e(i);if(h>0)a=Math.floor(a/h)*h,s=Math.ceil(s/h)*h;else if(h<0)a=Math.ceil(a*h)/h,s=Math.floor(s*h)/h;else break;c=h}return t},t}function $n(){var t=Zr();return t.copy=function(){return Ki(t,$n())},Ce.apply(t,arguments),pd(t)}var Wn=new Date,Hn=new Date;function ot(t,e,r,i){function o(n){return t(n=arguments.length===0?new Date:new Date(+n)),n}return o.floor=n=>(t(n=new Date(+n)),n),o.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),o.round=n=>{let a=o(n),s=o.ceil(n);return n-a(e(n=new Date(+n),a==null?1:Math.floor(a)),n),o.range=(n,a,s)=>{let c=[];if(n=o.ceil(n),s=s==null?1:Math.floor(s),!(n0))return c;let h;do c.push(h=new Date(+n)),e(n,s),t(n);while(hot(a=>{if(a>=a)for(;t(a),!n(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;e(a,-1),!n(a););else for(;--s>=0;)for(;e(a,1),!n(a););}),r&&(o.count=(n,a)=>(Wn.setTime(+n),Hn.setTime(+a),t(Wn),t(Hn),Math.floor(r(Wn,Hn))),o.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?o.filter(i?a=>i(a)%n===0:a=>o.count(0,a)%n===0):o)),o}var ze=ot(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);ze.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?ot(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):ze);var eh=ze.range;var te=ot(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*1e3)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),rh=te.range;var gr=ot(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getMinutes()),gd=gr.range,ro=ot(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),xd=ro.range;var xr=ot(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3-t.getMinutes()*6e4)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getHours()),yd=xr.range,io=ot(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours()),Cd=io.range;var fe=ot(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),_d=fe.range,Qr=ot(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),bd=Qr.range,oo=ot(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5)),Td=oo.range;function $e(t){return ot(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}var me=$e(0),yr=$e(1),oh=$e(2),nh=$e(3),be=$e(4),ah=$e(5),sh=$e(6),lh=me.range,kd=yr.range,Sd=oh.range,vd=nh.range,wd=be.range,Bd=ah.range,Fd=sh.range;function We(t){return ot(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/6048e5)}var He=We(0),Cr=We(1),hh=We(2),ch=We(3),Te=We(4),uh=We(5),fh=We(6),mh=He.range,Ld=Cr.range,Md=hh.range,Ad=ch.range,Ed=Te.range,Dd=uh.range,Od=fh.range;var _r=ot(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()),Id=_r.range,no=ot(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()),Nd=no.range;var zt=ot(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());zt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:ot(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});var Rd=zt.range,Gt=ot(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());Gt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:ot(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});var zd=Gt.range;function ph(t,e,r,i,o,n){let a=[[te,1,1e3],[te,5,5*1e3],[te,15,15*1e3],[te,30,30*1e3],[n,1,6e4],[n,5,5*6e4],[n,15,15*6e4],[n,30,30*6e4],[o,1,36e5],[o,3,3*36e5],[o,6,6*36e5],[o,12,12*36e5],[i,1,864e5],[i,2,2*864e5],[r,1,6048e5],[e,1,2592e6],[e,3,3*2592e6],[t,1,31536e6]];function s(h,u,m){let l=u$).right(a,l);if(f===a.length)return t.every(hr(h/31536e6,u/31536e6,m));if(f===0)return ze.every(Math.max(hr(h,u,m),1));let[T,M]=a[l/a[f-1][2]53)return null;"w"in C||(C.w=1),"Z"in C?(J=Vn(Jr(C.y,0,1)),Ct=J.getUTCDay(),J=Ct>4||Ct===0?Cr.ceil(J):Cr(J),J=Qr.offset(J,(C.V-1)*7),C.y=J.getUTCFullYear(),C.m=J.getUTCMonth(),C.d=J.getUTCDate()+(C.w+6)%7):(J=Gn(Jr(C.y,0,1)),Ct=J.getDay(),J=Ct>4||Ct===0?yr.ceil(J):yr(J),J=fe.offset(J,(C.V-1)*7),C.y=J.getFullYear(),C.m=J.getMonth(),C.d=J.getDate()+(C.w+6)%7)}else("W"in C||"U"in C)&&("w"in C||(C.w="u"in C?C.u%7:"W"in C?1:0),Ct="Z"in C?Vn(Jr(C.y,0,1)).getUTCDay():Gn(Jr(C.y,0,1)).getDay(),C.m=0,C.d="W"in C?(C.w+6)%7+C.W*7-(Ct+5)%7:C.w+C.U*7-(Ct+6)%7);return"Z"in C?(C.H+=C.Z/100|0,C.M+=C.Z%100,Vn(C)):Gn(C)}}function j(v,H,V,C){for(var mt=0,J=H.length,Ct=V.length,_t,Dt;mt=Ct)return-1;if(_t=H.charCodeAt(mt++),_t===37){if(_t=H.charAt(mt++),Dt=P[_t in gh?H.charAt(mt++):_t],!Dt||(C=Dt(v,V,C))<0)return-1}else if(_t!=V.charCodeAt(C++))return-1}return C}function W(v,H,V){var C=h.exec(H.slice(V));return C?(v.p=u.get(C[0].toLowerCase()),V+C[0].length):-1}function rt(v,H,V){var C=f.exec(H.slice(V));return C?(v.w=T.get(C[0].toLowerCase()),V+C[0].length):-1}function B(v,H,V){var C=m.exec(H.slice(V));return C?(v.w=l.get(C[0].toLowerCase()),V+C[0].length):-1}function k(v,H,V){var C=z.exec(H.slice(V));return C?(v.m=G.get(C[0].toLowerCase()),V+C[0].length):-1}function g(v,H,V){var C=M.exec(H.slice(V));return C?(v.m=$.get(C[0].toLowerCase()),V+C[0].length):-1}function x(v,H,V){return j(v,e,H,V)}function L(v,H,V){return j(v,r,H,V)}function S(v,H,V){return j(v,i,H,V)}function N(v){return a[v.getDay()]}function O(v){return n[v.getDay()]}function U(v){return c[v.getMonth()]}function et(v){return s[v.getMonth()]}function Y(v){return o[+(v.getHours()>=12)]}function nt(v){return 1+~~(v.getMonth()/3)}function Q(v){return a[v.getUTCDay()]}function Bt(v){return n[v.getUTCDay()]}function Z(v){return c[v.getUTCMonth()]}function xt(v){return s[v.getUTCMonth()]}function yt(v){return o[+(v.getUTCHours()>=12)]}function lt(v){return 1+~~(v.getUTCMonth()/3)}return{format:function(v){var H=w(v+="",E);return H.toString=function(){return v},H},parse:function(v){var H=X(v+="",!1);return H.toString=function(){return v},H},utcFormat:function(v){var H=w(v+="",F);return H.toString=function(){return v},H},utcParse:function(v){var H=X(v+="",!0);return H.toString=function(){return v},H}}}var gh={"-":"",_:" ",0:"0"},pt=/^\s*\d+/,Wd=/^%/,Hd=/[\\^$*+?|[\]().{}]/g;function tt(t,e,r){var i=t<0?"-":"",o=(i?-t:t)+"",n=o.length;return i+(n[e.toLowerCase(),r]))}function Yd(t,e,r){var i=pt.exec(e.slice(r,r+1));return i?(t.w=+i[0],r+i[0].length):-1}function Gd(t,e,r){var i=pt.exec(e.slice(r,r+1));return i?(t.u=+i[0],r+i[0].length):-1}function Vd(t,e,r){var i=pt.exec(e.slice(r,r+2));return i?(t.U=+i[0],r+i[0].length):-1}function Xd(t,e,r){var i=pt.exec(e.slice(r,r+2));return i?(t.V=+i[0],r+i[0].length):-1}function jd(t,e,r){var i=pt.exec(e.slice(r,r+2));return i?(t.W=+i[0],r+i[0].length):-1}function xh(t,e,r){var i=pt.exec(e.slice(r,r+4));return i?(t.y=+i[0],r+i[0].length):-1}function yh(t,e,r){var i=pt.exec(e.slice(r,r+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function Zd(t,e,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function Kd(t,e,r){var i=pt.exec(e.slice(r,r+1));return i?(t.q=i[0]*3-3,r+i[0].length):-1}function Qd(t,e,r){var i=pt.exec(e.slice(r,r+2));return i?(t.m=i[0]-1,r+i[0].length):-1}function Ch(t,e,r){var i=pt.exec(e.slice(r,r+2));return i?(t.d=+i[0],r+i[0].length):-1}function Jd(t,e,r){var i=pt.exec(e.slice(r,r+3));return i?(t.m=0,t.d=+i[0],r+i[0].length):-1}function _h(t,e,r){var i=pt.exec(e.slice(r,r+2));return i?(t.H=+i[0],r+i[0].length):-1}function tp(t,e,r){var i=pt.exec(e.slice(r,r+2));return i?(t.M=+i[0],r+i[0].length):-1}function ep(t,e,r){var i=pt.exec(e.slice(r,r+2));return i?(t.S=+i[0],r+i[0].length):-1}function rp(t,e,r){var i=pt.exec(e.slice(r,r+3));return i?(t.L=+i[0],r+i[0].length):-1}function ip(t,e,r){var i=pt.exec(e.slice(r,r+6));return i?(t.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function op(t,e,r){var i=Wd.exec(e.slice(r,r+1));return i?r+i[0].length:-1}function np(t,e,r){var i=pt.exec(e.slice(r));return i?(t.Q=+i[0],r+i[0].length):-1}function ap(t,e,r){var i=pt.exec(e.slice(r));return i?(t.s=+i[0],r+i[0].length):-1}function bh(t,e){return tt(t.getDate(),e,2)}function sp(t,e){return tt(t.getHours(),e,2)}function lp(t,e){return tt(t.getHours()%12||12,e,2)}function hp(t,e){return tt(1+fe.count(zt(t),t),e,3)}function wh(t,e){return tt(t.getMilliseconds(),e,3)}function cp(t,e){return wh(t,e)+"000"}function up(t,e){return tt(t.getMonth()+1,e,2)}function fp(t,e){return tt(t.getMinutes(),e,2)}function mp(t,e){return tt(t.getSeconds(),e,2)}function dp(t){var e=t.getDay();return e===0?7:e}function pp(t,e){return tt(me.count(zt(t)-1,t),e,2)}function Bh(t){var e=t.getDay();return e>=4||e===0?be(t):be.ceil(t)}function gp(t,e){return t=Bh(t),tt(be.count(zt(t),t)+(zt(t).getDay()===4),e,2)}function xp(t){return t.getDay()}function yp(t,e){return tt(yr.count(zt(t)-1,t),e,2)}function Cp(t,e){return tt(t.getFullYear()%100,e,2)}function _p(t,e){return t=Bh(t),tt(t.getFullYear()%100,e,2)}function bp(t,e){return tt(t.getFullYear()%1e4,e,4)}function Tp(t,e){var r=t.getDay();return t=r>=4||r===0?be(t):be.ceil(t),tt(t.getFullYear()%1e4,e,4)}function kp(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+tt(e/60|0,"0",2)+tt(e%60,"0",2)}function Th(t,e){return tt(t.getUTCDate(),e,2)}function Sp(t,e){return tt(t.getUTCHours(),e,2)}function vp(t,e){return tt(t.getUTCHours()%12||12,e,2)}function wp(t,e){return tt(1+Qr.count(Gt(t),t),e,3)}function Fh(t,e){return tt(t.getUTCMilliseconds(),e,3)}function Bp(t,e){return Fh(t,e)+"000"}function Fp(t,e){return tt(t.getUTCMonth()+1,e,2)}function Lp(t,e){return tt(t.getUTCMinutes(),e,2)}function Mp(t,e){return tt(t.getUTCSeconds(),e,2)}function Ap(t){var e=t.getUTCDay();return e===0?7:e}function Ep(t,e){return tt(He.count(Gt(t)-1,t),e,2)}function Lh(t){var e=t.getUTCDay();return e>=4||e===0?Te(t):Te.ceil(t)}function Dp(t,e){return t=Lh(t),tt(Te.count(Gt(t),t)+(Gt(t).getUTCDay()===4),e,2)}function Op(t){return t.getUTCDay()}function Ip(t,e){return tt(Cr.count(Gt(t)-1,t),e,2)}function Np(t,e){return tt(t.getUTCFullYear()%100,e,2)}function Rp(t,e){return t=Lh(t),tt(t.getUTCFullYear()%100,e,2)}function zp(t,e){return tt(t.getUTCFullYear()%1e4,e,4)}function qp(t,e){var r=t.getUTCDay();return t=r>=4||r===0?Te(t):Te.ceil(t),tt(t.getUTCFullYear()%1e4,e,4)}function Pp(){return"+0000"}function kh(){return"%"}function Sh(t){return+t}function vh(t){return Math.floor(+t/1e3)}var br,ao,Mh,Ah,Eh;jn({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function jn(t){return br=Xn(t),ao=br.format,Mh=br.parse,Ah=br.utcFormat,Eh=br.utcParse,br}function Zn(t,e){t=t.slice();var r=0,i=t.length-1,o=t[r],n=t[i],a;return n1?0:t<-1?Tr:Math.acos(t)}function Qn(t){return t>=1?ri:t<=-1?-ri:Math.asin(t)}var Jn=Math.PI,ta=2*Jn,Ye=1e-6,Up=ta-Ye;function zh(t){this._+=t[0];for(let e=1,r=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return zh;let r=10**e;return function(i){this._+=i[0];for(let o=1,n=i.length;oYe)if(!(Math.abs(m*c-h*u)>Ye)||!n)this._append`L${this._x1=e},${this._y1=r}`;else{let f=i-a,T=o-s,M=c*c+h*h,$=f*f+T*T,z=Math.sqrt(M),G=Math.sqrt(l),E=n*Math.tan((Jn-Math.acos((M+l-$)/(2*z*G)))/2),F=E/G,P=E/z;Math.abs(F-1)>Ye&&this._append`L${e+F*u},${r+F*m}`,this._append`A${n},${n},0,0,${+(m*f>u*T)},${this._x1=e+P*c},${this._y1=r+P*h}`}}arc(e,r,i,o,n,a){if(e=+e,r=+r,i=+i,a=!!a,i<0)throw new Error(`negative radius: ${i}`);let s=i*Math.cos(o),c=i*Math.sin(o),h=e+s,u=r+c,m=1^a,l=a?o-n:n-o;this._x1===null?this._append`M${h},${u}`:(Math.abs(this._x1-h)>Ye||Math.abs(this._y1-u)>Ye)&&this._append`L${h},${u}`,i&&(l<0&&(l=l%ta+ta),l>Up?this._append`A${i},${i},0,1,${m},${e-s},${r-c}A${i},${i},0,1,${m},${this._x1=h},${this._y1=u}`:l>Ye&&this._append`A${i},${i},0,${+(l>=Jn)},${m},${this._x1=e+i*Math.cos(n)},${this._y1=r+i*Math.sin(n)}`)}rect(e,r,i,o){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${i=+i}v${+o}h${-i}Z`}toString(){return this._}};function qh(){return new Ge}qh.prototype=Ge.prototype;function lo(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{let i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);e=i}return t},()=>new Ge(e)}function Gp(t){return t.innerRadius}function Vp(t){return t.outerRadius}function Xp(t){return t.startAngle}function jp(t){return t.endAngle}function Zp(t){return t&&t.padAngle}function Kp(t,e,r,i,o,n,a,s){var c=r-t,h=i-e,u=a-o,m=s-n,l=m*c-u*h;if(!(l*lx*x+L*L&&(j=rt,W=B),{cx:j,cy:W,x01:-u,y01:-m,x11:j*(o/P-1),y11:W*(o/P-1)}}function Qp(){var t=Gp,e=Vp,r=st(0),i=null,o=Xp,n=jp,a=Zp,s=null,c=lo(h);function h(){var u,m,l=+t.apply(this,arguments),f=+e.apply(this,arguments),T=o.apply(this,arguments)-ri,M=n.apply(this,arguments)-ri,$=Kn(M-T),z=M>T;if(s||(s=u=c()),fgt))s.moveTo(0,0);else if($>kr-gt)s.moveTo(f*ke(T),f*Vt(T)),s.arc(0,0,f,T,M,!z),l>gt&&(s.moveTo(l*ke(M),l*Vt(M)),s.arc(0,0,l,M,T,z));else{var G=T,E=M,F=T,P=M,w=$,X=$,j=a.apply(this,arguments)/2,W=j>gt&&(i?+i.apply(this,arguments):Ue(l*l+f*f)),rt=so(Kn(f-l)/2,+r.apply(this,arguments)),B=rt,k=rt,g,x;if(W>gt){var L=Qn(W/l*Vt(j)),S=Qn(W/f*Vt(j));(w-=L*2)>gt?(L*=z?1:-1,F+=L,P-=L):(w=0,F=P=(T+M)/2),(X-=S*2)>gt?(S*=z?1:-1,G+=S,E-=S):(X=0,G=E=(T+M)/2)}var N=f*ke(G),O=f*Vt(G),U=l*ke(P),et=l*Vt(P);if(rt>gt){var Y=f*ke(E),nt=f*Vt(E),Q=l*ke(F),Bt=l*Vt(F),Z;if($gt?k>gt?(g=ho(Q,Bt,N,O,f,k,z),x=ho(Y,nt,U,et,f,k,z),s.moveTo(g.cx+g.x01,g.cy+g.y01),kgt)||!(w>gt)?s.lineTo(U,et):B>gt?(g=ho(U,et,Y,nt,l,-B,z),x=ho(N,O,Q,Bt,l,-B,z),s.lineTo(g.cx+g.x01,g.cy+g.y01),Bt?1:e>=t?0:NaN}function Uh(t){return t}function tg(){var t=Uh,e=Hh,r=null,i=st(0),o=st(kr),n=st(0);function a(s){var c,h=(s=co(s)).length,u,m,l=0,f=new Array(h),T=new Array(h),M=+i.apply(this,arguments),$=Math.min(kr,Math.max(-kr,o.apply(this,arguments)-M)),z,G=Math.min(Math.abs($)/h,n.apply(this,arguments)),E=G*($<0?-1:1),F;for(c=0;c0&&(l+=F);for(e!=null?f.sort(function(P,w){return e(T[P],T[w])}):r!=null&&f.sort(function(P,w){return r(s[P],s[w])}),c=0,m=l?($-h*E)/l:0;c0?F*m:0)+E,T[u]={data:s[u],index:c,value:F,startAngle:M,endAngle:z,padAngle:G};return T}return a.value=function(s){return arguments.length?(t=typeof s=="function"?s:st(+s),a):t},a.sortValues=function(s){return arguments.length?(e=s,r=null,a):e},a.sort=function(s){return arguments.length?(r=s,e=null,a):r},a.startAngle=function(s){return arguments.length?(i=typeof s=="function"?s:st(+s),a):i},a.endAngle=function(s){return arguments.length?(o=typeof s=="function"?s:st(+s),a):o},a.padAngle=function(s){return arguments.length?(n=typeof s=="function"?s:st(+s),a):n},a}function Sr(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function ii(t){this._context=t}ii.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:Sr(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Sr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function eg(t){return new ii(t)}var uo=class{constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}};function rg(t){return new uo(t,!0)}function ig(t){return new uo(t,!1)}function $t(){}function Yh(t){this._context=t}Yh.prototype={areaStart:$t,areaEnd:$t,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Sr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function og(t){return new Yh(t)}function Gh(t){this._context=t}Gh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:Sr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function ng(t){return new Gh(t)}function Vh(t,e){this._basis=new ii(t),this._beta=e}Vh.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var i=t[0],o=e[0],n=t[r]-i,a=e[r]-o,s=-1,c;++s<=r;)c=s/r,this._basis.point(this._beta*t[s]+(1-this._beta)*(i+c*n),this._beta*e[s]+(1-this._beta)*(o+c*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var ag=function t(e){function r(i){return e===1?new ii(i):new Vh(i,e)}return r.beta=function(i){return t(+i)},r}(.85);function vr(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function fo(t,e){this._context=t,this._k=(1-e)/6}fo.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:vr(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:vr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var sg=function t(e){function r(i){return new fo(i,e)}return r.tension=function(i){return t(+i)},r}(0);function mo(t,e){this._context=t,this._k=(1-e)/6}mo.prototype={areaStart:$t,areaEnd:$t,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:vr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var lg=function t(e){function r(i){return new mo(i,e)}return r.tension=function(i){return t(+i)},r}(0);function po(t,e){this._context=t,this._k=(1-e)/6}po.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:vr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var hg=function t(e){function r(i){return new po(i,e)}return r.tension=function(i){return t(+i)},r}(0);function oi(t,e,r){var i=t._x1,o=t._y1,n=t._x2,a=t._y2;if(t._l01_a>gt){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,o=(o*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>gt){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);n=(n*h+t._x1*t._l23_2a-e*t._l12_2a)/u,a=(a*h+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(i,o,n,a,t._x2,t._y2)}function Xh(t,e){this._context=t,this._alpha=e}Xh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:oi(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var cg=function t(e){function r(i){return e?new Xh(i,e):new fo(i,0)}return r.alpha=function(i){return t(+i)},r}(.5);function jh(t,e){this._context=t,this._alpha=e}jh.prototype={areaStart:$t,areaEnd:$t,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:oi(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ug=function t(e){function r(i){return e?new jh(i,e):new mo(i,0)}return r.alpha=function(i){return t(+i)},r}(.5);function Zh(t,e){this._context=t,this._alpha=e}Zh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:oi(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var fg=function t(e){function r(i){return e?new Zh(i,e):new po(i,0)}return r.alpha=function(i){return t(+i)},r}(.5);function Kh(t){this._context=t}Kh.prototype={areaStart:$t,areaEnd:$t,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function mg(t){return new Kh(t)}function Qh(t){return t<0?-1:1}function Jh(t,e,r){var i=t._x1-t._x0,o=e-t._x1,n=(t._y1-t._y0)/(i||o<0&&-0),a=(r-t._y1)/(o||i<0&&-0),s=(n*o+a*i)/(i+o);return(Qh(n)+Qh(a))*Math.min(Math.abs(n),Math.abs(a),.5*Math.abs(s))||0}function tc(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function ra(t,e,r){var i=t._x0,o=t._y0,n=t._x1,a=t._y1,s=(n-i)/3;t._context.bezierCurveTo(i+s,o+s*e,n-s,a-s*r,n,a)}function go(t){this._context=t}go.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:ra(this,this._t0,tc(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,ra(this,tc(this,r=Jh(this,t,e)),r);break;default:ra(this,this._t0,r=Jh(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function ec(t){this._context=new rc(t)}(ec.prototype=Object.create(go.prototype)).point=function(t,e){go.prototype.point.call(this,e,t)};function rc(t){this._context=t}rc.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,i,o,n){this._context.bezierCurveTo(e,t,i,r,n,o)}};function dg(t){return new go(t)}function pg(t){return new ec(t)}function oc(t){this._context=t}oc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var i=ic(t),o=ic(e),n=0,a=1;a=0;--e)o[e]=(a[e]-o[e+1])/n[e];for(n[r-1]=(t[r]+o[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e}};function xg(t){return new xo(t,.5)}function yg(t){return new xo(t,0)}function Cg(t){return new xo(t,1)}var _g={value:()=>{}};function ac(){for(var t=0,e=arguments.length,r={},i;t=0&&(i=r.slice(o+1),r=r.slice(0,o)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}yo.prototype=ac.prototype={constructor:yo,on:function(t,e){var r=this._,i=bg(t+"",r),o,n=-1,a=i.length;if(arguments.length<2){for(;++n0)for(var r=new Array(o),i=0,o,n;i=0&&t._call.call(void 0,e),t=t._next;--wr}function sc(){Ve=(_o=li.now())+bo,wr=ai=0;try{cc()}finally{wr=0,vg(),Ve=0}}function Sg(){var t=li.now(),e=t-_o;e>lc&&(bo-=e,_o=t)}function vg(){for(var t,e=Co,r,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:Co=r);si=t,oa(i)}function oa(t){if(!wr){ai&&(ai=clearTimeout(ai));var e=t-Ve;e>24?(t<1/0&&(ai=setTimeout(sc,t-li.now()-bo)),ni&&(ni=clearInterval(ni))):(ni||(_o=li.now(),ni=setInterval(Sg,lc)),wr=1,hc(sc))}}function ko(t,e,r){var i=new hi;return e=e==null?0:+e,i.restart(o=>{i.stop(),t(o+e)},e,r),i}var wg=ia("start","end","cancel","interrupt"),Bg=[],mc=0,uc=1,vo=2,So=3,fc=4,wo=5,ui=6;function Se(t,e,r,i,o,n){var a=t.__transition;if(!a)t.__transition={};else if(r in a)return;Fg(t,r,{name:e,index:i,group:o,on:wg,tween:Bg,time:n.time,delay:n.delay,duration:n.duration,ease:n.ease,timer:null,state:mc})}function fi(t,e){var r=ft(t,e);if(r.state>mc)throw new Error("too late; already scheduled");return r}function vt(t,e){var r=ft(t,e);if(r.state>So)throw new Error("too late; already running");return r}function ft(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Fg(t,e,r){var i=t.__transition,o;i[e]=r,r.timer=To(n,0,r.time);function n(h){r.state=uc,r.timer.restart(a,r.delay,r.time),r.delay<=h&&a(h-r.delay)}function a(h){var u,m,l,f;if(r.state!==uc)return c();for(u in i)if(f=i[u],f.name===r.name){if(f.state===So)return ko(a);f.state===fc?(f.state=ui,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+uvo&&i.state=0&&(e=e.slice(0,r)),!e||e==="start"})}function Xg(t,e,r){var i,o,n=Vg(e)?fi:vt;return function(){var a=n(this,t),s=a.on;s!==i&&(o=(i=s).copy()).on(e,r),a.on=o}}function Sc(t,e){var r=this._id;return arguments.length<2?ft(this.node(),r).on.on(t):this.each(Xg(r,t,e))}function jg(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function vc(){return this.on("end.remove",jg(this._id))}function wc(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Ae(t));for(var i=this._groups,o=i.length,n=new Array(o),a=0;a