fika-editor 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/embed/947.js +144 -0
- package/dist/embed/agentic-manifest.json +186 -11
- package/dist/embed/chunks/1131.css +1 -1
- package/dist/embed/chunks/1131.js +1 -1
- package/dist/embed/chunks/1505.js +8 -0
- package/dist/embed/chunks/1904.js +1 -1
- package/dist/embed/chunks/2020.js +43 -37
- package/dist/embed/chunks/2289.js +1 -1
- package/dist/embed/chunks/2796.js +1 -1
- package/dist/embed/chunks/2807.js +1 -1
- package/dist/embed/chunks/3030.js +1 -1
- package/dist/embed/chunks/3729.js +3 -3
- package/dist/embed/chunks/4552.js +1 -1
- package/dist/embed/chunks/4625.js +1 -1
- package/dist/embed/chunks/4891.js +2 -2
- package/dist/embed/chunks/4950.js +1 -1
- package/dist/embed/chunks/4975.js +5 -5
- package/dist/embed/chunks/5216.js +1 -1
- package/dist/embed/chunks/5792.js +1 -1
- package/dist/embed/chunks/627.js +1 -1
- package/dist/embed/chunks/6567.js +1 -1
- package/dist/embed/chunks/717.js +2 -2
- package/dist/embed/chunks/7175.js +1 -1
- package/dist/embed/chunks/7311.js +1 -1
- package/dist/embed/chunks/7594.js +1 -1
- package/dist/embed/chunks/7854.js +1 -1
- package/dist/embed/chunks/788.js +1 -1
- package/dist/embed/chunks/7916.js +1 -1
- package/dist/embed/chunks/8212.js +1 -1
- package/dist/embed/chunks/8239.js +1 -1
- package/dist/embed/chunks/8645.js +1 -1
- package/dist/embed/chunks/8716.js +3 -3
- package/dist/embed/chunks/9121.js +1 -1
- package/dist/embed/chunks/9465.js +2 -2
- package/dist/embed/fika-embed.css +1 -1
- package/dist/embed/fika-embed.js +3 -2
- package/dist/types/components/Button.d.ts +2 -1
- package/dist/types/components/ColorSwatches.d.ts +2 -1
- package/dist/types/components/Draggable.d.ts +9 -4
- package/dist/types/configs/animation.d.ts +2 -0
- package/dist/types/configs/font.d.ts +0 -2
- package/dist/types/configs/templates.d.ts +1 -5
- package/dist/types/embed/agentic/templates.d.ts +2 -1
- package/dist/types/embed/agentic/types.d.ts +57 -1
- package/dist/types/hooks/useScreening.d.ts +5 -3
- package/dist/types/i18n/i18n-types.d.ts +4 -4
- package/dist/types/store/index.d.ts +2 -2
- package/dist/types/store/slides.d.ts +18 -3
- package/dist/types/types/injectKey.d.ts +6 -0
- package/dist/types/utils/canvasHitTest.d.ts +14 -2
- package/dist/types/utils/commitQueue.d.ts +13 -0
- package/dist/types/utils/cssLength.d.ts +8 -0
- package/dist/types/utils/database.d.ts +6 -1
- package/dist/types/utils/element.d.ts +18 -0
- package/dist/types/utils/imageBitmapCache.d.ts +14 -2
- package/dist/types/utils/imageSize.d.ts +9 -0
- package/dist/types/utils/liveElementSize.d.ts +20 -1
- package/dist/types/utils/mediaIntern.d.ts +12 -0
- package/dist/types/utils/placeholderLayout.d.ts +25 -6
- package/dist/types/utils/prosemirror/commitEditor.d.ts +3 -0
- package/dist/types/utils/prosemirror/index.d.ts +1 -0
- package/dist/types/utils/screening.d.ts +10 -0
- package/dist/types/utils/shapePaint.d.ts +23 -0
- package/dist/types/utils/simpleShape.d.ts +5 -0
- package/dist/types/utils/slideOrder.d.ts +10 -0
- package/dist/types/utils/snap.d.ts +9 -0
- package/dist/types/utils/tableCellStyle.d.ts +12 -0
- package/dist/types/utils/tableStyleTarget.d.ts +3 -0
- package/dist/types/utils/textContrast.d.ts +25 -1
- package/dist/types/utils/textFit.d.ts +31 -13
- package/dist/types/views/Editor/Canvas/Operate/ResizeHandler.d.ts +2 -1
- package/dist/types/views/Editor/Thumbnails/paneSize.d.ts +7 -3
- package/dist/types/views/Editor/Thumbnails/useThumbnailVirtualizer.d.ts +1 -0
- package/dist/types/views/components/ThumbnailSlide/LiveSlideThumb.d.ts +21 -0
- package/dist/types/views/components/ThumbnailSlide/index.d.ts +8 -0
- package/dist/types/views/components/ThumbnailSlide/paintedSlide.d.ts +1 -1
- package/dist/types/views/components/ThumbnailSlide/thumbSnapshot.d.ts +54 -0
- package/dist/types/views/components/element/TableElement/CustomTextarea.d.ts +2 -1
- package/dist/types/views/components/element/hooks/useAutoShapeTextHeight.d.ts +3 -1
- package/docs/RELEASE.md +2 -0
- package/package.json +8 -11
- package/dist/embed/350.js +0 -164
- package/dist/types/previewRaster/index.d.ts +0 -9
- package/dist/types/previewRaster/painters/background.d.ts +0 -2
- package/dist/types/previewRaster/painters/booth.d.ts +0 -13
- package/dist/types/previewRaster/painters/chart.d.ts +0 -2
- package/dist/types/previewRaster/painters/code.d.ts +0 -2
- package/dist/types/previewRaster/painters/image.d.ts +0 -2
- package/dist/types/previewRaster/painters/index.d.ts +0 -3
- package/dist/types/previewRaster/painters/line.d.ts +0 -2
- package/dist/types/previewRaster/painters/media.d.ts +0 -2
- package/dist/types/previewRaster/painters/shape.d.ts +0 -2
- package/dist/types/previewRaster/painters/table.d.ts +0 -2
- package/dist/types/previewRaster/painters/text.d.ts +0 -2
- package/dist/types/previewRaster/planSlideRaster.d.ts +0 -19
- package/dist/types/previewRaster/rasterCache.d.ts +0 -19
- package/dist/types/previewRaster/scheduler.d.ts +0 -4
- package/dist/types/previewRaster/stagePool.d.ts +0 -36
- package/dist/types/previewRaster/stats.d.ts +0 -10
- package/dist/types/previewRaster/subscribeSlides.d.ts +0 -10
- package/dist/types/previewRaster/types.d.ts +0 -12
- package/dist/types/utils/elementPaint.d.ts +0 -129
- package/dist/types/views/components/element/ChartElement/chartBooth.d.ts +0 -2
- /package/dist/embed/{350.css → 947.css} +0 -0
- /package/dist/types/{previewRaster → utils}/diffPaintedSlide.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const __rspack_esm_id=4975;export const __rspack_esm_ids=[4975];export const __webpack_modules__={69119(t,e){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=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[".","/"],e.BLANK_URL="about:blank"},16750(t,e,r){e.J=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 s=a.trimStart(),n=s.match(i.urlSchemeRegex);if(!n)return a;var l=n[0].toLowerCase().trim();if(i.invalidProtocolRegex.test(l))return i.BLANK_URL;var h=s.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",s="quarter",n="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 k||!(!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 s=e.split("-");if(!o&&s.length>1)return t(s[0])}else{var n=e.name;g[n]=e,o=n}return!i&&o&&(p=o),o||!i&&p},C=function(t,e){if(y(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new k(r)},x={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),s=r-o<0,n=e.clone().add(i+(s?-1:1),a);return+(-(i+(r-o)/(s?o-n:n-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(h){return({M:a,y:n,w:o,d:"day",D:l,h:i,m:r,s:e,ms:t,Q:s})[h]||String(h||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};x.l=m,x.i=y,x.w=function(t,e){return C(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=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(0/0);if(x.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 x},p.isValid=function(){return this.$d.toString()!==h},p.isSame=function(t,e){var r=C(t);return this.startOf(e)<=r&&r<=this.endOf(e)},p.isAfter=function(t,e){return C(t)<this.startOf(e)},p.isBefore=function(t,e){return this.endOf(e)<C(t)},p.$g=function(t,e,r){return x.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,s){var h=this,c=!!x.u(s)||s,d=x.p(t),u=function(t,e){var r=x.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 x.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 n:return c?u(1,0):u(31,11);case a:return c?u(1,f):u(0,f+1);case o:var C=this.$locale().weekStart||0,k=(g<C?g+7:g)-C;return u(c?y-k:y+(6-k),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,s){var h,c=x.p(o),d="set"+(this.$u?"UTC":""),u=((h={}).day=d+"Date",h[l]=d+"Date",h[a]=d+"Month",h[n]=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+(s-this.$W):s;if(c===a||c===n){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[x.p(t)]()},p.add=function(t,s){var l,h=this;t=Number(t);var c=x.p(s),d=function(e){var r=C(h);return x.w(r.date(r.date()+Math.round(e*t)),h)};if(c===a)return this.set(a,this.$M+t);if(c===n)return this.set(n,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 x.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=x.z(this),a=this.$H,s=this.$m,n=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 x.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 x.s(e.$y,4,"0");case"M":return n+1;case"MM":return x.s(n+1,2,"0");case"MMM":return p(r.monthsShort,n,c,3);case"MMMM":return p(c,n);case"D":return e.$D;case"DD":return x.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 x.s(a,2,"0");case"h":return g(1);case"hh":return g(2);case"a":return f(a,s,!0);case"A":return f(a,s,!1);case"m":return String(s);case"mm":return x.s(s,2,"0");case"s":return String(e.$s);case"ss":return x.s(e.$s,2,"0");case"SSS":return x.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=x.p(l),p=C(t),g=(p.utcOffset()-this.utcOffset())*6e4,f=this-p,y=function(){return x.m(d,p)};switch(u){case n:c=y()/12;break;case a:c=y();break;case s: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:x.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 x.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}(),b=k.prototype;return C.prototype=b,[["$ms",t],["$s",e],["$m",r],["$H",i],["$W","day"],["$M",a],["$y",n],["$D",l]].forEach(function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),C.extend=function(t,e){return t.$i||(t(e,k,C),t.$i=!0),C},C.locale=m,C.isDayjs=y,C.unix=function(t){return C(1e3*t)},C.en=g[p],C.Ls=g,C.p={},C}()},52274(t,e,r){function i(t,e,r){if(t&&t.length){let[i,o]=e,a=Math.PI/180*r,s=Math.cos(a),n=Math.sin(a);for(let e of t){let[t,r]=e;e[0]=(t-i)*s-(r-o)*n+i,e[1]=(t-i)*n+(r-o)*s+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 s=1;return e.roughness>=1&&((null==(r=e.randomizer)?void 0:r.next())||Math.random())>.7&&(s=a),function(t,e,r,o=1){let a=Math.max(e,.1),s=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,n=[0,0];if(r)for(let t of s)i(t,n,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 s=[];e=Math.max(e,.1);let n=[];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]);n.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(n.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)),!n.length)return s;let l=[],h=n[0].ymin,c=0;for(;l.length||n.length;){if(n.length){let t=-1;for(let e=0;e<n.length&&!(n[e].ymin>h);e++)t=e;n.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;s.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 s}(s,a,o);if(r){let t;for(let t of s)i(t,n,-r);t=[],l.forEach(e=>t.push(...e)),i(t,n,-r)}return l}(t,a,o,s||1)}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 s(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 n 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,n=[],l=.5*r*Math.cos(a),h=.5*r*Math.sin(a);for(let[t,e]of i)s([t,e])&&n.push([[t[0]-l,t[1]+h],[...e]],[[t[0]+l,t[1]-h],[...e]]);return{type:"fillSketch",ops:this.renderLines(n,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 n of t){let t=s(n),l=Math.ceil(t/i)-1,h=t-l*i,c=(n[0][0]+n[1][0])/2-i/4,d=Math.min(n[0][1],n[1][1]);for(let t=0;t<l;t++){let s=c-a+2*Math.random()*a,n=d+h+t*i-a+2*Math.random()*a,l=this.helper.ellipse(s,n,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=s(t),n=Math.floor(a/(r+i)),l=(a+i-n*(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<n;t++){let a=t*(r+i),s=a+r,n=[h[0]+a*Math.cos(d)+l*Math.cos(d),h[1]+a*Math.sin(d)+l*Math.sin(d)],c=[h[0]+s*Math.cos(d)+l*Math.cos(d),h[1]+s*Math.sin(d)+l*Math.sin(d)];o.push(...this.helper.doubleLineOps(n[0],n[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(s(t)/(2*e)),a=t[0],n=t[1];a[0]>n[0]&&(a=t[1],n=t[0]);let l=Math.atan((n[1]-a[1])/(n[0]-a[0]));for(let t=0;t<o;t++){let o=2*t*e,s=2*(t+1)*e,n=Math.sqrt(2*Math.pow(e,2)),h=[a[0]+o*Math.cos(l),a[1]+o*Math.sin(l)],c=[a[0]+s*Math.cos(l),a[1]+s*Math.sin(l)],d=[h[0]+n*Math.cos(l+Math.PI/4),h[1]+n*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[1],r))}}),i}}let u={};class p{constructor(t){this.seed=t}next(){return this.seed?(0x7fffffff&(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 s=0,n=[];if("BOD"===i){if("M"!==a.text&&"m"!==a.text)return f("M0,0"+t);o++,s=g[a.text],i=a.text}else 1===a.type?s=g[i]:(o++,s=g[a.text],i=a.text);if(!(o+s<r.length))throw Error("Path data ended short");for(let t=o;t<o+s;t++){let e=r[t];if(1!==e.type)throw Error("Param not a number: "+i+","+e.text);n[n.length]=+e.text}if("number"!=typeof g[i])throw Error("Bad segment: "+i);{let t={key:i,data:n};e.push(t),o+=s,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:s,data:n}of t)switch(s){case"M":a.push({key:"M",data:[...n]}),[e,r]=n,[i,o]=n;break;case"m":e+=n[0],r+=n[1],a.push({key:"M",data:[e,r]}),i=e,o=r;break;case"L":a.push({key:"L",data:[...n]}),[e,r]=n;break;case"l":e+=n[0],r+=n[1],a.push({key:"L",data:[e,r]});break;case"C":a.push({key:"C",data:[...n]}),e=n[4],r=n[5];break;case"c":{let t=n.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:[...n]}),e=n[2],r=n[3];break;case"q":{let t=n.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:[...n]}),e=n[5],r=n[6];break;case"a":e+=n[5],r+=n[6],a.push({key:"A",data:[n[0],n[1],n[2],n[3],n[4],e,r]});break;case"H":a.push({key:"H",data:[...n]}),e=n[0];break;case"h":e+=n[0],a.push({key:"H",data:[e]});break;case"V":a.push({key:"V",data:[...n]}),r=n[0];break;case"v":r+=n[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...n]}),e=n[2],r=n[3];break;case"s":{let t=n.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:[...n]}),e=n[0],r=n[1];break;case"t":e+=n[0],r+=n[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,s=0,n=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,s]=c;break;case"C":e.push({key:"C",data:[...c]}),i=c[4],o=c[5],n=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-n),a=o+(o-l)):(t=i,a=o),e.push({key:"C",data:[t,a,...c]}),n=c[0],l=c[1],i=c[2],o=c[3];break}case"T":{let[t,a]=c,s=0,h=0;"Q"===r||"T"===r?(s=i+(i-n),h=o+(o-l)):(s=i,h=o);let d=i+2*(s-i)/3,u=o+2*(h-o)/3,p=t+2*(s-t)/3,g=a+2*(h-a)/3;e.push({key:"C",data:[d,u,p,g,t,a]}),n=s,l=h,i=t,o=a;break}case"Q":{let[t,r,a,s]=c,h=i+2*(t-i)/3,d=o+2*(r-o)/3,u=a+2*(t-a)/3,p=s+2*(r-s)/3;e.push({key:"C",data:[h,d,u,p,a,s]}),n=t,l=r,i=a,o=s;break}case"A":{let t=Math.abs(c[0]),r=Math.abs(c[1]),a=c[2],s=c[3],n=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,s,n,l,h,c){let d=Math.PI*n/180,u=[],p=0,g=0,f=0,y=0;if(c)[p,g,f,y]=c;else{[e,r]=C(e,r,-d),[i,o]=C(i,o,-d);let t=(e-i)/2,n=(r-o)/2,c=t*t/(a*a)+n*n/(s*s);c>1&&(a*=c=Math.sqrt(c),s*=c);let u=a*a,m=s*s,x=(l===h?-1:1)*Math.sqrt(Math.abs((u*m-u*n*n-m*t*t)/(u*n*n+m*t*t)));f=x*a*n/s+(e+i)/2,y=-(x*s)*t/a+(r+o)/2,p=Math.asin(parseFloat(((r-y)/s).toFixed(9))),g=Math.asin(parseFloat(((o-y)/s).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+s*Math.sin(g),r,l,a,s,n,0,h,[g,e,f,y])}m=g-p;let x=Math.cos(p),k=Math.cos(g),b=Math.tan(m/4),w=4/3*a*b,T=4/3*s*b,B=[e,r],S=[e+w*Math.sin(p),r-T*x],v=[i+w*Math.sin(g),o-T*k],_=[i,o];if(S[0]=2*B[0]-S[0],S[1]=2*B[1]-S[1],c)return[S,v,_].concat(u);{u=[S,v,_].concat(u);let t=[];for(let e=0;e<u.length;e+=3){let r=C(u[e][0],u[e][1],d),i=C(u[e+1][0],u[e+1][1],d),o=C(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}})(i,o,l,h,t,r,a,s,n).forEach(function(t){e.push({key:"C",data:t})}),i=l,o=h);break}case"Z":e.push({key:"Z",data:[]}),i=a,o=s}r=h}return e}function C(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}let x={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 k(t,e,r,i,o){return{type:"path",ops:E(t,e,r,i,o)}}function b(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?k(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),L(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),L(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),s=Math.abs(e/2),n=1-r.curveFitting;return a+=$(a*n,r),s+=$(s*n,r),{increment:o,rx:a,ry:s}}function B(t,e,r,i){let[o,a]=I(i.increment,t,e,i.rx,i.ry,1,i.increment*M(.1,M(.4,1,r),r),r),s=q(o,null,r);if(!r.disableMultiStroke&&0!==r.roughness){let[o]=I(i.increment,t,e,i.rx,i.ry,1.5,0,r),a=q(o,null,r);s=s.concat(a)}return{estimatedPoints:a,opset:{type:"path",ops:s}}}function S(t,e,r,i,o,a,s,n,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=K(p,t,e,h,c,d,u,1,l);if(!l.disableMultiStroke){let r=K(p,t,e,h,c,d,u,1.5,l);g.push(...r)}return s&&(n?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 v(t,e){let r=m(y(f(t))),i=[],o=[0,0],a=[0,0];for(let{key:t,data:s}of r)switch(t){case"M":a=[s[0],s[1]],o=[s[0],s[1]];break;case"L":i.push(...E(a[0],a[1],s[0],s[1],e)),a=[s[0],s[1]];break;case"C":{let[t,r,o,n,l,h]=s;i.push(...function(t,e,r,i,o,a,s,n){let l=[],h=[n.maxRandomnessOffset||1,(n.maxRandomnessOffset||1)+.3],c=[0,0],d=n.disableMultiStroke?1:2,u=n.preserveVertices;for(let p=0;p<d;p++)0===p?l.push({op:"move",data:[s[0],s[1]]}):l.push({op:"move",data:[s[0]+(u?0:$(h[0],n)),s[1]+(u?0:$(h[0],n))]}),c=u?[o,a]:[o+$(h[p],n),a+$(h[p],n)],l.push({op:"bcurveTo",data:[t+$(h[p],n),e+$(h[p],n),r+$(h[p],n),i+$(h[p],n),c[0],c[1]]});return l}(t,r,o,n,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 F(t,e){return(function(t,e){let r=t.fillStyle||"hachure";if(!u[r])switch(r){case"zigzag":u[r]||(u[r]=new n(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,x).fillPolygons(t,e)}function L(t){let e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function A(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*(A(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 s=a?o.disableMultiStrokeFill:o.disableMultiStroke,n=O(t,e,r,i,o,!0,!1);if(s)return n;let l=O(t,e,r,i,o,!0,!0);return n.concat(l)}function O(t,e,r,i,o,a,s){let n=Math.pow(t-r,2)+Math.pow(e-i,2),l=Math.sqrt(n),h=1;h=l<200?1:l>500?.4:-.0016668*l+1.233334;let c=o.maxRandomnessOffset||0;c*c*100>n&&(c=l/10);let d=c/2,u=.2+.2*A(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&&(s?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))]})),s?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 q(i,null,r)}function q(t,e,r){let i=t.length,o=[];if(i>3){let a=[],s=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]+(s*t[e+1][0]-s*t[e-1][0])/6,r[1]+(s*t[e+1][1]-s*t[e-1][1])/6],a[2]=[t[e+1][0]+(s*t[e][0]-s*t[e+2][0])/6,t[e+1][1]+(s*t[e][1]-s*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 I(t,e,r,i,o,a,s,n){let l=[],h=[];if(0===n.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,n)-Math.PI/2;h.push([$(a,n)+e+.9*i*Math.cos(c-t),$(a,n)+r+.9*o*Math.sin(c-t)]);let d=2*Math.PI+c-.01;for(let s=c;s<d;s+=t){let t=[$(a,n)+e+i*Math.cos(s),$(a,n)+r+o*Math.sin(s)];l.push(t),h.push(t)}h.push([$(a,n)+e+i*Math.cos(c+2*Math.PI+.5*s),$(a,n)+r+o*Math.sin(c+2*Math.PI+.5*s)]),h.push([$(a,n)+e+.98*i*Math.cos(c+s),$(a,n)+r+.98*o*Math.sin(c+s)]),h.push([$(a,n)+e+.9*i*Math.cos(c+.5*s),$(a,n)+r+.9*o*Math.sin(c+.5*s)])}return[h,l]}function K(t,e,r,i,o,a,s,n,l){let h=a+$(.1,l),c=[];c.push([$(n,l)+e+.9*i*Math.cos(h-t),$(n,l)+r+.9*o*Math.sin(h-t)]);for(let a=h;a<=s;a+=t)c.push([$(n,l)+e+i*Math.cos(a),$(n,l)+r+o*Math.sin(a)]);return c.push([e+i*Math.cos(s),r+o*Math.sin(s)]),c.push([e+i*Math.cos(s),r+o*Math.sin(s)]),q(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 W(t,e,r,i,o){let a=o||[],s=t[e],n=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],s,n);e>l&&(l=e,h=i)}return Math.sqrt(l)>i?(W(t,e,h+1,i,a),W(t,h,r,i,a)):(a.length||a.push(s),a.push(n)),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,s,n,l,h,c,d,u,p=o||[];if(a=e[r+0],s=e[r+1],n=e[r+2],l=e[r+3],h=3*s[0]-2*a[0]-l[0],h*=h,c=3*s[1]-2*a[1]-l[1],c*=c,d=3*n[0]-2*l[0]-a[0],d*=d,u=3*n[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],s=e[r+2],n=e[r+3],l=z(o,a,.5),h=z(a,s,.5),c=z(s,n,.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,n],0,i,p)}return p}(t,3*r,e,i);return r&&r>0?W(i,0,i.length,r):i}let N="none";class H{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",[k(t,e,r,i,a)],a)}rectangle(t,e,r,i,o){var a,s,n,l;let h=this._o(o),c=[],d=b([[a=t,s=e],[a+(n=r),s],[a+n,s+(l=i)],[a,s+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(F([o],h))}return h.stroke!==N&&c.push(d),this._d("rectangle",c,h)}ellipse(t,e,r,i,o){let a=this._o(o),s=[],n=T(r,i,a),l=B(t,e,a,n);if(a.fill)if("solid"===a.fillStyle){let r=B(t,e,a,n).opset;r.type="fillPath",s.push(r)}else s.push(F([l.estimatedPoints],a));return a.stroke!==N&&s.push(l.opset),this._d("ellipse",s,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",[b(t,!1,r)],r)}arc(t,e,r,i,o,a,s=!1,n){let l=this._o(n),h=[],c=S(t,e,r,i,o,a,s,!0,l);if(s&&l.fill)if("solid"===l.fillStyle){let s=Object.assign({},l);s.disableMultiStroke=!0;let n=S(t,e,r,i,o,a,!0,!1,s);n.type="fillPath",h.push(n)}else h.push(function(t,e,r,i,o,a,s){let n=Math.abs(r/2),l=Math.abs(i/2);n+=$(.01*n,s),l+=$(.01*l,s);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)/s.curveStepCount,u=[];for(let r=h;r<=c;r+=d)u.push([t+n*Math.cos(r),e+l*Math.sin(r)]);return u.push([t+n*Math.cos(c),e+l*Math.sin(c)]),u.push([t,e]),F([u],s)}(t,e,r,i,o,a,l));return l.stroke!==N&&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!==N)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(F([e],r))}return r.stroke!==N&&i.push(o),this._d("curve",i,r)}polygon(t,e){let r=this._o(e),i=[],o=b(t,!0,r);return r.fill&&("solid"===r.fillStyle?i.push(_([t],r)):i.push(F([t],r))),r.stroke!==N&&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!==N,a=r.stroke!==N,s=!!(r.simplification&&r.simplification<1),n=function(t,e){let r=m(y(f(t))),i=[],o=[],a=[0,0],s=[],n=()=>{s.length>=4&&o.push(...j(s,1)),s=[]},l=()=>{n(),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":n(),o.push([e[0],e[1]]);break;case"C":if(!s.length){let t=o.length?o[o.length-1]:a;s.push([t[0],t[1]])}s.push([e[0],e[1]]),s.push([e[2],e[3]]),s.push([e[4],e[5]]);break;case"Z":n(),o.push([a[0],a[1]])}if(l(),!e)return i;let h=[];for(let t of i){let r=W(t,0,t.length,e);r.length&&h.push(r)}return h}(t,s?4-4*(r.simplification||1):(1+r.roughness)/2),l=v(t,r);if(o)if("solid"===r.fillStyle)if(1===n.length){let e=v(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(_(n,r));else i.push(F(n,r));return a&&(s?n.forEach(t=>{i.push(b(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:N};break;case"fillPath":e={d:this.opsToPath(t),stroke:N,strokeWidth:0,fill:r.fill||N};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||N,strokeWidth:r,fill:N}}_mergedShape(t){return t.filter((t,e)=>0===e||"move"!==t.op)}}class U{constructor(t,e){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new H(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,s=!1,n){let l=this.gen.arc(t,e,r,i,o,a,s,n);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 X{constructor(t,e){this.svg=t,this.gen=new H(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 s of e){let e=null;switch(s.type){case"path":(e=i.createElementNS(Y,"path")).setAttribute("d",this.opsToPath(s,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(s,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,s,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,s=!1,n){let l=this.gen.arc(t,e,r,i,o,a,s,n);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 G={canvas:(t,e)=>new U(t,e),svg:(t,e)=>new X(t,e),generator:t=>new H(t),newSeed:()=>H.newSeed()};r.d(e,{A:()=>G})},8141(t,e,r){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 s(t){return"translate("+t+",0)"}function n(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?s:n;function y(s){var n=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,C=e.range(),x=+C[0]+u,k=+C[C.length-1]+u,b=(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=s.selection?s.selection():s,T=w.selectAll(".domain").data([null]),B=w.selectAll(".tick").data(n,e).order(),S=B.exit(),v=B.enter().append("g").attr("class","tick"),_=B.select("line"),F=B.select("text");T=T.merge(T.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),B=B.merge(v),_=_.merge(v.append("line").attr("stroke","currentColor").attr(g+"2",p*h)),F=F.merge(v.append("text").attr("fill","currentColor").attr(g,p*m).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),s!==w&&(T=T.transition(s),B=B.transition(s),_=_.transition(s),F=F.transition(s),S=S.transition(s).attr("opacity",1e-6).attr("transform",function(t){return isFinite(t=b(t))?f(t+u):this.getAttribute("transform")}),v.attr("opacity",1e-6).attr("transform",function(t){var e=this.parentNode.__axis;return f((e&&isFinite(e=e(t))?e:b(t))+u)})),S.remove(),T.attr("d",4===t||2===t?c?"M"+p*c+","+x+"H"+u+"V"+k+"H"+p*c:"M"+u+","+x+"V"+k:c?"M"+x+","+p*c+"V"+u+"H"+k+"V"+p*c:"M"+x+","+u+"H"+k),B.attr("opacity",1).attr("transform",function(t){return f(b(t)+u)}),_.attr(g+"2",p*h),F.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=b})}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,{JLW:()=>oU,l78:()=>d,tlR:()=>c,qrM:()=>o4,Yu4:()=>o8,IA3:()=>o9,Wi0:()=>ae,PGM:()=>ar,OEq:()=>ao,y8u:()=>an,olC:()=>ah,IrU:()=>ad,oDi:()=>ag,Q7f:()=>ay,cVp:()=>aC,lUB:()=>oG,Lx9:()=>ak,nVG:()=>a_,uxU:()=>aF,Xf2:()=>aM,GZz:()=>aE,UPb:()=>aD,dyv:()=>aO,GPZ:()=>tn,Sk5:()=>eW,bEH:()=>ro,n8j:()=>oQ,T9B:()=>i,jkA:()=>o,rLf:()=>o1,WH:()=>function t(){var e,r,i=rc().unknown(void 0),o=i.domain,a=i.range,s=0,n=1,l=!1,h=0,c=0,d=.5;function u(){var t=o().length,i=n<s,u=i?n:s,p=i?s:n;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?([s,n]=t,s*=1,n*=1,u()):[s,n]},i.rangeRound=function(t){return[s,n]=t,s*=1,n*=1,l=!0,u()},i.bandwidth=function(){return r},i.step=function(){return e},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(),[s,n]).round(l).paddingInner(h).paddingOuter(c).align(d)},ra.apply(u(),arguments)},m4Y:()=>function t(){var e,r=rM();return r.copy=function(){return rA(r,t())},ra.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,s]=i?rg(e,t,r):rg(t,e,r);if(!(a>=o))return[];let n=a-o+1,l=Array(n);if(i)if(s<0)for(let t=0;t<n;++t)l[t]=-((a-t)/s);else for(let t=0;t<n;++t)l[t]=(a-t)*s;else if(s<0)for(let t=0;t<n;++t)l[t]=-((o+t)/s);else for(let t=0;t<n;++t)l[t]=(o+t)*s;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,s=ry(t,e,r);switch((i=eO(null==i?",f":i)).type){case"s":var n=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$(n)/3)))-e$(Math.abs(s))))||(i.precision=a),tl(i,n);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=s)))-e$(o))+1)||(i.precision=a-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(a=Math.max(0,-e$(Math.abs(s))))||(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(),s=0,n=a.length-1,l=a[s],h=a[n],c=10;for(h<l&&(o=l,l=h,h=o,o=s,s=n,n=o);c-- >0;){if((o=rf(l,h,t))===i)return a[s]=l,a[n]=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},UMr:()=>rc,w7C:()=>ox,zt:()=>ok,Ltv:()=>ob,UAC:()=>rz,DCK:()=>tc,TUC:()=>rV,Agd:()=>rR,t6C:()=>rD,wXd:()=>rI,ABi:()=>rU,Ui6:()=>r6,rGn:()=>rZ,ucG:()=>rq,YPH:()=>rH,Mol:()=>rG,PGu:()=>rY,GuW:()=>rX,hkb:()=>eQ});var C,x=Array.prototype.find;function k(){return this.firstElementChild}var b=Array.prototype.filter;function w(){return Array.from(this.children)}function T(t){return Array(t.length)}function B(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function S(t,e,r,i,o,a){for(var s,n=0,l=e.length,h=a.length;n<h;++n)(s=e[n])?(s.__data__=a[n],i[n]=s):r[n]=new B(t,a[n]);for(;n<l;++n)(s=e[n])&&(o[n]=s)}function v(t,e,r,i,o,a,s){var n,l,h,c=new Map,d=e.length,u=a.length,p=Array(d);for(n=0;n<d;++n)(l=e[n])&&(p[n]=h=s.call(l,l.__data__,n,e)+"",c.has(h)?o[n]=l:c.set(h,l));for(n=0;n<u;++n)h=s.call(t,a[n],n,a)+"",(l=c.get(h))?(i[n]=l,l.__data__=a[n],c.delete(h)):r[n]=new B(t,a[n]);for(n=0;n<d;++n)(l=e[n])&&c.get(p[n])===l&&(o[n]=l)}function _(t){return t.__data__}function F(t,e){return t<e?-1:t>e?1:t>=e?0:0/0}B.prototype={constructor:B,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 L="http://www.w3.org/1999/xhtml",A={svg:"http://www.w3.org/2000/svg",xhtml:L,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function M(t){var e=t+="",r=e.indexOf(":");return r>=0&&"xmlns"!==(e=t.slice(0,r))&&(t=t.slice(r+1)),A.hasOwnProperty(e)?{space:A[e],local:t}:t}function $(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function E(t,e){return t.style.getPropertyValue(e)||$(t).getComputedStyle(t,null).getPropertyValue(e)}function O(t){return t.trim().split(/^|\s+/)}function D(t){return t.classList||new q(t)}function q(t){this._node=t,this._names=O(t.getAttribute("class")||"")}function I(t,e){for(var r=D(t),i=-1,o=e.length;++i<o;)r.add(e[i])}function K(t,e){for(var r=D(t),i=-1,o=e.length;++i<o;)r.remove(e[i])}function R(){this.textContent=""}function P(){this.innerHTML=""}function z(){this.nextSibling&&this.parentNode.appendChild(this)}function W(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function j(t){var e=M(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===L&&e.documentElement.namespaceURI===L?e.createElement(t):e.createElementNS(r,t)}})(e)}function N(){return null}function H(){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 Y(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function X(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 s=0,n=o.length;s<n;++s)if((i=o[s]).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 V(t,e,r){var i=$(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.dispatchEvent(o)}q.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 Z=[null];function Q(t,e){this._groups=t,this._parents=e}function J(){return new Q([[document.documentElement]],Z)}Q.prototype=J.prototype={constructor:Q,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,s,n=e[o],l=n.length,h=i[o]=Array(l),c=0;c<l;++c)(a=n[c])&&(s=t.call(a,a.__data__,c,n))&&("__data__"in a&&(s.__data__=a.__data__),h[c]=s);return new Q(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=[],s=0;s<i;++s)for(var n,l=r[s],h=l.length,c=0;c<h;++c)(n=l[c])&&(o.push(t.call(n,n.__data__,c,l)),a.push(n));return new Q(o,a)},selectChild:function(t){var e;return this.select(null==t?k:(e="function"==typeof t?t:m(t),function(){return x.call(this.children,e)}))},selectChildren:function(t){var e;return this.selectAll(null==t?w:(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,s=e[o],n=s.length,l=i[o]=[],h=0;h<n;++h)(a=s[h])&&t.call(a,a.__data__,h,s)&&l.push(a);return new Q(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,_);var r=e?v:S,i=this._parents,o=this._groups;"function"!=typeof t&&(C=t,t=function(){return C});for(var a=o.length,s=Array(a),n=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=n[h]=Array(g),y=s[h]=Array(g);r(c,d,f,y,l[h]=Array(u),p,e);for(var m,C,x,k,b=0,w=0;b<g;++b)if(x=f[b]){for(b>=w&&(w=b+1);!(k=y[w])&&++w<g;);x._next=k||null}}return(s=new Q(s,i))._enter=n,s._exit=l,s},enter:function(){return new Q(this._enter||this._groups.map(T),this._parents)},exit:function(){return new Q(this._exit||this._groups.map(T),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,s=Math.min(o,a),n=Array(o),l=0;l<s;++l)for(var h,c=r[l],d=i[l],u=c.length,p=n[l]=Array(u),g=0;g<u;++g)(h=c[g]||d[g])&&(p[g]=h);for(;l<o;++l)n[l]=r[l];return new Q(n,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,s=o[a];--a>=0;)(i=o[a])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i);return this},sort:function(t){function e(e,r){return e&&r?t(e.__data__,r.__data__):!e-!r}t||(t=F);for(var r=this._groups,i=r.length,o=Array(i),a=0;a<i;++a){for(var s,n=r[a],l=n.length,h=o[a]=Array(l),c=0;c<l;++c)(s=n[c])&&(h[c]=s);h.sort(e)}return new Q(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 s=i[o];if(s)return s}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],s=0,n=a.length;s<n;++s)(o=a[s])&&t.call(o,o.__data__,s,a);return this},attr:function(t,e){var r=M(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)):E(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=O(t+"");if(arguments.length<2){for(var i=D(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?R:("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?P:("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(z)},lower:function(){return this.each(W)},append:function(t){var e="function"==typeof t?t:j(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r="function"==typeof t?t:j(t),i=null==e?N:"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(H)},clone:function(t){return this.select(t?Y: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}}),s=a.length;if(arguments.length<2){var n=this.node().__on;if(n){for(var l,h=0,c=n.length;h<c;++h)for(i=0,l=n[h];i<s;++i)if((o=a[i]).type===l.type&&o.name===l.name)return l.value}return}for(n=e?G:X,i=0;i<s;++i)this.each(n(a[i],e,r));return this},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return V(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return V(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,s=o.length;a<s;++a)(i=o[a])&&(yield i)}};var tt={value:()=>{}};function te(){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 tr(i)}function tr(t){this._=t}function ti(t,e,r){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=tt,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=r&&t.push({name:e,value:r}),t}tr.prototype=te.prototype={constructor:tr,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,s=o.length;if(arguments.length<2){for(;++a<s;)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<s;)if(r=(t=o[a]).type)i[r]=ti(i[r],t.name,e);else if(null==e)for(r in i)i[r]=ti(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 tr(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 to,ta,ts,tn,tl,th,tc,td,tu,tp=0,tg=0,tf=0,ty=0,tm=0,tC=0,tx="object"==typeof performance&&performance.now?performance:Date,tk="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function tb(){return tm||(tk(tw),tm=tx.now()+tC)}function tw(){tm=0}function tT(){this._call=this._time=this._next=null}function tB(t,e,r){var i=new tT;return i.restart(t,e,r),i}function tS(){tm=(ty=tx.now())+tC,tp=tg=0;try{tb(),++tp;for(var t,e=td;e;)(t=tm-e._time)>=0&&e._call.call(void 0,t),e=e._next;--tp}finally{tp=0,function(){for(var t,e,r=td,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:td=e);tu=t,t_(i)}(),tm=0}}function tv(){var t=tx.now(),e=t-ty;e>1e3&&(tC-=e,ty=t)}function t_(t){!tp&&(tg&&(tg=clearTimeout(tg)),t-tm>24?(t<1/0&&(tg=setTimeout(tS,t-tx.now()-tC)),tf&&(tf=clearInterval(tf))):(tf||(ty=tx.now(),tf=setInterval(tv,1e3)),tp=1,tk(tS)))}function tF(t,e,r){var i=new tT;return e=null==e?0:+e,i.restart(r=>{i.stop(),t(r+e)},e,r),i}tT.prototype=tB.prototype={constructor:tT,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||tu===this||(tu?tu._next=this:td=this,tu=this),this._call=t,this._time=r,t_()},stop:function(){this._call&&(this._call=null,this._time=1/0,t_())}};var tL=te("start","end","cancel","interrupt"),tA=[];function tM(t,e,r,i,o,a){var s=t.__transition;if(s){if(r in s)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 n();for(h in o)if((u=o[h]).name===r.name){if(3===u.state)return tF(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(tF(function(){3===r.state&&(r.state=4,r.timer.restart(s,r.delay,r.time),s(l))}),r.state=2,r.on.call("start",t,t.__data__,r.index,r.group),2===r.state){for(r.state=3,i=Array(d=r.tween.length),h=0,c=-1;h<d;++h)(u=r.tween[h].value.call(t,t.__data__,r.index,r.group))&&(i[++c]=u);i.length=c+1}}function s(e){for(var o=e<r.duration?r.ease.call(null,e/r.duration):(r.timer.restart(n),r.state=5,1),a=-1,s=i.length;++a<s;)i[a].call(t,o);5===r.state&&(r.on.call("end",t,t.__data__,r.index,r.group),n())}function n(){for(var i in r.state=6,r.timer.stop(),delete o[e],o)return;delete t.__transition}o[e]=r,r.timer=tB(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:tL,tween:tA,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function t$(t,e){var r=tO(t,e);if(r.state>0)throw Error("too late; already scheduled");return r}function tE(t,e){var r=tO(t,e);if(r.state>3)throw Error("too late; already running");return r}function tO(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw Error("transition not found");return r}function tD(t,e){return t*=1,e*=1,function(r){return t*(1-r)+e*r}}var tq=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 s,n,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*r+e*i)&&(r-=t*l,i-=e*l),(n=Math.sqrt(r*r+i*i))&&(r/=n,i/=n,l/=n),t*i<e*r&&(t=-t,e=-e,l=-l,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(e,t)*tq,skewX:Math.atan(l)*tq,scaleX:s,scaleY:n}}function tR(t,e,r,i){function o(t){return t.length?t.pop()+" ":""}return function(a,s){var n,l,h,c,d=[],u=[];return a=t(a),s=t(s),!function(t,i,o,a,s,n){if(t!==o||i!==a){var l=s.push("translate(",null,e,null,r);n.push({i:l-4,x:tD(t,o)},{i:l-2,x:tD(i,a)})}else(o||a)&&s.push("translate("+o+e+a+r)}(a.translateX,a.translateY,s.translateX,s.translateY,d,u),n=a.rotate,l=s.rotate,n!==l?(n-l>180?l+=360:l-n>180&&(n+=360),u.push({i:d.push(o(d)+"rotate(",null,i)-2,x:tD(n,l)})):l&&d.push(o(d)+"rotate("+l+i),h=a.skewX,c=s.skewX,h!==c?u.push({i:d.push(o(d)+"skewX(",null,i)-2,x:tD(h,c)}):c&&d.push(o(d)+"skewX("+c+i),!function(t,e,r,i,a,s){if(t!==r||e!==i){var n=a.push(o(a)+"scale(",null,",",null,")");s.push({i:n-4,x:tD(t,r)},{i:n-2,x:tD(e,i)})}else(1!==r||1!==i)&&a.push(o(a)+"scale("+r+","+i+")")}(a.scaleX,a.scaleY,s.scaleX,s.scaleY,d,u),a=s=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 tP=tR(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)"),tz=tR(function(t){return null==t?tI:(to||(to=document.createElementNS("http://www.w3.org/2000/svg","g")),to.setAttribute("transform",t),t=to.transform.baseVal.consolidate())?tK((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):tI},", ",")",")");function tW(t,e,r){var i=t._id;return t.each(function(){var t=tE(this,i);(t.value||(t.value={}))[e]=r.apply(this,arguments)}),function(t){return tO(t,i).value[e]}}function tj(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function tN(t,e){var r=Object.create(t.prototype);for(var i in e)r[i]=e[i];return r}function tH(){}var tU=1/.7,tY="\\s*([+-]?\\d+)\\s*",tX="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tG="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tV=/^#([0-9a-f]{3,8})$/,tZ=RegExp(`^rgb\\(${tY},${tY},${tY}\\)$`),tQ=RegExp(`^rgb\\(${tG},${tG},${tG}\\)$`),tJ=RegExp(`^rgba\\(${tY},${tY},${tY},${tX}\\)$`),t0=RegExp(`^rgba\\(${tG},${tG},${tG},${tX}\\)$`),t1=RegExp(`^hsl\\(${tX},${tG},${tG}\\)$`),t2=RegExp(`^hsla\\(${tX},${tG},${tG},${tX}\\)$`),t5={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 t3(){return this.rgb().formatHex()}function t4(){return this.rgb().formatRgb()}function t6(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=tV.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?t8(e):3===r?new ee(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?t7(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?t7(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=tZ.exec(t))?new ee(e[1],e[2],e[3],1):(e=tQ.exec(t))?new ee(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=tJ.exec(t))?t7(e[1],e[2],e[3],e[4]):(e=t0.exec(t))?t7(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=t1.exec(t))?en(e[1],e[2]/100,e[3]/100,1):(e=t2.exec(t))?en(e[1],e[2]/100,e[3]/100,e[4]):t5.hasOwnProperty(t)?t8(t5[t]):"transparent"===t?new ee(0/0,0/0,0/0,0):null}function t8(t){return new ee(t>>16&255,t>>8&255,255&t,1)}function t7(t,e,r,i){return i<=0&&(t=e=r=0/0),new ee(t,e,r,i)}function t9(t){return(t instanceof tH||(t=t6(t)),t)?new ee((t=t.rgb()).r,t.g,t.b,t.opacity):new ee}function et(t,e,r,i){return 1==arguments.length?t9(t):new ee(t,e,r,null==i?1:i)}function ee(t,e,r,i){this.r=+t,this.g=+e,this.b=+r,this.opacity=+i}function er(){return`#${es(this.r)}${es(this.g)}${es(this.b)}`}function ei(){let t=eo(this.opacity);return`${1===t?"rgb(":"rgba("}${ea(this.r)}, ${ea(this.g)}, ${ea(this.b)}${1===t?")":`, ${t})`}`}function eo(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ea(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function es(t){return((t=ea(t))<16?"0":"")+t.toString(16)}function en(t,e,r,i){return i<=0?t=e=r=0/0:r<=0||r>=1?t=e=0/0:e<=0&&(t=0/0),new eh(t,e,r,i)}function el(t){if(t instanceof eh)return new eh(t.h,t.s,t.l,t.opacity);if(t instanceof tH||(t=t6(t)),!t)return new eh;if(t instanceof eh)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),s=0/0,n=a-o,l=(a+o)/2;return n?(s=e===a?(r-i)/n+(r<i)*6:r===a?(i-e)/n+2:(e-r)/n+4,n/=l<.5?a+o:2-a-o,s*=60):n=l>0&&l<1?0:s,new eh(s,n,l,t.opacity)}function eh(t,e,r,i){this.h=+t,this.s=+e,this.l=+r,this.opacity=+i}function ec(t){return(t=(t||0)%360)<0?t+360:t}function ed(t){return Math.max(0,Math.min(1,t||0))}function eu(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}tj(tH,t6,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:t3,formatHex:t3,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return el(this).formatHsl()},formatRgb:t4,toString:t4}),tj(ee,et,tN(tH,{brighter(t){return t=null==t?tU:Math.pow(tU,t),new ee(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new ee(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ee(ea(this.r),ea(this.g),ea(this.b),eo(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:er,formatHex:er,formatHex8:function(){return`#${es(this.r)}${es(this.g)}${es(this.b)}${es((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:ei,toString:ei})),tj(eh,function(t,e,r,i){return 1==arguments.length?el(t):new eh(t,e,r,null==i?1:i)},tN(tH,{brighter(t){return t=null==t?tU:Math.pow(tU,t),new eh(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new eh(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 ee(eu(t>=240?t-240:t+120,o,i),eu(t,o,i),eu(t<120?t+240:t-120,o,i),this.opacity)},clamp(){return new eh(ec(this.h),ed(this.s),ed(this.l),eo(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=eo(this.opacity);return`${1===t?"hsl(":"hsla("}${ec(this.h)}, ${100*ed(this.s)}%, ${100*ed(this.l)}%${1===t?")":`, ${t})`}`}}));var ep=t=>()=>t;function eg(t,e){return function(r){return t+r*e}}function ef(t,e){var r=e-t;return r?eg(t,r):ep(isNaN(t)?e:t)}var ey=function t(e){var r,i=1==(r=+e)?ef: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)}):ep(isNaN(t)?e:t)};function o(t,e){var r=i((t=et(t)).r,(e=et(e)).r),o=i(t.g,e.g),a=i(t.b,e.b),s=ef(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=a(e),t.opacity=s(e),t+""}}return o.gamma=t,o}(1),em=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eC=RegExp(em.source,"g");function ex(t,e){var r,i,o,a,s,n=em.lastIndex=eC.lastIndex=0,l=-1,h=[],c=[];for(t+="",e+="";(o=em.exec(t))&&(a=eC.exec(e));)(s=a.index)>n&&(s=e.slice(n,s),h[l]?h[l]+=s:h[++l]=s),(o=o[0])===(a=a[0])?h[l]?h[l]+=a:h[++l]=a:(h[++l]=null,c.push({i:l,x:tD(o,a)})),n=eC.lastIndex;return n<e.length&&(s=e.slice(n),h[l]?h[l]+=s:h[++l]=s),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 ek(t,e){var r;return("number"==typeof e?tD:e instanceof t6?ey:(r=t6(e))?(e=r,ey):ex)(t,e)}var eb=J.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 eS=J.prototype;eB.prototype=(function(t){return J().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),s=0;s<o;++s)for(var n,l,h=i[s],c=h.length,d=a[s]=Array(c),u=0;u<c;++u)(n=h[u])&&(l=t.call(n,n.__data__,u,h))&&("__data__"in n&&(l.__data__=n.__data__),d[u]=l,tM(d[u],e,r,u,d,tO(n,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=[],s=[],n=0;n<o;++n)for(var l,h=i[n],c=h.length,d=0;d<c;++d)if(l=h[d]){for(var u,p=t.call(l,l.__data__,d,h),g=tO(l,r),y=0,m=p.length;y<m;++y)(u=p[y])&&tM(u,e,r,y,p,g);a.push(p),s.push(l)}return new eB(a,s,e,r)},selectChild:eS.selectChild,selectChildren:eS.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,s=e[o],n=s.length,l=i[o]=[],h=0;h<n;++h)(a=s[h])&&t.call(a,a.__data__,h,s)&&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),s=Array(i),n=0;n<a;++n)for(var l,h=e[n],c=r[n],d=h.length,u=s[n]=Array(d),p=0;p<d;++p)(l=h[p]||c[p])&&(u[p]=l);for(;n<i;++n)s[n]=e[n];return new eB(s,this._parents,this._name,this._id)},selection:function(){return new eb(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 s,n=i[a],l=n.length,h=0;h<l;++h)if(s=n[h]){var c=tO(s,e);tM(s,t,r,h,n,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new eB(i,this._parents,t,r)},call:eS.call,nodes:eS.nodes,node:eS.node,size:eS.size,empty:eS.empty,each:eS.each,on:function(t,e){var r,i,o,a,s,n,l=this._id;return arguments.length<2?tO(this.node(),l).on.on(t):this.each((r=l,i=t,o=e,n=(i+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})?t$:tE,function(){var t=n(this,r),e=t.on;e!==a&&(s=(a=e).copy()).on(i,o),t.on=s}))},attr:function(t,e){var r=M(t),i="transform"===r?tz:ek;return this.attrTween(t,"function"==typeof e?(r.local?function(t,e,r){var i,o,a;return function(){var s,n,l=r(this);return null==l?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local))===(n=l+"")?null:s===i&&n===o?a:(o=n,a=e(i=s,l))}}:function(t,e,r){var i,o,a;return function(){var s,n,l=r(this);return null==l?void this.removeAttribute(t):(s=this.getAttribute(t))===(n=l+"")?null:s===i&&n===o?a:(o=n,a=e(i=s,l))}})(r,i,tW(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 s=this.getAttributeNS(t.space,t.local);return s===a?null:s===i?o:o=e(i=s,r)}}:function(t,e,r){var i,o,a=r+"";return function(){var s=this.getAttribute(t);return s===a?null:s===i?o:o=e(i=s,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=M(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,s,n,l,h,c,d,u,p,g,f,y,m,C,x,k,b,w,T,B="transform"==(t+="")?tP:ek;return null==e?this.styleTween(t,(i=t,function(){var t=E(this,i),e=(this.style.removeProperty(i),E(this,i));return t===e?null:t===o&&e===a?s:s=B(o=t,a=e)})).on("end.style."+t,ew(t)):"function"==typeof e?this.styleTween(t,(n=t,l=tW(this,"style."+t,e),function(){var t=E(this,n),e=l(this),r=e+"";return null==e&&(this.style.removeProperty(n),r=e=E(this,n)),t===r?null:t===h&&r===c?d:(c=r,d=B(h=t,e))})).each((u=this._id,x="end."+(C="style."+(p=t)),function(){var t=tE(this,u),e=t.on,r=null==t.value[C]?m||(m=ew(p)):void 0;(e!==g||y!==r)&&(f=(g=e).copy()).on(x,y=r),t.on=f})):this.styleTween(t,(k=t,T=e+"",function(){var t=E(this,k);return t===T?null:t===b?w:w=B(b=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=tW(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=tO(this.node(),r).tween,a=0,s=o.length;a<s;++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=tE(this,t),a=o.tween;if(a!==r){i=r=a;for(var s=0,n=i.length;s<n;++s)if(i[s].name===e){(i=i.slice()).splice(s,1);break}}o.tween=i}}:function(t,e,r){var i,o;if("function"!=typeof r)throw Error();return function(){var a=tE(this,t),s=a.tween;if(s!==i){o=(i=s).slice();for(var n={name:e,value:r},l=0,h=o.length;l<h;++l)if(o[l].name===e){o[l]=n;break}l===h&&o.push(n)}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(){t$(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e*=1,function(){t$(this,t).delay=e}})(e,t)):tO(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tE(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e*=1,function(){tE(this,t).duration=e}})(e,t)):tO(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(){tE(this,t).ease=e}}(e,t)):tO(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();tE(this,e).ease=r}))},end:function(){var t,e,r=this,i=r._id,o=r.size();return new Promise(function(a,s){var n={value:s},l={value:function(){0==--o&&a()}};r.each(function(){var r=tE(this,i),o=r.on;o!==t&&((e=(t=o).copy())._.cancel.push(n),e._.interrupt.push(n),e._.end.push(l)),r.on=e}),0===o&&a()})},[Symbol.iterator]:eS[Symbol.iterator]};var ev={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};J.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var r,i,o,a=t.__transition,s=!0;if(a){for(o in e=null==e?null:e+"",a){if((r=a[o]).name!==e){s=!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]}s&&delete t.__transition}}(this,t)})},J.prototype.transition=function(t){var e,r;t instanceof eB?(e=t._id,t=t._name):(e=++eT,(r=ev).time=tb(),t=null==t?null:t+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var s,n=i[a],l=n.length,h=0;h<l;++h)(s=n[h])&&tM(s,t,e,h,n,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}(s,e));return new eB(i,this._parents,t,e)};let{abs:e_,max:eF,min:eL}=Math;function eA(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>1?i[0]+i.slice(2):i,+t.slice(r+1)]}function e$(t){return(t=eM(Math.abs(t)))?t[1]:0/0}["w","e"].map(eA),["n","s"].map(eA),["n","w","e","s","nw","ne","sw","se"].map(eA);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 eq(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};var eI={"%":(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)=>eq(100*t,e),r:eq,s:function(t,e){var r=eM(t,e);if(!r)return ta=void 0,t.toPrecision(e);var i=r[0],o=r[1],a=o-(ta=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+Array(a-s+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 eK(t){return t}var eR=Array.prototype.map,eP=["y","z","a","f","p","n","µ","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 eW(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=eN)):void 0===e&&(e=ej);for(var r,i,o,a,s,n=new eY(t),l=[n];r=l.pop();)if((o=e(r.data))&&(s=(o=Array.from(o)).length))for(r.children=o,a=s-1;a>=0;--a)l.push(i=o[a]=new eY(o[a])),i.parent=r,i.depth=r.depth+1;return n.eachBefore(eU)}function ej(t){return t.children}function eN(t){return Array.isArray(t)?t[1]:null}function eH(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function eU(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 eX(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=(ts=function(t){var e,r,i,o=void 0===t.grouping||void 0===t.thousands?eK:(e=eR.call(t.grouping,Number),r=t.thousands+"",function(t,i){for(var o=t.length,a=[],s=0,n=e[0],l=0;o>0&&n>0&&(l+n+1>i&&(n=Math.max(1,i-l)),a.push(t.substring(o-=n,o+n)),!((l+=n+1)>i));)n=e[s=(s+1)%e.length];return a.reverse().join(r)}),a=void 0===t.currency?"":t.currency[0]+"",s=void 0===t.currency?"":t.currency[1]+"",n=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?eK:(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?"−":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,C=t.trim,x=t.type;"n"===x?(y=!0,x="g"):eI[x]||(void 0===m&&(m=12),C=!0,x="g"),(g||"0"===r&&"="===i)&&(g=!0,r="0",i="=");var k=(e&&void 0!==e.prefix?e.prefix:"")+("$"===p?a:"#"===p&&/[boxX]/.test(x)?"0"+x.toLowerCase():""),b=("$"===p?s:/[%p]/.test(x)?h:"")+(e&&void 0!==e.suffix?e.suffix:""),w=eI[x],T=/[defgprs%]/.test(x);function B(t){var e,a,s,h=k,p=b;if("c"===x)p=w(t)+p,t="";else{var B=(t*=1)<0||1/t<0;if(t=isNaN(t)?d:w(Math.abs(t),m),C&&(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"!==x||isNaN(t)||void 0===ta?"":eP[8+ta/3])+p+(B&&"("===u?")":""),T){for(e=-1,a=t.length;++e<a;)if(48>(s=t.charCodeAt(e))||s>57){p=(46===s?n+t.slice(e+1):t.slice(e))+p,t=t.slice(0,e);break}}}y&&!g&&(t=o(t,1/0));var S=h.length+t.length+p.length,v=S<f?Array(f-S+1).join(r):"";switch(y&&g&&(t=o(v+t,v.length?f-p.length:1/0),v=""),i){case"<":t=h+t+p+v;break;case"=":t=h+v+t+p;break;case"^":t=v.slice(0,S=v.length>>1)+h+t+p+v.slice(S);break;default:t=v+h+t+p}return l(t)}return m=void 0===m?6:/[gprs]/.test(x)?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,tl=ts.formatPrefix,eY.prototype=eW.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,s=[a],n=[],l=-1;a=s.pop();)if(n.push(a),r=a.children)for(i=0,o=r.length;i<o;++i)s.push(r[i]);for(;a=n.pop();)t.call(e,a,++l,this);return this},eachBefore:function(t,e){for(var r,i,o=this,a=[o],s=-1;o=a.pop();)if(t.call(e,o,++s,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 eW(this).eachBefore(eH)},[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)}};var eG=function t(e){function r(t,r,i,o,a){!function(t,e,r,i,o,a){for(var s,n,l,h,c,d,u,p,g,f,y,m=[],C=e.children,x=0,k=0,b=C.length,w=e.value;x<b;){l=o-r,h=a-i;do c=C[k++].value;while(!c&&k<b)for(d=u=c,g=Math.max(u/(y=c*c*(f=Math.max(h/l,l/h)/(w*t))),y/d);k<b;++k){if(c+=n=C[k].value,n<d&&(d=n),n>u&&(u=n),(p=Math.max(u/(y=c*c*f),y/d))>g){c-=n;break}g=p}m.push(s={value:c,dice:l<h,children:C.slice(x,k)}),s.dice?function(t,e,r,i,o){for(var a,s=t.children,n=-1,l=s.length,h=t.value&&(i-e)/t.value;++n<l;)(a=s[n]).y0=r,a.y1=o,a.x0=e,a.x1=e+=a.value*h}(s,r,i,o,w?i+=h*c/w:a):function(t,e,r,i,o){for(var a,s=t.children,n=-1,l=s.length,h=t.value&&(o-r)/t.value;++n<l;)(a=s[n]).x0=e,a.x1=i,a.y0=r,a.y1=r+=a.value*h}(s,r,i,w?r+=l*c/w:o,a),w-=c,x=k}}(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=eG,e=!1,r=1,i=1,o=[0],a=eV,s=eV,n=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(eX),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+=s(e)-r,d-=n(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))}return 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?(s="function"==typeof t?t:eZ(+t),c):s},c.paddingRight=function(t){return arguments.length?(n="function"==typeof t?t:eZ(+t),c):n},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 ee||(t=t9(t));var e,r,i=rt(t.r),o=rt(t.g),a=rt(t.b),s=e8((.2225045*i+.7168786*o+.0606169*a)/1);return i===o&&o===a?e=r=s:(e=e8((.4360747*i+.3850649*o+.1430804*a)/.96422),r=e8((.0139322*i+.0971045*o+.7141733*a)/.82521)),new e6(116*s-16,500*(e-s),200*(s-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 e7(t){return t>e2?t*t*t:e5*(t-e1)}function e9(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(0/0,0<t.l&&t.l<100?0:0/0,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)}tj(e6,function(t,e,r,i){return 1==arguments.length?e4(t):new e6(t,e,r,null==i?1:i)},tN(tH,{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*e7(e),new ee(e9(3.1338561*e-1.6168667*(t=+e7(t))-.4906146*(r=.82521*e7(r))),e9(-.9787684*e+1.9161415*t+.033454*r),e9(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),tj(rr,re,tN(tH,{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()}}));var ro=(C=function(t,e){var r=e-t;return r?eg(t,r>180||r<-180?r-360*Math.round(r/360):r):ep(isNaN(t)?e:t)},function(t,e){var r=C((t=re(t)).h,(e=re(e)).h),i=ef(t.c,e.c),o=ef(t.l,e.l),a=ef(t.opacity,e.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=o(e),t.opacity=a(e),t+""}});function ra(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}class rs extends Map{constructor(t,e=rl){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(rn(this,t))}has(t){return super.has(rn(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 rn({_intern:t,_key:e},r){let i=e(r);return t.has(i)?t.get(i):r}function rl(t){return null!==t&&"object"==typeof t?t.valueOf():t}let rh=Symbol("implicit");function rc(){var t=new rs,e=[],r=[],i=rh;function o(o){let a=t.get(o);if(void 0===a){if(i!==rh)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 rc(e,r).unknown(i)},ra.apply(o,arguments),o}let rd=Math.sqrt(50),ru=Math.sqrt(10),rp=Math.sqrt(2);function rg(t,e,r){let i,o,a,s=(e-t)/Math.max(0,r),n=Math.floor(Math.log10(s)),l=s/Math.pow(10,n),h=l>=rd?10:l>=ru?5:l>=rp?2:1;return(n<0?(i=Math.round(t*(a=Math.pow(10,-n)/h)),o=Math.round(e*a),i/a<t&&++i,o/a>e&&--o,a=-a):(i=Math.round(t/(a=Math.pow(10,n)*h)),o=Math.round(e/a),i*a<t&&++i,o*a>e&&--o),o<i&&.5<=r&&r<2)?rg(t,e,2*r):[i,o,a]}function rf(t,e,r){return rg(t*=1,e*=1,r*=1)[2]}function ry(t,e,r){e*=1,t*=1,r*=1;let i=e<t,o=i?rf(e,t,r):rf(t,e,r);return(i?-1:1)*(o<0?-(1/o):o)}function rm(t,e){return null==t||null==e?0/0:t<e?-1:t>e?1:t>=e?0:0/0}function rC(t,e){return null==t||null==e?0/0:e<t?-1:e>t?1:e>=t?0:0/0}function rx(t){let e,r,i;function o(t,i,a=0,s=t.length){if(a<s){if(0!==e(i,i))return s;do{let e=a+s>>>1;0>r(t[e],i)?a=e+1:s=e}while(a<s)}return a}return 2!==t.length?(e=rm,r=(e,r)=>rm(t(e),r),i=(e,r)=>t(e)-r):(e=t===rm||t===rC?t:rk,r=t,i=t),{left:o,center:function(t,e,r=0,a=t.length){let s=o(t,e,r,a-1);return s>r&&i(t[s-1],e)>-i(t[s],e)?s-1:s},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 rb=rx(rm),rw=rb.right;rb.left,rx(function(t){return null===t?0/0:+t}).center;function rT(t,e){return t*=1,e*=1,function(r){return Math.round(t*(1-r)+e*r)}}function rB(t){return+t}var rS=[0,1];function rv(t){return t}function r_(t,e){var r;return(e-=t*=1)?function(r){return(r-t)/e}:(r=isNaN(e)?0/0:.5,function(){return r})}function rF(t,e,r){var i=t[0],o=t[1],a=e[0],s=e[1];return o<i?(i=r_(o,i),a=r(s,a)):(i=r_(i,o),a=r(a,s)),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),s=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)o[s]=r_(t[s],t[s+1]),a[s]=r(e[s],e[s+1]);return function(e){var r=rw(t,e,1,i)-1;return a[r](o[r](e))}}function rA(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function rM(){return(function(){var t,e,r,i,o,a,s=rS,n=rS,l=function t(e,r){var i,o,a=typeof r;return null==r||"boolean"===a?ep(r):("number"===a?tD:"string"===a?(o=t6(r))?(r=o,ey):ex:r instanceof t6?ey: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,s=Array(a),n=Array(o);for(i=0;i<a;++i)s[i]=t(e[i],r[i]);for(;i<o;++i)n[i]=r[i];return function(t){for(i=0;i<a;++i)n[i]=s[i](t);return n}}:"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}}:tD: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=rv;function c(){var t,e,r,l=Math.min(s.length,n.length);return h!==rv&&(t=s[0],e=s[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(s.map(t),n,l)))(t(h(e)))}return d.invert=function(r){return h(e((a||(a=i(n,s.map(t),tD)))(r)))},d.domain=function(t){return arguments.length?(s=Array.from(t,rB),c()):s.slice()},d.range=function(t){return arguments.length?(n=Array.from(t),c()):n.slice()},d.rangeRound=function(t){return n=Array.from(t),l=rT,c()},d.clamp=function(t){return arguments.length?(h=!!t||rv,c()):h!==rv},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()}})()(rv,rv)}let r$=new Date,rE=new Date;function rO(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 s,n=[];if(r=o.ceil(r),a=null==a?1:Math.floor(a),!(r<i)||!(a>0))return n;do n.push(s=new Date(+r)),e(r,a),t(r);while(s<r&&r<i)return n},o.filter=r=>rO(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)=>(r$.setTime(+e),rE.setTime(+i),t(r$),t(rE),Math.floor(r(r$,rE))),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 rD=rO(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);rD.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?rO(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):rD:null,rD.range;let rq=rO(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds());rq.range;let rI=rO(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes());rI.range;let rK=rO(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes());rK.range;let rR=rO(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());rR.range;let rP=rO(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours());rP.range;let rz=rO(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);rz.range;let rW=rO(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1);rW.range;let rj=rO(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 rN(t){return rO(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)}rj.range;let rH=rN(0),rU=rN(1),rY=rN(2),rX=rN(3),rG=rN(4),rV=rN(5),rZ=rN(6);function rQ(t){return rO(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,rU.range,rY.range,rX.range,rG.range,rV.range,rZ.range;let rJ=rQ(0),r0=rQ(1),r1=rQ(2),r2=rQ(3),r5=rQ(4),r3=rQ(5),r4=rQ(6);rJ.range,r0.range,r1.range,r2.range,r5.range,r3.range,r4.range;let r6=rO(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());r6.range;let r8=rO(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());r8.range;let r7=rO(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?rO(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 r9=rO(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 it(t,e,r,i,o,a){let s=[[rq,1,1e3],[rq,5,5e3],[rq,15,15e3],[rq,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]];function n(e,r,i){let o=Math.abs(r-e)/i,a=rx(([,,t])=>t).right(s,o);if(a===s.length)return t.every(ry(e/31536e6,r/31536e6,i));if(0===a)return rD.every(Math.max(ry(e,r,i),1));let[n,l]=s[o/s[a-1][2]<s[a][2]/o?a-1:a];return n.every(l)}return[function(t,e,r){let i=e<t;i&&([t,e]=[e,t]);let o=r&&"function"==typeof r.range?r:n(t,e,r),a=o?o.range(t,+e+1):[];return i?a.reverse():a},n]}r9.every=t=>isFinite(t=Math.floor(t))&&t>0?rO(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,r9.range;let[ie,ir]=it(r9,r8,rJ,rj,rP,rK),[ii,io]=it(r7,r6,rH,rz,rR,rI);function ia(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 is(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 il(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var ih={"-":"",_:" ",0:"0"},ic=/^\s*\d+/,id=/^%/,iu=/[\\^$*+?|[\]().{}]/g;function ip(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 ig(t){return t.replace(iu,"\\$&")}function iy(t){return RegExp("^(?:"+t.map(ig).join("|")+")","i")}function im(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function iC(t,e,r){var i=ic.exec(e.slice(r,r+1));return i?(t.w=+i[0],r+i[0].length):-1}function ix(t,e,r){var i=ic.exec(e.slice(r,r+1));return i?(t.u=+i[0],r+i[0].length):-1}function ik(t,e,r){var i=ic.exec(e.slice(r,r+2));return i?(t.U=+i[0],r+i[0].length):-1}function ib(t,e,r){var i=ic.exec(e.slice(r,r+2));return i?(t.V=+i[0],r+i[0].length):-1}function iw(t,e,r){var i=ic.exec(e.slice(r,r+2));return i?(t.W=+i[0],r+i[0].length):-1}function iT(t,e,r){var i=ic.exec(e.slice(r,r+4));return i?(t.y=+i[0],r+i[0].length):-1}function iB(t,e,r){var i=ic.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 iv(t,e,r){var i=ic.exec(e.slice(r,r+1));return i?(t.q=3*i[0]-3,r+i[0].length):-1}function i_(t,e,r){var i=ic.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=ic.exec(e.slice(r,r+2));return i?(t.d=+i[0],r+i[0].length):-1}function iL(t,e,r){var i=ic.exec(e.slice(r,r+3));return i?(t.m=0,t.d=+i[0],r+i[0].length):-1}function iA(t,e,r){var i=ic.exec(e.slice(r,r+2));return i?(t.H=+i[0],r+i[0].length):-1}function iM(t,e,r){var i=ic.exec(e.slice(r,r+2));return i?(t.M=+i[0],r+i[0].length):-1}function i$(t,e,r){var i=ic.exec(e.slice(r,r+2));return i?(t.S=+i[0],r+i[0].length):-1}function iE(t,e,r){var i=ic.exec(e.slice(r,r+3));return i?(t.L=+i[0],r+i[0].length):-1}function iO(t,e,r){var i=ic.exec(e.slice(r,r+6));return i?(t.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function iD(t,e,r){var i=id.exec(e.slice(r,r+1));return i?r+i[0].length:-1}function iq(t,e,r){var i=ic.exec(e.slice(r));return i?(t.Q=+i[0],r+i[0].length):-1}function iI(t,e,r){var i=ic.exec(e.slice(r));return i?(t.s=+i[0],r+i[0].length):-1}function iK(t,e){return ip(t.getDate(),e,2)}function iR(t,e){return ip(t.getHours(),e,2)}function iP(t,e){return ip(t.getHours()%12||12,e,2)}function iz(t,e){return ip(1+rz.count(r7(t),t),e,3)}function iW(t,e){return ip(t.getMilliseconds(),e,3)}function ij(t,e){return iW(t,e)+"000"}function iN(t,e){return ip(t.getMonth()+1,e,2)}function iH(t,e){return ip(t.getMinutes(),e,2)}function iU(t,e){return ip(t.getSeconds(),e,2)}function iY(t){var e=t.getDay();return 0===e?7:e}function iX(t,e){return ip(rH.count(r7(t)-1,t),e,2)}function iG(t){var e=t.getDay();return e>=4||0===e?rG(t):rG.ceil(t)}function iV(t,e){return t=iG(t),ip(rG.count(r7(t),t)+(4===r7(t).getDay()),e,2)}function iZ(t){return t.getDay()}function iQ(t,e){return ip(rU.count(r7(t)-1,t),e,2)}function iJ(t,e){return ip(t.getFullYear()%100,e,2)}function i0(t,e){return ip((t=iG(t)).getFullYear()%100,e,2)}function i1(t,e){return ip(t.getFullYear()%1e4,e,4)}function i2(t,e){var r=t.getDay();return ip((t=r>=4||0===r?rG(t):rG.ceil(t)).getFullYear()%1e4,e,4)}function i5(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+ip(e/60|0,"0",2)+ip(e%60,"0",2)}function i3(t,e){return ip(t.getUTCDate(),e,2)}function i4(t,e){return ip(t.getUTCHours(),e,2)}function i6(t,e){return ip(t.getUTCHours()%12||12,e,2)}function i8(t,e){return ip(1+rW.count(r9(t),t),e,3)}function i7(t,e){return ip(t.getUTCMilliseconds(),e,3)}function i9(t,e){return i7(t,e)+"000"}function ot(t,e){return ip(t.getUTCMonth()+1,e,2)}function oe(t,e){return ip(t.getUTCMinutes(),e,2)}function or(t,e){return ip(t.getUTCSeconds(),e,2)}function oi(t){var e=t.getUTCDay();return 0===e?7:e}function oo(t,e){return ip(rJ.count(r9(t)-1,t),e,2)}function oa(t){var e=t.getUTCDay();return e>=4||0===e?r5(t):r5.ceil(t)}function os(t,e){return t=oa(t),ip(r5.count(r9(t),t)+(4===r9(t).getUTCDay()),e,2)}function on(t){return t.getUTCDay()}function ol(t,e){return ip(r0.count(r9(t)-1,t),e,2)}function oh(t,e){return ip(t.getUTCFullYear()%100,e,2)}function oc(t,e){return ip((t=oa(t)).getUTCFullYear()%100,e,2)}function od(t,e){return ip(t.getUTCFullYear()%1e4,e,4)}function ou(t,e){var r=t.getUTCDay();return ip((t=r>=4||0===r?r5(t):r5.ceil(t)).getUTCFullYear()%1e4,e,4)}function op(){return"+0000"}function og(){return"%"}function of(t){return+t}function oy(t){return Math.floor(t/1e3)}function om(t){return new Date(t)}function oC(t){return t instanceof Date?+t:+new Date(+t)}function ox(){return ra.apply((function t(e,r,i,o,a,s,n,l,h,c){var d=rM(),u=d.invert,p=d.domain,g=c(".%L"),f=c(":%S"),y=c("%I:%M"),m=c("%I %p"),C=c("%a %d"),x=c("%b %d"),k=c("%B"),b=c("%Y");function w(t){return(h(t)<t?g:l(t)<t?f:n(t)<t?y:s(t)<t?m:o(t)<t?a(t)<t?C:x:i(t)<t?k:b)(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(om)},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,s,n,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,s=e.length-1,n=e[a],(l=e[s])<n&&(o=a,a=s,s=o,o=n,n=l,l=o),e[a]=i.floor(n),e[s]=i.ceil(l),e)):d},d.copy=function(){return rA(d,t(e,r,i,o,a,s,n,l,h,c))},d})(ii,io,r7,r6,rH,rz,rR,rI,rq,tc).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}tc=(th=function(t){var e=t.dateTime,r=t.date,i=t.time,o=t.periods,a=t.days,s=t.shortDays,n=t.months,l=t.shortMonths,h=iy(o),c=im(o),d=iy(a),u=im(a),p=iy(s),g=im(s),f=iy(n),y=im(n),m=iy(l),C=im(l),x={a:function(t){return s[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return n[t.getMonth()]},c:null,d:iK,e:iK,f:ij,g:i0,G:i2,H:iR,I:iP,j:iz,L:iW,m:iN,M:iH,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:of,s:oy,S:iU,u:iY,U:iX,V:iV,w:iZ,W:iQ,x:null,X:null,y:iJ,Y:i1,Z:i5,"%":og},k={a:function(t){return s[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return n[t.getUTCMonth()]},c:null,d:i3,e:i3,f:i9,g:oc,G:ou,H:i4,I:i6,j:i8,L:i7,m:ot,M:oe,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:of,s:oy,S:or,u:oi,U:oo,V:os,w:on,W:ol,x:null,X:null,y:oh,Y:od,Z:op,"%":og},b={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=C.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:iO,g:iB,G:iT,H:iA,I:iA,j:iL,L:iE,m:i_,M:iM,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:iv,Q:iq,s:iI,S:i$,u:ix,U:ik,V:ib,w:iC,W:iw,x:function(t,e,i){return B(t,r,e,i)},X:function(t,e,r){return B(t,i,e,r)},y:iB,Y:iT,Z:iS,"%":iD};function w(t,e){return function(r){var i,o,a,s=[],n=-1,l=0,h=t.length;for(r instanceof Date||(r=new Date(+r));++n<h;)37===t.charCodeAt(n)&&(s.push(t.slice(l,n)),null!=(o=ih[i=t.charAt(++n)])?i=t.charAt(++n):o="e"===i?" ":"0",(a=e[i])&&(i=a(r,o)),s.push(i),l=n+1);return s.push(t.slice(l,n)),s.join("")}}function T(t,e){return function(r){var i,o,a=il(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=is(il(a.y,0,1))).getUTCDay())>4||0===o?r0.ceil(i):r0(i),i=rW.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=ia(il(a.y,0,1))).getDay())>4||0===o?rU.ceil(i):rU(i),i=rz.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?is(il(a.y,0,1)).getUTCDay():ia(il(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,is(a)):ia(a)}}function B(t,e,r,i){for(var o,a,s=0,n=e.length,l=r.length;s<n;){if(i>=l)return -1;if(37===(o=e.charCodeAt(s++))){if(!(a=b[(o=e.charAt(s++))in ih?e.charAt(s++):o])||(i=a(t,r,i))<0)return -1}else if(o!=r.charCodeAt(i++))return -1}return i}return x.x=w(r,x),x.X=w(i,x),x.c=w(e,x),k.x=w(r,k),k.X=w(i,k),k.c=w(e,k),{format:function(t){var e=w(t+="",x);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+="",k);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","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,th.parse,th.utcFormat,th.utcParse;var 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 ob(t){return"string"==typeof t?new Q([[document.querySelector(t)]],[document.documentElement]):new Q([[t]],Z)}function ow(t){return function(){return t}}let oT=Math.abs,oB=Math.atan2,oS=Math.cos,ov=Math.max,o_=Math.min,oF=Math.sin,oL=Math.sqrt,oA=Math.PI,oM=oA/2,o$=2*oA;function oE(t){return t>=1?oM:t<=-1?-oM:Math.asin(t)}let oO=Math.PI,oD=2*oO,oq=oD-1e-6;function oI(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class oK{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?oI:function(t){let e=Math.floor(t);if(!(e>=0))throw Error(`invalid digits: ${t}`);if(e>15)return oI;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,s=this._y1,n=r-t,l=i-e,h=a-t,c=s-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*n-l*h)>1e-6&&o){let u=r-a,p=i-s,g=n*n+l*l,f=Math.sqrt(g),y=Math.sqrt(d),m=o*Math.tan((oO-Math.acos((g+d-(u*u+p*p))/(2*f*y)))/2),C=m/y,x=m/f;Math.abs(C-1)>1e-6&&this._append`L${t+C*h},${e+C*c}`,this._append`A${o},${o},0,0,${+(c*u>h*p)},${this._x1=t+x*n},${this._y1=e+x*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 s=r*Math.cos(i),n=r*Math.sin(i),l=t+s,h=e+n,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%oD+oD),d>oq?this._append`A${r},${r},0,1,${c},${t-s},${e-n}A${r},${r},0,1,${c},${this._x1=l},${this._y1=h}`:d>1e-6&&this._append`A${r},${r},0,${+(d>=oO)},${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 oR(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 oK(e)}function oP(t){return t.innerRadius}function oz(t){return t.outerRadius}function oW(t){return t.startAngle}function oj(t){return t.endAngle}function oN(t){return t&&t.padAngle}function oH(t,e,r,i,o,a,s){var n=t-r,l=e-i,h=(s?a:-a)/oL(n*n+l*l),c=h*l,d=-h*n,u=t+c,p=e+d,g=r+c,f=i+d,y=(u+g)/2,m=(p+f)/2,C=g-u,x=f-p,k=C*C+x*x,b=o-a,w=u*f-g*p,T=(x<0?-1:1)*oL(ov(0,b*b*k-w*w)),B=(w*x-C*T)/k,S=(-w*C-x*T)/k,v=(w*x+C*T)/k,_=(-w*C+x*T)/k,F=B-y,L=S-m,A=v-y,M=_-m;return F*F+L*L>A*A+M*M&&(B=v,S=_),{cx:B,cy:S,x01:-c,y01:-d,x11:B*(o/b-1),y11:S*(o/b-1)}}function oU(){var t=oP,e=oz,r=ow(0),i=null,o=oW,a=oj,s=oN,n=null,l=oR(h);function h(){var h,c,d=+t.apply(this,arguments),u=+e.apply(this,arguments),p=o.apply(this,arguments)-oM,g=a.apply(this,arguments)-oM,f=oT(g-p),y=g>p;if(n||(n=h=l()),u<d&&(c=u,u=d,d=c),u>1e-12)if(f>o$-1e-12)n.moveTo(u*oS(p),u*oF(p)),n.arc(0,0,u,p,g,!y),d>1e-12&&(n.moveTo(d*oS(g),d*oF(g)),n.arc(0,0,d,g,p,y));else{var m,C,x=p,k=g,b=p,w=g,T=f,B=f,S=s.apply(this,arguments)/2,v=S>1e-12&&(i?+i.apply(this,arguments):oL(d*d+u*u)),_=o_(oT(u-d)/2,+r.apply(this,arguments)),F=_,L=_;if(v>1e-12){var A=oE(v/d*oF(S)),M=oE(v/u*oF(S));(T-=2*A)>1e-12?(A*=y?1:-1,b+=A,w-=A):(T=0,b=w=(p+g)/2),(B-=2*M)>1e-12?(M*=y?1:-1,x+=M,k-=M):(B=0,x=k=(p+g)/2)}var $=u*oS(x),E=u*oF(x),O=d*oS(w),D=d*oF(w);if(_>1e-12){var q,I=u*oS(k),K=u*oF(k),R=d*oS(b),P=d*oF(b);if(f<oA)if(q=function(t,e,r,i,o,a,s,n){var l=r-t,h=i-e,c=s-o,d=n-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,I,K,O,D)){var z,W=$-q[0],j=E-q[1],N=I-q[0],H=K-q[1],U=1/oF(((z=(W*N+j*H)/(oL(W*W+j*j)*oL(N*N+H*H)))>1?0:z<-1?oA:Math.acos(z))/2),Y=oL(q[0]*q[0]+q[1]*q[1]);F=o_(_,(d-Y)/(U-1)),L=o_(_,(u-Y)/(U+1))}else F=L=0}B>1e-12?L>1e-12?(m=oH(R,P,$,E,u,L,y),C=oH(I,K,O,D,u,L,y),n.moveTo(m.cx+m.x01,m.cy+m.y01),L<_?n.arc(m.cx,m.cy,L,oB(m.y01,m.x01),oB(C.y01,C.x01),!y):(n.arc(m.cx,m.cy,L,oB(m.y01,m.x01),oB(m.y11,m.x11),!y),n.arc(0,0,u,oB(m.cy+m.y11,m.cx+m.x11),oB(C.cy+C.y11,C.cx+C.x11),!y),n.arc(C.cx,C.cy,L,oB(C.y11,C.x11),oB(C.y01,C.x01),!y))):(n.moveTo($,E),n.arc(0,0,u,x,k,!y)):n.moveTo($,E),d>1e-12&&T>1e-12?F>1e-12?(m=oH(O,D,I,K,d,-F,y),C=oH($,E,R,P,d,-F,y),n.lineTo(m.cx+m.x01,m.cy+m.y01),F<_?n.arc(m.cx,m.cy,F,oB(m.y01,m.x01),oB(C.y01,C.x01),!y):(n.arc(m.cx,m.cy,F,oB(m.y01,m.x01),oB(m.y11,m.x11),!y),n.arc(0,0,d,oB(m.cy+m.y11,m.cx+m.x11),oB(C.cy+C.y11,C.cx+C.x11),y),n.arc(C.cx,C.cy,F,oB(C.y11,C.x11),oB(C.y01,C.x01),!y))):n.arc(0,0,d,w,b,y):n.lineTo(O,D)}else n.moveTo(0,0);if(n.closePath(),h)return n=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-oA/2;return[oS(i)*r,oF(i)*r]},h.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:ow(+e),h):t},h.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:ow(+t),h):e},h.cornerRadius=function(t){return arguments.length?(r="function"==typeof t?t:ow(+t),h):r},h.padRadius=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:ow(+t),h):i},h.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:ow(+t),h):o},h.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:ow(+t),h):a},h.padAngle=function(t){return arguments.length?(s="function"==typeof t?t:ow(+t),h):s},h.context=function(t){return arguments.length?(n=null==t?null:t,h):n},h}function oY(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function oX(t){this._context=t}function oG(t){return new oX(t)}function oV(t){return t[0]}function oZ(t){return t[1]}function oQ(t,e){var r=ow(!0),i=null,o=oG,a=null,s=oR(n);function n(n){var l,h,c,d=(n=oY(n)).length,u=!1;for(null==i&&(a=o(c=s())),l=0;l<=d;++l)!(l<d&&r(h=n[l],l,n))===u&&((u=!u)?a.lineStart():a.lineEnd()),u&&a.point(+t(h,l,n),+e(h,l,n));if(c)return a=null,c+""||null}return t="function"==typeof t?t:void 0===t?oV:ow(t),e="function"==typeof e?e:void 0===e?oZ:ow(e),n.x=function(e){return arguments.length?(t="function"==typeof e?e:ow(+e),n):t},n.y=function(t){return arguments.length?(e="function"==typeof t?t:ow(+t),n):e},n.defined=function(t){return arguments.length?(r="function"==typeof t?t:ow(!!t),n):r},n.curve=function(t){return arguments.length?(o=t,null!=i&&(a=o(i)),n):o},n.context=function(t){return arguments.length?(null==t?i=a=null:a=o(i=t),n):i},n}function oJ(t,e){return e<t?-1:e>t?1:e>=t?0:0/0}function o0(t){return t}function o1(){var t=o0,e=oJ,r=null,i=ow(0),o=ow(o$),a=ow(0);function s(s){var n,l,h,c,d,u=(s=oY(s)).length,p=0,g=Array(u),f=Array(u),y=+i.apply(this,arguments),m=Math.min(o$,Math.max(-o$,o.apply(this,arguments)-y)),C=Math.min(Math.abs(m)/u,a.apply(this,arguments)),x=C*(m<0?-1:1);for(n=0;n<u;++n)(d=f[g[n]=n]=+t(s[n],n,s))>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(s[t],s[e])}),n=0,h=p?(m-u*x)/p:0;n<u;++n,y=c)c=y+((d=f[l=g[n]])>0?d*h:0)+x,f[l]={data:s[l],index:n,value:d,startAngle:y,endAngle:c,padAngle:C};return f}return s.value=function(e){return arguments.length?(t="function"==typeof e?e:ow(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,r=null,s):e},s.sort=function(t){return arguments.length?(r=t,e=null,s):r},s.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:ow(+t),s):i},s.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:ow(+t),s):o},s.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:ow(+t),s):a},s}function o2(){}function o5(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 o3(t){this._context=t}function o4(t){return new o3(t)}function o6(t){this._context=t}function o8(t){return new o6(t)}function o7(t){this._context=t}function o9(t){return new o7(t)}oK.prototype,Array.prototype.slice,oX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=0/0},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)}}},o3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=0/0},lineStart:function(){this._x0=this._x1=this._y0=this._y1=0/0,this._point=0},lineEnd:function(){switch(this._point){case 3:o5(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:o5(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},o6.prototype={areaStart:o2,areaEnd:o2,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=0/0,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:o5(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=0/0},lineStart:function(){this._x0=this._x1=this._y0=this._y1=0/0,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:o5(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class at{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=0/0}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 ae(t){return new at(t,!0)}function ar(t){return new at(t,!1)}function ai(t,e){this._basis=new o3(t),this._beta=e}ai.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],s=t[r]-o,n=e[r]-a,l=-1;++l<=r;)i=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(o+i*s),this._beta*e[l]+(1-this._beta)*(a+i*n));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var ao=function t(e){function r(t){return 1===e?new o3(t):new ai(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function aa(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=0/0},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=0/0,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:aa(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:aa(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}};var an=function t(e){function r(t){return new as(t,e)}return r.tension=function(e){return t(+e)},r}(0);function al(t,e){this._context=t,this._k=(1-e)/6}al.prototype={areaStart:o2,areaEnd:o2,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=0/0,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:aa(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}};var ah=function t(e){function r(t){return new al(t,e)}return r.tension=function(e){return t(+e)},r}(0);function ac(t,e){this._context=t,this._k=(1-e)/6}ac.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=0/0},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=0/0,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:aa(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}};var ad=function t(e){function r(t){return new ac(t,e)}return r.tension=function(e){return t(+e)},r}(0);function au(t,e,r){var i=t._x1,o=t._y1,a=t._x2,s=t._y2;if(t._l01_a>1e-12){var n=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*n-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,o=(o*n-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,s=(s*h+t._y1*t._l23_2a-r*t._l12_2a)/c}t._context.bezierCurveTo(i,o,a,s,t._x2,t._y2)}function ap(t,e){this._context=t,this._alpha=e}ap.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=0/0},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=0/0,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:au(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}};var ag=function t(e){function r(t){return e?new ap(t,e):new as(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function af(t,e){this._context=t,this._alpha=e}af.prototype={areaStart:o2,areaEnd:o2,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=0/0,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:au(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}};var ay=function t(e){function r(t){return e?new af(t,e):new al(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function am(t,e){this._context=t,this._alpha=e}am.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=0/0},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=0/0,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:au(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}};var aC=function t(e){function r(t){return e?new am(t,e):new ac(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function ax(t){this._context=t}function ak(t){return new ax(t)}function ab(t,e,r){var i=t._x1-t._x0,o=e-t._x1,a=(t._y1-t._y0)/(i||o<0&&-0),s=(r-t._y1)/(o||i<0&&-0);return((a<0?-1:1)+(s<0?-1:1))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs((a*o+s*i)/(i+o)))||0}function aw(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function aT(t,e,r){var i=t._x0,o=t._y0,a=t._x1,s=t._y1,n=(a-i)/3;t._context.bezierCurveTo(i+n,o+n*e,a-n,s-n*r,a,s)}function aB(t){this._context=t}function aS(t){this._context=new av(t)}function av(t){this._context=t}function a_(t){return new aB(t)}function aF(t){return new aS(t)}function aL(t){this._context=t}function aA(t){var e,r,i=t.length-1,o=Array(i),a=Array(i),s=Array(i);for(o[0]=0,a[0]=2,s[0]=t[0]+2*t[1],e=1;e<i-1;++e)o[e]=1,a[e]=4,s[e]=4*t[e]+2*t[e+1];for(o[i-1]=2,a[i-1]=7,s[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)r=o[e]/a[e-1],a[e]-=r,s[e]-=r*s[e-1];for(o[i-1]=s[i-1]/a[i-1],e=i-2;e>=0;--e)o[e]=(s[e]-o[e+1])/a[e];for(a[i-1]=(t[i]+o[i-1])/2,e=0;e<i-1;++e)a[e]=2*t[e+1]-o[e+1];return[o,a]}function aM(t){return new aL(t)}function a$(t,e){this._context=t,this._t=e}function aE(t){return new a$(t,.5)}function aO(t){return new a$(t,0)}function aD(t){return new a$(t,1)}function aq(t,e,r){this.k=t,this.x=e,this.y=r}ax.prototype={areaStart:o2,areaEnd:o2,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))}},aB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=0/0},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=0/0,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:aT(this,this._t0,aw(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=0/0;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,aT(this,aw(this,r=ab(this,t,e)),r);break;default:aT(this,this._t0,r=ab(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(aS.prototype=Object.create(aB.prototype)).point=function(t,e){aB.prototype.point.call(this,e,t)},av.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=0/0},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=aA(t),o=aA(e),a=0,s=1;s<r;++a,++s)this._context.bezierCurveTo(i[0][a],o[0][a],i[1][a],o[1][a],t[s],e[s]);(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)}},a$.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=0/0},lineStart:function(){this._x=this._y=0/0,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}},aq.prototype={constructor:aq,scale:function(t){return 1===t?this:new aq(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new aq(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 aq(1,0,0);aq.prototype},99125(t,e,r){function 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){r.d(e,{},{$V:"[object Boolean]",Av:"[object RegExp]",GX:"[object Object]",ML:"[object Float64Array]",NA:"[object Set]",OG:"[object String]",Qb:"[object Uint8Array]",R_:"[object Arguments]",Uw:"[object Array]",VP:"[object Symbol]",XZ:"[object Int8Array]",ZR:"[object Uint32Array]",_u:"[object Int32Array]",cT:"[object ArrayBuffer]",i1:"[object Int16Array]",iq:"[object DataView]",kj:"[object Number]",pj:"[object Map]",q:"[object Uint8ClampedArray]",ri:"[object Float32Array]",vC:"[object Date]",x6:"[object Uint16Array]"})},14608(t,e,r){var i=r(99125);function o(t){return null!==t&&"object"==typeof t&&"[object Arguments]"===(0,i.b)(t)}r.d(e,{N:()=>o})},72146(t,e,r){r.d(e,{X:()=>i});function i(t){var e;return null!=t&&"function"!=typeof t&&Number.isSafeInteger(e=t.length)&&e>=0}},19663(t,e,r){var i=r(42796);function o(t){return(0,i.i)(t)}r.d(e,{i:()=>o})},44009(t,e,r){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){function i(t){return null==t||"object"!=typeof t&&"function"!=typeof t}r.d(e,{s:()=>i})},42796(t,e,r){function i(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}r.d(e,{i:()=>i})},16236(t,e,r){r.d(e,{A:()=>s});var i=r(9601),o=r(63122),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}},s=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")},71005(t,e,r){r.d(e,{A:()=>c});var i=r(16236),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),s=r.length,n=s%4==0,l=s>4,h=l?1:17,c=l?8:4,d=n?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:n?(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 s=r(9601);let n={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(n.hueRe);if(e){let[,t,r]=e;switch(r){case"grad":return s.A.channel.clamp.h(.9*parseFloat(t));case"rad":return s.A.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return s.A.channel.clamp.h(360*parseFloat(t))}}return s.A.channel.clamp.h(parseFloat(t))},parse:t=>{let e=t.charCodeAt(0);if(104!==e&&72!==e)return;let r=t.match(n.re);if(!r)return;let[,o,a,l,h,c]=r;return i.A.set({h:n._hue2deg(o),s:s.A.channel.clamp.s(parseFloat(a)),l:s.A.channel.clamp.l(parseFloat(l)),a:h?s.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(${s.A.lang.round(e)}, ${s.A.lang.round(r)}%, ${s.A.lang.round(i)}%, ${o})`:`hsl(${s.A.lang.round(e)}, ${s.A.lang.round(r)}%, ${s.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",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();let e=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,n,l,c,d,u,p]=r;return i.A.set({r:s.A.channel.clamp.r(a?2.55*parseFloat(o):parseFloat(o)),g:s.A.channel.clamp.g(l?2.55*parseFloat(n):parseFloat(n)),b:s.A.channel.clamp.b(d?2.55*parseFloat(c):parseFloat(c)),a:u?s.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(${s.A.lang.round(e)}, ${s.A.lang.round(r)}, ${s.A.lang.round(i)}, ${s.A.lang.round(o)})`:`rgb(${s.A.lang.round(e)}, ${s.A.lang.round(r)}, ${s.A.lang.round(i)})`}};var c={format:{keyword:l,hex:a,rgb:h,rgba:h,hsl:n,hsla:n},parse:t=>{if("string"!=typeof t)return t;let e=a.parse(t)||h.parse(t)||n.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?n.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){var i=r(9601);let o={};for(let t=0;t<=255;t++)o[t]=i.A.unit.dec2hex(t);r.d(e,{},{Y:o,Z:{ALL:0,RGB:1,HSL:2}})},95635(t,e,r){var i=r(9601),o=r(71005);e.A=(t,e,r)=>{let a=o.A.parse(t),s=a[e],n=i.A.channel.clamp[e](s+r);return s!==n&&(a[e]=n),o.A.stringify(a)}},8232(t,e,r){var i=r(9601),o=r(71005);e.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){var i=r(95635);e.A=(t,e)=>(0,i.A)(t,"l",-e)},57418(t,e,r){r.d(e,{A:()=>a});var i=r(9601),o=r(71005),a=t=>!((t=>{let{r:e,g:r,b:a}=o.A.parse(t),s=.2126*i.A.channel.toLinear(e)+.7152*i.A.channel.toLinear(r)+.0722*i.A.channel.toLinear(a);return i.A.lang.round(s)})(t)>=.5)},78041(t,e,r){var i=r(95635);e.A=(t,e)=>(0,i.A)(t,"l",e)},25582(t,e,r){var i=r(9601),o=r(16236),a=r(71005),s=r(8232);e.A=(t,e,r=0,n=1)=>{if("number"!=typeof t)return(0,s.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(n)});return a.A.stringify(l)}},9601(t,e,r){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,s=2*r-a;switch(o){case"r":return 255*i.hue2rgb(s,a,t+1/3);case"g":return 255*i.hue2rgb(s,a,t);case"b":return 255*i.hue2rgb(s,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),s=(o+a)/2;if("l"===i)return 100*s;if(o===a)return 0;let n=o-a;if("s"===i)return 100*(s>.5?n/(2-o-a):n/(o+a));switch(o){case t:return((e-r)/n+6*(e<r))*60;case e:return((r-t)/n+2)*60;case r:return((t-e)/n+4)*60;default:return -1}}};var 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}`}}}},22422(t,e,r){var i=r(64183),o=r(86827),a=r(8141),s=(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");r.d(e,{D:()=>s})},15198(t,e,r){r.d(e,{WY:()=>S,dn:()=>B,pC:()=>w,Gc:()=>x});var i=r(64183),o=r(31293),a=r(86827);let s=(t,e)=>!!t&&!!((e&&""===t.prefix||t.prefix)&&t.name),n=Object.freeze({left:0,top:0,width:16,height:16}),l=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),h=Object.freeze({...n,...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 s(t){a=d(i[t]||o[t],a)}return s(e),r.forEach(s),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(),s=f.test(a);for(;;){if(s){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("");s=!s}}let m=/\sid="(\S+)"/g,C=new Map;var x={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},k=new Map,b=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)b.set(e.name,e.loader);else if("icons"in e)k.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&&!s(a)?null:a}let a=o[0],n=a.split("-");if(n.length>1){let t={provider:i,prefix:n.shift(),name:n.join("-")};return e&&!s(t)?null:t}if(r&&""===i){let t={provider:i,prefix:"",name:a};return e&&!s(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=k.get(i);if(!a){let t=b.get(i);if(!t)throw Error(`Icon set not found: ${r.prefix}`);try{a={...await t(),prefix:i},k.set(i,a)}catch(t){throw o.R.error(t),Error(`Failed to load icon set: ${r.prefix}`)}}let n=function(t,e){var r;let i,o,a;if(t.icons[e])return u(t,e,[]);let s=(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 s?u(t,e,s):null}(a,r.name);if(!n)throw Error(`Icon not found: ${t}`);return n},"getRegisteredIconData"),B=(0,a.K)(async t=>{try{return await T(t),!0}catch{return!1}},"isIconAvailable"),S=(0,a.K)(async(t,e,r)=>{var a;let s,n,l,c,d,u,g,f,k,b,w,B,S,v;try{s=await T(t,e?.fallbackPrefix)}catch(t){o.R.error(t),s=x}let _=(a=s,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,s,n=[],l=t.hFlip,h=t.vFlip,c=t.rotate;switch(l?h?c+=2:(n.push("translate("+(u.width+u.left).toString()+" "+(0-u.top).toString()+")"),n.push("scale(-1 1)"),u.top=u.left=0):h&&(n.push("translate("+(0-u.left).toString()+" "+(u.height+u.top).toString()+")"),n.push("scale(1 -1)"),u.top=u.left=0),c<0&&(c-=4*Math.floor(c/4)),c%=4){case 1:n.unshift("rotate(90 "+(a=u.height/2+u.top).toString()+" "+a.toString()+")");break;case 2:n.unshift("rotate(180 "+(u.width/2+u.left).toString()+" "+(u.height/2+u.top).toString()+")");break;case 3:n.unshift("rotate(-90 "+(a=u.width/2+u.left).toString()+" "+a.toString()+")")}c%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)),n.length&&(e=g,r='<g transform="'+n.join(" ")+'">',i=(s=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 s=t.indexOf(">",a);if(-1===s)break;r+=t.slice(o+1,a).trim(),t=t.slice(0,i).trim()+t.slice(s+1)}return{defs:r,content:t}}(e)).defs,o=r+s.content+"</g>",g=i?"<defs>"+i+"</defs>"+o:o)}),f=d.width,k=d.height,b=u.width,w=u.height,null===f?n=y(l=null===k?"1em":"auto"===k?w:k,b/w):(n="auto"===f?b:f,l=null===k?y(n,w/b):"auto"===k?w:k),B={},(S=(t,e)=>{"unset"!==e&&"undefined"!==e&&"none"!==e&&(B[t]=e.toString())})("width",n),S("height",l),B.viewBox=(v=[u.left,u.top,b,w]).join(" "),{attributes:B,viewBox:v,body:g}),F=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=C.get(r)||0,C.set(r,o+1),o?`${r}${o}`:r),s=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+i+"$3")}),t=t.replace(RegExp(i,"g"),"")}(_.body),{..._.attributes,...r});return(0,i.jZ)(F,(0,i.zj)())},"getIconSVG")},91865(t,e,r){var i=r(86827),o=(0,i.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"),a={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},s={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function n(t,e){if(void 0===t||void 0===e)return{angle:0,deltaX:0,deltaY:0};t=l(t),e=l(e);let[r,i]=[t.x,t.y],[o,a]=[e.x,e.y],s=o-r,n=a-i;return{angle:Math.atan(n/s),deltaX:s,deltaY:n}}(0,i.K)(n,"calculateDeltaAndAngle");var l=(0,i.K)(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),h=(0,i.K)(t=>({x:(0,i.K)(function(e,r,i){let o=0,s=l(i[0]).x<l(i[i.length-1]).x?"left":"right";if(0===r&&Object.hasOwn(a,t.arrowTypeStart)){let{angle:e,deltaX:r}=n(i[0],i[1]);o=a[t.arrowTypeStart]*Math.cos(e)*(r>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(a,t.arrowTypeEnd)){let{angle:e,deltaX:r}=n(i[i.length-1],i[i.length-2]);o=a[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}let h=Math.abs(l(e).x-l(i[i.length-1]).x),c=Math.abs(l(e).y-l(i[i.length-1]).y),d=Math.abs(l(e).x-l(i[0]).x),u=Math.abs(l(e).y-l(i[0]).y),p=a[t.arrowTypeStart],g=a[t.arrowTypeEnd];if(h<g&&h>0&&c<g){let t=g+1-h;t*="right"===s?-1:1,o-=t}if(d<p&&d>0&&u<p){let t=p+1-d;t*="right"===s?-1:1,o+=t}return l(e).x+o},"x"),y:(0,i.K)(function(e,r,i){let o=0,s=l(i[0]).y<l(i[i.length-1]).y?"down":"up";if(0===r&&Object.hasOwn(a,t.arrowTypeStart)){let{angle:e,deltaY:r}=n(i[0],i[1]);o=a[t.arrowTypeStart]*Math.abs(Math.sin(e))*(r>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(a,t.arrowTypeEnd)){let{angle:e,deltaY:r}=n(i[i.length-1],i[i.length-2]);o=a[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}let h=Math.abs(l(e).y-l(i[i.length-1]).y),c=Math.abs(l(e).x-l(i[i.length-1]).x),d=Math.abs(l(e).y-l(i[0]).y),u=Math.abs(l(e).x-l(i[0]).x),p=a[t.arrowTypeStart],g=a[t.arrowTypeEnd];if(h<g&&h>0&&c<g){let t=g+1-h;t*="up"===s?-1:1,o-=t}if(d<p&&d>0&&u<p){let t=p+1-d;t*="up"===s?-1:1,o+=t}return l(e).y+o},"y")}),"getLineFunctionsWithOffset");r.d(e,{Nq:()=>s,RI:()=>h,Wg:()=>o,hq:()=>a})},9290(t,e,r){var i=r(9636),o=r(14782),a=r(91865),s=r(6129),n=r(23656),l=r(24692),h=r(64183),c=r(31293),d=r(86827),u=r(8141),p=r(52274),g=(0,d.K)((t,e,r,i,o,a=!1,s)=>{e.arrowTypeStart&&m(t,"start",e.arrowTypeStart,r,i,o,a,s),e.arrowTypeEnd&&m(t,"end",e.arrowTypeEnd,r,i,o,a,s)},"addEdgeMarkers"),f={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},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}},y=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],m=(0,d.K)((t,e,r,i,o,a,s=!1,n)=>{let l=f[r],h=l&&y.includes(l.type);if(!l)return void c.R.warn(`Unknown arrow type: ${r}`);let d=l.type,u=`${o}_${a}-${d}${"start"===e?"Start":"End"}${s&&h?"-margin":""}`;if(n&&""!==n.trim()){let r=n.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",n),l.fill&&t.setAttribute("fill",n)}),t.parentNode?.appendChild(e)}}t.attr(`marker-${e}`,`url(${i}#${o})`)}else t.attr(`marker-${e}`,`url(${i}#${u})`)},"addEdgeMarker"),C=(0,d.K)(t=>"string"==typeof t?t:(0,h.D7)()?.flowchart?.curve,"resolveEdgeCurveType"),x=new Map,k=new Map,b=(0,d.K)(()=>{x.clear(),k.clear()},"clear"),w=(0,d.K)(t=>t?"string"==typeof t?t:t.reduce((t,e)=>t+";"+e,""):"","getLabelStyles"),T=(0,d.K)(async(t,e)=>{let r,s=(0,h.D7)(),l=(0,h.E)(s),{labelStyles:d}=(0,o.GX)(e);e.labelStyle=d;let p=t.insert("g").attr("class","edgeLabel"),g=p.insert("g").attr("class","label").attr("data-id",e.id),f="markdown"===e.labelType,y=await (0,n.G)(t,e.label,{style:w(e.labelStyle),useHtmlLabels:l,addSvgBackground:!0,isNode:!1,markdown:f,width:void 0},s);g.node().appendChild(y),c.R.info("abc82",e,e.labelType);let m=y.getBBox(),C=m;if(l){let t=y.children[0],e=(0,u.Ltv)(y);C=m=t.getBoundingClientRect(),e.attr("width",m.width),e.attr("height",m.height)}else{let t=(0,u.Ltv)(y).select("text").node();t&&"function"==typeof t.getBBox&&(C=t.getBBox())}if(g.attr("transform",(0,a.Wg)(C,l)),x.set(e.id,p),e.width=m.width,e.height=m.height,e.startLabelLeft){let o=t.insert("g").attr("class","edgeTerminals"),s=o.insert("g").attr("class","inner"),n=await (0,i.DA)(s,e.startLabelLeft,w(e.labelStyle)||"",!1,!1);r=n;let h=n.getBBox();if(l){let t=n.children[0],e=(0,u.Ltv)(n);h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}s.attr("transform",(0,a.Wg)(h,l)),k.get(e.id)||k.set(e.id,{}),k.get(e.id).startLeft=o,B(r,e.startLabelLeft)}if(e.startLabelRight){let o=t.insert("g").attr("class","edgeTerminals"),s=o.insert("g").attr("class","inner"),n=await (0,i.DA)(s,e.startLabelRight,w(e.labelStyle)||"",!1,!1);r=n;let h=n.getBBox();if(l){let t=n.children[0],e=(0,u.Ltv)(n);h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}s.attr("transform",(0,a.Wg)(h,l)),k.get(e.id)||k.set(e.id,{}),k.get(e.id).startRight=o,B(r,e.startLabelRight)}if(e.endLabelLeft){let o=t.insert("g").attr("class","edgeTerminals"),s=o.insert("g").attr("class","inner"),n=await (0,i.DA)(o,e.endLabelLeft,w(e.labelStyle)||"",!1,!1);r=n;let h=n.getBBox();if(l){let t=n.children[0],e=(0,u.Ltv)(n);h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}s.attr("transform",(0,a.Wg)(h,l)),k.get(e.id)||k.set(e.id,{}),k.get(e.id).endLeft=o,B(r,e.endLabelLeft)}if(e.endLabelRight){let o=t.insert("g").attr("class","edgeTerminals"),s=o.insert("g").attr("class","inner"),n=await (0,i.DA)(o,e.endLabelRight,w(e.labelStyle)||"",!1,!1);r=n;let h=n.getBBox();if(l){let t=n.children[0],e=(0,u.Ltv)(n);h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}s.attr("transform",(0,a.Wg)(h,l)),k.get(e.id)||k.set(e.id,{}),k.get(e.id).endRight=o,B(r,e.endLabelRight)}return y},"insertEdgeLabel");function B(t,e){(0,h.E)((0,h.D7)())&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}(0,d.K)(B,"setTerminalWidth");var S=(0,d.K)((t,e)=>{c.R.debug("Moving label abc88 ",t.id,t.label,x.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath,i=(0,h.D7)(),{subGraphTitleTotalMargin:o}=(0,s.O)(i);if(t.label){let i=x.get(t.id),a=t.x,s=t.y;if(r){let i=l._K.calcLabelPosition(r);c.R.debug("Moving label "+t.label+" from (",a,",",s,") to (",i.x,",",i.y,") abc88"),e.updatedPath&&(a=i.x,s=i.y)}i.attr("transform",`translate(${a}, ${s+o/2})`)}if(t.startLabelLeft){let e=k.get(t.id).startLeft,i=t.x,o=t.y;if(r){let e=l._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=k.get(t.id).startRight,i=t.x,o=t.y;if(r){let e=l._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=k.get(t.id).endLeft,i=t.x,o=t.y;if(r){let e=l._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=k.get(t.id).endRight,i=t.x,o=t.y;if(r){let e=l._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_right",r);i=e.x,o=e.y}e.attr("transform",`translate(${i}, ${o})`)}},"positionEdgeLabel"),v=(0,d.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"),_=(0,d.K)((t,e)=>{let r=t.x,i=t.y,o=Math.abs(e.x-r),a=Math.abs(e.y-i),s=t.width/2,n=t.height/2;return o>=s||a>=n},"outsideNode"),F=(0,d.K)((t,e,r)=>{c.R.debug(`intersection calc abc89:
|
|
1
|
+
export const __rspack_esm_id=4975;export const __rspack_esm_ids=[4975];export const __webpack_modules__={69119(t,e){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=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[".","/"],e.BLANK_URL="about:blank"},16750(t,e,r){e.J=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 s=a.trimStart(),n=s.match(i.urlSchemeRegex);if(!n)return a;var l=n[0].toLowerCase().trim();if(i.invalidProtocolRegex.test(l))return i.BLANK_URL;var h=s.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",s="quarter",n="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 k||!(!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 s=e.split("-");if(!o&&s.length>1)return t(s[0])}else{var n=e.name;g[n]=e,o=n}return!i&&o&&(p=o),o||!i&&p},C=function(t,e){if(y(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new k(r)},x={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),s=r-o<0,n=e.clone().add(i+(s?-1:1),a);return+(-(i+(r-o)/(s?o-n:n-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(h){return({M:a,y:n,w:o,d:"day",D:l,h:i,m:r,s:e,ms:t,Q:s})[h]||String(h||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};x.l=m,x.i=y,x.w=function(t,e){return C(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=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(0/0);if(x.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 x},p.isValid=function(){return this.$d.toString()!==h},p.isSame=function(t,e){var r=C(t);return this.startOf(e)<=r&&r<=this.endOf(e)},p.isAfter=function(t,e){return C(t)<this.startOf(e)},p.isBefore=function(t,e){return this.endOf(e)<C(t)},p.$g=function(t,e,r){return x.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,s){var h=this,c=!!x.u(s)||s,d=x.p(t),u=function(t,e){var r=x.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 x.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 n:return c?u(1,0):u(31,11);case a:return c?u(1,f):u(0,f+1);case o:var C=this.$locale().weekStart||0,k=(g<C?g+7:g)-C;return u(c?y-k:y+(6-k),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,s){var h,c=x.p(o),d="set"+(this.$u?"UTC":""),u=((h={}).day=d+"Date",h[l]=d+"Date",h[a]=d+"Month",h[n]=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+(s-this.$W):s;if(c===a||c===n){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[x.p(t)]()},p.add=function(t,s){var l,h=this;t=Number(t);var c=x.p(s),d=function(e){var r=C(h);return x.w(r.date(r.date()+Math.round(e*t)),h)};if(c===a)return this.set(a,this.$M+t);if(c===n)return this.set(n,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 x.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=x.z(this),a=this.$H,s=this.$m,n=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 x.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 x.s(e.$y,4,"0");case"M":return n+1;case"MM":return x.s(n+1,2,"0");case"MMM":return p(r.monthsShort,n,c,3);case"MMMM":return p(c,n);case"D":return e.$D;case"DD":return x.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 x.s(a,2,"0");case"h":return g(1);case"hh":return g(2);case"a":return f(a,s,!0);case"A":return f(a,s,!1);case"m":return String(s);case"mm":return x.s(s,2,"0");case"s":return String(e.$s);case"ss":return x.s(e.$s,2,"0");case"SSS":return x.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=x.p(l),p=C(t),g=(p.utcOffset()-this.utcOffset())*6e4,f=this-p,y=function(){return x.m(d,p)};switch(u){case n:c=y()/12;break;case a:c=y();break;case s: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:x.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 x.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}(),b=k.prototype;return C.prototype=b,[["$ms",t],["$s",e],["$m",r],["$H",i],["$W","day"],["$M",a],["$y",n],["$D",l]].forEach(function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),C.extend=function(t,e){return t.$i||(t(e,k,C),t.$i=!0),C},C.locale=m,C.isDayjs=y,C.unix=function(t){return C(1e3*t)},C.en=g[p],C.Ls=g,C.p={},C}()},52274(t,e,r){function i(t,e,r){if(t&&t.length){let[i,o]=e,a=Math.PI/180*r,s=Math.cos(a),n=Math.sin(a);for(let e of t){let[t,r]=e;e[0]=(t-i)*s-(r-o)*n+i,e[1]=(t-i)*n+(r-o)*s+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 s=1;return e.roughness>=1&&((null==(r=e.randomizer)?void 0:r.next())||Math.random())>.7&&(s=a),function(t,e,r,o=1){let a=Math.max(e,.1),s=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,n=[0,0];if(r)for(let t of s)i(t,n,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 s=[];e=Math.max(e,.1);let n=[];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]);n.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(n.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)),!n.length)return s;let l=[],h=n[0].ymin,c=0;for(;l.length||n.length;){if(n.length){let t=-1;for(let e=0;e<n.length&&!(n[e].ymin>h);e++)t=e;n.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;s.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 s}(s,a,o);if(r){let t;for(let t of s)i(t,n,-r);t=[],l.forEach(e=>t.push(...e)),i(t,n,-r)}return l}(t,a,o,s||1)}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 s(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 n 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,n=[],l=.5*r*Math.cos(a),h=.5*r*Math.sin(a);for(let[t,e]of i)s([t,e])&&n.push([[t[0]-l,t[1]+h],[...e]],[[t[0]+l,t[1]-h],[...e]]);return{type:"fillSketch",ops:this.renderLines(n,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 n of t){let t=s(n),l=Math.ceil(t/i)-1,h=t-l*i,c=(n[0][0]+n[1][0])/2-i/4,d=Math.min(n[0][1],n[1][1]);for(let t=0;t<l;t++){let s=c-a+2*Math.random()*a,n=d+h+t*i-a+2*Math.random()*a,l=this.helper.ellipse(s,n,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=s(t),n=Math.floor(a/(r+i)),l=(a+i-n*(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<n;t++){let a=t*(r+i),s=a+r,n=[h[0]+a*Math.cos(d)+l*Math.cos(d),h[1]+a*Math.sin(d)+l*Math.sin(d)],c=[h[0]+s*Math.cos(d)+l*Math.cos(d),h[1]+s*Math.sin(d)+l*Math.sin(d)];o.push(...this.helper.doubleLineOps(n[0],n[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(s(t)/(2*e)),a=t[0],n=t[1];a[0]>n[0]&&(a=t[1],n=t[0]);let l=Math.atan((n[1]-a[1])/(n[0]-a[0]));for(let t=0;t<o;t++){let o=2*t*e,s=2*(t+1)*e,n=Math.sqrt(2*Math.pow(e,2)),h=[a[0]+o*Math.cos(l),a[1]+o*Math.sin(l)],c=[a[0]+s*Math.cos(l),a[1]+s*Math.sin(l)],d=[h[0]+n*Math.cos(l+Math.PI/4),h[1]+n*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[1],r))}}),i}}let u={};class p{constructor(t){this.seed=t}next(){return this.seed?(0x7fffffff&(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 s=0,n=[];if("BOD"===i){if("M"!==a.text&&"m"!==a.text)return f("M0,0"+t);o++,s=g[a.text],i=a.text}else 1===a.type?s=g[i]:(o++,s=g[a.text],i=a.text);if(!(o+s<r.length))throw Error("Path data ended short");for(let t=o;t<o+s;t++){let e=r[t];if(1!==e.type)throw Error("Param not a number: "+i+","+e.text);n[n.length]=+e.text}if("number"!=typeof g[i])throw Error("Bad segment: "+i);{let t={key:i,data:n};e.push(t),o+=s,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:s,data:n}of t)switch(s){case"M":a.push({key:"M",data:[...n]}),[e,r]=n,[i,o]=n;break;case"m":e+=n[0],r+=n[1],a.push({key:"M",data:[e,r]}),i=e,o=r;break;case"L":a.push({key:"L",data:[...n]}),[e,r]=n;break;case"l":e+=n[0],r+=n[1],a.push({key:"L",data:[e,r]});break;case"C":a.push({key:"C",data:[...n]}),e=n[4],r=n[5];break;case"c":{let t=n.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:[...n]}),e=n[2],r=n[3];break;case"q":{let t=n.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:[...n]}),e=n[5],r=n[6];break;case"a":e+=n[5],r+=n[6],a.push({key:"A",data:[n[0],n[1],n[2],n[3],n[4],e,r]});break;case"H":a.push({key:"H",data:[...n]}),e=n[0];break;case"h":e+=n[0],a.push({key:"H",data:[e]});break;case"V":a.push({key:"V",data:[...n]}),r=n[0];break;case"v":r+=n[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...n]}),e=n[2],r=n[3];break;case"s":{let t=n.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:[...n]}),e=n[0],r=n[1];break;case"t":e+=n[0],r+=n[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,s=0,n=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,s]=c;break;case"C":e.push({key:"C",data:[...c]}),i=c[4],o=c[5],n=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-n),a=o+(o-l)):(t=i,a=o),e.push({key:"C",data:[t,a,...c]}),n=c[0],l=c[1],i=c[2],o=c[3];break}case"T":{let[t,a]=c,s=0,h=0;"Q"===r||"T"===r?(s=i+(i-n),h=o+(o-l)):(s=i,h=o);let d=i+2*(s-i)/3,u=o+2*(h-o)/3,p=t+2*(s-t)/3,g=a+2*(h-a)/3;e.push({key:"C",data:[d,u,p,g,t,a]}),n=s,l=h,i=t,o=a;break}case"Q":{let[t,r,a,s]=c,h=i+2*(t-i)/3,d=o+2*(r-o)/3,u=a+2*(t-a)/3,p=s+2*(r-s)/3;e.push({key:"C",data:[h,d,u,p,a,s]}),n=t,l=r,i=a,o=s;break}case"A":{let t=Math.abs(c[0]),r=Math.abs(c[1]),a=c[2],s=c[3],n=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,s,n,l,h,c){let d=Math.PI*n/180,u=[],p=0,g=0,f=0,y=0;if(c)[p,g,f,y]=c;else{[e,r]=C(e,r,-d),[i,o]=C(i,o,-d);let t=(e-i)/2,n=(r-o)/2,c=t*t/(a*a)+n*n/(s*s);c>1&&(a*=c=Math.sqrt(c),s*=c);let u=a*a,m=s*s,x=(l===h?-1:1)*Math.sqrt(Math.abs((u*m-u*n*n-m*t*t)/(u*n*n+m*t*t)));f=x*a*n/s+(e+i)/2,y=-(x*s)*t/a+(r+o)/2,p=Math.asin(parseFloat(((r-y)/s).toFixed(9))),g=Math.asin(parseFloat(((o-y)/s).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+s*Math.sin(g),r,l,a,s,n,0,h,[g,e,f,y])}m=g-p;let x=Math.cos(p),k=Math.cos(g),b=Math.tan(m/4),w=4/3*a*b,T=4/3*s*b,B=[e,r],S=[e+w*Math.sin(p),r-T*x],v=[i+w*Math.sin(g),o-T*k],_=[i,o];if(S[0]=2*B[0]-S[0],S[1]=2*B[1]-S[1],c)return[S,v,_].concat(u);{u=[S,v,_].concat(u);let t=[];for(let e=0;e<u.length;e+=3){let r=C(u[e][0],u[e][1],d),i=C(u[e+1][0],u[e+1][1],d),o=C(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}})(i,o,l,h,t,r,a,s,n).forEach(function(t){e.push({key:"C",data:t})}),i=l,o=h);break}case"Z":e.push({key:"Z",data:[]}),i=a,o=s}r=h}return e}function C(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}let x={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 k(t,e,r,i,o){return{type:"path",ops:E(t,e,r,i,o)}}function b(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?k(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),L(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),L(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),s=Math.abs(e/2),n=1-r.curveFitting;return a+=$(a*n,r),s+=$(s*n,r),{increment:o,rx:a,ry:s}}function B(t,e,r,i){let[o,a]=I(i.increment,t,e,i.rx,i.ry,1,i.increment*M(.1,M(.4,1,r),r),r),s=q(o,null,r);if(!r.disableMultiStroke&&0!==r.roughness){let[o]=I(i.increment,t,e,i.rx,i.ry,1.5,0,r),a=q(o,null,r);s=s.concat(a)}return{estimatedPoints:a,opset:{type:"path",ops:s}}}function S(t,e,r,i,o,a,s,n,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=K(p,t,e,h,c,d,u,1,l);if(!l.disableMultiStroke){let r=K(p,t,e,h,c,d,u,1.5,l);g.push(...r)}return s&&(n?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 v(t,e){let r=m(y(f(t))),i=[],o=[0,0],a=[0,0];for(let{key:t,data:s}of r)switch(t){case"M":a=[s[0],s[1]],o=[s[0],s[1]];break;case"L":i.push(...E(a[0],a[1],s[0],s[1],e)),a=[s[0],s[1]];break;case"C":{let[t,r,o,n,l,h]=s;i.push(...function(t,e,r,i,o,a,s,n){let l=[],h=[n.maxRandomnessOffset||1,(n.maxRandomnessOffset||1)+.3],c=[0,0],d=n.disableMultiStroke?1:2,u=n.preserveVertices;for(let p=0;p<d;p++)0===p?l.push({op:"move",data:[s[0],s[1]]}):l.push({op:"move",data:[s[0]+(u?0:$(h[0],n)),s[1]+(u?0:$(h[0],n))]}),c=u?[o,a]:[o+$(h[p],n),a+$(h[p],n)],l.push({op:"bcurveTo",data:[t+$(h[p],n),e+$(h[p],n),r+$(h[p],n),i+$(h[p],n),c[0],c[1]]});return l}(t,r,o,n,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 F(t,e){return(function(t,e){let r=t.fillStyle||"hachure";if(!u[r])switch(r){case"zigzag":u[r]||(u[r]=new n(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,x).fillPolygons(t,e)}function L(t){let e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function A(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*(A(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 s=a?o.disableMultiStrokeFill:o.disableMultiStroke,n=O(t,e,r,i,o,!0,!1);if(s)return n;let l=O(t,e,r,i,o,!0,!0);return n.concat(l)}function O(t,e,r,i,o,a,s){let n=Math.pow(t-r,2)+Math.pow(e-i,2),l=Math.sqrt(n),h=1;h=l<200?1:l>500?.4:-.0016668*l+1.233334;let c=o.maxRandomnessOffset||0;c*c*100>n&&(c=l/10);let d=c/2,u=.2+.2*A(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&&(s?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))]})),s?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 q(i,null,r)}function q(t,e,r){let i=t.length,o=[];if(i>3){let a=[],s=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]+(s*t[e+1][0]-s*t[e-1][0])/6,r[1]+(s*t[e+1][1]-s*t[e-1][1])/6],a[2]=[t[e+1][0]+(s*t[e][0]-s*t[e+2][0])/6,t[e+1][1]+(s*t[e][1]-s*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 I(t,e,r,i,o,a,s,n){let l=[],h=[];if(0===n.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,n)-Math.PI/2;h.push([$(a,n)+e+.9*i*Math.cos(c-t),$(a,n)+r+.9*o*Math.sin(c-t)]);let d=2*Math.PI+c-.01;for(let s=c;s<d;s+=t){let t=[$(a,n)+e+i*Math.cos(s),$(a,n)+r+o*Math.sin(s)];l.push(t),h.push(t)}h.push([$(a,n)+e+i*Math.cos(c+2*Math.PI+.5*s),$(a,n)+r+o*Math.sin(c+2*Math.PI+.5*s)]),h.push([$(a,n)+e+.98*i*Math.cos(c+s),$(a,n)+r+.98*o*Math.sin(c+s)]),h.push([$(a,n)+e+.9*i*Math.cos(c+.5*s),$(a,n)+r+.9*o*Math.sin(c+.5*s)])}return[h,l]}function K(t,e,r,i,o,a,s,n,l){let h=a+$(.1,l),c=[];c.push([$(n,l)+e+.9*i*Math.cos(h-t),$(n,l)+r+.9*o*Math.sin(h-t)]);for(let a=h;a<=s;a+=t)c.push([$(n,l)+e+i*Math.cos(a),$(n,l)+r+o*Math.sin(a)]);return c.push([e+i*Math.cos(s),r+o*Math.sin(s)]),c.push([e+i*Math.cos(s),r+o*Math.sin(s)]),q(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 W(t,e,r,i,o){let a=o||[],s=t[e],n=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],s,n);e>l&&(l=e,h=i)}return Math.sqrt(l)>i?(W(t,e,h+1,i,a),W(t,h,r,i,a)):(a.length||a.push(s),a.push(n)),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,s,n,l,h,c,d,u,p=o||[];if(a=e[r+0],s=e[r+1],n=e[r+2],l=e[r+3],h=3*s[0]-2*a[0]-l[0],h*=h,c=3*s[1]-2*a[1]-l[1],c*=c,d=3*n[0]-2*l[0]-a[0],d*=d,u=3*n[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],s=e[r+2],n=e[r+3],l=z(o,a,.5),h=z(a,s,.5),c=z(s,n,.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,n],0,i,p)}return p}(t,3*r,e,i);return r&&r>0?W(i,0,i.length,r):i}let N="none";class H{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",[k(t,e,r,i,a)],a)}rectangle(t,e,r,i,o){var a,s,n,l;let h=this._o(o),c=[],d=b([[a=t,s=e],[a+(n=r),s],[a+n,s+(l=i)],[a,s+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(F([o],h))}return h.stroke!==N&&c.push(d),this._d("rectangle",c,h)}ellipse(t,e,r,i,o){let a=this._o(o),s=[],n=T(r,i,a),l=B(t,e,a,n);if(a.fill)if("solid"===a.fillStyle){let r=B(t,e,a,n).opset;r.type="fillPath",s.push(r)}else s.push(F([l.estimatedPoints],a));return a.stroke!==N&&s.push(l.opset),this._d("ellipse",s,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",[b(t,!1,r)],r)}arc(t,e,r,i,o,a,s=!1,n){let l=this._o(n),h=[],c=S(t,e,r,i,o,a,s,!0,l);if(s&&l.fill)if("solid"===l.fillStyle){let s=Object.assign({},l);s.disableMultiStroke=!0;let n=S(t,e,r,i,o,a,!0,!1,s);n.type="fillPath",h.push(n)}else h.push(function(t,e,r,i,o,a,s){let n=Math.abs(r/2),l=Math.abs(i/2);n+=$(.01*n,s),l+=$(.01*l,s);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)/s.curveStepCount,u=[];for(let r=h;r<=c;r+=d)u.push([t+n*Math.cos(r),e+l*Math.sin(r)]);return u.push([t+n*Math.cos(c),e+l*Math.sin(c)]),u.push([t,e]),F([u],s)}(t,e,r,i,o,a,l));return l.stroke!==N&&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!==N)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(F([e],r))}return r.stroke!==N&&i.push(o),this._d("curve",i,r)}polygon(t,e){let r=this._o(e),i=[],o=b(t,!0,r);return r.fill&&("solid"===r.fillStyle?i.push(_([t],r)):i.push(F([t],r))),r.stroke!==N&&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!==N,a=r.stroke!==N,s=!!(r.simplification&&r.simplification<1),n=function(t,e){let r=m(y(f(t))),i=[],o=[],a=[0,0],s=[],n=()=>{s.length>=4&&o.push(...j(s,1)),s=[]},l=()=>{n(),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":n(),o.push([e[0],e[1]]);break;case"C":if(!s.length){let t=o.length?o[o.length-1]:a;s.push([t[0],t[1]])}s.push([e[0],e[1]]),s.push([e[2],e[3]]),s.push([e[4],e[5]]);break;case"Z":n(),o.push([a[0],a[1]])}if(l(),!e)return i;let h=[];for(let t of i){let r=W(t,0,t.length,e);r.length&&h.push(r)}return h}(t,s?4-4*(r.simplification||1):(1+r.roughness)/2),l=v(t,r);if(o)if("solid"===r.fillStyle)if(1===n.length){let e=v(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(_(n,r));else i.push(F(n,r));return a&&(s?n.forEach(t=>{i.push(b(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:N};break;case"fillPath":e={d:this.opsToPath(t),stroke:N,strokeWidth:0,fill:r.fill||N};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||N,strokeWidth:r,fill:N}}_mergedShape(t){return t.filter((t,e)=>0===e||"move"!==t.op)}}class U{constructor(t,e){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new H(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,s=!1,n){let l=this.gen.arc(t,e,r,i,o,a,s,n);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 X{constructor(t,e){this.svg=t,this.gen=new H(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 s of e){let e=null;switch(s.type){case"path":(e=i.createElementNS(Y,"path")).setAttribute("d",this.opsToPath(s,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(s,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,s,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,s=!1,n){let l=this.gen.arc(t,e,r,i,o,a,s,n);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 G={canvas:(t,e)=>new U(t,e),svg:(t,e)=>new X(t,e),generator:t=>new H(t),newSeed:()=>H.newSeed()};r.d(e,{A:()=>G})},74045(t,e,r){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 s(t){return"translate("+t+",0)"}function n(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?s:n;function y(s){var n=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,C=e.range(),x=+C[0]+u,k=+C[C.length-1]+u,b=(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=s.selection?s.selection():s,T=w.selectAll(".domain").data([null]),B=w.selectAll(".tick").data(n,e).order(),S=B.exit(),v=B.enter().append("g").attr("class","tick"),_=B.select("line"),F=B.select("text");T=T.merge(T.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),B=B.merge(v),_=_.merge(v.append("line").attr("stroke","currentColor").attr(g+"2",p*h)),F=F.merge(v.append("text").attr("fill","currentColor").attr(g,p*m).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),s!==w&&(T=T.transition(s),B=B.transition(s),_=_.transition(s),F=F.transition(s),S=S.transition(s).attr("opacity",1e-6).attr("transform",function(t){return isFinite(t=b(t))?f(t+u):this.getAttribute("transform")}),v.attr("opacity",1e-6).attr("transform",function(t){var e=this.parentNode.__axis;return f((e&&isFinite(e=e(t))?e:b(t))+u)})),S.remove(),T.attr("d",4===t||2===t?c?"M"+p*c+","+x+"H"+u+"V"+k+"H"+p*c:"M"+u+","+x+"V"+k:c?"M"+x+","+p*c+"V"+u+"H"+k+"V"+p*c:"M"+x+","+u+"H"+k),B.attr("opacity",1).attr("transform",function(t){return f(b(t)+u)}),_.attr(g+"2",p*h),F.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=b})}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,{JLW:()=>oU,l78:()=>d,tlR:()=>c,qrM:()=>o4,Yu4:()=>o8,IA3:()=>o9,Wi0:()=>ae,PGM:()=>ar,OEq:()=>ao,y8u:()=>an,olC:()=>ah,IrU:()=>ad,oDi:()=>ag,Q7f:()=>ay,cVp:()=>aC,lUB:()=>oG,Lx9:()=>ak,nVG:()=>a_,uxU:()=>aF,Xf2:()=>aM,GZz:()=>aE,UPb:()=>aD,dyv:()=>aO,GPZ:()=>tn,Sk5:()=>eW,bEH:()=>ro,n8j:()=>oQ,T9B:()=>i,jkA:()=>o,rLf:()=>o1,WH:()=>function t(){var e,r,i=rc().unknown(void 0),o=i.domain,a=i.range,s=0,n=1,l=!1,h=0,c=0,d=.5;function u(){var t=o().length,i=n<s,u=i?n:s,p=i?s:n;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?([s,n]=t,s*=1,n*=1,u()):[s,n]},i.rangeRound=function(t){return[s,n]=t,s*=1,n*=1,l=!0,u()},i.bandwidth=function(){return r},i.step=function(){return e},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(),[s,n]).round(l).paddingInner(h).paddingOuter(c).align(d)},ra.apply(u(),arguments)},m4Y:()=>function t(){var e,r=rM();return r.copy=function(){return rA(r,t())},ra.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,s]=i?rg(e,t,r):rg(t,e,r);if(!(a>=o))return[];let n=a-o+1,l=Array(n);if(i)if(s<0)for(let t=0;t<n;++t)l[t]=-((a-t)/s);else for(let t=0;t<n;++t)l[t]=(a-t)*s;else if(s<0)for(let t=0;t<n;++t)l[t]=-((o+t)/s);else for(let t=0;t<n;++t)l[t]=(o+t)*s;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,s=ry(t,e,r);switch((i=eO(null==i?",f":i)).type){case"s":var n=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$(n)/3)))-e$(Math.abs(s))))||(i.precision=a),tl(i,n);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=s)))-e$(o))+1)||(i.precision=a-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(a=Math.max(0,-e$(Math.abs(s))))||(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(),s=0,n=a.length-1,l=a[s],h=a[n],c=10;for(h<l&&(o=l,l=h,h=o,o=s,s=n,n=o);c-- >0;){if((o=rf(l,h,t))===i)return a[s]=l,a[n]=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},UMr:()=>rc,w7C:()=>ox,zt:()=>ok,Ltv:()=>ob,UAC:()=>rz,DCK:()=>tc,TUC:()=>rV,Agd:()=>rR,t6C:()=>rD,wXd:()=>rI,ABi:()=>rU,Ui6:()=>r6,rGn:()=>rZ,ucG:()=>rq,YPH:()=>rH,Mol:()=>rG,PGu:()=>rY,GuW:()=>rX,hkb:()=>eQ});var C,x=Array.prototype.find;function k(){return this.firstElementChild}var b=Array.prototype.filter;function w(){return Array.from(this.children)}function T(t){return Array(t.length)}function B(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function S(t,e,r,i,o,a){for(var s,n=0,l=e.length,h=a.length;n<h;++n)(s=e[n])?(s.__data__=a[n],i[n]=s):r[n]=new B(t,a[n]);for(;n<l;++n)(s=e[n])&&(o[n]=s)}function v(t,e,r,i,o,a,s){var n,l,h,c=new Map,d=e.length,u=a.length,p=Array(d);for(n=0;n<d;++n)(l=e[n])&&(p[n]=h=s.call(l,l.__data__,n,e)+"",c.has(h)?o[n]=l:c.set(h,l));for(n=0;n<u;++n)h=s.call(t,a[n],n,a)+"",(l=c.get(h))?(i[n]=l,l.__data__=a[n],c.delete(h)):r[n]=new B(t,a[n]);for(n=0;n<d;++n)(l=e[n])&&c.get(p[n])===l&&(o[n]=l)}function _(t){return t.__data__}function F(t,e){return t<e?-1:t>e?1:t>=e?0:0/0}B.prototype={constructor:B,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 L="http://www.w3.org/1999/xhtml",A={svg:"http://www.w3.org/2000/svg",xhtml:L,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function M(t){var e=t+="",r=e.indexOf(":");return r>=0&&"xmlns"!==(e=t.slice(0,r))&&(t=t.slice(r+1)),A.hasOwnProperty(e)?{space:A[e],local:t}:t}function $(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function E(t,e){return t.style.getPropertyValue(e)||$(t).getComputedStyle(t,null).getPropertyValue(e)}function O(t){return t.trim().split(/^|\s+/)}function D(t){return t.classList||new q(t)}function q(t){this._node=t,this._names=O(t.getAttribute("class")||"")}function I(t,e){for(var r=D(t),i=-1,o=e.length;++i<o;)r.add(e[i])}function K(t,e){for(var r=D(t),i=-1,o=e.length;++i<o;)r.remove(e[i])}function R(){this.textContent=""}function P(){this.innerHTML=""}function z(){this.nextSibling&&this.parentNode.appendChild(this)}function W(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function j(t){var e=M(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===L&&e.documentElement.namespaceURI===L?e.createElement(t):e.createElementNS(r,t)}})(e)}function N(){return null}function H(){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 Y(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function X(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 s=0,n=o.length;s<n;++s)if((i=o[s]).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 V(t,e,r){var i=$(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.dispatchEvent(o)}q.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 Z=[null];function Q(t,e){this._groups=t,this._parents=e}function J(){return new Q([[document.documentElement]],Z)}Q.prototype=J.prototype={constructor:Q,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,s,n=e[o],l=n.length,h=i[o]=Array(l),c=0;c<l;++c)(a=n[c])&&(s=t.call(a,a.__data__,c,n))&&("__data__"in a&&(s.__data__=a.__data__),h[c]=s);return new Q(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=[],s=0;s<i;++s)for(var n,l=r[s],h=l.length,c=0;c<h;++c)(n=l[c])&&(o.push(t.call(n,n.__data__,c,l)),a.push(n));return new Q(o,a)},selectChild:function(t){var e;return this.select(null==t?k:(e="function"==typeof t?t:m(t),function(){return x.call(this.children,e)}))},selectChildren:function(t){var e;return this.selectAll(null==t?w:(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,s=e[o],n=s.length,l=i[o]=[],h=0;h<n;++h)(a=s[h])&&t.call(a,a.__data__,h,s)&&l.push(a);return new Q(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,_);var r=e?v:S,i=this._parents,o=this._groups;"function"!=typeof t&&(C=t,t=function(){return C});for(var a=o.length,s=Array(a),n=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=n[h]=Array(g),y=s[h]=Array(g);r(c,d,f,y,l[h]=Array(u),p,e);for(var m,C,x,k,b=0,w=0;b<g;++b)if(x=f[b]){for(b>=w&&(w=b+1);!(k=y[w])&&++w<g;);x._next=k||null}}return(s=new Q(s,i))._enter=n,s._exit=l,s},enter:function(){return new Q(this._enter||this._groups.map(T),this._parents)},exit:function(){return new Q(this._exit||this._groups.map(T),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,s=Math.min(o,a),n=Array(o),l=0;l<s;++l)for(var h,c=r[l],d=i[l],u=c.length,p=n[l]=Array(u),g=0;g<u;++g)(h=c[g]||d[g])&&(p[g]=h);for(;l<o;++l)n[l]=r[l];return new Q(n,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,s=o[a];--a>=0;)(i=o[a])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i);return this},sort:function(t){function e(e,r){return e&&r?t(e.__data__,r.__data__):!e-!r}t||(t=F);for(var r=this._groups,i=r.length,o=Array(i),a=0;a<i;++a){for(var s,n=r[a],l=n.length,h=o[a]=Array(l),c=0;c<l;++c)(s=n[c])&&(h[c]=s);h.sort(e)}return new Q(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 s=i[o];if(s)return s}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],s=0,n=a.length;s<n;++s)(o=a[s])&&t.call(o,o.__data__,s,a);return this},attr:function(t,e){var r=M(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)):E(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=O(t+"");if(arguments.length<2){for(var i=D(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?R:("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?P:("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(z)},lower:function(){return this.each(W)},append:function(t){var e="function"==typeof t?t:j(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r="function"==typeof t?t:j(t),i=null==e?N:"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(H)},clone:function(t){return this.select(t?Y: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}}),s=a.length;if(arguments.length<2){var n=this.node().__on;if(n){for(var l,h=0,c=n.length;h<c;++h)for(i=0,l=n[h];i<s;++i)if((o=a[i]).type===l.type&&o.name===l.name)return l.value}return}for(n=e?G:X,i=0;i<s;++i)this.each(n(a[i],e,r));return this},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return V(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return V(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,s=o.length;a<s;++a)(i=o[a])&&(yield i)}};var tt={value:()=>{}};function te(){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 tr(i)}function tr(t){this._=t}function ti(t,e,r){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=tt,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=r&&t.push({name:e,value:r}),t}tr.prototype=te.prototype={constructor:tr,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,s=o.length;if(arguments.length<2){for(;++a<s;)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<s;)if(r=(t=o[a]).type)i[r]=ti(i[r],t.name,e);else if(null==e)for(r in i)i[r]=ti(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 tr(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 to,ta,ts,tn,tl,th,tc,td,tu,tp=0,tg=0,tf=0,ty=0,tm=0,tC=0,tx="object"==typeof performance&&performance.now?performance:Date,tk="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function tb(){return tm||(tk(tw),tm=tx.now()+tC)}function tw(){tm=0}function tT(){this._call=this._time=this._next=null}function tB(t,e,r){var i=new tT;return i.restart(t,e,r),i}function tS(){tm=(ty=tx.now())+tC,tp=tg=0;try{tb(),++tp;for(var t,e=td;e;)(t=tm-e._time)>=0&&e._call.call(void 0,t),e=e._next;--tp}finally{tp=0,function(){for(var t,e,r=td,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:td=e);tu=t,t_(i)}(),tm=0}}function tv(){var t=tx.now(),e=t-ty;e>1e3&&(tC-=e,ty=t)}function t_(t){!tp&&(tg&&(tg=clearTimeout(tg)),t-tm>24?(t<1/0&&(tg=setTimeout(tS,t-tx.now()-tC)),tf&&(tf=clearInterval(tf))):(tf||(ty=tx.now(),tf=setInterval(tv,1e3)),tp=1,tk(tS)))}function tF(t,e,r){var i=new tT;return e=null==e?0:+e,i.restart(r=>{i.stop(),t(r+e)},e,r),i}tT.prototype=tB.prototype={constructor:tT,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||tu===this||(tu?tu._next=this:td=this,tu=this),this._call=t,this._time=r,t_()},stop:function(){this._call&&(this._call=null,this._time=1/0,t_())}};var tL=te("start","end","cancel","interrupt"),tA=[];function tM(t,e,r,i,o,a){var s=t.__transition;if(s){if(r in s)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 n();for(h in o)if((u=o[h]).name===r.name){if(3===u.state)return tF(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(tF(function(){3===r.state&&(r.state=4,r.timer.restart(s,r.delay,r.time),s(l))}),r.state=2,r.on.call("start",t,t.__data__,r.index,r.group),2===r.state){for(r.state=3,i=Array(d=r.tween.length),h=0,c=-1;h<d;++h)(u=r.tween[h].value.call(t,t.__data__,r.index,r.group))&&(i[++c]=u);i.length=c+1}}function s(e){for(var o=e<r.duration?r.ease.call(null,e/r.duration):(r.timer.restart(n),r.state=5,1),a=-1,s=i.length;++a<s;)i[a].call(t,o);5===r.state&&(r.on.call("end",t,t.__data__,r.index,r.group),n())}function n(){for(var i in r.state=6,r.timer.stop(),delete o[e],o)return;delete t.__transition}o[e]=r,r.timer=tB(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:tL,tween:tA,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function t$(t,e){var r=tO(t,e);if(r.state>0)throw Error("too late; already scheduled");return r}function tE(t,e){var r=tO(t,e);if(r.state>3)throw Error("too late; already running");return r}function tO(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw Error("transition not found");return r}function tD(t,e){return t*=1,e*=1,function(r){return t*(1-r)+e*r}}var tq=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 s,n,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*r+e*i)&&(r-=t*l,i-=e*l),(n=Math.sqrt(r*r+i*i))&&(r/=n,i/=n,l/=n),t*i<e*r&&(t=-t,e=-e,l=-l,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(e,t)*tq,skewX:Math.atan(l)*tq,scaleX:s,scaleY:n}}function tR(t,e,r,i){function o(t){return t.length?t.pop()+" ":""}return function(a,s){var n,l,h,c,d=[],u=[];return a=t(a),s=t(s),!function(t,i,o,a,s,n){if(t!==o||i!==a){var l=s.push("translate(",null,e,null,r);n.push({i:l-4,x:tD(t,o)},{i:l-2,x:tD(i,a)})}else(o||a)&&s.push("translate("+o+e+a+r)}(a.translateX,a.translateY,s.translateX,s.translateY,d,u),n=a.rotate,l=s.rotate,n!==l?(n-l>180?l+=360:l-n>180&&(n+=360),u.push({i:d.push(o(d)+"rotate(",null,i)-2,x:tD(n,l)})):l&&d.push(o(d)+"rotate("+l+i),h=a.skewX,c=s.skewX,h!==c?u.push({i:d.push(o(d)+"skewX(",null,i)-2,x:tD(h,c)}):c&&d.push(o(d)+"skewX("+c+i),!function(t,e,r,i,a,s){if(t!==r||e!==i){var n=a.push(o(a)+"scale(",null,",",null,")");s.push({i:n-4,x:tD(t,r)},{i:n-2,x:tD(e,i)})}else(1!==r||1!==i)&&a.push(o(a)+"scale("+r+","+i+")")}(a.scaleX,a.scaleY,s.scaleX,s.scaleY,d,u),a=s=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 tP=tR(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)"),tz=tR(function(t){return null==t?tI:(to||(to=document.createElementNS("http://www.w3.org/2000/svg","g")),to.setAttribute("transform",t),t=to.transform.baseVal.consolidate())?tK((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):tI},", ",")",")");function tW(t,e,r){var i=t._id;return t.each(function(){var t=tE(this,i);(t.value||(t.value={}))[e]=r.apply(this,arguments)}),function(t){return tO(t,i).value[e]}}function tj(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function tN(t,e){var r=Object.create(t.prototype);for(var i in e)r[i]=e[i];return r}function tH(){}var tU=1/.7,tY="\\s*([+-]?\\d+)\\s*",tX="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tG="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tV=/^#([0-9a-f]{3,8})$/,tZ=RegExp(`^rgb\\(${tY},${tY},${tY}\\)$`),tQ=RegExp(`^rgb\\(${tG},${tG},${tG}\\)$`),tJ=RegExp(`^rgba\\(${tY},${tY},${tY},${tX}\\)$`),t0=RegExp(`^rgba\\(${tG},${tG},${tG},${tX}\\)$`),t1=RegExp(`^hsl\\(${tX},${tG},${tG}\\)$`),t2=RegExp(`^hsla\\(${tX},${tG},${tG},${tX}\\)$`),t5={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 t3(){return this.rgb().formatHex()}function t4(){return this.rgb().formatRgb()}function t6(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=tV.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?t8(e):3===r?new ee(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?t7(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?t7(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=tZ.exec(t))?new ee(e[1],e[2],e[3],1):(e=tQ.exec(t))?new ee(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=tJ.exec(t))?t7(e[1],e[2],e[3],e[4]):(e=t0.exec(t))?t7(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=t1.exec(t))?en(e[1],e[2]/100,e[3]/100,1):(e=t2.exec(t))?en(e[1],e[2]/100,e[3]/100,e[4]):t5.hasOwnProperty(t)?t8(t5[t]):"transparent"===t?new ee(0/0,0/0,0/0,0):null}function t8(t){return new ee(t>>16&255,t>>8&255,255&t,1)}function t7(t,e,r,i){return i<=0&&(t=e=r=0/0),new ee(t,e,r,i)}function t9(t){return(t instanceof tH||(t=t6(t)),t)?new ee((t=t.rgb()).r,t.g,t.b,t.opacity):new ee}function et(t,e,r,i){return 1==arguments.length?t9(t):new ee(t,e,r,null==i?1:i)}function ee(t,e,r,i){this.r=+t,this.g=+e,this.b=+r,this.opacity=+i}function er(){return`#${es(this.r)}${es(this.g)}${es(this.b)}`}function ei(){let t=eo(this.opacity);return`${1===t?"rgb(":"rgba("}${ea(this.r)}, ${ea(this.g)}, ${ea(this.b)}${1===t?")":`, ${t})`}`}function eo(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ea(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function es(t){return((t=ea(t))<16?"0":"")+t.toString(16)}function en(t,e,r,i){return i<=0?t=e=r=0/0:r<=0||r>=1?t=e=0/0:e<=0&&(t=0/0),new eh(t,e,r,i)}function el(t){if(t instanceof eh)return new eh(t.h,t.s,t.l,t.opacity);if(t instanceof tH||(t=t6(t)),!t)return new eh;if(t instanceof eh)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),s=0/0,n=a-o,l=(a+o)/2;return n?(s=e===a?(r-i)/n+(r<i)*6:r===a?(i-e)/n+2:(e-r)/n+4,n/=l<.5?a+o:2-a-o,s*=60):n=l>0&&l<1?0:s,new eh(s,n,l,t.opacity)}function eh(t,e,r,i){this.h=+t,this.s=+e,this.l=+r,this.opacity=+i}function ec(t){return(t=(t||0)%360)<0?t+360:t}function ed(t){return Math.max(0,Math.min(1,t||0))}function eu(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}tj(tH,t6,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:t3,formatHex:t3,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return el(this).formatHsl()},formatRgb:t4,toString:t4}),tj(ee,et,tN(tH,{brighter(t){return t=null==t?tU:Math.pow(tU,t),new ee(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new ee(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ee(ea(this.r),ea(this.g),ea(this.b),eo(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:er,formatHex:er,formatHex8:function(){return`#${es(this.r)}${es(this.g)}${es(this.b)}${es((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:ei,toString:ei})),tj(eh,function(t,e,r,i){return 1==arguments.length?el(t):new eh(t,e,r,null==i?1:i)},tN(tH,{brighter(t){return t=null==t?tU:Math.pow(tU,t),new eh(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new eh(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 ee(eu(t>=240?t-240:t+120,o,i),eu(t,o,i),eu(t<120?t+240:t-120,o,i),this.opacity)},clamp(){return new eh(ec(this.h),ed(this.s),ed(this.l),eo(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=eo(this.opacity);return`${1===t?"hsl(":"hsla("}${ec(this.h)}, ${100*ed(this.s)}%, ${100*ed(this.l)}%${1===t?")":`, ${t})`}`}}));var ep=t=>()=>t;function eg(t,e){return function(r){return t+r*e}}function ef(t,e){var r=e-t;return r?eg(t,r):ep(isNaN(t)?e:t)}var ey=function t(e){var r,i=1==(r=+e)?ef: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)}):ep(isNaN(t)?e:t)};function o(t,e){var r=i((t=et(t)).r,(e=et(e)).r),o=i(t.g,e.g),a=i(t.b,e.b),s=ef(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=a(e),t.opacity=s(e),t+""}}return o.gamma=t,o}(1),em=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eC=RegExp(em.source,"g");function ex(t,e){var r,i,o,a,s,n=em.lastIndex=eC.lastIndex=0,l=-1,h=[],c=[];for(t+="",e+="";(o=em.exec(t))&&(a=eC.exec(e));)(s=a.index)>n&&(s=e.slice(n,s),h[l]?h[l]+=s:h[++l]=s),(o=o[0])===(a=a[0])?h[l]?h[l]+=a:h[++l]=a:(h[++l]=null,c.push({i:l,x:tD(o,a)})),n=eC.lastIndex;return n<e.length&&(s=e.slice(n),h[l]?h[l]+=s:h[++l]=s),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 ek(t,e){var r;return("number"==typeof e?tD:e instanceof t6?ey:(r=t6(e))?(e=r,ey):ex)(t,e)}var eb=J.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 eS=J.prototype;eB.prototype=(function(t){return J().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),s=0;s<o;++s)for(var n,l,h=i[s],c=h.length,d=a[s]=Array(c),u=0;u<c;++u)(n=h[u])&&(l=t.call(n,n.__data__,u,h))&&("__data__"in n&&(l.__data__=n.__data__),d[u]=l,tM(d[u],e,r,u,d,tO(n,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=[],s=[],n=0;n<o;++n)for(var l,h=i[n],c=h.length,d=0;d<c;++d)if(l=h[d]){for(var u,p=t.call(l,l.__data__,d,h),g=tO(l,r),y=0,m=p.length;y<m;++y)(u=p[y])&&tM(u,e,r,y,p,g);a.push(p),s.push(l)}return new eB(a,s,e,r)},selectChild:eS.selectChild,selectChildren:eS.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,s=e[o],n=s.length,l=i[o]=[],h=0;h<n;++h)(a=s[h])&&t.call(a,a.__data__,h,s)&&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),s=Array(i),n=0;n<a;++n)for(var l,h=e[n],c=r[n],d=h.length,u=s[n]=Array(d),p=0;p<d;++p)(l=h[p]||c[p])&&(u[p]=l);for(;n<i;++n)s[n]=e[n];return new eB(s,this._parents,this._name,this._id)},selection:function(){return new eb(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 s,n=i[a],l=n.length,h=0;h<l;++h)if(s=n[h]){var c=tO(s,e);tM(s,t,r,h,n,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new eB(i,this._parents,t,r)},call:eS.call,nodes:eS.nodes,node:eS.node,size:eS.size,empty:eS.empty,each:eS.each,on:function(t,e){var r,i,o,a,s,n,l=this._id;return arguments.length<2?tO(this.node(),l).on.on(t):this.each((r=l,i=t,o=e,n=(i+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})?t$:tE,function(){var t=n(this,r),e=t.on;e!==a&&(s=(a=e).copy()).on(i,o),t.on=s}))},attr:function(t,e){var r=M(t),i="transform"===r?tz:ek;return this.attrTween(t,"function"==typeof e?(r.local?function(t,e,r){var i,o,a;return function(){var s,n,l=r(this);return null==l?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local))===(n=l+"")?null:s===i&&n===o?a:(o=n,a=e(i=s,l))}}:function(t,e,r){var i,o,a;return function(){var s,n,l=r(this);return null==l?void this.removeAttribute(t):(s=this.getAttribute(t))===(n=l+"")?null:s===i&&n===o?a:(o=n,a=e(i=s,l))}})(r,i,tW(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 s=this.getAttributeNS(t.space,t.local);return s===a?null:s===i?o:o=e(i=s,r)}}:function(t,e,r){var i,o,a=r+"";return function(){var s=this.getAttribute(t);return s===a?null:s===i?o:o=e(i=s,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=M(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,s,n,l,h,c,d,u,p,g,f,y,m,C,x,k,b,w,T,B="transform"==(t+="")?tP:ek;return null==e?this.styleTween(t,(i=t,function(){var t=E(this,i),e=(this.style.removeProperty(i),E(this,i));return t===e?null:t===o&&e===a?s:s=B(o=t,a=e)})).on("end.style."+t,ew(t)):"function"==typeof e?this.styleTween(t,(n=t,l=tW(this,"style."+t,e),function(){var t=E(this,n),e=l(this),r=e+"";return null==e&&(this.style.removeProperty(n),r=e=E(this,n)),t===r?null:t===h&&r===c?d:(c=r,d=B(h=t,e))})).each((u=this._id,x="end."+(C="style."+(p=t)),function(){var t=tE(this,u),e=t.on,r=null==t.value[C]?m||(m=ew(p)):void 0;(e!==g||y!==r)&&(f=(g=e).copy()).on(x,y=r),t.on=f})):this.styleTween(t,(k=t,T=e+"",function(){var t=E(this,k);return t===T?null:t===b?w:w=B(b=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=tW(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=tO(this.node(),r).tween,a=0,s=o.length;a<s;++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=tE(this,t),a=o.tween;if(a!==r){i=r=a;for(var s=0,n=i.length;s<n;++s)if(i[s].name===e){(i=i.slice()).splice(s,1);break}}o.tween=i}}:function(t,e,r){var i,o;if("function"!=typeof r)throw Error();return function(){var a=tE(this,t),s=a.tween;if(s!==i){o=(i=s).slice();for(var n={name:e,value:r},l=0,h=o.length;l<h;++l)if(o[l].name===e){o[l]=n;break}l===h&&o.push(n)}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(){t$(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e*=1,function(){t$(this,t).delay=e}})(e,t)):tO(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tE(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e*=1,function(){tE(this,t).duration=e}})(e,t)):tO(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(){tE(this,t).ease=e}}(e,t)):tO(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();tE(this,e).ease=r}))},end:function(){var t,e,r=this,i=r._id,o=r.size();return new Promise(function(a,s){var n={value:s},l={value:function(){0==--o&&a()}};r.each(function(){var r=tE(this,i),o=r.on;o!==t&&((e=(t=o).copy())._.cancel.push(n),e._.interrupt.push(n),e._.end.push(l)),r.on=e}),0===o&&a()})},[Symbol.iterator]:eS[Symbol.iterator]};var ev={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};J.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var r,i,o,a=t.__transition,s=!0;if(a){for(o in e=null==e?null:e+"",a){if((r=a[o]).name!==e){s=!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]}s&&delete t.__transition}}(this,t)})},J.prototype.transition=function(t){var e,r;t instanceof eB?(e=t._id,t=t._name):(e=++eT,(r=ev).time=tb(),t=null==t?null:t+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var s,n=i[a],l=n.length,h=0;h<l;++h)(s=n[h])&&tM(s,t,e,h,n,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}(s,e));return new eB(i,this._parents,t,e)};let{abs:e_,max:eF,min:eL}=Math;function eA(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>1?i[0]+i.slice(2):i,+t.slice(r+1)]}function e$(t){return(t=eM(Math.abs(t)))?t[1]:0/0}["w","e"].map(eA),["n","s"].map(eA),["n","w","e","s","nw","ne","sw","se"].map(eA);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 eq(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};var eI={"%":(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)=>eq(100*t,e),r:eq,s:function(t,e){var r=eM(t,e);if(!r)return ta=void 0,t.toPrecision(e);var i=r[0],o=r[1],a=o-(ta=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+Array(a-s+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 eK(t){return t}var eR=Array.prototype.map,eP=["y","z","a","f","p","n","µ","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 eW(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=eN)):void 0===e&&(e=ej);for(var r,i,o,a,s,n=new eY(t),l=[n];r=l.pop();)if((o=e(r.data))&&(s=(o=Array.from(o)).length))for(r.children=o,a=s-1;a>=0;--a)l.push(i=o[a]=new eY(o[a])),i.parent=r,i.depth=r.depth+1;return n.eachBefore(eU)}function ej(t){return t.children}function eN(t){return Array.isArray(t)?t[1]:null}function eH(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function eU(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 eX(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=(ts=function(t){var e,r,i,o=void 0===t.grouping||void 0===t.thousands?eK:(e=eR.call(t.grouping,Number),r=t.thousands+"",function(t,i){for(var o=t.length,a=[],s=0,n=e[0],l=0;o>0&&n>0&&(l+n+1>i&&(n=Math.max(1,i-l)),a.push(t.substring(o-=n,o+n)),!((l+=n+1)>i));)n=e[s=(s+1)%e.length];return a.reverse().join(r)}),a=void 0===t.currency?"":t.currency[0]+"",s=void 0===t.currency?"":t.currency[1]+"",n=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?eK:(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?"−":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,C=t.trim,x=t.type;"n"===x?(y=!0,x="g"):eI[x]||(void 0===m&&(m=12),C=!0,x="g"),(g||"0"===r&&"="===i)&&(g=!0,r="0",i="=");var k=(e&&void 0!==e.prefix?e.prefix:"")+("$"===p?a:"#"===p&&/[boxX]/.test(x)?"0"+x.toLowerCase():""),b=("$"===p?s:/[%p]/.test(x)?h:"")+(e&&void 0!==e.suffix?e.suffix:""),w=eI[x],T=/[defgprs%]/.test(x);function B(t){var e,a,s,h=k,p=b;if("c"===x)p=w(t)+p,t="";else{var B=(t*=1)<0||1/t<0;if(t=isNaN(t)?d:w(Math.abs(t),m),C&&(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"!==x||isNaN(t)||void 0===ta?"":eP[8+ta/3])+p+(B&&"("===u?")":""),T){for(e=-1,a=t.length;++e<a;)if(48>(s=t.charCodeAt(e))||s>57){p=(46===s?n+t.slice(e+1):t.slice(e))+p,t=t.slice(0,e);break}}}y&&!g&&(t=o(t,1/0));var S=h.length+t.length+p.length,v=S<f?Array(f-S+1).join(r):"";switch(y&&g&&(t=o(v+t,v.length?f-p.length:1/0),v=""),i){case"<":t=h+t+p+v;break;case"=":t=h+v+t+p;break;case"^":t=v.slice(0,S=v.length>>1)+h+t+p+v.slice(S);break;default:t=v+h+t+p}return l(t)}return m=void 0===m?6:/[gprs]/.test(x)?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,tl=ts.formatPrefix,eY.prototype=eW.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,s=[a],n=[],l=-1;a=s.pop();)if(n.push(a),r=a.children)for(i=0,o=r.length;i<o;++i)s.push(r[i]);for(;a=n.pop();)t.call(e,a,++l,this);return this},eachBefore:function(t,e){for(var r,i,o=this,a=[o],s=-1;o=a.pop();)if(t.call(e,o,++s,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 eW(this).eachBefore(eH)},[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)}};var eG=function t(e){function r(t,r,i,o,a){!function(t,e,r,i,o,a){for(var s,n,l,h,c,d,u,p,g,f,y,m=[],C=e.children,x=0,k=0,b=C.length,w=e.value;x<b;){l=o-r,h=a-i;do c=C[k++].value;while(!c&&k<b)for(d=u=c,g=Math.max(u/(y=c*c*(f=Math.max(h/l,l/h)/(w*t))),y/d);k<b;++k){if(c+=n=C[k].value,n<d&&(d=n),n>u&&(u=n),(p=Math.max(u/(y=c*c*f),y/d))>g){c-=n;break}g=p}m.push(s={value:c,dice:l<h,children:C.slice(x,k)}),s.dice?function(t,e,r,i,o){for(var a,s=t.children,n=-1,l=s.length,h=t.value&&(i-e)/t.value;++n<l;)(a=s[n]).y0=r,a.y1=o,a.x0=e,a.x1=e+=a.value*h}(s,r,i,o,w?i+=h*c/w:a):function(t,e,r,i,o){for(var a,s=t.children,n=-1,l=s.length,h=t.value&&(o-r)/t.value;++n<l;)(a=s[n]).x0=e,a.x1=i,a.y0=r,a.y1=r+=a.value*h}(s,r,i,w?r+=l*c/w:o,a),w-=c,x=k}}(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=eG,e=!1,r=1,i=1,o=[0],a=eV,s=eV,n=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(eX),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+=s(e)-r,d-=n(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))}return 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?(s="function"==typeof t?t:eZ(+t),c):s},c.paddingRight=function(t){return arguments.length?(n="function"==typeof t?t:eZ(+t),c):n},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 ee||(t=t9(t));var e,r,i=rt(t.r),o=rt(t.g),a=rt(t.b),s=e8((.2225045*i+.7168786*o+.0606169*a)/1);return i===o&&o===a?e=r=s:(e=e8((.4360747*i+.3850649*o+.1430804*a)/.96422),r=e8((.0139322*i+.0971045*o+.7141733*a)/.82521)),new e6(116*s-16,500*(e-s),200*(s-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 e7(t){return t>e2?t*t*t:e5*(t-e1)}function e9(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(0/0,0<t.l&&t.l<100?0:0/0,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)}tj(e6,function(t,e,r,i){return 1==arguments.length?e4(t):new e6(t,e,r,null==i?1:i)},tN(tH,{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*e7(e),new ee(e9(3.1338561*e-1.6168667*(t=+e7(t))-.4906146*(r=.82521*e7(r))),e9(-.9787684*e+1.9161415*t+.033454*r),e9(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),tj(rr,re,tN(tH,{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()}}));var ro=(C=function(t,e){var r=e-t;return r?eg(t,r>180||r<-180?r-360*Math.round(r/360):r):ep(isNaN(t)?e:t)},function(t,e){var r=C((t=re(t)).h,(e=re(e)).h),i=ef(t.c,e.c),o=ef(t.l,e.l),a=ef(t.opacity,e.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=o(e),t.opacity=a(e),t+""}});function ra(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}class rs extends Map{constructor(t,e=rl){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(rn(this,t))}has(t){return super.has(rn(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(r),t.delete(i)),r}(this,t))}}function rn({_intern:t,_key:e},r){let i=e(r);return t.has(i)?t.get(i):r}function rl(t){return null!==t&&"object"==typeof t?t.valueOf():t}let rh=Symbol("implicit");function rc(){var t=new rs,e=[],r=[],i=rh;function o(o){let a=t.get(o);if(void 0===a){if(i!==rh)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 rc(e,r).unknown(i)},ra.apply(o,arguments),o}let rd=Math.sqrt(50),ru=Math.sqrt(10),rp=Math.sqrt(2);function rg(t,e,r){let i,o,a,s=(e-t)/Math.max(0,r),n=Math.floor(Math.log10(s)),l=s/Math.pow(10,n),h=l>=rd?10:l>=ru?5:l>=rp?2:1;return(n<0?(i=Math.round(t*(a=Math.pow(10,-n)/h)),o=Math.round(e*a),i/a<t&&++i,o/a>e&&--o,a=-a):(i=Math.round(t/(a=Math.pow(10,n)*h)),o=Math.round(e/a),i*a<t&&++i,o*a>e&&--o),o<i&&.5<=r&&r<2)?rg(t,e,2*r):[i,o,a]}function rf(t,e,r){return rg(t*=1,e*=1,r*=1)[2]}function ry(t,e,r){e*=1,t*=1,r*=1;let i=e<t,o=i?rf(e,t,r):rf(t,e,r);return(i?-1:1)*(o<0?-(1/o):o)}function rm(t,e){return null==t||null==e?0/0:t<e?-1:t>e?1:t>=e?0:0/0}function rC(t,e){return null==t||null==e?0/0:e<t?-1:e>t?1:e>=t?0:0/0}function rx(t){let e,r,i;function o(t,i,a=0,s=t.length){if(a<s){if(0!==e(i,i))return s;do{let e=a+s>>>1;0>r(t[e],i)?a=e+1:s=e}while(a<s)}return a}return 2!==t.length?(e=rm,r=(e,r)=>rm(t(e),r),i=(e,r)=>t(e)-r):(e=t===rm||t===rC?t:rk,r=t,i=t),{left:o,center:function(t,e,r=0,a=t.length){let s=o(t,e,r,a-1);return s>r&&i(t[s-1],e)>-i(t[s],e)?s-1:s},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 rb=rx(rm),rw=rb.right;rb.left,rx(function(t){return null===t?0/0:+t}).center;function rT(t,e){return t*=1,e*=1,function(r){return Math.round(t*(1-r)+e*r)}}function rB(t){return+t}var rS=[0,1];function rv(t){return t}function r_(t,e){var r;return(e-=t*=1)?function(r){return(r-t)/e}:(r=isNaN(e)?0/0:.5,function(){return r})}function rF(t,e,r){var i=t[0],o=t[1],a=e[0],s=e[1];return o<i?(i=r_(o,i),a=r(s,a)):(i=r_(i,o),a=r(a,s)),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),s=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)o[s]=r_(t[s],t[s+1]),a[s]=r(e[s],e[s+1]);return function(e){var r=rw(t,e,1,i)-1;return a[r](o[r](e))}}function rA(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function rM(){return(function(){var t,e,r,i,o,a,s=rS,n=rS,l=function t(e,r){var i,o,a=typeof r;return null==r||"boolean"===a?ep(r):("number"===a?tD:"string"===a?(o=t6(r))?(r=o,ey):ex:r instanceof t6?ey: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,s=Array(a),n=Array(o);for(i=0;i<a;++i)s[i]=t(e[i],r[i]);for(;i<o;++i)n[i]=r[i];return function(t){for(i=0;i<a;++i)n[i]=s[i](t);return n}}:"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}}:tD: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=rv;function c(){var t,e,r,l=Math.min(s.length,n.length);return h!==rv&&(t=s[0],e=s[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(s.map(t),n,l)))(t(h(e)))}return d.invert=function(r){return h(e((a||(a=i(n,s.map(t),tD)))(r)))},d.domain=function(t){return arguments.length?(s=Array.from(t,rB),c()):s.slice()},d.range=function(t){return arguments.length?(n=Array.from(t),c()):n.slice()},d.rangeRound=function(t){return n=Array.from(t),l=rT,c()},d.clamp=function(t){return arguments.length?(h=!!t||rv,c()):h!==rv},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()}})()(rv,rv)}let r$=new Date,rE=new Date;function rO(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 s,n=[];if(r=o.ceil(r),a=null==a?1:Math.floor(a),!(r<i)||!(a>0))return n;do n.push(s=new Date(+r)),e(r,a),t(r);while(s<r&&r<i)return n},o.filter=r=>rO(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)=>(r$.setTime(+e),rE.setTime(+i),t(r$),t(rE),Math.floor(r(r$,rE))),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 rD=rO(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);rD.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?rO(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):rD:null,rD.range;let rq=rO(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds());rq.range;let rI=rO(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes());rI.range;let rK=rO(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes());rK.range;let rR=rO(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());rR.range;let rP=rO(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours());rP.range;let rz=rO(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);rz.range;let rW=rO(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1);rW.range;let rj=rO(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 rN(t){return rO(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)}rj.range;let rH=rN(0),rU=rN(1),rY=rN(2),rX=rN(3),rG=rN(4),rV=rN(5),rZ=rN(6);function rQ(t){return rO(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,rU.range,rY.range,rX.range,rG.range,rV.range,rZ.range;let rJ=rQ(0),r0=rQ(1),r1=rQ(2),r2=rQ(3),r5=rQ(4),r3=rQ(5),r4=rQ(6);rJ.range,r0.range,r1.range,r2.range,r5.range,r3.range,r4.range;let r6=rO(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());r6.range;let r8=rO(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());r8.range;let r7=rO(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?rO(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 r9=rO(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 it(t,e,r,i,o,a){let s=[[rq,1,1e3],[rq,5,5e3],[rq,15,15e3],[rq,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]];function n(e,r,i){let o=Math.abs(r-e)/i,a=rx(([,,t])=>t).right(s,o);if(a===s.length)return t.every(ry(e/31536e6,r/31536e6,i));if(0===a)return rD.every(Math.max(ry(e,r,i),1));let[n,l]=s[o/s[a-1][2]<s[a][2]/o?a-1:a];return n.every(l)}return[function(t,e,r){let i=e<t;i&&([t,e]=[e,t]);let o=r&&"function"==typeof r.range?r:n(t,e,r),a=o?o.range(t,+e+1):[];return i?a.reverse():a},n]}r9.every=t=>isFinite(t=Math.floor(t))&&t>0?rO(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,r9.range;let[ie,ir]=it(r9,r8,rJ,rj,rP,rK),[ii,io]=it(r7,r6,rH,rz,rR,rI);function ia(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 is(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 il(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var ih={"-":"",_:" ",0:"0"},ic=/^\s*\d+/,id=/^%/,iu=/[\\^$*+?|[\]().{}]/g;function ip(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 ig(t){return t.replace(iu,"\\$&")}function iy(t){return RegExp("^(?:"+t.map(ig).join("|")+")","i")}function im(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function iC(t,e,r){var i=ic.exec(e.slice(r,r+1));return i?(t.w=+i[0],r+i[0].length):-1}function ix(t,e,r){var i=ic.exec(e.slice(r,r+1));return i?(t.u=+i[0],r+i[0].length):-1}function ik(t,e,r){var i=ic.exec(e.slice(r,r+2));return i?(t.U=+i[0],r+i[0].length):-1}function ib(t,e,r){var i=ic.exec(e.slice(r,r+2));return i?(t.V=+i[0],r+i[0].length):-1}function iw(t,e,r){var i=ic.exec(e.slice(r,r+2));return i?(t.W=+i[0],r+i[0].length):-1}function iT(t,e,r){var i=ic.exec(e.slice(r,r+4));return i?(t.y=+i[0],r+i[0].length):-1}function iB(t,e,r){var i=ic.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 iv(t,e,r){var i=ic.exec(e.slice(r,r+1));return i?(t.q=3*i[0]-3,r+i[0].length):-1}function i_(t,e,r){var i=ic.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=ic.exec(e.slice(r,r+2));return i?(t.d=+i[0],r+i[0].length):-1}function iL(t,e,r){var i=ic.exec(e.slice(r,r+3));return i?(t.m=0,t.d=+i[0],r+i[0].length):-1}function iA(t,e,r){var i=ic.exec(e.slice(r,r+2));return i?(t.H=+i[0],r+i[0].length):-1}function iM(t,e,r){var i=ic.exec(e.slice(r,r+2));return i?(t.M=+i[0],r+i[0].length):-1}function i$(t,e,r){var i=ic.exec(e.slice(r,r+2));return i?(t.S=+i[0],r+i[0].length):-1}function iE(t,e,r){var i=ic.exec(e.slice(r,r+3));return i?(t.L=+i[0],r+i[0].length):-1}function iO(t,e,r){var i=ic.exec(e.slice(r,r+6));return i?(t.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function iD(t,e,r){var i=id.exec(e.slice(r,r+1));return i?r+i[0].length:-1}function iq(t,e,r){var i=ic.exec(e.slice(r));return i?(t.Q=+i[0],r+i[0].length):-1}function iI(t,e,r){var i=ic.exec(e.slice(r));return i?(t.s=+i[0],r+i[0].length):-1}function iK(t,e){return ip(t.getDate(),e,2)}function iR(t,e){return ip(t.getHours(),e,2)}function iP(t,e){return ip(t.getHours()%12||12,e,2)}function iz(t,e){return ip(1+rz.count(r7(t),t),e,3)}function iW(t,e){return ip(t.getMilliseconds(),e,3)}function ij(t,e){return iW(t,e)+"000"}function iN(t,e){return ip(t.getMonth()+1,e,2)}function iH(t,e){return ip(t.getMinutes(),e,2)}function iU(t,e){return ip(t.getSeconds(),e,2)}function iY(t){var e=t.getDay();return 0===e?7:e}function iX(t,e){return ip(rH.count(r7(t)-1,t),e,2)}function iG(t){var e=t.getDay();return e>=4||0===e?rG(t):rG.ceil(t)}function iV(t,e){return t=iG(t),ip(rG.count(r7(t),t)+(4===r7(t).getDay()),e,2)}function iZ(t){return t.getDay()}function iQ(t,e){return ip(rU.count(r7(t)-1,t),e,2)}function iJ(t,e){return ip(t.getFullYear()%100,e,2)}function i0(t,e){return ip((t=iG(t)).getFullYear()%100,e,2)}function i1(t,e){return ip(t.getFullYear()%1e4,e,4)}function i2(t,e){var r=t.getDay();return ip((t=r>=4||0===r?rG(t):rG.ceil(t)).getFullYear()%1e4,e,4)}function i5(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+ip(e/60|0,"0",2)+ip(e%60,"0",2)}function i3(t,e){return ip(t.getUTCDate(),e,2)}function i4(t,e){return ip(t.getUTCHours(),e,2)}function i6(t,e){return ip(t.getUTCHours()%12||12,e,2)}function i8(t,e){return ip(1+rW.count(r9(t),t),e,3)}function i7(t,e){return ip(t.getUTCMilliseconds(),e,3)}function i9(t,e){return i7(t,e)+"000"}function ot(t,e){return ip(t.getUTCMonth()+1,e,2)}function oe(t,e){return ip(t.getUTCMinutes(),e,2)}function or(t,e){return ip(t.getUTCSeconds(),e,2)}function oi(t){var e=t.getUTCDay();return 0===e?7:e}function oo(t,e){return ip(rJ.count(r9(t)-1,t),e,2)}function oa(t){var e=t.getUTCDay();return e>=4||0===e?r5(t):r5.ceil(t)}function os(t,e){return t=oa(t),ip(r5.count(r9(t),t)+(4===r9(t).getUTCDay()),e,2)}function on(t){return t.getUTCDay()}function ol(t,e){return ip(r0.count(r9(t)-1,t),e,2)}function oh(t,e){return ip(t.getUTCFullYear()%100,e,2)}function oc(t,e){return ip((t=oa(t)).getUTCFullYear()%100,e,2)}function od(t,e){return ip(t.getUTCFullYear()%1e4,e,4)}function ou(t,e){var r=t.getUTCDay();return ip((t=r>=4||0===r?r5(t):r5.ceil(t)).getUTCFullYear()%1e4,e,4)}function op(){return"+0000"}function og(){return"%"}function of(t){return+t}function oy(t){return Math.floor(t/1e3)}function om(t){return new Date(t)}function oC(t){return t instanceof Date?+t:+new Date(+t)}function ox(){return ra.apply((function t(e,r,i,o,a,s,n,l,h,c){var d=rM(),u=d.invert,p=d.domain,g=c(".%L"),f=c(":%S"),y=c("%I:%M"),m=c("%I %p"),C=c("%a %d"),x=c("%b %d"),k=c("%B"),b=c("%Y");function w(t){return(h(t)<t?g:l(t)<t?f:n(t)<t?y:s(t)<t?m:o(t)<t?a(t)<t?C:x:i(t)<t?k:b)(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(om)},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,s,n,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,s=e.length-1,n=e[a],(l=e[s])<n&&(o=a,a=s,s=o,o=n,n=l,l=o),e[a]=i.floor(n),e[s]=i.ceil(l),e)):d},d.copy=function(){return rA(d,t(e,r,i,o,a,s,n,l,h,c))},d})(ii,io,r7,r6,rH,rz,rR,rI,rq,tc).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}tc=(th=function(t){var e=t.dateTime,r=t.date,i=t.time,o=t.periods,a=t.days,s=t.shortDays,n=t.months,l=t.shortMonths,h=iy(o),c=im(o),d=iy(a),u=im(a),p=iy(s),g=im(s),f=iy(n),y=im(n),m=iy(l),C=im(l),x={a:function(t){return s[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return n[t.getMonth()]},c:null,d:iK,e:iK,f:ij,g:i0,G:i2,H:iR,I:iP,j:iz,L:iW,m:iN,M:iH,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:of,s:oy,S:iU,u:iY,U:iX,V:iV,w:iZ,W:iQ,x:null,X:null,y:iJ,Y:i1,Z:i5,"%":og},k={a:function(t){return s[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return n[t.getUTCMonth()]},c:null,d:i3,e:i3,f:i9,g:oc,G:ou,H:i4,I:i6,j:i8,L:i7,m:ot,M:oe,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:of,s:oy,S:or,u:oi,U:oo,V:os,w:on,W:ol,x:null,X:null,y:oh,Y:od,Z:op,"%":og},b={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=C.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:iO,g:iB,G:iT,H:iA,I:iA,j:iL,L:iE,m:i_,M:iM,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:iv,Q:iq,s:iI,S:i$,u:ix,U:ik,V:ib,w:iC,W:iw,x:function(t,e,i){return B(t,r,e,i)},X:function(t,e,r){return B(t,i,e,r)},y:iB,Y:iT,Z:iS,"%":iD};function w(t,e){return function(r){var i,o,a,s=[],n=-1,l=0,h=t.length;for(r instanceof Date||(r=new Date(+r));++n<h;)37===t.charCodeAt(n)&&(s.push(t.slice(l,n)),null!=(o=ih[i=t.charAt(++n)])?i=t.charAt(++n):o="e"===i?" ":"0",(a=e[i])&&(i=a(r,o)),s.push(i),l=n+1);return s.push(t.slice(l,n)),s.join("")}}function T(t,e){return function(r){var i,o,a=il(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=is(il(a.y,0,1))).getUTCDay())>4||0===o?r0.ceil(i):r0(i),i=rW.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=ia(il(a.y,0,1))).getDay())>4||0===o?rU.ceil(i):rU(i),i=rz.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?is(il(a.y,0,1)).getUTCDay():ia(il(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,is(a)):ia(a)}}function B(t,e,r,i){for(var o,a,s=0,n=e.length,l=r.length;s<n;){if(i>=l)return -1;if(37===(o=e.charCodeAt(s++))){if(!(a=b[(o=e.charAt(s++))in ih?e.charAt(s++):o])||(i=a(t,r,i))<0)return -1}else if(o!=r.charCodeAt(i++))return -1}return i}return x.x=w(r,x),x.X=w(i,x),x.c=w(e,x),k.x=w(r,k),k.X=w(i,k),k.c=w(e,k),{format:function(t){var e=w(t+="",x);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+="",k);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","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,th.parse,th.utcFormat,th.utcParse;var 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 ob(t){return"string"==typeof t?new Q([[document.querySelector(t)]],[document.documentElement]):new Q([[t]],Z)}function ow(t){return function(){return t}}let oT=Math.abs,oB=Math.atan2,oS=Math.cos,ov=Math.max,o_=Math.min,oF=Math.sin,oL=Math.sqrt,oA=Math.PI,oM=oA/2,o$=2*oA;function oE(t){return t>=1?oM:t<=-1?-oM:Math.asin(t)}let oO=Math.PI,oD=2*oO,oq=oD-1e-6;function oI(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class oK{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?oI:function(t){let e=Math.floor(t);if(!(e>=0))throw Error(`invalid digits: ${t}`);if(e>15)return oI;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,s=this._y1,n=r-t,l=i-e,h=a-t,c=s-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*n-l*h)>1e-6&&o){let u=r-a,p=i-s,g=n*n+l*l,f=Math.sqrt(g),y=Math.sqrt(d),m=o*Math.tan((oO-Math.acos((g+d-(u*u+p*p))/(2*f*y)))/2),C=m/y,x=m/f;Math.abs(C-1)>1e-6&&this._append`L${t+C*h},${e+C*c}`,this._append`A${o},${o},0,0,${+(c*u>h*p)},${this._x1=t+x*n},${this._y1=e+x*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 s=r*Math.cos(i),n=r*Math.sin(i),l=t+s,h=e+n,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%oD+oD),d>oq?this._append`A${r},${r},0,1,${c},${t-s},${e-n}A${r},${r},0,1,${c},${this._x1=l},${this._y1=h}`:d>1e-6&&this._append`A${r},${r},0,${+(d>=oO)},${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 oR(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 oK(e)}function oP(t){return t.innerRadius}function oz(t){return t.outerRadius}function oW(t){return t.startAngle}function oj(t){return t.endAngle}function oN(t){return t&&t.padAngle}function oH(t,e,r,i,o,a,s){var n=t-r,l=e-i,h=(s?a:-a)/oL(n*n+l*l),c=h*l,d=-h*n,u=t+c,p=e+d,g=r+c,f=i+d,y=(u+g)/2,m=(p+f)/2,C=g-u,x=f-p,k=C*C+x*x,b=o-a,w=u*f-g*p,T=(x<0?-1:1)*oL(ov(0,b*b*k-w*w)),B=(w*x-C*T)/k,S=(-w*C-x*T)/k,v=(w*x+C*T)/k,_=(-w*C+x*T)/k,F=B-y,L=S-m,A=v-y,M=_-m;return F*F+L*L>A*A+M*M&&(B=v,S=_),{cx:B,cy:S,x01:-c,y01:-d,x11:B*(o/b-1),y11:S*(o/b-1)}}function oU(){var t=oP,e=oz,r=ow(0),i=null,o=oW,a=oj,s=oN,n=null,l=oR(h);function h(){var h,c,d=+t.apply(this,arguments),u=+e.apply(this,arguments),p=o.apply(this,arguments)-oM,g=a.apply(this,arguments)-oM,f=oT(g-p),y=g>p;if(n||(n=h=l()),u<d&&(c=u,u=d,d=c),u>1e-12)if(f>o$-1e-12)n.moveTo(u*oS(p),u*oF(p)),n.arc(0,0,u,p,g,!y),d>1e-12&&(n.moveTo(d*oS(g),d*oF(g)),n.arc(0,0,d,g,p,y));else{var m,C,x=p,k=g,b=p,w=g,T=f,B=f,S=s.apply(this,arguments)/2,v=S>1e-12&&(i?+i.apply(this,arguments):oL(d*d+u*u)),_=o_(oT(u-d)/2,+r.apply(this,arguments)),F=_,L=_;if(v>1e-12){var A=oE(v/d*oF(S)),M=oE(v/u*oF(S));(T-=2*A)>1e-12?(A*=y?1:-1,b+=A,w-=A):(T=0,b=w=(p+g)/2),(B-=2*M)>1e-12?(M*=y?1:-1,x+=M,k-=M):(B=0,x=k=(p+g)/2)}var $=u*oS(x),E=u*oF(x),O=d*oS(w),D=d*oF(w);if(_>1e-12){var q,I=u*oS(k),K=u*oF(k),R=d*oS(b),P=d*oF(b);if(f<oA)if(q=function(t,e,r,i,o,a,s,n){var l=r-t,h=i-e,c=s-o,d=n-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,I,K,O,D)){var z,W=$-q[0],j=E-q[1],N=I-q[0],H=K-q[1],U=1/oF(((z=(W*N+j*H)/(oL(W*W+j*j)*oL(N*N+H*H)))>1?0:z<-1?oA:Math.acos(z))/2),Y=oL(q[0]*q[0]+q[1]*q[1]);F=o_(_,(d-Y)/(U-1)),L=o_(_,(u-Y)/(U+1))}else F=L=0}B>1e-12?L>1e-12?(m=oH(R,P,$,E,u,L,y),C=oH(I,K,O,D,u,L,y),n.moveTo(m.cx+m.x01,m.cy+m.y01),L<_?n.arc(m.cx,m.cy,L,oB(m.y01,m.x01),oB(C.y01,C.x01),!y):(n.arc(m.cx,m.cy,L,oB(m.y01,m.x01),oB(m.y11,m.x11),!y),n.arc(0,0,u,oB(m.cy+m.y11,m.cx+m.x11),oB(C.cy+C.y11,C.cx+C.x11),!y),n.arc(C.cx,C.cy,L,oB(C.y11,C.x11),oB(C.y01,C.x01),!y))):(n.moveTo($,E),n.arc(0,0,u,x,k,!y)):n.moveTo($,E),d>1e-12&&T>1e-12?F>1e-12?(m=oH(O,D,I,K,d,-F,y),C=oH($,E,R,P,d,-F,y),n.lineTo(m.cx+m.x01,m.cy+m.y01),F<_?n.arc(m.cx,m.cy,F,oB(m.y01,m.x01),oB(C.y01,C.x01),!y):(n.arc(m.cx,m.cy,F,oB(m.y01,m.x01),oB(m.y11,m.x11),!y),n.arc(0,0,d,oB(m.cy+m.y11,m.cx+m.x11),oB(C.cy+C.y11,C.cx+C.x11),y),n.arc(C.cx,C.cy,F,oB(C.y11,C.x11),oB(C.y01,C.x01),!y))):n.arc(0,0,d,w,b,y):n.lineTo(O,D)}else n.moveTo(0,0);if(n.closePath(),h)return n=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-oA/2;return[oS(i)*r,oF(i)*r]},h.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:ow(+e),h):t},h.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:ow(+t),h):e},h.cornerRadius=function(t){return arguments.length?(r="function"==typeof t?t:ow(+t),h):r},h.padRadius=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:ow(+t),h):i},h.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:ow(+t),h):o},h.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:ow(+t),h):a},h.padAngle=function(t){return arguments.length?(s="function"==typeof t?t:ow(+t),h):s},h.context=function(t){return arguments.length?(n=null==t?null:t,h):n},h}function oY(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function oX(t){this._context=t}function oG(t){return new oX(t)}function oV(t){return t[0]}function oZ(t){return t[1]}function oQ(t,e){var r=ow(!0),i=null,o=oG,a=null,s=oR(n);function n(n){var l,h,c,d=(n=oY(n)).length,u=!1;for(null==i&&(a=o(c=s())),l=0;l<=d;++l)!(l<d&&r(h=n[l],l,n))===u&&((u=!u)?a.lineStart():a.lineEnd()),u&&a.point(+t(h,l,n),+e(h,l,n));if(c)return a=null,c+""||null}return t="function"==typeof t?t:void 0===t?oV:ow(t),e="function"==typeof e?e:void 0===e?oZ:ow(e),n.x=function(e){return arguments.length?(t="function"==typeof e?e:ow(+e),n):t},n.y=function(t){return arguments.length?(e="function"==typeof t?t:ow(+t),n):e},n.defined=function(t){return arguments.length?(r="function"==typeof t?t:ow(!!t),n):r},n.curve=function(t){return arguments.length?(o=t,null!=i&&(a=o(i)),n):o},n.context=function(t){return arguments.length?(null==t?i=a=null:a=o(i=t),n):i},n}function oJ(t,e){return e<t?-1:e>t?1:e>=t?0:0/0}function o0(t){return t}function o1(){var t=o0,e=oJ,r=null,i=ow(0),o=ow(o$),a=ow(0);function s(s){var n,l,h,c,d,u=(s=oY(s)).length,p=0,g=Array(u),f=Array(u),y=+i.apply(this,arguments),m=Math.min(o$,Math.max(-o$,o.apply(this,arguments)-y)),C=Math.min(Math.abs(m)/u,a.apply(this,arguments)),x=C*(m<0?-1:1);for(n=0;n<u;++n)(d=f[g[n]=n]=+t(s[n],n,s))>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(s[t],s[e])}),n=0,h=p?(m-u*x)/p:0;n<u;++n,y=c)c=y+((d=f[l=g[n]])>0?d*h:0)+x,f[l]={data:s[l],index:n,value:d,startAngle:y,endAngle:c,padAngle:C};return f}return s.value=function(e){return arguments.length?(t="function"==typeof e?e:ow(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,r=null,s):e},s.sort=function(t){return arguments.length?(r=t,e=null,s):r},s.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:ow(+t),s):i},s.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:ow(+t),s):o},s.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:ow(+t),s):a},s}function o2(){}function o5(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 o3(t){this._context=t}function o4(t){return new o3(t)}function o6(t){this._context=t}function o8(t){return new o6(t)}function o7(t){this._context=t}function o9(t){return new o7(t)}oK.prototype,Array.prototype.slice,oX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=0/0},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)}}},o3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=0/0},lineStart:function(){this._x0=this._x1=this._y0=this._y1=0/0,this._point=0},lineEnd:function(){switch(this._point){case 3:o5(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:o5(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},o6.prototype={areaStart:o2,areaEnd:o2,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=0/0,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:o5(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=0/0},lineStart:function(){this._x0=this._x1=this._y0=this._y1=0/0,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:o5(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class at{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=0/0}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 ae(t){return new at(t,!0)}function ar(t){return new at(t,!1)}function ai(t,e){this._basis=new o3(t),this._beta=e}ai.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],s=t[r]-o,n=e[r]-a,l=-1;++l<=r;)i=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(o+i*s),this._beta*e[l]+(1-this._beta)*(a+i*n));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var ao=function t(e){function r(t){return 1===e?new o3(t):new ai(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function aa(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=0/0},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=0/0,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:aa(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:aa(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}};var an=function t(e){function r(t){return new as(t,e)}return r.tension=function(e){return t(+e)},r}(0);function al(t,e){this._context=t,this._k=(1-e)/6}al.prototype={areaStart:o2,areaEnd:o2,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=0/0,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:aa(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}};var ah=function t(e){function r(t){return new al(t,e)}return r.tension=function(e){return t(+e)},r}(0);function ac(t,e){this._context=t,this._k=(1-e)/6}ac.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=0/0},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=0/0,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:aa(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}};var ad=function t(e){function r(t){return new ac(t,e)}return r.tension=function(e){return t(+e)},r}(0);function au(t,e,r){var i=t._x1,o=t._y1,a=t._x2,s=t._y2;if(t._l01_a>1e-12){var n=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*n-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,o=(o*n-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,s=(s*h+t._y1*t._l23_2a-r*t._l12_2a)/c}t._context.bezierCurveTo(i,o,a,s,t._x2,t._y2)}function ap(t,e){this._context=t,this._alpha=e}ap.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=0/0},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=0/0,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:au(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}};var ag=function t(e){function r(t){return e?new ap(t,e):new as(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function af(t,e){this._context=t,this._alpha=e}af.prototype={areaStart:o2,areaEnd:o2,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=0/0,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:au(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}};var ay=function t(e){function r(t){return e?new af(t,e):new al(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function am(t,e){this._context=t,this._alpha=e}am.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=0/0},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=0/0,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:au(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}};var aC=function t(e){function r(t){return e?new am(t,e):new ac(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function ax(t){this._context=t}function ak(t){return new ax(t)}function ab(t,e,r){var i=t._x1-t._x0,o=e-t._x1,a=(t._y1-t._y0)/(i||o<0&&-0),s=(r-t._y1)/(o||i<0&&-0);return((a<0?-1:1)+(s<0?-1:1))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs((a*o+s*i)/(i+o)))||0}function aw(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function aT(t,e,r){var i=t._x0,o=t._y0,a=t._x1,s=t._y1,n=(a-i)/3;t._context.bezierCurveTo(i+n,o+n*e,a-n,s-n*r,a,s)}function aB(t){this._context=t}function aS(t){this._context=new av(t)}function av(t){this._context=t}function a_(t){return new aB(t)}function aF(t){return new aS(t)}function aL(t){this._context=t}function aA(t){var e,r,i=t.length-1,o=Array(i),a=Array(i),s=Array(i);for(o[0]=0,a[0]=2,s[0]=t[0]+2*t[1],e=1;e<i-1;++e)o[e]=1,a[e]=4,s[e]=4*t[e]+2*t[e+1];for(o[i-1]=2,a[i-1]=7,s[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)r=o[e]/a[e-1],a[e]-=r,s[e]-=r*s[e-1];for(o[i-1]=s[i-1]/a[i-1],e=i-2;e>=0;--e)o[e]=(s[e]-o[e+1])/a[e];for(a[i-1]=(t[i]+o[i-1])/2,e=0;e<i-1;++e)a[e]=2*t[e+1]-o[e+1];return[o,a]}function aM(t){return new aL(t)}function a$(t,e){this._context=t,this._t=e}function aE(t){return new a$(t,.5)}function aO(t){return new a$(t,0)}function aD(t){return new a$(t,1)}function aq(t,e,r){this.k=t,this.x=e,this.y=r}ax.prototype={areaStart:o2,areaEnd:o2,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))}},aB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=0/0},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=0/0,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:aT(this,this._t0,aw(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=0/0;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,aT(this,aw(this,r=ab(this,t,e)),r);break;default:aT(this,this._t0,r=ab(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(aS.prototype=Object.create(aB.prototype)).point=function(t,e){aB.prototype.point.call(this,e,t)},av.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=0/0},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=aA(t),o=aA(e),a=0,s=1;s<r;++a,++s)this._context.bezierCurveTo(i[0][a],o[0][a],i[1][a],o[1][a],t[s],e[s]);(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)}},a$.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=0/0},lineStart:function(){this._x=this._y=0/0,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}},aq.prototype={constructor:aq,scale:function(t){return 1===t?this:new aq(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new aq(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 aq(1,0,0);aq.prototype},99125(t,e,r){function 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){r.d(e,{},{$V:"[object Boolean]",Av:"[object RegExp]",GX:"[object Object]",ML:"[object Float64Array]",NA:"[object Set]",OG:"[object String]",Qb:"[object Uint8Array]",R_:"[object Arguments]",Uw:"[object Array]",VP:"[object Symbol]",XZ:"[object Int8Array]",ZR:"[object Uint32Array]",_u:"[object Int32Array]",cT:"[object ArrayBuffer]",i1:"[object Int16Array]",iq:"[object DataView]",kj:"[object Number]",pj:"[object Map]",q:"[object Uint8ClampedArray]",ri:"[object Float32Array]",vC:"[object Date]",x6:"[object Uint16Array]"})},14608(t,e,r){var i=r(99125);function o(t){return null!==t&&"object"==typeof t&&"[object Arguments]"===(0,i.b)(t)}r.d(e,{N:()=>o})},72146(t,e,r){r.d(e,{X:()=>i});function i(t){var e;return null!=t&&"function"!=typeof t&&Number.isSafeInteger(e=t.length)&&e>=0}},19663(t,e,r){var i=r(42796);function o(t){return(0,i.i)(t)}r.d(e,{i:()=>o})},44009(t,e,r){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){function i(t){return null==t||"object"!=typeof t&&"function"!=typeof t}r.d(e,{s:()=>i})},42796(t,e,r){function i(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}r.d(e,{i:()=>i})},16236(t,e,r){r.d(e,{A:()=>s});var i=r(9601),o=r(63122),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}},s=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")},71005(t,e,r){r.d(e,{A:()=>c});var i=r(16236),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),s=r.length,n=s%4==0,l=s>4,h=l?1:17,c=l?8:4,d=n?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:n?(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 s=r(9601);let n={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(n.hueRe);if(e){let[,t,r]=e;switch(r){case"grad":return s.A.channel.clamp.h(.9*parseFloat(t));case"rad":return s.A.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return s.A.channel.clamp.h(360*parseFloat(t))}}return s.A.channel.clamp.h(parseFloat(t))},parse:t=>{let e=t.charCodeAt(0);if(104!==e&&72!==e)return;let r=t.match(n.re);if(!r)return;let[,o,a,l,h,c]=r;return i.A.set({h:n._hue2deg(o),s:s.A.channel.clamp.s(parseFloat(a)),l:s.A.channel.clamp.l(parseFloat(l)),a:h?s.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(${s.A.lang.round(e)}, ${s.A.lang.round(r)}%, ${s.A.lang.round(i)}%, ${o})`:`hsl(${s.A.lang.round(e)}, ${s.A.lang.round(r)}%, ${s.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",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();let e=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,n,l,c,d,u,p]=r;return i.A.set({r:s.A.channel.clamp.r(a?2.55*parseFloat(o):parseFloat(o)),g:s.A.channel.clamp.g(l?2.55*parseFloat(n):parseFloat(n)),b:s.A.channel.clamp.b(d?2.55*parseFloat(c):parseFloat(c)),a:u?s.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(${s.A.lang.round(e)}, ${s.A.lang.round(r)}, ${s.A.lang.round(i)}, ${s.A.lang.round(o)})`:`rgb(${s.A.lang.round(e)}, ${s.A.lang.round(r)}, ${s.A.lang.round(i)})`}};var c={format:{keyword:l,hex:a,rgb:h,rgba:h,hsl:n,hsla:n},parse:t=>{if("string"!=typeof t)return t;let e=a.parse(t)||h.parse(t)||n.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?n.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){var i=r(9601);let o={};for(let t=0;t<=255;t++)o[t]=i.A.unit.dec2hex(t);r.d(e,{},{Y:o,Z:{ALL:0,RGB:1,HSL:2}})},95635(t,e,r){var i=r(9601),o=r(71005);e.A=(t,e,r)=>{let a=o.A.parse(t),s=a[e],n=i.A.channel.clamp[e](s+r);return s!==n&&(a[e]=n),o.A.stringify(a)}},8232(t,e,r){var i=r(9601),o=r(71005);e.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){var i=r(95635);e.A=(t,e)=>(0,i.A)(t,"l",-e)},57418(t,e,r){r.d(e,{A:()=>a});var i=r(9601),o=r(71005),a=t=>!((t=>{let{r:e,g:r,b:a}=o.A.parse(t),s=.2126*i.A.channel.toLinear(e)+.7152*i.A.channel.toLinear(r)+.0722*i.A.channel.toLinear(a);return i.A.lang.round(s)})(t)>=.5)},78041(t,e,r){var i=r(95635);e.A=(t,e)=>(0,i.A)(t,"l",e)},25582(t,e,r){var i=r(9601),o=r(16236),a=r(71005),s=r(8232);e.A=(t,e,r=0,n=1)=>{if("number"!=typeof t)return(0,s.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(n)});return a.A.stringify(l)}},9601(t,e,r){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,s=2*r-a;switch(o){case"r":return 255*i.hue2rgb(s,a,t+1/3);case"g":return 255*i.hue2rgb(s,a,t);case"b":return 255*i.hue2rgb(s,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),s=(o+a)/2;if("l"===i)return 100*s;if(o===a)return 0;let n=o-a;if("s"===i)return 100*(s>.5?n/(2-o-a):n/(o+a));switch(o){case t:return((e-r)/n+6*(e<r))*60;case e:return((r-t)/n+2)*60;case r:return((t-e)/n+4)*60;default:return -1}}};var 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}`}}}},22422(t,e,r){var i=r(64183),o=r(86827),a=r(74045),s=(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");r.d(e,{D:()=>s})},15198(t,e,r){r.d(e,{WY:()=>S,dn:()=>B,pC:()=>w,Gc:()=>x});var i=r(64183),o=r(31293),a=r(86827);let s=(t,e)=>!!t&&!!((e&&""===t.prefix||t.prefix)&&t.name),n=Object.freeze({left:0,top:0,width:16,height:16}),l=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),h=Object.freeze({...n,...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 s(t){a=d(i[t]||o[t],a)}return s(e),r.forEach(s),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(),s=f.test(a);for(;;){if(s){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("");s=!s}}let m=/\sid="(\S+)"/g,C=new Map;var x={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},k=new Map,b=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)b.set(e.name,e.loader);else if("icons"in e)k.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&&!s(a)?null:a}let a=o[0],n=a.split("-");if(n.length>1){let t={provider:i,prefix:n.shift(),name:n.join("-")};return e&&!s(t)?null:t}if(r&&""===i){let t={provider:i,prefix:"",name:a};return e&&!s(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=k.get(i);if(!a){let t=b.get(i);if(!t)throw Error(`Icon set not found: ${r.prefix}`);try{a={...await t(),prefix:i},k.set(i,a)}catch(t){throw o.R.error(t),Error(`Failed to load icon set: ${r.prefix}`)}}let n=function(t,e){var r;let i,o,a;if(t.icons[e])return u(t,e,[]);let s=(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 s?u(t,e,s):null}(a,r.name);if(!n)throw Error(`Icon not found: ${t}`);return n},"getRegisteredIconData"),B=(0,a.K)(async t=>{try{return await T(t),!0}catch{return!1}},"isIconAvailable"),S=(0,a.K)(async(t,e,r)=>{var a;let s,n,l,c,d,u,g,f,k,b,w,B,S,v;try{s=await T(t,e?.fallbackPrefix)}catch(t){o.R.error(t),s=x}let _=(a=s,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,s,n=[],l=t.hFlip,h=t.vFlip,c=t.rotate;switch(l?h?c+=2:(n.push("translate("+(u.width+u.left).toString()+" "+(0-u.top).toString()+")"),n.push("scale(-1 1)"),u.top=u.left=0):h&&(n.push("translate("+(0-u.left).toString()+" "+(u.height+u.top).toString()+")"),n.push("scale(1 -1)"),u.top=u.left=0),c<0&&(c-=4*Math.floor(c/4)),c%=4){case 1:n.unshift("rotate(90 "+(a=u.height/2+u.top).toString()+" "+a.toString()+")");break;case 2:n.unshift("rotate(180 "+(u.width/2+u.left).toString()+" "+(u.height/2+u.top).toString()+")");break;case 3:n.unshift("rotate(-90 "+(a=u.width/2+u.left).toString()+" "+a.toString()+")")}c%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)),n.length&&(e=g,r='<g transform="'+n.join(" ")+'">',i=(s=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 s=t.indexOf(">",a);if(-1===s)break;r+=t.slice(o+1,a).trim(),t=t.slice(0,i).trim()+t.slice(s+1)}return{defs:r,content:t}}(e)).defs,o=r+s.content+"</g>",g=i?"<defs>"+i+"</defs>"+o:o)}),f=d.width,k=d.height,b=u.width,w=u.height,null===f?n=y(l=null===k?"1em":"auto"===k?w:k,b/w):(n="auto"===f?b:f,l=null===k?y(n,w/b):"auto"===k?w:k),B={},(S=(t,e)=>{"unset"!==e&&"undefined"!==e&&"none"!==e&&(B[t]=e.toString())})("width",n),S("height",l),B.viewBox=(v=[u.left,u.top,b,w]).join(" "),{attributes:B,viewBox:v,body:g}),F=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=C.get(r)||0,C.set(r,o+1),o?`${r}${o}`:r),s=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+i+"$3")}),t=t.replace(RegExp(i,"g"),"")}(_.body),{..._.attributes,...r});return(0,i.jZ)(F,(0,i.zj)())},"getIconSVG")},91865(t,e,r){var i=r(86827),o=(0,i.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"),a={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},s={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function n(t,e){if(void 0===t||void 0===e)return{angle:0,deltaX:0,deltaY:0};t=l(t),e=l(e);let[r,i]=[t.x,t.y],[o,a]=[e.x,e.y],s=o-r,n=a-i;return{angle:Math.atan(n/s),deltaX:s,deltaY:n}}(0,i.K)(n,"calculateDeltaAndAngle");var l=(0,i.K)(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),h=(0,i.K)(t=>({x:(0,i.K)(function(e,r,i){let o=0,s=l(i[0]).x<l(i[i.length-1]).x?"left":"right";if(0===r&&Object.hasOwn(a,t.arrowTypeStart)){let{angle:e,deltaX:r}=n(i[0],i[1]);o=a[t.arrowTypeStart]*Math.cos(e)*(r>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(a,t.arrowTypeEnd)){let{angle:e,deltaX:r}=n(i[i.length-1],i[i.length-2]);o=a[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}let h=Math.abs(l(e).x-l(i[i.length-1]).x),c=Math.abs(l(e).y-l(i[i.length-1]).y),d=Math.abs(l(e).x-l(i[0]).x),u=Math.abs(l(e).y-l(i[0]).y),p=a[t.arrowTypeStart],g=a[t.arrowTypeEnd];if(h<g&&h>0&&c<g){let t=g+1-h;t*="right"===s?-1:1,o-=t}if(d<p&&d>0&&u<p){let t=p+1-d;t*="right"===s?-1:1,o+=t}return l(e).x+o},"x"),y:(0,i.K)(function(e,r,i){let o=0,s=l(i[0]).y<l(i[i.length-1]).y?"down":"up";if(0===r&&Object.hasOwn(a,t.arrowTypeStart)){let{angle:e,deltaY:r}=n(i[0],i[1]);o=a[t.arrowTypeStart]*Math.abs(Math.sin(e))*(r>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(a,t.arrowTypeEnd)){let{angle:e,deltaY:r}=n(i[i.length-1],i[i.length-2]);o=a[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}let h=Math.abs(l(e).y-l(i[i.length-1]).y),c=Math.abs(l(e).x-l(i[i.length-1]).x),d=Math.abs(l(e).y-l(i[0]).y),u=Math.abs(l(e).x-l(i[0]).x),p=a[t.arrowTypeStart],g=a[t.arrowTypeEnd];if(h<g&&h>0&&c<g){let t=g+1-h;t*="up"===s?-1:1,o-=t}if(d<p&&d>0&&u<p){let t=p+1-d;t*="up"===s?-1:1,o+=t}return l(e).y+o},"y")}),"getLineFunctionsWithOffset");r.d(e,{Nq:()=>s,RI:()=>h,Wg:()=>o,hq:()=>a})},9290(t,e,r){var i=r(9636),o=r(14782),a=r(91865),s=r(6129),n=r(23656),l=r(24692),h=r(64183),c=r(31293),d=r(86827),u=r(74045),p=r(52274),g=(0,d.K)((t,e,r,i,o,a=!1,s)=>{e.arrowTypeStart&&m(t,"start",e.arrowTypeStart,r,i,o,a,s),e.arrowTypeEnd&&m(t,"end",e.arrowTypeEnd,r,i,o,a,s)},"addEdgeMarkers"),f={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},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}},y=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],m=(0,d.K)((t,e,r,i,o,a,s=!1,n)=>{let l=f[r],h=l&&y.includes(l.type);if(!l)return void c.R.warn(`Unknown arrow type: ${r}`);let d=l.type,u=`${o}_${a}-${d}${"start"===e?"Start":"End"}${s&&h?"-margin":""}`;if(n&&""!==n.trim()){let r=n.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",n),l.fill&&t.setAttribute("fill",n)}),t.parentNode?.appendChild(e)}}t.attr(`marker-${e}`,`url(${i}#${o})`)}else t.attr(`marker-${e}`,`url(${i}#${u})`)},"addEdgeMarker"),C=(0,d.K)(t=>"string"==typeof t?t:(0,h.D7)()?.flowchart?.curve,"resolveEdgeCurveType"),x=new Map,k=new Map,b=(0,d.K)(()=>{x.clear(),k.clear()},"clear"),w=(0,d.K)(t=>t?"string"==typeof t?t:t.reduce((t,e)=>t+";"+e,""):"","getLabelStyles"),T=(0,d.K)(async(t,e)=>{let r,s=(0,h.D7)(),l=(0,h.E)(s),{labelStyles:d}=(0,o.GX)(e);e.labelStyle=d;let p=t.insert("g").attr("class","edgeLabel"),g=p.insert("g").attr("class","label").attr("data-id",e.id),f="markdown"===e.labelType,y=await (0,n.G)(t,e.label,{style:w(e.labelStyle),useHtmlLabels:l,addSvgBackground:!0,isNode:!1,markdown:f,width:void 0},s);g.node().appendChild(y),c.R.info("abc82",e,e.labelType);let m=y.getBBox(),C=m;if(l){let t=y.children[0],e=(0,u.Ltv)(y);C=m=t.getBoundingClientRect(),e.attr("width",m.width),e.attr("height",m.height)}else{let t=(0,u.Ltv)(y).select("text").node();t&&"function"==typeof t.getBBox&&(C=t.getBBox())}if(g.attr("transform",(0,a.Wg)(C,l)),x.set(e.id,p),e.width=m.width,e.height=m.height,e.startLabelLeft){let o=t.insert("g").attr("class","edgeTerminals"),s=o.insert("g").attr("class","inner"),n=await (0,i.DA)(s,e.startLabelLeft,w(e.labelStyle)||"",!1,!1);r=n;let h=n.getBBox();if(l){let t=n.children[0],e=(0,u.Ltv)(n);h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}s.attr("transform",(0,a.Wg)(h,l)),k.get(e.id)||k.set(e.id,{}),k.get(e.id).startLeft=o,B(r,e.startLabelLeft)}if(e.startLabelRight){let o=t.insert("g").attr("class","edgeTerminals"),s=o.insert("g").attr("class","inner"),n=await (0,i.DA)(s,e.startLabelRight,w(e.labelStyle)||"",!1,!1);r=n;let h=n.getBBox();if(l){let t=n.children[0],e=(0,u.Ltv)(n);h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}s.attr("transform",(0,a.Wg)(h,l)),k.get(e.id)||k.set(e.id,{}),k.get(e.id).startRight=o,B(r,e.startLabelRight)}if(e.endLabelLeft){let o=t.insert("g").attr("class","edgeTerminals"),s=o.insert("g").attr("class","inner"),n=await (0,i.DA)(o,e.endLabelLeft,w(e.labelStyle)||"",!1,!1);r=n;let h=n.getBBox();if(l){let t=n.children[0],e=(0,u.Ltv)(n);h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}s.attr("transform",(0,a.Wg)(h,l)),k.get(e.id)||k.set(e.id,{}),k.get(e.id).endLeft=o,B(r,e.endLabelLeft)}if(e.endLabelRight){let o=t.insert("g").attr("class","edgeTerminals"),s=o.insert("g").attr("class","inner"),n=await (0,i.DA)(o,e.endLabelRight,w(e.labelStyle)||"",!1,!1);r=n;let h=n.getBBox();if(l){let t=n.children[0],e=(0,u.Ltv)(n);h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}s.attr("transform",(0,a.Wg)(h,l)),k.get(e.id)||k.set(e.id,{}),k.get(e.id).endRight=o,B(r,e.endLabelRight)}return y},"insertEdgeLabel");function B(t,e){(0,h.E)((0,h.D7)())&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}(0,d.K)(B,"setTerminalWidth");var S=(0,d.K)((t,e)=>{c.R.debug("Moving label abc88 ",t.id,t.label,x.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath,i=(0,h.D7)(),{subGraphTitleTotalMargin:o}=(0,s.O)(i);if(t.label){let i=x.get(t.id),a=t.x,s=t.y;if(r){let i=l._K.calcLabelPosition(r);c.R.debug("Moving label "+t.label+" from (",a,",",s,") to (",i.x,",",i.y,") abc88"),e.updatedPath&&(a=i.x,s=i.y)}i.attr("transform",`translate(${a}, ${s+o/2})`)}if(t.startLabelLeft){let e=k.get(t.id).startLeft,i=t.x,o=t.y;if(r){let e=l._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=k.get(t.id).startRight,i=t.x,o=t.y;if(r){let e=l._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=k.get(t.id).endLeft,i=t.x,o=t.y;if(r){let e=l._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=k.get(t.id).endRight,i=t.x,o=t.y;if(r){let e=l._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_right",r);i=e.x,o=e.y}e.attr("transform",`translate(${i}, ${o})`)}},"positionEdgeLabel"),v=(0,d.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"),_=(0,d.K)((t,e)=>{let r=t.x,i=t.y,o=Math.abs(e.x-r),a=Math.abs(e.y-i),s=t.width/2,n=t.height/2;return o>=s||a>=n},"outsideNode"),F=(0,d.K)((t,e,r)=>{c.R.debug(`intersection calc abc89:
|
|
2
2
|
outsidePoint: ${JSON.stringify(e)}
|
|
3
3
|
insidePoint : ${JSON.stringify(r)}
|
|
4
4
|
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),s=t.width/2,n=r.x<e.x?s-a:s+a,l=t.height/2,h=Math.abs(e.y-r.y),d=Math.abs(e.x-r.x);if(Math.abs(o-e.y)*s>Math.abs(i-e.x)*l){let t=r.y<e.y?e.y-l-o:o-l-e.y;n=d*t/h;let i={x:r.x<e.x?r.x+n:r.x-d+n,y:r.y<e.y?r.y+h-t:r.y-h+t};return 0===n&&(i.x=e.x,i.y=e.y),0===d&&(i.x=e.x),0===h&&(i.y=e.y),c.R.debug(`abc89 top/bottom calc, Q ${h}, q ${t}, R ${d}, r ${n}`,i),i}{let t=h*(n=r.x<e.x?e.x-s-i:i-s-e.x)/d,o=r.x<e.x?r.x+d-n:r.x-d+n,a=r.y<e.y?r.y+t:r.y-t;return c.R.debug(`sides calc abc89, Q ${h}, q ${t}, R ${d}, r ${n}`,{_x:o,_y:a}),0===n&&(o=e.x,a=e.y),0===d&&(o=e.x),0===h&&(a=e.y),{x:o,y:a}}},"intersection"),L=(0,d.K)((t,e)=>{c.R.warn("abc88 cutPathAtIntersect",t,e);let r=[],i=t[0],o=!1;return t.forEach(t=>{if(c.R.info("abc88 checking point",t,e),_(e,t)||o)c.R.warn("abc88 outside",t,i),i=t,o||r.push(t);else{let a=F(e,i,t);c.R.debug("abc88 inside",t,i,a),c.R.debug("abc88 intersection",a,e);let s=!1;r.forEach(t=>{s=s||t.x===a.x&&t.y===a.y}),r.some(t=>t.x===a.x&&t.y===a.y)?c.R.warn("abc88 no intersect",a,r):r.push(a),o=!0}}),c.R.debug("returning points",r),r},"cutPathAtIntersect");function A(t){let e=[],r=[];for(let i=1;i<t.length-1;i++){let o=t[i-1],a=t[i],s=t[i+1];o.x===a.x&&a.y===s.y&&Math.abs(a.x-s.x)>5&&Math.abs(a.y-o.y)>5?(e.push(a),r.push(i)):o.y===a.y&&a.x===s.x&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-s.y)>5&&(e.push(a),r.push(i))}return{cornerPoints:e,cornerPointPositions:r}}(0,d.K)(A,"extractCornerPoints");var M=(0,d.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"),$=(0,d.K)(function(t){let{cornerPointPositions:e}=A(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],s=M(e,a,5),n=M(o,a,5),l=n.x-s.x,h=n.y-s.y;r.push(s);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?(c.R.debug("Corner point fixing",Math.abs(o.x-e.x),Math.abs(o.y-e.y)),u=a.x===s.x?{x:l<0?s.x-5+d:s.x+5-d,y:h<0?s.y-d:s.y+d}:{x:l<0?s.x-d:s.x+d,y:h<0?s.y-5+d:s.y+5-d}):c.R.debug("Corner point skipping fixing",Math.abs(o.x-e.x),Math.abs(o.y-e.y)),r.push(u,n)}else r.push(t[i]);return r},"fixCorners"),E=(0,d.K)((t,e,r)=>{let i=Array(Math.floor((t-e-r)/4)).fill("2 2").join(" ");return`0 ${e} ${i} ${r}`},"generateDashArray"),O=(0,d.K)(function(t,e,r,i,s,n,d,f=!1){let y,m;if(!d)throw Error(`insertEdge: missing diagramId for edge "${e.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:x,layout:k}=(0,h.D7)(),b=e.points,w=!1,T=[];for(let t in e.cssCompiledStyles)(0,o.KX)(t)||T.push(e.cssCompiledStyles[t]);if("swimlane"===k){if(n.intersect&&s.intersect&&Array.isArray(b)&&b.length>=2)if(2===b.length)b=[s.intersect(b[0]),n.intersect(b[1])];else{let t=b.slice(1,-1),e=t[0],r=t[t.length-1],i=.5>Math.abs(b[b.length-1].x-r.x)&&.5>Math.abs(b[b.length-1].y-r.y),o=s.intersect(e),a=i?r:n.intersect(r),l=.5>Math.abs(a.x-r.x)&&.5>Math.abs(a.y-r.y);b=[....5>Math.abs(o.x-e.x)&&.5>Math.abs(o.y-e.y)?[]:[o],...t,...l?[]:[a]]}b=v(e,b)}else n.intersect&&s.intersect&&!f&&((b=b.slice(1,e.points.length-1)).unshift(s.intersect(b[0])),b.push(n.intersect(b[b.length-1])));let B=btoa(JSON.stringify(b));e.toCluster&&(c.R.info("to cluster abc88",r.get(e.toCluster)),b=L(e.points,r.get(e.toCluster).node),w=!0),e.fromCluster&&(c.R.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(b,null,2)),b=L(b.reverse(),r.get(e.fromCluster).node).reverse(),w=!0);let S=b.filter(t=>!Number.isNaN(t.y)),_=C(e.curve);"rounded"!==_&&(S=$(S));let F=u.lUB;switch(_){case"linear":case"rounded":F=u.lUB;break;case"basis":default:F=u.qrM;break;case"cardinal":F=u.y8u;break;case"bumpX":F=u.Wi0;break;case"bumpY":F=u.PGM;break;case"catmullRom":F=u.oDi;break;case"monotoneX":F=u.nVG;break;case"monotoneY":F=u.uxU;break;case"natural":F=u.Xf2;break;case"step":F=u.GZz;break;case"stepAfter":F=u.UPb;break;case"stepBefore":F=u.dyv}let{x:A,y:M}=(0,a.RI)(e),O=(0,u.n8j)().x(A).y(M).curve(F);switch(e.thickness){case"normal":default:y="edge-thickness-normal";break;case"thick":y="edge-thickness-thick";break;case"invisible":y="edge-thickness-invisible"}switch(e.pattern){case"solid":default:y+=" edge-pattern-solid";break;case"dotted":y+=" edge-pattern-dotted";break;case"dashed":y+=" edge-pattern-dashed"}let q="rounded"===_?D(I(S,e),5):O(S),K=Array.isArray(e.style)?e.style:[e.style],R=K.find(t=>t?.startsWith("stroke:")),P="";e.animate&&(P="edge-animation-fast"),e.animation&&(P="edge-animation-"+e.animation);let z=!1;if("handDrawn"===e.look){let r=p.A.svg(t);Object.assign([],S);let i=r.path(q,{roughness:.3,seed:x});y+=" transition";let o=(m=(0,u.Ltv)(i).select("path").attr("id",`${d}-${e.id}`).attr("class"," "+y+(e.classes?" "+e.classes:"")+(P?" "+P:"")).attr("style",K?K.reduce((t,e)=>t+";"+e,""):"")).attr("d");m.attr("d",o),t.node().appendChild(m.node())}else{let r=T.join(";"),i=K?K.reduce((t,e)=>t+e+";",""):"",o=(r?r+";"+i+";":i)+";"+(K?K.reduce((t,e)=>t+";"+e,""):"");m=t.append("path").attr("d",q).attr("id",`${d}-${e.id}`).attr("class"," "+y+(e.classes?" "+e.classes:"")+(P?" "+P:"")).attr("style",o),R=o.match(/stroke:([^;]+)/)?.[1],z=!0===e.animate||!!e.animation||r.includes("animation");let s=m.node(),n="function"==typeof s.getTotalLength?s.getTotalLength():0,l=a.Nq[e.arrowTypeStart]||0,h=a.Nq[e.arrowTypeEnd]||0;if("neo"===e.look&&!z){let t="dotted"===e.pattern||"dashed"===e.pattern?E(n,l,h):`0 ${l} ${n-l-h} ${h}`,r=`stroke-dasharray: ${t}; stroke-dashoffset: 0;`;m.attr("style",r+m.attr("style"))}}m.attr("data-edge",!0),m.attr("data-et","edge"),m.attr("data-id",e.id),m.attr("data-points",B),m.attr("data-look",(0,l.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 W="";((0,h.D7)().flowchart.arrowMarkerAbsolute||(0,h.D7)().state.arrowMarkerAbsolute)&&(W=(W=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)")),c.R.info("arrowTypeStart",e.arrowTypeStart),c.R.info("arrowTypeEnd",e.arrowTypeEnd);let j=!z&&e?.look==="neo";g(m,e,W,d,i,j,R);let N=Math.floor(b.length/2),H=b[N];l._K.isLabelCoordinateInPath(H,m.attr("d"))||(w=!0);let U={};return w&&(U.updatedPath=b),U.originalPath=e.points,U},"insertEdge");function D(t,e){if(t.length<2)return"";let r="",i=t.length;for(let o=0;o<i;o++){let a=t[o],s=t[o-1],n=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-s.x,i=a.y-s.y,o=n.x-a.x,l=n.y-a.y,h=Math.hypot(t,i),c=Math.hypot(o,l);if(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,C=a.y-u*y,x=a.x+p*y,k=a.y+g*y;r+=`L${m},${C}Q${a.x},${a.y} ${x},${k}`}}return r}function q(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 I(t,e){let r=t.map(t=>({...t}));if(t.length>=2&&a.hq[e.arrowTypeStart]){let i=a.hq[e.arrowTypeStart],o=t[0],{angle:s}=q(o,t[1]),n=i*Math.cos(s),l=i*Math.sin(s);r[0].x=o.x+n,r[0].y=o.y+l}let i=t.length;if(i>=2&&a.hq[e.arrowTypeEnd]){let o=a.hq[e.arrowTypeEnd],s=t[i-1],{angle:n}=q(t[i-2],s),l=o*Math.cos(n),h=o*Math.sin(n);r[i-1].x=s.x-l,r[i-1].y=s.y-h}return r}(0,d.K)(D,"generateRoundedPath"),(0,d.K)(q,"calculateDeltaAndAngle"),(0,d.K)(I,"applyMarkerOffsetsToPoints");var K=(0,d.K)((t,e,r,i)=>{e.forEach(e=>{ta[e](t,r,i)})},"insertMarkers"),R=(0,d.K)((t,e,r)=>{c.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").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"),P=(0,d.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").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").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"),z=(0,d.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").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").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"),W=(0,d.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").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").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"),j=(0,d.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").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").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"),N=(0,d.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("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),H=(0,d.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"),U=(0,d.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"),Y=(0,d.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"),X=(0,d.K)((t,e,r)=>{let{themeVariables:i}=(0,h.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"),G=(0,d.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"),V=(0,d.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"),Z=(0,d.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"),Q=(0,d.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"),J=(0,d.K)((t,e,r)=>{let{themeVariables:i}=(0,h.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"),tt=(0,d.K)((t,e,r)=>{let{themeVariables:i}=(0,h.zj)(),{strokeWidth:o,mainBkg:a}=i,s=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");s.append("circle").attr("fill",a??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${o}`).attr("r",6),s.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${o}`);let n=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");n.append("circle").attr("fill",a??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${o}`).attr("r",6),n.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${o}`)},"zero_or_one_neo"),te=(0,d.K)((t,e,r)=>{let{themeVariables:i}=(0,h.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"),tr=(0,d.K)((t,e,r)=>{let{themeVariables:i}=(0,h.zj)(),{strokeWidth:o,mainBkg:a}=i,s=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");s.append("circle").attr("fill",a??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${o}`),s.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${o}`);let n=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");n.append("circle").attr("fill",a??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${o}`),n.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${o}`)},"zero_or_more_neo"),ti=(0,d.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
|
|
@@ -128,8 +128,8 @@ export const __rspack_esm_id=4975;export const __rspack_esm_ids=[4975];export co
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
${e}
|
|
131
|
-
`},"getStyles"),t8=(0,s.K)((t,e)=>{void 0!==e&&(t3[t]=e)},"addStylesForDiagram"),t7=t6,t9={};(0,s.V)(t9,{clear:()=>eo,getAccDescription:()=>el,getAccTitle:()=>es,getDiagramTitle:()=>ec,setAccDescription:()=>en,setAccTitle:()=>ea,setDiagramTitle:()=>eh});var et="",ee="",er="",ei=(0,s.K)(t=>tO(t,th()),"sanitizeText"),eo=(0,s.K)(()=>{et="",er="",ee=""},"clear"),ea=(0,s.K)(t=>{et=ei(t).replace(/^\s+/g,"")},"setAccTitle"),es=(0,s.K)(()=>et,"getAccTitle"),en=(0,s.K)(t=>{er=ei(t).replace(/\n\s+/g,"\n")},"setAccDescription"),el=(0,s.K)(()=>er,"getAccDescription"),eh=(0,s.K)(t=>{ee=ei(t)},"setDiagramTitle"),ec=(0,s.K)(()=>ee,"getDiagramTitle"),ed=a.R,eu=a.H,ep=th,eg=tl,ef=Q,ey=(0,s.K)(t=>tO(t,ep()),"sanitizeText"),em=t5,eC=(0,s.K)(()=>t9,"getCommonDb"),ex={},ek=(0,s.K)((t,e,r)=>{ex[t]&&ed.warn(`Diagram with id ${t} already registered. Overwriting.`),ex[t]=e,r&&tv(t,r),t8(t,e.styles),e.injectUtils?.(ed,eu,ep,ey,em,eC(),()=>{})},"registerDiagram"),eb=(0,s.K)(t=>{if(t in ex)return ex[t];throw new ew(t)},"getDiagram"),ew=class extends Error{static{(0,s.K)(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}}},21570(t,e,r){var i=r(9290),o=r(9636),a=r(24692),s=r(64183),n=r(31293),l=r(86827),h={common:s.Y2,getConfig:s.zj,insertCluster:o.U,insertEdge:i.Jo,insertEdgeLabel:i.jP,insertMarkers:i.g0,insertNode:o.on,interpolateToCurve:a.Ib,labelHelper:o.Zk,log:n.R,positionEdgeLabel:i.T_},c={},d=(0,l.K)(t=>{for(let e of t)c[e.name]=e},"registerLayoutLoaders");(0,l.K)(()=>{d([{name:"dagre",loader:(0,l.K)(async()=>await Promise.all([r.e(5250),r.e(7048),r.e(3088),r.e(7101),r.e(8941)]).then(r.bind(r,40124)),"loader")},{name:"swimlane",loader:(0,l.K)(async()=>await Promise.all([r.e(5250),r.e(7048),r.e(7101),r.e(2632)]).then(r.bind(r,99307)),"loader")},{name:"cose-bilkent",loader:(0,l.K)(async()=>await Promise.all([r.e(4950),r.e(8645)]).then(r.bind(r,2180)),"loader")}])},"registerDefaultLayoutLoaders")();var u=(0,l.K)(async(t,e,r)=>{if(!(t.layoutAlgorithm in c))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 i=c[t.layoutAlgorithm],o=await i.loader(),{theme:a,themeVariables:s}=t.config,{useGradient:n,gradientStart:l,gradientStop:d}=s,u=e.attr("id");if(e.append("defs").append("filter").attr("id",`${u}-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",`${a?.includes("dark")?"#FFFFFF":"#000000"}`),e.append("defs").append("filter").attr("id",`${u}-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",`${a?.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",l).attr("stop-opacity",1),t.append("svg:stop").attr("offset","100%").attr("stop-color",d).attr("stop-opacity",1)}return o.render(t,e,h,{algorithm:i.algorithm},r)},"render"),p=(0,l.K)((t="",{fallback:e="dagre"}={})=>{if(t in c)return t;if(e in c)return n.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");r.d(e,{XX:()=>u,q7:()=>p,sO:()=>d})},24692(t,e,r){r.d(e,{pe:()=>S,PX:()=>J,ru:()=>Z,Un:()=>Q,$t:()=>ta,Sm:()=>tl,C4:()=>tn,$C:()=>N,rY:()=>th,sM:()=>W,KL:()=>tc,Ib:()=>$,dq:()=>tr,I5:()=>to,yT:()=>U,vU:()=>A,_K:()=>ts,bH:()=>G});var i,o=r(64183),a=r(31293),s=r(86827),n=r(16750),l=r(
|
|
132
|
-
`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),a.R.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);let s=[];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;s.push({type:t,args:e})}if(0===s.length)return{type:t,args:null};return 1===s.length?s[0]:s}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"),A=(0,s.K)(function(t){return t.replace(o.DB,"")},"removeDirectives"),M=(0,s.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?v[`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,n.J)(r):r}(0,s.K)($,"interpolateToCurve"),(0,s.K)(E,"formatUrl");var O=(0,s.K)((t,...e)=>{let r=t.split("."),i=r.length-1,o=r[i],s=window;for(let e=0;e<i;e++)if(!(s=s[r[e]]))return void a.R.error(`Function name: ${t} not found in window`);s[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 q(t){let e,r=0;return t.forEach(t=>{r+=D(t,e),e=t}),R(t,r/2)}function I(t){return 1===t.length?t[0]:q(t)}(0,s.K)(D,"distance"),(0,s.K)(q,"traverseEdge"),(0,s.K)(I,"calcLabelPosition");var K=(0,s.K)((t,e=2)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),R=(0,s.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:K((1-o)*r.x+o*e.x,5),y:K((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,s.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,s=Math.atan2(e[0].y-i.y,e[0].x-i.x),n={x:0,y:0};return n.x=Math.sin(s)*o+(e[0].x+i.x)/2,n.y=-Math.cos(s)*o+(e[0].y+i.y)/2,n},"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),s=10+.5*t,n=Math.atan2(i[0].y-o.y,i[0].x-o.x),l={x:0,y:0};return"start_left"===e?(l.x=Math.sin(n+Math.PI)*s+(i[0].x+o.x)/2,l.y=-Math.cos(n+Math.PI)*s+(i[0].y+o.y)/2):"end_right"===e?(l.x=Math.sin(n-Math.PI)*s+(i[0].x+o.x)/2-5,l.y=-Math.cos(n-Math.PI)*s+(i[0].y+o.y)/2-5):"end_left"===e?(l.x=Math.sin(n)*s+(i[0].x+o.x)/2-5,l.y=-Math.cos(n)*s+(i[0].y+o.y)/2-5):(l.x=Math.sin(n)*s+(i[0].x+o.x)/2,l.y=-Math.cos(n)*s+(i[0].y+o.y)/2),l}function W(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,s.K)(z,"calcTerminalLabelPosition"),(0,s.K)(W,"getStylesFromArray");var j=0,N=(0,s.K)(()=>(j++,"id-"+Math.random().toString(36).substr(2,12)+"-"+j),"generateId");function H(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,s.K)(H,"makeRandomHex");var U=(0,s.K)(t=>H(t.length),"random"),Y=(0,s.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"),X=(0,s.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 s=a.append("tspan");return s.attr("x",e.x+2*e.textMargin),s.attr("fill",e.fill),s.text(r),a},"drawSimpleText"),G=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=[],s="";return i.forEach((t,o)=>{let n=Q(`${t} `,r),l=Q(s,r);if(n>e){let{hyphenatedStrings:i,remainingWord:o}=V(t,e,"-",r);a.push(s,...i),s=o}else l+n>=e?(a.push(s),s=t):s=[s,t].filter(Boolean).join(" ");o+1===i.length&&a.push(s)}),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=[],s="";return o.forEach((t,n)=>{let l=`${s}${t}`;if(Q(l,i)>=e){let t=o.length===n+1,e=`${l}${r}`;a.push(t?l:e),s=""}else s=l}),{hyphenatedStrings:a,remainingWord:s}},(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,s.K)(Z,"calculateTextHeight"),(0,s.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[,s]=to(r),n=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 n){let o=Y();o.text=i||S;let n=X(d,o).style("font-size",s).style("font-weight",a).style("font-family",t),l=(n._groups||n)[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,s.K)(this,"InitIDGenerator")}},te=(0,s.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,s.K)(tr,"isDetailedError");var ti=(0,s.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,s.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++)r[t]=r[t]??void 0}let a=[...Object.keys(r),...p(r)];for(let n=0;n<a.length;n++){let l=a[n];if("__proto__"===l)continue;let h=r[l],c=e[l];if((0,b.N)(h)&&(h={...h}),(0,b.N)(c)&&(c={...c}),(0,g.P)(h)&&(h=k(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 s;if(w(s=c)&&(0,T.X)(s)){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]=k(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,s.K)(ta,"cleanAndMerge");var ts={assignWithDepth:o.hH,wrapLabel:G,calculateTextHeight:Z,calculateTextWidth:Q,calculateTextDimensions:J,cleanAndMerge:ta,detectInit:F,detectDirective:L,isSubstringInArray:M,interpolateToCurve:$,calcLabelPosition:I,calcCardinalityPosition:P,calcTerminalLabelPosition:z,formatUrl:E,getStylesFromArray:W,generateId:N,random:U,runFunc:O,entityDecode:te,insertTitle:ti,isLabelCoordinateInPath:td,parseFontSize:to,InitIDGenerator:tt},tn=(0,s.K)(function(t){let e=t;return(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)?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"})},"encodeEntities"),tl=(0,s.K)(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),th=(0,s.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,s.K)(tc,"handleUndefinedAttr"),(0,s.K)(td,"isLabelCoordinateInPath")},9636(t,e,r){var i=r(14782),o=r(6129),a=r(23656),s=r(15198),n=r(24692),l=r(64183),h=r(31293),c=r(86827),d=r(8141),u=r(52274),p=(0,c.K)(async(t,e,r)=>{let i,s=e.useHtmlLabels||(0,l._3)((0,l.D7)()?.htmlLabels),h=t.insert("g").attr("class",r||"node default").attr("id",e.domId||e.id),c=h.insert("g").attr("class","label").attr("style",(0,n.KL)(e.labelStyle));i=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];let u=!!e.icon||!!e.img,p="markdown"===e.labelType,g=await (0,a.G)(c,(0,l.jZ)((0,n.Sm)(i),(0,l.D7)()),{useHtmlLabels:s,width:e.width||(0,l.D7)().flowchart?.wrappingWidth,classes:p?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:u,markdown:p},(0,l.D7)()),f=g.getBBox(),y=(e?.padding??0)/2;if(s){let t=g.children[0],e=(0,d.Ltv)(g);await (0,o.X)(t,i),f=t.getBoundingClientRect(),e.attr("width",f.width),e.attr("height",f.height)}return s?c.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):c.attr("transform","translate(0, "+-f.height/2+")"),e.centerLabel&&c.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),c.insert("rect",":first-child"),{shapeSvg:h,bbox:f,halfPadding:y,label:c}},"labelHelper"),g=(0,c.K)(async(t,e,r)=>{let i=r.useHtmlLabels??(0,l.E)((0,l.D7)()),o=t.insert("g").attr("class","label").attr("style",r.labelStyle||""),s=await (0,a.G)(o,(0,l.jZ)((0,n.Sm)(e),(0,l.D7)()),{useHtmlLabels:i,width:r.width||(0,l.D7)()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img}),h=s.getBBox(),c=r.padding/2;if((0,l.E)((0,l.D7)())){let t=s.children[0],e=(0,d.Ltv)(s);h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}return i?o.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):o.attr("transform","translate(0, "+-h.height/2+")"),r.centerLabel&&o.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:t,bbox:h,halfPadding:c,label:o}},"insertLabel"),f=(0,c.K)((t,e)=>{let r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds"),y=(0,c.K)((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function m(t){let e=t.map((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`);return e.push("Z"),e.join(" ")}function C(t,e,r,i,o,a){let s=[],n=r-t,l=2*Math.PI/(n/a),h=e+(i-e)/2;for(let e=0;e<=50;e++){let r=t+e/50*n,i=h+o*Math.sin(l*(r-t));s.push({x:r,y:i})}return s}function x(t,e,r,i,o,a){let s=[],n=o*Math.PI/180,l=(a*Math.PI/180-n)/(i-1);for(let o=0;o<i;o++){let i=n+o*l,a=t+r*Math.cos(i),h=e+r*Math.sin(i);s.push({x:-a,y:-h})}return s}function k(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")),s=(0,c.K)((t,e)=>t?.getAttribute(e)??void 0,"getAttr");o&&Object.entries({fill:s(o,"fill"),"fill-opacity":s(o,"fill-opacity")??"1"}).forEach(([t,e])=>{e&&r.setAttribute(t,e)}),a&&Object.entries({stroke:s(a,"stroke"),"stroke-width":s(a,"stroke-width")??"1","stroke-opacity":s(a,"stroke-opacity")??"1"}).forEach(([t,e])=>{e&&r.setAttribute(t,e)});let n=document.createElementNS("http://www.w3.org/2000/svg","g");return n.appendChild(r),n}(0,c.K)(m,"createPathFromPoints"),(0,c.K)(C,"generateFullSineWavePoints"),(0,c.K)(x,"generateCirclePoints"),(0,c.K)(k,"mergePaths");var b=(0,c.K)((t,e)=>{var r,i,o=t.x,a=t.y,s=e.x-o,n=e.y-a,l=t.width/2,h=t.height/2;return Math.abs(n)*l>Math.abs(s)*h?(n<0&&(h=-h),r=0===n?0:h*s/n,i=h):(s<0&&(l=-l),r=l,i=0===s?0:l*n/s),{x:o+r,y:a+i}},"intersectRect"),w=(0,c.K)(async(t,e,r,i=!1,o=!1)=>{let s=e||"";"object"==typeof s&&(s=s[0]);let n=(0,l.D7)(),h=(0,l.E)(n);return await (0,a.G)(t,s,{style:r,isTitle:i,useHtmlLabels:h,markdown:!1,isNode:o,width:1/0},n)},"createLabel"),T=(0,c.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"),B=(0,c.K)(async(t,e)=>{let r,o,s=(0,l.D7)(),{themeVariables:n,handDrawnSeed:c}=s,{clusterBkg:p,clusterBorder:g}=n,{labelStyles:f,nodeStyles:y,borderStyles:m,backgroundStyles:C}=(0,i.GX)(e),x=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,l._3)(s.flowchart.htmlLabels),w="LR"===e.direction,T=x.insert("g").attr("class","cluster-label swimlane-label"),B=await (0,a.G)(T,e.label,{style:e.labelStyle,useHtmlLabels:k,isNode:!0,width:e.width}),S=B.getBBox();if(k){let t=B.children[0],e=(0,d.Ltv)(B);S=t.getBoundingClientRect(),e.attr("width",S.width),e.attr("height",S.height)}let v=e.padding??0,_=e.width<=S.width+v?S.width+v:e.width;e.width<=S.width+v?e.diff=(_-e.width)/2-v:e.diff=-v;let F=e.height,L=e.y-F/2,A=e.y+F/2,M=e.x-_/2,$=void 0!==e.swimlaneContentTop?e.swimlaneContentTop:L+F/3,E=4*!!w,O=S.height+2*E;if(w){let t=Math.max(O,S.height+2*E),a=M+t,s=Math.max(0,_-t);if("handDrawn"===e.look){let n=u.A.svg(x),l=(0,i.Fr)(e,{roughness:.7,fill:p,stroke:g,fillWeight:3,seed:c}),h=(0,i.Fr)(e,{roughness:.7,fill:"none",stroke:g,seed:c}),d=n.rectangle(M,L,t,F,l);r=x.insert(()=>d,":first-child");let f=n.rectangle(a,L,s,F,h);o=x.insert(()=>f,":first-child"),r.select("path:nth-child(2)").attr("style",m.join(";")),r.select("path").attr("style",C.join(";").replace("fill","stroke"))}else r=x.insert("rect",":first-child"),o=x.insert("rect",":first-child"),r.attr("class","swimlane-title").attr("style",y).attr("x",M).attr("y",L).attr("width",t).attr("height",F).attr("fill",p).attr("stroke",g),o.attr("class","swimlane-body").attr("style",y).attr("x",a).attr("y",L).attr("width",s).attr("height",F).attr("fill","none").attr("stroke",g);let n=M+t/2,l=e.y;T.attr("transform",`translate(${n}, ${l}) rotate(-90) translate(${-S.width/2}, ${-S.height/2})`)}else{let t=Math.min(O,Math.max(0,$-L)),a=L+t,s=Math.max(0,A-a),n=e.x-_/2;if("handDrawn"===e.look){let l=u.A.svg(x),h=(0,i.Fr)(e,{roughness:.7,fill:p,stroke:g,fillWeight:3,seed:c}),d=(0,i.Fr)(e,{roughness:.7,fill:"none",stroke:g,seed:c}),f=l.rectangle(n,L,_,t,h);r=x.insert(()=>f,":first-child");let y=l.rectangle(n,a,_,s,d);o=x.insert(()=>y,":first-child"),r.select("path:nth-child(2)").attr("style",m.join(";")),r.select("path").attr("style",C.join(";").replace("fill","stroke"))}else r=x.insert("rect",":first-child"),o=x.insert("rect",":first-child"),r.attr("class","swimlane-title").attr("style",y).attr("x",n).attr("y",L).attr("width",_).attr("height",t).attr("fill",p).attr("stroke",g),o.attr("class","swimlane-body").attr("style",y).attr("x",n).attr("y",a).attr("width",_).attr("height",s).attr("fill","none").attr("stroke",g);let l=e.x-S.width/2,h=L+(t-S.height)/2;T.attr("transform",`translate(${l}, ${h})`)}if(h.R.trace("Swimlane data ",e,JSON.stringify(e)),f){let t=T.select("span");t&&t.attr("style",f)}return e.offsetX=0,e.width=_,e.height=F,e.offsetY=S.height-v/2,e.intersect=function(t){return b(e,t)},{cluster:x,labelBBox:S}},"swimlane"),S=(0,c.K)(async(t,e)=>{let r,s;h.R.info("Creating subgraph rect for ",e.id,e);let n=(0,l.D7)(),{themeVariables:c,handDrawnSeed:p}=n,{clusterBkg:g,clusterBorder:f}=c,{labelStyles:y,nodeStyles:m,borderStyles:C,backgroundStyles:x}=(0,i.GX)(e),k=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),B=(0,l.E)(n),S=k.insert("g").attr("class","cluster-label "),v=(r="markdown"===e.labelType?await (0,a.G)(S,e.label,{style:e.labelStyle,useHtmlLabels:B,isNode:!0,width:e.width}):await w(S,e.label,e.labelStyle||"",!1,!0)).getBBox();if((0,l.E)(n)){let t=r.children[0],e=(0,d.Ltv)(r);v=t.getBoundingClientRect(),e.attr("width",v.width),e.attr("height",v.height)}let _=e.width<=v.width+e.padding?v.width+e.padding:e.width;e.width<=v.width+e.padding?e.diff=(_-e.width)/2-e.padding:e.diff=-e.padding;let F=e.height,L=e.x-_/2,A=e.y-F/2;if(h.R.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=u.A.svg(k),r=(0,i.Fr)(e,{roughness:.7,fill:g,stroke:f,fillWeight:3,seed:p}),o=t.path(T(L,A,_,F,0),r);(s=k.insert(()=>(h.R.debug("Rough node insert CXC",o),o),":first-child")).select("path:nth-child(2)").attr("style",C.join(";")),s.select("path").attr("style",x.join(";").replace("fill","stroke"))}else(s=k.insert("rect",":first-child")).attr("style",m).attr("rx",e.rx).attr("ry",e.ry).attr("x",L).attr("y",A).attr("width",_).attr("height",F);let{subGraphTitleTopMargin:M}=(0,o.O)(n);if(S.attr("transform",`translate(${e.x-v.width/2}, ${e.y-e.height/2+M})`),y){let t=S.select("span");t&&t.attr("style",y)}let $=s.node().getBBox();return e.offsetX=0,e.width=$.width,e.height=$.height,e.offsetY=v.height-e.padding/2,e.intersect=function(t){return b(e,t)},{cluster:k,labelBBox:v}},"rect"),v=(0,c.K)((t,e)=>{let r=t.insert("g").attr("class","note-cluster").attr("id",e.domId),i=r.insert("rect",":first-child"),o=0*e.padding,a=o/2;i.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2-a).attr("width",e.width+o).attr("height",e.height+o).attr("fill","none");let s=i.node().getBBox();return e.width=s.width,e.height=s.height,e.intersect=function(t){return b(e,t)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),_=(0,c.K)(async(t,e)=>{let r,i=(0,l.D7)(),{themeVariables:o,handDrawnSeed:a}=i,{altBackground:s,compositeBackground:n,compositeTitleBackground:h,nodeBorder:c}=o,p=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look),g=p.insert("g",":first-child"),f=p.insert("g").attr("class","cluster-label"),y=p.append("rect"),m=await w(f,e.label,e.labelStyle,void 0,!0),C=m.getBBox();if((0,l.E)(i)){let t=m.children[0],e=(0,d.Ltv)(m);C=t.getBoundingClientRect(),e.attr("width",C.width),e.attr("height",C.height)}let x=0*e.padding,k=(e.width<=C.width+e.padding?C.width+e.padding:e.width)+x;e.width<=C.width+e.padding?e.diff=(k-e.width)/2-e.padding:e.diff=-e.padding;let B=e.height+x,S=e.height+x-C.height-6,v=e.x-k/2,_=e.y-B/2;e.width=k;let F=e.y-e.height/2-x/2+C.height+2;if("handDrawn"===e.look){let t=e.cssClasses.includes("statediagram-cluster-alt"),i=u.A.svg(p),o=e.rx||e.ry?i.path(T(v,_,k,B,10),{roughness:.7,fill:h,fillStyle:"solid",stroke:c,seed:a}):i.rectangle(v,_,k,B,{seed:a});r=p.insert(()=>o,":first-child");let l=i.rectangle(v,F,k,S,{fill:t?s:n,fillStyle:t?"hachure":"solid",stroke:c,seed:a});r=p.insert(()=>o,":first-child"),y=p.insert(()=>l)}else(r=g.insert("rect",":first-child")).attr("class","outer").attr("x",v).attr("y",_).attr("width",k).attr("height",B).attr("data-look",e.look),y.attr("class","inner").attr("x",v).attr("y",F).attr("width",k).attr("height",S);return f.attr("transform",`translate(${e.x-C.width/2}, ${_+1-3*!(0,l.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 b(e,t)},{cluster:p,labelBBox:C}},"roundedWithTitle"),F=(0,c.K)(async(t,e)=>{let r;h.R.info("Creating subgraph rect for ",e.id,e);let s=(0,l.D7)(),{themeVariables:n,handDrawnSeed:c}=s,{clusterBkg:p,clusterBorder:g}=n,{labelStyles:f,nodeStyles:y,borderStyles:m,backgroundStyles:C}=(0,i.GX)(e),x=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),k=(0,l.E)(s),w=x.insert("g").attr("class","cluster-label "),B=await (0,a.G)(w,e.label,{style:e.labelStyle,useHtmlLabels:k,isNode:!0,width:e.width}),S=B.getBBox();if((0,l.E)(s)){let t=B.children[0],e=(0,d.Ltv)(B);S=t.getBoundingClientRect(),e.attr("width",S.width),e.attr("height",S.height)}let v=e.width<=S.width+e.padding?S.width+e.padding:e.width;e.width<=S.width+e.padding?e.diff=(v-e.width)/2-e.padding:e.diff=-e.padding;let _=e.height,F=e.x-v/2,L=e.y-_/2;if(h.R.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=u.A.svg(x),o=(0,i.Fr)(e,{roughness:.7,fill:p,stroke:g,fillWeight:4,seed:c}),a=t.path(T(F,L,v,_,e.rx),o);(r=x.insert(()=>(h.R.debug("Rough node insert CXC",a),a),":first-child")).select("path:nth-child(2)").attr("style",m.join(";")),r.select("path").attr("style",C.join(";").replace("fill","stroke"))}else(r=x.insert("rect",":first-child")).attr("style",y).attr("rx",e.rx).attr("ry",e.ry).attr("x",F).attr("y",L).attr("width",v).attr("height",_);let{subGraphTitleTopMargin:A}=(0,o.O)(s);if(w.attr("transform",`translate(${e.x-S.width/2}, ${e.y-e.height/2+A})`),f){let t=w.select("span");t&&t.attr("style",f)}let M=r.node().getBBox();return e.offsetX=0,e.width=M.width,e.height=M.height,e.offsetY=S.height-e.padding/2,e.intersect=function(t){return b(e,t)},{cluster:x,labelBBox:S}},"kanbanSection"),L={rect:S,squareRect:S,roundedWithTitle:_,noteGroup:v,divider:(0,c.K)((t,e)=>{let r,{themeVariables:i,handDrawnSeed:o}=(0,l.D7)(),{nodeBorder:a}=i,s=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look),n=s.insert("g",":first-child"),h=0*e.padding,c=e.width+h;e.diff=-e.padding;let d=e.height+h,p=e.x-c/2,g=e.y-d/2;if(e.width=c,"handDrawn"===e.look){let t=u.A.svg(s).rectangle(p,g,c,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:o});r=s.insert(()=>t,":first-child")}else{r=n.insert("rect",":first-child");let t="outer";e.look,t="divider",r.attr("class",t).attr("x",p).attr("y",g).attr("width",c).attr("height",d).attr("data-look",e.look)}return e.height=r.node().getBBox().height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return b(e,t)},{cluster:s,labelBBox:{}}},"divider"),kanbanSection:F,swimlane:B},A=new Map,M=(0,c.K)(async(t,e)=>{let r=e.shape||"rect",i=await L[r](t,e);return A.set(e.id,i),i},"insertCluster"),$=(0,c.K)(()=>{A=new Map},"clear");function E(t,e,r,i){var o=t.x,a=t.y,s=o-i.x,n=a-i.y,l=Math.sqrt(e*e*n*n+r*r*s*s),h=Math.abs(e*r*s/l);i.x<o&&(h=-h);var c=Math.abs(e*r*n/l);return i.y<a&&(c=-c),{x:o+h,y:a+c}}function O(t,e,r){return E(t,e,e,r)}function D(t,e,r,i){{let o=e.y-t.y,a=t.x-e.x,s=e.x*t.y-t.x*e.y,n=o*r.x+a*r.y+s,l=o*i.x+a*i.y+s;if(0!==n&&0!==l&&q(n,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)&&q(u,p))return;let g=o*c-h*a;if(0===g)return;let f=Math.abs(g/2),y=a*d-c*s;return{x:y<0?(y-f)/g:(y+f)/g,y:(y=h*s-o*d)<0?(y-f)/g:(y+f)/g}}}function q(t,e){return t*e>0}function I(t,e,r){let i=t.x,o=t.y,a=[],s=1/0,n=1/0;"function"==typeof e.forEach?e.forEach(function(t){s=Math.min(s,t.x),n=Math.min(n,t.y)}):(s=Math.min(s,e.x),n=Math.min(n,e.y));let l=i-t.width/2-s,h=o-t.height/2-n;for(let i=0;i<e.length;i++){let o=e[i],s=e[i<e.length-1?i+1:0],n=D(t,r,{x:l+o.x,y:h+o.y},{x:l+s.x,y:h+s.y});n&&a.push(n)}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),s=e.x-r.x,n=e.y-r.y,l=Math.sqrt(s*s+n*n);return a<l?-1:+(a!==l)}),a[0]):t}(0,c.K)(function(t,e){return t.intersect(e)},"intersectNode"),(0,c.K)(E,"intersectEllipse"),(0,c.K)(O,"intersectCircle"),(0,c.K)(D,"intersectLine"),(0,c.K)(q,"sameSign"),(0,c.K)(I,"intersectPolygon");function K(t,e){let{labelStyles:r}=(0,i.GX)(e);e.labelStyle=r;let o=y(e),a=o;o||(a="anchor");let s=t.insert("g").attr("class",a).attr("id",e.domId||e.id),{cssStyles:l}=e,c=u.A.svg(s),d=(0,i.Fr)(e,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==e.look&&(d.roughness=0);let p=c.circle(0,0,2,d),g=s.insert(()=>p,":first-child");return g.attr("class","anchor").attr("style",(0,n.KL)(l)),f(e,g),e.intersect=function(t){return h.R.info("Circle intersect",e,1,t),O(e,1,t)},s}function R(t,e,r,i,o,a,s){let n=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(n)*(s?-1:1),d=(e+i)/2-h*o*Math.cos(n)*(s?-1:1),u=Math.atan2((e-d)/a,(t-c)/o),p=Math.atan2((i-d)/a,(r-c)/o)-u;s&&p<0&&(p+=2*Math.PI),!s&&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 P(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 z(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a=e.padding??0,s="neo"===e.look?16:a,n="neo"===e.look?12:a,l=(0,c.K)(t=>t+n,"calcTotalHeight"),h=(0,c.K)(t=>{let e=t/2;return[e/(2.5+t/50),e]},"calcEllipseRadius"),{shapeSvg:d,bbox:g}=await p(t,e,y(e)),C=l(e?.height?e?.height:g.height),[x,k]=h(C),b=P(C,x,k),w=(e?.width?e?.width:g.width)+2*s+b-b,{cssStyles:T}=e,B=[{x:w/2,y:-C/2},{x:-w/2,y:-C/2},...R(-w/2,-C/2,-w/2,C/2,x,k,!1),{x:w/2,y:C/2},...R(w/2,C/2,w/2,-C/2,x,k,!0)],S=u.A.svg(d),v=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(v.roughness=0,v.fillStyle="solid");let _=m(B),F=S.path(_,v),L=d.insert(()=>F,":first-child");return L.attr("class","basic label-container outer-path"),T&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",T),o&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",o),L.attr("transform",`translate(${x/2}, 0)`),f(e,L),e.intersect=function(t){return I(e,B,t)},d}function W(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+")")}async function j(t,e){let r,{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o;let s=e.padding??0,n="neo"===e.look?28:s,l="neo"===e.look?24:s,{shapeSvg:h,bbox:c}=await p(t,e,y(e)),d=(e?.width??c.width)+("neo"===e.look?2*n:n+12),g=(e?.height??c.height)+("neo"===e.look?2*l:l),C=-g,x=[{x:12,y:C},{x:d,y:C},{x:d,y:0},{x:0,y:0},{x:0,y:C+12},{x:12,y:C}],{cssStyles:k}=e;if("handDrawn"===e.look){let t=u.A.svg(h),o=(0,i.Fr)(e,{}),a=m(x),s=t.path(a,o);r=h.insert(()=>s,":first-child").attr("transform",`translate(${-d/2}, ${g/2})`),k&&r.attr("style",k)}else r=W(h,d,g,x);return a&&r.attr("style",a),f(e,r),e.intersect=function(t){return I(e,x,t)},h}function N(t,e){let{nodeStyles:r}=(0,i.GX)(e);e.label="";let o=t.insert("g").attr("class",y(e)).attr("id",e.domId??e.id),{cssStyles:a}=e,s=Math.max(28,e.width??0),n=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}],l=u.A.svg(o),h=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(h.roughness=0,h.fillStyle="solid");let c=m(n),d=l.path(c,h),p=o.insert(()=>d,":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 I(e,n,t)},o}async function H(t,e,r){let o,{labelStyles:a,nodeStyles:s}=(0,i.GX)(e);e.labelStyle=a;let{shapeSvg:l,bbox:c,halfPadding:d}=await p(t,e,y(e)),g=r?.padding??d,m="neo"===e.look?c.width/2+32:c.width/2+g,{cssStyles:C}=e;if("handDrawn"===e.look){let t=u.A.svg(l),r=(0,i.Fr)(e,{}),a=t.circle(0,0,2*m,r);(o=l.insert(()=>a,":first-child")).attr("class","basic label-container").attr("style",(0,n.KL)(C))}else o=l.insert("circle",":first-child").attr("class","basic label-container").attr("style",s).attr("r",m).attr("cx",0).attr("cy",0);return f(e,o),e.calcIntersect=function(t,e){let r=t.width/2;return O(t,r,e)},e.intersect=function(t){return h.R.info("Circle intersect",e,m,t),O(e,m,t)},l}function U(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},s={x:-(i/2)*e,y:-(i/2)*r},n={x:i/2*e,y:-(i/2)*r};return`M ${a.x},${a.y} L ${n.x},${n.y}
|
|
131
|
+
`},"getStyles"),t8=(0,s.K)((t,e)=>{void 0!==e&&(t3[t]=e)},"addStylesForDiagram"),t7=t6,t9={};(0,s.V)(t9,{clear:()=>eo,getAccDescription:()=>el,getAccTitle:()=>es,getDiagramTitle:()=>ec,setAccDescription:()=>en,setAccTitle:()=>ea,setDiagramTitle:()=>eh});var et="",ee="",er="",ei=(0,s.K)(t=>tO(t,th()),"sanitizeText"),eo=(0,s.K)(()=>{et="",er="",ee=""},"clear"),ea=(0,s.K)(t=>{et=ei(t).replace(/^\s+/g,"")},"setAccTitle"),es=(0,s.K)(()=>et,"getAccTitle"),en=(0,s.K)(t=>{er=ei(t).replace(/\n\s+/g,"\n")},"setAccDescription"),el=(0,s.K)(()=>er,"getAccDescription"),eh=(0,s.K)(t=>{ee=ei(t)},"setDiagramTitle"),ec=(0,s.K)(()=>ee,"getDiagramTitle"),ed=a.R,eu=a.H,ep=th,eg=tl,ef=Q,ey=(0,s.K)(t=>tO(t,ep()),"sanitizeText"),em=t5,eC=(0,s.K)(()=>t9,"getCommonDb"),ex={},ek=(0,s.K)((t,e,r)=>{ex[t]&&ed.warn(`Diagram with id ${t} already registered. Overwriting.`),ex[t]=e,r&&tv(t,r),t8(t,e.styles),e.injectUtils?.(ed,eu,ep,ey,em,eC(),()=>{})},"registerDiagram"),eb=(0,s.K)(t=>{if(t in ex)return ex[t];throw new ew(t)},"getDiagram"),ew=class extends Error{static{(0,s.K)(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}}},21570(t,e,r){var i=r(9290),o=r(9636),a=r(24692),s=r(64183),n=r(31293),l=r(86827),h={common:s.Y2,getConfig:s.zj,insertCluster:o.U,insertEdge:i.Jo,insertEdgeLabel:i.jP,insertMarkers:i.g0,insertNode:o.on,interpolateToCurve:a.Ib,labelHelper:o.Zk,log:n.R,positionEdgeLabel:i.T_},c={},d=(0,l.K)(t=>{for(let e of t)c[e.name]=e},"registerLayoutLoaders");(0,l.K)(()=>{d([{name:"dagre",loader:(0,l.K)(async()=>await Promise.all([r.e(5250),r.e(7048),r.e(3088),r.e(7101),r.e(8941)]).then(r.bind(r,40124)),"loader")},{name:"swimlane",loader:(0,l.K)(async()=>await Promise.all([r.e(5250),r.e(7048),r.e(7101),r.e(2632)]).then(r.bind(r,99307)),"loader")},{name:"cose-bilkent",loader:(0,l.K)(async()=>await Promise.all([r.e(4950),r.e(8645)]).then(r.bind(r,2180)),"loader")}])},"registerDefaultLayoutLoaders")();var u=(0,l.K)(async(t,e,r)=>{if(!(t.layoutAlgorithm in c))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 i=c[t.layoutAlgorithm],o=await i.loader(),{theme:a,themeVariables:s}=t.config,{useGradient:n,gradientStart:l,gradientStop:d}=s,u=e.attr("id");if(e.append("defs").append("filter").attr("id",`${u}-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",`${a?.includes("dark")?"#FFFFFF":"#000000"}`),e.append("defs").append("filter").attr("id",`${u}-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",`${a?.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",l).attr("stop-opacity",1),t.append("svg:stop").attr("offset","100%").attr("stop-color",d).attr("stop-opacity",1)}return o.render(t,e,h,{algorithm:i.algorithm},r)},"render"),p=(0,l.K)((t="",{fallback:e="dagre"}={})=>{if(t in c)return t;if(e in c)return n.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");r.d(e,{XX:()=>u,q7:()=>p,sO:()=>d})},24692(t,e,r){r.d(e,{pe:()=>S,PX:()=>J,ru:()=>Z,Un:()=>Q,$t:()=>ta,Sm:()=>tl,C4:()=>tn,$C:()=>N,rY:()=>th,sM:()=>W,KL:()=>tc,Ib:()=>$,dq:()=>tr,I5:()=>to,yT:()=>U,vU:()=>A,_K:()=>ts,bH:()=>G});var i,o=r(64183),a=r(31293),s=r(86827),n=r(16750),l=r(74045);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 s=t.apply(this,i);return r.cache=a.set(o,s)||a,s};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(44009);function f(t){if("object"!=typeof t||null==t)return!1;if(null===Object.getPrototypeOf(t))return!0;if("[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 C(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]=C(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,s]of(i.set(t,e),t))e.set(a,C(s,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(C(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]=C(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),x(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),x(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),x(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,x(e,t,r,i,o),e}if(t instanceof Boolean){let e=new Boolean(t.valueOf());return i.set(t,e),x(e,t,r,i,o),e}if(t instanceof Number){let e=new Number(t.valueOf());return i.set(t,e),x(e,t,r,i,o),e}if(t instanceof String){let e=new String(t.valueOf());return i.set(t,e),x(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),x(e,t,r,i,o),e}return t}function x(t,e,r=t,i,o){let a=[...Object.keys(e),...p(e)];for(let s=0;s<a.length;s++){let n=a[s],l=Object.getOwnPropertyDescriptor(t,n);(null==l||l.writable)&&(t[n]=C(e[n],n,r,i,o))}}function k(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),x(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 x(e,t),e}case m.R_:{let e={};return x(e,t),e.length=t.length,e[Symbol.iterator]=t[Symbol.iterator],e}default:return}}},C(t,void 0,t,new Map,e)}var b=r(14608);function w(t){return"object"==typeof t&&null!==t}var T=r(72146),B=r(19663),S="",v={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,F=(0,s.K)(function(t,e){let r=L(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),s="config";return void 0!==i[s]&&("flowchart-v2"===a&&(a="flowchart"),i[a]=i[s],delete i[s]),i},"detectInit"),L=(0,s.K)(function(t,e=null){try{let r,i=RegExp(`[%]{2}(?![{]${_.source})(?=[}][%]{2}).*
|
|
132
|
+
`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),a.R.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);let s=[];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;s.push({type:t,args:e})}if(0===s.length)return{type:t,args:null};return 1===s.length?s[0]:s}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"),A=(0,s.K)(function(t){return t.replace(o.DB,"")},"removeDirectives"),M=(0,s.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?v[`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,n.J)(r):r}(0,s.K)($,"interpolateToCurve"),(0,s.K)(E,"formatUrl");var O=(0,s.K)((t,...e)=>{let r=t.split("."),i=r.length-1,o=r[i],s=window;for(let e=0;e<i;e++)if(!(s=s[r[e]]))return void a.R.error(`Function name: ${t} not found in window`);s[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 q(t){let e,r=0;return t.forEach(t=>{r+=D(t,e),e=t}),R(t,r/2)}function I(t){return 1===t.length?t[0]:q(t)}(0,s.K)(D,"distance"),(0,s.K)(q,"traverseEdge"),(0,s.K)(I,"calcLabelPosition");var K=(0,s.K)((t,e=2)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),R=(0,s.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:K((1-o)*r.x+o*e.x,5),y:K((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,s.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,s=Math.atan2(e[0].y-i.y,e[0].x-i.x),n={x:0,y:0};return n.x=Math.sin(s)*o+(e[0].x+i.x)/2,n.y=-Math.cos(s)*o+(e[0].y+i.y)/2,n},"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),s=10+.5*t,n=Math.atan2(i[0].y-o.y,i[0].x-o.x),l={x:0,y:0};return"start_left"===e?(l.x=Math.sin(n+Math.PI)*s+(i[0].x+o.x)/2,l.y=-Math.cos(n+Math.PI)*s+(i[0].y+o.y)/2):"end_right"===e?(l.x=Math.sin(n-Math.PI)*s+(i[0].x+o.x)/2-5,l.y=-Math.cos(n-Math.PI)*s+(i[0].y+o.y)/2-5):"end_left"===e?(l.x=Math.sin(n)*s+(i[0].x+o.x)/2-5,l.y=-Math.cos(n)*s+(i[0].y+o.y)/2-5):(l.x=Math.sin(n)*s+(i[0].x+o.x)/2,l.y=-Math.cos(n)*s+(i[0].y+o.y)/2),l}function W(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,s.K)(z,"calcTerminalLabelPosition"),(0,s.K)(W,"getStylesFromArray");var j=0,N=(0,s.K)(()=>(j++,"id-"+Math.random().toString(36).substr(2,12)+"-"+j),"generateId");function H(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,s.K)(H,"makeRandomHex");var U=(0,s.K)(t=>H(t.length),"random"),Y=(0,s.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"),X=(0,s.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 s=a.append("tspan");return s.attr("x",e.x+2*e.textMargin),s.attr("fill",e.fill),s.text(r),a},"drawSimpleText"),G=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=[],s="";return i.forEach((t,o)=>{let n=Q(`${t} `,r),l=Q(s,r);if(n>e){let{hyphenatedStrings:i,remainingWord:o}=V(t,e,"-",r);a.push(s,...i),s=o}else l+n>=e?(a.push(s),s=t):s=[s,t].filter(Boolean).join(" ");o+1===i.length&&a.push(s)}),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=[],s="";return o.forEach((t,n)=>{let l=`${s}${t}`;if(Q(l,i)>=e){let t=o.length===n+1,e=`${l}${r}`;a.push(t?l:e),s=""}else s=l}),{hyphenatedStrings:a,remainingWord:s}},(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,s.K)(Z,"calculateTextHeight"),(0,s.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[,s]=to(r),n=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 n){let o=Y();o.text=i||S;let n=X(d,o).style("font-size",s).style("font-weight",a).style("font-family",t),l=(n._groups||n)[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,s.K)(this,"InitIDGenerator")}},te=(0,s.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,s.K)(tr,"isDetailedError");var ti=(0,s.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,s.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++)r[t]=r[t]??void 0}let a=[...Object.keys(r),...p(r)];for(let n=0;n<a.length;n++){let l=a[n];if("__proto__"===l)continue;let h=r[l],c=e[l];if((0,b.N)(h)&&(h={...h}),(0,b.N)(c)&&(c={...c}),(0,g.P)(h)&&(h=k(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 s;if(w(s=c)&&(0,T.X)(s)){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]=k(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,s.K)(ta,"cleanAndMerge");var ts={assignWithDepth:o.hH,wrapLabel:G,calculateTextHeight:Z,calculateTextWidth:Q,calculateTextDimensions:J,cleanAndMerge:ta,detectInit:F,detectDirective:L,isSubstringInArray:M,interpolateToCurve:$,calcLabelPosition:I,calcCardinalityPosition:P,calcTerminalLabelPosition:z,formatUrl:E,getStylesFromArray:W,generateId:N,random:U,runFunc:O,entityDecode:te,insertTitle:ti,isLabelCoordinateInPath:td,parseFontSize:to,InitIDGenerator:tt},tn=(0,s.K)(function(t){let e=t;return(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)?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"})},"encodeEntities"),tl=(0,s.K)(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),th=(0,s.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,s.K)(tc,"handleUndefinedAttr"),(0,s.K)(td,"isLabelCoordinateInPath")},9636(t,e,r){var i=r(14782),o=r(6129),a=r(23656),s=r(15198),n=r(24692),l=r(64183),h=r(31293),c=r(86827),d=r(74045),u=r(52274),p=(0,c.K)(async(t,e,r)=>{let i,s=e.useHtmlLabels||(0,l._3)((0,l.D7)()?.htmlLabels),h=t.insert("g").attr("class",r||"node default").attr("id",e.domId||e.id),c=h.insert("g").attr("class","label").attr("style",(0,n.KL)(e.labelStyle));i=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];let u=!!e.icon||!!e.img,p="markdown"===e.labelType,g=await (0,a.G)(c,(0,l.jZ)((0,n.Sm)(i),(0,l.D7)()),{useHtmlLabels:s,width:e.width||(0,l.D7)().flowchart?.wrappingWidth,classes:p?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:u,markdown:p},(0,l.D7)()),f=g.getBBox(),y=(e?.padding??0)/2;if(s){let t=g.children[0],e=(0,d.Ltv)(g);await (0,o.X)(t,i),f=t.getBoundingClientRect(),e.attr("width",f.width),e.attr("height",f.height)}return s?c.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):c.attr("transform","translate(0, "+-f.height/2+")"),e.centerLabel&&c.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),c.insert("rect",":first-child"),{shapeSvg:h,bbox:f,halfPadding:y,label:c}},"labelHelper"),g=(0,c.K)(async(t,e,r)=>{let i=r.useHtmlLabels??(0,l.E)((0,l.D7)()),o=t.insert("g").attr("class","label").attr("style",r.labelStyle||""),s=await (0,a.G)(o,(0,l.jZ)((0,n.Sm)(e),(0,l.D7)()),{useHtmlLabels:i,width:r.width||(0,l.D7)()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img}),h=s.getBBox(),c=r.padding/2;if((0,l.E)((0,l.D7)())){let t=s.children[0],e=(0,d.Ltv)(s);h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}return i?o.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):o.attr("transform","translate(0, "+-h.height/2+")"),r.centerLabel&&o.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:t,bbox:h,halfPadding:c,label:o}},"insertLabel"),f=(0,c.K)((t,e)=>{let r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds"),y=(0,c.K)((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function m(t){let e=t.map((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`);return e.push("Z"),e.join(" ")}function C(t,e,r,i,o,a){let s=[],n=r-t,l=2*Math.PI/(n/a),h=e+(i-e)/2;for(let e=0;e<=50;e++){let r=t+e/50*n,i=h+o*Math.sin(l*(r-t));s.push({x:r,y:i})}return s}function x(t,e,r,i,o,a){let s=[],n=o*Math.PI/180,l=(a*Math.PI/180-n)/(i-1);for(let o=0;o<i;o++){let i=n+o*l,a=t+r*Math.cos(i),h=e+r*Math.sin(i);s.push({x:-a,y:-h})}return s}function k(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")),s=(0,c.K)((t,e)=>t?.getAttribute(e)??void 0,"getAttr");o&&Object.entries({fill:s(o,"fill"),"fill-opacity":s(o,"fill-opacity")??"1"}).forEach(([t,e])=>{e&&r.setAttribute(t,e)}),a&&Object.entries({stroke:s(a,"stroke"),"stroke-width":s(a,"stroke-width")??"1","stroke-opacity":s(a,"stroke-opacity")??"1"}).forEach(([t,e])=>{e&&r.setAttribute(t,e)});let n=document.createElementNS("http://www.w3.org/2000/svg","g");return n.appendChild(r),n}(0,c.K)(m,"createPathFromPoints"),(0,c.K)(C,"generateFullSineWavePoints"),(0,c.K)(x,"generateCirclePoints"),(0,c.K)(k,"mergePaths");var b=(0,c.K)((t,e)=>{var r,i,o=t.x,a=t.y,s=e.x-o,n=e.y-a,l=t.width/2,h=t.height/2;return Math.abs(n)*l>Math.abs(s)*h?(n<0&&(h=-h),r=0===n?0:h*s/n,i=h):(s<0&&(l=-l),r=l,i=0===s?0:l*n/s),{x:o+r,y:a+i}},"intersectRect"),w=(0,c.K)(async(t,e,r,i=!1,o=!1)=>{let s=e||"";"object"==typeof s&&(s=s[0]);let n=(0,l.D7)(),h=(0,l.E)(n);return await (0,a.G)(t,s,{style:r,isTitle:i,useHtmlLabels:h,markdown:!1,isNode:o,width:1/0},n)},"createLabel"),T=(0,c.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"),B=(0,c.K)(async(t,e)=>{let r,o,s=(0,l.D7)(),{themeVariables:n,handDrawnSeed:c}=s,{clusterBkg:p,clusterBorder:g}=n,{labelStyles:f,nodeStyles:y,borderStyles:m,backgroundStyles:C}=(0,i.GX)(e),x=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,l._3)(s.flowchart.htmlLabels),w="LR"===e.direction,T=x.insert("g").attr("class","cluster-label swimlane-label"),B=await (0,a.G)(T,e.label,{style:e.labelStyle,useHtmlLabels:k,isNode:!0,width:e.width}),S=B.getBBox();if(k){let t=B.children[0],e=(0,d.Ltv)(B);S=t.getBoundingClientRect(),e.attr("width",S.width),e.attr("height",S.height)}let v=e.padding??0,_=e.width<=S.width+v?S.width+v:e.width;e.width<=S.width+v?e.diff=(_-e.width)/2-v:e.diff=-v;let F=e.height,L=e.y-F/2,A=e.y+F/2,M=e.x-_/2,$=void 0!==e.swimlaneContentTop?e.swimlaneContentTop:L+F/3,E=4*!!w,O=S.height+2*E;if(w){let t=Math.max(O,S.height+2*E),a=M+t,s=Math.max(0,_-t);if("handDrawn"===e.look){let n=u.A.svg(x),l=(0,i.Fr)(e,{roughness:.7,fill:p,stroke:g,fillWeight:3,seed:c}),h=(0,i.Fr)(e,{roughness:.7,fill:"none",stroke:g,seed:c}),d=n.rectangle(M,L,t,F,l);r=x.insert(()=>d,":first-child");let f=n.rectangle(a,L,s,F,h);o=x.insert(()=>f,":first-child"),r.select("path:nth-child(2)").attr("style",m.join(";")),r.select("path").attr("style",C.join(";").replace("fill","stroke"))}else r=x.insert("rect",":first-child"),o=x.insert("rect",":first-child"),r.attr("class","swimlane-title").attr("style",y).attr("x",M).attr("y",L).attr("width",t).attr("height",F).attr("fill",p).attr("stroke",g),o.attr("class","swimlane-body").attr("style",y).attr("x",a).attr("y",L).attr("width",s).attr("height",F).attr("fill","none").attr("stroke",g);let n=M+t/2,l=e.y;T.attr("transform",`translate(${n}, ${l}) rotate(-90) translate(${-S.width/2}, ${-S.height/2})`)}else{let t=Math.min(O,Math.max(0,$-L)),a=L+t,s=Math.max(0,A-a),n=e.x-_/2;if("handDrawn"===e.look){let l=u.A.svg(x),h=(0,i.Fr)(e,{roughness:.7,fill:p,stroke:g,fillWeight:3,seed:c}),d=(0,i.Fr)(e,{roughness:.7,fill:"none",stroke:g,seed:c}),f=l.rectangle(n,L,_,t,h);r=x.insert(()=>f,":first-child");let y=l.rectangle(n,a,_,s,d);o=x.insert(()=>y,":first-child"),r.select("path:nth-child(2)").attr("style",m.join(";")),r.select("path").attr("style",C.join(";").replace("fill","stroke"))}else r=x.insert("rect",":first-child"),o=x.insert("rect",":first-child"),r.attr("class","swimlane-title").attr("style",y).attr("x",n).attr("y",L).attr("width",_).attr("height",t).attr("fill",p).attr("stroke",g),o.attr("class","swimlane-body").attr("style",y).attr("x",n).attr("y",a).attr("width",_).attr("height",s).attr("fill","none").attr("stroke",g);let l=e.x-S.width/2,h=L+(t-S.height)/2;T.attr("transform",`translate(${l}, ${h})`)}if(h.R.trace("Swimlane data ",e,JSON.stringify(e)),f){let t=T.select("span");t&&t.attr("style",f)}return e.offsetX=0,e.width=_,e.height=F,e.offsetY=S.height-v/2,e.intersect=function(t){return b(e,t)},{cluster:x,labelBBox:S}},"swimlane"),S=(0,c.K)(async(t,e)=>{let r,s;h.R.info("Creating subgraph rect for ",e.id,e);let n=(0,l.D7)(),{themeVariables:c,handDrawnSeed:p}=n,{clusterBkg:g,clusterBorder:f}=c,{labelStyles:y,nodeStyles:m,borderStyles:C,backgroundStyles:x}=(0,i.GX)(e),k=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),B=(0,l.E)(n),S=k.insert("g").attr("class","cluster-label "),v=(r="markdown"===e.labelType?await (0,a.G)(S,e.label,{style:e.labelStyle,useHtmlLabels:B,isNode:!0,width:e.width}):await w(S,e.label,e.labelStyle||"",!1,!0)).getBBox();if((0,l.E)(n)){let t=r.children[0],e=(0,d.Ltv)(r);v=t.getBoundingClientRect(),e.attr("width",v.width),e.attr("height",v.height)}let _=e.width<=v.width+e.padding?v.width+e.padding:e.width;e.width<=v.width+e.padding?e.diff=(_-e.width)/2-e.padding:e.diff=-e.padding;let F=e.height,L=e.x-_/2,A=e.y-F/2;if(h.R.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=u.A.svg(k),r=(0,i.Fr)(e,{roughness:.7,fill:g,stroke:f,fillWeight:3,seed:p}),o=t.path(T(L,A,_,F,0),r);(s=k.insert(()=>(h.R.debug("Rough node insert CXC",o),o),":first-child")).select("path:nth-child(2)").attr("style",C.join(";")),s.select("path").attr("style",x.join(";").replace("fill","stroke"))}else(s=k.insert("rect",":first-child")).attr("style",m).attr("rx",e.rx).attr("ry",e.ry).attr("x",L).attr("y",A).attr("width",_).attr("height",F);let{subGraphTitleTopMargin:M}=(0,o.O)(n);if(S.attr("transform",`translate(${e.x-v.width/2}, ${e.y-e.height/2+M})`),y){let t=S.select("span");t&&t.attr("style",y)}let $=s.node().getBBox();return e.offsetX=0,e.width=$.width,e.height=$.height,e.offsetY=v.height-e.padding/2,e.intersect=function(t){return b(e,t)},{cluster:k,labelBBox:v}},"rect"),v=(0,c.K)((t,e)=>{let r=t.insert("g").attr("class","note-cluster").attr("id",e.domId),i=r.insert("rect",":first-child"),o=0*e.padding,a=o/2;i.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2-a).attr("width",e.width+o).attr("height",e.height+o).attr("fill","none");let s=i.node().getBBox();return e.width=s.width,e.height=s.height,e.intersect=function(t){return b(e,t)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),_=(0,c.K)(async(t,e)=>{let r,i=(0,l.D7)(),{themeVariables:o,handDrawnSeed:a}=i,{altBackground:s,compositeBackground:n,compositeTitleBackground:h,nodeBorder:c}=o,p=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look),g=p.insert("g",":first-child"),f=p.insert("g").attr("class","cluster-label"),y=p.append("rect"),m=await w(f,e.label,e.labelStyle,void 0,!0),C=m.getBBox();if((0,l.E)(i)){let t=m.children[0],e=(0,d.Ltv)(m);C=t.getBoundingClientRect(),e.attr("width",C.width),e.attr("height",C.height)}let x=0*e.padding,k=(e.width<=C.width+e.padding?C.width+e.padding:e.width)+x;e.width<=C.width+e.padding?e.diff=(k-e.width)/2-e.padding:e.diff=-e.padding;let B=e.height+x,S=e.height+x-C.height-6,v=e.x-k/2,_=e.y-B/2;e.width=k;let F=e.y-e.height/2-x/2+C.height+2;if("handDrawn"===e.look){let t=e.cssClasses.includes("statediagram-cluster-alt"),i=u.A.svg(p),o=e.rx||e.ry?i.path(T(v,_,k,B,10),{roughness:.7,fill:h,fillStyle:"solid",stroke:c,seed:a}):i.rectangle(v,_,k,B,{seed:a});r=p.insert(()=>o,":first-child");let l=i.rectangle(v,F,k,S,{fill:t?s:n,fillStyle:t?"hachure":"solid",stroke:c,seed:a});r=p.insert(()=>o,":first-child"),y=p.insert(()=>l)}else(r=g.insert("rect",":first-child")).attr("class","outer").attr("x",v).attr("y",_).attr("width",k).attr("height",B).attr("data-look",e.look),y.attr("class","inner").attr("x",v).attr("y",F).attr("width",k).attr("height",S);return f.attr("transform",`translate(${e.x-C.width/2}, ${_+1-3*!(0,l.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 b(e,t)},{cluster:p,labelBBox:C}},"roundedWithTitle"),F=(0,c.K)(async(t,e)=>{let r;h.R.info("Creating subgraph rect for ",e.id,e);let s=(0,l.D7)(),{themeVariables:n,handDrawnSeed:c}=s,{clusterBkg:p,clusterBorder:g}=n,{labelStyles:f,nodeStyles:y,borderStyles:m,backgroundStyles:C}=(0,i.GX)(e),x=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),k=(0,l.E)(s),w=x.insert("g").attr("class","cluster-label "),B=await (0,a.G)(w,e.label,{style:e.labelStyle,useHtmlLabels:k,isNode:!0,width:e.width}),S=B.getBBox();if((0,l.E)(s)){let t=B.children[0],e=(0,d.Ltv)(B);S=t.getBoundingClientRect(),e.attr("width",S.width),e.attr("height",S.height)}let v=e.width<=S.width+e.padding?S.width+e.padding:e.width;e.width<=S.width+e.padding?e.diff=(v-e.width)/2-e.padding:e.diff=-e.padding;let _=e.height,F=e.x-v/2,L=e.y-_/2;if(h.R.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=u.A.svg(x),o=(0,i.Fr)(e,{roughness:.7,fill:p,stroke:g,fillWeight:4,seed:c}),a=t.path(T(F,L,v,_,e.rx),o);(r=x.insert(()=>(h.R.debug("Rough node insert CXC",a),a),":first-child")).select("path:nth-child(2)").attr("style",m.join(";")),r.select("path").attr("style",C.join(";").replace("fill","stroke"))}else(r=x.insert("rect",":first-child")).attr("style",y).attr("rx",e.rx).attr("ry",e.ry).attr("x",F).attr("y",L).attr("width",v).attr("height",_);let{subGraphTitleTopMargin:A}=(0,o.O)(s);if(w.attr("transform",`translate(${e.x-S.width/2}, ${e.y-e.height/2+A})`),f){let t=w.select("span");t&&t.attr("style",f)}let M=r.node().getBBox();return e.offsetX=0,e.width=M.width,e.height=M.height,e.offsetY=S.height-e.padding/2,e.intersect=function(t){return b(e,t)},{cluster:x,labelBBox:S}},"kanbanSection"),L={rect:S,squareRect:S,roundedWithTitle:_,noteGroup:v,divider:(0,c.K)((t,e)=>{let r,{themeVariables:i,handDrawnSeed:o}=(0,l.D7)(),{nodeBorder:a}=i,s=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look),n=s.insert("g",":first-child"),h=0*e.padding,c=e.width+h;e.diff=-e.padding;let d=e.height+h,p=e.x-c/2,g=e.y-d/2;if(e.width=c,"handDrawn"===e.look){let t=u.A.svg(s).rectangle(p,g,c,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:o});r=s.insert(()=>t,":first-child")}else{r=n.insert("rect",":first-child");let t="outer";e.look,t="divider",r.attr("class",t).attr("x",p).attr("y",g).attr("width",c).attr("height",d).attr("data-look",e.look)}return e.height=r.node().getBBox().height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return b(e,t)},{cluster:s,labelBBox:{}}},"divider"),kanbanSection:F,swimlane:B},A=new Map,M=(0,c.K)(async(t,e)=>{let r=e.shape||"rect",i=await L[r](t,e);return A.set(e.id,i),i},"insertCluster"),$=(0,c.K)(()=>{A=new Map},"clear");function E(t,e,r,i){var o=t.x,a=t.y,s=o-i.x,n=a-i.y,l=Math.sqrt(e*e*n*n+r*r*s*s),h=Math.abs(e*r*s/l);i.x<o&&(h=-h);var c=Math.abs(e*r*n/l);return i.y<a&&(c=-c),{x:o+h,y:a+c}}function O(t,e,r){return E(t,e,e,r)}function D(t,e,r,i){{let o=e.y-t.y,a=t.x-e.x,s=e.x*t.y-t.x*e.y,n=o*r.x+a*r.y+s,l=o*i.x+a*i.y+s;if(0!==n&&0!==l&&q(n,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)&&q(u,p))return;let g=o*c-h*a;if(0===g)return;let f=Math.abs(g/2),y=a*d-c*s;return{x:y<0?(y-f)/g:(y+f)/g,y:(y=h*s-o*d)<0?(y-f)/g:(y+f)/g}}}function q(t,e){return t*e>0}function I(t,e,r){let i=t.x,o=t.y,a=[],s=1/0,n=1/0;"function"==typeof e.forEach?e.forEach(function(t){s=Math.min(s,t.x),n=Math.min(n,t.y)}):(s=Math.min(s,e.x),n=Math.min(n,e.y));let l=i-t.width/2-s,h=o-t.height/2-n;for(let i=0;i<e.length;i++){let o=e[i],s=e[i<e.length-1?i+1:0],n=D(t,r,{x:l+o.x,y:h+o.y},{x:l+s.x,y:h+s.y});n&&a.push(n)}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),s=e.x-r.x,n=e.y-r.y,l=Math.sqrt(s*s+n*n);return a<l?-1:+(a!==l)}),a[0]):t}(0,c.K)(function(t,e){return t.intersect(e)},"intersectNode"),(0,c.K)(E,"intersectEllipse"),(0,c.K)(O,"intersectCircle"),(0,c.K)(D,"intersectLine"),(0,c.K)(q,"sameSign"),(0,c.K)(I,"intersectPolygon");function K(t,e){let{labelStyles:r}=(0,i.GX)(e);e.labelStyle=r;let o=y(e),a=o;o||(a="anchor");let s=t.insert("g").attr("class",a).attr("id",e.domId||e.id),{cssStyles:l}=e,c=u.A.svg(s),d=(0,i.Fr)(e,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==e.look&&(d.roughness=0);let p=c.circle(0,0,2,d),g=s.insert(()=>p,":first-child");return g.attr("class","anchor").attr("style",(0,n.KL)(l)),f(e,g),e.intersect=function(t){return h.R.info("Circle intersect",e,1,t),O(e,1,t)},s}function R(t,e,r,i,o,a,s){let n=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(n)*(s?-1:1),d=(e+i)/2-h*o*Math.cos(n)*(s?-1:1),u=Math.atan2((e-d)/a,(t-c)/o),p=Math.atan2((i-d)/a,(r-c)/o)-u;s&&p<0&&(p+=2*Math.PI),!s&&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 P(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 z(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a=e.padding??0,s="neo"===e.look?16:a,n="neo"===e.look?12:a,l=(0,c.K)(t=>t+n,"calcTotalHeight"),h=(0,c.K)(t=>{let e=t/2;return[e/(2.5+t/50),e]},"calcEllipseRadius"),{shapeSvg:d,bbox:g}=await p(t,e,y(e)),C=l(e?.height?e?.height:g.height),[x,k]=h(C),b=P(C,x,k),w=(e?.width?e?.width:g.width)+2*s+b-b,{cssStyles:T}=e,B=[{x:w/2,y:-C/2},{x:-w/2,y:-C/2},...R(-w/2,-C/2,-w/2,C/2,x,k,!1),{x:w/2,y:C/2},...R(w/2,C/2,w/2,-C/2,x,k,!0)],S=u.A.svg(d),v=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(v.roughness=0,v.fillStyle="solid");let _=m(B),F=S.path(_,v),L=d.insert(()=>F,":first-child");return L.attr("class","basic label-container outer-path"),T&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",T),o&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",o),L.attr("transform",`translate(${x/2}, 0)`),f(e,L),e.intersect=function(t){return I(e,B,t)},d}function W(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+")")}async function j(t,e){let r,{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o;let s=e.padding??0,n="neo"===e.look?28:s,l="neo"===e.look?24:s,{shapeSvg:h,bbox:c}=await p(t,e,y(e)),d=(e?.width??c.width)+("neo"===e.look?2*n:n+12),g=(e?.height??c.height)+("neo"===e.look?2*l:l),C=-g,x=[{x:12,y:C},{x:d,y:C},{x:d,y:0},{x:0,y:0},{x:0,y:C+12},{x:12,y:C}],{cssStyles:k}=e;if("handDrawn"===e.look){let t=u.A.svg(h),o=(0,i.Fr)(e,{}),a=m(x),s=t.path(a,o);r=h.insert(()=>s,":first-child").attr("transform",`translate(${-d/2}, ${g/2})`),k&&r.attr("style",k)}else r=W(h,d,g,x);return a&&r.attr("style",a),f(e,r),e.intersect=function(t){return I(e,x,t)},h}function N(t,e){let{nodeStyles:r}=(0,i.GX)(e);e.label="";let o=t.insert("g").attr("class",y(e)).attr("id",e.domId??e.id),{cssStyles:a}=e,s=Math.max(28,e.width??0),n=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}],l=u.A.svg(o),h=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(h.roughness=0,h.fillStyle="solid");let c=m(n),d=l.path(c,h),p=o.insert(()=>d,":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 I(e,n,t)},o}async function H(t,e,r){let o,{labelStyles:a,nodeStyles:s}=(0,i.GX)(e);e.labelStyle=a;let{shapeSvg:l,bbox:c,halfPadding:d}=await p(t,e,y(e)),g=r?.padding??d,m="neo"===e.look?c.width/2+32:c.width/2+g,{cssStyles:C}=e;if("handDrawn"===e.look){let t=u.A.svg(l),r=(0,i.Fr)(e,{}),a=t.circle(0,0,2*m,r);(o=l.insert(()=>a,":first-child")).attr("class","basic label-container").attr("style",(0,n.KL)(C))}else o=l.insert("circle",":first-child").attr("class","basic label-container").attr("style",s).attr("r",m).attr("cx",0).attr("cy",0);return f(e,o),e.calcIntersect=function(t,e){let r=t.width/2;return O(t,r,e)},e.intersect=function(t){return h.R.info("Circle intersect",e,m,t),O(e,m,t)},l}function U(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},s={x:-(i/2)*e,y:-(i/2)*r},n={x:i/2*e,y:-(i/2)*r};return`M ${a.x},${a.y} L ${n.x},${n.y}
|
|
133
133
|
M ${o.x},${o.y} L ${s.x},${s.y}`}function Y(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r,e.label="";let a=t.insert("g").attr("class",y(e)).attr("id",e.domId??e.id),s=Math.max(30,e?.width??0),{cssStyles:n}=e,l=u.A.svg(a),c=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(c.roughness=0,c.fillStyle="solid");let d=l.circle(0,0,2*s,c),p=U(s),g=l.path(p,c),m=a.insert(()=>d,":first-child");return m.insert(()=>g),m.attr("class","outer-path"),n&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",n),o&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",o),f(e,m),e.intersect=function(t){return h.R.info("crossedCircle intersect",e,{radius:s,point:t}),O(e,s,t)},a}function X(t,e,r,i=100,o=0,a=180){let s=[],n=o*Math.PI/180,l=(a*Math.PI/180-n)/(i-1);for(let o=0;o<i;o++){let i=n+o*l,a=t+r*Math.cos(i),h=e+r*Math.sin(i);s.push({x:-a,y:-h})}return s}async function G(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let{shapeSvg:a,bbox:s,label:n}=await p(t,e,y(e)),l="neo"===e.look?18:e.padding??0,h="neo"===e.look?12:e.padding??0,c=s.width+l,d=s.height+h,g=Math.max(5,.1*d),{cssStyles:C}=e,x=[...X(c/2,-d/2,g,30,-90,0),{x:-c/2-g,y:g},...X(c/2+2*g,-g,g,20,-180,-270),...X(c/2+2*g,g,g,20,-90,-180),{x:-c/2-g,y:-d/2},...X(c/2,d/2,g,20,0,90)],k=[{x:c/2,y:-d/2-g},{x:-c/2,y:-d/2-g},...X(c/2,-d/2,g,20,-90,0),{x:-c/2-g,y:-g},...X(c/2+.1*c,-g,g,20,-180,-270),...X(c/2+.1*c,g,g,20,-90,-180),{x:-c/2-g,y:d/2},...X(c/2,d/2,g,20,0,90),{x:-c/2,y:d/2+g},{x:c/2,y:d/2+g}],b=u.A.svg(a),w=(0,i.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let T=m(x).replace("Z",""),B=b.path(T,w),S=m(k),v=b.path(S,{...w}),_=a.insert("g",":first-child");return _.insert(()=>v,":first-child").attr("stroke-opacity",0),_.insert(()=>B,":first-child"),_.attr("class","text"),C&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",C),o&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",o),_.attr("transform",`translate(${g}, 0)`),n.attr("transform",`translate(${-c/2+g-(s.x-(s.left??0))},${-d/2+(e.padding??0)/2-(s.y-(s.top??0))})`),f(e,_),e.intersect=function(t){return I(e,k,t)},a}function V(t,e,r,i=100,o=0,a=180){let s=[],n=o*Math.PI/180,l=(a*Math.PI/180-n)/(i-1);for(let o=0;o<i;o++){let i=n+o*l,a=t+r*Math.cos(i),h=e+r*Math.sin(i);s.push({x:a,y:h})}return s}async function Z(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let{shapeSvg:a,bbox:s,label:n}=await p(t,e,y(e)),l="neo"===e.look?18:e.padding??0,h="neo"===e.look?12:e.padding??0,c=s.width+("neo"===e.look?2*l:l),d=s.height+("neo"===e.look?2*h:h),g=Math.max(5,.1*d),{cssStyles:C}=e,x=[...V(c/2,-d/2,g,20,-90,0),{x:c/2+g,y:-g},...V(c/2+2*g,-g,g,20,-180,-270),...V(c/2+2*g,g,g,20,-90,-180),{x:c/2+g,y:d/2},...V(c/2,d/2,g,20,0,90)],k=[{x:-c/2,y:-d/2-g},{x:c/2,y:-d/2-g},...V(c/2,-d/2,g,20,-90,0),{x:c/2+g,y:-g},...V(c/2+2*g,-g,g,20,-180,-270),...V(c/2+2*g,g,g,20,-90,-180),{x:c/2+g,y:d/2},...V(c/2,d/2,g,20,0,90),{x:c/2,y:d/2+g},{x:-c/2,y:d/2+g}],b=u.A.svg(a),w=(0,i.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let T=m(x).replace("Z",""),B=b.path(T,w),S=m(k),v=b.path(S,{...w}),_=a.insert("g",":first-child");return _.insert(()=>v,":first-child").attr("stroke-opacity",0),_.insert(()=>B,":first-child"),_.attr("class","text"),C&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",C),o&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",o),_.attr("transform",`translate(${-g}, 0)`),n.attr("transform",`translate(${-c/2+(e.padding??0)/2-(s.x-(s.left??0))},${-d/2+(e.padding??0)/2-(s.y-(s.top??0))})`),f(e,_),e.intersect=function(t){return I(e,k,t)},a}function Q(t,e,r,i=100,o=0,a=180){let s=[],n=o*Math.PI/180,l=(a*Math.PI/180-n)/(i-1);for(let o=0;o<i;o++){let i=n+o*l,a=t+r*Math.cos(i),h=e+r*Math.sin(i);s.push({x:-a,y:-h})}return s}async function J(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let{shapeSvg:a,bbox:s,label:n}=await p(t,e,y(e)),l="neo"===e.look?18:e.padding??0,h="neo"===e.look?12:e.padding??0,c=s.width+("neo"===e.look?2*l:l),d=s.height+("neo"===e.look?2*h:h),g=Math.max(5,.1*d),{cssStyles:C}=e,x=[...Q(c/2,-d/2,g,30,-90,0),{x:-c/2-g,y:g},...Q(c/2+2*g,-g,g,20,-180,-270),...Q(c/2+2*g,g,g,20,-90,-180),{x:-c/2-g,y:-d/2},...Q(c/2,d/2,g,20,0,90)],k=[...Q(-c/2+g+g/2,-d/2,g,20,-90,-180),{x:c/2-g/2,y:g},...Q(-c/2-g/2,-g,g,20,0,90),...Q(-c/2-g/2,g,g,20,-90,0),{x:c/2-g/2,y:-g},...Q(-c/2+g+g/2,d/2,g,30,-180,-270)],b=[{x:c/2,y:-d/2-g},{x:-c/2,y:-d/2-g},...Q(c/2,-d/2,g,20,-90,0),{x:-c/2-g,y:-g},...Q(c/2+2*g,-g,g,20,-180,-270),...Q(c/2+2*g,g,g,20,-90,-180),{x:-c/2-g,y:d/2},...Q(c/2,d/2,g,20,0,90),{x:-c/2,y:d/2+g},{x:c/2-g-g/2,y:d/2+g},...Q(-c/2+g+g/2,-d/2,g,20,-90,-180),{x:c/2-g/2,y:g},...Q(-c/2-g/2,-g,g,20,0,90),...Q(-c/2-g/2,g,g,20,-90,0),{x:c/2-g/2,y:-g},...Q(-c/2+g+g/2,d/2,g,30,-180,-270)],w=u.A.svg(a),T=(0,i.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(T.roughness=0,T.fillStyle="solid");let B=m(x).replace("Z",""),S=w.path(B,T),v=m(k).replace("Z",""),_=w.path(v,T),F=m(b),L=w.path(F,{...T}),A=a.insert("g",":first-child");return A.insert(()=>L,":first-child").attr("stroke-opacity",0),A.insert(()=>S,":first-child"),A.insert(()=>_,":first-child"),A.attr("class","text"),C&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",C),o&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",o),A.attr("transform",`translate(${g-g/4}, 0)`),n.attr("transform",`translate(${-c/2+(e.padding??0)/2-(s.x-(s.left??0))},${-d/2+(e.padding??0)/2-(s.y-(s.top??0))})`),f(e,A),e.intersect=function(t){return I(e,b,t)},a}async function tt(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a=e.padding??0,s="neo"===e.look?16:a,n="neo"===e.look?12:a,{shapeSvg:l,bbox:h}=await p(t,e,y(e)),c=Math.max(20,(h.width+2*s)*1.25,e?.width??0),d=Math.max(5,h.height+2*n,e?.height??0),g=d/2,{cssStyles:C}=e,k=u.A.svg(l),b=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let w=c-g,T=d/4,B=[{x:w,y:0},{x:T,y:0},{x:0,y:d/2},{x:T,y:d},{x:w,y:d},...x(-w,-d/2,g,50,270,90)],S=m(B),v=k.path(S,b),_=l.insert(()=>v,":first-child");return _.attr("class","basic label-container outer-path"),C&&"handDrawn"!==e.look&&_.selectChildren("path").attr("style",C),o&&"handDrawn"!==e.look&&_.selectChildren("path").attr("style",o),_.attr("transform",`translate(${-c/2}, ${-d/2})`),f(e,_),e.intersect=function(t){return I(e,B,t)},l}(0,c.K)(K,"anchor"),(0,c.K)(R,"generateArcPoints"),(0,c.K)(P,"calculateArcSagitta"),(0,c.K)(z,"bowTieRect"),(0,c.K)(W,"insertPolygonShape"),(0,c.K)(j,"card"),(0,c.K)(N,"choice"),(0,c.K)(H,"circle"),(0,c.K)(U,"createLine"),(0,c.K)(Y,"crossedCircle"),(0,c.K)(X,"generateCirclePoints"),(0,c.K)(G,"curlyBraceLeft"),(0,c.K)(V,"generateCirclePoints"),(0,c.K)(Z,"curlyBraceRight"),(0,c.K)(Q,"generateCirclePoints"),(0,c.K)(J,"curlyBraces"),(0,c.K)(tt,"curvedTrapezoid");var te=(0,c.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"),tr=(0,c.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"),ti=(0,c.K)((t,e,r,i,o,a)=>`M${t-r/2},${-i/2} a${o},${a} 0,0,0 ${r},0`,"createInnerCylinderPathD");async function to(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;if(e.width||e.height){let t=e.width??0;e.width=(e.width??0)-h,e.width<8&&(e.width=8),e.height=(e.height??0)-l-t/2/(2.5+t/50)*3,e.height<8&&(e.height=8)}let{shapeSvg:c,bbox:d,label:g}=await p(t,e,y(e)),m=(e.width?e.width:d.width)+h,C=m/2,x=C/(2.5+m/50),k=(e.height?e.height:d.height)+l+x,{cssStyles:w}=e;if("handDrawn"===e.look){let t=u.A.svg(c),o=tr(0,0,m,k,C,x),a=ti(0,x,m,k,C,x),s=(0,i.Fr)(e,{}),n=t.path(o,s),l=t.path(a,(0,i.Fr)(e,{fill:"none"}));r=c.insert(()=>l,":first-child"),(r=c.insert(()=>n,":first-child")).attr("class","basic label-container"),w&&r.attr("style",w)}else{let t=te(0,0,m,k,C,x);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",x),r.attr("transform",`translate(${-m/2}, ${-(k/2+x)})`),f(e,r),g.attr("transform",`translate(${-(d.width/2)-(d.x-(d.left??0))}, ${-(d.height/2)+(e.padding??0)/1.5-(d.y-(d.top??0))})`),e.intersect=function(t){let r=b(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-x)){let o=x*x*(1-i*i/(C*C));o>0&&(o=Math.sqrt(o)),o=x-o,t.y-(e.y??0)>0&&(o=-o),r.y+=o}return r},c}async function ta(t,e,r){let o,{labelStyles:a,nodeStyles:s}=(0,i.GX)(e);e.labelStyle=a;let{shapeSvg:l,bbox:h}=await p(t,e,y(e)),c=Math.max(h.width+2*r.labelPaddingX,e?.width||0),d=Math.max(h.height+2*r.labelPaddingY,e?.height||0),g=-c/2,m=-d/2,{rx:C,ry:x}=e,{cssStyles:k}=e;if(r?.rx&&r.ry&&(C=r.rx,x=r.ry),"handDrawn"===e.look){let t=u.A.svg(l),r=(0,i.Fr)(e,{}),a=C||x?t.path(T(g,m,c,d,C||0),r):t.rectangle(g,m,c,d,r);(o=l.insert(()=>a,":first-child")).attr("class","basic label-container").attr("style",(0,n.KL)(k))}else(o=l.insert("rect",":first-child")).attr("class","basic label-container").attr("style",s).attr("rx",(0,n.KL)(C)).attr("ry",(0,n.KL)(x)).attr("x",g).attr("y",m).attr("width",c).attr("height",d);return f(e,o),e.calcIntersect=function(t,e){return b(t,e)},e.intersect=function(t){return b(e,t)},l}async function ts(t,e){let{cssClasses:r,labelPaddingX:o,labelPaddingY:a,padding:s,width:n,height:l}=e,h=await ta(t,e,{rx:0,ry:0,classes:r??"",labelPaddingX:o??(s??0)*2,labelPaddingY:a??s??0});if("handDrawn"===e.look){let t=u.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 s=null;return a instanceof SVGGraphicsElement&&(s=a.getBBox(),h.insert(()=>t.line(s.x,s.y,s.x+s.width,s.y,r),".basic.label-container g.label"),h.insert(()=>t.line(s.x,s.y+s.height,s.x+s.width,s.y+s.height,r),".basic.label-container g.label"),o.remove()),h}let c=h.select(".basic.label-container"),d=(Number(c.attr("width"))||n)??0,p=(Number(c.attr("height"))||l)??0;return d>0&&p>0&&c.attr("stroke-dasharray",`${d} ${p}`),h}async function tn(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?16:e.padding??0,{shapeSvg:n,bbox:l,label:h}=await p(t,e,y(e)),c=l.width+a,d=l.height+s,g=.2*d,m=-c/2,C=-d/2-g/2,{cssStyles:x}=e,k=u.A.svg(n),w=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let T=k.polygon([{x:m,y:C+g},{x:-m,y:C+g},{x:-m,y:-C},{x:m,y:-C},{x:m,y:C},{x:-m,y:C},{x:-m,y:C+g}].map(t=>[t.x,t.y]),w),B=n.insert(()=>T,":first-child");return B.attr("class","basic label-container outer-path"),x&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",x),o&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",o),h.attr("transform",`translate(${m+(e.padding??0)/2-(l.x-(l.left??0))}, ${C+g+(e.padding??0)/2-(l.y-(l.top??0))})`),f(e,B),e.intersect=function(t){return b(e,t)},n}async function tl(t,e){let r,{labelStyles:o,nodeStyles:a}=(0,i.GX)(e),s="neo"===e.look?12:5;e.labelStyle=o;let l=e.padding??0,c="neo"===e.look?16:l,{shapeSvg:d,bbox:g}=await p(t,e,y(e)),m=(e?.width?e?.width/2:g.width/2)+(c??0),C=m-s,{cssStyles:x}=e;if("handDrawn"===e.look){let t=u.A.svg(d),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*m,o),l=t.circle(0,0,2*C,a);(r=d.insert("g",":first-child")).attr("class",(0,n.KL)(e.cssClasses)).attr("style",(0,n.KL)(x)),r.node()?.appendChild(s),r.node()?.appendChild(l)}else{let t=(r=d.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",m).attr("cx",0).attr("cy",0),e.attr("class","inner-circle").attr("style",a).attr("r",C).attr("cx",0).attr("cy",0)}return f(e,r),e.intersect=function(t){return h.R.info("DoubleCircle intersect",e,m,t),O(e,m,t)},d}function th(t,e,{config:{themeVariables:r}}){let{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.label="",e.labelStyle=o;let s=t.insert("g").attr("class",y(e)).attr("id",e.domId??e.id),{cssStyles:n}=e,l=u.A.svg(s),{nodeBorder:c}=r,d=(0,i.Fr)(e,{fillStyle:"solid"});"handDrawn"!==e.look&&(d.roughness=0);let p=l.circle(0,0,14,d),g=s.insert(()=>p,":first-child");return g.selectAll("path").attr("style",`fill: ${c} !important;`),n&&n.length>0&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",n),a&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",a),f(e,g),e.intersect=function(t){return h.R.info("filledCircle intersect",e,{radius:7,point:t}),O(e,7,t)},s}async function tc(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a=e.padding??0,s="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)-s-s/2,e.width<10&&(e.width=10));let{shapeSvg:n,bbox:l,label:c}=await p(t,e,y(e)),d=(e?.width?e?.width:l.width)+(s??0),g=e?.height?e?.height:d+l.height,C=[{x:0,y:-g},{x:g,y:-g},{x:g/2,y:0}],{cssStyles:x}=e,k=u.A.svg(n),b=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let w=m(C),T=k.path(w,b),B=n.insert(()=>T,":first-child").attr("transform",`translate(${-g/2}, ${g/2})`).attr("class","outer-path");return x&&"handDrawn"!==e.look&&B.selectChildren("path").attr("style",x),o&&"handDrawn"!==e.look&&B.selectChildren("path").attr("style",o),e.width=d,e.height=g,f(e,B),c.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-g/2+(e.padding??0)/2+(l.y-(l.top??0))})`),e.intersect=function(t){return h.R.info("Triangle intersect",e,C,t),I(e,C,t)},n}function td(t,e,{dir:r,config:{state:o,themeVariables:a}}){let{nodeStyles:s}=(0,i.GX)(e);e.label="";let n=t.insert("g").attr("class",y(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 d=-1*h/2,p=-1*c/2,g=u.A.svg(n),m=(0,i.Fr)(e,{stroke:a.lineColor,fill:a.lineColor});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");let C=g.rectangle(d,p,h,c,m),x=n.insert(()=>C,":first-child");l&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",l),s&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",s),f(e,x);let k=o?.padding??0;return e.width&&e.height&&(e.width+=k/2||0,e.height+=k/2||0),e.intersect=function(t){return b(e,t)},n}async function tu(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;(e.width||e.height)&&(e.height=(e?.height??0)-2*s,e.height<10&&(e.height=10),e.width=(e?.width??0)-2*a,e.width<15&&(e.width=15));let{shapeSvg:n,bbox:l}=await p(t,e,y(e)),c=(e?.width?e?.width:Math.max(15,l.width))+2*a,d=(e?.height?e?.height:Math.max(10,l.height))+2*s,g=d/2,{cssStyles:C}=e,k=u.A.svg(n),b=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let w=[{x:-c/2,y:-d/2},{x:c/2-g,y:-d/2},...x(-c/2+g,0,g,50,90,270),{x:c/2-g,y:d/2},{x:-c/2,y:d/2}],T=m(w),B=k.path(T,b),S=n.insert(()=>B,":first-child");return S.attr("class","basic label-container outer-path"),C&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",C),o&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",o),f(e,S),e.intersect=function(t){return h.R.info("Pill intersect",e,{radius:g,point:t}),I(e,w,t)},n}(0,c.K)(to,"cylinder"),(0,c.K)(ta,"drawRect"),(0,c.K)(ts,"datastore"),(0,c.K)(tn,"dividedRectangle"),(0,c.K)(tl,"doublecircle"),(0,c.K)(th,"filledCircle"),(0,c.K)(tc,"flippedTriangle"),(0,c.K)(td,"forkJoin"),(0,c.K)(tu,"halfRoundedRectangle");var tp=(0,c.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 tg(t,e){let r,{labelStyles:o,nodeStyles:a}=(0,i.GX)(e),s="neo"===e.look?3.5:4;e.labelStyle=o;let n=e.padding??0,l="neo"===e.look?70:n,h="neo"===e.look?32:n;if(e.width||e.height){let t=e.height??0;e.width=(e?.width??0)-t/s*2-h,e.height=(e.height??0)-l}let{shapeSvg:c,bbox:d}=await p(t,e,y(e)),g=(e?.height?e?.height:d.height)+l,m=g/s,C=(e?.width?e?.width:d.width)+2*m+h,x=[{x:m,y:0},{x:C-m,y:0},{x:C,y:-g/2},{x:C-m,y:-g},{x:m,y:-g},{x:0,y:-g/2}],{cssStyles:k}=e;if("handDrawn"===e.look){let t=u.A.svg(c),o=(0,i.Fr)(e,{}),a=tp(0,0,C,g,m),s=t.path(a,o);r=c.insert(()=>s,":first-child").attr("transform",`translate(${-C/2}, ${g/2})`),k&&r.attr("style",k)}else r=W(c,C,g,x);return a&&r.attr("style",a),e.width=C,e.height=g,f(e,r),e.intersect=function(t){return I(e,x,t)},c}async function tf(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.label="",e.labelStyle=r;let{shapeSvg:a}=await p(t,e,y(e)),s=Math.max(30,e?.width??0),n=Math.max(30,e?.height??0),{cssStyles:l}=e,c=u.A.svg(a),d=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(d.roughness=0,d.fillStyle="solid");let g=[{x:0,y:0},{x:s,y:0},{x:0,y:n},{x:s,y:n}],C=m(g),x=c.path(C,d),k=a.insert(()=>x,":first-child");return k.attr("class","basic label-container outer-path"),l&&"handDrawn"!==e.look&&k.selectChildren("path").attr("style",l),o&&"handDrawn"!==e.look&&k.selectChildren("path").attr("style",o),k.attr("transform",`translate(${-s/2}, ${-n/2})`),f(e,k),e.intersect=function(t){return h.R.info("Pill intersect",e,{points:g}),I(e,g,t)},a}async function ty(t,e,{config:{themeVariables:r,flowchart:o}}){let{labelStyles:a}=(0,i.GX)(e);e.labelStyle=a;let n=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(n,o?.wrappingWidth??0);let{shapeSvg:l,bbox:c,label:d}=await p(t,e,"icon-shape default"),g="t"===e.pos,{nodeBorder:y}=r,{stylesMap:m}=(0,i.WW)(e),C=-n/2,x=-n/2,k=8*!!e.label,w=u.A.svg(l),T=(0,i.Fr)(e,{stroke:"none",fill:"none"});"handDrawn"!==e.look&&(T.roughness=0,T.fillStyle="solid");let B=w.rectangle(C,x,n,n,T),S=Math.max(n,c.width),v=n+c.height+k,_=w.rectangle(-S/2,-v/2,S,v,{...T,fill:"transparent",stroke:"none"}),F=l.insert(()=>B,":first-child"),L=l.insert(()=>_);if(e.icon){let t=l.append("g");t.html(`<g>${await (0,s.WY)(e.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);let r=t.node().getBBox(),i=r.width,o=r.height,a=r.x,h=r.y;t.attr("transform",`translate(${-i/2-a},${g?c.height/2+k/2-o/2-h:-c.height/2-k/2-o/2-h})`),t.attr("style",`color: ${m.get("stroke")??y};`)}return d.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${g?-v/2:v/2-c.height})`),F.attr("transform",`translate(0,${g?c.height/2+k/2:-c.height/2-k/2})`),f(e,L),e.intersect=function(t){if(h.R.info("iconSquare intersect",e,t),!e.label)return b(e,t);let r=e.x??0,i=e.y??0,o=e.height??0,a=[];return I(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+k},{x:r+n/2,y:i-o/2+c.height+k},{x:r+n/2,y:i+o/2},{x:r-n/2,y:i+o/2},{x:r-n/2,y:i-o/2+c.height+k},{x:r-c.width/2,y:i-o/2+c.height+k}]:[{x:r-n/2,y:i-o/2},{x:r+n/2,y:i-o/2},{x:r+n/2,y:i-o/2+n},{x:r+c.width/2,y:i-o/2+n},{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+n},{x:r-n/2,y:i-o/2+n}],t)},l}async function tm(t,e,{config:{themeVariables:r,flowchart:o}}){let{labelStyles:a}=(0,i.GX)(e);e.labelStyle=a;let n=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(n,o?.wrappingWidth??0);let{shapeSvg:l,bbox:c,label:d}=await p(t,e,"icon-shape default"),g=8*!!e.label,y="t"===e.pos,{nodeBorder:m,mainBkg:C}=r,{stylesMap:x}=(0,i.WW)(e),k=u.A.svg(l),w=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid"),w.stroke=x.get("fill")??C;let T=l.append("g");e.icon&&T.html(`<g>${await (0,s.WY)(e.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);let B=T.node().getBBox(),S=B.width,v=B.height,_=B.x,F=B.y,L=Math.max(S,v)*Math.SQRT2+40,A=k.circle(0,0,L,w),M=Math.max(L,c.width),$=L+c.height+g,E=k.rectangle(-M/2,-$/2,M,$,{...w,fill:"transparent",stroke:"none"}),O=l.insert(()=>A,":first-child"),D=l.insert(()=>E);return T.attr("transform",`translate(${-S/2-_},${y?c.height/2+g/2-v/2-F:-c.height/2-g/2-v/2-F})`),T.attr("style",`color: ${x.get("stroke")??m};`),d.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${y?-$/2:$/2-c.height})`),O.attr("transform",`translate(0,${y?c.height/2+g/2:-c.height/2-g/2})`),f(e,D),e.intersect=function(t){return h.R.info("iconSquare intersect",e,t),b(e,t)},l}async function tC(t,e,{config:{themeVariables:r,flowchart:o}}){let{labelStyles:a}=(0,i.GX)(e);e.labelStyle=a;let n=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(n,o?.wrappingWidth??0);let{shapeSvg:l,bbox:c,halfPadding:d,label:g}=await p(t,e,"icon-shape default"),y="t"===e.pos,m=n+2*d,C=n+2*d,{nodeBorder:x,mainBkg:k}=r,{stylesMap:w}=(0,i.WW)(e),B=8*!!e.label,S=u.A.svg(l),v=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(v.roughness=0,v.fillStyle="solid"),v.stroke=w.get("fill")??k;let _=S.path(T(-C/2,-m/2,C,m,5),v),F=Math.max(C,c.width),L=m+c.height+B,A=S.rectangle(-F/2,-L/2,F,L,{...v,fill:"transparent",stroke:"none"}),M=l.insert(()=>_,":first-child").attr("class","icon-shape2"),$=l.insert(()=>A);if(e.icon){let t=l.append("g");t.html(`<g>${await (0,s.WY)(e.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);let r=t.node().getBBox(),i=r.width,o=r.height,a=r.x,h=r.y;t.attr("transform",`translate(${-i/2-a},${y?c.height/2+B/2-o/2-h:-c.height/2-B/2-o/2-h})`),t.attr("style",`color: ${w.get("stroke")??x};`)}return g.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${y?-L/2:L/2-c.height})`),M.attr("transform",`translate(0,${y?c.height/2+B/2:-c.height/2-B/2})`),f(e,$),e.intersect=function(t){if(h.R.info("iconSquare intersect",e,t),!e.label)return b(e,t);let r=e.x??0,i=e.y??0,o=e.height??0,a=[];return I(e,a=y?[{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+C/2,y:i-o/2+c.height+B},{x:r+C/2,y:i+o/2},{x:r-C/2,y:i+o/2},{x:r-C/2,y:i-o/2+c.height+B},{x:r-c.width/2,y:i-o/2+c.height+B}]:[{x:r-C/2,y:i-o/2},{x:r+C/2,y:i-o/2},{x:r+C/2,y:i-o/2+m},{x:r+c.width/2,y:i-o/2+m},{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+m},{x:r-C/2,y:i-o/2+m}],t)},l}async function tx(t,e,{config:{themeVariables:r,flowchart:o}}){let{labelStyles:a}=(0,i.GX)(e);e.labelStyle=a;let n=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(n,o?.wrappingWidth??0);let{shapeSvg:l,bbox:c,halfPadding:d,label:g}=await p(t,e,"icon-shape default"),y="t"===e.pos,m=n+2*d,C=n+2*d,{nodeBorder:x,mainBkg:k}=r,{stylesMap:w}=(0,i.WW)(e),B=8*!!e.label,S=u.A.svg(l),v=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(v.roughness=0,v.fillStyle="solid"),v.stroke=w.get("fill")??k;let _=S.path(T(-C/2,-m/2,C,m,.1),v),F=Math.max(C,c.width),L=m+c.height+B,A=S.rectangle(-F/2,-L/2,F,L,{...v,fill:"transparent",stroke:"none"}),M=l.insert(()=>_,":first-child"),$=l.insert(()=>A);if(e.icon){let t=l.append("g");t.html(`<g>${await (0,s.WY)(e.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);let r=t.node().getBBox(),i=r.width,o=r.height,a=r.x,h=r.y;t.attr("transform",`translate(${-i/2-a},${y?c.height/2+B/2-o/2-h:-c.height/2-B/2-o/2-h})`),t.attr("style",`color: ${w.get("stroke")??x};`)}return g.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${y?-L/2:L/2-c.height})`),M.attr("transform",`translate(0,${y?c.height/2+B/2:-c.height/2-B/2})`),f(e,$),e.intersect=function(t){if(h.R.info("iconSquare intersect",e,t),!e.label)return b(e,t);let r=e.x??0,i=e.y??0,o=e.height??0,a=[];return I(e,a=y?[{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+C/2,y:i-o/2+c.height+B},{x:r+C/2,y:i+o/2},{x:r-C/2,y:i+o/2},{x:r-C/2,y:i-o/2+c.height+B},{x:r-c.width/2,y:i-o/2+c.height+B}]:[{x:r-C/2,y:i-o/2},{x:r+C/2,y:i-o/2},{x:r+C/2,y:i-o/2+m},{x:r+c.width/2,y:i-o/2+m},{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+m},{x:r-C/2,y:i-o/2+m}],t)},l}async function tk(t,e,{config:{flowchart:r}}){let o=new Image;o.src=e?.img??"",await o.decode();let a=Number(o.naturalWidth.toString().replace("px","")),s=Number(o.naturalHeight.toString().replace("px",""));e.imageAspectRatio=a/s;let{labelStyles:n}=(0,i.GX)(e);e.labelStyle=n;let l=r?.wrappingWidth;e.defaultWidth=r?.wrappingWidth;let c=Math.max(e.label?l??0:0,e?.assetWidth??a),d="on"===e.constraint&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:c,g="on"===e.constraint?d/e.imageAspectRatio:e?.assetHeight??s;e.width=Math.max(d,l??0);let{shapeSvg:y,bbox:m,label:C}=await p(t,e,"image-shape default"),x="t"===e.pos,k=-d/2,w=8*!!e.label,T=u.A.svg(y),B=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(B.roughness=0,B.fillStyle="solid");let S=T.rectangle(k,-g/2,d,g,B),v=Math.max(d,m.width),_=g+m.height+w,F=T.rectangle(-v/2,-_/2,v,_,{...B,fill:"none",stroke:"none"}),L=y.insert(()=>S,":first-child"),A=y.insert(()=>F);if(e.img){let t=y.append("image");t.attr("href",e.img),t.attr("width",d),t.attr("height",g),t.attr("preserveAspectRatio","none"),t.attr("transform",`translate(${-d/2},${x?_/2-g:-_/2})`)}return C.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${x?-g/2-m.height/2-w/2:g/2-m.height/2+w/2})`),L.attr("transform",`translate(0,${x?m.height/2+w/2:-m.height/2-w/2})`),f(e,A),e.intersect=function(t){if(h.R.info("iconSquare intersect",e,t),!e.label)return b(e,t);let r=e.x??0,i=e.y??0,o=e.height??0,a=[];return I(e,a=x?[{x:r-m.width/2,y:i-o/2},{x:r+m.width/2,y:i-o/2},{x:r+m.width/2,y:i-o/2+m.height+w},{x:r+d/2,y:i-o/2+m.height+w},{x:r+d/2,y:i+o/2},{x:r-d/2,y:i+o/2},{x:r-d/2,y:i-o/2+m.height+w},{x:r-m.width/2,y:i-o/2+m.height+w}]:[{x:r-d/2,y:i-o/2},{x:r+d/2,y:i-o/2},{x:r+d/2,y:i-o/2+g},{x:r+m.width/2,y:i-o/2+g},{x:r+m.width/2/2,y:i+o/2},{x:r-m.width/2,y:i+o/2},{x:r-m.width/2,y:i-o/2+g},{x:r-d/2,y:i-o/2+g}],t)},y}async function tb(t,e){let r,{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o;let s=e.padding??0,n="neo"===e.look?2*s:s,{shapeSvg:l,bbox:h}=await p(t,e,y(e)),c=Math.max(h.width+(n??0)*2,e?.width??0),d=Math.max(h.height+(s??0)*2,e?.height??0),g=[{x:0,y:0},{x:c,y:0},{x:c+3*d/6,y:-d},{x:-3*d/6,y:-d}],{cssStyles:C}=e;if("handDrawn"===e.look){let t=u.A.svg(l),o=(0,i.Fr)(e,{}),a=m(g),s=t.path(a,o);r=l.insert(()=>s,":first-child").attr("transform",`translate(${-c/2}, ${d/2})`),C&&r.attr("style",C)}else r=W(l,c,d,g);return a&&r.attr("style",a),e.width=c,e.height=d,f(e,r),e.intersect=function(t){return I(e,g,t)},l}async function tw(t,e){let{shapeSvg:r,bbox:i,label:o}=await p(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))})`),f(e,a),e.intersect=function(t){return b(e,t)},r}async function tT(t,e){let r,{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o;let s=e.padding??0,n="neo"===e.look?2*s:s,{shapeSvg:l,bbox:h}=await p(t,e,y(e)),c=(e?.height??h.height)+s,d=(e?.width??h.width)+n,g=[{x:0,y:0},{x:d+3*c/6,y:0},{x:d,y:-c},{x:-(3*c)/6,y:-c}],{cssStyles:C}=e;if("handDrawn"===e.look){let t=u.A.svg(l),o=(0,i.Fr)(e,{}),a=m(g),s=t.path(a,o);r=l.insert(()=>s,":first-child").attr("transform",`translate(${-d/2}, ${c/2})`),C&&r.attr("style",C)}else r=W(l,d,c,g);return a&&r.attr("style",a),e.width=d,e.height=c,f(e,r),e.intersect=function(t){return I(e,g,t)},l}async function tB(t,e){let r,{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o;let s=e.padding??0,n="neo"===e.look?2*s:s,{shapeSvg:l,bbox:h}=await p(t,e,y(e)),c=(e?.height??h.height)+s,d=(e?.width??h.width)+n,g=[{x:-3*c/6,y:0},{x:d,y:0},{x:d+3*c/6,y:-c},{x:0,y:-c}],{cssStyles:C}=e;if("handDrawn"===e.look){let t=u.A.svg(l),o=(0,i.Fr)(e,{}),a=m(g),s=t.path(a,o);r=l.insert(()=>s,":first-child").attr("transform",`translate(${-d/2}, ${c/2})`),C&&r.attr("style",C)}else r=W(l,d,c,g);return a&&r.attr("style",a),e.width=d,e.height=c,f(e,r),e.intersect=function(t){return I(e,g,t)},l}function tS(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.label="",e.labelStyle=r;let a=t.insert("g").attr("class",y(e)).attr("id",e.domId??e.id),{cssStyles:s}=e,n=Math.max(35,e?.width??0),l=Math.max(35,e?.height??0),c=[{x:n,y:0},{x:0,y:l+3.5},{x:n-14,y:l+3.5},{x:0,y:2*l},{x:n,y:l-3.5},{x:14,y:l-3.5}],d=u.A.svg(a),p=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");let g=m(c),C=d.path(g,p),x=a.insert(()=>C,":first-child");return x.attr("class","outer-path"),s&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",s),o&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",o),x.attr("transform",`translate(-${n/2},${-l})`),f(e,x),e.intersect=function(t){return h.R.info("lightningBolt intersect",e,t),I(e,c,t)},a}(0,c.K)(tg,"hexagon"),(0,c.K)(tf,"hourglass"),(0,c.K)(ty,"icon"),(0,c.K)(tm,"iconCircle"),(0,c.K)(tC,"iconRounded"),(0,c.K)(tx,"iconSquare"),(0,c.K)(tk,"imageSquare"),(0,c.K)(tb,"inv_trapezoid"),(0,c.K)(tw,"labelRect"),(0,c.K)(tT,"lean_left"),(0,c.K)(tB,"lean_right"),(0,c.K)(tS,"lightningBolt");var tv=(0,c.K)((t,e,r,i,o,a,s)=>`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+s} a${o},${a} 0,0,0 ${r},0`,"createCylinderPathD"),t_=(0,c.K)((t,e,r,i,o,a,s)=>`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+s} a${o},${a} 0,0,0 ${r},0`,"createOuterCylinderPathD"),tF=(0,c.K)((t,e,r,i,o,a)=>`M${t-r/2},${-i/2} a${o},${a} 0,0,0 ${r},0`,"createInnerCylinderPathD");async function tL(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:d,label:g}=await p(t,e,y(e)),m=(e?.width?e?.width:d.width)+2*l,C=m/2,x=C/(2.5+m/50),k=(e?.height?e?.height:d.height)+x+2*h,w=.1*k,{cssStyles:T}=e;if("handDrawn"===e.look){let t=u.A.svg(c),o=t_(0,0,m,k,C,x,w),a=tF(0,x,m,k,C,x),s=(0,i.Fr)(e,{}),n=t.path(o,s),l=t.path(a,s);c.insert(()=>l,":first-child").attr("class","line"),(r=c.insert(()=>n,":first-child")).attr("class","basic label-container"),T&&r.attr("style",T)}else{let t=tv(0,0,m,k,C,x,w);r=c.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,n.KL)(T)).attr("style",a)}return r.attr("label-offset-y",x),r.attr("transform",`translate(${-m/2}, ${-(k/2+x)})`),f(e,r),g.attr("transform",`translate(${-(d.width/2)-(d.x-(d.left??0))}, ${-(d.height/2)+x-(d.y-(d.top??0))})`),e.intersect=function(t){let r=b(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-x)){let o=x*x*(1-i*i/(C*C));o>0&&(o=Math.sqrt(o)),o=x-o,t.y-(e.y??0)>0&&(o=-o),r.y+=o}return r},c}async function tA(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a=e.padding??0,s="neo"===e.look?16:a,n="neo"===e.look?12:a;if(e.width||e.height){let t=e.width;e.width=(t??0)*10/11-2*s,e.width<10&&(e.width=10),e.height=(e?.height??0)-2*n,e.height<10&&(e.height=10)}let{shapeSvg:l,bbox:h,label:c}=await p(t,e,y(e)),d=(e?.width?e?.width:h.width)+(s??0)*2,g=(e?.height?e?.height:h.height)+(n??0)*2,m="neo"===e.look?g/4:g/8,x=g+m,{cssStyles:k}=e,b=u.A.svg(l),w=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let T=[{x:-d/2-d/2*.1,y:-x/2},{x:-d/2-d/2*.1,y:x/2},...C(-d/2-d/2*.1,x/2,d/2+d/2*.1,x/2,m,.8),{x:d/2+d/2*.1,y:-x/2},{x:-d/2-d/2*.1,y:-x/2},{x:-d/2,y:-x/2},{x:-d/2,y:x/2*1.1},{x:-d/2,y:-x/2}],B=b.polygon(T.map(t=>[t.x,t.y]),w),S=l.insert(()=>B,":first-child");return S.attr("class","basic label-container outer-path"),k&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",k),o&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",o),S.attr("transform",`translate(0,${-m/2})`),c.attr("transform",`translate(${-d/2+(e.padding??0)+d/2*.1/2-(h.x-(h.left??0))},${-g/2+(e.padding??0)-m/2-(h.y-(h.top??0))})`),f(e,S),e.intersect=function(t){return I(e,T,t)},l}async function tM(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a=e.padding??0,s="neo"===e.look?16:a,n="neo"===e.look?12:a,l="neo"===e.look?10:5;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*s-2*l,10),e.height=Math.max((e?.height??0)-2*n-2*l,10));let{shapeSvg:h,bbox:c,label:d}=await p(t,e,y(e)),g=(e?.width?e?.width:c.width)+2*s+2*l,C=(e?.height?e?.height:c.height)+2*n+2*l,x=g-2*l,b=C-2*l,w=-x/2,T=-b/2,{cssStyles:B}=e,S=u.A.svg(h),v=(0,i.Fr)(e,{}),_=[{x:w-l,y:T+l},{x:w-l,y:T+b+l},{x:w+x-l,y:T+b+l},{x:w+x-l,y:T+b},{x:w+x,y:T+b},{x:w+x,y:T+b-l},{x:w+x+l,y:T+b-l},{x:w+x+l,y:T-l},{x:w+l,y:T-l},{x:w+l,y:T},{x:w,y:T},{x:w,y:T+l}];"handDrawn"!==e.look&&(v.roughness=0,v.fillStyle="solid");let F=m(_),L=S.path(F,v),A=m([{x:w,y:T+l},{x:w+x-l,y:T+l},{x:w+x-l,y:T+b},{x:w+x,y:T+b},{x:w+x,y:T},{x:w,y:T}]),M=S.path(A,v);"handDrawn"!==e.look&&(L=k(L),M=k(M));let $=h.insert("g",":first-child");return $.insert(()=>L),$.insert(()=>M),$.attr("class","basic label-container outer-path"),B&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",B),o&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",o),d.attr("transform",`translate(${-(c.width/2)-l-(c.x-(c.left??0))}, ${-(c.height/2)+l-(c.y-(c.top??0))})`),f(e,$),e.intersect=function(t){return I(e,_,t)},h}async function t$(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let{shapeSvg:a,bbox:s,label:n}=await p(t,e,y(e)),l=e.padding??0,h="neo"===e.look?16:l,c="neo"===e.look?12:l,d=!0;(e.width||e.height)&&(d=!1,e.width=(e?.width??0)-2*h,e.height=(e?.height??0)-3*c);let g=Math.max(s.width,e?.width??0)+2*h,x=Math.max(s.height,e?.height??0)+3*c,k="neo"===e.look?x/4:x/8,b=x+(d?k/2:-k/2),w=-g/2,T=-b/2,{cssStyles:B}=e,S=C(w-10,T+b+10,w+g-10,T+b+10,k,.8),v=S?.[S.length-1],_=[{x:w-10,y:T+10},{x:w-10,y:T+b+10},...S,{x:w+g-10,y:v.y-10},{x:w+g,y:v.y-10},{x:w+g,y:v.y-20},{x:w+g+10,y:v.y-20},{x:w+g+10,y:T-10},{x:w+10,y:T-10},{x:w+10,y:T},{x:w,y:T},{x:w,y:T+10}],F=[{x:w,y:T+10},{x:w+g-10,y:T+10},{x:w+g-10,y:v.y-10},{x:w+g,y:v.y-10},{x:w+g,y:T},{x:w,y:T}],L=u.A.svg(a),A=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");let M=m(_),$=L.path(M,A),E=m(F),O=L.path(E,A),D=a.insert(()=>$,":first-child");return D.insert(()=>O),D.attr("class","basic label-container outer-path"),B&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",B),o&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",o),D.attr("transform",`translate(0,${-k/2})`),n.attr("transform",`translate(${-(s.width/2)-10-(s.x-(s.left??0))}, ${-(s.height/2)+10-k/2-(s.y-(s.top??0))})`),f(e,D),e.intersect=function(t){return I(e,_,t)},a}async function tE(t,e,{config:{themeVariables:r}}){let{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o,e.useHtmlLabels||(0,l.E)((0,l.zj)())||(e.centerLabel=!0);let{shapeSvg:s,bbox:n,label:h}=await p(t,e,y(e)),c=Math.max(n.width+(e.padding??0)*2,e?.width??0),d=Math.max(n.height+(e.padding??0)*2,e?.height??0),{cssStyles:g}=e,m=u.A.svg(s),C=(0,i.Fr)(e,{fill:r.noteBkgColor,stroke:r.noteBorderColor});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");let x=m.rectangle(-c/2,-d/2,c,d,C),k=s.insert(()=>x,":first-child");return k.attr("class","basic label-container outer-path"),h.attr("class","label noteLabel"),g&&"handDrawn"!==e.look&&k.selectAll("path").attr("style",g),a&&"handDrawn"!==e.look&&k.selectAll("path").attr("style",a),h.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),f(e,k),e.intersect=function(t){return b(e,t)},s}(0,c.K)(tL,"linedCylinder"),(0,c.K)(tA,"linedWaveEdgedRect"),(0,c.K)(tM,"multiRect"),(0,c.K)(t$,"multiWaveEdgedRectangle"),(0,c.K)(tE,"note");var tO=(0,c.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 tD(t,e){let r,{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o;let{shapeSvg:s,bbox:n}=await p(t,e,y(e)),l=n.width+(e.padding??0)+(n.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;if("handDrawn"===e.look){let t=u.A.svg(s),o=(0,i.Fr)(e,{}),a=tO(0,0,l),n=t.path(a,o);r=s.insert(()=>n,":first-child").attr("transform",`translate(${-l/2+.5}, ${l/2})`),c&&r.attr("style",c)}else(r=W(s,l,l,h)).attr("transform",`translate(${-l/2+.5}, ${l/2})`);return a&&r.attr("style",a),f(e,r),e.calcIntersect=function(t,e){let r=t.width,i=I(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)},s}async function tq(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a=e.padding??0,s="neo"===e.look?21:a??0,n="neo"===e.look?12:a??0,{shapeSvg:l,bbox:h,label:c}=await p(t,e,y(e)),d=(e?.width??h.width)+("neo"===e.look?2*s:s),g=(e?.height??h.height)+("neo"===e.look?2*n:n),C=-d/2,x=-g/2,k=x/2,b=[{x:C+k,y:x},{x:C,y:0},{x:C+k,y:-x},{x:-C,y:-x},{x:-C,y:x}],{cssStyles:w}=e,T=u.A.svg(l),B=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(B.roughness=0,B.fillStyle="solid");let S=m(b),v=T.path(S,B),_=l.insert(()=>v,":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(${-k/2},0)`),c.attr("transform",`translate(${-k/2-h.width/2-(h.x-(h.left??0))}, ${-(h.height/2)-(h.y-(h.top??0))})`),f(e,_),e.intersect=function(t){return I(e,b,t)},l}async function tI(t,e){let r,o,a,{labelStyles:s,nodeStyles:n}=(0,i.GX)(e);e.labelStyle=s,r=e.cssClasses?"node "+e.cssClasses:"node default";let c=t.insert("g").attr("class",r).attr("id",e.domId||e.id),p=c.insert("g"),g=c.insert("g").attr("class","label").attr("style",n),y=e.description,m=e.label,C=await w(g,m,e.labelStyle,!0,!0),x={width:0,height:0};if((0,l.E)((0,l.D7)())){let t=C.children[0],e=(0,d.Ltv)(C);x=t.getBoundingClientRect(),e.attr("width",x.width),e.attr("height",x.height)}h.R.info("Text 2",y);let k=y||[],B=C.getBBox(),S=await w(g,Array.isArray(k)?k.join("<br/>"):k,e.labelStyle,!0,!0),v=S.children[0],_=(0,d.Ltv)(S);x=v.getBoundingClientRect(),_.attr("width",x.width),_.attr("height",x.height);let F=(e.padding||0)/2;(0,d.Ltv)(S).attr("transform","translate( "+(x.width>B.width?0:(B.width-x.width)/2)+", "+(B.height+F+5)+")"),(0,d.Ltv)(C).attr("transform","translate( "+(x.width<B.width?0:-(B.width-x.width)/2)+", 0)"),x=g.node().getBBox(),g.attr("transform","translate("+-x.width/2+", "+(-x.height/2-F+3)+")");let L=x.width+(e.padding||0),A=x.height+(e.padding||0),M=-x.width/2-F,$=-x.height/2-F;if("handDrawn"===e.look){let t=u.A.svg(c),r=(0,i.Fr)(e,{}),s=t.path(T(M,$,L,A,e.rx||0),r),n=t.line(-x.width/2-F,-x.height/2-F+B.height+F,x.width/2+F,-x.height/2-F+B.height+F,r);a=c.insert(()=>(h.R.debug("Rough node insert CXC",s),n),":first-child"),o=c.insert(()=>(h.R.debug("Rough node insert CXC",s),s),":first-child")}else o=p.insert("rect",":first-child"),a=p.insert("line"),o.attr("class","outer title-state").attr("style",n).attr("x",-x.width/2-F).attr("y",-x.height/2-F).attr("width",x.width+(e.padding||0)).attr("height",x.height+(e.padding||0)),a.attr("class","divider").attr("x1",-x.width/2-F).attr("x2",x.width/2+F).attr("y1",-x.height/2-F+B.height+F).attr("y2",-x.height/2-F+B.height+F);return f(e,o),e.intersect=function(t){return b(e,t)},c}async function tK(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 ta(t,e,o)}async function tR(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 p(t,e,y(e)),d=(e?.width??h.width)+2*a+("neo"===e.look?8:16),g=(e?.height??h.height)+2*s,m=d-8,C=8-d/2,x=-g/2,{cssStyles:k}=e,w=u.A.svg(l),T=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(T.roughness=0,T.fillStyle="solid");let B=w.polygon([{x:C,y:x},{x:C+m,y:x},{x:C+m,y:x+g},{x:C-8,y:x+g},{x:C-8,y:x},{x:C,y:x},{x:C,y:x+g}].map(t=>[t.x,t.y]),T),S=l.insert(()=>B,":first-child");return S.attr("class","basic label-container outer-path").attr("style",(0,n.KL)(k)),o&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",o),k&&"handDrawn"!==e.look&&S.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))})`),f(e,S),e.intersect=function(t){return b(e,t)},l}async function tP(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a=e.padding??0,s="neo"===e.look?16:a,n="neo"===e.look?12:a;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*s,10),e.height=Math.max((e?.height??0)/1.5-2*n,10));let{shapeSvg:l,bbox:h,label:c}=await p(t,e,y(e)),d=(e?.width?e?.width:h.width)+2*s,g=((e?.height?e?.height:h.height)+2*n)*1.5/1.5,C=-d/2,x=-g/2,{cssStyles:k}=e,b=u.A.svg(l),w=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let T=[{x:C,y:x},{x:C,y:x+g},{x:C+d,y:x+g},{x:C+d,y:x-g/2}],B=m(T),S=b.path(B,w),v=l.insert(()=>S,":first-child");return v.attr("class","basic label-container outer-path"),k&&"handDrawn"!==e.look&&v.selectChildren("path").attr("style",k),o&&"handDrawn"!==e.look&&v.selectChildren("path").attr("style",o),v.attr("transform",`translate(0, ${g/4})`),c.attr("transform",`translate(${-d/2+(e.padding??0)-(h.x-(h.left??0))}, ${-g/4+(e.padding??0)-(h.y-(h.top??0))})`),f(e,v),e.intersect=function(t){return I(e,T,t)},l}async function tz(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 ta(t,e,a)}async function tW(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a=e.padding??0,s="neo"===e.look?20:a,n="neo"===e.look?12:a,{shapeSvg:l,bbox:h}=await p(t,e,y(e)),c=h.height+("neo"===e.look?2*n:n),d=h.width+c/4+("neo"===e.look?2*s:s),g=c/2,{cssStyles:C}=e,k=u.A.svg(l),b=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let w=[{x:-d/2+g,y:-c/2},{x:d/2-g,y:-c/2},...x(-d/2+g,0,g,50,90,270),{x:d/2-g,y:c/2},...x(d/2-g,0,g,50,270,450)],T=m(w),B=k.path(T,b),S=l.insert(()=>B,":first-child");return S.attr("class","basic label-container outer-path"),C&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",C),o&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",o),f(e,S),e.intersect=function(t){return I(e,w,t)},l}async function tj(t,e){let r={rx:"neo"===e.look?3:5,ry:"neo"===e.look?3:5,classes:"flowchart-node"};return ta(t,e,r)}function tN(t,e,{config:{themeVariables:r}}){let{labelStyles:o,nodeStyles:a}=(0,i.GX)(e);e.labelStyle=o;let{cssStyles:s}=e,{lineColor:n,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 d=t.insert("g").attr("class","node default").attr("id",e.domId??e.id),p=u.A.svg(d),g=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");let y=p.circle(0,0,e.width,{...g,stroke:n,strokeWidth:2}),m=l??h,C=(e.width??0)*5/14,x=p.circle(0,0,C,{...g,fill:m,stroke:m,strokeWidth:2,fillStyle:"solid"}),k=d.insert(()=>y,":first-child");if(k.insert(()=>x),"handDrawn"!==e.look&&k.attr("class","outer-path"),s&&k.selectAll("path").attr("style",s),a&&k.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";k.attr("style",`filter:url(#${r})`)}return f(e,k),e.intersect=function(t){return O(e,(e.width??0)/2,t)},d}function tH(t,e,{config:{themeVariables:r}}){let o,{lineColor:a,nodeShadow:s}=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 n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);if("handDrawn"===e.look){let t=u.A.svg(n).circle(0,0,e.width,(0,i.ue)(a));(o=n.insert(()=>t)).attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14)}else(o=n.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&&s&&"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 f(e,o),e.intersect=function(t){return O(e,(e.width??7)/2,t)},n}async function tU(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 p(t,e,y(e)),d=(e?.width??c.width)+16+s,g=(e?.height??c.height)+l,m=d-16,C=-d/2,x=-g/2,k=[{x:0,y:0},{x:m,y:0},{x:m,y:-g},{x:0,y:-g},{x:0,y:0},{x:-8,y:0},{x:m+8,y:0},{x:m+8,y:-g},{x:-8,y:-g},{x:-8,y:0}];if("handDrawn"===e.look){let t=u.A.svg(h),r=(0,i.Fr)(e,{}),o=t.rectangle(C,x,m+16,g,r),a=t.line(C+8,x,C+8,x+g,r),s=t.line(C+8+m,x,C+8+m,x+g,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)),f(e,l)}else{let t=W(h,m,g,k);o&&t.attr("style",o),f(e,t)}return e.intersect=function(t){return I(e,k,t)},h}async function tY(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let a=e.padding??0,s="neo"===e.look?16:a,n="neo"===e.look?12:a;(e.width||e.height)&&(e.height=Math.max((e?.height??0)-2*n,10),e.width=Math.max((e?.width??0)-2*s-.2*(e.height+2*n),10));let{shapeSvg:l,bbox:h}=await p(t,e,y(e)),c=(e?.height?e?.height:h.height)+2*n,d=.2*c,g=(e?.width?e?.width:h.width)+2*s+d-d,C=-g/2,x=-c/2,{cssStyles:k}=e,b=u.A.svg(l),w=(0,i.Fr)(e,{}),T=[{x:C-d/2,y:x},{x:C+g+d/2,y:x},{x:C+g+d/2,y:x+c},{x:C-d/2,y:x+c}];"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let B=m(T),S=b.path(B,w),v=m([{x:C+g-d/2,y:x+c},{x:C+g+d/2,y:x+c},{x:C+g+d/2,y:x+c-.2*c}]),_=b.path(v,{...w,fillStyle:"solid"}),F=l.insert(()=>_,":first-child");return F.insert(()=>S,":first-child"),F.attr("class","basic label-container outer-path"),k&&"handDrawn"!==e.look&&F.selectAll("path").attr("style",k),o&&"handDrawn"!==e.look&&F.selectAll("path").attr("style",o),f(e,F),e.intersect=function(t){return I(e,T,t)},l}async function tX(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let{shapeSvg:a,bbox:s,label:n}=await p(t,e,y(e)),l=Math.max(s.width+(e.padding??0)*2,e?.width??0),h=Math.max(s.height+(e.padding??0)*2,e?.height??0),c=h/8,d=.2*l,g=.2*h,x=h+c,{cssStyles:k}=e,b=u.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:x/2},...C(-l/2-l/2*.1,x/2,l/2+l/2*.1,x/2,c,.8),{x:l/2+l/2*.1,y:-x/2},{x:-l/2-l/2*.1,y:-x/2}],B=-l/2+l/2*.1,S=-x/2-.4*g,v=[{x:B+l-d,y:(S+h)*1.3},{x:B+l,y:S+h-g},{x:B+l,y:(S+h)*.9},...C(B+l,(S+h)*1.25,B+l-d,(S+h)*1.3,-(.02*h),.5)],_=m(T),F=b.path(_,w),L=m(v),A=b.path(L,{...w,fillStyle:"solid"}),M=a.insert(()=>A,":first-child");return M.insert(()=>F,":first-child"),M.attr("class","basic label-container outer-path"),k&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",k),o&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",o),M.attr("transform",`translate(0,${-c/2})`),n.attr("transform",`translate(${-l/2+(e.padding??0)-(s.x-(s.left??0))},${-h/2+(e.padding??0)-c/2-(s.y-(s.top??0))})`),f(e,M),e.intersect=function(t){return I(e,T,t)},a}async function tG(t,e){let{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;let{shapeSvg:a,bbox:s}=await p(t,e,y(e)),n=Math.max(s.width+(e.padding??0),e?.width||0),l=Math.max(s.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",-n/2).attr("y",-l/2).attr("width",n).attr("height",l),f(e,h),e.intersect=function(t){return b(e,t)},a}(0,c.K)(tD,"question"),(0,c.K)(tq,"rect_left_inv_arrow"),(0,c.K)(tI,"rectWithTitle"),(0,c.K)(tK,"roundedRect"),(0,c.K)(tR,"shadedProcess"),(0,c.K)(tP,"slopedRect"),(0,c.K)(tz,"squareRect"),(0,c.K)(tW,"stadium"),(0,c.K)(tj,"state"),(0,c.K)(tN,"stateEnd"),(0,c.K)(tH,"stateStart"),(0,c.K)(tU,"subroutine"),(0,c.K)(tY,"taggedRect"),(0,c.K)(tX,"taggedWaveEdgedRectangle"),(0,c.K)(tG,"text");var tV=(0,c.K)((t,e,r,i,o,a)=>`M${t},${e}
|
|
134
134
|
a${o},${a} 0,0,1 0,${-i}
|
|
135
135
|
l${r},0
|
|
@@ -190,7 +190,7 @@ export const __rspack_esm_id=4975;export const __rspack_esm_ids=[4975];export co
|
|
|
190
190
|
h${-(h-10)}
|
|
191
191
|
q-5,0 -5,-5
|
|
192
192
|
Z
|
|
193
|
-
`;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(${-s.width/2}, ${-s.height/2})`),a.append(()=>l.node()),f(e,u),e.calcIntersect=function(t,e){return b(t,e)},e.intersect=function(t){return b(e,t)},a}async function ed(t,e){let r={padding:e.padding??0};return H(t,e,r)}(0,c.K)(en,"kanbanItem"),(0,c.K)(el,"bang"),(0,c.K)(eh,"cloud"),(0,c.K)(ec,"defaultMindmapNode"),(0,c.K)(ed,"mindmapCircle");var eu=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:tz},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:tK},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:tW},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:tU},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:to},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:ts},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:H},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:el},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:eh},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:tD},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:tg},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:tB},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:tT},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:t0},{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:tb},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:tl},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:tG},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:j},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:tR},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:tH},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:tN},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:td},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:tf},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:G},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:Z},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:J},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:tS},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:t5},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:tu},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:tJ},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:tL},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:tt},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:tn},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:t2},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:t4},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:th},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:t1},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:tc},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:tP},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:t$},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:tM},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:z},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Y},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:tX},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:tY},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:t3},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:tq},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:tA}],ep=(0,c.K)(()=>Object.fromEntries([...Object.entries({state:tj,choice:N,note:tE,rectWithTitle:tI,labelRect:tw,iconSquare:tx,iconCircle:tm,icon:ty,iconRounded:tC,imageSquare:tk,anchor:K,kanbanItem:en,mindmapCircle:ed,defaultMindmapNode:ec,classBox:ei,erBox:t7,requirementBox:eo}),...eu.flatMap(t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map(e=>[e,t.handler]))]),"generateShapeMap")();function eg(t){return t in ep}(0,c.K)(eg,"isValidShape");var ef=new Map;async function ey(t,e,r){let i,o;"rect"===e.shape&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");let a=e.shape?ep[e.shape]:void 0;if(!a)throw Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let s;"sandbox"===r.config.securityLevel?s="_top":e.linkTarget&&(s=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",s??null),o=await a(i,e,r)}else i=o=await a(t,e,r);return i.attr("data-look",(0,n.KL)(e.look)),e.tooltip&&o.attr("title",e.tooltip),ef.set(e.id,i),e.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}(0,c.K)(ey,"insertNode");var em=(0,c.K)((t,e)=>{ef.set(e.id,t)},"setNodeElem"),eC=(0,c.K)(()=>{ef.clear()},"clear"),ex=(0,c.K)(t=>{let e=ef.get(t.id);h.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");r.d(e,{DA:()=>w,IU:()=>$,U:()=>M,U7:()=>em,U_:()=>ex,Zk:()=>p,aP:()=>eg,gh:()=>eC,lC:()=>f,on:()=>ey})},6129(t,e,r){var i=r(24692),o=r(64183),a=r(86827),s=(0,a.K)(({flowchart:t})=>{let e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:e+r}},"getSubGraphTitleMargins");async function n(t,e){let r=t.getElementsByTagName("img");if(!r||0===r.length)return;let s=""===e.replace(/<img[^>]*>/g,"").trim();await Promise.all([...r].map(t=>new Promise(e=>{function r(){if(t.style.display="flex",t.style.flexDirection="column",s){let e=(0,o.D7)().fontSize?(0,o.D7)().fontSize:window.getComputedStyle(document.body).fontSize,[r=o.UI.fontSize]=(0,i.I5)(e),a=5*r+"px";t.style.minWidth=a,t.style.maxWidth=a}else t.style.width="100%";e(t)}(0,a.K)(r,"setupImage"),setTimeout(()=>{t.complete&&r()}),t.addEventListener("error",r),t.addEventListener("load",r)})))}(0,a.K)(n,"configureLabelImages"),r.d(e,{O:()=>s,X:()=>n})},14782(t,e,r){var i=r(64183),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"),s=(0,o.K)(t=>{let e=n([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),n=(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"),l=(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"),h=(0,o.K)(t=>{let{stylesArray:e}=s(t),r=[],i=[],o=[],a=[];return e.forEach(t=>{let e=t[0];l(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"),c=(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:d(l.get("stroke-dasharray"))},e)},"userNodeOverrides"),d=(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");r.d(e,{Fr:()=>c,GX:()=>h,KX:()=>l,WW:()=>s,ue:()=>a})},23656(t,e,r){r.d(e,{W:()=>tK,G:()=>tj});var i=r(15198),o=r(24692),a=r(64183),s=r(31293),n=r(86827),l=r(8141);function h(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var c=h(),d={exec:()=>null};function u(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(g.caret,"$1"),r=r.replace(t,o),i},getRegex:()=>new RegExp(r,e)};return i}var p=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),g={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")},f=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,y=/(?:[*+-]|\d{1,9}[.)])/,m=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,C=u(m).replace(/bull/g,y).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(),x=u(m).replace(/bull/g,y).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(),k=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,b=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,w=u(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",b).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),T=u(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,y).getRegex(),B="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\S]*?(?:-->|$))/,v=u("^ {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|/?>)[\\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",S).replace("tag",B).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),_=u(k).replace("hr",f).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",B).getRegex(),F={blockquote:u(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",_).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:w,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:f,html:v,lheading:C,list:T,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:_,table:d,text:/^[^\n]+/},L=u("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",f).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",B).getRegex(),A={...F,lheading:x,table:L,paragraph:u(k).replace("hr",f).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",L).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",B).getRegex()},M={...F,html:u("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",S).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:d,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:u(k).replace("hr",f).replace("heading",` *#{1,6} *[^
|
|
193
|
+
`;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(${-s.width/2}, ${-s.height/2})`),a.append(()=>l.node()),f(e,u),e.calcIntersect=function(t,e){return b(t,e)},e.intersect=function(t){return b(e,t)},a}async function ed(t,e){let r={padding:e.padding??0};return H(t,e,r)}(0,c.K)(en,"kanbanItem"),(0,c.K)(el,"bang"),(0,c.K)(eh,"cloud"),(0,c.K)(ec,"defaultMindmapNode"),(0,c.K)(ed,"mindmapCircle");var eu=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:tz},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:tK},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:tW},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:tU},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:to},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:ts},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:H},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:el},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:eh},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:tD},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:tg},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:tB},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:tT},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:t0},{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:tb},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:tl},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:tG},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:j},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:tR},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:tH},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:tN},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:td},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:tf},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:G},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:Z},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:J},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:tS},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:t5},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:tu},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:tJ},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:tL},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:tt},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:tn},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:t2},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:t4},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:th},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:t1},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:tc},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:tP},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:t$},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:tM},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:z},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Y},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:tX},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:tY},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:t3},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:tq},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:tA}],ep=(0,c.K)(()=>Object.fromEntries([...Object.entries({state:tj,choice:N,note:tE,rectWithTitle:tI,labelRect:tw,iconSquare:tx,iconCircle:tm,icon:ty,iconRounded:tC,imageSquare:tk,anchor:K,kanbanItem:en,mindmapCircle:ed,defaultMindmapNode:ec,classBox:ei,erBox:t7,requirementBox:eo}),...eu.flatMap(t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map(e=>[e,t.handler]))]),"generateShapeMap")();function eg(t){return t in ep}(0,c.K)(eg,"isValidShape");var ef=new Map;async function ey(t,e,r){let i,o;"rect"===e.shape&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");let a=e.shape?ep[e.shape]:void 0;if(!a)throw Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let s;"sandbox"===r.config.securityLevel?s="_top":e.linkTarget&&(s=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",s??null),o=await a(i,e,r)}else i=o=await a(t,e,r);return i.attr("data-look",(0,n.KL)(e.look)),e.tooltip&&o.attr("title",e.tooltip),ef.set(e.id,i),e.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}(0,c.K)(ey,"insertNode");var em=(0,c.K)((t,e)=>{ef.set(e.id,t)},"setNodeElem"),eC=(0,c.K)(()=>{ef.clear()},"clear"),ex=(0,c.K)(t=>{let e=ef.get(t.id);h.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");r.d(e,{DA:()=>w,IU:()=>$,U:()=>M,U7:()=>em,U_:()=>ex,Zk:()=>p,aP:()=>eg,gh:()=>eC,lC:()=>f,on:()=>ey})},6129(t,e,r){var i=r(24692),o=r(64183),a=r(86827),s=(0,a.K)(({flowchart:t})=>{let e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:e+r}},"getSubGraphTitleMargins");async function n(t,e){let r=t.getElementsByTagName("img");if(!r||0===r.length)return;let s=""===e.replace(/<img[^>]*>/g,"").trim();await Promise.all([...r].map(t=>new Promise(e=>{function r(){if(t.style.display="flex",t.style.flexDirection="column",s){let e=(0,o.D7)().fontSize?(0,o.D7)().fontSize:window.getComputedStyle(document.body).fontSize,[r=o.UI.fontSize]=(0,i.I5)(e),a=5*r+"px";t.style.minWidth=a,t.style.maxWidth=a}else t.style.width="100%";e(t)}(0,a.K)(r,"setupImage"),setTimeout(()=>{t.complete&&r()}),t.addEventListener("error",r),t.addEventListener("load",r)})))}(0,a.K)(n,"configureLabelImages"),r.d(e,{O:()=>s,X:()=>n})},14782(t,e,r){var i=r(64183),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"),s=(0,o.K)(t=>{let e=n([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),n=(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"),l=(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"),h=(0,o.K)(t=>{let{stylesArray:e}=s(t),r=[],i=[],o=[],a=[];return e.forEach(t=>{let e=t[0];l(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"),c=(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:d(l.get("stroke-dasharray"))},e)},"userNodeOverrides"),d=(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");r.d(e,{Fr:()=>c,GX:()=>h,KX:()=>l,WW:()=>s,ue:()=>a})},23656(t,e,r){r.d(e,{W:()=>tK,G:()=>tj});var i=r(15198),o=r(24692),a=r(64183),s=r(31293),n=r(86827),l=r(74045);function h(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var c=h(),d={exec:()=>null};function u(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(g.caret,"$1"),r=r.replace(t,o),i},getRegex:()=>new RegExp(r,e)};return i}var p=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),g={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")},f=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,y=/(?:[*+-]|\d{1,9}[.)])/,m=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,C=u(m).replace(/bull/g,y).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(),x=u(m).replace(/bull/g,y).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(),k=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,b=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,w=u(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",b).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),T=u(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,y).getRegex(),B="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\S]*?(?:-->|$))/,v=u("^ {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|/?>)[\\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",S).replace("tag",B).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),_=u(k).replace("hr",f).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",B).getRegex(),F={blockquote:u(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",_).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:w,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:f,html:v,lheading:C,list:T,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:_,table:d,text:/^[^\n]+/},L=u("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",f).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",B).getRegex(),A={...F,lheading:x,table:L,paragraph:u(k).replace("hr",f).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",L).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",B).getRegex()},M={...F,html:u("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",S).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:d,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:u(k).replace("hr",f).replace("heading",` *#{1,6} *[^
|
|
194
194
|
]`).replace("lheading",C).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},$=/^( {2,}|\\)\n(?!\s*$)/,E=/[\p{P}\p{S}]/u,O=/[\s\p{P}\p{S}]/u,D=/[^\s\p{P}\p{S}]/u,q=u(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,O).getRegex(),I=/(?!~)[\p{P}\p{S}]/u,K=u(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",p?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),R=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,P=u(R,"u").replace(/punct/g,E).getRegex(),z=u(R,"u").replace(/punct/g,I).getRegex(),W="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",j=u(W,"gu").replace(/notPunctSpace/g,D).replace(/punctSpace/g,O).replace(/punct/g,E).getRegex(),N=u(W,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,I).getRegex(),H=u("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,D).replace(/punctSpace/g,O).replace(/punct/g,E).getRegex(),U=u(/\\(punct)/,"gu").replace(/punct/g,E).getRegex(),Y=u(/^<(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(),X=u(S).replace("(?:--\x3e|$)","--\x3e").getRegex(),G=u("^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",X).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),V=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Z=u(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",V).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Q=u(/^!?\[(label)\]\[(ref)\]/).replace("label",V).replace("ref",b).getRegex(),J=u(/^!?\[(ref)\](?:\[\])?/).replace("ref",b).getRegex(),tt=u("reflink|nolink(?!\\()","g").replace("reflink",Q).replace("nolink",J).getRegex(),te=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,tr={_backpedal:d,anyPunctuation:U,autolink:Y,blockSkip:K,br:$,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:d,emStrongLDelim:P,emStrongRDelimAst:j,emStrongRDelimUnd:H,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Z,nolink:J,punctuation:q,reflink:Q,reflinkSearch:tt,tag:G,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:d},ti={...tr,link:u(/^!?\[(label)\]\((.*?)\)/).replace("label",V).getRegex(),reflink:u(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",V).getRegex()},to={...tr,emStrongRDelimAst:N,emStrongLDelim:z,url:u(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",te).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:u(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",te).getRegex()},ta={...to,br:u($).replace("{2,}","*").getRegex(),text:u(to.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ts={normal:F,gfm:A,pedantic:M},tn={normal:tr,gfm:to,breaks:ta,pedantic:ti},tl={"&":"&","<":"<",">":">",'"':""","'":"'"},th=t=>tl[t];function tc(t,e){if(e){if(g.escapeTest.test(t))return t.replace(g.escapeReplace,th)}else if(g.escapeTestNoEncode.test(t))return t.replace(g.escapeReplaceNoEncode,th);return t}function td(t){try{t=encodeURI(t).replace(g.percentDecode,"%")}catch{return null}return t}function tu(t,e){let r=t.replace(g.findPipe,(t,e,r)=>{let i=!1,o=e;for(;--o>=0&&"\\"===r[o];)i=!i;return i?"|":" |"}).split(g.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(g.slashPipe,"|");return r}function tp(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 tg(t,e,r,i,o){let a=e.href,s=e.title||null,n=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:s,text:n,tokens:i.inlineTokens(n)};return i.state.inLink=!1,l}var tf=class{options;rules;lexer;constructor(t){this.options=t||c}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:tp(t,`
|
|
195
195
|
`)}}}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(`
|
|
196
196
|
`).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(`
|
|
@@ -249,7 +249,7 @@ ${t}</tr>
|
|
|
249
249
|
`}tablecell(t){let e=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>
|
|
250
250
|
`}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>${tc(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=td(t);if(null===o)return i;let a='<a href="'+(t=o)+'"';return e&&(a+=' title="'+tc(e)+'"'),a+=">"+i+"</a>"}image({href:t,title:e,text:r,tokens:i}){i&&(r=this.parser.parseInline(i,this.parser.textRenderer));let o=td(t);if(null===o)return tc(r);t=o;let a=`<img src="${t}" alt="${r}"`;return e&&(a+=` title="${tc(e)}"`),a+=">"}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:tc(t.text)}},tC=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""}},tx=class t{options;renderer;textRenderer;constructor(t){this.options=t||c,this.options.renderer=this.options.renderer||new tm,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new tC}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;case"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,s=this.renderer.text(a);for(;i+1<t.length&&"text"===t[i+1].type;)a=t[++i],s+=`
|
|
251
251
|
`+this.renderer.text(a);e?r+=this.renderer.paragraph({type:"paragraph",raw:s,text:s,tokens:[{type:"text",raw:s,text:s,escaped:!0}]}):r+=s;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}},tk=class{options;block;constructor(t){this.options=t||c}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?ty.lex:ty.lexInline}provideParser(){return this.block?tx.parse:tx.parseInline}},tb=new class{defaults=h();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=tx;Renderer=tm;TextRenderer=tC;Lexer=ty;Tokenizer=tf;Hooks=tk;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 tm(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 tf(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 tk;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];tk.passThroughHooks.has(r)?e[r]=t=>{if(this.defaults.async&&tk.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 ty.lex(t,e??this.defaults)}parser(t,e){return tx.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?ty.lex:ty.lexInline)(r,o),a=o.hooks?await o.hooks.processAllTokens(i):i;o.walkTokens&&await Promise.all(this.walkTokens(a,o.walkTokens));let s=await (o.hooks?await o.hooks.provideParser():t?tx.parse:tx.parseInline)(a,o);return o.hooks?await o.hooks.postprocess(s):s})().catch(a);try{o.hooks&&(e=o.hooks.preprocess(e));let r=(o.hooks?o.hooks.provideLexer():t?ty.lex:ty.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?tx.parse:tx.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+=`
|
|
252
|
-
Please report this to https://github.com/markedjs/marked.`,t){let t="<p>An error occurred:</p><pre>"+tc(r.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(r);throw r}}};function tw(t,e){return tb.parse(t,e)}tw.options=tw.setOptions=function(t){return tb.setOptions(t),tw.defaults=tb.defaults,c=tw.defaults,tw},tw.getDefaults=h,tw.defaults=c,tw.use=function(...t){return tb.use(...t),tw.defaults=tb.defaults,c=tw.defaults,tw},tw.walkTokens=function(t,e){return tb.walkTokens(t,e)},tw.parseInline=tb.parseInline,tw.Parser=tx,tw.parser=tx.parse,tw.Renderer=tm,tw.TextRenderer=tC,tw.Lexer=ty,tw.lexer=ty.lex,tw.Tokenizer=tf,tw.Hooks=tk,tw.parse=tw,tw.options,tw.setOptions,tw.use,tw.walkTokens,tw.parseInline,tx.parse,ty.lex;var tT=r(84146);function tB(t,{markdownAutoWrap:e}){let r=t.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n");return(0,tT.T)(r)}function tS(t){return t.split(/\\n|\n|<br\s*\/?>/gi).map(t=>t.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(t=>({content:t,type:"normal"}))??[])}function tv(t,e={}){let r=tB(t,e),i=tw.lexer(r),o=[[]],a=0;function s(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(/'/g,"'"))&&o[a].push({content:t,type:e})})}):"strong"===t.type||"em"===t.type?t.tokens.forEach(e=>{s(e,t.type)}):"html"===t.type&&o[a].push({content:t.text,type:"normal"})}return(0,n.K)(s,"processNode"),i.forEach(t=>{"paragraph"===t.type?t.tokens?.forEach(t=>{s(t)}):"html"===t.type?o[a].push({content:t.text,type:"normal"}):o[a].push({content:t.raw,type:"normal"})}),o}function t_(t){return t?`<p>${t.replace(/\\n|\n/g,"<br />")}</p>`:""}function tF(t,{markdownAutoWrap:e}={}){let r=tw.lexer(t);function i(t){if("text"===t.type)return!1===e?t.text.replace(/\n */g,"<br/>").replace(/ /g," "):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 s.R.warn(`Unsupported markdown: ${t.type}`),t.raw}return(0,n.K)(i,"output"),r.map(i).join("")}function tL(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(t=>t.segment):[...t]}function tA(t,e){return tM(t,[],tL(e.content),e.type)}function tM(t,e,r,i){if(0===r.length)return[{content:e.join(""),type:i},{content:"",type:i}];let[o,...a]=r,s=[...e,o];return t([{content:s.join(""),type:i}])?tM(t,s,a,i):(0===e.length&&o&&(e.push(o),r.shift()),[{content:e.join(""),type:i},{content:r.join(""),type:i}])}function t$(t,e){if(t.some(({content:t})=>t.includes("\n")))throw Error("splitLineToFitWidth does not support newlines in the line");return tE(t,e)}function tE(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"},s=[...i];if(""!==o&&s.push({content:o,type:"normal"}),s.push(a),e(s))return tE(t,e,r,s);if(i.length>0)r.push(i),t.unshift(a);else if(a.content){let[i,o]=tA(e,a);r.push([i]),o.content&&t.unshift(o)}return tE(t,e,r)}function tO(t,e){e&&t.attr("style",e)}async function tD(t,e,r,i,o=!1,s=(0,a.zj)()){let n=t.append("foreignObject");n.attr("width",`${Math.min(10*r,16384)}px`),n.attr("height",`${Math.min(10*r,16384)}px`);let l=n.append("xhtml:div"),h=(0,a.Wi)(e.label)?await (0,a.dj)(e.label.replace(a.Y2.lineBreakRegex,"\n"),s):(0,a.jZ)(e.label,s),c=e.isNode?"nodeLabel":"edgeLabel",d=l.append("span");d.html(h),tO(d,e.labelStyle),d.attr("class",`${c} ${i}`),tO(l,e.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),1/0!==r&&(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");let u=l.node().getBoundingClientRect();return u.width===r&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",r+"px"),u=l.node().getBoundingClientRect()),n.node()}function tq(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 tI(t,e,r){let i=t.append("text"),o=tq(i,1,e);tz(o,r);let a=o.node().getComputedTextLength();return i.remove(),a}function tK(t,e,r){let i=t.append("text"),o=tq(i,1,e);tz(o,[{content:r,type:"normal"}]);let a=o.node()?.getBoundingClientRect();return a&&i.remove(),a}function tR(t,e,r,i=!1,o=!1){let a=e.append("g"),s=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,n.K)(e=>tI(a,1.1,e)<=t,"checkWidth");for(let t of r(e)?[e]:t$(e,r))tz(tq(l,h,1.1,o),t),h++}if(!i)return l.node();{let t=l.node().getBBox();return s.attr("x",t.x-2).attr("y",t.y-2).attr("width",t.width+4).attr("height",t.height+4),a.node()}}function tP(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 tz(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(tP(e.content)):i.text(" "+tP(e.content))})}async function tW(t,e={}){let r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(t,o,s)=>(r.push((async()=>{let r=`${o}:${s}`;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,n.K)(tB,"preprocessMarkdown"),(0,n.K)(tS,"nonMarkdownToLines"),(0,n.K)(tv,"markdownToLines"),(0,n.K)(t_,"nonMarkdownToHTML"),(0,n.K)(tF,"markdownToHTML"),(0,n.K)(tL,"splitTextToChars"),(0,n.K)(tA,"splitWordToFitWidth"),(0,n.K)(tM,"splitWordToFitWidthRecursion"),(0,n.K)(t$,"splitLineToFitWidth"),(0,n.K)(tE,"splitLineToFitWidthRecursion"),(0,n.K)(tO,"applyStyle"),(0,n.K)(tD,"addHtmlSpan"),(0,n.K)(tq,"createTspan"),(0,n.K)(tI,"computeWidthOfText"),(0,n.K)(tK,"computeDimensionOfText"),(0,n.K)(tR,"createFormattedText"),(0,n.K)(tP,"decodeHTMLEntities"),(0,n.K)(tz,"updateTextContentAndStyles"),(0,n.K)(tW,"replaceIconSubstring");var tj=(0,n.K)(async(t,e="",{style:r="",isTitle:i=!1,classes:n="",useHtmlLabels:h=!0,markdown:c=!0,isNode:d=!0,width:u=200,addSvgBackground:p=!1}={},g)=>{if(s.R.debug("XYZ createText",e,r,i,n,h,d,"addSvgBackground: ",p),h){let i=c?tF(e,g):t_(e),s=await tW((0,o.Sm)(i),g),l=e.replace(/\\\\/g,"\\"),h={isNode:d,label:(0,a.Wi)(e)?l:s,labelStyle:r.replace("fill:","color:")};return await tD(t,h,u,n,p,g)}{let a=(0,o.Sm)(e.replace(/<br\s*\/?>/g,"<br/>")),s=tR(u,t,c?tv(a.replace("<br>","<br/>"),g):tS(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,l.Ltv)(s).attr("style",t)}else{let t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");(0,l.Ltv)(s).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,l.Ltv)(s).select("text").attr("style",e)}return i?(0,l.Ltv)(s).selectAll("tspan.text-outer-tspan").classed("title-row",!0):(0,l.Ltv)(s).selectAll("tspan.text-outer-tspan").classed("row",!0),s}},"createText")},31293(t,e,r){var i=r(86827),o=r(74353),a={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},s={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")},n=(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),s.trace=()=>{},s.debug=()=>{},s.info=()=>{},s.warn=()=>{},s.error=()=>{},s.fatal=()=>{},e<=a.fatal&&(s.fatal=console.error?console.error.bind(console,l("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",l("FATAL"))),e<=a.error&&(s.error=console.error?console.error.bind(console,l("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",l("ERROR"))),e<=a.warn&&(s.warn=console.warn?console.warn.bind(console,l("WARN"),"color: orange"):console.log.bind(console,"\x1b[33m",l("WARN"))),e<=a.info&&(s.info=console.info?console.info.bind(console,l("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",l("INFO"))),e<=a.debug&&(s.debug=console.debug?console.debug.bind(console,l("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("DEBUG"))),e<=a.trace&&(s.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");r.d(e,{H:()=>n,R:()=>s})},86827(t,e,r){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})};r.d(e,{K:()=>o,V:()=>a})},81818(t,e,r){var i,o=r(86827);function a(t){return null==t}function s(t){return"object"==typeof t&&null!==t}function n(t,e){var r,i="";for(r=0;r<e;r+=1)i+=t;return i}function l(t){return 0===t&&-1/0==1/t}(0,o.K)(a,"isNothing"),(0,o.K)(s,"isObject"),(0,o.K)(function(t){return Array.isArray(t)?t:a(t)?[]:[t]},"toArray"),(0,o.K)(function(t,e){var r,i,o,a;if(e)for(r=0,i=(a=Object.keys(e)).length;r<i;r+=1)t[o=a[r]]=e[o];return t},"extend"),(0,o.K)(n,"repeat"),(0,o.K)(l,"isNegativeZero");function h(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+="\n\n"+t.mark.snippet),i+" "+r):i}function c(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=h(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}function d(t,e,r,i,o){var a="",s="",n=Math.floor(o/2)-1;return i-e>n&&(e=i-n+(a=" ... ").length),r-i>n&&(r=i+n-(s=" ...").length),{str:a+t.slice(e,r).replace(/\t/g,"→")+s,pos:i-e+a.length}}function u(t,e){return n(" ",e-t.length)+t}function p(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],o=[],a=-1;s=r.exec(t.buffer);)o.push(s.index),i.push(s.index+s[0].length),t.position<=s.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var s,l,h,c="",p=Math.min(t.line+e.linesAfter,o.length).toString().length,g=e.maxLength-(e.indent+p+3);for(l=1;l<=e.linesBefore&&!(a-l<0);l++)h=d(t.buffer,i[a-l],o[a-l],t.position-(i[a]-i[a-l]),g),c=n(" ",e.indent)+u((t.line-l+1).toString(),p)+" | "+h.str+"\n"+c;for(h=d(t.buffer,i[a],o[a],t.position,g),c+=n(" ",e.indent)+u((t.line+1).toString(),p)+" | "+h.str+"\n"+n("-",e.indent+p+3+h.pos)+"^\n",l=1;l<=e.linesAfter&&!(a+l>=o.length);l++)h=d(t.buffer,i[a+l],o[a+l],t.position-(i[a]-i[a+l]),g),c+=n(" ",e.indent)+u((t.line+l+1).toString(),p)+" | "+h.str+"\n";return c.replace(/\n$/,"")}(0,o.K)(h,"formatError"),(0,o.K)(c,"YAMLException$1"),c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,c.prototype.toString=(0,o.K)(function(t){return this.name+": "+h(this,t)},"toString"),(0,o.K)(d,"getLine"),(0,o.K)(u,"padStart"),(0,o.K)(p,"makeSnippet");var g=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],f=["scalar","sequence","mapping"];function y(t){var e={};return null!==t&&Object.keys(t).forEach(function(r){t[r].forEach(function(t){e[String(t)]=r})}),e}function m(t,e){if(Object.keys(e=e||{}).forEach(function(e){if(-1===g.indexOf(e))throw new c('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=y(e.styleAliases||null),-1===f.indexOf(this.kind))throw new c('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}function C(t,e){var r=[];return t[e].forEach(function(t){var 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 x(){var t,e,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(t){t.multi?(r.multi[t.kind].push(t),r.multi.fallback.push(t)):r[t.kind][t.tag]=r.fallback[t.tag]=t}for((0,o.K)(i,"collectType"),t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(i);return r}function k(t){return this.extend(t)}(0,o.K)(y,"compileStyleAliases"),(0,o.K)(m,"Type$1"),(0,o.K)(C,"compileList"),(0,o.K)(x,"compileMap"),(0,o.K)(k,"Schema$1"),k.prototype.extend=(0,o.K)(function(t){var e=[],r=[];if(t instanceof m)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new c("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.forEach(function(t){if(!(t instanceof m))throw new c("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new c("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new c("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(t){if(!(t instanceof m))throw new c("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(k.prototype);return i.implicit=(this.implicit||[]).concat(e),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=C(i,"implicit"),i.compiledExplicit=C(i,"explicit"),i.compiledTypeMap=x(i.compiledImplicit,i.compiledExplicit),i},"extend");var b=new k({explicit:[new m("tag:yaml.org,2002:str",{kind:"scalar",construct:(0,o.K)(function(t){return null!==t?t:""},"construct")}),new m("tag:yaml.org,2002:seq",{kind:"sequence",construct:(0,o.K)(function(t){return null!==t?t:[]},"construct")}),new m("tag:yaml.org,2002:map",{kind:"mapping",construct:(0,o.K)(function(t){return null!==t?t:{}},"construct")})]});function w(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function T(){return null}function B(t){return null===t}(0,o.K)(w,"resolveYamlNull"),(0,o.K)(T,"constructYamlNull"),(0,o.K)(B,"isNull");var S=new m("tag:yaml.org,2002:null",{kind:"scalar",resolve:w,construct:T,predicate:B,represent:{canonical:(0,o.K)(function(){return"~"},"canonical"),lowercase:(0,o.K)(function(){return"null"},"lowercase"),uppercase:(0,o.K)(function(){return"NULL"},"uppercase"),camelcase:(0,o.K)(function(){return"Null"},"camelcase"),empty:(0,o.K)(function(){return""},"empty")},defaultStyle:"lowercase"});function v(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)}function _(t){return"true"===t||"True"===t||"TRUE"===t}function F(t){return"[object Boolean]"===Object.prototype.toString.call(t)}(0,o.K)(v,"resolveYamlBoolean"),(0,o.K)(_,"constructYamlBoolean"),(0,o.K)(F,"isBoolean");var L=new m("tag:yaml.org,2002:bool",{kind:"scalar",resolve:v,construct:_,predicate:F,represent:{lowercase:(0,o.K)(function(t){return t?"true":"false"},"lowercase"),uppercase:(0,o.K)(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:(0,o.K)(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function A(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function M(t){return 48<=t&&t<=55}function $(t){return 48<=t&&t<=57}function E(t){if(null===t)return!1;var e,r=t.length,i=0,o=!1;if(!r)return!1;if(("-"===(e=t[i])||"+"===e)&&(e=t[++i]),"0"===e){if(i+1===r)return!0;if("b"===(e=t[++i])){for(i++;i<r;i++)if("_"!==(e=t[i])){if("0"!==e&&"1"!==e)return!1;o=!0}return o&&"_"!==e}if("x"===e){for(i++;i<r;i++)if("_"!==(e=t[i])){if(!A(t.charCodeAt(i)))return!1;o=!0}return o&&"_"!==e}if("o"===e){for(i++;i<r;i++)if("_"!==(e=t[i])){if(!M(t.charCodeAt(i)))return!1;o=!0}return o&&"_"!==e}}if("_"===e)return!1;for(;i<r;i++)if("_"!==(e=t[i])){if(!$(t.charCodeAt(i)))return!1;o=!0}return!!o&&"_"!==e}function O(t){var e,r=t,i=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),("-"===(e=r[0])||"+"===e)&&("-"===e&&(i=-1),e=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===e){if("b"===r[1])return i*parseInt(r.slice(2),2);if("x"===r[1])return i*parseInt(r.slice(2),16);if("o"===r[1])return i*parseInt(r.slice(2),8)}return i*parseInt(r,10)}function D(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!l(t)}(0,o.K)(A,"isHexCode"),(0,o.K)(M,"isOctCode"),(0,o.K)($,"isDecCode"),(0,o.K)(E,"resolveYamlInteger"),(0,o.K)(O,"constructYamlInteger"),(0,o.K)(D,"isInteger");var q=new m("tag:yaml.org,2002:int",{kind:"scalar",resolve:E,construct:O,predicate:D,represent:{binary:(0,o.K)(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:(0,o.K)(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:(0,o.K)(function(t){return t.toString(10)},"decimal"),hexadecimal:(0,o.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"]}}),I=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function K(t){return null!==t&&!!I.test(t)&&"_"!==t[t.length-1]}function R(t){var e,r;return(r="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e)?1===r?1/0:-1/0:".nan"===e?0/0:r*parseFloat(e,10)}(0,o.K)(K,"resolveYamlFloat"),(0,o.K)(R,"constructYamlFloat");var P=/^[-+]?[0-9]+e/;function z(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(1/0===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(-1/0===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(l(t))return"-0.0";return r=t.toString(10),P.test(r)?r.replace("e",".e"):r}function W(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||l(t))}(0,o.K)(z,"representYamlFloat"),(0,o.K)(W,"isFloat");var j=new m("tag:yaml.org,2002:float",{kind:"scalar",resolve:K,construct:R,predicate:W,represent:z,defaultStyle:"lowercase"}),N=b.extend({implicit:[S,L,q,j]}),H=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),U=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 Y(t){return null!==t&&(null!==H.exec(t)||null!==U.exec(t))}function X(t){var e,r,i,o,a,s,n,l,h=0,c=null;if(null===(e=H.exec(t))&&(e=U.exec(t)),null===e)throw Error("Date resolve error");if(r=+e[1],i=e[2]-1,o=+e[3],!e[4])return new Date(Date.UTC(r,i,o));if(a=+e[4],s=+e[5],n=+e[6],e[7]){for(h=e[7].slice(0,3);h.length<3;)h+="0";h*=1}return e[9]&&(c=(60*e[10]+ +(e[11]||0))*6e4,"-"===e[9]&&(c=-c)),l=new Date(Date.UTC(r,i,o,a,s,n,h)),c&&l.setTime(l.getTime()-c),l}function G(t){return t.toISOString()}(0,o.K)(Y,"resolveYamlTimestamp"),(0,o.K)(X,"constructYamlTimestamp"),(0,o.K)(G,"representYamlTimestamp");var V=new m("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Y,construct:X,instanceOf:Date,represent:G});function Z(t){return"<<"===t||null===t}(0,o.K)(Z,"resolveYamlMerge");var Q=new m("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Z}),J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function tt(t){if(null===t)return!1;var e,r,i=0,o=t.length;for(r=0;r<o;r++)if(!((e=J.indexOf(t.charAt(r)))>64)){if(e<0)return!1;i+=6}return i%8==0}function te(t){var e,r,i=t.replace(/[\r\n=]/g,""),o=i.length,a=0,s=[];for(e=0;e<o;e++)e%4==0&&e&&(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)),a=a<<6|J.indexOf(i.charAt(e));return 0==(r=o%4*6)?(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)):18===r?(s.push(a>>10&255),s.push(a>>2&255)):12===r&&s.push(a>>4&255),new Uint8Array(s)}function tr(t){var e,r,i="",o=0,a=t.length;for(e=0;e<a;e++)e%3==0&&e&&(i+=J[o>>18&63],i+=J[o>>12&63],i+=J[o>>6&63],i+=J[63&o]),o=(o<<8)+t[e];return 0==(r=a%3)?(i+=J[o>>18&63],i+=J[o>>12&63],i+=J[o>>6&63],i+=J[63&o]):2===r?(i+=J[o>>10&63],i+=J[o>>4&63],i+=J[o<<2&63],i+=J[64]):1===r&&(i+=J[o>>2&63],i+=J[o<<4&63],i+=J[64],i+=J[64]),i}function ti(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}(0,o.K)(tt,"resolveYamlBinary"),(0,o.K)(te,"constructYamlBinary"),(0,o.K)(tr,"representYamlBinary"),(0,o.K)(ti,"isBinary");var to=new m("tag:yaml.org,2002:binary",{kind:"scalar",resolve:tt,construct:te,predicate:ti,represent:tr}),ta=Object.prototype.hasOwnProperty,ts=Object.prototype.toString;function tn(t){if(null===t)return!0;var e,r,i,o,a,s=[];for(e=0,r=t.length;e<r;e+=1){if(i=t[e],a=!1,"[object Object]"!==ts.call(i))return!1;for(o in i)if(ta.call(i,o))if(a)return!1;else a=!0;if(!a||-1!==s.indexOf(o))return!1;s.push(o)}return!0}function tl(t){return null!==t?t:[]}(0,o.K)(tn,"resolveYamlOmap"),(0,o.K)(tl,"constructYamlOmap");var th=new m("tag:yaml.org,2002:omap",{kind:"sequence",resolve:tn,construct:tl}),tc=Object.prototype.toString;function td(t){var e,r,i,o,a;if(null===t)return!0;for(a=Array(t.length),e=0,r=t.length;e<r;e+=1){if(i=t[e],"[object Object]"!==tc.call(i)||1!==(o=Object.keys(i)).length)return!1;a[e]=[o[0],i[o[0]]]}return!0}function tu(t){var e,r,i,o,a;if(null===t)return[];for(a=Array(t.length),e=0,r=t.length;e<r;e+=1)o=Object.keys(i=t[e]),a[e]=[o[0],i[o[0]]];return a}(0,o.K)(td,"resolveYamlPairs"),(0,o.K)(tu,"constructYamlPairs");var tp=new m("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:td,construct:tu}),tg=Object.prototype.hasOwnProperty;function tf(t){var e;if(null===t)return!0;for(e in t)if(tg.call(t,e)&&null!==t[e])return!1;return!0}function ty(t){return null!==t?t:{}}(0,o.K)(tf,"resolveYamlSet"),(0,o.K)(ty,"constructYamlSet");var tm=new m("tag:yaml.org,2002:set",{kind:"mapping",resolve:tf,construct:ty}),tC=N.extend({implicit:[V,Q],explicit:[to,th,tp,tm]}),tx=Object.prototype.hasOwnProperty,tk=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,tb=/[\x85\u2028\u2029]/,tw=/[,\[\]\{\}]/,tT=/^(?:!|!!|![a-z\-]+!)$/i,tB=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function tS(t){return Object.prototype.toString.call(t)}function tv(t){return 10===t||13===t}function t_(t){return 9===t||32===t}function tF(t){return 9===t||32===t||10===t||13===t}function tL(t){return 44===t||91===t||93===t||123===t||125===t}function tA(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function tM(t){return 120===t?2:117===t?4:8*(85===t)}function t$(t){return 48<=t&&t<=57?t-48:-1}function tE(t){return 48===t?"\0":97===t?"\x07":98===t?"\b":116===t||9===t?" ":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"\x1b":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"
":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function tO(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function tD(t,e,r){"__proto__"===e?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}(0,o.K)(tS,"_class"),(0,o.K)(tv,"is_EOL"),(0,o.K)(t_,"is_WHITE_SPACE"),(0,o.K)(tF,"is_WS_OR_EOL"),(0,o.K)(tL,"is_FLOW_INDICATOR"),(0,o.K)(tA,"fromHexCode"),(0,o.K)(tM,"escapedHexLen"),(0,o.K)(t$,"fromDecimalCode"),(0,o.K)(tE,"simpleEscapeSequence"),(0,o.K)(tO,"charFromCodepoint"),(0,o.K)(tD,"setProperty");var tq=Array(256),tI=Array(256);for(i=0;i<256;i++)tq[i]=+!!tE(i),tI[i]=tE(i);function tK(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||tC,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function tR(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=p(r),new c(e,r)}function tP(t,e){throw tR(t,e)}function tz(t,e){t.onWarning&&t.onWarning.call(null,tR(t,e))}(0,o.K)(tK,"State$1"),(0,o.K)(tR,"generateError"),(0,o.K)(tP,"throwError"),(0,o.K)(tz,"throwWarning");var tW={YAML:(0,o.K)(function(t,e,r){var i,o,a;null!==t.version&&tP(t,"duplication of %YAML directive"),1!==r.length&&tP(t,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&tP(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),a=parseInt(i[2],10),1!==o&&tP(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,1!==a&&2!==a&&tz(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:(0,o.K)(function(t,e,r){var i,o;2!==r.length&&tP(t,"TAG directive accepts exactly two arguments"),i=r[0],o=r[1],tT.test(i)||tP(t,"ill-formed tag handle (first argument) of the TAG directive"),tx.call(t.tagMap,i)&&tP(t,'there is a previously declared suffix for "'+i+'" tag handle'),tB.test(o)||tP(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch(e){tP(t,"tag prefix is malformed: "+o)}t.tagMap[i]=o},"handleTagDirective")};function tj(t,e,r,i){var o,a,s,n;if(e<r){if(n=t.input.slice(e,r),i)for(o=0,a=n.length;o<a;o+=1)9===(s=n.charCodeAt(o))||32<=s&&s<=1114111||tP(t,"expected valid JSON character");else tk.test(n)&&tP(t,"the stream contains non-printable characters");t.result+=n}}function tN(t,e,r,i){var o,a,n,l;for(s(r)||tP(t,"cannot merge mappings; the provided source object is unacceptable"),n=0,l=(o=Object.keys(r)).length;n<l;n+=1)a=o[n],tx.call(e,a)||(tD(e,a,r[a]),i[a]=!0)}function tH(t,e,r,i,o,a,s,n,l){var h,c;if(Array.isArray(o))for(h=0,c=(o=Array.prototype.slice.call(o)).length;h<c;h+=1)Array.isArray(o[h])&&tP(t,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===tS(o[h])&&(o[h]="[object Object]");if("object"==typeof o&&"[object Object]"===tS(o)&&(o="[object Object]"),o=String(o),null===e&&(e={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(a))for(h=0,c=a.length;h<c;h+=1)tN(t,e,a[h],r);else tN(t,e,a,r);else!t.json&&!tx.call(r,o)&&tx.call(e,o)&&(t.line=s||t.line,t.lineStart=n||t.lineStart,t.position=l||t.position,tP(t,"duplicated mapping key")),tD(e,o,a),delete r[o];return e}function tU(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):tP(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function tY(t,e,r){for(var i=0,o=t.input.charCodeAt(t.position);0!==o;){for(;t_(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(tv(o))for(tU(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&&tz(t,"deficient indentation"),i}function tX(t){var e,r=t.position;return!!((45===(e=t.input.charCodeAt(r))||46===e)&&e===t.input.charCodeAt(r+1)&&e===t.input.charCodeAt(r+2)&&(r+=3,0===(e=t.input.charCodeAt(r))||tF(e)))||!1}function tG(t,e){1===e?t.result+=" ":e>1&&(t.result+=n("\n",e-1))}function tV(t,e,r){var i,o,a,s,n,l,h,c,d=t.kind,u=t.result;if(tF(c=t.input.charCodeAt(t.position))||tL(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c||(63===c||45===c)&&(tF(i=t.input.charCodeAt(t.position+1))||r&&tL(i)))return!1;for(t.kind="scalar",t.result="",o=a=t.position,s=!1;0!==c;){if(58===c){if(tF(i=t.input.charCodeAt(t.position+1))||r&&tL(i))break}else if(35===c){if(tF(t.input.charCodeAt(t.position-1)))break}else if(t.position===t.lineStart&&tX(t)||r&&tL(c))break;else if(tv(c)){if(n=t.line,l=t.lineStart,h=t.lineIndent,tY(t,!1,-1),t.lineIndent>=e){s=!0,c=t.input.charCodeAt(t.position);continue}t.position=a,t.line=n,t.lineStart=l,t.lineIndent=h;break}s&&(tj(t,o,a,!1),tG(t,t.line-n),o=a=t.position,s=!1),t_(c)||(a=t.position+1),c=t.input.charCodeAt(++t.position)}return tj(t,o,a,!1),!!t.result||(t.kind=d,t.result=u,!1)}function tZ(t,e){var r,i,o;if(39!==(r=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,i=o=t.position;0!==(r=t.input.charCodeAt(t.position));)if(39===r){if(tj(t,i,t.position,!0),39!==(r=t.input.charCodeAt(++t.position)))return!0;i=t.position,t.position++,o=t.position}else tv(r)?(tj(t,i,o,!0),tG(t,tY(t,!1,e)),i=o=t.position):t.position===t.lineStart&&tX(t)?tP(t,"unexpected end of the document within a single quoted scalar"):(t.position++,o=t.position);tP(t,"unexpected end of the stream within a single quoted scalar")}function tQ(t,e){var r,i,o,a,s,n;if(34!==(n=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;0!==(n=t.input.charCodeAt(t.position));)if(34===n)return tj(t,r,t.position,!0),t.position++,!0;else if(92===n){if(tj(t,r,t.position,!0),tv(n=t.input.charCodeAt(++t.position)))tY(t,!1,e);else if(n<256&&tq[n])t.result+=tI[n],t.position++;else if((s=tM(n))>0){for(o=s,a=0;o>0;o--)(s=tA(n=t.input.charCodeAt(++t.position)))>=0?a=(a<<4)+s:tP(t,"expected hexadecimal character");t.result+=tO(a),t.position++}else tP(t,"unknown escape sequence");r=i=t.position}else tv(n)?(tj(t,r,i,!0),tG(t,tY(t,!1,e)),r=i=t.position):t.position===t.lineStart&&tX(t)?tP(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position);tP(t,"unexpected end of the stream within a double quoted scalar")}function tJ(t,e){var r,i,o,a,s,n,l,h,c,d,u,p,g=!0,f=t.tag,y=t.anchor,m=Object.create(null);if(91===(p=t.input.charCodeAt(t.position)))s=93,h=!1,a=[];else{if(123!==p)return!1;s=125,h=!0,a={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),p=t.input.charCodeAt(++t.position);0!==p;){if(tY(t,!0,e),(p=t.input.charCodeAt(t.position))===s)return t.position++,t.tag=f,t.anchor=y,t.kind=h?"mapping":"sequence",t.result=a,!0;g?44===p&&tP(t,"expected the node content, but found ','"):tP(t,"missed comma between flow collection entries"),d=c=u=null,n=l=!1,63===p&&tF(t.input.charCodeAt(t.position+1))&&(n=l=!0,t.position++,tY(t,!0,e)),r=t.line,i=t.lineStart,o=t.position,t6(t,e,1,!1,!0),d=t.tag,c=t.result,tY(t,!0,e),p=t.input.charCodeAt(t.position),(l||t.line===r)&&58===p&&(n=!0,p=t.input.charCodeAt(++t.position),tY(t,!0,e),t6(t,e,1,!1,!0),u=t.result),h?tH(t,a,m,d,c,u,r,i,o):n?a.push(tH(t,null,m,d,c,u,r,i,o)):a.push(c),tY(t,!0,e),44===(p=t.input.charCodeAt(t.position))?(g=!0,p=t.input.charCodeAt(++t.position)):g=!1}tP(t,"unexpected end of the stream within a flow collection")}function t0(t,e){var r,i,o,a,s=1,l=!1,h=!1,c=e,d=0,u=!1;if(124===(a=t.input.charCodeAt(t.position)))i=!1;else{if(62!==a)return!1;i=!0}for(t.kind="scalar",t.result="";0!==a;)if(43===(a=t.input.charCodeAt(++t.position))||45===a)1===s?s=43===a?3:2:tP(t,"repeat of a chomping mode identifier");else if((o=t$(a))>=0)0===o?tP(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):h?tP(t,"repeat of an indentation width identifier"):(c=e+o-1,h=!0);else break;if(t_(a)){do a=t.input.charCodeAt(++t.position);while(t_(a))if(35===a)do a=t.input.charCodeAt(++t.position);while(!tv(a)&&0!==a)}for(;0!==a;){for(tU(t),t.lineIndent=0,a=t.input.charCodeAt(t.position);(!h||t.lineIndent<c)&&32===a;)t.lineIndent++,a=t.input.charCodeAt(++t.position);if(!h&&t.lineIndent>c&&(c=t.lineIndent),tv(a)){d++;continue}if(t.lineIndent<c){3===s?t.result+=n("\n",l?1+d:d):1===s&&l&&(t.result+="\n");break}for(i?t_(a)?(u=!0,t.result+=n("\n",l?1+d:d)):u?(u=!1,t.result+=n("\n",d+1)):0===d?l&&(t.result+=" "):t.result+=n("\n",d):t.result+=n("\n",l?1+d:d),l=!0,h=!0,d=0,r=t.position;!tv(a)&&0!==a;)a=t.input.charCodeAt(++t.position);tj(t,r,t.position,!1)}return!0}function t1(t,e){var r,i,o=t.tag,a=t.anchor,s=[],n=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=s),i=t.input.charCodeAt(t.position);0!==i&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,tP(t,"tab characters must not be used in indentation")),45===i&&tF(t.input.charCodeAt(t.position+1)));){if(n=!0,t.position++,tY(t,!0,-1)&&t.lineIndent<=e){s.push(null),i=t.input.charCodeAt(t.position);continue}if(r=t.line,t6(t,e,3,!1,!0),s.push(t.result),tY(t,!0,-1),i=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==i)tP(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return!!n&&(t.tag=o,t.anchor=a,t.kind="sequence",t.result=s,!0)}function t2(t,e,r){var i,o,a,s,n,l,h,c=t.tag,d=t.anchor,u={},p=Object.create(null),g=null,f=null,y=null,m=!1,C=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=u),h=t.input.charCodeAt(t.position);0!==h;){if(m||-1===t.firstTabInLine||(t.position=t.firstTabInLine,tP(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),a=t.line,(63===h||58===h)&&tF(i))63===h?(m&&(tH(t,u,p,g,f,null,s,n,l),g=f=y=null),C=!0,m=!0,o=!0):m?(m=!1,o=!0):tP(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,h=i;else{if(s=t.line,n=t.lineStart,l=t.position,!t6(t,r,2,!1,!0))break;if(t.line===a){for(h=t.input.charCodeAt(t.position);t_(h);)h=t.input.charCodeAt(++t.position);if(58===h)tF(h=t.input.charCodeAt(++t.position))||tP(t,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(tH(t,u,p,g,f,null,s,n,l),g=f=y=null),C=!0,m=!1,o=!1,g=t.tag,f=t.result;else{if(!C)return t.tag=c,t.anchor=d,!0;tP(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!C)return t.tag=c,t.anchor=d,!0;tP(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((t.line===a||t.lineIndent>e)&&(m&&(s=t.line,n=t.lineStart,l=t.position),t6(t,e,4,!0,o)&&(m?f=t.result:y=t.result),m||(tH(t,u,p,g,f,y,s,n,l),g=f=y=null),tY(t,!0,-1),h=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&0!==h)tP(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return m&&tH(t,u,p,g,f,null,s,n,l),C&&(t.tag=c,t.anchor=d,t.kind="mapping",t.result=u),C}function t5(t){var e,r,i,o,a=!1,s=!1;if(33!==(o=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&tP(t,"duplication of a tag property"),60===(o=t.input.charCodeAt(++t.position))?(a=!0,o=t.input.charCodeAt(++t.position)):33===o?(s=!0,r="!!",o=t.input.charCodeAt(++t.position)):r="!",e=t.position,a){do o=t.input.charCodeAt(++t.position);while(0!==o&&62!==o)t.position<t.length?(i=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):tP(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!tF(o);)33===o&&(s?tP(t,"tag suffix cannot contain exclamation marks"):(r=t.input.slice(e-1,t.position+1),tT.test(r)||tP(t,"named tag handle cannot contain such characters"),s=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);i=t.input.slice(e,t.position),tw.test(i)&&tP(t,"tag suffix cannot contain flow indicator characters")}i&&!tB.test(i)&&tP(t,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch(e){tP(t,"tag name is malformed: "+i)}return a?t.tag=i:tx.call(t.tagMap,r)?t.tag=t.tagMap[r]+i:"!"===r?t.tag="!"+i:"!!"===r?t.tag="tag:yaml.org,2002:"+i:tP(t,'undeclared tag handle "'+r+'"'),!0}function t3(t){var e,r;if(38!==(r=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&tP(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!tF(r)&&!tL(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&tP(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function t4(t){var e,r,i;if(42!==(i=t.input.charCodeAt(t.position)))return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!tF(i)&&!tL(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&tP(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),tx.call(t.anchorMap,r)||tP(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],tY(t,!0,-1),!0}function t6(t,e,r,i,o){var a,s,n,l,h,c,d,u,p,g=1,f=!1,y=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=s=n=4===r||3===r,i&&tY(t,!0,-1)&&(f=!0,t.lineIndent>e?g=1:t.lineIndent===e?g=0:t.lineIndent<e&&(g=-1)),1===g)for(;t5(t)||t3(t);)tY(t,!0,-1)?(f=!0,n=a,t.lineIndent>e?g=1:t.lineIndent===e?g=0:t.lineIndent<e&&(g=-1)):n=!1;if(n&&(n=f||o),(1===g||4===r)&&(u=1===r||2===r?e:e+1,p=t.position-t.lineStart,1===g?n&&(t1(t,p)||t2(t,p,u))||tJ(t,u)?y=!0:(s&&t0(t,u)||tZ(t,u)||tQ(t,u)?y=!0:t4(t)?(y=!0,(null!==t.tag||null!==t.anchor)&&tP(t,"alias node should not have any properties")):tV(t,u,1===r)&&(y=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===g&&(y=n&&t1(t,p))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&tP(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),l=0,h=t.implicitTypes.length;l<h;l+=1)if((d=t.implicitTypes[l]).resolve(t.result)){t.result=d.construct(t.result),t.tag=d.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(tx.call(t.typeMap[t.kind||"fallback"],t.tag))d=t.typeMap[t.kind||"fallback"][t.tag];else for(l=0,d=null,h=(c=t.typeMap.multi[t.kind||"fallback"]).length;l<h;l+=1)if(t.tag.slice(0,c[l].tag.length)===c[l].tag){d=c[l];break}d||tP(t,"unknown tag !<"+t.tag+">"),null!==t.result&&d.kind!==t.kind&&tP(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+d.kind+'", not "'+t.kind+'"'),d.resolve(t.result,t.tag)?(t.result=d.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):tP(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||y}function t8(t){var e,r,i,o,a=t.position,s=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(o=t.input.charCodeAt(t.position))&&(tY(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0)&&37===o);){for(s=!0,o=t.input.charCodeAt(++t.position),e=t.position;0!==o&&!tF(o);)o=t.input.charCodeAt(++t.position);for(r=t.input.slice(e,t.position),i=[],r.length<1&&tP(t,"directive name must not be less than one character in length");0!==o;){for(;t_(o);)o=t.input.charCodeAt(++t.position);if(35===o){do o=t.input.charCodeAt(++t.position);while(0!==o&&!tv(o))break}if(tv(o))break;for(e=t.position;0!==o&&!tF(o);)o=t.input.charCodeAt(++t.position);i.push(t.input.slice(e,t.position))}0!==o&&tU(t),tx.call(tW,r)?tW[r](t,r,i):tz(t,'unknown document directive "'+r+'"')}if(tY(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,tY(t,!0,-1)):s&&tP(t,"directives end mark is expected"),t6(t,t.lineIndent-1,4,!1,!0),tY(t,!0,-1),t.checkLineBreaks&&tb.test(t.input.slice(a,t.position))&&tz(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&tX(t)){46===t.input.charCodeAt(t.position)&&(t.position+=3,tY(t,!0,-1));return}t.position<t.length-1&&tP(t,"end of the stream or a document separator is expected")}function t7(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)));var r=new tK(t,e),i=t.indexOf("\0");for(-1!==i&&(r.position=i,tP(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;)t8(r);return r.documents}function t9(t,e,r){null!==e&&"object"==typeof e&&void 0===r&&(r=e,e=null);var i=t7(t,r);if("function"!=typeof e)return i;for(var o=0,a=i.length;o<a;o+=1)e(i[o])}function et(t,e){var r=t7(t,e);if(0!==r.length){if(1===r.length)return r[0];throw new c("expected a single document in the stream, but found more")}}(0,o.K)(tj,"captureSegment"),(0,o.K)(tN,"mergeMappings"),(0,o.K)(tH,"storeMappingPair"),(0,o.K)(tU,"readLineBreak"),(0,o.K)(tY,"skipSeparationSpace"),(0,o.K)(tX,"testDocumentSeparator"),(0,o.K)(tG,"writeFoldedLines"),(0,o.K)(tV,"readPlainScalar"),(0,o.K)(tZ,"readSingleQuotedScalar"),(0,o.K)(tQ,"readDoubleQuotedScalar"),(0,o.K)(tJ,"readFlowCollection"),(0,o.K)(t0,"readBlockScalar"),(0,o.K)(t1,"readBlockSequence"),(0,o.K)(t2,"readBlockMapping"),(0,o.K)(t5,"readTagProperty"),(0,o.K)(t3,"readAnchorProperty"),(0,o.K)(t4,"readAlias"),(0,o.K)(t6,"composeNode"),(0,o.K)(t8,"readDocument"),(0,o.K)(t7,"loadDocuments"),(0,o.K)(t9,"loadAll$1"),(0,o.K)(et,"load$1");var ee=Object.prototype.toString,er=Object.prototype.hasOwnProperty,ei={};ei[0]="\\0",ei[7]="\\a",ei[8]="\\b",ei[9]="\\t",ei[10]="\\n",ei[11]="\\v",ei[12]="\\f",ei[13]="\\r",ei[27]="\\e",ei[34]='\\"',ei[92]="\\\\",ei[133]="\\N",ei[160]="\\_",ei[8232]="\\L",ei[8233]="\\P";var eo=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ea=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function es(t,e){var r,i,o,a,s,n,l;if(null===e)return{};for(o=0,r={},a=(i=Object.keys(e)).length;o<a;o+=1)n=String(e[s=i[o]]),"!!"===s.slice(0,2)&&(s="tag:yaml.org,2002:"+s.slice(2)),(l=t.compiledTypeMap.fallback[s])&&er.call(l.styleAliases,n)&&(n=l.styleAliases[n]),r[s]=n;return r}function en(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=0xffffffff)r="U",i=8;else throw new c("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+n("0",i-e.length)+e}function el(t){this.schema=t.schema||tC,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=a(t.flowLevel)?-1:t.flowLevel,this.styleMap=es(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function eh(t,e){for(var r,i=n(" ",e),o=0,a=-1,s="",l=t.length;o<l;)-1===(a=t.indexOf("\n",o))?(r=t.slice(o),o=l):(r=t.slice(o,a+1),o=a+1),r.length&&"\n"!==r&&(s+=i),s+=r;return s}function ec(t,e){return"\n"+n(" ",t.indent*e)}function ed(t,e){var r,i;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(t.implicitTypes[r].resolve(e))return!0;return!1}function eu(t){return 32===t||9===t}function ep(t){return 32<=t&&t<=126||161<=t&&t<=55295&&8232!==t&&8233!==t||57344<=t&&t<=65533&&65279!==t||65536<=t&&t<=1114111}function eg(t){return ep(t)&&65279!==t&&13!==t&&10!==t}function ef(t,e,r){var i=eg(t),o=i&&!eu(t);return(r?i:i&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t)&&35!==t&&!(58===e&&!o)||eg(e)&&!eu(e)&&35===t||58===e&&o}function ey(t){return ep(t)&&65279!==t&&!eu(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 em(t){return!eu(t)&&58!==t}function eC(t,e){var 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 ex(t){return/^\n* /.test(t)}function ek(t,e,r,i,o,a,s,n){var l,h=0,c=null,d=!1,u=!1,p=-1!==i,g=-1,f=ey(eC(t,0))&&em(eC(t,t.length-1));if(e||s)for(l=0;l<t.length;h>=65536?l+=2:l++){if(!ep(h=eC(t,l)))return 5;f=f&&ef(h,c,n),c=h}else{for(l=0;l<t.length;h>=65536?l+=2:l++){if(10===(h=eC(t,l)))d=!0,p&&(u=u||l-g-1>i&&" "!==t[g+1],g=l);else if(!ep(h))return 5;f=f&&ef(h,c,n),c=h}u=u||p&&l-g-1>i&&" "!==t[g+1]}return d||u?r>9&&ex(t)?5:s?2===a?5:2:u?4:3:!f||s||o(t)?2===a?5:2:1}function eb(t,e,r,i,a){t.dump=function(){if(0===e.length)return 2===t.quotingType?'""':"''";if(!t.noCompatMode&&(-1!==eo.indexOf(e)||ea.test(e)))return 2===t.quotingType?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),n=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),l=i||t.flowLevel>-1&&r>=t.flowLevel;function h(e){return ed(t,e)}switch((0,o.K)(h,"testAmbiguity"),ek(e,l,t.indent,n,h,t.quotingType,t.forceQuotes&&!i,a)){case 1:return e;case 2:return"'"+e.replace(/'/g,"''")+"'";case 3:return"|"+ew(e,t.indent)+eT(eh(e,s));case 4:return">"+ew(e,t.indent)+eT(eh(eB(e,n),s));case 5:return'"'+ev(e)+'"';default:throw new c("impossible error: invalid scalar style")}}()}function ew(t,e){var r=ex(t)?String(e):"",i="\n"===t[t.length-1];return r+(i&&("\n"===t[t.length-2]||"\n"===t)?"+":i?"":"-")+"\n"}function eT(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function eB(t,e){for(var r,i,o,a=/(\n+)([^\n]*)/g,s=(a.lastIndex=r=-1!==(r=t.indexOf("\n"))?r:t.length,eS(t.slice(0,r),e)),n="\n"===t[0]||" "===t[0];o=a.exec(t);){var l=o[1],h=o[2];i=" "===h[0],s+=l+(n||i||""===h?"":"\n")+eS(h,e),n=i}return s}function eS(t,e){if(""===t||" "===t[0])return t;for(var r,i,o=/ [^ ]/g,a=0,s=0,n=0,l="";r=o.exec(t);)(n=r.index)-a>e&&(i=s>a?s:n,l+="\n"+t.slice(a,i),a=i+1),s=n;return l+="\n",t.length-a>e&&s>a?l+=t.slice(a,s)+"\n"+t.slice(s+1):l+=t.slice(a),l.slice(1)}function ev(t){for(var e,r="",i=0,o=0;o<t.length;i>=65536?o+=2:o++)!(e=ei[i=eC(t,o)])&&ep(i)?(r+=t[o],i>=65536&&(r+=t[o+1])):r+=e||en(i);return r}function e_(t,e,r){var i,o,a,s="",n=t.tag;for(i=0,o=r.length;i<o;i+=1)a=r[i],t.replacer&&(a=t.replacer.call(r,String(i),a)),(e$(t,e,a,!1,!1)||void 0===a&&e$(t,e,null,!1,!1))&&(""!==s&&(s+=","+(t.condenseFlow?"":" ")),s+=t.dump);t.tag=n,t.dump="["+s+"]"}function eF(t,e,r,i){var o,a,s,n="",l=t.tag;for(o=0,a=r.length;o<a;o+=1)s=r[o],t.replacer&&(s=t.replacer.call(r,String(o),s)),(e$(t,e+1,s,!0,!0,!1,!0)||void 0===s&&e$(t,e+1,null,!0,!0,!1,!0))&&(i&&""===n||(n+=ec(t,e)),t.dump&&10===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=l,t.dump=n||"[]"}function eL(t,e,r){var i,o,a,s,n,l="",h=t.tag,c=Object.keys(r);for(i=0,o=c.length;i<o;i+=1)n="",""!==l&&(n+=", "),t.condenseFlow&&(n+='"'),s=r[a=c[i]],t.replacer&&(s=t.replacer.call(r,a,s)),e$(t,e,a,!1,!1)&&(t.dump.length>1024&&(n+="? "),n+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),e$(t,e,s,!1,!1)&&(n+=t.dump,l+=n));t.tag=h,t.dump="{"+l+"}"}function eA(t,e,r,i){var o,a,s,n,l,h,d="",u=t.tag,p=Object.keys(r);if(!0===t.sortKeys)p.sort();else if("function"==typeof t.sortKeys)p.sort(t.sortKeys);else if(t.sortKeys)throw new c("sortKeys must be a boolean or a function");for(o=0,a=p.length;o<a;o+=1)h="",i&&""===d||(h+=ec(t,e)),n=r[s=p[o]],t.replacer&&(n=t.replacer.call(r,s,n)),e$(t,e+1,s,!0,!0,!0)&&((l=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024)&&(t.dump&&10===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,l&&(h+=ec(t,e)),e$(t,e+1,n,!0,l)&&(t.dump&&10===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,d+=h));t.tag=u,t.dump=d||"{}"}function eM(t,e,r){var i,o,a,s,n,l;for(a=0,s=(o=r?t.explicitTypes:t.implicitTypes).length;a<s;a+=1)if(((n=o[a]).instanceOf||n.predicate)&&(!n.instanceOf||"object"==typeof e&&e instanceof n.instanceOf)&&(!n.predicate||n.predicate(e))){if(r?n.multi&&n.representName?t.tag=n.representName(e):t.tag=n.tag:t.tag="?",n.represent){if(l=t.styleMap[n.tag]||n.defaultStyle,"[object Function]"===ee.call(n.represent))i=n.represent(e,l);else if(er.call(n.represent,l))i=n.represent[l](e,l);else throw new c("!<"+n.tag+'> tag resolver accepts not "'+l+'" style');t.dump=i}return!0}return!1}function e$(t,e,r,i,o,a,s){t.tag=null,t.dump=r,eM(t,r,!1)||eM(t,r,!0);var n=ee.call(t.dump),l=i;i&&(i=t.flowLevel<0||t.flowLevel>e);var h,d,u,p="[object Object]"===n||"[object Array]"===n;if(p&&(u=-1!==(d=t.duplicates.indexOf(r))),(null!==t.tag&&"?"!==t.tag||u||2!==t.indent&&e>0)&&(o=!1),u&&t.usedDuplicates[d])t.dump="*ref_"+d;else{if(p&&u&&!t.usedDuplicates[d]&&(t.usedDuplicates[d]=!0),"[object Object]"===n)i&&0!==Object.keys(t.dump).length?(eA(t,e,t.dump,o),u&&(t.dump="&ref_"+d+t.dump)):(eL(t,e,t.dump),u&&(t.dump="&ref_"+d+" "+t.dump));else if("[object Array]"===n)i&&0!==t.dump.length?(t.noArrayIndent&&!s&&e>0?eF(t,e-1,t.dump,o):eF(t,e,t.dump,o),u&&(t.dump="&ref_"+d+t.dump)):(e_(t,e,t.dump),u&&(t.dump="&ref_"+d+" "+t.dump));else if("[object String]"===n)"?"!==t.tag&&eb(t,t.dump,e,a,l);else{if("[object Undefined]"===n||t.skipInvalid)return!1;throw new c("unacceptable kind of an object to dump "+n)}null!==t.tag&&"?"!==t.tag&&(h=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),h="!"===t.tag[0]?"!"+h:"tag:yaml.org,2002:"===h.slice(0,18)?"!!"+h.slice(18):"!<"+h+">",t.dump=h+" "+t.dump)}return!0}function eE(t,e){var r,i,o=[],a=[];for(eO(t,o,a),r=0,i=a.length;r<i;r+=1)e.duplicates.push(o[a[r]]);e.usedDuplicates=Array(i)}function eO(t,e,r){var i,o,a;if(null!==t&&"object"==typeof t)if(-1!==(o=e.indexOf(t)))-1===r.indexOf(o)&&r.push(o);else if(e.push(t),Array.isArray(t))for(o=0,a=t.length;o<a;o+=1)eO(t[o],e,r);else for(o=0,a=(i=Object.keys(t)).length;o<a;o+=1)eO(t[i[o]],e,r)}(0,o.K)(es,"compileStyleMap"),(0,o.K)(en,"encodeHex"),(0,o.K)(el,"State"),(0,o.K)(eh,"indentString"),(0,o.K)(ec,"generateNextLine"),(0,o.K)(ed,"testImplicitResolving"),(0,o.K)(eu,"isWhitespace"),(0,o.K)(ep,"isPrintable"),(0,o.K)(eg,"isNsCharOrWhitespace"),(0,o.K)(ef,"isPlainSafe"),(0,o.K)(ey,"isPlainSafeFirst"),(0,o.K)(em,"isPlainSafeLast"),(0,o.K)(eC,"codePointAt"),(0,o.K)(ex,"needIndentIndicator");(0,o.K)(ek,"chooseScalarStyle"),(0,o.K)(eb,"writeScalar"),(0,o.K)(ew,"blockHeader"),(0,o.K)(eT,"dropEndingNewline"),(0,o.K)(eB,"foldString"),(0,o.K)(eS,"foldLine"),(0,o.K)(ev,"escapeString"),(0,o.K)(e_,"writeFlowSequence"),(0,o.K)(eF,"writeBlockSequence"),(0,o.K)(eL,"writeFlowMapping"),(0,o.K)(eA,"writeBlockMapping"),(0,o.K)(eM,"detectType"),(0,o.K)(e$,"writeNode"),(0,o.K)(eE,"getDuplicateReferences"),(0,o.K)(eO,"inspectNode"),(0,o.K)(function(t,e){var r=new el(e=e||{});r.noRefs||eE(t,r);var i=t;return(r.replacer&&(i=r.replacer.call({"":i},"",i)),e$(r,0,i,!0,!0))?r.dump+"\n":""},"dump$1"),(0,o.K)(function(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.")}},"renamed"),r.d(e,{H:()=>et,r:()=>N})},93666(t,e,r){r.r(e),r.d(e,{default:()=>r5});var i=r(22422),o=r(81818),a=r(21570);r(9290),r(9636),r(14782),r(91865),r(6129),r(23656);var s=r(15198),n=r(24692),l=r(64183),h=r(31293),c=r(86827),d=r(84146),u=r(8141),p="comm",g="rule",f="decl",y="@keyframes",m="@layer",C=Math.abs,x=String.fromCharCode;function k(t,e,r){return t.replace(e,r)}function b(t,e){return 0|t.charCodeAt(e)}function w(t,e,r){return t.slice(e,r)}function T(t){return t.length}function B(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 v(t,e,r,i){switch(t.type){case m:if(t.children.length)break;case"@import":case"@namespace":case f:return t.return=t.return||t.value;case p:return"";case y:return t.return=t.value+"{"+S(t.children,i)+"}";case g:if(!T(t.value=t.props.join(",")))return""}return T(r=S(t.children,i))?t.return=t.value+"{"+r+"}":""}var _=1,F=1,L=0,A=0,M=0,$="";function E(t,e,r,i,o,a,s,n){return{value:t,root:e,parent:r,type:i,props:o,children:a,line:_,column:F,length:s,return:"",siblings:n}}function O(){return M=A<L?b($,A++):0,F++,10===M&&(F=1,_++),M}function D(){return b($,A)}function q(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 I(t){var e,r;return(e=A-1,r=function t(e){for(;O();)switch(M){case e:return A;case 34:case 39:34!==e&&39!==e&&t(M);break;case 40:41===e&&t(e);break;case 92:O()}return A}(91===t?t+2:40===t?t+1:t),w($,e,r)).trim()}function K(t,e,r,i,o,a,s,n,l,h,c,d){for(var u=o-1,p=0===o?a:[""],f=p.length,y=0,m=0,x=0;y<i;++y)for(var b=0,T=w(t,u+1,u=C(m=s[y])),B=t;b<f;++b)(B=(m>0?p[b]+" "+T:k(T,/&\f/g,p[b])).trim())&&(l[x++]=B);return E(t,e,r,0===o?g:n,l,h,c,d)}function R(t,e,r,i,o){return E(t,e,r,f,w(t,0,i),w(t,i+1,-1),i,o)}var P=r(99418),z=r(44009),W=r(72146),j=r(14608),N=r(19663);function H(t){if(null==t)return!0;if((0,W.X)(t))return("function"==typeof t.splice||"string"==typeof t||!!(0,z.P)(t)||!!(0,N.i)(t)||!!(0,j.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 U={id:"c4",detector:(0,c.K)(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),loader:(0,c.K)(async()=>{let{diagram:t}=await r.e(9465).then(r.bind(r,70736));return{id:"c4",diagram:t}},"loader")},Y="flowchart",X=(0,c.K)((t,e)=>e?.flowchart?.defaultRenderer!=="dagre-wrapper"&&e?.flowchart?.defaultRenderer!=="elk"&&/^\s*graph/.test(t),"detector"),G=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3729),r.e(6014)]).then(r.bind(r,70125));return{id:Y,diagram:t}},"loader"),V={id:Y,detector:X,loader:G},Z="flowchart-v2",Q=(0,c.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"),J=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3729),r.e(6014)]).then(r.bind(r,70125));return{id:Z,diagram:t}},"loader"),tt={id:Z,detector:Q,loader:J},te="swimlane",tr=(0,c.K)(t=>/^\s*swimlane-beta\b/.test(t),"detector"),ti=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3729),r.e(1804)]).then(r.bind(r,52535));return{id:te,diagram:t}},"loader"),to={id:te,detector:tr,loader:ti},ta={id:"er",detector:(0,c.K)(t=>/^\s*erDiagram/.test(t),"detector"),loader:(0,c.K)(async()=>{let{diagram:t}=await r.e(2289).then(r.bind(r,10648));return{id:"er",diagram:t}},"loader")},ts="gitGraph",tn=(0,c.K)(t=>/^\s*gitGraph/.test(t),"detector"),tl=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(1904)]).then(r.bind(r,31715));return{id:ts,diagram:t}},"loader"),th={id:ts,detector:tn,loader:tl},tc="gantt",td=(0,c.K)(t=>/^\s*gantt/.test(t),"detector"),tu=(0,c.K)(async()=>{let{diagram:t}=await r.e(4552).then(r.bind(r,74619));return{id:tc,diagram:t}},"loader"),tp={id:tc,detector:td,loader:tu},tg="info",tf=(0,c.K)(t=>/^\s*info/.test(t),"detector"),ty=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(4335)]).then(r.bind(r,46002));return{id:tg,diagram:t}},"loader"),tm={id:tg,detector:tf,loader:ty},tC={id:"pie",detector:(0,c.K)(t=>/^\s*pie/.test(t),"detector"),loader:(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(7854)]).then(r.bind(r,34877));return{id:"pie",diagram:t}},"loader")},tx="quadrantChart",tk=(0,c.K)(t=>/^\s*quadrantChart/.test(t),"detector"),tb=(0,c.K)(async()=>{let{diagram:t}=await r.e(9121).then(r.bind(r,91240));return{id:tx,diagram:t}},"loader"),tw={id:tx,detector:tk,loader:tb},tT="xychart",tB=(0,c.K)(t=>/^\s*xychart(-beta)?/.test(t),"detector"),tS=(0,c.K)(async()=>{let{diagram:t}=await r.e(6567).then(r.bind(r,93386));return{id:tT,diagram:t}},"loader"),tv={id:tT,detector:tB,loader:tS},t_="requirement",tF=(0,c.K)(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),tL=(0,c.K)(async()=>{let{diagram:t}=await r.e(7916).then(r.bind(r,8535));return{id:t_,diagram:t}},"loader"),tA={id:t_,detector:tF,loader:tL},tM="sequence",t$=(0,c.K)(t=>/^\s*sequenceDiagram/.test(t),"detector"),tE=(0,c.K)(async()=>{let{diagram:t}=await r.e(4625).then(r.bind(r,89256));return{id:tM,diagram:t}},"loader"),tO={id:tM,detector:t$,loader:tE},tD="class",tq=(0,c.K)((t,e)=>e?.class?.defaultRenderer!=="dagre-wrapper"&&/^\s*classDiagram/.test(t),"detector"),tI=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(8716),r.e(5026)]).then(r.bind(r,98233));return{id:tD,diagram:t}},"loader"),tK={id:tD,detector:tq,loader:tI},tR="classDiagram",tP=(0,c.K)((t,e)=>!!/^\s*classDiagram/.test(t)&&e?.class?.defaultRenderer==="dagre-wrapper"||/^\s*classDiagram-v2/.test(t),"detector"),tz=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(8716),r.e(435)]).then(r.bind(r,2862));return{id:tR,diagram:t}},"loader"),tW={id:tR,detector:tP,loader:tz},tj="state",tN=(0,c.K)((t,e)=>e?.state?.defaultRenderer!=="dagre-wrapper"&&/^\s*stateDiagram/.test(t),"detector"),tH=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(5250),r.e(7048),r.e(3088),r.e(4891),r.e(8239)]).then(r.bind(r,88018));return{id:tj,diagram:t}},"loader"),tU={id:tj,detector:tN,loader:tH},tY="stateDiagram",tX=(0,c.K)((t,e)=>!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&e?.state?.defaultRenderer==="dagre-wrapper"),"detector"),tG=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4891),r.e(1169)]).then(r.bind(r,75976));return{id:tY,diagram:t}},"loader"),tV={id:tY,detector:tX,loader:tG},tZ="journey",tQ=(0,c.K)(t=>/^\s*journey/.test(t),"detector"),tJ=(0,c.K)(async()=>{let{diagram:t}=await r.e(717).then(r.bind(r,28220));return{id:tZ,diagram:t}},"loader"),t0={id:tZ,detector:tQ,loader:tJ},t1={draw:(0,c.K)((t,e,r)=>{h.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,l.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.164-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")},t2={db:{},renderer:t1,parser:{parse:(0,c.K)(()=>{},"parse")}},t5="flowchart-elk",t3=(0,c.K)((t,e={})=>!!(/^\s*flowchart-elk/.test(t)||/^\s*(flowchart|graph)/.test(t)&&e?.flowchart?.defaultRenderer==="elk")&&(e.layout="elk",!0),"detector"),t4=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3729),r.e(6014)]).then(r.bind(r,70125));return{id:t5,diagram:t}},"loader"),t6={id:t5,detector:t3,loader:t4},t8="timeline",t7=(0,c.K)(t=>/^\s*timeline/.test(t),"detector"),t9=(0,c.K)(async()=>{let{diagram:t}=await r.e(627).then(r.bind(r,43822));return{id:t8,diagram:t}},"loader"),et={id:t8,detector:t7,loader:t9},ee="mindmap",er=(0,c.K)(t=>/^\s*mindmap/.test(t),"detector"),ei=(0,c.K)(async()=>{let{diagram:t}=await r.e(7175).then(r.bind(r,16186));return{id:ee,diagram:t}},"loader"),eo={id:ee,detector:er,loader:ei},ea="kanban",es=(0,c.K)(t=>/^\s*kanban/.test(t),"detector"),en=(0,c.K)(async()=>{let{diagram:t}=await r.e(6999).then(r.bind(r,16794));return{id:ea,diagram:t}},"loader"),el={id:ea,detector:es,loader:en},eh="sankey",ec=(0,c.K)(t=>/^\s*sankey(-beta)?/.test(t),"detector"),ed=(0,c.K)(async()=>{let{diagram:t}=await r.e(2796).then(r.bind(r,6471));return{id:eh,diagram:t}},"loader"),eu={id:eh,detector:ec,loader:ed},ep="packet",eg=(0,c.K)(t=>/^\s*packet(-beta)?/.test(t),"detector"),ef=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(273)]).then(r.bind(r,28136));return{id:ep,diagram:t}},"loader"),ey={id:ep,detector:eg,loader:ef},em="radar",eC=(0,c.K)(t=>/^\s*radar-beta/.test(t),"detector"),ex=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(7588)]).then(r.bind(r,65919));return{id:em,diagram:t}},"loader"),ek={id:em,detector:eC,loader:ex},eb="block",ew=(0,c.K)(t=>/^\s*block(-beta)?/.test(t),"detector"),eT=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(5250),r.e(5792)]).then(r.bind(r,27779));return{id:eb,diagram:t}},"loader"),eB={id:eb,detector:ew,loader:eT},eS="treeView",ev=(0,c.K)(t=>/^\s*treeView-beta/.test(t),"detector"),e_=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(4354)]).then(r.bind(r,47017));return{id:eS,diagram:t}},"loader"),eF={id:eS,detector:ev,loader:e_},eL="architecture",eA=(0,c.K)(t=>/^\s*architecture/.test(t),"detector"),eM=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(4950),r.e(8212)]).then(r.bind(r,77887));return{id:eL,diagram:t}},"loader"),e$={id:eL,detector:eA,loader:eM},eE="eventmodeling",eO=(0,c.K)(t=>/^\s*eventmodeling/.test(t),"detector"),eD=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(7594)]).then(r.bind(r,14625));return{id:eE,diagram:t}},"loader"),eq={id:eE,detector:eO,loader:eD},eI="ishikawa",eK=(0,c.K)(t=>/^\s*ishikawa(-beta)?\b/i.test(t),"detector"),eR=(0,c.K)(async()=>{let{diagram:t}=await r.e(5659).then(r.bind(r,61750));return{id:eI,diagram:t}},"loader"),eP={id:eI,detector:eK,loader:eR},ez="venn",eW=(0,c.K)(t=>/^\s*venn-beta/.test(t),"detector"),ej=(0,c.K)(async()=>{let{diagram:t}=await r.e(7311).then(r.bind(r,86274));return{id:ez,diagram:t}},"loader"),eN={id:ez,detector:eW,loader:ej},eH="treemap",eU=(0,c.K)(t=>/^\s*treemap/.test(t),"detector"),eY=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(788)]).then(r.bind(r,83743));return{id:eH,diagram:t}},"loader"),eX={id:eH,detector:eU,loader:eY},eG="wardley",eV=(0,c.K)(t=>/^\s*wardley-beta/i.test(t),"detector"),eZ=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(3581)]).then(r.bind(r,80764));return{id:eG,diagram:t}},"loader"),eQ={id:eG,detector:eV,loader:eZ},eJ="cynefin",e0=(0,c.K)(t=>/^\s*cynefin-beta(?:[\s:]|$)/.test(t),"detector"),e1=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(2143)]).then(r.bind(r,11730));return{id:eJ,diagram:t}},"loader"),e2={id:eJ,detector:e0,loader:e1},e5="railroad",e3=(0,c.K)(t=>/^\s*railroad-beta/i.test(t),"detector"),e4=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(4619),r.e(4607)]).then(r.bind(r,16402));return{id:e5,diagram:t}},"loader"),e6={id:e5,detector:e3,loader:e4},e8="railroadEbnf",e7=(0,c.K)(t=>/^\s*railroad-ebnf-beta/i.test(t),"detector"),e9=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(4619),r.e(810)]).then(r.bind(r,13729));return{id:e8,diagram:t}},"loader"),rt={id:e8,detector:e7,loader:e9},re="railroadAbnf",rr=(0,c.K)(t=>/^\s*railroad-abnf-beta/i.test(t),"detector"),ri=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(4619),r.e(6778)]).then(r.bind(r,92449));return{id:re,diagram:t}},"loader"),ro={id:re,detector:rr,loader:ri},ra="railroadPeg",rs=(0,c.K)(t=>/^\s*railroad-peg-beta/i.test(t),"detector"),rn=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(4619),r.e(7376)]).then(r.bind(r,62979));return{id:ra,diagram:t}},"loader"),rl={id:ra,detector:rs,loader:rn},rh=!1,rc=(0,c.K)(()=>{rh||(rh=!0,(0,l.Js)("error",t2,t=>"error"===t.toLowerCase().trim()),(0,l.Js)("---",{db:{clear:(0,c.K)(()=>{},"clear")},styles:{},renderer:{draw:(0,c.K)(()=>{},"draw")},parser:{parse:(0,c.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,c.K)(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),(0,l.Xd)(t6,eo,e$),(0,l.Xd)(U,el,tW,tK,ta,tp,tm,tC,tA,tO,to,tt,V,et,th,tV,tU,t0,tw,eu,ey,tv,eB,eq,eF,ek,eP,eX,e6,rt,ro,rl,eN,eQ,e2))},"addDiagrams"),rd=(0,c.K)(async()=>{h.R.debug("Loading registered diagrams");let t=(await Promise.allSettled(Object.entries(l.mW).map(async([t,{detector:e,loader:r}])=>{if(r)try{(0,l.Gs)(t)}catch{try{let{diagram:t,id:i}=await r();(0,l.Js)(i,t,e)}catch(e){throw h.R.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete l.mW[t],e}}}))).filter(t=>"rejected"===t.status);if(t.length>0){for(let e of(h.R.error(`Failed to load ${t.length} external diagrams`),t))h.R.error(e);throw Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams");function ru(t,e){t.attr("role","graphics-document document"),""!==e&&t.attr("aria-roledescription",e)}function rp(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,c.K)(ru,"setA11yDiagramInfo"),(0,c.K)(rp,"addSVGa11yTitleDescription");var rg=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,c.K)(this,"Diagram")}static async fromText(e,r={}){let i=(0,l.zj)(),o=(0,l.Ch)(e,i);e=(0,n.C4)(e)+"\n";try{(0,l.Gs)(o)}catch{let t=(0,l.J$)(o);if(!t)throw new l.C0(`Diagram ${o} not found.`);let{id:e,diagram:r}=await t();(0,l.Js)(e,r)}let{db:a,parser:s,renderer:h,init:c}=(0,l.Gs)(o);return s.parser&&(s.parser.yy=a),a.clear?.(),c?.(i),r.title&&a.setDiagramTitle?.(r.title),await s.parse(e),new t(o,e,a,s,h)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}},rf=[],ry=(0,c.K)(()=>{rf.forEach(t=>{t()}),rf=[]},"attachFunctions"),rm=(0,c.K)(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function rC(t){let e=t.match(l.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],a=(0,o.H)(i,{schema:o.r})??{};a="object"!=typeof a||Array.isArray(a)?{}:a;let s={};return a.displayMode&&(s.displayMode=a.displayMode.toString()),a.title&&(s.title=a.title.toString()),a.config&&(s.config=a.config),{text:t.slice(e[0].length),metadata:s}}(0,c.K)(rC,"extractFrontMatter");var rx=(0,c.K)(t=>t.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(t,e,r)=>"<"+e+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),rk=(0,c.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"),rb=(0,c.K)(t=>{let e=n._K.detectInit(t)??{},r=n._K.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:t})=>"wrap"===t):r?.type==="wrap"&&(e.wrap=!0),{text:(0,n.vU)(t),directive:e}},"processDirectives");function rw(t){let e=rk(rx(t)),r=rb(e.text),i=(0,n.$t)(e.config,r.directive);return{code:t=rm(r.text),title:e.title,config:i}}function rT(t){return btoa(Array.from(new TextEncoder().encode(t),t=>String.fromCodePoint(t)).join(""))}(0,c.K)(rw,"preprocessDiagram"),(0,c.K)(rT,"toBase64");var rB=["foreignobject"],rS=["dominant-baseline"];function rv(t){let e=rw(t);return(0,l.cL)(),(0,l.xA)(e.config??{}),e}async function r_(t,e){rc();try{let{code:e,config:r}=rv(t);return{diagramType:(await rR(e)).type,config:r}}catch(t){if(e?.suppressErrors)return!1;throw t}}(0,c.K)(rv,"processAndSetConfigs"),(0,c.K)(r_,"parse");var rF=(0,c.K)((t,e,r=[])=>{let i=(0,l.Df)(`{ ${r.join(" !important; ")} !important; }`);return`.${t} ${e} ${i}`},"cssImportantStyles"),rL=(0,c.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,l.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,l.KG)(e)+"\n"}else i+=`${t.themeCSS}
|
|
252
|
+
Please report this to https://github.com/markedjs/marked.`,t){let t="<p>An error occurred:</p><pre>"+tc(r.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(r);throw r}}};function tw(t,e){return tb.parse(t,e)}tw.options=tw.setOptions=function(t){return tb.setOptions(t),tw.defaults=tb.defaults,c=tw.defaults,tw},tw.getDefaults=h,tw.defaults=c,tw.use=function(...t){return tb.use(...t),tw.defaults=tb.defaults,c=tw.defaults,tw},tw.walkTokens=function(t,e){return tb.walkTokens(t,e)},tw.parseInline=tb.parseInline,tw.Parser=tx,tw.parser=tx.parse,tw.Renderer=tm,tw.TextRenderer=tC,tw.Lexer=ty,tw.lexer=ty.lex,tw.Tokenizer=tf,tw.Hooks=tk,tw.parse=tw,tw.options,tw.setOptions,tw.use,tw.walkTokens,tw.parseInline,tx.parse,ty.lex;var tT=r(84146);function tB(t,{markdownAutoWrap:e}){let r=t.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n");return(0,tT.T)(r)}function tS(t){return t.split(/\\n|\n|<br\s*\/?>/gi).map(t=>t.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(t=>({content:t,type:"normal"}))??[])}function tv(t,e={}){let r=tB(t,e),i=tw.lexer(r),o=[[]],a=0;function s(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(/'/g,"'"))&&o[a].push({content:t,type:e})})}):"strong"===t.type||"em"===t.type?t.tokens.forEach(e=>{s(e,t.type)}):"html"===t.type&&o[a].push({content:t.text,type:"normal"})}return(0,n.K)(s,"processNode"),i.forEach(t=>{"paragraph"===t.type?t.tokens?.forEach(t=>{s(t)}):"html"===t.type?o[a].push({content:t.text,type:"normal"}):o[a].push({content:t.raw,type:"normal"})}),o}function t_(t){return t?`<p>${t.replace(/\\n|\n/g,"<br />")}</p>`:""}function tF(t,{markdownAutoWrap:e}={}){let r=tw.lexer(t);function i(t){if("text"===t.type)return!1===e?t.text.replace(/\n */g,"<br/>").replace(/ /g," "):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 s.R.warn(`Unsupported markdown: ${t.type}`),t.raw}return(0,n.K)(i,"output"),r.map(i).join("")}function tL(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(t=>t.segment):[...t]}function tA(t,e){return tM(t,[],tL(e.content),e.type)}function tM(t,e,r,i){if(0===r.length)return[{content:e.join(""),type:i},{content:"",type:i}];let[o,...a]=r,s=[...e,o];return t([{content:s.join(""),type:i}])?tM(t,s,a,i):(0===e.length&&o&&(e.push(o),r.shift()),[{content:e.join(""),type:i},{content:r.join(""),type:i}])}function t$(t,e){if(t.some(({content:t})=>t.includes("\n")))throw Error("splitLineToFitWidth does not support newlines in the line");return tE(t,e)}function tE(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"},s=[...i];if(""!==o&&s.push({content:o,type:"normal"}),s.push(a),e(s))return tE(t,e,r,s);if(i.length>0)r.push(i),t.unshift(a);else if(a.content){let[i,o]=tA(e,a);r.push([i]),o.content&&t.unshift(o)}return tE(t,e,r)}function tO(t,e){e&&t.attr("style",e)}async function tD(t,e,r,i,o=!1,s=(0,a.zj)()){let n=t.append("foreignObject");n.attr("width",`${Math.min(10*r,16384)}px`),n.attr("height",`${Math.min(10*r,16384)}px`);let l=n.append("xhtml:div"),h=(0,a.Wi)(e.label)?await (0,a.dj)(e.label.replace(a.Y2.lineBreakRegex,"\n"),s):(0,a.jZ)(e.label,s),c=e.isNode?"nodeLabel":"edgeLabel",d=l.append("span");d.html(h),tO(d,e.labelStyle),d.attr("class",`${c} ${i}`),tO(l,e.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),1/0!==r&&(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");let u=l.node().getBoundingClientRect();return u.width===r&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",r+"px"),u=l.node().getBoundingClientRect()),n.node()}function tq(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 tI(t,e,r){let i=t.append("text"),o=tq(i,1,e);tz(o,r);let a=o.node().getComputedTextLength();return i.remove(),a}function tK(t,e,r){let i=t.append("text"),o=tq(i,1,e);tz(o,[{content:r,type:"normal"}]);let a=o.node()?.getBoundingClientRect();return a&&i.remove(),a}function tR(t,e,r,i=!1,o=!1){let a=e.append("g"),s=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,n.K)(e=>tI(a,1.1,e)<=t,"checkWidth");for(let t of r(e)?[e]:t$(e,r))tz(tq(l,h,1.1,o),t),h++}if(!i)return l.node();{let t=l.node().getBBox();return s.attr("x",t.x-2).attr("y",t.y-2).attr("width",t.width+4).attr("height",t.height+4),a.node()}}function tP(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 tz(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(tP(e.content)):i.text(" "+tP(e.content))})}async function tW(t,e={}){let r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(t,o,s)=>(r.push((async()=>{let r=`${o}:${s}`;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,n.K)(tB,"preprocessMarkdown"),(0,n.K)(tS,"nonMarkdownToLines"),(0,n.K)(tv,"markdownToLines"),(0,n.K)(t_,"nonMarkdownToHTML"),(0,n.K)(tF,"markdownToHTML"),(0,n.K)(tL,"splitTextToChars"),(0,n.K)(tA,"splitWordToFitWidth"),(0,n.K)(tM,"splitWordToFitWidthRecursion"),(0,n.K)(t$,"splitLineToFitWidth"),(0,n.K)(tE,"splitLineToFitWidthRecursion"),(0,n.K)(tO,"applyStyle"),(0,n.K)(tD,"addHtmlSpan"),(0,n.K)(tq,"createTspan"),(0,n.K)(tI,"computeWidthOfText"),(0,n.K)(tK,"computeDimensionOfText"),(0,n.K)(tR,"createFormattedText"),(0,n.K)(tP,"decodeHTMLEntities"),(0,n.K)(tz,"updateTextContentAndStyles"),(0,n.K)(tW,"replaceIconSubstring");var tj=(0,n.K)(async(t,e="",{style:r="",isTitle:i=!1,classes:n="",useHtmlLabels:h=!0,markdown:c=!0,isNode:d=!0,width:u=200,addSvgBackground:p=!1}={},g)=>{if(s.R.debug("XYZ createText",e,r,i,n,h,d,"addSvgBackground: ",p),h){let i=c?tF(e,g):t_(e),s=await tW((0,o.Sm)(i),g),l=e.replace(/\\\\/g,"\\"),h={isNode:d,label:(0,a.Wi)(e)?l:s,labelStyle:r.replace("fill:","color:")};return await tD(t,h,u,n,p,g)}{let a=(0,o.Sm)(e.replace(/<br\s*\/?>/g,"<br/>")),s=tR(u,t,c?tv(a.replace("<br>","<br/>"),g):tS(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,l.Ltv)(s).attr("style",t)}else{let t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");(0,l.Ltv)(s).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,l.Ltv)(s).select("text").attr("style",e)}return i?(0,l.Ltv)(s).selectAll("tspan.text-outer-tspan").classed("title-row",!0):(0,l.Ltv)(s).selectAll("tspan.text-outer-tspan").classed("row",!0),s}},"createText")},31293(t,e,r){var i=r(86827),o=r(74353),a={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},s={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")},n=(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),s.trace=()=>{},s.debug=()=>{},s.info=()=>{},s.warn=()=>{},s.error=()=>{},s.fatal=()=>{},e<=a.fatal&&(s.fatal=console.error?console.error.bind(console,l("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",l("FATAL"))),e<=a.error&&(s.error=console.error?console.error.bind(console,l("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",l("ERROR"))),e<=a.warn&&(s.warn=console.warn?console.warn.bind(console,l("WARN"),"color: orange"):console.log.bind(console,"\x1b[33m",l("WARN"))),e<=a.info&&(s.info=console.info?console.info.bind(console,l("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",l("INFO"))),e<=a.debug&&(s.debug=console.debug?console.debug.bind(console,l("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("DEBUG"))),e<=a.trace&&(s.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");r.d(e,{H:()=>n,R:()=>s})},86827(t,e,r){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})};r.d(e,{K:()=>o,V:()=>a})},81818(t,e,r){var i,o=r(86827);function a(t){return null==t}function s(t){return"object"==typeof t&&null!==t}function n(t,e){var r,i="";for(r=0;r<e;r+=1)i+=t;return i}function l(t){return 0===t&&-1/0==1/t}(0,o.K)(a,"isNothing"),(0,o.K)(s,"isObject"),(0,o.K)(function(t){return Array.isArray(t)?t:a(t)?[]:[t]},"toArray"),(0,o.K)(function(t,e){var r,i,o,a;if(e)for(r=0,i=(a=Object.keys(e)).length;r<i;r+=1)t[o=a[r]]=e[o];return t},"extend"),(0,o.K)(n,"repeat"),(0,o.K)(l,"isNegativeZero");function h(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+="\n\n"+t.mark.snippet),i+" "+r):i}function c(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=h(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}function d(t,e,r,i,o){var a="",s="",n=Math.floor(o/2)-1;return i-e>n&&(e=i-n+(a=" ... ").length),r-i>n&&(r=i+n-(s=" ...").length),{str:a+t.slice(e,r).replace(/\t/g,"→")+s,pos:i-e+a.length}}function u(t,e){return n(" ",e-t.length)+t}function p(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],o=[],a=-1;s=r.exec(t.buffer);)o.push(s.index),i.push(s.index+s[0].length),t.position<=s.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var s,l,h,c="",p=Math.min(t.line+e.linesAfter,o.length).toString().length,g=e.maxLength-(e.indent+p+3);for(l=1;l<=e.linesBefore&&!(a-l<0);l++)h=d(t.buffer,i[a-l],o[a-l],t.position-(i[a]-i[a-l]),g),c=n(" ",e.indent)+u((t.line-l+1).toString(),p)+" | "+h.str+"\n"+c;for(h=d(t.buffer,i[a],o[a],t.position,g),c+=n(" ",e.indent)+u((t.line+1).toString(),p)+" | "+h.str+"\n"+n("-",e.indent+p+3+h.pos)+"^\n",l=1;l<=e.linesAfter&&!(a+l>=o.length);l++)h=d(t.buffer,i[a+l],o[a+l],t.position-(i[a]-i[a+l]),g),c+=n(" ",e.indent)+u((t.line+l+1).toString(),p)+" | "+h.str+"\n";return c.replace(/\n$/,"")}(0,o.K)(h,"formatError"),(0,o.K)(c,"YAMLException$1"),c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,c.prototype.toString=(0,o.K)(function(t){return this.name+": "+h(this,t)},"toString"),(0,o.K)(d,"getLine"),(0,o.K)(u,"padStart"),(0,o.K)(p,"makeSnippet");var g=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],f=["scalar","sequence","mapping"];function y(t){var e={};return null!==t&&Object.keys(t).forEach(function(r){t[r].forEach(function(t){e[String(t)]=r})}),e}function m(t,e){if(Object.keys(e=e||{}).forEach(function(e){if(-1===g.indexOf(e))throw new c('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=y(e.styleAliases||null),-1===f.indexOf(this.kind))throw new c('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}function C(t,e){var r=[];return t[e].forEach(function(t){var 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 x(){var t,e,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(t){t.multi?(r.multi[t.kind].push(t),r.multi.fallback.push(t)):r[t.kind][t.tag]=r.fallback[t.tag]=t}for((0,o.K)(i,"collectType"),t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(i);return r}function k(t){return this.extend(t)}(0,o.K)(y,"compileStyleAliases"),(0,o.K)(m,"Type$1"),(0,o.K)(C,"compileList"),(0,o.K)(x,"compileMap"),(0,o.K)(k,"Schema$1"),k.prototype.extend=(0,o.K)(function(t){var e=[],r=[];if(t instanceof m)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new c("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.forEach(function(t){if(!(t instanceof m))throw new c("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new c("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new c("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(t){if(!(t instanceof m))throw new c("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(k.prototype);return i.implicit=(this.implicit||[]).concat(e),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=C(i,"implicit"),i.compiledExplicit=C(i,"explicit"),i.compiledTypeMap=x(i.compiledImplicit,i.compiledExplicit),i},"extend");var b=new k({explicit:[new m("tag:yaml.org,2002:str",{kind:"scalar",construct:(0,o.K)(function(t){return null!==t?t:""},"construct")}),new m("tag:yaml.org,2002:seq",{kind:"sequence",construct:(0,o.K)(function(t){return null!==t?t:[]},"construct")}),new m("tag:yaml.org,2002:map",{kind:"mapping",construct:(0,o.K)(function(t){return null!==t?t:{}},"construct")})]});function w(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function T(){return null}function B(t){return null===t}(0,o.K)(w,"resolveYamlNull"),(0,o.K)(T,"constructYamlNull"),(0,o.K)(B,"isNull");var S=new m("tag:yaml.org,2002:null",{kind:"scalar",resolve:w,construct:T,predicate:B,represent:{canonical:(0,o.K)(function(){return"~"},"canonical"),lowercase:(0,o.K)(function(){return"null"},"lowercase"),uppercase:(0,o.K)(function(){return"NULL"},"uppercase"),camelcase:(0,o.K)(function(){return"Null"},"camelcase"),empty:(0,o.K)(function(){return""},"empty")},defaultStyle:"lowercase"});function v(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)}function _(t){return"true"===t||"True"===t||"TRUE"===t}function F(t){return"[object Boolean]"===Object.prototype.toString.call(t)}(0,o.K)(v,"resolveYamlBoolean"),(0,o.K)(_,"constructYamlBoolean"),(0,o.K)(F,"isBoolean");var L=new m("tag:yaml.org,2002:bool",{kind:"scalar",resolve:v,construct:_,predicate:F,represent:{lowercase:(0,o.K)(function(t){return t?"true":"false"},"lowercase"),uppercase:(0,o.K)(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:(0,o.K)(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function A(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function M(t){return 48<=t&&t<=55}function $(t){return 48<=t&&t<=57}function E(t){if(null===t)return!1;var e,r=t.length,i=0,o=!1;if(!r)return!1;if(("-"===(e=t[i])||"+"===e)&&(e=t[++i]),"0"===e){if(i+1===r)return!0;if("b"===(e=t[++i])){for(i++;i<r;i++)if("_"!==(e=t[i])){if("0"!==e&&"1"!==e)return!1;o=!0}return o&&"_"!==e}if("x"===e){for(i++;i<r;i++)if("_"!==(e=t[i])){if(!A(t.charCodeAt(i)))return!1;o=!0}return o&&"_"!==e}if("o"===e){for(i++;i<r;i++)if("_"!==(e=t[i])){if(!M(t.charCodeAt(i)))return!1;o=!0}return o&&"_"!==e}}if("_"===e)return!1;for(;i<r;i++)if("_"!==(e=t[i])){if(!$(t.charCodeAt(i)))return!1;o=!0}return!!o&&"_"!==e}function O(t){var e,r=t,i=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),("-"===(e=r[0])||"+"===e)&&("-"===e&&(i=-1),e=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===e){if("b"===r[1])return i*parseInt(r.slice(2),2);if("x"===r[1])return i*parseInt(r.slice(2),16);if("o"===r[1])return i*parseInt(r.slice(2),8)}return i*parseInt(r,10)}function D(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!l(t)}(0,o.K)(A,"isHexCode"),(0,o.K)(M,"isOctCode"),(0,o.K)($,"isDecCode"),(0,o.K)(E,"resolveYamlInteger"),(0,o.K)(O,"constructYamlInteger"),(0,o.K)(D,"isInteger");var q=new m("tag:yaml.org,2002:int",{kind:"scalar",resolve:E,construct:O,predicate:D,represent:{binary:(0,o.K)(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:(0,o.K)(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:(0,o.K)(function(t){return t.toString(10)},"decimal"),hexadecimal:(0,o.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"]}}),I=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function K(t){return null!==t&&!!I.test(t)&&"_"!==t[t.length-1]}function R(t){var e,r;return(r="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e)?1===r?1/0:-1/0:".nan"===e?0/0:r*parseFloat(e,10)}(0,o.K)(K,"resolveYamlFloat"),(0,o.K)(R,"constructYamlFloat");var P=/^[-+]?[0-9]+e/;function z(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(1/0===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(-1/0===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(l(t))return"-0.0";return r=t.toString(10),P.test(r)?r.replace("e",".e"):r}function W(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||l(t))}(0,o.K)(z,"representYamlFloat"),(0,o.K)(W,"isFloat");var j=new m("tag:yaml.org,2002:float",{kind:"scalar",resolve:K,construct:R,predicate:W,represent:z,defaultStyle:"lowercase"}),N=b.extend({implicit:[S,L,q,j]}),H=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),U=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 Y(t){return null!==t&&(null!==H.exec(t)||null!==U.exec(t))}function X(t){var e,r,i,o,a,s,n,l,h=0,c=null;if(null===(e=H.exec(t))&&(e=U.exec(t)),null===e)throw Error("Date resolve error");if(r=+e[1],i=e[2]-1,o=+e[3],!e[4])return new Date(Date.UTC(r,i,o));if(a=+e[4],s=+e[5],n=+e[6],e[7]){for(h=e[7].slice(0,3);h.length<3;)h+="0";h*=1}return e[9]&&(c=(60*e[10]+ +(e[11]||0))*6e4,"-"===e[9]&&(c=-c)),l=new Date(Date.UTC(r,i,o,a,s,n,h)),c&&l.setTime(l.getTime()-c),l}function G(t){return t.toISOString()}(0,o.K)(Y,"resolveYamlTimestamp"),(0,o.K)(X,"constructYamlTimestamp"),(0,o.K)(G,"representYamlTimestamp");var V=new m("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Y,construct:X,instanceOf:Date,represent:G});function Z(t){return"<<"===t||null===t}(0,o.K)(Z,"resolveYamlMerge");var Q=new m("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Z}),J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function tt(t){if(null===t)return!1;var e,r,i=0,o=t.length;for(r=0;r<o;r++)if(!((e=J.indexOf(t.charAt(r)))>64)){if(e<0)return!1;i+=6}return i%8==0}function te(t){var e,r,i=t.replace(/[\r\n=]/g,""),o=i.length,a=0,s=[];for(e=0;e<o;e++)e%4==0&&e&&(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)),a=a<<6|J.indexOf(i.charAt(e));return 0==(r=o%4*6)?(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)):18===r?(s.push(a>>10&255),s.push(a>>2&255)):12===r&&s.push(a>>4&255),new Uint8Array(s)}function tr(t){var e,r,i="",o=0,a=t.length;for(e=0;e<a;e++)e%3==0&&e&&(i+=J[o>>18&63],i+=J[o>>12&63],i+=J[o>>6&63],i+=J[63&o]),o=(o<<8)+t[e];return 0==(r=a%3)?(i+=J[o>>18&63],i+=J[o>>12&63],i+=J[o>>6&63],i+=J[63&o]):2===r?(i+=J[o>>10&63],i+=J[o>>4&63],i+=J[o<<2&63],i+=J[64]):1===r&&(i+=J[o>>2&63],i+=J[o<<4&63],i+=J[64],i+=J[64]),i}function ti(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}(0,o.K)(tt,"resolveYamlBinary"),(0,o.K)(te,"constructYamlBinary"),(0,o.K)(tr,"representYamlBinary"),(0,o.K)(ti,"isBinary");var to=new m("tag:yaml.org,2002:binary",{kind:"scalar",resolve:tt,construct:te,predicate:ti,represent:tr}),ta=Object.prototype.hasOwnProperty,ts=Object.prototype.toString;function tn(t){if(null===t)return!0;var e,r,i,o,a,s=[];for(e=0,r=t.length;e<r;e+=1){if(i=t[e],a=!1,"[object Object]"!==ts.call(i))return!1;for(o in i)if(ta.call(i,o))if(a)return!1;else a=!0;if(!a||-1!==s.indexOf(o))return!1;s.push(o)}return!0}function tl(t){return null!==t?t:[]}(0,o.K)(tn,"resolveYamlOmap"),(0,o.K)(tl,"constructYamlOmap");var th=new m("tag:yaml.org,2002:omap",{kind:"sequence",resolve:tn,construct:tl}),tc=Object.prototype.toString;function td(t){var e,r,i,o,a;if(null===t)return!0;for(a=Array(t.length),e=0,r=t.length;e<r;e+=1){if(i=t[e],"[object Object]"!==tc.call(i)||1!==(o=Object.keys(i)).length)return!1;a[e]=[o[0],i[o[0]]]}return!0}function tu(t){var e,r,i,o,a;if(null===t)return[];for(a=Array(t.length),e=0,r=t.length;e<r;e+=1)o=Object.keys(i=t[e]),a[e]=[o[0],i[o[0]]];return a}(0,o.K)(td,"resolveYamlPairs"),(0,o.K)(tu,"constructYamlPairs");var tp=new m("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:td,construct:tu}),tg=Object.prototype.hasOwnProperty;function tf(t){var e;if(null===t)return!0;for(e in t)if(tg.call(t,e)&&null!==t[e])return!1;return!0}function ty(t){return null!==t?t:{}}(0,o.K)(tf,"resolveYamlSet"),(0,o.K)(ty,"constructYamlSet");var tm=new m("tag:yaml.org,2002:set",{kind:"mapping",resolve:tf,construct:ty}),tC=N.extend({implicit:[V,Q],explicit:[to,th,tp,tm]}),tx=Object.prototype.hasOwnProperty,tk=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,tb=/[\x85\u2028\u2029]/,tw=/[,\[\]\{\}]/,tT=/^(?:!|!!|![a-z\-]+!)$/i,tB=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function tS(t){return Object.prototype.toString.call(t)}function tv(t){return 10===t||13===t}function t_(t){return 9===t||32===t}function tF(t){return 9===t||32===t||10===t||13===t}function tL(t){return 44===t||91===t||93===t||123===t||125===t}function tA(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function tM(t){return 120===t?2:117===t?4:8*(85===t)}function t$(t){return 48<=t&&t<=57?t-48:-1}function tE(t){return 48===t?"\0":97===t?"\x07":98===t?"\b":116===t||9===t?" ":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"\x1b":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"
":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function tO(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function tD(t,e,r){"__proto__"===e?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}(0,o.K)(tS,"_class"),(0,o.K)(tv,"is_EOL"),(0,o.K)(t_,"is_WHITE_SPACE"),(0,o.K)(tF,"is_WS_OR_EOL"),(0,o.K)(tL,"is_FLOW_INDICATOR"),(0,o.K)(tA,"fromHexCode"),(0,o.K)(tM,"escapedHexLen"),(0,o.K)(t$,"fromDecimalCode"),(0,o.K)(tE,"simpleEscapeSequence"),(0,o.K)(tO,"charFromCodepoint"),(0,o.K)(tD,"setProperty");var tq=Array(256),tI=Array(256);for(i=0;i<256;i++)tq[i]=+!!tE(i),tI[i]=tE(i);function tK(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||tC,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function tR(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=p(r),new c(e,r)}function tP(t,e){throw tR(t,e)}function tz(t,e){t.onWarning&&t.onWarning.call(null,tR(t,e))}(0,o.K)(tK,"State$1"),(0,o.K)(tR,"generateError"),(0,o.K)(tP,"throwError"),(0,o.K)(tz,"throwWarning");var tW={YAML:(0,o.K)(function(t,e,r){var i,o,a;null!==t.version&&tP(t,"duplication of %YAML directive"),1!==r.length&&tP(t,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&tP(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),a=parseInt(i[2],10),1!==o&&tP(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,1!==a&&2!==a&&tz(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:(0,o.K)(function(t,e,r){var i,o;2!==r.length&&tP(t,"TAG directive accepts exactly two arguments"),i=r[0],o=r[1],tT.test(i)||tP(t,"ill-formed tag handle (first argument) of the TAG directive"),tx.call(t.tagMap,i)&&tP(t,'there is a previously declared suffix for "'+i+'" tag handle'),tB.test(o)||tP(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch(e){tP(t,"tag prefix is malformed: "+o)}t.tagMap[i]=o},"handleTagDirective")};function tj(t,e,r,i){var o,a,s,n;if(e<r){if(n=t.input.slice(e,r),i)for(o=0,a=n.length;o<a;o+=1)9===(s=n.charCodeAt(o))||32<=s&&s<=1114111||tP(t,"expected valid JSON character");else tk.test(n)&&tP(t,"the stream contains non-printable characters");t.result+=n}}function tN(t,e,r,i){var o,a,n,l;for(s(r)||tP(t,"cannot merge mappings; the provided source object is unacceptable"),n=0,l=(o=Object.keys(r)).length;n<l;n+=1)a=o[n],tx.call(e,a)||(tD(e,a,r[a]),i[a]=!0)}function tH(t,e,r,i,o,a,s,n,l){var h,c;if(Array.isArray(o))for(h=0,c=(o=Array.prototype.slice.call(o)).length;h<c;h+=1)Array.isArray(o[h])&&tP(t,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===tS(o[h])&&(o[h]="[object Object]");if("object"==typeof o&&"[object Object]"===tS(o)&&(o="[object Object]"),o=String(o),null===e&&(e={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(a))for(h=0,c=a.length;h<c;h+=1)tN(t,e,a[h],r);else tN(t,e,a,r);else!t.json&&!tx.call(r,o)&&tx.call(e,o)&&(t.line=s||t.line,t.lineStart=n||t.lineStart,t.position=l||t.position,tP(t,"duplicated mapping key")),tD(e,o,a),delete r[o];return e}function tU(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):tP(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function tY(t,e,r){for(var i=0,o=t.input.charCodeAt(t.position);0!==o;){for(;t_(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(tv(o))for(tU(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&&tz(t,"deficient indentation"),i}function tX(t){var e,r=t.position;return!!((45===(e=t.input.charCodeAt(r))||46===e)&&e===t.input.charCodeAt(r+1)&&e===t.input.charCodeAt(r+2)&&(r+=3,0===(e=t.input.charCodeAt(r))||tF(e)))||!1}function tG(t,e){1===e?t.result+=" ":e>1&&(t.result+=n("\n",e-1))}function tV(t,e,r){var i,o,a,s,n,l,h,c,d=t.kind,u=t.result;if(tF(c=t.input.charCodeAt(t.position))||tL(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c||(63===c||45===c)&&(tF(i=t.input.charCodeAt(t.position+1))||r&&tL(i)))return!1;for(t.kind="scalar",t.result="",o=a=t.position,s=!1;0!==c;){if(58===c){if(tF(i=t.input.charCodeAt(t.position+1))||r&&tL(i))break}else if(35===c){if(tF(t.input.charCodeAt(t.position-1)))break}else if(t.position===t.lineStart&&tX(t)||r&&tL(c))break;else if(tv(c)){if(n=t.line,l=t.lineStart,h=t.lineIndent,tY(t,!1,-1),t.lineIndent>=e){s=!0,c=t.input.charCodeAt(t.position);continue}t.position=a,t.line=n,t.lineStart=l,t.lineIndent=h;break}s&&(tj(t,o,a,!1),tG(t,t.line-n),o=a=t.position,s=!1),t_(c)||(a=t.position+1),c=t.input.charCodeAt(++t.position)}return tj(t,o,a,!1),!!t.result||(t.kind=d,t.result=u,!1)}function tZ(t,e){var r,i,o;if(39!==(r=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,i=o=t.position;0!==(r=t.input.charCodeAt(t.position));)if(39===r){if(tj(t,i,t.position,!0),39!==(r=t.input.charCodeAt(++t.position)))return!0;i=t.position,t.position++,o=t.position}else tv(r)?(tj(t,i,o,!0),tG(t,tY(t,!1,e)),i=o=t.position):t.position===t.lineStart&&tX(t)?tP(t,"unexpected end of the document within a single quoted scalar"):(t.position++,o=t.position);tP(t,"unexpected end of the stream within a single quoted scalar")}function tQ(t,e){var r,i,o,a,s,n;if(34!==(n=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;0!==(n=t.input.charCodeAt(t.position));)if(34===n)return tj(t,r,t.position,!0),t.position++,!0;else if(92===n){if(tj(t,r,t.position,!0),tv(n=t.input.charCodeAt(++t.position)))tY(t,!1,e);else if(n<256&&tq[n])t.result+=tI[n],t.position++;else if((s=tM(n))>0){for(o=s,a=0;o>0;o--)(s=tA(n=t.input.charCodeAt(++t.position)))>=0?a=(a<<4)+s:tP(t,"expected hexadecimal character");t.result+=tO(a),t.position++}else tP(t,"unknown escape sequence");r=i=t.position}else tv(n)?(tj(t,r,i,!0),tG(t,tY(t,!1,e)),r=i=t.position):t.position===t.lineStart&&tX(t)?tP(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position);tP(t,"unexpected end of the stream within a double quoted scalar")}function tJ(t,e){var r,i,o,a,s,n,l,h,c,d,u,p,g=!0,f=t.tag,y=t.anchor,m=Object.create(null);if(91===(p=t.input.charCodeAt(t.position)))s=93,h=!1,a=[];else{if(123!==p)return!1;s=125,h=!0,a={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),p=t.input.charCodeAt(++t.position);0!==p;){if(tY(t,!0,e),(p=t.input.charCodeAt(t.position))===s)return t.position++,t.tag=f,t.anchor=y,t.kind=h?"mapping":"sequence",t.result=a,!0;g?44===p&&tP(t,"expected the node content, but found ','"):tP(t,"missed comma between flow collection entries"),d=c=u=null,n=l=!1,63===p&&tF(t.input.charCodeAt(t.position+1))&&(n=l=!0,t.position++,tY(t,!0,e)),r=t.line,i=t.lineStart,o=t.position,t6(t,e,1,!1,!0),d=t.tag,c=t.result,tY(t,!0,e),p=t.input.charCodeAt(t.position),(l||t.line===r)&&58===p&&(n=!0,p=t.input.charCodeAt(++t.position),tY(t,!0,e),t6(t,e,1,!1,!0),u=t.result),h?tH(t,a,m,d,c,u,r,i,o):n?a.push(tH(t,null,m,d,c,u,r,i,o)):a.push(c),tY(t,!0,e),44===(p=t.input.charCodeAt(t.position))?(g=!0,p=t.input.charCodeAt(++t.position)):g=!1}tP(t,"unexpected end of the stream within a flow collection")}function t0(t,e){var r,i,o,a,s=1,l=!1,h=!1,c=e,d=0,u=!1;if(124===(a=t.input.charCodeAt(t.position)))i=!1;else{if(62!==a)return!1;i=!0}for(t.kind="scalar",t.result="";0!==a;)if(43===(a=t.input.charCodeAt(++t.position))||45===a)1===s?s=43===a?3:2:tP(t,"repeat of a chomping mode identifier");else if((o=t$(a))>=0)0===o?tP(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):h?tP(t,"repeat of an indentation width identifier"):(c=e+o-1,h=!0);else break;if(t_(a)){do a=t.input.charCodeAt(++t.position);while(t_(a))if(35===a)do a=t.input.charCodeAt(++t.position);while(!tv(a)&&0!==a)}for(;0!==a;){for(tU(t),t.lineIndent=0,a=t.input.charCodeAt(t.position);(!h||t.lineIndent<c)&&32===a;)t.lineIndent++,a=t.input.charCodeAt(++t.position);if(!h&&t.lineIndent>c&&(c=t.lineIndent),tv(a)){d++;continue}if(t.lineIndent<c){3===s?t.result+=n("\n",l?1+d:d):1===s&&l&&(t.result+="\n");break}for(i?t_(a)?(u=!0,t.result+=n("\n",l?1+d:d)):u?(u=!1,t.result+=n("\n",d+1)):0===d?l&&(t.result+=" "):t.result+=n("\n",d):t.result+=n("\n",l?1+d:d),l=!0,h=!0,d=0,r=t.position;!tv(a)&&0!==a;)a=t.input.charCodeAt(++t.position);tj(t,r,t.position,!1)}return!0}function t1(t,e){var r,i,o=t.tag,a=t.anchor,s=[],n=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=s),i=t.input.charCodeAt(t.position);0!==i&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,tP(t,"tab characters must not be used in indentation")),45===i&&tF(t.input.charCodeAt(t.position+1)));){if(n=!0,t.position++,tY(t,!0,-1)&&t.lineIndent<=e){s.push(null),i=t.input.charCodeAt(t.position);continue}if(r=t.line,t6(t,e,3,!1,!0),s.push(t.result),tY(t,!0,-1),i=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==i)tP(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return!!n&&(t.tag=o,t.anchor=a,t.kind="sequence",t.result=s,!0)}function t2(t,e,r){var i,o,a,s,n,l,h,c=t.tag,d=t.anchor,u={},p=Object.create(null),g=null,f=null,y=null,m=!1,C=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=u),h=t.input.charCodeAt(t.position);0!==h;){if(m||-1===t.firstTabInLine||(t.position=t.firstTabInLine,tP(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),a=t.line,(63===h||58===h)&&tF(i))63===h?(m&&(tH(t,u,p,g,f,null,s,n,l),g=f=y=null),C=!0,m=!0,o=!0):m?(m=!1,o=!0):tP(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,h=i;else{if(s=t.line,n=t.lineStart,l=t.position,!t6(t,r,2,!1,!0))break;if(t.line===a){for(h=t.input.charCodeAt(t.position);t_(h);)h=t.input.charCodeAt(++t.position);if(58===h)tF(h=t.input.charCodeAt(++t.position))||tP(t,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(tH(t,u,p,g,f,null,s,n,l),g=f=y=null),C=!0,m=!1,o=!1,g=t.tag,f=t.result;else{if(!C)return t.tag=c,t.anchor=d,!0;tP(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!C)return t.tag=c,t.anchor=d,!0;tP(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((t.line===a||t.lineIndent>e)&&(m&&(s=t.line,n=t.lineStart,l=t.position),t6(t,e,4,!0,o)&&(m?f=t.result:y=t.result),m||(tH(t,u,p,g,f,y,s,n,l),g=f=y=null),tY(t,!0,-1),h=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&0!==h)tP(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return m&&tH(t,u,p,g,f,null,s,n,l),C&&(t.tag=c,t.anchor=d,t.kind="mapping",t.result=u),C}function t5(t){var e,r,i,o,a=!1,s=!1;if(33!==(o=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&tP(t,"duplication of a tag property"),60===(o=t.input.charCodeAt(++t.position))?(a=!0,o=t.input.charCodeAt(++t.position)):33===o?(s=!0,r="!!",o=t.input.charCodeAt(++t.position)):r="!",e=t.position,a){do o=t.input.charCodeAt(++t.position);while(0!==o&&62!==o)t.position<t.length?(i=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):tP(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!tF(o);)33===o&&(s?tP(t,"tag suffix cannot contain exclamation marks"):(r=t.input.slice(e-1,t.position+1),tT.test(r)||tP(t,"named tag handle cannot contain such characters"),s=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);i=t.input.slice(e,t.position),tw.test(i)&&tP(t,"tag suffix cannot contain flow indicator characters")}i&&!tB.test(i)&&tP(t,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch(e){tP(t,"tag name is malformed: "+i)}return a?t.tag=i:tx.call(t.tagMap,r)?t.tag=t.tagMap[r]+i:"!"===r?t.tag="!"+i:"!!"===r?t.tag="tag:yaml.org,2002:"+i:tP(t,'undeclared tag handle "'+r+'"'),!0}function t3(t){var e,r;if(38!==(r=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&tP(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!tF(r)&&!tL(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&tP(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function t4(t){var e,r,i;if(42!==(i=t.input.charCodeAt(t.position)))return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!tF(i)&&!tL(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&tP(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),tx.call(t.anchorMap,r)||tP(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],tY(t,!0,-1),!0}function t6(t,e,r,i,o){var a,s,n,l,h,c,d,u,p,g=1,f=!1,y=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=s=n=4===r||3===r,i&&tY(t,!0,-1)&&(f=!0,t.lineIndent>e?g=1:t.lineIndent===e?g=0:t.lineIndent<e&&(g=-1)),1===g)for(;t5(t)||t3(t);)tY(t,!0,-1)?(f=!0,n=a,t.lineIndent>e?g=1:t.lineIndent===e?g=0:t.lineIndent<e&&(g=-1)):n=!1;if(n&&(n=f||o),(1===g||4===r)&&(u=1===r||2===r?e:e+1,p=t.position-t.lineStart,1===g?n&&(t1(t,p)||t2(t,p,u))||tJ(t,u)?y=!0:(s&&t0(t,u)||tZ(t,u)||tQ(t,u)?y=!0:t4(t)?(y=!0,(null!==t.tag||null!==t.anchor)&&tP(t,"alias node should not have any properties")):tV(t,u,1===r)&&(y=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===g&&(y=n&&t1(t,p))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&tP(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),l=0,h=t.implicitTypes.length;l<h;l+=1)if((d=t.implicitTypes[l]).resolve(t.result)){t.result=d.construct(t.result),t.tag=d.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(tx.call(t.typeMap[t.kind||"fallback"],t.tag))d=t.typeMap[t.kind||"fallback"][t.tag];else for(l=0,d=null,h=(c=t.typeMap.multi[t.kind||"fallback"]).length;l<h;l+=1)if(t.tag.slice(0,c[l].tag.length)===c[l].tag){d=c[l];break}d||tP(t,"unknown tag !<"+t.tag+">"),null!==t.result&&d.kind!==t.kind&&tP(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+d.kind+'", not "'+t.kind+'"'),d.resolve(t.result,t.tag)?(t.result=d.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):tP(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||y}function t8(t){var e,r,i,o,a=t.position,s=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(o=t.input.charCodeAt(t.position))&&(tY(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0)&&37===o);){for(s=!0,o=t.input.charCodeAt(++t.position),e=t.position;0!==o&&!tF(o);)o=t.input.charCodeAt(++t.position);for(r=t.input.slice(e,t.position),i=[],r.length<1&&tP(t,"directive name must not be less than one character in length");0!==o;){for(;t_(o);)o=t.input.charCodeAt(++t.position);if(35===o){do o=t.input.charCodeAt(++t.position);while(0!==o&&!tv(o))break}if(tv(o))break;for(e=t.position;0!==o&&!tF(o);)o=t.input.charCodeAt(++t.position);i.push(t.input.slice(e,t.position))}0!==o&&tU(t),tx.call(tW,r)?tW[r](t,r,i):tz(t,'unknown document directive "'+r+'"')}if(tY(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,tY(t,!0,-1)):s&&tP(t,"directives end mark is expected"),t6(t,t.lineIndent-1,4,!1,!0),tY(t,!0,-1),t.checkLineBreaks&&tb.test(t.input.slice(a,t.position))&&tz(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&tX(t)){46===t.input.charCodeAt(t.position)&&(t.position+=3,tY(t,!0,-1));return}t.position<t.length-1&&tP(t,"end of the stream or a document separator is expected")}function t7(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)));var r=new tK(t,e),i=t.indexOf("\0");for(-1!==i&&(r.position=i,tP(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;)t8(r);return r.documents}function t9(t,e,r){null!==e&&"object"==typeof e&&void 0===r&&(r=e,e=null);var i=t7(t,r);if("function"!=typeof e)return i;for(var o=0,a=i.length;o<a;o+=1)e(i[o])}function et(t,e){var r=t7(t,e);if(0!==r.length){if(1===r.length)return r[0];throw new c("expected a single document in the stream, but found more")}}(0,o.K)(tj,"captureSegment"),(0,o.K)(tN,"mergeMappings"),(0,o.K)(tH,"storeMappingPair"),(0,o.K)(tU,"readLineBreak"),(0,o.K)(tY,"skipSeparationSpace"),(0,o.K)(tX,"testDocumentSeparator"),(0,o.K)(tG,"writeFoldedLines"),(0,o.K)(tV,"readPlainScalar"),(0,o.K)(tZ,"readSingleQuotedScalar"),(0,o.K)(tQ,"readDoubleQuotedScalar"),(0,o.K)(tJ,"readFlowCollection"),(0,o.K)(t0,"readBlockScalar"),(0,o.K)(t1,"readBlockSequence"),(0,o.K)(t2,"readBlockMapping"),(0,o.K)(t5,"readTagProperty"),(0,o.K)(t3,"readAnchorProperty"),(0,o.K)(t4,"readAlias"),(0,o.K)(t6,"composeNode"),(0,o.K)(t8,"readDocument"),(0,o.K)(t7,"loadDocuments"),(0,o.K)(t9,"loadAll$1"),(0,o.K)(et,"load$1");var ee=Object.prototype.toString,er=Object.prototype.hasOwnProperty,ei={};ei[0]="\\0",ei[7]="\\a",ei[8]="\\b",ei[9]="\\t",ei[10]="\\n",ei[11]="\\v",ei[12]="\\f",ei[13]="\\r",ei[27]="\\e",ei[34]='\\"',ei[92]="\\\\",ei[133]="\\N",ei[160]="\\_",ei[8232]="\\L",ei[8233]="\\P";var eo=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ea=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function es(t,e){var r,i,o,a,s,n,l;if(null===e)return{};for(o=0,r={},a=(i=Object.keys(e)).length;o<a;o+=1)n=String(e[s=i[o]]),"!!"===s.slice(0,2)&&(s="tag:yaml.org,2002:"+s.slice(2)),(l=t.compiledTypeMap.fallback[s])&&er.call(l.styleAliases,n)&&(n=l.styleAliases[n]),r[s]=n;return r}function en(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=0xffffffff)r="U",i=8;else throw new c("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+n("0",i-e.length)+e}function el(t){this.schema=t.schema||tC,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=a(t.flowLevel)?-1:t.flowLevel,this.styleMap=es(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function eh(t,e){for(var r,i=n(" ",e),o=0,a=-1,s="",l=t.length;o<l;)-1===(a=t.indexOf("\n",o))?(r=t.slice(o),o=l):(r=t.slice(o,a+1),o=a+1),r.length&&"\n"!==r&&(s+=i),s+=r;return s}function ec(t,e){return"\n"+n(" ",t.indent*e)}function ed(t,e){var r,i;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(t.implicitTypes[r].resolve(e))return!0;return!1}function eu(t){return 32===t||9===t}function ep(t){return 32<=t&&t<=126||161<=t&&t<=55295&&8232!==t&&8233!==t||57344<=t&&t<=65533&&65279!==t||65536<=t&&t<=1114111}function eg(t){return ep(t)&&65279!==t&&13!==t&&10!==t}function ef(t,e,r){var i=eg(t),o=i&&!eu(t);return(r?i:i&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t)&&35!==t&&!(58===e&&!o)||eg(e)&&!eu(e)&&35===t||58===e&&o}function ey(t){return ep(t)&&65279!==t&&!eu(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 em(t){return!eu(t)&&58!==t}function eC(t,e){var 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 ex(t){return/^\n* /.test(t)}function ek(t,e,r,i,o,a,s,n){var l,h=0,c=null,d=!1,u=!1,p=-1!==i,g=-1,f=ey(eC(t,0))&&em(eC(t,t.length-1));if(e||s)for(l=0;l<t.length;h>=65536?l+=2:l++){if(!ep(h=eC(t,l)))return 5;f=f&&ef(h,c,n),c=h}else{for(l=0;l<t.length;h>=65536?l+=2:l++){if(10===(h=eC(t,l)))d=!0,p&&(u=u||l-g-1>i&&" "!==t[g+1],g=l);else if(!ep(h))return 5;f=f&&ef(h,c,n),c=h}u=u||p&&l-g-1>i&&" "!==t[g+1]}return d||u?r>9&&ex(t)?5:s?2===a?5:2:u?4:3:!f||s||o(t)?2===a?5:2:1}function eb(t,e,r,i,a){t.dump=function(){if(0===e.length)return 2===t.quotingType?'""':"''";if(!t.noCompatMode&&(-1!==eo.indexOf(e)||ea.test(e)))return 2===t.quotingType?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),n=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),l=i||t.flowLevel>-1&&r>=t.flowLevel;function h(e){return ed(t,e)}switch((0,o.K)(h,"testAmbiguity"),ek(e,l,t.indent,n,h,t.quotingType,t.forceQuotes&&!i,a)){case 1:return e;case 2:return"'"+e.replace(/'/g,"''")+"'";case 3:return"|"+ew(e,t.indent)+eT(eh(e,s));case 4:return">"+ew(e,t.indent)+eT(eh(eB(e,n),s));case 5:return'"'+ev(e)+'"';default:throw new c("impossible error: invalid scalar style")}}()}function ew(t,e){var r=ex(t)?String(e):"",i="\n"===t[t.length-1];return r+(i&&("\n"===t[t.length-2]||"\n"===t)?"+":i?"":"-")+"\n"}function eT(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function eB(t,e){for(var r,i,o,a=/(\n+)([^\n]*)/g,s=(a.lastIndex=r=-1!==(r=t.indexOf("\n"))?r:t.length,eS(t.slice(0,r),e)),n="\n"===t[0]||" "===t[0];o=a.exec(t);){var l=o[1],h=o[2];i=" "===h[0],s+=l+(n||i||""===h?"":"\n")+eS(h,e),n=i}return s}function eS(t,e){if(""===t||" "===t[0])return t;for(var r,i,o=/ [^ ]/g,a=0,s=0,n=0,l="";r=o.exec(t);)(n=r.index)-a>e&&(i=s>a?s:n,l+="\n"+t.slice(a,i),a=i+1),s=n;return l+="\n",t.length-a>e&&s>a?l+=t.slice(a,s)+"\n"+t.slice(s+1):l+=t.slice(a),l.slice(1)}function ev(t){for(var e,r="",i=0,o=0;o<t.length;i>=65536?o+=2:o++)!(e=ei[i=eC(t,o)])&&ep(i)?(r+=t[o],i>=65536&&(r+=t[o+1])):r+=e||en(i);return r}function e_(t,e,r){var i,o,a,s="",n=t.tag;for(i=0,o=r.length;i<o;i+=1)a=r[i],t.replacer&&(a=t.replacer.call(r,String(i),a)),(e$(t,e,a,!1,!1)||void 0===a&&e$(t,e,null,!1,!1))&&(""!==s&&(s+=","+(t.condenseFlow?"":" ")),s+=t.dump);t.tag=n,t.dump="["+s+"]"}function eF(t,e,r,i){var o,a,s,n="",l=t.tag;for(o=0,a=r.length;o<a;o+=1)s=r[o],t.replacer&&(s=t.replacer.call(r,String(o),s)),(e$(t,e+1,s,!0,!0,!1,!0)||void 0===s&&e$(t,e+1,null,!0,!0,!1,!0))&&(i&&""===n||(n+=ec(t,e)),t.dump&&10===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=l,t.dump=n||"[]"}function eL(t,e,r){var i,o,a,s,n,l="",h=t.tag,c=Object.keys(r);for(i=0,o=c.length;i<o;i+=1)n="",""!==l&&(n+=", "),t.condenseFlow&&(n+='"'),s=r[a=c[i]],t.replacer&&(s=t.replacer.call(r,a,s)),e$(t,e,a,!1,!1)&&(t.dump.length>1024&&(n+="? "),n+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),e$(t,e,s,!1,!1)&&(n+=t.dump,l+=n));t.tag=h,t.dump="{"+l+"}"}function eA(t,e,r,i){var o,a,s,n,l,h,d="",u=t.tag,p=Object.keys(r);if(!0===t.sortKeys)p.sort();else if("function"==typeof t.sortKeys)p.sort(t.sortKeys);else if(t.sortKeys)throw new c("sortKeys must be a boolean or a function");for(o=0,a=p.length;o<a;o+=1)h="",i&&""===d||(h+=ec(t,e)),n=r[s=p[o]],t.replacer&&(n=t.replacer.call(r,s,n)),e$(t,e+1,s,!0,!0,!0)&&((l=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024)&&(t.dump&&10===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,l&&(h+=ec(t,e)),e$(t,e+1,n,!0,l)&&(t.dump&&10===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,d+=h));t.tag=u,t.dump=d||"{}"}function eM(t,e,r){var i,o,a,s,n,l;for(a=0,s=(o=r?t.explicitTypes:t.implicitTypes).length;a<s;a+=1)if(((n=o[a]).instanceOf||n.predicate)&&(!n.instanceOf||"object"==typeof e&&e instanceof n.instanceOf)&&(!n.predicate||n.predicate(e))){if(r?n.multi&&n.representName?t.tag=n.representName(e):t.tag=n.tag:t.tag="?",n.represent){if(l=t.styleMap[n.tag]||n.defaultStyle,"[object Function]"===ee.call(n.represent))i=n.represent(e,l);else if(er.call(n.represent,l))i=n.represent[l](e,l);else throw new c("!<"+n.tag+'> tag resolver accepts not "'+l+'" style');t.dump=i}return!0}return!1}function e$(t,e,r,i,o,a,s){t.tag=null,t.dump=r,eM(t,r,!1)||eM(t,r,!0);var n=ee.call(t.dump),l=i;i&&(i=t.flowLevel<0||t.flowLevel>e);var h,d,u,p="[object Object]"===n||"[object Array]"===n;if(p&&(u=-1!==(d=t.duplicates.indexOf(r))),(null!==t.tag&&"?"!==t.tag||u||2!==t.indent&&e>0)&&(o=!1),u&&t.usedDuplicates[d])t.dump="*ref_"+d;else{if(p&&u&&!t.usedDuplicates[d]&&(t.usedDuplicates[d]=!0),"[object Object]"===n)i&&0!==Object.keys(t.dump).length?(eA(t,e,t.dump,o),u&&(t.dump="&ref_"+d+t.dump)):(eL(t,e,t.dump),u&&(t.dump="&ref_"+d+" "+t.dump));else if("[object Array]"===n)i&&0!==t.dump.length?(t.noArrayIndent&&!s&&e>0?eF(t,e-1,t.dump,o):eF(t,e,t.dump,o),u&&(t.dump="&ref_"+d+t.dump)):(e_(t,e,t.dump),u&&(t.dump="&ref_"+d+" "+t.dump));else if("[object String]"===n)"?"!==t.tag&&eb(t,t.dump,e,a,l);else{if("[object Undefined]"===n||t.skipInvalid)return!1;throw new c("unacceptable kind of an object to dump "+n)}null!==t.tag&&"?"!==t.tag&&(h=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),h="!"===t.tag[0]?"!"+h:"tag:yaml.org,2002:"===h.slice(0,18)?"!!"+h.slice(18):"!<"+h+">",t.dump=h+" "+t.dump)}return!0}function eE(t,e){var r,i,o=[],a=[];for(eO(t,o,a),r=0,i=a.length;r<i;r+=1)e.duplicates.push(o[a[r]]);e.usedDuplicates=Array(i)}function eO(t,e,r){var i,o,a;if(null!==t&&"object"==typeof t)if(-1!==(o=e.indexOf(t)))-1===r.indexOf(o)&&r.push(o);else if(e.push(t),Array.isArray(t))for(o=0,a=t.length;o<a;o+=1)eO(t[o],e,r);else for(o=0,a=(i=Object.keys(t)).length;o<a;o+=1)eO(t[i[o]],e,r)}(0,o.K)(es,"compileStyleMap"),(0,o.K)(en,"encodeHex"),(0,o.K)(el,"State"),(0,o.K)(eh,"indentString"),(0,o.K)(ec,"generateNextLine"),(0,o.K)(ed,"testImplicitResolving"),(0,o.K)(eu,"isWhitespace"),(0,o.K)(ep,"isPrintable"),(0,o.K)(eg,"isNsCharOrWhitespace"),(0,o.K)(ef,"isPlainSafe"),(0,o.K)(ey,"isPlainSafeFirst"),(0,o.K)(em,"isPlainSafeLast"),(0,o.K)(eC,"codePointAt"),(0,o.K)(ex,"needIndentIndicator");(0,o.K)(ek,"chooseScalarStyle"),(0,o.K)(eb,"writeScalar"),(0,o.K)(ew,"blockHeader"),(0,o.K)(eT,"dropEndingNewline"),(0,o.K)(eB,"foldString"),(0,o.K)(eS,"foldLine"),(0,o.K)(ev,"escapeString"),(0,o.K)(e_,"writeFlowSequence"),(0,o.K)(eF,"writeBlockSequence"),(0,o.K)(eL,"writeFlowMapping"),(0,o.K)(eA,"writeBlockMapping"),(0,o.K)(eM,"detectType"),(0,o.K)(e$,"writeNode"),(0,o.K)(eE,"getDuplicateReferences"),(0,o.K)(eO,"inspectNode"),(0,o.K)(function(t,e){var r=new el(e=e||{});r.noRefs||eE(t,r);var i=t;return(r.replacer&&(i=r.replacer.call({"":i},"",i)),e$(r,0,i,!0,!0))?r.dump+"\n":""},"dump$1"),(0,o.K)(function(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.")}},"renamed"),r.d(e,{H:()=>et,r:()=>N})},93666(t,e,r){r.r(e),r.d(e,{default:()=>r5});var i=r(22422),o=r(81818),a=r(21570);r(9290),r(9636),r(14782),r(91865),r(6129),r(23656);var s=r(15198),n=r(24692),l=r(64183),h=r(31293),c=r(86827),d=r(84146),u=r(74045),p="comm",g="rule",f="decl",y="@keyframes",m="@layer",C=Math.abs,x=String.fromCharCode;function k(t,e,r){return t.replace(e,r)}function b(t,e){return 0|t.charCodeAt(e)}function w(t,e,r){return t.slice(e,r)}function T(t){return t.length}function B(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 v(t,e,r,i){switch(t.type){case m:if(t.children.length)break;case"@import":case"@namespace":case f:return t.return=t.return||t.value;case p:return"";case y:return t.return=t.value+"{"+S(t.children,i)+"}";case g:if(!T(t.value=t.props.join(",")))return""}return T(r=S(t.children,i))?t.return=t.value+"{"+r+"}":""}var _=1,F=1,L=0,A=0,M=0,$="";function E(t,e,r,i,o,a,s,n){return{value:t,root:e,parent:r,type:i,props:o,children:a,line:_,column:F,length:s,return:"",siblings:n}}function O(){return M=A<L?b($,A++):0,F++,10===M&&(F=1,_++),M}function D(){return b($,A)}function q(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 I(t){var e,r;return(e=A-1,r=function t(e){for(;O();)switch(M){case e:return A;case 34:case 39:34!==e&&39!==e&&t(M);break;case 40:41===e&&t(e);break;case 92:O()}return A}(91===t?t+2:40===t?t+1:t),w($,e,r)).trim()}function K(t,e,r,i,o,a,s,n,l,h,c,d){for(var u=o-1,p=0===o?a:[""],f=p.length,y=0,m=0,x=0;y<i;++y)for(var b=0,T=w(t,u+1,u=C(m=s[y])),B=t;b<f;++b)(B=(m>0?p[b]+" "+T:k(T,/&\f/g,p[b])).trim())&&(l[x++]=B);return E(t,e,r,0===o?g:n,l,h,c,d)}function R(t,e,r,i,o){return E(t,e,r,f,w(t,0,i),w(t,i+1,-1),i,o)}var P=r(99418),z=r(44009),W=r(72146),j=r(14608),N=r(19663);function H(t){if(null==t)return!0;if((0,W.X)(t))return("function"==typeof t.splice||"string"==typeof t||!!(0,z.P)(t)||!!(0,N.i)(t)||!!(0,j.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 U={id:"c4",detector:(0,c.K)(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),loader:(0,c.K)(async()=>{let{diagram:t}=await r.e(9465).then(r.bind(r,70736));return{id:"c4",diagram:t}},"loader")},Y="flowchart",X=(0,c.K)((t,e)=>e?.flowchart?.defaultRenderer!=="dagre-wrapper"&&e?.flowchart?.defaultRenderer!=="elk"&&/^\s*graph/.test(t),"detector"),G=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3729),r.e(6014)]).then(r.bind(r,70125));return{id:Y,diagram:t}},"loader"),V={id:Y,detector:X,loader:G},Z="flowchart-v2",Q=(0,c.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"),J=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3729),r.e(6014)]).then(r.bind(r,70125));return{id:Z,diagram:t}},"loader"),tt={id:Z,detector:Q,loader:J},te="swimlane",tr=(0,c.K)(t=>/^\s*swimlane-beta\b/.test(t),"detector"),ti=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3729),r.e(1804)]).then(r.bind(r,52535));return{id:te,diagram:t}},"loader"),to={id:te,detector:tr,loader:ti},ta={id:"er",detector:(0,c.K)(t=>/^\s*erDiagram/.test(t),"detector"),loader:(0,c.K)(async()=>{let{diagram:t}=await r.e(2289).then(r.bind(r,10648));return{id:"er",diagram:t}},"loader")},ts="gitGraph",tn=(0,c.K)(t=>/^\s*gitGraph/.test(t),"detector"),tl=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(1904)]).then(r.bind(r,31715));return{id:ts,diagram:t}},"loader"),th={id:ts,detector:tn,loader:tl},tc="gantt",td=(0,c.K)(t=>/^\s*gantt/.test(t),"detector"),tu=(0,c.K)(async()=>{let{diagram:t}=await r.e(4552).then(r.bind(r,74619));return{id:tc,diagram:t}},"loader"),tp={id:tc,detector:td,loader:tu},tg="info",tf=(0,c.K)(t=>/^\s*info/.test(t),"detector"),ty=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(4335)]).then(r.bind(r,46002));return{id:tg,diagram:t}},"loader"),tm={id:tg,detector:tf,loader:ty},tC={id:"pie",detector:(0,c.K)(t=>/^\s*pie/.test(t),"detector"),loader:(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(7854)]).then(r.bind(r,34877));return{id:"pie",diagram:t}},"loader")},tx="quadrantChart",tk=(0,c.K)(t=>/^\s*quadrantChart/.test(t),"detector"),tb=(0,c.K)(async()=>{let{diagram:t}=await r.e(9121).then(r.bind(r,91240));return{id:tx,diagram:t}},"loader"),tw={id:tx,detector:tk,loader:tb},tT="xychart",tB=(0,c.K)(t=>/^\s*xychart(-beta)?/.test(t),"detector"),tS=(0,c.K)(async()=>{let{diagram:t}=await r.e(6567).then(r.bind(r,93386));return{id:tT,diagram:t}},"loader"),tv={id:tT,detector:tB,loader:tS},t_="requirement",tF=(0,c.K)(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),tL=(0,c.K)(async()=>{let{diagram:t}=await r.e(7916).then(r.bind(r,8535));return{id:t_,diagram:t}},"loader"),tA={id:t_,detector:tF,loader:tL},tM="sequence",t$=(0,c.K)(t=>/^\s*sequenceDiagram/.test(t),"detector"),tE=(0,c.K)(async()=>{let{diagram:t}=await r.e(4625).then(r.bind(r,89256));return{id:tM,diagram:t}},"loader"),tO={id:tM,detector:t$,loader:tE},tD="class",tq=(0,c.K)((t,e)=>e?.class?.defaultRenderer!=="dagre-wrapper"&&/^\s*classDiagram/.test(t),"detector"),tI=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(8716),r.e(5026)]).then(r.bind(r,98233));return{id:tD,diagram:t}},"loader"),tK={id:tD,detector:tq,loader:tI},tR="classDiagram",tP=(0,c.K)((t,e)=>!!/^\s*classDiagram/.test(t)&&e?.class?.defaultRenderer==="dagre-wrapper"||/^\s*classDiagram-v2/.test(t),"detector"),tz=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(8716),r.e(435)]).then(r.bind(r,2862));return{id:tR,diagram:t}},"loader"),tW={id:tR,detector:tP,loader:tz},tj="state",tN=(0,c.K)((t,e)=>e?.state?.defaultRenderer!=="dagre-wrapper"&&/^\s*stateDiagram/.test(t),"detector"),tH=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(5250),r.e(7048),r.e(3088),r.e(4891),r.e(8239)]).then(r.bind(r,88018));return{id:tj,diagram:t}},"loader"),tU={id:tj,detector:tN,loader:tH},tY="stateDiagram",tX=(0,c.K)((t,e)=>!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&e?.state?.defaultRenderer==="dagre-wrapper"),"detector"),tG=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4891),r.e(1169)]).then(r.bind(r,75976));return{id:tY,diagram:t}},"loader"),tV={id:tY,detector:tX,loader:tG},tZ="journey",tQ=(0,c.K)(t=>/^\s*journey/.test(t),"detector"),tJ=(0,c.K)(async()=>{let{diagram:t}=await r.e(717).then(r.bind(r,28220));return{id:tZ,diagram:t}},"loader"),t0={id:tZ,detector:tQ,loader:tJ},t1={draw:(0,c.K)((t,e,r)=>{h.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,l.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.164-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")},t2={db:{},renderer:t1,parser:{parse:(0,c.K)(()=>{},"parse")}},t5="flowchart-elk",t3=(0,c.K)((t,e={})=>!!(/^\s*flowchart-elk/.test(t)||/^\s*(flowchart|graph)/.test(t)&&e?.flowchart?.defaultRenderer==="elk")&&(e.layout="elk",!0),"detector"),t4=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3729),r.e(6014)]).then(r.bind(r,70125));return{id:t5,diagram:t}},"loader"),t6={id:t5,detector:t3,loader:t4},t8="timeline",t7=(0,c.K)(t=>/^\s*timeline/.test(t),"detector"),t9=(0,c.K)(async()=>{let{diagram:t}=await r.e(627).then(r.bind(r,43822));return{id:t8,diagram:t}},"loader"),et={id:t8,detector:t7,loader:t9},ee="mindmap",er=(0,c.K)(t=>/^\s*mindmap/.test(t),"detector"),ei=(0,c.K)(async()=>{let{diagram:t}=await r.e(7175).then(r.bind(r,16186));return{id:ee,diagram:t}},"loader"),eo={id:ee,detector:er,loader:ei},ea="kanban",es=(0,c.K)(t=>/^\s*kanban/.test(t),"detector"),en=(0,c.K)(async()=>{let{diagram:t}=await r.e(6999).then(r.bind(r,16794));return{id:ea,diagram:t}},"loader"),el={id:ea,detector:es,loader:en},eh="sankey",ec=(0,c.K)(t=>/^\s*sankey(-beta)?/.test(t),"detector"),ed=(0,c.K)(async()=>{let{diagram:t}=await r.e(2796).then(r.bind(r,6471));return{id:eh,diagram:t}},"loader"),eu={id:eh,detector:ec,loader:ed},ep="packet",eg=(0,c.K)(t=>/^\s*packet(-beta)?/.test(t),"detector"),ef=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(273)]).then(r.bind(r,28136));return{id:ep,diagram:t}},"loader"),ey={id:ep,detector:eg,loader:ef},em="radar",eC=(0,c.K)(t=>/^\s*radar-beta/.test(t),"detector"),ex=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(7588)]).then(r.bind(r,65919));return{id:em,diagram:t}},"loader"),ek={id:em,detector:eC,loader:ex},eb="block",ew=(0,c.K)(t=>/^\s*block(-beta)?/.test(t),"detector"),eT=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(5250),r.e(5792)]).then(r.bind(r,27779));return{id:eb,diagram:t}},"loader"),eB={id:eb,detector:ew,loader:eT},eS="treeView",ev=(0,c.K)(t=>/^\s*treeView-beta/.test(t),"detector"),e_=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(4354)]).then(r.bind(r,47017));return{id:eS,diagram:t}},"loader"),eF={id:eS,detector:ev,loader:e_},eL="architecture",eA=(0,c.K)(t=>/^\s*architecture/.test(t),"detector"),eM=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(4950),r.e(8212)]).then(r.bind(r,77887));return{id:eL,diagram:t}},"loader"),e$={id:eL,detector:eA,loader:eM},eE="eventmodeling",eO=(0,c.K)(t=>/^\s*eventmodeling/.test(t),"detector"),eD=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(7594)]).then(r.bind(r,14625));return{id:eE,diagram:t}},"loader"),eq={id:eE,detector:eO,loader:eD},eI="ishikawa",eK=(0,c.K)(t=>/^\s*ishikawa(-beta)?\b/i.test(t),"detector"),eR=(0,c.K)(async()=>{let{diagram:t}=await r.e(5659).then(r.bind(r,61750));return{id:eI,diagram:t}},"loader"),eP={id:eI,detector:eK,loader:eR},ez="venn",eW=(0,c.K)(t=>/^\s*venn-beta/.test(t),"detector"),ej=(0,c.K)(async()=>{let{diagram:t}=await r.e(7311).then(r.bind(r,86274));return{id:ez,diagram:t}},"loader"),eN={id:ez,detector:eW,loader:ej},eH="treemap",eU=(0,c.K)(t=>/^\s*treemap/.test(t),"detector"),eY=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(788)]).then(r.bind(r,83743));return{id:eH,diagram:t}},"loader"),eX={id:eH,detector:eU,loader:eY},eG="wardley",eV=(0,c.K)(t=>/^\s*wardley-beta/i.test(t),"detector"),eZ=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(3581)]).then(r.bind(r,80764));return{id:eG,diagram:t}},"loader"),eQ={id:eG,detector:eV,loader:eZ},eJ="cynefin",e0=(0,c.K)(t=>/^\s*cynefin-beta(?:[\s:]|$)/.test(t),"detector"),e1=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(2143)]).then(r.bind(r,11730));return{id:eJ,diagram:t}},"loader"),e2={id:eJ,detector:e0,loader:e1},e5="railroad",e3=(0,c.K)(t=>/^\s*railroad-beta/i.test(t),"detector"),e4=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(4619),r.e(4607)]).then(r.bind(r,16402));return{id:e5,diagram:t}},"loader"),e6={id:e5,detector:e3,loader:e4},e8="railroadEbnf",e7=(0,c.K)(t=>/^\s*railroad-ebnf-beta/i.test(t),"detector"),e9=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(4619),r.e(810)]).then(r.bind(r,13729));return{id:e8,diagram:t}},"loader"),rt={id:e8,detector:e7,loader:e9},re="railroadAbnf",rr=(0,c.K)(t=>/^\s*railroad-abnf-beta/i.test(t),"detector"),ri=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(4619),r.e(6778)]).then(r.bind(r,92449));return{id:re,diagram:t}},"loader"),ro={id:re,detector:rr,loader:ri},ra="railroadPeg",rs=(0,c.K)(t=>/^\s*railroad-peg-beta/i.test(t),"detector"),rn=(0,c.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4936),r.e(4619),r.e(7376)]).then(r.bind(r,62979));return{id:ra,diagram:t}},"loader"),rl={id:ra,detector:rs,loader:rn},rh=!1,rc=(0,c.K)(()=>{rh||(rh=!0,(0,l.Js)("error",t2,t=>"error"===t.toLowerCase().trim()),(0,l.Js)("---",{db:{clear:(0,c.K)(()=>{},"clear")},styles:{},renderer:{draw:(0,c.K)(()=>{},"draw")},parser:{parse:(0,c.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,c.K)(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),(0,l.Xd)(t6,eo,e$),(0,l.Xd)(U,el,tW,tK,ta,tp,tm,tC,tA,tO,to,tt,V,et,th,tV,tU,t0,tw,eu,ey,tv,eB,eq,eF,ek,eP,eX,e6,rt,ro,rl,eN,eQ,e2))},"addDiagrams"),rd=(0,c.K)(async()=>{h.R.debug("Loading registered diagrams");let t=(await Promise.allSettled(Object.entries(l.mW).map(async([t,{detector:e,loader:r}])=>{if(r)try{(0,l.Gs)(t)}catch{try{let{diagram:t,id:i}=await r();(0,l.Js)(i,t,e)}catch(e){throw h.R.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete l.mW[t],e}}}))).filter(t=>"rejected"===t.status);if(t.length>0){for(let e of(h.R.error(`Failed to load ${t.length} external diagrams`),t))h.R.error(e);throw Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams");function ru(t,e){t.attr("role","graphics-document document"),""!==e&&t.attr("aria-roledescription",e)}function rp(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,c.K)(ru,"setA11yDiagramInfo"),(0,c.K)(rp,"addSVGa11yTitleDescription");var rg=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,c.K)(this,"Diagram")}static async fromText(e,r={}){let i=(0,l.zj)(),o=(0,l.Ch)(e,i);e=(0,n.C4)(e)+"\n";try{(0,l.Gs)(o)}catch{let t=(0,l.J$)(o);if(!t)throw new l.C0(`Diagram ${o} not found.`);let{id:e,diagram:r}=await t();(0,l.Js)(e,r)}let{db:a,parser:s,renderer:h,init:c}=(0,l.Gs)(o);return s.parser&&(s.parser.yy=a),a.clear?.(),c?.(i),r.title&&a.setDiagramTitle?.(r.title),await s.parse(e),new t(o,e,a,s,h)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}},rf=[],ry=(0,c.K)(()=>{rf.forEach(t=>{t()}),rf=[]},"attachFunctions"),rm=(0,c.K)(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function rC(t){let e=t.match(l.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],a=(0,o.H)(i,{schema:o.r})??{};a="object"!=typeof a||Array.isArray(a)?{}:a;let s={};return a.displayMode&&(s.displayMode=a.displayMode.toString()),a.title&&(s.title=a.title.toString()),a.config&&(s.config=a.config),{text:t.slice(e[0].length),metadata:s}}(0,c.K)(rC,"extractFrontMatter");var rx=(0,c.K)(t=>t.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(t,e,r)=>"<"+e+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),rk=(0,c.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"),rb=(0,c.K)(t=>{let e=n._K.detectInit(t)??{},r=n._K.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:t})=>"wrap"===t):r?.type==="wrap"&&(e.wrap=!0),{text:(0,n.vU)(t),directive:e}},"processDirectives");function rw(t){let e=rk(rx(t)),r=rb(e.text),i=(0,n.$t)(e.config,r.directive);return{code:t=rm(r.text),title:e.title,config:i}}function rT(t){return btoa(Array.from(new TextEncoder().encode(t),t=>String.fromCodePoint(t)).join(""))}(0,c.K)(rw,"preprocessDiagram"),(0,c.K)(rT,"toBase64");var rB=["foreignobject"],rS=["dominant-baseline"];function rv(t){let e=rw(t);return(0,l.cL)(),(0,l.xA)(e.config??{}),e}async function r_(t,e){rc();try{let{code:e,config:r}=rv(t);return{diagramType:(await rR(e)).type,config:r}}catch(t){if(e?.suppressErrors)return!1;throw t}}(0,c.K)(rv,"processAndSetConfigs"),(0,c.K)(r_,"parse");var rF=(0,c.K)((t,e,r=[])=>{let i=(0,l.Df)(`{ ${r.join(" !important; ")} !important; }`);return`.${t} ${e} ${i}`},"cssImportantStyles"),rL=(0,c.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,l.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,l.KG)(e)+"\n"}else i+=`${t.themeCSS}
|
|
253
253
|
`;return i+(0,l.KG)(r)},"createCssStyles"),rA=(0,c.K)((t,e)=>{var r,i,o,a,s;return S((o=function t(e,r,i,o,a,s,n,l,h){for(var c,d,u,g,f=0,y=0,m=n,C=0,S=0,v=0,L=1,P=1,z=1,W=0,j=0,N="",H=a,U=s,Y=o,X=N;P;)switch(v=j,j=O()){case 40:108!=v&&58==b(X,m-1)?(W++,X+="("):X+=I(j);break;case 41:W--,X+=")";break;case 34:case 39:case 91:X+=I(j);break;case 9:case 10:case 13:case 32:if(W>0){X+=x(j);break}X+=function(t){for(;M=D();)if(M<33)O();else break;return q(t)>2||q(M)>3?"":" "}(v);break;case 92:X+=function(t,e){for(var r;--e&&O()&&!(M<48)&&!(M>102)&&(!(M>57)||!(M<65))&&(!(M>70)||!(M<97)););return r=A+(e<6&&32==D()&&32==O()),w($,t,r)}(A-1,7);continue;case 47:switch(D()){case 42:case 47:B((c=function(t,e){for(;O();)if(t+M===57)break;else if(t+M===84&&47===D())break;return"/*"+w($,e,A-1)+"*"+x(47===t?t:O())}(O(),A),d=r,u=i,g=h,E(c,d,u,p,x(M),w(c,2,-2),0,g)),h),(5==q(v||1)||5==q(D()||1))&&T(X)&&" "!==w(X,-1,void 0)&&(X+=" ");break;default:X+="/"}break;case 123*L:l[f++]=T(X)*z;case 125*L:case 59:case 0:if(W>0&&j){X+=x(j);break}switch(j){case 0:case 125:P=0;case 59+y:-1==z&&(X=k(X,/\f/g,"")),S>0&&(T(X)-m||0===L)&&B(S>32?R(X+";",o,i,m-1,h):R(k(X," ","")+";",o,i,m-2,h),h);break;case 59:X+=";";default:if(B(Y=K(X,r,i,f,y,a,l,N,H=[],U=[],m,s),s),123===j)if(0===y)t(X,r,Y,Y,H,s,m,l,U);else{switch(C){case 99:if(110===b(X,3))break;case 108:if(97===b(X,2))break;default:y=0;case 100:case 109:case 115:}y?t(e,Y,Y,o&&B(K(e,Y,Y,0,0,a,l,N,a,H=[],m,U),U),a,U,m,l,o?H:U):t(X,Y,Y,Y,[""],U,0,l,U)}}f=y=S=0,L=z=1,N=X="",m=n;break;case 58:m=1+T(X),S=v;default:if(L<1){if(123==j)--L;else if(125==j&&0==L++&&125==(M=A>0?b($,--A):0,F--,10===M&&(F=1,_--),M))continue}switch(X+=x(j),j*L){case 38:z=y>0?1:(X+="\f",-1);break;case 44:if(W>0)break;l[f++]=(T(X)-1)*z,z=1;break;case 64:45===D()&&(X+=I(O())),C=D(),y=m=T(N=X+=function(t){for(;!q(D());)O();return w($,t,A)}(A)),j++;break;case 45:45===v&&2==T(X)&&(L=0)}}return s}("",null,null,null,[""],(i=r=`${t}{${e}}`,_=F=1,L=T($=i),A=0,r=[]),0,[0],r),$="",o),(s=(a=[(0,c.K)(function(e,r,i,o){"rule"===e.type&&Array.isArray(e.props)?e.parent&&e.parent.type===y||(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",m,"@scope","@container","@starting-style",y].includes(e.type)||(h.R.warn(`Removing unsupported at-rule ${e.type} from CSS`),e.type=p))},"addNamespace"),v]).length,function(t,e,r,i){for(var o="",n=0;n<s;n++)o+=a[n](t,e,r,i)||"";return o}))},"compileCSS"),rM=(0,c.K)((t,e,r,i)=>{let o=rL(t,r),a=(0,l.tM)(e,o,{...t.themeVariables,theme:t.theme,look:t.look},i);return rA(i,a)},"createUserStyles"),r$=(0,c.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,n.Sm)(i)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),rE=(0,c.K)((t="",e)=>{let r=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":"100%",i=rT(`<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">
|
|
254
254
|
The "iframe" tag is not supported by your browser.
|
|
255
255
|
</iframe>`},"putIntoIFrame"),rO=(0,c.K)((t,e,r,i,o)=>{let a=t.append("div");a.attr("id",r),i&&a.attr("style",i);let s=a.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return o&&s.attr("xmlns:xlink",o),s.append("g"),t},"appendDivSvgG");function rD(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,c.K)(rD,"sandboxedIframe");var rq=(0,c.K)((t,e,r,i)=>{t.getElementById(e)?.remove(),t.getElementById(r)?.remove(),t.getElementById(i)?.remove()},"removeExistingElements"),rI=(0,c.K)(async function(t,e,r){let i,o;rc();let a=rv(e);e=a.code;let s=(0,l.zj)();h.R.debug(s),e.length>(s?.maxTextSize??5e4)&&(e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let n=`#${t}`,d="i"+t,p="#"+d,g="d"+t,f="#"+g,y=(0,c.K)(()=>{let t=C?p:f,e=(0,u.Ltv)(t).node();e&&"remove"in e&&e.remove()},"removeTempElements"),m=(0,u.Ltv)(document.body),C="sandbox"===s.securityLevel,x="loose"===s.securityLevel,k=s.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),C){let t=rD((0,u.Ltv)(r),d);(m=(0,u.Ltv)(t.nodes()[0].contentDocument.body)).node().style.margin="0"}else m=(0,u.Ltv)(r);rO(m,t,g,`font-family: ${k}`,"http://www.w3.org/1999/xlink")}else{if(rq(document,t,g,d),C){let t=rD((0,u.Ltv)(document.body),d);(m=(0,u.Ltv)(t.nodes()[0].contentDocument.body)).node().style.margin="0"}else m=(0,u.Ltv)("body");rO(m,t,g)}try{i=await rg.fromText(e,{title:a.title})}catch(t){if(s.suppressErrorRendering)throw y(),t;i=await rg.fromText("error"),o=t}let b=m.select(f).node(),w=i.type,T=b.firstChild,B=T.firstChild,S=rM(s,w,i.renderer.getClasses?.(e,i),n),v=document.createElement("style");v.innerHTML=S,T.insertBefore(v,B);try{await i.renderer.draw(e,t,"11.16.1",i)}catch(r){throw s.suppressErrorRendering?y():t1.draw(e,t,"11.16.1"),r}rP(w,m.select(`${f} svg`),i.db.getAccTitle?.(),i.db.getAccDescription?.()),m.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let _=m.select(f).node().innerHTML;if(h.R.debug("config.arrowMarkerAbsolute",s.arrowMarkerAbsolute),_=r$(_,C,(0,l._3)(s.arrowMarkerAbsolute)),C?_=rE(_,m.select(f+" svg").node()):x||(_=P.default.sanitize(_,{ADD_TAGS:rB,ADD_ATTR:rS,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),ry(),o)throw o;return y(),{diagramType:w,svg:_,bindFunctions:i.db.bindFunctions}},"render");function rK(t={}){let e=(0,l.hH)({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),(0,l.wZ)(e),e?.theme&&e.theme in l.H$?e.themeVariables=l.H$[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=l.H$.default.getThemeVariables(e.themeVariables));let r="object"==typeof e?(0,l.UU)(e):(0,l.Q2)();(0,h.H)(r.logLevel),rc()}(0,c.K)(rK,"initialize");var rR=(0,c.K)((t,e={})=>{let{code:r}=rw(t);return rg.fromText(r,e)},"getDiagramFromText");function rP(t,e,r,i){ru(e,t),rp(e,r,i,e.attr("id"))}(0,c.K)(rP,"addA11yInfo");var rz=Object.freeze({render:rI,parse:r_,getDiagramFromText:rR,initialize:rK,getConfig:l.zj,setConfig:l.Nk,getSiteConfig:l.Q2,updateSiteConfig:l.B6,reset:(0,c.K)(()=>{(0,l.cL)()},"reset"),globalReset:(0,c.K)(()=>{(0,l.cL)(l.sb)},"globalReset"),defaultConfig:l.sb});(0,h.H)((0,l.zj)().logLevel),(0,l.cL)((0,l.zj)());var rW=(0,c.K)((t,e,r)=>{h.R.warn(t),(0,n.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"),rj=(0,c.K)(async function(t={querySelector:".mermaid"}){try{await rN(t)}catch(e){if((0,n.dq)(e)&&h.R.error(e.str),r2.parseError&&r2.parseError(e),!t.suppressErrors)throw h.R.error("Use the suppressErrors option to suppress these errors"),e}},"run"),rN=(0,c.K)(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){let i,o,a=rz.getConfig();if(h.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");h.R.debug(`Found ${i.length} diagrams`),a?.startOnLoad!==void 0&&(h.R.debug("Start On Load: "+a?.startOnLoad),rz.updateSiteConfig({startOnLoad:a?.startOnLoad}));let s=new n._K.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed),l=[];for(let e of Array.from(i)){if(h.R.info("Rendering diagram: "+e.id),e.getAttribute("data-processed"))continue;e.setAttribute("data-processed","true");let r=`mermaid-${s.next()}`;o=e.innerHTML,o=(0,d.T)(n._K.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");let i=n._K.detectInit(o);i&&h.R.debug("Detected early reinit: ",i);try{let{svg:i,bindFunctions:a}=await r0(r,o,e);e.innerHTML=i,t&&await t(r),a&&a(e)}catch(t){rW(t,l,r2.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),rH=(0,c.K)(function(t){rz.initialize(t)},"initialize"),rU=(0,c.K)(async function(t,e,r){h.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 rj(i)},"init"),rY=(0,c.K)(async(t,{lazyLoad:e=!0}={})=>{rc(),(0,l.Xd)(...t),!1===e&&await rd()},"registerExternalDiagrams"),rX=(0,c.K)(function(){if(r2.startOnLoad){let{startOnLoad:t}=rz.getConfig();t&&r2.run().catch(t=>h.R.error("Mermaid failed to initialize",t))}},"contentLoaded");"u">typeof document&&window.addEventListener("load",rX,!1);var rG=(0,c.K)(function(t){r2.parseError=t},"setParseErrorHandler"),rV=[],rZ=!1,rQ=(0,c.K)(async()=>{if(!rZ){for(rZ=!0;rV.length>0;){let t=rV.shift();if(t)try{await t()}catch(t){h.R.error("Error executing queue",t)}}rZ=!1}},"executeQueue"),rJ=(0,c.K)(async(t,e)=>new Promise((r,i)=>{let o=(0,c.K)(()=>new Promise((o,a)=>{rz.parse(t,e).then(t=>{o(t),r(t)},t=>{h.R.error("Error parsing",t),r2.parseError?.(t),a(t),i(t)})}),"performCall");rV.push(o),rQ().catch(i)}),"parse"),r0=(0,c.K)((t,e,r)=>new Promise((i,o)=>{let a=(0,c.K)(()=>new Promise((a,s)=>{rz.render(t,e,r).then(t=>{a(t),i(t)},t=>{h.R.error("Error parsing",t),r2.parseError?.(t),s(t),o(t)})}),"performCall");rV.push(a),rQ().catch(o)}),"render"),r1=(0,c.K)(()=>Object.keys(l.mW).map(t=>({id:t})),"getRegisteredDiagramsMetadata"),r2={startOnLoad:!0,mermaidAPI:rz,parse:rJ,render:r0,init:rU,run:rj,registerExternalDiagrams:rY,registerLayoutLoaders:a.sO,initialize:rH,parseError:void 0,contentLoaded:rX,setParseErrorHandler:rG,detectType:l.Ch,registerIconPacks:s.pC,getRegisteredDiagramsMetadata:r1},r5=r2},84146(t,e,r){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 s=i[0];return e.forEach(function(t,e){var r=s.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")),s+=a+i[e+1]}),s}r.d(e,{T:()=>i})}};
|