fluency-v8-components 1.0.5 → 1.0.6

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.
@@ -87,7 +87,7 @@ var p2;function Se(){return p2.apply(null,arguments)}function Hq(e){p2=e}functio
87
87
  [`+o+"] ";for(s in arguments[0])wt(arguments[0],s)&&(a+=s+": "+arguments[0][s]+", ");a=a.slice(0,-2)}else a=arguments[o];r.push(a)}v2(e+`
88
88
  Arguments: `+Array.prototype.slice.call(r).join("")+`
89
89
  `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var y2={};function b2(e,t){Se.deprecationHandler!=null&&Se.deprecationHandler(e,t),y2[e]||(v2(t),y2[e]=!0)}Se.suppressDeprecationWarnings=!1,Se.deprecationHandler=null;function Oa(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Rq(e){var t,n;for(n in e)wt(e,n)&&(t=e[n],Oa(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function G_(e,t){var n=bo({},e),r;for(r in t)wt(t,r)&&(Ds(e[r])&&Ds(t[r])?(n[r]={},bo(n[r],e[r]),bo(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)wt(e,r)&&!wt(t,r)&&Ds(e[r])&&(n[r]=bo({},n[r]));return n}function K_(e){e!=null&&this.set(e)}var J_;Object.keys?J_=Object.keys:J_=function(e){var t,n=[];for(t in e)wt(e,t)&&n.push(t);return n};var zq={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function qq(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Oa(r)?r.call(t,n):r}function ja(e,t,n){var r=""+Math.abs(e),a=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var Z_=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Oh=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,X_={},Rl={};function qe(e,t,n,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(Rl[e]=a),t&&(Rl[t[0]]=function(){return ja(a.apply(this,arguments),t[1],t[2])}),n&&(Rl[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function Uq(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Wq(e){var t=e.match(Z_),n,r;for(n=0,r=t.length;n<r;n++)Rl[t[n]]?t[n]=Rl[t[n]]:t[n]=Uq(t[n]);return function(a){var o="",s;for(s=0;s<r;s++)o+=Oa(t[s])?t[s].call(a,e):t[s];return o}}function jh(e,t){return e.isValid()?(t=w2(t,e.localeData()),X_[t]=X_[t]||Wq(t),X_[t](e)):e.localeData().invalidDate()}function w2(e,t){var n=5;function r(a){return t.longDateFormat(a)||a}for(Oh.lastIndex=0;n>=0&&Oh.test(e);)e=e.replace(Oh,r),Oh.lastIndex=0,n-=1;return e}var Gq={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Kq(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Z_).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Jq="Invalid date";function Zq(){return this._invalidDate}var Xq="%d",Qq=/\d{1,2}/;function $q(e){return this._ordinal.replace("%d",e)}var eU={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function tU(e,t,n,r){var a=this._relativeTime[n];return Oa(a)?a(e,t,n,r):a.replace(/%d/i,e)}function nU(e,t){var n=this._relativeTime[e>0?"future":"past"];return Oa(n)?n(t):n.replace(/%s/i,t)}var M2={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function yr(e){return typeof e=="string"?M2[e]||M2[e.toLowerCase()]:void 0}function Q_(e){var t={},n,r;for(r in e)wt(e,r)&&(n=yr(r),n&&(t[n]=e[r]));return t}var rU={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function aU(e){var t=[],n;for(n in e)wt(e,n)&&t.push({unit:n,priority:rU[n]});return t.sort(function(r,a){return r.priority-a.priority}),t}var k2=/\d/,Qn=/\d\d/,x2=/\d{3}/,$_=/\d{4}/,Bh=/[+-]?\d{6}/,At=/\d\d?/,S2=/\d\d\d\d?/,L2=/\d\d\d\d\d\d?/,Ph=/\d{1,3}/,eg=/\d{1,4}/,Vh=/[+-]?\d{1,6}/,zl=/\d+/,Ih=/[+-]?\d+/,iU=/Z|[+-]\d\d:?\d\d/gi,Hh=/Z|[+-]\d\d(?::?\d\d)?/gi,oU=/[+-]?\d+(\.\d{1,3})?/,Rc=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ql=/^[1-9]\d?/,tg=/^([1-9]\d|\d)/,Fh;Fh={};function Ae(e,t,n){Fh[e]=Oa(t)?t:function(r,a){return r&&n?n:t}}function sU(e,t){return wt(Fh,e)?Fh[e](t._strict,t._locale):new RegExp(lU(e))}function lU(e){return gi(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,a,o){return n||r||a||o}))}function gi(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function br(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ft(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=br(t)),n}var ng={};function Lt(e,t){var n,r=t,a;for(typeof e=="string"&&(e=[e]),_i(t)&&(r=function(o,s){s[t]=ft(o)}),a=e.length,n=0;n<a;n++)ng[e[n]]=r}function zc(e,t){Lt(e,function(n,r,a,o){a._w=a._w||{},t(n,a._w,a,o)})}function uU(e,t,n){t!=null&&wt(ng,e)&&ng[e](t,n._a,n,e)}function Rh(e){return e%4===0&&e%100!==0||e%400===0}var gn=0,vi=1,Ba=2,Xt=3,Ur=4,yi=5,Ns=6,cU=7,dU=8;qe("Y",0,0,function(){var e=this.year();return e<=9999?ja(e,4):"+"+e}),qe(0,["YY",2],0,function(){return this.year()%100}),qe(0,["YYYY",4],0,"year"),qe(0,["YYYYY",5],0,"year"),qe(0,["YYYYYY",6,!0],0,"year"),Ae("Y",Ih),Ae("YY",At,Qn),Ae("YYYY",eg,$_),Ae("YYYYY",Vh,Bh),Ae("YYYYYY",Vh,Bh),Lt(["YYYYY","YYYYYY"],gn),Lt("YYYY",function(e,t){t[gn]=e.length===2?Se.parseTwoDigitYear(e):ft(e)}),Lt("YY",function(e,t){t[gn]=Se.parseTwoDigitYear(e)}),Lt("Y",function(e,t){t[gn]=parseInt(e,10)});function qc(e){return Rh(e)?366:365}Se.parseTwoDigitYear=function(e){return ft(e)+(ft(e)>68?1900:2e3)};var Y2=Ul("FullYear",!0);function fU(){return Rh(this.year())}function Ul(e,t){return function(n){return n!=null?(T2(this,e,n),Se.updateOffset(this,t),this):Uc(this,e)}}function Uc(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function T2(e,t,n){var r,a,o,s,l;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(a?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(a?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(a?r.setUTCHours(n):r.setHours(n));case"Date":return void(a?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,s=e.month(),l=e.date(),l=l===29&&s===1&&!Rh(o)?28:l,a?r.setUTCFullYear(o,s,l):r.setFullYear(o,s,l)}}function hU(e){return e=yr(e),Oa(this[e])?this[e]():this}function mU(e,t){if(typeof e=="object"){e=Q_(e);var n=aU(e),r,a=n.length;for(r=0;r<a;r++)this[n[r].unit](e[n[r].unit])}else if(e=yr(e),Oa(this[e]))return this[e](t);return this}function pU(e,t){return(e%t+t)%t}var qt;Array.prototype.indexOf?qt=Array.prototype.indexOf:qt=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function rg(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=pU(t,12);return e+=(t-n)/12,n===1?Rh(e)?29:28:31-n%7%2}qe("M",["MM",2],"Mo",function(){return this.month()+1}),qe("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),qe("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Ae("M",At,ql),Ae("MM",At,Qn),Ae("MMM",function(e,t){return t.monthsShortRegex(e)}),Ae("MMMM",function(e,t){return t.monthsRegex(e)}),Lt(["M","MM"],function(e,t){t[vi]=ft(e)-1}),Lt(["MMM","MMMM"],function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);a!=null?t[vi]=a:et(n).invalidMonth=e});var _U="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),E2="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),D2=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,gU=Rc,vU=Rc;function yU(e,t){return e?zr(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||D2).test(t)?"format":"standalone"][e.month()]:zr(this._months)?this._months:this._months.standalone}function bU(e,t){return e?zr(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[D2.test(t)?"format":"standalone"][e.month()]:zr(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function wU(e,t,n){var r,a,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=Aa([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?t==="MMM"?(a=qt.call(this._shortMonthsParse,s),a!==-1?a:null):(a=qt.call(this._longMonthsParse,s),a!==-1?a:null):t==="MMM"?(a=qt.call(this._shortMonthsParse,s),a!==-1?a:(a=qt.call(this._longMonthsParse,s),a!==-1?a:null)):(a=qt.call(this._longMonthsParse,s),a!==-1?a:(a=qt.call(this._shortMonthsParse,s),a!==-1?a:null))}function MU(e,t,n){var r,a,o;if(this._monthsParseExact)return wU.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=Aa([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(o="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function N2(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=ft(t);else if(t=e.localeData().monthsParse(t),!_i(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,rg(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function C2(e){return e!=null?(N2(this,e),Se.updateOffset(this,!0),this):Uc(this,"Month")}function kU(){return rg(this.year(),this.month())}function xU(e){return this._monthsParseExact?(wt(this,"_monthsRegex")||A2.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(wt(this,"_monthsShortRegex")||(this._monthsShortRegex=gU),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function SU(e){return this._monthsParseExact?(wt(this,"_monthsRegex")||A2.call(this),e?this._monthsStrictRegex:this._monthsRegex):(wt(this,"_monthsRegex")||(this._monthsRegex=vU),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function A2(){function e(u,c){return c.length-u.length}var t=[],n=[],r=[],a,o,s,l;for(a=0;a<12;a++)o=Aa([2e3,a]),s=gi(this.monthsShort(o,"")),l=gi(this.months(o,"")),t.push(s),n.push(l),r.push(l),r.push(s);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function LU(e,t,n,r,a,o,s){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,a,o,s),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,a,o,s),l}function Wc(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function zh(e,t,n){var r=7+t-n,a=(7+Wc(e,0,r).getUTCDay()-t)%7;return-a+r-1}function O2(e,t,n,r,a){var o=(7+n-r)%7,s=zh(e,r,a),l=1+7*(t-1)+o+s,u,c;return l<=0?(u=e-1,c=qc(u)+l):l>qc(e)?(u=e+1,c=l-qc(e)):(u=e,c=l),{year:u,dayOfYear:c}}function Gc(e,t,n){var r=zh(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1,o,s;return a<1?(s=e.year()-1,o=a+bi(s,t,n)):a>bi(e.year(),t,n)?(o=a-bi(e.year(),t,n),s=e.year()+1):(s=e.year(),o=a),{week:o,year:s}}function bi(e,t,n){var r=zh(e,t,n),a=zh(e+1,t,n);return(qc(e)-r+a)/7}qe("w",["ww",2],"wo","week"),qe("W",["WW",2],"Wo","isoWeek"),Ae("w",At,ql),Ae("ww",At,Qn),Ae("W",At,ql),Ae("WW",At,Qn),zc(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=ft(e)});function YU(e){return Gc(e,this._week.dow,this._week.doy).week}var TU={dow:0,doy:6};function EU(){return this._week.dow}function DU(){return this._week.doy}function NU(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function CU(e){var t=Gc(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}qe("d",0,"do","day"),qe("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),qe("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),qe("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),qe("e",0,0,"weekday"),qe("E",0,0,"isoWeekday"),Ae("d",At),Ae("e",At),Ae("E",At),Ae("dd",function(e,t){return t.weekdaysMinRegex(e)}),Ae("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Ae("dddd",function(e,t){return t.weekdaysRegex(e)}),zc(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);a!=null?t.d=a:et(n).invalidWeekday=e}),zc(["d","e","E"],function(e,t,n,r){t[r]=ft(e)});function AU(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function OU(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ag(e,t){return e.slice(t,7).concat(e.slice(0,t))}var jU="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),j2="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),BU="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),PU=Rc,VU=Rc,IU=Rc;function HU(e,t){var n=zr(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ag(n,this._week.dow):e?n[e.day()]:n}function FU(e){return e===!0?ag(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function RU(e){return e===!0?ag(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function zU(e,t,n){var r,a,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=Aa([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?t==="dddd"?(a=qt.call(this._weekdaysParse,s),a!==-1?a:null):t==="ddd"?(a=qt.call(this._shortWeekdaysParse,s),a!==-1?a:null):(a=qt.call(this._minWeekdaysParse,s),a!==-1?a:null):t==="dddd"?(a=qt.call(this._weekdaysParse,s),a!==-1||(a=qt.call(this._shortWeekdaysParse,s),a!==-1)?a:(a=qt.call(this._minWeekdaysParse,s),a!==-1?a:null)):t==="ddd"?(a=qt.call(this._shortWeekdaysParse,s),a!==-1||(a=qt.call(this._weekdaysParse,s),a!==-1)?a:(a=qt.call(this._minWeekdaysParse,s),a!==-1?a:null)):(a=qt.call(this._minWeekdaysParse,s),a!==-1||(a=qt.call(this._weekdaysParse,s),a!==-1)?a:(a=qt.call(this._shortWeekdaysParse,s),a!==-1?a:null))}function qU(e,t,n){var r,a,o;if(this._weekdaysParseExact)return zU.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=Aa([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function UU(e){if(!this.isValid())return e!=null?this:NaN;var t=Uc(this,"Day");return e!=null?(e=AU(e,this.localeData()),this.add(e-t,"d")):t}function WU(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function GU(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=OU(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function KU(e){return this._weekdaysParseExact?(wt(this,"_weekdaysRegex")||ig.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(wt(this,"_weekdaysRegex")||(this._weekdaysRegex=PU),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function JU(e){return this._weekdaysParseExact?(wt(this,"_weekdaysRegex")||ig.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(wt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=VU),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ZU(e){return this._weekdaysParseExact?(wt(this,"_weekdaysRegex")||ig.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(wt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=IU),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ig(){function e(d,h){return h.length-d.length}var t=[],n=[],r=[],a=[],o,s,l,u,c;for(o=0;o<7;o++)s=Aa([2e3,1]).day(o),l=gi(this.weekdaysMin(s,"")),u=gi(this.weekdaysShort(s,"")),c=gi(this.weekdays(s,"")),t.push(l),n.push(u),r.push(c),a.push(l),a.push(u),a.push(c);t.sort(e),n.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function og(){return this.hours()%12||12}function XU(){return this.hours()||24}qe("H",["HH",2],0,"hour"),qe("h",["hh",2],0,og),qe("k",["kk",2],0,XU),qe("hmm",0,0,function(){return""+og.apply(this)+ja(this.minutes(),2)}),qe("hmmss",0,0,function(){return""+og.apply(this)+ja(this.minutes(),2)+ja(this.seconds(),2)}),qe("Hmm",0,0,function(){return""+this.hours()+ja(this.minutes(),2)}),qe("Hmmss",0,0,function(){return""+this.hours()+ja(this.minutes(),2)+ja(this.seconds(),2)});function B2(e,t){qe(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}B2("a",!0),B2("A",!1);function P2(e,t){return t._meridiemParse}Ae("a",P2),Ae("A",P2),Ae("H",At,tg),Ae("h",At,ql),Ae("k",At,ql),Ae("HH",At,Qn),Ae("hh",At,Qn),Ae("kk",At,Qn),Ae("hmm",S2),Ae("hmmss",L2),Ae("Hmm",S2),Ae("Hmmss",L2),Lt(["H","HH"],Xt),Lt(["k","kk"],function(e,t,n){var r=ft(e);t[Xt]=r===24?0:r}),Lt(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Lt(["h","hh"],function(e,t,n){t[Xt]=ft(e),et(n).bigHour=!0}),Lt("hmm",function(e,t,n){var r=e.length-2;t[Xt]=ft(e.substr(0,r)),t[Ur]=ft(e.substr(r)),et(n).bigHour=!0}),Lt("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[Xt]=ft(e.substr(0,r)),t[Ur]=ft(e.substr(r,2)),t[yi]=ft(e.substr(a)),et(n).bigHour=!0}),Lt("Hmm",function(e,t,n){var r=e.length-2;t[Xt]=ft(e.substr(0,r)),t[Ur]=ft(e.substr(r))}),Lt("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[Xt]=ft(e.substr(0,r)),t[Ur]=ft(e.substr(r,2)),t[yi]=ft(e.substr(a))});function QU(e){return(e+"").toLowerCase().charAt(0)==="p"}var $U=/[ap]\.?m?\.?/i,eW=Ul("Hours",!0);function tW(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var V2={calendar:zq,longDateFormat:Gq,invalidDate:Jq,ordinal:Xq,dayOfMonthOrdinalParse:Qq,relativeTime:eU,months:_U,monthsShort:E2,week:TU,weekdays:jU,weekdaysMin:BU,weekdaysShort:j2,meridiemParse:$U},Bt={},Kc={},Jc;function nW(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function I2(e){return e&&e.toLowerCase().replace("_","-")}function rW(e){for(var t=0,n,r,a,o;t<e.length;){for(o=I2(e[t]).split("-"),n=o.length,r=I2(e[t+1]),r=r?r.split("-"):null;n>0;){if(a=qh(o.slice(0,n).join("-")),a)return a;if(r&&r.length>=n&&nW(o,r)>=n-1)break;n--}t++}return Jc}function aW(e){return!!(e&&e.match("^[^/\\\\]*$"))}function qh(e){var t=null,n;if(Bt[e]===void 0&&typeof module<"u"&&module&&module.exports&&aW(e))try{t=Jc._abbr,n=require,n("./locale/"+e),wo(t)}catch{Bt[e]=null}return Bt[e]}function wo(e,t){var n;return e&&(Bn(t)?n=wi(e):n=sg(e,t),n?Jc=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Jc._abbr}function sg(e,t){if(t!==null){var n,r=V2;if(t.abbr=e,Bt[e]!=null)b2("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Bt[e]._config;else if(t.parentLocale!=null)if(Bt[t.parentLocale]!=null)r=Bt[t.parentLocale]._config;else if(n=qh(t.parentLocale),n!=null)r=n._config;else return Kc[t.parentLocale]||(Kc[t.parentLocale]=[]),Kc[t.parentLocale].push({name:e,config:t}),null;return Bt[e]=new K_(G_(r,t)),Kc[e]&&Kc[e].forEach(function(a){sg(a.name,a.config)}),wo(e),Bt[e]}else return delete Bt[e],null}function iW(e,t){if(t!=null){var n,r,a=V2;Bt[e]!=null&&Bt[e].parentLocale!=null?Bt[e].set(G_(Bt[e]._config,t)):(r=qh(e),r!=null&&(a=r._config),t=G_(a,t),r==null&&(t.abbr=e),n=new K_(t),n.parentLocale=Bt[e],Bt[e]=n),wo(e)}else Bt[e]!=null&&(Bt[e].parentLocale!=null?(Bt[e]=Bt[e].parentLocale,e===wo()&&wo(e)):Bt[e]!=null&&delete Bt[e]);return Bt[e]}function wi(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Jc;if(!zr(e)){if(t=qh(e),t)return t;e=[e]}return rW(e)}function oW(){return J_(Bt)}function lg(e){var t,n=e._a;return n&&et(e).overflow===-2&&(t=n[vi]<0||n[vi]>11?vi:n[Ba]<1||n[Ba]>rg(n[gn],n[vi])?Ba:n[Xt]<0||n[Xt]>24||n[Xt]===24&&(n[Ur]!==0||n[yi]!==0||n[Ns]!==0)?Xt:n[Ur]<0||n[Ur]>59?Ur:n[yi]<0||n[yi]>59?yi:n[Ns]<0||n[Ns]>999?Ns:-1,et(e)._overflowDayOfYear&&(t<gn||t>Ba)&&(t=Ba),et(e)._overflowWeeks&&t===-1&&(t=cU),et(e)._overflowWeekday&&t===-1&&(t=dU),et(e).overflow=t),e}var sW=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,lW=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,uW=/Z|[+-]\d\d(?::?\d\d)?/,Uh=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ug=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],cW=/^\/?Date\((-?\d+)/i,dW=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,fW={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function H2(e){var t,n,r=e._i,a=sW.exec(r)||lW.exec(r),o,s,l,u,c=Uh.length,d=ug.length;if(a){for(et(e).iso=!0,t=0,n=c;t<n;t++)if(Uh[t][1].exec(a[1])){s=Uh[t][0],o=Uh[t][2]!==!1;break}if(s==null){e._isValid=!1;return}if(a[3]){for(t=0,n=d;t<n;t++)if(ug[t][1].exec(a[3])){l=(a[2]||" ")+ug[t][0];break}if(l==null){e._isValid=!1;return}}if(!o&&l!=null){e._isValid=!1;return}if(a[4])if(uW.exec(a[4]))u="Z";else{e._isValid=!1;return}e._f=s+(l||"")+(u||""),dg(e)}else e._isValid=!1}function hW(e,t,n,r,a,o){var s=[mW(e),E2.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(a,10)];return o&&s.push(parseInt(o,10)),s}function mW(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function pW(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function _W(e,t,n){if(e){var r=j2.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(r!==a)return et(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function gW(e,t,n){if(e)return fW[e];if(t)return 0;var r=parseInt(n,10),a=r%100,o=(r-a)/100;return o*60+a}function F2(e){var t=dW.exec(pW(e._i)),n;if(t){if(n=hW(t[4],t[3],t[2],t[5],t[6],t[7]),!_W(t[1],n,e))return;e._a=n,e._tzm=gW(t[8],t[9],t[10]),e._d=Wc.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),et(e).rfc2822=!0}else e._isValid=!1}function vW(e){var t=cW.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(H2(e),e._isValid===!1)delete e._isValid;else return;if(F2(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:Se.createFromInputFallback(e)}Se.createFromInputFallback=vr("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Wl(e,t,n){return e??t??n}function yW(e){var t=new Date(Se.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function cg(e){var t,n,r=[],a,o,s;if(!e._d){for(a=yW(e),e._w&&e._a[Ba]==null&&e._a[vi]==null&&bW(e),e._dayOfYear!=null&&(s=Wl(e._a[gn],a[gn]),(e._dayOfYear>qc(s)||e._dayOfYear===0)&&(et(e)._overflowDayOfYear=!0),n=Wc(s,0,e._dayOfYear),e._a[vi]=n.getUTCMonth(),e._a[Ba]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Xt]===24&&e._a[Ur]===0&&e._a[yi]===0&&e._a[Ns]===0&&(e._nextDay=!0,e._a[Xt]=0),e._d=(e._useUTC?Wc:LU).apply(null,r),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Xt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(et(e).weekdayMismatch=!0)}}function bW(e){var t,n,r,a,o,s,l,u,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,s=4,n=Wl(t.GG,e._a[gn],Gc(Ot(),1,4).year),r=Wl(t.W,1),a=Wl(t.E,1),(a<1||a>7)&&(u=!0)):(o=e._locale._week.dow,s=e._locale._week.doy,c=Gc(Ot(),o,s),n=Wl(t.gg,e._a[gn],c.year),r=Wl(t.w,c.week),t.d!=null?(a=t.d,(a<0||a>6)&&(u=!0)):t.e!=null?(a=t.e+o,(t.e<0||t.e>6)&&(u=!0)):a=o),r<1||r>bi(n,o,s)?et(e)._overflowWeeks=!0:u!=null?et(e)._overflowWeekday=!0:(l=O2(n,r,a,o,s),e._a[gn]=l.year,e._dayOfYear=l.dayOfYear)}Se.ISO_8601=function(){},Se.RFC_2822=function(){};function dg(e){if(e._f===Se.ISO_8601){H2(e);return}if(e._f===Se.RFC_2822){F2(e);return}e._a=[],et(e).empty=!0;var t=""+e._i,n,r,a,o,s,l=t.length,u=0,c,d;for(a=w2(e._f,e._locale).match(Z_)||[],d=a.length,n=0;n<d;n++)o=a[n],r=(t.match(sU(o,e))||[])[0],r&&(s=t.substr(0,t.indexOf(r)),s.length>0&&et(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),u+=r.length),Rl[o]?(r?et(e).empty=!1:et(e).unusedTokens.push(o),uU(o,r,e)):e._strict&&!r&&et(e).unusedTokens.push(o);et(e).charsLeftOver=l-u,t.length>0&&et(e).unusedInput.push(t),e._a[Xt]<=12&&et(e).bigHour===!0&&e._a[Xt]>0&&(et(e).bigHour=void 0),et(e).parsedDateParts=e._a.slice(0),et(e).meridiem=e._meridiem,e._a[Xt]=wW(e._locale,e._a[Xt],e._meridiem),c=et(e).era,c!==null&&(e._a[gn]=e._locale.erasConvertYear(c,e._a[gn])),cg(e),lg(e)}function wW(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function MW(e){var t,n,r,a,o,s,l=!1,u=e._f.length;if(u===0){et(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<u;a++)o=0,s=!1,t=W_({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],dg(t),q_(t)&&(s=!0),o+=et(t).charsLeftOver,o+=et(t).unusedTokens.length*10,et(t).score=o,l?o<r&&(r=o,n=t):(r==null||o<r||s)&&(r=o,n=t,s&&(l=!0));bo(e,n||t)}function kW(e){if(!e._d){var t=Q_(e._i),n=t.day===void 0?t.date:t.day;e._a=_2([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),cg(e)}}function xW(e){var t=new Fc(lg(R2(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function R2(e){var t=e._i,n=e._f;return e._locale=e._locale||wi(e._l),t===null||n===void 0&&t===""?Ah({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),qr(t)?new Fc(lg(t)):(Hc(t)?e._d=t:zr(n)?MW(e):n?dg(e):SW(e),q_(e)||(e._d=null),e))}function SW(e){var t=e._i;Bn(t)?e._d=new Date(Se.now()):Hc(t)?e._d=new Date(t.valueOf()):typeof t=="string"?vW(e):zr(t)?(e._a=_2(t.slice(0),function(n){return parseInt(n,10)}),cg(e)):Ds(t)?kW(e):_i(t)?e._d=new Date(t):Se.createFromInputFallback(e)}function z2(e,t,n,r,a){var o={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Ds(e)&&R_(e)||zr(e)&&e.length===0)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=a,o._l=n,o._i=e,o._f=t,o._strict=r,xW(o)}function Ot(e,t,n,r){return z2(e,t,n,r,!1)}var LW=vr("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ot.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Ah()}),YW=vr("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ot.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Ah()});function q2(e,t){var n,r;if(t.length===1&&zr(t[0])&&(t=t[0]),!t.length)return Ot();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function TW(){var e=[].slice.call(arguments,0);return q2("isBefore",e)}function EW(){var e=[].slice.call(arguments,0);return q2("isAfter",e)}var DW=function(){return Date.now?Date.now():+new Date},Zc=["year","quarter","month","week","day","hour","minute","second","millisecond"];function NW(e){var t,n=!1,r,a=Zc.length;for(t in e)if(wt(e,t)&&!(qt.call(Zc,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<a;++r)if(e[Zc[r]]){if(n)return!1;parseFloat(e[Zc[r]])!==ft(e[Zc[r]])&&(n=!0)}return!0}function CW(){return this._isValid}function AW(){return Wr(NaN)}function Wh(e){var t=Q_(e),n=t.year||0,r=t.quarter||0,a=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,u=t.minute||0,c=t.second||0,d=t.millisecond||0;this._isValid=NW(t),this._milliseconds=+d+c*1e3+u*6e4+l*1e3*60*60,this._days=+s+o*7,this._months=+a+r*3+n*12,this._data={},this._locale=wi(),this._bubble()}function Gh(e){return e instanceof Wh}function fg(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function OW(e,t,n){var r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0,s;for(s=0;s<r;s++)ft(e[s])!==ft(t[s])&&o++;return o+a}function U2(e,t){qe(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+ja(~~(n/60),2)+t+ja(~~n%60,2)})}U2("Z",":"),U2("ZZ",""),Ae("Z",Hh),Ae("ZZ",Hh),Lt(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=hg(Hh,e)});var jW=/([\+\-]|\d\d)/gi;function hg(e,t){var n=(t||"").match(e),r,a,o;return n===null?null:(r=n[n.length-1]||[],a=(r+"").match(jW)||["-",0,0],o=+(a[1]*60)+ft(a[2]),o===0?0:a[0]==="+"?o:-o)}function mg(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(qr(e)||Hc(e)?e.valueOf():Ot(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),Se.updateOffset(n,!1),n):Ot(e).local()}function pg(e){return-Math.round(e._d.getTimezoneOffset())}Se.updateOffset=function(){};function BW(e,t,n){var r=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=hg(Hh,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(a=pg(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),r!==e&&(!t||this._changeInProgress?J2(this,Wr(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Se.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:pg(this)}function PW(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function VW(e){return this.utcOffset(0,e)}function IW(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(pg(this),"m")),this}function HW(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=hg(iU,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function FW(e){return this.isValid()?(e=e?Ot(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function RW(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function zW(){if(!Bn(this._isDSTShifted))return this._isDSTShifted;var e={},t;return W_(e,this),e=R2(e),e._a?(t=e._isUTC?Aa(e._a):Ot(e._a),this._isDSTShifted=this.isValid()&&OW(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function qW(){return this.isValid()?!this._isUTC:!1}function UW(){return this.isValid()?this._isUTC:!1}function W2(){return this.isValid()?this._isUTC&&this._offset===0:!1}var WW=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,GW=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Wr(e,t){var n=e,r=null,a,o,s;return Gh(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:_i(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=WW.exec(e))?(a=r[1]==="-"?-1:1,n={y:0,d:ft(r[Ba])*a,h:ft(r[Xt])*a,m:ft(r[Ur])*a,s:ft(r[yi])*a,ms:ft(fg(r[Ns]*1e3))*a}):(r=GW.exec(e))?(a=r[1]==="-"?-1:1,n={y:Cs(r[2],a),M:Cs(r[3],a),w:Cs(r[4],a),d:Cs(r[5],a),h:Cs(r[6],a),m:Cs(r[7],a),s:Cs(r[8],a)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=KW(Ot(n.from),Ot(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),o=new Wh(n),Gh(e)&&wt(e,"_locale")&&(o._locale=e._locale),Gh(e)&&wt(e,"_isValid")&&(o._isValid=e._isValid),o}Wr.fn=Wh.prototype,Wr.invalid=AW;function Cs(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function G2(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function KW(e,t){var n;return e.isValid()&&t.isValid()?(t=mg(t,e),e.isBefore(t)?n=G2(e,t):(n=G2(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function K2(e,t){return function(n,r){var a,o;return r!==null&&!isNaN(+r)&&(b2(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),a=Wr(n,r),J2(this,a,e),this}}function J2(e,t,n,r){var a=t._milliseconds,o=fg(t._days),s=fg(t._months);e.isValid()&&(r=r??!0,s&&N2(e,Uc(e,"Month")+s*n),o&&T2(e,"Date",Uc(e,"Date")+o*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&Se.updateOffset(e,o||s))}var JW=K2(1,"add"),ZW=K2(-1,"subtract");function Z2(e){return typeof e=="string"||e instanceof String}function XW(e){return qr(e)||Hc(e)||Z2(e)||_i(e)||$W(e)||QW(e)||e===null||e===void 0}function QW(e){var t=Ds(e)&&!R_(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,o,s=r.length;for(a=0;a<s;a+=1)o=r[a],n=n||wt(e,o);return t&&n}function $W(e){var t=zr(e),n=!1;return t&&(n=e.filter(function(r){return!_i(r)&&Z2(e)}).length===0),t&&n}function eG(e){var t=Ds(e)&&!R_(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,o;for(a=0;a<r.length;a+=1)o=r[a],n=n||wt(e,o);return t&&n}function tG(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function nG(e,t){arguments.length===1&&(arguments[0]?XW(arguments[0])?(e=arguments[0],t=void 0):eG(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Ot(),r=mg(n,this).startOf("day"),a=Se.calendarFormat(this,r)||"sameElse",o=t&&(Oa(t[a])?t[a].call(this,n):t[a]);return this.format(o||this.localeData().calendar(a,this,Ot(n)))}function rG(){return new Fc(this)}function aG(e,t){var n=qr(e)?e:Ot(e);return this.isValid()&&n.isValid()?(t=yr(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function iG(e,t){var n=qr(e)?e:Ot(e);return this.isValid()&&n.isValid()?(t=yr(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function oG(e,t,n,r){var a=qr(e)?e:Ot(e),o=qr(t)?t:Ot(t);return this.isValid()&&a.isValid()&&o.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(a,n):!this.isBefore(a,n))&&(r[1]===")"?this.isBefore(o,n):!this.isAfter(o,n))):!1}function sG(e,t){var n=qr(e)?e:Ot(e),r;return this.isValid()&&n.isValid()?(t=yr(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function lG(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function uG(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function cG(e,t,n){var r,a,o;if(!this.isValid())return NaN;if(r=mg(e,this),!r.isValid())return NaN;switch(a=(r.utcOffset()-this.utcOffset())*6e4,t=yr(t),t){case"year":o=Kh(this,r)/12;break;case"month":o=Kh(this,r);break;case"quarter":o=Kh(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-a)/864e5;break;case"week":o=(this-r-a)/6048e5;break;default:o=this-r}return n?o:br(o)}function Kh(e,t){if(e.date()<t.date())return-Kh(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),a,o;return t-r<0?(a=e.clone().add(n-1,"months"),o=(t-r)/(r-a)):(a=e.clone().add(n+1,"months"),o=(t-r)/(a-r)),-(n+o)||0}Se.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",Se.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function dG(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function fG(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?jh(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Oa(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",jh(n,"Z")):jh(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function hG(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,a,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(n+r+a+o)}function mG(e){e||(e=this.isUtc()?Se.defaultFormatUtc:Se.defaultFormat);var t=jh(this,e);return this.localeData().postformat(t)}function pG(e,t){return this.isValid()&&(qr(e)&&e.isValid()||Ot(e).isValid())?Wr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function _G(e){return this.from(Ot(),e)}function gG(e,t){return this.isValid()&&(qr(e)&&e.isValid()||Ot(e).isValid())?Wr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function vG(e){return this.to(Ot(),e)}function X2(e){var t;return e===void 0?this._locale._abbr:(t=wi(e),t!=null&&(this._locale=t),this)}var Q2=vr("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function $2(){return this._locale}var Jh=1e3,Gl=60*Jh,Zh=60*Gl,ex=(365*400+97)*24*Zh;function Kl(e,t){return(e%t+t)%t}function tx(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-ex:new Date(e,t,n).valueOf()}function nx(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-ex:Date.UTC(e,t,n)}function yG(e){var t,n;if(e=yr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?nx:tx,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Kl(t+(this._isUTC?0:this.utcOffset()*Gl),Zh);break;case"minute":t=this._d.valueOf(),t-=Kl(t,Gl);break;case"second":t=this._d.valueOf(),t-=Kl(t,Jh);break}return this._d.setTime(t),Se.updateOffset(this,!0),this}function bG(e){var t,n;if(e=yr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?nx:tx,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Zh-Kl(t+(this._isUTC?0:this.utcOffset()*Gl),Zh)-1;break;case"minute":t=this._d.valueOf(),t+=Gl-Kl(t,Gl)-1;break;case"second":t=this._d.valueOf(),t+=Jh-Kl(t,Jh)-1;break}return this._d.setTime(t),Se.updateOffset(this,!0),this}function wG(){return this._d.valueOf()-(this._offset||0)*6e4}function MG(){return Math.floor(this.valueOf()/1e3)}function kG(){return new Date(this.valueOf())}function xG(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function SG(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function LG(){return this.isValid()?this.toISOString():null}function YG(){return q_(this)}function TG(){return bo({},et(this))}function EG(){return et(this).overflow}function DG(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}qe("N",0,0,"eraAbbr"),qe("NN",0,0,"eraAbbr"),qe("NNN",0,0,"eraAbbr"),qe("NNNN",0,0,"eraName"),qe("NNNNN",0,0,"eraNarrow"),qe("y",["y",1],"yo","eraYear"),qe("y",["yy",2],0,"eraYear"),qe("y",["yyy",3],0,"eraYear"),qe("y",["yyyy",4],0,"eraYear"),Ae("N",_g),Ae("NN",_g),Ae("NNN",_g),Ae("NNNN",FG),Ae("NNNNN",RG),Lt(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?et(n).era=a:et(n).invalidEra=e}),Ae("y",zl),Ae("yy",zl),Ae("yyy",zl),Ae("yyyy",zl),Ae("yo",zG),Lt(["y","yy","yyy","yyyy"],gn),Lt(["yo"],function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[gn]=n._locale.eraYearOrdinalParse(e,a):t[gn]=parseInt(e,10)});function NG(e,t){var n,r,a,o=this._eras||wi("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":a=Se(o[n].since).startOf("day"),o[n].since=a.valueOf();break}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":a=Se(o[n].until).startOf("day").valueOf(),o[n].until=a.valueOf();break}}return o}function CG(e,t,n){var r,a,o=this.eras(),s,l,u;for(e=e.toUpperCase(),r=0,a=o.length;r<a;++r)if(s=o[r].name.toUpperCase(),l=o[r].abbr.toUpperCase(),u=o[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return o[r];break;case"NNNN":if(s===e)return o[r];break;case"NNNNN":if(u===e)return o[r];break}else if([s,l,u].indexOf(e)>=0)return o[r]}function AG(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Se(e.since).year():Se(e.since).year()+(t-e.offset)*n}function OG(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function jG(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function BG(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function PG(){var e,t,n,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-Se(a[e].since).year())*n+a[e].offset;return this.year()}function VG(e){return wt(this,"_erasNameRegex")||gg.call(this),e?this._erasNameRegex:this._erasRegex}function IG(e){return wt(this,"_erasAbbrRegex")||gg.call(this),e?this._erasAbbrRegex:this._erasRegex}function HG(e){return wt(this,"_erasNarrowRegex")||gg.call(this),e?this._erasNarrowRegex:this._erasRegex}function _g(e,t){return t.erasAbbrRegex(e)}function FG(e,t){return t.erasNameRegex(e)}function RG(e,t){return t.erasNarrowRegex(e)}function zG(e,t){return t._eraYearOrdinalRegex||zl}function gg(){var e=[],t=[],n=[],r=[],a,o,s,l,u,c=this.eras();for(a=0,o=c.length;a<o;++a)s=gi(c[a].name),l=gi(c[a].abbr),u=gi(c[a].narrow),t.push(s),e.push(l),n.push(u),r.push(s),r.push(l),r.push(u);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}qe(0,["gg",2],0,function(){return this.weekYear()%100}),qe(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Xh(e,t){qe(0,[e,e.length],0,t)}Xh("gggg","weekYear"),Xh("ggggg","weekYear"),Xh("GGGG","isoWeekYear"),Xh("GGGGG","isoWeekYear"),Ae("G",Ih),Ae("g",Ih),Ae("GG",At,Qn),Ae("gg",At,Qn),Ae("GGGG",eg,$_),Ae("gggg",eg,$_),Ae("GGGGG",Vh,Bh),Ae("ggggg",Vh,Bh),zc(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=ft(e)}),zc(["gg","GG"],function(e,t,n,r){t[r]=Se.parseTwoDigitYear(e)});function qG(e){return rx.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function UG(e){return rx.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function WG(){return bi(this.year(),1,4)}function GG(){return bi(this.isoWeekYear(),1,4)}function KG(){var e=this.localeData()._week;return bi(this.year(),e.dow,e.doy)}function JG(){var e=this.localeData()._week;return bi(this.weekYear(),e.dow,e.doy)}function rx(e,t,n,r,a){var o;return e==null?Gc(this,r,a).year:(o=bi(e,r,a),t>o&&(t=o),ZG.call(this,e,t,n,r,a))}function ZG(e,t,n,r,a){var o=O2(e,t,n,r,a),s=Wc(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}qe("Q",0,"Qo","quarter"),Ae("Q",k2),Lt("Q",function(e,t){t[vi]=(ft(e)-1)*3});function XG(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}qe("D",["DD",2],"Do","date"),Ae("D",At,ql),Ae("DD",At,Qn),Ae("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Lt(["D","DD"],Ba),Lt("Do",function(e,t){t[Ba]=ft(e.match(At)[0])});var ax=Ul("Date",!0);qe("DDD",["DDDD",3],"DDDo","dayOfYear"),Ae("DDD",Ph),Ae("DDDD",x2),Lt(["DDD","DDDD"],function(e,t,n){n._dayOfYear=ft(e)});function QG(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}qe("m",["mm",2],0,"minute"),Ae("m",At,tg),Ae("mm",At,Qn),Lt(["m","mm"],Ur);var $G=Ul("Minutes",!1);qe("s",["ss",2],0,"second"),Ae("s",At,tg),Ae("ss",At,Qn),Lt(["s","ss"],yi);var eK=Ul("Seconds",!1);qe("S",0,0,function(){return~~(this.millisecond()/100)}),qe(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),qe(0,["SSS",3],0,"millisecond"),qe(0,["SSSS",4],0,function(){return this.millisecond()*10}),qe(0,["SSSSS",5],0,function(){return this.millisecond()*100}),qe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),qe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),qe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),qe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ae("S",Ph,k2),Ae("SS",Ph,Qn),Ae("SSS",Ph,x2);var Mo,ix;for(Mo="SSSS";Mo.length<=9;Mo+="S")Ae(Mo,zl);function tK(e,t){t[Ns]=ft(("0."+e)*1e3)}for(Mo="S";Mo.length<=9;Mo+="S")Lt(Mo,tK);ix=Ul("Milliseconds",!1),qe("z",0,0,"zoneAbbr"),qe("zz",0,0,"zoneName");function nK(){return this._isUTC?"UTC":""}function rK(){return this._isUTC?"Coordinated Universal Time":""}var Ye=Fc.prototype;Ye.add=JW,Ye.calendar=nG,Ye.clone=rG,Ye.diff=cG,Ye.endOf=bG,Ye.format=mG,Ye.from=pG,Ye.fromNow=_G,Ye.to=gG,Ye.toNow=vG,Ye.get=hU,Ye.invalidAt=EG,Ye.isAfter=aG,Ye.isBefore=iG,Ye.isBetween=oG,Ye.isSame=sG,Ye.isSameOrAfter=lG,Ye.isSameOrBefore=uG,Ye.isValid=YG,Ye.lang=Q2,Ye.locale=X2,Ye.localeData=$2,Ye.max=YW,Ye.min=LW,Ye.parsingFlags=TG,Ye.set=mU,Ye.startOf=yG,Ye.subtract=ZW,Ye.toArray=xG,Ye.toObject=SG,Ye.toDate=kG,Ye.toISOString=fG,Ye.inspect=hG,typeof Symbol<"u"&&Symbol.for!=null&&(Ye[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ye.toJSON=LG,Ye.toString=dG,Ye.unix=MG,Ye.valueOf=wG,Ye.creationData=DG,Ye.eraName=OG,Ye.eraNarrow=jG,Ye.eraAbbr=BG,Ye.eraYear=PG,Ye.year=Y2,Ye.isLeapYear=fU,Ye.weekYear=qG,Ye.isoWeekYear=UG,Ye.quarter=Ye.quarters=XG,Ye.month=C2,Ye.daysInMonth=kU,Ye.week=Ye.weeks=NU,Ye.isoWeek=Ye.isoWeeks=CU,Ye.weeksInYear=KG,Ye.weeksInWeekYear=JG,Ye.isoWeeksInYear=WG,Ye.isoWeeksInISOWeekYear=GG,Ye.date=ax,Ye.day=Ye.days=UU,Ye.weekday=WU,Ye.isoWeekday=GU,Ye.dayOfYear=QG,Ye.hour=Ye.hours=eW,Ye.minute=Ye.minutes=$G,Ye.second=Ye.seconds=eK,Ye.millisecond=Ye.milliseconds=ix,Ye.utcOffset=BW,Ye.utc=VW,Ye.local=IW,Ye.parseZone=HW,Ye.hasAlignedHourOffset=FW,Ye.isDST=RW,Ye.isLocal=qW,Ye.isUtcOffset=UW,Ye.isUtc=W2,Ye.isUTC=W2,Ye.zoneAbbr=nK,Ye.zoneName=rK,Ye.dates=vr("dates accessor is deprecated. Use date instead.",ax),Ye.months=vr("months accessor is deprecated. Use month instead",C2),Ye.years=vr("years accessor is deprecated. Use year instead",Y2),Ye.zone=vr("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",PW),Ye.isDSTShifted=vr("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",zW);function aK(e){return Ot(e*1e3)}function iK(){return Ot.apply(null,arguments).parseZone()}function ox(e){return e}var Mt=K_.prototype;Mt.calendar=qq,Mt.longDateFormat=Kq,Mt.invalidDate=Zq,Mt.ordinal=$q,Mt.preparse=ox,Mt.postformat=ox,Mt.relativeTime=tU,Mt.pastFuture=nU,Mt.set=Rq,Mt.eras=NG,Mt.erasParse=CG,Mt.erasConvertYear=AG,Mt.erasAbbrRegex=IG,Mt.erasNameRegex=VG,Mt.erasNarrowRegex=HG,Mt.months=yU,Mt.monthsShort=bU,Mt.monthsParse=MU,Mt.monthsRegex=SU,Mt.monthsShortRegex=xU,Mt.week=YU,Mt.firstDayOfYear=DU,Mt.firstDayOfWeek=EU,Mt.weekdays=HU,Mt.weekdaysMin=RU,Mt.weekdaysShort=FU,Mt.weekdaysParse=qU,Mt.weekdaysRegex=KU,Mt.weekdaysShortRegex=JU,Mt.weekdaysMinRegex=ZU,Mt.isPM=QU,Mt.meridiem=tW;function Qh(e,t,n,r){var a=wi(),o=Aa().set(r,t);return a[n](o,e)}function sx(e,t,n){if(_i(e)&&(t=e,e=void 0),e=e||"",t!=null)return Qh(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=Qh(e,r,n,"month");return a}function vg(e,t,n,r){typeof e=="boolean"?(_i(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,_i(t)&&(n=t,t=void 0),t=t||"");var a=wi(),o=e?a._week.dow:0,s,l=[];if(n!=null)return Qh(t,(n+o)%7,r,"day");for(s=0;s<7;s++)l[s]=Qh(t,(s+o)%7,r,"day");return l}function oK(e,t){return sx(e,t,"months")}function sK(e,t){return sx(e,t,"monthsShort")}function lK(e,t,n){return vg(e,t,n,"weekdays")}function uK(e,t,n){return vg(e,t,n,"weekdaysShort")}function cK(e,t,n){return vg(e,t,n,"weekdaysMin")}wo("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=ft(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),Se.lang=vr("moment.lang is deprecated. Use moment.locale instead.",wo),Se.langData=vr("moment.langData is deprecated. Use moment.localeData instead.",wi);var Mi=Math.abs;function dK(){var e=this._data;return this._milliseconds=Mi(this._milliseconds),this._days=Mi(this._days),this._months=Mi(this._months),e.milliseconds=Mi(e.milliseconds),e.seconds=Mi(e.seconds),e.minutes=Mi(e.minutes),e.hours=Mi(e.hours),e.months=Mi(e.months),e.years=Mi(e.years),this}function lx(e,t,n,r){var a=Wr(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function fK(e,t){return lx(this,e,t,1)}function hK(e,t){return lx(this,e,t,-1)}function ux(e){return e<0?Math.floor(e):Math.ceil(e)}function mK(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,a,o,s,l,u;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=ux(yg(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,a=br(e/1e3),r.seconds=a%60,o=br(a/60),r.minutes=o%60,s=br(o/60),r.hours=s%24,t+=br(s/24),u=br(cx(t)),n+=u,t-=ux(yg(u)),l=br(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function cx(e){return e*4800/146097}function yg(e){return e*146097/4800}function pK(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=yr(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+cx(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(yg(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function ki(e){return function(){return this.as(e)}}var dx=ki("ms"),_K=ki("s"),gK=ki("m"),vK=ki("h"),yK=ki("d"),bK=ki("w"),wK=ki("M"),MK=ki("Q"),kK=ki("y"),xK=dx;function SK(){return Wr(this)}function LK(e){return e=yr(e),this.isValid()?this[e+"s"]():NaN}function As(e){return function(){return this.isValid()?this._data[e]:NaN}}var YK=As("milliseconds"),TK=As("seconds"),EK=As("minutes"),DK=As("hours"),NK=As("days"),CK=As("months"),AK=As("years");function OK(){return br(this.days()/7)}var xi=Math.round,Jl={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function jK(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function BK(e,t,n,r){var a=Wr(e).abs(),o=xi(a.as("s")),s=xi(a.as("m")),l=xi(a.as("h")),u=xi(a.as("d")),c=xi(a.as("M")),d=xi(a.as("w")),h=xi(a.as("y")),f=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||s<=1&&["m"]||s<n.m&&["mm",s]||l<=1&&["h"]||l<n.h&&["hh",l]||u<=1&&["d"]||u<n.d&&["dd",u];return n.w!=null&&(f=f||d<=1&&["w"]||d<n.w&&["ww",d]),f=f||c<=1&&["M"]||c<n.M&&["MM",c]||h<=1&&["y"]||["yy",h],f[2]=t,f[3]=+e>0,f[4]=r,jK.apply(null,f)}function PK(e){return e===void 0?xi:typeof e=="function"?(xi=e,!0):!1}function VK(e,t){return Jl[e]===void 0?!1:t===void 0?Jl[e]:(Jl[e]=t,e==="s"&&(Jl.ss=t-1),!0)}function IK(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Jl,a,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Jl,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),a=this.localeData(),o=BK(this,!n,r,a),n&&(o=a.pastFuture(+this,o)),a.postformat(o)}var bg=Math.abs;function Zl(e){return(e>0)-(e<0)||+e}function $h(){if(!this.isValid())return this.localeData().invalidDate();var e=bg(this._milliseconds)/1e3,t=bg(this._days),n=bg(this._months),r,a,o,s,l=this.asSeconds(),u,c,d,h;return l?(r=br(e/60),a=br(r/60),e%=60,r%=60,o=br(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=l<0?"-":"",c=Zl(this._months)!==Zl(l)?"-":"",d=Zl(this._days)!==Zl(l)?"-":"",h=Zl(this._milliseconds)!==Zl(l)?"-":"",u+"P"+(o?c+o+"Y":"")+(n?c+n+"M":"")+(t?d+t+"D":"")+(a||r||e?"T":"")+(a?h+a+"H":"")+(r?h+r+"M":"")+(e?h+s+"S":"")):"P0D"}var vt=Wh.prototype;vt.isValid=CW,vt.abs=dK,vt.add=fK,vt.subtract=hK,vt.as=pK,vt.asMilliseconds=dx,vt.asSeconds=_K,vt.asMinutes=gK,vt.asHours=vK,vt.asDays=yK,vt.asWeeks=bK,vt.asMonths=wK,vt.asQuarters=MK,vt.asYears=kK,vt.valueOf=xK,vt._bubble=mK,vt.clone=SK,vt.get=LK,vt.milliseconds=YK,vt.seconds=TK,vt.minutes=EK,vt.hours=DK,vt.days=NK,vt.weeks=OK,vt.months=CK,vt.years=AK,vt.humanize=IK,vt.toISOString=$h,vt.toString=$h,vt.toJSON=$h,vt.locale=X2,vt.localeData=$2,vt.toIsoString=vr("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",$h),vt.lang=Q2,qe("X",0,0,"unix"),qe("x",0,0,"valueOf"),Ae("x",Ih),Ae("X",oU),Lt("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),Lt("x",function(e,t,n){n._d=new Date(ft(e))});//! moment.js
90
- Se.version="2.30.1",Hq(Ot),Se.fn=Ye,Se.min=TW,Se.max=EW,Se.now=DW,Se.utc=Aa,Se.unix=aK,Se.months=oK,Se.isDate=Hc,Se.locale=wo,Se.invalid=Ah,Se.duration=Wr,Se.isMoment=qr,Se.weekdays=lK,Se.parseZone=iK,Se.localeData=wi,Se.isDuration=Gh,Se.monthsShort=sK,Se.weekdaysMin=cK,Se.defineLocale=sg,Se.updateLocale=iW,Se.locales=oW,Se.weekdaysShort=uK,Se.normalizeUnits=yr,Se.relativeTimeRounding=PK,Se.relativeTimeThreshold=VK,Se.calendarFormat=tG,Se.prototype=Ye,Se.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const HK={class:"col"},FK={__name:"DatePickerInput",props:{from:Number,to:Number},emits:["selectTime"],setup(e,{emit:t}){const n=e,r=t,a=i.ref([]);i.watch(a,u=>{r("selectTime",[Se(u[0]).valueOf(),Se(u[1]).valueOf()])}),i.watch(()=>n.from,u=>{u?a.value[0]=l(u):s()}),i.watch(()=>n.to,u=>{u&&(a.value[1]=l(u))}),i.onMounted(()=>{if(n.from&&n.to){const u=l(n.from),c=l(n.to);a.value=[u,c]}else s()});function o(){const u=Se().valueOf();return[{label:"Last Hour",atClick:()=>[Se().subtract(1,"hours").valueOf(),u]},{label:"Last Three Hours",atClick:()=>[Se().subtract(3,"hours").valueOf(),u]},{label:"Last Six Hours",atClick:()=>[Se().subtract(6,"hours").valueOf(),u]},{label:"Last Twelve Hours",atClick:()=>[Se().subtract(12,"hours").valueOf(),u]},{label:"Last Day",atClick:()=>[Se().subtract(1,"days").valueOf(),u]},{label:"Last Three Days",atClick:()=>[Se().subtract(3,"days").valueOf(),u]},{label:"Last Week",atClick:()=>[Se().subtract(7,"days").valueOf(),u]}]}function s(){a.value=[l(Se().subtract(1,"hours")),l(Se())]}function l(u){return Se(u).format("YYYY-MM-DD HH:mm:ss")}return(u,c)=>(i.openBlock(),i.createElementBlock("div",HK,[i.createVNode(i.unref(Ch),{shortcuts:o,modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=d=>a.value=d)},null,8,["modelValue"])]))}},RK={key:0},zK={key:1},qK={key:2},UK=i.defineComponent({__name:"TriState",props:["state"],emits:["newState"],setup(e,{emit:t}){const n=e,r=t,a=i.ref(n.state);function o(){switch(a.value){case"unchecked":a.value="checked";break;case"checked":a.value="ignored";break;default:a.value="unchecked"}r("newState",a.value)}return(s,l)=>(i.openBlock(),i.createElementBlock("div",{onClick:l[0]||(l[0]=u=>o())},[a.value==="unchecked"?(i.openBlock(),i.createElementBlock("div",RK,[i.createVNode(i.unref(qf))])):i.createCommentVNode("",!0),a.value==="checked"?(i.openBlock(),i.createElementBlock("div",zK,[i.createVNode(i.unref(qf),{checked:!0})])):i.createCommentVNode("",!0),a.value==="ignored"?(i.openBlock(),i.createElementBlock("div",qK,[i.createVNode(i.unref(qf),{indeterminate:!0})])):i.createCommentVNode("",!0)]))}}),WK={class:"text-sm font-light"},GK={class:"flex justify-between pt-3 pb-1 relative"},KK={class:"font-light"},JK={class:"flex"},ZK={class:"flex justify-between py-1"},XK={class:"flex items-center min-w-0"},QK={class:"px-2 truncate"},$K=i.defineComponent({__name:"Leaf",props:{parent:{type:Object,default:{}},children:{type:Array,default:[]},clear:Number,facetOptions:Object,tooltip:{type:Boolean,default:!1}},emits:["newState"],setup(e,{emit:t}){const n=e,r=t,a=i.ref(n.parent.show),o=i.ref(!1);function s(){return a.value<n.children.length?"text-sky-600 cursor-pointer":"text-gray-400 cursor-not-allowed"}function l(){return a.value===0||n.children.length===0?"text-gray-400 cursor-not-allowed":"text-sky-600 cursor-pointer"}function u(){a.value<n.children.length&&(a.value+=5)}function c(){a.value>0&&(a.value-=5)}function d(h,f,m){r("newState",h,f,m)}return(h,f)=>(i.openBlock(),i.createElementBlock("div",WK,[i.createElementVNode("div",GK,[i.createElementVNode("div",{class:"text-base font-normal max-w-3/4 truncate",onMouseover:f[0]||(f[0]=m=>o.value=!0),onMouseout:f[1]||(f[1]=m=>o.value=!1)},[i.createTextVNode(i.toDisplayString(e.parent.title)+" ",1),i.createElementVNode("span",KK,"("+i.toDisplayString(e.children.length)+")",1)],32),i.createElementVNode("div",JK,[i.createVNode(i.unref(PN),{class:i.normalizeClass(["icon-lg",s()]),onClick:f[2]||(f[2]=m=>u())},null,8,["class"]),i.createVNode(i.unref(ON),{class:i.normalizeClass(["icon-lg",l()]),onClick:f[3]||(f[3]=m=>c())},null,8,["class"])]),n.tooltip?(i.openBlock(),i.createBlock(i.unref(mo),{key:0,tooltip:e.parent.label,showingTooltip:o.value,direction:"top",class:"left-20"},null,8,["tooltip","showingTooltip"])):i.createCommentVNode("",!0)]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.children.slice(0,a.value),m=>(i.openBlock(),i.createElementBlock("div",ZK,[i.createElementVNode("div",XK,[i.createVNode(UK,{state:m.state,onNewState:b=>d(e.parent.label,m.label,b)},null,8,["state","onNewState"]),i.createElementVNode("div",QK,i.toDisplayString(m.label?m.label:"-"),1)]),i.createElementVNode("div",null,i.toDisplayString(m.count),1)]))),256))]))}}),eJ={class:"hidden md:col md:h-full overflow-hidden"},tJ={key:0,class:"flex"},nJ={class:"h-0 flex-1 overflow-y-auto px-1"},rJ={key:0,class:"q-ml-md text-bold"},aJ={key:1,class:"flex flex-shrink-0 px-1 py-1"},iJ={class:"relative isolate inline-flex rounded-md shadow-sm"},oJ=bt(i.defineComponent({__name:"Facet",props:{tree:{type:Array,default:[]},facetOptions:{type:Object,default:{}},state:{type:Number,default:0},searchBar:{type:Boolean,default:!0},tooltip:{type:Boolean,default:!1},buttons:{type:Boolean,default:!1}},emits:["search","updateStr","reset","edit","save","download","search"],setup(e,{emit:t}){var L,g,y;const n=e,r=t,a=i.ref((L=n.facetOptions)==null?void 0:L.mustFilters),o=i.ref((g=n.facetOptions)==null?void 0:g.mustNotFilters),s=i.ref((y=n.facetOptions)==null?void 0:y.searchStr),l=i.ref(n.state),u=i.ref(!1),c=i.ref("");function d(k,w){const T=w.find(S=>S.field===k.parent);typeof T<"u"?T.terms.push(k.child):w.push({field:k.parent,terms:[k.child]})}function h(k,w){const T=w.find(S=>S.field===k.parent);if(typeof T<"u"){const S=T.terms.indexOf(k.child);if(S>-1&&(T.terms.splice(S,1),T.terms.length===0)){const D=w.findIndex(O=>O.field===k.parent);w.splice(D,1)}}}function f(k,w,T){T==="checked"?m({parent:k,child:w}):T==="ignored"?b({parent:k,child:w}):M({parent:k,child:w})}function m(k){d(k,a.value)}function b(k){h(k,a.value),d(k,o.value)}function M(k){h(k,o.value)}function x(k,w=""){u.value=k,c.value=w}return(k,w)=>(i.openBlock(),i.createElementBlock("div",eJ,[e.searchBar?(i.openBlock(),i.createElementBlock("div",tJ,[i.createVNode(i.unref(Ek),{class:"w-full",str:s.value,onSearch:w[0]||(w[0]=T=>r("search")),onUpdate:w[1]||(w[1]=T=>r("updateStr",T))},null,8,["str"])])):i.createCommentVNode("",!0),i.createElementVNode("div",nJ,[e.tree.length==0?(i.openBlock(),i.createElementBlock("div",rJ," No Facet data. Please select a search query. ")):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.tree,T=>(i.openBlock(),i.createElementBlock("div",{key:T.id,class:"primary"},[i.createVNode($K,{parent:T,children:T.children,clear:l.value,"facet-options":e.facetOptions,tooltip:e.tooltip,onNewState:f},null,8,["parent","children","clear","facet-options","tooltip"]),i.createVNode(i.unref(E0))]))),128))]),e.buttons?(i.openBlock(),i.createElementBlock("div",aJ,[i.createElementVNode("span",iJ,[i.createElementVNode("button",{type:"button",class:"action-btn std-red rounded-l-md",onClick:w[2]||(w[2]=T=>r("reset")),onMouseover:w[3]||(w[3]=T=>x(!0,"Reset Facet")),onMouseout:w[4]||(w[4]=T=>x(!1))},[i.createVNode(i.unref(gs),{class:"icon-md","aria-hidden":"true"})],32),i.createElementVNode("button",{type:"button",class:"action-btn std-blue",onClick:w[5]||(w[5]=T=>r("edit")),onMouseover:w[6]||(w[6]=T=>x(!0,"Edit Facet")),onMouseout:w[7]||(w[7]=T=>x(!1))},[i.createVNode(i.unref(nw),{class:"icon-md","aria-hidden":"true"})],32),i.createElementVNode("button",{type:"button",class:"action-btn std-blue",onClick:w[8]||(w[8]=T=>r("save")),onMouseover:w[9]||(w[9]=T=>x(!0,"Save Facet")),onMouseout:w[10]||(w[10]=T=>x(!1))},[i.createVNode(i.unref(fx),{class:"icon-md","aria-hidden":"true"})],32),i.createElementVNode("button",{type:"button",class:"action-btn std-blue rounded-r-md",onClick:w[11]||(w[11]=T=>r("search")),onMouseover:w[12]||(w[12]=T=>x(!0,"Search")),onMouseout:w[13]||(w[13]=T=>x(!1))},[i.createVNode(i.unref(Y0),{class:"icon-md","aria-hidden":"true"})],32),i.createVNode(i.unref(mo),{tooltip:c.value,showingTooltip:u.value,direction:"top",style:{transform:"translateY(-40%)"}},null,8,["tooltip","showingTooltip"])])])):i.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-404d4643"]]),sJ=[{label:"Minute",value:"minute"},{label:"Hourly",value:"hourly"},{label:"Daily",value:"daily"},{label:"Weekly",value:"weekly"},{label:"Monthly",value:"monthly"}],lJ=[{label:"Sunday",value:0},{label:"Monday",value:1},{label:"Tuesday",value:2},{label:"Wednesday",value:3},{label:"Thursday",value:4},{label:"Friday",value:5},{label:"Saturday",value:6}],uJ=Array.from({length:24},(e,t)=>({label:t.toString(),value:t})),cJ=Array.from({length:31},(e,t)=>({label:(t+1).toString(),value:t+1})),dJ=[{label:"GMT",value:"GMT"},{label:"America/New_York",value:"America/New_York"},{label:"America/Chicago",value:"America/Chicago"},{label:"America/Los_Angeles",value:"America/Los_Angeles"},{label:"America/Denver",value:"America/Denver"},{label:"America/Phoenix",value:"America/Phoenix"},{label:"Canada/Atlantic",value:"Canada/Atlantic"},{label:"Canada/Central",value:"Canada/Central"},{label:"Canada/Eastern",value:"Canada/Eastern"},{label:"Canada/Mountain",value:"Canada/Mountain"},{label:"Canada/Pacific",value:"Canada/Pacific"},{label:"Canada/Newfoundland",value:"Canada/Newfoundland"},{label:"Europe/London",value:"Europe/London"},{label:"Europe/Berlin",value:"Europe/Berlin"},{label:"Hongkong",value:"Hongkong"},{label:"Asia/Kuala_Lumpur",value:"Asia/Kuala_Lumpur"}],fJ={class:"flex gap-x-3"},hJ={__name:"Schedule",props:{schedule:Object},setup(e){const t=e,n=i.ref(t.schedule),r=i.computed(()=>n.value.interval==="minute"?Array.from({length:60},(a,o)=>{const s=o+1;return{label:s.toString(),value:s}}):n.value.interval==="hourly"||n.value.interval==="daily"?Array.from({length:12},(a,o)=>{const s=o*5;return{label:s.toString(),value:s}}):[]);return(a,o)=>(i.openBlock(),i.createBlock(i.unref(D0),{sectionName:"Schedule Details"},{default:i.withCtx(()=>[i.createVNode(i.unref(mn),{fieldName:"Interval"},{default:i.withCtx(()=>[i.createVNode(i.unref(Sa),{modelValue:n.value.interval,"onUpdate:modelValue":o[0]||(o[0]=s=>n.value.interval=s),options:i.unref(sJ)},null,8,["modelValue","options"])]),_:1}),i.createElementVNode("div",fJ,[n.value.interval==="monthly"?(i.openBlock(),i.createBlock(i.unref(mn),{key:0,fieldName:"Day",class:"w-44"},{default:i.withCtx(()=>[i.createVNode(i.unref(Sa),{modelValue:n.value.day,"onUpdate:modelValue":o[1]||(o[1]=s=>n.value.day=s),options:i.unref(cJ)},null,8,["modelValue","options"])]),_:1})):i.createCommentVNode("",!0),n.value.interval==="weekly"?(i.openBlock(),i.createBlock(i.unref(mn),{key:1,fieldName:"Weekday",class:"w-44"},{default:i.withCtx(()=>[i.createVNode(i.unref(Sa),{modelValue:n.value.weekday,"onUpdate:modelValue":o[2]||(o[2]=s=>n.value.weekday=s),options:i.unref(lJ)},null,8,["modelValue","options"])]),_:1})):i.createCommentVNode("",!0),n.value.interval!=="minute"&&n.value.interval!=="hourly"?(i.openBlock(),i.createBlock(i.unref(mn),{key:2,fieldName:"Hour",class:"w-44"},{default:i.withCtx(()=>[i.createVNode(i.unref(Sa),{modelValue:n.value.hour,"onUpdate:modelValue":o[3]||(o[3]=s=>n.value.hour=s),options:i.unref(uJ)},null,8,["modelValue","options"])]),_:1})):i.createCommentVNode("",!0),n.value.interval==="minute"||n.value.interval==="hourly"||n.value.interval==="daily"?(i.openBlock(),i.createBlock(i.unref(mn),{key:3,fieldName:"Minute",class:"w-44"},{default:i.withCtx(()=>[i.createVNode(i.unref(Sa),{modelValue:n.value.minute,"onUpdate:modelValue":o[4]||(o[4]=s=>n.value.minute=s),options:r.value},null,8,["modelValue","options"])]),_:1})):i.createCommentVNode("",!0)]),n.value.interval!=="minute"&&n.value.interval!=="hourly"?(i.openBlock(),i.createBlock(i.unref(mn),{key:0,fieldName:"Timezone"},{default:i.withCtx(()=>[i.createVNode(i.unref(Sa),{modelValue:n.value.timezone,"onUpdate:modelValue":o[5]||(o[5]=s=>n.value.timezone=s),options:i.unref(dJ)},null,8,["modelValue","options"])]),_:1})):i.createCommentVNode("",!0)]),_:1}))}};function mJ(e,t){return i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[i.createElementVNode("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z","clip-rule":"evenodd"})])}function pJ(e,t){return i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[i.createElementVNode("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"})])}const _J=e=>{const t=new Date(e),n={weekday:"long",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"};return t.toLocaleTimeString("en-us",n)};function gJ(e){return Se(e).fromNow()}const vJ={role:"list",class:"space-y-6"},yJ={class:"relative flex gap-x-4"},bJ={class:"relative flex icon-lg flex-none items-center justify-center bg-white dark:bg-black"},wJ={key:2,class:"h-1.5 w-1.5 rounded-full bg-gray-100 ring-1 ring-gray-300"},MJ={class:"flex-auto py-0.5 text-xs leading-5 text-gray-500 dark:text-gray-400"},kJ={class:"font-medium text-gray-900 dark:text-gray-200"},xJ=["datetime"],SJ={__name:"Feed",props:{data:Array},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("ul",vJ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.data,(r,a)=>(i.openBlock(),i.createElementBlock("li",yJ,[i.createElementVNode("div",{class:i.normalizeClass([a===e.data.length-1?"h-6":"-bottom-6","absolute left-0 top-0 flex w-6 justify-center"])},n[0]||(n[0]=[i.createElementVNode("div",{class:"w-px bg-gray-200"},null,-1)]),2),i.createElementVNode("div",bJ,[r.action==="resolve"?(i.openBlock(),i.createBlock(i.unref(mJ),{key:0,class:"icon-lg icon-green","aria-hidden":"true"})):r.action==="trigger"?(i.openBlock(),i.createBlock(i.unref(pJ),{key:1,class:"icon-lg icon-red","aria-hidden":"true"})):(i.openBlock(),i.createElementBlock("div",wJ))]),i.createElementVNode("p",MJ,[i.createElementVNode("span",kJ,i.toDisplayString(r.source),1),i.createTextVNode(" "+i.toDisplayString(r.action)+" the alert. ",1)]),i.createElementVNode("time",{datetime:r.timestamp,class:"flex-none py-0.5 text-xs leading-5 text-gray-500 dark:text-gray-400"},i.toDisplayString(i.unref(gJ)(r.timestamp)),9,xJ)]))),256))]))}},LJ={class:"mb-3 flex items-center justify-between relative"},YJ={class:"min-w-0 flex-1"},TJ={class:"row truncate font-medium"},EJ={class:"flex mt-0 ml-4"},DJ={__name:"CategoryCard",props:{category:{type:[Object,String],required:!0}},setup(e){return(t,n)=>(i.openBlock(),i.createBlock(i.unref(aw),null,{default:i.withCtx(()=>[i.createElementVNode("div",LJ,[i.renderSlot(t.$slots,"icon"),i.createElementVNode("div",YJ,[i.createElementVNode("h3",TJ,[i.createTextVNode(i.toDisplayString(e.category.name||e.category)+" ",1),i.renderSlot(t.$slots,"title")])]),i.createElementVNode("div",EJ,[i.renderSlot(t.$slots,"header")])]),i.renderSlot(t.$slots,"default")]),_:3}))}},NJ={},CJ={class:"bg-neutral-600 text-white pl-3 py-1 sm:flex sm:items-center sm:justify-between content-center"},AJ={class:"mt-3 flex sm:mt-0"};function OJ(e,t){return i.openBlock(),i.createElementBlock("div",CJ,[i.renderSlot(e.$slots,"title"),i.createElementVNode("div",AJ,[i.renderSlot(e.$slots,"buttons")])])}const jJ=bt(NJ,[["render",OJ]]),BJ="/data-icon/ai.svg",PJ={},VJ={src:BJ,alt:"avatar"};function IJ(e,t){return i.openBlock(),i.createElementBlock("img",VJ)}const HJ=bt(PJ,[["render",IJ]]),FJ=["src"],RJ={__name:"GithubIcon",props:{theme:{type:String,default:"light"}},setup(e){const t=i.computed(()=>theme==="dark"?"/data-icon/github-dark.svg":"/data-icon/github.svg");return(n,r)=>(i.openBlock(),i.createElementBlock("img",{src:t.value,alt:"avatar"},null,8,FJ))}},zJ="/data-icon/high-priority.svg",qJ={},UJ={src:zJ,alt:"avatar"};function WJ(e,t){return i.openBlock(),i.createElementBlock("img",UJ)}const GJ=bt(qJ,[["render",WJ]]),KJ="/data-icon/power-off.svg",JJ={},ZJ={src:KJ,alt:"avatar"};function XJ(e,t){return i.openBlock(),i.createElementBlock("img",ZJ)}const QJ=bt(JJ,[["render",XJ]]),$J="/data-icon/save.svg",eZ={},tZ={src:$J,alt:"avatar"};function nZ(e,t){return i.openBlock(),i.createElementBlock("img",tZ)}const fx=bt(eZ,[["render",nZ]]);function ko(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Xc(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function em(e){let t,n,r;e.length!==2?(t=ko,n=(l,u)=>ko(e(l),u),r=(l,u)=>e(l)-u):(t=e===ko||e===Xc?e:rZ,n=e,r=e);function a(l,u,c=0,d=l.length){if(c<d){if(t(u,u)!==0)return d;do{const h=c+d>>>1;n(l[h],u)<0?c=h+1:d=h}while(c<d)}return c}function o(l,u,c=0,d=l.length){if(c<d){if(t(u,u)!==0)return d;do{const h=c+d>>>1;n(l[h],u)<=0?c=h+1:d=h}while(c<d)}return c}function s(l,u,c=0,d=l.length){const h=a(l,u,c,d-1);return h>c&&r(l[h-1],u)>-r(l[h],u)?h-1:h}return{left:a,center:s,right:o}}function rZ(){return 0}function hx(e){return e===null?NaN:+e}function*aZ(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const tm=em(ko).right;em(hx).center;function wg(e,t){let n=0;for(let r of e)r!=null&&(r=+r)>=r&&++n;return n}function iZ(e){return e.length|0}function oZ(e){return!(e>0)}function sZ(e){return typeof e!="object"||"length"in e?e:Array.from(e)}function lZ(e){return t=>e(...t)}function uZ(...e){const t=typeof e[e.length-1]=="function"&&lZ(e.pop());e=e.map(sZ);const n=e.map(iZ),r=e.length-1,a=new Array(r+1).fill(0),o=[];if(r<0||n.some(oZ))return o;for(;;){o.push(a.map((l,u)=>e[u][l]));let s=r;for(;++a[s]===n[s];){if(s===0)return t?o.map(t):o;a[s--]=0}}}function mx(e,t){let n=0,r,a=0,o=0;if(t===void 0)for(let s of e)s!=null&&(s=+s)>=s&&(r=s-a,a+=r/++n,o+=r*(s-a));else{let s=-1;for(let l of e)(l=t(l,++s,e))!=null&&(l=+l)>=l&&(r=l-a,a+=r/++n,o+=r*(l-a))}if(n>1)return o/(n-1)}function px(e,t){const n=mx(e,t);return n&&Math.sqrt(n)}function Ut(e,t){let n,r;if(t===void 0)for(const a of e)a!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)));else{let a=-1;for(let o of e)(o=t(o,++a,e))!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}class Os{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let r=0;for(let a=0;a<this._n&&a<32;a++){const o=n[a],s=t+o,l=Math.abs(t)<Math.abs(o)?t-(s-o):o-(s-t);l&&(n[r++]=l),t=s}return n[r]=t,this._n=r+1,this}valueOf(){const t=this._partials;let n=this._n,r,a,o,s=0;if(n>0){for(s=t[--n];n>0&&(r=s,a=t[--n],s=r+a,o=a-(s-r),!o););n>0&&(o<0&&t[n-1]<0||o>0&&t[n-1]>0)&&(a=o*2,r=s+a,a==r-s&&(s=r))}return s}}class Qc extends Map{constructor(t,n=vx){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(Mg(this,t))}has(t){return super.has(Mg(this,t))}set(t,n){return super.set(_x(this,t),n)}delete(t){return super.delete(gx(this,t))}}class $c extends Set{constructor(t,n=vx){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const r of t)this.add(r)}has(t){return super.has(Mg(this,t))}add(t){return super.add(_x(this,t))}delete(t){return super.delete(gx(this,t))}}function Mg({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function _x({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function gx({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function vx(e){return e!==null&&typeof e=="object"?e.valueOf():e}function nm(e){return e}function yx(e,...t){return am(e,nm,nm,t)}function rm(e,t,...n){return am(e,nm,t,n)}function cZ(e,t,...n){return am(e,Array.from,t,n)}function bx(e,...t){return am(e,nm,dZ,t)}function dZ(e){if(e.length!==1)throw new Error("duplicate key");return e[0]}function am(e,t,n,r){return function a(o,s){if(s>=r.length)return n(o);const l=new Qc,u=r[s++];let c=-1;for(const d of o){const h=u(d,++c,o),f=l.get(h);f?f.push(d):l.set(h,[d])}for(const[d,h]of l)l.set(d,a(h,s));return t(l)}(e,0)}function fZ(e,t){return Array.from(t,n=>e[n])}function wx(e,...t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");e=Array.from(e);let[n]=t;if(n&&n.length!==2||t.length>1){const r=Uint32Array.from(e,(a,o)=>o);return t.length>1?(t=t.map(a=>e.map(a)),r.sort((a,o)=>{for(const s of t){const l=im(s[a],s[o]);if(l)return l}})):(n=e.map(n),r.sort((a,o)=>im(n[a],n[o]))),fZ(e,r)}return e.sort(Mx(n))}function Mx(e=ko){if(e===ko)return im;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function im(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const hZ=Math.sqrt(50),mZ=Math.sqrt(10),pZ=Math.sqrt(2);function om(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),o=r/Math.pow(10,a),s=o>=hZ?10:o>=mZ?5:o>=pZ?2:1;let l,u,c;return a<0?(c=Math.pow(10,-a)/s,l=Math.round(e*c),u=Math.round(t*c),l/c<e&&++l,u/c>t&&--u,c=-c):(c=Math.pow(10,a)*s,l=Math.round(e/c),u=Math.round(t/c),l*c<e&&++l,u*c>t&&--u),u<l&&.5<=n&&n<2?om(e,t,n*2):[l,u,c]}function ed(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,o,s]=r?om(t,e,n):om(e,t,n);if(!(o>=a))return[];const l=o-a+1,u=new Array(l);if(r)if(s<0)for(let c=0;c<l;++c)u[c]=(o-c)/-s;else for(let c=0;c<l;++c)u[c]=(o-c)*s;else if(s<0)for(let c=0;c<l;++c)u[c]=(a+c)/-s;else for(let c=0;c<l;++c)u[c]=(a+c)*s;return u}function sm(e,t,n){return t=+t,e=+e,n=+n,om(e,t,n)[2]}function kg(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?sm(t,e,n):sm(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function _Z(e){return Math.max(1,Math.ceil(Math.log(wg(e))/Math.LN2)+1)}function Pn(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n<a||n===void 0&&a>=a)&&(n=a)}return n}function gZ(e,t){let n,r=-1,a=-1;if(t===void 0)for(const o of e)++a,o!=null&&(n<o||n===void 0&&o>=o)&&(n=o,r=a);else for(let o of e)(o=t(o,++a,e))!=null&&(n<o||n===void 0&&o>=o)&&(n=o,r=a);return r}function Xl(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function vZ(e,t){let n,r=-1,a=-1;if(t===void 0)for(const o of e)++a,o!=null&&(n>o||n===void 0&&o>=o)&&(n=o,r=a);else for(let o of e)(o=t(o,++a,e))!=null&&(n>o||n===void 0&&o>=o)&&(n=o,r=a);return r}function kx(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?im:Mx(a);r>n;){if(r-n>600){const u=r-n+1,c=t-n+1,d=Math.log(u),h=.5*Math.exp(2*d/3),f=.5*Math.sqrt(d*h*(u-h)/u)*(c-u/2<0?-1:1),m=Math.max(n,Math.floor(t-c*h/u+f)),b=Math.min(r,Math.floor(t+(u-c)*h/u+f));kx(e,t,m,b,a)}const o=e[t];let s=n,l=r;for(td(e,n,t),a(e[r],o)>0&&td(e,n,r);s<l;){for(td(e,s,l),++s,--l;a(e[s],o)<0;)++s;for(;a(e[l],o)>0;)--l}a(e[n],o)===0?td(e,n,l):(++l,td(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function td(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Ql(e,t,n){if(e=Float64Array.from(aZ(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Xl(e);if(t>=1)return Pn(e);var r,a=(r-1)*t,o=Math.floor(a),s=Pn(kx(e,o).subarray(0,o+1)),l=Xl(e.subarray(o+1));return s+(l-s)*(a-o)}}function yZ(e,t,n=hx){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,o=Math.floor(a),s=+n(e[o],o,e),l=+n(e[o+1],o+1,e);return s+(l-s)*(a-o)}}function bZ(e,t,n){const r=wg(e),a=Ql(e,.75)-Ql(e,.25);return r&&a?Math.ceil((n-t)/(2*a*Math.pow(r,-1/3))):1}function xx(e,t,n){const r=wg(e),a=px(e);return r&&a?Math.ceil((n-t)*Math.cbrt(r)/(3.49*a)):1}function wZ(e,t){let n=0,r=0;if(t===void 0)for(let a of e)a!=null&&(a=+a)>=a&&(++n,r+=a);else{let a=-1;for(let o of e)(o=t(o,++a,e))!=null&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n}function xg(e,t){return Ql(e,.5,t)}function*MZ(e){for(const t of e)yield*t}function Sx(e){return Array.from(MZ(e))}function kZ(e,t){const n=new Qc;if(t===void 0)for(let o of e)o!=null&&o>=o&&n.set(o,(n.get(o)||0)+1);else{let o=-1;for(let s of e)(s=t(s,++o,e))!=null&&s>=s&&n.set(s,(n.get(s)||0)+1)}let r,a=0;for(const[o,s]of n)s>a&&(a=s,r=o);return r}function xZ(e,t=SZ){const n=[];let r,a=!1;for(const o of e)a&&n.push(t(r,o)),r=o,a=!0;return n}function SZ(e,t){return[e,t]}function Sg(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(a);++r<a;)o[r]=e+r*n;return o}function lm(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let a of e)(a=+t(a,++r,e))&&(n+=a)}return n}function um(e){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(e).reverse()}function Lx(...e){const t=new $c;for(const n of e)for(const r of n)t.add(r);return t}function LZ(e){return e}var cm=1,dm=2,Lg=3,nd=4,Yx=1e-6;function YZ(e){return"translate("+e+",0)"}function TZ(e){return"translate(0,"+e+")"}function EZ(e){return t=>+e(t)}function DZ(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function NZ(){return!this.__axis}function fm(e,t){var n=[],r=null,a=null,o=6,s=6,l=3,u=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=e===cm||e===nd?-1:1,d=e===nd||e===dm?"x":"y",h=e===cm||e===Lg?YZ:TZ;function f(m){var b=r??(t.ticks?t.ticks.apply(t,n):t.domain()),M=a??(t.tickFormat?t.tickFormat.apply(t,n):LZ),x=Math.max(o,0)+l,L=t.range(),g=+L[0]+u,y=+L[L.length-1]+u,k=(t.bandwidth?DZ:EZ)(t.copy(),u),w=m.selection?m.selection():m,T=w.selectAll(".domain").data([null]),S=w.selectAll(".tick").data(b,t).order(),D=S.exit(),O=S.enter().append("g").attr("class","tick"),V=S.select("line"),E=S.select("text");T=T.merge(T.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(O),V=V.merge(O.append("line").attr("stroke","currentColor").attr(d+"2",c*o)),E=E.merge(O.append("text").attr("fill","currentColor").attr(d,c*x).attr("dy",e===cm?"0em":e===Lg?"0.71em":"0.32em")),m!==w&&(T=T.transition(m),S=S.transition(m),V=V.transition(m),E=E.transition(m),D=D.transition(m).attr("opacity",Yx).attr("transform",function(R){return isFinite(R=k(R))?h(R+u):this.getAttribute("transform")}),O.attr("opacity",Yx).attr("transform",function(R){var j=this.parentNode.__axis;return h((j&&isFinite(j=j(R))?j:k(R))+u)})),D.remove(),T.attr("d",e===nd||e===dm?s?"M"+c*s+","+g+"H"+u+"V"+y+"H"+c*s:"M"+u+","+g+"V"+y:s?"M"+g+","+c*s+"V"+u+"H"+y+"V"+c*s:"M"+g+","+u+"H"+y),S.attr("opacity",1).attr("transform",function(R){return h(k(R)+u)}),V.attr(d+"2",c*o),E.attr(d,c*x).text(M),w.filter(NZ).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===dm?"start":e===nd?"end":"middle"),w.each(function(){this.__axis=k})}return f.scale=function(m){return arguments.length?(t=m,f):t},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(m){return arguments.length?(n=m==null?[]:Array.from(m),f):n.slice()},f.tickValues=function(m){return arguments.length?(r=m==null?null:Array.from(m),f):r&&r.slice()},f.tickFormat=function(m){return arguments.length?(a=m,f):a},f.tickSize=function(m){return arguments.length?(o=s=+m,f):o},f.tickSizeInner=function(m){return arguments.length?(o=+m,f):o},f.tickSizeOuter=function(m){return arguments.length?(s=+m,f):s},f.tickPadding=function(m){return arguments.length?(l=+m,f):l},f.offset=function(m){return arguments.length?(u=+m,f):u},f}function CZ(e){return fm(cm,e)}function AZ(e){return fm(dm,e)}function Vn(e){return fm(Lg,e)}function js(e){return fm(nd,e)}var OZ={value:()=>{}};function Yg(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new hm(n)}function hm(e){this._=e}function jZ(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",a=n.indexOf(".");if(a>=0&&(r=n.slice(a+1),n=n.slice(0,a)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}hm.prototype=Yg.prototype={constructor:hm,on:function(e,t){var n=this._,r=jZ(e+"",n),a,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((a=(e=r[o]).type)&&(a=BZ(n[a],e.name)))return a;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<s;)if(a=(e=r[o]).type)n[a]=Tx(n[a],e.name,t);else if(t==null)for(a in n)n[a]=Tx(n[a],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new hm(e)},call:function(e,t){if((a=arguments.length-2)>0)for(var n=new Array(a),r=0,a,o;r<a;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],r=0,a=o.length;r<a;++r)o[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],a=0,o=r.length;a<o;++a)r[a].value.apply(t,n)}};function BZ(e,t){for(var n=0,r=e.length,a;n<r;++n)if((a=e[n]).name===t)return a.value}function Tx(e,t,n){for(var r=0,a=e.length;r<a;++r)if(e[r].name===t){e[r]=OZ,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Tg="http://www.w3.org/1999/xhtml";const $l={svg:"http://www.w3.org/2000/svg",xhtml:Tg,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function mm(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),$l.hasOwnProperty(t)?{space:$l[t],local:e}:e}function PZ(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Tg&&t.documentElement.namespaceURI===Tg?t.createElement(e):t.createElementNS(n,e)}}function VZ(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function pm(e){var t=mm(e);return(t.local?VZ:PZ)(t)}function IZ(){}function Eg(e){return e==null?IZ:function(){return this.querySelector(e)}}function HZ(e){typeof e!="function"&&(e=Eg(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var o=t[a],s=o.length,l=r[a]=new Array(s),u,c,d=0;d<s;++d)(u=o[d])&&(c=e.call(u,u.__data__,d,o))&&("__data__"in u&&(c.__data__=u.__data__),l[d]=c);return new Dn(r,this._parents)}function Ex(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function FZ(){return[]}function Dx(e){return e==null?FZ:function(){return this.querySelectorAll(e)}}function RZ(e){return function(){return Ex(e.apply(this,arguments))}}function zZ(e){typeof e=="function"?e=RZ(e):e=Dx(e);for(var t=this._groups,n=t.length,r=[],a=[],o=0;o<n;++o)for(var s=t[o],l=s.length,u,c=0;c<l;++c)(u=s[c])&&(r.push(e.call(u,u.__data__,c,s)),a.push(u));return new Dn(r,a)}function Nx(e){return function(){return this.matches(e)}}function Cx(e){return function(t){return t.matches(e)}}var qZ=Array.prototype.find;function UZ(e){return function(){return qZ.call(this.children,e)}}function WZ(){return this.firstElementChild}function GZ(e){return this.select(e==null?WZ:UZ(typeof e=="function"?e:Cx(e)))}var KZ=Array.prototype.filter;function JZ(){return Array.from(this.children)}function ZZ(e){return function(){return KZ.call(this.children,e)}}function XZ(e){return this.selectAll(e==null?JZ:ZZ(typeof e=="function"?e:Cx(e)))}function QZ(e){typeof e!="function"&&(e=Nx(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var o=t[a],s=o.length,l=r[a]=[],u,c=0;c<s;++c)(u=o[c])&&e.call(u,u.__data__,c,o)&&l.push(u);return new Dn(r,this._parents)}function Ax(e){return new Array(e.length)}function $Z(){return new Dn(this._enter||this._groups.map(Ax),this._parents)}function _m(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}_m.prototype={constructor:_m,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function eX(e){return function(){return e}}function tX(e,t,n,r,a,o){for(var s=0,l,u=t.length,c=o.length;s<c;++s)(l=t[s])?(l.__data__=o[s],r[s]=l):n[s]=new _m(e,o[s]);for(;s<u;++s)(l=t[s])&&(a[s]=l)}function nX(e,t,n,r,a,o,s){var l,u,c=new Map,d=t.length,h=o.length,f=new Array(d),m;for(l=0;l<d;++l)(u=t[l])&&(f[l]=m=s.call(u,u.__data__,l,t)+"",c.has(m)?a[l]=u:c.set(m,u));for(l=0;l<h;++l)m=s.call(e,o[l],l,o)+"",(u=c.get(m))?(r[l]=u,u.__data__=o[l],c.delete(m)):n[l]=new _m(e,o[l]);for(l=0;l<d;++l)(u=t[l])&&c.get(f[l])===u&&(a[l]=u)}function rX(e){return e.__data__}function aX(e,t){if(!arguments.length)return Array.from(this,rX);var n=t?nX:tX,r=this._parents,a=this._groups;typeof e!="function"&&(e=eX(e));for(var o=a.length,s=new Array(o),l=new Array(o),u=new Array(o),c=0;c<o;++c){var d=r[c],h=a[c],f=h.length,m=iX(e.call(d,d&&d.__data__,c,r)),b=m.length,M=l[c]=new Array(b),x=s[c]=new Array(b),L=u[c]=new Array(f);n(d,h,M,x,L,m,t);for(var g=0,y=0,k,w;g<b;++g)if(k=M[g]){for(g>=y&&(y=g+1);!(w=x[y])&&++y<b;);k._next=w||null}}return s=new Dn(s,r),s._enter=l,s._exit=u,s}function iX(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function oX(){return new Dn(this._exit||this._groups.map(Ax),this._parents)}function sX(e,t,n){var r=this.enter(),a=this,o=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(a=t(a),a&&(a=a.selection())),n==null?o.remove():n(o),r&&a?r.merge(a).order():a}function lX(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,a=n.length,o=r.length,s=Math.min(a,o),l=new Array(a),u=0;u<s;++u)for(var c=n[u],d=r[u],h=c.length,f=l[u]=new Array(h),m,b=0;b<h;++b)(m=c[b]||d[b])&&(f[b]=m);for(;u<a;++u)l[u]=n[u];return new Dn(l,this._parents)}function uX(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],a=r.length-1,o=r[a],s;--a>=0;)(s=r[a])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function cX(e){e||(e=dX);function t(h,f){return h&&f?e(h.__data__,f.__data__):!h-!f}for(var n=this._groups,r=n.length,a=new Array(r),o=0;o<r;++o){for(var s=n[o],l=s.length,u=a[o]=new Array(l),c,d=0;d<l;++d)(c=s[d])&&(u[d]=c);u.sort(t)}return new Dn(a,this._parents).order()}function dX(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function fX(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function hX(){return Array.from(this)}function mX(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],a=0,o=r.length;a<o;++a){var s=r[a];if(s)return s}return null}function pX(){let e=0;for(const t of this)++e;return e}function _X(){return!this.node()}function gX(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var a=t[n],o=0,s=a.length,l;o<s;++o)(l=a[o])&&e.call(l,l.__data__,o,a);return this}function vX(e){return function(){this.removeAttribute(e)}}function yX(e){return function(){this.removeAttributeNS(e.space,e.local)}}function bX(e,t){return function(){this.setAttribute(e,t)}}function wX(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function MX(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function kX(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function xX(e,t){var n=mm(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?yX:vX:typeof t=="function"?n.local?kX:MX:n.local?wX:bX)(n,t))}function Ox(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function SX(e){return function(){this.style.removeProperty(e)}}function LX(e,t,n){return function(){this.style.setProperty(e,t,n)}}function YX(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function TX(e,t,n){return arguments.length>1?this.each((t==null?SX:typeof t=="function"?YX:LX)(e,t,n??"")):eu(this.node(),e)}function eu(e,t){return e.style.getPropertyValue(t)||Ox(e).getComputedStyle(e,null).getPropertyValue(t)}function EX(e){return function(){delete this[e]}}function DX(e,t){return function(){this[e]=t}}function NX(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function CX(e,t){return arguments.length>1?this.each((t==null?EX:typeof t=="function"?NX:DX)(e,t)):this.node()[e]}function jx(e){return e.trim().split(/^|\s+/)}function Dg(e){return e.classList||new Bx(e)}function Bx(e){this._node=e,this._names=jx(e.getAttribute("class")||"")}Bx.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Px(e,t){for(var n=Dg(e),r=-1,a=t.length;++r<a;)n.add(t[r])}function Vx(e,t){for(var n=Dg(e),r=-1,a=t.length;++r<a;)n.remove(t[r])}function AX(e){return function(){Px(this,e)}}function OX(e){return function(){Vx(this,e)}}function jX(e,t){return function(){(t.apply(this,arguments)?Px:Vx)(this,e)}}function BX(e,t){var n=jx(e+"");if(arguments.length<2){for(var r=Dg(this.node()),a=-1,o=n.length;++a<o;)if(!r.contains(n[a]))return!1;return!0}return this.each((typeof t=="function"?jX:t?AX:OX)(n,t))}function PX(){this.textContent=""}function VX(e){return function(){this.textContent=e}}function IX(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function HX(e){return arguments.length?this.each(e==null?PX:(typeof e=="function"?IX:VX)(e)):this.node().textContent}function FX(){this.innerHTML=""}function RX(e){return function(){this.innerHTML=e}}function zX(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function qX(e){return arguments.length?this.each(e==null?FX:(typeof e=="function"?zX:RX)(e)):this.node().innerHTML}function UX(){this.nextSibling&&this.parentNode.appendChild(this)}function WX(){return this.each(UX)}function GX(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function KX(){return this.each(GX)}function JX(e){var t=typeof e=="function"?e:pm(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function ZX(){return null}function XX(e,t){var n=typeof e=="function"?e:pm(e),r=t==null?ZX:typeof t=="function"?t:Eg(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function QX(){var e=this.parentNode;e&&e.removeChild(this)}function $X(){return this.each(QX)}function eQ(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function tQ(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function nQ(e){return this.select(e?tQ:eQ)}function rQ(e){return arguments.length?this.property("__data__",e):this.node().__data__}function aQ(e){return function(t){e.call(this,t,this.__data__)}}function iQ(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function oQ(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,a=t.length,o;n<a;++n)o=t[n],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++r]=o;++r?t.length=r:delete this.__on}}}function sQ(e,t,n){return function(){var r=this.__on,a,o=aQ(t);if(r){for(var s=0,l=r.length;s<l;++s)if((a=r[s]).type===e.type&&a.name===e.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=o,a.options=n),a.value=t;return}}this.addEventListener(e.type,o,n),a={type:e.type,name:e.name,value:t,listener:o,options:n},r?r.push(a):this.__on=[a]}}function lQ(e,t,n){var r=iQ(e+""),a,o=r.length,s;if(arguments.length<2){var l=this.node().__on;if(l){for(var u=0,c=l.length,d;u<c;++u)for(a=0,d=l[u];a<o;++a)if((s=r[a]).type===d.type&&s.name===d.name)return d.value}return}for(l=t?sQ:oQ,a=0;a<o;++a)this.each(l(r[a],t,n));return this}function Ix(e,t,n){var r=Ox(e),a=r.CustomEvent;typeof a=="function"?a=new a(t,n):(a=r.document.createEvent("Event"),n?(a.initEvent(t,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(t,!1,!1)),e.dispatchEvent(a)}function uQ(e,t){return function(){return Ix(this,e,t)}}function cQ(e,t){return function(){return Ix(this,e,t.apply(this,arguments))}}function dQ(e,t){return this.each((typeof t=="function"?cQ:uQ)(e,t))}function*fQ(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],a=0,o=r.length,s;a<o;++a)(s=r[a])&&(yield s)}var Ng=[null];function Dn(e,t){this._groups=e,this._parents=t}function rd(){return new Dn([[document.documentElement]],Ng)}function hQ(){return this}Dn.prototype=rd.prototype={constructor:Dn,select:HZ,selectAll:zZ,selectChild:GZ,selectChildren:XZ,filter:QZ,data:aX,enter:$Z,exit:oX,join:sX,merge:lX,selection:hQ,order:uX,sort:cX,call:fX,nodes:hX,node:mX,size:pX,empty:_X,each:gX,attr:xX,style:TX,property:CX,classed:BX,text:HX,html:qX,raise:WX,lower:KX,append:JX,insert:XX,remove:$X,clone:nQ,datum:rQ,on:lQ,dispatch:dQ,[Symbol.iterator]:fQ};function Be(e){return typeof e=="string"?new Dn([[document.querySelector(e)]],[document.documentElement]):new Dn([[e]],Ng)}function mQ(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Cg(e,t){if(e=mQ(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var a=t.getBoundingClientRect();return[e.clientX-a.left-t.clientLeft,e.clientY-a.top-t.clientTop]}}return[e.pageX,e.pageY]}function at(e){return typeof e=="string"?new Dn([document.querySelectorAll(e)],[document.documentElement]):new Dn([Ex(e)],Ng)}const Ag={capture:!0,passive:!1};function Og(e){e.preventDefault(),e.stopImmediatePropagation()}function pQ(e){var t=e.document.documentElement,n=Be(e).on("dragstart.drag",Og,Ag);"onselectstart"in t?n.on("selectstart.drag",Og,Ag):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function _Q(e,t){var n=e.document.documentElement,r=Be(e).on("dragstart.drag",null);t&&(r.on("click.drag",Og,Ag),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function tu(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ad(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function xo(){}var Bs=.7,nu=1/Bs,ru="\\s*([+-]?\\d+)\\s*",id="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Pa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",gQ=/^#([0-9a-f]{3,8})$/,vQ=new RegExp(`^rgb\\(${ru},${ru},${ru}\\)$`),yQ=new RegExp(`^rgb\\(${Pa},${Pa},${Pa}\\)$`),bQ=new RegExp(`^rgba\\(${ru},${ru},${ru},${id}\\)$`),wQ=new RegExp(`^rgba\\(${Pa},${Pa},${Pa},${id}\\)$`),MQ=new RegExp(`^hsl\\(${id},${Pa},${Pa}\\)$`),kQ=new RegExp(`^hsla\\(${id},${Pa},${Pa},${id}\\)$`),Hx={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};tu(xo,Ps,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Fx,formatHex:Fx,formatHex8:xQ,formatHsl:SQ,formatRgb:Rx,toString:Rx});function Fx(){return this.rgb().formatHex()}function xQ(){return this.rgb().formatHex8()}function SQ(){return Gx(this).formatHsl()}function Rx(){return this.rgb().formatRgb()}function Ps(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=gQ.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?zx(t):n===3?new on(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?gm(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?gm(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=vQ.exec(e))?new on(t[1],t[2],t[3],1):(t=yQ.exec(e))?new on(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=bQ.exec(e))?gm(t[1],t[2],t[3],t[4]):(t=wQ.exec(e))?gm(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=MQ.exec(e))?Wx(t[1],t[2]/100,t[3]/100,1):(t=kQ.exec(e))?Wx(t[1],t[2]/100,t[3]/100,t[4]):Hx.hasOwnProperty(e)?zx(Hx[e]):e==="transparent"?new on(NaN,NaN,NaN,0):null}function zx(e){return new on(e>>16&255,e>>8&255,e&255,1)}function gm(e,t,n,r){return r<=0&&(e=t=n=NaN),new on(e,t,n,r)}function jg(e){return e instanceof xo||(e=Ps(e)),e?(e=e.rgb(),new on(e.r,e.g,e.b,e.opacity)):new on}function So(e,t,n,r){return arguments.length===1?jg(e):new on(e,t,n,r??1)}function on(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}tu(on,So,ad(xo,{brighter(e){return e=e==null?nu:Math.pow(nu,e),new on(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Bs:Math.pow(Bs,e),new on(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new on(Vs(this.r),Vs(this.g),Vs(this.b),vm(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:qx,formatHex:qx,formatHex8:LQ,formatRgb:Ux,toString:Ux}));function qx(){return`#${Is(this.r)}${Is(this.g)}${Is(this.b)}`}function LQ(){return`#${Is(this.r)}${Is(this.g)}${Is(this.b)}${Is((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ux(){const e=vm(this.opacity);return`${e===1?"rgb(":"rgba("}${Vs(this.r)}, ${Vs(this.g)}, ${Vs(this.b)}${e===1?")":`, ${e})`}`}function vm(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vs(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Is(e){return e=Vs(e),(e<16?"0":"")+e.toString(16)}function Wx(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Gr(e,t,n,r)}function Gx(e){if(e instanceof Gr)return new Gr(e.h,e.s,e.l,e.opacity);if(e instanceof xo||(e=Ps(e)),!e)return new Gr;if(e instanceof Gr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,l=o-a,u=(o+a)/2;return l?(t===o?s=(n-r)/l+(n<r)*6:n===o?s=(r-t)/l+2:s=(t-n)/l+4,l/=u<.5?o+a:2-o-a,s*=60):l=u>0&&u<1?0:s,new Gr(s,l,u,e.opacity)}function Bg(e,t,n,r){return arguments.length===1?Gx(e):new Gr(e,t,n,r??1)}function Gr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}tu(Gr,Bg,ad(xo,{brighter(e){return e=e==null?nu:Math.pow(nu,e),new Gr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Bs:Math.pow(Bs,e),new Gr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new on(Pg(e>=240?e-240:e+120,a,r),Pg(e,a,r),Pg(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Gr(Kx(this.h),ym(this.s),ym(this.l),vm(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=vm(this.opacity);return`${e===1?"hsl(":"hsla("}${Kx(this.h)}, ${ym(this.s)*100}%, ${ym(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Kx(e){return e=(e||0)%360,e<0?e+360:e}function ym(e){return Math.max(0,Math.min(1,e||0))}function Pg(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Jx=Math.PI/180,Zx=180/Math.PI,bm=18,Xx=.96422,Qx=1,$x=.82521,eS=4/29,au=6/29,tS=3*au*au,YQ=au*au*au;function nS(e){if(e instanceof Va)return new Va(e.l,e.a,e.b,e.opacity);if(e instanceof Si)return rS(e);e instanceof on||(e=jg(e));var t=Rg(e.r),n=Rg(e.g),r=Rg(e.b),a=Ig((.2225045*t+.7168786*n+.0606169*r)/Qx),o,s;return t===n&&n===r?o=s=a:(o=Ig((.4360747*t+.3850649*n+.1430804*r)/Xx),s=Ig((.0139322*t+.0971045*n+.7141733*r)/$x)),new Va(116*a-16,500*(o-a),200*(a-s),e.opacity)}function Vg(e,t,n,r){return arguments.length===1?nS(e):new Va(e,t,n,r??1)}function Va(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}tu(Va,Vg,ad(xo,{brighter(e){return new Va(this.l+bm*(e??1),this.a,this.b,this.opacity)},darker(e){return new Va(this.l-bm*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=Xx*Hg(t),e=Qx*Hg(e),n=$x*Hg(n),new on(Fg(3.1338561*t-1.6168667*e-.4906146*n),Fg(-.9787684*t+1.9161415*e+.033454*n),Fg(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function Ig(e){return e>YQ?Math.pow(e,1/3):e/tS+eS}function Hg(e){return e>au?e*e*e:tS*(e-eS)}function Fg(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Rg(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function TQ(e){if(e instanceof Si)return new Si(e.h,e.c,e.l,e.opacity);if(e instanceof Va||(e=nS(e)),e.a===0&&e.b===0)return new Si(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Zx;return new Si(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function zg(e,t,n,r){return arguments.length===1?TQ(e):new Si(e,t,n,r??1)}function Si(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function rS(e){if(isNaN(e.h))return new Va(e.l,0,0,e.opacity);var t=e.h*Jx;return new Va(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}tu(Si,zg,ad(xo,{brighter(e){return new Si(this.h,this.c,this.l+bm*(e??1),this.opacity)},darker(e){return new Si(this.h,this.c,this.l-bm*(e??1),this.opacity)},rgb(){return rS(this).rgb()}}));var aS=-.14861,qg=1.78277,Ug=-.29227,wm=-.90649,od=1.97294,iS=od*wm,oS=od*qg,sS=qg*Ug-wm*aS;function EQ(e){if(e instanceof Hs)return new Hs(e.h,e.s,e.l,e.opacity);e instanceof on||(e=jg(e));var t=e.r/255,n=e.g/255,r=e.b/255,a=(sS*r+iS*t-oS*n)/(sS+iS-oS),o=r-a,s=(od*(n-a)-Ug*o)/wm,l=Math.sqrt(s*s+o*o)/(od*a*(1-a)),u=l?Math.atan2(s,o)*Zx-120:NaN;return new Hs(u<0?u+360:u,l,a,e.opacity)}function Ia(e,t,n,r){return arguments.length===1?EQ(e):new Hs(e,t,n,r??1)}function Hs(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}tu(Hs,Ia,ad(xo,{brighter(e){return e=e==null?nu:Math.pow(nu,e),new Hs(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Bs:Math.pow(Bs,e),new Hs(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Jx,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new on(255*(t+n*(aS*r+qg*a)),255*(t+n*(Ug*r+wm*a)),255*(t+n*(od*r)),this.opacity)}}));function DQ(e,t,n,r,a){var o=e*e,s=o*e;return((1-3*e+3*o-s)*t+(4-6*o+3*s)*n+(1+3*e+3*o-3*s)*r+s*a)/6}function NQ(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),a=e[r],o=e[r+1],s=r>0?e[r-1]:2*a-o,l=r<t-1?e[r+2]:2*o-a;return DQ((n-r/t)*t,s,a,o,l)}}const Mm=e=>()=>e;function lS(e,t){return function(n){return e+n*t}}function CQ(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Wg(e,t){var n=t-e;return n?lS(e,n>180||n<-180?n-360*Math.round(n/360):n):Mm(isNaN(e)?t:e)}function AQ(e){return(e=+e)==1?vn:function(t,n){return n-t?CQ(t,n,e):Mm(isNaN(t)?n:t)}}function vn(e,t){var n=t-e;return n?lS(e,n):Mm(isNaN(e)?t:e)}const Fs=function e(t){var n=AQ(t);function r(a,o){var s=n((a=So(a)).r,(o=So(o)).r),l=n(a.g,o.g),u=n(a.b,o.b),c=vn(a.opacity,o.opacity);return function(d){return a.r=s(d),a.g=l(d),a.b=u(d),a.opacity=c(d),a+""}}return r.gamma=e,r}(1);function OQ(e){return function(t){var n=t.length,r=new Array(n),a=new Array(n),o=new Array(n),s,l;for(s=0;s<n;++s)l=So(t[s]),r[s]=l.r||0,a[s]=l.g||0,o[s]=l.b||0;return r=e(r),a=e(a),o=e(o),l.opacity=1,function(u){return l.r=r(u),l.g=a(u),l.b=o(u),l+""}}}var jQ=OQ(NQ);function BQ(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(o){for(a=0;a<n;++a)r[a]=e[a]*(1-o)+t[a]*o;return r}}function PQ(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function VQ(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)a[s]=Ha(e[s],t[s]);for(;s<n;++s)o[s]=t[s];return function(l){for(s=0;s<r;++s)o[s]=a[s](l);return o}}function IQ(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function yn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function HQ(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=Ha(e[a],t[a]):r[a]=t[a];return function(o){for(a in n)r[a]=n[a](o);return r}}var Gg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Kg=new RegExp(Gg.source,"g");function FQ(e){return function(){return e}}function RQ(e){return function(t){return e(t)+""}}function uS(e,t){var n=Gg.lastIndex=Kg.lastIndex=0,r,a,o,s=-1,l=[],u=[];for(e=e+"",t=t+"";(r=Gg.exec(e))&&(a=Kg.exec(t));)(o=a.index)>n&&(o=t.slice(n,o),l[s]?l[s]+=o:l[++s]=o),(r=r[0])===(a=a[0])?l[s]?l[s]+=a:l[++s]=a:(l[++s]=null,u.push({i:s,x:yn(r,a)})),n=Kg.lastIndex;return n<t.length&&(o=t.slice(n),l[s]?l[s]+=o:l[++s]=o),l.length<2?u[0]?RQ(u[0].x):FQ(t):(t=u.length,function(c){for(var d=0,h;d<t;++d)l[(h=u[d]).i]=h.x(c);return l.join("")})}function Ha(e,t){var n=typeof t,r;return t==null||n==="boolean"?Mm(t):(n==="number"?yn:n==="string"?(r=Ps(t))?(t=r,Fs):uS:t instanceof Ps?Fs:t instanceof Date?IQ:PQ(t)?BQ:Array.isArray(t)?VQ:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?HQ:yn)(e,t)}function km(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var cS=180/Math.PI,Jg={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function dS(e,t,n,r,a,o){var s,l,u;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(l=Math.sqrt(n*n+r*r))&&(n/=l,r/=l,u/=l),e*r<t*n&&(e=-e,t=-t,u=-u,s=-s),{translateX:a,translateY:o,rotate:Math.atan2(t,e)*cS,skewX:Math.atan(u)*cS,scaleX:s,scaleY:l}}var xm;function zQ(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Jg:dS(t.a,t.b,t.c,t.d,t.e,t.f)}function qQ(e){return e==null||(xm||(xm=document.createElementNS("http://www.w3.org/2000/svg","g")),xm.setAttribute("transform",e),!(e=xm.transform.baseVal.consolidate()))?Jg:(e=e.matrix,dS(e.a,e.b,e.c,e.d,e.e,e.f))}function fS(e,t,n,r){function a(c){return c.length?c.pop()+" ":""}function o(c,d,h,f,m,b){if(c!==h||d!==f){var M=m.push("translate(",null,t,null,n);b.push({i:M-4,x:yn(c,h)},{i:M-2,x:yn(d,f)})}else(h||f)&&m.push("translate("+h+t+f+n)}function s(c,d,h,f){c!==d?(c-d>180?d+=360:d-c>180&&(c+=360),f.push({i:h.push(a(h)+"rotate(",null,r)-2,x:yn(c,d)})):d&&h.push(a(h)+"rotate("+d+r)}function l(c,d,h,f){c!==d?f.push({i:h.push(a(h)+"skewX(",null,r)-2,x:yn(c,d)}):d&&h.push(a(h)+"skewX("+d+r)}function u(c,d,h,f,m,b){if(c!==h||d!==f){var M=m.push(a(m)+"scale(",null,",",null,")");b.push({i:M-4,x:yn(c,h)},{i:M-2,x:yn(d,f)})}else(h!==1||f!==1)&&m.push(a(m)+"scale("+h+","+f+")")}return function(c,d){var h=[],f=[];return c=e(c),d=e(d),o(c.translateX,c.translateY,d.translateX,d.translateY,h,f),s(c.rotate,d.rotate,h,f),l(c.skewX,d.skewX,h,f),u(c.scaleX,c.scaleY,d.scaleX,d.scaleY,h,f),c=d=null,function(m){for(var b=-1,M=f.length,x;++b<M;)h[(x=f[b]).i]=x.x(m);return h.join("")}}}var UQ=fS(zQ,"px, ","px)","deg)"),WQ=fS(qQ,", ",")",")");function GQ(e){return function(t,n){var r=e((t=Bg(t)).h,(n=Bg(n)).h),a=vn(t.s,n.s),o=vn(t.l,n.l),s=vn(t.opacity,n.opacity);return function(l){return t.h=r(l),t.s=a(l),t.l=o(l),t.opacity=s(l),t+""}}}const KQ=GQ(Wg);function JQ(e,t){var n=vn((e=Vg(e)).l,(t=Vg(t)).l),r=vn(e.a,t.a),a=vn(e.b,t.b),o=vn(e.opacity,t.opacity);return function(s){return e.l=n(s),e.a=r(s),e.b=a(s),e.opacity=o(s),e+""}}function ZQ(e){return function(t,n){var r=e((t=zg(t)).h,(n=zg(n)).h),a=vn(t.c,n.c),o=vn(t.l,n.l),s=vn(t.opacity,n.opacity);return function(l){return t.h=r(l),t.c=a(l),t.l=o(l),t.opacity=s(l),t+""}}}const XQ=ZQ(Wg);function hS(e){return function t(n){n=+n;function r(a,o){var s=e((a=Ia(a)).h,(o=Ia(o)).h),l=vn(a.s,o.s),u=vn(a.l,o.l),c=vn(a.opacity,o.opacity);return function(d){return a.h=s(d),a.s=l(d),a.l=u(Math.pow(d,n)),a.opacity=c(d),a+""}}return r.gamma=t,r}(1)}hS(Wg);var Zg=hS(vn);function Sm(e,t){t===void 0&&(t=e,e=Ha);for(var n=0,r=t.length-1,a=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(a,a=t[++n]);return function(s){var l=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return o[l](s-l)}}function Kr(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}var iu=0,sd=0,ld=0,mS=1e3,Lm,ud,Ym=0,Rs=0,Tm=0,cd=typeof performance=="object"&&performance.now?performance:Date,pS=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Xg(){return Rs||(pS(QQ),Rs=cd.now()+Tm)}function QQ(){Rs=0}function Em(){this._call=this._time=this._next=null}Em.prototype=_S.prototype={constructor:Em,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Xg():+n)+(t==null?0:+t),!this._next&&ud!==this&&(ud?ud._next=this:Lm=this,ud=this),this._call=e,this._time=n,Qg()},stop:function(){this._call&&(this._call=null,this._time=1/0,Qg())}};function _S(e,t,n){var r=new Em;return r.restart(e,t,n),r}function $Q(){Xg(),++iu;for(var e=Lm,t;e;)(t=Rs-e._time)>=0&&e._call.call(void 0,t),e=e._next;--iu}function gS(){Rs=(Ym=cd.now())+Tm,iu=sd=0;try{$Q()}finally{iu=0,t$(),Rs=0}}function e$(){var e=cd.now(),t=e-Ym;t>mS&&(Tm-=t,Ym=e)}function t$(){for(var e,t=Lm,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Lm=n);ud=e,Qg(r)}function Qg(e){if(!iu){sd&&(sd=clearTimeout(sd));var t=e-Rs;t>24?(e<1/0&&(sd=setTimeout(gS,e-cd.now()-Tm)),ld&&(ld=clearInterval(ld))):(ld||(Ym=cd.now(),ld=setInterval(e$,mS)),iu=1,pS(gS))}}function vS(e,t,n){var r=new Em;return t=t==null?0:+t,r.restart(a=>{r.stop(),e(a+t)},t,n),r}var n$=Yg("start","end","cancel","interrupt"),r$=[],yS=0,bS=1,$g=2,Dm=3,wS=4,ev=5,Nm=6;function Cm(e,t,n,r,a,o){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;a$(e,n,{name:t,index:r,group:a,on:n$,tween:r$,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:yS})}function tv(e,t){var n=Jr(e,t);if(n.state>yS)throw new Error("too late; already scheduled");return n}function Fa(e,t){var n=Jr(e,t);if(n.state>Dm)throw new Error("too late; already running");return n}function Jr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function a$(e,t,n){var r=e.__transition,a;r[t]=n,n.timer=_S(o,0,n.time);function o(c){n.state=bS,n.timer.restart(s,n.delay,n.time),n.delay<=c&&s(c-n.delay)}function s(c){var d,h,f,m;if(n.state!==bS)return u();for(d in r)if(m=r[d],m.name===n.name){if(m.state===Dm)return vS(s);m.state===wS?(m.state=Nm,m.timer.stop(),m.on.call("interrupt",e,e.__data__,m.index,m.group),delete r[d]):+d<t&&(m.state=Nm,m.timer.stop(),m.on.call("cancel",e,e.__data__,m.index,m.group),delete r[d])}if(vS(function(){n.state===Dm&&(n.state=wS,n.timer.restart(l,n.delay,n.time),l(c))}),n.state=$g,n.on.call("start",e,e.__data__,n.index,n.group),n.state===$g){for(n.state=Dm,a=new Array(f=n.tween.length),d=0,h=-1;d<f;++d)(m=n.tween[d].value.call(e,e.__data__,n.index,n.group))&&(a[++h]=m);a.length=h+1}}function l(c){for(var d=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(u),n.state=ev,1),h=-1,f=a.length;++h<f;)a[h].call(e,d);n.state===ev&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=Nm,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function nv(e,t){var n=e.__transition,r,a,o=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((r=n[s]).name!==t){o=!1;continue}a=r.state>$g&&r.state<ev,r.state=Nm,r.timer.stop(),r.on.call(a?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[s]}o&&delete e.__transition}}function i$(e){return this.each(function(){nv(this,e)})}function o$(e,t){var n,r;return function(){var a=Fa(this,e),o=a.tween;if(o!==n){r=n=o;for(var s=0,l=r.length;s<l;++s)if(r[s].name===t){r=r.slice(),r.splice(s,1);break}}a.tween=r}}function s$(e,t,n){var r,a;if(typeof n!="function")throw new Error;return function(){var o=Fa(this,e),s=o.tween;if(s!==r){a=(r=s).slice();for(var l={name:t,value:n},u=0,c=a.length;u<c;++u)if(a[u].name===t){a[u]=l;break}u===c&&a.push(l)}o.tween=a}}function l$(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Jr(this.node(),n).tween,a=0,o=r.length,s;a<o;++a)if((s=r[a]).name===e)return s.value;return null}return this.each((t==null?o$:s$)(n,e,t))}function rv(e,t,n){var r=e._id;return e.each(function(){var a=Fa(this,r);(a.value||(a.value={}))[t]=n.apply(this,arguments)}),function(a){return Jr(a,r).value[t]}}function MS(e,t){var n;return(typeof t=="number"?yn:t instanceof Ps?Fs:(n=Ps(t))?(t=n,Fs):uS)(e,t)}function u$(e){return function(){this.removeAttribute(e)}}function c$(e){return function(){this.removeAttributeNS(e.space,e.local)}}function d$(e,t,n){var r,a=n+"",o;return function(){var s=this.getAttribute(e);return s===a?null:s===r?o:o=t(r=s,n)}}function f$(e,t,n){var r,a=n+"",o;return function(){var s=this.getAttributeNS(e.space,e.local);return s===a?null:s===r?o:o=t(r=s,n)}}function h$(e,t,n){var r,a,o;return function(){var s,l=n(this),u;return l==null?void this.removeAttribute(e):(s=this.getAttribute(e),u=l+"",s===u?null:s===r&&u===a?o:(a=u,o=t(r=s,l)))}}function m$(e,t,n){var r,a,o;return function(){var s,l=n(this),u;return l==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),u=l+"",s===u?null:s===r&&u===a?o:(a=u,o=t(r=s,l)))}}function p$(e,t){var n=mm(e),r=n==="transform"?WQ:MS;return this.attrTween(e,typeof t=="function"?(n.local?m$:h$)(n,r,rv(this,"attr."+e,t)):t==null?(n.local?c$:u$)(n):(n.local?f$:d$)(n,r,t))}function _$(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function g$(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function v$(e,t){var n,r;function a(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&g$(e,o)),n}return a._value=t,a}function y$(e,t){var n,r;function a(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&_$(e,o)),n}return a._value=t,a}function b$(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=mm(e);return this.tween(n,(r.local?v$:y$)(r,t))}function w$(e,t){return function(){tv(this,e).delay=+t.apply(this,arguments)}}function M$(e,t){return t=+t,function(){tv(this,e).delay=t}}function k$(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?w$:M$)(t,e)):Jr(this.node(),t).delay}function x$(e,t){return function(){Fa(this,e).duration=+t.apply(this,arguments)}}function S$(e,t){return t=+t,function(){Fa(this,e).duration=t}}function L$(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?x$:S$)(t,e)):Jr(this.node(),t).duration}function Y$(e,t){if(typeof t!="function")throw new Error;return function(){Fa(this,e).ease=t}}function T$(e){var t=this._id;return arguments.length?this.each(Y$(t,e)):Jr(this.node(),t).ease}function E$(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Fa(this,e).ease=n}}function D$(e){if(typeof e!="function")throw new Error;return this.each(E$(this._id,e))}function N$(e){typeof e!="function"&&(e=Nx(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var o=t[a],s=o.length,l=r[a]=[],u,c=0;c<s;++c)(u=o[c])&&e.call(u,u.__data__,c,o)&&l.push(u);return new Li(r,this._parents,this._name,this._id)}function C$(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,a=n.length,o=Math.min(r,a),s=new Array(r),l=0;l<o;++l)for(var u=t[l],c=n[l],d=u.length,h=s[l]=new Array(d),f,m=0;m<d;++m)(f=u[m]||c[m])&&(h[m]=f);for(;l<r;++l)s[l]=t[l];return new Li(s,this._parents,this._name,this._id)}function A$(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function O$(e,t,n){var r,a,o=A$(t)?tv:Fa;return function(){var s=o(this,e),l=s.on;l!==r&&(a=(r=l).copy()).on(t,n),s.on=a}}function j$(e,t){var n=this._id;return arguments.length<2?Jr(this.node(),n).on.on(e):this.each(O$(n,e,t))}function B$(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function P$(){return this.on("end.remove",B$(this._id))}function V$(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Eg(e));for(var r=this._groups,a=r.length,o=new Array(a),s=0;s<a;++s)for(var l=r[s],u=l.length,c=o[s]=new Array(u),d,h,f=0;f<u;++f)(d=l[f])&&(h=e.call(d,d.__data__,f,l))&&("__data__"in d&&(h.__data__=d.__data__),c[f]=h,Cm(c[f],t,n,f,c,Jr(d,n)));return new Li(o,this._parents,t,n)}function I$(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Dx(e));for(var r=this._groups,a=r.length,o=[],s=[],l=0;l<a;++l)for(var u=r[l],c=u.length,d,h=0;h<c;++h)if(d=u[h]){for(var f=e.call(d,d.__data__,h,u),m,b=Jr(d,n),M=0,x=f.length;M<x;++M)(m=f[M])&&Cm(m,t,n,M,f,b);o.push(f),s.push(d)}return new Li(o,s,t,n)}var H$=rd.prototype.constructor;function F$(){return new H$(this._groups,this._parents)}function R$(e,t){var n,r,a;return function(){var o=eu(this,e),s=(this.style.removeProperty(e),eu(this,e));return o===s?null:o===n&&s===r?a:a=t(n=o,r=s)}}function kS(e){return function(){this.style.removeProperty(e)}}function z$(e,t,n){var r,a=n+"",o;return function(){var s=eu(this,e);return s===a?null:s===r?o:o=t(r=s,n)}}function q$(e,t,n){var r,a,o;return function(){var s=eu(this,e),l=n(this),u=l+"";return l==null&&(u=l=(this.style.removeProperty(e),eu(this,e))),s===u?null:s===r&&u===a?o:(a=u,o=t(r=s,l))}}function U$(e,t){var n,r,a,o="style."+t,s="end."+o,l;return function(){var u=Fa(this,e),c=u.on,d=u.value[o]==null?l||(l=kS(t)):void 0;(c!==n||a!==d)&&(r=(n=c).copy()).on(s,a=d),u.on=r}}function W$(e,t,n){var r=(e+="")=="transform"?UQ:MS;return t==null?this.styleTween(e,R$(e,r)).on("end.style."+e,kS(e)):typeof t=="function"?this.styleTween(e,q$(e,r,rv(this,"style."+e,t))).each(U$(this._id,e)):this.styleTween(e,z$(e,r,t),n).on("end.style."+e,null)}function G$(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function K$(e,t,n){var r,a;function o(){var s=t.apply(this,arguments);return s!==a&&(r=(a=s)&&G$(e,s,n)),r}return o._value=t,o}function J$(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,K$(e,t,n??""))}function Z$(e){return function(){this.textContent=e}}function X$(e){return function(){var t=e(this);this.textContent=t??""}}function Q$(e){return this.tween("text",typeof e=="function"?X$(rv(this,"text",e)):Z$(e==null?"":e+""))}function $$(e){return function(t){this.textContent=e.call(this,t)}}function eee(e){var t,n;function r(){var a=e.apply(this,arguments);return a!==n&&(t=(n=a)&&$$(a)),t}return r._value=e,r}function tee(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,eee(e))}function nee(){for(var e=this._name,t=this._id,n=xS(),r=this._groups,a=r.length,o=0;o<a;++o)for(var s=r[o],l=s.length,u,c=0;c<l;++c)if(u=s[c]){var d=Jr(u,t);Cm(u,e,n,c,s,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new Li(r,this._parents,e,n)}function ree(){var e,t,n=this,r=n._id,a=n.size();return new Promise(function(o,s){var l={value:s},u={value:function(){--a===0&&o()}};n.each(function(){var c=Fa(this,r),d=c.on;d!==e&&(t=(e=d).copy(),t._.cancel.push(l),t._.interrupt.push(l),t._.end.push(u)),c.on=t}),a===0&&o()})}var aee=0;function Li(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function xS(){return++aee}var Yi=rd.prototype;Li.prototype={constructor:Li,select:V$,selectAll:I$,selectChild:Yi.selectChild,selectChildren:Yi.selectChildren,filter:N$,merge:C$,selection:F$,transition:nee,call:Yi.call,nodes:Yi.nodes,node:Yi.node,size:Yi.size,empty:Yi.empty,each:Yi.each,on:j$,attr:p$,attrTween:b$,style:W$,styleTween:J$,text:Q$,textTween:tee,remove:P$,tween:l$,delay:k$,duration:L$,ease:T$,easeVarying:D$,end:ree,[Symbol.iterator]:Yi[Symbol.iterator]};const iee=e=>+e;function oee(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var see={time:null,delay:0,duration:250,ease:oee};function lee(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function uee(e){var t,n;e instanceof Li?(t=e._id,e=e._name):(t=xS(),(n=see).time=Xg(),e=e==null?null:e+"");for(var r=this._groups,a=r.length,o=0;o<a;++o)for(var s=r[o],l=s.length,u,c=0;c<l;++c)(u=s[c])&&Cm(u,e,t,c,s,n||lee(u,t));return new Li(r,this._parents,e,t)}rd.prototype.interrupt=i$,rd.prototype.transition=uee;const av=e=>()=>e;function cee(e,{sourceEvent:t,target:n,selection:r,mode:a,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:a,enumerable:!0,configurable:!0},_:{value:o}})}function dee(e){e.stopImmediatePropagation()}function iv(e){e.preventDefault(),e.stopImmediatePropagation()}var SS={name:"drag"},ov={name:"space"},ou={name:"handle"},su={name:"center"};const{abs:LS,max:bn,min:wn}=Math;function YS(e){return[+e[0],+e[1]]}function TS(e){return[YS(e[0]),YS(e[1])]}var Am={name:"x",handles:["w","e"].map(lv),input:function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},sv={},Ti={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},ES={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},DS={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},fee={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},hee={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function lv(e){return{type:e}}function mee(e){return!e.ctrlKey&&!e.button}function pee(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function _ee(){return navigator.maxTouchPoints||"ontouchstart"in this}function uv(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function gee(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function vee(){return yee(Am)}function yee(e){var t=pee,n=mee,r=_ee,a=!0,o=Yg("start","brush","end"),s=6,l;function u(x){var L=x.property("__brush",M).selectAll(".overlay").data([lv("overlay")]);L.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Ti.overlay).merge(L).each(function(){var y=uv(this).extent;Be(this).attr("x",y[0][0]).attr("y",y[0][1]).attr("width",y[1][0]-y[0][0]).attr("height",y[1][1]-y[0][1])}),x.selectAll(".selection").data([lv("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Ti.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var g=x.selectAll(".handle").data(e.handles,function(y){return y.type});g.exit().remove(),g.enter().append("rect").attr("class",function(y){return"handle handle--"+y.type}).attr("cursor",function(y){return Ti[y.type]}),x.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",f).filter(r).on("touchstart.brush",f).on("touchmove.brush",m).on("touchend.brush touchcancel.brush",b).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}u.move=function(x,L,g){x.tween?x.on("start.brush",function(y){d(this,arguments).beforestart().start(y)}).on("interrupt.brush end.brush",function(y){d(this,arguments).end(y)}).tween("brush",function(){var y=this,k=y.__brush,w=d(y,arguments),T=k.selection,S=e.input(typeof L=="function"?L.apply(this,arguments):L,k.extent),D=Ha(T,S);function O(V){k.selection=V===1&&S===null?null:D(V),c.call(y),w.brush()}return T!==null&&S!==null?O:O(1)}):x.each(function(){var y=this,k=arguments,w=y.__brush,T=e.input(typeof L=="function"?L.apply(y,k):L,w.extent),S=d(y,k).beforestart();nv(y),w.selection=T===null?null:T,c.call(y),S.start(g).brush(g).end(g)})},u.clear=function(x,L){u.move(x,null,L)};function c(){var x=Be(this),L=uv(this).selection;L?(x.selectAll(".selection").style("display",null).attr("x",L[0][0]).attr("y",L[0][1]).attr("width",L[1][0]-L[0][0]).attr("height",L[1][1]-L[0][1]),x.selectAll(".handle").style("display",null).attr("x",function(g){return g.type[g.type.length-1]==="e"?L[1][0]-s/2:L[0][0]-s/2}).attr("y",function(g){return g.type[0]==="s"?L[1][1]-s/2:L[0][1]-s/2}).attr("width",function(g){return g.type==="n"||g.type==="s"?L[1][0]-L[0][0]+s:s}).attr("height",function(g){return g.type==="e"||g.type==="w"?L[1][1]-L[0][1]+s:s})):x.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function d(x,L,g){var y=x.__brush.emitter;return y&&(!g||!y.clean)?y:new h(x,L,g)}function h(x,L,g){this.that=x,this.args=L,this.state=x.__brush,this.active=0,this.clean=g}h.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(x,L){return this.starting?(this.starting=!1,this.emit("start",x,L)):this.emit("brush",x),this},brush:function(x,L){return this.emit("brush",x,L),this},end:function(x,L){return--this.active===0&&(delete this.state.emitter,this.emit("end",x,L)),this},emit:function(x,L,g){var y=Be(this.that).datum();o.call(x,this.that,new cee(x,{sourceEvent:L,target:u,selection:e.output(this.state.selection),mode:g,dispatch:o}),y)}};function f(x){if(l&&!x.touches||!n.apply(this,arguments))return;var L=this,g=x.target.__data__.type,y=(a&&x.metaKey?g="overlay":g)==="selection"?SS:a&&x.altKey?su:ou,k=e===sv?null:fee[g],w=e===Am?null:hee[g],T=uv(L),S=T.extent,D=T.selection,O=S[0][0],V,E,R=S[0][1],j,F,B=S[1][0],z,G,q=S[1][1],J,K,$=0,ee=0,ie,ue=k&&w&&a&&x.shiftKey,ce,Me,he=Array.from(x.touches||[x],te=>{const ae=te.identifier;return te=Cg(te,L),te.point0=te.slice(),te.identifier=ae,te});nv(L);var pe=d(L,arguments,!0).beforestart();if(g==="overlay"){D&&(ie=!0);const te=[he[0],he[1]||he[0]];T.selection=D=[[V=e===sv?O:wn(te[0][0],te[1][0]),j=e===Am?R:wn(te[0][1],te[1][1])],[z=e===sv?B:bn(te[0][0],te[1][0]),J=e===Am?q:bn(te[0][1],te[1][1])]],he.length>1&&Le(x)}else V=D[0][0],j=D[0][1],z=D[1][0],J=D[1][1];E=V,F=j,G=z,K=J;var Q=Be(L).attr("pointer-events","none"),de=Q.selectAll(".overlay").attr("cursor",Ti[g]);if(x.touches)pe.moved=re,pe.ended=Ee;else{var ye=Be(x.view).on("mousemove.brush",re,!0).on("mouseup.brush",Ee,!0);a&&ye.on("keydown.brush",Pe,!0).on("keyup.brush",se,!0),pQ(x.view)}c.call(L),pe.start(x,y.name);function re(te){for(const ae of te.changedTouches||[te])for(const le of he)le.identifier===ae.identifier&&(le.cur=Cg(ae,L));if(ue&&!ce&&!Me&&he.length===1){const ae=he[0];LS(ae.cur[0]-ae[0])>LS(ae.cur[1]-ae[1])?Me=!0:ce=!0}for(const ae of he)ae.cur&&(ae[0]=ae.cur[0],ae[1]=ae.cur[1]);ie=!0,iv(te),Le(te)}function Le(te){const ae=he[0],le=ae.point0;var we;switch($=ae[0]-le[0],ee=ae[1]-le[1],y){case ov:case SS:{k&&($=bn(O-V,wn(B-z,$)),E=V+$,G=z+$),w&&(ee=bn(R-j,wn(q-J,ee)),F=j+ee,K=J+ee);break}case ou:{he[1]?(k&&(E=bn(O,wn(B,he[0][0])),G=bn(O,wn(B,he[1][0])),k=1),w&&(F=bn(R,wn(q,he[0][1])),K=bn(R,wn(q,he[1][1])),w=1)):(k<0?($=bn(O-V,wn(B-V,$)),E=V+$,G=z):k>0&&($=bn(O-z,wn(B-z,$)),E=V,G=z+$),w<0?(ee=bn(R-j,wn(q-j,ee)),F=j+ee,K=J):w>0&&(ee=bn(R-J,wn(q-J,ee)),F=j,K=J+ee));break}case su:{k&&(E=bn(O,wn(B,V-$*k)),G=bn(O,wn(B,z+$*k))),w&&(F=bn(R,wn(q,j-ee*w)),K=bn(R,wn(q,J+ee*w)));break}}G<E&&(k*=-1,we=V,V=z,z=we,we=E,E=G,G=we,g in ES&&de.attr("cursor",Ti[g=ES[g]])),K<F&&(w*=-1,we=j,j=J,J=we,we=F,F=K,K=we,g in DS&&de.attr("cursor",Ti[g=DS[g]])),T.selection&&(D=T.selection),ce&&(E=D[0][0],G=D[1][0]),Me&&(F=D[0][1],K=D[1][1]),(D[0][0]!==E||D[0][1]!==F||D[1][0]!==G||D[1][1]!==K)&&(T.selection=[[E,F],[G,K]],c.call(L),pe.brush(te,y.name))}function Ee(te){if(dee(te),te.touches){if(te.touches.length)return;l&&clearTimeout(l),l=setTimeout(function(){l=null},500)}else _Q(te.view,ie),ye.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Q.attr("pointer-events","all"),de.attr("cursor",Ti.overlay),T.selection&&(D=T.selection),gee(D)&&(T.selection=null,c.call(L)),pe.end(te,y.name)}function Pe(te){switch(te.keyCode){case 16:{ue=k&&w;break}case 18:{y===ou&&(k&&(z=G-$*k,V=E+$*k),w&&(J=K-ee*w,j=F+ee*w),y=su,Le(te));break}case 32:{(y===ou||y===su)&&(k<0?z=G-$:k>0&&(V=E-$),w<0?J=K-ee:w>0&&(j=F-ee),y=ov,de.attr("cursor",Ti.selection),Le(te));break}default:return}iv(te)}function se(te){switch(te.keyCode){case 16:{ue&&(ce=Me=ue=!1,Le(te));break}case 18:{y===su&&(k<0?z=G:k>0&&(V=E),w<0?J=K:w>0&&(j=F),y=ou,Le(te));break}case 32:{y===ov&&(te.altKey?(k&&(z=G-$*k,V=E+$*k),w&&(J=K-ee*w,j=F+ee*w),y=su):(k<0?z=G:k>0&&(V=E),w<0?J=K:w>0&&(j=F),y=ou),de.attr("cursor",Ti[g]),Le(te));break}default:return}iv(te)}}function m(x){d(this,arguments).moved(x)}function b(x){d(this,arguments).ended(x)}function M(){var x=this.__brush||{selection:null};return x.extent=TS(t.apply(this,arguments)),x.dim=e,x}return u.extent=function(x){return arguments.length?(t=typeof x=="function"?x:av(TS(x)),u):t},u.filter=function(x){return arguments.length?(n=typeof x=="function"?x:av(!!x),u):n},u.touchable=function(x){return arguments.length?(r=typeof x=="function"?x:av(!!x),u):r},u.handleSize=function(x){return arguments.length?(s=+x,u):s},u.keyModifiers=function(x){return arguments.length?(a=!!x,u):a},u.on=function(){var x=o.on.apply(o,arguments);return x===o?u:x},u}const cv=Math.PI,dv=2*cv,zs=1e-6,bee=dv-zs;function NS(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function wee(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return NS;const n=10**t;return function(r){this._+=r[0];for(let a=1,o=r.length;a<o;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class CS{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?NS:wee(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,o,s){this._append`C${+t},${+n},${+r},${+a},${this._x1=+o},${this._y1=+s}`}arcTo(t,n,r,a,o){if(t=+t,n=+n,r=+r,a=+a,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,l=this._y1,u=r-t,c=a-n,d=s-t,h=l-n,f=d*d+h*h;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>zs)if(!(Math.abs(h*u-c*d)>zs)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let m=r-s,b=a-l,M=u*u+c*c,x=m*m+b*b,L=Math.sqrt(M),g=Math.sqrt(f),y=o*Math.tan((cv-Math.acos((M+f-x)/(2*L*g)))/2),k=y/g,w=y/L;Math.abs(k-1)>zs&&this._append`L${t+k*d},${n+k*h}`,this._append`A${o},${o},0,0,${+(h*m>d*b)},${this._x1=t+w*u},${this._y1=n+w*c}`}}arc(t,n,r,a,o,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(a),u=r*Math.sin(a),c=t+l,d=n+u,h=1^s,f=s?a-o:o-a;this._x1===null?this._append`M${c},${d}`:(Math.abs(this._x1-c)>zs||Math.abs(this._y1-d)>zs)&&this._append`L${c},${d}`,r&&(f<0&&(f=f%dv+dv),f>bee?this._append`A${r},${r},0,1,${h},${t-l},${n-u}A${r},${r},0,1,${h},${this._x1=c},${this._y1=d}`:f>zs&&this._append`A${r},${r},0,${+(f>=cv)},${h},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function qs(e=3){return new CS(+e)}function Mee(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Om(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function lu(e){return e=Om(Math.abs(e)),e?e[1]:NaN}function kee(e,t){return function(n,r){for(var a=n.length,o=[],s=0,l=e[0],u=0;a>0&&l>0&&(u+l+1>r&&(l=Math.max(1,r-u)),o.push(n.substring(a-=l,a+l)),!((u+=l+1)>r));)l=e[s=(s+1)%e.length];return o.reverse().join(t)}}function xee(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var See=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function dd(e){if(!(t=See.exec(e)))throw new Error("invalid format: "+e);var t;return new fv({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}dd.prototype=fv.prototype;function fv(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}fv.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Lee(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var AS;function Yee(e,t){var n=Om(e,t);if(!n)return e+"";var r=n[0],a=n[1],o=a-(AS=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Om(e,Math.max(0,t+o-1))[0]}function OS(e,t){var n=Om(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const jS={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Mee,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>OS(e*100,t),r:OS,s:Yee,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function BS(e){return e}var PS=Array.prototype.map,VS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Tee(e){var t=e.grouping===void 0||e.thousands===void 0?BS:kee(PS.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?BS:xee(PS.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function c(h){h=dd(h);var f=h.fill,m=h.align,b=h.sign,M=h.symbol,x=h.zero,L=h.width,g=h.comma,y=h.precision,k=h.trim,w=h.type;w==="n"?(g=!0,w="g"):jS[w]||(y===void 0&&(y=12),k=!0,w="g"),(x||f==="0"&&m==="=")&&(x=!0,f="0",m="=");var T=M==="$"?n:M==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",S=M==="$"?r:/[%p]/.test(w)?s:"",D=jS[w],O=/[defgprs%]/.test(w);y=y===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function V(E){var R=T,j=S,F,B,z;if(w==="c")j=D(E)+j,E="";else{E=+E;var G=E<0||1/E<0;if(E=isNaN(E)?u:D(Math.abs(E),y),k&&(E=Lee(E)),G&&+E==0&&b!=="+"&&(G=!1),R=(G?b==="("?b:l:b==="-"||b==="("?"":b)+R,j=(w==="s"?VS[8+AS/3]:"")+j+(G&&b==="("?")":""),O){for(F=-1,B=E.length;++F<B;)if(z=E.charCodeAt(F),48>z||z>57){j=(z===46?a+E.slice(F+1):E.slice(F))+j,E=E.slice(0,F);break}}}g&&!x&&(E=t(E,1/0));var q=R.length+E.length+j.length,J=q<L?new Array(L-q+1).join(f):"";switch(g&&x&&(E=t(J+E,J.length?L-j.length:1/0),J=""),m){case"<":E=R+E+j+J;break;case"=":E=R+J+E+j;break;case"^":E=J.slice(0,q=J.length>>1)+R+E+j+J.slice(q);break;default:E=J+R+E+j;break}return o(E)}return V.toString=function(){return h+""},V}function d(h,f){var m=c((h=dd(h),h.type="f",h)),b=Math.max(-8,Math.min(8,Math.floor(lu(f)/3)))*3,M=Math.pow(10,-b),x=VS[8+b/3];return function(L){return m(M*L)+x}}return{format:c,formatPrefix:d}}var jm,uu,IS;Eee({thousands:",",grouping:[3],currency:["$",""]});function Eee(e){return jm=Tee(e),uu=jm.format,IS=jm.formatPrefix,jm}function Dee(e){return Math.max(0,-lu(Math.abs(e)))}function Nee(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(lu(t)/3)))*3-lu(Math.abs(e)))}function Cee(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,lu(t)-lu(e))+1}var tt=1e-6,HS=1e-12,ct=Math.PI,Ht=ct/2,FS=ct/4,$n=ct*2,Nn=180/ct,Ft=ct/180,St=Math.abs,cu=Math.atan,Ei=Math.atan2,st=Math.cos,RS=Math.exp,Bm=Math.log,hv=Math.pow,Xe=Math.sin,wr=Math.sign||function(e){return e>0?1:e<0?-1:0},In=Math.sqrt,mv=Math.tan;function zS(e){return e>1?0:e<-1?ct:Math.acos(e)}function Mr(e){return e>1?Ht:e<-1?-Ht:Math.asin(e)}function kr(){}function Pm(e,t){e&&US.hasOwnProperty(e.type)&&US[e.type](e,t)}var qS={Feature:function(e,t){Pm(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,a=n.length;++r<a;)Pm(n[r].geometry,t)}},US={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,a=n.length;++r<a;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){pv(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,a=n.length;++r<a;)pv(n[r],t,0)},Polygon:function(e,t){WS(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,a=n.length;++r<a;)WS(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,a=n.length;++r<a;)Pm(n[r],t)}};function pv(e,t,n){var r=-1,a=e.length-n,o;for(t.lineStart();++r<a;)o=e[r],t.point(o[0],o[1],o[2]);t.lineEnd()}function WS(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)pv(e[n],t,1);t.polygonEnd()}function Us(e,t){e&&qS.hasOwnProperty(e.type)?qS[e.type](e,t):Pm(e,t)}function _v(e){return[Ei(e[1],e[0]),Mr(e[2])]}function du(e){var t=e[0],n=e[1],r=st(n);return[r*st(t),r*Xe(t),Xe(n)]}function Vm(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Im(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function gv(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Hm(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function vv(e){var t=In(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function yv(e,t){function n(r,a){return r=e(r,a),t(r[0],r[1])}return e.invert&&t.invert&&(n.invert=function(r,a){return r=t.invert(r,a),r&&e.invert(r[0],r[1])}),n}function bv(e,t){return St(e)>ct&&(e-=Math.round(e/$n)*$n),[e,t]}bv.invert=bv;function GS(e,t,n){return(e%=$n)?t||n?yv(JS(e),ZS(t,n)):JS(e):t||n?ZS(t,n):bv}function KS(e){return function(t,n){return t+=e,St(t)>ct&&(t-=Math.round(t/$n)*$n),[t,n]}}function JS(e){var t=KS(e);return t.invert=KS(-e),t}function ZS(e,t){var n=st(e),r=Xe(e),a=st(t),o=Xe(t);function s(l,u){var c=st(u),d=st(l)*c,h=Xe(l)*c,f=Xe(u),m=f*n+d*r;return[Ei(h*a-m*o,d*n-f*r),Mr(m*a+h*o)]}return s.invert=function(l,u){var c=st(u),d=st(l)*c,h=Xe(l)*c,f=Xe(u),m=f*a-h*o;return[Ei(h*a+f*o,d*n+m*r),Mr(m*n-d*r)]},s}function Aee(e){e=GS(e[0]*Ft,e[1]*Ft,e.length>2?e[2]*Ft:0);function t(n){return n=e(n[0]*Ft,n[1]*Ft),n[0]*=Nn,n[1]*=Nn,n}return t.invert=function(n){return n=e.invert(n[0]*Ft,n[1]*Ft),n[0]*=Nn,n[1]*=Nn,n},t}function Oee(e,t,n,r,a,o){if(n){var s=st(t),l=Xe(t),u=r*n;a==null?(a=t+r*$n,o=t-u/2):(a=XS(s,a),o=XS(s,o),(r>0?a<o:a>o)&&(a+=r*$n));for(var c,d=a;r>0?d>o:d<o;d-=u)c=_v([s,-l*st(d),-l*Xe(d)]),e.point(c[0],c[1])}}function XS(e,t){t=du(t),t[0]-=e,vv(t);var n=zS(-t[1]);return((-t[2]<0?-n:n)+$n-tt)%$n}function QS(){var e=[],t;return{point:function(n,r,a){t.push([n,r,a])},lineStart:function(){e.push(t=[])},lineEnd:kr,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Fm(e,t){return St(e[0]-t[0])<tt&&St(e[1]-t[1])<tt}function Rm(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function $S(e,t,n,r,a){var o=[],s=[],l,u;if(e.forEach(function(b){if(!((M=b.length-1)<=0)){var M,x=b[0],L=b[M],g;if(Fm(x,L)){if(!x[2]&&!L[2]){for(a.lineStart(),l=0;l<M;++l)a.point((x=b[l])[0],x[1]);a.lineEnd();return}L[0]+=2*tt}o.push(g=new Rm(x,b,null,!0)),s.push(g.o=new Rm(x,null,g,!1)),o.push(g=new Rm(L,b,null,!1)),s.push(g.o=new Rm(L,null,g,!0))}}),!!o.length){for(s.sort(t),e5(o),e5(s),l=0,u=s.length;l<u;++l)s[l].e=n=!n;for(var c=o[0],d,h;;){for(var f=c,m=!0;f.v;)if((f=f.n)===c)return;d=f.z,a.lineStart();do{if(f.v=f.o.v=!0,f.e){if(m)for(l=0,u=d.length;l<u;++l)a.point((h=d[l])[0],h[1]);else r(f.x,f.n.x,1,a);f=f.n}else{if(m)for(d=f.p.z,l=d.length-1;l>=0;--l)a.point((h=d[l])[0],h[1]);else r(f.x,f.p.x,-1,a);f=f.p}f=f.o,d=f.z,m=!m}while(!f.v);a.lineEnd()}}}function e5(e){if(t=e.length){for(var t,n=0,r=e[0],a;++n<t;)r.n=a=e[n],a.p=r,r=a;r.n=a=e[0],a.p=r}}function wv(e){return St(e[0])<=ct?e[0]:wr(e[0])*((St(e[0])+ct)%$n-ct)}function jee(e,t){var n=wv(t),r=t[1],a=Xe(r),o=[Xe(n),-st(n),0],s=0,l=0,u=new Os;a===1?r=Ht+tt:a===-1&&(r=-Ht-tt);for(var c=0,d=e.length;c<d;++c)if(f=(h=e[c]).length)for(var h,f,m=h[f-1],b=wv(m),M=m[1]/2+FS,x=Xe(M),L=st(M),g=0;g<f;++g,b=k,x=T,L=S,m=y){var y=h[g],k=wv(y),w=y[1]/2+FS,T=Xe(w),S=st(w),D=k-b,O=D>=0?1:-1,V=O*D,E=V>ct,R=x*T;if(u.add(Ei(R*O*Xe(V),L*S+R*st(V))),s+=E?D+O*$n:D,E^b>=n^k>=n){var j=Im(du(m),du(y));vv(j);var F=Im(o,j);vv(F);var B=(E^D>=0?-1:1)*Mr(F[2]);(r>B||r===B&&(j[0]||j[1]))&&(l+=E^D>=0?1:-1)}}return(s<-tt||s<tt&&u<-HS)^l&1}function t5(e,t,n,r){return function(a){var o=t(a),s=QS(),l=t(s),u=!1,c,d,h,f={point:m,lineStart:M,lineEnd:x,polygonStart:function(){f.point=L,f.lineStart=g,f.lineEnd=y,d=[],c=[]},polygonEnd:function(){f.point=m,f.lineStart=M,f.lineEnd=x,d=Sx(d);var k=jee(c,r);d.length?(u||(a.polygonStart(),u=!0),$S(d,Pee,k,n,a)):k&&(u||(a.polygonStart(),u=!0),a.lineStart(),n(null,null,1,a),a.lineEnd()),u&&(a.polygonEnd(),u=!1),d=c=null},sphere:function(){a.polygonStart(),a.lineStart(),n(null,null,1,a),a.lineEnd(),a.polygonEnd()}};function m(k,w){e(k,w)&&a.point(k,w)}function b(k,w){o.point(k,w)}function M(){f.point=b,o.lineStart()}function x(){f.point=m,o.lineEnd()}function L(k,w){h.push([k,w]),l.point(k,w)}function g(){l.lineStart(),h=[]}function y(){L(h[0][0],h[0][1]),l.lineEnd();var k=l.clean(),w=s.result(),T,S=w.length,D,O,V;if(h.pop(),c.push(h),h=null,!!S){if(k&1){if(O=w[0],(D=O.length-1)>0){for(u||(a.polygonStart(),u=!0),a.lineStart(),T=0;T<D;++T)a.point((V=O[T])[0],V[1]);a.lineEnd()}return}S>1&&k&2&&w.push(w.pop().concat(w.shift())),d.push(w.filter(Bee))}}return f}}function Bee(e){return e.length>1}function Pee(e,t){return((e=e.x)[0]<0?e[1]-Ht-tt:Ht-e[1])-((t=t.x)[0]<0?t[1]-Ht-tt:Ht-t[1])}const n5=t5(function(){return!0},Vee,Hee,[-ct,-Ht]);function Vee(e){var t=NaN,n=NaN,r=NaN,a;return{lineStart:function(){e.lineStart(),a=1},point:function(o,s){var l=o>0?ct:-ct,u=St(o-t);St(u-ct)<tt?(e.point(t,n=(n+s)/2>0?Ht:-Ht),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(l,n),e.point(o,n),a=0):r!==l&&u>=ct&&(St(t-r)<tt&&(t-=r*tt),St(o-l)<tt&&(o-=l*tt),n=Iee(t,n,o,s),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(l,n),a=0),e.point(t=o,n=s),r=l},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-a}}}function Iee(e,t,n,r){var a,o,s=Xe(e-n);return St(s)>tt?cu((Xe(t)*(o=st(r))*Xe(n)-Xe(r)*(a=st(t))*Xe(e))/(a*o*s)):(t+r)/2}function Hee(e,t,n,r){var a;if(e==null)a=n*Ht,r.point(-ct,a),r.point(0,a),r.point(ct,a),r.point(ct,0),r.point(ct,-a),r.point(0,-a),r.point(-ct,-a),r.point(-ct,0),r.point(-ct,a);else if(St(e[0]-t[0])>tt){var o=e[0]<t[0]?ct:-ct;a=n*o/2,r.point(-o,a),r.point(0,a),r.point(o,a)}else r.point(t[0],t[1])}function Fee(e){var t=st(e),n=2*Ft,r=t>0,a=St(t)>tt;function o(d,h,f,m){Oee(m,e,n,f,d,h)}function s(d,h){return st(d)*st(h)>t}function l(d){var h,f,m,b,M;return{lineStart:function(){b=m=!1,M=1},point:function(x,L){var g=[x,L],y,k=s(x,L),w=r?k?0:c(x,L):k?c(x+(x<0?ct:-ct),L):0;if(!h&&(b=m=k)&&d.lineStart(),k!==m&&(y=u(h,g),(!y||Fm(h,y)||Fm(g,y))&&(g[2]=1)),k!==m)M=0,k?(d.lineStart(),y=u(g,h),d.point(y[0],y[1])):(y=u(h,g),d.point(y[0],y[1],2),d.lineEnd()),h=y;else if(a&&h&&r^k){var T;!(w&f)&&(T=u(g,h,!0))&&(M=0,r?(d.lineStart(),d.point(T[0][0],T[0][1]),d.point(T[1][0],T[1][1]),d.lineEnd()):(d.point(T[1][0],T[1][1]),d.lineEnd(),d.lineStart(),d.point(T[0][0],T[0][1],3)))}k&&(!h||!Fm(h,g))&&d.point(g[0],g[1]),h=g,m=k,f=w},lineEnd:function(){m&&d.lineEnd(),h=null},clean:function(){return M|(b&&m)<<1}}}function u(d,h,f){var m=du(d),b=du(h),M=[1,0,0],x=Im(m,b),L=Vm(x,x),g=x[0],y=L-g*g;if(!y)return!f&&d;var k=t*L/y,w=-t*g/y,T=Im(M,x),S=Hm(M,k),D=Hm(x,w);gv(S,D);var O=T,V=Vm(S,O),E=Vm(O,O),R=V*V-E*(Vm(S,S)-1);if(!(R<0)){var j=In(R),F=Hm(O,(-V-j)/E);if(gv(F,S),F=_v(F),!f)return F;var B=d[0],z=h[0],G=d[1],q=h[1],J;z<B&&(J=B,B=z,z=J);var K=z-B,$=St(K-ct)<tt,ee=$||K<tt;if(!$&&q<G&&(J=G,G=q,q=J),ee?$?G+q>0^F[1]<(St(F[0]-B)<tt?G:q):G<=F[1]&&F[1]<=q:K>ct^(B<=F[0]&&F[0]<=z)){var ie=Hm(O,(-V+j)/E);return gv(ie,S),[F,_v(ie)]}}}function c(d,h){var f=r?e:ct-e,m=0;return d<-f?m|=1:d>f&&(m|=2),h<-f?m|=4:h>f&&(m|=8),m}return t5(s,l,o,r?[0,-e]:[-ct,e-ct])}function Ree(e,t,n,r,a,o){var s=e[0],l=e[1],u=t[0],c=t[1],d=0,h=1,f=u-s,m=c-l,b;if(b=n-s,!(!f&&b>0)){if(b/=f,f<0){if(b<d)return;b<h&&(h=b)}else if(f>0){if(b>h)return;b>d&&(d=b)}if(b=a-s,!(!f&&b<0)){if(b/=f,f<0){if(b>h)return;b>d&&(d=b)}else if(f>0){if(b<d)return;b<h&&(h=b)}if(b=r-l,!(!m&&b>0)){if(b/=m,m<0){if(b<d)return;b<h&&(h=b)}else if(m>0){if(b>h)return;b>d&&(d=b)}if(b=o-l,!(!m&&b<0)){if(b/=m,m<0){if(b>h)return;b>d&&(d=b)}else if(m>0){if(b<d)return;b<h&&(h=b)}return d>0&&(e[0]=s+d*f,e[1]=l+d*m),h<1&&(t[0]=s+h*f,t[1]=l+h*m),!0}}}}}var fd=1e9,zm=-fd;function r5(e,t,n,r){function a(c,d){return e<=c&&c<=n&&t<=d&&d<=r}function o(c,d,h,f){var m=0,b=0;if(c==null||(m=s(c,h))!==(b=s(d,h))||u(c,d)<0^h>0)do f.point(m===0||m===3?e:n,m>1?r:t);while((m=(m+h+4)%4)!==b);else f.point(d[0],d[1])}function s(c,d){return St(c[0]-e)<tt?d>0?0:3:St(c[0]-n)<tt?d>0?2:1:St(c[1]-t)<tt?d>0?1:0:d>0?3:2}function l(c,d){return u(c.x,d.x)}function u(c,d){var h=s(c,1),f=s(d,1);return h!==f?h-f:h===0?d[1]-c[1]:h===1?c[0]-d[0]:h===2?c[1]-d[1]:d[0]-c[0]}return function(c){var d=c,h=QS(),f,m,b,M,x,L,g,y,k,w,T,S={point:D,lineStart:R,lineEnd:j,polygonStart:V,polygonEnd:E};function D(B,z){a(B,z)&&d.point(B,z)}function O(){for(var B=0,z=0,G=m.length;z<G;++z)for(var q=m[z],J=1,K=q.length,$=q[0],ee,ie,ue=$[0],ce=$[1];J<K;++J)ee=ue,ie=ce,$=q[J],ue=$[0],ce=$[1],ie<=r?ce>r&&(ue-ee)*(r-ie)>(ce-ie)*(e-ee)&&++B:ce<=r&&(ue-ee)*(r-ie)<(ce-ie)*(e-ee)&&--B;return B}function V(){d=h,f=[],m=[],T=!0}function E(){var B=O(),z=T&&B,G=(f=Sx(f)).length;(z||G)&&(c.polygonStart(),z&&(c.lineStart(),o(null,null,1,c),c.lineEnd()),G&&$S(f,l,B,o,c),c.polygonEnd()),d=c,f=m=b=null}function R(){S.point=F,m&&m.push(b=[]),w=!0,k=!1,g=y=NaN}function j(){f&&(F(M,x),L&&k&&h.rejoin(),f.push(h.result())),S.point=D,k&&d.lineEnd()}function F(B,z){var G=a(B,z);if(m&&b.push([B,z]),w)M=B,x=z,L=G,w=!1,G&&(d.lineStart(),d.point(B,z));else if(G&&k)d.point(B,z);else{var q=[g=Math.max(zm,Math.min(fd,g)),y=Math.max(zm,Math.min(fd,y))],J=[B=Math.max(zm,Math.min(fd,B)),z=Math.max(zm,Math.min(fd,z))];Ree(q,J,e,t,n,r)?(k||(d.lineStart(),d.point(q[0],q[1])),d.point(J[0],J[1]),G||d.lineEnd(),T=!1):G&&(d.lineStart(),d.point(B,z),T=!1)}g=B,y=z,k=G}return S}}const Mv=e=>e;var kv=new Os,xv=new Os,a5,i5,Sv,Lv,Di={point:kr,lineStart:kr,lineEnd:kr,polygonStart:function(){Di.lineStart=zee,Di.lineEnd=Uee},polygonEnd:function(){Di.lineStart=Di.lineEnd=Di.point=kr,kv.add(St(xv)),xv=new Os},result:function(){var e=kv/2;return kv=new Os,e}};function zee(){Di.point=qee}function qee(e,t){Di.point=o5,a5=Sv=e,i5=Lv=t}function o5(e,t){xv.add(Lv*e-Sv*t),Sv=e,Lv=t}function Uee(){o5(a5,i5)}var fu=1/0,qm=fu,hd=-fu,Um=hd,Wm={point:Wee,lineStart:kr,lineEnd:kr,polygonStart:kr,polygonEnd:kr,result:function(){var e=[[fu,qm],[hd,Um]];return hd=Um=-(qm=fu=1/0),e}};function Wee(e,t){e<fu&&(fu=e),e>hd&&(hd=e),t<qm&&(qm=t),t>Um&&(Um=t)}var Yv=0,Tv=0,md=0,Gm=0,Km=0,hu=0,Ev=0,Dv=0,pd=0,s5,l5,Ra,za,xr={point:Ws,lineStart:u5,lineEnd:c5,polygonStart:function(){xr.lineStart=Jee,xr.lineEnd=Zee},polygonEnd:function(){xr.point=Ws,xr.lineStart=u5,xr.lineEnd=c5},result:function(){var e=pd?[Ev/pd,Dv/pd]:hu?[Gm/hu,Km/hu]:md?[Yv/md,Tv/md]:[NaN,NaN];return Yv=Tv=md=Gm=Km=hu=Ev=Dv=pd=0,e}};function Ws(e,t){Yv+=e,Tv+=t,++md}function u5(){xr.point=Gee}function Gee(e,t){xr.point=Kee,Ws(Ra=e,za=t)}function Kee(e,t){var n=e-Ra,r=t-za,a=In(n*n+r*r);Gm+=a*(Ra+e)/2,Km+=a*(za+t)/2,hu+=a,Ws(Ra=e,za=t)}function c5(){xr.point=Ws}function Jee(){xr.point=Xee}function Zee(){d5(s5,l5)}function Xee(e,t){xr.point=d5,Ws(s5=Ra=e,l5=za=t)}function d5(e,t){var n=e-Ra,r=t-za,a=In(n*n+r*r);Gm+=a*(Ra+e)/2,Km+=a*(za+t)/2,hu+=a,a=za*e-Ra*t,Ev+=a*(Ra+e),Dv+=a*(za+t),pd+=a*3,Ws(Ra=e,za=t)}function f5(e){this._context=e}f5.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:{this._context.moveTo(e,t),this._point=1;break}case 1:{this._context.lineTo(e,t);break}default:{this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,$n);break}}},result:kr};var Nv=new Os,Cv,h5,m5,_d,gd,vd={point:kr,lineStart:function(){vd.point=Qee},lineEnd:function(){Cv&&p5(h5,m5),vd.point=kr},polygonStart:function(){Cv=!0},polygonEnd:function(){Cv=null},result:function(){var e=+Nv;return Nv=new Os,e}};function Qee(e,t){vd.point=p5,h5=_d=e,m5=gd=t}function p5(e,t){_d-=e,gd-=t,Nv.add(In(_d*_d+gd*gd)),_d=e,gd=t}let _5,Jm,g5,v5;class y5{constructor(t){this._append=t==null?b5:$ee(t),this._radius=4.5,this._=""}pointRadius(t){return this._radius=+t,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+="Z"),this._point=NaN}point(t,n){switch(this._point){case 0:{this._append`M${t},${n}`,this._point=1;break}case 1:{this._append`L${t},${n}`;break}default:{if(this._append`M${t},${n}`,this._radius!==g5||this._append!==Jm){const r=this._radius,a=this._;this._="",this._append`m0,${r}a${r},${r} 0 1,1 0,${-2*r}a${r},${r} 0 1,1 0,${2*r}z`,g5=r,Jm=this._append,v5=this._,this._=a}this._+=v5;break}}}result(){const t=this._;return this._="",t.length?t:null}}function b5(e){let t=1;this._+=e[0];for(const n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function $ee(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return b5;if(t!==_5){const n=10**t;_5=t,Jm=function(a){let o=1;this._+=a[0];for(const s=a.length;o<s;++o)this._+=Math.round(arguments[o]*n)/n+a[o]}}return Jm}function Av(e,t){let n=3,r=4.5,a,o;function s(l){return l&&(typeof r=="function"&&o.pointRadius(+r.apply(this,arguments)),Us(l,a(o))),o.result()}return s.area=function(l){return Us(l,a(Di)),Di.result()},s.measure=function(l){return Us(l,a(vd)),vd.result()},s.bounds=function(l){return Us(l,a(Wm)),Wm.result()},s.centroid=function(l){return Us(l,a(xr)),xr.result()},s.projection=function(l){return arguments.length?(a=l==null?(e=null,Mv):(e=l).stream,s):e},s.context=function(l){return arguments.length?(o=l==null?(t=null,new y5(n)):new f5(t=l),typeof r!="function"&&o.pointRadius(r),s):t},s.pointRadius=function(l){return arguments.length?(r=typeof l=="function"?l:(o.pointRadius(+l),+l),s):r},s.digits=function(l){if(!arguments.length)return n;if(l==null)n=null;else{const u=Math.floor(l);if(!(u>=0))throw new RangeError(`invalid digits: ${l}`);n=u}return t===null&&(o=new y5(n)),s},s.projection(e).digits(n).context(t)}function Zm(e){return{stream:Xm(e)}}function Xm(e){return function(t){var n=new Ov;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Ov(){}Ov.prototype={constructor:Ov,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function jv(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),Us(n,e.stream(Wm)),t(Wm.result()),r!=null&&e.clipExtent(r),e}function Bv(e,t,n){return jv(e,function(r){var a=t[1][0]-t[0][0],o=t[1][1]-t[0][1],s=Math.min(a/(r[1][0]-r[0][0]),o/(r[1][1]-r[0][1])),l=+t[0][0]+(a-s*(r[1][0]+r[0][0]))/2,u=+t[0][1]+(o-s*(r[1][1]+r[0][1]))/2;e.scale(150*s).translate([l,u])},n)}function w5(e,t,n){return Bv(e,[[0,0],t],n)}function M5(e,t,n){return jv(e,function(r){var a=+t,o=a/(r[1][0]-r[0][0]),s=(a-o*(r[1][0]+r[0][0]))/2,l=-o*r[0][1];e.scale(150*o).translate([s,l])},n)}function k5(e,t,n){return jv(e,function(r){var a=+t,o=a/(r[1][1]-r[0][1]),s=-o*r[0][0],l=(a-o*(r[1][1]+r[0][1]))/2;e.scale(150*o).translate([s,l])},n)}var x5=16,ete=st(30*Ft);function S5(e,t){return+t?nte(e,t):tte(e)}function tte(e){return Xm({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function nte(e,t){function n(r,a,o,s,l,u,c,d,h,f,m,b,M,x){var L=c-r,g=d-a,y=L*L+g*g;if(y>4*t&&M--){var k=s+f,w=l+m,T=u+b,S=In(k*k+w*w+T*T),D=Mr(T/=S),O=St(St(T)-1)<tt||St(o-h)<tt?(o+h)/2:Ei(w,k),V=e(O,D),E=V[0],R=V[1],j=E-r,F=R-a,B=g*j-L*F;(B*B/y>t||St((L*j+g*F)/y-.5)>.3||s*f+l*m+u*b<ete)&&(n(r,a,o,s,l,u,E,R,O,k/=S,w/=S,T,M,x),x.point(E,R),n(E,R,O,k,w,T,c,d,h,f,m,b,M,x))}}return function(r){var a,o,s,l,u,c,d,h,f,m,b,M,x={point:L,lineStart:g,lineEnd:k,polygonStart:function(){r.polygonStart(),x.lineStart=w},polygonEnd:function(){r.polygonEnd(),x.lineStart=g}};function L(D,O){D=e(D,O),r.point(D[0],D[1])}function g(){h=NaN,x.point=y,r.lineStart()}function y(D,O){var V=du([D,O]),E=e(D,O);n(h,f,d,m,b,M,h=E[0],f=E[1],d=D,m=V[0],b=V[1],M=V[2],x5,r),r.point(h,f)}function k(){x.point=L,r.lineEnd()}function w(){g(),x.point=T,x.lineEnd=S}function T(D,O){y(a=D,O),o=h,s=f,l=m,u=b,c=M,x.point=y}function S(){n(h,f,d,m,b,M,o,s,a,l,u,c,x5,r),x.lineEnd=k,k()}return x}}var rte=Xm({point:function(e,t){this.stream.point(e*Ft,t*Ft)}});function ate(e){return Xm({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function ite(e,t,n,r,a){function o(s,l){return s*=r,l*=a,[t+e*s,n-e*l]}return o.invert=function(s,l){return[(s-t)/e*r,(n-l)/e*a]},o}function L5(e,t,n,r,a,o){if(!o)return ite(e,t,n,r,a);var s=st(o),l=Xe(o),u=s*e,c=l*e,d=s/e,h=l/e,f=(l*n-s*t)/e,m=(l*t+s*n)/e;function b(M,x){return M*=r,x*=a,[u*M-c*x+t,n-c*M-u*x]}return b.invert=function(M,x){return[r*(d*M-h*x+f),a*(m-h*M-d*x)]},b}function Lo(e){return Y5(function(){return e})()}function Y5(e){var t,n=150,r=480,a=250,o=0,s=0,l=0,u=0,c=0,d,h=0,f=1,m=1,b=null,M=n5,x=null,L,g,y,k=Mv,w=.5,T,S,D,O,V;function E(B){return D(B[0]*Ft,B[1]*Ft)}function R(B){return B=D.invert(B[0],B[1]),B&&[B[0]*Nn,B[1]*Nn]}E.stream=function(B){return O&&V===B?O:O=rte(ate(d)(M(T(k(V=B)))))},E.preclip=function(B){return arguments.length?(M=B,b=void 0,F()):M},E.postclip=function(B){return arguments.length?(k=B,x=L=g=y=null,F()):k},E.clipAngle=function(B){return arguments.length?(M=+B?Fee(b=B*Ft):(b=null,n5),F()):b*Nn},E.clipExtent=function(B){return arguments.length?(k=B==null?(x=L=g=y=null,Mv):r5(x=+B[0][0],L=+B[0][1],g=+B[1][0],y=+B[1][1]),F()):x==null?null:[[x,L],[g,y]]},E.scale=function(B){return arguments.length?(n=+B,j()):n},E.translate=function(B){return arguments.length?(r=+B[0],a=+B[1],j()):[r,a]},E.center=function(B){return arguments.length?(o=B[0]%360*Ft,s=B[1]%360*Ft,j()):[o*Nn,s*Nn]},E.rotate=function(B){return arguments.length?(l=B[0]%360*Ft,u=B[1]%360*Ft,c=B.length>2?B[2]%360*Ft:0,j()):[l*Nn,u*Nn,c*Nn]},E.angle=function(B){return arguments.length?(h=B%360*Ft,j()):h*Nn},E.reflectX=function(B){return arguments.length?(f=B?-1:1,j()):f<0},E.reflectY=function(B){return arguments.length?(m=B?-1:1,j()):m<0},E.precision=function(B){return arguments.length?(T=S5(S,w=B*B),F()):In(w)},E.fitExtent=function(B,z){return Bv(E,B,z)},E.fitSize=function(B,z){return w5(E,B,z)},E.fitWidth=function(B,z){return M5(E,B,z)},E.fitHeight=function(B,z){return k5(E,B,z)};function j(){var B=L5(n,0,0,f,m,h).apply(null,t(o,s)),z=L5(n,r-B[0],a-B[1],f,m,h);return d=GS(l,u,c),S=yv(t,z),D=yv(d,S),T=S5(S,w),F()}function F(){return O=V=null,E}return function(){return t=e.apply(this,arguments),E.invert=t.invert&&R,j()}}function Pv(e){var t=0,n=ct/3,r=Y5(e),a=r(t,n);return a.parallels=function(o){return arguments.length?r(t=o[0]*Ft,n=o[1]*Ft):[t*Nn,n*Nn]},a}function ote(e){var t=st(e);function n(r,a){return[r*t,Xe(a)/t]}return n.invert=function(r,a){return[r/t,Mr(a*t)]},n}function ste(e,t){var n=Xe(e),r=(n+Xe(t))/2;if(St(r)<tt)return ote(e);var a=1+n*(2*r-n),o=In(a)/r;function s(l,u){var c=In(a-2*r*Xe(u))/r;return[c*Xe(l*=r),o-c*st(l)]}return s.invert=function(l,u){var c=o-u,d=Ei(l,St(c))*wr(c);return c*r<0&&(d-=ct*wr(l)*wr(c)),[d/r,Mr((a-(l*l+c*c)*r*r)/(2*r))]},s}function Qm(){return Pv(ste).scale(155.424).center([0,33.6442])}function T5(){return Qm().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function lte(e){var t=e.length;return{point:function(n,r){for(var a=-1;++a<t;)e[a].point(n,r)},sphere:function(){for(var n=-1;++n<t;)e[n].sphere()},lineStart:function(){for(var n=-1;++n<t;)e[n].lineStart()},lineEnd:function(){for(var n=-1;++n<t;)e[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<t;)e[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<t;)e[n].polygonEnd()}}}function ute(){var e,t,n=T5(),r,a=Qm().rotate([154,0]).center([-2,58.5]).parallels([55,65]),o,s=Qm().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l,u,c={point:function(f,m){u=[f,m]}};function d(f){var m=f[0],b=f[1];return u=null,r.point(m,b),u||(o.point(m,b),u)||(l.point(m,b),u)}d.invert=function(f){var m=n.scale(),b=n.translate(),M=(f[0]-b[0])/m,x=(f[1]-b[1])/m;return(x>=.12&&x<.234&&M>=-.425&&M<-.214?a:x>=.166&&x<.234&&M>=-.214&&M<-.115?s:n).invert(f)},d.stream=function(f){return e&&t===f?e:e=lte([n.stream(t=f),a.stream(f),s.stream(f)])},d.precision=function(f){return arguments.length?(n.precision(f),a.precision(f),s.precision(f),h()):n.precision()},d.scale=function(f){return arguments.length?(n.scale(f),a.scale(f*.35),s.scale(f),d.translate(n.translate())):n.scale()},d.translate=function(f){if(!arguments.length)return n.translate();var m=n.scale(),b=+f[0],M=+f[1];return r=n.translate(f).clipExtent([[b-.455*m,M-.238*m],[b+.455*m,M+.238*m]]).stream(c),o=a.translate([b-.307*m,M+.201*m]).clipExtent([[b-.425*m+tt,M+.12*m+tt],[b-.214*m-tt,M+.234*m-tt]]).stream(c),l=s.translate([b-.205*m,M+.212*m]).clipExtent([[b-.214*m+tt,M+.166*m+tt],[b-.115*m-tt,M+.234*m-tt]]).stream(c),h()},d.fitExtent=function(f,m){return Bv(d,f,m)},d.fitSize=function(f,m){return w5(d,f,m)},d.fitWidth=function(f,m){return M5(d,f,m)},d.fitHeight=function(f,m){return k5(d,f,m)};function h(){return e=t=null,d}return d.scale(1070)}function E5(e){return function(t,n){var r=st(t),a=st(n),o=e(r*a);return o===1/0?[2,0]:[o*a*Xe(t),o*Xe(n)]}}function yd(e){return function(t,n){var r=In(t*t+n*n),a=e(r),o=Xe(a),s=st(a);return[Ei(t*o,r*s),Mr(r&&n*o/r)]}}var D5=E5(function(e){return In(2/(1+e))});D5.invert=yd(function(e){return 2*Mr(e/2)});function cte(){return Lo(D5).scale(124.75).clipAngle(180-.001)}var N5=E5(function(e){return(e=zS(e))&&e/Xe(e)});N5.invert=yd(function(e){return e});function dte(){return Lo(N5).scale(79.4188).clipAngle(180-.001)}function $m(e,t){return[e,Bm(mv((Ht+t)/2))]}$m.invert=function(e,t){return[e,2*cu(RS(t))-Ht]};function fte(){return C5($m).scale(961/$n)}function C5(e){var t=Lo(e),n=t.center,r=t.scale,a=t.translate,o=t.clipExtent,s=null,l,u,c;t.scale=function(h){return arguments.length?(r(h),d()):r()},t.translate=function(h){return arguments.length?(a(h),d()):a()},t.center=function(h){return arguments.length?(n(h),d()):n()},t.clipExtent=function(h){return arguments.length?(h==null?s=l=u=c=null:(s=+h[0][0],l=+h[0][1],u=+h[1][0],c=+h[1][1]),d()):s==null?null:[[s,l],[u,c]]};function d(){var h=ct*r(),f=t(Aee(t.rotate()).invert([0,0]));return o(s==null?[[f[0]-h,f[1]-h],[f[0]+h,f[1]+h]]:e===$m?[[Math.max(f[0]-h,s),l],[Math.min(f[0]+h,u),c]]:[[s,Math.max(f[1]-h,l)],[u,Math.min(f[1]+h,c)]])}return d()}function ep(e){return mv((Ht+e)/2)}function hte(e,t){var n=st(e),r=e===t?Xe(e):Bm(n/st(t))/Bm(ep(t)/ep(e)),a=n*hv(ep(e),r)/r;if(!r)return $m;function o(s,l){a>0?l<-Ht+tt&&(l=-Ht+tt):l>Ht-tt&&(l=Ht-tt);var u=a/hv(ep(l),r);return[u*Xe(r*s),a-u*st(r*s)]}return o.invert=function(s,l){var u=a-l,c=wr(r)*In(s*s+u*u),d=Ei(s,St(u))*wr(u);return u*r<0&&(d-=ct*wr(s)*wr(u)),[d/r,2*cu(hv(a/c,1/r))-Ht]},o}function mte(){return Pv(hte).scale(109.5).parallels([30,30])}function tp(e,t){return[e,t]}tp.invert=tp;function pte(){return Lo(tp).scale(152.63)}function _te(e,t){var n=st(e),r=e===t?Xe(e):(n-st(t))/(t-e),a=n/r+e;if(St(r)<tt)return tp;function o(s,l){var u=a-l,c=r*s;return[u*Xe(c),a-u*st(c)]}return o.invert=function(s,l){var u=a-l,c=Ei(s,St(u))*wr(u);return u*r<0&&(c-=ct*wr(s)*wr(u)),[c/r,a-wr(r)*In(s*s+u*u)]},o}function gte(){return Pv(_te).scale(131.154).center([0,13.9389])}var bd=1.340264,wd=-.081106,Md=893e-6,kd=.003796,np=In(3)/2,vte=12;function A5(e,t){var n=Mr(np*Xe(t)),r=n*n,a=r*r*r;return[e*st(n)/(np*(bd+3*wd*r+a*(7*Md+9*kd*r))),n*(bd+wd*r+a*(Md+kd*r))]}A5.invert=function(e,t){for(var n=t,r=n*n,a=r*r*r,o=0,s,l,u;o<vte&&(l=n*(bd+wd*r+a*(Md+kd*r))-t,u=bd+3*wd*r+a*(7*Md+9*kd*r),n-=s=l/u,r=n*n,a=r*r*r,!(St(s)<HS));++o);return[np*e*(bd+3*wd*r+a*(7*Md+9*kd*r))/st(n),Mr(Xe(n)/np)]};function yte(){return Lo(A5).scale(177.158)}function O5(e,t){var n=st(t),r=st(e)*n;return[n*Xe(e)/r,Xe(t)/r]}O5.invert=yd(cu);function bte(){return Lo(O5).scale(144.049).clipAngle(60)}function j5(e,t){return[st(t)*Xe(e),Xe(t)]}j5.invert=yd(Mr);function wte(){return Lo(j5).scale(249.5).clipAngle(90+tt)}function B5(e,t){var n=st(t),r=1+st(e)*n;return[n*Xe(e)/r,Xe(t)/r]}B5.invert=yd(function(e){return 2*cu(e)});function Mte(){return Lo(B5).scale(250).clipAngle(142)}function P5(e,t){return[Bm(mv((Ht+t)/2)),-e]}P5.invert=function(e,t){return[-t,2*cu(RS(e))-Ht]};function kte(){var e=C5(P5),t=e.center,n=e.rotate;return e.center=function(r){return arguments.length?t([-r[1],r[0]]):(r=t(),[r[1],-r[0]])},e.rotate=function(r){return arguments.length?n([r[0],r[1],r.length>2?r[2]+90:90]):(r=n(),[r[0],r[1],r[2]-90])},n([0,0,90]).scale(159.155)}function qa(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function xd(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Vv=Symbol("implicit");function Iv(){var e=new Qc,t=[],n=[],r=Vv;function a(o){let s=e.get(o);if(s===void 0){if(r!==Vv)return r;e.set(o,s=t.push(o)-1)}return n[s%n.length]}return a.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new Qc;for(const s of o)e.has(s)||e.set(s,t.push(s)-1);return a},a.range=function(o){return arguments.length?(n=Array.from(o),a):n.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.copy=function(){return Iv(t,n).unknown(r)},qa.apply(a,arguments),a}function Yo(){var e=Iv().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,o,s,l=!1,u=0,c=0,d=.5;delete e.unknown;function h(){var f=t().length,m=a<r,b=m?a:r,M=m?r:a;o=(M-b)/Math.max(1,f-u+c*2),l&&(o=Math.floor(o)),b+=(M-b-o*(f-u))*d,s=o*(1-u),l&&(b=Math.round(b),s=Math.round(s));var x=Sg(f).map(function(L){return b+o*L});return n(m?x.reverse():x)}return e.domain=function(f){return arguments.length?(t(f),h()):t()},e.range=function(f){return arguments.length?([r,a]=f,r=+r,a=+a,h()):[r,a]},e.rangeRound=function(f){return[r,a]=f,r=+r,a=+a,l=!0,h()},e.bandwidth=function(){return s},e.step=function(){return o},e.round=function(f){return arguments.length?(l=!!f,h()):l},e.padding=function(f){return arguments.length?(u=Math.min(1,c=+f),h()):u},e.paddingInner=function(f){return arguments.length?(u=Math.min(1,f),h()):u},e.paddingOuter=function(f){return arguments.length?(c=+f,h()):c},e.align=function(f){return arguments.length?(d=Math.max(0,Math.min(1,f)),h()):d},e.copy=function(){return Yo(t(),[r,a]).round(l).paddingInner(u).paddingOuter(c).align(d)},qa.apply(h(),arguments)}function V5(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return V5(t())},e}function xte(){return V5(Yo.apply(null,arguments).paddingInner(1))}function Ste(e){return function(){return e}}function Hv(e){return+e}var I5=[0,1];function Hn(e){return e}function Fv(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Ste(isNaN(t)?NaN:.5)}function Lte(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Yte(e,t,n){var r=e[0],a=e[1],o=t[0],s=t[1];return a<r?(r=Fv(a,r),o=n(s,o)):(r=Fv(r,a),o=n(o,s)),function(l){return o(r(l))}}function Tte(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),o=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)a[s]=Fv(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(l){var u=tm(e,l,1,r)-1;return o[u](a[u](l))}}function Sd(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function rp(){var e=I5,t=I5,n=Ha,r,a,o,s=Hn,l,u,c;function d(){var f=Math.min(e.length,t.length);return s!==Hn&&(s=Lte(e[0],e[f-1])),l=f>2?Tte:Yte,u=c=null,h}function h(f){return f==null||isNaN(f=+f)?o:(u||(u=l(e.map(r),t,n)))(r(s(f)))}return h.invert=function(f){return s(a((c||(c=l(t,e.map(r),yn)))(f)))},h.domain=function(f){return arguments.length?(e=Array.from(f,Hv),d()):e.slice()},h.range=function(f){return arguments.length?(t=Array.from(f),d()):t.slice()},h.rangeRound=function(f){return t=Array.from(f),n=km,d()},h.clamp=function(f){return arguments.length?(s=f?!0:Hn,d()):s!==Hn},h.interpolate=function(f){return arguments.length?(n=f,d()):n},h.unknown=function(f){return arguments.length?(o=f,h):o},function(f,m){return r=f,a=m,d()}}function H5(){return rp()(Hn,Hn)}function Ete(e,t,n,r){var a=kg(e,t,n),o;switch(r=dd(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=Nee(a,s))&&(r.precision=o),IS(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Cee(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=Dee(a))&&(r.precision=o-(r.type==="%")*2);break}}return uu(r)}function mu(e){var t=e.domain;return e.ticks=function(n){var r=t();return ed(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return Ete(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,o=r.length-1,s=r[a],l=r[o],u,c,d=10;for(l<s&&(c=s,s=l,l=c,c=a,a=o,o=c);d-- >0;){if(c=sm(s,l,n),c===u)return r[a]=s,r[o]=l,t(r);if(c>0)s=Math.floor(s/c)*c,l=Math.ceil(l/c)*c;else if(c<0)s=Math.ceil(s*c)/c,l=Math.floor(l*c)/c;else break;u=c}return e},e}function Sr(){var e=H5();return e.copy=function(){return Sd(e,Sr())},qa.apply(e,arguments),mu(e)}function F5(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Hv),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return F5(e).unknown(t)},e=arguments.length?Array.from(e,Hv):[0,1],mu(n)}function R5(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],o=e[r],s;return o<a&&(s=n,n=r,r=s,s=a,a=o,o=s),e[n]=t.floor(a),e[r]=t.ceil(o),e}function z5(e){return Math.log(e)}function q5(e){return Math.exp(e)}function Dte(e){return-Math.log(-e)}function Nte(e){return-Math.exp(-e)}function Cte(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Ate(e){return e===10?Cte:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Ote(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function U5(e){return(t,n)=>-e(-t,n)}function W5(e){const t=e(z5,q5),n=t.domain;let r=10,a,o;function s(){return a=Ote(r),o=Ate(r),n()[0]<0?(a=U5(a),o=U5(o),e(Dte,Nte)):e(z5,q5),t}return t.base=function(l){return arguments.length?(r=+l,s()):r},t.domain=function(l){return arguments.length?(n(l),s()):n()},t.ticks=l=>{const u=n();let c=u[0],d=u[u.length-1];const h=d<c;h&&([c,d]=[d,c]);let f=a(c),m=a(d),b,M;const x=l==null?10:+l;let L=[];if(!(r%1)&&m-f<x){if(f=Math.floor(f),m=Math.ceil(m),c>0){for(;f<=m;++f)for(b=1;b<r;++b)if(M=f<0?b/o(-f):b*o(f),!(M<c)){if(M>d)break;L.push(M)}}else for(;f<=m;++f)for(b=r-1;b>=1;--b)if(M=f>0?b/o(-f):b*o(f),!(M<c)){if(M>d)break;L.push(M)}L.length*2<x&&(L=ed(c,d,x))}else L=ed(f,m,Math.min(m-f,x)).map(o);return h?L.reverse():L},t.tickFormat=(l,u)=>{if(l==null&&(l=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=dd(u)).precision==null&&(u.trim=!0),u=uu(u)),l===1/0)return u;const c=Math.max(1,r*l/t.ticks().length);return d=>{let h=d/o(Math.round(a(d)));return h*r<r-.5&&(h*=r),h<=c?u(d):""}},t.nice=()=>n(R5(n(),{floor:l=>o(Math.floor(a(l))),ceil:l=>o(Math.ceil(a(l)))})),t}function G5(){const e=W5(rp()).domain([1,10]);return e.copy=()=>Sd(e,G5()).base(e.base()),qa.apply(e,arguments),e}function K5(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function J5(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Z5(e){var t=1,n=e(K5(t),J5(t));return n.constant=function(r){return arguments.length?e(K5(t=+r),J5(t)):t},mu(n)}function X5(){var e=Z5(rp());return e.copy=function(){return Sd(e,X5()).constant(e.constant())},qa.apply(e,arguments)}function Q5(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function jte(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Bte(e){return e<0?-e*e:e*e}function $5(e){var t=e(Hn,Hn),n=1;function r(){return n===1?e(Hn,Hn):n===.5?e(jte,Bte):e(Q5(n),Q5(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},mu(t)}function eL(){var e=$5(rp());return e.copy=function(){return Sd(e,eL()).exponent(e.exponent())},qa.apply(e,arguments),e}function tL(){var e=[],t=[],n=[],r;function a(){var s=0,l=Math.max(1,t.length);for(n=new Array(l-1);++s<l;)n[s-1]=yZ(e,s/l);return o}function o(s){return s==null||isNaN(s=+s)?r:t[tm(n,s)]}return o.invertExtent=function(s){var l=t.indexOf(s);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},o.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let l of s)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(ko),a()},o.range=function(s){return arguments.length?(t=Array.from(s),a()):t.slice()},o.unknown=function(s){return arguments.length?(r=s,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return tL().domain(e).range(t).unknown(r)},qa.apply(o,arguments)}function nL(){var e=[.5],t=[0,1],n,r=1;function a(o){return o!=null&&o<=o?t[tm(e,o,0,r)]:n}return a.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(o){var s=t.indexOf(o);return[e[s-1],e[s]]},a.unknown=function(o){return arguments.length?(n=o,a):n},a.copy=function(){return nL().domain(e).range(t).unknown(n)},qa.apply(a,arguments)}const Rv=new Date,zv=new Date;function Qt(e,t,n,r){function a(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return a.floor=o=>(e(o=new Date(+o)),o),a.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),a.round=o=>{const s=a(o),l=a.ceil(o);return o-s<l-o?s:l},a.offset=(o,s)=>(t(o=new Date(+o),s==null?1:Math.floor(s)),o),a.range=(o,s,l)=>{const u=[];if(o=a.ceil(o),l=l==null?1:Math.floor(l),!(o<s)||!(l>0))return u;let c;do u.push(c=new Date(+o)),t(o,l),e(o);while(c<o&&o<s);return u},a.filter=o=>Qt(s=>{if(s>=s)for(;e(s),!o(s);)s.setTime(s-1)},(s,l)=>{if(s>=s)if(l<0)for(;++l<=0;)for(;t(s,-1),!o(s););else for(;--l>=0;)for(;t(s,1),!o(s););}),n&&(a.count=(o,s)=>(Rv.setTime(+o),zv.setTime(+s),e(Rv),e(zv),Math.floor(n(Rv,zv))),a.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?a.filter(r?s=>r(s)%o===0:s=>a.count(0,s)%o===0):a)),a}const ap=Qt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ap.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Qt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ap),ap.range;const Ni=1e3,Lr=Ni*60,Ci=Lr*60,Ai=Ci*24,qv=Ai*7,rL=Ai*30,Uv=Ai*365,Zr=Qt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ni)},(e,t)=>(t-e)/Ni,e=>e.getUTCSeconds());Zr.range;const Ld=Qt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ni)},(e,t)=>{e.setTime(+e+t*Lr)},(e,t)=>(t-e)/Lr,e=>e.getMinutes());Ld.range;const Yd=Qt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Lr)},(e,t)=>(t-e)/Lr,e=>e.getUTCMinutes());Yd.range;const Td=Qt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ni-e.getMinutes()*Lr)},(e,t)=>{e.setTime(+e+t*Ci)},(e,t)=>(t-e)/Ci,e=>e.getHours());Td.range;const Ed=Qt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ci)},(e,t)=>(t-e)/Ci,e=>e.getUTCHours());Ed.range;const Gs=Qt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Lr)/Ai,e=>e.getDate()-1);Gs.range;const ip=Qt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ai,e=>e.getUTCDate()-1);ip.range;const op=Qt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ai,e=>Math.floor(e/Ai));op.range;function Ks(e){return Qt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Lr)/qv)}const pu=Ks(0),Dd=Ks(1),aL=Ks(2),iL=Ks(3),Js=Ks(4),oL=Ks(5),sL=Ks(6);pu.range,Dd.range,aL.range,iL.range,Js.range,oL.range,sL.range;function Zs(e){return Qt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/qv)}const _u=Zs(0),Nd=Zs(1),lL=Zs(2),uL=Zs(3),Xs=Zs(4),cL=Zs(5),dL=Zs(6);_u.range,Nd.range,lL.range,uL.range,Xs.range,cL.range,dL.range;const Cd=Qt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Cd.range;const Ad=Qt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Ad.range;const Xr=Qt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Xr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Qt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),Xr.range;const Qr=Qt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Qr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Qt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),Qr.range;function fL(e,t,n,r,a,o){const s=[[Zr,1,Ni],[Zr,5,5*Ni],[Zr,15,15*Ni],[Zr,30,30*Ni],[o,1,Lr],[o,5,5*Lr],[o,15,15*Lr],[o,30,30*Lr],[a,1,Ci],[a,3,3*Ci],[a,6,6*Ci],[a,12,12*Ci],[r,1,Ai],[r,2,2*Ai],[n,1,qv],[t,1,rL],[t,3,3*rL],[e,1,Uv]];function l(c,d,h){const f=d<c;f&&([c,d]=[d,c]);const m=h&&typeof h.range=="function"?h:u(c,d,h),b=m?m.range(c,+d+1):[];return f?b.reverse():b}function u(c,d,h){const f=Math.abs(d-c)/h,m=em(([,,x])=>x).right(s,f);if(m===s.length)return e.every(kg(c/Uv,d/Uv,h));if(m===0)return ap.every(Math.max(kg(c,d,h),1));const[b,M]=s[f/s[m-1][2]<s[m][2]/f?m-1:m];return b.every(M)}return[l,u]}const[Pte,hL]=fL(Qr,Ad,_u,op,Ed,Yd),[Vte,Ite]=fL(Xr,Cd,pu,Gs,Td,Ld);function Wv(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Gv(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Od(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Hte(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,o=e.days,s=e.shortDays,l=e.months,u=e.shortMonths,c=jd(a),d=Bd(a),h=jd(o),f=Bd(o),m=jd(s),b=Bd(s),M=jd(l),x=Bd(l),L=jd(u),g=Bd(u),y={a:G,A:q,b:J,B:K,c:null,d:yL,e:yL,f:une,g:yne,G:wne,H:one,I:sne,j:lne,L:bL,m:cne,M:dne,p:$,q:ee,Q:LL,s:YL,S:fne,u:hne,U:mne,V:pne,w:_ne,W:gne,x:null,X:null,y:vne,Y:bne,Z:Mne,"%":SL},k={a:ie,A:ue,b:ce,B:Me,c:null,d:ML,e:ML,f:Lne,g:Bne,G:Vne,H:kne,I:xne,j:Sne,L:kL,m:Yne,M:Tne,p:he,q:pe,Q:LL,s:YL,S:Ene,u:Dne,U:Nne,V:Cne,w:Ane,W:One,x:null,X:null,y:jne,Y:Pne,Z:Ine,"%":SL},w={a:V,A:E,b:R,B:j,c:F,d:gL,e:gL,f:nne,g:_L,G:pL,H:vL,I:vL,j:Qte,L:tne,m:Xte,M:$te,p:O,q:Zte,Q:ane,s:ine,S:ene,u:Ute,U:Wte,V:Gte,w:qte,W:Kte,x:B,X:z,y:_L,Y:pL,Z:Jte,"%":rne};y.x=T(n,y),y.X=T(r,y),y.c=T(t,y),k.x=T(n,k),k.X=T(r,k),k.c=T(t,k);function T(Q,de){return function(ye){var re=[],Le=-1,Ee=0,Pe=Q.length,se,te,ae;for(ye instanceof Date||(ye=new Date(+ye));++Le<Pe;)Q.charCodeAt(Le)===37&&(re.push(Q.slice(Ee,Le)),(te=mL[se=Q.charAt(++Le)])!=null?se=Q.charAt(++Le):te=se==="e"?" ":"0",(ae=de[se])&&(se=ae(ye,te)),re.push(se),Ee=Le+1);return re.push(Q.slice(Ee,Le)),re.join("")}}function S(Q,de){return function(ye){var re=Od(1900,void 0,1),Le=D(re,Q,ye+="",0),Ee,Pe;if(Le!=ye.length)return null;if("Q"in re)return new Date(re.Q);if("s"in re)return new Date(re.s*1e3+("L"in re?re.L:0));if(de&&!("Z"in re)&&(re.Z=0),"p"in re&&(re.H=re.H%12+re.p*12),re.m===void 0&&(re.m="q"in re?re.q:0),"V"in re){if(re.V<1||re.V>53)return null;"w"in re||(re.w=1),"Z"in re?(Ee=Gv(Od(re.y,0,1)),Pe=Ee.getUTCDay(),Ee=Pe>4||Pe===0?Nd.ceil(Ee):Nd(Ee),Ee=ip.offset(Ee,(re.V-1)*7),re.y=Ee.getUTCFullYear(),re.m=Ee.getUTCMonth(),re.d=Ee.getUTCDate()+(re.w+6)%7):(Ee=Wv(Od(re.y,0,1)),Pe=Ee.getDay(),Ee=Pe>4||Pe===0?Dd.ceil(Ee):Dd(Ee),Ee=Gs.offset(Ee,(re.V-1)*7),re.y=Ee.getFullYear(),re.m=Ee.getMonth(),re.d=Ee.getDate()+(re.w+6)%7)}else("W"in re||"U"in re)&&("w"in re||(re.w="u"in re?re.u%7:"W"in re?1:0),Pe="Z"in re?Gv(Od(re.y,0,1)).getUTCDay():Wv(Od(re.y,0,1)).getDay(),re.m=0,re.d="W"in re?(re.w+6)%7+re.W*7-(Pe+5)%7:re.w+re.U*7-(Pe+6)%7);return"Z"in re?(re.H+=re.Z/100|0,re.M+=re.Z%100,Gv(re)):Wv(re)}}function D(Q,de,ye,re){for(var Le=0,Ee=de.length,Pe=ye.length,se,te;Le<Ee;){if(re>=Pe)return-1;if(se=de.charCodeAt(Le++),se===37){if(se=de.charAt(Le++),te=w[se in mL?de.charAt(Le++):se],!te||(re=te(Q,ye,re))<0)return-1}else if(se!=ye.charCodeAt(re++))return-1}return re}function O(Q,de,ye){var re=c.exec(de.slice(ye));return re?(Q.p=d.get(re[0].toLowerCase()),ye+re[0].length):-1}function V(Q,de,ye){var re=m.exec(de.slice(ye));return re?(Q.w=b.get(re[0].toLowerCase()),ye+re[0].length):-1}function E(Q,de,ye){var re=h.exec(de.slice(ye));return re?(Q.w=f.get(re[0].toLowerCase()),ye+re[0].length):-1}function R(Q,de,ye){var re=L.exec(de.slice(ye));return re?(Q.m=g.get(re[0].toLowerCase()),ye+re[0].length):-1}function j(Q,de,ye){var re=M.exec(de.slice(ye));return re?(Q.m=x.get(re[0].toLowerCase()),ye+re[0].length):-1}function F(Q,de,ye){return D(Q,t,de,ye)}function B(Q,de,ye){return D(Q,n,de,ye)}function z(Q,de,ye){return D(Q,r,de,ye)}function G(Q){return s[Q.getDay()]}function q(Q){return o[Q.getDay()]}function J(Q){return u[Q.getMonth()]}function K(Q){return l[Q.getMonth()]}function $(Q){return a[+(Q.getHours()>=12)]}function ee(Q){return 1+~~(Q.getMonth()/3)}function ie(Q){return s[Q.getUTCDay()]}function ue(Q){return o[Q.getUTCDay()]}function ce(Q){return u[Q.getUTCMonth()]}function Me(Q){return l[Q.getUTCMonth()]}function he(Q){return a[+(Q.getUTCHours()>=12)]}function pe(Q){return 1+~~(Q.getUTCMonth()/3)}return{format:function(Q){var de=T(Q+="",y);return de.toString=function(){return Q},de},parse:function(Q){var de=S(Q+="",!1);return de.toString=function(){return Q},de},utcFormat:function(Q){var de=T(Q+="",k);return de.toString=function(){return Q},de},utcParse:function(Q){var de=S(Q+="",!0);return de.toString=function(){return Q},de}}}var mL={"-":"",_:" ",0:"0"},sn=/^\s*\d+/,Fte=/^%/,Rte=/[\\^$*+?|[\]().{}]/g;function kt(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",o=a.length;return r+(o<n?new Array(n-o+1).join(t)+a:a)}function zte(e){return e.replace(Rte,"\\$&")}function jd(e){return new RegExp("^(?:"+e.map(zte).join("|")+")","i")}function Bd(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function qte(e,t,n){var r=sn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ute(e,t,n){var r=sn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Wte(e,t,n){var r=sn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Gte(e,t,n){var r=sn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Kte(e,t,n){var r=sn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function pL(e,t,n){var r=sn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function _L(e,t,n){var r=sn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Jte(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Zte(e,t,n){var r=sn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Xte(e,t,n){var r=sn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function gL(e,t,n){var r=sn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Qte(e,t,n){var r=sn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function vL(e,t,n){var r=sn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function $te(e,t,n){var r=sn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ene(e,t,n){var r=sn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function tne(e,t,n){var r=sn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function nne(e,t,n){var r=sn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function rne(e,t,n){var r=Fte.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ane(e,t,n){var r=sn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ine(e,t,n){var r=sn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function yL(e,t){return kt(e.getDate(),t,2)}function one(e,t){return kt(e.getHours(),t,2)}function sne(e,t){return kt(e.getHours()%12||12,t,2)}function lne(e,t){return kt(1+Gs.count(Xr(e),e),t,3)}function bL(e,t){return kt(e.getMilliseconds(),t,3)}function une(e,t){return bL(e,t)+"000"}function cne(e,t){return kt(e.getMonth()+1,t,2)}function dne(e,t){return kt(e.getMinutes(),t,2)}function fne(e,t){return kt(e.getSeconds(),t,2)}function hne(e){var t=e.getDay();return t===0?7:t}function mne(e,t){return kt(pu.count(Xr(e)-1,e),t,2)}function wL(e){var t=e.getDay();return t>=4||t===0?Js(e):Js.ceil(e)}function pne(e,t){return e=wL(e),kt(Js.count(Xr(e),e)+(Xr(e).getDay()===4),t,2)}function _ne(e){return e.getDay()}function gne(e,t){return kt(Dd.count(Xr(e)-1,e),t,2)}function vne(e,t){return kt(e.getFullYear()%100,t,2)}function yne(e,t){return e=wL(e),kt(e.getFullYear()%100,t,2)}function bne(e,t){return kt(e.getFullYear()%1e4,t,4)}function wne(e,t){var n=e.getDay();return e=n>=4||n===0?Js(e):Js.ceil(e),kt(e.getFullYear()%1e4,t,4)}function Mne(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+kt(t/60|0,"0",2)+kt(t%60,"0",2)}function ML(e,t){return kt(e.getUTCDate(),t,2)}function kne(e,t){return kt(e.getUTCHours(),t,2)}function xne(e,t){return kt(e.getUTCHours()%12||12,t,2)}function Sne(e,t){return kt(1+ip.count(Qr(e),e),t,3)}function kL(e,t){return kt(e.getUTCMilliseconds(),t,3)}function Lne(e,t){return kL(e,t)+"000"}function Yne(e,t){return kt(e.getUTCMonth()+1,t,2)}function Tne(e,t){return kt(e.getUTCMinutes(),t,2)}function Ene(e,t){return kt(e.getUTCSeconds(),t,2)}function Dne(e){var t=e.getUTCDay();return t===0?7:t}function Nne(e,t){return kt(_u.count(Qr(e)-1,e),t,2)}function xL(e){var t=e.getUTCDay();return t>=4||t===0?Xs(e):Xs.ceil(e)}function Cne(e,t){return e=xL(e),kt(Xs.count(Qr(e),e)+(Qr(e).getUTCDay()===4),t,2)}function Ane(e){return e.getUTCDay()}function One(e,t){return kt(Nd.count(Qr(e)-1,e),t,2)}function jne(e,t){return kt(e.getUTCFullYear()%100,t,2)}function Bne(e,t){return e=xL(e),kt(e.getUTCFullYear()%100,t,2)}function Pne(e,t){return kt(e.getUTCFullYear()%1e4,t,4)}function Vne(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Xs(e):Xs.ceil(e),kt(e.getUTCFullYear()%1e4,t,4)}function Ine(){return"+0000"}function SL(){return"%"}function LL(e){return+e}function YL(e){return Math.floor(+e/1e3)}var gu,Kv,Pd;Hne({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"]});function Hne(e){return gu=Hte(e),Kv=gu.format,gu.parse,Pd=gu.utcFormat,gu.utcParse,gu}function Fne(e){return new Date(e)}function Rne(e){return e instanceof Date?+e:+new Date(+e)}function Jv(e,t,n,r,a,o,s,l,u,c){var d=H5(),h=d.invert,f=d.domain,m=c(".%L"),b=c(":%S"),M=c("%I:%M"),x=c("%I %p"),L=c("%a %d"),g=c("%b %d"),y=c("%B"),k=c("%Y");function w(T){return(u(T)<T?m:l(T)<T?b:s(T)<T?M:o(T)<T?x:r(T)<T?a(T)<T?L:g:n(T)<T?y:k)(T)}return d.invert=function(T){return new Date(h(T))},d.domain=function(T){return arguments.length?f(Array.from(T,Rne)):f().map(Fne)},d.ticks=function(T){var S=f();return e(S[0],S[S.length-1],T??10)},d.tickFormat=function(T,S){return S==null?w:c(S)},d.nice=function(T){var S=f();return(!T||typeof T.range!="function")&&(T=t(S[0],S[S.length-1],T??10)),T?f(R5(S,T)):d},d.copy=function(){return Sd(d,Jv(e,t,n,r,a,o,s,l,u,c))},d}function TL(){return qa.apply(Jv(Vte,Ite,Xr,Cd,pu,Gs,Td,Ld,Zr,Kv).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function To(){return qa.apply(Jv(Pte,hL,Qr,Ad,_u,ip,Ed,Yd,Zr,Pd).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function zne(){var e=0,t=1,n,r,a,o,s=Hn,l=!1,u;function c(h){return h==null||isNaN(h=+h)?u:s(a===0?.5:(h=(o(h)-n)*a,l?Math.max(0,Math.min(1,h)):h))}c.domain=function(h){return arguments.length?([e,t]=h,n=o(e=+e),r=o(t=+t),a=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(h){return arguments.length?(l=!!h,c):l},c.interpolator=function(h){return arguments.length?(s=h,c):s};function d(h){return function(f){var m,b;return arguments.length?([m,b]=f,s=h(m,b),c):[s(0),s(1)]}}return c.range=d(Ha),c.rangeRound=d(km),c.unknown=function(h){return arguments.length?(u=h,c):u},function(h){return o=h,n=h(e),r=h(t),a=n===r?0:1/(r-n),c}}function Vd(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Ua(){var e=mu(zne()(Hn));return e.copy=function(){return Vd(e,Ua())},xd.apply(e,arguments)}function sp(){var e=0,t=.5,n=1,r=1,a,o,s,l,u,c=Hn,d,h=!1,f;function m(M){return isNaN(M=+M)?f:(M=.5+((M=+d(M))-o)*(r*M<r*o?l:u),c(h?Math.max(0,Math.min(1,M)):M))}m.domain=function(M){return arguments.length?([e,t,n]=M,a=d(e=+e),o=d(t=+t),s=d(n=+n),l=a===o?0:.5/(o-a),u=o===s?0:.5/(s-o),r=o<a?-1:1,m):[e,t,n]},m.clamp=function(M){return arguments.length?(h=!!M,m):h},m.interpolator=function(M){return arguments.length?(c=M,m):c};function b(M){return function(x){var L,g,y;return arguments.length?([L,g,y]=x,c=Sm(M,[L,g,y]),m):[c(0),c(.5),c(1)]}}return m.range=b(Ha),m.rangeRound=b(km),m.unknown=function(M){return arguments.length?(f=M,m):f},function(M){return d=M,a=M(e),o=M(t),s=M(n),l=a===o?0:.5/(o-a),u=o===s?0:.5/(s-o),r=o<a?-1:1,m}}function EL(){var e=mu(sp()(Hn));return e.copy=function(){return Vd(e,EL())},xd.apply(e,arguments)}function DL(){var e=W5(sp()).domain([.1,1,10]);return e.copy=function(){return Vd(e,DL()).base(e.base())},xd.apply(e,arguments)}function NL(){var e=Z5(sp());return e.copy=function(){return Vd(e,NL()).constant(e.constant())},xd.apply(e,arguments)}function CL(){var e=$5(sp());return e.copy=function(){return Vd(e,CL()).exponent(e.exponent())},xd.apply(e,arguments)}function Qe(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const qne=Qe("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Une=Qe("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Wne=Qe("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Gne=Qe("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),Kne=Qe("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Jne=Qe("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Zne=Qe("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Xne=Qe("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Qne=Qe("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),$ne=Qe("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),ere=Qe("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Tt=e=>jQ(e[e.length-1]);var AL=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Qe);const OL=Tt(AL);var jL=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Qe);const BL=Tt(jL);var PL=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Qe);const VL=Tt(PL);var IL=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Qe);const HL=Tt(IL);var Zv=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Qe);const lp=Tt(Zv);var FL=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Qe);const RL=Tt(FL);var Xv=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Qe);const up=Tt(Xv);var zL=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Qe);const qL=Tt(zL);var UL=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Qe);const WL=Tt(UL);var GL=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Qe);const KL=Tt(GL);var JL=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Qe);const ZL=Tt(JL);var XL=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Qe);const QL=Tt(XL);var $L=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Qe);const eY=Tt($L);var tY=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Qe);const nY=Tt(tY);var rY=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Qe);const aY=Tt(rY);var iY=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Qe);const oY=Tt(iY);var sY=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Qe);const lY=Tt(sY);var uY=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Qe);const cY=Tt(uY);var dY=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Qe);const fY=Tt(dY);var hY=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Qe);const mY=Tt(hY);var pY=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Qe);const _Y=Tt(pY);var gY=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Qe);const cp=Tt(gY);var vY=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Qe);const dp=Tt(vY);var yY=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Qe);const Id=Tt(yY);var bY=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Qe);const wY=Tt(bY);var MY=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Qe);const Qv=Tt(MY);var kY=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Qe);const $v=Tt(kY);function xY(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const SY=Zg(Ia(300,.5,0),Ia(-240,.5,1));var LY=Zg(Ia(-100,.75,.35),Ia(80,1.5,.8)),YY=Zg(Ia(260,.75,.35),Ia(80,1.5,.8)),fp=Ia();function TY(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return fp.h=360*e-100,fp.s=1.5-1.5*t,fp.l=.8-.9*t,fp+""}var hp=So(),tre=Math.PI/3,nre=Math.PI*2/3;function EY(e){var t;return e=(.5-e)*Math.PI,hp.r=255*(t=Math.sin(e))*t,hp.g=255*(t=Math.sin(e+tre))*t,hp.b=255*(t=Math.sin(e+nre))*t,hp+""}function DY(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function mp(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const NY=mp(Qe("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var CY=mp(Qe("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),AY=mp(Qe("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),OY=mp(Qe("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function lt(e){return function(){return e}}const jY=Math.abs,Mn=Math.atan2,Oi=Math.cos,rre=Math.max,vu=Math.min,Fn=Math.sin,jt=Math.sqrt,kn=1e-12,Eo=Math.PI,pp=Eo/2,Do=2*Eo;function are(e){return e>1?0:e<-1?Eo:Math.acos(e)}function BY(e){return e>=1?pp:e<=-1?-pp:Math.asin(e)}function _p(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new CS(t)}function ire(e){return e.innerRadius}function ore(e){return e.outerRadius}function sre(e){return e.startAngle}function lre(e){return e.endAngle}function ure(e){return e&&e.padAngle}function cre(e,t,n,r,a,o,s,l){var u=n-e,c=r-t,d=s-a,h=l-o,f=h*u-d*c;if(!(f*f<kn))return f=(d*(t-o)-h*(e-a))/f,[e+f*u,t+f*c]}function gp(e,t,n,r,a,o,s){var l=e-n,u=t-r,c=(s?o:-o)/jt(l*l+u*u),d=c*u,h=-c*l,f=e+d,m=t+h,b=n+d,M=r+h,x=(f+b)/2,L=(m+M)/2,g=b-f,y=M-m,k=g*g+y*y,w=a-o,T=f*M-b*m,S=(y<0?-1:1)*jt(rre(0,w*w*k-T*T)),D=(T*y-g*S)/k,O=(-T*g-y*S)/k,V=(T*y+g*S)/k,E=(-T*g+y*S)/k,R=D-x,j=O-L,F=V-x,B=E-L;return R*R+j*j>F*F+B*B&&(D=V,O=E),{cx:D,cy:O,x01:-d,y01:-h,x11:D*(a/w-1),y11:O*(a/w-1)}}function ey(){var e=ire,t=ore,n=lt(0),r=null,a=sre,o=lre,s=ure,l=null,u=_p(c);function c(){var d,h,f=+e.apply(this,arguments),m=+t.apply(this,arguments),b=a.apply(this,arguments)-pp,M=o.apply(this,arguments)-pp,x=jY(M-b),L=M>b;if(l||(l=d=u()),m<f&&(h=m,m=f,f=h),!(m>kn))l.moveTo(0,0);else if(x>Do-kn)l.moveTo(m*Oi(b),m*Fn(b)),l.arc(0,0,m,b,M,!L),f>kn&&(l.moveTo(f*Oi(M),f*Fn(M)),l.arc(0,0,f,M,b,L));else{var g=b,y=M,k=b,w=M,T=x,S=x,D=s.apply(this,arguments)/2,O=D>kn&&(r?+r.apply(this,arguments):jt(f*f+m*m)),V=vu(jY(m-f)/2,+n.apply(this,arguments)),E=V,R=V,j,F;if(O>kn){var B=BY(O/f*Fn(D)),z=BY(O/m*Fn(D));(T-=B*2)>kn?(B*=L?1:-1,k+=B,w-=B):(T=0,k=w=(b+M)/2),(S-=z*2)>kn?(z*=L?1:-1,g+=z,y-=z):(S=0,g=y=(b+M)/2)}var G=m*Oi(g),q=m*Fn(g),J=f*Oi(w),K=f*Fn(w);if(V>kn){var $=m*Oi(y),ee=m*Fn(y),ie=f*Oi(k),ue=f*Fn(k),ce;if(x<Eo)if(ce=cre(G,q,ie,ue,$,ee,J,K)){var Me=G-ce[0],he=q-ce[1],pe=$-ce[0],Q=ee-ce[1],de=1/Fn(are((Me*pe+he*Q)/(jt(Me*Me+he*he)*jt(pe*pe+Q*Q)))/2),ye=jt(ce[0]*ce[0]+ce[1]*ce[1]);E=vu(V,(f-ye)/(de-1)),R=vu(V,(m-ye)/(de+1))}else E=R=0}S>kn?R>kn?(j=gp(ie,ue,G,q,m,R,L),F=gp($,ee,J,K,m,R,L),l.moveTo(j.cx+j.x01,j.cy+j.y01),R<V?l.arc(j.cx,j.cy,R,Mn(j.y01,j.x01),Mn(F.y01,F.x01),!L):(l.arc(j.cx,j.cy,R,Mn(j.y01,j.x01),Mn(j.y11,j.x11),!L),l.arc(0,0,m,Mn(j.cy+j.y11,j.cx+j.x11),Mn(F.cy+F.y11,F.cx+F.x11),!L),l.arc(F.cx,F.cy,R,Mn(F.y11,F.x11),Mn(F.y01,F.x01),!L))):(l.moveTo(G,q),l.arc(0,0,m,g,y,!L)):l.moveTo(G,q),!(f>kn)||!(T>kn)?l.lineTo(J,K):E>kn?(j=gp(J,K,$,ee,f,-E,L),F=gp(G,q,ie,ue,f,-E,L),l.lineTo(j.cx+j.x01,j.cy+j.y01),E<V?l.arc(j.cx,j.cy,E,Mn(j.y01,j.x01),Mn(F.y01,F.x01),!L):(l.arc(j.cx,j.cy,E,Mn(j.y01,j.x01),Mn(j.y11,j.x11),!L),l.arc(0,0,f,Mn(j.cy+j.y11,j.cx+j.x11),Mn(F.cy+F.y11,F.cx+F.x11),L),l.arc(F.cx,F.cy,E,Mn(F.y11,F.x11),Mn(F.y01,F.x01),!L))):l.arc(0,0,f,w,k,L)}if(l.closePath(),d)return l=null,d+""||null}return c.centroid=function(){var d=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,h=(+a.apply(this,arguments)+ +o.apply(this,arguments))/2-Eo/2;return[Oi(h)*d,Fn(h)*d]},c.innerRadius=function(d){return arguments.length?(e=typeof d=="function"?d:lt(+d),c):e},c.outerRadius=function(d){return arguments.length?(t=typeof d=="function"?d:lt(+d),c):t},c.cornerRadius=function(d){return arguments.length?(n=typeof d=="function"?d:lt(+d),c):n},c.padRadius=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:lt(+d),c):r},c.startAngle=function(d){return arguments.length?(a=typeof d=="function"?d:lt(+d),c):a},c.endAngle=function(d){return arguments.length?(o=typeof d=="function"?d:lt(+d),c):o},c.padAngle=function(d){return arguments.length?(s=typeof d=="function"?d:lt(+d),c):s},c.context=function(d){return arguments.length?(l=d??null,c):l},c}var dre=Array.prototype.slice;function vp(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function PY(e){this._context=e}PY.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Hd(e){return new PY(e)}function ty(e){return e[0]}function ny(e){return e[1]}function Fd(e,t){var n=lt(!0),r=null,a=Hd,o=null,s=_p(l);e=typeof e=="function"?e:e===void 0?ty:lt(e),t=typeof t=="function"?t:t===void 0?ny:lt(t);function l(u){var c,d=(u=vp(u)).length,h,f=!1,m;for(r==null&&(o=a(m=s())),c=0;c<=d;++c)!(c<d&&n(h=u[c],c,u))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(h,c,u),+t(h,c,u));if(m)return o=null,m+""||null}return l.x=function(u){return arguments.length?(e=typeof u=="function"?u:lt(+u),l):e},l.y=function(u){return arguments.length?(t=typeof u=="function"?u:lt(+u),l):t},l.defined=function(u){return arguments.length?(n=typeof u=="function"?u:lt(!!u),l):n},l.curve=function(u){return arguments.length?(a=u,r!=null&&(o=a(r)),l):a},l.context=function(u){return arguments.length?(u==null?r=o=null:o=a(r=u),l):r},l}function fre(e,t,n){var r=null,a=lt(!0),o=null,s=Hd,l=null,u=_p(c);e=typeof e=="function"?e:e===void 0?ty:lt(+e),t=typeof t=="function"?t:lt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?ny:lt(+n);function c(h){var f,m,b,M=(h=vp(h)).length,x,L=!1,g,y=new Array(M),k=new Array(M);for(o==null&&(l=s(g=u())),f=0;f<=M;++f){if(!(f<M&&a(x=h[f],f,h))===L)if(L=!L)m=f,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),b=f-1;b>=m;--b)l.point(y[b],k[b]);l.lineEnd(),l.areaEnd()}L&&(y[f]=+e(x,f,h),k[f]=+t(x,f,h),l.point(r?+r(x,f,h):y[f],n?+n(x,f,h):k[f]))}if(g)return l=null,g+""||null}function d(){return Fd().defined(a).curve(s).context(o)}return c.x=function(h){return arguments.length?(e=typeof h=="function"?h:lt(+h),r=null,c):e},c.x0=function(h){return arguments.length?(e=typeof h=="function"?h:lt(+h),c):e},c.x1=function(h){return arguments.length?(r=h==null?null:typeof h=="function"?h:lt(+h),c):r},c.y=function(h){return arguments.length?(t=typeof h=="function"?h:lt(+h),n=null,c):t},c.y0=function(h){return arguments.length?(t=typeof h=="function"?h:lt(+h),c):t},c.y1=function(h){return arguments.length?(n=h==null?null:typeof h=="function"?h:lt(+h),c):n},c.lineX0=c.lineY0=function(){return d().x(e).y(t)},c.lineY1=function(){return d().x(e).y(n)},c.lineX1=function(){return d().x(r).y(t)},c.defined=function(h){return arguments.length?(a=typeof h=="function"?h:lt(!!h),c):a},c.curve=function(h){return arguments.length?(s=h,o!=null&&(l=s(o)),c):s},c.context=function(h){return arguments.length?(h==null?o=l=null:l=s(o=h),c):o},c}function hre(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function mre(e){return e}function pre(){var e=mre,t=hre,n=null,r=lt(0),a=lt(Do),o=lt(0);function s(l){var u,c=(l=vp(l)).length,d,h,f=0,m=new Array(c),b=new Array(c),M=+r.apply(this,arguments),x=Math.min(Do,Math.max(-Do,a.apply(this,arguments)-M)),L,g=Math.min(Math.abs(x)/c,o.apply(this,arguments)),y=g*(x<0?-1:1),k;for(u=0;u<c;++u)(k=b[m[u]=u]=+e(l[u],u,l))>0&&(f+=k);for(t!=null?m.sort(function(w,T){return t(b[w],b[T])}):n!=null&&m.sort(function(w,T){return n(l[w],l[T])}),u=0,h=f?(x-c*y)/f:0;u<c;++u,M=L)d=m[u],k=b[d],L=M+(k>0?k*h:0)+y,b[d]={data:l[d],index:u,value:k,startAngle:M,endAngle:L,padAngle:g};return b}return s.value=function(l){return arguments.length?(e=typeof l=="function"?l:lt(+l),s):e},s.sortValues=function(l){return arguments.length?(t=l,n=null,s):t},s.sort=function(l){return arguments.length?(n=l,t=null,s):n},s.startAngle=function(l){return arguments.length?(r=typeof l=="function"?l:lt(+l),s):r},s.endAngle=function(l){return arguments.length?(a=typeof l=="function"?l:lt(+l),s):a},s.padAngle=function(l){return arguments.length?(o=typeof l=="function"?l:lt(+l),s):o},s}class VY{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function IY(e){return new VY(e,!0)}function _re(e){return new VY(e,!1)}function gre(e){return e.source}function vre(e){return e.target}function yre(e){let t=gre,n=vre,r=ty,a=ny,o=null,s=null,l=_p(u);function u(){let c;const d=dre.call(arguments),h=t.apply(this,d),f=n.apply(this,d);if(o==null&&(s=e(c=l())),s.lineStart(),d[0]=h,s.point(+r.apply(this,d),+a.apply(this,d)),d[0]=f,s.point(+r.apply(this,d),+a.apply(this,d)),s.lineEnd(),c)return s=null,c+""||null}return u.source=function(c){return arguments.length?(t=c,u):t},u.target=function(c){return arguments.length?(n=c,u):n},u.x=function(c){return arguments.length?(r=typeof c=="function"?c:lt(+c),u):r},u.y=function(c){return arguments.length?(a=typeof c=="function"?c:lt(+c),u):a},u.context=function(c){return arguments.length?(c==null?o=s=null:s=e(o=c),u):o},u}function bre(){return yre(IY)}const wre=jt(3),HY={draw(e,t){const n=jt(t+vu(t/28,.75))*.59436,r=n/2,a=r*wre;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-a,-r),e.lineTo(a,r),e.moveTo(-a,r),e.lineTo(a,-r)}},Rd={draw(e,t){const n=jt(t/Eo);e.moveTo(n,0),e.arc(0,0,n,0,Do)}},FY={draw(e,t){const n=jt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},RY=jt(1/3),Mre=RY*2,zY={draw(e,t){const n=jt(t/Mre),r=n*RY;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},qY={draw(e,t){const n=jt(t)*.62625;e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},UY={draw(e,t){const n=jt(t-vu(t/7,2))*.87559;e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},WY={draw(e,t){const n=jt(t),r=-n/2;e.rect(r,r,n,n)}},GY={draw(e,t){const n=jt(t)*.4431;e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},kre=.8908130915292852,KY=Fn(Eo/10)/Fn(7*Eo/10),xre=Fn(Do/10)*KY,Sre=-Oi(Do/10)*KY,JY={draw(e,t){const n=jt(t*kre),r=xre*n,a=Sre*n;e.moveTo(0,-n),e.lineTo(r,a);for(let o=1;o<5;++o){const s=Do*o/5,l=Oi(s),u=Fn(s);e.lineTo(u*n,-l*n),e.lineTo(l*r-u*a,u*r+l*a)}e.closePath()}},ry=jt(3),ZY={draw(e,t){const n=-jt(t/(ry*3));e.moveTo(0,n*2),e.lineTo(-ry*n,-n),e.lineTo(ry*n,-n),e.closePath()}},Lre=jt(3),XY={draw(e,t){const n=jt(t)*.6824,r=n/2,a=n*Lre/2;e.moveTo(0,-n),e.lineTo(a,r),e.lineTo(-a,r),e.closePath()}},Yr=-.5,Tr=jt(3)/2,ay=1/jt(12),Yre=(ay/2+1)*3,QY={draw(e,t){const n=jt(t/Yre),r=n/2,a=n*ay,o=r,s=n*ay+n,l=-o,u=s;e.moveTo(r,a),e.lineTo(o,s),e.lineTo(l,u),e.lineTo(Yr*r-Tr*a,Tr*r+Yr*a),e.lineTo(Yr*o-Tr*s,Tr*o+Yr*s),e.lineTo(Yr*l-Tr*u,Tr*l+Yr*u),e.lineTo(Yr*r+Tr*a,Yr*a-Tr*r),e.lineTo(Yr*o+Tr*s,Yr*s-Tr*o),e.lineTo(Yr*l+Tr*u,Yr*u-Tr*l),e.closePath()}},$Y={draw(e,t){const n=jt(t-vu(t/6,1.7))*.6189;e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},Tre=[Rd,FY,zY,WY,JY,ZY,QY],Ere=[Rd,UY,$Y,XY,HY,GY,qY];function No(){}function yp(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function bp(e){this._context=e}bp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:yp(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:yp(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Dre(e){return new bp(e)}function eT(e){this._context=e}eT.prototype={areaStart:No,areaEnd:No,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:yp(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Nre(e){return new eT(e)}function tT(e){this._context=e}tT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:yp(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Cre(e){return new tT(e)}function nT(e,t){this._basis=new bp(e),this._beta=t}nT.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],a=t[0],o=e[n]-r,s=t[n]-a,l=-1,u;++l<=n;)u=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(r+u*o),this._beta*t[l]+(1-this._beta)*(a+u*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Are=function e(t){function n(r){return t===1?new bp(r):new nT(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function wp(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function iy(e,t){this._context=e,this._k=(1-t)/6}iy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:wp(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:wp(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Ore=function e(t){function n(r){return new iy(r,t)}return n.tension=function(r){return e(+r)},n}(0);function oy(e,t){this._context=e,this._k=(1-t)/6}oy.prototype={areaStart:No,areaEnd:No,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:wp(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const jre=function e(t){function n(r){return new oy(r,t)}return n.tension=function(r){return e(+r)},n}(0);function sy(e,t){this._context=e,this._k=(1-t)/6}sy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,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:wp(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Bre=function e(t){function n(r){return new sy(r,t)}return n.tension=function(r){return e(+r)},n}(0);function ly(e,t,n){var r=e._x1,a=e._y1,o=e._x2,s=e._y2;if(e._l01_a>kn){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,a=(a*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>kn){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/d,s=(s*c+e._y1*e._l23_2a-n*e._l12_2a)/d}e._context.bezierCurveTo(r,a,o,s,e._x2,e._y2)}function rT(e,t){this._context=e,this._alpha=t}rT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:ly(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Pre=function e(t){function n(r){return t?new rT(r,t):new iy(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function aT(e,t){this._context=e,this._alpha=t}aT.prototype={areaStart:No,areaEnd:No,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ly(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Vre=function e(t){function n(r){return t?new aT(r,t):new oy(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function iT(e,t){this._context=e,this._alpha=t}iT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ly(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Ire=function e(t){function n(r){return t?new iT(r,t):new sy(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function oT(e){this._context=e}oT.prototype={areaStart:No,areaEnd:No,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Hre(e){return new oT(e)}function sT(e){return e<0?-1:1}function lT(e,t,n){var r=e._x1-e._x0,a=t-e._x1,o=(e._y1-e._y0)/(r||a<0&&-0),s=(n-e._y1)/(a||r<0&&-0),l=(o*a+s*r)/(r+a);return(sT(o)+sT(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(l))||0}function uT(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function uy(e,t,n){var r=e._x0,a=e._y0,o=e._x1,s=e._y1,l=(o-r)/3;e._context.bezierCurveTo(r+l,a+l*t,o-l,s-l*n,o,s)}function Mp(e){this._context=e}Mp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:uy(this,this._t0,uT(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,uy(this,uT(this,n=lT(this,e,t)),n);break;default:uy(this,this._t0,n=lT(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function cT(e){this._context=new dT(e)}(cT.prototype=Object.create(Mp.prototype)).point=function(e,t){Mp.prototype.point.call(this,t,e)};function dT(e){this._context=e}dT.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,o){this._context.bezierCurveTo(t,e,r,n,o,a)}};function Fre(e){return new Mp(e)}function Rre(e){return new cT(e)}function fT(e){this._context=e}fT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=hT(e),a=hT(t),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],a[0][o],r[1][o],a[1][o],e[s],t[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function hT(e){var t,n=e.length-1,r,a=new Array(n),o=new Array(n),s=new Array(n);for(a[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,o[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/o[t-1],o[t]-=r,s[t]-=r*s[t-1];for(a[n-1]=s[n-1]/o[n-1],t=n-2;t>=0;--t)a[t]=(s[t]-a[t+1])/o[t];for(o[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-a[t+1];return[a,o]}function zre(e){return new fT(e)}function kp(e,t){this._context=e,this._t=t}kp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function qre(e){return new kp(e,.5)}function Ure(e){return new kp(e,0)}function Wre(e){return new kp(e,1)}function mT(e,t){if((s=e.length)>1)for(var n=1,r,a,o=e[t[0]],s,l=o.length;n<s;++n)for(a=o,o=e[t[n]],r=0;r<l;++r)o[r][1]+=o[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function pT(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Gre(e,t){return e[t]}function Kre(e){const t=[];return t.key=e,t}function _T(){var e=lt([]),t=pT,n=mT,r=Gre;function a(o){var s=Array.from(e.apply(this,arguments),Kre),l,u=s.length,c=-1,d;for(const h of o)for(l=0,++c;l<u;++l)(s[l][c]=[0,+r(h,s[l].key,c,o)]).data=h;for(l=0,d=vp(t(s));l<u;++l)s[d[l]].index=l;return n(s,d),s}return a.keys=function(o){return arguments.length?(e=typeof o=="function"?o:lt(Array.from(o)),a):e},a.value=function(o){return arguments.length?(r=typeof o=="function"?o:lt(+o),a):r},a.order=function(o){return arguments.length?(t=o==null?pT:typeof o=="function"?o:lt(Array.from(o)),a):t},a.offset=function(o){return arguments.length?(n=o??mT,a):n},a}function zd(e,t,n){this.k=e,this.x=t,this.y=n}zd.prototype={constructor:zd,scale:function(e){return e===1?this:new zd(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new zd(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},zd.prototype;const Kt={light:{canvas:"#f3f4f6",primary:"#003153",secondary:"#2d6f9d",accent:"#9C27B0",positive:"#259940",neutral:"#777777",negative:"#C10015",info:"#007bf5",warning:"#C71E23",active:"#007D11",active2:"#BE8700",inactive:"#5C5C5C",error:"#B44936",text:"#000000",main:"#FFFFFF"},dark:{canvas:"#121212",primary:"#003153",secondary:"#2d6f9d",accent:"#9C27B0",positive:"#259940",neutral:"#777777",negative:"#C10015",info:"#007bf5",warning:"#C71E23",active:"#03FC1C",active2:"goldenrod",inactive:"#BDBDBD",error:"#FD1C03",text:"#cbd5e1",main:"#1f2937"}},Co={light:{pass:"#27aeef",input:"#007D11",output:"#007D11",drop:"#ef9b20",abort:"#7f7f7f",compressed:"#5C5C5C",error:"#ea5545",ignored:"#7f7f7f",buffer:"#27aeef"},dark:{pass:"#27aeef",input:"#03FC1C",output:"#03FC1C",drop:"#ef9b20",abort:"#7f7f7f",compressed:"#BDBDBD",error:"#ea5545",ignored:"#7f7f7f",buffer:"#27aeef"},scale:{pass:Ua(cp),input:Ua(dp),output:Ua(dp),drop:Ua($v),abort:Ua(Id),compressed:Ua(Id),error:Ua(Qv),ignored:Ua(Id),buffer:Ua(cp)}},cy={light:{ingressdata:"#007D11",egresstootherregion:"#ef9b20",egresstointernet:"#27aeef"},dark:{ingressdata:"#03FC1C",egresstootherregion:"#ef9b20",egresstointernet:"#27aeef"}},_t=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf","#1c9099","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],xp={light:{Average:"#ff7f0e",Upper_Bound:"#2ca02c",Lower_Bound:"#e377c2",Alert:"#27aeef"},dark:{Average:"#ff7f0e",Upper_Bound:"#2ca02c",Lower_Bound:"#e377c2",Alert:"#27aeef"}},Jre={green:["#3FA83F","#93CE07","#43B446","#73B142","#259940","#00695C","#3ec995"],compute15:Zre("#b50101","#7f7f7f",15)};function gT(e){return e<0?"00":e<16?"0"+e.toString(16):e.toString(16)}function dy(e,t,n,r){return e>t?gT(Math.floor((t-e)*(n/r))+e):gT(Math.floor((e-t)*(1-n/r))+t)}function Zre(e,t,n){e=e.replace("#",""),t=t.replace("#","");const r=parseInt(e.substring(0,2),16),a=parseInt(e.substring(2,4),16),o=parseInt(e.substring(4,6),16),s=parseInt(t.substring(0,2),16),l=parseInt(t.substring(2,4),16),u=parseInt(t.substring(4,6),16),c=[];for(let d=0;d<=n;d++){let h="#";const f=dy(r,s,d,n),m=dy(a,l,d,n),b=dy(o,u,d,n);h=h+f+m+b,c.push(h)}return c}function Xre(e,t){const n=Jre[e];return n[t%n.length]}function Qre(e,t){let n=0;for(let r=0;r<t.length;r++)n+=t.charCodeAt(r);return Xre(e,n)}const qd=e=>`$${e.toFixed(2)}`,Cn=e=>{const t=["","K","M","G","T","P"];let n=0;const r=e>=0;let a=Math.abs(e);if(a<1e3)return a;for(;a>=1e3&&n<t.length-1;)a/=1e3,++n;return r?`${a.toFixed(1)} ${t[n]}`:`-${a.toFixed(1)} ${t[n]}`},An=e=>{const t=["","Ki","Mi","Gi","Ti","Pi"];let n=0;const r=e>=0;let a=Math.abs(e);if(a<1024)return a===1e3?1e3:a.toPrecision(3);for(;a>=1024&&n<t.length-1;)a/=1024,++n;return r?`${a.toFixed(1)} ${t[n]}`:`-${a.toFixed(1)} ${t[n]}`},vT=e=>e>6e4?e>36e5?e>864e5?Math.floor(e/864e5)+" days":Math.floor(e/36e5)+" hrs":Math.floor(e/6e4)+" mins":e+" ms",$re={props:{id:{type:String,required:!0},data:{type:Object,required:!0},unit:{type:String,default:"Count"},width:{type:Number,default:350},height:{type:Number,default:200},pannable:{type:Boolean,default:!0},theme:{type:String,default:"light"}},data(){return{svg:null}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.svg=Be("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height)},createChart(e){let t=[];e.series.forEach((f,m)=>{t.push({...f,index:m})});const n=this.width,r=this.height,a=20,o=15,s=30,l=50,u=[],c=(f,m)=>{const b=new Date(m.slots).toUTCString(),M=this.unit==="Bytes (B)"?An(m.values)+"B":this.unit==="Percent (%)"?m.values.toFixed(2)+"%":Cn(m.values),x=m.action?`${m.action}<br>Time: ${b}<br>Value: ${M}`:`Alert<br>Time: ${b}<br>Value: ${M}`;f.target.r.baseVal.value=5,Be("#"+this.id+"tooltip").html(x).style("opacity",1).style("left",f.layerX+"px").style("top",f.layerY+"px")},d=(f,m)=>{f.target.r.baseVal.value=3,Be("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")};(()=>{const f=t.filter(y=>!u.includes(y.index)),m=this.getAxisLargest(f),b=To(Ut(m[0]),[l,n-o]),M=Sr([0,m[1]],[r-s,a]),x=this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${r-s})`).call(Vn(b).ticks(n/80).tickSizeOuter(0));if(this.svg.append("g").attr("class",this.id+"yaxis").attr("transform",`translate(${l},0)`).call(js(M).ticks(r/40).tickFormat(y=>this.unit==="Bytes (B)"?An(y):Cn(y))).call(y=>y.select(".domain").remove()).call(y=>y.selectAll(".tick line").clone().attr("x2",n-l-o).attr("stroke-opacity",.1)).call(y=>y.append("text").attr("x",-l).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit)),this.pannable){let k=function(){y=null},y;const w=(S,D)=>{const O=S.selection;if(O)b.domain([b.invert(O[0]),b.invert(O[1])]),this.svg.select("."+this.id+"brush").call(T.move,null);else{if(!y)return y=setTimeout(k,500);b.domain(Ut(e.slots))}x.transition().duration(1e3).call(Vn(b)),this.svg.selectAll("."+this.id+"line").attr("d",function(V){return L(V.values.map((E,R)=>({slots:e.slots[R],values:E})))}),this.svg.selectAll("."+this.id+"points").attr("cx",V=>b(V.slots))},T=vee().extent([[0,0],[n,r]]).on("end",w);this.svg.append("g").attr("class",S=>this.id+"brush").call(T),this.svg.on("dblclick",function(){b.domain(Ut(m[0],function(S){return S})),x.transition().call(Vn(b)),this.svg.selectAll("."+this.id+"line").attr("d",function(S){return L(S.values.map((D,O)=>({slots:e.slots[O],values:D})))}),this.svg.selectAll("."+this.id+"points").attr("cx",S=>b(S.slots))})}const L=Fd().x((y,k)=>b(y.slots)).y((y,k)=>M(y.values));this.svg.selectAll(".line").data(f).enter().append("path").attr("class",y=>this.id+y.index+"line "+this.id+"line").attr("fill","none").attr("z-index",1).style("stroke",y=>xp[this.theme][y.action]||_t[y.index%_t.length]).style("stroke-dasharray","3, 3").attr("stroke-width",1).attr("d",function(y){return L(y.values.map((k,w)=>({slots:e.slots[w],values:k})))}),this.svg.selectAll(".line").data([e]).enter().append("path").attr("class",this.id+"line").attr("fill","none").attr("z-index",1).style("stroke",xp[this.theme].Alert).attr("stroke-width",1.5).attr("d",function(y){return L(y.slots.map((k,w)=>({slots:k,values:y.values[w]})))});const g=e.slots.map((y,k)=>({slots:y,values:e.values[k],isAlert:e.metric.bools[k]}));this.svg.selectAll(".point").data(g).enter().append("circle").attr("class",(y,k)=>this.id+k+"points "+this.id+"points").attr("fill",_t[3]).attr("display",y=>y.isAlert?"":"none").attr("r",3).attr("cx",y=>b(y.slots)).attr("cy",y=>M(y.values)).on("mouseover",c).on("mouseout",d)})(),e.series||this.svg.append("text").attr("x",n/2).attr("y",r/2).attr("text-anchor","middle").attr("fill","currentColor").text("No data available"),e.series.length>0&&(this.legend=Be("#"+this.id+"legend").append("svg").attr("width",this.width>600?200:75).attr("height",Math.max(25*e.series.length,r-20)),this.legend.selectAll("legendDots").data([...t,{action:"Alert",index:t.length}]).enter().append("circle").attr("id",f=>this.id+f.index+"dots").attr("class","show").attr("cx",10).attr("cy",(f,m)=>r/(t.length+2)+m*25).attr("r",5).style("fill",f=>xp[this.theme][f.action]||_t[f.index%_t.length]),this.legend.selectAll("legendLabels").data([...t,{action:"Alert",index:t.length}]).enter().append("text").attr("class",f=>this.id+f.index+"labels").attr("x",20).attr("y",(f,m)=>r/(t.length+2)+m*25).style("fill",f=>xp[this.theme][f.action]||_t[f.index%_t.length]).text(f=>f.action==="Alert"?e.action:f.action||"(no name)").attr("font-weight",500).attr("text-anchor","left").attr("font-size","11px").style("alignment-baseline","middle"))},getAxisLargest(e){let t=this.data.slots,n=Math.max(...this.data.values);return e.forEach((r,a)=>{const o=Math.max(...r.values);o>n&&(n=o)}),[t,n]}}},eae=["id"],tae=["id"],nae=["id"];function rae(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{id:n.id,class:"float-left"},[i.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,tae)],8,eae),i.createElementVNode("div",{class:"overflow-auto",style:i.normalizeStyle(`height: ${n.height}px; overflow: auto`)},[i.createElementVNode("div",{id:n.id+"legend"},null,8,nae)],4)],64)}const aae=bt($re,[["render",rae]]),iae={props:{id:String,tooltip:String,runs:Array,tooltipOffset:{type:String,default:"client"},theme:{type:String,default:"light"}},data(){return{svg:null,width:250,height:60}},mounted(){this.initializeChart(),this.createChart()},methods:{initializeChart(){this.svg=Be("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height).attr("style","outline: thin solid;")},createChart(){const e=this.width,t=this.height,n=3,r=18,a=17,o=18,s=(d,h)=>{at("."+this.id+"run").attr("opacity","0.5"),Be("."+this.id+h.taskID).attr("opacity","1");const f=Se(h.launchTime).format("YYYY-MM-DD HH:mm:ss"),m=Se(h.completeTime).format("YYYY-MM-DD HH:mm:ss"),b=Se(h.completeTime).diff(Se(h.launchTime)),M=`Task: ${h.taskID}<br>Status: ${h.status}<br>Launch Time: ${f}<br>Complete Time: ${m}<br>Duration: ${vT(b)}`;Be("#"+this.id+"tooltip").html(M).style("opacity",1).style("left",d[this.tooltipOffset+"X"]+10+"px").style("top",d[this.tooltipOffset+"Y"]+"px")},l=(d,h)=>{at("."+this.id+"run").attr("opacity","1"),Be("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},u=this.runs.map(d=>Se(d.launchTime).valueOf());u.length===1&&(u.push(Se(u[0]).add(2,"minute").valueOf()),u.push(Se(u[0]).subtract(2,"minute").valueOf()));const c=TL(Ut(u),[o,e-r]);this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${t-a})`).call(Vn(c).ticks(e/80).tickSize(3).tickSizeOuter(0)),this.svg.selectAll(".rect").data(this.runs).enter().append("rect").attr("class",d=>this.id+`run ${this.id}${d.taskID}`).attr("style","cursor: pointer;").attr("z-index",1).attr("x",d=>c(Se(d.launchTime).valueOf())).attr("y",n).attr("width",d=>{const h=c(Se(d.completeTime).valueOf())-c(Se(d.launchTime).valueOf());return h>2?h:2}).attr("height",d=>t-a-n).attr("fill",d=>{const h=d.status==="completed"?"input":d.status==="aborted"?"error":"ignored";return Co[this.theme][h]}).attr("opacity",0).on("click",(d,h)=>{this.$emit("viewRun",h)}).on("mouseover",s).on("mouseout",l).transition().delay((d,h)=>1e3-h/this.runs.length*1200).duration(200).attr("opacity",1)}}},oae=["id"],sae=["id"];function lae(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock("div",{id:n.id},[i.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,sae)],8,oae)}const uae=bt(iae,[["render",lae]]),cae={props:{id:{type:String,required:!0},data:{type:Array,required:!0},unit:{type:String,default:"Count"},width:{type:Number,default:350},height:{type:Number,default:200},hideZeros:{type:Boolean,default:!0},isTime:{type:Boolean,default:!0},tooltipOffset:{type:String,default:"layer"},slotName:{type:String,default:"Field"},valueName:{type:String,default:"Value"},useLegend:{type:Boolean,default:!0},theme:{type:String,default:"light"}},data(){return{svg:null,legend:null}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.svg=Be("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height)},createChart(e){let t=[];e.forEach((x,L)=>{x.index=L,x.values=x.values.map(y=>isNaN(y)?0:y);const g=x.values.reduce((y,k)=>y+k,0);x.total=isNaN(g)?0:g,this.hideZeros?g>0&&t.push(x):t.push(x)}),t=t.sort((x,L)=>L.total-x.total),e=e.sort((x,L)=>L.total-x.total);const n=this.width,r=this.height,a=20,o=15,s=30,l=50,u=[],c=(x,L)=>{const g=this.isTime?new Date(L.slots).toUTCString():L.slots,y=this.unit==="Bytes (B)"||this.unit==="B"?An(L.values)+"B":this.unit==="Percent (%)"?L.values.toFixed(2)+"%":this.unit==="$"?"$"+L.values.toFixed(2):Cn(L.values),k=L.action?`${L.action}<br>${this.isTime?"Time":this.slotName}: ${g}<br>${this.valueName}: ${y}`:`${this.isTime?"Time":this.slotName}: ${g}<br>${this.valueName}: ${y}`;x.target.r.baseVal.value=5,Be("#"+this.id+"tooltip").html(k).style("opacity",1).style("left",x[this.tooltipOffset+"X"]+10+"px").style("top",x[this.tooltipOffset+"Y"]+"px")},d=(x,L)=>{x.target.r.baseVal.value=3,Be("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},h=(x,L)=>{const g=L.index;x.target.classList.contains("show")&&(at("."+this.id+"line").attr("stroke-width",1),at("."+this.id+g+"line").attr("stroke-width",2.5),at("."+this.id+"points").attr("r",1),at("."+this.id+g+"points").attr("r",3),at("#"+this.id+g+"dots").attr("r",6),at("."+this.id+g+"labels").attr("font-weight",1e3))},f=(x,L)=>{const g=L.index;at("."+this.id+"line").attr("stroke-width",1.5),at("."+this.id+"points").attr("r",2.5),at("#"+this.id+g+"dots").attr("r",5),at("."+this.id+g+"labels").attr("font-weight",500)},m=(x,L)=>{const g=L.index;x.target.classList.contains("show")?(u.push(g),x.target.classList.remove("show"),x.target.classList.add("hide"),at("#"+this.id+g+"dots").attr("opacity","0.5")):(u.splice(u.indexOf(g),1),x.target.classList.remove("hide"),x.target.classList.add("show"),at("#"+this.id+g+"dots").attr("opacity","1")),at("."+this.id+"line").remove(),at("."+this.id+"points").remove(),Be("."+this.id+"xaxis").remove(),Be("."+this.id+"yaxis").remove(),b()},b=()=>{var D;const x=t.filter(O=>!u.includes(O.index)),L=this.getAxisLargest(x),g=this.isTime?To(Ut(L[0]),[l,n-o]):Yo(L[0],[l,n-o]),y=Sr([0,L[1]],[r-s,a]);this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${r-s})`).call(this.isTime?Vn(g).ticks(n/80).tickSizeOuter(0):Vn(g).ticks(n/20).tickSizeOuter(0).tickFormat(O=>{if(!this.isTime)return po(O,(n-o)/L[0].length*8)})),this.svg.append("g").attr("class",this.id+"yaxis").attr("transform",`translate(${l},0)`).call(js(y).ticks(r/40).tickFormat(O=>this.unit==="Bytes (B)"||this.unit==="B"?An(O):Cn(O))).call(O=>O.select(".domain").remove()).call(O=>O.selectAll(".tick line").clone().attr("x2",n-l-o).attr("stroke-opacity",.1)).call(O=>O.append("text").attr("x",-l).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit));const k=Fd().x((O,V)=>g(O.slots)).y((O,V)=>y(O.values)),w=this.svg.selectAll(".line").data(x).enter().append("path").attr("class",O=>this.id+O.index+"line "+this.id+"line").attr("fill","none").attr("z-index",1).attr("stroke",O=>Co[this.theme][O.action]||_t[O.index%_t.length]).attr("stroke-width",1.5).attr("d",function(O){return k(O.slots.map((V,E)=>({slots:V,values:O.values[E]})))}),T=((D=w.node())==null?void 0:D.getTotalLength())||0,S=1200;w.attr("stroke-dasharray",T+" "+T).attr("stroke-dashoffset",T).transition().duration(S).ease(iee).attr("stroke-dashoffset",0);for(const O of x){const V=O.slots.map((E,R)=>({index:O.index,action:O.action,slots:E,values:O.values[R]}));this.svg.selectAll(".point").data(V).enter().append("circle").attr("class",E=>this.id+E.index+"points "+this.id+"points").attr("fill",E=>Co[this.theme][O.action]||_t[E.index%_t.length]).attr("r",2.5).attr("cx",E=>g(E.slots)).attr("cy",E=>y(E.values)).attr("opacity",0).on("mouseover",c).on("mouseout",d).transition().delay((E,R)=>R/V.length*S).duration(250).attr("opacity",1)}};b(),t.length===0&&this.svg.append("text").attr("x",n/2).attr("y",r/2).attr("text-anchor","middle").attr("fill","currentColor").text("No data available");const M=Math.max(...e.map(x=>zF(x.action||"(no name)")),0);this.legend=Be("#"+this.id+"legend").append("svg").attr("width",M/7+30).attr("height",Math.max(25*e.length,this.height)),this.legend.selectAll("legendDots").data(e).enter().append("circle").attr("id",x=>this.id+x.index+"dots").attr("class","show").attr("cx",10).attr("cy",(x,L)=>r/(e.length+1)+L*25+4).attr("r",5).style("fill",x=>Co[this.theme][x.action]||_t[x.index%_t.length]).on("mouseover",h).on("mouseout",f).on("click",m),this.legend.selectAll("legendLabels").data(e).enter().append("text").attr("class",x=>this.id+x.index+"labels").attr("x",20).attr("y",(x,L)=>r/(e.length+1)+L*25+5).style("fill",x=>Co[this.theme][x.action]||_t[x.index%_t.length]).text(x=>x.action||"(no name)").attr("font-weight",500).attr("text-anchor","left").attr("font-size","13px").style("alignment-baseline","middle")},getAxisLargest(e){let t=[],n=this.unit==="Percent (%)"?100:0;return e.forEach((r,a)=>{r.slots.forEach(s=>{t.includes(s)||t.push(s)});const o=Math.max(...r.values);o>n&&(n=o)}),[t,n]}}},dae=["id"],fae=["id"],hae=["id"];function mae(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{id:n.id,class:"float-left"},[i.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,fae)],8,dae),n.useLegend?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`height: ${n.height}px; overflow: auto`)},[i.createElementVNode("div",{id:n.id+"legend"},null,8,hae)],4)):i.createCommentVNode("",!0)],64)}const pae=bt(cae,[["render",mae]]),_ae={props:{id:{type:String,required:!0},data:{type:Object,required:!0},unit:{type:String,default:"Cost ($)"},width:{type:Number,default:800},height:{type:Number,default:400},title:{type:String,default:""},valueName:{type:String,default:"Value"},theme:{type:String,default:"light"}},data(){return{svg:null}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.svg=Be("#"+this.id).append("svg").attr("width",this.width).attr("height",this.title?this.height+40:this.height)},createChart(e){const t=this.width,n=this.title?this.height+30:this.height,r=20,a=15,o=30,s=50;let l=this.unit==="Percent (%)"?100:0;e.values.forEach(m=>{m>l&&(l=m)});const u=To(Ut(e.slots),[s,t-a]),c=this.title?[n-o,r+30]:[n-o,r],d=Sr([0,l],c),h=(m,b)=>{const M=new Date(b.slots).toUTCString(),x=this.unit==="Bytes (B)"||this.unit==="B"?An(b.values)+"B":this.unit==="Percent (%)"?b.values.toFixed(2)+"%":this.unit==="Cost ($)"?qd(b.values):Cn(b.values),L=Be("#"+this.id+"tooltip").html(`${this.data.name}<br>${M}<br>${this.valueName}: ${x}`).style("opacity",1).style("top",m.layerY+"px");if(m.layerX>t*3/4){const g=L.node().getBoundingClientRect().width;L.style("left",m.layerX-g+"px")}else L.style("left",m.layerX+"px")},f=(m,b)=>{Be("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")};if(this.svg.append("g").attr("transform",`translate(0,${n-o})`).call(Vn(u).ticks(t/80).tickSizeOuter(0)),this.svg.append("g").attr("transform",`translate(${s},0)`).call(js(d).ticks(n/40).tickFormat(m=>this.unit==="Bytes (B)"||this.unit==="B"?An(m):this.unit==="Cost ($)"?qd(m):Cn(m))).call(m=>m.select(".domain").remove()).call(m=>m.selectAll(".tick line").clone().attr("x2",t-s-a).attr("stroke-opacity",.1)).call(m=>m.append("text").attr("x",-s).attr("y",this.title?40:10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit)).call(m=>m.append("text").attr("x",-s).attr("y",20).attr("fill","currentColor").attr("text-anchor","start").attr("font-weight","bold").attr("font-size","2em").text(this.title)),e.slots.length>0){const m=e.slots.map((b,M)=>({slots:b,values:e.values[M]}));this.svg.selectAll(".rect").data(m).enter().append("rect").attr("class",b=>this.id+"bar").attr("z-index",1).attr("x",b=>u(b.slots)-2).attr("y",b=>d(b.values)).attr("width",10).attr("height",b=>n-o-d(b.values)).attr("fill",_t[0]).on("mouseover",h).on("mouseout",f)}else this.svg.append("text").attr("x",t/2).attr("y",n/2).attr("text-anchor","middle").text("No data available")}}},gae=["id"],vae=["id"];function yae(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock("div",{id:n.id},[i.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,vae)],8,gae)}const bae=bt(_ae,[["render",yae]]),wae={props:{id:{type:String,required:!0},data:{type:Object,required:!0},unit:{type:String,default:"Cost ($)"},width:{type:Number,default:300},height:{type:Number,default:600},title:{type:String,default:""},resizable:{type:Boolean,default:!1},tooltipOffset:{type:String,default:"layer"},valueName:{type:String,default:"Value"},theme:{type:String,default:"light"}},data(){return{svg:null}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.resizable?this.svg=Be("#"+this.id).append("svg").attr("viewBox",`0 0 ${this.width} ${this.title?this.height+40:this.height}`):this.svg=Be("#"+this.id).append("svg").attr("width",this.width).attr("height",this.title?this.height+40:this.height)},createChart(e){const t=this.width,n=this.title?this.height+30:this.height,r=20,a=5,o=5,s=10,l=e.fields.reduce((d,h,f)=>(d[f]=h||"(no name)",d),{}),u=(d,h)=>{const f=this.unit==="Bytes (B)"||this.unit==="B"?An(h.values)+"B":this.unit==="Percent (%)"?h.values.toFixed(2)+"%":Cn(h.values);d.target.style.opacity=.4,Be("#"+this.id+"tooltip").html(`${h.field?h.field:"(no name)"}<br>${this.valueName}: ${f}`).style("opacity",1).style("left",d[this.tooltipOffset+"X"]+10+"px").style("top",d[this.tooltipOffset+"Y"]+"px")},c=(d,h)=>{d.target.style.opacity=0,Be("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")};if(e.fields&&e.fields.length>0){let d=this.unit==="Percent (%)"?100:0;e.values.forEach(M=>{M>d&&(d=M)}),d===0&&(d=1);const h=Sr([0,d],[s,t-a-s]),f=this.title?[n-o,r+30]:[n-o,r],m=Yo().range(f).domain(e.fields.map((M,x)=>x)).padding(.2),b=e.fields.map((M,x)=>({field:M,values:e.values[x]||0}));this.svg.selectAll(".rect").data(b).enter().append("rect").attr("class",M=>this.id+"bar").attr("z-index",1).attr("x",M=>h(0)).attr("y",(M,x)=>m(x)).attr("width",M=>0).attr("height",m.bandwidth()).attr("fill",(M,x)=>_t[x%_t.length]).style("opacity",.8),this.svg.selectAll("rect").transition().duration(500).attr("x",M=>h(0)).attr("width",M=>h(M.values)-s).delay((M,x)=>x*50),this.svg.selectAll(".rect").data(b).enter().append("rect").attr("class",M=>this.id+"barEmpty").attr("z-index",1).attr("x",M=>h(0)).attr("y",(M,x)=>m(x)).attr("width",this.width-s).attr("height",m.bandwidth()).attr("fill",(M,x)=>_t[x%_t.length]).style("opacity",0).on("mouseover",u).on("mouseout",c),this.svg.append("g").attr("transform",`translate(0,${r})`).call(CZ(h).ticks(5).tickFormat(M=>this.unit==="Bytes (B)"||this.unit==="B"?An(M):this.unit==="Cost ($)"?qd(M):Cn(M))),this.svg.append("g").attr("transform",`translate(${s},0)`).call(AZ(m).tickSize(0).tickFormat(M=>l[M])).call(M=>M.select(".domain").remove()).call(M=>M.append("text").attr("x",-s).attr("y",20).attr("fill","currentColor").attr("text-anchor","start").attr("font-size","2em").text(this.title))}else this.svg.append("text").attr("x",t/2).attr("y",n/2).attr("text-anchor","middle").text("No data available")}}},Mae=["id"],kae=["id"];function xae(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock("div",{id:n.id},[i.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,kae)],8,Mae)}const Sae=bt(wae,[["render",xae]]),Lae={props:{id:{type:String,required:!0},data:{type:Object,required:!0},change:{type:String,default:"neutral"},unit:{type:String,default:"Count"},width:{type:Number,default:350},height:{type:Number,default:200},hideAxis:{type:Boolean,default:!1},hideTooltip:{type:Boolean,default:!1},resizable:{type:Boolean,default:!1},tooltipOffset:{type:String,default:"layer"},valueName:{type:String,default:"Value"},theme:{type:String,default:"light"}},data(){return{svg:null}},watch:{data:{handler(){this.createChart(this.data)},deep:!0}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.resizable?this.svg=Be("#"+this.id).append("svg").attr("viewBox",`0 0 ${this.width} ${this.height}`):this.svg=Be("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height);const e=this.data.color?this.data.color:Kt[this.theme][this.change],t=this.svg.append("defs").append("linearGradient").attr("id","gradientFill"+this.id).attr("x1","0%").attr("x2","0%").attr("y1","100%").attr("y2","0%");t.append("stop").attr("offset","0%").style("stop-color",Kt[this.theme].canvas).style("stop-opacity",.5),t.append("stop").attr("offset","100%").style("stop-color",e).style("stop-opacity",1)},createChart(e){const t=this.width,n=this.height,r=this.hideAxis?2:20,a=this.hideAxis?2:15,o=this.hideAxis?2:30,s=this.hideAxis?2:50,l=t>300?3:2,u=t>300?5:3,c=e.color?e.color:Kt[this.theme][this.change];let d=this.unit==="Percent (%)"?100:0;e.values.forEach(w=>{w>d&&(d=w)});const h=To(Ut(e.slots),[s,t-a]),f=Sr([0,d],[n-o,r]),m=(w,T)=>{const S=new Date(T.slots).toUTCString(),D=this.unit==="Bytes (B)"?An(T.values)+"B":this.unit==="Percent (%)"?T.values.toFixed(2)+"%":Cn(T.values);w.target.r.baseVal.value=u,Be("#"+this.id+"tooltip").html(`Time: ${S}<br>${this.valueName}: ${D}`).style("opacity",1).style("left",w[this.tooltipOffset+"X"]+15+"px").style("top",w[this.tooltipOffset+"Y"]+"px")},b=(w,T)=>{w.target.r.baseVal.value=l,Be("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},M=Fd().x((w,T)=>h(w.slots)).y((w,T)=>f(w.values)),x=fre().x((w,T)=>h(w.slots)).y0(n-o).y1((w,T)=>f(w.values)),L=this.svg,g=this;L.selectAll("g").data([e]).join(w=>y(w),w=>y(w),w=>k(w));function y(w){w.append("g").call(T=>{T.append("g").call(S=>{S.append("g").attr("id",g.id+"xaxis").attr("transform",`translate(0,${n-o})`).call(Vn(h).ticks(g.hideAxis?0:t/80).tickSizeOuter(0)),S.append("g").attr("id",g.id+"yaxis").attr("transform",`translate(${s},0)`).call(js(f).ticks(g.hideAxis?0:n/40).tickFormat(D=>g.unit==="Bytes (B)"?An(D):Cn(D))).call(D=>g.hideAxis?D.select(".domain").attr("stroke-width",.5):D.select(".domain").remove()).call(D=>D.selectAll(".tick line").clone().attr("x2",t-s-a).attr("stroke-opacity",.1)).call(D=>D.append("text").attr("x",-s).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(g.hideAxis?"":g.unit))})}).call(T=>{T.append("g").call(S=>{if(S.append("path").attr("class",D=>g.id+"line").attr("z-index",1).attr("stroke",c).attr("stroke-width",1.5).attr("d",function(D){const O=D.slots.map((V,E)=>({slots:V,values:e.values[E]}));return M(O)}).attr("class","area").attr("d",function(D){const O=D.slots.map((V,E)=>({slots:V,values:e.values[E]}));return x(O)}).attr("fill","url(#gradientFill"+g.id+")"),!g.hideTooltip){const D=g.data.slots.map((O,V)=>({slots:O,values:g.data.values[V]}));S.append("g").call(O=>D.forEach(V=>{O.append("circle").attr("class",E=>g.id+"points").attr("stroke",c).attr("r",l).attr("cx",E=>h(V.slots)).attr("cy",E=>f(V.values)).on("mouseover",E=>m(E,V)).on("mouseout",E=>b(E))}))}})})}function k(w){w.call(T=>T.style("opacity",0).remove())}}}},Yae=["id"],Tae=["id"];function Eae(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock("div",{id:n.id},[i.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,Tae)],8,Yae)}const Dae=bt(Lae,[["render",Eae]]),Nae={props:{id:{type:String,required:!0},data:{type:Object,required:!0},unit:{type:String,default:"Cost ($)"},width:{type:Number,default:575},height:{type:Number,default:350},title:{type:String,default:""},names:{type:Object,default:()=>{}},isTime:{type:Boolean,default:!0},tooltipOffset:{type:String,default:"layer"},slotName:{type:String,default:"Field"},valueName:{type:String,default:"Value"},theme:{type:String,default:"light"}},data(){return{svg:null,legend:null}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.svg=Be("#"+this.id).append("svg").attr("width",this.width).attr("height",this.title?this.height+30:this.height)},createChart(e){const t=this.width,n=this.title?this.height+30:this.height,r=20,a=15,o=30,s=50,l=[],u=Object.keys(this.names),c=(x,L)=>{const g=this.isTime?new Date(L.data[0]).toUTCString():L.data[0],y=L[1]-L[0],k=this.names[L.key]||L.key,w=this.unit==="Bytes (B)"?An(y)+"B":this.unit==="Percent (%)"?y.toFixed(2)+"%":this.unit==="Cost ($)"?"$"+y.toFixed(2):Cn(y);x.target.style.opacity=.7,Be("#"+this.id+"tooltip").html(`${k}<br>${this.isTime?"Time":this.slotName}: ${g}<br>${this.valueName}: ${w}`).style("opacity",1).style("left",x[this.tooltipOffset+"X"]+10+"px").style("top",x[this.tooltipOffset+"Y"]+"px")},d=(x,L)=>{x.target.style.opacity=1,Be("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},h=(x,L)=>{const g=u.indexOf(L.key);at("."+this.id+"bar").style("opacity",.7),at("."+this.id+g+"bar").style("opacity",1),at("#"+this.id+g+"dots").attr("r",6),at("."+this.id+g+"labels").attr("font-weight",1e3)},f=(x,L)=>{const g=u.indexOf(L.key);at("."+this.id+"bar").style("opacity",1),at("#"+this.id+g+"dots").attr("r",5),at("."+this.id+g+"labels").attr("font-weight",500)},m=(x,L)=>{const g=u.indexOf(L.key);Be("."+this.id+"xaxis").remove(),Be("."+this.id+"yaxis").remove(),at("#"+this.id+" rect").remove(),x.target.classList.contains("show")?(l.push(L.key),x.target.classList.remove("show"),x.target.classList.add("hide"),at("#"+this.id+g+"dots").attr("opacity","0.5")):(l.splice(l.indexOf(L.key),1),x.target.classList.remove("hide"),x.target.classList.add("show"),at("#"+this.id+g+"dots").attr("opacity","1")),b()},b=()=>{const x=e.series.filter(w=>!l.includes(w.name)),L=_T().keys(Lx(x.map(w=>w.name))).value((w,T)=>w[1].get(T)===void 0?0:w[1].get(T).value)(bx(x,w=>w.slot,w=>w.name)),g=this.isTime?To(Ut(e.slots),[s,t-a]):Yo(e.slots,[s,t-a]),y=this.title?[n-o,r+30]:[n-o,r],k=Sr([0,Pn(L,w=>Pn(w,T=>T[1]))],y);return this.svg.append("g").attr("transform",`translate(0,${n-o})`).attr("class",this.id+"xaxis").call(this.isTime?Vn(g).ticks(t/80).tickSizeOuter(0):Vn(g).ticks(t/20).tickSizeOuter(0).tickFormat(w=>{if(!this.isTime)return po(w,(t-a)/e.slots.length*8)})),this.svg.append("g").attr("transform",`translate(${s},0)`).attr("class",this.id+"yaxis").call(js(k).ticks(n/40).tickFormat(w=>this.unit==="Bytes (B)"?An(w):this.unit==="Cost ($)"?qd(w):Cn(w))).call(w=>w.select(".domain").remove()).call(w=>w.selectAll(".tick line").clone().attr("x2",t-s-a).attr("stroke-opacity",.1)).call(w=>w.append("text").attr("x",-s).attr("y",this.title?40:10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit)),this.svg.append("g").selectAll().data(L).join("g").attr("fill",w=>cy[this.theme][w.key]||_t[u.indexOf(w.key)%_t.length]).selectAll("rect").data(w=>w.map(T=>(T.key=w.key,T))).join("rect").attr("class",w=>{const T=u.indexOf(w.key);return`${this.id}${T}bar ${this.id}bar`}).attr("x",w=>g(w.data[0])).attr("y",w=>k(w[1])).attr("height",w=>k(w[0])-k(w[1])).attr("width",this.isTime?15:Math.max(g.step()-5,15)).on("mouseover",c).on("mouseout",d),L},M=b();this.svg.append("g").call(x=>x.append("text").attr("x",0).attr("y",20).attr("fill","currentColor").attr("text-anchor","start").attr("font-weight","bold").attr("font-size","20px").text(this.title)),e.series.length===0&&this.svg.append("text").attr("x",t/2).attr("y",n/2).attr("text-anchor","middle").text("No data available").attr("fill","currentColor"),this.legend=Be("#"+this.id+"legend").append("svg").attr("width",Math.max(this.width,M.length*125)).attr("height",20),this.legend.selectAll("legendDots").data(M).enter().append("circle").attr("id",x=>this.id+u.indexOf(x.key)+"dots").attr("class","show").attr("cx",(x,L)=>t/(M.length+1)+L*120-10).attr("cy",15).attr("r",5).attr("fill",(x,L)=>cy[this.theme][x.key]||_t[L%_t.length]).on("mouseover",h).on("mouseout",f).on("click",m),this.legend.selectAll("legendLabels").data(M).enter().append("text").attr("class",x=>this.id+u.indexOf(x.key)+"labels").attr("x",(x,L)=>t/(M.length+1)+L*120).attr("y",15).attr("fill",(x,L)=>cy[this.theme][x.key]||_t[L%_t.length]).text((x,L)=>po(this.names[x[0].key],700)).attr("font-weight",500).attr("text-anchor","left").attr("font-size","11px").style("alignment-baseline","middle")}}},Cae=["id"],Aae=["id"],Oae=["id"];function jae(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{id:n.id},[i.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,Aae)],8,Cae),i.createElementVNode("div",{class:"overflow-auto",style:i.normalizeStyle(`width: ${n.width}px; overflow: auto`)},[i.createElementVNode("div",{id:n.id+"legend"},null,8,Oae)],4)],64)}const Bae=bt(Nae,[["render",jae]]),Pae={props:{id:{type:String,required:!0},data:{type:Object,required:!0},names:{type:Object,default:{}},unit:{type:String,default:"Cost ($)"},width:{type:Number,default:575},height:{type:Number,default:350},isTime:{type:Boolean,default:!0},tooltipOffset:{type:String,default:"layer"},slotName:{type:String,default:"Field"},valueName:{type:String,default:"Value"},theme:{type:String,default:"light"}},data(){return{svg:null,legend:null}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.svg=Be("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height)},createChart(e){const t=this.width,n=this.height,r=20,a=15,o=30,s=50,l={},u={};e.forEach(y=>{l[y.action]=y.action,u[y.instance]=y.instance});const c=[],d=Object.keys(l),h=Object.keys(u),f=[];e.forEach(y=>{y.slots.forEach((k,w)=>{f.push({slot:k,action:y.action,instance:y.instance,value:y.values[w]})})});const m=(y,k)=>{const w=this.isTime?new Date(k.data[0]).toUTCString():k.data[0],T=k[1]-k[0],S=k.key.split(":")[0],D=this.names[k.key.split(":")[1]]||k.key.split(":")[1],O=this.unit==="Bytes (B)"?An(T)+"B":this.unit==="Percent (%)"?T.toFixed(2)+"%":this.unit==="Cost ($)"?"$"+T.toFixed(2):Cn(T);y.target.style.opacity=.7,Be("#"+this.id+"tooltip").html(`${S}<br>Instance: ${D}<br>${this.isTime?"Time":this.slotName}: ${w}<br>${this.valueName}: ${O}`).style("opacity",1).style("left",y[this.tooltipOffset+"X"]+10+"px").style("top",y[this.tooltipOffset+"Y"]+"px")},b=(y,k)=>{y.target.style.opacity=1,Be("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},M=(y,k)=>{const w=d.indexOf(k);at("."+this.id+"bar").style("opacity",.7),at("."+this.id+w+"bar").style("opacity",1),at("#"+this.id+w+"dots").attr("r",6),at("."+this.id+w+"labels").attr("font-weight",1e3)},x=(y,k)=>{const w=d.indexOf(k);at("."+this.id+"bar").style("opacity",1),at("#"+this.id+w+"dots").attr("r",5),at("."+this.id+w+"labels").attr("font-weight",500)},L=(y,k)=>{const w=d.indexOf(k);Be("."+this.id+"xaxis").remove(),Be("."+this.id+"yaxis").remove(),at("#"+this.id+" rect").remove(),y.target.classList.contains("show")?(c.push(k),y.target.classList.remove("show"),y.target.classList.add("hide"),at("#"+this.id+w+"dots").attr("opacity","0.5")):(c.splice(c.indexOf(k),1),y.target.classList.remove("hide"),y.target.classList.add("show"),at("#"+this.id+w+"dots").attr("opacity","1")),g()},g=()=>{const y=f.filter(j=>!c.includes(j.action)),k=y.map(j=>j.slot).filter((j,F,B)=>B.indexOf(j)===F),w=Pn(k),T=Xl(k),S=(w-T)/20,D=!w||!T?null:w+S,O=this.isTime?To(Ut([...k,D]),[s,t-a]):Yo(k,[s,t-a]),V=Pn(y,j=>j.value),E=[n-o,r];for(const j of d)if(!c.includes(j)){const F=d.indexOf(j),B=f.filter(q=>q.action===j),z=_T().keys(Lx(B.map(q=>q.action+":"+q.instance))).value((q,J)=>q[1].get(J)===void 0?0:q[1].get(J).value)(bx(B,q=>q.slot,q=>q.action+":"+q.instance)),G=Sr([0,V],E);this.svg.append("g").selectAll().data(z).join("g").attr("fill",q=>Co.scale[q.key.split(":")[0]](.5*h.indexOf(q.key.split(":")[1])/h.length+.5)||_t[d.indexOf(q.key.split(":")[0])%_t.length]).selectAll("rect").data(q=>q.map(J=>(J.key=q.key,J))).join("rect").attr("class",q=>`${this.id}${F}bar ${this.id}bar`).attr("x",q=>O(q.data[0])+30*F/d.length).attr("y",q=>n-o).attr("width",Math.min((t-s-a)/k.length,25)/d.length).attr("height",0).attr("stroke","black").attr("stroke-width","0.5").on("mouseover",m).on("mouseout",b).transition().duration(1e3).attr("y",q=>G(q[1])).attr("height",q=>G(q[0])-G(q[1]))}const R=Sr([0,V],E);this.svg.append("g").attr("transform",`translate(0,${n-o})`).attr("class",this.id+"xaxis").call(this.isTime?Vn(O).ticks(t/80).tickSizeOuter(0):Vn(O).ticks(t/20).tickSizeOuter(0).tickFormat(j=>{if(!this.isTime)return po(j,(t-a)/k.length*8)})),this.svg.append("g").attr("transform",`translate(${s},0)`).attr("class",this.id+"yaxis").call(js(R).ticks(n/40).tickFormat(j=>this.unit==="Bytes (B)"?An(j):this.unit==="Cost ($)"?qd(j):Cn(j))).call(j=>j.select(".domain").remove()).call(j=>j.selectAll(".tick line").clone().attr("x2",t-s-a).attr("stroke-opacity",.1)).call(j=>j.append("text").attr("x",-s).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit))};g(),e.length===0&&this.svg.append("text").attr("x",t/2).attr("y",n/2).attr("text-anchor","middle").text("No data available").attr("fill","currentColor"),this.legend=Be("#"+this.id+"legend").append("svg").attr("width",Math.max(this.width,d.length*100)).attr("height",30),this.legend.selectAll("legendDots").data(d).enter().append("circle").attr("id",y=>this.id+d.indexOf(y)+"dots").attr("class","show").attr("cx",(y,k)=>t/(d.length+1)+k*100-10).attr("cy",5).attr("r",5).attr("fill",(y,k)=>Co[this.theme][y]||_t[k%_t.length]).on("mouseover",M).on("mouseout",x).on("click",L),this.legend.selectAll("legendLabels").data(d).enter().append("text").attr("class",y=>this.id+d.indexOf(y)+"labels").attr("x",(y,k)=>t/(d.length+1)+k*100).attr("y",5).attr("fill",(y,k)=>Co[this.theme][y]||_t[k%_t.length]).text((y,k)=>po(y,700)).attr("font-weight",500).attr("text-anchor","left").attr("font-size","11px").style("alignment-baseline","middle")}}},Vae=["id"],Iae=["id"],Hae=["id"];function Fae(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{id:n.id},[i.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,Iae)],8,Vae),i.createElementVNode("div",{class:"overflow-auto",style:i.normalizeStyle(`width: ${n.width}px; overflow: auto`)},[i.createElementVNode("div",{id:n.id+"legend"},null,8,Hae)],4)],64)}const Rae=bt(Pae,[["render",Fae]]),zae={props:{id:{type:String,required:!0},data:{type:Array,required:!0},unit:{type:String,default:"Count"},width:{type:Number,default:350},height:{type:Number,default:200},tooltipOffset:{type:String,default:"layer"},valueName:{type:String,default:"Value"},theme:{type:String,default:"light"}},data(){return{svg:null,legend:null}},mounted(){this.initializeChart(),this.createChart()},methods:{initializeChart(){this.svg=Be("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height-10)},createChart(){const e=this.width,t=this.height-20,n=Math.min(e,t)/2,r=n*2+100>e?n>150?n-75:n-50:n,a={};this.data.forEach((k,w)=>{a[k.field]=w});const o=pre().value(k=>k.values),s=ey().innerRadius(0).outerRadius(r),l=ey().innerRadius(r*.9).outerRadius(r*.9),u=(k,w)=>{const T=!k.target.id||k.target.id.endsWith("dots")?t/2:k[this.tooltipOffset+"Y"],S=!k.target.id||k.target.id.endsWith("dots")?0:k[this.tooltipOffset+"X"],D=a[w.data.field],O=this.unit==="Bytes (B)"||this.unit==="B"?An(w.data.values)+"B":this.unit==="Percent (%)"?w.data.values.toFixed(2)+"%":Cn(w.data.values);at("."+this.id+"pie").style("opacity",.4),Be("#"+this.id+D+"pie").style("opacity",1),at("."+this.id+"labels").style("opacity",.4),Be("#"+this.id+D+"labels").style("opacity",1),Be("#"+this.id+D+"polyline").style("opacity",1),Be("#"+this.id+"tooltip").html(`${w.data.field}<br>${this.valueName}: ${O} (${((w.endAngle-w.startAngle)/(2*Math.PI)*100).toFixed(2)}%)`).style("opacity",1).style("left",S+10+"px").style("top",T+"px")},c=()=>{at("."+this.id+"pie").style("opacity",.8),at("."+this.id+"labels").style("opacity",1),Be("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},d=o(this.data),h=d.reduce((k,w)=>k+w.data.values,0),f=e/t,m=f>2?f>2.5?1500:900:600,M=(k=>{const w=r<100?12:14;return k.map((T,S)=>{if(S===0)return T;if(!h){const V=k[S-1].pos[1]-T.pos[1]+w;return T.pos[1]+=V,T}const D=(k[S-1].startAngle+k[S-1].endAngle)/2,O=(T.startAngle+T.endAngle)/2;if(D<Math.PI&&O>Math.PI)return T;if(D>Math.PI&&O<Math.PI)return T;if(O>Math.PI){const V=k[S-1].pos[1]-T.pos[1]+w;V>0&&(T.pos[1]+=V)}else{const V=T.pos[1]-k[S-1].pos[1]+w;V>0&&(T.pos[1]-=V)}return T})})(d.map(k=>h?{...k,pos:l.centroid(k)}:{...k,pos:l.centroid({startAngle:2*Math.PI,endAngle:2*Math.PI})}).sort((k,w)=>w.startAngle-k.startAngle)),x=this.svg,L=this;x.selectAll("g").data(M).join(k=>g(k),k=>g(k),k=>y(k));function g(k){const w=k.append("g"),T=k.append("g");w.append("path").attr("class",L.id+"pie").attr("id",S=>L.id+a[S.data.field]+"pie").attr("transform",`translate(${e/2},${t/2+10})`).attr("d",S=>(h||(S.endAngle=Math.PI*d.length),s(S))).attr("fill",(S,D)=>h?_t[D%_t.length]:_t[0]).style("opacity",.8).style("fill-opacity",0).on("mouseover",u).on("mouseout",c).transition().duration(800).attrTween("d",function(S){const D=Ha(L._current,S);return L._current=D(1),O=>s(D(O))}).style("fill-opacity",1),T.append("polyline").attr("class",L.id+"labels").attr("id",S=>L.id+a[S.data.field]+"polyline").attr("points",S=>{const D=S.pos,V=(S.startAngle+S.endAngle)/2<Math.PI?r*1.1:-r*1.1;if(!h){const E=-r*1.1;return[s.centroid({startAngle:0,endAngle:0}),l.centroid({startAngle:0,endAngle:0}),[E,D[1]]]}return[s.centroid(S),l.centroid(S),[V,D[1]]]}).attr("fill","none").style("stroke",L.theme==="dark"?"white":"black").attr("transform",`translate(${e/2},${t/2})`).style("opacity",0).transition().duration(800).style("opacity",1),T.append("text").attr("class",L.id+"labels").attr("id",S=>L.id+a[S.data.field]+"labels").attr("transform",S=>{const D=S.pos;return`translate(${((S.startAngle+S.endAngle)/2<Math.PI?r*1.15:-r*1.15)+e/2},${D[1]+t/2})`}).attr("text-anchor",S=>(S.startAngle+S.endAngle)/2<Math.PI?"start":"end").attr("font-size",r<100?"9px":"11px").style("fill",L.theme==="dark"?"white":"black").text(S=>S.data.field===0?0:S.data.field?po(S.data.field,m):"(no name)").on("mouseover",u).on("mouseout",c).style("opacity",0).transition().duration(1200).style("opacity",1)}function y(k){k.call(w=>w.style("opacity",0).remove())}}}},qae=["id"],Uae=["id"],Wae=["id"];function Gae(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{id:n.id,class:"float-left"},[i.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,Uae)],8,qae),i.createElementVNode("div",{class:"overflow-auto",style:i.normalizeStyle(`width: ${n.width}px; overflow: auto`)},[i.createElementVNode("div",{id:n.id+"legend"},null,8,Wae)],4)],64)}const Kae=bt(zae,[["render",Gae]]),Jae={props:{id:{type:String,required:!0},data:{type:Object,required:!0},width:{type:Number,default:350},height:{type:Number,default:200},theme:{type:String,default:"light"}},data(){return{svg:null,legend:null}},mounted(){this.initializeChart(),this.createChart()},methods:{initializeChart(){this.svg=Be("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height)},createChart(){const e=this.width,t=this.height,n=Math.min(e,t)/2,r=this.data.progress,a=ey().innerRadius(n*.7).outerRadius(n).startAngle(0);this.svg.append("path").datum({endAngle:2*Math.PI}).attr("d",a).attr("fill",Kt[this.theme].canvas).attr("transform",`translate(${e/2},${t/2})`),this.svg.append("path").datum({endAngle:0}).attr("d",a).attr("fill",Kt[this.theme].secondary).attr("transform",`translate(${e/2},${t/2})`).transition().duration(1e3).call(o=>o.attrTween("d",s=>{const l=Ha(0,r*2*Math.PI);return u=>(s.endAngle=l(u),a(s))})),this.svg.append("text").attr("text-anchor","middle").attr("dy","0.35em").style("font-size","35px").text("0%").style("fill",Kt[this.theme].text).attr("transform",`translate(${e/2},${t/2})`).transition().duration(1e3).tween("text",function(){const o=Ha(0,r*100);return function(s){this.textContent=`${Math.round(o(s))}%`}})}}},Zae=["id"];function Xae(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock("div",{id:n.id,class:"float-left"},null,8,Zae)}const Qae=bt(Jae,[["render",Xae]]);function Ao(e){return e!=null&&!Number.isNaN(e)}function Qs(e,t){return+Ao(t)-+Ao(e)||ko(e,t)}function fy(e,t){return+Ao(t)-+Ao(e)||Xc(e,t)}function hy(e){return e!=null&&`${e}`!=""}function yT(e){return isFinite(e)?e:NaN}function Sp(e){return e>0&&isFinite(e)?e:NaN}function my(e){return e<0&&isFinite(e)?e:NaN}function $ae(e,t){if(e instanceof Date||(e=new Date(+e)),isNaN(e))return typeof t=="function"?t(e):t;const n=e.getUTCHours(),r=e.getUTCMinutes(),a=e.getUTCSeconds(),o=e.getUTCMilliseconds();return`${eie(e.getUTCFullYear())}-${ji(e.getUTCMonth()+1,2)}-${ji(e.getUTCDate(),2)}${n||r||a||o?`T${ji(n,2)}:${ji(r,2)}${a||o?`:${ji(a,2)}${o?`.${ji(o,3)}`:""}`:""}Z`:""}`}function eie(e){return e<0?`-${ji(-e,6)}`:e>9999?`+${ji(e,6)}`:ji(e,4)}function ji(e,t){return`${e}`.padStart(t,"0")}const tie=/^(?:[-+]\d{2})?\d{4}(?:-\d{2}(?:-\d{2})?)?(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d{3})?)?(?:Z|[-+]\d{2}:?\d{2})?)?$/;function bT(e,t){return tie.test(e+="")?new Date(e):typeof t=="function"?t(e):t}function yu(e){if(e==null)return;const t=e[0],n=e[e.length-1];return Xc(t,n)}const bu=1e3,Oo=bu*60,jo=Oo*60,Wa=jo*24,Ga=Wa*7,$s=Wa*30,Bo=Wa*365,py=[["millisecond",1],["2 milliseconds",2],["5 milliseconds",5],["10 milliseconds",10],["20 milliseconds",20],["50 milliseconds",50],["100 milliseconds",100],["200 milliseconds",200],["500 milliseconds",500],["second",bu],["5 seconds",5*bu],["15 seconds",15*bu],["30 seconds",30*bu],["minute",Oo],["5 minutes",5*Oo],["15 minutes",15*Oo],["30 minutes",30*Oo],["hour",jo],["3 hours",3*jo],["6 hours",6*jo],["12 hours",12*jo],["day",Wa],["2 days",2*Wa],["week",Ga],["2 weeks",2*Ga],["month",$s],["3 months",3*$s],["6 months",6*$s],["year",Bo],["2 years",2*Bo],["5 years",5*Bo],["10 years",10*Bo],["20 years",20*Bo],["50 years",50*Bo],["100 years",100*Bo]],_y=new Map([["second",bu],["minute",Oo],["hour",jo],["day",Wa],["monday",Ga],["tuesday",Ga],["wednesday",Ga],["thursday",Ga],["friday",Ga],["saturday",Ga],["sunday",Ga],["week",Ga],["month",$s],["year",Bo]]),wT=new Map([["second",Zr],["minute",Ld],["hour",Td],["day",Gs],["monday",Dd],["tuesday",aL],["wednesday",iL],["thursday",Js],["friday",oL],["saturday",sL],["sunday",pu],["week",pu],["month",Cd],["year",Xr]]),gy=new Map([["second",Zr],["minute",Yd],["hour",Ed],["day",op],["monday",Nd],["tuesday",lL],["wednesday",uL],["thursday",Xs],["friday",cL],["saturday",dL],["sunday",_u],["week",_u],["month",Ad],["year",Qr]]),Ud=Symbol("intervalDuration"),Lp=Symbol("intervalType");for(const[e,t]of wT)t[Ud]=_y.get(e),t[Lp]="time";for(const[e,t]of gy)t[Ud]=_y.get(e),t[Lp]="utc";const Wd=[["year",Qr,"utc"],["month",Ad,"utc"],["day",op,"utc",6*$s],["hour",Ed,"utc",3*Wa],["minute",Yd,"utc",6*jo],["second",Zr,"utc",30*Oo]],Yp=[["year",Xr,"time"],["month",Cd,"time"],["day",Gs,"time",6*$s],["hour",Td,"time",3*Wa],["minute",Ld,"time",6*jo],["second",Zr,"time",30*Oo]],nie=[Wd[0],Yp[0],Wd[1],Yp[1],Wd[2],Yp[2],...Wd.slice(3)];function MT(e){let t=`${e}`.toLowerCase();t.endsWith("s")&&(t=t.slice(0,-1));let n=1;const r=/^(?:(\d+)\s+)/.exec(t);switch(r&&(t=t.slice(r[0].length),n=+r[1]),t){case"quarter":t="month",n*=3;break;case"half":t="month",n*=6;break}let a=gy.get(t);if(!a)throw new Error(`unknown interval: ${e}`);if(n>1&&!a.every)throw new Error(`non-periodic interval: ${t}`);return[t,n]}function kT(e){return xT(MT(e),"time")}function vy(e){return xT(MT(e),"utc")}function xT([e,t],n){let r=(n==="time"?wT:gy).get(e);return t>1&&(r=r.every(t),r[Ud]=_y.get(e)*t,r[Lp]=n),r}function ST(e,t){if(!(t>1))return;const n=e[Ud];if(!py.some(([,a])=>a===n)||n%Wa===0&&Wa<n&&n<$s)return;const[r]=py[em(([,a])=>Math.log(a)).center(py,Math.log(n*t))];return(e[Lp]==="time"?kT:vy)(r)}function LT(e,t,n){const r=t==="time"?Kv:Pd;if(n==null)return r(e==="year"?"%Y":e==="month"?"%Y-%m":e==="day"?"%Y-%m-%d":e==="hour"||e==="minute"?"%Y-%m-%dT%H:%M":e==="second"?"%Y-%m-%dT%H:%M:%S":"%Y-%m-%dT%H:%M:%S.%L");const a=rie(n);switch(e){case"millisecond":return wu(r(".%L"),r(":%M:%S"),a);case"second":return wu(r(":%S"),r("%-I:%M"),a);case"minute":return wu(r("%-I:%M"),r("%p"),a);case"hour":return wu(r("%-I %p"),r("%b %-d"),a);case"day":return wu(r("%-d"),r("%b"),a);case"month":return wu(r("%b"),r("%Y"),a);case"year":return r("%Y")}throw new Error("unable to format time ticks")}function rie(e){return e==="left"||e==="right"?(t,n)=>`
90
+ Se.version="2.30.1",Hq(Ot),Se.fn=Ye,Se.min=TW,Se.max=EW,Se.now=DW,Se.utc=Aa,Se.unix=aK,Se.months=oK,Se.isDate=Hc,Se.locale=wo,Se.invalid=Ah,Se.duration=Wr,Se.isMoment=qr,Se.weekdays=lK,Se.parseZone=iK,Se.localeData=wi,Se.isDuration=Gh,Se.monthsShort=sK,Se.weekdaysMin=cK,Se.defineLocale=sg,Se.updateLocale=iW,Se.locales=oW,Se.weekdaysShort=uK,Se.normalizeUnits=yr,Se.relativeTimeRounding=PK,Se.relativeTimeThreshold=VK,Se.calendarFormat=tG,Se.prototype=Ye,Se.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const HK={class:"col"},FK={__name:"DatePickerInput",props:{from:Number,to:Number},emits:["selectTime"],setup(e,{emit:t}){const n=e,r=t,a=i.ref([]);i.watch(a,u=>{r("selectTime",[Se(u[0]).valueOf(),Se(u[1]).valueOf()])}),i.watch(()=>n.from,u=>{u?a.value[0]=l(u):s()}),i.watch(()=>n.to,u=>{u&&(a.value[1]=l(u))}),i.onMounted(()=>{if(n.from&&n.to){const u=l(n.from),c=l(n.to);a.value=[u,c]}else s()});function o(){const u=Se().valueOf();return[{label:"Last Hour",atClick:()=>[Se().subtract(1,"hours").valueOf(),u]},{label:"Last Three Hours",atClick:()=>[Se().subtract(3,"hours").valueOf(),u]},{label:"Last Six Hours",atClick:()=>[Se().subtract(6,"hours").valueOf(),u]},{label:"Last Twelve Hours",atClick:()=>[Se().subtract(12,"hours").valueOf(),u]},{label:"Last Day",atClick:()=>[Se().subtract(1,"days").valueOf(),u]},{label:"Last Three Days",atClick:()=>[Se().subtract(3,"days").valueOf(),u]},{label:"Last Week",atClick:()=>[Se().subtract(7,"days").valueOf(),u]}]}function s(){a.value=[l(Se().subtract(1,"hours")),l(Se())]}function l(u){return Se(u).format("YYYY-MM-DD HH:mm:ss")}return(u,c)=>(i.openBlock(),i.createElementBlock("div",HK,[i.createVNode(i.unref(Ch),{shortcuts:o,modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=d=>a.value=d)},null,8,["modelValue"])]))}},RK={key:0},zK={key:1},qK={key:2},UK=i.defineComponent({__name:"TriState",props:["state"],emits:["newState"],setup(e,{emit:t}){const n=e,r=t,a=i.ref(n.state);function o(){switch(a.value){case"unchecked":a.value="checked";break;case"checked":a.value="ignored";break;default:a.value="unchecked"}r("newState",a.value)}return(s,l)=>(i.openBlock(),i.createElementBlock("div",{onClick:l[0]||(l[0]=u=>o())},[a.value==="unchecked"?(i.openBlock(),i.createElementBlock("div",RK,[i.createVNode(i.unref(qf))])):i.createCommentVNode("",!0),a.value==="checked"?(i.openBlock(),i.createElementBlock("div",zK,[i.createVNode(i.unref(qf),{checked:!0})])):i.createCommentVNode("",!0),a.value==="ignored"?(i.openBlock(),i.createElementBlock("div",qK,[i.createVNode(i.unref(qf),{indeterminate:!0})])):i.createCommentVNode("",!0)]))}}),WK={class:"text-sm font-light"},GK={class:"flex justify-between pt-3 pb-1 relative"},KK={class:"font-light"},JK={class:"flex"},ZK={class:"flex justify-between py-1"},XK={class:"flex items-center min-w-0"},QK={class:"px-2 truncate"},$K=i.defineComponent({__name:"Leaf",props:{parent:{type:Object,default:{}},children:{type:Array,default:[]},clear:Number,facetOptions:Object,tooltip:{type:Boolean,default:!1}},emits:["newState"],setup(e,{emit:t}){const n=e,r=t,a=i.ref(n.parent.show),o=i.ref(!1);function s(){return a.value<n.children.length?"text-sky-600 cursor-pointer":"text-gray-400 cursor-not-allowed"}function l(){return a.value===0||n.children.length===0?"text-gray-400 cursor-not-allowed":"text-sky-600 cursor-pointer"}function u(){a.value<n.children.length&&(a.value+=5)}function c(){a.value>0&&(a.value-=5)}function d(h,f,m){r("newState",h,f,m)}return(h,f)=>(i.openBlock(),i.createElementBlock("div",WK,[i.createElementVNode("div",GK,[i.createElementVNode("div",{class:"text-base font-normal max-w-3/4 truncate",onMouseover:f[0]||(f[0]=m=>o.value=!0),onMouseout:f[1]||(f[1]=m=>o.value=!1)},[i.createTextVNode(i.toDisplayString(e.parent.title)+" ",1),i.createElementVNode("span",KK,"("+i.toDisplayString(e.children.length)+")",1)],32),i.createElementVNode("div",JK,[i.createVNode(i.unref(PN),{class:i.normalizeClass(["icon-lg",s()]),onClick:f[2]||(f[2]=m=>u())},null,8,["class"]),i.createVNode(i.unref(ON),{class:i.normalizeClass(["icon-lg",l()]),onClick:f[3]||(f[3]=m=>c())},null,8,["class"])]),n.tooltip?(i.openBlock(),i.createBlock(i.unref(mo),{key:0,tooltip:e.parent.label,showingTooltip:o.value,direction:"top",class:"left-20"},null,8,["tooltip","showingTooltip"])):i.createCommentVNode("",!0)]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.children.slice(0,a.value),m=>(i.openBlock(),i.createElementBlock("div",ZK,[i.createElementVNode("div",XK,[i.createVNode(UK,{state:m.state,onNewState:b=>d(e.parent.label,m.label,b)},null,8,["state","onNewState"]),i.createElementVNode("div",QK,i.toDisplayString(m.label?m.label:"-"),1)]),i.createElementVNode("div",null,i.toDisplayString(m.count),1)]))),256))]))}}),eJ={class:"hidden md:col md:h-full overflow-hidden"},tJ={key:0,class:"flex"},nJ={class:"h-0 flex-1 overflow-y-auto px-1"},rJ={key:0,class:"q-ml-md text-bold"},aJ={key:1,class:"flex flex-shrink-0 px-1 py-1"},iJ={class:"relative isolate inline-flex rounded-md shadow-sm"},oJ=bt(i.defineComponent({__name:"Facet",props:{tree:{type:Array,default:[]},facetOptions:{type:Object,default:{}},state:{type:Number,default:0},searchBar:{type:Boolean,default:!0},tooltip:{type:Boolean,default:!1},buttons:{type:Boolean,default:!1}},emits:["search","updateStr","reset","edit","save","download","search"],setup(e,{emit:t}){var L,g,y;const n=e,r=t,a=i.ref((L=n.facetOptions)==null?void 0:L.mustFilters),o=i.ref((g=n.facetOptions)==null?void 0:g.mustNotFilters),s=i.ref((y=n.facetOptions)==null?void 0:y.searchStr),l=i.ref(n.state),u=i.ref(!1),c=i.ref("");function d(k,w){const T=w.find(S=>S.field===k.parent);typeof T<"u"?T.terms.push(k.child):w.push({field:k.parent,terms:[k.child]})}function h(k,w){const T=w.find(S=>S.field===k.parent);if(typeof T<"u"){const S=T.terms.indexOf(k.child);if(S>-1&&(T.terms.splice(S,1),T.terms.length===0)){const D=w.findIndex(O=>O.field===k.parent);w.splice(D,1)}}}function f(k,w,T){T==="checked"?m({parent:k,child:w}):T==="ignored"?b({parent:k,child:w}):M({parent:k,child:w})}function m(k){d(k,a.value)}function b(k){h(k,a.value),d(k,o.value)}function M(k){h(k,o.value)}function x(k,w=""){u.value=k,c.value=w}return(k,w)=>(i.openBlock(),i.createElementBlock("div",eJ,[e.searchBar?(i.openBlock(),i.createElementBlock("div",tJ,[i.createVNode(i.unref(Ek),{class:"w-full",str:s.value,onSearch:w[0]||(w[0]=T=>r("search")),onUpdate:w[1]||(w[1]=T=>r("updateStr",T))},null,8,["str"])])):i.createCommentVNode("",!0),i.createElementVNode("div",nJ,[e.tree.length==0?(i.openBlock(),i.createElementBlock("div",rJ," No Facet data. Please select a search query. ")):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.tree,T=>(i.openBlock(),i.createElementBlock("div",{key:T.id,class:"primary"},[i.createVNode($K,{parent:T,children:T.children,clear:l.value,"facet-options":e.facetOptions,tooltip:e.tooltip,onNewState:f},null,8,["parent","children","clear","facet-options","tooltip"]),i.createVNode(i.unref(E0))]))),128))]),e.buttons?(i.openBlock(),i.createElementBlock("div",aJ,[i.createElementVNode("span",iJ,[i.createElementVNode("button",{type:"button",class:"action-btn std-red rounded-l-md",onClick:w[2]||(w[2]=T=>r("reset")),onMouseover:w[3]||(w[3]=T=>x(!0,"Reset Facet")),onMouseout:w[4]||(w[4]=T=>x(!1))},[i.createVNode(i.unref(gs),{class:"icon-md","aria-hidden":"true"})],32),i.createElementVNode("button",{type:"button",class:"action-btn std-blue",onClick:w[5]||(w[5]=T=>r("edit")),onMouseover:w[6]||(w[6]=T=>x(!0,"Edit Facet")),onMouseout:w[7]||(w[7]=T=>x(!1))},[i.createVNode(i.unref(nw),{class:"icon-md","aria-hidden":"true"})],32),i.createElementVNode("button",{type:"button",class:"action-btn std-blue",onClick:w[8]||(w[8]=T=>r("save")),onMouseover:w[9]||(w[9]=T=>x(!0,"Save Facet")),onMouseout:w[10]||(w[10]=T=>x(!1))},[i.createVNode(i.unref(fx),{class:"icon-md","aria-hidden":"true"})],32),i.createElementVNode("button",{type:"button",class:"action-btn std-blue rounded-r-md",onClick:w[11]||(w[11]=T=>r("search")),onMouseover:w[12]||(w[12]=T=>x(!0,"Search")),onMouseout:w[13]||(w[13]=T=>x(!1))},[i.createVNode(i.unref(Y0),{class:"icon-md","aria-hidden":"true"})],32),i.createVNode(i.unref(mo),{tooltip:c.value,showingTooltip:u.value,direction:"top",style:{transform:"translateY(-40%)"}},null,8,["tooltip","showingTooltip"])])])):i.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-404d4643"]]),sJ=[{label:"Minute",value:"minute"},{label:"Hourly",value:"hourly"},{label:"Daily",value:"daily"},{label:"Weekly",value:"weekly"},{label:"Monthly",value:"monthly"}],lJ=[{label:"Sunday",value:0},{label:"Monday",value:1},{label:"Tuesday",value:2},{label:"Wednesday",value:3},{label:"Thursday",value:4},{label:"Friday",value:5},{label:"Saturday",value:6}],uJ=Array.from({length:24},(e,t)=>({label:t.toString(),value:t})),cJ=Array.from({length:31},(e,t)=>({label:(t+1).toString(),value:t+1})),dJ=[{label:"GMT",value:"GMT"},{label:"America/New_York",value:"America/New_York"},{label:"America/Chicago",value:"America/Chicago"},{label:"America/Los_Angeles",value:"America/Los_Angeles"},{label:"America/Denver",value:"America/Denver"},{label:"America/Phoenix",value:"America/Phoenix"},{label:"Canada/Atlantic",value:"Canada/Atlantic"},{label:"Canada/Central",value:"Canada/Central"},{label:"Canada/Eastern",value:"Canada/Eastern"},{label:"Canada/Mountain",value:"Canada/Mountain"},{label:"Canada/Pacific",value:"Canada/Pacific"},{label:"Canada/Newfoundland",value:"Canada/Newfoundland"},{label:"Europe/London",value:"Europe/London"},{label:"Europe/Berlin",value:"Europe/Berlin"},{label:"Hongkong",value:"Hongkong"},{label:"Asia/Kuala_Lumpur",value:"Asia/Kuala_Lumpur"}],fJ={class:"flex gap-x-3"},hJ={__name:"Schedule",props:{schedule:Object},setup(e){const t=e,n=i.ref(t.schedule),r=i.computed(()=>n.value.interval==="minute"?Array.from({length:60},(a,o)=>{const s=o+1;return{label:s.toString(),value:s}}):n.value.interval==="hourly"||n.value.interval==="daily"?Array.from({length:12},(a,o)=>{const s=o*5;return{label:s.toString(),value:s}}):[]);return(a,o)=>(i.openBlock(),i.createBlock(i.unref(D0),{sectionName:"Schedule Details"},{default:i.withCtx(()=>[i.createVNode(i.unref(mn),{fieldName:"Interval"},{default:i.withCtx(()=>[i.createVNode(i.unref(Sa),{modelValue:n.value.interval,"onUpdate:modelValue":o[0]||(o[0]=s=>n.value.interval=s),options:i.unref(sJ)},null,8,["modelValue","options"])]),_:1}),i.createElementVNode("div",fJ,[n.value.interval==="monthly"?(i.openBlock(),i.createBlock(i.unref(mn),{key:0,fieldName:"Day",class:"w-44"},{default:i.withCtx(()=>[i.createVNode(i.unref(Sa),{modelValue:n.value.day,"onUpdate:modelValue":o[1]||(o[1]=s=>n.value.day=s),options:i.unref(cJ)},null,8,["modelValue","options"])]),_:1})):i.createCommentVNode("",!0),n.value.interval==="weekly"?(i.openBlock(),i.createBlock(i.unref(mn),{key:1,fieldName:"Weekday",class:"w-44"},{default:i.withCtx(()=>[i.createVNode(i.unref(Sa),{modelValue:n.value.weekday,"onUpdate:modelValue":o[2]||(o[2]=s=>n.value.weekday=s),options:i.unref(lJ)},null,8,["modelValue","options"])]),_:1})):i.createCommentVNode("",!0),n.value.interval!=="minute"&&n.value.interval!=="hourly"?(i.openBlock(),i.createBlock(i.unref(mn),{key:2,fieldName:"Hour",class:"w-44"},{default:i.withCtx(()=>[i.createVNode(i.unref(Sa),{modelValue:n.value.hour,"onUpdate:modelValue":o[3]||(o[3]=s=>n.value.hour=s),options:i.unref(uJ)},null,8,["modelValue","options"])]),_:1})):i.createCommentVNode("",!0),n.value.interval==="minute"||n.value.interval==="hourly"||n.value.interval==="daily"?(i.openBlock(),i.createBlock(i.unref(mn),{key:3,fieldName:"Minute",class:"w-44"},{default:i.withCtx(()=>[i.createVNode(i.unref(Sa),{modelValue:n.value.minute,"onUpdate:modelValue":o[4]||(o[4]=s=>n.value.minute=s),options:r.value},null,8,["modelValue","options"])]),_:1})):i.createCommentVNode("",!0)]),n.value.interval!=="minute"&&n.value.interval!=="hourly"?(i.openBlock(),i.createBlock(i.unref(mn),{key:0,fieldName:"Timezone"},{default:i.withCtx(()=>[i.createVNode(i.unref(Sa),{modelValue:n.value.timezone,"onUpdate:modelValue":o[5]||(o[5]=s=>n.value.timezone=s),options:i.unref(dJ)},null,8,["modelValue","options"])]),_:1})):i.createCommentVNode("",!0)]),_:1}))}};function mJ(e,t){return i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[i.createElementVNode("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z","clip-rule":"evenodd"})])}function pJ(e,t){return i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[i.createElementVNode("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"})])}const _J=e=>{const t=new Date(e),n={weekday:"long",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"};return t.toLocaleTimeString("en-us",n)};function gJ(e){return Se(e).fromNow()}const vJ={role:"list",class:"space-y-6"},yJ={class:"relative flex gap-x-4"},bJ={class:"relative flex icon-lg flex-none items-center justify-center bg-white dark:bg-black"},wJ={key:2,class:"h-1.5 w-1.5 rounded-full bg-gray-100 ring-1 ring-gray-300"},MJ={class:"flex-auto py-0.5 text-xs leading-5 text-gray-500 dark:text-gray-400"},kJ={class:"font-medium text-gray-900 dark:text-gray-200"},xJ=["datetime"],SJ={__name:"Feed",props:{data:Array},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("ul",vJ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.data,(r,a)=>(i.openBlock(),i.createElementBlock("li",yJ,[i.createElementVNode("div",{class:i.normalizeClass([a===e.data.length-1?"h-6":"-bottom-6","absolute left-0 top-0 flex w-6 justify-center"])},n[0]||(n[0]=[i.createElementVNode("div",{class:"w-px bg-gray-200"},null,-1)]),2),i.createElementVNode("div",bJ,[r.action==="resolve"?(i.openBlock(),i.createBlock(i.unref(mJ),{key:0,class:"icon-lg icon-green","aria-hidden":"true"})):r.action==="trigger"?(i.openBlock(),i.createBlock(i.unref(pJ),{key:1,class:"icon-lg icon-red","aria-hidden":"true"})):(i.openBlock(),i.createElementBlock("div",wJ))]),i.createElementVNode("p",MJ,[i.createElementVNode("span",kJ,i.toDisplayString(r.source),1),i.createTextVNode(" "+i.toDisplayString(r.action)+" the alert. ",1)]),i.createElementVNode("time",{datetime:r.timestamp,class:"flex-none py-0.5 text-xs leading-5 text-gray-500 dark:text-gray-400"},i.toDisplayString(i.unref(gJ)(r.timestamp)),9,xJ)]))),256))]))}},LJ={class:"mb-3 flex items-center justify-between relative"},YJ={class:"min-w-0 flex-1"},TJ={class:"row truncate font-medium"},EJ={class:"flex mt-0 ml-4"},DJ={__name:"CategoryCard",props:{category:{type:[Object,String],required:!0}},setup(e){return(t,n)=>(i.openBlock(),i.createBlock(i.unref(aw),null,{default:i.withCtx(()=>[i.createElementVNode("div",LJ,[i.renderSlot(t.$slots,"icon"),i.createElementVNode("div",YJ,[i.createElementVNode("h3",TJ,[i.createTextVNode(i.toDisplayString(e.category.name||e.category)+" ",1),i.renderSlot(t.$slots,"title")])]),i.createElementVNode("div",EJ,[i.renderSlot(t.$slots,"header")])]),i.renderSlot(t.$slots,"default")]),_:3}))}},NJ={},CJ={class:"bg-neutral-600 text-white pl-3 py-1 sm:flex sm:items-center sm:justify-between content-center"},AJ={class:"mt-3 flex sm:mt-0"};function OJ(e,t){return i.openBlock(),i.createElementBlock("div",CJ,[i.renderSlot(e.$slots,"title"),i.createElementVNode("div",AJ,[i.renderSlot(e.$slots,"buttons")])])}const jJ=bt(NJ,[["render",OJ]]),BJ="/data-icon/ai.svg",PJ={},VJ={src:BJ,alt:"avatar"};function IJ(e,t){return i.openBlock(),i.createElementBlock("img",VJ)}const HJ=bt(PJ,[["render",IJ]]),FJ=["src"],RJ={__name:"GithubIcon",props:{theme:{type:String,default:"light"}},setup(e){const t=e,n=i.computed(()=>t.theme==="dark"?"/data-icon/github-dark.svg":"/data-icon/github.svg");return(r,a)=>(i.openBlock(),i.createElementBlock("img",{src:n.value,alt:"avatar"},null,8,FJ))}},zJ="/data-icon/high-priority.svg",qJ={},UJ={src:zJ,alt:"avatar"};function WJ(e,t){return i.openBlock(),i.createElementBlock("img",UJ)}const GJ=bt(qJ,[["render",WJ]]),KJ="/data-icon/power-off.svg",JJ={},ZJ={src:KJ,alt:"avatar"};function XJ(e,t){return i.openBlock(),i.createElementBlock("img",ZJ)}const QJ=bt(JJ,[["render",XJ]]),$J="/data-icon/save.svg",eZ={},tZ={src:$J,alt:"avatar"};function nZ(e,t){return i.openBlock(),i.createElementBlock("img",tZ)}const fx=bt(eZ,[["render",nZ]]);function ko(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Xc(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function em(e){let t,n,r;e.length!==2?(t=ko,n=(l,u)=>ko(e(l),u),r=(l,u)=>e(l)-u):(t=e===ko||e===Xc?e:rZ,n=e,r=e);function a(l,u,c=0,d=l.length){if(c<d){if(t(u,u)!==0)return d;do{const h=c+d>>>1;n(l[h],u)<0?c=h+1:d=h}while(c<d)}return c}function o(l,u,c=0,d=l.length){if(c<d){if(t(u,u)!==0)return d;do{const h=c+d>>>1;n(l[h],u)<=0?c=h+1:d=h}while(c<d)}return c}function s(l,u,c=0,d=l.length){const h=a(l,u,c,d-1);return h>c&&r(l[h-1],u)>-r(l[h],u)?h-1:h}return{left:a,center:s,right:o}}function rZ(){return 0}function hx(e){return e===null?NaN:+e}function*aZ(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const tm=em(ko).right;em(hx).center;function wg(e,t){let n=0;for(let r of e)r!=null&&(r=+r)>=r&&++n;return n}function iZ(e){return e.length|0}function oZ(e){return!(e>0)}function sZ(e){return typeof e!="object"||"length"in e?e:Array.from(e)}function lZ(e){return t=>e(...t)}function uZ(...e){const t=typeof e[e.length-1]=="function"&&lZ(e.pop());e=e.map(sZ);const n=e.map(iZ),r=e.length-1,a=new Array(r+1).fill(0),o=[];if(r<0||n.some(oZ))return o;for(;;){o.push(a.map((l,u)=>e[u][l]));let s=r;for(;++a[s]===n[s];){if(s===0)return t?o.map(t):o;a[s--]=0}}}function mx(e,t){let n=0,r,a=0,o=0;if(t===void 0)for(let s of e)s!=null&&(s=+s)>=s&&(r=s-a,a+=r/++n,o+=r*(s-a));else{let s=-1;for(let l of e)(l=t(l,++s,e))!=null&&(l=+l)>=l&&(r=l-a,a+=r/++n,o+=r*(l-a))}if(n>1)return o/(n-1)}function px(e,t){const n=mx(e,t);return n&&Math.sqrt(n)}function Ut(e,t){let n,r;if(t===void 0)for(const a of e)a!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)));else{let a=-1;for(let o of e)(o=t(o,++a,e))!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}class Os{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let r=0;for(let a=0;a<this._n&&a<32;a++){const o=n[a],s=t+o,l=Math.abs(t)<Math.abs(o)?t-(s-o):o-(s-t);l&&(n[r++]=l),t=s}return n[r]=t,this._n=r+1,this}valueOf(){const t=this._partials;let n=this._n,r,a,o,s=0;if(n>0){for(s=t[--n];n>0&&(r=s,a=t[--n],s=r+a,o=a-(s-r),!o););n>0&&(o<0&&t[n-1]<0||o>0&&t[n-1]>0)&&(a=o*2,r=s+a,a==r-s&&(s=r))}return s}}class Qc extends Map{constructor(t,n=vx){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(Mg(this,t))}has(t){return super.has(Mg(this,t))}set(t,n){return super.set(_x(this,t),n)}delete(t){return super.delete(gx(this,t))}}class $c extends Set{constructor(t,n=vx){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const r of t)this.add(r)}has(t){return super.has(Mg(this,t))}add(t){return super.add(_x(this,t))}delete(t){return super.delete(gx(this,t))}}function Mg({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function _x({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function gx({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function vx(e){return e!==null&&typeof e=="object"?e.valueOf():e}function nm(e){return e}function yx(e,...t){return am(e,nm,nm,t)}function rm(e,t,...n){return am(e,nm,t,n)}function cZ(e,t,...n){return am(e,Array.from,t,n)}function bx(e,...t){return am(e,nm,dZ,t)}function dZ(e){if(e.length!==1)throw new Error("duplicate key");return e[0]}function am(e,t,n,r){return function a(o,s){if(s>=r.length)return n(o);const l=new Qc,u=r[s++];let c=-1;for(const d of o){const h=u(d,++c,o),f=l.get(h);f?f.push(d):l.set(h,[d])}for(const[d,h]of l)l.set(d,a(h,s));return t(l)}(e,0)}function fZ(e,t){return Array.from(t,n=>e[n])}function wx(e,...t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");e=Array.from(e);let[n]=t;if(n&&n.length!==2||t.length>1){const r=Uint32Array.from(e,(a,o)=>o);return t.length>1?(t=t.map(a=>e.map(a)),r.sort((a,o)=>{for(const s of t){const l=im(s[a],s[o]);if(l)return l}})):(n=e.map(n),r.sort((a,o)=>im(n[a],n[o]))),fZ(e,r)}return e.sort(Mx(n))}function Mx(e=ko){if(e===ko)return im;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function im(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const hZ=Math.sqrt(50),mZ=Math.sqrt(10),pZ=Math.sqrt(2);function om(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),o=r/Math.pow(10,a),s=o>=hZ?10:o>=mZ?5:o>=pZ?2:1;let l,u,c;return a<0?(c=Math.pow(10,-a)/s,l=Math.round(e*c),u=Math.round(t*c),l/c<e&&++l,u/c>t&&--u,c=-c):(c=Math.pow(10,a)*s,l=Math.round(e/c),u=Math.round(t/c),l*c<e&&++l,u*c>t&&--u),u<l&&.5<=n&&n<2?om(e,t,n*2):[l,u,c]}function ed(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,o,s]=r?om(t,e,n):om(e,t,n);if(!(o>=a))return[];const l=o-a+1,u=new Array(l);if(r)if(s<0)for(let c=0;c<l;++c)u[c]=(o-c)/-s;else for(let c=0;c<l;++c)u[c]=(o-c)*s;else if(s<0)for(let c=0;c<l;++c)u[c]=(a+c)/-s;else for(let c=0;c<l;++c)u[c]=(a+c)*s;return u}function sm(e,t,n){return t=+t,e=+e,n=+n,om(e,t,n)[2]}function kg(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?sm(t,e,n):sm(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function _Z(e){return Math.max(1,Math.ceil(Math.log(wg(e))/Math.LN2)+1)}function Pn(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n<a||n===void 0&&a>=a)&&(n=a)}return n}function gZ(e,t){let n,r=-1,a=-1;if(t===void 0)for(const o of e)++a,o!=null&&(n<o||n===void 0&&o>=o)&&(n=o,r=a);else for(let o of e)(o=t(o,++a,e))!=null&&(n<o||n===void 0&&o>=o)&&(n=o,r=a);return r}function Xl(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function vZ(e,t){let n,r=-1,a=-1;if(t===void 0)for(const o of e)++a,o!=null&&(n>o||n===void 0&&o>=o)&&(n=o,r=a);else for(let o of e)(o=t(o,++a,e))!=null&&(n>o||n===void 0&&o>=o)&&(n=o,r=a);return r}function kx(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?im:Mx(a);r>n;){if(r-n>600){const u=r-n+1,c=t-n+1,d=Math.log(u),h=.5*Math.exp(2*d/3),f=.5*Math.sqrt(d*h*(u-h)/u)*(c-u/2<0?-1:1),m=Math.max(n,Math.floor(t-c*h/u+f)),b=Math.min(r,Math.floor(t+(u-c)*h/u+f));kx(e,t,m,b,a)}const o=e[t];let s=n,l=r;for(td(e,n,t),a(e[r],o)>0&&td(e,n,r);s<l;){for(td(e,s,l),++s,--l;a(e[s],o)<0;)++s;for(;a(e[l],o)>0;)--l}a(e[n],o)===0?td(e,n,l):(++l,td(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function td(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Ql(e,t,n){if(e=Float64Array.from(aZ(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Xl(e);if(t>=1)return Pn(e);var r,a=(r-1)*t,o=Math.floor(a),s=Pn(kx(e,o).subarray(0,o+1)),l=Xl(e.subarray(o+1));return s+(l-s)*(a-o)}}function yZ(e,t,n=hx){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,o=Math.floor(a),s=+n(e[o],o,e),l=+n(e[o+1],o+1,e);return s+(l-s)*(a-o)}}function bZ(e,t,n){const r=wg(e),a=Ql(e,.75)-Ql(e,.25);return r&&a?Math.ceil((n-t)/(2*a*Math.pow(r,-1/3))):1}function xx(e,t,n){const r=wg(e),a=px(e);return r&&a?Math.ceil((n-t)*Math.cbrt(r)/(3.49*a)):1}function wZ(e,t){let n=0,r=0;if(t===void 0)for(let a of e)a!=null&&(a=+a)>=a&&(++n,r+=a);else{let a=-1;for(let o of e)(o=t(o,++a,e))!=null&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n}function xg(e,t){return Ql(e,.5,t)}function*MZ(e){for(const t of e)yield*t}function Sx(e){return Array.from(MZ(e))}function kZ(e,t){const n=new Qc;if(t===void 0)for(let o of e)o!=null&&o>=o&&n.set(o,(n.get(o)||0)+1);else{let o=-1;for(let s of e)(s=t(s,++o,e))!=null&&s>=s&&n.set(s,(n.get(s)||0)+1)}let r,a=0;for(const[o,s]of n)s>a&&(a=s,r=o);return r}function xZ(e,t=SZ){const n=[];let r,a=!1;for(const o of e)a&&n.push(t(r,o)),r=o,a=!0;return n}function SZ(e,t){return[e,t]}function Sg(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(a);++r<a;)o[r]=e+r*n;return o}function lm(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let a of e)(a=+t(a,++r,e))&&(n+=a)}return n}function um(e){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(e).reverse()}function Lx(...e){const t=new $c;for(const n of e)for(const r of n)t.add(r);return t}function LZ(e){return e}var cm=1,dm=2,Lg=3,nd=4,Yx=1e-6;function YZ(e){return"translate("+e+",0)"}function TZ(e){return"translate(0,"+e+")"}function EZ(e){return t=>+e(t)}function DZ(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function NZ(){return!this.__axis}function fm(e,t){var n=[],r=null,a=null,o=6,s=6,l=3,u=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=e===cm||e===nd?-1:1,d=e===nd||e===dm?"x":"y",h=e===cm||e===Lg?YZ:TZ;function f(m){var b=r??(t.ticks?t.ticks.apply(t,n):t.domain()),M=a??(t.tickFormat?t.tickFormat.apply(t,n):LZ),x=Math.max(o,0)+l,L=t.range(),g=+L[0]+u,y=+L[L.length-1]+u,k=(t.bandwidth?DZ:EZ)(t.copy(),u),w=m.selection?m.selection():m,T=w.selectAll(".domain").data([null]),S=w.selectAll(".tick").data(b,t).order(),D=S.exit(),O=S.enter().append("g").attr("class","tick"),V=S.select("line"),E=S.select("text");T=T.merge(T.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(O),V=V.merge(O.append("line").attr("stroke","currentColor").attr(d+"2",c*o)),E=E.merge(O.append("text").attr("fill","currentColor").attr(d,c*x).attr("dy",e===cm?"0em":e===Lg?"0.71em":"0.32em")),m!==w&&(T=T.transition(m),S=S.transition(m),V=V.transition(m),E=E.transition(m),D=D.transition(m).attr("opacity",Yx).attr("transform",function(R){return isFinite(R=k(R))?h(R+u):this.getAttribute("transform")}),O.attr("opacity",Yx).attr("transform",function(R){var j=this.parentNode.__axis;return h((j&&isFinite(j=j(R))?j:k(R))+u)})),D.remove(),T.attr("d",e===nd||e===dm?s?"M"+c*s+","+g+"H"+u+"V"+y+"H"+c*s:"M"+u+","+g+"V"+y:s?"M"+g+","+c*s+"V"+u+"H"+y+"V"+c*s:"M"+g+","+u+"H"+y),S.attr("opacity",1).attr("transform",function(R){return h(k(R)+u)}),V.attr(d+"2",c*o),E.attr(d,c*x).text(M),w.filter(NZ).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===dm?"start":e===nd?"end":"middle"),w.each(function(){this.__axis=k})}return f.scale=function(m){return arguments.length?(t=m,f):t},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(m){return arguments.length?(n=m==null?[]:Array.from(m),f):n.slice()},f.tickValues=function(m){return arguments.length?(r=m==null?null:Array.from(m),f):r&&r.slice()},f.tickFormat=function(m){return arguments.length?(a=m,f):a},f.tickSize=function(m){return arguments.length?(o=s=+m,f):o},f.tickSizeInner=function(m){return arguments.length?(o=+m,f):o},f.tickSizeOuter=function(m){return arguments.length?(s=+m,f):s},f.tickPadding=function(m){return arguments.length?(l=+m,f):l},f.offset=function(m){return arguments.length?(u=+m,f):u},f}function CZ(e){return fm(cm,e)}function AZ(e){return fm(dm,e)}function Vn(e){return fm(Lg,e)}function js(e){return fm(nd,e)}var OZ={value:()=>{}};function Yg(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new hm(n)}function hm(e){this._=e}function jZ(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",a=n.indexOf(".");if(a>=0&&(r=n.slice(a+1),n=n.slice(0,a)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}hm.prototype=Yg.prototype={constructor:hm,on:function(e,t){var n=this._,r=jZ(e+"",n),a,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((a=(e=r[o]).type)&&(a=BZ(n[a],e.name)))return a;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<s;)if(a=(e=r[o]).type)n[a]=Tx(n[a],e.name,t);else if(t==null)for(a in n)n[a]=Tx(n[a],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new hm(e)},call:function(e,t){if((a=arguments.length-2)>0)for(var n=new Array(a),r=0,a,o;r<a;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],r=0,a=o.length;r<a;++r)o[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],a=0,o=r.length;a<o;++a)r[a].value.apply(t,n)}};function BZ(e,t){for(var n=0,r=e.length,a;n<r;++n)if((a=e[n]).name===t)return a.value}function Tx(e,t,n){for(var r=0,a=e.length;r<a;++r)if(e[r].name===t){e[r]=OZ,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Tg="http://www.w3.org/1999/xhtml";const $l={svg:"http://www.w3.org/2000/svg",xhtml:Tg,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function mm(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),$l.hasOwnProperty(t)?{space:$l[t],local:e}:e}function PZ(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Tg&&t.documentElement.namespaceURI===Tg?t.createElement(e):t.createElementNS(n,e)}}function VZ(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function pm(e){var t=mm(e);return(t.local?VZ:PZ)(t)}function IZ(){}function Eg(e){return e==null?IZ:function(){return this.querySelector(e)}}function HZ(e){typeof e!="function"&&(e=Eg(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var o=t[a],s=o.length,l=r[a]=new Array(s),u,c,d=0;d<s;++d)(u=o[d])&&(c=e.call(u,u.__data__,d,o))&&("__data__"in u&&(c.__data__=u.__data__),l[d]=c);return new Dn(r,this._parents)}function Ex(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function FZ(){return[]}function Dx(e){return e==null?FZ:function(){return this.querySelectorAll(e)}}function RZ(e){return function(){return Ex(e.apply(this,arguments))}}function zZ(e){typeof e=="function"?e=RZ(e):e=Dx(e);for(var t=this._groups,n=t.length,r=[],a=[],o=0;o<n;++o)for(var s=t[o],l=s.length,u,c=0;c<l;++c)(u=s[c])&&(r.push(e.call(u,u.__data__,c,s)),a.push(u));return new Dn(r,a)}function Nx(e){return function(){return this.matches(e)}}function Cx(e){return function(t){return t.matches(e)}}var qZ=Array.prototype.find;function UZ(e){return function(){return qZ.call(this.children,e)}}function WZ(){return this.firstElementChild}function GZ(e){return this.select(e==null?WZ:UZ(typeof e=="function"?e:Cx(e)))}var KZ=Array.prototype.filter;function JZ(){return Array.from(this.children)}function ZZ(e){return function(){return KZ.call(this.children,e)}}function XZ(e){return this.selectAll(e==null?JZ:ZZ(typeof e=="function"?e:Cx(e)))}function QZ(e){typeof e!="function"&&(e=Nx(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var o=t[a],s=o.length,l=r[a]=[],u,c=0;c<s;++c)(u=o[c])&&e.call(u,u.__data__,c,o)&&l.push(u);return new Dn(r,this._parents)}function Ax(e){return new Array(e.length)}function $Z(){return new Dn(this._enter||this._groups.map(Ax),this._parents)}function _m(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}_m.prototype={constructor:_m,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function eX(e){return function(){return e}}function tX(e,t,n,r,a,o){for(var s=0,l,u=t.length,c=o.length;s<c;++s)(l=t[s])?(l.__data__=o[s],r[s]=l):n[s]=new _m(e,o[s]);for(;s<u;++s)(l=t[s])&&(a[s]=l)}function nX(e,t,n,r,a,o,s){var l,u,c=new Map,d=t.length,h=o.length,f=new Array(d),m;for(l=0;l<d;++l)(u=t[l])&&(f[l]=m=s.call(u,u.__data__,l,t)+"",c.has(m)?a[l]=u:c.set(m,u));for(l=0;l<h;++l)m=s.call(e,o[l],l,o)+"",(u=c.get(m))?(r[l]=u,u.__data__=o[l],c.delete(m)):n[l]=new _m(e,o[l]);for(l=0;l<d;++l)(u=t[l])&&c.get(f[l])===u&&(a[l]=u)}function rX(e){return e.__data__}function aX(e,t){if(!arguments.length)return Array.from(this,rX);var n=t?nX:tX,r=this._parents,a=this._groups;typeof e!="function"&&(e=eX(e));for(var o=a.length,s=new Array(o),l=new Array(o),u=new Array(o),c=0;c<o;++c){var d=r[c],h=a[c],f=h.length,m=iX(e.call(d,d&&d.__data__,c,r)),b=m.length,M=l[c]=new Array(b),x=s[c]=new Array(b),L=u[c]=new Array(f);n(d,h,M,x,L,m,t);for(var g=0,y=0,k,w;g<b;++g)if(k=M[g]){for(g>=y&&(y=g+1);!(w=x[y])&&++y<b;);k._next=w||null}}return s=new Dn(s,r),s._enter=l,s._exit=u,s}function iX(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function oX(){return new Dn(this._exit||this._groups.map(Ax),this._parents)}function sX(e,t,n){var r=this.enter(),a=this,o=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(a=t(a),a&&(a=a.selection())),n==null?o.remove():n(o),r&&a?r.merge(a).order():a}function lX(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,a=n.length,o=r.length,s=Math.min(a,o),l=new Array(a),u=0;u<s;++u)for(var c=n[u],d=r[u],h=c.length,f=l[u]=new Array(h),m,b=0;b<h;++b)(m=c[b]||d[b])&&(f[b]=m);for(;u<a;++u)l[u]=n[u];return new Dn(l,this._parents)}function uX(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],a=r.length-1,o=r[a],s;--a>=0;)(s=r[a])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function cX(e){e||(e=dX);function t(h,f){return h&&f?e(h.__data__,f.__data__):!h-!f}for(var n=this._groups,r=n.length,a=new Array(r),o=0;o<r;++o){for(var s=n[o],l=s.length,u=a[o]=new Array(l),c,d=0;d<l;++d)(c=s[d])&&(u[d]=c);u.sort(t)}return new Dn(a,this._parents).order()}function dX(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function fX(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function hX(){return Array.from(this)}function mX(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],a=0,o=r.length;a<o;++a){var s=r[a];if(s)return s}return null}function pX(){let e=0;for(const t of this)++e;return e}function _X(){return!this.node()}function gX(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var a=t[n],o=0,s=a.length,l;o<s;++o)(l=a[o])&&e.call(l,l.__data__,o,a);return this}function vX(e){return function(){this.removeAttribute(e)}}function yX(e){return function(){this.removeAttributeNS(e.space,e.local)}}function bX(e,t){return function(){this.setAttribute(e,t)}}function wX(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function MX(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function kX(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function xX(e,t){var n=mm(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?yX:vX:typeof t=="function"?n.local?kX:MX:n.local?wX:bX)(n,t))}function Ox(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function SX(e){return function(){this.style.removeProperty(e)}}function LX(e,t,n){return function(){this.style.setProperty(e,t,n)}}function YX(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function TX(e,t,n){return arguments.length>1?this.each((t==null?SX:typeof t=="function"?YX:LX)(e,t,n??"")):eu(this.node(),e)}function eu(e,t){return e.style.getPropertyValue(t)||Ox(e).getComputedStyle(e,null).getPropertyValue(t)}function EX(e){return function(){delete this[e]}}function DX(e,t){return function(){this[e]=t}}function NX(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function CX(e,t){return arguments.length>1?this.each((t==null?EX:typeof t=="function"?NX:DX)(e,t)):this.node()[e]}function jx(e){return e.trim().split(/^|\s+/)}function Dg(e){return e.classList||new Bx(e)}function Bx(e){this._node=e,this._names=jx(e.getAttribute("class")||"")}Bx.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Px(e,t){for(var n=Dg(e),r=-1,a=t.length;++r<a;)n.add(t[r])}function Vx(e,t){for(var n=Dg(e),r=-1,a=t.length;++r<a;)n.remove(t[r])}function AX(e){return function(){Px(this,e)}}function OX(e){return function(){Vx(this,e)}}function jX(e,t){return function(){(t.apply(this,arguments)?Px:Vx)(this,e)}}function BX(e,t){var n=jx(e+"");if(arguments.length<2){for(var r=Dg(this.node()),a=-1,o=n.length;++a<o;)if(!r.contains(n[a]))return!1;return!0}return this.each((typeof t=="function"?jX:t?AX:OX)(n,t))}function PX(){this.textContent=""}function VX(e){return function(){this.textContent=e}}function IX(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function HX(e){return arguments.length?this.each(e==null?PX:(typeof e=="function"?IX:VX)(e)):this.node().textContent}function FX(){this.innerHTML=""}function RX(e){return function(){this.innerHTML=e}}function zX(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function qX(e){return arguments.length?this.each(e==null?FX:(typeof e=="function"?zX:RX)(e)):this.node().innerHTML}function UX(){this.nextSibling&&this.parentNode.appendChild(this)}function WX(){return this.each(UX)}function GX(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function KX(){return this.each(GX)}function JX(e){var t=typeof e=="function"?e:pm(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function ZX(){return null}function XX(e,t){var n=typeof e=="function"?e:pm(e),r=t==null?ZX:typeof t=="function"?t:Eg(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function QX(){var e=this.parentNode;e&&e.removeChild(this)}function $X(){return this.each(QX)}function eQ(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function tQ(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function nQ(e){return this.select(e?tQ:eQ)}function rQ(e){return arguments.length?this.property("__data__",e):this.node().__data__}function aQ(e){return function(t){e.call(this,t,this.__data__)}}function iQ(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function oQ(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,a=t.length,o;n<a;++n)o=t[n],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++r]=o;++r?t.length=r:delete this.__on}}}function sQ(e,t,n){return function(){var r=this.__on,a,o=aQ(t);if(r){for(var s=0,l=r.length;s<l;++s)if((a=r[s]).type===e.type&&a.name===e.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=o,a.options=n),a.value=t;return}}this.addEventListener(e.type,o,n),a={type:e.type,name:e.name,value:t,listener:o,options:n},r?r.push(a):this.__on=[a]}}function lQ(e,t,n){var r=iQ(e+""),a,o=r.length,s;if(arguments.length<2){var l=this.node().__on;if(l){for(var u=0,c=l.length,d;u<c;++u)for(a=0,d=l[u];a<o;++a)if((s=r[a]).type===d.type&&s.name===d.name)return d.value}return}for(l=t?sQ:oQ,a=0;a<o;++a)this.each(l(r[a],t,n));return this}function Ix(e,t,n){var r=Ox(e),a=r.CustomEvent;typeof a=="function"?a=new a(t,n):(a=r.document.createEvent("Event"),n?(a.initEvent(t,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(t,!1,!1)),e.dispatchEvent(a)}function uQ(e,t){return function(){return Ix(this,e,t)}}function cQ(e,t){return function(){return Ix(this,e,t.apply(this,arguments))}}function dQ(e,t){return this.each((typeof t=="function"?cQ:uQ)(e,t))}function*fQ(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],a=0,o=r.length,s;a<o;++a)(s=r[a])&&(yield s)}var Ng=[null];function Dn(e,t){this._groups=e,this._parents=t}function rd(){return new Dn([[document.documentElement]],Ng)}function hQ(){return this}Dn.prototype=rd.prototype={constructor:Dn,select:HZ,selectAll:zZ,selectChild:GZ,selectChildren:XZ,filter:QZ,data:aX,enter:$Z,exit:oX,join:sX,merge:lX,selection:hQ,order:uX,sort:cX,call:fX,nodes:hX,node:mX,size:pX,empty:_X,each:gX,attr:xX,style:TX,property:CX,classed:BX,text:HX,html:qX,raise:WX,lower:KX,append:JX,insert:XX,remove:$X,clone:nQ,datum:rQ,on:lQ,dispatch:dQ,[Symbol.iterator]:fQ};function Be(e){return typeof e=="string"?new Dn([[document.querySelector(e)]],[document.documentElement]):new Dn([[e]],Ng)}function mQ(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Cg(e,t){if(e=mQ(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var a=t.getBoundingClientRect();return[e.clientX-a.left-t.clientLeft,e.clientY-a.top-t.clientTop]}}return[e.pageX,e.pageY]}function at(e){return typeof e=="string"?new Dn([document.querySelectorAll(e)],[document.documentElement]):new Dn([Ex(e)],Ng)}const Ag={capture:!0,passive:!1};function Og(e){e.preventDefault(),e.stopImmediatePropagation()}function pQ(e){var t=e.document.documentElement,n=Be(e).on("dragstart.drag",Og,Ag);"onselectstart"in t?n.on("selectstart.drag",Og,Ag):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function _Q(e,t){var n=e.document.documentElement,r=Be(e).on("dragstart.drag",null);t&&(r.on("click.drag",Og,Ag),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function tu(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ad(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function xo(){}var Bs=.7,nu=1/Bs,ru="\\s*([+-]?\\d+)\\s*",id="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Pa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",gQ=/^#([0-9a-f]{3,8})$/,vQ=new RegExp(`^rgb\\(${ru},${ru},${ru}\\)$`),yQ=new RegExp(`^rgb\\(${Pa},${Pa},${Pa}\\)$`),bQ=new RegExp(`^rgba\\(${ru},${ru},${ru},${id}\\)$`),wQ=new RegExp(`^rgba\\(${Pa},${Pa},${Pa},${id}\\)$`),MQ=new RegExp(`^hsl\\(${id},${Pa},${Pa}\\)$`),kQ=new RegExp(`^hsla\\(${id},${Pa},${Pa},${id}\\)$`),Hx={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};tu(xo,Ps,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Fx,formatHex:Fx,formatHex8:xQ,formatHsl:SQ,formatRgb:Rx,toString:Rx});function Fx(){return this.rgb().formatHex()}function xQ(){return this.rgb().formatHex8()}function SQ(){return Gx(this).formatHsl()}function Rx(){return this.rgb().formatRgb()}function Ps(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=gQ.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?zx(t):n===3?new on(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?gm(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?gm(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=vQ.exec(e))?new on(t[1],t[2],t[3],1):(t=yQ.exec(e))?new on(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=bQ.exec(e))?gm(t[1],t[2],t[3],t[4]):(t=wQ.exec(e))?gm(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=MQ.exec(e))?Wx(t[1],t[2]/100,t[3]/100,1):(t=kQ.exec(e))?Wx(t[1],t[2]/100,t[3]/100,t[4]):Hx.hasOwnProperty(e)?zx(Hx[e]):e==="transparent"?new on(NaN,NaN,NaN,0):null}function zx(e){return new on(e>>16&255,e>>8&255,e&255,1)}function gm(e,t,n,r){return r<=0&&(e=t=n=NaN),new on(e,t,n,r)}function jg(e){return e instanceof xo||(e=Ps(e)),e?(e=e.rgb(),new on(e.r,e.g,e.b,e.opacity)):new on}function So(e,t,n,r){return arguments.length===1?jg(e):new on(e,t,n,r??1)}function on(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}tu(on,So,ad(xo,{brighter(e){return e=e==null?nu:Math.pow(nu,e),new on(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Bs:Math.pow(Bs,e),new on(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new on(Vs(this.r),Vs(this.g),Vs(this.b),vm(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:qx,formatHex:qx,formatHex8:LQ,formatRgb:Ux,toString:Ux}));function qx(){return`#${Is(this.r)}${Is(this.g)}${Is(this.b)}`}function LQ(){return`#${Is(this.r)}${Is(this.g)}${Is(this.b)}${Is((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ux(){const e=vm(this.opacity);return`${e===1?"rgb(":"rgba("}${Vs(this.r)}, ${Vs(this.g)}, ${Vs(this.b)}${e===1?")":`, ${e})`}`}function vm(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vs(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Is(e){return e=Vs(e),(e<16?"0":"")+e.toString(16)}function Wx(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Gr(e,t,n,r)}function Gx(e){if(e instanceof Gr)return new Gr(e.h,e.s,e.l,e.opacity);if(e instanceof xo||(e=Ps(e)),!e)return new Gr;if(e instanceof Gr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,l=o-a,u=(o+a)/2;return l?(t===o?s=(n-r)/l+(n<r)*6:n===o?s=(r-t)/l+2:s=(t-n)/l+4,l/=u<.5?o+a:2-o-a,s*=60):l=u>0&&u<1?0:s,new Gr(s,l,u,e.opacity)}function Bg(e,t,n,r){return arguments.length===1?Gx(e):new Gr(e,t,n,r??1)}function Gr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}tu(Gr,Bg,ad(xo,{brighter(e){return e=e==null?nu:Math.pow(nu,e),new Gr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Bs:Math.pow(Bs,e),new Gr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new on(Pg(e>=240?e-240:e+120,a,r),Pg(e,a,r),Pg(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Gr(Kx(this.h),ym(this.s),ym(this.l),vm(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=vm(this.opacity);return`${e===1?"hsl(":"hsla("}${Kx(this.h)}, ${ym(this.s)*100}%, ${ym(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Kx(e){return e=(e||0)%360,e<0?e+360:e}function ym(e){return Math.max(0,Math.min(1,e||0))}function Pg(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Jx=Math.PI/180,Zx=180/Math.PI,bm=18,Xx=.96422,Qx=1,$x=.82521,eS=4/29,au=6/29,tS=3*au*au,YQ=au*au*au;function nS(e){if(e instanceof Va)return new Va(e.l,e.a,e.b,e.opacity);if(e instanceof Si)return rS(e);e instanceof on||(e=jg(e));var t=Rg(e.r),n=Rg(e.g),r=Rg(e.b),a=Ig((.2225045*t+.7168786*n+.0606169*r)/Qx),o,s;return t===n&&n===r?o=s=a:(o=Ig((.4360747*t+.3850649*n+.1430804*r)/Xx),s=Ig((.0139322*t+.0971045*n+.7141733*r)/$x)),new Va(116*a-16,500*(o-a),200*(a-s),e.opacity)}function Vg(e,t,n,r){return arguments.length===1?nS(e):new Va(e,t,n,r??1)}function Va(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}tu(Va,Vg,ad(xo,{brighter(e){return new Va(this.l+bm*(e??1),this.a,this.b,this.opacity)},darker(e){return new Va(this.l-bm*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=Xx*Hg(t),e=Qx*Hg(e),n=$x*Hg(n),new on(Fg(3.1338561*t-1.6168667*e-.4906146*n),Fg(-.9787684*t+1.9161415*e+.033454*n),Fg(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function Ig(e){return e>YQ?Math.pow(e,1/3):e/tS+eS}function Hg(e){return e>au?e*e*e:tS*(e-eS)}function Fg(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Rg(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function TQ(e){if(e instanceof Si)return new Si(e.h,e.c,e.l,e.opacity);if(e instanceof Va||(e=nS(e)),e.a===0&&e.b===0)return new Si(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Zx;return new Si(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function zg(e,t,n,r){return arguments.length===1?TQ(e):new Si(e,t,n,r??1)}function Si(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function rS(e){if(isNaN(e.h))return new Va(e.l,0,0,e.opacity);var t=e.h*Jx;return new Va(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}tu(Si,zg,ad(xo,{brighter(e){return new Si(this.h,this.c,this.l+bm*(e??1),this.opacity)},darker(e){return new Si(this.h,this.c,this.l-bm*(e??1),this.opacity)},rgb(){return rS(this).rgb()}}));var aS=-.14861,qg=1.78277,Ug=-.29227,wm=-.90649,od=1.97294,iS=od*wm,oS=od*qg,sS=qg*Ug-wm*aS;function EQ(e){if(e instanceof Hs)return new Hs(e.h,e.s,e.l,e.opacity);e instanceof on||(e=jg(e));var t=e.r/255,n=e.g/255,r=e.b/255,a=(sS*r+iS*t-oS*n)/(sS+iS-oS),o=r-a,s=(od*(n-a)-Ug*o)/wm,l=Math.sqrt(s*s+o*o)/(od*a*(1-a)),u=l?Math.atan2(s,o)*Zx-120:NaN;return new Hs(u<0?u+360:u,l,a,e.opacity)}function Ia(e,t,n,r){return arguments.length===1?EQ(e):new Hs(e,t,n,r??1)}function Hs(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}tu(Hs,Ia,ad(xo,{brighter(e){return e=e==null?nu:Math.pow(nu,e),new Hs(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Bs:Math.pow(Bs,e),new Hs(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Jx,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new on(255*(t+n*(aS*r+qg*a)),255*(t+n*(Ug*r+wm*a)),255*(t+n*(od*r)),this.opacity)}}));function DQ(e,t,n,r,a){var o=e*e,s=o*e;return((1-3*e+3*o-s)*t+(4-6*o+3*s)*n+(1+3*e+3*o-3*s)*r+s*a)/6}function NQ(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),a=e[r],o=e[r+1],s=r>0?e[r-1]:2*a-o,l=r<t-1?e[r+2]:2*o-a;return DQ((n-r/t)*t,s,a,o,l)}}const Mm=e=>()=>e;function lS(e,t){return function(n){return e+n*t}}function CQ(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Wg(e,t){var n=t-e;return n?lS(e,n>180||n<-180?n-360*Math.round(n/360):n):Mm(isNaN(e)?t:e)}function AQ(e){return(e=+e)==1?vn:function(t,n){return n-t?CQ(t,n,e):Mm(isNaN(t)?n:t)}}function vn(e,t){var n=t-e;return n?lS(e,n):Mm(isNaN(e)?t:e)}const Fs=function e(t){var n=AQ(t);function r(a,o){var s=n((a=So(a)).r,(o=So(o)).r),l=n(a.g,o.g),u=n(a.b,o.b),c=vn(a.opacity,o.opacity);return function(d){return a.r=s(d),a.g=l(d),a.b=u(d),a.opacity=c(d),a+""}}return r.gamma=e,r}(1);function OQ(e){return function(t){var n=t.length,r=new Array(n),a=new Array(n),o=new Array(n),s,l;for(s=0;s<n;++s)l=So(t[s]),r[s]=l.r||0,a[s]=l.g||0,o[s]=l.b||0;return r=e(r),a=e(a),o=e(o),l.opacity=1,function(u){return l.r=r(u),l.g=a(u),l.b=o(u),l+""}}}var jQ=OQ(NQ);function BQ(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(o){for(a=0;a<n;++a)r[a]=e[a]*(1-o)+t[a]*o;return r}}function PQ(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function VQ(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)a[s]=Ha(e[s],t[s]);for(;s<n;++s)o[s]=t[s];return function(l){for(s=0;s<r;++s)o[s]=a[s](l);return o}}function IQ(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function yn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function HQ(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=Ha(e[a],t[a]):r[a]=t[a];return function(o){for(a in n)r[a]=n[a](o);return r}}var Gg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Kg=new RegExp(Gg.source,"g");function FQ(e){return function(){return e}}function RQ(e){return function(t){return e(t)+""}}function uS(e,t){var n=Gg.lastIndex=Kg.lastIndex=0,r,a,o,s=-1,l=[],u=[];for(e=e+"",t=t+"";(r=Gg.exec(e))&&(a=Kg.exec(t));)(o=a.index)>n&&(o=t.slice(n,o),l[s]?l[s]+=o:l[++s]=o),(r=r[0])===(a=a[0])?l[s]?l[s]+=a:l[++s]=a:(l[++s]=null,u.push({i:s,x:yn(r,a)})),n=Kg.lastIndex;return n<t.length&&(o=t.slice(n),l[s]?l[s]+=o:l[++s]=o),l.length<2?u[0]?RQ(u[0].x):FQ(t):(t=u.length,function(c){for(var d=0,h;d<t;++d)l[(h=u[d]).i]=h.x(c);return l.join("")})}function Ha(e,t){var n=typeof t,r;return t==null||n==="boolean"?Mm(t):(n==="number"?yn:n==="string"?(r=Ps(t))?(t=r,Fs):uS:t instanceof Ps?Fs:t instanceof Date?IQ:PQ(t)?BQ:Array.isArray(t)?VQ:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?HQ:yn)(e,t)}function km(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var cS=180/Math.PI,Jg={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function dS(e,t,n,r,a,o){var s,l,u;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(l=Math.sqrt(n*n+r*r))&&(n/=l,r/=l,u/=l),e*r<t*n&&(e=-e,t=-t,u=-u,s=-s),{translateX:a,translateY:o,rotate:Math.atan2(t,e)*cS,skewX:Math.atan(u)*cS,scaleX:s,scaleY:l}}var xm;function zQ(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Jg:dS(t.a,t.b,t.c,t.d,t.e,t.f)}function qQ(e){return e==null||(xm||(xm=document.createElementNS("http://www.w3.org/2000/svg","g")),xm.setAttribute("transform",e),!(e=xm.transform.baseVal.consolidate()))?Jg:(e=e.matrix,dS(e.a,e.b,e.c,e.d,e.e,e.f))}function fS(e,t,n,r){function a(c){return c.length?c.pop()+" ":""}function o(c,d,h,f,m,b){if(c!==h||d!==f){var M=m.push("translate(",null,t,null,n);b.push({i:M-4,x:yn(c,h)},{i:M-2,x:yn(d,f)})}else(h||f)&&m.push("translate("+h+t+f+n)}function s(c,d,h,f){c!==d?(c-d>180?d+=360:d-c>180&&(c+=360),f.push({i:h.push(a(h)+"rotate(",null,r)-2,x:yn(c,d)})):d&&h.push(a(h)+"rotate("+d+r)}function l(c,d,h,f){c!==d?f.push({i:h.push(a(h)+"skewX(",null,r)-2,x:yn(c,d)}):d&&h.push(a(h)+"skewX("+d+r)}function u(c,d,h,f,m,b){if(c!==h||d!==f){var M=m.push(a(m)+"scale(",null,",",null,")");b.push({i:M-4,x:yn(c,h)},{i:M-2,x:yn(d,f)})}else(h!==1||f!==1)&&m.push(a(m)+"scale("+h+","+f+")")}return function(c,d){var h=[],f=[];return c=e(c),d=e(d),o(c.translateX,c.translateY,d.translateX,d.translateY,h,f),s(c.rotate,d.rotate,h,f),l(c.skewX,d.skewX,h,f),u(c.scaleX,c.scaleY,d.scaleX,d.scaleY,h,f),c=d=null,function(m){for(var b=-1,M=f.length,x;++b<M;)h[(x=f[b]).i]=x.x(m);return h.join("")}}}var UQ=fS(zQ,"px, ","px)","deg)"),WQ=fS(qQ,", ",")",")");function GQ(e){return function(t,n){var r=e((t=Bg(t)).h,(n=Bg(n)).h),a=vn(t.s,n.s),o=vn(t.l,n.l),s=vn(t.opacity,n.opacity);return function(l){return t.h=r(l),t.s=a(l),t.l=o(l),t.opacity=s(l),t+""}}}const KQ=GQ(Wg);function JQ(e,t){var n=vn((e=Vg(e)).l,(t=Vg(t)).l),r=vn(e.a,t.a),a=vn(e.b,t.b),o=vn(e.opacity,t.opacity);return function(s){return e.l=n(s),e.a=r(s),e.b=a(s),e.opacity=o(s),e+""}}function ZQ(e){return function(t,n){var r=e((t=zg(t)).h,(n=zg(n)).h),a=vn(t.c,n.c),o=vn(t.l,n.l),s=vn(t.opacity,n.opacity);return function(l){return t.h=r(l),t.c=a(l),t.l=o(l),t.opacity=s(l),t+""}}}const XQ=ZQ(Wg);function hS(e){return function t(n){n=+n;function r(a,o){var s=e((a=Ia(a)).h,(o=Ia(o)).h),l=vn(a.s,o.s),u=vn(a.l,o.l),c=vn(a.opacity,o.opacity);return function(d){return a.h=s(d),a.s=l(d),a.l=u(Math.pow(d,n)),a.opacity=c(d),a+""}}return r.gamma=t,r}(1)}hS(Wg);var Zg=hS(vn);function Sm(e,t){t===void 0&&(t=e,e=Ha);for(var n=0,r=t.length-1,a=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(a,a=t[++n]);return function(s){var l=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return o[l](s-l)}}function Kr(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}var iu=0,sd=0,ld=0,mS=1e3,Lm,ud,Ym=0,Rs=0,Tm=0,cd=typeof performance=="object"&&performance.now?performance:Date,pS=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Xg(){return Rs||(pS(QQ),Rs=cd.now()+Tm)}function QQ(){Rs=0}function Em(){this._call=this._time=this._next=null}Em.prototype=_S.prototype={constructor:Em,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Xg():+n)+(t==null?0:+t),!this._next&&ud!==this&&(ud?ud._next=this:Lm=this,ud=this),this._call=e,this._time=n,Qg()},stop:function(){this._call&&(this._call=null,this._time=1/0,Qg())}};function _S(e,t,n){var r=new Em;return r.restart(e,t,n),r}function $Q(){Xg(),++iu;for(var e=Lm,t;e;)(t=Rs-e._time)>=0&&e._call.call(void 0,t),e=e._next;--iu}function gS(){Rs=(Ym=cd.now())+Tm,iu=sd=0;try{$Q()}finally{iu=0,t$(),Rs=0}}function e$(){var e=cd.now(),t=e-Ym;t>mS&&(Tm-=t,Ym=e)}function t$(){for(var e,t=Lm,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Lm=n);ud=e,Qg(r)}function Qg(e){if(!iu){sd&&(sd=clearTimeout(sd));var t=e-Rs;t>24?(e<1/0&&(sd=setTimeout(gS,e-cd.now()-Tm)),ld&&(ld=clearInterval(ld))):(ld||(Ym=cd.now(),ld=setInterval(e$,mS)),iu=1,pS(gS))}}function vS(e,t,n){var r=new Em;return t=t==null?0:+t,r.restart(a=>{r.stop(),e(a+t)},t,n),r}var n$=Yg("start","end","cancel","interrupt"),r$=[],yS=0,bS=1,$g=2,Dm=3,wS=4,ev=5,Nm=6;function Cm(e,t,n,r,a,o){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;a$(e,n,{name:t,index:r,group:a,on:n$,tween:r$,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:yS})}function tv(e,t){var n=Jr(e,t);if(n.state>yS)throw new Error("too late; already scheduled");return n}function Fa(e,t){var n=Jr(e,t);if(n.state>Dm)throw new Error("too late; already running");return n}function Jr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function a$(e,t,n){var r=e.__transition,a;r[t]=n,n.timer=_S(o,0,n.time);function o(c){n.state=bS,n.timer.restart(s,n.delay,n.time),n.delay<=c&&s(c-n.delay)}function s(c){var d,h,f,m;if(n.state!==bS)return u();for(d in r)if(m=r[d],m.name===n.name){if(m.state===Dm)return vS(s);m.state===wS?(m.state=Nm,m.timer.stop(),m.on.call("interrupt",e,e.__data__,m.index,m.group),delete r[d]):+d<t&&(m.state=Nm,m.timer.stop(),m.on.call("cancel",e,e.__data__,m.index,m.group),delete r[d])}if(vS(function(){n.state===Dm&&(n.state=wS,n.timer.restart(l,n.delay,n.time),l(c))}),n.state=$g,n.on.call("start",e,e.__data__,n.index,n.group),n.state===$g){for(n.state=Dm,a=new Array(f=n.tween.length),d=0,h=-1;d<f;++d)(m=n.tween[d].value.call(e,e.__data__,n.index,n.group))&&(a[++h]=m);a.length=h+1}}function l(c){for(var d=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(u),n.state=ev,1),h=-1,f=a.length;++h<f;)a[h].call(e,d);n.state===ev&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=Nm,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function nv(e,t){var n=e.__transition,r,a,o=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((r=n[s]).name!==t){o=!1;continue}a=r.state>$g&&r.state<ev,r.state=Nm,r.timer.stop(),r.on.call(a?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[s]}o&&delete e.__transition}}function i$(e){return this.each(function(){nv(this,e)})}function o$(e,t){var n,r;return function(){var a=Fa(this,e),o=a.tween;if(o!==n){r=n=o;for(var s=0,l=r.length;s<l;++s)if(r[s].name===t){r=r.slice(),r.splice(s,1);break}}a.tween=r}}function s$(e,t,n){var r,a;if(typeof n!="function")throw new Error;return function(){var o=Fa(this,e),s=o.tween;if(s!==r){a=(r=s).slice();for(var l={name:t,value:n},u=0,c=a.length;u<c;++u)if(a[u].name===t){a[u]=l;break}u===c&&a.push(l)}o.tween=a}}function l$(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Jr(this.node(),n).tween,a=0,o=r.length,s;a<o;++a)if((s=r[a]).name===e)return s.value;return null}return this.each((t==null?o$:s$)(n,e,t))}function rv(e,t,n){var r=e._id;return e.each(function(){var a=Fa(this,r);(a.value||(a.value={}))[t]=n.apply(this,arguments)}),function(a){return Jr(a,r).value[t]}}function MS(e,t){var n;return(typeof t=="number"?yn:t instanceof Ps?Fs:(n=Ps(t))?(t=n,Fs):uS)(e,t)}function u$(e){return function(){this.removeAttribute(e)}}function c$(e){return function(){this.removeAttributeNS(e.space,e.local)}}function d$(e,t,n){var r,a=n+"",o;return function(){var s=this.getAttribute(e);return s===a?null:s===r?o:o=t(r=s,n)}}function f$(e,t,n){var r,a=n+"",o;return function(){var s=this.getAttributeNS(e.space,e.local);return s===a?null:s===r?o:o=t(r=s,n)}}function h$(e,t,n){var r,a,o;return function(){var s,l=n(this),u;return l==null?void this.removeAttribute(e):(s=this.getAttribute(e),u=l+"",s===u?null:s===r&&u===a?o:(a=u,o=t(r=s,l)))}}function m$(e,t,n){var r,a,o;return function(){var s,l=n(this),u;return l==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),u=l+"",s===u?null:s===r&&u===a?o:(a=u,o=t(r=s,l)))}}function p$(e,t){var n=mm(e),r=n==="transform"?WQ:MS;return this.attrTween(e,typeof t=="function"?(n.local?m$:h$)(n,r,rv(this,"attr."+e,t)):t==null?(n.local?c$:u$)(n):(n.local?f$:d$)(n,r,t))}function _$(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function g$(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function v$(e,t){var n,r;function a(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&g$(e,o)),n}return a._value=t,a}function y$(e,t){var n,r;function a(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&_$(e,o)),n}return a._value=t,a}function b$(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=mm(e);return this.tween(n,(r.local?v$:y$)(r,t))}function w$(e,t){return function(){tv(this,e).delay=+t.apply(this,arguments)}}function M$(e,t){return t=+t,function(){tv(this,e).delay=t}}function k$(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?w$:M$)(t,e)):Jr(this.node(),t).delay}function x$(e,t){return function(){Fa(this,e).duration=+t.apply(this,arguments)}}function S$(e,t){return t=+t,function(){Fa(this,e).duration=t}}function L$(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?x$:S$)(t,e)):Jr(this.node(),t).duration}function Y$(e,t){if(typeof t!="function")throw new Error;return function(){Fa(this,e).ease=t}}function T$(e){var t=this._id;return arguments.length?this.each(Y$(t,e)):Jr(this.node(),t).ease}function E$(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Fa(this,e).ease=n}}function D$(e){if(typeof e!="function")throw new Error;return this.each(E$(this._id,e))}function N$(e){typeof e!="function"&&(e=Nx(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var o=t[a],s=o.length,l=r[a]=[],u,c=0;c<s;++c)(u=o[c])&&e.call(u,u.__data__,c,o)&&l.push(u);return new Li(r,this._parents,this._name,this._id)}function C$(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,a=n.length,o=Math.min(r,a),s=new Array(r),l=0;l<o;++l)for(var u=t[l],c=n[l],d=u.length,h=s[l]=new Array(d),f,m=0;m<d;++m)(f=u[m]||c[m])&&(h[m]=f);for(;l<r;++l)s[l]=t[l];return new Li(s,this._parents,this._name,this._id)}function A$(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function O$(e,t,n){var r,a,o=A$(t)?tv:Fa;return function(){var s=o(this,e),l=s.on;l!==r&&(a=(r=l).copy()).on(t,n),s.on=a}}function j$(e,t){var n=this._id;return arguments.length<2?Jr(this.node(),n).on.on(e):this.each(O$(n,e,t))}function B$(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function P$(){return this.on("end.remove",B$(this._id))}function V$(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Eg(e));for(var r=this._groups,a=r.length,o=new Array(a),s=0;s<a;++s)for(var l=r[s],u=l.length,c=o[s]=new Array(u),d,h,f=0;f<u;++f)(d=l[f])&&(h=e.call(d,d.__data__,f,l))&&("__data__"in d&&(h.__data__=d.__data__),c[f]=h,Cm(c[f],t,n,f,c,Jr(d,n)));return new Li(o,this._parents,t,n)}function I$(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Dx(e));for(var r=this._groups,a=r.length,o=[],s=[],l=0;l<a;++l)for(var u=r[l],c=u.length,d,h=0;h<c;++h)if(d=u[h]){for(var f=e.call(d,d.__data__,h,u),m,b=Jr(d,n),M=0,x=f.length;M<x;++M)(m=f[M])&&Cm(m,t,n,M,f,b);o.push(f),s.push(d)}return new Li(o,s,t,n)}var H$=rd.prototype.constructor;function F$(){return new H$(this._groups,this._parents)}function R$(e,t){var n,r,a;return function(){var o=eu(this,e),s=(this.style.removeProperty(e),eu(this,e));return o===s?null:o===n&&s===r?a:a=t(n=o,r=s)}}function kS(e){return function(){this.style.removeProperty(e)}}function z$(e,t,n){var r,a=n+"",o;return function(){var s=eu(this,e);return s===a?null:s===r?o:o=t(r=s,n)}}function q$(e,t,n){var r,a,o;return function(){var s=eu(this,e),l=n(this),u=l+"";return l==null&&(u=l=(this.style.removeProperty(e),eu(this,e))),s===u?null:s===r&&u===a?o:(a=u,o=t(r=s,l))}}function U$(e,t){var n,r,a,o="style."+t,s="end."+o,l;return function(){var u=Fa(this,e),c=u.on,d=u.value[o]==null?l||(l=kS(t)):void 0;(c!==n||a!==d)&&(r=(n=c).copy()).on(s,a=d),u.on=r}}function W$(e,t,n){var r=(e+="")=="transform"?UQ:MS;return t==null?this.styleTween(e,R$(e,r)).on("end.style."+e,kS(e)):typeof t=="function"?this.styleTween(e,q$(e,r,rv(this,"style."+e,t))).each(U$(this._id,e)):this.styleTween(e,z$(e,r,t),n).on("end.style."+e,null)}function G$(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function K$(e,t,n){var r,a;function o(){var s=t.apply(this,arguments);return s!==a&&(r=(a=s)&&G$(e,s,n)),r}return o._value=t,o}function J$(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,K$(e,t,n??""))}function Z$(e){return function(){this.textContent=e}}function X$(e){return function(){var t=e(this);this.textContent=t??""}}function Q$(e){return this.tween("text",typeof e=="function"?X$(rv(this,"text",e)):Z$(e==null?"":e+""))}function $$(e){return function(t){this.textContent=e.call(this,t)}}function eee(e){var t,n;function r(){var a=e.apply(this,arguments);return a!==n&&(t=(n=a)&&$$(a)),t}return r._value=e,r}function tee(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,eee(e))}function nee(){for(var e=this._name,t=this._id,n=xS(),r=this._groups,a=r.length,o=0;o<a;++o)for(var s=r[o],l=s.length,u,c=0;c<l;++c)if(u=s[c]){var d=Jr(u,t);Cm(u,e,n,c,s,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new Li(r,this._parents,e,n)}function ree(){var e,t,n=this,r=n._id,a=n.size();return new Promise(function(o,s){var l={value:s},u={value:function(){--a===0&&o()}};n.each(function(){var c=Fa(this,r),d=c.on;d!==e&&(t=(e=d).copy(),t._.cancel.push(l),t._.interrupt.push(l),t._.end.push(u)),c.on=t}),a===0&&o()})}var aee=0;function Li(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function xS(){return++aee}var Yi=rd.prototype;Li.prototype={constructor:Li,select:V$,selectAll:I$,selectChild:Yi.selectChild,selectChildren:Yi.selectChildren,filter:N$,merge:C$,selection:F$,transition:nee,call:Yi.call,nodes:Yi.nodes,node:Yi.node,size:Yi.size,empty:Yi.empty,each:Yi.each,on:j$,attr:p$,attrTween:b$,style:W$,styleTween:J$,text:Q$,textTween:tee,remove:P$,tween:l$,delay:k$,duration:L$,ease:T$,easeVarying:D$,end:ree,[Symbol.iterator]:Yi[Symbol.iterator]};const iee=e=>+e;function oee(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var see={time:null,delay:0,duration:250,ease:oee};function lee(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function uee(e){var t,n;e instanceof Li?(t=e._id,e=e._name):(t=xS(),(n=see).time=Xg(),e=e==null?null:e+"");for(var r=this._groups,a=r.length,o=0;o<a;++o)for(var s=r[o],l=s.length,u,c=0;c<l;++c)(u=s[c])&&Cm(u,e,t,c,s,n||lee(u,t));return new Li(r,this._parents,e,t)}rd.prototype.interrupt=i$,rd.prototype.transition=uee;const av=e=>()=>e;function cee(e,{sourceEvent:t,target:n,selection:r,mode:a,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:a,enumerable:!0,configurable:!0},_:{value:o}})}function dee(e){e.stopImmediatePropagation()}function iv(e){e.preventDefault(),e.stopImmediatePropagation()}var SS={name:"drag"},ov={name:"space"},ou={name:"handle"},su={name:"center"};const{abs:LS,max:bn,min:wn}=Math;function YS(e){return[+e[0],+e[1]]}function TS(e){return[YS(e[0]),YS(e[1])]}var Am={name:"x",handles:["w","e"].map(lv),input:function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},sv={},Ti={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},ES={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},DS={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},fee={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},hee={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function lv(e){return{type:e}}function mee(e){return!e.ctrlKey&&!e.button}function pee(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function _ee(){return navigator.maxTouchPoints||"ontouchstart"in this}function uv(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function gee(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function vee(){return yee(Am)}function yee(e){var t=pee,n=mee,r=_ee,a=!0,o=Yg("start","brush","end"),s=6,l;function u(x){var L=x.property("__brush",M).selectAll(".overlay").data([lv("overlay")]);L.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Ti.overlay).merge(L).each(function(){var y=uv(this).extent;Be(this).attr("x",y[0][0]).attr("y",y[0][1]).attr("width",y[1][0]-y[0][0]).attr("height",y[1][1]-y[0][1])}),x.selectAll(".selection").data([lv("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Ti.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var g=x.selectAll(".handle").data(e.handles,function(y){return y.type});g.exit().remove(),g.enter().append("rect").attr("class",function(y){return"handle handle--"+y.type}).attr("cursor",function(y){return Ti[y.type]}),x.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",f).filter(r).on("touchstart.brush",f).on("touchmove.brush",m).on("touchend.brush touchcancel.brush",b).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}u.move=function(x,L,g){x.tween?x.on("start.brush",function(y){d(this,arguments).beforestart().start(y)}).on("interrupt.brush end.brush",function(y){d(this,arguments).end(y)}).tween("brush",function(){var y=this,k=y.__brush,w=d(y,arguments),T=k.selection,S=e.input(typeof L=="function"?L.apply(this,arguments):L,k.extent),D=Ha(T,S);function O(V){k.selection=V===1&&S===null?null:D(V),c.call(y),w.brush()}return T!==null&&S!==null?O:O(1)}):x.each(function(){var y=this,k=arguments,w=y.__brush,T=e.input(typeof L=="function"?L.apply(y,k):L,w.extent),S=d(y,k).beforestart();nv(y),w.selection=T===null?null:T,c.call(y),S.start(g).brush(g).end(g)})},u.clear=function(x,L){u.move(x,null,L)};function c(){var x=Be(this),L=uv(this).selection;L?(x.selectAll(".selection").style("display",null).attr("x",L[0][0]).attr("y",L[0][1]).attr("width",L[1][0]-L[0][0]).attr("height",L[1][1]-L[0][1]),x.selectAll(".handle").style("display",null).attr("x",function(g){return g.type[g.type.length-1]==="e"?L[1][0]-s/2:L[0][0]-s/2}).attr("y",function(g){return g.type[0]==="s"?L[1][1]-s/2:L[0][1]-s/2}).attr("width",function(g){return g.type==="n"||g.type==="s"?L[1][0]-L[0][0]+s:s}).attr("height",function(g){return g.type==="e"||g.type==="w"?L[1][1]-L[0][1]+s:s})):x.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function d(x,L,g){var y=x.__brush.emitter;return y&&(!g||!y.clean)?y:new h(x,L,g)}function h(x,L,g){this.that=x,this.args=L,this.state=x.__brush,this.active=0,this.clean=g}h.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(x,L){return this.starting?(this.starting=!1,this.emit("start",x,L)):this.emit("brush",x),this},brush:function(x,L){return this.emit("brush",x,L),this},end:function(x,L){return--this.active===0&&(delete this.state.emitter,this.emit("end",x,L)),this},emit:function(x,L,g){var y=Be(this.that).datum();o.call(x,this.that,new cee(x,{sourceEvent:L,target:u,selection:e.output(this.state.selection),mode:g,dispatch:o}),y)}};function f(x){if(l&&!x.touches||!n.apply(this,arguments))return;var L=this,g=x.target.__data__.type,y=(a&&x.metaKey?g="overlay":g)==="selection"?SS:a&&x.altKey?su:ou,k=e===sv?null:fee[g],w=e===Am?null:hee[g],T=uv(L),S=T.extent,D=T.selection,O=S[0][0],V,E,R=S[0][1],j,F,B=S[1][0],z,G,q=S[1][1],J,K,$=0,ee=0,ie,ue=k&&w&&a&&x.shiftKey,ce,Me,he=Array.from(x.touches||[x],te=>{const ae=te.identifier;return te=Cg(te,L),te.point0=te.slice(),te.identifier=ae,te});nv(L);var pe=d(L,arguments,!0).beforestart();if(g==="overlay"){D&&(ie=!0);const te=[he[0],he[1]||he[0]];T.selection=D=[[V=e===sv?O:wn(te[0][0],te[1][0]),j=e===Am?R:wn(te[0][1],te[1][1])],[z=e===sv?B:bn(te[0][0],te[1][0]),J=e===Am?q:bn(te[0][1],te[1][1])]],he.length>1&&Le(x)}else V=D[0][0],j=D[0][1],z=D[1][0],J=D[1][1];E=V,F=j,G=z,K=J;var Q=Be(L).attr("pointer-events","none"),de=Q.selectAll(".overlay").attr("cursor",Ti[g]);if(x.touches)pe.moved=re,pe.ended=Ee;else{var ye=Be(x.view).on("mousemove.brush",re,!0).on("mouseup.brush",Ee,!0);a&&ye.on("keydown.brush",Pe,!0).on("keyup.brush",se,!0),pQ(x.view)}c.call(L),pe.start(x,y.name);function re(te){for(const ae of te.changedTouches||[te])for(const le of he)le.identifier===ae.identifier&&(le.cur=Cg(ae,L));if(ue&&!ce&&!Me&&he.length===1){const ae=he[0];LS(ae.cur[0]-ae[0])>LS(ae.cur[1]-ae[1])?Me=!0:ce=!0}for(const ae of he)ae.cur&&(ae[0]=ae.cur[0],ae[1]=ae.cur[1]);ie=!0,iv(te),Le(te)}function Le(te){const ae=he[0],le=ae.point0;var we;switch($=ae[0]-le[0],ee=ae[1]-le[1],y){case ov:case SS:{k&&($=bn(O-V,wn(B-z,$)),E=V+$,G=z+$),w&&(ee=bn(R-j,wn(q-J,ee)),F=j+ee,K=J+ee);break}case ou:{he[1]?(k&&(E=bn(O,wn(B,he[0][0])),G=bn(O,wn(B,he[1][0])),k=1),w&&(F=bn(R,wn(q,he[0][1])),K=bn(R,wn(q,he[1][1])),w=1)):(k<0?($=bn(O-V,wn(B-V,$)),E=V+$,G=z):k>0&&($=bn(O-z,wn(B-z,$)),E=V,G=z+$),w<0?(ee=bn(R-j,wn(q-j,ee)),F=j+ee,K=J):w>0&&(ee=bn(R-J,wn(q-J,ee)),F=j,K=J+ee));break}case su:{k&&(E=bn(O,wn(B,V-$*k)),G=bn(O,wn(B,z+$*k))),w&&(F=bn(R,wn(q,j-ee*w)),K=bn(R,wn(q,J+ee*w)));break}}G<E&&(k*=-1,we=V,V=z,z=we,we=E,E=G,G=we,g in ES&&de.attr("cursor",Ti[g=ES[g]])),K<F&&(w*=-1,we=j,j=J,J=we,we=F,F=K,K=we,g in DS&&de.attr("cursor",Ti[g=DS[g]])),T.selection&&(D=T.selection),ce&&(E=D[0][0],G=D[1][0]),Me&&(F=D[0][1],K=D[1][1]),(D[0][0]!==E||D[0][1]!==F||D[1][0]!==G||D[1][1]!==K)&&(T.selection=[[E,F],[G,K]],c.call(L),pe.brush(te,y.name))}function Ee(te){if(dee(te),te.touches){if(te.touches.length)return;l&&clearTimeout(l),l=setTimeout(function(){l=null},500)}else _Q(te.view,ie),ye.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Q.attr("pointer-events","all"),de.attr("cursor",Ti.overlay),T.selection&&(D=T.selection),gee(D)&&(T.selection=null,c.call(L)),pe.end(te,y.name)}function Pe(te){switch(te.keyCode){case 16:{ue=k&&w;break}case 18:{y===ou&&(k&&(z=G-$*k,V=E+$*k),w&&(J=K-ee*w,j=F+ee*w),y=su,Le(te));break}case 32:{(y===ou||y===su)&&(k<0?z=G-$:k>0&&(V=E-$),w<0?J=K-ee:w>0&&(j=F-ee),y=ov,de.attr("cursor",Ti.selection),Le(te));break}default:return}iv(te)}function se(te){switch(te.keyCode){case 16:{ue&&(ce=Me=ue=!1,Le(te));break}case 18:{y===su&&(k<0?z=G:k>0&&(V=E),w<0?J=K:w>0&&(j=F),y=ou,Le(te));break}case 32:{y===ov&&(te.altKey?(k&&(z=G-$*k,V=E+$*k),w&&(J=K-ee*w,j=F+ee*w),y=su):(k<0?z=G:k>0&&(V=E),w<0?J=K:w>0&&(j=F),y=ou),de.attr("cursor",Ti[g]),Le(te));break}default:return}iv(te)}}function m(x){d(this,arguments).moved(x)}function b(x){d(this,arguments).ended(x)}function M(){var x=this.__brush||{selection:null};return x.extent=TS(t.apply(this,arguments)),x.dim=e,x}return u.extent=function(x){return arguments.length?(t=typeof x=="function"?x:av(TS(x)),u):t},u.filter=function(x){return arguments.length?(n=typeof x=="function"?x:av(!!x),u):n},u.touchable=function(x){return arguments.length?(r=typeof x=="function"?x:av(!!x),u):r},u.handleSize=function(x){return arguments.length?(s=+x,u):s},u.keyModifiers=function(x){return arguments.length?(a=!!x,u):a},u.on=function(){var x=o.on.apply(o,arguments);return x===o?u:x},u}const cv=Math.PI,dv=2*cv,zs=1e-6,bee=dv-zs;function NS(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function wee(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return NS;const n=10**t;return function(r){this._+=r[0];for(let a=1,o=r.length;a<o;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class CS{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?NS:wee(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,o,s){this._append`C${+t},${+n},${+r},${+a},${this._x1=+o},${this._y1=+s}`}arcTo(t,n,r,a,o){if(t=+t,n=+n,r=+r,a=+a,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,l=this._y1,u=r-t,c=a-n,d=s-t,h=l-n,f=d*d+h*h;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>zs)if(!(Math.abs(h*u-c*d)>zs)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let m=r-s,b=a-l,M=u*u+c*c,x=m*m+b*b,L=Math.sqrt(M),g=Math.sqrt(f),y=o*Math.tan((cv-Math.acos((M+f-x)/(2*L*g)))/2),k=y/g,w=y/L;Math.abs(k-1)>zs&&this._append`L${t+k*d},${n+k*h}`,this._append`A${o},${o},0,0,${+(h*m>d*b)},${this._x1=t+w*u},${this._y1=n+w*c}`}}arc(t,n,r,a,o,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(a),u=r*Math.sin(a),c=t+l,d=n+u,h=1^s,f=s?a-o:o-a;this._x1===null?this._append`M${c},${d}`:(Math.abs(this._x1-c)>zs||Math.abs(this._y1-d)>zs)&&this._append`L${c},${d}`,r&&(f<0&&(f=f%dv+dv),f>bee?this._append`A${r},${r},0,1,${h},${t-l},${n-u}A${r},${r},0,1,${h},${this._x1=c},${this._y1=d}`:f>zs&&this._append`A${r},${r},0,${+(f>=cv)},${h},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function qs(e=3){return new CS(+e)}function Mee(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Om(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function lu(e){return e=Om(Math.abs(e)),e?e[1]:NaN}function kee(e,t){return function(n,r){for(var a=n.length,o=[],s=0,l=e[0],u=0;a>0&&l>0&&(u+l+1>r&&(l=Math.max(1,r-u)),o.push(n.substring(a-=l,a+l)),!((u+=l+1)>r));)l=e[s=(s+1)%e.length];return o.reverse().join(t)}}function xee(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var See=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function dd(e){if(!(t=See.exec(e)))throw new Error("invalid format: "+e);var t;return new fv({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}dd.prototype=fv.prototype;function fv(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}fv.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Lee(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var AS;function Yee(e,t){var n=Om(e,t);if(!n)return e+"";var r=n[0],a=n[1],o=a-(AS=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Om(e,Math.max(0,t+o-1))[0]}function OS(e,t){var n=Om(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const jS={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Mee,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>OS(e*100,t),r:OS,s:Yee,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function BS(e){return e}var PS=Array.prototype.map,VS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Tee(e){var t=e.grouping===void 0||e.thousands===void 0?BS:kee(PS.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?BS:xee(PS.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function c(h){h=dd(h);var f=h.fill,m=h.align,b=h.sign,M=h.symbol,x=h.zero,L=h.width,g=h.comma,y=h.precision,k=h.trim,w=h.type;w==="n"?(g=!0,w="g"):jS[w]||(y===void 0&&(y=12),k=!0,w="g"),(x||f==="0"&&m==="=")&&(x=!0,f="0",m="=");var T=M==="$"?n:M==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",S=M==="$"?r:/[%p]/.test(w)?s:"",D=jS[w],O=/[defgprs%]/.test(w);y=y===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function V(E){var R=T,j=S,F,B,z;if(w==="c")j=D(E)+j,E="";else{E=+E;var G=E<0||1/E<0;if(E=isNaN(E)?u:D(Math.abs(E),y),k&&(E=Lee(E)),G&&+E==0&&b!=="+"&&(G=!1),R=(G?b==="("?b:l:b==="-"||b==="("?"":b)+R,j=(w==="s"?VS[8+AS/3]:"")+j+(G&&b==="("?")":""),O){for(F=-1,B=E.length;++F<B;)if(z=E.charCodeAt(F),48>z||z>57){j=(z===46?a+E.slice(F+1):E.slice(F))+j,E=E.slice(0,F);break}}}g&&!x&&(E=t(E,1/0));var q=R.length+E.length+j.length,J=q<L?new Array(L-q+1).join(f):"";switch(g&&x&&(E=t(J+E,J.length?L-j.length:1/0),J=""),m){case"<":E=R+E+j+J;break;case"=":E=R+J+E+j;break;case"^":E=J.slice(0,q=J.length>>1)+R+E+j+J.slice(q);break;default:E=J+R+E+j;break}return o(E)}return V.toString=function(){return h+""},V}function d(h,f){var m=c((h=dd(h),h.type="f",h)),b=Math.max(-8,Math.min(8,Math.floor(lu(f)/3)))*3,M=Math.pow(10,-b),x=VS[8+b/3];return function(L){return m(M*L)+x}}return{format:c,formatPrefix:d}}var jm,uu,IS;Eee({thousands:",",grouping:[3],currency:["$",""]});function Eee(e){return jm=Tee(e),uu=jm.format,IS=jm.formatPrefix,jm}function Dee(e){return Math.max(0,-lu(Math.abs(e)))}function Nee(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(lu(t)/3)))*3-lu(Math.abs(e)))}function Cee(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,lu(t)-lu(e))+1}var tt=1e-6,HS=1e-12,ct=Math.PI,Ht=ct/2,FS=ct/4,$n=ct*2,Nn=180/ct,Ft=ct/180,St=Math.abs,cu=Math.atan,Ei=Math.atan2,st=Math.cos,RS=Math.exp,Bm=Math.log,hv=Math.pow,Xe=Math.sin,wr=Math.sign||function(e){return e>0?1:e<0?-1:0},In=Math.sqrt,mv=Math.tan;function zS(e){return e>1?0:e<-1?ct:Math.acos(e)}function Mr(e){return e>1?Ht:e<-1?-Ht:Math.asin(e)}function kr(){}function Pm(e,t){e&&US.hasOwnProperty(e.type)&&US[e.type](e,t)}var qS={Feature:function(e,t){Pm(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,a=n.length;++r<a;)Pm(n[r].geometry,t)}},US={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,a=n.length;++r<a;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){pv(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,a=n.length;++r<a;)pv(n[r],t,0)},Polygon:function(e,t){WS(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,a=n.length;++r<a;)WS(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,a=n.length;++r<a;)Pm(n[r],t)}};function pv(e,t,n){var r=-1,a=e.length-n,o;for(t.lineStart();++r<a;)o=e[r],t.point(o[0],o[1],o[2]);t.lineEnd()}function WS(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)pv(e[n],t,1);t.polygonEnd()}function Us(e,t){e&&qS.hasOwnProperty(e.type)?qS[e.type](e,t):Pm(e,t)}function _v(e){return[Ei(e[1],e[0]),Mr(e[2])]}function du(e){var t=e[0],n=e[1],r=st(n);return[r*st(t),r*Xe(t),Xe(n)]}function Vm(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Im(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function gv(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Hm(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function vv(e){var t=In(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function yv(e,t){function n(r,a){return r=e(r,a),t(r[0],r[1])}return e.invert&&t.invert&&(n.invert=function(r,a){return r=t.invert(r,a),r&&e.invert(r[0],r[1])}),n}function bv(e,t){return St(e)>ct&&(e-=Math.round(e/$n)*$n),[e,t]}bv.invert=bv;function GS(e,t,n){return(e%=$n)?t||n?yv(JS(e),ZS(t,n)):JS(e):t||n?ZS(t,n):bv}function KS(e){return function(t,n){return t+=e,St(t)>ct&&(t-=Math.round(t/$n)*$n),[t,n]}}function JS(e){var t=KS(e);return t.invert=KS(-e),t}function ZS(e,t){var n=st(e),r=Xe(e),a=st(t),o=Xe(t);function s(l,u){var c=st(u),d=st(l)*c,h=Xe(l)*c,f=Xe(u),m=f*n+d*r;return[Ei(h*a-m*o,d*n-f*r),Mr(m*a+h*o)]}return s.invert=function(l,u){var c=st(u),d=st(l)*c,h=Xe(l)*c,f=Xe(u),m=f*a-h*o;return[Ei(h*a+f*o,d*n+m*r),Mr(m*n-d*r)]},s}function Aee(e){e=GS(e[0]*Ft,e[1]*Ft,e.length>2?e[2]*Ft:0);function t(n){return n=e(n[0]*Ft,n[1]*Ft),n[0]*=Nn,n[1]*=Nn,n}return t.invert=function(n){return n=e.invert(n[0]*Ft,n[1]*Ft),n[0]*=Nn,n[1]*=Nn,n},t}function Oee(e,t,n,r,a,o){if(n){var s=st(t),l=Xe(t),u=r*n;a==null?(a=t+r*$n,o=t-u/2):(a=XS(s,a),o=XS(s,o),(r>0?a<o:a>o)&&(a+=r*$n));for(var c,d=a;r>0?d>o:d<o;d-=u)c=_v([s,-l*st(d),-l*Xe(d)]),e.point(c[0],c[1])}}function XS(e,t){t=du(t),t[0]-=e,vv(t);var n=zS(-t[1]);return((-t[2]<0?-n:n)+$n-tt)%$n}function QS(){var e=[],t;return{point:function(n,r,a){t.push([n,r,a])},lineStart:function(){e.push(t=[])},lineEnd:kr,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Fm(e,t){return St(e[0]-t[0])<tt&&St(e[1]-t[1])<tt}function Rm(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function $S(e,t,n,r,a){var o=[],s=[],l,u;if(e.forEach(function(b){if(!((M=b.length-1)<=0)){var M,x=b[0],L=b[M],g;if(Fm(x,L)){if(!x[2]&&!L[2]){for(a.lineStart(),l=0;l<M;++l)a.point((x=b[l])[0],x[1]);a.lineEnd();return}L[0]+=2*tt}o.push(g=new Rm(x,b,null,!0)),s.push(g.o=new Rm(x,null,g,!1)),o.push(g=new Rm(L,b,null,!1)),s.push(g.o=new Rm(L,null,g,!0))}}),!!o.length){for(s.sort(t),e5(o),e5(s),l=0,u=s.length;l<u;++l)s[l].e=n=!n;for(var c=o[0],d,h;;){for(var f=c,m=!0;f.v;)if((f=f.n)===c)return;d=f.z,a.lineStart();do{if(f.v=f.o.v=!0,f.e){if(m)for(l=0,u=d.length;l<u;++l)a.point((h=d[l])[0],h[1]);else r(f.x,f.n.x,1,a);f=f.n}else{if(m)for(d=f.p.z,l=d.length-1;l>=0;--l)a.point((h=d[l])[0],h[1]);else r(f.x,f.p.x,-1,a);f=f.p}f=f.o,d=f.z,m=!m}while(!f.v);a.lineEnd()}}}function e5(e){if(t=e.length){for(var t,n=0,r=e[0],a;++n<t;)r.n=a=e[n],a.p=r,r=a;r.n=a=e[0],a.p=r}}function wv(e){return St(e[0])<=ct?e[0]:wr(e[0])*((St(e[0])+ct)%$n-ct)}function jee(e,t){var n=wv(t),r=t[1],a=Xe(r),o=[Xe(n),-st(n),0],s=0,l=0,u=new Os;a===1?r=Ht+tt:a===-1&&(r=-Ht-tt);for(var c=0,d=e.length;c<d;++c)if(f=(h=e[c]).length)for(var h,f,m=h[f-1],b=wv(m),M=m[1]/2+FS,x=Xe(M),L=st(M),g=0;g<f;++g,b=k,x=T,L=S,m=y){var y=h[g],k=wv(y),w=y[1]/2+FS,T=Xe(w),S=st(w),D=k-b,O=D>=0?1:-1,V=O*D,E=V>ct,R=x*T;if(u.add(Ei(R*O*Xe(V),L*S+R*st(V))),s+=E?D+O*$n:D,E^b>=n^k>=n){var j=Im(du(m),du(y));vv(j);var F=Im(o,j);vv(F);var B=(E^D>=0?-1:1)*Mr(F[2]);(r>B||r===B&&(j[0]||j[1]))&&(l+=E^D>=0?1:-1)}}return(s<-tt||s<tt&&u<-HS)^l&1}function t5(e,t,n,r){return function(a){var o=t(a),s=QS(),l=t(s),u=!1,c,d,h,f={point:m,lineStart:M,lineEnd:x,polygonStart:function(){f.point=L,f.lineStart=g,f.lineEnd=y,d=[],c=[]},polygonEnd:function(){f.point=m,f.lineStart=M,f.lineEnd=x,d=Sx(d);var k=jee(c,r);d.length?(u||(a.polygonStart(),u=!0),$S(d,Pee,k,n,a)):k&&(u||(a.polygonStart(),u=!0),a.lineStart(),n(null,null,1,a),a.lineEnd()),u&&(a.polygonEnd(),u=!1),d=c=null},sphere:function(){a.polygonStart(),a.lineStart(),n(null,null,1,a),a.lineEnd(),a.polygonEnd()}};function m(k,w){e(k,w)&&a.point(k,w)}function b(k,w){o.point(k,w)}function M(){f.point=b,o.lineStart()}function x(){f.point=m,o.lineEnd()}function L(k,w){h.push([k,w]),l.point(k,w)}function g(){l.lineStart(),h=[]}function y(){L(h[0][0],h[0][1]),l.lineEnd();var k=l.clean(),w=s.result(),T,S=w.length,D,O,V;if(h.pop(),c.push(h),h=null,!!S){if(k&1){if(O=w[0],(D=O.length-1)>0){for(u||(a.polygonStart(),u=!0),a.lineStart(),T=0;T<D;++T)a.point((V=O[T])[0],V[1]);a.lineEnd()}return}S>1&&k&2&&w.push(w.pop().concat(w.shift())),d.push(w.filter(Bee))}}return f}}function Bee(e){return e.length>1}function Pee(e,t){return((e=e.x)[0]<0?e[1]-Ht-tt:Ht-e[1])-((t=t.x)[0]<0?t[1]-Ht-tt:Ht-t[1])}const n5=t5(function(){return!0},Vee,Hee,[-ct,-Ht]);function Vee(e){var t=NaN,n=NaN,r=NaN,a;return{lineStart:function(){e.lineStart(),a=1},point:function(o,s){var l=o>0?ct:-ct,u=St(o-t);St(u-ct)<tt?(e.point(t,n=(n+s)/2>0?Ht:-Ht),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(l,n),e.point(o,n),a=0):r!==l&&u>=ct&&(St(t-r)<tt&&(t-=r*tt),St(o-l)<tt&&(o-=l*tt),n=Iee(t,n,o,s),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(l,n),a=0),e.point(t=o,n=s),r=l},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-a}}}function Iee(e,t,n,r){var a,o,s=Xe(e-n);return St(s)>tt?cu((Xe(t)*(o=st(r))*Xe(n)-Xe(r)*(a=st(t))*Xe(e))/(a*o*s)):(t+r)/2}function Hee(e,t,n,r){var a;if(e==null)a=n*Ht,r.point(-ct,a),r.point(0,a),r.point(ct,a),r.point(ct,0),r.point(ct,-a),r.point(0,-a),r.point(-ct,-a),r.point(-ct,0),r.point(-ct,a);else if(St(e[0]-t[0])>tt){var o=e[0]<t[0]?ct:-ct;a=n*o/2,r.point(-o,a),r.point(0,a),r.point(o,a)}else r.point(t[0],t[1])}function Fee(e){var t=st(e),n=2*Ft,r=t>0,a=St(t)>tt;function o(d,h,f,m){Oee(m,e,n,f,d,h)}function s(d,h){return st(d)*st(h)>t}function l(d){var h,f,m,b,M;return{lineStart:function(){b=m=!1,M=1},point:function(x,L){var g=[x,L],y,k=s(x,L),w=r?k?0:c(x,L):k?c(x+(x<0?ct:-ct),L):0;if(!h&&(b=m=k)&&d.lineStart(),k!==m&&(y=u(h,g),(!y||Fm(h,y)||Fm(g,y))&&(g[2]=1)),k!==m)M=0,k?(d.lineStart(),y=u(g,h),d.point(y[0],y[1])):(y=u(h,g),d.point(y[0],y[1],2),d.lineEnd()),h=y;else if(a&&h&&r^k){var T;!(w&f)&&(T=u(g,h,!0))&&(M=0,r?(d.lineStart(),d.point(T[0][0],T[0][1]),d.point(T[1][0],T[1][1]),d.lineEnd()):(d.point(T[1][0],T[1][1]),d.lineEnd(),d.lineStart(),d.point(T[0][0],T[0][1],3)))}k&&(!h||!Fm(h,g))&&d.point(g[0],g[1]),h=g,m=k,f=w},lineEnd:function(){m&&d.lineEnd(),h=null},clean:function(){return M|(b&&m)<<1}}}function u(d,h,f){var m=du(d),b=du(h),M=[1,0,0],x=Im(m,b),L=Vm(x,x),g=x[0],y=L-g*g;if(!y)return!f&&d;var k=t*L/y,w=-t*g/y,T=Im(M,x),S=Hm(M,k),D=Hm(x,w);gv(S,D);var O=T,V=Vm(S,O),E=Vm(O,O),R=V*V-E*(Vm(S,S)-1);if(!(R<0)){var j=In(R),F=Hm(O,(-V-j)/E);if(gv(F,S),F=_v(F),!f)return F;var B=d[0],z=h[0],G=d[1],q=h[1],J;z<B&&(J=B,B=z,z=J);var K=z-B,$=St(K-ct)<tt,ee=$||K<tt;if(!$&&q<G&&(J=G,G=q,q=J),ee?$?G+q>0^F[1]<(St(F[0]-B)<tt?G:q):G<=F[1]&&F[1]<=q:K>ct^(B<=F[0]&&F[0]<=z)){var ie=Hm(O,(-V+j)/E);return gv(ie,S),[F,_v(ie)]}}}function c(d,h){var f=r?e:ct-e,m=0;return d<-f?m|=1:d>f&&(m|=2),h<-f?m|=4:h>f&&(m|=8),m}return t5(s,l,o,r?[0,-e]:[-ct,e-ct])}function Ree(e,t,n,r,a,o){var s=e[0],l=e[1],u=t[0],c=t[1],d=0,h=1,f=u-s,m=c-l,b;if(b=n-s,!(!f&&b>0)){if(b/=f,f<0){if(b<d)return;b<h&&(h=b)}else if(f>0){if(b>h)return;b>d&&(d=b)}if(b=a-s,!(!f&&b<0)){if(b/=f,f<0){if(b>h)return;b>d&&(d=b)}else if(f>0){if(b<d)return;b<h&&(h=b)}if(b=r-l,!(!m&&b>0)){if(b/=m,m<0){if(b<d)return;b<h&&(h=b)}else if(m>0){if(b>h)return;b>d&&(d=b)}if(b=o-l,!(!m&&b<0)){if(b/=m,m<0){if(b>h)return;b>d&&(d=b)}else if(m>0){if(b<d)return;b<h&&(h=b)}return d>0&&(e[0]=s+d*f,e[1]=l+d*m),h<1&&(t[0]=s+h*f,t[1]=l+h*m),!0}}}}}var fd=1e9,zm=-fd;function r5(e,t,n,r){function a(c,d){return e<=c&&c<=n&&t<=d&&d<=r}function o(c,d,h,f){var m=0,b=0;if(c==null||(m=s(c,h))!==(b=s(d,h))||u(c,d)<0^h>0)do f.point(m===0||m===3?e:n,m>1?r:t);while((m=(m+h+4)%4)!==b);else f.point(d[0],d[1])}function s(c,d){return St(c[0]-e)<tt?d>0?0:3:St(c[0]-n)<tt?d>0?2:1:St(c[1]-t)<tt?d>0?1:0:d>0?3:2}function l(c,d){return u(c.x,d.x)}function u(c,d){var h=s(c,1),f=s(d,1);return h!==f?h-f:h===0?d[1]-c[1]:h===1?c[0]-d[0]:h===2?c[1]-d[1]:d[0]-c[0]}return function(c){var d=c,h=QS(),f,m,b,M,x,L,g,y,k,w,T,S={point:D,lineStart:R,lineEnd:j,polygonStart:V,polygonEnd:E};function D(B,z){a(B,z)&&d.point(B,z)}function O(){for(var B=0,z=0,G=m.length;z<G;++z)for(var q=m[z],J=1,K=q.length,$=q[0],ee,ie,ue=$[0],ce=$[1];J<K;++J)ee=ue,ie=ce,$=q[J],ue=$[0],ce=$[1],ie<=r?ce>r&&(ue-ee)*(r-ie)>(ce-ie)*(e-ee)&&++B:ce<=r&&(ue-ee)*(r-ie)<(ce-ie)*(e-ee)&&--B;return B}function V(){d=h,f=[],m=[],T=!0}function E(){var B=O(),z=T&&B,G=(f=Sx(f)).length;(z||G)&&(c.polygonStart(),z&&(c.lineStart(),o(null,null,1,c),c.lineEnd()),G&&$S(f,l,B,o,c),c.polygonEnd()),d=c,f=m=b=null}function R(){S.point=F,m&&m.push(b=[]),w=!0,k=!1,g=y=NaN}function j(){f&&(F(M,x),L&&k&&h.rejoin(),f.push(h.result())),S.point=D,k&&d.lineEnd()}function F(B,z){var G=a(B,z);if(m&&b.push([B,z]),w)M=B,x=z,L=G,w=!1,G&&(d.lineStart(),d.point(B,z));else if(G&&k)d.point(B,z);else{var q=[g=Math.max(zm,Math.min(fd,g)),y=Math.max(zm,Math.min(fd,y))],J=[B=Math.max(zm,Math.min(fd,B)),z=Math.max(zm,Math.min(fd,z))];Ree(q,J,e,t,n,r)?(k||(d.lineStart(),d.point(q[0],q[1])),d.point(J[0],J[1]),G||d.lineEnd(),T=!1):G&&(d.lineStart(),d.point(B,z),T=!1)}g=B,y=z,k=G}return S}}const Mv=e=>e;var kv=new Os,xv=new Os,a5,i5,Sv,Lv,Di={point:kr,lineStart:kr,lineEnd:kr,polygonStart:function(){Di.lineStart=zee,Di.lineEnd=Uee},polygonEnd:function(){Di.lineStart=Di.lineEnd=Di.point=kr,kv.add(St(xv)),xv=new Os},result:function(){var e=kv/2;return kv=new Os,e}};function zee(){Di.point=qee}function qee(e,t){Di.point=o5,a5=Sv=e,i5=Lv=t}function o5(e,t){xv.add(Lv*e-Sv*t),Sv=e,Lv=t}function Uee(){o5(a5,i5)}var fu=1/0,qm=fu,hd=-fu,Um=hd,Wm={point:Wee,lineStart:kr,lineEnd:kr,polygonStart:kr,polygonEnd:kr,result:function(){var e=[[fu,qm],[hd,Um]];return hd=Um=-(qm=fu=1/0),e}};function Wee(e,t){e<fu&&(fu=e),e>hd&&(hd=e),t<qm&&(qm=t),t>Um&&(Um=t)}var Yv=0,Tv=0,md=0,Gm=0,Km=0,hu=0,Ev=0,Dv=0,pd=0,s5,l5,Ra,za,xr={point:Ws,lineStart:u5,lineEnd:c5,polygonStart:function(){xr.lineStart=Jee,xr.lineEnd=Zee},polygonEnd:function(){xr.point=Ws,xr.lineStart=u5,xr.lineEnd=c5},result:function(){var e=pd?[Ev/pd,Dv/pd]:hu?[Gm/hu,Km/hu]:md?[Yv/md,Tv/md]:[NaN,NaN];return Yv=Tv=md=Gm=Km=hu=Ev=Dv=pd=0,e}};function Ws(e,t){Yv+=e,Tv+=t,++md}function u5(){xr.point=Gee}function Gee(e,t){xr.point=Kee,Ws(Ra=e,za=t)}function Kee(e,t){var n=e-Ra,r=t-za,a=In(n*n+r*r);Gm+=a*(Ra+e)/2,Km+=a*(za+t)/2,hu+=a,Ws(Ra=e,za=t)}function c5(){xr.point=Ws}function Jee(){xr.point=Xee}function Zee(){d5(s5,l5)}function Xee(e,t){xr.point=d5,Ws(s5=Ra=e,l5=za=t)}function d5(e,t){var n=e-Ra,r=t-za,a=In(n*n+r*r);Gm+=a*(Ra+e)/2,Km+=a*(za+t)/2,hu+=a,a=za*e-Ra*t,Ev+=a*(Ra+e),Dv+=a*(za+t),pd+=a*3,Ws(Ra=e,za=t)}function f5(e){this._context=e}f5.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:{this._context.moveTo(e,t),this._point=1;break}case 1:{this._context.lineTo(e,t);break}default:{this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,$n);break}}},result:kr};var Nv=new Os,Cv,h5,m5,_d,gd,vd={point:kr,lineStart:function(){vd.point=Qee},lineEnd:function(){Cv&&p5(h5,m5),vd.point=kr},polygonStart:function(){Cv=!0},polygonEnd:function(){Cv=null},result:function(){var e=+Nv;return Nv=new Os,e}};function Qee(e,t){vd.point=p5,h5=_d=e,m5=gd=t}function p5(e,t){_d-=e,gd-=t,Nv.add(In(_d*_d+gd*gd)),_d=e,gd=t}let _5,Jm,g5,v5;class y5{constructor(t){this._append=t==null?b5:$ee(t),this._radius=4.5,this._=""}pointRadius(t){return this._radius=+t,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+="Z"),this._point=NaN}point(t,n){switch(this._point){case 0:{this._append`M${t},${n}`,this._point=1;break}case 1:{this._append`L${t},${n}`;break}default:{if(this._append`M${t},${n}`,this._radius!==g5||this._append!==Jm){const r=this._radius,a=this._;this._="",this._append`m0,${r}a${r},${r} 0 1,1 0,${-2*r}a${r},${r} 0 1,1 0,${2*r}z`,g5=r,Jm=this._append,v5=this._,this._=a}this._+=v5;break}}}result(){const t=this._;return this._="",t.length?t:null}}function b5(e){let t=1;this._+=e[0];for(const n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function $ee(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return b5;if(t!==_5){const n=10**t;_5=t,Jm=function(a){let o=1;this._+=a[0];for(const s=a.length;o<s;++o)this._+=Math.round(arguments[o]*n)/n+a[o]}}return Jm}function Av(e,t){let n=3,r=4.5,a,o;function s(l){return l&&(typeof r=="function"&&o.pointRadius(+r.apply(this,arguments)),Us(l,a(o))),o.result()}return s.area=function(l){return Us(l,a(Di)),Di.result()},s.measure=function(l){return Us(l,a(vd)),vd.result()},s.bounds=function(l){return Us(l,a(Wm)),Wm.result()},s.centroid=function(l){return Us(l,a(xr)),xr.result()},s.projection=function(l){return arguments.length?(a=l==null?(e=null,Mv):(e=l).stream,s):e},s.context=function(l){return arguments.length?(o=l==null?(t=null,new y5(n)):new f5(t=l),typeof r!="function"&&o.pointRadius(r),s):t},s.pointRadius=function(l){return arguments.length?(r=typeof l=="function"?l:(o.pointRadius(+l),+l),s):r},s.digits=function(l){if(!arguments.length)return n;if(l==null)n=null;else{const u=Math.floor(l);if(!(u>=0))throw new RangeError(`invalid digits: ${l}`);n=u}return t===null&&(o=new y5(n)),s},s.projection(e).digits(n).context(t)}function Zm(e){return{stream:Xm(e)}}function Xm(e){return function(t){var n=new Ov;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Ov(){}Ov.prototype={constructor:Ov,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function jv(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),Us(n,e.stream(Wm)),t(Wm.result()),r!=null&&e.clipExtent(r),e}function Bv(e,t,n){return jv(e,function(r){var a=t[1][0]-t[0][0],o=t[1][1]-t[0][1],s=Math.min(a/(r[1][0]-r[0][0]),o/(r[1][1]-r[0][1])),l=+t[0][0]+(a-s*(r[1][0]+r[0][0]))/2,u=+t[0][1]+(o-s*(r[1][1]+r[0][1]))/2;e.scale(150*s).translate([l,u])},n)}function w5(e,t,n){return Bv(e,[[0,0],t],n)}function M5(e,t,n){return jv(e,function(r){var a=+t,o=a/(r[1][0]-r[0][0]),s=(a-o*(r[1][0]+r[0][0]))/2,l=-o*r[0][1];e.scale(150*o).translate([s,l])},n)}function k5(e,t,n){return jv(e,function(r){var a=+t,o=a/(r[1][1]-r[0][1]),s=-o*r[0][0],l=(a-o*(r[1][1]+r[0][1]))/2;e.scale(150*o).translate([s,l])},n)}var x5=16,ete=st(30*Ft);function S5(e,t){return+t?nte(e,t):tte(e)}function tte(e){return Xm({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function nte(e,t){function n(r,a,o,s,l,u,c,d,h,f,m,b,M,x){var L=c-r,g=d-a,y=L*L+g*g;if(y>4*t&&M--){var k=s+f,w=l+m,T=u+b,S=In(k*k+w*w+T*T),D=Mr(T/=S),O=St(St(T)-1)<tt||St(o-h)<tt?(o+h)/2:Ei(w,k),V=e(O,D),E=V[0],R=V[1],j=E-r,F=R-a,B=g*j-L*F;(B*B/y>t||St((L*j+g*F)/y-.5)>.3||s*f+l*m+u*b<ete)&&(n(r,a,o,s,l,u,E,R,O,k/=S,w/=S,T,M,x),x.point(E,R),n(E,R,O,k,w,T,c,d,h,f,m,b,M,x))}}return function(r){var a,o,s,l,u,c,d,h,f,m,b,M,x={point:L,lineStart:g,lineEnd:k,polygonStart:function(){r.polygonStart(),x.lineStart=w},polygonEnd:function(){r.polygonEnd(),x.lineStart=g}};function L(D,O){D=e(D,O),r.point(D[0],D[1])}function g(){h=NaN,x.point=y,r.lineStart()}function y(D,O){var V=du([D,O]),E=e(D,O);n(h,f,d,m,b,M,h=E[0],f=E[1],d=D,m=V[0],b=V[1],M=V[2],x5,r),r.point(h,f)}function k(){x.point=L,r.lineEnd()}function w(){g(),x.point=T,x.lineEnd=S}function T(D,O){y(a=D,O),o=h,s=f,l=m,u=b,c=M,x.point=y}function S(){n(h,f,d,m,b,M,o,s,a,l,u,c,x5,r),x.lineEnd=k,k()}return x}}var rte=Xm({point:function(e,t){this.stream.point(e*Ft,t*Ft)}});function ate(e){return Xm({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function ite(e,t,n,r,a){function o(s,l){return s*=r,l*=a,[t+e*s,n-e*l]}return o.invert=function(s,l){return[(s-t)/e*r,(n-l)/e*a]},o}function L5(e,t,n,r,a,o){if(!o)return ite(e,t,n,r,a);var s=st(o),l=Xe(o),u=s*e,c=l*e,d=s/e,h=l/e,f=(l*n-s*t)/e,m=(l*t+s*n)/e;function b(M,x){return M*=r,x*=a,[u*M-c*x+t,n-c*M-u*x]}return b.invert=function(M,x){return[r*(d*M-h*x+f),a*(m-h*M-d*x)]},b}function Lo(e){return Y5(function(){return e})()}function Y5(e){var t,n=150,r=480,a=250,o=0,s=0,l=0,u=0,c=0,d,h=0,f=1,m=1,b=null,M=n5,x=null,L,g,y,k=Mv,w=.5,T,S,D,O,V;function E(B){return D(B[0]*Ft,B[1]*Ft)}function R(B){return B=D.invert(B[0],B[1]),B&&[B[0]*Nn,B[1]*Nn]}E.stream=function(B){return O&&V===B?O:O=rte(ate(d)(M(T(k(V=B)))))},E.preclip=function(B){return arguments.length?(M=B,b=void 0,F()):M},E.postclip=function(B){return arguments.length?(k=B,x=L=g=y=null,F()):k},E.clipAngle=function(B){return arguments.length?(M=+B?Fee(b=B*Ft):(b=null,n5),F()):b*Nn},E.clipExtent=function(B){return arguments.length?(k=B==null?(x=L=g=y=null,Mv):r5(x=+B[0][0],L=+B[0][1],g=+B[1][0],y=+B[1][1]),F()):x==null?null:[[x,L],[g,y]]},E.scale=function(B){return arguments.length?(n=+B,j()):n},E.translate=function(B){return arguments.length?(r=+B[0],a=+B[1],j()):[r,a]},E.center=function(B){return arguments.length?(o=B[0]%360*Ft,s=B[1]%360*Ft,j()):[o*Nn,s*Nn]},E.rotate=function(B){return arguments.length?(l=B[0]%360*Ft,u=B[1]%360*Ft,c=B.length>2?B[2]%360*Ft:0,j()):[l*Nn,u*Nn,c*Nn]},E.angle=function(B){return arguments.length?(h=B%360*Ft,j()):h*Nn},E.reflectX=function(B){return arguments.length?(f=B?-1:1,j()):f<0},E.reflectY=function(B){return arguments.length?(m=B?-1:1,j()):m<0},E.precision=function(B){return arguments.length?(T=S5(S,w=B*B),F()):In(w)},E.fitExtent=function(B,z){return Bv(E,B,z)},E.fitSize=function(B,z){return w5(E,B,z)},E.fitWidth=function(B,z){return M5(E,B,z)},E.fitHeight=function(B,z){return k5(E,B,z)};function j(){var B=L5(n,0,0,f,m,h).apply(null,t(o,s)),z=L5(n,r-B[0],a-B[1],f,m,h);return d=GS(l,u,c),S=yv(t,z),D=yv(d,S),T=S5(S,w),F()}function F(){return O=V=null,E}return function(){return t=e.apply(this,arguments),E.invert=t.invert&&R,j()}}function Pv(e){var t=0,n=ct/3,r=Y5(e),a=r(t,n);return a.parallels=function(o){return arguments.length?r(t=o[0]*Ft,n=o[1]*Ft):[t*Nn,n*Nn]},a}function ote(e){var t=st(e);function n(r,a){return[r*t,Xe(a)/t]}return n.invert=function(r,a){return[r/t,Mr(a*t)]},n}function ste(e,t){var n=Xe(e),r=(n+Xe(t))/2;if(St(r)<tt)return ote(e);var a=1+n*(2*r-n),o=In(a)/r;function s(l,u){var c=In(a-2*r*Xe(u))/r;return[c*Xe(l*=r),o-c*st(l)]}return s.invert=function(l,u){var c=o-u,d=Ei(l,St(c))*wr(c);return c*r<0&&(d-=ct*wr(l)*wr(c)),[d/r,Mr((a-(l*l+c*c)*r*r)/(2*r))]},s}function Qm(){return Pv(ste).scale(155.424).center([0,33.6442])}function T5(){return Qm().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function lte(e){var t=e.length;return{point:function(n,r){for(var a=-1;++a<t;)e[a].point(n,r)},sphere:function(){for(var n=-1;++n<t;)e[n].sphere()},lineStart:function(){for(var n=-1;++n<t;)e[n].lineStart()},lineEnd:function(){for(var n=-1;++n<t;)e[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<t;)e[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<t;)e[n].polygonEnd()}}}function ute(){var e,t,n=T5(),r,a=Qm().rotate([154,0]).center([-2,58.5]).parallels([55,65]),o,s=Qm().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l,u,c={point:function(f,m){u=[f,m]}};function d(f){var m=f[0],b=f[1];return u=null,r.point(m,b),u||(o.point(m,b),u)||(l.point(m,b),u)}d.invert=function(f){var m=n.scale(),b=n.translate(),M=(f[0]-b[0])/m,x=(f[1]-b[1])/m;return(x>=.12&&x<.234&&M>=-.425&&M<-.214?a:x>=.166&&x<.234&&M>=-.214&&M<-.115?s:n).invert(f)},d.stream=function(f){return e&&t===f?e:e=lte([n.stream(t=f),a.stream(f),s.stream(f)])},d.precision=function(f){return arguments.length?(n.precision(f),a.precision(f),s.precision(f),h()):n.precision()},d.scale=function(f){return arguments.length?(n.scale(f),a.scale(f*.35),s.scale(f),d.translate(n.translate())):n.scale()},d.translate=function(f){if(!arguments.length)return n.translate();var m=n.scale(),b=+f[0],M=+f[1];return r=n.translate(f).clipExtent([[b-.455*m,M-.238*m],[b+.455*m,M+.238*m]]).stream(c),o=a.translate([b-.307*m,M+.201*m]).clipExtent([[b-.425*m+tt,M+.12*m+tt],[b-.214*m-tt,M+.234*m-tt]]).stream(c),l=s.translate([b-.205*m,M+.212*m]).clipExtent([[b-.214*m+tt,M+.166*m+tt],[b-.115*m-tt,M+.234*m-tt]]).stream(c),h()},d.fitExtent=function(f,m){return Bv(d,f,m)},d.fitSize=function(f,m){return w5(d,f,m)},d.fitWidth=function(f,m){return M5(d,f,m)},d.fitHeight=function(f,m){return k5(d,f,m)};function h(){return e=t=null,d}return d.scale(1070)}function E5(e){return function(t,n){var r=st(t),a=st(n),o=e(r*a);return o===1/0?[2,0]:[o*a*Xe(t),o*Xe(n)]}}function yd(e){return function(t,n){var r=In(t*t+n*n),a=e(r),o=Xe(a),s=st(a);return[Ei(t*o,r*s),Mr(r&&n*o/r)]}}var D5=E5(function(e){return In(2/(1+e))});D5.invert=yd(function(e){return 2*Mr(e/2)});function cte(){return Lo(D5).scale(124.75).clipAngle(180-.001)}var N5=E5(function(e){return(e=zS(e))&&e/Xe(e)});N5.invert=yd(function(e){return e});function dte(){return Lo(N5).scale(79.4188).clipAngle(180-.001)}function $m(e,t){return[e,Bm(mv((Ht+t)/2))]}$m.invert=function(e,t){return[e,2*cu(RS(t))-Ht]};function fte(){return C5($m).scale(961/$n)}function C5(e){var t=Lo(e),n=t.center,r=t.scale,a=t.translate,o=t.clipExtent,s=null,l,u,c;t.scale=function(h){return arguments.length?(r(h),d()):r()},t.translate=function(h){return arguments.length?(a(h),d()):a()},t.center=function(h){return arguments.length?(n(h),d()):n()},t.clipExtent=function(h){return arguments.length?(h==null?s=l=u=c=null:(s=+h[0][0],l=+h[0][1],u=+h[1][0],c=+h[1][1]),d()):s==null?null:[[s,l],[u,c]]};function d(){var h=ct*r(),f=t(Aee(t.rotate()).invert([0,0]));return o(s==null?[[f[0]-h,f[1]-h],[f[0]+h,f[1]+h]]:e===$m?[[Math.max(f[0]-h,s),l],[Math.min(f[0]+h,u),c]]:[[s,Math.max(f[1]-h,l)],[u,Math.min(f[1]+h,c)]])}return d()}function ep(e){return mv((Ht+e)/2)}function hte(e,t){var n=st(e),r=e===t?Xe(e):Bm(n/st(t))/Bm(ep(t)/ep(e)),a=n*hv(ep(e),r)/r;if(!r)return $m;function o(s,l){a>0?l<-Ht+tt&&(l=-Ht+tt):l>Ht-tt&&(l=Ht-tt);var u=a/hv(ep(l),r);return[u*Xe(r*s),a-u*st(r*s)]}return o.invert=function(s,l){var u=a-l,c=wr(r)*In(s*s+u*u),d=Ei(s,St(u))*wr(u);return u*r<0&&(d-=ct*wr(s)*wr(u)),[d/r,2*cu(hv(a/c,1/r))-Ht]},o}function mte(){return Pv(hte).scale(109.5).parallels([30,30])}function tp(e,t){return[e,t]}tp.invert=tp;function pte(){return Lo(tp).scale(152.63)}function _te(e,t){var n=st(e),r=e===t?Xe(e):(n-st(t))/(t-e),a=n/r+e;if(St(r)<tt)return tp;function o(s,l){var u=a-l,c=r*s;return[u*Xe(c),a-u*st(c)]}return o.invert=function(s,l){var u=a-l,c=Ei(s,St(u))*wr(u);return u*r<0&&(c-=ct*wr(s)*wr(u)),[c/r,a-wr(r)*In(s*s+u*u)]},o}function gte(){return Pv(_te).scale(131.154).center([0,13.9389])}var bd=1.340264,wd=-.081106,Md=893e-6,kd=.003796,np=In(3)/2,vte=12;function A5(e,t){var n=Mr(np*Xe(t)),r=n*n,a=r*r*r;return[e*st(n)/(np*(bd+3*wd*r+a*(7*Md+9*kd*r))),n*(bd+wd*r+a*(Md+kd*r))]}A5.invert=function(e,t){for(var n=t,r=n*n,a=r*r*r,o=0,s,l,u;o<vte&&(l=n*(bd+wd*r+a*(Md+kd*r))-t,u=bd+3*wd*r+a*(7*Md+9*kd*r),n-=s=l/u,r=n*n,a=r*r*r,!(St(s)<HS));++o);return[np*e*(bd+3*wd*r+a*(7*Md+9*kd*r))/st(n),Mr(Xe(n)/np)]};function yte(){return Lo(A5).scale(177.158)}function O5(e,t){var n=st(t),r=st(e)*n;return[n*Xe(e)/r,Xe(t)/r]}O5.invert=yd(cu);function bte(){return Lo(O5).scale(144.049).clipAngle(60)}function j5(e,t){return[st(t)*Xe(e),Xe(t)]}j5.invert=yd(Mr);function wte(){return Lo(j5).scale(249.5).clipAngle(90+tt)}function B5(e,t){var n=st(t),r=1+st(e)*n;return[n*Xe(e)/r,Xe(t)/r]}B5.invert=yd(function(e){return 2*cu(e)});function Mte(){return Lo(B5).scale(250).clipAngle(142)}function P5(e,t){return[Bm(mv((Ht+t)/2)),-e]}P5.invert=function(e,t){return[-t,2*cu(RS(e))-Ht]};function kte(){var e=C5(P5),t=e.center,n=e.rotate;return e.center=function(r){return arguments.length?t([-r[1],r[0]]):(r=t(),[r[1],-r[0]])},e.rotate=function(r){return arguments.length?n([r[0],r[1],r.length>2?r[2]+90:90]):(r=n(),[r[0],r[1],r[2]-90])},n([0,0,90]).scale(159.155)}function qa(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function xd(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Vv=Symbol("implicit");function Iv(){var e=new Qc,t=[],n=[],r=Vv;function a(o){let s=e.get(o);if(s===void 0){if(r!==Vv)return r;e.set(o,s=t.push(o)-1)}return n[s%n.length]}return a.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new Qc;for(const s of o)e.has(s)||e.set(s,t.push(s)-1);return a},a.range=function(o){return arguments.length?(n=Array.from(o),a):n.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.copy=function(){return Iv(t,n).unknown(r)},qa.apply(a,arguments),a}function Yo(){var e=Iv().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,o,s,l=!1,u=0,c=0,d=.5;delete e.unknown;function h(){var f=t().length,m=a<r,b=m?a:r,M=m?r:a;o=(M-b)/Math.max(1,f-u+c*2),l&&(o=Math.floor(o)),b+=(M-b-o*(f-u))*d,s=o*(1-u),l&&(b=Math.round(b),s=Math.round(s));var x=Sg(f).map(function(L){return b+o*L});return n(m?x.reverse():x)}return e.domain=function(f){return arguments.length?(t(f),h()):t()},e.range=function(f){return arguments.length?([r,a]=f,r=+r,a=+a,h()):[r,a]},e.rangeRound=function(f){return[r,a]=f,r=+r,a=+a,l=!0,h()},e.bandwidth=function(){return s},e.step=function(){return o},e.round=function(f){return arguments.length?(l=!!f,h()):l},e.padding=function(f){return arguments.length?(u=Math.min(1,c=+f),h()):u},e.paddingInner=function(f){return arguments.length?(u=Math.min(1,f),h()):u},e.paddingOuter=function(f){return arguments.length?(c=+f,h()):c},e.align=function(f){return arguments.length?(d=Math.max(0,Math.min(1,f)),h()):d},e.copy=function(){return Yo(t(),[r,a]).round(l).paddingInner(u).paddingOuter(c).align(d)},qa.apply(h(),arguments)}function V5(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return V5(t())},e}function xte(){return V5(Yo.apply(null,arguments).paddingInner(1))}function Ste(e){return function(){return e}}function Hv(e){return+e}var I5=[0,1];function Hn(e){return e}function Fv(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Ste(isNaN(t)?NaN:.5)}function Lte(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Yte(e,t,n){var r=e[0],a=e[1],o=t[0],s=t[1];return a<r?(r=Fv(a,r),o=n(s,o)):(r=Fv(r,a),o=n(o,s)),function(l){return o(r(l))}}function Tte(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),o=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)a[s]=Fv(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(l){var u=tm(e,l,1,r)-1;return o[u](a[u](l))}}function Sd(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function rp(){var e=I5,t=I5,n=Ha,r,a,o,s=Hn,l,u,c;function d(){var f=Math.min(e.length,t.length);return s!==Hn&&(s=Lte(e[0],e[f-1])),l=f>2?Tte:Yte,u=c=null,h}function h(f){return f==null||isNaN(f=+f)?o:(u||(u=l(e.map(r),t,n)))(r(s(f)))}return h.invert=function(f){return s(a((c||(c=l(t,e.map(r),yn)))(f)))},h.domain=function(f){return arguments.length?(e=Array.from(f,Hv),d()):e.slice()},h.range=function(f){return arguments.length?(t=Array.from(f),d()):t.slice()},h.rangeRound=function(f){return t=Array.from(f),n=km,d()},h.clamp=function(f){return arguments.length?(s=f?!0:Hn,d()):s!==Hn},h.interpolate=function(f){return arguments.length?(n=f,d()):n},h.unknown=function(f){return arguments.length?(o=f,h):o},function(f,m){return r=f,a=m,d()}}function H5(){return rp()(Hn,Hn)}function Ete(e,t,n,r){var a=kg(e,t,n),o;switch(r=dd(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=Nee(a,s))&&(r.precision=o),IS(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Cee(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=Dee(a))&&(r.precision=o-(r.type==="%")*2);break}}return uu(r)}function mu(e){var t=e.domain;return e.ticks=function(n){var r=t();return ed(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return Ete(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,o=r.length-1,s=r[a],l=r[o],u,c,d=10;for(l<s&&(c=s,s=l,l=c,c=a,a=o,o=c);d-- >0;){if(c=sm(s,l,n),c===u)return r[a]=s,r[o]=l,t(r);if(c>0)s=Math.floor(s/c)*c,l=Math.ceil(l/c)*c;else if(c<0)s=Math.ceil(s*c)/c,l=Math.floor(l*c)/c;else break;u=c}return e},e}function Sr(){var e=H5();return e.copy=function(){return Sd(e,Sr())},qa.apply(e,arguments),mu(e)}function F5(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Hv),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return F5(e).unknown(t)},e=arguments.length?Array.from(e,Hv):[0,1],mu(n)}function R5(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],o=e[r],s;return o<a&&(s=n,n=r,r=s,s=a,a=o,o=s),e[n]=t.floor(a),e[r]=t.ceil(o),e}function z5(e){return Math.log(e)}function q5(e){return Math.exp(e)}function Dte(e){return-Math.log(-e)}function Nte(e){return-Math.exp(-e)}function Cte(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Ate(e){return e===10?Cte:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Ote(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function U5(e){return(t,n)=>-e(-t,n)}function W5(e){const t=e(z5,q5),n=t.domain;let r=10,a,o;function s(){return a=Ote(r),o=Ate(r),n()[0]<0?(a=U5(a),o=U5(o),e(Dte,Nte)):e(z5,q5),t}return t.base=function(l){return arguments.length?(r=+l,s()):r},t.domain=function(l){return arguments.length?(n(l),s()):n()},t.ticks=l=>{const u=n();let c=u[0],d=u[u.length-1];const h=d<c;h&&([c,d]=[d,c]);let f=a(c),m=a(d),b,M;const x=l==null?10:+l;let L=[];if(!(r%1)&&m-f<x){if(f=Math.floor(f),m=Math.ceil(m),c>0){for(;f<=m;++f)for(b=1;b<r;++b)if(M=f<0?b/o(-f):b*o(f),!(M<c)){if(M>d)break;L.push(M)}}else for(;f<=m;++f)for(b=r-1;b>=1;--b)if(M=f>0?b/o(-f):b*o(f),!(M<c)){if(M>d)break;L.push(M)}L.length*2<x&&(L=ed(c,d,x))}else L=ed(f,m,Math.min(m-f,x)).map(o);return h?L.reverse():L},t.tickFormat=(l,u)=>{if(l==null&&(l=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=dd(u)).precision==null&&(u.trim=!0),u=uu(u)),l===1/0)return u;const c=Math.max(1,r*l/t.ticks().length);return d=>{let h=d/o(Math.round(a(d)));return h*r<r-.5&&(h*=r),h<=c?u(d):""}},t.nice=()=>n(R5(n(),{floor:l=>o(Math.floor(a(l))),ceil:l=>o(Math.ceil(a(l)))})),t}function G5(){const e=W5(rp()).domain([1,10]);return e.copy=()=>Sd(e,G5()).base(e.base()),qa.apply(e,arguments),e}function K5(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function J5(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Z5(e){var t=1,n=e(K5(t),J5(t));return n.constant=function(r){return arguments.length?e(K5(t=+r),J5(t)):t},mu(n)}function X5(){var e=Z5(rp());return e.copy=function(){return Sd(e,X5()).constant(e.constant())},qa.apply(e,arguments)}function Q5(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function jte(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Bte(e){return e<0?-e*e:e*e}function $5(e){var t=e(Hn,Hn),n=1;function r(){return n===1?e(Hn,Hn):n===.5?e(jte,Bte):e(Q5(n),Q5(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},mu(t)}function eL(){var e=$5(rp());return e.copy=function(){return Sd(e,eL()).exponent(e.exponent())},qa.apply(e,arguments),e}function tL(){var e=[],t=[],n=[],r;function a(){var s=0,l=Math.max(1,t.length);for(n=new Array(l-1);++s<l;)n[s-1]=yZ(e,s/l);return o}function o(s){return s==null||isNaN(s=+s)?r:t[tm(n,s)]}return o.invertExtent=function(s){var l=t.indexOf(s);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},o.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let l of s)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(ko),a()},o.range=function(s){return arguments.length?(t=Array.from(s),a()):t.slice()},o.unknown=function(s){return arguments.length?(r=s,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return tL().domain(e).range(t).unknown(r)},qa.apply(o,arguments)}function nL(){var e=[.5],t=[0,1],n,r=1;function a(o){return o!=null&&o<=o?t[tm(e,o,0,r)]:n}return a.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(o){var s=t.indexOf(o);return[e[s-1],e[s]]},a.unknown=function(o){return arguments.length?(n=o,a):n},a.copy=function(){return nL().domain(e).range(t).unknown(n)},qa.apply(a,arguments)}const Rv=new Date,zv=new Date;function Qt(e,t,n,r){function a(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return a.floor=o=>(e(o=new Date(+o)),o),a.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),a.round=o=>{const s=a(o),l=a.ceil(o);return o-s<l-o?s:l},a.offset=(o,s)=>(t(o=new Date(+o),s==null?1:Math.floor(s)),o),a.range=(o,s,l)=>{const u=[];if(o=a.ceil(o),l=l==null?1:Math.floor(l),!(o<s)||!(l>0))return u;let c;do u.push(c=new Date(+o)),t(o,l),e(o);while(c<o&&o<s);return u},a.filter=o=>Qt(s=>{if(s>=s)for(;e(s),!o(s);)s.setTime(s-1)},(s,l)=>{if(s>=s)if(l<0)for(;++l<=0;)for(;t(s,-1),!o(s););else for(;--l>=0;)for(;t(s,1),!o(s););}),n&&(a.count=(o,s)=>(Rv.setTime(+o),zv.setTime(+s),e(Rv),e(zv),Math.floor(n(Rv,zv))),a.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?a.filter(r?s=>r(s)%o===0:s=>a.count(0,s)%o===0):a)),a}const ap=Qt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ap.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Qt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ap),ap.range;const Ni=1e3,Lr=Ni*60,Ci=Lr*60,Ai=Ci*24,qv=Ai*7,rL=Ai*30,Uv=Ai*365,Zr=Qt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ni)},(e,t)=>(t-e)/Ni,e=>e.getUTCSeconds());Zr.range;const Ld=Qt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ni)},(e,t)=>{e.setTime(+e+t*Lr)},(e,t)=>(t-e)/Lr,e=>e.getMinutes());Ld.range;const Yd=Qt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Lr)},(e,t)=>(t-e)/Lr,e=>e.getUTCMinutes());Yd.range;const Td=Qt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ni-e.getMinutes()*Lr)},(e,t)=>{e.setTime(+e+t*Ci)},(e,t)=>(t-e)/Ci,e=>e.getHours());Td.range;const Ed=Qt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ci)},(e,t)=>(t-e)/Ci,e=>e.getUTCHours());Ed.range;const Gs=Qt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Lr)/Ai,e=>e.getDate()-1);Gs.range;const ip=Qt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ai,e=>e.getUTCDate()-1);ip.range;const op=Qt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ai,e=>Math.floor(e/Ai));op.range;function Ks(e){return Qt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Lr)/qv)}const pu=Ks(0),Dd=Ks(1),aL=Ks(2),iL=Ks(3),Js=Ks(4),oL=Ks(5),sL=Ks(6);pu.range,Dd.range,aL.range,iL.range,Js.range,oL.range,sL.range;function Zs(e){return Qt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/qv)}const _u=Zs(0),Nd=Zs(1),lL=Zs(2),uL=Zs(3),Xs=Zs(4),cL=Zs(5),dL=Zs(6);_u.range,Nd.range,lL.range,uL.range,Xs.range,cL.range,dL.range;const Cd=Qt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Cd.range;const Ad=Qt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Ad.range;const Xr=Qt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Xr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Qt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),Xr.range;const Qr=Qt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Qr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Qt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),Qr.range;function fL(e,t,n,r,a,o){const s=[[Zr,1,Ni],[Zr,5,5*Ni],[Zr,15,15*Ni],[Zr,30,30*Ni],[o,1,Lr],[o,5,5*Lr],[o,15,15*Lr],[o,30,30*Lr],[a,1,Ci],[a,3,3*Ci],[a,6,6*Ci],[a,12,12*Ci],[r,1,Ai],[r,2,2*Ai],[n,1,qv],[t,1,rL],[t,3,3*rL],[e,1,Uv]];function l(c,d,h){const f=d<c;f&&([c,d]=[d,c]);const m=h&&typeof h.range=="function"?h:u(c,d,h),b=m?m.range(c,+d+1):[];return f?b.reverse():b}function u(c,d,h){const f=Math.abs(d-c)/h,m=em(([,,x])=>x).right(s,f);if(m===s.length)return e.every(kg(c/Uv,d/Uv,h));if(m===0)return ap.every(Math.max(kg(c,d,h),1));const[b,M]=s[f/s[m-1][2]<s[m][2]/f?m-1:m];return b.every(M)}return[l,u]}const[Pte,hL]=fL(Qr,Ad,_u,op,Ed,Yd),[Vte,Ite]=fL(Xr,Cd,pu,Gs,Td,Ld);function Wv(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Gv(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Od(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Hte(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,o=e.days,s=e.shortDays,l=e.months,u=e.shortMonths,c=jd(a),d=Bd(a),h=jd(o),f=Bd(o),m=jd(s),b=Bd(s),M=jd(l),x=Bd(l),L=jd(u),g=Bd(u),y={a:G,A:q,b:J,B:K,c:null,d:yL,e:yL,f:une,g:yne,G:wne,H:one,I:sne,j:lne,L:bL,m:cne,M:dne,p:$,q:ee,Q:LL,s:YL,S:fne,u:hne,U:mne,V:pne,w:_ne,W:gne,x:null,X:null,y:vne,Y:bne,Z:Mne,"%":SL},k={a:ie,A:ue,b:ce,B:Me,c:null,d:ML,e:ML,f:Lne,g:Bne,G:Vne,H:kne,I:xne,j:Sne,L:kL,m:Yne,M:Tne,p:he,q:pe,Q:LL,s:YL,S:Ene,u:Dne,U:Nne,V:Cne,w:Ane,W:One,x:null,X:null,y:jne,Y:Pne,Z:Ine,"%":SL},w={a:V,A:E,b:R,B:j,c:F,d:gL,e:gL,f:nne,g:_L,G:pL,H:vL,I:vL,j:Qte,L:tne,m:Xte,M:$te,p:O,q:Zte,Q:ane,s:ine,S:ene,u:Ute,U:Wte,V:Gte,w:qte,W:Kte,x:B,X:z,y:_L,Y:pL,Z:Jte,"%":rne};y.x=T(n,y),y.X=T(r,y),y.c=T(t,y),k.x=T(n,k),k.X=T(r,k),k.c=T(t,k);function T(Q,de){return function(ye){var re=[],Le=-1,Ee=0,Pe=Q.length,se,te,ae;for(ye instanceof Date||(ye=new Date(+ye));++Le<Pe;)Q.charCodeAt(Le)===37&&(re.push(Q.slice(Ee,Le)),(te=mL[se=Q.charAt(++Le)])!=null?se=Q.charAt(++Le):te=se==="e"?" ":"0",(ae=de[se])&&(se=ae(ye,te)),re.push(se),Ee=Le+1);return re.push(Q.slice(Ee,Le)),re.join("")}}function S(Q,de){return function(ye){var re=Od(1900,void 0,1),Le=D(re,Q,ye+="",0),Ee,Pe;if(Le!=ye.length)return null;if("Q"in re)return new Date(re.Q);if("s"in re)return new Date(re.s*1e3+("L"in re?re.L:0));if(de&&!("Z"in re)&&(re.Z=0),"p"in re&&(re.H=re.H%12+re.p*12),re.m===void 0&&(re.m="q"in re?re.q:0),"V"in re){if(re.V<1||re.V>53)return null;"w"in re||(re.w=1),"Z"in re?(Ee=Gv(Od(re.y,0,1)),Pe=Ee.getUTCDay(),Ee=Pe>4||Pe===0?Nd.ceil(Ee):Nd(Ee),Ee=ip.offset(Ee,(re.V-1)*7),re.y=Ee.getUTCFullYear(),re.m=Ee.getUTCMonth(),re.d=Ee.getUTCDate()+(re.w+6)%7):(Ee=Wv(Od(re.y,0,1)),Pe=Ee.getDay(),Ee=Pe>4||Pe===0?Dd.ceil(Ee):Dd(Ee),Ee=Gs.offset(Ee,(re.V-1)*7),re.y=Ee.getFullYear(),re.m=Ee.getMonth(),re.d=Ee.getDate()+(re.w+6)%7)}else("W"in re||"U"in re)&&("w"in re||(re.w="u"in re?re.u%7:"W"in re?1:0),Pe="Z"in re?Gv(Od(re.y,0,1)).getUTCDay():Wv(Od(re.y,0,1)).getDay(),re.m=0,re.d="W"in re?(re.w+6)%7+re.W*7-(Pe+5)%7:re.w+re.U*7-(Pe+6)%7);return"Z"in re?(re.H+=re.Z/100|0,re.M+=re.Z%100,Gv(re)):Wv(re)}}function D(Q,de,ye,re){for(var Le=0,Ee=de.length,Pe=ye.length,se,te;Le<Ee;){if(re>=Pe)return-1;if(se=de.charCodeAt(Le++),se===37){if(se=de.charAt(Le++),te=w[se in mL?de.charAt(Le++):se],!te||(re=te(Q,ye,re))<0)return-1}else if(se!=ye.charCodeAt(re++))return-1}return re}function O(Q,de,ye){var re=c.exec(de.slice(ye));return re?(Q.p=d.get(re[0].toLowerCase()),ye+re[0].length):-1}function V(Q,de,ye){var re=m.exec(de.slice(ye));return re?(Q.w=b.get(re[0].toLowerCase()),ye+re[0].length):-1}function E(Q,de,ye){var re=h.exec(de.slice(ye));return re?(Q.w=f.get(re[0].toLowerCase()),ye+re[0].length):-1}function R(Q,de,ye){var re=L.exec(de.slice(ye));return re?(Q.m=g.get(re[0].toLowerCase()),ye+re[0].length):-1}function j(Q,de,ye){var re=M.exec(de.slice(ye));return re?(Q.m=x.get(re[0].toLowerCase()),ye+re[0].length):-1}function F(Q,de,ye){return D(Q,t,de,ye)}function B(Q,de,ye){return D(Q,n,de,ye)}function z(Q,de,ye){return D(Q,r,de,ye)}function G(Q){return s[Q.getDay()]}function q(Q){return o[Q.getDay()]}function J(Q){return u[Q.getMonth()]}function K(Q){return l[Q.getMonth()]}function $(Q){return a[+(Q.getHours()>=12)]}function ee(Q){return 1+~~(Q.getMonth()/3)}function ie(Q){return s[Q.getUTCDay()]}function ue(Q){return o[Q.getUTCDay()]}function ce(Q){return u[Q.getUTCMonth()]}function Me(Q){return l[Q.getUTCMonth()]}function he(Q){return a[+(Q.getUTCHours()>=12)]}function pe(Q){return 1+~~(Q.getUTCMonth()/3)}return{format:function(Q){var de=T(Q+="",y);return de.toString=function(){return Q},de},parse:function(Q){var de=S(Q+="",!1);return de.toString=function(){return Q},de},utcFormat:function(Q){var de=T(Q+="",k);return de.toString=function(){return Q},de},utcParse:function(Q){var de=S(Q+="",!0);return de.toString=function(){return Q},de}}}var mL={"-":"",_:" ",0:"0"},sn=/^\s*\d+/,Fte=/^%/,Rte=/[\\^$*+?|[\]().{}]/g;function kt(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",o=a.length;return r+(o<n?new Array(n-o+1).join(t)+a:a)}function zte(e){return e.replace(Rte,"\\$&")}function jd(e){return new RegExp("^(?:"+e.map(zte).join("|")+")","i")}function Bd(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function qte(e,t,n){var r=sn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ute(e,t,n){var r=sn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Wte(e,t,n){var r=sn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Gte(e,t,n){var r=sn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Kte(e,t,n){var r=sn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function pL(e,t,n){var r=sn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function _L(e,t,n){var r=sn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Jte(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Zte(e,t,n){var r=sn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Xte(e,t,n){var r=sn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function gL(e,t,n){var r=sn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Qte(e,t,n){var r=sn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function vL(e,t,n){var r=sn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function $te(e,t,n){var r=sn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ene(e,t,n){var r=sn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function tne(e,t,n){var r=sn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function nne(e,t,n){var r=sn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function rne(e,t,n){var r=Fte.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ane(e,t,n){var r=sn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ine(e,t,n){var r=sn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function yL(e,t){return kt(e.getDate(),t,2)}function one(e,t){return kt(e.getHours(),t,2)}function sne(e,t){return kt(e.getHours()%12||12,t,2)}function lne(e,t){return kt(1+Gs.count(Xr(e),e),t,3)}function bL(e,t){return kt(e.getMilliseconds(),t,3)}function une(e,t){return bL(e,t)+"000"}function cne(e,t){return kt(e.getMonth()+1,t,2)}function dne(e,t){return kt(e.getMinutes(),t,2)}function fne(e,t){return kt(e.getSeconds(),t,2)}function hne(e){var t=e.getDay();return t===0?7:t}function mne(e,t){return kt(pu.count(Xr(e)-1,e),t,2)}function wL(e){var t=e.getDay();return t>=4||t===0?Js(e):Js.ceil(e)}function pne(e,t){return e=wL(e),kt(Js.count(Xr(e),e)+(Xr(e).getDay()===4),t,2)}function _ne(e){return e.getDay()}function gne(e,t){return kt(Dd.count(Xr(e)-1,e),t,2)}function vne(e,t){return kt(e.getFullYear()%100,t,2)}function yne(e,t){return e=wL(e),kt(e.getFullYear()%100,t,2)}function bne(e,t){return kt(e.getFullYear()%1e4,t,4)}function wne(e,t){var n=e.getDay();return e=n>=4||n===0?Js(e):Js.ceil(e),kt(e.getFullYear()%1e4,t,4)}function Mne(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+kt(t/60|0,"0",2)+kt(t%60,"0",2)}function ML(e,t){return kt(e.getUTCDate(),t,2)}function kne(e,t){return kt(e.getUTCHours(),t,2)}function xne(e,t){return kt(e.getUTCHours()%12||12,t,2)}function Sne(e,t){return kt(1+ip.count(Qr(e),e),t,3)}function kL(e,t){return kt(e.getUTCMilliseconds(),t,3)}function Lne(e,t){return kL(e,t)+"000"}function Yne(e,t){return kt(e.getUTCMonth()+1,t,2)}function Tne(e,t){return kt(e.getUTCMinutes(),t,2)}function Ene(e,t){return kt(e.getUTCSeconds(),t,2)}function Dne(e){var t=e.getUTCDay();return t===0?7:t}function Nne(e,t){return kt(_u.count(Qr(e)-1,e),t,2)}function xL(e){var t=e.getUTCDay();return t>=4||t===0?Xs(e):Xs.ceil(e)}function Cne(e,t){return e=xL(e),kt(Xs.count(Qr(e),e)+(Qr(e).getUTCDay()===4),t,2)}function Ane(e){return e.getUTCDay()}function One(e,t){return kt(Nd.count(Qr(e)-1,e),t,2)}function jne(e,t){return kt(e.getUTCFullYear()%100,t,2)}function Bne(e,t){return e=xL(e),kt(e.getUTCFullYear()%100,t,2)}function Pne(e,t){return kt(e.getUTCFullYear()%1e4,t,4)}function Vne(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Xs(e):Xs.ceil(e),kt(e.getUTCFullYear()%1e4,t,4)}function Ine(){return"+0000"}function SL(){return"%"}function LL(e){return+e}function YL(e){return Math.floor(+e/1e3)}var gu,Kv,Pd;Hne({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"]});function Hne(e){return gu=Hte(e),Kv=gu.format,gu.parse,Pd=gu.utcFormat,gu.utcParse,gu}function Fne(e){return new Date(e)}function Rne(e){return e instanceof Date?+e:+new Date(+e)}function Jv(e,t,n,r,a,o,s,l,u,c){var d=H5(),h=d.invert,f=d.domain,m=c(".%L"),b=c(":%S"),M=c("%I:%M"),x=c("%I %p"),L=c("%a %d"),g=c("%b %d"),y=c("%B"),k=c("%Y");function w(T){return(u(T)<T?m:l(T)<T?b:s(T)<T?M:o(T)<T?x:r(T)<T?a(T)<T?L:g:n(T)<T?y:k)(T)}return d.invert=function(T){return new Date(h(T))},d.domain=function(T){return arguments.length?f(Array.from(T,Rne)):f().map(Fne)},d.ticks=function(T){var S=f();return e(S[0],S[S.length-1],T??10)},d.tickFormat=function(T,S){return S==null?w:c(S)},d.nice=function(T){var S=f();return(!T||typeof T.range!="function")&&(T=t(S[0],S[S.length-1],T??10)),T?f(R5(S,T)):d},d.copy=function(){return Sd(d,Jv(e,t,n,r,a,o,s,l,u,c))},d}function TL(){return qa.apply(Jv(Vte,Ite,Xr,Cd,pu,Gs,Td,Ld,Zr,Kv).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function To(){return qa.apply(Jv(Pte,hL,Qr,Ad,_u,ip,Ed,Yd,Zr,Pd).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function zne(){var e=0,t=1,n,r,a,o,s=Hn,l=!1,u;function c(h){return h==null||isNaN(h=+h)?u:s(a===0?.5:(h=(o(h)-n)*a,l?Math.max(0,Math.min(1,h)):h))}c.domain=function(h){return arguments.length?([e,t]=h,n=o(e=+e),r=o(t=+t),a=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(h){return arguments.length?(l=!!h,c):l},c.interpolator=function(h){return arguments.length?(s=h,c):s};function d(h){return function(f){var m,b;return arguments.length?([m,b]=f,s=h(m,b),c):[s(0),s(1)]}}return c.range=d(Ha),c.rangeRound=d(km),c.unknown=function(h){return arguments.length?(u=h,c):u},function(h){return o=h,n=h(e),r=h(t),a=n===r?0:1/(r-n),c}}function Vd(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Ua(){var e=mu(zne()(Hn));return e.copy=function(){return Vd(e,Ua())},xd.apply(e,arguments)}function sp(){var e=0,t=.5,n=1,r=1,a,o,s,l,u,c=Hn,d,h=!1,f;function m(M){return isNaN(M=+M)?f:(M=.5+((M=+d(M))-o)*(r*M<r*o?l:u),c(h?Math.max(0,Math.min(1,M)):M))}m.domain=function(M){return arguments.length?([e,t,n]=M,a=d(e=+e),o=d(t=+t),s=d(n=+n),l=a===o?0:.5/(o-a),u=o===s?0:.5/(s-o),r=o<a?-1:1,m):[e,t,n]},m.clamp=function(M){return arguments.length?(h=!!M,m):h},m.interpolator=function(M){return arguments.length?(c=M,m):c};function b(M){return function(x){var L,g,y;return arguments.length?([L,g,y]=x,c=Sm(M,[L,g,y]),m):[c(0),c(.5),c(1)]}}return m.range=b(Ha),m.rangeRound=b(km),m.unknown=function(M){return arguments.length?(f=M,m):f},function(M){return d=M,a=M(e),o=M(t),s=M(n),l=a===o?0:.5/(o-a),u=o===s?0:.5/(s-o),r=o<a?-1:1,m}}function EL(){var e=mu(sp()(Hn));return e.copy=function(){return Vd(e,EL())},xd.apply(e,arguments)}function DL(){var e=W5(sp()).domain([.1,1,10]);return e.copy=function(){return Vd(e,DL()).base(e.base())},xd.apply(e,arguments)}function NL(){var e=Z5(sp());return e.copy=function(){return Vd(e,NL()).constant(e.constant())},xd.apply(e,arguments)}function CL(){var e=$5(sp());return e.copy=function(){return Vd(e,CL()).exponent(e.exponent())},xd.apply(e,arguments)}function Qe(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const qne=Qe("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Une=Qe("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Wne=Qe("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Gne=Qe("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),Kne=Qe("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Jne=Qe("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Zne=Qe("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Xne=Qe("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Qne=Qe("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),$ne=Qe("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),ere=Qe("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Tt=e=>jQ(e[e.length-1]);var AL=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Qe);const OL=Tt(AL);var jL=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Qe);const BL=Tt(jL);var PL=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Qe);const VL=Tt(PL);var IL=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Qe);const HL=Tt(IL);var Zv=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Qe);const lp=Tt(Zv);var FL=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Qe);const RL=Tt(FL);var Xv=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Qe);const up=Tt(Xv);var zL=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Qe);const qL=Tt(zL);var UL=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Qe);const WL=Tt(UL);var GL=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Qe);const KL=Tt(GL);var JL=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Qe);const ZL=Tt(JL);var XL=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Qe);const QL=Tt(XL);var $L=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Qe);const eY=Tt($L);var tY=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Qe);const nY=Tt(tY);var rY=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Qe);const aY=Tt(rY);var iY=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Qe);const oY=Tt(iY);var sY=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Qe);const lY=Tt(sY);var uY=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Qe);const cY=Tt(uY);var dY=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Qe);const fY=Tt(dY);var hY=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Qe);const mY=Tt(hY);var pY=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Qe);const _Y=Tt(pY);var gY=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Qe);const cp=Tt(gY);var vY=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Qe);const dp=Tt(vY);var yY=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Qe);const Id=Tt(yY);var bY=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Qe);const wY=Tt(bY);var MY=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Qe);const Qv=Tt(MY);var kY=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Qe);const $v=Tt(kY);function xY(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const SY=Zg(Ia(300,.5,0),Ia(-240,.5,1));var LY=Zg(Ia(-100,.75,.35),Ia(80,1.5,.8)),YY=Zg(Ia(260,.75,.35),Ia(80,1.5,.8)),fp=Ia();function TY(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return fp.h=360*e-100,fp.s=1.5-1.5*t,fp.l=.8-.9*t,fp+""}var hp=So(),tre=Math.PI/3,nre=Math.PI*2/3;function EY(e){var t;return e=(.5-e)*Math.PI,hp.r=255*(t=Math.sin(e))*t,hp.g=255*(t=Math.sin(e+tre))*t,hp.b=255*(t=Math.sin(e+nre))*t,hp+""}function DY(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function mp(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const NY=mp(Qe("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var CY=mp(Qe("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),AY=mp(Qe("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),OY=mp(Qe("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function lt(e){return function(){return e}}const jY=Math.abs,Mn=Math.atan2,Oi=Math.cos,rre=Math.max,vu=Math.min,Fn=Math.sin,jt=Math.sqrt,kn=1e-12,Eo=Math.PI,pp=Eo/2,Do=2*Eo;function are(e){return e>1?0:e<-1?Eo:Math.acos(e)}function BY(e){return e>=1?pp:e<=-1?-pp:Math.asin(e)}function _p(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new CS(t)}function ire(e){return e.innerRadius}function ore(e){return e.outerRadius}function sre(e){return e.startAngle}function lre(e){return e.endAngle}function ure(e){return e&&e.padAngle}function cre(e,t,n,r,a,o,s,l){var u=n-e,c=r-t,d=s-a,h=l-o,f=h*u-d*c;if(!(f*f<kn))return f=(d*(t-o)-h*(e-a))/f,[e+f*u,t+f*c]}function gp(e,t,n,r,a,o,s){var l=e-n,u=t-r,c=(s?o:-o)/jt(l*l+u*u),d=c*u,h=-c*l,f=e+d,m=t+h,b=n+d,M=r+h,x=(f+b)/2,L=(m+M)/2,g=b-f,y=M-m,k=g*g+y*y,w=a-o,T=f*M-b*m,S=(y<0?-1:1)*jt(rre(0,w*w*k-T*T)),D=(T*y-g*S)/k,O=(-T*g-y*S)/k,V=(T*y+g*S)/k,E=(-T*g+y*S)/k,R=D-x,j=O-L,F=V-x,B=E-L;return R*R+j*j>F*F+B*B&&(D=V,O=E),{cx:D,cy:O,x01:-d,y01:-h,x11:D*(a/w-1),y11:O*(a/w-1)}}function ey(){var e=ire,t=ore,n=lt(0),r=null,a=sre,o=lre,s=ure,l=null,u=_p(c);function c(){var d,h,f=+e.apply(this,arguments),m=+t.apply(this,arguments),b=a.apply(this,arguments)-pp,M=o.apply(this,arguments)-pp,x=jY(M-b),L=M>b;if(l||(l=d=u()),m<f&&(h=m,m=f,f=h),!(m>kn))l.moveTo(0,0);else if(x>Do-kn)l.moveTo(m*Oi(b),m*Fn(b)),l.arc(0,0,m,b,M,!L),f>kn&&(l.moveTo(f*Oi(M),f*Fn(M)),l.arc(0,0,f,M,b,L));else{var g=b,y=M,k=b,w=M,T=x,S=x,D=s.apply(this,arguments)/2,O=D>kn&&(r?+r.apply(this,arguments):jt(f*f+m*m)),V=vu(jY(m-f)/2,+n.apply(this,arguments)),E=V,R=V,j,F;if(O>kn){var B=BY(O/f*Fn(D)),z=BY(O/m*Fn(D));(T-=B*2)>kn?(B*=L?1:-1,k+=B,w-=B):(T=0,k=w=(b+M)/2),(S-=z*2)>kn?(z*=L?1:-1,g+=z,y-=z):(S=0,g=y=(b+M)/2)}var G=m*Oi(g),q=m*Fn(g),J=f*Oi(w),K=f*Fn(w);if(V>kn){var $=m*Oi(y),ee=m*Fn(y),ie=f*Oi(k),ue=f*Fn(k),ce;if(x<Eo)if(ce=cre(G,q,ie,ue,$,ee,J,K)){var Me=G-ce[0],he=q-ce[1],pe=$-ce[0],Q=ee-ce[1],de=1/Fn(are((Me*pe+he*Q)/(jt(Me*Me+he*he)*jt(pe*pe+Q*Q)))/2),ye=jt(ce[0]*ce[0]+ce[1]*ce[1]);E=vu(V,(f-ye)/(de-1)),R=vu(V,(m-ye)/(de+1))}else E=R=0}S>kn?R>kn?(j=gp(ie,ue,G,q,m,R,L),F=gp($,ee,J,K,m,R,L),l.moveTo(j.cx+j.x01,j.cy+j.y01),R<V?l.arc(j.cx,j.cy,R,Mn(j.y01,j.x01),Mn(F.y01,F.x01),!L):(l.arc(j.cx,j.cy,R,Mn(j.y01,j.x01),Mn(j.y11,j.x11),!L),l.arc(0,0,m,Mn(j.cy+j.y11,j.cx+j.x11),Mn(F.cy+F.y11,F.cx+F.x11),!L),l.arc(F.cx,F.cy,R,Mn(F.y11,F.x11),Mn(F.y01,F.x01),!L))):(l.moveTo(G,q),l.arc(0,0,m,g,y,!L)):l.moveTo(G,q),!(f>kn)||!(T>kn)?l.lineTo(J,K):E>kn?(j=gp(J,K,$,ee,f,-E,L),F=gp(G,q,ie,ue,f,-E,L),l.lineTo(j.cx+j.x01,j.cy+j.y01),E<V?l.arc(j.cx,j.cy,E,Mn(j.y01,j.x01),Mn(F.y01,F.x01),!L):(l.arc(j.cx,j.cy,E,Mn(j.y01,j.x01),Mn(j.y11,j.x11),!L),l.arc(0,0,f,Mn(j.cy+j.y11,j.cx+j.x11),Mn(F.cy+F.y11,F.cx+F.x11),L),l.arc(F.cx,F.cy,E,Mn(F.y11,F.x11),Mn(F.y01,F.x01),!L))):l.arc(0,0,f,w,k,L)}if(l.closePath(),d)return l=null,d+""||null}return c.centroid=function(){var d=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,h=(+a.apply(this,arguments)+ +o.apply(this,arguments))/2-Eo/2;return[Oi(h)*d,Fn(h)*d]},c.innerRadius=function(d){return arguments.length?(e=typeof d=="function"?d:lt(+d),c):e},c.outerRadius=function(d){return arguments.length?(t=typeof d=="function"?d:lt(+d),c):t},c.cornerRadius=function(d){return arguments.length?(n=typeof d=="function"?d:lt(+d),c):n},c.padRadius=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:lt(+d),c):r},c.startAngle=function(d){return arguments.length?(a=typeof d=="function"?d:lt(+d),c):a},c.endAngle=function(d){return arguments.length?(o=typeof d=="function"?d:lt(+d),c):o},c.padAngle=function(d){return arguments.length?(s=typeof d=="function"?d:lt(+d),c):s},c.context=function(d){return arguments.length?(l=d??null,c):l},c}var dre=Array.prototype.slice;function vp(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function PY(e){this._context=e}PY.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Hd(e){return new PY(e)}function ty(e){return e[0]}function ny(e){return e[1]}function Fd(e,t){var n=lt(!0),r=null,a=Hd,o=null,s=_p(l);e=typeof e=="function"?e:e===void 0?ty:lt(e),t=typeof t=="function"?t:t===void 0?ny:lt(t);function l(u){var c,d=(u=vp(u)).length,h,f=!1,m;for(r==null&&(o=a(m=s())),c=0;c<=d;++c)!(c<d&&n(h=u[c],c,u))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(h,c,u),+t(h,c,u));if(m)return o=null,m+""||null}return l.x=function(u){return arguments.length?(e=typeof u=="function"?u:lt(+u),l):e},l.y=function(u){return arguments.length?(t=typeof u=="function"?u:lt(+u),l):t},l.defined=function(u){return arguments.length?(n=typeof u=="function"?u:lt(!!u),l):n},l.curve=function(u){return arguments.length?(a=u,r!=null&&(o=a(r)),l):a},l.context=function(u){return arguments.length?(u==null?r=o=null:o=a(r=u),l):r},l}function fre(e,t,n){var r=null,a=lt(!0),o=null,s=Hd,l=null,u=_p(c);e=typeof e=="function"?e:e===void 0?ty:lt(+e),t=typeof t=="function"?t:lt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?ny:lt(+n);function c(h){var f,m,b,M=(h=vp(h)).length,x,L=!1,g,y=new Array(M),k=new Array(M);for(o==null&&(l=s(g=u())),f=0;f<=M;++f){if(!(f<M&&a(x=h[f],f,h))===L)if(L=!L)m=f,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),b=f-1;b>=m;--b)l.point(y[b],k[b]);l.lineEnd(),l.areaEnd()}L&&(y[f]=+e(x,f,h),k[f]=+t(x,f,h),l.point(r?+r(x,f,h):y[f],n?+n(x,f,h):k[f]))}if(g)return l=null,g+""||null}function d(){return Fd().defined(a).curve(s).context(o)}return c.x=function(h){return arguments.length?(e=typeof h=="function"?h:lt(+h),r=null,c):e},c.x0=function(h){return arguments.length?(e=typeof h=="function"?h:lt(+h),c):e},c.x1=function(h){return arguments.length?(r=h==null?null:typeof h=="function"?h:lt(+h),c):r},c.y=function(h){return arguments.length?(t=typeof h=="function"?h:lt(+h),n=null,c):t},c.y0=function(h){return arguments.length?(t=typeof h=="function"?h:lt(+h),c):t},c.y1=function(h){return arguments.length?(n=h==null?null:typeof h=="function"?h:lt(+h),c):n},c.lineX0=c.lineY0=function(){return d().x(e).y(t)},c.lineY1=function(){return d().x(e).y(n)},c.lineX1=function(){return d().x(r).y(t)},c.defined=function(h){return arguments.length?(a=typeof h=="function"?h:lt(!!h),c):a},c.curve=function(h){return arguments.length?(s=h,o!=null&&(l=s(o)),c):s},c.context=function(h){return arguments.length?(h==null?o=l=null:l=s(o=h),c):o},c}function hre(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function mre(e){return e}function pre(){var e=mre,t=hre,n=null,r=lt(0),a=lt(Do),o=lt(0);function s(l){var u,c=(l=vp(l)).length,d,h,f=0,m=new Array(c),b=new Array(c),M=+r.apply(this,arguments),x=Math.min(Do,Math.max(-Do,a.apply(this,arguments)-M)),L,g=Math.min(Math.abs(x)/c,o.apply(this,arguments)),y=g*(x<0?-1:1),k;for(u=0;u<c;++u)(k=b[m[u]=u]=+e(l[u],u,l))>0&&(f+=k);for(t!=null?m.sort(function(w,T){return t(b[w],b[T])}):n!=null&&m.sort(function(w,T){return n(l[w],l[T])}),u=0,h=f?(x-c*y)/f:0;u<c;++u,M=L)d=m[u],k=b[d],L=M+(k>0?k*h:0)+y,b[d]={data:l[d],index:u,value:k,startAngle:M,endAngle:L,padAngle:g};return b}return s.value=function(l){return arguments.length?(e=typeof l=="function"?l:lt(+l),s):e},s.sortValues=function(l){return arguments.length?(t=l,n=null,s):t},s.sort=function(l){return arguments.length?(n=l,t=null,s):n},s.startAngle=function(l){return arguments.length?(r=typeof l=="function"?l:lt(+l),s):r},s.endAngle=function(l){return arguments.length?(a=typeof l=="function"?l:lt(+l),s):a},s.padAngle=function(l){return arguments.length?(o=typeof l=="function"?l:lt(+l),s):o},s}class VY{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function IY(e){return new VY(e,!0)}function _re(e){return new VY(e,!1)}function gre(e){return e.source}function vre(e){return e.target}function yre(e){let t=gre,n=vre,r=ty,a=ny,o=null,s=null,l=_p(u);function u(){let c;const d=dre.call(arguments),h=t.apply(this,d),f=n.apply(this,d);if(o==null&&(s=e(c=l())),s.lineStart(),d[0]=h,s.point(+r.apply(this,d),+a.apply(this,d)),d[0]=f,s.point(+r.apply(this,d),+a.apply(this,d)),s.lineEnd(),c)return s=null,c+""||null}return u.source=function(c){return arguments.length?(t=c,u):t},u.target=function(c){return arguments.length?(n=c,u):n},u.x=function(c){return arguments.length?(r=typeof c=="function"?c:lt(+c),u):r},u.y=function(c){return arguments.length?(a=typeof c=="function"?c:lt(+c),u):a},u.context=function(c){return arguments.length?(c==null?o=s=null:s=e(o=c),u):o},u}function bre(){return yre(IY)}const wre=jt(3),HY={draw(e,t){const n=jt(t+vu(t/28,.75))*.59436,r=n/2,a=r*wre;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-a,-r),e.lineTo(a,r),e.moveTo(-a,r),e.lineTo(a,-r)}},Rd={draw(e,t){const n=jt(t/Eo);e.moveTo(n,0),e.arc(0,0,n,0,Do)}},FY={draw(e,t){const n=jt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},RY=jt(1/3),Mre=RY*2,zY={draw(e,t){const n=jt(t/Mre),r=n*RY;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},qY={draw(e,t){const n=jt(t)*.62625;e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},UY={draw(e,t){const n=jt(t-vu(t/7,2))*.87559;e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},WY={draw(e,t){const n=jt(t),r=-n/2;e.rect(r,r,n,n)}},GY={draw(e,t){const n=jt(t)*.4431;e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},kre=.8908130915292852,KY=Fn(Eo/10)/Fn(7*Eo/10),xre=Fn(Do/10)*KY,Sre=-Oi(Do/10)*KY,JY={draw(e,t){const n=jt(t*kre),r=xre*n,a=Sre*n;e.moveTo(0,-n),e.lineTo(r,a);for(let o=1;o<5;++o){const s=Do*o/5,l=Oi(s),u=Fn(s);e.lineTo(u*n,-l*n),e.lineTo(l*r-u*a,u*r+l*a)}e.closePath()}},ry=jt(3),ZY={draw(e,t){const n=-jt(t/(ry*3));e.moveTo(0,n*2),e.lineTo(-ry*n,-n),e.lineTo(ry*n,-n),e.closePath()}},Lre=jt(3),XY={draw(e,t){const n=jt(t)*.6824,r=n/2,a=n*Lre/2;e.moveTo(0,-n),e.lineTo(a,r),e.lineTo(-a,r),e.closePath()}},Yr=-.5,Tr=jt(3)/2,ay=1/jt(12),Yre=(ay/2+1)*3,QY={draw(e,t){const n=jt(t/Yre),r=n/2,a=n*ay,o=r,s=n*ay+n,l=-o,u=s;e.moveTo(r,a),e.lineTo(o,s),e.lineTo(l,u),e.lineTo(Yr*r-Tr*a,Tr*r+Yr*a),e.lineTo(Yr*o-Tr*s,Tr*o+Yr*s),e.lineTo(Yr*l-Tr*u,Tr*l+Yr*u),e.lineTo(Yr*r+Tr*a,Yr*a-Tr*r),e.lineTo(Yr*o+Tr*s,Yr*s-Tr*o),e.lineTo(Yr*l+Tr*u,Yr*u-Tr*l),e.closePath()}},$Y={draw(e,t){const n=jt(t-vu(t/6,1.7))*.6189;e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},Tre=[Rd,FY,zY,WY,JY,ZY,QY],Ere=[Rd,UY,$Y,XY,HY,GY,qY];function No(){}function yp(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function bp(e){this._context=e}bp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:yp(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:yp(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Dre(e){return new bp(e)}function eT(e){this._context=e}eT.prototype={areaStart:No,areaEnd:No,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:yp(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Nre(e){return new eT(e)}function tT(e){this._context=e}tT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:yp(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Cre(e){return new tT(e)}function nT(e,t){this._basis=new bp(e),this._beta=t}nT.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],a=t[0],o=e[n]-r,s=t[n]-a,l=-1,u;++l<=n;)u=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(r+u*o),this._beta*t[l]+(1-this._beta)*(a+u*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Are=function e(t){function n(r){return t===1?new bp(r):new nT(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function wp(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function iy(e,t){this._context=e,this._k=(1-t)/6}iy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:wp(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:wp(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Ore=function e(t){function n(r){return new iy(r,t)}return n.tension=function(r){return e(+r)},n}(0);function oy(e,t){this._context=e,this._k=(1-t)/6}oy.prototype={areaStart:No,areaEnd:No,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:wp(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const jre=function e(t){function n(r){return new oy(r,t)}return n.tension=function(r){return e(+r)},n}(0);function sy(e,t){this._context=e,this._k=(1-t)/6}sy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,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:wp(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Bre=function e(t){function n(r){return new sy(r,t)}return n.tension=function(r){return e(+r)},n}(0);function ly(e,t,n){var r=e._x1,a=e._y1,o=e._x2,s=e._y2;if(e._l01_a>kn){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,a=(a*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>kn){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/d,s=(s*c+e._y1*e._l23_2a-n*e._l12_2a)/d}e._context.bezierCurveTo(r,a,o,s,e._x2,e._y2)}function rT(e,t){this._context=e,this._alpha=t}rT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:ly(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Pre=function e(t){function n(r){return t?new rT(r,t):new iy(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function aT(e,t){this._context=e,this._alpha=t}aT.prototype={areaStart:No,areaEnd:No,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ly(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Vre=function e(t){function n(r){return t?new aT(r,t):new oy(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function iT(e,t){this._context=e,this._alpha=t}iT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ly(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Ire=function e(t){function n(r){return t?new iT(r,t):new sy(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function oT(e){this._context=e}oT.prototype={areaStart:No,areaEnd:No,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Hre(e){return new oT(e)}function sT(e){return e<0?-1:1}function lT(e,t,n){var r=e._x1-e._x0,a=t-e._x1,o=(e._y1-e._y0)/(r||a<0&&-0),s=(n-e._y1)/(a||r<0&&-0),l=(o*a+s*r)/(r+a);return(sT(o)+sT(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(l))||0}function uT(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function uy(e,t,n){var r=e._x0,a=e._y0,o=e._x1,s=e._y1,l=(o-r)/3;e._context.bezierCurveTo(r+l,a+l*t,o-l,s-l*n,o,s)}function Mp(e){this._context=e}Mp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:uy(this,this._t0,uT(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,uy(this,uT(this,n=lT(this,e,t)),n);break;default:uy(this,this._t0,n=lT(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function cT(e){this._context=new dT(e)}(cT.prototype=Object.create(Mp.prototype)).point=function(e,t){Mp.prototype.point.call(this,t,e)};function dT(e){this._context=e}dT.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,o){this._context.bezierCurveTo(t,e,r,n,o,a)}};function Fre(e){return new Mp(e)}function Rre(e){return new cT(e)}function fT(e){this._context=e}fT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=hT(e),a=hT(t),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],a[0][o],r[1][o],a[1][o],e[s],t[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function hT(e){var t,n=e.length-1,r,a=new Array(n),o=new Array(n),s=new Array(n);for(a[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,o[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/o[t-1],o[t]-=r,s[t]-=r*s[t-1];for(a[n-1]=s[n-1]/o[n-1],t=n-2;t>=0;--t)a[t]=(s[t]-a[t+1])/o[t];for(o[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-a[t+1];return[a,o]}function zre(e){return new fT(e)}function kp(e,t){this._context=e,this._t=t}kp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function qre(e){return new kp(e,.5)}function Ure(e){return new kp(e,0)}function Wre(e){return new kp(e,1)}function mT(e,t){if((s=e.length)>1)for(var n=1,r,a,o=e[t[0]],s,l=o.length;n<s;++n)for(a=o,o=e[t[n]],r=0;r<l;++r)o[r][1]+=o[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function pT(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Gre(e,t){return e[t]}function Kre(e){const t=[];return t.key=e,t}function _T(){var e=lt([]),t=pT,n=mT,r=Gre;function a(o){var s=Array.from(e.apply(this,arguments),Kre),l,u=s.length,c=-1,d;for(const h of o)for(l=0,++c;l<u;++l)(s[l][c]=[0,+r(h,s[l].key,c,o)]).data=h;for(l=0,d=vp(t(s));l<u;++l)s[d[l]].index=l;return n(s,d),s}return a.keys=function(o){return arguments.length?(e=typeof o=="function"?o:lt(Array.from(o)),a):e},a.value=function(o){return arguments.length?(r=typeof o=="function"?o:lt(+o),a):r},a.order=function(o){return arguments.length?(t=o==null?pT:typeof o=="function"?o:lt(Array.from(o)),a):t},a.offset=function(o){return arguments.length?(n=o??mT,a):n},a}function zd(e,t,n){this.k=e,this.x=t,this.y=n}zd.prototype={constructor:zd,scale:function(e){return e===1?this:new zd(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new zd(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},zd.prototype;const Kt={light:{canvas:"#f3f4f6",primary:"#003153",secondary:"#2d6f9d",accent:"#9C27B0",positive:"#259940",neutral:"#777777",negative:"#C10015",info:"#007bf5",warning:"#C71E23",active:"#007D11",active2:"#BE8700",inactive:"#5C5C5C",error:"#B44936",text:"#000000",main:"#FFFFFF"},dark:{canvas:"#121212",primary:"#003153",secondary:"#2d6f9d",accent:"#9C27B0",positive:"#259940",neutral:"#777777",negative:"#C10015",info:"#007bf5",warning:"#C71E23",active:"#03FC1C",active2:"goldenrod",inactive:"#BDBDBD",error:"#FD1C03",text:"#cbd5e1",main:"#1f2937"}},Co={light:{pass:"#27aeef",input:"#007D11",output:"#007D11",drop:"#ef9b20",abort:"#7f7f7f",compressed:"#5C5C5C",error:"#ea5545",ignored:"#7f7f7f",buffer:"#27aeef"},dark:{pass:"#27aeef",input:"#03FC1C",output:"#03FC1C",drop:"#ef9b20",abort:"#7f7f7f",compressed:"#BDBDBD",error:"#ea5545",ignored:"#7f7f7f",buffer:"#27aeef"},scale:{pass:Ua(cp),input:Ua(dp),output:Ua(dp),drop:Ua($v),abort:Ua(Id),compressed:Ua(Id),error:Ua(Qv),ignored:Ua(Id),buffer:Ua(cp)}},cy={light:{ingressdata:"#007D11",egresstootherregion:"#ef9b20",egresstointernet:"#27aeef"},dark:{ingressdata:"#03FC1C",egresstootherregion:"#ef9b20",egresstointernet:"#27aeef"}},_t=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf","#1c9099","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],xp={light:{Average:"#ff7f0e",Upper_Bound:"#2ca02c",Lower_Bound:"#e377c2",Alert:"#27aeef"},dark:{Average:"#ff7f0e",Upper_Bound:"#2ca02c",Lower_Bound:"#e377c2",Alert:"#27aeef"}},Jre={green:["#3FA83F","#93CE07","#43B446","#73B142","#259940","#00695C","#3ec995"],compute15:Zre("#b50101","#7f7f7f",15)};function gT(e){return e<0?"00":e<16?"0"+e.toString(16):e.toString(16)}function dy(e,t,n,r){return e>t?gT(Math.floor((t-e)*(n/r))+e):gT(Math.floor((e-t)*(1-n/r))+t)}function Zre(e,t,n){e=e.replace("#",""),t=t.replace("#","");const r=parseInt(e.substring(0,2),16),a=parseInt(e.substring(2,4),16),o=parseInt(e.substring(4,6),16),s=parseInt(t.substring(0,2),16),l=parseInt(t.substring(2,4),16),u=parseInt(t.substring(4,6),16),c=[];for(let d=0;d<=n;d++){let h="#";const f=dy(r,s,d,n),m=dy(a,l,d,n),b=dy(o,u,d,n);h=h+f+m+b,c.push(h)}return c}function Xre(e,t){const n=Jre[e];return n[t%n.length]}function Qre(e,t){let n=0;for(let r=0;r<t.length;r++)n+=t.charCodeAt(r);return Xre(e,n)}const qd=e=>`$${e.toFixed(2)}`,Cn=e=>{const t=["","K","M","G","T","P"];let n=0;const r=e>=0;let a=Math.abs(e);if(a<1e3)return a;for(;a>=1e3&&n<t.length-1;)a/=1e3,++n;return r?`${a.toFixed(1)} ${t[n]}`:`-${a.toFixed(1)} ${t[n]}`},An=e=>{const t=["","Ki","Mi","Gi","Ti","Pi"];let n=0;const r=e>=0;let a=Math.abs(e);if(a<1024)return a===1e3?1e3:a.toPrecision(3);for(;a>=1024&&n<t.length-1;)a/=1024,++n;return r?`${a.toFixed(1)} ${t[n]}`:`-${a.toFixed(1)} ${t[n]}`},vT=e=>e>6e4?e>36e5?e>864e5?Math.floor(e/864e5)+" days":Math.floor(e/36e5)+" hrs":Math.floor(e/6e4)+" mins":e+" ms",$re={props:{id:{type:String,required:!0},data:{type:Object,required:!0},unit:{type:String,default:"Count"},width:{type:Number,default:350},height:{type:Number,default:200},pannable:{type:Boolean,default:!0},theme:{type:String,default:"light"}},data(){return{svg:null}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.svg=Be("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height)},createChart(e){let t=[];e.series.forEach((f,m)=>{t.push({...f,index:m})});const n=this.width,r=this.height,a=20,o=15,s=30,l=50,u=[],c=(f,m)=>{const b=new Date(m.slots).toUTCString(),M=this.unit==="Bytes (B)"?An(m.values)+"B":this.unit==="Percent (%)"?m.values.toFixed(2)+"%":Cn(m.values),x=m.action?`${m.action}<br>Time: ${b}<br>Value: ${M}`:`Alert<br>Time: ${b}<br>Value: ${M}`;f.target.r.baseVal.value=5,Be("#"+this.id+"tooltip").html(x).style("opacity",1).style("left",f.layerX+"px").style("top",f.layerY+"px")},d=(f,m)=>{f.target.r.baseVal.value=3,Be("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")};(()=>{const f=t.filter(y=>!u.includes(y.index)),m=this.getAxisLargest(f),b=To(Ut(m[0]),[l,n-o]),M=Sr([0,m[1]],[r-s,a]),x=this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${r-s})`).call(Vn(b).ticks(n/80).tickSizeOuter(0));if(this.svg.append("g").attr("class",this.id+"yaxis").attr("transform",`translate(${l},0)`).call(js(M).ticks(r/40).tickFormat(y=>this.unit==="Bytes (B)"?An(y):Cn(y))).call(y=>y.select(".domain").remove()).call(y=>y.selectAll(".tick line").clone().attr("x2",n-l-o).attr("stroke-opacity",.1)).call(y=>y.append("text").attr("x",-l).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit)),this.pannable){let k=function(){y=null},y;const w=(S,D)=>{const O=S.selection;if(O)b.domain([b.invert(O[0]),b.invert(O[1])]),this.svg.select("."+this.id+"brush").call(T.move,null);else{if(!y)return y=setTimeout(k,500);b.domain(Ut(e.slots))}x.transition().duration(1e3).call(Vn(b)),this.svg.selectAll("."+this.id+"line").attr("d",function(V){return L(V.values.map((E,R)=>({slots:e.slots[R],values:E})))}),this.svg.selectAll("."+this.id+"points").attr("cx",V=>b(V.slots))},T=vee().extent([[0,0],[n,r]]).on("end",w);this.svg.append("g").attr("class",S=>this.id+"brush").call(T),this.svg.on("dblclick",function(){b.domain(Ut(m[0],function(S){return S})),x.transition().call(Vn(b)),this.svg.selectAll("."+this.id+"line").attr("d",function(S){return L(S.values.map((D,O)=>({slots:e.slots[O],values:D})))}),this.svg.selectAll("."+this.id+"points").attr("cx",S=>b(S.slots))})}const L=Fd().x((y,k)=>b(y.slots)).y((y,k)=>M(y.values));this.svg.selectAll(".line").data(f).enter().append("path").attr("class",y=>this.id+y.index+"line "+this.id+"line").attr("fill","none").attr("z-index",1).style("stroke",y=>xp[this.theme][y.action]||_t[y.index%_t.length]).style("stroke-dasharray","3, 3").attr("stroke-width",1).attr("d",function(y){return L(y.values.map((k,w)=>({slots:e.slots[w],values:k})))}),this.svg.selectAll(".line").data([e]).enter().append("path").attr("class",this.id+"line").attr("fill","none").attr("z-index",1).style("stroke",xp[this.theme].Alert).attr("stroke-width",1.5).attr("d",function(y){return L(y.slots.map((k,w)=>({slots:k,values:y.values[w]})))});const g=e.slots.map((y,k)=>({slots:y,values:e.values[k],isAlert:e.metric.bools[k]}));this.svg.selectAll(".point").data(g).enter().append("circle").attr("class",(y,k)=>this.id+k+"points "+this.id+"points").attr("fill",_t[3]).attr("display",y=>y.isAlert?"":"none").attr("r",3).attr("cx",y=>b(y.slots)).attr("cy",y=>M(y.values)).on("mouseover",c).on("mouseout",d)})(),e.series||this.svg.append("text").attr("x",n/2).attr("y",r/2).attr("text-anchor","middle").attr("fill","currentColor").text("No data available"),e.series.length>0&&(this.legend=Be("#"+this.id+"legend").append("svg").attr("width",this.width>600?200:75).attr("height",Math.max(25*e.series.length,r-20)),this.legend.selectAll("legendDots").data([...t,{action:"Alert",index:t.length}]).enter().append("circle").attr("id",f=>this.id+f.index+"dots").attr("class","show").attr("cx",10).attr("cy",(f,m)=>r/(t.length+2)+m*25).attr("r",5).style("fill",f=>xp[this.theme][f.action]||_t[f.index%_t.length]),this.legend.selectAll("legendLabels").data([...t,{action:"Alert",index:t.length}]).enter().append("text").attr("class",f=>this.id+f.index+"labels").attr("x",20).attr("y",(f,m)=>r/(t.length+2)+m*25).style("fill",f=>xp[this.theme][f.action]||_t[f.index%_t.length]).text(f=>f.action==="Alert"?e.action:f.action||"(no name)").attr("font-weight",500).attr("text-anchor","left").attr("font-size","11px").style("alignment-baseline","middle"))},getAxisLargest(e){let t=this.data.slots,n=Math.max(...this.data.values);return e.forEach((r,a)=>{const o=Math.max(...r.values);o>n&&(n=o)}),[t,n]}}},eae=["id"],tae=["id"],nae=["id"];function rae(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{id:n.id,class:"float-left"},[i.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,tae)],8,eae),i.createElementVNode("div",{class:"overflow-auto",style:i.normalizeStyle(`height: ${n.height}px; overflow: auto`)},[i.createElementVNode("div",{id:n.id+"legend"},null,8,nae)],4)],64)}const aae=bt($re,[["render",rae]]),iae={props:{id:String,tooltip:String,runs:Array,tooltipOffset:{type:String,default:"client"},theme:{type:String,default:"light"}},data(){return{svg:null,width:250,height:60}},mounted(){this.initializeChart(),this.createChart()},methods:{initializeChart(){this.svg=Be("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height).attr("style","outline: thin solid;")},createChart(){const e=this.width,t=this.height,n=3,r=18,a=17,o=18,s=(d,h)=>{at("."+this.id+"run").attr("opacity","0.5"),Be("."+this.id+h.taskID).attr("opacity","1");const f=Se(h.launchTime).format("YYYY-MM-DD HH:mm:ss"),m=Se(h.completeTime).format("YYYY-MM-DD HH:mm:ss"),b=Se(h.completeTime).diff(Se(h.launchTime)),M=`Task: ${h.taskID}<br>Status: ${h.status}<br>Launch Time: ${f}<br>Complete Time: ${m}<br>Duration: ${vT(b)}`;Be("#"+this.id+"tooltip").html(M).style("opacity",1).style("left",d[this.tooltipOffset+"X"]+10+"px").style("top",d[this.tooltipOffset+"Y"]+"px")},l=(d,h)=>{at("."+this.id+"run").attr("opacity","1"),Be("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},u=this.runs.map(d=>Se(d.launchTime).valueOf());u.length===1&&(u.push(Se(u[0]).add(2,"minute").valueOf()),u.push(Se(u[0]).subtract(2,"minute").valueOf()));const c=TL(Ut(u),[o,e-r]);this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${t-a})`).call(Vn(c).ticks(e/80).tickSize(3).tickSizeOuter(0)),this.svg.selectAll(".rect").data(this.runs).enter().append("rect").attr("class",d=>this.id+`run ${this.id}${d.taskID}`).attr("style","cursor: pointer;").attr("z-index",1).attr("x",d=>c(Se(d.launchTime).valueOf())).attr("y",n).attr("width",d=>{const h=c(Se(d.completeTime).valueOf())-c(Se(d.launchTime).valueOf());return h>2?h:2}).attr("height",d=>t-a-n).attr("fill",d=>{const h=d.status==="completed"?"input":d.status==="aborted"?"error":"ignored";return Co[this.theme][h]}).attr("opacity",0).on("click",(d,h)=>{this.$emit("viewRun",h)}).on("mouseover",s).on("mouseout",l).transition().delay((d,h)=>1e3-h/this.runs.length*1200).duration(200).attr("opacity",1)}}},oae=["id"],sae=["id"];function lae(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock("div",{id:n.id},[i.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,sae)],8,oae)}const uae=bt(iae,[["render",lae]]),cae={props:{id:{type:String,required:!0},data:{type:Array,required:!0},unit:{type:String,default:"Count"},width:{type:Number,default:350},height:{type:Number,default:200},hideZeros:{type:Boolean,default:!0},isTime:{type:Boolean,default:!0},tooltipOffset:{type:String,default:"layer"},slotName:{type:String,default:"Field"},valueName:{type:String,default:"Value"},useLegend:{type:Boolean,default:!0},theme:{type:String,default:"light"}},data(){return{svg:null,legend:null}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.svg=Be("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height)},createChart(e){let t=[];e.forEach((x,L)=>{x.index=L,x.values=x.values.map(y=>isNaN(y)?0:y);const g=x.values.reduce((y,k)=>y+k,0);x.total=isNaN(g)?0:g,this.hideZeros?g>0&&t.push(x):t.push(x)}),t=t.sort((x,L)=>L.total-x.total),e=e.sort((x,L)=>L.total-x.total);const n=this.width,r=this.height,a=20,o=15,s=30,l=50,u=[],c=(x,L)=>{const g=this.isTime?new Date(L.slots).toUTCString():L.slots,y=this.unit==="Bytes (B)"||this.unit==="B"?An(L.values)+"B":this.unit==="Percent (%)"?L.values.toFixed(2)+"%":this.unit==="$"?"$"+L.values.toFixed(2):Cn(L.values),k=L.action?`${L.action}<br>${this.isTime?"Time":this.slotName}: ${g}<br>${this.valueName}: ${y}`:`${this.isTime?"Time":this.slotName}: ${g}<br>${this.valueName}: ${y}`;x.target.r.baseVal.value=5,Be("#"+this.id+"tooltip").html(k).style("opacity",1).style("left",x[this.tooltipOffset+"X"]+10+"px").style("top",x[this.tooltipOffset+"Y"]+"px")},d=(x,L)=>{x.target.r.baseVal.value=3,Be("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},h=(x,L)=>{const g=L.index;x.target.classList.contains("show")&&(at("."+this.id+"line").attr("stroke-width",1),at("."+this.id+g+"line").attr("stroke-width",2.5),at("."+this.id+"points").attr("r",1),at("."+this.id+g+"points").attr("r",3),at("#"+this.id+g+"dots").attr("r",6),at("."+this.id+g+"labels").attr("font-weight",1e3))},f=(x,L)=>{const g=L.index;at("."+this.id+"line").attr("stroke-width",1.5),at("."+this.id+"points").attr("r",2.5),at("#"+this.id+g+"dots").attr("r",5),at("."+this.id+g+"labels").attr("font-weight",500)},m=(x,L)=>{const g=L.index;x.target.classList.contains("show")?(u.push(g),x.target.classList.remove("show"),x.target.classList.add("hide"),at("#"+this.id+g+"dots").attr("opacity","0.5")):(u.splice(u.indexOf(g),1),x.target.classList.remove("hide"),x.target.classList.add("show"),at("#"+this.id+g+"dots").attr("opacity","1")),at("."+this.id+"line").remove(),at("."+this.id+"points").remove(),Be("."+this.id+"xaxis").remove(),Be("."+this.id+"yaxis").remove(),b()},b=()=>{var D;const x=t.filter(O=>!u.includes(O.index)),L=this.getAxisLargest(x),g=this.isTime?To(Ut(L[0]),[l,n-o]):Yo(L[0],[l,n-o]),y=Sr([0,L[1]],[r-s,a]);this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${r-s})`).call(this.isTime?Vn(g).ticks(n/80).tickSizeOuter(0):Vn(g).ticks(n/20).tickSizeOuter(0).tickFormat(O=>{if(!this.isTime)return po(O,(n-o)/L[0].length*8)})),this.svg.append("g").attr("class",this.id+"yaxis").attr("transform",`translate(${l},0)`).call(js(y).ticks(r/40).tickFormat(O=>this.unit==="Bytes (B)"||this.unit==="B"?An(O):Cn(O))).call(O=>O.select(".domain").remove()).call(O=>O.selectAll(".tick line").clone().attr("x2",n-l-o).attr("stroke-opacity",.1)).call(O=>O.append("text").attr("x",-l).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit));const k=Fd().x((O,V)=>g(O.slots)).y((O,V)=>y(O.values)),w=this.svg.selectAll(".line").data(x).enter().append("path").attr("class",O=>this.id+O.index+"line "+this.id+"line").attr("fill","none").attr("z-index",1).attr("stroke",O=>Co[this.theme][O.action]||_t[O.index%_t.length]).attr("stroke-width",1.5).attr("d",function(O){return k(O.slots.map((V,E)=>({slots:V,values:O.values[E]})))}),T=((D=w.node())==null?void 0:D.getTotalLength())||0,S=1200;w.attr("stroke-dasharray",T+" "+T).attr("stroke-dashoffset",T).transition().duration(S).ease(iee).attr("stroke-dashoffset",0);for(const O of x){const V=O.slots.map((E,R)=>({index:O.index,action:O.action,slots:E,values:O.values[R]}));this.svg.selectAll(".point").data(V).enter().append("circle").attr("class",E=>this.id+E.index+"points "+this.id+"points").attr("fill",E=>Co[this.theme][O.action]||_t[E.index%_t.length]).attr("r",2.5).attr("cx",E=>g(E.slots)).attr("cy",E=>y(E.values)).attr("opacity",0).on("mouseover",c).on("mouseout",d).transition().delay((E,R)=>R/V.length*S).duration(250).attr("opacity",1)}};b(),t.length===0&&this.svg.append("text").attr("x",n/2).attr("y",r/2).attr("text-anchor","middle").attr("fill","currentColor").text("No data available");const M=Math.max(...e.map(x=>zF(x.action||"(no name)")),0);this.legend=Be("#"+this.id+"legend").append("svg").attr("width",M/7+30).attr("height",Math.max(25*e.length,this.height)),this.legend.selectAll("legendDots").data(e).enter().append("circle").attr("id",x=>this.id+x.index+"dots").attr("class","show").attr("cx",10).attr("cy",(x,L)=>r/(e.length+1)+L*25+4).attr("r",5).style("fill",x=>Co[this.theme][x.action]||_t[x.index%_t.length]).on("mouseover",h).on("mouseout",f).on("click",m),this.legend.selectAll("legendLabels").data(e).enter().append("text").attr("class",x=>this.id+x.index+"labels").attr("x",20).attr("y",(x,L)=>r/(e.length+1)+L*25+5).style("fill",x=>Co[this.theme][x.action]||_t[x.index%_t.length]).text(x=>x.action||"(no name)").attr("font-weight",500).attr("text-anchor","left").attr("font-size","13px").style("alignment-baseline","middle")},getAxisLargest(e){let t=[],n=this.unit==="Percent (%)"?100:0;return e.forEach((r,a)=>{r.slots.forEach(s=>{t.includes(s)||t.push(s)});const o=Math.max(...r.values);o>n&&(n=o)}),[t,n]}}},dae=["id"],fae=["id"],hae=["id"];function mae(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{id:n.id,class:"float-left"},[i.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,fae)],8,dae),n.useLegend?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`height: ${n.height}px; overflow: auto`)},[i.createElementVNode("div",{id:n.id+"legend"},null,8,hae)],4)):i.createCommentVNode("",!0)],64)}const pae=bt(cae,[["render",mae]]),_ae={props:{id:{type:String,required:!0},data:{type:Object,required:!0},unit:{type:String,default:"Cost ($)"},width:{type:Number,default:800},height:{type:Number,default:400},title:{type:String,default:""},valueName:{type:String,default:"Value"},theme:{type:String,default:"light"}},data(){return{svg:null}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.svg=Be("#"+this.id).append("svg").attr("width",this.width).attr("height",this.title?this.height+40:this.height)},createChart(e){const t=this.width,n=this.title?this.height+30:this.height,r=20,a=15,o=30,s=50;let l=this.unit==="Percent (%)"?100:0;e.values.forEach(m=>{m>l&&(l=m)});const u=To(Ut(e.slots),[s,t-a]),c=this.title?[n-o,r+30]:[n-o,r],d=Sr([0,l],c),h=(m,b)=>{const M=new Date(b.slots).toUTCString(),x=this.unit==="Bytes (B)"||this.unit==="B"?An(b.values)+"B":this.unit==="Percent (%)"?b.values.toFixed(2)+"%":this.unit==="Cost ($)"?qd(b.values):Cn(b.values),L=Be("#"+this.id+"tooltip").html(`${this.data.name}<br>${M}<br>${this.valueName}: ${x}`).style("opacity",1).style("top",m.layerY+"px");if(m.layerX>t*3/4){const g=L.node().getBoundingClientRect().width;L.style("left",m.layerX-g+"px")}else L.style("left",m.layerX+"px")},f=(m,b)=>{Be("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")};if(this.svg.append("g").attr("transform",`translate(0,${n-o})`).call(Vn(u).ticks(t/80).tickSizeOuter(0)),this.svg.append("g").attr("transform",`translate(${s},0)`).call(js(d).ticks(n/40).tickFormat(m=>this.unit==="Bytes (B)"||this.unit==="B"?An(m):this.unit==="Cost ($)"?qd(m):Cn(m))).call(m=>m.select(".domain").remove()).call(m=>m.selectAll(".tick line").clone().attr("x2",t-s-a).attr("stroke-opacity",.1)).call(m=>m.append("text").attr("x",-s).attr("y",this.title?40:10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit)).call(m=>m.append("text").attr("x",-s).attr("y",20).attr("fill","currentColor").attr("text-anchor","start").attr("font-weight","bold").attr("font-size","2em").text(this.title)),e.slots.length>0){const m=e.slots.map((b,M)=>({slots:b,values:e.values[M]}));this.svg.selectAll(".rect").data(m).enter().append("rect").attr("class",b=>this.id+"bar").attr("z-index",1).attr("x",b=>u(b.slots)-2).attr("y",b=>d(b.values)).attr("width",10).attr("height",b=>n-o-d(b.values)).attr("fill",_t[0]).on("mouseover",h).on("mouseout",f)}else this.svg.append("text").attr("x",t/2).attr("y",n/2).attr("text-anchor","middle").text("No data available")}}},gae=["id"],vae=["id"];function yae(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock("div",{id:n.id},[i.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,vae)],8,gae)}const bae=bt(_ae,[["render",yae]]),wae={props:{id:{type:String,required:!0},data:{type:Object,required:!0},unit:{type:String,default:"Cost ($)"},width:{type:Number,default:300},height:{type:Number,default:600},title:{type:String,default:""},resizable:{type:Boolean,default:!1},tooltipOffset:{type:String,default:"layer"},valueName:{type:String,default:"Value"},theme:{type:String,default:"light"}},data(){return{svg:null}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.resizable?this.svg=Be("#"+this.id).append("svg").attr("viewBox",`0 0 ${this.width} ${this.title?this.height+40:this.height}`):this.svg=Be("#"+this.id).append("svg").attr("width",this.width).attr("height",this.title?this.height+40:this.height)},createChart(e){const t=this.width,n=this.title?this.height+30:this.height,r=20,a=5,o=5,s=10,l=e.fields.reduce((d,h,f)=>(d[f]=h||"(no name)",d),{}),u=(d,h)=>{const f=this.unit==="Bytes (B)"||this.unit==="B"?An(h.values)+"B":this.unit==="Percent (%)"?h.values.toFixed(2)+"%":Cn(h.values);d.target.style.opacity=.4,Be("#"+this.id+"tooltip").html(`${h.field?h.field:"(no name)"}<br>${this.valueName}: ${f}`).style("opacity",1).style("left",d[this.tooltipOffset+"X"]+10+"px").style("top",d[this.tooltipOffset+"Y"]+"px")},c=(d,h)=>{d.target.style.opacity=0,Be("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")};if(e.fields&&e.fields.length>0){let d=this.unit==="Percent (%)"?100:0;e.values.forEach(M=>{M>d&&(d=M)}),d===0&&(d=1);const h=Sr([0,d],[s,t-a-s]),f=this.title?[n-o,r+30]:[n-o,r],m=Yo().range(f).domain(e.fields.map((M,x)=>x)).padding(.2),b=e.fields.map((M,x)=>({field:M,values:e.values[x]||0}));this.svg.selectAll(".rect").data(b).enter().append("rect").attr("class",M=>this.id+"bar").attr("z-index",1).attr("x",M=>h(0)).attr("y",(M,x)=>m(x)).attr("width",M=>0).attr("height",m.bandwidth()).attr("fill",(M,x)=>_t[x%_t.length]).style("opacity",.8),this.svg.selectAll("rect").transition().duration(500).attr("x",M=>h(0)).attr("width",M=>h(M.values)-s).delay((M,x)=>x*50),this.svg.selectAll(".rect").data(b).enter().append("rect").attr("class",M=>this.id+"barEmpty").attr("z-index",1).attr("x",M=>h(0)).attr("y",(M,x)=>m(x)).attr("width",this.width-s).attr("height",m.bandwidth()).attr("fill",(M,x)=>_t[x%_t.length]).style("opacity",0).on("mouseover",u).on("mouseout",c),this.svg.append("g").attr("transform",`translate(0,${r})`).call(CZ(h).ticks(5).tickFormat(M=>this.unit==="Bytes (B)"||this.unit==="B"?An(M):this.unit==="Cost ($)"?qd(M):Cn(M))),this.svg.append("g").attr("transform",`translate(${s},0)`).call(AZ(m).tickSize(0).tickFormat(M=>l[M])).call(M=>M.select(".domain").remove()).call(M=>M.append("text").attr("x",-s).attr("y",20).attr("fill","currentColor").attr("text-anchor","start").attr("font-size","2em").text(this.title))}else this.svg.append("text").attr("x",t/2).attr("y",n/2).attr("text-anchor","middle").text("No data available")}}},Mae=["id"],kae=["id"];function xae(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock("div",{id:n.id},[i.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,kae)],8,Mae)}const Sae=bt(wae,[["render",xae]]),Lae={props:{id:{type:String,required:!0},data:{type:Object,required:!0},change:{type:String,default:"neutral"},unit:{type:String,default:"Count"},width:{type:Number,default:350},height:{type:Number,default:200},hideAxis:{type:Boolean,default:!1},hideTooltip:{type:Boolean,default:!1},resizable:{type:Boolean,default:!1},tooltipOffset:{type:String,default:"layer"},valueName:{type:String,default:"Value"},theme:{type:String,default:"light"}},data(){return{svg:null}},watch:{data:{handler(){this.createChart(this.data)},deep:!0}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.resizable?this.svg=Be("#"+this.id).append("svg").attr("viewBox",`0 0 ${this.width} ${this.height}`):this.svg=Be("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height);const e=this.data.color?this.data.color:Kt[this.theme][this.change],t=this.svg.append("defs").append("linearGradient").attr("id","gradientFill"+this.id).attr("x1","0%").attr("x2","0%").attr("y1","100%").attr("y2","0%");t.append("stop").attr("offset","0%").style("stop-color",Kt[this.theme].canvas).style("stop-opacity",.5),t.append("stop").attr("offset","100%").style("stop-color",e).style("stop-opacity",1)},createChart(e){const t=this.width,n=this.height,r=this.hideAxis?2:20,a=this.hideAxis?2:15,o=this.hideAxis?2:30,s=this.hideAxis?2:50,l=t>300?3:2,u=t>300?5:3,c=e.color?e.color:Kt[this.theme][this.change];let d=this.unit==="Percent (%)"?100:0;e.values.forEach(w=>{w>d&&(d=w)});const h=To(Ut(e.slots),[s,t-a]),f=Sr([0,d],[n-o,r]),m=(w,T)=>{const S=new Date(T.slots).toUTCString(),D=this.unit==="Bytes (B)"?An(T.values)+"B":this.unit==="Percent (%)"?T.values.toFixed(2)+"%":Cn(T.values);w.target.r.baseVal.value=u,Be("#"+this.id+"tooltip").html(`Time: ${S}<br>${this.valueName}: ${D}`).style("opacity",1).style("left",w[this.tooltipOffset+"X"]+15+"px").style("top",w[this.tooltipOffset+"Y"]+"px")},b=(w,T)=>{w.target.r.baseVal.value=l,Be("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},M=Fd().x((w,T)=>h(w.slots)).y((w,T)=>f(w.values)),x=fre().x((w,T)=>h(w.slots)).y0(n-o).y1((w,T)=>f(w.values)),L=this.svg,g=this;L.selectAll("g").data([e]).join(w=>y(w),w=>y(w),w=>k(w));function y(w){w.append("g").call(T=>{T.append("g").call(S=>{S.append("g").attr("id",g.id+"xaxis").attr("transform",`translate(0,${n-o})`).call(Vn(h).ticks(g.hideAxis?0:t/80).tickSizeOuter(0)),S.append("g").attr("id",g.id+"yaxis").attr("transform",`translate(${s},0)`).call(js(f).ticks(g.hideAxis?0:n/40).tickFormat(D=>g.unit==="Bytes (B)"?An(D):Cn(D))).call(D=>g.hideAxis?D.select(".domain").attr("stroke-width",.5):D.select(".domain").remove()).call(D=>D.selectAll(".tick line").clone().attr("x2",t-s-a).attr("stroke-opacity",.1)).call(D=>D.append("text").attr("x",-s).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(g.hideAxis?"":g.unit))})}).call(T=>{T.append("g").call(S=>{if(S.append("path").attr("class",D=>g.id+"line").attr("z-index",1).attr("stroke",c).attr("stroke-width",1.5).attr("d",function(D){const O=D.slots.map((V,E)=>({slots:V,values:e.values[E]}));return M(O)}).attr("class","area").attr("d",function(D){const O=D.slots.map((V,E)=>({slots:V,values:e.values[E]}));return x(O)}).attr("fill","url(#gradientFill"+g.id+")"),!g.hideTooltip){const D=g.data.slots.map((O,V)=>({slots:O,values:g.data.values[V]}));S.append("g").call(O=>D.forEach(V=>{O.append("circle").attr("class",E=>g.id+"points").attr("stroke",c).attr("r",l).attr("cx",E=>h(V.slots)).attr("cy",E=>f(V.values)).on("mouseover",E=>m(E,V)).on("mouseout",E=>b(E))}))}})})}function k(w){w.call(T=>T.style("opacity",0).remove())}}}},Yae=["id"],Tae=["id"];function Eae(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock("div",{id:n.id},[i.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,Tae)],8,Yae)}const Dae=bt(Lae,[["render",Eae]]),Nae={props:{id:{type:String,required:!0},data:{type:Object,required:!0},unit:{type:String,default:"Cost ($)"},width:{type:Number,default:575},height:{type:Number,default:350},title:{type:String,default:""},names:{type:Object,default:()=>{}},isTime:{type:Boolean,default:!0},tooltipOffset:{type:String,default:"layer"},slotName:{type:String,default:"Field"},valueName:{type:String,default:"Value"},theme:{type:String,default:"light"}},data(){return{svg:null,legend:null}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.svg=Be("#"+this.id).append("svg").attr("width",this.width).attr("height",this.title?this.height+30:this.height)},createChart(e){const t=this.width,n=this.title?this.height+30:this.height,r=20,a=15,o=30,s=50,l=[],u=Object.keys(this.names),c=(x,L)=>{const g=this.isTime?new Date(L.data[0]).toUTCString():L.data[0],y=L[1]-L[0],k=this.names[L.key]||L.key,w=this.unit==="Bytes (B)"?An(y)+"B":this.unit==="Percent (%)"?y.toFixed(2)+"%":this.unit==="Cost ($)"?"$"+y.toFixed(2):Cn(y);x.target.style.opacity=.7,Be("#"+this.id+"tooltip").html(`${k}<br>${this.isTime?"Time":this.slotName}: ${g}<br>${this.valueName}: ${w}`).style("opacity",1).style("left",x[this.tooltipOffset+"X"]+10+"px").style("top",x[this.tooltipOffset+"Y"]+"px")},d=(x,L)=>{x.target.style.opacity=1,Be("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},h=(x,L)=>{const g=u.indexOf(L.key);at("."+this.id+"bar").style("opacity",.7),at("."+this.id+g+"bar").style("opacity",1),at("#"+this.id+g+"dots").attr("r",6),at("."+this.id+g+"labels").attr("font-weight",1e3)},f=(x,L)=>{const g=u.indexOf(L.key);at("."+this.id+"bar").style("opacity",1),at("#"+this.id+g+"dots").attr("r",5),at("."+this.id+g+"labels").attr("font-weight",500)},m=(x,L)=>{const g=u.indexOf(L.key);Be("."+this.id+"xaxis").remove(),Be("."+this.id+"yaxis").remove(),at("#"+this.id+" rect").remove(),x.target.classList.contains("show")?(l.push(L.key),x.target.classList.remove("show"),x.target.classList.add("hide"),at("#"+this.id+g+"dots").attr("opacity","0.5")):(l.splice(l.indexOf(L.key),1),x.target.classList.remove("hide"),x.target.classList.add("show"),at("#"+this.id+g+"dots").attr("opacity","1")),b()},b=()=>{const x=e.series.filter(w=>!l.includes(w.name)),L=_T().keys(Lx(x.map(w=>w.name))).value((w,T)=>w[1].get(T)===void 0?0:w[1].get(T).value)(bx(x,w=>w.slot,w=>w.name)),g=this.isTime?To(Ut(e.slots),[s,t-a]):Yo(e.slots,[s,t-a]),y=this.title?[n-o,r+30]:[n-o,r],k=Sr([0,Pn(L,w=>Pn(w,T=>T[1]))],y);return this.svg.append("g").attr("transform",`translate(0,${n-o})`).attr("class",this.id+"xaxis").call(this.isTime?Vn(g).ticks(t/80).tickSizeOuter(0):Vn(g).ticks(t/20).tickSizeOuter(0).tickFormat(w=>{if(!this.isTime)return po(w,(t-a)/e.slots.length*8)})),this.svg.append("g").attr("transform",`translate(${s},0)`).attr("class",this.id+"yaxis").call(js(k).ticks(n/40).tickFormat(w=>this.unit==="Bytes (B)"?An(w):this.unit==="Cost ($)"?qd(w):Cn(w))).call(w=>w.select(".domain").remove()).call(w=>w.selectAll(".tick line").clone().attr("x2",t-s-a).attr("stroke-opacity",.1)).call(w=>w.append("text").attr("x",-s).attr("y",this.title?40:10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit)),this.svg.append("g").selectAll().data(L).join("g").attr("fill",w=>cy[this.theme][w.key]||_t[u.indexOf(w.key)%_t.length]).selectAll("rect").data(w=>w.map(T=>(T.key=w.key,T))).join("rect").attr("class",w=>{const T=u.indexOf(w.key);return`${this.id}${T}bar ${this.id}bar`}).attr("x",w=>g(w.data[0])).attr("y",w=>k(w[1])).attr("height",w=>k(w[0])-k(w[1])).attr("width",this.isTime?15:Math.max(g.step()-5,15)).on("mouseover",c).on("mouseout",d),L},M=b();this.svg.append("g").call(x=>x.append("text").attr("x",0).attr("y",20).attr("fill","currentColor").attr("text-anchor","start").attr("font-weight","bold").attr("font-size","20px").text(this.title)),e.series.length===0&&this.svg.append("text").attr("x",t/2).attr("y",n/2).attr("text-anchor","middle").text("No data available").attr("fill","currentColor"),this.legend=Be("#"+this.id+"legend").append("svg").attr("width",Math.max(this.width,M.length*125)).attr("height",20),this.legend.selectAll("legendDots").data(M).enter().append("circle").attr("id",x=>this.id+u.indexOf(x.key)+"dots").attr("class","show").attr("cx",(x,L)=>t/(M.length+1)+L*120-10).attr("cy",15).attr("r",5).attr("fill",(x,L)=>cy[this.theme][x.key]||_t[L%_t.length]).on("mouseover",h).on("mouseout",f).on("click",m),this.legend.selectAll("legendLabels").data(M).enter().append("text").attr("class",x=>this.id+u.indexOf(x.key)+"labels").attr("x",(x,L)=>t/(M.length+1)+L*120).attr("y",15).attr("fill",(x,L)=>cy[this.theme][x.key]||_t[L%_t.length]).text((x,L)=>po(this.names[x[0].key],700)).attr("font-weight",500).attr("text-anchor","left").attr("font-size","11px").style("alignment-baseline","middle")}}},Cae=["id"],Aae=["id"],Oae=["id"];function jae(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{id:n.id},[i.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,Aae)],8,Cae),i.createElementVNode("div",{class:"overflow-auto",style:i.normalizeStyle(`width: ${n.width}px; overflow: auto`)},[i.createElementVNode("div",{id:n.id+"legend"},null,8,Oae)],4)],64)}const Bae=bt(Nae,[["render",jae]]),Pae={props:{id:{type:String,required:!0},data:{type:Object,required:!0},names:{type:Object,default:{}},unit:{type:String,default:"Cost ($)"},width:{type:Number,default:575},height:{type:Number,default:350},isTime:{type:Boolean,default:!0},tooltipOffset:{type:String,default:"layer"},slotName:{type:String,default:"Field"},valueName:{type:String,default:"Value"},theme:{type:String,default:"light"}},data(){return{svg:null,legend:null}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.svg=Be("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height)},createChart(e){const t=this.width,n=this.height,r=20,a=15,o=30,s=50,l={},u={};e.forEach(y=>{l[y.action]=y.action,u[y.instance]=y.instance});const c=[],d=Object.keys(l),h=Object.keys(u),f=[];e.forEach(y=>{y.slots.forEach((k,w)=>{f.push({slot:k,action:y.action,instance:y.instance,value:y.values[w]})})});const m=(y,k)=>{const w=this.isTime?new Date(k.data[0]).toUTCString():k.data[0],T=k[1]-k[0],S=k.key.split(":")[0],D=this.names[k.key.split(":")[1]]||k.key.split(":")[1],O=this.unit==="Bytes (B)"?An(T)+"B":this.unit==="Percent (%)"?T.toFixed(2)+"%":this.unit==="Cost ($)"?"$"+T.toFixed(2):Cn(T);y.target.style.opacity=.7,Be("#"+this.id+"tooltip").html(`${S}<br>Instance: ${D}<br>${this.isTime?"Time":this.slotName}: ${w}<br>${this.valueName}: ${O}`).style("opacity",1).style("left",y[this.tooltipOffset+"X"]+10+"px").style("top",y[this.tooltipOffset+"Y"]+"px")},b=(y,k)=>{y.target.style.opacity=1,Be("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},M=(y,k)=>{const w=d.indexOf(k);at("."+this.id+"bar").style("opacity",.7),at("."+this.id+w+"bar").style("opacity",1),at("#"+this.id+w+"dots").attr("r",6),at("."+this.id+w+"labels").attr("font-weight",1e3)},x=(y,k)=>{const w=d.indexOf(k);at("."+this.id+"bar").style("opacity",1),at("#"+this.id+w+"dots").attr("r",5),at("."+this.id+w+"labels").attr("font-weight",500)},L=(y,k)=>{const w=d.indexOf(k);Be("."+this.id+"xaxis").remove(),Be("."+this.id+"yaxis").remove(),at("#"+this.id+" rect").remove(),y.target.classList.contains("show")?(c.push(k),y.target.classList.remove("show"),y.target.classList.add("hide"),at("#"+this.id+w+"dots").attr("opacity","0.5")):(c.splice(c.indexOf(k),1),y.target.classList.remove("hide"),y.target.classList.add("show"),at("#"+this.id+w+"dots").attr("opacity","1")),g()},g=()=>{const y=f.filter(j=>!c.includes(j.action)),k=y.map(j=>j.slot).filter((j,F,B)=>B.indexOf(j)===F),w=Pn(k),T=Xl(k),S=(w-T)/20,D=!w||!T?null:w+S,O=this.isTime?To(Ut([...k,D]),[s,t-a]):Yo(k,[s,t-a]),V=Pn(y,j=>j.value),E=[n-o,r];for(const j of d)if(!c.includes(j)){const F=d.indexOf(j),B=f.filter(q=>q.action===j),z=_T().keys(Lx(B.map(q=>q.action+":"+q.instance))).value((q,J)=>q[1].get(J)===void 0?0:q[1].get(J).value)(bx(B,q=>q.slot,q=>q.action+":"+q.instance)),G=Sr([0,V],E);this.svg.append("g").selectAll().data(z).join("g").attr("fill",q=>Co.scale[q.key.split(":")[0]](.5*h.indexOf(q.key.split(":")[1])/h.length+.5)||_t[d.indexOf(q.key.split(":")[0])%_t.length]).selectAll("rect").data(q=>q.map(J=>(J.key=q.key,J))).join("rect").attr("class",q=>`${this.id}${F}bar ${this.id}bar`).attr("x",q=>O(q.data[0])+30*F/d.length).attr("y",q=>n-o).attr("width",Math.min((t-s-a)/k.length,25)/d.length).attr("height",0).attr("stroke","black").attr("stroke-width","0.5").on("mouseover",m).on("mouseout",b).transition().duration(1e3).attr("y",q=>G(q[1])).attr("height",q=>G(q[0])-G(q[1]))}const R=Sr([0,V],E);this.svg.append("g").attr("transform",`translate(0,${n-o})`).attr("class",this.id+"xaxis").call(this.isTime?Vn(O).ticks(t/80).tickSizeOuter(0):Vn(O).ticks(t/20).tickSizeOuter(0).tickFormat(j=>{if(!this.isTime)return po(j,(t-a)/k.length*8)})),this.svg.append("g").attr("transform",`translate(${s},0)`).attr("class",this.id+"yaxis").call(js(R).ticks(n/40).tickFormat(j=>this.unit==="Bytes (B)"?An(j):this.unit==="Cost ($)"?qd(j):Cn(j))).call(j=>j.select(".domain").remove()).call(j=>j.selectAll(".tick line").clone().attr("x2",t-s-a).attr("stroke-opacity",.1)).call(j=>j.append("text").attr("x",-s).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit))};g(),e.length===0&&this.svg.append("text").attr("x",t/2).attr("y",n/2).attr("text-anchor","middle").text("No data available").attr("fill","currentColor"),this.legend=Be("#"+this.id+"legend").append("svg").attr("width",Math.max(this.width,d.length*100)).attr("height",30),this.legend.selectAll("legendDots").data(d).enter().append("circle").attr("id",y=>this.id+d.indexOf(y)+"dots").attr("class","show").attr("cx",(y,k)=>t/(d.length+1)+k*100-10).attr("cy",5).attr("r",5).attr("fill",(y,k)=>Co[this.theme][y]||_t[k%_t.length]).on("mouseover",M).on("mouseout",x).on("click",L),this.legend.selectAll("legendLabels").data(d).enter().append("text").attr("class",y=>this.id+d.indexOf(y)+"labels").attr("x",(y,k)=>t/(d.length+1)+k*100).attr("y",5).attr("fill",(y,k)=>Co[this.theme][y]||_t[k%_t.length]).text((y,k)=>po(y,700)).attr("font-weight",500).attr("text-anchor","left").attr("font-size","11px").style("alignment-baseline","middle")}}},Vae=["id"],Iae=["id"],Hae=["id"];function Fae(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{id:n.id},[i.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,Iae)],8,Vae),i.createElementVNode("div",{class:"overflow-auto",style:i.normalizeStyle(`width: ${n.width}px; overflow: auto`)},[i.createElementVNode("div",{id:n.id+"legend"},null,8,Hae)],4)],64)}const Rae=bt(Pae,[["render",Fae]]),zae={props:{id:{type:String,required:!0},data:{type:Array,required:!0},unit:{type:String,default:"Count"},width:{type:Number,default:350},height:{type:Number,default:200},tooltipOffset:{type:String,default:"layer"},valueName:{type:String,default:"Value"},theme:{type:String,default:"light"}},data(){return{svg:null,legend:null}},mounted(){this.initializeChart(),this.createChart()},methods:{initializeChart(){this.svg=Be("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height-10)},createChart(){const e=this.width,t=this.height-20,n=Math.min(e,t)/2,r=n*2+100>e?n>150?n-75:n-50:n,a={};this.data.forEach((k,w)=>{a[k.field]=w});const o=pre().value(k=>k.values),s=ey().innerRadius(0).outerRadius(r),l=ey().innerRadius(r*.9).outerRadius(r*.9),u=(k,w)=>{const T=!k.target.id||k.target.id.endsWith("dots")?t/2:k[this.tooltipOffset+"Y"],S=!k.target.id||k.target.id.endsWith("dots")?0:k[this.tooltipOffset+"X"],D=a[w.data.field],O=this.unit==="Bytes (B)"||this.unit==="B"?An(w.data.values)+"B":this.unit==="Percent (%)"?w.data.values.toFixed(2)+"%":Cn(w.data.values);at("."+this.id+"pie").style("opacity",.4),Be("#"+this.id+D+"pie").style("opacity",1),at("."+this.id+"labels").style("opacity",.4),Be("#"+this.id+D+"labels").style("opacity",1),Be("#"+this.id+D+"polyline").style("opacity",1),Be("#"+this.id+"tooltip").html(`${w.data.field}<br>${this.valueName}: ${O} (${((w.endAngle-w.startAngle)/(2*Math.PI)*100).toFixed(2)}%)`).style("opacity",1).style("left",S+10+"px").style("top",T+"px")},c=()=>{at("."+this.id+"pie").style("opacity",.8),at("."+this.id+"labels").style("opacity",1),Be("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},d=o(this.data),h=d.reduce((k,w)=>k+w.data.values,0),f=e/t,m=f>2?f>2.5?1500:900:600,M=(k=>{const w=r<100?12:14;return k.map((T,S)=>{if(S===0)return T;if(!h){const V=k[S-1].pos[1]-T.pos[1]+w;return T.pos[1]+=V,T}const D=(k[S-1].startAngle+k[S-1].endAngle)/2,O=(T.startAngle+T.endAngle)/2;if(D<Math.PI&&O>Math.PI)return T;if(D>Math.PI&&O<Math.PI)return T;if(O>Math.PI){const V=k[S-1].pos[1]-T.pos[1]+w;V>0&&(T.pos[1]+=V)}else{const V=T.pos[1]-k[S-1].pos[1]+w;V>0&&(T.pos[1]-=V)}return T})})(d.map(k=>h?{...k,pos:l.centroid(k)}:{...k,pos:l.centroid({startAngle:2*Math.PI,endAngle:2*Math.PI})}).sort((k,w)=>w.startAngle-k.startAngle)),x=this.svg,L=this;x.selectAll("g").data(M).join(k=>g(k),k=>g(k),k=>y(k));function g(k){const w=k.append("g"),T=k.append("g");w.append("path").attr("class",L.id+"pie").attr("id",S=>L.id+a[S.data.field]+"pie").attr("transform",`translate(${e/2},${t/2+10})`).attr("d",S=>(h||(S.endAngle=Math.PI*d.length),s(S))).attr("fill",(S,D)=>h?_t[D%_t.length]:_t[0]).style("opacity",.8).style("fill-opacity",0).on("mouseover",u).on("mouseout",c).transition().duration(800).attrTween("d",function(S){const D=Ha(L._current,S);return L._current=D(1),O=>s(D(O))}).style("fill-opacity",1),T.append("polyline").attr("class",L.id+"labels").attr("id",S=>L.id+a[S.data.field]+"polyline").attr("points",S=>{const D=S.pos,V=(S.startAngle+S.endAngle)/2<Math.PI?r*1.1:-r*1.1;if(!h){const E=-r*1.1;return[s.centroid({startAngle:0,endAngle:0}),l.centroid({startAngle:0,endAngle:0}),[E,D[1]]]}return[s.centroid(S),l.centroid(S),[V,D[1]]]}).attr("fill","none").style("stroke",L.theme==="dark"?"white":"black").attr("transform",`translate(${e/2},${t/2})`).style("opacity",0).transition().duration(800).style("opacity",1),T.append("text").attr("class",L.id+"labels").attr("id",S=>L.id+a[S.data.field]+"labels").attr("transform",S=>{const D=S.pos;return`translate(${((S.startAngle+S.endAngle)/2<Math.PI?r*1.15:-r*1.15)+e/2},${D[1]+t/2})`}).attr("text-anchor",S=>(S.startAngle+S.endAngle)/2<Math.PI?"start":"end").attr("font-size",r<100?"9px":"11px").style("fill",L.theme==="dark"?"white":"black").text(S=>S.data.field===0?0:S.data.field?po(S.data.field,m):"(no name)").on("mouseover",u).on("mouseout",c).style("opacity",0).transition().duration(1200).style("opacity",1)}function y(k){k.call(w=>w.style("opacity",0).remove())}}}},qae=["id"],Uae=["id"],Wae=["id"];function Gae(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{id:n.id,class:"float-left"},[i.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,Uae)],8,qae),i.createElementVNode("div",{class:"overflow-auto",style:i.normalizeStyle(`width: ${n.width}px; overflow: auto`)},[i.createElementVNode("div",{id:n.id+"legend"},null,8,Wae)],4)],64)}const Kae=bt(zae,[["render",Gae]]),Jae={props:{id:{type:String,required:!0},data:{type:Object,required:!0},width:{type:Number,default:350},height:{type:Number,default:200},theme:{type:String,default:"light"}},data(){return{svg:null,legend:null}},mounted(){this.initializeChart(),this.createChart()},methods:{initializeChart(){this.svg=Be("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height)},createChart(){const e=this.width,t=this.height,n=Math.min(e,t)/2,r=this.data.progress,a=ey().innerRadius(n*.7).outerRadius(n).startAngle(0);this.svg.append("path").datum({endAngle:2*Math.PI}).attr("d",a).attr("fill",Kt[this.theme].canvas).attr("transform",`translate(${e/2},${t/2})`),this.svg.append("path").datum({endAngle:0}).attr("d",a).attr("fill",Kt[this.theme].secondary).attr("transform",`translate(${e/2},${t/2})`).transition().duration(1e3).call(o=>o.attrTween("d",s=>{const l=Ha(0,r*2*Math.PI);return u=>(s.endAngle=l(u),a(s))})),this.svg.append("text").attr("text-anchor","middle").attr("dy","0.35em").style("font-size","35px").text("0%").style("fill",Kt[this.theme].text).attr("transform",`translate(${e/2},${t/2})`).transition().duration(1e3).tween("text",function(){const o=Ha(0,r*100);return function(s){this.textContent=`${Math.round(o(s))}%`}})}}},Zae=["id"];function Xae(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock("div",{id:n.id,class:"float-left"},null,8,Zae)}const Qae=bt(Jae,[["render",Xae]]);function Ao(e){return e!=null&&!Number.isNaN(e)}function Qs(e,t){return+Ao(t)-+Ao(e)||ko(e,t)}function fy(e,t){return+Ao(t)-+Ao(e)||Xc(e,t)}function hy(e){return e!=null&&`${e}`!=""}function yT(e){return isFinite(e)?e:NaN}function Sp(e){return e>0&&isFinite(e)?e:NaN}function my(e){return e<0&&isFinite(e)?e:NaN}function $ae(e,t){if(e instanceof Date||(e=new Date(+e)),isNaN(e))return typeof t=="function"?t(e):t;const n=e.getUTCHours(),r=e.getUTCMinutes(),a=e.getUTCSeconds(),o=e.getUTCMilliseconds();return`${eie(e.getUTCFullYear())}-${ji(e.getUTCMonth()+1,2)}-${ji(e.getUTCDate(),2)}${n||r||a||o?`T${ji(n,2)}:${ji(r,2)}${a||o?`:${ji(a,2)}${o?`.${ji(o,3)}`:""}`:""}Z`:""}`}function eie(e){return e<0?`-${ji(-e,6)}`:e>9999?`+${ji(e,6)}`:ji(e,4)}function ji(e,t){return`${e}`.padStart(t,"0")}const tie=/^(?:[-+]\d{2})?\d{4}(?:-\d{2}(?:-\d{2})?)?(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d{3})?)?(?:Z|[-+]\d{2}:?\d{2})?)?$/;function bT(e,t){return tie.test(e+="")?new Date(e):typeof t=="function"?t(e):t}function yu(e){if(e==null)return;const t=e[0],n=e[e.length-1];return Xc(t,n)}const bu=1e3,Oo=bu*60,jo=Oo*60,Wa=jo*24,Ga=Wa*7,$s=Wa*30,Bo=Wa*365,py=[["millisecond",1],["2 milliseconds",2],["5 milliseconds",5],["10 milliseconds",10],["20 milliseconds",20],["50 milliseconds",50],["100 milliseconds",100],["200 milliseconds",200],["500 milliseconds",500],["second",bu],["5 seconds",5*bu],["15 seconds",15*bu],["30 seconds",30*bu],["minute",Oo],["5 minutes",5*Oo],["15 minutes",15*Oo],["30 minutes",30*Oo],["hour",jo],["3 hours",3*jo],["6 hours",6*jo],["12 hours",12*jo],["day",Wa],["2 days",2*Wa],["week",Ga],["2 weeks",2*Ga],["month",$s],["3 months",3*$s],["6 months",6*$s],["year",Bo],["2 years",2*Bo],["5 years",5*Bo],["10 years",10*Bo],["20 years",20*Bo],["50 years",50*Bo],["100 years",100*Bo]],_y=new Map([["second",bu],["minute",Oo],["hour",jo],["day",Wa],["monday",Ga],["tuesday",Ga],["wednesday",Ga],["thursday",Ga],["friday",Ga],["saturday",Ga],["sunday",Ga],["week",Ga],["month",$s],["year",Bo]]),wT=new Map([["second",Zr],["minute",Ld],["hour",Td],["day",Gs],["monday",Dd],["tuesday",aL],["wednesday",iL],["thursday",Js],["friday",oL],["saturday",sL],["sunday",pu],["week",pu],["month",Cd],["year",Xr]]),gy=new Map([["second",Zr],["minute",Yd],["hour",Ed],["day",op],["monday",Nd],["tuesday",lL],["wednesday",uL],["thursday",Xs],["friday",cL],["saturday",dL],["sunday",_u],["week",_u],["month",Ad],["year",Qr]]),Ud=Symbol("intervalDuration"),Lp=Symbol("intervalType");for(const[e,t]of wT)t[Ud]=_y.get(e),t[Lp]="time";for(const[e,t]of gy)t[Ud]=_y.get(e),t[Lp]="utc";const Wd=[["year",Qr,"utc"],["month",Ad,"utc"],["day",op,"utc",6*$s],["hour",Ed,"utc",3*Wa],["minute",Yd,"utc",6*jo],["second",Zr,"utc",30*Oo]],Yp=[["year",Xr,"time"],["month",Cd,"time"],["day",Gs,"time",6*$s],["hour",Td,"time",3*Wa],["minute",Ld,"time",6*jo],["second",Zr,"time",30*Oo]],nie=[Wd[0],Yp[0],Wd[1],Yp[1],Wd[2],Yp[2],...Wd.slice(3)];function MT(e){let t=`${e}`.toLowerCase();t.endsWith("s")&&(t=t.slice(0,-1));let n=1;const r=/^(?:(\d+)\s+)/.exec(t);switch(r&&(t=t.slice(r[0].length),n=+r[1]),t){case"quarter":t="month",n*=3;break;case"half":t="month",n*=6;break}let a=gy.get(t);if(!a)throw new Error(`unknown interval: ${e}`);if(n>1&&!a.every)throw new Error(`non-periodic interval: ${t}`);return[t,n]}function kT(e){return xT(MT(e),"time")}function vy(e){return xT(MT(e),"utc")}function xT([e,t],n){let r=(n==="time"?wT:gy).get(e);return t>1&&(r=r.every(t),r[Ud]=_y.get(e)*t,r[Lp]=n),r}function ST(e,t){if(!(t>1))return;const n=e[Ud];if(!py.some(([,a])=>a===n)||n%Wa===0&&Wa<n&&n<$s)return;const[r]=py[em(([,a])=>Math.log(a)).center(py,Math.log(n*t))];return(e[Lp]==="time"?kT:vy)(r)}function LT(e,t,n){const r=t==="time"?Kv:Pd;if(n==null)return r(e==="year"?"%Y":e==="month"?"%Y-%m":e==="day"?"%Y-%m-%d":e==="hour"||e==="minute"?"%Y-%m-%dT%H:%M":e==="second"?"%Y-%m-%dT%H:%M:%S":"%Y-%m-%dT%H:%M:%S.%L");const a=rie(n);switch(e){case"millisecond":return wu(r(".%L"),r(":%M:%S"),a);case"second":return wu(r(":%S"),r("%-I:%M"),a);case"minute":return wu(r("%-I:%M"),r("%p"),a);case"hour":return wu(r("%-I %p"),r("%b %-d"),a);case"day":return wu(r("%-d"),r("%b"),a);case"month":return wu(r("%b"),r("%Y"),a);case"year":return r("%Y")}throw new Error("unable to format time ticks")}function rie(e){return e==="left"||e==="right"?(t,n)=>`
91
91
  ${t}
92
92
  ${n}`:e==="top"?(t,n)=>`${n}
93
93
  ${t}`:(t,n)=>`${t}