-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchunk-FUWO5VGL.js
88 lines (79 loc) · 197 KB
/
chunk-FUWO5VGL.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import{$ as En,G as dn,J as fn,K as pn,L as mn,M as gn,N as Cn,O as yn,P as bn,Q as xn,R as Tn,S as Sn,T as _n,U as kn,V as vn,W as Bn,X as Ln,Y as Fn,Z as An,_ as wn,e as Lt}from"./chunk-6D2PQ4BF.js";import{a as Ot,b as Mt,f as ji,h as Wi,i as z}from"./chunk-BL3FZZIZ.js";var Mn=ji((Hi,Ui)=>{"use strict";(function(t,e){typeof Hi=="object"&&typeof Ui<"u"?Ui.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(Hi,function(){"use strict";var t=1e3,e=6e4,r=36e5,i="millisecond",o="second",n="minute",a="hour",s="day",l="week",d="month",m="quarter",f="year",c="date",p="Invalid Date",E=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,I=/\[([^\]]+)]|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,L={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(D){var x=["th","st","nd","rd"],b=D%100;return"["+D+(x[(b-20)%10]||x[b]||x[0])+"]"}},N=function(D,x,b){var v=String(D);return!v||v.length>=x?D:""+Array(x+1-v.length).join(b)+D},T={s:N,z:function(D){var x=-D.utcOffset(),b=Math.abs(x),v=Math.floor(b/60),y=b%60;return(x<=0?"+":"-")+N(v,2,"0")+":"+N(y,2,"0")},m:function D(x,b){if(x.date()<b.date())return-D(b,x);var v=12*(b.year()-x.year())+(b.month()-x.month()),y=x.clone().add(v,d),$=b-y<0,R=x.clone().add(v+($?-1:1),d);return+(-(v+(b-y)/($?y-R:R-y))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:d,y:f,w:l,d:s,D:c,h:a,m:n,s:o,ms:i,Q:m}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},G="en",P={};P[G]=L;var J="$isDayjsObject",V=function(D){return D instanceof xt||!(!D||!D[J])},j=function D(x,b,v){var y;if(!x)return G;if(typeof x=="string"){var $=x.toLowerCase();P[$]&&(y=$),b&&(P[$]=b,y=$);var R=x.split("-");if(!y&&R.length>1)return D(R[0])}else{var q=x.name;P[q]=x,y=q}return!v&&y&&(G=y),y||!v&&G},_=function(D,x){if(V(D))return D.clone();var b=typeof x=="object"?x:{};return b.date=D,b.args=arguments,new xt(b)},U=T;U.l=j,U.i=V,U.w=function(D,x){return _(D,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var xt=function(){function D(b){this.$L=j(b.locale,null,!0),this.parse(b),this.$x=this.$x||b.x||{},this[J]=!0}var x=D.prototype;return x.parse=function(b){this.$d=function(v){var y=v.date,$=v.utc;if(y===null)return new Date(NaN);if(U.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var R=y.match(E);if(R){var q=R[2]-1||0,K=(R[7]||"0").substring(0,3);return $?new Date(Date.UTC(R[1],q,R[3]||1,R[4]||0,R[5]||0,R[6]||0,K)):new Date(R[1],q,R[3]||1,R[4]||0,R[5]||0,R[6]||0,K)}}return new Date(y)}(b),this.init()},x.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},x.$utils=function(){return U},x.isValid=function(){return this.$d.toString()!==p},x.isSame=function(b,v){var y=_(b);return this.startOf(v)<=y&&y<=this.endOf(v)},x.isAfter=function(b,v){return _(b)<this.startOf(v)},x.isBefore=function(b,v){return this.endOf(v)<_(b)},x.$g=function(b,v,y){return U.u(b)?this[v]:this.set(y,b)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(b,v){var y=this,$=!!U.u(v)||v,R=U.p(b),q=function(Ut,ht){var Dt=U.w(y.$u?Date.UTC(y.$y,ht,Ut):new Date(y.$y,ht,Ut),y);return $?Dt:Dt.endOf(s)},K=function(Ut,ht){return U.w(y.toDate()[Ut].apply(y.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(ht)),y)},Q=this.$W,tt=this.$M,Tt=this.$D,ie="set"+(this.$u?"UTC":"");switch(R){case f:return $?q(1,0):q(31,11);case d:return $?q(1,tt):q(0,tt+1);case l:var Ht=this.$locale().weekStart||0,ge=(Q<Ht?Q+7:Q)-Ht;return q($?Tt-ge:Tt+(6-ge),tt);case s:case c:return K(ie+"Hours",0);case a:return K(ie+"Minutes",1);case n:return K(ie+"Seconds",2);case o:return K(ie+"Milliseconds",3);default:return this.clone()}},x.endOf=function(b){return this.startOf(b,!1)},x.$set=function(b,v){var y,$=U.p(b),R="set"+(this.$u?"UTC":""),q=(y={},y[s]=R+"Date",y[c]=R+"Date",y[d]=R+"Month",y[f]=R+"FullYear",y[a]=R+"Hours",y[n]=R+"Minutes",y[o]=R+"Seconds",y[i]=R+"Milliseconds",y)[$],K=$===s?this.$D+(v-this.$W):v;if($===d||$===f){var Q=this.clone().set(c,1);Q.$d[q](K),Q.init(),this.$d=Q.set(c,Math.min(this.$D,Q.daysInMonth())).$d}else q&&this.$d[q](K);return this.init(),this},x.set=function(b,v){return this.clone().$set(b,v)},x.get=function(b){return this[U.p(b)]()},x.add=function(b,v){var y,$=this;b=Number(b);var R=U.p(v),q=function(tt){var Tt=_($);return U.w(Tt.date(Tt.date()+Math.round(tt*b)),$)};if(R===d)return this.set(d,this.$M+b);if(R===f)return this.set(f,this.$y+b);if(R===s)return q(1);if(R===l)return q(7);var K=(y={},y[n]=e,y[a]=r,y[o]=t,y)[R]||1,Q=this.$d.getTime()+b*K;return U.w(Q,this)},x.subtract=function(b,v){return this.add(-1*b,v)},x.format=function(b){var v=this,y=this.$locale();if(!this.isValid())return y.invalidDate||p;var $=b||"YYYY-MM-DDTHH:mm:ssZ",R=U.z(this),q=this.$H,K=this.$m,Q=this.$M,tt=y.weekdays,Tt=y.months,ie=y.meridiem,Ht=function(ht,Dt,Ce,ye){return ht&&(ht[Dt]||ht(v,$))||Ce[Dt].slice(0,ye)},ge=function(ht){return U.s(q%12||12,ht,"0")},Ut=ie||function(ht,Dt,Ce){var ye=ht<12?"AM":"PM";return Ce?ye.toLowerCase():ye};return $.replace(I,function(ht,Dt){return Dt||function(Ce){switch(Ce){case"YY":return String(v.$y).slice(-2);case"YYYY":return U.s(v.$y,4,"0");case"M":return Q+1;case"MM":return U.s(Q+1,2,"0");case"MMM":return Ht(y.monthsShort,Q,Tt,3);case"MMMM":return Ht(Tt,Q);case"D":return v.$D;case"DD":return U.s(v.$D,2,"0");case"d":return String(v.$W);case"dd":return Ht(y.weekdaysMin,v.$W,tt,2);case"ddd":return Ht(y.weekdaysShort,v.$W,tt,3);case"dddd":return tt[v.$W];case"H":return String(q);case"HH":return U.s(q,2,"0");case"h":return ge(1);case"hh":return ge(2);case"a":return Ut(q,K,!0);case"A":return Ut(q,K,!1);case"m":return String(K);case"mm":return U.s(K,2,"0");case"s":return String(v.$s);case"ss":return U.s(v.$s,2,"0");case"SSS":return U.s(v.$ms,3,"0");case"Z":return R}return null}(ht)||R.replace(":","")})},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(b,v,y){var $,R=this,q=U.p(v),K=_(b),Q=(K.utcOffset()-this.utcOffset())*e,tt=this-K,Tt=function(){return U.m(R,K)};switch(q){case f:$=Tt()/12;break;case d:$=Tt();break;case m:$=Tt()/3;break;case l:$=(tt-Q)/6048e5;break;case s:$=(tt-Q)/864e5;break;case a:$=tt/r;break;case n:$=tt/e;break;case o:$=tt/t;break;default:$=tt}return y?$:U.a($)},x.daysInMonth=function(){return this.endOf(d).$D},x.$locale=function(){return P[this.$L]},x.locale=function(b,v){if(!b)return this.$L;var y=this.clone(),$=j(b,v,!0);return $&&(y.$L=$),y},x.clone=function(){return U.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},D}(),Wt=xt.prototype;return _.prototype=Wt,[["$ms",i],["$s",o],["$m",n],["$H",a],["$W",s],["$M",d],["$y",f],["$D",c]].forEach(function(D){Wt[D[1]]=function(x){return this.$g(x,D[0],D[1])}}),_.extend=function(D,x){return D.$i||(D(x,xt,_),D.$i=!0),_},_.locale=j,_.isDayjs=V,_.unix=function(D){return _(1e3*D)},_.en=P[G],_.Ls=P,_.p={},_})});var Dn=ji(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.sanitizeUrl=Xt.BLANK_URL=void 0;var zc=/^([^\w]*)(javascript|data|vbscript)/im,jc=/&#(\w+)(^\w|;)?/g,Wc=/&(newline|tab);/gi,In=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,Hc=/^.+(:|:)/gim,Uc=[".","/"];Xt.BLANK_URL="about:blank";function Yc(t){return Uc.indexOf(t[0])>-1}function Gc(t){var e=t.replace(In,"");return e.replace(jc,function(r,i){return String.fromCharCode(i)})}function Vc(t){if(!t)return Xt.BLANK_URL;var e=Gc(t).replace(Wc,"").replace(In,"").trim();if(!e)return Xt.BLANK_URL;if(Yc(e))return e;var r=e.match(Hc);if(!r)return e;var i=r[0];return zc.test(i)?Xt.BLANK_URL:e}Xt.sanitizeUrl=Vc});var Rn=ji((Yi,Gi)=>{"use strict";(function(t,e){typeof Yi=="object"&&typeof Gi<"u"?Gi.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.DOMPurify=e())})(Yi,function(){"use strict";let{entries:t,setPrototypeOf:e,isFrozen:r,getPrototypeOf:i,getOwnPropertyDescriptor:o}=Object,{freeze:n,seal:a,create:s}=Object,{apply:l,construct:d}=typeof Reflect<"u"&&Reflect;n||(n=function(F){return F}),a||(a=function(F){return F}),l||(l=function(F,Y,W){return F.apply(Y,W)}),d||(d=function(F,Y){return new F(...Y)});let m=V(Array.prototype.forEach),f=V(Array.prototype.pop),c=V(Array.prototype.push),p=V(String.prototype.toLowerCase),E=V(String.prototype.toString),I=V(String.prototype.match),L=V(String.prototype.replace),N=V(String.prototype.indexOf),T=V(String.prototype.trim),G=V(Object.prototype.hasOwnProperty),P=V(RegExp.prototype.test),J=j(TypeError);function V(H){return function(F){for(var Y=arguments.length,W=new Array(Y>1?Y-1:0),dt=1;dt<Y;dt++)W[dt-1]=arguments[dt];return l(H,F,W)}}function j(H){return function(){for(var F=arguments.length,Y=new Array(F),W=0;W<F;W++)Y[W]=arguments[W];return d(H,Y)}}function _(H,F){let Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p;e&&e(H,null);let W=F.length;for(;W--;){let dt=F[W];if(typeof dt=="string"){let Yt=Y(dt);Yt!==dt&&(r(F)||(F[W]=Yt),dt=Yt)}H[dt]=!0}return H}function U(H){for(let F=0;F<H.length;F++)G(H,F)||(H[F]=null);return H}function xt(H){let F=s(null);for(let[Y,W]of t(H))G(H,Y)&&(Array.isArray(W)?F[Y]=U(W):W&&typeof W=="object"&&W.constructor===Object?F[Y]=xt(W):F[Y]=W);return F}function Wt(H,F){for(;H!==null;){let W=o(H,F);if(W){if(W.get)return V(W.get);if(typeof W.value=="function")return V(W.value)}H=i(H)}function Y(){return null}return Y}let D=n(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),x=n(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),b=n(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),v=n(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),y=n(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),$=n(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),R=n(["#text"]),q=n(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),K=n(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Q=n(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),tt=n(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Tt=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ie=a(/<%[\w\W]*|[\w\W]*%>/gm),Ht=a(/\${[\w\W]*}/gm),ge=a(/^data-[\-\w.\u00B7-\uFFFF]/),Ut=a(/^aria-[\-\w]+$/),ht=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Dt=a(/^(?:\w+script|data):/i),Ce=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ye=a(/^html$/i),mc=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var Io=Object.freeze({__proto__:null,MUSTACHE_EXPR:Tt,ERB_EXPR:ie,TMPLIT_EXPR:Ht,DATA_ATTR:ge,ARIA_ATTR:Ut,IS_ALLOWED_URI:ht,IS_SCRIPT_OR_DATA:Dt,ATTR_WHITESPACE:Ce,DOCTYPE_NAME:ye,CUSTOM_ELEMENT:mc});let ir={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},gc=function(){return typeof window>"u"?null:window},Cc=function(F,Y){if(typeof F!="object"||typeof F.createPolicy!="function")return null;let W=null,dt="data-tt-policy-suffix";Y&&Y.hasAttribute(dt)&&(W=Y.getAttribute(dt));let Yt="dompurify"+(W?"#"+W:"");try{return F.createPolicy(Yt,{createHTML(Ee){return Ee},createScriptURL(Ee){return Ee}})}catch{return console.warn("TrustedTypes policy "+Yt+" could not be created."),null}};function Do(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gc(),F=A=>Do(A);if(F.version="3.1.5",F.removed=[],!H||!H.document||H.document.nodeType!==ir.document)return F.isSupported=!1,F;let{document:Y}=H,W=Y,dt=W.currentScript,{DocumentFragment:Yt,HTMLTemplateElement:Ee,Node:Bi,Element:Ro,NodeFilter:or,NamedNodeMap:bc=H.NamedNodeMap||H.MozNamedAttrMap,HTMLFormElement:xc,DOMParser:Tc,trustedTypes:Br}=H,Lr=Ro.prototype,Sc=Wt(Lr,"cloneNode"),_c=Wt(Lr,"nextSibling"),kc=Wt(Lr,"childNodes"),Li=Wt(Lr,"parentNode");if(typeof Ee=="function"){let A=Y.createElement("template");A.content&&A.content.ownerDocument&&(Y=A.content.ownerDocument)}let gt,nr="",{implementation:Fi,createNodeIterator:vc,createDocumentFragment:Bc,getElementsByTagName:Lc}=Y,{importNode:Fc}=W,Rt={};F.isSupported=typeof t=="function"&&typeof Li=="function"&&Fi&&Fi.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Ai,ERB_EXPR:wi,TMPLIT_EXPR:Ei,DATA_ATTR:Ac,ARIA_ATTR:wc,IS_SCRIPT_OR_DATA:Ec,ATTR_WHITESPACE:Po,CUSTOM_ELEMENT:Oc}=Io,{IS_ALLOWED_URI:$o}=Io,st=null,qo=_({},[...D,...x,...b,...y,...R]),lt=null,No=_({},[...q,...K,...Q,...tt]),et=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ar=null,Oi=null,zo=!0,Mi=!0,jo=!1,Wo=!0,Oe=!1,Ii=!0,be=!1,Di=!1,Ri=!1,Me=!1,Fr=!1,Ar=!1,Ho=!0,Uo=!1,Mc="user-content-",Pi=!0,sr=!1,Ie={},De=null,Yo=_({},["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"]),Go=null,Vo=_({},["audio","video","img","source","image","track"]),$i=null,Xo=_({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),wr="http://www.w3.org/1998/Math/MathML",Er="http://www.w3.org/2000/svg",Gt="http://www.w3.org/1999/xhtml",Re=Gt,qi=!1,Ni=null,Ic=_({},[wr,Er,Gt],E),lr=null,Dc=["application/xhtml+xml","text/html"],Rc="text/html",ct=null,Pe=null,Pc=Y.createElement("form"),Ko=function(h){return h instanceof RegExp||h instanceof Function},zi=function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Pe&&Pe===h)){if((!h||typeof h!="object")&&(h={}),h=xt(h),lr=Dc.indexOf(h.PARSER_MEDIA_TYPE)===-1?Rc:h.PARSER_MEDIA_TYPE,ct=lr==="application/xhtml+xml"?E:p,st=G(h,"ALLOWED_TAGS")?_({},h.ALLOWED_TAGS,ct):qo,lt=G(h,"ALLOWED_ATTR")?_({},h.ALLOWED_ATTR,ct):No,Ni=G(h,"ALLOWED_NAMESPACES")?_({},h.ALLOWED_NAMESPACES,E):Ic,$i=G(h,"ADD_URI_SAFE_ATTR")?_(xt(Xo),h.ADD_URI_SAFE_ATTR,ct):Xo,Go=G(h,"ADD_DATA_URI_TAGS")?_(xt(Vo),h.ADD_DATA_URI_TAGS,ct):Vo,De=G(h,"FORBID_CONTENTS")?_({},h.FORBID_CONTENTS,ct):Yo,ar=G(h,"FORBID_TAGS")?_({},h.FORBID_TAGS,ct):{},Oi=G(h,"FORBID_ATTR")?_({},h.FORBID_ATTR,ct):{},Ie=G(h,"USE_PROFILES")?h.USE_PROFILES:!1,zo=h.ALLOW_ARIA_ATTR!==!1,Mi=h.ALLOW_DATA_ATTR!==!1,jo=h.ALLOW_UNKNOWN_PROTOCOLS||!1,Wo=h.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Oe=h.SAFE_FOR_TEMPLATES||!1,Ii=h.SAFE_FOR_XML!==!1,be=h.WHOLE_DOCUMENT||!1,Me=h.RETURN_DOM||!1,Fr=h.RETURN_DOM_FRAGMENT||!1,Ar=h.RETURN_TRUSTED_TYPE||!1,Ri=h.FORCE_BODY||!1,Ho=h.SANITIZE_DOM!==!1,Uo=h.SANITIZE_NAMED_PROPS||!1,Pi=h.KEEP_CONTENT!==!1,sr=h.IN_PLACE||!1,$o=h.ALLOWED_URI_REGEXP||ht,Re=h.NAMESPACE||Gt,et=h.CUSTOM_ELEMENT_HANDLING||{},h.CUSTOM_ELEMENT_HANDLING&&Ko(h.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(et.tagNameCheck=h.CUSTOM_ELEMENT_HANDLING.tagNameCheck),h.CUSTOM_ELEMENT_HANDLING&&Ko(h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(et.attributeNameCheck=h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),h.CUSTOM_ELEMENT_HANDLING&&typeof h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(et.allowCustomizedBuiltInElements=h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Oe&&(Mi=!1),Fr&&(Me=!0),Ie&&(st=_({},R),lt=[],Ie.html===!0&&(_(st,D),_(lt,q)),Ie.svg===!0&&(_(st,x),_(lt,K),_(lt,tt)),Ie.svgFilters===!0&&(_(st,b),_(lt,K),_(lt,tt)),Ie.mathMl===!0&&(_(st,y),_(lt,Q),_(lt,tt))),h.ADD_TAGS&&(st===qo&&(st=xt(st)),_(st,h.ADD_TAGS,ct)),h.ADD_ATTR&&(lt===No&&(lt=xt(lt)),_(lt,h.ADD_ATTR,ct)),h.ADD_URI_SAFE_ATTR&&_($i,h.ADD_URI_SAFE_ATTR,ct),h.FORBID_CONTENTS&&(De===Yo&&(De=xt(De)),_(De,h.FORBID_CONTENTS,ct)),Pi&&(st["#text"]=!0),be&&_(st,["html","head","body"]),st.table&&(_(st,["tbody"]),delete ar.tbody),h.TRUSTED_TYPES_POLICY){if(typeof h.TRUSTED_TYPES_POLICY.createHTML!="function")throw J('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof h.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw J('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');gt=h.TRUSTED_TYPES_POLICY,nr=gt.createHTML("")}else gt===void 0&&(gt=Cc(Br,dt)),gt!==null&&typeof nr=="string"&&(nr=gt.createHTML(""));n&&n(h),Pe=h}},Zo=_({},["mi","mo","mn","ms","mtext"]),Jo=_({},["foreignobject","annotation-xml"]),$c=_({},["title","style","font","a","script"]),Qo=_({},[...x,...b,...v]),tn=_({},[...y,...$]),qc=function(h){let g=Li(h);(!g||!g.tagName)&&(g={namespaceURI:Re,tagName:"template"});let S=p(h.tagName),X=p(g.tagName);return Ni[h.namespaceURI]?h.namespaceURI===Er?g.namespaceURI===Gt?S==="svg":g.namespaceURI===wr?S==="svg"&&(X==="annotation-xml"||Zo[X]):!!Qo[S]:h.namespaceURI===wr?g.namespaceURI===Gt?S==="math":g.namespaceURI===Er?S==="math"&&Jo[X]:!!tn[S]:h.namespaceURI===Gt?g.namespaceURI===Er&&!Jo[X]||g.namespaceURI===wr&&!Zo[X]?!1:!tn[S]&&($c[S]||!Qo[S]):!!(lr==="application/xhtml+xml"&&Ni[h.namespaceURI]):!1},Pt=function(h){c(F.removed,{element:h});try{h.parentNode.removeChild(h)}catch{h.remove()}},Or=function(h,g){try{c(F.removed,{attribute:g.getAttributeNode(h),from:g})}catch{c(F.removed,{attribute:null,from:g})}if(g.removeAttribute(h),h==="is"&&!lt[h])if(Me||Fr)try{Pt(g)}catch{}else try{g.setAttribute(h,"")}catch{}},en=function(h){let g=null,S=null;if(Ri)h="<remove></remove>"+h;else{let ut=I(h,/^[\r\n\t ]+/);S=ut&&ut[0]}lr==="application/xhtml+xml"&&Re===Gt&&(h='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+h+"</body></html>");let X=gt?gt.createHTML(h):h;if(Re===Gt)try{g=new Tc().parseFromString(X,lr)}catch{}if(!g||!g.documentElement){g=Fi.createDocument(Re,"template",null);try{g.documentElement.innerHTML=qi?nr:X}catch{}}let ft=g.body||g.documentElement;return h&&S&&ft.insertBefore(Y.createTextNode(S),ft.childNodes[0]||null),Re===Gt?Lc.call(g,be?"html":"body")[0]:be?g.documentElement:ft},rn=function(h){return vc.call(h.ownerDocument||h,h,or.SHOW_ELEMENT|or.SHOW_COMMENT|or.SHOW_TEXT|or.SHOW_PROCESSING_INSTRUCTION|or.SHOW_CDATA_SECTION,null)},on=function(h){return h instanceof xc&&(typeof h.nodeName!="string"||typeof h.textContent!="string"||typeof h.removeChild!="function"||!(h.attributes instanceof bc)||typeof h.removeAttribute!="function"||typeof h.setAttribute!="function"||typeof h.namespaceURI!="string"||typeof h.insertBefore!="function"||typeof h.hasChildNodes!="function")},nn=function(h){return typeof Bi=="function"&&h instanceof Bi},Vt=function(h,g,S){Rt[h]&&m(Rt[h],X=>{X.call(F,g,S,Pe)})},an=function(h){let g=null;if(Vt("beforeSanitizeElements",h,null),on(h))return Pt(h),!0;let S=ct(h.nodeName);if(Vt("uponSanitizeElement",h,{tagName:S,allowedTags:st}),h.hasChildNodes()&&!nn(h.firstElementChild)&&P(/<[/\w]/g,h.innerHTML)&&P(/<[/\w]/g,h.textContent)||h.nodeType===ir.progressingInstruction||Ii&&h.nodeType===ir.comment&&P(/<[/\w]/g,h.data))return Pt(h),!0;if(!st[S]||ar[S]){if(!ar[S]&&ln(S)&&(et.tagNameCheck instanceof RegExp&&P(et.tagNameCheck,S)||et.tagNameCheck instanceof Function&&et.tagNameCheck(S)))return!1;if(Pi&&!De[S]){let X=Li(h)||h.parentNode,ft=kc(h)||h.childNodes;if(ft&&X){let ut=ft.length;for(let St=ut-1;St>=0;--St){let $t=Sc(ft[St],!0);$t.__removalCount=(h.__removalCount||0)+1,X.insertBefore($t,_c(h))}}}return Pt(h),!0}return h instanceof Ro&&!qc(h)||(S==="noscript"||S==="noembed"||S==="noframes")&&P(/<\/no(script|embed|frames)/i,h.innerHTML)?(Pt(h),!0):(Oe&&h.nodeType===ir.text&&(g=h.textContent,m([Ai,wi,Ei],X=>{g=L(g,X," ")}),h.textContent!==g&&(c(F.removed,{element:h.cloneNode()}),h.textContent=g)),Vt("afterSanitizeElements",h,null),!1)},sn=function(h,g,S){if(Ho&&(g==="id"||g==="name")&&(S in Y||S in Pc))return!1;if(!(Mi&&!Oi[g]&&P(Ac,g))){if(!(zo&&P(wc,g))){if(!lt[g]||Oi[g]){if(!(ln(h)&&(et.tagNameCheck instanceof RegExp&&P(et.tagNameCheck,h)||et.tagNameCheck instanceof Function&&et.tagNameCheck(h))&&(et.attributeNameCheck instanceof RegExp&&P(et.attributeNameCheck,g)||et.attributeNameCheck instanceof Function&&et.attributeNameCheck(g))||g==="is"&&et.allowCustomizedBuiltInElements&&(et.tagNameCheck instanceof RegExp&&P(et.tagNameCheck,S)||et.tagNameCheck instanceof Function&&et.tagNameCheck(S))))return!1}else if(!$i[g]){if(!P($o,L(S,Po,""))){if(!((g==="src"||g==="xlink:href"||g==="href")&&h!=="script"&&N(S,"data:")===0&&Go[h])){if(!(jo&&!P(Ec,L(S,Po,"")))){if(S)return!1}}}}}}return!0},ln=function(h){return h!=="annotation-xml"&&I(h,Oc)},cn=function(h){Vt("beforeSanitizeAttributes",h,null);let{attributes:g}=h;if(!g)return;let S={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:lt},X=g.length;for(;X--;){let ft=g[X],{name:ut,namespaceURI:St,value:$t}=ft,cr=ct(ut),Ct=ut==="value"?$t:T($t);if(S.attrName=cr,S.attrValue=Ct,S.keepAttr=!0,S.forceKeepAttr=void 0,Vt("uponSanitizeAttribute",h,S),Ct=S.attrValue,S.forceKeepAttr||(Or(ut,h),!S.keepAttr))continue;if(!Wo&&P(/\/>/i,Ct)){Or(ut,h);continue}if(Ii&&P(/((--!?|])>)|<\/(style|title)/i,Ct)){Or(ut,h);continue}Oe&&m([Ai,wi,Ei],un=>{Ct=L(Ct,un," ")});let hn=ct(h.nodeName);if(sn(hn,cr,Ct)){if(Uo&&(cr==="id"||cr==="name")&&(Or(ut,h),Ct=Mc+Ct),gt&&typeof Br=="object"&&typeof Br.getAttributeType=="function"&&!St)switch(Br.getAttributeType(hn,cr)){case"TrustedHTML":{Ct=gt.createHTML(Ct);break}case"TrustedScriptURL":{Ct=gt.createScriptURL(Ct);break}}try{St?h.setAttributeNS(St,ut,Ct):h.setAttribute(ut,Ct),on(h)?Pt(h):f(F.removed)}catch{}}}Vt("afterSanitizeAttributes",h,null)},Nc=function A(h){let g=null,S=rn(h);for(Vt("beforeSanitizeShadowDOM",h,null);g=S.nextNode();)Vt("uponSanitizeShadowNode",g,null),!an(g)&&(g.content instanceof Yt&&A(g.content),cn(g));Vt("afterSanitizeShadowDOM",h,null)};return F.sanitize=function(A){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=null,S=null,X=null,ft=null;if(qi=!A,qi&&(A="<!-->"),typeof A!="string"&&!nn(A))if(typeof A.toString=="function"){if(A=A.toString(),typeof A!="string")throw J("dirty is not a string, aborting")}else throw J("toString is not a function");if(!F.isSupported)return A;if(Di||zi(h),F.removed=[],typeof A=="string"&&(sr=!1),sr){if(A.nodeName){let $t=ct(A.nodeName);if(!st[$t]||ar[$t])throw J("root node is forbidden and cannot be sanitized in-place")}}else if(A instanceof Bi)g=en("<!---->"),S=g.ownerDocument.importNode(A,!0),S.nodeType===ir.element&&S.nodeName==="BODY"||S.nodeName==="HTML"?g=S:g.appendChild(S);else{if(!Me&&!Oe&&!be&&A.indexOf("<")===-1)return gt&&Ar?gt.createHTML(A):A;if(g=en(A),!g)return Me?null:Ar?nr:""}g&&Ri&&Pt(g.firstChild);let ut=rn(sr?A:g);for(;X=ut.nextNode();)an(X)||(X.content instanceof Yt&&Nc(X.content),cn(X));if(sr)return A;if(Me){if(Fr)for(ft=Bc.call(g.ownerDocument);g.firstChild;)ft.appendChild(g.firstChild);else ft=g;return(lt.shadowroot||lt.shadowrootmode)&&(ft=Fc.call(W,ft,!0)),ft}let St=be?g.outerHTML:g.innerHTML;return be&&st["!doctype"]&&g.ownerDocument&&g.ownerDocument.doctype&&g.ownerDocument.doctype.name&&P(ye,g.ownerDocument.doctype.name)&&(St="<!DOCTYPE "+g.ownerDocument.doctype.name+`>
`+St),Oe&&m([Ai,wi,Ei],$t=>{St=L(St,$t," ")}),gt&&Ar?gt.createHTML(St):St},F.setConfig=function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zi(A),Di=!0},F.clearConfig=function(){Pe=null,Di=!1},F.isValidAttribute=function(A,h,g){Pe||zi({});let S=ct(A),X=ct(h);return sn(S,X,g)},F.addHook=function(A,h){typeof h=="function"&&(Rt[A]=Rt[A]||[],c(Rt[A],h))},F.removeHook=function(A){if(Rt[A])return f(Rt[A])},F.removeHooks=function(A){Rt[A]&&(Rt[A]=[])},F.removeAllHooks=function(){Rt={}},F}var yc=Do();return yc})});function On(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=Array.from(typeof t=="string"?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var o=i.reduce(function(s,l){var d=l.match(/\n([\t ]+|(?!\s).)/g);return d?s.concat(d.map(function(m){var f,c;return(c=(f=m.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&c!==void 0?c:0})):s},[]);if(o.length){var n=new RegExp(`
[ ]{`+Math.min.apply(Math,o)+"}","g");i=i.map(function(s){return s.replace(n,`
`)})}i[0]=i[0].replace(/^\r?\n/,"");var a=i[0];return e.forEach(function(s,l){var d=a.match(/(?:^|\n)( *)$/),m=d?d[1]:"",f=s;typeof s=="string"&&s.includes(`
`)&&(f=String(s).split(`
`).map(function(c,p){return p===0?c:""+m+c}).join(`
`)),a+=f+i[l+1]}),a}var Mr={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<.16666666666666666?t+(e-t)*6*r:r<.5?e:r<.6666666666666666?t+(e-t)*(.6666666666666666-r)*6:t),hsl2rgb:({h:t,s:e,l:r},i)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;let o=r<.5?r*(1+e):r+e-r*e,n=2*r-o;switch(i){case"r":return Mr.hue2rgb(n,o,t+.3333333333333333)*255;case"g":return Mr.hue2rgb(n,o,t)*255;case"b":return Mr.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,l=a>.5?s/(2-o-n):s/(o+n);if(i==="s")return l*100;switch(o){case t:return((e-r)/s+(e<r?6:0))*60;case e:return((r-t)/s+2)*60;case r:return((t-e)/s+4)*60;default:return-1}}},Pn=Mr;var Xc={clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},$n=Xc;var Kc={dec2hex:t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},qn=Kc;var Zc={channel:Pn,lang:$n,unit:qn},B=Zc;var Kt={};for(let t=0;t<=255;t++)Kt[t]=B.unit.dec2hex(t);var nt={ALL:0,RGB:1,HSL:2};var Vi=class{constructor(){this.type=nt.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=nt.ALL}is(e){return this.type===e}},Nn=Vi;var Xi=class{constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new Nn}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=nt.ALL,this}_ensureHSL(){let e=this.data,{h:r,s:i,l:o}=e;r===void 0&&(e.h=B.channel.rgb2hsl(e,"h")),i===void 0&&(e.s=B.channel.rgb2hsl(e,"s")),o===void 0&&(e.l=B.channel.rgb2hsl(e,"l"))}_ensureRGB(){let e=this.data,{r,g:i,b:o}=e;r===void 0&&(e.r=B.channel.hsl2rgb(e,"r")),i===void 0&&(e.g=B.channel.hsl2rgb(e,"g")),o===void 0&&(e.b=B.channel.hsl2rgb(e,"b"))}get r(){let e=this.data,r=e.r;return!this.type.is(nt.HSL)&&r!==void 0?r:(this._ensureHSL(),B.channel.hsl2rgb(e,"r"))}get g(){let e=this.data,r=e.g;return!this.type.is(nt.HSL)&&r!==void 0?r:(this._ensureHSL(),B.channel.hsl2rgb(e,"g"))}get b(){let e=this.data,r=e.b;return!this.type.is(nt.HSL)&&r!==void 0?r:(this._ensureHSL(),B.channel.hsl2rgb(e,"b"))}get h(){let e=this.data,r=e.h;return!this.type.is(nt.RGB)&&r!==void 0?r:(this._ensureRGB(),B.channel.rgb2hsl(e,"h"))}get s(){let e=this.data,r=e.s;return!this.type.is(nt.RGB)&&r!==void 0?r:(this._ensureRGB(),B.channel.rgb2hsl(e,"s"))}get l(){let e=this.data,r=e.l;return!this.type.is(nt.RGB)&&r!==void 0?r:(this._ensureRGB(),B.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(nt.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(nt.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(nt.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(nt.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(nt.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(nt.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}},zn=Xi;var Jc=new zn({r:0,g:0,b:0,a:0},"transparent"),oe=Jc;var jn={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;let e=t.match(jn.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,l=a?8:4,d=n?0:-1,m=a?255:15;return oe.set({r:(i>>l*(d+3)&m)*s,g:(i>>l*(d+2)&m)*s,b:(i>>l*(d+1)&m)*s,a:n?(i&m)*s/255:1},t)},stringify:t=>{let{r:e,g:r,b:i,a:o}=t;return o<1?`#${Kt[Math.round(e)]}${Kt[Math.round(r)]}${Kt[Math.round(i)]}${Kt[Math.round(o*255)]}`:`#${Kt[Math.round(e)]}${Kt[Math.round(r)]}${Kt[Math.round(i)]}`}},xe=jn;var Ir={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(Ir.hueRe);if(e){let[,r,i]=e;switch(i){case"grad":return B.channel.clamp.h(parseFloat(r)*.9);case"rad":return B.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return B.channel.clamp.h(parseFloat(r)*360)}}return B.channel.clamp.h(parseFloat(t))},parse:t=>{let e=t.charCodeAt(0);if(e!==104&&e!==72)return;let r=t.match(Ir.re);if(!r)return;let[,i,o,n,a,s]=r;return oe.set({h:Ir._hue2deg(i),s:B.channel.clamp.s(parseFloat(o)),l:B.channel.clamp.l(parseFloat(n)),a:a?B.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(${B.lang.round(e)}, ${B.lang.round(r)}%, ${B.lang.round(i)}%, ${o})`:`hsl(${B.lang.round(e)}, ${B.lang.round(r)}%, ${B.lang.round(i)}%)`}},hr=Ir;var Dr={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=Dr.colors[t];if(e)return xe.parse(e)},stringify:t=>{let e=xe.stringify(t);for(let r in Dr.colors)if(Dr.colors[r]===e)return r}},Ki=Dr;var Wn={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(Wn.re);if(!r)return;let[,i,o,n,a,s,l,d,m]=r;return oe.set({r:B.channel.clamp.r(o?parseFloat(i)*2.55:parseFloat(i)),g:B.channel.clamp.g(a?parseFloat(n)*2.55:parseFloat(n)),b:B.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:d?B.channel.clamp.a(m?parseFloat(d)/100:parseFloat(d)):1},t)},stringify:t=>{let{r:e,g:r,b:i,a:o}=t;return o<1?`rgba(${B.lang.round(e)}, ${B.lang.round(r)}, ${B.lang.round(i)}, ${B.lang.round(o)})`:`rgb(${B.lang.round(e)}, ${B.lang.round(r)}, ${B.lang.round(i)})`}},ur=Wn;var Qc={format:{keyword:Ki,hex:xe,rgb:ur,rgba:ur,hsl:hr,hsla:hr},parse:t=>{if(typeof t!="string")return t;let e=xe.parse(t)||ur.parse(t)||hr.parse(t)||Ki.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(nt.HSL)||t.data.r===void 0?hr.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?ur.stringify(t):xe.stringify(t)},at=Qc;var th=(t,e)=>{let r=at.parse(t);for(let i in e)r[i]=B.channel.clamp[i](e[i]);return at.stringify(r)},Rr=th;var eh=(t,e,r=0,i=1)=>{if(typeof t!="number")return Rr(t,{a:e});let o=oe.set({r:B.channel.clamp.r(t),g:B.channel.clamp.g(e),b:B.channel.clamp.b(r),a:B.channel.clamp.a(i)});return at.stringify(o)},ne=eh;var rh=(t,e)=>B.lang.round(at.parse(t)[e]),ih=rh;var oh=t=>{let{r:e,g:r,b:i}=at.parse(t),o=.2126*B.channel.toLinear(e)+.7152*B.channel.toLinear(r)+.0722*B.channel.toLinear(i);return B.lang.round(o)},Hn=oh;var nh=t=>Hn(t)>=.5,Un=nh;var ah=t=>!Un(t),Te=ah;var sh=(t,e,r)=>{let i=at.parse(t),o=i[e],n=B.channel.clamp[e](o+r);return o!==n&&(i[e]=n),at.stringify(i)},Pr=sh;var lh=(t,e)=>Pr(t,"l",e),k=lh;var ch=(t,e)=>Pr(t,"l",-e),O=ch;var hh=(t,e)=>{let r=at.parse(t),i={};for(let o in e)e[o]&&(i[o]=r[o]+e[o]);return Rr(t,i)},u=hh;var uh=(t,e,r=50)=>{let{r:i,g:o,b:n,a}=at.parse(t),{r:s,g:l,b:d,a:m}=at.parse(e),f=r/100,c=f*2-1,p=a-m,I=((c*p===-1?c:(c+p)/(1+c*p))+1)/2,L=1-I,N=i*I+s*L,T=o*I+l*L,G=n*I+d*L,P=a*f+m*(1-f);return ne(N,T,G,P)},Yn=uh;var dh=(t,e=100)=>{let r=at.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,Yn(r,t,e)},C=dh;var fh=typeof global=="object"&&global&&global.Object===Object&&global,$r=fh;var ph=typeof self=="object"&&self&&self.Object===Object&&self,mh=$r||ph||Function("return this")(),rt=mh;var gh=rt.Symbol,$e=gh;var Gn=Object.prototype,Ch=Gn.hasOwnProperty,yh=Gn.toString,dr=$e?$e.toStringTag:void 0;function bh(t){var e=Ch.call(t,dr),r=t[dr];try{t[dr]=void 0;var i=!0}catch{}var o=yh.call(t);return i&&(e?t[dr]=r:delete t[dr]),o}var Vn=bh;var xh=Object.prototype,Th=xh.toString;function Sh(t){return Th.call(t)}var Xn=Sh;var _h="[object Null]",kh="[object Undefined]",Kn=$e?$e.toStringTag:void 0;function vh(t){return t==null?t===void 0?kh:_h:Kn&&Kn in Object(t)?Vn(t):Xn(t)}var It=vh;function Bh(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var _t=Bh;var Lh="[object AsyncFunction]",Fh="[object Function]",Ah="[object GeneratorFunction]",wh="[object Proxy]";function Eh(t){if(!_t(t))return!1;var e=It(t);return e==Fh||e==Ah||e==Lh||e==wh}var qe=Eh;var Oh=rt["__core-js_shared__"],qr=Oh;var Zn=function(){var t=/[^.]+$/.exec(qr&&qr.keys&&qr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Mh(t){return!!Zn&&Zn in t}var Jn=Mh;var Ih=Function.prototype,Dh=Ih.toString;function Rh(t){if(t!=null){try{return Dh.call(t)}catch{}try{return t+""}catch{}}return""}var Zt=Rh;var Ph=/[\\^$.*+?()[\]{}|]/g,$h=/^\[object .+?Constructor\]$/,qh=Function.prototype,Nh=Object.prototype,zh=qh.toString,jh=Nh.hasOwnProperty,Wh=RegExp("^"+zh.call(jh).replace(Ph,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Hh(t){if(!_t(t)||Jn(t))return!1;var e=qe(t)?Wh:$h;return e.test(Zt(t))}var Qn=Hh;function Uh(t,e){return t?.[e]}var ta=Uh;function Yh(t,e){var r=ta(t,e);return Qn(r)?r:void 0}var kt=Yh;var Gh=kt(Object,"create"),Jt=Gh;function Vh(){this.__data__=Jt?Jt(null):{},this.size=0}var ea=Vh;function Xh(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var ra=Xh;var Kh="__lodash_hash_undefined__",Zh=Object.prototype,Jh=Zh.hasOwnProperty;function Qh(t){var e=this.__data__;if(Jt){var r=e[t];return r===Kh?void 0:r}return Jh.call(e,t)?e[t]:void 0}var ia=Qh;var tu=Object.prototype,eu=tu.hasOwnProperty;function ru(t){var e=this.__data__;return Jt?e[t]!==void 0:eu.call(e,t)}var oa=ru;var iu="__lodash_hash_undefined__";function ou(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Jt&&e===void 0?iu:e,this}var na=ou;function Ne(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Ne.prototype.clear=ea;Ne.prototype.delete=ra;Ne.prototype.get=ia;Ne.prototype.has=oa;Ne.prototype.set=na;var Zi=Ne;function nu(){this.__data__=[],this.size=0}var aa=nu;function au(t,e){return t===e||t!==t&&e!==e}var ae=au;function su(t,e){for(var r=t.length;r--;)if(ae(t[r][0],e))return r;return-1}var se=su;var lu=Array.prototype,cu=lu.splice;function hu(t){var e=this.__data__,r=se(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():cu.call(e,r,1),--this.size,!0}var sa=hu;function uu(t){var e=this.__data__,r=se(e,t);return r<0?void 0:e[r][1]}var la=uu;function du(t){return se(this.__data__,t)>-1}var ca=du;function fu(t,e){var r=this.__data__,i=se(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}var ha=fu;function ze(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}ze.prototype.clear=aa;ze.prototype.delete=sa;ze.prototype.get=la;ze.prototype.has=ca;ze.prototype.set=ha;var le=ze;var pu=kt(rt,"Map"),ce=pu;function mu(){this.size=0,this.__data__={hash:new Zi,map:new(ce||le),string:new Zi}}var ua=mu;function gu(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var da=gu;function Cu(t,e){var r=t.__data__;return da(e)?r[typeof e=="string"?"string":"hash"]:r.map}var he=Cu;function yu(t){var e=he(this,t).delete(t);return this.size-=e?1:0,e}var fa=yu;function bu(t){return he(this,t).get(t)}var pa=bu;function xu(t){return he(this,t).has(t)}var ma=xu;function Tu(t,e){var r=he(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}var ga=Tu;function je(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}je.prototype.clear=ua;je.prototype.delete=fa;je.prototype.get=pa;je.prototype.has=ma;je.prototype.set=ga;var fr=je;var Su="Expected a function";function Ji(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Su);var r=function(){var i=arguments,o=e?e.apply(this,i):i[0],n=r.cache;if(n.has(o))return n.get(o);var a=t.apply(this,i);return r.cache=n.set(o,a)||n,a};return r.cache=new(Ji.Cache||fr),r}Ji.Cache=fr;var Nr=Ji;function _u(){this.__data__=new le,this.size=0}var Ca=_u;function ku(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var ya=ku;function vu(t){return this.__data__.get(t)}var ba=vu;function Bu(t){return this.__data__.has(t)}var xa=Bu;var Lu=200;function Fu(t,e){var r=this.__data__;if(r instanceof le){var i=r.__data__;if(!ce||i.length<Lu-1)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new fr(i)}return r.set(t,e),this.size=r.size,this}var Ta=Fu;function We(t){var e=this.__data__=new le(t);this.size=e.size}We.prototype.clear=Ca;We.prototype.delete=ya;We.prototype.get=ba;We.prototype.has=xa;We.prototype.set=Ta;var Sa=We;var Au=function(){try{var t=kt(Object,"defineProperty");return t({},"",{}),t}catch{}}(),He=Au;function wu(t,e,r){e=="__proto__"&&He?He(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var Ue=wu;function Eu(t,e,r){(r!==void 0&&!ae(t[e],r)||r===void 0&&!(e in t))&&Ue(t,e,r)}var pr=Eu;function Ou(t){return function(e,r,i){for(var o=-1,n=Object(e),a=i(e),s=a.length;s--;){var l=a[t?s:++o];if(r(n[l],l,n)===!1)break}return e}}var _a=Ou;var Mu=_a(),ka=Mu;var Fa=typeof exports=="object"&&exports&&!exports.nodeType&&exports,va=Fa&&typeof module=="object"&&module&&!module.nodeType&&module,Iu=va&&va.exports===Fa,Ba=Iu?rt.Buffer:void 0,La=Ba?Ba.allocUnsafe:void 0;function Du(t,e){if(e)return t.slice();var r=t.length,i=La?La(r):new t.constructor(r);return t.copy(i),i}var Aa=Du;var Ru=rt.Uint8Array,Qi=Ru;function Pu(t){var e=new t.constructor(t.byteLength);return new Qi(e).set(new Qi(t)),e}var wa=Pu;function $u(t,e){var r=e?wa(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var Ea=$u;function qu(t,e){var r=-1,i=t.length;for(e||(e=Array(i));++r<i;)e[r]=t[r];return e}var Oa=qu;var Ma=Object.create,Nu=function(){function t(){}return function(e){if(!_t(e))return{};if(Ma)return Ma(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),Ia=Nu;function zu(t,e){return function(r){return t(e(r))}}var zr=zu;var ju=zr(Object.getPrototypeOf,Object),jr=ju;var Wu=Object.prototype;function Hu(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Wu;return t===r}var ue=Hu;function Uu(t){return typeof t.constructor=="function"&&!ue(t)?Ia(jr(t)):{}}var Da=Uu;function Yu(t){return t!=null&&typeof t=="object"}var qt=Yu;var Gu="[object Arguments]";function Vu(t){return qt(t)&&It(t)==Gu}var to=Vu;var Ra=Object.prototype,Xu=Ra.hasOwnProperty,Ku=Ra.propertyIsEnumerable,Zu=to(function(){return arguments}())?to:function(t){return qt(t)&&Xu.call(t,"callee")&&!Ku.call(t,"callee")},Se=Zu;var Ju=Array.isArray,_e=Ju;var Qu=9007199254740991;function td(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Qu}var Wr=td;function ed(t){return t!=null&&Wr(t.length)&&!qe(t)}var de=ed;function rd(t){return qt(t)&&de(t)}var Pa=rd;function id(){return!1}var $a=id;var za=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qa=za&&typeof module=="object"&&module&&!module.nodeType&&module,od=qa&&qa.exports===za,Na=od?rt.Buffer:void 0,nd=Na?Na.isBuffer:void 0,ad=nd||$a,Ye=ad;var sd="[object Object]",ld=Function.prototype,cd=Object.prototype,ja=ld.toString,hd=cd.hasOwnProperty,ud=ja.call(Object);function dd(t){if(!qt(t)||It(t)!=sd)return!1;var e=jr(t);if(e===null)return!0;var r=hd.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&ja.call(r)==ud}var Wa=dd;var fd="[object Arguments]",pd="[object Array]",md="[object Boolean]",gd="[object Date]",Cd="[object Error]",yd="[object Function]",bd="[object Map]",xd="[object Number]",Td="[object Object]",Sd="[object RegExp]",_d="[object Set]",kd="[object String]",vd="[object WeakMap]",Bd="[object ArrayBuffer]",Ld="[object DataView]",Fd="[object Float32Array]",Ad="[object Float64Array]",wd="[object Int8Array]",Ed="[object Int16Array]",Od="[object Int32Array]",Md="[object Uint8Array]",Id="[object Uint8ClampedArray]",Dd="[object Uint16Array]",Rd="[object Uint32Array]",Z={};Z[Fd]=Z[Ad]=Z[wd]=Z[Ed]=Z[Od]=Z[Md]=Z[Id]=Z[Dd]=Z[Rd]=!0;Z[fd]=Z[pd]=Z[Bd]=Z[md]=Z[Ld]=Z[gd]=Z[Cd]=Z[yd]=Z[bd]=Z[xd]=Z[Td]=Z[Sd]=Z[_d]=Z[kd]=Z[vd]=!1;function Pd(t){return qt(t)&&Wr(t.length)&&!!Z[It(t)]}var Ha=Pd;function $d(t){return function(e){return t(e)}}var Ua=$d;var Ya=typeof exports=="object"&&exports&&!exports.nodeType&&exports,mr=Ya&&typeof module=="object"&&module&&!module.nodeType&&module,qd=mr&&mr.exports===Ya,eo=qd&&$r.process,Nd=function(){try{var t=mr&&mr.require&&mr.require("util").types;return t||eo&&eo.binding&&eo.binding("util")}catch{}}(),ro=Nd;var Ga=ro&&ro.isTypedArray,zd=Ga?Ua(Ga):Ha,Ge=zd;function jd(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var gr=jd;var Wd=Object.prototype,Hd=Wd.hasOwnProperty;function Ud(t,e,r){var i=t[e];(!(Hd.call(t,e)&&ae(i,r))||r===void 0&&!(e in t))&&Ue(t,e,r)}var Va=Ud;function Yd(t,e,r,i){var o=!r;r||(r={});for(var n=-1,a=e.length;++n<a;){var s=e[n],l=i?i(r[s],t[s],s,r,t):void 0;l===void 0&&(l=t[s]),o?Ue(r,s,l):Va(r,s,l)}return r}var Xa=Yd;function Gd(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}var Ka=Gd;var Vd=9007199254740991,Xd=/^(?:0|[1-9]\d*)$/;function Kd(t,e){var r=typeof t;return e=e??Vd,!!e&&(r=="number"||r!="symbol"&&Xd.test(t))&&t>-1&&t%1==0&&t<e}var Hr=Kd;var Zd=Object.prototype,Jd=Zd.hasOwnProperty;function Qd(t,e){var r=_e(t),i=!r&&Se(t),o=!r&&!i&&Ye(t),n=!r&&!i&&!o&&Ge(t),a=r||i||o||n,s=a?Ka(t.length,String):[],l=s.length;for(var d in t)(e||Jd.call(t,d))&&!(a&&(d=="length"||o&&(d=="offset"||d=="parent")||n&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Hr(d,l)))&&s.push(d);return s}var Za=Qd;function tf(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var Ja=tf;var ef=Object.prototype,rf=ef.hasOwnProperty;function of(t){if(!_t(t))return Ja(t);var e=ue(t),r=[];for(var i in t)i=="constructor"&&(e||!rf.call(t,i))||r.push(i);return r}var Qa=of;function nf(t){return de(t)?Za(t,!0):Qa(t)}var Ur=nf;function af(t){return Xa(t,Ur(t))}var ts=af;function sf(t,e,r,i,o,n,a){var s=gr(t,r),l=gr(e,r),d=a.get(l);if(d){pr(t,r,d);return}var m=n?n(s,l,r+"",t,e,a):void 0,f=m===void 0;if(f){var c=_e(l),p=!c&&Ye(l),E=!c&&!p&&Ge(l);m=l,c||p||E?_e(s)?m=s:Pa(s)?m=Oa(s):p?(f=!1,m=Aa(l,!0)):E?(f=!1,m=Ea(l,!0)):m=[]:Wa(l)||Se(l)?(m=s,Se(s)?m=ts(s):(!_t(s)||qe(s))&&(m=Da(l))):f=!1}f&&(a.set(l,m),o(m,l,i,n,a),a.delete(l)),pr(t,r,m)}var es=sf;function rs(t,e,r,i,o){t!==e&&ka(e,function(n,a){if(o||(o=new Sa),_t(n))es(t,e,a,r,rs,i,o);else{var s=i?i(gr(t,a),n,a+"",t,e,o):void 0;s===void 0&&(s=n),pr(t,a,s)}},Ur)}var is=rs;function lf(t){return t}var Yr=lf;function cf(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var os=cf;var ns=Math.max;function hf(t,e,r){return e=ns(e===void 0?t.length-1:e,0),function(){for(var i=arguments,o=-1,n=ns(i.length-e,0),a=Array(n);++o<n;)a[o]=i[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=i[o];return s[e]=r(a),os(t,this,s)}}var as=hf;function uf(t){return function(){return t}}var ss=uf;var df=He?function(t,e){return He(t,"toString",{configurable:!0,enumerable:!1,value:ss(e),writable:!0})}:Yr,ls=df;var ff=800,pf=16,mf=Date.now;function gf(t){var e=0,r=0;return function(){var i=mf(),o=pf-(i-r);if(r=i,o>0){if(++e>=ff)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var cs=gf;var Cf=cs(ls),hs=Cf;function yf(t,e){return hs(as(t,e,Yr),t+"")}var us=yf;function bf(t,e,r){if(!_t(r))return!1;var i=typeof e;return(i=="number"?de(r)&&Hr(e,r.length):i=="string"&&e in r)?ae(r[e],t):!1}var ds=bf;function xf(t){return us(function(e,r){var i=-1,o=r.length,n=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(n=t.length>3&&typeof n=="function"?(o--,n):void 0,a&&ds(r[0],r[1],a)&&(n=o<3?void 0:n,o=1),e=Object(e);++i<o;){var s=r[i];s&&t(e,s,i,n)}return e})}var fs=xf;var Tf=fs(function(t,e,r){is(t,e,r)}),ps=Tf;var Sf=zr(Object.keys,Object),ms=Sf;var _f=Object.prototype,kf=_f.hasOwnProperty;function vf(t){if(!ue(t))return ms(t);var e=[];for(var r in Object(t))kf.call(t,r)&&r!="constructor"&&e.push(r);return e}var gs=vf;var Bf=kt(rt,"DataView"),Gr=Bf;var Lf=kt(rt,"Promise"),Vr=Lf;var Ff=kt(rt,"Set"),Xr=Ff;var Af=kt(rt,"WeakMap"),Kr=Af;var Cs="[object Map]",wf="[object Object]",ys="[object Promise]",bs="[object Set]",xs="[object WeakMap]",Ts="[object DataView]",Ef=Zt(Gr),Of=Zt(ce),Mf=Zt(Vr),If=Zt(Xr),Df=Zt(Kr),ke=It;(Gr&&ke(new Gr(new ArrayBuffer(1)))!=Ts||ce&&ke(new ce)!=Cs||Vr&&ke(Vr.resolve())!=ys||Xr&&ke(new Xr)!=bs||Kr&&ke(new Kr)!=xs)&&(ke=function(t){var e=It(t),r=e==wf?t.constructor:void 0,i=r?Zt(r):"";if(i)switch(i){case Ef:return Ts;case Of:return Cs;case Mf:return ys;case If:return bs;case Df:return xs}return e});var Ss=ke;var Rf="[object Map]",Pf="[object Set]",$f=Object.prototype,qf=$f.hasOwnProperty;function Nf(t){if(t==null)return!0;if(de(t)&&(_e(t)||typeof t=="string"||typeof t.splice=="function"||Ye(t)||Ge(t)||Se(t)))return!t.length;var e=Ss(t);if(e==Rf||e==Pf)return!t.size;if(ue(t))return!gs(t).length;for(var r in t)if(qf.call(t,r))return!1;return!0}var Zr=Nf;var al=Wi(Mn(),1),sl=Wi(Dn(),1);var Ae=Wi(Rn(),1);var Jr="comm",Qr="rule",ti="decl";var _s="@import";var ks="@keyframes";var vs="@layer";var io=Math.abs,Cr=String.fromCharCode;function ei(t){return t.trim()}function yr(t,e,r){return t.replace(e,r)}function Bs(t,e,r){return t.indexOf(e,r)}function ve(t,e){return t.charCodeAt(e)|0}function Be(t,e,r){return t.slice(e,r)}function Ft(t){return t.length}function Ls(t){return t.length}function Ve(t,e){return e.push(t),t}var ri=1,Xe=1,Fs=0,At=0,it=0,Ke="";function ii(t,e,r,i,o,n,a,s){return{value:t,root:e,parent:r,type:i,props:o,children:n,line:ri,column:Xe,length:a,return:"",siblings:s}}function As(){return it}function ws(){return it=At>0?ve(Ke,--At):0,Xe--,it===10&&(Xe=1,ri--),it}function wt(){return it=At<Fs?ve(Ke,At++):0,Xe++,it===10&&(Xe=1,ri++),it}function fe(){return ve(Ke,At)}function br(){return At}function oi(t,e){return Be(Ke,t,e)}function oo(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Es(t){return ri=Xe=1,Fs=Ft(Ke=t),At=0,[]}function Os(t){return Ke="",t}function ni(t){return ei(oi(At-1,no(t===91?t+2:t===40?t+1:t)))}function Ms(t){for(;(it=fe())&&it<33;)wt();return oo(t)>2||oo(it)>3?"":" "}function Is(t,e){for(;--e&&wt()&&!(it<48||it>102||it>57&&it<65||it>70&&it<97););return oi(t,br()+(e<6&&fe()==32&&wt()==32))}function no(t){for(;wt();)switch(it){case t:return At;case 34:case 39:t!==34&&t!==39&&no(it);break;case 40:t===41&&no(t);break;case 92:wt();break}return At}function Ds(t,e){for(;wt()&&t+it!==57;)if(t+it===84&&fe()===47)break;return"/*"+oi(e,At-1)+"*"+Cr(t===47?t:wt())}function Rs(t){for(;!oo(fe());)wt();return oi(t,At)}function qs(t){return Os(ai("",null,null,null,[""],t=Es(t),0,[0],t))}function ai(t,e,r,i,o,n,a,s,l){for(var d=0,m=0,f=a,c=0,p=0,E=0,I=1,L=1,N=1,T=0,G="",P=o,J=n,V=i,j=G;L;)switch(E=T,T=wt()){case 40:if(E!=108&&ve(j,f-1)==58){Bs(j+=yr(ni(T),"&","&\f"),"&\f",io(d?s[d-1]:0))!=-1&&(N=-1);break}case 34:case 39:case 91:j+=ni(T);break;case 9:case 10:case 13:case 32:j+=Ms(E);break;case 92:j+=Is(br()-1,7);continue;case 47:switch(fe()){case 42:case 47:Ve(zf(Ds(wt(),br()),e,r,l),l);break;default:j+="/"}break;case 123*I:s[d++]=Ft(j)*N;case 125*I:case 59:case 0:switch(T){case 0:case 125:L=0;case 59+m:N==-1&&(j=yr(j,/\f/g,"")),p>0&&Ft(j)-f&&Ve(p>32?$s(j+";",i,r,f-1,l):$s(yr(j," ","")+";",i,r,f-2,l),l);break;case 59:j+=";";default:if(Ve(V=Ps(j,e,r,d,m,o,s,G,P=[],J=[],f,n),n),T===123)if(m===0)ai(j,e,V,V,P,n,f,s,J);else switch(c===99&&ve(j,3)===110?100:c){case 100:case 108:case 109:case 115:ai(t,V,V,i&&Ve(Ps(t,V,V,0,0,o,s,G,o,P=[],f,J),J),o,J,f,s,i?P:J);break;default:ai(j,V,V,V,[""],J,0,s,J)}}d=m=p=0,I=N=1,G=j="",f=a;break;case 58:f=1+Ft(j),p=E;default:if(I<1){if(T==123)--I;else if(T==125&&I++==0&&ws()==125)continue}switch(j+=Cr(T),T*I){case 38:N=m>0?1:(j+="\f",-1);break;case 44:s[d++]=(Ft(j)-1)*N,N=1;break;case 64:fe()===45&&(j+=ni(wt())),c=fe(),m=f=Ft(G=j+=Rs(br())),T++;break;case 45:E===45&&Ft(j)==2&&(I=0)}}return n}function Ps(t,e,r,i,o,n,a,s,l,d,m,f){for(var c=o-1,p=o===0?n:[""],E=Ls(p),I=0,L=0,N=0;I<i;++I)for(var T=0,G=Be(t,c+1,c=io(L=a[I])),P=t;T<E;++T)(P=ei(L>0?p[T]+" "+G:yr(G,/&\f/g,p[T])))&&(l[N++]=P);return ii(t,e,r,o===0?Qr:s,l,d,m,f)}function zf(t,e,r,i){return ii(t,e,r,Jr,Cr(As()),Be(t,2,-2),0,i)}function $s(t,e,r,i,o){return ii(t,e,r,ti,Be(t,0,i),Be(t,i+1,-1),i,o)}function si(t,e){for(var r="",i=0;i<t.length;i++)r+=e(t[i],i,t,e)||"";return r}function Ns(t,e,r,i){switch(t.type){case vs:if(t.children.length)break;case _s:case ti:return t.return=t.return||t.value;case Jr:return"";case ks:return t.return=t.value+"{"+si(t.children,i)+"}";case Qr:if(!Ft(t.value=t.props.join(",")))return""}return Ft(r=si(t.children,i))?t.return=t.value+"{"+r+"}":""}var Qt={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},M={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},yo=function(t="fatal"){let e=Qt.fatal;typeof t=="string"?(t=t.toLowerCase(),t in Qt&&(e=Qt[t])):typeof t=="number"&&(e=t),M.trace=()=>{},M.debug=()=>{},M.info=()=>{},M.warn=()=>{},M.error=()=>{},M.fatal=()=>{},e<=Qt.fatal&&(M.fatal=console.error?console.error.bind(console,Et("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Et("FATAL"))),e<=Qt.error&&(M.error=console.error?console.error.bind(console,Et("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Et("ERROR"))),e<=Qt.warn&&(M.warn=console.warn?console.warn.bind(console,Et("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Et("WARN"))),e<=Qt.info&&(M.info=console.info?console.info.bind(console,Et("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Et("INFO"))),e<=Qt.debug&&(M.debug=console.debug?console.debug.bind(console,Et("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Et("DEBUG"))),e<=Qt.trace&&(M.trace=console.debug?console.debug.bind(console,Et("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Et("TRACE")))},Et=t=>`%c${(0,al.default)().format("ss.SSS")} : ${t} : `,vr=/<br\s*\/?>/gi,jf=t=>t?cl(t).replace(/\\n/g,"#br#").split("#br#"):[""],Wf=(()=>{let t=!1;return()=>{t||(Hf(),t=!0)}})();function Hf(){let t="data-temp-href-target";Ae.default.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")||"")}),Ae.default.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)||""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}var ll=t=>(Wf(),Ae.default.sanitize(t)),zs=(t,e)=>{var r;if(((r=e.flowchart)==null?void 0:r.htmlLabels)!==!1){let i=e.securityLevel;i==="antiscript"||i==="strict"?t=ll(t):i!=="loose"&&(t=cl(t),t=t.replace(/</g,"<").replace(/>/g,">"),t=t.replace(/=/g,"="),t=Vf(t))}return t},_r=(t,e)=>t&&(e.dompurifyConfig?t=Ae.default.sanitize(zs(t,e),e.dompurifyConfig).toString():t=Ae.default.sanitize(zs(t,e),{FORBID_TAGS:["style"]}).toString(),t),Uf=(t,e)=>typeof t=="string"?_r(t,e):t.flat().map(r=>_r(r,e)),Yf=t=>vr.test(t),Gf=t=>t.split(vr),Vf=t=>t.replace(/#br#/g,"<br/>"),cl=t=>t.replace(vr,"#br#"),Xf=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},hl=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),Kf=function(...t){let e=t.filter(r=>!isNaN(r));return Math.max(...e)},Zf=function(...t){let e=t.filter(r=>!isNaN(r));return Math.min(...e)},Fk=function(t){let e=t.split(/(,)/),r=[];for(let i=0;i<e.length;i++){let o=e[i];if(o===","&&i>0&&i+1<e.length){let n=e[i-1],a=e[i+1];Jf(n,a)&&(o=n+","+a,i++,r.pop())}r.push(Qf(o))}return r.join("")},ho=(t,e)=>Math.max(0,t.split(e).length-1),Jf=(t,e)=>{let r=ho(t,"~"),i=ho(e,"~");return r===1&&i===1},Qf=t=>{let e=ho(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("")},js=()=>window.MathMLElement!==void 0,uo=/\$\$(.*)\$\$/g,Ws=t=>{var e;return(((e=t.match(uo))==null?void 0:e.length)??0)>0},Ak=(t,e)=>z(void 0,null,function*(){t=yield tp(t,e);let r=document.createElement("div");r.innerHTML=t,r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";let i=document.querySelector("body");i?.insertAdjacentElement("beforeend",r);let o={width:r.clientWidth,height:r.clientHeight};return r.remove(),o}),tp=(t,e)=>z(void 0,null,function*(){if(!Ws(t))return t;if(!js()&&!e.legacyMathML)return t.replace(uo,"MathML is unsupported in this environment.");let{default:r}=yield import("./chunk-2RNZ23DM.js");return t.split(vr).map(i=>Ws(i)?`
<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">
${i}
</div>
`:`<div>${i}</div>`).join("").replace(uo,(i,o)=>r.renderToString(o,{throwOnError:!0,displayMode:!0,output:js()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}),bo={getRows:jf,sanitizeText:_r,sanitizeTextOrArray:Uf,hasBreaks:Yf,splitBreaks:Gf,lineBreakRegex:vr,removeScript:ll,getUrl:Xf,evaluate:hl,getMax:Kf,getMin:Zf},bt=(t,e)=>e?u(t,{s:-40,l:10}):u(t,{s:-40,l:-10}),Ti="#ffffff",Si="#f2f2f2",ep=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,r,i,o,n,a,s,l,d,m,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||u(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||u(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||bt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||bt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||bt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||bt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||C(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||C(this.tertiaryColor),this.lineColor=this.lineColor||C(this.background),this.arrowheadColor=this.arrowheadColor||C(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?O(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||O(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||C(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||k(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||u(this.primaryColor,{h:30}),this.cScale4=this.cScale4||u(this.primaryColor,{h:60}),this.cScale5=this.cScale5||u(this.primaryColor,{h:90}),this.cScale6=this.cScale6||u(this.primaryColor,{h:120}),this.cScale7=this.cScale7||u(this.primaryColor,{h:150}),this.cScale8=this.cScale8||u(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||u(this.primaryColor,{h:270}),this.cScale10=this.cScale10||u(this.primaryColor,{h:300}),this.cScale11=this.cScale11||u(this.primaryColor,{h:330}),this.darkMode)for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=O(this["cScale"+p],75);else for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=O(this["cScale"+p],25);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleInv"+p]=this["cScaleInv"+p]||C(this["cScale"+p]);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this.darkMode?this["cScalePeer"+p]=this["cScalePeer"+p]||k(this["cScale"+p],10):this["cScalePeer"+p]=this["cScalePeer"+p]||O(this["cScale"+p],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleLabel"+p]=this["cScaleLabel"+p]||this.scaleLabelColor;let c=this.darkMode?-4:-1;for(let p=0;p<5;p++)this["surface"+p]=this["surface"+p]||u(this.mainBkg,{h:180,s:-15,l:c*(5+p*3)}),this["surfacePeer"+p]=this["surfacePeer"+p]||u(this.mainBkg,{h:180,s:-15,l:c*(8+p*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||u(this.primaryColor,{h:64}),this.fillType3=this.fillType3||u(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||u(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||u(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||u(this.primaryColor,{h:128}),this.fillType7=this.fillType7||u(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||u(this.primaryColor,{l:-10}),this.pie5=this.pie5||u(this.secondaryColor,{l:-10}),this.pie6=this.pie6||u(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||u(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||u(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||u(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||u(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||u(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||u(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||u(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||u(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||u(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||u(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||u(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||u(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Te(this.quadrant1Fill)?k(this.quadrant1Fill):O(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((n=this.xyChart)==null?void 0:n.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((m=this.xyChart)==null?void 0:m.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?O(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||u(this.primaryColor,{h:-30}),this.git4=this.git4||u(this.primaryColor,{h:-60}),this.git5=this.git5||u(this.primaryColor,{h:-90}),this.git6=this.git6||u(this.primaryColor,{h:60}),this.git7=this.git7||u(this.primaryColor,{h:120}),this.darkMode?(this.git0=k(this.git0,25),this.git1=k(this.git1,25),this.git2=k(this.git2,25),this.git3=k(this.git3,25),this.git4=k(this.git4,25),this.git5=k(this.git5,25),this.git6=k(this.git6,25),this.git7=k(this.git7,25)):(this.git0=O(this.git0,25),this.git1=O(this.git1,25),this.git2=O(this.git2,25),this.git3=O(this.git3,25),this.git4=O(this.git4,25),this.git5=O(this.git5,25),this.git6=O(this.git6,25),this.git7=O(this.git7,25)),this.gitInv0=this.gitInv0||C(this.git0),this.gitInv1=this.gitInv1||C(this.git1),this.gitInv2=this.gitInv2||C(this.git2),this.gitInv3=this.gitInv3||C(this.git3),this.gitInv4=this.gitInv4||C(this.git4),this.gitInv5=this.gitInv5||C(this.git5),this.gitInv6=this.gitInv6||C(this.git6),this.gitInv7=this.gitInv7||C(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ti,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Si}calculate(e){if(typeof e!="object"){this.updateColors();return}let r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},rp=t=>{let e=new ep;return e.calculate(t),e},ip=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=k(this.primaryColor,16),this.tertiaryColor=u(this.primaryColor,{h:-160}),this.primaryBorderColor=C(this.background),this.secondaryBorderColor=bt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=bt(this.tertiaryColor,this.darkMode),this.primaryTextColor=C(this.primaryColor),this.secondaryTextColor=C(this.secondaryColor),this.tertiaryTextColor=C(this.tertiaryColor),this.lineColor=C(this.background),this.textColor=C(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=k(C("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=ne(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=O("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=O(this.sectionBkgColor,10),this.taskBorderColor=ne(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=ne(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,r,i,o,n,a,s,l,d,m,f;this.secondBkg=k(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=k(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=k(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=u(this.primaryColor,{h:64}),this.fillType3=u(this.secondaryColor,{h:64}),this.fillType4=u(this.primaryColor,{h:-64}),this.fillType5=u(this.secondaryColor,{h:-64}),this.fillType6=u(this.primaryColor,{h:128}),this.fillType7=u(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||u(this.primaryColor,{h:30}),this.cScale4=this.cScale4||u(this.primaryColor,{h:60}),this.cScale5=this.cScale5||u(this.primaryColor,{h:90}),this.cScale6=this.cScale6||u(this.primaryColor,{h:120}),this.cScale7=this.cScale7||u(this.primaryColor,{h:150}),this.cScale8=this.cScale8||u(this.primaryColor,{h:210}),this.cScale9=this.cScale9||u(this.primaryColor,{h:270}),this.cScale10=this.cScale10||u(this.primaryColor,{h:300}),this.cScale11=this.cScale11||u(this.primaryColor,{h:330});for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScaleInv"+c]=this["cScaleInv"+c]||C(this["cScale"+c]);for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScalePeer"+c]=this["cScalePeer"+c]||k(this["cScale"+c],10);for(let c=0;c<5;c++)this["surface"+c]=this["surface"+c]||u(this.mainBkg,{h:30,s:-30,l:-(-10+c*4)}),this["surfacePeer"+c]=this["surfacePeer"+c]||u(this.mainBkg,{h:30,s:-30,l:-(-7+c*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScaleLabel"+c]=this["cScaleLabel"+c]||this.scaleLabelColor;for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["pie"+c]=this["cScale"+c];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||u(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||u(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||u(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||u(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||u(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||u(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Te(this.quadrant1Fill)?k(this.quadrant1Fill):O(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((n=this.xyChart)==null?void 0:n.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((m=this.xyChart)==null?void 0:m.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?O(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=k(this.secondaryColor,20),this.git1=k(this.pie2||this.secondaryColor,20),this.git2=k(this.pie3||this.tertiaryColor,20),this.git3=k(this.pie4||u(this.primaryColor,{h:-30}),20),this.git4=k(this.pie5||u(this.primaryColor,{h:-60}),20),this.git5=k(this.pie6||u(this.primaryColor,{h:-90}),10),this.git6=k(this.pie7||u(this.primaryColor,{h:60}),10),this.git7=k(this.pie8||u(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||C(this.git0),this.gitInv1=this.gitInv1||C(this.git1),this.gitInv2=this.gitInv2||C(this.git2),this.gitInv3=this.gitInv3||C(this.git3),this.gitInv4=this.gitInv4||C(this.git4),this.gitInv5=this.gitInv5||C(this.git5),this.gitInv6=this.gitInv6||C(this.git6),this.gitInv7=this.gitInv7||C(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||C(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||C(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||k(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||k(this.background,2)}calculate(e){if(typeof e!="object"){this.updateColors();return}let r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},op=t=>{let e=new ip;return e.calculate(t),e},np=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=u(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=u(this.primaryColor,{h:-160}),this.primaryBorderColor=bt(this.primaryColor,this.darkMode),this.secondaryBorderColor=bt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=bt(this.tertiaryColor,this.darkMode),this.primaryTextColor=C(this.primaryColor),this.secondaryTextColor=C(this.secondaryColor),this.tertiaryTextColor=C(this.tertiaryColor),this.lineColor=C(this.background),this.textColor=C(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=ne(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,r,i,o,n,a,s,l,d,m,f;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||u(this.primaryColor,{h:30}),this.cScale4=this.cScale4||u(this.primaryColor,{h:60}),this.cScale5=this.cScale5||u(this.primaryColor,{h:90}),this.cScale6=this.cScale6||u(this.primaryColor,{h:120}),this.cScale7=this.cScale7||u(this.primaryColor,{h:150}),this.cScale8=this.cScale8||u(this.primaryColor,{h:210}),this.cScale9=this.cScale9||u(this.primaryColor,{h:270}),this.cScale10=this.cScale10||u(this.primaryColor,{h:300}),this.cScale11=this.cScale11||u(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||O(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||O(this.tertiaryColor,40);for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScale"+c]=O(this["cScale"+c],10),this["cScalePeer"+c]=this["cScalePeer"+c]||O(this["cScale"+c],25);for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScaleInv"+c]=this["cScaleInv"+c]||u(this["cScale"+c],{h:180});for(let c=0;c<5;c++)this["surface"+c]=this["surface"+c]||u(this.mainBkg,{h:30,l:-(5+c*5)}),this["surfacePeer"+c]=this["surfacePeer"+c]||u(this.mainBkg,{h:30,l:-(7+c*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||C(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||C(this.labelTextColor);for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScaleLabel"+c]=this["cScaleLabel"+c]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=k(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=u(this.primaryColor,{h:64}),this.fillType3=u(this.secondaryColor,{h:64}),this.fillType4=u(this.primaryColor,{h:-64}),this.fillType5=u(this.secondaryColor,{h:-64}),this.fillType6=u(this.primaryColor,{h:128}),this.fillType7=u(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||u(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||u(this.primaryColor,{l:-10}),this.pie5=this.pie5||u(this.secondaryColor,{l:-30}),this.pie6=this.pie6||u(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||u(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||u(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||u(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||u(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||u(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||u(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||u(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||u(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||u(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||u(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||u(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||u(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Te(this.quadrant1Fill)?k(this.quadrant1Fill):O(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((n=this.xyChart)==null?void 0:n.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((m=this.xyChart)==null?void 0:m.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||u(this.primaryColor,{h:-30}),this.git4=this.git4||u(this.primaryColor,{h:-60}),this.git5=this.git5||u(this.primaryColor,{h:-90}),this.git6=this.git6||u(this.primaryColor,{h:60}),this.git7=this.git7||u(this.primaryColor,{h:120}),this.darkMode?(this.git0=k(this.git0,25),this.git1=k(this.git1,25),this.git2=k(this.git2,25),this.git3=k(this.git3,25),this.git4=k(this.git4,25),this.git5=k(this.git5,25),this.git6=k(this.git6,25),this.git7=k(this.git7,25)):(this.git0=O(this.git0,25),this.git1=O(this.git1,25),this.git2=O(this.git2,25),this.git3=O(this.git3,25),this.git4=O(this.git4,25),this.git5=O(this.git5,25),this.git6=O(this.git6,25),this.git7=O(this.git7,25)),this.gitInv0=this.gitInv0||O(C(this.git0),25),this.gitInv1=this.gitInv1||C(this.git1),this.gitInv2=this.gitInv2||C(this.git2),this.gitInv3=this.gitInv3||C(this.git3),this.gitInv4=this.gitInv4||C(this.git4),this.gitInv5=this.gitInv5||C(this.git5),this.gitInv6=this.gitInv6||C(this.git6),this.gitInv7=this.gitInv7||C(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||C(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||C(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ti,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Si}calculate(e){if(typeof e!="object"){this.updateColors();return}let r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},ap=t=>{let e=new np;return e.calculate(t),e},sp=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=k("#cde498",10),this.primaryBorderColor=bt(this.primaryColor,this.darkMode),this.secondaryBorderColor=bt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=bt(this.tertiaryColor,this.darkMode),this.primaryTextColor=C(this.primaryColor),this.secondaryTextColor=C(this.secondaryColor),this.tertiaryTextColor=C(this.primaryColor),this.lineColor=C(this.background),this.textColor=C(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,r,i,o,n,a,s,l,d,m,f;this.actorBorder=O(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||u(this.primaryColor,{h:30}),this.cScale4=this.cScale4||u(this.primaryColor,{h:60}),this.cScale5=this.cScale5||u(this.primaryColor,{h:90}),this.cScale6=this.cScale6||u(this.primaryColor,{h:120}),this.cScale7=this.cScale7||u(this.primaryColor,{h:150}),this.cScale8=this.cScale8||u(this.primaryColor,{h:210}),this.cScale9=this.cScale9||u(this.primaryColor,{h:270}),this.cScale10=this.cScale10||u(this.primaryColor,{h:300}),this.cScale11=this.cScale11||u(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||O(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||O(this.tertiaryColor,40);for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScale"+c]=O(this["cScale"+c],10),this["cScalePeer"+c]=this["cScalePeer"+c]||O(this["cScale"+c],25);for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScaleInv"+c]=this["cScaleInv"+c]||u(this["cScale"+c],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScaleLabel"+c]=this["cScaleLabel"+c]||this.scaleLabelColor;for(let c=0;c<5;c++)this["surface"+c]=this["surface"+c]||u(this.mainBkg,{h:30,s:-30,l:-(5+c*5)}),this["surfacePeer"+c]=this["surfacePeer"+c]||u(this.mainBkg,{h:30,s:-30,l:-(8+c*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=u(this.primaryColor,{h:64}),this.fillType3=u(this.secondaryColor,{h:64}),this.fillType4=u(this.primaryColor,{h:-64}),this.fillType5=u(this.secondaryColor,{h:-64}),this.fillType6=u(this.primaryColor,{h:128}),this.fillType7=u(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||u(this.primaryColor,{l:-30}),this.pie5=this.pie5||u(this.secondaryColor,{l:-30}),this.pie6=this.pie6||u(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||u(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||u(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||u(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||u(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||u(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||u(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||u(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||u(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||u(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||u(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||u(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||u(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Te(this.quadrant1Fill)?k(this.quadrant1Fill):O(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((n=this.xyChart)==null?void 0:n.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((m=this.xyChart)==null?void 0:m.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||u(this.primaryColor,{h:-30}),this.git4=this.git4||u(this.primaryColor,{h:-60}),this.git5=this.git5||u(this.primaryColor,{h:-90}),this.git6=this.git6||u(this.primaryColor,{h:60}),this.git7=this.git7||u(this.primaryColor,{h:120}),this.darkMode?(this.git0=k(this.git0,25),this.git1=k(this.git1,25),this.git2=k(this.git2,25),this.git3=k(this.git3,25),this.git4=k(this.git4,25),this.git5=k(this.git5,25),this.git6=k(this.git6,25),this.git7=k(this.git7,25)):(this.git0=O(this.git0,25),this.git1=O(this.git1,25),this.git2=O(this.git2,25),this.git3=O(this.git3,25),this.git4=O(this.git4,25),this.git5=O(this.git5,25),this.git6=O(this.git6,25),this.git7=O(this.git7,25)),this.gitInv0=this.gitInv0||C(this.git0),this.gitInv1=this.gitInv1||C(this.git1),this.gitInv2=this.gitInv2||C(this.git2),this.gitInv3=this.gitInv3||C(this.git3),this.gitInv4=this.gitInv4||C(this.git4),this.gitInv5=this.gitInv5||C(this.git5),this.gitInv6=this.gitInv6||C(this.git6),this.gitInv7=this.gitInv7||C(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||C(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||C(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ti,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Si}calculate(e){if(typeof e!="object"){this.updateColors();return}let r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},lp=t=>{let e=new sp;return e.calculate(t),e},fo=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=k(this.contrast,55),this.background="#ffffff",this.tertiaryColor=u(this.primaryColor,{h:-160}),this.primaryBorderColor=bt(this.primaryColor,this.darkMode),this.secondaryBorderColor=bt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=bt(this.tertiaryColor,this.darkMode),this.primaryTextColor=C(this.primaryColor),this.secondaryTextColor=C(this.secondaryColor),this.tertiaryTextColor=C(this.tertiaryColor),this.lineColor=C(this.background),this.textColor=C(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,r,i,o,n,a,s,l,d,m,f;this.secondBkg=k(this.contrast,55),this.border2=this.contrast,this.actorBorder=k(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScaleInv"+c]=this["cScaleInv"+c]||C(this["cScale"+c]);for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this.darkMode?this["cScalePeer"+c]=this["cScalePeer"+c]||k(this["cScale"+c],10):this["cScalePeer"+c]=this["cScalePeer"+c]||O(this["cScale"+c],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScaleLabel"+c]=this["cScaleLabel"+c]||this.scaleLabelColor;for(let c=0;c<5;c++)this["surface"+c]=this["surface"+c]||u(this.mainBkg,{l:-(5+c*5)}),this["surfacePeer"+c]=this["surfacePeer"+c]||u(this.mainBkg,{l:-(8+c*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=k(this.contrast,30),this.sectionBkgColor2=k(this.contrast,30),this.taskBorderColor=O(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=k(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=O(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=u(this.primaryColor,{h:64}),this.fillType3=u(this.secondaryColor,{h:64}),this.fillType4=u(this.primaryColor,{h:-64}),this.fillType5=u(this.secondaryColor,{h:-64}),this.fillType6=u(this.primaryColor,{h:128}),this.fillType7=u(this.secondaryColor,{h:128});for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["pie"+c]=this["cScale"+c];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||u(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||u(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||u(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||u(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||u(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||u(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Te(this.quadrant1Fill)?k(this.quadrant1Fill):O(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((n=this.xyChart)==null?void 0:n.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((m=this.xyChart)==null?void 0:m.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=O(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||u(this.primaryColor,{h:-30}),this.git4=this.pie5||u(this.primaryColor,{h:-60}),this.git5=this.pie6||u(this.primaryColor,{h:-90}),this.git6=this.pie7||u(this.primaryColor,{h:60}),this.git7=this.pie8||u(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||C(this.git0),this.gitInv1=this.gitInv1||C(this.git1),this.gitInv2=this.gitInv2||C(this.git2),this.gitInv3=this.gitInv3||C(this.git3),this.gitInv4=this.gitInv4||C(this.git4),this.gitInv5=this.gitInv5||C(this.git5),this.gitInv6=this.gitInv6||C(this.git6),this.gitInv7=this.gitInv7||C(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ti,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Si}calculate(e){if(typeof e!="object"){this.updateColors();return}let r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},cp=t=>{let e=new fo;return e.calculate(t),e},re={base:{getThemeVariables:rp},dark:{getThemeVariables:op},default:{getThemeVariables:ap},forest:{getThemeVariables:lp},neutral:{getThemeVariables:cp}},te={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},ul=Mt(Ot({},te),{deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:re.default.getThemeVariables(),sequence:Mt(Ot({},te.sequence),{messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}}),gantt:Mt(Ot({},te.gantt),{tickInterval:void 0,useWidth:void 0}),c4:Mt(Ot({},te.c4),{useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}}),pie:Mt(Ot({},te.pie),{useWidth:984}),xyChart:Mt(Ot({},te.xyChart),{useWidth:void 0}),requirement:Mt(Ot({},te.requirement),{useWidth:void 0}),gitGraph:Mt(Ot({},te.gitGraph),{useMaxWidth:!1}),sankey:Mt(Ot({},te.sankey),{useMaxWidth:!1})}),dl=(t,e="")=>Object.keys(t).reduce((r,i)=>Array.isArray(t[i])?r:typeof t[i]=="object"&&t[i]!==null?[...r,e+i,...dl(t[i],"")]:[...r,e+i],[]),hp=new Set(dl(ul,"")),up=ul,hi=t=>{if(M.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>hi(e));return}for(let e of Object.keys(t)){if(M.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!hp.has(e)||t[e]==null){M.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){M.debug("sanitizing object",e),hi(t[e]);continue}let r=["themeCSS","fontFamily","altFontFamily"];for(let i of r)e.includes(i)&&(M.debug("sanitizing css option",e),t[e]=dp(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]="")}M.debug("After sanitization",t)}},dp=t=>{let e=0,r=0;for(let i of t){if(e<r)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?e++:i==="}"&&r++}return e!==r?"{ /* ERROR: Unbalanced CSS */ }":t},fl=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,xr=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,fp=/\s*%%.*\n/gm,ui=class extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}},Qe={},_i=function(t,e){t=t.replace(fl,"").replace(xr,"").replace(fp,`
`);for(let[r,{detector:i}]of Object.entries(Qe))if(i(t,e))return r;throw new ui(`No diagram type detected matching given configuration for text: ${t}`)},pl=(...t)=>{for(let{id:e,detector:r,loader:i}of t)ml(e,r,i)},ml=(t,e,r)=>{Qe[t]?M.error(`Detector with key ${t} already exists`):Qe[t]={detector:e,loader:r},M.debug(`Detector with key ${t} added${r?" with loader":""}`)},pp=t=>Qe[t].loader,po=(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)},pt=po,mp="\u200B",gp={curveBasis:mn,curveBasisClosed:gn,curveBasisOpen:Cn,curveBumpX:fn,curveBumpY:pn,curveBundle:yn,curveCardinalClosed:xn,curveCardinalOpen:Tn,curveCardinal:bn,curveCatmullRomClosed:_n,curveCatmullRomOpen:kn,curveCatmullRom:Sn,curveLinear:dn,curveLinearClosed:vn,curveMonotoneX:Bn,curveMonotoneY:Ln,curveNatural:Fn,curveStep:An,curveStepAfter:En,curveStepBefore:wn},Cp=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,yp=function(t,e){let r=gl(t,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(r)){let a=r.map(s=>s.args);hi(a),i=pt(i,[...a])}else i=r.args;if(!i)return;let o=_i(t,e),n="config";return i[n]!==void 0&&(o==="flowchart-v2"&&(o="flowchart"),i[o]=i[n],delete i[n]),i},gl=function(t,e=null){try{let r=new RegExp(`[%]{2}(?![{]${Cp.source})(?=[}][%]{2}).*
`,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),M.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let i,o=[];for(;(i=xr.exec(t))!==null;)if(i.index===xr.lastIndex&&xr.lastIndex++,i&&!e||e&&i[1]&&i[1].match(e)||e&&i[2]&&i[2].match(e)){let n=i[1]?i[1]:i[2],a=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;o.push({type:n,args:a})}return o.length===0?{type:t,args:null}:o.length===1?o[0]:o}catch(r){return M.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},bp=function(t){return t.replace(xr,"")},xp=function(t,e){for(let[r,i]of e.entries())if(i.match(t))return r;return-1};function Tp(t,e){if(!t)return e;let r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return gp[r]??e}function Sp(t,e){let r=t.trim();if(r)return e.securityLevel!=="loose"?(0,sl.sanitizeUrl)(r):r}var _p=(t,...e)=>{let r=t.split("."),i=r.length-1,o=r[i],n=window;for(let a=0;a<i;a++)if(n=n[r[a]],!n){M.error(`Function name: ${t} not found in window`);return}n[o](...e)};function Cl(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function kp(t){let e,r=0;t.forEach(o=>{r+=Cl(o,e),e=o});let i=r/2;return xo(t,i)}function vp(t){return t.length===1?t[0]:kp(t)}var Hs=(t,e=2)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},xo=(t,e)=>{let r,i=e;for(let o of t){if(r){let n=Cl(o,r);if(n<i)i-=n;else{let a=i/n;if(a<=0)return r;if(a>=1)return{x:o.x,y:o.y};if(a>0&&a<1)return{x:Hs((1-a)*r.x+a*o.x,5),y:Hs((1-a)*r.y+a*o.y,5)}}}r=o}throw new Error("Could not find a suitable point for the given distance")},Bp=(t,e,r)=>{M.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());let o=xo(e,25),n=t?10:5,a=Math.atan2(e[0].y-o.y,e[0].x-o.x),s={x:0,y:0};return s.x=Math.sin(a)*n+(e[0].x+o.x)/2,s.y=-Math.cos(a)*n+(e[0].y+o.y)/2,s};function Lp(t,e,r){let i=structuredClone(r);M.info("our points",i),e!=="start_left"&&e!=="start_right"&&i.reverse();let o=25+t,n=xo(i,o),a=10+t*.5,s=Math.atan2(i[0].y-n.y,i[0].x-n.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(s+Math.PI)*a+(i[0].x+n.x)/2,l.y=-Math.cos(s+Math.PI)*a+(i[0].y+n.y)/2):e==="end_right"?(l.x=Math.sin(s-Math.PI)*a+(i[0].x+n.x)/2-5,l.y=-Math.cos(s-Math.PI)*a+(i[0].y+n.y)/2-5):e==="end_left"?(l.x=Math.sin(s)*a+(i[0].x+n.x)/2-5,l.y=-Math.cos(s)*a+(i[0].y+n.y)/2-5):(l.x=Math.sin(s)*a+(i[0].x+n.x)/2,l.y=-Math.cos(s)*a+(i[0].y+n.y)/2),l}function Fp(t){let e="",r="";for(let i of t)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":e=e+i+";");return{style:e,labelStyle:r}}var Us=0,Ap=()=>(Us++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Us);function wp(t){let e="",r="0123456789abcdef",i=r.length;for(let o=0;o<t;o++)e+=r.charAt(Math.floor(Math.random()*i));return e}var Ep=t=>wp(t.length),Op=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},Mp=function(t,e){let r=e.text.replace(bo.lineBreakRegex," "),[,i]=So(e.fontSize),o=t.append("text");o.attr("x",e.x),o.attr("y",e.y),o.style("text-anchor",e.anchor),o.style("font-family",e.fontFamily),o.style("font-size",i),o.style("font-weight",e.fontWeight),o.attr("fill",e.fill),e.class!==void 0&&o.attr("class",e.class);let n=o.append("tspan");return n.attr("x",e.x+e.textMargin*2),n.attr("fill",e.fill),n.text(r),o},Ip=Nr((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),bo.lineBreakRegex.test(t)))return t;let i=t.split(" "),o=[],n="";return i.forEach((a,s)=>{let l=di(`${a} `,r),d=di(n,r);if(l>e){let{hyphenatedStrings:c,remainingWord:p}=Dp(a,e,"-",r);o.push(n,...c),n=p}else d+l>=e?(o.push(n),n=a):n=[n,a].filter(Boolean).join(" ");s+1===i.length&&o.push(n)}),o.filter(a=>a!=="").join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),Dp=Nr((t,e,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);let o=[...t],n=[],a="";return o.forEach((s,l)=>{let d=`${a}${s}`;if(di(d,i)>=e){let f=l+1,c=o.length===f,p=`${d}${r}`;n.push(c?d:p),a=""}else a=d}),{hyphenatedStrings:n,remainingWord:a}},(t,e,r="-",i)=>`${t}${e}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function Rp(t,e){return To(t,e).height}function di(t,e){return To(t,e).width}var To=Nr((t,e)=>{let{fontSize:r=12,fontFamily:i="Arial",fontWeight:o=400}=e;if(!t)return{width:0,height:0};let[,n]=So(r),a=["sans-serif",i],s=t.split(bo.lineBreakRegex),l=[],d=Lt("body");if(!d.remove)return{width:0,height:0,lineHeight:0};let m=d.append("svg");for(let c of a){let p=0,E={width:0,height:0,lineHeight:0};for(let I of s){let L=Op();L.text=I||mp;let N=Mp(m,L).style("font-size",n).style("font-weight",o).style("font-family",c),T=(N._groups||N)[0][0].getBBox();if(T.width===0&&T.height===0)throw new Error("svg element not in render tree");E.width=Math.round(Math.max(E.width,T.width)),p=Math.round(T.height),E.height+=p,E.lineHeight=Math.round(Math.max(E.lineHeight,p))}l.push(E)}m.remove();let f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),mo=class{constructor(e=!1,r){this.count=0,this.count=r?r.length:0,this.next=e?()=>this.count++:()=>Date.now()}},li,Pp=function(t){return li=li||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),li.innerHTML=t,unescape(li.textContent)};function yl(t){return"str"in t}var $p=(t,e,r,i)=>{var o;if(!i)return;let n=(o=t.node())==null?void 0:o.getBBox();n&&t.append("text").text(i).attr("x",n.x+n.width/2).attr("y",-r).attr("class",e)},So=t=>{if(typeof t=="number")return[t,t+"px"];let e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function bl(t,e){return ps({},t,e)}var Tr={assignWithDepth:pt,wrapLabel:Ip,calculateTextHeight:Rp,calculateTextWidth:di,calculateTextDimensions:To,cleanAndMerge:bl,detectInit:yp,detectDirective:gl,isSubstringInArray:xp,interpolateToCurve:Tp,calcLabelPosition:vp,calcCardinalityPosition:Bp,calcTerminalLabelPosition:Lp,formatUrl:Sp,getStylesFromArray:Fp,generateId:Ap,random:Ep,runFunc:_p,entityDecode:Pp,insertTitle:$p,parseFontSize:So,InitIDGenerator:mo},qp=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/#\w+;/g,function(r){let i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"\uFB02\xB0\xB0"+i+"\xB6\xDF":"\uFB02\xB0"+i+"\xB6\xDF"}),e},Np=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},Ys="10.9.1",tr=Object.freeze(up),vt=pt({},tr),xl,er=[],Sr=pt({},tr),ki=(t,e)=>{let r=pt({},t),i={};for(let o of e)_l(o),i=pt(i,o);if(r=pt(r,i),i.theme&&i.theme in re){let o=pt({},xl),n=pt(o.themeVariables||{},i.themeVariables);r.theme&&r.theme in re&&(r.themeVariables=re[r.theme].getThemeVariables(n))}return Sr=r,kl(Sr),Sr},zp=t=>(vt=pt({},tr),vt=pt(vt,t),t.theme&&re[t.theme]&&(vt.themeVariables=re[t.theme].getThemeVariables(t.themeVariables)),ki(vt,er),vt),jp=t=>{xl=pt({},t)},Wp=t=>(vt=pt(vt,t),ki(vt,er),vt),Tl=()=>pt({},vt),Sl=t=>(kl(t),pt(Sr,t),zt()),zt=()=>pt({},Sr),_l=t=>{t&&(["secure",...vt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(M.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"&&_l(t[e])}))},Hp=t=>{hi(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),er.push(t),ki(vt,er)},fi=(t=vt)=>{er=[],ki(t,er)},Up={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Gs={},Yp=t=>{Gs[t]||(M.warn(Up[t]),Gs[t]=!0)},kl=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Yp("LAZY_LOAD_DEPRECATED")},vl="c4",Gp=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),Vp=()=>z(void 0,null,function*(){let{diagram:t}=yield import("./chunk-O2NEMARA.js");return{id:vl,diagram:t}}),Xp={id:vl,detector:Gp,loader:Vp},Kp=Xp,Bl="flowchart",Zp=(t,e)=>{var r,i;return((r=e?.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=e?.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},Jp=()=>z(void 0,null,function*(){let{diagram:t}=yield import("./chunk-ZQ22FCU5.js");return{id:Bl,diagram:t}}),Qp={id:Bl,detector:Zp,loader:Jp},tm=Qp,Ll="flowchart-v2",em=(t,e)=>{var r,i,o;return((r=e?.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"||((i=e?.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((o=e?.flowchart)==null?void 0:o.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},rm=()=>z(void 0,null,function*(){let{diagram:t}=yield import("./chunk-IGYKPPRA.js");return{id:Ll,diagram:t}}),im={id:Ll,detector:em,loader:rm},om=im,Fl="er",nm=t=>/^\s*erDiagram/.test(t),am=()=>z(void 0,null,function*(){let{diagram:t}=yield import("./chunk-JVQGBBEP.js");return{id:Fl,diagram:t}}),sm={id:Fl,detector:nm,loader:am},lm=sm,Al="gitGraph",cm=t=>/^\s*gitGraph/.test(t),hm=()=>z(void 0,null,function*(){let{diagram:t}=yield import("./chunk-2DW5ONQH.js");return{id:Al,diagram:t}}),um={id:Al,detector:cm,loader:hm},dm=um,wl="gantt",fm=t=>/^\s*gantt/.test(t),pm=()=>z(void 0,null,function*(){let{diagram:t}=yield import("./chunk-LDJMLJYN.js");return{id:wl,diagram:t}}),mm={id:wl,detector:fm,loader:pm},gm=mm,El="info",Cm=t=>/^\s*info/.test(t),ym=()=>z(void 0,null,function*(){let{diagram:t}=yield import("./chunk-BWHPLZ5J.js");return{id:El,diagram:t}}),bm={id:El,detector:Cm,loader:ym},Ol="pie",xm=t=>/^\s*pie/.test(t),Tm=()=>z(void 0,null,function*(){let{diagram:t}=yield import("./chunk-XYMDMXGQ.js");return{id:Ol,diagram:t}}),Sm={id:Ol,detector:xm,loader:Tm},Ml="quadrantChart",_m=t=>/^\s*quadrantChart/.test(t),km=()=>z(void 0,null,function*(){let{diagram:t}=yield import("./chunk-YMYBAJOX.js");return{id:Ml,diagram:t}}),vm={id:Ml,detector:_m,loader:km},Bm=vm,Il="xychart",Lm=t=>/^\s*xychart-beta/.test(t),Fm=()=>z(void 0,null,function*(){let{diagram:t}=yield import("./chunk-OSC6F62Q.js");return{id:Il,diagram:t}}),Am={id:Il,detector:Lm,loader:Fm},wm=Am,Dl="requirement",Em=t=>/^\s*requirement(Diagram)?/.test(t),Om=()=>z(void 0,null,function*(){let{diagram:t}=yield import("./chunk-UOHHERZ5.js");return{id:Dl,diagram:t}}),Mm={id:Dl,detector:Em,loader:Om},Im=Mm,Rl="sequence",Dm=t=>/^\s*sequenceDiagram/.test(t),Rm=()=>z(void 0,null,function*(){let{diagram:t}=yield import("./chunk-6I2IHSUE.js");return{id:Rl,diagram:t}}),Pm={id:Rl,detector:Dm,loader:Rm},$m=Pm,Pl="class",qm=(t,e)=>{var r;return((r=e?.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},Nm=()=>z(void 0,null,function*(){let{diagram:t}=yield import("./chunk-BXG3IDIO.js");return{id:Pl,diagram:t}}),zm={id:Pl,detector:qm,loader:Nm},jm=zm,$l="classDiagram",Wm=(t,e)=>{var r;return/^\s*classDiagram/.test(t)&&((r=e?.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},Hm=()=>z(void 0,null,function*(){let{diagram:t}=yield import("./chunk-FUSH32UE.js");return{id:$l,diagram:t}}),Um={id:$l,detector:Wm,loader:Hm},Ym=Um,ql="state",Gm=(t,e)=>{var r;return((r=e?.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},Vm=()=>z(void 0,null,function*(){let{diagram:t}=yield import("./chunk-F7RTWDXB.js");return{id:ql,diagram:t}}),Xm={id:ql,detector:Gm,loader:Vm},Km=Xm,Nl="stateDiagram",Zm=(t,e)=>{var r;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((r=e?.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},Jm=()=>z(void 0,null,function*(){let{diagram:t}=yield import("./chunk-YKIBFNKP.js");return{id:Nl,diagram:t}}),Qm={id:Nl,detector:Zm,loader:Jm},tg=Qm,zl="journey",eg=t=>/^\s*journey/.test(t),rg=()=>z(void 0,null,function*(){let{diagram:t}=yield import("./chunk-RZQK46QH.js");return{id:zl,diagram:t}}),ig={id:zl,detector:eg,loader:rg},og=ig,ng=function(t,e){for(let r of e)t.attr(r[0],r[1])},ag=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},jl=function(t,e,r,i){let o=ag(e,r,i);ng(t,o)},sg=function(t,e,r,i){let o=e.node().getBBox(),n=o.width,a=o.height;M.info(`SVG bounds: ${n}x${a}`,o);let s=0,l=0;M.info(`Graph bounds: ${s}x${l}`,t),s=n+r*2,l=a+r*2,M.info(`Calculated bounds: ${s}x${l}`),jl(e,l,s,i);let d=`${o.x-r} ${o.y-r} ${o.width+2*r} ${o.height+2*r}`;e.attr("viewBox",d)},ci={},lg=(t,e,r)=>{let i="";return t in ci&&ci[t]?i=ci[t](r):M.warn(`No theme found for ${t}`),` & {
font-family: ${r.fontFamily};
font-size: ${r.fontSize};
fill: ${r.textColor}
}
/* Classes common for multiple diagrams */
& .error-icon {
fill: ${r.errorBkgColor};
}
& .error-text {
fill: ${r.errorTextColor};
stroke: ${r.errorTextColor};
}
& .edge-thickness-normal {
stroke-width: 2px;
}
& .edge-thickness-thick {
stroke-width: 3.5px
}
& .edge-pattern-solid {
stroke-dasharray: 0;
}
& .edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
}
& .marker {
fill: ${r.lineColor};
stroke: ${r.lineColor};
}
& .marker.cross {
stroke: ${r.lineColor};
}
& svg {
font-family: ${r.fontFamily};
font-size: ${r.fontSize};
}
${i}
${e}
`},cg=(t,e)=>{e!==void 0&&(ci[t]=e)},hg=lg,_o="",ko="",vo="",Bo=t=>_r(t,zt()),ug=()=>{_o="",vo="",ko=""},dg=t=>{_o=Bo(t).replace(/^\s+/g,"")},fg=()=>_o,pg=t=>{vo=Bo(t).replace(/\n\s+/g,`
`)},mg=()=>vo,gg=t=>{ko=Bo(t)},Cg=()=>ko,yg=Object.freeze(Object.defineProperty({__proto__:null,clear:ug,getAccDescription:mg,getAccTitle:fg,getDiagramTitle:Cg,setAccDescription:pg,setAccTitle:dg,setDiagramTitle:gg},Symbol.toStringTag,{value:"Module"})),bg=M,xg=yo,Lo=zt,Ik=Sl,Dk=tr,Tg=t=>_r(t,Lo()),Sg=sg,_g=()=>yg,pi={},mi=(t,e,r)=>{var i;if(pi[t])throw new Error(`Diagram ${t} already registered.`);pi[t]=e,r&&ml(t,r),cg(t,e.styles),(i=e.injectUtils)==null||i.call(e,bg,xg,Lo,Tg,Sg,_g(),()=>{})},Fo=t=>{if(t in pi)return pi[t];throw new go(t)},go=class extends Error{constructor(e){super(`Diagram ${e} not found.`)}},kg=t=>{var e;let{securityLevel:r}=Lo(),i=Lt("body");if(r==="sandbox"){let a=((e=Lt(`#i${t}`).node())==null?void 0:e.contentDocument)??document;i=Lt(a.body)}return i.select(`#${t}`)},vg=(t,e,r)=>{M.debug(`rendering svg for syntax error
`);let i=kg(e),o=i.append("g");i.attr("viewBox","0 0 2412 512"),jl(i,100,512,!0),o.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),o.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),o.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),o.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),o.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),o.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),o.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},Wl={draw:vg},Bg=Wl,Lg={db:{},renderer:Wl,parser:{parser:{yy:{}},parse:()=>{}}},Fg=Lg,Hl="flowchart-elk",Ag=(t,e)=>{var r;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((r=e?.flowchart)==null?void 0:r.defaultRenderer)==="elk")},wg=()=>z(void 0,null,function*(){let{diagram:t}=yield import("./chunk-CHM72DWP.js");return{id:Hl,diagram:t}}),Eg={id:Hl,detector:Ag,loader:wg},Og=Eg,Ul="timeline",Mg=t=>/^\s*timeline/.test(t),Ig=()=>z(void 0,null,function*(){let{diagram:t}=yield import("./chunk-LEUO557X.js");return{id:Ul,diagram:t}}),Dg={id:Ul,detector:Mg,loader:Ig},Rg=Dg,Yl="mindmap",Pg=t=>/^\s*mindmap/.test(t),$g=()=>z(void 0,null,function*(){let{diagram:t}=yield import("./chunk-5AIAIJ7N.js");return{id:Yl,diagram:t}}),qg={id:Yl,detector:Pg,loader:$g},Ng=qg,Gl="sankey",zg=t=>/^\s*sankey-beta/.test(t),jg=()=>z(void 0,null,function*(){let{diagram:t}=yield import("./chunk-N2PSIHDD.js");return{id:Gl,diagram:t}}),Wg={id:Gl,detector:zg,loader:jg},Hg=Wg,Vl="block",Ug=t=>/^\s*block-beta/.test(t),Yg=()=>z(void 0,null,function*(){let{diagram:t}=yield import("./chunk-K7ITPZ2X.js");return{id:Vl,diagram:t}}),Gg={id:Vl,detector:Ug,loader:Yg},Vg=Gg,Vs=!1,Ao=()=>{Vs||(Vs=!0,mi("error",Fg,t=>t.toLowerCase().trim()==="error"),mi("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),pl(Kp,Ym,jm,lm,gm,bm,Sm,Im,$m,Og,om,tm,Ng,Rg,dm,tg,Km,og,Bm,Hg,wm,Vg))},gi=class{constructor(e,r={}){this.text=e,this.metadata=r,this.type="graph",this.text=qp(e),this.text+=`
`;let i=zt();try{this.type=_i(e,i)}catch(n){this.type="error",this.detectError=n}let o=Fo(this.type);M.debug("Type "+this.type),this.db=o.db,this.renderer=o.renderer,this.parser=o.parser,this.parser.parser.yy=this.db,this.init=o.init,this.parse()}parse(){var e,r,i,o,n;if(this.detectError)throw this.detectError;(r=(e=this.db).clear)==null||r.call(e);let a=zt();(i=this.init)==null||i.call(this,a),this.metadata.title&&((n=(o=this.db).setDiagramTitle)==null||n.call(o,this.metadata.title)),this.parser.parse(this.text)}render(e,r){return z(this,null,function*(){yield this.renderer.draw(this.text,e,r,this)})}getParser(){return this.parser}getType(){return this.type}},Xg=(r,...i)=>z(void 0,[r,...i],function*(t,e={}){let o=_i(t,zt());try{Fo(o)}catch{let a=pp(o);if(!a)throw new ui(`Diagram ${o} not found.`);let{id:s,diagram:l}=yield a();mi(s,l)}return new gi(t,e)}),Xs=[],Kg=()=>{Xs.forEach(t=>{t()}),Xs=[]},Zg="graphics-document document";function Jg(t,e){t.attr("role",Zg),e!==""&&t.attr("aria-roledescription",e)}function Qg(t,e,r,i){if(t.insert!==void 0){if(r){let o=`chart-desc-${i}`;t.attr("aria-describedby",o),t.insert("desc",":first-child").attr("id",o).text(r)}if(e){let o=`chart-title-${i}`;t.attr("aria-labelledby",o),t.insert("title",":first-child").attr("id",o).text(e)}}}var tC=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();function Xl(t){return typeof t>"u"||t===null}function eC(t){return typeof t=="object"&&t!==null}function rC(t){return Array.isArray(t)?t:Xl(t)?[]:[t]}function iC(t,e){var r,i,o,n;if(e)for(n=Object.keys(e),r=0,i=n.length;r<i;r+=1)o=n[r],t[o]=e[o];return t}function oC(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function nC(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var aC=Xl,sC=eC,lC=rC,cC=oC,hC=nC,uC=iC,yt={isNothing:aC,isObject:sC,toArray:lC,repeat:cC,isNegativeZero:hC,extend:uC};function Kl(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
`+t.mark.snippet),i+" "+r):i}function kr(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Kl(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}kr.prototype=Object.create(Error.prototype);kr.prototype.constructor=kr;kr.prototype.toString=function(e){return this.name+": "+Kl(this,e)};var ee=kr;function ao(t,e,r,i,o){var n="",a="",s=Math.floor(o/2)-1;return i-e>s&&(n=" ... ",e=i-s+n.length),r-i>s&&(a=" ...",r=i+s-a.length),{str:n+t.slice(e,r).replace(/\t/g,"\u2192")+a,pos:i-e+n.length}}function so(t,e){return yt.repeat(" ",e-t.length)+t}function dC(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],o=[],n,a=-1;n=r.exec(t.buffer);)o.push(n.index),i.push(n.index+n[0].length),t.position<=n.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var s="",l,d,m=Math.min(t.line+e.linesAfter,o.length).toString().length,f=e.maxLength-(e.indent+m+3);for(l=1;l<=e.linesBefore&&!(a-l<0);l++)d=ao(t.buffer,i[a-l],o[a-l],t.position-(i[a]-i[a-l]),f),s=yt.repeat(" ",e.indent)+so((t.line-l+1).toString(),m)+" | "+d.str+`
`+s;for(d=ao(t.buffer,i[a],o[a],t.position,f),s+=yt.repeat(" ",e.indent)+so((t.line+1).toString(),m)+" | "+d.str+`
`,s+=yt.repeat("-",e.indent+m+3+d.pos)+`^
`,l=1;l<=e.linesAfter&&!(a+l>=o.length);l++)d=ao(t.buffer,i[a+l],o[a+l],t.position-(i[a]-i[a+l]),f),s+=yt.repeat(" ",e.indent)+so((t.line+l+1).toString(),m)+" | "+d.str+`
`;return s.replace(/\n$/,"")}var fC=dC,pC=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],mC=["scalar","sequence","mapping"];function gC(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function CC(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(pC.indexOf(r)===-1)throw new ee('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=gC(e.styleAliases||null),mC.indexOf(this.kind)===-1)throw new ee('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var mt=CC;function Ks(t,e){var r=[];return t[e].forEach(function(i){var o=r.length;r.forEach(function(n,a){n.tag===i.tag&&n.kind===i.kind&&n.multi===i.multi&&(o=a)}),r[o]=i}),r}function yC(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(o){o.multi?(t.multi[o.kind].push(o),t.multi.fallback.push(o)):t[o.kind][o.tag]=t.fallback[o.tag]=o}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}function Co(t){return this.extend(t)}Co.prototype.extend=function(e){var r=[],i=[];if(e instanceof mt)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new ee("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(n){if(!(n instanceof mt))throw new ee("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&n.loadKind!=="scalar")throw new ee("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(n.multi)throw new ee("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(n){if(!(n instanceof mt))throw new ee("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var o=Object.create(Co.prototype);return o.implicit=(this.implicit||[]).concat(r),o.explicit=(this.explicit||[]).concat(i),o.compiledImplicit=Ks(o,"implicit"),o.compiledExplicit=Ks(o,"explicit"),o.compiledTypeMap=yC(o.compiledImplicit,o.compiledExplicit),o};var bC=Co,xC=new mt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),TC=new mt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),SC=new mt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),_C=new bC({explicit:[xC,TC,SC]});function kC(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function vC(){return null}function BC(t){return t===null}var LC=new mt("tag:yaml.org,2002:null",{kind:"scalar",resolve:kC,construct:vC,predicate:BC,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function FC(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function AC(t){return t==="true"||t==="True"||t==="TRUE"}function wC(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var EC=new mt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:FC,construct:AC,predicate:wC,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function OC(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function MC(t){return 48<=t&&t<=55}function IC(t){return 48<=t&&t<=57}function DC(t){if(t===null)return!1;var e=t.length,r=0,i=!1,o;if(!e)return!1;if(o=t[r],(o==="-"||o==="+")&&(o=t[++r]),o==="0"){if(r+1===e)return!0;if(o=t[++r],o==="b"){for(r++;r<e;r++)if(o=t[r],o!=="_"){if(o!=="0"&&o!=="1")return!1;i=!0}return i&&o!=="_"}if(o==="x"){for(r++;r<e;r++)if(o=t[r],o!=="_"){if(!OC(t.charCodeAt(r)))return!1;i=!0}return i&&o!=="_"}if(o==="o"){for(r++;r<e;r++)if(o=t[r],o!=="_"){if(!MC(t.charCodeAt(r)))return!1;i=!0}return i&&o!=="_"}}if(o==="_")return!1;for(;r<e;r++)if(o=t[r],o!=="_"){if(!IC(t.charCodeAt(r)))return!1;i=!0}return!(!i||o==="_")}function RC(t){var e=t,r=1,i;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),i=e[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),e=e.slice(1),i=e[0]),e==="0")return 0;if(i==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function PC(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!yt.isNegativeZero(t)}var $C=new mt("tag:yaml.org,2002:int",{kind:"scalar",resolve:DC,construct:RC,predicate:PC,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),qC=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function NC(t){return!(t===null||!qC.test(t)||t[t.length-1]==="_")}function zC(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var jC=/^[-+]?[0-9]+e/;function WC(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(yt.isNegativeZero(t))return"-0.0";return r=t.toString(10),jC.test(r)?r.replace("e",".e"):r}function HC(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||yt.isNegativeZero(t))}var UC=new mt("tag:yaml.org,2002:float",{kind:"scalar",resolve:NC,construct:zC,predicate:HC,represent:WC,defaultStyle:"lowercase"}),Zl=_C.extend({implicit:[LC,EC,$C,UC]}),YC=Zl,Jl=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Ql=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function GC(t){return t===null?!1:Jl.exec(t)!==null||Ql.exec(t)!==null}function VC(t){var e,r,i,o,n,a,s,l=0,d=null,m,f,c;if(e=Jl.exec(t),e===null&&(e=Ql.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,o=+e[3],!e[4])return new Date(Date.UTC(r,i,o));if(n=+e[4],a=+e[5],s=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(m=+e[10],f=+(e[11]||0),d=(m*60+f)*6e4,e[9]==="-"&&(d=-d)),c=new Date(Date.UTC(r,i,o,n,a,s,l)),d&&c.setTime(c.getTime()-d),c}function XC(t){return t.toISOString()}var KC=new mt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:GC,construct:VC,instanceOf:Date,represent:XC});function ZC(t){return t==="<<"||t===null}var JC=new mt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:ZC}),wo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function QC(t){if(t===null)return!1;var e,r,i=0,o=t.length,n=wo;for(r=0;r<o;r++)if(e=n.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function ty(t){var e,r,i=t.replace(/[\r\n=]/g,""),o=i.length,n=wo,a=0,s=[];for(e=0;e<o;e++)e%4===0&&e&&(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)),a=a<<6|n.indexOf(i.charAt(e));return r=o%4*6,r===0?(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)):r===18?(s.push(a>>10&255),s.push(a>>2&255)):r===12&&s.push(a>>4&255),new Uint8Array(s)}function ey(t){var e="",r=0,i,o,n=t.length,a=wo;for(i=0;i<n;i++)i%3===0&&i&&(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]),r=(r<<8)+t[i];return o=n%3,o===0?(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]):o===2?(e+=a[r>>10&63],e+=a[r>>4&63],e+=a[r<<2&63],e+=a[64]):o===1&&(e+=a[r>>2&63],e+=a[r<<4&63],e+=a[64],e+=a[64]),e}function ry(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var iy=new mt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:QC,construct:ty,predicate:ry,represent:ey}),oy=Object.prototype.hasOwnProperty,ny=Object.prototype.toString;function ay(t){if(t===null)return!0;var e=[],r,i,o,n,a,s=t;for(r=0,i=s.length;r<i;r+=1){if(o=s[r],a=!1,ny.call(o)!=="[object Object]")return!1;for(n in o)if(oy.call(o,n))if(!a)a=!0;else return!1;if(!a)return!1;if(e.indexOf(n)===-1)e.push(n);else return!1}return!0}function sy(t){return t!==null?t:[]}var ly=new mt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ay,construct:sy}),cy=Object.prototype.toString;function hy(t){if(t===null)return!0;var e,r,i,o,n,a=t;for(n=new Array(a.length),e=0,r=a.length;e<r;e+=1){if(i=a[e],cy.call(i)!=="[object Object]"||(o=Object.keys(i),o.length!==1))return!1;n[e]=[o[0],i[o[0]]]}return!0}function uy(t){if(t===null)return[];var e,r,i,o,n,a=t;for(n=new Array(a.length),e=0,r=a.length;e<r;e+=1)i=a[e],o=Object.keys(i),n[e]=[o[0],i[o[0]]];return n}var dy=new mt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:hy,construct:uy}),fy=Object.prototype.hasOwnProperty;function py(t){if(t===null)return!0;var e,r=t;for(e in r)if(fy.call(r,e)&&r[e]!==null)return!1;return!0}function my(t){return t!==null?t:{}}var gy=new mt("tag:yaml.org,2002:set",{kind:"mapping",resolve:py,construct:my}),Cy=YC.extend({implicit:[KC,JC],explicit:[iy,ly,dy,gy]}),me=Object.prototype.hasOwnProperty,Ci=1,tc=2,ec=3,yi=4,lo=1,yy=2,Zs=3,by=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,xy=/[\x85\u2028\u2029]/,Ty=/[,\[\]\{\}]/,rc=/^(?:!|!!|![a-z\-]+!)$/i,ic=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Js(t){return Object.prototype.toString.call(t)}function Nt(t){return t===10||t===13}function Fe(t){return t===9||t===32}function Bt(t){return t===9||t===32||t===10||t===13}function Ze(t){return t===44||t===91||t===93||t===123||t===125}function Sy(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function _y(t){return t===120?2:t===117?4:t===85?8:0}function ky(t){return 48<=t&&t<=57?t-48:-1}function Qs(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function vy(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var oc=new Array(256),nc=new Array(256);for(Le=0;Le<256;Le++)oc[Le]=Qs(Le)?1:0,nc[Le]=Qs(Le);var Le;function By(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Cy,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ac(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=fC(r),new ee(e,r)}function w(t,e){throw ac(t,e)}function bi(t,e){t.onWarning&&t.onWarning.call(null,ac(t,e))}var tl={YAML:function(e,r,i){var o,n,a;e.version!==null&&w(e,"duplication of %YAML directive"),i.length!==1&&w(e,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),o===null&&w(e,"ill-formed argument of the YAML directive"),n=parseInt(o[1],10),a=parseInt(o[2],10),n!==1&&w(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&bi(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var o,n;i.length!==2&&w(e,"TAG directive accepts exactly two arguments"),o=i[0],n=i[1],rc.test(o)||w(e,"ill-formed tag handle (first argument) of the TAG directive"),me.call(e.tagMap,o)&&w(e,'there is a previously declared suffix for "'+o+'" tag handle'),ic.test(n)||w(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch{w(e,"tag prefix is malformed: "+n)}e.tagMap[o]=n}};function pe(t,e,r,i){var o,n,a,s;if(e<r){if(s=t.input.slice(e,r),i)for(o=0,n=s.length;o<n;o+=1)a=s.charCodeAt(o),a===9||32<=a&&a<=1114111||w(t,"expected valid JSON character");else by.test(s)&&w(t,"the stream contains non-printable characters");t.result+=s}}function el(t,e,r,i){var o,n,a,s;for(yt.isObject(r)||w(t,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(r),a=0,s=o.length;a<s;a+=1)n=o[a],me.call(e,n)||(e[n]=r[n],i[n]=!0)}function Je(t,e,r,i,o,n,a,s,l){var d,m;if(Array.isArray(o))for(o=Array.prototype.slice.call(o),d=0,m=o.length;d<m;d+=1)Array.isArray(o[d])&&w(t,"nested arrays are not supported inside keys"),typeof o=="object"&&Js(o[d])==="[object Object]"&&(o[d]="[object Object]");if(typeof o=="object"&&Js(o)==="[object Object]"&&(o="[object Object]"),o=String(o),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(n))for(d=0,m=n.length;d<m;d+=1)el(t,e,n[d],r);else el(t,e,n,r);else!t.json&&!me.call(r,o)&&me.call(e,o)&&(t.line=a||t.line,t.lineStart=s||t.lineStart,t.position=l||t.position,w(t,"duplicated mapping key")),o==="__proto__"?Object.defineProperty(e,o,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[o]=n,delete r[o];return e}function Eo(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):w(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function ot(t,e,r){for(var i=0,o=t.input.charCodeAt(t.position);o!==0;){for(;Fe(o);)o===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),o=t.input.charCodeAt(++t.position);if(e&&o===35)do o=t.input.charCodeAt(++t.position);while(o!==10&&o!==13&&o!==0);if(Nt(o))for(Eo(t),o=t.input.charCodeAt(t.position),i++,t.lineIndent=0;o===32;)t.lineIndent++,o=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&bi(t,"deficient indentation"),i}function vi(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||Bt(r)))}function Oo(t,e){e===1?t.result+=" ":e>1&&(t.result+=yt.repeat(`
`,e-1))}function Ly(t,e,r){var i,o,n,a,s,l,d,m,f=t.kind,c=t.result,p;if(p=t.input.charCodeAt(t.position),Bt(p)||Ze(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(o=t.input.charCodeAt(t.position+1),Bt(o)||r&&Ze(o)))return!1;for(t.kind="scalar",t.result="",n=a=t.position,s=!1;p!==0;){if(p===58){if(o=t.input.charCodeAt(t.position+1),Bt(o)||r&&Ze(o))break}else if(p===35){if(i=t.input.charCodeAt(t.position-1),Bt(i))break}else{if(t.position===t.lineStart&&vi(t)||r&&Ze(p))break;if(Nt(p))if(l=t.line,d=t.lineStart,m=t.lineIndent,ot(t,!1,-1),t.lineIndent>=e){s=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=a,t.line=l,t.lineStart=d,t.lineIndent=m;break}}s&&(pe(t,n,a,!1),Oo(t,t.line-l),n=a=t.position,s=!1),Fe(p)||(a=t.position+1),p=t.input.charCodeAt(++t.position)}return pe(t,n,a,!1),t.result?!0:(t.kind=f,t.result=c,!1)}function Fy(t,e){var r,i,o;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=o=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(pe(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,o=t.position;else return!0;else Nt(r)?(pe(t,i,o,!0),Oo(t,ot(t,!1,e)),i=o=t.position):t.position===t.lineStart&&vi(t)?w(t,"unexpected end of the document within a single quoted scalar"):(t.position++,o=t.position);w(t,"unexpected end of the stream within a single quoted scalar")}function Ay(t,e){var r,i,o,n,a,s;if(s=t.input.charCodeAt(t.position),s!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(s=t.input.charCodeAt(t.position))!==0;){if(s===34)return pe(t,r,t.position,!0),t.position++,!0;if(s===92){if(pe(t,r,t.position,!0),s=t.input.charCodeAt(++t.position),Nt(s))ot(t,!1,e);else if(s<256&&oc[s])t.result+=nc[s],t.position++;else if((a=_y(s))>0){for(o=a,n=0;o>0;o--)s=t.input.charCodeAt(++t.position),(a=Sy(s))>=0?n=(n<<4)+a:w(t,"expected hexadecimal character");t.result+=vy(n),t.position++}else w(t,"unknown escape sequence");r=i=t.position}else Nt(s)?(pe(t,r,i,!0),Oo(t,ot(t,!1,e)),r=i=t.position):t.position===t.lineStart&&vi(t)?w(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}w(t,"unexpected end of the stream within a double quoted scalar")}function wy(t,e){var r=!0,i,o,n,a=t.tag,s,l=t.anchor,d,m,f,c,p,E=Object.create(null),I,L,N,T;if(T=t.input.charCodeAt(t.position),T===91)m=93,p=!1,s=[];else if(T===123)m=125,p=!0,s={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),T=t.input.charCodeAt(++t.position);T!==0;){if(ot(t,!0,e),T=t.input.charCodeAt(t.position),T===m)return t.position++,t.tag=a,t.anchor=l,t.kind=p?"mapping":"sequence",t.result=s,!0;r?T===44&&w(t,"expected the node content, but found ','"):w(t,"missed comma between flow collection entries"),L=I=N=null,f=c=!1,T===63&&(d=t.input.charCodeAt(t.position+1),Bt(d)&&(f=c=!0,t.position++,ot(t,!0,e))),i=t.line,o=t.lineStart,n=t.position,rr(t,e,Ci,!1,!0),L=t.tag,I=t.result,ot(t,!0,e),T=t.input.charCodeAt(t.position),(c||t.line===i)&&T===58&&(f=!0,T=t.input.charCodeAt(++t.position),ot(t,!0,e),rr(t,e,Ci,!1,!0),N=t.result),p?Je(t,s,E,L,I,N,i,o,n):f?s.push(Je(t,null,E,L,I,N,i,o,n)):s.push(I),ot(t,!0,e),T=t.input.charCodeAt(t.position),T===44?(r=!0,T=t.input.charCodeAt(++t.position)):r=!1}w(t,"unexpected end of the stream within a flow collection")}function Ey(t,e){var r,i,o=lo,n=!1,a=!1,s=e,l=0,d=!1,m,f;if(f=t.input.charCodeAt(t.position),f===124)i=!1;else if(f===62)i=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)lo===o?o=f===43?Zs:yy:w(t,"repeat of a chomping mode identifier");else if((m=ky(f))>=0)m===0?w(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?w(t,"repeat of an indentation width identifier"):(s=e+m-1,a=!0);else break;if(Fe(f)){do f=t.input.charCodeAt(++t.position);while(Fe(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!Nt(f)&&f!==0)}for(;f!==0;){for(Eo(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!a||t.lineIndent<s)&&f===32;)t.lineIndent++,f=t.input.charCodeAt(++t.position);if(!a&&t.lineIndent>s&&(s=t.lineIndent),Nt(f)){l++;continue}if(t.lineIndent<s){o===Zs?t.result+=yt.repeat(`
`,n?1+l:l):o===lo&&n&&(t.result+=`
`);break}for(i?Fe(f)?(d=!0,t.result+=yt.repeat(`
`,n?1+l:l)):d?(d=!1,t.result+=yt.repeat(`
`,l+1)):l===0?n&&(t.result+=" "):t.result+=yt.repeat(`
`,l):t.result+=yt.repeat(`
`,n?1+l:l),n=!0,a=!0,l=0,r=t.position;!Nt(f)&&f!==0;)f=t.input.charCodeAt(++t.position);pe(t,r,t.position,!1)}return!0}function rl(t,e){var r,i=t.tag,o=t.anchor,n=[],a,s=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=n),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,w(t,"tab characters must not be used in indentation")),!(l!==45||(a=t.input.charCodeAt(t.position+1),!Bt(a))));){if(s=!0,t.position++,ot(t,!0,-1)&&t.lineIndent<=e){n.push(null),l=t.input.charCodeAt(t.position);continue}if(r=t.line,rr(t,e,ec,!1,!0),n.push(t.result),ot(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&l!==0)w(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return s?(t.tag=i,t.anchor=o,t.kind="sequence",t.result=n,!0):!1}function Oy(t,e,r){var i,o,n,a,s,l,d=t.tag,m=t.anchor,f={},c=Object.create(null),p=null,E=null,I=null,L=!1,N=!1,T;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),T=t.input.charCodeAt(t.position);T!==0;){if(!L&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,w(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),n=t.line,(T===63||T===58)&&Bt(i))T===63?(L&&(Je(t,f,c,p,E,null,a,s,l),p=E=I=null),N=!0,L=!0,o=!0):L?(L=!1,o=!0):w(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,T=i;else{if(a=t.line,s=t.lineStart,l=t.position,!rr(t,r,tc,!1,!0))break;if(t.line===n){for(T=t.input.charCodeAt(t.position);Fe(T);)T=t.input.charCodeAt(++t.position);if(T===58)T=t.input.charCodeAt(++t.position),Bt(T)||w(t,"a whitespace character is expected after the key-value separator within a block mapping"),L&&(Je(t,f,c,p,E,null,a,s,l),p=E=I=null),N=!0,L=!1,o=!1,p=t.tag,E=t.result;else if(N)w(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=d,t.anchor=m,!0}else if(N)w(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=d,t.anchor=m,!0}if((t.line===n||t.lineIndent>e)&&(L&&(a=t.line,s=t.lineStart,l=t.position),rr(t,e,yi,!0,o)&&(L?E=t.result:I=t.result),L||(Je(t,f,c,p,E,I,a,s,l),p=E=I=null),ot(t,!0,-1),T=t.input.charCodeAt(t.position)),(t.line===n||t.lineIndent>e)&&T!==0)w(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return L&&Je(t,f,c,p,E,null,a,s,l),N&&(t.tag=d,t.anchor=m,t.kind="mapping",t.result=f),N}function My(t){var e,r=!1,i=!1,o,n,a;if(a=t.input.charCodeAt(t.position),a!==33)return!1;if(t.tag!==null&&w(t,"duplication of a tag property"),a=t.input.charCodeAt(++t.position),a===60?(r=!0,a=t.input.charCodeAt(++t.position)):a===33?(i=!0,o="!!",a=t.input.charCodeAt(++t.position)):o="!",e=t.position,r){do a=t.input.charCodeAt(++t.position);while(a!==0&&a!==62);t.position<t.length?(n=t.input.slice(e,t.position),a=t.input.charCodeAt(++t.position)):w(t,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Bt(a);)a===33&&(i?w(t,"tag suffix cannot contain exclamation marks"):(o=t.input.slice(e-1,t.position+1),rc.test(o)||w(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),a=t.input.charCodeAt(++t.position);n=t.input.slice(e,t.position),Ty.test(n)&&w(t,"tag suffix cannot contain flow indicator characters")}n&&!ic.test(n)&&w(t,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch{w(t,"tag name is malformed: "+n)}return r?t.tag=n:me.call(t.tagMap,o)?t.tag=t.tagMap[o]+n:o==="!"?t.tag="!"+n:o==="!!"?t.tag="tag:yaml.org,2002:"+n:w(t,'undeclared tag handle "'+o+'"'),!0}function Iy(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&w(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Bt(r)&&!Ze(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&w(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Dy(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!Bt(i)&&!Ze(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&w(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),me.call(t.anchorMap,r)||w(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],ot(t,!0,-1),!0}function rr(t,e,r,i,o){var n,a,s,l=1,d=!1,m=!1,f,c,p,E,I,L;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,n=a=s=yi===r||ec===r,i&&ot(t,!0,-1)&&(d=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;My(t)||Iy(t);)ot(t,!0,-1)?(d=!0,s=n,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):s=!1;if(s&&(s=d||o),(l===1||yi===r)&&(Ci===r||tc===r?I=e:I=e+1,L=t.position-t.lineStart,l===1?s&&(rl(t,L)||Oy(t,L,I))||wy(t,I)?m=!0:(a&&Ey(t,I)||Fy(t,I)||Ay(t,I)?m=!0:Dy(t)?(m=!0,(t.tag!==null||t.anchor!==null)&&w(t,"alias node should not have any properties")):Ly(t,I,Ci===r)&&(m=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(m=s&&rl(t,L))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&w(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),f=0,c=t.implicitTypes.length;f<c;f+=1)if(E=t.implicitTypes[f],E.resolve(t.result)){t.result=E.construct(t.result),t.tag=E.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(me.call(t.typeMap[t.kind||"fallback"],t.tag))E=t.typeMap[t.kind||"fallback"][t.tag];else for(E=null,p=t.typeMap.multi[t.kind||"fallback"],f=0,c=p.length;f<c;f+=1)if(t.tag.slice(0,p[f].tag.length)===p[f].tag){E=p[f];break}E||w(t,"unknown tag !<"+t.tag+">"),t.result!==null&&E.kind!==t.kind&&w(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+E.kind+'", not "'+t.kind+'"'),E.resolve(t.result,t.tag)?(t.result=E.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):w(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||m}function Ry(t){var e=t.position,r,i,o,n=!1,a;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(a=t.input.charCodeAt(t.position))!==0&&(ot(t,!0,-1),a=t.input.charCodeAt(t.position),!(t.lineIndent>0||a!==37));){for(n=!0,a=t.input.charCodeAt(++t.position),r=t.position;a!==0&&!Bt(a);)a=t.input.charCodeAt(++t.position);for(i=t.input.slice(r,t.position),o=[],i.length<1&&w(t,"directive name must not be less than one character in length");a!==0;){for(;Fe(a);)a=t.input.charCodeAt(++t.position);if(a===35){do a=t.input.charCodeAt(++t.position);while(a!==0&&!Nt(a));break}if(Nt(a))break;for(r=t.position;a!==0&&!Bt(a);)a=t.input.charCodeAt(++t.position);o.push(t.input.slice(r,t.position))}a!==0&&Eo(t),me.call(tl,i)?tl[i](t,i,o):bi(t,'unknown document directive "'+i+'"')}if(ot(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,ot(t,!0,-1)):n&&w(t,"directives end mark is expected"),rr(t,t.lineIndent-1,yi,!1,!0),ot(t,!0,-1),t.checkLineBreaks&&xy.test(t.input.slice(e,t.position))&&bi(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&vi(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,ot(t,!0,-1));return}if(t.position<t.length-1)w(t,"end of the stream or a document separator is expected");else return}function sc(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new By(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,w(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Ry(r);return r.documents}function Py(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var i=sc(t,r);if(typeof e!="function")return i;for(var o=0,n=i.length;o<n;o+=1)e(i[o])}function $y(t,e){var r=sc(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new ee("expected a single document in the stream, but found more")}}var qy=Py,Ny=$y,zy={loadAll:qy,load:Ny},jy=Zl,Wy=zy.load;function Hy(t){let e=t.match(fl);if(!e)return{text:t,metadata:{}};let r=Wy(e[1],{schema:jy})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};let i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:t.slice(e[0].length),metadata:i}}var Uy=t=>t.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(e,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),Yy=t=>{let{text:e,metadata:r}=Hy(t),{displayMode:i,title:o,config:n={}}=r;return i&&(n.gantt||(n.gantt={}),n.gantt.displayMode=i),{title:o,config:n,text:e}},Gy=t=>{let e=Tr.detectInit(t)??{},r=Tr.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:i})=>{}):r?.type==="wrap"&&(e.wrap=!0),{text:bp(t),directive:e}};function lc(t){let e=Uy(t),r=Yy(e),i=Gy(r.text),o=bl(r.config,i.directive);return t=tC(i.text),{code:t,title:r.title,config:o}}var Vy=5e4,Xy="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Ky="sandbox",Zy="loose",Jy="http://www.w3.org/2000/svg",Qy="http://www.w3.org/1999/xlink",tb="http://www.w3.org/1999/xhtml",eb="100%",rb="100%",ib="border:0;margin:0;",ob="margin:0",nb="allow-top-navigation-by-user-activation allow-popups",ab='The "iframe" tag is not supported by your browser.',sb=["foreignobject"],lb=["dominant-baseline"];function cc(t){let e=lc(t);return fi(),Hp(e.config??{}),e}function cb(t,e){return z(this,null,function*(){Ao(),t=cc(t).code;try{yield Mo(t)}catch(r){if(e?.suppressErrors)return!1;throw r}return!0})}var il=(t,e,r=[])=>`
.${t} ${e} { ${r.join(" !important; ")} !important; }`,hb=(t,e={})=>{var r;let i="";if(t.themeCSS!==void 0&&(i+=`
${t.themeCSS}`),t.fontFamily!==void 0&&(i+=`
:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(i+=`
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!Zr(e)){let s=t.htmlLabels||((r=t.flowchart)==null?void 0:r.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(let l in e){let d=e[l];Zr(d.styles)||s.forEach(m=>{i+=il(d.id,m,d.styles)}),Zr(d.textStyles)||(i+=il(d.id,"tspan",d.textStyles))}}return i},ub=(t,e,r,i)=>{let o=hb(t,r),n=hg(e,o,t.themeVariables);return si(qs(`${i}{${n}}`),Ns)},db=(t="",e,r)=>{let i=t;return!r&&!e&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=Np(i),i=i.replace(/<br>/g,"<br/>"),i},fb=(t="",e)=>{var r,i;let o=(i=(r=e?.viewBox)==null?void 0:r.baseVal)!=null&&i.height?e.viewBox.baseVal.height+"px":rb,n=btoa('<body style="'+ob+'">'+t+"</body>");return`<iframe style="width:${eb};height:${o};${ib}" src="data:text/html;base64,${n}" sandbox="${nb}">
${ab}
</iframe>`},ol=(t,e,r,i,o)=>{let n=t.append("div");n.attr("id",r),i&&n.attr("style",i);let a=n.append("svg").attr("id",e).attr("width","100%").attr("xmlns",Jy);return o&&a.attr("xmlns:xlink",o),a.append("g"),t};function nl(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}var pb=(t,e,r,i)=>{var o,n,a;(o=t.getElementById(e))==null||o.remove(),(n=t.getElementById(r))==null||n.remove(),(a=t.getElementById(i))==null||a.remove()},mb=function(t,e,r){return z(this,null,function*(){var i,o,n,a,s,l;Ao();let d=cc(e);e=d.code;let m=zt();M.debug(m),e.length>(m?.maxTextSize??Vy)&&(e=Xy);let f="#"+t,c="i"+t,p="#"+c,E="d"+t,I="#"+E,L=Lt("body"),N=m.securityLevel===Ky,T=m.securityLevel===Zy,G=m.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),N){let q=nl(Lt(r),c);L=Lt(q.nodes()[0].contentDocument.body),L.node().style.margin=0}else L=Lt(r);ol(L,t,E,`font-family: ${G}`,Qy)}else{if(pb(document,t,E,c),N){let q=nl(Lt("body"),c);L=Lt(q.nodes()[0].contentDocument.body),L.node().style.margin=0}else L=Lt("body");ol(L,t,E)}let P,J;try{P=yield Mo(e,{title:d.title})}catch(q){P=new gi("error"),J=q}let V=L.select(I).node(),j=P.type,_=V.firstChild,U=_.firstChild,xt=(o=(i=P.renderer).getClasses)==null?void 0:o.call(i,e,P),Wt=ub(m,j,xt,f),D=document.createElement("style");D.innerHTML=Wt,_.insertBefore(D,U);try{yield P.renderer.draw(e,t,Ys,P)}catch(q){throw Bg.draw(e,t,Ys),q}let x=L.select(`${I} svg`),b=(a=(n=P.db).getAccTitle)==null?void 0:a.call(n),v=(l=(s=P.db).getAccDescription)==null?void 0:l.call(s);Cb(j,x,b,v),L.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",tb);let y=L.select(I).node().innerHTML;if(M.debug("config.arrowMarkerAbsolute",m.arrowMarkerAbsolute),y=db(y,N,hl(m.arrowMarkerAbsolute)),N){let q=L.select(I+" svg").node();y=fb(y,q)}else T||(y=Ae.default.sanitize(y,{ADD_TAGS:sb,ADD_ATTR:lb}));if(Kg(),J)throw J;let R=Lt(N?p:I).node();return R&&"remove"in R&&R.remove(),{svg:y,bindFunctions:P.db.bindFunctions}})};function gb(t={}){var e;t?.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),jp(t),t?.theme&&t.theme in re?t.themeVariables=re[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=re.default.getThemeVariables(t.themeVariables));let r=typeof t=="object"?zp(t):Tl();yo(r.logLevel),Ao()}var Mo=(t,e={})=>{let{code:r}=lc(t);return Xg(r,e)};function Cb(t,e,r,i){Jg(e,t),Qg(e,r,i,e.attr("id"))}var we=Object.freeze({render:mb,parse:cb,getDiagramFromText:Mo,initialize:gb,getConfig:zt,setConfig:Sl,getSiteConfig:Tl,updateSiteConfig:Wp,reset:()=>{fi()},globalReset:()=>{fi(tr)},defaultConfig:tr});yo(zt().logLevel);fi(zt());var yb=()=>z(void 0,null,function*(){M.debug("Loading registered diagrams");let e=(yield Promise.allSettled(Object.entries(Qe).map(n=>z(void 0,[n],function*([r,{detector:i,loader:o}]){if(o)try{Fo(r)}catch{try{let{diagram:s,id:l}=yield o();mi(l,s,i)}catch(s){throw M.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Qe[r],s}}})))).filter(r=>r.status==="rejected");if(e.length>0){M.error(`Failed to load ${e.length} external diagrams`);for(let r of e)M.error(r);throw new Error(`Failed to load ${e.length} external diagrams`)}}),bb=(t,e,r)=>{M.warn(t),yl(t)?(r&&r(t.str,t.hash),e.push(Mt(Ot({},t),{message:t.str,error:t}))):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},hc=function(){return z(this,arguments,function*(t={querySelector:".mermaid"}){try{yield xb(t)}catch(e){if(yl(e)&&M.error(e.str),jt.parseError&&jt.parseError(e),!t.suppressErrors)throw M.error("Use the suppressErrors option to suppress these errors"),e}})},xb=function(){return z(this,arguments,function*({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){let i=we.getConfig();M.debug(`${t?"":"No "}Callback function found`);let o;if(r)o=r;else if(e)o=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");M.debug(`Found ${o.length} diagrams`),i?.startOnLoad!==void 0&&(M.debug("Start On Load: "+i?.startOnLoad),we.updateSiteConfig({startOnLoad:i?.startOnLoad}));let n=new Tr.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed),a,s=[];for(let l of Array.from(o)){M.info("Rendering diagram: "+l.id);if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");let d=`mermaid-${n.next()}`;a=l.innerHTML,a=On(Tr.entityDecode(a)).trim().replace(/<br\s*\/?>/gi,"<br/>");let m=Tr.detectInit(a);m&&M.debug("Detected early reinit: ",m);try{let{svg:f,bindFunctions:c}=yield pc(d,a,l);l.innerHTML=f,t&&(yield t(d)),c&&c(l)}catch(f){bb(f,s,jt.parseError)}}if(s.length>0)throw s[0]})},uc=function(t){we.initialize(t)},Tb=function(t,e,r){return z(this,null,function*(){M.warn("mermaid.init is deprecated. Please use run instead."),t&&uc(t);let i={postRenderCallback:r,querySelector:".mermaid"};typeof e=="string"?i.querySelector=e:e&&(e instanceof HTMLElement?i.nodes=[e]:i.nodes=e),yield hc(i)})},Sb=(r,...i)=>z(void 0,[r,...i],function*(t,{lazyLoad:e=!0}={}){pl(...t),e===!1&&(yield yb())}),dc=function(){if(jt.startOnLoad){let{startOnLoad:t}=we.getConfig();t&&jt.run().catch(e=>M.error("Mermaid failed to initialize",e))}};if(typeof document<"u"){window.addEventListener("load",dc,!1)}var _b=function(t){jt.parseError=t},xi=[],co=!1,fc=()=>z(void 0,null,function*(){if(!co){for(co=!0;xi.length>0;){let t=xi.shift();if(t)try{yield t()}catch(e){M.error("Error executing queue",e)}}co=!1}}),kb=(t,e)=>z(void 0,null,function*(){return new Promise((r,i)=>{let o=()=>new Promise((n,a)=>{we.parse(t,e).then(s=>{n(s),r(s)},s=>{var l;M.error("Error parsing",s),(l=jt.parseError)==null||l.call(jt,s),a(s),i(s)})});xi.push(o),fc().catch(i)})}),pc=(t,e,r)=>new Promise((i,o)=>{let n=()=>new Promise((a,s)=>{we.render(t,e,r).then(l=>{a(l),i(l)},l=>{var d;M.error("Error parsing",l),(d=jt.parseError)==null||d.call(jt,l),s(l),o(l)})});xi.push(n),fc().catch(o)}),jt={startOnLoad:!0,mermaidAPI:we,parse:kb,render:pc,init:Tb,run:hc,registerExternalDiagrams:Sb,initialize:uc,parseError:void 0,contentLoaded:dc,setParseErrorHandler:_b,detectType:_i};export{On as a,Mn as b,Dn as c,Rn as d,ne as e,ih as f,Te as g,k as h,O as i,rt as j,$e as k,It as l,_t as m,qe as n,ae as o,fr as p,Nr as q,Sa as r,Ue as s,ka as t,Aa as u,Qi as v,wa as w,Ea as x,Oa as y,jr as z,Da as A,qt as B,Se as C,_e as D,Wr as E,de as F,Pa as G,Ye as H,Wa as I,Ua as J,ro as K,Ge as L,Va as M,Xa as N,Hr as O,Za as P,Ur as Q,Yr as R,as as S,ss as T,hs as U,us as V,ds as W,ps as X,gs as Y,Xr as Z,Ss as _,Zr as $,M as aa,vr as ba,_r as ca,hl as da,Fk as ea,Ws as fa,Ak as ga,tp as ha,bo as ia,ap as ja,up as ka,pt as la,mp as ma,Tp as na,Fp as oa,Ap as pa,Ep as qa,Ip as ra,Rp as sa,di as ta,So as ua,bl as va,Tr as wa,Np as xa,zt as ya,jl as za,sg as Aa,ug as Ba,dg as Ca,fg as Da,pg as Ea,mg as Fa,gg as Ga,Cg as Ha,yg as Ia,Lo as Ja,Ik as Ka,Dk as La,Sg as Ma,kg as Na,jt as Oa};