import{a3 as J,d as tn,c as Tn,a4 as ih,A as vn,l as rh,v as Fi,b as Li,u as Ss,r as nh,m as mo,F as St,N as _o,w as yo,e as oh,f as sh,_ as ws,a5 as Ai,I as en,a6 as ah,H as lh,a7 as hh,a8 as ch,a9 as uh,aa as fh,ab as dh,ac as ph,ad as gh,ae as mh,af as _h,ag as yh,ah as Ch,ai as bh}from"./chunks/framework.93de11c7.js";import{u as xh,t as Co}from"./chunks/theme.2c1c16b7.js";function Th(t){for(var e=[],i=1;i=x?M:""+Array(x+1-B.length).join(T)+M},X={s:P,z:function(M){var x=-M.utcOffset(),T=Math.abs(x),B=Math.floor(T/60),y=T%60;return(x<=0?"+":"-")+P(B,2,"0")+":"+P(y,2,"0")},m:function M(x,T){if(x.date()1)return M(w[0])}else{var H=x.name;V[H]=x,y=H}return!B&&y&&(U=y),y||!B&&U},K=function(M,x){if(W(M))return M.clone();var T=typeof x=="object"?x:{};return T.date=M,T.args=arguments,new Lt(T)},D=X;D.l=Xt,D.i=W,D.w=function(M,x){return K(M,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var Lt=function(){function M(T){this.$L=Xt(T.locale,null,!0),this.parse(T)}var x=M.prototype;return x.parse=function(T){this.$d=function(B){var y=B.date,$=B.utc;if(y===null)return new Date(NaN);if(D.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var w=y.match(O);if(w){var H=w[2]-1||0,N=(w[7]||"0").substring(0,3);return $?new Date(Date.UTC(w[1],H,w[3]||1,w[4]||0,w[5]||0,w[6]||0,N)):new Date(w[1],H,w[3]||1,w[4]||0,w[5]||0,w[6]||0,N)}}return new Date(y)}(T),this.$x=T.x||{},this.init()},x.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},x.$utils=function(){return D},x.isValid=function(){return this.$d.toString()!==k},x.isSame=function(T,B){var y=K(T);return this.startOf(B)<=y&&y<=this.endOf(B)},x.isAfter=function(T,B){return K(T)-1}function Ih(t){return t.replace(Fh,function(e,i){return String.fromCharCode(i)})}function $h(t){var e=Ih(t||"").replace(Lh,"").replace(Ah,"").trim();if(!e)return"about:blank";if(Mh(e))return e;var i=e.match(Eh);if(!i)return e;var r=i[0];return Bh.test(r)?"about:blank":e}Fs=kn.sanitizeUrl=$h;var Dh={value:()=>{}};function Ls(){for(var t=0,e=arguments.length,i={},r;t=0&&(r=i.slice(n+1),i=i.slice(0,n)),i&&!e.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:r}})}Ei.prototype=Ls.prototype={constructor:Ei,on:function(t,e){var i=this._,r=Nh(t+"",i),n,o=-1,s=r.length;if(arguments.length<2){for(;++o0)for(var i=new Array(n),r=0,n,o;r=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),xo.hasOwnProperty(e)?{space:xo[e],local:t}:t}function Ph(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===rn&&e.documentElement.namespaceURI===rn?e.createElement(t):e.createElementNS(i,t)}}function qh(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function As(t){var e=fr(t);return(e.local?qh:Ph)(e)}function zh(){}function Sn(t){return t==null?zh:function(){return this.querySelector(t)}}function Wh(t){typeof t!="function"&&(t=Sn(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n=P&&(P=b+1);!(U=O[P])&&++P=0;)(s=r[n])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function dc(t){t||(t=pc);function e(u,g){return u&&g?t(u.__data__,g.__data__):!u-!g}for(var i=this._groups,r=i.length,n=new Array(r),o=0;oe?1:t>=e?0:NaN}function gc(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function mc(){return Array.from(this)}function _c(){for(var t=this._groups,e=0,i=t.length;e1?this.each((e==null?Fc:typeof e=="function"?Ac:Lc)(t,e,i??"")):Ae(this.node(),t)}function Ae(t,e){return t.style.getPropertyValue(e)||$s(t).getComputedStyle(t,null).getPropertyValue(e)}function Oc(t){return function(){delete this[t]}}function Mc(t,e){return function(){this[t]=e}}function Ic(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function $c(t,e){return arguments.length>1?this.each((e==null?Oc:typeof e=="function"?Ic:Mc)(t,e)):this.node()[t]}function Ds(t){return t.trim().split(/^|\s+/)}function wn(t){return t.classList||new Ns(t)}function Ns(t){this._node=t,this._names=Ds(t.getAttribute("class")||"")}Ns.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Rs(t,e){for(var i=wn(t),r=-1,n=e.length;++r=0&&(i=e.slice(r+1),e=e.slice(0,r)),{type:e,name:i}})}function hu(t){return function(){var e=this.__on;if(e){for(var i=0,r=-1,n=e.length,o;i>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):i===8?Ci(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):i===4?Ci(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=yu.exec(t))?new dt(e[1],e[2],e[3],1):(e=Cu.exec(t))?new dt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=bu.exec(t))?Ci(e[1],e[2],e[3],e[4]):(e=xu.exec(t))?Ci(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Tu.exec(t))?Fo(e[1],e[2]/100,e[3]/100,1):(e=vu.exec(t))?Fo(e[1],e[2]/100,e[3]/100,e[4]):To.hasOwnProperty(t)?So(To[t]):t==="transparent"?new dt(NaN,NaN,NaN,0):null}function So(t){return new dt(t>>16&255,t>>8&255,t&255,1)}function Ci(t,e,i,r){return r<=0&&(t=e=i=NaN),new dt(t,e,i,r)}function wu(t){return t instanceof hi||(t=ti(t)),t?(t=t.rgb(),new dt(t.r,t.g,t.b,t.opacity)):new dt}function nn(t,e,i,r){return arguments.length===1?wu(t):new dt(t,e,i,r??1)}function dt(t,e,i,r){this.r=+t,this.g=+e,this.b=+i,this.opacity=+r}Bn(dt,nn,Ws(hi,{brighter(t){return t=t==null?Yi:Math.pow(Yi,t),new dt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Je:Math.pow(Je,t),new dt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new dt(ce(this.r),ce(this.g),ce(this.b),Vi(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:wo,formatHex:wo,formatHex8:Bu,formatRgb:Bo,toString:Bo}));function wo(){return`#${he(this.r)}${he(this.g)}${he(this.b)}`}function Bu(){return`#${he(this.r)}${he(this.g)}${he(this.b)}${he((isNaN(this.opacity)?1:this.opacity)*255)}`}function Bo(){const t=Vi(this.opacity);return`${t===1?"rgb(":"rgba("}${ce(this.r)}, ${ce(this.g)}, ${ce(this.b)}${t===1?")":`, ${t})`}`}function Vi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ce(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function he(t){return t=ce(t),(t<16?"0":"")+t.toString(16)}function Fo(t,e,i,r){return r<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new kt(t,e,i,r)}function Hs(t){if(t instanceof kt)return new kt(t.h,t.s,t.l,t.opacity);if(t instanceof hi||(t=ti(t)),!t)return new kt;if(t instanceof kt)return t;t=t.rgb();var e=t.r/255,i=t.g/255,r=t.b/255,n=Math.min(e,i,r),o=Math.max(e,i,r),s=NaN,a=o-n,l=(o+n)/2;return a?(e===o?s=(i-r)/a+(i0&&l<1?0:s,new kt(s,a,l,t.opacity)}function Fu(t,e,i,r){return arguments.length===1?Hs(t):new kt(t,e,i,r??1)}function kt(t,e,i,r){this.h=+t,this.s=+e,this.l=+i,this.opacity=+r}Bn(kt,Fu,Ws(hi,{brighter(t){return t=t==null?Yi:Math.pow(Yi,t),new kt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Je:Math.pow(Je,t),new kt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,r=i+(i<.5?i:1-i)*e,n=2*i-r;return new dt(Rr(t>=240?t-240:t+120,n,r),Rr(t,n,r),Rr(t<120?t+240:t-120,n,r),this.opacity)},clamp(){return new kt(Lo(this.h),bi(this.s),bi(this.l),Vi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Vi(this.opacity);return`${t===1?"hsl(":"hsla("}${Lo(this.h)}, ${bi(this.s)*100}%, ${bi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Lo(t){return t=(t||0)%360,t<0?t+360:t}function bi(t){return Math.max(0,Math.min(1,t||0))}function Rr(t,e,i){return(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)*255}const Fn=t=>()=>t;function js(t,e){return function(i){return t+i*e}}function Lu(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(r){return Math.pow(t+r*e,i)}}function M1(t,e){var i=e-t;return i?js(t,i>180||i<-180?i-360*Math.round(i/360):i):Fn(isNaN(t)?e:t)}function Au(t){return(t=+t)==1?Us:function(e,i){return i-e?Lu(e,i,t):Fn(isNaN(e)?i:e)}}function Us(t,e){var i=e-t;return i?js(t,i):Fn(isNaN(t)?e:t)}const Ao=function t(e){var i=Au(e);function r(n,o){var s=i((n=nn(n)).r,(o=nn(o)).r),a=i(n.g,o.g),l=i(n.b,o.b),h=Us(n.opacity,o.opacity);return function(c){return n.r=s(c),n.g=a(c),n.b=l(c),n.opacity=h(c),n+""}}return r.gamma=t,r}(1);function Qt(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var on=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Pr=new RegExp(on.source,"g");function Eu(t){return function(){return t}}function Ou(t){return function(e){return t(e)+""}}function Mu(t,e){var i=on.lastIndex=Pr.lastIndex=0,r,n,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=on.exec(t))&&(n=Pr.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(n=n[0])?a[s]?a[s]+=n:a[++s]=n:(a[++s]=null,l.push({i:s,x:Qt(r,n)})),i=Pr.lastIndex;return i180?c+=360:c-h>180&&(h+=360),g.push({i:u.push(n(u)+"rotate(",null,r)-2,x:Qt(h,c)})):c&&u.push(n(u)+"rotate("+c+r)}function a(h,c,u,g){h!==c?g.push({i:u.push(n(u)+"skewX(",null,r)-2,x:Qt(h,c)}):c&&u.push(n(u)+"skewX("+c+r)}function l(h,c,u,g,p,m){if(h!==u||c!==g){var k=p.push(n(p)+"scale(",null,",",null,")");m.push({i:k-4,x:Qt(h,u)},{i:k-2,x:Qt(c,g)})}else(u!==1||g!==1)&&p.push(n(p)+"scale("+u+","+g+")")}return function(h,c){var u=[],g=[];return h=t(h),c=t(c),o(h.translateX,h.translateY,c.translateX,c.translateY,u,g),s(h.rotate,c.rotate,u,g),a(h.skewX,c.skewX,u,g),l(h.scaleX,h.scaleY,c.scaleX,c.scaleY,u,g),h=c=null,function(p){for(var m=-1,k=g.length,O;++m=0&&t._call.call(void 0,e),t=t._next;--Ee}function Oo(){de=(Xi=ei.now())+dr,Ee=Ue=0;try{Pu()}finally{Ee=0,zu(),de=0}}function qu(){var t=ei.now(),e=t-Xi;e>Gs&&(dr-=e,Xi=t)}function zu(){for(var t,e=Gi,i,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(i=e._next,e._next=null,e=t?t._next=i:Gi=i);Ye=t,an(r)}function an(t){if(!Ee){Ue&&(Ue=clearTimeout(Ue));var e=t-de;e>24?(t<1/0&&(Ue=setTimeout(Oo,t-ei.now()-dr)),ze&&(ze=clearInterval(ze))):(ze||(Xi=ei.now(),ze=setInterval(qu,Gs)),Ee=1,Xs(Oo))}}function Mo(t,e,i){var r=new Ki;return e=e==null?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,i),r}var Wu=Ls("start","end","cancel","interrupt"),Hu=[],Zs=0,Io=1,ln=2,Oi=3,$o=4,hn=5,Mi=6;function pr(t,e,i,r,n,o){var s=t.__transition;if(!s)t.__transition={};else if(i in s)return;ju(t,i,{name:e,index:r,group:n,on:Wu,tween:Hu,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Zs})}function An(t,e){var i=Ft(t,e);if(i.state>Zs)throw new Error("too late; already scheduled");return i}function Rt(t,e){var i=Ft(t,e);if(i.state>Oi)throw new Error("too late; already running");return i}function Ft(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function ju(t,e,i){var r=t.__transition,n;r[e]=i,i.timer=Ks(o,0,i.time);function o(h){i.state=Io,i.timer.restart(s,i.delay,i.time),i.delay<=h&&s(h-i.delay)}function s(h){var c,u,g,p;if(i.state!==Io)return l();for(c in r)if(p=r[c],p.name===i.name){if(p.state===Oi)return Mo(s);p.state===$o?(p.state=Mi,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[c]):+cln&&r.state=0&&(e=e.slice(0,i)),!e||e==="start"})}function Tf(t,e,i){var r,n,o=xf(e)?An:Rt;return function(){var s=o(this,t),a=s.on;a!==r&&(n=(r=a).copy()).on(e,i),s.on=n}}function vf(t,e){var i=this._id;return arguments.length<2?Ft(this.node(),i).on.on(t):this.each(Tf(i,t,e))}function kf(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}function Sf(){return this.on("end.remove",kf(this._id))}function wf(t){var e=this._name,i=this._id;typeof t!="function"&&(t=Sn(t));for(var r=this._groups,n=r.length,o=new Array(n),s=0;s1?0:t<-1?On:Math.acos(t)}function H1(t){return t>=1?No:t<=-1?-No:Math.asin(t)}function ea(t){this._context=t}ea.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Zf(t){return new ea(t)}class ia{constructor(e,i){this._context=e,this._x=i}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,i){switch(e=+e,i=+i,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,i):this._context.moveTo(e,i);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,i,e,i):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+i)/2,e,this._y0,e,i);break}}this._x0=e,this._y0=i}}function Jf(t){return new ia(t,!0)}function Qf(t){return new ia(t,!1)}function ie(){}function Zi(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function gr(t){this._context=t}gr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Zi(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Zi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function td(t){return new gr(t)}function ra(t){this._context=t}ra.prototype={areaStart:ie,areaEnd:ie,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Zi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function ed(t){return new ra(t)}function na(t){this._context=t}na.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break;case 3:this._point=4;default:Zi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function id(t){return new na(t)}function oa(t,e){this._basis=new gr(t),this._beta=e}oa.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var r=t[0],n=e[0],o=t[i]-r,s=e[i]-n,a=-1,l;++a<=i;)l=a/i,this._basis.point(this._beta*t[a]+(1-this._beta)*(r+l*o),this._beta*e[a]+(1-this._beta)*(n+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const rd=function t(e){function i(r){return e===1?new gr(r):new oa(r,e)}return i.beta=function(r){return t(+r)},i}(.85);function Ji(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function Mn(t,e){this._context=t,this._k=(1-e)/6}Mn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ji(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Ji(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const nd=function t(e){function i(r){return new Mn(r,e)}return i.tension=function(r){return t(+r)},i}(0);function In(t,e){this._context=t,this._k=(1-e)/6}In.prototype={areaStart:ie,areaEnd:ie,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ji(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const od=function t(e){function i(r){return new In(r,e)}return i.tension=function(r){return t(+r)},i}(0);function $n(t,e){this._context=t,this._k=(1-e)/6}$n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ji(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const sd=function t(e){function i(r){return new $n(r,e)}return i.tension=function(r){return t(+r)},i}(0);function Dn(t,e,i){var r=t._x1,n=t._y1,o=t._x2,s=t._y2;if(t._l01_a>Do){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,n=(n*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>Do){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*h+t._x1*t._l23_2a-e*t._l12_2a)/c,s=(s*h+t._y1*t._l23_2a-i*t._l12_2a)/c}t._context.bezierCurveTo(r,n,o,s,t._x2,t._y2)}function sa(t,e){this._context=t,this._alpha=e}sa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Dn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ad=function t(e){function i(r){return e?new sa(r,e):new Mn(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function aa(t,e){this._context=t,this._alpha=e}aa.prototype={areaStart:ie,areaEnd:ie,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Dn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ld=function t(e){function i(r){return e?new aa(r,e):new In(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function la(t,e){this._context=t,this._alpha=e}la.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Dn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const hd=function t(e){function i(r){return e?new la(r,e):new $n(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function ha(t){this._context=t}ha.prototype={areaStart:ie,areaEnd:ie,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function cd(t){return new ha(t)}function Ro(t){return t<0?-1:1}function Po(t,e,i){var r=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(r||n<0&&-0),s=(i-t._y1)/(n||r<0&&-0),a=(o*n+s*r)/(r+n);return(Ro(o)+Ro(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function qo(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function qr(t,e,i){var r=t._x0,n=t._y0,o=t._x1,s=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,n+a*e,o-a,s-a*i,o,s)}function Qi(t){this._context=t}Qi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:qr(this,this._t0,qo(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,qr(this,qo(this,i=Po(this,t,e)),i);break;default:qr(this,this._t0,i=Po(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function ca(t){this._context=new ua(t)}(ca.prototype=Object.create(Qi.prototype)).point=function(t,e){Qi.prototype.point.call(this,e,t)};function ua(t){this._context=t}ua.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,r,n,o){this._context.bezierCurveTo(e,t,r,i,o,n)}};function ud(t){return new Qi(t)}function fd(t){return new ca(t)}function fa(t){this._context=t}fa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),i===2)this._context.lineTo(t[1],e[1]);else for(var r=zo(t),n=zo(e),o=0,s=1;s=0;--e)n[e]=(s[e]-n[e+1])/o[e];for(o[i-1]=(t[i]+n[i-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}break}}this._x=t,this._y=e}};function pd(t){return new mr(t,.5)}function gd(t){return new mr(t,0)}function md(t){return new mr(t,1)}function Ve(t,e,i){this.k=t,this.x=e,this.y=i}Ve.prototype={constructor:Ve,scale:function(t){return t===1?this:new Ve(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Ve(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};Ve.prototype;/*! @license DOMPurify 3.0.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.3/LICENSE */const{entries:da,setPrototypeOf:Wo,isFrozen:_d,getPrototypeOf:yd,getOwnPropertyDescriptor:Cd}=Object;let{freeze:ut,seal:Bt,create:bd}=Object,{apply:cn,construct:un}=typeof Reflect<"u"&&Reflect;cn||(cn=function(e,i,r){return e.apply(i,r)});ut||(ut=function(e){return e});Bt||(Bt=function(e){return e});un||(un=function(e,i){return new e(...i)});const xd=xt(Array.prototype.forEach),Ho=xt(Array.prototype.pop),We=xt(Array.prototype.push),Ii=xt(String.prototype.toLowerCase),zr=xt(String.prototype.toString),Td=xt(String.prototype.match),vt=xt(String.prototype.replace),vd=xt(String.prototype.indexOf),kd=xt(String.prototype.trim),_t=xt(RegExp.prototype.test),He=Sd(TypeError);function xt(t){return function(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n/gm),Ad=Bt(/\${[\w\W]*}/gm),Ed=Bt(/^data-[\-\w.\u00B7-\uFFFF]/),Od=Bt(/^aria-[\-\w]+$/),pa=Bt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Md=Bt(/^(?:\w+script|data):/i),Id=Bt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ga=Bt(/^html$/i);var Go=Object.freeze({__proto__:null,MUSTACHE_EXPR:Fd,ERB_EXPR:Ld,TMPLIT_EXPR:Ad,DATA_ATTR:Ed,ARIA_ATTR:Od,IS_ALLOWED_URI:pa,IS_SCRIPT_OR_DATA:Md,ATTR_WHITESPACE:Id,DOCTYPE_NAME:ga});const $d=()=>typeof window>"u"?null:window,Dd=function(e,i){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";i&&i.hasAttribute(n)&&(r=i.getAttribute(n));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function ma(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$d();const e=F=>ma(F);if(e.version="3.0.3",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;const i=t.document,r=i.currentScript;let{document:n}=t;const{DocumentFragment:o,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:h,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:u,DOMParser:g,trustedTypes:p}=t,m=l.prototype,k=Ti(m,"cloneNode"),O=Ti(m,"nextSibling"),z=Ti(m,"childNodes"),b=Ti(m,"parentNode");if(typeof s=="function"){const F=n.createElement("template");F.content&&F.content.ownerDocument&&(n=F.content.ownerDocument)}let P,X="";const{implementation:U,createNodeIterator:V,createDocumentFragment:W,getElementsByTagName:Xt}=n,{importNode:K}=i;let D={};e.isSupported=typeof da=="function"&&typeof b=="function"&&U&&U.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Lt,ERB_EXPR:Kt,TMPLIT_EXPR:M,DATA_ATTR:x,ARIA_ATTR:T,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:y}=Go;let{IS_ALLOWED_URI:$}=Go,w=null;const H=R({},[...jo,...Wr,...Hr,...jr,...Uo]);let N=null;const Z=R({},[...Yo,...Ur,...Vo,...vi]);let q=Object.seal(Object.create(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}})),et=null,At=null,Et=!0,Pt=!0,Ot=!1,nt=!0,lt=!1,mt=!1,Zt=!1,Lr=!1,Ce=!1,di=!1,pi=!1,Qn=!0,to=!1;const Vl="user-content-";let Ar=!0,qe=!1,be={},xe=null;const eo=R({},["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"]);let io=null;const ro=R({},["audio","video","img","source","image","track"]);let Er=null;const no=R({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),gi="http://www.w3.org/1998/Math/MathML",mi="http://www.w3.org/2000/svg",qt="http://www.w3.org/1999/xhtml";let Te=qt,Or=!1,Mr=null;const Gl=R({},[gi,mi,qt],zr);let oe;const Xl=["application/xhtml+xml","text/html"],Kl="text/html";let it,ve=null;const Zl=n.createElement("form"),oo=function(f){return f instanceof RegExp||f instanceof Function},Ir=function(f){if(!(ve&&ve===f)){if((!f||typeof f!="object")&&(f={}),f=ke(f),oe=Xl.indexOf(f.PARSER_MEDIA_TYPE)===-1?oe=Kl:oe=f.PARSER_MEDIA_TYPE,it=oe==="application/xhtml+xml"?zr:Ii,w="ALLOWED_TAGS"in f?R({},f.ALLOWED_TAGS,it):H,N="ALLOWED_ATTR"in f?R({},f.ALLOWED_ATTR,it):Z,Mr="ALLOWED_NAMESPACES"in f?R({},f.ALLOWED_NAMESPACES,zr):Gl,Er="ADD_URI_SAFE_ATTR"in f?R(ke(no),f.ADD_URI_SAFE_ATTR,it):no,io="ADD_DATA_URI_TAGS"in f?R(ke(ro),f.ADD_DATA_URI_TAGS,it):ro,xe="FORBID_CONTENTS"in f?R({},f.FORBID_CONTENTS,it):eo,et="FORBID_TAGS"in f?R({},f.FORBID_TAGS,it):{},At="FORBID_ATTR"in f?R({},f.FORBID_ATTR,it):{},be="USE_PROFILES"in f?f.USE_PROFILES:!1,Et=f.ALLOW_ARIA_ATTR!==!1,Pt=f.ALLOW_DATA_ATTR!==!1,Ot=f.ALLOW_UNKNOWN_PROTOCOLS||!1,nt=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,lt=f.SAFE_FOR_TEMPLATES||!1,mt=f.WHOLE_DOCUMENT||!1,Ce=f.RETURN_DOM||!1,di=f.RETURN_DOM_FRAGMENT||!1,pi=f.RETURN_TRUSTED_TYPE||!1,Lr=f.FORCE_BODY||!1,Qn=f.SANITIZE_DOM!==!1,to=f.SANITIZE_NAMED_PROPS||!1,Ar=f.KEEP_CONTENT!==!1,qe=f.IN_PLACE||!1,$=f.ALLOWED_URI_REGEXP||pa,Te=f.NAMESPACE||qt,q=f.CUSTOM_ELEMENT_HANDLING||{},f.CUSTOM_ELEMENT_HANDLING&&oo(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(q.tagNameCheck=f.CUSTOM_ELEMENT_HANDLING.tagNameCheck),f.CUSTOM_ELEMENT_HANDLING&&oo(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(q.attributeNameCheck=f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),f.CUSTOM_ELEMENT_HANDLING&&typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(q.allowCustomizedBuiltInElements=f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),lt&&(Pt=!1),di&&(Ce=!0),be&&(w=R({},[...Uo]),N=[],be.html===!0&&(R(w,jo),R(N,Yo)),be.svg===!0&&(R(w,Wr),R(N,Ur),R(N,vi)),be.svgFilters===!0&&(R(w,Hr),R(N,Ur),R(N,vi)),be.mathMl===!0&&(R(w,jr),R(N,Vo),R(N,vi))),f.ADD_TAGS&&(w===H&&(w=ke(w)),R(w,f.ADD_TAGS,it)),f.ADD_ATTR&&(N===Z&&(N=ke(N)),R(N,f.ADD_ATTR,it)),f.ADD_URI_SAFE_ATTR&&R(Er,f.ADD_URI_SAFE_ATTR,it),f.FORBID_CONTENTS&&(xe===eo&&(xe=ke(xe)),R(xe,f.FORBID_CONTENTS,it)),Ar&&(w["#text"]=!0),mt&&R(w,["html","head","body"]),w.table&&(R(w,["tbody"]),delete et.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw He('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw He('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');P=f.TRUSTED_TYPES_POLICY,X=P.createHTML("")}else P===void 0&&(P=Dd(p,r)),P!==null&&typeof X=="string"&&(X=P.createHTML(""));ut&&ut(f),ve=f}},so=R({},["mi","mo","mn","ms","mtext"]),ao=R({},["foreignobject","desc","title","annotation-xml"]),Jl=R({},["title","style","font","a","script"]),_i=R({},Wr);R(_i,Hr),R(_i,wd);const $r=R({},jr);R($r,Bd);const Ql=function(f){let _=b(f);(!_||!_.tagName)&&(_={namespaceURI:Te,tagName:"template"});const v=Ii(f.tagName),j=Ii(_.tagName);return Mr[f.namespaceURI]?f.namespaceURI===mi?_.namespaceURI===qt?v==="svg":_.namespaceURI===gi?v==="svg"&&(j==="annotation-xml"||so[j]):!!_i[v]:f.namespaceURI===gi?_.namespaceURI===qt?v==="math":_.namespaceURI===mi?v==="math"&&ao[j]:!!$r[v]:f.namespaceURI===qt?_.namespaceURI===mi&&!ao[j]||_.namespaceURI===gi&&!so[j]?!1:!$r[v]&&(Jl[v]||!_i[v]):!!(oe==="application/xhtml+xml"&&Mr[f.namespaceURI]):!1},se=function(f){We(e.removed,{element:f});try{f.parentNode.removeChild(f)}catch{f.remove()}},Dr=function(f,_){try{We(e.removed,{attribute:_.getAttributeNode(f),from:_})}catch{We(e.removed,{attribute:null,from:_})}if(_.removeAttribute(f),f==="is"&&!N[f])if(Ce||di)try{se(_)}catch{}else try{_.setAttribute(f,"")}catch{}},lo=function(f){let _,v;if(Lr)f=""+f;else{const Ct=Td(f,/^[\r\n\t ]+/);v=Ct&&Ct[0]}oe==="application/xhtml+xml"&&Te===qt&&(f=''+f+"");const j=P?P.createHTML(f):f;if(Te===qt)try{_=new g().parseFromString(j,oe)}catch{}if(!_||!_.documentElement){_=U.createDocument(Te,"template",null);try{_.documentElement.innerHTML=Or?X:j}catch{}}const rt=_.body||_.documentElement;return f&&v&&rt.insertBefore(n.createTextNode(v),rt.childNodes[0]||null),Te===qt?Xt.call(_,mt?"html":"body")[0]:mt?_.documentElement:rt},ho=function(f){return V.call(f.ownerDocument||f,f,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null,!1)},th=function(f){return f instanceof u&&(typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||!(f.attributes instanceof c)||typeof f.removeAttribute!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function")},yi=function(f){return typeof a=="object"?f instanceof a:f&&typeof f=="object"&&typeof f.nodeType=="number"&&typeof f.nodeName=="string"},zt=function(f,_,v){D[f]&&xd(D[f],j=>{j.call(e,_,v,ve)})},co=function(f){let _;if(zt("beforeSanitizeElements",f,null),th(f))return se(f),!0;const v=it(f.nodeName);if(zt("uponSanitizeElement",f,{tagName:v,allowedTags:w}),f.hasChildNodes()&&!yi(f.firstElementChild)&&(!yi(f.content)||!yi(f.content.firstElementChild))&&_t(/<[/\w]/g,f.innerHTML)&&_t(/<[/\w]/g,f.textContent))return se(f),!0;if(!w[v]||et[v]){if(!et[v]&&fo(v)&&(q.tagNameCheck instanceof RegExp&&_t(q.tagNameCheck,v)||q.tagNameCheck instanceof Function&&q.tagNameCheck(v)))return!1;if(Ar&&!xe[v]){const j=b(f)||f.parentNode,rt=z(f)||f.childNodes;if(rt&&j){const Ct=rt.length;for(let G=Ct-1;G>=0;--G)j.insertBefore(k(rt[G],!0),O(f))}}return se(f),!0}return f instanceof l&&!Ql(f)||(v==="noscript"||v==="noembed")&&_t(/<\/no(script|embed)/i,f.innerHTML)?(se(f),!0):(lt&&f.nodeType===3&&(_=f.textContent,_=vt(_,Lt," "),_=vt(_,Kt," "),_=vt(_,M," "),f.textContent!==_&&(We(e.removed,{element:f.cloneNode()}),f.textContent=_)),zt("afterSanitizeElements",f,null),!1)},uo=function(f,_,v){if(Qn&&(_==="id"||_==="name")&&(v in n||v in Zl))return!1;if(!(Pt&&!At[_]&&_t(x,_))){if(!(Et&&_t(T,_))){if(!N[_]||At[_]){if(!(fo(f)&&(q.tagNameCheck instanceof RegExp&&_t(q.tagNameCheck,f)||q.tagNameCheck instanceof Function&&q.tagNameCheck(f))&&(q.attributeNameCheck instanceof RegExp&&_t(q.attributeNameCheck,_)||q.attributeNameCheck instanceof Function&&q.attributeNameCheck(_))||_==="is"&&q.allowCustomizedBuiltInElements&&(q.tagNameCheck instanceof RegExp&&_t(q.tagNameCheck,v)||q.tagNameCheck instanceof Function&&q.tagNameCheck(v))))return!1}else if(!Er[_]){if(!_t($,vt(v,y,""))){if(!((_==="src"||_==="xlink:href"||_==="href")&&f!=="script"&&vd(v,"data:")===0&&io[f])){if(!(Ot&&!_t(B,vt(v,y,"")))){if(v)return!1}}}}}}return!0},fo=function(f){return f.indexOf("-")>0},po=function(f){let _,v,j,rt;zt("beforeSanitizeAttributes",f,null);const{attributes:Ct}=f;if(!Ct)return;const G={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:N};for(rt=Ct.length;rt--;){_=Ct[rt];const{name:Mt,namespaceURI:Nr}=_;if(v=Mt==="value"?_.value:kd(_.value),j=it(Mt),G.attrName=j,G.attrValue=v,G.keepAttr=!0,G.forceKeepAttr=void 0,zt("uponSanitizeAttribute",f,G),v=G.attrValue,G.forceKeepAttr||(Dr(Mt,f),!G.keepAttr))continue;if(!nt&&_t(/\/>/i,v)){Dr(Mt,f);continue}lt&&(v=vt(v,Lt," "),v=vt(v,Kt," "),v=vt(v,M," "));const go=it(f.nodeName);if(uo(go,j,v)){if(to&&(j==="id"||j==="name")&&(Dr(Mt,f),v=Vl+v),P&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Nr)switch(p.getAttributeType(go,j)){case"TrustedHTML":{v=P.createHTML(v);break}case"TrustedScriptURL":{v=P.createScriptURL(v);break}}try{Nr?f.setAttributeNS(Nr,Mt,v):f.setAttribute(Mt,v),Ho(e.removed)}catch{}}}zt("afterSanitizeAttributes",f,null)},eh=function F(f){let _;const v=ho(f);for(zt("beforeSanitizeShadowDOM",f,null);_=v.nextNode();)zt("uponSanitizeShadowNode",_,null),!co(_)&&(_.content instanceof o&&F(_.content),po(_));zt("afterSanitizeShadowDOM",f,null)};return e.sanitize=function(F){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_,v,j,rt;if(Or=!F,Or&&(F=""),typeof F!="string"&&!yi(F))if(typeof F.toString=="function"){if(F=F.toString(),typeof F!="string")throw He("dirty is not a string, aborting")}else throw He("toString is not a function");if(!e.isSupported)return F;if(Zt||Ir(f),e.removed=[],typeof F=="string"&&(qe=!1),qe){if(F.nodeName){const Mt=it(F.nodeName);if(!w[Mt]||et[Mt])throw He("root node is forbidden and cannot be sanitized in-place")}}else if(F instanceof a)_=lo(""),v=_.ownerDocument.importNode(F,!0),v.nodeType===1&&v.nodeName==="BODY"||v.nodeName==="HTML"?_=v:_.appendChild(v);else{if(!Ce&&!lt&&!mt&&F.indexOf("<")===-1)return P&&pi?P.createHTML(F):F;if(_=lo(F),!_)return Ce?null:pi?X:""}_&&Lr&&se(_.firstChild);const Ct=ho(qe?F:_);for(;j=Ct.nextNode();)co(j)||(j.content instanceof o&&eh(j.content),po(j));if(qe)return F;if(Ce){if(di)for(rt=W.call(_.ownerDocument);_.firstChild;)rt.appendChild(_.firstChild);else rt=_;return(N.shadowroot||N.shadowrootmod)&&(rt=K.call(i,rt,!0)),rt}let G=mt?_.outerHTML:_.innerHTML;return mt&&w["!doctype"]&&_.ownerDocument&&_.ownerDocument.doctype&&_.ownerDocument.doctype.name&&_t(ga,_.ownerDocument.doctype.name)&&(G=" `+G),lt&&(G=vt(G,Lt," "),G=vt(G,Kt," "),G=vt(G,M," ")),P&&pi?P.createHTML(G):G},e.setConfig=function(F){Ir(F),Zt=!0},e.clearConfig=function(){ve=null,Zt=!1},e.isValidAttribute=function(F,f,_){ve||Ir({});const v=it(F),j=it(f);return uo(v,j,_)},e.addHook=function(F,f){typeof f=="function"&&(D[F]=D[F]||[],We(D[F],f))},e.removeHook=function(F){if(D[F])return Ho(D[F])},e.removeHooks=function(F){D[F]&&(D[F]=[])},e.removeAllHooks=function(){D={}},e}var tr=ma();const $i={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=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t),hsl2rgb:({h:t,s:e,l:i},r)=>{if(!e)return i*2.55;t/=360,e/=100,i/=100;const n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;switch(r){case"r":return $i.hue2rgb(o,n,t+1/3)*255;case"g":return $i.hue2rgb(o,n,t)*255;case"b":return $i.hue2rgb(o,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:i},r)=>{t/=255,e/=255,i/=255;const n=Math.max(t,e,i),o=Math.min(t,e,i),s=(n+o)/2;if(r==="l")return s*100;if(n===o)return 0;const a=n-o,l=s>.5?a/(2-n-o):a/(n+o);if(r==="s")return l*100;switch(n){case t:return((e-i)/a+(ee>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},Pd=Rd,qd={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},zd=qd,Wd={channel:Nd,lang:Pd,unit:zd},I=Wd,Jt={};for(let t=0;t<=255;t++)Jt[t]=I.unit.dec2hex(t);const ot={ALL:0,RGB:1,HSL:2};class Hd{constructor(){this.type=ot.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=ot.ALL}is(e){return this.type===e}}const jd=Hd;class Ud{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new jd}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=ot.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:n}=e;i===void 0&&(e.h=I.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=I.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=I.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:n}=e;i===void 0&&(e.r=I.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=I.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=I.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(ot.HSL)&&i!==void 0?i:(this._ensureHSL(),I.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(ot.HSL)&&i!==void 0?i:(this._ensureHSL(),I.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(ot.HSL)&&i!==void 0?i:(this._ensureHSL(),I.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(ot.RGB)&&i!==void 0?i:(this._ensureRGB(),I.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(ot.RGB)&&i!==void 0?i:(this._ensureRGB(),I.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,i=e.l;return!this.type.is(ot.RGB)&&i!==void 0?i:(this._ensureRGB(),I.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(ot.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(ot.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(ot.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(ot.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(ot.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(ot.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const Yd=Ud,Vd=new Yd({r:0,g:0,b:0,a:0},"transparent"),_r=Vd,_a={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(_a.re);if(!e)return;const i=e[1],r=parseInt(i,16),n=i.length,o=n%4===0,s=n>4,a=s?1:17,l=s?8:4,h=o?0:-1,c=s?255:15;return _r.set({r:(r>>l*(h+3)&c)*a,g:(r>>l*(h+2)&c)*a,b:(r>>l*(h+1)&c)*a,a:o?(r&c)*a/255:1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`#${Jt[Math.round(e)]}${Jt[Math.round(i)]}${Jt[Math.round(r)]}${Jt[Math.round(n*255)]}`:`#${Jt[Math.round(e)]}${Jt[Math.round(i)]}${Jt[Math.round(r)]}`}},Ge=_a,Di={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=>{const e=t.match(Di.hueRe);if(e){const[,i,r]=e;switch(r){case"grad":return I.channel.clamp.h(parseFloat(i)*.9);case"rad":return I.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return I.channel.clamp.h(parseFloat(i)*360)}}return I.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const i=t.match(Di.re);if(!i)return;const[,r,n,o,s,a]=i;return _r.set({h:Di._hue2deg(r),s:I.channel.clamp.s(parseFloat(n)),l:I.channel.clamp.l(parseFloat(o)),a:s?I.channel.clamp.a(a?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:i,l:r,a:n}=t;return n<1?`hsla(${I.lang.round(e)}, ${I.lang.round(i)}%, ${I.lang.round(r)}%, ${n})`:`hsl(${I.lang.round(e)}, ${I.lang.round(i)}%, ${I.lang.round(r)}%)`}},ki=Di,Ni={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();const e=Ni.colors[t];if(e)return Ge.parse(e)},stringify:t=>{const e=Ge.stringify(t);for(const i in Ni.colors)if(Ni.colors[i]===e)return i}},Xo=Ni,ya={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=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const i=t.match(ya.re);if(!i)return;const[,r,n,o,s,a,l,h,c]=i;return _r.set({r:I.channel.clamp.r(n?parseFloat(r)*2.55:parseFloat(r)),g:I.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:I.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:h?I.channel.clamp.a(c?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`rgba(${I.lang.round(e)}, ${I.lang.round(i)}, ${I.lang.round(r)}, ${I.lang.round(n)})`:`rgb(${I.lang.round(e)}, ${I.lang.round(i)}, ${I.lang.round(r)})`}},Si=ya,Gd={format:{keyword:Xo,hex:Ge,rgb:Si,rgba:Si,hsl:ki,hsla:ki},parse:t=>{if(typeof t!="string")return t;const e=Ge.parse(t)||Si.parse(t)||ki.parse(t)||Xo.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(ot.HSL)||t.data.r===void 0?ki.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Si.stringify(t):Ge.stringify(t)},Nt=Gd,Xd=(t,e)=>{const i=Nt.parse(t);for(const r in e)i[r]=I.channel.clamp[r](e[r]);return Nt.stringify(i)},Ca=Xd,Kd=(t,e,i=0,r=1)=>{if(typeof t!="number")return Ca(t,{a:e});const n=_r.set({r:I.channel.clamp.r(t),g:I.channel.clamp.g(e),b:I.channel.clamp.b(i),a:I.channel.clamp.a(r)});return Nt.stringify(n)},Xe=Kd,Zd=t=>{const{r:e,g:i,b:r}=Nt.parse(t),n=.2126*I.channel.toLinear(e)+.7152*I.channel.toLinear(i)+.0722*I.channel.toLinear(r);return I.lang.round(n)},Jd=Zd,Qd=t=>Jd(t)>=.5,tp=Qd,ep=t=>!tp(t),ci=ep,ip=(t,e,i)=>{const r=Nt.parse(t),n=r[e],o=I.channel.clamp[e](n+i);return n!==o&&(r[e]=o),Nt.stringify(r)},ba=ip,rp=(t,e)=>ba(t,"l",e),L=rp,np=(t,e)=>ba(t,"l",-e),E=np,op=(t,e)=>{const i=Nt.parse(t),r={};for(const n in e)e[n]&&(r[n]=i[n]+e[n]);return Ca(t,r)},d=op,sp=(t,e,i=50)=>{const{r,g:n,b:o,a:s}=Nt.parse(t),{r:a,g:l,b:h,a:c}=Nt.parse(e),u=i/100,g=u*2-1,p=s-c,k=((g*p===-1?g:(g+p)/(1+g*p))+1)/2,O=1-k,z=r*k+a*O,b=n*k+l*O,P=o*k+h*O,X=s*u+c*(1-u);return Xe(z,b,P,X)},ap=sp,lp=(t,e=100)=>{const i=Nt.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,ap(i,t,e)},C=lp;var hp=typeof global=="object"&&global&&global.Object===Object&&global;const xa=hp;var cp=typeof self=="object"&&self&&self.Object===Object&&self,up=xa||cp||Function("return this")();const ne=up;var fp=ne.Symbol;const er=fp;var Ta=Object.prototype,dp=Ta.hasOwnProperty,pp=Ta.toString,je=er?er.toStringTag:void 0;function gp(t){var e=dp.call(t,je),i=t[je];try{t[je]=void 0;var r=!0}catch{}var n=pp.call(t);return r&&(e?t[je]=i:delete t[je]),n}var mp=Object.prototype,_p=mp.toString;function yp(t){return _p.call(t)}var Cp="[object Null]",bp="[object Undefined]",Ko=er?er.toStringTag:void 0;function ui(t){return t==null?t===void 0?bp:Cp:Ko&&Ko in Object(t)?gp(t):yp(t)}function va(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var xp="[object AsyncFunction]",Tp="[object Function]",vp="[object GeneratorFunction]",kp="[object Proxy]";function ka(t){if(!va(t))return!1;var e=ui(t);return e==Tp||e==vp||e==xp||e==kp}var Sp=ne["__core-js_shared__"];const Yr=Sp;var Zo=function(){var t=/[^.]+$/.exec(Yr&&Yr.keys&&Yr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function wp(t){return!!Zo&&Zo in t}var Bp=Function.prototype,Fp=Bp.toString;function me(t){if(t!=null){try{return Fp.call(t)}catch{}try{return t+""}catch{}}return""}var Lp=/[\\^$.*+?()[\]{}|]/g,Ap=/^\[object .+?Constructor\]$/,Ep=Function.prototype,Op=Object.prototype,Mp=Ep.toString,Ip=Op.hasOwnProperty,$p=RegExp("^"+Mp.call(Ip).replace(Lp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Dp(t){if(!va(t)||wp(t))return!1;var e=ka(t)?$p:Ap;return e.test(me(t))}function Np(t,e){return t==null?void 0:t[e]}function Ne(t,e){var i=Np(t,e);return Dp(i)?i:void 0}var Rp=Ne(Object,"create");const ii=Rp;function Pp(){this.__data__=ii?ii(null):{},this.size=0}function qp(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var zp="__lodash_hash_undefined__",Wp=Object.prototype,Hp=Wp.hasOwnProperty;function jp(t){var e=this.__data__;if(ii){var i=e[t];return i===zp?void 0:i}return Hp.call(e,t)?e[t]:void 0}var Up=Object.prototype,Yp=Up.hasOwnProperty;function Vp(t){var e=this.__data__;return ii?e[t]!==void 0:Yp.call(e,t)}var Gp="__lodash_hash_undefined__";function Xp(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=ii&&e===void 0?Gp:e,this}function pe(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e-1}function rg(t,e){var i=this.__data__,r=yr(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this}function Re(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e0?ri(Pe,--Tt):0,Oe--,Q===10&&(Oe=1,br--),Q}function wt(){return Q=Tt2||fn(Q)>3?"":" "}function vg(t,e){for(;--e&&wt()&&!(Q<48||Q>102||Q>57&&Q<65||Q>70&&Q<97););return xr(t,Pi()+(e<6&&ue()==32&&wt()==32))}function dn(t){for(;wt();)switch(Q){case t:return Tt;case 34:case 39:t!==34&&t!==39&&dn(Q);break;case 40:t===41&&dn(t);break;case 92:wt();break}return Tt}function kg(t,e){for(;wt()&&t+Q!==47+10;)if(t+Q===42+42&&ue()===47)break;return"/*"+xr(e,Tt-1)+"*"+Nn(t===47?t:wt())}function Sg(t){for(;!fn(ue());)wt();return xr(t,Tt)}function wg(t){return xg(qi("",null,null,null,[""],t=bg(t),0,[0],t))}function qi(t,e,i,r,n,o,s,a,l){for(var h=0,c=0,u=s,g=0,p=0,m=0,k=1,O=1,z=1,b=0,P="",X=n,U=o,V=r,W=P;O;)switch(m=b,b=wt()){case 40:if(m!=108&&ri(W,u-1)==58){mg(W+=Ri(Vr(b),"&","&\f"),"&\f")!=-1&&(z=-1);break}case 34:case 39:case 91:W+=Vr(b);break;case 9:case 10:case 13:case 32:W+=Tg(m);break;case 92:W+=vg(Pi()-1,7);continue;case 47:switch(ue()){case 42:case 47:wi(Bg(kg(wt(),Pi()),e,i,l),l);break;default:W+="/"}break;case 123*k:a[h++]=jt(W)*z;case 125*k:case 59:case 0:switch(b){case 0:case 125:O=0;case 59+c:z==-1&&(W=Ri(W,/\f/g,"")),p>0&&jt(W)-u&&wi(p>32?Qo(W+";",r,i,u-1,l):Qo(Ri(W," ","")+";",r,i,u-2,l),l);break;case 59:W+=";";default:if(wi(V=Jo(W,e,i,h,c,n,a,P,X=[],U=[],u,o),o),b===123)if(c===0)qi(W,e,V,V,X,o,u,a,U);else switch(g===99&&ri(W,3)===110?100:g){case 100:case 108:case 109:case 115:qi(t,V,V,r&&wi(Jo(t,V,V,0,0,n,a,P,n,X=[],u,U),U),n,U,u,a,r?X:U);break;default:qi(W,V,V,V,[""],U,0,a,U)}}h=c=p=0,k=z=1,P=W="",u=s;break;case 58:u=1+jt(W),p=m;default:if(k<1){if(b==123)--k;else if(b==125&&k++==0&&Cg()==125)continue}switch(W+=Nn(b),b*k){case 38:z=c>0?1:(W+="\f",-1);break;case 44:a[h++]=(jt(W)-1)*z,z=1;break;case 64:ue()===45&&(W+=Vr(wt())),g=ue(),c=u=jt(P=W+=Sg(Pi())),b++;break;case 45:m===45&&jt(W)==2&&(k=0)}}return o}function Jo(t,e,i,r,n,o,s,a,l,h,c,u){for(var g=n-1,p=n===0?o:[""],m=_g(p),k=0,O=0,z=0;k0?p[b]+" "+P:Ri(P,/&\f/g,p[b])))&&(l[z++]=X);return Rn(t,e,i,n===0?wa:a,l,h,c,u)}function Bg(t,e,i,r){return Rn(t,e,i,Sa,Nn(yg()),ni(t,2,-2),0,r)}function Qo(t,e,i,r,n){return Rn(t,e,i,Ba,ni(t,0,r),ni(t,r+1,-1),r,n)}function pn(t,e){for(var i="",r=0;r-1&&t%1==0&&t<=tm}function em(t){return t!=null&&Oa(t.length)&&!ka(t)}function im(){return!1}var Ma=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ss=Ma&&typeof module=="object"&&module&&!module.nodeType&&module,rm=ss&&ss.exports===Ma,as=rm?ne.Buffer:void 0,nm=as?as.isBuffer:void 0,om=nm||im;const sm=om;var am="[object Arguments]",lm="[object Array]",hm="[object Boolean]",cm="[object Date]",um="[object Error]",fm="[object Function]",dm="[object Map]",pm="[object Number]",gm="[object Object]",mm="[object RegExp]",_m="[object Set]",ym="[object String]",Cm="[object WeakMap]",bm="[object ArrayBuffer]",xm="[object DataView]",Tm="[object Float32Array]",vm="[object Float64Array]",km="[object Int8Array]",Sm="[object Int16Array]",wm="[object Int32Array]",Bm="[object Uint8Array]",Fm="[object Uint8ClampedArray]",Lm="[object Uint16Array]",Am="[object Uint32Array]",Y={};Y[Tm]=Y[vm]=Y[km]=Y[Sm]=Y[wm]=Y[Bm]=Y[Fm]=Y[Lm]=Y[Am]=!0;Y[am]=Y[lm]=Y[bm]=Y[hm]=Y[xm]=Y[cm]=Y[um]=Y[fm]=Y[dm]=Y[pm]=Y[gm]=Y[mm]=Y[_m]=Y[ym]=Y[Cm]=!1;function Em(t){return Pn(t)&&Oa(t.length)&&!!Y[ui(t)]}function Om(t){return function(e){return t(e)}}var Ia=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ke=Ia&&typeof module=="object"&&module&&!module.nodeType&&module,Mm=Ke&&Ke.exports===Ia,Gr=Mm&&xa.process,Im=function(){try{var t=Ke&&Ke.require&&Ke.require("util").types;return t||Gr&&Gr.binding&&Gr.binding("util")}catch{}}();const ls=Im;var hs=ls&&ls.isTypedArray,$m=hs?Om(hs):Em;const Dm=$m;var Nm="[object Map]",Rm="[object Set]",Pm=Object.prototype,qm=Pm.hasOwnProperty;function zi(t){if(t==null)return!0;if(em(t)&&(Qg(t)||typeof t=="string"||typeof t.splice=="function"||sm(t)||Dm(t)||Zg(t)))return!t.length;var e=Yg(t);if(e==Nm||e==Rm)return!t.size;if(Aa(t))return!$g(t).length;for(var i in t)if(qm.call(t,i))return!1;return!0}const Ht={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},S={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},qn=function(t="fatal"){let e=Ht.fatal;typeof t=="string"?(t=t.toLowerCase(),t in Ht&&(e=Ht[t])):typeof t=="number"&&(e=t),S.trace=()=>{},S.debug=()=>{},S.info=()=>{},S.warn=()=>{},S.error=()=>{},S.fatal=()=>{},e<=Ht.fatal&&(S.fatal=console.error?console.error.bind(console,bt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",bt("FATAL"))),e<=Ht.error&&(S.error=console.error?console.error.bind(console,bt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",bt("ERROR"))),e<=Ht.warn&&(S.warn=console.warn?console.warn.bind(console,bt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",bt("WARN"))),e<=Ht.info&&(S.info=console.info?console.info.bind(console,bt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",bt("INFO"))),e<=Ht.debug&&(S.debug=console.debug?console.debug.bind(console,bt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",bt("DEBUG"))),e<=Ht.trace&&(S.trace=console.debug?console.debug.bind(console,bt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",bt("TRACE")))},bt=t=>`%c${wh().format("ss.SSS")} : ${t} : `,Tr=//gi,zm=t=>t?Da(t).replace(/\\n/g,"#br#").split("#br#"):[""],$a=t=>tr.sanitize(t),cs=(t,e)=>{var i;if(((i=e.flowchart)==null?void 0:i.htmlLabels)!==!1){const r=e.securityLevel;r==="antiscript"||r==="strict"?t=$a(t):r!=="loose"&&(t=Da(t),t=t.replace(//g,">"),t=t.replace(/=/g,"="),t=Um(t))}return t},oi=(t,e)=>t&&(e.dompurifyConfig?t=tr.sanitize(cs(t,e),e.dompurifyConfig).toString():t=tr.sanitize(cs(t,e),{FORBID_TAGS:["style"]}).toString(),t),Wm=(t,e)=>typeof t=="string"?oi(t,e):t.flat().map(i=>oi(i,e)),Hm=t=>Tr.test(t),jm=t=>t.split(Tr),Um=t=>t.replace(/#br#/g,"
"),Da=t=>t.replace(Tr,"#br#"),Ym=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},Na=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),Vm=function(...t){const e=t.filter(i=>!isNaN(i));return Math.max(...e)},Gm=function(...t){const e=t.filter(i=>!isNaN(i));return Math.min(...e)},Xm=function(t){let e=t;if(t.split("~").length-1>=2){let i=e;do e=i,i=e.replace(/~([^\s,:;]+)~/,"<$1>");while(i!=e);return Xm(i)}else return e},zn={getRows:zm,sanitizeText:oi,sanitizeTextOrArray:Wm,hasBreaks:Hm,splitBreaks:jm,lineBreakRegex:Tr,removeScript:$a,getUrl:Ym,evaluate:Na,getMax:Vm,getMin:Gm},ct=(t,e)=>e?d(t,{s:-40,l:10}):d(t,{s:-40,l:-10}),vr="#ffffff",kr="#f2f2f2";let Km=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||d(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||d(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ct(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ct(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ct(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ct(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?E(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||E(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||L(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||d(this.primaryColor,{h:30}),this.cScale4=this.cScale4||d(this.primaryColor,{h:60}),this.cScale5=this.cScale5||d(this.primaryColor,{h:90}),this.cScale6=this.cScale6||d(this.primaryColor,{h:120}),this.cScale7=this.cScale7||d(this.primaryColor,{h:150}),this.cScale8=this.cScale8||d(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||d(this.primaryColor,{h:270}),this.cScale10=this.cScale10||d(this.primaryColor,{h:300}),this.cScale11=this.cScale11||d(this.primaryColor,{h:330}),this.darkMode)for(let i=0;i{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Zm=t=>{const e=new Km;return e.calculate(t),e};let Jm=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=L(this.primaryColor,16),this.tertiaryColor=d(this.primaryColor,{h:-160}),this.primaryBorderColor=C(this.background),this.secondaryBorderColor=ct(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ct(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=L(C("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Xe(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=E("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=E(this.sectionBkgColor,10),this.taskBorderColor=Xe(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Xe(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=L(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=L(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=L(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=d(this.primaryColor,{h:64}),this.fillType3=d(this.secondaryColor,{h:64}),this.fillType4=d(this.primaryColor,{h:-64}),this.fillType5=d(this.secondaryColor,{h:-64}),this.fillType6=d(this.primaryColor,{h:128}),this.fillType7=d(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||d(this.primaryColor,{h:30}),this.cScale4=this.cScale4||d(this.primaryColor,{h:60}),this.cScale5=this.cScale5||d(this.primaryColor,{h:90}),this.cScale6=this.cScale6||d(this.primaryColor,{h:120}),this.cScale7=this.cScale7||d(this.primaryColor,{h:150}),this.cScale8=this.cScale8||d(this.primaryColor,{h:210}),this.cScale9=this.cScale9||d(this.primaryColor,{h:270}),this.cScale10=this.cScale10||d(this.primaryColor,{h:300}),this.cScale11=this.cScale11||d(this.primaryColor,{h:330});for(let e=0;e{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Qm=t=>{const e=new Jm;return e.calculate(t),e};let t0=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=d(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=d(this.primaryColor,{h:-160}),this.primaryBorderColor=ct(this.primaryColor,this.darkMode),this.secondaryBorderColor=ct(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ct(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=Xe(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||d(this.primaryColor,{h:30}),this.cScale4=this.cScale4||d(this.primaryColor,{h:60}),this.cScale5=this.cScale5||d(this.primaryColor,{h:90}),this.cScale6=this.cScale6||d(this.primaryColor,{h:120}),this.cScale7=this.cScale7||d(this.primaryColor,{h:150}),this.cScale8=this.cScale8||d(this.primaryColor,{h:210}),this.cScale9=this.cScale9||d(this.primaryColor,{h:270}),this.cScale10=this.cScale10||d(this.primaryColor,{h:300}),this.cScale11=this.cScale11||d(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||E(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||E(this.tertiaryColor,40);for(let e=0;e{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const e0=t=>{const e=new t0;return e.calculate(t),e};let i0=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=L("#cde498",10),this.primaryBorderColor=ct(this.primaryColor,this.darkMode),this.secondaryBorderColor=ct(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ct(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(){this.actorBorder=E(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||d(this.primaryColor,{h:30}),this.cScale4=this.cScale4||d(this.primaryColor,{h:60}),this.cScale5=this.cScale5||d(this.primaryColor,{h:90}),this.cScale6=this.cScale6||d(this.primaryColor,{h:120}),this.cScale7=this.cScale7||d(this.primaryColor,{h:150}),this.cScale8=this.cScale8||d(this.primaryColor,{h:210}),this.cScale9=this.cScale9||d(this.primaryColor,{h:270}),this.cScale10=this.cScale10||d(this.primaryColor,{h:300}),this.cScale11=this.cScale11||d(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||E(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||E(this.tertiaryColor,40);for(let e=0;e{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const r0=t=>{const e=new i0;return e.calculate(t),e};class n0{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=L(this.contrast,55),this.background="#ffffff",this.tertiaryColor=d(this.primaryColor,{h:-160}),this.primaryBorderColor=ct(this.primaryColor,this.darkMode),this.secondaryBorderColor=ct(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ct(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(){this.secondBkg=L(this.contrast,55),this.border2=this.contrast,this.actorBorder=L(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let e=0;e{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}}const o0=t=>{const e=new n0;return e.calculate(t),e},Yt={base:{getThemeVariables:Zm},dark:{getThemeVariables:Qm},default:{getThemeVariables:e0},forest:{getThemeVariables:r0},neutral:{getThemeVariables:o0}},te={theme:"default",themeVariables:Yt.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{titleTopMargin:25,diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{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,useMaxWidth:!0,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,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:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,displayMode:"",axisFormat:"%Y-%m-%d",tickInterval:void 0,useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,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"]},timeline:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,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},class:{titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},state:{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,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0,textPosition:.75},quadrantChart:{chartWidth:500,chartHeight:500,titlePadding:10,titleFontSize:20,quadrantPadding:5,quadrantTextTopPadding:5,quadrantLabelFontSize:16,quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2,xAxisLabelPadding:5,xAxisLabelFontSize:16,xAxisPosition:"top",yAxisLabelPadding:5,yAxisLabelFontSize:16,yAxisPosition:"left",pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,useMaxWidth:!0},requirement:{useWidth:void 0,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},gitGraph:{titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0},c4:{useWidth:void 0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,useMaxWidth:!0,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,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}},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"},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},fontSize:16};te.class&&(te.class.arrowMarkerAbsolute=te.arrowMarkerAbsolute);te.gitGraph&&(te.gitGraph.arrowMarkerAbsolute=te.arrowMarkerAbsolute);const Ra=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...Ra(t[r],"")]:[...i,e+r],[]),s0=Ra(te,""),a0=te;/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Pa(t){return typeof t>"u"||t===null}function l0(t){return typeof t=="object"&&t!==null}function h0(t){return Array.isArray(t)?t:Pa(t)?[]:[t]}function c0(t,e){var i,r,n,o;if(e)for(o=Object.keys(e),i=0,r=o.length;ia&&(o=" ... ",e=r-a+o.length),i-r>a&&(s=" ...",i=r+a-s.length),{str:o+t.slice(e,i).replace(/\t/g,"→")+s,pos:r-e+o.length}}function Kr(t,e){return ht.repeat(" ",e-t.length)+t}function C0(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 i=/\r?\n|\r|\0/g,r=[0],n=[],o,s=-1;o=i.exec(t.buffer);)n.push(o.index),r.push(o.index+o[0].length),t.position<=o.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var a="",l,h,c=Math.min(t.line+e.linesAfter,n.length).toString().length,u=e.maxLength-(e.indent+c+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)h=Xr(t.buffer,r[s-l],n[s-l],t.position-(r[s]-r[s-l]),u),a=ht.repeat(" ",e.indent)+Kr((t.line-l+1).toString(),c)+" | "+h.str+` `+a;for(h=Xr(t.buffer,r[s],n[s],t.position,u),a+=ht.repeat(" ",e.indent)+Kr((t.line+1).toString(),c)+" | "+h.str+` `,a+=ht.repeat("-",e.indent+c+3+h.pos)+`^ `,l=1;l<=e.linesAfter&&!(s+l>=n.length);l++)h=Xr(t.buffer,r[s+l],n[s+l],t.position-(r[s]-r[s+l]),u),a+=ht.repeat(" ",e.indent)+Kr((t.line+l+1).toString(),c)+" | "+h.str+` `;return a.replace(/\n$/,"")}var b0=C0,x0=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],T0=["scalar","sequence","mapping"];function v0(t){var e={};return t!==null&&Object.keys(t).forEach(function(i){t[i].forEach(function(r){e[String(r)]=i})}),e}function k0(t,e){if(e=e||{},Object.keys(e).forEach(function(i){if(x0.indexOf(i)===-1)throw new Ut('Unknown option "'+i+'" 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(i){return i},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=v0(e.styleAliases||null),T0.indexOf(this.kind)===-1)throw new Ut('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var at=k0;function us(t,e){var i=[];return t[e].forEach(function(r){var n=i.length;i.forEach(function(o,s){o.tag===r.tag&&o.kind===r.kind&&o.multi===r.multi&&(n=s)}),i[n]=r}),i}function S0(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,i;function r(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,i=arguments.length;e=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"]}}),U0=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Y0(t){return!(t===null||!U0.test(t)||t[t.length-1]==="_")}function V0(t){var e,i;return e=t.replace(/_/g,"").toLowerCase(),i=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:i*parseFloat(e,10)}var G0=/^[-+]?[0-9]+e/;function X0(t,e){var i;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ht.isNegativeZero(t))return"-0.0";return i=t.toString(10),G0.test(i)?i.replace("e",".e"):i}function K0(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||ht.isNegativeZero(t))}var Z0=new at("tag:yaml.org,2002:float",{kind:"scalar",resolve:Y0,construct:V0,predicate:K0,represent:X0,defaultStyle:"lowercase"}),J0=za.extend({implicit:[M0,N0,j0,Z0]}),Q0=J0,Wa=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Ha=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 t_(t){return t===null?!1:Wa.exec(t)!==null||Ha.exec(t)!==null}function e_(t){var e,i,r,n,o,s,a,l=0,h=null,c,u,g;if(e=Wa.exec(t),e===null&&(e=Ha.exec(t)),e===null)throw new Error("Date resolve error");if(i=+e[1],r=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(i,r,n));if(o=+e[4],s=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(c=+e[10],u=+(e[11]||0),h=(c*60+u)*6e4,e[9]==="-"&&(h=-h)),g=new Date(Date.UTC(i,r,n,o,s,a,l)),h&&g.setTime(g.getTime()-h),g}function i_(t){return t.toISOString()}var r_=new at("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:t_,construct:e_,instanceOf:Date,represent:i_});function n_(t){return t==="<<"||t===null}var o_=new at("tag:yaml.org,2002:merge",{kind:"scalar",resolve:n_}),Wn=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`;function s_(t){if(t===null)return!1;var e,i,r=0,n=t.length,o=Wn;for(i=0;i64)){if(e<0)return!1;r+=6}return r%8===0}function a_(t){var e,i,r=t.replace(/[\r\n=]/g,""),n=r.length,o=Wn,s=0,a=[];for(e=0;e>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(r.charAt(e));return i=n%4*6,i===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):i===18?(a.push(s>>10&255),a.push(s>>2&255)):i===12&&a.push(s>>4&255),new Uint8Array(a)}function l_(t){var e="",i=0,r,n,o=t.length,s=Wn;for(r=0;r>18&63],e+=s[i>>12&63],e+=s[i>>6&63],e+=s[i&63]),i=(i<<8)+t[r];return n=o%3,n===0?(e+=s[i>>18&63],e+=s[i>>12&63],e+=s[i>>6&63],e+=s[i&63]):n===2?(e+=s[i>>10&63],e+=s[i>>4&63],e+=s[i<<2&63],e+=s[64]):n===1&&(e+=s[i>>2&63],e+=s[i<<4&63],e+=s[64],e+=s[64]),e}function h_(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var c_=new at("tag:yaml.org,2002:binary",{kind:"scalar",resolve:s_,construct:a_,predicate:h_,represent:l_}),u_=Object.prototype.hasOwnProperty,f_=Object.prototype.toString;function d_(t){if(t===null)return!0;var e=[],i,r,n,o,s,a=t;for(i=0,r=a.length;i>10)+55296,(t-65536&1023)+56320)}var Ga=new Array(256),Xa=new Array(256);for(var Se=0;Se<256;Se++)Ga[Se]=ps(Se)?1:0,Xa[Se]=ps(Se);function M_(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||k_,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 Ka(t,e){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=b0(i),new Ut(e,i)}function A(t,e){throw Ka(t,e)}function or(t,e){t.onWarning&&t.onWarning.call(null,Ka(t,e))}var gs={YAML:function(e,i,r){var n,o,s;e.version!==null&&A(e,"duplication of %YAML directive"),r.length!==1&&A(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),n===null&&A(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),s=parseInt(n[2],10),o!==1&&A(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&or(e,"unsupported YAML version of the document")},TAG:function(e,i,r){var n,o;r.length!==2&&A(e,"TAG directive accepts exactly two arguments"),n=r[0],o=r[1],Ya.test(n)||A(e,"ill-formed tag handle (first argument) of the TAG directive"),re.call(e.tagMap,n)&&A(e,'there is a previously declared suffix for "'+n+'" tag handle'),Va.test(o)||A(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{A(e,"tag prefix is malformed: "+o)}e.tagMap[n]=o}};function ee(t,e,i,r){var n,o,s,a;if(e1&&(t.result+=ht.repeat(` `,e-1))}function I_(t,e,i){var r,n,o,s,a,l,h,c,u=t.kind,g=t.result,p;if(p=t.input.charCodeAt(t.position),pt(p)||we(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(n=t.input.charCodeAt(t.position+1),pt(n)||i&&we(n)))return!1;for(t.kind="scalar",t.result="",o=s=t.position,a=!1;p!==0;){if(p===58){if(n=t.input.charCodeAt(t.position+1),pt(n)||i&&we(n))break}else if(p===35){if(r=t.input.charCodeAt(t.position-1),pt(r))break}else{if(t.position===t.lineStart&&Sr(t)||i&&we(p))break;if(Dt(p))if(l=t.line,h=t.lineStart,c=t.lineIndent,tt(t,!1,-1),t.lineIndent>=e){a=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=l,t.lineStart=h,t.lineIndent=c;break}}a&&(ee(t,o,s,!1),jn(t,t.line-l),o=s=t.position,a=!1),fe(p)||(s=t.position+1),p=t.input.charCodeAt(++t.position)}return ee(t,o,s,!1),t.result?!0:(t.kind=u,t.result=g,!1)}function $_(t,e){var i,r,n;if(i=t.input.charCodeAt(t.position),i!==39)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(i=t.input.charCodeAt(t.position))!==0;)if(i===39)if(ee(t,r,t.position,!0),i=t.input.charCodeAt(++t.position),i===39)r=t.position,t.position++,n=t.position;else return!0;else Dt(i)?(ee(t,r,n,!0),jn(t,tt(t,!1,e)),r=n=t.position):t.position===t.lineStart&&Sr(t)?A(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);A(t,"unexpected end of the stream within a single quoted scalar")}function D_(t,e){var i,r,n,o,s,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return ee(t,i,t.position,!0),t.position++,!0;if(a===92){if(ee(t,i,t.position,!0),a=t.input.charCodeAt(++t.position),Dt(a))tt(t,!1,e);else if(a<256&&Ga[a])t.result+=Xa[a],t.position++;else if((s=A_(a))>0){for(n=s,o=0;n>0;n--)a=t.input.charCodeAt(++t.position),(s=L_(a))>=0?o=(o<<4)+s:A(t,"expected hexadecimal character");t.result+=O_(o),t.position++}else A(t,"unknown escape sequence");i=r=t.position}else Dt(a)?(ee(t,i,r,!0),jn(t,tt(t,!1,e)),i=r=t.position):t.position===t.lineStart&&Sr(t)?A(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}A(t,"unexpected end of the stream within a double quoted scalar")}function N_(t,e){var i=!0,r,n,o,s=t.tag,a,l=t.anchor,h,c,u,g,p,m=Object.create(null),k,O,z,b;if(b=t.input.charCodeAt(t.position),b===91)c=93,p=!1,a=[];else if(b===123)c=125,p=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),b=t.input.charCodeAt(++t.position);b!==0;){if(tt(t,!0,e),b=t.input.charCodeAt(t.position),b===c)return t.position++,t.tag=s,t.anchor=l,t.kind=p?"mapping":"sequence",t.result=a,!0;i?b===44&&A(t,"expected the node content, but found ','"):A(t,"missed comma between flow collection entries"),O=k=z=null,u=g=!1,b===63&&(h=t.input.charCodeAt(t.position+1),pt(h)&&(u=g=!0,t.position++,tt(t,!0,e))),r=t.line,n=t.lineStart,o=t.position,Me(t,e,rr,!1,!0),O=t.tag,k=t.result,tt(t,!0,e),b=t.input.charCodeAt(t.position),(g||t.line===r)&&b===58&&(u=!0,b=t.input.charCodeAt(++t.position),tt(t,!0,e),Me(t,e,rr,!1,!0),z=t.result),p?Be(t,a,m,O,k,z,r,n,o):u?a.push(Be(t,null,m,O,k,z,r,n,o)):a.push(k),tt(t,!0,e),b=t.input.charCodeAt(t.position),b===44?(i=!0,b=t.input.charCodeAt(++t.position)):i=!1}A(t,"unexpected end of the stream within a flow collection")}function R_(t,e){var i,r,n=Zr,o=!1,s=!1,a=e,l=0,h=!1,c,u;if(u=t.input.charCodeAt(t.position),u===124)r=!1;else if(u===62)r=!0;else return!1;for(t.kind="scalar",t.result="";u!==0;)if(u=t.input.charCodeAt(++t.position),u===43||u===45)Zr===n?n=u===43?fs:S_:A(t,"repeat of a chomping mode identifier");else if((c=E_(u))>=0)c===0?A(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?A(t,"repeat of an indentation width identifier"):(a=e+c-1,s=!0);else break;if(fe(u)){do u=t.input.charCodeAt(++t.position);while(fe(u));if(u===35)do u=t.input.charCodeAt(++t.position);while(!Dt(u)&&u!==0)}for(;u!==0;){for(Hn(t),t.lineIndent=0,u=t.input.charCodeAt(t.position);(!s||t.lineIndenta&&(a=t.lineIndent),Dt(u)){l++;continue}if(t.lineIndente)&&l!==0)A(t,"bad indentation of a sequence entry");else if(t.lineIndente)&&(O&&(s=t.line,a=t.lineStart,l=t.position),Me(t,e,nr,!0,n)&&(O?m=t.result:k=t.result),O||(Be(t,u,g,p,m,k,s,a,l),p=m=k=null),tt(t,!0,-1),b=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&b!==0)A(t,"bad indentation of a mapping entry");else if(t.lineIndente?l=1:t.lineIndent===e?l=0:t.lineIndente?l=1:t.lineIndent===e?l=0:t.lineIndent tag; it should be "scalar", not "'+t.kind+'"'),u=0,g=t.implicitTypes.length;u"),t.result!==null&&m.kind!==t.kind&&A(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+m.kind+'", not "'+t.kind+'"'),m.resolve(t.result,t.tag)?(t.result=m.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):A(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||c}function H_(t){var e=t.position,i,r,n,o=!1,s;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(s=t.input.charCodeAt(t.position))!==0&&(tt(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(o=!0,s=t.input.charCodeAt(++t.position),i=t.position;s!==0&&!pt(s);)s=t.input.charCodeAt(++t.position);for(r=t.input.slice(i,t.position),n=[],r.length<1&&A(t,"directive name must not be less than one character in length");s!==0;){for(;fe(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!Dt(s));break}if(Dt(s))break;for(i=t.position;s!==0&&!pt(s);)s=t.input.charCodeAt(++t.position);n.push(t.input.slice(i,t.position))}s!==0&&Hn(t),re.call(gs,r)?gs[r](t,r,n):or(t,'unknown document directive "'+r+'"')}if(tt(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,tt(t,!0,-1)):o&&A(t,"directives end mark is expected"),Me(t,t.lineIndent-1,nr,!1,!0),tt(t,!0,-1),t.checkLineBreaks&&B_.test(t.input.slice(e,t.position))&&or(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Sr(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,tt(t,!0,-1));return}if(t.position"u"&&(i=e,e=null);var r=Za(t,i);if(typeof e!="function")return r;for(var n=0,o=r.length;nbn(t,o,i)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(o=>{t.includes(o)||t.push(o)}),t):t===void 0||r<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(o=>{typeof e[o]=="object"&&(t[o]===void 0||typeof t[o]=="object")?(t[o]===void 0&&(t[o]=Array.isArray(e[o])?[]:{}),t[o]=bn(t[o],e[o],{depth:r-1,clobber:n})):(n||typeof t[o]!="object"&&typeof e[o]!="object")&&(t[o]=e[o])}),t)},st=bn,ai=Object.freeze(a0);let ft=st({},ai),Qa,Ie=[],Ze=st({},ai);const wr=(t,e)=>{let i=st({},t),r={};for(const n of e)el(n),r=st(r,n);if(i=st(i,r),r.theme&&r.theme in Yt){const n=st({},Qa),o=st(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in Yt&&(i.themeVariables=Yt[i.theme].getThemeVariables(o))}return Ze=i,nl(Ze),Ze},J_=t=>(ft=st({},ai),ft=st(ft,t),t.theme&&Yt[t.theme]&&(ft.themeVariables=Yt[t.theme].getThemeVariables(t.themeVariables)),wr(ft,Ie),ft),Q_=t=>{Qa=st({},t)},ty=t=>(ft=st(ft,t),wr(ft,Ie),ft),tl=()=>st({},ft),ey=t=>(nl(t),st(Ze,t),Gt()),Gt=()=>st({},Ze),el=t=>{["secure",...ft.secure??[]].forEach(e=>{t[e]!==void 0&&(S.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.indexOf("__")===0&&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"&&el(t[e])})},il=t=>{t.fontFamily&&(t.themeVariables?t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily}):t.themeVariables={fontFamily:t.fontFamily}),Ie.push(t),wr(ft,Ie)},sr=(t=ft)=>{Ie=[],wr(t,Ie)};var rl=(t=>(t.LAZY_LOAD_DEPRECATED="The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",t))(rl||{});const ys={},iy=t=>{ys[t]||(S.warn(rl[t]),ys[t]=!0)},nl=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&iy("LAZY_LOAD_DEPRECATED")},ry=function(t,e){for(let i of e)t.attr(i[0],i[1])},ny=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},oy=function(t,e,i,r){const n=ny(e,i,r);ry(t,n)},sy=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;S.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;S.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,S.info(`Calculated bounds: ${a}x${l}`),oy(e,l,a,r);const h=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",h)},Wi={},ay=(t,e,i)=>{let r="";return t in Wi&&Wi[t]?r=Wi[t](i):S.warn(`No theme found for ${t}`),` & { font-family: ${i.fontFamily}; font-size: ${i.fontSize}; fill: ${i.textColor} } /* Classes common for multiple diagrams */ & .error-icon { fill: ${i.errorBkgColor}; } & .error-text { fill: ${i.errorTextColor}; stroke: ${i.errorTextColor}; } & .edge-thickness-normal { stroke-width: 2px; } & .edge-thickness-thick { stroke-width: 3.5px } & .edge-pattern-solid { stroke-dasharray: 0; } & .edge-pattern-dashed{ stroke-dasharray: 3; } .edge-pattern-dotted { stroke-dasharray: 2; } & .marker { fill: ${i.lineColor}; stroke: ${i.lineColor}; } & .marker.cross { stroke: ${i.lineColor}; } & svg { font-family: ${i.fontFamily}; font-size: ${i.fontSize}; } ${r} ${e} `},ly=(t,e)=>{e!==void 0&&(Wi[t]=e)},hy=ay;let Un="",Br="",Yn="";const Vn=t=>oi(t,Gt()),ol=function(){Un="",Yn="",Br=""},sl=function(t){Un=Vn(t).replace(/^\s+/g,"")},al=function(){return Un||Br},ll=function(t){Yn=Vn(t).replace(/\n\s+/g,` `)},hl=function(){return Yn},cl=function(t){Br=Vn(t)},ul=function(){return Br},cy={getAccTitle:al,setAccTitle:sl,getDiagramTitle:ul,setDiagramTitle:cl,getAccDescription:hl,setAccDescription:ll,clear:ol},uy=Object.freeze(Object.defineProperty({__proto__:null,clear:ol,default:cy,getAccDescription:hl,getAccTitle:al,getDiagramTitle:ul,setAccDescription:ll,setAccTitle:sl,setDiagramTitle:cl},Symbol.toStringTag,{value:"Module"}));let ae={};const fl=function(t,e,i,r){S.debug("parseDirective is being called",e,i,r);try{if(e!==void 0)switch(e=e.trim(),i){case"open_directive":ae={};break;case"type_directive":if(!ae)throw new Error("currentDirective is undefined");ae.type=e.toLowerCase();break;case"arg_directive":if(!ae)throw new Error("currentDirective is undefined");ae.args=JSON.parse(e);break;case"close_directive":fy(t,ae,r),ae=void 0;break}}catch(n){S.error(`Error while rendering sequenceDiagram directive: ${e} jison context: ${i}`),S.error(n.message)}},fy=function(t,e,i){switch(S.info(`Directive type=${e.type} with args:`,e.args),e.type){case"init":case"initialize":{["config"].forEach(r=>{e.args[r]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),e.args[i]=e.args[r],delete e.args[r])}),S.info("sanitize in handleDirective",e.args),De(e.args),S.info("sanitize in handleDirective (done)",e.args),il(e.args);break}case"wrap":case"nowrap":t&&t.setWrap&&t.setWrap(e.type==="wrap");break;case"themeCss":S.warn("themeCss encountered");break;default:S.warn(`Unhandled directive: source: '%%{${e.type}: ${JSON.stringify(e.args?e.args:{})}}%%`,e);break}},dy=S,py=qn,dl=Gt,gy=t=>oi(t,dl()),my=sy,_y=()=>uy,yy=(t,e,i,r)=>fl(t,e,i,r),ar={},lr=(t,e,i)=>{if(ar[t])throw new Error(`Diagram ${t} already registered.`);ar[t]=e,i&&ml(t,i),ly(t,e.styles),e.injectUtils&&e.injectUtils(dy,py,dl,gy,my,_y(),yy)},Gn=t=>{if(t in ar)return ar[t];throw new Error(`Diagram ${t} not found.`)};class pl extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}}const Cy=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,by=/\s*%%.*\n/gm,$e={},Fr=function(t,e){t=t.replace(Ja,"").replace(Cy,"").replace(by,` `);for(const[i,{detector:r}]of Object.entries($e))if(r(t,e))return i;throw new pl(`No diagram type detected matching given configuration for text: ${t}`)},gl=(...t)=>{for(const{id:e,detector:i,loader:r}of t)ml(e,i,r)},xy=async()=>{S.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries($e).map(async([i,{detector:r,loader:n}])=>{if(n)try{Gn(i)}catch{try{const{diagram:s,id:a}=await n();lr(a,s,r)}catch(s){throw S.error(`Failed to load external diagram with key ${i}. Removing from detectors.`),delete $e[i],s}}}))).filter(i=>i.status==="rejected");if(e.length>0){S.error(`Failed to load ${e.length} external diagrams`);for(const i of e)S.error(i);throw new Error(`Failed to load ${e.length} external diagrams`)}},ml=(t,e,i)=>{$e[t]?S.error(`Detector with key ${t} already exists`):$e[t]={detector:e,loader:i},S.debug(`Detector with key ${t} added${i?" with loader":""}`)},Ty=t=>$e[t].loader,vy="​",ky={curveBasis:td,curveBasisClosed:ed,curveBasisOpen:id,curveBumpX:Jf,curveBumpY:Qf,curveBundle:rd,curveCardinalClosed:od,curveCardinalOpen:sd,curveCardinal:nd,curveCatmullRomClosed:ld,curveCatmullRomOpen:hd,curveCatmullRom:ad,curveLinear:Zf,curveLinearClosed:cd,curveMonotoneX:ud,curveMonotoneY:fd,curveNatural:dd,curveStep:pd,curveStepAfter:md,curveStepBefore:gd},Jr=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Sy=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,wy=function(t,e){const i=_l(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const n=i.map(o=>o.args);De(n),r=st(r,[...n])}else r=i.args;if(r){let n=Fr(t,e);["config"].forEach(o=>{r[o]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[o],delete r[o])})}return r},_l=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${Sy.source})(?=[}][%]{2}).* `,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),S.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=Jr.exec(t))!==null;)if(r.index===Jr.lastIndex&&Jr.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0&&n.push({type:t,args:null}),n.length===1?n[0]:n}catch(i){return S.error(`ERROR: ${i.message} - Unable to parse directive ${e!==null?" type:"+e:""} based on the text:${t}`),{type:null,args:null}}},By=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function Fy(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return ky[i]||e}function Ly(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Fs(i):i}const Ay=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s{i+=hr(o,e),e=o});let r=i/2,n;return e=void 0,t.forEach(o=>{if(e&&!n){const s=hr(o,e);if(s=1&&(n={x:o.x,y:o.y}),a>0&&a<1&&(n={x:(1-a)*e.x+a*o.x,y:(1-a)*e.y+a*o.y})}}e=o}),n}function Oy(t){return t.length===1?t[0]:Ey(t)}const My=(t,e,i)=>{let r;S.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());let o=25,s;r=void 0,e.forEach(c=>{if(r&&!s){const u=hr(c,r);if(u=1&&(s={x:c.x,y:c.y}),g>0&&g<1&&(s={x:(1-g)*r.x+g*c.x,y:(1-g)*r.y+g*c.y})}}r=c});const a=t?10:5,l=Math.atan2(e[0].y-s.y,e[0].x-s.x),h={x:0,y:0};return h.x=Math.sin(l)*a+(e[0].x+s.x)/2,h.y=-Math.cos(l)*a+(e[0].y+s.y)/2,h};function Iy(t,e,i){let r=JSON.parse(JSON.stringify(i)),n;S.info("our points",r),e!=="start_left"&&e!=="start_right"&&(r=r.reverse()),r.forEach(u=>{n=u});let s=25+t,a;n=void 0,r.forEach(u=>{if(n&&!a){const g=hr(u,n);if(g=1&&(a={x:u.x,y:u.y}),p>0&&p<1&&(a={x:(1-p)*n.x+p*u.x,y:(1-p)*n.y+p*u.y})}}n=u});const l=10+t*.5,h=Math.atan2(r[0].y-a.y,r[0].x-a.x),c={x:0,y:0};return c.x=Math.sin(h)*l+(r[0].x+a.x)/2,c.y=-Math.cos(h)*l+(r[0].y+a.y)/2,e==="start_left"&&(c.x=Math.sin(h+Math.PI)*l+(r[0].x+a.x)/2,c.y=-Math.cos(h+Math.PI)*l+(r[0].y+a.y)/2),e==="end_right"&&(c.x=Math.sin(h-Math.PI)*l+(r[0].x+a.x)/2-5,c.y=-Math.cos(h-Math.PI)*l+(r[0].y+a.y)/2-5),e==="end_left"&&(c.x=Math.sin(h)*l+(r[0].x+a.x)/2-5,c.y=-Math.cos(h)*l+(r[0].y+a.y)/2-5),c}function $y(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let Cs=0;const Dy=()=>(Cs++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Cs);function Ny(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;nNy(t.length),Py=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}},qy=function(t,e){const i=e.text.replace(zn.lineBreakRegex," "),[,r]=Kn(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},zy=fi((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},i),zn.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=cr(`${s} `,i),h=cr(o,i);if(l>e){const{hyphenatedStrings:g,remainingWord:p}=Wy(s,e,"-",i);n.push(o,...g),o=p}else h+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),Wy=fi((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const h=`${s}${a}`;if(cr(h,r)>=e){const u=l+1,g=n.length===u,p=`${h}${i}`;o.push(g?h:p),s=""}else s=h}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Hy(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),Xn(t,e).height}function cr(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),Xn(t,e).width}const Xn=fi((t,e)=>{e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e);const{fontSize:i,fontFamily:r,fontWeight:n}=e;if(!t)return{width:0,height:0};const[,o]=Kn(i),s=["sans-serif",r],a=t.split(zn.lineBreakRegex),l=[],h=It("body");if(!h.remove)return{width:0,height:0,lineHeight:0};const c=h.append("svg");for(const g of s){let p=0;const m={width:0,height:0,lineHeight:0};for(const k of a){const O=Py();O.text=k||vy;const z=qy(c,O).style("font-size",o).style("font-weight",n).style("font-family",g),b=(z._groups||z)[0][0].getBBox();if(b.width===0&&b.height===0)throw new Error("svg element not in render tree");m.width=Math.round(Math.max(m.width,b.width)),p=Math.round(b.height),m.height+=p,m.lineHeight=Math.round(Math.max(m.lineHeight,p))}l.push(m)}c.remove();const u=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[u]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),jy=class{constructor(e,i){this.deterministic=e,this.seed=i,this.count=i?i.length:0}next(){return this.deterministic?this.count++:Date.now()}};let Bi;const Uy=function(t){return Bi=Bi||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Bi.innerHTML=t,unescape(Bi.textContent)},De=t=>{if(S.debug("directiveSanitizer called with",t),typeof t=="object"&&(t.length?t.forEach(e=>De(e)):Object.keys(t).forEach(e=>{S.debug("Checking key",e),e.startsWith("__")&&(S.debug("sanitize deleting __ option",e),delete t[e]),e.includes("proto")&&(S.debug("sanitize deleting proto option",e),delete t[e]),e.includes("constr")&&(S.debug("sanitize deleting constr option",e),delete t[e]),e.includes("themeCSS")&&(S.debug("sanitizing themeCss option"),t[e]=Hi(t[e])),e.includes("fontFamily")&&(S.debug("sanitizing fontFamily option"),t[e]=Hi(t[e])),e.includes("altFontFamily")&&(S.debug("sanitizing altFontFamily option"),t[e]=Hi(t[e])),s0.includes(e)?typeof t[e]=="object"&&(S.debug("sanitize deleting object",e),De(t[e])):(S.debug("sanitize deleting option",e),delete t[e])})),t.themeVariables){const e=Object.keys(t.themeVariables);for(const i of e){const r=t.themeVariables[i];r&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[i]="")}}S.debug("After sanitization",t)},Hi=t=>{let e=0,i=0;for(const r of t){if(e{if(!r)return;const n=t.node().getBBox();t.append("text").text(r).attr("x",n.x+n.width/2).attr("y",-i).attr("class",e)},Kn=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t,10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},ji={assignWithDepth:st,wrapLabel:zy,calculateTextHeight:Hy,calculateTextWidth:cr,calculateTextDimensions:Xn,detectInit:wy,detectDirective:_l,isSubstringInArray:By,interpolateToCurve:Fy,calcLabelPosition:Oy,calcCardinalityPosition:My,calcTerminalLabelPosition:Iy,formatUrl:Ly,getStylesFromArray:$y,generateId:Dy,random:Ry,runFunc:Ay,entityDecode:Uy,initIdGenerator:jy,directiveSanitizer:De,sanitizeCss:Hi,insertTitle:Vy,parseFontSize:Kn},bs="10.2.4",Cl="c4",Gy=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),Xy=async()=>{const{diagram:t}=await J(()=>import("./chunks/c4Diagram-73a25429.9e418a04.js"),["assets/chunks/c4Diagram-73a25429.9e418a04.js","assets/chunks/svgDrawCommon-f26cad39.26e3d61c.js","assets/chunks/framework.93de11c7.js","assets/chunks/theme.2c1c16b7.js"]);return{id:Cl,diagram:t}},Ky={id:Cl,detector:Gy,loader:Xy},Zy=Ky,bl="flowchart",Jy=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},Qy=async()=>{const{diagram:t}=await J(()=>import("./chunks/flowDiagram-b66fcae9.8651ce2d.js"),["assets/chunks/flowDiagram-b66fcae9.8651ce2d.js","assets/chunks/flowDb-9e6c6aac.fb3d7fdb.js","assets/chunks/layout.54f84c80.js","assets/chunks/styles-7882abfe.68c0c8ac.js","assets/chunks/index-1e7f2254.9ecfb4de.js","assets/chunks/edges-66ea8538.8cb48f03.js","assets/chunks/createText-a49d2d2a.3c382313.js","assets/chunks/svgDraw-95adee0a.135c7e72.js","assets/chunks/line.c0a2261a.js","assets/chunks/array.9f3ba611.js","assets/chunks/path.53f90ab3.js","assets/chunks/selectAll.43de795f.js","assets/chunks/framework.93de11c7.js","assets/chunks/theme.2c1c16b7.js"]);return{id:bl,diagram:t}},tC={id:bl,detector:Jy,loader:Qy},eC=tC,xl="flowchart-v2",iC=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},rC=async()=>{const{diagram:t}=await J(()=>import("./chunks/flowDiagram-v2-fe64f300.b858f070.js"),["assets/chunks/flowDiagram-v2-fe64f300.b858f070.js","assets/chunks/flowDb-9e6c6aac.fb3d7fdb.js","assets/chunks/styles-7882abfe.68c0c8ac.js","assets/chunks/layout.54f84c80.js","assets/chunks/index-1e7f2254.9ecfb4de.js","assets/chunks/edges-66ea8538.8cb48f03.js","assets/chunks/createText-a49d2d2a.3c382313.js","assets/chunks/svgDraw-95adee0a.135c7e72.js","assets/chunks/line.c0a2261a.js","assets/chunks/array.9f3ba611.js","assets/chunks/path.53f90ab3.js","assets/chunks/selectAll.43de795f.js","assets/chunks/framework.93de11c7.js","assets/chunks/theme.2c1c16b7.js"]);return{id:xl,diagram:t}},nC={id:xl,detector:iC,loader:rC},oC=nC,Tl="er",sC=t=>/^\s*erDiagram/.test(t),aC=async()=>{const{diagram:t}=await J(()=>import("./chunks/erDiagram-731c3598.44bb693d.js"),["assets/chunks/erDiagram-731c3598.44bb693d.js","assets/chunks/layout.54f84c80.js","assets/chunks/line.c0a2261a.js","assets/chunks/array.9f3ba611.js","assets/chunks/path.53f90ab3.js","assets/chunks/framework.93de11c7.js","assets/chunks/theme.2c1c16b7.js"]);return{id:Tl,diagram:t}},lC={id:Tl,detector:sC,loader:aC},hC=lC,vl="gitGraph",cC=t=>/^\s*gitGraph/.test(t),uC=async()=>{const{diagram:t}=await J(()=>import("./chunks/gitGraphDiagram-566a7451.ce1a46fe.js"),["assets/chunks/gitGraphDiagram-566a7451.ce1a46fe.js","assets/chunks/framework.93de11c7.js","assets/chunks/theme.2c1c16b7.js"]);return{id:vl,diagram:t}},fC={id:vl,detector:cC,loader:uC},dC=fC,kl="gantt",pC=t=>/^\s*gantt/.test(t),gC=async()=>{const{diagram:t}=await J(()=>import("./chunks/ganttDiagram-55b9c28c.4283302b.js"),["assets/chunks/ganttDiagram-55b9c28c.4283302b.js","assets/chunks/linear.7a9579dc.js","assets/chunks/init.77b53fdd.js","assets/chunks/framework.93de11c7.js","assets/chunks/theme.2c1c16b7.js"]);return{id:kl,diagram:t}},mC={id:kl,detector:pC,loader:gC},_C=mC,Sl="info",yC=t=>/^\s*info/.test(t),CC=async()=>{const{diagram:t}=await J(()=>import("./chunks/infoDiagram-f43c69c6.8ca1e2d0.js"),["assets/chunks/infoDiagram-f43c69c6.8ca1e2d0.js","assets/chunks/framework.93de11c7.js","assets/chunks/theme.2c1c16b7.js"]);return{id:Sl,diagram:t}},bC={id:Sl,detector:yC,loader:CC},wl="pie",xC=t=>/^\s*pie/.test(t),TC=async()=>{const{diagram:t}=await J(()=>import("./chunks/pieDiagram-c8640b32.4ef07376.js"),["assets/chunks/pieDiagram-c8640b32.4ef07376.js","assets/chunks/init.77b53fdd.js","assets/chunks/array.9f3ba611.js","assets/chunks/path.53f90ab3.js","assets/chunks/arc.1206bf36.js","assets/chunks/framework.93de11c7.js","assets/chunks/theme.2c1c16b7.js"]);return{id:wl,diagram:t}},vC={id:wl,detector:xC,loader:TC},kC=vC,Bl="quadrantChart",SC=t=>/^\s*quadrantChart/.test(t),wC=async()=>{const{diagram:t}=await J(()=>import("./chunks/quadrantDiagram-f7a9076b.70e2a7eb.js"),["assets/chunks/quadrantDiagram-f7a9076b.70e2a7eb.js","assets/chunks/linear.7a9579dc.js","assets/chunks/init.77b53fdd.js","assets/chunks/framework.93de11c7.js","assets/chunks/theme.2c1c16b7.js"]);return{id:Bl,diagram:t}},BC={id:Bl,detector:SC,loader:wC},FC=BC,Fl="requirement",LC=t=>/^\s*requirement(Diagram)?/.test(t),AC=async()=>{const{diagram:t}=await J(()=>import("./chunks/requirementDiagram-429b9d18.531423df.js"),["assets/chunks/requirementDiagram-429b9d18.531423df.js","assets/chunks/layout.54f84c80.js","assets/chunks/line.c0a2261a.js","assets/chunks/array.9f3ba611.js","assets/chunks/path.53f90ab3.js","assets/chunks/framework.93de11c7.js","assets/chunks/theme.2c1c16b7.js"]);return{id:Fl,diagram:t}},EC={id:Fl,detector:LC,loader:AC},OC=EC,Ll="sequence",MC=t=>/^\s*sequenceDiagram/.test(t),IC=async()=>{const{diagram:t}=await J(()=>import("./chunks/sequenceDiagram-9506b40c.303af851.js"),["assets/chunks/sequenceDiagram-9506b40c.303af851.js","assets/chunks/svgDrawCommon-f26cad39.26e3d61c.js","assets/chunks/selectAll.43de795f.js","assets/chunks/framework.93de11c7.js","assets/chunks/theme.2c1c16b7.js"]);return{id:Ll,diagram:t}},$C={id:Ll,detector:MC,loader:IC},DC=$C,Al="class",NC=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},RC=async()=>{const{diagram:t}=await J(()=>import("./chunks/classDiagram-d26c05e1.6dbad508.js"),["assets/chunks/classDiagram-d26c05e1.6dbad508.js","assets/chunks/styles-a893c203.e23c01da.js","assets/chunks/layout.54f84c80.js","assets/chunks/svgDraw-95adee0a.135c7e72.js","assets/chunks/line.c0a2261a.js","assets/chunks/array.9f3ba611.js","assets/chunks/path.53f90ab3.js","assets/chunks/framework.93de11c7.js","assets/chunks/theme.2c1c16b7.js"]);return{id:Al,diagram:t}},PC={id:Al,detector:NC,loader:RC},qC=PC,El="classDiagram",zC=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},WC=async()=>{const{diagram:t}=await J(()=>import("./chunks/classDiagram-v2-656fc6c4.615e560e.js"),["assets/chunks/classDiagram-v2-656fc6c4.615e560e.js","assets/chunks/styles-a893c203.e23c01da.js","assets/chunks/layout.54f84c80.js","assets/chunks/index-1e7f2254.9ecfb4de.js","assets/chunks/edges-66ea8538.8cb48f03.js","assets/chunks/createText-a49d2d2a.3c382313.js","assets/chunks/svgDraw-95adee0a.135c7e72.js","assets/chunks/line.c0a2261a.js","assets/chunks/array.9f3ba611.js","assets/chunks/path.53f90ab3.js","assets/chunks/framework.93de11c7.js","assets/chunks/theme.2c1c16b7.js"]);return{id:El,diagram:t}},HC={id:El,detector:zC,loader:WC},jC=HC,Ol="state",UC=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},YC=async()=>{const{diagram:t}=await J(()=>import("./chunks/stateDiagram-0dc7ce84.9cece9c5.js"),["assets/chunks/stateDiagram-0dc7ce84.9cece9c5.js","assets/chunks/styles-b820c189.8a481dcf.js","assets/chunks/layout.54f84c80.js","assets/chunks/line.c0a2261a.js","assets/chunks/array.9f3ba611.js","assets/chunks/path.53f90ab3.js","assets/chunks/framework.93de11c7.js","assets/chunks/theme.2c1c16b7.js"]);return{id:Ol,diagram:t}},VC={id:Ol,detector:UC,loader:YC},GC=VC,Ml="stateDiagram",XC=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},KC=async()=>{const{diagram:t}=await J(()=>import("./chunks/stateDiagram-v2-e65458cd.68421673.js"),["assets/chunks/stateDiagram-v2-e65458cd.68421673.js","assets/chunks/styles-b820c189.8a481dcf.js","assets/chunks/layout.54f84c80.js","assets/chunks/index-1e7f2254.9ecfb4de.js","assets/chunks/edges-66ea8538.8cb48f03.js","assets/chunks/createText-a49d2d2a.3c382313.js","assets/chunks/svgDraw-95adee0a.135c7e72.js","assets/chunks/line.c0a2261a.js","assets/chunks/array.9f3ba611.js","assets/chunks/path.53f90ab3.js","assets/chunks/framework.93de11c7.js","assets/chunks/theme.2c1c16b7.js"]);return{id:Ml,diagram:t}},ZC={id:Ml,detector:XC,loader:KC},JC=ZC,Il="journey",QC=t=>/^\s*journey/.test(t),tb=async()=>{const{diagram:t}=await J(()=>import("./chunks/journeyDiagram-4f4351b8.2f054291.js"),["assets/chunks/journeyDiagram-4f4351b8.2f054291.js","assets/chunks/svgDrawCommon-f26cad39.26e3d61c.js","assets/chunks/arc.1206bf36.js","assets/chunks/path.53f90ab3.js","assets/chunks/framework.93de11c7.js","assets/chunks/theme.2c1c16b7.js"]);return{id:Il,diagram:t}},eb={id:Il,detector:QC,loader:tb},ib=eb,rb=()=>"",nb=rb,ob=function(){},sb=(t,e,i)=>{try{S.debug(`Renering svg for syntax error `);const r=It("#"+e),n=r.append("g");n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+i),r.attr("height",100),r.attr("width",500),r.attr("viewBox","768 0 912 512")}catch(r){S.error("Error while rendering info diagram"),S.error(Yy(r))}},$l={setConf:ob,draw:sb},ab={db:{clear:()=>{}},styles:nb,renderer:$l,parser:{parser:{yy:{}},parse:()=>{}},init:()=>{}},lb=ab,Dl="flowchart-elk",hb=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},cb=async()=>{const{diagram:t}=await J(()=>import("./chunks/flowchart-elk-definition-ec654d50.568b9166.js"),["assets/chunks/flowchart-elk-definition-ec654d50.568b9166.js","assets/chunks/flowDb-9e6c6aac.fb3d7fdb.js","assets/chunks/edges-66ea8538.8cb48f03.js","assets/chunks/createText-a49d2d2a.3c382313.js","assets/chunks/svgDraw-95adee0a.135c7e72.js","assets/chunks/line.c0a2261a.js","assets/chunks/array.9f3ba611.js","assets/chunks/path.53f90ab3.js","assets/chunks/framework.93de11c7.js","assets/chunks/theme.2c1c16b7.js"]);return{id:Dl,diagram:t}},ub={id:Dl,detector:hb,loader:cb},fb=ub,Nl="timeline",db=t=>/^\s*timeline/.test(t),pb=async()=>{const{diagram:t}=await J(()=>import("./chunks/timeline-definition-46a17596.aa2e1e06.js"),["assets/chunks/timeline-definition-46a17596.aa2e1e06.js","assets/chunks/arc.1206bf36.js","assets/chunks/path.53f90ab3.js","assets/chunks/framework.93de11c7.js","assets/chunks/theme.2c1c16b7.js"]);return{id:Nl,diagram:t}},gb={id:Nl,detector:db,loader:pb},mb=gb,Rl="mindmap",_b=t=>/^\s*mindmap/.test(t),yb=async()=>{const{diagram:t}=await J(()=>import("./chunks/mindmap-definition-89ece3a3.793144f6.js"),["assets/chunks/mindmap-definition-89ece3a3.793144f6.js","assets/chunks/createText-a49d2d2a.3c382313.js","assets/chunks/framework.93de11c7.js","assets/chunks/theme.2c1c16b7.js"]);return{id:Rl,diagram:t}},Cb={id:Rl,detector:_b,loader:yb},bb=Cb;let xs=!1;const Zn=()=>{xs||(xs=!0,lr("error",lb,t=>t.toLowerCase().trim()==="error"),lr("---",{db:{clear:()=>{}},styles:{},renderer:{},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("---")),gl(Zy,jC,qC,hC,_C,bC,kC,OC,DC,fb,oC,eC,bb,mb,dC,JC,GC,ib,FC))},xb=t=>t.trimStart().replace(/^\s*%%(?!{)[^\n]+\n?/gm,"");class Pl{constructor(e){var i,r;this.text=e,this.type="graph",this.text+=` `;const n=Gt();try{this.type=Fr(e,n)}catch(a){this.type="error",this.detectError=a}const o=Gn(this.type);S.debug("Type "+this.type),this.db=o.db,(r=(i=this.db).clear)==null||r.call(i),this.renderer=o.renderer,this.parser=o.parser;const s=this.parser.parse.bind(this.parser);this.parser.parse=a=>s(xb(Z_(a,this.db))),this.parser.parser.yy=this.db,o.init&&(o.init(n),S.info("Initialized diagram "+this.type,n)),this.parse()}parse(){var e,i;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const Jn=async t=>{const e=Fr(t,Gt());try{Gn(e)}catch{const r=Ty(e);if(!r)throw new pl(`Diagram ${e} not found.`);const{id:n,diagram:o}=await r();lr(n,o)}return new Pl(t)};let xn=[];const X1=t=>{xn.push(t)},Tb=()=>{xn.forEach(t=>{t()}),xn=[]},vb="graphics-document document";function kb(t,e){t.attr("role",vb),zi(e)||t.attr("aria-roledescription",e)}function Sb(t,e,i,r){if(t.insert!==void 0)if(e||i){if(i){const n="chart-desc-"+r;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(i)}if(e){const n="chart-title-"+r;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}else return}const ql=["graph","flowchart","flowchart-v2","flowchart-elk","stateDiagram","stateDiagram-v2"],wb=5e4,Bb="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Fb="sandbox",Lb="loose",Ab="http://www.w3.org/2000/svg",Eb="http://www.w3.org/1999/xlink",Ob="http://www.w3.org/1999/xhtml",Mb="100%",Ib="100%",$b="border:0;margin:0;",Db="margin:0",Nb="allow-top-navigation-by-user-activation allow-popups",Rb='The "iframe" tag is not supported by your browser.',Pb=["foreignobject"],qb=["dominant-baseline"];async function zb(t,e){Zn();try{(await Jn(t)).parse()}catch(i){if(e!=null&&e.suppressErrors)return!1;throw i}return!0}const Wb=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},Hb=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},Ts=(t,e,i=[])=>` .${t} ${e} { ${i.join(" !important; ")} !important; }`,jb=(t,e,i={})=>{var r;let n="";if(t.themeCSS!==void 0&&(n+=` ${t.themeCSS}`),t.fontFamily!==void 0&&(n+=` :root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(n+=` :root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!zi(i)&&ql.includes(e)){const l=t.htmlLabels||((r=t.flowchart)==null?void 0:r.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const h in i){const c=i[h];zi(c.styles)||l.forEach(u=>{n+=Ts(c.id,u,c.styles)}),zi(c.textStyles)||(n+=Ts(c.id,"tspan",c.textStyles))}}return n},Ub=(t,e,i,r)=>{const n=jb(t,e,i),o=hy(e,n,t.themeVariables);return pn(wg(`${r}{${o}}`),Fg)},Yb=(t="",e,i)=>{let r=t;return!i&&!e&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=Hb(r),r=r.replace(/
/g,"
"),r},Vb=(t="",e)=>{const i=e?e.viewBox.baseVal.height+"px":Ib,r=btoa(''+t+"");return``},vs=(t,e,i,r,n)=>{const o=t.append("div");o.attr("id",i),r&&o.attr("style",r);const s=o.append("svg").attr("id",e).attr("width","100%").attr("xmlns",Ab);return n&&s.attr("xmlns:xlink",n),s.append("g"),t};function ks(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const Gb=(t,e,i,r)=>{var n,o,s;(n=t.getElementById(e))==null||n.remove(),(o=t.getElementById(i))==null||o.remove(),(s=t.getElementById(r))==null||s.remove()},Xb=async function(t,e,i){var r,n,o,s;Zn(),sr();const a=ji.detectInit(e);a&&(De(a),il(a));const l=Gt();S.debug(l),e.length>((l==null?void 0:l.maxTextSize)??wb)&&(e=Bb),e=e.replace(/\r\n?/g,` `),e=e.replace(/<(\w+)([^>]*)>/g,(y,$,w)=>"<"+$+w.replace(/="([^"]*)"/g,"='$1'")+">");const h="#"+t,c="i"+t,u="#"+c,g="d"+t,p="#"+g;let m=It("body");const k=l.securityLevel===Fb,O=l.securityLevel===Lb,z=l.fontFamily;if(i!==void 0){if(i&&(i.innerHTML=""),k){const y=ks(It(i),c);m=It(y.nodes()[0].contentDocument.body),m.node().style.margin=0}else m=It(i);vs(m,t,g,`font-family: ${z}`,Eb)}else{if(Gb(document,t,g,c),k){const y=ks(It("body"),c);m=It(y.nodes()[0].contentDocument.body),m.node().style.margin=0}else m=It("body");vs(m,t,g)}e=Wb(e);let b,P;try{b=await Jn(e)}catch(y){b=new Pl("error"),P=y}const X=m.select(p).node(),U=b.type,V=X.firstChild,W=V.firstChild,Xt=ql.includes(U)?b.renderer.getClasses(e,b):{},K=Ub(l,U,Xt,h),D=document.createElement("style");D.innerHTML=K,V.insertBefore(D,W);try{await b.renderer.draw(e,t,bs,b)}catch(y){throw $l.draw(e,t,bs),y}const Lt=m.select(`${p} svg`),Kt=(n=(r=b.db).getAccTitle)==null?void 0:n.call(r),M=(s=(o=b.db).getAccDescription)==null?void 0:s.call(o);Zb(U,Lt,Kt,M),m.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",Ob);let x=m.select(p).node().innerHTML;if(S.debug("config.arrowMarkerAbsolute",l.arrowMarkerAbsolute),x=Yb(x,k,Na(l.arrowMarkerAbsolute)),k){const y=m.select(p+" svg").node();x=Vb(x,y)}else O||(x=tr.sanitize(x,{ADD_TAGS:Pb,ADD_ATTR:qb}));if(Tb(),P)throw P;const B=It(k?u:p).node();return B&&"remove"in B&&B.remove(),{svg:x,bindFunctions:b.db.bindFunctions}};function Kb(t={}){var e;t!=null&&t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),Q_(t),t!=null&&t.theme&&t.theme in Yt?t.themeVariables=Yt[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Yt.default.getThemeVariables(t.themeVariables));const i=typeof t=="object"?J_(t):tl();qn(i.logLevel),Zn()}function Zb(t,e,i,r){kb(e,t),Sb(e,i,r,e.attr("id"))}const ge=Object.freeze({render:Xb,parse:zb,parseDirective:fl,getDiagramFromText:Jn,initialize:Kb,getConfig:Gt,setConfig:ey,getSiteConfig:tl,updateSiteConfig:ty,reset:()=>{sr()},globalReset:()=>{sr(ai)},defaultConfig:ai});qn(Gt().logLevel);sr(Gt());const Jb=(t,e,i)=>{S.warn(t),yl(t)?(i&&i(t.str,t.hash),e.push({...t,message:t.str,error:t})):(i&&i(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},zl=async function(t={querySelector:".mermaid"}){try{await Qb(t)}catch(e){if(yl(e)&&S.error(e.str),gt.parseError&>.parseError(e),!t.suppressErrors)throw S.error("Use the suppressErrors option to suppress these errors"),e}},Qb=async function({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=ge.getConfig();S.debug(`${t?"":"No "}Callback function found`);let n;if(i)n=i;else if(e)n=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");S.debug(`Found ${n.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(S.debug("Start On Load: "+(r==null?void 0:r.startOnLoad)),ge.updateSiteConfig({startOnLoad:r==null?void 0:r.startOnLoad}));const o=new ji.initIdGenerator(r.deterministicIds,r.deterministicIDSeed);let s;const a=[];for(const l of Array.from(n)){S.info("Rendering diagram: "+l.id);/*! Check if previously processed */if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const h=`mermaid-${o.next()}`;s=l.innerHTML,s=Th(ji.entityDecode(s)).trim().replace(//gi,"
");const c=ji.detectInit(s);c&&S.debug("Detected early reinit: ",c);try{const{svg:u,bindFunctions:g}=await Ul(h,s,l);l.innerHTML=u,t&&await t(h),g&&g(l)}catch(u){Jb(u,a,gt.parseError)}}if(a.length>0)throw a[0]},Wl=function(t){ge.initialize(t)},t1=async function(t,e,i){S.warn("mermaid.init is deprecated. Please use run instead."),t&&Wl(t);const r={postRenderCallback:i,querySelector:".mermaid"};typeof e=="string"?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await zl(r)},e1=async(t,{lazyLoad:e=!0}={})=>{gl(...t),e===!1&&await xy()},Hl=function(){if(gt.startOnLoad){const{startOnLoad:t}=ge.getConfig();t&>.run().catch(e=>S.error("Mermaid failed to initialize",e))}};if(typeof document<"u"){/*! * Wait for document loaded before starting the execution */window.addEventListener("load",Hl,!1)}const i1=function(t){gt.parseError=t},ur=[];let Qr=!1;const jl=async()=>{if(!Qr){for(Qr=!0;ur.length>0;){const t=ur.shift();if(t)try{await t()}catch(e){S.error("Error executing queue",e)}}Qr=!1}},r1=async(t,e)=>new Promise((i,r)=>{const n=()=>new Promise((o,s)=>{ge.parse(t,e).then(a=>{o(a),i(a)},a=>{var l;S.error("Error parsing",a),(l=gt.parseError)==null||l.call(gt,a),s(a),r(a)})});ur.push(n),jl().catch(r)}),Ul=(t,e,i)=>new Promise((r,n)=>{const o=()=>new Promise((s,a)=>{ge.render(t,e,i).then(l=>{s(l),r(l)},l=>{var h;S.error("Error parsing",l),(h=gt.parseError)==null||h.call(gt,l),a(l),n(l)})});ur.push(o),jl().catch(n)}),gt={startOnLoad:!0,mermaidAPI:ge,parse:r1,render:Ul,init:t1,run:zl,registerExternalDiagrams:e1,initialize:Wl,parseError:void 0,contentLoaded:Hl,setParseErrorHandler:i1,detectType:Fr},n1=async t=>{try{gt.registerExternalDiagrams&&await gt.registerExternalDiagrams(t)}catch(e){console.error(e)}},o1=async(t,e,i)=>{gt.initialize(i);const{svg:r}=await gt.render(t,e);return r},s1=["innerHTML"],a1={__name:"Mermaid",props:{graph:{type:String,required:!0},id:{type:String,required:!0}},setup(t){const e=t,i=tn({securityLevel:"loose",startOnLoad:!1,externalDiagrams:[]}),{page:r}=Tn(),{frontmatter:n}=ih(r.value),o=n.mermaidTheme||"",s=tn(null);let a=null;vn(async()=>{var u;await n1(i.value.externalDiagrams);let h=await J(()=>import("./chunks/virtual_mermaid-config.ade1a5ba.js"),[]);h!=null&&h.default&&(i.value=h.default),a=new MutationObserver(async()=>await l()),a.observe(document.documentElement,{attributes:!0}),await l(),((u=//.exec(decodeURIComponent(e.graph)))==null?void 0:u.length)>0&&setTimeout(()=>{let g=document.getElementsByTagName("img"),p=Array.from(g);p.length&&Promise.all(p.filter(m=>!m.complete).map(m=>new Promise(k=>{m.onload=m.onerror=k}))).then(async()=>{await l()})},100)}),rh(()=>a.disconnect());const l=async()=>{const h=document.documentElement.classList.contains("dark");let c={...i.value};o&&(c.theme=o),h&&(c.theme="dark");let u=await o1(e.id,decodeURIComponent(e.graph),c);const g=Math.random().toString(36).substring(7);s.value=`${u} ${g}`};return(h,c)=>(Fi(),Li("div",{innerHTML:s.value,class:"mermaid"},null,8,s1))}};const ye=t=>(oh("data-v-030693ef"),t=t(),sh(),t),l1=["dir"],h1=ye(()=>St("p",{class:"code"},"404",-1)),c1=ye(()=>St("h1",{class:"title"},"PAGE NOT FOUND",-1)),u1=ye(()=>St("div",{class:"divider"},null,-1)),f1=ye(()=>St("blockquote",{class:"quote"}," But if you don't change your direction, and if you keep looking, you may end up where you are heading. ",-1)),d1={class:"action"},p1=["href"],g1=ye(()=>St("h1",{class:"title"},"הדף לא נמצא",-1)),m1=ye(()=>St("div",{class:"divider"},null,-1)),_1=ye(()=>St("blockquote",{class:"quote"}," את הדף הזה לא מצאנו, אבל אם תמשיכו לחפש עוד תמצאו את הדף שלכם.. ",-1)),y1={class:"action"},C1=["href"],b1=Ss({__name:"P404",setup(t){const e=Tn(),{localeLinks:i}=xh({removeCurrent:!1}),r=tn("/"),n=nh(()=>e.lang.value==="/");return vn(()=>{var s;const o=window.location.pathname.replace(e.site.value.base,"").replace(/(^.*?\/).*$/,"/$1");i.value.length&&(r.value=((s=i.value.find(({link:a})=>a.startsWith(o)))==null?void 0:s.link)||i.value[0].link)}),(o,s)=>(Fi(),Li("div",{class:"NotFound",dir:n.value?"ltr":"rtl"},[h1,n.value?(Fi(),Li(mo,{key:0},[c1,u1,f1,St("div",d1,[St("a",{class:"link",href:_o(yo)(r.value),"aria-label":"go to home"},"Take me home",8,p1)])],64)):(Fi(),Li(mo,{key:1},[g1,m1,_1,St("div",y1,[St("a",{class:"link",href:_o(yo)(r.value),"aria-label":"go to home"},"מעבר לעמוד הבית ",8,C1)])],64))],8,l1))}});const x1=ws(b1,[["__scopeId","data-v-030693ef"]]),T1={};function v1(t,e){return null}const k1=ws(T1,[["render",v1]]),S1={...Co,Layout:()=>Ai(Co.Layout,null,{"not-found":()=>Ai(x1),"layout-bottom":()=>Ai(k1)}),enhanceApp({app:t,router:e,siteData:i}){}};function Yl(t){if(t.extends){const e=Yl(t.extends);return{...e,...t,async enhanceApp(i){e.enhanceApp&&await e.enhanceApp(i),t.enhanceApp&&await t.enhanceApp(i)}}}return t}const Le=Yl(S1),w1=Ss({name:"VitePressApp",setup(){const{site:t}=Tn();return vn(()=>{lh(()=>{document.documentElement.lang=t.value.lang,document.documentElement.dir=t.value.dir})}),hh(),ch(),uh(),Le.setup&&Le.setup(),()=>Ai(Le.Layout)}});async function B1(){const t=L1(),e=F1();e.provide(fh,t);const i=dh(t.route);return e.provide(ph,i),e.component("Mermaid",a1),e.component("Content",gh),e.component("ClientOnly",mh),Object.defineProperties(e.config.globalProperties,{$frontmatter:{get(){return i.frontmatter.value}},$params:{get(){return i.page.value.params}}}),Le.enhanceApp&&await Le.enhanceApp({app:e,router:t,siteData:_h}),{app:e,router:t,data:i}}function F1(){return yh(w1)}function L1(){let t=en,e;return Ch(i=>{let r=bh(i);return r?(t&&(e=r),(t||e===r)&&(r=r.replace(/\.js$/,".lean.js")),en&&(t=!1),J(()=>import(r),[])):null},Le.NotFound)}en&&B1().then(({app:t,router:e,data:i})=>{e.go().then(()=>{ah(e.route,i.site),t.mount("#app")})});export{Mu as $,ul as A,ol as B,Nt as C,td as D,Xm as E,dl as F,my as G,Ry as H,Bn as I,Ws as J,hi as K,wu as L,Us as M,M1 as N,vh as O,kh as P,wh as Q,dt as R,z1 as S,Kn as T,e0 as U,a0 as V,Fn as W,Qt as X,ti as Y,Ao as Z,I as _,hl as a,X1 as a0,vy as a1,yt as a2,zs as a3,Hh as a4,Dy as a5,Pn as a6,ui as a7,er as a8,Qg as a9,P1 as aA,No as aB,Do as aC,q1 as aD,R1 as aE,I1 as aF,$1 as aG,H1 as aH,W1 as aI,N1 as aJ,uy as aK,fl as aL,ci as aM,L as aN,E as aO,va as aa,Ne as ab,Zp as ac,em as ad,Zg as ae,sm as af,Dm as ag,$g as ah,Aa as ai,fi as aj,Ag as ak,Re as al,ir as am,_e as an,ne as ao,Yg as ap,ls as aq,Om as ar,Oa as as,_n as at,zi as au,ai as av,Hb as aw,Th as ax,On as ay,D1 as az,ll as b,Gt as c,B1 as createApp,oi as d,st as e,cr as f,al as g,It as h,oy as i,zn as j,Hy as k,S as l,ge as m,Fs as n,Zf as o,$y as p,Na as q,Fy as r,sl as s,sy as t,ey as u,ka as v,zy as w,ji as x,Xe as y,cl as z};