PageSourceSearch

https://www.yolo.blue/assets/js/1134.59ac5096.js

js yolo.blue collected 2026-09-24 10:42:56 UTC 720,901 bytes, 256 lines download raw bytes

1(self.webpackChunkyolo=self.webpackChunkyolo||[]).push([["1134"],{69119(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|&colon;)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[".","/"],e.BLANK_URL="about:blank"},16750(t,e,r){"use strict";e.sanitizeUrl=function(t){if(!t)return i.BLANK_URL;var e,r=o(t.trim());do e=(r=o(r=r.replace(i.ctrlCharactersRegex,"").replace(i.htmlEntitiesRegex,function(t,e){return String.fromCharCode(e)}).replace(i.htmlCtrlEntityRegex,"").replace(i.ctrlCharactersRegex,"").replace(i.whitespaceEscapeCharsRegex,"").trim())).match(i.ctrlCharactersRegex)||r.match(i.htmlEntitiesRegex)||r.match(i.htmlCtrlEntityRegex)||r.match(i.whitespaceEscapeCharsRegex);while(e&&e.length>0)var a=r;if(!a)return i.BLANK_URL;if(i.relativeFirstCharacters.indexOf(a[0])>-1)return a;var n=a.trimStart(),s=n.match(i.urlSchemeRegex);if(!s)return a;var l=s[0].toLowerCase().trim();if(i.invalidProtocolRegex.test(l))return i.BLANK_URL;var h=n.replace(/\\/g,"/");if("mailto:"===l||l.includes("://"))return h;if("http:"===l||"https:"===l){if(!URL.canParse(h))return i.BLANK_URL;var c=new URL(h);return c.protocol=c.protocol.toLowerCase(),c.hostname=c.hostname.toLowerCase(),c.toString()}return h};var i=r(69119);function o(t){try{return decodeURIComponent(t)}catch(e){return t}}},74353(t){t.exports=function(){"use strict";var t="millisecond",e="second",r="minute",i="hour",o="week",a="month",n="quarter",s="year",l="date",h="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,u=function(t,e,r){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(r)+t},p="en",g={};g[p]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}};var f="$isDayjsObject",y=function(t){return t instanceof b||!(!t||!t[f])},m=function t(e,r,i){var o;if(!e)return p;if("string"==typeof e){var a=e.toLowerCase();g[a]&&(o=a),r&&(g[a]=r,o=a);var n=e.split("-");if(!o&&n.length>1)return t(n[0])}else{var s=e.name;g[s]=e,o=s}return!i&&o&&(p=o),o||!i&&p},x=function(t,e){if(y(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new b(r)},C={s:u,z:function(t){var e=-t.utcOffset(),r=Math.abs(e);return(e<=0?"+":"-")+u(Math.floor(r/60),2,"0")+":"+u(r%60,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var i=12*(r.year()-e.year())+(r.month()-e.month()),o=e.clone().add(i,a),n=r-o<0,s=e.clone().add(i+(n?-1:1),a);return+(-(i+(r-o)/(n?o-s:s-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(h){return({M:a,y:s,w:o,d:"day",D:l,h:i,m:r,s:e,ms:t,Q:n})[h]||String(h||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};C.l=m,C.i=y,C.w=function(t,e){return x(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var b=function(){function u(t){this.$L=m(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[f]=!0}var p=u.prototype;return p.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(C.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(c);if(i){var o=i[2]-1||0,a=(i[7]||"0").substring(0,3);return r?new Date(Date.UTC(i[1],o,i[3]||1,i[4]||0,i[5]||0,i[6]||0,a)):new Date(i[1],o,i[3]||1,i[4]||0,i[5]||0,i[6]||0,a)}}return new Date(e)}(t),this.init()},p.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()},p.$utils=function(){return C},p.isValid=function(){return this.$d.toString()!==h},p.isSame=function(t,e){var r=x(t);return this.startOf(e)<=r&&r<=this.endOf(e)},p.isAfter=function(t,e){return x(t)<this.startOf(e)},p.isBefore=function(t,e){return this.endOf(e)<x(t)},p.$g=function(t,e,r){return C.u(t)?this[e]:this.set(r,t)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(t,n){var h=this,c=!!C.u(n)||n,d=C.p(t),u=function(t,e){var r=C.w(h.$u?Date.UTC(h.$y,e,t):new Date(h.$y,e,t),h);return c?r:r.endOf("day")},p=function(t,e){return C.w(h.toDate()[t].apply(h.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),h)},g=this.$W,f=this.$M,y=this.$D,m="set"+(this.$u?"UTC":"");switch(d){case s:return c?u(1,0):u(31,11);case a:return c?u(1,f):u(0,f+1);case o:var x=this.$locale().weekStart||0,b=(g<x?g+7:g)-x;return u(c?y-b:y+(6-b),f);case"day":case l:return p(m+"Hours",0);case i:return p(m+"Minutes",1);case r:return p(m+"Seconds",2);case e:return p(m+"Milliseconds",3);default:return this.clone()}},p.endOf=function(t){return this.startOf(t,!1)},p.$set=function(o,n){var h,c=C.p(o),d="set"+(this.$u?"UTC":""),u=((h={}).day=d+"Date",h[l]=d+"Date",h[a]=d+"Month",h[s]=d+"FullYear",h[i]=d+"Hours",h[r]=d+"Minutes",h[e]=d+"Seconds",h[t]=d+"Milliseconds",h)[c],p="day"===c?this.$D+(n-this.$W):n;if(c===a||c===s){var g=this.clone().set(l,1);g.$d[u](p),g.init(),this.$d=g.set(l,Math.min(this.$D,g.daysInMonth())).$d}else u&&this.$d[u](p);return this.init(),this},p.set=function(t,e){return this.clone().$set(t,e)},p.get=function(t){return this[C.p(t)]()},p.add=function(t,n){var l,h=this;t=Number(t);var c=C.p(n),d=function(e){var r=x(h);return C.w(r.date(r.date()+Math.round(e*t)),h)};if(c===a)return this.set(a,this.$M+t);if(c===s)return this.set(s,this.$y+t);if("day"===c)return d(1);if(c===o)return d(7);var u=((l={})[r]=6e4,l[i]=36e5,l[e]=1e3,l)[c]||1,p=this.$d.getTime()+t*u;return C.w(p,this)},p.subtract=function(t,e){return this.add(-1*t,e)},p.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||h;var i=t||"YYYY-MM-DDTHH:mm:ssZ",o=C.z(this),a=this.$H,n=this.$m,s=this.$M,l=r.weekdays,c=r.months,u=r.meridiem,p=function(t,r,o,a){return t&&(t[r]||t(e,i))||o[r].slice(0,a)},g=function(t){return C.s(a%12||12,t,"0")},f=u||function(t,e,r){var i=t<12?"AM":"PM";return r?i.toLowerCase():i};return i.replace(d,function(t,i){return i||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return C.s(e.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return p(r.monthsShort,s,c,3);case"MMMM":return p(c,s);case"D":return e.$D;case"DD":return C.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return p(r.weekdaysMin,e.$W,l,2);case"ddd":return p(r.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(a);case"HH":return C.s(a,2,"0");case"h":return g(1);case"hh":return g(2);case"a":return f(a,n,!0);case"A":return f(a,n,!1);case"m":return String(n);case"mm":return C.s(n,2,"0");case"s":return String(e.$s);case"ss":return C.s(e.$s,2,"0");case"SSS":return C.s(e.$ms,3,"0");case"Z":return o}return null}(t)||o.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(t,l,h){var c,d=this,u=C.p(l),p=x(t),g=(p.utcOffset()-this.utcOffset())*6e4,f=this-p,y=function(){return C.m(d,p)};switch(u){case s:c=y()/12;break;case a:c=y();break;case n:c=y()/3;break;case o:c=(f-g)/6048e5;break;case"day":c=(f-g)/864e5;break;case i:c=f/36e5;break;case r:c=f/6e4;break;case e:c=f/1e3;break;default:c=f}return h?c:C.a(c)},p.daysInMonth=function(){return this.endOf(a).$D},p.$locale=function(){return g[this.$L]},p.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),i=m(t,e,!0);return i&&(r.$L=i),r},p.clone=function(){return C.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},u}(),k=b.prototype;return x.prototype=k,[["$ms",t],["$s",e],["$m",r],["$H",i],["$W","day"],["$M",a],["$y",s],["$D",l]].forEac
1h(function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),x.extend=function(t,e){return t.$i||(t(e,b,x),t.$i=!0),x},x.locale=m,x.isDayjs=y,x.unix=function(t){return x(1e3*t)},x.en=g[p],x.Ls=g,x.p={},x}()},50048(t){var e={initialize:function(){this._tasks=new Map},mutate:function(t,e){return r(this,"mutate",t,e)},measure:function(t,e){return r(this,"measure",t,e)},clear:function(t){var e=this._tasks,r=e.get(t);this.fastdom.clear(r),e.delete(t)}};function r(t,e,r,i){var o,a=t._tasks,n=t.fastdom,s=new Promise(function(t,l){o=n[e](function(){a.delete(s);try{t(i?r.call(i):r())}catch(t){l(t)}},i)});return a.set(s,o),s}"f"==(typeof define)[0]?define(function(){return e}):t.exports=e},98551(t){!function(e){"use strict";var r=function(){},i=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(t){return setTimeout(t,16)};function o(){this.reads=[],this.writes=[],this.raf=i.bind(e),r("initialized",this)}function a(t){t.scheduled||(t.scheduled=!0,t.raf(n.bind(null,t)),r("flush scheduled"))}function n(t){r("flush");var e,i=t.writes,o=t.reads;try{r("flushing reads",o.length),t.runTasks(o),r("flushing writes",i.length),t.runTasks(i)}catch(t){e=t}if(t.scheduled=!1,(o.length||i.length)&&a(t),e)if(r("task errored",e.message),t.catch)t.catch(e);else throw e}function s(t,e){var r=t.indexOf(e);return!!~r&&!!t.splice(r,1)}o.prototype={constructor:o,runTasks:function(t){var e;for(r("run tasks");e=t.shift();)e()},measure:function(t,e){r("measure");var i=e?t.bind(e):t;return this.reads.push(i),a(this),i},mutate:function(t,e){r("mutate");var i=e?t.bind(e):t;return this.writes.push(i),a(this),i},clear:function(t){return r("clear",t),s(this.reads,t)||s(this.writes,t)},extend:function(t){if(r("extend",t),"object"!=typeof t)throw Error("expected object");var e=Object.create(this);return function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])}(e,t),e.fastdom=this,e.initialize&&e.initialize(),e},catch:null};var l=e.fastdom=e.fastdom||new o;"function"==typeof define?define(function(){return l}):t.exports=l}("u">typeof window?window:void 0!==this?this:globalThis)},52274(t,e,r){"use strict";function i(t,e,r){if(t&&t.length){let[i,o]=e,a=Math.PI/180*r,n=Math.cos(a),s=Math.sin(a);for(let e of t){let[t,r]=e;
1e[0]=(t-i)*n-(r-o)*s+i,e[1]=(t-i)*s+(r-o)*n+o}}}function o(t,e){var r;let o=e.hachureAngle+90,a=e.hachureGap;a<0&&(a=4*e.strokeWidth),a=Math.round(Math.max(a,.1));let n=1;return e.roughness>=1&&((null==(r=e.randomizer)?void 0:r.next())||Math.random())>.7&&(n=a),function(t,e,r,o=1){let a=Math.max(e,.1),n=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,s=[0,0];if(r)for(let t of n)i(t,s,r);let l=function(t,e,r){let i=[];for(let e of t){var o,a;let t=[...e];o=t[0],a=t[t.length-1],o[0]===a[0]&&o[1]===a[1]||t.push([t[0][0],t[0][1]]),t.length>2&&i.push(t)}let n=[];e=Math.max(e,.1);let s=[];for(let t of i)for(let e=0;e<t.length-1;e++){let r=t[e],i=t[e+1];if(r[1]!==i[1]){let t=Math.min(r[1],i[1]);s.push({ymin:t,ymax:Math.max(r[1],i[1]),x:t===r[1]?r[0]:i[0],islope:(i[0]-r[0])/(i[1]-r[1])})}}if(s.sort((t,e)=>t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax)),!s.length)return n;let l=[],h=s[0].ymin,c=0;for(;l.length||s.length;){if(s.length){let t=-1;for(let e=0;e<s.length&&!(s[e].ymin>h);e++)t=e;s.splice(0,t+1).forEach(t=>{l.push({s:h,edge:t})})}if((l=l.filter(t=>!(t.edge.ymax<=h))).sort((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x)),(1!==r||c%e==0)&&l.length>1)for(let t=0;t<l.length;t+=2){let e=t+1;if(e>=l.length)break;let r=l[t].edge,i=l[e].edge;n.push([[Math.round(r.x),h],[Math.round(i.x),h]])}h+=r,l.forEach(t=>{t.edge.x=t.edge.x+r*t.edge.islope}),c++}return n}(n,a,o);if(r){let t;for(let t of n)i(t,s,-r);t=[],l.forEach(e=>t.push(...e)),i(t,s,-r)}return l}(t,a,o,n||1)}r.d(e,{A:()=>X});class a{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){let r=o(t,e);return{type:"fillSketch",ops:this.renderLines(r,e)}}renderLines(t,e){let r=[];for(let i of t)r.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],e));return r}}function n(t){let e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class s extends a{fillPolygons(t,e){let r=e.hachureGap;r<0&&(r=4*e.strokeWidth);let i=o(t,Object.assign({},e,{hachureGap:r=Math.max(r,.1)})),a=Math.PI/180*e.hachureAngle,s=[],l=.5*r*Math.cos(a),h=.5*r*Math.sin(a);for(let[t,e]of i)n([t,e])&&s.push([[t[0]-l,t[1]+h],[...e]],[[t[0]+l,t[1]-h],[...e]]);return{type:"fillSketch",ops:this.renderLines(s,e)}}}class l extends a{fillPolygons(t,e){let r=this._fillPolygons(t,e),i=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),o=this._fillPolygons(t,i);return r.ops=r.ops.concat(o.ops),r}}class h{constructor(t){this.helper=t}fillPolygons(t,e){let r=o(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(r,e)}dotsOnLines(t,e){let r=[],i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.max(i,.1);let o=e.fillWeight;o<0&&(o=e.strokeWidth/2);let a=i/4;for(let s of t){let t=n(s),l=Math.ceil(t/i)-1,h=t-l*i,c=(s[0][0]+s[1][0])/2-i/4,d=Math.min(s[0][1],s[1][1]);for(let t=0;t<l;t++){let n=c-a+2*Math.random()*a,s=d+h+t*i-a+2*Math.random()*a,l=this.helper.ellipse(n,s,o,o,e);r.push(...l.ops)}}return{type:"fillSketch",ops:r}}}class c{constructor(t){this.helper=t}fillPolygons(t,e){let r=o(t,e);return{type:"fillSketch",ops:this.dashedLine(r,e)}}dashedLine(t,e){let r=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,i=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,o=[];return t.forEach(t=>{let a=n(t),s=Math.floor(a/(r+i)),l=(a+i-s*(r+i))/2,h=t[0],c=t[1];h[0]>c[0]&&(h=t[1],c=t[0]);let d=Math.atan((c[1]-h[1])/(c[0]-h[0]));for(let t=0;t<s;t++){let a=t*(r+i),n=a+r,s=[h[0]+a*Math.cos(d)+l*Math.cos(d),h[1]+a*Math.sin(d)+l*Math.sin(d)],c=[h[0]+n*Math.cos(d)+l*Math.cos(d),h[1]+n*Math.sin(d)+l*Math.sin(d)];o.push(...this.helper.doubleLineOps(s[0],s[1],c[0],c[1],e))}}),o}}class d{constructor(t){this.helper=t}fillPolygons(t,e){let r=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,i=e.zigzagOffset<0?r:e.zigzagOffset,a=o(t,e=Object.assign({},e,{hachureGap:r+i}));return{type:"fillSketch",ops:this.zigzagLines(a,i,e)}}zigzagLines(t,e,r){let i=[];return t.forEach(t=>{let o=Math.round(n(t)/(2*e)),a=t[0],s=t[1];a[0]>s[0]&&(a=t[1],s=t[0]);let l=Math.atan((s[1]-a[1])/(s[0]-a[0]));for(let t=0;t<o;t++){let o=2*t*e,n=2*(t+1)*e,s=Math.sqrt(2*Math.pow(e,2)),h=[a[0]+o*Math.cos(l),a[1]+o*Math.sin(l)],c=[a[0]+n*Math.cos(l),a[1]+n*Math.sin(l)],d=[h[0]+s*Math.cos(l+Math.PI/4),h[1]+s*Math.sin(l+Math.PI/4)];i.push(...this.helper.doubleLineOps(h[0],h[1],d[0],d[1],r),...this.helper.doubleLineOps(d[0],d[1],c[0],c[
11],r))}}),i}}let u={};class p{constructor(t){this.seed=t}next(){return this.seed?(0x80000000-1&(this.seed=Math.imul(48271,this.seed)))/0x80000000:Math.random()}}let g={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function f(t){let e=[],r=function(t){let e=[];for(;""!==t;)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:0,text:RegExp.$1},t=t.substr(RegExp.$1.length);else{if(!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];e[e.length]={type:1,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length)}return e[e.length]={type:2,text:""},e}(t),i="BOD",o=0,a=r[0];for(;2!==a.type;){let n=0,s=[];if("BOD"===i){if("M"!==a.text&&"m"!==a.text)return f("M0,0"+t);o++,n=g[a.text],i=a.text}else 1===a.type?n=g[i]:(o++,n=g[a.text],i=a.text);if(!(o+n<r.length))throw Error("Path data ended short");for(let t=o;t<o+n;t++){let e=r[t];if(1!==e.type)throw Error("Param not a number: "+i+","+e.text);s[s.length]=+e.text}if("number"!=typeof g[i])throw Error("Bad segment: "+i);{let t={key:i,data:s};e.push(t),o+=n,a=r[o],"M"===i&&(i="L"),"m"===i&&(i="l")}}return e}function y(t){let e=0,r=0,i=0,o=0,a=[];for(let{key:n,data:s}of t)switch(n){case"M":a.push({key:"M",data:[...s]}),[e,r]=s,[i,o]=s;break;case"m":e+=s[0],r+=s[1],a.push({key:"M",data:[e,r]}),i=e,o=r;break;case"L":a.push({key:"L",data:[...s]}),[e,r]=s;break;case"l":e+=s[0],r+=s[1],a.push({key:"L",data:[e,r]});break;case"C":a.push({key:"C",data:[...s]}),e=s[4],r=s[5];break;case"c":{let t=s.map((t,i)=>i%2?t+r:t+e);a.push({key:"C",data:t}),e=t[4],r=t[5];break}case"Q":a.push({key:"Q",data:[...s]}),e=s[2],r=s[3];break;case"q":{let t=s.map((t,i)=>i%2?t+r:t+e);a.push({key:"Q",data:t}),e=t[2],r=t[3];break}case"A":a.push({key:"A",data:[...s]}),e=s[5],r=s[6];break;case"a":e+=s[5],r+=s[6],a.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],e,r]});break;case"H":a.push({key:"H",data:[...s]}),e=s[0];break;case"h":e+=s[0],a.push({key:"H",data:[e]});break;case"V":a.push({key:"V",data:[...s]}),r=s[0];break;case"v":r+=s[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...s]}),e=s[2],r=s[3];break;case"s":{let t=s.map((t,i)=>i%2?t+r:t+e);a.push({key:"S",data:t}),e=t[2],r=t[3];break}case"T":a.push({key:"T",data:[...s]}),e=s[0],r=s[1];break;case"t":e+=s[0],r+=s[1],a.push({key:"T",data:[e,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),e=i,r=o}return a}function m(t){let e=[],r="",i=0,o=0,a=0,n=0,s=0,l=0;for(let{key:h,data:c}of t){switch(h){case"M":e.push({key:"M",data:[...c]}),[i,o]=c,[a,n]=c;break;case"C":e.push({key:"C",data:[...c]}),i=c[4],o=c[5],s=c[2],l=c[3];break;case"L":e.push({key:"L",data:[...c]}),[i,o]=c;break;case"H":i=c[0],e.push({key:"L",data:[i,o]});break;case"V":o=c[0],e.push({key:"L",data:[i,o]});break;case"S":{let t=0,a=0;"C"===r||"S"===r?(t=i+(i-s),a=o+(o-l)):(t=i,a=o),e.push({key:"C",data:[t,a,...c]}),s=c[0],l=c[1],i=c[2],o=c[3];break}case"T":{let[t,a]=c,n=0,h=0;"Q"===r||"T"===r?(n=i+(i-s),h=o+(o-l)):(n=i,h=o);let d=i+2*(n-i)/3,u=o+2*(h-o)/3,p=t+2*(n-t)/3,g=a+2*(h-a)/3;e.push({key:"C",data:[d,u,p,g,t,a]}),s=n,l=h,i=t,o=a;break}case"Q":{let[t,r,a,n]=c,h=i+2*(t-i)/3,d=o+2*(r-o)/3,u=a+2*(t-a)/3,p=n+2*(r-n)/3;e.push({key:"C",data:[h,d,u,p,a,n]}),s=t,l=r,i=a,o=n;break}case"A":{let t=Math.abs(c[0]),r=Math.abs(c[1]),a=c[2],n=c[3],s=c[4],l=c[5],h=c[6];0===t||0===r?(e.push({key:"C",data:[i,o,l,h,l,h]}),i=l,o=h):(i!==l||o!==h)&&((function t(e,r,i,o,a,n,s,l,h,c){let d=Math.PI*s/180,u=[],p=0,g=0,f=0,y=0;if(c)[p,g,f,y]=c;else{[e,r]=x(e,r,-d),[i,o]=x(i,o,-d);let t=(e-i)/2,s=(r-o)/2,c=t*t/(a*a)+s*s/(n*n);c>1&&(a*=c=Math.sqrt(c),n*=c);let u=a*a,m=n*n,C=(l===h?-1:1)*Math.sqrt(Math.abs((u*m-u*s*s-m*t*t)/(u*s*s+m*t*t)));f=C*a*s/n+(e+i)/2,y=-(C*n)*t/a+(r+o)/2,p=Math.asin(parseFloat(((r-y)/n).toFixed(9))),g=Math.asin(parseFloat(((o-y)/n).toFixed(9))),e<f&&(p=Math.PI-p),i<f&&(g=Math.PI-g),p<0&&(p=2*Math.PI+p),g<0&&(g=2*Math.PI+g),h&&p>g&&(p-=2*Math.PI),!h&&g>p&&(g-=2*Math.PI)}let m=g-p;if(Math.abs(m)>120*Math.PI/180){let e=g,r=i,l=o;u=t(i=f+a*Math.cos(g=h&&g>p?p+120*Math.PI/180*1:p+-(120*Math.PI/180*1)),o=y+n*Math.sin(g),r,l,a,n,s,0,h,[g,e,f,y])}m=g-p;let C=Math.cos(p),b=Math.cos(g),k=Math.tan(m/4),w=4/3*a*k,T=4/3*n*k,B=[e,r],v=[e+w*Math.sin(p),r-T*C],S=[i+w*Math.sin(g),o-T*b],_=[i,o];if(v[0]=2*B[0]-v[0],v[1]=2*B[1]-v[1],c)return[v,S,_].concat(u);{u=[v,S,_].concat(u);let t=[];for(let e=0;e<u.length;e+=3){let r=x(u[e][0],u[e][1],d),i=x(u[e+1][0],u[e+1][1],d),o=x(u[e+2][0],u[e+2][1],d);t.push([r[0],r[1],i[0],i[1],o[0],o[1]])}return t}}
1)(i,o,l,h,t,r,a,n,s).forEach(function(t){e.push({key:"C",data:t})}),i=l,o=h);break}case"Z":e.push({key:"Z",data:[]}),i=a,o=n}r=h}return e}function x(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}let C={randOffset:function(t,e){return $(t,e)},randOffsetWithRange:function(t,e,r){return M(t,e,r)},ellipse:function(t,e,r,i,o){let a=T(r,i,o);return B(t,e,o,a).opset},doubleLineOps:function(t,e,r,i,o){return E(t,e,r,i,o,!0)}};function b(t,e,r,i,o){return{type:"path",ops:E(t,e,r,i,o)}}function k(t,e,r){let i=(t||[]).length;if(i>2){let o=[];for(let e=0;e<i-1;e++)o.push(...E(t[e][0],t[e][1],t[e+1][0],t[e+1][1],r));return e&&o.push(...E(t[i-1][0],t[i-1][1],t[0][0],t[0][1],r)),{type:"path",ops:o}}return 2===i?b(t[0][0],t[0][1],t[1][0],t[1][1],r):{type:"path",ops:[]}}function w(t,e){if(t.length){let r="number"==typeof t[0][0]?[t]:t,i=D(r[0],+(1+.2*e.roughness),e),o=e.disableMultiStroke?[]:D(r[0],1.5*(1+.22*e.roughness),F(e));for(let t=1;t<r.length;t++){let a=r[t];if(a.length){let t=D(a,+(1+.2*e.roughness),e),r=e.disableMultiStroke?[]:D(a,1.5*(1+.22*e.roughness),F(e));for(let e of t)"move"!==e.op&&i.push(e);for(let t of r)"move"!==t.op&&o.push(t)}}return{type:"path",ops:i.concat(o)}}return{type:"path",ops:[]}}function T(t,e,r){let i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),o=2*Math.PI/Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),a=Math.abs(t/2),n=Math.abs(e/2),s=1-r.curveFitting;return a+=$(a*s,r),n+=$(n*s,r),{increment:o,rx:a,ry:n}}function B(t,e,r,i){let[o,a]=K(i.increment,t,e,i.rx,i.ry,1,i.increment*M(.1,M(.4,1,r),r),r),n=I(o,null,r);if(!r.disableMultiStroke&&0!==r.roughness){let[o]=K(i.increment,t,e,i.rx,i.ry,1.5,0,r),a=I(o,null,r);n=n.concat(a)}return{estimatedPoints:a,opset:{type:"path",ops:n}}}function v(t,e,r,i,o,a,n,s,l){let h=Math.abs(r/2),c=Math.abs(i/2);h+=$(.01*h,l),c+=$(.01*c,l);let d=o,u=a;for(;d<0;)d+=2*Math.PI,u+=2*Math.PI;u-d>2*Math.PI&&(d=0,u=2*Math.PI);let p=Math.min(2*Math.PI/l.curveStepCount/2,(u-d)/2),g=q(p,t,e,h,c,d,u,1,l);if(!l.disableMultiStroke){let r=q(p,t,e,h,c,d,u,1.5,l);g.push(...r)}return n&&(s?g.push(...E(t,e,t+h*Math.cos(d),e+c*Math.sin(d),l),...E(t,e,t+h*Math.cos(u),e+c*Math.sin(u),l)):g.push({op:"lineTo",data:[t,e]},{op:"lineTo",data:[t+h*Math.cos(d),e+c*Math.sin(d)]})),{type:"path",ops:g}}function S(t,e){let r=m(y(f(t))),i=[],o=[0,0],a=[0,0];for(let{key:t,data:n}of r)switch(t){case"M":a=[n[0],n[1]],o=[n[0],n[1]];break;case"L":i.push(...E(a[0],a[1],n[0],n[1],e)),a=[n[0],n[1]];break;case"C":{let[t,r,o,s,l,h]=n;i.push(...function(t,e,r,i,o,a,n,s){let l=[],h=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3],c=[0,0],d=s.disableMultiStroke?1:2,u=s.preserveVertices;for(let p=0;p<d;p++)0===p?l.push({op:"move",data:[n[0],n[1]]}):l.push({op:"move",data:[n[0]+(u?0:$(h[0],s)),n[1]+(u?0:$(h[0],s))]}),c=u?[o,a]:[o+$(h[p],s),a+$(h[p],s)],l.push({op:"bcurveTo",data:[t+$(h[p],s),e+$(h[p],s),r+$(h[p],s),i+$(h[p],s),c[0],c[1]]});return l}(t,r,o,s,l,h,a,e)),a=[l,h];break}case"Z":i.push(...E(a[0],a[1],o[0],o[1],e)),a=[o[0],o[1]]}return{type:"path",ops:i}}function _(t,e){let r=[];for(let i of t)if(i.length){let t=e.maxRandomnessOffset||0,o=i.length;if(o>2){r.push({op:"move",data:[i[0][0]+$(t,e),i[0][1]+$(t,e)]});for(let a=1;a<o;a++)r.push({op:"lineTo",data:[i[a][0]+$(t,e),i[a][1]+$(t,e)]})}}return{type:"fillPath",ops:r}}function A(t,e){return(function(t,e){let r=t.fillStyle||"hachure";if(!u[r])switch(r){case"zigzag":u[r]||(u[r]=new s(e));break;case"cross-hatch":u[r]||(u[r]=new l(e));break;case"dots":u[r]||(u[r]=new h(e));break;case"dashed":u[r]||(u[r]=new c(e));break;case"zigzag-line":u[r]||(u[r]=new d(e));break;default:u[r="hachure"]||(u[r]=new a(e))}return u[r]})(e,C).fillPolygons(t,e)}function F(t){let e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function L(t){return t.randomizer||(t.randomizer=new p(t.seed||0)),t.randomizer.next()}function M(t,e,r,i=1){return r.roughness*i*(L(r)*(e-t)+t)}function $(t,e,r=1){return M(-t,t,e,r)}function E(t,e,r,i,o,a=!1){let n=a?o.disableMultiStrokeFill:o.disableMultiStroke,s=O(t,e,r,i,o,!0,!1);if(n)return s;let l=O(t,e,r,i,o,!0,!0);return s.concat(l)}function O(t,e,r,i,o,a,n){let s=Math.pow(t-r,2)+Math.pow(e-i,2),l=Math.sqrt(s),h=1;h=l<200?1:l>500?.4:-.0016668*l+1.233334;let c=o.maxRandomnessOffset||0;c*c*100>s&&(c=l/10);let d=c/2,u=.2+.2*L(o),p=o.bowing*o.maxRandomnessOffset*(i-e)/200,g=o.bowing*o.maxRandomnessOffset*(t-r)/200;p=$(p,o,h),g=$(g,o,h);let f=[],y=o.preserveVertices;return a&&(n?f.push({op:"move",data:[t+(y?0:$(d,o,h)),e+(y?0:$(d,o,h))]}):f.push({op:"move",data:[t+(y?0:$(c,o,h)),e+(y?0:$(c,o,h))]})),n?f.push({op:"bcurveTo",data:[p+t+(r-t)*u+$(d,o,h),g+e+(i-e)*u+$(d,o,h),p+t+2*(r-t)*u+$(d,o,h),g+e+2*(i-e)*u+$(d,o,h),r+(y?0:$(d,o,h)),i+(y?0:$(d,o,h))]}):f.push({op:"bcurveTo",data:[p+t+(r-t)*u+$(c,o,h),g+e+(i-e)*u+$(c,o,h),p+t+2*(r-t)*u+$(c,o,h),g+e+2*(i-e)*u+$(c,o,h),r+(y?0:$(c,o,h)),i+(y?0:$(c,o,h))]}),f}function D(t,e,r){if(!t.length)return[];let i=[];i.push([t[0][0]+$(e,r),t[0][1]+$(e,r)]),i.push([t[0][0]+$(e,r),t[0][1]+$(e,r)]);for(let o=1;o<t.length;o++)i.push([t[o][0]+$(e,r),t[o][1]+$(e,r)]),o===t.length-1&&i.push([t[o][0]+$(e,r),t[o][1]+$(e,r)]);return I(i,null,r)}function I(t,e,r){let i=t.length,o=[];if(i>3){let a=[],n=1-r.curveTightness;o.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<i;e++){let r=t[e];a[0]=[r[0],r[1]],a[1]=[r[0]+(n*t[e+1][0]-n*t[e-1][0])/6,r[1]+(n*t[e+1][1]-n*t[e-1][1])/6],a[2]=[t[e+1][
10]+(n*t[e][0]-n*t[e+2][0])/6,t[e+1][1]+(n*t[e][1]-n*t[e+2][1])/6],a[3]=[t[e+1][0],t[e+1][1]],o.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}if(e&&2===e.length){let t=r.maxRandomnessOffset;o.push({op:"lineTo",data:[e[0]+$(t,r),e[1]+$(t,r)]})}}else 3===i?(o.push({op:"move",data:[t[1][0],t[1][1]]}),o.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===i&&o.push(...O(t[0][0],t[0][1],t[1][0],t[1][1],r,!0,!0));return o}function K(t,e,r,i,o,a,n,s){let l=[],h=[];if(0===s.roughness){t/=4,h.push([e+i*Math.cos(-t),r+o*Math.sin(-t)]);for(let a=0;a<=2*Math.PI;a+=t){let t=[e+i*Math.cos(a),r+o*Math.sin(a)];l.push(t),h.push(t)}h.push([e+ +i,r+0*o]),h.push([e+i*Math.cos(t),r+o*Math.sin(t)])}else{let c=$(.5,s)-Math.PI/2;h.push([$(a,s)+e+.9*i*Math.cos(c-t),$(a,s)+r+.9*o*Math.sin(c-t)]);let d=2*Math.PI+c-.01;for(let n=c;n<d;n+=t){let t=[$(a,s)+e+i*Math.cos(n),$(a,s)+r+o*Math.sin(n)];l.push(t),h.push(t)}h.push([$(a,s)+e+i*Math.cos(c+2*Math.PI+.5*n),$(a,s)+r+o*Math.sin(c+2*Math.PI+.5*n)]),h.push([$(a,s)+e+.98*i*Math.cos(c+n),$(a,s)+r+.98*o*Math.sin(c+n)]),h.push([$(a,s)+e+.9*i*Math.cos(c+.5*n),$(a,s)+r+.9*o*Math.sin(c+.5*n)])}return[h,l]}function q(t,e,r,i,o,a,n,s,l){let h=a+$(.1,l),c=[];c.push([$(s,l)+e+.9*i*Math.cos(h-t),$(s,l)+r+.9*o*Math.sin(h-t)]);for(let a=h;a<=n;a+=t)c.push([$(s,l)+e+i*Math.cos(a),$(s,l)+r+o*Math.sin(a)]);return c.push([e+i*Math.cos(n),r+o*Math.sin(n)]),c.push([e+i*Math.cos(n),r+o*Math.sin(n)]),I(c,null,l)}function R(t,e=0){let r=t.length;if(r<3)throw Error("A curve must have at least three points.");let i=[];if(3===r)i.push([...t[0]],[...t[1]],[...t[2]],[...t[2]]);else{let r=[];r.push(t[0],t[0]);for(let e=1;e<t.length;e++)r.push(t[e]),e===t.length-1&&r.push(t[e]);let o=[],a=1-e;i.push([...r[0]]);for(let t=1;t+2<r.length;t++){let e=r[t];o[0]=[e[0],e[1]],o[1]=[e[0]+(a*r[t+1][0]-a*r[t-1][0])/6,e[1]+(a*r[t+1][1]-a*r[t-1][1])/6],o[2]=[r[t+1][0]+(a*r[t][0]-a*r[t+2][0])/6,r[t+1][1]+(a*r[t][1]-a*r[t+2][1])/6],o[3]=[r[t+1][0],r[t+1][1]],i.push(o[1],o[2],o[3])}}return i}function P(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function z(t,e,r){return[t[0]+(e[0]-t[0])*r,t[1]+(e[1]-t[1])*r]}function N(t,e,r,i,o){let a=o||[],n=t[e],s=t[r-1],l=0,h=1;for(let i=e+1;i<r-1;++i){let e=function(t,e,r){let i=P(e,r);if(0===i)return P(t,e);let o=((t[0]-e[0])*(r[0]-e[0])+(t[1]-e[1])*(r[1]-e[1]))/i;return P(t,z(e,r,o=Math.max(0,Math.min(1,o))))}(t[i],n,s);e>l&&(l=e,h=i)}return Math.sqrt(l)>i?(N(t,e,h+1,i,a),N(t,h,r,i,a)):(a.length||a.push(n),a.push(s)),a}function j(t,e=.15,r){let i=[],o=(t.length-1)/3;for(let r=0;r<o;r++)!function t(e,r,i,o){let a,n,s,l,h,c,d,u,p=o||[];if(a=e[r+0],n=e[r+1],s=e[r+2],l=e[r+3],h=3*n[0]-2*a[0]-l[0],h*=h,c=3*n[1]-2*a[1]-l[1],c*=c,d=3*s[0]-2*l[0]-a[0],d*=d,u=3*s[1]-2*l[1]-a[1],u*=u,h<d&&(h=d),c<u&&(c=u),h+c<i){let t=e[r+0];p.length?Math.sqrt(P(p[p.length-1],t))>1&&p.push(t):p.push(t),p.push(e[r+3])}else{let o=e[r+0],a=e[r+1],n=e[r+2],s=e[r+3],l=z(o,a,.5),h=z(a,n,.5),c=z(n,s,.5),d=z(l,h,.5),u=z(h,c,.5),g=z(d,u,.5);t([o,l,d,g],0,i,p),t([g,u,c,s],0,i,p)}return p}(t,3*r,e,i);return r&&r>0?N(i,0,i.length,r):i}let W="none";class U{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(0x80000000*Math.random())}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,r){return{shape:t,sets:e||[],options:r||this.defaultOptions}}line(t,e,r,i,o){let a=this._o(o);return this._d("line",[b(t,e,r,i,a)],a)}rectangle(t,e,r,i,o){var a,n,s,l;let h=this._o(o),c=[],d=k([[a=t,n=e],[a+(s=r),n],[a+s,n+(l=i)],[a,n+l]],!0,h);if(h.fill){let o=[[t,e],[t+r,e],[t+r,e+i],[t,e+i]];"solid"===h.fillStyle?c.push(_([o],h)):c.push(A([o],h))}return h.stroke!==W&&c.push(d),this._d("rectangle",c,h)}ellipse(t,e,r,i,o){let a=this._o(o),n=[],s=T(r,i,a),l=B(t,e,a,s);if(a.fill)if("solid"===a.fillStyle){let r=B(t,e,a,s).opset;r.type="fillPath",n.push(r)}else n.push(A([l.estimatedPoints],a));return a.stroke!==W&&n.push(l.opset),this._d("ellipse",n,a)}circle(t,e,r,i){let o=this.ellipse(t,e,r,r,i);return o.shape="circle",o}linearPath(t,e){let r=this._o(e);return this._d("linearPath",[k(t,!1,r)],r)}arc(t,e,r,i,o,a,n=!1,s){let l=this._o(s),h=[],c=v(t,e,r,i,o,a,n,!0,l);if(n&&l.fill)if("solid"===l.fillStyle){let n=Object.assign({},l);n.disableMultiStroke=!0;let s=v(t,e,r,i,o,a,!0,!1,n);s.type="fillPath",h.push(s)}else h.push(function(t,e,r,i,o,a,n){let s=Math.abs(r/2),l=Math.abs(i/2);s+=$(.01*s,n),l+=$(.01*l,n);let h=o,c=a;for(;h<0;)h+=2*Math.PI,c+=2*Math.PI;c-h>2*Math.PI&&(h=0,c=2*Math.PI);let d=(c-h)/n.curveStepCount,u=[];for(let r=h;r<=c;r+=d)u.push([t+s*Math.cos(r),e+l*Math.sin(r)]);return u.push([t+s*Math.cos(c),e+l*Math.sin(c)]),u.push([t,e]),A([u],n)}(t,e,r,i,o,a,l));
1return l.stroke!==W&&h.push(c),this._d("arc",h,l)}curve(t,e){let r=this._o(e),i=[],o=w(t,r);if(r.fill&&r.fill!==W)if("solid"===r.fillStyle){let e=w(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{let e=[];if(t.length)for(let i of"number"==typeof t[0][0]?[t]:t)i.length<3?e.push(...i):3===i.length?e.push(...j(R([i[0],i[0],i[1],i[2]]),10,(1+r.roughness)/2)):e.push(...j(R(i),10,(1+r.roughness)/2));e.length&&i.push(A([e],r))}return r.stroke!==W&&i.push(o),this._d("curve",i,r)}polygon(t,e){let r=this._o(e),i=[],o=k(t,!0,r);return r.fill&&("solid"===r.fillStyle?i.push(_([t],r)):i.push(A([t],r))),r.stroke!==W&&i.push(o),this._d("polygon",i,r)}path(t,e){let r=this._o(e),i=[];if(!t)return this._d("path",i,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let o=r.fill&&"transparent"!==r.fill&&r.fill!==W,a=r.stroke!==W,n=!!(r.simplification&&r.simplification<1),s=function(t,e){let r=m(y(f(t))),i=[],o=[],a=[0,0],n=[],s=()=>{n.length>=4&&o.push(...j(n,1)),n=[]},l=()=>{s(),o.length&&(i.push(o),o=[])};for(let{key:t,data:e}of r)switch(t){case"M":l(),a=[e[0],e[1]],o.push(a);break;case"L":s(),o.push([e[0],e[1]]);break;case"C":if(!n.length){let t=o.length?o[o.length-1]:a;n.push([t[0],t[1]])}n.push([e[0],e[1]]),n.push([e[2],e[3]]),n.push([e[4],e[5]]);break;case"Z":s(),o.push([a[0],a[1]])}if(l(),!e)return i;let h=[];for(let t of i){let r=N(t,0,t.length,e);r.length&&h.push(r)}return h}(t,n?4-4*(r.simplification||1):(1+r.roughness)/2),l=S(t,r);if(o)if("solid"===r.fillStyle)if(1===s.length){let e=S(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else i.push(_(s,r));else i.push(A(s,r));return a&&(n?s.forEach(t=>{i.push(k(t,!1,r))}):i.push(l)),this._d("path",i,r)}opsToPath(t,e){let r="";for(let i of t.ops){let t="number"==typeof e&&e>=0?i.data.map(t=>+t.toFixed(e)):i.data;switch(i.op){case"move":r+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":r+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":r+=`L${t[0]} ${t[1]} `}}return r.trim()}toPaths(t){let e=t.sets||[],r=t.options||this.defaultOptions,i=[];for(let t of e){let e=null;switch(t.type){case"path":e={d:this.opsToPath(t),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:W};break;case"fillPath":e={d:this.opsToPath(t),stroke:W,strokeWidth:0,fill:r.fill||W};break;case"fillSketch":e=this.fillSketch(t,r)}e&&i.push(e)}return i}fillSketch(t,e){let r=e.fillWeight;return r<0&&(r=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||W,strokeWidth:r,fill:W}}_mergedShape(t){return t.filter((t,e)=>0===e||"move"!==t.op)}}class H{constructor(t,e){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new U(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),i=this.ctx,o=t.options.fixedDecimalPlaceDigits;for(let a of e)switch(a.type){case"path":i.save(),i.strokeStyle="none"===r.stroke?"transparent":r.stroke,i.lineWidth=r.strokeWidth,r.strokeLineDash&&i.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(i.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(i,a,o),i.restore();break;case"fillPath":{i.save(),i.fillStyle=r.fill||"";let e="curve"===t.shape||"polygon"===t.shape||"path"===t.shape?"evenodd":"nonzero";this._drawToContext(i,a,o,e),i.restore();break}case"fillSketch":this.fillSketch(i,a,r)}}fillSketch(t,e,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2),t.save(),r.fillLineDash&&t.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(t.lineDashOffset=r.fillLineDashOffset),t.strokeStyle=r.fill||"",t.lineWidth=i,this._drawToContext(t,e,r.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,e,r,i="nonzero"){for(let i of(t.beginPath(),e.ops)){let e="number"==typeof r&&r>=0?i.data.map(t=>+t.toFixed(r)):i.data;switch(i.op){case"move":t.moveTo(e[0],e[1]);break;case"bcurveTo":t.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);break;case"lineTo":t.lineTo(e[0],e[1])}}"fillPath"===e.type?t.fill(i):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,e,r,i,o){let a=this.gen.line(t,e,r,i,o);return this.draw(a),a}rectangle(t,e,r,i,o){let a=this.gen.rectangle(t,e,r,i,o);return this.draw(a),a}ellipse(t,e,r,i,o){let a=this.gen.ellipse(t,e,r,i,o);return this.draw(a),a}circle(t,e,r,i){let o=this.gen.circle(t,e,r,i);return this.draw(o),o}linearPath(t,e){let r=this.gen.linearPath(t,e);return this.draw(r),r}polygon(t,e){let r=this.gen.polygon(t,e);return this.draw(r),r}arc(t,e,r,i,o,a,n=!1,s){let l=this.gen.arc(t,e,r,i,o,a,n,s);return this.draw(l),l}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r),r}path(t,e){let r=this.gen.path(t,e);return this.draw(r),r}}let Y="http://www.w3.org/2000/svg";class G{constructor(t,e){this.svg=t,this.gen=new U(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,o=i.createElementNS(Y,"g"),a=t.options.fixedDecimalPlaceDigits;for(let n of e){let e=null;switch(n.type){case"path":(e=i.createElementNS(Y,"path")).setAttribute("d",this.opsToPath(n,a)),e.setAttribute("stroke",r.stroke),e.setAttribute("stroke-width",r.strokeWidth+""),e.setAttribute("fill","none"),r.strokeLineDash&&e.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":(e=i.createElementNS(Y,"path")).setAttribute("d",this.opsToPath(n,a)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",r.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(i,n,r)}e&&o.appendChild(e)}return o}fillSketch(t,e,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2);let o=t.createElementNS(Y,"path");return o.setAttribute("d",this.opsToPath(e,r.fixedDecimalPlaceDigits)),o.setAttribute("stroke",r.fill||""),o.setAttribute("stroke-width",i+""),o.setAttribute("fill","none"),r.fillLineDash&&o.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,r,i,o){let a=this.gen.line(t,e,r,i,o);return this.draw(a)}rectangle(t,e,r,i,o){let a=this.gen.rectangle(t,e,r,i,o);return this.draw(a)}ellipse(t,e,r,i,o){let a=this.gen.ellipse(t,e,r,i,o);return this.draw(a)}circle(t,e,r,i){let o=this.gen.circle(t,e,r,i);return this.draw(o)}linearPath(t,e){let r=this.gen.linearPath(t,e);return this.draw(r)}polygon(t,e){let r=this.gen.polygon(t,e);return this.draw(r)}arc(t,e,r,i,o,a,n=!1,s){let l=this.gen.arc(t,e,r,i,o,a,n,s);return this.draw(l)}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r)}path(t,e){let r=this.gen.path(t,e);return this.draw(r)}}var X={canvas:(t,e)=>new H(t,e),svg:(t,e)=>new G(t,e),generator:t=>new U(t),newSeed:()=>U.newSeed()}},47829(t,e,r){"use strict";function i(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let i=-1;for(let o of t)null!=(o=e(o,++i,t))&&(r<o||void 0===r&&o>=o)&&(r=o)}return r}function o(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let i=-1;for(let o of t)null!=(o=e(o,++i,t))&&(r>o||void 0===r&&o>=o)&&(r=o)}return r}function a(t){return t}function n(t){return"translate("+t+",0)"}function s(t){return"translate(0,"+t+")"}function l(){return!this.__axis}function h(t,e){var r=[],i=null,o=null,h=6,c=6,d=3,u="u">typeof window&&window.devicePixelRatio>1?0:.5,p=1===t||4===t?-1:1,g=4===t||2===t?"x":"y",f=1===t||3===t?n:s;function y(n){var s=null==i?e.ticks?e.ticks.apply(e,r):e.domain():i,y=null==o?e.tickFormat?e.tickFormat.apply(e,r):a:o,m=Math.max(h,0)+d,x=e.range(),C=+x[0]+u,b=+x[x.length-1]+u,k=(e.bandwidth?function(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}:function(t){return e=>+t(e)})(e.copy(),u),w=n.selection?n.selection():n,T=w.selectAll(".domain").data([null]),B=w.selectAll(".tick").data(s,e).order(),v=B.exit(
1),S=B.enter().append("g").attr("class","tick"),_=B.select("line"),A=B.select("text");T=T.merge(T.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),B=B.merge(S),_=_.merge(S.append("line").attr("stroke","currentColor").attr(g+"2",p*h)),A=A.merge(S.append("text").attr("fill","currentColor").attr(g,p*m).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),n!==w&&(T=T.transition(n),B=B.transition(n),_=_.transition(n),A=A.transition(n),v=v.transition(n).attr("opacity",1e-6).attr("transform",function(t){return isFinite(t=k(t))?f(t+u):this.getAttribute("transform")}),S.attr("opacity",1e-6).attr("transform",function(t){var e=this.parentNode.__axis;return f((e&&isFinite(e=e(t))?e:k(t))+u)})),v.remove(),T.attr("d",4===t||2===t?c?"M"+p*c+","+C+"H"+u+"V"+b+"H"+p*c:"M"+u+","+C+"V"+b:c?"M"+C+","+p*c+"V"+u+"H"+b+"V"+p*c:"M"+C+","+u+"H"+b),B.attr("opacity",1).attr("transform",function(t){return f(k(t)+u)}),_.attr(g+"2",p*h),A.attr(g,p*m).text(y),w.filter(l).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),w.each(function(){this.__axis=k})}return y.scale=function(t){return arguments.length?(e=t,y):e},y.ticks=function(){return r=Array.from(arguments),y},y.tickArguments=function(t){return arguments.length?(r=null==t?[]:Array.from(t),y):r.slice()},y.tickValues=function(t){return arguments.length?(i=null==t?null:Array.from(t),y):i&&i.slice()},y.tickFormat=function(t){return arguments.length?(o=t,y):o},y.tickSize=function(t){return arguments.length?(h=c=+t,y):h},y.tickSizeInner=function(t){return arguments.length?(h=+t,y):h},y.tickSizeOuter=function(t){return arguments.length?(c=+t,y):c},y.tickPadding=function(t){return arguments.length?(d=+t,y):d},y.offset=function(t){return arguments.length?(u=+t,y):u},y}function c(t){return h(1,t)}function d(t){return h(3,t)}function u(){}function p(t){return null==t?u:function(){return this.querySelector(t)}}function g(){return[]}function f(t){return null==t?g:function(){return this.querySelectorAll(t)}}function y(t){return function(){return this.matches(t)}}function m(t){return function(e){return e.matches(t)}}r.d(e,{wXd:()=>rq,Ui6:()=>r8,Agd:()=>rP,YPH:()=>rH,UAC:()=>rN,T9B:()=>i,rGn:()=>rQ,hkb:()=>eQ,Lx9:()=>ak,Wi0:()=>ar,Mol:()=>rV,y8u:()=>al,Sk5:()=>eN,rLf:()=>o2,GuW:()=>rX,olC:()=>ac,JLW:()=>oY,m4Y:()=>function t(){var e,r=r$();return r.copy=function(){return rM(r,t())},rn.apply(r,arguments),e=r.domain,r.ticks=function(t){var r=e();return function(t,e,r){if(e*=1,t*=1,!((r*=1)>0))return[];if(t===e)return[t];let i=e<t,[o,a,n]=i?rf(e,t,r):rf(t,e,r);if(!(a>=o))return[];let s=a-o+1,l=Array(s);if(i)if(n<0)for(let t=0;t<s;++t)l[t]=-((a-t)/n);else for(let t=0;t<s;++t)l[t]=(a-t)*n;else if(n<0)for(let t=0;t<s;++t)l[t]=-((o+t)/n);else for(let t=0;t<s;++t)l[t]=(o+t)*n;return l}(r[0],r[r.length-1],null==t?10:t)},r.tickFormat=function(t,r){var i=e();return function(t,e,r,i){var o,a,n=rm(t,e,r);switch((i=eO(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e));return null!=i.precision||isNaN(a=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(e$(s)/3)))-e$(Math.abs(n))))||(i.precision=a),ts(i,s);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(a=Math.max(0,e$(Math.abs(Math.max(Math.abs(t),Math.abs(e)))-(o=Math.abs(o=n)))-e$(o))+1)||(i.precision=a-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(a=Math.max(0,-e$(Math.abs(n))))||(i.precision=a-("%"===i.type)*2)}return tn(i)}(i[0],i[i.length-1],null==t?10:t,r)},r.nice=function(t){null==t&&(t=10);var i,o,a=e(),n=0,s=a.length-1,l=a[n],h=a[s],c=10;for(h<l&&(o=l,l=h,h=o,o=n,n=s,s=o);c-- >0;){if((o=ry(l,h,t))===i)return a[n]=l,a[s]=h,e(a);if(o>0)l=Math.floor(l/o)*o,h=Math.ceil(h/o)*o;else if(o<0)l=Math.ceil(l*o)/o,h=Math.floor(h*o)/o;else break;i=o}return r},r},cVp:()=>aC,Q7f:()=>am,n8j:()=>oJ,zt:()=>ok,Xf2:()=>a$,DCK:()=>th,TUC:()=>rZ,dyv:()=>aD,GPZ:()=>tn,IrU:()=>au,OEq:()=>aa,lUB:()=>oV,nVG:()=>aA,WH:()=>function t(){var e,r,i=rd().unknown(void 0),o=i.domain,a=i.range,n=0,s=1,l=!1,h=0,c=0,d=.5;function u(){var t=o().length,i=s<n,u=i?s:n,p=i?n:s;e=(p-u)/Math.max(1,t-h+2*c),l&&(e=Math.floor(e)),u+=(p-u-e*(t-h))*d,r=e*(1-h),l&&(u=Math.round(u),r=Math.round(r));var g=(function(t,e,r){t*=1,e*=1,r=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+r;for(var i=-1,o=0|Math.max(0,Math.ceil((e-t)/r)),a=Array(o);++i<o;)a[i]=t+i*r;return a})(t).map(function(t){return u+e*t});return a(i?g.reverse():g)}return delete i.unknown,i.domain=function(t){return arguments.length?(o(t),u()):o()},i.range=function(t){return arguments.length?([n,s]=t,n*=1,s*=1,u()):[n,s]},i.rangeRound=function(t){return[n,s]=t,n*=1,s*=1,l=!0,u()},i.bandwidth=function(){return r},i.step=function(){return e}
1,i.round=function(t){return arguments.length?(l=!!t,u()):l},i.padding=function(t){return arguments.length?(h=Math.min(1,c=+t),u()):h},i.paddingInner=function(t){return arguments.length?(h=Math.min(1,t),u()):h},i.paddingOuter=function(t){return arguments.length?(c=+t,u()):c},i.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),u()):d},i.copy=function(){return t(o(),[n,s]).round(l).paddingInner(h).paddingOuter(c).align(d)},rn.apply(u(),arguments)},ABi:()=>rY,qrM:()=>o6,PGu:()=>rG,oDi:()=>af,ucG:()=>rK,UMr:()=>rd,Ltv:()=>ow,UPb:()=>aI,w7C:()=>ob,IA3:()=>at,bEH:()=>ra,GZz:()=>aO,jkA:()=>o,l78:()=>d,Yu4:()=>o9,uxU:()=>aF,t6C:()=>rI,PGM:()=>ai,tlR:()=>c});var x=Array.prototype.find;function C(){return this.firstElementChild}var b=Array.prototype.filter;function k(){return Array.from(this.children)}function w(t){return Array(t.length)}function T(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function B(t,e,r,i,o,a){for(var n,s=0,l=e.length,h=a.length;s<h;++s)(n=e[s])?(n.__data__=a[s],i[s]=n):r[s]=new T(t,a[s]);for(;s<l;++s)(n=e[s])&&(o[s]=n)}function v(t,e,r,i,o,a,n){var s,l,h,c=new Map,d=e.length,u=a.length,p=Array(d);for(s=0;s<d;++s)(l=e[s])&&(p[s]=h=n.call(l,l.__data__,s,e)+"",c.has(h)?o[s]=l:c.set(h,l));for(s=0;s<u;++s)h=n.call(t,a[s],s,a)+"",(l=c.get(h))?(i[s]=l,l.__data__=a[s],c.delete(h)):r[s]=new T(t,a[s]);for(s=0;s<d;++s)(l=e[s])&&c.get(p[s])===l&&(o[s]=l)}function S(t){return t.__data__}function _(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}T.prototype={constructor:T,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var A="http://www.w3.org/1999/xhtml";let F={svg:"http://www.w3.org/2000/svg",xhtml:A,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function L(t){var e=t+="",r=e.indexOf(":");return r>=0&&"xmlns"!==(e=t.slice(0,r))&&(t=t.slice(r+1)),F.hasOwnProperty(e)?{space:F[e],local:t}:t}function M(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function $(t,e){return t.style.getPropertyValue(e)||M(t).getComputedStyle(t,null).getPropertyValue(e)}function E(t){return t.trim().split(/^|\s+/)}function O(t){return t.classList||new D(t)}function D(t){this._node=t,this._names=E(t.getAttribute("class")||"")}function I(t,e){for(var r=O(t),i=-1,o=e.length;++i<o;)r.add(e[i])}function K(t,e){for(var r=O(t),i=-1,o=e.length;++i<o;)r.remove(e[i])}function q(){this.textContent=""}function R(){this.innerHTML=""}function P(){this.nextSibling&&this.parentNode.appendChild(this)}function z(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function N(t){var e=L(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===A&&e.documentElement.namespaceURI===A?e.createElement(t):e.createElementNS(r,t)}})(e)}function j(){return null}function W(){var t=this.parentNode;t&&t.removeChild(this)}function U(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function H(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Y(t){return function(){var e=this.__on;if(e){for(var r,i=0,o=-1,a=e.length;i<a;++i)(r=e[i],t.type&&r.type!==t.type||r.name!==t.name)?e[++o]=r:this.removeEventListener(r.type,r.listener,r.options);++o?e.length=o:delete this.__on}}}function G(t,e,r){return function(){var i,o=this.__on,a=function(t){e.call(this,t,this.__data__)};if(o){for(var n=0,s=o.length;n<s;++n)if((i=o[n]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=r),i.value=e;return}}this.addEventListener(t.type,a,r),i={type:t.type,name:t.name,value:e,listener:a,options:r},o?o.push(i):this.__on=[i]}}function X(t,e,r){var i=M(t),o=i.CustomEvent;"function"==typeof o?o=new o(e,r):(o=i.document.createEvent("Event"),r?(o.initEvent(e,r.bubbles,r.cancelable),o.detail=r.detail):o.initEvent(e,!1,!1)),t.dis
1patchEvent(o)}D.prototype={add:function(t){0>this._names.indexOf(t)&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var V=[null];function Z(t,e){this._groups=t,this._parents=e}function Q(){return new Z([[document.documentElement]],V)}Z.prototype=Q.prototype={constructor:Z,select:function(t){"function"!=typeof t&&(t=p(t));for(var e=this._groups,r=e.length,i=Array(r),o=0;o<r;++o)for(var a,n,s=e[o],l=s.length,h=i[o]=Array(l),c=0;c<l;++c)(a=s[c])&&(n=t.call(a,a.__data__,c,s))&&("__data__"in a&&(n.__data__=a.__data__),h[c]=n);return new Z(i,this._parents)},selectAll:function(t){if("function"==typeof t){var e;e=t,t=function(){var t;return t=e.apply(this,arguments),null==t?[]:Array.isArray(t)?t:Array.from(t)}}else t=f(t);for(var r=this._groups,i=r.length,o=[],a=[],n=0;n<i;++n)for(var s,l=r[n],h=l.length,c=0;c<h;++c)(s=l[c])&&(o.push(t.call(s,s.__data__,c,l)),a.push(s));return new Z(o,a)},selectChild:function(t){var e;return this.select(null==t?C:(e="function"==typeof t?t:m(t),function(){return x.call(this.children,e)}))},selectChildren:function(t){var e;return this.selectAll(null==t?k:(e="function"==typeof t?t:m(t),function(){return b.call(this.children,e)}))},filter:function(t){"function"!=typeof t&&(t=y(t));for(var e=this._groups,r=e.length,i=Array(r),o=0;o<r;++o)for(var a,n=e[o],s=n.length,l=i[o]=[],h=0;h<s;++h)(a=n[h])&&t.call(a,a.__data__,h,n)&&l.push(a);return new Z(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,S);var r=e?v:B,i=this._parents,o=this._groups;"function"!=typeof t&&(x=t,t=function(){return x});for(var a=o.length,n=Array(a),s=Array(a),l=Array(a),h=0;h<a;++h){var c=i[h],d=o[h],u=d.length,p="object"==typeof(m=t.call(c,c&&c.__data__,h,i))&&"length"in m?m:Array.from(m),g=p.length,f=s[h]=Array(g),y=n[h]=Array(g);r(c,d,f,y,l[h]=Array(u),p,e);for(var m,x,C,b,k=0,w=0;k<g;++k)if(C=f[k]){for(k>=w&&(w=k+1);!(b=y[w])&&++w<g;);C._next=b||null}}return(n=new Z(n,i))._enter=s,n._exit=l,n},enter:function(){return new Z(this._enter||this._groups.map(w),this._parents)},exit:function(){return new Z(this._exit||this._groups.map(w),this._parents)},join:function(t,e,r){var i=this.enter(),o=this,a=this.exit();return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=e&&(o=e(o))&&(o=o.selection()),null==r?a.remove():r(a),i&&o?i.merge(o).order():o},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,i=e._groups,o=r.length,a=i.length,n=Math.min(o,a),s=Array(o),l=0;l<n;++l)for(var h,c=r[l],d=i[l],u=c.length,p=s[l]=Array(u),g=0;g<u;++g)(h=c[g]||d[g])&&(p[g]=h);for(;l<o;++l)s[l]=r[l];return new Z(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var i,o=t[e],a=o.length-1,n=o[a];--a>=0;)(i=o[a])&&(n&&4^i.compareDocumentPosition(n)&&n.parentNode.insertBefore(i,n),n=i);return this},sort:function(t){function e(e,r){return e&&r?t(e.__data__,r.__data__):!e-!r}t||(t=_);for(var r=this._groups,i=r.length,o=Array(i),a=0;a<i;++a){for(var n,s=r[a],l=s.length,h=o[a]=Array(l),c=0;c<l;++c)(n=s[c])&&(h[c]=n);h.sort(e)}return new Z(o,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var i=t[e],o=0,a=i.length;o<a;++o){var n=i[o];if(n)return n}return null},size:function(){let t=0;for(let e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,r=0,i=e.length;r<i;++r)for(var o,a=e[r],n=0,s=a.length;n<s;++n)(o=a[n])&&t.call(o,o.__data__,n,a);return this},attr:function(t,e){var r=L(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((null==e?r.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?r.local?function(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}:function(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttribute(t):this.setAttribute(t,r)}}:r.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(r,e))},style:function(t,e,r){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,r){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,r)}}:function(t,e,r){return function(){this.style.setProperty(t,e,r)}})(t,e,null==r?"":r)):$(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var r=E(t+"");
1if(arguments.length<2){for(var i=O(this.node()),o=-1,a=r.length;++o<a;)if(!i.contains(r[o]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?I:K)(this,t)}}:e?function(t){return function(){I(this,t)}}:function(t){return function(){K(this,t)}})(r,e))},text:function(t){return arguments.length?this.each(null==t?q:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?R:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(P)},lower:function(){return this.each(z)},append:function(t){var e="function"==typeof t?t:N(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r="function"==typeof t?t:N(t),i=null==e?j:"function"==typeof e?e:p(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(W)},clone:function(t){return this.select(t?H:U)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var i,o,a=(t+"").trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");return r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),{type:t,name:e}}),n=a.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var l,h=0,c=s.length;h<c;++h)for(i=0,l=s[h];i<n;++i)if((o=a[i]).type===l.type&&o.name===l.name)return l.value}return}for(i=0,s=e?G:Y;i<n;++i)this.each(s(a[i],e,r));return this},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return X(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return X(this,t,e)}})(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var i,o=t[e],a=0,n=o.length;a<n;++a)(i=o[a])&&(yield i)}};var J={value:()=>{}};function tt(){for(var t,e=0,r=arguments.length,i={};e<r;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw Error("illegal type: "+t);i[t]=[]}return new te(i)}function te(t){this._=t}function tr(t,e,r){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=J,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=r&&t.push({name:e,value:r}),t}te.prototype=tt.prototype={constructor:te,on:function(t,e){var r,i=this._,o=(t+"").trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!i.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:e}}),a=-1,n=o.length;if(arguments.length<2){for(;++a<n;)if((r=(t=o[a]).type)&&(r=function(t,e){for(var r,i=0,o=t.length;i<o;++i)if((r=t[i]).name===e)return r.value}(i[r],t.name)))return r;return}if(null!=e&&"function"!=typeof e)throw Error("invalid callback: "+e);for(;++a<n;)if(r=(t=o[a]).type)i[r]=tr(i[r],t.name,e);else if(null==e)for(r in i)i[r]=tr(i[r],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new te(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,i,o=Array(r),a=0;a<r;++a)o[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(i=this._[t],a=0,r=i.length;a<r;++a)i[a].value.apply(e,o)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(var i=this._[t],o=0,a=i.length;o<a;++o)i[o].value.apply(e,r)}};var ti,to,ta,tn,ts,tl,th,tc,td,tu=0,tp=0,tg=0,tf=0,ty=0,tm=0,tx="object"==typeof performance&&performance.now?performance:Date,tC="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function tb(){return ty||(tC(tk),ty=tx.now()+tm)}function tk(){ty=0}function tw(){this._call=this._time=this._next=null}function tT(t,e,r){var i=new tw;return i.restart(t,e,r),i}function tB(){ty=(tf=tx.now())+tm,tu=tp=0;try{tb(),++tu;for(var t,e=tc;e;)(t=ty-e._time)>=0&&e._call.call(void 0,t),e=e._next;--tu}finally{tu=0,function(){for(var t,e,r=tc,i=1/0;r;)r._call?(i>r._time&&(i=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:tc=e);td=t,tS(i)}(),ty=0}}function tv(){var t=tx.now(),e=t-tf;e>1e3&&(tm-=e,tf=t)}function tS(t){!tu&&(tp&&(tp=clearTimeout(tp)),t-ty>24?(t<1/0&&(tp=setTimeout(tB,t-tx.now()-tm)),tg&&(tg=clearInterval(tg))):(tg||(tf=tx.now(),tg=setInterval(tv,1e3)),tu=1,tC(tB)))}function t_(t,e,r){var i=new tw;return e=null==e?0:+e,i.restart(r=>{i.stop(),t(r+e)},e,r),i}tw.prototype=tT.prototype={constructor:tw,restart:function(t,e,r){if("function"!=typeof t)throw TypeError("callback is not a function");r=(null==r?tb():+r)+(null==e?0:+e),this._next||td===this||(td?td._next=this:tc=this,td=this),this._call=t,this._time=r,tS()},stop:function(){this._call&&(this._call=null,this._time=1/0,tS())}};var tA=tt("start","end","cancel","interrupt"),tF=[];function tL(t,e,r,i,o,a){var n=t.__transition;if(n){if(r in n)return}else t.__transition={};!function(t,e,r){var i,o=t.__transition;function a(l){var h,c,d,u;if(1!==r.state)return s();for(h in o)if((u=o[h]).name===r.name){if(3===u.state)return t_(a);4===u.state?(u.state=6,u.timer.stop(),u.on.call("interrupt",t,t.__data__,u.index,u.group),delete o[h]):+h<e&&(u.state=6,u.timer.stop(),u.on.call("cancel",t,t.__data__,u.index,u.group),delete o[h])}if(t_(function(){3===r.state&&(r.state=4,r.timer.restart(n,r.delay,r.time),n(l))}),r.state=2,r.on.call("start",t,t.__data__,r.index,r.group),2===r.state){for(h=0,r.state=3,i=Array(d=r.tween.length),c=-1;h<d;++h)(u=r.tween[h].value.call(t,t.__data__,r.index,r.group))&&(i[
1++c]=u);i.length=c+1}}function n(e){for(var o=e<r.duration?r.ease.call(null,e/r.duration):(r.timer.restart(s),r.state=5,1),a=-1,n=i.length;++a<n;)i[a].call(t,o);5===r.state&&(r.on.call("end",t,t.__data__,r.index,r.group),s())}function s(){for(var i in r.state=6,r.timer.stop(),delete o[e],o)return;delete t.__transition}o[e]=r,r.timer=tT(function(t){r.state=1,r.timer.restart(a,r.delay,r.time),r.delay<=t&&a(t-r.delay)},0,r.time)}(t,r,{name:e,index:i,group:o,on:tA,tween:tF,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function tM(t,e){var r=tE(t,e);if(r.state>0)throw Error("too late; already scheduled");return r}function t$(t,e){var r=tE(t,e);if(r.state>3)throw Error("too late; already running");return r}function tE(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw Error("transition not found");return r}function tO(t,e){return t*=1,e*=1,function(r){return t*(1-r)+e*r}}var tD=180/Math.PI,tI={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function tK(t,e,r,i,o,a){var n,s,l;return(n=Math.sqrt(t*t+e*e))&&(t/=n,e/=n),(l=t*r+e*i)&&(r-=t*l,i-=e*l),(s=Math.sqrt(r*r+i*i))&&(r/=s,i/=s,l/=s),t*i<e*r&&(t=-t,e=-e,l=-l,n=-n),{translateX:o,translateY:a,rotate:Math.atan2(e,t)*tD,skewX:Math.atan(l)*tD,scaleX:n,scaleY:s}}function tq(t,e,r,i){function o(t){return t.length?t.pop()+" ":""}return function(a,n){var s,l,h,c,d=[],u=[];return a=t(a),n=t(n),!function(t,i,o,a,n,s){if(t!==o||i!==a){var l=n.push("translate(",null,e,null,r);s.push({i:l-4,x:tO(t,o)},{i:l-2,x:tO(i,a)})}else(o||a)&&n.push("translate("+o+e+a+r)}(a.translateX,a.translateY,n.translateX,n.translateY,d,u),s=a.rotate,l=n.rotate,s!==l?(s-l>180?l+=360:l-s>180&&(s+=360),u.push({i:d.push(o(d)+"rotate(",null,i)-2,x:tO(s,l)})):l&&d.push(o(d)+"rotate("+l+i),h=a.skewX,c=n.skewX,h!==c?u.push({i:d.push(o(d)+"skewX(",null,i)-2,x:tO(h,c)}):c&&d.push(o(d)+"skewX("+c+i),!function(t,e,r,i,a,n){if(t!==r||e!==i){var s=a.push(o(a)+"scale(",null,",",null,")");n.push({i:s-4,x:tO(t,r)},{i:s-2,x:tO(e,i)})}else(1!==r||1!==i)&&a.push(o(a)+"scale("+r+","+i+")")}(a.scaleX,a.scaleY,n.scaleX,n.scaleY,d,u),a=n=null,function(t){for(var e,r=-1,i=u.length;++r<i;)d[(e=u[r]).i]=e.x(t);return d.join("")}}}var tR=tq(function(t){let e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?tI:tK(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),tP=tq(function(t){return null==t?tI:(ti||(ti=document.createElementNS("http://www.w3.org/2000/svg","g")),ti.setAttribute("transform",t),t=ti.transform.baseVal.consolidate())?tK((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):tI},", ",")",")");function tz(t,e,r){var i=t._id;return t.each(function(){var t=t$(this,i);(t.value||(t.value={}))[e]=r.apply(this,arguments)}),function(t){return tE(t,i).value[e]}}function tN(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function tj(t,e){var r=Object.create(t.prototype);for(var i in e)r[i]=e[i];return r}function tW(){}var tU="\\s*([+-]?\\d+)\\s*",tH="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tY="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tG=/^#([0-9a-f]{3,8})$/,tX=RegExp(`^rgb\\(${tU},${tU},${tU}\\)$`),tV=RegExp(`^rgb\\(${tY},${tY},${tY}\\)$`),tZ=RegExp(`^rgba\\(${tU},${tU},${tU},${tH}\\)$`),tQ=RegExp(`^rgba\\(${tY},${tY},${tY},${tH}\\)$`),tJ=RegExp(`^hsl\\(${tH},${tY},${tY}\\)$`),t0=RegExp(`^hsla\\(${tH},${tY},${tY},${tH}\\)$`),t1={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function t2(){return this.rgb().formatHex()}function t5(){return this.rgb().formatRgb()}function t3(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=tG.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?t4(e):3===r?new t7(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?t6(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?t6(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=tX.exec(t))?new t7(e[1],e[2],e[3],1):(e=tV.exec(t))?new t7(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=tZ.exec(t))?t6(e[1],e[2],e[3],e[4]):(e=tQ.exec(t))?t6(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=tJ.exec(t))?ea(e[1],e[2]/100,e[3]/100,1):(e=t0.exec(t))?ea(e[1],e[2]/100,e[3]/100,e[4]):t1.hasOwnProperty(t)?t4(t1[t]):"transparent"===t?new t7(NaN,NaN,NaN,0):null}function t4(t){return new t7(t>>16&255,t>>8&255,255&t,1)}function t6(t,e,r,i){return i<=0&&(t=e=r=NaN),new t7(t,e,r,i)}function t8(t){return(t instanceof tW||(t=t3(t)),t)?new t7((t=t.rgb()).r,t.g,t.b,t.opacity):new t7}
1function t9(t,e,r,i){return 1==arguments.length?t8(t):new t7(t,e,r,null==i?1:i)}function t7(t,e,r,i){this.r=+t,this.g=+e,this.b=+r,this.opacity=+i}function et(){return`#${eo(this.r)}${eo(this.g)}${eo(this.b)}`}function ee(){let t=er(this.opacity);return`${1===t?"rgb(":"rgba("}${ei(this.r)}, ${ei(this.g)}, ${ei(this.b)}${1===t?")":`, ${t})`}`}function er(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ei(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function eo(t){return((t=ei(t))<16?"0":"")+t.toString(16)}function ea(t,e,r,i){return i<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new es(t,e,r,i)}function en(t){if(t instanceof es)return new es(t.h,t.s,t.l,t.opacity);if(t instanceof tW||(t=t3(t)),!t)return new es;if(t instanceof es)return t;var e=(t=t.rgb()).r/255,r=t.g/255,i=t.b/255,o=Math.min(e,r,i),a=Math.max(e,r,i),n=NaN,s=a-o,l=(a+o)/2;return s?(n=e===a?(r-i)/s+(r<i)*6:r===a?(i-e)/s+2:(e-r)/s+4,s/=l<.5?a+o:2-a-o,n*=60):s=l>0&&l<1?0:n,new es(n,s,l,t.opacity)}function es(t,e,r,i){this.h=+t,this.s=+e,this.l=+r,this.opacity=+i}function el(t){return(t=(t||0)%360)<0?t+360:t}function eh(t){return Math.max(0,Math.min(1,t||0))}function ec(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}function ed(t,e,r,i,o){var a=t*t,n=a*t;return((1-3*t+3*a-n)*e+(4-6*a+3*n)*r+(1+3*t+3*a-3*n)*i+n*o)/6}tN(tW,t3,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:t2,formatHex:t2,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return en(this).formatHsl()},formatRgb:t5,toString:t5}),tN(t7,t9,tj(tW,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new t7(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new t7(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new t7(ei(this.r),ei(this.g),ei(this.b),er(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:et,formatHex:et,formatHex8:function(){return`#${eo(this.r)}${eo(this.g)}${eo(this.b)}${eo((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:ee,toString:ee})),tN(es,function(t,e,r,i){return 1==arguments.length?en(t):new es(t,e,r,null==i?1:i)},tj(tW,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new es(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new es(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*e,o=2*r-i;return new t7(ec(t>=240?t-240:t+120,o,i),ec(t,o,i),ec(t<120?t+240:t-120,o,i),this.opacity)},clamp(){return new es(el(this.h),eh(this.s),eh(this.l),er(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=er(this.opacity);return`${1===t?"hsl(":"hsla("}${el(this.h)}, ${100*eh(this.s)}%, ${100*eh(this.l)}%${1===t?")":`, ${t})`}`}}));let eu=t=>()=>t;function ep(t,e){return function(r){return t+r*e}}function eg(t,e){var r=e-t;return r?ep(t,r):eu(isNaN(t)?e:t)}let ef=function t(e){var r,i=1==(r=+e)?eg:function(t,e){var i,o,a;return e-t?(i=t,o=e,i=Math.pow(i,a=r),o=Math.pow(o,a)-i,a=1/a,function(t){return Math.pow(i+t*o,a)}):eu(isNaN(t)?e:t)};function o(t,e){var r=i((t=t9(t)).r,(e=t9(e)).r),o=i(t.g,e.g),a=i(t.b,e.b),n=eg(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=a(e),t.opacity=n(e),t+""}}return o.gamma=t,o}(1);function ey(t){return function(e){var r,i,o=e.length,a=Array(o),n=Array(o),s=Array(o);for(r=0;r<o;++r)i=t9(e[r]),a[r]=i.r||0,n[r]=i.g||0,s[r]=i.b||0;return a=t(a),n=t(n),s=t(s),i.opacity=1,function(t){return i.r=a(t),i.g=n(t),i.b=s(t),i+""}}}ey(function(t){var e=t.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),o=t[i],a=t[i+1],n=i>0?t[i-1]:2*o-a,s=i<e-1?t[i+2]:2*a-o;return ed((r-i/e)*e,n,o,a,s)}}),ey(function(t){var e=t.length;return function(r){var i=Math.floor(((r%=1)<0?++r:r)*e),o=t[(i+e-1)%e],a=t[i%e],n=t[(i+1)%e],s=t[(i+2)%e];return ed((r-i/e)*e,o,a,n,s)}});var em=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ex=RegExp(em.source,"g");function eC(t,e){var r,i,o,a,n,s=em.lastIndex=ex.lastIndex=0,l=-1,h=[],c=[];for(t+="",e+="";(o=em.exec(t))&&(a=ex.exec(e));)(n=a.index)>s&&(n=e.slice(s,n),h[l]?h[l]+=n:h[++l]=n),(o=o[0])===(a=a[0])?h[l]?h[l]+=a:h[++l]=a:(h[++l]=null,c.push({i:l,x:tO(o,a)})),s=ex.lastIndex;return s<e.length&&(n=e.slice(s),h[l]?h[l]+=n:h[++l]=n),h.length<2?c[0]?(r=c[0].x,function(t){return r(t)+""}):(i=e,function(){return i}):(e=c.length,function(t){for(var r,i=0;i<e;++i)h[(r=c[i]).i]=r.x(t);return h.join("")})}function eb(t,e){var r;return("number"==typeof e?tO:e instanceof t3?ef:(r=t3(e))?(e=r,ef):eC)(t,e)}var ek=Q.prototype.constructor;function ew(t){return function(){this.style.removeProperty(t)}}var eT=0;function eB(t,e,r,i){this._groups=t,this._parents=e,this._name=r,this._id=i}var ev=Q.prototype;eB.prototype=(function(t){return Q().transition(t)}).prototype={constructor:eB,select:function(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=p(t));for(var i=this._groups,o=i.length,a=Array(o),n=0;n<o;++n)for(var s,l,h=i[n],c=h.length,d=a[n]=Array(c),u=0;u<c;++u)(s=h[u])&&(l=t.call(s,s.__data__,u,h))&&("__data__"in s&&(l.__data__=s.__data__),d[u]=l,tL(d[u],e,r,u,d,tE(s,r)));return new eB(a,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=f(t));for(var i=this._groups,o=i.length,a=[],n=[],s=0;s<o;++s)for(var l,h=i[s],c=h.length,d=0;d<c;++d)if(l=h[d]){for(var u,p=t.call(l,l.__data__,d,h),g=tE(l,r),y=0,m=p.length;y<m;++y)(u=p[y])&&tL(u,e,r,y,p,g);a.push(p),n.push(l)}return new eB(a,n,e,r)},selectChild:ev.selectChild,selectChildren:ev.selectChildren,filter:function(t){"function"!=typeof t&&(t=y(t));for(var e=this._groups,r=e.length,i=Array(r),o=0;o<r;++o)for(var a,n=e[o],s=n.length,l=i[o]=[],h=0;h<s;++h)(a=n[h])&&t.call(a,a.__data__,h,n)&&l.push(a);return new eB(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw Error();for(var e=this._groups,r=t._groups,i=e.length,o=r.length,a=Math.min(i,o),n=Array(i),s=0;s<a;++s)for(var l,h=e[s],c=r[s],d=h.length,u=n[s]=Array(d),p=0;p<d;
1++p)(l=h[p]||c[p])&&(u[p]=l);for(;s<i;++s)n[s]=e[s];return new eB(n,this._parents,this._name,this._id)},selection:function(){return new ek(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=++eT,i=this._groups,o=i.length,a=0;a<o;++a)for(var n,s=i[a],l=s.length,h=0;h<l;++h)if(n=s[h]){var c=tE(n,e);tL(n,t,r,h,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new eB(i,this._parents,t,r)},call:ev.call,nodes:ev.nodes,node:ev.node,size:ev.size,empty:ev.empty,each:ev.each,on:function(t,e){var r,i,o,a,n,s,l=this._id;return arguments.length<2?tE(this.node(),l).on.on(t):this.each((r=l,i=t,o=e,s=(i+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})?tM:t$,function(){var t=s(this,r),e=t.on;e!==a&&(n=(a=e).copy()).on(i,o),t.on=n}))},attr:function(t,e){var r=L(t),i="transform"===r?tP:eb;return this.attrTween(t,"function"==typeof e?(r.local?function(t,e,r){var i,o,a;return function(){var n,s,l=r(this);return null==l?void this.removeAttributeNS(t.space,t.local):(n=this.getAttributeNS(t.space,t.local))===(s=l+"")?null:n===i&&s===o?a:(o=s,a=e(i=n,l))}}:function(t,e,r){var i,o,a;return function(){var n,s,l=r(this);return null==l?void this.removeAttribute(t):(n=this.getAttribute(t))===(s=l+"")?null:n===i&&s===o?a:(o=s,a=e(i=n,l))}})(r,i,tz(this,"attr."+t,e)):null==e?(r.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(r):(r.local?function(t,e,r){var i,o,a=r+"";return function(){var n=this.getAttributeNS(t.space,t.local);return n===a?null:n===i?o:o=e(i=n,r)}}:function(t,e,r){var i,o,a=r+"";return function(){var n=this.getAttribute(t);return n===a?null:n===i?o:o=e(i=n,r)}})(r,i,e))},attrTween:function(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw Error();var i=L(t);return this.tween(r,(i.local?function(t,e){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(e){this.setAttributeNS(t.space,t.local,o.call(this,e))}),r}return o._value=e,o}:function(t,e){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(e){this.setAttribute(t,o.call(this,e))}),r}return o._value=e,o})(i,e))},style:function(t,e,r){var i,o,a,n,s,l,h,c,d,u,p,g,f,y,m,x,C,b,k,w,T,B="transform"==(t+="")?tR:eb;return null==e?this.styleTween(t,(i=t,function(){var t=$(this,i),e=(this.style.removeProperty(i),$(this,i));return t===e?null:t===o&&e===a?n:n=B(o=t,a=e)})).on("end.style."+t,ew(t)):"function"==typeof e?this.styleTween(t,(s=t,l=tz(this,"style."+t,e),function(){var t=$(this,s),e=l(this),r=e+"";return null==e&&(this.style.removeProperty(s),r=e=$(this,s)),t===r?null:t===h&&r===c?d:(c=r,d=B(h=t,e))})).each((u=this._id,C="end."+(x="style."+(p=t)),function(){var t=t$(this,u),e=t.on,r=null==t.value[x]?m||(m=ew(p)):void 0;(e!==g||y!==r)&&(f=(g=e).copy()).on(C,y=r),t.on=f})):this.styleTween(t,(b=t,T=e+"",function(){var t=$(this,b);return t===T?null:t===k?w:w=B(k=t,e)}),r).on("end.style."+t,null)},styleTween:function(t,e,r){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw Error();return this.tween(i,function(t,e,r){var i,o;function a(){var a=e.apply(this,arguments);return a!==o&&(i=(o=a)&&function(e){this.style.setProperty(t,a.call(this,e),r)}),i}return a._value=e,a}(t,e,null==r?"":r))},text:function(t){var e,r;return this.tween("text","function"==typeof t?(e=tz(this,"text",t),function(){var t=e(this);this.textContent=null==t?"":t}):(r=null==t?"":t+"",function(){this.textContent=r}))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw Error();return this.tween(e,function(t){var e,r;function i(){var i=t.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t){this.textContent=i.call(this,t)}),e}return i._value=t,i}(t))},remove:function(){var t;return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}))},tween:function(t,e){var r=this._id;if(t+="",arguments.length<2){for(var i,o=tE(this.node(),r).tween,a=0,n=o.length;a<n;++a)if((i=o[a]).name===t)return i.value;return null}return this.each((null==e?function(t,e){var r,i;return function(){var o=t$(this,t),a=o.tween;if(a!==r){i=r=a;for(var n=0,s=i.length;n<s;++n)if(i[n].name===e){(i=i.slice()).splice(n,1);break}}o.tween=i}}:function(t,e,r){var i,o;if("function"!=typeof r)throw Error();return function(){var a=t$(this,t),n=a.tween;if(n!==i){o=(i=n).slice();for(var s={name:e,value:r},l=0,h=o.length;l<h;++l)if(o[l].name===e){o[l]=s;break}l===h&&o.push(s)}a.tween=o}})(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tM(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e*=1,function(){tM(this,t).delay=e}})(e,t)):tE(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){t$(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e*=1,function(){t$(this,t).duration=e}})(e,t)):tE(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw Error();return function(){t$(this,t).ease=e}}(e,t)):tE(this.node(),e).ease},easeVarying:function(t){var e;if("function"!=typeof t)throw Error();return this.each((e=this._id,function(){var r=t.apply(this,arguments);if("function"!=typeof r)throw Error();t$(this,e).ease=r}))},end:function(){var t,e,r=this,i=r._id,o=r.size();return new Promise(function(a,n){var s={value:n},l={value:function(){0==--o&&a()}};r.each(function(){var r=t$(this,i),o=r.on;o!==t&&((e=(t=o).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),r.on=e}),0===o&&a()})},[Symbol.iterator]:ev[Symbol.iterator]};var eS={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};Q.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var r,i,o,a=t.__transition,n=!0;if(a){for(o in e=null==e?null:e+"",a){if((r=a[o]).name!==e){n=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete a[o]}n&&delete t.__transition}}(this,t)})},Q.prototype.transition=function(t){var e,r;t instanceof eB?(e=t._id,t=t._name):(e=++eT,(r=eS).time=tb(),t=null==t?null:t+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var n,s=i[a],l=s.length,h=0;h<l;++h)(n=s[h])&&tL(n,t,e,h,s,r||function(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw Error(`transition ${e} not found`);return r}(n,e));return new eB(i,this._parents,t,e)};let{abs:e_,max:eA,min:eF}=Math;function eL(t){return{type:t}}function eM(t,e){if(!isFinite(t)||0===t)return null;var r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),i=t.slice(0,r);return[i.length>
11?i[0]+i.slice(2):i,+t.slice(r+1)]}function e$(t){return(t=eM(Math.abs(t)))?t[1]:NaN}["w","e"].map(eL),["n","s"].map(eL),["n","w","e","s","nw","ne","sw","se"].map(eL);var eE=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function eO(t){var e;if(!(e=eE.exec(t)))throw Error("invalid format: "+t);return new eD({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function eD(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function eI(t,e){var r=eM(t,e);if(!r)return t+"";var i=r[0],o=r[1];return o<0?"0."+Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+Array(o-i.length+2).join("0")}eO.prototype=eD.prototype,eD.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let eK={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>eI(100*t,e),r:eI,s:function(t,e){var r=eM(t,e);if(!r)return to=void 0,t.toPrecision(e);var i=r[0],o=r[1],a=o-(to=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,n=i.length;return a===n?i:a>n?i+Array(a-n+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+eM(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function eq(t){return t}var eR=Array.prototype.map,eP=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function ez(t){var e=0,r=t.children,i=r&&r.length;if(i)for(;--i>=0;)e+=r[i].value;else e=1;t.value=e}function eN(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=eW)):void 0===e&&(e=ej);for(var r,i,o,a,n,s=new eY(t),l=[s];r=l.pop();)if((o=e(r.data))&&(n=(o=Array.from(o)).length))for(r.children=o,a=n-1;a>=0;--a)l.push(i=o[a]=new eY(o[a])),i.parent=r,i.depth=r.depth+1;return s.eachBefore(eH)}function ej(t){return t.children}function eW(t){return Array.isArray(t)?t[1]:null}function eU(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function eH(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function eY(t){this.data=t,this.depth=this.height=0,this.parent=null}function eG(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}tn=(ta=function(t){var e,r,i,o=void 0===t.grouping||void 0===t.thousands?eq:(e=eR.call(t.grouping,Number),r=t.thousands+"",function(t,i){for(var o=t.length,a=[],n=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>i&&(s=Math.max(1,i-l)),a.push(t.substring(o-=s,o+s)),!((l+=s+1)>i));)s=e[n=(n+1)%e.length];return a.reverse().join(r)}),a=void 0===t.currency?"":t.currency[0]+"",n=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?eq:(i=eR.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return i[+t]})}),h=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"\u2212":t.minus+"",d=void 0===t.nan?"NaN":t.nan+"";function u(t,e){var r=(t=eO(t)).fill,i=t.align,u=t.sign,p=t.symbol,g=t.zero,f=t.width,y=t.comma,m=t.precision,x=t.trim,C=t.type;"n"===C?(y=!0,C="g"):eK[C]||(void 0===m&&(m=12),x=!0,C="g"),(g||"0"===r&&"="===i)&&(g=!0,r="0",i="=");var b=(e&&void 0!==e.prefix?e.prefix:"")+("$"===p?a:"#"===p&&/[boxX]/.test(C)?"0"+C.toLowerCase():""),k=("$"===p?n:/[%p]/.test(C)?h:"")+(e&&void 0!==e.suffix?e.suffix:""),w=eK[C],T=/[defgprs%]/.test(C);function B(t){var e,a,n,h=b,p=k;if("c"===C)p=w(t)+p,t="";else{var B=(t*=1)<0||1/t<0;if(t=isNaN(t)?d:w(Math.abs(t),m),x&&(t=function(t){t:for(var e,r=t.length,i=1,o=-1;i<r;++i)switch(t[i]){case".":o=e=i;break;case"0":0===o&&(o=i),e=i;break;default:if(!+t[i])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),B&&0==+t&&"+"!==u&&(B=!1),h=(B?"("===u?u:c:"-"===u||"("===u?"":u)+h,p=("s"!==C||isNaN(t)||void 0===to?"":eP[8+to/3])+p+(B&&"("===u?")":""),T){for(e=-1,a=t.length;++e<a;)if(48>(n=t.charCodeAt(e))||n>57){p=(46===n?s+t.slice(e+1):t.slice(e))+p,t=t.slice(0,e);break}}}y&&!g&&(t=o(t,1/0));var v=h.length+t.length+p.length,S=v<f?Array(f-v+1).join(r):"";switch(y&&g&&(t=o(S+t,S.length?f-p.length:1/0),S=""),i){case"<":t=h+t+p+S;break;case"=":t=h+S+t+p;break;case"^":t=S.slice(0,v=S.length>>1)+h+t+p+S.slice(v);break;default:t=S+h+t+p}return l(t)}return m=void 0===m?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),B.toString=function(){return t+""},B}return{format:u,formatPrefix:function(t,e){var r=3*Math.max(-8,Math.min(8,Math.floor(e$(e)/3))),i=Math.pow(10,-r),o=u(((t=eO(t)).type="f",t),{suffix:eP[8+r/3]});return function(t){return o(i*t)}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,ts=ta.formatPrefix,eY.prototype=eN.prototype={constructor:eY,count:function(){return this.eachAfter(ez)},each:function(t,e){let r=-1;for(let i of this)t.call(e,i,++r,this);return this},eachAfter:function(t,e){for(var r,i,o,a=this,n=[a],s=[],l=-1;a=n.pop();)if(s.push(a),r=a.children)for(i=0,o=r.length;i<o;++i)n.push(r[i]);for(;a=s.pop();)t.call(e,a,++l,this);return this},eachBefore:function(t,e){for(var r,i,o=this,a=[o],n=-1;o=a.pop();)if(t.call(e,o,++n,this),r=o.children)for(i=r.length-1;i>=0;--i)a.push(r[i]);return this},find:function(t,e){let r=-1;for(let i of this)if(t.call(e,i,++r,this))return i},sum:function(t){return this.eachAfter(function(e){for(var r=+t(e.data)||0,i=e.children,o=i&&i.length;--o>=0;)r+=i[o].value;e.value=r})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,r=function(t,e){if(t===e)return t;var r=t.ancestors(),i=e.ancestors(),o=null;for(t=r.pop(),e=i.pop();t===e;)o=t,t=r.pop(),e=i.pop();return o}(e,t),i=[e];e!==r;)i.push(e=e.parent);for(var o=i.length;t!==r;)i.splice(o,0,t),t=t.parent;return i},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(r){r!==t&&e.push({source:r.parent,target:r})}),e},copy:function(){return eN(this).eachBefore(eU)},[Symbol.iterator]:function*(){var t,e,r,i,o=this,a=[o];do for(t=a.reverse(),a=[];o=t.pop();)if(yield o,e=o.children)for(r=0,i=e.length;r<i;++r)a.push(e[r]);while(a.length)}};let eX=function t(e){function r(t,r,i,o,a){!function(t,e,r,i,o,a){for(var n,s,l,h,c,d,u,p,g,f,y,m=[],x=e.children,C=0,b=0,k=x.length,w=e.value;C<k;){l=o-r,h=a-i;do c=x[b++].value;while(!c&&b<k)for(d=u=c,g=Math.max(u/(y=c*c*(f=Math.max(h/l,l/h)/(w*t))),y/d);b<k;++b){if(c+=s=x[b].value,s<d&&(d=s),s>u&&(u=s),(p=Math.max(u/(y=c*c*f),y/d))>g){c-=s;break}g=p}m.push(n={value:c,dice:l<h,children:x.slice(C,b)}),n.dice?function(t,e,r,i,o){for(var a,n=t.children,s=-1,l=n.length,h=t.value&&(i-e)/t.value;++s<l;)(a=n[s]).y0=r,a.y1=o,a.x0=e,a.x1=e+=a.value*h}(n,r,i,o,w?i+=h*c/w:a):function(t,e,r,i,o){for(var a,n=t.children,s=-1,l=n.length,h=t.value&&(o-r)/t.value;++s<l;)(a=n[s]).x0=e,a.x1=i,a.y0=r,a.y1=r+=a.value*h}(n,r,i,w?r+=l*c/w:o,a),w-=c,C=b}}(e,t,r,i,o,a)}return r.ratio=function(e){return t((e*=1)>1?e:1)},r}((1+Math.sqrt(5))/2);function eV(){return 0}function eZ(t){return function(){return t}}function eQ(){var t=eX,e=!1,r=1,i=1,o=[0],a=eV,n=eV,s=eV,l=eV,h=eV;function c(t){return t.x0=t.y0=0,t.x1=r,t.y1=i,t.eachBefore(d),o=[0],e&&t.eachBefore(eG),t}function d(e){var r=o[e.depth],i=e.x0+r,c=e.y0+r,d=e.x1-r,u=e.y1-r;d<i&&(i=d=(i+d)/2),u<c&&(c=u=(c+u)/2),e.x0=i,e.y0=c,e.x1=d,e.y1=u,e.children&&(r=o[e.depth+1]=a(e)/2,i+=h(e)-r,c+=n(e)-r,d-=s(e)-r,u-=l(e)-r,d<i&&(i=d=(i+d)/2),u<c&&(c=u=(c+u)/2),t(e,i,c,d,u))}
1return c.round=function(t){return arguments.length?(e=!!t,c):e},c.size=function(t){return arguments.length?(r=+t[0],i=+t[1],c):[r,i]},c.tile=function(e){return arguments.length?(t=function(t){if("function"!=typeof t)throw Error();return t}(e),c):t},c.padding=function(t){return arguments.length?c.paddingInner(t).paddingOuter(t):c.paddingInner()},c.paddingInner=function(t){return arguments.length?(a="function"==typeof t?t:eZ(+t),c):a},c.paddingOuter=function(t){return arguments.length?c.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):c.paddingTop()},c.paddingTop=function(t){return arguments.length?(n="function"==typeof t?t:eZ(+t),c):n},c.paddingRight=function(t){return arguments.length?(s="function"==typeof t?t:eZ(+t),c):s},c.paddingBottom=function(t){return arguments.length?(l="function"==typeof t?t:eZ(+t),c):l},c.paddingLeft=function(t){return arguments.length?(h="function"==typeof t?t:eZ(+t),c):h},c}let eJ=Math.PI/180,e0=180/Math.PI,e1=4/29,e2=6/29,e5=6/29*3*(6/29),e3=6/29*(6/29)*(6/29);function e4(t){if(t instanceof e6)return new e6(t.l,t.a,t.b,t.opacity);if(t instanceof rr)return ri(t);t instanceof t7||(t=t8(t));var e,r,i=rt(t.r),o=rt(t.g),a=rt(t.b),n=e8((.2225045*i+.7168786*o+.0606169*a)/1);return i===o&&o===a?e=r=n:(e=e8((.4360747*i+.3850649*o+.1430804*a)/.96422),r=e8((.0139322*i+.0971045*o+.7141733*a)/.82521)),new e6(116*n-16,500*(e-n),200*(n-r),t.opacity)}function e6(t,e,r,i){this.l=+t,this.a=+e,this.b=+r,this.opacity=+i}function e8(t){return t>e3?Math.pow(t,1/3):t/e5+e1}function e9(t){return t>e2?t*t*t:e5*(t-e1)}
1function e7(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function rt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function re(t,e,r,i){return 1==arguments.length?function(t){if(t instanceof rr)return new rr(t.h,t.c,t.l,t.opacity);if(t instanceof e6||(t=e4(t)),0===t.a&&0===t.b)return new rr(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*e0;return new rr(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new rr(t,e,r,null==i?1:i)}function rr(t,e,r,i){this.h=+t,this.c=+e,this.l=+r,this.opacity=+i}function ri(t){if(isNaN(t.h))return new e6(t.l,0,0,t.opacity);var e=t.h*eJ;return new e6(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}function ro(t){return function(e,r){var i=t((e=re(e)).h,(r=re(r)).h),o=eg(e.c,r.c),a=eg(e.l,r.l),n=eg(e.opacity,r.opacity);return function(t){return e.h=i(t),e.c=o(t),e.l=a(t),e.opacity=n(t),e+""}}}tN(e6,function(t,e,r,i){return 1==arguments.length?e4(t):new e6(t,e,r,null==i?1:i)},tj(tW,{brighter(t){return new e6(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new e6(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=.96422*e9(e),new t7(e7(3.1338561*e-1.6168667*(t=+e9(t))-.4906146*(r=.82521*e9(r))),e7(-.9787684*e+1.9161415*t+.033454*r),e7(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),tN(rr,re,tj(tW,{brighter(t){return new rr(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new rr(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return ri(this).rgb()}}));let ra=ro(function(t,e){var r=e-t;return r?ep(t,r>180||r<-180?r-360*Math.round(r/360):r):eu(isNaN(t)?e:t)});function rn(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}ro(eg);class rs extends Map{constructor(t,e=rh){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(let[e,r]of t)this.set(e,r)}get(t){return super.get(rl(this,t))}has(t){return super.has(rl(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){let i=e(r);return t.has(i)?t.get(i):(t.set(i,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){let i=e(r);return t.has(i)&&(r=t.get(i),t.delete(i)),r}(this,t))}}function rl({_intern:t,_key:e},r){let i=e(r);return t.has(i)?t.get(i):r}function rh(t){return null!==t&&"object"==typeof t?t.valueOf():t}let rc=Symbol("implicit");function rd(){var t=new rs,e=[],r=[],i=rc;function o(o){let a=t.get(o);if(void 0===a){if(i!==rc)return i;t.set(o,a=e.push(o)-1)}return r[a%r.length]}return o.domain=function(r){if(!arguments.length)return e.slice();for(let i of(e=[],t=new rs,r))t.has(i)||t.set(i,e.push(i)-1);return o},o.range=function(t){return arguments.length?(r=Array.from(t),o):r.slice()},o.unknown=function(t){return arguments.length?(i=t,o):i},o.copy=function(){return rd(e,r).unknown(i)},rn.apply(o,arguments),o}let ru=Math.sqrt(50),rp=Math.sqrt(10),rg=Math.sqrt(2);function rf(t,e,r){let i,o,a,n=(e-t)/Math.max(0,r),s=Math.floor(Math.log10(n)),l=n/Math.pow(10,s),h=l>=ru?10:l>=rp?5:l>=rg?2:1;return(s<0?(i=Math.round(t*(a=Math.pow(10,-s)/h)),o=Math.round(e*a),i/a<t&&++i,o/a>e&&--o,a=-a):(i=Math.round(t/(a=Math.pow(10,s)*h)),o=Math.round(e/a),i*a<t&&++i,o*a>e&&--o),o<i&&.5<=r&&r<2)?rf(t,e,2*r):[i,o,a]}function ry(t,e,r){return rf(t*=1,e*=1,r*=1)[2]}function rm(t,e,r){e*=1,t*=1,r*=1;let i=e<t,o=i?ry(e,t,r):ry(t,e,r);return(i?-1:1)*(o<0?-(1/o):o)}function rx(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function rC(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function rb(t){let e,r,i;function o(t,i,a=0,n=t.length){if(a<n){if(0!==e(i,i))return n;do{let e=a+n>>>1;0>r(t[e],i)?a=e+1:n=e}while(a<n)}return a}return 2!==t.length?(e=rx,r=(e,r)=>rx(t(e),r),i=(e,r)=>t(e)-r):(e=t===rx||t===rC?t:rk,r=t,i=t),{left:o,center:function(t,e,r=0,a=t.length){let n=o(t,e,r,a-1);return n>r&&i(t[n-1],e)>-i(t[n],e)?n-1:n},right:function(t,i,o=0,a=t.length){if(o<a){if(0!==e(i,i))return a;do{let e=o+a>>>1;0>=r(t[e],i)?o=e+1:a=e}while(o<a)}return o}}}function rk(){return 0}let rw=rb(rx),rT=rw.right;rw.left,rb(function(t){return null===t?NaN:+t}).center;function rB(t,e){return t*=1,e*=1,function(r){return Math.round(t*(1-r)+e*r)}}function rv(t){return+t}var rS=[0,1];function r_(t){return t}function rA(t,e){var r;return(e-=t*=1)?function(r){return(r-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r})}function rF(t,e,r){var i=t[0],o=t[1],a=e[0],n=e[1];return o<i?(i=rA(o,i),a=r(n,a)):(i=rA(i,o),a=r(a,n)),function(t){return a(i(t))}}function rL(t,e,r){var i=Math.min(t.length,e.length)-1,o=Array(i),a=Array(i),n=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++n<i;)o[n]=rA(t[n],t[n+1]),a[n]=r(e[n],e[n+1]);return function(e){var r=rT(t,e,1,i)-1;return a[r](o[r](e))}}function rM(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function r$(){return(function(){var t,e,r,i,o,a,n=rS,s=rS,l=function t(e,r){var i,o,a=typeof r;return null==r||"boolean"===a?eu(r):("number"===a?tO:"string"===a?(o=t3(r))?(r=o,ef):eC:r instanceof t3?ef:r instanceof Date?function(t,e){var r=new Date;return t*=1,e*=1,function(i){return r.setTime(t*(1-i)+e*i),r}}:!ArrayBuffer.isView(i=r)||i instanceof DataView?Array.isArray(r)?function(e,r){var i,o=r?r.length:0,a=e?Math.min(o,e.length):0,n=Array(a),s=Array(o);for(i=0;i<a;++i)n[i]=t(e[i],r[i]);for(;i<o;++i)s[i]=r[i];return function(t){for(i=0;i<a;++i)s[i]=n[i](t);return s}}:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?function(e,r){var i,o={},a={};for(i in(null===e||"object"!=typeof e)&&(e={}),(null===r||"object"!=typeof r)&&(r={}),r)i in e?o[i]=t(e[i],r[i]):a[i]=r[i];return function(t){for(i in o)a[i]=o[i](t);return a}}
1:tO:function(t,e){e||(e=[]);var r,i=t?Math.min(e.length,t.length):0,o=e.slice();return function(a){for(r=0;r<i;++r)o[r]=t[r]*(1-a)+e[r]*a;return o}})(e,r)},h=r_;function c(){var t,e,r,l=Math.min(n.length,s.length);return h!==r_&&(t=n[0],e=n[l-1],t>e&&(r=t,t=e,e=r),h=function(r){return Math.max(t,Math.min(e,r))}),i=l>2?rL:rF,o=a=null,d}function d(e){return null==e||isNaN(e*=1)?r:(o||(o=i(n.map(t),s,l)))(t(h(e)))}return d.invert=function(r){return h(e((a||(a=i(s,n.map(t),tO)))(r)))},d.domain=function(t){return arguments.length?(n=Array.from(t,rv),c()):n.slice()},d.range=function(t){return arguments.length?(s=Array.from(t),c()):s.slice()},d.rangeRound=function(t){return s=Array.from(t),l=rB,c()},d.clamp=function(t){return arguments.length?(h=!!t||r_,c()):h!==r_},d.interpolate=function(t){return arguments.length?(l=t,c()):l},d.unknown=function(t){return arguments.length?(r=t,d):r},function(r,i){return t=r,e=i,c()}})()(r_,r_)}let rE=new Date,rO=new Date;function rD(t,e,r,i){function o(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),o.round=t=>{let e=o(t),r=o.ceil(t);return t-e<r-t?e:r},o.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),o.range=(r,i,a)=>{let n,s=[];if(r=o.ceil(r),a=null==a?1:Math.floor(a),!(r<i)||!(a>0))return s;do s.push(n=new Date(+r)),e(r,a),t(r);while(n<r&&r<i)return s},o.filter=r=>rD(e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)},(t,i)=>{if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!r(t););else for(;--i>=0;)for(;e(t,1),!r(t););}),r&&(o.count=(e,i)=>(rE.setTime(+e),rO.setTime(+i),t(rE),t(rO),Math.floor(r(rE,rO))),o.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?o.filter(i?e=>i(e)%t==0:e=>o.count(0,e)%t==0):o:null),o}let rI=rD(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);rI.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?rD(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):rI:null,rI.range;let rK=rD(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds());rK.range;let rq=rD(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes());rq.range;let rR=rD(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes());rR.range;let rP=rD(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getHours());rP.range;let rz=rD(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours());rz.range;let rN=rD(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1);rN.range;let rj=rD(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1);rj.range;let rW=rD(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5));function rU(t){return rD(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}rW.range;let rH=rU(0),rY=rU(1),rG=rU(2),rX=rU(3),rV=rU(4),rZ=rU(5),rQ=rU(6);function rJ(t){return rD(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/6048e5)}rH.range,rY.range,rG.range,rX.range,rV.range,rZ.range,rQ.range;let r0=rJ(0),r1=rJ(1),r2=rJ(2),r5=rJ(3),r3=rJ(4),r4=rJ(5),r6=rJ(6);r0.range,r1.range,r2.range,r5.range,r3.range,r4.range,r6.range;let r8=rD(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());r8.range;let r9=rD(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());r9.range;let r7=rD(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());r7.every=t=>isFinite(t=Math.floor(t))&&t>0?rD(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)}):null,r7.range;let it=rD(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function ie(t,e,r,i,o,a){let n=[[rK,1,1e3],[rK,5,5e3],[rK,15,15e3],[rK,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[i,1,864e5],[i,2,1728e5],[r,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];
vendor: 5,762 bytes, line 1
1function s(e,r,i){let o=Math.abs(r-e)/i,a=rb(([,,t])=>t).right(n,o);if(a===n.length)return t.every(rm(e/31536e6,r/31536e6,i));if(0===a)return rI.every(Math.max(rm(e,r,i),1));let[s,l]=n[o/n[a-1][2]<n[a][2]/o?a-1:a];return s.every(l)}return[function(t,e,r){let i=e<t;i&&([t,e]=[e,t]);let o=r&&"function"==typeof r.range?r:s(t,e,r),a=o?o.range(t,+e+1):[];return i?a.reverse():a},s]}it.every=t=>isFinite(t=Math.floor(t))&&t>0?rD(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null,it.range;let[ir,ii]=ie(it,r9,r0,rW,rz,rR),[io,ia]=ie(r7,r8,rH,rN,rP,rq);function is(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function il(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ih(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var ic={"-":"",_:" ",0:"0"},id=/^\s*\d+/,iu=/^%/,ip=/[\\^$*+?|[\]().{}]/g;function ig(t,e,r){var i=t<0?"-":"",o=(i?-t:t)+"",a=o.length;return i+(a<r?Array(r-a+1).join(e)+o:o)}function iy(t){return t.replace(ip,"\\$&")}function im(t){return RegExp("^(?:"+t.map(iy).join("|")+")","i")}function ix(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function iC(t,e,r){var i=id.exec(e.slice(r,r+1));return i?(t.w=+i[0],r+i[0].length):-1}function ib(t,e,r){var i=id.exec(e.slice(r,r+1));return i?(t.u=+i[0],r+i[0].length):-1}function ik(t,e,r){var i=id.exec(e.slice(r,r+2));return i?(t.U=+i[0],r+i[0].length):-1}function iw(t,e,r){var i=id.exec(e.slice(r,r+2));return i?(t.V=+i[0],r+i[0].length):-1}function iT(t,e,r){var i=id.exec(e.slice(r,r+2));return i?(t.W=+i[0],r+i[0].length):-1}function iB(t,e,r){var i=id.exec(e.slice(r,r+4));return i?(t.y=+i[0],r+i[0].length):-1}function iv(t,e,r){var i=id.exec(e.slice(r,r+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function iS(t,e,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function i_(t,e,r){var i=id.exec(e.slice(r,r+1));return i?(t.q=3*i[0]-3,r+i[0].length):-1}function iA(t,e,r){var i=id.exec(e.slice(r,r+2));return i?(t.m=i[0]-1,r+i[0].length):-1}function iF(t,e,r){var i=id.exec(e.slice(r,r+2));return i?(t.d=+i[0],r+i[0].length):-1}function iL(t,e,r){var i=id.exec(e.slice(r,r+3));return i?(t.m=0,t.d=+i[0],r+i[0].length):-1}function iM(t,e,r){var i=id.exec(e.slice(r,r+2));return i?(t.H=+i[0],r+i[0].length):-1}function i$(t,e,r){var i=id.exec(e.slice(r,r+2));return i?(t.M=+i[0],r+i[0].length):-1}function iE(t,e,r){var i=id.exec(e.slice(r,r+2));return i?(t.S=+i[0],r+i[0].length):-1}function iO(t,e,r){var i=id.exec(e.slice(r,r+3));return i?(t.L=+i[0],r+i[0].length):-1}function iD(t,e,r){var i=id.exec(e.slice(r,r+6));return i?(t.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function iI(t,e,r){var i=iu.exec(e.slice(r,r+1));return i?r+i[0].length:-1}function iK(t,e,r){var i=id.exec(e.slice(r));return i?(t.Q=+i[0],r+i[0].length):-1}function iq(t,e,r){var i=id.exec(e.slice(r));return i?(t.s=+i[0],r+i[0].length):-1}function iR(t,e){return ig(t.getDate(),e,2)}function iP(t,e){return ig(t.getHours(),e,2)}function iz(t,e){return ig(t.getHours()%12||12,e,2)}function iN(t,e){return ig(1+rN.count(r7(t),t),e,3)}function ij(t,e){return ig(t.getMilliseconds(),e,3)}function iW(t,e){return ij(t,e)+"000"}function iU(t,e){return ig(t.getMonth()+1,e,2)}function iH(t,e){return ig(t.getMinutes(),e,2)}function iY(t,e){return ig(t.getSeconds(),e,2)}function iG(t){var e=t.getDay();return 0===e?7:e}function iX(t,e){return ig(rH.count(r7(t)-1,t),e,2)}function iV(t){var e=t.getDay();return e>=4||0===e?rV(t):rV.ceil(t)}function iZ(t,e){return t=iV(t),ig(rV.count(r7(t),t)+(4===r7(t).getDay()),e,2)}function iQ(t){return t.getDay()}function iJ(t,e){return ig(rY.count(r7(t)-1,t),e,2)}function i0(t,e){return ig(t.getFullYear()%100,e,2)}function i1(t,e){return ig((t=iV(t)).getFullYear()%100,e,2)}function i2(t,e){return ig(t.getFullYear()%1e4,e,4)}function i5(t,e){var r=t.getDay();return ig((t=r>=4||0===r?rV(t):rV.ceil(t)).getFullYear()%1e4,e,4)}function i3(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+ig(e/60|0,"0",2)+ig(e%60,"0",2)}function i4(t,e){return ig(t.getUTCDate(),e,2)}function i6(t,e){return ig(t.getUTCHours(),e,2)}function i8(t,e){return ig(t.getUTCHours()%12||12,e,2)}function i9(t,e){return ig(1+rj.count(it(t),t),e,3)}function i7(t,e){return ig(t.getUTCMilliseconds(),e,3)}function ot(t,e){return i7(t,e)+"000"}function oe(t,e){return ig(t.getUTCMonth()+1,e,2)}function or(t,e){return ig(t.getUTCMinutes(),e,2)}function oi(t,e){return ig(t.getUTCSeconds(),e,2)}function oo(t){var e=t.getUTCDay();return 0===e?7:e}function oa(t,e){return ig(r0.count(it(t)-1,t),e,2)}function on(t){var e=t.getUTCDay();return e>=4||0===e?r3(t):r3.ceil(t)}function os(t,e){return t=on(t),ig(r3.count(it(t),t)+(4===it(t).getUTCDay()),e,2)}function ol(t){return t.getUTCDay()}function oh(t,e){return ig(r1.count(it(t)-1,t),e,2)}function oc(t,e){return ig(t.getUTCFullYear()%100,e,2)}function od(t,e){return ig((t=on(t)).getUTCFullYear()%100,e,2)}function ou(t,e){return ig(t.getUTCFullYear()%1e4,e,4)}function op(t,e){var r=t.getUTCDay();return ig((t=r>=4||0===r?r3(t):r3.ceil(t)).getUTCFullYear()%1e4,e,4)}function og(){return"+0000"}function of(){return"%"}function oy(t){return+t}function om(t){return Math.floor(t/1e3)}function ox(t){return new Date(t)}function oC(t){return t instanceof Date?+t:+new Date(+t)}function ob(){return rn.apply((function t(e,r,i,o,a,n,s,l,h,c){var d=r$(),u=d.invert,p=d.domain,g=c(".%L"),f=c(":%S"),y=c("%I:%M"),m=c("%I %p"),x=c("%a %d"),C=c("%b %
1d"),b=c("%B"),k=c("%Y");function w(t){return(h(t)<t?g:l(t)<t?f:s(t)<t?y:n(t)<t?m:o(t)<t?a(t)<t?x:C:i(t)<t?b:k)(t)}return d.invert=function(t){return new Date(u(t))},d.domain=function(t){return arguments.length?p(Array.from(t,oC)):p().map(ox)},d.ticks=function(t){var r=p();return e(r[0],r[r.length-1],null==t?10:t)},d.tickFormat=function(t,e){return null==e?w:c(e)},d.nice=function(t){var e,i,o,a,n,s,l,h=p();return t&&"function"==typeof t.range||(t=r(h[0],h[h.length-1],null==t?10:t)),t?p((e=h,i=t,e=e.slice(),a=0,n=e.length-1,s=e[a],(l=e[n])<s&&(o=a,a=n,n=o,o=s,s=l,l=o),e[a]=i.floor(s),e[n]=i.ceil(l),e)):d},d.copy=function(){return rM(d,t(e,r,i,o,a,n,s,l,h,c))},d})(io,ia,r7,r8,rH,rN,rP,rq,rK,th).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}th=(tl=function(t){var e=t.dateTime,r=t.date,i=t.time,o=t.periods,a=t.days,n=t.shortDays,s=t.months,l=t.shortMonths,h=im(o),c=ix(o),d=im(a),u=ix(a),p=im(n),g=ix(n),f=im(s),y=ix(s),m=im(l),x=ix(l),C={a:function(t){return n[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:iR,e:iR,f:iW,g:i1,G:i5,H:iP,I:iz,j:iN,L:ij,m:iU,M:iH,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:oy,s:om,S:iY,u:iG,U:iX,V:iZ,w:iQ,W:iJ,x:null,X:null,y:i0,Y:i2,Z:i3,"%":of},b={a:function(t){return n[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:i4,e:i4,f:ot,g:od,G:op,H:i6,I:i8,j:i9,L:i7,m:oe,M:or,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:oy,s:om,S:oi,u:oo,U:oa,V:os,w:ol,W:oh,x:null,X:null,y:oc,Y:ou,Z:og,"%":of},k={a:function(t,e,r){var i=p.exec(e.slice(r));return i?(t.w=g.get(i[0].toLowerCase()),r+i[0].length):-1},A:function(t,e,r){var i=d.exec(e.slice(r));return i?(t.w=u.get(i[0].toLowerCase()),r+i[0].length):-1},b:function(t,e,r){var i=m.exec(e.slice(r));return i?(t.m=x.get(i[0].toLowerCase()),r+i[0].length):-1},B:function(t,e,r){var i=f.exec(e.slice(r));return i?(t.m=y.get(i[0].toLowerCase()),r+i[0].length):-1},c:function(t,r,i){return B(t,e,r,i)},d:iF,e:iF,f:iD,g:iv,G:iB,H:iM,I:iM,j:iL,L:iO,m:iA,M:i$,p:function(t,e,r){var i=h.exec(e.slice(r));return i?(t.p=c.get(i[0].toLowerCase()),r+i[0].length):-1},q:i_,Q:iK,s:iq,S:iE,u:ib,U:ik,V:iw,w:iC,W:iT,x:function(t,e,i){return B(t,r,e,i)},X:function(t,e,r){return B(t,i,e,r)},y:iv,Y:iB,Z:iS,"%":iI};function w(t,e){return function(r){var i,o,a,n=[],s=-1,l=0,h=t.length;for(r instanceof Date||(r=new Date(+r));++s<h;)37===t.charCodeAt(s)&&(n.push(t.slice(l,s)),null!=(o=ic[i=t.charAt(++s)])?i=t.charAt(++s):o="e"===i?" ":"0",(a=e[i])&&(i=a(r,o)),n.push(i),l=s+1);return n.push(t.slice(l,s)),n.join("")}}function T(t,e){return function(r){var i,o,a=ih(1900,void 0,1);if(B(a,t,r+="",0)!=r.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(!e||"Z"in a||(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(i=(o=(i=il(ih(a.y,0,1))).getUTCDay())>4||0===o?r1.ceil(i):r1(i),i=rj.offset(i,(a.V-1)*7),a.y=i.getUTCFullYear(),a.m=i.getUTCMonth(),a.d=i.getUTCDate()+(a.w+6)%7):(i=(o=(i=is(ih(a.y,0,1))).getDay())>4||0===o?rY.ceil(i):rY(i),i=rN.offset(i,(a.V-1)*7),a.y=i.getFullYear(),a.m=i.getMonth(),a.d=i.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:+("W"in a)),o="Z"in a?il(ih(a.y,0,1)).getUTCDay():is(ih(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(o+5)%7:a.w+7*a.U-(o+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,il(a)):is(a)}}function B(t,e,r,i){for(var o,a,n=0,s=e.length,l=r.length;n<s;){if(i>=l)return -1;if(37===(o=e.charCodeAt(n++))){if(!(a=k[(o=e.charAt(n++))in ic?e.charAt(n++):o])||(i=a(t,r,i))<0)return -1}else if(o!=r.charCodeAt(i++))return -1}return i}return C.x=w(r,C),C.X=w(i,C),C.c=w(e,C),b.x=w(r,b),b.X=w(i,b),b.c=w(e,b),{format:function(t){var e=w(t+="",C);return e.toString=function(){return t},e},parse:function(t){var e=T(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=T(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,tl.parse,tl.utcFormat,tl.utcParse;let ok=function(t){for(var e=t.length/6|0,r=Array(e),i=0;i<e;)r[i]="#"+t.slice(6*i,6*++i);return r}("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function ow(t){return"string"==typeof t?new Z([[document.querySelector(t)]],[document.documentElement]):new Z([[t]],V)}function oT(t){return function(){return t}}let oB=Math.abs,ov=Math.atan2,oS=Math.cos,o_=Math.max,oA=Math.min,oF=Math.sin,oL=Math.sqrt,oM=Math.PI,o$=oM/2,oE=2*oM;function oO(t){return t>=1?o$:t<=-1?-o$:Math.asin(t)}let oD=Math.PI,oI=2*oD,oK=oI-1e-6;function oq(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class oR{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?oq:function(t){let e=Math.floor(t);if(!(e>=0))throw Error(`invalid digits: ${t}`);if(e>15)return oq;let r=10**e;return function(t){this._+=t[0];for(let e=1,i=t.length;e<i;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,i){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,e,r,i,o,a){this._append`C${+t},${+e},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,e,r,i,o){if(t*=1,e*=1,r*=1,i*=1,(o*=1)<0)throw Error(`negative radius: ${o}`);let a=this._x1,n=this._y1,s=r-t,l=i-e,h=a-t,c=n-e,d=h*h+c*c;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(d>1e-6)if(Math.abs(c*s-l*h)>1e-6&&o){let u=r-a,p=i-n,g=s*s+l*l,f=Math.sqrt(g),y=Math.sqrt(d),m=o*Math.tan((oD-Math.acos((g+d-(u*u+p*p))/(2*f*y)))/2),x=m/y,C=m/f;Math.abs(x-1)>1e-6&&this._append`L${t+x*h},${e+x*c}`,this._append`A${o},${o},0,0,${+(c*u>h*p)},${this._x1=t+C*s},${this._y1=e+C*l}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,r,i,o,a){if(t*=1,e*=1,r*=1,a=!!a,r<0)throw Error(`negative radius: ${r}`);let n=r*Math.cos(i),s=r*Math.sin(i),l=t+n,h=e+s,c=1^a,d=a?i-o:o-i;null===this._x1?this._append`M${l},${h}`:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-h)>1e-6)&&this._append`L${l},${h}`,r&&(d<0&&(d=d%oI+oI),d>oK?this._append`A${r},${r},0,1,${c},${t-n},${e-s}A${r},${r},0,1,${c},${this._x1=l},${this._y1=h}`:d>1e-6&&this._append`A${r},${r},0,${+(d>=oD)},${c},${this._x1=t+r*Math.cos(o)},${this._y1=e+r*Math.sin(o)}`)}rect(t,e,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r*=1}v${+i}h${-r}Z`}toString(){return this._}}function oP(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{let t=Math.floor(r);if(!(t>=0))throw RangeError(`invalid digits: ${r}`);e=t}return t},()=>new oR(e)}function oz(t){return t.innerRadius}function oN(t){return t.outerRadius}function oj(t){return t.startAngle}function oW(t){return t.endAngle}function oU(t){return t&&t.padAngle}function oH(t,e,r,i,o,a,n){var s=t-r,l=e-i,h=(n?a:-a)/oL(s*s+l*l),c=h*l,d=-h*s,u=t+c,p=e+d,g=r+c,f=i+d,y=(u+g)/2,m=(p+f)/2,x=g-u,C=f-p,b=x*x+C*C,k=o-a,w=u*f-g*p,T=(C<0?-1:1)*oL(o_(0,k*k*b-w*w)),B=(w*C-x*T)/b,v=(-w*x-C*T)/b,S=(w*C+x*T)/b,_=(-w*x+C*T)/b,A=B-y,F=v-m,L=S-y,M=_-m;return A*A+F*F>L*L+M*M&&(B=S,v=_),{cx:B,cy:v,x01:-c,y01:-d,x11:B*(o/k-1),y11:v*(o/k-1)}}function oY(){var t=oz,e=oN,r=oT(0),i=null,o=oj,a=oW,n=oU,s=null,l=oP(h);function h(){var h,c,d=+t.apply(this,arguments),u=+e.apply(this,arguments),p=o.apply(this,arguments)-o$,g=a.apply(this,arguments)-o$,f=oB(g-p),y=g>p;if(s||(s=h=l()),u<d&&(c=u,u=d,d=c),u>1e-12)if(f>oE-1e-12)s.moveTo(u*oS(p),u*oF(p)),s.arc(0,0,u,p,g,!y),d>1e-12&&(s.moveTo(d*oS(g),d*oF(g)),s.arc(0,0,d,g,p,y));else{var m,x,C=p,b=g,k=p,w=g,T=f,B=f,v=n.apply(this,arguments)/2,S=v>1e-12&&(i?+i.apply(this,arguments):oL(d*d+u*u)),_=oA(oB(u-d)/2,+r.apply(this,arguments)),A=_,F=_;if(S>1e-12){var L=oO(S/d*oF(v)),M=oO(S/u*oF(v));(T-=2*L)>1e-12?(L*=y?1:-1,k+=L,w-=L):(T=0,k=w=(p+g)/2),(B-=2*M)>1e-12?(M*=y?1:-1,C+=M,b-=M):(B=0,C=b=(p+g)/2)}var $=u*oS(C),E=u*oF(C),O=d*oS(w),D=d*oF(w);if(_>1e-12){var I,K=u*oS(b),q=u*oF(b),R=d*oS(k),P=d*oF(k);if(f<oM)if(I=function(t,e,r,i,o,a,n,s){var l=r-t,h=i-e,c=n-o,d=s-a,u=d*l-c*h;if(!(u*u<1e-12))return u=(c*(e-a)-d*(t-o))/u,[t+u*l,e+u*h]}($,E,R,P,K,q,O,D)){var z,N=$-I[0],j=E-I[1],W=K-I[0],U=q-I[1],H=1/oF(((z=(N*W+j*U)/(oL(N*N+j*j)*oL(W*W+U*U)))>1?0:z<-1?oM:Math.acos(z))/2),Y=oL(I[0]*I[0]+I[1]*I[1]);A=oA(_,(d-Y)/(H-1)),F=oA(_,(u-Y)/(H+1))}else A=F=0}B>1e-12?F>1e-12?(m=oH(R,P,$,E,u,F,y),x=oH(K,q,O,D,u,F,y),s.moveTo(m.cx+m.x01,m.cy+m.y01),F<_?s.arc(m.cx,m.cy,F,ov(m.y01,m.x01),ov(x.y01,x.x01),!y):(s.arc(m.cx,m.cy,F,ov(m.y01,m.x01),ov(m.y11,m.x11),!y),s.arc(0,0,u,ov(m.cy+m.y11,m.cx+m.x11),ov(x.cy+x.y11,x.cx+x.x11),!y),s.arc(x.cx,x.cy,F,ov(x.y11,x.x11),ov(x.y01,x.x01),!y))):(s.moveTo($,E),s.arc(0,0,u,C,b,!y)):s.moveTo($,E),d>1e-12&&T>1e-12?A>
vendor: 19,479 bytes, line 1
11e-12?(m=oH(O,D,K,q,d,-A,y),x=oH($,E,R,P,d,-A,y),s.lineTo(m.cx+m.x01,m.cy+m.y01),A<_?s.arc(m.cx,m.cy,A,ov(m.y01,m.x01),ov(x.y01,x.x01),!y):(s.arc(m.cx,m.cy,A,ov(m.y01,m.x01),ov(m.y11,m.x11),!y),s.arc(0,0,d,ov(m.cy+m.y11,m.cx+m.x11),ov(x.cy+x.y11,x.cx+x.x11),y),s.arc(x.cx,x.cy,A,ov(x.y11,x.x11),ov(x.y01,x.x01),!y))):s.arc(0,0,d,w,k,y):s.lineTo(O,D)}else s.moveTo(0,0);if(s.closePath(),h)return s=null,h+""||null}return h.centroid=function(){var r=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,i=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-oM/2;return[oS(i)*r,oF(i)*r]},h.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:oT(+e),h):t},h.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:oT(+t),h):e},h.cornerRadius=function(t){return arguments.length?(r="function"==typeof t?t:oT(+t),h):r},h.padRadius=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:oT(+t),h):i},h.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:oT(+t),h):o},h.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:oT(+t),h):a},h.padAngle=function(t){return arguments.length?(n="function"==typeof t?t:oT(+t),h):n},h.context=function(t){return arguments.length?(s=null==t?null:t,h):s},h}function oG(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function oX(t){this._context=t}function oV(t){return new oX(t)}function oZ(t){return t[0]}function oQ(t){return t[1]}function oJ(t,e){var r=oT(!0),i=null,o=oV,a=null,n=oP(s);function s(s){var l,h,c,d=(s=oG(s)).length,u=!1;for(null==i&&(a=o(c=n())),l=0;l<=d;++l)!(l<d&&r(h=s[l],l,s))===u&&((u=!u)?a.lineStart():a.lineEnd()),u&&a.point(+t(h,l,s),+e(h,l,s));if(c)return a=null,c+""||null}return t="function"==typeof t?t:void 0===t?oZ:oT(t),e="function"==typeof e?e:void 0===e?oQ:oT(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:oT(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:oT(+t),s):e},s.defined=function(t){return arguments.length?(r="function"==typeof t?t:oT(!!t),s):r},s.curve=function(t){return arguments.length?(o=t,null!=i&&(a=o(i)),s):o},s.context=function(t){return arguments.length?(null==t?i=a=null:a=o(i=t),s):i},s}function o0(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function o1(t){return t}function o2(){var t=o1,e=o0,r=null,i=oT(0),o=oT(oE),a=oT(0);function n(n){var s,l,h,c,d,u=(n=oG(n)).length,p=0,g=Array(u),f=Array(u),y=+i.apply(this,arguments),m=Math.min(oE,Math.max(-oE,o.apply(this,arguments)-y)),x=Math.min(Math.abs(m)/u,a.apply(this,arguments)),C=x*(m<0?-1:1);for(s=0;s<u;++s)(d=f[g[s]=s]=+t(n[s],s,n))>0&&(p+=d);for(null!=e?g.sort(function(t,r){return e(f[t],f[r])}):null!=r&&g.sort(function(t,e){return r(n[t],n[e])}),s=0,h=p?(m-u*C)/p:0;s<u;++s,y=c)c=y+((d=f[l=g[s]])>0?d*h:0)+C,f[l]={data:n[l],index:s,value:d,startAngle:y,endAngle:c,padAngle:x};return f}return n.value=function(e){return arguments.length?(t="function"==typeof e?e:oT(+e),n):t},n.sortValues=function(t){return arguments.length?(e=t,r=null,n):e},n.sort=function(t){return arguments.length?(r=t,e=null,n):r},n.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:oT(+t),n):i},n.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:oT(+t),n):o},n.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:oT(+t),n):a},n}function o5(){}function o3(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function o4(t){this._context=t}function o6(t){return new o4(t)}function o8(t){this._context=t}function o9(t){return new o8(t)}function o7(t){this._context=t}function at(t){return new o7(t)}oR.prototype,Array.prototype.slice,oX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,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)}}},o4.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:o3(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,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:o3(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},o8.prototype={areaStart:o5,areaEnd:o5,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t*=1,e*=1,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:o3(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},o7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:o3(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class ae{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function ar(t){return new ae(t,!0)}function ai(t){return new ae(t,!1)}function ao(t,e){this._basis=new o4(t),this._beta=e}ao.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var i,o=t[0],a=e[0],n=t[r]-o,s=e[r]-a,l=-1;++l<=r;)i=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(o+i*n),this._beta*e[l]+(1-this._beta)*(a+i*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};let aa=function t(e){function r(t){return 1===e?new o4(t):new ao(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function an(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function as(t,e){this._context=t,this._k=(1-e)/6}as.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:an(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,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:an(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let al=function t(e){function r(t){return new as(t,e)}return r.tension=function(e){return t(+e)},r}(0);function ah(t,e){this._context=t,this._k=(1-e)/6}ah.prototype={areaStart:o5,areaEnd:o5,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t*=1,e*=1,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:an(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let ac=function t(e){function r(t){return new ah(t,e)}return r.tension=function(e){return t(+e)},r}(0);function ad(t,e){this._context=t,this._k=(1-e)/6}ad.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,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:an(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let au=function t(e){function r(t){return new ad(t,e)}return r.tension=function(e){return t(+e)},r}(0);function ap(t,e,r){var i=t._x1,o=t._y1,a=t._x2,n=t._y2;if(t._l01_a>1e-12){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,o=(o*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>1e-12){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*h+t._x1*t._l23_2a-e*t._l12_2a)/c,n=(n*h+t._y1*t._l23_2a-r*t._l12_2a)/c}t._context.bezierCurveTo(i,o,a,n,t._x2,t._y2)}function ag(t,e){this._context=t,this._alpha=e}ag.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t*=1,e*=1,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:ap(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let af=function t(e){function r(t){return e?new ag(t,e):new as(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function ay(t,e){this._context=t,this._alpha=e}ay.prototype={areaStart:o5,areaEnd:o5,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t*=1,e*=1,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ap(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let am=function t(e){function r(t){return e?new ay(t,e):new ah(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function ax(t,e){this._context=t,this._alpha=e}ax.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t*=1,e*=1,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ap(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let aC=function t(e){function r(t){return e?new ax(t,e):new ad(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function ab(t){this._context=t}function ak(t){return new ab(t)}function aw(t,e,r){var i=t._x1-t._x0,o=e-t._x1,a=(t._y1-t._y0)/(i||o<0&&-0),n=(r-t._y1)/(o||i<0&&-0);return((a<0?-1:1)+(n<0?-1:1))*Math.min(Math.abs(a),Math.abs(n),.5*Math.abs((a*o+n*i)/(i+o)))||0}function aT(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function aB(t,e,r){var i=t._x0,o=t._y0,a=t._x1,n=t._y1,s=(a-i)/3;t._context.bezierCurveTo(i+s,o+s*e,a-s,n-s*r,a,n)}function av(t){this._context=t}function aS(t){this._context=new a_(t)}function a_(t){this._context=t}function aA(t){return new av(t)}function aF(t){return new aS(t)}function aL(t){this._context=t}function aM(t){var e,r,i=t.length-1,o=Array(i),a=Array(i),n=Array(i);for(o[0]=0,a[0]=2,n[0]=t[0]+2*t[1],e=1;e<i-1;++e)o[e]=1,a[e]=4,n[e]=4*t[e]+2*t[e+1];for(o[i-1]=2,a[i-1]=7,n[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)r=o[e]/a[e-1],a[e]-=r,n[e]-=r*n[e-1];for(o[i-1]=n[i-1]/a[i-1],e=i-2;e>=0;--e)o[e]=(n[e]-o[e+1])/a[e];for(e=0,a[i-1]=(t[i]+o[i-1])/2;e<i-1;++e)a[e]=2*t[e+1]-o[e+1];return[o,a]}function a$(t){return new aL(t)}function aE(t,e){this._context=t,this._t=e}function aO(t){return new aE(t,.5)}function aD(t){return new aE(t,0)}function aI(t){return new aE(t,1)}function aK(t,e,r){this.k=t,this.x=e,this.y=r}ab.prototype={areaStart:o5,areaEnd:o5,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t*=1,e*=1,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},av.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:aB(this,this._t0,aT(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e*=1,(t*=1)!==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,aB(this,aT(this,r=aw(this,t,e)),r);break;default:aB(this,this._t0,r=aw(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(aS.prototype=Object.create(av.prototype)).point=function(t,e){av.prototype.point.call(this,e,t)},a_.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,i,o,a){this._context.bezierCurveTo(e,t,i,r,a,o)}},aL.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var i=aM(t),o=aM(e),a=0,n=1;n<r;++a,++n)this._context.bezierCurveTo(i[0][a],o[0][a],i[1][a],o[1][a],t[n],e[n]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},aE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}},aK.prototype={constructor:aK,scale:function(t){return 1===t?this:new aK(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new aK(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new aK(1,0,0);aK.prototype},44819(t,e,r){"use strict";r.d(e,{T:()=>I});var i=r(39142),o=r(89610),a=r(27422),n=r(96654),s=r(84065),l=r(83231),h=r(20018),c=r(92049),d=r(38446),u=r(55254),p=r(97271),g=r(79415),f=Object.prototype.hasOwnProperty;let y=function(t){if(null==t)return!0;
1if((0,d.A)(t)&&((0,c.A)(t)||"string"==typeof t||"function"==typeof t.splice||(0,u.A)(t)||(0,g.A)(t)||(0,h.A)(t)))return!t.length;var e=(0,l.A)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,p.A)(t))return!(0,s.A)(t).length;for(var r in t)if(f.call(t,r))return!1;return!0};var m=r(8058),x=r(69592),C=r(76335),b=r(24326),k=r(30674),w=r(25707);let T=function(t){return t!=t},B=function(t,e,r){for(var i=r-1,o=t.length;++i<o;)if(t[i]===e)return i;return -1},v=function(t,e){return!!(null==t?0:t.length)&&(e==e?B(t,e,0):(0,w.A)(t,T,0))>-1},S=function(t,e,r){for(var i=-1,o=null==t?0:t.length;++i<o;)if(r(e,t[i]))return!0;return!1};var _=r(64099),A=r(39857),F=r(29959),L=A.A&&1/(0,F.A)(new A.A([,-0]))[1]==1/0?function(t){return new A.A(t)}:function(){};let M=function(t,e,r){var i=-1,o=v,a=t.length,n=!0,s=[],l=s;if(r)n=!1,o=S;else if(a>=200){var h=e?null:L(t);if(h)return(0,F.A)(h);n=!1,o=_.A,l=new k.A}else l=e?[]:s;e:for(;++i<a;){var c=t[i],d=e?e(c):c;if(c=r||0!==c?c:0,n&&d==d){for(var u=l.length;u--;)if(l[u]===d)continue e;e&&l.push(d),s.push(c)}else o(l,d,r)||(l!==s&&l.push(d),s.push(c))}return s};var $=r(53533),E=(0,b.A)(function(t){return M((0,C.A)(t,1,$.A,!0))}),O=r(72888),D=r(64039);class I{constructor(t={}){this._isDirected=!Object.prototype.hasOwnProperty.call(t,"directed")||t.directed,this._isMultigraph=!!Object.prototype.hasOwnProperty.call(t,"multigraph")&&t.multigraph,this._isCompound=!!Object.prototype.hasOwnProperty.call(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=i.A(void 0),this._defaultEdgeLabelFn=i.A(void 0),this._nodes={}
1,this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return o.A(t)||(t=i.A(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return a.A(this._nodes)}sources(){var t=this;return n.A(this.nodes(),function(e){return y(t._in[e])})}sinks(){var t=this;return n.A(this.nodes(),function(e){return y(t._out[e])})}setNodes(t,e){var r=arguments,i=this;return m.A(t,function(t){r.length>1?i.setNode(t,e):i.setNode(t)}),this}setNode(t,e){return Object.prototype.hasOwnProperty.call(this._nodes,t)?arguments.length>1&&(this._nodes[t]=e):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount),this}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=t=>this.removeEdge(this._edgeObjs[t]);
1delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],m.A(this.children(t),t=>{this.setParent(t)}),delete this._children[t]),m.A(a.A(this._in[t]),e),delete this._in[t],delete this._preds[t],m.A(a.A(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(x.A(e))e="\0";else{e+="";for(var r=e;!x.A(r);r=this.parent(r))if(r===t)throw Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}}children(t){if(x.A(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return a.A(e)}else if("\0"===t)return this.nodes();else if(this.hasNode(t))return[]}predecessors(t){var e=this._preds[t];if(e)return a.A(e)}successors(t){var e=this._sucs[t];if(e)return a.A(e)}neighbors(t){var e=this.predecessors(t);if(e)return E(e,this.successors(t))}isLeaf(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;m.A(this._nodes,function(r,i){t(i)&&e.setNode(i,r)}),m.A(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,r.edge(t))});var i={};return this._isCompound&&m.A(e.nodes(),function(t){e.setParent(t,function t(o){var a=r.parent(o);return void 0===a||e.hasNode(a)?(i[o]=a,a):a in i?i[a]:t(a)}(t))}),e}setDefaultEdgeLabel(t){return o.A(t)||(t=i.A(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return O.A(this._edgeObjs)}setPath(t,e){var r=this,i=arguments;return D.A(t,function(t,o){return i.length>1?r.setEdge(t,o,e):r.setEdge(t,o),o}),this}setEdge(){var t,e,r,i,o=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(t=a.v,e=a.w,r=a.name,2==arguments.length&&(i=arguments[1],o=!0)):(t=a,e=arguments[1],r=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),t=""+t,e=""+e,x.A(r)||(r=""+r);var n=R(this._isDirected,t,e,r);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,n))return o&&(this._edgeLabels[n]=i),this;if(!x.A(r)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[n]=o?i:this._defaultEdgeLabelFn(t,e,r);var s=function(t,e,r,i){var o=""+e,a=""+r;if(!t&&o>a){var n=o;o=a,a=n}var s={v:o,w:a};return i&&(s.name=i),s}(this._isDirected,t,e,r);return t=s.v,e=s.w,Object.freeze(s),this._edgeObjs[n]=s,K(this._preds[e],t),K(this._sucs[t],e),this._in[e][n]=s,this._out[t][n]=s,this._edgeCount++,this}edge(t,e,r){var i=1==arguments.length?P(this._isDirected,arguments[0]):R(this._isDirected,t,e,r);return this._edgeLabels[i]}hasEdge(t,e,r){var i=1==arguments.length?P(this._isDirected,arguments[0]):R(this._isDirected,t,e,r);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(t,e,r){var i=1==arguments.length?P(this._isDirected,arguments[0]):R(this._isDirected,t,e,r),o=this._edgeObjs[i];return o&&(t=o.v,e=o.w,delete this._edgeLabels[i],delete this._edgeObjs[i],q(this._preds[e],t),q(this._sucs[t],e),delete this._in[e][i],delete this._out[t][i],this._edgeCount--),this}inEdges(t,e){var r=this._in[t];if(r){var i=O.A(r);return e?n.A(i,function(t){return t.v===e}):i}}outEdges(t,e){var r=this._out[t];if(r){var i=O.A(r);return e?n.A(i,function(t){return t.w===e}):i}}nodeEdges(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))}}function K(t,e){t[e]?t[e]++:t[e]=1}function q(t,e){--t[e]||delete t[e]}function R(t,e,r,i){var o=""+e,a=""+r;if(!t&&o>a){var n=o;o=a,a=n}return o+"\x01"+a+"\x01"+(x.A(i)?"\0":i)}function P(t,e){return R(t,e.v,e.w,e.name)}I.prototype._nodeCount=0,I.prototype._edgeCount=0},697(t,e,r){"use strict";r.d(e,{T:()=>i.T});var i=r(44819)},99418(t,e,r){"use strict";let i;function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r<e;r++)i[r]=t[r];return i}r.d(e,{A:()=>tC});
1let a=Object.entries,n=Object.setPrototypeOf,s=Object.isFrozen,l=Object.getPrototypeOf,h=Object.getOwnPropertyDescriptor,c=Object.freeze,d=Object.seal,u=Object.create,p="u">typeof Reflect&&Reflect,g=p.apply,f=p.construct;c||(c=function(t){return t}),d||(d=function(t){return t}),g||(g=function(t,e){for(var r=arguments.length,i=Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return t.apply(e,i)}),f||(f=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new t(...r)});let y=I(Array.prototype.forEach),m=I(Array.prototype.lastIndexOf),x=I(Array.prototype.pop),C=I(Array.prototype.push),b=I(Array.prototype.splice),k=Array.isArray,w=I(String.prototype.toLowerCase),T=I(String.prototype.toString),B=I(String.prototype.match),v=I(String.prototype.replace),S=I(String.prototype.indexOf),_=I(String.prototype.trim),A=I(Number.prototype.toString),F=I(Boolean.prototype.toString),L="u"<typeof BigInt?null:I(BigInt.prototype.toString),M="u"<typeof Symbol?null:I(Symbol.prototype.toString),$=I(Object.prototype.hasOwnProperty),E=I(Object.prototype.toString),O=I(RegExp.prototype.test),D=(tx=TypeError,function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return f(tx,e)});function I(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return g(t,e,i)}}function K(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;if(n&&n(t,null),!k(e))return t;let i=e.length;for(;i--;){let o=e[i];if("string"==typeof o){let t=r(o);t!==o&&(s(e)||(e[i]=t),o=t)}t[o]=!0}return t}function q(t){let e=u(null);for(let i of a(t)){var r=function(t){if(Array.isArray(t))return t}(i)||function(t){var e=null==t?null:"u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,i,o,a,n=[],s=!0,l=!1;try{o=(e=e.call(t)).next,!1;for(;!(s=(r=o.call(e)).done)&&(n.push(r.value),2!==n.length);s=!0);}catch(t){l=!0,i=t}finally{try{if(!s&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(l)throw i}}return n}}(i)||function(t){if(t){if("string"==typeof t)return o(t,2);var e=({}).toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?o(t,2):void 0}}(i)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let a=r[0],n=r[1];$(t,a)&&(k(n)?e[a]=function(t){for(let e=0;e<t.length;e++)$(t,e)||(t[e]=null);return t}(n):n&&"object"==typeof n&&n.constructor===Object?e[a]=q(n):e[a]=n)}return e}function R(t,e){for(;null!==t;){let r=h(t,e);if(r){if(r.get)return I(r.get);if("function"==typeof r.value)return I(r.value)}t=l(t)}return function(){return null}}let P=c(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),z=c(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),N=c(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),j=c(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),W=c(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),U=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),H=c(["#text"]),Y=c(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
1spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),G=c(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),X=c(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),V=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Z=d(/{{[\w\W]*|^[\w\W]*}}/g),Q=d(/<%[\w\W]*|^[\w\W]*%>/g),J=d(/\${[\w\W]*/g),tt=d(/^data-[\-\w.\u00B7-\uFFFF]+$/),te=d(/^aria-[\-\w]+$/),tr=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ti=d(/^(?:\w+script|data):/i),to=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ta=d(/^html$/i),tn=d(/^[a-z][.\w]*(-[.\w]+)+$/i),ts=d(/<[/\w!]/g),tl=d(/<[/\w]/g),th=d(/<\/no(script|embed|frames)/i),tc=d(/\/>/i),td=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],tu=c(K({},td)),tp=(i={},y(td,t=>{i[t]=d(RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),c(i)),tg=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let r=null,i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(r=e.getAttribute(i));let o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}},tf=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ty=function(t,e,r,i){return $(t,e)&&k(t[e])?K(i.base?q(i.base):{},t[e],i.transform):r},tm=function(t,e,r){let i=$(t,e)?t[e]:void 0;return i&&"object"==typeof i?q(i):r()};var tx,tC=function t(){let e,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?null:window,o=e=>t(e);
1if(o.version="3.4.15",o.removed=[],!i||!i.document||9!==i.document.nodeType||!i.Element)return o.isSupported=!1,o;let n=i.document,s=n,l=s.currentScript;i.DocumentFragment;let h=i.HTMLTemplateElement,p=i.Node,g=i.Element,f=i.NodeFilter;void 0===i.NamedNodeMap&&(i.NamedNodeMap||i.MozNamedAttrMap),i.HTMLFormElement;let I=i.DOMParser,td=i.trustedTypes,tx=g.prototype,tC=R(tx,"cloneNode"),tb=R(tx,"remove"),tk=R(tx,"removeAttributeNode"),tw=R(tx,"nextSibling"),tT=R(tx,"childNodes"),tB=R(tx,"parentNode"),tv=R(tx,"shadowRoot"),tS=R(tx,"attributes"),t_=p&&p.prototype?R(p.prototype,"nodeType"):null,tA=p&&p.prototype?R(p.prototype,"nodeName"):null,tF=p&&p.prototype?R(p.prototype,"ownerDocument"):null,tL=function(t){return t_?t_(t):t.nodeType},tM=function(t){return tA?tA(t):t.nodeName};if("function"==typeof h){let t=n.createElement("template");t.content&&t.content.ownerDocument&&(n=t.content.ownerDocument)}let t$="",tE=!1,tO=0,tD=function(){if(tO>0)throw D('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},tI=function(t){tD(),tO++;try{return e.createHTML(t)}finally{tO--}},tK=function(t){tD(),tO++;try{return e.createScriptURL(t)}finally{tO--}},tq=n,tR=tq.implementation,tP=tq.createNodeIterator,tz=tq.createDocumentFragment,tN=tq.getElementsByTagName,tj=s.importNode,tW=tf();o.isSupported="function"==typeof a&&"function"==typeof tB&&tR&&void 0!==tR.createHTMLDocument;let tU=tr,tH=null,tY=K({},[...P,...z,...N,...W,...H]),tG=null,tX=K({},[...Y,...G,...X,...V]),tV=Object.seal(u(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}})),tZ=null,tQ=null,tJ=Object.seal(u(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),t0=!0,t1=!0,t2=!1,t5=!0,t3=!1,t4=!0,t6=!1,t8=!1,t9=null,t7=null,et=!1,ee=!1,er=!1,ei=!1,eo=!0,ea=!1,en="user-content-",es=!0,el=!1,eh={},ec=null,ed=K({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),eu=null,ep=K({},["audio","video","img","source","image","track"]),eg=null,ef=K({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ey="http://www.w3.org/1998/Math/MathML",em="http://www.w3.org/2000/svg",ex="http://www.w3.org/1999/xhtml",eC=ex,eb=!1,ek=null,ew=K({},[ey,em,ex],T),eT=c(["mi","mo","mn","ms","mtext"]),eB=K({},eT),ev=c(["annotation-xml"]),eS=K({},ev),e_=K({},["title","style","font","a","script"]),eA=null,eF=["application/xhtml+xml","text/html"],eL=null,eM=null,e$=n.createElement("form"),eE=function(t){return t instanceof RegExp||t instanceof Function},eO=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(eM&&eM===t)return;t&&"object"==typeof t||(t={}),t=q(t),eL="application/xhtml+xml"===(eA=-1===eF.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE)?T:w,tH=ty(t,"ALLOWED_TAGS",tY,{transform:eL}),tG=ty(t,"ALLOWED_ATTR",tX,{transform:eL}),ek=ty(t,"ALLOWED_NAMESPACES",ew,{transform:T}),eg=ty(t,"ADD_URI_SAFE_ATTR",ef,{transform:eL,base:ef}),eu=ty(t,"ADD_DATA_URI_TAGS",ep,{transform:eL,base:ep}),ec=ty(t,"FORBID_CONTENTS",ed,{transform:eL}),tZ=ty(t,"FORBID_TAGS",q({}),{transform:eL}),tQ=ty(t,"FORBID_ATTR",q({}),{transform:eL}),eh=!!$(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?q(t.USE_PROFILES):t.USE_PROFILES),t0=!1!==t.ALLOW_ARIA_ATTR,t1=!1!==t.ALLOW_DATA_ATTR,t2=t.ALLOW_UNKNOWN_PROTOCOLS||!1,t5=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,t3=t.SAFE_FOR_TEMPLATES||!1,t4=!1!==t.SAFE_FOR_XML,t6=t.WHOLE_DOCUMENT||!1,ee=t.RETURN_DOM||!1,er
1=t.RETURN_DOM_FRAGMENT||!1,ei=t.RETURN_TRUSTED_TYPE||!1,et=t.FORCE_BODY||!1,eo=!1!==t.SANITIZE_DOM,ea=t.SANITIZE_NAMED_PROPS||!1,es=!1!==t.KEEP_CONTENT,el=t.IN_PLACE||!1,tU=!function(t){try{return O(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?tr:t.ALLOWED_URI_REGEXP,eC="string"==typeof t.NAMESPACE?t.NAMESPACE:ex,eB=tm(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>K({},eT)),eS=tm(t,"HTML_INTEGRATION_POINTS",()=>K({},ev));let i=tm(t,"CUSTOM_ELEMENT_HANDLING",()=>u(null));if(tV=u(null),$(i,"tagNameCheck")&&eE(i.tagNameCheck)&&(tV.tagNameCheck=i.tagNameCheck),$(i,"attributeNameCheck")&&eE(i.attributeNameCheck)&&(tV.attributeNameCheck=i.attributeNameCheck),$(i,"allowCustomizedBuiltInElements")&&"boolean"==typeof i.allowCustomizedBuiltInElements&&(tV.allowCustomizedBuiltInElements=i.allowCustomizedBuiltInElements),d(tV),t3&&(t1=!1),er&&(ee=!0),eh&&(tH=K({},H),tG=u(null),!0===eh.html&&(K(tH,P),K(tG,Y)),!0===eh.svg&&(K(tH,z),K(tG,G),K(tG,V)),!0===eh.svgFilters&&(K(tH,N),K(tG,G),K(tG,V)),!0===eh.mathMl&&(K(tH,W),K(tG,X),K(tG,V))),tJ.tagCheck=null,tJ.attributeCheck=null,$(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?tJ.tagCheck=t.ADD_TAGS:k(t.ADD_TAGS)&&(tH===tY&&(tH=q(tH)),K(tH,t.ADD_TAGS,eL))),$(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?tJ.attributeCheck=t.ADD_ATTR:k(t.ADD_ATTR)&&(tG===tX&&(tG=q(tG)),K(tG,t.ADD_ATTR,eL))),$(t,"ADD_FORBID_CONTENTS")&&k(t.ADD_FORBID_CONTENTS)&&(ec===ed&&(ec=q(ec)),K(ec,t.ADD_FORBID_CONTENTS,eL)),es&&(tH["#text"]=!0),t6&&K(tH,["html","head","body"]),tH.table&&(K(tH,["tbody"]),delete tZ.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let r=e;e=t.TRUSTED_TYPES_POLICY;try{t$=tI("")}catch(t){throw e=r,t}}else null===t.TRUSTED_TYPES_POLICY?(e=void 0,t$=""):(void 0===e&&(tE||(r=tg(td,l),tE=!0),e=r),e&&"string"==typeof t$&&(t$=tI("")));c&&c(t),eM=t},eD=K({},[...z,...N,...j]),eI=K({},[...W,...U]),eK=function(t){var e,r,i;let o=tB(t);o&&o.tagName||(o={namespaceURI:eC,tagName:"template"});let a=w(t.tagName),n=w(o.tagName);return!!ek[t.namespaceURI]&&(t.namespaceURI===em?(e=o).namespaceURI===ex?"svg"===a:e.namespaceURI===ey?"svg"===a&&("annotation-xml"===n||eB[n]):!!eD[a]:t.namespaceURI===ey?(r=o).namespaceURI===ex?"math"===a:r.namespaceURI===em?"math"===a&&eS[n]:!!eI[a]:t.namespaceURI===ex?((i=o).namespaceURI!==em||!!eS[n])&&(i.namespaceURI!==ey||!!eB[n])&&!eI[a]&&(e_[a]||!eD[a]):"application/xhtml+xml"===eA&&!!ek[t.namespaceURI])},eq=function(t){C(o.removed,{element:t});try{tB(t).removeChild(t)}catch(e){if(tb(t),!tB(t))throw D("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},eR=function(t,e,r){try{tk(t,e)}catch(e){try{t.removeAttribute(r)}catch(t){}}},eP=function(t){ej(t);let e=tT(t);if(e){let t=[];y(e,e=>{C(t,e)}),y(t,t=>{try{tb(t)}catch(t){}})}let r=tS(t);if(r)for(let e=r.length-1;e>=0;--e){let i=r[e],o=i&&i.name;"string"==typeof o&&eR(t,i,o)}},ez=function(t,e,r){if(!r)try{r=e.getAttributeNode(t)}catch(t){r=null}C(o.removed,{attribute:r||null,from:e});try{r?tk(e,r):e.removeAttribute(t)}catch(r){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(ee||er)try{eq(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},eN=function(t){let e=tS(t);if(e)for(let r=e.length-1;r>=0;--r){let i=e[r],o=i&&i.name;"string"!=typeof o||tG[eL(o)]||eR(t,i,o)}},ej=function(t){let e=[t];for(;e.length>0;){let t=e.pop();1===tL(t)&&eN(t);let r=tT(t);if(r)for(let t=r.length-1;t>=0;--t)e.push(r[t])}},eW=function(t,e){return!!t4&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},eU=function(t){if(!t4)return;let e=[t];for(;e.length>0;){let t=e.pop(),r=tL(t);if(7===r||8===r&&O(tl,t.data)){try{tb(t)}catch(t){}continue}if(1===r){let e=eL(tM(t));try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&eW("for",e)&&t.removeAttribute("for")}catch(t){}}let i=tT(t);if(i)for(let t=i.length-1;t>=0;--t)e.push(i[t])}},eH=function(t){let r=null,i=null;if(et)t="<remove></remove>"+t;else{let e=B(t,/^[\r\n\t ]+/);i=e&&e[0]}"application/xhtml+xml"===eA&&eC===ex&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");let o=e?tI(t):t;if(eC===ex)try{r=new I().parseFromString(o,eA)}catch(t){}if(!r||!r.documentElement){r=tR.createDocument(eC,"template",null);try{r.documentElement.innerHTML=eb?t$:o}catch(t){}}let a=r.body||r.documentElement;return(t&&i&&a.insertBefore(n.createTextNode(i),a.childNodes[0]||null),eC===ex)?tN.call(r,t6?"html":"body")[0]:t6?r.documentElement:a},eY=function(t){let e=tF?tF(t):t.ownerDocument;return tP.call(e||t,t,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},eG=function(t){return t=v(t,Z," "),t=v(t,Q," "),t=v(t,J," ")},eX=function(t){var e;t.normalize();let r=tF?tF(t):t.ownerDocument,i=tP.call(r||t,t,f.SHOW_TEXT|f.SHOW_COMMENT|f.SHOW_CDATA_SECTION|f.SHOW_PROCESSING_INSTRUCTION,null),o=i.nextNode();for(;o;)o.data=eG(o.data),o=i.nextNode();let a=null==(e=t.querySelectorAll)?void 0:e.call(t,"template");a&&y(a,t=>{eZ(t.content)&&eX(t.content)})},eV=function(t){let e=tA?tA(t):null;return"string"==typeof e&&"form"===eL(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==tS(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.removeAttributeNode||"function"!=typeof t.getAttributeNode||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==t_(t)||t.childNodes!==tT(t))},eZ=function(t){if(!t_||"object"!=typeof t||null===t)return!1;try{return 11===t_(t)}
1catch(t){return!1}},eQ=function(t){if(!t_||"object"!=typeof t||null===t)return!1;try{return"number"==typeof t_(t)}catch(t){return!1}};function eJ(t,e,r){0!==t.length&&y(t,t=>{t.call(o,e,r,eM)})}let e0=function(t,e){if(t instanceof RegExp)return O(t,e);if(t instanceof Function){for(var r=arguments.length,i=Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return!!t(e,...i)}return!1},e1=function(t,e,r){if(!tZ[e]&&e8(e)&&e0(tV.tagNameCheck,e))return!1;if(es&&!ec[e]){let e=tB(t),i=tT(t);if(i&&e){let o=i.length;for(let a=o-1;a>=0;--a){let o=t===r?tC(i[a],!0):i[a];e.insertBefore(o,tw(t))}}}return eq(t),!0},e2=function(t,e,r,i){return 0===t.length?e:e===r||e===i?q(e):e},e5=function(t,e){return t!==e&&null===tB(t)&&(el&&ej(t),!0)},e3=function(t,e){if(eJ(tW.beforeSanitizeElements,t,null),e5(t,e))return!0;if(eV(t))return eq(t),!0;let r=eL(tM(t));if(tH=e2(tW.uponSanitizeElement,tH,tY,t9),eJ(tW.uponSanitizeElement,t,{tagName:r,allowedTags:tH}),e5(t,e))return!0;if(t4&&t.hasChildNodes()&&!eQ(t.firstElementChild)&&O(ts,t.textContent)&&O(ts,t.innerHTML)||t4&&t.namespaceURI===ex&&tu[r]&&(eQ(t.firstElementChild)||"string"==typeof t.textContent&&O(tp[r],t.textContent))||7===t.nodeType||t4&&8===t.nodeType&&O(tl,t.data))return eq(t),!0;if(tZ[r]||!(tJ.tagCheck instanceof Function&&tJ.tagCheck(r))&&!tH[r]){let i=e1(t,r,e);return!1===i&&eJ(tW.afterSanitizeElements,t,null),i}if(1===tL(t)&&!eK(t)||("noscript"===r||"noembed"===r||"noframes"===r)&&O(th,t.innerHTML))return eq(t),!0;if(t3&&3===t.nodeType){let e=eG(t.textContent);t.textContent!==e&&(C(o.removed,{element:t.cloneNode()}),t.textContent=e)}return eJ(tW.afterSanitizeElements,t,null),!1},e4=function(t,e,r){if(tQ[e]||eW(e,t)||eo&&("id"===e||"name"===e)&&(r in n||r in e$))return!1;let i=tG[e]||tJ.attributeCheck instanceof Function&&tJ.attributeCheck(e,t);return!!(t1&&O(tt,e)||t0&&O(te,e))||(i?!(!(eg[e]||O(tU,v(r,to,"")))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==S(r,"data:")||!eu[t])&&(!t2||O(ti,v(r,to,""))))||!r:e8(t)&&e0(tV.tagNameCheck,t)&&e0(tV.attributeNameCheck,e,t)||"is"===e&&tV.allowCustomizedBuiltInElements&&e0(tV.tagNameCheck,r))},e6=K({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),e8=function(t){return!e6[w(t)]&&O(tn,t)},e9=function(t,r,i,o){if(e&&"object"==typeof td&&"function"==typeof td.getAttributeType&&!i)switch(td.getAttributeType(t,r)){case"TrustedHTML":return tI(o);case"TrustedScriptURL":return tK(o)}return o},e7=function(t,e,r,i){try{if(r?t.setAttributeNS(r,e,i):t.setAttribute(e,i),eV(t))return eq(t),!1;return!0}catch(r){return ez(e,t),!1}},rt=function(t){eJ(tW.beforeSanitizeAttributes,t,null);let e=t.attributes;if(!e||eV(t))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:tG=e2(tW.uponSanitizeAttribute,tG,tX,t7),forceKeepAttr:void 0},i=e.length,a=eL(t.nodeName);for(;i--;){let n=e[i],s=n.name,l=n.namespaceURI,h=n.value,c=eL(s),d="value"===s?h:_(h),u=!1;if(r.attrName=c,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,eJ(tW.uponSanitizeAttribute,t,r),d=r.attrValue,ea&&("id"===c||"name"===c)&&0!==S(d,en)&&(ez(s,t,n),d=en+d,u=!0),t4&&O(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)||"attributename"===c&&B(d,"href")){ez(s,t,n);continue}if(!r.forceKeepAttr){if(!r.keepAttr||!t5&&O(tc,d)||(t3&&(d=eG(d)),!e4(a,c,d))){ez(s,t,n);continue}(d=e9(a,c,l,d))!==h&&e7(t,s,l,d)&&u&&x(o.removed)}}eJ(tW.afterSanitizeAttributes,t,null)},re=function(t){let e=null,r=eY(t);for(eJ(tW.beforeSanitizeShadowDOM,t,null);e=r.nextNode();)if(eJ(tW.uponSanitizeShadowNode,e,null),e3(e,t),rt(e),eZ(e.content)&&re(e.content),1===tL(e)){let t=tv(e);eZ(t)&&(rr(t),re(t))}eJ(tW.afterSanitizeShadowDOM,t,null)},rr=function(t){let e=[{node:t,shadow:null}];for(;e.length>0;){let t=e.pop();if(t.shadow){re(t.shadow);continue}let r=t.node,i=1===tL(r),o=tT(r);if(o)for(let t=o.length-1;t>=0;--t)e.push({node:o[t],shadow:null});if(i){let t=tA?tA(r):null;if("string"==typeof t&&"template"===eL(t)){let t=r.content;eZ(t)&&e.push({node:t,shadow:null})}}if(i){let t=tv(r);eZ(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return o.sanitize=function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,a=null,n=null,l=null;if((eb=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!eQ(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return A(t);case"boolean":return F(t);case"bigint":return L?L(t):"0";case"symbol":return M?M(t):"Symbol()";case"undefined":default:return E(t);case"function":case"object":{if(null===t)return E(t);let e=R(t,"toString");if("function"==typeof e){let r=e(t);return"string"==typeof r?r:E(r)}return E(t)}}}(t)))throw D("dirty is not a string, aborting");if(!o.isSupported)return t;t8?(tH=t9,tG=t7):eO(r),(tW.uponSanitizeElement.length>0||tW.uponSanitizeAttribute.length>0)&&(tH=q(tH)),tW.uponSanitizeAttribute.length>0&&(tG=q(tG)),o.removed=[];let h=el&&"string"!=typeof t&&eQ(t);if(h){eU(t);let e=tM(t);if("string"==typeof e){let r=eL(e);if(!tH[r]||tZ[r])throw eP(t),D("root node is forbidden and cannot be sanitized in-place")}if(eV(t))throw eP(t),D("root node is clobbered and cannot be sanitized in-place");try{rr(t)}catch(e){throw eP(t),e}}else if(eQ(t))1===(a=(i=eH("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?i=a:i.appendChild(a),rr(i);else{if(!ee&&!t3&&!t6&&-1===t.indexOf("<"))return e&&ei?tI(t):t;if(!(i=eH(t)))return ee?null:ei?t$:""}i&&et&&eq(i.firstChild);let c=h?t:i;try{let t=eY(c);for(;n=t.nextNode();)e3(n,c),rt(n),eZ(n.content)&&re(n.content)}catch(e){throw h&&(eP(t),y(o.removed,t=>{t.element&&ej(t.element)})),e}if(h)return y(o.removed,t=>{t.element&&ej(t.element)}),t3&&eX(t),t;if(ee){if(t3&&eX(i),er)for(l=tz.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(tG.shadowroot||tG.shadowrootmode)&&(l=tj.call(s,l,!0)),l}let d=t6?i.outerHTML:i.innerHTML;return t6&&tH["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&O(ta,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),t3&&(d=eG(d)),e&&ei?tI(d):d},o.setConfig=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eO(t),t8=!0,t9=tH,t7=tG},o.clearConfig=function(){eM=null,t8=!1,t9=null,t7=null,e=r,t$=""},o.isValidAttribute=function(t,e,r){return eM||eO({}),e4(eL(t),eL(e),r)},o.addHook=function(t,e){"function"!=typeof e||$(tW,t)&&C(tW[t],e)},o.removeHook=function(t,e){if($(tW,t)){if(void 0!==e){let r=m(tW[t],e);return -1===r?void 0:b(tW[t],r,1)[0]}return x(tW[t])}},o.removeHooks=function(t){$(tW,t)&&(tW[t]=[])},o.removeAllHooks=function(){tW=tf()},o}()},99125(t,e,r){"use strict";
1function i(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}r.d(e,{b:()=>i})},89826(t,e,r){"use strict";r.d(e,{$V:()=>n,Av:()=>i,GX:()=>g,ML:()=>B,NA:()=>d,OG:()=>o,Qb:()=>y,R_:()=>s,Uw:()=>u,VP:()=>l,XZ:()=>b,ZR:()=>C,_u:()=>w,cT:()=>p,i1:()=>k,iq:()=>f,kj:()=>a,pj:()=>c,q:()=>m,ri:()=>T,vC:()=>h,x6:()=>x});let i="[object RegExp]",o="[object String]",a="[object Number]",n="[object Boolean]",s="[object Arguments]",l="[object Symbol]",h="[object Date]",c="[object Map]",d="[object Set]",u="[object Array]",p="[object ArrayBuffer]",g="[object Object]",f="[object DataView]",y="[object Uint8Array]",m="[object Uint8ClampedArray]",x="[object Uint16Array]",C="[object Uint32Array]",b="[object Int8Array]",k="[object Int16Array]",w="[object Int32Array]",T="[object Float32Array]",B="[object Float64Array]"},14608(t,e,r){"use strict";r.d(e,{N:()=>o});var i=r(99125);function o(t){return null!==t&&"object"==typeof t&&"[object Arguments]"===(0,i.b)(t)}},79480(t,e,r){"use strict";function i(t){var e;return null!=t&&"function"!=typeof t&&Number.isSafeInteger(e=t.length)&&e>=0}r.d(e,{X:()=>i})},19663(t,e,r){"use strict";r.d(e,{i:()=>o});var i=r(42796);function o(t){return(0,i.i)(t)}},61069(t,e,r){"use strict";r.d(e,{P:()=>o});let i="object"==typeof globalThis&&globalThis||"object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||function(){return this}();function o(t){return void 0!==i.Buffer&&i.Buffer.isBuffer(t)}},37110(t,e,r){"use strict";function i(t){return null==t||"object"!=typeof t&&"function"!=typeof t}r.d(e,{s:()=>i})},42796(t,e,r){"use strict";function i(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}r.d(e,{i:()=>i})},61665(t,e,r){"use strict";r.d(e,{A:()=>n});var i=r(91553),o=r(63122);let a=class{constructor(){this.type=o.Z.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=o.Z.ALL}is(t){return this.type===t}},n=new class{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new a}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=o.Z.ALL,this}_ensureHSL(){let t=this.data,{h:e,s:r,l:o}=t;void 0===e&&(t.h=i.A.channel.rgb2hsl(t,"h")),void 0===r&&(t.s=i.A.channel.rgb2hsl(t,"s")),void 0===o&&(t.l=i.A.channel.rgb2hsl(t,"l"))}_ensureRGB(){let t=this.data,{r:e,g:r,b:o}=t;void 0===e&&(t.r=i.A.channel.hsl2rgb(t,"r")),void 0===r&&(t.g=i.A.channel.hsl2rgb(t,"g")),void 0===o&&(t.b=i.A.channel.hsl2rgb(t,"b"))}get r(){let t=this.data,e=t.r;return this.type.is(o.Z.HSL)||void 0===e?(this._ensureHSL(),i.A.channel.hsl2rgb(t,"r")):e}get g(){let t=this.data,e=t.g;return this.type.is(o.Z.HSL)||void 0===e?(this._ensureHSL(),i.A.channel.hsl2rgb(t,"g")):e}get b(){let t=this.data,e=t.b;return this.type.is(o.Z.HSL)||void 0===e?(this._ensureHSL(),i.A.channel.hsl2rgb(t,"b")):e}get h(){let t=this.data,e=t.h;return this.type.is(o.Z.RGB)||void 0===e?(this._ensureRGB(),i.A.channel.rgb2hsl(t,"h")):e}get s(){let t=this.data,e=t.s;return this.type.is(o.Z.RGB)||void 0===e?(this._ensureRGB(),i.A.channel.rgb2hsl(t,"s")):e}get l(){let t=this.data,e=t.l;return this.type.is(o.Z.RGB)||void 0===e?(this._ensureRGB(),i.A.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(o.Z.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(o.Z.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(o.Z.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(o.Z.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(o.Z.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(o.Z.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}({r:0,g:0,b:0,a:0},"transparent")},16408(t,e,r){"use strict";r.d(e,{A:()=>c});var i=r(61665),o=r(63122);let a={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;let e=t.match(a.re);if(!e)return;let r=e[1],o=parseInt(r,16),n=r.length,s=n%4==0,l=n>4,h=l?1:17,c=l?8:4,d=s?0:-1,u=l?255:15;return i.A.set({r:(o>>c*(d+3)&u)*h,g:(o>>c*(d+2)&u)*h,b:(o>>c*(d+1)&u)*h,a:s?(o&u)*h/255:1},t)},stringify:t=>{let{r:e,g:r,b:i,a}=t;return a<1?`#${o.Y[Math.round(e)]}${o.Y[Math.round(r)]}${o.Y[Math.round(i)]}${o.Y[Math.round(255*a)]}`:`#${o.Y[Math.round(e)]}${o.Y[Math.round(r)]}${o.Y[Math.round(i)]}`}};var n=r(91553);let s={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{let e=t.match(s.hueRe);if(e){let[,t,r]=e;switch(r){case"grad":return n.A.channel.clamp.h(.9*parseFloat(t));case"rad":return n.A.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return n.A.channel.clamp.h(360*parseFloat(t))}}return n.A.channel.clamp.h(parseFloat(t))},parse:t=>{let e=t.charCodeAt(0);if(104!==e&&72!==e)return;let r=t.match(s.re);if(!r)return;let[,o,a,l,h,c]=r;return i.A.set({h:s._hue2deg(o),s:n.A.channel.clamp.s(parseFloat(a)),l:n.A.channel.clamp.l(parseFloat(l)),a:h?n.A.channel.clamp.a(c?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{let{h:e,s:r,l:i,a:o}=t;return o<1?`hsla(${n.A.lang.round(e)}, ${n.A.lang.round(r)}%, ${n.A.lang.round(i)}%, ${o})`:`hsl(${n.A.lang.round(e)}, ${n.A.lang.round(r)}%, ${n.A.lang.round(i)}%)`}},l={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",s
1almon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();let e=l.colors[t];if(e)return a.parse(e)},stringify:t=>{let e=a.stringify(t);for(let t in l.colors)if(l.colors[t]===e)return t}},h={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{let e=t.charCodeAt(0);if(114!==e&&82!==e)return;let r=t.match(h.re);if(!r)return;let[,o,a,s,l,c,d,u,p]=r;return i.A.set({r:n.A.channel.clamp.r(a?2.55*parseFloat(o):parseFloat(o)),g:n.A.channel.clamp.g(l?2.55*parseFloat(s):parseFloat(s)),b:n.A.channel.clamp.b(d?2.55*parseFloat(c):parseFloat(c)),a:u?n.A.channel.clamp.a(p?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{let{r:e,g:r,b:i,a:o}=t;return o<1?`rgba(${n.A.lang.round(e)}, ${n.A.lang.round(r)}, ${n.A.lang.round(i)}, ${n.A.lang.round(o)})`:`rgb(${n.A.lang.round(e)}, ${n.A.lang.round(r)}, ${n.A.lang.round(i)})`}},c={format:{keyword:l,hex:a,rgb:h,rgba:h,hsl:s,hsla:s},parse:t=>{if("string"!=typeof t)return t;let e=a.parse(t)||h.parse(t)||s.parse(t)||l.parse(t);if(e)return e;throw Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(o.Z.HSL)||void 0===t.data.r?s.stringify(t):!(t.a<1)&&Number.isInteger(t.r)&&Number.isInteger(t.g)&&Number.isInteger(t.b)?a.stringify(t):h.stringify(t)}},63122(t,e,r){"use strict";r.d(e,{Y:()=>o,Z:()=>a});var i=r(91553);let o={};for(let t=0;t<=255;t++)o[t]=i.A.unit.dec2hex(t);let a={ALL:0,RGB:1,HSL:2}},95635(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(91553),o=r(16408);let a=(t,e,r)=>{let a=o.A.parse(t),n=a[e],s=i.A.channel.clamp[e](n+r);return n!==s&&(a[e]=s),o.A.stringify(a)}},8232(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(91553),o=r(16408);let a=(t,e)=>{let r=o.A.parse(t);for(let t in e)r[t]=i.A.channel.clamp[t](e[t]);return o.A.stringify(r)}},75263(t,e,r){"use strict";r.d(e,{A:()=>o});var i=r(95635);let o=(t,e)=>(0,i.A)(t,"l",-e)},54682(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(91553),o=r(16408);let a=t=>!((t=>{let{r:e,g:r,b:a}=o.A.parse(t),n=.2126*i.A.channel.toLinear(e)+.7152*i.A.channel.toLinear(r)+.0722*i.A.channel.toLinear(a);return i.A.lang.round(n)})(t)>=.5)},78041(t,e,r){"use strict";r.d(e,{A:()=>o});var i=r(95635);let o=(t,e)=>(0,i.A)(t,"l",e)},25582(t,e,r){"use strict";r.d(e,{A:()=>s});var i=r(91553),o=r(61665),a=r(16408),n=r(8232);let s=(t,e,r=0,s=1)=>{if("number"!=typeof t)return(0,n.A)(t,{a:e});let l=o.A.set({r:i.A.channel.clamp.r(t),g:i.A.channel.clamp.g(e),b:i.A.channel.clamp.b(r),a:i.A.channel.clamp.a(s)});return a.A.stringify(l)}},91553(t,e,r){"use strict";r.d(e,{A:()=>o});let 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=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t,hsl2rgb:({h:t,s:e,l:r},o)=>{if(!e)return 2.55*r;t/=360,e/=100;let a=(r/=100)<.5?r*(1+e):r+e-r*e,n=2*r-a;switch(o){case"r":return 255*i.hue2rgb(n,a,t+1/3);case"g":return 255*i.hue2rgb(n,a,t);case"b":return 255*i.hue2rgb(n,a,t-1/3)}},rgb2hsl:({r:t,g:e,b:r},i)=>{let o=Math.max(t/=255,e/=255,r/=255),a=Math.min(t,e,r),n=(o+a)/2;if("l"===i)return 100*n;if(o===a)return 0;let s=o-a;if("s"===i)return 100*(n>.5?s/(2-o-a):s/(o+a));switch(o){case t:return((e-r)/s+6*(e<r))*60;case e:return((r-t)/s+2)*60;case r:return((t-e)/s+4)*60;default:return -1}}},o={channel:i,lang:{clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}}},89346(t,e,r){"use strict";r.d(e,{A:()=>s});var i=r(66984);let o=function(t,e){for(var r=t.length;r--;)if((0,i.A)(t[r][0],e))return r;return -1};var a=Array.prototype.splice;function n(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}n.prototype.clear=function(){this.__data__=[],this.size=0},n.prototype.delete=function(t){var e=this.__data__,r=o(e,t);return!(r<0)&&(r==e.length-1?e.pop():a.call(e,r,1),--this.size,!0)},n.prototype.get=function(t){var e=this.__data__,r=o(e,t);return r<0?void 0:e[r][1]},n.prototype.has=function(t){return o(this.__data__,t)>-1}
1,n.prototype.set=function(t,e){var r=this.__data__,i=o(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this};let s=n},68335(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(8983),o=r(41917);let a=(0,i.A)(o.A,"Map")},28665(t,e,r){"use strict";r.d(e,{A:()=>u});var i=(0,r(8983).A)(Object,"create"),o=Object.prototype.hasOwnProperty,a=Object.prototype.hasOwnProperty;function n(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}n.prototype.clear=function(){this.__data__=i?i(null):{},this.size=0},n.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=!!e,e},n.prototype.get=function(t){var e=this.__data__;if(i){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0},n.prototype.has=function(t){var e=this.__data__;return i?void 0!==e[t]:a.call(e,t)},n.prototype.set=function(t,e){var r=this.__data__;return this.size+=+!this.has(t),r[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this};var s=r(89346),l=r(68335);let h=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t},c=function(t,e){var r=t.__data__;return h(e)?r["string"==typeof e?"string":"hash"]:r.map};function d(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}d.prototype.clear=function(){this.size=0,this.__data__={hash:new n,map:new(l.A||s.A),string:new n}},d.prototype.delete=function(t){var e=c(this,t).delete(t);return this.size-=!!e,e},d.prototype.get=function(t){return c(this,t).get(t)},d.prototype.has=function(t){return c(this,t).has(t)},d.prototype.set=function(t,e){var r=c(this,t),i=r.size;return r.set(t,e),this.size+=+(r.size!=i),this};let u=d},39857(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(8983),o=r(41917);let a=(0,i.A)(o.A,"Set")},30674(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(28665);function o(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new i.A;++e<r;)this.add(t[e])}o.prototype.add=o.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},o.prototype.has=function(t){return this.__data__.has(t)};let a=o},20013(t,e,r){"use strict";r.d(e,{A:()=>s});var i=r(89346),o=r(68335),a=r(28665);function n(t){var e=this.__data__=new i.A(t);this.size=e.size}n.prototype.clear=function(){this.__data__=new i.A,this.size=0},n.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},n.prototype.get=function(t){return this.__data__.get(t)},n.prototype.has=function(t){return this.__data__.has(t)},n.prototype.set=function(t,e){var r=this.__data__;if(r instanceof i.A){var n=r.__data__;if(!o.A||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new a.A(n)}return r.set(t,e),this.size=r.size,this};let s=n},241(t,e,r){"use strict";r.d(e,{A:()=>i});let i=r(41917).A.Symbol},43988(t,e,r){"use strict";r.d(e,{A:()=>i});let i=r(41917).A.Uint8Array},72641(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t,e){for(var r=-1,i=null==t?0:t.length;++r<i&&!1!==e(t[r],r,t););return t}},2634(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t,e){for(var r=-1,i=null==t?0:t.length,o=0,a=[];++r<i;){var n=t[r];e(n,r,t)&&(a[o++]=n)}return a}},91463(t,e,r){"use strict";r.d(e,{A:()=>c});let i=function(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i};var o=r(20018),a=r(92049),n=r(55254),s=r(25353),l=r(79415),h=Object.prototype.hasOwnProperty;let c=function(t,e){var r=(0,a.A)(t),c=!r&&(0,o.A)(t),d=!r&&!c&&(0,n.A)(t),u=!r&&!c&&!d&&(0,l.A)(t),p=r||c||d||u,g=p?i(t.length,String):[],f=g.length;for(var y in t)(e||h.call(t,y))&&!(p&&("length"==y||d&&("offset"==y||"parent"==y)||u&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||(0,s.A)(y,f)))&&g.push(y);return g}},45572(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t,e){for(var r=-1,i=null==t?0:t.length,o=Array(i);++r<i;)o[r]=e(t[r],r,t);return o}},76912(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t,e){for(var r=-1,i=e.length,o=t.length;++r<i;)t[o+r]=e[r];return t}},65045(t,e,r){"use strict";r.d(e,{A:()=>n});var i,o=r(79841),a=r(38446);let n=(i=o.A,function(t,e){if(null==t)return t;if(!(0,a.A)(t))return i(t,e);for(var r=t.length,o=-1,n=Object(t);++o<r&&!1!==e(n[o],o,n););return t})},25707(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t,e,r,i){for(var o=t.length,a=r+(i?1:-1);i?a--:++a<o;)if(e(t[a],a,t))return a;return -1}},76335(t,e,r){"use strict";r.d(e,{A:()=>h});
1var i=r(76912),o=r(241),a=r(20018),n=r(92049),s=o.A?o.A.isConcatSpreadable:void 0;let l=function(t){return(0,n.A)(t)||(0,a.A)(t)||!!(s&&t&&t[s])},h=function t(e,r,o,a,n){var s=-1,h=e.length;for(o||(o=l),n||(n=[]);++s<h;){var c=e[s];r>0&&o(c)?r>1?t(c,r-1,o,a,n):(0,i.A)(n,c):a||(n[n.length]=c)}return n}},83816(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t,e,r){for(var i=-1,o=Object(t),a=r(t),n=a.length;n--;){var s=a[++i];if(!1===e(o[s],s,o))break}return t}},79841(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(83816),o=r(27422);let a=function(t,e){return t&&(0,i.A)(t,e,o.A)}},66318(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(24548),o=r(30901);let a=function(t,e){e=(0,i.A)(e,t);for(var r=0,a=e.length;null!=t&&r<a;)t=t[(0,o.A)(e[r++])];return r&&r==a?t:void 0}},33831(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(76912),o=r(92049);let a=function(t,e,r){var a=e(t);return(0,o.A)(t)?a:(0,i.A)(a,r(t))}},18348(t,e,r){"use strict";r.d(e,{A:()=>d});var i=r(241),o=Object.prototype,a=o.hasOwnProperty,n=o.toString,s=i.A?i.A.toStringTag:void 0;let l=function(t){var e=a.call(t,s),r=t[s];try{t[s]=void 0;var i=!0}catch(t){}var o=n.call(t);return i&&(e?t[s]=r:delete t[s]),o};var h=Object.prototype.toString,c=i.A?i.A.toStringTag:void 0;let d=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?l(t):h.call(t)}},57029(t,e,r){"use strict";r.d(e,{A:()=>U});var i=r(20013),o=r(30674);let a=function(t,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(e(t[r],r,t))return!0;return!1};var n=r(64099);let s=function(t,e,r,i,s,l){var h=1&r,c=t.length,d=e.length;if(c!=d&&!(h&&d>c))return!1;var u=l.get(t),p=l.get(e);if(u&&p)return u==e&&p==t;var g=-1,f=!0,y=2&r?new o.A:void 0;for(l.set(t,e),l.set(e,t);++g<c;){var m=t[g],x=e[g];if(i)var C=h?i(x,m,g,e,t,l):i(m,x,g,t,e,l);if(void 0!==C){if(C)continue;f=!1;break}if(y){if(!a(e,function(t,e){if(!(0,n.A)(y,e)&&(m===t||s(m,t,r,i,l)))return y.push(e)})){f=!1;break}}else if(!(m===x||s(m,x,r,i,l))){f=!1;break}}return l.delete(t),l.delete(e),f};var l=r(241),h=r(43988),c=r(66984);let d=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,i){r[++e]=[i,t]}),r};var u=r(29959),p=l.A?l.A.prototype:void 0,g=p?p.valueOf:void 0;let f=function(t,e,r,i,o,a,n){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!a(new h.A(t),new h.A(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,c.A)(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var l=d;case"[object Set]":var p=1&i;if(l||(l=u.A),t.size!=e.size&&!p)break;var f=n.get(t);if(f)return f==e;i|=2,n.set(t,e);var y=s(l(t),l(e),i,o,a,n);return n.delete(t),y;case"[object Symbol]":if(g)return g.call(t)==g.call(e)}return!1};var y=r(19042),m=Object.prototype.hasOwnProperty;let x=function(t,e,r,i,o,a){var n=1&r,s=(0,y.A)(t),l=s.length;if(l!=(0,y.A)(e).length&&!n)return!1;for(var h=l;h--;){var c=s[h];if(!(n?c in e:m.call(e,c)))return!1}var d=a.get(t),u=a.get(e);if(d&&u)return d==e&&u==t;var p=!0;a.set(t,e),a.set(e,t);for(var g=n;++h<l;){var f=t[c=s[h]],x=e[c];if(i)var C=n?i(x,f,c,e,t,a):i(f,x,c,t,e,a);if(!(void 0===C?f===x||o(f,x,r,i,a):C)){p=!1;break}g||(g="constructor"==c)}if(p&&!g){var b=t.constructor,k=e.constructor;b!=k&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof k&&k instanceof k)&&(p=!1)}return a.delete(t),a.delete(e),p};var C=r(83231),b=r(92049),k=r(55254),w=r(79415),T="[object Arguments]",B="[object Array]",v="[object Object]",S=Object.prototype.hasOwnProperty;let _=function(t,e,r,o,a,n){var l=(0,b.A)(t),h=(0,b.A)(e),c=l?B:(0,C.A)(t),d=h?B:(0,C.A)(e);c=c==T?v:c,d=d==T?v:d;var u=c==v,p=d==v,g=c==d;if(g&&(0,k.A)(t)){if(!(0,k.A)(e))return!1;l=!0,u=!1}if(g&&!u)return n||(n=new i.A),l||(0,w.A)(t)?s(t,e,r,o,a,n):f(t,e,c,r,o,a,n);if(!(1&r)){var y=u&&S.call(t,"__wrapped__"),m=p&&S.call(e,"__wrapped__");
1if(y||m){var _=y?t.value():t,A=m?e.value():e;return n||(n=new i.A),a(_,A,r,o,n)}}return!!g&&(n||(n=new i.A),x(t,e,r,o,a,n))};var A=r(53098);let F=function t(e,r,i,o,a){return e===r||(null!=e&&null!=r&&((0,A.A)(e)||(0,A.A)(r))?_(e,r,i,o,t,a):e!=e&&r!=r)},L=function(t,e,r,o){var a=r.length,n=a,s=!o;if(null==t)return!n;for(t=Object(t);a--;){var l=r[a];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<n;){var h=(l=r[a])[0],c=t[h],d=l[1];if(s&&l[2]){if(void 0===c&&!(h in t))return!1}else{var u=new i.A;if(o)var p=o(c,d,h,t,e,u);if(!(void 0===p?F(d,c,3,o,u):p))return!1}}return!0};var M=r(23149);let $=function(t){return t==t&&!(0,M.A)(t)};var E=r(27422);let O=function(t){for(var e=(0,E.A)(t),r=e.length;r--;){var i=e[r],o=t[i];e[r]=[i,o,$(o)]}return e},D=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}},I=function(t){var e=O(t);return 1==e.length&&e[0][2]?D(e[0][0],e[0][1]):function(r){return r===t||L(r,t,e)}};var K=r(66318);let q=function(t,e,r){var i=null==t?void 0:(0,K.A)(t,e);return void 0===i?r:i};var R=r(96953),P=r(86586),z=r(30901),N=r(29008),j=r(70805);let W=function(t){return(0,P.A)(t)?(0,j.A)((0,z.A)(t)):function(e){return(0,K.A)(e,t)}},U=function(t){if("function"==typeof t)return t;if(null==t)return N.A;if("object"==typeof t){var e,r;return(0,b.A)(t)?(e=t[0],r=t[1],(0,P.A)(e)&&$(r)?D((0,z.A)(e),r):function(t){var i=q(t,e);return void 0===i&&i===r?(0,R.A)(t,e):F(r,i,3)}):I(t)}return W(t)}},84065(t,e,r){"use strict";r.d(e,{A:()=>n});var i=r(97271),o=(0,r(40367).A)(Object.keys,Object),a=Object.prototype.hasOwnProperty;let n=function(t){if(!(0,i.A)(t))return o(t);var e=[];for(var r in Object(t))a.call(t,r)&&"constructor"!=r&&e.push(r);return e}},70805(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t){return function(e){return null==e?void 0:e[t]}}},24326(t,e,r){"use strict";r.d(e,{A:()=>n});var i=r(29008),o=r(93310),a=r(89592);let n=function(t,e){return(0,a.A)((0,o.A)(t,e,i.A),t+"")}},52789(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t){return function(e){return t(e)}}},64099(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t,e){return t.has(e)}},99922(t,e,r){"use strict";r.d(e,{A:()=>o});var i=r(29008);let o=function(t){return"function"==typeof t?t:i.A}},24548(t,e,r){"use strict";r.d(e,{A:()=>p});var i,o,a=r(92049),n=r(86586),s=r(28665);function l(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var r=function(){var i=arguments,o=e?e.apply(this,i):i[0],a=r.cache;if(a.has(o))return a.get(o);var n=t.apply(this,i);return r.cache=a.set(o,n)||a,n};return r.cache=new(l.Cache||s.A),r}l.Cache=s.A;var h=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/g,d=(o=(i=l(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(h,function(t,r,i,o){e.push(i?o.replace(c,"$1"):r||t)}),e},function(t){return 500===o.size&&o.clear(),t})).cache,i),u=r(24898);let p=function(t,e){return(0,a.A)(t)?t:(0,n.A)(t,e)?[t]:d((0,u.A)(t))}},84171(t,e,r){"use strict";r.d(e,{A:()=>o});var i=r(8983);let o=function(){try{var t=(0,i.A)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},72136(t,e,r){"use strict";r.d(e,{A:()=>i});let i="object"==typeof global&&global&&global.Object===Object&&global},19042(t,e,r){"use strict";r.d(e,{A:()=>n});var i=r(33831),o=r(14792),a=r(27422);let n=function(t){return(0,i.A)(t,a.A,o.A)}},8983(t,e,r){"use strict";r.d(e,{A:()=>f});var i,o=r(89610),a=r(41917).A["__core-js_shared__"],n=(i=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",s=r(23149),l=r(81121),h=/^\[object .+?Constructor\]$/,c=Object.prototype,d=Function.prototype.toString,u=c.hasOwnProperty,p=RegExp("^"+d.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let g=function(t){return!!(0,s.A)(t)&&(!n||!(n in t))&&((0,o.A)(t)?p:h).test((0,l.A)(t))},f=function(t,e){var r=null==t?void 0:t[e];return g(r)?r:void 0}},14792(t,e,r){"use strict";r.d(e,{A:()=>s});var i=r(2634),o=r(13153),a=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols;let s=n?function(t){return null==t?[]:(t=Object(t),(0,i.A)(n(t),function(e){return a.call(t,e)}))}:o.A},83231(t,e,r){"use strict";r.d(e,{A:()=>T});
1var i=r(8983),o=r(41917),a=(0,i.A)(o.A,"DataView"),n=r(68335),s=(0,i.A)(o.A,"Promise"),l=r(39857),h=(0,i.A)(o.A,"WeakMap"),c=r(18348),d=r(81121),u="[object Map]",p="[object Promise]",g="[object Set]",f="[object WeakMap]",y="[object DataView]",m=(0,d.A)(a),x=(0,d.A)(n.A),C=(0,d.A)(s),b=(0,d.A)(l.A),k=(0,d.A)(h),w=c.A;(a&&w(new a(new ArrayBuffer(1)))!=y||n.A&&w(new n.A)!=u||s&&w(s.resolve())!=p||l.A&&w(new l.A)!=g||h&&w(new h)!=f)&&(w=function(t){var e=(0,c.A)(t),r="[object Object]"==e?t.constructor:void 0,i=r?(0,d.A)(r):"";if(i)switch(i){case m:return y;case x:return u;case C:return p;case b:return g;case k:return f}return e});let T=w},85054(t,e,r){"use strict";r.d(e,{A:()=>h});var i=r(24548),o=r(20018),a=r(92049),n=r(25353),s=r(5254),l=r(30901);let h=function(t,e,r){e=(0,i.A)(e,t);for(var h=-1,c=e.length,d=!1;++h<c;){var u=(0,l.A)(e[h]);if(!(d=null!=t&&r(t,u)))break;t=t[u]}return d||++h!=c?d:!!(c=null==t?0:t.length)&&(0,s.A)(c)&&(0,n.A)(u,c)&&((0,a.A)(t)||(0,o.A)(t))}},25353(t,e,r){"use strict";r.d(e,{A:()=>o});var i=/^(?:0|[1-9]\d*)$/;let o=function(t,e){var r=typeof t;return!!(e=null==e?0x1fffffffffffff:e)&&("number"==r||"symbol"!=r&&i.test(t))&&t>-1&&t%1==0&&t<e}},86586(t,e,r){"use strict";r.d(e,{A:()=>s});var i=r(92049),o=r(61882),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;let s=function(t,e){if((0,i.A)(t))return!1;var r=typeof t;return!!("number"==r||"symbol"==r||"boolean"==r||null==t||(0,o.A)(t))||n.test(t)||!a.test(t)||null!=e&&t in Object(e)}},97271(t,e,r){"use strict";r.d(e,{A:()=>o});var i=Object.prototype;let o=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||i)}},64841(t,e,r){"use strict";r.d(e,{A:()=>s});var i=r(72136),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof module&&module&&!module.nodeType&&module,n=a&&a.exports===o&&i.A.process;let s=function(){try{var t=a&&a.require&&a.require("util").types;if(t)return t;return n&&n.binding&&n.binding("util")}catch(t){}}()},40367(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t,e){return function(r){return t(e(r))}}},93310(t,e,r){"use strict";r.d(e,{A:()=>a});let i=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)};var o=Math.max;let a=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var a=arguments,n=-1,s=o(a.length-e,0),l=Array(s);++n<s;)l[n]=a[e+n];n=-1;for(var h=Array(e+1);++n<e;)h[n]=a[n];return h[e]=r(l),i(t,this,h)}}},41917(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(72136),o="object"==typeof self&&self&&self.Object===Object&&self;let a=i.A||o||Function("return this")()},29959(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},89592(t,e,r){"use strict";r.d(e,{A:()=>c});var i,o,a=r(39142),n=r(84171),s=r(29008),l=n.A?function(t,e){return(0,n.A)(t,"toString",{configurable:!0,enumerable:!1,value:(0,a.A)(e),writable:!0})}:s.A,h=Date.now;let c=(i=0,o=0,function(){var t=h(),e=16-(t-o);if(o=t,e>0){if(++i>=800)return arguments[0]}else i=0;return l.apply(void 0,arguments)})},30901(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(61882),o=1/0;let a=function(t){if("string"==typeof t||(0,i.A)(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}},81121(t,e,r){"use strict";r.d(e,{A:()=>o});var i=Function.prototype.toString;let o=function(t){if(null!=t){try{return i.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},39142(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t){return function(){return t}}},66984(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t,e){return t===e||t!=t&&e!=e}},96654(t,e,r){"use strict";r.d(e,{A:()=>l});var i=r(2634),o=r(65045);let a=function(t,e){var r=[];return(0,o.A)(t,function(t,i,o){e(t,i,o)&&r.push(t)}),r};var n=r(57029),s=r(92049);let l=function(t,e){return((0,s.A)(t)?i.A:a)(t,(0,n.A)(e,3))}},8058(t,e,r){"use strict";r.d(e,{A:()=>s});var i=r(72641),o=r(65045),a=r(99922),n=r(92049);let s=function(t,e){return((0,n.A)(t)?i.A:o.A)(t,(0,a.A)(e))}},96953(t,e,r){"use strict";r.d(e,{A:()=>a});let i=function(t,e){return null!=t&&e in Object(t)};var o=r(85054);let a=function(t,e){return null!=t&&(0,o.A)(t,e,i)}},29008(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t){return t}},20018(t,e,r){"use strict";r.d(e,{A:()=>h});var i=r(18348),o=r(53098);let a=function(t){return(0,o.A)(t)&&"[object Arguments]"==(0,i.A)(t)};var n=Object.prototype,s=n.hasOwnProperty,l=n.propertyIsEnumerable;let h=a(function(){return arguments}())?a:function(t){return(0,o.A)(t)&&s.call(t,"callee")&&!l.call(t,"callee")}},92049(t,e,r){"use strict";r.d(e,{A:()=>i});let i=Array.isArray},38446(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(89610),o=r(5254);let a=function(t){return null!=t&&(0,o.A)(t.length)&&!(0,i.A)(t)}},53533(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(38446),o=r(53098);let a=function(t){return(0,o.A)(t)&&(0,i.A)(t)}},55254(t,e,r){"use strict";r.d(e,{A:()=>s});var i=r(41917),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof module&&module&&!module.nodeType&&module,n=a&&a.exports===o?i.A.Buffer:void 0;let s=(n?n.isBuffer:void 0)||function(){return!1}},89610(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(18348),o=r(23149);let a=function(t){if(!(0,o.A)(t))return!1;var e=(0,i.A)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},5254(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},23149(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},53098(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t){return null!=t&&"object"==typeof t}},61882(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(18348),o=r(53098);let a=function(t){return"symbol"==typeof t||(0,o.A)(t)&&"[object Symbol]"==(0,i.A)(t)}},79415(t,e,r){"use strict";r.d(e,{A:()=>c});
1var i=r(18348),o=r(5254),a=r(53098),n={};n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1;var s=r(52789),l=r(64841),h=l.A&&l.A.isTypedArray;let c=h?(0,s.A)(h):function(t){return(0,a.A)(t)&&(0,o.A)(t.length)&&!!n[(0,i.A)(t)]}},69592(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(t){return void 0===t}},27422(t,e,r){"use strict";r.d(e,{A:()=>n});var i=r(91463),o=r(84065),a=r(38446);let n=function(t){return(0,a.A)(t)?(0,i.A)(t):(0,o.A)(t)}},64039(t,e,r){"use strict";r.d(e,{A:()=>l});let i=function(t,e,r,i){var o=-1,a=null==t?0:t.length;for(i&&a&&(r=t[++o]);++o<a;)r=e(r,t[o],o,t);return r};var o=r(65045),a=r(57029);let n=function(t,e,r,i,o){return o(t,function(t,o,a){r=i?(i=!1,t):e(r,t,o,a)}),r};var s=r(92049);let l=function(t,e,r){var l=(0,s.A)(t)?i:n,h=arguments.length<3;return l(t,(0,a.A)(e,4),r,h,o.A)}},13153(t,e,r){"use strict";r.d(e,{A:()=>i});let i=function(){return[]}},24898(t,e,r){"use strict";r.d(e,{A:()=>d});var i=r(241),o=r(45572),a=r(92049),n=r(61882),s=1/0,l=i.A?i.A.prototype:void 0,h=l?l.toString:void 0;let c=function t(e){if("string"==typeof e)return e;if((0,a.A)(e))return(0,o.A)(e,t)+"";if((0,n.A)(e))return h?h.call(e):"";var r=e+"";return"0"==r&&1/e==-s?"-0":r},d=function(t){return null==t?"":c(t)}},72888(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(45572),o=r(27422);let a=function(t){var e;return null==t?[]:(e=(0,o.A)(t),(0,i.A)(e,function(e){return t[e]}))}},5691(t,e,r){"use strict";r.d(e,{B:()=>u,OS:()=>_,QV:()=>D,dc:()=>v,ju:()=>y,n5:()=>O,nf:()=>I,sc:()=>L,sv:()=>g,xY:()=>E});var i=r(24980),o=r(27838),a=r(96865),n=r(48159),s=r(41916),l=r(34599),h=r(31293),c=r(86827),d=r(697);function u(t,{edgePathsClass:e="edges edgePaths"}={}){let r=t.insert("g").attr("class","root"),i=r.insert("g").attr("class","clusters");return{clusters:i,edgePaths:r.insert("g").attr("class",e),edgeLabels:r.insert("g").attr("class","edgeLabels"),nodes:r.insert("g").attr("class","nodes"),rootGroups:r}}async function p(t,e){if(e.label){let{shapeSvg:r,bbox:i}=await (0,n.Zk)(t,e);e.labelBBox={width:i.width,height:i.height},r.remove()}else e.labelBBox={width:0,height:0}}async function g(t,e,r){let i=await (0,a.on)(t,e,r),o=i.node()?.getBBox()??{width:0,height:0};return e.width=o.width,e.height=o.height,i}async function f(t,e){let i=new d.T({multigraph:!0,compound:!0}),a=[...e.edges],n=(0,l.D7)(),s=u(t),{edgeLabels:h,nodes:c}=s,f=new Map,y=null!=t.node();for(let t of(await Promise.all(e.nodes.map(async t=>{if(t.isGroup)y&&await p(c,t),i.setNode(t.id,{...t});else{if(y){let e=await g(c,t,{config:n,dir:t.dir});f.set(t.id,e)}i.setNode(t.id,{...t})}})),a))y&&(0,o.a6)(t)&&await (0,o.jP)(h,t),i.setEdge(t.start,t.end,{...t},t.id),e.edges.some(e=>e.id===t.id)||e.edges.push(t);if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:i}=await r.e("5082").then(r.bind(r,5137));i(t,e)}return{graph:i,groups:s,nodeElements:f}}(0,c.K)(u,"createLayoutElementGroups"),(0,c.K)(p,"measureGroupLabel"),(0,c.K)(g,"insertMeasuredNode"),(0,c.K)(f,"createGraphWithElements");var y=new Map,m=new Map,x=new Map,C=(0,c.K)(()=>{m.clear(),x.clear(),y.clear()},"clear"),b=(0,c.K)((t,e)=>{let r=m.get(e)||[];return h.R.trace("In isDescendant",e," ",t," = ",r.includes(t)),r.includes(t)},"isDescendant"),k=(0,c.K)((t,e)=>{let r=m.get(e)||[];return h.R.info("Descendants of ",e," is ",r),h.R.info("Edge is ",t),t.v!==e&&t.w!==e&&(r?r.includes(t.v)||b(t.v,e)||b(t.w,e)||r.includes(t.w):(h.R.debug("Tilt, ",e,",not in descendants"),!1))},"edgeInCluster"),w=(0,c.K)((t,e,r,i)=>{h.R.debug("Copying children of ",t,"root",i,"data",e.node(t),i);let o=e.children(t)||[];t!==i&&o.push(t),h.R.debug("Copying (nodes) clusterId",t,"nodes",o),o.forEach(o=>{if(e.children(o).length>0)w(o,e,r,i);else{let a=e.node(o);h.R.info("cp ",o," to ",i," with parent ",t),r.setNode(o,a),i!==e.parent(o)&&(h.R.debug("Setting parent",o,e.parent(o)),r.setParent(o,e.parent(o))),t!==i&&o!==t?(h.R.debug("Setting parent",o,t),r.setParent(o,t)):(h.R.info("In copy ",t,"root",i,"data",e.node(t),i),h.R.debug("Not Setting parent for node=",o,"cluster!==rootId",t!==i,"node!==clusterId",o!==t));let n=e.edges(o);
1h.R.debug("Copying Edges",n),n.forEach(o=>{h.R.info("Edge",o);let a=e.edge(o.v,o.w,o.name);h.R.info("Edge data",a,i);try{k(o,i)?(h.R.info("Copying as ",o.v,o.w,a,o.name),r.setEdge(o.v,o.w,a,o.name),h.R.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):h.R.info("Skipping copy of edge ",o.v,"--\x3e",o.w," rootId: ",i," clusterId:",t)}catch(t){h.R.error(t)}})}h.R.debug("Removing node",o),e.removeNode(o)})},"copy"),T=(0,c.K)((t,e)=>{let r=e.children(t),i=[...r];for(let o of r)x.set(o,t),i=[...i,...T(o,e)];return i},"extractDescendants"),B=(0,c.K)((t,e,r)=>{let i=t.edges().filter(t=>t.v===e||t.w===e),o=t.edges().filter(t=>t.v===r||t.w===r),a=i.map(t=>({v:t.v===e?r:t.v,w:t.w===e?e:t.w})),n=o.map(t=>({v:t.v,w:t.w}));return a.filter(t=>n.some(e=>t.v===e.v&&t.w===e.w))},"findCommonEdges"),v=(0,c.K)((t,e,r)=>{let i,o=e.children(t);if(h.R.trace("Searching children of id ",t,o),o.length<1)return t;for(let t of o){let o=v(t,e,r),a=B(e,r,o);if(o)if(!(a.length>0))return o;else i=o}return i},"findNonClusterChild"),S=(0,c.K)(t=>y.has(t)&&y.get(t).externalConnections&&y.has(t)?y.get(t).id:t,"getAnchorId"),_=(0,c.K)((t,e)=>{if(!t||e>10)return void h.R.debug("Opting out, no graph ");for(let e of(h.R.debug("Opting in, graph "),t.nodes().forEach(function(e){t.children(e).length>0&&(h.R.debug("Cluster identified",e," Replacement id in edges: ",v(e,t,e)),m.set(e,T(e,t)),y.set(e,{id:v(e,t,e),clusterData:t.node(e)}))}),t.nodes().forEach(function(e){let r=t.children(e),i=t.edges();r.length>0?(h.R.debug("Cluster identified",e,m),i.forEach(t=>{b(t.v,e)^b(t.w,e)&&(h.R.debug("Edge: ",t," leaves cluster ",e),h.R.debug("Descendants of XXX ",e,": ",m.get(e)),y.get(e).externalConnections=!0)})):h.R.debug("Not a cluster ",e,m)}),y.keys())){let r=y.get(e).id,i=t.parent(r);i!==e&&y.has(i)&&!y.get(i).externalConnections&&(y.get(e).id=i);let o=t.edges().some(t=>t.v===e);if(r&&y.get(e)?.externalConnections&&o&&M(t,r,e)){let i=$(t,e,t.parent(r));i&&(y.get(e).id=i)}}
1t.edges().forEach(function(e){let r=t.edge(e);h.R.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),h.R.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t.edge(e)));let i=e.v,o=e.w;if(h.R.debug("Fix XXX",y,"ids:",e.v,e.w,"Translating: ",y.get(e.v)," --- ",y.get(e.w)),y.get(e.v)||y.get(e.w)){if(h.R.debug("Fixing and trying - removing XXX",e.v,e.w,e.name),i=S(e.v),o=S(e.w),t.removeEdge(e.v,e.w,e.name),i!==e.v){let o=t.parent(i);y.get(o).externalConnections=!0,r.fromCluster=e.v}if(o!==e.w){let i=t.parent(o);y.get(i).externalConnections=!0,r.toCluster=e.w}h.R.debug("Fix Replacing with XXX",i,o,e.name),t.setEdge(i,o,r,e.name)}}),A(t,0),h.R.trace(y)},"adjustClustersAndEdges"),A=(0,c.K)((t,e)=>{if(e>10)return void h.R.error("Bailing out");let r=t.nodes(),i=!1;for(let e of r){let r=t.children(e);i=i||r.length>0}if(!i)return void h.R.debug("Done, no node has children",t.nodes());for(let i of(h.R.debug("Nodes = ",r,e),r))if(h.R.debug("Extracting node",i,y,y.has(i)&&!y.get(i).externalConnections,!t.parent(i),t.node(i),t.children("D")," Depth ",e),y.has(i))if(!y.get(i).externalConnections&&t.children(i)&&t.children(i).length>0){h.R.debug("Cluster without external connections, without a parent and with children",i,e);let r="TB"===t.graph().rankdir?"LR":"TB";y.get(i)?.clusterData?.dir&&(r=y.get(i).clusterData.dir,h.R.debug("Fixing dir",y.get(i).clusterData.dir,r));let o=new d.T({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});w(i,t,o,i),t.setNode(i,{clusterNode:!0,id:i,clusterData:y.get(i).clusterData,label:y.get(i).label,graph:o})}else h.R.debug("Cluster ** ",i," **not meeting the criteria !externalConnections:",!y.get(i).externalConnections," no parent: ",!t.parent(i)," children ",t.children(i)&&t.children(i).length>0,t.children("D"),e),h.R.debug(y);else h.R.debug("Not a cluster",i,e);for(let i of(r=t.nodes(),h.R.debug("New list of nodes",r),r)){let r=t.node(i);h.R.debug(" Now next level",i,r),r?.clusterNode&&A(r.graph,e+1)}},"extractor"),F=(0,c.K)((t,e)=>{if(0===e.length)return[];let r=Object.assign([],e);return e.forEach(e=>{let i=t.children(e),o=F(t,i);r=[...r,...o]}),r},"sorter"),L=(0,c.K)(t=>F(t,t.children()),"sortNodesByHierarchy"),M=(0,c.K)((t,e,r)=>{let i=t.parent(e);for(;i&&i!==r;){let e=y.get(i);if(e&&!e.externalConnections)return!0;i=t.parent(i)}return!1},"isNodeInExtractableCluster"),$=(0,c.K)((t,e,r)=>{for(let i of t.children(e)??[]){if(i===r||b(i,r))continue;let o=v(i,t,e);if(o&&!M(t,o,e))return o}return null},"findSafeAnchorNode");function E({prepareLayout:t,measureLayout:e,runLayoutCore:r,paintLayout:i,afterPaint:a,paintOptions:n}){let s=e??D;return(0,c.K)(async function(e,l,h,c){let d=l.select("g");(h?.insertMarkers??o.g0)(d,e.markers,e.type,e.diagramId),O();let u={element:d,helpers:h,options:c};u.preparedLayout=await t?.(e,u);let p=await s(e,u),g=await r(e,u),f={...u,measure:p};i?await i(e,f,g):await I(e,f,n),await a?.(e,f,g)},"render")}function O(){(0,a.IU)(),(0,o.IU)(),(0,i.I)(),C()}async function D(t,{element:e}){return await f(e,t)}async function I(t,e,r={}){let{measure:i}=e,{groups:o}=i;for(let i of r.getNodes?.(t,e)??t.nodes)r.skipNode?.(i,e)||await K(o,i,e,r);let a=R(t.nodes);for(let i of t.edges)P(i,r)||await z(o,i,a,t,r,e)}async function K(t,e,r,o){e.clusterNode?(0,a.U_)(e):q(e,r,o)?await (0,i.U)(t.clusters,e):(0,a.U_)(e)}function q(t,e,r){return!0===t.isGroup&&(r.isCluster?.(t,e)??!0)}function R(t){let e=new Map;for(let r of t)r?.id&&e.set(r.id,r);return e}function P(t,e){return t.isLayoutOnly||!!e.skipEdge?.(t)}async function z(t,e,r,i,a,n){let s=(0,o.Jo)(t.edgePaths,{...e},a.clusterDb??new Map,i.type,N(e.start,e,r,n,a),N(e.end,e,r,n,a),i.diagramId,j(e,a));(0,o.a6)(e)&&(o.lP.has(e.id)||await (0,o.jP)(t.edgeLabels,e),W(e,s))}function N(t,e,r,i,o){return o.getEdgeNode?.(t,e,i)??(t?r.get(t)??{}:{})}function j(t,e){return"function"==typeof e.skipIntersect?e.skipIntersect(t):e.skipIntersect??!1}function W(t,e){let r=e?.updatedPath??e?.originalPath,i=(0,l.zj)(),{subGraphTitleTotalMargin:n}=(0,a.Oi)({flowchart:i.flowchart??{}});if(t.label){let i=o.lP.get(t.id),a=t.x,l=t.y;if(r){let i=s._K.calcLabelPosition(r);h.R.debug("Moving label "+t.label+" from (",a,",",l,") to (",i.x,",",i.y,") abc88"),e?.updatedPath&&(a=i.x,l=i.y)}i.attr("transform",`translate(${a}, ${l+n/2})`)}if(t?.startLabelLeft){let e=o.UQ.get(t.id).startLeft,i=t?.x,a=t?.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_left",r);
1i=e.x,a=e.y}e.attr("transform",`translate(${i}, ${a})`)}if(t.startLabelRight){let e=o.UQ.get(t.id).startRight,i=t.x,a=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_right",r);i=e.x,a=e.y}e.attr("transform",`translate(${i}, ${a})`)}if(t.endLabelLeft){let e=o.UQ.get(t.id).endLeft,i=t.x,a=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_left",r);i=e.x,a=e.y}e.attr("transform",`translate(${i}, ${a})`)}if(t.endLabelRight){let e=o.UQ.get(t.id).endRight,i=t.x,a=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_right",r);i=e.x,a=e.y}e.attr("transform",`translate(${i}, ${a})`)}}(0,c.K)(E,"createCommonLayoutRenderer"),(0,c.K)(O,"clearLayoutRenderState"),(0,c.K)(D,"defaultMeasureLayout"),(0,c.K)(I,"paintLayoutData"),(0,c.K)(K,"paintLayoutNode"),(0,c.K)(q,"shouldPaintAsCluster"),(0,c.K)(R,"buildNodeLookup"),(0,c.K)(P,"shouldSkipPaintEdge"),(0,c.K)(z,"paintLayoutEdge"),(0,c.K)(N,"getRenderedNode"),(0,c.K)(j,"shouldSkipIntersect"),(0,c.K)(W,"positionRenderedEdgeLabel")},48159(t,e,r){"use strict";r.d(e,{DA:()=>v,FA:()=>B,Zk:()=>f,aP:()=>ek,lC:()=>m,nM:()=>T,nq:()=>eb});var i=r(44505),o=r(40790),a=r(24695),n=r(41916),s=r(34599),l=r(31293),h=r(86827),c=r(47829),d=r(52274);async function u(t){let e=t.getElementsByTagName("img");if(!e||0===e.length)return;let r=!p(t);await Promise.all([...e].map(t=>new Promise(e=>{function i(){if(t.style.display="flex",t.style.flexDirection="column",r){let e=(0,s.D7)().fontSize?(0,s.D7)().fontSize:window.getComputedStyle(document.body).fontSize,[r=s.UI.fontSize]=(0,n.I5)(e),i=5*r+"px";t.style.minWidth=i,t.style.maxWidth=i}else t.style.width="100%";e(t)}(0,h.K)(i,"setupImage"),setTimeout(()=>{t.complete&&i()}),t.addEventListener("error",i),t.addEventListener("load",i)})))}function p(t){return 3===t.nodeType?t.textContent?.trim()!=="":1===t.nodeType&&"img"!==t.tagName.toLowerCase()&&[...t.childNodes].some(p)}(0,h.K)(u,"configureLabelImages"),(0,h.K)(p,"hasTextBesidesImages");var g=(0,h.K)(async(t,e,r)=>{let i=(0,s.D7)(),a=t.insert("g").attr("class",r??"node default").attr("id",e.domId||e.id),l=a.insert("g").attr("class","label").attr("style",(0,n.KL)(e.labelStyle)),h=[{text:"string"==typeof e.label?e.label:e.label?.[0]??"",cssClass:"c4-name"},{text:e.stereotype,cssClass:"c4-type"},...(e.description??[]).map(t=>({text:t,cssClass:"c4-descr"}))].filter(t=>t.text),d=e.width?Math.max(e.width-2*(e.padding??0),32):(0,s.D7)().flowchart?.wrappingWidth??200,u=i.c4?.wrap??!0?d:1/0,p=await Promise.all(h.map(async t=>{let r=l.append("g").attr("class",t.cssClass),a=await (0,o.GZ)(r,(0,s.jZ)((0,n.Sm)(t.text??""),i),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:u,style:e.labelStyle},i);return(0,c.Ltv)(a).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),(0,c.Ltv)(a).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:r,box:r.node().getBBox()}})),g=Math.max(...p.map(({box:t})=>t.width),0),f=0;for(let{el:t,box:e}of p)t.attr("transform",`translate(${g/2-e.x-e.width/2}, ${f-e.y})`),f+=e.height+3;let y=p.length>0?f-3:0;return l.insert("rect",":first-child"),l.attr("transform",`translate(${-g/2}, ${-y/2})`),{shapeSvg:a,bbox:l.node().getBBox(),halfPadding:(e.padding??0)/2,label:l}},"c4LabelHelper"),f=(0,h.K)(async(t,e,r)=>{let i,a,l;if(void 0!==e.stereotype)return g(t,e,r);let h=e.useHtmlLabels||(0,s._3)((0,s.D7)()?.htmlLabels);i=r||"node default";let d=t.insert("g").attr("class",i).attr("id",e.domId||e.id),p=d.insert("g").attr("class","label").attr("style",(0,n.KL)(e.labelStyle));a=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];let f=!!e.icon||!!e.img,y="markdown"===e.labelType,m=await (0,o.GZ)(p,(0,s.jZ)((0,n.Sm)(a),(0,s.D7)()),{useHtmlLabels:h,width:e.width||e.wrappingWidth||(0,s.D7)().flowchart?.wrappingWidth,classes:y?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:f,markdown:y},(0,s.D7)()),x=(e?.padding??0)/2;if(h){let t=m.children[0],e=(0,c.Ltv)(m);await u(t),l=await o.lT.measure(()=>t.getBoundingClientRect()),e.attr("width",l.width),e.attr("height",l.height)}else l=await o.lT.measure(()=>m.getBBox());return h?p.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"):p.attr("transform","translate(0, "+-l.height/2+")"),e.centerLabel&&p.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),p.insert("rect",":first-child"),{shapeSvg:d,bbox:l,halfPadding:x,label:p}},"labelHelper"),y=(0,h.K)(async(t,e,r)=>{let i,a=r.useHtmlLabels??(0,s.E)((0,s.D7)()),l=t.insert("g").attr("class","label").attr("style",r.labelStyle||""),h=await (0,o.GZ)(l,(0,s.jZ)((0,n.Sm)(e),(0,s.D7)()),{useHtmlLabels:a,width:r.width||(0,s.D7)()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackgroun
1d:!!r.icon||!!r.img}),d=r.padding/2;if((0,s.E)((0,s.D7)())){let t=h.children[0],e=(0,c.Ltv)(h);i=await o.lT.measure(()=>t.getBoundingClientRect()),e.attr("width",i.width),e.attr("height",i.height)}else i=await o.lT.measure(()=>h.getBBox());return a?l.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"):l.attr("transform","translate(0, "+-i.height/2+")"),r.centerLabel&&l.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),l.insert("rect",":first-child"),{shapeSvg:t,bbox:i,halfPadding:d,label:l}},"insertLabel"),m=(0,h.K)((t,e,r)=>{if(r){t.width=r.width,t.height=r.height;return}let i=e.node().getBBox();t.width=i.width,t.height=i.height},"updateNodeBounds"),x=(0,h.K)((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function C(t){let e=t.map((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`);return e.push("Z"),e.join(" ")}function b(t,e,r,i,o,a){let n=[],s=r-t,l=2*Math.PI/(s/a),h=e+(i-e)/2;for(let e=0;e<=50;e++){let r=t+e/50*s,i=h+o*Math.sin(l*(r-t));n.push({x:r,y:i})}return n}function k(t,e,r,i,o,a){let n=[],s=o*Math.PI/180,l=(a*Math.PI/180-s)/(i-1);for(let o=0;o<i;o++){let i=s+o*l,a=t+r*Math.cos(i),h=e+r*Math.sin(i);n.push({x:-a,y:-h})}return n}function w(t){let e=Array.from(t.childNodes).filter(t=>"path"===t.tagName),r=document.createElementNS("http://www.w3.org/2000/svg","path"),i=e.map(t=>t.getAttribute("d")).filter(t=>null!==t).join(" ");r.setAttribute("d",i);let o=e.find(t=>"none"!==t.getAttribute("fill")),a=e.find(t=>"none"!==t.getAttribute("stroke")),n=(0,h.K)((t,e)=>t?.getAttribute(e)??void 0,"getAttr");o&&Object.entries({fill:n(o,"fill"),"fill-opacity":n(o,"fill-opacity")??"1"}).forEach(([t,e])=>{e&&r.setAttribute(t,e)}),a&&Object.entries({stroke:n(a,"stroke"),"stroke-width":n(a,"stroke-width")??"1","stroke-opacity":n(a,"stroke-opacity")??"1"}).forEach(([t,e])=>{e&&r.setAttribute(t,e)});let s=document.createElementNS("http://www.w3.org/2000/svg","g");return s.appendChild(r),s}(0,h.K)(C,"createPathFromPoints"),(0,h.K)(b,"generateFullSineWavePoints"),(0,h.K)(k,"generateCirclePoints"),(0,h.K)(w,"mergePaths");var T=(0,h.K)((t,e)=>{var r,i,o=t.x,a=t.y,n=e.x-o,s=e.y-a,l=t.width/2,h=t.height/2;return Math.abs(s)*l>Math.abs(n)*h?(s<0&&(h=-h),r=0===s?0:h*n/s,i=h):(n<0&&(l=-l),r=l,i=0===n?0:l*s/n),{x:o+r,y:a+i}},"intersectRect"),B=(0,h.K)((t,e,r,i,o)=>["M",t+o,e,"H",t+r-o,"A",o,o,"0 0 1",t+r,e+o,"V",e+i-o,"A",o,o,"0 0 1",t+r-o,e+i,"H",t+o,"A",o,o,"0 0 1",t,e+i-o,"V",e+o,"A",o,o,"0 0 1",t+o,e,"Z"].join(" "),"createRoundedRectPathD"),v=(0,h.K)(async(t,e,r,i=!1,a=!1)=>{let n=e||"";"object"==typeof n&&(n=n[0]);let l=(0,s.D7)(),h=(0,s.E)(l);return await (0,o.GZ)(t,n,{style:r,isTitle:i,useHtmlLabels:h,markdown:!1,isNode:a,width:1/0},l)},"createLabel");function S(t,e,r,i){var o=t.x,a=t.y,n=o-i.x,s=a-i.y,l=Math.sqrt(e*e*s*s+r*r*n*n),h=Math.abs(e*r*n/l);i.x<o&&(h=-h);var c=Math.abs(e*r*s/l);return i.y<a&&(c=-c),{x:o+h,y:a+c}}function _(t,e,r){return S(t,e,e,r)}function A(t,e,r,i){{let o=e.y-t.y,a=t.x-e.x,n=e.x*t.y-t.x*e.y,s=o*r.x+a*r.y+n,l=o*i.x+a*i.y+n;if(0!==s&&0!==l&&F(s,l))return;let h=i.y-r.y,c=r.x-i.x,d=i.x*r.y-r.x*i.y,u=h*t.x+c*t.y+d,p=h*e.x+c*e.y+d;if(1e-6>Math.abs(u)&&1e-6>Math.abs(p)&&F(u,p))return;let g=o*c-h*a;if(0===g)return;let f=Math.abs(g/2),y=a*d-c*n;return{x:y<0?(y-f)/g:(y+f)/g,y:(y=h*n-o*d)<0?(y-f)/g:(y+f)/g}}}function F(t,e){return t*e>0}function L(t,e,r){let i=t.x,o=t.y,a=[],n=1/0,s=1/0;"function"==typeof e.forEach?e.forEach(function(t){n=Math.min(n,t.x),s=Math.min(s,t.y)}):(n=Math.min(n,e.x),s=Math.min(s,e.y));let l=i-t.width/2-n,h=o-t.height/2-s;for(let i=0;i<e.length;i++){let o=e[i],n=e[i<e.length-1?i+1:0],s=A(t,r,{x:l+o.x,y:h+o.y},{x:l+n.x,y:h+n.y});s&&a.push(s)}return a.length?(a.length>1&&a.sort(function(t,e){let i=t.x-r.x,o=t.y-r.y,a=Math.sqrt(i*i+o*o),n=e.x-r.x,s=e.y-r.y,l=Math.sqrt(n*n+s*s);return a<l?-1:+(a!==l)}),a[0]):t}(0,h.K)(function(t,e){return t.intersect(e)},"intersectNode"),(0,h.K)(S,"intersectEllipse"),(0,h.K)(_,"intersectCircle"),(0,h.K)(A,"intersectLine"),(0,h.K)(F,"sameSign"),(0,h.K)(L,"intersectPolygon");function M(t,e){let{labelStyles:r}=(0,i.GX)(e);e.labelStyle=r;let o=x(e),a=o;o||(a="anchor");let s=t.insert("g").attr("class",a).attr("id",e.domId||e.id),{cssStyles:h}=e,c=d.A.svg(s),u=(0,i.Fr)(e,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==e.look&&(u.roughness=0);let p=c.circle(0,0,2,u),g=s.insert(()=>p,":first-child");return g.attr("class","anchor").attr("style",(0,n.KL)(h)),m(e,g),e.intersect=function(t){return l.R.info("Circle intersect",e,1,t),_(e,1,t)},s}function $(t,e,r,i,o,a,n){let s=Math.atan2(i-e,r-t),l=Math.sqrt(((r-t)/2/o)**2+((i-e)/2/a)**2);if(l>1)throw Error("The given radii are too small to create an arc between the points.");let h=Math.sqrt(1-l**2),c=(t+r)/2+h*a*Math.sin(s)*(n?-1:1),d=(e+i)/2-h*o*Math.cos(s)*(n?-1:1),u=Math.atan2((e-d)/a,(t-c)/o),p=Math.atan2((i-d)/a,(r-c)/o)-u;n&&p<0&&(p+=2*Math.PI),!n&&p>0&&(p-=2*Math.PI);let g=[];for(let t=0;t<20;t++){let e=u+t/19*p,r=c+o*Math.cos(e),i=d+a*Math.sin(e);g.push({x:r,y:i})}return g}function E(t,e,r){let[i,o]=[e,r].sort((t,e)=>e-t);return o*(1-Math.sqrt(1-(t/i/2)**2))}async function O(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a=e.padding??0,n="neo"===e.look?16:a,s="neo"===e.look?12:a,l=(0,h.K)(t=>t+s,"calcTotalHeight"),c=(0,h.K)(t=>{let e=t/2;return[e/(2.5+t/50),e]},"calcEllipseRadius"),{shapeSvg:u,bbox:p}=await f(t,e,x(e)),g=l(e?.height?e?.height:p.height),[y,b]=c(g),k=E(g,y,b),w=(e?.width?e?.width:p.width)+2*n+k-k,{cssStyles:T}=e,B=[{x:w/2,y:-g/2},{x:-w/2,y:-g/2},...$(-w/2,-g/2,-w/2,g/2,y,b,!1),{x:w/2,y:g/2},...$(w/2,g/2,w/2,-g/2,y,b,!0)],v=d.A.svg(u),S=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");let _=C(B),A=v.path(_,S),F=u.insert(()=>A,":first-child");return F.attr("class","basic label-container outer-path"),T&&"handDrawn"!==e.look&&F.selectAll("path").attr("style",T),o&&"handDrawn"!==e.look&&F.selectAll("path").attr("style",o),F.attr("transform",`translate(${y/2}, 0)`),m(e,F),e.intersect=function(t){return L(e,B,t)},u}async function D(t,e,{config:{themeVariables:r}}){let{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o;let{shapeSvg:n,bbox:s,label:l}=await f(t,e,x(e)),c=r?.nodeBorder??r?.lineColor??"currentColor",u=e.padding??12,p=Math.max(s.width+2*u,e.width??0,80),g=Math.max(Math.min(.08*p,12),5),y=Math.max(s.height+2*u+g,e.height??0),C=-y/2+g,b=y/2,k=.72*p,w=`M${-p/2},${C} L${-k/2},${b} A${k/2},${g} 0 0 0 ${k/2},${b} L${p/2},${C} A${p/2},${g} 0 0 0 ${-p/2},${C} Z`,{cssStyles:T}=e,B=n.insert("g",":first-child").attr("class","basic label-container");
1if("handDrawn"===e.look){let t=d.A.svg(n).path(w,(0,i.Fr)(e,{}));B.node()?.appendChild(t),T&&B.attr("style",T)}else B.append("path").attr("d",w).attr("style",a);B.append("ellipse").attr("cx",0).attr("cy",C).attr("rx",p/2).attr("ry",g).attr("style",`fill:none;stroke:${c};stroke-width:1px`),m(e,B);let v=C+(b-C)/2;l.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${v-s.height/2-(s.y-(s.top??0))})`);let S=(0,h.K)((t,e,r)=>Array.from({length:13},(i,o)=>{let a=Math.PI-o*Math.PI/12;return{x:t*Math.cos(a),y:e+r*g*Math.sin(a)}}),"arc"),_=[...S(p/2,C,-1),...S(k/2,b,1).reverse()];return e.intersect=function(t){return L(e,_,t)},n}async function I(t,e){let r,{themeVariables:o}=(0,s.D7)(),a=o.clusterBkg,l=o.clusterBorder,{nodeStyles:h}=(0,i.GX)(e),{shapeSvg:c,bbox:u}=await f(t,e,x(e)),p=e.padding??8,g=u.height,y=Math.max(u.width+2*p,80,e?.width??0),C=Math.max(g+8+20+2*p,e?.height??0),b=-y/2,k=-C/2,w=c.select(".label");if(w&&(e.useHtmlLabels??(0,s.E)((0,s.D7)())?w.attr("transform",`translate(${-u.width/2}, ${-u.height/2+-14})`):w.attr("transform",`translate(0, ${-u.height/2+-14})`)),"handDrawn"===e.look){let t=d.A.svg(c),o=(0,i.Fr)(e,{fill:a,stroke:l,fillStyle:"solid"}),s=t.path(B(b,k,y,C,8),o);(r=c.insert(()=>s,":first-child")).attr("class","basic label-container collapsed-group").attr("style",(0,n.KL)(e.cssStyles))}else(r=c.insert("rect",":first-child")).attr("class","basic label-container collapsed-group").attr("style",h).attr("rx",8).attr("ry",8).attr("x",b).attr("y",k).attr("width",y).attr("height",C).attr("fill",a).attr("stroke",l);let v=k+p+g+8;c.append("line").attr("class","collapsed-separator").attr("x1",b+8).attr("y1",v).attr("x2",b+y-8).attr("y2",v).attr("stroke",l).attr("stroke-dasharray","3, 3");let S=v+10;for(let t=-1;t<=1;t++)c.append("circle").attr("class","collapsed-indicator").attr("cx",10*t).attr("cy",S).attr("r",2.5).attr("fill",l);return m(e,r),e.calcIntersect=function(t,e){return T(t,e)},e.intersect=function(t){return T(e,t)},c}function K(t,e,r,i){return t.insert("polygon",":first-child").attr("points",i.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}(0,h.K)(M,"anchor"),(0,h.K)($,"generateArcPoints"),(0,h.K)(E,"calculateArcSagitta"),(0,h.K)(O,"bowTieRect"),(0,h.K)(D,"bucket"),(0,h.K)(I,"collapsedGroup"),(0,h.K)(K,"insertPolygonShape");var q=["right","left","up","down"],R="point",P=(0,h.K)(t=>{let e=new Set;for(let r of t)switch(r){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(r)}return e},"expandAndDeduplicateDirections"),z=(0,h.K)(t=>q.filter(e=>t.has(e)).join("|")||R,"getDirectionKey"),N={"right|left|up|down":(0,h.K)(({height:t,midpoint:e,padding:r,width:i})=>[{x:0,y:0},{x:e,y:0},{x:i/2,y:2*r},{x:i-e,y:0},{x:i,y:0},{x:i,y:-t/3},{x:i+2*r,y:-t/2},{x:i,y:-2*t/3},{x:i,y:-t},{x:i-e,y:-t},{x:i/2,y:-t-2*r},{x:e,y:-t},{x:0,y:-t},{x:0,y:-2*t/3},{x:-2*r,y:-t/2},{x:0,y:-t/3}],"right|left|up|down"),"right|left|up":(0,h.K)(({height:t,midpoint:e,width:r})=>[{x:e,y:0},{x:r-e,y:0},{x:r,y:-t/2},{x:r-e,y:-t},{x:e,y:-t},{x:0,y:-t/2}],"right|left|up"),"right|left|down":(0,h.K)(({height:t,midpoint:e,width:r})=>[{x:0,y:0},{x:e,y:-t},{x:r-e,y:-t},{x:r,y:0}],"right|left|down"),"right|up|down":(0,h.K)(({height:t,midpoint:e,width:r})=>[{x:0,y:0},{x:r,y:-e},{x:r,y:-t+e},{x:0,y:-t}],"right|up|down"),"left|up|down":(0,h.K)(({height:t,midpoint:e,width:r})=>[{x:r,y:0},{x:0,y:-e},{x:0,y:-t+e},{x:r,y:-t}],"left|up|down"),"right|left":(0,h.K)(({height:t,midpoint:e,padding:r,width:i})=>[{x:e,y:0},{x:e,y:-r},{x:i-e,y:-r},{x:i-e,y:0},{x:i,y:-t/2},{x:i-e,y:-t},{x:i-e,y:-t+r},{x:e,y:-t+r},{x:e,y:-t},{x:0,y:-t/2}],"right|left"),"up|down":(0,h.K)(({height:t,midpoint:e,padding:r,width:i})=>[{x:i/2,y:0},{x:0,y:-r},{x:e,y:-r},{x:e,y:-t+r},{x:0,y:-t+r},{x:i/2,y:-t},{x:i,y:-t+r},{x:i-e,y:-t+r},{x:i-e,y:-r},{x:i,y:-r}],"up|down"),"right|up":(0,h.K)(({height:t,midpoint:e,width:r})=>[{x:0,y:0},{x:r,y:-e},{x:0,y:-t}],"right|up"),"right|down":(0,h.K)(({height:t,width:e})=>[{x:0,y:0},{x:e,y:0},{x:0,y:-t}],"right|down"),"left|up":(0,h.K)(({height:t,midpoint:e,width:r})=>[{x:r,y:0},{x:0,y:-e},{x:r,y:-t}],"left|up"),"left|down":(0,h.K)(({height:t,width:e})=>[{x:e,y:0},{x:0,y:0},{x:e,y:-t}],"left|down"),right:(0,h.K)(({height:t,midpoint:e,padding:r,width:i})=>[{x:e,y:-r},{x:e,y:-r},{x:i-e,y:-r},{x:i-e,y:0},{x:i,y:-t/2},{x:i-e,y:-t},{x:i-e,y:-t+r},{x:e,y:-t+r},{x:e,y:-t+r}],"right"),left:(0,h.K)(({height:t,midpoint:e,padding:r,width:i})=>[{x:e,y:0},{x:e,y:-r},{x:i-e,y:-r},{x:i-e,y:-t+r},{x:e,y:-t+r},{x:e,y:-t},{x:0,y:-t/2}],"left"),up:(0,h.K)(({height:t,midpoint:e,padding:r,width:i})=>[{x:e,y:-r},{x:e,y:-t+r},{x:0,y:-t+r},{x:i/2,y:-t},{x:i,y:-t+r},{x:i-e,y:-t+r},{x:i-e,y:-r}],"up"),down:(0,h.K)(({height:t,midpoint:e,padding:r,width:i})=>[{x:i/2,y:0},{x:0,y:-r},{x:e,y:-r},{x:e,y:-t+r},{x:i-e,y:-t+r},{x:i-e,y:-r},{x:i,y:-r}],"down"),[R]:()=>[{x:0,y:0}]},j=(0,h.K)((t,e,r,i)=>
1{let o=P(t),a=(r.padding??0)/2,n=e.height+4*a,s=n/2,l=i??e.width+2*s+2*a;return(N[z(o)]??N[R])({height:n,midpoint:s,padding:a,width:l})},"getArrowPoints");async function W(t,e){let{shapeSvg:r,bbox:i}=await f(t,e,x(e)),o=e.padding??0,a=i.height+2*o,n=a/2,s=i.width+2*n+o,l=e.width??0,h=e.positioned&&(e.widthInColumns??1)>1&&l>s?l:s,c=j(e.directions??[],i,e,h),d=K(r,h,a,c);return d.attr("style",e.style??null),m(e,d),e.intersect=function(t){return L(e,c,t)},r}async function U(t,e,{config:{themeVariables:r}}){let{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o;let{shapeSvg:n,bbox:s,label:l}=await f(t,e,x(e)),h=r?.nodeBorder??r?.lineColor??"currentColor",c=e.padding??12,u=Math.max(s.width+2*c,e.width??0,90),p=Math.max(s.height+2*c+18,e.height??0),g=-p/2,{cssStyles:y}=e,C=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){let t=d.A.svg(n).path(B(-u/2,g,u,p,12),(0,i.Fr)(e,{}));C.node()?.appendChild(t),y&&C.attr("style",y)}else C.append("rect").attr("x",-u/2).attr("y",g).attr("width",u).attr("height",p).attr("rx",12).attr("ry",12).attr("style",a);C.append("line").attr("x1",-u/2).attr("y1",g+18).attr("x2",u/2).attr("y2",g+18).attr("style",`stroke:${h};stroke-width:1px`);for(let t=0;t<3;t++)C.append("circle").attr("cx",-u/2+12+9*t).attr("cy",g+9).attr("r",2.5).attr("style",`fill:${h};stroke:none`);C.append("rect").attr("class","browser-address-bar").attr("x",-u/2+44).attr("y",g+4).attr("width",Math.max(u-56,10)).attr("height",10).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${h};stroke-width:1px;opacity:0.6`),m(e,C);let b=g+18+(p-18)/2;return l.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${b-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return T(e,t)},n}async function H(t,e){let r,{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o;let n=e.padding??0,s="neo"===e.look?28:n,l="neo"===e.look?24:n,{shapeSvg:h,bbox:c}=await f(t,e,x(e)),u=(e?.width??c.width)+("neo"===e.look?2*s:s+12),p=(e?.height??c.height)+("neo"===e.look?2*l:l),g=-p,y=[{x:12,y:g},{x:u,y:g},{x:u,y:0},{x:0,y:0},{x:0,y:g+12},{x:12,y:g}],{cssStyles:b}=e;
1if("handDrawn"===e.look){let t=d.A.svg(h),o=(0,i.Fr)(e,{}),a=C(y),n=t.path(a,o);r=h.insert(()=>n,":first-child").attr("transform",`translate(${-u/2}, ${p/2})`),b&&r.attr("style",b)}else r=K(h,u,p,y);return a&&r.attr("style",a),m(e,r),e.intersect=function(t){return L(e,y,t)},h}function Y(t,e){let{nodeStyles:r}=(0,i.GX)(e);e.label="";let o=t.insert("g").attr("class",x(e)).attr("id",e.domId??e.id),{cssStyles:a}=e,n=Math.max(28,e.width??0),s=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}],l=d.A.svg(o),h=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(h.roughness=0,h.fillStyle="solid");let c=C(s),u=l.path(c,h),p=o.insert(()=>u,":first-child");return a&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",a),r&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",r),e.width=28,e.height=28,e.intersect=function(t){return L(e,s,t)},o}async function G(t,e,r){let o,{labelStyles:a,nodeStyles:s}=(0,i.GX)(e);e.labelStyle=a;let{shapeSvg:h,bbox:c,halfPadding:u}=await f(t,e,x(e)),p=r?.padding??u,g="neo"===e.look?c.width/2+32:c.width/2+p,{cssStyles:y}=e;if("handDrawn"===e.look){let t=d.A.svg(h),r=(0,i.Fr)(e,{}),a=t.circle(0,0,2*g,r);(o=h.insert(()=>a,":first-child")).attr("class","basic label-container").attr("style",(0,n.KL)(y))}else o=h.insert("circle",":first-child").attr("class","basic label-container").attr("style",s).attr("r",g).attr("cx",0).attr("cy",0);return m(e,o),e.calcIntersect=function(t,e){let r=t.width/2;return _(t,r,e)},e.intersect=function(t){return l.R.info("Circle intersect",e,g,t),_(e,g,t)},h}async function X(t,e){let r=["node",e.cssClasses,e.class].filter(Boolean).join(" "),{shapeSvg:i,bbox:o,halfPadding:a}=await f(t,e,r),n=i.insert("rect",":first-child"),s=e.padding??0,l=e.positioned?e.width??0:o.width+s,h=e.positioned?e.height??0:o.height+s,c=e.positioned?-l/2:-o.width/2-a,d=e.positioned?-h/2:-o.height/2-a;return n.attr("class","basic cluster composite label-container").attr("style",e.style??null).attr("rx",e.rx??null).attr("ry",e.ry??null).attr("x",c).attr("y",d).attr("width",l).attr("height",h),m(e,n),e.intersect=function(t){return T(e,t)},i}async function V(t,e,{config:{themeVariables:r}}){let{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o;let{shapeSvg:n,bbox:s,label:l}=await f(t,e,x(e)),h=r?.nodeBorder??r?.lineColor??"currentColor",c=e.padding??12,u=Math.max(s.width+2*c,e.width??0,90),p=Math.max(s.height+2*c+20,e.height??0),g=-p/2,{cssStyles:y}=e,C=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){let t=d.A.svg(n).path(B(-u/2,g,u,p,12),(0,i.Fr)(e,{}));C.node()?.appendChild(t),y&&C.attr("style",y)}else C.append("rect").attr("x",-u/2).attr("y",g).attr("width",u).attr("height",p).attr("rx",12).attr("ry",12).attr("style",a);C.append("text").attr("x",-u/2+12).attr("y",g+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${h}`).text(">_"),m(e,C);let b=g+20+(p-20)/2;return l.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${b-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return T(e,t)},n}function Z(t){let e=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=2*t,o={x:i/2*e,y:i/2*r},a={x:-(i/2)*e,y:i/2*r},n={x:-(i/2)*e,y:-(i/2)*r},s={x:i/2*e,y:-(i/2)*r};return`M ${a.x},${a.y} L ${s.x},${s.y}
2                   M ${o.x},${o.y} L ${n.x},${n.y}`}function Q(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r,e.label="";let a=t.insert("g").attr("class",x(e)).attr("id",e.domId??e.id),n=Math.max(30,e?.width??0),{cssStyles:s}=e,h=d.A.svg(a),c=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(c.roughness=0,c.fillStyle="solid");let u=h.circle(0,0,2*n,c),p=Z(n),g=h.path(p,c),f=a.insert(()=>u,":first-child");return f.insert(()=>g),f.attr("class","outer-path"),s&&"handDrawn"!==e.look&&f.selectAll("path").attr("style",s),o&&"handDrawn"!==e.look&&f.selectAll("path").attr("style",o),m(e,f),e.intersect=function(t){return l.R.info("crossedCircle intersect",e,{radius:n,point:t}),_(e,n,t)},a}function J(t,e,r,i=100,o=0,a=180){let n=[],s=o*Math.PI/180,l=(a*Math.PI/180-s)/(i-1);for(let o=0;o<i;o++){let i=s+o*l,a=t+r*Math.cos(i),h=e+r*Math.sin(i);n.push({x:-a,y:-h})}return n}async function tt(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let{shapeSvg:a,bbox:n,label:s}=await f(t,e,x(e)),l="neo"===e.look?18:e.padding??0,h="neo"===e.look?12:e.padding??0,c=n.width+l,u=n.height+h,p=Math.max(5,.1*u),{cssStyles:g}=e,y=[...J(c/2,-u/2,p,30,-90,0),{x:-c/2-p,y:p},...J(c/2+2*p,-p,p,20,-180,-270),...J(c/2+2*p,p,p,20,-90,-180),{x:-c/2-p,y:-u/2},...J(c/2,u/2,p,20,0,90)],b=[{x:c/2,y:-u/2-p},{x:-c/2,y:-u/2-p}
2,...J(c/2,-u/2,p,20,-90,0),{x:-c/2-p,y:-p},...J(c/2+.1*c,-p,p,20,-180,-270),...J(c/2+.1*c,p,p,20,-90,-180),{x:-c/2-p,y:u/2},...J(c/2,u/2,p,20,0,90),{x:-c/2,y:u/2+p},{x:c/2,y:u/2+p}],k=d.A.svg(a),w=(0,i.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let T=C(y).replace("Z",""),B=k.path(T,w),v=C(b),S=k.path(v,{...w}),_=a.insert("g",":first-child");return _.insert(()=>S,":first-child").attr("stroke-opacity",0),_.insert(()=>B,":first-child"),_.attr("class","text"),g&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",g),o&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",o),_.attr("transform",`translate(${p}, 0)`),s.attr("transform",`translate(${-c/2+p-(n.x-(n.left??0))},${-u/2+(e.padding??0)/2-(n.y-(n.top??0))})`),m(e,_),e.intersect=function(t){return L(e,b,t)},a}function te(t,e,r,i=100,o=0,a=180){let n=[],s=o*Math.PI/180,l=(a*Math.PI/180-s)/(i-1);for(let o=0;o<i;o++){let i=s+o*l,a=t+r*Math.cos(i),h=e+r*Math.sin(i);n.push({x:a,y:h})}return n}async function tr(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let{shapeSvg:a,bbox:n,label:s}=await f(t,e,x(e)),l="neo"===e.look?18:e.padding??0,h="neo"===e.look?12:e.padding??0,c=n.width+("neo"===e.look?2*l:l),u=n.height+("neo"===e.look?2*h:h),p=Math.max(5,.1*u),{cssStyles:g}
2=e,y=[...te(c/2,-u/2,p,20,-90,0),{x:c/2+p,y:-p},...te(c/2+2*p,-p,p,20,-180,-270),...te(c/2+2*p,p,p,20,-90,-180),{x:c/2+p,y:u/2},...te(c/2,u/2,p,20,0,90)],b=[{x:-c/2,y:-u/2-p},{x:c/2,y:-u/2-p},...te(c/2,-u/2,p,20,-90,0),{x:c/2+p,y:-p},...te(c/2+2*p,-p,p,20,-180,-270),...te(c/2+2*p,p,p,20,-90,-180),{x:c/2+p,y:u/2},...te(c/2,u/2,p,20,0,90),{x:c/2,y:u/2+p},{x:-c/2,y:u/2+p}],k=d.A.svg(a),w=(0,i.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let T=C(y).replace("Z",""),B=k.path(T,w),v=C(b),S=k.path(v,{...w}),_=a.insert("g",":first-child");return _.insert(()=>S,":first-child").attr("stroke-opacity",0),_.insert(()=>B,":first-child"),_.attr("class","text"),g&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",g),o&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",o),_.attr("transform",`translate(${-p}, 0)`),s.attr("transform",`translate(${-c/2+(e.padding??0)/2-(n.x-(n.left??0))},${-u/2+(e.padding??0)/2-(n.y-(n.top??0))})`),m(e,_),e.intersect=function(t){return L(e,b,t)},a}function ti(t,e,r,i=100,o=0,a=180){let n=[],s=o*Math.PI/180,l=(a*Math.PI/180-s)/(i-1);for(let o=0;o<i;o++){let i=s+o*l,a=t+r*Math.cos(i),h=e+r*Math.sin(i);n.push({x:-a,y:-h})}return n}async function to(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let{shapeSvg:a,bbox:n,label:s}=await f(t,e,x(e)),l="neo"===e.look?18:e.padding??0,h="neo"===e.look?12:e.padding??0,c=n.width+("neo"===e.look?2*l:l),u=n.height+("neo"===e.look?2*h:h),p=Math.max(5,.1*u),{cssStyles:g}=e,y=[...ti(c/2,-u/2,p,30,-90,0),{x:-c/2-p,y:p},...ti(c/2+2*p,-p,p,20,-180,-270),...ti(c/2+2*p,p,p,20,-90,-180),{x:-c/2-p,y:-u/2},...ti(c/2,u/2,p,20,0,90)],b=[...ti(-c/2+p+p/2,-u/2,p,20,-90,-180),{x:c/2-p/2,y:p},...ti(-c/2-p/2,-p,p,20,0,90),...ti(-c/2-p/2,p,p,20,-90,0),{x:c/2-p/2,y:-p},...ti(-c/2+p+p/2,u/2,p,30,-180,-270)],k=[{x:c/2,y:-u/2-p},{x:-c/2,y:-u/2-p}
2,...ti(c/2,-u/2,p,20,-90,0),{x:-c/2-p,y:-p},...ti(c/2+2*p,-p,p,20,-180,-270),...ti(c/2+2*p,p,p,20,-90,-180),{x:-c/2-p,y:u/2},...ti(c/2,u/2,p,20,0,90),{x:-c/2,y:u/2+p},{x:c/2-p-p/2,y:u/2+p},...ti(-c/2+p+p/2,-u/2,p,20,-90,-180),{x:c/2-p/2,y:p},...ti(-c/2-p/2,-p,p,20,0,90),...ti(-c/2-p/2,p,p,20,-90,0),{x:c/2-p/2,y:-p},...ti(-c/2+p+p/2,u/2,p,30,-180,-270)],w=d.A.svg(a),T=(0,i.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(T.roughness=0,T.fillStyle="solid");let B=C(y).replace("Z",""),v=w.path(B,T),S=C(b).replace("Z",""),_=w.path(S,T),A=C(k),F=w.path(A,{...T}),M=a.insert("g",":first-child");return M.insert(()=>F,":first-child").attr("stroke-opacity",0),M.insert(()=>v,":first-child"),M.insert(()=>_,":first-child"),M.attr("class","text"),g&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",g),o&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",o),M.attr("transform",`translate(${p-p/4}, 0)`),s.attr("transform",`translate(${-c/2+(e.padding??0)/2-(n.x-(n.left??0))},${-u/2+(e.padding??0)/2-(n.y-(n.top??0))})`),m(e,M),e.intersect=function(t){return L(e,k,t)},a}async function ta(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a=e.padding??0,n="neo"===e.look?16:a,s="neo"===e.look?12:a,{shapeSvg:l,bbox:h}=await f(t,e,x(e)),c=Math.max(20,(h.width+2*n)*1.25,e?.width??0),u=Math.max(5,h.height+2*s,e?.height??0),p=u/2,{cssStyles:g}=e,y=d.A.svg(l),b=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let w=c-p,T=u/4,B=[{x:w,y:0},{x:T,y:0},{x:0,y:u/2},{x:T,y:u},{x:w,y:u},...k(-w,-u/2,p,50,270,90)],v=C(B),S=y.path(v,b),_=l.insert(()=>S,":first-child");return _.attr("class","basic label-container outer-path"),g&&"handDrawn"!==e.look&&_.selectChildren("path").attr("style",g),o&&"handDrawn"!==e.look&&_.selectChildren("path").attr("style",o),_.attr("transform",`translate(${-c/2}, ${-u/2})`),m(e,_),e.intersect=function(t){return L(e,B,t)},l}async function tn(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let{shapeSvg:a,bbox:n,label:s}=await f(t,e,x(e)),l=e.padding??20,h=Math.max(n.width+2*l,e.width??0,100),c=Math.min(Math.max(.23*h,16),56),u=.27*c,p=Math.max(n.height+2*l,e.height?e.height-(2*c-u):0),g=Math.min(.177*h,.45*p),y=p+2*c-u,C=-y/2,b=C+2*c-u,w=a.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:T}=e;
2if("handDrawn"===e.look){let t=d.A.svg(a),r=(0,i.Fr)(e,{}),o=t.path(B(-h/2,b,h,p,g),r),n=t.circle(0,C+c,2*c,r);w.insert(()=>n,":first-child"),w.insert(()=>o,":first-child"),T&&w.attr("style",T)}else w.append("rect").attr("x",-h/2).attr("y",b).attr("width",h).attr("height",p).attr("rx",g).attr("ry",g).attr("style",o),w.append("circle").attr("cx",0).attr("cy",C+c).attr("r",c).attr("style",o);m(e,w);let v=b+p/2;s.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${v-n.height/2-(n.y-(n.top??0))})`);let S=C+c,_=180*Math.asin(Math.min(1,(b-S)/c))/Math.PI,A=[...k(0,-S,c,24,180+_,-_),...k(-(-h/2+g),-(b+g),g,12,90,0),...k(-(-h/2+g),-(y/2-g),g,12,360,270),...k(-(h/2-g),-(y/2-g),g,12,270,180),...k(-(h/2-g),-(b+g),g,12,180,90)];return e.intersect=function(t){return L(e,A,t)},a}(0,h.K)(W,"block_arrow"),(0,h.K)(U,"browser"),(0,h.K)(H,"card"),(0,h.K)(Y,"choice"),(0,h.K)(G,"circle"),(0,h.K)(X,"composite"),(0,h.K)(V,"consoleWindow"),(0,h.K)(Z,"createLine"),(0,h.K)(Q,"crossedCircle"),(0,h.K)(J,"generateCirclePoints"),(0,h.K)(tt,"curlyBraceLeft"),(0,h.K)(te,"generateCirclePoints"),(0,h.K)(tr,"curlyBraceRight"),(0,h.K)(ti,"generateCirclePoints"),(0,h.K)(to,"curlyBraces"),(0,h.K)(ta,"curvedTrapezoid"),(0,h.K)(tn,"person");var ts=(0,h.K)((t,e,r,i,o,a)=>`M${t},${e+a} a${o},${a} 0,0,0 ${r},0 a${o},${a} 0,0,0 ${-r},0 l0,${i} a${o},${a} 0,0,0 ${r},0 l0,${-i}`,"createCylinderPathD"),tl=(0,h.K)((t,e,r,i,o,a)=>`M${t},${e+a} M${t+r},${e+a} a${o},${a} 0,0,0 ${-r},0 l0,${i} a${o},${a} 0,0,0 ${r},0 l0,${-i}`,"createOuterCylinderPathD"),th=(0,h.K)((t,e,r,i,o,a)=>`M${t-r/2},${-i/2} a${o},${a} 0,0,0 ${r},0`,"createInnerCylinderPathD");async function tc(t,e){let r,{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o;let s=e.padding??0,l="neo"===e.look?24:s,h="neo"===e.look?24:s,c=e.width??0;e.width&&(e.width=e.width-h,e.width<8&&(e.width=8)),e.height&&(e.height=e.height-l-c/2/(2.5+c/50)*3,e.height<8&&(e.height=8));let{shapeSvg:u,bbox:p,label:g}=await f(t,e,x(e)),y=Math.max(e.width??0,p.width)+h,C=y/2,b=C/(2.5+y/50),k=Math.max(e.height??0,p.height)+l+b,{cssStyles:w}=e;if("handDrawn"===e.look){let t=d.A.svg(u),o=tl(0,0,y,k,C,b),a=th(0,b,y,k,C,b),n=(0,i.Fr)(e,{}),s=t.path(o,n),l=t.path(a,(0,i.Fr)(e,{fill:"none"}));r=u.insert(()=>l,":first-child"),(r=u.insert(()=>s,":first-child")).attr("class","basic label-container"),w&&r.attr("style",w)}else{let t=ts(0,0,y,k,C,b);r=u.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,n.KL)(w)).attr("style",a)}return r.attr("label-offset-y",b),r.attr("transform",`translate(${-y/2}, ${-(k/2+b)})`),m(e,r),g.attr("transform",`translate(${-(p.width/2)-(p.x-(p.left??0))}, ${-(p.height/2)+(e.padding??0)/1.5-(p.y-(p.top??0))})`),e.intersect=function(t){let r=T(e,t),i=r.x-(e.x??0);if(0!=C&&(Math.abs(i)<(e.width??0)/2||Math.abs(i)==(e.width??0)/2&&Math.abs(r.y-(e.y??0))>(e.height??0)/2-b)){let o=b*b*(1-i*i/(C*C));o>0&&(o=Math.sqrt(o)),o=b-o,t.y-(e.y??0)>0&&(o=-o),r.y+=o}return r},u}async function td(t,e,r){let o,{labelStyles:a,nodeStyles:s}=(0,i.GX)(e);e.labelStyle=a;let{shapeSvg:l,bbox:h}=await f(t,e,x(e)),c=Math.max(h.width+2*r.labelPaddingX,e?.width||0),u=Math.max(h.height+2*r.labelPaddingY,e?.height||0),p=-c/2,g=-u/2,{rx:y,ry:C}=e,{cssStyles:b}=e;if(r?.rx&&r.ry&&(y=r.rx,C=r.ry),"handDrawn"===e.look){let t=d.A.svg(l),r=(0,i.Fr)(e,{}),a=y||C?t.path(B(p,g,c,u,y||0),r):t.rectangle(p,g,c,u,r);(o=l.insert(()=>a,":first-child")).attr("class","basic label-container").attr("style",(0,n.KL)(b))}else(o=l.insert("rect",":first-child")).attr("class","basic label-container").attr("style",s).attr("rx",(0,n.KL)(y)).attr("ry",(0,n.KL)(C)).attr("x",p).attr("y",g).attr("width",c).attr("height",u);return m(e,o,"handDrawn"===e.look?void 0:{width:c,height:u}),e.calcIntersect=function(t,e){return T(t,e)},e.intersect=function(t){return T(e,t)},l}
2async function tu(t,e){let{cssClasses:r,labelPaddingX:o,labelPaddingY:a,padding:n,width:s,height:l}=e,h=await td(t,e,{rx:0,ry:0,classes:r??"",labelPaddingX:o??(n??0)*2,labelPaddingY:a??n??0});if("handDrawn"===e.look){let t=d.A.svg(h),r=(0,i.Fr)(e,{}),o=h.select(".basic.label-container > path:nth-child(2)"),a=o.node();if(!a)return h;let n=null;return a instanceof SVGGraphicsElement&&(n=a.getBBox(),h.insert(()=>t.line(n.x,n.y,n.x+n.width,n.y,r),".basic.label-container g.label"),h.insert(()=>t.line(n.x,n.y+n.height,n.x+n.width,n.y+n.height,r),".basic.label-container g.label"),o.remove()),h}let c=h.select(".basic.label-container"),u=(Number(c.attr("width"))||s)??0,p=(Number(c.attr("height"))||l)??0;return u>0&&p>0&&c.attr("stroke-dasharray",`${u} ${p}`),h}async function tp(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a="neo"===e.look?16:e.padding??0,n="neo"===e.look?16:e.padding??0,{shapeSvg:s,bbox:l,label:h}=await f(t,e,x(e)),c=l.width+a,u=l.height+n,p=.2*u,g=-c/2,y=-u/2-p/2,{cssStyles:C}=e,b=d.A.svg(s),k=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let w=b.polygon([{x:g,y:y+p},{x:-g,y:y+p},{x:-g,y:-y},{x:g,y:-y},{x:g,y},{x:-g,y},{x:-g,y:y+p}].map(t=>[t.x,t.y]),k),B=s.insert(()=>w,":first-child");return B.attr("class","basic label-container outer-path"),C&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",C),o&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",o),h.attr("transform",`translate(${g+(e.padding??0)/2-(l.x-(l.left??0))}, ${y+p+(e.padding??0)/2-(l.y-(l.top??0))})`),m(e,B),e.intersect=function(t){return T(e,t)},s}async function tg(t,e){let r,{labelStyles:o,nodeStyles:a}=(0,i.GX)(e),s="neo"===e.look?12:5;e.labelStyle=o;let h=e.padding??0,c="neo"===e.look?16:h,{shapeSvg:u,bbox:p}=await f(t,e,x(e)),g=(e?.width?e?.width/2:p.width/2)+(c??0),y=g-s,{cssStyles:C}=e;if("handDrawn"===e.look){let t=d.A.svg(u),o=(0,i.Fr)(e,{roughness:.2,strokeWidth:2.5}),a=(0,i.Fr)(e,{roughness:.2,strokeWidth:1.5}),s=t.circle(0,0,2*g,o),l=t.circle(0,0,2*y,a);(r=u.insert("g",":first-child")).attr("class",(0,n.KL)(e.cssClasses)).attr("style",(0,n.KL)(C)),r.node()?.appendChild(s),r.node()?.appendChild(l)}else{let t=(r=u.insert("g",":first-child")).insert("circle",":first-child"),e=r.insert("circle");r.attr("class","basic label-container").attr("style",a),t.attr("class","outer-circle").attr("style",a).attr("r",g).attr("cx",0).attr("cy",0),e.attr("class","inner-circle").attr("style",a).attr("r",y).attr("cx",0).attr("cy",0)}return m(e,r),e.intersect=function(t){return l.R.info("DoubleCircle intersect",e,g,t),_(e,g,t)},u}function tf(t,e,{config:{themeVariables:r}}){let{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.label="",e.labelStyle=o;let n=t.insert("g").attr("class",x(e)).attr("id",e.domId??e.id),{cssStyles:s}=e,h=d.A.svg(n),{nodeBorder:c}=r,u=(0,i.Fr)(e,{fillStyle:"solid"});"handDrawn"!==e.look&&(u.roughness=0);let p=h.circle(0,0,14,u),g=n.insert(()=>p,":first-child");return g.selectAll("path").attr("style",`fill: ${c} !important;`),s&&s.length>0&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",s),a&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",a),m(e,g),e.intersect=function(t){return l.R.info("filledCircle intersect",e,{radius:7,point:t}),_(e,7,t)},n}async function ty(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a=e.padding??0,n="neo"===e.look?2*a:a;(e.width||e.height)&&(e.height=e?.height??0,e.height<10&&(e.height=10),e.width=(e?.width??0)-n-n/2,e.width<10&&(e.width=10));let{shapeSvg:s,bbox:h,label:c}=await f(t,e,x(e)),u=(e?.width?e?.width:h.width)+(n??0),p=e?.height?e?.height:u+h.height,g=[{x:0,y:-p},{x:p,y:-p},{x:p/2,y:0}],{cssStyles:y}=e,b=d.A.svg(s),k=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let w=C(g),T=b.path(w,k),B=s.insert(()=>T,":first-child").attr("transform",`translate(${-p/2}, ${p/2})`).attr("class","outer-path");return y&&"handDrawn"!==e.look&&B.selectChildren("path").attr("style",y),o&&"handDrawn"!==e.look&&B.selectChildren("path").attr("style",o),e.width=u,e.height=p,m(e,B),c.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))}
2, ${-p/2+(e.padding??0)/2+(h.y-(h.top??0))})`),e.intersect=function(t){return l.R.info("Triangle intersect",e,g,t),L(e,g,t)},s}async function tm(t,e){let r,{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o;let{shapeSvg:n,bbox:s,label:l}=await f(t,e,x(e)),h=e.padding??12,c=Math.max(s.width+2*h,e.width??0,90),u=s.height+2*h,p=Math.max(Math.min(.16*u,14),8),g=Math.max(u+p,e.height??0),y=g-p,C=Math.max(.38*c,28),b=-g/2,k=[{x:-c/2,y:b},{x:-c/2+C,y:b},{x:-c/2+C,y:b+p},{x:c/2,y:b+p},{x:c/2,y:g/2},{x:-c/2,y:g/2}],w=[`M${k[0].x},${k[0].y}`,...k.slice(1).map(t=>`L${t.x},${t.y}`),"Z"].join(" "),{cssStyles:T}=e;if("handDrawn"===e.look){let t=d.A.svg(n).path(w,(0,i.Fr)(e,{}));r=n.insert(()=>t,":first-child").attr("class","basic label-container"),T&&r.attr("style",T)}else r=n.insert("path",":first-child").attr("d",w).attr("class","basic label-container").attr("style",a);return"handDrawn"===e.look?m(e,r):m(e,r,{width:c,height:g}),l.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${b+p+y/2-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return L(e,k,t)},n}function tx(t,e,{dir:r,config:{state:o,themeVariables:a}}){let{nodeStyles:n}=(0,i.GX)(e);e.label="";let s=t.insert("g").attr("class",x(e)).attr("id",e.domId??e.id),{cssStyles:l}=e,h=Math.max(70,e?.width??0),c=Math.max(10,e?.height??0);"LR"===r&&(h=Math.max(10,e?.width??0),c=Math.max(70,e?.height??0));let u=-1*h/2,p=-1*c/2,g=d.A.svg(s),f=(0,i.Fr)(e,{stroke:a.lineColor,fill:a.lineColor});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");let y=g.rectangle(u,p,h,c,f),C=s.insert(()=>y,":first-child");l&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",l),n&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",n),m(e,C);let b=o?.padding??0;return e.width&&e.height&&(e.width+=b/2||0,e.height+=b/2||0),e.intersect=function(t){return T(e,t)},s}async function tC(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a="neo"===e.look?16:e.padding??0,n="neo"===e.look?12:e.padding??0;(e.width||e.height)&&(e.height=(e?.height??0)-2*n,e.height<10&&(e.height=10),e.width=(e?.width??0)-2*a,e.width<15&&(e.width=15));let{shapeSvg:s,bbox:h}=await f(t,e,x(e)),c=(e?.width?e?.width:Math.max(15,h.width))+2*a,u=(e?.height?e?.height:Math.max(10,h.height))+2*n,p=u/2,{cssStyles:g}=e,y=d.A.svg(s),b=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let w=[{x:-c/2,y:-u/2},{x:c/2-p,y:-u/2},...k(-c/2+p,0,p,50,90,270),{x:c/2-p,y:u/2},{x:-c/2,y:u/2}],T=C(w),B=y.path(T,b),v=s.insert(()=>B,":first-child");return v.attr("class","basic label-container outer-path"),g&&"handDrawn"!==e.look&&v.selectChildren("path").attr("style",g),o&&"handDrawn"!==e.look&&v.selectChildren("path").attr("style",o),m(e,v),e.intersect=function(t){return l.R.info("Pill intersect",e,{radius:p,point:t}),L(e,w,t)},s}(0,h.K)(tc,"cylinder"),(0,h.K)(td,"drawRect"),(0,h.K)(tu,"datastore"),(0,h.K)(tp,"dividedRectangle"),(0,h.K)(tg,"doublecircle"),(0,h.K)(tf,"filledCircle"),(0,h.K)(ty,"flippedTriangle"),(0,h.K)(tm,"folder"),(0,h.K)(tx,"forkJoin"),(0,h.K)(tC,"halfRoundedRectangle");var tb=(0,h.K)((t,e,r,i,o)=>`M${t+o},${e} L${t+r-o},${e} L${t+r},${e-i/2} L${t+r-o},${e-i} L${t+o},${e-i} L${t},${e-i/2} Z`,"createHexagonPathD");async function tk(t,e){let r,{labelStyles:o,nodeStyles:a}=(0,i.GX)(e),n="neo"===e.look?3.5:4;e.labelStyle=o;let s=e.padding??0,l="neo"===e.look?70:s,h="neo"===e.look?32:s;if(e.width||e.height){let t=e.height??0;e.width=(e?.width??0)-t/n*2-h,e.height=(e.height??0)-l}let{shapeSvg:c,bbox:u}=await f(t,e,x(e)),p=(e?.height?e?.height:u.height)+l,g=p/n,y=(e?.width?e?.width:u.width)+2*g+h,C=[{x:g,y:0},{x:y-g,y:0},{x:y,y:-p/2},{x:y-g,y:-p},{x:g,y:-p},{x:0,y:-p/2}],{cssStyles:b}=e;
2if("handDrawn"===e.look){let t=d.A.svg(c),o=(0,i.Fr)(e,{}),a=tb(0,0,y,p,g),n=t.path(a,o);r=c.insert(()=>n,":first-child").attr("transform",`translate(${-y/2}, ${p/2})`),b&&r.attr("style",b)}else r=K(c,y,p,C);return a&&r.attr("style",a),e.width=y,e.height=p,m(e,r),e.intersect=function(t){return L(e,C,t)},c}async function tw(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.label="",e.labelStyle=r;let{shapeSvg:a}=await f(t,e,x(e)),n=Math.max(30,e?.width??0),s=Math.max(30,e?.height??0),{cssStyles:h}=e,c=d.A.svg(a),u=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(u.roughness=0,u.fillStyle="solid");let p=[{x:0,y:0},{x:n,y:0},{x:0,y:s},{x:n,y:s}],g=C(p),y=c.path(g,u),b=a.insert(()=>y,":first-child");return b.attr("class","basic label-container outer-path"),h&&"handDrawn"!==e.look&&b.selectChildren("path").attr("style",h),o&&"handDrawn"!==e.look&&b.selectChildren("path").attr("style",o),b.attr("transform",`translate(${-n/2}, ${-s/2})`),m(e,b),e.intersect=function(t){return l.R.info("Pill intersect",e,{points:p}),L(e,p,t)},a}async function tT(t,e,{config:{themeVariables:r,flowchart:o}}){let{labelStyles:n}=(0,i.GX)(e);e.labelStyle=n;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,o?.wrappingWidth??0);let{shapeSvg:h,bbox:c,label:u}=await f(t,e,"icon-shape default"),p="t"===e.pos,{nodeBorder:g}=r,{stylesMap:y}=(0,i.WW)(e),x=-s/2,C=-s/2,b=8*!!e.label,k=d.A.svg(h),w=(0,i.Fr)(e,{stroke:"none",fill:"none"});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let B=k.rectangle(x,C,s,s,w),v=Math.max(s,c.width),S=s+c.height+b,_=k.rectangle(-v/2,-S/2,v,S,{...w,fill:"transparent",stroke:"none"}),A=h.insert(()=>B,":first-child"),F=h.insert(()=>_);if(e.icon){let t=h.append("g");t.html(`<g>${await (0,a.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let r=t.node().getBBox(),i=r.width,o=r.height,n=r.x,l=r.y;t.attr("transform",`translate(${-i/2-n},${p?c.height/2+b/2-o/2-l:-c.height/2-b/2-o/2-l})`),t.attr("style",`color: ${y.get("stroke")??g};`)}return u.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${p?-S/2:S/2-c.height})`),A.attr("transform",`translate(0,${p?c.height/2+b/2:-c.height/2-b/2})`),m(e,F),e.intersect=function(t){if(l.R.info("iconSquare intersect",e,t),!e.label)return T(e,t);let r=e.x??0,i=e.y??0,o=e.height??0,a=[];return L(e,a=p?[{x:r-c.width/2,y:i-o/2},{x:r+c.width/2,y:i-o/2},{x:r+c.width/2,y:i-o/2+c.height+b},{x:r+s/2,y:i-o/2+c.height+b},{x:r+s/2,y:i+o/2},{x:r-s/2,y:i+o/2},{x:r-s/2,y:i-o/2+c.height+b},{x:r-c.width/2,y:i-o/2+c.height+b}]:[{x:r-s/2,y:i-o/2},{x:r+s/2,y:i-o/2},{x:r+s/2,y:i-o/2+s},{x:r+c.width/2,y:i-o/2+s},{x:r+c.width/2/2,y:i+o/2},{x:r-c.width/2,y:i+o/2},{x:r-c.width/2,y:i-o/2+s},{x:r-s/2,y:i-o/2+s}],t)},h}async function tB(t,e,{config:{themeVariables:r,flowchart:o}}){let{labelStyles:n}=(0,i.GX)(e);e.labelStyle=n;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,o?.wrappingWidth??0);let{shapeSvg:h,bbox:c,label:u}=await f(t,e,"icon-shape default"),p=8*!!e.label,g="t"===e.pos,{nodeBorder:y,mainBkg:x}=r,{stylesMap:C}=(0,i.WW)(e),b=d.A.svg(h),k=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid"),k.stroke=C.get("fill")??x;let w=h.append("g");e.icon&&w.html(`<g>${await (0,a.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let B=w.node().getBBox(),v=B.width,S=B.height,_=B.x,A=B.y,F=Math.max(v,S)*Math.SQRT2+40,L=b.circle(0,0,F,k),M=Math.max(F,c.width),$=F+c.height+p,E=b.rectangle(-M/2,-$/2,M,$,{...k,fill:"transparent",stroke:"none"}),O=h.insert(()=>L,":first-child"),D=h.insert(()=>E);return w.attr("transform",`translate(${-v/2-_},${g?c.height/2+p/2-S/2-A:-c.height/2-p/2-S/2-A})`),w.attr("style",`color: ${C.get("stroke")??y};`),u.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${g?-$/2:$/2-c.height})`),O.attr("transform",`translate(0,${g?c.height/2+p/2:-c.height/2-p/2})`),m(e,D),e.intersect=function(t){return l.R.info("iconSquare intersect",e,t),T(e,t)},h}async function tv(t,e,{config:{themeVariables:r,flowchart:o}}){let{labelStyles:n}=(0,i.GX)(e);e.labelStyle=n;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,o?.wrappingWidth??0);let{shapeSvg:h,bbox:c,halfPadding:u,label:p}=await f(t,e,"icon-shape default"),g="t"===e.pos,y=s+2*u,x=s+2*u,{nodeBorder:C,mainBkg:b}=r,{stylesMap:k}=(0,i.WW)(e),w=8*!!e.label,v=d.A.svg(h),S=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid"),S.stroke=k.get("fill")??b;let _=v.path(B(-x/2,-y/2,x,y,5),S),A=Math.max(x,c.width),F=y+c.height+w,M=v.rectangle(-A/2,-F/2,A,F,{...S,fill:"transparent",stroke:"none"}),$=h.insert(()=>_,":first-child").attr("class","icon-shape2"),E=h.insert(()=>M);if(e.icon){let t=h.append("g");t.html(`<g>${await (0,a.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let r=t.node().getBBox(),i=r.width,o=r.height,n=r.x,l=r.y;t.attr("transform",`translate(${-i/2-n},${g?c.height/2+w/2-o/2-l:-c.height/2-w/2-o/2-l})`),t.attr("style",`color: ${k.get("stroke")??C};`)}return p.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${g?-F/2:F/2-c.height})`),$.attr("transform",`translate(0,${g?c.height/2+w/2:-c.height/2-w/2})`),m(e,E),e.intersect=function(t){if(l.R.info("iconSquare intersect",e,t),!e.label)return T(e,t);let r=e.x??0,i=e.y??0,o=e.height??0,a=[];return L(e,a=g?[{x:r-c.width/2,y:i-o/2},{x:r+c.width/2,y:i-o/2},{x:r+c.width/2,y:i-o/2+c.height+w},{x:r+x/2,y:i-o/2+c.height+w},{x:r+x/2,y:i+o/2},{x:r-x/2,y:i+o/2},{x:r-x/2,y:i-o/2+c.height+w},{x:r-c.width/2,y:i-o/2+c.height+w}]:[{x:r-x/2,y:i-o/2},{x:r+x/2,y:i-o/2},{x:r+x/2,y:i-o/2+y},{x:r+c.width/2,y:i-o/2+y},{x:r+c.width/2/2,y:i+o/2},{x:r-c.width/2,y:i+o/2},{x:r-c.width/2,y:i-o/2+y},{x:r-x/2,y:i-o/2+y}],t)},h}async function tS(t,e,{config:{themeVariables:r,flowchart:o}}){let{labelStyles:n}=(0,i.GX)(e);e.labelStyle=n;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,o?.wrappingWidth??0);let{shapeSvg:h,bbox:c,halfPadding:u,label:p}=await f(t,e,"icon-shape default"),g="t"===e.pos,y=s+2*u,x=s+2*u,{nodeBorder:C,mainBkg:b}=r,{stylesMap:k}=(0,i.WW)(e),w=8*!!e.label,v=d.A.svg(h),S=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid"),S.stroke=k.get("fill")??b;let _=v.path(B(-x/2,-y/2,x,y,.1),S),A=Math.max(x,c.width),F=y+c.height+w,M=v.rectangle(-A/2,-F/2,A,F,{...S,fill:"transparent",stroke:"none"}),$=h.insert(()=>_,":first-child"),E=h.insert(()=>M);if(e.icon){let t=h.append("g");t.html(`<g>${await (0,a.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let r=t.node().getBBox(),i=r.width,o=r.height,n=r.x,l=r.y;t.attr("transform",`translate(${-i/2-n},${g?c.height/2+w/2-o/2-l:-c.height/2-w/2-o/2-l})`),t.attr("style",`color: ${k.get("stroke")??C};`)}return p.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${g?-F/2:F/2-c.height})`),$.attr("transform",`translate(0,${g?c.height/2+w/2:-c.height/2-w/2})`),m(e,E),e.intersect=function(t){if(l.R.info("iconSquare intersect",e,t),!e.label)return T(e,t);let r=e.x??0,i=e.y??0,o=e.height??0,a=[];return L(e,a=g?[{x:r-c.width/2,y:i-o/2},{x:r+c.width/2,y:i-o/2},{x:r+c.width/2,y:i-o/2+c.height+w},{x:r+x/2,y:i-o/2+c.height+w},{x:r+x/2,y:i+o/2},{x:r-x/2,y:i+o/2},{x:r-x/2,y:i-o/2+c.height+w},{x:r-c.width/2,y:i-o/2+c.height+w}]:[{x:r-x/2,y:i-o/2},{x:r+x/2,y:i-o/2},{x:r+x/2,y:i-o/2+y},{x:r+c.width/2,y:i-o/2+y},{x:r+c.width/2/2,y:i+o/2},{x:r-c.width/2,y:i+o/2},{x:r-c.width/2,y:i-o/2+y},{x:r-x/2,y:i-o/2+y}],t)},h}async function t_(t,e,{config:{flowchart:r}}){let o=new Image;o.src=e?.img??"",await o.decode();
2let a=Number(o.naturalWidth.toString().replace("px","")),n=Number(o.naturalHeight.toString().replace("px",""));e.imageAspectRatio=a/n;let{labelStyles:s}=(0,i.GX)(e);e.labelStyle=s;let h=r?.wrappingWidth;e.defaultWidth=r?.wrappingWidth;let c=Math.max(e.label?h??0:0,e?.assetWidth??a),u="on"===e.constraint&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:c,p="on"===e.constraint?u/e.imageAspectRatio:e?.assetHeight??n;e.width=Math.max(u,h??0);let{shapeSvg:g,bbox:y,label:x}=await f(t,e,"image-shape default"),C="t"===e.pos,b=-u/2,k=8*!!e.label,w=d.A.svg(g),B=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(B.roughness=0,B.fillStyle="solid");let v=w.rectangle(b,-p/2,u,p,B),S=Math.max(u,y.width),_=p+y.height+k,A=w.rectangle(-S/2,-_/2,S,_,{...B,fill:"none",stroke:"none"}),F=g.insert(()=>v,":first-child"),M=g.insert(()=>A);if(e.img){let t=g.append("image");t.attr("href",e.img),t.attr("width",u),t.attr("height",p),t.attr("preserveAspectRatio","none"),t.attr("transform",`translate(${-u/2},${C?_/2-p:-_/2})`)}return x.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${C?-p/2-y.height/2-k/2:p/2-y.height/2+k/2})`),F.attr("transform",`translate(0,${C?y.height/2+k/2:-y.height/2-k/2})`),m(e,M),e.intersect=function(t){if(l.R.info("iconSquare intersect",e,t),!e.label)return T(e,t);let r=e.x??0,i=e.y??0,o=e.height??0,a=[];return L(e,a=C?[{x:r-y.width/2,y:i-o/2},{x:r+y.width/2,y:i-o/2},{x:r+y.width/2,y:i-o/2+y.height+k},{x:r+u/2,y:i-o/2+y.height+k},{x:r+u/2,y:i+o/2},{x:r-u/2,y:i+o/2},{x:r-u/2,y:i-o/2+y.height+k},{x:r-y.width/2,y:i-o/2+y.height+k}]:[{x:r-u/2,y:i-o/2},{x:r+u/2,y:i-o/2},{x:r+u/2,y:i-o/2+p},{x:r+y.width/2,y:i-o/2+p},{x:r+y.width/2/2,y:i+o/2},{x:r-y.width/2,y:i+o/2},{x:r-y.width/2,y:i-o/2+p},{x:r-u/2,y:i-o/2+p}],t)},g}async function tA(t,e){let r,{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:l,bbox:h}=await f(t,e,x(e)),c=Math.max(h.height+2*n,e.height??0),u=Math.max(h.width+2*s,(e.width??0)-c),p=[{x:0,y:0},{x:u,y:0},{x:u+3*c/6,y:-c},{x:-3*c/6,y:-c}],{cssStyles:g}=e;
2if("handDrawn"===e.look){let t=d.A.svg(l),o=(0,i.Fr)(e,{}),a=C(p),n=t.path(a,o);r=l.insert(()=>n,":first-child").attr("transform",`translate(${-u/2}, ${c/2})`),g&&r.attr("style",g)}else r=K(l,u,c,p);return a&&r.attr("style",a),e.width=u,e.height=c,m(e,r),e.intersect=function(t){return L(e,p,t)},l}async function tF(t,e){let{shapeSvg:r,bbox:i,label:o}=await f(t,e,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),o.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),m(e,a),e.intersect=function(t){return T(e,t)},r}async function tL(t,e){let r,{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:l,bbox:h}=await f(t,e,x(e)),c=Math.max(h.height+n,e.height??0),u=Math.max(h.width+s,(e.width??0)-c),p=[{x:0,y:0},{x:u+3*c/6,y:0},{x:u,y:-c},{x:-(3*c)/6,y:-c}],{cssStyles:g}=e;if("handDrawn"===e.look){let t=d.A.svg(l),o=(0,i.Fr)(e,{}),a=C(p),n=t.path(a,o);r=l.insert(()=>n,":first-child").attr("transform",`translate(${-u/2}, ${c/2})`),g&&r.attr("style",g)}else r=K(l,u,c,p);return a&&r.attr("style",a),e.width=u,e.height=c,m(e,r),e.intersect=function(t){return L(e,p,t)},l}async function tM(t,e){let r,{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:l,bbox:h}=await f(t,e,x(e)),c=Math.max(h.height+n,e.height??0),u=Math.max(h.width+s,(e.width??0)-c),p=[{x:-3*c/6,y:0},{x:u,y:0},{x:u+3*c/6,y:-c},{x:0,y:-c}],{cssStyles:g}=e;
2if("handDrawn"===e.look){let t=d.A.svg(l),o=(0,i.Fr)(e,{}),a=C(p),n=t.path(a,o);r=l.insert(()=>n,":first-child").attr("transform",`translate(${-u/2}, ${c/2})`),g&&r.attr("style",g)}else r=K(l,u,c,p);return a&&r.attr("style",a),e.width=u,e.height=c,m(e,r),e.intersect=function(t){return L(e,p,t)},l}function t$(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.label="",e.labelStyle=r;let a=t.insert("g").attr("class",x(e)).attr("id",e.domId??e.id),{cssStyles:n}=e,s=Math.max(35,e?.width??0),h=Math.max(35,e?.height??0),c=[{x:s,y:0},{x:0,y:h+3.5},{x:s-14,y:h+3.5},{x:0,y:2*h},{x:s,y:h-3.5},{x:14,y:h-3.5}],u=d.A.svg(a),p=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");let g=C(c),f=u.path(g,p),y=a.insert(()=>f,":first-child");return y.attr("class","outer-path"),n&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",n),o&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",o),y.attr("transform",`translate(-${s/2},${-h})`),m(e,y),e.intersect=function(t){return l.R.info("lightningBolt intersect",e,t),L(e,c,t)},a}(0,h.K)(tk,"hexagon"),(0,h.K)(tw,"hourglass"),(0,h.K)(tT,"icon"),(0,h.K)(tB,"iconCircle"),(0,h.K)(tv,"iconRounded"),(0,h.K)(tS,"iconSquare"),(0,h.K)(t_,"imageSquare"),(0,h.K)(tA,"inv_trapezoid"),(0,h.K)(tF,"labelRect"),(0,h.K)(tL,"lean_left"),(0,h.K)(tM,"lean_right"),(0,h.K)(t$,"lightningBolt");var tE=(0,h.K)((t,e,r,i,o,a,n)=>`M${t},${e+a} a${o},${a} 0,0,0 ${r},0 a${o},${a} 0,0,0 ${-r},0 l0,${i} a${o},${a} 0,0,0 ${r},0 l0,${-i} M${t},${e+a+n} a${o},${a} 0,0,0 ${r},0`,"createCylinderPathD"),tO=(0,h.K)((t,e,r,i,o,a,n)=>`M${t},${e+a} M${t+r},${e+a} a${o},${a} 0,0,0 ${-r},0 l0,${i} a${o},${a} 0,0,0 ${r},0 l0,${-i} M${t},${e+a+n} a${o},${a} 0,0,0 ${r},0`,"createOuterCylinderPathD"),tD=(0,h.K)((t,e,r,i,o,a)=>`M${t-r/2},${-i/2} a${o},${a} 0,0,0 ${r},0`,"createInnerCylinderPathD");async function tI(t,e){let r,{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o;let s=e.padding??0,l="neo"===e.look?16:s,h="neo"===e.look?24:s;if(e.width||e.height){let t=e.width??0;e.width=(e.width??0)-l,e.width<10&&(e.width=10),e.height=(e.height??0)-h-t/2/(2.5+t/50)*3,e.height<10&&(e.height=10)}let{shapeSvg:c,bbox:u,label:p}=await f(t,e,x(e)),g=(e?.width?e?.width:u.width)+2*l,y=g/2,C=y/(2.5+g/50),b=(e?.height?e?.height:u.height)+C+2*h,k=.1*b,{cssStyles:w}=e;if("handDrawn"===e.look){let t=d.A.svg(c),o=tO(0,0,g,b,y,C,k),a=tD(0,C,g,b,y,C),n=(0,i.Fr)(e,{}),s=t.path(o,n),l=t.path(a,n);c.insert(()=>l,":first-child").attr("class","line"),(r=c.insert(()=>s,":first-child")).attr("class","basic label-container"),w&&r.attr("style",w)}else{let t=tE(0,0,g,b,y,C,k);r=c.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,n.KL)(w)).attr("style",a)}return r.attr("label-offset-y",C),r.attr("transform",`translate(${-g/2}, ${-(b/2+C)})`),m(e,r),p.attr("transform",`translate(${-(u.width/2)-(u.x-(u.left??0))}, ${-(u.height/2)+C-(u.y-(u.top??0))})`),e.intersect=function(t){let r=T(e,t),i=r.x-(e.x??0);if(0!=y&&(Math.abs(i)<(e.width??0)/2||Math.abs(i)==(e.width??0)/2&&Math.abs(r.y-(e.y??0))>(e.height??0)/2-C)){let o=C*C*(1-i*i/(y*y));o>0&&(o=Math.sqrt(o)),o=C-o,t.y-(e.y??0)>0&&(o=-o),r.y+=o}return r},c}async function tK(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a=e.padding??0,n="neo"===e.look?16:a,s="neo"===e.look?12:a;if(e.width||e.height){let t=e.width;e.width=(t??0)*10/11-2*n,e.width<10&&(e.width=10),e.height=(e?.height??0)-2*s,e.height<10&&(e.height=10)}let{shapeSvg:l,bbox:h,label:c}=await f(t,e,x(e)),u=(e?.width?e?.width:h.width)+(n??0)*2,p=(e?.height?e?.height:h.height)+(s??0)*2,g="neo"===e.look?p/4:p/8,y=p+g,{cssStyles:C}=e,k=d.A.svg(l),w=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let T=[{x:-u/2-u/2*.1,y:-y/2},{x:-u/2-u/2*.1,y:y/2},...b(-u/2-u/2*.1,y/2,u/2+u/2*.1,y/2,g,.8),{x:u/2+u/2*.1,y:-y/2},{x:-u/2-u/2*.1,y:-y/2},{x:-u/2,y:-y/2},{x:-u/2,y:y/2*1.1},{x:-u/2,y:-y/2}],B=k.polygon(T.map(t=>[t.x,t.y]),w),v=l.insert(()=>B,":first-child");return v.attr("class","basic label-container outer-path"),C&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",C),o&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",o),v.attr("transform",`translate(0,${-g/2})`),c.attr("transform",`translate(${-u/2+(e.padding??0)+u/2*.1/2-(h.x-(h.left??0))},${-p/2+(e.padding??0)-g/2-(h.y-(h.top??0))})`),m(e,v),e.intersect=function(t){return L(e,T,t)},l}async function tq(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a=e.padding??0,n="neo"===e.look?16:a,s="neo"===e.look?12:a,l="neo"===e.look?10:5;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*n-2*l,10),e.height=Math.max((e?.height??0)-2*s-2*l,10));let{shapeSvg:h,bbox:c,label:u}=await f(t,e,x(e)),p=(e?.width?e?.width:c.width)+2*n+2*l,g=(e?.height?e?.height:c.height)+2*s+2*l,y=p-2*l,b=g-2*l,k=-y/2,T=-b/2,{cssStyles:B}=e,v=d.A.svg(h),S=(0,i.Fr)(e,{}),_=[{x:k-l,y:T+l},{x:k-l,y:T+b+l},{x:k+y-l,y:T+b+l},{x:k+y-l,y:T+b},{x:k+y,y:T+b},{x:k+y,y:T+b-l},{x:k+y+l,y:T+b-l},{x:k+y+l,y:T-l},{x:k+l,y:T-l},{x:k+l,y:T},{x:k,y:T},{x:k,y:T+l}];"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");let A=C(_),F=v.path(A,S),M=C([{x:k,y:T+l},{x:k+y-l,y:T+l},{x:k+y-l,y:T+b},{x:k+y,y:T+b},{x:k+y,y:T},{x:k,y:T}]),$=v.path(M,S);"handDrawn"!==e.look&&(F=w(F),$=w($));let E=h.insert("g",":first-child");return E.insert(()=>F),E.insert(()=>$),E.attr("class","basic label-container outer-path"),B&&"handDrawn"!==e.look&&E.selectAll("path").attr("style",B),o&&"handDrawn"!==e.look&&E.selectAll("path").attr("style",o),u.attr("transform",`translate(${-(c.width/2)-l-(c.x-(c.left??0))}, ${-(c.height/2)+l-(c.y-(c.top??0))})`),m(e,E),e.intersect=function(t){return L(e,_,t)},h}async function tR(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let{shapeSvg:a,bbox:n,label:s}=await f(t,e,x(e)),l=e.padding??0,h="neo"===e.look?16:l,c="neo"===e.look?12:l,u=!0;(e.width||e.height)&&(u=!1,e.width=(e?.width??0)-2*h,e.height=(e?.height??0)-3*c);let p=Math.max(n.width,e?.width??0)+2*h,g=Math.max(n.height,e?.height??0)+3*c,y="neo"===e.look?g/4:g/8,k=g+(u?y/2:-y/2),w=-p/2,T=-k/2,{cssStyles:B}=e,v=b(w-10,T+k+10,w+p-10,T+k+10,y,.8),S=v?.[v.length-1],_=[{x:w-10,y:T+10},{x:w-10,y:T+k+10},...v,{x:w+p-10,y:S.y-10},{x:w+p,y:S.y-10},{x:w+p,y:S.y-20},{x:w+p+10,y:S.y-20},{x:w+p+10,y:T-10},{x:w+10,y:T-10},{x:w+10,y:T},{x:w,y:T},{x:w,y:T+10}],A=[{x:w,y:T+10},{x:w+p-10,y:T+10},{x:w+p-10,y:S.y-10},{x:w+p,y:S.y-10},{x:w+p,y:T},{x:w,y:T}],F=d.A.svg(a),M=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let $=C(_),E=F.path($,M),O=C(A),D=F.path(O,M),I=a.insert(()=>E,":first-child");return I.insert(()=>D),I.attr("class","basic label-container outer-path"),B&&"handDrawn"!==e.look&&I.selectAll("path").attr("style",B),o&&"handDrawn"!==e.look&&I.selectAll("path").attr("style",o),I.attr("transform",`translate(0,${-y/2})`),s.attr("transform",`translate(${-(n.width/2)-10-(n.x-(n.left??0))}, ${-(n.height/2)+10-y/2-(n.y-(n.top??0))})`),m(e,I),e.intersect=function(t){return L(e,_,t)},a}async function tP(t,e,{config:{themeVariables:r}}){let{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o,e.useHtmlLabels||(0,s.E)((0,s.zj)())||(e.centerLabel=!0);let{shapeSvg:n,bbox:l,label:h}=await f(t,e,x(e)),c=Math.max(l.width+(e.padding??0)*2,e?.width??0),u=Math.max(l.height+(e.padding??0)*2,e?.height??0),{cssStyles:p}=e,g=d.A.svg(n),y=(0,i.Fr)(e,{fill:r.noteBkgColor,stroke:r.noteBorderColor});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");let C=g.rectangle(-c/2,-u/2,c,u,y),b=n.insert(()=>C,":first-child");return b.attr("class","basic label-container outer-path"),h.attr("class","label noteLabel"),p&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",p),a&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",a),h.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),m(e,b),e.intersect=function(t){return T(e,t)},n}(0,h.K)(tI,"linedCylinder"),(0,h.K)(tK,"linedWaveEdgedRect"),(0,h.K)(tq,"multiRect"),(0,h.K)(tR,"multiWaveEdgedRectangle"),(0,h.K)(tP,"note");var tz=(0,h.K)((t,e,r)=>`M${t+r/2},${e} L${t+r},${e-r/2} L${t+r/2},${e-r} L${t},${e-r/2} Z`,"createDecisionBoxPathD");async function tN(t,e){let r,{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o;let{shapeSvg:n,bbox:s}=await f(t,e,x(e)),l=s.width+(e.padding??0)+(s.height+(e.padding??0)),h=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}],{cssStyles:c}=e;
2if("handDrawn"===e.look){let t=d.A.svg(n),o=(0,i.Fr)(e,{}),a=tz(0,0,l),s=t.path(a,o);r=n.insert(()=>s,":first-child").attr("transform",`translate(${-l/2+.5}, ${l/2})`),c&&r.attr("style",c)}else(r=K(n,l,l,h)).attr("transform",`translate(${-l/2+.5}, ${l/2})`);return a&&r.attr("style",a),m(e,r),e.calcIntersect=function(t,e){let r=t.width,i=L(t,[{x:r/2,y:0},{x:r,y:-r/2},{x:r/2,y:-r},{x:0,y:-r/2}],e);return{x:i.x-.5,y:i.y-.5}},e.intersect=function(t){return this.calcIntersect(e,t)},n}async function tj(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a=e.padding??0,n="neo"===e.look?21:a??0,s="neo"===e.look?12:a??0,{shapeSvg:l,bbox:h,label:c}=await f(t,e,x(e)),u=h.width+("neo"===e.look?2*n:n),p=Math.max(h.height+("neo"===e.look?2*s:s),e.height??0),g=-Math.max(u,(e.width??0)-p/4)/2,y=-p/2,b=y/2,k=[{x:g+b,y},{x:g,y:0},{x:g+b,y:-y},{x:-g,y:-y},{x:-g,y}],{cssStyles:w}=e,T=d.A.svg(l),B=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(B.roughness=0,B.fillStyle="solid");let v=C(k),S=T.path(v,B),_=l.insert(()=>S,":first-child");return _.attr("class","basic label-container outer-path"),w&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",w),o&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",o),_.attr("transform",`translate(${-b/2},0)`),c.attr("transform",`translate(${-b/2-h.width/2-(h.x-(h.left??0))}, ${-(h.height/2)-(h.y-(h.top??0))})`),m(e,_),e.intersect=function(t){return L(e,k,t)},l}async function tW(t,e){let r,o,a,{labelStyles:n,nodeStyles:h}=(0,i.GX)(e);e.labelStyle=n,r=e.cssClasses?"node "+e.cssClasses:"node default";let u=t.insert("g").attr("class",r).attr("id",e.domId||e.id),p=u.insert("g"),g=u.insert("g").attr("class","label").attr("style",h),f=e.description,y=e.label,x=await v(g,y,e.labelStyle,!0,!0),C={width:0,height:0};if((0,s.E)((0,s.D7)())){let t=x.children[0],e=(0,c.Ltv)(x);C=t.getBoundingClientRect(),e.attr("width",C.width),e.attr("height",C.height)}l.R.info("Text 2",f);let b=f||[],k=x.getBBox(),w=await v(g,Array.isArray(b)?b.join("<br/>"):b,e.labelStyle,!0,!0),S=w.children[0],_=(0,c.Ltv)(w);C=S.getBoundingClientRect(),_.attr("width",C.width),_.attr("height",C.height);let A=(e.padding||0)/2;(0,c.Ltv)(w).attr("transform","translate( "+(C.width>k.width?0:(k.width-C.width)/2)+", "+(k.height+A+5)+")"),(0,c.Ltv)(x).attr("transform","translate( "+(C.width<k.width?0:-(k.width-C.width)/2)+", 0)"),C=g.node().getBBox(),g.attr("transform","translate("+-C.width/2+", "+(-C.height/2-A+3)+")");let F=C.width+(e.padding||0),L=C.height+(e.padding||0),M=-C.width/2-A,$=-C.height/2-A;if("handDrawn"===e.look){let t=d.A.svg(u),r=(0,i.Fr)(e,{}),n=t.path(B(M,$,F,L,e.rx||0),r),s=t.line(-C.width/2-A,-C.height/2-A+k.height+A,C.width/2+A,-C.height/2-A+k.height+A,r);a=u.insert(()=>(l.R.debug("Rough node insert CXC",n),s),":first-child"),o=u.insert(()=>(l.R.debug("Rough node insert CXC",n),n),":first-child")}else o=p.insert("rect",":first-child"),a=p.insert("line"),o.attr("class","outer title-state").attr("style",h).attr("x",-C.width/2-A).attr("y",-C.height/2-A).attr("width",C.width+(e.padding||0)).attr("height",C.height+(e.padding||0)),a.attr("class","divider").attr("x1",-C.width/2-A).attr("x2",C.width/2+A).attr("y1",-C.height/2-A+k.height+A).attr("y2",-C.height/2-A+k.height+A);return m(e,o),e.intersect=function(t){return T(e,t)},u}async function tU(t,e,{config:{themeVariables:r}}){let i=r?.radius??5,o={rx:i,ry:i,classes:"",labelPaddingX:(e?.padding??0)*1,labelPaddingY:(e?.padding??0)*1};return td(t,e,o)}async function tH(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a="neo"===e.look?16:e.padding??0,s="neo"===e.look?12:e.padding??0,{shapeSvg:l,bbox:h,label:c}=await f(t,e,x(e)),u=(e?.width??h.width)+2*a+("neo"===e.look?8:16),p=(e?.height??h.height)+2*s,g=u-8,y=8-u/2,C=-p/2,{cssStyles:b}=e,k=d.A.svg(l),w=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let B=k.polygon([{x:y,y:C},{x:y+g,y:C},{x:y+g,y:C+p},{x:y-8,y:C+p},{x:y-8,y:C},{x:y,y:C},{x:y,y:C+p}].map(t=>[t.x,t.y]),w),v=l.insert(()=>B,":first-child");return v.attr("class","basic label-container outer-path").attr("style",(0,n.KL)(b)),o&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",o),b&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",o),c.attr("transform",`translate(${4-h.width/2-(h.x-(h.left??0))}, ${-(h.height/2)-(h.y-(h.top??0))})`),m(e,v),e.intersect=function(t){return T(e,t)},l}async function tY(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a=e.padding??0,n="neo"===e.look?16:a,s="neo"===e.look?12:a;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*n,10),e.height=Math.max((e?.height??0)/1.5-2*s,10));let{shapeSvg:l,bbox:h,label:c}=await f(t,e,x(e)),u=(e?.width?e?.width:h.width)+2*n,p=((e?.height?e?.height:h.height)+2*s)*1.5/1.5,g=-u/2,y=-p/2,{cssStyles:b}=e,k=d.A.svg(l),w=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let T=[{x:g,y},{x:g,y:y+p},{x:g+u,y:y+p},{x:g+u,y:y-p/2}],B=C(T),v=k.path(B,w),S=l.insert(()=>v,":first-child");return S.attr("class","basic label-container  outer-path"),b&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",b),o&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",o),S.attr("transform",`translate(0, ${p/4})`),c.attr("transform",`translate(${-u/2+(e.padding??0)-(h.x-(h.left??0))}, ${-p/4+(e.padding??0)-(h.y-(h.top??0))})`),m(e,S),e.intersect=function(t){return L(e,T,t)},l}async function tG(t,e){let r=e.padding??0,i="neo"===e.look?16:2*r,o="neo"===e.look?12:r,a={rx:0,ry:0,classes:"",labelPaddingX:e.labelPaddingX??i,labelPaddingY:o};return td(t,e,a)}async function tX(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a=e.padding??0,n="neo"===e.look?20:a,s="neo"===e.look?12:a,{shapeSvg:l,bbox:h}=await f(t,e,x(e)),c=h.height+("neo"===e.look?2*s:s),u=h.width+c/4+("neo"===e.look?2*n:n),p=c/2,{cssStyles:g}=e,y=d.A.svg(l),b=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let w=[{x:-u/2+p,y:-c/2},{x:u/2-p,y:-c/2}
2,...k(-u/2+p,0,p,50,90,270),{x:u/2-p,y:c/2},...k(u/2-p,0,p,50,270,450)],T=C(w),B=y.path(T,b),v=l.insert(()=>B,":first-child");return v.attr("class","basic label-container outer-path"),g&&"handDrawn"!==e.look&&v.selectChildren("path").attr("style",g),o&&"handDrawn"!==e.look&&v.selectChildren("path").attr("style",o),m(e,v),e.intersect=function(t){return L(e,w,t)},l}async function tV(t,e){let r={rx:"neo"===e.look?3:5,ry:"neo"===e.look?3:5,classes:"flowchart-node"};return td(t,e,r)}function tZ(t,e,{config:{themeVariables:r}}){let{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o;let{cssStyles:n}=e,{lineColor:s,stateBorder:l,nodeBorder:h,nodeShadow:c}=r;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);let u=t.insert("g").attr("class","node default").attr("id",e.domId??e.id),p=d.A.svg(u),g=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");let f=p.circle(0,0,e.width,{...g,stroke:s,strokeWidth:2}),y=l??h,x=(e.width??0)*5/14,C=p.circle(0,0,x,{...g,fill:y,stroke:y,strokeWidth:2,fillStyle:"solid"}),b=u.insert(()=>f,":first-child");if(b.insert(()=>C),"handDrawn"!==e.look&&b.attr("class","outer-path"),n&&b.selectAll("path").attr("style",n),a&&b.selectAll("path").attr("style",a),e.width<25&&c&&"handDrawn"!==e.look){let e=t.node()?.ownerSVGElement?.id??"",r=e?`${e}-drop-shadow-small`:"drop-shadow-small";b.attr("style",`filter:url(#${r})`)}return m(e,b),e.intersect=function(t){return _(e,(e.width??0)/2,t)},u}function tQ(t,e,{config:{themeVariables:r}}){let o,{lineColor:a,nodeShadow:n}=r;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.
2width||(e.width=14),e.height||(e.height=14);let s=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);if("handDrawn"===e.look){let t=d.A.svg(s).circle(0,0,e.width,(0,i.ue)(a));(o=s.insert(()=>t)).attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14)}else(o=s.insert("circle",":first-child")).attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14);if(e.width<25&&n&&"handDrawn"!==e.look){let e=t.node()?.ownerSVGElement?.id??"",r=e?`${e}-drop-shadow-small`:"drop-shadow-small";o.attr("style",`filter:url(#${r})`)}return m(e,o),e.intersect=function(t){return _(e,(e.width??7)/2,t)},s}async function tJ(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a=e?.padding??8,s="neo"===e.look?28:a,l="neo"===e.look?12:a,{shapeSvg:h,bbox:c}=await f(t,e,x(e)),u=Math.max(c.width+16+s,e.width??0),p=Math.max(c.height+l,e.height??0),g=u-16,y=-u/2,C=-p/2,b=[{x:0,y:0},{x:g,y:0},{x:g,y:-p},{x:0,y:-p},{x:0,y:0},{x:-8,y:0},{x:g+8,y:0},{x:g+8,y:-p},{x:-8,y:-p},{x:-8,y:0}];if("handDrawn"===e.look){let t=d.A.svg(h),r=(0,i.Fr)(e,{}),o=t.rectangle(y,C,g+16,p,r),a=t.line(y+8,C,y+8,C+p,r),s=t.line(y+8+g,C,y+8+g,C+p,r);h.insert(()=>a,":first-child"),h.insert(()=>s,":first-child");let l=h.insert(()=>o,":first-child"),{cssStyles:c}=e;l.attr("class","basic label-container").attr("style",(0,n.KL)(c)),m(e,l)}else{let t=K(h,g,p,b);o&&t.attr("style",o),m(e,t)}return e.intersect=function(t){return L(e,b,t)},h}async function t0(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a=e.padding??0,n="neo"===e.look?16:a,s="neo"===e.look?12:a;(e.width||e.height)&&(e.height=Math.max((e?.height??0)-2*s,10),e.width=Math.max((e?.width??0)-2*n-.2*(e.height+2*s),10));let{shapeSvg:l,bbox:h}=await f(t,e,x(e)),c=(e?.height?e?.height:h.height)+2*s,u=.2*c,p=(e?.width?e?.width:h.width)+2*n+u-u,g=-p/2,y=-c/2,{cssStyles:b}=e,k=d.A.svg(l),w=(0,i.Fr)(e,{}),T=[{x:g-u/2,y},{x:g+p+u/2,y},{x:g+p+u/2,y:y+c},{x:g-u/2,y:y+c}];"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let B=C(T),v=k.path(B,w),S=C([{x:g+p-u/2,y:y+c},{x:g+p+u/2,y:y+c},{x:g+p+u/2,y:y+c-.2*c}]),_=k.path(S,{...w,fillStyle:"solid"}),A=l.insert(()=>_,":first-child");return A.insert(()=>v,":first-child"),A.attr("class","basic label-container outer-path"),b&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",b),o&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",o),m(e,A),e.intersect=function(t){return L(e,T,t)},l}async function t1(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let{shapeSvg:a,bbox:n,label:s}=await f(t,e,x(e)),l=Math.max(n.width+(e.padding??0)*2,e?.width??0),h=Math.max(n.height+(e.padding??0)*2,e?.height??0),c=h/8,u=.2*l,p=.2*h,g=h+c,{cssStyles:y}=e,k=d.A.svg(a),w=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let T=[{x:-l/2-l/2*.1,y:g/2},...b(-l/2-l/2*.1,g/2,l/2+l/2*.1,g/2,c,.8),{x:l/2+l/2*.1,y:-g/2},{x:-l/2-l/2*.1,y:-g/2}],B=-l/2+l/2*.1,v=-g/2-.4*p,S=[{x:B+l-u,y:(v+h)*1.3},{x:B+l,y:v+h-p},{x:B+l,y:(v+h)*.9},...b(B+l,(v+h)*1.25,B+l-u,(v+h)*1.3,-(.02*h),.5)],_=C(T),A=k.path(_,w),F=C(S),M=k.path(F,{...w,fillStyle:"solid"}),$=a.insert(()=>M,":first-child");return $.insert(()=>A,":first-child"),$.attr("class","basic label-container outer-path"),y&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",y),o&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",o),$.attr("transform",`translate(0,${-c/2})`),s.attr("transform",`translate(${-l/2+(e.padding??0)-(n.x-(n.left??0))},${-h/2+(e.padding??0)-c/2-(n.y-(n.top??0))})`),m(e,$),e.intersect=function(t){return L(e,T,t)},a}async function t2(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let{shapeSvg:a,bbox:n}=await f(t,e,x(e)),s=Math.max(n.width+(e.padding??0),e?.width||0),l=Math.max(n.height+(e.padding??0),e?.height||0),h=a.insert("rect",":first-child");return h.attr("class","text").attr("style",o).attr("rx",0).attr("ry",0).attr("x",-s/2).attr("y",-l/2).attr("width",s).attr("height",l),m(e,h),e.intersect=function(t){return T(e,t)},a}(0,h.K)(tN,"question"),(0,h.K)(tj,"rect_left_inv_arrow"),(0,h.K)(tW,"rectWithTitle"),
2(0,h.K)(tU,"roundedRect"),(0,h.K)(tH,"shadedProcess"),(0,h.K)(tY,"slopedRect"),(0,h.K)(tG,"squareRect"),(0,h.K)(tX,"stadium"),(0,h.K)(tV,"state"),(0,h.K)(tZ,"stateEnd"),(0,h.K)(tQ,"stateStart"),(0,h.K)(tJ,"subroutine"),(0,h.K)(t0,"taggedRect"),(0,h.K)(t1,"taggedWaveEdgedRectangle"),(0,h.K)(t2,"text");var t5=(0,h.K)((t,e,r,i,o,a)=>`M${t},${e}
3    a${o},${a} 0,0,1 0,${-i}
4    l${r},0
5    a${o},${a} 0,0,1 0,${i}
6    M${r},${-i}
7    a${o},${a} 0,0,0 0,${i}
8    l${-r},0`,"createCylinderPathD"),t3=(0,h.K)((t,e,r,i,o,a)=>`M${t},${e} M${t+r},${e} a${o},${a} 0,0,0 0,${-i} l${-r},0 a${o},${a} 0,0,0 0,${i} l${r},0`,"createOuterCylinderPathD"),t4=(0,h.K)((t,e,r,i,o,a)=>`M${t+r/2},${-i/2} a${o},${a} 0,0,0 0,${i}`,"createInnerCylinderPathD");async function t6(t,e){let r,{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o;let s=e.padding??0,l="neo"===e.look?12:s/2,h=e.height??0;e.height&&(e.height=e.height-l,e.height<5&&(e.height=5)),e.width&&(e.width=e.width-l-h/2/(2.5+h/50)*3,e.width<10&&(e.width=10));let{shapeSvg:c,bbox:u,label:p}=await f(t,e,x(e)),g=Math.max(e.height??0,u.height)+l,y=g/2,C=y/(2.5+g/50),b=Math.max(e.width??0,u.width)+C+l,{cssStyles:k}=e;if("handDrawn"===e.look){let t=d.A.svg(c),o=t3(0,0,b,g,C,y),a=t4(0,0,b,g,C,y),n=t.path(o,(0,i.Fr)(e,{})),s=t.path(a,(0,i.Fr)(e,{fill:"none"}));r=c.insert(()=>s,":first-child"),(r=c.insert(()=>n,":first-child")).attr("class","basic label-container"),k&&r.attr("style",k)}else{let t=t5(0,0,b,g,C,y);(r=c.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,n.KL)(k)).attr("style",a)).attr("class","basic label-container outer-path"),k&&r.selectAll("path").attr("style",k),a&&r.selectAll("path").attr("style",a)}return r.attr("label-offset-x",C),r.attr("transform",`translate(${-b/2}, ${g/2} )`),p.attr("transform",`translate(${-(u.width/2)-C-(u.x-(u.left??0))}, ${-(u.height/2)-(u.y-(u.top??0))})`),m(e,r),e.intersect=function(t){let r=T(e,t),i=r.y-(e.y??0);
8if(0!=y&&(Math.abs(i)<(e.height??0)/2||Math.abs(i)==(e.height??0)/2&&Math.abs(r.x-(e.x??0))>(e.width??0)/2-C)){let o=C*C*(1-i*i/(y*y));0!=o&&(o=Math.sqrt(Math.abs(o))),o=C-o,t.x-(e.x??0)>0&&(o=-o),r.x+=o}return r},c}async function t8(t,e){let r,{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o;let n=e.padding??0,s=(e.look,n),l="neo"===e.look?2*n:n,{shapeSvg:h,bbox:c}=await f(t,e,x(e)),u=Math.max(c.height+s,e.height??0),p=Math.max(c.width+l,(e.width??0)-u),g=[{x:-3*u/6,y:0},{x:p+3*u/6,y:0},{x:p,y:-u},{x:0,y:-u}],{cssStyles:y}=e;if("handDrawn"===e.look){let t=d.A.svg(h),o=(0,i.Fr)(e,{}),a=C(g),n=t.path(a,o);r=h.insert(()=>n,":first-child").attr("transform",`translate(${-p/2}, ${u/2})`),y&&r.attr("style",y)}else r=K(h,p,u,g);return a&&r.attr("style",a),e.width=p,e.height=u,m(e,r),e.intersect=function(t){return L(e,g,t)},h}async function t9(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a=e.padding??0,n="neo"===e.look?16:a,s="neo"===e.look?12:a;(e.width||e.height)&&(e.height=(e.height??0)-2*s,e.height<5&&(e.height=5),e.width=(e.width??0)-2*n,e.width<15&&(e.width=15));let{shapeSvg:l,bbox:h}=await f(t,e,x(e)),c=(e?.width?e?.width:h.width)+2*n,u=(e?.height?e?.height:h.height)+2*s,{cssStyles:p}=e,g=d.A.svg(l),y=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");let b=[{x:-c/2*.8,y:-u/2},{x:c/2*.8,y:-u/2},{x:c/2,y:-u/2*.6},{x:c/2,y:u/2},{x:-c/2,y:u/2},{x:-c/2,y:-u/2*.6}],k=C(b),w=g.path(k,y),T=l.insert(()=>w,":first-child");return T.attr("class","basic label-container outer-path"),p&&"handDrawn"!==e.look&&T.selectChildren("path").attr("style",p),o&&"handDrawn"!==e.look&&T.selectChildren("path").attr("style",o),m(e,T),e.intersect=function(t){return L(e,b,t)},l}async function t7(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a=e.padding??0,n="neo"===e.look?2*a:a;(e.width||e.height)&&(e.width=((e?.width??0)-n)/2,e.width<10&&(e.width=10),e.height=e?.height??0,e.height<10&&(e.height=10));let{shapeSvg:h,bbox:c,label:u}=await f(t,e,x(e)),p=(0,s._3)((0,s.D7)().flowchart?.htmlLabels),g=(e?.width?e?.width:c.width)+n,y=e?.height?e?.height:g+c.height,b=[{x:0,y:0},{x:y,y:0},{x:y/2,y:-y}],{cssStyles:k}=e,w=d.A.svg(h),T=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(T.roughness=0,T.fillStyle="solid");let B=C(b),v=w.path(B,T),S=h.insert(()=>v,":first-child").attr("transform",`translate(${-y/2}, ${y/2})`).attr("class","outer-path");return k&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",k),o&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",o),e.width=g,e.height=y,m(e,S),u.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))}, ${y/2-(c.height+(e.padding??0)/(p?2:1)-(c.y-(c.top??0)))})`),e.intersect=function(t){return l.R.info("Triangle intersect",e,b,t),L(e,b,t)},h}async function et(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a=e.padding??0,n="neo"===e.look?16:a,s="neo"===e.look?12:a,l=!0;(e.width||e.height)&&(l=!1,e.width=(e?.width??0)-2*n,e.width<10&&(e.width=10),e.height=(e?.height??0)-2*s,e.height<10&&(e.height=10));let{shapeSvg:h,bbox:c,label:u}=await f(t,e,x(e)),p=(e?.width?e?.width:c.width)+(n??0)*2,g=(e?.height?e?.height:c.height)+(s??0)*2,y="neo"===e.look?g/4:g/8,k=g+(l?y:-y),{cssStyles:w}=e,T=14-p,B=T>0?T/2:0,v=d.A.svg(h),S=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");let _=[{x:-p/2-B,y:k/2},...b(-p/2-B,k/2,p/2+B,k/2,y,.8),{x:p/2+B,y:-k/2},{x:-p/2-B,y:-k/2}],A=C(_),F=v.path(A,S),M=h.insert(()=>F,":first-child");return M.attr("class","basic label-container outer-path"),w&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",w),o&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",o),M.attr("transform",`translate(0,${-y/2})`),u.attr("transform",`translate(${-p/2+(e.padding??0)-(c.x-(c.left??0))},${-g/2+(e.padding??0)-y-(c.y-(c.top??0))})`),m(e,M),e.intersect=function(t){return L(e,_,t)},h}async function ee(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a=e.padding??0,n="neo"===e.look?16:a,s="neo"===e.look?20:a;if(e.width||e.height){e.width=e?.width??0,e.width<20&&(e.width=20),e.height=e?.height??0,e.height<10&&(e.height=10);let t=Math.min(.2*e.height,e.height/4);e.height=Math.ceil(e.height-s-20/9*t),e.width=e.width-2*n}let{shapeSvg:l,bbox:h}=await f(t,e,x(e)),c=(e?.width?e?.width:h.width)+2*n,u=(e?.height?e?.height:h.height)+s,p=u/8,g=u+2*p,{cssStyles:y}=e,k=d.A.svg(l),w=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let T=[{x:-c/2,y:g/2},...b(-c/2,g/2,c/2,g/2,p,1),{x:c/2,y:-g/2},...b(c/2,-g/2,-c/2,-g/2,p,-1)],B=C(T),v=k.path(B,w),S=l.insert(()=>v,":first-child");return S.attr("class","basic label-container"),y&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",y),o&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",o),m(e,S),e.intersect=function(t){return L(e,T,t)},l}async function er(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a="neo"===e.look?16:e.padding??0,n="neo"===e.look?12:e.padding??0;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*a-10,10),e.height=Math.max((e?.height??0)-2*n-10,10));let{shapeSvg:s,bbox:l,label:h}=await f(t,e,x(e)),c=(e?.width?e?.width:l.width)+2*a+10,u=(e?.height?e?.height:l.height)+2*n+10,p=c-10,g=u-10,y=-p/2,C=-g/2,{cssStyles:b}=e,k=d.A.svg(s),w=(0,i.Fr)(e,{}),T=[{x:y-10,y:C-10},{x:y-10,y:C+g},{x:y+p,y:C+g},{x:y+p,y:C-10}],B=`M${y-10},${C-10} L${y+p},${C-10} L${y+p},${C+g} L${y-10},${C+g} L${y-10},${C-10}
9                M${y-10},${C} L${y+p},${C}
10                M${y},${C-10} L${y},${C+g}`;"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let v=k.path(B,w),S=s.insert(()=>v,":first-child");return S.attr("transform","translate(5, 5)"),S.attr("class","basic label-container outer-path"),b&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",b),o&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",o),h.attr("transform",`translate(${-(l.width/2)+5-(l.x-(l.left??0))}, ${-(l.height/2)+5-(l.y-(l.top??0))})`),m(e,S),e.intersect=function(t){return L(e,T,t)},s}(0,h.K)(t6,"tiltedCylinder"),(0,h.K)(t8,"trapezoid"),(0,h.K)(t9,"trapezoidalPentagon"),(0,h.K)(t7,"triangle"),(0,h.K)(et,"waveEdgedRectangle"),(0,h.K)(ee,"waveRectangle"),(0,h.K)(er,"windowPane");var ei=new Set(["redux-color","redux-dark-color"]),eo=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function ea(t,e){e.alias&&(e.label=e.alias);let{theme:r,themeVariables:o}=(0,s.zj)(),{rowEven:a,rowOdd:l,nodeBorder:h,borderColorArray:u}=o;
10if("handDrawn"===e.look){let{themeVariables:r}=(0,s.zj)(),{background:i}=r,o={...e,id:e.id+"-background",domId:(e.domId||e.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${i}`]};await ea(t,o)}let p=(0,s.zj)();e.useHtmlLabels=p.htmlLabels;let g=p.er?.diagramPadding??10,f=p.er?.entityPadding??6,{cssStyles:y}=e,{labelStyles:C,nodeStyles:b}=(0,i.GX)(e);if(0===e.attributes.length&&e.label){let i={rx:0,ry:0,labelPaddingX:g,labelPaddingY:1.5*g,classes:""};(0,n.Un)(e.label,p)+2*i.labelPaddingX<p.er.minEntityWidth&&(e.width=p.er.minEntityWidth);let o=await td(t,e,i);if(null!=r&&ei.has(r)){let t=e.colorIndex??0;o.attr("data-color-id",`color-${t%u.length}`)}if(!(0,s._3)(p.htmlLabels)){let t=o.select("text"),e=t.node()?.getBBox();t.attr("transform",`translate(${-e.width/2}, 0)`)}return o}p.htmlLabels||(g*=1.25,f*=1.25);let k=x(e);k||(k="node default");let w=t.insert("g").attr("class",k).attr("id",e.domId||e.id),B=await en(w,e.label??"",p,0,0,["name"],C);B.height+=f;let v=0,S=[],_=[],A=0,F=0,L=0,M=0,$=!0,E=!0;for(let t of e.attributes){let e=await en(w,t.type,p,0,v,["attribute-type"],C);A=Math.max(A,e.width+g);let r=await en(w,t.name,p,0,v,["attribute-name"],C);F=Math.max(F,r.width+g);let i=await en(w,t.keys.join(),p,0,v,["attribute-keys"],C);L=Math.max(L,i.width+g);let o=await en(w,t.comment,p,0,v,["attribute-comment"],C);M=Math.max(M,o.width+g);let a=Math.max(e.height,r.height,i.height,o.height)+f;_.push({yOffset:v,rowHeight:a}),v+=a}let O=4;L<=g&&($=!1,L=0,O--),M<=g&&(E=!1,M=0,O--);let D=w.node().getBBox();if(B.width+2*g-(A+F+L+M)>0){let t=B.width+2*g-(A+F+L+M);A+=t/O,F+=t/O,L>0&&(L+=t/O),M>0&&(M+=t/O)}let I=A+F+L+M,K=d.A.svg(w),q=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(q.roughness=0,q.fillStyle="solid");let R=0;_.length>0&&(R=_.reduce((t,e)=>t+(e?.rowHeight??0),0));let P=Math.max(D.width+2*g,e?.width||0,I),z=Math.max((R??0)+B.height,e?.height||0),N=-P/2,j=-z/2;if(w.selectAll("g:not(:first-child)").each((t,e,r)=>{let i=(0,c.Ltv)(r[e]),o=i.attr("transform"),a=0,n=0;if(o){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(o);t&&(a=parseFloat(t[1]),n=parseFloat(t[2]),i.attr("class").includes("attribute-name")?a+=A:i.attr("class").includes("attribute-keys")?a+=A+F:i.attr("class").includes("attribute-comment")&&(a+=A+F+L))}i.attr("transform",`translate(${N+g/2+a}, ${n+j+B.height+f/2})`)}),w.select(".name").attr("transform","translate("+-B.width/2+", "+(j+f/2)+")"),null!=r&&ei.has(r)){let t=e.colorIndex??0;w.attr("data-color-id",`color-${t%u.length}`)}let W=K.rectangle(N,j,P,z,q),U=w.insert(()=>W,":first-child").attr("class","outer-path").attr("style",y.join(""));for(let[t,e]of(S.push(0),_.entries())){let r=(t+1)%2==0&&0!==e.yOffset,i=K.rectangle(N,B.height+j+e?.yOffset,P,e?.rowHeight,{...q,fill:r?a:l,stroke:h});w.insert(()=>i,"g.label").attr("style",y.join("")).attr("class",`row-rect-${r?"even":"odd"}`)}let H=es(N,B.height+j,P+N,B.height+j,1e-4),Y=K.polygon(H.map(t=>[t.x,t.y]),q);if(w.insert(()=>Y).attr("class","divider"),H=es(A+N,B.height+j,A+N,z+j,1e-4),Y=K.polygon(H.map(t=>[t.x,t.y]),q),w.insert(()=>Y).attr("class","divider"),$){let t=A+F+N;H=es(t,B.height+j,t,z+j,1e-4),Y=K.polygon(H.map(t=>[t.x,t.y]),q),w.insert(()=>Y).attr("class","divider")}if(E){let t=A+F+L+N;H=es(t,B.height+j,t,z+j,1e-4),Y=K.polygon(H.map(t=>[t.x,t.y]),q),w.insert(()=>Y).attr("class","divider")}for(let t of S){let e=B.height+j+t;H=es(N,e,P+N,e,1e-4),Y=K.polygon(H.map(t=>[t.x,t.y]),q),w.insert(()=>Y).attr("class","divider")}if(m(e,U),b&&"handDrawn"!==e.look)if(null!=r&&eo.has(r))w.selectAll("path").attr("style",b);else{let t=b.split(";"),e=t?.filter(t=>t.includes("stroke"))?.map(t=>`${t}`).join("; ");w.selectAll("path").attr("style",e??""),w.selectAll(".row-rect-even path").attr("style",b)}return e.intersect=function(t){return T(e,t)},w}async function en(t,e,r,i=0,a=0,l=[],h=""){let d=t.insert("g").attr("class",`label ${l.join(" ")}`).attr("transform",`translate(${i}, ${a})`).attr("style",h);e!==(0,s.QO)(e)&&(e=(e=(0,s.QO)(e)).replaceAll("<","&lt;").replaceAll(">","&gt;"));let u=d.node().appendChild(await (0,o.GZ)(d,e,{width:(0,n.Un)(e,r)+100,style:h,useHtmlLabels:r.htmlLabels},r));if(e.includes("&lt;")||e.includes("&gt;")){let t=u.children[0];for(t.textContent=t.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");t.childNodes[0];)(t=t.childNodes[0]).textContent=t.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let p=u.getBBox();
10if((0,s._3)(r.htmlLabels)){let t=u.children[0];t.style.textAlign="start";let e=(0,c.Ltv)(u);p=t.getBoundingClientRect(),e.attr("width",p.width),e.attr("height",p.height)}return p}function es(t,e,r,i,o){return t===r?[{x:t-o/2,y:e},{x:t+o/2,y:e},{x:r+o/2,y:i},{x:r-o/2,y:i}]:[{x:t,y:e-o/2},{x:t,y:e+o/2},{x:r,y:i+o/2},{x:r,y:i-o/2}]}async function el(t,e,r,i,o=r.class.padding??12){let a=3*!i,n=t.insert("g").attr("class",x(e)).attr("id",e.domId||e.id),s=null,l=null,h=null,c=null,d=0,u=0,p=0;if(s=n.insert("g").attr("class","annotation-group text"),e.annotations.length>0){let t=e.annotations[0];await eh(s,{text:`\xab${t}\xbb`},0),d=s.node().getBBox().height}l=n.insert("g").attr("class","label-group text"),await eh(l,e,0,["font-weight: bolder"]);let g=l.node().getBBox();u=g.height,h=n.insert("g").attr("class","members-group text");let f=0;for(let t of e.members){let e=await eh(h,t,f,[t.parseClassifier()]);f+=e+a}(p=h.node().getBBox().height)<=0&&(p=o/2),c=n.insert("g").attr("class","methods-group text");let y=0;for(let t of e.methods){let e=await eh(c,t,y,[t.parseClassifier()]);y+=e+a}let m=n.node().getBBox();if(null!==s){let t=s.node().getBBox();s.attr("transform",`translate(${-t.width/2})`)}return l.attr("transform",`translate(${-g.width/2}, ${d})`),m=n.node().getBBox(),h.attr("transform",`translate(0, ${d+u+2*o})`),m=n.node().getBBox(),c.attr("transform",`translate(0, ${d+u+(p?p+4*o:2*o)})`),m=n.node().getBBox(),{shapeSvg:n,bbox:m}}async function eh(t,e,r,i=[]){let a,l=t.insert("g").attr("class","label").attr("style",i.join("; ")),h=(0,s.zj)(),d="useHtmlLabels"in e?e.useHtmlLabels:(0,s._3)(h.htmlLabels)??!0,p="";p="text"in e?e.text:e.label,!d&&p.startsWith("\\")&&(p=p.substring(1)),(0,s.Wi)(p)&&(d=!0);let g=await (0,o.GZ)(l,(0,s.oB)((0,n.Sm)(p)),{width:(0,n.Un)(p,h)+50,classes:"markdown-node-label",useHtmlLabels:d},h),f=1;if(d){let t=g.children[0],e=(0,c.Ltv)(g);f=t.innerHTML.split("<br>").length,t.innerHTML.includes("</math>")&&(f+=t.innerHTML.split("<mrow>").length-1),await u(t),a=t.getBoundingClientRect(),e.attr("width",a.width),e.attr("height",a.height)}else{i.includes("font-weight: bolder")&&(0,c.Ltv)(g).selectAll("tspan").attr("font-weight",""),f=g.children.length;let t=g.children[0];(""===g.textContent||g.textContent.includes("&gt"))&&(t.textContent=p[0]+p.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim()," "===p[1]&&(t.textContent=t.textContent[0]+" "+t.textContent.substring(1))),"undefined"===t.textContent&&(t.textContent=""),a=g.getBBox()}return l.attr("transform","translate(0,"+(-a.height/(2*f)+r)+")"),a.height}async function ec(t,e){let r=(0,s.D7)(),{themeVariables:o}=r,{useGradient:a}=o,n=r.class.padding??12,l=e.useHtmlLabels??(0,s._3)(r.htmlLabels)??!0;e.annotations=e.annotations??[],e.members=e.members??[],e.methods=e.methods??[];let{shapeSvg:h,bbox:u}=await el(t,e,r,l,n),{labelStyles:p,nodeStyles:g}=(0,i.GX)(e);e.labelStyle=p,e.cssStyles=e.styles||"";let f=e.styles?.join(";")||g||"";e.cssStyles||(e.cssStyles=f.replaceAll("!important","").split(";"));let y=0===e.members.length&&0===e.methods.length&&!r.class?.hideEmptyMembersBox,x=d.A.svg(h),C=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");let b=Math.max(e.width??0,u.width),k=Math.max(e.height??0,u.height),w=(e.height??0)>u.height;0===e.members.length&&0===e.methods.length?k+=n:e.members.length>0&&0===e.methods.length&&(k+=2*n);let B=-b/2,v=-k/2,S=y?2*n:0===e.members.length&&0===e.methods.length?-n:0;w&&(S=2*n);let _=x.rectangle(B-n,v-n-(y?n:0===e.members.length&&0===e.methods.length?-n/2:0),b+2*n,k+2*n+S,C),A=h.insert(()=>_,":first-child");A.attr("class","basic label-container outer-path");let F=A.node().getBBox(),L=h.select(".annotation-group").node().getBBox().height-(y?n/2:0)||0,M=h.select(".label-group").node().getBBox().height-(y?n/2:0)||0,$=h.select(".members-group").node().getBBox().height-(y?n/2:0)||0,E=(L+M+v+n-(v-n-(y?n:0===e.members.length&&0===e.methods.length?-n/2:0)))/2;if(h.selectAll(".text").each((t,i,o)=>{let a=(0,c.Ltv)(o[i]),s=a.attr("transform"),d=0;if(s){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(s);t&&(d=parseFloat(t[2]))}let u=d+v+n-(y?n:0===e.members.length&&0===e.methods.length?-n/2:0);if(a.attr("class").includes("methods-group")){let t=Math.max($,n/2);u=w?Math.max(E,L+M+t+v+2*n+n)+2*n:L+M+t+v+4*n+n}0===e.members.length&&0===e.methods.length&&r.class?.hideEmptyMembersBox&&(u=e.annotations.length>0?d-n:d),l||(u-=4);let p=B;(a.attr("class").includes("label-group")||a.attr("class").includes("annotation-group"))&&(p=-a.node()?.getBBox().width/2||0,h.selectAll("text").each(function(t,e,r){"middle"===window.getComputedStyle(r[e]).textAnchor&&(p=0)})),a.attr("transform",`translate(${p}, ${u})`)}),e.members.length>0||e.methods.length>0||y){let t=L+M+v+n,r=x.line(F.x,t,F.x+F.width,t+.001,C);h.insert(()=>r).attr("class",`divider${"neo"===e.look&&!a?" neo-line":""}`).attr("style",f)}if(y||e.members.length>0||e.methods.length>0){let t=L+M+$+v+2*n+n,r=x.line(F.x,w?Math.max(E,t):t,F.x+F.width,(w?Math.max(E,t):t)+.001,C);h.insert(()=>r).attr("class",`divider${"neo"===e.look&&!a?" neo-line":""}`).attr("style",f)}if("handDrawn"!==e.look&&h.selectAll("path").attr("style",f),A.select(":nth-child(2)").attr("style",f),h.selectAll(".divider").select("path").attr("style",f),e.labelStyle?h.selectAll("span").attr("style",e.labelStyle):h.selectAll("span").attr("style",f),!l){let t=Reg
10Exp(/color\s*:\s*([^;]*)/),e=t.exec(f);if(e){let t=e[0].replace("color","fill");h.selectAll("tspan").attr("style",t)}else if(p){let e=t.exec(p);if(e){let t=e[0].replace("color","fill");h.selectAll("tspan").attr("style",t)}}}return m(e,A),e.intersect=function(t){return T(e,t)},h}async function ed(t,e){let r,{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o;let n="verifyMethod"in e,l=x(e),h=(0,s.D7)(),{themeVariables:u}=h,{borderColorArray:p,requirementEdgeLabelBackground:g}=u,f="elk"===h.layout?"start":"center",y=t.insert("g").attr("class",l).attr("id",e.domId??e.id),C=r=n?await eu(y,`&lt;&lt;${e.type}&gt;&gt;`,0,e.labelStyle):await eu(y,"&lt;&lt;Element&gt;&gt;",0,e.labelStyle),b=await eu(y,e.name,C,e.labelStyle+"; font-weight: bold;");if(C+=b+20,n){let t=await eu(y,`${e.requirementId?`ID: ${e.requirementId}`:""}`,C,e.labelStyle,f);C+=t;let r=await eu(y,`${e.text?`Text: ${e.text}`:""}`,C,e.labelStyle,f);C+=r;let i=await eu(y,`${e.risk?`Risk: ${e.risk}`:""}`,C,e.labelStyle,f);C+=i,await eu(y,`${e.verifyMethod?`Verification: ${e.verifyMethod}`:""}`,C,e.labelStyle,f)}else{let t=await eu(y,`${e.type?`Type: ${e.type}`:""}`,C,e.labelStyle,f);C+=t,await eu(y,`${e.docRef?`Doc Ref: ${e.docRef}`:""}`,C,e.labelStyle,f)}let k=(y.node()?.getBBox().width??200)+20,w=(y.node()?.getBBox().height??200)+20,B=-k/2,v=-w/2,S=d.A.svg(y),_=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(_.roughness=0,_.fillStyle="solid");let A=S.rectangle(B,v,k,w,_),F=y.insert(()=>A,":first-child");if(F.attr("class","basic label-container outer-path").attr("style",a),p?.length){let t=e.colorIndex??0;y.attr("data-color-id",`color-${t%p.length}`)}if(y.selectAll(".label").each((t,e,r)=>{let i=(0,c.Ltv)(r[e]),o=i.attr("transform"),a=0,n=0;if(o){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(o);t&&(a=parseFloat(t[1]),n=parseFloat(t[2]))}let s=n-w/2,l=B+10;(0===e||1===e)&&(l=a),i.attr("transform",`translate(${l}, ${s+20})`)}),C>r+b+20){let t,i=v+r+b+20;if("neo"===e.look){let e=[[B,i],[B+k,i],[B+k,i+.001],[B,i+.001]];t=S.polygon(e,_)}else t=S.line(B,i,B+k,i,_);y.insert(()=>t).attr("class","divider")}return m(e,F),e.intersect=function(t){return T(e,t)},a&&"handDrawn"!==e.look&&(g||p?.length)&&y.selectAll("path").attr("style",a),y}async function eu(t,e,r,i="",a="center"){let l;if(""===e)return 0;let h=t.insert("g").attr("class","label").attr("style",i),d=(0,s.D7)(),u=d.htmlLabels??!0,p=await (0,o.GZ)(h,(0,s.oB)((0,n.Sm)(e)),{width:(0,n.Un)(e,d)+50,classes:"markdown-node-label",useHtmlLabels:u,style:i},d);if(u){let t=p.children[0],e=(0,c.Ltv)(p);"start"===a&&(0,c.Ltv)(t).style("text-align","left"),l=t.getBoundingClientRect(),e.attr("width",l.width),e.attr("height",l.height)}else{let t=p.children[0];for(let e of t.children)i&&e.setAttribute("style",i);if("start"===a)for(let e of(t.setAttribute("text-anchor","start"),t.children))e.setAttribute("text-anchor","start");l=p.getBBox(),l.height+=6}return h.attr("transform",`translate(${-l.width/2},${-l.height/2+r})`),l.height}(0,h.K)(ea,"erBox"),(0,h.K)(en,"addText"),(0,h.K)(es,"lineToPolygon"),(0,h.K)(el,"textHelper"),(0,h.K)(eh,"addText"),(0,h.K)(ec,"classBox"),(0,h.K)(ed,"requirementBox"),(0,h.K)(eu,"addText");var ep=(0,h.K)(t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function eg(t,e,{config:r}){let o,a,n,s,{labelStyles:l,nodeStyles:h}=(0,i.GX)(e);e.labelStyle=l||"";let c=e.width;e.width=(e.width??200)-10;let{shapeSvg:u,bbox:p,label:g}=await f(t,e,x(e)),C=e.padding||10,b="";"ticket"in e&&e.ticket&&r?.kanban?.ticketBaseUrl&&(b=r?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),o=u.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",b).attr("target","_blank"));let k={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};o?{label:a,bbox:n}=await y(o,"ticket"in e&&e.ticket||"",k):{label:a,bbox:n}=await y(u,"ticket"in e&&e.ticket||"",k);let{label:w,bbox:v}=await y(u,"assigned"in e&&e.assigned||"",k);e.width=c;let S=e?.width||0,_=Math.max(n.height,v.height)/2,A=Math.max(p.height+20,e?.height||0)+_,F=-S/2,L=-A/2;g.attr("transform","translate("+(C-S/2)+", "+(-_-p.height/2)+")"),a.attr("transform","translate("+(C-S/2)+", "+(-_+p.height/2)+")"),w.attr("transform","translate("+(C+S/2-v.width-20)+", "+(-_+p.height/2)+")");let{rx:M,ry:$}=e,{cssStyles:E}=e;
10if("handDrawn"===e.look){let t=d.A.svg(u),r=(0,i.Fr)(e,{}),o=M||$?t.path(B(F,L,S,A,M||0),r):t.rectangle(F,L,S,A,r);(s=u.insert(()=>o,":first-child")).attr("class","basic label-container").attr("style",E||null)}else{(s=u.insert("rect",":first-child")).attr("class","basic label-container __APA__").attr("style",h).attr("rx",M??5).attr("ry",$??5).attr("x",F).attr("y",L).attr("width",S).attr("height",A);let t="priority"in e&&e.priority;if(t){let e=u.append("line"),r=F+2,i=L+Math.floor((M??0)/2),o=L+A-Math.floor((M??0)/2);e.attr("x1",r).attr("y1",i).attr("x2",r).attr("y2",o).attr("stroke-width","4").attr("stroke",ep(t))}}return m(e,s),e.height=A,e.intersect=function(t){return T(e,t)},u}async function ef(t,e){let r,{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o;let{shapeSvg:s,bbox:h,halfPadding:c,label:u}=await f(t,e,x(e)),p=h.width+10*c,g=h.height+8*c,y=.15*p,{cssStyles:C}=e,b=h.width+20,k=h.height+20,w=Math.max(p,b),B=Math.max(g,k);u.attr("transform",`translate(${-h.width/2}, ${-h.height/2})`);let v=`M0 0 
11    a${y},${y} 1 0,0 ${.25*w},${-1*B*.1}
12    a${y},${y} 1 0,0 ${.25*w},0
13    a${y},${y} 1 0,0 ${.25*w},0
14    a${y},${y} 1 0,0 ${.25*w},${.1*B}
15
16    a${y},${y} 1 0,0 ${.15*w},${.33*B}
17    a${.8*y},${.8*y} 1 0,0 0,${.34*B}
18    a${y},${y} 1 0,0 ${-1*w*.15},${.33*B}
19
20    a${y},${y} 1 0,0 ${-1*w*.25},${.15*B}
21    a${y},${y} 1 0,0 ${-1*w*.25},0
22    a${y},${y} 1 0,0 ${-1*w*.25},0
23    a${y},${y} 1 0,0 ${-1*w*.25},${-1*B*.15}
24
25    a${y},${y} 1 0,0 ${-1*w*.1},${-1*B*.33}
26    a${.8*y},${.8*y} 1 0,0 0,${-1*B*.34}
27    a${y},${y} 1 0,0 ${.1*w},${-1*B*.33}
28  H0 V0 Z`;if("handDrawn"===e.look){let t=d.A.svg(s),o=(0,i.Fr)(e,{}),a=t.path(v,o);(r=s.insert(()=>a,":first-child")).attr("class","basic label-container").attr("style",(0,n.KL)(C))}else r=s.insert("path",":first-child").attr("class","basic label-container").attr("style",a).attr("d",v);return r.attr("transform",`translate(${-w/2}, ${-B/2})`),m(e,r),e.calcIntersect=function(t,e){return T(t,e)},e.intersect=function(t){return l.R.info("Bang intersect",e,t),T(e,t)},s}async function ey(t,e){let r,{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o;let{shapeSvg:s,bbox:h,halfPadding:c,label:u}=await f(t,e,x(e)),p=h.width+2*c,g=h.height+2*c,y=.15*p,C=.25*p,b=.35*p,k=.2*p,{cssStyles:w}=e,B=`M0 0 
29    a${y},${y} 0 0,1 ${.25*p},${-1*p*.1}
30    a${b},${b} 1 0,1 ${.4*p},${-1*p*.1}
31    a${C},${C} 1 0,1 ${.35*p},${.2*p}
32
33    a${y},${y} 1 0,1 ${.15*p},${.35*g}
34    a${k},${k} 1 0,1 ${-1*p*.15},${.65*g}
35
36    a${C},${y} 1 0,1 ${-1*p*.25},${.15*p}
37    a${b},${b} 1 0,1 ${-1*p*.5},0
38    a${y},${y} 1 0,1 ${-1*p*.25},${-1*p*.15}
39
40    a${y},${y} 1 0,1 ${-1*p*.1},${-1*g*.35}
41    a${k},${k} 1 0,1 ${.1*p},${-1*g*.65}
42  H0 V0 Z`;if("handDrawn"===e.look){let t=d.A.svg(s),o=(0,i.Fr)(e,{}),a=t.path(B,o);(r=s.insert(()=>a,":first-child")).attr("class","basic label-container").attr("style",(0,n.KL)(w))}else r=s.insert("path",":first-child").attr("class","basic label-container").attr("style",a).attr("d",B);return u.attr("transform",`translate(${-h.width/2}, ${-h.height/2})`),r.attr("transform",`translate(${-p/2}, ${-g/2})`),m(e,r),e.calcIntersect=function(t,e){return T(t,e)},e.intersect=function(t){return l.R.info("Cloud intersect",e,t),T(e,t)},s}async function em(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let{shapeSvg:a,bbox:n,halfPadding:s,label:l}=await f(t,e,x(e)),h=n.width+8*s,c=n.height+2*s,d="neo"===e.look?`
43    M${-h/2} ${c/2-5}
44    v${-c+10}
45    q0,-5 5,-5
46    h${h-10}
47    q5,0 5,5
48    v${c-5}
49    H${-h/2}
50    Z
51  `:`
52    M${-h/2} ${c/2-5}
53    v${-c+10}
54    q0,-5 5,-5
55    h${h-10}
56    q5,0 5,5
57    v${c-10}
58    q0,5 -5,5
59    h${-(h-10)}
60    q-5,0 -5,-5
61    Z
62  `;if(!e.domId)throw Error(`defaultMindmapNode: node "${e.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let u=a.append("path").attr("id",e.domId).attr("class","node-bkg node-"+e.type).attr("style",o).attr("d",d);return a.append("line").attr("class","node-line-").attr("x1",-h/2).attr("y1",c/2).attr("x2",h/2).attr("y2",c/2),l.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`),a.append(()=>l.node()),m(e,u),e.calcIntersect=function(t,e){return T(t,e)},e.intersect=function(t){return T(e,t)},a}async function ex(t,e){let r={padding:e.padding??0};return G(t,e,r)}(0,h.K)(eg,"kanbanItem"),(0,h.K)(ef,"bang"),(0,h.K)(ey,"cloud"),(0,h.K)(em,"defaultMindmapNode"),(0,h.K)(ex,"mindmapCircle");var eC=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:tG},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:tU},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:tX},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:tJ},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:tc},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:tu},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:tm},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:D},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:V},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:U},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:tn},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:G},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:ef},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:ey}
62,{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:tN},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:tk},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:tM},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:tL},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:t8},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:tA},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:tg},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:t2}
62,{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:H},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:tH},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:tQ},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:tZ},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:tx},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:tw},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:tt},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:tr},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:to},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:t$}
62,{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:et},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:tC},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:t6},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:tI},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:ta},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:tp},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:t7},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:er},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:tf},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:t9},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:ty},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:tY},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:tR},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:tq},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:O},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Q},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:t1},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:t0},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:ee},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:tj},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:tK}],eb=(0,h.K)(()=>Object.fromEntries([...Object.entries({state:tV,choice:Y,note:tP,composite:X,rectWithTitle:tW,labelRect:tF,block_arrow:W,collapsedGroup:I,iconSquare:tS,iconCircle:tB,icon:tT,iconRounded:tv,imageSquare:t_,anchor:M,kanbanItem:eg,mindmapCircle:ex,defaultMindmapNode:em,classBox:ec,erBox:ea,requirementBox:ed}),...eC.flatMap(t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map(e=>[e,t.handler]))]),"generateShapeMap")();function ek(t){return t in eb}(0,h.K)(ek,"isValidShape")},41916(t,e,r){"use strict";r.d(e,{yT:()=>H,PX:()=>J,vU:()=>L,rY:()=>th,pe:()=>v,KL:()=>tc,Ib:()=>$,I5:()=>to,bH:()=>X,$C:()=>W,$t:()=>ta,ru:()=>Z,dq:()=>tr,Sm:()=>tl,C4:()=>ts,sM:()=>N,_K:()=>tn,Un:()=>Q});var i,o=r(34599),a=r(31293),n=r(86827),s=r(16750),l=r(47829);function h(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");let r=function(...i){let o=e?e.apply(this,i):i[0],a=r.cache;if(a.has(o))return a.get(o);let n=t.apply(this,i);return r.cache=a.set(o,n)||a,n};return r.cache=new(h.Cache||Map),r}function c(){}h.Cache=Map;var d=r(37110),u=r(42796);function p(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}var g=r(61069);function f(t){if("object"!=typeof t||null==t)return!1;if(null===Object.getPrototypeOf(t))return!0;
62if("[object Object]"!==Object.prototype.toString.call(t)){let e=t[Symbol.toStringTag];return null!=e&&!!Object.getOwnPropertyDescriptor(t,Symbol.toStringTag)?.writable&&t.toString()===`[object ${e}]`}let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}var y=r(99125),m=r(89826);function x(t,e,r,i=new Map,o){let a=o?.(t,e,r,i);if(void 0!==a)return a;if((0,d.s)(t))return t;if(i.has(t))return i.get(t);if(Array.isArray(t)){let e=Array(t.length);i.set(t,e);for(let a=0;a<t.length;a++)e[a]=x(t[a],a,r,i,o);return Object.hasOwn(t,"index")&&(e.index=t.index),Object.hasOwn(t,"input")&&(e.input=t.input),e}if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){let e=new RegExp(t.source,t.flags);return e.lastIndex=t.lastIndex,e}if(t instanceof Map){let e=new Map;for(let[a,n]of(i.set(t,e),t))e.set(a,x(n,a,r,i,o));return e}if(t instanceof Set){let e=new Set;for(let a of(i.set(t,e),t))e.add(x(a,void 0,r,i,o));return e}if((0,g.P)(t))return t.subarray();if((0,u.i)(t)){let e=new(Object.getPrototypeOf(t)).constructor(t.length);i.set(t,e);for(let a=0;a<t.length;a++)e[a]=x(t[a],a,r,i,o);return e}if(t instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);if(t instanceof DataView){let e=new DataView(t.buffer.slice(0),t.byteOffset,t.byteLength);return i.set(t,e),C(e,t,r,i,o),e}if("u">typeof File&&t instanceof File){let e=new File([t],t.name,{type:t.type});return i.set(t,e),C(e,t,r,i,o),e}if("u">typeof Blob&&t instanceof Blob){let e=new Blob([t],{type:t.type});return i.set(t,e),C(e,t,r,i,o),e}if(t instanceof Error){let e=structuredClone(t);return i.set(t,e),e.message=t.message,e.name=t.name,e.stack=t.stack,e.cause=t.cause,e.constructor=t.constructor,C(e,t,r,i,o),e}if(t instanceof Boolean){let e=new Boolean(t.valueOf());return i.set(t,e),C(e,t,r,i,o),e}if(t instanceof Number){let e=new Number(t.valueOf());return i.set(t,e),C(e,t,r,i,o),e}if(t instanceof String){let e=new String(t.valueOf());return i.set(t,e),C(e,t,r,i,o),e}if("object"==typeof t&&function(t){switch((0,y.b)(t)){case m.R_:case m.Uw:case m.cT:case m.iq:case m.$V:case m.vC:case m.ri:case m.ML:case m.XZ:case m.i1:case m._u:case m.pj:case m.kj:case m.GX:case m.Av:case m.NA:case m.OG:case m.VP:case m.Qb:case m.q:case m.x6:case m.ZR:return!0;default:return!1}}(t)){let e=Object.create(Object.getPrototypeOf(t));return i.set(t,e),C(e,t,r,i,o),e}return t}function C(t,e,r=t,i,o){let a=[...Object.keys(e),...p(e)];for(let n=0;n<a.length;n++){let s=a[n],l=Object.getOwnPropertyDescriptor(t,s);(null==l||l.writable)&&(t[s]=x(e[s],s,r,i,o))}}function b(t){var e;return e=(e,r,i,o)=>{let a;if(void 0!==a)return a;if("object"==typeof t){if("[object Object]"===(0,y.b)(t)&&"function"!=typeof t.constructor){let e={};return o.set(t,e),C(e,t,i,o),e}switch(Object.prototype.toString.call(t)){case m.kj:case m.OG:case m.$V:{let e=new t.constructor(t?.valueOf());return C(e,t),e}case m.R_:{let e={};return C(e,t),e.length=t.length,e[Symbol.iterator]=t[Symbol.iterator],e}default:return}}},x(t,void 0,t,new Map,e)}var k=r(14608);function w(t){return"object"==typeof t&&null!==t}var T=r(79480),B=r(19663),v="\u200B",S={curveBasis:l.qrM,curveBasisClosed:l.Yu4,curveBasisOpen:l.IA3,curveBumpX:l.Wi0,curveBumpY:l.PGM,curveBundle:l.OEq,curveCardinalClosed:l.olC,curveCardinalOpen:l.IrU,curveCardinal:l.y8u,curveCatmullRomClosed:l.Q7f,curveCatmullRomOpen:l.cVp,curveCatmullRom:l.oDi,curveLinear:l.lUB,curveLinearClosed:l.Lx9,curveMonotoneX:l.nVG,curveMonotoneY:l.uxU,curveNatural:l.Xf2,curveStep:l.GZz,curveStepAfter:l.UPb,curveStepBefore:l.dyv},_=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,A=(0,n.K)(function(t,e){let r=F(t,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(r)){let t=r.map(t=>t.args);(0,o.$i)(t),i=(0,o.hH)(i,[...t])}else i=r.args;if(!i)return;let a=(0,o.Ch)(t,e),n="config";return void 0!==i[n]&&("flowchart-v2"===a&&(a="flowchart"),i[a]=i[n],delete i[n]),i},"detectInit"),F=(0,n.K)(function(t,e=null){try{let r,i=RegExp(`[%]{2}(?![{]${_.source})(?=[}][%]{2}).*
63`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),a.R.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);let n=[];for(;null!==(r=o.DB.exec(t));)if(r.index===o.DB.lastIndex&&o.DB.lastIndex++,r&&!e||e&&r[1]?.match(e)||e&&r[2]?.match(e)){let t=r[1]?r[1]:r[2],e=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:t,args:e})}if(0===n.length)return{type:t,args:null};return 1===n.length?n[0]:n}catch(r){return a.R.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),L=(0,n.K)(function(t){return t.replace(o.DB,"")},"removeDirectives"),M=(0,n.K)(function(t,e){for(let[r,i]of e.entries())if(i.match(t))return r;return -1},"isSubstringInArray");function $(t,e){return t?S[`curve${t.charAt(0).toUpperCase()+t.slice(1)}`]??e:e}function E(t,e){let r=t.trim();if(r)return"loose"!==e.securityLevel?(0,s.sanitizeUrl)(r):r}(0,n.K)($,"interpolateToCurve"),(0,n.K)(E,"formatUrl");var O=(0,n.K)((t,...e)=>{let r=t.split("."),i=r.length-1,o=r[i],n=window;for(let e=0;e<i;e++)if(!(n=n[r[e]]))return void a.R.error(`Function name: ${t} not found in window`);n[o](...e)},"runFunc");function D(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function I(t){let e,r=0;return t.forEach(t=>{r+=D(t,e),e=t}),R(t,r/2)}function K(t){return 1===t.length?t[0]:I(t)}(0,n.K)(D,"distance"),(0,n.K)(I,"traverseEdge"),(0,n.K)(K,"calcLabelPosition");var q=(0,n.K)((t,e=2)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),R=(0,n.K)((t,e)=>{let r,i=e;for(let e of t){if(r){let t=D(e,r);if(0===t)return r;if(t<i)i-=t;else{let o=i/t;if(o<=0)return r;if(o>=1)return{x:e.x,y:e.y};if(o>0&&o<1)return{x:q((1-o)*r.x+o*e.x,5),y:q((1-o)*r.y+o*e.y,5)}}}r=e}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),P=(0,n.K)((t,e,r)=>{a.R.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());let i=R(e,25),o=t?10:5,n=Math.atan2(e[0].y-i.y,e[0].x-i.x),s={x:0,y:0};return s.x=Math.sin(n)*o+(e[0].x+i.x)/2,s.y=-Math.cos(n)*o+(e[0].y+i.y)/2,s},"calcCardinalityPosition");function z(t,e,r){let i=structuredClone(r);a.R.info("our points",i),"start_left"!==e&&"start_right"!==e&&i.reverse();let o=R(i,25+t),n=10+.5*t,s=Math.atan2(i[0].y-o.y,i[0].x-o.x),l={x:0,y:0};
63return"start_left"===e?(l.x=Math.sin(s+Math.PI)*n+(i[0].x+o.x)/2,l.y=-Math.cos(s+Math.PI)*n+(i[0].y+o.y)/2):"end_right"===e?(l.x=Math.sin(s-Math.PI)*n+(i[0].x+o.x)/2-5,l.y=-Math.cos(s-Math.PI)*n+(i[0].y+o.y)/2-5):"end_left"===e?(l.x=Math.sin(s)*n+(i[0].x+o.x)/2-5,l.y=-Math.cos(s)*n+(i[0].y+o.y)/2-5):(l.x=Math.sin(s)*n+(i[0].x+o.x)/2,l.y=-Math.cos(s)*n+(i[0].y+o.y)/2),l}function N(t){let e="",r="";for(let i of t)void 0!==i&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":e=e+i+";");return{style:e,labelStyle:r}}(0,n.K)(z,"calcTerminalLabelPosition"),(0,n.K)(N,"getStylesFromArray");var j=0,W=(0,n.K)(()=>(j++,"id-"+Math.random().toString(36).substr(2,12)+"-"+j),"generateId");function U(t){let e="",r="0123456789abcdef",i=r.length;for(let o=0;o<t;o++)e+=r.charAt(Math.floor(Math.random()*i));return e}(0,n.K)(U,"makeRandomHex");var H=(0,n.K)(t=>U(t.length),"random"),Y=(0,n.K)(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),G=(0,n.K)(function(t,e){let r=e.text.replace(o.Y2.lineBreakRegex," "),[,i]=to(e.fontSize),a=t.append("text");a.attr("x",e.x),a.attr("y",e.y),a.style("text-anchor",e.anchor),a.style("font-family",e.fontFamily),a.style("font-size",i),a.style("font-weight",e.fontWeight),a.attr("fill",e.fill),void 0!==e.class&&a.attr("class",e.class);let n=a.append("tspan");return n.attr("x",e.x+2*e.textMargin),n.attr("fill",e.fill),n.text(r),a},"drawSimpleText"),X=h((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),o.Y2.lineBreakRegex.test(t)))return t;let i=t.split(" ").filter(Boolean),a=[],n="";return i.forEach((t,o)=>{let s=Q(`${t} `,r),l=Q(n,r);if(s>e){let{hyphenatedStrings:i,remainingWord:o}=V(t,e,"-",r);a.push(n,...i),n=o}else l+s>=e?(a.push(n),n=t):n=[n,t].filter(Boolean).join(" ");o+1===i.length&&a.push(n)}),a.filter(t=>""!==t).join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),V=h((t,e,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);let o=[...t],a=[],n="";return o.forEach((t,s)=>{let l=`${n}${t}`;if(Q(l,i)>=e){let t=o.length===s+1,e=`${l}${r}`;a.push(t?l:e),n=""}else n=l}),{hyphenatedStrings:a,remainingWord:n}},(t,e,r="-",i)=>`${t}${e}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function Z(t,e){return J(t,e).height}function Q(t,e){return J(t,e).width}(0,n.K)(Z,"calculateTextHeight"),(0,n.K)(Q,"calculateTextWidth");var J=h((t,e)=>{let{fontSize:r=12,fontFamily:i="Arial",fontWeight:a=400}=e;if(!t)return{width:0,height:0};let[,n]=to(r),s=t.split(o.Y2.lineBreakRegex),h=[],c=(0,l.Ltv)("body");if(!c.remove)return{width:0,height:0,lineHeight:0};let d=c.append("svg");for(let t of["sans-serif",i]){let e=0,r={width:0,height:0,lineHeight:0};for(let i of s){let o=Y();o.text=i||v;let s=G(d,o).style("font-size",n).style("font-weight",a).style("font-family",t),l=(s._groups||s)[0][0].getBBox();if(0===l.width&&0===l.height)throw Error("svg element not in render tree");r.width=Math.round(Math.max(r.width,l.width)),e=Math.round(l.height),r.height+=e,r.lineHeight=Math.round(Math.max(r.lineHeight,e))}h.push(r)}d.remove();let u=isNaN(h[1].height)||isNaN(h[1].width)||isNaN(h[1].lineHeight)||h[0].height>h[1].height&&h[0].width>h[1].width&&h[0].lineHeight>h[1].lineHeight?0:1;return h[u]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),tt=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{(0,n.K)(this,"InitIDGenerator")}},te=(0,n.K)(function(t){return i=i||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),i.innerHTML=t,unescape(i.textContent)},"entityDecode");function tr(t){return"str"in t}(0,n.K)(tr,"isDetailedError");var ti=(0,n.K)((t,e,r,i)=>{if(!i)return;let o=t.node()?.getBBox();o&&t.append("text").text(i).attr("text-anchor","middle").attr("x",o.x+o.width/2).attr("y",-r).attr("class",e)},"insertTitle"),to=(0,n.K)(t=>{if("number"==typeof t)return[t,t+"px"];let e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function ta(t,e){return function(t,...e){return function(t,...e){let r=e.slice(0,-1),i=e[e.length-1],o=t;for(let t=0;t<r.length;t++)o=function t(e,r,i,o){if((0,d.s)(e)&&(e=Object(e)),null==r||"object"!=typeof r)return e;if(o.has(r))return function(t){if((0,d.s)(t))return t;if(Array.isArray(t)||(0,u.i)(t)||t instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);let e=Object.getPrototypeOf(t);if(null==e)return Object.assign(Object.create(e),t);let r=e.constructor;if(t instanceof Date||t instanceof Map||t instanceof Set)return new r(t);if(t instanceof RegExp){let e=new r(t);return e.lastIndex=t.lastIndex,e}if(t instanceof DataView)return new r(t.buffer.slice(0));if(t instanceof Error){let e;return(e=t instanceof AggregateError?new r(t.errors,t.message,{cause:t.cause}):new r(t.message,{cause:t.cause})).stack=t.stack,Object.assign(e,t),e}return"u">typeof File&&t instanceof File?new r([t],t.name,{type:t.type,lastModified:t.lastModified}):"object"==typeof t?Object.assign(Object.create(e),t):t}(o.get(r));if(o.set(r,e),Array.isArray(r)){r=r.slice();for(let t=0;t<r.length;t++)t in r||(r[t]=void 0)}let a=[...Object.keys(r),...p(r)];for(let s=0;s<a.length;s++){let l=a[s];if("__proto__"===l)continue;let h=r[l],c=e[l];
63if((0,k.N)(h)&&(h={...h}),(0,k.N)(c)&&(c={...c}),(0,g.P)(h)&&(h=b(h)),Array.isArray(h))if(Array.isArray(c)){let t=[],e=Reflect.ownKeys(c);for(let r=0;r<e.length;r++){let i=e[r];t[i]=c[i]}c=t}else{var n;if(w(n=c)&&(0,T.X)(n)){let t=[];for(let e=0;e<c.length;e++)t[e]=c[e];c=t}else c=[]}let d=i(c,h,l,e,r,o);void 0!==d?e[l]=d:Array.isArray(h)||w(c)&&w(h)&&(f(c)||f(h)||(0,B.i)(c)||(0,B.i)(h))?e[l]=t(c,h,i,o):null==c&&f(h)?e[l]=t({},h,i,o):null==c&&(0,B.i)(h)?e[l]=b(h):(void 0===c||void 0!==h)&&(e[l]=h)}return e}(o,r[t],i,new Map);return o}(t,...e,c)}({},t,e)}(0,n.K)(ta,"cleanAndMerge");var tn={assignWithDepth:o.hH,wrapLabel:X,calculateTextHeight:Z,calculateTextWidth:Q,calculateTextDimensions:J,cleanAndMerge:ta,detectInit:A,detectDirective:F,isSubstringInArray:M,interpolateToCurve:$,calcLabelPosition:K,calcCardinalityPosition:P,calcTerminalLabelPosition:z,formatUrl:E,getStylesFromArray:N,generateId:W,random:H,runFunc:O,entityDecode:te,insertTitle:ti,isLabelCoordinateInPath:td,parseFontSize:to,InitIDGenerator:tt},ts=(0,n.K)(function(t){let e=t;
63return(e=(e=e.replace(/style.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/classDef.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/#\w+;/g,function(t){let e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"\uFB02\xb0\xb0"+e+"\xb6\xdf":"\uFB02\xb0"+e+"\xb6\xdf"})},"encodeEntities"),tl=(0,n.K)(function(t){return t.replace(/\ufb02\xb0\xb0/g,"&#").replace(/\ufb02\xb0/g,"&").replace(/\xb6\xdf/g,";")},"decodeEntities"),th=(0,n.K)((t,e,{counter:r=0,prefix:i,suffix:o},a)=>a||`${i?`${i}_`:""}${t}_${e}_${r}${o?`_${o}`:""}`,"getEdgeId");function tc(t){return t??null}function td(t,e){let r=Math.round(t.x),i=Math.round(t.y),o=e.replace(/(\d+\.\d+)/g,t=>Math.round(parseFloat(t)).toString());return o.includes(r.toString())||o.includes(i.toString())}(0,n.K)(tc,"handleUndefinedAttr"),(0,n.K)(td,"isLabelCoordinateInPath")},5637(t,e,r){"use strict";r.d(e,{D:()=>n});var i=r(34599),o=r(86827),a=r(47829),n=(0,o.K)(t=>{let{securityLevel:e}=(0,i.D7)(),r=(0,a.Ltv)("body");if("sandbox"===e){let e=(0,a.Ltv)(`#i${t}`),i=e.node()?.contentDocument??document;r=(0,a.Ltv)(i.body)}return r.select(`#${t}`)},"selectSvgElement")},34599(t,e,r){"use strict";let i;r.d(e,{Q2:()=>ts,UU:()=>to,EI:()=>es,KG:()=>t4,mW:()=>tT,Y2:()=>tJ,DB:()=>tb,Gs:()=>ek,ID:()=>tP,Wt:()=>t7,QO:()=>tj,TM:()=>tm,wZ:()=>ta,UI:()=>Y,D7:()=>ep,mj:()=>em,Wi:()=>tX,B6:()=>tn,xA:()=>td,C0:()=>tw,m7:()=>el,ab:()=>ec,Nk:()=>tl,IU:()=>eo,H1:()=>tA,Xd:()=>tv,hH:()=>m,zj:()=>th,iN:()=>en,dj:()=>tQ,Df:()=>Z,E:()=>tx,oB:()=>ey,ME:()=>ef,ke:()=>eh,ot:()=>t5,tM:()=>t9,a$:()=>t2,Ch:()=>tB,SV:()=>ea,H$:()=>N,P$:()=>S,sb:()=>Q,_3:()=>J,cL:()=>tu,$i:()=>V,XV:()=>eg,Dl:()=>tV,jZ:()=>tO,EJ:()=>tC,J$:()=>t_,Js:()=>eb});var o,a=r(31293),n=r(86827),s=r(16408),l=r(8232);let h=(t,e)=>{let r=s.A.parse(t),i={};for(let t in e)e[t]&&(i[t]=r[t]+e[t]);return(0,l.A)(t,i)};var c=r(25582);let d=(t,e=100)=>{let r=s.A.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,((t,e,r=50)=>{let{r:i,g:o,b:a,a:n}=s.A.parse(t),{r:l,g:h,b:d,a:u}=s.A.parse(e),p=r/100,g=2*p-1,f=n-u,y=((g*f==-1?g:(g+f)/(1+g*f))+1)/2,m=1-y;return(0,c.A)(i*y+l*m,o*y+h*m,a*y+d*m,n*p+u*(1-p))})(r,t,e)};var u=r(75263),p=r(78041),g=r(54682),f=r(99418),y=(0,n.K)((t,e,{depth:r=2}={})=>{let i={depth:r};if(Array.isArray(e)&&!Array.isArray(t))return e.forEach(e=>y(t,e,i)),t;if(Array.isArray(e)&&Array.isArray(t))return e.forEach(e=>{t.includes(e)||t.push(e)}),t;if(null==t||r<=0)if(null!=t&&"object"==typeof t&&"object"==typeof e)return Object.assign(t,e);else return e;return null!=e&&"object"==typeof t&&"object"==typeof e&&Object.entries(e).forEach(([e,i])=>{"object"==typeof i?null!==i&&(Object.hasOwn(t,e)||Object.defineProperty(t,e,{value:void 0,writable:!0,enumerable:!0,configurable:!0}),void 0===t[e]&&(t[e]=Array.isArray(i)?[]:{}),"object"==typeof t[e]&&(t[e]=y(t[e],i,{depth:r-1}))):"object"!=typeof t[e]&&(Object.hasOwn(t,e)?t[e]=i:Object.defineProperty(t,e,{value:i,writable:!0,enumerable:!0,configurable:!0}))}),t},"assignWithDepth"),m=y,x="#ffffff",C="#f2f2f2",b=(0,n.K)((t,e)=>e?h(t,{s:-40,l:10}):h(t,{s:-40,l:-10}),"mkBorder"),k=class{static{(0,n.K)(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||h(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||h(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||b(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||b(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||b(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||b(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||d(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||d(this.tertiaryColor),this.lineColor=this.lineColor||d(this.background),this.arrowheadColor=this.arrowheadColor||d(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.edgeLabelBackgroun
63d=this.edgeLabelBackground||(this.darkMode?(0,u.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,u.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||d(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,p.A)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",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.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||(0,u.A)(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||(0,u.A)(this.mainBkg,10)):(this.rowOdd=this.rowOdd||(0,p.A)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||(0,p.A)(this.mainBkg,5)),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||h(this.primaryColor,{h:30}),this.cScale4=this.cScale4||h(this.primaryColor,{h:60}),this.cScale5=this.cScale5||h(this.primaryColor,{h:90}),this.cScale6=this.cScale6||h(this.primaryColor,{h:120}),this.cScale7=this.cScale7||h(this.primaryColor,{h:150}),this.cScale8=this.cScale8||h(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||h(this.primaryColor,{h:270}),this.cScale10=this.cScale10||h(this.primaryColor,{h:300}),this.cScale11=this.cScale11||h(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,u.A)(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,u.A)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||d(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,p.A)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.A)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;let t=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||h(this.mainBkg,{h:180,s:-15,l:t*(5+3*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||h(this.mainBkg,{h:180,s:-15,l:t*(8+3*e)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||h(this.primaryColor,{h:64}),this.fillType3=this.fillType3||h(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||h(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||h(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||h(this.primaryColor,{h:128}),this.fillType7=this.fillType7||h(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||h(this.primaryColor,{l:-10}),this.pie5=this.pie5||h(this.secondaryColor,{l:-10}),this.pie6=this.pie6||h(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||h(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||h(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||h(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||h(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||h(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||h(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??h(this.primaryColor,{l:-30}),this.venn2=this.venn2??h(this.secondaryColor,{l:-30}),this.venn3=this.venn3??h(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??h(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??h(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??h(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??h(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??h(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||h(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||h(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||h(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||h(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||h(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||h(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,g.A)(this.quadrant1Fill)?(0,p.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
63nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,u.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||h(this.primaryColor,{h:-30}),this.git4=this.git4||h(this.primaryColor,{h:-60}),this.git5=this.git5||h(this.primaryColor,{h:-90}),this.git6=this.git6||h(this.primaryColor,{h:60}),this.git7=this.git7||h(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,p.A)(this.git0,25),this.git1=(0,p.A)(this.git1,25),this.git2=(0,p.A)(this.git2,25),this.git3=(0,p.A)(this.git3,25),this.git4=(0,p.A)(this.git4,25),this.git5=(0,p.A)(this.git5,25),this.git6=(0,p.A)(this.git6,25),this.git7=(0,p.A)(this.git7,25)):(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)),this.gitInv0=this.gitInv0||d(this.git0),this.gitInv1=this.gitInv1||d(this.git1),this.gitInv2=this.gitInv2||d(this.git2),this.gitInv3=this.gitInv3||d(this.git3),this.gitInv4=this.gitInv4||d(this.git4),this.gitInv5=this.gitInv5||d(this.git5),this.gitInv6=this.gitInv6||d(this.git6),this.gitInv7=this.gitInv7||d(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadMo
63delFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||x,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||C,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(t){if("object"!=typeof t)return void this.updateColors();let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},w=(0,n.K)(t=>{let e=new k;return e.calculate(t),e},"getThemeVariables"),T=class{static{(0,n.K)(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,p.A)(this.primaryColor,16),this.tertiaryColor=h(this.primaryColor,{h:-160}),this.primaryBorderColor=d(this.background),this.secondaryBorderColor=b(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=b(this.tertiaryColor,this.darkMode),this.primaryTextColor=d(this.primaryColor),this.secondaryTextColor=d(this.secondaryColor),this.tertiaryTextColor=d(this.tertiaryColor),this.lineColor=d(this.background),this.textColor=d(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,p.A)(d("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=(0,c.A)(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,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.clusterBkg="#302F3D",this.sectionBkgColor=(0,u.A)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=(0,u.A)(this.sectionBkgColor,10),this.taskBorderColor=(0,c.A)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,c.A)(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||(0,p.A)(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||(0,u.A)(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){this.secondBkg=(0,p.A)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackgroun
63d=(0,p.A)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,p.A)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=d(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=h(this.primaryColor,{h:64}),this.fillType3=h(this.secondaryColor,{h:64}),this.fillType4=h(this.primaryColor,{h:-64}),this.fillType5=h(this.secondaryColor,{h:-64}),this.fillType6=h(this.primaryColor,{h:128}),this.fillType7=h(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||h(this.primaryColor,{h:30}),this.cScale4=this.cScale4||h(this.primaryColor,{h:60}),this.cScale5=this.cScale5||h(this.primaryColor,{h:90}),this.cScale6=this.cScale6||h(this.primaryColor,{h:120}),this.cScale7=this.cScale7||h(this.primaryColor,{h:150}),this.cScale8=this.cScale8||h(this.primaryColor,{h:210}),this.cScale9=this.cScale9||h(this.primaryColor,{h:270}),this.cScale10=this.cScale10||h(this.primaryColor,{h:300}),this.cScale11=this.cScale11||h(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||d(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||(0,p.A)(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||h(this.mainBkg,{h:30,s:-30,l:-(-10+4*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||h(this.mainBkg,{h:30,s:-30,l:-(-7+4*t)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let t=0;t<8;t++)this["venn"+(t+1)]=this["venn"+(t+1)]??(0,p.A)(this["cScale"+t],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#FF6B6B",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#1B5E20",complicatedBg:this.cynefin?.complicatedBg||"#0D47A1",chaoticBg:this.cynefin?.chaoticBg||"#BF360C",clearBg:this.cynefin?.clearBg||"#F57F17",confusionBg:this.cynefin?.confusionBg||"#4A148
63C",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||h(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||h(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||h(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||h(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||h(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||h(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,g.A)(this.quadrant1Fill)?(0,p.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.mainBkg,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.mainBkg},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackgroun
63d=this.relationLabelBackground||(this.darkMode?(0,u.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,p.A)(this.secondaryColor,20),this.git1=(0,p.A)(this.pie2||this.secondaryColor,20),this.git2=(0,p.A)(this.pie3||this.tertiaryColor,20),this.git3=(0,p.A)(this.pie4||h(this.primaryColor,{h:-30}),20),this.git4=(0,p.A)(this.pie5||h(this.primaryColor,{h:-60}),20),this.git5=(0,p.A)(this.pie6||h(this.primaryColor,{h:-90}),10),this.git6=(0,p.A)(this.pie7||h(this.primaryColor,{h:60}),10),this.git7=(0,p.A)(this.pie8||h(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||d(this.git0),this.gitInv1=this.gitInv1||d(this.git1),this.gitInv2=this.gitInv2||d(this.git2),this.gitInv3=this.gitInv3||d(this.git3),this.gitInv4=this.gitInv4||d(this.git4),this.gitInv5=this.gitInv5||d(this.git5),this.gitInv6=this.gitInv6||d(this.git6),this.gitInv7=this.gitInv7||d(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||d(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||d(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"#2d2d2d",this.emUiStroke=this.emUiStroke||"#555",this.emProcessorFill=this.emProcessorFill||(0,p.A)("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||(0,p.A)("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||(0,p.A)("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||(0,p.A)("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||(0,p.A)(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||(0,p.A)(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||(0,p.A)(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||(0,p.A)(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if("object"!=typeof t)return void this.updateColors();let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},B=(0,n.K)(t=>{let e=new T;return e.calculate(t),e},"getThemeVariables"),v=class{static{(0,n.K)(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=h(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=h(this.primaryColor,{h:-160}),this.primaryBorderColor=b(this.primaryColor,this.darkMode),this.secondaryBorderColor=b(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=b(this.tertiaryColor,this.darkMode),this.primaryTextColor=d(this.primaryColor),this.secondaryTextColor=d(this.secondaryColor),this.tertiaryTextColor=d(this.tertiaryColor),this.lineColor=d(this.background),this.textColor=d(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=b(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackgroun
63d="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",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.vertLineColor="calculated",this.sectionBkgColor=(0,c.A)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",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||h(this.primaryColor,{h:30}),this.cScale4=this.cScale4||h(this.primaryColor,{h:60}),this.cScale5=this.cScale5||h(this.primaryColor,{h:90}),this.cScale6=this.cScale6||h(this.primaryColor,{h:120}),this.cScale7=this.cScale7||h(this.primaryColor,{h:150}),this.cScale8=this.cScale8||h(this.primaryColor,{h:210}),this.cScale9=this.cScale9||h(this.primaryColor,{h:270}),this.cScale10=this.cScale10||h(this.primaryColor,{h:300}),this.cScale11=this.cScale11||h(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,u.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,u.A)(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,u.A)(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.A)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||h(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||h(this.mainBkg,{h:30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||h(this.mainBkg,{h:30,l:-(7+5*t)});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||d(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||d(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackgroun
63d=this.labelBackground,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||(0,p.A)(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||(0,p.A)(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=h(this.primaryColor,{h:64}),this.fillType3=h(this.secondaryColor,{h:64}),this.fillType4=h(this.primaryColor,{h:-64}),this.fillType5=h(this.secondaryColor,{h:-64}),this.fillType6=h(this.primaryColor,{h:128}),this.fillType7=h(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||h(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||h(this.primaryColor,{l:-10}),this.pie5=this.pie5||h(this.secondaryColor,{l:-30}),this.pie6=this.pie6||h(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||h(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||h(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||h(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||h(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||h(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||h(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??h(this.primaryColor,{l:-30}),this.venn2=this.venn2??h(this.secondaryColor,{l:-30}),this.venn3=this.venn3??h(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??h(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??h(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??h(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??h(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??h(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||h(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||h(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||h(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||h(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||h(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||h(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,g.A)(this.quadrant1Fill)?(0,p.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
63nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||h(this.primaryColor,{h:-30}),this.git4=this.git4||h(this.primaryColor,{h:-60}),this.git5=this.git5||h(this.primaryColor,{h:-90}),this.git6=this.git6||h(this.primaryColor,{h:60}),this.git7=this.git7||h(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,p.A)(this.git0,25),this.git1=(0,p.A)(this.git1,25),this.git2=(0,p.A)(this.git2,25),this.git3=(0,p.A)(this.git3,25),this.git4=(0,p.A)(this.git4,25),this.git5=(0,p.A)(this.git5,25),this.git6=(0,p.A)(this.git6,25),this.git7=(0,p.A)(this.git7,25)):(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)),this.gitInv0=this.gitInv0||(0,u.A)(d(this.git0),25),this.gitInv1=this.gitInv1||d(this.git1),this.gitInv2=this.gitInv2||d(this.git2),this.gitInv3=this.gitInv3||d(this.git3),this.gitInv4=this.gitInv4||d(this.git4),this.gitInv5=this.gitInv5||d(this.git5),this.gitInv6=this.gitInv6||d(this.git6),this.gitInv7=this.gitInv7||d(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||d(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||d(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackgroun
63d=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||x,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||C}calculate(t){if(Object.keys(this).forEach(t=>{"calculated"===this[t]&&(this[t]=void 0)}),"object"!=typeof t)return void this.updateColors();let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},S=(0,n.K)(t=>{let e=new v;return e.calculate(t),e},"getThemeVariables"),_=class{static{(0,n.K)(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=(0,p.A)("#cde498",10),this.primaryBorderColor=b(this.primaryColor,this.darkMode),this.secondaryBorderColor=b(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=b(this.tertiaryColor,this.darkMode),this.primaryTextColor=d(this.primaryColor),this.secondaryTextColor=d(this.secondaryColor),this.tertiaryTextColor=d(this.primaryColor),this.lineColor=d(this.background),this.textColor=d(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){this.actorBorder=(0,u.A)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||h(this.primaryColor,{h:30}),this.cScale4=this.cScale4||h(this.primaryColor,{h:60}),this.cScale5=this.cScale5||h(this.primaryColor,{h:90}),this.cScale6=this.cScale6||h(this.primaryColor,{h:120}),this.cScale7=this.cScale7||h(this.primaryColor,{h:150}),this.cScale8=this.cScale8||h(this.primaryColor,{h:210}),this.cScale9=this.cScale9||h(this.primaryColor,{h:270}),this.cScale10=this.cScale10||h(this.primaryColor,{h:300}),this.cScale11=this.cScale11||h(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,u.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,u.A)(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,u.A)(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.A)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||h(this["cScale"+t],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||h(this.mainBkg,{h:30,s:-30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||h(this.mainBkg,{h:30,s:-30,l:-(8+5*t)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||(0,p.A)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||(0,p.A)(this.mainBkg,20),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.labelBackgroun
63dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=h(this.primaryColor,{h:64}),this.fillType3=h(this.secondaryColor,{h:64}),this.fillType4=h(this.primaryColor,{h:-64}),this.fillType5=h(this.secondaryColor,{h:-64}),this.fillType6=h(this.primaryColor,{h:128}),this.fillType7=h(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||h(this.primaryColor,{l:-30}),this.pie5=this.pie5||h(this.secondaryColor,{l:-30}),this.pie6=this.pie6||h(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||h(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||h(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||h(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||h(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||h(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||h(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??h(this.primaryColor,{l:-30}),this.venn2=this.venn2??h(this.secondaryColor,{l:-30}),this.venn3=this.venn3??h(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??h(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??h(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??h(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??h(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??h(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B4513",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#C8E6C9",complicatedBg:this.cynefin?.complicatedBg||"#DCEDC8",chaoticBg:this.cynefin?.chaoticBg||"#FFE0B2",clearBg:this.cynefin?.clearBg||"#FFF9C4",confusionBg:this.cynefin?.confusionBg||"#D7CCC8",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||h(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||h(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||h(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||h(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||h(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||h(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,g.A)(this.quadrant1Fill)?(0,p.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
63nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||h(this.primaryColor,{h:-30}),this.git4=this.git4||h(this.primaryColor,{h:-60}),this.git5=this.git5||h(this.primaryColor,{h:-90}),this.git6=this.git6||h(this.primaryColor,{h:60}),this.git7=this.git7||h(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,p.A)(this.git0,25),this.git1=(0,p.A)(this.git1,25),this.git2=(0,p.A)(this.git2,25),this.git3=(0,p.A)(this.git3,25),this.git4=(0,p.A)(this.git4,25),this.git5=(0,p.A)(this.git5,25),this.git6=(0,p.A)(this.git6,25),this.git7=(0,p.A)(this.git7,25)):(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)),this.gitInv0=this.gitInv0||d(this.git0),this.gitInv1=this.gitInv1||d(this.git1),this.gitInv2=this.gitInv2||d(this.git2),this.gitInv3=this.gitInv3||d(this.git3),this.gitInv4=this.gitInv4||d(this.git4),this.gitInv5=this.gitInv5||d(this.git5),this.gitInv6=this.gitInv6||d(this.git6),this.gitInv7=this.gitInv7||d(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||d(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||d(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackgroun
63d=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||x,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||C}calculate(t){if("object"!=typeof t)return void this.updateColors();let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},A=(0,n.K)(t=>{let e=new _;return e.calculate(t),e},"getThemeVariables"),F=class{static{(0,n.K)(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,p.A)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=h(this.primaryColor,{h:-160}),this.primaryBorderColor=b(this.primaryColor,this.darkMode),this.secondaryBorderColor=b(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=b(this.tertiaryColor,this.darkMode),this.primaryTextColor=d(this.primaryColor),this.secondaryTextColor=d(this.secondaryColor),this.tertiaryTextColor=d(this.tertiaryColor),this.lineColor=d(this.background),this.textColor=d(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.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||(0,p.A)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){this.secondBkg=(0,p.A)(this.contrast,55),this.border2=this.contrast,this.actorBorder=(0,p.A)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||d(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,p.A)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.A)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||h(this.mainBkg,{l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||h(this.mainBkg,{l:-(8+5*t)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=(0,p.A)(this.contrast,30),this.sectionBkgColor2=(0,p.A)(this.contrast,30),this.taskBorderColor=(0,u.A)(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=(0,p.A)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=(0,u.A)(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
vendor: 6,056 bytes, line 63
63dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=h(this.primaryColor,{h:64}),this.fillType3=h(this.secondaryColor,{h:64}),this.fillType4=h(this.primaryColor,{h:-64}),this.fillType5=h(this.secondaryColor,{h:-64}),this.fillType6=h(this.primaryColor,{h:128}),this.fillType7=h(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let t=0;t<8;t++)this["venn"+(t+1)]=this["venn"+(t+1)]??this["cScale"+t];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||h(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||h(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||h(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||h(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||h(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||h(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,g.A)(this.quadrant1Fill)?(0,p.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background}
63,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,u.A)(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||h(this.primaryColor,{h:-30}),this.git4=this.pie5||h(this.primaryColor,{h:-60}),this.git5=this.pie6||h(this.primaryColor,{h:-90}),this.git6=this.pie7||h(this.primaryColor,{h:60}),this.git7=this.pie8||h(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||d(this.git0),this.gitInv1=this.gitInv1||d(this.git1),this.gitInv2=this.gitInv2||d(this.git2),this.gitInv3=this.gitInv3||d(this.git3),this.gitInv4=this.gitInv4||d(this.git4),this.gitInv5=this.gitInv5||d(this.git5),this.gitInv6=this.gitInv6||d(this.git6),this.gitInv7=this.gitInv7||d(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||x,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||C}calculate(t){if("object"!=typeof t)return void this.updateColors();let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},L=(0,n.K)(t=>{let e=new F;return e.calculate(t),e},"getThemeVariables"),M=class{static{(0,n.K)(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=b(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||h(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||h(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||b(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||b(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||b(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||b(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||d(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||d(this.tertiaryColor),this.lineColor=this.lineColor||d(this.background),this.arrowheadColor=this.arrowheadColor||d(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.edgeLabelBackgroun
63d=this.edgeLabelBackground||(this.darkMode?(0,u.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,u.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||d(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;let t="#ECECFE",e="#E9E9F1",r=h(t,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||r,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||e,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,p.A)(t,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.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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||"#f0f0f0",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||t,this.cScale1=this.cScale1||e,this.cScale2=this.cScale2||r,this.cScale3=this.cScale3||h(t,{h:30}),this.cScale4=this.cScale4||h(t,{h:60}),this.cScale5=this.cScale5||h(t,{h:90}),this.cScale6=this.cScale6||h(t,{h:120}),this.cScale7=this.cScale7||h(t,{h:150}),this.cScale8=this.cScale8||h(t,{h:210,l:150}),this.cScale9=this.cScale9||h(t,{h:270}),this.cScale10=this.cScale10||h(t,{h:300}),this.cScale11=this.cScale11||h(t,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,u.A)(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,u.A)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||d(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,p.A)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.A)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;let i=this.darkMode?-4:-1;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||h(this.mainBkg,{h:180,s:-15,l:i*(5+3*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||h(this.mainBkg,{h:180,s:-15,l:i*(8+3*t)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||e,this.fillType2=this.fillType2||h(t,{h:64}),this.fillType3=this.fillType3||h(e,{h:64}),this.fillType4=this.fillType4||h(t,{h:-64}),this.fillType5=this.fillType5||h(e,{h:-64}),this.fillType6=this.fillType6||h(t,{h:128}),this.fillType7=this.fillType7||h(e,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||e,this.pie3=this.pie3||r,this.pie4=this.pie4||h(t,{l:-10}),this.pie5=this.pie5||h(e,{l:-10}),this.pie6=this.pie6||h(r,{l:-10}),this.pie7=this.pie7||h(t,{h:60,l:-10}),this.pie8=this.pie8||h(t,{h:-60,l:-10}),this.pie9=this.pie9||h(t,{h:120,l:0}),this.pie10=this.pie10||h(t,{h:60,l:-20}),this.pie11=this.pie11||h(t,{h:-60,l:-20}),this.pie12=this.pie12||h(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||h(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||h(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||h(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||h(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||h(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||h(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,g.A)(this.quadrant1Fill)?(0,p.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
63nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,u.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||e,this.git2=this.git2||r,this.git3=this.git3||h(t,{h:-30}),this.git4=this.git4||h(t,{h:-60}),this.git5=this.git5||h(t,{h:-90}),this.git6=this.git6||h(t,{h:60}),this.git7=this.git7||h(t,{h:120}),this.darkMode?(this.git0=(0,p.A)(this.git0,25),this.git1=(0,p.A)(this.git1,25),this.git2=(0,p.A)(this.git2,25),this.git3=(0,p.A)(this.git3,25),this.git4=(0,p.A)(this.git4,25),this.git5=(0,p.A)(this.git5,25),this.git6=(0,p.A)(this.git6,25),this.git7=(0,p.A)(this.git7,25)):(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)),this.gitInv0=this.gitInv0||d(this.git0),this.gitInv1=this.gitInv1||d(this.git1),this.gitInv2=this.gitInv2||d(this.git2),this.gitInv3=this.gitInv3||d(this.git3),this.gitInv4=this.gitInv4||d(this.git4),this.gitInv5=this.gitInv5||d(this.git5),this.gitInv6=this.gitInv6||d(this.git6),this.gitInv7=this.gitInv7||d(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||x,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||C}calculate(t){if("object"!=typeof t)return void this.updateColors();let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},$=(0,n.K)(t=>{let e=new M;return e.calculate(t),e},"getThemeVariables"),E=class{static{(0,n.K)(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,p.A)(this.primaryColor,16),this.tertiaryColor=h(this.primaryColor,{h:-160}),this.primaryBorderColor=d(this.background),this.secondaryBorderColor=b(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=b(this.tertiaryColor,this.darkMode),this.primaryTextColor=d(this.primaryColor),this.secondaryTextColor=d(this.secondaryColor),this.tertiaryTextColor=d(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,p.A)(d("#323D47"),10),this.border1="#ccc",this.border2=(0,c.A)(255,255,255,.25),this.arrowheadColor=d(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackgroun
63d="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||h(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||h(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||b(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||b(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||b(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||b(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||d(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||d(this.tertiaryColor),this.lineColor=this.lineColor||d(this.background),this.arrowheadColor=this.arrowheadColor||d(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.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,u.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,u.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||d(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,p.A)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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.labelBackgroun
63dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.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||h(this.primaryColor,{h:30}),this.cScale4=this.cScale4||h(this.primaryColor,{h:60}),this.cScale5=this.cScale5||h(this.primaryColor,{h:90}),this.cScale6=this.cScale6||h(this.primaryColor,{h:120}),this.cScale7=this.cScale7||h(this.primaryColor,{h:150}),this.cScale8=this.cScale8||h(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||h(this.primaryColor,{h:270}),this.cScale10=this.cScale10||h(this.primaryColor,{h:300}),this.cScale11=this.cScale11||h(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,u.A)(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,u.A)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||d(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,p.A)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.A)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;let t=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||h(this.mainBkg,{h:180,s:-15,l:t*(5+3*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||h(this.mainBkg,{h:180,s:-15,l:t*(8+3*e)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||h(this.primaryColor,{h:64}),this.fillType3=this.fillType3||h(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||h(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||h(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||h(this.primaryColor,{h:128}),this.fillType7=this.fillType7||h(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||h(this.primaryColor,{l:-10}),this.pie5=this.pie5||h(this.secondaryColor,{l:-10}),this.pie6=this.pie6||h(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||h(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||h(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||h(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||h(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||h(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||h(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||h(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||h(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||h(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||h(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||h(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||h(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,g.A)(this.quadrant1Fill)?(0,p.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
63nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,u.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode?(this.git0=(0,p.A)(this.git0,25),this.git1=(0,p.A)(this.git1,25),this.git2=(0,p.A)(this.git2,25),this.git3=(0,p.A)(this.git3,25),this.git4=(0,p.A)(this.git4,25),this.git5=(0,p.A)(this.git5,25),this.git6=(0,p.A)(this.git6,25),this.git7=(0,p.A)(this.git7,25)):(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)),this.gitInv0=this.gitInv0||d(this.git0),this.gitInv1=this.gitInv1||d(this.git1),this.gitInv2=this.gitInv2||d(this.git2),this.gitInv3=this.gitInv3||d(this.git3),this.gitInv4=this.gitInv4||d(this.git4),this.gitInv5=this.gitInv5||d(this.git5),this.gitInv6=this.gitInv6||d(this.git6),this.gitInv7=this.gitInv7||d(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||x,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||C}calculate(t){if("object"!=typeof t)return void this.updateColors();let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},O=(0,n.K)(t=>{let e=new E;return e.calculate(t),e},"getThemeVariables"),D=class{static{(0,n.K)(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=b("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||h(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||h(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||b(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||b(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||b(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||b(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||d(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||d(this.tertiaryColor),this.lineColor=this.lineColor||d(this.background),this.arrowheadColor=this.arrowheadColor||d(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.edgeLabelBackgroun
63d=this.edgeLabelBackground||(this.darkMode?(0,u.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,u.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||d(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;let t="#ECECFE",e="#E9E9F1",r=h(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||r,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||e,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,p.A)(t,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.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=this.mainBkg;if(this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,u.A)(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,u.A)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||d(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,p.A)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.A)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;let i=this.darkMode?-4:-1;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||h(this.mainBkg,{h:180,s:-15,l:i*(5+3*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||h(this.mainBkg,{h:180,s:-15,l:i*(8+3*t)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||e,this.fillType2=this.fillType2||h(t,{h:64}),this.fillType3=this.fillType3||h(e,{h:64}),this.fillType4=this.fillType4||h(t,{h:-64}),this.fillType5=this.fillType5||h(e,{h:-64}),this.fillType6=this.fillType6||h(t,{h:128}),this.fillType7=this.fillType7||h(e,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||e,this.pie3=this.pie3||r,this.pie4=this.pie4||h(t,{l:-10}),this.pie5=this.pie5||h(e,{l:-10}),this.pie6=this.pie6||h(r,{l:-10}),this.pie7=this.pie7||h(t,{h:60,l:-10}),this.pie8=this.pie8||h(t,{h:-60,l:-10}),this.pie9=this.pie9||h(t,{h:120,l:0}),this.pie10=this.pie10||h(t,{h:60,l:-20}),this.pie11=this.pie11||h(t,{h:-60,l:-20}),this.pie12=this.pie12||h(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||h(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||h(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||h(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||h(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||h(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||h(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,g.A)(this.quadrant1Fill)?(0,p.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
63nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,u.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||t,this.git1=this.git1||e,this.git2=this.git2||r,this.git3=this.git3||h(t,{h:-30}),this.git4=this.git4||h(t,{h:-60}),this.git5=this.git5||h(t,{h:-90}),this.git6=this.git6||h(t,{h:60}),this.git7=this.git7||h(t,{h:120}),this.darkMode?(this.git0=(0,p.A)(this.git0,25),this.git1=(0,p.A)(this.git1,25),this.git2=(0,p.A)(this.git2,25),this.git3=(0,p.A)(this.git3,25),this.git4=(0,p.A)(this.git4,25),this.git5=(0,p.A)(this.git5,25),this.git6=(0,p.A)(this.git6,25),this.git7=(0,p.A)(this.git7,25)):(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)),this.gitInv0=this.gitInv0||d(this.git0),this.gitInv1=this.gitInv1||d(this.git1),this.gitInv2=this.gitInv2||d(this.git2),this.gitInv3=this.gitInv3||d(this.git3),this.gitInv4=this.gitInv4||d(this.git4),this.gitInv5=this.gitInv5||d(this.git5),this.gitInv6=this.gitInv6||d(this.git6),this.gitInv7=this.gitInv7||d(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||x,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||C}calculate(t){if("object"!=typeof t)return void this.updateColors();let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}
63),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},I=(0,n.K)(t=>{let e=new D;return e.calculate(t),e},"getThemeVariables"),K=class{static{(0,n.K)(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,p.A)(this.primaryColor,16),this.tertiaryColor=h(this.primaryColor,{h:-160}),this.primaryBorderColor=d(this.background),this.secondaryBorderColor=b(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=b(this.tertiaryColor,this.darkMode),this.primaryTextColor=d(this.primaryColor),this.secondaryTextColor=d(this.secondaryColor),this.tertiaryTextColor=d(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,p.A)(d("#323D47"),10),this.border1="#ccc",this.border2=(0,c.A)(255,255,255,.25),this.arrowheadColor=d(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||h(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||h(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||b(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||b(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||b(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||b(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||d(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||d(this.tertiaryColor),this.lineColor=this.lineColor||d(this.background),this.arrowheadColor=this.arrowheadColor||d(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.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,u.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,u.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||d(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,p.A)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackgroun
63d="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.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||h(this.primaryColor,{h:30}),this.cScale4=this.cScale4||h(this.primaryColor,{h:60}),this.cScale5=this.cScale5||h(this.primaryColor,{h:90}),this.cScale6=this.cScale6||h(this.primaryColor,{h:120}),this.cScale7=this.cScale7||h(this.primaryColor,{h:150}),this.cScale8=this.cScale8||h(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||h(this.primaryColor,{h:270}),this.cScale10=this.cScale10||h(this.primaryColor,{h:300}),this.cScale11=this.cScale11||h(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,u.A)(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,u.A)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||d(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,p.A)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.A)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;let t=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||h(this.mainBkg,{h:180,s:-15,l:t*(5+3*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||h(this.mainBkg,{h:180,s:-15,l:t*(8+3*e)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||h(this.primaryColor,{h:64}),this.fillType3=this.fillType3||h(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||h(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||h(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||h(this.primaryColor,{h:128}),this.fillType7=this.fillType7||h(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||h(this.primaryColor,{l:-10}),this.pie5=this.pie5||h(this.secondaryColor,{l:-10}),this.pie6=this.pie6||h(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||h(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||h(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||h(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||h(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||h(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||h(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||h(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||h(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||h(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||h(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||h(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||h(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,g.A)(this.quadrant1Fill)?(0,p.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
63nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,u.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||h(this.primaryColor,{h:-30}),this.git4=this.git4||h(this.primaryColor,{h:-60}),this.git5=this.git5||h(this.primaryColor,{h:-90}),this.git6=this.git6||h(this.primaryColor,{h:60}),this.git7=this.git7||h(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,p.A)(this.git0,25),this.git1=(0,p.A)(this.git1,25),this.git2=(0,p.A)(this.git2,25),this.git3=(0,p.A)(this.git3,25),this.git4=(0,p.A)(this.git4,25),this.git5=(0,p.A)(this.git5,25),this.git6=(0,p.A)(this.git6,25),this.git7=(0,p.A)(this.git7,25)):(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)),this.gitInv0=this.gitInv0||d(this.git0),this.gitInv1=this.gitInv1||d(this.git1),this.gitInv2=this.gitInv2||d(this.git2),this.gitInv3=this.gitInv3||d(this.git3),this.gitInv4=this.gitInv4||d(this.git4),this.gitInv5=this.gitInv5||d(this.git5),this.gitInv6=this.gitInv6||d(this.git6),this.gitInv7=this.gitInv7||d(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||x,this.attributeBackgroundColorEven=this.attributeBackgroun
63dColorEven||C}calculate(t){if("object"!=typeof t)return void this.updateColors();let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},q=(0,n.K)(t=>{let e=new K;return e.calculate(t),e},"getThemeVariables"),R=class{static{(0,n.K)(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=b(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||h(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||h(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||b(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||b(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||b(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||b(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||d(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||d(this.tertiaryColor),this.lineColor=this.lineColor||d(this.background),this.arrowheadColor=this.arrowheadColor||d(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,u.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,u.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||d(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;let t="#ECECFE",e="#E9E9F1",r=h(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||r,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||e,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,p.A)(t,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.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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.labelBackgroun
63dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.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||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||d(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,p.A)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.A)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;let i=this.darkMode?-4:-1;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||h(this.mainBkg,{h:180,s:-15,l:i*(5+3*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||h(this.mainBkg,{h:180,s:-15,l:i*(8+3*t)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||e,this.fillType2=this.fillType2||h(t,{h:64}),this.fillType3=this.fillType3||h(e,{h:64}),this.fillType4=this.fillType4||h(t,{h:-64}),this.fillType5=this.fillType5||h(e,{h:-64}),this.fillType6=this.fillType6||h(t,{h:128}),this.fillType7=this.fillType7||h(e,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||e,this.pie3=this.pie3||r,this.pie4=this.pie4||h(t,{l:-10}),this.pie5=this.pie5||h(e,{l:-10}),this.pie6=this.pie6||h(r,{l:-10}),this.pie7=this.pie7||h(t,{h:60,l:-10}),this.pie8=this.pie8||h(t,{h:-60,l:-10}),this.pie9=this.pie9||h(t,{h:120,l:0}),this.pie10=this.pie10||h(t,{h:60,l:-20}),this.pie11=this.pie11||h(t,{h:-60,l:-20}),this.pie12=this.pie12||h(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||h(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||h(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||h(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||h(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||h(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||h(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,g.A)(this.quadrant1Fill)?(0,p.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
63nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,u.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||e,this.git2=this.git2||r,this.git3=this.git3||h(t,{h:-30}),this.git4=this.git4||h(t,{h:-60}),this.git5=this.git5||h(t,{h:-90}),this.git6=this.git6||h(t,{h:60}),this.git7=this.git7||h(t,{h:120}),this.darkMode?(this.git0=(0,p.A)(this.git0,25),this.git1=(0,p.A)(this.git1,25),this.git2=(0,p.A)(this.git2,25),this.git3=(0,p.A)(this.git3,25),this.git4=(0,p.A)(this.git4,25),this.git5=(0,p.A)(this.git5,25),this.git6=(0,p.A)(this.git6,25),this.git7=(0,p.A)(this.git7,25)):(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)),this.gitInv0=this.gitInv0||d(this.git0),this.gitInv1=this.gitInv1||d(this.git1),this.gitInv2=this.gitInv2||d(this.git2),this.gitInv3=this.gitInv3||d(this.git3),this.gitInv4=this.gitInv4||d(this.git4),this.gitInv5=this.gitInv5||d(this.git5),this.gitInv6=this.gitInv6||d(this.git6),this.gitInv7=this.gitInv7||d(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||x,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||C}calculate(t){if("object"!=typeof t)return void this.updateColors();let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},P=(0,n.K)(t=>{let e=new R;return e.calculate(t),e},"getThemeVariables"),z=class{static{(0,n.K)(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,p.A)(this.primaryColor,16),this.tertiaryColor=h(this.primaryColor,{h:-160}),this.primaryBorderColor=d(this.background),this.secondaryBorderColor=b(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=b(this.tertiaryColor,this.darkMode),this.primaryTextColor=d(this.primaryColor),this.secondaryTextColor=d(this.secondaryColor),this.tertiaryTextColor=d(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,p.A)(d("#323D47"),10),this.border1="#ccc",this.border2=(0,c.A)(255,255,255,.25),this.arrowheadColor=d(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackgroun
63d="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||h(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||h(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||b(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||b(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||b(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||b(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||d(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||d(this.tertiaryColor),this.lineColor=this.lineColor||d(this.background),this.arrowheadColor=this.arrowheadColor||d(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.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,u.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,u.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||d(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor="#FFFFFF",this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,p.A)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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.labelBackgroun
63dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.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||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||d(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,p.A)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.A)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=(0,u.A)(this["cScale"+t],75);let t=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||h(this.mainBkg,{h:180,s:-15,l:t*(5+3*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||h(this.mainBkg,{h:180,s:-15,l:t*(8+3*e)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||h(this.primaryColor,{h:64}),this.fillType3=this.fillType3||h(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||h(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||h(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||h(this.primaryColor,{h:128}),this.fillType7=this.fillType7||h(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||h(this.primaryColor,{l:-10}),this.pie5=this.pie5||h(this.secondaryColor,{l:-10}),this.pie6=this.pie6||h(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||h(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||h(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||h(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||h(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||h(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||h(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||h(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||h(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||h(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||h(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||h(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||h(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,g.A)(this.quadrant1Fill)?(0,p.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
63nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,u.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||h(this.primaryColor,{h:-30}),this.git4=this.git4||h(this.primaryColor,{h:-60}),this.git5=this.git5||h(this.primaryColor,{h:-90}),this.git6=this.git6||h(this.primaryColor,{h:60}),this.git7=this.git7||h(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,p.A)(this.git0,25),this.git1=(0,p.A)(this.git1,25),this.git2=(0,p.A)(this.git2,25),this.git3=(0,p.A)(this.git3,25),this.git4=(0,p.A)(this.git4,25),this.git5=(0,p.A)(this.git5,25),this.git6=(0,p.A)(this.git6,25),this.git7=(0,p.A)(this.git7,25)):(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)),this.gitInv0=this.gitInv0||d(this.git0),this.gitInv1=this.gitInv1||d(this.git1),this.gitInv2=this.gitInv2||d(this.git2),this.gitInv3=this.gitInv3||d(this.git3),this.gitInv4=this.gitInv4||d(this.git4),this.gitInv5=this.gitInv5||d(this.git5),this.gitInv6=this.gitInv6||d(this.git6),this.gitInv7=this.gitInv7||d(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||x,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||C}calculate(t){if("object"!=typeof t)return void this.updateColors();let e=Object.keys(t);
vendor: 4,178 bytes, line 63
63e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},N={base:{getThemeVariables:w},dark:{getThemeVariables:B},default:{getThemeVariables:S},forest:{getThemeVariables:A},neutral:{getThemeVariables:L},neo:{getThemeVariables:$},"neo-dark":{getThemeVariables:O},redux:{getThemeVariables:I},"redux-dark":{getThemeVariables:q},"redux-color":{getThemeVariables:P},"redux-dark-color":{getThemeVariables:(0,n.K)(t=>{let e=new z;return e.calculate(t),e},"getThemeVariables")}},j={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},swimlane:{useMaxWidth:!0,lineHops:"arc",ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75,donutHole:0,legendPosition:"right",highlightSlice:""},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,showLegend:!0,legendFontSize:14,legendPadding:10,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWi
vendor: 6,204 bytes, line 63
63dth:2,labelRotation:0},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1,showIcons:!1,defaultIconPack:"",filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500,seed:1},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.
6317},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},cynefin:{useMaxWidth:!0,width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},W={...j,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",nodePlacementAlignment:"NONE",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES",keepEntryNodeOnTop:!1},themeCSS:void 0,themeVariables:N.default.getThemeVariables(),sequence:{...j.sequence,messageFont:(0,n.K)(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:(0,n.K)(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:(0,n.K)(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{defaultRenderer:"dagre-wrapper",hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...j.gantt,tickInterval:void 0,useWidth:void 0},c4:{...j.c4,useWidth:void 0,personFont:(0,n.K)(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...j.flowchart,inheritDir:!1},external_personFont:(0,n.K)(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:(0,n.K)(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:(0,n.K)(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:(0,n.K)(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:(0,n.K)(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:(0,n.K)(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:(0,n.K)(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:(0,n.K)(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:(0,n.K)(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:(0,n.K)(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:(0,n.K)(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:(0,n.K)(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:(0,n.K)(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:(0,n.K)(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:(0,n.K)(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:(0,n.K)(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:(0,n.K)(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:(0,n.K)(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:(0,n.K)(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:(0,n.K)(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:(0,n.K)(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...j.pie,useWidth:984}
63,xyChart:{...j.xyChart,useWidth:void 0},requirement:{...j.requirement,useWidth:void 0},packet:{...j.packet},eventmodeling:{...j.eventmodeling},treeView:{...j.treeView,useWidth:void 0},radar:{...j.radar},railroad:{...j.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{...j.ishikawa},sankey:{...j.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...j.venn},cynefin:{...j.cynefin}},U=(0,n.K)((t,e="")=>Object.keys(t).reduce((r,i)=>Array.isArray(t[i])?r:"object"==typeof t[i]&&null!==t[i]?[...r,e+i,...U(t[i],"")]:[...r,e+i],[]),"keyify"),H=new Set(U(W,"")),Y=W,G={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},X=(0,n.K)((t,e)=>{for(let r of Object.keys(t)){let i=t[r];(r.startsWith("__")||r.includes("proto")||r.includes("constr")||"string"!=typeof i||!e.test(i))&&(a.R.debug("sanitize deleting dictionary entry:",r,i),delete t[r])}},"sanitizeDictionaryConfig"),V=(0,n.K)(t=>{if(a.R.debug("sanitizeDirective called with",t),"object"==typeof t&&null!=t){if(Array.isArray(t))return void t.forEach(t=>V(t));for(let e of Object.keys(t)){if(a.R.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!H.has(e)||null==t[e]){a.R.debug("sanitize deleting key: ",e),delete t[e];continue}if("object"==typeof t[e]){let r=G[e];r?X(t[e],r):(a.R.debug("sanitizing object",e),V(t[e]));continue}for(let r of["themeCSS","fontFamily","altFontFamily"])e.includes(r)&&(a.R.debug("sanitizing css option",e),t[e]=Z(t[e]))}if(t.themeVariables)for(let e of Object.keys(t.themeVariables)){let r=t.themeVariables[e];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}a.R.debug("After sanitization",t)}},"sanitizeDirective"),Z=(0,n.K)(t=>{let e=0,r=0;for(let i of t){if(e<r)return"{ /* ERROR: Unbalanced CSS */ }";"{"===i?e++:"}"===i&&r++}return e!==r?"{ /* ERROR: Unbalanced CSS */ }":t},"sanitizeCss"),Q=Object.freeze(Y),J=(0,n.K)(t=>!(!1===t||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),tt=m({},Q),te=[],tr=m({},Q),ti=(0,n.K)((t,e)=>{let r=m({},t),i={};for(let t of e)tc(t),i=m(i,t);if(r=m(r,i),i.theme&&i.theme in N){let t=m({},o),e=m(t.themeVariables||{},i.themeVariables);r.theme&&r.theme in N&&(r.themeVariables=N[r.theme].getThemeVariables(e))}return ty(tr=r),tr},"updateCurrentConfig"),to=(0,n.K)(t=>(tt=m({},Q),tt=m(tt,t),t.theme&&N[t.theme]&&(tt.themeVariables=N[t.theme].getThemeVariables(t.themeVariables)),ti(tt,te),tt),"setSiteConfig"),ta=(0,n.K)(t=>{o=m({},t)},"saveConfigFromInitialize"),tn=(0,n.K)(t=>(tt=m(tt,t),ti(tt,te),tt),"updateSiteConfig"),ts=(0,n.K)(()=>m({},tt),"getSiteConfig"),tl=(0,n.K)(t=>(ti(tr,[t]),th()),"setConfig"),th=(0,n.K)(()=>m({},tr),"getConfig"),tc=(0,n.K)(t=>{t&&(["secure",...tt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(a.R.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{"string"==typeof t[e]&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],"object"==typeof t[e]&&tc(t[e])}))},"sanitize"),td=(0,n.K)(t=>{V(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),te.push(t),ti(tt,te)},"addDirective"),tu=(0,n.K)((t=tt)=>{ti(t,te=[])},"reset"),tp={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},tg={},tf=(0,n.K)(t=>{tg[t]||(a.R.warn(tp[t]),tg[t]=!0)},"issueWarning"),ty=(0,n.K)(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&tf("LAZY_LOAD_DEPRECATED")},"checkConfig"),tm=(0,n.K)(()=>{let t={};for(let e of(o&&(t=m(t,o)),te))t=m(t,e);return t},"getUserDefinedConfig"),tx=(0,n.K)(t=>(t.flowchart?.htmlLabels!=void 0&&tf("FLOWCHART_HTML_LABELS_DEPRECATED"),J(t.htmlLabels??t.flowchart?.htmlLabels??!0)),"getEffectiveHtmlLabels"),tC=/^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s,tb=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2}
63)?/gi,tk=/\s*%%.*\n/gm,tw=class extends Error{static{(0,n.K)(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}},tT={},tB=(0,n.K)(function(t,e){for(let[r,{detector:i}]of(t=t.replace(tC,"").replace(tb,"").replace(tk,"\n"),Object.entries(tT)))if(i(t,e))return r;throw new tw(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),tv=(0,n.K)((...t)=>{for(let{id:e,detector:r,loader:i}of t)tS(e,r,i)},"registerLazyLoadedDiagrams"),tS=(0,n.K)((t,e,r)=>{tT[t]&&a.R.warn(`Detector with key ${t} already exists. Overwriting.`),tT[t]={detector:e,loader:r},a.R.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),t_=(0,n.K)(t=>tT[t].loader,"getDiagramLoader"),tA=/<br\s*\/?>/gi,tF=(0,n.K)(t=>t?tR(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),tL=(i=!1,()=>{i||(tM(),i=!0)});function tM(){let t="data-temp-href-target";f.A.addHook("beforeSanitizeAttributes",e=>{"A"===e.tagName&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),f.A.addHook("afterSanitizeAttributes",e=>{"A"===e.tagName&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),"_blank"===e.getAttribute("target")&&e.setAttribute("rel","noopener"))})}(0,n.K)(tM,"setupDompurifyHooks");var t$=(0,n.K)(t=>(tL(),f.A.sanitize(t)),"removeScript"),tE=(0,n.K)((t,e)=>{if(tx(e)){let r=e.securityLevel;"antiscript"===r||"strict"===r||"sandbox"===r?t=t$(t):"loose"!==r&&(t=tq(t=(t=(t=tR(t)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;")))}return t},"sanitizeMore"),tO=(0,n.K)((t,e)=>t?t=e.dompurifyConfig?f.A.sanitize(tE(t,e),e.dompurifyConfig).toString():f.A.sanitize(tE(t,e),{FORBID_TAGS:["style"]}).toString():t,"sanitizeText"),tD=(0,n.K)((t,e)=>"string"==typeof t?tO(t,e):t.flat().map(t=>tO(t,e)),"sanitizeTextOrArray"),tI=(0,n.K)(t=>tA.test(t),"hasBreaks"),tK=(0,n.K)(t=>t.split(tA),"splitBreaks"),tq=(0,n.K)(t=>t.replace(/#br#/g,"<br/>"),"placeholderToBreak"),tR=(0,n.K)(t=>t.replace(tA,"#br#"),"breakToPlaceholder"),tP=(0,n.K)(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e},"getUrl"),tz=(0,n.K)(function(...t){return Math.max(...t.filter(t=>!isNaN(t)))},"getMax"),tN=(0,n.K)(function(...t){return Math.min(...t.filter(t=>!isNaN(t)))},"getMin"),tj=(0,n.K)(function(t){let e=t.split(/(,)/),r=[];for(let t=0;t<e.length;t++){let i=e[t];if(","===i&&t>0&&t+1<e.length){let o=e[t-1],a=e[t+1];tU(o,a)&&(i=o+","+a,t++,r.pop())}r.push(tH(i))}return r.join("")},"parseGenericTypes"),tW=(0,n.K)((t,e)=>Math.max(0,t.split(e).length-1),"countOccurrence"),tU=(0,n.K)((t,e)=>{let r=tW(t,"~"),i=tW(e,"~");return 1===r&&1===i},"shouldCombineSets"),tH=(0,n.K)(t=>{let e=tW(t,"~"),r=!1;if(e<=1)return t;e%2!=0&&t.startsWith("~")&&(t=t.substring(1),r=!0);let i=[...t],o=i.indexOf("~"),a=i.lastIndexOf("~");for(;-1!==o&&-1!==a&&o!==a;)i[o]="<",i[a]=">",o=i.indexOf("~"),a=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),tY=(0,n.K)(()=>void 0!==window.MathMLElement,"isMathMLSupported"),tG=/\$\$(.*?)\$\$/g,tX=(0,n.K)(t=>(t.match(tG)?.length??0)>0,"hasKatex"),tV=(0,n.K)(async(t,e)=>{let r=document.createElement("div");r.innerHTML=await tQ(t,e),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";let i=document.querySelector("body");i?.insertAdjacentElement("beforeend",r);let o={width:r.clientWidth,height:r.clientHeight};return r.remove(),o},"calculateMathMLDimensions"),tZ=(0,n.K)(async(t,e)=>{if(!tX(t))return t;if(!(tY()||e.legacyMathML||e.forceLegacyMathML))return t.replace(tG,"MathML is unsupported in this environment.");{let{default:i}=await r.e("3535").then(r.bind(r,22130)),o=e.forceLegacyMathML||!tY()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(tA).map(t=>tX(t)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${t}</div>`:`<div>${t}</div>`).join("").replace(tG,(t,e)=>i.renderToString(e,{throwOnError:!0,displayMode:!0,output:o}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),tQ=(0,n.K)(async(t,e)=>tO(await tZ(t,e),e),"renderKatexSanitized"),tJ={getRows:tF,sanitizeText:tO,sanitizeTextOrArray:tD,hasBreaks:tI,splitBreaks:tK,lineBreakRegex:tA,removeScript:t$,getUrl:tP,evaluate:J,getMax:tz,getMin:tN},t0=(0,n.K)(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),t1=(0,n.K)(function(t,e,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${e}px;`)):(i.set("height",t),i.set("width",e)),i},"calculateSvgSizeAttrs"),t2=(0,n.K)(function(t,e,r,i){t0(t,t1(e,r,i))},"configureSvgSize"),t5=(0,n.K)(function(t,e,r,i){let o=e.node().getBBox(),n=o.width,s=o.height;a.R.info(`SVG bounds: ${n}x${s}`,o);let l=0,h=0;a.R.info(`Graph bounds: ${l}x${h}`,t),l=n+2*r,h=s+2*r,a.R.info(`Calculated bounds: ${l}x${h}`),t2(e,h,l,i);let c=`${o.x-r} ${o.y-r} ${o.width+2*r} ${o.height+2*r}`;e.attr("viewBox",c)},"setupGraphViewbox"),t3={};function t4(t){return[...t.cssRules].map(t=>t.cssText).join("\n")}(0,n.K)(t4,"cssStyleSheetToString");var t6=(0,n.K)((t,e,r,i)=>{let o="";return t in t3&&t3[t]?o=t3[t]({...r,svgId:i}):a.R.warn(`No theme found for ${t}`),`& {
64    font-family: ${r.fontFamily};
65    font-size: ${r.fontSize};
66    fill: ${r.textColor}
67  }
68  @keyframes edge-animation-frame {
69    from {
70      stroke-dashoffset: 0;
71    }
72  }
73  @keyframes dash {
74    to {
75      stroke-dashoffset: 0;
76    }
77  }
78  & .edge-animation-slow {
79    stroke-dasharray: 9,5 !important;
80    stroke-dashoffset: 900;
81    animation: dash 50s linear infinite;
82    stroke-linecap: round;
83  }
84  & .edge-animation-fast {
85    stroke-dasharray: 9,5 !important;
86    stroke-dashoffset: 900;
87    animation: dash 20s linear infinite;
88    stroke-linecap: round;
89  }
90  /* Classes common for multiple diagrams */
91
92  & .error-icon {
93    fill: ${r.errorBkgColor};
94  }
95  & .error-text {
96    fill: ${r.errorTextColor};
97    stroke: ${r.errorTextColor};
98  }
99
100  & .edge-thickness-normal {
101    stroke-width: ${r.strokeWidth??1}px;
102  }
103  & .edge-thickness-thick {
104    stroke-width: 3.5px
105  }
106  & .edge-pattern-solid {
107    stroke-dasharray: 0;
108  }
109  & .edge-thickness-invisible {
110    stroke-width: 0;
111    fill: none;
112  }
113  & .edge-pattern-dashed{
114    stroke-dasharray: 3;
115  }
116  .edge-pattern-dotted {
117    stroke-dasharray: 2;
118  }
119
120  & .marker {
121    fill: ${r.lineColor};
122    stroke: ${r.lineColor};
123  }
124  & .marker.cross {
125    stroke: ${r.lineColor};
126  }
127
128  & svg {
129    font-family: ${r.fontFamily};
130    font-size: ${r.fontSize};
131  }
132   & p {
133    margin: 0
134   }
135
136  ${o}
137  .node .neo-node {
138    stroke: ${r.nodeBorder};
139  }
140
141  [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
142    stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
143    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
144  }
145  [data-look="neo"].swimlane.cluster rect {
146    filter: none;
147  }
148
149
150  [data-look="neo"].node path {
151    stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
152    stroke-width: ${r.strokeWidth??1}px;
153  }
154
155  [data-look="neo"].node .outer-path {
156    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
157  }
158
159  [data-look="neo"].node .neo-line path {
160    stroke: ${r.nodeBorder};
161    filter: none;
162  }
163
164  [data-look="neo"].node circle{
165    stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
166    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
167  }
168
169  [data-look="neo"].node circle .state-start{
170    fill: #000000;
171  }
172
173  [data-look="neo"].icon-shape .icon {
174    fill: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
175    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
176  }
177
178    [data-look="neo"].icon-shape .icon-neo path {
179    stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
180    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
181  }
182
183  ${e}
184`},"getStyles"),t8=(0,n.K)((t,e)=>{void 0!==e&&(t3[t]=e)},"addStylesForDiagram"),t9=t6,t7={};(0,n.V)(t7,{clear:()=>eo,getAccDescription:()=>el,getAccTitle:()=>en,getDiagramTitle:()=>ec,setAccDescription:()=>es,setAccTitle:()=>ea,setDiagramTitle:()=>eh});var et="",ee="",er="",ei=(0,n.K)(t=>tO(t,th()),"sanitizeText"),eo=(0,n.K)(()=>{et="",er="",ee=""},"clear"),ea=(0,n.K)(t=>{et=ei(t).replace(/^\s+/g,"")},"setAccTitle"),en=(0,n.K)(()=>et,"getAccTitle"),es=(0,n.K)(t=>{er=ei(t).replace(/\n\s+/g,"\n")},"setAccDescription"),el=(0,n.K)(()=>er,"getAccDescription"),eh=(0,n.K)(t=>{ee=ei(t)},"setDiagramTitle"),ec=(0,n.K)(()=>ee,"getDiagramTitle"),ed=a.R,eu=a.H,ep=th,eg=tl,ef=Q,ey=(0,n.K)(t=>tO(t,ep()),"sanitizeText"),em=t5,ex=(0,n.K)(()=>t7,"getCommonDb"),eC={},eb=(0,n.K)((t,e,r)=>{eC[t]&&ed.warn(`Diagram with id ${t} already registered. Overwriting.`),eC[t]=e,r&&tS(t,r),t8(t,e.styles),e.injectUtils?.(ed,eu,ep,ey,em,ex(),()=>{})},"registerDiagram"),ek=(0,n.K)(t=>{if(t in eC)return eC[t];throw new ew(t)},"getDiagram"),ew=class extends Error{static{(0,n.K)(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}}},40790(t,e,r){"use strict";r.d(e,{lT:()=>tL,GZ:()=>tV,W6:()=>tU});var i=r(24695),o=r(41916),a=r(34599),n=r(31293),s=r(86827),l=r(98551),h=r(50048),c=r(47829);function d(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var u=d(),p={exec:()=>null};function g(t,e=""){let r="string"==typeof t?t:t.source,i={replace:(t,e)=>{let o="string"==typeof e?e:e.source;return o=o.replace(y.caret,"$1"),r=r.replace(t,o),i},getRegex:()=>new RegExp(r,e)};return i}var f=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),y={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>RegExp(`^( {0,3}${t})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),hrRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},m=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,x=/(?:[*+-]|\d{1,9}[.)])/,C=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,b=g(C).replace(/bull/g,x).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),k=g(C).replace(/bull/g,x).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),w=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,T=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,B=g(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",T).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),v=g(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,x).getRegex(),S="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",_=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,A=g("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>
184)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",_).replace("tag",S).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),F=g(w).replace("hr",m).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",S).getRegex(),L={blockquote:g(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",F).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:B,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:m,html:A,lheading:b,list:v,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:F,table:p,text:/^[^\n]+/},M=g("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",m).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",S).getRegex(),$={...L,lheading:k,table:M,paragraph:g(w).replace("hr",m).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",M).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",S).getRegex()},E={...L,html:g("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",_).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:p,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:g(w).replace("hr",m).replace("heading",` *#{1,6} *[^
185]`).replace("lheading",b).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},O=/^( {2,}|\\)\n(?!\s*$)/,D=/[\p{P}\p{S}]/u,I=/[\s\p{P}\p{S}]/u,K=/[^\s\p{P}\p{S}]/u,q=g(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,I).getRegex(),R=/(?!~)[\p{P}\p{S}]/u,P=g(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",f?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),z=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,N=g(z,"u").replace(/punct/g,D).getRegex(),j=g(z,"u").replace(/punct/g,R).getRegex(),W="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",U=g(W,"gu").replace(/notPunctSpace/g,K).replace(/punctSpace/g,I).replace(/punct/g,D).getRegex(),H=g(W,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,R).getRegex(),Y=g("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,K).replace(/punctSpace/g,I).replace(/punct/g,D).getRegex(),G=g(/\\(punct)/,"gu").replace(/punct/g,D).getRegex(),X=g(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),V=g(_).replace("(?:--\x3e|$)","--\x3e").getRegex(),Z=g("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",V).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Q=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,J=g(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Q).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),tt=g(/^!?\[(label)\]\[(ref)\]/).replace("label",Q).replace("ref",T).getRegex(),te=g(/^!?\[(ref)\](?:\[\])?/).replace("ref",T).getRegex(),tr=g("reflink|nolink(?!\\()","g").replace("reflink",tt).replace("nolink",te).getRegex(),ti=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,to={_backpedal:p,anyPunctuation:G,autolink:X,blockSkip:P,br:O,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:p,emStrongLDelim:N,emStrongRDelimAst:U,emStrongRDelimUnd:Y,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:J,nolink:te,punctuation:q,reflink:tt,reflinkSearch:tr,tag:Z,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:p},ta={...to,link:g(/^!?\[(label)\]\((.*?)\)/).replace("label",Q).getRegex(),reflink:g(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Q).getRegex()},tn={...to,emStrongRDelimAst:H,emStrongLDelim:j,url:g(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ti).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:g(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ti).getRegex()},ts={...tn,br:g(O).replace("{2,}","*").getRegex(),text:g(tn.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},tl={normal:L,gfm:$,pedantic:E},th={normal:to,gfm:tn,breaks:ts,pedantic:ta},tc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},td=t=>tc[t];function tu(t,e){if(e){if(y.escapeTest.test(t))return t.replace(y.escapeReplace,td)}else if(y.escapeTestNoEncode.test(t))return t.replace(y.escapeReplaceNoEncode,td);return t}function tp(t){try{t=encodeURI(t).replace(y.percentDecode,"%")}catch{return null}return t}function tg(t,e){let r=t.replace(y.findPipe,(t,e,r)=>{let i=!1,o=e;for(;--o>=0&&"\\"===r[o];)i=!i;return i?"|":" |"}).split(y.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(y.slashPipe,"|");return r}function tf(t,e,r){let i=t.length;if(0===i)return"";let o=0;for(;o<i;){let a=t.charAt(i-o-1);if(a!==e||r)if(a!==e&&r)o++;else break;else o++}return t.slice(0,i-o)}function ty(t,e,r,i,o){let a=e.href,n=e.title||null,s=t[1].replace(o.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:"!"===t[0].charAt(0)?"image":"link",raw:r,href:a,title:n,text:s,tokens:i.inl
185ineTokens(s)};return i.state.inLink=!1,l}var tm=class{options;rules;lexer;constructor(t){this.options=t||u}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:tf(t,`
186`)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let t=e[0],r=function(t,e,r){let i=t.match(r.other.indentCodeCompensation);if(null===i)return e;let o=i[1];return e.split(`
187`).map(t=>{let e=t.match(r.other.beginningSpace);if(null===e)return t;let[i]=e;return i.length>=o.length?t.slice(o.length):t}).join(`
188`)}(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:r}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let e=tf(t,"#");(this.options.pedantic||!e||this.rules.other.endingSpaceChar.test(e))&&(t=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:tf(e[0],`
189`)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let t=tf(e[0],`
190`).split(`
191`),r="",i="",o=[];for(;t.length>0;){let e=!1,a=[],n;for(n=0;n<t.length;n++)if(this.rules.other.blockquoteStart.test(t[n]))a.push(t[n]),e=!0;else if(e)break;else a.push(t[n]);t=t.slice(n);let s=a.join(`
192`),l=s.replace(this.rules.other.blockquoteSetextReplace,`
193    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
194${s}`:s,i=i?`${i}
195${l}`:l;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,o,!0),this.lexer.state.top=h,0===t.length)break;let c=o.at(-1);if(c?.type==="code")break;if(c?.type==="blockquote"){let e=c.raw+`
196`+t.join(`
197`),a=this.blockquote(e);o[o.length-1]=a,r=r.substring(0,r.length-c.raw.length)+a.raw,i=i.substring(0,i.length-c.text.length)+a.text;break}if(c?.type==="list"){let e=c.raw+`
198`+t.join(`
199`),a=this.list(e);o[o.length-1]=a,r=r.substring(0,r.length-c.raw.length)+a.raw,i=i.substring(0,i.length-c.raw.length)+a.raw,t=e.substring(o.at(-1).raw.length).split(`
200`);continue}}return{type:"blockquote",raw:r,tokens:o,text:i}}}list(t){let e=this.rules.block.list.exec(t);if(e){let r=e[1].trim(),i=r.length>1,o={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");let a=this.rules.other.listItemRegex(r),n=!1;for(;t;){let r=!1,i="",s="";if(!(e=a.exec(t))||this.rules.block.hr.test(t))break;i=e[0],t=t.substring(i.length);let l=e[2].split(`
201`,1)[0].replace(this.rules.other.listReplaceTabs,t=>" ".repeat(3*t.length)),h=t.split(`
202`,1)[0],c=!l.trim(),d=0;if(this.options.pedantic?(d=2,s=l.trimStart()):c?d=e[1].length+1:(d=(d=e[2].search(this.rules.other.nonSpaceChar))>4?1:d,s=l.slice(d),d+=e[1].length),c&&this.rules.other.blankLine.test(h)&&(i+=h+`
203`,t=t.substring(h.length+1),r=!0),!r){let e=this.rules.other.nextBulletRegex(d),r=this.rules.other.hrRegex(d),o=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),n=this.rules.other.htmlBeginRegex(d);for(;t;){let u=t.split(`
204`,1)[0],p;if(h=u,p=this.options.pedantic?h=h.replace(this.rules.other.listReplaceNesting,"  "):h.replace(this.rules.other.tabCharGlobal,"    "),o.test(h)||a.test(h)||n.test(h)||e.test(h)||r.test(h))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!h.trim())s+=`
205`+p.slice(d);else{if(c||l.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||o.test(l)||a.test(l)||r.test(l))break;s+=`
206`+h}c||h.trim()||(c=!0),i+=u+`
207`,t=t.substring(u.length+1),l=p.slice(d)}}o.loose||(n?o.loose=!0:this.rules.other.doubleBlankLine.test(i)&&(n=!0));let u=null,p;this.options.gfm&&(u=this.rules.other.listIsTask.exec(s))&&(p="[ ] "!==u[0],s=s.replace(this.rules.other.listReplaceTask,"")),o.items.push({type:"list_item",raw:i,task:!!u,checked:p,loose:!1,text:s,tokens:[]}),o.raw+=i}let s=o.items.at(-1);if(!s)return;s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),o.raw=o.raw.trimEnd();for(let t=0;t<o.items.length;t++)if(this.lexer.state.top=!1,o.items[t].tokens=this.lexer.blockTokens(o.items[t].text,[]),!o.loose){let e=o.items[t].tokens.filter(t=>
207"space"===t.type);o.loose=e.length>0&&e.some(t=>this.rules.other.anyLine.test(t.raw))}if(o.loose)for(let t=0;t<o.items.length;t++)o.items[t].loose=!0;return o}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:r,title:i}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let r=tg(e[1]),i=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
208`):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(r.length===i.length){for(let t of i)this.rules.other.tableAlignRight.test(t)?a.align.push("right"):this.rules.other.tableAlignCenter.test(t)?a.align.push("center"):this.rules.other.tableAlignLeft.test(t)?a.align.push("left"):a.align.push(null);for(let t=0;t<r.length;t++)a.header.push({text:r[t],tokens:this.lexer.inline(r[t]),header:!0,align:a.align[t]});for(let t of o)a.rows.push(tg(t,a.header.length).map((t,e)=>({text:t,tokens:this.lexer.inline(t),header:!1,align:a.align[e]})));return a}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let t=e[1].charAt(e[1].length-1)===`
209`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let e=tf(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{let t=function(t){if(-1===t.indexOf(")"))return -1;let e=0;for(let r=0;r<t.length;r++)if("\\"===t[r])r++;else if("("===t[r])e++;else if(")"===t[r]&&--e<0)return r;return e>0?-2:-1}(e[2]);if(-2===t)return;if(t>-1){let r=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,r).trim(),e[3]=""}}let r=e[2],i="";if(this.options.pedantic){let t=this.rules.other.pedanticHrefTitle.exec(r);t&&(r=t[1],i=t[3])}else i=e[3]?e[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?r.slice(1):r.slice(1,-1)),ty(e,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let t=e[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!t){let t=r[0].charAt(0);return{type:"text",raw:t,text:t}}return ty(r,t,r[0],this.lexer,this.rules)}}emStrong(t,e,r=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!(!i||i[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[2])||!r||this.rules.inline.punctuation.exec(r))){let r=[...i[0]].length-1,o,a,n=r,s=0,l="*"===i[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+r);null!=(i=l.exec(e));){if(!(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6]))continue;if(a=[...o].length,i[3]||i[4]){n+=a;continue}if((i[5]||i[6])&&r%3&&!((r+a)%3)){s+=a;continue}if((n-=a)>0)continue;a=Math.min(a,a+n+s);let e=[...i[0]][0].length,l=t.slice(0,r+i.index+e+a);if(Math.min(r,a)%2){let t=l.slice(1,-1);return{type:"em",raw:l,text:t,tokens:this.lexer.inlineTokens(t)}}let h=l.slice(2,-2);return{type:"strong",raw:l,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(t),i=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return r&&i&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){let e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let t,r;return r="@"===e[2]?"mailto:"+(t=e[1]):t=e[1],{type:"link",raw:e[0],text:t,href:r,tokens:[{type:"text",raw:t,text:t}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let t,r;if("@"===e[2])r="mailto:"+(t=e[0]);else{let i;do i=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(i!==e[0])t=e[0],r="www."===e[1]?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:t,href:r,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},tx=class t{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||u,this.options.tokenizer=this.options.tokenizer||new tm,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let e={other:y,block:tl.normal,inline:th.normal};this.options.pedantic?(e.block=tl.pedantic,e.inline=th.pedantic):this.options.gfm&&(e.block=tl.gfm,this.options.breaks?e.inline=th.breaks:e.inline=th.gfm),this.tokenizer.rules=e}static get rules(){return{block:tl,inline:th}}static lex(e,r){return new t(r).lex(e)}static lexInline(e,r){return new t(r).inlineTokens(e)}lex(t){t=t.replace(y.carriageReturn,`
210`),this.blockTokens(t,this.tokens);for(let t=0;
210t<this.inlineQueue.length;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,e=[],r=!1){for(this.options.pedantic&&(t=t.replace(y.tabCharGlobal,"    ").replace(y.spaceLine,""));t;){let i;if(this.options.extensions?.block?.some(r=>!!(i=r.call({lexer:this},t,e))&&(t=t.substring(i.raw.length),e.push(i),!0)))continue;if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length);let r=e.at(-1);1===i.raw.length&&void 0!==r?r.raw+=`
211`:e.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length);let r=e.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(`
212`)?"":`
213`)+i.raw,r.text+=`
214`+i.text,this.inlineQueue.at(-1).src=r.text):e.push(i);continue}if((i=this.tokenizer.fences(t))||(i=this.tokenizer.heading(t))||(i=this.tokenizer.hr(t))||(i=this.tokenizer.blockquote(t))||(i=this.tokenizer.list(t))||(i=this.tokenizer.html(t))){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length);let r=e.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(`
215`)?"":`
216`)+i.raw,r.text+=`
217`+i.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},e.push(i));continue}if((i=this.tokenizer.table(t))||(i=this.tokenizer.lheading(t))){t=t.substring(i.raw.length),e.push(i);continue}let o=t;if(this.options.extensions?.startBlock){let e=1/0,r=t.slice(1),i;this.options.extensions.startBlock.forEach(t=>{"number"==typeof(i=t.call({lexer:this},r))&&i>=0&&(e=Math.min(e,i))}),e<1/0&&e>=0&&(o=t.substring(0,e+1))}if(this.state.top&&(i=this.tokenizer.paragraph(o))){let a=e.at(-1);r&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
218`)?"":`
219`)+i.raw,a.text+=`
220`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):e.push(i),r=o.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length);let r=e.at(-1);r?.type==="text"?(r.raw+=(r.raw.endsWith(`
221`)?"":`
222`)+i.raw,r.text+=`
223`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):e.push(i);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw Error(e)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let r,i=t,o=null;if(this.tokens.links){let t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(i));)t.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.anyPunctuation.exec(i));)i=i.slice(0,o.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(i));)r=o[2]?o[2].length:0,i=i.slice(0,o.index+r)+"["+"a".repeat(o[0].length-r-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let a=!1,n="";for(;t;){let r;if(a||(n=""),a=!1,this.options.extensions?.inline?.some(i=>!!(r=i.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0)))continue;if((r=this.tokenizer.escape(t))||(r=this.tokenizer.tag(t))||(r=this.tokenizer.link(t))){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length);let i=e.at(-1);"text"===r.type&&i?.type==="text"?(i.raw+=r.raw,i.text+=r.text):e.push(r);continue}if((r=this.tokenizer.emStrong(t,i,n))||(r=this.tokenizer.codespan(t))||(r=this.tokenizer.br(t))||(r=this.tokenizer.del(t))||(r=this.tokenizer.autolink(t))||!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),e.push(r);continue}let o=t;if(this.options.extensions?.startInline){let e=1/0,r=t.slice(1),i;this.options.extensions.startInline.forEach(t=>{"number"==typeof(i=t.call({lexer:this},r))&&i>=0&&(e=Math.min(e,i))}),e<1/0&&e>=0&&(o=t.substring(0,e+1))}if(r=this.tokenizer.inlineText(o)){t=t.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(n=r.raw.slice(-1)),a=!0;let i=e.at(-1);i?.type==="text"?(i.raw+=r.raw,i.text+=r.text):e.push(r);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw Error(e)}}return e}},tC=class{options;parser;constructor(t){this.options=t||u}space(t){return""}code({text:t,lang:e,escaped:r}){let i=(e||"").match(y.notSpaceStart)?.[0],o=t.replace(y.endingNewline,"")+`
224`;return i?'<pre><code class="language-'+tu(i)+'">'+(r?o:tu(o,!0))+`</code></pre>
225`:"<pre><code>"+(r?o:tu(o,!0))+`</code></pre>
226`}blockquote({tokens:t}){return`<blockquote>
227${this.parser.parse(t)}</blockquote>
228`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
229`}hr(t){return`<hr>
230`}list(t){let e=t.ordered,r=t.start,i="";for(let e=0;e<t.items.length;e++){let r=t.items[e];i+=this.listitem(r)}let o=e?"ol":"ul";return"<"+o+(e&&1!==r?' start="'+r+'"':"")+`>
231`+i+"</"+o+`>
232`}listitem(t){let e="";if(t.task){let r=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=r+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=r+" "+tu(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):e+=r+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>
233`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
234`}table(t){let e="",r="";for(let e=0;e<t.header.length;e++)r+=this.tablecell(t.header[e]);e+=this.tablerow({text:r});let i="";for(let e=0;e<t.rows.length;e++){let o=t.rows[e];r="";for(let t=0;t<o.length;t++)r+=this.tablecell(o[t]);i+=this.tablerow({text:r})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
235<thead>
236`+e+`</thead>
237`+i+`</table>
238`}tablerow({text:t}){return`<tr>
239${t}</tr>
240`}tablecell(t){let e=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>
241`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${tu(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:r}){let i=this.parser.parseInline(r),o=tp(t);if(null===o)return i;let a='<a href="'+(t=o)+'"';return e&&(a+=' title="'+tu(e)+'"'),a+=">"+i+"</a>"}image({href:t,title:e,text:r,tokens:i}){i&&(r=this.parser.parseInline(i,this.parser.textRenderer));let o=tp(t);if(null===o)return tu(r);t=o;let a=`<img src="${t}" alt="${r}"`;return e&&(a+=` title="${tu(e)}"`),a+=">"}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:tu(t.text)}},tb=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},tk=class t{options;renderer;textRenderer;constructor(t){this.options=t||u,this.options.renderer=this.options.renderer||new tC,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new tb}static parse(e,r){return new t(r).parse(e)}static parseInline(e,r){return new t(r).parseInline(e)}parse(t,e=!0){let r="";for(let i=0;i<t.length;i++){let o=t[i];if(this.options.extensions?.renderers?.[o.type]){let t=this.options.extensions.renderers[o.type].call({parser:this},o);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(o.type)){r+=t||"";continue}}switch(o.type){case"space":r+=this.renderer.space(o);continue;case"hr":r+=this.renderer.hr(o);continue;case"heading":r+=this.renderer.heading(o);continue;case"code":r+=this.renderer.code(o);continue;case"table":r+=this.renderer.table(o);continue;
241case"blockquote":r+=this.renderer.blockquote(o);continue;case"list":r+=this.renderer.list(o);continue;case"html":r+=this.renderer.html(o);continue;case"def":r+=this.renderer.def(o);continue;case"paragraph":r+=this.renderer.paragraph(o);continue;case"text":{let a=o,n=this.renderer.text(a);for(;i+1<t.length&&"text"===t[i+1].type;)a=t[++i],n+=`
242`+this.renderer.text(a);e?r+=this.renderer.paragraph({type:"paragraph",raw:n,text:n,tokens:[{type:"text",raw:n,text:n,escaped:!0}]}):r+=n;continue}default:{let t='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return r}parseInline(t,e=this.renderer){let r="";for(let i=0;i<t.length;i++){let o=t[i];if(this.options.extensions?.renderers?.[o.type]){let t=this.options.extensions.renderers[o.type].call({parser:this},o);if(!1!==t||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){r+=t||"";continue}}switch(o.type){case"escape":case"text":r+=e.text(o);break;case"html":r+=e.html(o);break;case"link":r+=e.link(o);break;case"image":r+=e.image(o);break;case"strong":r+=e.strong(o);break;case"em":r+=e.em(o);break;case"codespan":r+=e.codespan(o);break;case"br":r+=e.br(o);break;case"del":r+=e.del(o);break;default:{let t='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return r}},tw=class{options;block;constructor(t){this.options=t||u}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?tx.lex:tx.lexInline}provideParser(){return this.block?tk.parse:tk.parseInline}},tT=new class{defaults=d();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=tk;Renderer=tC;TextRenderer=tb;Lexer=tx;Tokenizer=tm;Hooks=tw;constructor(...t){this.use(...t)}walkTokens(t,e){let r=[];for(let i of t)switch(r=r.concat(e.call(this,i)),i.type){case"table":for(let t of i.header)r=r.concat(this.walkTokens(t.tokens,e));for(let t of i.rows)for(let i of t)r=r.concat(this.walkTokens(i.tokens,e));break;case"list":r=r.concat(this.walkTokens(i.items,e));break;default:{let t=i;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(i=>{let o=t[i].flat(1/0);r=r.concat(this.walkTokens(o,e))}):t.tokens&&(r=r.concat(this.walkTokens(t.tokens,e)))}}return r}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(t=>{let r={...t};if(r.async=this.defaults.async||r.async||!1,t.extensions&&(t.extensions.forEach(t=>{if(!t.name)throw Error("extension name required");if("renderer"in t){let r=e.renderers[t.name];r?e.renderers[t.name]=function(...e){let i=t.renderer.apply(this,e);return!1===i&&(i=r.apply(this,e)),i}:e.renderers[t.name]=t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw Error("extension level must be 'block' or 'inline'");let r=e[t.level];r?r.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),r.extensions=e),t.renderer){let e=this.defaults.renderer||new tC(this.defaults);for(let r in t.renderer){if(!(r in e))throw Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let i=t.renderer[r],o=e[r];e[r]=(...t)=>{let r=i.apply(e,t);return!1===r&&(r=o.apply(e,t)),r||""}}r.renderer=e}if(t.tokenizer){let e=this.defaults.tokenizer||new tm(this.defaults);for(let r in t.tokenizer){if(!(r in e))throw Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let i=t.tokenizer[r],o=e[r];e[r]=(...t)=>{let r=i.apply(e,t);return!1===r&&(r=o.apply(e,t)),r}}r.tokenizer=e}if(t.hooks){let e=this.defaults.hooks||new tw;for(let r in t.hooks){if(!(r in e))throw Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let i=t.hooks[r],o=e[r];tw.passThroughHooks.has(r)?e[r]=t=>{if(this.defaults.async&&tw.passThroughHooksRespectAsync.has(r))return(async()=>{let r=await i.call(e,t);return o.call(e,r)})();let a=i.call(e,t);return o.call(e,a)}:e[r]=(...t)=>{if(this.defaults.async)return(async()=>{let r=await i.apply(e,t);return!1===r&&(r=await o.apply(e,t)),r})();let r=i.apply(e,t);return!1===r&&(r=o.apply(e,t)),r}}r.hooks=e}if(t.walkTokens){let e=this.defaults.walkTokens,i=t.walkTokens;r.walkTokens=function(t){let r=[];return r.push(i.call(this,t)),e&&(r=r.concat(e.call(this,t))),r}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return tx.lex(t,e??this.defaults)}parser(t,e){return tk.parse(t,e??this.defaults)}parseMarkdown(t){return(e,r)=>{let i={...r},o={...this.defaults,...i},a=this.onError(!!o.silent,!!o.async);if(!0===this.defaults.async&&!1===i.async)return a(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||null===e)return a(Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=t),o.async)return(async()=>{let r=o.hooks?await o.hooks.preprocess(e):e,i=await (o.hooks?await o.hooks.provideLexer():t?tx.lex:tx.lexInline)(r,o),a=o.hooks?await o.hooks.processAllTokens(i):i;o.walkTokens&&await Promise.all(this.walkTokens(a,o.walkTokens));let n=await (o.hooks?await o.hooks.provideParser():t?tk.parse:tk.parseInline)(a,o);return o.hooks?await o.hooks.postprocess(n):n})().catch(a);try{o.hooks&&(e=o.hooks.preprocess(e));let r=(o.hooks?o.hooks.provideLexer():t?tx.lex:tx.lexInline)(e,o);o.hooks&&(r=o.hooks.processAllTokens(r)),o.walkTokens&&this.walkTokens(r,o.walkTokens);let i=(o.hooks?o.hooks.provideParser():t?tk.parse:tk.parseInline)(r,o);return o.hooks&&(i=o.hooks.postprocess(i)),i}catch(t){return a(t)}}}onError(t,e){return r=>{if(r.message+=`
243Please report this to https://github.com/markedjs/marked.`,t){let t="<p>An error occurred:</p><pre>"+tu(r.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(r);throw r}}};function tB(t,e){return tT.parse(t,e)}tB.options=tB.setOptions=function(t){return tT.setOptions(t),tB.defaults=tT.defaults,u=tB.defaults,tB},tB.getDefaults=d,tB.defaults=u,tB.use=function(...t){return tT.use(...t),tB.defaults=tT.defaults,u=tB.defaults,tB},tB.walkTokens=function(t,e){return tT.walkTokens(t,e)},tB.parseInline=tT.parseInline,tB.Parser=tk,tB.parser=tk.parse,tB.Renderer=tC,tB.TextRenderer=tb,tB.Lexer=tx,tB.lexer=tx.lex,tB.Tokenizer=tm,tB.Hooks=tw,tB.parse=tB,tB.options,tB.setOptions,tB.use,tB.walkTokens,tB.parseInline,tk.parse,tx.lex;var tv=r(84146),tS="u">typeof performance&&"function"==typeof performance.now,t_=(0,s.K)(()=>tS?performance.now():0,"now"),tA="\u{1F9DC} ",tF={parse:"tertiary",prepare:"secondary",measure:"primary",layout:"primary-dark",layoutCore:"error",draw:"primary-light",paint:"secondary-dark",serialize:"tertiary-dark",render:"primary-light"};(class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}static{(0,s.K)(this,"Profiler")}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(t){this.enabled&&(this.roots=[],this.stack=[],this.buckets={},this.begin(t))}tickSync(t,e){if(!this.enabled)return e();let r=t_();try{return e()}finally{this.buckets[t]=(this.buckets[t]??0)+(t_()-r)}}async tick(t,e){if(!this.enabled)return e();let r=t_();try{return await e()}finally{this.buckets[t]=(this.buckets[t]??0)+(t_()-r)}}stop(){if(!this.enabled)return;for(;this.stack.length>0;)this.end();let t=this.roots.at(-1),e=this.runLabel??t?.name;return t&&(this.records.push({label:e??t.name,tree:t,buckets:{...this.buckets}}),this.records.length>this.maxRecords&&this.records.splice(0,this.records.length-this.maxRecords),this.autoPrint&&this.printSummary(t,e)),this.runLabel=void 0,t}begin(t){if(!this.enabled)return;let e={name:t,start:t_(),duration:-1,children:[]},r=this.stack.at(-1);if(r?r.children.push(e):this.roots.push(e),this.stack.push(e),tS&&"function"==typeof performance.mark)try{performance.mark(`${tA}${t} \u25B6`)}catch{}}end(){if(!this.enabled)return;let t=this.stack.pop();if(!t)return;let e=t_();if(t.duration=e-t.start,tS&&"function"==typeof performance.measure)try{performance.measure(`${tA}${t.name}`,{start:t.start,end:e,detail:{devtools:{dataType:"track-entry",track:"Mermaid render",trackGroup:"Mermaid",color:tF[t.name]??"primary",tooltipText:`${t.name} \u2014 ${t.duration.toFixed(1)} ms`}}})}catch{}}async span(t,e){if(!this.enabled)return e();this.begin(t);try{return await e()}finally{this.end()}}report(){return this.records.at(-1)?.tree??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(t=this.report(),e){if(!t)return;let r=t.duration,i=e&&e!==t.name?`${t.name} [${e}]`:t.name,o=["ms        %    phase"],a=(0,s.K)((t,e)=>{let i="  ".repeat(e),n=t.duration.toFixed(1).padStart(8),s=r>0?`${(t.duration/r*100).toFixed(0).padStart(3)}%`:"   -";for(let r of(o.push(`${n}  ${s}  ${i}${t.name}`),t.children))a(r,e+1);if(t.children.length>0){let e=t.children.reduce((t,e)=>t+e.duration,0),r=t.duration-e;if(r>.5){let t=r.toFixed(1).padStart(8);o.push(`${t}       ${i}  (self)`)}}},"walk");a(t,0);let n=Object.keys(this.buckets);if(n.length>0)for(let t of(o.push("\u2014\u2014 buckets (summed) \u2014\u2014"),n))o.push(`${this.buckets[t].toFixed(1).padStart(8)}       ${t}`);console.log(`${tA}mermaid render profile \xb7 ${i}
244${o.join("\n")}`)}}),globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"};var tL=l.extend({raf(t){"function"==typeof queueMicrotask?queueMicrotask(t):setTimeout(t,0)}}).extend(h);function tM(t,{markdownAutoWrap:e}){let r=t.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n");return(0,tv.T)(r)}function t$(t){return t.split(/\\n|\n|<br\s*\/?>/gi).map(t=>t.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(t=>({content:t,type:"normal"}))??[])}function tE(t,e={}){let r=tM(t,e),i=tB.lexer(r),o=[[]],a=0;function n(t,e="normal"){"text"===t.type?t.text.split("\n").forEach((t,r)=>{0!==r&&(a++,o.push([])),t.split(" ").forEach(t=>{(t=t.replace(/&#39;/g,"'"))&&o[a].push({content:t,type:e})})}
244):"strong"===t.type||"em"===t.type?t.tokens.forEach(e=>{n(e,t.type)}):"html"===t.type&&o[a].push({content:t.text,type:"normal"})}return(0,s.K)(n,"processNode"),i.forEach(t=>{"paragraph"===t.type?t.tokens?.forEach(t=>{n(t)}):"html"===t.type?o[a].push({content:t.text,type:"normal"}):o[a].push({content:t.raw,type:"normal"})}),o}function tO(t){return t?`<p>${t.replace(/\\n|\n/g,"<br />")}</p>`:""}function tD(t,{markdownAutoWrap:e}={}){let r=tB.lexer(t);function i(t){if("text"===t.type)return!1===e?t.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):t.text.replace(/\n */g,"<br/>");if("strong"===t.type)return`<strong>${t.tokens?.map(i).join("")}</strong>`;if("em"===t.type)return`<em>${t.tokens?.map(i).join("")}</em>`;if("paragraph"===t.type)return`<p>${t.tokens?.map(i).join("")}</p>`;if("space"===t.type)return"";else if("html"===t.type)return`${t.text}`;else if("escape"===t.type)return t.text;return n.R.warn(`Unsupported markdown: ${t.type}`),t.raw}return(0,s.K)(i,"output"),r.map(i).join("")}function tI(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(t=>t.segment):[...t]}function tK(t,e){return tq(t,[],tI(e.content),e.type)}function tq(t,e,r,i){if(0===r.length)return[{content:e.join(""),type:i},{content:"",type:i}];let[o,...a]=r,n=[...e,o];return t([{content:n.join(""),type:i}])?tq(t,n,a,i):(0===e.length&&o&&(e.push(o),r.shift()),[{content:e.join(""),type:i},{content:r.join(""),type:i}])}function tR(t,e){if(t.some(({content:t})=>t.includes("\n")))throw Error("splitLineToFitWidth does not support newlines in the line");return tP(t,e)}function tP(t,e,r=[],i=[]){if(0===t.length)return i.length>0&&r.push(i),r.length>0?r:[];let o="";" "===t[0].content&&(o=" ",t.shift());let a=t.shift()??{content:" ",type:"normal"},n=[...i];if(""!==o&&n.push({content:o,type:"normal"}),n.push(a),e(n))return tP(t,e,r,n);if(i.length>0)r.push(i),t.unshift(a);else if(a.content){let[i,o]=tK(e,a);r.push([i]),o.content&&t.unshift(o)}return tP(t,e,r)}function tz(t,e){e&&t.attr("style",e)}async function tN(t,e,r,i,o=!1,n=(0,a.zj)()){let s=t.append("foreignObject");s.attr("width",`${Math.min(10*r,16384)}px`),s.attr("height",`${Math.min(10*r,16384)}px`);let l=s.append("xhtml:div"),h=(0,a.Wi)(e.label)?await (0,a.dj)(e.label.replace(a.Y2.lineBreakRegex,"\n"),n):(0,a.jZ)(e.label,n),c=e.isNode?"nodeLabel":"edgeLabel",d=l.append("span");return d.html(h),tz(d,e.labelStyle),d.attr("class",`${c} ${i}`),tz(l,e.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),r!==1/0&&(l.style("max-width",r+"px"),l.style("text-align","center")),l.attr("xmlns","http://www.w3.org/1999/xhtml"),o&&l.attr("class","labelBkg"),(await tL.measure(()=>l.node().getBoundingClientRect())).width===r&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",r+"px")),s.node()}function tj(t,e,r,i=!1){let o=t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em");return i&&o.attr("text-anchor","middle"),o}function tW(t,e,r){let i=t.append("text"),o=tj(i,1,e);tG(o,r);let a=o.node().getComputedTextLength();return i.remove(),a}function tU(t,e,r){let i=t.append("text"),o=tj(i,1,e);tG(o,[{content:r,type:"normal"}]);let a=o.node()?.getBoundingClientRect();return a&&i.remove(),a}function tH(t,e,r,i=!1,o=!1){let a=e.append("g"),n=a.insert("rect").attr("class","background").attr("style","stroke: none"),l=a.append("text").attr("y","-10.1");o&&l.attr("text-anchor","middle");let h=0;for(let e of r){let r=(0,s.K)(e=>tW(a,1.1,e)<=t,"checkWidth");for(let t of r(e)?[e]:tR(e,r))tG(tj(l,h,1.1,o),t),h++}if(!i)return l.node();{let t=l.node().getBBox();return n.attr("x",t.x-2).attr("y",t.y-2).attr("width",t.width+4).attr("height",t.height+4),a.node()}}function tY(t){return t.replace(/&(amp|lt|gt);/g,(t,e)=>{switch(e){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return t}})}function tG(t,e){t.text(""),e.forEach((e,r)=>{let i=t.append("tspan").attr("font-style","em"===e.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===e.type?"bold":"normal");0===r?i.text(tY(e.content)):i.text(" "+tY(e.content))})}async function tX(t,e={}){let r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(t,o,n)=>(r.push((async()=>{let r=`${o}:${n}`;return await (0,i.dn)(r)?await (0,i.WY)(r,void 0,{class:"label-icon"}):`<i class='${(0,a.jZ)(t,e).replace(":"," ")}'></i>`})()),t));let o=await Promise.all(r);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>o.shift()??"")}(0,s.K)(tM,"preprocessMarkdown"),(0,s.K)(t$,"nonMarkdownToLines"),(0,s.K)(tE,"markdownToLines"),(0,s.K)(tO,"nonMarkdownToHTML"),(0,s.K)(tD,"markdownToHTML"),(0,s.K)(tI,"splitTextToChars"),(0,s.K)(tK,"splitWordToFitWidth"),(0,s.K)(tq,"splitWordToFitWidthRecursion"),(0,s.K)(tR,"splitLineToFitWidth"),(0,s.K)(tP,"splitLineToFitWidthRecursion"),(0,s.K)(tz,"applyStyle"),(0,s.K)(tN,"addHtmlSpan"),(0,s.K)(tj,"createTspan"),(0,s.K)(tW,"computeWidthOfText"),
244(0,s.K)(tU,"computeDimensionOfText"),(0,s.K)(tH,"createFormattedText"),(0,s.K)(tY,"decodeHTMLEntities"),(0,s.K)(tG,"updateTextContentAndStyles"),(0,s.K)(tX,"replaceIconSubstring");var tV=(0,s.K)(async(t,e="",{style:r="",isTitle:i=!1,classes:s="",useHtmlLabels:l=!0,markdown:h=!0,isNode:d=!0,width:u=200,addSvgBackground:p=!1}={},g)=>{if(n.R.debug("XYZ createText",e,r,i,s,l,d,"addSvgBackground: ",p),l){let i=h?tD(e,g):tO(e),n=await tX((0,o.Sm)(i),g),l=e.replace(/\\\\/g,"\\"),c={isNode:d,label:(0,a.Wi)(e)?l:n,labelStyle:r.replace("fill:","color:")};return await tN(t,c,u,s,p,g)}{let a=(0,o.Sm)(e.replace(/<br\s*\/?>/g,"<br/>")),n=tH(u,t,h?tE(a.replace("<br>","<br/>"),g):t$(a),!!e&&p,!d);if(d){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));let t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,c.Ltv)(n).attr("style",t)}else{let t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");(0,c.Ltv)(n).select("rect").attr("style",t.replace(/background:/g,"fill:"));let e=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,c.Ltv)(n).select("text").attr("style",e)}return i?(0,c.Ltv)(n).selectAll("tspan.text-outer-tspan").classed("title-row",!0):(0,c.Ltv)(n).selectAll("tspan.text-outer-tspan").classed("row",!0),n}},"createText")},96865(t,e,r){"use strict";r.d(e,{IU:()=>d,Oi:()=>s,U7:()=>c,U_:()=>u,on:()=>h});var i=r(48159),o=r(41916),a=r(31293),n=r(86827),s=(0,n.K)(({flowchart:t})=>{let e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:e+r}},"getSubGraphTitleMargins"),l=new Map;async function h(t,e,r){let a,n;"rect"===e.shape&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");let s=e.shape?i.nq[e.shape]:void 0;if(!s)throw Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let i;"sandbox"===r.config.securityLevel?i="_top":e.linkTarget&&(i=e.linkTarget||"_blank"),a=t.insert("svg:a").attr("xlink:href",e.link).attr("target",i??null),n=await s(a,e,r)}else a=n=await s(t,e,r);return a.attr("data-look",(0,o.KL)(e.look)),e.tooltip&&n.attr("title",e.tooltip),l.set(e.id,a),e.haveCallback&&a.attr("class",a.attr("class")+" clickable"),a}(0,n.K)(h,"insertNode");var c=(0,n.K)((t,e)=>{l.set(e.id,t)},"setNodeElem"),d=(0,n.K)(()=>{l.clear()},"clear"),u=(0,n.K)(t=>{let e=l.get(t.id);a.R.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},"positionNode")},24980(t,e,r){"use strict";r.d(e,{I:()=>b,U:()=>C});var i=r(96865),o=r(48159),a=r(44505),n=r(40790),s=r(34599),l=r(31293),h=r(86827),c=r(47829),d=r(52274),u=(0,h.K)(async(t,e)=>{let r,i,h=(0,s.D7)(),{themeVariables:u,handDrawnSeed:p}=h,{clusterBkg:g,clusterBorder:f}=u,{labelStyles:y,nodeStyles:m,borderStyles:x,backgroundStyles:C}=(0,a.GX)(e),b=t.insert("g").attr("class","cluster swimlane "+(e.cssClasses||"")).attr("id",e.id).attr("data-id",e.id).attr("data-et","cluster").attr("data-look",e.look),k=(0,s._3)(h.flowchart.htmlLabels),w="LR"===e.direction,T=b.insert("g").attr("class","cluster-label swimlane-label"),B=await (0,n.GZ)(T,e.label,{style:e.labelStyle,useHtmlLabels:k,isNode:!0,width:e.width}),v=B.getBBox();if(k){let t=B.children[0],e=(0,c.Ltv)(B);v=t.getBoundingClientRect(),e.attr("width",v.width),e.attr("height",v.height)}let S=e.padding??0,_=e.width<=v.width+S?v.width+S:e.width;e.width<=v.width+S?e.diff=(_-e.width)/2-S:e.diff=-S;let A=e.height,F=e.y-A/2,L=e.y+A/2,M=e.x-_/2,$=void 0!==e.swimlaneContentTop?e.swimlaneContentTop:F+A/3,E=4*!!w,O=v.height+2*E;if(w){let t=Math.max(O,v.height+2*E),o=M+t,n=Math.max(0,_-t);if("handDrawn"===e.look){let s=d.A.svg(b),l=(0,a.Fr)(e,{roughness:.7,fill:g,stroke:f,fillWeight:3,seed:p}),h=(0,a.Fr)(e,{roughness:.7,fill:"none",stroke:f,seed:p}),c=s.rectangle(M,F,t,A,l);r=b.insert(()=>c,":first-child");let u=s.rectangle(o,F,n,A,h);i=b.insert(()=>u,":first-child"),r.select("path:nth-child(2)").attr("style",x.join(";")),r.select("path").attr("style",C.join(";").replace("fill","stroke"))}else r=b.insert("rect",":first-child"),i=b.insert("rect",":first-child"),r.attr("class","swimlane-title").attr("style",m).attr("x",M).attr("y",F).attr("width",t).attr("height",A).attr("fill",g).attr("stroke",f),i.attr("class","swimlane-body").attr("style",m).attr("x",o).attr("y",F).attr("width",n).attr("height",A).attr("fill","none").attr("stroke",f);let s=M+t/2,l=e.y;T.attr("transform",`translate(${s}, ${l}) rotate(-90) translate(${-v.width/2}, ${-v.height/2})`)}
244else{let t=Math.min(O,Math.max(0,$-F)),o=F+t,n=Math.max(0,L-o),s=e.x-_/2;if("handDrawn"===e.look){let l=d.A.svg(b),h=(0,a.Fr)(e,{roughness:.7,fill:g,stroke:f,fillWeight:3,seed:p}),c=(0,a.Fr)(e,{roughness:.7,fill:"none",stroke:f,seed:p}),u=l.rectangle(s,F,_,t,h);r=b.insert(()=>u,":first-child");let y=l.rectangle(s,o,_,n,c);i=b.insert(()=>y,":first-child"),r.select("path:nth-child(2)").attr("style",x.join(";")),r.select("path").attr("style",C.join(";").replace("fill","stroke"))}else r=b.insert("rect",":first-child"),i=b.insert("rect",":first-child"),r.attr("class","swimlane-title").attr("style",m).attr("x",s).attr("y",F).attr("width",_).attr("height",t).attr("fill",g).attr("stroke",f),i.attr("class","swimlane-body").attr("style",m).attr("x",s).attr("y",o).attr("width",_).attr("height",n).attr("fill","none").attr("stroke",f);let l=e.x-v.width/2,h=F+(t-v.height)/2;T.attr("transform",`translate(${l}, ${h})`)}if(l.R.trace("Swimlane data ",e,JSON.stringify(e)),y){let t=T.select("span");t&&t.attr("style",y)}return e.offsetX=0,e.width=_,e.height=A,e.offsetY=v.height-S/2,e.intersect=function(t){return(0,o.nM)(e,t)},{cluster:b,labelBBox:v}},"swimlane"),p=(0,h.K)(async(t,e)=>{let r,h;l.R.info("Creating subgraph rect for ",e.id,e);let u=(0,s.D7)(),{themeVariables:p,handDrawnSeed:g}=u,{clusterBkg:f,clusterBorder:y}=p,{labelStyles:m,nodeStyles:x,borderStyles:C,backgroundStyles:b}=(0,a.GX)(e),k=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),w=(0,s.E)(u),T=k.insert("g").attr("class","cluster-label "),B=(r="markdown"===e.labelType?await (0,n.GZ)(T,e.label,{style:e.labelStyle,useHtmlLabels:w,isNode:!0,width:e.width}):await (0,o.DA)(T,e.label,e.labelStyle||"",!1,!0)).getBBox();if((0,s.E)(u)){let t=r.children[0],e=(0,c.Ltv)(r);B=t.getBoundingClientRect(),e.attr("width",B.width),e.attr("height",B.height)}let v=e.width<=B.width+e.padding?B.width+e.padding:e.width;e.width<=B.width+e.padding?e.diff=(v-e.width)/2-e.padding:e.diff=-e.padding;let S=e.height,_=e.x-v/2,A=e.y-S/2;if(l.R.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=d.A.svg(k),r=(0,a.Fr)(e,{roughness:.7,fill:f,stroke:y,fillWeight:3,seed:g}),i=t.path((0,o.FA)(_,A,v,S,0),r);(h=k.insert(()=>(l.R.debug("Rough node insert CXC",i),i),":first-child")).select("path:nth-child(2)").attr("style",C.join(";")),h.select("path").attr("style",b.join(";").replace("fill","stroke"))}else(h=k.insert("rect",":first-child")).attr("style",x).attr("rx",e.rx).attr("ry",e.ry).attr("x",_).attr("y",A).attr("width",v).attr("height",S);let{subGraphTitleTopMargin:F}=(0,i.Oi)(u);if(T.attr("transform",`translate(${e.x-B.width/2}, ${e.y-e.height/2+F})`),m){let t=T.select("span");t&&t.attr("style",m)}let L=h.node().getBBox();return e.offsetX=0,e.width=L.width,e.height=L.height,e.offsetY=B.height-e.padding/2,e.intersect=function(t){return(0,o.nM)(e,t)},{cluster:k,labelBBox:B}},"rect"),g=(0,h.K)((t,e)=>{let r=t.insert("g").attr("class","note-cluster").attr("id",e.domId),i=r.insert("rect",":first-child"),a=0*e.padding,n=a/2;i.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-n).attr("y",e.y-e.height/2-n).attr("width",e.width+a).attr("height",e.height+a).attr("fill","none");let s=i.node().getBBox();return e.width=s.width,e.height=s.height,e.intersect=function(t){return(0,o.nM)(e,t)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),f=(0,h.K)(async(t,e)=>{let r,i=(0,s.D7)(),{themeVariables:a,handDrawnSeed:n}=i,{altBackground:l,compositeBackground:h,compositeTitleBackground:u,nodeBorder:p}=a,g=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look),f=g.insert("g",":first-child"),y=g.insert("g").attr("class","cluster-label"),m=g.append("rect"),x=await (0,o.DA)(y,e.label,e.labelStyle,void 0,!0),C=x.getBBox();if((0,s.E)(i)){let t=x.children[0],e=(0,c.Ltv)(x);C=t.getBoundingClientRect(),e.attr("width",C.width),e.attr("height",C.height)}let b=0*e.padding,k=(e.width<=C.width+e.padding?C.width+e.padding:e.width)+b;e.width<=C.width+e.padding?e.diff=(k-e.width)/2-e.padding:e.diff=-e.padding;let w=e.height+b,T=e.height+b-C.height-6,B=e.x-k/2,v=e.y-w/2;e.width=k;let S=e.y-e.height/2-b/2+C.height+2;
244if("handDrawn"===e.look){let t=e.cssClasses.includes("statediagram-cluster-alt"),i=d.A.svg(g),a=e.rx||e.ry?i.path((0,o.FA)(B,v,k,w,10),{roughness:.7,fill:u,fillStyle:"solid",stroke:p,seed:n}):i.rectangle(B,v,k,w,{seed:n});r=g.insert(()=>a,":first-child");let s=i.rectangle(B,S,k,T,{fill:t?l:h,fillStyle:t?"hachure":"solid",stroke:p,seed:n});r=g.insert(()=>a,":first-child"),m=g.insert(()=>s)}else(r=f.insert("rect",":first-child")).attr("class","outer").attr("x",B).attr("y",v).attr("width",k).attr("height",w).attr("data-look",e.look),m.attr("class","inner").attr("x",B).attr("y",S).attr("width",k).attr("height",T);return y.attr("transform",`translate(${e.x-C.width/2}, ${v+1-3*!(0,s.E)(i)})`),e.height=r.node().getBBox().height,e.offsetX=0,e.offsetY=C.height-e.padding/2,e.labelBBox=C,e.intersect=function(t){return(0,o.nM)(e,t)},{cluster:g,labelBBox:C}},"roundedWithTitle"),y=(0,h.K)(async(t,e)=>{let r;l.R.info("Creating subgraph rect for ",e.id,e);let h=(0,s.D7)(),{themeVariables:u,handDrawnSeed:p}=h,{clusterBkg:g,clusterBorder:f}=u,{labelStyles:y,nodeStyles:m,borderStyles:x,backgroundStyles:C}=(0,a.GX)(e),b=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),k=(0,s.E)(h),w=b.insert("g").attr("class","cluster-label "),T=await (0,n.GZ)(w,e.label,{style:e.labelStyle,useHtmlLabels:k,isNode:!0,width:e.width}),B=T.getBBox();if((0,s.E)(h)){let t=T.children[0],e=(0,c.Ltv)(T);B=t.getBoundingClientRect(),e.attr("width",B.width),e.attr("height",B.height)}let v=e.width<=B.width+e.padding?B.width+e.padding:e.width;e.width<=B.width+e.padding?e.diff=(v-e.width)/2-e.padding:e.diff=-e.padding;let S=e.height,_=e.x-v/2,A=e.y-S/2;if(l.R.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=d.A.svg(b),i=(0,a.Fr)(e,{roughness:.7,fill:g,stroke:f,fillWeight:4,seed:p}),n=t.path((0,o.FA)(_,A,v,S,e.rx),i);(r=b.insert(()=>(l.R.debug("Rough node insert CXC",n),n),":first-child")).select("path:nth-child(2)").attr("style",x.join(";")),r.select("path").attr("style",C.join(";").replace("fill","stroke"))}else(r=b.insert("rect",":first-child")).attr("style",m).attr("rx",e.rx).attr("ry",e.ry).attr("x",_).attr("y",A).attr("width",v).attr("height",S);let{subGraphTitleTopMargin:F}=(0,i.Oi)(h);if(w.attr("transform",`translate(${e.x-B.width/2}, ${e.y-e.height/2+F})`),y){let t=w.select("span");t&&t.attr("style",y)}let L=r.node().getBBox();return e.offsetX=0,e.width=L.width,e.height=L.height,e.offsetY=B.height-e.padding/2,e.intersect=function(t){return(0,o.nM)(e,t)},{cluster:b,labelBBox:B}},"kanbanSection"),m={rect:p,squareRect:p,roundedWithTitle:f,noteGroup:g,divider:(0,h.K)((t,e)=>{let r,{themeVariables:i,handDrawnSeed:a}=(0,s.D7)(),{nodeBorder:n}=i,l=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look),h=l.insert("g",":first-child"),c=0*e.padding,u=e.width+c;e.diff=-e.padding;let p=e.height+c,g=e.x-u/2,f=e.y-p/2;if(e.width=u,"handDrawn"===e.look){let t=d.A.svg(l).rectangle(g,f,u,p,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:n,seed:a});r=l.insert(()=>t,":first-child")}else{r=h.insert("rect",":first-child");let t="outer";e.look,t="divider",r.attr("class",t).attr("x",g).attr("y",f).attr("width",u).attr("height",p).attr("data-look",e.look)}return e.height=r.node().getBBox().height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return(0,o.nM)(e,t)},{cluster:l,labelBBox:{}}}
244,"divider"),kanbanSection:y,swimlane:u},x=new Map,C=(0,h.K)(async(t,e)=>{let r=e.shape||"rect",i=await m[r](t,e);return x.set(e.id,i),i},"insertCluster"),b=(0,h.K)(()=>{x=new Map},"clear")},841(t,e,r){"use strict";r.d(e,{H:()=>t_,r:()=>tS});var i,o,a,n,s,l,h,c,d,u,p,g,f,y,m,x,C,b,k,w,T,B,v,S,_,A,F,L,M,$,E,O,D,I,K,q,R,P,z,N,j,W,U,H,Y,G,X=r(86827);function V(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(0,X.K)(V,"getDefaultExportFromCjs");var Z={},Q={},J={};function tt(){if(i)return J;function t(t){return null==t}function e(t){return"object"==typeof t&&null!==t}function r(e){return Array.isArray(e)?e:t(e)?[]:[e]}function o(t,e){if(e){let r=Object.keys(e);for(let i=0,o=r.length;i<o;i+=1){let o=r[i];t[o]=e[o]}}return t}function a(t,e){let r="";for(let i=0;i<e;i+=1)r+=t;return r}function n(t){return 0===t&&-1/0==1/t}return i=1,(0,X.K)(t,"isNothing"),(0,X.K)(e,"isObject"),(0,X.K)(r,"toArray"),(0,X.K)(o,"extend"),(0,X.K)(a,"repeat"),(0,X.K)(n,"isNegativeZero"),J.isNothing=t,J.isObject=e,J.toArray=r,J.repeat=a,J.isNegativeZero=n,J.extend=o,J}function te(){if(a)return o;function t(t,e){let r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+="\n\n"+t.mark.snippet),i+" "+r):i}function e(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=t(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}return a=1,(0,X.K)(t,"formatError"),(0,X.K)(e,"YAMLException2"),e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.toString=(0,X.K)(function(e){return this.name+": "+t(this,e)},"toString"),o=e}function tr(){if(s)return n;s=1;let t=tt();function e(t,e,r,i,o){let a="",n="",s=Math.floor(o/2)-1;return i-e>s&&(e=i-s+(a=" ... ").length),r-i>s&&(r=i+s-(n=" ...").length),{str:a+t.slice(e,r).replace(/\t/g,"\u2192")+n,pos:i-e+a.length}}function r(e,r){return t.repeat(" ",r-e.length)+e}function i(i,o){let a;if(o=Object.create(o||null),!i.buffer)return null;o.maxLength||(o.maxLength=79),"number"!=typeof o.indent&&(o.indent=1),"number"!=typeof o.linesBefore&&(o.linesBefore=3),"number"!=typeof o.linesAfter&&(o.linesAfter=2);let n=/\r?\n|\r|\0/g,s=[0],l=[],h=-1;for(;a=n.exec(i.buffer);)l.push(a.index),s.push(a.index+a[0].length),i.position<=a.index&&h<0&&(h=s.length-2);h<0&&(h=s.length-1);let c="",d=Math.min(i.line+o.linesAfter,l.length).toString().length,u=o.maxLength-(o.indent+d+3);for(let a=1;a<=o.linesBefore&&!(h-a<0);a++){let n=e(i.buffer,s[h-a],l[h-a],i.position-(s[h]-s[h-a]),u);c=t.repeat(" ",o.indent)+r((i.line-a+1).toString(),d)+" | "+n.str+"\n"+c}let p=e(i.buffer,s[h],l[h],i.position,u);c+=t.repeat(" ",o.indent)+r((i.line+1).toString(),d)+" | "+p.str+"\n"+t.repeat("-",o.indent+d+3+p.pos)+"^\n";for(let a=1;a<=o.linesAfter&&!(h+a>=l.length);a++){let n=e(i.buffer,s[h+a],l[h+a],i.position-(s[h]-s[h+a]),u);c+=t.repeat(" ",o.indent)+r((i.line+a+1).toString(),d)+" | "+n.str+"\n"}return c.replace(/\n$/,"")}return(0,X.K)(e,"getLine"),(0,X.K)(r,"padStart"),(0,X.K)(i,"makeSnippet"),n=i}function ti(){if(h)return l;h=1;let t=te(),e=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];function i(t){let e={};return null!==t&&Object.keys(t).forEach(function(r){t[r].forEach(function(t){e[String(t)]=r})}),e}function o(o,a){if(Object.keys(a=a||{}).forEach(function(r){if(-1===e.indexOf(r))throw new t('Unknown option "'+r+'" is met in definition of "'+o+'" YAML type.')}),this.options=a,this.tag=o,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(t){return t},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=i(a.styleAliases||null),-1===r.indexOf(this.kind))throw new t('Unknown kind "'+this.kind+'" is specified for "'+o+'" YAML type.')}return(0,X.K)(i,"compileStyleAliases"),(0,X.K)(o,"Type2"),l=o}function to(){if(d)return c;d=1;let t=te(),e=ti();function r(t,e){let r=[];return t[e].forEach(function(t){let e=r.length;r.forEach(function(r,i){r.tag===t.tag&&r.kind===t.kind&&r.multi===t.multi&&(e=i)}),r[e]=t}),r}function i(){let t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function e(e){e.multi?(t.multi[e.kind].push(e),t.multi.fallback.push(e)):t[e.kind][e.tag]=t.fallback[e.tag]=e}(0,X.K)(e,"collectType");for(let t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(e);return t}function o(t){return this.extend(t)}return(0,X.K)(r,"compileList"),(0,X.K)(i,"compileMap"),(0,X.K)(o,"Schema2"),o.prototype.extend=(0,X.K)(function(a){let n=[],s=[];if(a instanceof e)s.push(a);else if(Array.isArray(a))s=s.concat(a);else if(a&&(Array.isArray(a.implicit)||Array.isArray(a.explicit)))a.implicit&&(n=n.concat(a.implicit)),a.explicit&&(s=s.concat(a.explicit));else throw new t("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
244n.forEach(function(r){if(!(r instanceof e))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(r.loadKind&&"scalar"!==r.loadKind)throw new t("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(r.multi)throw new t("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),s.forEach(function(r){if(!(r instanceof e))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let l=Object.create(o.prototype);return l.implicit=(this.implicit||[]).concat(n),l.explicit=(this.explicit||[]).concat(s),l.compiledImplicit=r(l,"implicit"),l.compiledExplicit=r(l,"explicit"),l.compiledTypeMap=i(l.compiledImplicit,l.compiledExplicit),l},"extend"),c=o}function ta(){return p?u:(p=1,u=new(ti())("tag:yaml.org,2002:str",{kind:"scalar",construct:(0,X.K)(function(t){return null!==t?t:""},"construct")}))}function tn(){return f?g:(f=1,g=new(ti())("tag:yaml.org,2002:seq",{kind:"sequence",construct:(0,X.K)(function(t){return null!==t?t:[]},"construct")}))}function ts(){return m?y:(m=1,y=new(ti())("tag:yaml.org,2002:map",{kind:"mapping",construct:(0,X.K)(function(t){return null!==t?t:{}},"construct")}))}function tl(){return C?x:(C=1,x=new(to())({explicit:[ta(),tn(),ts()]}))}function th(){if(k)return b;k=1;let t=ti();function e(t){if(null===t)return!0;let e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function r(){return null}function i(t){return null===t}return(0,X.K)(e,"resolveYamlNull"),(0,X.K)(r,"constructYamlNull"),(0,X.K)(i,"isNull"),b=new t("tag:yaml.org,2002:null",{kind:"scalar",resolve:e,construct:r,predicate:i,represent:{canonical:(0,X.K)(function(){return"~"},"canonical"),lowercase:(0,X.K)(function(){return"null"},"lowercase"),uppercase:(0,X.K)(function(){return"NULL"},"uppercase"),camelcase:(0,X.K)(function(){return"Null"},"camelcase"),empty:(0,X.K)(function(){return""},"empty")},defaultStyle:"lowercase"})}function tc(){if(T)return w;T=1;let t=ti();function e(t){if(null===t)return!1;let e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)}function r(t){return"true"===t||"True"===t||"TRUE"===t}function i(t){return"[object Boolean]"===Object.prototype.toString.call(t)}return(0,X.K)(e,"resolveYamlBoolean"),(0,X.K)(r,"constructYamlBoolean"),(0,X.K)(i,"isBoolean"),w=new t("tag:yaml.org,2002:bool",{kind:"scalar",resolve:e,construct:r,predicate:i,represent:{lowercase:(0,X.K)(function(t){return t?"true":"false"},"lowercase"),uppercase:(0,X.K)(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:(0,X.K)(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"})}function td(){if(v)return B;v=1;let t=tt(),e=ti();function r(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function i(t){return t>=48&&t<=55}function o(t){return t>=48&&t<=57}function a(t){if(null===t)return!1;let e=t.length,a=0,s=!1;if(!e)return!1;let l=t[a];if(("-"===l||"+"===l)&&(l=t[++a]),"0"===l){if(a+1===e)return!0;if("b"===(l=t[++a])){for(a++;a<e;a++){if("0"!==(l=t[a])&&"1"!==l)return!1;s=!0}return s&&isFinite(n(t))}if("x"===l){for(a++;a<e;a++){if(!r(t.charCodeAt(a)))return!1;s=!0}return s&&isFinite(n(t))}if("o"===l){for(a++;a<e;a++){if(!i(t.charCodeAt(a)))return!1;s=!0}return s&&isFinite(n(t))}}for(;a<e;a++){if(!o(t.charCodeAt(a)))return!1;s=!0}return!!s&&isFinite(n(t))}function n(t){let e=t,r=1,i=e[0];if(("-"===i||"+"===i)&&("-"===i&&(r=-1),i=(e=e.slice(1))[0]),"0"===e)return 0;if("0"===i){if("b"===e[1])return r*parseInt(e.slice(2),2);if("x"===e[1])return r*parseInt(e.slice(2),16);if("o"===e[1])return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function s(t){return n(t)}function l(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!t.isNegativeZero(e)}return(0,X.K)(r,"isHexCode"),(0,X.K)(i,"isOctCode"),(0,X.K)(o,"isDecCode"),(0,X.K)(a,"resolveYamlInteger"),(0,X.K)(n,"parseYamlInteger"),(0,X.K)(s,"constructYamlInteger"),(0,X.K)(l,"isInteger"),B=new e("tag:yaml.org,2002:int",{kind:"scalar",resolve:a,construct:s,predicate:l,represent:{binary:(0,X.K)(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:(0,X.K)(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)}
244,"octal"),decimal:(0,X.K)(function(t){return t.toString(10)},"decimal"),hexadecimal:(0,X.K)(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})}function tu(){if(_)return S;_=1;let t=tt(),e=ti(),r=RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),i=RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function o(t){return null!==t&&!!r.test(t)&&(!!isFinite(parseFloat(t,10))||i.test(t))}function a(t){let e=t.toLowerCase(),r="-"===e[0]?-1:1;return("+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e)?1===r?1/0:-1/0:".nan"===e?NaN:r*parseFloat(e,10)}(0,X.K)(o,"resolveYamlFloat"),(0,X.K)(a,"constructYamlFloat");let n=/^[-+]?[0-9]+e/;function s(e,r){if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(1/0===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(-1/0===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(t.isNegativeZero(e))return"-0.0";let i=e.toString(10);return n.test(i)?i.replace("e",".e"):i}function l(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||t.isNegativeZero(e))}return(0,X.K)(s,"representYamlFloat"),(0,X.K)(l,"isFloat"),S=new e("tag:yaml.org,2002:float",{kind:"scalar",resolve:o,construct:a,predicate:l,represent:s,defaultStyle:"lowercase"})}function tp(){return F?A:(F=1,A=tl().extend({implicit:[th(),tc(),td(),tu()]}))}function tg(){return M?L:(M=1,L=tp())}function tf(){if(E)return $;E=1;let t=ti(),e=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=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 i(t){return null!==t&&(null!==e.exec(t)||null!==r.exec(t))}function o(t){let i=0,o=null,a=e.exec(t);if(null===a&&(a=r.exec(t)),null===a)throw Error("Date resolve error");let n=+a[1],s=a[2]-1,l=+a[3];if(!a[4])return new Date(Date.UTC(n,s,l));let h=+a[4],c=+a[5],d=+a[6];if(a[7]){for(i=a[7].slice(0,3);i.length<3;)i+="0";i*=1}a[9]&&(o=(60*a[10]+ +(a[11]||0))*6e4,"-"===a[9]&&(o=-o));let u=new Date(Date.UTC(n,s,l,h,c,d,i));return o&&u.setTime(u.getTime()-o),u}function a(t){return t.toISOString()}return(0,X.K)(i,"resolveYamlTimestamp"),(0,X.K)(o,"constructYamlTimestamp"),(0,X.K)(a,"representYamlTimestamp"),$=new t("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:i,construct:o,instanceOf:Date,represent:a})}function ty(){if(D)return O;D=1;let t=ti();function e(t){return"<<"===t||null===t}return(0,X.K)(e,"resolveYamlMerge"),O=new t("tag:yaml.org,2002:merge",{kind:"scalar",resolve:e})}function tm(){if(K)return I;K=1;let t=ti(),e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function r(t){if(null===t)return!1;let r=0,i=t.length;for(let o=0;o<i;o++){let i=e.indexOf(t.charAt(o));if(!(i>64)){if(i<0)return!1;r+=6}}return r%8==0}function i(t){let r=t.replace(/[\r\n=]/g,""),i=r.length,o=0,a=[];for(let t=0;t<i;t++)t%4==0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|e.indexOf(r.charAt(t));let n=i%4*6;return 0===n?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===n?(a.push(o>>10&255),a.push(o>>2&255)):12===n&&a.push(o>>4&255),new Uint8Array(a)}function o(t){let r="",i=0,o=t.length;for(let a=0;a<o;a++)a%3==0&&a&&(r+=e[i>>18&63],r+=e[i>>12&63],r+=e[i>>6&63],r+=e[63&i]),i=(i<<8)+t[a];let a=o%3;return 0===a?(r+=e[i>>18&63],r+=e[i>>12&63],r+=e[i>>6&63],r+=e[63&i]):2===a?(r+=e[i>>10&63],r+=e[i>>4&63],r+=e[i<<2&63],r+=e[64]):1===a&&(r+=e[i>>2&63],r+=e[i<<4&63],r+=e[64],r+=e[64]),r}function a(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}return(0,X.K)(r,"resolveYamlBinary"),(0,X.K)(i,"constructYamlBinary"),(0,X.K)(o,"representYamlBinary"),(0,X.K)(a,"isBinary"),I=new t("tag:yaml.org,2002:binary",{kind:"scalar",resolve:r,construct:i,predicate:a,represent:o})}function tx(){if(R)return q;R=1;let t=ti(),e=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function i(t){if(null===t)return!0;let i=[];for(let o=0,a=t.length;o<a;o+=1){let a,n=t[o],s=!1;if("[object Object]"!==r.call(n))return!1;for(a in n)if(e.call(n,a))if(s)return!1;else s=!0;if(!s||-1!==i.indexOf(a))return!1;i.push(a)}return!0}function o(t){return null!==t?t:[]}return(0,X.K)(i,"resolveYamlOmap"),(0,X.K)(o,"constructYamlOmap"),q=ne
244w t("tag:yaml.org,2002:omap",{kind:"sequence",resolve:i,construct:o})}function tC(){if(z)return P;z=1;let t=ti(),e=Object.prototype.toString;function r(t){if(null===t)return!0;let r=Array(t.length);for(let i=0,o=t.length;i<o;i+=1){let o=t[i];if("[object Object]"!==e.call(o))return!1;let a=Object.keys(o);if(1!==a.length)return!1;r[i]=[a[0],o[a[0]]]}return!0}function i(t){if(null===t)return[];let e=Array(t.length);for(let r=0,i=t.length;r<i;r+=1){let i=t[r],o=Object.keys(i);e[r]=[o[0],i[o[0]]]}return e}return(0,X.K)(r,"resolveYamlPairs"),(0,X.K)(i,"constructYamlPairs"),P=new t("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:r,construct:i})}function tb(){if(j)return N;j=1;let t=ti(),e=Object.prototype.hasOwnProperty;function r(t){if(null===t)return!0;for(let r in t)if(e.call(t,r)&&null!==t[r])return!1;return!0}function i(t){return null!==t?t:{}}return(0,X.K)(r,"resolveYamlSet"),(0,X.K)(i,"constructYamlSet"),N=new t("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:i})}function tk(){return U?W:(U=1,W=tg().extend({implicit:[tf(),ty()],explicit:[tm(),tx(),tC(),tb()]}))}function tw(){if(H)return Q;H=1;let t=tt(),e=te(),r=tr(),i=tk(),o=Object.prototype.hasOwnProperty,a=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=/[\x85\u2028\u2029]/,s=/[,\[\]{}]/,l=/^(?:!|!!|![0-9A-Za-z-]+!)$/,h=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function c(t){return Object.prototype.toString.call(t)}function d(t){return 10===t||13===t}function u(t){return 9===t||32===t}function p(t){return 9===t||32===t||10===t||13===t}function g(t){return 44===t||91===t||93===t||123===t||125===t}function f(t){if(t>=48&&t<=57)return t-48;let e=32|t;return e>=97&&e<=102?e-97+10:-1}function y(t){return 120===t?2:117===t?4:8*(85===t)}function m(t){return t>=48&&t<=57?t-48:-1}function x(t){switch(t){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:case 9:return"	";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1b";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xa0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function C(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function b(t,e,r){"__proto__"===e?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}(0,X.K)(c,"_class"),(0,X.K)(d,"isEol"),(0,X.K)(u,"isWhiteSpace"),(0,X.K)(p,"isWsOrEol"),(0,X.K)(g,"isFlowIndicator"),(0,X.K)(f,"fromHexCode"),(0,X.K)(y,"escapedHexLen"),(0,X.K)(m,"fromDecimalCode"),(0,X.K)(x,"simpleEscapeSequence"),(0,X.K)(C,"charFromCodepoint"),(0,X.K)(b,"setProperty");let k=Array(256),w=Array(256);for(let t=0;t<256;t++)k[t]=+!!x(t),w[t]=x(t);function T(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||i,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.maxDepth="number"==typeof e.maxDepth?e.maxDepth:100,this.maxTotalMergeKeys="number"==typeof e.maxTotalMergeKeys?e.maxTotalMergeKeys:1e4,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.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function B(t,i){let o={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return o.snippet=r(o),new e(i,o)}function v(t,e){throw B(t,e)}function S(t,e){t.onWarning&&t.onWarning.call(null,B(t,e))}function _(t,e,r){let i=t.anchorMapTransactions;if(0!==i.length){let r=i[i.length-1];o.call(r,e)||(r[e]={existed:o.call(t.anchorMap,e),value:t.anchorMap[e]})}t.anchorMap[e]=r}function A(t){t.anchorMapTransactions.push(Object.create(null))}function F(t){let e=t.anchorMapTransactions.pop(),r=t.anchorMapTransactions;if(0===r.length)return;let i=r[r.length-1],a=Object.keys(e);for(let t=0,r=a.length;t<r;t+=1){let r=a[t];o.call(i,r)||(i[r]=e[r])}}function L(t){let e=t.anchorMapTransactions.pop(),r=Object.keys(e);for(let i=r.length-1;i>=0;i-=1){let o=e[r[i]];o.existed?t.anchorMap[r[i]]=o.value:delete t.anchorMap[r[i]]}}function M(t){return{position:t.position,line:t.line,lineStart:t.lineStart,lineIndent:t.lineIndent,firstTabInLine:t.firstTabInLine,tag:t.tag,anchor:t.anchor,kind:t.kind,result:t.result}}function $(t,e){t.position=e.position,t.line=e.line,t.lineStart=e.lineStart,t.lineIndent=e.lineIndent,t.firstTabInLine=e.firstTabInLine,t.tag=e.tag,t.anchor=e.anchor,t.kind=e.kind,t.result=e.result}(0,X.K)(T,"State"),(0,X.K)(B,"generateError"),(0,X.K)(v,"throwError"),(0,X.K)(S,"throwWarning"),
244(0,X.K)(_,"storeAnchor"),(0,X.K)(A,"beginAnchorTransaction"),(0,X.K)(F,"commitAnchorTransaction"),(0,X.K)(L,"rollbackAnchorTransaction"),(0,X.K)(M,"snapshotState"),(0,X.K)($,"restoreState");let E={YAML:(0,X.K)(function(t,e,r){null!==t.version&&v(t,"duplication of %YAML directive"),1!==r.length&&v(t,"YAML directive accepts exactly one argument");let i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);null===i&&v(t,"ill-formed argument of the YAML directive");let o=parseInt(i[1],10),a=parseInt(i[2],10);1!==o&&v(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,1!==a&&2!==a&&S(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:(0,X.K)(function(t,e,r){let i;2!==r.length&&v(t,"TAG directive accepts exactly two arguments");let a=r[0];i=r[1],l.test(a)||v(t,"ill-formed tag handle (first argument) of the TAG directive"),o.call(t.tagMap,a)&&v(t,'there is a previously declared suffix for "'+a+'" tag handle'),h.test(i)||v(t,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(e){v(t,"tag prefix is malformed: "+i)}t.tagMap[a]=i},"handleTagDirective")};function O(t,e,r,i){if(e<r){let o=t.input.slice(e,r);if(i)for(let e=0,r=o.length;e<r;e+=1){let r=o.charCodeAt(e);9===r||r>=32&&r<=1114111||v(t,"expected valid JSON character")}else a.test(o)&&v(t,"the stream contains non-printable characters");t.result+=o}}function D(e,r,i,a){t.isObject(i)||v(e,"cannot merge mappings; the provided source object is unacceptable");let n=Object.keys(i);for(let t=0,s=n.length;t<s;t+=1){let s=n[t];-1!==e.maxTotalMergeKeys&&++e.totalMergeKeys>e.maxTotalMergeKeys&&v(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")"),o.call(r,s)||(b(r,s,i[s]),a[s]=!0)}}function I(t,e,r,i,a,n,s,l,h){if(Array.isArray(a)){a=Array.prototype.slice.call(a);for(let e=0,r=a.length;e<r;e+=1)Array.isArray(a[e])&&v(t,"nested arrays are not supported inside keys"),"object"==typeof a&&"[object Object]"===c(a[e])&&(a[e]="[object Object]")}if("object"==typeof a&&"[object Object]"===c(a)&&(a="[object Object]"),a=String(a),null===e&&(e={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(n))for(let i=0,o=n.length;i<o;i+=1)D(t,e,n[i],r);else D(t,e,n,r);else!t.json&&!o.call(r,a)&&o.call(e,a)&&(t.line=s||t.line,t.lineStart=l||t.lineStart,t.position=h||t.position,v(t,"duplicated mapping key")),b(e,a,n),delete r[a];return e}function K(t){let e=t.input.charCodeAt(t.position);10===e?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):v(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function q(t,e,r){let i=0,o=t.input.charCodeAt(t.position);for(;0!==o;){for(;u(o);)9===o&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),o=t.input.charCodeAt(++t.position);if(e&&35===o)do o=t.input.charCodeAt(++t.position);while(10!==o&&13!==o&&0!==o)if(d(o))for(K(t),o=t.input.charCodeAt(t.position),i++,t.lineIndent=0;32===o;)t.lineIndent++,o=t.input.charCodeAt(++t.position);else break}return -1!==r&&0!==i&&t.lineIndent<r&&S(t,"deficient indentation"),i}function R(t){let e=t.position,r=t.input.charCodeAt(e);return!!((45===r||46===r)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,0===(r=t.input.charCodeAt(e))||p(r)))||!1}function P(e,r){1===r?e.result+=" ":r>1&&(e.result+=t.repeat("\n",r-1))}function z(t,e,r){let i,o,a,n,s,l,h=t.kind,c=t.result,f=t.input.charCodeAt(t.position);if(p(f)||g(f)||35===f||38===f||42===f||33===f||124===f||62===f||39===f||34===f||37===f||64===f||96===f)return!1;if(63===f||45===f){let e=t.input.charCodeAt(t.position+1);if(p(e)||r&&g(e))return!1}for(t.kind="scalar",t.result="",i=o=t.position,a=!1;0!==f;){if(58===f){let e=t.input.charCodeAt(t.position+1);if(p(e)||r&&g(e))break}else if(35===f){if(p(t.input.charCodeAt(t.position-1)))break}else if(t.position===t.lineStart&&R(t)||r&&g(f))break;else if(d(f)){if(n=t.line,s=t.lineStart,l=t.lineIndent,q(t,!1,-1),t.lineIndent>=e){a=!0,f=t.input.charCodeAt(t.position);continue}t.position=o,t.line=n,t.lineStart=s,t.lineIndent=l;break}a&&(O(t,i,o,!1),P(t,t.line-n),i=o=t.position,a=!1),u(f)||(o=t.position+1),f=t.input.charCodeAt(++t.position)}return O(t,i,o,!1),!!t.result||(t.kind=h,t.result=c,!1)}function N(t,e){let r,i,o=t.input.charCodeAt(t.position);if(39!==o)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;0!==(o=t.input.charCodeAt(t.position));)if(39===o){if(O(t,r,t.position,!0),39!==(o=t.input.charCodeAt(++t.position)))return!0;r=t.position,t.position++,i=t.position}else d(o)?(O(t,r,i,!0),P(t,q(t,!1,e)),r=i=t.position):t.position===t.lineStart&&R(t)?v(t,"unexpected end of the document within a single quoted scalar"):(t.position++,u(o)||(i=t.position));v(t,"unexpected end of the stream within a single quoted scalar")}function j(t,e){let r,i,o,a=t.input.charCodeAt(t.position);if(34!==a)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;0!==(a=t.input.charCodeAt(t.position));)if(34===a)return O(t,r,t.position,!0),t.position++,!0;else if(92===a){if(O(t,r,t.position,!0),d(a=t.input.charCodeAt(++t.position)))q(t,!1,e);else if(a<256&&k[a])t.result+=w[a],t.position++;else if((o=y(a))>0){let e=o,r=0;for(;e>0;
244e--)(o=f(a=t.input.charCodeAt(++t.position)))>=0?r=(r<<4)+o:v(t,"expected hexadecimal character");t.result+=C(r),t.position++}else v(t,"unknown escape sequence");r=i=t.position}else d(a)?(O(t,r,i,!0),P(t,q(t,!1,e)),r=i=t.position):t.position===t.lineStart&&R(t)?v(t,"unexpected end of the document within a double quoted scalar"):(t.position++,u(a)||(i=t.position));v(t,"unexpected end of the stream within a double quoted scalar")}function W(t,e){let r,i,o,a,n,s,l,h,c,d,u,g=!0,f=t.tag,y=t.anchor,m=Object.create(null),x=t.input.charCodeAt(t.position);if(91===x)n=93,h=!1,a=[];else{if(123!==x)return!1;n=125,h=!0,a={}}for(null!==t.anchor&&_(t,t.anchor,a),x=t.input.charCodeAt(++t.position);0!==x;){if(q(t,!0,e),(x=t.input.charCodeAt(t.position))===n)return t.position++,t.tag=f,t.anchor=y,t.kind=h?"mapping":"sequence",t.result=a,!0;g?44===x&&v(t,"expected the node content, but found ','"):v(t,"missed comma between flow collection entries"),d=c=u=null,s=l=!1,63===x&&p(t.input.charCodeAt(t.position+1))&&(s=l=!0,t.position++,q(t,!0,e)),r=t.line,i=t.lineStart,o=t.position,to(t,e,1,!1,!0),d=t.tag,c=t.result,q(t,!0,e),x=t.input.charCodeAt(t.position),(l||t.line===r)&&58===x&&(s=!0,x=t.input.charCodeAt(++t.position),q(t,!0,e),to(t,e,1,!1,!0),u=t.result),h?I(t,a,m,d,c,u,r,i,o):s?a.push(I(t,null,m,d,c,u,r,i,o)):a.push(c),q(t,!0,e),44===(x=t.input.charCodeAt(t.position))?(g=!0,x=t.input.charCodeAt(++t.position)):g=!1}v(t,"unexpected end of the stream within a flow collection")}function U(e,r){let i,o,a=1,n=!1,s=!1,l=r,h=0,c=!1,p=e.input.charCodeAt(e.position);if(124===p)i=!1;else{if(62!==p)return!1;i=!0}for(e.kind="scalar",e.result="";0!==p;)if(43===(p=e.input.charCodeAt(++e.position))||45===p)1===a?a=43===p?3:2:v(e,"repeat of a chomping mode identifier");else if((o=m(p))>=0)0===o?v(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?v(e,"repeat of an indentation width identifier"):(l=r+o-1,s=!0);else break;if(u(p)){do p=e.input.charCodeAt(++e.position);while(u(p))if(35===p)do p=e.input.charCodeAt(++e.position);while(!d(p)&&0!==p)}for(;0!==p;){for(K(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!s||e.lineIndent<l)&&32===p;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>l&&(l=e.lineIndent),d(p)){h++;continue}if(s||0!==l||v(e,"missing indentation for block scalar"),e.lineIndent<l){3===a?e.result+=t.repeat("\n",n?1+h:h):1===a&&n&&(e.result+="\n");break}i?u(p)?(c=!0,e.result+=t.repeat("\n",n?1+h:h)):c?(c=!1,e.result+=t.repeat("\n",h+1)):0===h?n&&(e.result+=" "):e.result+=t.repeat("\n",h):e.result+=t.repeat("\n",n?1+h:h),n=!0,s=!0,h=0;let r=e.position;for(;!d(p)&&0!==p;)p=e.input.charCodeAt(++e.position);O(e,r,e.position,!1)}return!0}function Y(t,e){let r=t.tag,i=t.anchor,o=[],a=!1;if(-1!==t.firstTabInLine)return!1;null!==t.anchor&&_(t,t.anchor,o);let n=t.input.charCodeAt(t.position);for(;0!==n&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,v(t,"tab characters must not be used in indentation")),45===n&&p(t.input.charCodeAt(t.position+1)));){if(a=!0,t.position++,q(t,!0,-1)&&t.lineIndent<=e){o.push(null),n=t.input.charCodeAt(t.position);continue}let r=t.line;if(to(t,e,3,!1,!0),o.push(t.result),q(t,!0,-1),n=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==n)v(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return!!a&&(t.tag=r,t.anchor=i,t.kind="sequence",t.result=o,!0)}function G(t,e,r){let i,o,a,n,s=t.tag,l=t.anchor,h={},c=Object.create(null),d=null,g=null,f=null,y=!1,m=!1;if(-1!==t.firstTabInLine)return!1;null!==t.anchor&&_(t,t.anchor,h);let x=t.input.charCodeAt(t.position);for(;0!==x;){y||-1===t.firstTabInLine||(t.position=t.firstTabInLine,v(t,"tab characters must not be used in indentation"));let C=t.input.charCodeAt(t.position+1),b=t.line;if((63===x||58===x)&&p(C))63===x?(y&&(I(t,h,c,d,g,null,o,a,n),d=g=f=null),m=!0,y=!0,i=!0):y?(y=!1,i=!0):v(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,x=C;else{if(o=t.line,a=t.lineStart,n=t.position,!to(t,r,2,!1,!0))break;if(t.line===b){for(x=t.input.charCodeAt(t.position);u(x);)x=t.input.charCodeAt(++t.position);if(58===x)p(x=t.input.charCodeAt(++t.position))||v(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(I(t,h,c,d,g,null,o,a,n),d=g=f=null),m=!0,y=!1,i=!1,d=t.tag,g=t.result;else{if(!m)return t.tag=s,t.anchor=l,!0;v(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!m)return t.tag=s,t.anchor=l,!0;v(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((t.line===b||t.lineIndent>e)&&(y&&(o=t.line,a=t.lineStart,n=t.position),to(t,e,4,!0,i)&&(y?g=t.result:f=t.result),y||(I(t,h,c,d,g,f,o,a,n),d=g=f=null),q(t,!0,-1),x=t.input.charCodeAt(t.position)),(t.line===b||t.lineIndent>e)&&0!==x)v(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&I(t,h,c,d,g,null,o,a,n),m&&(t.tag=s,t.anchor=l,t.kind="mapping",t.result=h),m}function V(t){let e,r,i=!1,a=!1,n=t.input.charCodeAt(t.position);if(33!==n)return!1;null!==t.tag&&v(t,"duplication of a tag property"),60===(n=t.input.charCodeAt(++t.position))?(i=!0,n=t.input.charCodeAt(++t.position)):33===n?(a=!0,e="!!",n=t.
244input.charCodeAt(++t.position)):e="!";let c=t.position;if(i){do n=t.input.charCodeAt(++t.position);while(0!==n&&62!==n)t.position<t.length?(r=t.input.slice(c,t.position),n=t.input.charCodeAt(++t.position)):v(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==n&&!p(n);)33===n&&(a?v(t,"tag suffix cannot contain exclamation marks"):(e=t.input.slice(c-1,t.position+1),l.test(e)||v(t,"named tag handle cannot contain such characters"),a=!0,c=t.position+1)),n=t.input.charCodeAt(++t.position);r=t.input.slice(c,t.position),s.test(r)&&v(t,"tag suffix cannot contain flow indicator characters")}r&&!h.test(r)&&v(t,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(e){v(t,"tag name is malformed: "+r)}return i?t.tag=r:o.call(t.tagMap,e)?t.tag=t.tagMap[e]+r:"!"===e?t.tag="!"+r:"!!"===e?t.tag="tag:yaml.org,2002:"+r:v(t,'undeclared tag handle "'+e+'"'),!0}function Z(t){let e=t.input.charCodeAt(t.position);if(38!==e)return!1;null!==t.anchor&&v(t,"duplication of an anchor property"),e=t.input.charCodeAt(++t.position);let r=t.position;for(;0!==e&&!p(e)&&!g(e);)e=t.input.charCodeAt(++t.position);return t.position===r&&v(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(r,t.position),!0}function J(t){let e=t.input.charCodeAt(t.position);if(42!==e)return!1;e=t.input.charCodeAt(++t.position);let r=t.position;for(;0!==e&&!p(e)&&!g(e);)e=t.input.charCodeAt(++t.position);t.position===r&&v(t,"name of an alias node must contain at least one character");let i=t.input.slice(r,t.position);return o.call(t.anchorMap,i)||v(t,'unidentified alias "'+i+'"'),t.result=t.anchorMap[i],q(t,!0,-1),!0}function ti(t,e,r,i){let o=M(t);return(A(t),$(t,e),t.tag=null,t.anchor=null,t.kind=null,t.result=null,G(t,r,i)&&"mapping"===t.kind)?(F(t),!0):(L(t),$(t,o),!1)}function to(t,e,r,i,a){let n,s,l,h,c,d=1,u=!1,p=!1,g=null;t.depth>=t.maxDepth&&v(t,"nesting exceeded maxDepth ("+t.maxDepth+")"),t.depth+=1,null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null;let f=n=s=4===r||3===r;if(i&&q(t,!0,-1)&&(u=!0,t.lineIndent>e?d=1:t.lineIndent===e?d=0:t.lineIndent<e&&(d=-1)),1===d)for(;;){let r=t.input.charCodeAt(t.position),i=M(t);if(u&&(33===r&&null!==t.tag||38===r&&null!==t.anchor)||!V(t)&&!Z(t))break;null===g&&(g=i),q(t,!0,-1)?(u=!0,s=f,t.lineIndent>e?d=1:t.lineIndent===e?d=0:t.lineIndent<e&&(d=-1)):s=!1}if(s&&(s=u||a),1===d||4===r)if(h=1===r||2===r?e:e+1,c=t.position-t.lineStart,1===d)if(s&&(Y(t,c)||G(t,c,h))||W(t,h))p=!0;else{let e=t.input.charCodeAt(t.position);null!==g&&f&&!s&&124!==e&&62!==e&&ti(t,g,g.position-g.lineStart,h)||n&&U(t,h)||N(t,h)||j(t,h)?p=!0:J(t)?(p=!0,(null!==t.tag||null!==t.anchor)&&v(t,"alias node should not have any properties")):z(t,h,1===r)&&(p=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&_(t,t.anchor,t.result)}else 0===d&&(p=s&&Y(t,c));if(null===t.tag)null!==t.anchor&&_(t,t.anchor,t.result);else if("?"===t.tag){null!==t.result&&"scalar"!==t.kind&&v(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"');for(let e=0,r=t.implicitTypes.length;e<r;e+=1)if((l=t.implicitTypes[e]).resolve(t.result)){t.result=l.construct(t.result),t.tag=l.tag,null!==t.anchor&&_(t,t.anchor,t.result);break}}else if("!"!==t.tag){if(o.call(t.typeMap[t.kind||"fallback"],t.tag))l=t.typeMap[t.kind||"fallback"][t.tag];else{l=null;let e=t.typeMap.multi[t.kind||"fallback"];for(let r=0,i=e.length;r<i;r+=1)if(t.tag.slice(0,e[r].tag.length)===e[r].tag){l=e[r];break}}l||v(t,"unknown tag !<"+t.tag+">"),null!==t.result&&l.kind!==t.kind&&v(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+l.kind+'", not "'+t.kind+'"'),l.resolve(t.result,t.tag)?(t.result=l.construct(t.result,t.tag),null!==t.anchor&&_(t,t.anchor,t.result)):v(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),t.depth-=1,null!==t.tag||null!==t.anchor||p}function ta(t){let e,r=t.position,i=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(e=t.input.charCodeAt(t.position))&&(q(t,!0,-1),e=t.input.charCodeAt(t.position),!(t.lineIndent>0)&&37===e);){i=!0,e=t.input.charCodeAt(++t.position);let r=t.position;for(;0!==e&&!p(e);)e=t.input.charCodeAt(++t.position);let a=t.input.slice(r,t.position),n=[];for(a.length<1&&v(t,"directive name must not be less than one character in length");0!==e;){for(;u(e);)e=t.input.charCodeAt(++t.position);if(35===e){do e=t.input.charCodeAt(++t.position);while(0!==e&&!d(e))break}if(d(e))break;for(r=t.position;0!==e&&!p(e);)e=t.input.charCodeAt(++t.position);n.push(t.input.slice(r,t.position))}0!==e&&K(t),o.call(E,a)?E[a](t,a,n):S(t,'unknown document directive "'+a+'"')}if(q(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,q(t,!0,-1)):i&&v(t,"directives end mark is expected"),to(t,t.lineIndent-1,4,!1,!0),q(t,!0,-1),t.checkLineBreaks&&n.test(t.input.slice(r,t.position))&&S(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&R(t)){46===t.input.charCodeAt(t.position)&&(t.position+=3,q(t,!0,-1));return}t.position<t.length-1&&v(t,"end of the stream or a document separator is expected")}function tn(t,e){t=String(t),e=e||{},0!==t.length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));let r=new T(t,e),i=t.indexOf("\0");for(-1!==i&&(r.position=i,v(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)ta(r);return r.documents}function ts(t,e,r){null!==e&&"object"==typeof e&&void 0===r&&(r=e,e=null);let i=tn(t,r);if("function"!=typeof e)return i;for(let t=0,r=i.length;t<r;t+=1)e(i[t])}function tl(t,r){let i=tn(t,r);if(0!==i.length){if(1===i.length)return i[0];throw new e("expected a single document in the stream, but found more")}}return(0,X.K)(O,"captureSegment"),(0,X.K)(D,"mergeMappings"),(0,X.K)(I,"storeMappingPair"),(0,X.K)(K,"readLineBreak"),(0,X.K)(q,"skipSeparationSpace"),(0,X.K)(R,"testDocumentSeparator"),(0,X.K)(P,"writeFoldedLines"),(0,X.K)(z,"readPlainScalar"),(0,X.K)(N,"readSingleQuotedScalar"),(0,X.K)(j,"readDoubleQuotedScalar"),(0,X.K)(W,"readFlowCollection"),(0,X.K)(U,"readBlockScalar"),(0,X.K)(Y,"readBlockSequence"),(0,X.K)(G,"readBlockMapping"),
244(0,X.K)(V,"readTagProperty"),(0,X.K)(Z,"readAnchorProperty"),(0,X.K)(J,"readAlias"),(0,X.K)(ti,"tryReadBlockMappingFromProperty"),(0,X.K)(to,"composeNode"),(0,X.K)(ta,"readDocument"),(0,X.K)(tn,"loadDocuments"),(0,X.K)(ts,"loadAll2"),(0,X.K)(tl,"load2"),Q.loadAll=ts,Q.load=tl,Q}(0,X.K)(tt,"requireCommon"),(0,X.K)(te,"requireException"),(0,X.K)(tr,"requireSnippet"),(0,X.K)(ti,"requireType"),(0,X.K)(to,"requireSchema"),(0,X.K)(ta,"requireStr"),(0,X.K)(tn,"requireSeq"),(0,X.K)(ts,"requireMap"),(0,X.K)(tl,"requireFailsafe"),(0,X.K)(th,"require_null"),(0,X.K)(tc,"requireBool"),(0,X.K)(td,"requireInt"),(0,X.K)(tu,"requireFloat"),(0,X.K)(tp,"requireJson"),(0,X.K)(tg,"requireCore"),(0,X.K)(tf,"requireTimestamp"),(0,X.K)(ty,"requireMerge"),(0,X.K)(tm,"requireBinary"),(0,X.K)(tx,"requireOmap"),(0,X.K)(tC,"requirePairs"),(0,X.K)(tb,"requireSet"),(0,X.K)(tk,"require_default"),(0,X.K)(tw,"requireLoader");var tT={};function tB(){if(Y)return tT;Y=1;let t=tt(),e=te(),r=tk(),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a={};a[0]="\\0",a[7]="\\a",a[8]="\\b",a[9]="\\t",a[10]="\\n",a[11]="\\v",a[12]="\\f",a[13]="\\r",a[27]="\\e",a[34]='\\"',a[92]="\\\\",a[133]="\\N",a[160]="\\_",a[8232]="\\L",a[8233]="\\P";let n=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],s=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function l(t,e){if(null===e)return{};let r={},i=Object.keys(e);for(let a=0,n=i.length;a<n;a+=1){let n=i[a],s=String(e[n]);"!!"===n.slice(0,2)&&(n="tag:yaml.org,2002:"+n.slice(2));let l=t.compiledTypeMap.fallback[n];l&&o.call(l.styleAliases,s)&&(s=l.styleAliases[s]),r[n]=s}return r}function h(r){let i,o,a=r.toString(16).toUpperCase();if(r<=255)i="x",o=2;else if(r<=65535)i="u",o=4;else if(r<=0xffffffff)i="U",o=8;else throw new e("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+i+t.repeat("0",o-a.length)+a}function c(e){this.schema=e.schema||r,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=t.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=l(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function d(e,r){let i=t.repeat(" ",r),o=0,a="",n=e.length;for(;o<n;){let t,r=e.indexOf("\n",o);-1===r?(t=e.slice(o),o=n):(t=e.slice(o,r+1),o=r+1),t.length&&"\n"!==t&&(a+=i),a+=t}return a}function u(e,r){return"\n"+t.repeat(" ",e.indent*r)}function p(t,e){for(let r=0,i=t.implicitTypes.length;r<i;r+=1)if(t.implicitTypes[r].resolve(e))return!0;return!1}function g(t){return 32===t||9===t}function f(t){return t>=32&&t<=126||t>=161&&t<=55295&&8232!==t&&8233!==t||t>=57344&&t<=65533&&65279!==t||t>=65536&&t<=1114111}function y(t){return f(t)&&65279!==t&&13!==t&&10!==t}function m(t,e,r){let i=y(t),o=i&&!g(t);return(r?i:i&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t)&&35!==t&&!(58===e&&!o)||y(e)&&!g(e)&&35===t||58===e&&o}function x(t){return f(t)&&65279!==t&&!g(t)&&45!==t&&63!==t&&58!==t&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t&&35!==t&&38!==t&&42!==t&&33!==t&&124!==t&&61!==t&&62!==t&&39!==t&&34!==t&&37!==t&&64!==t&&96!==t}function C(t){return!g(t)&&58!==t}function b(t,e){let r,i=t.charCodeAt(e);return i>=55296&&i<=56319&&e+1<t.length&&(r=t.charCodeAt(e+1))>=56320&&r<=57343?(i-55296)*1024+r-56320+65536:i}function k(t){return/^\n* /.test(t)}function w(t,e,r,i,o,a,n,s){let l,h=0,c=null,d=!1,u=!1,p=-1!==i,g=-1,y=x(b(t,0))&&C(b(t,t.length-1));if(e||n)for(l=0;l<t.length;h>=65536?l+=2:l++){if(!f(h=b(t,l)))return 5;y=y&&m(h,c,s),c=h}else{for(l=0;l<t.length;h>=65536?l+=2:l++){if(10===(h=b(t,l)))d=!0,p&&(u=u||l-g-1>i&&" "!==t[g+1],g=l);else if(!f(h))return 5;y=y&&m(h,c,s),c=h}u=u||p&&l-g-1>i&&" "!==t[g+1]}return d||u?r>
2449&&k(t)?5:n?2===a?5:2:u?4:3:!y||n||o(t)?2===a?5:2:1}function T(t,r,i,o,a){t.dump=function(){if(0===r.length)return 2===t.quotingType?'""':"''";if(!t.noCompatMode&&(-1!==n.indexOf(r)||s.test(r)))return 2===t.quotingType?'"'+r+'"':"'"+r+"'";let l=t.indent*Math.max(1,i),h=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-l),c=o||t.flowLevel>-1&&i>=t.flowLevel;function u(e){return p(t,e)}switch((0,X.K)(u,"testAmbiguity"),w(r,c,t.indent,h,u,t.quotingType,t.forceQuotes&&!o,a)){case 1:return r;case 2:return"'"+r.replace(/'/g,"''")+"'";case 3:return"|"+B(r,t.indent)+v(d(r,l));case 4:return">"+B(r,t.indent)+v(d(S(r,h),l));case 5:return'"'+A(r)+'"';default:throw new e("impossible error: invalid scalar style")}}()}function B(t,e){let r=k(t)?String(e):"",i="\n"===t[t.length-1];return r+(i&&("\n"===t[t.length-2]||"\n"===t)?"+":i?"":"-")+"\n"}function v(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function S(t,e){let r,i,o,a=/(\n+)([^\n]*)/g,n=(a.lastIndex=o=-1!==(o=t.indexOf("\n"))?o:t.length,_(t.slice(0,o),e)),s="\n"===t[0]||" "===t[0];for(;i=a.exec(t);){let t=i[1],o=i[2];r=" "===o[0],n+=t+(s||r||""===o?"":"\n")+_(o,e),s=r}return n}function _(t,e){let r,i;if(""===t||" "===t[0])return t;let o=/ [^ ]/g,a=0,n=0,s=0,l="";for(;r=o.exec(t);)(s=r.index)-a>e&&(i=n>a?n:s,l+="\n"+t.slice(a,i),a=i+1),n=s;return l+="\n",t.length-a>e&&n>a?l+=t.slice(a,n)+"\n"+t.slice(n+1):l+=t.slice(a),l.slice(1)}function A(t){let e="",r=0;for(let i=0;i<t.length;r>=65536?i+=2:i++){let o=a[r=b(t,i)];!o&&f(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=o||h(r)}return e}function F(t,e,r){let i="",o=t.tag;for(let o=0,a=r.length;o<a;o+=1){let a=r[o];t.replacer&&(a=t.replacer.call(r,String(o),a)),(O(t,e,a,!1,!1)||void 0===a&&O(t,e,null,!1,!1))&&(""!==i&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump)}t.tag=o,t.dump="["+i+"]"}function L(t,e,r,i){let o="",a=t.tag;for(let a=0,n=r.length;a<n;a+=1){let n=r[a];t.replacer&&(n=t.replacer.call(r,String(a),n)),(O(t,e+1,n,!0,!0,!1,!0)||void 0===n&&O(t,e+1,null,!0,!0,!1,!0))&&(i&&""===o||(o+=u(t,e)),t.dump&&10===t.dump.charCodeAt(0)?o+="-":o+="- ",o+=t.dump)}t.tag=a,t.dump=o||"[]"}function M(t,e,r){let i="",o=t.tag,a=Object.keys(r);for(let o=0,n=a.length;o<n;o+=1){let n="";""!==i&&(n+=", "),t.condenseFlow&&(n+='"');let s=a[o],l=r[s];t.replacer&&(l=t.replacer.call(r,s,l)),O(t,e,s,!1,!1)&&(t.dump.length>1024&&(n+="? "),n+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),O(t,e,l,!1,!1)&&(n+=t.dump,i+=n))}t.tag=o,t.dump="{"+i+"}"}function $(t,r,i,o){let a="",n=t.tag,s=Object.keys(i);if(!0===t.sortKeys)s.sort();
244else if("function"==typeof t.sortKeys)s.sort(t.sortKeys);else if(t.sortKeys)throw new e("sortKeys must be a boolean or a function");for(let e=0,n=s.length;e<n;e+=1){let n="";o&&""===a||(n+=u(t,r));let l=s[e],h=i[l];if(t.replacer&&(h=t.replacer.call(i,l,h)),!O(t,r+1,l,!0,!0,!0))continue;let c=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024;c&&(t.dump&&10===t.dump.charCodeAt(0)?n+="?":n+="? "),n+=t.dump,c&&(n+=u(t,r)),O(t,r+1,h,!0,c)&&(t.dump&&10===t.dump.charCodeAt(0)?n+=":":n+=": ",n+=t.dump,a+=n)}t.tag=n,t.dump=a||"{}"}function E(t,r,a){let n=a?t.explicitTypes:t.implicitTypes;for(let s=0,l=n.length;s<l;s+=1){let l=n[s];if((l.instanceOf||l.predicate)&&(!l.instanceOf||"object"==typeof r&&r instanceof l.instanceOf)&&(!l.predicate||l.predicate(r))){if(a?l.multi&&l.representName?t.tag=l.representName(r):t.tag=l.tag:t.tag="?",l.represent){let a,n=t.styleMap[l.tag]||l.defaultStyle;if("[object Function]"===i.call(l.represent))a=l.represent(r,n);else if(o.call(l.represent,n))a=l.represent[n](r,n);else throw new e("!<"+l.tag+'> tag resolver accepts not "'+n+'" style');t.dump=a}return!0}}return!1}function O(t,r,o,a,n,s,l){let h,c;t.tag=null,t.dump=o,E(t,o,!1)||E(t,o,!0);let d=i.call(t.dump),u=a;a&&(a=t.flowLevel<0||t.flowLevel>r);let p="[object Object]"===d||"[object Array]"===d;if(p&&(c=-1!==(h=t.duplicates.indexOf(o))),(null!==t.tag&&"?"!==t.tag||c||2!==t.indent&&r>0)&&(n=!1),c&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(p&&c&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),"[object Object]"===d)a&&0!==Object.keys(t.dump).length?($(t,r,t.dump,n),c&&(t.dump="&ref_"+h+t.dump)):(M(t,r,t.dump),c&&(t.dump="&ref_"+h+" "+t.dump));else if("[object Array]"===d)a&&0!==t.dump.length?(t.noArrayIndent&&!l&&r>0?L(t,r-1,t.dump,n):L(t,r,t.dump,n),c&&(t.dump="&ref_"+h+t.dump)):(F(t,r,t.dump),c&&(t.dump="&ref_"+h+" "+t.dump));else if("[object String]"===d)"?"!==t.tag&&T(t,t.dump,r,s,u);else{if("[object Undefined]"===d||t.skipInvalid)return!1;throw new e("unacceptable kind of an object to dump "+d)}if(null!==t.tag&&"?"!==t.tag){let e=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21");e="!"===t.tag[0]?"!"+e:"tag:yaml.org,2002:"===e.slice(0,18)?"!!"+e.slice(18):"!<"+e+">",t.dump=e+" "+t.dump}}return!0}function D(t,e){let r=[],i=[];I(t,r,i);let o=i.length;for(let t=0;t<o;t+=1)e.duplicates.push(r[i[t]]);e.usedDuplicates=Array(o)}function I(t,e,r){if(null!==t&&"object"==typeof t){let i=e.indexOf(t);if(-1!==i)-1===r.indexOf(i)&&r.push(i);else if(e.push(t),Array.isArray(t))for(let i=0,o=t.length;i<o;i+=1)I(t[i],e,r);else{let i=Object.keys(t);for(let o=0,a=i.length;o<a;o+=1)I(t[i[o]],e,r)}}}function K(t,e){let r=new c(e=e||{});r.noRefs||D(t,r);let i=t;return(r.replacer&&(i=r.replacer.call({"":i},"",i)),O(r,0,i,!0,!0))?r.dump+"\n":""}return(0,X.K)(l,"compileStyleMap"),(0,X.K)(h,"encodeHex"),(0,X.K)(c,"State"),(0,X.K)(d,"indentString"),(0,X.K)(u,"generateNextLine"),(0,X.K)(p,"testImplicitResolving"),(0,X.K)(g,"isWhitespace"),(0,X.K)(f,"isPrintable"),(0,X.K)(y,"isNsCharOrWhitespace"),(0,X.K)(m,"isPlainSafe"),(0,X.K)(x,"isPlainSafeFirst"),(0,X.K)(C,"isPlainSafeLast"),
244(0,X.K)(b,"codePointAt"),(0,X.K)(k,"needIndentIndicator"),(0,X.K)(w,"chooseScalarStyle"),(0,X.K)(T,"writeScalar"),(0,X.K)(B,"blockHeader"),(0,X.K)(v,"dropEndingNewline"),(0,X.K)(S,"foldString"),(0,X.K)(_,"foldLine"),(0,X.K)(A,"escapeString"),(0,X.K)(F,"writeFlowSequence"),(0,X.K)(L,"writeBlockSequence"),(0,X.K)(M,"writeFlowMapping"),(0,X.K)($,"writeBlockMapping"),(0,X.K)(E,"detectType"),(0,X.K)(O,"writeNode"),(0,X.K)(D,"getDuplicateReferences"),(0,X.K)(I,"inspectNode"),(0,X.K)(K,"dump2"),tT.dump=K,tT}function tv(){if(G)return Z;G=1;let t=tw(),e=tB();function r(t,e){return function(){throw Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}return(0,X.K)(r,"renamed"),Z.Type=ti(),Z.Schema=to(),Z.FAILSAFE_SCHEMA=tl(),Z.JSON_SCHEMA=tp(),Z.CORE_SCHEMA=tg(),Z.DEFAULT_SCHEMA=tk(),Z.load=t.load,Z.loadAll=t.loadAll,Z.dump=e.dump,Z.YAMLException=te(),Z.types={binary:tm(),float:tu(),map:ts(),null:th(),pairs:tC(),set:tb(),timestamp:tf(),bool:tc(),int:td(),merge:ty(),omap:tx(),seq:tn(),str:ta()},Z.safeLoad=r("safeLoad","load"),Z.safeLoadAll=r("safeLoadAll","loadAll"),Z.safeDump=r("safeDump","dump"),Z}(0,X.K)(tB,"requireDumper"),(0,X.K)(tv,"requireJsYaml");var{JSON_SCHEMA:tS,load:t_}=V(tv())},27838(t,e,r){"use strict";r.d(e,{IU:()=>S,Jo:()=>P,T_:()=>M,UQ:()=>v,a6:()=>_,g0:()=>tu,hq:()=>g,jP:()=>F,lP:()=>B});var i=r(96865),o=r(48159),a=r(44505),n=r(40790),s=r(41916),l=r(34599),h=r(31293),c=r(86827),d=r(47829),u=r(52274),p=(0,c.K)((t,e)=>{if(e)return"translate("+-t.width/2+", "+-t.height/2+")";let r=t.x??0,i=t.y??0;return"translate("+-(r+t.width/2)+", "+-(i+t.height/2)+")"},"computeLabelTransform"),g={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},f={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function y(t,e){if(void 0===t||void 0===e)return{angle:0,deltaX:0,deltaY:0};t=m(t),e=m(e);let[r,i]=[t.x,t.y],[o,a]=[e.x,e.y],n=o-r,s=a-i;return{angle:Math.atan(s/n),deltaX:n,deltaY:s}}(0,c.K)(y,"calculateDeltaAndAngle");var m=(0,c.K)(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),x=(0,c.K)(t=>({x:(0,c.K)(function(e,r,i){let o=0,a=m(i[0]).x<m(i[i.length-1]).x?"left":"right";if(0===r&&Object.hasOwn(g,t.arrowTypeStart)){let{angle:e,deltaX:r}=y(i[0],i[1]);o=g[t.arrowTypeStart]*Math.cos(e)*(r>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(g,t.arrowTypeEnd)){let{angle:e,deltaX:r}=y(i[i.length-1],i[i.length-2]);o=g[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}let n=Math.abs(m(e).x-m(i[i.length-1]).x),s=Math.abs(m(e).y-m(i[i.length-1]).y),l=Math.abs(m(e).x-m(i[0]).x),h=Math.abs(m(e).y-m(i[0]).y),c=g[t.arrowTypeStart],d=g[t.arrowTypeEnd];if(n<d&&n>0&&s<d){let t=d+1-n;t*="right"===a?-1:1,o-=t}if(l<c&&l>0&&h<c){let t=c+1-l;t*="right"===a?-1:1,o+=t}return m(e).x+o},"x"),y:(0,c.K)(function(e,r,i){let o=0,a=m(i[0]).y<m(i[i.length-1]).y?"down":"up";if(0===r&&Object.hasOwn(g,t.arrowTypeStart)){let{angle:e,deltaY:r}=y(i[0],i[1]);o=g[t.arrowTypeStart]*Math.abs(Math.sin(e))*(r>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(g,t.arrowTypeEnd)){let{angle:e,deltaY:r}=y(i[i.length-1],i[i.length-2]);o=g[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}let n=Math.abs(m(e).y-m(i[i.length-1]).y),s=Math.abs(m(e).x-m(i[i.length-1]).x),l=Math.abs(m(e).y-m(i[0]).y),h=Math.abs(m(e).x-m(i[0]).x),c=g[t.arrowTypeStart],d=g[t.arrowTypeEnd];if(n<d&&n>0&&s<d){let t=d+1-n;t*="up"===a?-1:1,o-=t}if(l<c&&l>0&&h<c){let t=c+1-l;t*="up"===a?-1:1,o+=t}return m(e).y+o},"y")}),"getLineFunctionsWithOffset"),C=(0,c.K)((t,e,r,i,o,a=!1,n)=>{e.arrowTypeStart&&w(t,"start",e.arrowTypeStart,r,i,o,a,n),e.arrowTypeEnd&&w(t,"end",e.arrowTypeEnd,r,i,o,a,n)},"addEdgeMarkers"),b={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1}
244,one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},k=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],w=(0,c.K)((t,e,r,i,o,a,n=!1,s)=>{if(!r||"none"===r)return;let l=b[r],c=l&&k.includes(l.type);if(!l)return void h.R.warn(`Unknown arrow type: ${r}`);let d=l.type,u=`${o}_${a}-${d}${"start"===e?"Start":"End"}${n&&c?"-margin":""}`;if(s&&""!==s.trim()){let r=s.replace(/[^\dA-Za-z]/g,"_"),o=`${u}_${r}`;if(!document.getElementById(o)){let t=document.getElementById(u);if(t){let e=t.cloneNode(!0);e.id=o,e.querySelectorAll("path, circle, line").forEach(t=>{t.setAttribute("stroke",s),l.fill&&t.setAttribute("fill",s)}),t.parentNode?.appendChild(e)}}t.attr(`marker-${e}`,`url(${i}#${o})`)}else t.attr(`marker-${e}`,`url(${i}#${u})`)},"addEdgeMarker"),T=(0,c.K)(t=>"string"==typeof t?t:(0,l.D7)()?.flowchart?.curve,"resolveEdgeCurveType"),B=new Map,v=new Map,S=(0,c.K)(()=>{B.clear(),v.clear()},"clear"),_=(0,c.K)(t=>!!(t.label||t.startLabelLeft||t.startLabelRight||t.endLabelLeft||t.endLabelRight),"hasEdgeLabel"),A=(0,c.K)(t=>t?"string"==typeof t?t:t.reduce((t,e)=>t+";"+e,""):"","getLabelStyles"),F=(0,c.K)(async(t,e)=>{let r,i,s,c=(0,l.D7)(),u=(0,l.E)(c),{labelStyles:g}=(0,a.GX)(e);e.labelStyle=g;let f=t.insert("g").attr("class","edgeLabel"),y=f.insert("g").attr("class","label").attr("data-id",e.id),m="markdown"===e.labelType,x=await (0,n.GZ)(t,e.label,{style:A(e.labelStyle),useHtmlLabels:u,addSvgBackground:!0,isNode:!1,markdown:m,width:void 0},c);if(y.node().appendChild(x),h.R.info("abc82",e,e.labelType),u){let t=x.children[0],e=(0,d.Ltv)(x);i=r=await n.lT.measure(()=>t.getBoundingClientRect()),e.attr("width",r.width),e.attr("height",r.height)}else{let t=(0,d.Ltv)(x).select("text").node();await n.lT.measure(()=>{r=x.getBBox(),i=t&&"function"==typeof t.getBBox?t.getBBox():r})}if(y.attr("transform",p(i,u)),B.set(e.id,f),e.width=r.width,e.height=r.height,e.startLabelLeft){let r=t.insert("g").attr("class","edgeTerminals"),i=r.insert("g").attr("class","inner"),a=await (0,o.DA)(i,e.startLabelLeft,A(e.labelStyle)||"",!1,!1);s=a;let n=a.getBBox();if(u){let t=a.children[0],e=(0,d.Ltv)(a);n=t.getBoundingClientRect(),e.attr("width",n.width),e.attr("height",n.height)}i.attr("transform",p(n,u)),v.get(e.id)||v.set(e.id,{}),v.get(e.id).startLeft=r,L(s,e.startLabelLeft)}if(e.startLabelRight){let r=t.insert("g").attr("class","edgeTerminals"),i=r.insert("g").attr("class","inner"),a=await (0,o.DA)(i,e.startLabelRight,A(e.labelStyle)||"",!1,!1);s=a;let n=a.getBBox();if(u){let t=a.children[0],e=(0,d.Ltv)(a);n=t.getBoundingClientRect(),e.attr("width",n.width),e.attr("height",n.height)}i.attr("transform",p(n,u)),v.get(e.id)||v.set(e.id,{}),v.get(e.id).startRight=r,L(s,e.startLabelRight)}if(e.endLabelLeft){let r=t.insert("g").attr("class","edgeTerminals"),i=r.insert("g").attr("class","inner"),a=await (0,o.DA)(r,e.endLabelLeft,A(e.labelStyle)||"",!1,!1);s=a;let n=a.getBBox();if(u){let t=a.children[0],e=(0,d.Ltv)(a);n=t.getBoundingClientRect(),e.attr("width",n.width),e.attr("height",n.height)}i.attr("transform",p(n,u)),v.get(e.id)||v.set(e.id,{}),v.get(e.id).endLeft=r,L(s,e.endLabelLeft)}if(e.endLabelRight){let r=t.insert("g").attr("class","edgeTerminals"),i=r.insert("g").attr("class","inner"),a=await (0,o.DA)(r,e.endLabelRight,A(e.labelStyle)||"",!1,!1);s=a;let n=a.getBBox();if(u){let t=a.children[0],e=(0,d.Ltv)(a);n=t.getBoundingClientRect(),e.attr("width",n.width),e.attr("height",n.height)}i.attr("transform",p(n,u)),v.get(e.id)||v.set(e.id,{}),v.get(e.id).endRight=r,L(s,e.endLabelRight)}return x},"insertEdgeLabel");function L(t,e){(0,l.E)((0,l.D7)())&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}(0,c.K)(L,"setTerminalWidth");var M=(0,c.K)((t,e)=>{h.R.debug("Moving label abc88 ",t.id,t.label,B.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath,o=(0,l.D7)(),{subGraphTitleTotalMargin:a}=(0,i.Oi)(o);if(t.label){let i=B.get(t.id),o=t.x,n=t.y;if(r){let i=s._K.calcLabelPosition(r);h.R.debug("Moving label "+t.label+" from (",o,",",n,") to (",i.x,",",i.y,") abc88"),e.updatedPath&&(o=i.x,n=i.y)}i.attr("transform",`translate(${o}, ${n+a/2})`)}if(t.startLabelLeft){let e=v.get(t.id).startLeft,i=t.x,o=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_left",r);i=e.x,o=e.y}e.attr("transform",`translate(${i}, ${o})`)}if(t.startLabelRight){let e=v.get(t.id).startRight,i=t.x,o=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_right",r);i=e.x,o=e.y}e.attr("transform",`translate(${i}, ${o})`)}if(t.endLabelLeft){let e=v.get(t.id).endLeft,i=t.x,o=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_left",r);i=e.x,o=e.y}e.attr("transform",`translate(${i}, ${o})`)}if(t.endLabelRight){let e=v.get(t.id).endRight,i=t.x,o=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_right",r);i=e.x,o=e.y}e.attr("transform",`translate(${i}, ${o})`)}},"positionEdgeLabel"),$=(0,c.K)((t,e)=>{if(!t?.isLabelEdge||!t?.id?.endsWith("-to-label")||!Array.isArray(e)||2!==e.length)return e;let[r,i]=e,o=Math.abs(i.x-r.x),a=Math.abs(i.y-r.y);return o<.001||a<.001?e:a>=o?[r,{x:r.x,y:i.y},i]:[r,{x:i.x,y:r.y},i]},"orthogonalizeToLabelClippedPoints"),E=(0,c.K)((t,e)=>{let r=t.x,i=t.y,o=Math.abs(e.x-r),a=Math.abs(e.y-i),n=t.width/2,s=t.height/2;return o>=n||a>=s},"outsideNode"),O=(0,c.K)((t,e,r)=>{h.R.debug(`intersection calc abc89:
245  outsidePoint: ${JSON.stringify(e)}
246  insidePoint : ${JSON.stringify(r)}
247  node        : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);let i=t.x,o=t.y,a=Math.abs(i-r.x),n=t.width/2,s=r.x<e.x?n-a:n+a,l=t.height/2,c=Math.abs(e.y-r.y),d=Math.abs(e.x-r.x);
247if(Math.abs(o-e.y)*n>Math.abs(i-e.x)*l){let t=r.y<e.y?e.y-l-o:o-l-e.y;s=d*t/c;let i={x:r.x<e.x?r.x+s:r.x-d+s,y:r.y<e.y?r.y+c-t:r.y-c+t};return 0===s&&(i.x=e.x,i.y=e.y),0===d&&(i.x=e.x),0===c&&(i.y=e.y),h.R.debug(`abc89 top/bottom calc, Q ${c}, q ${t}, R ${d}, r ${s}`,i),i}{let t=c*(s=r.x<e.x?e.x-n-i:i-n-e.x)/d,o=r.x<e.x?r.x+d-s:r.x-d+s,a=r.y<e.y?r.y+t:r.y-t;return h.R.debug(`sides calc abc89, Q ${c}, q ${t}, R ${d}, r ${s}`,{_x:o,_y:a}),0===s&&(o=e.x,a=e.y),0===d&&(o=e.x),0===c&&(a=e.y),{x:o,y:a}}},"intersection"),D=(0,c.K)((t,e)=>{h.R.warn("abc88 cutPathAtIntersect",t,e);let r=[],i=t[0],o=!1;return t.forEach(t=>{if(h.R.info("abc88 checking point",t,e),E(e,t)||o)h.R.warn("abc88 outside",t,i),i=t,o||r.push(t);else{let a=O(e,i,t);h.R.debug("abc88 inside",t,i,a),h.R.debug("abc88 intersection",a,e);let n=!1;r.forEach(t=>{n=n||t.x===a.x&&t.y===a.y}),r.some(t=>t.x===a.x&&t.y===a.y)?h.R.warn("abc88 no intersect",a,r):r.push(a),o=!0}}),h.R.debug("returning points",r),r},"cutPathAtIntersect");function I(t){let e=[],r=[];for(let i=1;i<t.length-1;i++){let o=t[i-1],a=t[i],n=t[i+1];o.x===a.x&&a.y===n.y&&Math.abs(a.x-n.x)>5&&Math.abs(a.y-o.y)>5?(e.push(a),r.push(i)):o.y===a.y&&a.x===n.x&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-n.y)>5&&(e.push(a),r.push(i))}return{cornerPoints:e,cornerPointPositions:r}}(0,c.K)(I,"extractCornerPoints");var K=(0,c.K)(function(t,e,r){let i=e.x-t.x,o=e.y-t.y,a=r/Math.sqrt(i*i+o*o);return{x:e.x-a*i,y:e.y-a*o}},"findAdjacentPoint"),q=(0,c.K)(function(t){let{cornerPointPositions:e}=I(t),r=[];for(let i=0;i<t.length;i++)if(e.includes(i)){let e=t[i-1],o=t[i+1],a=t[i],n=K(e,a,5),s=K(o,a,5),l=s.x-n.x,c=s.y-n.y;r.push(n);let d=2*Math.sqrt(2),u={x:a.x,y:a.y};Math.abs(o.x-e.x)>10&&Math.abs(o.y-e.y)>=10?(h.R.debug("Corner point fixing",Math.abs(o.x-e.x),Math.abs(o.y-e.y)),u=a.x===n.x?{x:l<0?n.x-5+d:n.x+5-d,y:c<0?n.y-d:n.y+d}:{x:l<0?n.x-d:n.x+d,y:c<0?n.y-5+d:n.y+5-d}):h.R.debug("Corner point skipping fixing",Math.abs(o.x-e.x),Math.abs(o.y-e.y)),r.push(u,s)}else r.push(t[i]);return r},"fixCorners"),R=(0,c.K)((t,e,r)=>{let i=Math.floor((t-e-r)/4),o=Array(Number.isFinite(i)?Math.max(0,i):0).fill("2 2").join(" ");return`0 ${e} ${o} ${r}`},"generateDashArray"),P=(0,c.K)(function(t,e,r,i,o,n,c,p=!1){let g,y;if(!c)throw Error(`insertEdge: missing diagramId for edge "${e.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:m,layout:b}=(0,l.D7)(),k=e.points,w=!1,B=[];for(let t in e.cssCompiledStyles)(0,a.KX)(t)||B.push(e.cssCompiledStyles[t]);if("swimlane"===b){if(n.intersect&&o.intersect&&Array.isArray(k)&&k.length>=2)if(2===k.length)k=[o.intersect(k[0]),n.intersect(k[1])];else{let t=k.slice(1,-1),e=t[0],r=t[t.length-1],i=.5>Math.abs(k[k.length-1].x-r.x)&&.5>Math.abs(k[k.length-1].y-r.y),a=o.intersect(e),s=i?r:n.intersect(r),l=.5>Math.abs(s.x-r.x)&&.5>Math.abs(s.y-r.y);k=[....5>Math.abs(a.x-e.x)&&.5>Math.abs(a.y-e.y)?[]:[a],...t,...l?[]:[s]]}k=$(e,k)}else n.intersect&&o.intersect&&!p&&((k=k.slice(1,e.points.length-1)).unshift(o.intersect(k[0])),k.push(n.intersect(k[k.length-1])));let v=btoa(JSON.stringify(k));e.toCluster&&(h.R.info("to cluster abc88",r.get(e.toCluster)),k=D(e.points,r.get(e.toCluster).node),w=!0),e.fromCluster&&(h.R.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(k,null,2)),k=D(k.reverse(),r.get(e.fromCluster).node).reverse(),w=!0);let S=k.filter(t=>!Number.isNaN(t.y)),_=T(e.curve);"rounded"!==_&&(S=q(S));let A=d.lUB;switch(_){case"linear":case"rounded":A=d.lUB;break;case"basis":default:A=d.qrM;break;case"cardinal":A=d.y8u;break;case"bumpX":A=d.Wi0;break;case"bumpY":A=d.PGM;break;case"catmullRom":A=d.oDi;break;case"monotoneX":A=d.nVG;break;case"monotoneY":A=d.uxU;break;case"natural":A=d.Xf2;break;case"step":A=d.GZz;break;case"stepAfter":A=d.UPb;break;case"stepBefore":A=d.dyv}let{x:F,y:L}=x(e),M=(0,d.n8j)().x(F).y(L).curve(A);switch(e.thickness){case"normal":default:g="edge-thickness-normal";break;case"thick":g="edge-thickness-thick";break;case"invisible":g="edge-thickness-invisible"}switch(e.pattern){case"solid":default:g+=" edge-pattern-solid";break;case"dotted":g+=" edge-pattern-dotted";break;case"dashed":g+=" edge-pattern-dashed"}let E="rounded"===_?z(j(S,e),5):M(S),O=Array.isArray(e.style)?e.style:[e.style],I=O.find(t=>t?.startsWith("stroke:")),K="";e.animate&&(K="edge-animation-fast"),e.animation&&(K="edge-animation-"+e.animation);let P=!1;
247if("handDrawn"===e.look){let r=u.A.svg(t);Object.assign([],S);let i=r.path(E,{roughness:.3,seed:m});g+=" transition";let o=(y=(0,d.Ltv)(i).select("path").attr("id",`${c}-${e.id}`).attr("class"," "+g+(e.classes?" "+e.classes:"")+(K?" "+K:"")).attr("style",O?O.reduce((t,e)=>t+";"+e,""):"")).attr("d");y.attr("d",o),t.node().appendChild(y.node())}else{let r=B.join(";"),i=O?O.reduce((t,e)=>t+e+";",""):"",o=(r?r+";"+i+";":i)+";"+(O?O.reduce((t,e)=>t+";"+e,""):"");y=t.append("path").attr("d",E).attr("id",`${c}-${e.id}`).attr("class"," "+g+(e.classes?" "+e.classes:"")+(K?" "+K:"")).attr("style",o),I=o.match(/stroke:([^;]+)/)?.[1],P=!0===e.animate||!!e.animation||r.includes("animation");let a=y.node(),n="function"==typeof a.getTotalLength?a.getTotalLength():0,s=f[e.arrowTypeStart]||0,l=f[e.arrowTypeEnd]||0;if("neo"===e.look&&!P){let t="dotted"===e.pattern||"dashed"===e.pattern?R(n,s,l):`0 ${s} ${n-s-l} ${l}`,r=`stroke-dasharray: ${t}; stroke-dashoffset: 0;`;y.attr("style",r+y.attr("style"))}}y.attr("data-edge",!0),y.attr("data-et","edge"),y.attr("data-id",e.id),y.attr("data-points",v),y.attr("data-look",(0,s.KL)(e.look)),e.showPoints&&S.forEach(e=>{t.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",e.x).attr("cy",e.y)});let N="";((0,l.D7)().flowchart.arrowMarkerAbsolute||(0,l.D7)().state.arrowMarkerAbsolute)&&(N=(N=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)")),h.R.info("arrowTypeStart",e.arrowTypeStart),h.R.info("arrowTypeEnd",e.arrowTypeEnd);let W=!P&&e?.look==="neo";C(y,e,N,c,i,W,I);let U=Math.floor(k.length/2),H=k[U];s._K.isLabelCoordinateInPath(H,y.attr("d"))||(w=!0);let Y={};return w&&(Y.updatedPath=k),Y.originalPath=e.points,Y},"insertEdge");function z(t,e){if(t.length<2)return"";let r="",i=t.length;for(let o=0;o<i;o++){let a=t[o],n=t[o-1],s=t[o+1];if(0===o)r+=`M${a.x},${a.y}`;else if(o===i-1)r+=`L${a.x},${a.y}`;else{let t=a.x-n.x,i=a.y-n.y,o=s.x-a.x,l=s.y-a.y,h=Math.hypot(t,i),c=Math.hypot(o,l);
247if(h<1e-5||c<1e-5){r+=`L${a.x},${a.y}`;continue}let d=t/h,u=i/h,p=o/c,g=l/c,f=Math.acos(Math.max(-1,Math.min(1,d*p+u*g)));if(f<1e-5||1e-5>Math.abs(Math.PI-f)){r+=`L${a.x},${a.y}`;continue}let y=Math.min(e/Math.sin(f/2),h/2,c/2),m=a.x-d*y,x=a.y-u*y,C=a.x+p*y,b=a.y+g*y;r+=`L${m},${x}Q${a.x},${a.y} ${C},${b}`}}return r}function N(t,e){if(!t||!e)return{angle:0,deltaX:0,deltaY:0};let r=e.x-t.x,i=e.y-t.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}function j(t,e){let r=t.map(t=>({...t}));if(t.length>=2&&g[e.arrowTypeStart]){let i=g[e.arrowTypeStart],o=t[0],{angle:a}=N(o,t[1]),n=i*Math.cos(a),s=i*Math.sin(a);r[0].x=o.x+n,r[0].y=o.y+s}let i=t.length;if(i>=2&&g[e.arrowTypeEnd]){let o=g[e.arrowTypeEnd],a=t[i-1],{angle:n}=N(t[i-2],a),s=o*Math.cos(n),l=o*Math.sin(n);r[i-1].x=a.x-s,r[i-1].y=a.y-l}return r}(0,c.K)(z,"generateRoundedPath"),(0,c.K)(N,"calculateDeltaAndAngle"),(0,c.K)(j,"applyMarkerOffsetsToPoints");var W=(0,c.K)((t,e,r,i)=>{e.forEach(e=>{td[e](t,r,i)})},"insertMarkers"),U=(0,c.K)((t,e,r)=>{h.R.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),t.append("marker").attr("id",r+"_"+e+"-extensionStart-margin").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd-margin").attr("class","marker extension "+e).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),H=(0,c.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart-margin").attr("class","marker composition "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd-margin").attr("class","marker composition "+e).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),Y=(0,c.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart-margin").attr("class","marker aggregation "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd-margin").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),G=(0,c.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart-margin").attr("class","marker dependency "+e).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd-margin").attr("class","marker dependency "+e).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),X=(0,c.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart-margin").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd-margin").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),V=(0,c.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("pol
247ygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),Z=(0,c.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),Q=(0,c.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossEnd-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),t.append("marker").attr("id",r+"_"+e+"-crossStart-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),J=(0,c.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),tt=(0,c.K)((t,e,r)=>{let{themeVariables:i}=(0,l.zj)(),{transitionColor:o}=i;t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${o}`)},"barbNeo"),te=(0,c.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),tr=(0,c.K)((t,e,r)=>{let i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");let o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),o.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),ti=(0,c.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),to=(0,c.K)((t,e,r)=>{let i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),o.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),ta=(0,c.K)((t,e,r)=>{let{themeVariables:i}=(0,l.zj)(),{strokeWidth:o}=i;t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${o}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${o}`)},"only_one_neo"),tn=(0,c.K)((t,e,r)=>{let{themeVariables:i}=(0,l.zj)(),{strokeWidth:o,mainBkg:a}=i,n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");n.append("circle").attr("fill",a??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${o}`).attr("r",6),n.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${o}`);let s=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");s.append("circle").attr("fill",a??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${o}`).attr("r",6),s.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${o}`)},"zero_or_one_neo"),ts=(0,c.K)((t,e,r)=>{let{themeVariables:i}=(0,l.zj)(),{strokeWidth:o}=i;t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${o}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${o}`)},"one_or_more_neo"),tl=(0,c.K)((t,e,r)=>{let{themeVariables:i}=(0,l.zj)(),{strokeWidth:o,mainBkg:a}=i,n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");n.append("circle").attr("fill",a??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${o}`),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${o}`);let s=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");
247s.append("circle").attr("fill",a??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${o}`),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${o}`)},"zero_or_more_neo"),th=(0,c.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
248      L20,10
249      M20,10
250      L0,20`)},"requirement_arrow"),tc=(0,c.K)((t,e,r)=>{let{themeVariables:i}=(0,l.zj)(),{strokeWidth:o}=i;t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${o}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
251      L20,10
252      M20,10
253      L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),td={extension:U,composition:H,aggregation:Y,dependency:G,lollipop:X,point:V,circle:Z,cross:Q,barb:J,barbNeo:tt,only_one:te,zero_or_one:tr,one_or_more:ti,zero_or_more:to,only_one_neo:ta,zero_or_one_neo:tn,one_or_more_neo:ts,zero_or_more_neo:tl,requirement_arrow:th,requirement_contains:(0,c.K)((t,e,r)=>{let i=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),requirement_arrow_neo:tc,requirement_contains_neo:(0,c.K)((t,e,r)=>{let{themeVariables:i}=(0,l.zj)(),{strokeWidth:o}=i,a=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");a.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),a.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),a.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),a.selectAll("*").attr("stroke-width",`${o}`)},"requirement_contains_neo")},tu=W},44505(t,e,r){"use strict";r.d(e,{Fr:()=>d,GX:()=>c,KX:()=>h,WW:()=>s,ue:()=>a});var i=r(34599),o=r(86827),a=(0,o.K)(t=>{let{handDrawnSeed:e}=(0,i.D7)();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),n=(0,o.K)(t=>Array.isArray(t)?t:t?t.split(";").map(t=>t.trim()).filter(Boolean):[],"normalizeStyleList"),s=(0,o.K)(t=>{let e=l([...t.cssCompiledStyles||[],...t.cssStyles||[],...n(t.labelStyle)]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),l=(0,o.K)(t=>{let e=new Map;return t.forEach(t=>{let[r,i]=t.split(":");e.set(r.trim(),i?.trim())}),e},"styles2Map"),h=(0,o.K)(t=>"color"===t||"font-size"===t||"font-family"===t||"font-weight"===t||"font-style"===t||"text-decoration"===t||"text-align"===t||"text-transform"===t||"line-height"===t||"letter-spacing"===t||"word-spacing"===t||"text-shadow"===t||"text-overflow"===t||"white-space"===t||"word-wrap"===t||"word-break"===t||"overflow-wrap"===t||"hyphens"===t,"isLabelStyle"),c=(0,o.K)(t=>{let{stylesArray:e}=s(t),r=[],i=[],o=[],a=[];return e.forEach(t=>{let e=t[0];h(e)?r.push(t.join(":")+" !important"):(i.push(t.join(":")+" !important"),e.includes("stroke")&&o.push(t.join(":")+" !important"),"fill"===e&&a.push(t.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:e,borderStyles:o,backgroundStyles:a}},"styles2String"),d=(0,o.K)((t,e)=>{let{themeVariables:r,handDrawnSeed:o}=(0,i.D7)(),{nodeBorder:a,mainBkg:n}=r,{stylesMap:l}=s(t);return Object.assign({roughness:.7,fill:l.get("fill")||n,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:l.get("stroke")||a,seed:o,strokeWidth:l.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:u(l.get("stroke-dasharray"))},e)},"userNodeOverrides"),u=(0,o.K)(t=>{if(!t)return[0,0];let e=t.trim().split(/\s+/).map(Number);if(1===e.length){let t=isNaN(e[0])?0:e[0];return[t,t]}return[isNaN(e[0])?0:e[0],isNaN(e[1])?0:e[1]]},"getStrokeDashArray")},24695(t,e,r){"use strict";r.d(e,{WY:()=>v,dn:()=>B,pC:()=>w,Gc:()=>C});
253var i=r(34599),o=r(31293),a=r(86827);let n=(t,e)=>!!t&&!!((e&&""===t.prefix||t.prefix)&&t.name),s=Object.freeze({left:0,top:0,width:16,height:16}),l=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),h=Object.freeze({...s,...l}),c=Object.freeze({...h,body:"",hidden:!1});function d(t,e){let r,i,o=(r={},!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0),(i=((t.rotate||0)+(e.rotate||0))%4)&&(r.rotate=i),r);for(let r in c)r in l?r in t&&!(r in o)&&(o[r]=l[r]):r in e?o[r]=e[r]:r in t&&(o[r]=t[r]);return o}function u(t,e,r){let i=t.icons,o=t.aliases||Object.create(null),a={};function n(t){a=d(i[t]||o[t],a)}return n(e),r.forEach(n),d(t,a)}let p=Object.freeze({...Object.freeze({width:null,height:null}),...l}),g=/(-?[0-9.]*[0-9]+[0-9.]*)/g,f=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function y(t,e,r){if(1===e)return t;if(r=r||100,"number"==typeof t)return Math.ceil(t*e*r)/r;if("string"!=typeof t)return t;let i=t.split(g);if(null===i||!i.length)return t;let o=[],a=i.shift(),n=f.test(a);for(;;){if(n){let t=parseFloat(a);isNaN(t)?o.push(a):o.push(Math.ceil(t*e*r)/r)}else o.push(a);if(void 0===(a=i.shift()))return o.join("");n=!n}}let m=/\sid="(\S+)"/g,x=new Map;var C={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},b=new Map,k=new Map,w=(0,a.K)(t=>{for(let e of t){if(!e.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(o.R.debug("Registering icon pack:",e.name),"loader"in e)k.set(e.name,e.loader);else if("icons"in e)b.set(e.name,e.icons);else throw o.R.error("Invalid icon loader:",e),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),T=(0,a.K)(async(t,e)=>{let r=((t,e,r,i="")=>{let o=t.split(":");if("@"===t.slice(0,1)){if(o.length<2||o.length>3)return null;i=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){let t=o.pop(),r=o.pop(),a={provider:o.length>0?o[0]:i,prefix:r,name:t};return e&&!n(a)?null:a}let a=o[0],s=a.split("-");if(s.length>1){let t={provider:i,prefix:s.shift(),name:s.join("-")};return e&&!n(t)?null:t}if(r&&""===i){let t={provider:i,prefix:"",name:a};return e&&!n(t,r)?null:t}return null})(t,!0,void 0!==e);if(!r)throw Error(`Invalid icon name: ${t}`);let i=r.prefix||e;if(!i)throw Error(`Icon name must contain a prefix: ${t}`);let a=b.get(i);if(!a){let t=k.get(i);if(!t)throw Error(`Icon set not found: ${r.prefix}`);try{a={...await t(),prefix:i},b.set(i,a)}catch(t){throw o.R.error(t),Error(`Failed to load icon set: ${r.prefix}`)}}let s=function(t,e){var r;let i,o,a;if(t.icons[e])return u(t,e,[]);let n=(r=[e],i=t.icons,o=t.aliases||Object.create(null),a=Object.create(null),(r||Object.keys(i).concat(Object.keys(o))).forEach(function t(e){if(i[e])return a[e]=[];if(!(e in a)){a[e]=null;let r=o[e]&&o[e].parent,i=r&&t(r);i&&(a[e]=[r].concat(i))}return a[e]}),a)[e];return n?u(t,e,n):null}(a,r.name);if(!s)throw Error(`Icon not found: ${t}`);return s},"getRegisteredIconData"),B=(0,a.K)(async t=>{try{return await T(t),!0}catch{return!1}},"isIconAvailable"),v=(0,a.K)(async(t,e,r)=>{var a;let n,s,l,c,d,u,g,f,b,k,w,B,v,S;try{n=await T(t,e?.fallbackPrefix)}catch(t){o.R.error(t),n=C}let _=(a=n,c={...h,...a},d={...p,...e},u={left:c.left,top:c.top,width:c.width,height:c.height},g=c.body,[c,d].forEach(t=>{var e,r,i,o;let a,n,s=[],l=t.hFlip,h=t.vFlip,c=t.rotate;switch(l?h?c+=2:(s.push("translate("+(u.width+u.left).toString()+" "+(0-u.top).toString()+")"),s.push("scale(-1 1)"),u.top=u.left=0):h&&(s.push("translate("+(0-u.left).toString()+" "+(u.height+u.top).toString()+")"),s.push("scale(1 -1)"),u.top=u.left=0),c<0&&(c-=4*Math.floor(c/4)),c%=4){case 1:s.unshift("rotate(90 "+(a=u.height/2+u.top).toString()+" "+a.toString()+")");break;case 2:s.unshift("rotate(180 "+(u.width/2+u.left).toString()+" "+(u.height/2+u.top).toString()+")");break;case 3:s.unshift("rotate(-90 "+(a=u.width/2+u.left).toString()+" "+a.toString()+")")}
253c%2==1&&(u.left!==u.top&&(a=u.left,u.left=u.top,u.top=a),u.width!==u.height&&(a=u.width,u.width=u.height,u.height=a)),s.length&&(e=g,r='<g transform="'+s.join(" ")+'">',i=(n=function(t,e="defs"){let r="",i=t.indexOf("<"+e);for(;i>=0;){let o=t.indexOf(">",i),a=t.indexOf("</"+e);if(-1===o||-1===a)break;let n=t.indexOf(">",a);if(-1===n)break;r+=t.slice(o+1,a).trim(),t=t.slice(0,i).trim()+t.slice(n+1)}return{defs:r,content:t}}(e)).defs,o=r+n.content+"</g>",g=i?"<defs>"+i+"</defs>"+o:o)}),f=d.width,b=d.height,k=u.width,w=u.height,null===f?s=y(l=null===b?"1em":"auto"===b?w:b,k/w):(s="auto"===f?k:f,l=null===b?y(s,w/k):"auto"===b?w:b),B={},(v=(t,e)=>{"unset"!==e&&"undefined"!==e&&"none"!==e&&(B[t]=e.toString())})("width",s),v("height",l),B.viewBox=(S=[u.left,u.top,k,w]).join(" "),{attributes:B,viewBox:S,body:g}),A=function(t,e){let r=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let t in e)r+=" "+t+'="'+e[t]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+t+"</svg>"}(function(t){let e,r=[];for(;e=m.exec(t);)r.push(e[1]);if(!r.length)return t;let i="suffix"+(0x1000000*Math.random()|Date.now()).toString(16);return r.forEach(e=>{var r;let o,a=(r=(r=e).replace(/[0-9]+$/,"")||"a",o=x.get(r)||0,x.set(r,o+1),o?`${r}${o}`:r),n=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(RegExp('([#;"])('+n+')([")]|\\.[a-z])',"g"),"$1"+a+i+"$3")}),t=t.replace(RegExp(i,"g"),"")}(_.body),{..._.attributes,...r});return(0,i.jZ)(A,(0,i.zj)())},"getIconSVG")},10561(t,e,r){"use strict";r.d(e,{XX:()=>g,q7:()=>f,sO:()=>p});var i=r(24980),o=r(27838),a=r(96865),n=r(48159),s=r(41916),l=r(34599),h=r(31293),c=r(86827),d={common:l.Y2,getConfig:l.zj,insertCluster:i.U,insertEdge:o.Jo,insertEdgeLabel:o.jP,insertMarkers:o.g0,insertNode:a.on,interpolateToCurve:s.Ib,labelHelper:n.Zk,log:h.R,positionEdgeLabel:o.T_},u={},p=(0,c.K)(t=>{for(let e of t)u[e.name]=e},"registerLayoutLoaders");(0,c.K)(()=>{p([{name:"dagre",loader:(0,c.K)(async()=>await Promise.all([r.e("2831"),r.e("8307")]).then(r.bind(r,77310)),"loader")},{name:"swimlane",loader:(0,c.K)(async()=>await r.e("5643").then(r.bind(r,77430)),"loader")},{name:"cose-bilkent",loader:(0,c.K)(async()=>await Promise.all([r.e("4950"),r.e("8645")]).then(r.bind(r,2180)),"loader")}])},"registerDefaultLayoutLoaders")();var g=(0,c.K)(async(t,e)=>{if(!(t.layoutAlgorithm in u))throw Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(let e of t.nodes){let r=e.domId||e.id;e.domId=`${t.diagramId}-${r}`}let r=u[t.layoutAlgorithm],i=await r.loader(),{theme:o,themeVariables:a}=t.config,{useGradient:n,gradientStart:s,gradientStop:l}=a,h=e.attr("id");if(e.append("defs").append("filter").attr("id",`${h}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${o?.includes("dark")?"#FFFFFF":"#000000"}`),e.append("defs").append("filter").attr("id",`${h}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${o?.includes("dark")?"#FFFFFF":"#000000"}`),n){let t=e.append("linearGradient").attr("id",e.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("svg:stop").attr("offset","0%").attr("stop-color",s).attr("stop-opacity",1),t.append("svg:stop").attr("offset","100%").attr("stop-color",l).attr("stop-opacity",1)}return i.render(t,e,d,{algorithm:r.algorithm})},"render"),f=(0,c.K)((t="",{fallback:e="dagre"}={})=>{if(t in u)return t;if(e in u)return h.R.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm")},31293(t,e,r){"use strict";r.d(e,{H:()=>s,R:()=>n});var i=r(86827),o=r(74353),a={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},n={trace:(0,i.K)((...t)=>{},"trace"),debug:(0,i.K)((...t)=>{},"debug"),info:(0,i.K)((...t)=>{},"info"),warn:(0,i.K)((...t)=>{},"warn"),error:(0,i.K)((...t)=>{},"error"),fatal:(0,i.K)((...t)=>{},"fatal")},s=(0,i.K)(function(t="fatal"){let e=a.fatal;"string"==typeof t?t.toLowerCase()in a&&(e=a[t]):"number"==typeof t&&(e=t),n.trace=()=>{},n.debug=()=>{},n.info=()=>{},n.warn=()=>{},n.error=()=>{},n.fatal=()=>{},e<=a.fatal&&(n.fatal=console.error?console.error.bind(console,l("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",l("FATAL"))),e<=a.error&&(n.error=console.error?console.error.bind(console,l("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",l("ERROR"))),e<=a.warn&&(n.warn=console.warn?console.warn.bind(console,l("WARN"),"color: orange"):console.log.bind(console,"\x1b[33m",l("WARN"))),e<=a.info&&(n.info=console.info?console.info.bind(console,l("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",l("INFO"))),e<=a.debug&&(n.debug=console.debug?console.debug.bind(console,l("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("DEBUG"))),e<=a.trace&&(n.trace=console.debug?console.debug.bind(console,l("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("TRACE")))},"setLogLevel"),l=(0,i.K)(t=>{let e=o().format("ss.SSS");return`%c${e} : ${t} : `},"format")},86827(t,e,r){"use strict";r.d(e,{K:()=>o,V:()=>a});var i=Object.defineProperty,o=(t,e)=>i(t,"name",{value:e,configurable:!0}),a=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})}},69965(t,e,r){"use strict";r.r(e),r.d(e,{paintLayoutData:()=>o.nf,default:()=>r3,createCommonLayoutRenderer:()=>o.xY,clearLayoutRenderState:()=>o.n5,defaultMeasureLayout:()=>o.QV});var i=r(5637),o=r(5691),a=r(841),n=r(10561);r(24980),r(27838),r(96865),r(48159),r(44505),r(40790);var s=r(24695),l=r(41916),h=r(34599),c=r(31293),d=r(86827),u=r(84146),p=r(47829),g="comm",f="rule",y="decl",m="@keyframes",x="@layer",C=Math.abs,b=String.fromCharCode;function k(t,e,r){return t.replace(e,r)}function w(t,e){return 0|t.charCodeAt(e)}function T(t,e,r){return t.slice(e,r)}function B(t){return t.length}function v(t,e){return e.push(t),t}function S(t,e){for(var r="",i=0;i<t.length;i++)r+=e(t[i],i,t,e)||"";return r}function _(t,e,r,i){switch(t.type){case x:if(t.children.length)break;case"@import":case"@namespace":case y:return t.return=t.return||t.value;case g:return"";case m:return t.return=t.value+"{"+S(t.children,i)+"}";case f:if(!B(t.value=t.props.join(",")))return""}return B(r=S(t.children,i))?t.return=t.value+"{"+r+"}":""}var A=1,F=1,L=0,M=0,$=0,E="";function O(t,e,r,i,o,a,n,s){return{value:t,root:e,parent:r,type:i,props:o,children:a,line:A,column:F,length:n,return:"",siblings:s}}function D(){return $=M<L?w(E,M++):0,F++,10===$&&(F=1,A++),$}function I(){return w(E,M)}function K(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function q(t){var e,r;return(e=M-1,r=function t(e){for(;D();)switch($){case e:return M;case 34:case 39:34!==e&&39!==e&&t($);break;case 40:41===e&&t(e);break;case 92:D()}return M}(91===t?t+2:40===t?t+1:t),T(E,e,r)).trim()}function R(t,e,r,i,o,a,n,s,l,h,c,d){for(var u=o-1,p=0===o?a:[""],g=p.length,y=0,m=0,x=0;y<i;++y)for(var b=0,w=T(t,u+1,u=C(m=n[y])),B=t;b<g;++b)(B=(m>0?p[b]+" "+w:k(w,/&\f/g,p[b])).trim())&&(l[x++]=B);return O(t,e,r,0===o?f:s,l,h,c,d)}function P(t,e,r,i,o){return O(t,e,r,y,T(t,0,i),T(t,i+1,-1),i,o)}var z=r(99418),N=r(61069),j=r(79480),W=r(14608),U=r(19663);function H(t){if(null==t)return!0;
253if((0,j.X)(t))return("function"==typeof t.splice||"string"==typeof t||!!(0,N.P)(t)||!!(0,U.i)(t)||!!(0,W.N)(t))&&0===t.length;if("object"==typeof t||"function"==typeof t){let e;if(t instanceof Map||t instanceof Set)return 0===t.size;let r=Object.keys(t);return(e=t?.constructor,t===("function"==typeof e?e.prototype:Object.prototype))?0===r.filter(t=>"constructor"!==t).length:0===r.length}return!0}var Y={id:"c4",detector:(0,d.K)(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),loader:(0,d.K)(async()=>{let{diagram:t}=await r.e("871").then(r.bind(r,87834));return{id:"c4",diagram:t}},"loader")},G="flowchart",X=(0,d.K)((t,e)=>e?.flowchart?.defaultRenderer!=="dagre-wrapper"&&e?.flowchart?.defaultRenderer!=="elk"&&/^\s*graph/.test(t),"detector"),V=(0,d.K)(async()=>{let{diagram:t}=await Promise.all([r.e("8979"),r.e("5394")]).then(r.bind(r,96089));return{id:G,diagram:t}},"loader"),Z={id:G,detector:X,loader:V},Q="flowchart-v2",J=(0,d.K)((t,e)=>e?.flowchart?.defaultRenderer!=="dagre-d3"&&(e?.flowchart?.defaultRenderer==="elk"&&(e.layout="elk"),!!/^\s*graph/.test(t)&&e?.flowchart?.defaultRenderer==="dagre-wrapper"||/^\s*flowchart/.test(t)),"detector"),tt=(0,d.K)(async()=>{let{diagram:t}=await Promise.all([r.e("8979"),r.e("3013")]).then(r.bind(r,96089));return{id:Q,diagram:t}},"loader"),te={id:Q,detector:J,loader:tt},tr="swimlane",ti=(0,d.K)(t=>/^\s*swimlane-beta\b/.test(t),"detector"),to=(0,d.K)(async()=>{let{diagram:t}=await Promise.all([r.e("8979"),r.e("1012")]).then(r.bind(r,67567));return{id:tr,diagram:t}},"loader"),ta={id:tr,detector:ti,loader:to},tn={id:"er",detector:(0,d.K)(t=>/^\s*erDiagram/.test(t),"detector"),loader:(0,d.K)(async()=>{let{diagram:t}=await r.e("9241").then(r.bind(r,94560));return{id:"er",diagram:t}},"loader")},ts="gitGraph",tl=(0,d.K)(t=>/^\s*gitGraph/.test(t),"detector"),th=(0,d.K)(async()=>{let{diagram:t}=await Promise.all([r.e("4936"),r.e("2214")]).then(r.bind(r,46789));return{id:ts,diagram:t}},"loader"),tc={id:ts,detector:tl,loader:th},td="gantt",tu=(0,d.K)(t=>/^\s*gantt/.test(t),"detector"),tp=(0,d.K)(async()=>{let{diagram:t}=await r.e("4779").then(r.bind(r,92822));return{id:td,diagram:t}},"loader"),tg={id:td,detector:tu,loader:tp},tf="info",ty=(0,d.K)(t=>/^\s*info/.test(t),"detector"),tm=(0,d.K)(async()=>{let{diagram:t}=await Promise.all([r.e("4936"),r.e("2371")]).then(r.bind(r,23566));return{id:tf,diagram:t}},"loader"),tx={id:tf,detector:ty,loader:tm},tC={id:"pie",detector:(0,d.K)(t=>/^\s*pie/.test(t),"detector"),loader:(0,d.K)(async()=>{let{diagram:t}=await Promise.all([r.e("4936"),r.e("1483")]).then(r.bind(r,76806));return{id:"pie",diagram:t}},"loader")},tb="quadrantChart",tk=(0,d.K)(t=>/^\s*quadrantChart/.test(t),"detector"),tw=(0,d.K)(async()=>{let{diagram:t}=await r.e("1091").then(r.bind(r,87486));return{id:tb,diagram:t}},"loader"),tT={id:tb,detector:tk,loader:tw},tB="xychart",tv=(0,d.K)(t=>/^\s*xychart(-beta)?/.test(t),"detector"),tS=(0,d.K)(async()=>{let{diagram:t}=await r.e("9678").then(r.bind(r,34061));return{id:tB,diagram:t}},"loader"),t_={id:tB,detector:tv,loader:tS},tA="requirement",tF=(0,d.K)(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),tL=(0,d.K)(async()=>{let{diagram:t}=await r.e("2432").then(r.bind(r,13283));return{id:tA,diagram:t}},"loader"),tM={id:tA,detector:tF,loader:tL},t$="sequence",tE=(0,d.K)(t=>/^\s*sequenceDiagram/.test(t),"detector"),tO=(0,d.K)(async()=>{let{diagram:t}=await r.e("5250").then(r.bind(r,24985));return{id:t$,diagram:t}},"loader"),tD={id:t$,detector:tE,loader:tO},tI="class",tK=(0,d.K)((t,e)=>e?.class?.defaultRenderer!=="dagre-wrapper"&&/^\s*classDiagram/.test(t),"detector"),tq=(0,d.K)(async()=>{let{diagram:t}=await Promise.all([r.e("5430"),r.e("3685")]).then(r.bind(r,14772));return{id:tI,diagram:t}},"loader"),tR={id:tI,detector:tK,loader:tq},tP="classDiagram",tz=(0,d.K)((t,e)=>!!/^\s*classDiagram/.test(t)&&e?.class?.defaultRenderer==="dagre-wrapper"||/^\s*classDiagram-v2/.test(t),"detector"),tN=(0,d.K)(async()=>{let{diagram:t}=await Promise.all([r.e("5430"),r.e("8077")]).then(r.bind(r,1388));return{id:tP,diagram:t}},"loader"),tj={id:tP,detector:tz,loader:tN},tW="state",tU=(0,d.K)((t,e)=>e?.state?.defaultRenderer!=="dagre-wrapper"&&/^\s*stateDiagram/.test(t),"detector"),tH=(0,d.K)(async()=>{let{diagram:t}=await Promise.all([r.e("2831"),r.e("5155"),r.e("1773")]).then(r.bind(r,94220));return{id:tW,diagram:t}},"loader"),tY={id:tW,detector:tU,loader:tH},tG="stateDiagram",tX=(0,d.K)((t,e)=>!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&e?.state?.defaultRenderer==="dagre-wrapper"),"detector"),tV=(0,d.K)(async()=>{let{diagram:t}=await Promise.all([r.e("5155"),r.e("4522")]).then(r.bind(r,65617));return{id:tG,diagram:t}},"loader"),tZ={id:tG,detector:tX,loader:tV},tQ="journey",tJ=(0,d.K)(t=>/^\s*journey/.test(t),"detector"),t0=(0,d.K)(async()=>{let{diagram:t}=await r.e("8124").then(r.bind(r,31671));return{id:tQ,diagram:t}},"loader"),t1={id:tQ,detector:tJ,loader:t0},t2={draw:(0,d.K)((t,e,r)=>{c.R.debug("rendering svg for syntax error\n");let o=(0,i.D)(e),a=o.append("g");o.attr("viewBox","0 0 2412 512"),(0,h.a$)(o,100,512,!0),a.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"),a.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"),a.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"),a.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.
253164-16,16v32c0,8.836 7.156,16 16,16z"),a.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"),a.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"),a.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"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw")},t5={db:{},renderer:t2,parser:{parse:(0,d.K)(()=>{},"parse")}},t3="flowchart-elk",t4=(0,d.K)((t,e={})=>!!(/^\s*flowchart-elk/.test(t)||/^\s*(flowchart|graph)/.test(t)&&e?.flowchart?.defaultRenderer==="elk")&&(e.layout="elk",!0),"detector"),t6=(0,d.K)(async()=>{let{diagram:t}=await Promise.all([r.e("8979"),r.e("156")]).then(r.bind(r,96089));return{id:t3,diagram:t}},"loader"),t8={id:t3,detector:t4,loader:t6},t9="timeline",t7=(0,d.K)(t=>/^\s*timeline/.test(t),"detector"),et=(0,d.K)(async()=>{let{diagram:t}=await r.e("7305").then(r.bind(r,91045));return{id:t9,diagram:t}},"loader"),ee={id:t9,detector:t7,loader:et},er="mindmap",ei=(0,d.K)(t=>/^\s*mindmap/.test(t),"detector"),eo=(0,d.K)(async()=>{let{diagram:t}=await r.e("5195").then(r.bind(r,20374));return{id:er,diagram:t}},"loader"),ea={id:er,detector:ei,loader:eo},en="kanban",es=(0,d.K)(t=>/^\s*kanban/.test(t),"detector"),el=(0,d.K)(async()=>{let{diagram:t}=await r.e("365").then(r.bind(r,16284));return{id:en,diagram:t}},"loader"),eh={id:en,detector:es,loader:el},ec="sankey",ed=(0,d.K)(t=>/^\s*sankey(-beta)?/.test(t),"detector"),eu=(0,d.K)(async()=>{let{diagram:t}=await r.e("4129").then(r.bind(r,57976));return{id:ec,diagram:t}},"loader"),ep={id:ec,detector:ed,loader:eu},eg="packet",ef=(0,d.K)(t=>/^\s*packet(-beta)?/.test(t),"detector"),ey=(0,d.K)(async()=>{let{diagram:t}=await Promise.all([r.e("4936"),r.e("9686")]).then(r.bind(r,83509));return{id:eg,diagram:t}},"loader"),em={id:eg,detector:ef,loader:ey},ex="radar",eC=(0,d.K)(t=>/^\s*radar-beta/.test(t),"detector"),eb=(0,d.K)(async()=>{let{diagram:t}=await Promise.all([r.e("4936"),r.e("4392")]).then(r.bind(r,76571));return{id:ex,diagram:t}},"loader"),ek={id:ex,detector:eC,loader:eb},ew="block",eT=(0,d.K)(t=>/^\s*block(-beta)?/.test(t),"detector"),eB=(0,d.K)(async()=>{let{diagram:t}=await r.e("404").then(r.bind(r,65135));return{id:ew,diagram:t}},"loader"),ev={id:ew,detector:eT,loader:eB},eS="treeView",e_=(0,d.K)(t=>/^\s*treeView-beta/.test(t),"detector"),eA=(0,d.K)(async()=>{let{diagram:t}=await Promise.all([r.e("4936"),r.e("3084")]).then(r.bind(r,30583));return{id:eS,diagram:t}},"loader"),eF={id:eS,detector:e_,loader:eA},eL="architecture",eM=(0,d.K)(t=>/^\s*architecture/.test(t),"detector"),e$=(0,d.K)(async()=>{let{diagram:t}=await Promise.all([r.e("4936"),r.e("4950"),r.e("529")]).then(r.bind(r,6344));return{id:eL,diagram:t}},"loader"),eE={id:eL,detector:eM,loader:e$},eO="eventmodeling",eD=(0,d.K)(t=>/^\s*eventmodeling/.test(t),"detector"),eI=(0,d.K)(async()=>{let{diagram:t}=await Promise.all([r.e("4936"),r.e("2619")]).then(r.bind(r,93510));return{id:eO,diagram:t}},"loader"),eK={id:eO,detector:eD,loader:eI},eq="ishikawa",eR=(0,d.K)(t=>/^\s*ishikawa(-beta)?\b/i.test(t),"detector"),eP=(0,d.K)(async()=>{let{diagram:t}=await r.e("112").then(r.bind(r,66803));return{id:eq,diagram:t}},"loader"),ez={id:eq,detector:eR,loader:eP},eN="venn",ej=(0,d.K)(t=>/^\s*venn-beta/.test(t),"detector"),eW=(0,d.K)(async()=>{let{diagram:t}=await r.e("8364").then(r.bind(r,48151));return{id:eN,diagram:t}},"loader"),eU={id:eN,detector:ej,loader:eW},eH="treemap",eY=(0,d.K)(t=>/^\s*treemap/.test(t),"detector"),eG=(0,d.K)(async()=>{let{diagram:t}=await Promise.all([r.e("4936"),r.e("2982")]).then(r.bind(r,88677));return{id:eH,diagram:t}},"loader"),eX={id:eH,detector:eY,loader:eG},eV="wardley",eZ=(0,d.K)(t=>/^\s*wardley-beta/i.test(t),"detector"),eQ=(0,d.K)(async()=>{let{diagram:t}=await Promise.all([r.e("4936"),r.e("9464")]).then(r.bind(r,27483));return{id:eV,diagram:t}},"loader"),eJ={id:eV,detector:eZ,loader:eQ},e0="cynefin",e1=(0,d.K)(t=>/^\s*cynefin-beta(?:[\s:]|$)/.test(t),"detector"),e2=(0,d.K)(async()=>{let{diagram:t}=await Promise.all([r.e("4936"),r.e("3270")]).then(r.bind(r,30629));return{id:e0,diagram:t}},"loader"),e5={id:e0,detector:e1,loader:e2},e3="railroad",e4=(0,d.K)(t=>/^\s*railroad-beta/i.test(t),"detector"),e6=(0,d.K)(async()=>{let{diagram:t}=await Promise.all([r.e("4936"),r.e("549"),r.e("9009")]).then(r.bind(r,60200));return{id:e3,diagram:t}},"loader"),e8={id:e3,detector:e4,loader:e6},e9="railroadEbnf",e7=(0,d.K)(t=>/^\s*railroad-ebnf-beta/i.test(t),"detector"),rt=(0,d.K)(async()=>{let{diagram:t}=await Promise.all([r.e("4936"),r.e("549"),r.e("3671")]).then(r.bind(r,51738));return{id:e9,diagram:t}},"loader"),re={id:e9,detector:e7,loader:rt},rr="railroadAbnf",ri=(0,d.K)(t=>/^\s*railroad-abnf-beta/i.test(t),"detector"),ro=(0,d.K)(async()=>{let{diagram:t}=await Promise.all([r.e("4936"),r.e("549"),r.e("7057")]).then(r.bind(r,13608));return{id:rr,diagram:t}},"loader"),ra={id:rr,detector:ri,loader:ro},rn="railroadPeg",rs=(0,d.K)(t=>/^\s*railroad-peg-beta/i.test(t),"detector"),rl=(0,d.K)(async()=>{let{diagram:t}=await Promise.all([r.e("4936"),r.e("549"),r.e("5863")]).then(r.bind(r,2122));return{id:rn,diagram:t}},"loader"),rh={id:rn,detector:rs,loader:rl},rc=!1,rd=(0,d.K)(()=>{rc||(rc=!0,(0,h.Js)("error",t5,t=>"error"===t.toLowerCase().trim()),(0,h.Js)("---",{db:{clear:(0,d.K)(()=>{},"clear")},styles:{},renderer:{draw:(0,d.K)(()=>{},"draw")},parser:{parse:(0,d.K)(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:(0,d.K)(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),(0,h.Xd)(t8,ea,eE),(0,h.Xd)(Y,eh,tj,tR,tn,tg,tx,tC,tM,tD,ta,te,Z,ee,tc,tZ,tY,t1,tT,ep,em,t_,ev,eK,eF,ek,ez,eX,e8,re,ra,rh,eU,eJ,e5))},"addDiagrams"),ru=(0,d.K)(async()=>{c.R.debug("Loading registered diagrams");let t=(await Promise.allSettled(Object.entries(h.mW).map(async([t,{detector:e,loader:r}])=>{if(r)try{(0,h.Gs)(t)}catch{try{let{diagram:t,id:i}=await r();(0,h.Js)(i,t,e)}catch(e){throw c.R.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete h.mW[t],e}}}))).filter(t=>"rejected"===t.status);if(t.length>0){for(let e of(c.R.error(`Failed to load ${t.length} external diagrams`),t))c.R.error(e);throw Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams");function rp(t,e){t.attr("role","graphics-document document"),""!==e&&t.attr("aria-roledescription",e)}function rg(t,e,r,i){if(void 0!==t.insert){if(r){let e=`chart-desc-${i}`;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(r)}if(e){let r=`chart-title-${i}`;t.attr("aria-labelledby",r),t.insert("title",":first-child").attr("id",r).text(e)}}}(0,d.K)(rp,"setA11yDiagramInfo"),(0,d.K)(rg,"addSVGa11yTitleDescription");var rf=class t{constructor(t,e,r,i,o){this.type=t,this.text=e,this.db=r,this.parser=i,this.renderer=o}static{(0,d.K)(this,"Diagram")}static async fromText(e,r={}){let i=(0,h.zj)(),o=(0,h.Ch)(e,i);e=(0,l.C4)(e)+"\n";try{(0,h.Gs)(o)}catch{let t=(0,h.J$)(o);if(!t)throw new h.C0(`Diagram ${o} not found.`);let{id:e,diagram:r}=await t();(0,h.Js)(e,r)}let{db:a,parser:n,renderer:s,init:c}=(0,h.Gs)(o);return n.parser&&(n.parser.yy=a),a.clear?.(),c?.(i),r.title&&a.setDiagramTitle?.(r.title),await n.parse(e),new t(o,e,a,n,s)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}},ry=[],rm=(0,d.K)(()=>
253{ry.forEach(t=>{t()}),ry=[]},"attachFunctions"),rx=(0,d.K)(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function rC(t){let e=t.match(h.EJ);if(!e)return{text:t,metadata:{}};let r=e[1],i=r?e[2].split("\n").map(t=>t.startsWith(r)?t.slice(r.length):t).join("\n"):e[2],o=(0,a.H)(i,{schema:a.r})??{};o="object"!=typeof o||Array.isArray(o)?{}:o;let n={};return o.displayMode&&(n.displayMode=o.displayMode.toString()),o.title&&(n.title=o.title.toString()),o.config&&(n.config=o.config),{text:t.slice(e[0].length),metadata:n}}(0,d.K)(rC,"extractFrontMatter");var rb=(0,d.K)(t=>t.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(t,e,r)=>"<"+e+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),rk=(0,d.K)(t=>{let{text:e,metadata:r}=rC(t),{displayMode:i,title:o,config:a={}}=r;return i&&(a.gantt||(a.gantt={}),a.gantt.displayMode=i),{title:o,config:a,text:e}},"processFrontmatter"),rw=(0,d.K)(t=>{let e=l._K.detectInit(t)??{},r=l._K.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:t})=>"wrap"===t):r?.type==="wrap"&&(e.wrap=!0),{text:(0,l.vU)(t),directive:e}},"processDirectives");function rT(t){let e=rk(rb(t)),r=rw(e.text),i=(0,l.$t)(e.config,r.directive);return{code:t=rx(r.text),title:e.title,config:i}}function rB(t){return btoa(Array.from(new TextEncoder().encode(t),t=>String.fromCodePoint(t)).join(""))}(0,d.K)(rT,"preprocessDiagram"),(0,d.K)(rB,"toBase64");var rv=["foreignobject"],rS=["dominant-baseline"];function r_(t){let e=rT(t);return(0,h.cL)(),(0,h.xA)(e.config??{}),e}async function rA(t,e){rd();try{let{code:e,config:r}=r_(t);return{diagramType:(await rP(e)).type,config:r}}catch(t){if(e?.suppressErrors)return!1;throw t}}(0,d.K)(r_,"processAndSetConfigs"),(0,d.K)(rA,"parse");var rF=(0,d.K)((t,e,r=[])=>{let i=(0,h.Df)(`{ ${r.join(" !important; ")} !important; }`);return`.${t} ${e} ${i}`},"cssImportantStyles"),rL=(0,d.K)((t,e=new Map)=>{let r=new CSSStyleSheet;if(void 0!==t.fontFamily&&r.insertRule(`:root { --mermaid-font-family: ${t.fontFamily}}`,r.cssRules.length),void 0!==t.altFontFamily&&r.insertRule(`:root { --mermaid-alt-font-family: ${t.altFontFamily}}`,r.cssRules.length),e instanceof Map){let i=(0,h.E)(t)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(t=>{H(t.styles)||i.forEach(e=>{r.insertRule(rF(t.id,e,t.styles),r.cssRules.length)}),H(t.textStyles)||r.insertRule(rF(t.id,"tspan",(t?.textStyles||[]).map(t=>t.replace("color","fill"))),r.cssRules.length)})}let i="";if(void 0!==t.themeCSS)if("function"==typeof r.replaceSync){let e=new CSSStyleSheet;e.replaceSync(t.themeCSS),i=(0,h.KG)(e)+"\n"}else i+=`${t.themeCSS}
254`;return i+(0,h.KG)(r)},"createCssStyles"),rM=(0,d.K)((t,e)=>{var r,i,o,a,n;return S((o=function t(e,r,i,o,a,n,s,l,h){for(var c,d,u,p,f=0,y=0,m=s,x=0,C=0,S=0,_=1,L=1,z=1,N=0,j=0,W="",U=a,H=n,Y=o,G=W;L;)switch(S=j,j=D()){case 40:108!=S&&58==w(G,m-1)?(N++,G+="("):G+=q(j);break;case 41:N--,G+=")";break;case 34:case 39:case 91:G+=q(j);break;case 9:case 10:case 13:case 32:if(N>0){G+=b(j);break}G+=function(t){for(;$=I();)if($<33)D();else break;return K(t)>2||K($)>3?"":" "}(S);break;case 92:G+=function(t,e){for(var r;--e&&D()&&!($<48)&&!($>102)&&(!($>57)||!($<65))&&(!($>70)||!($<97)););return r=M+(e<6&&32==I()&&32==D()),T(E,t,r)}(M-1,7);continue;case 47:switch(I()){case 42:case 47:v((c=function(t,e){for(;D();)if(t+$===57)break;else if(t+$===84&&47===I())break;return"/*"+T(E,e,M-1)+"*"+b(47===t?t:D())}(D(),M),d=r,u=i,p=h,O(c,d,u,g,b($),T(c,2,-2),0,p)),h),(5==K(S||1)||5==K(I()||1))&&B(G)&&" "!==T(G,-1,void 0)&&(G+=" ");break;default:G+="/"}break;case 123*_:l[f++]=B(G)*z;case 125*_:case 59:case 0:if(N>0&&j){G+=b(j);break}switch(j){case 0:case 125:L=0;case 59+y:-1==z&&(G=k(G,/\f/g,"")),C>0&&(B(G)-m||0===_)&&v(C>32?P(G+";",o,i,m-1,h):P(k(G," ","")+";",o,i,m-2,h),h);break;case 59:G+=";";default:if(v(Y=R(G,r,i,f,y,a,l,W,U=[],H=[],m,n),n),123===j)if(0===y)t(G,r,Y,Y,U,n,m,l,H);else{switch(x){case 99:if(110===w(G,3))break;case 108:if(97===w(G,2))break;default:y=0;case 100:case 109:case 115:}y?t(e,Y,Y,o&&v(R(e,Y,Y,0,0,a,l,W,a,U=[],m,H),H),a,H,m,l,o?U:H):t(G,Y,Y,Y,[""],H,0,l,H)}}f=y=C=0,_=z=1,W=G="",m=s;break;case 58:m=1+B(G),C=S;default:if(_<1){if(123==j)--_;else if(125==j&&0==_++&&125==($=M>0?w(E,--M):0,F--,10===$&&(F=1,A--),$))continue}switch(G+=b(j),j*_){case 38:z=y>0?1:(G+="\f",-1);break;case 44:if(N>0)break;l[f++]=(B(G)-1)*z,z=1;break;case 64:45===I()&&(G+=q(D())),x=I(),y=m=B(W=G+=function(t){for(;!K(I());)D();return T(E,t,M)}(M)),j++;break;case 45:45===S&&2==B(G)&&(_=0)}}return n}("",null,null,null,[""],(i=r=`${t}{${e}}`,A=F=1,L=B(E=i),M=0,r=[]),0,[0],r),E="",o),(n=(a=[(0,d.K)(function(e,r,i,o){"rule"===e.type&&Array.isArray(e.props)?e.parent&&e.parent.type===m||(e.props=e.props.map(r=>r===t&&Array.isArray(e.children)&&e.children.every(t=>"decl"===t.type&&new Set(["font-family","font-size","fill"]).has(t.props))||(r.startsWith(`${t} `)||r.startsWith(`${t}>`))&&!r.startsWith(`${t} ||`)?r:`${t} ${r}`)):e.type.startsWith("@")&&(["@media","@supports",x,"@scope","@container","@starting-style",m].includes(e.type)||(c.R.warn(`Removing unsupported at-rule ${e.type} from CSS`),e.type=g))},"addNamespace"),_]).length,function(t,e,r,i){for(var o="",s=0;s<n;s++)o+=a[s](t,e,r,i)||"";return o}
254))},"compileCSS"),r$=(0,d.K)((t,e,r,i)=>{let o=rL(t,r),a=(0,h.tM)(e,o,{...t.themeVariables,theme:t.theme,look:t.look},i);return rM(i,a)},"createUserStyles"),rE=(0,d.K)((t="",e,r)=>{let i=t;return r||e||(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=(i=(0,l.Sm)(i)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),rO=(0,d.K)((t="",e)=>{let r=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":"100%",i=rB(`<body style="margin:0">${t}</body>`);return`<iframe style="width:100%;height:${r};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="allow-top-navigation-by-user-activation allow-popups">
255  The "iframe" tag is not supported by your browser.
256</iframe>`},"putIntoIFrame"),rD=(0,d.K)((t,e,r,i,o)=>{let a=t.append("div");a.attr("id",r),i&&a.attr("style",i);let n=a.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return o&&n.attr("xmlns:xlink",o),n.append("g"),t},"appendDivSvgG");function rI(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,d.K)(rI,"sandboxedIframe");var rK=(0,d.K)((t,e,r,i)=>{t.getElementById(e)?.remove(),t.getElementById(r)?.remove(),t.getElementById(i)?.remove()},"removeExistingElements"),rq=(0,d.K)(async function(t,e,r){let i,o;rd();let a=r_(e);e=a.code;let n=(0,h.zj)();c.R.debug(n),e.length>(n?.maxTextSize??5e4)&&(e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let s=`#${t}`,l="i"+t,u="#"+l,g="d"+t,f="#"+g,y=(0,d.K)(()=>{let t=x?u:f,e=(0,p.Ltv)(t).node();e&&"remove"in e&&e.remove()},"removeTempElements"),m=(0,p.Ltv)(document.body),x="sandbox"===n.securityLevel,C="loose"===n.securityLevel,b=n.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),x){let t=rI((0,p.Ltv)(r),l);(m=(0,p.Ltv)(t.nodes()[0].contentDocument.body)).node().style.margin="0"}else m=(0,p.Ltv)(r);rD(m,t,g,`font-family: ${b}`,"http://www.w3.org/1999/xlink")}else{if(rK(document,t,g,l),x){let t=rI((0,p.Ltv)(document.body),l);(m=(0,p.Ltv)(t.nodes()[0].contentDocument.body)).node().style.margin="0"}else m=(0,p.Ltv)("body");rD(m,t,g)}try{i=await rf.fromText(e,{title:a.title})}catch(t){if(n.suppressErrorRendering)throw y(),t;i=await rf.fromText("error"),o=t}let k=m.select(f).node(),w=i.type,T=k.firstChild,B=T.firstChild,v=r$(n,w,i.renderer.getClasses?.(e,i),s),S=document.createElement("style");S.innerHTML=v,T.insertBefore(S,B);try{await i.renderer.draw(e,t,"11.17.2",i)}catch(r){throw n.suppressErrorRendering?y():t2.draw(e,t,"11.17.2"),r}rz(w,m.select(`${f} svg`),i.db.getAccTitle?.(),i.db.getAccDescription?.());let _=(0,d.K)(()=>{m.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let e=m.select(f).node().innerHTML;return c.R.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),e=rE(e,x,(0,h._3)(n.arrowMarkerAbsolute)),x?e=rO(e,m.select(f+" svg").node()):C||(e=z.A.sanitize(e,{ADD_TAGS:rv,ADD_ATTR:rS,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),rm(),e},"serializeSvg")();if(o)throw o;return y(),{diagramType:w,svg:_,bindFunctions:i.db.bindFunctions}},"render");function rR(t={}){let e=(0,h.hH)({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),(0,h.wZ)(e),e?.theme&&e.theme in h.H$?e.themeVariables=h.H$[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=h.H$.default.getThemeVariables(e.themeVariables));let r="object"==typeof e?(0,h.UU)(e):(0,h.Q2)();(0,c.H)(r.logLevel),rd()}(0,d.K)(rR,"initialize");var rP=(0,d.K)((t,e={})=>{let{code:r}=rT(t);return rf.fromText(r,e)},"getDiagramFromText");function rz(t,e,r,i){rp(e,t),rg(e,r,i,e.attr("id"))}(0,d.K)(rz,"addA11yInfo");var rN=Object.freeze({render:rq,parse:rA,getDiagramFromText:rP,initialize:rR,getConfig:h.zj,setConfig:h.Nk,getSiteConfig:h.Q2,updateSiteConfig:h.B6,reset:(0,d.K)(()=>{(0,h.cL)()},"reset"),globalReset:(0,d.K)(()=>{(0,h.cL)(h.sb)},"globalReset"),defaultConfig:h.sb});(0,c.H)((0,h.zj)().logLevel),(0,h.cL)((0,h.zj)());var rj=(0,d.K)((t,e,r)=>{c.R.warn(t),(0,l.dq)(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),rW=(0,d.K)(async function(t={querySelector:".mermaid"}){try{await rU(t)}catch(e){if((0,l.dq)(e)&&c.R.error(e.str),r5.parseError&&r5.parseError(e),!t.suppressErrors)throw c.R.error("Use the suppressErrors option to suppress these errors"),e}},"run"),rU=(0,d.K)(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){let i,o,a=rN.getConfig();if(c.R.debug(`${!t?"No ":""}Callback function found`),r)i=r;else if(e)i=document.querySelectorAll(e);else throw Error("Nodes and querySelector are both undefined");c.R.debug(`Found ${i.length} diagrams`),a?.startOnLoad!==void 0&&(c.R.debug("Start On Load: "+a?.startOnLoad),rN.updateSiteConfig({startOnLoad:a?.startOnLoad}
256));let n=new l._K.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed),s=[];for(let e of Array.from(i)){if(c.R.info("Rendering diagram: "+e.id),e.getAttribute("data-processed"))continue;e.setAttribute("data-processed","true");let r=`mermaid-${n.next()}`;o=e.innerHTML,o=(0,u.T)(l._K.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");let i=l._K.detectInit(o);i&&c.R.debug("Detected early reinit: ",i);try{let{svg:i,bindFunctions:a}=await r1(r,o,e);e.innerHTML=i,t&&await t(r),a&&a(e)}catch(t){rj(t,s,r5.parseError)}}if(s.length>0)throw s[0]},"runThrowsErrors"),rH=(0,d.K)(function(t){rN.initialize(t)},"initialize"),rY=(0,d.K)(async function(t,e,r){c.R.warn("mermaid.init is deprecated. Please use run instead."),t&&rH(t);let i={postRenderCallback:r,querySelector:".mermaid"};"string"==typeof e?i.querySelector=e:e&&(e instanceof HTMLElement?i.nodes=[e]:i.nodes=e),await rW(i)},"init"),rG=(0,d.K)(async(t,{lazyLoad:e=!0}={})=>{rd(),(0,h.Xd)(...t),!1===e&&await ru()},"registerExternalDiagrams"),rX=(0,d.K)(function(){if(r5.startOnLoad){let{startOnLoad:t}=rN.getConfig();t&&r5.run().catch(t=>c.R.error("Mermaid failed to initialize",t))}},"contentLoaded");"u">typeof document&&window.addEventListener("load",rX,!1);var rV=(0,d.K)(function(t){r5.parseError=t},"setParseErrorHandler"),rZ=[],rQ=!1,rJ=(0,d.K)(async()=>{if(!rQ){for(rQ=!0;rZ.length>0;){let t=rZ.shift();if(t)try{await t()}catch(t){c.R.error("Error executing queue",t)}}rQ=!1}},"executeQueue"),r0=(0,d.K)(async(t,e)=>new Promise((r,i)=>{let o=(0,d.K)(()=>new Promise((o,a)=>{rN.parse(t,e).then(t=>{o(t),r(t)},t=>{c.R.error("Error parsing",t),r5.parseError?.(t),a(t),i(t)})}),"performCall");rZ.push(o),rJ().catch(i)}),"parse"),r1=(0,d.K)((t,e,r)=>new Promise((i,o)=>{let a=(0,d.K)(()=>new Promise((a,n)=>{rN.render(t,e,r).then(t=>{a(t),i(t)},t=>{c.R.error("Error parsing",t),r5.parseError?.(t),n(t),o(t)})}),"performCall");rZ.push(a),rJ().catch(o)}),"render"),r2=(0,d.K)(()=>Object.keys(h.mW).map(t=>({id:t})),"getRegisteredDiagramsMetadata"),r5={startOnLoad:!0,mermaidAPI:rN,parse:r0,render:r1,init:rY,run:rW,registerExternalDiagrams:rG,registerLayoutLoaders:n.sO,initialize:rH,parseError:void 0,contentLoaded:rX,setParseErrorHandler:rV,detectType:h.Ch,registerIconPacks:s.pC,getRegisteredDiagramsMetadata:r2},r3=r5},84146(t,e,r){"use strict";function i(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=Array.from("string"==typeof t?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var o=i.reduce(function(t,e){var r=e.match(/\n([\t ]+|(?!\s).)/g);return r?t.concat(r.map(function(t){var e,r;return null!=(r=null==(e=t.match(/[\t ]/g))?void 0:e.length)?r:0})):t},[]);if(o.length){var a=RegExp("\n[	 ]{".concat(Math.min.apply(Math,o),"}"),"g");i=i.map(function(t){return t.replace(a,"\n")})}i[0]=i[0].replace(/^\r?\n/,"");var n=i[0];return e.forEach(function(t,e){var r=n.match(/(?:^|\n)( *)$/),o=r?r[1]:"",a=t;"string"==typeof t&&t.includes("\n")&&(a=String(t).split("\n").map(function(t,e){return 0===e?t:"".concat(o).concat(t)}).join("\n")),n+=a+i[e+1]}),n}r.d(e,{T:()=>i})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.