import{a as zc,d as qc}from"./chunk-OSRY5VT3.min.js";var ya=zc((Fo,Lo)=>{(function(t,e){typeof Fo=="object"&&typeof Lo<"u"?Lo.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(Fo,function(){"use strict";var t=1e3,e=6e4,r=36e5,i="millisecond",o="second",n="minute",a="hour",s="day",h="week",l="month",c="quarter",d="year",u="date",p="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])+"]"}},q=function(k,g,x){var L=String(k);return!L||L.length>=g?k:""+Array(g+1-L.length).join(x)+k},G={s:q,z:function(k){var g=-k.utcOffset(),x=Math.abs(g),L=Math.floor(x/60),S=x%60;return(g<=0?"+":"-")+q(L,2,"0")+":"+q(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()!==p},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,h=a>.5?s/(2-o-n):s/(o+n);if(i==="s")return h*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},_a=Pc;var $c={dec2hex:t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},ba=$c;var Wc={channel:Ca,lang:_a,unit:ba},R=Wc;var ie={};for(let t=0;t<=255;t++)ie[t]=R.unit.dec2hex(t);var ct={ALL:0,RGB:1,HSL:2};var Mo=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}},Ta=Mo;var Ao=class{constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new Ta}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}},ka=Ao;var Hc=new ka({r:0,g:0,b:0,a:0},"transparent"),me=Hc;var Sa={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;let e=t.match(Sa.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,h=a?8:4,l=n?0:-1,c=a?255:15;return me.set({r:(i>>h*(l+3)&c)*s,g:(i>>h*(l+2)&c)*s,b:(i>>h*(l+1)&c)*s,a:n?(i&c)*s/255:1},t)},stringify:t=>{let{r:e,g:r,b:i,a:o}=t;return o<1?`#${ie[Math.round(e)]}${ie[Math.round(r)]}${ie[Math.round(i)]}${ie[Math.round(o*255)]}`:`#${ie[Math.round(e)]}${ie[Math.round(r)]}${ie[Math.round(i)]}`}},ve=Sa;var ui={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(ui.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(ui.re);if(!r)return;let[,i,o,n,a,s]=r;return me.set({h:ui._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)}%)`}},Tr=ui;var fi={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=fi.colors[t];if(e)return ve.parse(e)},stringify:t=>{let e=ve.stringify(t);for(let r in fi.colors)if(fi.colors[r]===e)return r}},Eo=fi;var va={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(va.re);if(!r)return;let[,i,o,n,a,s,h,l,c]=r;return me.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(h?parseFloat(s)*2.55:parseFloat(s)),a:l?R.channel.clamp.a(c?parseFloat(l)/100:parseFloat(l)):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)})`}},kr=va;var Uc={format:{keyword:Eo,hex:ve,rgb:kr,rgba:kr,hsl:Tr,hsla:Tr},parse:t=>{if(typeof t!="string")return t;let e=ve.parse(t)||kr.parse(t)||Tr.parse(t)||Eo.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?Tr.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?kr.stringify(t):ve.stringify(t)},ut=Uc;var Yc=(t,e)=>{let r=ut.parse(t);for(let i in e)r[i]=R.channel.clamp[i](e[i]);return ut.stringify(r)},mi=Yc;var Gc=(t,e,r=0,i=1)=>{if(typeof t!="number")return mi(t,{a:e});let o=me.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)},oe=Gc;var Vc=(t,e)=>R.lang.round(ut.parse(t)[e]),Xc=Vc;var jc=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)},wa=jc;var Zc=t=>wa(t)>=.5,Ba=Zc;var Kc=t=>!Ba(t),Wt=Kc;var Qc=(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)},di=Qc;var Jc=(t,e)=>di(t,"l",e),A=Jc;var tu=(t,e)=>di(t,"l",-e),I=tu;var eu=(t,e)=>{let r=ut.parse(t),i={};for(let o in e)e[o]&&(i[o]=r[o]+e[o]);return mi(t,i)},m=eu;var ru=(t,e,r=50)=>{let{r:i,g:o,b:n,a}=ut.parse(t),{r:s,g:h,b:l,a:c}=ut.parse(e),d=r/100,u=d*2-1,p=a-c,M=((u*p===-1?u:(u+p)/(1+u*p))+1)/2,$=1-M,q=i*M+s*$,G=o*M+h*$,E=n*M+l*$,F=a*d+c*(1-d);return oe(q,G,E,F)},Fa=ru;var iu=(t,e=100)=>{let r=ut.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,Fa(r,t,e)},b=iu;var{entries:za,setPrototypeOf:La,isFrozen:ou,getPrototypeOf:nu,getOwnPropertyDescriptor:au}=Object,{freeze:Mt,seal:qt,create:qa}=Object,{apply:zo,construct:qo}=typeof Reflect<"u"&&Reflect;Mt||(Mt=function(e){return e});qt||(qt=function(e){return e});zo||(zo=function(e,r,i){return e.apply(r,i)});qo||(qo=function(e,r){return new e(...r)});var pi=At(Array.prototype.forEach),su=At(Array.prototype.lastIndexOf),Ma=At(Array.prototype.pop),Sr=At(Array.prototype.push),lu=At(Array.prototype.splice),xi=At(String.prototype.toLowerCase),Do=At(String.prototype.toString),Aa=At(String.prototype.match),vr=At(String.prototype.replace),hu=At(String.prototype.indexOf),cu=At(String.prototype.trim),Ht=At(Object.prototype.hasOwnProperty),Lt=At(RegExp.prototype.test),wr=uu(TypeError);function At(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]:xi;La&&La(t,null);let i=e.length;for(;i--;){let o=e[i];if(typeof o=="string"){let n=r(o);n!==o&&(ou(e)||(e[i]=n),o=n)}t[o]=!0}return t}function fu(t){for(let e=0;e/gm),xu=qt(/\$\{[\w\W]*/gm),yu=qt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Cu=qt(/^aria-[\-\w]+$/),Pa=qt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_u=qt(/^(?:\w+script|data):/i),bu=qt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$a=qt(/^html$/i),Tu=qt(/^[a-z][.\w]*(-[.\w]+)+$/i),Na=Object.freeze({__proto__:null,ARIA_ATTR:Cu,ATTR_WHITESPACE:bu,CUSTOM_ELEMENT:Tu,DATA_ATTR:yu,DOCTYPE_NAME:$a,ERB_EXPR:gu,IS_ALLOWED_URI:Pa,IS_SCRIPT_OR_DATA:_u,MUSTACHE_EXPR:pu,TMPLIT_EXPR:xu}),Fr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ku=function(){return typeof window>"u"?null:window},Su=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{return console.warn("TrustedTypes policy "+n+" could not be created."),null}},Ra=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Wa(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ku(),e=z=>Wa(z);if(e.version="3.2.4",e.removed=[],!t||!t.document||t.document.nodeType!==Fr.document||!t.Element)return e.isSupported=!1,e;let{document:r}=t,i=r,o=i.currentScript,{DocumentFragment:n,HTMLTemplateElement:a,Node:s,Element:h,NodeFilter:l,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:u,trustedTypes:p}=t,T=h.prototype,M=Br(T,"cloneNode"),$=Br(T,"remove"),q=Br(T,"nextSibling"),G=Br(T,"childNodes"),E=Br(T,"parentNode");if(typeof a=="function"){let z=r.createElement("template");z.content&&z.content.ownerDocument&&(r=z.content.ownerDocument)}let F,P="",{implementation:w,createNodeIterator:X,createDocumentFragment:j,getElementsByTagName:W}=r,{importNode:rt}=i,B=Ra();e.isSupported=typeof za=="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}=Na,{IS_ALLOWED_URI:et}=Na,Y=null,nt=K({},[...Ea,...Oo,...Io,...No,...Da]),Q=null,Bt=K({},[...Oa,...Ro,...Ia,...gi]),Z=Object.seal(qa(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,Ot=!1,Se=!1,oi=!1,ta=!0,ea=!1,Mc="user-content-",To=!0,Cr=!1,Ge={},Ve=null,ra=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"]),ia=null,oa=K({},["audio","video","img","source","image","track"]),ko=null,na=K({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ni="http://www.w3.org/1998/Math/MathML",ai="http://www.w3.org/2000/svg",ee="http://www.w3.org/1999/xhtml",Xe=ee,So=!1,vo=null,Ac=K({},[ni,ai,ee],Do),si=K({},["mi","mo","mn","ms","mtext"]),li=K({},["annotation-xml"]),Ec=K({},["title","style","font","a","script"]),_r=null,Dc=["application/xhtml+xml","text/html"],Oc="text/html",dt=null,je=null,Ic=r.createElement("form"),aa=function(f){return f instanceof RegExp||f instanceof Function},wo=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(je&&je===f)){if((!f||typeof f!="object")&&(f={}),f=we(f),_r=Dc.indexOf(f.PARSER_MEDIA_TYPE)===-1?Oc:f.PARSER_MEDIA_TYPE,dt=_r==="application/xhtml+xml"?Do:xi,Y=Ht(f,"ALLOWED_TAGS")?K({},f.ALLOWED_TAGS,dt):nt,Q=Ht(f,"ALLOWED_ATTR")?K({},f.ALLOWED_ATTR,dt):Bt,vo=Ht(f,"ALLOWED_NAMESPACES")?K({},f.ALLOWED_NAMESPACES,Do):Ac,ko=Ht(f,"ADD_URI_SAFE_ATTR")?K(we(na),f.ADD_URI_SAFE_ATTR,dt):na,ia=Ht(f,"ADD_DATA_URI_TAGS")?K(we(oa),f.ADD_DATA_URI_TAGS,dt):oa,Ve=Ht(f,"FORBID_CONTENTS")?K({},f.FORBID_CONTENTS,dt):ra,xt=Ht(f,"FORBID_TAGS")?K({},f.FORBID_TAGS,dt):{},yt=Ht(f,"FORBID_ATTR")?K({},f.FORBID_ATTR,dt):{},Ge=Ht(f,"USE_PROFILES")?f.USE_PROFILES:!1,lt=f.ALLOW_ARIA_ATTR!==!1,v=f.ALLOW_DATA_ATTR!==!1,H=f.ALLOW_UNKNOWN_PROTOCOLS||!1,V=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,C=f.SAFE_FOR_TEMPLATES||!1,mt=f.SAFE_FOR_XML!==!1,J=f.WHOLE_DOCUMENT||!1,Ot=f.RETURN_DOM||!1,Se=f.RETURN_DOM_FRAGMENT||!1,oi=f.RETURN_TRUSTED_TYPE||!1,_t=f.FORCE_BODY||!1,ta=f.SANITIZE_DOM!==!1,ea=f.SANITIZE_NAMED_PROPS||!1,To=f.KEEP_CONTENT!==!1,Cr=f.IN_PLACE||!1,et=f.ALLOWED_URI_REGEXP||Pa,Xe=f.NAMESPACE||ee,si=f.MATHML_TEXT_INTEGRATION_POINTS||si,li=f.HTML_INTEGRATION_POINTS||li,Z=f.CUSTOM_ELEMENT_HANDLING||{},f.CUSTOM_ELEMENT_HANDLING&&aa(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Z.tagNameCheck=f.CUSTOM_ELEMENT_HANDLING.tagNameCheck),f.CUSTOM_ELEMENT_HANDLING&&aa(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Z.attributeNameCheck=f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),f.CUSTOM_ELEMENT_HANDLING&&typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Z.allowCustomizedBuiltInElements=f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),C&&(v=!1),Se&&(Ot=!0),Ge&&(Y=K({},Da),Q=[],Ge.html===!0&&(K(Y,Ea),K(Q,Oa)),Ge.svg===!0&&(K(Y,Oo),K(Q,Ro),K(Q,gi)),Ge.svgFilters===!0&&(K(Y,Io),K(Q,Ro),K(Q,gi)),Ge.mathMl===!0&&(K(Y,No),K(Q,Ia),K(Q,gi))),f.ADD_TAGS&&(Y===nt&&(Y=we(Y)),K(Y,f.ADD_TAGS,dt)),f.ADD_ATTR&&(Q===Bt&&(Q=we(Q)),K(Q,f.ADD_ATTR,dt)),f.ADD_URI_SAFE_ATTR&&K(ko,f.ADD_URI_SAFE_ATTR,dt),f.FORBID_CONTENTS&&(Ve===ra&&(Ve=we(Ve)),K(Ve,f.FORBID_CONTENTS,dt)),To&&(Y["#text"]=!0),J&&K(Y,["html","head","body"]),Y.table&&(K(Y,["tbody"]),delete xt.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw wr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw wr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');F=f.TRUSTED_TYPES_POLICY,P=F.createHTML("")}else F===void 0&&(F=Su(p,o)),F!==null&&typeof P=="string"&&(P=F.createHTML(""));Mt&&Mt(f),je=f}},sa=K({},[...Oo,...Io,...mu]),la=K({},[...No,...du]),Nc=function(f){let _=E(f);(!_||!_.tagName)&&(_={namespaceURI:Xe,tagName:"template"});let D=xi(f.tagName),at=xi(_.tagName);return vo[f.namespaceURI]?f.namespaceURI===ai?_.namespaceURI===ee?D==="svg":_.namespaceURI===ni?D==="svg"&&(at==="annotation-xml"||si[at]):!!sa[D]:f.namespaceURI===ni?_.namespaceURI===ee?D==="math":_.namespaceURI===ai?D==="math"&&li[at]:!!la[D]:f.namespaceURI===ee?_.namespaceURI===ai&&!li[at]||_.namespaceURI===ni&&!si[at]?!1:!la[D]&&(Ec[D]||!sa[D]):!!(_r==="application/xhtml+xml"&&vo[f.namespaceURI]):!1},Xt=function(f){Sr(e.removed,{element:f});try{E(f).removeChild(f)}catch{$(f)}},hi=function(f,_){try{Sr(e.removed,{attribute:_.getAttributeNode(f),from:_})}catch{Sr(e.removed,{attribute:null,from:_})}if(_.removeAttribute(f),f==="is")if(Ot||Se)try{Xt(_)}catch{}else try{_.setAttribute(f,"")}catch{}},ha=function(f){let _=null,D=null;if(_t)f=""+f;else{let bt=Aa(f,/^[\r\n\t ]+/);D=bt&&bt[0]}_r==="application/xhtml+xml"&&Xe===ee&&(f=''+f+"");let at=F?F.createHTML(f):f;if(Xe===ee)try{_=new u().parseFromString(at,_r)}catch{}if(!_||!_.documentElement){_=w.createDocument(Xe,"template",null);try{_.documentElement.innerHTML=So?P:at}catch{}}let wt=_.body||_.documentElement;return f&&D&&wt.insertBefore(r.createTextNode(D),wt.childNodes[0]||null),Xe===ee?W.call(_,J?"html":"body")[0]:J?_.documentElement:wt},ca=function(f){return X.call(f.ownerDocument||f,f,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Bo=function(f){return f instanceof d&&(typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||!(f.attributes instanceof c)||typeof f.removeAttribute!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function")},ua=function(f){return typeof s=="function"&&f instanceof s};function re(z,f,_){pi(z,D=>{D.call(e,f,_,je)})}let fa=function(f){let _=null;if(re(B.beforeSanitizeElements,f,null),Bo(f))return Xt(f),!0;let D=dt(f.nodeName);if(re(B.uponSanitizeElement,f,{tagName:D,allowedTags:Y}),f.hasChildNodes()&&!ua(f.firstElementChild)&&Lt(/<[/\w]/g,f.innerHTML)&&Lt(/<[/\w]/g,f.textContent)||f.nodeType===Fr.progressingInstruction||mt&&f.nodeType===Fr.comment&&Lt(/<[/\w]/g,f.data))return Xt(f),!0;if(!Y[D]||xt[D]){if(!xt[D]&&da(D)&&(Z.tagNameCheck instanceof RegExp&&Lt(Z.tagNameCheck,D)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(D)))return!1;if(To&&!Ve[D]){let at=E(f)||f.parentNode,wt=G(f)||f.childNodes;if(wt&&at){let bt=wt.length;for(let It=bt-1;It>=0;--It){let jt=M(wt[It],!0);jt.__removalCount=(f.__removalCount||0)+1,at.insertBefore(jt,q(f))}}}return Xt(f),!0}return f instanceof h&&!Nc(f)||(D==="noscript"||D==="noembed"||D==="noframes")&&Lt(/<\/no(script|embed|frames)/i,f.innerHTML)?(Xt(f),!0):(C&&f.nodeType===Fr.text&&(_=f.textContent,pi([k,g,x],at=>{_=vr(_,at," ")}),f.textContent!==_&&(Sr(e.removed,{element:f.cloneNode()}),f.textContent=_)),re(B.afterSanitizeElements,f,null),!1)},ma=function(f,_,D){if(ta&&(_==="id"||_==="name")&&(D in r||D in Ic))return!1;if(!(v&&!yt[_]&&Lt(L,_))){if(!(lt&&Lt(S,_))){if(!Q[_]||yt[_]){if(!(da(f)&&(Z.tagNameCheck instanceof RegExp&&Lt(Z.tagNameCheck,f)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(f))&&(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(!ko[_]){if(!Lt(et,vr(D,O,""))){if(!((_==="src"||_==="xlink:href"||_==="href")&&f!=="script"&&hu(D,"data:")===0&&ia[f])){if(!(H&&!Lt(N,vr(D,O,"")))){if(D)return!1}}}}}}return!0},da=function(f){return f!=="annotation-xml"&&Aa(f,U)},pa=function(f){re(B.beforeSanitizeAttributes,f,null);let{attributes:_}=f;if(!_||Bo(f))return;let D={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Q,forceKeepAttr:void 0},at=_.length;for(;at--;){let wt=_[at],{name:bt,namespaceURI:It,value:jt}=wt,br=dt(bt),Ft=bt==="value"?jt:cu(jt);if(D.attrName=br,D.attrValue=Ft,D.keepAttr=!0,D.forceKeepAttr=void 0,re(B.uponSanitizeAttribute,f,D),Ft=D.attrValue,ea&&(br==="id"||br==="name")&&(hi(bt,f),Ft=Mc+Ft),mt&&Lt(/((--!?|])>)|<\/(style|title)/i,Ft)){hi(bt,f);continue}if(D.forceKeepAttr||(hi(bt,f),!D.keepAttr))continue;if(!V&&Lt(/\/>/i,Ft)){hi(bt,f);continue}C&&pi([k,g,x],xa=>{Ft=vr(Ft,xa," ")});let ga=dt(f.nodeName);if(ma(ga,br,Ft)){if(F&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!It)switch(p.getAttributeType(ga,br)){case"TrustedHTML":{Ft=F.createHTML(Ft);break}case"TrustedScriptURL":{Ft=F.createScriptURL(Ft);break}}try{It?f.setAttributeNS(It,bt,Ft):f.setAttribute(bt,Ft),Bo(f)?Xt(f):Ma(e.removed)}catch{}}}re(B.afterSanitizeAttributes,f,null)},Rc=function z(f){let _=null,D=ca(f);for(re(B.beforeSanitizeShadowDOM,f,null);_=D.nextNode();)re(B.uponSanitizeShadowNode,_,null),fa(_),pa(_),_.content instanceof n&&z(_.content);re(B.afterSanitizeShadowDOM,f,null)};return e.sanitize=function(z){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=null,D=null,at=null,wt=null;if(So=!z,So&&(z=""),typeof z!="string"&&!ua(z))if(typeof z.toString=="function"){if(z=z.toString(),typeof z!="string")throw wr("dirty is not a string, aborting")}else throw wr("toString is not a function");if(!e.isSupported)return z;if(Ct||wo(f),e.removed=[],typeof z=="string"&&(Cr=!1),Cr){if(z.nodeName){let jt=dt(z.nodeName);if(!Y[jt]||xt[jt])throw wr("root node is forbidden and cannot be sanitized in-place")}}else if(z instanceof s)_=ha(""),D=_.ownerDocument.importNode(z,!0),D.nodeType===Fr.element&&D.nodeName==="BODY"||D.nodeName==="HTML"?_=D:_.appendChild(D);else{if(!Ot&&!C&&!J&&z.indexOf("<")===-1)return F&&oi?F.createHTML(z):z;if(_=ha(z),!_)return Ot?null:oi?P:""}_&&_t&&Xt(_.firstChild);let bt=ca(Cr?z:_);for(;at=bt.nextNode();)fa(at),pa(at),at.content instanceof n&&Rc(at.content);if(Cr)return z;if(Ot){if(Se)for(wt=j.call(_.ownerDocument);_.firstChild;)wt.appendChild(_.firstChild);else wt=_;return(Q.shadowroot||Q.shadowrootmode)&&(wt=rt.call(i,wt,!0)),wt}let It=J?_.outerHTML:_.innerHTML;return J&&Y["!doctype"]&&_.ownerDocument&&_.ownerDocument.doctype&&_.ownerDocument.doctype.name&&Lt($a,_.ownerDocument.doctype.name)&&(It=" `+It),C&&pi([k,g,x],jt=>{It=vr(It,jt," ")}),F&&oi?F.createHTML(It):It},e.setConfig=function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};wo(z),Ct=!0},e.clearConfig=function(){je=null,Ct=!1},e.isValidAttribute=function(z,f,_){je||wo({});let D=dt(z),at=dt(f);return ma(D,at,_)},e.addHook=function(z,f){typeof f=="function"&&Sr(B[z],f)},e.removeHook=function(z,f){if(f!==void 0){let _=su(B[z],f);return _===-1?void 0:lu(B[z],_,1)[0]}return Ma(B[z])},e.removeHooks=function(z){B[z]=[]},e.removeAllHooks=function(){B=Ra()},e}var Ze=Wa();var ja=qc(ya(),1);var Xa=Object.defineProperty,y=(t,e)=>Xa(t,"name",{value:e,configurable:!0}),vu=(t,e)=>{for(var r in e)Xa(t,r,{get:e[r],enumerable:!0})},ne={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")},wu=y(function(t="fatal"){let e=ne.fatal;typeof t=="string"?t.toLowerCase()in ne&&(e=ne[t]):typeof t=="number"&&(e=t),it.trace=()=>{},it.debug=()=>{},it.info=()=>{},it.warn=()=>{},it.error=()=>{},it.fatal=()=>{},e<=ne.fatal&&(it.fatal=console.error?console.error.bind(console,Pt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Pt("FATAL"))),e<=ne.error&&(it.error=console.error?console.error.bind(console,Pt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Pt("ERROR"))),e<=ne.warn&&(it.warn=console.warn?console.warn.bind(console,Pt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Pt("WARN"))),e<=ne.info&&(it.info=console.info?console.info.bind(console,Pt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Pt("INFO"))),e<=ne.debug&&(it.debug=console.debug?console.debug.bind(console,Pt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Pt("DEBUG"))),e<=ne.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,ja.default)().format("ss.SSS")} : ${t} : `,"format"),Bu=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Fu=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Lu=/\s*%%.*\n/gm,Mu=class extends Error{static{y(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}},Ci={},B0=y(function(t,e){t=t.replace(Bu,"").replace(Fu,"").replace(Lu,` `);for(let[r,{detector:i}]of Object.entries(Ci))if(i(t,e))return r;throw new Mu(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),F0=y((...t)=>{for(let{id:e,detector:r,loader:i}of t)Za(e,r,i)},"registerLazyLoadedDiagrams"),Za=y((t,e,r)=>{Ci[t]&&it.warn(`Detector with key ${t} already exists. Overwriting.`),Ci[t]={detector:e,loader:r},it.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),L0=y(t=>Ci[t].loader,"getDiagramLoader"),Po=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=>Po(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]=Po(t[n],e[n],{depth:r-1,clobber:i})):(i||typeof t[n]!="object"&&typeof e[n]!="object")&&(t[n]=e[n])}),t)},"assignWithDepth"),Rt=Po,bi="#ffffff",Ti="#f2f2f2",Et=y((t,e)=>e?m(t,{s:-40,l:10}):m(t,{s:-40,l:-10}),"mkBorder"),Au=class{static{y(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||m(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||m(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Et(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Et(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Et(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Et(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||m(this.primaryColor,{h:30}),this.cScale4=this.cScale4||m(this.primaryColor,{h:60}),this.cScale5=this.cScale5||m(this.primaryColor,{h:90}),this.cScale6=this.cScale6||m(this.primaryColor,{h:120}),this.cScale7=this.cScale7||m(this.primaryColor,{h:150}),this.cScale8=this.cScale8||m(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||m(this.primaryColor,{h:270}),this.cScale10=this.cScale10||m(this.primaryColor,{h:300}),this.cScale11=this.cScale11||m(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[r]=t[r]}),this.updateColors(),e.forEach(r=>{this[r]=t[r]})}},Eu=y(t=>{let e=new Au;return e.calculate(t),e},"getThemeVariables"),Du=class{static{y(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=A(this.primaryColor,16),this.tertiaryColor=m(this.primaryColor,{h:-160}),this.primaryBorderColor=b(this.background),this.secondaryBorderColor=Et(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Et(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=oe(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=oe(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=oe(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(){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=m(this.primaryColor,{h:64}),this.fillType3=m(this.secondaryColor,{h:64}),this.fillType4=m(this.primaryColor,{h:-64}),this.fillType5=m(this.secondaryColor,{h:-64}),this.fillType6=m(this.primaryColor,{h:128}),this.fillType7=m(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||m(this.primaryColor,{h:30}),this.cScale4=this.cScale4||m(this.primaryColor,{h:60}),this.cScale5=this.cScale5||m(this.primaryColor,{h:90}),this.cScale6=this.cScale6||m(this.primaryColor,{h:120}),this.cScale7=this.cScale7||m(this.primaryColor,{h:150}),this.cScale8=this.cScale8||m(this.primaryColor,{h:210}),this.cScale9=this.cScale9||m(this.primaryColor,{h:270}),this.cScale10=this.cScale10||m(this.primaryColor,{h:300}),this.cScale11=this.cScale11||m(this.primaryColor,{h:330});for(let t=0;t{this[r]=t[r]}),this.updateColors(),e.forEach(r=>{this[r]=t[r]})}},Ou=y(t=>{let e=new Du;return e.calculate(t),e},"getThemeVariables"),Iu=class{static{y(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=m(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=m(this.primaryColor,{h:-160}),this.primaryBorderColor=Et(this.primaryColor,this.darkMode),this.secondaryBorderColor=Et(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Et(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=oe(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(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||m(this.primaryColor,{h:30}),this.cScale4=this.cScale4||m(this.primaryColor,{h:60}),this.cScale5=this.cScale5||m(this.primaryColor,{h:90}),this.cScale6=this.cScale6||m(this.primaryColor,{h:120}),this.cScale7=this.cScale7||m(this.primaryColor,{h:150}),this.cScale8=this.cScale8||m(this.primaryColor,{h:210}),this.cScale9=this.cScale9||m(this.primaryColor,{h:270}),this.cScale10=this.cScale10||m(this.primaryColor,{h:300}),this.cScale11=this.cScale11||m(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||I(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||I(this.tertiaryColor,40);for(let t=0;t{this[r]=t[r]}),this.updateColors(),e.forEach(r=>{this[r]=t[r]})}},Nu=y(t=>{let e=new Iu;return e.calculate(t),e},"getThemeVariables"),Ru=class{static{y(this,"Theme")}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=Et(this.primaryColor,this.darkMode),this.secondaryBorderColor=Et(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Et(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(){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||m(this.primaryColor,{h:30}),this.cScale4=this.cScale4||m(this.primaryColor,{h:60}),this.cScale5=this.cScale5||m(this.primaryColor,{h:90}),this.cScale6=this.cScale6||m(this.primaryColor,{h:120}),this.cScale7=this.cScale7||m(this.primaryColor,{h:150}),this.cScale8=this.cScale8||m(this.primaryColor,{h:210}),this.cScale9=this.cScale9||m(this.primaryColor,{h:270}),this.cScale10=this.cScale10||m(this.primaryColor,{h:300}),this.cScale11=this.cScale11||m(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||I(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||I(this.tertiaryColor,40);for(let t=0;t{this[r]=t[r]}),this.updateColors(),e.forEach(r=>{this[r]=t[r]})}},zu=y(t=>{let e=new Ru;return e.calculate(t),e},"getThemeVariables"),qu=class{static{y(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=A(this.contrast,55),this.background="#ffffff",this.tertiaryColor=m(this.primaryColor,{h:-160}),this.primaryBorderColor=Et(this.primaryColor,this.darkMode),this.secondaryBorderColor=Et(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Et(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(){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 t=0;t{this[r]=t[r]}),this.updateColors(),e.forEach(r=>{this[r]=t[r]})}},Pu=y(t=>{let e=new qu;return e.calculate(t),e},"getThemeVariables"),Ke={base:{getThemeVariables:Eu},dark:{getThemeVariables:Ou},default:{getThemeVariables:Nu},forest:{getThemeVariables:zu},neutral:{getThemeVariables:Pu}},de={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},Ka={...de,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:Ke.default.getThemeVariables(),sequence:{...de.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:{...de.gantt,tickInterval:void 0,useWidth:void 0},c4:{...de.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:{...de.pie,useWidth:984},xyChart:{...de.xyChart,useWidth:void 0},requirement:{...de.requirement,useWidth:void 0},packet:{...de.packet}},Qa=y((t,e="")=>Object.keys(t).reduce((r,i)=>Array.isArray(t[i])?r:typeof t[i]=="object"&&t[i]!==null?[...r,e+i,...Qa(t[i],"")]:[...r,e+i],[]),"keyify"),$u=new Set(Qa(Ka,"")),Wu=Ka,$o=y(t=>{if(it.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>$o(e));return}for(let e of Object.keys(t)){if(it.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!$u.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),$o(t[e]);continue}let r=["themeCSS","fontFamily","altFontFamily"];for(let i of r)e.includes(i)&&(it.debug("sanitizing css option",e),t[e]=Hu(t[e]))}if(t.themeVariables)for(let e of Object.keys(t.themeVariables)){let r=t.themeVariables[e];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}it.debug("After sanitization",t)}},"sanitizeDirective"),Hu=y(t=>{let e=0,r=0;for(let i of t){if(e{let r=Rt({},t),i={};for(let o of e)ts(o),i=Rt(i,o);if(r=Rt(r,i),i.theme&&i.theme in Ke){let o=Rt({},Ja),n=Rt(o.themeVariables||{},i.themeVariables);r.theme&&r.theme in Ke&&(r.themeVariables=Ke[r.theme].getThemeVariables(n))}return Lr=r,es(Lr),Lr},"updateCurrentConfig"),N0=y(t=>(Nt=Rt({},ki),Nt=Rt(Nt,t),t.theme&&Ke[t.theme]&&(Nt.themeVariables=Ke[t.theme].getThemeVariables(t.themeVariables)),Si(Nt,Qe),Nt),"setSiteConfig"),R0=y(t=>{Ja=Rt({},t)},"saveConfigFromInitialize"),z0=y(t=>(Nt=Rt(Nt,t),Si(Nt,Qe),Nt),"updateSiteConfig"),q0=y(()=>Rt({},Nt),"getSiteConfig"),Uu=y(t=>(es(t),Rt(Lr,t),Uo()),"setConfig"),Uo=y(()=>Rt({},Lr),"getConfig"),ts=y(t=>{t&&(["secure",...Nt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(it.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&ts(t[e])}))},"sanitize"),P0=y(t=>{$o(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),Qe.push(t),Si(Nt,Qe)},"addDirective"),$0=y((t=Nt)=>{Qe=[],Si(t,Qe)},"reset"),Yu={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Ha={},Gu=y(t=>{Ha[t]||(it.warn(Yu[t]),Ha[t]=!0)},"issueWarning"),es=y(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Gu("LAZY_LOAD_DEPRECATED")},"checkConfig"),Ar=//gi,Vu=y(t=>t?os(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),Xu=(()=>{let t=!1;return()=>{t||(rs(),t=!0)}})();function rs(){let t="data-temp-href-target";Ze.addHook("beforeSanitizeAttributes",e=>{e instanceof Element&&e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),Ze.addHook("afterSanitizeAttributes",e=>{e instanceof Element&&e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}y(rs,"setupDompurifyHooks");var is=y(t=>(Xu(),Ze.sanitize(t)),"removeScript"),Ua=y((t,e)=>{if(e.flowchart?.htmlLabels!==!1){let r=e.securityLevel;r==="antiscript"||r==="strict"?t=is(t):r!=="loose"&&(t=os(t),t=t.replace(//g,">"),t=t.replace(/=/g,"="),t=Qu(t))}return t},"sanitizeMore"),Mr=y((t,e)=>t&&(e.dompurifyConfig?t=Ze.sanitize(Ua(t,e),e.dompurifyConfig).toString():t=Ze.sanitize(Ua(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),ju=y((t,e)=>typeof t=="string"?Mr(t,e):t.flat().map(r=>Mr(r,e)),"sanitizeTextOrArray"),Zu=y(t=>Ar.test(t),"hasBreaks"),Ku=y(t=>t.split(Ar),"splitBreaks"),Qu=y(t=>t.replace(/#br#/g,"
"),"placeholderToBreak"),os=y(t=>t.replace(Ar,"#br#"),"breakToPlaceholder"),Ju=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"),tf=y(t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),ef=y(function(...t){let e=t.filter(r=>!isNaN(r));return Math.max(...e)},"getMax"),rf=y(function(...t){let e=t.filter(r=>!isNaN(r));return Math.min(...e)},"getMin"),H0=y(function(t){let e=t.split(/(,)/),r=[];for(let i=0;i0&&i+1Math.max(0,t.split(e).length-1),"countOccurrence"),of=y((t,e)=>{let r=Wo(t,"~"),i=Wo(e,"~");return r===1&&i===1},"shouldCombineSets"),nf=y(t=>{let e=Wo(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"),Ya=y(()=>window.MathMLElement!==void 0,"isMathMLSupported"),Ho=/\$\$(.*)\$\$/g,Ga=y(t=>(t.match(Ho)?.length??0)>0,"hasKatex"),U0=y(async(t,e)=>{t=await af(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",document.querySelector("body")?.insertAdjacentElement("beforeend",r);let o={width:r.clientWidth,height:r.clientHeight};return r.remove(),o},"calculateMathMLDimensions"),af=y(async(t,e)=>{if(!Ga(t))return t;if(!(Ya()||e.legacyMathML||e.forceLegacyMathML))return t.replace(Ho,"MathML is unsupported in this environment.");let{default:r}=await import("./katex-ROPKEHCO.min.js"),i=e.forceLegacyMathML||!Ya()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(Ar).map(o=>Ga(o)?`
${o}
`:`
${o}
`).join("").replace(Ho,(o,n)=>r.renderToString(n,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(//g,""))},"renderKatex"),Y0={getRows:Vu,sanitizeText:Mr,sanitizeTextOrArray:ju,hasBreaks:Zu,splitBreaks:Ku,lineBreakRegex:Ar,removeScript:is,getUrl:Ju,evaluate:tf,getMax:ef,getMin:rf},sf=y(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),lf=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"),hf=y(function(t,e,r,i){let o=lf(e,r,i);sf(t,o)},"configureSvgSize"),cf=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,h=0;it.info(`Graph bounds: ${s}x${h}`,t),s=n+r*2,h=a+r*2,it.info(`Calculated bounds: ${s}x${h}`),hf(e,h,s,i);let l=`${o.x-r} ${o.y-r} ${o.width+2*r} ${o.height+2*r}`;e.attr("viewBox",l)},"setupGraphViewbox"),yi={},uf=y((t,e,r)=>{let i="";return t in yi&&yi[t]?i=yi[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"),ff=y((t,e)=>{e!==void 0&&(yi[t]=e)},"addStylesForDiagram"),G0=uf,ns={};vu(ns,{clear:()=>mf,getAccDescription:()=>xf,getAccTitle:()=>pf,getDiagramTitle:()=>Cf,setAccDescription:()=>gf,setAccTitle:()=>df,setDiagramTitle:()=>yf});var Yo="",Go="",Vo="",Xo=y(t=>Mr(t,Uo()),"sanitizeText"),mf=y(()=>{Yo="",Vo="",Go=""},"clear"),df=y(t=>{Yo=Xo(t).replace(/^\s+/g,"")},"setAccTitle"),pf=y(()=>Yo,"getAccTitle"),gf=y(t=>{Vo=Xo(t).replace(/\n\s+/g,` `)},"setAccDescription"),xf=y(()=>Vo,"getAccDescription"),yf=y(t=>{Go=Xo(t)},"setDiagramTitle"),Cf=y(()=>Go,"getDiagramTitle"),Va=it,_f=wu,as=Uo,V0=Uu,X0=ki,bf=y(t=>Mr(t,as()),"sanitizeText"),Tf=cf,kf=y(()=>ns,"getCommonDb"),_i={},j0=y((t,e,r)=>{_i[t]&&Va.warn(`Diagram with id ${t} already registered. Overwriting.`),_i[t]=e,r&&Za(t,r),ff(t,e.styles),e.injectUtils?.(Va,_f,as,bf,Tf,kf(),()=>{})},"registerDiagram"),Z0=y(t=>{if(t in _i)return _i[t];throw new Sf(t)},"getDiagram"),Sf=class extends Error{static{y(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}};function ss(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 ls(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 Be(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function jo(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function Fe(t){let e,r,i;t.length!==2?(e=Be,r=(s,h)=>Be(t(s),h),i=(s,h)=>t(s)-h):(e=t===Be||t===jo?t:vf,r=t,i=t);function o(s,h,l=0,c=s.length){if(l>>1;r(s[d],h)<0?l=d+1:c=d}while(l>>1;r(s[d],h)<=0?l=d+1:c=d}while(ll&&i(s[d-1],h)>-i(s[d],h)?d-1:d}return{left:o,center:a,right:n}}function vf(){return 0}function Zo(t){return t===null?NaN:+t}var hs=Fe(Be),cs=hs.right,wf=hs.left,Bf=Fe(Zo).center,Ko=cs;var Je=class extends Map{constructor(e,r=Mf){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(us(this,e))}has(e){return super.has(us(this,e))}set(e,r){return super.set(Ff(this,e),r)}delete(e){return super.delete(Lf(this,e))}};function us({_intern:t,_key:e},r){let i=e(r);return t.has(i)?t.get(i):r}function Ff({_intern:t,_key:e},r){let i=e(r);return t.has(i)?t.get(i):(t.set(i,r),r)}function Lf({_intern:t,_key:e},r){let i=e(r);return t.has(i)&&(r=t.get(i),t.delete(i)),r}function Mf(t){return t!==null&&typeof t=="object"?t.valueOf():t}var Af=Math.sqrt(50),Ef=Math.sqrt(10),Df=Math.sqrt(2);function vi(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>=Af?10:n>=Ef?5:n>=Df?2:1,s,h,l;return o<0?(l=Math.pow(10,-o)/a,s=Math.round(t*l),h=Math.round(e*l),s/le&&--h,l=-l):(l=Math.pow(10,o)*a,s=Math.round(t/l),h=Math.round(e/l),s*le&&--h),h0))return[];if(t===e)return[t];let i=e=o))return[];let s=n-o+1,h=new Array(s);if(i)if(a<0)for(let l=0;l+t(e)}function Rf(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function zf(){return!this.__axis}function ds(t,e){var r=[],i=null,o=null,n=6,a=6,s=3,h=typeof window<"u"&&window.devicePixelRatio>1?0:.5,l=t===Li||t===Fi?-1:1,c=t===Fi||t===Qo?"x":"y",d=t===Li||t===Jo?Of:If;function u(p){var T=i??(e.ticks?e.ticks.apply(e,r):e.domain()),M=o??(e.tickFormat?e.tickFormat.apply(e,r):fs),$=Math.max(n,0)+s,q=e.range(),G=+q[0]+h,E=+q[q.length-1]+h,F=(e.bandwidth?Rf:Nf)(e.copy(),h),P=p.selection?p.selection():p,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(c+"2",l*n)),B=B.merge(W.append("text").attr("fill","currentColor").attr(c,l*$).attr("dy",t===Li?"0em":t===Jo?"0.71em":"0.32em")),p!==P&&(w=w.transition(p),X=X.transition(p),rt=rt.transition(p),B=B.transition(p),j=j.transition(p).attr("opacity",ms).attr("transform",function(k){return isFinite(k=F(k))?d(k+h):this.getAttribute("transform")}),W.attr("opacity",ms).attr("transform",function(k){var g=this.parentNode.__axis;return d((g&&isFinite(g=g(k))?g:F(k))+h)})),j.remove(),w.attr("d",t===Fi||t===Qo?a?"M"+l*a+","+G+"H"+h+"V"+E+"H"+l*a:"M"+h+","+G+"V"+E:a?"M"+G+","+l*a+"V"+h+"H"+E+"V"+l*a:"M"+G+","+h+"H"+E),X.attr("opacity",1).attr("transform",function(k){return d(F(k)+h)}),rt.attr(c+"2",l*n),B.attr(c,l*$).text(M),P.filter(zf).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Qo?"start":t===Fi?"end":"middle"),P.each(function(){this.__axis=F})}return u.scale=function(p){return arguments.length?(e=p,u):e},u.ticks=function(){return r=Array.from(arguments),u},u.tickArguments=function(p){return arguments.length?(r=p==null?[]:Array.from(p),u):r.slice()},u.tickValues=function(p){return arguments.length?(i=p==null?null:Array.from(p),u):i&&i.slice()},u.tickFormat=function(p){return arguments.length?(o=p,u):o},u.tickSize=function(p){return arguments.length?(n=a=+p,u):n},u.tickSizeInner=function(p){return arguments.length?(n=+p,u):n},u.tickSizeOuter=function(p){return arguments.length?(a=+p,u):a},u.tickPadding=function(p){return arguments.length?(s=+p,u):s},u.offset=function(p){return arguments.length?(h=+p,u):h},u}function qf(t){return ds(Li,t)}function Pf(t){return ds(Jo,t)}function $f(){}function Le(t){return t==null?$f:function(){return this.querySelector(t)}}function ps(t){typeof t!="function"&&(t=Le(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 Bs(t){t||(t=tm);function e(d,u){return d&&u?t(d.__data__,u.__data__):!d-!u}for(var r=this._groups,i=r.length,o=new Array(i),n=0;ne?1:t>=e?0:NaN}function Fs(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Ls(){return Array.from(this)}function Ms(){for(var t=this._groups,e=0,r=t.length;e=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),en.hasOwnProperty(e)?{space:en[e],local:t}:t}function em(t){return function(){this.removeAttribute(t)}}function rm(t){return function(){this.removeAttributeNS(t.space,t.local)}}function im(t,e){return function(){this.setAttribute(t,e)}}function om(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function nm(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function am(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 Os(t,e){var r=ae(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?rm:em:typeof e=="function"?r.local?am:nm:r.local?om:im)(r,e))}function Di(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function sm(t){return function(){this.style.removeProperty(t)}}function lm(t,e,r){return function(){this.style.setProperty(t,e,r)}}function hm(t,e,r){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,r)}}function Is(t,e,r){return arguments.length>1?this.each((e==null?sm:typeof e=="function"?hm:lm)(t,e,r??"")):pe(this.node(),t)}function pe(t,e){return t.style.getPropertyValue(e)||Di(t).getComputedStyle(t,null).getPropertyValue(e)}function cm(t){return function(){delete this[t]}}function um(t,e){return function(){this[t]=e}}function fm(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Ns(t,e){return arguments.length>1?this.each((e==null?cm:typeof e=="function"?fm:um)(t,e)):this.node()[t]}function Rs(t){return t.trim().split(/^|\s+/)}function rn(t){return t.classList||new zs(t)}function zs(t){this._node=t,this._names=Rs(t.getAttribute("class")||"")}zs.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 qs(t,e){for(var r=rn(t),i=-1,o=e.length;++i=0&&(r=e.slice(i+1),e=e.slice(0,i)),{type:e,name:r}})}function Em(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?Ii(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?Ii(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=qm.exec(t))?new Tt(e[1],e[2],e[3],1):(e=Pm.exec(t))?new Tt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=$m.exec(t))?Ii(e[1],e[2],e[3],e[4]):(e=Wm.exec(t))?Ii(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Hm.exec(t))?ll(e[1],e[2]/100,e[3]/100,1):(e=Um.exec(t))?ll(e[1],e[2]/100,e[3]/100,e[4]):rl.hasOwnProperty(t)?nl(rl[t]):t==="transparent"?new Tt(NaN,NaN,NaN,0):null}function nl(t){return new Tt(t>>16&255,t>>8&255,t&255,1)}function Ii(t,e,r,i){return i<=0&&(t=e=r=NaN),new Tt(t,e,r,i)}function an(t){return t instanceof ge||(t=Yt(t)),t?(t=t.rgb(),new Tt(t.r,t.g,t.b,t.opacity)):new Tt}function ir(t,e,r,i){return arguments.length===1?an(t):new Tt(t,e,r,i??1)}function Tt(t,e,r,i){this.r=+t,this.g=+e,this.b=+r,this.opacity=+i}Me(Tt,ir,er(ge,{brighter(t){return t=t==null?Ri:Math.pow(Ri,t),new Tt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Nr:Math.pow(Nr,t),new Tt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Tt(Ee(this.r),Ee(this.g),Ee(this.b),zi(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:al,formatHex:al,formatHex8:Vm,formatRgb:sl,toString:sl}));function al(){return`#${Ae(this.r)}${Ae(this.g)}${Ae(this.b)}`}function Vm(){return`#${Ae(this.r)}${Ae(this.g)}${Ae(this.b)}${Ae((isNaN(this.opacity)?1:this.opacity)*255)}`}function sl(){let t=zi(this.opacity);return`${t===1?"rgb(":"rgba("}${Ee(this.r)}, ${Ee(this.g)}, ${Ee(this.b)}${t===1?")":`, ${t})`}`}function zi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ee(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ae(t){return t=Ee(t),(t<16?"0":"")+t.toString(16)}function ll(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 ge||(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,h=(n+o)/2;return s?(e===n?a=(r-i)/s+(r0&&h<1?0:a,new Ut(a,s,h,t.opacity)}function ul(t,e,r,i){return arguments.length===1?cl(t):new Ut(t,e,r,i??1)}function Ut(t,e,r,i){this.h=+t,this.s=+e,this.l=+r,this.opacity=+i}Me(Ut,ul,er(ge,{brighter(t){return t=t==null?Ri:Math.pow(Ri,t),new Ut(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Nr:Math.pow(Nr,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(nn(t>=240?t-240:t+120,o,i),nn(t,o,i),nn(t<120?t+240:t-120,o,i),this.opacity)},clamp(){return new Ut(hl(this.h),Ni(this.s),Ni(this.l),zi(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=zi(this.opacity);return`${t===1?"hsl(":"hsla("}${hl(this.h)}, ${Ni(this.s)*100}%, ${Ni(this.l)*100}%${t===1?")":`, ${t})`}`}}));function hl(t){return t=(t||0)%360,t<0?t+360:t}function Ni(t){return Math.max(0,Math.min(1,t||0))}function nn(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 fl=Math.PI/180,ml=180/Math.PI;var qi=18,dl=.96422,pl=1,gl=.82521,xl=4/29,or=6/29,yl=3*or*or,Xm=or*or*or;function Cl(t){if(t instanceof Kt)return new Kt(t.l,t.a,t.b,t.opacity);if(t instanceof le)return _l(t);t instanceof Tt||(t=an(t));var e=cn(t.r),r=cn(t.g),i=cn(t.b),o=sn((.2225045*e+.7168786*r+.0606169*i)/pl),n,a;return e===r&&r===i?n=a=o:(n=sn((.4360747*e+.3850649*r+.1430804*i)/dl),a=sn((.0139322*e+.0971045*r+.7141733*i)/gl)),new Kt(116*o-16,500*(n-o),200*(o-a),t.opacity)}function un(t,e,r,i){return arguments.length===1?Cl(t):new Kt(t,e,r,i??1)}function Kt(t,e,r,i){this.l=+t,this.a=+e,this.b=+r,this.opacity=+i}Me(Kt,un,er(ge,{brighter(t){return new Kt(this.l+qi*(t??1),this.a,this.b,this.opacity)},darker(t){return new Kt(this.l-qi*(t??1),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=dl*ln(e),t=pl*ln(t),r=gl*ln(r),new Tt(hn(3.1338561*e-1.6168667*t-.4906146*r),hn(-.9787684*e+1.9161415*t+.033454*r),hn(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));function sn(t){return t>Xm?Math.pow(t,1/3):t/yl+xl}function ln(t){return t>or?t*t*t:yl*(t-xl)}function hn(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function cn(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function jm(t){if(t instanceof le)return new le(t.h,t.c,t.l,t.opacity);if(t instanceof Kt||(t=Cl(t)),t.a===0&&t.b===0)return new le(NaN,0()=>t;function bl(t,e){return function(r){return t+r*e}}function Zm(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 Tl(t,e){var r=e-t;return r?bl(t,r>180||r<-180?r-360*Math.round(r/360):r):nr(isNaN(t)?e:t)}function kl(t){return(t=+t)==1?he:function(e,r){return r-e?Zm(e,r,t):nr(isNaN(e)?r:e)}}function he(t,e){var r=e-t;return r?bl(t,r):nr(isNaN(t)?e:t)}function Sl(t){return function(e,r){var i=t((e=zr(e)).h,(r=zr(r)).h),o=he(e.c,r.c),n=he(e.l,r.l),a=he(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 Km=Sl(Tl),Qm=Sl(he);function fn(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 vl(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,h.push({i:a,x:kt(i,o)})),r=mn.lastIndex;return r180?c+=360:c-l>180&&(l+=360),u.push({i:d.push(o(d)+"rotate(",null,i)-2,x:kt(l,c)})):c&&d.push(o(d)+"rotate("+c+i)}function s(l,c,d,u){l!==c?u.push({i:d.push(o(d)+"skewX(",null,i)-2,x:kt(l,c)}):c&&d.push(o(d)+"skewX("+c+i)}function h(l,c,d,u,p,T){if(l!==d||c!==u){var M=p.push(o(p)+"scale(",null,",",null,")");T.push({i:M-4,x:kt(l,d)},{i:M-2,x:kt(c,u)})}else(d!==1||u!==1)&&p.push(o(p)+"scale("+d+","+u+")")}return function(l,c){var d=[],u=[];return l=t(l),c=t(c),n(l.translateX,l.translateY,c.translateX,c.translateY,d,u),a(l.rotate,c.rotate,d,u),s(l.skewX,c.skewX,d,u),h(l.scaleX,l.scaleY,c.scaleX,c.scaleY,d,u),l=c=null,function(p){for(var T=-1,M=u.length,$;++Te&&(r=t,t=e,e=r),function(i){return Math.max(t,Math.min(e,i))}}function od(t,e,r){var i=t[0],o=t[1],n=e[0],a=e[1];return o2?nd:od,h=l=null,d}function d(u){return u==null||isNaN(u=+u)?n:(h||(h=s(t.map(i),e,r)))(i(a(u)))}return d.invert=function(u){return a(o((l||(l=s(e,t.map(i),kt)))(u)))},d.domain=function(u){return arguments.length?(t=Array.from(u,Tn),c()):t.slice()},d.range=function(u){return arguments.length?(e=Array.from(u),c()):e.slice()},d.rangeRound=function(u){return e=Array.from(u),r=pn,c()},d.clamp=function(u){return arguments.length?(a=u?!0:ar,c()):a!==ar},d.interpolate=function(u){return arguments.length?(r=u,c()):r},d.unknown=function(u){return arguments.length?(n=u,d):n},function(u,p){return i=u,o=p,c()}}function $r(){return ad()(ar,ar)}function zl(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Ie(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 Qt(t){return t=Ie(Math.abs(t)),t?t[1]:NaN}function ql(t,e){return function(r,i){for(var o=r.length,n=[],a=0,s=t[0],h=0;o>0&&s>0&&(h+s+1>i&&(s=Math.max(1,i-h)),n.push(r.substring(o-=s,o+s)),!((h+=s+1)>i));)s=t[a=(a+1)%t.length];return n.reverse().join(e)}}function Pl(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var sd=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ye(t){if(!(e=sd.exec(t)))throw new Error("invalid format: "+t);var e;return new Hi({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]})}ye.prototype=Hi.prototype;function Hi(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+""}Hi.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 $l(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 Sn;function Wl(t,e){var r=Ie(t,e);if(!r)return t+"";var i=r[0],o=r[1],n=o-(Sn=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")+Ie(t,Math.max(0,e+n-1))[0]}function vn(t,e){var r=Ie(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 wn={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:zl,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)=>vn(t*100,e),r:vn,s:Wl,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Bn(t){return t}var Hl=Array.prototype.map,Ul=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Yl(t){var e=t.grouping===void 0||t.thousands===void 0?Bn:ql(Hl.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?Bn:Pl(Hl.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"\u2212":t.minus+"",h=t.nan===void 0?"NaN":t.nan+"";function l(d){d=ye(d);var u=d.fill,p=d.align,T=d.sign,M=d.symbol,$=d.zero,q=d.width,G=d.comma,E=d.precision,F=d.trim,P=d.type;P==="n"?(G=!0,P="g"):wn[P]||(E===void 0&&(E=12),F=!0,P="g"),($||u==="0"&&p==="=")&&($=!0,u="0",p="=");var w=M==="$"?r:M==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",X=M==="$"?i:/[%p]/.test(P)?a:"",j=wn[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)?h:j(Math.abs(B),E),F&&(B=$l(B)),N&&+B==0&&T!=="+"&&(N=!1),k=(N?T==="("?T:s:T==="-"||T==="("?"":T)+k,g=(P==="s"?Ul[8+Sn/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 d+""},rt}function c(d,u){var p=l((d=ye(d),d.type="f",d)),T=Math.max(-8,Math.min(8,Math.floor(Qt(u)/3)))*3,M=Math.pow(10,-T),$=Ul[8+T/3];return function(q){return p(M*q)+$}}return{format:l,formatPrefix:c}}var Ui,Yi,Gi;Fn({thousands:",",grouping:[3],currency:["$",""]});function Fn(t){return Ui=Yl(t),Yi=Ui.format,Gi=Ui.formatPrefix,Ui}function Ln(t){return Math.max(0,-Qt(Math.abs(t)))}function Mn(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Qt(e)/3)))*3-Qt(Math.abs(t)))}function An(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Qt(e)-Qt(t))+1}function En(t,e,r,i){var o=tr(t,e,r),n;switch(i=ye(i??",f"),i.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return i.precision==null&&!isNaN(n=Mn(o,a))&&(i.precision=n),Gi(i,a)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(n=An(o,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=n-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(n=Ln(o))&&(i.precision=n-(i.type==="%")*2);break}}return Yi(i)}function ld(t){var e=t.domain;return t.ticks=function(r){var i=e();return wi(i[0],i[i.length-1],r??10)},t.tickFormat=function(r,i){var o=e();return En(o[0],o[o.length-1],r??10,i)},t.nice=function(r){r==null&&(r=10);var i=e(),o=0,n=i.length-1,a=i[o],s=i[n],h,l,c=10;for(s0;){if(l=Er(a,s,r),l===h)return i[o]=a,i[n]=s,e(i);if(l>0)a=Math.floor(a/l)*l,s=Math.ceil(s/l)*l;else if(l<0)a=Math.ceil(a*l)/l,s=Math.floor(s*l)/l;else break;h=l}return t},t}function Dn(){var t=$r();return t.copy=function(){return Wi(t,Dn())},xe.apply(t,arguments),ld(t)}var On=new Date,In=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 h=[];if(n=o.ceil(n),s=s==null?1:Math.floor(s),!(n0))return h;let l;do h.push(l=new Date(+n)),e(n,s),t(n);while(lot(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)=>(On.setTime(+n),In.setTime(+a),t(On),t(In),Math.floor(r(On,In))),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 Ne=ot(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Ne.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):Ne);var Gl=Ne.range;var Jt=ot(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*1e3)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),Vl=Jt.range;var sr=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()),hd=sr.range,Vi=ot(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),cd=Vi.range;var lr=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()),ud=lr.range,Xi=ot(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours()),fd=Xi.range;var ce=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),md=ce.range,Hr=ot(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),dd=Hr.range,ji=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)),pd=ji.range;function qe(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 ue=qe(0),hr=qe(1),jl=qe(2),Zl=qe(3),Ce=qe(4),Kl=qe(5),Ql=qe(6),Jl=ue.range,gd=hr.range,xd=jl.range,yd=Zl.range,Cd=Ce.range,_d=Kl.range,bd=Ql.range;function Pe(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 $e=Pe(0),cr=Pe(1),th=Pe(2),eh=Pe(3),_e=Pe(4),rh=Pe(5),ih=Pe(6),oh=$e.range,Td=cr.range,kd=th.range,Sd=eh.range,vd=_e.range,wd=rh.range,Bd=ih.range;var ur=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()),Fd=ur.range,Zi=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()),Ld=Zi.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 Md=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 Ad=Gt.range;function ah(t,e,r,i,o,n){let a=[[Jt,1,1e3],[Jt,5,5*1e3],[Jt,15,15*1e3],[Jt,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(l,c,d){let u=c$).right(a,u);if(p===a.length)return t.every(tr(l/31536e6,c/31536e6,d));if(p===0)return Ne.every(Math.max(tr(l,c,d),1));let[T,M]=a[u/a[p-1][2]53)return null;"w"in C||(C.w=1),"Z"in C?(J=qn(Ur(C.y,0,1)),Ct=J.getUTCDay(),J=Ct>4||Ct===0?cr.ceil(J):cr(J),J=Hr.offset(J,(C.V-1)*7),C.y=J.getUTCFullYear(),C.m=J.getUTCMonth(),C.d=J.getUTCDate()+(C.w+6)%7):(J=zn(Ur(C.y,0,1)),Ct=J.getDay(),J=Ct>4||Ct===0?hr.ceil(J):hr(J),J=ce.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?qn(Ur(C.y,0,1)).getUTCDay():zn(Ur(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,qn(C)):zn(C)}}function j(v,H,V,C){for(var mt=0,J=H.length,Ct=V.length,_t,Ot;mt=Ct)return-1;if(_t=H.charCodeAt(mt++),_t===37){if(_t=H.charAt(mt++),Ot=P[_t in sh?H.charAt(mt++):_t],!Ot||(C=Ot(v,V,C))<0)return-1}else if(_t!=V.charCodeAt(C++))return-1}return C}function W(v,H,V){var C=l.exec(H.slice(V));return C?(v.p=c.get(C[0].toLowerCase()),V+C[0].length):-1}function rt(v,H,V){var C=p.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=d.exec(H.slice(V));return C?(v.w=u.get(C[0].toLowerCase()),V+C[0].length):-1}function k(v,H,V){var C=q.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 h[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 h[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 sh={"-":"",_:" ",0:"0"},pt=/^\s*\d+/,Id=/^%/,Nd=/[\\^$*+?|[\]().{}]/g;function tt(t,e,r){var i=t<0?"-":"",o=(i?-t:t)+"",n=o.length;return i+(n[e.toLowerCase(),r]))}function zd(t,e,r){var i=pt.exec(e.slice(r,r+1));return i?(t.w=+i[0],r+i[0].length):-1}function qd(t,e,r){var i=pt.exec(e.slice(r,r+1));return i?(t.u=+i[0],r+i[0].length):-1}function Pd(t,e,r){var i=pt.exec(e.slice(r,r+2));return i?(t.U=+i[0],r+i[0].length):-1}function $d(t,e,r){var i=pt.exec(e.slice(r,r+2));return i?(t.V=+i[0],r+i[0].length):-1}function Wd(t,e,r){var i=pt.exec(e.slice(r,r+2));return i?(t.W=+i[0],r+i[0].length):-1}function lh(t,e,r){var i=pt.exec(e.slice(r,r+4));return i?(t.y=+i[0],r+i[0].length):-1}function hh(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 Hd(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 Ud(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 Yd(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 Gd(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 uh(t,e,r){var i=pt.exec(e.slice(r,r+2));return i?(t.H=+i[0],r+i[0].length):-1}function Vd(t,e,r){var i=pt.exec(e.slice(r,r+2));return i?(t.M=+i[0],r+i[0].length):-1}function Xd(t,e,r){var i=pt.exec(e.slice(r,r+2));return i?(t.S=+i[0],r+i[0].length):-1}function jd(t,e,r){var i=pt.exec(e.slice(r,r+3));return i?(t.L=+i[0],r+i[0].length):-1}function Zd(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 Kd(t,e,r){var i=Id.exec(e.slice(r,r+1));return i?r+i[0].length:-1}function Qd(t,e,r){var i=pt.exec(e.slice(r));return i?(t.Q=+i[0],r+i[0].length):-1}function Jd(t,e,r){var i=pt.exec(e.slice(r));return i?(t.s=+i[0],r+i[0].length):-1}function fh(t,e){return tt(t.getDate(),e,2)}function tp(t,e){return tt(t.getHours(),e,2)}function ep(t,e){return tt(t.getHours()%12||12,e,2)}function rp(t,e){return tt(1+ce.count(zt(t),t),e,3)}function xh(t,e){return tt(t.getMilliseconds(),e,3)}function ip(t,e){return xh(t,e)+"000"}function op(t,e){return tt(t.getMonth()+1,e,2)}function np(t,e){return tt(t.getMinutes(),e,2)}function ap(t,e){return tt(t.getSeconds(),e,2)}function sp(t){var e=t.getDay();return e===0?7:e}function lp(t,e){return tt(ue.count(zt(t)-1,t),e,2)}function yh(t){var e=t.getDay();return e>=4||e===0?Ce(t):Ce.ceil(t)}function hp(t,e){return t=yh(t),tt(Ce.count(zt(t),t)+(zt(t).getDay()===4),e,2)}function cp(t){return t.getDay()}function up(t,e){return tt(hr.count(zt(t)-1,t),e,2)}function fp(t,e){return tt(t.getFullYear()%100,e,2)}function mp(t,e){return t=yh(t),tt(t.getFullYear()%100,e,2)}function dp(t,e){return tt(t.getFullYear()%1e4,e,4)}function pp(t,e){var r=t.getDay();return t=r>=4||r===0?Ce(t):Ce.ceil(t),tt(t.getFullYear()%1e4,e,4)}function gp(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+tt(e/60|0,"0",2)+tt(e%60,"0",2)}function mh(t,e){return tt(t.getUTCDate(),e,2)}function xp(t,e){return tt(t.getUTCHours(),e,2)}function yp(t,e){return tt(t.getUTCHours()%12||12,e,2)}function Cp(t,e){return tt(1+Hr.count(Gt(t),t),e,3)}function Ch(t,e){return tt(t.getUTCMilliseconds(),e,3)}function _p(t,e){return Ch(t,e)+"000"}function bp(t,e){return tt(t.getUTCMonth()+1,e,2)}function Tp(t,e){return tt(t.getUTCMinutes(),e,2)}function kp(t,e){return tt(t.getUTCSeconds(),e,2)}function Sp(t){var e=t.getUTCDay();return e===0?7:e}function vp(t,e){return tt($e.count(Gt(t)-1,t),e,2)}function _h(t){var e=t.getUTCDay();return e>=4||e===0?_e(t):_e.ceil(t)}function wp(t,e){return t=_h(t),tt(_e.count(Gt(t),t)+(Gt(t).getUTCDay()===4),e,2)}function Bp(t){return t.getUTCDay()}function Fp(t,e){return tt(cr.count(Gt(t)-1,t),e,2)}function Lp(t,e){return tt(t.getUTCFullYear()%100,e,2)}function Mp(t,e){return t=_h(t),tt(t.getUTCFullYear()%100,e,2)}function Ap(t,e){return tt(t.getUTCFullYear()%1e4,e,4)}function Ep(t,e){var r=t.getUTCDay();return t=r>=4||r===0?_e(t):_e.ceil(t),tt(t.getUTCFullYear()%1e4,e,4)}function Dp(){return"+0000"}function dh(){return"%"}function ph(t){return+t}function gh(t){return Math.floor(+t/1e3)}var fr,Ki,bh,Th,kh;$n({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 $n(t){return fr=Pn(t),Ki=fr.format,bh=fr.parse,Th=fr.utcFormat,kh=fr.utcParse,fr}function Wn(t,e){t=t.slice();var r=0,i=t.length-1,o=t[r],n=t[i],a;return n1?0:t<-1?mr:Math.acos(t)}function Un(t){return t>=1?Vr:t<=-1?-Vr:Math.asin(t)}var Yn=Math.PI,Gn=2*Yn,He=1e-6,Rp=Gn-He;function Lh(t){this._+=t[0];for(let e=1,r=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Lh;let r=10**e;return function(i){this._+=i[0];for(let o=1,n=i.length;oHe)if(!(Math.abs(d*h-l*c)>He)||!n)this._append`L${this._x1=e},${this._y1=r}`;else{let p=i-a,T=o-s,M=h*h+l*l,$=p*p+T*T,q=Math.sqrt(M),G=Math.sqrt(u),E=n*Math.tan((Yn-Math.acos((M+u-$)/(2*q*G)))/2),F=E/G,P=E/q;Math.abs(F-1)>He&&this._append`L${e+F*c},${r+F*d}`,this._append`A${n},${n},0,0,${+(d*p>c*T)},${this._x1=e+P*h},${this._y1=r+P*l}`}}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),h=i*Math.sin(o),l=e+s,c=r+h,d=1^a,u=a?o-n:n-o;this._x1===null?this._append`M${l},${c}`:(Math.abs(this._x1-l)>He||Math.abs(this._y1-c)>He)&&this._append`L${l},${c}`,i&&(u<0&&(u=u%Gn+Gn),u>Rp?this._append`A${i},${i},0,1,${d},${e-s},${r-h}A${i},${i},0,1,${d},${this._x1=l},${this._y1=c}`:u>He&&this._append`A${i},${i},0,${+(u>=Yn)},${d},${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 Mh(){return new Ue}Mh.prototype=Ue.prototype;function Ji(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 Ue(e)}function qp(t){return t.innerRadius}function Pp(t){return t.outerRadius}function $p(t){return t.startAngle}function Wp(t){return t.endAngle}function Hp(t){return t&&t.padAngle}function Up(t,e,r,i,o,n,a,s){var h=r-t,l=i-e,c=a-o,d=s-n,u=d*h-c*l;if(!(u*ux*x+L*L&&(j=rt,W=B),{cx:j,cy:W,x01:-c,y01:-d,x11:j*(o/P-1),y11:W*(o/P-1)}}function Yp(){var t=qp,e=Pp,r=st(0),i=null,o=$p,n=Wp,a=Hp,s=null,h=Ji(l);function l(){var c,d,u=+t.apply(this,arguments),p=+e.apply(this,arguments),T=o.apply(this,arguments)-Vr,M=n.apply(this,arguments)-Vr,$=Hn(M-T),q=M>T;if(s||(s=c=h()),pgt))s.moveTo(0,0);else if($>dr-gt)s.moveTo(p*be(T),p*Vt(T)),s.arc(0,0,p,T,M,!q),u>gt&&(s.moveTo(u*be(M),u*Vt(M)),s.arc(0,0,u,M,T,q));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):We(u*u+p*p)),rt=Qi(Hn(p-u)/2,+r.apply(this,arguments)),B=rt,k=rt,g,x;if(W>gt){var L=Un(W/u*Vt(j)),S=Un(W/p*Vt(j));(w-=L*2)>gt?(L*=q?1:-1,F+=L,P-=L):(w=0,F=P=(T+M)/2),(X-=S*2)>gt?(S*=q?1:-1,G+=S,E-=S):(X=0,G=E=(T+M)/2)}var N=p*be(G),O=p*Vt(G),U=u*be(P),et=u*Vt(P);if(rt>gt){var Y=p*be(E),nt=p*Vt(E),Q=u*be(F),Bt=u*Vt(F),Z;if($gt?k>gt?(g=to(Q,Bt,N,O,p,k,q),x=to(Y,nt,U,et,p,k,q),s.moveTo(g.cx+g.x01,g.cy+g.y01),kgt)||!(w>gt)?s.lineTo(U,et):B>gt?(g=to(U,et,Y,nt,u,-B,q),x=to(N,O,Q,Bt,u,-B,q),s.lineTo(g.cx+g.x01,g.cy+g.y01),Bt?1:e>=t?0:NaN}function Ih(t){return t}function Vp(){var t=Ih,e=Oh,r=null,i=st(0),o=st(dr),n=st(0);function a(s){var h,l=(s=eo(s)).length,c,d,u=0,p=new Array(l),T=new Array(l),M=+i.apply(this,arguments),$=Math.min(dr,Math.max(-dr,o.apply(this,arguments)-M)),q,G=Math.min(Math.abs($)/l,n.apply(this,arguments)),E=G*($<0?-1:1),F;for(h=0;h0&&(u+=F);for(e!=null?p.sort(function(P,w){return e(T[P],T[w])}):r!=null&&p.sort(function(P,w){return r(s[P],s[w])}),h=0,d=u?($-l*E)/u:0;h0?F*d:0)+E,T[c]={data:s[c],index:h,value:F,startAngle:M,endAngle:q,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 pr(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 Xr(t){this._context=t}Xr.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:pr(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:pr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Xp(t){return new Xr(t)}var ro=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 jp(t){return new ro(t,!0)}function Zp(t){return new ro(t,!1)}function $t(){}function Nh(t){this._context=t}Nh.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:pr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Kp(t){return new Nh(t)}function Rh(t){this._context=t}Rh.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:pr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Qp(t){return new Rh(t)}function zh(t,e){this._basis=new Xr(t),this._beta=e}zh.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,h;++s<=r;)h=s/r,this._basis.point(this._beta*t[s]+(1-this._beta)*(i+h*n),this._beta*e[s]+(1-this._beta)*(o+h*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Jp=function t(e){function r(i){return e===1?new Xr(i):new zh(i,e)}return r.beta=function(i){return t(+i)},r}(.85);function gr(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 io(t,e){this._context=t,this._k=(1-e)/6}io.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:gr(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:gr(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 tg=function t(e){function r(i){return new io(i,e)}return r.tension=function(i){return t(+i)},r}(0);function oo(t,e){this._context=t,this._k=(1-e)/6}oo.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:gr(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 eg=function t(e){function r(i){return new oo(i,e)}return r.tension=function(i){return t(+i)},r}(0);function no(t,e){this._context=t,this._k=(1-e)/6}no.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:gr(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 rg=function t(e){function r(i){return new no(i,e)}return r.tension=function(i){return t(+i)},r}(0);function jr(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,h=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/h,o=(o*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/h}if(t._l23_a>gt){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);n=(n*l+t._x1*t._l23_2a-e*t._l12_2a)/c,a=(a*l+t._y1*t._l23_2a-r*t._l12_2a)/c}t._context.bezierCurveTo(i,o,n,a,t._x2,t._y2)}function qh(t,e){this._context=t,this._alpha=e}qh.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:jr(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 ig=function t(e){function r(i){return e?new qh(i,e):new io(i,0)}return r.alpha=function(i){return t(+i)},r}(.5);function Ph(t,e){this._context=t,this._alpha=e}Ph.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:jr(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 og=function t(e){function r(i){return e?new Ph(i,e):new oo(i,0)}return r.alpha=function(i){return t(+i)},r}(.5);function $h(t,e){this._context=t,this._alpha=e}$h.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:jr(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 ng=function t(e){function r(i){return e?new $h(i,e):new no(i,0)}return r.alpha=function(i){return t(+i)},r}(.5);function Wh(t){this._context=t}Wh.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 ag(t){return new Wh(t)}function Hh(t){return t<0?-1:1}function Uh(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(Hh(n)+Hh(a))*Math.min(Math.abs(n),Math.abs(a),.5*Math.abs(s))||0}function Yh(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Xn(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 ao(t){this._context=t}ao.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:Xn(this,this._t0,Yh(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,Xn(this,Yh(this,r=Uh(this,t,e)),r);break;default:Xn(this,this._t0,r=Uh(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function Gh(t){this._context=new Vh(t)}(Gh.prototype=Object.create(ao.prototype)).point=function(t,e){ao.prototype.point.call(this,e,t)};function Vh(t){this._context=t}Vh.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 sg(t){return new ao(t)}function lg(t){return new Gh(t)}function jh(t){this._context=t}jh.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=Xh(t),o=Xh(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 cg(t){return new so(t,.5)}function ug(t){return new so(t,0)}function fg(t){return new so(t,1)}var mg={value:()=>{}};function Kh(){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}})}lo.prototype=Kh.prototype={constructor:lo,on:function(t,e){var r=this._,i=dg(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;--xr}function Qh(){Ye=(co=Jr.now())+uo,xr=Kr=0;try{ec()}finally{xr=0,yg(),Ye=0}}function xg(){var t=Jr.now(),e=t-co;e>Jh&&(uo-=e,co=t)}function yg(){for(var t,e=ho,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:ho=r);Qr=t,Zn(i)}function Zn(t){if(!xr){Kr&&(Kr=clearTimeout(Kr));var e=t-Ye;e>24?(t<1/0&&(Kr=setTimeout(Qh,t-Jr.now()-uo)),Zr&&(Zr=clearInterval(Zr))):(Zr||(co=Jr.now(),Zr=setInterval(xg,Jh)),xr=1,tc(Qh))}}function mo(t,e,r){var i=new ti;return e=e==null?0:+e,i.restart(o=>{i.stop(),t(o+e)},e,r),i}var Cg=jn("start","end","cancel","interrupt"),_g=[],oc=0,rc=1,go=2,po=3,ic=4,xo=5,ri=6;function Te(t,e,r,i,o,n){var a=t.__transition;if(!a)t.__transition={};else if(r in a)return;bg(t,r,{name:e,index:i,group:o,on:Cg,tween:_g,time:n.time,delay:n.delay,duration:n.duration,ease:n.ease,timer:null,state:oc})}function ii(t,e){var r=ft(t,e);if(r.state>oc)throw new Error("too late; already scheduled");return r}function vt(t,e){var r=ft(t,e);if(r.state>po)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 bg(t,e,r){var i=t.__transition,o;i[e]=r,r.timer=fo(n,0,r.time);function n(l){r.state=rc,r.timer.restart(a,r.delay,r.time),r.delay<=l&&a(l-r.delay)}function a(l){var c,d,u,p;if(r.state!==rc)return h();for(c in i)if(p=i[c],p.name===r.name){if(p.state===po)return mo(a);p.state===ic?(p.state=ri,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete i[c]):+cgo&&i.state=0&&(e=e.slice(0,r)),!e||e==="start"})}function $g(t,e,r){var i,o,n=Pg(e)?ii:vt;return function(){var a=n(this,t),s=a.on;s!==i&&(o=(i=s).copy()).on(e,r),a.on=o}}function pc(t,e){var r=this._id;return arguments.length<2?ft(this.node(),r).on.on(t):this.each($g(r,t,e))}function Wg(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function gc(){return this.on("end.remove",Wg(this._id))}function xc(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Le(t));for(var i=this._groups,o=i.length,n=new Array(o),a=0;a