@asyncapi/studio
Version:
One place that allows you to develop an AsyncAPI document, validate it, convert it to the latest version, preview the documentation and visualize the events flow.
1 lines • 404 kB
JavaScript
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5493],{79885:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[".","/"],e.BLANK_URL="about:blank"},26695:function(t,e,r){"use strict";e.N=function(t){if(!t)return i.BLANK_URL;var e,r=n(t.trim());do e=(r=n(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 o=r;if(!o)return i.BLANK_URL;if(i.relativeFirstCharacters.indexOf(o[0])>-1)return o;var a=o.trimStart(),s=a.match(i.urlSchemeRegex);if(!s)return o;var l=s[0].toLowerCase().trim();if(i.invalidProtocolRegex.test(l))return i.BLANK_URL;var h=a.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(79885);function n(t){try{return decodeURIComponent(t)}catch(e){return t}}},6959:function(t){var e;e=function(){"use strict";var t="millisecond",e="second",r="minute",i="hour",n="week",o="month",a="quarter",s="year",l="date",h="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(t,e,r){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(r)+t},p="en",f={};f[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]||"th")+"]"}};var g="$isDayjsObject",m=function(t){return t instanceof C||!(!t||!t[g])},y=function t(e,r,i){var n;if(!e)return p;if("string"==typeof e){var o=e.toLowerCase();f[o]&&(n=o),r&&(f[o]=r,n=o);var a=e.split("-");if(!n&&a.length>1)return t(a[0])}else{var s=e.name;f[s]=e,n=s}return!i&&n&&(p=n),n||!i&&p},x=function(t,e){if(m(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new C(r)},b={s:d,z:function(t){var e=-t.utcOffset(),r=Math.abs(e);return(e<=0?"+":"-")+d(Math.floor(r/60),2,"0")+":"+d(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()),n=e.clone().add(i,o),a=r-n<0,s=e.clone().add(i+(a?-1:1),o);return+(-(i+(r-n)/(a?n-s:s-n))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(h){return({M:o,y:s,w:n,d:"day",D:l,h:i,m:r,s:e,ms:t,Q:a})[h]||String(h||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};b.l=y,b.i=m,b.w=function(t,e){return x(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var C=function(){function d(t){this.$L=y(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[g]=!0}var p=d.prototype;return p.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(b.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 n=i[2]-1||0,o=(i[7]||"0").substring(0,3);return r?new Date(Date.UTC(i[1],n,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],n,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}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 b},p.isValid=function(){return this.$d.toString()!==h},p.isSame=function(t,e){var r=x(t);return this.startOf(e)<=r&&r<=this.endOf(e)},p.isAfter=function(t,e){return x(t)<this.startOf(e)},p.isBefore=function(t,e){return this.endOf(e)<x(t)},p.$g=function(t,e,r){return b.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,a){var h=this,c=!!b.u(a)||a,u=b.p(t),d=function(t,e){var r=b.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 b.w(h.toDate()[t].apply(h.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),h)},f=this.$W,g=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case s:return c?d(1,0):d(31,11);case o:return c?d(1,g):d(0,g+1);case n:var x=this.$locale().weekStart||0,C=(f<x?f+7:f)-x;return d(c?m-C:m+(6-C),g);case"day":case l:return p(y+"Hours",0);case i:return p(y+"Minutes",1);case r:return p(y+"Seconds",2);case e:return p(y+"Milliseconds",3);default:return this.clone()}},p.endOf=function(t){return this.startOf(t,!1)},p.$set=function(n,a){var h,c=b.p(n),u="set"+(this.$u?"UTC":""),d=((h={}).day=u+"Date",h[l]=u+"Date",h[o]=u+"Month",h[s]=u+"FullYear",h[i]=u+"Hours",h[r]=u+"Minutes",h[e]=u+"Seconds",h[t]=u+"Milliseconds",h)[c],p="day"===c?this.$D+(a-this.$W):a;if(c===o||c===s){var f=this.clone().set(l,1);f.$d[d](p),f.init(),this.$d=f.set(l,Math.min(this.$D,f.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},p.set=function(t,e){return this.clone().$set(t,e)},p.get=function(t){return this[b.p(t)]()},p.add=function(t,a){var l,h=this;t=Number(t);var c=b.p(a),u=function(e){var r=x(h);return b.w(r.date(r.date()+Math.round(e*t)),h)};if(c===o)return this.set(o,this.$M+t);if(c===s)return this.set(s,this.$y+t);if("day"===c)return u(1);if(c===n)return u(7);var d=((l={})[r]=6e4,l[i]=36e5,l[e]=1e3,l)[c]||1,p=this.$d.getTime()+t*d;return b.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",n=b.z(this),o=this.$H,a=this.$m,s=this.$M,l=r.weekdays,c=r.months,d=r.meridiem,p=function(t,r,n,o){return t&&(t[r]||t(e,i))||n[r].slice(0,o)},f=function(t){return b.s(o%12||12,t,"0")},g=d||function(t,e,r){var i=t<12?"AM":"PM";return r?i.toLowerCase():i};return i.replace(u,function(t,i){return i||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return b.s(e.$y,4,"0");case"M":return s+1;case"MM":return b.s(s+1,2,"0");case"MMM":return p(r.monthsShort,s,c,3);case"MMMM":return p(c,s);case"D":return e.$D;case"DD":return b.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(o);case"HH":return b.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return g(o,a,!0);case"A":return g(o,a,!1);case"m":return String(a);case"mm":return b.s(a,2,"0");case"s":return String(e.$s);case"ss":return b.s(e.$s,2,"0");case"SSS":return b.s(e.$ms,3,"0");case"Z":return n}return null}(t)||n.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(t,l,h){var c,u=this,d=b.p(l),p=x(t),f=(p.utcOffset()-this.utcOffset())*6e4,g=this-p,m=function(){return b.m(u,p)};switch(d){case s:c=m()/12;break;case o:c=m();break;case a:c=m()/3;break;case n:c=(g-f)/6048e5;break;case"day":c=(g-f)/864e5;break;case i:c=g/36e5;break;case r:c=g/6e4;break;case e:c=g/1e3;break;default:c=g}return h?c:b.a(c)},p.daysInMonth=function(){return this.endOf(o).$D},p.$locale=function(){return f[this.$L]},p.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),i=y(t,e,!0);return i&&(r.$L=i),r},p.clone=function(){return b.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()},d}(),k=C.prototype;return x.prototype=k,[["$ms",t],["$s",e],["$m",r],["$H",i],["$W","day"],["$M",o],["$y",s],["$D",l]].forEach(function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),x.extend=function(t,e){return t.$i||(t(e,C,x),t.$i=!0),x},x.locale=y,x.isDayjs=m,x.unix=function(t){return x(1e3*t)},x.en=f[p],x.Ls=f,x.p={},x},t.exports=e()},10851:function(t,e,r){"use strict";function i(t,e,r){if(t&&t.length){let[i,n]=e,o=Math.PI/180*r,a=Math.cos(o),s=Math.sin(o);for(let e of t){let[t,r]=e;e[0]=(t-i)*a-(r-n)*s+i,e[1]=(t-i)*s+(r-n)*a+n}}}function n(t,e){var r;let n=e.hachureAngle+90,o=e.hachureGap;o<0&&(o=4*e.strokeWidth),o=Math.round(Math.max(o,.1));let a=1;return e.roughness>=1&&((null===(r=e.randomizer)||void 0===r?void 0:r.next())||Math.random())>.7&&(a=o),function(t,e,r,n=1){let o=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,a=[0,0];if(r)for(let t of o)i(t,a,r);let s=function(t,e,r){let i=[];for(let e of t){var n,o;let t=[...e];n=t[0],o=t[t.length-1],n[0]===o[0]&&n[1]===o[1]||t.push([t[0][0],t[0][1]]),t.length>2&&i.push(t)}let a=[];e=Math.max(e,.1);let s=[];for(let t of i)for(let e=0;e<t.length-1;e++){let r=t[e],i=t[e+1];if(r[1]!==i[1]){let t=Math.min(r[1],i[1]);s.push({ymin:t,ymax:Math.max(r[1],i[1]),x:t===r[1]?r[0]:i[0],islope:(i[0]-r[0])/(i[1]-r[1])})}}if(s.sort((t,e)=>t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax)),!s.length)return a;let l=[],h=s[0].ymin,c=0;for(;l.length||s.length;){if(s.length){let t=-1;for(let e=0;e<s.length&&!(s[e].ymin>h);e++)t=e;s.splice(0,t+1).forEach(t=>{l.push({s:h,edge:t})})}if((l=l.filter(t=>!(t.edge.ymax<=h))).sort((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x)),(1!==r||c%e==0)&&l.length>1)for(let t=0;t<l.length;t+=2){let e=t+1;if(e>=l.length)break;let r=l[t].edge,i=l[e].edge;a.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 a}(o,Math.max(e,.1),n);if(r){for(let t of o)i(t,a,-r);!function(t,e,r){let n=[];t.forEach(t=>n.push(...t)),i(n,e,r)}(s,a,-r)}return s}(t,o,n,a||1)}r.d(e,{Z:function(){return V}});class o{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){let r=n(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 a(t){let e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class s extends o{fillPolygons(t,e){let r=e.hachureGap;r<0&&(r=4*e.strokeWidth);let i=n(t,Object.assign({},e,{hachureGap:r=Math.max(r,.1)})),o=Math.PI/180*e.hachureAngle,s=[],l=.5*r*Math.cos(o),h=.5*r*Math.sin(o);for(let[t,e]of i)a([t,e])&&s.push([[t[0]-l,t[1]+h],[...e]],[[t[0]+l,t[1]-h],[...e]]);return{type:"fillSketch",ops:this.renderLines(s,e)}}}class l extends o{fillPolygons(t,e){let r=this._fillPolygons(t,e),i=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),n=this._fillPolygons(t,i);return r.ops=r.ops.concat(n.ops),r}}class h{constructor(t){this.helper=t}fillPolygons(t,e){let r=n(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 n=e.fillWeight;n<0&&(n=e.strokeWidth/2);let o=i/4;for(let s of t){let t=a(s),l=Math.ceil(t/i)-1,h=t-l*i,c=(s[0][0]+s[1][0])/2-i/4,u=Math.min(s[0][1],s[1][1]);for(let t=0;t<l;t++){let a=c-o+2*Math.random()*o,s=u+h+t*i-o+2*Math.random()*o,l=this.helper.ellipse(a,s,n,n,e);r.push(...l.ops)}}return{type:"fillSketch",ops:r}}}class c{constructor(t){this.helper=t}fillPolygons(t,e){let r=n(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,n=[];return t.forEach(t=>{let o=a(t),s=Math.floor(o/(r+i)),l=(o+i-s*(r+i))/2,h=t[0],c=t[1];h[0]>c[0]&&(h=t[1],c=t[0]);let u=Math.atan((c[1]-h[1])/(c[0]-h[0]));for(let t=0;t<s;t++){let o=t*(r+i),a=o+r,s=[h[0]+o*Math.cos(u)+l*Math.cos(u),h[1]+o*Math.sin(u)+l*Math.sin(u)],c=[h[0]+a*Math.cos(u)+l*Math.cos(u),h[1]+a*Math.sin(u)+l*Math.sin(u)];n.push(...this.helper.doubleLineOps(s[0],s[1],c[0],c[1],e))}}),n}}class u{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,o=n(t,e=Object.assign({},e,{hachureGap:r+i}));return{type:"fillSketch",ops:this.zigzagLines(o,i,e)}}zigzagLines(t,e,r){let i=[];return t.forEach(t=>{let n=Math.round(a(t)/(2*e)),o=t[0],s=t[1];o[0]>s[0]&&(o=t[1],s=t[0]);let l=Math.atan((s[1]-o[1])/(s[0]-o[0]));for(let t=0;t<n;t++){let n=2*t*e,a=2*(t+1)*e,s=Math.sqrt(2*Math.pow(e,2)),h=[o[0]+n*Math.cos(l),o[1]+n*Math.sin(l)],c=[o[0]+a*Math.cos(l),o[1]+a*Math.sin(l)],u=[h[0]+s*Math.cos(l+Math.PI/4),h[1]+s*Math.sin(l+Math.PI/4)];i.push(...this.helper.doubleLineOps(h[0],h[1],u[0],u[1],r),...this.helper.doubleLineOps(u[0],u[1],c[0],c[1],r))}}),i}}let d={};class p{constructor(t){this.seed=t}next(){return this.seed?(2147483648-1&(this.seed=Math.imul(48271,this.seed)))/2147483648:Math.random()}}let f={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 g(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",n=0,o=r[0];for(;2!==o.type;){let a=0,s=[];if("BOD"===i){if("M"!==o.text&&"m"!==o.text)return g("M0,0"+t);n++,a=f[o.text],i=o.text}else 1===o.type?a=f[i]:(n++,a=f[o.text],i=o.text);if(!(n+a<r.length))throw Error("Path data ended short");for(let t=n;t<n+a;t++){let e=r[t];if(1!==e.type)throw Error("Param not a number: "+i+","+e.text);s[s.length]=+e.text}if("number"!=typeof f[i])throw Error("Bad segment: "+i);{let t={key:i,data:s};e.push(t),n+=a,o=r[n],"M"===i&&(i="L"),"m"===i&&(i="l")}}return e}function m(t){let e=0,r=0,i=0,n=0,o=[];for(let{key:a,data:s}of t)switch(a){case"M":o.push({key:"M",data:[...s]}),[e,r]=s,[i,n]=s;break;case"m":e+=s[0],r+=s[1],o.push({key:"M",data:[e,r]}),i=e,n=r;break;case"L":o.push({key:"L",data:[...s]}),[e,r]=s;break;case"l":e+=s[0],r+=s[1],o.push({key:"L",data:[e,r]});break;case"C":o.push({key:"C",data:[...s]}),e=s[4],r=s[5];break;case"c":{let t=s.map((t,i)=>i%2?t+r:t+e);o.push({key:"C",data:t}),e=t[4],r=t[5];break}case"Q":o.push({key:"Q",data:[...s]}),e=s[2],r=s[3];break;case"q":{let t=s.map((t,i)=>i%2?t+r:t+e);o.push({key:"Q",data:t}),e=t[2],r=t[3];break}case"A":o.push({key:"A",data:[...s]}),e=s[5],r=s[6];break;case"a":e+=s[5],r+=s[6],o.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],e,r]});break;case"H":o.push({key:"H",data:[...s]}),e=s[0];break;case"h":e+=s[0],o.push({key:"H",data:[e]});break;case"V":o.push({key:"V",data:[...s]}),r=s[0];break;case"v":r+=s[0],o.push({key:"V",data:[r]});break;case"S":o.push({key:"S",data:[...s]}),e=s[2],r=s[3];break;case"s":{let t=s.map((t,i)=>i%2?t+r:t+e);o.push({key:"S",data:t}),e=t[2],r=t[3];break}case"T":o.push({key:"T",data:[...s]}),e=s[0],r=s[1];break;case"t":e+=s[0],r+=s[1],o.push({key:"T",data:[e,r]});break;case"Z":case"z":o.push({key:"Z",data:[]}),e=i,r=n}return o}function y(t){let e=[],r="",i=0,n=0,o=0,a=0,s=0,l=0;for(let{key:h,data:c}of t){switch(h){case"M":e.push({key:"M",data:[...c]}),[i,n]=c,[o,a]=c;break;case"C":e.push({key:"C",data:[...c]}),i=c[4],n=c[5],s=c[2],l=c[3];break;case"L":e.push({key:"L",data:[...c]}),[i,n]=c;break;case"H":i=c[0],e.push({key:"L",data:[i,n]});break;case"V":n=c[0],e.push({key:"L",data:[i,n]});break;case"S":{let t=0,o=0;"C"===r||"S"===r?(t=i+(i-s),o=n+(n-l)):(t=i,o=n),e.push({key:"C",data:[t,o,...c]}),s=c[0],l=c[1],i=c[2],n=c[3];break}case"T":{let[t,o]=c,a=0,h=0;"Q"===r||"T"===r?(a=i+(i-s),h=n+(n-l)):(a=i,h=n);let u=i+2*(a-i)/3,d=n+2*(h-n)/3,p=t+2*(a-t)/3,f=o+2*(h-o)/3;e.push({key:"C",data:[u,d,p,f,t,o]}),s=a,l=h,i=t,n=o;break}case"Q":{let[t,r,o,a]=c,h=i+2*(t-i)/3,u=n+2*(r-n)/3,d=o+2*(t-o)/3,p=a+2*(r-a)/3;e.push({key:"C",data:[h,u,d,p,o,a]}),s=t,l=r,i=o,n=a;break}case"A":{let t=Math.abs(c[0]),r=Math.abs(c[1]),o=c[2],a=c[3],s=c[4],l=c[5],h=c[6];0===t||0===r?(e.push({key:"C",data:[i,n,l,h,l,h]}),i=l,n=h):(i!==l||n!==h)&&((function t(e,r,i,n,o,a,s,l,h,c){let u=Math.PI*s/180,d=[],p=0,f=0,g=0,m=0;if(c)[p,f,g,m]=c;else{[e,r]=x(e,r,-u),[i,n]=x(i,n,-u);let t=(e-i)/2,s=(r-n)/2,c=t*t/(o*o)+s*s/(a*a);c>1&&(o*=c=Math.sqrt(c),a*=c);let d=o*o,y=a*a,b=(l===h?-1:1)*Math.sqrt(Math.abs((d*y-d*s*s-y*t*t)/(d*s*s+y*t*t)));g=b*o*s/a+(e+i)/2,m=-(b*a)*t/o+(r+n)/2,p=Math.asin(parseFloat(((r-m)/a).toFixed(9))),f=Math.asin(parseFloat(((n-m)/a).toFixed(9))),e<g&&(p=Math.PI-p),i<g&&(f=Math.PI-f),p<0&&(p=2*Math.PI+p),f<0&&(f=2*Math.PI+f),h&&p>f&&(p-=2*Math.PI),!h&&f>p&&(f-=2*Math.PI)}let y=f-p;if(Math.abs(y)>120*Math.PI/180){let e=f,r=i,l=n;d=t(i=g+o*Math.cos(f=h&&f>p?p+120*Math.PI/180*1:p+-(120*Math.PI/180*1)),n=m+a*Math.sin(f),r,l,o,a,s,0,h,[f,e,g,m])}y=f-p;let b=Math.cos(p),C=Math.cos(f),k=Math.tan(y/4),_=4/3*o*k,T=4/3*a*k,v=[e,r],w=[e+_*Math.sin(p),r-T*b],S=[i+_*Math.sin(f),n-T*C],M=[i,n];if(w[0]=2*v[0]-w[0],w[1]=2*v[1]-w[1],c)return[w,S,M].concat(d);{d=[w,S,M].concat(d);let t=[];for(let e=0;e<d.length;e+=3){let r=x(d[e][0],d[e][1],u),i=x(d[e+1][0],d[e+1][1],u),n=x(d[e+2][0],d[e+2][1],u);t.push([r[0],r[1],i[0],i[1],n[0],n[1]])}return t}})(i,n,l,h,t,r,o,a,s).forEach(function(t){e.push({key:"C",data:t})}),i=l,n=h);break}case"Z":e.push({key:"Z",data:[]}),i=o,n=a}r=h}return e}function x(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}let b={randOffset:function(t,e){return W(t,e)},randOffsetWithRange:function(t,e,r){return A(t,e,r)},ellipse:function(t,e,r,i,n){let o=T(r,i,n);return v(t,e,n,o).opset},doubleLineOps:function(t,e,r,i,n){return E(t,e,r,i,n,!0)}};function C(t,e,r,i,n){return{type:"path",ops:E(t,e,r,i,n)}}function k(t,e,r){let i=(t||[]).length;if(i>2){let n=[];for(let e=0;e<i-1;e++)n.push(...E(t[e][0],t[e][1],t[e+1][0],t[e+1][1],r));return e&&n.push(...E(t[i-1][0],t[i-1][1],t[0][0],t[0][1],r)),{type:"path",ops:n}}return 2===i?C(t[0][0],t[0][1],t[1][0],t[1][1],r):{type:"path",ops:[]}}function _(t,e){if(t.length){let r="number"==typeof t[0][0]?[t]:t,i=$(r[0],1*(1+.2*e.roughness),e),n=e.disableMultiStroke?[]:$(r[0],1.5*(1+.22*e.roughness),L(e));for(let t=1;t<r.length;t++){let o=r[t];if(o.length){let t=$(o,1*(1+.2*e.roughness),e),r=e.disableMultiStroke?[]:$(o,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&&n.push(t)}}return{type:"path",ops:i.concat(n)}}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)),n=2*Math.PI/Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),o=Math.abs(t/2),a=Math.abs(e/2),s=1-r.curveFitting;return o+=W(o*s,r),a+=W(a*s,r),{increment:n,rx:o,ry:a}}function v(t,e,r,i){let[n,o]=I(i.increment,t,e,i.rx,i.ry,1,i.increment*A(.1,A(.4,1,r),r),r),a=Z(n,null,r);if(!r.disableMultiStroke&&0!==r.roughness){let[n]=I(i.increment,t,e,i.rx,i.ry,1.5,0,r),o=Z(n,null,r);a=a.concat(o)}return{estimatedPoints:o,opset:{type:"path",ops:a}}}function w(t,e,r,i,n,o,a,s,l){let h=Math.abs(r/2),c=Math.abs(i/2);h+=W(.01*h,l),c+=W(.01*c,l);let u=n,d=o;for(;u<0;)u+=2*Math.PI,d+=2*Math.PI;d-u>2*Math.PI&&(u=0,d=2*Math.PI);let p=Math.min(2*Math.PI/l.curveStepCount/2,(d-u)/2),f=D(p,t,e,h,c,u,d,1,l);if(!l.disableMultiStroke){let r=D(p,t,e,h,c,u,d,1.5,l);f.push(...r)}return a&&(s?f.push(...E(t,e,t+h*Math.cos(u),e+c*Math.sin(u),l),...E(t,e,t+h*Math.cos(d),e+c*Math.sin(d),l)):f.push({op:"lineTo",data:[t,e]},{op:"lineTo",data:[t+h*Math.cos(u),e+c*Math.sin(u)]})),{type:"path",ops:f}}function S(t,e){let r=y(m(g(t))),i=[],n=[0,0],o=[0,0];for(let{key:t,data:a}of r)switch(t){case"M":o=[a[0],a[1]],n=[a[0],a[1]];break;case"L":i.push(...E(o[0],o[1],a[0],a[1],e)),o=[a[0],a[1]];break;case"C":{let[t,r,n,s,l,h]=a;i.push(...function(t,e,r,i,n,o,a,s){let l=[],h=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3],c=[0,0],u=s.disableMultiStroke?1:2,d=s.preserveVertices;for(let p=0;p<u;p++)0===p?l.push({op:"move",data:[a[0],a[1]]}):l.push({op:"move",data:[a[0]+(d?0:W(h[0],s)),a[1]+(d?0:W(h[0],s))]}),c=d?[n,o]:[n+W(h[p],s),o+W(h[p],s)],l.push({op:"bcurveTo",data:[t+W(h[p],s),e+W(h[p],s),r+W(h[p],s),i+W(h[p],s),c[0],c[1]]});return l}(t,r,n,s,l,h,o,e)),o=[l,h];break}case"Z":i.push(...E(o[0],o[1],n[0],n[1],e)),o=[n[0],n[1]]}return{type:"path",ops:i}}function M(t,e){let r=[];for(let i of t)if(i.length){let t=e.maxRandomnessOffset||0,n=i.length;if(n>2){r.push({op:"move",data:[i[0][0]+W(t,e),i[0][1]+W(t,e)]});for(let o=1;o<n;o++)r.push({op:"lineTo",data:[i[o][0]+W(t,e),i[o][1]+W(t,e)]})}}return{type:"fillPath",ops:r}}function B(t,e){return(function(t,e){let r=t.fillStyle||"hachure";if(!d[r])switch(r){case"zigzag":d[r]||(d[r]=new s(e));break;case"cross-hatch":d[r]||(d[r]=new l(e));break;case"dots":d[r]||(d[r]=new h(e));break;case"dashed":d[r]||(d[r]=new c(e));break;case"zigzag-line":d[r]||(d[r]=new u(e));break;default:d[r="hachure"]||(d[r]=new o(e))}return d[r]})(e,b).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 F(t){return t.randomizer||(t.randomizer=new p(t.seed||0)),t.randomizer.next()}function A(t,e,r,i=1){return r.roughness*i*(F(r)*(e-t)+t)}function W(t,e,r=1){return A(-t,t,e,r)}function E(t,e,r,i,n,o=!1){let a=o?n.disableMultiStrokeFill:n.disableMultiStroke,s=O(t,e,r,i,n,!0,!1);if(a)return s;let l=O(t,e,r,i,n,!0,!0);return s.concat(l)}function O(t,e,r,i,n,o,a){let s=Math.pow(t-r,2)+Math.pow(e-i,2),l=Math.sqrt(s),h=1;h=l<200?1:l>500?.4:-.0016668*l+1.233334;let c=n.maxRandomnessOffset||0;c*c*100>s&&(c=l/10);let u=c/2,d=.2+.2*F(n),p=n.bowing*n.maxRandomnessOffset*(i-e)/200,f=n.bowing*n.maxRandomnessOffset*(t-r)/200;p=W(p,n,h),f=W(f,n,h);let g=[],m=()=>W(u,n,h),y=()=>W(c,n,h),x=n.preserveVertices;return o&&(a?g.push({op:"move",data:[t+(x?0:m()),e+(x?0:m())]}):g.push({op:"move",data:[t+(x?0:W(c,n,h)),e+(x?0:W(c,n,h))]})),a?g.push({op:"bcurveTo",data:[p+t+(r-t)*d+m(),f+e+(i-e)*d+m(),p+t+2*(r-t)*d+m(),f+e+2*(i-e)*d+m(),r+(x?0:m()),i+(x?0:m())]}):g.push({op:"bcurveTo",data:[p+t+(r-t)*d+y(),f+e+(i-e)*d+y(),p+t+2*(r-t)*d+y(),f+e+2*(i-e)*d+y(),r+(x?0:y()),i+(x?0:y())]}),g}function $(t,e,r){if(!t.length)return[];let i=[];i.push([t[0][0]+W(e,r),t[0][1]+W(e,r)]),i.push([t[0][0]+W(e,r),t[0][1]+W(e,r)]);for(let n=1;n<t.length;n++)i.push([t[n][0]+W(e,r),t[n][1]+W(e,r)]),n===t.length-1&&i.push([t[n][0]+W(e,r),t[n][1]+W(e,r)]);return Z(i,null,r)}function Z(t,e,r){let i=t.length,n=[];if(i>3){let o=[],a=1-r.curveTightness;n.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<i;e++){let r=t[e];o[0]=[r[0],r[1]],o[1]=[r[0]+(a*t[e+1][0]-a*t[e-1][0])/6,r[1]+(a*t[e+1][1]-a*t[e-1][1])/6],o[2]=[t[e+1][0]+(a*t[e][0]-a*t[e+2][0])/6,t[e+1][1]+(a*t[e][1]-a*t[e+2][1])/6],o[3]=[t[e+1][0],t[e+1][1]],n.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}if(e&&2===e.length){let t=r.maxRandomnessOffset;n.push({op:"lineTo",data:[e[0]+W(t,r),e[1]+W(t,r)]})}}else 3===i?(n.push({op:"move",data:[t[1][0],t[1][1]]}),n.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===i&&n.push(...O(t[0][0],t[0][1],t[1][0],t[1][1],r,!0,!0));return n}function I(t,e,r,i,n,o,a,s){let l=[],h=[];if(0===s.roughness){t/=4,h.push([e+i*Math.cos(-t),r+n*Math.sin(-t)]);for(let o=0;o<=2*Math.PI;o+=t){let t=[e+i*Math.cos(o),r+n*Math.sin(o)];l.push(t),h.push(t)}h.push([e+1*i,r+0*n]),h.push([e+i*Math.cos(t),r+n*Math.sin(t)])}else{let c=W(.5,s)-Math.PI/2;h.push([W(o,s)+e+.9*i*Math.cos(c-t),W(o,s)+r+.9*n*Math.sin(c-t)]);let u=2*Math.PI+c-.01;for(let a=c;a<u;a+=t){let t=[W(o,s)+e+i*Math.cos(a),W(o,s)+r+n*Math.sin(a)];l.push(t),h.push(t)}h.push([W(o,s)+e+i*Math.cos(c+2*Math.PI+.5*a),W(o,s)+r+n*Math.sin(c+2*Math.PI+.5*a)]),h.push([W(o,s)+e+.98*i*Math.cos(c+a),W(o,s)+r+.98*n*Math.sin(c+a)]),h.push([W(o,s)+e+.9*i*Math.cos(c+.5*a),W(o,s)+r+.9*n*Math.sin(c+.5*a)])}return[h,l]}function D(t,e,r,i,n,o,a,s,l){let h=o+W(.1,l),c=[];c.push([W(s,l)+e+.9*i*Math.cos(h-t),W(s,l)+r+.9*n*Math.sin(h-t)]);for(let o=h;o<=a;o+=t)c.push([W(s,l)+e+i*Math.cos(o),W(s,l)+r+n*Math.sin(o)]);return c.push([e+i*Math.cos(a),r+n*Math.sin(a)]),c.push([e+i*Math.cos(a),r+n*Math.sin(a)]),Z(c,null,l)}function z(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 n=[],o=1-e;i.push([...r[0]]);for(let t=1;t+2<r.length;t++){let e=r[t];n[0]=[e[0],e[1]],n[1]=[e[0]+(o*r[t+1][0]-o*r[t-1][0])/6,e[1]+(o*r[t+1][1]-o*r[t-1][1])/6],n[2]=[r[t+1][0]+(o*r[t][0]-o*r[t+2][0])/6,r[t+1][1]+(o*r[t][1]-o*r[t+2][1])/6],n[3]=[r[t+1][0],r[t+1][1]],i.push(n[1],n[2],n[3])}}return i}function q(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function P(t,e,r){return[t[0]+(e[0]-t[0])*r,t[1]+(e[1]-t[1])*r]}function R(t,e,r,i,n){let o=n||[],a=t[e],s=t[r-1],l=0,h=1;for(let i=e+1;i<r-1;++i){let e=function(t,e,r){let i=q(e,r);if(0===i)return q(t,e);let n=((t[0]-e[0])*(r[0]-e[0])+(t[1]-e[1])*(r[1]-e[1]))/i;return q(t,P(e,r,n=Math.max(0,Math.min(1,n))))}(t[i],a,s);e>l&&(l=e,h=i)}return Math.sqrt(l)>i?(R(t,e,h+1,i,o),R(t,h,r,i,o)):(o.length||o.push(a),o.push(s)),o}function N(t,e=.15,r){let i=[],n=(t.length-1)/3;for(let r=0;r<n;r++)!function t(e,r,i,n){let o=n||[];if(function(t,e){let r=t[e+0],i=t[e+1],n=t[e+2],o=t[e+3],a=3*i[0]-2*r[0]-o[0];a*=a;let s=3*i[1]-2*r[1]-o[1];s*=s;let l=3*n[0]-2*o[0]-r[0];l*=l;let h=3*n[1]-2*o[1]-r[1];return h*=h,a<l&&(a=l),s<h&&(s=h),a+s}(e,r)<i){let t=e[r+0];o.length?Math.sqrt(q(o[o.length-1],t))>1&&o.push(t):o.push(t),o.push(e[r+3])}else{let n=e[r+0],a=e[r+1],s=e[r+2],l=e[r+3],h=P(n,a,.5),c=P(a,s,.5),u=P(s,l,.5),d=P(h,c,.5),p=P(c,u,.5),f=P(d,p,.5);t([n,h,d,f],0,i,o),t([f,p,u,l],0,i,o)}return o}(t,3*r,e,i);return r&&r>0?R(i,0,i.length,r):i}let j="none";class U{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(2147483648*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,n){let o=this._o(n);return this._d("line",[C(t,e,r,i,o)],o)}rectangle(t,e,r,i,n){let o=this._o(n),a=[],s=k([[t,e],[t+r,e],[t+r,e+i],[t,e+i]],!0,o);if(o.fill){let n=[[t,e],[t+r,e],[t+r,e+i],[t,e+i]];"solid"===o.fillStyle?a.push(M([n],o)):a.push(B([n],o))}return o.stroke!==j&&a.push(s),this._d("rectangle",a,o)}ellipse(t,e,r,i,n){let o=this._o(n),a=[],s=T(r,i,o),l=v(t,e,o,s);if(o.fill){if("solid"===o.fillStyle){let r=v(t,e,o,s).opset;r.type="fillPath",a.push(r)}else a.push(B([l.estimatedPoints],o))}return o.stroke!==j&&a.push(l.opset),this._d("ellipse",a,o)}circle(t,e,r,i){let n=this.ellipse(t,e,r,r,i);return n.shape="circle",n}linearPath(t,e){let r=this._o(e);return this._d("linearPath",[k(t,!1,r)],r)}arc(t,e,r,i,n,o,a=!1,s){let l=this._o(s),h=[],c=w(t,e,r,i,n,o,a,!0,l);if(a&&l.fill){if("solid"===l.fillStyle){let a=Object.assign({},l);a.disableMultiStroke=!0;let s=w(t,e,r,i,n,o,!0,!1,a);s.type="fillPath",h.push(s)}else h.push(function(t,e,r,i,n,o,a){let s=Math.abs(r/2),l=Math.abs(i/2);s+=W(.01*s,a),l+=W(.01*l,a);let h=n,c=o;for(;h<0;)h+=2*Math.PI,c+=2*Math.PI;c-h>2*Math.PI&&(h=0,c=2*Math.PI);let u=(c-h)/a.curveStepCount,d=[];for(let r=h;r<=c;r+=u)d.push([t+s*Math.cos(r),e+l*Math.sin(r)]);return d.push([t+s*Math.cos(c),e+l*Math.sin(c)]),d.push([t,e]),B([d],a)}(t,e,r,i,n,o,l))}return l.stroke!==j&&h.push(c),this._d("arc",h,l)}curve(t,e){let r=this._o(e),i=[],n=_(t,r);if(r.fill&&r.fill!==j){if("solid"===r.fillStyle){let e=_(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(...N(z([i[0],i[0],i[1],i[2]]),10,(1+r.roughness)/2)):e.push(...N(z(i),10,(1+r.roughness)/2));e.length&&i.push(B([e],r))}}return r.stroke!==j&&i.push(n),this._d("curve",i,r)}polygon(t,e){let r=this._o(e),i=[],n=k(t,!0,r);return r.fill&&("solid"===r.fillStyle?i.push(M([t],r)):i.push(B([t],r))),r.stroke!==j&&i.push(n),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 n=r.fill&&"transparent"!==r.fill&&r.fill!==j,o=r.stroke!==j,a=!!(r.simplification&&r.simplification<1),s=function(t,e,r){let i=y(m(g(t))),n=[],o=[],a=[0,0],s=[],l=()=>{s.length>=4&&o.push(...N(s,1)),s=[]},h=()=>{l(),o.length&&(n.push(o),o=[])};for(let{key:t,data:e}of i)switch(t){case"M":h(),a=[e[0],e[1]],o.push(a);break;case"L":l(),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":l(),o.push([a[0],a[1]])}if(h(),!r)return n;let c=[];for(let t of n){let e=R(t,0,t.length,r);e.length&&c.push(e)}return c}(t,0,a?4-4*(r.simplification||1):(1+r.roughness)/2),l=S(t,r);if(n){if("solid"===r.fillStyle){if(1===s.length){let e=S(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else i.push(M(s,r))}else i.push(B(s,r))}return o&&(a?s.forEach(t=>{i.push(k(t,!1,r))}):i.push(l)),this._d("path",i,r)}opsToPath(t,e){let r="";for(let i of t.ops){let t="number"==typeof e&&e>=0?i.data.map(t=>+t.toFixed(e)):i.data;switch(i.op){case"move":r+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":r+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":r+=`L${t[0]} ${t[1]} `}}return r.trim()}toPaths(t){let e=t.sets||[],r=t.options||this.defaultOptions,i=[];for(let t of e){let e=null;switch(t.type){case"path":e={d:this.opsToPath(t),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:j};break;case"fillPath":e={d:this.opsToPath(t),stroke:j,strokeWidth:0,fill:r.fill||j};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||j,strokeWidth:r,fill:j}}_mergedShape(t){return t.filter((t,e)=>0===e||"move"!==t.op)}}class H{constructor(t,e){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new U(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),i=this.ctx,n=t.options.fixedDecimalPlaceDigits;for(let o of e)switch(o.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,o,n),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,o,n,e),i.restore();break}case"fillSketch":this.fillSketch(i,o,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,n){let o=this.gen.line(t,e,r,i,n);return this.draw(o),o}rectangle(t,e,r,i,n){let o=this.gen.rectangle(t,e,r,i,n);return this.draw(o),o}ellipse(t,e,r,i,n){let o=this.gen.ellipse(t,e,r,i,n);return this.draw(o),o}circle(t,e,r,i){let n=this.gen.circle(t,e,r,i);return this.draw(n),n}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,n,o,a=!1,s){let l=this.gen.arc(t,e,r,i,n,o,a,s);return this.draw(l),l}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r),r}path(t,e){let r=this.gen.path(t,e);return this.draw(r),r}}let Y="http://www.w3.org/2000/svg";class G{constructor(t,e){this.svg=t,this.gen=new U(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,n=i.createElementNS(Y,"g"),o=t.options.fixedDecimalPlaceDigits;for(let a of e){let e=null;switch(a.type){case"path":(e=i.createElementNS(Y,"path")).setAttribute("d",this.opsToPath(a,o)),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(a,o)),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,a,r)}e&&n.appendChild(e)}return n}fillSketch(t,e,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2);let n=t.createElementNS(Y,"path");return n.setAttribute("d",this.opsToPath(e,r.fixedDecimalPlaceDigits)),n.setAttribute("stroke",r.fill||""),n.setAttribute("stroke-width",i+""),n.setAttribute("fill","none"),r.fillLineDash&&n.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&n.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),n}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,r,i,n){let o=this.gen.line(t,e,r,i,n);return this.draw(o)}rectangle(t,e,r,i,n){let o=this.gen.rectangle(t,e,r,i,n);return this.draw(o)}ellipse(t,e,r,i,n){let o=this.gen.ellipse(t,e,r,i,n);return this.draw(o)}circle(t,e,r,i){let n=this.gen.circle(t,e,r,i);return this.draw(n)}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,n,o,a=!1,s){let l=this.gen.arc(t,e,r,i,n,o,a,s);return this.draw(l)}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r)}path(t,e){let r=this.gen.path(t,e);return this.draw(r)}}var V={canvas:(t,e)=>new H(t,e),svg:(t,e)=>new G(t,e),generator:t=>new U(t),newSeed:()=>U.newSeed()}},23249:function(t,e,r){"use strict";function i(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=Array.from("string"==typeof t?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var n=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?void 0:e.length)&&void 0!==r?r:0})):t},[]);if(n.length){var o=RegExp("\n[ ]{"+Math.min.apply(Math,n)+"}","g");i=i.map(function(t){return t.replace(o,"\n")})}i[0]=i[0].replace(/^\r?\n/,"");var a=i[0];return e.forEach(function(t,e){var r=a.match(/(?:^|\n)( *)$/),n=r?r[1]:"",o=t;"string"==typeof t&&t.includes("\n")&&(o=String(t).split("\n").map(function(t,e){return 0===e?t:""+n+t}).join("\n")),a+=o+i[e+1]}),a}r.d(e,{Z:function(){return i}})},33433:function(t,e,r){"use strict";function i(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let i=-1;for(let n of t)null!=(n=e(n,++i,t))&&(r<n||void 0===r&&n>=n)&&(r=n)}return r}function n(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 n of t)null!=(n=e(n,++i,t))&&(r>n||void 0===r&&n>=n)&&(r=n)}return r}function o(t){return t}function a(t){return"translate("+t+",0)"}function s(t){return"translate(0,"+t+")"}function l(){return!this.__axis}function h(t,e){var r=[],i=null,n=null,h=6,c=6,u=3,d="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,p=1===t||4===t?-1:1,f=4===t||2===t?"x":"y",g=1===t||3===t?a:s;function m(a){var s=null==i?e.ticks?e.ticks.apply(e,r):e.domain():i,m=null==n?e.tickFormat?e.tickFormat.apply(e,r):o:n,y=Math.max(h,0)+u,x=e.range(),b=+x[0]+d,C=+x[x.length-1]+d,k=(e.bandwidth?function(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}:function(t){return e=>+t(e)})(e.copy(),d),_=a.selection?a.selection():a,T=_.selectAll(".domain").data([null]),v=_.selectAll(".tick").data(s,e).order(),w=v.exit(),S=v.enter().append("g").attr("class","tick"),M=v.select("line"),B=v.select("text");T=T.merge(T.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),v=v.merge(S),M=M.merge(S.append("line").attr("stroke","currentColor").attr(f+"2",p*h)),B=B.merge(S.append("text").attr("fill","currentColor").attr(f,p*y).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),a!==_&&(T=T.transition(a),v=v.transition(a),M=M.transition(a),B=B.transition(a),w=w.transition(a).attr("opacity",1e-6).attr("transform",function(t){return isFinite(t=k(t))?g(t+d):this.getAttribute("transform")}),S.attr("opacity",1e-6).attr("transform",function(t){var e=this.parentNode.__axis;return g((e&&isFinite(e=e(t))?e:k(t))+d)})),w.remove(),T.attr("d",4===t||2===t?c?"M"+p*c+","+b+"H"+d+"V"+C+"H"+p*c:"M"+d+","+b+"V"+C:c?"M"+b+","+p*c+"V"+d+"H"+C+"V"+p*c:"M"+b+","+d+"H"+C),v.attr("opacity",1).attr("transform",function(t){return g(k(t)+d)}),M.attr(f+"2",p*h),B.attr(f,p*y).text(m),_.filter(l).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),_.each(function(){this.__axis=k})}return m.scale=function(t){return arguments.length?(e=t,m):e},m.ticks=function(){return r=Array.from(arguments),m},m.tickArguments=function(t){return arguments.length?(r=null==t?[]:Array.from(t),m):r.slice()},m.tickValues=function(t){return arguments.length?(i=null==t?null:Array.from(t),m):i&&i.slice()},m.tickFormat=function(t){return arguments.length?(n=t,m):n},m.tickSize=function(t){return arguments.length?(h=c=+t,m):h},m.tickSizeInner=function(t){return arguments.length?(h=+t,m):h},m.tickSizeOuter=function(t){return arguments.length?(c=+t,m):c},m.tickPadding=function(t){return arguments.length?(u=+t,m):u},m.offset=function(t){return arguments.length?(d=+t,m):d},m}function c(t){return h(1,t)}function u(t){return h(3,t)}r.d(e,{Nb1:function(){return rJ},LLu:function(){return u},F5q:function(){return c},$0Z:function(){return ir},Dts:function(){return io},WQY:function(){return is},qpX:function(){return ih},u93:function(){return ic},tFB:function(){return id},YY7:function(){return im},OvA:function(){return ix},dCK:function(){return iC},zgE:function(){return iT},fGX:function(){return iw},$m7:function(){return iM},c_6:function(){return r2},fxm:function(){return iL},FdL:function(){return iZ},ak_:function(){return iI},SxZ:function(){return iq},eA_:function(){return iR},jsv:function(){return ij},iJ:function(){return iN},WUZ:function(){return C},bT9:function(){return E},JHv:function(){return th},jvg:function(){return r6},Fp7:function(){return i},VV$:function(){return n},ve8:function(){return r9},tiA:function(){return function t(){var e,r,i=tg().unknown(void 0),n=i.domain,o=i.range,a=0,s=1,l=!1,h=0,c=0,u=.5;function d(){var t=n().length,i=s<a,d=i?s:a,p=i?a:s;e=(p-d)/Math.max(1,t-h+2*c),l&&(e=Math.floor(e)),d+=(p-d-e*(t-h))*u,r=e*(1-h),l&&(d=Math.round(d),r=Math.round(r));var f=(function(t,e,r){t=+t,e=+e,r=(n=arguments.length)<2?(e=t,t=0,1):n<3?1:+r;for(var i=-1,n=0|Math.max(0,Math.ceil((e-t)/r)),o=Array(n);++i<n;)o[i]=t+i*r;return o})(t).map(function(t){return d+e*t});return o(i?f.reverse():f)}return delete i.unknown,i.domain=function(t){return arguments.length?(n(t),d()):n()},i.range=function(t){return arguments.length?([a,s]=t,a=+a,s=+s,d()):[a,s]},i.rangeRound=function(t){return[a,s]=t,a=+a,s=+s,l=!0,d()},i.bandwidth=function(){return r},i.step=function(){return e},i.round=function(t){return arguments.length?(l=!!t,d()):l},i.padding=function(t){return arguments.length?(h=Math.min(1,c=+t),d()):h},i.paddingInner=function(t){return arguments.length?(h=Math.min(1,t),d()):h},i.paddingOuter=function(t){return arguments.length?(c=+t,d()):c},i.align=function(t){return arguments.length?(u=Math.max(0,Math.min(1,t)),d()):u},i.copy=function(){return t(n(),[a,s]).round(l).paddingInner(h).paddingOuter(c).align(u)},tc.apply(d(),arguments)}},BYU:function(){return function t(){var e,r=tq();return r.copy=function(){return tz(r,t())},tc.apply(r,arguments),e=r.domain,r.ticks=function(t){var r=e();return function(t,e,r){if(e=+e,t=+t,!((r=+r)>0))return[];if(t===e)return[t];let i=e<t,[n,o,a]=i?tb(e,t,r):tb(t,e,r);if(!(o>=n))return[];let s=o-n+1,l=Array(s);if(i){if(a<0)for(let t=0;t<s;++t)l[t]=-((o-t)/a);else for(let t=0;t<s;++t)l[t]=(o-t)*a}else if(a<0)for(let t=0;t<s;++t)l[t]=-((n+t)/a);else for(let t=0;t<s;++t)l[t]=(n+t)*a;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 n,o,a=tk(t,e,r);switch((i=w(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e));return null!=i.precision||isNaN(o=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(y(s)/3)))-y(Math.abs(a))))||(i.precision=o),k(i,s);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=Math.max(0,y(Math.abs(Math.max(Math.abs(t),Math.abs(e)))-(n=Math.abs(n=a)))-y(n))+1)||(i.precision=o-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(o=Math.max(0,-y(Math.abs(a))))||(i.precision=o-("%"===i.type)*2)}return C(i)}(i[0],i[i.length-1],null==t?10:t,r)},r.nice=function(t){null==t&&(t=10);var i,n,o=e(),a=0,s=o.length-1,l=o[a],h=o[s],c=10;for(h<l&&(n=l,l=h,h=n,n=a,a=s,s=n);c-- >0;){if((n=tC(l,h,t))===i)return o[a]=l,o[s]=h,e(o);if(n>0)l=Math.floor(l/n)*n,h=Math.ceil(h/n)*n;else if(n<0)l=Math.ceil(l*n)/n,h=Math.floor(h*n)/n;else break;i=n}return r},r}},PKp:function(){return tg},Xf:function(){return rS},K2I:function(){return rM},Ys:function(){return rB.Z},rr1:function(){return tX},i$Z:function(){return T},y2j:function(){return t6},WQD:function(){return tG},U8T:function(){return tj},Z_i:function(){return tH},Ox9:function(){return t1},F0B:function(){return eo},LqH:function(){return t4},S1K:function(){return tU},Zyz:function(){return t0},Igq:function(){return t5},YDX:function(){return t2},EFj:function(){return t3},pNI:function(){return N}}),r(56954);let{abs:d,max:p,min:f}=Math;function g(t){return{type:t}}function m(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 y(t){return(t=m(Math.abs(t)))?t[1]:NaN}["w","e"].map(g),["n","s"].map(g),["n","w","e","s","nw","ne","sw","se"].map(g);var x,b,C,k,_,T,v=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function w(t){var e;if(!(e=v.exec(t)))throw Error("invalid format: "+t);return new S({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 S(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 M(t,e){var r=m(t,e);if(!r)return t+"";var i=r[0],n=r[1];return n<0?"0."+Array(-n).join("0")+i:i.length>n+1?i.slice(0,n+1)+"."+i.slice(n+1):i+Array(n-i.length+2).join("0")}w.prototype=S.prototype,S.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 B={"%":(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)=>M(100*t,e),r:M,s:function(t,e){var r=m(t,e);if(!r)return x=void 0,t.toPrecision(e);var i=r[0],n=r[1],o=n-(x=3*Math.max(-8,Math.min(8,Math.floor(n/3))))+1,a=i.length;return o===a?i:o>a?i+Array(o-a+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+Array(1-o).join("0")+m(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function L(t){return t}var F=Array.prototype.map,A=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function W(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 E(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=$)):void 0===e&&(e=O);for(var r,i,n,o,a,s=new D(t),l=[s];r=l.pop();)if((n=e(r.data))&&(a=(n=Array.from(n)).length))for(r.children=n,o=a-1;o>=0;--o)l.push(i=n[o]=new D(n[o])),i.parent=r,i.depth=r.depth+1;return s.eachBefore(I)}function O(t){return t.children}function $(t){return Array.isArray(t)?t[1]:null}function Z(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function I(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function D(t){this.data=t,this.depth=this.height=0,this.parent=null}function z(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)}C=(b=function(t){var e,r,i,n=void 0===t.grouping||void 0===t.thousands?L:(e=F.call(t.grouping,Number),r=t.thousands+"",function(t,i){for(var n=t.length,o=[],a=0,s=e[0],l=0;n>0&&s>0&&(l+s+1>i&&(s=Math.max(1,i-l)),o.push(t.substring(n-=s,n+s)),!((l+=s+1)>i));)s=e[a=(a+1)%e.length];return o.reverse().join(r)}),o=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?L:(i=F.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+"",u=void 0===t.nan?"NaN":t.nan+"";function d(t,e){var r=(t=w(t)).fill,i=t.align,d=t.sign,p=t.symbol,f=t.zero,g=t.width,m=t.comma,y=t.precision,b=t.trim,C=t.type;"n"===C?(m=!0,C="g"):B[C]||(void 0===y&&(y=12),b=!0,C="g"),(f||"0"===r&&"="===i)&&(f=!0,r="0",i="=");var k=(e&&void 0!==e.prefix?e.prefix:"")+("$"===p?o:"#"===p&&/[boxX]/.test(C)?"0"+C.toLowerCase():""),_=("$"===p?a:/[%p]/.test(C)?h:"")+(e&&void 0!==e.suffix?e.suffix:""),T=B[C],v=/[defgprs%]/.test(C);function S(t){var e,o,a,h=k,p=_;if("c"===C)p=T(t)+p,t="";else{var w=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:T(Math.abs(t),y),b&&(t=function(t){t:for(var e,r=t.length,i=1,n=-1;i<r;++i)switch(t[i]){case".":n=e=i;break;case"0":0===n&&(n=i),e=i;break;default:if(!+t[i])break t;n>0&&(n=0)}return n>0?t.slice(0,n)+t.slice(e+1):t}(t)),w&&0==+t&&"+"!==d&&(w=!1),h=(w?"("===d?d:c:"-"===d||"("===d?"":d)+h,p=("s"!==C||isNaN(t)||void 0===x?"":A[8+x/3])+p+(w&&"("===d?")":""),v){for(e=-1,o=t.length;++e<o;)if(48>(a=t.charCodeAt(e))||a>57){p=(46===a?s+t.slice(e+1):t.slice(e))+p,t=t.slice(0,e);break}}}m&&!f&&(t=n(t,1/0));var S=h.length+t.length+p.length,M=S<g?Array(g-S+1).join(r):"";switch(m&&f&&(t=n(M+t,M.length?g-p.length:1/0),M=""),i){case"<":t=h+t+p+M;break;case"=":t=h+M+t+p;break;case"^":t=M.slice(0,S=M.length>>1)+h+t+p+M.slice(S);break;default:t=M+h+t+p}return l(t)}return y=void 0===y?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),S.toString=function(){return t+""},S}return{format:d,formatPrefix:function(t,e){var r=3*Math.max(-8,Math.min(8,Math.floor(y(e)/3))),i=Math.pow(10,-r),n=d(((t=w(t)).type="f",t),{suffix:A[8+r/3]});return function(t){return n(i*t)}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,k=b.formatPrefix,D.prototype=E.prototype={constructor:D,count:function(){return this.eachAfter(W)},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,n,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),r=o.children)for(i=0,n=r.length;i<n;++i)a.push(r[i]);for(;o=s.pop();)t.call(e,o,++l,this);return this},eachBefore:function(t,e){for(var r,i,n=this,o=[n],a=-1;n=o.pop();)if(t.call(e,n,++a,this),r=n.children)for(i=r.length-1;i>=0;--i)o.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,n=i&&i.length;--n>=0;)r+=i[n].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(),n=null;for(t=r.pop(),e=i.pop();t===e;)n=t,t=r.pop(),e=